Skip to content

Instantly share code, notes, and snippets.

@juliancruzsanchez
Created May 17, 2020 22:33
Show Gist options
  • Save juliancruzsanchez/a8e83bba5576cc2081b04ee358dec99b to your computer and use it in GitHub Desktop.
Save juliancruzsanchez/a8e83bba5576cc2081b04ee358dec99b to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
function vd7ea82ddd10f919b99db37d72fb3e446(b, e, h) {
if (h && (this.v387b6af3804f01efa95f7a31baf7aada = !0, this.v0906ed8e137fdd0575a094bc06550e79 = {}, this.v0fa352e63075e11ce0da3d8f1add472a = {}, this.vc5dd6b0e80495ad848a3db8da6e8973b = [], this.v82e4da33cfc766f9ea8a685f9d0737aa = {}, this.vc2c1c8470e3bcfb073e649255cc36179 = {}, this.vba48f150d58a710edb8b62ad1388cdaa = [
'Object',
'Point',
'KMDate'
]), this.length = 0, this.pos = 0, this.pow = Math.pow, this.v543019ec6baf13fd8562a0426619aacd = Endian.v591e426c5cbea3665c280e6b61376241, this.vde98152079386c012fdeaf940ae934a7 = Math.pow(2, -23), this.vb1281f150947a1a5f4c692110305d513 = Math.pow(2, -52), this.v4c3ec334eafe2654e78aead1e42f03b3 = [], this.v7ec7f416cfb1700e3258c2591adf546b = {}, this.v93fc8265b052986bbc8dbde20cdf4cbf = [], this.vc53d45ee14e12acdb4f265b413a7126c = {}, this.vceb470842d52695c075079a3776a3309 = [], this.v543019ec6baf13fd8562a0426619aacd = Endian.v591e426c5cbea3665c280e6b61376241, this.v2949fe8a06ce52763d1a104ea458dc44 = !1, this.v9b2e08751936d4d84ccd1f0628c00fab = 0, this.vd4cfbd8ada21c308a9ba806392f0a4b5 = -1, this.v85eab53c9aef4674997f077aa4f624d5 = 0, typeof b == 'string') {
var f = pako.inflate(b, { to: 'string' });
b = f.split('').map(function (a) {
return a.charCodeAt(0)
})
}
this.data = b !== undefined ? b : [], e !== undefined && (this.v543019ec6baf13fd8562a0426619aacd = e), this.length = this.data.length;
var g = this.v543019ec6baf13fd8562a0426619aacd == Endian.v591e426c5cbea3665c280e6b61376241 ? 'BE' : 'LE', c = [
'readInt32',
'readInt16',
'readUInt30',
'readUInt32',
'readUInt16',
'readFloat32',
'readFloat64',
'writeUInt32',
'writeFloat64'
];
for (var a in c)
this[c[a]] = this[c[a] + g];
var d = {
readUnsignedByte: 'readByte',
writeUnsignedByte: 'writeByte',
readUnsignedInt: 'readUInt32',
readFloat: 'readFloat32',
readDouble: 'readFloat64',
writeDouble: 'writeFloat64',
readShort: 'readInt16',
readUnsignedShort: 'readUInt16',
readBoolean: 'readBool',
writeBoolean: 'writeBool',
readInt: 'readInt32'
};
for (var a in d)
this[a] = this[d[a]]
}
function Point(a, b) {
this.x = a, this.y = b
}
function vdc7354c3cd5c7774f4dbfeba28eba934(b, c, d) {
this.v409ede5a246d455fb34d512591862804 = '4.6.0.2';
var a = this;
this.v4d47b95800f984f46f99d44d867e742c = 33.333333333333336, this.v381fa954f05ff5e913a28c162b11deae = b, this.v722557e96c8e81ac41b4bab1550083a4 = c, this.v62a642b9c7b8149faec4098e70818149 = U.vda846d1bb09c81288283371d4b22a9f0(d), this.canvas = $('#sim-view-canvas'), this.canvas.click(function (b) {
a.v213b452f35fa2bb266b4c9e8dada5505(b)
}), $('body').mousedown(function (b) {
return a.vd75ad348bb17484770f7fe81eb7a7ee2(b)
}), $('body').mousemove(function (b) {
return a.vc50a150dbd38b5c7bdda2ae51bf74d2f(b)
}), this.canvas.mousedown(function (b) {
return a.v95961a7d37bc005d7bf2ad6832db38b1(b)
}), this.canvas.mouseup(function (b) {
return a.v459bd07f26471417484e8e7547eea3a3(b)
}), this.canvas.mousemove(function (b) {
return a.onMouseMove(b)
}), this.canvas.bind('wheel', function (b) {
a.vc2d52ebabfbe35045a8a5aa706f9f83c(b)
}), this.canvas.bind('touchstart', function (b) {
a.ve734d3949f6f8eb06431a1d6ce35bff5(b)
}), this.canvas.bind('touchmove', function (b) {
a.v00dab815311bf28411d614abdf8dcda0(b)
}), this.canvas.bind('touchend', function (b) {
a.vb0d035acfd8e9ce66656c288fb25c276(b), a.v52a42af26830ec7f8cc2ab4929db04e2(b)
}), this.canvas.bind('touchcancel', function (b) {
a.vc0106a6a893e4d313758985b80f88365(b)
}), this.context = this.canvas[0].getContext('2d'), this.v33d1679ccbbc799ba58ef2ae9383fc37 = [], this.v1a5d737866b9cc94ff4bf787cf85c5d4 = null, this.vf63907979ba6121482ce4ff4b7febecb = $('#time-value'), this.speeds = [
.2,
1,
5,
61
], this.speedLabels = [
'.5x',
'1x',
'20x',
'100x'
], this.ve603d0e0486d29567c537397d1c2985e = $('#speed-slider'), this.vfcfdefa4578944e6ba625d388463f9e5 = $('#consensus-speed-indicator'), this.v8684863d0afbd30099deb9c26655b64d = $('#start-stop-button'), this.v6cede35347e32890ce86ce9a558f83b5 = $('#start-stop-button-icon'), this.v056f97ac80115ff33b1460020bee0f12 = $('#start-stop-button-text'), this.v8684863d0afbd30099deb9c26655b64d.click(function (b) {
a.vfd2561d3a3a6899809435c5ad1f4a25c()
}), $('#run-to-button').click(function (b) {
a.v0c003a4077d4d87f3c2c8ebd7cda66a4()
}), $('#brandHeader .infoIcon').click(function (b) {
a.v6d728b956e11a3f89a7cef724aa38e46()
}), this.v5bcee061b75c00f7fdff4dc88468f0f2 = new Point(0, 0), this.v339f451bdc86667422c5e0a7b464302c = $('#zoom-slider'), this.v65c637ea0baf5919932c148aeb4cc9f9 = [
.75,
.8,
.85,
.9,
.95,
1
], this.v788ec81b28d71c67471a9c4461be0cce = 5, this.v8eb1fe4496c57b0b4b8e014fcb5be9f3 = this.v788ec81b28d71c67471a9c4461be0cce, this.v6a34f12f52da9589517919e70260376d = {}, this.vc414084db4500c2bc60ddfb4079b2b70 = {}, this.running = !1, this.v60a696de52c002956aff4c70e4117eeb = [], this.resources = [], this.imageAtlas = null, this.v143d6ee46a5db342a8a0ae4c97e8a30f = 0, this.vfa28e603e5d440285ee29acdd18a1fbb = [
'simulation logic',
'lesson data',
'graphics'
], this.v6c00e84ca0a5a7dca4d13fdfad7b3c3d = 'Weekly Profit (k = 1,000\'s)', this.designerModeEnabled = !1, this.state = null, this.v878b37b9752c49c5567d5b9658b51622 = [], this.v2d4cfed0d0594e509be17a93e5cfeea3 = [], this.v8c8bd58acc7b2708cd2cd2811a9e99bc = [], this.v6f315f5409fdad080342ebf690e228a7 = [], this.v1f0f046d09faa6d8fc1df33501d96d14 = [], this.ve21ce26f41ddcf1884f33c29e0fdf9da = [], this.v287733d4184b69c34ccf19831b5a8d8b = !0, this.v274a03ee647ea7814143db054799e264 = !0, this.va80bdf0329d8e150c99cbb7a77533f9f = !0, this.securityToken = '', this.v10f85aa9cb6068fdb18fb687f2b09c00 = '', this.v95c1c1a6ee11aed4437f2166c7d4bf27 = 0, this.ve0cbfece669d6b7cb83cb0de0665e2ad = null, this.v8885ce80f7ab0505dbe1a7a362a265fa = null, this.v303dfbeacae629f9ecf4f0302157e46b = '', this.serverURL = '', this.vab916438b99433b6cfab645316a0c12a = '', this.v075f3b655ef78161c537c02e6e38938d = 0, this.vdfd693eee815ed5ff9906b5dcdc9f011 = 0, this.v94150be914b83b6173371d786bf0e05f = null, this.v5388b2bd08bd0cc31aa05c5cb62a4f22 = !1, this.ve9f02270f508971fc18a46f02ae83b0f = {}, this.v6cb1380d5a5f404876f477a48a9bda49 = {}, this.v37fb4c32e8434650ec7fc841c78262fb = !1, this.v5c84d159583e34b0c2b3e00920a2c77d = !1, this.v90be04193a03748a59f73fe6533de825 = [], this.vd61fd18ef12f2373421ea24bb6c734f4 = 0, this.vfabe0333df98451189cfcfef13a3aed0 = 0, this.v93b7c7ced76f9cbe7d46ef621ad6c878 = 99, this.v78c1a7b8f5b26209650374d4f01e103b = !1, this.v75743c359c19fe435bef751ae5792b43 = !1, this.v0ee3746fe2e9261f562f16f05fa2ad7d = 0, this.v2bacca15a2592ff559fa1acd7031e317 = new Date * 1 - 10, this.vfb870cd5e072dbf6d4fa2cd90394dc3a = 10, this.v68081d7e244e551f1dec2d3b8da385a3 = $('#fps-value'), this.v0a8b4fbf94a162f677eeb1e14f347b5f = $('#renderTime-value'), this.v8798a6e09c5950733cecd8c416e205ea = [], this.v23ab7f9f2eb0dd196a19c3b6f08670cf = [], vdc7354c3cd5c7774f4dbfeba28eba934.instance = this
}
function stopAndQuerySaved() {
return vdc7354c3cd5c7774f4dbfeba28eba934.instance.stopAndQuerySaved()
}
function v103be72cf6bff4222bdadabc2d610ad6(a, b, c) {
vdc7354c3cd5c7774f4dbfeba28eba934.call(this, a, b, c)
}
function vb3096db423f08ae0cbb30d927ab57506() {
}
function v9a411e00a9bf1d4242451eac1df7fb4e(c, b, d) {
for (var a = 0; a < b.length; ++a)
d.call(c, b[a])
}
function KMDate(b, c, d, e, f, g, h) {
if (b instanceof Date) {
var a = b;
b = a.getFullYear(), c = a.getMonth(), d = a.getDate(), e = a.getHours(), f = a.getMinutes(), g = a.getSeconds(), h = a.getMilliseconds()
}
this.vb9036c412347964ba36f8ef205d9b528 = new Date(2001, 0, 10, 0, 0, 0, 0), b != undefined && this.vb9036c412347964ba36f8ef205d9b528.setUTCFullYear(b), c != undefined && this.vb9036c412347964ba36f8ef205d9b528.setUTCMonth(c), d != undefined && this.vb9036c412347964ba36f8ef205d9b528.setUTCDate(d), e != undefined && this.vb9036c412347964ba36f8ef205d9b528.setUTCHours(e), f != undefined && this.vb9036c412347964ba36f8ef205d9b528.setUTCMinutes(f), g != undefined && this.vb9036c412347964ba36f8ef205d9b528.setUTCSeconds(g), h != undefined && this.vb9036c412347964ba36f8ef205d9b528.setUTCMilliseconds(h)
}
function vbe6dfab6e47ff3d003a423092f4c35ef(a, b) {
this.location = new Point(a.x, a.y), this.imageName = b, this.vd47ed85cab7ce2b6d437e7b570eea18a = null, this.col = 0, this.row = 0, this.flipX = !1, this.transform = [], this.plane = 0, this.clickable = !0, this.drawablesBefore = [], this.drawablesAfter = [], this.font = '', this.fillStyle = '', this.textAlign = 'start', this.text = '', this.alpha = 1, this.v492347134bdd86399872b16353ba6e51 = null, this.vbd5fe1eb0166be3d3c5abf3a4c60cc14 = null, this.cache = !1, this.v7c056d47dc2a91151c75a39bfcb33041 = '', this.v7a9ce2c4e74e75d3cc4ccdef17e58262 = !1
}
function v11fc3497bbbb857ae5e2dfcdf511c7ff(a, b, c, d, e, f, g, h) {
this.v67fd1bb5bcf7c63f2363bcbe9bd63bc9 = a, this.image = null, this.url = b, this.cols = Math.max(1, c), this.rows = Math.max(1, d), this.v6841b8cd2667199b2fbadb0a902a0b66 = e, this.vc41e7355b6bb3f94920a6e0a0482b1f1 = f, this.v8d66706edda79de392e4c97b60de9cca = g, this.veca1a2c3bf5033a5c010243e79cb1e60 = h
}
function v3323682bbfa243fab7fa51a2901615ac(a, b, c) {
this.v67fd1bb5bcf7c63f2363bcbe9bd63bc9 = a, this.url = b.replace(/([^:]\/)\/+/g, '$1'), this.rows = null, this.type = c
}
function vc24092b4f1303a6cc298b72b80a11273(a, b) {
this.v67fd1bb5bcf7c63f2363bcbe9bd63bc9 = a, this.url = b, this.v850f1bbdd245166b20db7bb6b66e05aa = ''
}
function v9a61fda44a6f3004a08f014768f83952(b, a) {
this.v67fd1bb5bcf7c63f2363bcbe9bd63bc9 = b, this.urls = _.isArray(a) ? a : [a], this.data = {}
}
function v4425207957fa0999aed9c48ef94f50b8(a, b, c, d) {
this.v67fd1bb5bcf7c63f2363bcbe9bd63bc9 = a, this.url = b, this.v7260c89dc23163e2694ecb089b413d47 = c, this.vd78409cd6ab5bfe1cfda6f54ab64d4a6 = d, this.va359ee2f0c12248a86b7a93783fc3055 = 0, this.data = null, this.pages = [], this.va070a604fdc1d137e5c21449c8b688da = null, this.vf6b5222bc7d38d7da3fa13904f97dc73 = null, this.ve314bbb3ad84d23e32629b334d7375ea = {}, this.v3439bb7244d42db06ba848b1ffef1f01 = 1024, this.v07ec53e7cac98b97d4e9c4335f934ff2 = 0, this.vb5803fac070dd26d5b4a19ea2a03a82e = 0, this.v4d8104dcd97c70ec92795f059e5aec1d = 0, this.v717677dbb146c023ad9e1f3cd2117481 = 0
}
function vd9fe375ebc5a23cd63cd5eeb26ccb805() {
vb3096db423f08ae0cbb30d927ab57506.call(this), this.v99852e2df25602e53d8983589cf14117 = new Point(0, 0), this.v947a87e590536d6ee0b93ef169264d31 = new Point(0, 0), this.vd79c381731f0a87cc117cb01fc9d3f99 = null, this.v4edd02025d460a46fb0347949efd09a2 = [], this.v47d286011cf69116bc768d74cae8f20d = 1, this.v292f13bdb684f9d3ffd76c4d798037d5 = 0, this.vd77ea6de02d37c1010c2e6c932744285 = 0, this.v51689f5af7ad2aef1c8c14b914973f63 = -1, this.flipX = !1, this.v964ae3e6da7cb848a4b0544a641cde5b = 0, this.__v900c5a017275dafff3097853e11f6363 = {
index: 0,
flipX: !1
}
}
function vcfe882df616f899ab32c02dee5b814a6(a) {
a == undefined && (a = Math.floor(Math.random() * U.vb57864c2b24994a28548be73b11c2d8f)), this.vc206b9f93382482d3853df7f2fadaf3b = a
}
function v12e52c935a82fae271a892daa6603118(a) {
vcfe882df616f899ab32c02dee5b814a6.call(this, a), this.v98e011f76161a14092fd95ec73d80363 = 0
}
function v26eec6ff9a97369555cb05732e4e6c77() {
this.v4efb16c649c384fa191cd04218755853 = 1, this.ved69a6bc6cee49183116f36c281ed5a5 = 0, this.v5941d8b6596e40827476f762b5867a14 = [], this.v067de69f71af9af88d9b677d76efffed = [], this.now = new KMDate, this.vc6dc8a6b6b8b2e93c555f63b719a51f0, this.actions = {}, this.v86d48cb74a138405a193f753c6addd71 = {}, this.settings = {
SimulatedSecondsPerStep: 90,
RandomSeed: -1,
RunToOffsetIntoDayInMinutes: 0,
RunToChangeYearEnabled: !1,
v92f36e5bd8b78317b1d5f05e7b7da85b: 42.34
}, this.vf56cd015c5a33b99cb23af90f132a9cb = 0, this.v5883ad82267ac1caf3a9d3be133b159c = [], this.v620f50a4dbf9b8007046bf645f717659 = [], this.vab886132675b32154c90aa8e4ea4cca8 = [], this.v9ad353c8351af1f72f92508f9f4399ca = !1, this.v6b811be4812ca38856e2ef6235e6a466 = !1, this.v06cd79e011b5f53155208356a8036ae0 = !1, this.newDay = !1, this.vbe68ccb4a0ec9d99d8b40e96581e7f12 = !1, this.v2461a1084635d5926dd0a9ad05702d0c = 0, this.random = null, this.v9c27736ecd4575037647b832405eeabf = '', this.v68c3f6ce5016f834492128297f830518 = KMDate.v7de0e242fb310ded4c773006026bd708, this.v8c79e0c8cb3e7591fd8996e71b7b5e5f = 0, this.v9d74abe4b03a0c4b5e9b88ff50f597f1 = 0, this.v4e2e944c1ec8f883837fce63027fae20 = 1, this.vc2c762ce377b3b58aaa81f0436ceea58 = !1, this.vc99b1d31c0fe2e5a6e773600f35aca39 = !1, this.scaleFactor = 1, this.v63bb15a1a77f6d3212e30aa278f08169 = {}, this.vfa918617e60589af9429b43b0d8e15f0 = null, this.v001556b680e5787f8a167298f2f6afc5 = 'h:mm tt'
}
function va20bdc309a7a3a70da33773c4c0407ec() {
this.events = {}
}
function vd0e0bb0864ecb4a3ba7598b3fbc1e77d(a, b, c) {
this.name = a, this.imageName = b, this.overlays = [], this.vfdf5b1d02cd6af6bf0203b50e25495e7 = c
}
function v7b6cc9f055ce04ec9a08228f823d81f9(a, b, c) {
vd0e0bb0864ecb4a3ba7598b3fbc1e77d.call(this, a, b, c), this.__v338c32784170215e5f4e3bc3bbdc3f84 = null, this.__v314385c9a8894d21bf0fc7aed35a23a9 = null, this.__v2cbc24296d0f74841ec12e7645afb96e = !1, this.__vdcecb0da604458b362570a169fd8087a = !1
}
function v6b4ac5272bf01d185f13c69ff4aef97f(a) {
this.v68a99d5a7a139fd8145f1064e76c6191 = a, this.selector = null, this.va4da3c3d0aab9277b87a4d4fff75fc6b = []
}
function va1337b7722f001e1521f5c837ab1b7fe(a) {
v6b4ac5272bf01d185f13c69ff4aef97f.call(this, a), this.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v470c7d726fb165a31d6577c7ca1b3b29, this.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v9d3aa88eb558ff7e4174a128c3c25296, this.vacc20e29cd500930597f6ed841b41cb5 = !1, this.va90278d5408d58739d90a5f6f484529d = !0, this.v271e95354506edc0a553779dc28a89b0 = !1, this.closed = !1
}
function v2afb2dbb7629090cd4cf10e612d6687e(a) {
v6b4ac5272bf01d185f13c69ff4aef97f.call(this, a)
}
function Alert(f, d, b, e) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'Alert'), this.v271e95354506edc0a553779dc28a89b0 = !0, d == undefined && (d = A.vf3351ba56d8b7e42f05b30b819a9db80().v381fa954f05ff5e913a28c162b11deae), b == undefined && (b = Alert.OK), e == undefined && (e = null), this.v88f73d9ee5dc5f3ce8a7141e109b5e65 = e;
var c = this, a = {};
a.title = d, a.modal = !0, a.minWidth = 350, a.resizable = !1, a.buttons = {}, a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v7e4ade658726e8c8fc83b2e45410c000, a.v4fbdb061d4fae50846ca6cf951660e59 = !1, b & Alert.OK && (a.buttons.OK = function (a) {
c.v69254df042a7770c9610fb3bf7ad2aae(a, Alert.OK)
}), b & Alert.v5cbd2f799120510cbe2a2aa871fad325 && (a.buttons.Cancel = function (a) {
c.v69254df042a7770c9610fb3bf7ad2aae(a, Alert.v5cbd2f799120510cbe2a2aa871fad325)
}), b & Alert.v7a6e37eae80700365db84b46681c3ba2 && (a.buttons.Yes = function (a) {
c.v69254df042a7770c9610fb3bf7ad2aae(a, Alert.v7a6e37eae80700365db84b46681c3ba2)
}), b & Alert.vddcc157367523e251fa7b7cdb4c4a8b0 && (a.buttons.No = function (a) {
c.v69254df042a7770c9610fb3bf7ad2aae(a, Alert.vddcc157367523e251fa7b7cdb4c4a8b0)
}), this.v885c4e94b135fc4ba8cf2f2b62d481c4 = f, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function FinalAlert(c, b, d) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'FinalAlert'), b == undefined && (b = A.vf3351ba56d8b7e42f05b30b819a9db80().v381fa954f05ff5e913a28c162b11deae);
var a = {};
a.title = b, a.modal = !0, a.resizable = !1, a.buttons = {}, a.v4fbdb061d4fae50846ca6cf951660e59 = !1, a.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v84fbda0bd9cff2e014d94726ce158786, a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v7e4ade658726e8c8fc83b2e45410c000, this.v885c4e94b135fc4ba8cf2f2b62d481c4 = c, this.v4943408c45e9521bb4ebd09974fcbbf9 = d === !0, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function v18274a8d2986408d135610cd197406c7() {
}
function v6a3609e38e0f740d9fac571dd04ed021(a) {
this.message = a
}
function v202666b14c292cd4f13504344674eaab() {
this.sessionToken = '', this.playerName = 'player1', this.resources = {}, this.__ve29defa7be5f3f73dea822abeebda34c = {}
}
function vcdb0cd9da72818ed35cd98969f38d410() {
this.sessionToken = '', this.playerName = 'player1'
}
function frmOpenLocal(d, b) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmOpenLocal'), b == undefined && (b = !1);
var c = this, a = {};
a.title = 'Open Local', a.modal = !0, a.resizable = !1, a.buttons = {
Cancel: function () {
c.v5b776df159cb39610d8078576ff9214f()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a), this.vf67435775159402770d545aa82457a06 = d, this.v2949fe8a06ce52763d1a104ea458dc44 = b, this.ve1989885fd47612393c1c61db0320f7b = null
}
function frmSaveLocal(e, f) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmSaveLocal');
var c = this, a = {};
a.title = 'Save Local', a.modal = !0, a.resizable = !1, a.buttons = {
Close: function () {
c.v3898fc750e1e36bdae9b3a9aa45be670()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a), this.vf67435775159402770d545aa82457a06 = f;
var b = new vd7ea82ddd10f919b99db37d72fb3e446;
b.v1434c04adb7ea71feffa8c1edddd1d46(e);
var d = b.toString();
this.v6f4ac900e7928cffc4615307d8cf208f = v18274a8d2986408d135610cd197406c7.encode(d)
}
function frmExamineState(j, k) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmExamineState');
var g = this, a = {};
a.title = 'Examine State', a.width = 800, a.height = 600, a.modal = !1, a.resizable = !0, a.buttons = {
Summary: function () {
g.v0f95b8fe81bdea59d865ab1051f7cccf()
},
Diff: function () {
g.v7aabf6c3e9d3db56101359ea27896738()
},
Close: function () {
g.v3898fc750e1e36bdae9b3a9aa45be670()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a), this.vf67435775159402770d545aa82457a06 = k;
var f = new Date;
f = f.getTime(), this.vdc34c92295e8ad085220f0c692bc66d2 = new vd7ea82ddd10f919b99db37d72fb3e446(undefined, undefined, !0), this.vdc34c92295e8ad085220f0c692bc66d2.v1434c04adb7ea71feffa8c1edddd1d46(j);
var b = new Date;
b = b.getTime(), this.vb5d2a32c4761fc128a09277164b80ec4 = b - f;
var h = this.vdc34c92295e8ad085220f0c692bc66d2.va72cbb4c94367eb235df709e578f6dae(), d = new Date;
d = d.getTime(), this.v4c80cc635549491929a5e46e963f856f = d - b;
var i = pako.deflate(h, { to: 'string' }), c = new Date;
c = c.getTime(), this.v66d0b0cd67fab754b4719399782fa8f5 = c - d, SHA256_hash(i);
var e = new Date;
e = e.getTime(), this.vb99d7dacee21741c1e433b19b9540871 = e - c, this.vff690c4c882a304f4a7f8278df154265 = 0, this.v734794541f431da3b7b343c5e65daf5e = 400
}
function frmRunTo() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmRunTo'), this.v271e95354506edc0a553779dc28a89b0 = !0;
var b = this, a = {};
a.title = 'Run To', a.modal = !0, a.resizable = !1, a.width = 'auto', a.height = 400, a.buttons = {
'Cancel Run To': function () {
b.vc0aa39d9d93343877f95ce924e8e78d7()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmScoreboard(c) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmScoreboard');
var b = this, a = {};
a.title = 'Scoreboard', a.width = 400, a.height = 200, a.modal = !1, a.resizable = !0, a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v7e4ade658726e8c8fc83b2e45410c000, a.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v84fbda0bd9cff2e014d94726ce158786, a.buttons = {}, a.position = {
my: 'right',
at: 'right',
of: window
}, this.vf974bcd72cd3e9d6a1a105374ef14344 = function () {
b.update()
}, this.mode = 0, this.v0cff974062c80bc46855e3e546a3b603 = c, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmPlayerList() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmPlayerList');
var b = this, a = {};
a.title = 'Player List', a.width = 600, a.height = 250, a.modal = !1, a.resizable = !0, a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v7e4ade658726e8c8fc83b2e45410c000, a.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v84fbda0bd9cff2e014d94726ce158786, a.buttons = {}, this.vf974bcd72cd3e9d6a1a105374ef14344 = function () {
b.update()
}, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmSettings(c, d) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmSettings');
var b = this, a = {};
a.title = 'Setting Editor', a.width = 600, a.height = 600, a.modal = !0, a.resizable = !1, a.buttons = {
Save: function () {
b.vcc339b65d62c06e537628bf66e81fae9()
},
Cancel: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a), this.settings = U.v28ccd02cd8c568bebbb0984f8505095d(c), this.vf67435775159402770d545aa82457a06 = d
}
function frmLicenseInfo() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmLicenseInfo');
var b = this, a = {};
a.width = 500, a.title = 'License Info', a.modal = !0, a.resizable = !1, a.buttons = {
Close: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.expanded = !1, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmTestSolution(b) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmTestSolution'), this.v5729787667628b498614a02c16848978 = b;
var c = this, a = {};
a.title = 'Test Solution ' + b, a.width = 650, a.height = 550, a.resizable = !0, a.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v84fbda0bd9cff2e014d94726ce158786, a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v7e4ade658726e8c8fc83b2e45410c000, a.buttons = {
Close: function () {
c.close()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function v3c76d6af163db340a67d351d5924d819() {
vb3096db423f08ae0cbb30d927ab57506.call(this), this.vf55f9d3dc4fbb69dbab68715d6d4165b = null, this.v034c205437829b89bc263f598755d088 = [], this.v8f52b617d22ed0addfd9664f9dd61254 = []
}
function vdef370b7d052efa734ec16484bdb8964(a, b, c) {
v7b6cc9f055ce04ec9a08228f823d81f9.call(this, a, b, c)
}
function v220cf8502cbf99285772e71b887f94d8() {
vd9fe375ebc5a23cd63cd5eeb26ccb805.call(this), this.initialized = !1
}
function v1fb4202428256367dd449ac0a105af71() {
vb3096db423f08ae0cbb30d927ab57506.call(this), this.block = null, this.va6adc94daf37c44010ed596b67bba0b8 = 0, this.v7f63e53c212516fda00def34b8f95749 = null
}
function vf1919b86f0e2bf15716fb04dcebfef03() {
this.index = 0, this.v553a3b00335347c9bd352e0e242c3b44 = 0, this.name = 0, this.vfdf66136c3a4e1ae07fc5f6f7cf5a2c0 = 0, this.height = 0, this.vf73e04b20684f7fc461a91753868d2f0 = !1
}
function vf7b53e4b9baa554eb792f977aa65dc4e() {
vb3096db423f08ae0cbb30d927ab57506.call(this), this.v5a62e226e7b35be6951ac11c61e2e772 = 0, this.ve8340a8ce9f7aadfc403aadb8fd4254c = 0, this.va636a48b2d15573a07710552c7ade395 = [], this.v876f0928c01cae04b999841664e35d8f = null
}
function vcc018f6c32c853d2b204047d25ba9f40() {
this.v195c988a792edca274e68622fc760def = [], this.vfee1e68015e9bd7b88173b5da872afbf = [], this.v280a21df17c317807ab4472bba9ca825 = 0, this.v669d177d208ede3500e0a39dd9a3c3a6 = [], this.v2b025a5794afbed07d32877fc456aba1, this.vc43ac56e3055dc09e6a302646c4d16b9, this.vb478f44874fb1107a8006a68f176f2d4, this.v82ce779189e619f7698976a9826f01b1, this.v87022ec558aee30279c00b029173c30d, this.vbf35de25142f7a32dd0ba818f8d04506, this.v57a3c8fe83e4816e7f187a6398fdb914 = !1, this.va37065ae099a937f78d713d519923dd3
}
function frmFinancials(b) {
b || (b = 'frmFinancials'), va1337b7722f001e1521f5c837ab1b7fe.call(this, b);
var a = {};
a.title = 'Financials', a.width = 800, a.height = 550, a.modal = !1, a.resizable = !0, a.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v2275d44d1a98fd65546bb9857a3bf7b2, a.buttons = this.v1863b84516dc7daf44262b862c096d2a(), a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v97abac90352903cdfe7ffccc2945507d, a.vacc20e29cd500930597f6ed841b41cb5 = !0, this.vcf93fcf0f5393855fb90694252a2268f(a), this.v0ee39f1f3ac8c146615fb52081658575 = 1, this.v6a29bfd9fd1ba7e38b6310158323514e = 0, this.v1612c68110904527140ee6554856464c = '.dataTables_scrollBody', this.v7ba5a7651bd3de1121849bedd98b6c31 = 65
}
function frmLoan() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmLoan');
var b = this, a = {};
a.title = 'Loans', a.width = 755, a.height = 420, a.va90278d5408d58739d90a5f6f484529d = !1, a.resizable = !1, a.buttons = {
Close: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a), this.v4cfb16c24038bc3e21c91ce0a24b844e = [], this.v627b5df6e580e91236a3b0c6bac15f53 = []
}
function frmLoanc1() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'frmLoanc1')
}
function frmLoanc2() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'frmLoanc2'), this.v651c6ac2db3dd8bc00f16eda5f74d0a4
}
function vb43cf742750bb8ac88a5ffe797be4a98() {
this.v92c33f4a1ca9d83bce4a38746f69db3d, this.v392bd52c3241d409001defb80e0fb5b6, this.v3deeefb91ab70e38c32b170527bb370a, this.vc399ba5dd5f13869f30e794715b0b27d, this.v166dd861601a4d8e42486bc29ab8fcde
}
function v757b5307960cdc71c9f679fba7e9643f() {
this.vf77f7513c52c667c65620ce84098d882, this.v3deeefb91ab70e38c32b170527bb370a, this.vf7385935f1dec6f5d5049bd951106dcc, this.v5222098d57a01648357a804665f65b82 = [], this.v93aa47914408244be96b5e8eaf864186
}
function v22650407500f460622a82c507e283fa7() {
this.vab3d351caf60e457cd579953613f077d, this.v0f640f82c7699855a0d62cf9a27a7187, this.v5b2a5fba3c07b6c906bd3d2c5814cbfe, this.v5f8f31def2fd7aad0bb06a09cf68e656, this.vb0db01337802bd76f20faf61742da53c, this.v26d28626ca81c220000b7ad6d89f819a, this.v301678c0732402665246d5fae3fc8b28
}
function vaa23042816e13a1bf97cf473ae90dd89() {
this.v74449aac898c877e57b9a8ef2aa86fb6, this.v0f640f82c7699855a0d62cf9a27a7187, this.vb1e51374bae86938b907699d1d14ec73, this.date, this.item, this.vf2a476c7488edeb4e4f869ffadc5d987 = !1, this.v2f2a9ba1f7c9fdb3daf5b320e14a79d2 = !1, this.ve6ac5f75ee2769d268b44a52f2868d1b = !1
}
function v155ef141aa3452d79860bc5818273071() {
this.v5d52f1d4295c04e0603d26808c52b9a6 = [], this.vdc5165db35e05926b39d1b4c75148623 = []
}
function v5791304e9db8a07f13dcce81d521a097() {
}
function ctrlTransferCash() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'ctrlTransferCash'), this.v0a8be48e46ccc1e18607f09f59d88d3a = 0
}
function ctrlPurchaseOrder() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'ctrlPurchaseOrder')
}
function ctrlPurchaseOrderc1() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'ctrlPurchaseOrderc1')
}
function frmTransferCash(c) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmTransferCash');
var b = this, a = {};
a.title = 'Transfer Cash', a.width = 600, a.height = 320, a.modal = !0, a.resizable = !0, a.buttons = {
'Transfer Cash': function () {
b.vcd9324956f14fa5e73633cbba9b47ee5()
},
Cancel: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v84fbda0bd9cff2e014d94726ce158786, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmMarketShare() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmMarketShare');
var b = this, a = {};
a.title = 'Market Share', a.width = 660, a.height = 465, a.resizable = !1, a.va90278d5408d58739d90a5f6f484529d = !1, a.buttons = {
Close: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a), this.vf974bcd72cd3e9d6a1a105374ef14344 = function () {
b.update()
}, this.v39d56df5677da0f317d69a58e185ed7f = 13
}
function Journal() {
this.entries = []
}
function v0f3d636ceefe45f353f3d87759c5a984() {
this.timeStamp, this.v35660da52b9d862fbcb8b2f417ccc8d4, this.v301678c0732402665246d5fae3fc8b28, this.vabeac9d812479143db610f9772a99b08
}
function vab30ab9e164e8ab083b5e9a8e0de4a51() {
this.v36fe5e63f40d0b7d4ad611d5d84360ca = 0, this.points = []
}
function v465c11013bd362d682065721c9ed0945() {
this.stack = [], this.vbd60e4b30fa452979c6bf13ede25cb38 = 365
}
function v804a374a882158bcdcefa7baf6d516d2() {
this.series = []
}
function frmJournal(b) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmJournal');
var a = {};
a.title = 'Actions Journal', a.width = 300, a.height = 500, a.modal = !0, a.resizable = !0, a.buttons = this.v1863b84516dc7daf44262b862c096d2a(), this.vcf93fcf0f5393855fb90694252a2268f(a), this.v69cae692ace155bf2f816d6294dc710d = b
}
function v4b1f64d84d3bddbc5effa45f1c1f4dd8() {
}
function frmComments(b) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmComments');
var a = {};
a.title = 'Comments & Messages', a.width = 440, a.height = 500, a.modal = !1, a.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v2275d44d1a98fd65546bb9857a3bf7b2, a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v97abac90352903cdfe7ffccc2945507d, a.resizable = !0, a.buttons = this.v0d54aef058919d153e04ddd5b25562dd(), this.v7971aa07969acc62e63bac7b0087df5c = !0, this.vcf93fcf0f5393855fb90694252a2268f(a), this.date = null, this.log = b
}
function frmInstructorAuth(c, d, e, f) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmInstructorAuth');
var b = this, a = {};
a.title = 'Instructor Authentication Required', a.width = 450, a.height = 280, a.modal = !1, a.resizable = !1, a.buttons = {
OK: function () {
b.v8c8c6361fba47e840d52d312e89e8e73()
},
Cancel: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.message = c, this.host = d, this.token = e, this.va7cedb470acbdbf147ac49c353c80889 = f, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmProvideCash(c, d, e) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmProvideCash');
var b = this, a = {};
a.title = 'Provide Cash', a.width = 260, a.height = 250, a.modal = !0, a.resizable = !1, a.buttons = {
OK: function () {
b.v8c8c6361fba47e840d52d312e89e8e73()
},
Cancel: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.v1d6de8ee635e426d371be2b92889236e = c, this.v146cbf1be4840834f345dfd1da3c2ef8 = d, this.v74eac6ee928fedd5c6de5ef00c5a01e7 = e, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function v3aef348849502b00007d8929d120538b(a) {
this.v6204502ea08dbe5c0d2363f38aff1479 = a, this.vc4e4320484da496c90c153496097628b = {}, this.v1218d6d10b4ac55c12bac2ae0a588d08 = 0
}
function vf840a612069ad494acacc148ad09e073() {
this.data = [], this.vfb464cf7d5a850847b463fabfdcb9058 = 10
}
function ve9bfc6b4c64ef0d4e77d278e430a47e9() {
vb3096db423f08ae0cbb30d927ab57506.call(this), this.v7a9ce2c4e74e75d3cc4ccdef17e58262 = !0, this.v5f7a229843901b7645168b8756bd9f80 = null, this.nodes = [], this.v77d6dc73c0a0c078c42fc34c1c68ee7f = []
}
function v00c9f4d149099c55b010722e6778dab5() {
ve9bfc6b4c64ef0d4e77d278e430a47e9.call(this)
}
function v4aab7331ac7595e7894e32c19542a754(a, b, c, d, e, f, g) {
this.x = a == undefined ? 0 : a, this.y = b == undefined ? 0 : b, this.name = c == undefined ? '' : c, f && (this.width = f), g && (this.height = g), d && (this.v06061aa61a109873316d17c1a6ad57e0 = d), e && (this.v04ab3916b6c27abc67ffd69caea6f891 = e), this.v07e4c49087fff0680c161fa507f9d281 = [], this.__v478e9bb8d50167ef5a9d1d2d2770a170, this.__vf3519ee6f273867504965966427d93c3, this.__v87d4b2e209b1b68599242d563509051f
}
function ve5efc04c89b9805e9d580437dd8af057() {
this.nodes = []
}
function SurveyQuestion() {
this.ShortName = '', this.Question = '', this.v23884ec3fc121e3c7808655b89bce0c4 = null, this.vf7385935f1dec6f5d5049bd951106dcc = '', this.PossibleResponsesConcatenated = '', this.ChartType = 'Chart'
}
function v736a525eea2e8b45f2a1f2c1dcbf294b() {
this.vb21ecfb5c00e851c793e579e1c88b6b7 = [], this.va39651d0ad80a45b65daa6da6329a238 = 0
}
function v1249eb5de6a878e85aada1930a258c75() {
this.date, this.v459eb44430d6db2838819449245a6d93, this.vf49d8fbdcb0195e63ede0cc06ae5fe81 = [], this.responses = []
}
function frmSurvey(d, c) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmSurvey');
var b = this, a = {};
a.title = 'New Survey', a.width = 420, c && (a.width = 704), a.height = 440, a.modal = !1, a.va90278d5408d58739d90a5f6f484529d = !1, a.resizable = !0, a.buttons = {
OK: function () {
b.v8c8c6361fba47e840d52d312e89e8e73()
},
Cancel: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a), this.v3037b1bec2f95933a8edcc2103e25229 = [], this.v429a76019febf1ed58812e456cc7a490 = d, this.v061a2785387607e1d7e383de5ae686ef = c, this.vcb519d3d4ef0f894468aab43b30f54f1, this.v3b70f826ddbb3e466d0994fc129daa2e, this.vbceab8e8705bad3ca14d23a2dc64f84d = 0, this.v69cae692ace155bf2f816d6294dc710d, this.vd1ff08a5706e6d50164e77ae1b1406e6 = vbe7993a2ce2422b8674dc4b1008561b0.ve652e94ccc50f2bca1f8f5a8cc9f6e2e ? vbe7993a2ce2422b8674dc4b1008561b0.ve652e94ccc50f2bca1f8f5a8cc9f6e2e : 100
}
function frmSurveyResults() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmSurveyResults');
var b = this, a = {};
a.title = 'Survey Results', a.width = 800, a.height = 500, a.modal = !1, a.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v2275d44d1a98fd65546bb9857a3bf7b2, a.resizable = !0, a.buttons = {
Close: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a), this.v429a76019febf1ed58812e456cc7a490 = null, this.v3037b1bec2f95933a8edcc2103e25229 = [], this.vbd2cb4f9f8350e2e07cf66373ff3fdad = []
}
function v28f4c9f66e294b1221dd8f8a38a73a12() {
this.vecbd4990d9af3a5c5f3f2f28b6e7f5b5 = '', this.lessonName = 'Unnamed', this.head = new v9b0369ebdbdfa3b2620a4be3c6872201, this.count = 1, this.v7b78e28646d742077c92eda0b5918f29 = null, this.ve2b65d026cfdf29d6999eab6d33044a7 = null, this.vaeba16bb7fc612586d3e0edff02df394 = null, this.vad8ae53223f374f01108f86d252384cd = null, this.v4155b36cbe63e20ca6f36d5ca774b868 = '', this.vfbea00c73f90b1688774f4d951256c09 = 0, this.vb5e8773f408aebc56183f045b53164c1 = !0, this.vdd885c5c9e6e36fb6475bd0cc065ad27 = !0, this.partialGoal = !1, this.hasGoal = !0, this.questionGradePoints = 80, this.v0c42e942bf2a1c07452980a9cc1efc6e = 'Goal: '
}
function v9b0369ebdbdfa3b2620a4be3c6872201(a) {
this.text = '', this.v4b720c673788e5ccb3596d1aea3dc026 = null, this.prev = null, this.next = null, this.ve0732c3b014b3ef9b8325f4e58a3f358 = null, this.v50751a194fb118627129a54ac560b2a2 = null, this.v64af07c5bad001b74d3d1e9e4039b94c = null, this.v9cf019ead5f7d45138457cc8c7ae1b16 = null
}
function v6da5168b02ae4243cad2eee5c9fc8f35(a) {
this.text = a, this.vb21ecfb5c00e851c793e579e1c88b6b7 = []
}
function ve3e5ba7ab1114452acfd6c55f263796e(a, b, c) {
this.text = a, this.formula = b, this.v93c677e38b739083bb48a1995d8935fd = null, this.v3602243bd8251bd96baa4c931dacd3d9 = c, this.v7e192ca80cea0b8310af800606ef7c80 = null, this.vbe7cf131b5d30a5afc7100dfaa81930a = !0
}
function vf88539405aa8911395226002442538ea(a) {
this.state = a, this.step = a.head, this.goalMetMessage = A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('goalMetMessage', U.vbacce6a42a9154e1b2ea38c9b107fbb2('Congratulations! You have met your goal. Your assignment has been saved.<br><br>To review your work, re-open this lesson. You will be in "review mode" where you can see, but not change, your work. If you are in a project, you can continue on just for fun!')), this.earlySubmissionEnabled = A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('earlySubmissionEnabled', !0), this.va9e06e4ebfc1f1f94ca74bab891f12bb = A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('showContinuePanel', !1), this.continuationText = A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('continuationText', U.vbacce6a42a9154e1b2ea38c9b107fbb2('Your Sim has been submitted, and your grade is final.<br><br>You are now continuing the Sim. Your changes will be saved.')), this.earlySubmissionYesNoMessage = A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('earlySubmissionYesNoMessage', U.vbacce6a42a9154e1b2ea38c9b107fbb2('You have not reached your goal. Do you want to submit your work as final?')), this.earlySubmissionEndMessage = A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('earlySubmissionEndMessage', U.vbacce6a42a9154e1b2ea38c9b107fbb2('You have chosen to complete this Sim before meeting your goal. Your completed assignment has been saved.')), this.noGoalSubmissionEndMessage = A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('noGoalSubmissionEndMessage', U.vbacce6a42a9154e1b2ea38c9b107fbb2('Your completed assignment has been saved.')), this.displayGradeOutOf = A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('displayGradeOutOf', 100), this.answersRandomOrder = A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('answersRandomOrder', !1)
}
function v3b690a98f72fc19fa9a5b8f2ce457701(a) {
vf88539405aa8911395226002442538ea.call(this, a)
}
function v6b12be61a4f26343059f8e642027e113(a) {
vf88539405aa8911395226002442538ea.call(this, a);
while (this.vdee529b3a9ceb1ecc85e836bfa47f89b() && this.step.vfca91946e276b82c9e3cd45ad1f9f02a())
this.v294b4c4eeec804be91b80960615e7ecd();
this.start()
}
function cstmIAQuestion(a, b) {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'cstmIAQuestion'), this.v6a2a3c35cc570688e335f07a60c280a2 = a, this.v1a5d737866b9cc94ff4bf787cf85c5d4 = b
}
function cstmIAAnswer(a, b, c) {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'cstmIAAnswer'), this.v6a2a3c35cc570688e335f07a60c280a2 = a, this.v1a5d737866b9cc94ff4bf787cf85c5d4 = b, this.v10352643129b62e582bd235e58fabafb = c
}
function cstmIAPanel(a, b) {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'cstmIAPanel'), this.vdee38eb7b5c85b5231449c9938b8a341 = a, this.v1a5d737866b9cc94ff4bf787cf85c5d4 = b
}
function vb4224fc2fe84fbabb011095046a0b811() {
v76df45e01f375ce83274fd873101ca63.call(this), this.__v338c32784170215e5f4e3bc3bbdc3f84 = null, this.__v314385c9a8894d21bf0fc7aed35a23a9 = null, this.__v2cbc24296d0f74841ec12e7645afb96e = !1, this.__vdcecb0da604458b362570a169fd8087a = !1, this.events = new va20bdc309a7a3a70da33773c4c0407ec
}
function v9d38cc6cb3fc9bb07cd7a3d22d5be7a7() {
var a = A.vf3351ba56d8b7e42f05b30b819a9db80().canvas.width();
this.vfa70ca62e66b1581fc05bef8ab9d26f9 = [], this.v876c25a70db2de89419eab0207b02ea1 = {}, this.__v435d7f241ea641efc8227e38c949836f = null, this.__v99af750f6ff9ba2929ddad7384e04a9c = null, this.__va96aad651454f989fb91fc980e37316c = null, this.__va51081234a0d12606d84ae2e7a634035 = null, this.__v9638a1d067d2b0e5e6ca187ca9c47a89 = {
selectedNode: {
strokeStyle: 'black',
fillStyle: 'rgba(128,128,128,0.3)'
},
dropNode: {
strokeStyle: 'green',
fillStyle: 'rgba(128,128,128,0.5)'
}
}, this.nodeTileImages = [null], this.__vab32eb4048ac52487ddf8c9a74123769 = {}
}
function v76df45e01f375ce83274fd873101ca63() {
}
function v9bc041960e80b10064b57b79a0d88cd9(c, d, e, a, b) {
v4aab7331ac7595e7894e32c19542a754.call(this, c, d, e), this.baseTileImageName = null, this.gridX = a ? a : 0, this.gridY = b ? b : 0
}
function v27eb52255b219d669bc8df98aaa52940() {
v76df45e01f375ce83274fd873101ca63.call(this), this.v2709a24449d9a4bf61d7ad0074b39acf = 0, _.extend(this, vb4224fc2fe84fbabb011095046a0b811), vb4224fc2fe84fbabb011095046a0b811.call(this), this.__vbcc689c942faa74e017fb71b44a0c45c = {}
}
function vd88269f14c639d29ae709e1533438c8a() {
}
function va81914decb1e6e367dd3b62fe669ef4d() {
}
function v5bafaa73e0e648e291bbab7ad5a30af0() {
v76df45e01f375ce83274fd873101ca63.call(this)
}
function frmContextMenu(b, c) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmContextMenu'), this.v271e95354506edc0a553779dc28a89b0 = !0, b.pageX && b.pageY ? this.ve04a1cd5913bc6c5186bcad7ccbbe7ab = b : this.ve04a1cd5913bc6c5186bcad7ccbbe7ab = b.currentTarget, this.position = {
my: 'left-2,top-2',
at: 'center',
of: this.ve04a1cd5913bc6c5186bcad7ccbbe7ab,
collision: 'flipfit fit',
within: '#sim-view'
};
var a = {};
a.modal = !1, a.width = 'auto', a.height = 'auto', a.minHeight = 0, a.maxWidth = 300, a.width = 300, a.classes = { 'ui-dialog': 'dialog-context-menu' }, a.resizable = !1, a.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v2275d44d1a98fd65546bb9857a3bf7b2, _.isObject(c) && _.merge(a, c), this.v82c97d4ef08948c76de260b25841376b = !0, this.v4020eb5d50d55d5589df0b16695bf2b6 = this.v5f699b6ce61b65708a4d26215dd340bb(b), this.vbf76e8310414427f5b5b16158414a6e6 = !1, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function vd7f8cf09473664e029bdd95e1f9a1676(a, b) {
this.v737eaa6afb8f912ddc9d1a11e32828b3 = b, frmContextMenu.call(this, a)
}
function vb0ce4b9c86af810c4eef11c74abd32be() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'Alert');
var a = {};
a.title = 'Floor Defs', a.modal = !0, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function v66d6ce2ecfae7bc6d704faf71869d98b() {
this.v4f240c4a6f3a19456a2778f9aa66b58b = '', this.vb0e9859cdf5cd68a79902db2a6d14f64, this.v0dcef7be7dabd265d4d88d099e188481, this.v31fd72245601c11ca15d4ad52275789a, this.v1e6a4c18ac1ebd1fc4fd7754e0456f39 = 0, this.totalSteps = 0
}
function v882dbe972e6ff2620ccf6173b0cc3500() {
va81914decb1e6e367dd3b62fe669ef4d.call(this), this.quantity = null
}
function vaa3654ee2359ca7a5fd7b1ea9d05a7cc() {
v76df45e01f375ce83274fd873101ca63.call(this), this.node = null, this.ve08e39eb47161113e34e559e1cb5cb3b = 0, this.vd7237e6d90a0ba3db6fd9b84db8c053b = {}, _.extend(this, vb4224fc2fe84fbabb011095046a0b811), this.v9bfb605e9e535db1c5e1273e80914d30 = [], this.dy = -1, this.v8e3eabf4cd8fb5d00df1c33f8dd07812 = 0
}
function v18f49e7254cafd0c5584b395164ada8d() {
}
function vca3e211e578730f5955642416944fc39() {
vd9fe375ebc5a23cd63cd5eeb26ccb805.call(this), this.process = null, this.vfb7ba928d1f012a573b10b729872fad0 = 0, this.v7ce86f426ce3fcb24bfb995ffd6813db = 'Stand', this.v2ecb124d178a2521bae12384a1832f33 = [], this.v2786ed1d370d26e1a7f1d765f5bc3d9c = new Array, this.v5af95216e115d76c3042d72f1afac26f = new v18f49e7254cafd0c5584b395164ada8d, this.target = null, this.vd2610ce0c7b1e77d64c482a7a7df7f98 = 0, this.v75380de36077a7fbbd9a77b9e72f2c82 = 0, this.v83e66ee6d0b5fe48ef9c9756516874b5 = 0, this.vc81df2039db1a220508b9f00d7cc7365 = null, this.__v9d4e89b87bb3cd416e58a1e74cc90741 = {
vdff2db1a1e25c06cea88c3d44986e06f: 15,
v317eb05f31ea48e10b1e1d3db4d4d548: 70
}, this.__ve53079a360c86165a33746ac2b5388d9 = {
v32a423450f9c4507ce955152c2650564: 0,
vca4f1e2316117c3761c1e6ed47ca7e4e: 1,
vba500f82224746ebc277687c44396719: 2,
vd0e515d0f91d6716dd1b966c1c617293: 3,
va00800a74f59579fc5f00667f737974f: 4,
vcc51f848da7c73e6e682fc1a12d7a738: 5,
vbdbfc1941323a4f37ae6ef49f3737404: 6,
v746b94464c46642872fcc3ac5b556e4a: 7,
v20445dbf91503f7d3b57eb18d5839759: 8
}, this.__v5cd7d9b41801bfd2bbe9a23da6451b27 = !0
}
function v4b5ac2920c4dbdfe7625c792c4f2ffff() {
v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.call(this), this.v68e47a15b509f0f991ca2c330301190a = [], this.v91d882cc13a1210c1a8462ac0e5bb93e = {}, this.v5016a24825ffee124e6fbacb46933e41 = {}, this.v46b6de48a13e72727a95759f3a3c1a25 = [], this.__v747de00f88c9121e362e3efba2927fa8 = [], this.events = new va20bdc309a7a3a70da33773c4c0407ec, this.__v71790054a2a40b15200f60aab3038748 = new va20bdc309a7a3a70da33773c4c0407ec
}
function ve01cf3aa195c1e646452b8bceb756fd0() {
}
function v11ae23f0d8d2c70b8f28353b8ac02a01() {
v27eb52255b219d669bc8df98aaa52940.call(this), this.scaleFactor = 1, this.__vbcc689c942faa74e017fb71b44a0c45c = {}
}
function vf08a6623d53eeea5258a0007a932951c() {
v11ae23f0d8d2c70b8f28353b8ac02a01.call(this)
}
function v904e08bd5378fd045017dffe63a74e5f() {
v11ae23f0d8d2c70b8f28353b8ac02a01.call(this), this.items = [], this.v28c8d0e122c3726c81cb836ae9ba3dac = {}
}
function v5d175940a170ccbf06e358126101192c() {
this.v054274c8bc723ab62b822a20e15365b1 = 0, this.ve01e9541038aef5ac1cb2f343df50c9f = 0, this.v5112222e1e7849c10f25c4c79e04df7a = 1, this.started = !1, this.stopped = !1, this.vdcded69f1bb51db8b8b4f5f4c2dc7f75 = 1, this.vd231284b644ab5685b8d80d8c3259a7a = new Point(0, 0), this.v66c08e98073ef25122fe803efb81ad5a = [], this.vbbd92215e11cfcb0ab34a6ae7954518a = null, this.v25ffd0e674efbccb966ed458b2c53c4e = v5d175940a170ccbf06e358126101192c.v8813797593d12514c5cba7f8480eee0a.v2a62bd5f72e38f326b72f36696c16382
}
function v6c8e2523b426d9300d1463b586afc667() {
this.animations = [], this.v9f87ed35276cca50cf80c6e96ea2bdbd = 0
}
function v1d9545606d219a6b6b917d8df442d16e() {
vaa3654ee2359ca7a5fd7b1ea9d05a7cc.call(this)
}
function vff83f26eb97d0c05c0b0068b1902c577() {
vaa3654ee2359ca7a5fd7b1ea9d05a7cc.call(this), this.footprintBlocked = !1, this.v591c3ebab0dc1959c856034d3d9b670a = []
}
function v3ef233c5d57ef7bfef4ce46eb6a46778() {
vaa3654ee2359ca7a5fd7b1ea9d05a7cc.call(this), this.keepCarriedItems = !0, this.userCanMove = !1, this.userCanRemove = !1, this.userCanRotate = !1, this.vf8d895ebd0c3eabf1062782543d10220 = !1
}
function v9699b24815d6dfadfa0243b18016fdda() {
vaa3654ee2359ca7a5fd7b1ea9d05a7cc.call(this)
}
function v7a9f14e612f7b84d62f123daca663ebc() {
vaa3654ee2359ca7a5fd7b1ea9d05a7cc.call(this)
}
function v54895b27e34ab34a9ebec1e7553b97a8() {
this.__vf71eb095135a5fd2ec895b0c2671bd19 = {}, this.__v74fab4a8125c7261a2a5254b1078115c = {}, this.__v51826f8ea7858340894e6a23ad6004d7 = {}, this.__v7c24d1e4623d365e87a100c9731a4d34 = {}, this.vfa2863c7918c37c5d43dc39b52f3e809 = 0
}
function v53dc83a020dff29b8fb05a08a5017c07() {
v4b5ac2920c4dbdfe7625c792c4f2ffff.call(this), this.__vab32eb4048ac52487ddf8c9a74123769 = {}
}
function v56d2db3a957c006c8270c232ac724ddf() {
}
function v0df9bf38e174113f03f32babe1a54bce(a, b, c, d, e) {
_.isUndefined(a) || (this.x = _.round(a)), _.isUndefined(b) || (this.y = _.round(b)), _.isUndefined(c) || (this.name = c), this.gridX = d ? d : 0, this.gridY = e ? e : 0, this.__va5ed1f5c9d4109c4b9412f79445f0c16 = {}
}
function v3adba591135ca58fddebcd8d3e6584ea() {
}
function v89365b2f63ef0ee3d846cbed55db4c60(a) {
this.building = a, this.v949af90f9fd713ce3224875373c95712 = [], this.v3c416c85cd006151fb400843d5e72eba = 0
}
function BuildingWallObject() {
}
function vc709f2e09b253547e230bae6298fd291() {
vca3e211e578730f5955642416944fc39.call(this)
}
function v5f14a964e4c00162b4a80b0a3839665d(a, b) {
this.v737eaa6afb8f912ddc9d1a11e32828b3 = b, frmContextMenu.call(this, a)
}
function v667bf751c2e115e3a32a2b2e5947c3ee(a) {
frmContextMenu.call(this, a)
}
function ctrlSocialMediaBookedAd() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'ctrlSocialMediaBookedAd')
}
function frmSocialMedia() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmSocialMedia');
var a = {};
a.title = 'Promotion - Social Media', a.width = 675, a.height = 400, a.va90278d5408d58739d90a5f6f484529d = !1, a.vacc20e29cd500930597f6ed841b41cb5 = !0, a.resizable = !0, a.buttons = this.v1863b84516dc7daf44262b862c096d2a(), this.vcf93fcf0f5393855fb90694252a2268f(a), this.v60eee9efde443f55edfb76a8037434f4 = [], this.v051028def1e88eeaf15cf8425bbc0fae = [], this.vf7698d638b3d72f12129abffc65e8e51 = -1
}
function frmImagePicker() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmImagePicker');
var b = this, a = {};
a.title = 'Select Image', a.width = 350, a.height = 450, a.modal = !0, a.resizable = !1, a.buttons = {
'Select Image': function () {
b.v14fee53332291423506b8add614430a0()
},
Cancel: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a), this.vf7698d638b3d72f12129abffc65e8e51 = 0, this.v60eee9efde443f55edfb76a8037434f4 = [], this.vf67435775159402770d545aa82457a06 = null
}
function v7e95735b4761a63fbb94c3e185705315() {
Object.call(this)
}
function App(c) {
for (console.v57a3c8fe83e4816e7f187a6398fdb914 = function () {
}, v103be72cf6bff4222bdadabc2d610ad6.call(this, 'Virtual Business - Entrepreneurship', '1.0.2.1', c), this.v1a5d737866b9cc94ff4bf787cf85c5d4 = null, this.v6a2a3c35cc570688e335f07a60c280a2 = null, this.v65c637ea0baf5919932c148aeb4cc9f9 = [], i = 1.5; i >= .15; i *= .9)
this.v65c637ea0baf5919932c148aeb4cc9f9.unshift(i);
var a = _.map(this.v65c637ea0baf5919932c148aeb4cc9f9, function (a) {
return Math.abs(1 - a)
}), b = a.indexOf(_.min(a));
this.v65c637ea0baf5919932c148aeb4cc9f9[b] = 1, this.v788ec81b28d71c67471a9c4461be0cce = 8, this.v878b37b9752c49c5567d5b9658b51622.push('The City'), this.v6f315f5409fdad080342ebf690e228a7.push('newSurvey'), this.v6f315f5409fdad080342ebf690e228a7.push('surveyResults'), this.v6f315f5409fdad080342ebf690e228a7.push('formBusiness'), this.v6f315f5409fdad080342ebf690e228a7.push('investing'), this.ve21ce26f41ddcf1884f33c29e0fdf9da.push('newSurvey'), this.ve21ce26f41ddcf1884f33c29e0fdf9da.push('surveyResults'), this.ve21ce26f41ddcf1884f33c29e0fdf9da.push('formBusiness'), this.ve21ce26f41ddcf1884f33c29e0fdf9da.push('locateBusiness'), this.ve21ce26f41ddcf1884f33c29e0fdf9da.push('investing'), this.ve21ce26f41ddcf1884f33c29e0fdf9da.push('financing'), this.v1f0f046d09faa6d8fc1df33501d96d14.push('newSurvey'), this.v1f0f046d09faa6d8fc1df33501d96d14.push('surveyResults'), this.v1f0f046d09faa6d8fc1df33501d96d14.push('formBusiness'), this.v1f0f046d09faa6d8fc1df33501d96d14.push('investing'), this.v8c8bd58acc7b2708cd2cd2811a9e99bc.push('dashboard'), this.v8c8bd58acc7b2708cd2cd2811a9e99bc.push('incomeStatement'), this.v8c8bd58acc7b2708cd2cd2811a9e99bc.push('balanceSheet'), this.v8c8bd58acc7b2708cd2cd2811a9e99bc.push('salesReport'), this.v8c8bd58acc7b2708cd2cd2811a9e99bc.push('personalFinance'), this.v8c8bd58acc7b2708cd2cd2811a9e99bc.push('comments'), this.v2d4cfed0d0594e509be17a93e5cfeea3.push('personalFinance'), this.v2d4cfed0d0594e509be17a93e5cfeea3.push('competitors'), this.v2d4cfed0d0594e509be17a93e5cfeea3.push('locations'), this.playerName = new vcfe882df616f899ab32c02dee5b814a6().next(1e4).toString(), this.sessionToken = 's', this.vf3a2547123b89cb0c8cab96c42f8f2c5 = KMDate.v1d700e3585b29ad258b383abd78b7971
}
function vd1f0b08ac91fb095da9733e8730e4efc() {
v1fb4202428256367dd449ac0a105af71.call(this), this.id, this.__v29bb5e2875d017ad23a25d5261bdf369 = null, this.v38fb5762849ed73fb3ce7cc411d46da8 = [], this.vec27723f8e5b4572a8e74e5629096ab0, this.business = null
}
function v0e81b2ca085cf0a96315888423b4583a() {
v3c76d6af163db340a67d351d5924d819.call(this), v3c76d6af163db340a67d351d5924d819.vd889c228d625e996950528bf0b6d7090 = 24, v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772 = 48, v3c76d6af163db340a67d351d5924d819.v5c2c30c3886c31a85dfe83517d52fdf3 = 88, v3c76d6af163db340a67d351d5924d819.v1aeff1c4a83a5e6c9ce6fa9025c55ec2 = 48, v3c76d6af163db340a67d351d5924d819.vbe6439d3131320cbcdedd0eb912a3643 = 2, v3c76d6af163db340a67d351d5924d819.vf47058d5d2dc9d44cb67c1b2566be945 = 39, v3c76d6af163db340a67d351d5924d819.v4ad1f0e63798fd957ab040d73b5323e7 = new Point(v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772 * v3c76d6af163db340a67d351d5924d819.v1aeff1c4a83a5e6c9ce6fa9025c55ec2 * .92882, 190), this.vae3248375c7ea507926dbb3f93b8b9eb, this.vc0acd85b2ab23661b6ddf994d16c4962 = [], this.v2719513640e539dd9d8b52357a37bae1 = 0, this.vb217cde0df5d3631a90b6c1b14bab969 = 0, v3c76d6af163db340a67d351d5924d819.v48fab7c7de7108b445628c50edaf8bf3 = .5
}
function vbe7993a2ce2422b8674dc4b1008561b0() {
}
function v6c4e227ce275eaaa31628f530f296272() {
this.name = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Not Named'), this.v5f4b515801644739b828937618e06aa8 = vbe7993a2ce2422b8674dc4b1008561b0.vd4aee7f2efe19cd3685cf465f9e4a9c9
}
function vd38ed7d79788f8f0504925de526a606c() {
v6c4e227ce275eaaa31628f530f296272.call(this), this.v69cae692ace155bf2f816d6294dc710d = null, this.v8d023b5d75d05338f296c900a8006877 = [], this.v089e9683690754bab827077d8608cab8 = [
[],
[],
[]
], this.v8cb88d71ca419d9c73160328fefaa003 = [], this.vc0dd45f640c6adbd282d86cb9219b1c0 = 0, this.v8b074669b8fd7ff3fb0588ad258874be = 0, this.events = new va20bdc309a7a3a70da33773c4c0407ec, this.__v71790054a2a40b15200f60aab3038748 = new va20bdc309a7a3a70da33773c4c0407ec
}
function v15af854e47e9e02e31d18da1dd1c67c4() {
v26eec6ff9a97369555cb05732e4e6c77.call(this), this.vdee38eb7b5c85b5231449c9938b8a341 = new v28f4c9f66e294b1221dd8f8a38a73a12, this.v69cae692ace155bf2f816d6294dc710d = null, this.v65ab413279ff6fa71bc3bef833b049d8 = null, this.vbd3ad56cc0ad9dfd1cc46d00d8c1ea0e = 0, this.v3037b1bec2f95933a8edcc2103e25229 = [], this.v62ee2f4eafb88b3bcd64b6910f2b8543 = [], this.vf65d3a958828d19affc26ece4228d68e = [], this.va681a3327b14f5871f61a15396e05dce = !1, this.veed65393d9d7341413eb152a6c129aaa = [], this.__v71790054a2a40b15200f60aab3038748 = new va20bdc309a7a3a70da33773c4c0407ec, this.vf03956c8ba567b36f877ef260286a4b0 = {}, this.vdfda1569278d508eddd78a322611c7de = {}, this.v24646c92407a0b78d4d4bd2047ab01ab = {}, this.ve035dc241cfb10eab56cc03413e59c3f = {}, this.ve71a9d85e501e5c218d1d27a2045b3e5 = {}, this.v12d253cb7aca87eea10cfe4aee8d5ca6 = 1e4, this.v704cbfca9ac3050f910faf3cdf21ec81 = {}, this.v0faff86de26557f61edc15b65d34c008 = {}, this.v1f4d040f69ff9632b981ca81102925a0, this.v3a655215d970bc6729a7044e1ff68026 = [], this.v13473b7d6af42ee329c8d7b0104d06c6 = [], this.va3dff5208e81fa96a5669ac7aef34f18 = {}, this.v726654225e7a94628443bdb8afc12e68 = {}, this.v7eeeac6c326acad8c9d2fc5dcf09fc14 = {}, this.v4951c36722bcae18201ae7c6c5f48811, this.vd24dbb1ea37e3458354192d79b9005cf = [], this.settings.v434c9c4a8cd1185eb14d0deceb7a367e = 0, this.settings.v3a483b495099803e9e4f0682271dc343 = !0, this.actions.formBusiness = !0, this.actions.locateBusiness = !0, this.actions.closeBusiness = !0, this.actions.financing = !0, this.actions.buildingTeam = !0, this.actions.resources = !0, this.actions.hours = !0, this.actions.pricing = !0, this.actions.socialMedia = !0, this.actions.operations = !0, this.actions.newSurvey = !0, this.actions.surveyResults = !0, this.actions.transferCash = !0, this.actions.investing = !0, this.actions.insurance = !0, this.v86d48cb74a138405a193f753c6addd71.dashboard = !0, this.v86d48cb74a138405a193f753c6addd71.incomeStatement = !0, this.v86d48cb74a138405a193f753c6addd71.balanceSheet = !0, this.v86d48cb74a138405a193f753c6addd71.salesReport = !0, this.v86d48cb74a138405a193f753c6addd71.personalFinance = !0, this.v86d48cb74a138405a193f753c6addd71.comments = !0, this.v86d48cb74a138405a193f753c6addd71.backlogReport = !0, this.settings.RandomSeed = -1, this.settings.StartDate = new KMDate(2023, 11, 30, 23, 59, 59, 0), this.settings.StopDate = KMDate.v7de0e242fb310ded4c773006026bd708, this.settings.MessageFilter = 'Trying to find a Entry';
var a = 12;
this.settings.SimulatedSecondsPerStep = 5 * a, this.settings.v260ee1681c5326a7ac3a5b92fe4cb4ee = 5 * a, this.settings.vdb31ff271950092fbf52b98eea550e52 = 5 * a, this.settings.v7ccadc0bb41a43868b88ecc8475c8094 = 1800, this.settings.speeds = [
.1,
.5,
1,
2,
3,
5,
25,
50,
100,
5000
], this.settings.speedLabels = [
'1/10x',
'1/2x',
'1x',
'2x',
'3x',
'5x',
'25x',
'50x',
'100x',
'5000x'
], this.settings.speedSimulatedSecondsPerStepMultipliers = [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
], this.settings.ve30371801d79fe8a25d083ba79e8adb6 = 5 / a, this.settings.vfc40693281cdef4745ebd65e6866d7df = !1, this.settings.v840939d14ae374c117ef62b928ed3f6e = !1, this.settings.v5fbc892f267ac94a8bf68bb24172a946 = !1, this.settings.ved57cc59378dd9ee26bc509c897e02eb = !1, this.settings.RunToOffsetIntoDayInMinutes = 360, this.settings.ShowCumulativeProfit = !1, this.settings.vc2b525abb59a9681f2bf5f5a46fb4bde = !0, this.settings.v16e2e3168c8da5f520897f054e4dc159 = !0, this.settings.vfbd9e042605fe9508daabde6c2f8ad93 = !0, this.settings.v5f7d185e7d0b18e1615e58c9d7a3fc17 = !0, this.settings.v87d77b4c8d2fcbd1df9cf4e38420587d = 8e4, this.settings.v4ac9d9ff42c8d92c28ec18e9a2b06ccf = .2, this.settings.maxBusinesses = -1, this.settings.v7452ea9888a6cd35eb7207d27fae1b51 = 0, this.settings.v1cd3f9e5187c380e556082671f86cd62 = 25e4, this.settings.va5c4c0355cee5031d95de1d6dc63105c = .4, this.settings.vf3665ffee4b05925169eab799318fb7c = .035, this.settings.v3caa483e732eb1b2dc341ddf100d55a5 = .002, this.settings.v9a356e04a9406e47bbb990567297316d = [
'Sun',
'Mon',
'Tues',
'Wed',
'Thurs',
'Fri',
'Sat'
], this.settings.vb12e1980a1763aa8b19506587bbbdc70 = !1, this.settings.v8520b021713b6dd0a8c5eee5b2072764 = 4, this.settings.v4c7cd9266eb7cfb5cf7d3cbb0043b5e5 = 24, this.settings.v5296bb2c5a8913e9c7dce0098857b143 = 1, this.settings.vda018648772bf340209e15279f32dece = 0, this.settings.vc8eb65e0d09dfab1ba679e8c07b98241 = !1, this.settings.v36e2943b646d89d43f75d2e3af33fe3d = 1, this.settings.v92f36e5bd8b78317b1d5f05e7b7da85b = 119, this.settings.v74c89424ade6730719892103302413e5 = 11, this.settings.v6c8b17c5d54f4aa6cabfa3eac41ff49f = .12, this.settings.ve4551c8e6b11cb7790131a850ff2683a = 3.5, this.settings.v3e7cbb3373a5a7b496f3016ee308f653 = 1, this.settings.v72c84a3dcdc5bcc32ae0d04f4082fe51 = .3, this.settings.v1c404453dce4acdd7b5b8cbdeda50d76 = .1, this.settings.vd0a9b01523ed487b13268c33c897d5a8 = 'Inside Business', this.settings.v0c69a5263517f9c4f641a4a24c036dda = .001095890410958904, this.settings.v8d3e941e6da8075788aea44d1d2b656b = 36, this.settings.vbf3c7e6b66d0283b170419c415db33b5 = 7, this.settings.v99a61ac8f54880bfdc459bbd04051944 = {};
var b = this;
_.forEach(vbe7993a2ce2422b8674dc4b1008561b0.businessesData, function (a) {
b.settings.v99a61ac8f54880bfdc459bbd04051944[a.id] = 1
}), this.settings.v2982733cf1eaaba3664c0b07a775152b = [
'Smoothie Shop',
'Pizza Place',
'Plumbing Business',
'Electrical Business',
'Physical Therapy',
'Hair Salon',
'Auto Repair Shop',
'Catering',
'Online Gift Baskets',
'Trampoline Park',
'Bowling Alley'
], this.settings.vb3c4cf46550d74f84daed7948dc7f549 = !1, this.settings.v6ffd1037be2a37c3c28576cdd9a4ddb1 = !1, this.settings.v40ad72bcde0a12c8920ef0284530c9b0 = !1, this.settings.v1603513a6e33340f3f127fd6dd901c76 = !1, this.settings.v962af2a60ab0a6ecafb176b8d87bc515 = [
vbe7993a2ce2422b8674dc4b1008561b0.vd4aee7f2efe19cd3685cf465f9e4a9c9,
vbe7993a2ce2422b8674dc4b1008561b0.v0f274235add49f14f11743d51f4fa7e3,
vbe7993a2ce2422b8674dc4b1008561b0.v4191cba87e195fea6a26a7131488a76e
], this.settings.v692d8193ca71a5d12ab1841474d03f32 = 4e5, this.settings.ve9657023d82b3d00a39175681602e492 = 3, this.settings.v00877ce26e4ebe00041b0d4135b63eda = .8, this.settings.v1db656875d87ab2b99986838ef6bd2e3 = {}, this.settings.v43977c99cbb4aedb4d6c2d1bc585a292 = Number.MAX_SAFE_INTEGER, this.settings.v54778d57146383ff6c9570e6561bc997 = Number.MAX_SAFE_INTEGER, this.settings.v9f10ca7542ed5bd7cadd7d5b4976354a = [], this.settings.v8229a0002ca6f6ae9c7791d4d40ad050 = new vab30ab9e164e8ab083b5e9a8e0de4a51, this.settings.v8229a0002ca6f6ae9c7791d4d40ad050.v9a4377c5d07b5256fe556e93b36e2981([
new Point(.25, 7),
new Point(.5, 5),
new Point(1, 3),
new Point(1.3, .6),
new Point(1.5, -6),
new Point(2, -10),
new Point(5, -100),
new Point(6, -1e3),
new Point(7, -1e4)
]), this.settings.v8cef49129492b45e8fb7b1e9e3bd8f3c = new vab30ab9e164e8ab083b5e9a8e0de4a51, this.settings.v8cef49129492b45e8fb7b1e9e3bd8f3c.v9a4377c5d07b5256fe556e93b36e2981([
new Point(.2, 2),
new Point(.4, 1),
new Point(.6, .5),
new Point(.8, .2),
new Point(1, 0),
new Point(1.2, -1),
new Point(1.4, -4),
new Point(2, -10),
new Point(3, -100)
]), this.settings.v18b4390039f616a502256dc8a0311f0d = new vab30ab9e164e8ab083b5e9a8e0de4a51, this.settings.v18b4390039f616a502256dc8a0311f0d.v9a4377c5d07b5256fe556e93b36e2981([
new Point(0, -5),
new Point(.2, -4),
new Point(.4, -2),
new Point(.6, 0),
new Point(.8, .4),
new Point(1, .6)
]), this.settings.v34e1a09708760be371da1b869d28449f, this.settings.v7a16fc6fe931ebb723036642d951988b = 3
}
function vb1ceda6f63716fb5f02747272a757fea() {
v1249eb5de6a878e85aada1930a258c75.call(this), this.v89b7ffe83a1469f56336257a9eda96a7 = new vcfe882df616f899ab32c02dee5b814a6(3576), v1249eb5de6a878e85aada1930a258c75.v841a17d75db4c0b16b17c1016b180926 = 1, v1249eb5de6a878e85aada1930a258c75.v5382d27c51e7ad44c39b229b974df391 = .1
}
function vbf2452c64e3bc190d9d15514a514fc19(a, b, c) {
vdef370b7d052efa734ec16484bdb8964.call(this, a, b, c), this.vf71631a319ae3b36bd2abd3a274eee67 = !0
}
function v4116fdf38c196d64196e5d7558d61df8() {
vd9fe375ebc5a23cd63cd5eeb26ccb805.call(this), this.initialized = !1
}
function vf659b571c3e52f9d75d5d0e0ac377543() {
v00c9f4d149099c55b010722e6778dab5.call(this), this.__vab32eb4048ac52487ddf8c9a74123769 = {}
}
function v06f1a104cb14c72396b252086b754ed5(c, d, e, a, b) {
v4aab7331ac7595e7894e32c19542a754.call(this, _.round(c), _.round(d), e), this.gridX = a ? a : 0, this.gridY = b ? b : 0
}
function v2477df74a2be235f7dc6639a034b8825() {
vd9fe375ebc5a23cd63cd5eeb26ccb805.call(this), this.initialized = !1
}
function v8ccef8b2177736a24f97262ed82b77e9() {
vd9fe375ebc5a23cd63cd5eeb26ccb805.call(this)
}
function vfe55e52371dbf116f4892f45dc5aaaef() {
vb3096db423f08ae0cbb30d927ab57506.call(this)
}
function vb36959732be4fc2b4e8a7d03cc9fdd3e() {
}
function BusinessWorker() {
vc709f2e09b253547e230bae6298fd291.call(this), this.v66fdf272c1567f841f7ec17b0a0c9641 = !1
}
function vb06488b7031c04ea08f6daeab75c9728() {
vc709f2e09b253547e230bae6298fd291.call(this), this.veec4a6e7e36eed66f9033fa71b42c156 = 0, this.vb4232ee40b6242ac0f82a762b8359531 = [], this.__v5cd7d9b41801bfd2bbe9a23da6451b27 = !1
}
function vc46fd1b7bc918e5d080af956e00aec46() {
vb06488b7031c04ea08f6daeab75c9728.call(this)
}
function v1cddde11a2766209c65fafc3bae80915() {
this.v5d4449287be1af1f526440137e53db43 = [], this.vf1b163779e83009236cc98be2f860a5e = 0
}
function v6685af5da3338525a360221aefd4194b() {
v882dbe972e6ff2620ccf6173b0cc3500.call(this)
}
function v9a86b6763a8fa9353943555d2f38dd7b() {
vb3096db423f08ae0cbb30d927ab57506.call(this), this.impressions = {}, this.va2b60a7ad53f343a6f92ac3165137a94 = {}, this.__vfda5cd55a74d3160994497a9e3ba30bd = [
'WOM',
'Social Media'
], this.recentlyShopped = {}
}
function EntrepreneurshipSocialMediaAd() {
v7e95735b4761a63fbb94c3e185705315.call(this)
}
function EntrepreneurshipFloor() {
v53dc83a020dff29b8fb05a08a5017c07.call(this), this.__vab32eb4048ac52487ddf8c9a74123769 = {}
}
function v84e50dae70b0beda56e2e1955132839f() {
v11ae23f0d8d2c70b8f28353b8ac02a01.call(this)
}
function v58464e861634a5228a23105f7ed98231() {
}
function vf36d9f2ae59b9b7074cb86bb4802e845() {
v84e50dae70b0beda56e2e1955132839f.call(this), _.extend(vf36d9f2ae59b9b7074cb86bb4802e845.prototype, v58464e861634a5228a23105f7ed98231.prototype)
}
function vb9826e860aee514e360da3b934dbdeb2(a) {
v58464e861634a5228a23105f7ed98231.call(this), this.stockpile = a
}
function vcfc156260de32f605952d9671238a4ff() {
v84e50dae70b0beda56e2e1955132839f.call(this), this.v1c51148ecb41af81c1ab91eda74079ec = [], this.actionEnabler = 'operations'
}
function v201c1885dbeadd6fc7447f01d428a315() {
vaa3654ee2359ca7a5fd7b1ea9d05a7cc.call(this), _.extend(vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype, v58464e861634a5228a23105f7ed98231.prototype)
}
function v021393a5a7127df1d6811e71bdf3b05f(a) {
_.assign(this, a)
}
function v9fa4b20ed1ad785004940a517ca7e516() {
}
function vb7ccde4c325724d78b0acba8f6052074() {
vff83f26eb97d0c05c0b0068b1902c577.call(this), _.extend(vb7ccde4c325724d78b0acba8f6052074.prototype, v58464e861634a5228a23105f7ed98231.prototype), _.extend(this, ObjectLabeler)
}
function v836d41eae7d0e1bac050eee0040b266e() {
v904e08bd5378fd045017dffe63a74e5f.call(this), _.extend(this, ObjectLabeler), _.extend(v836d41eae7d0e1bac050eee0040b266e.prototype, _.omit(v58464e861634a5228a23105f7ed98231.prototype, 'checkRemoveDisabled'))
}
function vd6b585d152f7fca926f1ce74fca71840() {
this.v06a74486c88c4e432f01dada2df1c4b3, this.vd71ea42981602bbe4b6b552ba1a28cb5, this.percentage, this.v0f640f82c7699855a0d62cf9a27a7187, this.v47181c58dbdd29af73d9b27d1af60f6d, this.sharePrice
}
function v77e1c3d0c2c78bc050c490a8f21f36ec() {
v201c1885dbeadd6fc7447f01d428a315.call(this), _.extend(this, ProductConfigurer)
}
function v6e09d03abe03712311af5314147f90da() {
v9699b24815d6dfadfa0243b18016fdda.call(this), _.extend(this, ProductConfigurer), _.extend(v6e09d03abe03712311af5314147f90da.prototype, v58464e861634a5228a23105f7ed98231.prototype)
}
function v0a9097ae34f8e6013c1cbc8d74d23792() {
v77e1c3d0c2c78bc050c490a8f21f36ec.call(this), this.data = {}
}
function vcaa355625a5b324c458fe409f87ebd7d() {
}
function veec14f77b2c6d7453b28afc08d23d02f() {
v6e09d03abe03712311af5314147f90da.call(this), this.v721861fc256a975f607ceec5ce7d1ae3 = []
}
function v68092a83cc1577340ab94b35b8a91ece() {
v6e09d03abe03712311af5314147f90da.call(this)
}
function v738ac46166d637e27dc39d5822f50223() {
v201c1885dbeadd6fc7447f01d428a315.call(this), _.extend(this, ProductConfigurer)
}
function v2e08e5d167b80be6f649987b5869247d() {
v1d9545606d219a6b6b917d8df442d16e.call(this)
}
function v1c23d0053024c64a945feaa365e51414() {
v6e09d03abe03712311af5314147f90da.call(this)
}
function v68b8af4a53eb72293e5b2241273ed33e() {
v1c23d0053024c64a945feaa365e51414.call(this)
}
function vd09d0dd92399fc77764765f67fe18556() {
v1c23d0053024c64a945feaa365e51414.call(this)
}
function vf9c43de14a376eb90b1fea2476c6b362() {
this.ve4f53eeef8ea110c3de38998a14885be, this.vdbcbe70031b42fe570b5b25af6fb6883, this.va6ca2167a820f29ae2daf795bc7a7a67, this.ve5853fb103182293728444884e44b141
}
function v855b49a05932515e831cdf8241b80301() {
this.type, this.cost, this.bizId, this.v9ab4d84be0b332065b5dd4db28b9919b, this.vec74eee47fc59d036e3e3888f094f038 = 1, this.message, this.v8e805759230d804678d316656383e3ee = 36500, this.vd0244c3d91a89483aaa19422be11b950 = 0, this.nextOccurs = KMDate.v7de0e242fb310ded4c773006026bd708
}
function vaa4470d76d169da52dc3c6bff1a4c233() {
}
function v0e0b3bcaa4bd1ce57ab465d8963c63eb() {
}
function EntityNameSign() {
}
function v5b259eea9940b3c241afa5157f5d52fa() {
v1c23d0053024c64a945feaa365e51414.call(this), this.v743d2616477ca521981beeb1cebcb5bf = 6
}
function v571e9be568aec5682fe9f2e2632dd04e() {
v0a9097ae34f8e6013c1cbc8d74d23792.call(this)
}
function v094859b1923963014915750ac6763628() {
v201c1885dbeadd6fc7447f01d428a315.call(this), _.extend(this, ProductConfigurer)
}
function v4778721023ebde2c9a6b9b3710f3f2c0() {
v201c1885dbeadd6fc7447f01d428a315.call(this), _.extend(this, ProductConfigurer)
}
function v351e3bf742edd36e7e8568a9a6ee0440() {
BusinessWorker.call(this)
}
function vc33ad03bfa23ed1aef91cc58520f6292() {
v6e09d03abe03712311af5314147f90da.call(this)
}
function vc22870467726fde55ddefbe882b4945c() {
v6e09d03abe03712311af5314147f90da.call(this)
}
function v4a9b5e10733f60d93978b7c7ae241049() {
v6e09d03abe03712311af5314147f90da.call(this)
}
function v93b749ea67d5a7bac269b60a33c1fca3() {
v201c1885dbeadd6fc7447f01d428a315.call(this), _.extend(this, ObjectLabeler)
}
function v8fc6b2ca91b0e81512554bd70ecf9799() {
v1d9545606d219a6b6b917d8df442d16e.call(this)
}
function v92079c982f970d8890577734d4d8b453() {
EntrepreneurshipFloor.call(this)
}
function vd7d41dea1cfc751eb301b1fc6d3eb1de() {
BusinessWorker.call(this), this.v24923684c6dba32ba18af79b1eecaa11 = []
}
function ve2a647359da276078c03bb0e6a2bfa8c() {
v6e09d03abe03712311af5314147f90da.call(this)
}
function v3e49aaf7163b68f4e8de6cb3304fdfd0() {
v1c23d0053024c64a945feaa365e51414.call(this)
}
function v38001076f682339db979d92c24fc2180() {
v201c1885dbeadd6fc7447f01d428a315.call(this)
}
function vb854465543e349f490f7659c2863137c() {
if (vb854465543e349f490f7659c2863137c.prototype.v9bbad78449599b577440d0b8f10dc0ca && vb854465543e349f490f7659c2863137c.prototype.v9bbad78449599b577440d0b8f10dc0ca instanceof vb854465543e349f490f7659c2863137c)
return vb854465543e349f490f7659c2863137c.prototype.v9bbad78449599b577440d0b8f10dc0ca;
vb854465543e349f490f7659c2863137c.prototype.v9bbad78449599b577440d0b8f10dc0ca = this, this.randomNames = {}, this.vf03956c8ba567b36f877ef260286a4b0 = {}, this.__v9d4e89b87bb3cd416e58a1e74cc90741 = {
vacf9cfa625628eb8999dc89ea6eedfef: 156,
va779101c84ef3f18faa25d8fe6fd1fc5: 8.25,
v5173ef4b2a073988a84537a7ae26b539: 1825
}, this.settings = {}
}
function vc2e72576fed19510ee0d38d64891dc97() {
this.v0dcef7be7dabd265d4d88d099e188481 = '', this.v31fd72245601c11ca15d4ad52275789a = '', this.vb0e9859cdf5cd68a79902db2a6d14f64 = 0, this.vd7e9b9d485cc22bd33f00444bc8a9c47 = .15, this.v684348554f47759b3ff210dff8d9bdb9 = 0, this.vcc6e83a76d348225d4d8c8bd53f01267 = [], this.va014982a5bc2ec07822756a04def5f9c = [], this.v3f383bb05e1e395428a06ee1de54f34d = null, this.vdca81c695291f7728f1f8528408ef20a
}
function v58d33316c7382eb241d7ecb18e0c197b() {
}
function v5fbfcbcb12e8df2bcd8dba0624fffcf1() {
this.vf5af71cccef3930aa00ea206870adede = 1, this.v3d0cf2a7d67b2db6e225f3c67ea4e511 = [], this.vf709d2595fdfacf4fe1753abd1f03311 = [], this.v1e6a4c18ac1ebd1fc4fd7754e0456f39 = [], this.totalSteps = [], this.v1b4b20b7aff5195b557d0b0bec3556f5 = 1, this.vca0b9149883d6c453b4b8b4a972aa081 = v5fbfcbcb12e8df2bcd8dba0624fffcf1.v56e6c70f522894197ddf66749f99c581, this.vd7fc235ddea80666f4165d8867135acd = !1
}
function v263c90b6db02bd162389428c7014ad79() {
this.vb13bf9289fdecc75dbc96f1d72231506 = [], this.ve0a950c0518451dad0d6e058d20b7bbc = 0, this.events = new va20bdc309a7a3a70da33773c4c0407ec
}
function v8b1a0eea50dd145fcde069c346012ae9() {
this.position = null, this.vf5488852443e8572e78dd84d9d48faf5 = null, this.startDate = null, this.vb5877d92980f9ed030336288883c555f = null, this.duration = null, this.va745e247e0711c7ede7ff21e2c348148 = 0, this.shift = 1, this.v14c8c6994c581180212ad44098a98be0 = !1
}
function vf6e318fec47eb2dc5ff77f8284e848cf(a, b) {
this.v2691d54d4fa58764899a3a2a3c69fd4e = a, this.group = b
}
function vda8dc5704da9494b69cf8c9f5a9e451f() {
}
function ctrlResume() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'ctrlResume')
}
function frmHireEmployees(b) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmHireEmployees'), this.veb94e5fd00fa02693122bf805e3fac22 = 0, this.v06f28231aa67813c146a706a95be5c3d = 0, this.v9064e32f212cb2bad8d21187c86f6197 = _.size(HR_EducationLevelEnum) - 1, this.vb123ec98f489a761851ce1c70036af13, this.ve8e836d423ab61e38123a3f49334727a;
var a = {};
a.title = 'Hire Employees', a.width = 800, a.height = 700, b === !0 && (a.modal = !0), a.buttons = { Close: _.bind(this.v5b776df159cb39610d8078576ff9214f, this) }, this.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v84fbda0bd9cff2e014d94726ce158786, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmMakeJobOffer() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmMakeJobOffer');
var a = {};
a.title = 'Make Job Offer', a.width = 500, a.height = 450, a.resizable = !0, a.buttons = { Cancel: _.bind(this.v5b776df159cb39610d8078576ff9214f, this) }, a.resize = _.bind(this.resize, this), this.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v84fbda0bd9cff2e014d94726ce158786, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmDashboard() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmDashboard');
var a = {};
a.title = 'Dashboard', a.width = 800, a.height = 640, a.resizable = !0, a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v7e4ade658726e8c8fc83b2e45410c000, a.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v84fbda0bd9cff2e014d94726ce158786, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmMapFilter(d, b) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmMapFilter');
var c = this, a = {};
b ? A.vb06c3a859d6038b4515bccc5f1f891ef().vfa918617e60589af9429b43b0d8e15f0 != null && A.vb06c3a859d6038b4515bccc5f1f891ef().vfa918617e60589af9429b43b0d8e15f0.v5c5524236d1ebc36e7df1d291f87e62f() ? a.title = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Move {0}', A.vb06c3a859d6038b4515bccc5f1f891ef().vfa918617e60589af9429b43b0d8e15f0.getName()) : a.title = 'Available Business Locations' : a.title = 'Research Locations', a.width = 330, a.height = $('#sim-view').height(), a.resizable = !1, a.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v2275d44d1a98fd65546bb9857a3bf7b2, a.position = {
my: 'left,top',
at: 'left,top',
of: '#sim-view',
collision: 'fit',
within: '#sim-view'
}, a.buttons = {
Close: function () {
c.v3898fc750e1e36bdae9b3a9aa45be670()
}
}, this.vdff14bb6c0f3beac6811e0bf3f87cdbe = 'mapFilter', this.v9e772bcf5004fd3a19a5e9a5ca3d04d5 = d, this.v5e3f93c1bbcebc5a1b61d0bc7387b9f7 = [], this.v26c91684d8520fc9bb7b5c1be56ec86c = !1, this.v9e88d0733c2ee74910fb22357bf2eaff = 0, this.vd794e545afd0cd23e45263f9b6e6b5ae = b, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmMapFilterGoogle() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmMapFilterGoogle');
var a = {};
a.title = 'Map', a.width = 240, a.height = $('#sim-view').height(), a.resizable = !1, a.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v2275d44d1a98fd65546bb9857a3bf7b2, a.position = {
my: 'left,top',
at: 'left,top',
of: '#sim-view',
collision: 'fit',
within: '#sim-view'
}, this.vdff14bb6c0f3beac6811e0bf3f87cdbe = 'mapFilter', this.v5e3f93c1bbcebc5a1b61d0bc7387b9f7 = [], this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function ctrlDatePager() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'ctrlDatePager')
}
function cstmMapResult(a, b, c, d, e, f, g) {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'cstmMapResult'), this.info = a, this.v1d075c9077470d49c4ea1957dbabd154 = b, this.va8af433f029f6e30c7d02f96fea7995d = c, this.v2b071178336ec1796d45b54dc5af33ce = d, this.vd9ef96e9f8637fc505ab3f2d372e2e33 = e, this.v9e772bcf5004fd3a19a5e9a5ca3d04d5 = f, this.vd794e545afd0cd23e45263f9b6e6b5ae = g
}
function cstmMapResultGoogle(a, b, c, d, e, f, g) {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'cstmMapResultGoogle'), this.name = a, this.vcf1fc89ea9250bbcb0fde2558a3ce465 = b, this.v185f89ecb68b07d6d1e474fe8e5de0a1 = c, this.v1d075c9077470d49c4ea1957dbabd154 = d, this.va8af433f029f6e30c7d02f96fea7995d = e, this.v2b071178336ec1796d45b54dc5af33ce = f, this.vd9ef96e9f8637fc505ab3f2d372e2e33 = g
}
function cstmJobContainer() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'cstmJobContainer'), this.v96b67edaaae704c5248042e522513b54
}
function frmBuildTeam() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmBuildTeam');
var a = {};
a.title = 'Build Your Team', a.width = 680, a.height = 535, a.modal = !1, a.va90278d5408d58739d90a5f6f484529d = !1, a.resizable = !0, a.buttons = this.v1863b84516dc7daf44262b862c096d2a(), this.vcf93fcf0f5393855fb90694252a2268f(a), this.controls = []
}
function v46780429e8a15bdc5b63755f9e3870ed(a, b) {
v5f14a964e4c00162b4a80b0a3839665d.call(this, a, b)
}
function v87488cc380affb24101e1733257ead5d(a, b) {
v5f14a964e4c00162b4a80b0a3839665d.call(this, a, b), this.selector.dialog('option', 'width', 400)
}
function vdb822b65057fd807ee33d9e7c939560a(a, b) {
v5f14a964e4c00162b4a80b0a3839665d.call(this, a, b)
}
function ctrlPurchasingItem() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'ctrlPurchasingItem')
}
function v8f912da410b2e690b17ef9ef22824fa4(b, c, d, e) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'Alert');
var a = {};
a.title = c, a.modal = !1, a.minWidth = 350, a.resizable = !1, a.buttons = {}, a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v7e4ade658726e8c8fc83b2e45410c000, a.v4fbdb061d4fae50846ca6cf951660e59 = !1, this.v885c4e94b135fc4ba8cf2f2b62d481c4 = b, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function vc312940263dc36be5a23e8539b6665fe(b, c, d, e) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'Alert');
var a = {};
a.title = c, a.modal = !0, a.minWidth = 350, a.resizable = !1, a.buttons = {}, a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v7e4ade658726e8c8fc83b2e45410c000, a.v4fbdb061d4fae50846ca6cf951660e59 = !1, this.v885c4e94b135fc4ba8cf2f2b62d481c4 = b, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmFormBusiness() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmFormBusiness');
var a = {};
a.title = 'Form New Business', a.width = 800, a.height = 670, a.va90278d5408d58739d90a5f6f484529d = !1, a.resizable = !0, a.buttons = this.vd496218ee3e900b9a490109d2d8237a2(), this.vcf93fcf0f5393855fb90694252a2268f(a), this.vea769ee5e78a7f9d2674c0ac40a72067
}
function frmBOPInsurance() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmBOPInsurance');
var a = {};
a.title = 'Business Owner\'s Insurance Policy', a.width = 370, a.height = 280, a.va90278d5408d58739d90a5f6f484529d = !1, a.resizable = !1, a.buttons = this.vd496218ee3e900b9a490109d2d8237a2(), this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmLocateBusiness() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmLocateBusiness');
var a = {};
a.title = 'Locate Business', a.width = 420, a.height = 300, a.va90278d5408d58739d90a5f6f484529d = !1, a.resizable = !1, a.buttons = this.vd496218ee3e900b9a490109d2d8237a2(), this.vcf93fcf0f5393855fb90694252a2268f(a), this.vd9ef96e9f8637fc505ab3f2d372e2e33
}
function frmPricing(b) {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmPricing');
var a = {};
a.title = 'Product Price List', a.width = 500, a.height = 380, b === !0 && (a.modal = !0), a.resizable = !1, a.va90278d5408d58739d90a5f6f484529d = !1, a.buttons = this.ve1f602e06702931672ab5872576ca085(), this.vcf93fcf0f5393855fb90694252a2268f(a), this.v2bb706cee751b779ada74b0002ce8aa2 = []
}
function ctrlPricing() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'ctrlPricing'), this.v9062a0835d7a97b6db7b04be3687f989, this.vfa597e408c71f192da9ae9594e77da3f
}
function frmInvesting() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmInvesting');
var a = {};
a.title = 'Investing', a.width = 550, a.height = 600, a.va90278d5408d58739d90a5f6f484529d = !1, a.resizable = !1, a.buttons = this.ve1f602e06702931672ab5872576ca085(), this.vcf93fcf0f5393855fb90694252a2268f(a), this.v232d102e1cad783a45b3bf3dc0836d76, this.v2bb706cee751b779ada74b0002ce8aa2 = []
}
function ctrlInvesting() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'ctrlInvesting'), this.v600712248e90c016116feb9ce669992b, this.v52cd91114ba01836fe2d3629c058786c
}
function frmAcquireResources() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmAcquireResources');
var a = {};
a.title = 'Acquire Resources', a.width = 500, a.height = 380, a.resizable = !1, a.position = {
my: 'left,top',
at: 'left,top',
of: '#instruction-pane',
collision: 'fit',
within: '#instruction-pane'
}, a.va90278d5408d58739d90a5f6f484529d = !1, a.buttons = this.v1863b84516dc7daf44262b862c096d2a(), this.vcf93fcf0f5393855fb90694252a2268f(a), this.v2bb706cee751b779ada74b0002ce8aa2 = []
}
function ctrlDurablesOperations() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'ctrlDurablesOperations'), this.v9062a0835d7a97b6db7b04be3687f989, this.vfa597e408c71f192da9ae9594e77da3f
}
function ctrlConsumablesOperations() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'ctrlConsumablesOperations'), this.v9062a0835d7a97b6db7b04be3687f989, this.vfa597e408c71f192da9ae9594e77da3f
}
function frmFinancing() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmFinancing');
var a = {};
a.title = 'Financing', a.width = 500, a.height = 565, a.modal = !1, a.va90278d5408d58739d90a5f6f484529d = !1, a.resizable = !1, a.buttons = this.ve1f602e06702931672ab5872576ca085(), this.vcf93fcf0f5393855fb90694252a2268f(a), this.vd9ef96e9f8637fc505ab3f2d372e2e33
}
function frmStaffingHours() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmStaffingHours');
var a = {};
a.title = 'Business Hours', a.width = 300, a.height = 575, a.resizable = !1, a.va90278d5408d58739d90a5f6f484529d = !1, a.buttons = this.ve1f602e06702931672ab5872576ca085(), this.vcf93fcf0f5393855fb90694252a2268f(a), this.inputs = [], this.v2d86083a12caa09f1b519596d9915c34 = !1
}
function frmSales() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmSales');
var b = this, a = {};
a.title = 'Sales Report', a.width = 690, a.height = 565, a.resizable = !1, a.va90278d5408d58739d90a5f6f484529d = !1, a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v97abac90352903cdfe7ffccc2945507d, a.buttons = {
Close: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a), this.vb02de472cea8ce814a37b51bea76e9db, this.v985248268c1400ca1cb99a78653c0e13 = 0
}
function frmDebugCycles() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmDebugCycles');
var b = this, a = {};
a.title = 'Cycles', a.width = 590, a.height = 565, a.resizable = !0, a.va90278d5408d58739d90a5f6f484529d = !1, a.buttons = {
Close: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a), this.v985248268c1400ca1cb99a78653c0e13 = 0, this.v2ae44c662021fc8424f95bd7c9aeadb7 = []
}
function frmBacklog() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmBacklog');
var b = this, a = {};
a.title = 'Backlog Report', a.width = 730, a.height = 565, a.resizable = !1, a.va90278d5408d58739d90a5f6f484529d = !1, a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v97abac90352903cdfe7ffccc2945507d, a.buttons = {
Close: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a), this.vc5d1d27324423f59c1227df0c1a0f45d
}
function frmTransferCashVBE() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmTransferCashVBE');
var b = this, a = {};
a.title = 'Transfer Funds Out', a.width = 600, a.height = 420, a.va90278d5408d58739d90a5f6f484529d = !1, a.resizable = !1, a.buttons = {
'Complete Transfer': function () {
b.vcd9324956f14fa5e73633cbba9b47ee5()
},
Cancel: function () {
b.v5b776df159cb39610d8078576ff9214f()
}
}, this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmPersonalFinancialSummary() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmPersonalFinancialSummary');
var a = {};
a.title = 'Personal Financial Summary', a.width = 710, a.height = 535, a.modal = !1, a.va90278d5408d58739d90a5f6f484529d = !1, a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v7e4ade658726e8c8fc83b2e45410c000, a.resizable = !1, a.buttons = this.v1863b84516dc7daf44262b862c096d2a(), this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function frmSharkTankAdmin() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmSharkTankAdmin');
var a = {};
a.title = 'Auction Oversight', a.width = 750, a.height = 600, a.va90278d5408d58739d90a5f6f484529d = !1, a.resizable = !0, a.buttons = this.v1863b84516dc7daf44262b862c096d2a(), this.vcf93fcf0f5393855fb90694252a2268f(a), this.v232d102e1cad783a45b3bf3dc0836d76 = {}, this.v2bb706cee751b779ada74b0002ce8aa2 = []
}
function frmBizPlanGradeAssign() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmBizPlanGradeAssign');
var a = {};
a.title = 'Assign Grade', a.width = 800, a.modal = !0, a.height = 675, a.va90278d5408d58739d90a5f6f484529d = !1, a.resizable = !1, a.buttons = this.v1863b84516dc7daf44262b862c096d2a(), this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function vfe959fefeef2b76034bbac13808689ef(a) {
frmHireEmployees.call(this, !0), this.bizId = a
}
function ve5b29ec74882d4e5f222b57fdd3846c8(a) {
frmPricing.call(this, !0), this.v1c2fa1d683b719f82d35ba2f957fb359 = a
}
function frmPriceSurvey() {
va1337b7722f001e1521f5c837ab1b7fe.call(this, 'frmPriceSurvey');
var a = {};
a.title = 'Price Survey Report', a.width = 860, a.height = 535, a.modal = !1, a.va90278d5408d58739d90a5f6f484529d = !1, a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = va1337b7722f001e1521f5c837ab1b7fe.v7e4ade658726e8c8fc83b2e45410c000, a.resizable = !0, a.buttons = this.v1863b84516dc7daf44262b862c096d2a(), this.vcf93fcf0f5393855fb90694252a2268f(a)
}
function cstmPriceSurvey() {
v2afb2dbb7629090cd4cf10e612d6687e.call(this, 'cstmPriceSurvey'), this.v96b67edaaae704c5248042e522513b54
}
var Endian = {
v591e426c5cbea3665c280e6b61376241: 0,
LITTLE: 1
}, Amf3Types = {
v1016f21ad9352b4ab536fde6ae3ac445: 0,
v1962a23e577dde4e72c57b20dd378cda: 1,
v4ef4bf129964900f4d011360f49e2b3e: 2,
v0534082acfcd94f4276f823bcb6934c5: 3,
v45718b0e6b0daacfa555d27a4e4476d7: 4,
v004aee9cc16343e5f2765c4296965b49: 5,
v1e085795e43412b07b93cf14bf6f2e0d: 6,
v43284b6c9675ff36a4cd11aa546b121c: 7,
v1d0dc18cff31f4193f1cee9c52009444: 8,
va0390ee6ee7e5f98b9acff858366e755: 9,
v88755f75eb3e7a5830c5487cd7517219: 10,
vbd2e8814714c60343709106d6c6232d7: 11,
vbe5ee1da28db4dbcdd75eaab3ea616ef: 12,
v92393164259ce58f44e7a6315c4ae11c: 17
};
vd7ea82ddd10f919b99db37d72fb3e446.prototype.va72cbb4c94367eb235df709e578f6dae = function () {
var a = this.data.map(function (a) {
return String.fromCharCode(a)
});
return a.join('')
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.toString = function () {
var a = this.va72cbb4c94367eb235df709e578f6dae(), b = pako.deflate(a, { to: 'string' });
return b
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.vc19b6c3bdf994084e0d4e1b69035e638 = function (a) {
return parseFloat(a) == parseInt(a) && !isNaN(a) ? !0 : !1
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.readByte = function () {
var a = this.data[this.pos++];
return a & 255
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.writeByte = function (a) {
return this.data.push(a), this.length++, 1
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.readBool = function () {
return this.data[this.pos++] & 255 ? !0 : !1
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.writeBool = function (a) {
return this.writeByte(a ? 255 : 0)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v14085d53d856135a4b758edec6d0b54f = function () {
return this.writeByte(Amf3Types.v1962a23e577dde4e72c57b20dd378cda)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v246a3cf611c5aa69c34cd0ef78e83c3f = function () {
return this.writeByte(Amf3Types.v1016f21ad9352b4ab536fde6ae3ac445)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.vcf0cb861c901e3a9655a9589490f7cad = function (a) {
return this.writeByte(a ? Amf3Types.v0534082acfcd94f4276f823bcb6934c5 : Amf3Types.v4ef4bf129964900f4d011360f49e2b3e)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v9ef73d2b0d167ea429bc16df8a144744 = function () {
var a = this.readByte(), b = this.readByte(), c = this.readByte(), d = this.readByte();
return a >= 64 ? undefined : d | c << 8 | b << 16 | a << 24
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.readUInt32BE = function () {
var a = this.data, b = (this.pos += 4) - 4;
return (a[b] & 255) << 24 | (a[++b] & 255) << 16 | (a[++b] & 255) << 8 | a[++b] & 255
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v1346841045775030dfae37ea2fc1aa16 = function (b) {
var a = 0;
return a += this.writeByte(b >> 24 & 255), a += this.writeByte(b >> 16 & 255), a += this.writeByte(b >> 8 & 255), a += this.writeByte(b & 255), a
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.readInt32BE = function () {
var a = this.data, b = (this.pos += 4) - 4, c = (a[b] & 255) << 24 | (a[++b] & 255) << 16 | (a[++b] & 255) << 8 | a[++b] & 255;
return c >= 2147483648 ? c - 4294967296 : c
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.readUInt16BE = function () {
var a = this.data, b = (this.pos += 2) - 2;
return (a[b] & 255) << 8 | a[++b] & 255
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.readInt16BE = function () {
var b = this.data, c = (this.pos += 2) - 2, a = (b[c] & 255) << 8 | b[++c] & 255;
return a >= 32768 ? a - 65536 : a
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.readFloat32BE = function () {
var a = this.data, b = (this.pos += 4) - 4, c = a[b] & 255, d = a[++b] & 255, g = a[++b] & 255, h = a[++b] & 255, i = 1 - (c >> 7 << 1), e = (c << 1 & 255 | d >> 7) - 127, f = (d & 127) << 16 | g << 8 | h;
return f == 0 && e == -127 ? 0 : i * (1 + this.vde98152079386c012fdeaf940ae934a7 * f) * this.pow(2, e)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.readFloat64BE = function () {
var b = Array(8);
for (var a = 0; a < 8; ++a)
b[a] = this.readByte();
return this.v0f0d19b9853ce4bd91e055b971135b5e(b, 11, 52)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.writeFloat64BE = function (d) {
var b = 0, c = this.v1b4fb59792e17023b42ff835bcf6a976(d, 11, 52);
for (var a = 0; a < 8; ++a)
b += this.writeByte(c[a]);
return b
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v1b4fb59792e17023b42ff835bcf6a976 = function (a, l, i) {
var d = (1 << l - 1) - 1, h, b, c;
if (isNaN(a))
b = (1 << d) - 1, c = 1, h = 0;
else if (a === Infinity || a === -Infinity)
b = (1 << d) - 1, c = 0, h = a < 0 ? 1 : 0;
else if (a === 0)
b = 0, c = 0, h = 1 / a === -Infinity ? 1 : 0;
else if (h = a < 0, a = Math.abs(a), a >= Math.pow(2, 1 - d)) {
var k = Math.min(Math.floor(Math.log(a) / Math.LN2), d);
b = k + d, c = a * Math.pow(2, i - k) - Math.pow(2, i), c < 0 && b--
} else
b = 0, c = a / Math.pow(2, 1 - d - i);
var e, f = [];
for (e = i; e; e -= 1)
f.push(c % 2 ? 1 : 0), c = Math.floor(c / 2);
for (e = l; e; e -= 1)
f.push(b % 2 ? 1 : 0), b = Math.floor(b / 2);
f.push(h ? 1 : 0), f.reverse();
var g = f.join(''), j = [];
while (g.length)
j.push(parseInt(g.substring(0, 8), 2)), g = g.substring(8);
return j
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v0f0d19b9853ce4bd91e055b971135b5e = function (k, c, l) {
var e = [];
for (var f = k.length; f; f -= 1) {
var i = k[f - 1];
for (var h = 8; h; h -= 1)
e.push(i % 2 ? 1 : 0), i >>= 1
}
e.reverse();
var g = e.join(''), j = (1 << c - 1) - 1, b = parseInt(g.substring(0, 1), 2) ? -1 : 1, d = parseInt(g.substring(1, 1 + c), 2), a = parseInt(g.substring(1 + c), 2);
return d === (1 << c) - 1 ? a !== 0 ? NaN : b * Infinity : d > 0 ? b * Math.pow(2, d - j) * (1 + a / Math.pow(2, l)) : a !== 0 ? b * Math.pow(2, -(j - 1)) * (a / Math.pow(2, l)) : b * 0
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.vd5efa4cf4cbae8abe09745c600cc36c2 = function () {
var b, a = this.readByte() & 255;
return a < 128 ? a : (b = (a & 127) << 7, a = this.readByte() & 255, a < 128 ? b | a : (b = (b | a & 127) << 7, a = this.readByte() & 255, a < 128 ? b | a : (b = (b | a & 127) << 8, a = this.readByte() & 255, b | a)))
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.va9d817106430a6591933f6dcf1c0650a = function (a) {
var b = 0;
if (a < 128)
return b += this.writeByte(a), b;
else if (a < 16384)
return b += this.writeByte(a >> 7 & 127 | 128), b += this.writeByte(a & 127), b;
else if (a < 2097152)
return b += this.writeByte(a >> 14 & 127 | 128), b += this.writeByte(a >> 7 & 127 | 128), b += this.writeByte(a & 127), b;
else if (a < 1073741824)
return b += this.writeByte(a >> 22 & 127 | 128), b += this.writeByte(a >> 15 & 127 | 128), b += this.writeByte(a >> 8 & 127 | 128), b += this.writeByte(a & 255), b;
else
throw new Error('Integer out of range: ' + a)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v59e1ca802a55a51b414ed9bcc037aab4 = function () {
var b = this.readByte(), c = this.readByte(), d = this.readByte(), a = this.readByte();
return a >= 64 ? undefined : b | c << 8 | d << 16 | a << 24
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v3d6b9f33c4361198fa21a97d6ccb26c6 = function () {
var a = this.data, b = this.pos += 4, c = (a[--b] & 255) << 24 | (a[--b] & 255) << 16 | (a[--b] & 255) << 8 | a[--b] & 255;
return c >= 2147483648 ? c - 4294967296 : c
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v0689cfdd2b88e2eba7a26a275376676d = function () {
var a = this.data, b = this.pos += 2;
return (a[--b] & 255) << 8 | a[--b] & 255
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v48081a7831da0c92728fbe551871d78a = function () {
var b = this.data, c = this.pos += 2, a = (b[--c] & 255) << 8 | b[--c] & 255;
return a >= 32768 ? a - 65536 : a
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v9b7b0393cf7deda44177bd3e94677808 = function () {
var a = this.data, b = this.pos += 4, c = a[--b] & 255, d = a[--b] & 255, g = a[--b] & 255, h = a[--b] & 255, i = 1 - (c >> 7 << 1), e = (c << 1 & 255 | d >> 7) - 127, f = (d & 127) << 16 | g << 8 | h;
return f == 0 && e == -127 ? 0 : i * (1 + this.vde98152079386c012fdeaf940ae934a7 * f) * this.pow(2, e)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v4ed914cc8821fdce28ee9e52ecce4257 = function () {
var b = this.data, a = this.pos += 8, d = b[--a] & 255, e = b[--a] & 255, m = b[--a] & 255, h = b[--a] & 255, g = b[--a] & 255, i = b[--a] & 255, j = b[--a] & 255, k = b[--a] & 255, l = 1 - (d >> 7 << 1), f = (d << 4 & 2047 | e >> 4) - 1023, c = ((e & 15) << 16 | m << 8 | h).toString(2) + (g >> 7 ? '1' : '0') + ((g & 127) << 24 | i << 16 | j << 8 | k).toString(2);
return c = parseInt(c, 2), c == 0 && f == -1023 ? 0 : l * (1 + this.vb1281f150947a1a5f4c692110305d513 * c) * this.pow(2, f)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v4869ab253cf07d749715252834b27969 = function (b) {
var a = b.getTime();
return this.writeDouble(a)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.readDate = function () {
var b = this.readDouble(), a = new Date;
return a.setTime(b), a
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.readString = function (b) {
var c = '';
while (b > 0) {
var a = this.readUnsignedByte();
if (a <= 127)
c += String.fromCharCode(a);
else if (a > 2047) {
var d = (a & 31) << 12;
a = this.readUnsignedByte(), b--;
var e = (a & 63) << 6;
a = this.readUnsignedByte(), b--;
var f = a & 63;
c += String.fromCharCode(d | e | f)
} else {
var d = (a & 31) << 6;
a = this.readUnsignedByte(), b--;
var e = a & 63;
c += String.fromCharCode(d | e)
}
b--
}
return c
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v07cb0cfde62df86287238f5adf1ef954 = function (b) {
var a = 0;
return a += this.writeByte(Amf3Types.v004aee9cc16343e5f2765c4296965b49), a += this.writeFloat64(b), a
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.vf1f46c99e9b6d0f607ce39b473ca7d05 = function (a) {
var b = 0;
return a >= -268435456 && a <= 268435455 ? (a &= 536870911, b += this.writeByte(Amf3Types.v45718b0e6b0daacfa555d27a4e4476d7), b += this.va9d817106430a6591933f6dcf1c0650a(a)) : b += this.v07cb0cfde62df86287238f5adf1ef954(a), b
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v698e7b6a61e55d5b1a474c6b1306c144 = function (b) {
var a = 0;
return a += this.writeByte(Amf3Types.v1e085795e43412b07b93cf14bf6f2e0d), a += this.v43bd4abf81048c69c4f99eaaa90a1ee1(b), a
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v92aae7a823a001152e16f022e9699c22 = function (e) {
var b = 0, f = e.length, d = 0, a = 0;
for (var c = 0; c < f; c++)
a = e.charCodeAt(c), a <= 127 ? d++ : a > 2047 ? d += 3 : d += 2;
b += this.va9d817106430a6591933f6dcf1c0650a(d << 1 | 1);
for (var c = 0; c < f; c++) {
var a = e.charCodeAt(c);
a <= 127 ? b += this.writeByte(a) : a > 2047 ? (b += this.writeByte(224 | a >> 12 & 15), b += this.writeByte(128 | a >> 6 & 63), b += this.writeByte(128 | a >> 0 & 63)) : (b += this.writeByte(192 | a >> 6 & 31), b += this.writeByte(128 | a >> 0 & 63))
}
return b
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v43bd4abf81048c69c4f99eaaa90a1ee1 = function (b) {
var a = 0;
if (b.length == 0)
return a += this.va9d817106430a6591933f6dcf1c0650a(1), a;
var c = {};
return this.v30b13bf0dce6e316d26a8a257fc594f4(b, c) ? (a += c.size, a) : (a += this.v92aae7a823a001152e16f022e9699c22(b), a)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v4608ce176bbabf2161fcad9c02211443 = function () {
return this.readString(this.readUnsignedShort())
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v10899fab0d9aafc6c10ddc502f4dbe21 = function (a) {
return this.readString(a)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.va1b994a731dc35b058bf878429453e64 = function () {
return this.readString(this.readUInt30())
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v5931427122274e1b0d2d8881f95a3e61 = function (c) {
var a;
if (window.DOMParser) {
var b = new DOMParser;
a = b.parseFromString(c, 'text/xml')
} else
a = new ActiveXObject('Microsoft.XMLDOM'), a.async = !1, a.loadXML(stc);
return a
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v9249723823dc54e113e390e881ed8b6b = function () {
var a = this.va1b994a731dc35b058bf878429453e64();
return this.v5931427122274e1b0d2d8881f95a3e61(a)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v82447cb30da1cbe4fc2e3c606a581b98 = function () {
var a = this.vd5efa4cf4cbae8abe09745c600cc36c2();
if ((a & 1) == 0)
return this.v4c3ec334eafe2654e78aead1e42f03b3[a >> 1];
var b = a >> 1;
if (0 == b)
return '';
var c = this.readString(b);
return this.v4c3ec334eafe2654e78aead1e42f03b3.push(c), c
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.vf4fa4b5acfbbe8456b5fcefd02516324 = function (b) {
var a = {};
if (a.properties = [], (b & 3) == 1)
return this.vceb470842d52695c075079a3776a3309[b >> 2];
a.v6b083180c00200af41b101abfec3492f = (b & 4) == 4, a.vd4c0be000049abb307f59bee18f7dcfb = (b & 8) == 8, a.count = b >> 4, a.className = this.v82447cb30da1cbe4fc2e3c606a581b98(), this.vceb470842d52695c075079a3776a3309.push(a);
for (var c = 0; c < a.count; c++) {
var d = this.v82447cb30da1cbe4fc2e3c606a581b98();
a.properties.push(d)
}
return a
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v90d61006e07329d93f7ef358dadec470 = function (a) {
var b = 0, g = {};
if (!this.va3c64bd361602745ba523d3750146ffc(a, g)) {
var d = 0, c = null, e = a.v6b083180c00200af41b101abfec3492f;
e || (c = a.properties, c != null && (d = c.length));
var h = a.vd4c0be000049abb307f59bee18f7dcfb;
if (b += this.va9d817106430a6591933f6dcf1c0650a((e ? 7 : 3) | (h ? 8 : 0) | d << 4), b += this.v43bd4abf81048c69c4f99eaaa90a1ee1(a.className), !e && c != null)
for (var f = 0; f < d; ++f) {
var i = a.properties[f];
b += this.v43bd4abf81048c69c4f99eaaa90a1ee1(i)
}
} else
b += g.size;
return b
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v64ec01654b0e0ee523c59e88b284bcdc = function (a) {
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v6d94fe89f3fe0d5f142ec42891831f11 = function (a) {
return 0
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v1717f2a61c859d15af0ddb53a8da03fd = function (a) {
if (this.v2949fe8a06ce52763d1a104ea458dc44) {
if (a.indexOf('.') != -1) {
var b = a.split('.');
a = b[b.length - 1]
}
a == 'KMArray' && (a = 'Object'), a == 'point' && (a = 'Point'), a == 'StudentInstructions' && (a = 'Object'), a == 'StudentStepData' && (a = 'Object'), a == 'StudentStep' && (a = 'Object'), a == 'StudentStepAnswer' && (a = 'Object')
}
return a
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.vc63932c8312a0be2fbccc3a0d6c7f84c = function (a) {
if (this.v2949fe8a06ce52763d1a104ea458dc44) {
if (a != null && a.source != undefined)
return a.source;
if (a instanceof vd1f0b08ac91fb095da9733e8730e4efc)
for (var c = 0; c < a.vdf0f4dab8c228151e6cf5b6904f51b7e.length; ++c) {
var b = a.vdf0f4dab8c228151e6cf5b6904f51b7e[c];
b.building != undefined && (b.v04c890d42bf8e4b501b674b3f52df345 = b.building.id, delete b.building)
}
a instanceof Offering
}
return a
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v95bf5a6daa07fc9ed936b656dbc08cb4 = function (b, a, c) {
this.v2949fe8a06ce52763d1a104ea458dc44 && (typeof c == 'number' && isNaN(c) && (console.log('NaN detected in property \'' + a + '\' setting to 0'), c = 0), b[a] === undefined && a != 'building' && U.v9234e19f9d1cc7eb46985a101f9c50e3(b) != 'Object' && console.log('prop missing: ' + U.v9234e19f9d1cc7eb46985a101f9c50e3(b) + ' : ' + a)), b[a] = c
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.vfc705923290e1493d821d1463c187fc6 = function () {
var marker = this.readByte();
if (marker == Amf3Types.v1016f21ad9352b4ab536fde6ae3ac445)
return undefined;
if (marker == Amf3Types.v1962a23e577dde4e72c57b20dd378cda)
return null;
if (marker == Amf3Types.v4ef4bf129964900f4d011360f49e2b3e)
return !1;
if (marker == Amf3Types.v0534082acfcd94f4276f823bcb6934c5)
return !0;
if (marker == Amf3Types.v45718b0e6b0daacfa555d27a4e4476d7) {
var i = this.vd5efa4cf4cbae8abe09745c600cc36c2();
return i = i << 3 >> 3, i
}
if (marker == Amf3Types.v004aee9cc16343e5f2765c4296965b49) {
var d = this.readDouble();
return isNaN(d) && console.log('Reading in a NaN! that is probably bad.'), d
}
if (marker == Amf3Types.v1e085795e43412b07b93cf14bf6f2e0d) {
var s = this.v82447cb30da1cbe4fc2e3c606a581b98();
return s
}
if (marker == Amf3Types.v43284b6c9675ff36a4cd11aa546b121c) {
var s = this.v9249723823dc54e113e390e881ed8b6b();
return this.v93fc8265b052986bbc8dbde20cdf4cbf.push(s), s
}
if (marker == Amf3Types.v1d0dc18cff31f4193f1cee9c52009444) {
var v2724e2152e4b672d075df37be44521bb = this.vd5efa4cf4cbae8abe09745c600cc36c2();
if ((v2724e2152e4b672d075df37be44521bb & 1) == 0) {
var index = v2724e2152e4b672d075df37be44521bb >> 1, obj = this.v93fc8265b052986bbc8dbde20cdf4cbf[index];
return obj
}
var value = this.readDate();
return this.v93fc8265b052986bbc8dbde20cdf4cbf.push(value), value
}
if (marker == Amf3Types.va0390ee6ee7e5f98b9acff858366e755) {
var v2724e2152e4b672d075df37be44521bb = this.vd5efa4cf4cbae8abe09745c600cc36c2();
if ((v2724e2152e4b672d075df37be44521bb & 1) == 0) {
var index = v2724e2152e4b672d075df37be44521bb >> 1;
return this.v93fc8265b052986bbc8dbde20cdf4cbf[index]
}
var len = v2724e2152e4b672d075df37be44521bb >> 1, key = this.v82447cb30da1cbe4fc2e3c606a581b98();
if (key == '') {
var a = [];
this.v93fc8265b052986bbc8dbde20cdf4cbf.push(a);
for (var i = 0; i < len; i++) {
var value = this.vfc705923290e1493d821d1463c187fc6();
a.push(value)
}
return a
}
var result = {};
this.v93fc8265b052986bbc8dbde20cdf4cbf.push(result);
while (key != '')
result[key] = this.vfc705923290e1493d821d1463c187fc6(), key = this.v82447cb30da1cbe4fc2e3c606a581b98();
for (var i = 0; i < len; i++)
result[i] = this.vfc705923290e1493d821d1463c187fc6();
return result
}
if (marker == Amf3Types.v88755f75eb3e7a5830c5487cd7517219) {
var v2724e2152e4b672d075df37be44521bb = this.vd5efa4cf4cbae8abe09745c600cc36c2();
if ((v2724e2152e4b672d075df37be44521bb & 1) == 0) {
var index = v2724e2152e4b672d075df37be44521bb >> 1;
return this.v93fc8265b052986bbc8dbde20cdf4cbf[index]
}
var ti = this.vf4fa4b5acfbbe8456b5fcefd02516324(v2724e2152e4b672d075df37be44521bb), v6b083180c00200af41b101abfec3492f = ti.v6b083180c00200af41b101abfec3492f, o = null;
if (v6b083180c00200af41b101abfec3492f)
o = this.v64ec01654b0e0ee523c59e88b284bcdc(ti.className), this.v93fc8265b052986bbc8dbde20cdf4cbf.push(o);
else {
var cname = this.v1717f2a61c859d15af0ddb53a8da03fd(ti.className);
eval('o = new ' + cname + '();'), this.v93fc8265b052986bbc8dbde20cdf4cbf.push(o);
var len = ti.properties.length;
for (var i = 0; i < len; i++) {
var propName = ti.properties[i], value = this.vfc705923290e1493d821d1463c187fc6();
this.v95bf5a6daa07fc9ed936b656dbc08cb4(o, propName, value)
}
if (ti.vd4c0be000049abb307f59bee18f7dcfb)
for (;;) {
var name = this.v82447cb30da1cbe4fc2e3c606a581b98();
if (name == null || name.length == 0)
break;
var value = this.vfc705923290e1493d821d1463c187fc6();
o[name] = value
}
}
return o = this.vc63932c8312a0be2fbccc3a0d6c7f84c(o), o
} else if (marker == Amf3Types.vbd2e8814714c60343709106d6c6232d7) {
var v2724e2152e4b672d075df37be44521bb = this.vd5efa4cf4cbae8abe09745c600cc36c2();
if ((v2724e2152e4b672d075df37be44521bb & 1) == 0) {
var s = this.v5931427122274e1b0d2d8881f95a3e61(this.v93fc8265b052986bbc8dbde20cdf4cbf[v2724e2152e4b672d075df37be44521bb >> 1]);
return s
}
var len = v2724e2152e4b672d075df37be44521bb >> 1;
if (0 == len)
return this.v93fc8265b052986bbc8dbde20cdf4cbf.push(null), null;
var str = this.readString(len), xml = this.v5931427122274e1b0d2d8881f95a3e61(str);
return this.v93fc8265b052986bbc8dbde20cdf4cbf.push(xml), xml
} else if (marker == Amf3Types.vbe5ee1da28db4dbcdd75eaab3ea616ef) {
var v2724e2152e4b672d075df37be44521bb = this.vd5efa4cf4cbae8abe09745c600cc36c2();
if ((v2724e2152e4b672d075df37be44521bb & 1) == 0) {
var index = v2724e2152e4b672d075df37be44521bb >> 1;
return this.v93fc8265b052986bbc8dbde20cdf4cbf[index]
}
var len = v2724e2152e4b672d075df37be44521bb >> 1, vdc34c92295e8ad085220f0c692bc66d2 = new vd7ea82ddd10f919b99db37d72fb3e446;
this.v93fc8265b052986bbc8dbde20cdf4cbf.push(vdc34c92295e8ad085220f0c692bc66d2);
for (var i = 0; i < len; i++)
vdc34c92295e8ad085220f0c692bc66d2.writeByte(this.readByte());
return vdc34c92295e8ad085220f0c692bc66d2
} else if (marker == Amf3Types.v92393164259ce58f44e7a6315c4ae11c) {
var v2724e2152e4b672d075df37be44521bb = this.vd5efa4cf4cbae8abe09745c600cc36c2();
if ((v2724e2152e4b672d075df37be44521bb & 1) == 0) {
var index = v2724e2152e4b672d075df37be44521bb >> 1;
return this.v93fc8265b052986bbc8dbde20cdf4cbf[index]
}
this.readBoolean();
var len = v2724e2152e4b672d075df37be44521bb >> 1, d = new Array;
this.v93fc8265b052986bbc8dbde20cdf4cbf.push(d);
for (var i = 0; i < len; i++) {
var key = this.vfc705923290e1493d821d1463c187fc6(), value = this.vfc705923290e1493d821d1463c187fc6();
d[key] = value
}
return d
} else
console.error('Unknown marker: ' + marker)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v9629615bd8cb0dc63c2d72ab75d25434 = function (b, c) {
var a = this.v93fc8265b052986bbc8dbde20cdf4cbf.indexOf(b);
return a != -1 ? c.size = this.va9d817106430a6591933f6dcf1c0650a(a << 1) : this.v93fc8265b052986bbc8dbde20cdf4cbf.push(b), a != -1
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v4836e6d95b84b617daab6d1ad4f94e71 = function (c, f) {
var d, e = Object.keys(c);
e.length == 0 ? d = c.toString() : d = e.slice(0, 5).toString();
var a = this.vc53d45ee14e12acdb4f265b413a7126c[d];
a || (a = {
table: [],
v0b65ec29e0f051d6f3aa24b36eef56e8: []
}, this.vc53d45ee14e12acdb4f265b413a7126c[d] = a);
var b = a.table.indexOf(c);
return b >= 0 ? (b = a.v0b65ec29e0f051d6f3aa24b36eef56e8[b], f.size = this.va9d817106430a6591933f6dcf1c0650a(b << 1)) : (a.table.push(c), a.v0b65ec29e0f051d6f3aa24b36eef56e8.push(this.v93fc8265b052986bbc8dbde20cdf4cbf.length), this.v93fc8265b052986bbc8dbde20cdf4cbf.push(c)), b >= 0
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.va3c64bd361602745ba523d3750146ffc = function (b, c) {
var a = b.__v04e2667e5ae8bab8ab74562f442f5186;
return a >= 0 ? c.size = this.va9d817106430a6591933f6dcf1c0650a(a << 2 | 1) : (b.__v04e2667e5ae8bab8ab74562f442f5186 = this.v93fc8265b052986bbc8dbde20cdf4cbf.length, this.vceb470842d52695c075079a3776a3309.push(b)), a >= 0
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v30b13bf0dce6e316d26a8a257fc594f4 = function (b, c) {
var a = this.v7ec7f416cfb1700e3258c2591adf546b[b];
return a == undefined && (a = this.v4c3ec334eafe2654e78aead1e42f03b3.indexOf(b)), a != -1 ? c.size = this.va9d817106430a6591933f6dcf1c0650a(a << 1) : (this.v7ec7f416cfb1700e3258c2591adf546b[b] = this.v4c3ec334eafe2654e78aead1e42f03b3.length, this.v4c3ec334eafe2654e78aead1e42f03b3.push(b)), a != -1
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v407b56b428f04aaca26e7728abdd8299 = function (e) {
var a = e.constructor.toString(), b = a.indexOf('function'), c = a.indexOf('('), d = a.substring(b + 8, c).trim();
return d
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v1434c04adb7ea71feffa8c1edddd1d46 = function (b, c) {
_.isUndefined(c) && (c = '');
var a = 0;
this.v9b2e08751936d4d84ccd1f0628c00fab++;
var g = typeof b;
if (b === null || g == 'null')
a += this.v14085d53d856135a4b758edec6d0b54f(), this.veb4bdd0908bb43711ae3f26c419a7c43(c, ' Null, size: ', a);
else if (_.isUndefined(b))
a += this.v246a3cf611c5aa69c34cd0ef78e83c3f(), this.veb4bdd0908bb43711ae3f26c419a7c43(c, ' undefined, size: ', a);
else if (g == 'object') {
var f = {};
if (b instanceof Array) {
var h = this.va8c843a04842d636afd7ac4aa380d724(b);
if (h > 0 && h != b.length)
if (a += this.writeByte(Amf3Types.v92393164259ce58f44e7a6315c4ae11c), !this.v4836e6d95b84b617daab6d1ad4f94e71(b, f)) {
a += this.va9d817106430a6591933f6dcf1c0650a(h << 1 | 1), a += this.writeBoolean(!1);
var j = 0;
if (_.forOwn(b, _.bind(function (c, a, b) {
a.substring(0, 2) != '__' && (this.v1434c04adb7ea71feffa8c1edddd1d46(a, a), this.v1434c04adb7ea71feffa8c1edddd1d46(b[a], a), j++)
}, this)), j != h)
throw new Error(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Dictionary object: {0} key count mismatch: {1} written, expected {2}', [
c,
j,
h
]))
} else
a += f.size;
else if (a += this.writeByte(Amf3Types.va0390ee6ee7e5f98b9acff858366e755), !this.v4836e6d95b84b617daab6d1ad4f94e71(b, f)) {
a += this.va9d817106430a6591933f6dcf1c0650a(b.length << 1 | 1), this.v43bd4abf81048c69c4f99eaaa90a1ee1('');
for (var e = 0; e < b.length; ++e) {
var l = b[e];
this.v1434c04adb7ea71feffa8c1edddd1d46(l, c + ' array index ' + e)
}
} else
a += f.size;
this.v387b6af3804f01efa95f7a31baf7aada && this.veb4bdd0908bb43711ae3f26c419a7c43(c, ': Array: ', a)
} else if (b instanceof Date)
a += this.writeByte(Amf3Types.v1d0dc18cff31f4193f1cee9c52009444), this.v4836e6d95b84b617daab6d1ad4f94e71(b, f) ? a += f.size : (a += this.va9d817106430a6591933f6dcf1c0650a(1), a += this.v4869ab253cf07d749715252834b27969(b)), this.v387b6af3804f01efa95f7a31baf7aada && this.veb4bdd0908bb43711ae3f26c419a7c43(c, ' Date, size: ', a);
else if (a += this.writeByte(Amf3Types.v88755f75eb3e7a5830c5487cd7517219), !this.v4836e6d95b84b617daab6d1ad4f94e71(b, f)) {
var d = {
v6b083180c00200af41b101abfec3492f: !1,
vd4c0be000049abb307f59bee18f7dcfb: !1,
properties: []
};
d.className = U.v9234e19f9d1cc7eb46985a101f9c50e3(b), this.v2d08db6c15254d7adbb6d288aa2bb33c(d.className);
for (var i in b)
if (b.hasOwnProperty(i)) {
var m = typeof b[i];
m != 'function' && i.substring(0, 2) != '__' && d.properties.push(i)
}
if (a += this.v90d61006e07329d93f7ef358dadec470(d), d.v6b083180c00200af41b101abfec3492f)
a += this.v6d94fe89f3fe0d5f142ec42891831f11(d.className);
else if (d.properties.length > 0) {
var k = d.properties.length;
for (var e = 0; e < k; e++) {
var c = d.properties[e];
this.v1434c04adb7ea71feffa8c1edddd1d46(b[c], c)
}
}
this.v387b6af3804f01efa95f7a31baf7aada && (this.veb4bdd0908bb43711ae3f26c419a7c43(d.className + '/' + c, ' object marker and traits table size: ', a), this.v01ea9646b1d99cdb2ae67fe3200278f8())
} else
a += f.size, this.v387b6af3804f01efa95f7a31baf7aada && this.veb4bdd0908bb43711ae3f26c419a7c43('&' + c, ' ref size: ', a)
} else
g == 'number' ? (isNaN(b) == 1 && console.log('Writing out a NaN for property: %s! that is probably bad.', c), this.vc19b6c3bdf994084e0d4e1b69035e638(b) ? a += this.vf1f46c99e9b6d0f607ce39b473ca7d05(b) : a += this.v07cb0cfde62df86287238f5adf1ef954(b), this.v387b6af3804f01efa95f7a31baf7aada && this.veb4bdd0908bb43711ae3f26c419a7c43(c, ': Number, size: ', a)) : g == 'boolean' ? (a += this.vcf0cb861c901e3a9655a9589490f7cad(b), this.v387b6af3804f01efa95f7a31baf7aada && this.veb4bdd0908bb43711ae3f26c419a7c43(c, ': Bool, size: ', a)) : g == 'string' && (a += this.v698e7b6a61e55d5b1a474c6b1306c144(b), this.v387b6af3804f01efa95f7a31baf7aada && this.veb4bdd0908bb43711ae3f26c419a7c43(c, ': String, size: ', a));
return this.v9b2e08751936d4d84ccd1f0628c00fab--, this.v9b2e08751936d4d84ccd1f0628c00fab <= 0 && this.v06b5d403584104c81b67c4d068666880(), a
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v06b5d403584104c81b67c4d068666880 = function () {
this.v387b6af3804f01efa95f7a31baf7aada && console.log('Scrubbing tables'), this.v4c3ec334eafe2654e78aead1e42f03b3 = [], this.v7ec7f416cfb1700e3258c2591adf546b = {}, this.vc53d45ee14e12acdb4f265b413a7126c = {}, this.v93fc8265b052986bbc8dbde20cdf4cbf = [], this.vceb470842d52695c075079a3776a3309 = []
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v2d08db6c15254d7adbb6d288aa2bb33c = function (a) {
this.v387b6af3804f01efa95f7a31baf7aada && (a === 'undefined', this.v82e4da33cfc766f9ea8a685f9d0737aa[a] || (this.v82e4da33cfc766f9ea8a685f9d0737aa[a] = 0), this.vc2c1c8470e3bcfb073e649255cc36179[a] || (this.vc2c1c8470e3bcfb073e649255cc36179[a] = 0), this.v0fa352e63075e11ce0da3d8f1add472a[a] || (this.v0906ed8e137fdd0575a094bc06550e79[a] = []), this.vc5dd6b0e80495ad848a3db8da6e8973b.push(a), this.vc2c1c8470e3bcfb073e649255cc36179[a]++, this.v85eab53c9aef4674997f077aa4f624d5++)
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.v01ea9646b1d99cdb2ae67fe3200278f8 = function () {
if (this.v387b6af3804f01efa95f7a31baf7aada) {
var a = this.vc5dd6b0e80495ad848a3db8da6e8973b.pop();
this.v0fa352e63075e11ce0da3d8f1add472a[a] = !0, this.v85eab53c9aef4674997f077aa4f624d5--
}
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.veb4bdd0908bb43711ae3f26c419a7c43 = function (d, e, c) {
if (this.v387b6af3804f01efa95f7a31baf7aada) {
var a = '';
this.vc5dd6b0e80495ad848a3db8da6e8973b.length > 0 && (a = _.last(this.vc5dd6b0e80495ad848a3db8da6e8973b));
var b = 2;
while (_.contains(this.vba48f150d58a710edb8b62ad1388cdaa, a))
a = this.vc5dd6b0e80495ad848a3db8da6e8973b[this.vc5dd6b0e80495ad848a3db8da6e8973b.length - b], b++;
this.v82e4da33cfc766f9ea8a685f9d0737aa[a] += c, this.v0fa352e63075e11ce0da3d8f1add472a[a] || this.v0906ed8e137fdd0575a094bc06550e79[a].push(d + e + c)
}
}, vd7ea82ddd10f919b99db37d72fb3e446.prototype.va8c843a04842d636afd7ac4aa380d724 = function (b) {
var a = 0;
return _.forOwn(b, function (c, b, d) {
b.substring(0, 2) != '__' && a++
}), a
}, Point.prototype.getLength = function () {
return Math.sqrt(this.x * this.x + this.y * this.y)
}, Point.prototype.clone = function () {
return new Point(this.x, this.y)
}, Point.prototype.isEmpty = function () {
return this.x == 0 && this.y == 0
}, Point.empty = function () {
return new Point(0, 0)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype = Object.create(Object.prototype), vdc7354c3cd5c7774f4dbfeba28eba934.prototype.constructor = vdc7354c3cd5c7774f4dbfeba28eba934, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.init = function () {
this.v2e0145a15b8f555e5c073a6fce578daf = [], this.v449dad7c7ccf5382cc09213f0bdaf069 = [], this.v221e61db8a7ccb5a8584512f8c9f4cff = 0, $('#critical-resource-key').html(this.v936ad5fc4d976f9d3986fefc6943d29d());
var a = 'data/App-config.json';
this.v69f691c44261b809936a2fce22619cb5('AppConfig') && (a = this.v69f691c44261b809936a2fce22619cb5('AppConfig')), appCfgUris = a.split(',');
var b = new v9a61fda44a6f3004a08f014768f83952('AppConfig', appCfgUris);
b.load(_.bind(function () {
this.AppConfig = b.data, this.v0183d7bcb6a5cfe18c72380f5dec0577()
}, this))
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v0183d7bcb6a5cfe18c72380f5dec0577 = function () {
var a = this;
if (this.v17b3a26b478e20e0b841cb701aae40a8(), this.v69f691c44261b809936a2fce22619cb5('productDisplayName') && (this.v381fa954f05ff5e913a28c162b11deae = this.v69f691c44261b809936a2fce22619cb5('productDisplayName')), $('#product-name').html(this.v381fa954f05ff5e913a28c162b11deae), this.v69f691c44261b809936a2fce22619cb5('css')) {
var d = this.v69f691c44261b809936a2fce22619cb5('css');
if (_.isString(d))
var c = d.split(',');
else
var c = d;
this.v934c3f056aa7ff184f0098265ff12489 = c.length, this.v934c3f056aa7ff184f0098265ff12489 == 0 && ($('body').show(), this.v8885ce80f7ab0505dbe1a7a362a265fa.dialog('open')), _.forEach(c, function (b) {
var a = document.createElement('link');
a.type = 'text/css', a.rel = 'stylesheet', a.onload = function () {
A.vf3351ba56d8b7e42f05b30b819a9db80().v934c3f056aa7ff184f0098265ff12489--, A.vf3351ba56d8b7e42f05b30b819a9db80().v934c3f056aa7ff184f0098265ff12489 == 0 && ($('body').show(), A.vf3351ba56d8b7e42f05b30b819a9db80().v8885ce80f7ab0505dbe1a7a362a265fa.dialog('open'))
}, a.href = vdc7354c3cd5c7774f4dbfeba28eba934.instance.v175392c162fa2628657d1a3f9175b95a() + '../' + b + '.css', $('head').append(a)
})
} else
$('body').show(), A.vf3351ba56d8b7e42f05b30b819a9db80().v8885ce80f7ab0505dbe1a7a362a265fa.dialog('open');
Globalize.culture(Globalize.cultures['en-US']);
var f = Globalize.culture();
f.numberFormat.currency.pattern = [
'$-n',
'$n'
];
for (var b = 0; b < 5; ++b)
this.v33d1679ccbbc799ba58ef2ae9383fc37.push([]);
for (var b = 0; b < this.speeds.length; ++b) {
var e = $('<div class=\'consensus-speed-tick\'>');
e.css('left', 5 + b * (112 / this.speeds.length) + '%'), e.appendTo($('#consensus-speed-slider'))
}
this.vfcfdefa4578944e6ba625d388463f9e5.css({ left: 5 + 0 * (112 / A.vf3351ba56d8b7e42f05b30b819a9db80().speeds.length) + '%' }), this.vfcfdefa4578944e6ba625d388463f9e5.show(), this.ve603d0e0486d29567c537397d1c2985e.attr('min', 0).attr('aria-valuemin', 0), this.ve603d0e0486d29567c537397d1c2985e.attr('max', this.speeds.length - 1).attr('aria-valuemax', this.speeds.length - 1), this.ve603d0e0486d29567c537397d1c2985e.val(0), this.ve603d0e0486d29567c537397d1c2985e.on('change', _.bind(this.v7854060be75e74ccb649d401730ea3a4, this)), this.v339f451bdc86667422c5e0a7b464302c.attr('min', 0).attr('aria-valuemin', 0), this.v339f451bdc86667422c5e0a7b464302c.attr('max', this.v65c637ea0baf5919932c148aeb4cc9f9.length - 1).attr('aria-valuemax', this.v65c637ea0baf5919932c148aeb4cc9f9.length - 1), this.v339f451bdc86667422c5e0a7b464302c.attr('orientation', 'vertical'), this.v339f451bdc86667422c5e0a7b464302c.val(this.v788ec81b28d71c67471a9c4461be0cce), this.v339f451bdc86667422c5e0a7b464302c.on('change', _.bind(this.v1355141dbb245d8ca7ddb56fbc415182, this)), $('#zoom-button-in').click(function () {
a.vd478014684bb2e94d2dae9111e58f8e4(1)
}), $('#zoom-button-out').click(function () {
a.vd478014684bb2e94d2dae9111e58f8e4(-1)
}), $('#sim-view').scroll(function (b) {
a.v1624d36ecb3300126848b9660bf019a8(b)
}), this.vb8704dbfbeefe6477a2ffc7265f3dafb(), this.v01f0c97d63997177a7849f8fb3373eb1 = _.sum(this.resources, 'loadSize'), async.map(this.resources, function (d, e) {
var b = function (b) {
e(), a.v143d6ee46a5db342a8a0ae4c97e8a30f -= b.loadSize, a.v7af10d00771d067306e77a5b8df6e134()
}, c = function (b) {
a.v143d6ee46a5db342a8a0ae4c97e8a30f -= b, a.v7af10d00771d067306e77a5b8df6e134()
};
d.load(b, c)
}, function () {
a.v4a802b958ad1dd337b3d9e8407d33db9()
})
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v7af10d00771d067306e77a5b8df6e134 = function () {
var a = Math.min(1, 1 - this.v143d6ee46a5db342a8a0ae4c97e8a30f / this.v01f0c97d63997177a7849f8fb3373eb1);
$('#uiLoadingLabel').text(U.vbacce6a42a9154e1b2ea38c9b107fbb2(', loading {0}', [this.vfa28e603e5d440285ee29acdd18a1fbb[Math.min(this.vfa28e603e5d440285ee29acdd18a1fbb.length - 1, Math.floor(a * this.vfa28e603e5d440285ee29acdd18a1fbb.length))]]));
var b = a * 100;
$('#uiLoadingBar').css('width', b + '%'), a < 1 ? this.v5e8d40f0454c9c75a8fe47bece2063e2.animate(a) : this.v5e8d40f0454c9c75a8fe47bece2063e2.set(a), $('#splashProgress').text(Math.round(b) + '%')
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v17b3a26b478e20e0b841cb701aae40a8 = function () {
var a = $('<div id="splashWrapper" style=\'padding: 0;\'>');
a.appendTo('body');
var d = $('<div class=\'vb_splash\'>').appendTo(a), e = A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('product', ''), f = vdc7354c3cd5c7774f4dbfeba28eba934.instance.v175392c162fa2628657d1a3f9175b95a() + 'images/assets/splash' + (e == '' ? '' : '_' + e) + '.png';
$('<img crossorigin="anonymous" alt=\'\' style=\'width: 500px; height: 300px; margin: 0; padding: 0;\' src=\'' + f + '\'>').appendTo(d);
var c = $('<div style=\'position: absolute; left: 100px; top: 30px; width: 300px; margin: 0;\'>');
$('<h6 style=\'text-align: center;\'>Please wait<span id="uiLoadingLabel"></span>...</h6>').appendTo(c), $('<div class="progress progress-striped active"><div id="uiLoadingBar" class="bar progress-bar progress-bar-striped " style="width: 0%;"></div>').appendTo(c), c.appendTo(d);
var b = $('<div class=\'vbclg_splash\'>').appendTo(a);
$('<div id="splashLesson">' + A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('lessonName', '') + '</div>').appendTo(b), $('<div id="splashTM">Case Simulation<sup>&reg;</sup></div>').appendTo(b), $('<div id="loaderContainer">').appendTo(b), $('<div id="splashProgress">0%</div>').appendTo(b), localThis = this, a.dialog({
width: 508,
title: this.v381fa954f05ff5e913a28c162b11deae,
resizable: !1,
modal: !0,
classes: { 'ui-dialog': 'splashDialog' },
autoOpen: !1,
open: function () {
$('.ui-dialog-titlebar-close', this.parentNode).hide()
},
close: function (a, b) {
localThis.v8885ce80f7ab0505dbe1a7a362a265fa.remove(), this.v8885ce80f7ab0505dbe1a7a362a265fa = null
},
hide: {
effect: 'fadeOut',
duration: 1e3
}
}), this.v8885ce80f7ab0505dbe1a7a362a265fa = a, this.v5e8d40f0454c9c75a8fe47bece2063e2 = new window.ProgressBar.Circle('#loaderContainer', {
color: '#ffffff',
trailColor: '#0c6eb7',
trailWidth: 6,
strokeWidth: 6,
easing: 'linear',
duration: 100
})
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v681f868dfb57e6a76ffc6c928bafbeb0 = function () {
if (this.v8885ce80f7ab0505dbe1a7a362a265fa) {
try {
this.v8885ce80f7ab0505dbe1a7a362a265fa.dialog('close')
} catch (a) {
}
$()
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v62cba0f657e867f2c82edafd96dcb8de = function (a, b) {
_.isNumber(b) ? a.loadSize = b : _.isFunction(a.vf944b502e739f75dbcb1d14208723754) ? a.loadSize = a.vf944b502e739f75dbcb1d14208723754() : a.loadSize = 1, this.v60a696de52c002956aff4c70e4117eeb[a.v67fd1bb5bcf7c63f2363bcbe9bd63bc9] = a, this.resources.push(a), this.v143d6ee46a5db342a8a0ae4c97e8a30f += a.loadSize
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vb69ae9d23229729eebd56c015b8b3e62 = function (a) {
var e = a.v7c056d47dc2a91151c75a39bfcb33041 + '_' + a.imageName + '_' + a.row + '_' + a.col + '_' + a.flipX + '_' + a.alpha + '_' + a.drawablesBefore.length + '_' + a.drawablesAfter.length, f = !1, b = this.ve9f02270f508971fc18a46f02ae83b0f[e];
if (!b) {
f = !0;
var c = a.v61e1c7be274590e1c927aba3b8fc63b3();
if (!c)
return;
var g = Math.ceil(c.right - c.left), h = Math.ceil(c.bottom - c.top);
b = $('<canvas width=\'' + g + '\' height=\'' + h + '\'>')[0], b.vefe5748c0894ac7b4e6854ac733236fc = a.location.x - c.left, b.vc4c554a7480465d80e0eb50216534f3b = a.location.y - c.top
}
if (f || a.v7a9ce2c4e74e75d3cc4ccdef17e58262) {
var d = b.getContext('2d');
d.save(), d.translate(-a.location.x + b.vefe5748c0894ac7b4e6854ac733236fc, -a.location.y + b.vc4c554a7480465d80e0eb50216534f3b), a.draw(d), d.restore(), this.ve9f02270f508971fc18a46f02ae83b0f[e] = b
}
return b
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v408bc55020204e0ada4fa41a02eebaf9 = function (v, z, y, t, w, E, D, u) {
var p = z * t, o = y * w, m = $('<canvas width=\'' + p + '\' height=\'' + o + '\'>')[0], r = m.getContext('2d'), n = r.getImageData(0, 0, p, o), b = n.data;
for (var j = 0; j < u.length; ++j) {
var k = u[j], i = this.v676458f57ceed967a89ada8ec1094bd5(k.v67fd1bb5bcf7c63f2363bcbe9bd63bc9), e = this.v6cb1380d5a5f404876f477a48a9bda49[i.v67fd1bb5bcf7c63f2363bcbe9bd63bc9];
e == undefined && (e = U.getImageData(i.image), this.v6cb1380d5a5f404876f477a48a9bda49[i.v67fd1bb5bcf7c63f2363bcbe9bd63bc9] = e);
var c = e.data, s = 255, l = 255, q = 255;
if (k.color != undefined) {
var f = k.color;
q = f & 255, l = f >>> 8 & 255, s = f >>> 16 & 255
}
var x = c.length;
for (var a = 0; a < x; a += 4) {
var h = c[a + 3];
if (h > 0) {
var g = h / 255, A = c[a + 0] * s / 255, B = c[a + 1] * l / 255, C = c[a + 2] * q / 255;
b[a + 0] = b[a + 0] + g * (A - b[a + 0]), b[a + 1] = b[a + 1] + g * (B - b[a + 1]), b[a + 2] = b[a + 2] + g * (C - b[a + 2]), b[a + 3] = Math.max(b[a + 3], h)
}
}
}
r.putImageData(n, 0, 0);
var d = new v11fc3497bbbb857ae5e2dfcdf511c7ff(v, '', z, y, t, w, E, D);
return d.image = m, this.v60a696de52c002956aff4c70e4117eeb[v] = d, this.resources.push(d), d
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v4a802b958ad1dd337b3d9e8407d33db9 = function () {
var a = this;
this.v69d0a6cd2c3b9d9c99ad4a98ab69308c(), $('#brandHeader').find('.copyright').length == 0 && $('#brandHeader').append(U.vbacce6a42a9154e1b2ea38c9b107fbb2('<span class=\'headerCopyright\'>{0}</span>', this.vc9944742a036e628fc4c50721d678c5c())), this.v0ba2c38541512b7d5c4758ac5cdb9394(this.v62a642b9c7b8149faec4098e70818149.designerModeEnabled), this.v7e3da8c0b342136de4e82fdba12a48e4(this.v69f691c44261b809936a2fce22619cb5('multiplayer', !1)), this.v62a642b9c7b8149faec4098e70818149.manualSaveEnabled != undefined && this.v62a642b9c7b8149faec4098e70818149.manualSaveEnabled == 0 && $('#Save').remove(), this.v69f691c44261b809936a2fce22619cb5('restartLessonEnabled', !0) == 0 && $('#RestartLesson').remove();
var b = this.v62a642b9c7b8149faec4098e70818149.securityToken, c = this.v62a642b9c7b8149faec4098e70818149.hostAddress;
if (b && c) {
this.securityToken = b, this.serverURL = U.v1b26f315d9830eaee1a9d924601a44a3(c) + '/';
var e = 'https://' + this.serverURL + 'backend/handshake/' + this.securityToken;
$.get(e, function (b) {
a.v522e816f808ee1da1f9e21b48b1eded9(b)
})
} else
this.designerModeEnabled ? setTimeout(function () {
var b = a.v0994f520f08fea90e626370078504370(), c = a.v6509424c25dde850bb5fbfeadcc58730();
b.vabad7a4f144cb842670371c400f17bcc = c, a.state = b, b.settings.LessonProjectID = a.v69f691c44261b809936a2fce22619cb5('LessonProjectID'), b.init(), a.setState(b)
}, 1) : $('body').empty();
setInterval(function () {
app.update()
}, this.v4d47b95800f984f46f99d44d867e742c), setInterval(function () {
app.v220f0bb4c57d241f631a885dda9d58d3()
}, 2e3), setInterval(function () {
app.vf9239f7642c494b64317b2f2c5eb9cc4()
}, Math.max(5, Math.floor(Number(this.v62a642b9c7b8149faec4098e70818149.autosaveInterval))) * 1e3);
var d = this.v69f691c44261b809936a2fce22619cb5('metadataOnlySaveInterval', 0);
d > 0 && setInterval(function () {
app.v7147e774f6398096873c6091efcba5ad()
}, Math.floor(d * 1e3))
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v522e816f808ee1da1f9e21b48b1eded9 = function (a) {
var b = this;
if (a == 'invalid token')
throw new Error('Handshake Error: Invalid Token');
this.v303dfbeacae629f9ecf4f0302157e46b = a;
var c = 'https://' + this.serverURL + 'backend/requestRead/' + this.v303dfbeacae629f9ecf4f0302157e46b;
$.get(c, function (a) {
b.v14fea3f4c2e143b060c2ed763218cecc(a)
})
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v14fea3f4c2e143b060c2ed763218cecc = function (a) {
var b = this;
if (a.status == 0) {
var c = a.url;
$.ajax({
type: 'GET',
url: c,
success: function (a, c, d) {
b.vc43ee25163afab6569a235c9bfa3f930(a)
},
error: function (b, c, a) {
throw new Error(a)
}
})
} else
Alert.show('Read failure<br>Status:' + responseObject.status + '<br>Message:' + responseObject.message, 'Read Error')
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vc43ee25163afab6569a235c9bfa3f930 = function (c) {
var a = this.v977355013baaeea7410fccfc2721af94(c);
if (a.v075816e557e1681259456cc8ed57ad65 && this.v09e6ca8c964e52eed6fa83bf0be8116e(a)) {
var b = vc312940263dc36be5a23e8539b6665fe.show();
this.v681f868dfb57e6a76ffc6c928bafbeb0(), _.delay(_.bind(function () {
var c = this.v0994f520f08fea90e626370078504370();
c.vabad7a4f144cb842670371c400f17bcc = a.vabad7a4f144cb842670371c400f17bcc, c.vdee38eb7b5c85b5231449c9938b8a341 = a.vdee38eb7b5c85b5231449c9938b8a341, c.settings.LessonProjectID = a.settings.LessonProjectID, this.state = c, this.vfbb7b7f5cb8ba7d8dc821114a98dd980(), c.init(), delete c.v075816e557e1681259456cc8ed57ad65, this.vbd9f91c248370ad446f081367fc1650f(c), this.v77c616cecb81c724c7a1195169d1620a(), b.close()
}, this), 3e3)
} else
this.vbd9f91c248370ad446f081367fc1650f(a)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vbd9f91c248370ad446f081367fc1650f = function (a) {
this.setState(a);
try {
signalLoadCompleteToLMS()
} catch (a) {
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vb8704dbfbeefe6477a2ffc7265f3dafb = function () {
this.v62cba0f657e867f2c82edafd96dcb8de(new vc24092b4f1303a6cc298b72b80a11273('Alert', '../VBXF/sim/Alert.html')), this.v62cba0f657e867f2c82edafd96dcb8de(new vc24092b4f1303a6cc298b72b80a11273('FinalAlert', '../VBXF/sim/FinalAlert.html')), this.v62cba0f657e867f2c82edafd96dcb8de(new vc24092b4f1303a6cc298b72b80a11273('frmRunTo', '../VBXF/sim/frmRunTo.html')), this.v62cba0f657e867f2c82edafd96dcb8de(new vc24092b4f1303a6cc298b72b80a11273('frmScoreboard', '../VBXF/sim/frmScoreboard.html')), this.v62cba0f657e867f2c82edafd96dcb8de(new vc24092b4f1303a6cc298b72b80a11273('frmPlayerList', '../VBXF/sim/frmPlayerList.html')), this.v62cba0f657e867f2c82edafd96dcb8de(new vc24092b4f1303a6cc298b72b80a11273('frmSettings', '../VBXF/sim/frmSettings.html')), this.v62cba0f657e867f2c82edafd96dcb8de(new vc24092b4f1303a6cc298b72b80a11273('frmOpenLocal', '../VBXF/sim/frmOpenLocal.html')), this.v62cba0f657e867f2c82edafd96dcb8de(new vc24092b4f1303a6cc298b72b80a11273('frmSaveLocal', '../VBXF/sim/frmSaveLocal.html')), this.v62cba0f657e867f2c82edafd96dcb8de(new vc24092b4f1303a6cc298b72b80a11273('frmExamineState', '../VBXF/sim/frmExamineState.html')), this.v62cba0f657e867f2c82edafd96dcb8de(new vc24092b4f1303a6cc298b72b80a11273('frmLicenseInfo', '../VBXF/sim/frmLicenseInfo.html')), this.v62cba0f657e867f2c82edafd96dcb8de(new vc24092b4f1303a6cc298b72b80a11273('frmTestSolution', '../VBXF/sim/frmTestSolution.html'))
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v175392c162fa2628657d1a3f9175b95a = function () {
return this.v62a642b9c7b8149faec4098e70818149.resourceRoot
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.ve7ee6ca34ca649a12c7cbb571140b59a = function (a) {
return this.v62a642b9c7b8149faec4098e70818149.resourceRoot + a
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v4221d96d7896ce39db2f1c1ff3502bd4 = function (a) {
this.state && (this.state.v8c79e0c8cb3e7591fd8996e71b7b5e5f != a && (this.va80bdf0329d8e150c99cbb7a77533f9f = !0), this.state.v8c79e0c8cb3e7591fd8996e71b7b5e5f = a, this.v5c84d159583e34b0c2b3e00920a2c77d && ($('#consensus-speed-text').hide(), $('#consensus-speed-vote-cast-text').show()), this.va80bdf0329d8e150c99cbb7a77533f9f && this.v8cf292f4364b69195a11d9e7acf9914b())
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v7854060be75e74ccb649d401730ea3a4 = function () {
this.v4221d96d7896ce39db2f1c1ff3502bd4(this.ve603d0e0486d29567c537397d1c2985e.val()), this.ve603d0e0486d29567c537397d1c2985e.attr('aria-valuenow', this.state.v8c79e0c8cb3e7591fd8996e71b7b5e5f).attr('aria-valuetext', this.speedLabels[this.state.v8c79e0c8cb3e7591fd8996e71b7b5e5f])
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vd03089b89c36a6330f5c3bc191acaab9 = function () {
var a = 0;
return this.v5c84d159583e34b0c2b3e00920a2c77d ? a = this.speeds[this.state.v9d74abe4b03a0c4b5e9b88ff50f597f1] / A.vb06c3a859d6038b4515bccc5f1f891ef().v4e2e944c1ec8f883837fce63027fae20 : a = this.speeds[this.state.v8c79e0c8cb3e7591fd8996e71b7b5e5f], a
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vd478014684bb2e94d2dae9111e58f8e4 = function (b, c) {
var a = Math.max(0, Math.min(parseInt(this.v339f451bdc86667422c5e0a7b464302c.val()) + b, this.v65c637ea0baf5919932c148aeb4cc9f9.length - 1));
this.v339f451bdc86667422c5e0a7b464302c.val(a), this.v8eb1fe4496c57b0b4b8e014fcb5be9f3 = a, this.vd14bd652ce68e2b116765de19f9d3827(c)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v1355141dbb245d8ca7ddb56fbc415182 = function (b) {
var a = this.v339f451bdc86667422c5e0a7b464302c.val();
this.v8eb1fe4496c57b0b4b8e014fcb5be9f3 = parseInt(a), this.vd14bd652ce68e2b116765de19f9d3827()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vd14bd652ce68e2b116765de19f9d3827 = function (b) {
if (this.v075f3b655ef78161c537c02e6e38938d > 0) {
var a = $('#sim-view'), d = new Point($(a).scrollLeft() + $(a).width() / 2, $(a).scrollTop() + $(a).height() / 2);
b || (b = d);
var g = this.v075f3b655ef78161c537c02e6e38938d, h = this.vdfd693eee815ed5ff9906b5dcdc9f011, e = this.vb07e7030a3b4c6b058e9f40806e38ae1();
e[0] = this.v8eb1fe4496c57b0b4b8e014fcb5be9f3, this.v35a259bfb57631466fed2a66796e8e44();
var f = new Point(b.x * (this.v075f3b655ef78161c537c02e6e38938d / g), b.y * (this.vdfd693eee815ed5ff9906b5dcdc9f011 / h)), c = new Point(f.x - (b.x - $(a).scrollLeft()) / (d.x - $(a).scrollLeft()) * .5 * $(a).width(), f.y - (b.y - $(a).scrollTop()) / (d.y - $(a).scrollTop()) * .5 * $(a).height());
$(a).scrollLeft(c.x), $(a).scrollTop(c.y), e[1] = c.x, e[2] = c.y
}
this.v8cf292f4364b69195a11d9e7acf9914b()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v1624d36ecb3300126848b9660bf019a8 = function (b) {
var a = this.vb07e7030a3b4c6b058e9f40806e38ae1();
a[1] = $(b.currentTarget).scrollLeft(), a[2] = $(b.currentTarget).scrollTop()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vb07e7030a3b4c6b058e9f40806e38ae1 = function () {
var b = '';
this.state && (this.state.vfa918617e60589af9429b43b0d8e15f0 && (b += this.state.vfa918617e60589af9429b43b0d8e15f0.toString() + '_'), b += this.state.v9c27736ecd4575037647b832405eeabf);
var a = this.v6a34f12f52da9589517919e70260376d[b];
if (a == undefined) {
if (a = [
this.v788ec81b28d71c67471a9c4461be0cce,
0,
0
], this.state) {
var c = this.v9269cc402df41025ead2c94629a6806e();
if (c) {
var d = c.vcea5a297058bf93c6c792ab5153e8695();
v9157e07168afda5e2f202057ad31ccd9 = this.v788ec81b28d71c67471a9c4461be0cce, a = [
v9157e07168afda5e2f202057ad31ccd9,
0,
0
], a[1] = (d.x * this.v65c637ea0baf5919932c148aeb4cc9f9[v9157e07168afda5e2f202057ad31ccd9] - $('#sim-view').width()) / 2, a[2] = (d.y * this.v65c637ea0baf5919932c148aeb4cc9f9[v9157e07168afda5e2f202057ad31ccd9] - $('#sim-view').height()) / 2
}
}
this.v6a34f12f52da9589517919e70260376d[b] = a
}
return a
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.va2c75108169433cf67f4bdb554ac82c5 = function (c) {
var a = '';
c ? a = c : this.state && (a = this.state.v9c27736ecd4575037647b832405eeabf);
var b = this.vc414084db4500c2bc60ddfb4079b2b70[a];
return b == undefined && (b = {}, this.vc414084db4500c2bc60ddfb4079b2b70[a] = b), b
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vfd2561d3a3a6899809435c5ad1f4a25c = function () {
this.running ? this.vab3a4c0cd27ac1f3b0d6ad180e6a5f55() : this.startTime()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.startTime = function () {
this.running = !0, this.v6cede35347e32890ce86ce9a558f83b5.addClass('start-stop-button-stop'), this.v6cede35347e32890ce86ce9a558f83b5.removeClass('start-stop-button-start'), this.v056f97ac80115ff33b1460020bee0f12.text(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Stop')), SRMessage('Sim started')
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vab3a4c0cd27ac1f3b0d6ad180e6a5f55 = function () {
this.running = !1, this.v6cede35347e32890ce86ce9a558f83b5.addClass('start-stop-button-start'), this.v6cede35347e32890ce86ce9a558f83b5.removeClass('start-stop-button-stop'), this.v056f97ac80115ff33b1460020bee0f12.text(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Start')), this.vd61fd18ef12f2373421ea24bb6c734f4 > 0 && (this.v8cf292f4364b69195a11d9e7acf9914b(), this.vd61fd18ef12f2373421ea24bb6c734f4 = 0), SRMessage('Sim stopped at ' + this.state.now.format(this.state.v001556b680e5787f8a167298f2f6afc5) + ' ' + this.state.now.format('MMM dd'))
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v0c003a4077d4d87f3c2c8ebd7cda66a4 = function () {
var a = new frmRunTo;
a.show(), a.vfbd877a9a6b9e4f1cd8537a0a9ac5312()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vab8be173226632edb127ef1550496f63 = function () {
this.state.v68c3f6ce5016f834492128297f830518 = KMDate.v7de0e242fb310ded4c773006026bd708
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vd0c01e18c1d0af116e407172fdf24398 = function (a) {
return this.v449dad7c7ccf5382cc09213f0bdaf069.push(a), a
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.getView = function (c) {
for (var a = 0; a < this.v449dad7c7ccf5382cc09213f0bdaf069.length; ++a) {
var b = this.v449dad7c7ccf5382cc09213f0bdaf069[a];
if (b.name == c)
return b
}
return null
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v9269cc402df41025ead2c94629a6806e = function () {
return this.state != null ? this.getView(this.state.v9c27736ecd4575037647b832405eeabf) : null
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v8a446954257d072de21a5f3dd4fe736a = function () {
var a = this.vb07e7030a3b4c6b058e9f40806e38ae1();
this.v8eb1fe4496c57b0b4b8e014fcb5be9f3 != a[0] && (this.v8eb1fe4496c57b0b4b8e014fcb5be9f3 = a[0], this.v339f451bdc86667422c5e0a7b464302c.val(a[0]).change());
var b = $('#sim-view');
b.scrollLeft(a[1]), b.scrollTop(a[2]), _.forEach(this.v23ab7f9f2eb0dd196a19c3b6f08670cf, function (a) {
clearInterval(a)
}), this.v23ab7f9f2eb0dd196a19c3b6f08670cf.vb6197b85339d8d08458ca1d8b757f7b5()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v1e7a7dba61ace4f500554828a7108a8f = function () {
var j = this, a = $('#overlay-container');
a.find('.btn-group').on('show.bs.dropdown', function () {
a.css('zIndex', Math.max(3, U.vd345f796963097b00d39cc79e80b992e('.ui-dialog')) + 1)
}), a.find('.btn-group').on('hidden.bs.dropdown', function () {
a.css('zIndex', 100)
});
var f = $('#overlay-menu');
f.empty();
var b = this.v9269cc402df41025ead2c94629a6806e();
if (a.toggle(b != null && b.overlays.length > 0), b != null) {
var h = this.va2c75108169433cf67f4bdb554ac82c5();
for (var d = 0; d < b.overlays.length; ++d) {
var e = b.overlays[d], g = $('<li>'), c = $('<a href=\'#\'>'), i = function (a, b) {
a.click(function () {
j.v755b0bd190a90cd138f35bd0e0b2bc60(b)
})
};
c.text(' ' + e.name), h[e.id] ? $('<i class=\'fa fa-eye\' aria-hidden=\'true\'></i><div class=\'visually-hidden\'>selected</div>').prependTo(c) : $('<i class=\'fa fa-eye-slash\' aria-hidden=\'true\'></i><div class=\'visually-hidden\'>not selected</div>').prependTo(c), i(c, e.id), c.appendTo(g), g.appendTo(f)
}
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v2274f740bfe48d5506e42a55216ae7d1 = function (a, b) {
this.v2a42e035a3e50ce16c1fb198549e1927(a, !0, b)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.va3828e5b0a40fcecf8aa579af1366f4e = function (a, b) {
this.v2a42e035a3e50ce16c1fb198549e1927(a, !1, b)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.va9a650d17acfb1d341a1d83721b9aff2 = function (b, c) {
var a = this.va2c75108169433cf67f4bdb554ac82c5(c);
return this.v5388b2bd08bd0cc31aa05c5cb62a4f22 == 0 && a[b] == 1
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v2a42e035a3e50ce16c1fb198549e1927 = function (b, c, d) {
var a = this.va2c75108169433cf67f4bdb554ac82c5(d), e = a[b] != c;
a[b] = c, this.v274a03ee647ea7814143db054799e264 = !0, this.v1e7a7dba61ace4f500554828a7108a8f(), this.v8cf292f4364b69195a11d9e7acf9914b()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v755b0bd190a90cd138f35bd0e0b2bc60 = function (a, b) {
this.v2a42e035a3e50ce16c1fb198549e1927(a, !this.va9a650d17acfb1d341a1d83721b9aff2(a, b), b)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v2fd31b8ddec405c028af11cf48b87a4f = function () {
return this.v5388b2bd08bd0cc31aa05c5cb62a4f22
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vd8dce897b1dc4926adc36236015cfb8e = function (a) {
this.v5388b2bd08bd0cc31aa05c5cb62a4f22 = a
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v720508d5c3659b419d8d583088d93da4 = function (a) {
return this.va9a650d17acfb1d341a1d83721b9aff2(a)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v86e0fa3f6a0dbd5e39b4299d75b476d0 = function (a) {
this.v9269cc402df41025ead2c94629a6806e() && this.v9269cc402df41025ead2c94629a6806e().vfc68473d0ea7eea2c50c4bcb93769a3f(), this.state.v9c27736ecd4575037647b832405eeabf = a.name, this.v1e7a7dba61ace4f500554828a7108a8f(), a.v5b4ff9bd3f262764be5e7f459e11cfca(), this.v8a446954257d072de21a5f3dd4fe736a(), this.v8cf292f4364b69195a11d9e7acf9914b()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v203eab80c1274ee59f6afef040ac4583 = function (a) {
this.v86e0fa3f6a0dbd5e39b4299d75b476d0(this.getView(a))
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v2832affc0b96701107a0d43fcac98cab = function () {
var b = [];
for (var a = 0; a < v449dad7c7ccf5382cc09213f0bdaf069.length; ++a)
b.push(v449dad7c7ccf5382cc09213f0bdaf069[a]);
return b
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v35a259bfb57631466fed2a66796e8e44 = function () {
var b = this.v9269cc402df41025ead2c94629a6806e();
if (b != null) {
var c = this.v65c637ea0baf5919932c148aeb4cc9f9[this.v8eb1fe4496c57b0b4b8e014fcb5be9f3], a = b.vcea5a297058bf93c6c792ab5153e8695().clone();
if (a.x = Math.floor(a.x * c), a.y = Math.floor(a.y * c), this.v075f3b655ef78161c537c02e6e38938d != a.x || this.vdfd693eee815ed5ff9906b5dcdc9f011 != a.y) {
this.v075f3b655ef78161c537c02e6e38938d = a.x, this.vdfd693eee815ed5ff9906b5dcdc9f011 = a.y;
var d = $('#sim-view-container');
d.css({
width: a.x,
height: a.y
}), this.canvas.attr({
width: a.x,
height: a.y
}), this.canvas.css({
width: a.x,
height: a.y
}), this.v274a03ee647ea7814143db054799e264 = !0
}
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v936ad5fc4d976f9d3986fefc6943d29d = function () {
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('Cash:')
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.setState = function (a) {
a && (this.v62a642b9c7b8149faec4098e70818149.sessionToken != undefined && a.vabad7a4f144cb842670371c400f17bcc.sessionToken == '' && (a.vabad7a4f144cb842670371c400f17bcc.sessionToken = this.v62a642b9c7b8149faec4098e70818149.sessionToken), this.v62a642b9c7b8149faec4098e70818149.playerName != undefined && (a.vabad7a4f144cb842670371c400f17bcc.playerName = this.v62a642b9c7b8149faec4098e70818149.playerName)), this.state = a, this.v287733d4184b69c34ccf19831b5a8d8b = !0, this.ve603d0e0486d29567c537397d1c2985e.attr('max', this.speeds.length - 1).attr('aria-valuemax', this.speeds.length - 1), this.va80bdf0329d8e150c99cbb7a77533f9f = !0, this.v1e7a7dba61ace4f500554828a7108a8f(), this.v8a446954257d072de21a5f3dd4fe736a(), this.v8cf292f4364b69195a11d9e7acf9914b(), this.v37fb4c32e8434650ec7fc841c78262fb && this.v8375c7a83cdb9cee005c5e2b94148980(), $('.omit_' + this.v69f691c44261b809936a2fce22619cb5('product')).remove(), this.v681f868dfb57e6a76ffc6c928bafbeb0()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v5ce611042744da7d3538deb5bdcc12ab = function (a, b) {
this.v33d1679ccbbc799ba58ef2ae9383fc37[a].push(b)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v1ecf63798f8db76009c5fd2174908dd0 = function (a, b) {
this.v33d1679ccbbc799ba58ef2ae9383fc37[a].v6658d41901465458c34d0790e8086649(b)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v995f2514fcd6cc70353680bbcd68e719 = function (d) {
var b = this.v33d1679ccbbc799ba58ef2ae9383fc37[d].clone();
for (var a = 0; a < b.length; ++a) {
var c = b[a];
c()
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.update = function () {
this.vf8ee2f732ac0ff18eabaf77dbee56267 = !0, this.v75743c359c19fe435bef751ae5792b43 = !1;
try {
if (this.state != null && this.running) {
var i = new Date().getTime(), a = this.vd03089b89c36a6330f5c3bc191acaab9();
a >= 1 ? this.v221e61db8a7ccb5a8584512f8c9f4cff = a : this.v221e61db8a7ccb5a8584512f8c9f4cff >= 1 ? this.v221e61db8a7ccb5a8584512f8c9f4cff = a : this.v221e61db8a7ccb5a8584512f8c9f4cff += a;
var d = !0;
for (var e = 0; e < Math.floor(this.v221e61db8a7ccb5a8584512f8c9f4cff); ++e) {
if (!this.running)
break;
var h = new Date().getTime() - i;
if (h > .8 * this.v4d47b95800f984f46f99d44d867e742c) {
d = !1;
break
}
if (this.state.step(), this.v6d2f5aeb8d0a1a8a5d6778e9b3c37952(), this.state.now.getTime() > this.state.v68c3f6ce5016f834492128297f830518.getTime()) {
this.vab3a4c0cd27ac1f3b0d6ad180e6a5f55(), this.state.v68c3f6ce5016f834492128297f830518 = KMDate.v7de0e242fb310ded4c773006026bd708;
break
}
if (this.state.settings.StopDate != null && this.state.now.getTime() > this.state.settings.StopDate.getTime()) {
this.vab3a4c0cd27ac1f3b0d6ad180e6a5f55(), this.vbfdd841772b984c2447611c6bac7ce23();
break
}
}
if (d || this.vd61fd18ef12f2373421ea24bb6c734f4 >= this.v93b7c7ced76f9cbe7d46ef621ad6c878 || this.vd61fd18ef12f2373421ea24bb6c734f4 * this.v4d47b95800f984f46f99d44d867e742c > this.vfabe0333df98451189cfcfef13a3aed0 * 10) {
var g = new Date().getTime();
this.vd61fd18ef12f2373421ea24bb6c734f4 = 0, this.v8cf292f4364b69195a11d9e7acf9914b(), this.vfabe0333df98451189cfcfef13a3aed0 = new Date().getTime() - g, this.v0a8b4fbf94a162f677eeb1e14f347b5f.html(U.vbacce6a42a9154e1b2ea38c9b107fbb2(' [rt={0} ms]', this.vfabe0333df98451189cfcfef13a3aed0)), this.v68081d7e244e551f1dec2d3b8da385a3.css('background-color', '#CCFDCC')
} else {
var f = this.state.now;
this.vd61fd18ef12f2373421ea24bb6c734f4++, this.v0a8b4fbf94a162f677eeb1e14f347b5f.html(this.v0a8b4fbf94a162f677eeb1e14f347b5f.html() + '+'), this.vf63907979ba6121482ce4ff4b7febecb.html(f.format(this.state.v001556b680e5787f8a167298f2f6afc5) + ' ' + f.format('ddd MMM dd yyyy')), this.v68081d7e244e551f1dec2d3b8da385a3.css('background-color', '#FF9999')
}
}
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
if (this.v75743c359c19fe435bef751ae5792b43 = !0, this.vf8ee2f732ac0ff18eabaf77dbee56267 = !1, this.designerModeEnabled) {
var j = this.v0ee3746fe2e9261f562f16f05fa2ad7d, b = 1e3 / ((this.now = new Date) - this.v2bacca15a2592ff559fa1acd7031e317);
if (!_.isNaN(b) && _.isFinite(b)) {
var c = (b - this.v0ee3746fe2e9261f562f16f05fa2ad7d) / this.vfb870cd5e072dbf6d4fa2cd90394dc3a;
_.isNaN(c) || (this.v0ee3746fe2e9261f562f16f05fa2ad7d += c, this.v2bacca15a2592ff559fa1acd7031e317 = this.now)
}
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v1ec9f6775821000219892ac3708c9ec6 = function (a) {
this.running = !0, this.vf8ee2f732ac0ff18eabaf77dbee56267 = !0;
while (this.state.now.getTime() <= a.getTime())
this.state.step(), this.v6d2f5aeb8d0a1a8a5d6778e9b3c37952();
this.vab3a4c0cd27ac1f3b0d6ad180e6a5f55(), this.state.v68c3f6ce5016f834492128297f830518 = KMDate.v7de0e242fb310ded4c773006026bd708, this.running = !1, this.vf8ee2f732ac0ff18eabaf77dbee56267 = !1, this.v8cf292f4364b69195a11d9e7acf9914b()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v6d2f5aeb8d0a1a8a5d6778e9b3c37952 = function () {
this.v8798a6e09c5950733cecd8c416e205ea.length > 0 && (this.vf8ee2f732ac0ff18eabaf77dbee56267 = !1, _.forEach(this.v8798a6e09c5950733cecd8c416e205ea, function (a) {
a.call()
}), this.v8798a6e09c5950733cecd8c416e205ea.vb6197b85339d8d08458ca1d8b757f7b5(), this.vf8ee2f732ac0ff18eabaf77dbee56267 = !0)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v8cf292f4364b69195a11d9e7acf9914b = function () {
if (this.v87c65f4d06670f3ceb0d81ffb96908c0)
return;
if (this.v87c65f4d06670f3ceb0d81ffb96908c0 = !0, this.state != null) {
if (this.v287733d4184b69c34ccf19831b5a8d8b) {
this.v287733d4184b69c34ccf19831b5a8d8b = !1;
var h = this.state.v5941d8b6596e40827476f762b5867a14;
this.state.v5094d8a32726e9020d2139a88cc1e9c4() && this.v878b37b9752c49c5567d5b9658b51622.indexOf(this.state.v9c27736ecd4575037647b832405eeabf) == -1 && (this.v878b37b9752c49c5567d5b9658b51622.length > 0 ? this.v203eab80c1274ee59f6afef040ac4583(this.v878b37b9752c49c5567d5b9658b51622[0]) : console.log('Current view \'' + this.state.v9c27736ecd4575037647b832405eeabf + '\' is not marked as \'noEntitySafe\'. You should really have at least one \'noEntitySafeView\'.')), $('#uiViews').empty();
var a = 0;
for (var b = 0; b < this.v449dad7c7ccf5382cc09213f0bdaf069.length; ++b) {
var d = this.v449dad7c7ccf5382cc09213f0bdaf069[b], f = d.v16ca3d3b48e7362045a5e00814842e2f();
f && (this.v4351206393922b855952637449798a97('uiViews', a - 1, d.name, d.name), this.v878b37b9752c49c5567d5b9658b51622.indexOf(d.name) == -1 && (this.state.v5094d8a32726e9020d2139a88cc1e9c4() || h.length <= 0) && this.v210a7b0756cec77c90bea40fb285e499('uiViews', a), ++a)
}
if (h.length > 0) {
var g = [];
for (var b = 0; b < h.length; ++b) {
var c = h[b];
if (c.vdf7e68da33521f6d99544b2acf170925() || _.isFunction(c.vbe508facaf667c172333de6b515879b6) && c.vbe508facaf667c172333de6b515879b6()) {
var f = !0;
_.isFunction(c.v16ca3d3b48e7362045a5e00814842e2f) && (f = c.v16ca3d3b48e7362045a5e00814842e2f()), f && g.push({
e: c,
i: b
})
}
}
if (g.length > 0) {
this.v2c46399c1fe6042758eaa8b6fd9deda5('uiViews', a - 1), ++a;
for (var b = 0; b < g.length; ++b) {
var k = g[b], c = k.e;
this.v4351206393922b855952637449798a97('uiViews', a - 1, 'changeEntity_' + k.i, c.toString(), c == this.state.vfa918617e60589af9429b43b0d8e15f0), c.vdf7e68da33521f6d99544b2acf170925() && _.isFunction(c.v538025a6f7e3fda9338888c0aff1f647) && !c.v538025a6f7e3fda9338888c0aff1f647() && $('#uiViews').children().last().addClass('retiredEntity'), ++a
}
}
}
for (var e in this.state.actions)
if (this.state.actions.hasOwnProperty(e)) {
var i = this.va501788bd1a393f8b32e6abd09516ec0(e).result, a = this.v5fede03e5dad8773d1a9f3a586172112('uiActions', e);
a >= 0 && this.ve711b063f5754ecadf9e40e81d54e8ee('uiActions', a, i)
}
for (var e in this.state.v86d48cb74a138405a193f753c6addd71)
if (this.state.v86d48cb74a138405a193f753c6addd71.hasOwnProperty(e)) {
var i = this.va87771318fbfed2bec8f71c688df2771(e).result, a = this.v5fede03e5dad8773d1a9f3a586172112('uiReports', e);
a >= 0 && this.ve711b063f5754ecadf9e40e81d54e8ee('uiReports', a, i)
}
}
var d = this.v9269cc402df41025ead2c94629a6806e();
if (d != null) {
if (this.v35a259bfb57631466fed2a66796e8e44(), this.v2e0145a15b8f555e5c073a6fce578daf = this.v021e7b842a3d31004e2ec07531ffa4f8(this.context, d), this.va80bdf0329d8e150c99cbb7a77533f9f) {
this.va80bdf0329d8e150c99cbb7a77533f9f = !1;
var l = this.ve603d0e0486d29567c537397d1c2985e.val();
l != this.state.v8c79e0c8cb3e7591fd8996e71b7b5e5f && this.ve603d0e0486d29567c537397d1c2985e.val(this.state.v8c79e0c8cb3e7591fd8996e71b7b5e5f), $('#speed-value').html(this.speedLabels[this.state.v8c79e0c8cb3e7591fd8996e71b7b5e5f])
}
$('#critical-resource-value').html(this.state.v3cb33cc64d52d57cd494214fba00e5cf());
var j = this.state.now;
this.vf63907979ba6121482ce4ff4b7febecb.html(j.format(this.state.v001556b680e5787f8a167298f2f6afc5) + ' ' + j.format('ddd MMM dd yyyy'))
}
} else
this.vf63907979ba6121482ce4ff4b7febecb.html('');
this.v87c65f4d06670f3ceb0d81ffb96908c0 = !1
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v220f0bb4c57d241f631a885dda9d58d3 = function () {
try {
if (this.state && this.v62a642b9c7b8149faec4098e70818149.goalEvaluationEnabled == 1)
var a = this.state.settings.LessonProjectID, b = this.evaluateGoal(a)
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
$('#fps-value').html(this.v0ee3746fe2e9261f562f16f05fa2ad7d.toFixed(1))
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vf9239f7642c494b64317b2f2c5eb9cc4 = function () {
try {
if (this.v62a642b9c7b8149faec4098e70818149.autoSaveEnabled == 1 && this.state) {
if (this.v95c1c1a6ee11aed4437f2166c7d4bf27 > 0)
return;
this.v77c616cecb81c724c7a1195169d1620a()
}
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v7147e774f6398096873c6091efcba5ad = function () {
try {
if (this.v62a642b9c7b8149faec4098e70818149.autoSaveEnabled == 1 && this.state) {
var a = this.vb30c64231b700d4a5c3c9943c4746e2a(), b = v18274a8d2986408d135610cd197406c7.encode(JSON.stringify(a)), c = 'https://' + this.serverURL + 'backend/saveMetadata/' + this.v303dfbeacae629f9ecf4f0302157e46b;
$.ajax({
type: 'POST',
url: c,
data: { metadata: b }
})
}
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v021e7b842a3d31004e2ec07531ffa4f8 = function (a, c, g) {
if (a.save(), !g) {
a.clearRect(0, 0, this.v075f3b655ef78161c537c02e6e38938d, this.vdfd693eee815ed5ff9906b5dcdc9f011);
var d = this.v65c637ea0baf5919932c148aeb4cc9f9[this.v8eb1fe4496c57b0b4b8e014fcb5be9f3];
a.scale(d, d)
}
var b = this.imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(c.imageName);
if (b)
this.imageAtlas.drawImage(a, b, 0, 0, 0, 0);
else {
var b = this.v676458f57ceed967a89ada8ec1094bd5(c.imageName);
b && a.drawImage(b.image, 0, 0)
}
var f = this.state.random.vc206b9f93382482d3853df7f2fadaf3b, e = c.v457d199922fd988b2ff40b420240a1a3();
if (this.v1dabf03d5063f07e9ef4db25e93e7871(a, e), f != this.state.random.vc206b9f93382482d3853df7f2fadaf3b)
throw new Error('State random changed during render.');
return a.restore(), this.v274a03ee647ea7814143db054799e264 = !1, e
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v1dabf03d5063f07e9ef4db25e93e7871 = function (d, e) {
var a = null;
for (var c = 0; c < e.length; ++c)
if (a = e[c], a.cache && this.v78c1a7b8f5b26209650374d4f01e103b) {
var b = this.vb69ae9d23229729eebd56c015b8b3e62(a);
b && d.drawImage(b, Math.floor(a.location.x - b.vefe5748c0894ac7b4e6854ac733236fc), Math.floor(a.location.y - b.vc4c554a7480465d80e0eb50216534f3b))
} else
a.draw(d)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v7bf41eb379b2b8dc37f95bd0e5efb3a1 = function (a) {
A.vf3351ba56d8b7e42f05b30b819a9db80().vb6fc612e9a7e7e9e2bfde5b01c70578c() || (this.vab3a4c0cd27ac1f3b0d6ad180e6a5f55(), this.vab8be173226632edb127ef1550496f63()), Alert.show(a, this.v381fa954f05ff5e913a28c162b11deae)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v3960e6ea365c49b8b152e7a38009c06b = function (d) {
var a = this.v2e0145a15b8f555e5c073a6fce578daf.clone();
if (a != null)
for (var b = a.length - 1; b >= 0; --b) {
var c = a[b].v3960e6ea365c49b8b152e7a38009c06b(d);
if (c)
return c
}
return null
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v9b909a6914ea92c6f221e8de39666c26 = function (a) {
var b = new Point(this.v5bcee061b75c00f7fdff4dc88468f0f2.x - a.localX, this.v5bcee061b75c00f7fdff4dc88468f0f2.y - a.localY);
return b.getLength() <= 10
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vc2d52ebabfbe35045a8a5aa706f9f83c = function (a) {
try {
var b = $(a.currentTarget).offset(), c = this.v65c637ea0baf5919932c148aeb4cc9f9[this.v8eb1fe4496c57b0b4b8e014fcb5be9f3];
a.originalEvent.localX = (Math.floor(a.originalEvent.pageX) - Math.floor(b.left)) / c, a.originalEvent.localY = (Math.floor(a.originalEvent.pageY) - Math.floor(b.top)) / c;
var d = this.v9269cc402df41025ead2c94629a6806e();
d != null && d.vc2d52ebabfbe35045a8a5aa706f9f83c(a)
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.ve734d3949f6f8eb06431a1d6ce35bff5 = function (a) {
try {
var g = a.originalEvent, b = g.changedTouches[0], d = $(a.currentTarget).offset(), e = this.v65c637ea0baf5919932c148aeb4cc9f9[this.v8eb1fe4496c57b0b4b8e014fcb5be9f3];
if (a.pageX = Math.floor(b.pageX), a.pageY = Math.floor(b.pageY), a.localX = (Math.floor(b.pageX) - Math.floor(d.left)) / e, a.localY = (Math.floor(b.pageY) - Math.floor(d.top)) / e, this.state != null) {
var c = this.v3960e6ea365c49b8b152e7a38009c06b(a);
this.v5bcee061b75c00f7fdff4dc88468f0f2 = new Point(a.localX, a.localY), c && c.ve734d3949f6f8eb06431a1d6ce35bff5(a);
var f = this.v9269cc402df41025ead2c94629a6806e();
f != null && f.ve734d3949f6f8eb06431a1d6ce35bff5(a, c)
}
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v00dab815311bf28411d614abdf8dcda0 = function (a) {
try {
var g = a.originalEvent, c = g.changedTouches[0], d = $(a.currentTarget).offset(), e = this.v65c637ea0baf5919932c148aeb4cc9f9[this.v8eb1fe4496c57b0b4b8e014fcb5be9f3];
if (a.pageX = Math.floor(c.pageX), a.pageY = Math.floor(c.pageY), a.localX = (Math.floor(c.pageX) - Math.floor(d.left)) / e, a.localY = (Math.floor(c.pageY) - Math.floor(d.top)) / e, this.state != null) {
var b = this.v3960e6ea365c49b8b152e7a38009c06b(a);
b ? (this.v94150be914b83b6173371d786bf0e05f != null ? this.v94150be914b83b6173371d786bf0e05f.vd47ed85cab7ce2b6d437e7b570eea18a != b.vd47ed85cab7ce2b6d437e7b570eea18a && this.v94150be914b83b6173371d786bf0e05f.v6f56fd84a121ccf8644b1335c888509d(a) : b.v6ead0f133fc5f7e3ff75ccdbb070eca3(a), this.v94150be914b83b6173371d786bf0e05f = b, b.v00dab815311bf28411d614abdf8dcda0(a)) : (this.v94150be914b83b6173371d786bf0e05f != null && this.v94150be914b83b6173371d786bf0e05f.v6f56fd84a121ccf8644b1335c888509d(a), this.v94150be914b83b6173371d786bf0e05f = null);
var f = this.v9269cc402df41025ead2c94629a6806e();
f != null && f.v00dab815311bf28411d614abdf8dcda0(a, b)
}
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vb0d035acfd8e9ce66656c288fb25c276 = function (a) {
try {
var g = a.originalEvent, b = g.changedTouches[0], d = $(a.currentTarget).offset(), e = this.v65c637ea0baf5919932c148aeb4cc9f9[this.v8eb1fe4496c57b0b4b8e014fcb5be9f3];
if (a.pageX = Math.floor(b.pageX), a.pageY = Math.floor(b.pageY), a.localX = (Math.floor(b.pageX) - Math.floor(d.left)) / e, a.localY = (Math.floor(b.pageY) - Math.floor(d.top)) / e, this.state != null) {
var c = this.v3960e6ea365c49b8b152e7a38009c06b(a);
c && c.vb0d035acfd8e9ce66656c288fb25c276(a);
var f = this.v9269cc402df41025ead2c94629a6806e();
f != null && f.vb0d035acfd8e9ce66656c288fb25c276(a, c)
}
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vc0106a6a893e4d313758985b80f88365 = function (a) {
try {
var g = a.originalEvent, b = g.changedTouches[0], d = $(a.currentTarget).offset(), e = this.v65c637ea0baf5919932c148aeb4cc9f9[this.v8eb1fe4496c57b0b4b8e014fcb5be9f3];
if (a.pageX = Math.floor(b.pageX), a.pageY = Math.floor(b.pageY), a.localX = (Math.floor(b.pageX) - Math.floor(d.left)) / e, a.localY = (Math.floor(b.pageY) - Math.floor(d.top)) / e, this.state != null) {
var c = this.v3960e6ea365c49b8b152e7a38009c06b(a);
c && c.vc0106a6a893e4d313758985b80f88365(a);
var f = this.v9269cc402df41025ead2c94629a6806e();
f != null && f.vc0106a6a893e4d313758985b80f88365(a, c)
}
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v52a42af26830ec7f8cc2ab4929db04e2 = function (a) {
try {
var c = $(a.currentTarget).offset(), d = this.v65c637ea0baf5919932c148aeb4cc9f9[this.v8eb1fe4496c57b0b4b8e014fcb5be9f3];
if (a.localX = (Math.floor(a.pageX) - Math.floor(c.left)) / d, a.localY = (Math.floor(a.pageY) - Math.floor(c.top)) / d, this.state != null) {
var b = null;
this.v9b909a6914ea92c6f221e8de39666c26(a) && (b = this.v3960e6ea365c49b8b152e7a38009c06b(a)), b && b.v52a42af26830ec7f8cc2ab4929db04e2(a);
var e = this.v9269cc402df41025ead2c94629a6806e();
e != null && e.v52a42af26830ec7f8cc2ab4929db04e2(a, b)
}
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vc50a150dbd38b5c7bdda2ae51bf74d2f = function (b) {
try {
if (b.target == this.canvas[0])
return;
var a = this.v9269cc402df41025ead2c94629a6806e();
if (a != null && a.__v2cbc24296d0f74841ec12e7645afb96e === !0)
return a.onMouseMove(b), console.log('mouse move body returning false'), !1
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vd75ad348bb17484770f7fe81eb7a7ee2 = function (b) {
try {
if (b.target == this.canvas[0])
return;
var a = this.v9269cc402df41025ead2c94629a6806e();
if (a != null && a.__v2cbc24296d0f74841ec12e7645afb96e === !0)
return console.log('mouse down body returning false'), !1
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v95961a7d37bc005d7bf2ad6832db38b1 = function (a) {
try {
if (this.designerModeEnabled && (a.shiftKey || a.ctrlKey || a.altKey))
return !1;
var c = $(a.currentTarget).offset(), d = this.v65c637ea0baf5919932c148aeb4cc9f9[this.v8eb1fe4496c57b0b4b8e014fcb5be9f3];
if (a.localX = (Math.floor(a.pageX) - Math.floor(c.left)) / d, a.localY = (Math.floor(a.pageY) - Math.floor(c.top)) / d, this.state != null) {
var b = this.v3960e6ea365c49b8b152e7a38009c06b(a);
this.v5bcee061b75c00f7fdff4dc88468f0f2 = new Point(a.localX, a.localY), b && b.v95961a7d37bc005d7bf2ad6832db38b1(a);
var e = this.v9269cc402df41025ead2c94629a6806e();
if (e != null)
return e.v95961a7d37bc005d7bf2ad6832db38b1(a, b)
}
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v459bd07f26471417484e8e7547eea3a3 = function (a) {
try {
var f = $(a.currentTarget).offset(), b = this.v65c637ea0baf5919932c148aeb4cc9f9[this.v8eb1fe4496c57b0b4b8e014fcb5be9f3];
if (a.localX = (Math.floor(a.pageX) - Math.floor(f.left)) / b, a.localY = (Math.floor(a.pageY) - Math.floor(f.top)) / b, this.state != null) {
var c = this.v3960e6ea365c49b8b152e7a38009c06b(a);
if (c && this.designerModeEnabled && (a.shiftKey || a.ctrlKey || a.altKey)) {
var d = 0, e = 0;
a.shiftKey && !a.ctrlKey && !a.altKey ? e = -1 : a.ctrlKey && !a.shiftKey && !a.altKey ? e = 1 : a.shiftKey && a.ctrlKey && !a.altKey ? d = -1 : a.shiftKey && a.altKey && !a.ctrlKey && (d = 1), this.context.save();
var b = this.v65c637ea0baf5919932c148aeb4cc9f9[this.v8eb1fe4496c57b0b4b8e014fcb5be9f3];
return this.context.scale(b, b), c.v8d9138c6347332284f5cd8928d85efe6(d, e, this.context), this.context.restore(), !1
}
c && c.v459bd07f26471417484e8e7547eea3a3(a);
var g = this.v9269cc402df41025ead2c94629a6806e();
g != null && g.v459bd07f26471417484e8e7547eea3a3(a, c)
}
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v213b452f35fa2bb266b4c9e8dada5505 = function (a) {
try {
if (this.designerModeEnabled && (a.shiftKey || a.ctrlKey || a.altKey))
return !1;
var c = $(a.currentTarget).offset(), d = this.v65c637ea0baf5919932c148aeb4cc9f9[this.v8eb1fe4496c57b0b4b8e014fcb5be9f3];
if (a.localX = (Math.floor(a.pageX) - Math.floor(c.left)) / d, a.localY = (Math.floor(a.pageY) - Math.floor(c.top)) / d, this.state != null) {
var b = null;
this.v9b909a6914ea92c6f221e8de39666c26(a) && (b = this.v3960e6ea365c49b8b152e7a38009c06b(a)), b && b.v213b452f35fa2bb266b4c9e8dada5505(a);
var e = this.v9269cc402df41025ead2c94629a6806e();
e != null && e.v213b452f35fa2bb266b4c9e8dada5505(a, b)
}
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.onMouseMove = function (a) {
try {
if (this.designerModeEnabled && (a.shiftKey || a.ctrlKey || a.altKey))
return !1;
var c = $(a.currentTarget).offset(), d = this.v65c637ea0baf5919932c148aeb4cc9f9[this.v8eb1fe4496c57b0b4b8e014fcb5be9f3];
if (a.localX = (Math.floor(a.pageX) - Math.floor(c.left)) / d, a.localY = (Math.floor(a.pageY) - Math.floor(c.top)) / d, this.state != null) {
var b = this.v3960e6ea365c49b8b152e7a38009c06b(a);
b ? (this.v94150be914b83b6173371d786bf0e05f != null ? this.v94150be914b83b6173371d786bf0e05f.vd47ed85cab7ce2b6d437e7b570eea18a != b.vd47ed85cab7ce2b6d437e7b570eea18a && this.v94150be914b83b6173371d786bf0e05f.onMouseLeave(a) : b.vc9867c1b9c302741397ffeec3f975345(a), this.v94150be914b83b6173371d786bf0e05f = b, b.onMouseMove(a)) : (this.v94150be914b83b6173371d786bf0e05f != null && this.v94150be914b83b6173371d786bf0e05f.onMouseLeave(a), this.v94150be914b83b6173371d786bf0e05f = null);
var e = this.v9269cc402df41025ead2c94629a6806e();
e != null && e.onMouseMove(a, b)
}
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v676458f57ceed967a89ada8ec1094bd5 = function (a) {
return this.v60a696de52c002956aff4c70e4117eeb[a]
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v20040a7d70f743097ea392e4dd52385d = function (c) {
if (c != this.state.vfa918617e60589af9429b43b0d8e15f0) {
this.state.vfa918617e60589af9429b43b0d8e15f0 = c, this.v287733d4184b69c34ccf19831b5a8d8b = !0, this.v8cf292f4364b69195a11d9e7acf9914b(), this.v8a446954257d072de21a5f3dd4fe736a(), this.vc4ef4eb159eb9c5d9bd6a57eac76c029();
var b = va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1.clone();
for (var a = 0; a < b.length; ++a) {
var d = b[a];
d.vc4ef4eb159eb9c5d9bd6a57eac76c029()
}
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vc595614ef91ac4695cca417dfe9e45fa = function (a) {
this.state.v5941d8b6596e40827476f762b5867a14.push(a), this.v287733d4184b69c34ccf19831b5a8d8b = !0, this.v8cf292f4364b69195a11d9e7acf9914b()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v5ba232ad931b08e8d7a959abac114feb = function (b) {
if (b != null && (this.state.v5941d8b6596e40827476f762b5867a14.v6658d41901465458c34d0790e8086649(b), this.v287733d4184b69c34ccf19831b5a8d8b = !0, this.state.vfa918617e60589af9429b43b0d8e15f0 == b)) {
var c = null, d = this.state.v5941d8b6596e40827476f762b5867a14;
for (var a = 0; a < d.length; ++a) {
var e = d[a];
if (e.vdf7e68da33521f6d99544b2acf170925()) {
c = e;
break
}
}
this.v20040a7d70f743097ea392e4dd52385d(c)
}
this.v8cf292f4364b69195a11d9e7acf9914b()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vc4ef4eb159eb9c5d9bd6a57eac76c029 = function () {
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vd7f2e01a3560a8714bbddae95e19a720 = function (b, h) {
var a = this;
try {
var e = this.veac184d9227ffa1fe8141bb8ba1521ee(b);
if (e.result == 0)
return Alert.show(e.reason), !1;
if (b.indexOf('changeEntity') != -1) {
var f = this.state.v5941d8b6596e40827476f762b5867a14[parseInt(b.substring(b.indexOf('_') + 1))];
this.v20040a7d70f743097ea392e4dd52385d(f)
}
switch (b) {
case 'Save':
this.v77c616cecb81c724c7a1195169d1620a();
break;
case 'Scoreboard':
this.v2c069958a6d7203c79929ac2f773550b();
break;
case 'PlayerList':
this.v7ac3eba0be7838ed0055f9fe2ee0820f();
break;
case 'About':
var d = Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Product Version: {0}<br>Engine Version: {1}<br>{2}', [
this.v722557e96c8e81ac41b4bab1550083a4,
this.v409ede5a246d455fb34d512591862804,
this.vc9944742a036e628fc4c50721d678c5c()
]));
d.selector.parent().find('.ui-dialog-buttonpane .copyright').remove();
d.selector.find('.copyright').css('font-size', '11px').css('color', '#222');
d.selector.find('.copy').on('click', function () {
var a = A.vf3351ba56d8b7e42f05b30b819a9db80().v5b13924e7c6f6b1e1589f2899e905570(), b = Alert.show(a)
});
break;
case 'RestartLesson':
this.v69f691c44261b809936a2fce22619cb5('restartLessonEnabled', !0) ? Alert.show(a.v62a642b9c7b8149faec4098e70818149.restartLessonMessage, U.vbacce6a42a9154e1b2ea38c9b107fbb2('Restart Lesson'), Alert.v7a6e37eae80700365db84b46681c3ba2 | Alert.vddcc157367523e251fa7b7cdb4c4a8b0, function (b) {
b.v5070344edf2c28e233d3519bbc95c4f3 == Alert.v7a6e37eae80700365db84b46681c3ba2 && a.ve90d13f44e5965ea6ee26c7c84b05d4b()
}) : Alert.show(a.v62a642b9c7b8149faec4098e70818149.restartLessonMessage, U.vbacce6a42a9154e1b2ea38c9b107fbb2('Restart Lesson'));
break;
case 'EnabledActions':
if (this.v10086bd5e6dab9b856a221156e57aab1()) {
var c = new frmSettings(this.state.actions, function (b, c) {
b.v5070344edf2c28e233d3519bbc95c4f3 == Alert.OK && a.v73cfcd635c40039c78e3186b4a7d6179(c)
});
c.show()
}
break;
case 'SIMSettings':
if (this.v10086bd5e6dab9b856a221156e57aab1()) {
var c = new frmSettings(this.state.settings, function (b, c) {
b.v5070344edf2c28e233d3519bbc95c4f3 == Alert.OK && (a.state.v00131cf0a3896f066d5b849c7f948224(c), a.v8cf292f4364b69195a11d9e7acf9914b())
});
c.show()
}
break;
case 'SaveLocal':
this.v10086bd5e6dab9b856a221156e57aab1() && this.vaf763daa70952e7f40d43d45cfc9fd65();
break;
case 'OpenLocal':
this.v10086bd5e6dab9b856a221156e57aab1() && this.v6132cdc6cb99b4f6e5d221c8dd4a000a();
break;
case 'ExamineState':
if (this.v10086bd5e6dab9b856a221156e57aab1()) {
var g = new frmExamineState(A.vb06c3a859d6038b4515bccc5f1f891ef());
g.show()
}
break;
case 'CreateCheckpoint':
this.v7298bae975e49fc03094aac02eb8c3d5();
break
}
} catch (a) {
this.v7585b0d88af2da8ddf19658f7c7cfd86(a)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vc9944742a036e628fc4c50721d678c5c = function () {
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('<div class=\'copyright\'><div class=\'copy\'>Copyright 2013-{0}</div><a target=\'_blank\' href=\'http://www.knowledgematters.com\'>Knowledge Matters, Inc</a></div>', new Date().getFullYear())
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v303e8ec80efb47d61b96fd701b64dea2 = function (a) {
var b = $(a.target).attr('id');
this.v5a071f9b5f88b21ae267ad7ab7dbb539(b, a)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v5a071f9b5f88b21ae267ad7ab7dbb539 = function (id, param) {
switch (id) {
case 'RestoreCheckpoint':
this.ve91eaf53c16e81d8bcd590f742fa73f0();
break;
case 'CreateCheckpoint':
this.v7298bae975e49fc03094aac02eb8c3d5();
break;
case 'DisplayContent':
this.v3bb5bf665bc36284ade70825753b40db($(param.target));
break;
case 'ExecuteCode':
eval(param);
break;
case 'ShowTutorial':
var tutorialSection = $(param.target).attr('data-urlParameters');
var url = U.v4deae6d968aceab1d10b8cf8676f2bd0(tutorialSection);
window.open(url)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.ve90d13f44e5965ea6ee26c7c84b05d4b = function () {
FinalAlert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Please Wait...'), this.v381fa954f05ff5e913a28c162b11deae, !1), this.suppressCloseMsg(), document.location.href = 'https://' + this.serverURL + 'sim/reset/' + this.v303dfbeacae629f9ecf4f0302157e46b
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v6132cdc6cb99b4f6e5d221c8dd4a000a = function () {
var a = this, b = new frmOpenLocal(function (c) {
c.v5070344edf2c28e233d3519bbc95c4f3 == Alert.OK && (a.vc43ee25163afab6569a235c9bfa3f930(b.data), a.v8cf292f4364b69195a11d9e7acf9914b())
});
b.show()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vb47252a37c9d7dc346333361b36f9e21 = function () {
var a = this, b = new frmOpenLocal(function (c) {
c.v5070344edf2c28e233d3519bbc95c4f3 == Alert.OK && (a.state = b.ve1989885fd47612393c1c61db0320f7b, a.v8cf292f4364b69195a11d9e7acf9914b())
}, !0);
b.show()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vaf763daa70952e7f40d43d45cfc9fd65 = function () {
var a = new frmSaveLocal(A.vb06c3a859d6038b4515bccc5f1f891ef(), function (a) {
});
a.show()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v69d0a6cd2c3b9d9c99ad4a98ab69308c = function () {
var a = this;
$('.dropdown-toggle').removeAttr('disabled');
var b = $('#menu').children().find('a');
b.click(function (c) {
var b = c.currentTarget.id;
b && a.vd7f2e01a3560a8714bbddae95e19a720(b, c)
})
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v5fede03e5dad8773d1a9f3a586172112 = function (e, f) {
var b = $('#' + e).children();
for (var a = 0; a < b.length; ++a) {
var d = b.eq(a), c = d.children();
if (c.length > 0 && c.eq(0).attr('id') == f)
return a
}
return -1
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v4351206393922b855952637449798a97 = function (c, g, h, d, e) {
var f = this, b = $('<li>'), a = $('<a href=\'#\'>');
a.attr('id', h), e == 1 && (d = ' ' + d), a.text(d), e == 1 && $('<i class=\'fa fa-chevron-right\' aria-hidden=\'true\'></i>').prependTo(a), a.click(function (a) {
a.currentTarget.id && f.vd7f2e01a3560a8714bbddae95e19a720(a.currentTarget.id, a)
}), a.appendTo(b), $('#' + c).children().length <= 0 ? $('#' + c).append(b) : $('#' + c).children().eq(g).after(b)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v56d4af0016da8519c8342b51e84d158d = function (a, b) {
$('#' + a).children().eq(b).remove()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v2c46399c1fe6042758eaa8b6fd9deda5 = function (b, c) {
var a = $('<li class=\'divider\'>');
$('#' + b).children().eq(c).after(a)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v70318223b21c041142ebdb0165c24fb4 = function (c, d) {
var b = this, a = $('#' + c).children().eq(d).children().eq(0);
a.attr('aria-disabled', 'false'), a.attr('tabindex', 0), a.unbind('click'), a.css('color', '#000'), a.click(function (c) {
var a = c.currentTarget.id;
a && b.vd7f2e01a3560a8714bbddae95e19a720(a, c)
})
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v210a7b0756cec77c90bea40fb285e499 = function (b, c) {
var a = $('#' + b).children().eq(c).children().eq(0);
a.attr('aria-disabled', 'true'), a.attr('tabindex', -1), a.css('color', '#C0C0C0')
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v9a9dabe70bed5471138b7e51648b63c7 = function (b, c) {
var a = $('#' + b).children().eq(c);
return a.attr('aria-disabled') == 'true'
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.ve711b063f5754ecadf9e40e81d54e8ee = function (a, b, c) {
c ? this.v70318223b21c041142ebdb0165c24fb4(a, b) : this.v210a7b0756cec77c90bea40fb285e499(a, b)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v2c069958a6d7203c79929ac2f773550b = function () {
var a = new frmScoreboard(this.v6c00e84ca0a5a7dca4d13fdfad7b3c3d);
a.init(), a.show()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v7ac3eba0be7838ed0055f9fe2ee0820f = function () {
var a = new frmPlayerList;
a.init(), a.show()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v6d728b956e11a3f89a7cef724aa38e46 = function () {
var a = new frmLicenseInfo;
a.show()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v7e3da8c0b342136de4e82fdba12a48e4 = function (c) {
if (c == 1 && (this.v5c84d159583e34b0c2b3e00920a2c77d = !0, this.v37fb4c32e8434650ec7fc841c78262fb = !0), c == 'dataOnly' && (this.v37fb4c32e8434650ec7fc841c78262fb = !0), this.v37fb4c32e8434650ec7fc841c78262fb) {
this.vab916438b99433b6cfab645316a0c12a = this.v62a642b9c7b8149faec4098e70818149.multiplayerHostAddress;
var a = this.v6436c144bf50c41ec60f20531b1e81f8('playerName');
a != undefined && (this.v62a642b9c7b8149faec4098e70818149.playerName = a);
var b = this.v6436c144bf50c41ec60f20531b1e81f8('sessionToken');
b != undefined && (this.v62a642b9c7b8149faec4098e70818149.sessionToken = b), this.v62a642b9c7b8149faec4098e70818149.sessionToken || this.designerModeEnabled || (this.v62a642b9c7b8149faec4098e70818149.sessionToken = this.v69f691c44261b809936a2fce22619cb5('courseKey') + this.v69f691c44261b809936a2fce22619cb5('lessonName')), setInterval(function () {
app.v8375c7a83cdb9cee005c5e2b94148980()
}, 1e4)
}
this.v5c84d159583e34b0c2b3e00920a2c77d ? ($('#consensus-speed-container').css('display', 'inline-block'), $('#start-stop-button').hide(), $('#start-stop-button').unbind('click'), $('#run-to-button').hide(), $('#run-to-button').unbind('click'), this.v2c069958a6d7203c79929ac2f773550b(), this.startTime()) : $('.multiplayer').remove()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v0ba2c38541512b7d5c4758ac5cdb9394 = function (a) {
this.designerModeEnabled = a, this.designerModeEnabled ? this.v1c1b6adf57e3399adec3b3858b19c44e = U.v30f2b517edbbe279d221c89c4b2d2eaf() : $('.designerMode').remove()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vb9f13f8143fbee3dfdbb0c0ed6dc32c4 = function () {
var b = this.v90be04193a03748a59f73fe6533de825.clone();
for (var a = 0; a < b.length; ++a) {
var c = b[a];
c()
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v2b67c94f99d3fc1f91e2d56e8f3034d8 = function (a) {
this.v90be04193a03748a59f73fe6533de825.push(a)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v756c989e079f19224357a90dd98627c6 = function (a) {
this.v90be04193a03748a59f73fe6533de825.v6658d41901465458c34d0790e8086649(a)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v8375c7a83cdb9cee005c5e2b94148980 = function () {
this.state && (this.state.v8375c7a83cdb9cee005c5e2b94148980(), this.state.v1683cc1500f7eb1818a56e2d82ee886e())
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v10086bd5e6dab9b856a221156e57aab1 = function () {
return this.designerModeEnabled == 1
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v73cfcd635c40039c78e3186b4a7d6179 = function (a) {
this.state.actions = U.vda846d1bb09c81288283371d4b22a9f0(a), this.v287733d4184b69c34ccf19831b5a8d8b = !0, this.v8cf292f4364b69195a11d9e7acf9914b()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v6160eecf80c7486bdbe11abba3a31a63 = function (b) {
var a = this.veac184d9227ffa1fe8141bb8ba1521ee(b).result;
return a
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.veac184d9227ffa1fe8141bb8ba1521ee = function (a) {
var b = {
result: !0,
reason: ''
};
return this.state.actions[a] != undefined && (b = this.va501788bd1a393f8b32e6abd09516ec0(a)), this.state.v86d48cb74a138405a193f753c6addd71[a] != undefined && (b = this.va87771318fbfed2bec8f71c688df2771(a)), b
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.va501788bd1a393f8b32e6abd09516ec0 = function (d) {
var c = '', b = this.state.actions[d];
if (!b)
c = 'That menu item is used in other lessons but is not active in this lesson.';
else {
var a = this.state.vfa918617e60589af9429b43b0d8e15f0;
a == null ? this.v6f315f5409fdad080342ebf690e228a7.indexOf(d) == -1 && (b = !1, c = 'That menu item is active when there is a business operating.') : _.isFunction(a.vdf7e68da33521f6d99544b2acf170925) && (a.vdf7e68da33521f6d99544b2acf170925() ? (_.isFunction(a.v538025a6f7e3fda9338888c0aff1f647) && !a.v538025a6f7e3fda9338888c0aff1f647() && this.v1f0f046d09faa6d8fc1df33501d96d14.indexOf(d) == -1 && (b = !1, c = 'That menu item is active when the current business is operating.'), _.isFunction(a.v5c5524236d1ebc36e7df1d291f87e62f) && !a.v5c5524236d1ebc36e7df1d291f87e62f() && this.ve21ce26f41ddcf1884f33c29e0fdf9da.indexOf(d) == -1 && (b = !1, c = 'That menu item is active when the current business has a location in the city.')) : b = !1)
}
return {
result: b,
reason: c
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.va87771318fbfed2bec8f71c688df2771 = function (d) {
var c = '', a = this.state.v86d48cb74a138405a193f753c6addd71[d];
a || (c = 'That menu item is used in other lessons but is not active in this lesson.');
var b = this.state.vfa918617e60589af9429b43b0d8e15f0;
return b == null ? this.v2d4cfed0d0594e509be17a93e5cfeea3.indexOf(d) == -1 && (a = !1, c = 'That menu item is active when there is a business operating.') : _.isFunction(b.vdf7e68da33521f6d99544b2acf170925) && (b.vdf7e68da33521f6d99544b2acf170925() ? _.isFunction(b.v538025a6f7e3fda9338888c0aff1f647) && !b.v538025a6f7e3fda9338888c0aff1f647() && this.v8c8bd58acc7b2708cd2cd2811a9e99bc.indexOf(d) == -1 && (a = !1, c = 'That menu item is active when the current business is operating.') : a = !1), {
result: a,
reason: c
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.isDisabled = function (a) {
if (this.state.actions[a] == undefined)
return !1;
var b = !this.va501788bd1a393f8b32e6abd09516ec0(a).result;
return b
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.enable = function (a) {
this.vacc3aa856f14873d3f12b46222e8529e(a, !0)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.disable = function (a) {
this.vacc3aa856f14873d3f12b46222e8529e(a, !1)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vacc3aa856f14873d3f12b46222e8529e = function (a, b) {
this.state.actions[a] = b, this.v287733d4184b69c34ccf19831b5a8d8b = !0, this.v8cf292f4364b69195a11d9e7acf9914b()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vc0783029f9312c7c846e69126ed20571 = function () {
this.v5be18e043bdb99d80766e430f0d58152(!0)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v38cce0c3aebc88fc85c45389c4e16c31 = function () {
this.v5be18e043bdb99d80766e430f0d58152(!1)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v5be18e043bdb99d80766e430f0d58152 = function (b) {
for (var a in this.state.actions)
this.state.actions.hasOwnProperty(a) && (this.state.actions[a] = b);
this.v287733d4184b69c34ccf19831b5a8d8b = !0, this.v8cf292f4364b69195a11d9e7acf9914b()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.evaluateGoal = function (b) {
var a = {};
return a.complete = !0, a.reason = '', a.progress = 1, a
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.stopAndQuerySaved = function () {
if (this.vab3a4c0cd27ac1f3b0d6ad180e6a5f55(), this.v62a642b9c7b8149faec4098e70818149.manualSaveEnabled == 0)
return !0;
var a = new vd7ea82ddd10f919b99db37d72fb3e446, b = this.state.v003808a2358f9691749f115b86cc77e6(a);
return b == this.v10f85aa9cb6068fdb18fb687f2b09c00
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.suppressCloseMsg = function () {
typeof suppressCloseMsg == 'function' && suppressCloseMsg()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v200f0aaa8eb1041078a351f0ad06991f = function (a, b) {
this.state && this.state.vc2c762ce377b3b58aaa81f0436ceea58 == 0 && (this.state.vc2c762ce377b3b58aaa81f0436ceea58 = !0, b == 1 && (this.state.vc99b1d31c0fe2e5a6e773600f35aca39 = !0), A.vf3351ba56d8b7e42f05b30b819a9db80().vab3a4c0cd27ac1f3b0d6ad180e6a5f55(), this.v77c616cecb81c724c7a1195169d1620a(function () {
A.vf3351ba56d8b7e42f05b30b819a9db80().v8ab5795a3fd1a4f81fc3ba11d435bd06(a, U.vbacce6a42a9154e1b2ea38c9b107fbb2('Sim Over'))
}))
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v8ab5795a3fd1a4f81fc3ba11d435bd06 = function (a, b) {
try {
simComplete()
} catch (a) {
}
this.vab3a4c0cd27ac1f3b0d6ad180e6a5f55(), this.suppressCloseMsg(), FinalAlert.show(a, b, !0), this.v62a642b9c7b8149faec4098e70818149.autoSaveEnabled = !1
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vbfdd841772b984c2447611c6bac7ce23 = function () {
this.vf792576ea2272493316df7cf4da74f89()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vf792576ea2272493316df7cf4da74f89 = function () {
this.v8684863d0afbd30099deb9c26655b64d.off('click'), this.v8684863d0afbd30099deb9c26655b64d.unbind('click'), this.v8684863d0afbd30099deb9c26655b64d.attr('disabled', 'disabled'), $('#run-to-button').off('click'), $('#run-to-button').unbind('click'), $('#run-to-button').attr('disabled', 'disabled')
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v977355013baaeea7410fccfc2721af94 = function (b) {
var a = null;
if (b) {
var c = v18274a8d2986408d135610cd197406c7.decode(b), d = new vd7ea82ddd10f919b99db37d72fb3e446(c);
a = d.vfc705923290e1493d821d1463c187fc6()
} else
Alert.show('Read returned no data', 'Read Error');
return a
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vb30c64231b700d4a5c3c9943c4746e2a = function () {
var a = {};
return a
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v72f5d4e8ae06603b671556fafaee6a0a = function () {
$('#async-event-indicator-value').text(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Saving...')), $('#async-event-indicator').show()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vc0a2efcf38094ab1c40acc97ea086538 = function (a) {
a || $('#async-event-indicator').hide()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v77c616cecb81c724c7a1195169d1620a = function (b) {
_.isFunction(b) && (this.v90ac6688d4494f4af9cbd193975936d4 = b);
var a = this;
return this.serverURL != '' && this.v62a642b9c7b8149faec4098e70818149.manualSaveEnabled == 1 ? (this.v37fb4c32e8434650ec7fc841c78262fb && this.v8375c7a83cdb9cee005c5e2b94148980(), this.v72f5d4e8ae06603b671556fafaee6a0a(), setTimeout(_.bind(function () {
var c = new vd7ea82ddd10f919b99db37d72fb3e446;
try {
c.v1434c04adb7ea71feffa8c1edddd1d46(this.state)
} catch (a) {
c.v06b5d403584104c81b67c4d068666880(), this.vb4e04532162755da357d86c686032aff(a.message, !0);
return
}
var e = c.toString(), b = SHA256_hash(e);
if (b != this.v10f85aa9cb6068fdb18fb687f2b09c00) {
var f = v18274a8d2986408d135610cd197406c7.encode(e);
this.vc6e4784f3a3e4b293f49aa09477df660 = b;
var d = {};
d.hash = b, d.data = c;
var g = this.vb30c64231b700d4a5c3c9943c4746e2a(), h = v18274a8d2986408d135610cd197406c7.encode(JSON.stringify(g)), i = 'https://' + this.serverURL + 'backend/saveEx/' + this.v303dfbeacae629f9ecf4f0302157e46b;
return $.ajax({
type: 'POST',
url: i,
data: {
data: f,
metadata: h,
stateHash: b
},
success: function (c) {
a.v7ce60c34cb0a568b2ac5a0225a7940e4(c, b)
},
error: function (b) {
a.v0a66a08bb6f2f50e64579a17381747ec(b)
},
dataType: 'html'
}), this.v95c1c1a6ee11aed4437f2166c7d4bf27++, this.vc0a2efcf38094ab1c40acc97ea086538(!0), d
}
this.vbf680f42dcfdf70e43bd554173bbf87a(), this.vc0a2efcf38094ab1c40acc97ea086538()
}, this), 100)) : this.v90ac6688d4494f4af9cbd193975936d4 && (this.v90ac6688d4494f4af9cbd193975936d4.call(), delete this.v90ac6688d4494f4af9cbd193975936d4), null
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v7ce60c34cb0a568b2ac5a0225a7940e4 = function (b, c) {
var a = null;
try {
a = JSON.parse(b)
} catch (a) {
this.vb4e04532162755da357d86c686032aff(U.vbacce6a42a9154e1b2ea38c9b107fbb2('An unknown response was received from the server'), !0);
return
}
a.status == 0 ? (this.v95c1c1a6ee11aed4437f2166c7d4bf27 = 0, this.v92d629f1da5d7f800d56723e19459e2e(), this.vd6a8c030c1a3e6a2dd32bae19149b92f = new Date, this.vc0a2efcf38094ab1c40acc97ea086538(), this.v90ac6688d4494f4af9cbd193975936d4 && (this.v90ac6688d4494f4af9cbd193975936d4.call(), delete this.v90ac6688d4494f4af9cbd193975936d4), this.v10f85aa9cb6068fdb18fb687f2b09c00 = c, SRMessage('sim saved.'), saveComplete()) : this.v188160f03dcabd43bb26db37343a31a0(a)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v0a66a08bb6f2f50e64579a17381747ec = function (a) {
this.v95c1c1a6ee11aed4437f2166c7d4bf27 <= 1 ? this.vbfd32ce2c56babc8f8ee8975593ecb00() : this.vb4e04532162755da357d86c686032aff(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Please check your connection to the Internet.<br>Technical Error Detail: {0}', [a.statusText]), !0)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v188160f03dcabd43bb26db37343a31a0 = function (a) {
a.status == -1 ? this.v594285a3579a7a9c02b4131c2486def4() : this.vb4e04532162755da357d86c686032aff(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Server Error: {0}', [a.message]), a.v21a34b74cd2ce33c56f63cf3616671b6)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vb4e04532162755da357d86c686032aff = function (c, b) {
if (this.ve0cbfece669d6b7cb83cb0de0665e2ad == null) {
this.vab3a4c0cd27ac1f3b0d6ad180e6a5f55();
var a = U.vbacce6a42a9154e1b2ea38c9b107fbb2('We\'re having trouble saving your Sim');
b ? a += U.vbacce6a42a9154e1b2ea38c9b107fbb2(', but we\'ll keep trying every 10 seconds...<br><br>') : a += '.<br><br>', this.ve0cbfece669d6b7cb83cb0de0665e2ad = FinalAlert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2(a + '{0}', [c]), U.vbacce6a42a9154e1b2ea38c9b107fbb2('Trying to Save Sim'), !1)
}
b ? this.vbfd32ce2c56babc8f8ee8975593ecb00() : (this.vf792576ea2272493316df7cf4da74f89(), this.v248544d18570cabc005083c8418f7f5f())
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v92d629f1da5d7f800d56723e19459e2e = function () {
this.ve0cbfece669d6b7cb83cb0de0665e2ad != null && (this.ve0cbfece669d6b7cb83cb0de0665e2ad.close(), this.ve0cbfece669d6b7cb83cb0de0665e2ad = null)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v7bffea172d8d62d57b697edb2d0d2310 = function () {
this.v77c616cecb81c724c7a1195169d1620a()
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vbfd32ce2c56babc8f8ee8975593ecb00 = function () {
var a = this;
setTimeout(function () {
a.v77c616cecb81c724c7a1195169d1620a()
}, 1e4)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vbf680f42dcfdf70e43bd554173bbf87a = function () {
var a = this, b = Math.floor(Math.random() * 1e4), c = 'https://' + this.serverURL + 'backend/isLoggedIn/' + this.v303dfbeacae629f9ecf4f0302157e46b + '/' + this.state.v439996edc8b8293e5ab20ad2df21dd8b() + '/' + b;
$.ajax({
url: c,
method: 'POST',
data: {
v303dfbeacae629f9ecf4f0302157e46b: this.v303dfbeacae629f9ecf4f0302157e46b,
simTicks: this.state.v439996edc8b8293e5ab20ad2df21dd8b()
},
success: function (b) {
a.vb11215b8e7229a7d0dac45c4e9c6d60a(b)
},
error: function (b) {
a.v17284b6e3eb5063b7401e54a4c9119eb(b)
},
dataType: 'json'
})
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v17284b6e3eb5063b7401e54a4c9119eb = function (a) {
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vb11215b8e7229a7d0dac45c4e9c6d60a = function (a) {
if (a != null) {
var b = a.isLoggedIn;
if (a.status < 0) {
this.vab3a4c0cd27ac1f3b0d6ad180e6a5f55(), FinalAlert.show(a.message, 'Multiple Window Violation Detected', !1);
return
}
b == 'false' ? this.v594285a3579a7a9c02b4131c2486def4() : a.timeLeft < Math.max(120, 1.5 * this.v69f691c44261b809936a2fce22619cb5('autosaveInterval')) && !this.vf54ac9ad1c8f75b20ac01911ec0eb8e0 && (this.vf54ac9ad1c8f75b20ac01911ec0eb8e0 = !0, Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Your session is about to expire. Click OK to extend your session'), U.vbacce6a42a9154e1b2ea38c9b107fbb2('Extend Session'), Alert.OK, function (a) {
a.v5070344edf2c28e233d3519bbc95c4f3 == Alert.OK && (A.vf3351ba56d8b7e42f05b30b819a9db80().vf54ac9ad1c8f75b20ac01911ec0eb8e0 = !1, _.isUndefined(A.vb06c3a859d6038b4515bccc5f1f891ef().v511e95cb7754c26c2be68b31f6933936) && (A.vb06c3a859d6038b4515bccc5f1f891ef().v511e95cb7754c26c2be68b31f6933936 = 0), A.vb06c3a859d6038b4515bccc5f1f891ef().v511e95cb7754c26c2be68b31f6933936++, A.vf3351ba56d8b7e42f05b30b819a9db80().v77c616cecb81c724c7a1195169d1620a())
}))
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v594285a3579a7a9c02b4131c2486def4 = function () {
this.v92d629f1da5d7f800d56723e19459e2e(), this.vab3a4c0cd27ac1f3b0d6ad180e6a5f55(), this.v62a642b9c7b8149faec4098e70818149.autoSaveEnabled = !1, this.suppressCloseMsg(), FinalAlert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('You have been logged out. Please close this browser window and log back in to continue using Virtual Business.'), U.vbacce6a42a9154e1b2ea38c9b107fbb2('Logged Out'), !1)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v7585b0d88af2da8ddf19658f7c7cfd86 = function (a) {
if (a instanceof v6a3609e38e0f740d9fac571dd04ed021)
Alert.show(a.message);
else if (this.designerModeEnabled)
throw Alert.show('An exception occured, check the console for more detail.'), a;
else
Alert.show('An error was encountered:<br>' + a.message)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v6436c144bf50c41ec60f20531b1e81f8 = function (b) {
var a = undefined;
return this.v1c1b6adf57e3399adec3b3858b19c44e != undefined && (a = this.v1c1b6adf57e3399adec3b3858b19c44e[b]), a
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v39121ee19ea6319acd3db15d0f2e9f51 = function (a, b) {
return KMDate.va02ce71d9177e2e7b34bbebd4a91c9a0(b, a)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v6509424c25dde850bb5fbfeadcc58730 = function () {
var a = null;
return this.v37fb4c32e8434650ec7fc841c78262fb ? a = new vcdb0cd9da72818ed35cd98969f38d410 : a = new v202666b14c292cd4f13504344674eaab, a
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vc2752837c6af35b22a0950813cf3f103 = function () {
return this.v5c84d159583e34b0c2b3e00920a2c77d && this.v37fb4c32e8434650ec7fc841c78262fb
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v06d54ef9a374ecf66d128a94091b9b49 = function () {
return this.v37fb4c32e8434650ec7fc841c78262fb
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v06edde2e5be670a6a21e27874239c781 = function () {
return this.v5c84d159583e34b0c2b3e00920a2c77d
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v1683cc1500f7eb1818a56e2d82ee886e = function (a, b, c) {
this.state.vabad7a4f144cb842670371c400f17bcc.v5a6bbcb970b1b36dd69dff8e6b2c6506(a, b, c)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v480440d399eabc9feaf69576db8908b1 = function (a, b) {
this.state.vabad7a4f144cb842670371c400f17bcc.v5427a19b5398ea61c38cc0161d49e370(a, b)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vfba07d382a45e067a5ccf66d634f9ace = function (a) {
this.state.vabad7a4f144cb842670371c400f17bcc.vfc1a054df0abd6d977e023e30608ffbc(a)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vb6fc612e9a7e7e9e2bfde5b01c70578c = function () {
return this.designerModeEnabled && _.isObject(this.v1c1b6adf57e3399adec3b3858b19c44e) && this.v1c1b6adf57e3399adec3b3858b19c44e.testSolution == 'true' ? !0 : !1
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vb1011a6ce8bd2e84c5fe70d1da1cc1a2 = function () {
try {
if (_.isObject(this.v1c1b6adf57e3399adec3b3858b19c44e) && _.isString(this.v1c1b6adf57e3399adec3b3858b19c44e.SaveTo) && _.isString(this.v1c1b6adf57e3399adec3b3858b19c44e.LessonProjectID)) {
var a = new ActiveXObject('Scripting.FileSystemObject');
function e(b) {
a.FolderExists(b) || (e(a.GetParentFolderName(b)), a.CreateFolder(b))
}
e(this.v1c1b6adf57e3399adec3b3858b19c44e.SaveTo);
var b = this.v1c1b6adf57e3399adec3b3858b19c44e.LessonProjectID;
this.vb6fc612e9a7e7e9e2bfde5b01c70578c() && (b += '_TS');
var c = a.CreateTextFile(this.v1c1b6adf57e3399adec3b3858b19c44e.SaveTo + '\\' + b, !0), d = new vd7ea82ddd10f919b99db37d72fb3e446;
d.v1434c04adb7ea71feffa8c1edddd1d46(this.state);
var f = v18274a8d2986408d135610cd197406c7.encode(d.toString());
c.Write(f), c.Close(), !_.isUndefined(window.opener) && _.isFunction(window.opener.onTemplateGenerated) && window.opener.onTemplateGenerated.call(window, b)
}
} catch (a) {
alert('Failed to write sim template file. This will only work in designer mode in IE as a Trusted Site with modified security settings. Error:' + a.toString())
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v7298bae975e49fc03094aac02eb8c3d5 = function () {
var a = Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Creating a restore checkpoint for Sim...'), U.vbacce6a42a9154e1b2ea38c9b107fbb2('Creating Checkpoint'), 0);
setTimeout(_.bind(function () {
delete this.state.v6b88f6413042d07e0f3a1be386f46e88;
var b = new vd7ea82ddd10f919b99db37d72fb3e446;
b.v1434c04adb7ea71feffa8c1edddd1d46(this.state);
var c = b.toString();
this.state.v6b88f6413042d07e0f3a1be386f46e88 = v18274a8d2986408d135610cd197406c7.encode(c), a.close()
}, this), 10)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.ve91eaf53c16e81d8bcd590f742fa73f0 = function () {
if (this.state.v6b88f6413042d07e0f3a1be386f46e88) {
this.v53aa4299971a9f191679ad07f9f21343 = this.state.v6b88f6413042d07e0f3a1be386f46e88, this.vab3a4c0cd27ac1f3b0d6ad180e6a5f55();
var b = va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1.clone();
for (var a = 0; a < b.length; ++a) {
var c = b[a];
c.close()
}
delete this.state;
var d = Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Restoring to previous point in Sim...'), U.vbacce6a42a9154e1b2ea38c9b107fbb2('Restoring Checkpoint'), 0);
setTimeout(_.bind(function () {
var b = v18274a8d2986408d135610cd197406c7.decode(this.v53aa4299971a9f191679ad07f9f21343), a = new vd7ea82ddd10f919b99db37d72fb3e446(b), c = a.vfc705923290e1493d821d1463c187fc6();
this.setState(c);
var a = new vd7ea82ddd10f919b99db37d72fb3e446;
a.v1434c04adb7ea71feffa8c1edddd1d46(this.state);
var e = a.toString();
this.state.v6b88f6413042d07e0f3a1be386f46e88 = v18274a8d2986408d135610cd197406c7.encode(e), this.v8cf292f4364b69195a11d9e7acf9914b(), delete this.v53aa4299971a9f191679ad07f9f21343, d.close()
}, this), 10)
}
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v3bb5bf665bc36284ade70825753b40db = function (d) {
var b = $('<iframe id="extContent" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>'), a = this.v175392c162fa2628657d1a3f9175b95a();
a.indexOf('//') >= 0 && (a = a.substr(a.indexOf('//') + 2)), a = a.substr(a.indexOf('/'));
var g = a + d.attr('data-href'), f = d.attr('data-title'), e = d.attr('data-width'), h = d.attr('data-height');
b.attr({
width: +e,
src: g,
height: +h,
name: f
}), b.on('load', function () {
c.dialog('open'), $iDoc = $(b[0].contentDocument), $iDoc.find('head').append('<style type=\'text/css\'>h2,h3,h4,h5,h6{margin-block-start:0em; margin-block-end:0em;}</style>'), $iDoc.find('table').attr('role', 'table').each(function () {
var a = $(this).find('tbody');
a.find('tr').first().find('td').each(function () {
$(this).attr('scope', 'col').attr('role', 'columnheader')
}), a.find('tr:gt(0)').each(function () {
$(this).find('td').first().attr('scope', 'row').attr('role', 'rowheader')
})
}), U.v2aa5ce66f415b83317f43962b555e779(c)
});
var c = $('<div><a class=\'printLessonContentIframe btn btn-default\' aria-label=\'Print button\' href=\'#\'></a></div>').append(b).appendTo('body');
c.dialog({
autoOpen: !1,
resizable: !1,
width: 'auto',
height: 'auto',
classes: { 'ui-dialog': 'iFrameContentDialog' },
dragStart: function () {
$(this).parent().width(e)
},
dragStop: function () {
$(this).parent().width(e)
},
close: function () {
b.attr('src', ''), $(this).dialog('destroy').remove()
}
}), $('.printLessonContentIframe').on('click', function () {
$(this).siblings('iframe')[0].contentWindow.print()
}), c.dialog('option', 'title', f)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.va6ad9c5ef0eb8bb1b2e08ea6e89f7640 = function (a, b) {
this.vab3a4c0cd27ac1f3b0d6ad180e6a5f55(), this.v815481b3ee8dff1e6de593cac197d708 || (this.v815481b3ee8dff1e6de593cac197d708 = !0, Alert.show(a, b, Alert.OK, _.bind(function (a) {
this.ve91eaf53c16e81d8bcd590f742fa73f0(), delete this.v815481b3ee8dff1e6de593cac197d708
}, this)))
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v69f691c44261b809936a2fce22619cb5 = function (a, c) {
var b = c;
return this.v62a642b9c7b8149faec4098e70818149 && !_.isUndefined(this.v62a642b9c7b8149faec4098e70818149[a]) && (b = this.v62a642b9c7b8149faec4098e70818149[a]), this.v62a642b9c7b8149faec4098e70818149.designerModeEnabled && !_.isUndefined(U.v30f2b517edbbe279d221c89c4b2d2eaf()[a]) && (b = U.v30f2b517edbbe279d221c89c4b2d2eaf()[a]), this.AppConfig && !_.isUndefined(this.AppConfig[a]) && (b = this.AppConfig[a]), b
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vb46f6f840cb4fedd841219f5971cc159 = function (b) {
var a = 'https://' + this.serverURL + 'backend/userReportedLicenseViolation/' + this.v303dfbeacae629f9ecf4f0302157e46b;
$.ajax({
type: 'POST',
url: a,
data: { message: b }
})
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v23998b3b73098371038b74d831eaee56 = function (a) {
this.v8798a6e09c5950733cecd8c416e205ea.v657e3b6ac90f6a38de6cb0a741ad936e(a)
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v5b13924e7c6f6b1e1589f2899e905570 = function () {
return A.vb06c3a859d6038b4515bccc5f1f891ef().random.vc206b9f93382482d3853df7f2fadaf3b
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.v09e6ca8c964e52eed6fa83bf0be8116e = function () {
return !0
}, vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vfbb7b7f5cb8ba7d8dc821114a98dd980 = function () {
}, v103be72cf6bff4222bdadabc2d610ad6.prototype = Object.create(vdc7354c3cd5c7774f4dbfeba28eba934.prototype), v103be72cf6bff4222bdadabc2d610ad6.prototype.constructor = v103be72cf6bff4222bdadabc2d610ad6, v103be72cf6bff4222bdadabc2d610ad6.prototype.va027da377a4206da5cc92bab30283f3f = function () {
var c = this, a = this.state.settings.LessonProjectID, b = a;
this.state.settings.v307df6dc805e78382cc22fb0b23a60fe && (b = this.state.settings.v307df6dc805e78382cc22fb0b23a60fe);
var d = 'data/lessons/' + b + '.json?r=' + Math.floor(Math.random() * 1e3).toString();
$.get(d, function (b) {
c.v60d0cf3e1cc3e24e7f8a9fb39fece2fa(a, b)
})
}, v103be72cf6bff4222bdadabc2d610ad6.prototype.v60d0cf3e1cc3e24e7f8a9fb39fece2fa = function (m, c) {
var b = new v28f4c9f66e294b1221dd8f8a38a73a12;
b.vecbd4990d9af3a5c5f3f2f28b6e7f5b5 = m, A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('lessonName', '') == '' && (A.vf3351ba56d8b7e42f05b30b819a9db80().v62a642b9c7b8149faec4098e70818149.lessonName = c.lessonName), c.vb5e8773f408aebc56183f045b53164c1 != undefined && (b.vb5e8773f408aebc56183f045b53164c1 = c.vb5e8773f408aebc56183f045b53164c1), c.vdd885c5c9e6e36fb6475bd0cc065ad27 != undefined && (b.vdd885c5c9e6e36fb6475bd0cc065ad27 = c.vdd885c5c9e6e36fb6475bd0cc065ad27);
var d = new v3b690a98f72fc19fa9a5b8f2ce457701(b);
b = _.merge(b, c.metadata);
var h = c.steps;
if (h) {
for (var i = 0; i < h.length; ++i) {
var a = h[i], e = new v9b0369ebdbdfa3b2620a4be3c6872201;
e.ve0732c3b014b3ef9b8325f4e58a3f358 = a.ve0732c3b014b3ef9b8325f4e58a3f358 != undefined ? a.ve0732c3b014b3ef9b8325f4e58a3f358 : null, e.v2ed33fc05fe111d24ed7493cc3696673 = a.v2ed33fc05fe111d24ed7493cc3696673 != undefined ? a.v2ed33fc05fe111d24ed7493cc3696673 : null, _.isUndefined(a.v869b91e97af4ac41b03fe28750b206df) || (e.v869b91e97af4ac41b03fe28750b206df = a.v869b91e97af4ac41b03fe28750b206df, a.va6bef0d9228abb79edd680a94829a610 && (e.va6bef0d9228abb79edd680a94829a610 = a.va6bef0d9228abb79edd680a94829a610)), d.v9cb20e9b0acd3926a5d3c244ec127f62(e), d.setText(a.text);
var f = a.v4b720c673788e5ccb3596d1aea3dc026;
if (f) {
if (d.v54f03963cf1b381a4b744a9a0a46ccc8(new v6da5168b02ae4243cad2eee5c9fc8f35(f.text)), f.vb21ecfb5c00e851c793e579e1c88b6b7.length <= 0)
throw new Error('No answers specified for question!');
for (var j = 0; j < f.vb21ecfb5c00e851c793e579e1c88b6b7.length; ++j) {
var g = f.vb21ecfb5c00e851c793e579e1c88b6b7[j], l = g.v3602243bd8251bd96baa4c931dacd3d9 != undefined && g.v3602243bd8251bd96baa4c931dacd3d9 == 1, k = g.formula != undefined ? g.formula : null;
d.v430936e79f6936a57647a599d0f1c10e(new ve3e5ba7ab1114452acfd6c55f263796e(g.text, k, l))
}
}
}
d.v6343ef5cd735451b034e30cd54f9ca2f(), d.vf817a8352efe9860f31ffc54e386f8cc(), this.v1a5d737866b9cc94ff4bf787cf85c5d4 = null, this.state.vdee38eb7b5c85b5231449c9938b8a341 = null, this.vbc0da87f01ac7921c3a64ee91483aeae(b)
}
}, v103be72cf6bff4222bdadabc2d610ad6.prototype.vbc0da87f01ac7921c3a64ee91483aeae = function (a) {
this.v1a5d737866b9cc94ff4bf787cf85c5d4 = null, this.state.vdee38eb7b5c85b5231449c9938b8a341 = a, this.vc013a30298859b5f26a558640c6294f7(), this.vb1011a6ce8bd2e84c5fe70d1da1cc1a2()
}, v103be72cf6bff4222bdadabc2d610ad6.prototype.vc013a30298859b5f26a558640c6294f7 = function () {
this.v1a5d737866b9cc94ff4bf787cf85c5d4 = null, this.v6a2a3c35cc570688e335f07a60c280a2 != null && this.v6a2a3c35cc570688e335f07a60c280a2.remove(), this.v6a2a3c35cc570688e335f07a60c280a2 = null;
var a = this.state.vdee38eb7b5c85b5231449c9938b8a341;
if (a != null) {
$('#brandHeader .lessonDisplayName').html(this.v69f691c44261b809936a2fce22619cb5('lessonName', ''));
var b = this.v69f691c44261b809936a2fce22619cb5('licensedToSchool', !1);
if (b) {
$('.brandLicensee').text(b);
var c = $('.brandLicensee').clone().appendTo('body'), d = c.outerWidth(!0);
c.remove();
var e = $(window).width(), f = $('#brandHeader .lessonDisplayName').width(), g = e / 2, h = 2 * (g - (f + 20));
d <= h && ($('.brandLicenseText').css('visibility', 'visible'), $('.brandLicensee').css('visibility', 'visible'))
}
this.designerModeEnabled ? A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('useController', 'author').toLowerCase() == 'student' ? this.v1a5d737866b9cc94ff4bf787cf85c5d4 = new v6b12be61a4f26343059f8e642027e113(a) : this.v1a5d737866b9cc94ff4bf787cf85c5d4 = new v3b690a98f72fc19fa9a5b8f2ce457701(a) : this.v1a5d737866b9cc94ff4bf787cf85c5d4 = new v6b12be61a4f26343059f8e642027e113(a), this.v1a5d737866b9cc94ff4bf787cf85c5d4.answersRandomOrder && a.v85425ef12b40f225b64c6b5046fbcf52(), this.v6a2a3c35cc570688e335f07a60c280a2 = new cstmIAPanel(a, this.v1a5d737866b9cc94ff4bf787cf85c5d4), this.v6a2a3c35cc570688e335f07a60c280a2.v818bd2c0a84026911fc3df192c53f801($('#instruction-pane')), this.v6a2a3c35cc570688e335f07a60c280a2.v4b442c0efc7577701c45f2e22007dc8b()
}
}, v103be72cf6bff4222bdadabc2d610ad6.v7b0889bfa6afef19b1e73869162caed5 = 4, v103be72cf6bff4222bdadabc2d610ad6.prototype.v37acc4b43958cefca8879109f176aac4 = function () {
var a = -1;
return this.state.vc99b1d31c0fe2e5a6e773600f35aca39 ? a = v103be72cf6bff4222bdadabc2d610ad6.v7b0889bfa6afef19b1e73869162caed5 : a = this.v1a5d737866b9cc94ff4bf787cf85c5d4.v4f07b5328d48d8b24c16b83bfb3132a1(), a
}, v103be72cf6bff4222bdadabc2d610ad6.prototype.vaa9fa31ede5ce69d61de0ec2651177f5 = function (a) {
}, v103be72cf6bff4222bdadabc2d610ad6.prototype.vb30c64231b700d4a5c3c9943c4746e2a = function () {
var a = vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vb30c64231b700d4a5c3c9943c4746e2a.call(this), d = new v3b690a98f72fc19fa9a5b8f2ce457701(this.state.vdee38eb7b5c85b5231449c9938b8a341), f = d.v245ff79d366bd1fa82081bf2b0fcbabb();
a.partialGoal = this.state.vdee38eb7b5c85b5231449c9938b8a341.partialGoal, a.hasGoal = this.state.vdee38eb7b5c85b5231449c9938b8a341.hasGoal, a.questionGradePoints = this.state.vdee38eb7b5c85b5231449c9938b8a341.questionGradePoints, a.studentStatus = this.v37acc4b43958cefca8879109f176aac4(), a.projectGrade = d.v3304e41fa2addb46040b46b94439b0b6(), a.totalSteps = f, a.studentStepData = [], a.competitionScore = 0, a.competitionScoreName = this.state.vbd62aa7d70f085f325082b57194a7a52(), a.competitionScore = U.round(this.state.v237c3bdfd34f04cac57598f0bc66ea1c(), 2), a.simTicks = A.vb06c3a859d6038b4515bccc5f1f891ef().v439996edc8b8293e5ab20ad2df21dd8b(), a.clientTime = new Date().getTime(), this.state.vabad7a4f144cb842670371c400f17bcc.sessionToken && (a.sessionToken = this.state.vabad7a4f144cb842670371c400f17bcc.sessionToken), this.vaa9fa31ede5ce69d61de0ec2651177f5(a);
for (var g = 0; g < f; ++g) {
var b = d.step;
if (b.v9727e22f8c08329ba6c852650288d2e7() == 1 || g == f - 1) {
var c = {};
a.studentStepData.push(c), c.wrongAnswers = [];
var h = d.vbd2d8912b8d7d303aedcfaf7de58672f();
for (var e = 0; e < h.length; ++e) {
var i = h[e];
i.va28af30d034cc6b113ea5f73ff2015c7() == 1 && i.v57e25a3fd5225bde2ec1fde4bcc44f17() == 0 && c.wrongAnswers.push(e)
}
c.completed = b.v609215aae988710338b3109edbd8ae52(), c.startTime = b.v5a8cbad96fb912d9948eb7d691a615ed() ? b.v50751a194fb118627129a54ac560b2a2.getTime() : null, c.endTime = b.v609215aae988710338b3109edbd8ae52() ? b.v64af07c5bad001b74d3d1e9e4039b94c.getTime() : null
}
d.v294b4c4eeec804be91b80960615e7ecd()
}
return a
}, v103be72cf6bff4222bdadabc2d610ad6.prototype.vbfdd841772b984c2447611c6bac7ce23 = function () {
if (vdc7354c3cd5c7774f4dbfeba28eba934.prototype.vbfdd841772b984c2447611c6bac7ce23.call(this), this.v220f0bb4c57d241f631a885dda9d58d3(), this.v1a5d737866b9cc94ff4bf787cf85c5d4.vbdf0e3059f7cc962465161974cb7034c(!0)) {
this.v6a2a3c35cc570688e335f07a60c280a2.v4b442c0efc7577701c45f2e22007dc8b(), this.v1a5d737866b9cc94ff4bf787cf85c5d4.v30797168e35fae9b40b3abe694c1f574() && this.v6a2a3c35cc570688e335f07a60c280a2.vfcd4a55b9965da9169667b94ceec3a65();
var a = this.v1a5d737866b9cc94ff4bf787cf85c5d4.v4f07b5328d48d8b24c16b83bfb3132a1();
a == v28f4c9f66e294b1221dd8f8a38a73a12.v98e573cab26c8017d967a470c0ef148c && (this.vab3a4c0cd27ac1f3b0d6ad180e6a5f55(), this.v77c616cecb81c724c7a1195169d1620a(_.bind(function () {
this.v8ab5795a3fd1a4f81fc3ba11d435bd06(this.v62a642b9c7b8149faec4098e70818149.stopDateReachedMessage, U.vbacce6a42a9154e1b2ea38c9b107fbb2('Stop Date Reached'))
}, this)))
}
}, v103be72cf6bff4222bdadabc2d610ad6.prototype.vd0ed6e1d135a5f387b206b866e92d3d2 = function (a) {
this.v8ab5795a3fd1a4f81fc3ba11d435bd06(a, U.vbacce6a42a9154e1b2ea38c9b107fbb2('Error Detected'))
}, v103be72cf6bff4222bdadabc2d610ad6.prototype.vbdf0e3059f7cc962465161974cb7034c = function (a) {
if (this.v1a5d737866b9cc94ff4bf787cf85c5d4 != null && this.v1a5d737866b9cc94ff4bf787cf85c5d4.vbdf0e3059f7cc962465161974cb7034c(a.complete, a.reason, a.progress)) {
this.v6a2a3c35cc570688e335f07a60c280a2.v4b442c0efc7577701c45f2e22007dc8b();
var b = this.v1a5d737866b9cc94ff4bf787cf85c5d4.v4f07b5328d48d8b24c16b83bfb3132a1();
b == v28f4c9f66e294b1221dd8f8a38a73a12.v98e573cab26c8017d967a470c0ef148c && (A.vf3351ba56d8b7e42f05b30b819a9db80().vab3a4c0cd27ac1f3b0d6ad180e6a5f55(), A.vf3351ba56d8b7e42f05b30b819a9db80().v77c616cecb81c724c7a1195169d1620a(_.bind(function () {
A.vf3351ba56d8b7e42f05b30b819a9db80().v8ab5795a3fd1a4f81fc3ba11d435bd06(this.v1a5d737866b9cc94ff4bf787cf85c5d4.goalMetMessage, U.vbacce6a42a9154e1b2ea38c9b107fbb2('Goal Complete'))
}, this)))
}
}, v103be72cf6bff4222bdadabc2d610ad6.prototype.evaluateGoal = function (b) {
var a = vdc7354c3cd5c7774f4dbfeba28eba934.prototype.evaluateGoal.call(this, b);
return a.complete = !1, a.progress = 0, _.isUndefined(A.vb06c3a859d6038b4515bccc5f1f891ef().vdee38eb7b5c85b5231449c9938b8a341) || _.isObject(this.v1c1b6adf57e3399adec3b3858b19c44e) && this.v1c1b6adf57e3399adec3b3858b19c44e.evaluateGoal == 'true' && (this.state.vdee38eb7b5c85b5231449c9938b8a341.ve2b65d026cfdf29d6999eab6d33044a7 || (this.state.vdee38eb7b5c85b5231449c9938b8a341.ve2b65d026cfdf29d6999eab6d33044a7 = new Date)), a
}, v103be72cf6bff4222bdadabc2d610ad6.prototype.v248544d18570cabc005083c8418f7f5f = function () {
this.v62a642b9c7b8149faec4098e70818149.autoSaveEnabled = !1, this.v62a642b9c7b8149faec4098e70818149.manualSaveEnabled = !1, this.v62a642b9c7b8149faec4098e70818149.restartLessonEnabled = !1, this.v62a642b9c7b8149faec4098e70818149.restartLessonMessage = 'You are reviewing your completed Sim exercise and cannot restart the lesson.', this.v62a642b9c7b8149faec4098e70818149.goalEvaluationEnabled = !1, this.v62a642b9c7b8149faec4098e70818149.earlySubmissionEnabled = !1, this.v1a5d737866b9cc94ff4bf787cf85c5d4.earlySubmissionEnabled = !1, this.v6a2a3c35cc570688e335f07a60c280a2.v4b442c0efc7577701c45f2e22007dc8b();
try {
simShowReviewWarning()
} catch (a) {
Alert.show('You are now entering review mode. Changes will not be saved.')
}
}, vb3096db423f08ae0cbb30d927ab57506.prototype.v43ee41eb6cf6aa8bd1aa2683ed366926 = function () {
return !0
}, vb3096db423f08ae0cbb30d927ab57506.prototype.vbe68ccb4a0ec9d99d8b40e96581e7f12 = function () {
}, vb3096db423f08ae0cbb30d927ab57506.prototype.newDay = function () {
}, vb3096db423f08ae0cbb30d927ab57506.prototype.v06cd79e011b5f53155208356a8036ae0 = function () {
}, vb3096db423f08ae0cbb30d927ab57506.prototype.v9ad353c8351af1f72f92508f9f4399ca = function () {
}, Array.prototype.v657e3b6ac90f6a38de6cb0a741ad936e = function (a) {
this.push(a)
}, Array.prototype.v65232cbf984e4899d32f63ff906d72ec = function (b) {
for (var a = 0; a < b.length; ++a)
this.push(b[a])
}, Array.prototype.getItemIndex = function (a) {
return this.indexOf(a)
}, Array.prototype.size = function () {
var a = 0, b;
for (b in this)
this.hasOwnProperty(b) && a++;
return a
}, Array.prototype.v286b6775db42a6c32fd4458068965906 = function (a) {
return this.splice(a, 1)[0]
}, Array.prototype.clone = function () {
return this.concat()
}, Array.prototype.contains = function (a) {
return this.indexOf(a) != -1
}, Array.prototype.v65d27a203f3c18a3364ff73d1c486f86 = function (a, b) {
this.splice(b, 0, a)
}, Array.prototype.v6658d41901465458c34d0790e8086649 = function (b) {
var a = this.indexOf(b);
return a > -1 ? this.splice(a, 1)[0] : null
}, Array.prototype.vb6197b85339d8d08458ca1d8b757f7b5 = function () {
this.length = 0
}, Array.prototype.v9534a27a7c3f30d943cd9b8e80a5c1ee = function () {
return this.pop()
}, Array.prototype.vbae0aff4945c6e25e916c194597c5783 = function () {
return this.shift()
}, Array.prototype.va6e3d68be884be4b7fab6cbfcad57dee = function () {
this.push()
}, Array.prototype.v2482b825454f621ad2d431c3f11ff309 = function (a) {
this.unshift(a)
}, Array.prototype.shuffle = function (b) {
var a = new vcfe882df616f899ab32c02dee5b814a6(b);
this.sort(function (b, c) {
return a.v4b5d032286d7ea0a308827fdb5b94573() < .5 ? -1 : 1
})
}, String.prototype.startsWith = function (a) {
return this.indexOf(a) == 0
}, String.prototype.endsWith = function (a) {
return this.indexOf(a, this.length - a.length) !== -1
}, String.prototype.trim = function () {
return this.replace(/^\s+|\s+$/g, '')
}, String.prototype.v233c2a3eec271fa2f2f39a6a0180b52a = function () {
return this.replace(/^\s+/, '')
}, String.prototype.rtrim = function () {
return this.replace(/\s+$/, '')
}, KMDate.prototype.clone = function () {
return new KMDate(this.getFullYear(), this.getMonth(), this.getDate(), this.getHours(), this.getMinutes(), this.getSeconds(), this.getMilliseconds())
}, KMDate.prototype.v1d01268127bf3fbaeb8b900307b176fd = function (b) {
b = Math.floor(b);
var a = this.clone();
if (b == 0)
return a;
var d = U.sign(b), e = Math.abs(b), c = 0;
while (c < e) {
var f = a.getMonth();
a.setTime(a.getTime() + d * 60 * 60 * 24 * 1e3), f != a.getMonth() && c++
}
return a
}, KMDate.prototype.getTime = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getTime()
}, KMDate.prototype.setTime = function (a) {
return this.vb9036c412347964ba36f8ef205d9b528.setTime(a)
}, KMDate.prototype.getTimezoneOffset = function () {
return 0
}, KMDate.prototype.getDate = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCDate()
}, KMDate.prototype.getDay = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCDay()
}, KMDate.prototype.getFullYear = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCFullYear()
}, KMDate.prototype.getHours = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCHours()
}, KMDate.prototype.getMilliseconds = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCMilliseconds()
}, KMDate.prototype.getMinutes = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCMinutes()
}, KMDate.prototype.getMonth = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCMonth()
}, KMDate.prototype.getSeconds = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCSeconds()
}, KMDate.prototype.getUTCDate = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCDate()
}, KMDate.prototype.getUTCDay = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCDay()
}, KMDate.prototype.getUTCFullYear = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCFullYear()
}, KMDate.prototype.getUTCHours = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCHours()
}, KMDate.prototype.getUTCMilliseconds = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCMilliseconds()
}, KMDate.prototype.getUTCMinutes = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCMinutes()
}, KMDate.prototype.getUTCMonth = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCMonth()
}, KMDate.prototype.getUTCSeconds = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getUTCSeconds()
}, KMDate.prototype.parse = function (a) {
return this.vb9036c412347964ba36f8ef205d9b528.parse(a)
}, KMDate.prototype.setDate = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCDate(a)
}, KMDate.prototype.v10fc70198c1c683bd502eda060817e86 = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.v6136a3592cbf86e6f728ee787eb11115(a)
}, KMDate.prototype.setFullYear = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCFullYear(a)
}, KMDate.prototype.setHours = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCHours(a)
}, KMDate.prototype.setMilliseconds = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCMilliseconds(a)
}, KMDate.prototype.setMinutes = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCMinutes(a)
}, KMDate.prototype.setMonth = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCMonth(a)
}, KMDate.prototype.setSeconds = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCSeconds(a)
}, KMDate.prototype.setUTCDate = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCDate(a)
}, KMDate.prototype.v6136a3592cbf86e6f728ee787eb11115 = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.v6136a3592cbf86e6f728ee787eb11115(a)
}, KMDate.prototype.setUTCFullYear = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCFullYear(a)
}, KMDate.prototype.setUTCHours = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCHours(a)
}, KMDate.prototype.setUTCMilliseconds = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCMilliseconds(a)
}, KMDate.prototype.setUTCMinutes = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCMinutes(a)
}, KMDate.prototype.setUTCMonth = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCMonth(a)
}, KMDate.prototype.setUTCSeconds = function (a) {
this.vb9036c412347964ba36f8ef205d9b528.setUTCSeconds(a)
}, KMDate.prototype.toString = function () {
return this.vb9036c412347964ba36f8ef205d9b528.toUTCString()
}, KMDate.prototype.toDateString = function () {
return this.format('ddd MMM dd yyyy')
}, KMDate.prototype.toTimeString = function () {
return this.format('hh:mm:ss')
}, KMDate.prototype.toUTCString = function () {
return this.vb9036c412347964ba36f8ef205d9b528.toUTCString()
}, KMDate.prototype.valueOf = function () {
return this.vb9036c412347964ba36f8ef205d9b528.getTime()
}, KMDate.v1d700e3585b29ad258b383abd78b7971 = new KMDate(1970, 0, 1, 0, 0, 0, 0), KMDate.v7de0e242fb310ded4c773006026bd708 = new KMDate(2100, 0, 1, 0, 0, 0, 0), KMDate.prototype.vd8810c102f5ca3b70dab367cd15c955a = function () {
return this.getDay()
}, KMDate.prototype.v3bac7859f9dc8ce276e010791c306840 = function (b) {
var a = this.clone();
return a.setTime(a.getTime() + b), a
}, KMDate.prototype.v62c9c5955cb81bad0331c64bb64f68e4 = function (b) {
var a = this.clone();
return a.setTime(a.getTime() + b * 1e3), a
}, KMDate.prototype.v90523d15d402d84e602b27315d8a05aa = function (b) {
var a = this.clone();
return a.setTime(a.getTime() + b * 60 * 1e3), a
}, KMDate.prototype.v5ba67dfff20d3075a9c4c0715030c581 = function (b) {
var a = this.clone();
return a.setTime(a.getTime() + b * 60 * 60 * 1e3), a
}, KMDate.prototype.v38de1ba283163e851bc4e2af0ac6993c = function (b) {
var a = this.clone();
return a.setTime(a.getTime() + b * 60 * 60 * 24 * 1e3), a
}, KMDate.prototype.v2bdd3cf6f0c76247ea8f4fd7a4d766e6 = function () {
return this.format('MMM d yyyy')
}, KMDate.prototype.vfb9030c09aa3168e145c744dda468094 = function () {
return this.format('M/d/yyyy')
}, KMDate.prototype.va53098ec7ac17cd0c893085b013bf748 = function () {
return this.format('hh:mm tt')
}, KMDate.prototype.format = function (a) {
return Globalize.format(this, a)
}, KMDate.prototype.vdb42f535b13f89336a467f94b6e2e55b = function () {
return this.getTime() == KMDate.v1d700e3585b29ad258b383abd78b7971.getTime()
}, KMDate.prototype.v2275e888a3d0270b78101d02488e0610 = function () {
return this.getTime() == KMDate.v7de0e242fb310ded4c773006026bd708.getTime()
}, KMDate.v3a97b01fd5c3fcf807fcc00c576edcc8 = function (a, b) {
return (a.getTime() - b.getTime()) / 864e5
}, KMDate.va02ce71d9177e2e7b34bbebd4a91c9a0 = function (a, b) {
return (a.getTime() - b.getTime()) / 36e5
}, KMDate.v5e0640adf2fd919e703d147b17023b54 = function (a, b) {
return (a.getTime() - b.getTime()) / 6e4
}, KMDate.v024976ba5c4bd0a7f5a0b7fa66caa173 = function (a, b) {
return (a.getTime() - b.getTime()) / 1e3
}, KMDate.prototype.v0c439578a08203ac51a845ac408078c5 = function (a, b) {
return a.getTime() - b.getTime()
}, KMDate.prototype.v5a2e31176f9b2d22ddfc7557df001d2b = function (a) {
return a.getDate() == this.getDate() && a.getMonth() == this.getMonth() && a.getFullYear() == this.getFullYear()
}, KMDate.prototype.v0bdd7c3da3fac8d35ba5ad5f517b5c6e = function (a) {
return a.getMonth() == this.getMonth() && a.getFullYear() == this.getFullYear()
}, KMDate.prototype.v27f9834f43fe18f498977d89ae38893e = function (b, a) {
return Math.floor(KMDate.v3a97b01fd5c3fcf807fcc00c576edcc8(b, a) / 7) == Math.floor(KMDate.v3a97b01fd5c3fcf807fcc00c576edcc8(this, a) / 7)
}, KMDate.prototype.vd283345c395ffc45e26e0c00663d7b65 = function () {
var a = this.getDay();
return a > 0 && a < 6
}, KMDate.prototype.vbc50332f1ba5a80b703925825221770b = function () {
var a = new Date(this.getFullYear(), this.getMonth(), this.getDate(), this.getHours(), this.getMinutes(), this.getSeconds(), this.getMilliseconds());
return a
}, Date.prototype.format = function (a) {
return Globalize.format(this, a)
}, KMDate.prototype.isValid = function () {
return !isNaN(this.getTime())
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.onMouseMove = function (a) {
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.v213b452f35fa2bb266b4c9e8dada5505 = function (a) {
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.v95961a7d37bc005d7bf2ad6832db38b1 = function (a) {
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.v459bd07f26471417484e8e7547eea3a3 = function (a) {
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.vc9867c1b9c302741397ffeec3f975345 = function (a) {
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.onMouseLeave = function (a) {
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.v00dab815311bf28411d614abdf8dcda0 = function (a) {
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.ve734d3949f6f8eb06431a1d6ce35bff5 = function (a) {
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.vb0d035acfd8e9ce66656c288fb25c276 = function (a) {
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.v52a42af26830ec7f8cc2ab4929db04e2 = function (a) {
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.vc0106a6a893e4d313758985b80f88365 = function (a) {
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.v6ead0f133fc5f7e3ff75ccdbb070eca3 = function (a) {
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.v6f56fd84a121ccf8644b1335c888509d = function (a) {
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.draw = function (a) {
this.location.x = Math.floor(this.location.x), this.location.y = Math.floor(this.location.y), this.v492347134bdd86399872b16353ba6e51 && (a.save(), this.v492347134bdd86399872b16353ba6e51(this, a), a.restore());
for (var f = 0; f < this.drawablesBefore.length; ++f) {
var c = this.drawablesBefore[f];
if (c.cache && A.vf3351ba56d8b7e42f05b30b819a9db80().v78c1a7b8f5b26209650374d4f01e103b) {
var d = A.vf3351ba56d8b7e42f05b30b819a9db80().vb69ae9d23229729eebd56c015b8b3e62(c);
if (d) {
var b = new Point(c.location.x - d.vefe5748c0894ac7b4e6854ac733236fc, c.location.y - d.vc4c554a7480465d80e0eb50216534f3b);
a.drawImage(d, Math.floor(b.x), Math.floor(b.y))
}
} else
c.draw(a)
}
if (this.imageName != null) {
var e = vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(this.imageName);
if (e != null) {
var g = e.v6841b8cd2667199b2fbadb0a902a0b66, h = e.vc41e7355b6bb3f94920a6e0a0482b1f1, b = new Point(this.location.x - e.v8d66706edda79de392e4c97b60de9cca, this.location.y - e.veca1a2c3bf5033a5c010243e79cb1e60);
a.save(), this.transform.length > 0 && a.transform(this.transform[0], this.transform[1], this.transform[2], this.transform[3], this.transform[4], this.transform[5]), this.flipX && (a.scale(-1, 1), a.translate(-(b.x + this.location.x + e.v8d66706edda79de392e4c97b60de9cca), 0)), a.globalAlpha = this.alpha;
try {
this.color ? this.v384a1990a6cf295e16eabbfc6a6e56cc != undefined ? vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.v29c44a48b4b1f65497d5af96d5bfb71d(a, e, this.col, this.row, b.x, b.y, this.color, this.v384a1990a6cf295e16eabbfc6a6e56cc) : vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.v29c44a48b4b1f65497d5af96d5bfb71d(a, e, this.col, this.row, b.x, b.y, this.color) : vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.drawImage(a, e, this.col, this.row, b.x, b.y)
} catch (a) {
console.error('Error drawing image: ' + this.imageName + ', exception: ' + a.message)
}
a.restore()
} else
console.log('cannot find image ' + this.imageName)
}
this.text != '' && (a.save(), this.transform.length > 0 && a.transform(this.transform[0], this.transform[1], this.transform[2], this.transform[3], this.transform[4], this.transform[5]), a.textAlign = this.textAlign, a.textBaseline = this.textBaseline, a.font = this.font, a.fillStyle = this.fillStyle, a.fillText(this.text, this.location.x, this.location.y), a.restore());
for (var f = 0; f < this.drawablesAfter.length; ++f) {
var c = this.drawablesAfter[f];
if (c.cache && A.vf3351ba56d8b7e42f05b30b819a9db80().v78c1a7b8f5b26209650374d4f01e103b) {
var d = A.vf3351ba56d8b7e42f05b30b819a9db80().vb69ae9d23229729eebd56c015b8b3e62(c);
if (d) {
var b = new Point(c.location.x - d.vefe5748c0894ac7b4e6854ac733236fc, c.location.y - d.vc4c554a7480465d80e0eb50216534f3b);
a.drawImage(d, Math.floor(b.x), Math.floor(b.y))
}
} else
c.draw(a)
}
this.vbd5fe1eb0166be3d3c5abf3a4c60cc14 && (a.save(), this.vbd5fe1eb0166be3d3c5abf3a4c60cc14(this, a), a.restore())
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.v3960e6ea365c49b8b152e7a38009c06b = function (b) {
for (var c = this.drawablesAfter.length - 1; c >= 0; --c) {
var e = this.drawablesAfter[c].v3960e6ea365c49b8b152e7a38009c06b(b);
if (e)
return e
}
if (this.clickable && this.imageName != null) {
var a = vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(this.imageName);
if (a != null) {
var g = this.transform.length > 0 ? this.transform[0] : 1, f = this.transform.length > 0 ? this.transform[3] : 1, j = g * (this.flipX ? a.v6841b8cd2667199b2fbadb0a902a0b66 - a.v8d66706edda79de392e4c97b60de9cca - (a.v6841b8cd2667199b2fbadb0a902a0b66 - (a.f[0][3] + a.f[0][5])) : a.v8d66706edda79de392e4c97b60de9cca - a.f[0][3]), d = new Point(Math.floor(this.location.x - j), Math.floor(this.location.y - (a.veca1a2c3bf5033a5c010243e79cb1e60 - a.f[0][4]) * f));
if (b.localX >= d.x && b.localY >= d.y && b.localX < d.x + a.f[0][5] * g && b.localY < d.y + a.f[0][6] * f)
if (this.flipX) {
var i = (b.localX - d.x) / g;
if (i >= 0) {
var h = vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.v270cd37ce7aa4778538ab6bdcfd79989(a, this.col, this.row, a.f[0][5] - Math.floor(i), Math.floor((b.localY - d.y) / f));
if (h > 0)
return this
}
} else {
var l = (b.localX - d.x) / g, k = (b.localY - d.y) / f, h = vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.v270cd37ce7aa4778538ab6bdcfd79989(a, this.col, this.row, Math.floor(l), Math.floor(k));
if (h > 0)
return this
}
}
}
for (var c = this.drawablesBefore.length - 1; c >= 0; --c) {
var e = this.drawablesBefore[c].v3960e6ea365c49b8b152e7a38009c06b(b);
if (e)
return e
}
return null
}, vbe6dfab6e47ff3d003a423092f4c35ef.v3647f4d98b63ac6bd7af663f228c044d = function (a, b) {
return a.plane == b.plane ? b.location.y > a.location.y ? -1 : b.location.y == a.location.y ? b.location.x < a.location.x ? -1 : 1 : 1 : b.plane > a.plane ? -1 : 1
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.v61e1c7be274590e1c927aba3b8fc63b3 = function (a) {
var b = vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(this.imageName);
if (!b && this.drawablesBefore.length == 0 && this.drawablesAfter.length == 0)
return a || (a = {
left: 0,
right: 0,
top: 0,
bottom: 0
}), a;
if (b)
var c = this.location.x - (b.v8d66706edda79de392e4c97b60de9cca - b.f[0][3]), d = this.location.x + (b.f[0][3] + b.f[0][5]) - b.v8d66706edda79de392e4c97b60de9cca, e = this.location.y - (b.veca1a2c3bf5033a5c010243e79cb1e60 - b.f[0][4]), f = this.location.y + (b.f[0][4] + b.f[0][6]) - b.veca1a2c3bf5033a5c010243e79cb1e60;
return a ? (a.left = _.isUndefined(a.left) ? c : _.isUndefined(c) ? a.left : Math.min(a.left, c), a.right = _.isUndefined(a.right) ? d : _.isUndefined(d) ? a.right : Math.max(a.right, d), a.top = _.isUndefined(a.top) ? e : _.isUndefined(e) ? a.top : Math.min(a.top, e), a.bottom = _.isUndefined(a.bottom) ? f : _.isUndefined(f) ? a.bottom : Math.max(a.bottom, f)) : a = {
left: c,
right: d,
top: e,
bottom: f
}, _.each(_.union(this.drawablesBefore, this.drawablesAfter), function (b) {
a = b.v61e1c7be274590e1c927aba3b8fc63b3(a)
}, this), a
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.v619b603066d5f27748e4a3124b1e6820 = function (a) {
if (this.imageName != null) {
var b = vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(this.imageName);
if (b != null) {
var d = b.v6841b8cd2667199b2fbadb0a902a0b66, e = b.vc41e7355b6bb3f94920a6e0a0482b1f1, c = new Point(this.location.x - b.v8d66706edda79de392e4c97b60de9cca, this.location.y - b.veca1a2c3bf5033a5c010243e79cb1e60);
a.save(), this.transform.length > 0 && a.transform(this.transform[0], this.transform[1], this.transform[2], this.transform[3], this.transform[4], this.transform[5]), this.flipX && (a.scale(-1, 1), a.translate(-(c.x + this.location.x + b.v8d66706edda79de392e4c97b60de9cca), 0)), vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.drawImage(a, b, this.col, this.row, c.x, c.y, d, e), a.strokeRect(c.x, c.y, d, e), a.fillStyle = '#FF0000', a.fillRect(this.location.x - 3, this.location.y - 3, 6, 6), a.restore()
}
}
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.v8d9138c6347332284f5cd8928d85efe6 = function (a, b, c) {
this.location.x += a, this.location.y += b, this.draw(c)
}, vbe6dfab6e47ff3d003a423092f4c35ef.prototype.v3879fde37f80e1096c8c2bfe51a32135 = function () {
this.vd47ed85cab7ce2b6d437e7b570eea18a || (this.vd47ed85cab7ce2b6d437e7b570eea18a = this.imageName), this.onMouseMove = function (a) {
A.vf3351ba56d8b7e42f05b30b819a9db80().canvas.css('cursor', 'pointer')
}, this.onMouseLeave = function (a) {
A.vf3351ba56d8b7e42f05b30b819a9db80().canvas.css('cursor', 'default')
}
}, v11fc3497bbbb857ae5e2dfcdf511c7ff.prototype.load = function (b) {
var a = this;
this.image = new Image, this.image.onload = function () {
a.v6841b8cd2667199b2fbadb0a902a0b66 == undefined && (a.v6841b8cd2667199b2fbadb0a902a0b66 = a.image.width / a.cols), a.vc41e7355b6bb3f94920a6e0a0482b1f1 == undefined && (a.vc41e7355b6bb3f94920a6e0a0482b1f1 = a.image.height / a.rows), b(a)
}, this.image.crossOrigin = 'anonymous', this.image.src = vdc7354c3cd5c7774f4dbfeba28eba934.instance.v175392c162fa2628657d1a3f9175b95a() + this.url
}, v3323682bbfa243fab7fa51a2901615ac.prototype.load = function (b) {
var a = this;
$.get(vdc7354c3cd5c7774f4dbfeba28eba934.instance.v175392c162fa2628657d1a3f9175b95a() + this.url, function (c) {
a.rows = v3323682bbfa243fab7fa51a2901615ac.parse(c, a.type), b(a)
})
}, v3323682bbfa243fab7fa51a2901615ac.parse = function (k, l) {
var b = k.toString();
b = b.replace(/\r\n/g, '\n');
var c = b.split('\n');
if (c.length <= 0)
throw new Error('Splitting record data by \\n yielded no records!');
var f = [], h, j, g = !0, e = !1;
for (var d = 0; d < c.length; ++d) {
var a = c[d];
if (a.length > 0)
if (g)
h = a.split(' '), g = !1, e = !0;
else if (e)
j = a.split(' '), e = !1;
else {
var i = v3323682bbfa243fab7fa51a2901615ac.va365468918297aeb77bd3940a58e0b63(l, a, h, j);
f.push(i)
}
}
return f
}, v3323682bbfa243fab7fa51a2901615ac.va365468918297aeb77bd3940a58e0b63 = function (type, dat, propertyData, typeData) {
var values = dat.split(' ');
values.length != propertyData.length && console.log('Data consistency check failed while reading table for type \'' + type + '\' please check the table file for consistent tabs.'), eval('var newObject = new ' + type + '();');
for (var i = 0; i < propertyData.length; ++i) {
var prop = propertyData[i];
v3323682bbfa243fab7fa51a2901615ac.v03aea703511bbabde9518e75dbaa4f03(newObject, prop, values[i], typeData[i])
}
return newObject
}, v3323682bbfa243fab7fa51a2901615ac.v03aea703511bbabde9518e75dbaa4f03 = function (b, a, c, d) {
if (d == 'int')
b[a] = parseInt(c);
else if (d == 'number')
b[a] = parseFloat(c);
else if (d == 'boolean') {
var e = c.toLowerCase();
e == 'false' ? b[a] = !1 : b[a] = !0
} else if (d == 'string')
b[a] = c;
else
throw new Error('The value ' + c + ' for the property ' + a + ' could not be converted to this.type ' + d + '.')
}, vc24092b4f1303a6cc298b72b80a11273.prototype.load = function (b) {
var a = this;
$.get(vdc7354c3cd5c7774f4dbfeba28eba934.instance.v175392c162fa2628657d1a3f9175b95a() + this.url, function (c) {
a.v850f1bbdd245166b20db7bb6b66e05aa = c, b(a)
})
}, vc24092b4f1303a6cc298b72b80a11273.prototype.v41fb2313bad45cc7103705bb54a9e659 = function () {
return $(_.trim(this.v850f1bbdd245166b20db7bb6b66e05aa))
}, v9a61fda44a6f3004a08f014768f83952.prototype.load = function (c) {
var a = this, b = this.urls.shift().replace(/([^:]\/)\/+/g, '$1');
$.ajax({
url: vdc7354c3cd5c7774f4dbfeba28eba934.instance.v175392c162fa2628657d1a3f9175b95a() + b,
dataType: 'json',
success: function (b) {
_.merge(a.data, b), a.urls.length > 0 ? a.load(c) : c(a)
},
error: function (a, c, d) {
console.error('error loading \'' + b + '\' potentially a JSON syntax error?')
}
})
}, v4425207957fa0999aed9c48ef94f50b8.v3b86fe9960562200e2641e6003aab29f = {
vb57fd7ab5c4c381f7bebceb9b49f8bf2: 0,
v93dfd885eee550d3b1c438b57813fc2f: 1
}, v4425207957fa0999aed9c48ef94f50b8.prototype.v6b16907196f9c1c0f21d3b872545f80e = function (a) {
return this.data[a]
}, v4425207957fa0999aed9c48ef94f50b8.prototype.vc6d84ea5b6df6cca18bcc7097994e243 = function (c, d, e) {
var a = this.v6b16907196f9c1c0f21d3b872545f80e(c), b = a.f[e * a.cols + d];
return {
width: b[5],
height: b[6]
}
}, v4425207957fa0999aed9c48ef94f50b8.v94014509e139ecb8f95c0912212fc2b4 = 500, v4425207957fa0999aed9c48ef94f50b8.prototype.vf944b502e739f75dbcb1d14208723754 = function () {
return 1 + this.vd78409cd6ab5bfe1cfda6f54ab64d4a6 * v4425207957fa0999aed9c48ef94f50b8.v94014509e139ecb8f95c0912212fc2b4
}, v4425207957fa0999aed9c48ef94f50b8.prototype.load = function (e, b) {
var a = this, c = function () {
if (a.data.pages && (a.vd78409cd6ab5bfe1cfda6f54ab64d4a6 = a.data.pages, a.data = a.data.vaceb54be3fe7097615b7f7eb9dd6caf3), a.pages.length < a.vd78409cd6ab5bfe1cfda6f54ab64d4a6) {
var d = new Image;
d.onload = function () {
d.v7571d898dbc08db4bfffce389a929f60 = !0, window.URL.revokeObjectURL(d.src);
var b = _.filter(a.pages, function (a) {
return a.v7571d898dbc08db4bfffce389a929f60
});
b.length == a.vd78409cd6ab5bfe1cfda6f54ab64d4a6 && e(a)
}, d.crossOrigin = 'anonymous';
var i = a.pages.length;
a.pages.push(d);
var j = vdc7354c3cd5c7774f4dbfeba28eba934.instance.v175392c162fa2628657d1a3f9175b95a() + a.v7260c89dc23163e2694ecb089b413d47 + 'page' + i + '.png', f = new XMLHttpRequest, g = 0, h = !1;
f.addEventListener('progress', function (c) {
if (!c.lengthComputable) {
h = !0;
return
}
var d = (c.loaded - g) / c.total;
g = c.loaded, b(d * v4425207957fa0999aed9c48ef94f50b8.v94014509e139ecb8f95c0912212fc2b4), a.loadSize -= d * v4425207957fa0999aed9c48ef94f50b8.v94014509e139ecb8f95c0912212fc2b4
}), f.addEventListener('load', function (e) {
if (this.status == 200)
var a = new Blob([this.response], { type: 'image/png' });
d.src = window.URL.createObjectURL(a), h && b(v4425207957fa0999aed9c48ef94f50b8.v94014509e139ecb8f95c0912212fc2b4), c()
}), f.open('GET', j, !0), f.responseType = 'blob', f.send(null)
}
};
$.ajax({
url: vdc7354c3cd5c7774f4dbfeba28eba934.instance.v175392c162fa2628657d1a3f9175b95a() + this.url + '?r=1',
dataType: 'json',
success: function (d) {
a.data = d, b(1), a.loadSize--, c()
},
error: function (b, c, d) {
console.error('error loading \'' + a.url + '\' potentially a JSON syntax error?')
}
});
var d = U.v2c2c982aceca75c58c347a6b086a4f02(this.v3439bb7244d42db06ba848b1ffef1f01, this.v3439bb7244d42db06ba848b1ffef1f01);
this.va070a604fdc1d137e5c21449c8b688da = d.canvas, this.vf6b5222bc7d38d7da3fa13904f97dc73 = d.context
}, v4425207957fa0999aed9c48ef94f50b8.prototype.ve8cb17f39f5426fa16dd6502b23c6947 = function (b, f, g) {
_.isString(b) && (b = this.v6b16907196f9c1c0f21d3b872545f80e(b));
var a = b.f[g * b.cols + f], h = this.pages[a[0]], d = $('<canvas width=' + b.v6841b8cd2667199b2fbadb0a902a0b66 + 'px height=' + b.vc41e7355b6bb3f94920a6e0a0482b1f1 + 'px>'), c = d[0], e = c.getContext('2d');
return e.drawImage(this.pages[a[0]], a[1], a[2], a[5], a[6], a[3], a[4], a[5], a[6]), c.toDataURL()
}, v4425207957fa0999aed9c48ef94f50b8.prototype.v4da6408bd7c7694f97449d86c406ca72 = function (b, f, g) {
_.isString(b) && (b = this.v6b16907196f9c1c0f21d3b872545f80e(b));
var a = b.f[g * b.cols + f], h = this.pages[a[0]], d = $('<canvas width=' + a[5] + 'px height=' + a[6] + 'px>'), c = d[0], e = c.getContext('2d');
return e.drawImage(this.pages[a[0]], a[1], a[2], a[5], a[6], 0, 0, a[5], a[6]), c.toDataURL()
}, v4425207957fa0999aed9c48ef94f50b8.prototype.v843222f2036e71040cc93ca9a6d0f806 = function (a, b, c, d) {
a.attr('src', this.ve8cb17f39f5426fa16dd6502b23c6947(b, c, d))
}, v4425207957fa0999aed9c48ef94f50b8.prototype.v29c44a48b4b1f65497d5af96d5bfb71d = function (n, l, p, q, m, o, e, g) {
var a = l.f[q * l.cols + p];
if (a[5] <= 0 || a[6] <= 0)
return;
if (e == 16777215)
n.drawImage(this.pages[a[0]], a[1], a[2], a[5], a[6], a[3] + m, a[4] + o, a[5], a[6]);
else {
g == undefined && (g = v4425207957fa0999aed9c48ef94f50b8.v3b86fe9960562200e2641e6003aab29f.vb57fd7ab5c4c381f7bebceb9b49f8bf2);
var f = a[0] + '_' + a[1] + '_' + a[2] + '_' + a[5] + '_' + a[6] + '_' + e, d = this.ve314bbb3ad84d23e32629b334d7375ea[f];
if (d == undefined) {
this.vb5803fac070dd26d5b4a19ea2a03a82e + a[5] >= this.v3439bb7244d42db06ba848b1ffef1f01 && (this.vb5803fac070dd26d5b4a19ea2a03a82e = 0, this.v4d8104dcd97c70ec92795f059e5aec1d += this.v717677dbb146c023ad9e1f3cd2117481), this.v4d8104dcd97c70ec92795f059e5aec1d + a[6] >= this.v3439bb7244d42db06ba848b1ffef1f01 && (this.vb5803fac070dd26d5b4a19ea2a03a82e = 0, this.v4d8104dcd97c70ec92795f059e5aec1d = 0, this.v717677dbb146c023ad9e1f3cd2117481 = 0, this.ve314bbb3ad84d23e32629b334d7375ea = {}, this.vf6b5222bc7d38d7da3fa13904f97dc73.clearRect(0, 0, this.v3439bb7244d42db06ba848b1ffef1f01, this.v3439bb7244d42db06ba848b1ffef1f01)), d = [
this.vb5803fac070dd26d5b4a19ea2a03a82e,
this.v4d8104dcd97c70ec92795f059e5aec1d
], this.v717677dbb146c023ad9e1f3cd2117481 = Math.max(this.v717677dbb146c023ad9e1f3cd2117481, a[6]), this.ve314bbb3ad84d23e32629b334d7375ea[f] = d;
var i = e & 255, j = e >> 8 & 255, k = e >> 16 & 255;
this.vf6b5222bc7d38d7da3fa13904f97dc73.drawImage(this.pages[a[0]], a[1], a[2], a[5], a[6], this.vb5803fac070dd26d5b4a19ea2a03a82e, this.v4d8104dcd97c70ec92795f059e5aec1d, a[5], a[6]);
var h = this.vf6b5222bc7d38d7da3fa13904f97dc73.getImageData(this.vb5803fac070dd26d5b4a19ea2a03a82e, this.v4d8104dcd97c70ec92795f059e5aec1d, a[5], a[6]), c = h.data;
switch (g) {
case v4425207957fa0999aed9c48ef94f50b8.v3b86fe9960562200e2641e6003aab29f.vb57fd7ab5c4c381f7bebceb9b49f8bf2:
for (var b = 0; b < c.length; b += 4)
c[b] = c[b] * k / 255, c[b + 1] = c[b + 1] * j / 255, c[b + 2] = c[b + 2] * i / 255;
break;
case v4425207957fa0999aed9c48ef94f50b8.v3b86fe9960562200e2641e6003aab29f.v93dfd885eee550d3b1c438b57813fc2f:
for (var b = 0; b < c.length; b += 4)
c[b] = U.clamp(1 - (1 - c[b] / 255) / (k / 255)) * 255, c[b + 1] = U.clamp(1 - (1 - c[b + 1] / 255) / (j / 255)) * 255, c[b + 2] = U.clamp(1 - (1 - c[b + 2] / 255) / (i / 255)) * 255;
break
}
this.vf6b5222bc7d38d7da3fa13904f97dc73.putImageData(h, this.vb5803fac070dd26d5b4a19ea2a03a82e, this.v4d8104dcd97c70ec92795f059e5aec1d), this.vb5803fac070dd26d5b4a19ea2a03a82e += a[5]
}
n.drawImage(this.va070a604fdc1d137e5c21449c8b688da, d[0], d[1], a[5], a[6], a[3] + m, a[4] + o, a[5], a[6])
}
}, v4425207957fa0999aed9c48ef94f50b8.prototype.drawImage = function (c, b, d, e, f, g) {
var a = b.f[e * b.cols + d];
if (a[5] <= 0 || a[6] <= 0)
return;
c.drawImage(this.pages[a[0]], a[1], a[2], a[5], a[6], a[3] + f, a[4] + g, a[5], a[6])
}, v4425207957fa0999aed9c48ef94f50b8.prototype.v270cd37ce7aa4778538ab6bdcfd79989 = function (f, j, i, e, c) {
var a = f.f[i * f.cols + j], h = $('<canvas>'), b = h[0], d = b.getContext('2d');
b.width = a[5], b.height = a[6], a[5] > 0 && a[6] > 0 && d.drawImage(this.pages[a[0]], a[1], a[2], a[5], a[6], 0, 0, a[5], a[6]), e = Math.max(0, Math.min(b.width - 1, e)), c = Math.max(0, Math.min(b.height - 1, c));
var g = d.getImageData(e, c, 1, 1);
return g.data[3]
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype = Object.create(vb3096db423f08ae0cbb30d927ab57506.prototype), vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.constructor = vd9fe375ebc5a23cd63cd5eeb26ccb805, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.va104dfefa6670b37275d51b041f7e0bd = function () {
return this.v99852e2df25602e53d8983589cf14117.clone()
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v00602c11b99a49d289192ceabbdd2f22 = function (a) {
this.v99852e2df25602e53d8983589cf14117 = a.clone(), this.va7aed90146af0d511122fa4202ea73cd()
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v02dac0d354b20606b64e9803ba767d64 = function () {
return this.v947a87e590536d6ee0b93ef169264d31.clone()
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v36fc7e09c47f794689e298f78f3943b9 = function (a) {
this.v947a87e590536d6ee0b93ef169264d31 = a.clone(), this.va7aed90146af0d511122fa4202ea73cd()
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.ve2a6088b32145ebd8e567a5b5ea2b081 = function () {
return this.vd79c381731f0a87cc117cb01fc9d3f99
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v69fead28026a5e82d9cd72e749372012 = function (a) {
this.vd79c381731f0a87cc117cb01fc9d3f99 = a.clone(), this.vd79c381731f0a87cc117cb01fc9d3f99 != null && this.vd79c381731f0a87cc117cb01fc9d3f99.length > 0 ? (this.v36fc7e09c47f794689e298f78f3943b9(this.vd79c381731f0a87cc117cb01fc9d3f99[0]), this.vd79c381731f0a87cc117cb01fc9d3f99.v286b6775db42a6c32fd4458068965906(0)) : this.v36fc7e09c47f794689e298f78f3943b9(this.va104dfefa6670b37275d51b041f7e0bd())
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v03cdd5d3304ce6b6fdf99e55bf94233a = function () {
return this.v47d286011cf69116bc768d74cae8f20d
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v4221d96d7896ce39db2f1c1ff3502bd4 = function (a) {
this.v47d286011cf69116bc768d74cae8f20d = a, this.va7aed90146af0d511122fa4202ea73cd()
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.vac47168a5bd29f7338172f3a4ca73ab9 = function (a) {
return this.v03cdd5d3304ce6b6fdf99e55bf94233a() / a
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v98d77292feb0fb85107a03f527cf885f = function (a, b) {
this.v4221d96d7896ce39db2f1c1ff3502bd4(a * b)
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.va7aed90146af0d511122fa4202ea73cd = function () {
this.v86164064ae72a6e88d57369bbec634d6 || (this.v86164064ae72a6e88d57369bbec634d6 = { dt: vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.settings.SimulatedSecondsPerStep }), this.ve2a6c0b7e190a28b653f20767a99b4bd = this.v86164064ae72a6e88d57369bbec634d6.dt;
var b = U.v84eedb61e1366b8609056884e40b965e(this.v947a87e590536d6ee0b93ef169264d31, this.v99852e2df25602e53d8983589cf14117);
if (b == 0) {
this.v51689f5af7ad2aef1c8c14b914973f63 = 0, this.v292f13bdb684f9d3ffd76c4d798037d5 = 0, this.vd77ea6de02d37c1010c2e6c932744285 = 0;
return
}
var a = this.v47d286011cf69116bc768d74cae8f20d / b, c = (this.v947a87e590536d6ee0b93ef169264d31.x - this.v99852e2df25602e53d8983589cf14117.x) * a, d = (this.v947a87e590536d6ee0b93ef169264d31.y - this.v99852e2df25602e53d8983589cf14117.y) * a;
this.v292f13bdb684f9d3ffd76c4d798037d5 = c * this.v86164064ae72a6e88d57369bbec634d6.dt, this.vd77ea6de02d37c1010c2e6c932744285 = d * this.v86164064ae72a6e88d57369bbec634d6.dt, this.v51689f5af7ad2aef1c8c14b914973f63 = 1 / (a * this.v86164064ae72a6e88d57369bbec634d6.dt)
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.move = function () {
if (this.v86164064ae72a6e88d57369bbec634d6 || (this.v86164064ae72a6e88d57369bbec634d6 = { dt: vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.settings.SimulatedSecondsPerStep }), this.v86164064ae72a6e88d57369bbec634d6.dt != this.ve2a6c0b7e190a28b653f20767a99b4bd && this.va7aed90146af0d511122fa4202ea73cd(), this.v51689f5af7ad2aef1c8c14b914973f63 < 0 && (this.va7aed90146af0d511122fa4202ea73cd(), delete this.dx, delete this.dy), this.v99852e2df25602e53d8983589cf14117.x += this.v292f13bdb684f9d3ffd76c4d798037d5, this.v99852e2df25602e53d8983589cf14117.y += this.vd77ea6de02d37c1010c2e6c932744285, this.v51689f5af7ad2aef1c8c14b914973f63 > 1)
return this.v86164064ae72a6e88d57369bbec634d6.dt = 0, this.v51689f5af7ad2aef1c8c14b914973f63--, !1;
this.v86164064ae72a6e88d57369bbec634d6.dt -= this.v51689f5af7ad2aef1c8c14b914973f63-- * vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.settings.SimulatedSecondsPerStep;
var a = !0;
return this.v99852e2df25602e53d8983589cf14117.x = this.v947a87e590536d6ee0b93ef169264d31.x, this.v99852e2df25602e53d8983589cf14117.y = this.v947a87e590536d6ee0b93ef169264d31.y, this.vd79c381731f0a87cc117cb01fc9d3f99 != null && this.vd79c381731f0a87cc117cb01fc9d3f99.length > 0 && (this.v947a87e590536d6ee0b93ef169264d31.x = this.vd79c381731f0a87cc117cb01fc9d3f99[0].x, this.v947a87e590536d6ee0b93ef169264d31.y = this.vd79c381731f0a87cc117cb01fc9d3f99[0].y, this.va7aed90146af0d511122fa4202ea73cd(), this.vd79c381731f0a87cc117cb01fc9d3f99.shift(), this.v4edd02025d460a46fb0347949efd09a2 != null && this.v4edd02025d460a46fb0347949efd09a2.length > 0 && (this.v4221d96d7896ce39db2f1c1ff3502bd4(this.v4edd02025d460a46fb0347949efd09a2[0]), this.v4edd02025d460a46fb0347949efd09a2.shift()), a = !1), a
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.va0a1fdebf11bf05d52d2ad4997a185b5 = function (a) {
return Math.sqrt(Math.pow(this.v99852e2df25602e53d8983589cf14117.x - a.x, 2) + Math.pow(this.v99852e2df25602e53d8983589cf14117.y - a.y, 2))
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.orientation = function () {
var a = '';
return this.vd77ea6de02d37c1010c2e6c932744285 > 0 ? a += 'S' : a += 'N', this.v292f13bdb684f9d3ffd76c4d798037d5 > 0 ? a += 'E' : a += 'W', a
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v51e76dd6de46c423eae0531c439cc8a3 = function () {
var a = {};
return this.v292f13bdb684f9d3ffd76c4d798037d5 <= 0 && this.vd77ea6de02d37c1010c2e6c932744285 < 0 && (a.flipX = !1, a.index = 0), this.v292f13bdb684f9d3ffd76c4d798037d5 >= 0 && this.vd77ea6de02d37c1010c2e6c932744285 < 0 && (a.flipX = !0, a.index = 0), this.v292f13bdb684f9d3ffd76c4d798037d5 <= 0 && this.vd77ea6de02d37c1010c2e6c932744285 >= 0 && (a.flipX = !1, a.index = 1), this.v292f13bdb684f9d3ffd76c4d798037d5 >= 0 && this.vd77ea6de02d37c1010c2e6c932744285 >= 0 && (a.flipX = !0, a.index = 1), this.vd77ea6de02d37c1010c2e6c932744285 == 0 && (a.index = this.__v900c5a017275dafff3097853e11f6363.index), this.v292f13bdb684f9d3ffd76c4d798037d5 == 0 && (a.flipX = this.__v900c5a017275dafff3097853e11f6363.flipX), a
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v7031283169f8c44f21c8377065365f61 = function () {
var a = Math.atan2(-this.vd77ea6de02d37c1010c2e6c932744285, this.v292f13bdb684f9d3ffd76c4d798037d5);
return a *= 180 / Math.PI, a < 0 && (a += 360), a >= 345 && a < 360 || a >= 0 && a < 15 ? 'E' : a >= 15 && a < 67.5 ? 'NE' : a >= 67.5 && a < 112.5 ? 'N' : a >= 112.5 && a < 165 ? 'NW' : a >= 165 && a < 195 ? 'W' : a >= 195 && a < 248.5 ? 'SW' : a >= 248.5 && a < 292.5 ? 'S' : a >= 292.5 && a < 345 ? 'SE' : a.toString() + 'Error'
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v5ee6b2380638ee161b9d678ace13c137 = function () {
var a = Math.atan2(-this.vd77ea6de02d37c1010c2e6c932744285, this.v292f13bdb684f9d3ffd76c4d798037d5);
return a *= 180 / Math.PI, a < 0 && (a += 360), a >= 345 && a < 360 || a >= 0 && a < 15 ? 2 : a >= 15 && a < 67.5 ? 3 : a >= 67.5 && a < 112.5 ? 4 : a >= 112.5 && a < 165 ? 5 : a >= 165 && a < 195 ? 6 : a >= 195 && a < 248.5 ? 7 : a >= 248.5 && a < 292.5 ? 0 : a >= 292.5 && a < 345 ? 1 : -1
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v8daab0fbcc68c97987dcedaa04f35a96 = function () {
return this.v4edd02025d460a46fb0347949efd09a2
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v9f851bac654ade23eafcae607b9bfaff = function (a) {
this.v4edd02025d460a46fb0347949efd09a2 = a.clone(), this.v4edd02025d460a46fb0347949efd09a2 != null && this.v4edd02025d460a46fb0347949efd09a2.length > 0 && (this.v4221d96d7896ce39db2f1c1ff3502bd4(this.v4edd02025d460a46fb0347949efd09a2[0]), this.v4edd02025d460a46fb0347949efd09a2.v286b6775db42a6c32fd4458068965906(0))
}, vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v63cdceda7131ea881cabd0b95325fa9c = function (c, d) {
var e = [], b = vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(c);
b == null && console.error('Could not get resource for MovableActiveObject with imageName: ' + c);
var a = new vbe6dfab6e47ff3d003a423092f4c35ef(this.va104dfefa6670b37275d51b041f7e0bd(), c);
return this.__v900c5a017275dafff3097853e11f6363 = this.v51e76dd6de46c423eae0531c439cc8a3(), d != undefined && (this.__v900c5a017275dafff3097853e11f6363.index = d[0] == 'N' ? 0 : 1, this.__v900c5a017275dafff3097853e11f6363.flipX = d[1] == 'E'), b.rows > 1 && (a.row = this.__v900c5a017275dafff3097853e11f6363.index), a.col = (vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.v2461a1084635d5926dd0a9ad05702d0c + this.v964ae3e6da7cb848a4b0544a641cde5b) % b.cols, a.flipX = this.__v900c5a017275dafff3097853e11f6363.flipX, e.v657e3b6ac90f6a38de6cb0a741ad936e(a), e
}, vcfe882df616f899ab32c02dee5b814a6.prototype = Object.create(Object.prototype), vcfe882df616f899ab32c02dee5b814a6.prototype.constructor = vcfe882df616f899ab32c02dee5b814a6, vcfe882df616f899ab32c02dee5b814a6.prototype.next = function (a) {
return a == undefined && (a = U.vb57864c2b24994a28548be73b11c2d8f), a = Math.floor(a), Math.floor(this.v4b5d032286d7ea0a308827fdb5b94573() * a)
}, vcfe882df616f899ab32c02dee5b814a6.prototype.v4b5d032286d7ea0a308827fdb5b94573 = function () {
var a = this.vc206b9f93382482d3853df7f2fadaf3b * 16807 % 2147483647;
this.vc206b9f93382482d3853df7f2fadaf3b = a;
var b = this.vc206b9f93382482d3853df7f2fadaf3b / 2147483647 + 233e-12;
return b
}, vcfe882df616f899ab32c02dee5b814a6.prototype.v7d5bda468cab46acece43a0e8b4305dc = function (a, b) {
return Math.floor(this.v53905b776166e4dc7f3e1b22dab69e58(a, b))
}, vcfe882df616f899ab32c02dee5b814a6.prototype.v53905b776166e4dc7f3e1b22dab69e58 = function (a, b) {
return this.v4b5d032286d7ea0a308827fdb5b94573() * (b - a) + a
}, v12e52c935a82fae271a892daa6603118.prototype = Object.create(vcfe882df616f899ab32c02dee5b814a6.prototype), v12e52c935a82fae271a892daa6603118.prototype.constructor = v12e52c935a82fae271a892daa6603118, v12e52c935a82fae271a892daa6603118.prototype.v4b5d032286d7ea0a308827fdb5b94573 = function () {
var a = vcfe882df616f899ab32c02dee5b814a6.prototype.v4b5d032286d7ea0a308827fdb5b94573.call(this), b = 'CALL NUM: ' + this.v98e011f76161a14092fd95ec73d80363++ + ' returning: ' + a;
return a
}, v26eec6ff9a97369555cb05732e4e6c77.vcd6a28a29317400de1fe2c45637db8ce = 0, v26eec6ff9a97369555cb05732e4e6c77.vfa16f194192c842be753f148e2d252f8 = 1, v26eec6ff9a97369555cb05732e4e6c77.vbf019e8d28e480d309de25c5ca4e357a = 2, v26eec6ff9a97369555cb05732e4e6c77.va1ce48edc7a3be21fd777b80847d7fee = 3, v26eec6ff9a97369555cb05732e4e6c77.vcb50381ceb01bd1f775b01434a767719 = 4, v26eec6ff9a97369555cb05732e4e6c77.prototype.init = function () {
for (var b = 0; b < 5; b++)
this.v620f50a4dbf9b8007046bf645f717659.push([]), this.vab886132675b32154c90aa8e4ea4cca8.push([]);
var a = this.settings.RandomSeed;
a == -1 ? (a = _.floor(Math.random() * 2147483647), this.settings.RandomSeed = a, this.random = new vcfe882df616f899ab32c02dee5b814a6(a)) : this.random = new vcfe882df616f899ab32c02dee5b814a6(a), this.settings.StartDate != null ? this.now = this.settings.StartDate : this.now = new KMDate(2015, 1, 1), this.vc6dc8a6b6b8b2e93c555f63b719a51f0 = this.now.getTime()
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.vb0a929b82f206c2b81bdf090899bec13 = function (a, b) {
this.v63bb15a1a77f6d3212e30aa278f08169[a] = b
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v43b7626dcc7425689297178e561c0e94 = function () {
_.each(this.v63bb15a1a77f6d3212e30aa278f08169, function (a) {
a.init()
})
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v003808a2358f9691749f115b86cc77e6 = function (a) {
return a.v1434c04adb7ea71feffa8c1edddd1d46(this), SHA256_hash(a.toString())
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.vb11a0cdf395a616b7306177a8141f780 = function () {
return vdc7354c3cd5c7774f4dbfeba28eba934.instance.getView(v9c27736ecd4575037647b832405eeabf)
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.step = function () {
var b = this.now.getHours(), c = this.now.getDay(), d = this.now.vd8810c102f5ca3b70dab367cd15c955a(), e = this.now.getMonth(), f = this.now.getFullYear(), a = this.settings.SimulatedSecondsPerStep;
if (a > 3600)
throw new Error('SimulatedSecondsPerStep must not exceed 3600');
this.now = this.now.v62c9c5955cb81bad0331c64bb64f68e4(a), this.vc6dc8a6b6b8b2e93c555f63b719a51f0 = this.now.getTime(), this.vbe68ccb4a0ec9d99d8b40e96581e7f12 = this.now.getHours() != b, this.newDay = this.now.getDay() != c, this.v06cd79e011b5f53155208356a8036ae0 = this.now.vd8810c102f5ca3b70dab367cd15c955a() == 0 && d != 0, this.v6b811be4812ca38856e2ef6235e6a466 = this.now.getMonth() != e, this.v9ad353c8351af1f72f92508f9f4399ca = this.now.getFullYear() != f, this.v06cd79e011b5f53155208356a8036ae0 && this.vf56cd015c5a33b99cb23af90f132a9cb++, this.v2461a1084635d5926dd0a9ad05702d0c++, this.v077e395fe8290e349b9e728b009dc098(), this.vc84a9c81bba4463acb25f1593992ede5()
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v1f16100919528fbecc5a75dd699fbd57 = function (b) {
var a = this.now, c = this.vf56cd015c5a33b99cb23af90f132a9cb, d = this.now.vd8810c102f5ca3b70dab367cd15c955a();
while (a.getTime() < b.getTime() && !a.v5a2e31176f9b2d22ddfc7557df001d2b(b))
a = a.v38de1ba283163e851bc4e2af0ac6993c(1), a.vd8810c102f5ca3b70dab367cd15c955a() == 0 && c++;
this.now = b, this.vc6dc8a6b6b8b2e93c555f63b719a51f0 = this.now.getTime(), this.vf56cd015c5a33b99cb23af90f132a9cb = c
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v2ae8544953868c75aa48bec2a2bbba62 = function (b) {
var a = 0, c = this.v5883ad82267ac1caf3a9d3be133b159c.length - 1;
b.vc6ab6e11b82f75f98a1ab4d6a2d95b16 || (b.vc6ab6e11b82f75f98a1ab4d6a2d95b16 = KMDate.v1d700e3585b29ad258b383abd78b7971);
var e = b.vc6ab6e11b82f75f98a1ab4d6a2d95b16.getTime();
while (a < c) {
var d = Math.floor((a + c) / 2), f = this.v5883ad82267ac1caf3a9d3be133b159c[d];
e < f.vc6ab6e11b82f75f98a1ab4d6a2d95b16.getTime() ? c = d : a = Math.max(d, a + 1)
}
this.v5883ad82267ac1caf3a9d3be133b159c.length > 0 && e < this.v5883ad82267ac1caf3a9d3be133b159c[a].vc6ab6e11b82f75f98a1ab4d6a2d95b16.getTime() ? this.v5883ad82267ac1caf3a9d3be133b159c.v65d27a203f3c18a3364ff73d1c486f86(b, a) : this.v5883ad82267ac1caf3a9d3be133b159c.v657e3b6ac90f6a38de6cb0a741ad936e(b)
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.vc84a9c81bba4463acb25f1593992ede5 = function () {
this.vb34287dbb727dfac734f7fc06e053cab(v26eec6ff9a97369555cb05732e4e6c77.vcd6a28a29317400de1fe2c45637db8ce), this.vbe68ccb4a0ec9d99d8b40e96581e7f12 && this.vb34287dbb727dfac734f7fc06e053cab(v26eec6ff9a97369555cb05732e4e6c77.vfa16f194192c842be753f148e2d252f8), this.newDay && this.vb34287dbb727dfac734f7fc06e053cab(v26eec6ff9a97369555cb05732e4e6c77.vbf019e8d28e480d309de25c5ca4e357a), this.v06cd79e011b5f53155208356a8036ae0 && this.vb34287dbb727dfac734f7fc06e053cab(v26eec6ff9a97369555cb05732e4e6c77.va1ce48edc7a3be21fd777b80847d7fee), this.v9ad353c8351af1f72f92508f9f4399ca && this.vb34287dbb727dfac734f7fc06e053cab(v26eec6ff9a97369555cb05732e4e6c77.vcb50381ceb01bd1f775b01434a767719), this.vbe68ccb4a0ec9d99d8b40e96581e7f12 && vdc7354c3cd5c7774f4dbfeba28eba934.instance.v995f2514fcd6cc70353680bbcd68e719(v26eec6ff9a97369555cb05732e4e6c77.vfa16f194192c842be753f148e2d252f8), this.newDay && vdc7354c3cd5c7774f4dbfeba28eba934.instance.v995f2514fcd6cc70353680bbcd68e719(v26eec6ff9a97369555cb05732e4e6c77.vbf019e8d28e480d309de25c5ca4e357a), this.v06cd79e011b5f53155208356a8036ae0 && vdc7354c3cd5c7774f4dbfeba28eba934.instance.v995f2514fcd6cc70353680bbcd68e719(v26eec6ff9a97369555cb05732e4e6c77.va1ce48edc7a3be21fd777b80847d7fee), this.v9ad353c8351af1f72f92508f9f4399ca && vdc7354c3cd5c7774f4dbfeba28eba934.instance.v995f2514fcd6cc70353680bbcd68e719(v26eec6ff9a97369555cb05732e4e6c77.vcb50381ceb01bd1f775b01434a767719)
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.vb34287dbb727dfac734f7fc06e053cab = function (b) {
var c = this.v620f50a4dbf9b8007046bf645f717659[b], d = this.vab886132675b32154c90aa8e4ea4cca8[b];
while (c.length > 0) {
var a = c.shift();
d.push(a);
switch (b) {
case v26eec6ff9a97369555cb05732e4e6c77.vcd6a28a29317400de1fe2c45637db8ce:
a.v43ee41eb6cf6aa8bd1aa2683ed366926() && (this.v1f4934ae449e078da2d75c8f7e1f1128(a, v26eec6ff9a97369555cb05732e4e6c77.vcd6a28a29317400de1fe2c45637db8ce), this.v2ae8544953868c75aa48bec2a2bbba62(a));
break;
case v26eec6ff9a97369555cb05732e4e6c77.vfa16f194192c842be753f148e2d252f8:
a.vbe68ccb4a0ec9d99d8b40e96581e7f12();
break;
case v26eec6ff9a97369555cb05732e4e6c77.vbf019e8d28e480d309de25c5ca4e357a:
a.newDay();
break;
case v26eec6ff9a97369555cb05732e4e6c77.va1ce48edc7a3be21fd777b80847d7fee:
a.v06cd79e011b5f53155208356a8036ae0();
break;
case v26eec6ff9a97369555cb05732e4e6c77.vcb50381ceb01bd1f775b01434a767719:
a.v9ad353c8351af1f72f92508f9f4399ca();
break
}
}
this.v620f50a4dbf9b8007046bf645f717659[b] = d, this.vab886132675b32154c90aa8e4ea4cca8[b] = []
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v077e395fe8290e349b9e728b009dc098 = function () {
var c = this.v5883ad82267ac1caf3a9d3be133b159c.length, a = 0, d = this.v620f50a4dbf9b8007046bf645f717659[v26eec6ff9a97369555cb05732e4e6c77.vcd6a28a29317400de1fe2c45637db8ce];
for (a = 0; a < c; a++) {
var b = this.v5883ad82267ac1caf3a9d3be133b159c[0];
if (b.vc6ab6e11b82f75f98a1ab4d6a2d95b16 && b.vc6ab6e11b82f75f98a1ab4d6a2d95b16.getTime() > this.now.getTime())
break;
this.v5883ad82267ac1caf3a9d3be133b159c.v286b6775db42a6c32fd4458068965906(0), d.push(b)
}
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.ve228716930a74707502fc08780fb4fcc = function (a, b) {
this.v620f50a4dbf9b8007046bf645f717659[b].indexOf(a) == -1 && this.vab886132675b32154c90aa8e4ea4cca8[b].indexOf(a) == -1 && this.v620f50a4dbf9b8007046bf645f717659[b].push(a)
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.vcba8e50e0d43cffd55c59bb4c62732e8 = function (b) {
for (var a = 0; a < 5; a++)
this.ve228716930a74707502fc08780fb4fcc(b, a)
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v6aa1be6a506e45438c762ddb5cadda3a = function (a, b) {
a.vc6ab6e11b82f75f98a1ab4d6a2d95b16 = b, this.v5883ad82267ac1caf3a9d3be133b159c.contains(a) && this.v5883ad82267ac1caf3a9d3be133b159c.v6658d41901465458c34d0790e8086649(a), this.v2ae8544953868c75aa48bec2a2bbba62(a)
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v1f4934ae449e078da2d75c8f7e1f1128 = function (b, c) {
var d = this.v620f50a4dbf9b8007046bf645f717659[c], e = this.vab886132675b32154c90aa8e4ea4cca8[c], a = d.indexOf(b);
a > -1 && d.splice(a, 1), a = e.indexOf(b), a > -1 && e.splice(a, 1), c == v26eec6ff9a97369555cb05732e4e6c77.vcd6a28a29317400de1fe2c45637db8ce && (a = this.v5883ad82267ac1caf3a9d3be133b159c.indexOf(b), a > -1 && this.v5883ad82267ac1caf3a9d3be133b159c.v286b6775db42a6c32fd4458068965906(a))
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.vbc0e8b21c84359a7c58d130d2461a1a4 = function (b) {
for (var a = 0; a < 5; a++)
this.v1f4934ae449e078da2d75c8f7e1f1128(b, a)
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v8375c7a83cdb9cee005c5e2b94148980 = function () {
if (A.vf3351ba56d8b7e42f05b30b819a9db80().v06edde2e5be670a6a21e27874239c781()) {
var a = this, b = {};
b.v665ec30b82b3dcc0005eb326f33a23de = this.now.format('MMM d, yyyy HH:mm:ss'), b.v0e6db06a7c947a7a03559e82925ac5f1 = this.v8c79e0c8cb3e7591fd8996e71b7b5e5f, b.v0cff974062c80bc46855e3e546a3b603 = A.vf3351ba56d8b7e42f05b30b819a9db80().v6c00e84ca0a5a7dca4d13fdfad7b3c3d;
var c;
A.vf3351ba56d8b7e42f05b30b819a9db80().v1683cc1500f7eb1818a56e2d82ee886e({ playerData: b }, function (i) {
for (var d = 0; d < i.length; ++d) {
var b = i[d];
b.d = JSON.parse(b.d), b.pn == A.vb06c3a859d6038b4515bccc5f1f891ef().vabad7a4f144cb842670371c400f17bcc.playerName && (c = new KMDate(new Date(b.vd4c8af9973d9666ab03ba6d2dc559cf1)))
}
var o = 0, h = 0, f = -1, e = 0, w = A.vb06c3a859d6038b4515bccc5f1f891ef().now, m = 30;
for (var d = 0; d < i.length; ++d) {
var b = i[d], y = new KMDate(new Date(b.vd4c8af9973d9666ab03ba6d2dc559cf1)), t = new KMDate(new Date(b.v1c4736465f1711e3d798304895ceab97)), x = KMDate.v024976ba5c4bd0a7f5a0b7fa66caa173(t, y);
if (b.active = x <= vbe7993a2ce2422b8674dc4b1008561b0.vf322b0e009cf22647a8c754fc3cec677, !b.active)
continue;
if (b.d && b.d.playerData) {
var j = b.d.playerData, k = new KMDate(new Date(j.v665ec30b82b3dcc0005eb326f33a23de));
if (k > f && (f = k), b.pn != A.vb06c3a859d6038b4515bccc5f1f891ef().vabad7a4f144cb842670371c400f17bcc.playerName) {
var r = new KMDate(new Date(b.vd4c8af9973d9666ab03ba6d2dc559cf1)), s = KMDate.v024976ba5c4bd0a7f5a0b7fa66caa173(r, c), n = A.vf3351ba56d8b7e42f05b30b819a9db80().v39121ee19ea6319acd3db15d0f2e9f51(k, w), u = 12 * s * Math.min(m, A.vf3351ba56d8b7e42f05b30b819a9db80().speeds[a.v9d74abe4b03a0c4b5e9b88ff50f597f1]) * A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().SimulatedSecondsPerStep / 3600;
n += u, e += n
}
j.v0e6db06a7c947a7a03559e82925ac5f1 != undefined && (o += parseInt(j.v0e6db06a7c947a7a03559e82925ac5f1), h++)
}
}
if (h > 0) {
a.v9d74abe4b03a0c4b5e9b88ff50f597f1 = Math.floor(o / h);
var v = 5 + a.v9d74abe4b03a0c4b5e9b88ff50f597f1 * (112 / A.vf3351ba56d8b7e42f05b30b819a9db80().speeds.length);
A.vf3351ba56d8b7e42f05b30b819a9db80().vfcfdefa4578944e6ba625d388463f9e5.animate({ left: v + '%' }), $('#consensus-speed-text').show(), $('#consensus-speed-vote-cast-text').hide()
}
var l = A.vf3351ba56d8b7e42f05b30b819a9db80().speeds[a.v9d74abe4b03a0c4b5e9b88ff50f597f1];
l = Math.min(l, m), maxGap = l / 4 * A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().SimulatedSecondsPerStep;
var g = 1;
e < 0 ? g = 1 + e / maxGap : g = 1 / (1 - Math.min(.9, e / maxGap));
var q = .2;
a.v4e2e944c1ec8f883837fce63027fae20 = a.v4e2e944c1ec8f883837fce63027fae20 * q + (1 - q) * Math.min(10, Math.max(.1, g)), A.vf3351ba56d8b7e42f05b30b819a9db80().startTime();
var p = f - a.now.getTime();
p >= 6048e5 && a.v1f16100919528fbecc5a75dd699fbd57(a.now.v3bac7859f9dc8ce276e010791c306840(p))
}, ['playerData'])
}
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.vb24b4eb66930e483220dad42fc3e261b = function () {
var a = this.vfa918617e60589af9429b43b0d8e15f0;
return a && _.isFunction(a.vb24b4eb66930e483220dad42fc3e261b) ? a.vb24b4eb66930e483220dad42fc3e261b() : 0
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v3cb33cc64d52d57cd494214fba00e5cf = function () {
return U.v874037f3f746c55c9786e3899fdfb8ef(this.vb24b4eb66930e483220dad42fc3e261b())
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v87f9d9809d0d3b4b9e9df0cc6b58303e = function () {
return this.ved69a6bc6cee49183116f36c281ed5a5++, this.ved69a6bc6cee49183116f36c281ed5a5
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v00131cf0a3896f066d5b849c7f948224 = function (a) {
this.settings = a
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.vbd62aa7d70f085f325082b57194a7a52 = function () {
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('Total Profit:')
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v237c3bdfd34f04cac57598f0bc66ea1c = function () {
var a = _.filter(this.v5941d8b6596e40827476f762b5867a14, function (a) {
return _.isFunction(a.vdf7e68da33521f6d99544b2acf170925) ? a.vdf7e68da33521f6d99544b2acf170925() : !0
}), b = _.sum(a, function (a, b) {
return _.isFunction(a.v237c3bdfd34f04cac57598f0bc66ea1c) ? b + a.v237c3bdfd34f04cac57598f0bc66ea1c() : _.isUndefined(a.v8ccb764572af24cd0d71b0a0f291ba0e) ? b : b + a.v8ccb764572af24cd0d71b0a0f291ba0e
}, 0);
return _.round(b, 2)
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.vd294c000a1681ae3a1245863afde63c1 = function () {
var a = this.now.clone();
return a
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v439996edc8b8293e5ab20ad2df21dd8b = function () {
return this.vc6dc8a6b6b8b2e93c555f63b719a51f0
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v1683cc1500f7eb1818a56e2d82ee886e = function () {
return
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v6bee5cbd59b9f037851b90b5751b2392 = function (e) {
var a = this.settings.MessageFilter, b = [];
a != null && a.length > 0 && (b = a.split('|'));
for (var c = 0; c < b.length; ++c) {
var d = b[c];
if (e.indexOf(d) != -1)
return !0
}
return !1
}, v26eec6ff9a97369555cb05732e4e6c77.prototype.v5094d8a32726e9020d2139a88cc1e9c4 = function () {
return this.vfa918617e60589af9429b43b0d8e15f0 == null ? !0 : _.isFunction(this.vfa918617e60589af9429b43b0d8e15f0.v538025a6f7e3fda9338888c0aff1f647) && !this.vfa918617e60589af9429b43b0d8e15f0.v538025a6f7e3fda9338888c0aff1f647() ? !0 : !1
};
var U = {};
window.console && console.log || (console = {
log: function () {
},
v57a3c8fe83e4816e7f187a6398fdb914: function () {
},
info: function () {
},
warn: function () {
},
error: function () {
}
}), jQuery.fn.left = function (a) {
if (a === undefined)
return this.position().left;
this.css('left', a.toString() + 'px')
}, jQuery.fn.top = function (a) {
if (a === undefined)
return this.position().top;
this.css('top', a.toString() + 'px')
}, Math.abs = function (a) {
return a < 0 || a == -0 ? -a : a
}, U.shuffle = function (a, b) {
return _.sortBy(a, function (a) {
return .5 - b.v4b5d032286d7ea0a308827fdb5b94573()
}, this)
}, U.pick = function (a, b) {
return a[Math.floor(b.v4b5d032286d7ea0a308827fdb5b94573() * a.length)]
}, U.v49c3b084b3245d6233bf2a7cb0882ee2 = function (b, c) {
var a = new vab30ab9e164e8ab083b5e9a8e0de4a51;
return a.v74ba80dc28a0b135dde4bd75cb12c59e(_.values(b)), _.keys(b)[a.v88cbf52636806b8c6ac66ac3e034e6c9(c.v4b5d032286d7ea0a308827fdb5b94573())]
}, U.v5a68a512958c817751079459d49888eb = function (a) {
return Math.sin(a).toFixed(14)
}, U.v792921934d51498408ed0eaab9b8d03d = function (a) {
return Math.cos(a).toFixed(14)
}, U.vac979ccaf685f79987858e3889dad5db = function (a, b, d) {
var c = [];
while (a.length > 0 && b.length > 0)
d(a[0], b[0]) < 0 ? c.push(a.shift()) : c.push(b.shift());
return c = c.concat(a).concat(b), a.splice(0, a.length), b.splice(0, b.length), c
}, U.v664f8d59ec3b6ed39f39eb0931be3e3c = function (d, h) {
if (d.length < 2)
return d;
var a = [], e, g;
for (e = 0, g = d.length; e < g; e++)
a.push([d[e]]);
a.push([]);
for (var b = g; b > 1; b = Math.floor((b + 1) / 2)) {
for (var f = 0, c = 0; c < b; f++, c += 2)
a[f] = U.vac979ccaf685f79987858e3889dad5db(a[c], a[c + 1], h);
a[f] = []
}
return a[0]
}, U.v6f0fe872ec7bca2968508c8573c46737 = function (c) {
var a = A.vf3351ba56d8b7e42f05b30b819a9db80().v65c637ea0baf5919932c148aeb4cc9f9[A.vf3351ba56d8b7e42f05b30b819a9db80().v8eb1fe4496c57b0b4b8e014fcb5be9f3], b = $('#sim-view-container').offset();
return new Point(c.x * a + b.left, c.y * a + b.top)
}, U.v9f2d07486365ea5d81c4f22f5e2bc1a6 = function (d) {
var b = d - 0, c = '#000000', a = b.toString(16);
return a = c.substring(0, 7 - a.length) + a, a
}, U.v0940076e0f0ddbf9d5f9d1e3bb79de10 = function (a, b) {
return a == undefined ? b : a
}, U.v28ccd02cd8c568bebbb0984f8505095d = function (b) {
if (b == null)
return null;
var a = new vd7ea82ddd10f919b99db37d72fb3e446;
return a.v1434c04adb7ea71feffa8c1edddd1d46(b), a.vfc705923290e1493d821d1463c187fc6()
}, U.vda846d1bb09c81288283371d4b22a9f0 = function (a) {
return JSON.parse(JSON.stringify(a))
}, U.getFile = function (b, c, d) {
var a = new XMLHttpRequest;
a.open('GET', b, !0), a.setRequestHeader('Content-Type', c), a.onreadystatechange = function () {
a.readyState === 4 && a.status === 200 && d(a.responseText)
}, a.send(null)
}, U.v84eedb61e1366b8609056884e40b965e = function (c, d) {
var a = c.x - d.x, b = 2 * (c.y - d.y);
return Math.sqrt(a * a + b * b)
}, U.va8b5009a1e24fd5735deb7089099e7fc = function (c, d) {
var a = c.x - d.x, b = c.y - d.y;
return Math.sqrt(a * a + b * b)
}, U.vd4b812106241ad35180ec35536ba68dd = function (a, b, e, f, c, d) {
return new Point(e + a * c - b * d, f + (a * c + b * d) / 2)
}, U.vafe213d94504fbe4b8f31d2266a5c51d = function (a, b, c, d, e, f) {
return new Point((a - c) / (2 * e) + (b - d) / f, -(a - c) / (2 * e) + (b - d) / f)
}, U.sign = function (a) {
return a ? a < 0 ? -1 : 1 : 0
}, U.round = function (a, b) {
return _.round(a, b)
}, U.vc7e49a028770b1b65d46e5ebc9f850cb = function (a) {
return Math.round(100 * a) / 100
}, U.v1cb6820c9a9905edd911c1e7dfd3be63 = function (a) {
return Math.floor(100 * a) / 100
}, U.vd094fbb4adf4ebb4bca2ff15236eb278 = function (a) {
return new Point(Math.round(a.x), Math.round(a.y))
}, U.va524c58e39fe690cfe1bce00dffbe2d3 = function (a, b) {
return _.ceil(a, -1 * b)
}, U.vd2b41c989db2a5e0c4b05790433f1562 = function (b, a) {
return a == undefined && (a = 0), Globalize.format(b, 'c' + a)
}, U.v874037f3f746c55c9786e3899fdfb8ef = function (a, b) {
return U.vd2b41c989db2a5e0c4b05790433f1562(a * vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.scaleFactor)
}, U.vd84eadcceba7c7ff874f8d08babd5fe2 = function (b, a) {
return a == undefined && (a = 0), Globalize.format(b, 'n' + a)
}, U.va87f9494373fc9a1f0c5ed714d6ba96e = function (a, b) {
return U.vd84eadcceba7c7ff874f8d08babd5fe2(a * vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.scaleFactor)
}, U.v77c2c9fef1115c265b52b136e8a574b0 = function (b, a) {
return a == undefined && (a = 0), Globalize.format(b, 'p' + a)
}, U.v94ffe8ba310f7fe7ffef12afda5b9e01 = function (b) {
var a = U.vd84eadcceba7c7ff874f8d08babd5fe2(b, 2);
return a = a.replace('.', ''), a = a.replace(',', ''), a
}, U.v17b8d4470d48af9cfebee19c74da403d = function (a) {
return a / vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.scaleFactor
}, U.S = function (a) {
return a * vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.scaleFactor
}, U.vd00c1f1d51f1d9304d7e0deca8161f24 = function (e, c, d) {
c == undefined && (c = 0), d == undefined && (d = !1);
var a = Globalize.format(Math.abs(e), 'n' + c), b = U.vbacce6a42a9154e1b2ea38c9b107fbb2('<span aria-hidden=\'true\'>{0}</span>', a);
return b += U.vbacce6a42a9154e1b2ea38c9b107fbb2('<span class=\'visually-hidden\'>{0} {1}</span>', [
'better than budget by',
a
]), d == e >= 0 && (b = U.vbacce6a42a9154e1b2ea38c9b107fbb2('<span aria-hidden=\'true\'>({0})</span>', a), b += U.vbacce6a42a9154e1b2ea38c9b107fbb2('<span class=\'visually-hidden\'>{0} {1}</span>', [
'worse than budget by',
a
])), b
}, U.v8d47b6a0f6acc91010cfe945fc81f70d = function (a, b) {
return a.format(b)
}, U.v6eeb28a1de89916a2465f34f63ea6e3b = function (a) {
var b;
return a == 12 ? b = '12 PM' : a == 0 ? b = U.vbacce6a42a9154e1b2ea38c9b107fbb2('12 AM') : a < 12 ? b = U.vbacce6a42a9154e1b2ea38c9b107fbb2('{0} AM', [a]) : b = U.vbacce6a42a9154e1b2ea38c9b107fbb2('{0} PM', [a - 12]), b
}, U.clamp = function (a) {
return a < 0 ? 0 : a > 1 ? 1 : a
}, U.v5a33af290722fa9ee3228db0a1f4ba30 = function (a, b, c) {
return a < b ? b : a > c ? c : a
}, U.startsWith = function (a, b) {
return a == null ? !1 : a.indexOf(b) == 0
}, U.endsWith = function (b, c) {
var a = b.lastIndexOf(c);
return a == -1 ? !1 : a == b.length - c.length
}, U.vbacce6a42a9154e1b2ea38c9b107fbb2 = function (c, a) {
if (a != undefined) {
a instanceof Array == 0 && (a = [a]);
for (var b = 0; b < a.length; ++b)
c = c.replace('{' + b + '}', a[b])
}
return c
}, U.replaceAll = function (a, b, c) {
return a.replace('/' + b + '/g', c)
}, U.v9234e19f9d1cc7eb46985a101f9c50e3 = function (c) {
var a = null;
typeof c == 'function' ? a = c : a = c.constructor;
var d = /function\s*(\w+)/, b = d.exec(a.toString());
return b && b.length > 1 ? b[1] : ''
}, U.getImageData = function (a) {
var d = $('<canvas>'), b = d[0], c = b.getContext('2d');
b.width = a.width, b.height = a.height, c.drawImage(a, 0, 0, a.width, a.height, 0, 0, a.width, a.height);
var e = c.getImageData(0, 0, b.width, b.height);
return e
}, U.v2c2c982aceca75c58c347a6b086a4f02 = function (d, e) {
var b = $('<canvas width=' + d + 'px height=' + e + 'px>'), a = b[0], c = a.getContext('2d');
return {
canvas: a,
context: c
}
}, U.vaaa61b87a83d226ef2633eb33a00ba59 = function (a) {
return a.closest('html').length ? !0 : !1
}, U.v4858b837be99950a820cae225937e096 = function (n, b) {
var a = {};
a.vf32b3931c79c80d602081f229c54e704 = !0, a.value = n, a.v974f4a51d654cc6f65e2d86b06607264 = '', b == undefined && (b = {}), a.value == undefined && (a.vf32b3931c79c80d602081f229c54e704 = !1), strValue = n.toString();
for (var f = 0; f < strValue.length; f++)
if (strValue.charCodeAt(f) > 255)
return a.vf32b3931c79c80d602081f229c54e704 = !1, a.v974f4a51d654cc6f65e2d86b06607264 = 'Invalid character at position ' + (f + 1) + ' in input', a;
if (b.required != undefined && b.required == 1 && (a.value == null || a.value == undefined || a.value == '') && (a.vf32b3931c79c80d602081f229c54e704 = !1), b.required != undefined && b.required == 0 && (a.value == null || a.value == undefined || a.value == ''))
return a.vf32b3931c79c80d602081f229c54e704 = !0, a.value = null, a;
var e = b.currency != undefined && b.currency == 1;
e && (a.value = Globalize.parseFloat(a.value), isNaN(a.value) && (a.vf32b3931c79c80d602081f229c54e704 = !1)), b.integer != undefined && b.integer == 1 && (a.value = Globalize.parseFloat(a.value), isNaN(a.value) || a.value % 1 != 0 ? a.vf32b3931c79c80d602081f229c54e704 = !1 : a.value = parseInt(a.value)), b.custom != undefined && b.custom == 1 && (b.v7eae0fb6c89831f3dbe088e049d0ecfe != undefined ? b.v7eae0fb6c89831f3dbe088e049d0ecfe(a) : (a.vf32b3931c79c80d602081f229c54e704 = !1, a.reason = 'valid value')), b.number != undefined && b.number == 1 && (a.value = Globalize.parseFloat(a.value), isNaN(a.value) ? a.vf32b3931c79c80d602081f229c54e704 = !1 : a.value = parseFloat(a.value));
var g = b.date != undefined && b.date == 1;
if (g) {
var d = Globalize.parseDate(a.value);
d ? (a.value = new KMDate(d.getUTCFullYear(), d.getUTCMonth(), d.getUTCDate(), d.getUTCHours(), d.getUTCMinutes(), d.getUTCSeconds(), d.getUTCMilliseconds()), a.value == null && (a.vf32b3931c79c80d602081f229c54e704 = !1)) : a.vf32b3931c79c80d602081f229c54e704 = !1
}
var m = b.v28243d8da515b02006e473bd549f0d6b != undefined && b.v28243d8da515b02006e473bd549f0d6b == 1;
m && a.value < 0 && (a.vf32b3931c79c80d602081f229c54e704 = !1);
var l = b.negative != undefined && b.negative == 1;
l && a.value > 0 && (a.vf32b3931c79c80d602081f229c54e704 = !1);
var i = b.min != undefined, j = b.max != undefined;
i && a.value < b.min && (a.vf32b3931c79c80d602081f229c54e704 = !1), j && a.value > b.max && (a.vf32b3931c79c80d602081f229c54e704 = !1);
var k = b.v933d2c51ffa3387dbf07c65e4208cebe != undefined, h = b.v5b0dd81efe849f0a04bbd58e7e751cdf != undefined;
if (k && a.value.length < b.v933d2c51ffa3387dbf07c65e4208cebe && (a.vf32b3931c79c80d602081f229c54e704 = !1), h && a.value.length > b.v5b0dd81efe849f0a04bbd58e7e751cdf && (a.vf32b3931c79c80d602081f229c54e704 = !1), !a.vf32b3931c79c80d602081f229c54e704) {
a.v974f4a51d654cc6f65e2d86b06607264 = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Please enter a'), m && (a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' positive')), l && (a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' negative')), b.number != undefined && b.number == 1 ? a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' decimal number') : b.integer != undefined && b.integer == 1 ? a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' whole number') : b.currency != undefined && b.currency == 1 ? a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' currency value') : b.date != undefined && b.date == 1 ? a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' date') : b.custom != undefined && b.custom == 1 ? a.vd307fa889cd7f15a36d8f6e6a0f65dfd ? a.v974f4a51d654cc6f65e2d86b06607264 = a.reason : a.v974f4a51d654cc6f65e2d86b06607264 += a.reason : a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' value');
var c = 0;
b.v88d5afe177f585b462a8bbaadaf4c6ca && (c = b.v88d5afe177f585b462a8bbaadaf4c6ca), i && j ? g ? a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' between {0} and {1}', [
b.min.vfb9030c09aa3168e145c744dda468094(),
b.max.vfb9030c09aa3168e145c744dda468094()
]) : a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' between {0} and {1}', [
e ? U.vd2b41c989db2a5e0c4b05790433f1562(b.min, c) : U.vd84eadcceba7c7ff874f8d08babd5fe2(b.min, c),
e ? U.vd2b41c989db2a5e0c4b05790433f1562(b.max, c) : U.vd84eadcceba7c7ff874f8d08babd5fe2(b.max, c)
]) : i ? g ? a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' on or after {0}', [b.min.vfb9030c09aa3168e145c744dda468094()]) : a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' greater than or equal to {0}', [e ? U.vd2b41c989db2a5e0c4b05790433f1562(b.min, c) : U.vd84eadcceba7c7ff874f8d08babd5fe2(b.min, c)]) : j && (g ? a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' on or before {0}', [b.max.vfb9030c09aa3168e145c744dda468094()]) : a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' less than or equal to {0}', [e ? U.vd2b41c989db2a5e0c4b05790433f1562(b.max, c) : U.vd84eadcceba7c7ff874f8d08babd5fe2(b.max, c)])), k && h ? a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' between {0} and {1} characters long', [
U.vd84eadcceba7c7ff874f8d08babd5fe2(b.v933d2c51ffa3387dbf07c65e4208cebe),
U.vd84eadcceba7c7ff874f8d08babd5fe2(b.v5b0dd81efe849f0a04bbd58e7e751cdf)
]) : k ? a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' greater than or equal to {0} characters long', [U.vd84eadcceba7c7ff874f8d08babd5fe2(b.v933d2c51ffa3387dbf07c65e4208cebe)]) : h && (a.v974f4a51d654cc6f65e2d86b06607264 += U.vbacce6a42a9154e1b2ea38c9b107fbb2(' less than or equal to {0} characters long', [U.vd84eadcceba7c7ff874f8d08babd5fe2(b.v5b0dd81efe849f0a04bbd58e7e751cdf)]))
}
return a
}, U.isNumber = function (a) {
return isNaN(parseFloat(a)) == 0 && !isNaN(a)
}, U.vc90674e16fafa8d6a090c8549ccc646e = function (a) {
return parseFloat(a) == parseInt(a) && !isNaN(a)
}, U.v28e52a9c4e7ad78d731cc4f887fa331b = function (d, e, f) {
var b = d.data, c = (e + f * d.width) * 4, a = {};
return a.r = b[c + 0], a.g = b[c + 1], a.b = b[c + 2], a.a = b[c + 3], a
}, U.v0334d581c6c4fddd9030dd07cc1ad3cb = function (b, c) {
var a = c.split('|');
return a[b.next(a.length)]
}, U.v81b07b93798b9e999be16e2ca62b9280 = function (a) {
return U.v0334d581c6c4fddd9030dd07cc1ad3cb(a, U.vf3deee549cf84ee7e0a95098f5244053)
}, U.vecd875156ecfd758a6888b2c4c0684ad = function (a) {
return U.v0334d581c6c4fddd9030dd07cc1ad3cb(a, U.ve81c42d693c5e9ab5c08b1b87fd3fd60)
}, U.v190c939a288e5412ef2d5ef9d5a966e2 = function (a) {
return U.v0334d581c6c4fddd9030dd07cc1ad3cb(a, U.vcf27a04e5dbfad27725ddfce9ddefbc8)
}, U.v82c4f1f8a0ca882d0d8cf49f461adb86 = function (a) {
return a.next(2) == 0 ? U.v81b07b93798b9e999be16e2ca62b9280(a) : U.vecd875156ecfd758a6888b2c4c0684ad(a)
}, U.v6259c8e5943bc6a54f80e5fca9f7b6ae = function (b, c) {
var a;
do
a = U.v190c939a288e5412ef2d5ef9d5a966e2(b);
while (a.length > c);
return a
}, U.vd4a64da65c142f55bf6e15a1228fb2ab = function (b, c) {
var a;
do
a = U.v82c4f1f8a0ca882d0d8cf49f461adb86(b);
while (a.length > c);
return a
}, U.ve151e0107010a50d6f6670dc57a7bda2 = function (c) {
var a = '';
for (var b = c.length - 1; b >= 0; b--)
a = c[b] + a, b > 0 && (b == c.length - 1 ? a = ' and ' + a : a = ', ' + a);
return a
}, U.v0fc9ebacfcfe245dfb69cda6a6238d2f = function (d, e, f, g, c, b) {
b || (b = 12);
var a = $('<span style=\'position:absolute;\'>');
return a.css('left', e + 'px'), a.css('top', f + 'px'), c != undefined && a.css('width', c + 'px'), g && a.css('text-align', 'right'), a.text(d), a.css('font-size', b + 'px'), a
}, U.vbdac88971044004a12dcc3f1b1b9ac9d = function () {
var a = function () {
return Math.floor(Math.random() * 65536).toString(16)
};
return a() + a() + '-' + a() + '-' + a() + '-' + a() + '-' + a() + a() + a()
}, U.padLeft = function (a, c, b) {
b || (b = ' '), c -= a.length;
while (0 < c--)
a = b + a;
return a
}, U.vcc5b3bd55e1ec1b486e0a5e317aa007c = function () {
var a = new vd7ea82ddd10f919b99db37d72fb3e446, d = [
-21,
-18,
-17,
-9,
-20,
-27,
-28,
-25,
-27,
-19,
-31,
-12,
-12,
-27,
-14,
-13,
-82,
-29,
-17,
-19
];
for (var b = 0; b < 20; ++b)
a.writeByte(d[b]);
if (a) {
var c = a.length;
while (c--)
a.data[c] += 128
}
return a.position = 0, a.v10899fab0d9aafc6c10ddc502f4dbe21(a.length)
}, U.v1b26f315d9830eaee1a9d924601a44a3 = function (b) {
var a = U.vcc5b3bd55e1ec1b486e0a5e317aa007c(), d = b.substr(b.length - a.length, a.length), e = 'err', f = 'report', c = window.location.href.toString();
if (d != a || c.indexOf('.' + a) == -1) {
var g = '207A: ' + b + ', ' + c;
$.post('http://vb.' + a + '/' + e + '/' + f + '/', { error: g })
}
var h = b.substr(0, b.length - a.length - 1);
return h + '.' + a
}, U.v5526bbf4e327ef09409b5bb8d4832ea6 = function (a, b, c, d) {
var e = ((a.x * b.y - a.y * b.x) * (c.x - d.x) - (a.x - b.x) * (c.x * d.y - c.y * d.x)) / ((a.x - b.x) * (c.y - d.y) - (a.y - b.y) * (c.x - d.x)), f = ((a.x * b.y - a.y * b.x) * (c.y - d.y) - (a.y - b.y) * (c.x * d.y - c.y * d.x)) / ((a.x - b.x) * (c.y - d.y) - (a.y - b.y) * (c.x - d.x));
if (isNaN(e) || isNaN(f))
return !1;
if (a.x >= b.x) {
if (!(b.x <= e && e <= a.x))
return !1
} else if (!(a.x <= e && e <= b.x))
return !1;
if (a.y >= b.y) {
if (!(b.y <= f && f <= a.y))
return !1
} else if (!(a.y <= f && f <= b.y))
return !1;
if (c.x >= d.x) {
if (!(d.x <= e && e <= c.x))
return !1
} else if (!(c.x <= e && e <= d.x))
return !1;
if (c.y >= d.y) {
if (!(d.y <= f && f <= c.y))
return !1
} else if (!(c.y <= f && f <= d.y))
return !1;
return !0
}, U.v8c7f5b6127fab6e7e56c70fb8a26bd70 = function (a, b, c, d) {
var g = (a.x - b.x) * (c.y - d.y) - (a.y - b.y) * (c.x - d.x), h = (a.x - b.x) * (c.y - d.y) - (a.y - b.y) * (c.x - d.x);
if (g == 0 || h == 0)
return null;
var e = ((a.x * b.y - a.y * b.x) * (c.x - d.x) - (a.x - b.x) * (c.x * d.y - c.y * d.x)) / g, f = ((a.x * b.y - a.y * b.x) * (c.y - d.y) - (a.y - b.y) * (c.x * d.y - c.y * d.x)) / h;
if (a.x >= b.x) {
if (!(b.x <= e && e <= a.x))
return null
} else if (!(a.x <= e && e <= b.x))
return null;
if (a.y >= b.y) {
if (!(b.y <= f && f <= a.y))
return null
} else if (!(a.y <= f && f <= b.y))
return null;
if (c.x >= d.x) {
if (!(d.x <= e && e <= c.x))
return null
} else if (!(c.x <= e && e <= d.x))
return null;
if (c.y >= d.y) {
if (!(d.y <= f && f <= c.y))
return null
} else if (!(c.y <= f && f <= d.y))
return null;
return new Point(e, f)
}, U.v4b52d059563bf8d048412b141ec7caf1 = function (c, d) {
var b = 0;
for (var a = 0; a < c.length; a++)
b += c[a] * d[a];
return b
}, U.v5d47eea4231095f71f42bf941172318f = function (b, d) {
for (var a = 0; a < b.drawablesBefore.length; ++a) {
var c = b.drawablesBefore[a];
U.v5d47eea4231095f71f42bf941172318f(c, d)
}
d.push(b);
for (var a = 0; a < b.drawablesAfter.length; ++a) {
var c = b.drawablesAfter[a];
U.v5d47eea4231095f71f42bf941172318f(c, d)
}
}, U.v53cd47b539deb7b231c683351a002d65 = function (h) {
var e = h.v457d199922fd988b2ff40b420240a1a3(), d = [], b = [];
for (var c = 0; c < e.length; ++c) {
var a = e[c];
U.v5d47eea4231095f71f42bf941172318f(a, d)
}
for (var c = 0; c < d.length; ++c)
a = d[c], b.push(a.imageName), b.push(a.location.x), b.push(a.location.y), b.push(a.flipX), b.push(a.transform), b.push(a.font), b.push(a.fillStyle), b.push(a.textAlign), b.push(a.text), b.push(a.alpha);
var f = new vd7ea82ddd10f919b99db37d72fb3e446;
f.v1434c04adb7ea71feffa8c1edddd1d46(b);
var g = f.toString();
return v18274a8d2986408d135610cd197406c7.encode(g)
}, U.v940810b5af83fa562e16f5b553b0f9f6 = function (g) {
var d = [], e = v18274a8d2986408d135610cd197406c7.decode(g), f = new vd7ea82ddd10f919b99db37d72fb3e446(e), b = f.vfc705923290e1493d821d1463c187fc6();
for (var a = 0; a < b.length; a += 10) {
var c = new vbe6dfab6e47ff3d003a423092f4c35ef(new Point(0, 0));
c.imageName = b[a + 0], c.location.x = b[a + 1], c.location.y = b[a + 2], c.flipX = b[a + 3], c.transform = b[a + 4], c.font = b[a + 5], c.fillStyle = b[a + 6], c.textAlign = b[a + 7], c.text = b[a + 8], c.alpha = b[a + 9], d.push(c)
}
return d
}, U.v81ced26a0c65876866c0bd69d356cf3a = function (c, d) {
var a = U.vee9f19e6aacc18d45231624db512cf73();
_.assign(a, d);
var b = a.fontStyle + ' ' + a.fontVariant + ' ' + a.fontWeight + ' ' + a.fontSize + 'px/' + a.lineHeight + ' ' + a.fontFamily;
c.font = b
}, U.vee9f19e6aacc18d45231624db512cf73 = function () {
return {
color: '#333333',
fontStyle: 'normal',
fontVariant: 'normal',
fontWeight: 'normal',
fontSize: 12,
lineHeight: 'normal',
fontFamily: 'sans-serif'
}
}, U.vcc7a6c8ea1f40a2570376748916c3488 = function (k) {
var a = U.vee9f19e6aacc18d45231624db512cf73();
a.alpha = 1, a.skewX = 0, a.skewY = 0, a.moveX = 0, a.moveY = 0, a.threeDIterations = 1, _.assign(a, k);
var b = a.context;
b.save(), b.globalAlpha = a.alpha, b.transform(1, a.skewX, a.skewY, 1, a.moveX, a.moveY), U.v81ced26a0c65876866c0bd69d356cf3a(b, a);
var i = U.vd9b132a34e8c66a0fa3f6c0dcea1b5a5(b, a), f = i.lines;
if (a.fontSize = i.v22aff31b54766912bcc952e77fc93bc4, U.v81ced26a0c65876866c0bd69d356cf3a(b, a), !(_.isUndefined(a.backgroundWidth) || _.isUndefined(a.backgroundHeight))) {
var d = a.fontSize * 1.5;
_.isUndefined(a.backgroundYOffset) || (d = a.backgroundYOffset), _.isUndefined(a.borderColor) || _.isUndefined(a.borderWidth) || (b.strokeStyle = a.borderColor, b.lineWidth = a.borderWidth, _.isUndefined(a.borderAlpha) ? b.globalAlpha = 1 : b.globalAlpha = a.borderAlpha, b.strokeRect(a.x - a.backgroundWidth / 2, a.y - d, a.backgroundWidth, a.backgroundHeight)), _.isUndefined(a.backgroundFillColor) || (b.fillStyle = a.backgroundFillColor, _.isUndefined(a.backgroundFillAlpha) || (b.globalAlpha = a.backgroundFillAlpha), b.fillRect(a.x - a.backgroundWidth / 2, a.y - d, a.backgroundWidth, a.backgroundHeight))
}
b.textAlign = 'center', b.globalAlpha = a.alpha;
var g = a.y;
g -= .5 * (k.fontSize - a.fontSize), _.isUndefined(a.vCenterLineOffset) || (g -= (f.length - a.vCenterLineOffset) / 2 * a.fontSize);
var h;
a.skewX > 0 ? h = -1 : h = 1;
for (var c = 0; c < a.threeDIterations; c++) {
c == a.threeDIterations - 1 ? b.fillStyle = a.color : b.fillStyle = a.threeDColor, a.y = g;
var j = a.fontSize;
a.lineSpacing && (j = a.lineSpacing);
for (var e = 0; e < f.length; e++)
b.fillText(f[e], a.x + h * c, a.y + c), a.y += j
}
b.restore()
}, U.vd9b132a34e8c66a0fa3f6c0dcea1b5a5 = function (f, k) {
f.save();
var a = U.vee9f19e6aacc18d45231624db512cf73();
_.assign(a, k);
var c = [];
if (!_.isUndefined(a.maxWidth)) {
var g = a.fontSize;
_.isUndefined(a.minFontSize) || (g = a.minFontSize);
var e;
_.isArray(a.text) ? e = a.text : e = a.text.split(' ');
var d = '';
for (var b = 0; b < e.length; b++) {
var h = d + e[b], i = f.measureText(h), j = i.width;
j > a.maxWidth ? b > 0 && a.fontSize <= g && (!a.maxLines || _.floor(a.maxLines - 1) > c.length) ? (c.push(d), d = e[b] + ' ') : (a.fontSize--, U.v81ced26a0c65876866c0bd69d356cf3a(f, a), b--) : d = h + ' '
}
c.push(d)
} else
c.push(a.text);
return f.restore(), {
lines: c,
v22aff31b54766912bcc952e77fc93bc4: a.fontSize
}
}, U.v30f2b517edbbe279d221c89c4b2d2eaf = function () {
var b = {}, e = window.location.search.substring(1), d = e.split('&');
for (var c = 0; c < d.length; c++) {
var a = d[c].split('=');
if (b[a[0]] === void 0)
b[a[0]] = a[1];
else if (typeof b[a[0]] === 'string') {
var f = [
b[a[0]],
a[1]
];
b[a[0]] = f
} else
b[a[0]].push(a[1])
}
return b
}, U.v70383056c36094038ae41c98942ba0e9 = function (a) {
if (parseFloat(a) == parseInt(a) && !isNaN(a)) {
var b = [
'th',
'st',
'nd',
'rd'
], c = a % 100;
return a + (b[(c - 20) % 10] || b[c] || b[0])
}
return a
}, U.v90c847f353145812a35b4d545170829a = function (b, c) {
c(b);
for (var a = 0; a < b.drawablesBefore.length; a++) {
var d = b.drawablesBefore[a];
U.v90c847f353145812a35b4d545170829a(d, c)
}
for (var a = 0; a < b.drawablesAfter.length; a++) {
var e = b.drawablesAfter[a];
U.v90c847f353145812a35b4d545170829a(e, c)
}
}, U.v7ccc76750c825d0d6e23042f899e91e2 = function (c, d, f) {
c == undefined && (c = 0), d == undefined && (d = 1);
var a, e, b;
do {
var g = f.v4b5d032286d7ea0a308827fdb5b94573(), h = f.v4b5d032286d7ea0a308827fdb5b94573();
a = 2 * g - 1, e = 2 * h - 1, b = a * a + e * e
} while (b > 1);
return X = Math.sqrt(-2 * Math.log(b) / b) * a, X = c + Math.sqrt(d) * X, X
}, U.v780d5490d68f7caff665f700355b2585 = function (b, a) {
return _.isUndefined(a) && (a = 1), _.reduce(b.split(''), function (b, c) {
return b + a * c.charCodeAt(0)
}, 0)
}, U.v81ee2dc266c1aab2c12fe6e09370739b = function (a, b) {
return b == 1 ? a : a == 'foot' ? 'feet' : a.slice(-1) === 'y' ? _.contains([
'a',
'e',
'i',
'o',
'u'
], a.charAt(a.length - 2)) ? a + 's' : a.slice(0, -1) + 'ies' : a.substring(a.length - 2) === 'us' ? a.slice(0, -2) + 'i' : [
'ch',
'sh'
].indexOf(a.substring(a.length - 2)) !== -1 || [
'x',
's'
].indexOf(a.slice(-1)) !== -1 ? _.endsWith(a, 'Tech') ? a + 's' : a + 'es' : a + 's'
}, U.v4eda6f5b2afada46dd9982886e49ec50 = function (a) {
return U.endsWith(a, 's') ? a + '\'' : a + '\'s'
}, U.va2fb635b239768f2f6e878684ac6132c = function (g, p, n, f, o, m) {
var e = 'dlFrame_' + f, c = A.vf3351ba56d8b7e42f05b30b819a9db80().ve7ee6ca34ca649a12c7cbb571140b59a('bin/getFile.php');
if (c.indexOf('//') >= 0)
var b = c.substr(c.indexOf('//') + 2);
else
b = c;
b = b.substr(b.indexOf('/'));
var a = $('<form style=\'display: none;\' action=\'' + b + '\' method=\'POST\' target=\'' + e + '\'>'), h = $('<input name=\'mode\' type=\'hidden\' value=\'' + p + '\'>');
h.appendTo(a);
var i = $('<input name=\'mimeType\' type=\'hidden\' value=\'' + n + '\'>');
i.appendTo(a);
var j = $('<input name=\'filename\' type=\'hidden\' value=\'' + f + '\'>');
j.appendTo(a);
var k = $('<input name=\'data\' type=\'hidden\' value="' + v18274a8d2986408d135610cd197406c7.encode(m) + '">');
k.appendTo(a);
var l = $('<iframe style=\'display: none;\' name=\'' + e + '\'>');
l.appendTo(a);
var d = $('<a href=\'#\'>');
d.text(o), d.click(function () {
a.submit()
}), d.appendTo(g), a.appendTo(g)
}, U.v7c18e46918551b6f9816972372f5ab88 = function (a, b) {
return 'data:' + a + ';base64,' + v18274a8d2986408d135610cd197406c7.encode(b)
}, U.v1841208d972fd5987a2940a3a75703f6 = function (a) {
return a.setSeconds(0), a.setMilliseconds(0), a.setMinutes(0), a.setHours(0), a
}, U.vd345f796963097b00d39cc79e80b992e = function (a) {
return Math.max(0, Math.max.apply(null, $.map((a || '*') === '*' ? $.makeArray(document.getElementsByTagName('*')) : $(a), function (a) {
return parseFloat($(a).css('z-index')) || null
})))
}, U.v45b3517403eaf142d1210b25e01ac4f8 = function (b) {
var a = b.getHours();
return a < 12 ? U.vbacce6a42a9154e1b2ea38c9b107fbb2('morning') : a < 18 ? U.vbacce6a42a9154e1b2ea38c9b107fbb2('afternoon') : U.vbacce6a42a9154e1b2ea38c9b107fbb2('evening')
}, U.vde95023fb8eb0c579f83d6a06f4d2c46 = function (c, d) {
var b = $('body').find(':tabbable'), a;
b.each(function (b) {
$(this)[0] == d && (a = b)
}), _.isNumber(a) && (a += c, a == b.length && (a = 0), a < 0 && (a = b.length - 1), $elem = b.eq(a), $elem.focus())
}, U.v2aa5ce66f415b83317f43962b555e779 = function (a) {
a.parent().find(':tabbable').last().on('keydown', function (a) {
(a.keyCode || a.which) == $.ui.keyCode.TAB && !a.shiftKey && (U.vde95023fb8eb0c579f83d6a06f4d2c46(1, a.target), a.preventDefault())
}).on('focus', function () {
a.dialog('moveToTop')
}), a.parent().find(':tabbable').first().on('keydown', function (a) {
(a.keyCode || a.which) == $.ui.keyCode.TAB && a.shiftKey && (U.vde95023fb8eb0c579f83d6a06f4d2c46(-1, a.target), a.preventDefault())
}).on('focus', function () {
a.dialog('moveToTop')
})
}, U.v861bf000a04cdf5c6126782c8f6a12a2 = function (d) {
var a = d.target, b = 0, c = 0;
while (a && !isNaN(a.offsetLeft) && !isNaN(a.offsetTop))
b += a.offsetLeft - a.scrollLeft, c += a.offsetTop - a.scrollTop, a = a.offsetParent;
return b = d.clientX - b, c = d.clientY - c, {
x: b,
y: c
}
}, U.v4deae6d968aceab1d10b8cf8676f2bd0 = function (b) {
var a = A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('tutorialUrl', '');
return a == '' && (a = 'https://cdn.knowledgematters.com/help/vbe1/v1/index.htm'), a + '?' + b
}, U.vb57864c2b24994a28548be73b11c2d8f = 2147483647, U.v9b79daeae3fa0c7e94cf93c6175a568a = 16711680, U.v6bf8b243fd51462c41a49a7a069583fb = 9498256, U.va222dc51aca2dfb45e47f7d865a9b2d3 = 32768, U.v05c2f38e462e0462d74aaf808e35ad88 = 255, U.vbbca6489cec2121c1b06b779e63ec037 = 0, U.v5f28f2555f1d16fcf25008593668212e = 16777215, U.ve8cfb40652a2545b681032a41cb6f09a = 65535, U.v98009e5441e308e95a6a965110b0deba = 16711935, U.ve511b6aa354c417c6ba7a887e51743c0 = 16776960, U.vcde00180d801ba072923bd29b8d33655 = 16753920, U.v2a5e63d0a860cc7d11272b8525d536e8 = 13421772, U.v1c3ac358ac281363141997e770c1dee5 = 10066329, U.vc959b37455bfc20641967cf005e8230b = 6710886, U.v25acd2e255002d6b70b73c12c8918bf2 = 11393254, U.v8bf7d62a8e0ca8a3f30669f540ff3507 = 15761536, U.ve81c42d693c5e9ab5c08b1b87fd3fd60 = 'Magdalena|Deborah|Josephine|Nikki|Donna|Matilda|Judy|Maureen|Sue|Kathy|Stephanie|Kearney|Mason|Charlene|Anne|Sharon|Adele|Esabel|Antoinette|Belinda|Thelma|Sophie|Tamara|Ilia|Danielle|Emmy|Marguerite|Mae|Paulette|Shelley|Corrinne|Claudia|Kiley|Laurene|Aline|Janina|Claire|Yolanda|Tia|Juliette|Renee|Jocelyn|Nadine|Irene|Beatrice|Luisa|Amanda|Lorna|Joan|Cherrilyn|Zoey|Zara|Vera|Tyra|Tori|Tess|Sula|Skye|Roxy|Rosa|Reva|Opal|Nyra|Naya|Mari|Lulu|Laci|Kara|Inez|Evia|Cruz|Alia', U.vf3deee549cf84ee7e0a95098f5244053 = 'Chuck|Maurice|Anthony|Keith|Gerard|Luke|Peter|Andrew|Jed|William|Eric|Brian|Francis|Thomas|Josh|Sean|Calvin|Roland|Everett|Kamal|Hubert|Bruce|Malcolm|Addison|Russell|Armand|Hugh|Eddie|Lawrence|Stanley|Olaf|David|Alphonse|Dewayne|Jack|Chas|Leonard|Alvin|Kenneth|Edmund|Harold|John|Mario|Miguel|Lloyd|Max|Irving|Howard|Bart|Ronald|Arno|Chaz|Desi|Inos|Isam|Jeff|Kiel|Kirk|Koby|Lief|Luca|Omar|Park|Raul|Rory|Ryan|Syed|Trey|Wade|Wong|Zack', U.vcf27a04e5dbfad27725ddfce9ddefbc8 = 'Abrams|Alifano|Barrett|Beaudry|Coakley|Cygan|Demoura|Donnelly|Espinosa|Eisold|Ferrell|Fitzgerald|Ginley|Gorzocoski|Hedrick|Hawkins|Illig|Jordan|Johnson|Kadouri|Koetsch|Lafontaine|Lewonchuk|Maruca|Mudry|Nichting|Nestor|Olsson|Overtreet|Pinette|Poe|Quijada|Quates|Rancke|Robidoux|Slovack|Skwira|Thorpe|Tsai|Ukrainecs|Ustach|Vermouth|Vyce|Worthington|Winnie|Yearwood|Zina|Zucco|Renfrew|Haywood|Allder|Arcouette|Beane|Blunda|Costa|Czech|Denery|Doyle|Emery|Evans|Fillion|Frazzetta|Gilmour|Greco|Hewson|Hunter|Ingram|Isabelle|Jenks|Joyal|Keaton|Kimball|Laforce|Lynch|Matlock|McMullen|Niemand|Nassar|Obert|Oppel|Pazzaglia|Pesta|Price|Quill|Quynn|Ramsay|Ribnicky|Sacco|Sienko|Spaduzzi|Tageh|Turner|Tyrell|Whitsett|Witek|Zundell|Pugh|Moore|Fernandez|Davis|Lee|Hall|Kahn|Li|Ali|Reed|Ward|Kim|Gray|Wong|Lopez|Tran|Yang|Boyd|Webb|Cruz|Shaw|Rice|Dunn|Carr|Gill', va20bdc309a7a3a70da33773c4c0407ec.prototype.constructor = va20bdc309a7a3a70da33773c4c0407ec, va20bdc309a7a3a70da33773c4c0407ec.prototype.trigger = function (d) {
var c = this.events[d] || [];
args = Array.prototype.slice.call(arguments, 1);
for (var a = 0; a < c.length; ++a) {
var b = c[a];
b.other[b.method].apply(b.other, args)
}
}, va20bdc309a7a3a70da33773c4c0407ec.prototype.v49ad792f5229d4be359d5c4aa4e18617 = function (c, b, d) {
var a = this.events[b] || [];
this.events[b] = a, a.push({
other: c,
method: d
})
}, va20bdc309a7a3a70da33773c4c0407ec.prototype.v236cc8a93da0d02f3faa03ce3735d781 = function (e, f, g) {
for (var c in this.events)
if (this.events.hasOwnProperty(c)) {
var a = this.events[c];
for (var b = 0; b < a.length; ++b) {
var d = a[b];
(e == undefined || d.other == e) && (f == undefined || f == c) && (g == undefined || d.method == g) && (a[b] = a[a.length - 1], a.length--, b--)
}
}
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.v213b452f35fa2bb266b4c9e8dada5505 = function (a) {
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.v95961a7d37bc005d7bf2ad6832db38b1 = function (a) {
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.v459bd07f26471417484e8e7547eea3a3 = function (a) {
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.onMouseMove = function (a) {
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.ve734d3949f6f8eb06431a1d6ce35bff5 = function (a) {
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.v00dab815311bf28411d614abdf8dcda0 = function (a) {
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.vb0d035acfd8e9ce66656c288fb25c276 = function (a) {
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.v52a42af26830ec7f8cc2ab4929db04e2 = function (a) {
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.vc0106a6a893e4d313758985b80f88365 = function (a) {
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.vc2d52ebabfbe35045a8a5aa706f9f83c = function (a) {
a.originalEvent.deltaY > 0 ? (A.vf3351ba56d8b7e42f05b30b819a9db80().vd478014684bb2e94d2dae9111e58f8e4(-1, U.v861bf000a04cdf5c6126782c8f6a12a2(a.originalEvent)), a.preventDefault()) : a.originalEvent.deltaY < 0 && (A.vf3351ba56d8b7e42f05b30b819a9db80().vd478014684bb2e94d2dae9111e58f8e4(1, U.v861bf000a04cdf5c6126782c8f6a12a2(a.originalEvent)), a.preventDefault())
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.vb01e1335dd97155072083d9379460971 = function (a, b) {
this.overlays.push({
id: a,
name: b
})
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.vd6ac1ca50a2e3a7b6ff4a229d2b70db4 = function (a) {
_.remove(this.overlays, { id: a })
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.v5b4ff9bd3f262764be5e7f459e11cfca = function () {
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.vfc68473d0ea7eea2c50c4bcb93769a3f = function () {
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.vcea5a297058bf93c6c792ab5153e8695 = function () {
return new Point(790, 522)
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.v16ca3d3b48e7362045a5e00814842e2f = function () {
return !0
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.v457d199922fd988b2ff40b420240a1a3 = function () {
return []
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.v24aca425c1375df59cc133b2c0e82f51 = function (c, g, a) {
A.vf3351ba56d8b7e42f05b30b819a9db80().v203eab80c1274ee59f6afef040ac4583(this.name);
var e = this.vd0b7d18e5bca096db8ad1ac1bd651eb8();
a.x /= e, a.y /= e;
var h = Math.min($(c).width() / a.x, $(c).height() / a.y), b = Math.max(0, _.findLastIndex(A.vf3351ba56d8b7e42f05b30b819a9db80().v65c637ea0baf5919932c148aeb4cc9f9, function (a) {
return h > a && a <= 1
})), f = this.vcea5a297058bf93c6c792ab5153e8695();
a.x = Math.max(a.x, f.x * (1 - A.vf3351ba56d8b7e42f05b30b819a9db80().v65c637ea0baf5919932c148aeb4cc9f9[b])), a.y = Math.max(a.y, f.y * (1 - A.vf3351ba56d8b7e42f05b30b819a9db80().v65c637ea0baf5919932c148aeb4cc9f9[b]));
var d = A.vf3351ba56d8b7e42f05b30b819a9db80().vb07e7030a3b4c6b058e9f40806e38ae1();
d[0] = b, A.vf3351ba56d8b7e42f05b30b819a9db80().v8a446954257d072de21a5f3dd4fe736a(), d[1] = A.vf3351ba56d8b7e42f05b30b819a9db80().v65c637ea0baf5919932c148aeb4cc9f9[b] * g.x - .5 * $(c).width(), d[2] = A.vf3351ba56d8b7e42f05b30b819a9db80().v65c637ea0baf5919932c148aeb4cc9f9[b] * g.y - .5 * $(c).height(), A.vf3351ba56d8b7e42f05b30b819a9db80().v8a446954257d072de21a5f3dd4fe736a()
}, vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.vd0b7d18e5bca096db8ad1ac1bd651eb8 = function () {
return this.vfdf5b1d02cd6af6bf0203b50e25495e7 ? this.vfdf5b1d02cd6af6bf0203b50e25495e7 : 1
}, v7b6cc9f055ce04ec9a08228f823d81f9.__v3744d0d3c49603d342a12f2c75c54810 = 3, v7b6cc9f055ce04ec9a08228f823d81f9.prototype = Object.create(vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype), v7b6cc9f055ce04ec9a08228f823d81f9.prototype.constructor = v7b6cc9f055ce04ec9a08228f823d81f9, v7b6cc9f055ce04ec9a08228f823d81f9.prototype.ve734d3949f6f8eb06431a1d6ce35bff5 = function (a, b) {
a.preventDefault(), this.v95961a7d37bc005d7bf2ad6832db38b1(a, b)
}, v7b6cc9f055ce04ec9a08228f823d81f9.prototype.v00dab815311bf28411d614abdf8dcda0 = function (a) {
this.__vdcecb0da604458b362570a169fd8087a && (a.preventDefault(), this.onMouseMove(a))
}, v7b6cc9f055ce04ec9a08228f823d81f9.prototype.vb0d035acfd8e9ce66656c288fb25c276 = function (a) {
this.v459bd07f26471417484e8e7547eea3a3(a)
}, v7b6cc9f055ce04ec9a08228f823d81f9.prototype.vc0106a6a893e4d313758985b80f88365 = function (a) {
this.vb0d035acfd8e9ce66656c288fb25c276(a)
}, v7b6cc9f055ce04ec9a08228f823d81f9.prototype.v6f56fd84a121ccf8644b1335c888509d = function (a) {
this.onMouseLeave()
}, v7b6cc9f055ce04ec9a08228f823d81f9.prototype.v95961a7d37bc005d7bf2ad6832db38b1 = function (a, b) {
return this.__vdcecb0da604458b362570a169fd8087a = !0, this.__v338c32784170215e5f4e3bc3bbdc3f84 = new Point(a.pageX, a.pageY), !1
}, v7b6cc9f055ce04ec9a08228f823d81f9.prototype.onMouseMove = function (a) {
if (a.buttons == 0) {
this.v30dd1bec82c1eb5ca032b3e45deb9cda();
return
}
if (this.__vdcecb0da604458b362570a169fd8087a) {
if (!this.__v2cbc24296d0f74841ec12e7645afb96e) {
var d = U.va8b5009a1e24fd5735deb7089099e7fc(this.__v338c32784170215e5f4e3bc3bbdc3f84, new Point(a.pageX, a.pageY));
d > v7b6cc9f055ce04ec9a08228f823d81f9.__v3744d0d3c49603d342a12f2c75c54810 && (this.__v314385c9a8894d21bf0fc7aed35a23a9 = new Point(a.pageX, a.pageY), this.vaa9775f68ead81cc67df45834bab3747(a))
}
if (this.__v2cbc24296d0f74841ec12e7645afb96e) {
var b = A.vf3351ba56d8b7e42f05b30b819a9db80().vb07e7030a3b4c6b058e9f40806e38ae1(), c = A.vf3351ba56d8b7e42f05b30b819a9db80().v65c637ea0baf5919932c148aeb4cc9f9[b[0]], e = (a.pageX - this.__v314385c9a8894d21bf0fc7aed35a23a9.x) * c, f = (a.pageY - this.__v314385c9a8894d21bf0fc7aed35a23a9.y) * c;
this.__v314385c9a8894d21bf0fc7aed35a23a9 = new Point(a.pageX, a.pageY), b[1] -= e, b[2] -= f, A.vf3351ba56d8b7e42f05b30b819a9db80().v8a446954257d072de21a5f3dd4fe736a()
}
}
}, v7b6cc9f055ce04ec9a08228f823d81f9.prototype.v459bd07f26471417484e8e7547eea3a3 = function (a) {
this.__vdcecb0da604458b362570a169fd8087a = !1, this.__v2cbc24296d0f74841ec12e7645afb96e = !1
}, v7b6cc9f055ce04ec9a08228f823d81f9.prototype.onMouseLeave = function (a) {
this.__v2cbc24296d0f74841ec12e7645afb96e = !1, this.__vdcecb0da604458b362570a169fd8087a = !1
}, v7b6cc9f055ce04ec9a08228f823d81f9.prototype.vaa9775f68ead81cc67df45834bab3747 = function (a) {
this.__v2cbc24296d0f74841ec12e7645afb96e = !0
}, v7b6cc9f055ce04ec9a08228f823d81f9.prototype.v30dd1bec82c1eb5ca032b3e45deb9cda = function () {
this.__v2cbc24296d0f74841ec12e7645afb96e = !1, this.__v314385c9a8894d21bf0fc7aed35a23a9 = null
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype = Object.create(Object.prototype), v6b4ac5272bf01d185f13c69ff4aef97f.prototype.constructor = v6b4ac5272bf01d185f13c69ff4aef97f, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v285390b827a70bf011e806788690479d = function () {
return this.selector
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v7bb32ede872f766f53ccebbf3db30b19 = function () {
return this.selector[0]
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.ve85691b5b63e3448836f11c80c8cd359 = function (a) {
a.addClass('disabled'), a.children().removeAttr('href'), a.children().removeAttr('data-toggle')
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v11258acc59d6eda0036523c08ed6de60 = function (a) {
a.removeClass('disabled'), a.children().attr('href', '#'), a.children().attr('data-toggle', 'tab')
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.veb66d914a7e69b296239df5a94b92def = function (a, b) {
this.selector.find('.nav-tabs').children().removeClass('active'), this.selector.find('.tab-pane').removeClass('active'), a.addClass('active'), b.addClass('active')
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v5ffef35eab10b396ab01b33159a7fada = function (a, b) {
a.attr('disabled', !b), a.attr('readonly', !b)
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.vf69c3f9706798495557d0963486a39df = function (a) {
return !a.attr('disabled')
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.vba9825c591d1d67e9047a72f899b8fa8 = function (a) {
return a.prop('checked')
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.vc7602e04497a1923a46014c84ada291d = function (a, b) {
a.prop('checked') != b && (a.prop('checked', b), a.trigger('change'))
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.vc26a27a39cfa603a430408c9a0c148db = function (a) {
return $(a).is(':checked')
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.setChecked = function (a, b) {
a.prop('checked', b)
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v7bb607ef58d58cf897bce533a4fdc10f = function (a) {
return a[0].selectedIndex
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.vf3a390b65c19822fb8d9c96f2a365226 = function (a, b) {
a[0].selectedIndex = b
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v7e9d5b9b982d9636bd3cc3377285cf78 = function (a) {
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.vd16fce483d553a8e50752aa4d402bbf5 = function (a, b) {
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v852d31a31264da31b7235893fee1de99 = function (b) {
var a = this.v6afac641d9d7f22e2370b623a6a1680e(b);
return a.length <= 0 ? null : a[0]
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v6e84cec3c0b5f2bd7ae22f0f735d9287 = function (c, e) {
var b = c.find('option');
for (var a = 0; a < b.length; ++a) {
var d = b.eq(a);
if (d[0].v2043177bc83f00e0ec5ceb6577bcecc4 == e) {
c[0].selectedIndex = a;
return
}
}
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v52c2012e768361cb6c2019bc476e6cba = function (f, e) {
var c = f.find('option').removeAttr('selected');
for (var a = 0; a < c.length; ++a) {
var d = c.eq(a);
for (var b = 0; b < e.length; b++)
if (d[0].v2043177bc83f00e0ec5ceb6577bcecc4 == e[b]) {
d.attr('selected', 'selected');
break
}
}
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v6afac641d9d7f22e2370b623a6a1680e = function (d) {
var b = d.find('option:selected'), c = [];
for (var a = 0; a < b.length; ++a)
c.push(b[a].v2043177bc83f00e0ec5ceb6577bcecc4);
return c
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v9b813bf6e1776cec99fce80155a23b29 = function (b, c) {
var a = b.find('option').filter(function () {
return $(this).html() == c
});
return a.length <= 0 ? -1 : a.index()
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v34c3f2661e88b608601e5075b4492093 = function (d, b, c) {
var a = $('<option></option>');
a.text(c ? c(b).toString() : b.toString()), a[0].v2043177bc83f00e0ec5ceb6577bcecc4 = b, d.append(a)
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.vb7c8fb0701f61a911af2d17f9e4352a8 = function (c, b, d) {
for (var a = 0; a < b.length; ++a)
this.v34c3f2661e88b608601e5075b4492093(c, b[a], d)
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v078973a6dd464588f00435425fcc2c4f = function (d) {
var b = d.find('option'), c = [];
for (var a = 0; a < b.length; ++a)
c.push(b[a].v2043177bc83f00e0ec5ceb6577bcecc4);
return c
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v67cd477a433409ee4dfaff393c847778 = function (a) {
return a.children().length
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v5d070e38161cd39dd0d8a4efb1382bd5 = function () {
var a = [];
a.unshift(this.selector);
while (a.length > 0) {
var b = a.shift(), d = b.attr('id');
d != undefined && (this[d] = b);
var e = b.children().length;
for (var c = 0; c < e; ++c)
a.unshift(b.children().eq(c))
}
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v356bb2f5590f15ae70913efbc29a5306 = function (a) {
return a[0].v1f5864abcb9908b1150e1ed877909d60
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v5243260a16858204db0f2e6754bc1b19 = function (b, a) {
a.placement == undefined && (a.placement = 'right'), a.trigger = 'manual', b[0].v1f5864abcb9908b1150e1ed877909d60 = a, b.tooltip('destroy')
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v4fbd42d8696dc5e0abb18e9250e9ed64 = function (a, b) {
return a[0].v1f5864abcb9908b1150e1ed877909d60[b]
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v5384dd0652c31c955a7dc1bc6fd95441 = function (a, b, c) {
a[0].v1f5864abcb9908b1150e1ed877909d60[b] = c, this.v7f0b7dd82a3006dd1a106fc7844b56a5(a)
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v7f0b7dd82a3006dd1a106fc7844b56a5 = function (a) {
a[0].v1f5864abcb9908b1150e1ed877909d60.v52d4f6b749a428ce2a20c62b6ac5e842 && (a.tooltip('destroy'), a[0].v1f5864abcb9908b1150e1ed877909d60.v52d4f6b749a428ce2a20c62b6ac5e842 = !1)
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v613566f481ee3328cb9c5cd107029891 = function (a, b) {
delete a[0].v1f5864abcb9908b1150e1ed877909d60[b]
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v33d8be2313eb1b4563118a8c0499332f = function (a, c) {
this.v5243260a16858204db0f2e6754bc1b19(a, c);
var b = function (b) {
b.v09692766275012c2e14f303444025651 && b.v09692766275012c2e14f303444025651(a, b);
var d = a.val();
if (b.date != undefined && b.date == 1) {
var e = a.datepicker('getDate');
e == null && (d = '')
}
var c = U.v4858b837be99950a820cae225937e096(d, b), f = c.v974f4a51d654cc6f65e2d86b06607264;
return c.vf32b3931c79c80d602081f229c54e704 == 0 ? (b.title = f, b.template = '<div class="tooltip" style="white-space: normal;" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>', b.v52d4f6b749a428ce2a20c62b6ac5e842 || (b.v52d4f6b749a428ce2a20c62b6ac5e842 = !0, b.v90ceff72fefd37d0754ae92510e0fbd2 = !1, a.tooltip('destroy'), a.tooltip(b)), b.v90ceff72fefd37d0754ae92510e0fbd2 ? a.siblings('.tooltip').find('.tooltip-inner').html(b.title) : (b.v90ceff72fefd37d0754ae92510e0fbd2 = !0, a.attr('title', b.title).tooltip('fixTitle').tooltip('show'))) : b.v90ceff72fefd37d0754ae92510e0fbd2 && (b.v90ceff72fefd37d0754ae92510e0fbd2 = !1, a.tooltip('hide')), b.vd0167d3fb88fb4fb27ac1ba7defae4a6 && b.vd0167d3fb88fb4fb27ac1ba7defae4a6(a, b, c), c
};
a.keyup(function () {
b(a[0].v1f5864abcb9908b1150e1ed877909d60)
}), a.change(function () {
b(a[0].v1f5864abcb9908b1150e1ed877909d60)
}), a[0].v34734ec681e515a14d735941132593e7 = function () {
return b(a[0].v1f5864abcb9908b1150e1ed877909d60)
}, this.va4da3c3d0aab9277b87a4d4fff75fc6b.push(a)
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v1395419cbf035ab8c309778a80f9ef21 = function (a) {
_.remove(this.va4da3c3d0aab9277b87a4d4fff75fc6b, function (b) {
return b == a
}), a.tooltip('destroy')
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v4858b837be99950a820cae225937e096 = function (d) {
for (var a = 0; a < this.va4da3c3d0aab9277b87a4d4fff75fc6b.length; ++a) {
var b = this.va4da3c3d0aab9277b87a4d4fff75fc6b[a];
if (b == d) {
var c = b.input[0].v34734ec681e515a14d735941132593e7();
return c
}
}
return null
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v067928f001d9165976f0c43cce82e925 = function (f) {
var a = {};
a.va4da3c3d0aab9277b87a4d4fff75fc6b = [];
for (var b = 0; b < this.va4da3c3d0aab9277b87a4d4fff75fc6b.length; ++b) {
var c = this.va4da3c3d0aab9277b87a4d4fff75fc6b[b], d = !0;
if (f && f.indexOf(c) == -1 && (d = !1), d) {
var e = c[0].v34734ec681e515a14d735941132593e7();
e.vf32b3931c79c80d602081f229c54e704 != 1 && a.va4da3c3d0aab9277b87a4d4fff75fc6b.push(e)
}
}
return a.vf32b3931c79c80d602081f229c54e704 = a.va4da3c3d0aab9277b87a4d4fff75fc6b.length <= 0, a
}, v6b4ac5272bf01d185f13c69ff4aef97f.prototype.v94e91b0cb1d8550cd31fccf294bff404 = function (e) {
var c = {};
c.va4da3c3d0aab9277b87a4d4fff75fc6b = [];
for (var a = 0; a < this.va4da3c3d0aab9277b87a4d4fff75fc6b.length; ++a) {
var b = this.va4da3c3d0aab9277b87a4d4fff75fc6b[a];
if (b == e) {
var d = U.v4858b837be99950a820cae225937e096(b.val(), b[0].v1f5864abcb9908b1150e1ed877909d60);
return d.value
}
}
throw new Error('validator not found for input')
}, va1337b7722f001e1521f5c837ab1b7fe.prototype = Object.create(v6b4ac5272bf01d185f13c69ff4aef97f.prototype), va1337b7722f001e1521f5c837ab1b7fe.prototype.constructor = va1337b7722f001e1521f5c837ab1b7fe, va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1 = [], va1337b7722f001e1521f5c837ab1b7fe.v470c7d726fb165a31d6577c7ca1b3b29 = 0, va1337b7722f001e1521f5c837ab1b7fe.v84fbda0bd9cff2e014d94726ce158786 = 1, va1337b7722f001e1521f5c837ab1b7fe.v2275d44d1a98fd65546bb9857a3bf7b2 = 2, va1337b7722f001e1521f5c837ab1b7fe.v9d3aa88eb558ff7e4174a128c3c25296 = 0, va1337b7722f001e1521f5c837ab1b7fe.v7e4ade658726e8c8fc83b2e45410c000 = 1, va1337b7722f001e1521f5c837ab1b7fe.v97abac90352903cdfe7ffccc2945507d = 2, va1337b7722f001e1521f5c837ab1b7fe.prototype.vcf93fcf0f5393855fb90694252a2268f = function (a) {
var b = this, c = vdc7354c3cd5c7774f4dbfeba28eba934.instance.v676458f57ceed967a89ada8ec1094bd5(this.v68a99d5a7a139fd8145f1064e76c6191);
if (!c)
throw new Error('Could not find HTMLResource \'' + this.v68a99d5a7a139fd8145f1064e76c6191 + '\' for form.');
if (this.selector = c.v41fb2313bad45cc7103705bb54a9e659(), a.v4fbdb061d4fae50846ca6cf951660e59 != undefined && a.v4fbdb061d4fae50846ca6cf951660e59 == 0 && (a.open = function () {
$('.ui-dialog-titlebar-close', this.parentNode).hide()
}), a.beforeClose = function () {
return b.v9f71ad7d66a9f55bc423c8292b914e5d()
}, a.close = function () {
b.onClose(), b.vcdc70c2d6a94c0a67f62bf0915b763fe()
}, a.resize = function (a, c) {
b.v9d64840cebc1b4e562cfdb19eb6321a5(a, c)
}, a.focus = function (a, c) {
b.v1c023593be058b46a959e1edcc526767()
}, a.autoOpen = !1, a.vee84f177478b4a76aabab5e7b454b183 != undefined && (this.vee84f177478b4a76aabab5e7b454b183 = a.vee84f177478b4a76aabab5e7b454b183), a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a != undefined && (this.v1c30edbc2b3d03a6d4bcbcbace3e1c1a = a.v1c30edbc2b3d03a6d4bcbcbace3e1c1a), a.vacc20e29cd500930597f6ed841b41cb5 != undefined && (this.vacc20e29cd500930597f6ed841b41cb5 = a.vacc20e29cd500930597f6ed841b41cb5), a.va90278d5408d58739d90a5f6f484529d != undefined && (a.va90278d5408d58739d90a5f6f484529d ? this.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v470c7d726fb165a31d6577c7ca1b3b29 : this.vee84f177478b4a76aabab5e7b454b183 = va1337b7722f001e1521f5c837ab1b7fe.v84fbda0bd9cff2e014d94726ce158786), a.modal === !0 && (this.v271e95354506edc0a553779dc28a89b0 = !0), this.vce65e93a268bd2418ae9996ec7038b5b()) {
this.selector.appendTo(vdc7354c3cd5c7774f4dbfeba28eba934.instance.canvas.parent()), this.selector.dialog(a);
try {
this.opener = $($.ui.safeActiveElement(this.selector[0].ownerDocument))
} catch (a) {
}
this.selector[0].i = this, this.v5d070e38161cd39dd0d8a4efb1382bd5()
}
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.show = function () {
if (this.vce65e93a268bd2418ae9996ec7038b5b()) {
va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1.push(this), _.isFunction(this.v34f5384c83a82551cfd1d0edd624eda4) && this.v34f5384c83a82551cfd1d0edd624eda4(), this.selector.dialog('open'), this.v4b7a1ad9ca6f5f6625a87dce7737f00f(), this.vf014c7bf764da38e862e437065bab1ff();
var c = function (a) {
if ($(a.relatedTarget).parent()) {
var b = $(a.relatedTarget).parent().attr('id');
b && $(a.relatedTarget).parents('.nav-tabs').find('#' + b).trigger('kmi_lostFocus')
}
};
if ($('.nav-tabs > li').on('shown', c), $('.nav-tabs > li').on('shown.bs.tab', c), this.selector.parent().find('.ui-dialog-title').attr('role', 'heading').attr('aria-level', 2), this.selector.parent().find('.ui-icon-closethick').attr('aria-hidden', !0), this.selector.find(':tabbable').length > 0) {
var b = this.selector.find(':tabbable').first();
b.attr('type') == 'radio' && (b = this.selector.find(':checked').first()), b.focus()
} else
this.selector.parent().find(':tabbable').length > 0 && this.selector.parent().find(':tabbable').first().focus();
var e = this.selector.find('input').length > 0 || this.selector.find('select').length > 0 || this.selector.find('button').length > 0 || this.selector.find('a').length > 0, d = this.selector.parent().find('.ui-dialog-buttonpane');
return e && d.length > 0 && d.prepend('<div style=\'float:left\'>' + A.vf3351ba56d8b7e42f05b30b819a9db80().vc9944742a036e628fc4c50721d678c5c() + '</div>'), this.v271e95354506edc0a553779dc28a89b0 !== !0 && U.v2aa5ce66f415b83317f43962b555e779(this.selector), !0
}
for (var a = 0; a < va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1.length; ++a)
if (this.compare(va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1[a])) {
va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1[a].moveToTop();
break
}
return !1
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.vf014c7bf764da38e862e437065bab1ff = function () {
$('.nav-tabs > li').each(function () {
var b = $(this).attr('id');
if (A.vf3351ba56d8b7e42f05b30b819a9db80().isDisabled(b)) {
if ($(this).hasClass('active')) {
$(this).removeClass('active');
var a = $(this).next();
a.length > 0 && (a.find('a').tab('show'), a.addClass('active'))
}
$(this).addClass('disabled'), $(this).find('a').removeAttr('data-toggle')
}
})
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.vc4ef4eb159eb9c5d9bd6a57eac76c029 = function () {
if (vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.v5094d8a32726e9020d2139a88cc1e9c4() && this.vacc20e29cd500930597f6ed841b41cb5 == 1)
this.close();
else
switch (this.v1c30edbc2b3d03a6d4bcbcbace3e1c1a) {
case va1337b7722f001e1521f5c837ab1b7fe.v9d3aa88eb558ff7e4174a128c3c25296:
this.close();
break;
case va1337b7722f001e1521f5c837ab1b7fe.v7e4ade658726e8c8fc83b2e45410c000:
break;
case va1337b7722f001e1521f5c837ab1b7fe.v97abac90352903cdfe7ffccc2945507d:
this.update != undefined && this.update();
break
}
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.vce65e93a268bd2418ae9996ec7038b5b = function () {
var b = [];
for (var a = 0; a < va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1.length; ++a)
this.compare(va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1[a]) && b.push(va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1[a]);
switch (this.vee84f177478b4a76aabab5e7b454b183) {
case va1337b7722f001e1521f5c837ab1b7fe.v470c7d726fb165a31d6577c7ca1b3b29:
return !0;
case va1337b7722f001e1521f5c837ab1b7fe.v84fbda0bd9cff2e014d94726ce158786:
return b.length <= 0;
case va1337b7722f001e1521f5c837ab1b7fe.v2275d44d1a98fd65546bb9857a3bf7b2:
for (var a = 0; a < b.length; ++a) {
var c = b[a];
c.close()
}
return !0;
default:
console.log('Invalid setting for newInstanceBehavior!');
break
}
return !1
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.compare = function (a) {
return this.v68a99d5a7a139fd8145f1064e76c6191 == a.v68a99d5a7a139fd8145f1064e76c6191 ? !0 : this.vdff14bb6c0f3beac6811e0bf3f87cdbe && this.vdff14bb6c0f3beac6811e0bf3f87cdbe == a.vdff14bb6c0f3beac6811e0bf3f87cdbe ? !0 : void 0
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.vc1ae7482c8e7ddac268c72da02c5e8f3 = function (b, c) {
var a = this.selector.dialog('option', 'buttons');
a[b] = c, this.selector.dialog('option', 'buttons', a)
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.vce107a1a43009f48448b0f67c8293b39 = function (b) {
var a = this.selector.dialog('option', 'buttons');
delete a[b], this.selector.dialog('option', 'buttons', a)
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.vf1c702b2a92e9ea6d1bbf850aa4111e8 = function (a) {
this.selector.dialog('option', 'title', a)
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.moveToTop = function () {
this.selector.dialog('moveToTop')
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.position = function (a) {
this.selector.dialog('option', 'position', a)
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.close = function () {
this.selector && this.closed == 0 && (this.selector.trigger('kmi_lostFocus'), this.selector.dialog('isOpen') && this.selector.dialog('close'))
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.vcdc70c2d6a94c0a67f62bf0915b763fe = function () {
if (this.closed = !0, this.selector.remove(), va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1.v6658d41901465458c34d0790e8086649(this), this.vdd7e04e6d8d08021211a37a206e8f713) {
this.vdd7e04e6d8d08021211a37a206e8f713.focus();
return
}
var a = _.last(_.sortBy(va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1, function (a) {
return a.v1d3422447a75b196e3051af3e60a8be3()
}));
a ? a.focus() : this.opener && (this.opener.is(':focusable') ? this.opener.focus() : this.opener.parents('.dropdown-menu').length > 0 && this.opener.parents('.dropdown-menu').siblings('button.dropdown-toggle').focus())
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.vdcbc6ece9b52ff4f1de68f9129078669 = function (a) {
this.vdd7e04e6d8d08021211a37a206e8f713 = a
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.focus = function () {
this.selector.parent().find(':focusable').first().focus()
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.v9d64840cebc1b4e562cfdb19eb6321a5 = function (a, b) {
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.va118e71a9009b114b673b7798935e871 = function () {
return !1
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.v9f71ad7d66a9f55bc423c8292b914e5d = function () {
if (this.vda04e3e0b869d4c6669256dab651d8d1)
return;
if (this.va118e71a9009b114b673b7798935e871()) {
var a = this;
return Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Exit without saving changes to {0} form?', this.selector.dialog('option', 'title')), U.vbacce6a42a9154e1b2ea38c9b107fbb2('Save Changes'), Alert.v7a6e37eae80700365db84b46681c3ba2 | Alert.vddcc157367523e251fa7b7cdb4c4a8b0, function (b) {
b.v5070344edf2c28e233d3519bbc95c4f3 == Alert.v7a6e37eae80700365db84b46681c3ba2 ? (a.vda04e3e0b869d4c6669256dab651d8d1 = !0, SRMessage('Exited form without saving changes.'), a.close()) : (a.vda04e3e0b869d4c6669256dab651d8d1 = !1, SRMessage(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Remaining in {0} form.', a.selector.dialog('option', 'title'))))
}), !1
}
return !0
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.onClose = function () {
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.v1c023593be058b46a959e1edcc526767 = function () {
var c = va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1.clone();
for (var a = 0; a < c.length; ++a) {
var b = c[a];
b !== this && (b.vcf56f459ad4cffa7b2e40b7ffc459845(), b.selector.trigger('kmi_lostFocus'))
}
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.vcf56f459ad4cffa7b2e40b7ffc459845 = function () {
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.v4b9cc64773623adb0c496d526187df8e = function () {
var a = this.selector.find('img[src^=\'images/assets/\']').each(function () {
var a = $(this).attr('src');
a = A.vf3351ba56d8b7e42f05b30b819a9db80().ve7ee6ca34ca649a12c7cbb571140b59a(a), $(this).attr('src', a), $(this).attr('crossorigin', 'anonymous')
})
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.v1d3422447a75b196e3051af3e60a8be3 = function () {
return this.selector.parent().css('z-index')
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.contains = function (a) {
return $.contains(this.selector.parent()[0], a)
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.ve1f602e06702931672ab5872576ca085 = function () {
return [
{
text: 'OK',
click: _.bind(function () {
this.v69c7892c56ec92ff35cedc179368992e() !== !1 && this.close()
}, this),
v1339b2b897dfaf6794fcf0aa9cf0bf11: 'btn btn-default'
},
{
text: 'Cancel',
click: _.bind(function () {
this.close()
}, this),
v1339b2b897dfaf6794fcf0aa9cf0bf11: 'btn btn-default'
}
]
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.vd496218ee3e900b9a490109d2d8237a2 = function () {
return [{
text: 'Cancel',
click: _.bind(function () {
this.close()
}, this),
v1339b2b897dfaf6794fcf0aa9cf0bf11: 'btn btn-default'
}]
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.v1863b84516dc7daf44262b862c096d2a = function () {
return [{
text: 'Close',
click: _.bind(function () {
this.close()
}, this),
v1339b2b897dfaf6794fcf0aa9cf0bf11: 'btn btn-default'
}]
}, va1337b7722f001e1521f5c837ab1b7fe.prototype.v0d54aef058919d153e04ddd5b25562dd = function () {
return [
{
text: 'Refresh',
click: _.bind(function () {
this.refresh()
}, this),
v1339b2b897dfaf6794fcf0aa9cf0bf11: 'btn btn-default'
},
{
text: 'Close',
click: _.bind(function () {
this.close()
}, this),
v1339b2b897dfaf6794fcf0aa9cf0bf11: 'btn btn-default'
}
]
}, v2afb2dbb7629090cd4cf10e612d6687e.prototype = Object.create(v6b4ac5272bf01d185f13c69ff4aef97f.prototype), v2afb2dbb7629090cd4cf10e612d6687e.prototype.constructor = v2afb2dbb7629090cd4cf10e612d6687e, v2afb2dbb7629090cd4cf10e612d6687e.prototype.createElement = function () {
var a = vdc7354c3cd5c7774f4dbfeba28eba934.instance.v676458f57ceed967a89ada8ec1094bd5(this.v68a99d5a7a139fd8145f1064e76c6191);
if (!a)
throw new Error('Could not find HTMLResource \'' + this.v68a99d5a7a139fd8145f1064e76c6191 + '\' for user control.');
this.selector = a.v41fb2313bad45cc7103705bb54a9e659(), this.selector[0].i = this, this.v5d070e38161cd39dd0d8a4efb1382bd5()
}, v2afb2dbb7629090cd4cf10e612d6687e.prototype.create = function () {
return this.createElement(), this.selector
}, v2afb2dbb7629090cd4cf10e612d6687e.prototype.v818bd2c0a84026911fc3df192c53f801 = function (a) {
this.create().appendTo(a), this.v4b7a1ad9ca6f5f6625a87dce7737f00f()
}, v2afb2dbb7629090cd4cf10e612d6687e.prototype.vf7cdeac1c808beb6dd46570a7b09a6b8 = function (a) {
this.selector.append(a)
}, v2afb2dbb7629090cd4cf10e612d6687e.prototype.remove = function () {
this.selector.remove(), this.selector = null
}, Alert.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), Alert.prototype.constructor = Alert, Alert.v7a6e37eae80700365db84b46681c3ba2 = 1, Alert.vddcc157367523e251fa7b7cdb4c4a8b0 = 2, Alert.OK = 4, Alert.v5cbd2f799120510cbe2a2aa871fad325 = 8, Alert.show = function (b, c, d, e) {
var a = new Alert(b, c, d, e);
return a.show(), a
}, Alert.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.v9ecdf1aba46d0207558fcdac4554363c.html(this.v885c4e94b135fc4ba8cf2f2b62d481c4)
}, Alert.prototype.v69254df042a7770c9610fb3bf7ad2aae = function (a, b) {
this.close(), this.v88f73d9ee5dc5f3ce8a7141e109b5e65 != null && (a.v5070344edf2c28e233d3519bbc95c4f3 = b, this.v88f73d9ee5dc5f3ce8a7141e109b5e65(a))
}, FinalAlert.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), FinalAlert.prototype.constructor = FinalAlert, FinalAlert.show = function (b, c, d) {
var a = new FinalAlert(b, c, d);
return a.show(), a
}, FinalAlert.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.v9ecdf1aba46d0207558fcdac4554363c.html(this.v885c4e94b135fc4ba8cf2f2b62d481c4), this.v4943408c45e9521bb4ebd09974fcbbf9 && this.v353bfa3a55fe168b40ecc975d5fa2137.show(), _.defer(_.bind(function () {
this.v1c3c6da207eb1549771145c22af4d3e4.click(function () {
window.close()
}), this.v8af090aacae66b0569c05f0b6acbd11d.click(_.bind(function () {
A.vf3351ba56d8b7e42f05b30b819a9db80().v248544d18570cabc005083c8418f7f5f(), this.close()
}, this))
}, this))
}, v18274a8d2986408d135610cd197406c7.v7a5049e978eec0029550f417ba09dd33 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=', v18274a8d2986408d135610cd197406c7.encode = function (f) {
var h = '', e, d, a = '', i, j, g, b = '', c = 0;
do
e = f.charCodeAt(c++), d = f.charCodeAt(c++), a = f.charCodeAt(c++), i = e >> 2, j = (e & 3) << 4 | d >> 4, g = (d & 15) << 2 | a >> 6, b = a & 63, isNaN(d) ? g = b = 64 : isNaN(a) && (b = 64), h = h + v18274a8d2986408d135610cd197406c7.v7a5049e978eec0029550f417ba09dd33.charAt(i) + v18274a8d2986408d135610cd197406c7.v7a5049e978eec0029550f417ba09dd33.charAt(j) + v18274a8d2986408d135610cd197406c7.v7a5049e978eec0029550f417ba09dd33.charAt(g) + v18274a8d2986408d135610cd197406c7.v7a5049e978eec0029550f417ba09dd33.charAt(b), e = d = a = '', i = j = g = b = '';
while (c < f.length);
return h
}, v18274a8d2986408d135610cd197406c7.decode = function (a) {
var c = '', i, j, f = '', h, g, d, e = '', b = 0, k = /[^A-Za-z0-9\+\/\=]/g;
k.exec(a) && alert('There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, \'+\', \'/\',and \'=\'\nExpect errors in decoding.'), a = a.replace(/[^A-Za-z0-9\+\/\=]/g, '');
do
h = v18274a8d2986408d135610cd197406c7.v7a5049e978eec0029550f417ba09dd33.indexOf(a.charAt(b++)), g = v18274a8d2986408d135610cd197406c7.v7a5049e978eec0029550f417ba09dd33.indexOf(a.charAt(b++)), d = v18274a8d2986408d135610cd197406c7.v7a5049e978eec0029550f417ba09dd33.indexOf(a.charAt(b++)), e = v18274a8d2986408d135610cd197406c7.v7a5049e978eec0029550f417ba09dd33.indexOf(a.charAt(b++)), i = h << 2 | g >> 4, j = (g & 15) << 4 | d >> 2, f = (d & 3) << 6 | e, c += String.fromCharCode(i), d != 64 && (c += String.fromCharCode(j)), e != 64 && (c += String.fromCharCode(f)), i = j = f = '', h = g = d = e = '';
while (b < a.length);
return c
}, v6a3609e38e0f740d9fac571dd04ed021.prototype = Object.create(Error.prototype), v6a3609e38e0f740d9fac571dd04ed021.prototype.constructor = v6a3609e38e0f740d9fac571dd04ed021, v202666b14c292cd4f13504344674eaab.prototype.v5a6bbcb970b1b36dd69dff8e6b2c6506 = function (h, l, j) {
var b = this.__ve29defa7be5f3f73dea822abeebda34c[this.playerName];
b == undefined && (b = {}, this.__ve29defa7be5f3f73dea822abeebda34c[this.playerName] = b);
for (var d in h)
if (h.hasOwnProperty(d)) {
var k = h[d];
b[d] = JSON.parse(JSON.stringify(k))
}
var i = [];
for (var e in this.__ve29defa7be5f3f73dea822abeebda34c)
if (this.__ve29defa7be5f3f73dea822abeebda34c.hasOwnProperty(e)) {
var b = this.__ve29defa7be5f3f73dea822abeebda34c[e], a = {};
a.pn = e, a.v1c4736465f1711e3d798304895ceab97 = '2000-01-01T00:00:00', a.vd4c8af9973d9666ab03ba6d2dc559cf1 = '2000-01-01T00:00:00', a.d = {};
for (var f = 0; f < j.length; ++f) {
var g = j[f], c = b[g];
c == undefined && (c = null), a.d[g] = c
}
a.d = JSON.stringify(a.d), i.push(a)
}
l(i)
}, v202666b14c292cd4f13504344674eaab.prototype.v5427a19b5398ea61c38cc0161d49e370 = function (c, d) {
var b = {}, a = this.resources[c];
a || (a = !0, this.resources[c] = !0), b.result = a, d(b)
}, v202666b14c292cd4f13504344674eaab.prototype.vfc1a054df0abd6d977e023e30608ffbc = function (a) {
this.resources[a] = !1
}, vcdb0cd9da72818ed35cd98969f38d410.prototype.v5a6bbcb970b1b36dd69dff8e6b2c6506 = function (d, e, b) {
var a = {
st: this.sessionToken,
pn: this.playerName,
d: JSON.stringify(d),
ss: A.vf3351ba56d8b7e42f05b30b819a9db80().v303dfbeacae629f9ecf4f0302157e46b
};
b != undefined && (a.v96993ff5ab1afd320edd7f3db0ec091e = b.join('|'));
var c = Math.floor(Math.random() * 1e6);
$.ajax({
url: 'https://' + A.vf3351ba56d8b7e42f05b30b819a9db80().vab916438b99433b6cfab645316a0c12a + '/mp/submit_data/r' + c,
type: 'POST',
data: a,
success: function (a) {
e(a)
},
dataType: 'json'
})
}, vcdb0cd9da72818ed35cd98969f38d410.prototype.v1894d67a4d71befa13fc91d7db1212e5 = function (c) {
var a = JSON.stringify(c), b = Math.floor(Math.random() * 1e6);
$.ajax({
url: 'https://' + A.vf3351ba56d8b7e42f05b30b819a9db80().vab916438b99433b6cfab645316a0c12a + '/mp/submit_data/r' + b,
type: 'POST',
data: {
st: this.sessionToken,
pn: this.playerName,
d: a,
ss: A.vf3351ba56d8b7e42f05b30b819a9db80().v303dfbeacae629f9ecf4f0302157e46b
}
})
}, vcdb0cd9da72818ed35cd98969f38d410.prototype.getData = function (d, b) {
var a = { st: this.sessionToken };
b != undefined && (a.v96993ff5ab1afd320edd7f3db0ec091e = b.join('|'));
var c = Math.floor(Math.random() * 1e4);
$.ajax({
url: 'https://' + A.vf3351ba56d8b7e42f05b30b819a9db80().vab916438b99433b6cfab645316a0c12a + '/mp/get_data?r=' + c,
type: 'POST',
data: a,
success: function (a) {
d(a)
},
dataType: 'json'
})
}, vcdb0cd9da72818ed35cd98969f38d410.prototype.v5427a19b5398ea61c38cc0161d49e370 = function (b, a) {
$.ajax({
url: 'https://' + A.vf3351ba56d8b7e42f05b30b819a9db80().vab916438b99433b6cfab645316a0c12a + '/mp/request_resource',
type: 'POST',
data: {
st: this.sessionToken,
pn: this.playerName,
rk: b,
ss: A.vf3351ba56d8b7e42f05b30b819a9db80().v303dfbeacae629f9ecf4f0302157e46b
},
success: function (b) {
a && a(b)
},
dataType: 'json'
})
}, vcdb0cd9da72818ed35cd98969f38d410.prototype.vfc1a054df0abd6d977e023e30608ffbc = function (a) {
$.post('https://' + A.vf3351ba56d8b7e42f05b30b819a9db80().vab916438b99433b6cfab645316a0c12a + '/mp/release_resource', {
st: this.sessionToken,
pn: this.playerName,
rk: a,
ss: A.vf3351ba56d8b7e42f05b30b819a9db80().v303dfbeacae629f9ecf4f0302157e46b
})
}, frmOpenLocal.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmOpenLocal.prototype.constructor = frmOpenLocal, frmOpenLocal.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
var a = this;
this.v657e233547e467bd8cbdbdecf2825c35.change(function (b) {
a.v6abfcb3255f43cdd06a11969f3f095fb(b)
})
}, frmOpenLocal.prototype.v6abfcb3255f43cdd06a11969f3f095fb = function (e) {
var a = this, d = e.target.files, b = d[0];
if (b) {
var c = new FileReader;
c.onload = function (b) {
return function (c) {
var d = v18274a8d2986408d135610cd197406c7.decode(c.target.result);
a.data = c.target.result;
var b = new vd7ea82ddd10f919b99db37d72fb3e446(d);
a.v2949fe8a06ce52763d1a104ea458dc44 && (b.v2949fe8a06ce52763d1a104ea458dc44 = !0), a.ve1989885fd47612393c1c61db0320f7b = b.vfc705923290e1493d821d1463c187fc6(), a.close(), a.vf67435775159402770d545aa82457a06 && a.vf67435775159402770d545aa82457a06({ v5070344edf2c28e233d3519bbc95c4f3: Alert.OK })
}
}(b), c.readAsText(b)
}
}, frmOpenLocal.prototype.v5b776df159cb39610d8078576ff9214f = function () {
this.close(), this.vf67435775159402770d545aa82457a06 && this.vf67435775159402770d545aa82457a06({ v5070344edf2c28e233d3519bbc95c4f3: Alert.Cancel })
}, frmSaveLocal.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmSaveLocal.prototype.constructor = frmSaveLocal, frmSaveLocal.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.v7a2086ecd9e26d0b851981263e015c7f.attr('href', 'data:text/plain,' + this.v6f4ac900e7928cffc4615307d8cf208f)
}, frmSaveLocal.prototype.v3898fc750e1e36bdae9b3a9aa45be670 = function () {
this.close(), this.vf67435775159402770d545aa82457a06 && this.vf67435775159402770d545aa82457a06({ v5070344edf2c28e233d3519bbc95c4f3: Alert.OK })
}, frmExamineState.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmExamineState.prototype.constructor = frmExamineState, frmExamineState.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.v0f95b8fe81bdea59d865ab1051f7cccf()
}, frmExamineState.prototype.v0f95b8fe81bdea59d865ab1051f7cccf = function () {
var a = '<h3 id=\'top\'>Total size: ' + Math.round(this.vdc34c92295e8ad085220f0c692bc66d2.data.length / 1024) + ' KB, compressed: ' + Math.round(this.vdc34c92295e8ad085220f0c692bc66d2.toString().length / 1024) + ' KB</h3>';
if (a += 'Byte array serialization took: ' + this.vb5d2a32c4761fc128a09277164b80ec4 + ' msec, join: ' + this.v4c80cc635549491929a5e46e963f856f + ', compression: ' + this.v66d0b0cd67fab754b4719399782fa8f5 + ', hash: ' + this.vb99d7dacee21741c1e433b19b9540871 + ' msec.<br><br>', this.vdc34c92295e8ad085220f0c692bc66d2.v82e4da33cfc766f9ea8a685f9d0737aa) {
var b = _.sortBy(_.keys(this.vdc34c92295e8ad085220f0c692bc66d2.v82e4da33cfc766f9ea8a685f9d0737aa), function (a) {
return -this.vdc34c92295e8ad085220f0c692bc66d2.v82e4da33cfc766f9ea8a685f9d0737aa[a]
}, this);
a += 'By Object:<br><table><thead><th>Class</th><th>Total Bytes</th><th>Num Instances</th><th>Ave. Size Per Instance</th><tbody>', _.each(b, function (b) {
a += '<tr><td><a class=\'className\' id=\'' + b + '\'>' + b + '</a></td><td>' + this.vdc34c92295e8ad085220f0c692bc66d2.v82e4da33cfc766f9ea8a685f9d0737aa[b] + '</td><td>' + this.vdc34c92295e8ad085220f0c692bc66d2.vc2c1c8470e3bcfb073e649255cc36179[b] + '</td>', a += '<td>' + Math.round(this.vdc34c92295e8ad085220f0c692bc66d2.v82e4da33cfc766f9ea8a685f9d0737aa[b] / this.vdc34c92295e8ad085220f0c692bc66d2.vc2c1c8470e3bcfb073e649255cc36179[b]) + '</td>', a += '</tr>'
}, this), a += '</tbody></table>Total size of objects:' + _.reduce(this.vdc34c92295e8ad085220f0c692bc66d2.v82e4da33cfc766f9ea8a685f9d0737aa, function (a, b) {
return a + b
}, 0), a += '<div id=\'dialog\'></div>'
}
this.log.html(a);
var c = this.vdc34c92295e8ad085220f0c692bc66d2.v0906ed8e137fdd0575a094bc06550e79;
this.log.find('.className').click(function () {
var a = c[$(this).attr('id')].join('<br>');
$('#dialog').html(a).dialog({ width: 700 })
})
}, frmExamineState.prototype.v7aabf6c3e9d3db56101359ea27896738 = function () {
if (this.vdde5a8933271f36a2d977b839058cde0 = A.vb06c3a859d6038b4515bccc5f1f891ef(), this.vdde5a8933271f36a2d977b839058cde0.__v1a13d53fde3b2bfe0fc777a39ba192f7 || (this.vdde5a8933271f36a2d977b839058cde0.__v1a13d53fde3b2bfe0fc777a39ba192f7 = 1), this.vdde5a8933271f36a2d977b839058cde0.__v9c5d57097ebc0fd619100d2de6fa697c || (this.vdde5a8933271f36a2d977b839058cde0.__v9c5d57097ebc0fd619100d2de6fa697c = {}), this.v85f19a0b7c0c9f20abcae7d41f50194d(this.vdde5a8933271f36a2d977b839058cde0), this.html = [], this.log.html(''), this.diff = {}, this.v3804c629b852298fc2321a3ae609341c = {}, this.vc1b354211a53982e479c51921bc370c6 = {}, _.forIn(this.state.__v9c5d57097ebc0fd619100d2de6fa697c, function (b, a, c) {
this.v3804c629b852298fc2321a3ae609341c[a] = this.state.__v8c776c36a63f1240966a9c121c63519b[a]
}, this), this.v5da8b2078da8c66a76546e4e46dd3f49 = {}, this.v5f0efe6653e23199bcad28ed3af3b050(this.vdde5a8933271f36a2d977b839058cde0, this.state, 'diff'), this.va33b276379cf327af69b470d4ce7610d(this.vdde5a8933271f36a2d977b839058cde0), this.html.length == 0)
this.log.html('no differences');
else {
var a = new vd7ea82ddd10f919b99db37d72fb3e446;
a.v1434c04adb7ea71feffa8c1edddd1d46(this.diff);
var b = a.toString(), c = '';
c += '<h3>Differences, totalling: ' + b.length + ' bytes.</h3>';
var a = new vd7ea82ddd10f919b99db37d72fb3e446;
a.v1434c04adb7ea71feffa8c1edddd1d46(this.v5da8b2078da8c66a76546e4e46dd3f49);
var b = a.toString();
c += '<h3>' + _.size(this.v5da8b2078da8c66a76546e4e46dd3f49) + ' additions, totalling: ' + b.length + ' bytes.</h3>', c += '<h3>' + _.size(this.v3804c629b852298fc2321a3ae609341c) + ' objects removed:</h3>', this.log.html(c), _.each(this.v5da8b2078da8c66a76546e4e46dd3f49, function (a) {
this.state.__v9c5d57097ebc0fd619100d2de6fa697c[a.v6e10fd419736f8bc11e56ca245739b96] = a
}, this), _.forInRight(this.v3804c629b852298fc2321a3ae609341c, function (b, a) {
this.v358f8ef382fd24831fdc376b7f314643(this.state, b), delete this.state.__v9c5d57097ebc0fd619100d2de6fa697c[a], delete this.vdde5a8933271f36a2d977b839058cde0.__v9c5d57097ebc0fd619100d2de6fa697c[a]
}, this), _.forOwn(this.vc1b354211a53982e479c51921bc370c6, function (a, b, c) {
_.each(a, function (a) {
delete this.state.__v9c5d57097ebc0fd619100d2de6fa697c[b][a]
}, this)
}, this), this.v9b4b3d2d776d814aa91754b955db6af1(this.state, this.diff), this.v0143fbce338be16936cbfad2fc76c79b(this.state, this.state.__v9c5d57097ebc0fd619100d2de6fa697c), this.va33b276379cf327af69b470d4ce7610d(this.state), this.v85f19a0b7c0c9f20abcae7d41f50194d(this.state)
}
}, frmExamineState.prototype.v5f0efe6653e23199bcad28ed3af3b050 = function (b, a) {
var c = typeof b;
c == 'object' && (b.__vf36d305d1a89e73147e021636c7b0a2d = !0, _.isDate(b) || delete this.v3804c629b852298fc2321a3ae609341c[b.v6e10fd419736f8bc11e56ca245739b96]);
var d = _.difference(_.keys(a), _.keys(b));
_.each(d, function (b) {
this.vc1b354211a53982e479c51921bc370c6[a.v6e10fd419736f8bc11e56ca245739b96] || (this.vc1b354211a53982e479c51921bc370c6[a.v6e10fd419736f8bc11e56ca245739b96] = []), this.vc1b354211a53982e479c51921bc370c6[a.v6e10fd419736f8bc11e56ca245739b96].v657e3b6ac90f6a38de6cb0a741ad936e(b)
}, this), _.forIn(b, function (b, c, f) {
if (c.substring(0, 2) == '__')
return;
if (b || (_.isUndefined(a[c]) && !_.isUndefined(b) && this.v5b1fe2e107bdbfe3a4d429b5961443cb(a.v6e10fd419736f8bc11e56ca245739b96, c, b), a[c] && this.v5b1fe2e107bdbfe3a4d429b5961443cb(a.v6e10fd419736f8bc11e56ca245739b96, c, b)), b && b.__vf36d305d1a89e73147e021636c7b0a2d) {
(!(a[c] && a[c].v6e10fd419736f8bc11e56ca245739b96) || a[c].v6e10fd419736f8bc11e56ca245739b96 != b.v6e10fd419736f8bc11e56ca245739b96) && this.v5b1fe2e107bdbfe3a4d429b5961443cb(a.v6e10fd419736f8bc11e56ca245739b96, c, '&&' + b.v6e10fd419736f8bc11e56ca245739b96);
return
}
if (b && b.v6e10fd419736f8bc11e56ca245739b96)
if (!this.state.__v9c5d57097ebc0fd619100d2de6fa697c[b.v6e10fd419736f8bc11e56ca245739b96]) {
this.v5b1fe2e107bdbfe3a4d429b5961443cb(a.v6e10fd419736f8bc11e56ca245739b96, c, '&&' + b.v6e10fd419736f8bc11e56ca245739b96), this.v8a02f457ff052bf4cb486d09f8017fff(b);
return
} else if (_.isUndefined(b.ve39bd81adb735bcdfb049cfa5d63874d) || b.ve39bd81adb735bcdfb049cfa5d63874d)
return (!(a[c] && a[c].v6e10fd419736f8bc11e56ca245739b96) || a[c].v6e10fd419736f8bc11e56ca245739b96 != b.v6e10fd419736f8bc11e56ca245739b96) && this.v5b1fe2e107bdbfe3a4d429b5961443cb(a.v6e10fd419736f8bc11e56ca245739b96, c, '&&' + b.v6e10fd419736f8bc11e56ca245739b96), this.v5f0efe6653e23199bcad28ed3af3b050(b, this.state.__v9c5d57097ebc0fd619100d2de6fa697c[b.v6e10fd419736f8bc11e56ca245739b96]);
else {
var d = 'here';
return
}
var e = typeof b;
if (e == 'function')
return;
if (!a || _.isUndefined(a[c]) && !_.isUndefined(b))
this.v5b1fe2e107bdbfe3a4d429b5961443cb(a.v6e10fd419736f8bc11e56ca245739b96, c, b), this.html.v657e3b6ac90f6a38de6cb0a741ad936e(a.v6e10fd419736f8bc11e56ca245739b96 + '[' + c + '] is new2');
else if (e == 'object') {
if (b)
if (_.isUndefined(b.ve39bd81adb735bcdfb049cfa5d63874d) || b.ve39bd81adb735bcdfb049cfa5d63874d)
if (b.v6e10fd419736f8bc11e56ca245739b96)
return this.v5f0efe6653e23199bcad28ed3af3b050(b, this.state.__v9c5d57097ebc0fd619100d2de6fa697c[b.v6e10fd419736f8bc11e56ca245739b96]);
else {
if (_.isDate(b)) {
match = b.getTime() == a[c].getTime(), match || (this.v5b1fe2e107bdbfe3a4d429b5961443cb(a.v6e10fd419736f8bc11e56ca245739b96, c, b), this.html.v657e3b6ac90f6a38de6cb0a741ad936e(a.v6e10fd419736f8bc11e56ca245739b96 + '[' + c + '] changed'));
return
}
return this.v5f0efe6653e23199bcad28ed3af3b050(b, a[c])
}
else {
var d = 'here';
return
}
} else
a[c] != b && (this.v5b1fe2e107bdbfe3a4d429b5961443cb(a.v6e10fd419736f8bc11e56ca245739b96, c, b), this.html.v657e3b6ac90f6a38de6cb0a741ad936e(a.v6e10fd419736f8bc11e56ca245739b96 + '[' + c + '] changed'))
}, this)
}, frmExamineState.prototype.v5b1fe2e107bdbfe3a4d429b5961443cb = function (a, b, d) {
U.startsWith(b, '__');
var c = _.forIn(d, function (a, b, c) {
a && a.v6e10fd419736f8bc11e56ca245739b96 && (c[b] = '&&' + a.v6e10fd419736f8bc11e56ca245739b96)
});
this.diff[a] || (this.diff[a] = {}), this.diff[a][b] = c
}, frmExamineState.prototype.v358f8ef382fd24831fdc376b7f314643 = function (d, e) {
console.log('delete: ' + e);
var a = d, b = e.split('^^'), c = b.pop(), a = d.__v9c5d57097ebc0fd619100d2de6fa697c[b[0]];
if (!a) {
console.log('Could not find object with _oid: ' + b[0] + ' in order to delete key: ' + c);
return
}
delete a[c]
}, frmExamineState.prototype.v8a02f457ff052bf4cb486d09f8017fff = function (object) {
var objectClone = {};
if (object && object.constructor) {
var constructorName = vd7ea82ddd10f919b99db37d72fb3e446.prototype.v407b56b428f04aaca26e7728abdd8299(object);
objectClone = eval('new ' + constructorName + '()');
var keysToDelete = _.difference(_.keys(objectClone), _.keys(object));
_.each(keysToDelete, function (a) {
delete objectClone[a]
}, this)
}
object && object.v6e10fd419736f8bc11e56ca245739b96 && (this.state.__v9c5d57097ebc0fd619100d2de6fa697c[object.v6e10fd419736f8bc11e56ca245739b96] || (this.v5da8b2078da8c66a76546e4e46dd3f49[object.v6e10fd419736f8bc11e56ca245739b96] = objectClone), delete this.v3804c629b852298fc2321a3ae609341c[object.v6e10fd419736f8bc11e56ca245739b96]), _.forIn(object, function (a, b, c) {
if (objectClone[b] = a, a && a.v6e10fd419736f8bc11e56ca245739b96 && (objectClone[b] = '&&' + a.v6e10fd419736f8bc11e56ca245739b96, this.state.__v9c5d57097ebc0fd619100d2de6fa697c[a.v6e10fd419736f8bc11e56ca245739b96])) {
delete this.v3804c629b852298fc2321a3ae609341c[a.v6e10fd419736f8bc11e56ca245739b96];
return
}
if (typeof a == 'object') {
if (a && a.v6e10fd419736f8bc11e56ca245739b96 && this.v5da8b2078da8c66a76546e4e46dd3f49[a.v6e10fd419736f8bc11e56ca245739b96])
return;
this.v8a02f457ff052bf4cb486d09f8017fff(a)
}
}, this)
}, frmExamineState.prototype.v9b4b3d2d776d814aa91754b955db6af1 = function (a, b, c) {
_.forIn(this.diff, function (b, c) {
_.forIn(b, function (b, d) {
a.__v9c5d57097ebc0fd619100d2de6fa697c[c][d] = b
})
})
}, frmExamineState.prototype.v0143fbce338be16936cbfad2fc76c79b = function (a, b) {
a.__vf36d305d1a89e73147e021636c7b0a2d = !0, _.forIn(a, function (a, d, e) {
if (_.isString(a) && a.substring(0, 2) == '&&') {
var c = parseInt(a.substring(2));
e[d] = b[c]
}
typeof a == 'object' && a && !a.__vf36d305d1a89e73147e021636c7b0a2d && (_.isUndefined(a.__v8a8a86cf309def9e2bcbcd7c3d66995f) || a.__v8a8a86cf309def9e2bcbcd7c3d66995f) && this.v0143fbce338be16936cbfad2fc76c79b(a, b)
}, this)
}, frmExamineState.prototype.va33b276379cf327af69b470d4ce7610d = function (a) {
delete a.__vf36d305d1a89e73147e021636c7b0a2d, (_.isUndefined(a.ve39bd81adb735bcdfb049cfa5d63874d) || a.ve39bd81adb735bcdfb049cfa5d63874d) && _.forIn(a, function (a, c, d) {
if (a && a.__vf36d305d1a89e73147e021636c7b0a2d) {
var b = typeof a;
b == 'object' && this.va33b276379cf327af69b470d4ce7610d(a)
}
}, this)
}, frmExamineState.prototype.v85f19a0b7c0c9f20abcae7d41f50194d = function (a) {
a.__v9c5d57097ebc0fd619100d2de6fa697c = {}, this.v98e9f759daf5b5c65e1869ca5f7ccf8e(a, '', a), this.va33b276379cf327af69b470d4ce7610d(a)
}, frmExamineState.prototype.v98e9f759daf5b5c65e1869ca5f7ccf8e = function (a, c, b) {
_.isDate(a) || (a.v6e10fd419736f8bc11e56ca245739b96 ? b.__v1a13d53fde3b2bfe0fc777a39ba192f7 = Math.max(b.__v1a13d53fde3b2bfe0fc777a39ba192f7, a.v6e10fd419736f8bc11e56ca245739b96 + 1) : a.v6e10fd419736f8bc11e56ca245739b96 = b.__v1a13d53fde3b2bfe0fc777a39ba192f7++, b.__v9c5d57097ebc0fd619100d2de6fa697c[a.v6e10fd419736f8bc11e56ca245739b96] = a, b.__v8c776c36a63f1240966a9c121c63519b[a.v6e10fd419736f8bc11e56ca245739b96] = c), a.__vf36d305d1a89e73147e021636c7b0a2d = !0, (_.isUndefined(a.ve39bd81adb735bcdfb049cfa5d63874d) || a.ve39bd81adb735bcdfb049cfa5d63874d) && _.forIn(a, function (c, d, f) {
if (d.substring(0, 2) == '__')
return;
if (c && !c.__vf36d305d1a89e73147e021636c7b0a2d) {
var e = typeof c;
e == 'object' && this.v98e9f759daf5b5c65e1869ca5f7ccf8e(c, a.v6e10fd419736f8bc11e56ca245739b96 + '^^' + d, b)
}
}, this)
}, frmExamineState.prototype.v3898fc750e1e36bdae9b3a9aa45be670 = function () {
this.close(), this.vf67435775159402770d545aa82457a06 && this.vf67435775159402770d545aa82457a06({ v5070344edf2c28e233d3519bbc95c4f3: Alert.OK })
}, frmRunTo.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmRunTo.prototype.constructor = frmRunTo, frmRunTo.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
var d = this;
vdc7354c3cd5c7774f4dbfeba28eba934.instance.vab3a4c0cd27ac1f3b0d6ad180e6a5f55();
var c = vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.now, a = vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.v68c3f6ce5016f834492128297f830518, b = c.v38de1ba283163e851bc4e2af0ac6993c(1);
if (vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.settings.RunToOffsetIntoDayInMinutes != undefined) {
var e = c.getHours() * 60 + c.getMinutes();
e < vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.settings.RunToOffsetIntoDayInMinutes && (b = c)
}
a < KMDate.v7de0e242fb310ded4c773006026bd708 || (a = b), this.v8d6e7890b2a9fe5280ecd518a71cc476.datepicker({
min: new KMDate(b.getFullYear(), b.getMonth(), b.getDate(), 0, 0, 0, 0).vfb9030c09aa3168e145c744dda468094(),
inputFormat: 'M/d/y',
outputFormat: 'MM/dd/yyyy',
inline: this.vf5f0169ea04556748060baebf16cbcf5,
onUpdate: function () {
d.vcf5c749057a81545c2eac4fe3cd80441()
}
}), this.v8d6e7890b2a9fe5280ecd518a71cc476.datepicker('setDate', new Date(a.getFullYear(), a.getMonth(), a.getDate(), 0, 0, 0, 0)), this.v8d6e7890b2a9fe5280ecd518a71cc476.keydown(function (a) {
a.keyCode == $.ui.keyCode.ENTER && d.vcf5c749057a81545c2eac4fe3cd80441()
}), this.v8d6e7890b2a9fe5280ecd518a71cc476.focus()
}, frmRunTo.prototype.vfbd877a9a6b9e4f1cd8537a0a9ac5312 = function () {
this.vf5f0169ea04556748060baebf16cbcf5.find('.curDay').focus()
}, frmRunTo.prototype.vcf5c749057a81545c2eac4fe3cd80441 = function () {
var a = Globalize.parseDate(this.v8d6e7890b2a9fe5280ecd518a71cc476.val());
a ? (a = new KMDate(a), vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.settings.RunToOffsetIntoDayInMinutes != undefined && (a = a.v90523d15d402d84e602b27315d8a05aa(vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.settings.RunToOffsetIntoDayInMinutes)), vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.v68c3f6ce5016f834492128297f830518 = a, vdc7354c3cd5c7774f4dbfeba28eba934.instance.startTime()) : (vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.v68c3f6ce5016f834492128297f830518 = KMDate.v7de0e242fb310ded4c773006026bd708, vdc7354c3cd5c7774f4dbfeba28eba934.instance.vab3a4c0cd27ac1f3b0d6ad180e6a5f55()), this.close()
}, frmRunTo.prototype.vc0aa39d9d93343877f95ce924e8e78d7 = function () {
vdc7354c3cd5c7774f4dbfeba28eba934.instance.vab8be173226632edb127ef1550496f63(), vdc7354c3cd5c7774f4dbfeba28eba934.instance.vab3a4c0cd27ac1f3b0d6ad180e6a5f55(), this.close()
}, frmScoreboard.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmScoreboard.prototype.constructor = frmScoreboard, frmScoreboard.prototype.init = function () {
}, frmScoreboard.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
var a = this;
this.v0e92e387acdce7b6a45b379b57245f2c.text(this.v0cff974062c80bc46855e3e546a3b603), this.vb639cf8bbf082b08cb593eab7c1ae11a.click(function (b) {
a.mode = 0, a.update()
}), this.vb05b51e90201226dc781de1ca63c5a89.click(function (b) {
a.mode = 1, a.update()
}), this.vb639cf8bbf082b08cb593eab7c1ae11a.bootstrap_button('toggle'), this.vb639cf8bbf082b08cb593eab7c1ae11a.focus(), this.update(), A.vf3351ba56d8b7e42f05b30b819a9db80().v2b67c94f99d3fc1f91e2d56e8f3034d8(this.vf974bcd72cd3e9d6a1a105374ef14344)
}, frmScoreboard.prototype.onClose = function () {
A.vf3351ba56d8b7e42f05b30b819a9db80().v756c989e079f19224357a90dd98627c6(this.vf974bcd72cd3e9d6a1a105374ef14344)
}, frmScoreboard.prototype.update = function () {
this.v596900b3bec346108b8f736872321f19.height(this.selector.height() - (this.vf9657f837cf99b3dcad533fa156c9766.height() + this.v0e92e387acdce7b6a45b379b57245f2c.height()));
var d = null, e = [];
if (A.vb06c3a859d6038b4515bccc5f1f891ef() && (d = A.vb06c3a859d6038b4515bccc5f1f891ef().vd0ba25a65abcf3c1ceae6c102f75fc26, d))
for (var f = 0; f < d.length; ++f) {
var a = d[f];
if (this.mode == 0) {
var g = 0;
if (a.d)
for (var b = 0; b < a.d.entityData.length; ++b) {
var c = a.d.entityData[b];
g += c.v2d68d95b3c021a837561471f65e63ae0
}
e.push({
name: a.pn,
active: a.active,
v716a83d298215253ee24322e9458355c: g
})
} else if (this.mode == 1 && a.d)
for (var b = 0; b < a.d.entityData.length; ++b) {
var c = a.d.entityData[b];
e.push({
name: c.name,
active: a.active,
v716a83d298215253ee24322e9458355c: c.v2d68d95b3c021a837561471f65e63ae0
})
}
}
this.plot(e)
}, frmScoreboard.prototype.plot = function (f) {
var b = {
xaxis: {
tickFormatter: function (a, b) {
return U.vd2b41c989db2a5e0c4b05790433f1562(U.round(a / 1e3, 2)) + 'k'
},
max: 0,
color: '#FFFFFF',
font: {
size: 14,
lineHeight: 13,
family: 'Arial,sans-serif',
color: '#444444'
}
},
yaxis: {
ticks: [],
axisLabelUseCanvas: !0,
max: f.length,
font: {
size: 14,
lineHeight: 13,
family: 'Arial,sans-serif',
color: '#444444'
}
}
};
b.yaxis.max = f.length;
var g = [], d = 0, e = 0;
for (var c = 0; c < f.length; c++) {
var a = f[c];
b.yaxis.ticks.push([
c,
a.name
]);
var h;
a.active ? h = a.v716a83d298215253ee24322e9458355c <= 0 ? {
colors: [
'#CC0000',
'#990000'
]
} : {
colors: [
'#0080CC',
'#005299'
]
} : h = {
colors: [
'#E0E0E0',
'#CCCCCC'
]
}, g.push({
data: [[
a.v716a83d298215253ee24322e9458355c,
c
]],
bars: {
show: !0,
horizontal: !0,
align: 'center',
barWidth: .5,
fill: !0,
lineWidth: 0,
fillColor: h
}
}), d = Math.min(d, a.v716a83d298215253ee24322e9458355c), e = Math.max(e, a.v716a83d298215253ee24322e9458355c), b.xaxis.min = Math.min(d, Math.max(0, e)), b.xaxis.max = Math.max(e, Math.max(d, 5e3))
}
$.plot(this.v596900b3bec346108b8f736872321f19, g, b)
}, frmScoreboard.prototype.v9d64840cebc1b4e562cfdb19eb6321a5 = function () {
this.update()
}, frmPlayerList.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmPlayerList.prototype.constructor = frmPlayerList, frmPlayerList.prototype.init = function () {
}, frmPlayerList.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.update(), A.vf3351ba56d8b7e42f05b30b819a9db80().v2b67c94f99d3fc1f91e2d56e8f3034d8(this.vf974bcd72cd3e9d6a1a105374ef14344)
}, frmPlayerList.prototype.v154d3b105d5c835329bb581f9bd8a6d8 = function (f, a) {
var g = f.active ? '#000' : '#ccc', b = $('<div style=\'display: inline-block; margin-right: 15px;\'>');
if (a.icon) {
var h = $('<img style=\'display: block; margin: auto;\'>');
h.attr('src', A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.v4da6408bd7c7694f97449d86c406ca72(f.active ? a.icon : a.v193fb6ead2161bbe9a751c49c79dfea2, 0, 0)), h.appendTo(b)
}
var c = $('<h4>');
c.css('color', g), c.text(a.name), c.appendTo(b);
var d = $('<p>');
d.css('color', g);
var e = '';
e += U.vbacce6a42a9154e1b2ea38c9b107fbb2('<b>Player:</b> {0}<br>', [f.pn]), a.type && (e += U.vbacce6a42a9154e1b2ea38c9b107fbb2('<b>Type:</b> {0}<br>', [a.type])), d.html(e), d.appendTo(b), b.appendTo(this.v72d2ae4f9308d43753cbd77014f3f7c8)
}, frmPlayerList.prototype.update = function () {
var e = this, a = null;
if (this.v72d2ae4f9308d43753cbd77014f3f7c8.empty(), A.vb06c3a859d6038b4515bccc5f1f891ef() && (a = A.vb06c3a859d6038b4515bccc5f1f891ef().vd0ba25a65abcf3c1ceae6c102f75fc26, a))
for (var c = 0; c < a.length; ++c) {
var b = a[c];
if (b.d)
for (var d = 0; d < b.d.entityData.length; ++d) {
var f = b.d.entityData[d];
e.v154d3b105d5c835329bb581f9bd8a6d8(b, f)
}
}
}, frmPlayerList.prototype.onClose = function () {
A.vf3351ba56d8b7e42f05b30b819a9db80().v756c989e079f19224357a90dd98627c6(this.vf974bcd72cd3e9d6a1a105374ef14344)
}, frmSettings.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmSettings.prototype.constructor = frmSettings, frmSettings.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
var a = this;
_.forEach(_.sortBy(_.keys(this.settings)), _.bind(function (b) {
if (this.settings.hasOwnProperty(b)) {
var c = a.settings[b], d = typeof c;
this.vbdd72fea55fb5db9da31d78fa86ec85c(b, c, d)
}
}, this))
}, frmSettings.prototype.vbdd72fea55fb5db9da31d78fa86ec85c = function (d, e, h) {
var b = this, f = $('<tr>'), g = $('<td>');
g.text(d), g.appendTo(f);
var c = $('<td>');
if (h == 'object') {
if (e instanceof KMDate) {
var a = $('<input type=\'text\'>');
a.datepicker({
onClose: function (a) {
b.settings[d] = new KMDate(new Date(a))
}
}), a.datepicker('setDate', e.vbc50332f1ba5a80b703925825221770b()), a.appendTo(c)
}
} else if (h == 'boolean') {
var a = $('<input type=\'checkbox\'>');
e && a.attr('checked', 'checked'), a.click(function () {
b.settings[d] = a.is(':checked')
}), a.appendTo(c)
} else {
var a = $('<input type=\'text\'>');
a.val(e.toString()), a.change(function () {
b.settings[d] = a.val()
}), a.appendTo(c)
}
c.appendTo(f), f.appendTo(b.vf5adda8e556925731450a3bbe9103585)
}, frmSettings.prototype.vcc339b65d62c06e537628bf66e81fae9 = function () {
this.close(), this.vf67435775159402770d545aa82457a06 && this.vf67435775159402770d545aa82457a06({ v5070344edf2c28e233d3519bbc95c4f3: Alert.OK }, this.settings)
}, frmSettings.prototype.v5b776df159cb39610d8078576ff9214f = function () {
this.close(), this.vf67435775159402770d545aa82457a06 && this.vf67435775159402770d545aa82457a06({ v5070344edf2c28e233d3519bbc95c4f3: Alert.OK }, this.settings)
}, frmLicenseInfo.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmLicenseInfo.prototype.constructor = frmLicenseInfo, frmLicenseInfo.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.v00e0af7cd5ec55f70e9e4536009c1d4c.text(A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('licensedToSchool', !1)), this.vd30761d91404fd372c0bd2cecf4e7abe.click(_.bind(function () {
this.expanded || (this.expanded = !0, this.v9b0150e6d798350524f3398e871c2ec7.slideDown(), this.v0f415c10fd40c41fa63235a9801ceec9.click(_.bind(function () {
var a = this.v3233d06add68a7aacce5b5f3d44c21bd.val();
A.vf3351ba56d8b7e42f05b30b819a9db80().serverURL && A.vf3351ba56d8b7e42f05b30b819a9db80().vb46f6f840cb4fedd841219f5971cc159(a), this.close(), Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Thank you - your report has been sent.'))
}, this)))
}, this))
}, frmLicenseInfo.prototype.v5b776df159cb39610d8078576ff9214f = function () {
this.close()
}, frmTestSolution.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmTestSolution.prototype.constructor = frmTestSolution, frmTestSolution.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.v6ef3b65ae1008e8326866fdc452d7d0f.html(this.v5729787667628b498614a02c16848978), this.v50f8a24e1044d102d2d8c18980e05e4b('Started at: ' + new Date().toTimeString())
}, frmTestSolution.prototype.v50f8a24e1044d102d2d8c18980e05e4b = function (a) {
this.results.append('<tr><td>' + A.vb06c3a859d6038b4515bccc5f1f891ef().now.format('M/d/yyyy hh:mm tt') + '</td><td>' + a + '</td></tr>')
}, v3c76d6af163db340a67d351d5924d819.prototype = Object.create(vb3096db423f08ae0cbb30d927ab57506.prototype), v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772 = 8, v3c76d6af163db340a67d351d5924d819.vd889c228d625e996950528bf0b6d7090 = 3, v3c76d6af163db340a67d351d5924d819.vbe6439d3131320cbcdedd0eb912a3643 = 3, v3c76d6af163db340a67d351d5924d819.v94730c0524d61d9eb35f075bd4567535 = 28.83, v3c76d6af163db340a67d351d5924d819.vfdeb1895f1ce50f24368e86fc9df09a4 = 24.6, v3c76d6af163db340a67d351d5924d819.v17c0d558b7076cb9838e881029401e65 = [], v3c76d6af163db340a67d351d5924d819.v1aeff1c4a83a5e6c9ce6fa9025c55ec2 = 45.42, v3c76d6af163db340a67d351d5924d819.vf47058d5d2dc9d44cb67c1b2566be945 = 23, v3c76d6af163db340a67d351d5924d819.v5c2c30c3886c31a85dfe83517d52fdf3 = 49, v3c76d6af163db340a67d351d5924d819.v4ad1f0e63798fd957ab040d73b5323e7 = new Point(342, 69), v3c76d6af163db340a67d351d5924d819.prototype.v8f1c48d7832c76698010d033bb567175 = function () {
this.vf55f9d3dc4fbb69dbab68715d6d4165b = [];
for (var a = 0; a < v3c76d6af163db340a67d351d5924d819.vd889c228d625e996950528bf0b6d7090; a++)
this.vf55f9d3dc4fbb69dbab68715d6d4165b.v657e3b6ac90f6a38de6cb0a741ad936e(new Array(v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772));
for (var b = 0; b < v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772; b++)
for (var c = 0; c < v3c76d6af163db340a67d351d5924d819.vd889c228d625e996950528bf0b6d7090; c++) {
var d = new vf7b53e4b9baa554eb792f977aa65dc4e;
d.init(this, c, b), this.vf55f9d3dc4fbb69dbab68715d6d4165b[c][b] = d
}
for (var a = 0; a < v3c76d6af163db340a67d351d5924d819.v17c0d558b7076cb9838e881029401e65.length; a++) {
var e = v3c76d6af163db340a67d351d5924d819.v17c0d558b7076cb9838e881029401e65[a];
this.v8f52b617d22ed0addfd9664f9dd61254[e.index] = []
}
}, v3c76d6af163db340a67d351d5924d819.prototype.ve9e879b7dd614134bef102016fd0942f = function (a, b) {
return this.vf55f9d3dc4fbb69dbab68715d6d4165b[a][b]
}, v3c76d6af163db340a67d351d5924d819.prototype.v00ea12d41c005c0583af4e5c5fdf6996 = function (a, b, c) {
return this.ve9e879b7dd614134bef102016fd0942f(a, b).v00ea12d41c005c0583af4e5c5fdf6996(c)
}, v3c76d6af163db340a67d351d5924d819.prototype.v11ce0936c733ee3d661845850f7a4cdc = function (a, b, c, d) {
this.ve9e879b7dd614134bef102016fd0942f(a, b).v11ce0936c733ee3d661845850f7a4cdc(c, d)
}, v3c76d6af163db340a67d351d5924d819.prototype.va7954ebcac55127bba54249b60b38a59 = function (a) {
a.v8ace385484b719f290b634ecdb7e8ff8() && !_.contains(this.v8f52b617d22ed0addfd9664f9dd61254[a.v7f63e53c212516fda00def34b8f95749], a) && this.v8f52b617d22ed0addfd9664f9dd61254[a.v7f63e53c212516fda00def34b8f95749].v657e3b6ac90f6a38de6cb0a741ad936e(a), this.v8f52b617d22ed0addfd9664f9dd61254[a.v7f63e53c212516fda00def34b8f95749] = _.sortBy(this.v8f52b617d22ed0addfd9664f9dd61254[a.v7f63e53c212516fda00def34b8f95749], function (a) {
return a.v02b0f7ac7ac56cdfc4b227a15c54595f() * 1e4 + a.vd42ef013d6a876978c46c934fd3f025e() * 100 + a.v93b01c15e341d60e85095b0c5ed26b84()
})
}, v3c76d6af163db340a67d351d5924d819.prototype.vb12de5adec1d9b3d0bc3088305c91b8c = function (a) {
_.isObject(a) && a.v8ace385484b719f290b634ecdb7e8ff8() && (this.v8f52b617d22ed0addfd9664f9dd61254[a.v7f63e53c212516fda00def34b8f95749] = _.without(this.v8f52b617d22ed0addfd9664f9dd61254[a.v7f63e53c212516fda00def34b8f95749], a))
}, v3c76d6af163db340a67d351d5924d819.prototype.vca1deacfc1d41d14daec2e6ad7c6efa0 = function () {
var c = [];
for (var a = 0; a < v3c76d6af163db340a67d351d5924d819.vd889c228d625e996950528bf0b6d7090; a++)
for (var b = 0; b < v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772; b++)
c.v65232cbf984e4899d32f63ff906d72ec(this.ve9e879b7dd614134bef102016fd0942f(a, b).vca1deacfc1d41d14daec2e6ad7c6efa0());
return c
}, v3c76d6af163db340a67d351d5924d819.ve33c15300559ac211511c8acbc14e733 = function (e) {
var c = e.x, d = e.y, a = (2 * d - c - 2 * v3c76d6af163db340a67d351d5924d819.v4ad1f0e63798fd957ab040d73b5323e7.y + v3c76d6af163db340a67d351d5924d819.v4ad1f0e63798fd957ab040d73b5323e7.x) / (2 * v3c76d6af163db340a67d351d5924d819.v5c2c30c3886c31a85dfe83517d52fdf3), b = (2 * d + c - v3c76d6af163db340a67d351d5924d819.v4ad1f0e63798fd957ab040d73b5323e7.x - 2 * v3c76d6af163db340a67d351d5924d819.v4ad1f0e63798fd957ab040d73b5323e7.y) / (2 * v3c76d6af163db340a67d351d5924d819.v1aeff1c4a83a5e6c9ce6fa9025c55ec2);
return a = Math.max(0, Math.min(v3c76d6af163db340a67d351d5924d819.vd889c228d625e996950528bf0b6d7090 - 1, _.round(a))), b = Math.max(0, Math.min(v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772 - 1, _.round(b))), new Point(a, b)
}, v3c76d6af163db340a67d351d5924d819.prototype.v3be49d5996c693b50ec7fc91217aa6f6 = function () {
for (var a = 0; a < v3c76d6af163db340a67d351d5924d819.vd889c228d625e996950528bf0b6d7090; a++)
for (var b = 0; b < v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772; b++)
for (var c = 0; c < v3c76d6af163db340a67d351d5924d819.vbe6439d3131320cbcdedd0eb912a3643; c++)
if (this.v00ea12d41c005c0583af4e5c5fdf6996(a, b, c) == null)
return !1;
return !0
}, v3c76d6af163db340a67d351d5924d819.prototype.ve5de6dfa1c38d9340106d1eb411c0ea7 = function (b, a) {
return a == undefined && (a = vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.random), this.v8f52b617d22ed0addfd9664f9dd61254[b].length == 0 ? null : U.pick(this.v8f52b617d22ed0addfd9664f9dd61254[b], a)
}, v3c76d6af163db340a67d351d5924d819.prototype.v7a9915045775fb20b2ae411fdb6a6e40 = function (a) {
return _.isUndefined(a) ? _.flatten(this.v8f52b617d22ed0addfd9664f9dd61254) : this.v8f52b617d22ed0addfd9664f9dd61254[a]
}, v3c76d6af163db340a67d351d5924d819.prototype.v52c83737fceed433ecb1c27eff51c2ca = function (h, e, f, g, j) {
var i = [], a = 0, b = 0, c = 0, d = 0;
do
h + a < v3c76d6af163db340a67d351d5924d819.vd889c228d625e996950528bf0b6d7090 && e + b < v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772 && (this.vf55f9d3dc4fbb69dbab68715d6d4165b[h + a][e + b].va636a48b2d15573a07710552c7ade395[f + c] == null || j === !0) && i.v657e3b6ac90f6a38de6cb0a741ad936e({
block: this.vf55f9d3dc4fbb69dbab68715d6d4165b[h + a][e + b],
lot: f + c
}), d++, c++, (f + c == v3c76d6af163db340a67d351d5924d819.vbe6439d3131320cbcdedd0eb912a3643 || d == g.footprint.x) && (c = 0, a++, d == g.footprint.x && (a = 0, b++, d = 0));
while (b < g.footprint.y);
return i
}, v3c76d6af163db340a67d351d5924d819.prototype.v9aabd4a0de9f301493fc7a028a34b0be = function (a) {
var b = this.vf55f9d3dc4fbb69dbab68715d6d4165b[a.v5a62e226e7b35be6951ac11c61e2e772][a.ve8340a8ce9f7aadfc403aadb8fd4254c].va636a48b2d15573a07710552c7ade395[a.va6adc94daf37c44010ed596b67bba0b8];
return b == null ? 0 : b.v8779877904cbdb3f6d302edade8b3ab9()
}, v3c76d6af163db340a67d351d5924d819.transform = function (c, d, e) {
var a = c * v3c76d6af163db340a67d351d5924d819.v5c2c30c3886c31a85dfe83517d52fdf3;
a += e * v3c76d6af163db340a67d351d5924d819.vf47058d5d2dc9d44cb67c1b2566be945;
var b = d * v3c76d6af163db340a67d351d5924d819.v1aeff1c4a83a5e6c9ce6fa9025c55ec2;
return new Point(v3c76d6af163db340a67d351d5924d819.v4ad1f0e63798fd957ab040d73b5323e7.x - a + b, v3c76d6af163db340a67d351d5924d819.v4ad1f0e63798fd957ab040d73b5323e7.y + a / 2 + b / 2)
}, v3c76d6af163db340a67d351d5924d819.prototype.vf597ef4fdd3c5c76a8a379746f9f6a2d = function (a, h) {
a || (a = A.vb06c3a859d6038b4515bccc5f1f891ef().random);
var f = U.pick(h, a), b = [], g = 0;
if (a.next(4) == 0) {
do
var d = f.y + a.next(7) + a.next(7) + a.next(7) - 9;
while ((d < 1 || d >= v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772) && g++ < 100);
b = [
new Point(0, d + 0),
new Point(v3c76d6af163db340a67d351d5924d819.vd889c228d625e996950528bf0b6d7090 - 1.3, d + 0)
]
} else {
do
var e = f.x + a.next(3) + a.next(5) + a.next(5) - 5;
while ((e < 1 || e > v3c76d6af163db340a67d351d5924d819.vd889c228d625e996950528bf0b6d7090) && g++ < 100);
b = [
new Point(e - .48, 0),
new Point(e - .48, v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772 - .9)
]
}
a.next(2) == 0 && b.reverse();
for (var c = 0; c < 2; c++)
b[c] = v3c76d6af163db340a67d351d5924d819.transform(b[c].x, b[c].y, 0);
return b
}, v3c76d6af163db340a67d351d5924d819.prototype.vb3b7acd095dd28724d7e858f7139f7b4 = function (c, d) {
for (var a = 0; a < c; a++) {
var b = new v220cf8502cbf99285772e71b887f94d8;
b.init(a, d), A.vb06c3a859d6038b4515bccc5f1f891ef().ve228716930a74707502fc08780fb4fcc(b, v26eec6ff9a97369555cb05732e4e6c77.vcd6a28a29317400de1fe2c45637db8ce), this.v034c205437829b89bc263f598755d088.v657e3b6ac90f6a38de6cb0a741ad936e(b)
}
}, v3c76d6af163db340a67d351d5924d819.prototype.v91b27d1661953ba75d56e2984ad64f27 = function (a, b) {
var c = v3c76d6af163db340a67d351d5924d819.transform(a.v02b0f7ac7ac56cdfc4b227a15c54595f(), a.vd42ef013d6a876978c46c934fd3f025e(), a.v93b01c15e341d60e85095b0c5ed26b84()), d = v3c76d6af163db340a67d351d5924d819.transform(b.v02b0f7ac7ac56cdfc4b227a15c54595f(), b.vd42ef013d6a876978c46c934fd3f025e(), b.v93b01c15e341d60e85095b0c5ed26b84()), e = U.v84eedb61e1366b8609056884e40b965e(c, d);
return e
}, vdef370b7d052efa734ec16484bdb8964.prototype = Object.create(v7b6cc9f055ce04ec9a08228f823d81f9.prototype), vdef370b7d052efa734ec16484bdb8964.prototype.constructor = vdef370b7d052efa734ec16484bdb8964, vdef370b7d052efa734ec16484bdb8964.prototype.v457d199922fd988b2ff40b420240a1a3 = function () {
var a = v7b6cc9f055ce04ec9a08228f823d81f9.prototype.v457d199922fd988b2ff40b420240a1a3.call(this);
for (var c = 0; c < v3c76d6af163db340a67d351d5924d819.vd889c228d625e996950528bf0b6d7090; c++)
for (var b = 0; b < v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772; b++)
if (b % 2 == 0) {
var h = U.vd094fbb4adf4ebb4bca2ff15236eb278(v3c76d6af163db340a67d351d5924d819.transform(c + .5, b - 1, 0)), f = new vbe6dfab6e47ff3d003a423092f4c35ef(h, 'cityTile');
f.plane = -2, a.v657e3b6ac90f6a38de6cb0a741ad936e(f)
}
var d = A.vb06c3a859d6038b4515bccc5f1f891ef();
for (var e = 0; e < d.v876f0928c01cae04b999841664e35d8f.v034c205437829b89bc263f598755d088.length; e++) {
var g = d.v876f0928c01cae04b999841664e35d8f.v034c205437829b89bc263f598755d088[e].v0b727f9ab268ffed15095ede8165da63();
g && a.v657e3b6ac90f6a38de6cb0a741ad936e(g)
}
return a.v65232cbf984e4899d32f63ff906d72ec(d.v876f0928c01cae04b999841664e35d8f.vca1deacfc1d41d14daec2e6ad7c6efa0()), a
}, vdef370b7d052efa734ec16484bdb8964.prototype.vcea5a297058bf93c6c792ab5153e8695 = function () {
if (!this.size) {
var a = v3c76d6af163db340a67d351d5924d819.transform(0, 0, 0), b = v3c76d6af163db340a67d351d5924d819.transform(v3c76d6af163db340a67d351d5924d819.vd889c228d625e996950528bf0b6d7090, 0, 1), c = v3c76d6af163db340a67d351d5924d819.transform(0, v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772, 0), d = v3c76d6af163db340a67d351d5924d819.transform(v3c76d6af163db340a67d351d5924d819.vd889c228d625e996950528bf0b6d7090, v3c76d6af163db340a67d351d5924d819.vcbfaaab43ee0d36567b0f05c30c2e772, 3);
this.size = new Point(c.x - b.x, d.y - a.y)
}
return this.size
}, vdef370b7d052efa734ec16484bdb8964.prototype.v3dcc25c2c742743535ada85f9b0c2f0d = function (j, d, l, e, k) {
var h = A.vf3351ba56d8b7e42f05b30b819a9db80().v65c637ea0baf5919932c148aeb4cc9f9[A.vf3351ba56d8b7e42f05b30b819a9db80().vb07e7030a3b4c6b058e9f40806e38ae1()[0]], a = Math.sqrt(1 / h);
a *= 1.5, e == undefined && (e = !0);
var g = U.vd094fbb4adf4ebb4bca2ff15236eb278(v3c76d6af163db340a67d351d5924d819.transform(d.v5a62e226e7b35be6951ac11c61e2e772, d.ve8340a8ce9f7aadfc403aadb8fd4254c, d.va6adc94daf37c44010ed596b67bba0b8)), i = A.vb06c3a859d6038b4515bccc5f1f891ef().v876f0928c01cae04b999841664e35d8f.v9aabd4a0de9f301493fc7a028a34b0be(d), f = new Point(g.x + 2, g.y - i), b = new vbe6dfab6e47ff3d003a423092f4c35ef(f, j + (e ? '' : '-inactive')), c = new vbe6dfab6e47ff3d003a423092f4c35ef(new Point(f.x, f.y - 24 * a), null);
return c.text = l, c.textAlign = 'center', c.font = 8 * a + 'pt arial', c.fillStyle = k ? '#FFF' : e ? '#EEE' : '#BBB', b.drawablesAfter.v657e3b6ac90f6a38de6cb0a741ad936e(c), b.transform = [
a,
0,
0,
a,
-(a - 1) * b.location.x,
-(a - 1) * b.location.y
], b.plane = 3, b
}, v220cf8502cbf99285772e71b887f94d8.prototype = Object.create(vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype), v220cf8502cbf99285772e71b887f94d8.prototype.constructor = v220cf8502cbf99285772e71b887f94d8, v220cf8502cbf99285772e71b887f94d8.prototype.init = function (b, a) {
this.v2573bb836ba15737cfe9e2bd0fc3948d = 'Car', _.isString(a) && (this.v2573bb836ba15737cfe9e2bd0fc3948d = a), this.v00602c11b99a49d289192ceabbdd2f22(new Point(-100, -100)), this.v89b7ffe83a1469f56336257a9eda96a7 = new vcfe882df616f899ab32c02dee5b814a6((b + 1) * 3689)
}, v220cf8502cbf99285772e71b887f94d8.prototype.v43ee41eb6cf6aa8bd1aa2683ed366926 = function () {
if (this.v86164064ae72a6e88d57369bbec634d6 = { dt: vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.settings.SimulatedSecondsPerStep }, !this.initialized || this.move()) {
this.initialized = !0, this.v4221d96d7896ce39db2f1c1ff3502bd4(.1 + this.v89b7ffe83a1469f56336257a9eda96a7.v4b5d032286d7ea0a308827fdb5b94573() * .1);
var a = A.vb06c3a859d6038b4515bccc5f1f891ef().v876f0928c01cae04b999841664e35d8f.vf597ef4fdd3c5c76a8a379746f9f6a2d(this.v89b7ffe83a1469f56336257a9eda96a7);
this.v00602c11b99a49d289192ceabbdd2f22(a[0]), this.v69fead28026a5e82d9cd72e749372012(a)
}
return !1
}, v220cf8502cbf99285772e71b887f94d8.prototype.v0b727f9ab268ffed15095ede8165da63 = function () {
var b = this.v51e76dd6de46c423eae0531c439cc8a3();
this.v292f13bdb684f9d3ffd76c4d798037d5 * this.vd77ea6de02d37c1010c2e6c932744285 > 0 && 'NWSE';
var a = new vbe6dfab6e47ff3d003a423092f4c35ef(this.va104dfefa6670b37275d51b041f7e0bd(), this.v2573bb836ba15737cfe9e2bd0fc3948d);
return a.row = b.index, a.flipX = b.flipX, a
}, v1fb4202428256367dd449ac0a105af71.prototype = Object.create(vb3096db423f08ae0cbb30d927ab57506.prototype), v1fb4202428256367dd449ac0a105af71.prototype.init = function (a, b, c) {
this.block = a, this.va6adc94daf37c44010ed596b67bba0b8 = b, this.v7f63e53c212516fda00def34b8f95749 = c.index
}, v1fb4202428256367dd449ac0a105af71.prototype.v8ace385484b719f290b634ecdb7e8ff8 = function () {
return v3c76d6af163db340a67d351d5924d819.v17c0d558b7076cb9838e881029401e65[this.v7f63e53c212516fda00def34b8f95749]
}, v1fb4202428256367dd449ac0a105af71.prototype.v02b0f7ac7ac56cdfc4b227a15c54595f = function () {
return this.block.v5a62e226e7b35be6951ac11c61e2e772
}, v1fb4202428256367dd449ac0a105af71.prototype.vd42ef013d6a876978c46c934fd3f025e = function () {
return this.block.ve8340a8ce9f7aadfc403aadb8fd4254c
}, v1fb4202428256367dd449ac0a105af71.prototype.v93b01c15e341d60e85095b0c5ed26b84 = function () {
return this.va6adc94daf37c44010ed596b67bba0b8
}, v1fb4202428256367dd449ac0a105af71.prototype.v0e1fccf461780d7592ae24a5a0b86085 = function () {
return {
v5a62e226e7b35be6951ac11c61e2e772: this.block.v5a62e226e7b35be6951ac11c61e2e772,
ve8340a8ce9f7aadfc403aadb8fd4254c: this.block.ve8340a8ce9f7aadfc403aadb8fd4254c,
va6adc94daf37c44010ed596b67bba0b8: this.va6adc94daf37c44010ed596b67bba0b8
}
}, v1fb4202428256367dd449ac0a105af71.prototype.vca1deacfc1d41d14daec2e6ad7c6efa0 = function () {
var a = [], c = U.vd094fbb4adf4ebb4bca2ff15236eb278(v3c76d6af163db340a67d351d5924d819.transform(this.v02b0f7ac7ac56cdfc4b227a15c54595f(), this.vd42ef013d6a876978c46c934fd3f025e(), this.va6adc94daf37c44010ed596b67bba0b8)), b = new vbe6dfab6e47ff3d003a423092f4c35ef(c, 'BuildingSmall' + this.v7f63e53c212516fda00def34b8f95749);
return b.vd47ed85cab7ce2b6d437e7b570eea18a = this, a.v657e3b6ac90f6a38de6cb0a741ad936e(b), a
}, v1fb4202428256367dd449ac0a105af71.prototype.v6d4a3fdcde3793be61287d99043fc8d5 = function () {
return this.v93b01c15e341d60e85095b0c5ed26b84() == 0 && this.v02b0f7ac7ac56cdfc4b227a15c54595f() != 0 ? this.v02b0f7ac7ac56cdfc4b227a15c54595f() - 1 : this.v93b01c15e341d60e85095b0c5ed26b84() == v3c76d6af163db340a67d351d5924d819.vbe6439d3131320cbcdedd0eb912a3643 - 1 ? this.v02b0f7ac7ac56cdfc4b227a15c54595f() : -1
}, v1fb4202428256367dd449ac0a105af71.prototype.v4c9396f4e81289274df463debca333e4 = function () {
var a = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Street {0}, Avenue {1}, Lot {2}', [
this.vd42ef013d6a876978c46c934fd3f025e() + 1,
this.v02b0f7ac7ac56cdfc4b227a15c54595f() + 1,
this.v93b01c15e341d60e85095b0c5ed26b84() + 1
]);
return a
}, v1fb4202428256367dd449ac0a105af71.prototype.v8779877904cbdb3f6d302edade8b3ab9 = function () {
var c = A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.vc6d84ea5b6df6cca18bcc7097994e243(this.vb3fb571416d2d38249f7258304f95eb3(), 0, 0), b = c.height - 10, a = this.v8ace385484b719f290b634ecdb7e8ff8().footprint;
return a != undefined && (a.x == 2 && a.y == 1 && (b -= 20), a.x == 2 && a.y == 2 && (b -= 40)), b
}, v1fb4202428256367dd449ac0a105af71.prototype.vb3fb571416d2d38249f7258304f95eb3 = function () {
return 'building' + this.v7f63e53c212516fda00def34b8f95749
}, vf1919b86f0e2bf15716fb04dcebfef03.prototype = Object.create(Object.prototype), vf1919b86f0e2bf15716fb04dcebfef03.prototype.constructor = vf1919b86f0e2bf15716fb04dcebfef03, vf7b53e4b9baa554eb792f977aa65dc4e.prototype = Object.create(vb3096db423f08ae0cbb30d927ab57506.prototype), vf7b53e4b9baa554eb792f977aa65dc4e.prototype.constructor = vf7b53e4b9baa554eb792f977aa65dc4e, vf7b53e4b9baa554eb792f977aa65dc4e.prototype.init = function (b, c, d) {
this.v876f0928c01cae04b999841664e35d8f = b, this.v5a62e226e7b35be6951ac11c61e2e772 = c, this.ve8340a8ce9f7aadfc403aadb8fd4254c = d, this.va636a48b2d15573a07710552c7ade395 = [];
for (var a = 0; a < v3c76d6af163db340a67d351d5924d819.vbe6439d3131320cbcdedd0eb912a3643; a++)
this.va636a48b2d15573a07710552c7ade395.v657e3b6ac90f6a38de6cb0a741ad936e(null)
}, vf7b53e4b9baa554eb792f977aa65dc4e.prototype.v00ea12d41c005c0583af4e5c5fdf6996 = function (a) {
if (a >= v3c76d6af163db340a67d351d5924d819.vbe6439d3131320cbcdedd0eb912a3643)
throw new Error('lot index out of bounds');
return this.va636a48b2d15573a07710552c7ade395[a]
}, vf7b53e4b9baa554eb792f977aa65dc4e.prototype.v11ce0936c733ee3d661845850f7a4cdc = function (b, a) {
if (b >= v3c76d6af163db340a67d351d5924d819.vbe6439d3131320cbcdedd0eb912a3643)
throw new Error('lot index out of bounds');
a && (a.block = this, a.va6adc94daf37c44010ed596b67bba0b8 = b), this.va636a48b2d15573a07710552c7ade395[b] != null && this.v876f0928c01cae04b999841664e35d8f.vb12de5adec1d9b3d0bc3088305c91b8c(this.va636a48b2d15573a07710552c7ade395[b]), this.va636a48b2d15573a07710552c7ade395[b] = a, a != null && this.v876f0928c01cae04b999841664e35d8f.va7954ebcac55127bba54249b60b38a59(a)
}, vf7b53e4b9baa554eb792f977aa65dc4e.prototype.vca1deacfc1d41d14daec2e6ad7c6efa0 = function () {
var b = [];
for (var a = 0; a < v3c76d6af163db340a67d351d5924d819.vbe6439d3131320cbcdedd0eb912a3643; a++)
this.va636a48b2d15573a07710552c7ade395[a] != null && this.va636a48b2d15573a07710552c7ade395[a] != 'TAKEN' && this.va636a48b2d15573a07710552c7ade395[a].block == this && this.va636a48b2d15573a07710552c7ade395[a].va6adc94daf37c44010ed596b67bba0b8 == a && b.v65232cbf984e4899d32f63ff906d72ec(this.va636a48b2d15573a07710552c7ade395[a].vca1deacfc1d41d14daec2e6ad7c6efa0());
return b
}, vcc018f6c32c853d2b204047d25ba9f40.prototype = Object.create(Object.prototype), vcc018f6c32c853d2b204047d25ba9f40.prototype.constructor = vcc018f6c32c853d2b204047d25ba9f40, vcc018f6c32c853d2b204047d25ba9f40.vb4b1e76d84551f7a29f97ace25d69567 = 0, vcc018f6c32c853d2b204047d25ba9f40.vcb00775c1397b2d767838f42fa496ff8 = 1, vcc018f6c32c853d2b204047d25ba9f40.v7cc1d99113a8bb9ba79b3be3d6aec88e = 2, vcc018f6c32c853d2b204047d25ba9f40.v8e1ed183a49990ff02f9cba3431ed074 = 3, vcc018f6c32c853d2b204047d25ba9f40.v02092ef7b308811687c2d7f038397d91 = 4, vcc018f6c32c853d2b204047d25ba9f40.v950f484757cb359e4f7d5d6e9a45feb4 = 5, vcc018f6c32c853d2b204047d25ba9f40.v7ef0b5978b0dea9453a344d681606a60 = 6, vcc018f6c32c853d2b204047d25ba9f40.vb3b8c1a426bc24eb15294190559ef47c = 7, vcc018f6c32c853d2b204047d25ba9f40.vf53c801c2d5b993c5ba183730d450392 = 8, vcc018f6c32c853d2b204047d25ba9f40.v0d18af128f19fd9478835bf9985617f0 = 9, vcc018f6c32c853d2b204047d25ba9f40.v622015aa476c76f5fca5953eec0c75ec = 'Profit', vcc018f6c32c853d2b204047d25ba9f40.vc458c3cb85445dcf655bac2c50a900cd = 'Revenue', vcc018f6c32c853d2b204047d25ba9f40.v8c877edbaf8121e4f8f9715610a62b05 = 'Retained Earnings', vcc018f6c32c853d2b204047d25ba9f40.prototype.init = function (a, b) {
this.vfee1e68015e9bd7b88173b5da872afbf = a, this.v2b025a5794afbed07d32877fc456aba1 = b
}, vcc018f6c32c853d2b204047d25ba9f40.v85793f5f2390956700f36ee9d5a8eb74 = 208, vcc018f6c32c853d2b204047d25ba9f40.v322179f0379c8aea052a444673ddedb5 = 52, vcc018f6c32c853d2b204047d25ba9f40.va00003a36859836ef1e5a2e392121221 = !0, vcc018f6c32c853d2b204047d25ba9f40.v4b420ee36a2181cb15c2ffcd9319f09f = !0, vcc018f6c32c853d2b204047d25ba9f40.vc972e3128d0b653310e1de6dbe30ee95 = !0, vcc018f6c32c853d2b204047d25ba9f40.vee2c4348d36632518d8449cc0ccb73c9 = 5, vcc018f6c32c853d2b204047d25ba9f40.prototype.v66c179de5e3ab38d60bb4f87ffac4b07 = function (e, b) {
var a;
if (b != vcc018f6c32c853d2b204047d25ba9f40.vb3b8c1a426bc24eb15294190559ef47c && b != vcc018f6c32c853d2b204047d25ba9f40.v0d18af128f19fd9478835bf9985617f0)
a = new v757b5307960cdc71c9f679fba7e9643f, a.v305230c115584f39e45fe43b233245a6(e, b), this.v669d177d208ede3500e0a39dd9a3c3a6.v657e3b6ac90f6a38de6cb0a741ad936e(a), this.v195c988a792edca274e68622fc760def[a.vf77f7513c52c667c65620ce84098d882] = a, b == vcc018f6c32c853d2b204047d25ba9f40.vb4b1e76d84551f7a29f97ace25d69567 && (this.vc43ac56e3055dc09e6a302646c4d16b9 = a), b == vcc018f6c32c853d2b204047d25ba9f40.v7cc1d99113a8bb9ba79b3be3d6aec88e && (this.vb478f44874fb1107a8006a68f176f2d4 = a), b == vcc018f6c32c853d2b204047d25ba9f40.v950f484757cb359e4f7d5d6e9a45feb4 && (this.v82ce779189e619f7698976a9826f01b1 = a), b == vcc018f6c32c853d2b204047d25ba9f40.vcb00775c1397b2d767838f42fa496ff8 && (this.v87022ec558aee30279c00b029173c30d = a), b == vcc018f6c32c853d2b204047d25ba9f40.v7ef0b5978b0dea9453a344d681606a60 && (this.vbf35de25142f7a32dd0ba818f8d04506 = a);
else {
var c = new v757b5307960cdc71c9f679fba7e9643f;
c.v305230c115584f39e45fe43b233245a6(e + ' - Total', b), this.v669d177d208ede3500e0a39dd9a3c3a6.v657e3b6ac90f6a38de6cb0a741ad936e(c), this.v195c988a792edca274e68622fc760def[c.vf77f7513c52c667c65620ce84098d882] = c;
var d = new v757b5307960cdc71c9f679fba7e9643f;
d.v305230c115584f39e45fe43b233245a6(e + ' - Total (units)', b), this.v669d177d208ede3500e0a39dd9a3c3a6.v657e3b6ac90f6a38de6cb0a741ad936e(d), this.v195c988a792edca274e68622fc760def[d.vf77f7513c52c667c65620ce84098d882] = d;
for (var f = 0; f < this.vfee1e68015e9bd7b88173b5da872afbf.length; ++f) {
var g = this.vfee1e68015e9bd7b88173b5da872afbf[f];
a = new v757b5307960cdc71c9f679fba7e9643f, a.v35d61bb816287d863d848f6fcb731a05(e + ' - ' + g, b, c), this.v195c988a792edca274e68622fc760def[a.vf77f7513c52c667c65620ce84098d882] = a, a = new v757b5307960cdc71c9f679fba7e9643f, a.v35d61bb816287d863d848f6fcb731a05(e + ' - ' + g + ' (units)', b, d), this.v195c988a792edca274e68622fc760def[a.vf77f7513c52c667c65620ce84098d882] = a
}
}
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.vab3e4d064b4fa3b7fe2fd2991c858adf = function (c, b, d) {
if (!(b != vcc018f6c32c853d2b204047d25ba9f40.vb3b8c1a426bc24eb15294190559ef47c && b != vcc018f6c32c853d2b204047d25ba9f40.v0d18af128f19fd9478835bf9985617f0))
throw new Error('Sub this.accounts are automatically added for this.accounts of type Product. Do not add them explicitly.');
var a = new v757b5307960cdc71c9f679fba7e9643f;
a.v35d61bb816287d863d848f6fcb731a05(c, b, this.v52e727efec759b60a5e762d83643a53b(d)), this.v195c988a792edca274e68622fc760def[a.vf77f7513c52c667c65620ce84098d882] = a
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v3eb0bfc4a54ba819a4fa12dca0af5f4b = function (c, a) {
if (a != vcc018f6c32c853d2b204047d25ba9f40.vb3b8c1a426bc24eb15294190559ef47c && a != vcc018f6c32c853d2b204047d25ba9f40.v0d18af128f19fd9478835bf9985617f0)
throw new Error('AddProductSubAccount is only to be called for product type accounts.');
var b = _.filter(this.v669d177d208ede3500e0a39dd9a3c3a6, function (b) {
return b.v69b1875258f32af4b786c6d61872b9e9(a)
});
_.forEach(b, _.bind(function (d) {
var e = d.vf77f7513c52c667c65620ce84098d882.split(' - ')[0], b = e + ' - ' + c;
b += _.endsWith(d.vf77f7513c52c667c65620ce84098d882, '(units)') ? ' (units)' : '', this.v195c988a792edca274e68622fc760def[b] || (acc = new v757b5307960cdc71c9f679fba7e9643f, acc.v35d61bb816287d863d848f6fcb731a05(b, a, d), this.v195c988a792edca274e68622fc760def[acc.vf77f7513c52c667c65620ce84098d882] = acc)
}, this))
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v52e727efec759b60a5e762d83643a53b = function (a) {
return this.v195c988a792edca274e68622fc760def[a]
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v4988ecc84cd668e1775d8877fadf0519 = function (j, a, c) {
a == undefined && (a = -1), c == undefined && (c = vcc018f6c32c853d2b204047d25ba9f40.v10f102b4950d3fe810c4eb360f6b0071), a == -1 && (a = vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.vf56cd015c5a33b99cb23af90f132a9cb);
var b = this.v52e727efec759b60a5e762d83643a53b(j);
if (c != vcc018f6c32c853d2b204047d25ba9f40.v10f102b4950d3fe810c4eb360f6b0071) {
var d = (a + 1) * vcc018f6c32c853d2b204047d25ba9f40.v5012f8de9b16e5fcf237cc933f7cdd29[c] - 1;
if (b.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.v02092ef7b308811687c2d7f038397d91 || b.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.v8e1ed183a49990ff02f9cba3431ed074)
return this.v4988ecc84cd668e1775d8877fadf0519(j, d, vcc018f6c32c853d2b204047d25ba9f40.v10f102b4950d3fe810c4eb360f6b0071);
else {
var h = 0;
for (var g = d - vcc018f6c32c853d2b204047d25ba9f40.v5012f8de9b16e5fcf237cc933f7cdd29[c] + 1; g <= d; g++)
h += this.v4988ecc84cd668e1775d8877fadf0519(j, g, vcc018f6c32c853d2b204047d25ba9f40.v10f102b4950d3fe810c4eb360f6b0071);
return h
}
} else if (this.v5562499d2333765b925fba9f68cc3781(a), b.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.v950f484757cb359e4f7d5d6e9a45feb4)
return this.vc43ac56e3055dc09e6a302646c4d16b9.v55b43a29fbf4a56ec446e042dff05911(this.vd63c5be23cef7459144211cf599434b4(a)) - this.vb478f44874fb1107a8006a68f176f2d4.v55b43a29fbf4a56ec446e042dff05911(this.vd63c5be23cef7459144211cf599434b4(a));
else if (b.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.v7ef0b5978b0dea9453a344d681606a60) {
var i = 0;
for (var f = 0; f < this.v669d177d208ede3500e0a39dd9a3c3a6.length; ++f) {
var e = this.v669d177d208ede3500e0a39dd9a3c3a6[f];
e.vf7385935f1dec6f5d5049bd951106dcc == null && e.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vcb00775c1397b2d767838f42fa496ff8 && (i += e.v55b43a29fbf4a56ec446e042dff05911(this.vd63c5be23cef7459144211cf599434b4(a)))
}
return this.v4988ecc84cd668e1775d8877fadf0519('Gross Margin', a, c) - i
} else
return b.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vb3b8c1a426bc24eb15294190559ef47c ? b.v55b43a29fbf4a56ec446e042dff05911(this.v25fecc74e85007c402b8857169448c2d(a)) : b.v55b43a29fbf4a56ec446e042dff05911(this.vd63c5be23cef7459144211cf599434b4(a))
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.vd63c5be23cef7459144211cf599434b4 = function (a) {
return a % vcc018f6c32c853d2b204047d25ba9f40.v85793f5f2390956700f36ee9d5a8eb74
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v25fecc74e85007c402b8857169448c2d = function (a) {
return a % vcc018f6c32c853d2b204047d25ba9f40.v322179f0379c8aea052a444673ddedb5
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v5562499d2333765b925fba9f68cc3781 = function (b) {
if (vcc018f6c32c853d2b204047d25ba9f40.vc972e3128d0b653310e1de6dbe30ee95 && this.v280a21df17c317807ab4472bba9ca825 < b) {
for (var a = this.v280a21df17c317807ab4472bba9ca825 + 1; a <= b; a++)
this.v3bc5ef5101e916a0d72705c44d0e54d0(a);
this.v280a21df17c317807ab4472bba9ca825 = b
}
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v7fe2a83f585bfb43a0eb9dd533f178b3 = function (f, b, g, a) {
this.v5562499d2333765b925fba9f68cc3781(a);
var c = this.v52e727efec759b60a5e762d83643a53b(f), d = this.v52e727efec759b60a5e762d83643a53b(g);
if (c.v35d5cab6bf4e260620f9e061e0b587df(this.vd63c5be23cef7459144211cf599434b4(a), b), d.ve9a896ae968367ecb63ff55ee362c5a4(this.vd63c5be23cef7459144211cf599434b4(a), b), _.isObject(this.va37065ae099a937f78d713d519923dd3)) {
var e = vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.now;
return a != vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.vf56cd015c5a33b99cb23af90f132a9cb && (e = this.ve3a569ff35a6bd8b137dfa6035ca6a29(a)), this.va37065ae099a937f78d713d519923dd3.record(c, b, d, e)
}
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.vbc3f437d147654d5b4047440bac28533 = function (a, b, c) {
return this.v7fe2a83f585bfb43a0eb9dd533f178b3(a, b, c, vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.vf56cd015c5a33b99cb23af90f132a9cb)
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.vd9101d8a583af6b041348e26dd8c3836 = function (i, e, j, d, f, g, h, c) {
this.v5562499d2333765b925fba9f68cc3781(c), this.v7fe2a83f585bfb43a0eb9dd533f178b3(i, e, j, this.vd63c5be23cef7459144211cf599434b4(c));
for (var a = 0; a < g.length; ++a) {
var b = g[a];
this.v52e727efec759b60a5e762d83643a53b(b + ' - ' + d).v35d5cab6bf4e260620f9e061e0b587df(this.v25fecc74e85007c402b8857169448c2d(c), e), this.v52e727efec759b60a5e762d83643a53b(b + ' - ' + d + ' (units)').v35d5cab6bf4e260620f9e061e0b587df(this.v25fecc74e85007c402b8857169448c2d(c), f)
}
for (var a = 0; a < h.length; ++a) {
var b = h[a];
this.v52e727efec759b60a5e762d83643a53b(b + ' - ' + d).ve9a896ae968367ecb63ff55ee362c5a4(this.v25fecc74e85007c402b8857169448c2d(c), e), this.v52e727efec759b60a5e762d83643a53b(b + ' - ' + d + ' (units)').ve9a896ae968367ecb63ff55ee362c5a4(this.v25fecc74e85007c402b8857169448c2d(c), f)
}
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v8992a92a26bac5849e6552f2ba0e51d0 = function (a, b, c, d, e, f, g) {
this.vd9101d8a583af6b041348e26dd8c3836(a, b, c, d, e, f, g, vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.vf56cd015c5a33b99cb23af90f132a9cb)
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v1816818a6d94aaae9ecfb49d841e9636 = function (a, b, c) {
this.vdbb15c9f985eff4f37ce8d6198dca929(a, b, vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.vf56cd015c5a33b99cb23af90f132a9cb, c)
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.vdbb15c9f985eff4f37ce8d6198dca929 = function (d, e, c, b) {
b || (b = !1);
var a = this.v52e727efec759b60a5e762d83643a53b(d);
if (!(b || a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vf53c801c2d5b993c5ba183730d450392 || a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.v0d18af128f19fd9478835bf9985617f0))
throw new Error('Double entry accounting violation.');
this.v5562499d2333765b925fba9f68cc3781(c), a.v35d5cab6bf4e260620f9e061e0b587df(this.vd63c5be23cef7459144211cf599434b4(c), e)
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.ve3f65a7df1f9d0f9a6611de3da3fe4d2 = function (a, b, c) {
this.v65f9f463679eb135f307dd76e6ed9026(a, b, c, vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.vf56cd015c5a33b99cb23af90f132a9cb)
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v65f9f463679eb135f307dd76e6ed9026 = function (a, b, c, d) {
this.vdbb15c9f985eff4f37ce8d6198dca929(a + ' - ' + c, b, d)
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.ve3a569ff35a6bd8b137dfa6035ca6a29 = function (d, a) {
a == undefined && (a = vcc018f6c32c853d2b204047d25ba9f40.v10f102b4950d3fe810c4eb360f6b0071);
var b = (d + 1) * vcc018f6c32c853d2b204047d25ba9f40.v5012f8de9b16e5fcf237cc933f7cdd29[a] - 1, c = this.v2b025a5794afbed07d32877fc456aba1.v38de1ba283163e851bc4e2af0ac6993c(b * 7);
return c
}, vcc018f6c32c853d2b204047d25ba9f40.v10f102b4950d3fe810c4eb360f6b0071 = 0, vcc018f6c32c853d2b204047d25ba9f40.vf57bd813abb8800d42ff11fb5887100a = 1, vcc018f6c32c853d2b204047d25ba9f40.v7b67bb29760a5c631e0e5c38c0d72f89 = 2, vcc018f6c32c853d2b204047d25ba9f40.v5012f8de9b16e5fcf237cc933f7cdd29 = [
1,
13,
52
], vcc018f6c32c853d2b204047d25ba9f40.prototype.v077257639d85762a5ff8fbf878e507ed = function (a) {
switch (a) {
case vcc018f6c32c853d2b204047d25ba9f40.v10f102b4950d3fe810c4eb360f6b0071:
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('Weekly');
case vcc018f6c32c853d2b204047d25ba9f40.vf57bd813abb8800d42ff11fb5887100a:
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('Quarterly');
case vcc018f6c32c853d2b204047d25ba9f40.v7b67bb29760a5c631e0e5c38c0d72f89:
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('Annual');
default:
throw new Error('Bad frequency passed into Frequency name')
}
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v90cbe5a6337286419905a291c1035b33 = function (e, d) {
var b = [];
if (e == U.vbacce6a42a9154e1b2ea38c9b107fbb2('Income Statement')) {
for (var c = 0; c < this.v669d177d208ede3500e0a39dd9a3c3a6.length; ++c) {
var a = this.v669d177d208ede3500e0a39dd9a3c3a6[c];
a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vb4b1e76d84551f7a29f97ace25d69567 && (b.v657e3b6ac90f6a38de6cb0a741ad936e(a), b.v65232cbf984e4899d32f63ff906d72ec(a.vf6c803a8f35f0aca35a58251ee79ef19(d)))
}
if (vcc018f6c32c853d2b204047d25ba9f40.v4b420ee36a2181cb15c2ffcd9319f09f)
for (var c = 0; c < this.v669d177d208ede3500e0a39dd9a3c3a6.length; ++c) {
var a = this.v669d177d208ede3500e0a39dd9a3c3a6[c];
a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.v7cc1d99113a8bb9ba79b3be3d6aec88e && (b.v657e3b6ac90f6a38de6cb0a741ad936e(a), b.v65232cbf984e4899d32f63ff906d72ec(a.vf6c803a8f35f0aca35a58251ee79ef19(d)))
}
vcc018f6c32c853d2b204047d25ba9f40.va00003a36859836ef1e5a2e392121221 && b.v657e3b6ac90f6a38de6cb0a741ad936e(this.v52e727efec759b60a5e762d83643a53b('Gross Margin'));
for (var c = 0; c < this.v669d177d208ede3500e0a39dd9a3c3a6.length; ++c) {
var a = this.v669d177d208ede3500e0a39dd9a3c3a6[c];
a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vcb00775c1397b2d767838f42fa496ff8 && (b.v657e3b6ac90f6a38de6cb0a741ad936e(a), b.v65232cbf984e4899d32f63ff906d72ec(a.vf6c803a8f35f0aca35a58251ee79ef19(d)))
}
b.v657e3b6ac90f6a38de6cb0a741ad936e(this.v52e727efec759b60a5e762d83643a53b(vcc018f6c32c853d2b204047d25ba9f40.v622015aa476c76f5fca5953eec0c75ec))
} else if (e == U.vbacce6a42a9154e1b2ea38c9b107fbb2('Balance Sheet')) {
var a = this.v52e727efec759b60a5e762d83643a53b('Assets');
b.v657e3b6ac90f6a38de6cb0a741ad936e(a), b.v65232cbf984e4899d32f63ff906d72ec(a.vf6c803a8f35f0aca35a58251ee79ef19(d)), a = this.v52e727efec759b60a5e762d83643a53b('Liabilities Plus Equity'), b.v657e3b6ac90f6a38de6cb0a741ad936e(a), b.v65232cbf984e4899d32f63ff906d72ec(a.vf6c803a8f35f0aca35a58251ee79ef19(d))
} else
throw new Error('Statement name incorrect.');
return b
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v9f736b09df37a27f450960da520ae461 = function (b) {
var a = [];
if (b == U.vbacce6a42a9154e1b2ea38c9b107fbb2('Income Statement'))
a.v657e3b6ac90f6a38de6cb0a741ad936e(this.v52e727efec759b60a5e762d83643a53b(vcc018f6c32c853d2b204047d25ba9f40.vc458c3cb85445dcf655bac2c50a900cd)), vcc018f6c32c853d2b204047d25ba9f40.va00003a36859836ef1e5a2e392121221 && a.v657e3b6ac90f6a38de6cb0a741ad936e(this.v52e727efec759b60a5e762d83643a53b('Gross Margin')), a.v657e3b6ac90f6a38de6cb0a741ad936e(this.v52e727efec759b60a5e762d83643a53b(vcc018f6c32c853d2b204047d25ba9f40.v622015aa476c76f5fca5953eec0c75ec));
else if (b == U.vbacce6a42a9154e1b2ea38c9b107fbb2('Balance Sheet'))
a.v657e3b6ac90f6a38de6cb0a741ad936e(this.v52e727efec759b60a5e762d83643a53b('Assets')), a.v657e3b6ac90f6a38de6cb0a741ad936e(this.v52e727efec759b60a5e762d83643a53b('Liabilities')), a.v657e3b6ac90f6a38de6cb0a741ad936e(this.v52e727efec759b60a5e762d83643a53b('Equity'));
else
throw new Error('Statement name incorrect.');
return a
}, vcc018f6c32c853d2b204047d25ba9f40.vb23ba23a1ae48b0fa815a1654d75e2b9 = !1, vcc018f6c32c853d2b204047d25ba9f40.prototype.v2d90502435f9544ddaecaff6aa175267 = function (e, f, i) {
var c = [], d = '';
i && (d = U.vbacce6a42a9154e1b2ea38c9b107fbb2(' (units)'));
for (var a = 0; a < e.length; ++a) {
var g = e[a];
for (var b = 0; b < f.length; ++b) {
var h = f[b];
c.v657e3b6ac90f6a38de6cb0a741ad936e(this.v52e727efec759b60a5e762d83643a53b(g + ' - ' + h + d))
}
}
return c
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v3bc5ef5101e916a0d72705c44d0e54d0 = function (b) {
var e = this.v4988ecc84cd668e1775d8877fadf0519(vcc018f6c32c853d2b204047d25ba9f40.v622015aa476c76f5fca5953eec0c75ec, b - 1, vcc018f6c32c853d2b204047d25ba9f40.v10f102b4950d3fe810c4eb360f6b0071), d = this.vbaad70ec0528f3e819755e134fede8ed();
for (var c = 0; c < d.length; ++c) {
var a = d[c];
a.v5222098d57a01648357a804665f65b82.length == 0 && (a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vb3b8c1a426bc24eb15294190559ef47c ? a.vdfbc1395869023418b63439a83928041(this.v25fecc74e85007c402b8857169448c2d(b)) : a.vdfbc1395869023418b63439a83928041(this.vd63c5be23cef7459144211cf599434b4(b)), a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.v02092ef7b308811687c2d7f038397d91 ? (a.vf77f7513c52c667c65620ce84098d882 == vcc018f6c32c853d2b204047d25ba9f40.v8c877edbaf8121e4f8f9715610a62b05 && a.ve9a896ae968367ecb63ff55ee362c5a4(this.vd63c5be23cef7459144211cf599434b4(b - 1), e), a.ve9a896ae968367ecb63ff55ee362c5a4(this.vd63c5be23cef7459144211cf599434b4(b), a.v55b43a29fbf4a56ec446e042dff05911(this.vd63c5be23cef7459144211cf599434b4(b - 1)))) : a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.v8e1ed183a49990ff02f9cba3431ed074 ? a.v35d5cab6bf4e260620f9e061e0b587df(this.vd63c5be23cef7459144211cf599434b4(b), a.v55b43a29fbf4a56ec446e042dff05911(this.vd63c5be23cef7459144211cf599434b4(b - 1))) : a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vb3b8c1a426bc24eb15294190559ef47c && a.vf77f7513c52c667c65620ce84098d882.startsWith('Inventory') && a.v35d5cab6bf4e260620f9e061e0b587df(this.v25fecc74e85007c402b8857169448c2d(b), a.v55b43a29fbf4a56ec446e042dff05911(this.v25fecc74e85007c402b8857169448c2d(b - 1))))
}
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.vbaad70ec0528f3e819755e134fede8ed = function () {
var a = [];
for (var b = 0; b < this.v669d177d208ede3500e0a39dd9a3c3a6.length; ++b) {
var d = this.v669d177d208ede3500e0a39dd9a3c3a6[b];
a.v657e3b6ac90f6a38de6cb0a741ad936e(d);
var e = d.v7be07a051bc0d7db0aa987a1a33ae465();
for (var c = 0; c < e.length; ++c) {
var f = e[c];
a.v657e3b6ac90f6a38de6cb0a741ad936e(f)
}
}
return a
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v4bccfc3f53d0e3b0d287b9ea0735d0de = function () {
var a = 1;
return v9a411e00a9bf1d4242451eac1df7fb4e(this, this.vbaad70ec0528f3e819755e134fede8ed(), function (b) {
a = Math.max(b.v1beda42b6e299350dd193f50494e1091(), a)
}), a
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v61dffd230c870d02b9af6d5aba51081d = function (e, f, g) {
var d = vcc018f6c32c853d2b204047d25ba9f40.v85793f5f2390956700f36ee9d5a8eb74;
vcc018f6c32c853d2b204047d25ba9f40.vee2c4348d36632518d8449cc0ccb73c9 = vcc018f6c32c853d2b204047d25ba9f40.v85793f5f2390956700f36ee9d5a8eb74, this.vec4de9a24ebc38cf9ba557b5631c5fba = Math.max(0, vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.vf56cd015c5a33b99cb23af90f132a9cb - (d - 1)), this.v1075bb63944fdb63827ec89945769700 = Math.min(d - 1, vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.vf56cd015c5a33b99cb23af90f132a9cb), this.v57a3c8fe83e4816e7f187a6398fdb914 && this.v1075bb63944fdb63827ec89945769700++;
var a = '<thead><tr>';
a += '<th scope=\'col\'><div style=\'width:' + g + 'px\'></div></th>';
for (var b = this.vec4de9a24ebc38cf9ba557b5631c5fba; b < this.vec4de9a24ebc38cf9ba557b5631c5fba + this.v1075bb63944fdb63827ec89945769700; b++)
a += '<th scope=\'col\'>' + this.ve3a569ff35a6bd8b137dfa6035ca6a29(b).v2bdd3cf6f0c76247ea8f4fd7a4d766e6() + '</th>';
a += '</tr></thead>';
for (var c = 0; c < e.length; c++)
a += this.vc46a80807798d1f8c945334e776803a4(e[c], f, !1, 0);
return a
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.vc46a80807798d1f8c945334e776803a4 = function (a, d, e) {
var b = '';
if (a.v5222098d57a01648357a804665f65b82.length == 0 || a.v1beda42b6e299350dd193f50494e1091() == d)
b += this.v696790f83b7d7298450632c35fccb0ac(a, e, !1);
else {
b += U.vbacce6a42a9154e1b2ea38c9b107fbb2('<tr><th scope=\'row\' {0}>{1}</th>', [
this.v29c585ede42ca4239ec5226181725a94(a),
this.vf84d1f7e06722108243cdef77cc240cc(a.v1beda42b6e299350dd193f50494e1091()) + U.vbacce6a42a9154e1b2ea38c9b107fbb2(a.vf77f7513c52c667c65620ce84098d882)
]), _.times(this.v1075bb63944fdb63827ec89945769700, function () {
b += '<td></td>'
}), b += '</tr>';
for (var c = 0; c < a.v5222098d57a01648357a804665f65b82.length; c++)
b += this.vc46a80807798d1f8c945334e776803a4(a.v5222098d57a01648357a804665f65b82[c], d, c == a.v5222098d57a01648357a804665f65b82.length - 1);
b += this.v696790f83b7d7298450632c35fccb0ac(a, !1, !0)
}
return b
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v696790f83b7d7298450632c35fccb0ac = function (b, g, e) {
var a = '';
a += U.vbacce6a42a9154e1b2ea38c9b107fbb2('<tr><th scope=\'row\' {0}>{1}', [
b.v1beda42b6e299350dd193f50494e1091() == 0 || e ? '' : 'class=\'normalWeight\'',
this.vf84d1f7e06722108243cdef77cc240cc(b.v1beda42b6e299350dd193f50494e1091())
]), e && (a += this.vf84d1f7e06722108243cdef77cc240cc(1) + 'Total '), a += U.vbacce6a42a9154e1b2ea38c9b107fbb2(b.vf77f7513c52c667c65620ce84098d882) + '</th>';
var c = '';
g && (c = 'border-bottom:1px solid #000000;'), b.vf77f7513c52c667c65620ce84098d882 == vcc018f6c32c853d2b204047d25ba9f40.v622015aa476c76f5fca5953eec0c75ec && (c = 'border-bottom:3px double #000000;');
for (var d = this.vec4de9a24ebc38cf9ba557b5631c5fba; d < this.vec4de9a24ebc38cf9ba557b5631c5fba + this.v1075bb63944fdb63827ec89945769700; d++) {
var f = this.v4988ecc84cd668e1775d8877fadf0519(b.vf77f7513c52c667c65620ce84098d882, d);
a += '<td style=\'text-align:right;' + c + '\'>' + U.va87f9494373fc9a1f0c5ed714d6ba96e(f) + '</td>'
}
return a += '</tr>', a
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.vf84d1f7e06722108243cdef77cc240cc = function (c) {
var a = '';
for (var b = 0; b < c * 3; b++)
a += '&nbsp;';
return a
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v29c585ede42ca4239ec5226181725a94 = function (a) {
return a.v1beda42b6e299350dd193f50494e1091() == 0 ? '' : ' class=\'normalWeight\''
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v55af0d8315653856dea9d29f6a22a979 = function (a) {
_.each(a, function (b) {
var a = this.v52e727efec759b60a5e762d83643a53b(b.v21dc39d4e5412f934d6e795aa1c51bba);
a.number = b.vddf52674004b9fe31ce0d282564b7aee, a.vb2a0edf81563a8a1fd59d75dcc93a496 = -1, (a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vcb00775c1397b2d767838f42fa496ff8 || a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.v8e1ed183a49990ff02f9cba3431ed074) && (a.vb2a0edf81563a8a1fd59d75dcc93a496 = 1), a.vb980777d18d5039c72fb91b027ec3929 = b.vb980777d18d5039c72fb91b027ec3929
}, this)
}, vcc018f6c32c853d2b204047d25ba9f40.prototype.v2c9c99235221297717b4058d4a3a328e = function () {
var b = this.vbaad70ec0528f3e819755e134fede8ed(), a = _.filter(b, function (a) {
return !_.isUndefined(a.number)
});
return a.sort(function a(b, c) {
return b.number < c.number ? -1 : 1
}), a
}, frmFinancials.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmFinancials.prototype.constructor = frmFinancials, frmFinancials.prototype.init = function (b, a) {
this.vab237991855599e7ca6bdbbb62492a77 = b, a == undefined ? this.vbdb5fc7bf4f53850b7e83d6e5f94a0c9 = 'Income Statement' : this.vbdb5fc7bf4f53850b7e83d6e5f94a0c9 = a
}, frmFinancials.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
var a = this;
this.v6cd848bb514f03c05b018b5ec1a3aed5(), a.update(), this.v629e67b22cb4aa6aae259619729ba1a6 = function () {
a.update()
}, A.vf3351ba56d8b7e42f05b30b819a9db80().v5ce611042744da7d3538deb5bdcc12ab(v26eec6ff9a97369555cb05732e4e6c77.va1ce48edc7a3be21fd777b80847d7fee, this.v629e67b22cb4aa6aae259619729ba1a6)
}, frmFinancials.prototype.v6cd848bb514f03c05b018b5ec1a3aed5 = function () {
var a = this;
this.v7b0b329e393c431e79f9fb5d5472d4dc.on('change click', function (b) {
a.v0ee39f1f3ac8c146615fb52081658575 = 0, a.update()
}), this.vfd79912009162c655c84a86225e96790.on('change click', function (b) {
a.v0ee39f1f3ac8c146615fb52081658575 = 1, a.update()
}), this.v3bbd1cb4f8d4ed4c9b079c1748bfcbe1.on('change click', function (b) {
a.v0ee39f1f3ac8c146615fb52081658575 = 2, a.update()
}), this.v8c02ed4f8f2f5c9214fc94e6a2d152a8.on('click keydown', function (b) {
if (b.type == 'keydown' && b.which != $.ui.keyCode.ENTER && b.which != $.ui.keyCode.SPACE)
return;
a.vaa347016a55ee0134ba5eb789bb0c839 = !0, a.v2cf6ea5314d31e8945abf973b77cb127.html('Showing screen reader compatible view'), a.update(), a.vfd79912009162c655c84a86225e96790.focus()
}), this.vfd79912009162c655c84a86225e96790.focus()
}, frmFinancials.prototype.update = function () {
var a = vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.vfa918617e60589af9429b43b0d8e15f0;
this.va0ee05ef30cc2b792f015227052ca6aa(), this.dataTable && this.dataTable.destroy();
var b = a.vcb519d3d4ef0f894468aab43b30f54f1.v90cbe5a6337286419905a291c1035b33(this.vbdb5fc7bf4f53850b7e83d6e5f94a0c9, 1), c = a.vcb519d3d4ef0f894468aab43b30f54f1.v61dffd230c870d02b9af6d5aba51081d(b, this.v0ee39f1f3ac8c146615fb52081658575, this.vab237991855599e7ca6bdbbb62492a77, this.v6a29bfd9fd1ba7e38b6310158323514e);
this.vc2810281e7d4842726e8b6306ccb7b0e.html(c), this.vf1c702b2a92e9ea6d1bbf850aa4111e8(U.vbacce6a42a9154e1b2ea38c9b107fbb2('{0} for {1}', [
this.vbdb5fc7bf4f53850b7e83d6e5f94a0c9,
a.toString()
])), this.vaa347016a55ee0134ba5eb789bb0c839 ? delete this.dataTable : (this.v0b4ae21c715061581b2d11d5fff0ea76(), this.vb8fa33ff8964ac024e970bae4cbe88a3())
}, frmFinancials.prototype.v0b4ae21c715061581b2d11d5fff0ea76 = function (b) {
_.isUndefined(b) && (b = this.selector.dialog('option', 'width') - 35);
var c = this.vc2810281e7d4842726e8b6306ccb7b0e.find('thead th').length, a = this.vab237991855599e7ca6bdbbb62492a77 + (c - 1) * 120 + 15;
a > b && (a = '100%'), this.selector.find('.financialStatementScopeDiv').width(a), this.dataTable = this.vc2810281e7d4842726e8b6306ccb7b0e.DataTable({
paging: !1,
ordering: !1,
info: !1,
searching: !1,
scrollCollapse: !0,
autoWidth: !1,
columnDefs: [
{
width: this.vab237991855599e7ca6bdbbb62492a77,
targets: 0
},
{
width: '120px',
targets: '_all'
}
],
scrollY: this.selector.height() - this.v7ba5a7651bd3de1121849bedd98b6c31 + 'px',
scrollX: !0,
fixedColumns: { leftColumns: 1 }
})
}, frmFinancials.prototype.v9d64840cebc1b4e562cfdb19eb6321a5 = function (b, a) {
this.va0ee05ef30cc2b792f015227052ca6aa(), va1337b7722f001e1521f5c837ab1b7fe.prototype.v9d64840cebc1b4e562cfdb19eb6321a5.call(this), this.dataTable.destroy(), this.v0b4ae21c715061581b2d11d5fff0ea76(a.size.width - 35), this.vb8fa33ff8964ac024e970bae4cbe88a3()
}, frmFinancials.prototype.va0ee05ef30cc2b792f015227052ca6aa = function () {
var a = this.selector.find(this.v1612c68110904527140ee6554856464c);
if (this.v1265a6afd79cacaef98964fcbede9f24 = !0, this.va25ae82f83c167596040e65ff7104ed2 = 0, a.length > 0) {
var b = a[0].scrollWidth, c = a[0].clientWidth;
this.v1993da1ae0f3a696dbbab740ec9b77e4 = a.scrollLeft(), this.v1265a6afd79cacaef98964fcbede9f24 = this.v1993da1ae0f3a696dbbab740ec9b77e4 + c + 5 > b, this.v13ed7f88a8313e3212042662527d7d23 = a.scrollTop()
}
}, frmFinancials.prototype.vb8fa33ff8964ac024e970bae4cbe88a3 = function () {
if (te = this.selector.find(this.v1612c68110904527140ee6554856464c), te.scrollLeft(this.v1993da1ae0f3a696dbbab740ec9b77e4), te.scrollTop(this.v13ed7f88a8313e3212042662527d7d23), this.v1265a6afd79cacaef98964fcbede9f24) {
var a = te[0].scrollWidth, b = te[0].clientWidth;
te.animate({ scrollLeft: a - b }, { duration: 800 })
}
}, frmFinancials.prototype.onClose = function () {
A.vf3351ba56d8b7e42f05b30b819a9db80().v1ecf63798f8db76009c5fd2174908dd0(v26eec6ff9a97369555cb05732e4e6c77.va1ce48edc7a3be21fd777b80847d7fee, this.v629e67b22cb4aa6aae259619729ba1a6), this.dataTable && this.dataTable.destroy()
}, frmLoan.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmLoan.prototype.constructor = frmLoan, frmLoan.prototype.init = function (a, b, c, d, e, f, g) {
this.v2498c51e695215552332a6ec7599e65d = a, this.v501525636acdcf738fbd8e0089ebaa67 = b, this.v29163e011979fbce30f7a12b301e0384 = c, this.v5c76b818f37d066368db826cc7d36ea0 = d, this.vcb519d3d4ef0f894468aab43b30f54f1 = e, this.vbbcd7880ae7a4cb155130413dcc03673 = f, this.v69cae692ace155bf2f816d6294dc710d = g
}, frmLoan.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.v2bb6294f02dfb095cb70faf1fcc1b82a.html(this.v2498c51e695215552332a6ec7599e65d);
for (var b = 0; b < this.v29163e011979fbce30f7a12b301e0384.length; ++b) {
var c = new frmLoanc2;
c.init(this, this.v29163e011979fbce30f7a12b301e0384[b]), c.v818bd2c0a84026911fc3df192c53f801(this.v62fea0a14d4ae3d94c407c8a9d54446c), this.v4cfb16c24038bc3e21c91ce0a24b844e.push(c)
}
this.v5c76b818f37d066368db826cc7d36ea0.length == 0 && this.ve85691b5b63e3448836f11c80c8cd359(this.vba2aad3eb36314495916b9e768483b07);
for (var b = 0; b < this.v5c76b818f37d066368db826cc7d36ea0.length; ++b) {
var c = new frmLoanc1;
c.init(this.v5c76b818f37d066368db826cc7d36ea0[b]), c.v818bd2c0a84026911fc3df192c53f801(this.v74b7f7eeafb7da0967797f8af8409079), this.v627b5df6e580e91236a3b0c6bac15f53.push(c)
}
var a = this;
this.v196da394ad533eb1fb38841124dcac85.click(function () {
for (var c = 0; c < a.v627b5df6e580e91236a3b0c6bac15f53.length; ++c) {
var b = a.v627b5df6e580e91236a3b0c6bac15f53[c], f = b.v067928f001d9165976f0c43cce82e925();
if (!f.vf32b3931c79c80d602081f229c54e704) {
Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Please review errors'));
return
}
}
var g = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Made payments on the following loans:'), e = [];
for (var c = 0; c < a.v627b5df6e580e91236a3b0c6bac15f53.length; ++c) {
var b = a.v627b5df6e580e91236a3b0c6bac15f53[c], d = b.v94e91b0cb1d8550cd31fccf294bff404(b.vff09d4743d8e9b0972bc9e8fb3b24d01);
b.v651c6ac2db3dd8bc00f16eda5f74d0a4.v3deeefb91ab70e38c32b170527bb370a - d <= 1 && (d = b.v651c6ac2db3dd8bc00f16eda5f74d0a4.v3deeefb91ab70e38c32b170527bb370a), e.push([
U.vbacce6a42a9154e1b2ea38c9b107fbb2('Balance: {0}<br>Due: {1}', [
U.vd2b41c989db2a5e0c4b05790433f1562(b.v651c6ac2db3dd8bc00f16eda5f74d0a4.v3deeefb91ab70e38c32b170527bb370a),
b.v651c6ac2db3dd8bc00f16eda5f74d0a4.v92c33f4a1ca9d83bce4a38746f69db3d.v2bdd3cf6f0c76247ea8f4fd7a4d766e6()
]),
U.vbacce6a42a9154e1b2ea38c9b107fbb2('Paid: {0}', U.vd2b41c989db2a5e0c4b05790433f1562(d))
]), b.v651c6ac2db3dd8bc00f16eda5f74d0a4.v3deeefb91ab70e38c32b170527bb370a -= d, b.v651c6ac2db3dd8bc00f16eda5f74d0a4.v3deeefb91ab70e38c32b170527bb370a <= 0 && a.v5c76b818f37d066368db826cc7d36ea0.v6658d41901465458c34d0790e8086649(b.v651c6ac2db3dd8bc00f16eda5f74d0a4), a.vcb519d3d4ef0f894468aab43b30f54f1.vbc3f437d147654d5b4047440bac28533(a.vbbcd7880ae7a4cb155130413dcc03673, d, 'Cash')
}
a.v69cae692ace155bf2f816d6294dc710d.vc2efdb89ecdb56c0e8ae271473dd61f9(g, e), Alert.show('Loan payments made.'), A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b(), a.close()
})
}, frmLoan.prototype.vf014c7bf764da38e862e437065bab1ff = function () {
va1337b7722f001e1521f5c837ab1b7fe.prototype.vf014c7bf764da38e862e437065bab1ff.call(this), this.v9f325b0687f4d64bbbff5fcd5cc21f5e = new Tabpanel(this.v19a236fd8664bffbd0073783f1039e5e)
}, frmLoan.prototype.v5b776df159cb39610d8078576ff9214f = function () {
this.close()
}, frmLoanc1.prototype = Object.create(v2afb2dbb7629090cd4cf10e612d6687e.prototype), frmLoanc1.prototype.constructor = frmLoanc1, frmLoanc1.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.va1fc7979c5bcf0df1f54476dc60ab8e0.text(this.v651c6ac2db3dd8bc00f16eda5f74d0a4.v3f50f19c49406fcfe0a343255f93d5e4()), this.vff09d4743d8e9b0972bc9e8fb3b24d01.val(0), this.v33d8be2313eb1b4563118a8c0499332f(this.vff09d4743d8e9b0972bc9e8fb3b24d01, {
placement: 'left',
integer: !0,
min: 0,
max: _.round(this.v651c6ac2db3dd8bc00f16eda5f74d0a4.v3deeefb91ab70e38c32b170527bb370a)
})
}, frmLoanc1.prototype.init = function (a) {
this.v651c6ac2db3dd8bc00f16eda5f74d0a4 = a
}, frmLoanc2.prototype = Object.create(v2afb2dbb7629090cd4cf10e612d6687e.prototype), frmLoanc2.prototype.constructor = frmLoanc2, frmLoanc2.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.va1fc7979c5bcf0df1f54476dc60ab8e0.text(this.v651c6ac2db3dd8bc00f16eda5f74d0a4.v724985cb878de0f783585a15712553a7());
var a = this;
this.v4289632c3568b58ff11caac82e92477e.click(function () {
a.parent.v5c76b818f37d066368db826cc7d36ea0.v657e3b6ac90f6a38de6cb0a741ad936e(a.v651c6ac2db3dd8bc00f16eda5f74d0a4);
var b = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Took out a loan for {0}.', a.v651c6ac2db3dd8bc00f16eda5f74d0a4.v724985cb878de0f783585a15712553a7());
a.parent.v69cae692ace155bf2f816d6294dc710d != undefined && a.parent.v69cae692ace155bf2f816d6294dc710d.vc2efdb89ecdb56c0e8ae271473dd61f9(b), a.parent.vcb519d3d4ef0f894468aab43b30f54f1 != undefined && a.parent.vcb519d3d4ef0f894468aab43b30f54f1.vbc3f437d147654d5b4047440bac28533('Cash', a.v651c6ac2db3dd8bc00f16eda5f74d0a4.v3deeefb91ab70e38c32b170527bb370a, a.parent.vbbcd7880ae7a4cb155130413dcc03673), Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Congratulations! You got the loan.')), A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b(), a.parent.close()
})
}, frmLoanc2.prototype.init = function (a, b) {
this.parent = a, this.v651c6ac2db3dd8bc00f16eda5f74d0a4 = b
}, vb43cf742750bb8ac88a5ffe797be4a98.prototype = Object.create(Object.prototype), vb43cf742750bb8ac88a5ffe797be4a98.prototype.constructor = vb43cf742750bb8ac88a5ffe797be4a98, vb43cf742750bb8ac88a5ffe797be4a98.v93dd1be4b94e2035e4c5f6035e2a279e = 14, vb43cf742750bb8ac88a5ffe797be4a98.prototype.init = function (b, c, a) {
this.vc399ba5dd5f13869f30e794715b0b27d = A.vb06c3a859d6038b4515bccc5f1f891ef().now, this.v92c33f4a1ca9d83bce4a38746f69db3d = this.vc399ba5dd5f13869f30e794715b0b27d.v38de1ba283163e851bc4e2af0ac6993c(a * 30), this.v3deeefb91ab70e38c32b170527bb370a = b, this.v392bd52c3241d409001defb80e0fb5b6 = c, this.v166dd861601a4d8e42486bc29ab8fcde = a
}, vb43cf742750bb8ac88a5ffe797be4a98.prototype.v724985cb878de0f783585a15712553a7 = function () {
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('{0} for {1} months at {2} interest rate', [
U.vd2b41c989db2a5e0c4b05790433f1562(this.v3deeefb91ab70e38c32b170527bb370a),
U.vd84eadcceba7c7ff874f8d08babd5fe2(this.v166dd861601a4d8e42486bc29ab8fcde),
U.v77c2c9fef1115c265b52b136e8a574b0(this.v392bd52c3241d409001defb80e0fb5b6)
])
}, vb43cf742750bb8ac88a5ffe797be4a98.prototype.v3f50f19c49406fcfe0a343255f93d5e4 = function () {
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('Balance: {0}, Due Date: {1}, Interest Rate: {2}', [
U.vd2b41c989db2a5e0c4b05790433f1562(this.v3deeefb91ab70e38c32b170527bb370a),
this.v92c33f4a1ca9d83bce4a38746f69db3d.v2bdd3cf6f0c76247ea8f4fd7a4d766e6(),
U.v77c2c9fef1115c265b52b136e8a574b0(this.v392bd52c3241d409001defb80e0fb5b6)
])
}, vb43cf742750bb8ac88a5ffe797be4a98.prototype.v7f1c2aa87d71531d638c3f9ea1e3c457 = function () {
return this.v3deeefb91ab70e38c32b170527bb370a * this.v392bd52c3241d409001defb80e0fb5b6 / 52
}, vb43cf742750bb8ac88a5ffe797be4a98.prototype.vca7acbeb7bcd4e0d60901db4226f7a5e = function () {
var a = this.v392bd52c3241d409001defb80e0fb5b6 / 52, b = _.floor(KMDate.v3a97b01fd5c3fcf807fcc00c576edcc8(this.v92c33f4a1ca9d83bce4a38746f69db3d, A.vb06c3a859d6038b4515bccc5f1f891ef().now) / 7), c = (Math.pow(a + 1, b) - 1) / (a * Math.pow(a + 1, b)), d = this.v3deeefb91ab70e38c32b170527bb370a / c;
return c == 0 && (d = this.v3deeefb91ab70e38c32b170527bb370a), d
}, vb43cf742750bb8ac88a5ffe797be4a98.prototype.v714b7309a6f4ae880d6894607c9436a8 = function (a) {
this.v3deeefb91ab70e38c32b170527bb370a = Math.max(0, this.v3deeefb91ab70e38c32b170527bb370a + a)
}, v757b5307960cdc71c9f679fba7e9643f.prototype = Object.create(Object.prototype), v757b5307960cdc71c9f679fba7e9643f.prototype.constructor = v757b5307960cdc71c9f679fba7e9643f, v757b5307960cdc71c9f679fba7e9643f.prototype.v305230c115584f39e45fe43b233245a6 = function (b, a) {
this.vf77f7513c52c667c65620ce84098d882 = b, this.v93aa47914408244be96b5e8eaf864186 = a, a != vcc018f6c32c853d2b204047d25ba9f40.vb3b8c1a426bc24eb15294190559ef47c ? this.v3deeefb91ab70e38c32b170527bb370a = [] : this.v3deeefb91ab70e38c32b170527bb370a = []
}, v757b5307960cdc71c9f679fba7e9643f.prototype.v35d61bb816287d863d848f6fcb731a05 = function (c, b, a) {
this.vf77f7513c52c667c65620ce84098d882 = c, this.v93aa47914408244be96b5e8eaf864186 = b, this.vf7385935f1dec6f5d5049bd951106dcc = a, a.v5222098d57a01648357a804665f65b82.v657e3b6ac90f6a38de6cb0a741ad936e(this), delete a.v3deeefb91ab70e38c32b170527bb370a, b != vcc018f6c32c853d2b204047d25ba9f40.vb3b8c1a426bc24eb15294190559ef47c ? this.v3deeefb91ab70e38c32b170527bb370a = [] : this.v3deeefb91ab70e38c32b170527bb370a = []
}, v757b5307960cdc71c9f679fba7e9643f.prototype.v55b43a29fbf4a56ec446e042dff05911 = function (b) {
var c = 0;
if (this.v5222098d57a01648357a804665f65b82.length == 0)
return this.v3deeefb91ab70e38c32b170527bb370a[b] ? this.v3deeefb91ab70e38c32b170527bb370a[b] : 0;
else {
for (var a = 0; a < this.v5222098d57a01648357a804665f65b82.length; ++a) {
var d = this.v5222098d57a01648357a804665f65b82[a];
c += d.v55b43a29fbf4a56ec446e042dff05911(b)
}
return c
}
}, v757b5307960cdc71c9f679fba7e9643f.prototype.v35d5cab6bf4e260620f9e061e0b587df = function (b, a) {
if (this.v5222098d57a01648357a804665f65b82.length != 0)
throw new Error('Attempt to set aggregate account this.balance not allowed.');
if ((this.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.v02092ef7b308811687c2d7f038397d91 || this.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vb4b1e76d84551f7a29f97ace25d69567) && (a = -a), a = _.round(a, 2), _.isNaN(a))
debugger;
this.v3deeefb91ab70e38c32b170527bb370a[b] ? this.v3deeefb91ab70e38c32b170527bb370a[b] += a : this.v3deeefb91ab70e38c32b170527bb370a[b] = a, this.v3deeefb91ab70e38c32b170527bb370a[b] = _.round(this.v3deeefb91ab70e38c32b170527bb370a[b], 2)
}, v757b5307960cdc71c9f679fba7e9643f.prototype.ve9a896ae968367ecb63ff55ee362c5a4 = function (a, b) {
this.v35d5cab6bf4e260620f9e061e0b587df(a, -b)
}, v757b5307960cdc71c9f679fba7e9643f.prototype.v7be07a051bc0d7db0aa987a1a33ae465 = function () {
var a = [];
for (var b = 0; b < this.v5222098d57a01648357a804665f65b82.length; ++b) {
var c = this.v5222098d57a01648357a804665f65b82[b];
a.v657e3b6ac90f6a38de6cb0a741ad936e(c), a.v65232cbf984e4899d32f63ff906d72ec(c.v7be07a051bc0d7db0aa987a1a33ae465())
}
return a
}, v757b5307960cdc71c9f679fba7e9643f.prototype.vf6c803a8f35f0aca35a58251ee79ef19 = function (d) {
var a = [];
for (var b = 0; b < this.v5222098d57a01648357a804665f65b82.length; ++b) {
var c = this.v5222098d57a01648357a804665f65b82[b];
c.v1beda42b6e299350dd193f50494e1091() < d && (a.v657e3b6ac90f6a38de6cb0a741ad936e(c), a.v65232cbf984e4899d32f63ff906d72ec(c.vf6c803a8f35f0aca35a58251ee79ef19(d)))
}
return a
}, v757b5307960cdc71c9f679fba7e9643f.prototype.v1beda42b6e299350dd193f50494e1091 = function () {
var a = this, b = 0;
while (a.vf7385935f1dec6f5d5049bd951106dcc != null)
a = a.vf7385935f1dec6f5d5049bd951106dcc, b++;
return b
}, v757b5307960cdc71c9f679fba7e9643f.prototype.v52e727efec759b60a5e762d83643a53b = function (b) {
if (this.vf77f7513c52c667c65620ce84098d882 == b)
return this;
else {
if (this.v5222098d57a01648357a804665f65b82.length > 0)
for (var a = 0; a < this.v5222098d57a01648357a804665f65b82.length; ++a) {
var c = this.v5222098d57a01648357a804665f65b82[a];
if (c.v52e727efec759b60a5e762d83643a53b(b) != null)
return c.v52e727efec759b60a5e762d83643a53b(b)
}
return null
}
}, v757b5307960cdc71c9f679fba7e9643f.prototype.vdfbc1395869023418b63439a83928041 = function (a) {
this.v3deeefb91ab70e38c32b170527bb370a[a] = 0
}, v757b5307960cdc71c9f679fba7e9643f.prototype.vd121e5ae1c513f81953cc8b29f85d585 = function () {
for (var a = 0; a < this.v3deeefb91ab70e38c32b170527bb370a; ++a) {
var b = this.v3deeefb91ab70e38c32b170527bb370a[a];
if (b != 0)
return !1
}
return !0
}, v757b5307960cdc71c9f679fba7e9643f.prototype.v69b1875258f32af4b786c6d61872b9e9 = function (a) {
return this.v93aa47914408244be96b5e8eaf864186 == a
}, v22650407500f460622a82c507e283fa7.prototype = Object.create(Object.prototype), v22650407500f460622a82c507e283fa7.prototype.constructor = v22650407500f460622a82c507e283fa7, v22650407500f460622a82c507e283fa7.prototype.init = function (c, d, e, f, g, a, b) {
a == undefined && (a = null), b == undefined && (b = null), this.vab3d351caf60e457cd579953613f077d = a, this.v301678c0732402665246d5fae3fc8b28 = b, this.v0f640f82c7699855a0d62cf9a27a7187 = c, this.v5b2a5fba3c07b6c906bd3d2c5814cbfe = d, this.v5f8f31def2fd7aad0bb06a09cf68e656 = e, this.vb0db01337802bd76f20faf61742da53c = f, this.v26d28626ca81c220000b7ad6d89f819a = g
}, vaa23042816e13a1bf97cf473ae90dd89.prototype = Object.create(Object.prototype), vaa23042816e13a1bf97cf473ae90dd89.prototype.constructor = vaa23042816e13a1bf97cf473ae90dd89, vaa23042816e13a1bf97cf473ae90dd89.prototype.init = function (b, c, d, e, a) {
this.v74449aac898c877e57b9a8ef2aa86fb6 = b, this.v0f640f82c7699855a0d62cf9a27a7187 = c, this.vb1e51374bae86938b907699d1d14ec73 = d, this.date = e, _.isUndefined(a) || (this.item = a)
}, v155ef141aa3452d79860bc5818273071.prototype = Object.create(Object.prototype), v155ef141aa3452d79860bc5818273071.prototype.constructor = v155ef141aa3452d79860bc5818273071, v155ef141aa3452d79860bc5818273071.prototype.init = function (a) {
this.vdc5165db35e05926b39d1b4c75148623 = a
}, v155ef141aa3452d79860bc5818273071.prototype.record = function (f, h, g, b) {
var c = this.vdc5165db35e05926b39d1b4c75148623[f.vf77f7513c52c667c65620ce84098d882 + '|' + g.vf77f7513c52c667c65620ce84098d882];
if (c != undefined)
for (var d = this.v5d52f1d4295c04e0603d26808c52b9a6.length - 1; d >= 0; d--) {
var a = this.v5d52f1d4295c04e0603d26808c52b9a6[d];
if ((c == 'M' && b.v0bdd7c3da3fac8d35ba5ad5f517b5c6e(a.date) || c == 'W' && b.v27f9834f43fe18f498977d89ae38893e(a.date, A.vb06c3a859d6038b4515bccc5f1f891ef().settings.StartDate) || c == 'D' && b.v5a2e31176f9b2d22ddfc7557df001d2b(a.date)) && a.v74449aac898c877e57b9a8ef2aa86fb6.vf77f7513c52c667c65620ce84098d882 == f.vf77f7513c52c667c65620ce84098d882 && a.vb1e51374bae86938b907699d1d14ec73.vf77f7513c52c667c65620ce84098d882 == g.vf77f7513c52c667c65620ce84098d882)
return a.v0f640f82c7699855a0d62cf9a27a7187 += h, a.date = b, a
}
var e = new vaa23042816e13a1bf97cf473ae90dd89;
return e.init(f, h, g, b), this.v5d52f1d4295c04e0603d26808c52b9a6.v657e3b6ac90f6a38de6cb0a741ad936e(e), e
}, v155ef141aa3452d79860bc5818273071.prototype.v3e7f07e0b4fa8b8804a8d4b08bc55fef = function (a, e, c, f, g) {
f == undefined && (f = !1), g == undefined && (g = !1);
var d = _.filter(this.v5d52f1d4295c04e0603d26808c52b9a6, function (b) {
return b.v74449aac898c877e57b9a8ef2aa86fb6.vf77f7513c52c667c65620ce84098d882 == a.vf77f7513c52c667c65620ce84098d882 || b.vb1e51374bae86938b907699d1d14ec73.vf77f7513c52c667c65620ce84098d882 == a.vf77f7513c52c667c65620ce84098d882
}, this);
f && (d = _.filter(d, function (a) {
return !(a.v2f2a9ba1f7c9fdb3daf5b320e14a79d2 && a.date.getFullYear() == c && a.date.getMonth() == e)
}, this));
var b = 0;
return _.each(d, function (d) {
if (d.date.getFullYear() > c || d.date.getFullYear() == c && d.date.getMonth() > e)
return;
if (d.date.getFullYear() == c && d.date.getMonth() == e && d.ve6ac5f75ee2769d268b44a52f2868d1b && !(g && a.vf77f7513c52c667c65620ce84098d882 == 'Owner\'s Capital'))
return;
var f = 1;
d.vb1e51374bae86938b907699d1d14ec73.vf77f7513c52c667c65620ce84098d882 == a.vf77f7513c52c667c65620ce84098d882 && (f = -1), b += d.v0f640f82c7699855a0d62cf9a27a7187 * a.vb2a0edf81563a8a1fd59d75dcc93a496 * f
}, this), b = U.round(b, 2), b
}, v155ef141aa3452d79860bc5818273071.prototype.vc6a54ce232c3cd676c0160550f27f818 = function (i, j, d, e) {
var f = 0;
switch (j) {
case 'Net Income':
var a = i.v2c9c99235221297717b4058d4a3a328e();
var g = _.filter(a, function (a) {
return a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vb4b1e76d84551f7a29f97ace25d69567
});
var h = _.filter(a, function (a) {
return a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vcb00775c1397b2d767838f42fa496ff8
});
var b = 0;
var c = 0;
var b = _.reduce(g, function (a, b) {
return a + this.v3e7f07e0b4fa8b8804a8d4b08bc55fef(b, d, e)
}, 0, this);
var c = _.reduce(h, function (a, b) {
return a + this.v3e7f07e0b4fa8b8804a8d4b08bc55fef(b, d, e)
}, 0, this);
f = b - c;
break;
case 'Assets':
var a = i.v2c9c99235221297717b4058d4a3a328e();
var a = _.filter(a, function (a) {
return a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.v8e1ed183a49990ff02f9cba3431ed074
});
f = _.reduce(a, function (a, b) {
return a + this.v3e7f07e0b4fa8b8804a8d4b08bc55fef(b, d, e)
}, 0, this);
break;
case 'Liabilities':
var a = i.v2c9c99235221297717b4058d4a3a328e();
var a = _.filter(a, function (a) {
return a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.v02092ef7b308811687c2d7f038397d91
});
f = _.reduce(a, function (a, b) {
return a + this.v3e7f07e0b4fa8b8804a8d4b08bc55fef(b, d, e, !1, !0)
}, 0, this);
break;
case 'Return on Sales':
var a = i.v2c9c99235221297717b4058d4a3a328e();
var g = _.filter(a, function (a) {
return a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vb4b1e76d84551f7a29f97ace25d69567
});
var h = _.filter(a, function (a) {
return a.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vcb00775c1397b2d767838f42fa496ff8
});
var b = 0;
var c = 0;
var b = _.reduce(g, function (a, b) {
return a + this.v3e7f07e0b4fa8b8804a8d4b08bc55fef(b, d, e)
}, 0, this);
var c = _.reduce(h, function (a, b) {
return a + this.v3e7f07e0b4fa8b8804a8d4b08bc55fef(b, d, e)
}, 0, this);
f = (b - c) / Math.max(1, b);
break
}
return f
}, v155ef141aa3452d79860bc5818273071.vb268ddd67d21d4773cfd3b0c0db24a66 = function (c, q, b, p) {
var f = 4, g = 90, h = 50, i = 8, e = 'rgba(60,92,90, 0.7)', m = 10, j = new vcfe882df616f899ab32c02dee5b814a6, n = va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1.clone(), k = _.find(n, function (a) {
return a instanceof frmAcctgJournal
});
if (!_.isUndefined(k) && A.vf3351ba56d8b7e42f05b30b819a9db80().v720508d5c3659b419d8d583088d93da4('animateTransactions')) {
b.vb1e51374bae86938b907699d1d14ec73.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vb4b1e76d84551f7a29f97ace25d69567 && (e = 'rgba(6,92,39, 0.7)'), b.v74449aac898c877e57b9a8ef2aa86fb6.v93aa47914408244be96b5e8eaf864186 == vcc018f6c32c853d2b204047d25ba9f40.vcb00775c1397b2d767838f42fa496ff8 && (e = 'rgba(142,16,16, 0.7)');
var o = k.selector.parent(), l = o.offset(), d = {
x: l.left + 200,
y: l.top + 220
}, a = $('<div class=\'animatedTransaction\' style=\'position:absolute; border: 2px solid #999999;\'></div>;');
a.css('width', g + 'px'), a.css('height', h + 'px'), a.css('left', c.x + 'px'), a.css('top', c.y + 'px'), a.css('padding', '10px'), a.css('font-size', i + 'px'), a.css('background-color', e), a.css('border-radius', m + 'px'), a.css('color', 'white'), a.css('z-index', 999999), b.vf2a476c7488edeb4e4f869ffadc5d987 = !0, a[0].v5a2d6ca10c13bd1447af6501f6d8a7a6 = b, a.html(U.vbacce6a42a9154e1b2ea38c9b107fbb2('<p><b>{0}</b></p><p>Amount: {1}</p><p>Debit: {2}</p><p>Credit: {3}</p>', [
p,
U.vd2b41c989db2a5e0c4b05790433f1562(b.v0f640f82c7699855a0d62cf9a27a7187),
b.v74449aac898c877e57b9a8ef2aa86fb6.vf77f7513c52c667c65620ce84098d882,
b.vb1e51374bae86938b907699d1d14ec73.vf77f7513c52c667c65620ce84098d882
])), a.appendTo($('body')), a.animate({
left: c.x + (d.x - c.x) * j.v4b5d032286d7ea0a308827fdb5b94573() * .6 + .2 + 'px',
top: c.y + (d.y - c.y) * j.v4b5d032286d7ea0a308827fdb5b94573() * .6 + .2 + 'px',
fontSize: i * f + 'px',
width: g * f + 'px',
height: h * f + 'px'
}, 3e3), a.animate({
left: d.x + 'px',
top: d.y + 'px',
fontSize: i + 'px',
width: g + 'px',
height: h + 'px'
}, 3e3, 'swing', function () {
this.v5a2d6ca10c13bd1447af6501f6d8a7a6.vf2a476c7488edeb4e4f869ffadc5d987 = !1, $(this).remove();
var b = va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1.clone(), a = _.find(b, function (a) {
return a instanceof q
});
_.isUndefined(a) || a.refresh(!0)
})
}
}, v155ef141aa3452d79860bc5818273071.prototype.v211938edf12ab8b16cad7629ff77f4fc = function (e, f) {
var d = _.filter(this.v5d52f1d4295c04e0603d26808c52b9a6, function (a) {
return a.vb1e51374bae86938b907699d1d14ec73.vf77f7513c52c667c65620ce84098d882 == 'Sales'
}), a = {};
for (var b = 0; b < vbe7993a2ce2422b8674dc4b1008561b0.v5af4337a7398207650d5f8dd7b73c870.length; b++) {
var c = vbe7993a2ce2422b8674dc4b1008561b0.v5af4337a7398207650d5f8dd7b73c870[b];
a[c.vdf4ab0a7edfc9a584a40d149fc76228f] = {
name: c.vdf4ab0a7edfc9a584a40d149fc76228f,
v4196f82d27418fae5cd612a9ff3146ec: 0,
v19e70d19f1e1c3032a788360e91bc209: 0
}
}
return _.each(d, function (b) {
b.date.getFullYear() == f && b.date.getMonth() == e && (a[b.item].v4196f82d27418fae5cd612a9ff3146ec++, a[b.item].v19e70d19f1e1c3032a788360e91bc209 += b.v0f640f82c7699855a0d62cf9a27a7187)
}, this), a
}, v5791304e9db8a07f13dcce81d521a097.prototype = Object.create(Object.prototype), v5791304e9db8a07f13dcce81d521a097.prototype.constructor = v5791304e9db8a07f13dcce81d521a097, v5791304e9db8a07f13dcce81d521a097.prototype.vbdfac1208042c3ffbaa00089f3581c64 = function (d) {
var a = ' ', b = '';
b += '!TRNS' + a + 'TRNSTYPE' + a + 'DATE' + a + 'ACCNT' + a + 'AMOUNT' + a + 'NAME' + '\n', b += '!SPL' + a + 'TRNSTYPE' + a + 'DATE' + a + 'ACCNT' + a + 'AMOUNT' + a + 'INVITEM' + a + 'NAME' + '\n', b += '!ENDTRNS\n';
var c = _.filter(d, function (a) {
return !a.ve6ac5f75ee2769d268b44a52f2868d1b
});
return _.each(c, function (a) {
a.v9b8fc9f0174a9762a58d0d86f6c6cf4c != undefined && a.v9b8fc9f0174a9762a58d0d86f6c6cf4c.substring(0, 1) == 'I' ? a.v74449aac898c877e57b9a8ef2aa86fb6.vf77f7513c52c667c65620ce84098d882 == 'Cash' ? b += this.v61a104cb798478c9cab07334351fc13d('CASH SALE', a) : b += this.v61a104cb798478c9cab07334351fc13d('INVOICE', a) : a.v9b8fc9f0174a9762a58d0d86f6c6cf4c != undefined && a.v9b8fc9f0174a9762a58d0d86f6c6cf4c.substring(0, 1) == 'C' ? b += this.v61a104cb798478c9cab07334351fc13d('CHECK', a, !0) : a.vb1e51374bae86938b907699d1d14ec73.vf77f7513c52c667c65620ce84098d882 == 'Accounts Receivable' ? b += this.v61a104cb798478c9cab07334351fc13d('PAYMENT', a) : a.vb1e51374bae86938b907699d1d14ec73.vf77f7513c52c667c65620ce84098d882 == 'Accounts Payable' ? b += this.v61a104cb798478c9cab07334351fc13d('BILL', a, !0) : b += this.v61a104cb798478c9cab07334351fc13d('GENERAL JOURNAL', a)
}, this), b
}, v5791304e9db8a07f13dcce81d521a097.prototype.v61a104cb798478c9cab07334351fc13d = function (e, b, g) {
var a = ' ', c = '', f = a;
_.isUndefined(b.item) || (f += b.item);
var d = a;
return _.isUndefined(b.name) || (d += b.name), g ? (c += 'TRNS' + a + e + a + b.date.format('MM/dd/yy') + a + b.vb1e51374bae86938b907699d1d14ec73.vf77f7513c52c667c65620ce84098d882 + a + -b.v0f640f82c7699855a0d62cf9a27a7187 + d + '\n', c += 'SPL' + a + e + a + b.date.format('MM/dd/yy') + a + b.v74449aac898c877e57b9a8ef2aa86fb6.vf77f7513c52c667c65620ce84098d882 + a + b.v0f640f82c7699855a0d62cf9a27a7187 + f + d + '\n') : (c += 'TRNS' + a + e + a + b.date.format('MM/dd/yy') + a + b.v74449aac898c877e57b9a8ef2aa86fb6.vf77f7513c52c667c65620ce84098d882 + a + b.v0f640f82c7699855a0d62cf9a27a7187 + d + '\n', c += 'SPL' + a + e + a + b.date.format('MM/dd/yy') + a + b.vb1e51374bae86938b907699d1d14ec73.vf77f7513c52c667c65620ce84098d882 + a + -b.v0f640f82c7699855a0d62cf9a27a7187 + f + d + '\n'), c += 'ENDTRNS\n', c
}, v5791304e9db8a07f13dcce81d521a097.prototype.v313905ec0d7d821598610ce5b9e4b1e3 = function (c) {
var a = ' ', b = '';
return b += '!ACCNT' + a + 'NAME' + a + 'ACCNTTYPE' + a + 'ACCNUM' + '\n', _.each(c, function (c) {
b += 'ACCNT' + a + c.vf77f7513c52c667c65620ce84098d882 + a + c.vb980777d18d5039c72fb91b027ec3929 + a + c.number + '\n'
}, this), b
}, v5791304e9db8a07f13dcce81d521a097.prototype.va3a7de2cf95c3d1ccf5961acb9900827 = function (c) {
var a = ' ', b = '';
return b += '!INVITEM' + a + 'NAME' + a + 'INVITEMTYPE' + a + 'ACCNT' + '\n', _.each(c, function (c) {
b += 'INVITEM' + a + c.vdf4ab0a7edfc9a584a40d149fc76228f + a + 'SERV' + a + 'Sales' + '\n'
}, this), b
}, v5791304e9db8a07f13dcce81d521a097.prototype.vf6d1e70f7fa32708844b2b3601419280 = function (c) {
var b = ' ', a = '';
return a += '!CUST' + b + 'NAME' + '\n', _.each(c, function (c) {
a += 'CUST' + b + c + '\n'
}, this), a
}, v5791304e9db8a07f13dcce81d521a097.prototype.v59ac25d9bc3c6256ac418eaf4a8592d1 = function (c) {
var b = ' ', a = '';
return a += '!VEND' + b + 'NAME' + '\n', _.each(c, function (c) {
a += 'VEND' + b + c + '\n'
}, this), a
}, ctrlTransferCash.prototype = Object.create(v2afb2dbb7629090cd4cf10e612d6687e.prototype), ctrlTransferCash.prototype.constructor = ctrlTransferCash, ctrlTransferCash.prototype.init = function (a) {
this.v5941d8b6596e40827476f762b5867a14 = a
}, ctrlTransferCash.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.v44e640066d095b2ba7783a2f1cb278d3.change(_.bind(this.update, this)), this.v58bfd8d48b71e5503e63a6b968f0219e.change(_.bind(this.update, this)), this.v68629ed8f9b55a65045f2551d02bfae7.val(U.vd2b41c989db2a5e0c4b05790433f1562(0)), _.each(this.v5941d8b6596e40827476f762b5867a14, function (a) {
var b = a.vcb519d3d4ef0f894468aab43b30f54f1.v4988ecc84cd668e1775d8877fadf0519('Cash');
b > 0 && this.v34c3f2661e88b608601e5075b4492093(this.v44e640066d095b2ba7783a2f1cb278d3, a.name), this.v34c3f2661e88b608601e5075b4492093(this.v58bfd8d48b71e5503e63a6b968f0219e, a.name)
}, this), this.v33d8be2313eb1b4563118a8c0499332f(this.v68629ed8f9b55a65045f2551d02bfae7, {
placement: 'right',
currency: !0,
min: 1,
max: this.v90632f477e096b002cd6512656306fa2
}), this.v0a8be48e46ccc1e18607f09f59d88d3a = this.v90639485163ea91b3b85d6717b7163b8().vcb519d3d4ef0f894468aab43b30f54f1.v4988ecc84cd668e1775d8877fadf0519('Cash'), this.v5384dd0652c31c955a7dc1bc6fd95441(this.v68629ed8f9b55a65045f2551d02bfae7, 'max', this.v0a8be48e46ccc1e18607f09f59d88d3a), this.v68629ed8f9b55a65045f2551d02bfae7.change(_.bind(function () {
var a = this.v94e91b0cb1d8550cd31fccf294bff404(this.v68629ed8f9b55a65045f2551d02bfae7);
this.v68629ed8f9b55a65045f2551d02bfae7.val(U.vd2b41c989db2a5e0c4b05790433f1562(a))
}, this)), this.update()
}, ctrlTransferCash.prototype.update = function () {
var a = this.v90639485163ea91b3b85d6717b7163b8();
if (this.v01d4c71294fab287e93864b8c9443278() == a) {
var b = this.v7bb607ef58d58cf897bce533a4fdc10f(this.v58bfd8d48b71e5503e63a6b968f0219e);
b < this.v5941d8b6596e40827476f762b5867a14.length - 1 ? this.vf3a390b65c19822fb8d9c96f2a365226(this.v58bfd8d48b71e5503e63a6b968f0219e, b + 1) : this.vf3a390b65c19822fb8d9c96f2a365226(this.v58bfd8d48b71e5503e63a6b968f0219e, b - 1)
}
this.v4c73f6631355321ed87138a0e4d88c88.html(U.vd2b41c989db2a5e0c4b05790433f1562(this.v01d4c71294fab287e93864b8c9443278().vcb519d3d4ef0f894468aab43b30f54f1.v4988ecc84cd668e1775d8877fadf0519('Cash'))), this.v0a8be48e46ccc1e18607f09f59d88d3a != a.vcb519d3d4ef0f894468aab43b30f54f1.v4988ecc84cd668e1775d8877fadf0519('Cash') && (this.v0a8be48e46ccc1e18607f09f59d88d3a = a.vcb519d3d4ef0f894468aab43b30f54f1.v4988ecc84cd668e1775d8877fadf0519('Cash'), this.v5384dd0652c31c955a7dc1bc6fd95441(this.v68629ed8f9b55a65045f2551d02bfae7, 'max', this.v0a8be48e46ccc1e18607f09f59d88d3a), this.v067928f001d9165976f0c43cce82e925()), this.v511f20e969adadf4514bf1d13ec71561.html(U.vd2b41c989db2a5e0c4b05790433f1562(this.v0a8be48e46ccc1e18607f09f59d88d3a))
}, ctrlTransferCash.prototype.ved89573fffaa080e043208641f4950d2 = function (c) {
var a = this.v852d31a31264da31b7235893fee1de99(c), b = _.find(this.v5941d8b6596e40827476f762b5867a14, function (b) {
return a == b.name
});
return b
}, ctrlTransferCash.prototype.v90639485163ea91b3b85d6717b7163b8 = function () {
return this.ved89573fffaa080e043208641f4950d2(this.v44e640066d095b2ba7783a2f1cb278d3)
}, ctrlTransferCash.prototype.v01d4c71294fab287e93864b8c9443278 = function () {
return this.ved89573fffaa080e043208641f4950d2(this.v58bfd8d48b71e5503e63a6b968f0219e)
}, ctrlTransferCash.prototype.vb0875401da19fe510a6ab48bbe9a6699 = function () {
return this.v94e91b0cb1d8550cd31fccf294bff404(this.v68629ed8f9b55a65045f2551d02bfae7)
}, ctrlPurchaseOrder.prototype = Object.create(v2afb2dbb7629090cd4cf10e612d6687e.prototype), ctrlPurchaseOrder.prototype.constructor = ctrlPurchaseOrder, ctrlPurchaseOrder.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.refresh()
}, ctrlPurchaseOrder.prototype.refresh = function () {
this.vf56358c48345c6115e3b62c488cb4b9f.empty(), _.each(this.v2c65c2a9f1eb7c8aa9d9672aaa578932, function (b) {
var a = $('<th>');
a.html(b.name), a.insertAfter(this.vf98bbacc79e7f67593c2a75c173c5d62)
}, this), _.each(this.items, function (b) {
var a = new ctrlPurchaseOrderc1;
a.init(b, this.vf120f0da8f984420169debf264a0ed5e, this.v2c65c2a9f1eb7c8aa9d9672aaa578932), a.v818bd2c0a84026911fc3df192c53f801(this.vf56358c48345c6115e3b62c488cb4b9f)
}, this)
}, ctrlPurchaseOrder.prototype.init = function (a, c, b) {
this.items = a, this.vf120f0da8f984420169debf264a0ed5e, this.v2c65c2a9f1eb7c8aa9d9672aaa578932 = b
}, ctrlPurchaseOrderc1.prototype = Object.create(v2afb2dbb7629090cd4cf10e612d6687e.prototype), ctrlPurchaseOrderc1.prototype.constructor = ctrlPurchaseOrderc1, ctrlPurchaseOrderc1.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.vbe4da4b3bf538ef6f0e2e35456a20735.text(this.item.name), this.vfee5037c4db17d77ddded820545d4c03.html(U.vd2b41c989db2a5e0c4b05790433f1562(this.item.v5352b8566ac308eb5321193ff215a585, 2)), _.each(_.keys(this.v2c65c2a9f1eb7c8aa9d9672aaa578932), function (b) {
var a = $('<td>');
a.html(U.vd84eadcceba7c7ff874f8d08babd5fe2(A.vb06c3a859d6038b4515bccc5f1f891ef().random.next(90))), a.insertAfter(this.v4edfc25ad4321be57def6c7f46f120b3)
}, this), this.v76a4ddae241a8fb8d866c4ba35c8f9d7.val(0), this.v33d8be2313eb1b4563118a8c0499332f(this.v76a4ddae241a8fb8d866c4ba35c8f9d7, {
placement: 'left',
currency: !0,
min: 0,
max: this.vf120f0da8f984420169debf264a0ed5e
})
}, ctrlPurchaseOrderc1.prototype.init = function (a, b, c) {
this.item = a, this.vf120f0da8f984420169debf264a0ed5e = b, this.v2c65c2a9f1eb7c8aa9d9672aaa578932 = c
}, frmTransferCash.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmTransferCash.prototype.constructor = frmTransferCash, frmTransferCash.prototype.init = function (a) {
this.v5941d8b6596e40827476f762b5867a14 = a
}, frmTransferCash.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
_.isUndefined(this.v5941d8b6596e40827476f762b5867a14) && (this.v5941d8b6596e40827476f762b5867a14 = A.vb06c3a859d6038b4515bccc5f1f891ef().v5941d8b6596e40827476f762b5867a14), this.v40ed8c79ca784285abbd05eccac73b46 = new ctrlTransferCash, this.v40ed8c79ca784285abbd05eccac73b46.init(this.v5941d8b6596e40827476f762b5867a14), this.v40ed8c79ca784285abbd05eccac73b46.v818bd2c0a84026911fc3df192c53f801(this.vdb58d5fece9ff7dcec71d2b29e82d87d)
}, frmTransferCash.prototype.v5b776df159cb39610d8078576ff9214f = function () {
this.close()
}, frmTransferCash.prototype.vcd9324956f14fa5e73633cbba9b47ee5 = function () {
if (!this.v40ed8c79ca784285abbd05eccac73b46.v067928f001d9165976f0c43cce82e925().vf32b3931c79c80d602081f229c54e704)
return;
var b = this.v40ed8c79ca784285abbd05eccac73b46.v90639485163ea91b3b85d6717b7163b8(), c = this.v40ed8c79ca784285abbd05eccac73b46.v01d4c71294fab287e93864b8c9443278(), a = this.v40ed8c79ca784285abbd05eccac73b46.vb0875401da19fe510a6ab48bbe9a6699(), d = b.vcb519d3d4ef0f894468aab43b30f54f1.v4988ecc84cd668e1775d8877fadf0519('Cash');
d < a && (a = d), b.vcb519d3d4ef0f894468aab43b30f54f1.vbc3f437d147654d5b4047440bac28533('Paid-in Capital', a, 'Cash'), c.vcb519d3d4ef0f894468aab43b30f54f1.vbc3f437d147654d5b4047440bac28533('Cash', a, 'Paid-in Capital'), c.v69cae692ace155bf2f816d6294dc710d.vc2efdb89ecdb56c0e8ae271473dd61f9(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Cash transferred into business:'), [
[
'Amount',
U.vd2b41c989db2a5e0c4b05790433f1562(a, 2)
],
[
'From',
b.name
]
]), b.v69cae692ace155bf2f816d6294dc710d.vc2efdb89ecdb56c0e8ae271473dd61f9(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Cash transferred from business:'), [
[
'Amount',
U.vd2b41c989db2a5e0c4b05790433f1562(a, 2)
],
[
'To',
c.name
]
]), A.vf3351ba56d8b7e42f05b30b819a9db80().running || A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b(), a == this.v40ed8c79ca784285abbd05eccac73b46.vb0875401da19fe510a6ab48bbe9a6699() ? Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('You have transferred {0} from {1} to {2}.', [
U.vd2b41c989db2a5e0c4b05790433f1562(a),
b.name,
c.name
])) : Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('The requested transfer amount was greater than the current cash balance at {0}. You have transferred the entire cash balance of {1} from {2} to {3}.', [
b.name,
U.vd2b41c989db2a5e0c4b05790433f1562(a),
b.name,
c.name
])), this.close()
}, frmMarketShare.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmMarketShare.prototype.constructor = frmMarketShare, frmMarketShare.vc2232c38bcf06492a693d5e6c7012a2c = 5, frmMarketShare.prototype.init = function (a) {
}, frmMarketShare.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
A.vf3351ba56d8b7e42f05b30b819a9db80().v2b67c94f99d3fc1f91e2d56e8f3034d8(this.vf974bcd72cd3e9d6a1a105374ef14344), this.update()
}, frmMarketShare.prototype.update = function () {
var a = A.vb06c3a859d6038b4515bccc5f1f891ef().v500dca1e526d31e7f71c3b4f2c492d16();
if (a.length > 0) {
var f = _.max(a, 'lastWeek'), i = f.lastWeek, n = Math.max(0, i - f.data.length + 1), g = [], e = 0, d = 0;
for (var b = 0; b < a.length; b++) {
var h = [];
for (var c = n; c <= i; c++)
if (c <= a[b].lastWeek) {
var l = c - (a[b].lastWeek - a[b].data.length + 1), j = a[b].data[l], k = A.vb06c3a859d6038b4515bccc5f1f891ef().settings.StartDate.v38de1ba283163e851bc4e2af0ac6993c(7 * c);
h.v657e3b6ac90f6a38de6cb0a741ad936e([
k.getTime(),
j
]), e = Math.max(e, j), d = Math.max(d, k.getTime())
}
g.v657e3b6ac90f6a38de6cb0a741ad936e({
label: a[b].vf34cba9c997828a316f9d393eb0191bc,
data: h
})
}
var m = {
xaxis: {
show: !0,
mode: 'time',
timeformat: '%m/%d',
color: '#FFFFFF',
max: d < A.vb06c3a859d6038b4515bccc5f1f891ef().settings.StartDate.v38de1ba283163e851bc4e2af0ac6993c(30).getTime() ? A.vb06c3a859d6038b4515bccc5f1f891ef().settings.StartDate.v38de1ba283163e851bc4e2af0ac6993c(30).getTime() : null,
minTickSize: [
7,
'day'
],
font: {
size: 14,
lineHeight: 13,
family: 'Arial,sans-serif',
color: '#222222'
}
},
yaxis: {
max: e < 100 ? 100 : null,
min: 0,
show: !0,
font: {
size: 14,
lineHeight: 13,
family: 'Arial,sans-serif',
color: '#222222'
}
},
legend: {
labelBoxBorderColor: '#FFFFFF',
backgroundOpacity: .2,
container: this.vb66524f3a86aa10a5334f13ca3bfb02b
},
series: { lines: { lineWidth: this.v985248268c1400ca1cb99a78653c0e13 == 0 ? 5 : 2 } },
colors: this.v985248268c1400ca1cb99a78653c0e13 == 0 ? ['#0080CC'] : [
'#0080CC',
'#8000CC',
'#00CC80',
'#CC0080',
'#BBBB00'
]
};
$.plot(this.v025530da7b79879cb596953914223440, g, m)
}
}, frmMarketShare.prototype.v5b776df159cb39610d8078576ff9214f = function () {
this.close()
}, frmMarketShare.prototype.onClose = function () {
A.vf3351ba56d8b7e42f05b30b819a9db80().v756c989e079f19224357a90dd98627c6(this.vf974bcd72cd3e9d6a1a105374ef14344)
}, Journal.prototype = Object.create(Object.prototype), Journal.prototype.constructor = Journal, Journal.prototype.vc2efdb89ecdb56c0e8ae271473dd61f9 = function (b, c) {
if (A.vf3351ba56d8b7e42f05b30b819a9db80().v75743c359c19fe435bef751ae5792b43) {
var a = new v0f3d636ceefe45f353f3d87759c5a984;
a.init(b, c), a.timeStamp = vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.now, a.v35660da52b9d862fbcb8b2f417ccc8d4 = new Date, this.entries.push(a)
}
}, Journal.prototype.v9e8ef39e3a8ae0d0f24037ca47f83dbc = function () {
return this.entries.length
}, Journal.prototype.v297d5ac6ebc75d348cbf759072653508 = function () {
this.entries = []
}, v0f3d636ceefe45f353f3d87759c5a984.prototype = Object.create(Object.prototype), v0f3d636ceefe45f353f3d87759c5a984.prototype.constructor = v0f3d636ceefe45f353f3d87759c5a984, v0f3d636ceefe45f353f3d87759c5a984.prototype.init = function (a, b) {
this.v301678c0732402665246d5fae3fc8b28 = a, this.vabeac9d812479143db610f9772a99b08 = b
}, vab30ab9e164e8ab083b5e9a8e0de4a51.prototype = Object.create(Object.prototype), vab30ab9e164e8ab083b5e9a8e0de4a51.prototype.constructor = vab30ab9e164e8ab083b5e9a8e0de4a51, vab30ab9e164e8ab083b5e9a8e0de4a51.prototype.v9a4377c5d07b5256fe556e93b36e2981 = function (c) {
this.points = c;
for (var a = 0; a < this.points.length; a++)
for (var b = 0; b < this.points.length; b++)
if (a != b && this.points[a].x == this.points[b].x)
throw new Error('Duplicate x values in response curve.')
}, vab30ab9e164e8ab083b5e9a8e0de4a51.prototype.v0adb821de99c1462430abd1d2befd86d = function (b, e) {
this.points = [];
var c = 0;
_.each(b, function (a) {
return c += a[e]
});
var d = 0;
for (var a = 0; a < b.length; a++) {
var f = b[a];
d += f[e] / c;
var g = new Point(d, a);
this.points.v657e3b6ac90f6a38de6cb0a741ad936e(g)
}
}, vab30ab9e164e8ab083b5e9a8e0de4a51.prototype.v74ba80dc28a0b135dde4bd75cb12c59e = function (b) {
this.points = [];
var c = 0;
_.each(b, function (a) {
return c += a
});
var d = 0;
for (var a = 0; a < b.length; a++) {
var e = b[a];
d += e / c;
var f = new Point(d, a);
this.points.v657e3b6ac90f6a38de6cb0a741ad936e(f)
}
}, vab30ab9e164e8ab083b5e9a8e0de4a51.prototype.vdc8bca66a75f33a6b3f877c49dfbfba3 = function (c, d) {
var b = Number.NEGATIVE_INFINITY;
for (var a = 0; a < this.points.length; a++)
if (c < this.points[a].x) {
a == 0 ? b = this.points[a].y : b = this.points[a - 1].y + (this.points[a].y - this.points[a - 1].y) * (c - this.points[a - 1].x) / (this.points[a].x - this.points[a - 1].x);
break
}
return Number.NEGATIVE_INFINITY == b && (b = this.points[this.points.length - 1].y), d != undefined ? b + (d.v4b5d032286d7ea0a308827fdb5b94573() - .5) * this.v36fe5e63f40d0b7d4ad611d5d84360ca : b
}, vab30ab9e164e8ab083b5e9a8e0de4a51.prototype.v88cbf52636806b8c6ac66ac3e034e6c9 = function (b) {
for (var a = 0; a < this.points.length; a++)
if (b < this.points[a].x)
return this.points[a].y;
return this.points[this.points.length - 1]
}, vab30ab9e164e8ab083b5e9a8e0de4a51.prototype.v89310131da8f96df80110e03705897ff = function () {
var b = 0;
for (var a = 1; a < this.points.length; a++)
b += (this.points[a].x - this.points[a - 1].x) * this.points[a].y;
return b
}, v465c11013bd362d682065721c9ed0945.prototype = Object.create(Object.prototype), v465c11013bd362d682065721c9ed0945.prototype.constructor = v465c11013bd362d682065721c9ed0945, v465c11013bd362d682065721c9ed0945.prototype.init = function (a) {
a == undefined && (a = 365), this.vbd60e4b30fa452979c6bf13ede25cb38 = a
}, v465c11013bd362d682065721c9ed0945.prototype.vde0e2e56d3db7689abe17e13658ca560 = function (a) {
return A.vb06c3a859d6038b4515bccc5f1f891ef().v6bee5cbd59b9f037851b90b5751b2392(a)
}, v465c11013bd362d682065721c9ed0945.prototype.ve2be40caebad1762c12e5774d44a8e4e = function () {
var a = vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.now;
(this.stack.length <= 0 || KMDate.v3a97b01fd5c3fcf807fcc00c576edcc8(a, this.stack[0].date) > 1 || a.getDate() > this.stack[0].date.getDate()) && this.stack.unshift({
date: a,
dict: {}
});
var b = this.stack[0];
while (!0) {
var c = this.stack[this.stack.length - 1], d = Math.ceil(KMDate.v3a97b01fd5c3fcf807fcc00c576edcc8(b.date, c.date));
if (d < this.vbd60e4b30fa452979c6bf13ede25cb38)
break;
this.stack.pop()
}
return b
}, v465c11013bd362d682065721c9ed0945.prototype.vf0fa4e9074b9921690d0d49d49b80970 = function (c, d) {
var a = c + '|' + d, b = this.ve2be40caebad1762c12e5774d44a8e4e();
b.dict[a] == undefined ? b.dict[a] = 1 : b.dict[a] = b.dict[a] + 1
}, v465c11013bd362d682065721c9ed0945.prototype.comment = function (b, a) {
this.vde0e2e56d3db7689abe17e13658ca560(a) == 0 && this.vf0fa4e9074b9921690d0d49d49b80970(b, a)
}, v804a374a882158bcdcefa7baf6d516d2.prototype = Object.create(Object.prototype), v804a374a882158bcdcefa7baf6d516d2.prototype.constructor = v804a374a882158bcdcefa7baf6d516d2, v804a374a882158bcdcefa7baf6d516d2.vee99f1a4f22938d39c7b8e11b17abce6 = 0, v804a374a882158bcdcefa7baf6d516d2.Daily = 1, v804a374a882158bcdcefa7baf6d516d2.prototype.init = function (a, b) {
this.parse(b), this.frequency = a
}, v804a374a882158bcdcefa7baf6d516d2.prototype.post = function (a, d, e) {
var b = this.series[a];
if (!_.isObject(b))
Alert.show('Trying to add data to undefined time series: ' + a);
else {
var c = b.values;
_.isObject(c) ? c[this.v871c664be337f500b571d121b9b2d796(d)] = e + this.v8203df5c2b14e6097f0d416f943fd1ad(a, d) : Alert.show('Trying to add data to non base-level time series: ' + a)
}
}, v804a374a882158bcdcefa7baf6d516d2.prototype.v8203df5c2b14e6097f0d416f943fd1ad = function (i, h, c) {
var b = this.series[i];
_.isObject(b) || Alert.show('Invalid series id, ' + i + ', passed to TimeSeriesSet.getValue.');
var a = b.values;
if (_.isObject(a)) {
var d = 0, e = this.v871c664be337f500b571d121b9b2d796(h);
return _.isUndefined(c) ? _.isUndefined(a[e]) || (d = a[e]) : _.each(_.keys(a), function (b) {
this.v1512dc50b616b371d87e5c98b3d8a89f(b, e, c) && (d += a[b])
}, this), d
}
var f = b.v344f2f002b47c797aade56d0501f161e;
if (_.isObject(f) && f.length > 0) {
var j = 0;
return _.each(f, function (a) {
j += this.v8203df5c2b14e6097f0d416f943fd1ad(a, h, c)
}, this), j
}
var g = b.formula;
if (!_.isUndefined(g))
return this.v45d9ae9f236c220e0446fb49b9ab147b(g, h, c);
Alert.show('No way to compute value of, ' + i + ', passed to TimeSeriesSet.getValue. Check json definition.')
}, v804a374a882158bcdcefa7baf6d516d2.prototype.v1512dc50b616b371d87e5c98b3d8a89f = function (a, b, c) {
switch (c) {
case 'YTD':
return a.substring(0, 4) == b.substring(0, 4) && a <= b;
case 'MTD':
return a.substring(0, 4) == b.substring(0, 4) && a.substring(5, 7) == b.substring(5, 7) && a <= b;
case 'CY':
return a.substring(0, 4) == b.substring(0, 4);
case 'CM':
return a.substring(0, 4) == b.substring(0, 4) && a.substring(5, 7) == b.substring(5, 7);
case 'YTDEM':
return a.substring(0, 4) == b.substring(0, 4) && a.substring(5, 7) <= b.substring(5, 7)
}
}, v804a374a882158bcdcefa7baf6d516d2.prototype.v871c664be337f500b571d121b9b2d796 = function (a) {
var b = a.getMonth();
switch (this.frequency) {
case v804a374a882158bcdcefa7baf6d516d2.vee99f1a4f22938d39c7b8e11b17abce6:
return a.getFullYear() + '-' + U.padLeft(b.toString(), 2, '0');
case v804a374a882158bcdcefa7baf6d516d2.Daily:
var c = a.getDate();
return a.getFullYear() + '-' + U.padLeft(b.toString(), 2, '0') + '-' + U.padLeft(c.toString(), 2, '0')
}
}, v804a374a882158bcdcefa7baf6d516d2.prototype.parse = function (a) {
_.each(a, function (a) {
this.series[a.id] = a
}, this)
}, v804a374a882158bcdcefa7baf6d516d2.prototype.v7b98b1d0888ca9a37049e4582abbea81 = function (a) {
return this.series[a].name
}, v804a374a882158bcdcefa7baf6d516d2.prototype.v61fe6ca126d8df0835bc2e5352564071 = function (a) {
var b = !_.isUndefined(this.series[a].v61fe6ca126d8df0835bc2e5352564071) && this.series[a].v61fe6ca126d8df0835bc2e5352564071 == 1;
return b
}, v804a374a882158bcdcefa7baf6d516d2.prototype.v45d9ae9f236c220e0446fb49b9ab147b = function (formula, date, aggregationMode) {
var f = formula.replace(/{/g, 'this.getValue("'), f = f.replace(/}/g, '",date,aggregationMode)'), val = eval(f);
return val
}, frmJournal.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmJournal.prototype.constructor = frmJournal, frmJournal.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
var a = '';
for (var c = 0; c < this.v69cae692ace155bf2f816d6294dc710d.entries.length; c++) {
var b = this.v69cae692ace155bf2f816d6294dc710d.entries[c];
if (a += '<h5>' + b.timeStamp.v2bdd3cf6f0c76247ea8f4fd7a4d766e6() + ' ' + b.timeStamp.va53098ec7ac17cd0c893085b013bf748() + '</h5>', a += '<p>' + b.v301678c0732402665246d5fae3fc8b28 + '</p>', b.vabeac9d812479143db610f9772a99b08 != undefined)
for (var d = 0; d < b.vabeac9d812479143db610f9772a99b08.length; d++) {
var e = b.vabeac9d812479143db610f9772a99b08[d];
a += '<div style=\'display:inline-block;\'>' + e[0] + '</div>', a += '<div style=\'display:inline-block;float:right;\'>' + e[1] + '</div><br>'
}
a += '<hr>'
}
this.v221320caf999907755642e4f8841b205.html(a)
}, frmJournal.prototype.v5b776df159cb39610d8078576ff9214f = function () {
this.close()
}, v4b1f64d84d3bddbc5effa45f1c1f4dd8.prototype.v818bd2c0a84026911fc3df192c53f801 = function () {
var a = $('<div id=\'uiSubMenu\' class=\'sub-menu\'>'), c = $('<p>Living <a href="#" style="float: right; onclick="$(\'#uiSubMenu\').remove();"><i class="icon-remove"></i></a></p>');
c.appendTo(a);
var b = $('<ul>');
li = $('<li class=\'divider\'></li>'), li.appendTo(b), li = $('<li><a href=\'#\'>Test Item</a></li>'), li.appendTo(b), li = $('<li class=\'divider\'></li>'), li.appendTo(b), b.appendTo(a), a.css({
left: '50%',
top: '50%'
}), a.appendTo($('body')), a.show()
}, v4b1f64d84d3bddbc5effa45f1c1f4dd8.show = function () {
var a = new v4b1f64d84d3bddbc5effa45f1c1f4dd8;
a.v818bd2c0a84026911fc3df192c53f801()
}, frmComments.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmComments.prototype.constructor = frmComments, frmComments.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
var a = this;
this.date = vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.now, this.v35d99a73b4667af5e61e3d60ddf10784(), this.v866b9396fbc8fd4cf8da073bfc99d2f2.click(function () {
a.date = a.date.v38de1ba283163e851bc4e2af0ac6993c(-1), a.v7971aa07969acc62e63bac7b0087df5c = !1, a.v35d99a73b4667af5e61e3d60ddf10784(), SRMessage('Viewing ' + a.date.format('MMM dd'))
}), this.v32ccbf6e2529939cf41d129937937033.click(function () {
var b = vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.now;
a.date = a.date.v38de1ba283163e851bc4e2af0ac6993c(1);
var c = a.date.getFullYear() == b.getFullYear() && a.date.getMonth() == b.getMonth() && a.date.getDate() == b.getDate();
(c || a.date.getTime() >= b.getTime()) && (a.date = b, a.v7971aa07969acc62e63bac7b0087df5c = !0), a.v35d99a73b4667af5e61e3d60ddf10784(), SRMessage('Viewing ' + a.date.format('MMM dd'))
}), this.v629e67b22cb4aa6aae259619729ba1a6 = function () {
a.autoRefresh()
}, A.vf3351ba56d8b7e42f05b30b819a9db80().v5ce611042744da7d3538deb5bdcc12ab(v26eec6ff9a97369555cb05732e4e6c77.vfa16f194192c842be753f148e2d252f8, this.v629e67b22cb4aa6aae259619729ba1a6)
}, frmComments.prototype.v35d99a73b4667af5e61e3d60ddf10784 = function () {
if (this.v0ddf7512e0682d1c9dcd53e00caab75a.text(this.date.format('ddd, MMM d, yyyy')), this.date < A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().StartDate) {
this.v221320caf999907755642e4f8841b205.html(U.vbacce6a42a9154e1b2ea38c9b107fbb2('<b>No messages from before {0}.</b>', A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().StartDate.v90523d15d402d84e602b27315d8a05aa(1).v2bdd3cf6f0c76247ea8f4fd7a4d766e6()));
return
}
var f = A.vb06c3a859d6038b4515bccc5f1f891ef().now.v38de1ba283163e851bc4e2af0ac6993c(-this.log.vbd60e4b30fa452979c6bf13ede25cb38);
if (this.date < f || this.date.v5a2e31176f9b2d22ddfc7557df001d2b(f)) {
this.v221320caf999907755642e4f8841b205.html(U.vbacce6a42a9154e1b2ea38c9b107fbb2('<tr><td><b>Comments and messages are kept for {0} days.</b></td></tr><tr><td><b>Comments for {1} are no longer available.</b></td></tr>', [
this.log.vbd60e4b30fa452979c6bf13ede25cb38,
this.date.v2bdd3cf6f0c76247ea8f4fd7a4d766e6()
]));
return
}
var a = {};
for (var d = 0; d < this.log.stack.length; ++d) {
var b = this.log.stack[d];
if (b.date.getFullYear() == this.date.getFullYear() && b.date.getMonth() == this.date.getMonth() && b.date.getDate() == this.date.getDate()) {
a = b.dict;
break
}
}
var c = [];
for (var e in a)
if (a.hasOwnProperty(e)) {
var g = e.split('|');
c.v657e3b6ac90f6a38de6cb0a741ad936e({
source: g[0],
comment: g[1],
count: a[e]
})
}
c = _.sortBy(c, function (a) {
return -1 * a.count
});
var h = '';
_.each(c, function (a) {
h += '<tr><td><strong>' + a.source + '</strong></td><td>' + a.comment + '</td><td style=\'text-align:right\'><span class=\'badge\'>' + U.va87f9494373fc9a1f0c5ed714d6ba96e(a.count) + '</span></td></tr>'
}), this.v221320caf999907755642e4f8841b205.empty(), this.v221320caf999907755642e4f8841b205.html(h)
}, frmComments.prototype.autoRefresh = function () {
this.v7971aa07969acc62e63bac7b0087df5c && (this.date = vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.now, this.v35d99a73b4667af5e61e3d60ddf10784())
}, frmComments.prototype.refresh = function () {
this.date = vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.now, this.v35d99a73b4667af5e61e3d60ddf10784()
}, frmComments.prototype.update = function () {
this.log = A.vb06c3a859d6038b4515bccc5f1f891ef().vfa918617e60589af9429b43b0d8e15f0.log, this.refresh()
}, frmComments.prototype.onClose = function () {
A.vf3351ba56d8b7e42f05b30b819a9db80().v1ecf63798f8db76009c5fd2174908dd0(v26eec6ff9a97369555cb05732e4e6c77.vfa16f194192c842be753f148e2d252f8, this.v629e67b22cb4aa6aae259619729ba1a6)
}, frmInstructorAuth.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmInstructorAuth.prototype.constructor = frmInstructorAuth, frmInstructorAuth.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.va65bb92c0be8970558e52407dafe5e33.text(this.message), this.v33d8be2313eb1b4563118a8c0499332f(this.v8b53684e43800abb83f6faa06a18845f, {
placement: 'bottom',
required: !0,
v5b0dd81efe849f0a04bbd58e7e751cdf: 256
}), this.v33d8be2313eb1b4563118a8c0499332f(this.vf22e081c5c3a9dd417b3404bae126228, {
placement: 'bottom',
required: !0,
v5b0dd81efe849f0a04bbd58e7e751cdf: 32
}), A.vf3351ba56d8b7e42f05b30b819a9db80().designerModeEnabled == 1 && this.v807e8a0e9a28e0672a65aec495c41e6c()
}, frmInstructorAuth.prototype.v807e8a0e9a28e0672a65aec495c41e6c = function () {
this.close(), this.va7cedb470acbdbf147ac49c353c80889 && this.va7cedb470acbdbf147ac49c353c80889()
}, frmInstructorAuth.prototype.v8c8c6361fba47e840d52d312e89e8e73 = function () {
var a = this;
if (this.v067928f001d9165976f0c43cce82e925().vf32b3931c79c80d602081f229c54e704) {
var b = this.v94e91b0cb1d8550cd31fccf294bff404(this.v8b53684e43800abb83f6faa06a18845f), c = this.v94e91b0cb1d8550cd31fccf294bff404(this.vf22e081c5c3a9dd417b3404bae126228);
$.ajax({
type: 'POST',
url: this.host + 'backend/instructorValidate',
data: {
token: this.token,
email: b,
password: hex_md5(c)
},
success: function (b) {
a.vb39fa4efa23d2e94925bdefb31e19394(b)
},
error: function (b) {
a.vfea04987672e286e276c69df97c84674(b)
},
dataType: 'text'
})
} else
Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Please review errors'))
}, frmInstructorAuth.prototype.v5b776df159cb39610d8078576ff9214f = function () {
this.close()
}, frmInstructorAuth.prototype.vfea04987672e286e276c69df97c84674 = function (c, a, b) {
Alert.show('An communication error with the server has occured.<br>Status: ' + a + '<br>Error: ' + b, 'Authentication Error')
}, frmInstructorAuth.prototype.vb39fa4efa23d2e94925bdefb31e19394 = function (b) {
try {
var a = JSON.parse(b);
a.status == 1 ? this.v807e8a0e9a28e0672a65aec495c41e6c() : Alert.show('The information provided could not be used to authenticate this action.', 'Authentication Failure')
} catch (a) {
Alert.show('The server returned information in an unexpected format.', 'Authentication Error')
}
}, frmInstructorAuth.prototype.onClose = function () {
this.v8b53684e43800abb83f6faa06a18845f.val(''), this.vf22e081c5c3a9dd417b3404bae126228.val('')
}, frmInstructorAuth.show = function (b, c, d, e) {
var a = new frmInstructorAuth(b, c, d, e);
return a.show(), a
}, frmProvideCash.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmProvideCash.prototype.constructor = frmProvideCash, frmProvideCash.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.v33d8be2313eb1b4563118a8c0499332f(this.v5ed75758f42afa475ac4941500d527a2, {
placement: 'bottom',
currency: !0,
min: this.v1d6de8ee635e426d371be2b92889236e,
max: this.v146cbf1be4840834f345dfd1da3c2ef8
})
}, frmProvideCash.prototype.v8c8c6361fba47e840d52d312e89e8e73 = function () {
if (this.v067928f001d9165976f0c43cce82e925().vf32b3931c79c80d602081f229c54e704) {
var a = this.v94e91b0cb1d8550cd31fccf294bff404(this.v5ed75758f42afa475ac4941500d527a2);
this.v74eac6ee928fedd5c6de5ef00c5a01e7 && this.v74eac6ee928fedd5c6de5ef00c5a01e7(a), A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b(), this.close()
} else
Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Please review errors.'))
}, frmProvideCash.prototype.v5b776df159cb39610d8078576ff9214f = function () {
this.close()
}, v3aef348849502b00007d8929d120538b.prototype.constructor = v3aef348849502b00007d8929d120538b, v3aef348849502b00007d8929d120538b.prototype.v9eed1adf9994f022e3115f1fb13dc919 = function (a, b) {
if (!this.vc4e4320484da496c90c153496097628b[a])
for (this.vc4e4320484da496c90c153496097628b[a] = [], i = 0; i < this.v6204502ea08dbe5c0d2363f38aff1479; i++)
this.vc4e4320484da496c90c153496097628b[a].v657e3b6ac90f6a38de6cb0a741ad936e(0);
_.isUndefined(b) || (this.v1218d6d10b4ac55c12bac2ae0a588d08 = b);
var c = this.v1218d6d10b4ac55c12bac2ae0a588d08 % this.v6204502ea08dbe5c0d2363f38aff1479;
return c
}, v3aef348849502b00007d8929d120538b.prototype.vf7bad7016bdad315d9140cfc86f0ec79 = function (a, c, d) {
var b = this.v9eed1adf9994f022e3115f1fb13dc919(a, d);
this.vc4e4320484da496c90c153496097628b[a][b] += c
}, v3aef348849502b00007d8929d120538b.prototype.vf5e4e2a3beb9c26eb136e881c0bb6cd4 = function (a, c, d) {
var b = this.v9eed1adf9994f022e3115f1fb13dc919(a, d);
this.vc4e4320484da496c90c153496097628b[a][b] = c
}, v3aef348849502b00007d8929d120538b.prototype.newDay = function (c) {
_.isUndefined(c) ? this.v1218d6d10b4ac55c12bac2ae0a588d08++ : this.v1218d6d10b4ac55c12bac2ae0a588d08 = c;
var d = this.v1218d6d10b4ac55c12bac2ae0a588d08 % this.v6204502ea08dbe5c0d2363f38aff1479, b = _.keys(this.vc4e4320484da496c90c153496097628b);
for (var a = 0; a < b.length; a++) {
var e = b[a];
this.vc4e4320484da496c90c153496097628b[e][d] = 0
}
}, v3aef348849502b00007d8929d120538b.prototype.getData = function (b) {
if (!this.vc4e4320484da496c90c153496097628b[b] || _.isUndefined(this.v1218d6d10b4ac55c12bac2ae0a588d08))
return [];
var d = this.v9eed1adf9994f022e3115f1fb13dc919(b), c = [];
for (var a = d - 1; a >= 0; a--)
c.v2482b825454f621ad2d431c3f11ff309(this.vc4e4320484da496c90c153496097628b[b][a]);
for (var a = this.vc4e4320484da496c90c153496097628b[b].length - 1; a > d; a--)
c.v2482b825454f621ad2d431c3f11ff309(this.vc4e4320484da496c90c153496097628b[b][a]);
return c
}, v3aef348849502b00007d8929d120538b.prototype.v31823043864730fdf9bdc531c5cda1ab = function (a) {
var b = this.v9eed1adf9994f022e3115f1fb13dc919(a);
return this.vc4e4320484da496c90c153496097628b[a][b]
}, v3aef348849502b00007d8929d120538b.prototype.vfc4738cc49c854475a3c5e9d967fc4b4 = function (e) {
var b = this.getData(e), c = [
0,
0,
0,
0,
0,
0,
0
];
for (var a = 0; a < 7 && b.length > a; a++) {
var d = (this.v1218d6d10b4ac55c12bac2ae0a588d08 - 2 - a) % 7;
if (d < 0)
break;
c[d] = b[6 - a]
}
return c
}, v3aef348849502b00007d8929d120538b.prototype.vedb3943d4d9a55ab57bb970c1b84b2b3 = function () {
return this.v1218d6d10b4ac55c12bac2ae0a588d08
}, vf840a612069ad494acacc148ad09e073.prototype.init = function (b, c) {
this.vfb464cf7d5a850847b463fabfdcb9058 = b;
for (var a = 0; a < this.vfb464cf7d5a850847b463fabfdcb9058; a++)
this.vc2efdb89ecdb56c0e8ae271473dd61f9(c)
}, vf840a612069ad494acacc148ad09e073.prototype.vc2efdb89ecdb56c0e8ae271473dd61f9 = function (a) {
this.data.v657e3b6ac90f6a38de6cb0a741ad936e(a), this.data.length > this.vfb464cf7d5a850847b463fabfdcb9058 && this.data.v286b6775db42a6c32fd4458068965906(0)
}, vf840a612069ad494acacc148ad09e073.prototype.v20a8484974ee37b7d977907edc14bc44 = function (a) {
this.vc2efdb89ecdb56c0e8ae271473dd61f9(a)
}, vf840a612069ad494acacc148ad09e073.prototype.v8512d30c33489a97b33764bf45bea593 = function () {
if (this.v0a98f1595c37be21599f9ad7014d6bec())
return 0;
else {
var b = 0;
for (var a = 0; a < this.data.length; ++a)
b += this.data[a];
return b / this.data.length
}
}, vf840a612069ad494acacc148ad09e073.prototype.v0a98f1595c37be21599f9ad7014d6bec = function () {
return this.data.length == 0
}, vf840a612069ad494acacc148ad09e073.prototype.v13eec94d747886a20f83a42709f1990f = function (c) {
var b = 0;
for (var a = 0; a < this.data.length; ++a)
this.data[a] < c && b++;
return b
}, vf840a612069ad494acacc148ad09e073.prototype.vb8fcc44f955f43b26c0b823a57be5f8f = function () {
return this.data.length
}, vf840a612069ad494acacc148ad09e073.prototype.v0ccc1dbda5bff2490a722f71eb6e15e3 = function () {
return this.vfb464cf7d5a850847b463fabfdcb9058
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype = Object.create(vb3096db423f08ae0cbb30d927ab57506.prototype), ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.constructor = ve9bfc6b4c64ef0d4e77d278e430a47e9, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.v722981c5d57a8249ee3363033649fa0f = function (b, a) {
if (a == undefined && (a = null), this.nodes.push(b), a != null) {
b.nodes = b.nodes.concat(a);
for (var c = 0; c < a.length; ++c) {
var d = a[c];
d.link(b)
}
}
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.v2b1c86a367609fc64a4532c7c9c82e3e = function () {
for (var a = 0; a < this.nodes.length; ++a) {
var b = this.nodes[a];
b.name.length > 0 && (this.v77d6dc73c0a0c078c42fc34c1c68ee7f[b.name.toUpperCase()] = b)
}
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.load = function (e) {
this.v5f7a229843901b7645168b8756bd9f80 = e;
var c = e.data;
this.nodes = [];
for (var a = 0; a < c.nodes.length; ++a) {
var b = c.nodes[a];
this.nodes.push(new v4aab7331ac7595e7894e32c19542a754(b.x, b.y, b.name, b.v06061aa61a109873316d17c1a6ad57e0, b.v04ab3916b6c27abc67ffd69caea6f891, b.width, b.height))
}
for (var a = 0; a < c.v195c622d96b2a16355d5f16152d94da0.length; ++a) {
var d = c.v195c622d96b2a16355d5f16152d94da0[a];
this.nodes[d.vcc39adcdb1f4a420217110cea0fa179e].link(this.nodes[d.vf4d662395227e022ea839c916d479fa0]), this.nodes[d.vf4d662395227e022ea839c916d479fa0].link(this.nodes[d.vcc39adcdb1f4a420217110cea0fa179e])
}
this.v2b1c86a367609fc64a4532c7c9c82e3e()
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.v3c20dcc536caabb39816bcd58a6a0121 = function () {
var a = this;
this.v7a9ce2c4e74e75d3cc4ccdef17e58262 && (this.v7a9ce2c4e74e75d3cc4ccdef17e58262 = !1, this.v5f7a229843901b7645168b8756bd9f80.load(function () {
a.load(a.v5f7a229843901b7645168b8756bd9f80), a.v7a9ce2c4e74e75d3cc4ccdef17e58262 = !0, vdc7354c3cd5c7774f4dbfeba28eba934.instance.v8cf292f4364b69195a11d9e7acf9914b()
}))
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.vc17c0727221a2c171e079700895eeaaf = function (a) {
a == undefined && (a = 2e3);
var b = this;
setInterval(function () {
b.v3c20dcc536caabb39816bcd58a6a0121()
}, a)
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.v040524d79fd2ae5ca93384aa85fd60a4 = function (b) {
var a = this.v77d6dc73c0a0c078c42fc34c1c68ee7f[b.toUpperCase()];
if (a != null)
return a;
throw new Error('Could not find node \'' + b + '\' in place map. Did you forget to hash your this.nodes?')
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.vaed5f6f2d7e4bc585e9fd131eba0ec3c = function (b) {
var a = this.v77d6dc73c0a0c078c42fc34c1c68ee7f[b.toUpperCase()];
return a
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.v7b6988d03fae6235a1ad294f418da6ea = function (a, b) {
return this.vb4e37468a050bbf8f90f8ce9d7c450db(a, this.v040524d79fd2ae5ca93384aa85fd60a4(b))
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.vb4e37468a050bbf8f90f8ce9d7c450db = function (a, b) {
return a.x == b.x && a.y == b.y
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.vcf7911c290df33c3230015577434a694 = function (a, b) {
return this.vfc86802578e7dcdbfa2d00a3b095983f(this.v040524d79fd2ae5ca93384aa85fd60a4(a), this.v040524d79fd2ae5ca93384aa85fd60a4(b))
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.vfc86802578e7dcdbfa2d00a3b095983f = function (g, e, r) {
var f = new ve5efc04c89b9805e9d580437dd8af057;
if (g == e)
return f.nodes.push(e), f;
if (e.v05db26d76cc0bffb9d59521c55bc9f97(r))
return null;
var a, d, n, i;
for (var c = 0; c < this.nodes.length; ++c) {
var h = this.nodes[c];
h.__vf3519ee6f273867504965966427d93c3 = U.vb57864c2b24994a28548be73b11c2d8f - 1, h.__v478e9bb8d50167ef5a9d1d2d2770a170 = !1, h.__v87d4b2e209b1b68599242d563509051f = null
}
g.__vf3519ee6f273867504965966427d93c3 = 0, g.__v478e9bb8d50167ef5a9d1d2d2770a170 = !1, g.__v87d4b2e209b1b68599242d563509051f = null;
for (var c = 0; c < this.nodes.length; c++) {
var l = 0, m = U.vb57864c2b24994a28548be73b11c2d8f - 1 + 1;
for (var b = 0; b < this.nodes.length; b++)
!this.nodes[b].__v478e9bb8d50167ef5a9d1d2d2770a170 && this.nodes[b].__vf3519ee6f273867504965966427d93c3 < m && (l = b, m = this.nodes[b].__vf3519ee6f273867504965966427d93c3);
a = this.nodes[l];
var o = a.va104dfefa6670b37275d51b041f7e0bd(), p = a.vb7e6933e08c4de316a6e97ab4fff0a64();
for (var b = 0; b < p.length; b++) {
d = p[b];
var q = d.va104dfefa6670b37275d51b041f7e0bd(), j = q.x - o.x, k = q.y - o.y;
i = Math.sqrt(j * j + k * k * 4), d.weight && (i *= d.weight), n = Math.floor(U.v5a33af290722fa9ee3228db0a1f4ba30(i, 0, U.vb57864c2b24994a28548be73b11c2d8f - 1)), d.__vf3519ee6f273867504965966427d93c3 > a.__vf3519ee6f273867504965966427d93c3 + n && (a.v05db26d76cc0bffb9d59521c55bc9f97(r) == 0 || a == g) && (d.__vf3519ee6f273867504965966427d93c3 = a.__vf3519ee6f273867504965966427d93c3 + n, d.__v87d4b2e209b1b68599242d563509051f = a)
}
a.__v478e9bb8d50167ef5a9d1d2d2770a170 = !0
}
if (e.__vf3519ee6f273867504965966427d93c3 < 0 || e.__vf3519ee6f273867504965966427d93c3 >= U.vb57864c2b24994a28548be73b11c2d8f - 1)
return null;
a = e;
while (a != null)
f.nodes.splice(0, 0, a), a = a.__v87d4b2e209b1b68599242d563509051f;
return f
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.v6cf7759ff003ffe1dacf39e67b26f2ea = function (f, g) {
var b = Number.MAX_VALUE, c = null;
for (var a = 0; a < this.nodes.length; ++a) {
var d = this.nodes[a], e = U.v84eedb61e1366b8609056884e40b965e(f, d.va104dfefa6670b37275d51b041f7e0bd());
e < b && (c = d, b = e)
}
return this.vfc86802578e7dcdbfa2d00a3b095983f(c, this.v040524d79fd2ae5ca93384aa85fd60a4(g))
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.link = function (a, b) {
a.link(b), b.link(a)
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.v551c6f72540b09aac5f2e23ff872b272 = function (a, b) {
a.link(b)
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.v5f9677f6574a04c460650f52a22d80aa = function (a, b) {
a.v5f9677f6574a04c460650f52a22d80aa(b), b.v5f9677f6574a04c460650f52a22d80aa(a)
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.v27dac7fbf5300cf30b7f7fbca775034a = function (a, b) {
a.v27dac7fbf5300cf30b7f7fbca775034a(b), b.v27dac7fbf5300cf30b7f7fbca775034a(a)
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.vbb9a445f5effdfc91e5ff102d0db998f = function (c, d) {
for (var a = 0; a < this.nodes.length; a++) {
var b = this.nodes[a];
if (U.va8b5009a1e24fd5735deb7089099e7fc(c, b.va104dfefa6670b37275d51b041f7e0bd()) < d)
return b
}
return null
}, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.vf28ed955aac5cd06bceea010c659a590 = function (f) {
var b = Number.MAX_VALUE, c = null;
for (var a = 0; a < this.nodes.length; ++a) {
var d = this.nodes[a], e = U.v84eedb61e1366b8609056884e40b965e(f, d.va104dfefa6670b37275d51b041f7e0bd());
e < b && (c = d, b = e)
}
return c
}, v00c9f4d149099c55b010722e6778dab5.prototype = Object.create(ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype), v00c9f4d149099c55b010722e6778dab5.prototype.constructor = v00c9f4d149099c55b010722e6778dab5, v00c9f4d149099c55b010722e6778dab5.prototype.vdd0046736cb012b2def15a8446c4d16a = function (e) {
var d = [], b = e.vcc77bc27257eacc34b9ae960e98b2a58(), c = e.vf69f83b7881171f56e24f163d93955a1();
if (_.isNumber(b)) {
if (b > 0) {
var a = this.vaed5f6f2d7e4bc585e9fd131eba0ec3c(this.v4541032622e9bef1a24a2380fa9cad62(b - 1, c));
a && d.v657e3b6ac90f6a38de6cb0a741ad936e(a)
}
if (b < this.vd4559ec46feaee596db445b5fbbd1c04) {
var a = this.vaed5f6f2d7e4bc585e9fd131eba0ec3c(this.v4541032622e9bef1a24a2380fa9cad62(b + 1, c));
a && d.v657e3b6ac90f6a38de6cb0a741ad936e(a)
}
}
if (_.isNumber(c)) {
if (c > 0) {
var a = this.vaed5f6f2d7e4bc585e9fd131eba0ec3c(this.v4541032622e9bef1a24a2380fa9cad62(b, c - 1));
a && d.v657e3b6ac90f6a38de6cb0a741ad936e(a)
}
if (c < this.v4d540c1e881391f0d209ebed4aeec651) {
var a = this.vaed5f6f2d7e4bc585e9fd131eba0ec3c(this.v4541032622e9bef1a24a2380fa9cad62(b, c + 1));
a && d.v657e3b6ac90f6a38de6cb0a741ad936e(a)
}
}
return d
}, v00c9f4d149099c55b010722e6778dab5.prototype.v722981c5d57a8249ee3363033649fa0f = function (a) {
var b = a.vcc77bc27257eacc34b9ae960e98b2a58();
_.isNumber(b) && (_.isUndefined(this.vd4559ec46feaee596db445b5fbbd1c04) && (this.vd4559ec46feaee596db445b5fbbd1c04 = b), this.vd4559ec46feaee596db445b5fbbd1c04 = Math.max(this.vd4559ec46feaee596db445b5fbbd1c04, b));
var c = a.vf69f83b7881171f56e24f163d93955a1();
_.isNumber(c) && (_.isUndefined(this.v4d540c1e881391f0d209ebed4aeec651) && (this.v4d540c1e881391f0d209ebed4aeec651 = c), this.v4d540c1e881391f0d209ebed4aeec651 = Math.max(this.v4d540c1e881391f0d209ebed4aeec651, c)), a.map = this, ve9bfc6b4c64ef0d4e77d278e430a47e9.prototype.v722981c5d57a8249ee3363033649fa0f.call(this, a)
}, v00c9f4d149099c55b010722e6778dab5.prototype.v4541032622e9bef1a24a2380fa9cad62 = function (a, b) {
return 'N' + a + '-' + b
}, v4aab7331ac7595e7894e32c19542a754.prototype.va104dfefa6670b37275d51b041f7e0bd = function () {
return new Point(this.x, this.y)
}, v4aab7331ac7595e7894e32c19542a754.prototype.v00602c11b99a49d289192ceabbdd2f22 = function (a) {
this.x = a.x, this.y = a.y
}, v4aab7331ac7595e7894e32c19542a754.prototype.vb508106b6842aacd405108a2fea8f059 = function () {
return _.isUndefined(this.width) ? 8 : this.width
}, v4aab7331ac7595e7894e32c19542a754.prototype.v8779877904cbdb3f6d302edade8b3ab9 = function () {
return _.isUndefined(this.height) ? 8 : this.height
}, v4aab7331ac7595e7894e32c19542a754.prototype.v26baece43410e172361dfa585625b2bf = function (e) {
var a = this.vb508106b6842aacd405108a2fea8f059(), b = this.v8779877904cbdb3f6d302edade8b3ab9(), f = this.v06061aa61a109873316d17c1a6ad57e0 == undefined ? .5 : this.v06061aa61a109873316d17c1a6ad57e0, g = this.v04ab3916b6c27abc67ffd69caea6f891 == undefined ? .5 : this.v04ab3916b6c27abc67ffd69caea6f891, h = e.next(a), i = e.next(b), c = U.vd4b812106241ad35180ec35536ba68dd(f * a / 1, g * b / 1, 0, 0, 1, 1), d = U.vd4b812106241ad35180ec35536ba68dd(h, i, this.x - c.x, this.y - c.y, 1, 1);
return new Point(Math.floor(d.x), Math.floor(d.y))
}, v4aab7331ac7595e7894e32c19542a754.prototype.v05db26d76cc0bffb9d59521c55bc9f97 = function () {
return this.blocked === !0
}, v4aab7331ac7595e7894e32c19542a754.prototype.vb7e6933e08c4de316a6e97ab4fff0a64 = function () {
return this.__v47f94a3beadb5f7bacde3f18b0d4b434 || (this.__v47f94a3beadb5f7bacde3f18b0d4b434 = this.v07e4c49087fff0680c161fa507f9d281 ? this.v07e4c49087fff0680c161fa507f9d281 : [], this.map && (this.__v47f94a3beadb5f7bacde3f18b0d4b434 = _.uniq(_.union(this.v07e4c49087fff0680c161fa507f9d281, this.map.vdd0046736cb012b2def15a8446c4d16a(this)))), this.__v47f94a3beadb5f7bacde3f18b0d4b434 = _.difference(this.__v47f94a3beadb5f7bacde3f18b0d4b434, this.vec2438343f67b47eb7dc4b967ba2c2e7)), this.__v47f94a3beadb5f7bacde3f18b0d4b434
}, v4aab7331ac7595e7894e32c19542a754.prototype.link = function (a) {
this.v07e4c49087fff0680c161fa507f9d281 || (this.v07e4c49087fff0680c161fa507f9d281 = []), this.v07e4c49087fff0680c161fa507f9d281.indexOf(a) == -1 && this.v07e4c49087fff0680c161fa507f9d281.push(a), delete this.__v47f94a3beadb5f7bacde3f18b0d4b434
}, v4aab7331ac7595e7894e32c19542a754.prototype.v5f9677f6574a04c460650f52a22d80aa = function (a) {
_.isUndefined(this.vec2438343f67b47eb7dc4b967ba2c2e7) && (this.vec2438343f67b47eb7dc4b967ba2c2e7 = []), _.contains(this.vec2438343f67b47eb7dc4b967ba2c2e7, a) || this.vec2438343f67b47eb7dc4b967ba2c2e7.v657e3b6ac90f6a38de6cb0a741ad936e(a), delete this.__v47f94a3beadb5f7bacde3f18b0d4b434
}, v4aab7331ac7595e7894e32c19542a754.prototype.v27dac7fbf5300cf30b7f7fbca775034a = function (a) {
this.vec2438343f67b47eb7dc4b967ba2c2e7 && _.includes(this.vec2438343f67b47eb7dc4b967ba2c2e7, a) && (_.contains(this.v07e4c49087fff0680c161fa507f9d281, a) || this.link(a), this.vec2438343f67b47eb7dc4b967ba2c2e7.v6658d41901465458c34d0790e8086649(a)), delete this.__v47f94a3beadb5f7bacde3f18b0d4b434
}, ve5efc04c89b9805e9d580437dd8af057.prototype.ve185849ce9265b887e774f0e9e63fecf = function () {
var c = [];
for (var a = 1; a < this.nodes.length; a++) {
var e = this.nodes[a].va104dfefa6670b37275d51b041f7e0bd();
if (_.isObject(this.nodes[a].pathLocationOffset)) {
plo = this.nodes[a].pathLocationOffset;
var d = vc56db26a7d220393e60c22b49b5e2d89 = 0;
if (_.isNumber(plo.x) && _.isNumber(plo.y))
d = plo.x, vc56db26a7d220393e60c22b49b5e2d89 = plo.y;
else if (_.isObject(plo)) {
var f = this.nodes[a - 1].va104dfefa6670b37275d51b041f7e0bd(), g = this.nodes[a].va104dfefa6670b37275d51b041f7e0bd(), b = '';
f.x - g.x < 0 ? f.y - g.y < 0 ? b = 'NW' : b = 'SW' : f.y - g.y < 0 ? b = 'NE' : b = 'SE', d = plo[b].x, vc56db26a7d220393e60c22b49b5e2d89 = plo[b].y
}
if (e.x += d, e.y += vc56db26a7d220393e60c22b49b5e2d89, c.length > 0) {
var h = c[c.length - 1];
h.x += d, h.y += vc56db26a7d220393e60c22b49b5e2d89
}
}
c.v657e3b6ac90f6a38de6cb0a741ad936e(e)
}
return c
}, ve5efc04c89b9805e9d580437dd8af057.prototype.v6b4801ede8a24c3252d71140663e257f = function (d) {
var b = [];
for (var a = 1; a < this.nodes.length; a++) {
var c = this.nodes[a].v26baece43410e172361dfa585625b2bf(d);
b.v657e3b6ac90f6a38de6cb0a741ad936e(c)
}
return b
}, ve5efc04c89b9805e9d580437dd8af057.prototype.v85f7358b5fd3abf0082918fe1449bd43 = function () {
if (!_.isUndefined(this.__vf3519ee6f273867504965966427d93c3))
return this.__vf3519ee6f273867504965966427d93c3;
var d = 0;
for (var a = 1; a < this.nodes.length; a++) {
var e = U.v84eedb61e1366b8609056884e40b965e(this.nodes[a].va104dfefa6670b37275d51b041f7e0bd(), this.nodes[a - 1].va104dfefa6670b37275d51b041f7e0bd()), b = 0;
for (var c = 0; c < 2; c++)
this.nodes[a - c].weight ? b += this.nodes[a - c].weight : b += 1;
b != 2 && (e *= b / 2), d += _.round(e, 5)
}
return this.__vf3519ee6f273867504965966427d93c3 = d, d
}, ve5efc04c89b9805e9d580437dd8af057.prototype.vd19a4a5f65708121730ad2134000bba8 = function () {
return _.last(this.nodes)
}, ve5efc04c89b9805e9d580437dd8af057.prototype.v8068713d433f10b45ee5112a420aa8d4 = function (c) {
var b = [];
for (var a = 1; a < this.nodes.length; a++)
this.nodes[a].weight ? b.v657e3b6ac90f6a38de6cb0a741ad936e(c * 1 / this.nodes[a].weight) : b.v657e3b6ac90f6a38de6cb0a741ad936e(c);
return b
}, SurveyQuestion.prototype = Object.create(Object.prototype), SurveyQuestion.prototype.constructor = SurveyQuestion, SurveyQuestion.prototype.v822f4c16faab5b72e34c0d9070c84d65 = function () {
return this.v23884ec3fc121e3c7808655b89bce0c4
}, SurveyQuestion.prototype.v20549d4c3ef8d61b12026e3ed8d6739d = function (a) {
this.v23884ec3fc121e3c7808655b89bce0c4 = a
}, SurveyQuestion.va0b5da2ed6533215688ed4589aa426fe = function (b, c, d, e) {
var a = new SurveyQuestion;
return a.ShortName = b, a.Question = c, a.PossibleResponsesConcatenated = d, a.ChartType = e, a
}, SurveyQuestion.prototype.toString = function () {
return this.Question
}, v736a525eea2e8b45f2a1f2c1dcbf294b.prototype = Object.create(Object.prototype), v736a525eea2e8b45f2a1f2c1dcbf294b.prototype.constructor = v736a525eea2e8b45f2a1f2c1dcbf294b, v736a525eea2e8b45f2a1f2c1dcbf294b.prototype.init = function (a) {
this.va39651d0ad80a45b65daa6da6329a238 = a
}, v736a525eea2e8b45f2a1f2c1dcbf294b.prototype.v75dac187f5922cdd3a137f90e2f53137 = function () {
return this.vb21ecfb5c00e851c793e579e1c88b6b7
}, v736a525eea2e8b45f2a1f2c1dcbf294b.prototype.v36897ca5e637beddabe5061641478485 = function (a) {
this.vb21ecfb5c00e851c793e579e1c88b6b7.push(a)
}, v736a525eea2e8b45f2a1f2c1dcbf294b.prototype.v0a449dbcfd0d987d54029ffb95df068a = function () {
return this.va39651d0ad80a45b65daa6da6329a238
}, v1249eb5de6a878e85aada1930a258c75.prototype = Object.create(Object.prototype), v1249eb5de6a878e85aada1930a258c75.prototype.constructor = v1249eb5de6a878e85aada1930a258c75, v1249eb5de6a878e85aada1930a258c75.v7d4619205d81343277afe1d1e2c7fc92 = 5, v1249eb5de6a878e85aada1930a258c75.v1df357576057ea27efcba24410bfc9c0 = 500, v1249eb5de6a878e85aada1930a258c75.v841a17d75db4c0b16b17c1016b180926 = 5, v1249eb5de6a878e85aada1930a258c75.v5382d27c51e7ad44c39b229b974df391 = .5, v1249eb5de6a878e85aada1930a258c75.vb5eb791440188455899f20236eb2e832 = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Customers'), v1249eb5de6a878e85aada1930a258c75.v41afe0328bec3d1dea8c9a6c8054f20f, v1249eb5de6a878e85aada1930a258c75.prototype.v7e3c206276e9a33768109b2e76e546fc = function (a) {
throw new Error('Survey.Execute not overridden.')
}, v1249eb5de6a878e85aada1930a258c75.prototype.vfc0c58ca56e0c1e23ce00005e97fedbb = function (a, b, c) {
return
}, v1249eb5de6a878e85aada1930a258c75.prototype.toString = function () {
return this.date.v2bdd3cf6f0c76247ea8f4fd7a4d766e6()
}, v1249eb5de6a878e85aada1930a258c75.prototype.vd6bec973443a355f60d142d43fac1d49 = function () {
return this.date
}, v1249eb5de6a878e85aada1930a258c75.prototype.v7f93cf74bb5d7a47b089d8cc1fb10df5 = function () {
return this.v459eb44430d6db2838819449245a6d93
}, v1249eb5de6a878e85aada1930a258c75.prototype.v62f60be0ea6e9cdbe42ff808c2bfec7d = function () {
return this.responses
}, v1249eb5de6a878e85aada1930a258c75.vde471b3571d87de220fd2746889371dd = function (c) {
for (var a = 0; a < v41afe0328bec3d1dea8c9a6c8054f20f.length; ++a) {
var b = v41afe0328bec3d1dea8c9a6c8054f20f[a];
if (b.ShortName == c)
return b
}
return null
}, v1249eb5de6a878e85aada1930a258c75.v4abc7063a0a062c7d8bea164d18c1c39 = function (c) {
v41afe0328bec3d1dea8c9a6c8054f20f = c;
for (var a = 0; a < v41afe0328bec3d1dea8c9a6c8054f20f.length; ++a) {
var b = v41afe0328bec3d1dea8c9a6c8054f20f[a];
b.v20549d4c3ef8d61b12026e3ed8d6739d(b.PossibleResponsesConcatenated.split('|')), b.PossibleResponsesConcatenated = null
}
}, v1249eb5de6a878e85aada1930a258c75.prototype.v9149502e9326c33b9f22bd727a7a7be3 = function () {
var a = v1249eb5de6a878e85aada1930a258c75.v841a17d75db4c0b16b17c1016b180926 * this.responses.length, b = v1249eb5de6a878e85aada1930a258c75.v5382d27c51e7ad44c39b229b974df391 * this.vf49d8fbdcb0195e63ede0cc06ae5fe81.length * this.responses.length;
return v1249eb5de6a878e85aada1930a258c75.v1df357576057ea27efcba24410bfc9c0 + a + b
}, frmSurvey.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmSurvey.prototype.constructor = frmSurvey, frmSurvey.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
var b = this;
this.v835d55ce2dd410c62c596a77d1deac3e.empty();
for (var a = 0; a < v1249eb5de6a878e85aada1930a258c75.v39a995cab8d75851138cade02ba01be2.length; a++) {
var c = v1249eb5de6a878e85aada1930a258c75.v39a995cab8d75851138cade02ba01be2[a];
if (c.hidden === !0 && !A.vf3351ba56d8b7e42f05b30b819a9db80().designerModeEnabled)
continue;
var d = $('<div class=\'checkbox\'>'), e = $('<label class=\'labelbs2\'><input type=checkbox id=\'q' + a + '\'>' + c.Question + '</label>');
e.click(function () {
b.v618b0e2049f0c518b6aed9bb9f6f52be()
}), e.appendTo(d), d.appendTo(this.v835d55ce2dd410c62c596a77d1deac3e)
}
this.v061a2785387607e1d7e383de5ae686ef && (this.v8918e64a99d3826a9fc97b27e0cdaedf.addClass('col-xs-4 minpad'), this.vbf148f9b9a5a1afe2e82720d8160887c.removeClass('col-xs-12').addClass('col-xs-8'), this.v8918e64a99d3826a9fc97b27e0cdaedf.css('display', 'inline'), this.v33d8be2313eb1b4563118a8c0499332f(this.v39636c7afe796941b56801c5e52898d7, {
placement: 'bottom',
integer: !0,
min: 0,
max: 10 * this.vd1ff08a5706e6d50164e77ae1b1406e6
})), this.v39636c7afe796941b56801c5e52898d7.val(this.vd1ff08a5706e6d50164e77ae1b1406e6), this.v39636c7afe796941b56801c5e52898d7.keyup(function () {
b.v8d09a1248b950ce7a0d0788e93103e62()
}), this.vc994371c5a5a20bac6e956f86730b287.on('click', _.bind(function () {
this.v835d55ce2dd410c62c596a77d1deac3e.find('input').prop('checked', !0), this.v8d09a1248b950ce7a0d0788e93103e62()
}, this)), this.va4115d786876d67e7e57377bd00c20d6.on('click', _.bind(function () {
this.v835d55ce2dd410c62c596a77d1deac3e.find('input').prop('checked', !1), this.v8d09a1248b950ce7a0d0788e93103e62()
}, this)), this.v8d09a1248b950ce7a0d0788e93103e62()
}, frmSurvey.prototype.v0187c72374034bed637a4c60de216138 = function (a, b) {
this.vcb519d3d4ef0f894468aab43b30f54f1 = a, this.v3b70f826ddbb3e466d0994fc129daa2e = b
}, frmSurvey.prototype.vbbfdd1fbec48344aa840f2c1c555c2d9 = function (a) {
this.v69cae692ace155bf2f816d6294dc710d = a
}, frmSurvey.prototype.va2441da6ffe633f109e445b307e4d81b = function (a, b) {
this.v3037b1bec2f95933a8edcc2103e25229 = a, this.v05720c4aa4bdbb58e1043be4ad82660b = b
}, frmSurvey.prototype.v8c8c6361fba47e840d52d312e89e8e73 = function () {
if (this.v061a2785387607e1d7e383de5ae686ef && !this.v067928f001d9165976f0c43cce82e925().vf32b3931c79c80d602081f229c54e704) {
Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Please re-enter Number to Survey'));
return
}
this.v429a76019febf1ed58812e456cc7a490.date = vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.now;
for (var a = 0; a < v1249eb5de6a878e85aada1930a258c75.v39a995cab8d75851138cade02ba01be2.length; ++a) {
var e = this.v835d55ce2dd410c62c596a77d1deac3e.find('#q' + a);
if (this.vc26a27a39cfa603a430408c9a0c148db(e)) {
var c = new SurveyQuestion;
_.merge(c, _.clone(v1249eb5de6a878e85aada1930a258c75.v39a995cab8d75851138cade02ba01be2[a])), this.v429a76019febf1ed58812e456cc7a490.vf49d8fbdcb0195e63ede0cc06ae5fe81.v657e3b6ac90f6a38de6cb0a741ad936e(c)
}
}
if (this.v429a76019febf1ed58812e456cc7a490.vf49d8fbdcb0195e63ede0cc06ae5fe81.length == 0) {
Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('You must select at least one question.'), U.vbacce6a42a9154e1b2ea38c9b107fbb2('Input Required'));
return
}
this.v061a2785387607e1d7e383de5ae686ef ? this.v429a76019febf1ed58812e456cc7a490.va03c539e0e6b542b6e109ecc96d078e1(this.v94e91b0cb1d8550cd31fccf294bff404(this.v39636c7afe796941b56801c5e52898d7)) : this.v429a76019febf1ed58812e456cc7a490.va03c539e0e6b542b6e109ecc96d078e1(this.vd1ff08a5706e6d50164e77ae1b1406e6), this.vcb519d3d4ef0f894468aab43b30f54f1 != undefined && this.vcb519d3d4ef0f894468aab43b30f54f1.vbc3f437d147654d5b4047440bac28533(this.v3b70f826ddbb3e466d0994fc129daa2e, this.vbceab8e8705bad3ca14d23a2dc64f84d, 'Cash');
var b = [];
this.v3037b1bec2f95933a8edcc2103e25229 != undefined ? (this.v3037b1bec2f95933a8edcc2103e25229.v657e3b6ac90f6a38de6cb0a741ad936e(this.v429a76019febf1ed58812e456cc7a490), this.v3037b1bec2f95933a8edcc2103e25229.length > this.v05720c4aa4bdbb58e1043be4ad82660b && this.v3037b1bec2f95933a8edcc2103e25229.v286b6775db42a6c32fd4458068965906(0), b = this.v3037b1bec2f95933a8edcc2103e25229) : b.v657e3b6ac90f6a38de6cb0a741ad936e(this.v429a76019febf1ed58812e456cc7a490), this.v69cae692ace155bf2f816d6294dc710d != undefined && this.v69cae692ace155bf2f816d6294dc710d.vc2efdb89ecdb56c0e8ae271473dd61f9(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Conducted survey at cost of {0}.', U.vd2b41c989db2a5e0c4b05790433f1562(this.vbceab8e8705bad3ca14d23a2dc64f84d)));
var d = new frmSurveyResults;
d.init(b), d.show(), this.close()
}, frmSurvey.prototype.v5b776df159cb39610d8078576ff9214f = function () {
this.close()
}, frmSurvey.prototype.v618b0e2049f0c518b6aed9bb9f6f52be = function () {
this.v8d09a1248b950ce7a0d0788e93103e62()
}, frmSurvey.prototype.vbf073972334db340c9c1cc5fa8e80a4e = function () {
this.v8d09a1248b950ce7a0d0788e93103e62()
}, frmSurvey.prototype.v8d09a1248b950ce7a0d0788e93103e62 = function () {
if (this.v061a2785387607e1d7e383de5ae686ef) {
var b = 0;
for (var a = 0; a < v1249eb5de6a878e85aada1930a258c75.v39a995cab8d75851138cade02ba01be2.length; ++a) {
var f = this.v835d55ce2dd410c62c596a77d1deac3e.find('#q' + a);
this.vc26a27a39cfa603a430408c9a0c148db(f) && b++
}
var c = this.v94e91b0cb1d8550cd31fccf294bff404(this.v39636c7afe796941b56801c5e52898d7), d = v1249eb5de6a878e85aada1930a258c75.v841a17d75db4c0b16b17c1016b180926 * c, e = v1249eb5de6a878e85aada1930a258c75.v5382d27c51e7ad44c39b229b974df391 * b * c;
this.vbceab8e8705bad3ca14d23a2dc64f84d = v1249eb5de6a878e85aada1930a258c75.v1df357576057ea27efcba24410bfc9c0 + d + e, this.v1e4c9af5f44e24cdadc1f1315e6b14fc.text(U.v874037f3f746c55c9786e3899fdfb8ef(v1249eb5de6a878e85aada1930a258c75.v1df357576057ea27efcba24410bfc9c0)), this.vaed342ece6720622d5a56857c09f658e.text(U.v874037f3f746c55c9786e3899fdfb8ef(d)), this.vc2990086cd7cb104b526d052522c24bc.text(U.v874037f3f746c55c9786e3899fdfb8ef(e)), this.v4c92a5e9075861c12370650eedb7c27e.text(U.v874037f3f746c55c9786e3899fdfb8ef(this.vbceab8e8705bad3ca14d23a2dc64f84d))
}
}, frmSurvey.prototype.v9ab87e68176af512ae14f98cc3a76ded = function () {
this.v8d09a1248b950ce7a0d0788e93103e62()
}, frmSurveyResults.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmSurveyResults.prototype.constructor = frmSurveyResults, frmSurveyResults.v506713bb038240e0cc936fb479d1c7b5 = 15, frmSurveyResults.prototype.init = function (a) {
this.v3037b1bec2f95933a8edcc2103e25229 = a
}, frmSurveyResults.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
var a = this;
if (this.v3037b1bec2f95933a8edcc2103e25229.length == 0) {
Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Please take a survey first.'), U.vbacce6a42a9154e1b2ea38c9b107fbb2('Survey Required')), this.close();
return
}
this.v2f085bbe035723cc1cc71babb5763bdc.change(function () {
a.v53abb9eac646bbe8bf082aab4059077b()
}), this.vb7c8fb0701f61a911af2d17f9e4352a8(this.v2f085bbe035723cc1cc71babb5763bdc, this.v3037b1bec2f95933a8edcc2103e25229), this.vf3a390b65c19822fb8d9c96f2a365226(this.v2f085bbe035723cc1cc71babb5763bdc, this.v3037b1bec2f95933a8edcc2103e25229.length - 1), this.v5c05a3d6f40d0dfbeda4b1b0045b3ed4.change(function () {
a.v89ae93e39bdb37cf4f1d32784d85a03a()
}), this.v2f085bbe035723cc1cc71babb5763bdc.removeAttr('disabled'), this.v5c05a3d6f40d0dfbeda4b1b0045b3ed4.removeAttr('disabled'), this.v53abb9eac646bbe8bf082aab4059077b()
}, frmSurveyResults.prototype.vc2b6a9b9a62bd7cddc2cd55a3a2927a8 = function (j, e) {
var c = 0, d = [], a = [], b = !1;
!_.isUndefined(j.Horizontal) && j.Horizontal == 1 && (b = !0);
for (var h = 0; h < e.length; h++) {
var i = e[h];
b ? d.v657e3b6ac90f6a38de6cb0a741ad936e([
i.v131b2ad5058f13f05fac04e9eb73bbd6,
c
]) : d.v657e3b6ac90f6a38de6cb0a741ad936e([
c,
i.v131b2ad5058f13f05fac04e9eb73bbd6
]), a.v657e3b6ac90f6a38de6cb0a741ad936e([
c,
i.response
]), c++
}
this.plot.height(300), e.length > 15 && this.plot.height(300 + (e.length - 15) * 20);
var f = {
xaxis: {
ticks: a,
color: '#FFFFFF',
font: {
size: 14,
lineHeight: 13,
family: 'Arial,sans-serif',
color: '#444444'
}
},
yaxis: {
font: {
size: 14,
lineHeight: 13,
family: 'Arial,sans-serif',
color: '#444444'
}
}
};
b && (delete f.xaxis.ticks, f.yaxis.ticks = a), $.plot(this.plot, [{
data: d,
bars: {
show: !0,
barWidth: .5,
align: 'center',
horizontal: b,
lineWidth: 0,
fillColor: {
colors: [
'#0080CC',
'#005299'
]
}
}
}], f);
var g = this.table.find('tbody');
g.empty(), _.forEach(d, function (c) {
b ? g.append(U.vbacce6a42a9154e1b2ea38c9b107fbb2('<tr><th scope=\'row\'>{0}</th><td>{1}</td></tr>', [
a[c[1]][1],
c[0]
])) : g.append(U.vbacce6a42a9154e1b2ea38c9b107fbb2('<tr><th scope=\'row\'>{0}</th><td>{1}</td></tr>', [
a[c[0]][1],
c[1]
]))
})
}, frmSurveyResults.prototype.v5b776df159cb39610d8078576ff9214f = function () {
this.close()
}, frmSurveyResults.prototype.v53abb9eac646bbe8bf082aab4059077b = function () {
var e = this;
this.v429a76019febf1ed58812e456cc7a490 = this.v852d31a31264da31b7235893fee1de99(this.v2f085bbe035723cc1cc71babb5763bdc), this.v5c05a3d6f40d0dfbeda4b1b0045b3ed4.empty(), this.vb7c8fb0701f61a911af2d17f9e4352a8(this.v5c05a3d6f40d0dfbeda4b1b0045b3ed4, this.v429a76019febf1ed58812e456cc7a490.vf49d8fbdcb0195e63ede0cc06ae5fe81), this.vf3a390b65c19822fb8d9c96f2a365226(this.v5c05a3d6f40d0dfbeda4b1b0045b3ed4, 0);
var b = '';
for (var c = 0; c < this.v429a76019febf1ed58812e456cc7a490.vf49d8fbdcb0195e63ede0cc06ae5fe81.length; c++) {
var a = this.v429a76019febf1ed58812e456cc7a490.vf49d8fbdcb0195e63ede0cc06ae5fe81[c];
if (a.ChartType == 'Chart') {
b += U.vbacce6a42a9154e1b2ea38c9b107fbb2('<label id=\'{0}\'>{1}</label><div role=\'group\' aria-labelledby=\'{2}\'>', [
a.ShortName,
a.Question,
a.ShortName
]), a.v23884ec3fc121e3c7808655b89bce0c4.length > 6 && (b += '<a class=\'checkAll\' href=\'#\'>Check All</a>&nbsp;/&nbsp;<a class=\'uncheckAll\' href=\'#\'>Uncheck All</a>');
for (var d = 0; d < a.v23884ec3fc121e3c7808655b89bce0c4.length; d++) {
var f = 'q' + c + 'r' + d;
b += U.vbacce6a42a9154e1b2ea38c9b107fbb2('<div class=\'checkbox\' role=\'option\'><label for=\'{0}\'><input id=\'{1}\' type=checkbox>{2}</label></div>', [
f,
f,
a.v23884ec3fc121e3c7808655b89bce0c4[d]
])
}
b += '</div>'
}
}
this.v91eae3e8338d8a8d656f6ec414f99913.html(b), this.v91eae3e8338d8a8d656f6ec414f99913.find('input').click(function (a) {
e.v4db14bcda9b90099e31eae415128d4e2(a)
}).prop('checked', !0), this.v91eae3e8338d8a8d656f6ec414f99913.find('.uncheckAll').click(function (a) {
e.v03b413a62636b8ad3c8dc32d436a1bfe(a, !1)
}), this.v91eae3e8338d8a8d656f6ec414f99913.find('.checkAll').click(function (a) {
e.v03b413a62636b8ad3c8dc32d436a1bfe(a, !0)
}), this.v89ae93e39bdb37cf4f1d32784d85a03a(), this.selector.on('dialogresizestop', _.bind(this.v89ae93e39bdb37cf4f1d32784d85a03a, this))
}, frmSurveyResults.prototype.v03b413a62636b8ad3c8dc32d436a1bfe = function (a, b) {
$(a.target).parent().find('input').prop('checked', b), this.v4db14bcda9b90099e31eae415128d4e2()
}, frmSurveyResults.prototype.v4db14bcda9b90099e31eae415128d4e2 = function (a) {
this.v89ae93e39bdb37cf4f1d32784d85a03a()
}, frmSurveyResults.prototype.v651169a70c4c263d748e137a8e403282 = function (b) {
for (var a = 0; a < this.v429a76019febf1ed58812e456cc7a490.vf49d8fbdcb0195e63ede0cc06ae5fe81.length; a++) {
var c = this.v429a76019febf1ed58812e456cc7a490.vf49d8fbdcb0195e63ede0cc06ae5fe81[a];
if (!_.any(b.vb21ecfb5c00e851c793e579e1c88b6b7[a], _.bind(function (c) {
var b = this.v91eae3e8338d8a8d656f6ec414f99913.find('#q' + a + 'r' + c);
return b.size() > 0 ? this.vc26a27a39cfa603a430408c9a0c148db(b) : !0
}, this)))
return !1
}
return !0
}, frmSurveyResults.prototype.v89ae93e39bdb37cf4f1d32784d85a03a = function () {
var e = [], b = this.v852d31a31264da31b7235893fee1de99(this.v5c05a3d6f40d0dfbeda4b1b0045b3ed4);
if (b.ChartType == 'Chart') {
var c = [];
for (var a = 0; a < b.v23884ec3fc121e3c7808655b89bce0c4.length; a++)
c.push(0);
_.forEach(this.v429a76019febf1ed58812e456cc7a490.v62f60be0ea6e9cdbe42ff808c2bfec7d(), _.bind(function (d) {
if (this.v651169a70c4c263d748e137a8e403282(d)) {
var b = d.vb21ecfb5c00e851c793e579e1c88b6b7[this.v7bb607ef58d58cf897bce533a4fdc10f(this.v5c05a3d6f40d0dfbeda4b1b0045b3ed4)];
b instanceof Array ? _.each(b, function (a) {
c[a]++
}) : (a = b, c[a]++)
}
}, this));
for (var a = 0; a < b.v23884ec3fc121e3c7808655b89bce0c4.length; a++) {
var d = !1;
if (_.isUndefined(b.SuppressZeroResponses) ? d = b.v23884ec3fc121e3c7808655b89bce0c4.length >= frmSurveyResults.v506713bb038240e0cc936fb479d1c7b5 : d = b.SuppressZeroResponses, d && c[a] == 0)
continue;
e.v657e3b6ac90f6a38de6cb0a741ad936e({
response: b.v23884ec3fc121e3c7808655b89bce0c4[a],
v131b2ad5058f13f05fac04e9eb73bbd6: c[a]
})
}
this.vb8dfc340585d48424ae9c28b243d00ff.show(), this.vd7895fabc49f449cc867e26970c47db7.hide(), this.vc2b6a9b9a62bd7cddc2cd55a3a2927a8(b, e)
} else {
var f = [];
_.forEach(this.v429a76019febf1ed58812e456cc7a490.v62f60be0ea6e9cdbe42ff808c2bfec7d(), _.bind(function (a) {
this.v651169a70c4c263d748e137a8e403282(a) && f.v657e3b6ac90f6a38de6cb0a741ad936e(a.vb21ecfb5c00e851c793e579e1c88b6b7[this.v7bb607ef58d58cf897bce533a4fdc10f(this.v5c05a3d6f40d0dfbeda4b1b0045b3ed4)])
}, this)), this.vb8dfc340585d48424ae9c28b243d00ff.hide(), this.vd7895fabc49f449cc867e26970c47db7.show(), this.v429a76019febf1ed58812e456cc7a490.vfc0c58ca56e0c1e23ce00005e97fedbb(b, f, this.vd7895fabc49f449cc867e26970c47db7)
}
}, frmSurveyResults.prototype.v2cca84d9625376b803f3283c9031a6b9 = function () {
this.v421bef07ab89e597c382d536809c43d9()
}, frmSurveyResults.prototype.vb2398140e1528bc1c68614994e554936 = function () {
this.v421bef07ab89e597c382d536809c43d9()
}, frmSurveyResults.prototype.v13e91c0e0c1945c7794d9281a79a4664 = function () {
this.v421bef07ab89e597c382d536809c43d9()
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype = Object.create(Object.prototype), v28f4c9f66e294b1221dd8f8a38a73a12.prototype.constructor = v28f4c9f66e294b1221dd8f8a38a73a12, v28f4c9f66e294b1221dd8f8a38a73a12.vde995d8824c797eefe0b7221063174b6 = 0, v28f4c9f66e294b1221dd8f8a38a73a12.vea79db0a6fa5b862222575c1860011c9 = 1, v28f4c9f66e294b1221dd8f8a38a73a12.vf4746afc6e33dfbbe1b35aaa30463839 = 2, v28f4c9f66e294b1221dd8f8a38a73a12.v98e573cab26c8017d967a470c0ef148c = 3, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.v31dca5913a39cc20578c6e1b1cf3a45b = function () {
return this.v4155b36cbe63e20ca6f36d5ca774b868
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.v3304e41fa2addb46040b46b94439b0b6 = function () {
return this.vfbea00c73f90b1688774f4d951256c09
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.v37a2ace943182543b5c8f84eab2ec696 = function () {
return this.vb5e8773f408aebc56183f045b53164c1
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.v93ad77c3383f64edf0fb1599f2f3007b = function () {
return this.vdd885c5c9e6e36fb6475bd0cc065ad27
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.v760fc62a6388edf5286f6bc87526a9d5 = function () {
return this.v7b78e28646d742077c92eda0b5918f29 != null
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.v26757c77caa3a5ddac4bca7dfbc9aeb6 = function () {
this.v7b78e28646d742077c92eda0b5918f29 == null && (this.v7b78e28646d742077c92eda0b5918f29 = new Date)
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.v244454c00096541107cc2f05130f2c75 = function () {
return this.ve2b65d026cfdf29d6999eab6d33044a7 != null
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.vc33e125cce69b65a6379adb3eec81bfd = function () {
this.ve2b65d026cfdf29d6999eab6d33044a7 == null && (this.ve2b65d026cfdf29d6999eab6d33044a7 = new Date)
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.vf091abdff6b52a71b31e06b0205b05b3 = function () {
return this.vaeba16bb7fc612586d3e0edff02df394 != null
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.v43cea617ede0d79d3f822e1727bd033b = function () {
this.vaeba16bb7fc612586d3e0edff02df394 == null && (this.vaeba16bb7fc612586d3e0edff02df394 = new Date)
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.v2648dee63d6b6eb04c922ef6010defd1 = function () {
return this.vad8ae53223f374f01108f86d252384cd != null
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.submit = function () {
this.vad8ae53223f374f01108f86d252384cd == null && (this.vad8ae53223f374f01108f86d252384cd = new Date)
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.v85425ef12b40f225b64c6b5046fbcf52 = function () {
var b = new Date, c = new vcfe882df616f899ab32c02dee5b814a6(b.getTime()), a = this.head;
while (a != null)
a.v85425ef12b40f225b64c6b5046fbcf52(c), a = a.next
}, v28f4c9f66e294b1221dd8f8a38a73a12.prototype.v2c56ab92c9d0d9614f03735890da0171 = function (b) {
if (this.v245dd66bb078b52b8de9ade71f90b1a1) {
var a = Math.min(this.v245dd66bb078b52b8de9ade71f90b1a1.length - 1, A.vf3351ba56d8b7e42f05b30b819a9db80().v69f691c44261b809936a2fce22619cb5('goalDifficultyLevel', 3) - 1);
return this.v245dd66bb078b52b8de9ade71f90b1a1[a][b]
}
return 0
}, v9b0369ebdbdfa3b2620a4be3c6872201.prototype = Object.create(Object.prototype), v9b0369ebdbdfa3b2620a4be3c6872201.prototype.constructor = v9b0369ebdbdfa3b2620a4be3c6872201, v9b0369ebdbdfa3b2620a4be3c6872201.prototype.v34ca259535325a6645ea4927dc68f282 = function () {
return this.ve0732c3b014b3ef9b8325f4e58a3f358 != null ? eval(this.ve0732c3b014b3ef9b8325f4e58a3f358) : !0
}, v9b0369ebdbdfa3b2620a4be3c6872201.prototype.v1c1faf02c54028858cb9668c741a0f9b = function () {
return this.v2ed33fc05fe111d24ed7493cc3696673 != null ? eval(this.v2ed33fc05fe111d24ed7493cc3696673) : void 0
}, v9b0369ebdbdfa3b2620a4be3c6872201.prototype.start = function () {
this.v50751a194fb118627129a54ac560b2a2 == null && (this.v50751a194fb118627129a54ac560b2a2 = new Date, this.v4b720c673788e5ccb3596d1aea3dc026 && this.v4b720c673788e5ccb3596d1aea3dc026.start()), this.v869b91e97af4ac41b03fe28750b206df && A.vf3351ba56d8b7e42f05b30b819a9db80().v5a071f9b5f88b21ae267ad7ab7dbb539(this.v869b91e97af4ac41b03fe28750b206df, this.va6bef0d9228abb79edd680a94829a610)
}, v9b0369ebdbdfa3b2620a4be3c6872201.prototype.complete = function () {
this.v64af07c5bad001b74d3d1e9e4039b94c == null && (this.v64af07c5bad001b74d3d1e9e4039b94c = new Date, this.v1c1faf02c54028858cb9668c741a0f9b())
}, v9b0369ebdbdfa3b2620a4be3c6872201.prototype.progress = function () {
this.v9cf019ead5f7d45138457cc8c7ae1b16 == null && (this.v9cf019ead5f7d45138457cc8c7ae1b16 = new Date)
}, v9b0369ebdbdfa3b2620a4be3c6872201.prototype.v5a8cbad96fb912d9948eb7d691a615ed = function () {
return this.v50751a194fb118627129a54ac560b2a2 != null
}, v9b0369ebdbdfa3b2620a4be3c6872201.prototype.v609215aae988710338b3109edbd8ae52 = function () {
return this.v64af07c5bad001b74d3d1e9e4039b94c != null
}, v9b0369ebdbdfa3b2620a4be3c6872201.prototype.vfca91946e276b82c9e3cd45ad1f9f02a = function () {
return this.v9cf019ead5f7d45138457cc8c7ae1b16 != null
}, v9b0369ebdbdfa3b2620a4be3c6872201.prototype.v9727e22f8c08329ba6c852650288d2e7 = function () {
return this.v4b720c673788e5ccb3596d1aea3dc026 != null
}, v9b0369ebdbdfa3b2620a4be3c6872201.prototype.v85425ef12b40f225b64c6b5046fbcf52 = function (a) {
this.v9727e22f8c08329ba6c852650288d2e7() && this.v4b720c673788e5ccb3596d1aea3dc026.v85425ef12b40f225b64c6b5046fbcf52(a)
}, v6da5168b02ae4243cad2eee5c9fc8f35.prototype = Object.create(Object.prototype), v6da5168b02ae4243cad2eee5c9fc8f35.prototype.constructor = v6da5168b02ae4243cad2eee5c9fc8f35, v6da5168b02ae4243cad2eee5c9fc8f35.prototype.start = function () {
for (var a = 0; a < this.vb21ecfb5c00e851c793e579e1c88b6b7.length; ++a)
this.vb21ecfb5c00e851c793e579e1c88b6b7[a].start()
}, v6da5168b02ae4243cad2eee5c9fc8f35.prototype.v85425ef12b40f225b64c6b5046fbcf52 = function (a) {
this.vb21ecfb5c00e851c793e579e1c88b6b7 = U.shuffle(this.vb21ecfb5c00e851c793e579e1c88b6b7, a)
}, ve3e5ba7ab1114452acfd6c55f263796e.prototype = Object.create(Object.prototype), ve3e5ba7ab1114452acfd6c55f263796e.prototype.constructor = ve3e5ba7ab1114452acfd6c55f263796e, ve3e5ba7ab1114452acfd6c55f263796e.prototype.getText = function () {
return this.formula != null && this.v93c677e38b739083bb48a1995d8935fd == null && (this.v93c677e38b739083bb48a1995d8935fd = new Date, this.text = eval(this.formula)), this.text
}, ve3e5ba7ab1114452acfd6c55f263796e.prototype.start = function () {
}, ve3e5ba7ab1114452acfd6c55f263796e.prototype.v5d31017e6c9fe3603a4a5f876cedd1b0 = function () {
this.v7e192ca80cea0b8310af800606ef7c80 == null && (this.v7e192ca80cea0b8310af800606ef7c80 = new Date), this.vbe7cf131b5d30a5afc7100dfaa81930a = !1, this.v3602243bd8251bd96baa4c931dacd3d9 ? SRMessage('Your answer is correct, select the Next button to continue.') : SRMessage('Your answer is incorrect, please try again.')
}, ve3e5ba7ab1114452acfd6c55f263796e.prototype.v07685d5120e84a65418fba8b0d27f5b4 = function () {
return this.vbe7cf131b5d30a5afc7100dfaa81930a
}, ve3e5ba7ab1114452acfd6c55f263796e.prototype.v3cfde28bda140b7e48e60c684d6f05d5 = function (a) {
this.vbe7cf131b5d30a5afc7100dfaa81930a = a
}, ve3e5ba7ab1114452acfd6c55f263796e.prototype.va28af30d034cc6b113ea5f73ff2015c7 = function () {
return this.v7e192ca80cea0b8310af800606ef7c80 != null
}, ve3e5ba7ab1114452acfd6c55f263796e.prototype.v57e25a3fd5225bde2ec1fde4bcc44f17 = function () {
return this.v3602243bd8251bd96baa4c931dacd3d9
}, vf88539405aa8911395226002442538ea.prototype = Object.create(Object.prototype), vf88539405aa8911395226002442538ea.prototype.constructor = vf88539405aa8911395226002442538ea, vf88539405aa8911395226002442538ea.prototype.ve58f5e75d2bb76573d04c55788c634d0 = function () {
var b = 1, a = this.state.head;
while (a != this.step)
a = a.next, b++;
return b
}, vf88539405aa8911395226002442538ea.prototype.v245ff79d366bd1fa82081bf2b0fcbabb = function () {
return this.state.count
}, vf88539405aa8911395226002442538ea.prototype.getText = function () {
return _.includes(this.step.text, '{goalMetric') ? this.step.text.replace(/\{goalMetric(\d)\}/gi, _.bind(function (b, a) {
return U.vd84eadcceba7c7ff874f8d08babd5fe2(this.state.v2c56ab92c9d0d9614f03735890da0171(a))
}, this)) : this.step.text
}, vf88539405aa8911395226002442538ea.prototype.v3177475b0d1ee44e193bd6b5def38d59 = function () {
return this.step.v4b720c673788e5ccb3596d1aea3dc026
}, vf88539405aa8911395226002442538ea.prototype.v3304e41fa2addb46040b46b94439b0b6 = function () {
return this.state.v3304e41fa2addb46040b46b94439b0b6()
}, vf88539405aa8911395226002442538ea.prototype.vbd2d8912b8d7d303aedcfaf7de58672f = function () {
var a = [];
return this.step.v4b720c673788e5ccb3596d1aea3dc026 && (a = this.step.v4b720c673788e5ccb3596d1aea3dc026.vb21ecfb5c00e851c793e579e1c88b6b7.clone()), a
}, vf88539405aa8911395226002442538ea.prototype.v2ea325c1b62e31bfbaac58d290fd8c4b = function (b) {
var a = null;
return this.step.v4b720c673788e5ccb3596d1aea3dc026 && (a = this.step.v4b720c673788e5ccb3596d1aea3dc026.vb21ecfb5c00e851c793e579e1c88b6b7[b]), a
}, vf88539405aa8911395226002442538ea.prototype.v756b1c4e4d288f14045eee7f785b37f0 = function (b) {
if (this.step.v4b720c673788e5ccb3596d1aea3dc026) {
var a = this.step.v4b720c673788e5ccb3596d1aea3dc026.vb21ecfb5c00e851c793e579e1c88b6b7[b];
a && (this.vb86bb549e70fbb3d5a94d1521c9279f9() && a.v5d31017e6c9fe3603a4a5f876cedd1b0(), this.v7702a612cf2d9a55fdfda17d52893efb())
}
}, vf88539405aa8911395226002442538ea.prototype.complete = function () {
this.step.v609215aae988710338b3109edbd8ae52() == 0 && this.vb86bb549e70fbb3d5a94d1521c9279f9() && (this.step.complete(), this.v5b1335631e693750c6b9b5b08bbc12d9() || this.state.vc33e125cce69b65a6379adb3eec81bfd())
}, vf88539405aa8911395226002442538ea.prototype.vf2b10e1cfccbea0e91f21622193781f1 = function () {
return !1
}, vf88539405aa8911395226002442538ea.prototype.vb86bb549e70fbb3d5a94d1521c9279f9 = function () {
return !1
}, vf88539405aa8911395226002442538ea.prototype.vb7c1c6fd4f6eb646975961a8ddc91013 = function () {
return this.step.prev == null
}, vf88539405aa8911395226002442538ea.prototype.v8d5a9c12bbf5228c7c4a936ad205fdfe = function () {
return this.step.next == null
}, vf88539405aa8911395226002442538ea.prototype.v5b1335631e693750c6b9b5b08bbc12d9 = function () {
var a = this.step.next;
while (a != null) {
if (a.v9727e22f8c08329ba6c852650288d2e7())
return !0;
a = a.next
}
return !1
}, vf88539405aa8911395226002442538ea.prototype.v609215aae988710338b3109edbd8ae52 = function () {
return this.step.v609215aae988710338b3109edbd8ae52()
}, vf88539405aa8911395226002442538ea.prototype.vdee529b3a9ceb1ecc85e836bfa47f89b = function () {
return this.step.next != null
}, vf88539405aa8911395226002442538ea.prototype.v4db2ad1f24b18a7ac334613ec8e3cc78 = function () {
return this.step.prev != null
}, vf88539405aa8911395226002442538ea.prototype.ve0985bb6a43605f3ba7199e4d02a8020 = function () {
return this.state.v2648dee63d6b6eb04c922ef6010defd1() == 0 ? !0 : !1
}, vf88539405aa8911395226002442538ea.prototype.start = function () {
this.step.v5a8cbad96fb912d9948eb7d691a615ed() == 0 ? this.vb86bb549e70fbb3d5a94d1521c9279f9() && (this.vb7c1c6fd4f6eb646975961a8ddc91013() && this.state.v26757c77caa3a5ddac4bca7dfbc9aeb6(), this.step.start(), this.v7702a612cf2d9a55fdfda17d52893efb()) : this.vb86bb549e70fbb3d5a94d1521c9279f9() && this.v7702a612cf2d9a55fdfda17d52893efb()
}, vf88539405aa8911395226002442538ea.prototype.progress = function () {
this.step.vfca91946e276b82c9e3cd45ad1f9f02a() || this.vb86bb549e70fbb3d5a94d1521c9279f9() && this.step.progress()
}, vf88539405aa8911395226002442538ea.prototype.v294b4c4eeec804be91b80960615e7ecd = function () {
if (this.vdee529b3a9ceb1ecc85e836bfa47f89b()) {
var a = !0;
if (this.vb86bb549e70fbb3d5a94d1521c9279f9()) {
var b = this.step.v34ca259535325a6645ea4927dc68f282();
b === !0 || (Alert.show(b), a = !1)
}
a && (this.progress(), this.step = this.step.next, this.start())
}
}, vf88539405aa8911395226002442538ea.prototype.v92914148c3ffb6f0ba42ffe737a49bcd = function () {
this.v4db2ad1f24b18a7ac334613ec8e3cc78() && (this.step = this.step.prev)
}, vf88539405aa8911395226002442538ea.prototype.submit = function () {
var a = this;
this.ve0985bb6a43605f3ba7199e4d02a8020() && (a.progress(), a.state.submit())
}, vf88539405aa8911395226002442538ea.prototype.v6343ef5cd735451b034e30cd54f9ca2f = function () {
while (this.v4db2ad1f24b18a7ac334613ec8e3cc78())
this.v92914148c3ffb6f0ba42ffe737a49bcd()
}, vf88539405aa8911395226002442538ea.prototype.v7702a612cf2d9a55fdfda17d52893efb = function () {
var a = this.vaf7b20a841a40c1de96defe03337293e();
a && this.complete()
}, vf88539405aa8911395226002442538ea.prototype.vaf7b20a841a40c1de96defe03337293e = function () {
return !1
}, vf88539405aa8911395226002442538ea.prototype.vbdf0e3059f7cc962465161974cb7034c = function (d, c, a) {
var b = !1;
return this.state.vf091abdff6b52a71b31e06b0205b05b3() || (c && this.state.v4155b36cbe63e20ca6f36d5ca774b868 != c && (b = !0, this.state.v4155b36cbe63e20ca6f36d5ca774b868 = c), _.isNumber(a) && (a = this.v178932e64cf903e625d67205f380260e(a * 100) / this.displayGradeOutOf, this.state.vfbea00c73f90b1688774f4d951256c09 != a && (b = !0, this.state.vfbea00c73f90b1688774f4d951256c09 = a)), this.state.vf091abdff6b52a71b31e06b0205b05b3() != d && (b = !0), d && this.state.v43cea617ede0d79d3f822e1727bd033b()), b
}, vf88539405aa8911395226002442538ea.prototype.v22ae05490b2c1ebe4388526d08c76e66 = function () {
return this.va9e06e4ebfc1f1f94ca74bab891f12bb
}, vf88539405aa8911395226002442538ea.prototype.va2d7c1fc48b61e0f845ec3982d28e77a = function () {
return this.earlySubmissionEnabled
}, vf88539405aa8911395226002442538ea.prototype.v4f07b5328d48d8b24c16b83bfb3132a1 = function () {
return this.v22ae05490b2c1ebe4388526d08c76e66() ? v28f4c9f66e294b1221dd8f8a38a73a12.vea79db0a6fa5b862222575c1860011c9 : this.state.vf091abdff6b52a71b31e06b0205b05b3() ? v28f4c9f66e294b1221dd8f8a38a73a12.v98e573cab26c8017d967a470c0ef148c : this.state.v2648dee63d6b6eb04c922ef6010defd1() ? v28f4c9f66e294b1221dd8f8a38a73a12.vf4746afc6e33dfbbe1b35aaa30463839 : this.state.v244454c00096541107cc2f05130f2c75() ? v28f4c9f66e294b1221dd8f8a38a73a12.vea79db0a6fa5b862222575c1860011c9 : v28f4c9f66e294b1221dd8f8a38a73a12.vde995d8824c797eefe0b7221063174b6
}, vf88539405aa8911395226002442538ea.prototype.vde95a251032ceb96517bdf09d2e00c03 = function () {
var a = this.v4f07b5328d48d8b24c16b83bfb3132a1();
switch (a) {
case v28f4c9f66e294b1221dd8f8a38a73a12.v98e573cab26c8017d967a470c0ef148c:
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('Completed');
case v28f4c9f66e294b1221dd8f8a38a73a12.vf4746afc6e33dfbbe1b35aaa30463839:
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('Submitted Early');
case v28f4c9f66e294b1221dd8f8a38a73a12.vea79db0a6fa5b862222575c1860011c9:
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('Working on Goal');
case v28f4c9f66e294b1221dd8f8a38a73a12.vde995d8824c797eefe0b7221063174b6:
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('Working on Steps')
}
return ''
}, vf88539405aa8911395226002442538ea.prototype.v30797168e35fae9b40b3abe694c1f574 = function () {
return this.state.v244454c00096541107cc2f05130f2c75() ? this.state.v37a2ace943182543b5c8f84eab2ec696() : this.state.v93ad77c3383f64edf0fb1599f2f3007b()
}, vf88539405aa8911395226002442538ea.prototype.v178932e64cf903e625d67205f380260e = function (a) {
return _.round(a * this.displayGradeOutOf / 100)
}, v3b690a98f72fc19fa9a5b8f2ce457701.prototype = Object.create(vf88539405aa8911395226002442538ea.prototype), v3b690a98f72fc19fa9a5b8f2ce457701.prototype.constructor = v3b690a98f72fc19fa9a5b8f2ce457701, v3b690a98f72fc19fa9a5b8f2ce457701.prototype.vf2b10e1cfccbea0e91f21622193781f1 = function () {
return !0
}, v3b690a98f72fc19fa9a5b8f2ce457701.prototype.v9cb20e9b0acd3926a5d3c244ec127f62 = function (a) {
a.next = this.step.next, a.prev = this.step, this.step.next && (this.step.next.prev = a), this.step.next = a, this.step = a, this.state.count++
}, v3b690a98f72fc19fa9a5b8f2ce457701.prototype.setText = function (a) {
return this.step.text = a
}, v3b690a98f72fc19fa9a5b8f2ce457701.prototype.v54f03963cf1b381a4b744a9a0a46ccc8 = function (a) {
this.step.v4b720c673788e5ccb3596d1aea3dc026 = a
}, v3b690a98f72fc19fa9a5b8f2ce457701.prototype.v430936e79f6936a57647a599d0f1c10e = function (b) {
var a = this.step.v4b720c673788e5ccb3596d1aea3dc026;
a && a.vb21ecfb5c00e851c793e579e1c88b6b7.push(b)
}, v3b690a98f72fc19fa9a5b8f2ce457701.prototype.vb86bb549e70fbb3d5a94d1521c9279f9 = function () {
return !1
}, v3b690a98f72fc19fa9a5b8f2ce457701.prototype.vf817a8352efe9860f31ffc54e386f8cc = function () {
if (this.step.prev == null && this.step.next == null)
throw new Error('Cannot remove the last step, there must always be at least one step');
this.step.prev && (this.step.prev.next = this.step.next), this.step.next && (this.step.next.prev = this.step.prev), this.step.prev != null ? this.step = this.step.prev : (this.step = this.step.next, this.state.head = this.step), this.state.count--
}, v6b12be61a4f26343059f8e642027e113.prototype = Object.create(vf88539405aa8911395226002442538ea.prototype), v6b12be61a4f26343059f8e642027e113.prototype.constructor = v6b12be61a4f26343059f8e642027e113, v6b12be61a4f26343059f8e642027e113.prototype.vdee529b3a9ceb1ecc85e836bfa47f89b = function () {
return vf88539405aa8911395226002442538ea.prototype.vdee529b3a9ceb1ecc85e836bfa47f89b.call(this) ? this.step.v609215aae988710338b3109edbd8ae52() : !1
}, v6b12be61a4f26343059f8e642027e113.prototype.ve0985bb6a43605f3ba7199e4d02a8020 = function () {
var a = vf88539405aa8911395226002442538ea.prototype.ve0985bb6a43605f3ba7199e4d02a8020.call(this);
return a ? !0 : !1
}, v6b12be61a4f26343059f8e642027e113.prototype.v756b1c4e4d288f14045eee7f785b37f0 = function (e) {
vf88539405aa8911395226002442538ea.prototype.v756b1c4e4d288f14045eee7f785b37f0.call(this, e);
var d = !1, b = this.vbd2d8912b8d7d303aedcfaf7de58672f();
for (var a = 0; a < b.length; ++a) {
var c = b[a];
c.va28af30d034cc6b113ea5f73ff2015c7() && c.v57e25a3fd5225bde2ec1fde4bcc44f17() && (d = !0)
}
if (d) {
var b = this.vbd2d8912b8d7d303aedcfaf7de58672f();
for (var a = 0; a < b.length; ++a) {
var c = b[a];
this.vb86bb549e70fbb3d5a94d1521c9279f9() && c.v3cfde28bda140b7e48e60c684d6f05d5(!1)
}
}
}, v6b12be61a4f26343059f8e642027e113.prototype.vb86bb549e70fbb3d5a94d1521c9279f9 = function () {
return !0
}, v6b12be61a4f26343059f8e642027e113.prototype.vaf7b20a841a40c1de96defe03337293e = function () {
var a = vf88539405aa8911395226002442538ea.prototype.vaf7b20a841a40c1de96defe03337293e.call(this);
a = !0;
var d = !1, b = this.vbd2d8912b8d7d303aedcfaf7de58672f();
if (b.length > 0) {
for (var c = 0; c < b.length; ++c) {
var e = b[c];
e.va28af30d034cc6b113ea5f73ff2015c7() && e.v57e25a3fd5225bde2ec1fde4bcc44f17() && (d = !0)
}
d == 0 && (a = !1)
}
return a = a && this.step.v34ca259535325a6645ea4927dc68f282() === !0, a
}, cstmIAQuestion.prototype = Object.create(v2afb2dbb7629090cd4cf10e612d6687e.prototype), cstmIAQuestion.prototype.constructor = cstmIAQuestion, cstmIAQuestion.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
var b = this.v1a5d737866b9cc94ff4bf787cf85c5d4.v3177475b0d1ee44e193bd6b5def38d59();
this.vceae36f5b70124f71055021604db305c.html(b.text), this.vd1ff8094ff2164b5d700b3908a672778.empty();
var c = !1;
for (var a = 0; a < b.vb21ecfb5c00e851c793e579e1c88b6b7.length; ++a) {
var d = b.vb21ecfb5c00e851c793e579e1c88b6b7[a];
d.v07685d5120e84a65418fba8b0d27f5b4() && (c = !0);
var e = new cstmIAAnswer(this.v6a2a3c35cc570688e335f07a60c280a2, this.v1a5d737866b9cc94ff4bf787cf85c5d4, a);
e.v818bd2c0a84026911fc3df192c53f801(this.vd1ff8094ff2164b5d700b3908a672778)
}
if (c) {
var f = new RadioGroup(this.vd1ff8094ff2164b5d700b3908a672778[0]);
f.init()
}
}, cstmIAAnswer.prototype = Object.create(v2afb2dbb7629090cd4cf10e612d6687e.prototype), cstmIAAnswer.prototype.constructor = cstmIAAnswer, cstmIAAnswer.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
var b = this, a = this.v1a5d737866b9cc94ff4bf787cf85c5d4.v2ea325c1b62e31bfbaac58d290fd8c4b(this.v10352643129b62e582bd235e58fabafb);
this.vceae36f5b70124f71055021604db305c.html(a.getText()), a.v07685d5120e84a65418fba8b0d27f5b4() && (this.vceae36f5b70124f71055021604db305c.click(function (a) {
b.veca956e1a614707be2d56ca74cf4b420(a)
}), this.vceae36f5b70124f71055021604db305c.keydown(function (a) {
(a.which == $.ui.keyCode.ENTER || a.which == $.ui.keyCode.SPACE) && b.veca956e1a614707be2d56ca74cf4b420(a)
}), this.vceae36f5b70124f71055021604db305c.attr('role', 'radio'));
var c = this.v1a5d737866b9cc94ff4bf787cf85c5d4.vf2b10e1cfccbea0e91f21622193781f1();
(!a.v07685d5120e84a65418fba8b0d27f5b4() || c) && this.v57c814f497886250b05f6c04dd8c98e1(a)
}, cstmIAAnswer.prototype.v57c814f497886250b05f6c04dd8c98e1 = function (a) {
this.vbf4087a1eefb23bb8915c9eb7e911b6d.show(), this.vbf4087a1eefb23bb8915c9eb7e911b6d.children('div').hide(), a.v57e25a3fd5225bde2ec1fde4bcc44f17() ? (this.v7ea8bb0f1ce976179af7ec5a5b04ab2d.css('display', 'inline-block'), this.vceae36f5b70124f71055021604db305c.addClass('iaStepAnswerCorrect')) : a.va28af30d034cc6b113ea5f73ff2015c7() ? (this.vc5c96a94e65e62e01e06c15e723abedf.css('display', 'inline-block'), this.vceae36f5b70124f71055021604db305c.addClass('iaStepAnswerIncorrect')) : this.vdd9e867af9b8419df1e191b5bc287242.css('display', 'inline-block'), this.vceae36f5b70124f71055021604db305c.css('width', '85%')
}, cstmIAAnswer.prototype.veca956e1a614707be2d56ca74cf4b420 = function (a) {
this.v1a5d737866b9cc94ff4bf787cf85c5d4.v756b1c4e4d288f14045eee7f785b37f0(this.v10352643129b62e582bd235e58fabafb), this.v6a2a3c35cc570688e335f07a60c280a2.v4b442c0efc7577701c45f2e22007dc8b()
}, cstmIAPanel.prototype = Object.create(v2afb2dbb7629090cd4cf10e612d6687e.prototype), cstmIAPanel.prototype.constructor = cstmIAPanel, cstmIAPanel.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
var a = this;
this.v1a5d737866b9cc94ff4bf787cf85c5d4.v19412d42cf685476910d9ffffaee84c8 = function () {
a.update()
}, this.v0c7001ec11e6eb07aae3492cb582c235.click(function () {
a.v8fe89cbab23286fca906f631922d92de()
}), this.v32ccbf6e2529939cf41d129937937033.click(function () {
a.v381fa542c13bed93b055465be3db5484()
}), this.v7143181924546b3669b661fc176450e7.click(function () {
a.v48ef785493012730339e08a3d4166a35()
}), $('#instruction-pane').css('position') == 'relative' && (this.vc6f86e273397a148cc65d73cf36eb356.css('max-height', window.innerHeight - 294), $(window).resize(function () {
a.vc6f86e273397a148cc65d73cf36eb356.css('max-height', window.innerHeight - 294), a.v3c74969910063bb5fd79c8b826cc9d07(a.vc6f86e273397a148cc65d73cf36eb356)
})), this.vc6f86e273397a148cc65d73cf36eb356.scroll(function () {
a.v3c74969910063bb5fd79c8b826cc9d07($(this))
})
}, cstmIAPanel.prototype.v4b442c0efc7577701c45f2e22007dc8b = function () {
var f = this;
this.v587e592cc4480b1057262d6cc06787b4 = this.selector.find('.ui-status-link:visible'), this.v5210387dea4d74d760dc9900ba35155c = this.selector.find('.ui-status:visible'), this.v587e592cc4480b1057262d6cc06787b4.off('click'), this.v587e592cc4480b1057262d6cc06787b4.on('click', _.bind(function () {
this.v2f808f8e418092ea7edbc7b58b06bc34 = !0, this.vfcd4a55b9965da9169667b94ceec3a65()
}, this)), this.v0c5b12ed220547fb70edba48817ce3d9.text(this.v1a5d737866b9cc94ff4bf787cf85c5d4.ve58f5e75d2bb76573d04c55788c634d0()), this.v5c1d373c69f4ffe38f877f9a13356325.text(this.v1a5d737866b9cc94ff4bf787cf85c5d4.v245ff79d366bd1fa82081bf2b0fcbabb()), this.vceae36f5b70124f71055021604db305c.html(this.v1a5d737866b9cc94ff4bf787cf85c5d4.getText());
var b = this.vceae36f5b70124f71055021604db305c.find('img');
for (var a = 0; a < b.length; ++a)
b.eq(a).attr('src', vdc7354c3cd5c7774f4dbfeba28eba934.instance.ve7ee6ca34ca649a12c7cbb571140b59a(b.eq(a).attr('src')));
var e = this.vceae36f5b70124f71055021604db305c.find('a');
e.click(function (a) {
f.va0677d438571693e57a32e49e24016f4(a)
}), this.v65038afac4816fd264c38b06c20835ce.empty();
var c = this.v1a5d737866b9cc94ff4bf787cf85c5d4.v3177475b0d1ee44e193bd6b5def38d59();
if (c) {
var g = new cstmIAQuestion(this, this.v1a5d737866b9cc94ff4bf787cf85c5d4);
g.v818bd2c0a84026911fc3df192c53f801(this.v65038afac4816fd264c38b06c20835ce)
}
var h = this.v1a5d737866b9cc94ff4bf787cf85c5d4.v8d5a9c12bbf5228c7c4a936ad205fdfe(), i = this.v1a5d737866b9cc94ff4bf787cf85c5d4.v609215aae988710338b3109edbd8ae52();
this.v5ffef35eab10b396ab01b33159a7fada(this.v0c7001ec11e6eb07aae3492cb582c235, this.v1a5d737866b9cc94ff4bf787cf85c5d4.v4db2ad1f24b18a7ac334613ec8e3cc78()), this.v5ffef35eab10b396ab01b33159a7fada(this.v32ccbf6e2529939cf41d129937937033, this.v1a5d737866b9cc94ff4bf787cf85c5d4.vdee529b3a9ceb1ecc85e836bfa47f89b()), this.v0c7001ec11e6eb07aae3492cb582c235.toggle(!0), this.v32ccbf6e2529939cf41d129937937033.toggle(!0), this.v7143181924546b3669b661fc176450e7.toggle(!1), h == 1 && i == 1 && (this.v32ccbf6e2529939cf41d129937937033.toggle(!1), this.v7143181924546b3669b661fc176450e7.toggle(this.v1a5d737866b9cc94ff4bf787cf85c5d4.va2d7c1fc48b61e0f845ec3982d28e77a() && this.vdee38eb7b5c85b5231449c9938b8a341.v2648dee63d6b6eb04c922ef6010defd1() == 0)), this.v1a5d737866b9cc94ff4bf787cf85c5d4.v22ae05490b2c1ebe4388526d08c76e66() && (this.vcadb3b7fd7825c4b288055892b1dfb5c.html(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Continuation Mode')), this.vceae36f5b70124f71055021604db305c.html(this.v1a5d737866b9cc94ff4bf787cf85c5d4.continuationText), this.v65038afac4816fd264c38b06c20835ce.empty(), this.vea41b908340bdb1de92f5b9ed30aa101.toggle(!1));
var j = this.v1a5d737866b9cc94ff4bf787cf85c5d4.v30797168e35fae9b40b3abe694c1f574(), d = this.v1a5d737866b9cc94ff4bf787cf85c5d4.vde95a251032ceb96517bdf09d2e00c03();
this.v5210387dea4d74d760dc9900ba35155c.toggle(j), this.v9d53d638643a8e4499bfce24e43e5f68.text(d), this.vb1ba7b6293827e546e1e9ea22ef36eb4.text(this.v41287bf19da1466f9693327da8385d8e()), $('body .statusLinkHtml').html(this.vb4e1b3527f171873fb69ec39f0d7e380()), this.v3c74969910063bb5fd79c8b826cc9d07(this.vc6f86e273397a148cc65d73cf36eb356)
}, cstmIAPanel.prototype.vfaf38c6220c3158bf8423d3df9126f2c = function () {
var n = this.v1a5d737866b9cc94ff4bf787cf85c5d4.v4f07b5328d48d8b24c16b83bfb3132a1(), b = 0, a = 0, h = 0, i = 0, j = 0, c = this.vdee38eb7b5c85b5231449c9938b8a341.questionGradePoints, l = 0, d = 100, e = new vf88539405aa8911395226002442538ea(this.vdee38eb7b5c85b5231449c9938b8a341);
while (e.vdee529b3a9ceb1ecc85e836bfa47f89b()) {
var f = e.vbd2d8912b8d7d303aedcfaf7de58672f();
h += f.length;
for (var g = 0; g < f.length; ++g) {
var k = f[g];
k.va28af30d034cc6b113ea5f73ff2015c7() && (a++, k.v57e25a3fd5225bde2ec1fde4bcc44f17() && b++)
}
e.v294b4c4eeec804be91b80960615e7ecd()
}
l = this.vdee38eb7b5c85b5231449c9938b8a341.v3304e41fa2addb46040b46b94439b0b6(), a > 0 && (i = b / a), a > 0 && (j = b * c / a);
var m = n != v28f4c9f66e294b1221dd8f8a38a73a12.vde995d8824c797eefe0b7221063174b6;
return d -= c, {
v159e1b3e51ad58fa0289e12eca64ed68: h,
vf244033c9bfdfa734c04ab41e4b106cc: m,
v941c9b33713ef015c14421e020d206a9: this.v1a5d737866b9cc94ff4bf787cf85c5d4.v178932e64cf903e625d67205f380260e(j),
v548b1df046e989300c9aebf24e4e5542: this.v1a5d737866b9cc94ff4bf787cf85c5d4.v178932e64cf903e625d67205f380260e(c),
v3602243bd8251bd96baa4c931dacd3d9: b,
vda599c60147fa277ac601eacd31a1541: a,
v09ac876048f0800cbbf2a7900590a541: i,
v1cf2459f3925602e60151079bcf8b742: this.v1a5d737866b9cc94ff4bf787cf85c5d4.v178932e64cf903e625d67205f380260e(l * d),
vcb3c23b0de1be9e8ee2cc668392fdacb: this.v1a5d737866b9cc94ff4bf787cf85c5d4.v178932e64cf903e625d67205f380260e(d)
}
}, cstmIAPanel.prototype.vb4e1b3527f171873fb69ec39f0d7e380 = function () {
var a = this.vfaf38c6220c3158bf8423d3df9126f2c(), b = '';
return a.v159e1b3e51ad58fa0289e12eca64ed68 > 0 && (b += '<p>', b += '<strong>' + U.vbacce6a42a9154e1b2ea38c9b107fbb2('Questions: {0} of {1} points', [
U.vd84eadcceba7c7ff874f8d08babd5fe2(a.v941c9b33713ef015c14421e020d206a9, 1),
U.vd84eadcceba7c7ff874f8d08babd5fe2(a.v548b1df046e989300c9aebf24e4e5542)
]) + '</strong><br>', b += U.vbacce6a42a9154e1b2ea38c9b107fbb2('Total Correct = {0}', [a.v3602243bd8251bd96baa4c931dacd3d9]) + '<br>', b += U.vbacce6a42a9154e1b2ea38c9b107fbb2('Total # of Tries = {0}', [a.vda599c60147fa277ac601eacd31a1541]) + '<br>', a.vf244033c9bfdfa734c04ab41e4b106cc && (b += U.vbacce6a42a9154e1b2ea38c9b107fbb2('Score = {0} or ({1}&divide;{2})', [
U.v77c2c9fef1115c265b52b136e8a574b0(a.v09ac876048f0800cbbf2a7900590a541),
a.v3602243bd8251bd96baa4c931dacd3d9,
a.vda599c60147fa277ac601eacd31a1541
]) + '<br>'), b += '</p>'), a.vf244033c9bfdfa734c04ab41e4b106cc && this.vdee38eb7b5c85b5231449c9938b8a341.hasGoal && (b += '<p>', b += '<strong>' + U.vbacce6a42a9154e1b2ea38c9b107fbb2('{0}{1} of {2} points', [
this.vdee38eb7b5c85b5231449c9938b8a341.v0c42e942bf2a1c07452980a9cc1efc6e,
U.vd84eadcceba7c7ff874f8d08babd5fe2(a.v1cf2459f3925602e60151079bcf8b742),
U.vd84eadcceba7c7ff874f8d08babd5fe2(a.vcb3c23b0de1be9e8ee2cc668392fdacb)
]) + '</strong><br>', b += this.vdee38eb7b5c85b5231449c9938b8a341.v31dca5913a39cc20578c6e1b1cf3a45b() + '<br>', b += '</p>'), b
}, cstmIAPanel.prototype.v41287bf19da1466f9693327da8385d8e = function () {
var a = this.vfaf38c6220c3158bf8423d3df9126f2c();
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('{0} of {1} points', [
a.v941c9b33713ef015c14421e020d206a9 + a.v1cf2459f3925602e60151079bcf8b742,
a.v548b1df046e989300c9aebf24e4e5542 + a.vcb3c23b0de1be9e8ee2cc668392fdacb
])
}, cstmIAPanel.prototype.vfcd4a55b9965da9169667b94ceec3a65 = function () {
if ($('.statusLinkHtml:visible').length == 0) {
var a = '<button id=\'closeStatus\' class=\'btn btn-default btn-xs\' href="#" style="float: right;">';
a += '<span class="glyphicon glyphicon-remove" aria-hidden="true"\'></span>', a += '<span class=\'visually-hidden\'>Close button</span>', a += '</button>Grade Details', this.v587e592cc4480b1057262d6cc06787b4.popover({
title: a,
html: !0,
content: '<div class=\'statusLinkHtml\' tabindex=0>' + this.vb4e1b3527f171873fb69ec39f0d7e380() + '</div>',
trigger: 'manual',
placement: 'top',
container: 'body',
viewport: {
selector: 'body',
padding: 15
}
}), this.v587e592cc4480b1057262d6cc06787b4.popover('show'), this.v587e592cc4480b1057262d6cc06787b4.on('shown.bs.popover', _.bind(function () {
$('#closeStatus').focus(), $('#closeStatus').click(_.bind(function () {
this.v2f808f8e418092ea7edbc7b58b06bc34 = !1, this.v587e592cc4480b1057262d6cc06787b4.popover('destroy'), SRMessage('Grade Details closed.')
}, this))
}, this))
}
}, cstmIAPanel.prototype.va0677d438571693e57a32e49e24016f4 = function (a) {
vdc7354c3cd5c7774f4dbfeba28eba934.instance.v303e8ec80efb47d61b96fd701b64dea2 && vdc7354c3cd5c7774f4dbfeba28eba934.instance.v303e8ec80efb47d61b96fd701b64dea2(a)
}, cstmIAPanel.prototype.v381fa542c13bed93b055465be3db5484 = function () {
this.v1a5d737866b9cc94ff4bf787cf85c5d4.v294b4c4eeec804be91b80960615e7ecd(), this.v2f808f8e418092ea7edbc7b58b06bc34 = !1, this.v4b442c0efc7577701c45f2e22007dc8b(), this.vc6f86e273397a148cc65d73cf36eb356.scrollTop(0), this.vcadb3b7fd7825c4b288055892b1dfb5c.focus()
}, cstmIAPanel.prototype.v8fe89cbab23286fca906f631922d92de = function () {
this.v1a5d737866b9cc94ff4bf787cf85c5d4.v92914148c3ffb6f0ba42ffe737a49bcd(), this.v2f808f8e418092ea7edbc7b58b06bc34 = !1, this.v4b442c0efc7577701c45f2e22007dc8b(), this.vc6f86e273397a148cc65d73cf36eb356.scrollTop(0), this.vcadb3b7fd7825c4b288055892b1dfb5c.focus()
}, cstmIAPanel.prototype.v48ef785493012730339e08a3d4166a35 = function () {
var a = this;
this.vdee38eb7b5c85b5231449c9938b8a341.hasGoal ? Alert.show(this.v1a5d737866b9cc94ff4bf787cf85c5d4.earlySubmissionYesNoMessage, U.vbacce6a42a9154e1b2ea38c9b107fbb2('Early Submission'), Alert.v7a6e37eae80700365db84b46681c3ba2 | Alert.vddcc157367523e251fa7b7cdb4c4a8b0, function (b) {
b.v5070344edf2c28e233d3519bbc95c4f3 == Alert.v7a6e37eae80700365db84b46681c3ba2 && (a.v1a5d737866b9cc94ff4bf787cf85c5d4.submit(), vdc7354c3cd5c7774f4dbfeba28eba934.instance.v200f0aaa8eb1041078a351f0ad06991f(a.v1a5d737866b9cc94ff4bf787cf85c5d4.earlySubmissionEndMessage, !1), a.v4b442c0efc7577701c45f2e22007dc8b())
}) : (this.vdee38eb7b5c85b5231449c9938b8a341.v43cea617ede0d79d3f822e1727bd033b(), a.v1a5d737866b9cc94ff4bf787cf85c5d4.submit(), vdc7354c3cd5c7774f4dbfeba28eba934.instance.v200f0aaa8eb1041078a351f0ad06991f(a.v1a5d737866b9cc94ff4bf787cf85c5d4.noGoalSubmissionEndMessage, !1), a.v4b442c0efc7577701c45f2e22007dc8b())
}, cstmIAPanel.prototype.v3c74969910063bb5fd79c8b826cc9d07 = function (a) {
Math.abs(a[0].scrollHeight - a.scrollTop() - a.height()) > 3 ? $('.ia-panel .step-container').addClass('text-box-shadow-bottom') : $('.ia-panel .step-container').removeClass('text-box-shadow-bottom')
}, vb4224fc2fe84fbabb011095046a0b811.__v3744d0d3c49603d342a12f2c75c54810 = 3, vb4224fc2fe84fbabb011095046a0b811.v157e6baa260de66ee18c70877d9de990 = function (a) {
this.floor = a
}, vb4224fc2fe84fbabb011095046a0b811.prototype.create = Object.create(v76df45e01f375ce83274fd873101ca63), vb4224fc2fe84fbabb011095046a0b811.prototype.constructor = vb4224fc2fe84fbabb011095046a0b811, vb4224fc2fe84fbabb011095046a0b811.ve734d3949f6f8eb06431a1d6ce35bff5 = function (a, b) {
a.preventDefault(), this.v95961a7d37bc005d7bf2ad6832db38b1(a, b)
}, vb4224fc2fe84fbabb011095046a0b811.v00dab815311bf28411d614abdf8dcda0 = function (a) {
this.__vdcecb0da604458b362570a169fd8087a && (a.preventDefault(), this.onMouseMove(a))
}, vb4224fc2fe84fbabb011095046a0b811.vb0d035acfd8e9ce66656c288fb25c276 = function (a) {
this.v459bd07f26471417484e8e7547eea3a3(a)
}, vb4224fc2fe84fbabb011095046a0b811.vc0106a6a893e4d313758985b80f88365 = function (a) {
this.vb0d035acfd8e9ce66656c288fb25c276(a)
}, vb4224fc2fe84fbabb011095046a0b811.v6f56fd84a121ccf8644b1335c888509d = function (a) {
this.__v2cbc24296d0f74841ec12e7645afb96e || (this.__vdcecb0da604458b362570a169fd8087a = !1)
}, vb4224fc2fe84fbabb011095046a0b811.v95961a7d37bc005d7bf2ad6832db38b1 = function (a, b) {
this.__vdcecb0da604458b362570a169fd8087a = !0, this.__v338c32784170215e5f4e3bc3bbdc3f84 = new Point(a.localX, a.localY), this.events.trigger('mouseDown', b)
}, vb4224fc2fe84fbabb011095046a0b811.onMouseMove = function (a) {
if (this.__vdcecb0da604458b362570a169fd8087a) {
if (!this.__v2cbc24296d0f74841ec12e7645afb96e) {
var b = U.va8b5009a1e24fd5735deb7089099e7fc(this.__v338c32784170215e5f4e3bc3bbdc3f84, new Point(a.localX, a.localY));
b > vb4224fc2fe84fbabb011095046a0b811.__v3744d0d3c49603d342a12f2c75c54810 && (this.__v314385c9a8894d21bf0fc7aed35a23a9 = new Point(a.localX, a.localY), this.vaa9775f68ead81cc67df45834bab3747(a))
}
this.__v2cbc24296d0f74841ec12e7645afb96e && (this.__v314385c9a8894d21bf0fc7aed35a23a9 = new Point(a.localX, a.localY), A.vf3351ba56d8b7e42f05b30b819a9db80().running || A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b())
}
}, vb4224fc2fe84fbabb011095046a0b811.v459bd07f26471417484e8e7547eea3a3 = function (b) {
if (this.__vdcecb0da604458b362570a169fd8087a = !1, this.__v2cbc24296d0f74841ec12e7645afb96e) {
var a = this.floor.v9b7f2412c70ec596d4a540fa4a10f5c0(b);
a != null && this.floor.v9198357d3c90d88fb1d53e0855ecfb30(this, a) && this.v07f3eb9f7d0137777209759be2787ffe(a) ? this.floor.va39914745bbaf4dde38eb9a7e9e66e14() ? (Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('That action is not enabled in this assignment.')), this.v30dd1bec82c1eb5ca032b3e45deb9cda()) : this.drop(b, a) : this.v30dd1bec82c1eb5ca032b3e45deb9cda()
}
A.vf3351ba56d8b7e42f05b30b819a9db80().running || A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b()
}, vb4224fc2fe84fbabb011095046a0b811.onMouseLeave = function (a) {
this.__v2cbc24296d0f74841ec12e7645afb96e || (this.__vdcecb0da604458b362570a169fd8087a = !1)
}, vb4224fc2fe84fbabb011095046a0b811.vaa9775f68ead81cc67df45834bab3747 = function (a) {
this.v6ee226cd282d4f8b76e69d4d2348f0a7() && (this.__v2cbc24296d0f74841ec12e7645afb96e = !0, this.v69084bae2a555f5a7ce3151b433bfef9 = this.dy, this.floor.vd2d991af6b7e629ae40f414eca9c1f8c(this), this.events.trigger('dragStart'))
}, vb4224fc2fe84fbabb011095046a0b811.drop = function (d, a) {
var b;
if (!_.isUndefined(this.node)) {
_.isObject(this.node) && (a.get('name') != this.node.get('name') || this.dy != this.v69084bae2a555f5a7ce3151b433bfef9) && (_.each(this.v04b0dd7d7198b9c7a88db3da70c7c354(a), function (a) {
a.blocked = this.vbc7398e5a6e3c83f57205149871b22f0(a)
}, this), _.each(this.v04b0dd7d7198b9c7a88db3da70c7c354(), function (a) {
a.blocked = !1
})), this.__v8ca3b325cbcda27dcf4c9f38a08bb22f = !0, setTimeout(_.bind(function () {
this.__v8ca3b325cbcda27dcf4c9f38a08bb22f = !1
}, this), 200);
var c = !1;
a.get('name') != this.node.get('name') || this.dy != this.v69084bae2a555f5a7ce3151b433bfef9 ? (c = !0, b = this.node, this.events.trigger('move', b, a, this, this.v69084bae2a555f5a7ce3151b433bfef9, this.dy), this.node = a) : this.v30dd1bec82c1eb5ca032b3e45deb9cda()
}
this.__v2cbc24296d0f74841ec12e7645afb96e = !1, this.floor.vd2d991af6b7e629ae40f414eca9c1f8c(null), c && this.events.trigger('moved', b, a, this)
}, vb4224fc2fe84fbabb011095046a0b811.v30dd1bec82c1eb5ca032b3e45deb9cda = function () {
this.__v2cbc24296d0f74841ec12e7645afb96e = !1, this.dy = this.v69084bae2a555f5a7ce3151b433bfef9, this.__v314385c9a8894d21bf0fc7aed35a23a9 = null, this.floor.vd2d991af6b7e629ae40f414eca9c1f8c(null), this.events.trigger('dragCancel')
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.constructor = v9d38cc6cb3fc9bb07cd7a3d22d5be7a7, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.get = function (a) {
return this[a]
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.init = function (d, j, c, i) {
if (this.gridSize = d, this.nodeSize = j, _.isObject(c))
this.nodeSpread = c;
else if (_.isNumber(c))
this.nodeSpread = {
x: c,
y: c
};
else {
alert('illegal value for nodeSpread');
return
}
this.Yoffset = i;
var e = this.nodeSpread.x * Math.max(d.x, d.y) * 2;
this.floorSize = new Point(e, e / 2 + this.Yoffset), this.origin = new Point(e / 2, this.Yoffset), this.map = new v00c9f4d149099c55b010722e6778dab5;
for (var a = 0; a < d.x; a++)
for (var b = 0; b < d.y; b++) {
var g = this.vd4b812106241ad35180ec35536ba68dd(a, b), f = new v9bc041960e80b10064b57b79a0d88cd9(g.x, g.y, this.v4541032622e9bef1a24a2380fa9cad62(a, b), this.nodeSize.x, this.nodeSize.y);
f.init(this);
var h = this.vee669780255160bd2d239a52da51beb5((a + b) % 2);
h && f.v35539ff1d279ace5d966cb6af9772e2c(h), this.map.v722981c5d57a8249ee3363033649fa0f(f, null)
}
this.map.v2b1c86a367609fc64a4532c7c9c82e3e()
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v362697120ef6bc3b622eb15f1c1a8b9e = function () {
return this.get('name') ? name : 'floor'
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.va9cedc721d38dd0cffc8dab1d2e5b8a9 = function () {
var a = this.get('gridSize').x + ',' + this.get('gridSize').y + '|';
for (var b = 0; b < this.get('gridSize').x; b++)
for (var c = 0; c < this.get('gridSize').y; c++) {
var d = this.map.vaed5f6f2d7e4bc585e9fd131eba0ec3c(this.v4541032622e9bef1a24a2380fa9cad62(b, c));
if (!d) {
a += '|';
continue
}
var e = this.v295cb877af8135cd75e7ebf2ca4dfed8(d);
e.node != d ? a += '0|' : _.isFunction(e.va9cedc721d38dd0cffc8dab1d2e5b8a9) ? a += e.va9cedc721d38dd0cffc8dab1d2e5b8a9() + '|' : a += 'undefined|'
}
return a
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v033a9501c84882a1021e084792c533e1 = function (h) {
var c = h.split('|'), d = c[0].split(',');
if (this.get('gridSize').x != d[0] || this.get('gridSize').y != d[1]) {
alert('Existing floor grid size: ' + this.get('gridSize').x + ',' + this.get('gridSize').y + ' does not match grid specified in definition string');
return
}
var f = 1;
for (var a = 0; a < this.get('gridSize').x; a++)
for (var b = 0; b < this.get('gridSize').y; b++) {
var g = c[f++], e = this.map.vaed5f6f2d7e4bc585e9fd131eba0ec3c(this.v4541032622e9bef1a24a2380fa9cad62(a, b));
e && this.v4a1b83f4e1784401dd914d59acdca1dc(g, e)
}
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vf18f6429345d5b7febceb7b2165f23a8 = function (b, c) {
var a = new vd7f8cf09473664e029bdd95e1f9a1676(b, c);
a.init(this), a.show()
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.va12bccf58db9ade7723dfc69250c3f2a = function (b, a) {
this.nodeTileImages[0] = b, _.isString(a) && (this.nodeTileImages[1] = a, _.each(this.map.nodes, function (c) {
var a = c.v9dffea00793b035d979d90473e693748(), b = (a.x + a.y) % 2;
b != 0 && c.v35539ff1d279ace5d966cb6af9772e2c(this.nodeTileImages[b])
}, this))
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v8452c41ed0d9fb47e821bc0b64c0ab82 = function () {
return this.get('nodeTileImages')[0]
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vee669780255160bd2d239a52da51beb5 = function (a) {
a || (a = 0);
var b = this.get('nodeTileImages');
return a = Math.min(a, b.length - 1), a != 0 ? b[a] : !1
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v8c52e48d2249455ab4047b00df6378cd = function (a, b) {
a.floor = this, b != null && this.v7ca2f64bd9eff800fd8379c04c7ad613(a, a.node), _.isUndefined(a.events) || a.events.v49ad792f5229d4be359d5c4aa4e18617(this, 'move', 'onFloorObjectMove'), this.vfa70ca62e66b1581fc05bef8ab9d26f9.v657e3b6ac90f6a38de6cb0a741ad936e(a), A.vf3351ba56d8b7e42f05b30b819a9db80().running || A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b()
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v7ca2f64bd9eff800fd8379c04c7ad613 = function (a, b) {
if (_.isFunction(a.v04b0dd7d7198b9c7a88db3da70c7c354)) {
var c = a.v04b0dd7d7198b9c7a88db3da70c7c354(b);
_.each(c, function (b) {
this.v876c25a70db2de89419eab0207b02ea1[b.get('name')] = a
}, this)
} else
this.v876c25a70db2de89419eab0207b02ea1[b.get('name')] = a
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v8fb34c2a6f844de4af85f51b5ddc4d4c = function (a) {
a.node && (this.v876c25a70db2de89419eab0207b02ea1 = _.omit(this.v876c25a70db2de89419eab0207b02ea1, function (b) {
return b === a
}))
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vdd11ee24bb0b496c042287e9d83254a9 = function (a) {
this.vfa70ca62e66b1581fc05bef8ab9d26f9.v6658d41901465458c34d0790e8086649(a), this.v8fb34c2a6f844de4af85f51b5ddc4d4c(a)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vd0c0430bdfe9a4dd41f87e7ee1cce53c = function (a) {
_.remove(this.vfa70ca62e66b1581fc05bef8ab9d26f9, function (b) {
return b.node == a
})
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.onFloorObjectMove = function (d, e, a, b, c) {
a || (a = this.v876c25a70db2de89419eab0207b02ea1[d.get('name')]), a.dy = _.isUndefined(b) ? a.dy : b, this.v8fb34c2a6f844de4af85f51b5ddc4d4c(a), a.dy = _.isUndefined(c) ? a.dy : c, this.v7ca2f64bd9eff800fd8379c04c7ad613(a, e)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v4541032622e9bef1a24a2380fa9cad62 = function (a, b) {
return 'N' + a + '-' + b
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.on = function (c, a, b) {
switch (c) {
case 'mouseDown':
return this.v95961a7d37bc005d7bf2ad6832db38b1(a, b);
case 'mouseUp':
return this.v459bd07f26471417484e8e7547eea3a3(a, b);
case 'mouseMove':
return this.onMouseMove(a, b);
case 'mouseClick':
return this.v213b452f35fa2bb266b4c9e8dada5505(a, b);
case 'touchStart':
return this.ve734d3949f6f8eb06431a1d6ce35bff5(a, b);
case 'touchEnd':
return this.vb0d035acfd8e9ce66656c288fb25c276(a, b);
case 'touchCancel':
return this.vc0106a6a893e4d313758985b80f88365(a, b);
case 'touchMove':
return this.v00dab815311bf28411d614abdf8dcda0(a, b);
case 'touchClick':
return this.v52a42af26830ec7f8cc2ab4929db04e2(a, b)
}
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.ve734d3949f6f8eb06431a1d6ce35bff5 = function (a, b) {
return this.v95961a7d37bc005d7bf2ad6832db38b1(a, b)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v52a42af26830ec7f8cc2ab4929db04e2 = function (a, b) {
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v95961a7d37bc005d7bf2ad6832db38b1 = function (a, b) {
return this.__v435d7f241ea641efc8227e38c949836f = null, this.v2716bc551998973eacb2e1c5866afc4e = null, b ? void 0 : (this.__va51081234a0d12606d84ae2e7a634035 == null && (this.__va51081234a0d12606d84ae2e7a634035 = this.v9b7f2412c70ec596d4a540fa4a10f5c0(a), this.__va51081234a0d12606d84ae2e7a634035 != null && (this.__va96aad651454f989fb91fc980e37316c = this.v295cb877af8135cd75e7ebf2ca4dfed8(this.__va51081234a0d12606d84ae2e7a634035))), this.__va96aad651454f989fb91fc980e37316c != null ? (_.isFunction(this.__va96aad651454f989fb91fc980e37316c.v95961a7d37bc005d7bf2ad6832db38b1) && this.__va96aad651454f989fb91fc980e37316c.v95961a7d37bc005d7bf2ad6832db38b1(a, this.__va51081234a0d12606d84ae2e7a634035), !0) : !1)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vd2d991af6b7e629ae40f414eca9c1f8c = function (a) {
this.__v99af750f6ff9ba2929ddad7384e04a9c = a
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.onMouseMove = function (b, c) {
if (!_.isNull(this.__v99af750f6ff9ba2929ddad7384e04a9c)) {
var a = this.v9b7f2412c70ec596d4a540fa4a10f5c0(b);
this.__v99af750f6ff9ba2929ddad7384e04a9c.v4ce19c16001fe9f274bc08ac6fa10ba6(a) && this.__v99af750f6ff9ba2929ddad7384e04a9c.v07f3eb9f7d0137777209759be2787ffe(a) ? this.v2716bc551998973eacb2e1c5866afc4e = a : this.v2716bc551998973eacb2e1c5866afc4e = null
}
if (c && c.vd47ed85cab7ce2b6d437e7b570eea18a == this.__v99af750f6ff9ba2929ddad7384e04a9c)
return;
if (!_.isNull(this.__v99af750f6ff9ba2929ddad7384e04a9c)) {
this.__v99af750f6ff9ba2929ddad7384e04a9c.onMouseMove(b);
return
}
c || this.__va96aad651454f989fb91fc980e37316c != null && _.isFunction(this.__va96aad651454f989fb91fc980e37316c.onMouseMove) && this.__va96aad651454f989fb91fc980e37316c.onMouseMove(b)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v00dab815311bf28411d614abdf8dcda0 = function (a, b) {
return this.onMouseMove(a, b)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v459bd07f26471417484e8e7547eea3a3 = function (a, c) {
var b = !1;
if (this.__v99af750f6ff9ba2929ddad7384e04a9c != null ? this.__v99af750f6ff9ba2929ddad7384e04a9c.v459bd07f26471417484e8e7547eea3a3(a) : this.__va96aad651454f989fb91fc980e37316c != null && _.isFunction(this.__va96aad651454f989fb91fc980e37316c.v459bd07f26471417484e8e7547eea3a3) && this.__va96aad651454f989fb91fc980e37316c.v459bd07f26471417484e8e7547eea3a3(a, c), !c)
try {
this.__v435d7f241ea641efc8227e38c949836f = this.v9b7f2412c70ec596d4a540fa4a10f5c0(a), this.__v435d7f241ea641efc8227e38c949836f != null && this.__v435d7f241ea641efc8227e38c949836f == this.__va51081234a0d12606d84ae2e7a634035 && (A.vf3351ba56d8b7e42f05b30b819a9db80().running || A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b(), _.isFunction(this.__va96aad651454f989fb91fc980e37316c.vf18f6429345d5b7febceb7b2165f23a8) && this.__va96aad651454f989fb91fc980e37316c.vf18f6429345d5b7febceb7b2165f23a8(a), b = !0)
} catch (a) {
console.error(a.message)
}
return this.__va96aad651454f989fb91fc980e37316c = null, this.__va51081234a0d12606d84ae2e7a634035 = null, b
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vb0d035acfd8e9ce66656c288fb25c276 = function (a, b) {
this.vc0106a6a893e4d313758985b80f88365(a, b)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vc0106a6a893e4d313758985b80f88365 = function (a, b) {
return this.v459bd07f26471417484e8e7547eea3a3(a, b)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v213b452f35fa2bb266b4c9e8dada5505 = function (a, b) {
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v4017fe62832967102d2cd8918d5e07b1 = function (a) {
return this.map.v77d6dc73c0a0c078c42fc34c1c68ee7f[a]
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vbb9a445f5effdfc91e5ff102d0db998f = function (c) {
var b = this.get('gridSize'), a = this.vafe213d94504fbe4b8f31d2266a5c51d(c.x, c.y);
if (a.x = Math.round(a.x), a.y = Math.round(a.y), a.x < 0 || a.y < 0 || a.x > b.x - 1 || a.y > b.y - 1)
return null;
var d = this.v4541032622e9bef1a24a2380fa9cad62(a.x, a.y);
return this.map.vaed5f6f2d7e4bc585e9fd131eba0ec3c(d)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v0776834b0640adaef760589da7a7a8d7 = function (b) {
var a = this.vbb9a445f5effdfc91e5ff102d0db998f(b);
return a || (a = this.map.vf28ed955aac5cd06bceea010c659a590(b)), a
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v9b7f2412c70ec596d4a540fa4a10f5c0 = function (b) {
nodePoint = new Point(Math.floor(b.localX), Math.floor(b.localY));
var a = null;
return this.map != null && (a = this.vbb9a445f5effdfc91e5ff102d0db998f(nodePoint)), a
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v295cb877af8135cd75e7ebf2ca4dfed8 = function (a) {
return _.isNull(a) ? null : a.get('name') in this.v876c25a70db2de89419eab0207b02ea1 ? this.v876c25a70db2de89419eab0207b02ea1[a.get('name')] : a
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.isNode = function (a) {
return a.toUpperCase() in this.map.v77d6dc73c0a0c078c42fc34c1c68ee7f
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.va39914745bbaf4dde38eb9a7e9e66e14 = function () {
return !0
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v9198357d3c90d88fb1d53e0855ecfb30 = function (a, b, c) {
if (!b)
return !1;
if (_.isUndefined(c) && (c = a.dy), b.get('name') in this.v876c25a70db2de89419eab0207b02ea1)
if (_.isObject(a.node) && b.get('name') == a.node.get('name')) {
if (a.dy == c)
return !0
} else if (this.v876c25a70db2de89419eab0207b02ea1[b.get('name')] != a)
return !1;
var d = !0;
if (_.isFunction(a.v04b0dd7d7198b9c7a88db3da70c7c354)) {
if (pNodes = a.v04b0dd7d7198b9c7a88db3da70c7c354(b, c), !pNodes)
return !1;
d = _.all(pNodes, function (b) {
return b.get('name') in this.v876c25a70db2de89419eab0207b02ea1 ? this.v876c25a70db2de89419eab0207b02ea1[b.get('name')] == a ? !0 : !1 : !0
}, this)
}
return d
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v63cdceda7131ea881cabd0b95325fa9c = function (b) {
var a = [];
return a.v65232cbf984e4899d32f63ff906d72ec(this.vaa91db525d6f4458dc181d49ce74b672()), a.v65232cbf984e4899d32f63ff906d72ec(this.v3c93b1508950a3eac5280f1c7feb8de8()), a.sort(vbe6dfab6e47ff3d003a423092f4c35ef.v3647f4d98b63ac6bd7af663f228c044d), a
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vaa91db525d6f4458dc181d49ce74b672 = function () {
var a = [];
if (this.__v435d7f241ea641efc8227e38c949836f != null && (selNodeLoc = this.__v435d7f241ea641efc8227e38c949836f.va104dfefa6670b37275d51b041f7e0bd()), this.v2716bc551998973eacb2e1c5866afc4e != null && this.__v99af750f6ff9ba2929ddad7384e04a9c != null) {
var b = [this.v2716bc551998973eacb2e1c5866afc4e];
_.isFunction(this.__v99af750f6ff9ba2929ddad7384e04a9c.v04b0dd7d7198b9c7a88db3da70c7c354) && (b = this.__v99af750f6ff9ba2929ddad7384e04a9c.v04b0dd7d7198b9c7a88db3da70c7c354(this.v2716bc551998973eacb2e1c5866afc4e))
}
return v9a411e00a9bf1d4242451eac1df7fb4e(this, this.map.nodes, function (d) {
nLoc = d.va104dfefa6670b37275d51b041f7e0bd();
var c = d.v63cdceda7131ea881cabd0b95325fa9c();
if (this.__v435d7f241ea641efc8227e38c949836f != null && nLoc.x == selNodeLoc.x && nLoc.y == selNodeLoc.y && (c[0].vbd5fe1eb0166be3d3c5abf3a4c60cc14 = _.bind(this.vff658cd4776a9073d66ec26bd40a09f0, this, selNodeLoc, this.__v9638a1d067d2b0e5e6ca187ca9c47a89.selectedNode)), this.v2716bc551998973eacb2e1c5866afc4e != null && this.__v99af750f6ff9ba2929ddad7384e04a9c != null) {
var e = _.any(b, function (a) {
return _.isEqual(a.va104dfefa6670b37275d51b041f7e0bd(), nLoc)
});
e && (c[0].vbd5fe1eb0166be3d3c5abf3a4c60cc14 = _.bind(this.vff658cd4776a9073d66ec26bd40a09f0, this, nLoc, this.__v9638a1d067d2b0e5e6ca187ca9c47a89.dropNode))
}
A.vf3351ba56d8b7e42f05b30b819a9db80().v720508d5c3659b419d8d583088d93da4('showWalkable') && (d.v05db26d76cc0bffb9d59521c55bc9f97() || (c[0].vbd5fe1eb0166be3d3c5abf3a4c60cc14 = _.bind(this.vff658cd4776a9073d66ec26bd40a09f0, this, nLoc, {
strokeStyle: '#AAAAAA',
ve1aec2e034b685ac8d9688597ae7ca0f: 4,
fillStyle: '#AAAAAA',
alpha: .25
}))), a.v65232cbf984e4899d32f63ff906d72ec(c)
}), a.length > 0 && A.vf3351ba56d8b7e42f05b30b819a9db80().v720508d5c3659b419d8d583088d93da4('showConnectors') && (a[a.length - 1].vbd5fe1eb0166be3d3c5abf3a4c60cc14 = _.bind(this.v85264d2a58eef35dd31e00ee8f93da00, this)), a
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v3c93b1508950a3eac5280f1c7feb8de8 = function () {
var a = [];
return _.each(this.vfa70ca62e66b1581fc05bef8ab9d26f9, function (c) {
var b = c.v63cdceda7131ea881cabd0b95325fa9c();
b != null && b.length > 0 && !c.__v2cbc24296d0f74841ec12e7645afb96e && !_.isUndefined(c.v32a56d54695fa77c4a8d4a769d2d21ce) && (b[0].v492347134bdd86399872b16353ba6e51 = _.bind(this.vff658cd4776a9073d66ec26bd40a09f0, this, c.v32a56d54695fa77c4a8d4a769d2d21ce)), a.v65232cbf984e4899d32f63ff906d72ec(b)
}, this), a
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vff658cd4776a9073d66ec26bd40a09f0 = function (a, b, c, d) {
return this.vc431427f2184b8b50131306583c23896(a, {
v71a2664071094228f2c6752a9e443a73: 0,
v720a686d07a187d95f3cacd683ca2bfd: 0,
v3cf85cc500623efd8beb1289c58e6ab9: 0,
v584ab5d973b6b660ea4022ecb028e64e: 0
}, b, c, d)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vc431427f2184b8b50131306583c23896 = function (g, b, d, h, c) {
c.beginPath(), d.alpha && (c.globalAlpha = d.alpha);
var a = this.get('nodeSpread'), e = a.x / 2, f = a.y / 2;
c.translate(g.x, g.y), c.scale(1.414213, .707107), c.rotate(Math.PI / 4), _.isUndefined(d.strokeStyle) || (c.strokeStyle = d.strokeStyle, d.ve1aec2e034b685ac8d9688597ae7ca0f ? c.lineWidth = d.ve1aec2e034b685ac8d9688597ae7ca0f : c.lineWidth = 2, c.strokeRect(b.v71a2664071094228f2c6752a9e443a73 * a.x - e + 1, b.v3cf85cc500623efd8beb1289c58e6ab9 * a.y - f + 1, (b.v720a686d07a187d95f3cacd683ca2bfd - b.v71a2664071094228f2c6752a9e443a73) * a.x + a.x - 2, (b.v584ab5d973b6b660ea4022ecb028e64e - b.v3cf85cc500623efd8beb1289c58e6ab9) * a.y + a.y - 2)), _.isUndefined(d.fillStyle) || (c.fillStyle = d.fillStyle, c.fillRect(b.v71a2664071094228f2c6752a9e443a73 * a.x - e + 3, b.v3cf85cc500623efd8beb1289c58e6ab9 * a.y - f + 3, (b.v720a686d07a187d95f3cacd683ca2bfd - b.v71a2664071094228f2c6752a9e443a73) * a.x + a.x - 6, (b.v584ab5d973b6b660ea4022ecb028e64e - b.v3cf85cc500623efd8beb1289c58e6ab9) * a.y + a.y - 6))
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.va67977e167a9efd933bd15b7b1f8b384 = function (d, e, c) {
var b = d.get('name') + '|' + e.get('name');
c && (b += JSON.stringify(c));
var a = this.__vab32eb4048ac52487ddf8c9a74123769[b];
return _.isUndefined(a) && (a = this.map.vfc86802578e7dcdbfa2d00a3b095983f(d, e, c)), this.__vab32eb4048ac52487ddf8c9a74123769[b] = a, a
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vd24e3ff7b571e719f6e586cb4745a698 = function (b, c, d) {
var a = this.map.vf28ed955aac5cd06bceea010c659a590(b);
return a == null ? null : this.va67977e167a9efd933bd15b7b1f8b384(a, c, d)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v12129b226b1ece8fa7f6ff9a9d03bfc1 = function () {
this.__vab32eb4048ac52487ddf8c9a74123769 = {}, _.forEach(this.vfa70ca62e66b1581fc05bef8ab9d26f9, function (a) {
_.isFunction(a.v12129b226b1ece8fa7f6ff9a9d03bfc1) && a.v12129b226b1ece8fa7f6ff9a9d03bfc1()
})
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v27682fdac324405162ac7e394f58e4c1 = function (i, k, h) {
var c = [];
if (c.v657e3b6ac90f6a38de6cb0a741ad936e(i), _.isUndefined(h))
return c;
var d = i.v9dffea00793b035d979d90473e693748();
for (var a = 0; a < h.length; a++) {
var e = h.substring(a, a + 1), f = 0, g = 0;
if (e == 'F' && (f = 1), e == 'B' && (f = -1), e == 'L' && (g = -1), e == 'R' && (g = 1), k == -1)
var b = 'N' + (d.x + f) + '-' + (d.y + g);
else
var b = 'N' + (d.x + g) + '-' + (d.y + f);
if (this.isNode(b)) {
var j = this.map.v040524d79fd2ae5ca93384aa85fd60a4(b);
c.v657e3b6ac90f6a38de6cb0a741ad936e(j)
}
}
return c
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v18406fb5454623d4d4551953567200d2 = function (c, b) {
var a = c.v9dffea00793b035d979d90473e693748();
return b == 'SE' && a.x++, b == 'SW' && a.y++, b == 'NW' && a.x--, b == 'NE' && a.y--, this.map.vaed5f6f2d7e4bc585e9fd131eba0ec3c('N' + a.x + '-' + a.y)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.va0e4999a7ecd60cfb08227d8875bb278 = function (a, b) {
this.map.v5f9677f6574a04c460650f52a22d80aa(a, b)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v86cc3dc7a554f7e2b69698d4327f4d0f = function (a, b) {
this.map.v27dac7fbf5300cf30b7f7fbca775034a(a, b)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v0af52a77c683599d082063a00fe5a177 = function (a, b) {
this.map.v551c6f72540b09aac5f2e23ff872b272(a, b)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v3c9ea01b1801ba9193503a18b6a2c25a = function (h, j, i) {
var e = null, d = 9999999, g = h.v27682fdac324405162ac7e394f58e4c1();
for (var c = 0; c < g.length; c++) {
var b = g[c];
if (b != h.node && b.v05db26d76cc0bffb9d59521c55bc9f97(i))
continue;
var a = this.va67977e167a9efd933bd15b7b1f8b384(j, b, i);
if (a != null) {
var f = a.v85f7358b5fd3abf0082918fe1449bd43();
f < d && (d = f, e = a)
}
}
return e
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v1592e4be18f6b11d2645e5086c4b7d45 = function () {
return U.pick(_.filter(this.map.nodes, _.bind(function (a) {
return this.v295cb877af8135cd75e7ebf2ca4dfed8(a) instanceof v9bc041960e80b10064b57b79a0d88cd9
}, this)), A.vb06c3a859d6038b4515bccc5f1f891ef().random)
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v85264d2a58eef35dd31e00ee8f93da00 = function (c, a) {
if (!A.vf3351ba56d8b7e42f05b30b819a9db80().v720508d5c3659b419d8d583088d93da4('showConnectors'))
return;
var b = [];
_.each(this.map.nodes, function (a) {
if (a.v05db26d76cc0bffb9d59521c55bc9f97())
return;
var c = a.vb7e6933e08c4de316a6e97ab4fff0a64();
_.each(c, function (c) {
if (c.v05db26d76cc0bffb9d59521c55bc9f97())
return;
b.v657e3b6ac90f6a38de6cb0a741ad936e([
a,
c
])
})
}), _.each(b, function (d) {
var b = d[0].va104dfefa6670b37275d51b041f7e0bd(), c = d[1].va104dfefa6670b37275d51b041f7e0bd();
a.beginPath(), a.moveTo(b.x, b.y), a.lineWidth = 2, a.v2cfccdae09c4bc7c589324299403bc1b = 'square', a.lineTo(c.x, c.y), a.strokeStyle = '#FF0000', a.stroke()
})
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vd4b812106241ad35180ec35536ba68dd = function (a, b) {
this.vcbcff6bce36b0c77d78a4353e7638402();
var c = new Point(a * this.__v3b76eb4b3116c4a227cd083a828ec4c4.w - b * this.__v3b76eb4b3116c4a227cd083a828ec4c4.h + this.__v3b76eb4b3116c4a227cd083a828ec4c4.ox, (a * this.__v3b76eb4b3116c4a227cd083a828ec4c4.w + b * this.__v3b76eb4b3116c4a227cd083a828ec4c4.h) / 2 + this.__v3b76eb4b3116c4a227cd083a828ec4c4.oy);
return c
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vafe213d94504fbe4b8f31d2266a5c51d = function (a, b) {
this.vcbcff6bce36b0c77d78a4353e7638402();
var c = new Point((a - this.__v3b76eb4b3116c4a227cd083a828ec4c4.ox) / (2 * this.__v3b76eb4b3116c4a227cd083a828ec4c4.w) + (b - this.__v3b76eb4b3116c4a227cd083a828ec4c4.oy) / this.__v3b76eb4b3116c4a227cd083a828ec4c4.h, (-a + this.__v3b76eb4b3116c4a227cd083a828ec4c4.ox) / (2 * this.__v3b76eb4b3116c4a227cd083a828ec4c4.w) + (b - this.__v3b76eb4b3116c4a227cd083a828ec4c4.oy) / this.__v3b76eb4b3116c4a227cd083a828ec4c4.h);
return c
}, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vcbcff6bce36b0c77d78a4353e7638402 = function () {
if (this.__v3b76eb4b3116c4a227cd083a828ec4c4 == undefined) {
var a = this.get('origin'), b = this.get('nodeSpread');
this.__v3b76eb4b3116c4a227cd083a828ec4c4 = {
ox: a.x,
oy: a.y,
w: b.x,
h: b.y
}
}
}, v76df45e01f375ce83274fd873101ca63.prototype.constructor = v76df45e01f375ce83274fd873101ca63, v76df45e01f375ce83274fd873101ca63.prototype.get = function (a) {
return this[a]
}, v76df45e01f375ce83274fd873101ca63.prototype.v42cfaa8bbf6dfa2f1f17f7c364e3ee32 = function (b, c, d, e) {
var a = this.v04b0dd7d7198b9c7a88db3da70c7c354();
this.footprint = {
v71a2664071094228f2c6752a9e443a73: b,
v720a686d07a187d95f3cacd683ca2bfd: c,
v3cf85cc500623efd8beb1289c58e6ab9: d,
v584ab5d973b6b660ea4022ecb028e64e: e
}, _.xor(a, this.v04b0dd7d7198b9c7a88db3da70c7c354()).length > 0 && this.floor.onFloorObjectMove(this.node, this.node, this)
}, v76df45e01f375ce83274fd873101ca63.prototype.v1cb62fba49731d3783250f6ec91a4a99 = function (b) {
var a = this.get('footprint');
return a || (a = {
v71a2664071094228f2c6752a9e443a73: 0,
v720a686d07a187d95f3cacd683ca2bfd: 0,
v3cf85cc500623efd8beb1289c58e6ab9: 0,
v584ab5d973b6b660ea4022ecb028e64e: 0
}), _.isUndefined(b) && (_.isUndefined(this.dy) || (b = this.dy)), b == 1 && (rotFootprint = _.clone(a), rotFootprint.v71a2664071094228f2c6752a9e443a73 = a.v3cf85cc500623efd8beb1289c58e6ab9, rotFootprint.v720a686d07a187d95f3cacd683ca2bfd = a.v584ab5d973b6b660ea4022ecb028e64e, rotFootprint.v3cf85cc500623efd8beb1289c58e6ab9 = a.v71a2664071094228f2c6752a9e443a73, rotFootprint.v584ab5d973b6b660ea4022ecb028e64e = a.v720a686d07a187d95f3cacd683ca2bfd, a = rotFootprint), a
}, v76df45e01f375ce83274fd873101ca63.prototype.vbc7398e5a6e3c83f57205149871b22f0 = function (b) {
if (_.isUndefined(this.get('footprintBlocked')))
return !0;
else {
var a = this.get('footprintBlocked');
if (_.isArray(a))
if (b) {
var c = _.indexOf(this.v04b0dd7d7198b9c7a88db3da70c7c354(), b);
a = a[c]
} else
a = _.any(a);
return a
}
}, v76df45e01f375ce83274fd873101ca63.prototype.v04b0dd7d7198b9c7a88db3da70c7c354 = function (a, f) {
_.isUndefined(f) && (f = this.dy), (_.isUndefined(a) || _.isNull(a)) && (a = this.node), footprint = this.v1cb62fba49731d3783250f6ec91a4a99(f);
var g = [];
if (a) {
snInd = a.v9dffea00793b035d979d90473e693748();
for (var b = footprint.v71a2664071094228f2c6752a9e443a73; b <= footprint.v720a686d07a187d95f3cacd683ca2bfd; b++)
for (var c = footprint.v3cf85cc500623efd8beb1289c58e6ab9; c <= footprint.v584ab5d973b6b660ea4022ecb028e64e; c++) {
var d = snInd.x + b, e = snInd.y + c;
if (d < 0 || e < 0 || d >= this.floor.get('gridSize').x || e >= this.floor.get('gridSize').y)
return !1;
g.v657e3b6ac90f6a38de6cb0a741ad936e(this.floor.map.v040524d79fd2ae5ca93384aa85fd60a4(this.floor.v4541032622e9bef1a24a2380fa9cad62(d, e)))
}
}
return g
}, v76df45e01f375ce83274fd873101ca63.prototype.v04325913505c0244c59c874870c22e88 = function (a) {
return _.contains(this.v04b0dd7d7198b9c7a88db3da70c7c354(), a)
}, v76df45e01f375ce83274fd873101ca63.prototype.v0122ac692b08ce3d18501dc97a8c6d4a = function (e, b) {
b || (b = this.node);
var c = [], a = this.get('inaccessibleDirections');
if (a) {
if (_.isArray(a)) {
var d = _.indexOf(this.v04b0dd7d7198b9c7a88db3da70c7c354(), b);
a = a[d]
}
_.each(a, function (a) {
a = this.v4df752cb2fb3c91b7bbac36315ee13c8(a);
var d = e.v18406fb5454623d4d4551953567200d2(b, a);
d && c.v657e3b6ac90f6a38de6cb0a741ad936e(d)
}, this)
}
return c
}, v76df45e01f375ce83274fd873101ca63.prototype.v4df752cb2fb3c91b7bbac36315ee13c8 = function (a) {
var b = _.isUndefined(this.dy) ? -1 : this.dy;
return a == 'F' && (a = b == -1 ? 'SE' : 'SW'), a == 'B' && (a = b == -1 ? 'NW' : 'NE'), a == 'L' && (a = b == -1 ? 'SW' : 'NW'), a == 'R' && (a = b == -1 ? 'NE' : 'SE'), a
}, v76df45e01f375ce83274fd873101ca63.prototype.v27682fdac324405162ac7e394f58e4c1 = function () {
var a = [];
return _.forEach(this.v04b0dd7d7198b9c7a88db3da70c7c354(), _.bind(function (c) {
var b = this.floor.v27682fdac324405162ac7e394f58e4c1(c, this.dy, this.vbc038ec24e3b79b212f45cc1e5401a50());
a.v65232cbf984e4899d32f63ff906d72ec(b)
}, this)), a
}, v76df45e01f375ce83274fd873101ca63.prototype.vbc038ec24e3b79b212f45cc1e5401a50 = function () {
return this.get('accessNodes')
}, v76df45e01f375ce83274fd873101ca63.prototype.vfe27e6a08136a4dd141bf605067d43b6 = function (c) {
var b = this.v27682fdac324405162ac7e394f58e4c1(), a = !1;
return c ? a = _.any(b, _.bind(function (a) {
return this.v04325913505c0244c59c874870c22e88(a) ? !1 : a.get('blocked')
}, this)) : a = _.every(b, function (a) {
return a.get('blocked')
}), a
}, v76df45e01f375ce83274fd873101ca63.prototype.v7ef2d88c25e42e369b9351a7caf6fbb6 = function (b, a) {
b.vdd11ee24bb0b496c042287e9d83254a9(this), a.v8c52e48d2249455ab4047b00df6378cd(this), this.floor = a
}, v76df45e01f375ce83274fd873101ca63.prototype.va104dfefa6670b37275d51b041f7e0bd = function () {
return this.node.va104dfefa6670b37275d51b041f7e0bd()
}, v76df45e01f375ce83274fd873101ca63.prototype.v5d2f0ab3575cd429aba24ede75f2d357 = function (a) {
var b = this.v04b0dd7d7198b9c7a88db3da70c7c354();
_.each(b, function (c) {
if (!_.isUndefined(a))
var e = a;
else
var e = this.vbc7398e5a6e3c83f57205149871b22f0(c);
c.blocked = e;
var g = this.v0122ac692b08ce3d18501dc97a8c6d4a(this.floor, c), h = _.union(b, g);
for (var f = 0; f < h.length; f++) {
var d = h[f];
if (d == c)
continue;
if (_.includes(g, d))
if (a != 0)
this.floor.va0e4999a7ecd60cfb08227d8875bb278(c, d);
else {
if (neighborObj = this.floor.v295cb877af8135cd75e7ebf2ca4dfed8(d), neighborObj != this && _.isFunction(neighborObj.v0122ac692b08ce3d18501dc97a8c6d4a) && _.includes(neighborObj.v0122ac692b08ce3d18501dc97a8c6d4a(this.floor, d), c))
return;
this.floor.v86cc3dc7a554f7e2b69698d4327f4d0f(c, d)
}
else
this.floor.v86cc3dc7a554f7e2b69698d4327f4d0f(c, d)
}
}, this)
}, v76df45e01f375ce83274fd873101ca63.prototype.v74b8d528b0463ef31bb28dcf17b78347 = function () {
if (_.isFunction(this.get)) {
var a = this.get('actionEnabler');
if (!a || A.vf3351ba56d8b7e42f05b30b819a9db80().v6160eecf80c7486bdbe11abba3a31a63(a)) {
var b = this.get('userCanRotate');
return b == 0 || b == 0 ? !1 : !0
}
return !1
}
return !0
}, v76df45e01f375ce83274fd873101ca63.prototype.v2afe82f849bcf2d66104c525d7afd93b = function () {
if (_.isFunction(this.get)) {
var a = this.get('actionEnabler');
if (!a || A.vf3351ba56d8b7e42f05b30b819a9db80().v6160eecf80c7486bdbe11abba3a31a63(a)) {
var b = this.get('userCanRemove');
return b == 0 || b == 0 ? !1 : !0
}
return !1
}
return !0
}, v76df45e01f375ce83274fd873101ca63.prototype.v12129b226b1ece8fa7f6ff9a9d03bfc1 = function () {
this.__vbcc689c942faa74e017fb71b44a0c45c && (this.__vbcc689c942faa74e017fb71b44a0c45c = {})
}, v76df45e01f375ce83274fd873101ca63.prototype.v6ecbf7e68c80854fcec3f646c90a55fc = function (a, b) {
var c = this.get('actionEnabler');
if (c && A.vf3351ba56d8b7e42f05b30b819a9db80().isDisabled(c))
return !1;
(this.v2afe82f849bcf2d66104c525d7afd93b() || this.v74b8d528b0463ef31bb28dcf17b78347()) && (a.vc0b2883bc4d76261a83c33d814d4bc5c(b), this.v74b8d528b0463ef31bb28dcf17b78347() && a.v5ea5dbd8f5a2b8ed4d3c002c62a1c0fc('edit', 'Rotate ' + this.v362697120ef6bc3b622eb15f1c1a8b9e(), _.bind(this.rotate, this), b), this.v2afe82f849bcf2d66104c525d7afd93b() && a.v5ea5dbd8f5a2b8ed4d3c002c62a1c0fc('remove', 'Remove ' + this.v362697120ef6bc3b622eb15f1c1a8b9e(), _.bind(this.remove, this), b))
}, v76df45e01f375ce83274fd873101ca63.prototype.v354ae56d60c3c7a9130c54e271bc0585 = function (d, c, e) {
var b = 'noAccess';
if (this.vfe27e6a08136a4dd141bf605067d43b6(e)) {
A.vf3351ba56d8b7e42f05b30b819a9db80().v5ec8139af28215c287fb6717d890d25e || (Alert.show('<img src=\'' + A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.ve8cb17f39f5426fa16dd6502b23c6947(b, 0, 0) + '\' style=\'float:left;\'/>This icon shows items that are blocked and inaccessible'), A.vf3351ba56d8b7e42f05b30b819a9db80().v5ec8139af28215c287fb6717d890d25e = !0);
var a = new vbe6dfab6e47ff3d003a423092f4c35ef(U.vd094fbb4adf4ebb4bca2ff15236eb278(this.v0d6841dba7e1d517dafcec02307f0f56()), b);
a.flipX = c.flipX, a.alpha = d, a.clickable = !1, c.drawablesAfter.v657e3b6ac90f6a38de6cb0a741ad936e(a)
} else
_.remove(c.drawablesAfter, { imageName: b })
}, v76df45e01f375ce83274fd873101ca63.prototype.v07f3eb9f7d0137777209759be2787ffe = function (a) {
return !0
}, v76df45e01f375ce83274fd873101ca63.prototype.v6ee226cd282d4f8b76e69d4d2348f0a7 = function () {
var a = this.get('actionEnabler');
return a && A.vf3351ba56d8b7e42f05b30b819a9db80().isDisabled(a) ? !1 : this.get('userCanMove') != 0
}, v76df45e01f375ce83274fd873101ca63.prototype.v4ce19c16001fe9f274bc08ac6fa10ba6 = function (b) {
var a = [this.dy];
return this.v74b8d528b0463ef31bb28dcf17b78347() && (this.v69084bae2a555f5a7ce3151b433bfef9 ? a = [
this.v69084bae2a555f5a7ce3151b433bfef9,
-1 * this.v69084bae2a555f5a7ce3151b433bfef9
] : a = [
this.dy,
-1 * this.dy
]), _.some(a, _.bind(function (a) {
return this.floor.v9198357d3c90d88fb1d53e0855ecfb30(this, b, a) && this.v07f3eb9f7d0137777209759be2787ffe(b) ? (this.dy = a, !0) : void 0
}, this))
}, v76df45e01f375ce83274fd873101ca63.prototype.v63cdceda7131ea881cabd0b95325fa9c = function () {
return []
}, v76df45e01f375ce83274fd873101ca63.prototype.v0b94e7cf8e38b475e0d806dad42f3845 = function (b) {
var a = this.vad5d1402627ec0096f3b4529348d864a();
if (a > 0)
if (b.vcb519d3d4ef0f894468aab43b30f54f1.v4988ecc84cd668e1775d8877fadf0519('Cash') >= a)
b.vcb519d3d4ef0f894468aab43b30f54f1.vbc3f437d147654d5b4047440bac28533(this.ve8117670d0f913c4c689e2d273434068() + ' ', a, 'Cash'), this.v86ca8c88e88f18da8c748ab54d59c279(), b.v69cae692ace155bf2f816d6294dc710d.vc2efdb89ecdb56c0e8ae271473dd61f9(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Cost of purchased {0} was {1}.', [
this.vb4bd30527e2bb3921e7abc7d0e073284().toLowerCase(),
U.vd2b41c989db2a5e0c4b05790433f1562(a)
]));
else
return Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('You do not have enough cash to purchase a {0}.', [this.vb4bd30527e2bb3921e7abc7d0e073284().toLowerCase()]), U.vbacce6a42a9154e1b2ea38c9b107fbb2('Not Enough Cash')), !1;
return !0
}, v76df45e01f375ce83274fd873101ca63.prototype.v0d6841dba7e1d517dafcec02307f0f56 = function () {
return this.node.va104dfefa6670b37275d51b041f7e0bd()
}, v76df45e01f375ce83274fd873101ca63.prototype.v86ca8c88e88f18da8c748ab54d59c279 = function () {
}, v76df45e01f375ce83274fd873101ca63.prototype.vad5d1402627ec0096f3b4529348d864a = function () {
return this.get('equipmentCost')
}, v76df45e01f375ce83274fd873101ca63.prototype.ve8117670d0f913c4c689e2d273434068 = function () {
return this.get('accountingName')
}, v76df45e01f375ce83274fd873101ca63.prototype.vb4bd30527e2bb3921e7abc7d0e073284 = function () {
return this.get('name')
}, v9bc041960e80b10064b57b79a0d88cd9.prototype = Object.create(v4aab7331ac7595e7894e32c19542a754.prototype), v9bc041960e80b10064b57b79a0d88cd9.prototype.constructor = v9bc041960e80b10064b57b79a0d88cd9, v9bc041960e80b10064b57b79a0d88cd9.prototype.init = function (a) {
this.floor = a
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.va9cedc721d38dd0cffc8dab1d2e5b8a9 = function () {
return '0'
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.get = function (a) {
return this[a]
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.vcc77bc27257eacc34b9ae960e98b2a58 = function () {
return this.get('gridX')
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.vf69f83b7881171f56e24f163d93955a1 = function () {
return this.get('gridY')
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.v9dffea00793b035d979d90473e693748 = function () {
var a = this.get('name').substr(1).split('-');
return {
x: parseInt(a[0]),
y: parseInt(a[1])
}
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.vf18f6429345d5b7febceb7b2165f23a8 = function (b) {
if (_.isUndefined(this.v1a290da8dba90bfc4a7bb7baffbdf535))
this.floor.vf18f6429345d5b7febceb7b2165f23a8(b, this.get('name'));
else {
var a = new frmContextMenu(b, this.get('name'));
a.v8d57dda12f8951da88f3c6827658f646(this.floor.v14429bd85fdd195c82740ceda3d2f761[this.v1a290da8dba90bfc4a7bb7baffbdf535]), a.show()
}
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.ve41ad249e09601f5fc33fcd206954ce1 = function (a) {
this.v1a290da8dba90bfc4a7bb7baffbdf535 = a
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.v182da8736b7a8dc68a02b7d06281b2f9 = function () {
return this.get('baseTileImageName') ? this.get('baseTileImageName') : this.floor.v8452c41ed0d9fb47e821bc0b64c0ab82()
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.v35539ff1d279ace5d966cb6af9772e2c = function (c, a, b) {
this.baseTileImageName = c, a && (this.row = a), b && (this.flipX = b)
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.vace1743ae632a9f23e876cef7207bff1 = function (a) {
a ? this.pathLocationOffset = a : this.pathLocationOffset = null
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.v63cdceda7131ea881cabd0b95325fa9c = function () {
var a = new vbe6dfab6e47ff3d003a423092f4c35ef(this.va104dfefa6670b37275d51b041f7e0bd(), this.v182da8736b7a8dc68a02b7d06281b2f9());
return a.clickable = !1, a.cache = !0, a.v7a9ce2c4e74e75d3cc4ccdef17e58262 = !1, a.plane = -2, this.row && (a.row = this.row), this.flipX && (a.flipX = this.flipX), [a]
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.v26baece43410e172361dfa585625b2bf = function (b) {
this.v06061aa61a109873316d17c1a6ad57e0 = .5, this.v04ab3916b6c27abc67ffd69caea6f891 = .5;
var a = v4aab7331ac7595e7894e32c19542a754.prototype.v26baece43410e172361dfa585625b2bf.call(this, b);
return this.v06061aa61a109873316d17c1a6ad57e0 = null, this.v04ab3916b6c27abc67ffd69caea6f891 = null, a
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.v05db26d76cc0bffb9d59521c55bc9f97 = function (a) {
if (_.isObject(a)) {
if (!_.isUndefined(a[this.get('name')]))
return a[this.get('name')];
if (!_.isUndefined(a[this.id]))
return a[this.id]
}
return v4aab7331ac7595e7894e32c19542a754.prototype.v05db26d76cc0bffb9d59521c55bc9f97.call(this)
}, v9bc041960e80b10064b57b79a0d88cd9.prototype.vb50fc58d21e6ed625bad8bd30fbc8bbc = function () {
var a = this.v9dffea00793b035d979d90473e693748();
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('({0},{1})', [
a.x + 1,
a.y + 1
])
}, v27eb52255b219d669bc8df98aaa52940.prototype = Object.create(v76df45e01f375ce83274fd873101ca63.prototype), v27eb52255b219d669bc8df98aaa52940.prototype.constructor = v27eb52255b219d669bc8df98aaa52940, v27eb52255b219d669bc8df98aaa52940.prototype.init = function (b, c, d, e, a) {
this.node = c, this.v0cce122862de131c3015d708c507b474 = b, this.node.blocked = this.vbc7398e5a6e3c83f57205149871b22f0(this.node), this.v2709a24449d9a4bf61d7ad0074b39acf = d, _.isUndefined(a) || (this.dy = a), this.get('dy') ? this.dy = this.get('dy') : this.dy = -1, this.v157e6baa260de66ee18c70877d9de990(e), this.events.v49ad792f5229d4be359d5c4aa4e18617(this, 'move', 'onFloorStackMoved')
}, v27eb52255b219d669bc8df98aaa52940.prototype.get = function (a) {
return this[a] ? this[a] : this.v0cce122862de131c3015d708c507b474 ? this.v0cce122862de131c3015d708c507b474.get(a) : undefined
}, v27eb52255b219d669bc8df98aaa52940.prototype.v362697120ef6bc3b622eb15f1c1a8b9e = function () {
return this.get('name')
}, v27eb52255b219d669bc8df98aaa52940.prototype.onFloorStackMoved = function (b, a) {
this.v5d2f0ab3575cd429aba24ede75f2d357(!1), this.node = a, this.v5d2f0ab3575cd429aba24ede75f2d357(), this.__vbcc689c942faa74e017fb71b44a0c45c = {}
}, v27eb52255b219d669bc8df98aaa52940.prototype.va1ced68a80869b2f62b31e657ccce866 = function (a, b) {
this.__vbcc689c942faa74e017fb71b44a0c45c = {}
}, v27eb52255b219d669bc8df98aaa52940.prototype.vbc7398e5a6e3c83f57205149871b22f0 = function (a) {
return v76df45e01f375ce83274fd873101ca63.prototype.vbc7398e5a6e3c83f57205149871b22f0.call(this, a) == 0 ? !1 : this.get('walkThroughWhenEmpty') && this.v2709a24449d9a4bf61d7ad0074b39acf == 0 ? !1 : !0
}, v27eb52255b219d669bc8df98aaa52940.prototype.vbf5df9d7e0a47bc92c1cdcaabc673213 = function (c) {
var a = this.v2709a24449d9a4bf61d7ad0074b39acf;
if (this.v2709a24449d9a4bf61d7ad0074b39acf += c, a == 0 && this.v2709a24449d9a4bf61d7ad0074b39acf > 0 || a > 0 && this.v2709a24449d9a4bf61d7ad0074b39acf == 0) {
var b = this.vbc7398e5a6e3c83f57205149871b22f0(this.node);
b != this.node.blocked && (this.node.blocked = b, this.floor.v12129b226b1ece8fa7f6ff9a9d03bfc1())
}
}, v27eb52255b219d669bc8df98aaa52940.prototype.vb8fcc44f955f43b26c0b823a57be5f8f = function () {
return this.v2709a24449d9a4bf61d7ad0074b39acf
}, v27eb52255b219d669bc8df98aaa52940.prototype.v5930b0d69e89ee8338f95d064cc975a4 = function (a) {
this.v2709a24449d9a4bf61d7ad0074b39acf = a, this.node.blocked = this.vbc7398e5a6e3c83f57205149871b22f0(this.node)
}, v27eb52255b219d669bc8df98aaa52940.prototype.maxAllowed = function (a) {
_.isUndefined(a) && (a = 'floorStack');
var b = this.get(a), c = this.v481ba2eb0741f3b45e36d9da8a99b8c4(a);
return b && b.vfa7501305d24abbe716e6f42d02114a6 && (c *= b.vfa7501305d24abbe716e6f42d02114a6.number), c
}, v27eb52255b219d669bc8df98aaa52940.prototype.v481ba2eb0741f3b45e36d9da8a99b8c4 = function (b) {
_.isUndefined(b) && (b = 'floorStack');
var a = this.get(b), c = 0;
return a && a.vaf0aee3a08d6f443e188c38464a9045a.X && a.vaf0aee3a08d6f443e188c38464a9045a.Y && a.vaf0aee3a08d6f443e188c38464a9045a.Z && (c = a.vaf0aee3a08d6f443e188c38464a9045a.X * a.vaf0aee3a08d6f443e188c38464a9045a.Y * a.vaf0aee3a08d6f443e188c38464a9045a.Z), c
}, v27eb52255b219d669bc8df98aaa52940.prototype.vf18f6429345d5b7febceb7b2165f23a8 = function (b) {
var a = new frmContextMenu(b);
a.show(), a.v8d57dda12f8951da88f3c6827658f646(this.get('name')), a.v4d77ae1222564924ebffd0e618e01f8b('Count: ' + this.v2709a24449d9a4bf61d7ad0074b39acf + ' of ' + this.maxAllowed())
}, v27eb52255b219d669bc8df98aaa52940.prototype.va104dfefa6670b37275d51b041f7e0bd = function () {
return this.__v2cbc24296d0f74841ec12e7645afb96e ? this.__v314385c9a8894d21bf0fc7aed35a23a9.clone() : this.node.va104dfefa6670b37275d51b041f7e0bd()
}, v27eb52255b219d669bc8df98aaa52940.prototype.vbc038ec24e3b79b212f45cc1e5401a50 = function () {
var a = v76df45e01f375ce83274fd873101ca63.prototype.vbc038ec24e3b79b212f45cc1e5401a50.call(this);
return a || (a = 'F'), a
}, v27eb52255b219d669bc8df98aaa52940.prototype.rotate = function () {
this.floor.v12129b226b1ece8fa7f6ff9a9d03bfc1(this), this.v5d2f0ab3575cd429aba24ede75f2d357(!1), this.dy *= -1, this.v5d2f0ab3575cd429aba24ede75f2d357(), A.vf3351ba56d8b7e42f05b30b819a9db80().running || A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b()
}, v27eb52255b219d669bc8df98aaa52940.prototype.v63cdceda7131ea881cabd0b95325fa9c = function (d) {
var a, f = this.vb8fcc44f955f43b26c0b823a57be5f8f(), b = this.v8dbd2c9b4a46e757e95aafefe0928729(d);
if (this.__vbcc689c942faa74e017fb71b44a0c45c[b] && !this.__v2cbc24296d0f74841ec12e7645afb96e ? (U.v90c847f353145812a35b4d545170829a(this.__vbcc689c942faa74e017fb71b44a0c45c[b][0], function (a) {
a.clickable = !0
}), a = this.__vbcc689c942faa74e017fb71b44a0c45c[b]) : (a = this.v832e61d8e66fe6f3158a44352120c7c3(d), a[0].cache = !0, a[0].v7c056d47dc2a91151c75a39bfcb33041 = b, this.__v2cbc24296d0f74841ec12e7645afb96e || (this.__vbcc689c942faa74e017fb71b44a0c45c[b] = a)), A.vf3351ba56d8b7e42f05b30b819a9db80().v720508d5c3659b419d8d583088d93da4('shelfSigns') && !this.__v2cbc24296d0f74841ec12e7645afb96e) {
a[0].vbd5fe1eb0166be3d3c5abf3a4c60cc14 = _.bind(this.vafe20db676f8ec9e0b37a178ad723687, this);
var e = this.vb41d5635c8ddc7ac3d1e6430702fa1e1();
e.v5d5091b2d95de3512eebb373bdae4884 && (a[0].v492347134bdd86399872b16353ba6e51 = _.bind(this.v3c6f9c3fef810e6c1e6d6d194afebb02, this))
} else
a[0].vbd5fe1eb0166be3d3c5abf3a4c60cc14 = null, a[0].v492347134bdd86399872b16353ba6e51 = null;
var c = _.last(a);
return c.drawablesAfter.length > 0 && (c = _.last(c.drawablesAfter)), this.v354ae56d60c3c7a9130c54e271bc0585(.85, c), a
}, v27eb52255b219d669bc8df98aaa52940.prototype.v8dbd2c9b4a46e757e95aafefe0928729 = function (a) {
return a + '_' + this.v0cce122862de131c3015d708c507b474.id + '_' + this.vb8fcc44f955f43b26c0b823a57be5f8f() + '_' + this.dy
}, v27eb52255b219d669bc8df98aaa52940.prototype.v25196ed13cc6ca31bcfa62d3e731b111 = function (a) {
var b = this.va104dfefa6670b37275d51b041f7e0bd();
return !this.__v2cbc24296d0f74841ec12e7645afb96e && a && a.v2f59a39821a0cdf08e63ea9e6ff5c5fd && _.isObject(a.v2f59a39821a0cdf08e63ea9e6ff5c5fd.offset) && (this.dy == 1 ? b.x -= a.v2f59a39821a0cdf08e63ea9e6ff5c5fd.offset.x : b.x += a.v2f59a39821a0cdf08e63ea9e6ff5c5fd.offset.x, b.x += this.node.v9dffea00793b035d979d90473e693748().y % 2 ? -4 : 4, b.y += a.v2f59a39821a0cdf08e63ea9e6ff5c5fd.offset.y), b
}, v27eb52255b219d669bc8df98aaa52940.prototype.v832e61d8e66fe6f3158a44352120c7c3 = function (e) {
_.isUndefined(e) && (e = 'floorStack');
var c = this.va104dfefa6670b37275d51b041f7e0bd(), d = [], a = new vbe6dfab6e47ff3d003a423092f4c35ef(c, null), b = this.get(e);
b && b.v2f59a39821a0cdf08e63ea9e6ff5c5fd && (c = this.v25196ed13cc6ca31bcfa62d3e731b111(b), a = new vbe6dfab6e47ff3d003a423092f4c35ef(c, b.v2f59a39821a0cdf08e63ea9e6ff5c5fd.ir), b.v2f59a39821a0cdf08e63ea9e6ff5c5fd.flipX == 1 && (a.flipX = !0), b.v2f59a39821a0cdf08e63ea9e6ff5c5fd.alpha && (a.alpha = b.v2f59a39821a0cdf08e63ea9e6ff5c5fd.alpha), this.dy == 1 && (a.flipX = !a.flipX), b.v2f59a39821a0cdf08e63ea9e6ff5c5fd.plane && (a.plane = b.v2f59a39821a0cdf08e63ea9e6ff5c5fd.plane, d.v657e3b6ac90f6a38de6cb0a741ad936e(a), a = new vbe6dfab6e47ff3d003a423092f4c35ef(c, null))), _.isObject(this.get('pileOffset')) && (c = new Point(c.x + this.get('dy') * this.get('pileOffset').x, c.y + this.get('pileOffset').y)), a.drawablesAfter = this.v7e5e98ec16ea7db634c80781d06374cc(c, e), d.v657e3b6ac90f6a38de6cb0a741ad936e(a);
for (var f = 0; f < d.length; f++) {
var g = d[f];
U.v90c847f353145812a35b4d545170829a(g, _.bind(function (a) {
_.extend(a, vd88269f14c639d29ae709e1533438c8a, { vd47ed85cab7ce2b6d437e7b570eea18a: this }), this.__v2cbc24296d0f74841ec12e7645afb96e && (a.alpha = .4)
}, this))
}
return d
}, v27eb52255b219d669bc8df98aaa52940.prototype.v7e5e98ec16ea7db634c80781d06374cc = function (a, b) {
return this.v0cce122862de131c3015d708c507b474.v1326e4f53a93addc45a03099e110c09d(b, a, this.v2709a24449d9a4bf61d7ad0074b39acf, this.dy)
}, v27eb52255b219d669bc8df98aaa52940.prototype.vafe20db676f8ec9e0b37a178ad723687 = function (i, h) {
var f = this.get('floorStack');
if (f && f.v2f59a39821a0cdf08e63ea9e6ff5c5fd)
var b = this.v25196ed13cc6ca31bcfa62d3e731b111(f);
else
var b = this.va104dfefa6670b37275d51b041f7e0bd();
var a = {
xOffsetNegDY: -3,
yOffsetNegDY: -7,
xOffsetPosDY: -7,
yOffsetPosDY: -6
};
_.merge(a, this.vb41d5635c8ddc7ac3d1e6430702fa1e1()), b.y -= 90;
var g = .88 * this.floor.get('nodeSpread').x, c, d, e;
this.dy == -1 ? a.flipX ? (c = .5, d = -a.xOffsetNegDY, e = -b.x / 2 + a.yOffsetNegDY) : (c = -.5, d = a.xOffsetNegDY, e = b.x / 2 + a.yOffsetNegDY) : a.flipX ? (c = -.5, d = a.xOffsetPosDY, e = b.x / 2 + a.yOffsetPosDY) : (c = .5, d = -a.xOffsetPosDY, e = -b.x / 2 + a.yOffsetPosDY), U.vcc7a6c8ea1f40a2570376748916c3488({
context: h,
text: this.v362697120ef6bc3b622eb15f1c1a8b9e(),
x: b.x,
y: b.y,
fontSize: 10,
fontFamily: 'sans-serif',
color: a.vc39ed6d35bad23464433db73f91aa957,
skewX: c,
moveX: d,
moveY: e,
maxWidth: g - 2,
backgroundWidth: g + 4,
backgroundHeight: 32,
backgroundYOffset: 27,
backgroundFillColor: a.backgroundColor,
backgroundFillAlpha: a.alpha,
borderColor: a.borderColor,
borderWidth: 5,
borderAlpha: a.alpha,
vCenterLineOffset: 0
})
}, v27eb52255b219d669bc8df98aaa52940.prototype.v3c6f9c3fef810e6c1e6d6d194afebb02 = function (g, b) {
var a = this.va104dfefa6670b37275d51b041f7e0bd();
a.y -= 90;
var d = this.dy == -1 ? -.5 : .5, e = this.dy == -1 ? a.x / 2 : -a.x / 2, f = this.dy == -1 ? -10 : 12;
b.transform(1, d, 0, 1, f, e);
var c = this.vb41d5635c8ddc7ac3d1e6430702fa1e1();
b.globalAlpha = c.alpha, b.strokeStyle = c.borderColor, b.lineWidth = 3, b.strokeRect(a.x, a.y + 4, 0, 62)
}, v27eb52255b219d669bc8df98aaa52940.prototype.vb41d5635c8ddc7ac3d1e6430702fa1e1 = function () {
var a = this.get('shelfSignSpec');
return a || (a = {
alpha: 1,
borderColor: '#EEEEEE',
vc39ed6d35bad23464433db73f91aa957: '#FF0000',
backgroundColor: '#EEEEEE',
font: 'normal normal normal 12px arial'
}), a
};
var FloorView = function (a, b) {
vd0e0bb0864ecb4a3ba7598b3fbc1e77d.call(this, a, b)
};
FloorView.prototype = Object.create(vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype), FloorView.prototype.veff54eb5b7d015ac2bc937897c4c1748 = function () {
throw 'getFloorObject() must be overridden by subclass or App'
}, FloorView.prototype.vcea5a297058bf93c6c792ab5153e8695 = function () {
return this.veff54eb5b7d015ac2bc937897c4c1748().get('floorSize')
}, FloorView.prototype.v457d199922fd988b2ff40b420240a1a3 = function () {
var a = vd0e0bb0864ecb4a3ba7598b3fbc1e77d.prototype.v457d199922fd988b2ff40b420240a1a3.call(this);
return a.v65232cbf984e4899d32f63ff906d72ec(this.veff54eb5b7d015ac2bc937897c4c1748().v63cdceda7131ea881cabd0b95325fa9c()), a = a.sort(vbe6dfab6e47ff3d003a423092f4c35ef.v3647f4d98b63ac6bd7af663f228c044d), a
}, FloorView.prototype.v66a4f1afc101afd8c147e9a192681494 = function (a) {
this.veff54eb5b7d015ac2bc937897c4c1748().v66a4f1afc101afd8c147e9a192681494(a)
}, FloorView.prototype.v95961a7d37bc005d7bf2ad6832db38b1 = function (a, b) {
this.veff54eb5b7d015ac2bc937897c4c1748().v95961a7d37bc005d7bf2ad6832db38b1(a, b)
}, FloorView.prototype.v459bd07f26471417484e8e7547eea3a3 = function (a, b) {
this.veff54eb5b7d015ac2bc937897c4c1748().v459bd07f26471417484e8e7547eea3a3(a, b)
}, FloorView.prototype.onMouseMove = function (a, b) {
this.veff54eb5b7d015ac2bc937897c4c1748().onMouseMove(a, b)
}, FloorView.prototype.v213b452f35fa2bb266b4c9e8dada5505 = function (a, b) {
this.veff54eb5b7d015ac2bc937897c4c1748().v213b452f35fa2bb266b4c9e8dada5505(a, b)
}, FloorView.prototype.ve734d3949f6f8eb06431a1d6ce35bff5 = function (a, b) {
this.veff54eb5b7d015ac2bc937897c4c1748().ve734d3949f6f8eb06431a1d6ce35bff5(a, b)
}, FloorView.prototype.v00dab815311bf28411d614abdf8dcda0 = function (a, b) {
this.veff54eb5b7d015ac2bc937897c4c1748().v00dab815311bf28411d614abdf8dcda0(a, b)
}, FloorView.prototype.vb0d035acfd8e9ce66656c288fb25c276 = function (a, b) {
this.veff54eb5b7d015ac2bc937897c4c1748().vb0d035acfd8e9ce66656c288fb25c276(a, b)
}, FloorView.prototype.v52a42af26830ec7f8cc2ab4929db04e2 = function (a, b) {
this.veff54eb5b7d015ac2bc937897c4c1748().v52a42af26830ec7f8cc2ab4929db04e2(a, b)
}, FloorView.prototype.vc0106a6a893e4d313758985b80f88365 = function (a, b) {
this.veff54eb5b7d015ac2bc937897c4c1748().vc0106a6a893e4d313758985b80f88365(a, b)
}, vd88269f14c639d29ae709e1533438c8a.prototype.constructor = vd88269f14c639d29ae709e1533438c8a, vd88269f14c639d29ae709e1533438c8a.v7d4168985c5d06e44c4d68819959749e = function (a) {
_.isFunction(this.vd47ed85cab7ce2b6d437e7b570eea18a.vf18f6429345d5b7febceb7b2165f23a8) && (this.vd47ed85cab7ce2b6d437e7b570eea18a.__v8ca3b325cbcda27dcf4c9f38a08bb22f || this.vd47ed85cab7ce2b6d437e7b570eea18a.vf18f6429345d5b7febceb7b2165f23a8(a))
}, vd88269f14c639d29ae709e1533438c8a.v95961a7d37bc005d7bf2ad6832db38b1 = function (a) {
_.isFunction(this.vd47ed85cab7ce2b6d437e7b570eea18a.v95961a7d37bc005d7bf2ad6832db38b1) && this.vd47ed85cab7ce2b6d437e7b570eea18a.v95961a7d37bc005d7bf2ad6832db38b1(a, this.params)
}, vd88269f14c639d29ae709e1533438c8a.onMouseMove = function (a) {
_.isFunction(this.vd47ed85cab7ce2b6d437e7b570eea18a.onMouseMove) && this.vd47ed85cab7ce2b6d437e7b570eea18a.onMouseMove(a)
}, vd88269f14c639d29ae709e1533438c8a.v459bd07f26471417484e8e7547eea3a3 = function (a) {
_.isFunction(this.vd47ed85cab7ce2b6d437e7b570eea18a.v459bd07f26471417484e8e7547eea3a3) && this.vd47ed85cab7ce2b6d437e7b570eea18a.v459bd07f26471417484e8e7547eea3a3(a)
}, vd88269f14c639d29ae709e1533438c8a.onMouseLeave = function (a) {
_.isFunction(this.vd47ed85cab7ce2b6d437e7b570eea18a.onMouseLeave) && this.vd47ed85cab7ce2b6d437e7b570eea18a.onMouseLeave(a)
}, vd88269f14c639d29ae709e1533438c8a.v213b452f35fa2bb266b4c9e8dada5505 = function (a) {
this.v7d4168985c5d06e44c4d68819959749e(a), _.isFunction(this.vd47ed85cab7ce2b6d437e7b570eea18a.v213b452f35fa2bb266b4c9e8dada5505) && this.vd47ed85cab7ce2b6d437e7b570eea18a.v213b452f35fa2bb266b4c9e8dada5505(a)
}, vd88269f14c639d29ae709e1533438c8a.ve734d3949f6f8eb06431a1d6ce35bff5 = function (a) {
_.isFunction(this.vd47ed85cab7ce2b6d437e7b570eea18a.ve734d3949f6f8eb06431a1d6ce35bff5) && this.vd47ed85cab7ce2b6d437e7b570eea18a.ve734d3949f6f8eb06431a1d6ce35bff5(a, this.params)
}, vd88269f14c639d29ae709e1533438c8a.v00dab815311bf28411d614abdf8dcda0 = function (a) {
_.isFunction(this.vd47ed85cab7ce2b6d437e7b570eea18a.v00dab815311bf28411d614abdf8dcda0) && this.vd47ed85cab7ce2b6d437e7b570eea18a.v00dab815311bf28411d614abdf8dcda0(a)
}, vd88269f14c639d29ae709e1533438c8a.vb0d035acfd8e9ce66656c288fb25c276 = function (a) {
_.isFunction(this.vd47ed85cab7ce2b6d437e7b570eea18a.vb0d035acfd8e9ce66656c288fb25c276) && this.vd47ed85cab7ce2b6d437e7b570eea18a.vb0d035acfd8e9ce66656c288fb25c276(a)
}, vd88269f14c639d29ae709e1533438c8a.v52a42af26830ec7f8cc2ab4929db04e2 = function (a) {
this.v7d4168985c5d06e44c4d68819959749e(a), _.isFunction(this.vd47ed85cab7ce2b6d437e7b570eea18a.v52a42af26830ec7f8cc2ab4929db04e2) && this.vd47ed85cab7ce2b6d437e7b570eea18a.v52a42af26830ec7f8cc2ab4929db04e2(a)
}, vd88269f14c639d29ae709e1533438c8a.vc0106a6a893e4d313758985b80f88365 = function (a) {
_.isFunction(this.vd47ed85cab7ce2b6d437e7b570eea18a.vc0106a6a893e4d313758985b80f88365) && this.vd47ed85cab7ce2b6d437e7b570eea18a.vc0106a6a893e4d313758985b80f88365(a)
}, vd88269f14c639d29ae709e1533438c8a.v6ead0f133fc5f7e3ff75ccdbb070eca3 = function (a) {
_.isFunction(this.vd47ed85cab7ce2b6d437e7b570eea18a.v6ead0f133fc5f7e3ff75ccdbb070eca3) && this.vd47ed85cab7ce2b6d437e7b570eea18a.v6ead0f133fc5f7e3ff75ccdbb070eca3(a)
}, vd88269f14c639d29ae709e1533438c8a.v6f56fd84a121ccf8644b1335c888509d = function (a) {
_.isFunction(this.vd47ed85cab7ce2b6d437e7b570eea18a.v6f56fd84a121ccf8644b1335c888509d) && this.vd47ed85cab7ce2b6d437e7b570eea18a.v6f56fd84a121ccf8644b1335c888509d(a)
}, va81914decb1e6e367dd3b62fe669ef4d.prototype.constructor = va81914decb1e6e367dd3b62fe669ef4d, va81914decb1e6e367dd3b62fe669ef4d.prototype.init = function (a) {
_.assign(this, a)
}, va81914decb1e6e367dd3b62fe669ef4d.prototype.get = function (a) {
return this[a]
}, va81914decb1e6e367dd3b62fe669ef4d.prototype.set = function (a, b) {
this[a] = b
}, va81914decb1e6e367dd3b62fe669ef4d.prototype.v63cdceda7131ea881cabd0b95325fa9c = function (t, w, a, h, j) {
var c = [];
if (_.isUndefined(h))
var h = w.length;
point = new Point(t.x, t.y);
var i = _.clone(a.vba8cb9348fd5726d9b54bfb932e15191), q = _.clone(a.vaf0aee3a08d6f443e188c38464a9045a);
if (!a.v3c70c6208ac50886c53ef7f3aa6cac7b)
var m = {
X: 0,
Y: 0
};
else
var m = _.clone(a.v3c70c6208ac50886c53ef7f3aa6cac7b);
(this.vc79f4561ec66dc768c2499cc50445360 || j == -1) && (m.X *= -1);
var e = new Point(0, 0);
c.minOffset = new Point(0, 0), c.maxOffset = new Point(0, 0);
var f = 0, d = [], s = 1;
a.vfa7501305d24abbe716e6f42d02114a6 && (s = a.vfa7501305d24abbe716e6f42d02114a6.number);
for (var o = 0; o < s; o++) {
var p;
if (a.vfa7501305d24abbe716e6f42d02114a6 && (a.vfa7501305d24abbe716e6f42d02114a6.v4fa6db20548a3626167640c75822daca && (p = a.vfa7501305d24abbe716e6f42d02114a6.v4fa6db20548a3626167640c75822daca), a.vfa7501305d24abbe716e6f42d02114a6.vacdb14069c7666a47f6138ea1ab262b1 && (p = a.vfa7501305d24abbe716e6f42d02114a6.vacdb14069c7666a47f6138ea1ab262b1[o])), p) {
var b = new vbe6dfab6e47ff3d003a423092f4c35ef(point, p);
baseFlipX = !1, a.v2f59a39821a0cdf08e63ea9e6ff5c5fd && a.v2f59a39821a0cdf08e63ea9e6ff5c5fd.flipX && (baseFlipX = !0), b.flipX = baseFlipX, j == 1 && (b.flipX = !b.flipX), c.v657e3b6ac90f6a38de6cb0a741ad936e(b)
}
for (d[2] = 0; d[2] < q[i[2]]; d[2]++)
for (d[1] = 0; d[1] < q[i[1]]; d[1]++)
for (d[0] = 0; d[0] < q[i[0]]; d[0]++) {
if (a[i[0]] = d[0], a[i[1]] = d[1], a[i[2]] = d[2], f >= h)
continue;
e.y = a.v3f79e5a09c86823c63d1dd4c45a2c380.Y * a.Y / 2 + a.v3f79e5a09c86823c63d1dd4c45a2c380.X * a.X / 2 - a.v3f79e5a09c86823c63d1dd4c45a2c380.Z * a.Z, j == -1 ? e.x = -a.v3f79e5a09c86823c63d1dd4c45a2c380.X * a.X + a.v3f79e5a09c86823c63d1dd4c45a2c380.Y * a.Y : e.x = a.v3f79e5a09c86823c63d1dd4c45a2c380.X * a.X - a.v3f79e5a09c86823c63d1dd4c45a2c380.Y * a.Y, c.minOffset.x = Math.min(e.x, c.minOffset.x), c.maxOffset.x = Math.max(e.x, c.maxOffset.x), c.minOffset.y = Math.min(e.y, c.minOffset.y), c.maxOffset.y = Math.max(e.y, c.maxOffset.y), e = new Point(point.x - m.X + e.x, point.y + m.Y + e.y);
var g = w[f], l = undefined;
if (_.isObject(g) && _.isFunction(g.vb3fb571416d2d38249f7258304f95eb3) && (l = g.vb3fb571416d2d38249f7258304f95eb3(Math.min(1, h - f), a.X, a.Y, a.Z)), _.isObject(g) && _.isFunction(g.v4c513d921eb9c675a355f25437b82137))
var v = g.v4c513d921eb9c675a355f25437b82137(Math.min(1, h - f), a.X, a.Y, a.Z);
if (_.isString(g) && (l = g), _.isString(l)) {
var b = new vbe6dfab6e47ff3d003a423092f4c35ef(U.vd094fbb4adf4ebb4bca2ff15236eb278(e), l), k = A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(l);
if (b.color = v, b.plane = a.Z, _.isNumber(a.imageRow) && (b.row = a.imageRow), _.isUndefined(a.flipX) || (b.flipX = a.flipX), b.flipX = j == -1 ? !b.flipX : b.flipX, h - f < 1) {
var u = 'row', r = k.rows;
k.cols > k.rows && (u = 'col', r = k.cols), b[u] = Math.max(0, Math.floor(r - r * (h - f)) - 1)
} else
b.flipX && k.rows > 1 && (b.row = 1, b.flipX = !1);
c.v657e3b6ac90f6a38de6cb0a741ad936e(b), this.vb01e1335dd97155072083d9379460971(b, f)
}
f++
}
a.vfa7501305d24abbe716e6f42d02114a6 && (_.isNumber(a.vfa7501305d24abbe716e6f42d02114a6.spacing) ? point.y -= a.vfa7501305d24abbe716e6f42d02114a6.spacing : _.isObject(a.vfa7501305d24abbe716e6f42d02114a6.spacing) && (point.y -= a.vfa7501305d24abbe716e6f42d02114a6.spacing.y, this.vc79f4561ec66dc768c2499cc50445360 || j == -1 ? point.x -= a.vfa7501305d24abbe716e6f42d02114a6.spacing.x : point.x += a.vfa7501305d24abbe716e6f42d02114a6.spacing.x))
}
a.X = null, a.Y = null, a.Z = null;
var n = [];
return _.isString(a.v8e0422a44250fe0b2220aad7baf6504e) ? n.v657e3b6ac90f6a38de6cb0a741ad936e(a.v8e0422a44250fe0b2220aad7baf6504e) : _.isArray(a.v8e0422a44250fe0b2220aad7baf6504e) && n.v65232cbf984e4899d32f63ff906d72ec(a.v8e0422a44250fe0b2220aad7baf6504e), _.each(n, function (d) {
var b = new vbe6dfab6e47ff3d003a423092f4c35ef(t, d);
baseFlipX = !1, a.v2f59a39821a0cdf08e63ea9e6ff5c5fd && a.v2f59a39821a0cdf08e63ea9e6ff5c5fd.flipX && (baseFlipX = !0), b.flipX = baseFlipX, j == 1 && (b.flipX = !b.flipX), c.v657e3b6ac90f6a38de6cb0a741ad936e(b)
}), c
}, va81914decb1e6e367dd3b62fe669ef4d.prototype.v1326e4f53a93addc45a03099e110c09d = function (e, f, c, g) {
var d = this.v453dae0d039568d4036d9b2987d768f2(c);
c = d.length;
var b = this.get(e);
b || (b = this.get('floorStack'));
var a = [];
return b && (a = this.v63cdceda7131ea881cabd0b95325fa9c(f, d, b, c, g), e == 'cartStack') ? {
maxOffset: a.maxOffset,
minOffset: a.minOffset,
ds: a
} : a
}, va81914decb1e6e367dd3b62fe669ef4d.prototype.v453dae0d039568d4036d9b2987d768f2 = function (c) {
var a = [];
for (var b = 0; b < c; b++)
a.v657e3b6ac90f6a38de6cb0a741ad936e(this.id);
return a
}, va81914decb1e6e367dd3b62fe669ef4d.prototype.vb01e1335dd97155072083d9379460971 = function (a, b) {
}, v5bafaa73e0e648e291bbab7ad5a30af0.prototype = Object.create(v76df45e01f375ce83274fd873101ca63.prototype), v5bafaa73e0e648e291bbab7ad5a30af0.prototype.constructor = v5bafaa73e0e648e291bbab7ad5a30af0, v5bafaa73e0e648e291bbab7ad5a30af0.prototype.init = function (c, d, a, b) {
a == undefined && (a = 1), b == undefined && (b = !1), this.node = c, this.imageName = d, this.alpha = a, this.flipX = b
}, v5bafaa73e0e648e291bbab7ad5a30af0.prototype.v63cdceda7131ea881cabd0b95325fa9c = function () {
var b = [], a = new vbe6dfab6e47ff3d003a423092f4c35ef(this.node.va104dfefa6670b37275d51b041f7e0bd(), this.imageName);
return a.alpha = this.alpha, a.flipX = this.flipX, a.plane = -1, b.v657e3b6ac90f6a38de6cb0a741ad936e(a), b
}, frmContextMenu.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), frmContextMenu.prototype.constructor = frmContextMenu, frmContextMenu.prototype.init = function () {
}, frmContextMenu.prototype.v34f5384c83a82551cfd1d0edd624eda4 = function () {
var a = _.unescape(_.trim(this.v659adeed2a4e2cef902eda98e94b16a9.html()));
this.v659adeed2a4e2cef902eda98e94b16a9 = _.template(a), this.vc9df8beed4e7c544ac444c35ed29d7c8.html(''), this.v5bb00e90aaded59456e6523223f12e93.on('click', null, this, this.v635989dfbfda106ba825bceee928b78b), _.each(this.v4020eb5d50d55d5589df0b16695bf2b6, _.bind(function (a) {
a.src.off(a.event), a.src.on(a.event, _.bind(function () {
this.v82c97d4ef08948c76de260b25841376b && this.close()
}, this))
}, this))
}, frmContextMenu.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.v9f921d2a5112855490d3858a10dd3346()
}, frmContextMenu.prototype.v9f921d2a5112855490d3858a10dd3346 = function () {
if (this.vbf76e8310414427f5b5b16158414a6e6)
return;
_.each($('.accordion'), function (a) {
$(a).accordion({
heightStyle: 'content',
collapsible: !0,
animate: !1,
activate: _.bind(function (a, b) {
$('.dialog-context-menu').position(this.position)
}, this)
})
}, this), $('.dialog-context-menu').position(this.position)
}, frmContextMenu.prototype.v8d57dda12f8951da88f3c6827658f646 = function (a) {
this.title.html(a), this.v9f921d2a5112855490d3858a10dd3346()
}, frmContextMenu.prototype.v5ea5dbd8f5a2b8ed4d3c002c62a1c0fc = function (b, g, h, c) {
var d = this.v659adeed2a4e2cef902eda98e94b16a9({
itemId: b,
itemText: g
}), a = this.vc9df8beed4e7c544ac444c35ed29d7c8;
if (!_.isUndefined(c))
var a = this.selector.find(c);
var e = a.append(d), f = e.find('#' + b);
f.on('click', _.bind(function (a) {
h.call(this, a, b) !== !1 && this.v7a21d58d0b00b1e014229f52c832ab18()
}, this)), this.v9f921d2a5112855490d3858a10dd3346()
}, frmContextMenu.prototype.vc0b2883bc4d76261a83c33d814d4bc5c = function (b) {
var a = this.vc9df8beed4e7c544ac444c35ed29d7c8;
if (!_.isUndefined(b))
var a = $(b);
a.append('<hr>'), this.v9f921d2a5112855490d3858a10dd3346()
}, frmContextMenu.prototype.v4d77ae1222564924ebffd0e618e01f8b = function (c, b) {
var a = this.vc9df8beed4e7c544ac444c35ed29d7c8;
if (!_.isUndefined(b))
var a = $(b);
a.append(c), this.v9f921d2a5112855490d3858a10dd3346()
}, frmContextMenu.prototype.vf6d0ad5edb61bbdfc0758fa7c319cc68 = function (b) {
var a = '<div class=\'accordion\'>';
_.each(b, function (b) {
a += '<h3>' + b.text + '</h3><div id=\'' + b.id + '\';></div>'
}), a += '</div>', this.v4d77ae1222564924ebffd0e618e01f8b(a)
}, frmContextMenu.prototype.v26728cb20bd51839cdee55f459709023 = function () {
this.vbf76e8310414427f5b5b16158414a6e6 = !0
}, frmContextMenu.prototype.v50b8cdf19ad15ec1bf786dd2161c02d5 = function () {
this.vbf76e8310414427f5b5b16158414a6e6 = !1, this.v9f921d2a5112855490d3858a10dd3346()
}, frmContextMenu.prototype.v1c023593be058b46a959e1edcc526767 = function () {
}, frmContextMenu.prototype.v635989dfbfda106ba825bceee928b78b = function (a) {
a.data.close()
}, frmContextMenu.prototype.v7a21d58d0b00b1e014229f52c832ab18 = function () {
this.close()
}, frmContextMenu.prototype.onClose = function () {
_.each(this.v4020eb5d50d55d5589df0b16695bf2b6, function (a) {
a.src.off(a.event)
})
}, frmContextMenu.prototype.v5f699b6ce61b65708a4d26215dd340bb = function (c) {
var b = [], d;
c.srcElement ? d = $(c.srcElement) : c.target && (d = $(c.target));
var a = _.find(va1337b7722f001e1521f5c837ab1b7fe.v856cce03f71f29e1cc46ebd0151b96b1, function (b) {
var a = b.selector.find(d);
return a ? a.length == 0 ? !1 : !0 : !1
});
return a && a != this && (b.v657e3b6ac90f6a38de6cb0a741ad936e({
src: a.selector,
event: 'kmi_lostFocus'
}), b.v657e3b6ac90f6a38de6cb0a741ad936e({
src: a.selector,
event: 'dialogclose'
}), a.selector.find('.nav-tabs > li').each(function () {
b.v657e3b6ac90f6a38de6cb0a741ad936e({
src: $(this),
event: 'kmi_lostFocus'
})
})), b
}, vd7f8cf09473664e029bdd95e1f9a1676.prototype = Object.create(frmContextMenu.prototype), vd7f8cf09473664e029bdd95e1f9a1676.prototype.constructor = vd7f8cf09473664e029bdd95e1f9a1676, vd7f8cf09473664e029bdd95e1f9a1676.prototype.init = function (a) {
this.floor = a
}, vd7f8cf09473664e029bdd95e1f9a1676.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
frmContextMenu.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f.call(this)
}, vb0ce4b9c86af810c4eef11c74abd32be.prototype = Object.create(va1337b7722f001e1521f5c837ab1b7fe.prototype), vb0ce4b9c86af810c4eef11c74abd32be.prototype.constructor = vb0ce4b9c86af810c4eef11c74abd32be, vb0ce4b9c86af810c4eef11c74abd32be.prototype.init = function (a) {
this.vd9ef96e9f8637fc505ab3f2d372e2e33 = a
}, vb0ce4b9c86af810c4eef11c74abd32be.prototype.v4b7a1ad9ca6f5f6625a87dce7737f00f = function () {
this.v9ecdf1aba46d0207558fcdac4554363c.html(''), _.forEach(this.vd9ef96e9f8637fc505ab3f2d372e2e33.v4ab57876d963a80ac82916d6f78992c3, _.bind(function (a) {
this.v560b6d197cd42c666a45ba0217244ef3(a), _.forEach(a.va3e27835733301701cc7fecb8709ee91, _.bind(function (a) {
this.v560b6d197cd42c666a45ba0217244ef3(a)
}, this))
}, this)), this.v9ecdf1aba46d0207558fcdac4554363c.append('<br>')
}, vb0ce4b9c86af810c4eef11c74abd32be.prototype.v560b6d197cd42c666a45ba0217244ef3 = function (a) {
this.v9ecdf1aba46d0207558fcdac4554363c.append(U.vbacce6a42a9154e1b2ea38c9b107fbb2('e.getBuilding().getFloorById(\'{0}\').layoutFromDefinitionString(\'{1}\',true);<br>', [
a.vfb795903b518f9f4e880b4c49b8a1cc4,
a.va9cedc721d38dd0cffc8dab1d2e5b8a9()
]))
}, vb0ce4b9c86af810c4eef11c74abd32be.prototype.v6ed7b39692af9464546f9bc90774c4c3 = function () {
var d = $(this).siblings('.copyTarget').html(), a = $('<input>');
$('body').append(a), a.val(d).select(), document.v060425ccc4243a17625f40cc5c9d623e('copy'), a.remove();
var e = $(this).parent().siblings('.field'), b = 'data';
e.length > 0 && (b = $(this).parent().siblings('.field').html()), $(this).parent().append('<div id=\'confirm\'></div>');
var c = $('#confirm');
c.text('Copied ' + b + ' to clipboard').dialog({
autoOpen: !0,
hide: 2e3,
open: function (a, b) {
setTimeout(function () {
c.dialog('close')
}, 800)
},
position: {
my: 'left bottom',
at: 'left top',
of: $(this)
}
})
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.constructor = v66d6ce2ecfae7bc6d704faf71869d98b, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.init = function (c, d, b, a) {
a || (a = A.vb06c3a859d6038b4515bccc5f1f891ef().random), _.isUndefined(b) ? a.v4b5d032286d7ea0a308827fdb5b94573() > .5 ? this.vb0e9859cdf5cd68a79902db2a6d14f64 = 'M' : this.vb0e9859cdf5cd68a79902db2a6d14f64 = 'F' : this.vb0e9859cdf5cd68a79902db2a6d14f64 = b, this.vb0e9859cdf5cd68a79902db2a6d14f64 == 'F' ? this.v0dcef7be7dabd265d4d88d099e188481 = U.vecd875156ecfd758a6888b2c4c0684ad(a) : this.v0dcef7be7dabd265d4d88d099e188481 = U.v81b07b93798b9e999be16e2ca62b9280(a), this.v31fd72245601c11ca15d4ad52275789a = U.v190c939a288e5412ef2d5ef9d5a966e2(a), this.v4f240c4a6f3a19456a2778f9aa66b58b = c.id, this.va745e247e0711c7ede7ff21e2c348148 = d, this.v6af2002eaab6805e6fffb096e2fc6155 = !1
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.v73809bad0c33e53a1e9ffdbc657db12b = function () {
return this.vb0e9859cdf5cd68a79902db2a6d14f64
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.getName = function () {
return this.v0dcef7be7dabd265d4d88d099e188481 + ' ' + this.v31fd72245601c11ca15d4ad52275789a
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.va5aeabb6e87882b192668878e68c8e84 = function () {
return vbe7993a2ce2422b8674dc4b1008561b0.processModel.v96f7bb61dc703eb3f521f6b09d41dfa6[this.v4f240c4a6f3a19456a2778f9aa66b58b]
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.v3d9960033e362a7cb75062347accd690 = function () {
return this.va745e247e0711c7ede7ff21e2c348148
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.v28f4476dce1dcf87369517942d39b7fb = function (a) {
this.va745e247e0711c7ede7ff21e2c348148 = a
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.v96bf6001e9b5607768f376dabf5d01ea = function () {
return .95
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.v4a241fcfc7ba18839b04a4a304cb515b = function () {
this.v6af2002eaab6805e6fffb096e2fc6155 = !0, this.totalSteps = 0, this.v1e6a4c18ac1ebd1fc4fd7754e0456f39 = 0
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.vd9411b9bf2c920e345c88ddec3aa192b = function () {
this.v6af2002eaab6805e6fffb096e2fc6155 = !1
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.v403d41b78be650991ccc797c94c991a4 = function () {
return this.v6af2002eaab6805e6fffb096e2fc6155
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.v03af2f43bdb1fb7ff71ae992cbbc81aa = function () {
return this.v403d41b78be650991ccc797c94c991a4()
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.v2a4338214db6c6536e01e59039ce0204 = function () {
return !this.v6af2002eaab6805e6fffb096e2fc6155
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.v1528613cc51ea96d3a5c5c0fba0830ce = function () {
return !1
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.vb1d209edb8c7103a195c82546bc6b44d = function () {
return !1
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.v3180f43fda4654cd8b9f6b58fbcd86cb = function () {
this.totalSteps++
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.v1d689eed81d92d671c1a8c4ec2d2273e = function () {
this.v1e6a4c18ac1ebd1fc4fd7754e0456f39++
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.v50ec66a1b9b8d7df88e1ba9630896cf6 = function () {
return this.totalSteps > 0 ? this.v1e6a4c18ac1ebd1fc4fd7754e0456f39 / this.totalSteps : 1
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.vc469ca13270e9c546aaea93595623af3 = function () {
this.v6af2002eaab6805e6fffb096e2fc6155 = !1
}, v66d6ce2ecfae7bc6d704faf71869d98b.prototype.fire = function () {
this.v6af2002eaab6805e6fffb096e2fc6155 = !1
}, v882dbe972e6ff2620ccf6173b0cc3500.prototype = Object.create(va81914decb1e6e367dd3b62fe669ef4d.prototype), v882dbe972e6ff2620ccf6173b0cc3500.prototype.constructor = v882dbe972e6ff2620ccf6173b0cc3500, v882dbe972e6ff2620ccf6173b0cc3500.prototype.init = function (a, d, b, c) {
va81914decb1e6e367dd3b62fe669ef4d.prototype.init.call(this, { id: a.id }), this.quantity = d, _.isUndefined(b) || (this.itemId = b), _.isUndefined(c) ? _.isUndefined(a.imageAlias) || (this.imageAlias = a.imageAlias) : this.imageAlias = c
}, v882dbe972e6ff2620ccf6173b0cc3500.prototype.get = function (a) {
return _.isUndefined(this[a]) ? vbe7993a2ce2422b8674dc4b1008561b0.processModel.v8f3c681737f9f11ab3dc32c9425967e8[this.v689f5106fac3c1a533ea723821591a86()][a] : this[a]
}, v882dbe972e6ff2620ccf6173b0cc3500.prototype.vb3fb571416d2d38249f7258304f95eb3 = function () {
return _.isUndefined(this.imageAlias) ? this.get('id') : this.imageAlias
}, v882dbe972e6ff2620ccf6173b0cc3500.prototype.v453dae0d039568d4036d9b2987d768f2 = function (c) {
var b = [];
for (var a = 0; a < c; a++)
b.v657e3b6ac90f6a38de6cb0a741ad936e(this.vb3fb571416d2d38249f7258304f95eb3(Math.min(c - a, 1)));
return b
}, v882dbe972e6ff2620ccf6173b0cc3500.prototype.v453c5b47e53cec2bbd21aac5b040c2f9 = function (a) {
this.itemId = a
}, v882dbe972e6ff2620ccf6173b0cc3500.prototype.vac9f76090bb71c8d0e9a4b115afe200e = function () {
return this.quantity
}, v882dbe972e6ff2620ccf6173b0cc3500.prototype.va1760875347841bb07724ffabc9c18b4 = function (a) {
this.quantity = a
}, v882dbe972e6ff2620ccf6173b0cc3500.prototype.v4a2d8c0ba2ab79243ef2120f31b89b31 = function (a) {
this.quantity += a
}, v882dbe972e6ff2620ccf6173b0cc3500.prototype.v9b387cd2115319e02de9dcfba2194798 = function () {
return this.itemId
}, v882dbe972e6ff2620ccf6173b0cc3500.prototype.v689f5106fac3c1a533ea723821591a86 = function () {
return this.id
}, v882dbe972e6ff2620ccf6173b0cc3500.prototype.v9c88523c81fa87e4e738fc6d384be21b = function () {
}, v882dbe972e6ff2620ccf6173b0cc3500.prototype.v7bb3cc1a990885e800b51a52aec7a8f9 = function () {
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype = Object.create(v76df45e01f375ce83274fd873101ca63.prototype), vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.constructor = vaa3654ee2359ca7a5fd7b1ea9d05a7cc, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.init = function (a, b) {
this.id = a.id, _.isUndefined(b) || (this.dy = b), this.get('dy') ? this.dy = this.get('dy') : this.dy = -1, a.processSteps && (this.ve08e39eb47161113e34e559e1cb5cb3b = 0, _.assign(this, a.processSteps[this.ve08e39eb47161113e34e559e1cb5cb3b])), vb4224fc2fe84fbabb011095046a0b811.call(this), this.events.v49ad792f5229d4be359d5c4aa4e18617(this, 'moved', 'onProcessMoved'), a.vd7237e6d90a0ba3db6fd9b84db8c053b && _.forEach(a.vd7237e6d90a0ba3db6fd9b84db8c053b, function (b, c) {
var a = vbe7993a2ce2422b8674dc4b1008561b0.processModel.ve179db5c14980e0deda32a9dfdf019a0(c, b);
this.v645708bc86a78cc49cac7a64e516f8ad([a])
}, this)
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v0dd5fd90ea838ad4c55f66535b48b558 = function (c, a) {
this.vc9d6d0f8b195a4cb04cc858809767ba7 || (this.vc9d6d0f8b195a4cb04cc858809767ba7 = []), a || (a = this.ve08e39eb47161113e34e559e1cb5cb3b);
var b = this.v8712de234cbf238ea7b11fe2fbb75556(a, c);
if (!b)
return;
this.vc9d6d0f8b195a4cb04cc858809767ba7[a] = [], this.hidden = !1;
var d = this.vf8a5c66f8b3a7aae7c9762a3953cbec6(b, c);
this.vc9d6d0f8b195a4cb04cc858809767ba7[a].v657e3b6ac90f6a38de6cb0a741ad936e(d)
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.get = function (a) {
return _.isUndefined(this[a]) ? vbe7993a2ce2422b8674dc4b1008561b0.processModel.v91d882cc13a1210c1a8462ac0e5bb93e[this.id][a] : this[a]
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v362697120ef6bc3b622eb15f1c1a8b9e = function () {
return this.get('name')
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.ve1351d8e1c213b0801e2f368891ce0f9 = function () {
var a = '';
return this.v9bfb605e9e535db1c5e1273e80914d30.length > 0 ? a += 'In Use.' : a += 'Available.', a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vc04ce516a73a29314e90ef1439bd38fb = function () {
return this.id
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v8712de234cbf238ea7b11fe2fbb75556 = function (c) {
if (A.vb06c3a859d6038b4515bccc5f1f891ef() && A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().v72b7cd537a11d991dbf8fad26288ecf3)
return;
var a = this.get('animations');
if (this.get('processSteps')) {
var b = this.get('processSteps')[c].animations;
b && (a = b)
}
return a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v3e07132cea4bbe985ee8fe6792f1f35f = function () {
if (this.__v51f78fd5f042d8c5cd04d8260cff27ea)
return this.__v51f78fd5f042d8c5cd04d8260cff27ea;
var a = this.get('processSteps');
if (a)
this.__v51f78fd5f042d8c5cd04d8260cff27ea = a.length;
else {
var b = 1, c = vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(this.vf5a3f651563adecd890631ee2188779c());
c != null && (b = Math.max(1, c.cols - 1)), this.__v51f78fd5f042d8c5cd04d8260cff27ea = b
}
return this.__v51f78fd5f042d8c5cd04d8260cff27ea
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.va9cedc721d38dd0cffc8dab1d2e5b8a9 = function () {
return [
'pr',
this.id,
this.dy
].join(':')
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vf5a3f651563adecd890631ee2188779c = function () {
return _.isUndefined(this.get('imageAlias')) ? this.id : this.get('imageAlias')
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v51437c72107c143b80de076f21e2e55c = function (a, b) {
this.floor = a, this.get('userCanMove') != 0 && this.v157e6baa260de66ee18c70877d9de990(a), this.node != null && (this.node.blocked = !1), this.node = b, this.get('constantWorkerLocation') && (this.vb3452f2d7e7f59ecb15af4d4a39f99f8 = this.v2b1d4545d2c4637078a482cf5a03ffe9())
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vf8a5c66f8b3a7aae7c9762a3953cbec6 = function (b, c) {
var a = new v6c8e2523b426d9300d1463b586afc667;
return _.forEach(b, _.bind(function (b) {
var d = c;
b.for && !_.contains(b.for, d.va5aeabb6e87882b192668878e68c8e84().id) && (d = _.find(this.v9bfb605e9e535db1c5e1273e80914d30, function (a) {
return _.contains(b.for, a.va5aeabb6e87882b192668878e68c8e84().id)
}));
var e = new v5d175940a170ccbf06e358126101192c, g;
if (b.vf92e01bc53fc242f77de0952ff3b57f1)
g = b.vf92e01bc53fc242f77de0952ff3b57f1;
else {
if (workerImageResourcePrefix = d.vc6923ae4490b8d501730d202726b044e, !_.isUndefined(b.vbd634e6443d1ef0dc72d2b6364a44ce1)) {
if (irPrefs = d.ve515b58d9bf84ce3b9754bc6d54f6b3a(), irPrefs.length <= b.vbd634e6443d1ef0dc72d2b6364a44ce1)
return;
workerImageResourcePrefix = irPrefs[b.vbd634e6443d1ef0dc72d2b6364a44ce1]
}
g = workerImageResourcePrefix + '-' + b.va30dd3bb987f9adfe25ecf8407c67f9f
}
var i = new Point(0, 0);
if (b.offset && (i = new Point(b.offset.x, b.offset.y)), e.init(g, i, 0, null), b.v0a9bc644c3f79fbeafe123b95f4d9c4d && _.assign(e, b.v0a9bc644c3f79fbeafe123b95f4d9c4d), _.isUndefined(b.v0a9bc644c3f79fbeafe123b95f4d9c4d.row) || _.isUndefined(b.v0a9bc644c3f79fbeafe123b95f4d9c4d.flipX)) {
var h = d.v86e79e36cb8d80da13694c68e917a2d8(this), f = {
index: 0,
flipX: !1
};
h && (f.index = h[0] == 'N' ? 0 : 1, f.flipX = h[1] == 'E');
var j = vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(g);
j.rows > 1 && (e.row = f.index), e.flipX = f.flipX
}
a.vafbe47bed93812d57aeed97cf32c2f55(e), e.ve44103814547356c17006b8a9fcb6551(d)
}, this)), a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v4e04f77785d7491271cd4a60f7b22eb5 = function (d) {
var b = this.get('taskChoices');
if (b)
for (var c = 0; c < b.length; c++) {
var a = b[c];
if (a.workerNeeded && a.workerNeeded != d.va5aeabb6e87882b192668878e68c8e84().id)
continue;
if (a.trigger == '*' || this.v3b359138338c9f98537ced2d8ad82c0a(a.trigger) > 0) {
_.assign(this, a);
return
}
}
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vcc0fddc17a3e79dfbf92235830555bad = function () {
var a = [];
return _.merge(a, this.get('inputs')), _.forEach([
'taskChoices',
'productChoices'
], _.bind(function (e) {
var b = this.get(e);
if (b)
for (var c = 0; c < b.length; c++) {
var d = b[c];
a.v65232cbf984e4899d32f63ff906d72ec(d.inputs)
}
}, this)), a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.veb0b89fbbbdb7a4f3c4c6f3431ec0582 = function (b) {
var d = [];
if (b.v5af95216e115d76c3042d72f1afac26f.length == 0)
return d;
var e = this.v95f51992798d154a976610f812f29b58(b);
if (e.length > 0) {
var f = this.v823750e58aba739837dfc376d7ee9147();
if (f)
for (var a = 0; a < f.length; a++) {
var i = f[a];
e.v657e3b6ac90f6a38de6cb0a741ad936e(this.floor.vd4d816df61e2fa01756017294208be37().ve179db5c14980e0deda32a9dfdf019a0(i, 1))
}
}
var g = this.vf85f6a52b595e2e27e7867f2b9164828(b.v5af95216e115d76c3042d72f1afac26f);
for (var a = 0; a < b.v5af95216e115d76c3042d72f1afac26f.length; a++) {
var c = b.v5af95216e115d76c3042d72f1afac26f[a], j = _.some(e, function (a) {
return a.id == c.v689f5106fac3c1a533ea723821591a86()
}), h = !1;
g && (h = _.contains(g, c.v689f5106fac3c1a533ea723821591a86()));
var k = _.some(b.v2786ed1d370d26e1a7f1d765f5bc3d9c, function (a) {
return a.v689f5106fac3c1a533ea723821591a86() == c.v689f5106fac3c1a533ea723821591a86()
});
j || h || k || d.v657e3b6ac90f6a38de6cb0a741ad936e(c)
}
return d
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v29d295b17bdba669e786430af60234f6 = function (f, g) {
var c = this.v95f51992798d154a976610f812f29b58(f, g);
if (c.length > 0) {
var d = this.v823750e58aba739837dfc376d7ee9147();
if (d)
for (var b = 0; b < d.length; b++)
c.v657e3b6ac90f6a38de6cb0a741ad936e(this.floor.vd4d816df61e2fa01756017294208be37().ve179db5c14980e0deda32a9dfdf019a0(d[b], 1))
}
var e = [];
for (var b = 0; b < c.length; b++) {
var a = c[b];
a.quantity -= this.v0326c7774077748601105f44923811d9(a), a.quantity -= f.v644df7bbfa62ef4d40e72893c8064bc1(a.v689f5106fac3c1a533ea723821591a86()), a.quantity > 0 && g == 1 && this.v9bfb605e9e535db1c5e1273e80914d30.length > 1 && (a.quantity -= this.vf03d7a109cbbbd82424a55f8299dd246(a)), a.quantity > 0 && (a.quantity = Math.ceil(a.quantity), e.v657e3b6ac90f6a38de6cb0a741ad936e(a))
}
return e
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v0326c7774077748601105f44923811d9 = function (a) {
var b = 0;
return _.isString(a) ? _.isUndefined(this.vd7237e6d90a0ba3db6fd9b84db8c053b[a]) || (b = this.vd7237e6d90a0ba3db6fd9b84db8c053b[a].quantity) : _.isUndefined(this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.v689f5106fac3c1a533ea723821591a86()]) || (a.v9b387cd2115319e02de9dcfba2194798() && a.v9b387cd2115319e02de9dcfba2194798() != this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.v689f5106fac3c1a533ea723821591a86()].v9b387cd2115319e02de9dcfba2194798() ? b = 0 : b = this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.v689f5106fac3c1a533ea723821591a86()].quantity), b
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vf03d7a109cbbbd82424a55f8299dd246 = function (a) {
return _.sum(this.v9bfb605e9e535db1c5e1273e80914d30, function (c) {
var b = c.v644df7bbfa62ef4d40e72893c8064bc1(a.v689f5106fac3c1a533ea723821591a86());
return b += c.v03839583338fff1593688f186a04b81c(a.v689f5106fac3c1a533ea723821591a86()), b
})
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v95f51992798d154a976610f812f29b58 = function (b, f) {
var e = [], c = this.get('inputs');
if (c)
for (var d = 0; d < c.length; d++) {
var a = c[d];
if (f && _.isString(a['for']) && b && b.va5aeabb6e87882b192668878e68c8e84().id != a['for'])
continue;
if (f && _.isArray(a['for']) && b && !_.contains(a['for'], b.va5aeabb6e87882b192668878e68c8e84().id))
continue;
if (a.quantity > 0) {
var g = this.floor.vd4d816df61e2fa01756017294208be37().ve179db5c14980e0deda32a9dfdf019a0(a.id, a.quantity * this.v15fa8451eb1a8abda38b470cbd741cc9());
e.v657e3b6ac90f6a38de6cb0a741ad936e(g)
}
}
return e
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v3d39dd3237e42d86b93b0f951d24b73d = function (a) {
var b = [];
return _.each(this.get('outputs'), function (c) {
if (_.isString(c['for']) && a.va5aeabb6e87882b192668878e68c8e84().id != c['for'])
return;
if (_.isArray(c['for']) && !_.contains(c['for'], a.va5aeabb6e87882b192668878e68c8e84().id))
return;
var d = this.v64d46f44566bb3a8299bfe9ae826f353(c);
b.v657e3b6ac90f6a38de6cb0a741ad936e(d)
}, this), this.get('keepCarriedItems') && this.get('keepCarriedItems') === !0 && (b.v65232cbf984e4899d32f63ff906d72ec(a.v5af95216e115d76c3042d72f1afac26f), a.v5af95216e115d76c3042d72f1afac26f.vb6197b85339d8d08458ca1d8b757f7b5()), b
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v501b632e81cec3d2dda898da70cf3651 = function (b) {
var a = this.get('consumeInputs');
return _.isUndefined(a) && (a = !0), _.isObject(a) && (a = _.contains(a, b)), a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v64d46f44566bb3a8299bfe9ae826f353 = function (a) {
var b = {}, c = a.quantity * this.v15fa8451eb1a8abda38b470cbd741cc9();
return _.isObject(this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.id]) ? this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.id].quantity == c ? (b = this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.id], delete this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.id]) : (b = this.floor.vd4d816df61e2fa01756017294208be37().ve179db5c14980e0deda32a9dfdf019a0(a.id, c), this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.id].quantity > c ? this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.id].quantity -= c : delete this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.id]) : b = this.floor.vd4d816df61e2fa01756017294208be37().ve179db5c14980e0deda32a9dfdf019a0(a.id, c, undefined, a.imageAlias), _.merge(b, _.omit(a, [
'quantity',
'for'
])), b
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v9fae1d2c44a4666b953480fa0cf6d08a = function (c, d) {
var b = c, a = this.get('keepOutputItems');
return _.isUndefined(a) || (a === !0 && (b = []), _.isString(a) && (b = _.filter(c, function (b) {
return a != b.v689f5106fac3c1a533ea723821591a86()
})), _.isArray(a) && (b = _.filter(c, function (b) {
return !_.includes(a, b.v689f5106fac3c1a533ea723821591a86())
}))), b
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vf85f6a52b595e2e27e7867f2b9164828 = function (c) {
var a = this.get('keepCarriedItems');
if (a) {
var b = [];
return a === !0 ? b.v65232cbf984e4899d32f63ff906d72ec(_.map(c, function (a) {
return a.v689f5106fac3c1a533ea723821591a86()
})) : _.isString(a) ? b.v657e3b6ac90f6a38de6cb0a741ad936e(a) : _.isArray(a) && b.v65232cbf984e4899d32f63ff906d72ec(a), b
}
return !1
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v645708bc86a78cc49cac7a64e516f8ad = function (a, d) {
if (a.length == 0)
return;
var c = this.vf85f6a52b595e2e27e7867f2b9164828(a), b;
_.each(a, function (a) {
if (c && _.contains(c, a.v689f5106fac3c1a533ea723821591a86())) {
b || (b = []), b.v657e3b6ac90f6a38de6cb0a741ad936e(a);
return
}
_.isObject(this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.v689f5106fac3c1a533ea723821591a86()]) ? this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.v689f5106fac3c1a533ea723821591a86()].quantity += a.quantity : (this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.v689f5106fac3c1a533ea723821591a86()] = a, this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.v689f5106fac3c1a533ea723821591a86()].quantity = a.quantity)
}, this), a.vb6197b85339d8d08458ca1d8b757f7b5(), b && a.v65232cbf984e4899d32f63ff906d72ec(b)
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.va924f1045e993c66a2dff7e796ba1931 = function (b) {
this.v9bfb605e9e535db1c5e1273e80914d30.v657e3b6ac90f6a38de6cb0a741ad936e(b), this.v9bfb605e9e535db1c5e1273e80914d30 = _.unique(this.v9bfb605e9e535db1c5e1273e80914d30);
var a = this.get('workersRandomFixedPosition');
if (a && (a === !0 || b.va5aeabb6e87882b192668878e68c8e84().id == a)) {
var c = _.pluck(this.v9bfb605e9e535db1c5e1273e80914d30, 'positionIndex'), d = _.difference(_.range(Math.max(1, _.max(c) + 2)), c), e = U.pick(d, A.vb06c3a859d6038b4515bccc5f1f891ef().random);
b.positionIndex = e
}
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vd4a8ae3867294f8e89e4ff876b862996 = function (a) {
this.v9bfb605e9e535db1c5e1273e80914d30 = _.without(this.v9bfb605e9e535db1c5e1273e80914d30, a), a.positionIndex = undefined
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v8f5963a11ba9b52abb4fe96b8499807c = function (a) {
return this.vace71abf9d5901df5eecbb5bd062e24d(a) ? this.v663f282ce3c0fa7668713b3a24b959f4() < this.v1b95e6414a687628443a8eabd7a50dcd() ? !0 : a ? _.contains(this.v9bfb605e9e535db1c5e1273e80914d30, a) : !1 : !1
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v1b95e6414a687628443a8eabd7a50dcd = function () {
var a = 1;
return this.get('maxWorkers') && (a = this.get('maxWorkers')), a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v9dd3565afeb81e8c95e9d449508c5819 = function (c) {
var b = this.get('forcedOrientation'), a = b;
if (_.isObject(b) && c)
var a = b[c.va5aeabb6e87882b192668878e68c8e84().id];
return _.isString(a) ? (this.dy == 1 && (a == 'R' ? a = 'L' : a == 'L' && (a = 'R')), this.v4df752cb2fb3c91b7bbac36315ee13c8(a)) : this.dy == -1 ? 'NW' : 'NE'
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v17d5f65254383b740db2d65876aa48c2 = function (a) {
if (workerInputs = this.v29d295b17bdba669e786430af60234f6(a, !1), workerInputs.length > 0)
return -1;
this.get('consumeInputs') != 0 && _.each(this.v95f51992798d154a976610f812f29b58(a), function (a) {
this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.id] && this.v501b632e81cec3d2dda898da70cf3651(a.id) && (this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.id].quantity -= a.quantity, this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.id].quantity == 0 && delete this.vd7237e6d90a0ba3db6fd9b84db8c053b[a.id])
}, this);
var c = a.v0c09b0f2301518276053d6d8f2378138(this.get('duration'), this.floor.vd4d816df61e2fa01756017294208be37().v96f7bb61dc703eb3f521f6b09d41dfa6[this.vb70333ddf67ab5faa6bc71d83eb2cf6a()]);
if (a.task = {
counter: c,
duration: c
}, this.v0dd5fd90ea838ad4c55f66535b48b558(a, this.ve08e39eb47161113e34e559e1cb5cb3b), this.vc9d6d0f8b195a4cb04cc858809767ba7 && _.isObject(this.vc9d6d0f8b195a4cb04cc858809767ba7[this.ve08e39eb47161113e34e559e1cb5cb3b])) {
var b = 0, e = this.vc9d6d0f8b195a4cb04cc858809767ba7[this.ve08e39eb47161113e34e559e1cb5cb3b];
if (_.each(e, function (a) {
var c = a.v054274c8bc723ab62b822a20e15365b1();
a.reset(), b += c
}), b > 0) {
if (this.v2b486b76c15f63b3c44eedf952e41b4b = b, this.v8aad4036ba4cc456ba8baa6957a264be = 0, this.vdcded69f1bb51db8b8b4f5f4c2dc7f75 = a.task.duration / A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().SimulatedSecondsPerStep / this.v2b486b76c15f63b3c44eedf952e41b4b, this.get('loopAnimationsForDuration')) {
var d = Math.max(1, Math.floor(this.vdcded69f1bb51db8b8b4f5f4c2dc7f75));
this.vdcded69f1bb51db8b8b4f5f4c2dc7f75 = this.vdcded69f1bb51db8b8b4f5f4c2dc7f75 / d, this.vc9d6d0f8b195a4cb04cc858809767ba7[this.ve08e39eb47161113e34e559e1cb5cb3b][0].v809ecbaf7813e0b6d4435cc92b3b98ae(d)
}
this.v007d84345a0cb26eeb42651e2fb9c8a8(a)
}
}
return 1
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v3bfb30a19746b869703b55350a08c230 = function (a, b) {
if (!a.task)
return !0;
b.dt >= a.task.counter ? (b.dt -= Math.max(0, a.task.counter), a.task.counter = 0) : (a.task.counter -= b.dt, b.dt = 0);
var c = a.task.counter <= 0;
return c ? (this.vb9f9defc583211900425599b79ff1b23(), a.vaabd6ac6040c6ff079da86f5b3c0a850(this.vfea8e705d55413af944734bd15056baa(a))) : this.v007d84345a0cb26eeb42651e2fb9c8a8(a), c
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vfea8e705d55413af944734bd15056baa = function (b) {
var a = this.get('processPose');
return this.vce8fdd087c5e1f776ebf77ac3391b82d(a, b)
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v73fa30fd32305a4fa0296724d714012f = function (b) {
var a = this.get('idlePose');
return this.vce8fdd087c5e1f776ebf77ac3391b82d(a, b)
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vce8fdd087c5e1f776ebf77ac3391b82d = function (a, b) {
if (a)
if (_.isObject(a)) {
if (a[b.va5aeabb6e87882b192668878e68c8e84().id])
return a[b.va5aeabb6e87882b192668878e68c8e84().id]
} else if (_.isString(a))
return a;
return 'Stand'
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v007d84345a0cb26eeb42651e2fb9c8a8 = function (a) {
if (!this.vc9d6d0f8b195a4cb04cc858809767ba7 || _.size(this.vc9d6d0f8b195a4cb04cc858809767ba7) == 0)
return;
if (this.ve08e39eb47161113e34e559e1cb5cb3b > this.v3e07132cea4bbe985ee8fe6792f1f35f() || this.v20363d3bff6d1fadd226479e7ddc9d03) {
a.v7ce86f426ce3fcb24bfb995ffd6813db = this.v73fa30fd32305a4fa0296724d714012f(a);
return
}
if (!(this.vc9d6d0f8b195a4cb04cc858809767ba7[this.ve08e39eb47161113e34e559e1cb5cb3b] && this.vc9d6d0f8b195a4cb04cc858809767ba7[this.ve08e39eb47161113e34e559e1cb5cb3b][this.v8aad4036ba4cc456ba8baa6957a264be])) {
a.v7ce86f426ce3fcb24bfb995ffd6813db = this.vfea8e705d55413af944734bd15056baa(a);
return
}
if (this.vc9d6d0f8b195a4cb04cc858809767ba7[this.ve08e39eb47161113e34e559e1cb5cb3b][this.v8aad4036ba4cc456ba8baa6957a264be].isFinished()) {
var c = this.vc9d6d0f8b195a4cb04cc858809767ba7[this.ve08e39eb47161113e34e559e1cb5cb3b][this.v8aad4036ba4cc456ba8baa6957a264be];
if (c.stop(), this.v8aad4036ba4cc456ba8baa6957a264be == this.vc9d6d0f8b195a4cb04cc858809767ba7[this.ve08e39eb47161113e34e559e1cb5cb3b].length - 1) {
a.v7ce86f426ce3fcb24bfb995ffd6813db = this.vfea8e705d55413af944734bd15056baa(a);
return
}
this.vc9d6d0f8b195a4cb04cc858809767ba7[this.ve08e39eb47161113e34e559e1cb5cb3b][this.v8aad4036ba4cc456ba8baa6957a264be + 1].va367f4743342c1a2e3cacb9746db09fd(this.vdcded69f1bb51db8b8b4f5f4c2dc7f75, this.v2b1d4545d2c4637078a482cf5a03ffe9(a)), this.v8aad4036ba4cc456ba8baa6957a264be++
} else {
var b = this.vc9d6d0f8b195a4cb04cc858809767ba7[this.ve08e39eb47161113e34e559e1cb5cb3b][this.v8aad4036ba4cc456ba8baa6957a264be];
b && b.va367f4743342c1a2e3cacb9746db09fd(this.vdcded69f1bb51db8b8b4f5f4c2dc7f75, this.v2b1d4545d2c4637078a482cf5a03ffe9(a))
}
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vb9f9defc583211900425599b79ff1b23 = function () {
_.each(this.vc9d6d0f8b195a4cb04cc858809767ba7, function (a) {
_.each(a, function (a) {
a.stop()
})
})
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vb4d82a641417a4fc1b4bb682204fc110 = function () {
this.hidden = !0
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v68bc0dfd5dd733f97fb5b7c950eaffcd = function () {
this.hidden = !1
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v8f16346c17cc04d15f549b120b9bbe47 = function (a) {
this.vc9d6d0f8b195a4cb04cc858809767ba7 && this.vc9d6d0f8b195a4cb04cc858809767ba7[this.ve08e39eb47161113e34e559e1cb5cb3b] && this.vc9d6d0f8b195a4cb04cc858809767ba7[this.ve08e39eb47161113e34e559e1cb5cb3b].vb6197b85339d8d08458ca1d8b757f7b5(), this.va37843f896b3fe30991a6e7e5b2ab1d4(a), a && (a.task = undefined)
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v406aa343045123ff88716067a310e40c = function (a) {
_.forEach(this.vdf0ef943298a7acb854e9db8d5e0f699(a), _.bind(function (a) {
a.v406aa343045123ff88716067a310e40c(this.v8e3eabf4cd8fb5d00df1c33f8dd07812)
}, this)), this.v8e3eabf4cd8fb5d00df1c33f8dd07812 = 0
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vdf0ef943298a7acb854e9db8d5e0f699 = function (a) {
return [a]
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v99f5e2dabe874411687757d9654090b5 = function () {
if (this.get('processSteps')) {
var a = this.get('processSteps')[this.ve08e39eb47161113e34e559e1cb5cb3b];
return a.v1339b2b897dfaf6794fcf0aa9cf0bf11
}
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vdbc515ea8b7a6aee6cee0e4d5480f502 = function (a) {
this.get('processSteps') ? (_.each(_.keys(this.get('processSteps')[this.ve08e39eb47161113e34e559e1cb5cb3b]), function (a) {
this[a] = undefined
}, this), this.ve08e39eb47161113e34e559e1cb5cb3b = a, _.assign(this, this.get('processSteps')[this.ve08e39eb47161113e34e559e1cb5cb3b])) : this.ve08e39eb47161113e34e559e1cb5cb3b = a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v3515f29a3ee3547684ede216f918c4d5 = function (b) {
var a = _.findIndex(this.get('processSteps'), function (a) {
return a.v1339b2b897dfaf6794fcf0aa9cf0bf11 == b
});
return a >= 0 ? (this.vdbc515ea8b7a6aee6cee0e4d5480f502(a), !0) : !1
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.va37843f896b3fe30991a6e7e5b2ab1d4 = function (a) {
var b = this.ve08e39eb47161113e34e559e1cb5cb3b + 1;
a && a.task && (this.v8e3eabf4cd8fb5d00df1c33f8dd07812 += a.task.duration), b >= this.v3e07132cea4bbe985ee8fe6792f1f35f() && (b = 0, this.v406aa343045123ff88716067a310e40c(a)), this.vdbc515ea8b7a6aee6cee0e4d5480f502(b)
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vf21c58460b85267cd14db18994e3fbfc = function () {
return this.ve08e39eb47161113e34e559e1cb5cb3b == this.v3e07132cea4bbe985ee8fe6792f1f35f() - 1
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v36d637f1b93df436a329c1bcd67243e1 = function (a) {
var c = this.get('processSteps');
if (!c)
return a && a.task ? Math.floor((1 - a.task.counter / a.task.duration) * 100) : 0;
else {
var d = 0;
relativeDuration = a.v854cc3de1ab79c254b5d962c965b2738(1, a.va5aeabb6e87882b192668878e68c8e84());
for (var b = 0; b < this.ve08e39eb47161113e34e559e1cb5cb3b; b++)
d += relativeDuration * c[b].duration;
var e = 0;
for (var b = this.ve08e39eb47161113e34e559e1cb5cb3b; b < c.length; b++)
e += relativeDuration * c[b].duration;
var g = d + e, f = 0;
return a.task && (f = a.task.duration - a.task.counter), (d + f) / g * 100
}
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v766f806a913bf189f72ab62692eac3ec = function () {
if (!_.isUndefined(this.get('imageCol')))
return this.get('imageCol');
var a = A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(this.vf5a3f651563adecd890631ee2188779c());
return a ? Math.min(this.v3e07132cea4bbe985ee8fe6792f1f35f(), this.ve08e39eb47161113e34e559e1cb5cb3b, a.cols - 1) : 0
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v63cdceda7131ea881cabd0b95325fa9c = function () {
var a = this.vff69e7a6a6e023b584c5caa4947acc1c(), b = this.v20665077b93bc831119718af355f6eff();
return _.each(this.vd7237e6d90a0ba3db6fd9b84db8c053b, function (b) {
if (!b.quantity || b.quantity <= 0)
return;
if (this.get('omitDrawingComponentsAtStation') && _.contains(this.get('omitDrawingComponentsAtStation'), b.id))
return;
drawLoc = this.v00ec781a08d7c42364bcfb2797936e77(b.id);
var d = this.get('componentsAtStationStackType');
d || (d = 'carryStack');
var e = b.v1326e4f53a93addc45a03099e110c09d(d, drawLoc, Math.abs(b.quantity), this.dy), c = this.get('componentsAtStationDrawableOrder');
c || (c = 'drawablesAfter'), c == 'none' && a.v65232cbf984e4899d32f63ff906d72ec(e), a[a.length - 1][c].v65232cbf984e4899d32f63ff906d72ec(e)
}, this), this.v9b3ec53829e30749f2a6c06bd8ebf2d9(a), _.each(a, function (a) {
U.v90c847f353145812a35b4d545170829a(a, _.bind(function (a) {
this.__v2cbc24296d0f74841ec12e7645afb96e && (a.alpha = .4), a.vd47ed85cab7ce2b6d437e7b570eea18a || _.extend(a, vd88269f14c639d29ae709e1533438c8a, { vd47ed85cab7ce2b6d437e7b570eea18a: this })
}, this))
}, this), this.v3410bdd1de563b13f3a724dd00d284d3() && _.forEach(this.v6c11c4f283121592d0e74c78991c3aea(), _.bind(function (b) {
this.v89658ea4f02a70349ea53153ff3d0197(a, b)
}, this)), a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v00ec781a08d7c42364bcfb2797936e77 = function (c) {
var b = this.v20665077b93bc831119718af355f6eff(), a = this.get('componentsAtStationDrawOffsets');
if (a && _.isObject(a[c]))
var d = new Point(b.x + a[c].x * -1 * this.dy, b.y + a[c].y);
else
d = b;
return d
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v6c11c4f283121592d0e74c78991c3aea = function () {
return _.filter(this.v9bfb605e9e535db1c5e1273e80914d30, function (a) {
return a.state == a.__ve53079a360c86165a33746ac2b5388d9.va00800a74f59579fc5f00667f737974f
})
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vff69e7a6a6e023b584c5caa4947acc1c = function () {
var b = this.ve015db772677033cd259803bf55d5589(), a = new vbe6dfab6e47ff3d003a423092f4c35ef(b, this.vf5a3f651563adecd890631ee2188779c());
return this.va77c1fecb095b172b61751d2412c6428(a), [a]
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v9b3ec53829e30749f2a6c06bd8ebf2d9 = function (a) {
return this.get('extraMachineDrawables') ? (_.forEach(this.get('extraMachineDrawables'), _.bind(function (b) {
var d = this.ve015db772677033cd259803bf55d5589();
if (b.imageOffset)
var d = new Point(d.x + b.imageOffset.x * (this.dy == 1 ? 1 : -1), d.y + b.imageOffset.y);
var c = new vbe6dfab6e47ff3d003a423092f4c35ef(d, b.imageAlias);
b.imagePlane && (c.plane = b.imagePlane), this.va77c1fecb095b172b61751d2412c6428(c), b.alpha && (c.alpha = b.alpha);
var e = A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(b.imageAlias);
c.row = Math.min(c.row, e.rows - 1), c.col = Math.min(c.col, e.cols - 1), a.v657e3b6ac90f6a38de6cb0a741ad936e(c)
}, this)), a) : !1
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.va77c1fecb095b172b61751d2412c6428 = function (d) {
d.col = this.v766f806a913bf189f72ab62692eac3ec(), _.isNumber(this.get('imageRow')) && (d.row = this.get('imageRow')), _.isNumber(this.get('imagePlane')) && (d.plane = this.get('imagePlane')), this.get('flipX') && (d.flipX = !0), this.dy == 1 && (d.flipX = !d.flipX), this.get('alpha') && (d.alpha = eval(this.get('alpha')), d.alpha == 0 && (d.clickable = !1)), _.extend(d, vd88269f14c639d29ae709e1533438c8a, { vd47ed85cab7ce2b6d437e7b570eea18a: this }), this.__v2cbc24296d0f74841ec12e7645afb96e && (d.alpha = .4)
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vf1d4ca6806850ec223db22451a5af93e = function () {
if (!this.vc9d6d0f8b195a4cb04cc858809767ba7)
return !1;
for (var a = this.ve08e39eb47161113e34e559e1cb5cb3b; a >= 0; a--) {
var c = this.vc9d6d0f8b195a4cb04cc858809767ba7[a];
if (_.isArray(c)) {
var b = c[this.v8aad4036ba4cc456ba8baa6957a264be];
if (_.isObject(b) && b.v5a8cbad96fb912d9948eb7d691a615ed())
return b
}
}
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v89658ea4f02a70349ea53153ff3d0197 = function (a, d, c) {
if (this.hidden)
return a;
if (_.isUndefined(c) && (c = a.length - 1), !this.v20363d3bff6d1fadd226479e7ddc9d03) {
var e = this.vf1d4ca6806850ec223db22451a5af93e();
if (_.isObject(e)) {
var b = e.v63cdceda7131ea881cabd0b95325fa9c(d.va104dfefa6670b37275d51b041f7e0bd(), d);
c >= 0 ? (a[c].drawablesBefore.v65232cbf984e4899d32f63ff906d72ec(b.drawablesBefore), a[c].drawablesAfter.v65232cbf984e4899d32f63ff906d72ec(b.drawablesAfter)) : (a.v65232cbf984e4899d32f63ff906d72ec(b.drawablesBefore), a.v65232cbf984e4899d32f63ff906d72ec(b.drawablesAfter))
}
this.v47971949a288d75af12db23e0a87fe11(a, d)
} else if (this.vbecac8f404ba9306bbaeffe4a920d019) {
this.vbecac8f404ba9306bbaeffe4a920d019.isFinished() && this.vbecac8f404ba9306bbaeffe4a920d019.stop(), this.vbecac8f404ba9306bbaeffe4a920d019.va367f4743342c1a2e3cacb9746db09fd(1);
var b = this.vbecac8f404ba9306bbaeffe4a920d019.v63cdceda7131ea881cabd0b95325fa9c(this.v20665077b93bc831119718af355f6eff());
a[0].drawablesAfter.v65232cbf984e4899d32f63ff906d72ec(b.drawablesAfter)
}
return a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v47971949a288d75af12db23e0a87fe11 = function (a, c) {
if (c.v7ce86f426ce3fcb24bfb995ffd6813db == 'customDraw') {
var b = _.find(a[a.length - 1].drawablesAfter, function (a) {
return a.vd47ed85cab7ce2b6d437e7b570eea18a == c
}, this);
_.isObject(b) ? c.v2d070094632e3e6bb170f88b92daa0f6(a, b) : (b = _.find(a[a.length - 1].drawablesBefore, function (a) {
return a.vd47ed85cab7ce2b6d437e7b570eea18a == c
}, this), _.isObject(b) && c.v2d070094632e3e6bb170f88b92daa0f6(a, b))
}
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vf18f6429345d5b7febceb7b2165f23a8 = function (b) {
var a = new v667bf751c2e115e3a32a2b2e5947c3ee(b);
return a.show(), a.v8d57dda12f8951da88f3c6827658f646(this.get('name')), this.v712f74cff9e94e9c1d1420e2e20dbb92(a), a.vb3ccffaedee87d6315fa44ec46dc6326(_.bind(this.v712f74cff9e94e9c1d1420e2e20dbb92, this, a), 2e3), a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v712f74cff9e94e9c1d1420e2e20dbb92 = function (b) {
var c = this.vb5e6350d6d0bb1d6a0c1e750acd16671();
b.vc9df8beed4e7c544ac444c35ed29d7c8.find('.refresh').html('');
var a = '<div style=\'min-height:60px;\'><b>Status:</b> ' + this.ve1351d8e1c213b0801e2f368891ce0f9();
if (c.length > 0) {
var d = _.find(c, function (a) {
return a.task
});
if (d) {
var e = this.v36d637f1b93df436a329c1bcd67243e1(d);
e > 0 && (a += '<br>Percent Complete:<br><div class=\'progress\' style=\'margin-bottom:0px\'><div class=\'progress-bar\' style=\'width: ' + e + '%;\'></div>')
}
}
a += '</div>', b.v4d77ae1222564924ebffd0e618e01f8b(a, '#refreshDiv'), this.v6ecbf7e68c80854fcec3f646c90a55fc(b, '#refreshDiv')
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.remove = function (a) {
this.get('reassignWorkersWhenRemoved') && _.forEach(this.v9bfb605e9e535db1c5e1273e80914d30, _.bind(function (b) {
var a = this.floor.vfabcce9a946f82852878d38b91064159(this.id, _.bind(function (a) {
return a.node.id != this.node.id
}, this));
a && b.ve9305d578e56d72f5312dd134e1af564(a, b.__ve53079a360c86165a33746ac2b5388d9.v32a423450f9c4507ce955152c2650564)
}, this)), this.floor.ve72b9a5c820e6cbc17cb0ad92ffe5398(this, !1, a), A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b()
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vb5e6350d6d0bb1d6a0c1e750acd16671 = function () {
return this.v9bfb605e9e535db1c5e1273e80914d30
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v12e15dd489ec2fce3e2129f8f344e748 = function (a) {
return _.filter(this.v9bfb605e9e535db1c5e1273e80914d30, function (b) {
return b.va5aeabb6e87882b192668878e68c8e84().id == a
})
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vdf3053bea62b74061768f769e44462ad = function (a) {
this.events.v236cc8a93da0d02f3faa03ce3735d781(a), this.vd4a8ae3867294f8e89e4ff876b862996(a), this.vb9f9defc583211900425599b79ff1b23()
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v20665077b93bc831119718af355f6eff = function () {
return this.__v2cbc24296d0f74841ec12e7645afb96e ? this.__v314385c9a8894d21bf0fc7aed35a23a9.clone() : this.node.va104dfefa6670b37275d51b041f7e0bd()
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.ve015db772677033cd259803bf55d5589 = function () {
var a = this.v20665077b93bc831119718af355f6eff();
if (!this.__v2cbc24296d0f74841ec12e7645afb96e) {
var b = this.get('machineOffset');
b && (a.x -= this.dy * b.x, a.y += b.y)
}
return a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v84095aea4d230da3cec769c341138baa = function (a) {
return _.isUndefined(a.positionIndex) ? -1 : a.positionIndex
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v557529d29d876fca93cd7be5bfad0721 = function (c) {
var a = this.get('workerOffset');
if (!a) {
var b = this.get('workerOffsets');
b && (a = b[c])
}
return a || (a = {
x: 0,
y: 0
}), a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v2b1d4545d2c4637078a482cf5a03ffe9 = function (f, e) {
if (this.vb3452f2d7e7f59ecb15af4d4a39f99f8)
return this.vb3452f2d7e7f59ecb15af4d4a39f99f8;
var h = this.vb5e6350d6d0bb1d6a0c1e750acd16671(), a = this.v20665077b93bc831119718af355f6eff();
if (!e) {
var g;
f && (g = f.va5aeabb6e87882b192668878e68c8e84().id), e = this.v557529d29d876fca93cd7be5bfad0721(g)
}
if (h.length > 1)
var c = this.v84095aea4d230da3cec769c341138baa(f);
else
var c = 0;
if (c <= 0) {
a.x = a.x - this.dy * e.x, a.y = a.y + e.y;
var b = a
} else {
var b = a, d = c, j = d % 2 * -2 + 1, i = Math.floor(d % 4 / 2) * -2 + 1;
b.x = b.x - this.dy * j * Math.ceil(d / 4) * (vbe7993a2ce2422b8674dc4b1008561b0.v35d5370a8d025ff6e7fc9ec381246219 ? vbe7993a2ce2422b8674dc4b1008561b0.v35d5370a8d025ff6e7fc9ec381246219 : 20), b.y += i * Math.ceil(d / 4) * (vbe7993a2ce2422b8674dc4b1008561b0.v35d5370a8d025ff6e7fc9ec381246219 ? vbe7993a2ce2422b8674dc4b1008561b0.v35d5370a8d025ff6e7fc9ec381246219 : 20)
}
return b
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.veed3db4a8d4e5c24efd2b945f3f6dbe6 = function (a) {
return a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v08cc014aa2082f498f4f34f9cc0cff6f = function () {
this.v6e7a3a11f0a9bddb44d33dc254674d26()
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v823750e58aba739837dfc376d7ee9147 = function () {
var a = this.get('requires');
return a ? _.isArray(a) ? a : _.isString(a) ? [a] : [] : !1
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v6e7a3a11f0a9bddb44d33dc254674d26 = function () {
var a = this.ve93f57e520303b003a36bccc437ab4f0();
this.floor.vb02de472cea8ce814a37b51bea76e9db.vcb519d3d4ef0f894468aab43b30f54f1 && this.floor.vb02de472cea8ce814a37b51bea76e9db.vcb519d3d4ef0f894468aab43b30f54f1.v52e727efec759b60a5e762d83643a53b('Waste') && (a && a.state == a.__ve53079a360c86165a33746ac2b5388d9.va00800a74f59579fc5f00667f737974f && _.each(this.get('inputs'), function (a) {
var b = this.floor.vd4d816df61e2fa01756017294208be37().vf5752ecac5722bf823d2ba46669b8e06(a.id) * a.quantity;
b > 0 && this.floor.vb02de472cea8ce814a37b51bea76e9db.vcb519d3d4ef0f894468aab43b30f54f1 && this.floor.vb02de472cea8ce814a37b51bea76e9db.vcb519d3d4ef0f894468aab43b30f54f1.vbc3f437d147654d5b4047440bac28533('Waste', b, this.floor.vd4d816df61e2fa01756017294208be37().v9325f3f8f9dbeb6d5705abf190ac87bc(a.id))
}, this), _.each(this.vd7237e6d90a0ba3db6fd9b84db8c053b, function (a) {
if (!a.quantity || a.quantity == 0)
return;
var b = this.floor.vd4d816df61e2fa01756017294208be37().vf5752ecac5722bf823d2ba46669b8e06(a.v689f5106fac3c1a533ea723821591a86()) * a.quantity;
b > 0 && this.floor.vb02de472cea8ce814a37b51bea76e9db.vcb519d3d4ef0f894468aab43b30f54f1 && this.floor.vb02de472cea8ce814a37b51bea76e9db.vcb519d3d4ef0f894468aab43b30f54f1.vbc3f437d147654d5b4047440bac28533('Waste', b, a.get('name'))
}, this))
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v663f282ce3c0fa7668713b3a24b959f4 = function () {
var a = _.sum(this.v9bfb605e9e535db1c5e1273e80914d30, function (a) {
return a.v66fdf272c1567f841f7ec17b0a0c9641 ? 0 : a.v7ce86f426ce3fcb24bfb995ffd6813db == 'Invisible' ? 0 : 1
});
return a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.va7e1bdec378a369b6b40fd760e183a40 = function () {
return _.some(this.v9bfb605e9e535db1c5e1273e80914d30, function (a) {
return this.vace71abf9d5901df5eecbb5bd062e24d(a) && !a.v66fdf272c1567f841f7ec17b0a0c9641 && a.v961a74bd0a1bf7bfdd56f1f0ff011271.v403d41b78be650991ccc797c94c991a4()
}, this)
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v3410bdd1de563b13f3a724dd00d284d3 = function () {
return _.some(this.v9bfb605e9e535db1c5e1273e80914d30, function (a) {
return this.vace71abf9d5901df5eecbb5bd062e24d(a)
}, this)
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.ve93f57e520303b003a36bccc437ab4f0 = function () {
return _.find(this.v9bfb605e9e535db1c5e1273e80914d30, function (a) {
return this.vace71abf9d5901df5eecbb5bd062e24d(a)
}, this)
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vace71abf9d5901df5eecbb5bd062e24d = function (b) {
var a;
return _.isString(b) ? a = b : a = b.va5aeabb6e87882b192668878e68c8e84().id, a == this.get('workerNeeded') ? !0 : this.get('possibleWorkers') ? _.contains(this.get('possibleWorkers'), a) : _.isUndefined(this.get('workerNeeded')) || this.get('workerNeeded') == '' ? !0 : void 0
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vb70333ddf67ab5faa6bc71d83eb2cf6a = function () {
return this.get('possibleWorkers') ? _.first(this.get('possibleWorkers')) : this.get('workerNeeded')
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.va0954bf389a11155424f4b33432a931a = function (a, h, m) {
var k = [];
_.isUndefined(m) && (m = 0);
var f = this.ve015db772677033cd259803bf55d5589();
if (_.isNull(f))
return k;
var b, p = 0;
a.v230da61ff7087292e24e973e45cc5ebd ? p = a.v230da61ff7087292e24e973e45cc5ebd : a.v9d66c14c5e3dd071731f75915f1f7cf7 && (p = this.v3b359138338c9f98537ced2d8ad82c0a(a.v9d66c14c5e3dd071731f75915f1f7cf7.ir)), p > 0 ? (this.v3b359138338c9f98537ced2d8ad82c0a('tablecloth') > 0 ? b = new vbe6dfab6e47ff3d003a423092f4c35ef(f, a.v9d66c14c5e3dd071731f75915f1f7cf7.ir + 'WithCloth') : b = new vbe6dfab6e47ff3d003a423092f4c35ef(f, a.v9d66c14c5e3dd071731f75915f1f7cf7.ir), a.v9d66c14c5e3dd071731f75915f1f7cf7.flipX && (b.flipX = !0), a.v9d66c14c5e3dd071731f75915f1f7cf7.row && (b.row = !0)) : b = new vbe6dfab6e47ff3d003a423092f4c35ef(f, null);
for (var c = 0; c < a.vbaa4b8d3d0498c684e0347ed3836cd13; c++) {
var j = f;
a.v71dc589fd571b0a77262e4de8b4c6212 && (j = new Point(f.x - this.dy * a.v71dc589fd571b0a77262e4de8b4c6212[c].x, f.y + a.v71dc589fd571b0a77262e4de8b4c6212[c].y));
var q = a.v8b274139acc40707a00c204f744bf82c.length * m + c;
_.each(a.va6c09d3a8ca313995ccc0372ea2a47ff, function (d) {
var e;
if (this.vd7237e6d90a0ba3db6fd9b84db8c053b[d] && this.vd7237e6d90a0ba3db6fd9b84db8c053b[d].vac9f76090bb71c8d0e9a4b115afe200e() > q && (e = this.vd7237e6d90a0ba3db6fd9b84db8c053b[d].vb3fb571416d2d38249f7258304f95eb3(c)), h[c]) {
var g = h[c].obj;
g && g.v54163d389ec6b61c69e079726a46105c(d) && (e = g.v5204267aedd4baf67cf0f0fc21ebbeab(d).vb3fb571416d2d38249f7258304f95eb3())
}
if (e) {
var f;
a.v873f39bc6d0393e07e2a90f4a17bc22a && a.v873f39bc6d0393e07e2a90f4a17bc22a[d] ? (offset = a.v873f39bc6d0393e07e2a90f4a17bc22a[d][c], f = new vbe6dfab6e47ff3d003a423092f4c35ef(new Point(j.x - this.dy * offset.x, j.y + offset.y), e)) : f = new vbe6dfab6e47ff3d003a423092f4c35ef(j, e), f.flipX = a.v8b274139acc40707a00c204f744bf82c[c].flipX;
var i = A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(e);
f.row = Math.min(a.v8b274139acc40707a00c204f744bf82c[c].row, i.rows - 1), b.drawablesAfter.v657e3b6ac90f6a38de6cb0a741ad936e(f)
}
}, this), _.each(a.v06cccf31bfadb53116f77d31c865212b, function (a) {
if (this.vd7237e6d90a0ba3db6fd9b84db8c053b[a] && this.vd7237e6d90a0ba3db6fd9b84db8c053b[a].vac9f76090bb71c8d0e9a4b115afe200e() > q) {
var d = new vbe6dfab6e47ff3d003a423092f4c35ef(j, this.vd7237e6d90a0ba3db6fd9b84db8c053b[a].vb3fb571416d2d38249f7258304f95eb3(c));
b.drawablesAfter.v657e3b6ac90f6a38de6cb0a741ad936e(d)
}
}, this)
}
var g = 0, o = 0;
a.v1e2295fde5e21f73d51220dc0eef81ea ? o = a.v1e2295fde5e21f73d51220dc0eef81ea : a.v8b274139acc40707a00c204f744bf82c && (o = Math.min(a.v8b274139acc40707a00c204f744bf82c.length, this.v3b359138338c9f98537ced2d8ad82c0a(a.v8b274139acc40707a00c204f744bf82c[0].ir)));
for (var n = 0; n < o; n++) {
var d = a.v8b274139acc40707a00c204f744bf82c[n];
if (d.offset)
var i = new Point(f.x - this.dy * d.offset.x, f.y + d.offset.y);
else
var i = f;
if (d.ir)
var e = new vbe6dfab6e47ff3d003a423092f4c35ef(i, d.ir);
else
var e = new vbe6dfab6e47ff3d003a423092f4c35ef(i, null);
if (e.row = d.row, e.flipX = d.flipX, _.forEach(d.positions, _.bind(function (b) {
if (h[g]) {
var f = h[g].v7ce86f426ce3fcb24bfb995ffd6813db;
if (f) {
var c = f.split(':'), j = c[0], d = b.v9f35bc8898a6af34d492074d7e070845;
if (!d) {
var l = _.find(_.keys(b.v699ccac23c364c83b343e0f415b20b7b), function (a) {
return _.startsWith(j, a)
});
d = b.v699ccac23c364c83b343e0f415b20b7b[l]
}
var n = new Point(i.x - this.dy * d.x, i.y + d.y), a = new vbe6dfab6e47ff3d003a423092f4c35ef(n, c[0]);
a.flipX = b.flipX, a.row = b.row, a.col = 0, c.length > 1 && (a.col = parseInt(c[1])), a.v7c056d47dc2a91151c75a39bfcb33041 = a.col, m == 0 && (g == 0 || !h[g - 1] || h[g].obj != h[g - 1].obj) && h[g].obj.v2d070094632e3e6bb170f88b92daa0f6(k, a), e.drawablesAfter.v657e3b6ac90f6a38de6cb0a741ad936e(a)
}
}
g++
}, this)), d.v709f8ec5cd28503bac49c5b3105ad7a3) {
var r = d.ir + 'Back';
if (A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(r)) {
var l = new vbe6dfab6e47ff3d003a423092f4c35ef(i, r);
l.flipX = d.flipX, l.row = d.row, e.drawablesAfter.v657e3b6ac90f6a38de6cb0a741ad936e(l), l.cache = !0
}
b.drawablesAfter.v657e3b6ac90f6a38de6cb0a741ad936e(e)
} else
b.drawablesBefore.v657e3b6ac90f6a38de6cb0a741ad936e(e);
e.v7c056d47dc2a91151c75a39bfcb33041 = 'db' + _.map(e.drawablesBefore, function (a) {
return a.imageName + a.v7c056d47dc2a91151c75a39bfcb33041
}).join('_') + _.map(e.drawablesAfter, function (a) {
return a.imageName + a.v7c056d47dc2a91151c75a39bfcb33041
}).join('_')
}
return b.drawablesAfter = b.drawablesAfter.sort(vbe6dfab6e47ff3d003a423092f4c35ef.v3647f4d98b63ac6bd7af663f228c044d), b.cache = !0, b.v7c056d47dc2a91151c75a39bfcb33041 = 'db' + _.map(b.drawablesBefore, function (a) {
return a.imageName + a.v7c056d47dc2a91151c75a39bfcb33041
}).join('_') + _.map(b.drawablesAfter, function (a) {
return a.imageName + a.v7c056d47dc2a91151c75a39bfcb33041
}).join('_'), U.v90c847f353145812a35b4d545170829a(b, _.bind(function (a) {
this.__v2cbc24296d0f74841ec12e7645afb96e && (a.alpha = .4), this.dy == 1 && (a.flipX = !a.flipX), _.extend(a, vd88269f14c639d29ae709e1533438c8a, {
vd47ed85cab7ce2b6d437e7b570eea18a: this,
params: { section: m }
})
}, this)), k.v657e3b6ac90f6a38de6cb0a741ad936e(b), k
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v3b359138338c9f98537ced2d8ad82c0a = function (a) {
return this.vd7237e6d90a0ba3db6fd9b84db8c053b[a] ? this.vd7237e6d90a0ba3db6fd9b84db8c053b[a].quantity : 0
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vc71a519d43657bc7b268eb22608175d5 = function (a) {
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.onProcessMoved = function () {
this.get('constantWorkerLocation') && (this.vb3452f2d7e7f59ecb15af4d4a39f99f8 = undefined, this.vb3452f2d7e7f59ecb15af4d4a39f99f8 = this.v2b1d4545d2c4637078a482cf5a03ffe9())
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.ve1147fa4b302aca7d0945a32650cfb8f = function () {
return !1
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.rotate = function () {
if (this.floor.v12129b226b1ece8fa7f6ff9a9d03bfc1(this), !this.floor.v9198357d3c90d88fb1d53e0855ecfb30(this, this.node, -1 * this.dy))
return Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('{0} cannot be rotated as it does not fit in the other direction.', this.v362697120ef6bc3b622eb15f1c1a8b9e())), !1;
else {
this.floor.v8fb34c2a6f844de4af85f51b5ddc4d4c(this), this.v5d2f0ab3575cd429aba24ede75f2d357(!1), this.dy *= -1, this.floor.v7ca2f64bd9eff800fd8379c04c7ad613(this, this.node), this.v5d2f0ab3575cd429aba24ede75f2d357(), this.vb3452f2d7e7f59ecb15af4d4a39f99f8 = undefined, _.forEach(this.v9bfb605e9e535db1c5e1273e80914d30, _.bind(function (a) {
a.v00602c11b99a49d289192ceabbdd2f22(this.v2b1d4545d2c4637078a482cf5a03ffe9(a))
}, this)), A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b();
var a = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Rotated {0} at floor location {1} to face {2}.', [
this.v362697120ef6bc3b622eb15f1c1a8b9e(),
this.node.vb50fc58d21e6ed625bad8bd30fbc8bbc(),
this.dy == 1 ? 'SW' : 'SE'
]);
return this.floor.vb02de472cea8ce814a37b51bea76e9db.v69cae692ace155bf2f816d6294dc710d.vc2efdb89ecdb56c0e8ae271473dd61f9(a), !0
}
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v39faf605f4b8e85894d05654f362adbf = function () {
return !0
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v15fa8451eb1a8abda38b470cbd741cc9 = function () {
return this.v45802bdce6c1157c5b68bd7e9af76420 ? this.v45802bdce6c1157c5b68bd7e9af76420 : 1
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v0d65c0baf0849a2e518c9a3e8403a2ee = function (a) {
this.v45802bdce6c1157c5b68bd7e9af76420 = a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v7e13f56786b9658dae983915dcbbc935 = function (a) {
this.v45802bdce6c1157c5b68bd7e9af76420 ? this.v45802bdce6c1157c5b68bd7e9af76420 += a : this.v45802bdce6c1157c5b68bd7e9af76420 = Math.max(1, a)
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v62f827e7493d5c76277958cc51f610b8 = function () {
return !1
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vbeff761fe76ea661f861f66888b894b6 = function () {
return !0
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vb4b00c4cf2bdcd24f17ab38f866a3d96 = function (a) {
return _.isUndefined(this.jobId) || this.jobId == a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.addJob = function (a) {
this.jobId = a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v00b51aaa5869a61b00ba81db0d36b728 = function (a) {
return this.jobId == a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v290e429457a668a9dc472e34160f5ce8 = function (a) {
!_.isUndefined(this.jobId) && (_.isUndefined(a) || this.jobId == a) && (this.jobId = undefined)
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v23bfba723603d5b6e327452d84b017d6 = function () {
return this.vb70333ddf67ab5faa6bc71d83eb2cf6a() == 'customer'
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v5966050d86e7a36c5644286cdb22784a = function (a) {
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('Waiting for work.')
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v483011b294fe19594d57f6d57837112e = function () {
return _.isUndefined(this.get('componentIds')) ? [] : this.get('componentIds')
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v3aed6d256f01a7b87432911882a6daa5 = function (a, b) {
return _.isUndefined(a) ? this.v483011b294fe19594d57f6d57837112e().length == 0 ? this.get('isDropTarget') ? !0 : !1 : !0 : b ? this.v2c37f623f454a52d448a98459acecdeb(a, !1, b) : !1
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v2c37f623f454a52d448a98459acecdeb = function (b, c, d) {
if (c)
return !1;
var a = _.contains(this.get('componentIds'), b.id);
return a
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v7c607f7089d018113d3b4859ca67f414 = function (a, b) {
if (this.v2c37f623f454a52d448a98459acecdeb(a, !1, b)) {
var c = this.floor.vd4d816df61e2fa01756017294208be37().v858b1c5740e4fdc477c496eea907bccf(a);
return this.v645708bc86a78cc49cac7a64e516f8ad([c], b), a.quantity
}
return 0
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.maxAllowed = function () {
return 0
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vb8fcc44f955f43b26c0b823a57be5f8f = function () {
return 0
}, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v4d5c3744e96fe28d3c8b12f999af0dfd = function (a, b) {
}, v18f49e7254cafd0c5584b395164ada8d.prototype = Object.create(Array.prototype), v18f49e7254cafd0c5584b395164ada8d.prototype.constructor = v18f49e7254cafd0c5584b395164ada8d, v18f49e7254cafd0c5584b395164ada8d.prototype.v657e3b6ac90f6a38de6cb0a741ad936e = function (a) {
Array.prototype.v657e3b6ac90f6a38de6cb0a741ad936e.call(this, a), this.vaabd6ac6040c6ff079da86f5b3c0a850()
}, v18f49e7254cafd0c5584b395164ada8d.prototype.v65232cbf984e4899d32f63ff906d72ec = function (a) {
Array.prototype.v65232cbf984e4899d32f63ff906d72ec.call(this, a), this.vaabd6ac6040c6ff079da86f5b3c0a850()
}, v18f49e7254cafd0c5584b395164ada8d.prototype.v6658d41901465458c34d0790e8086649 = function (a) {
Array.prototype.v6658d41901465458c34d0790e8086649.call(this, a), (this.v7811bd4c3ddc55ef8aa8bcdde98c6eb2 || this.v19da57840eec27510310e255a194a2e9) && this.vaabd6ac6040c6ff079da86f5b3c0a850()
}, v18f49e7254cafd0c5584b395164ada8d.prototype.vb6197b85339d8d08458ca1d8b757f7b5 = function () {
while (this.length > 0)
this.pop();
(this.v7811bd4c3ddc55ef8aa8bcdde98c6eb2 || this.v19da57840eec27510310e255a194a2e9) && this.vaabd6ac6040c6ff079da86f5b3c0a850()
}, v18f49e7254cafd0c5584b395164ada8d.prototype.vaabd6ac6040c6ff079da86f5b3c0a850 = function () {
this.v7811bd4c3ddc55ef8aa8bcdde98c6eb2 = null, this.v19da57840eec27510310e255a194a2e9 = null;
for (var b = 0; b < this.length; b++) {
var c = this[b], a = vbe7993a2ce2422b8674dc4b1008561b0.processModel.v8f3c681737f9f11ab3dc32c9425967e8[c.v689f5106fac3c1a533ea723821591a86()];
a.v0ca6638ec26235e5de1bc247723c7363 && (this.v7811bd4c3ddc55ef8aa8bcdde98c6eb2 = a.v0ca6638ec26235e5de1bc247723c7363), a.v60625d304e580ba33867bd14879eeba1 && (this.v19da57840eec27510310e255a194a2e9 = a.v60625d304e580ba33867bd14879eeba1)
}
}, vca3e211e578730f5955642416944fc39.prototype = Object.create(vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype), vca3e211e578730f5955642416944fc39.prototype.constructor = vca3e211e578730f5955642416944fc39, vca3e211e578730f5955642416944fc39.prototype.init = function (b, a) {
_.isObject(a) || (a = A.vb06c3a859d6038b4515bccc5f1f891ef().random), this.v961a74bd0a1bf7bfdd56f1f0ff011271 = b, this.vc6923ae4490b8d501730d202726b044e = this.v73809bad0c33e53a1e9ffdbc657db12b() + '-' + a.next(vbe7993a2ce2422b8674dc4b1008561b0.v2337ffb346e77261a4af73852b352f31), this.v34201794d53145e66710e91a4dab3e5a(this.vc692ded3de34f5861464df74e35917ba() * this.v96bf6001e9b5607768f376dabf5d01ea(this.va5aeabb6e87882b192668878e68c8e84()))
}, vca3e211e578730f5955642416944fc39.prototype.vc692ded3de34f5861464df74e35917ba = function () {
return A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().ve30371801d79fe8a25d083ba79e8adb6 ? A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().ve30371801d79fe8a25d083ba79e8adb6 : this.__v9d4e89b87bb3cd416e58a1e74cc90741.v317eb05f31ea48e10b1e1d3db4d4d548
}, vca3e211e578730f5955642416944fc39.prototype.v34201794d53145e66710e91a4dab3e5a = function (a) {
this.v7ff3bc786e2a1057e37e3a50a2a40e32 = a, this.v4221d96d7896ce39db2f1c1ff3502bd4(this.v7ff3bc786e2a1057e37e3a50a2a40e32)
}, vca3e211e578730f5955642416944fc39.prototype.v95901489df6f7e12c47103f56abece83 = function () {
return this.v7ff3bc786e2a1057e37e3a50a2a40e32
}, vca3e211e578730f5955642416944fc39.prototype.va5aeabb6e87882b192668878e68c8e84 = function () {
return this.v961a74bd0a1bf7bfdd56f1f0ff011271.va5aeabb6e87882b192668878e68c8e84()
}, vca3e211e578730f5955642416944fc39.prototype.getName = function () {
return this.v961a74bd0a1bf7bfdd56f1f0ff011271.getName()
}, vca3e211e578730f5955642416944fc39.prototype.v3d9960033e362a7cb75062347accd690 = function () {
return this.v961a74bd0a1bf7bfdd56f1f0ff011271.v3d9960033e362a7cb75062347accd690()
}, vca3e211e578730f5955642416944fc39.prototype.v28f4476dce1dcf87369517942d39b7fb = function (a) {
return this.v961a74bd0a1bf7bfdd56f1f0ff011271.v28f4476dce1dcf87369517942d39b7fb(a)
}, vca3e211e578730f5955642416944fc39.prototype.v73809bad0c33e53a1e9ffdbc657db12b = function () {
return this.v961a74bd0a1bf7bfdd56f1f0ff011271.v73809bad0c33e53a1e9ffdbc657db12b()
}, vca3e211e578730f5955642416944fc39.prototype.v96bf6001e9b5607768f376dabf5d01ea = function (a) {
return this.v961a74bd0a1bf7bfdd56f1f0ff011271.v96bf6001e9b5607768f376dabf5d01ea(a)
}, vca3e211e578730f5955642416944fc39.prototype.v20ec3d4a803dd27a55f795e3c1e1414a = function () {
return this.va5aeabb6e87882b192668878e68c8e84().title
}, vca3e211e578730f5955642416944fc39.prototype.ve22f682735ac03f1fe124cf73b06a9f9 = function () {
var a = this.va5aeabb6e87882b192668878e68c8e84();
return a.v15fae1e92addb092476ce2b53c62c835 ? a.v15fae1e92addb092476ce2b53c62c835 : a.title
}, vca3e211e578730f5955642416944fc39.prototype.ve9305d578e56d72f5312dd134e1af564 = function (a, b, c) {
if (this.process == a)
return _.isUndefined(b) || (this.state = b), !1;
this.process == null ? (this.process = a, this.floor = a.floor, this.process.events.v49ad792f5229d4be359d5c4aa4e18617(this, 'moved', 'processMoved'), this.v00602c11b99a49d289192ceabbdd2f22(a.v2b1d4545d2c4637078a482cf5a03ffe9(this)), this.v36fc7e09c47f794689e298f78f3943b9(a.v2b1d4545d2c4637078a482cf5a03ffe9(this)), A.vb06c3a859d6038b4515bccc5f1f891ef().ve228716930a74707502fc08780fb4fcc(this, v26eec6ff9a97369555cb05732e4e6c77.vcd6a28a29317400de1fe2c45637db8ce), A.vb06c3a859d6038b4515bccc5f1f891ef().ve228716930a74707502fc08780fb4fcc(this, v26eec6ff9a97369555cb05732e4e6c77.vfa16f194192c842be753f148e2d252f8), A.vb06c3a859d6038b4515bccc5f1f891ef().ve228716930a74707502fc08780fb4fcc(this, v26eec6ff9a97369555cb05732e4e6c77.vbf019e8d28e480d309de25c5ca4e357a), this.state = this.__ve53079a360c86165a33746ac2b5388d9.v32a423450f9c4507ce955152c2650564, this.process.va924f1045e993c66a2dff7e796ba1931(this)) : (this.process.events.v236cc8a93da0d02f3faa03ce3735d781(this, 'moved'), this.process.vd4a8ae3867294f8e89e4ff876b862996(this), this.v8fe96e4e77bcf851e50edd3679e9d5aa = this.process, this.process = a, this.process.events.v49ad792f5229d4be359d5c4aa4e18617(this, 'moved', 'processMoved'), this.process.va924f1045e993c66a2dff7e796ba1931(this), c ? _.isUndefined(b) || (this.state = b) : (this.vcfffb548d60c1bf710717076d624fe2e = this.state, _.isUndefined(b) || (this.vcfffb548d60c1bf710717076d624fe2e = b), this.v7f5c0d28d7ec937c736a3bb270459e17() ? this.state = this.vcfffb548d60c1bf710717076d624fe2e : this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.v746b94464c46642872fcc3ac5b556e4a)), this.task = undefined, this.v75380de36077a7fbbd9a77b9e72f2c82 = 0, this.vb92cf54fde4e0e996eed300b770646b1 = undefined)
}, vca3e211e578730f5955642416944fc39.prototype.vb51d19b488c15d9484b62c6206ea4e8f = function (a) {
a ? this.v961a74bd0a1bf7bfdd56f1f0ff011271.vc469ca13270e9c546aaea93595623af3() : this.v961a74bd0a1bf7bfdd56f1f0ff011271.fire(), this.process != null && this.va1a6651ecb6d997349b439d9cf0eede7(), this.process = null, A.vb06c3a859d6038b4515bccc5f1f891ef().vbc0e8b21c84359a7c58d130d2461a1a4(this)
}, vca3e211e578730f5955642416944fc39.prototype.v63cdceda7131ea881cabd0b95325fa9c = function () {
if (!this.v961a74bd0a1bf7bfdd56f1f0ff011271.v03af2f43bdb1fb7ff71ae992cbbc81aa())
return [];
if (this.v7ce86f426ce3fcb24bfb995ffd6813db == 'customDraw' || this.v7ce86f426ce3fcb24bfb995ffd6813db == 'Invisible')
return [];
var c = this.v86e79e36cb8d80da13694c68e917a2d8();
if (this.v7ce86f426ce3fcb24bfb995ffd6813db == 'CarryIdle' && _.isUndefined(A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(this.vc6923ae4490b8d501730d202726b044e + '-' + 'CarryIdle'))) {
var a = vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v63cdceda7131ea881cabd0b95325fa9c.call(this, this.vc6923ae4490b8d501730d202726b044e + '-' + 'Carry', c);
a[0].col = 3
} else
var a = vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v63cdceda7131ea881cabd0b95325fa9c.call(this, this.vc6923ae4490b8d501730d202726b044e + '-' + this.v7ce86f426ce3fcb24bfb995ffd6813db, c);
_.extend(a[0], vd88269f14c639d29ae709e1533438c8a, { vd47ed85cab7ce2b6d437e7b570eea18a: this });
var b = this.va104dfefa6670b37275d51b041f7e0bd();
this.state == this.__ve53079a360c86165a33746ac2b5388d9.va00800a74f59579fc5f00667f737974f && this.process.__v2cbc24296d0f74841ec12e7645afb96e && (b = this.process.v20665077b93bc831119718af355f6eff(), a[0].location = b, a[0].alpha = .5);
var d = this.v51e76dd6de46c423eae0531c439cc8a3();
_.isUndefined(c) || (d.index = a[0].row, d.flipX = a[0].flipX);
var e = _.find(this.v5af95216e115d76c3042d72f1afac26f, function (a) {
return vbe7993a2ce2422b8674dc4b1008561b0.processModel.v8f3c681737f9f11ab3dc32c9425967e8[a.v689f5106fac3c1a533ea723821591a86()].v143343fcc2ae57cf939d6560f9e5b404
});
return e ? this.vb125ddcd0652d2a41d8a04f3af758fd0(a[0], b, d, e) : this.v6f00c2f8d65afb1231254907f03c71ad(a[0], this.v5af95216e115d76c3042d72f1afac26f, b), this.v261e3000f82c0e93a565221ae11b3d18 && a.length > 0 && U.v90c847f353145812a35b4d545170829a(a[0], _.bind(function (a) {
a.plane = 15
}, this)), this.v2d070094632e3e6bb170f88b92daa0f6(a, a[0]), a
}, vca3e211e578730f5955642416944fc39.prototype.v72b75f46daa0dc2630e4e0fdc38c337e = function (a) {
var g = [];
if (!(this.vefbf8be9113a59388771a6f1c7c3c1d0() && A.vf3351ba56d8b7e42f05b30b819a9db80().running))
return g;
var c = 10, h = .75 * Math.log(A.vf3351ba56d8b7e42f05b30b819a9db80().vd03089b89c36a6330f5c3bc191acaab9());
this.process && this.process.get('spacing') && (c = this.process.get('spacing'));
var d = this.va104dfefa6670b37275d51b041f7e0bd();
for (var b = 0; b < h; b++) {
if (a.row == 0 && !a.flipX)
var e = new Point(d.x + c * (b + 1), d.y + .5 * c * (b + 1));
else if (a.row == 0 && a.flipX)
var e = new Point(d.x - c * (b + 1), d.y + .5 * c * (b + 1));
else if (a.row == 1 && !a.flipX)
var e = new Point(d.x + c * (b + 1), d.y - .5 * c * (b + 1));
else if (a.row == 1 && a.flipX)
var e = new Point(d.x - c * (b + 1), d.y - .5 * c * (b + 1));
var i = this.v7ce86f426ce3fcb24bfb995ffd6813db, f = new vbe6dfab6e47ff3d003a423092f4c35ef(e, a.imageName);
f.alpha = .5 - .5 * (b / h), f.flipX = a.flipX, f.row = a.row, f.col = a.col, g.v657e3b6ac90f6a38de6cb0a741ad936e(f)
}
return g
}, vca3e211e578730f5955642416944fc39.prototype.v6f00c2f8d65afb1231254907f03c71ad = function (n, s, r) {
var k = new Point(r.x, r.y);
o = {
index: n.row,
flipX: n.flipX
};
for (var l = 0; l < s.length; l++) {
var f = s[l], a = vbe7993a2ce2422b8674dc4b1008561b0.processModel.v8f3c681737f9f11ab3dc32c9425967e8[f.v689f5106fac3c1a533ea723821591a86()], p = [
1,
0
];
a.v51fc5648254e3ef357226195cac52ab8 && (p = a.v51fc5648254e3ef357226195cac52ab8);
var g = 'front', c = [
{
x: 10,
y: 5
},
{
x: 10,
y: 5
}
], b = {
x: 0,
y: -43
}, m = [
[
'drawablesBefore',
'drawablesBefore'
],
[
'drawablesAfter',
'drawablesAfter'
]
];
if (a.v378aa1f832d09b8b35ea2473238fc8ac && (g = a.v378aa1f832d09b8b35ea2473238fc8ac), g == 'side' && (b = {
x: 0,
y: -83
}, c = [
{
x: -2,
y: 0
},
{
x: -2,
y: 0
}
], m = [
[
'drawablesBefore',
'drawablesAfter'
],
[
'drawablesBefore',
'drawablesAfter'
]
]), a.v8d4e5aa874dccef40eb6092531098e05 && (c = a.v8d4e5aa874dccef40eb6092531098e05), this.vb5753a5996249d4b122123fbdbc67774())
var b = {
x: 12,
y: -21
};
a.vd675aa8e752fd6a8edfa1ff815f21d67 && (b = _.clone(a.vd675aa8e752fd6a8edfa1ff815f21d67));
var j = new Point(k.x, k.y);
o.flipX == 0 ? b.x -= c[o.index].x : b.x += c[o.index].x, o.index == 0 ? b.y -= c[o.index].y : b.y += c[o.index].y, j.x += b.x, j.y += b.y;
var i = f.v1326e4f53a93addc45a03099e110c09d('carryStack', j, Math.abs(f.quantity));
for (var h = 0; h < i.length; h++) {
var e = i[h], q = A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(e.imageName);
_.isUndefined(q) || (e.row = Math.min(q.rows - 1, p[o.index]), g != 'side' ? e.flipX = o.flipX : e.flipX = o.index && o.flipX || !o.index && !o.flipX)
}
if (a.v25ffd0e674efbccb966ed458b2c53c4e && (m = a.v25ffd0e674efbccb966ed458b2c53c4e), n[m[o.index][o.flipX ? 1 : 0]].v65232cbf984e4899d32f63ff906d72ec(i), a.carryStack)
var d = a.carryStack.v3f79e5a09c86823c63d1dd4c45a2c380;
else
var d = a.floorStack.v3f79e5a09c86823c63d1dd4c45a2c380;
k.y -= Math.ceil(f.vac9f76090bb71c8d0e9a4b115afe200e() / Math.max(1, d.X * d.Y)) * d.Z
}
}, vca3e211e578730f5955642416944fc39.prototype.vb125ddcd0652d2a41d8a04f3af758fd0 = function (h, j, a, f) {
var c = vbe7993a2ce2422b8674dc4b1008561b0.processModel.v8f3c681737f9f11ab3dc32c9425967e8[f.id].v82257ee6a7447ddf0a38c365e1b4b3f6 ? _.clone(vbe7993a2ce2422b8674dc4b1008561b0.processModel.v8f3c681737f9f11ab3dc32c9425967e8[f.id].v82257ee6a7447ddf0a38c365e1b4b3f6) : {
x: 0,
y: -7
}, d = j;
a.flipX == 0 ? c.x -= 32 : c.x += 32, a.index == 0 ? c.y -= 15 : c.y += 15, d.x += c.x, d.y += c.y;
var b = new vbe6dfab6e47ff3d003a423092f4c35ef(d, f.id);
b.row = a.index == 1 ? 1 : 0, b.flipX = a.flipX, a.index == 0 ? h.drawablesBefore.v657e3b6ac90f6a38de6cb0a741ad936e(b) : h.drawablesAfter.v657e3b6ac90f6a38de6cb0a741ad936e(b);
var i = d, e = !1;
a.flipX == 0 && a.index == 0 && (e = !0), a.flipX == 1 && a.index == 1 && (e = !0);
var g = _.without(this.v5af95216e115d76c3042d72f1afac26f, f);
_.each(g, function (f) {
f.vc79f4561ec66dc768c2499cc50445360 = e;
var d = f.v1326e4f53a93addc45a03099e110c09d('cartStack', i, Math.abs(f.quantity)), c = A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(f.id);
_.each(d.ds, function (g) {
g.flipX = !b.flipX, g.row = b.row == 1 ? Math.min(c.rows - 1, 1) : 0;
var e = f.get('cartStack'), h = f.get('imageMargin');
h || (h = 0), e.v3c70c6208ac50886c53ef7f3aa6cac7b || (e.v3c70c6208ac50886c53ef7f3aa6cac7b = {
X: 0,
Y: 0
}), a.flipX == 1 && a.index == 1 && (g.location.x += -25 + c.v8d66706edda79de392e4c97b60de9cca - h + e.v3c70c6208ac50886c53ef7f3aa6cac7b.X - d.minOffset.x, g.location.y += -3 - (c.vc41e7355b6bb3f94920a6e0a0482b1f1 - c.veca1a2c3bf5033a5c010243e79cb1e60) + e.v3c70c6208ac50886c53ef7f3aa6cac7b.Y), a.flipX == 1 && a.index == 0 && (g.location.x += -25 + c.v8d66706edda79de392e4c97b60de9cca - h + e.v3c70c6208ac50886c53ef7f3aa6cac7b.X - d.minOffset.x, g.location.y += -1 * (c.vc41e7355b6bb3f94920a6e0a0482b1f1 - c.veca1a2c3bf5033a5c010243e79cb1e60) + e.v3c70c6208ac50886c53ef7f3aa6cac7b.Y), a.flipX == 0 && a.index == 1 && (g.location.x += 25 - (c.v6841b8cd2667199b2fbadb0a902a0b66 - c.v8d66706edda79de392e4c97b60de9cca) + h + e.v3c70c6208ac50886c53ef7f3aa6cac7b.X - d.maxOffset.x, g.location.y += -3 - (c.vc41e7355b6bb3f94920a6e0a0482b1f1 - c.veca1a2c3bf5033a5c010243e79cb1e60) + e.v3c70c6208ac50886c53ef7f3aa6cac7b.Y), a.flipX == 0 && a.index == 0 && (g.location.x += 25 - (c.v6841b8cd2667199b2fbadb0a902a0b66 - c.v8d66706edda79de392e4c97b60de9cca - h) + e.v3c70c6208ac50886c53ef7f3aa6cac7b.X - d.maxOffset.x, g.location.y += -3 - (c.vc41e7355b6bb3f94920a6e0a0482b1f1 - c.veca1a2c3bf5033a5c010243e79cb1e60) + e.v3c70c6208ac50886c53ef7f3aa6cac7b.Y)
}), b.drawablesAfter.v65232cbf984e4899d32f63ff906d72ec(d.ds)
}, this)
}, vca3e211e578730f5955642416944fc39.prototype.v2d070094632e3e6bb170f88b92daa0f6 = function (h, b) {
if (_.isUndefined(b))
return;
var g = 1, d = b.location, f = A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(b.imageName);
if (this.blocked) {
var a = new vbe6dfab6e47ff3d003a423092f4c35ef(U.vd094fbb4adf4ebb4bca2ff15236eb278(this.blocked.v0d6841dba7e1d517dafcec02307f0f56()), 'noAccess');
a.flipX = b.flipX, a.alpha = .8, a.plane = 5, a.clickable = !1, b.drawablesAfter.v657e3b6ac90f6a38de6cb0a741ad936e(a)
}
if (A.vf3351ba56d8b7e42f05b30b819a9db80().v720508d5c3659b419d8d583088d93da4('blockedWorker')) {
var c;
if (this.blocked)
var c = 'workerBlocked';
else if (this.vd2610ce0c7b1e77d64c482a7a7df7f98 > 0 && this.__v5cd7d9b41801bfd2bbe9a23da6451b27)
var c = 'workerWaiting';
if (c) {
var a = new vbe6dfab6e47ff3d003a423092f4c35ef(new Point(d.x, d.y - (f.f[b.row][6] - 5)), c);
a.alpha = g, a.clickable = !1, b.drawablesAfter.v657e3b6ac90f6a38de6cb0a741ad936e(a)
}
}
if (A.vf3351ba56d8b7e42f05b30b819a9db80().v720508d5c3659b419d8d583088d93da4('workerMessages') && (this.ve5b4b7d8d0ed43164493f669b1354b01() != 'white' || this.__v8c4b97fd779bfb50fb15b256a2b743b2 || Math.random() < .005)) {
this.__v8c4b97fd779bfb50fb15b256a2b743b2 || (_.delay(_.bind(function () {
this.__v8c4b97fd779bfb50fb15b256a2b743b2 = !1
}, this), 4e3), this.__v8c4b97fd779bfb50fb15b256a2b743b2 = !0);
var e = new vbe6dfab6e47ff3d003a423092f4c35ef(d, null);
e.plane = 10 + b.plane, _.extend(e, vd88269f14c639d29ae709e1533438c8a, { vd47ed85cab7ce2b6d437e7b570eea18a: this }), h.v657e3b6ac90f6a38de6cb0a741ad936e(e), e.vbd5fe1eb0166be3d3c5abf3a4c60cc14 = _.bind(function (w, a) {
var m = this.v300e6e0edca9c220868313e276bd874f();
if (_.isUndefined(m) || m.length == 0)
return;
if (A.vb06c3a859d6038b4515bccc5f1f891ef().v6bee5cbd59b9f037851b90b5751b2392(m))
return;
var u = A.vf3351ba56d8b7e42f05b30b819a9db80().v65c637ea0baf5919932c148aeb4cc9f9[A.vf3351ba56d8b7e42f05b30b819a9db80().vb07e7030a3b4c6b058e9f40806e38ae1()[0]], p = 1 / u, c = 5, e = w.location.x - 3, g = d.y - (f.f[b.row][6] - 8);
a.save();
var k = 12 * p, q = {
fontSize: k,
fontFamily: 'arial',
text: m,
maxWidth: 140 * p,
maxLines: 7
};
U.v81ced26a0c65876866c0bd69d356cf3a(a, q);
var j = U.vd9b132a34e8c66a0fa3f6c0dcea1b5a5(a, q), n = 6, o = 4, r = _.max(j.lines, function (b) {
return a.measureText(b).width
}), s = 2 * n + a.measureText(r).width, t = 2 * o + k + (j.lines.length - 1) * (k + 4), i = e + s, h = g - t;
a.beginPath(), a.strokeStyle = 'black', a.lineWidth = '2', a.moveTo(e + c, g), a.lineTo(e + c / 2, g + 10), a.lineTo(e + c * 2, g), a.lineTo(i - c, g), a.quadraticCurveTo(i, g, i, g - c), a.lineTo(i, h + c), a.quadraticCurveTo(i, h, i - c, h), a.lineTo(e + c, h), a.quadraticCurveTo(e, h, e, h + c), a.lineTo(e, g - c), a.quadraticCurveTo(e, g, e + c, g), a.stroke(), a.fillStyle = this.ve5b4b7d8d0ed43164493f669b1354b01(), a.fill(), a.fillStyle = 'black';
for (var l = j.lines.length - 1; l >= 0; l--) {
var v = j.lines[l];
a.fillText(v, e + n, g - o - (j.lines.length - 1 - l) * (k + 4))
}
a.restore()
}, this)
}
}, vca3e211e578730f5955642416944fc39.prototype.vf18f6429345d5b7febceb7b2165f23a8 = function (b) {
this.v261e3000f82c0e93a565221ae11b3d18 = !0, _.delay(_.bind(function () {
this.v261e3000f82c0e93a565221ae11b3d18 = !1
}, this), 5e3), A.vf3351ba56d8b7e42f05b30b819a9db80().running || A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b();
var a = new v667bf751c2e115e3a32a2b2e5947c3ee(b);
a.show(), a.v8d57dda12f8951da88f3c6827658f646(this.getName()), this.v712f74cff9e94e9c1d1420e2e20dbb92(a), a.vb3ccffaedee87d6315fa44ec46dc6326(_.bind(this.v712f74cff9e94e9c1d1420e2e20dbb92, this, a), 1e3)
}, vca3e211e578730f5955642416944fc39.prototype.v712f74cff9e94e9c1d1420e2e20dbb92 = function (b) {
b.vc9df8beed4e7c544ac444c35ed29d7c8.find('.refresh').html('');
var a = '<div class=\'refresh\'>';
a += '<b>Position:</b> ' + this.v961a74bd0a1bf7bfdd56f1f0ff011271.va5aeabb6e87882b192668878e68c8e84().title + '<br>', a += '<div><b>Status:</b> ' + this.v300e6e0edca9c220868313e276bd874f() + '</div>', a += '<div id=\'wage\'><b>Hourly pay:</b> ' + U.vd2b41c989db2a5e0c4b05790433f1562(this.v961a74bd0a1bf7bfdd56f1f0ff011271.va745e247e0711c7ede7ff21e2c348148, 2) + '</div>', a += '</div>', b.v4d77ae1222564924ebffd0e618e01f8b(a, '#refreshDiv')
}, vca3e211e578730f5955642416944fc39.prototype.vbe68ccb4a0ec9d99d8b40e96581e7f12 = function () {
this.v34201794d53145e66710e91a4dab3e5a(this.vc692ded3de34f5861464df74e35917ba() * this.v96bf6001e9b5607768f376dabf5d01ea(this.va5aeabb6e87882b192668878e68c8e84()))
}, vca3e211e578730f5955642416944fc39.prototype.newDay = function () {
this.vfb7ba928d1f012a573b10b729872fad0 = 0
}, vca3e211e578730f5955642416944fc39.prototype.v3d56f028e1994ad1b676d003e00ccdea = function (a) {
this.v75380de36077a7fbbd9a77b9e72f2c82 = a, this.vaabd6ac6040c6ff079da86f5b3c0a850()
}, vca3e211e578730f5955642416944fc39.prototype.v2cf1b4d19f42a047e8dc94bf2ea5c3c7 = function () {
return this.v86164064ae72a6e88d57369bbec634d6 = { dt: vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.settings.SimulatedSecondsPerStep }, this.v961a74bd0a1bf7bfdd56f1f0ff011271.v2a4338214db6c6536e01e59039ce0204() || this.v961a74bd0a1bf7bfdd56f1f0ff011271.v1528613cc51ea96d3a5c5c0fba0830ce() ? !1 : this.v961a74bd0a1bf7bfdd56f1f0ff011271.vb1d209edb8c7103a195c82546bc6b44d() ? !1 : (this.v961a74bd0a1bf7bfdd56f1f0ff011271.v3180f43fda4654cd8b9f6b58fbcd86cb(), !0)
}, vca3e211e578730f5955642416944fc39.prototype.v43ee41eb6cf6aa8bd1aa2683ed366926 = function () {
if (A.vb06c3a859d6038b4515bccc5f1f891ef().v2461a1084635d5926dd0a9ad05702d0c % 10 == 0 && this.vbf3c1def328a46d8d0b91066b7b87669(), this.v86164064ae72a6e88d57369bbec634d6 || (this.v86164064ae72a6e88d57369bbec634d6 = { dt: vdc7354c3cd5c7774f4dbfeba28eba934.instance.state.settings.SimulatedSecondsPerStep }), !this.v2cf1b4d19f42a047e8dc94bf2ea5c3c7()) {
this.v86164064ae72a6e88d57369bbec634d6.dt = 0;
return
}
if (this.v75380de36077a7fbbd9a77b9e72f2c82 > 0) {
this.v75380de36077a7fbbd9a77b9e72f2c82--, this.v647e6cc01a730fbc68daca879c0c5bac(), this.v86164064ae72a6e88d57369bbec634d6.dt = 0;
return
}
var k = 0, c = !1, l = !1;
while (this.v86164064ae72a6e88d57369bbec634d6.dt > 0 && this.process) {
if (k++, k % 1e3 == 0)
debugger;
if (this.state == this.__ve53079a360c86165a33746ac2b5388d9.v20445dbf91503f7d3b57eb18d5839759)
this.v647e6cc01a730fbc68daca879c0c5bac(), this.move() && (this.vd17488ed5388589e6e21a65a4500ee5a--, this.vd17488ed5388589e6e21a65a4500ee5a <= 0 && this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.v32a423450f9c4507ce955152c2650564)), this.v86164064ae72a6e88d57369bbec634d6.dt = 0;
else if (this.state == this.__ve53079a360c86165a33746ac2b5388d9.v746b94464c46642872fcc3ac5b556e4a)
this.move() && (_.isUndefined(this.vcfffb548d60c1bf710717076d624fe2e) || (this.state = this.vcfffb548d60c1bf710717076d624fe2e, this.vcfffb548d60c1bf710717076d624fe2e = undefined), this.state == this.__ve53079a360c86165a33746ac2b5388d9.v746b94464c46642872fcc3ac5b556e4a && this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.v32a423450f9c4507ce955152c2650564));
else if (this.state == this.__ve53079a360c86165a33746ac2b5388d9.v32a423450f9c4507ce955152c2650564) {
if (this.v0c6150ccbf968b4b9f0b7eb6b479debf()) {
var m = this.floor.v0776834b0640adaef760589da7a7a8d7(this.va104dfefa6670b37275d51b041f7e0bd()).va104dfefa6670b37275d51b041f7e0bd(), n = this.process.node.va104dfefa6670b37275d51b041f7e0bd();
if (m.x != n.x || m.y != n.y)
this.v7f5c0d28d7ec937c736a3bb270459e17();
else {
this.v647e6cc01a730fbc68daca879c0c5bac();
var o = A.vb06c3a859d6038b4515bccc5f1f891ef().now.clone();
(this.vc81df2039db1a220508b9f00d7cc7365 == null || !this.vc81df2039db1a220508b9f00d7cc7365.v5a2e31176f9b2d22ddfc7557df001d2b(o)) && (this.vc81df2039db1a220508b9f00d7cc7365 = o, this.vc1db579a4d032f721872a06fb5c9f010(0, U.vbacce6a42a9154e1b2ea38c9b107fbb2('I\'ll just relax while we wait for some orders to come in.')))
}
this.v86164064ae72a6e88d57369bbec634d6.dt = 0
}
if (this.v98a884d524b20a0750bb43113f2038f6())
this.vda390ef2714cb705c81f997f64c4e3a4(), this.v86164064ae72a6e88d57369bbec634d6.dt = 0;
else {
if (this.process.get('keepCarriedItems') !== !0) {
var s = this.process.veb0b89fbbbdb7a4f3c4c6f3431ec0582(this);
if (this.v2786ed1d370d26e1a7f1d765f5bc3d9c.v65232cbf984e4899d32f63ff906d72ec(s), this.v2786ed1d370d26e1a7f1d765f5bc3d9c.length > 0) {
this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.vcc51f848da7c73e6e682fc1a12d7a738), this.v38638be20eeeefa23052d29a820fb0fe = !0;
break
}
}
this.process.v4e04f77785d7491271cd4a60f7b22eb5(this), !_.isUndefined(this.process.get('waitForInputs')) && this.process.get('waitForInputs') ? this.v2ecb124d178a2521bae12384a1832f33.vb6197b85339d8d08458ca1d8b757f7b5() : (this.v2ecb124d178a2521bae12384a1832f33 = this.process.v29d295b17bdba669e786430af60234f6(this, !0), this.vbd7bd132d0abf7cf863f9286b5768f44(this.v2ecb124d178a2521bae12384a1832f33)), this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.vca4f1e2316117c3761c1e6ed47ca7e4e)
}
} else if (this.state == this.__ve53079a360c86165a33746ac2b5388d9.vca4f1e2316117c3761c1e6ed47ca7e4e)
if (this.v0d7a72fe48913d46a6a183c04be3e20f = undefined, this.vd2610ce0c7b1e77d64c482a7a7df7f98 > 0)
this.vd2610ce0c7b1e77d64c482a7a7df7f98--, this.v647e6cc01a730fbc68daca879c0c5bac(), this.v86164064ae72a6e88d57369bbec634d6.dt = 0;
else if (this.v2ecb124d178a2521bae12384a1832f33.length == 0 || !_.isUndefined(this.process.get('waitForInputs')) && this.process.get('waitForInputs'))
c = this.v7f5c0d28d7ec937c736a3bb270459e17();
else {
var g = this.process.v823750e58aba739837dfc376d7ee9147();
if (g)
var j = _.filter(this.v2ecb124d178a2521bae12384a1832f33, function (a) {
return _.contains(g, a.id)
}, this);
if (g && j.length > 0) {
var a = this.floor.v014a0ed4a91628fb9a62faf3c2fa7035(this, j, this.v15147fc2eaae194e1e2128818b0b8194(), !0);
if (a.v2112c5aecec38bde2ad494d51dde7694 == null) {
this.v3a30d045362fdbda31cfc21fc21af1ef(), this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.v32a423450f9c4507ce955152c2650564), this.v86164064ae72a6e88d57369bbec634d6.dt = 0;
break
}
} else
var a = this.floor.v014a0ed4a91628fb9a62faf3c2fa7035(this, this.v2ecb124d178a2521bae12384a1832f33, this.v15147fc2eaae194e1e2128818b0b8194(), !0);
if (a.v2112c5aecec38bde2ad494d51dde7694 != null) {
this.target = a.v2112c5aecec38bde2ad494d51dde7694, this.v0d7a72fe48913d46a6a183c04be3e20f = a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.stockpile, a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.stockpile.events.v49ad792f5229d4be359d5c4aa4e18617(this, 'move', 'stockpileMoved');
var e;
_.isFunction(a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.stockpile.v2b1d4545d2c4637078a482cf5a03ffe9) && (e = a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.stockpile.v2b1d4545d2c4637078a482cf5a03ffe9(this)), this.v69fead28026a5e82d9cd72e749372012(a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.path, e), this.vaabd6ac6040c6ff079da86f5b3c0a850(), this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.vba500f82224746ebc277687c44396719)
} else
a.v07756f7a580252a085baa3cda64188c4.length > 0 ? (this.blocked = a.v07756f7a580252a085baa3cda64188c4[0], this.vc1db579a4d032f721872a06fb5c9f010(0, 'Cannot find a way to get to the stuff that I need.')) : this.blocked = !1, this.v647e6cc01a730fbc68daca879c0c5bac(), this.v5af95216e115d76c3042d72f1afac26f.length > 0 ? this.v7f5c0d28d7ec937c736a3bb270459e17() : this.vefbf8be9113a59388771a6f1c7c3c1d0() ? this.state = this.__ve53079a360c86165a33746ac2b5388d9.v746b94464c46642872fcc3ac5b556e4a : (this.vd2610ce0c7b1e77d64c482a7a7df7f98 = this.v154b45f608cb0e3ef6c5533bcf8f2edb(), this.v86164064ae72a6e88d57369bbec634d6.dt = 0)
}
else if (this.state == this.__ve53079a360c86165a33746ac2b5388d9.vba500f82224746ebc277687c44396719) {
if (this.move()) {
var b = this.v0d7a72fe48913d46a6a183c04be3e20f;
if (b != null && (b.events.v236cc8a93da0d02f3faa03ce3735d781(this, 'move'), b.v2c37f623f454a52d448a98459acecdeb(this.target, !0, this))) {
var f = b.v19e410305b10676c935c7d5c15109280(this.target, this);
if (_.isNumber(f)) {
var d = f;
this.target.v4a2d8c0ba2ab79243ef2120f31b89b31(-d), this.target.quantity == 0 && this.v2ecb124d178a2521bae12384a1832f33.v6658d41901465458c34d0790e8086649(this.target);
var p = _.findIndex(this.v5af95216e115d76c3042d72f1afac26f, function (a) {
return a.id == this.target.id
}, this);
if (p >= 0)
this.v5af95216e115d76c3042d72f1afac26f[p].v4a2d8c0ba2ab79243ef2120f31b89b31(d);
else if (this.target.quantity == 0)
this.target.va1760875347841bb07724ffabc9c18b4(d), this.v5af95216e115d76c3042d72f1afac26f.v657e3b6ac90f6a38de6cb0a741ad936e(this.target);
else if (d > 0) {
var q = this.floor.vd4d816df61e2fa01756017294208be37().ve179db5c14980e0deda32a9dfdf019a0(this.target.id, d);
this.v5af95216e115d76c3042d72f1afac26f.v657e3b6ac90f6a38de6cb0a741ad936e(q)
}
} else
_.isObject(f) && (this.v5af95216e115d76c3042d72f1afac26f.v657e3b6ac90f6a38de6cb0a741ad936e(f), this.v2ecb124d178a2521bae12384a1832f33.v6658d41901465458c34d0790e8086649(this.target))
}
this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.vca4f1e2316117c3761c1e6ed47ca7e4e)
}
} else if (this.state == this.__ve53079a360c86165a33746ac2b5388d9.vd0e515d0f91d6716dd1b966c1c617293) {
if (this.vd79c381731f0a87cc117cb01fc9d3f99 == null) {
if (this.v86164064ae72a6e88d57369bbec634d6.dt = 0, this.vd2610ce0c7b1e77d64c482a7a7df7f98 > 0) {
this.vd2610ce0c7b1e77d64c482a7a7df7f98--, this.v647e6cc01a730fbc68daca879c0c5bac();
return
}
if (c = this.v7f5c0d28d7ec937c736a3bb270459e17(), !c)
break
}
if (c || this.move())
if (this.process.v645708bc86a78cc49cac7a64e516f8ad(this.v5af95216e115d76c3042d72f1afac26f, this), this.v2ecb124d178a2521bae12384a1832f33.length > 0 || this.v0c6150ccbf968b4b9f0b7eb6b479debf())
this.v647e6cc01a730fbc68daca879c0c5bac(), this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.v32a423450f9c4507ce955152c2650564), this.v86164064ae72a6e88d57369bbec634d6.dt = 0;
else {
this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.va00800a74f59579fc5f00667f737974f);
var r = this.process.v17d5f65254383b740db2d65876aa48c2(this);
r < 0 && (this.v3a30d045362fdbda31cfc21fc21af1ef(), this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.v32a423450f9c4507ce955152c2650564), this.v86164064ae72a6e88d57369bbec634d6.dt = 0)
}
} else if (this.state == this.__ve53079a360c86165a33746ac2b5388d9.va00800a74f59579fc5f00667f737974f) {
if (this.process.__v2cbc24296d0f74841ec12e7645afb96e) {
this.v86164064ae72a6e88d57369bbec634d6.dt = 0;
return
}
if (this.process.v3bfb30a19746b869703b55350a08c230(this, this.v86164064ae72a6e88d57369bbec634d6)) {
var h = this.process.v3d39dd3237e42d86b93b0f951d24b73d(this);
this.v5af95216e115d76c3042d72f1afac26f.v65232cbf984e4899d32f63ff906d72ec(h), this.v2786ed1d370d26e1a7f1d765f5bc3d9c = this.process.v9fae1d2c44a4666b953480fa0cf6d08a(h, this), this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.vcc51f848da7c73e6e682fc1a12d7a738)
}
} else if (this.state == this.__ve53079a360c86165a33746ac2b5388d9.vcc51f848da7c73e6e682fc1a12d7a738)
if (this.vd2610ce0c7b1e77d64c482a7a7df7f98 > 0) {
this.vd2610ce0c7b1e77d64c482a7a7df7f98--, this.v647e6cc01a730fbc68daca879c0c5bac(), this.v86164064ae72a6e88d57369bbec634d6.dt = 0;
return
} else if (this.v2786ed1d370d26e1a7f1d765f5bc3d9c.length == 0)
this.v0d7a72fe48913d46a6a183c04be3e20f = undefined, c = this.v7f5c0d28d7ec937c736a3bb270459e17(), this.v38638be20eeeefa23052d29a820fb0fe ? this.v38638be20eeeefa23052d29a820fb0fe = undefined : (this.process.v8f16346c17cc04d15f549b120b9bbe47(this), this.v3a30d045362fdbda31cfc21fc21af1ef()), _.isObject(this.vb92cf54fde4e0e996eed300b770646b1) && this.vb92cf54fde4e0e996eed300b770646b1.v8f5963a11ba9b52abb4fe96b8499807c(this) && (this.vd79c381731f0a87cc117cb01fc9d3f99 = null, this.ve9305d578e56d72f5312dd134e1af564(this.vb92cf54fde4e0e996eed300b770646b1), this.vb92cf54fde4e0e996eed300b770646b1 = null, this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.v32a423450f9c4507ce955152c2650564)), this.state != this.__ve53079a360c86165a33746ac2b5388d9.v746b94464c46642872fcc3ac5b556e4a && this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.v32a423450f9c4507ce955152c2650564);
else {
var a = this.floor.v014a0ed4a91628fb9a62faf3c2fa7035(this, this.v2786ed1d370d26e1a7f1d765f5bc3d9c, this.v15147fc2eaae194e1e2128818b0b8194(), !1);
if (a.v2112c5aecec38bde2ad494d51dde7694 != null) {
this.target = a.v2112c5aecec38bde2ad494d51dde7694, this.v0d7a72fe48913d46a6a183c04be3e20f = a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.stockpile, a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.stockpile.events.v49ad792f5229d4be359d5c4aa4e18617(this, 'move', 'stockpileMoved'), this.v7ce86f426ce3fcb24bfb995ffd6813db = 'Carry';
var e;
this.v0d7a72fe48913d46a6a183c04be3e20f.node == a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.path.vd19a4a5f65708121730ad2134000bba8() && _.isFunction(a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.stockpile.v2b1d4545d2c4637078a482cf5a03ffe9) && (e = a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.stockpile.v2b1d4545d2c4637078a482cf5a03ffe9(this)), this.v0d7a72fe48913d46a6a183c04be3e20f.v4d5c3744e96fe28d3c8b12f999af0dfd(this.target, this), this.v69fead28026a5e82d9cd72e749372012(a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.path, e), this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.vbdbfc1941323a4f37ae6ef49f3737404), this.process.vc71a519d43657bc7b268eb22608175d5(this)
} else
this.vff9ee041e110988e6155b6370246d565(a), this.v86164064ae72a6e88d57369bbec634d6.dt = 0
}
else if (this.state == this.__ve53079a360c86165a33746ac2b5388d9.vbdbfc1941323a4f37ae6ef49f3737404) {
if (this.move()) {
var b = this.v0d7a72fe48913d46a6a183c04be3e20f;
if (b != null && (b.events.v236cc8a93da0d02f3faa03ce3735d781(this, 'move'), b.v3aed6d256f01a7b87432911882a6daa5(this.target, this))) {
var i = b.v7c607f7089d018113d3b4859ca67f414(this.target, this);
_.isNumber(i) ? (this.target.v4a2d8c0ba2ab79243ef2120f31b89b31(-i), this.target.quantity == 0 ? (this.v2786ed1d370d26e1a7f1d765f5bc3d9c.v6658d41901465458c34d0790e8086649(this.target), this.v5af95216e115d76c3042d72f1afac26f.v6658d41901465458c34d0790e8086649(this.target)) : this.target.quantity < 0) : (this.v2786ed1d370d26e1a7f1d765f5bc3d9c.v6658d41901465458c34d0790e8086649(this.target), this.v5af95216e115d76c3042d72f1afac26f.v6658d41901465458c34d0790e8086649(this.target)), _.isFunction(b.v83f7d4283bb20eebe67afe2947b0d741) && (dropTime = b.v83f7d4283bb20eebe67afe2947b0d741(), dropTime >= this.v86164064ae72a6e88d57369bbec634d6.dt ? (dropTime -= this.v86164064ae72a6e88d57369bbec634d6.dt, this.v86164064ae72a6e88d57369bbec634d6.dt = 0, this.v75380de36077a7fbbd9a77b9e72f2c82 = Math.round(dropTime / A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().SimulatedSecondsPerStep)) : this.v86164064ae72a6e88d57369bbec634d6.dt -= dropTime), _.isFunction(b.v776dc86700a5f93052efad6483137448) && b.v776dc86700a5f93052efad6483137448(this) && (this.vb92cf54fde4e0e996eed300b770646b1 = b)
}
this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.vcc51f848da7c73e6e682fc1a12d7a738)
}
} else
return this.v86164064ae72a6e88d57369bbec634d6.dt = 0, !1;
if (this.process && this.vc6ab6e11b82f75f98a1ab4d6a2d95b16 && this.vc6ab6e11b82f75f98a1ab4d6a2d95b16.getTime() > A.vb06c3a859d6038b4515bccc5f1f891ef().v439996edc8b8293e5ab20ad2df21dd8b()) {
l = !0;
break
}
}
return this.vaabd6ac6040c6ff079da86f5b3c0a850(), l
}, vca3e211e578730f5955642416944fc39.prototype.vff9ee041e110988e6155b6370246d565 = function (a) {
a.v07756f7a580252a085baa3cda64188c4.length > 0 ? (this.blocked = a.v07756f7a580252a085baa3cda64188c4[0], this.vc1db579a4d032f721872a06fb5c9f010(0, 'Cannot find a way to get to the place where I need to take this stuff.')) : this.blocked = !1, this.v647e6cc01a730fbc68daca879c0c5bac(), this.vd2610ce0c7b1e77d64c482a7a7df7f98 = this.v154b45f608cb0e3ef6c5533bcf8f2edb()
}, vca3e211e578730f5955642416944fc39.prototype.v0c6150ccbf968b4b9f0b7eb6b479debf = function () {
return this.floor.v0c6150ccbf968b4b9f0b7eb6b479debf()
}, vca3e211e578730f5955642416944fc39.prototype.v4a241fcfc7ba18839b04a4a304cb515b = function () {
this.v961a74bd0a1bf7bfdd56f1f0ff011271.v4a241fcfc7ba18839b04a4a304cb515b(), this.v961a74bd0a1bf7bfdd56f1f0ff011271.v03af2f43bdb1fb7ff71ae992cbbc81aa() && _.isObject(this.process) && this.process.v68bc0dfd5dd733f97fb5b7c950eaffcd(), this.__v160edeb08fd4c1f271918fe59477d388 = '', this.vbf3c1def328a46d8d0b91066b7b87669()
}, vca3e211e578730f5955642416944fc39.prototype.vd9411b9bf2c920e345c88ddec3aa192b = function () {
_.isObject(this.process) && this.process.vb4d82a641417a4fc1b4bb682204fc110(), this.v961a74bd0a1bf7bfdd56f1f0ff011271.vd9411b9bf2c920e345c88ddec3aa192b(), this.vbf3c1def328a46d8d0b91066b7b87669()
}, vca3e211e578730f5955642416944fc39.prototype.va1a6651ecb6d997349b439d9cf0eede7 = function () {
_.each(this.v5af95216e115d76c3042d72f1afac26f, function (a) {
if (a.va1760875347841bb07724ffabc9c18b4(Math.abs(a.quantity)), this.process.floor.v59048620b41c1916b149a651f3cd4656(a, this), _.isFunction(this.process.floor.vb02de472cea8ce814a37b51bea76e9db.v344198ac72c79b60f918d9840b89e351))
this.process.floor.vb02de472cea8ce814a37b51bea76e9db.v344198ac72c79b60f918d9840b89e351(a.id, a.quantity);
else {
var b = this.process.floor.vd4d816df61e2fa01756017294208be37().vf5752ecac5722bf823d2ba46669b8e06(a.id) * a.quantity;
b > 0 && this.process.floor.vb02de472cea8ce814a37b51bea76e9db.vcb519d3d4ef0f894468aab43b30f54f1 && this.process.floor.vb02de472cea8ce814a37b51bea76e9db.vcb519d3d4ef0f894468aab43b30f54f1.v52e727efec759b60a5e762d83643a53b('Waste') && this.process.floor.vb02de472cea8ce814a37b51bea76e9db.vcb519d3d4ef0f894468aab43b30f54f1.vbc3f437d147654d5b4047440bac28533('Waste', b, a.get('name'))
}
}, this), this.v5af95216e115d76c3042d72f1afac26f.vb6197b85339d8d08458ca1d8b757f7b5()
}, vca3e211e578730f5955642416944fc39.prototype.v7f5c0d28d7ec937c736a3bb270459e17 = function () {
this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.vd0e515d0f91d6716dd1b966c1c617293);
var d = this.va104dfefa6670b37275d51b041f7e0bd(), c = this.process.v2b1d4545d2c4637078a482cf5a03ffe9(this);
if (d.x != c.x || d.y != c.y) {
var e = this.v15147fc2eaae194e1e2128818b0b8194(), f = this.floor.v0776834b0640adaef760589da7a7a8d7(d), b = this.process.floor.v0776834b0640adaef760589da7a7a8d7(c), a = this.floor.va67977e167a9efd933bd15b7b1f8b384(f, b, e);
return a == null && (b = this.process.floor.v0776834b0640adaef760589da7a7a8d7(this.process.ve015db772677033cd259803bf55d5589()), a = this.floor.va67977e167a9efd933bd15b7b1f8b384(f, b, e)), a == null && (b = this.process.node, a = this.floor.va67977e167a9efd933bd15b7b1f8b384(f, b, e)), a == null ? (this.vd79c381731f0a87cc117cb01fc9d3f99 = null, this.blocked = this.process, this.vc1db579a4d032f721872a06fb5c9f010(0, 'Cannot find a way to get where I need to go.'), this.vd2610ce0c7b1e77d64c482a7a7df7f98 = this.v154b45f608cb0e3ef6c5533bcf8f2edb(), !1) : (this.blocked = !1, this.v69fead28026a5e82d9cd72e749372012(a, c), this.v7ce86f426ce3fcb24bfb995ffd6813db == 'customDraw' && this.vaabd6ac6040c6ff079da86f5b3c0a850('Walk'), !1)
} else
return !0
}, vca3e211e578730f5955642416944fc39.prototype.processMoved = function () {
if (this.state == this.__ve53079a360c86165a33746ac2b5388d9.va00800a74f59579fc5f00667f737974f)
this.v00602c11b99a49d289192ceabbdd2f22(this.process.v2b1d4545d2c4637078a482cf5a03ffe9(this));
else {
var a = this.floor.vd24e3ff7b571e719f6e586cb4745a698(this.va104dfefa6670b37275d51b041f7e0bd(), this.process.node, this.v15147fc2eaae194e1e2128818b0b8194());
a == null ? this.v00602c11b99a49d289192ceabbdd2f22(this.process.v2b1d4545d2c4637078a482cf5a03ffe9(this)) : (this.v69fead28026a5e82d9cd72e749372012(a, this.process.v2b1d4545d2c4637078a482cf5a03ffe9(this)), this.vcfffb548d60c1bf710717076d624fe2e = this.state, this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.v746b94464c46642872fcc3ac5b556e4a))
}
}, vca3e211e578730f5955642416944fc39.prototype.stockpileMoved = function (c, b) {
var d = c.va104dfefa6670b37275d51b041f7e0bd();
if (this.state == this.__ve53079a360c86165a33746ac2b5388d9.vba500f82224746ebc277687c44396719 || this.state == this.__ve53079a360c86165a33746ac2b5388d9.vbdbfc1941323a4f37ae6ef49f3737404) {
var a = this.floor.vd24e3ff7b571e719f6e586cb4745a698(this.va104dfefa6670b37275d51b041f7e0bd(), b, this.v15147fc2eaae194e1e2128818b0b8194());
a == null ? this.v00602c11b99a49d289192ceabbdd2f22(b.va104dfefa6670b37275d51b041f7e0bd()) : this.v69fead28026a5e82d9cd72e749372012(a)
}
}, vca3e211e578730f5955642416944fc39.prototype.v680c1de83bde820085cf489e1b89bcbf = function (a, b) {
this.__va9ed3dd3a99ea463e7d8e213277efdc8 = a, this.__v160edeb08fd4c1f271918fe59477d388 = b, this.floor && this.floor.vb02de472cea8ce814a37b51bea76e9db && a != 0 && this.floor.vb02de472cea8ce814a37b51bea76e9db.log.comment(U.vbacce6a42a9154e1b2ea38c9b107fbb2(this.va5aeabb6e87882b192668878e68c8e84().title), b)
}, vca3e211e578730f5955642416944fc39.prototype.v692b7e4443b74807f6c38c809ba9c73a = function () {
return this.v961a74bd0a1bf7bfdd56f1f0ff011271.vb1d209edb8c7103a195c82546bc6b44d() ? 'Absent' : this.v961a74bd0a1bf7bfdd56f1f0ff011271.v2a4338214db6c6536e01e59039ce0204() ? 'Off Duty' : this.v961a74bd0a1bf7bfdd56f1f0ff011271.v1528613cc51ea96d3a5c5c0fba0830ce() ? 'Laid Off' : this.v961a74bd0a1bf7bfdd56f1f0ff011271.v403d41b78be650991ccc797c94c991a4() ? 'Working' : void 0
}, vca3e211e578730f5955642416944fc39.prototype.ve5b4b7d8d0ed43164493f669b1354b01 = function () {
return this.__va9ed3dd3a99ea463e7d8e213277efdc8 == 2 ? '#FF8080' : this.__va9ed3dd3a99ea463e7d8e213277efdc8 == 1 ? '#FFE880' : this.__va9ed3dd3a99ea463e7d8e213277efdc8 == -1 ? '#A0FFA0' : 'white'
}, vca3e211e578730f5955642416944fc39.prototype.v300e6e0edca9c220868313e276bd874f = function () {
return this.__v160edeb08fd4c1f271918fe59477d388 || this.vbf3c1def328a46d8d0b91066b7b87669(), this.__v160edeb08fd4c1f271918fe59477d388
}, vca3e211e578730f5955642416944fc39.prototype.vbf3c1def328a46d8d0b91066b7b87669 = function () {
var c = 0;
if (!this.v961a74bd0a1bf7bfdd56f1f0ff011271.v03af2f43bdb1fb7ff71ae992cbbc81aa()) {
this.v680c1de83bde820085cf489e1b89bcbf(c, this.v692b7e4443b74807f6c38c809ba9c73a());
return
}
if (this.v0c6150ccbf968b4b9f0b7eb6b479debf()) {
this.v680c1de83bde820085cf489e1b89bcbf(c, U.vbacce6a42a9154e1b2ea38c9b107fbb2('Boss says to stop work until we get some orders'));
return
}
var a = '', d = 'place';
if (this.v0d7a72fe48913d46a6a183c04be3e20f && _.isFunction(this.v0d7a72fe48913d46a6a183c04be3e20f.v362697120ef6bc3b622eb15f1c1a8b9e) && (d = this.v0d7a72fe48913d46a6a183c04be3e20f.v362697120ef6bc3b622eb15f1c1a8b9e()), !this.v0d7a72fe48913d46a6a183c04be3e20f && this.state == this.__ve53079a360c86165a33746ac2b5388d9.vcc51f848da7c73e6e682fc1a12d7a738 && this.v2786ed1d370d26e1a7f1d765f5bc3d9c.length > 0) {
var e = _.find(this.floor.v5016a24825ffee124e6fbacb46933e41, _.bind(function (a) {
return _.contains(a.v483011b294fe19594d57f6d57837112e(), _.first(this.v2786ed1d370d26e1a7f1d765f5bc3d9c).id)
}, this));
e && _.isFunction(e.v362697120ef6bc3b622eb15f1c1a8b9e) && (d = e.v362697120ef6bc3b622eb15f1c1a8b9e())
}
switch (this.state) {
case this.__ve53079a360c86165a33746ac2b5388d9.v32a423450f9c4507ce955152c2650564:
a = this.process.v5966050d86e7a36c5644286cdb22784a(this);
break;
case this.__ve53079a360c86165a33746ac2b5388d9.vca4f1e2316117c3761c1e6ed47ca7e4e:
var b = this.vfc7977c30724c64c4d6766de58ad28b9(this.v2ecb124d178a2521bae12384a1832f33);
this.blocked ? (a = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Cannot get to {0} to get {1}', [
d,
b
]), c = 2) : (a = 'Looking for ' + b, c = 1);
break;
case this.__ve53079a360c86165a33746ac2b5388d9.vba500f82224746ebc277687c44396719:
a = 'Getting ' + this.target.get('name');
break;
case this.__ve53079a360c86165a33746ac2b5388d9.vd0e515d0f91d6716dd1b966c1c617293:
this.blocked ? (a = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Cannot get to {0}', this.process.v362697120ef6bc3b622eb15f1c1a8b9e()), c = 2) : a = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Walking to {0}', this.process.v362697120ef6bc3b622eb15f1c1a8b9e());
break;
case this.__ve53079a360c86165a33746ac2b5388d9.va00800a74f59579fc5f00667f737974f:
var f = this.process.v36d637f1b93df436a329c1bcd67243e1(this);
a = this.process.ve1351d8e1c213b0801e2f368891ce0f9() + '<br>Percent Complete:<br><div class=\'progress\' style=\'margin-bottom:0px\'><div class=\'progress-bar\' style=\'width: ' + f + '%;\'></div></div>';
break;
case this.__ve53079a360c86165a33746ac2b5388d9.vcc51f848da7c73e6e682fc1a12d7a738:
var b = this.vfc7977c30724c64c4d6766de58ad28b9(this.v2786ed1d370d26e1a7f1d765f5bc3d9c);
this.blocked ? (a = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Cannot get to {0} to drop off {1}', [
d,
b
]), c = 2) : (a = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Trying to find a {0} for {1}', [
d,
b
]), c = 1);
break;
case this.__ve53079a360c86165a33746ac2b5388d9.vbdbfc1941323a4f37ae6ef49f3737404:
var b = this.vfc7977c30724c64c4d6766de58ad28b9(this.v2786ed1d370d26e1a7f1d765f5bc3d9c);
a = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Taking {0}', b);
break;
case this.__ve53079a360c86165a33746ac2b5388d9.v20445dbf91503f7d3b57eb18d5839759:
a = 'Taking a break';
break
}
this.v680c1de83bde820085cf489e1b89bcbf(c, a)
}, vca3e211e578730f5955642416944fc39.prototype.vfc7977c30724c64c4d6766de58ad28b9 = function (b) {
var a = this.floor.vd4d816df61e2fa01756017294208be37().v4c1bc5c30aca4c3876782d471a8bbc96(b).join(', ');
return a == '' && (a = 'this stuff'), a
}, vca3e211e578730f5955642416944fc39.prototype.v98a884d524b20a0750bb43113f2038f6 = function () {
return _.isFunction(this.floor.vb02de472cea8ce814a37b51bea76e9db.veb427d9a12171e3dc316f265bb348f24) ? this.floor.vb02de472cea8ce814a37b51bea76e9db.veb427d9a12171e3dc316f265bb348f24(this.vfb7ba928d1f012a573b10b729872fad0) : !1
}, vca3e211e578730f5955642416944fc39.prototype.vda390ef2714cb705c81f997f64c4e3a4 = function () {
this.vd17488ed5388589e6e21a65a4500ee5a = A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().vb4140115eee0d8828366e26d6db71fe2, this.vfb7ba928d1f012a573b10b729872fad0++, this.v04a723967e46aa4a9ccef90cd611b59a(this.__ve53079a360c86165a33746ac2b5388d9.v20445dbf91503f7d3b57eb18d5839759), this.v2c9dbc0b42fb7821dbb3eaa5e618f256()
}, vca3e211e578730f5955642416944fc39.prototype.v647e6cc01a730fbc68daca879c0c5bac = function () {
this.v961a74bd0a1bf7bfdd56f1f0ff011271.v1d689eed81d92d671c1a8c4ec2d2273e()
}, vca3e211e578730f5955642416944fc39.prototype.v50ec66a1b9b8d7df88e1ba9630896cf6 = function () {
return Math.round(100 * this.v961a74bd0a1bf7bfdd56f1f0ff011271.v50ec66a1b9b8d7df88e1ba9630896cf6())
}, vca3e211e578730f5955642416944fc39.prototype.v0c09b0f2301518276053d6d8f2378138 = function (c, d, e) {
var b = this.v96bf6001e9b5607768f376dabf5d01ea(d), a = c / (.05 + b);
return e !== !1 && (a *= .9 + A.vb06c3a859d6038b4515bccc5f1f891ef().random.v4b5d032286d7ea0a308827fdb5b94573() * .2), a
}, vca3e211e578730f5955642416944fc39.prototype.v854cc3de1ab79c254b5d962c965b2738 = function (a, b) {
return this.v0c09b0f2301518276053d6d8f2378138(a, b, !1)
}, vca3e211e578730f5955642416944fc39.prototype.v7d947466b0fcb68d20086ffd497d2d4f = function (b) {
this.v83e66ee6d0b5fe48ef9c9756516874b5 == 0 && (this.v83e66ee6d0b5fe48ef9c9756516874b5 = b);
var a = 20;
_.isUndefined(A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().v4be1d167a666ce07082b473cdf32aa8c) || (a = A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().v4be1d167a666ce07082b473cdf32aa8c), this.v83e66ee6d0b5fe48ef9c9756516874b5 = this.v83e66ee6d0b5fe48ef9c9756516874b5 + (b - this.v83e66ee6d0b5fe48ef9c9756516874b5) / a
}, vca3e211e578730f5955642416944fc39.prototype.vc014913cab206582c88ba0799d2fe294 = function () {
var a = this.v83e66ee6d0b5fe48ef9c9756516874b5;
return a > 120 ? U.vbacce6a42a9154e1b2ea38c9b107fbb2('{0} mins.', U.vd84eadcceba7c7ff874f8d08babd5fe2(Math.round(a / 60))) : U.vbacce6a42a9154e1b2ea38c9b107fbb2('{0} sec.', U.vd84eadcceba7c7ff874f8d08babd5fe2(a))
}, vca3e211e578730f5955642416944fc39.prototype.v15147fc2eaae194e1e2128818b0b8194 = function () {
var a = {};
if (_.forEach([
this.process,
this.v8fe96e4e77bcf851e50edd3679e9d5aa
], function (d) {
if (_.isObject(d)) {
var c = d.v04b0dd7d7198b9c7a88db3da70c7c354();
for (var b = 0; b < c.length; b++) {
var e = c[b];
a[e.get('name')] = !1
}
}
}), this.v0d7a72fe48913d46a6a183c04be3e20f) {
var c = this.v0d7a72fe48913d46a6a183c04be3e20f.v04b0dd7d7198b9c7a88db3da70c7c354();
for (var b = 0; b < c.length; b++) {
var d = c[b];
a[d.get('name')] = !1
}
}
return a
}, vca3e211e578730f5955642416944fc39.prototype.v2c9dbc0b42fb7821dbb3eaa5e618f256 = function () {
var a = this.floor.vdb4029be5b914fd42b5e13188edba48a();
if (_.isObject(a)) {
var b = this.floor.vd24e3ff7b571e719f6e586cb4745a698(this.va104dfefa6670b37275d51b041f7e0bd(), a, this.v15147fc2eaae194e1e2128818b0b8194());
b != null && (this.v69fead28026a5e82d9cd72e749372012(b, a.v26baece43410e172361dfa585625b2bf(A.vb06c3a859d6038b4515bccc5f1f891ef().random)), this.vaabd6ac6040c6ff079da86f5b3c0a850('Walk'))
}
}, vca3e211e578730f5955642416944fc39.prototype.v69fead28026a5e82d9cd72e749372012 = function (c, e) {
var b = [], d = [];
if (c) {
b = c.ve185849ce9265b887e774f0e9e63fecf(), this.vc0e4f551482df6b86be9e4b899541a6a && _.forEach(b, _.bind(function (a) {
a.x += this.vc0e4f551482df6b86be9e4b899541a6a.x, a.y += this.vc0e4f551482df6b86be9e4b899541a6a.y
}, this)), _.isUndefined(e) || (b[Math.max(0, b.length - 1)] = e);
for (var a = 1; a < c.nodes.length; a++)
c.nodes[a].floor.v78f3ac2233ab2982488fa06761a1c670 ? d[a - 1] = this.v95901489df6f7e12c47103f56abece83() * c.nodes[a].floor.v78f3ac2233ab2982488fa06761a1c670 : d[a - 1] = this.v95901489df6f7e12c47103f56abece83()
}
vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v69fead28026a5e82d9cd72e749372012.call(this, b), this.v9f851bac654ade23eafcae607b9bfaff(d)
}, vca3e211e578730f5955642416944fc39.prototype.v3a30d045362fdbda31cfc21fc21af1ef = function (a) {
this.task = undefined
}, vca3e211e578730f5955642416944fc39.prototype.v406aa343045123ff88716067a310e40c = function (a) {
this.v7d947466b0fcb68d20086ffd497d2d4f(a)
}, vca3e211e578730f5955642416944fc39.prototype.v7ef2d88c25e42e369b9351a7caf6fbb6 = function (a, b) {
if (a == b)
return;
a && a.v46c9cc408f9f431abf796c4aad9bea22(this), b.v6563a53e7794112bfcbc9351b914d524(this), this.floor = b
}, vca3e211e578730f5955642416944fc39.prototype.v54163d389ec6b61c69e079726a46105c = function (a) {
return _.some(this.v5af95216e115d76c3042d72f1afac26f, function (b) {
return b.v689f5106fac3c1a533ea723821591a86() == a
})
}, vca3e211e578730f5955642416944fc39.prototype.v5204267aedd4baf67cf0f0fc21ebbeab = function (a) {
return _.find(this.v5af95216e115d76c3042d72f1afac26f, function (b) {
return b.v689f5106fac3c1a533ea723821591a86() == a
})
}, vca3e211e578730f5955642416944fc39.prototype.v644df7bbfa62ef4d40e72893c8064bc1 = function (b) {
var a = this.v5204267aedd4baf67cf0f0fc21ebbeab(b);
return a ? a.quantity : 0
}, vca3e211e578730f5955642416944fc39.prototype.v03839583338fff1593688f186a04b81c = function (a) {
return _.sum(this.v2ecb124d178a2521bae12384a1832f33, function (b) {
return b.v689f5106fac3c1a533ea723821591a86() == a ? b.quantity : 0
})
}, vca3e211e578730f5955642416944fc39.prototype.v154b45f608cb0e3ef6c5533bcf8f2edb = function () {
return this.process && _.isFunction(this.process.v154b45f608cb0e3ef6c5533bcf8f2edb) ? this.process.v154b45f608cb0e3ef6c5533bcf8f2edb() : this.__v9d4e89b87bb3cd416e58a1e74cc90741.vdff2db1a1e25c06cea88c3d44986e06f
}, vca3e211e578730f5955642416944fc39.prototype.v04a723967e46aa4a9ccef90cd611b59a = function (a) {
this.state = a
}, vca3e211e578730f5955642416944fc39.prototype.v4c81630cf6a1c362e833a37820843b20 = function () {
this.vcee8616827b4dac25ead47cc1b33bcc4 || (this.vcee8616827b4dac25ead47cc1b33bcc4 = A.vb06c3a859d6038b4515bccc5f1f891ef().now)
}, vca3e211e578730f5955642416944fc39.prototype.v4a367c637cd54077b044f96b4dded6f9 = function () {
var a = 0;
return this.vcee8616827b4dac25ead47cc1b33bcc4 && (a = KMDate.v024976ba5c4bd0a7f5a0b7fa66caa173(A.vb06c3a859d6038b4515bccc5f1f891ef().now, this.vcee8616827b4dac25ead47cc1b33bcc4)), this.vcee8616827b4dac25ead47cc1b33bcc4 = undefined, a
}, vca3e211e578730f5955642416944fc39.prototype.vcba51b17a01b2f68371b4bc5c3f3486a = function () {
return this.vcee8616827b4dac25ead47cc1b33bcc4 ? KMDate.v5e0640adf2fd919e703d147b17023b54(A.vb06c3a859d6038b4515bccc5f1f891ef().now, this.vcee8616827b4dac25ead47cc1b33bcc4) : 0
}, vca3e211e578730f5955642416944fc39.prototype.vb5753a5996249d4b122123fbdbc67774 = function () {
return _.isUndefined(this.v31601a2d676cf583e72c8e03fb205989) ? this.v7ce86f426ce3fcb24bfb995ffd6813db == 'Sit' : this.v31601a2d676cf583e72c8e03fb205989
}, vca3e211e578730f5955642416944fc39.prototype.vefbf8be9113a59388771a6f1c7c3c1d0 = function () {
return this.vd79c381731f0a87cc117cb01fc9d3f99 ? this.v51689f5af7ad2aef1c8c14b914973f63 <= 0 ? !1 : this.v292f13bdb684f9d3ffd76c4d798037d5 == 0 && this.vd77ea6de02d37c1010c2e6c932744285 == 0 ? !1 : !0 : !1
}, vca3e211e578730f5955642416944fc39.prototype.vaabd6ac6040c6ff079da86f5b3c0a850 = function (b) {
if (b)
this.v7ce86f426ce3fcb24bfb995ffd6813db = b;
else {
if (this.v7ce86f426ce3fcb24bfb995ffd6813db == 'Invisible')
return;
var a = this.vefbf8be9113a59388771a6f1c7c3c1d0();
if (a)
this.v31601a2d676cf583e72c8e03fb205989 = undefined;
else if (this.v7ce86f426ce3fcb24bfb995ffd6813db == 'customDraw')
return;
this.v5af95216e115d76c3042d72f1afac26f.length == 0 ? a ? this.v7ce86f426ce3fcb24bfb995ffd6813db = 'Walk' : this.process && !this.blocked ? this.state == this.__ve53079a360c86165a33746ac2b5388d9.va00800a74f59579fc5f00667f737974f ? this.v7ce86f426ce3fcb24bfb995ffd6813db = this.process.vfea8e705d55413af944734bd15056baa(this) : this.v7ce86f426ce3fcb24bfb995ffd6813db = this.process.v73fa30fd32305a4fa0296724d714012f(this) : this.v7ce86f426ce3fcb24bfb995ffd6813db = 'Stand' : a ? this.v5af95216e115d76c3042d72f1afac26f.v7811bd4c3ddc55ef8aa8bcdde98c6eb2 ? this.v7ce86f426ce3fcb24bfb995ffd6813db = this.v5af95216e115d76c3042d72f1afac26f.v7811bd4c3ddc55ef8aa8bcdde98c6eb2 : this.process && this.state == this.__ve53079a360c86165a33746ac2b5388d9.va00800a74f59579fc5f00667f737974f ? this.v7ce86f426ce3fcb24bfb995ffd6813db = this.process.vfea8e705d55413af944734bd15056baa(this) : this.v7ce86f426ce3fcb24bfb995ffd6813db = 'Carry' : (this.blocked && (this.v7ce86f426ce3fcb24bfb995ffd6813db = 'CarryIdle'), this.v5af95216e115d76c3042d72f1afac26f.v19da57840eec27510310e255a194a2e9 ? this.v7ce86f426ce3fcb24bfb995ffd6813db = this.v5af95216e115d76c3042d72f1afac26f.v19da57840eec27510310e255a194a2e9 : this.process ? this.state == this.__ve53079a360c86165a33746ac2b5388d9.va00800a74f59579fc5f00667f737974f ? this.v7ce86f426ce3fcb24bfb995ffd6813db = this.process.vfea8e705d55413af944734bd15056baa(this) : this.v7ce86f426ce3fcb24bfb995ffd6813db = this.process.v73fa30fd32305a4fa0296724d714012f(this) : this.v7ce86f426ce3fcb24bfb995ffd6813db = 'CarryIdle')
}
return
}, vca3e211e578730f5955642416944fc39.prototype.vc1db579a4d032f721872a06fb5c9f010 = function (b, a) {
this.floor.vb02de472cea8ce814a37b51bea76e9db.log && this.floor.vb02de472cea8ce814a37b51bea76e9db.log.comment(U.vbacce6a42a9154e1b2ea38c9b107fbb2(this.v20ec3d4a803dd27a55f795e3c1e1414a()), U.vbacce6a42a9154e1b2ea38c9b107fbb2(a)), this.v99c22ac6c9776fe84bafb5dad1f4bec0 = {
msg: U.vbacce6a42a9154e1b2ea38c9b107fbb2(a),
time: A.vb06c3a859d6038b4515bccc5f1f891ef().now
}
}, vca3e211e578730f5955642416944fc39.prototype.vbd7bd132d0abf7cf863f9286b5768f44 = function (a) {
}, vca3e211e578730f5955642416944fc39.prototype.v86e79e36cb8d80da13694c68e917a2d8 = function () {
return this.state == this.__ve53079a360c86165a33746ac2b5388d9.va00800a74f59579fc5f00667f737974f && this.process ? this.process.v9dd3565afeb81e8c95e9d449508c5819(this) : (this.state == this.__ve53079a360c86165a33746ac2b5388d9.vca4f1e2316117c3761c1e6ed47ca7e4e || this.state == this.__ve53079a360c86165a33746ac2b5388d9.vcc51f848da7c73e6e682fc1a12d7a738) && !this.vefbf8be9113a59388771a6f1c7c3c1d0() && _.isObject(this.v0d7a72fe48913d46a6a183c04be3e20f) ? this.vb91f3972965285c2bcf9a91c4b950bb7(this.v0d7a72fe48913d46a6a183c04be3e20f) : (this.v99852e2df25602e53d8983589cf14117.x == this.v947a87e590536d6ee0b93ef169264d31.x || this.v99852e2df25602e53d8983589cf14117.y == this.v947a87e590536d6ee0b93ef169264d31.y) && this.process ? this.process.v9dd3565afeb81e8c95e9d449508c5819(this) : void 0
}, vca3e211e578730f5955642416944fc39.prototype.vb91f3972965285c2bcf9a91c4b950bb7 = function (a) {
return orientation = a.va104dfefa6670b37275d51b041f7e0bd().y > this.va104dfefa6670b37275d51b041f7e0bd().y ? 'S' : 'N', orientation += a.va104dfefa6670b37275d51b041f7e0bd().x > this.va104dfefa6670b37275d51b041f7e0bd().x ? 'E' : 'W', orientation
}, vca3e211e578730f5955642416944fc39.prototype.v02dac0d354b20606b64e9803ba767d64 = function () {
return _.isArray(this.vd79c381731f0a87cc117cb01fc9d3f99) && this.vd79c381731f0a87cc117cb01fc9d3f99.length > 0 ? _.last(this.vd79c381731f0a87cc117cb01fc9d3f99) : vd9fe375ebc5a23cd63cd5eeb26ccb805.prototype.v02dac0d354b20606b64e9803ba767d64.call(this)
}, vca3e211e578730f5955642416944fc39.prototype.v8f16346c17cc04d15f549b120b9bbe47 = function (a) {
return
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype = Object.create(v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype), v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.constructor = v4b5ac2920c4dbdfe7625c792c4f2ffff, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.init = function (a, b, c, d, e) {
this.vb02de472cea8ce814a37b51bea76e9db = a, v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.init.call(this, b, c, d, e), this.v74abda044dacea3f32d735fdb4b7a0f7 = this.map.v040524d79fd2ae5ca93384aa85fd60a4(this.v4541032622e9bef1a24a2380fa9cad62(0, 0))
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vf18f6429345d5b7febceb7b2165f23a8 = function (e, nodeName) {
var cmc = this.get('contextMenuClass');
if (!_.isUndefined(cmc))
cmc != 'null' && cmc != null && eval('var menu = new ' + cmc + '(e, nodeName);');
else
var menu = new v5f14a964e4c00162b4a80b0a3839665d(e, nodeName);
menu && (menu.init(this), menu.show())
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.va39914745bbaf4dde38eb9a7e9e66e14 = function () {
return !A.vb06c3a859d6038b4515bccc5f1f891ef() || _.isUndefined(A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().vfbd9e042605fe9508daabde6c2f8ad93) ? !1 : !A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().vfbd9e042605fe9508daabde6c2f8ad93
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v4a1b83f4e1784401dd914d59acdca1dc = function (e, f) {
var a = e.split(':'), c = f.get('name');
if (a[0] == 'pr') {
var b = a.length > 2 ? parseInt(a[2]) : -1;
this.v885450442aaf99b7925483476cac29ae(a[1], c, b, _.slice(a, 3), !0)
} else if (a[0] == 'sp')
var b = a.length > 2 ? a[2] : -1, g = this.v5ca5eaf38af7022a1adf7c70505b138c([a[1]], c, undefined, undefined, b);
else if (a[0] == 'spi') {
var b = a.length > 2 ? a[2] : -1, d = new v904e08bd5378fd045017dffe63a74e5f;
this.v5ca5eaf38af7022a1adf7c70505b138c(a[1].split('&'), c, 0, d, b)
} else if (a[0] == 'dsp') {
var d = new vf08a6623d53eeea5258a0007a932951c;
this.v5ca5eaf38af7022a1adf7c70505b138c(a[1].split('&'), c, 0, d)
}
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v033a9501c84882a1021e084792c533e1 = function (a, b) {
return b == 0 || (_.each(this.v91d882cc13a1210c1a8462ac0e5bb93e, function (a) {
a.node && this.ve72b9a5c820e6cbc17cb0ad92ffe5398(a, !0)
}, this), _.each(this.v5016a24825ffee124e6fbacb46933e41, function (a) {
this.v113ee3ed22c8dc8213312ccf8af2f5f8(a, !0)
}, this)), v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v033a9501c84882a1021e084792c533e1.call(this, a)
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vdaef14ebc9318f78757cf0fb437b3253 = function (a) {
this.processModel = a
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vd4d816df61e2fa01756017294208be37 = function () {
return this.processModel
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v62610616175bfb16462c6dbe358b44a2 = function (b, c, d) {
var a = _.filter(this.v5016a24825ffee124e6fbacb46933e41, function (a) {
return a && a.v2c37f623f454a52d448a98459acecdeb(b, c, d)
});
return a
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v014a0ed4a91628fb9a62faf3c2fa7035 = function (d, m, j, e) {
var n = d.va104dfefa6670b37275d51b041f7e0bd(), k = 9999999, a = {
v07756f7a580252a085baa3cda64188c4: [],
v2112c5aecec38bde2ad494d51dde7694: null,
v97c3f3bc53c0dfda396eaf3a76cf0b0a: {
stockpile: null,
path: null,
distance: k
}
}, i = this.v0776834b0640adaef760589da7a7a8d7(n);
if (!i)
return a;
var b = this.v46b6de48a13e72727a95759f3a3c1a25;
A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().v243ebe97546b012d9e6e5e8440b585a0 && (b = this.__v747de00f88c9121e362e3efba2927fa8);
var c = i.get('name') + JSON.stringify(j), l = b[c];
if (_.isObject(l)) {
for (var f = 0; f < m.length; f++) {
var h = m[f], g = _.min(l, function (a) {
return a.stockpile.v2c37f623f454a52d448a98459acecdeb(h, e, d) ? a.distance : k
});
g.stockpile.v2c37f623f454a52d448a98459acecdeb(h, e, d) && g.distance < a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.distance && (a.v97c3f3bc53c0dfda396eaf3a76cf0b0a = g, a.v2112c5aecec38bde2ad494d51dde7694 = h)
}
if (a.v2112c5aecec38bde2ad494d51dde7694 != null)
return a
}
return v9a411e00a9bf1d4242451eac1df7fb4e(this, m, function (h) {
var b = this.v62610616175bfb16462c6dbe358b44a2(h, e, d, !1);
b.length == 0 && (b = this.v62610616175bfb16462c6dbe358b44a2(h, e, d, !0));
for (var g = 0; g < b.length; g++) {
var c = b[g];
v8150785f8e10cc9b5e5c7c53f009ddce = c.node.get('name'), j[v8150785f8e10cc9b5e5c7c53f009ddce] = !1;
var f = this.v3c9ea01b1801ba9193503a18b6a2c25a(c, i, j);
f == null ? a.v07756f7a580252a085baa3cda64188c4.v657e3b6ac90f6a38de6cb0a741ad936e(c) : f.v85f7358b5fd3abf0082918fe1449bd43() < a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.distance && (a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.distance = f.v85f7358b5fd3abf0082918fe1449bd43(), a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.path = f, a.v97c3f3bc53c0dfda396eaf3a76cf0b0a.stockpile = c, a.v2112c5aecec38bde2ad494d51dde7694 = h), delete j[v8150785f8e10cc9b5e5c7c53f009ddce]
}
}), _.isNull(a.v2112c5aecec38bde2ad494d51dde7694) ? a : (_.isUndefined(b[c]) && (b[c] = {}), b[c][a.v2112c5aecec38bde2ad494d51dde7694.v689f5106fac3c1a533ea723821591a86()] = a.v97c3f3bc53c0dfda396eaf3a76cf0b0a, a)
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v885450442aaf99b7925483476cac29ae = function (floorProcess, nodeName, dy, params, suppressJournalAndAlerts, event, ignoreCost) {
if (A.vb06c3a859d6038b4515bccc5f1f891ef() && !_.isUndefined(A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().vc2b525abb59a9681f2bf5f5a46fb4bde) && !A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().vc2b525abb59a9681f2bf5f5a46fb4bde)
return Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('That action is not enabled in this assignment.')), !1;
if (_.isString(floorProcess)) {
var vc83e194f8a9088c0911ab3a13a9bb903 = floorProcess, processData = this.vd4d816df61e2fa01756017294208be37().v91d882cc13a1210c1a8462ac0e5bb93e[vc83e194f8a9088c0911ab3a13a9bb903];
if (!_.isObject(processData))
throw 'Could not add process with id: ' + vc83e194f8a9088c0911ab3a13a9bb903;
_.isString(processData.vf498344b709544bc47259199ad07b006) ? eval('floorProcess = new ' + processData.vf498344b709544bc47259199ad07b006 + '()') : floorProcess = new vaa3654ee2359ca7a5fd7b1ea9d05a7cc, floorProcess.init(processData, dy, params)
}
if (!(ignoreCost || floorProcess.v0b94e7cf8e38b475e0d806dad42f3845(this.vb02de472cea8ce814a37b51bea76e9db)))
return !1;
var node;
if (floorProcess.floor = this, _.isUndefined(nodeName)) {
if (node = _.find(U.shuffle(this.map.nodes, A.vb06c3a859d6038b4515bccc5f1f891ef().random), function (a) {
return floorProcess.v4ce19c16001fe9f274bc08ac6fa10ba6(a)
}), !node)
return suppressJournalAndAlerts || Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('No space for {0}.', floorProcess.get('name'))), !1;
nodeName = node.get('name')
} else if (node = this.map.v040524d79fd2ae5ca93384aa85fd60a4(nodeName), !floorProcess.v4ce19c16001fe9f274bc08ac6fa10ba6(node))
return suppressJournalAndAlerts || Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('{0} process does not fit in that location.', floorProcess.get('name'))), !1;
if (floorProcess.v51437c72107c143b80de076f21e2e55c(this, node), event) {
var mLoc = floorProcess.ve015db772677033cd259803bf55d5589(), v2e0145a15b8f555e5c073a6fce578daf = floorProcess.v63cdceda7131ea881cabd0b95325fa9c();
_.forEach(v2e0145a15b8f555e5c073a6fce578daf, function (a) {
U.v90c847f353145812a35b4d545170829a(a, function (a) {
a.location.x -= mLoc.x, a.location.y -= mLoc.y
})
}), this.vcc2ef6d12a6c4eafc95eb41b4755693d(event, mLoc, v2e0145a15b8f555e5c073a6fce578daf, _.bind(this.vc8c695178beab158c9d0a779efee0e64, this, floorProcess, nodeName, suppressJournalAndAlerts))
} else
this.vc8c695178beab158c9d0a779efee0e64(floorProcess, nodeName, suppressJournalAndAlerts);
return floorProcess
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vc8c695178beab158c9d0a779efee0e64 = function (a, b, d) {
if (a.v5d2f0ab3575cd429aba24ede75f2d357(), a.get('pathLocationOffset') && _.each(a.v04b0dd7d7198b9c7a88db3da70c7c354(), function (b) {
b.vace1743ae632a9f23e876cef7207bff1(a.get('pathLocationOffset'))
}, this), this.v91d882cc13a1210c1a8462ac0e5bb93e[b] = a, a.events.v49ad792f5229d4be359d5c4aa4e18617(this, 'move', 'processMoved'), _.isFunction(a.v3aed6d256f01a7b87432911882a6daa5) && a.v3aed6d256f01a7b87432911882a6daa5() && (this.v5016a24825ffee124e6fbacb46933e41[b] = a, this.events.trigger('stockpileAdded', a)), this.v8c52e48d2249455ab4047b00df6378cd(a, b), this.v12129b226b1ece8fa7f6ff9a9d03bfc1(), this.events.trigger('processAdded', a), this.vb02de472cea8ce814a37b51bea76e9db && this.vb02de472cea8ce814a37b51bea76e9db.v69cae692ace155bf2f816d6294dc710d && d !== !0) {
var c = this.map.v040524d79fd2ae5ca93384aa85fd60a4(b);
this.vb02de472cea8ce814a37b51bea76e9db.v69cae692ace155bf2f816d6294dc710d.vc2efdb89ecdb56c0e8ae271473dd61f9(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Added {0} to {1} at location: {2}.', [
a.v362697120ef6bc3b622eb15f1c1a8b9e(),
this.v362697120ef6bc3b622eb15f1c1a8b9e(),
c.vb50fc58d21e6ed625bad8bd30fbc8bbc()
]))
}
return A.vf3351ba56d8b7e42f05b30b819a9db80().running || A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b(), a
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.ve72b9a5c820e6cbc17cb0ad92ffe5398 = function (a, e, f) {
if (A.vb06c3a859d6038b4515bccc5f1f891ef() && !_.isUndefined(A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().v5f7d185e7d0b18e1615e58c9d7a3fc17) && !A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().v5f7d185e7d0b18e1615e58c9d7a3fc17)
return Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('That action is not enabled in this assignment.')), !1;
if (this.vb02de472cea8ce814a37b51bea76e9db && this.vb02de472cea8ce814a37b51bea76e9db.v69cae692ace155bf2f816d6294dc710d && e !== !0) {
var d = U.vbacce6a42a9154e1b2ea38c9b107fbb2('Removed {0} at {1} location {2}.', [
a.v362697120ef6bc3b622eb15f1c1a8b9e(),
this.v362697120ef6bc3b622eb15f1c1a8b9e(),
a.node.vb50fc58d21e6ed625bad8bd30fbc8bbc()
]);
this.vb02de472cea8ce814a37b51bea76e9db.v69cae692ace155bf2f816d6294dc710d.vc2efdb89ecdb56c0e8ae271473dd61f9(d)
}
if (delete this.v91d882cc13a1210c1a8462ac0e5bb93e[a.node.get('name')], a.v5d2f0ab3575cd429aba24ede75f2d357(!1), pNodes = a.v04b0dd7d7198b9c7a88db3da70c7c354(), _.each(pNodes, function (a) {
a.vace1743ae632a9f23e876cef7207bff1(null)
}, this), this.vdd11ee24bb0b496c042287e9d83254a9(a), _.each(a.vb5e6350d6d0bb1d6a0c1e750acd16671(), function (a) {
a.vb51d19b488c15d9484b62c6206ea4e8f(!0)
}), _.isFunction(a.v3aed6d256f01a7b87432911882a6daa5) && (delete this.v5016a24825ffee124e6fbacb46933e41[a.node.get('name')], this.events.trigger('stockpileRemoved', a)), this.v12129b226b1ece8fa7f6ff9a9d03bfc1(), A.vf3351ba56d8b7e42f05b30b819a9db80().running || A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b(), a.v08cc014aa2082f498f4f34f9cc0cff6f(), this.events.trigger('processRemoved', a), f) {
var b = a.ve015db772677033cd259803bf55d5589(), c = a.v63cdceda7131ea881cabd0b95325fa9c();
_.forEach(c, function (a) {
U.v90c847f353145812a35b4d545170829a(a, function (a) {
a.location.x -= b.x, a.location.y -= b.y
})
}), this.v165f103303438ebac0ce602ab2dde581(b, c)
}
return !0
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v113ee3ed22c8dc8213312ccf8af2f5f8 = function (a, g, h) {
if (A.vb06c3a859d6038b4515bccc5f1f891ef() && !_.isUndefined(A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().v5f7d185e7d0b18e1615e58c9d7a3fc17) && !A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().v5f7d185e7d0b18e1615e58c9d7a3fc17) {
Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('That action is not enabled in this assignment.'));
return
}
var d = a.node.get('name');
this.vb02de472cea8ce814a37b51bea76e9db && this.vb02de472cea8ce814a37b51bea76e9db.v69cae692ace155bf2f816d6294dc710d && g !== !0 && this.vb02de472cea8ce814a37b51bea76e9db.v69cae692ace155bf2f816d6294dc710d.vc2efdb89ecdb56c0e8ae271473dd61f9(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Removed {0} for {1} from {2} at location: {3}.', [
a.vd6ff363edca8da5dabce8e1ef8851b85(),
a.v362697120ef6bc3b622eb15f1c1a8b9e(),
this.v362697120ef6bc3b622eb15f1c1a8b9e(),
this.v4017fe62832967102d2cd8918d5e07b1(d).vb50fc58d21e6ed625bad8bd30fbc8bbc()
])), delete this.v5016a24825ffee124e6fbacb46933e41[d], a.node.vace1743ae632a9f23e876cef7207bff1(null), a.v5d2f0ab3575cd429aba24ede75f2d357(!1), a.v0772724ae4e897421c9021a4eb421456 = !0, this.vdd11ee24bb0b496c042287e9d83254a9(a);
var b = a.v0cce122862de131c3015d708c507b474;
if (b.quantity = a.vb8fcc44f955f43b26c0b823a57be5f8f(), this.v59048620b41c1916b149a651f3cd4656(b), _.isFunction(this.vb02de472cea8ce814a37b51bea76e9db.v344198ac72c79b60f918d9840b89e351))
this.vb02de472cea8ce814a37b51bea76e9db.v344198ac72c79b60f918d9840b89e351(b.id, b.quantity);
else {
var e = this.vd4d816df61e2fa01756017294208be37().vf5752ecac5722bf823d2ba46669b8e06(b.v689f5106fac3c1a533ea723821591a86()) * b.quantity;
e > 0 && this.vb02de472cea8ce814a37b51bea76e9db.vcb519d3d4ef0f894468aab43b30f54f1 && this.vb02de472cea8ce814a37b51bea76e9db.vcb519d3d4ef0f894468aab43b30f54f1.vbc3f437d147654d5b4047440bac28533('Waste', e, b.get('name'))
}
if (this.v12129b226b1ece8fa7f6ff9a9d03bfc1(a), h) {
var c = a.v25196ed13cc6ca31bcfa62d3e731b111(a.get('floorStack')), f = a.v63cdceda7131ea881cabd0b95325fa9c();
_.forEach(f, function (a) {
U.v90c847f353145812a35b4d545170829a(a, function (a) {
a.location.x -= c.x, a.location.y -= c.y
})
}), this.v165f103303438ebac0ce602ab2dde581(c, f)
}
A.vf3351ba56d8b7e42f05b30b819a9db80().running || A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b(), this.events.trigger('stockpileRemoved', a)
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v59048620b41c1916b149a651f3cd4656 = function (a, c) {
if (a.quantity == 0)
return;
if (this.v74abda044dacea3f32d735fdb4b7a0f7)
var b = _.sortBy(this.v5016a24825ffee124e6fbacb46933e41, function (a) {
return U.va8b5009a1e24fd5735deb7089099e7fc(a.node.va104dfefa6670b37275d51b041f7e0bd(), this.v74abda044dacea3f32d735fdb4b7a0f7.va104dfefa6670b37275d51b041f7e0bd())
}, this);
else
var b = this.v5016a24825ffee124e6fbacb46933e41;
_.each(b, function (d) {
if (d.v3aed6d256f01a7b87432911882a6daa5(a, c)) {
var b = d.v7c607f7089d018113d3b4859ca67f414(a, c);
_.isNumber(b) ? a.v4a2d8c0ba2ab79243ef2120f31b89b31(-b) : a.v4a2d8c0ba2ab79243ef2120f31b89b31(-b.quantity)
}
})
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v28bf92e843c11e3cf3ae324bbad66e98 = function (a) {
_.each(this.v5016a24825ffee124e6fbacb46933e41, function (b) {
if (a.v689f5106fac3c1a533ea723821591a86() == b.vf63005be1fd5ac186dd59298448d25ae() && b.vb8fcc44f955f43b26c0b823a57be5f8f() > 0) {
var c = Math.min(b.vb8fcc44f955f43b26c0b823a57be5f8f(), a.quantity);
b.v5930b0d69e89ee8338f95d064cc975a4(b.vb8fcc44f955f43b26c0b823a57be5f8f() - c), a.v4a2d8c0ba2ab79243ef2120f31b89b31(-c)
}
})
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.processMoved = function (b, c, a, f, g) {
if (b.get('name') != c.get('name')) {
var d = this.v91d882cc13a1210c1a8462ac0e5bb93e[b.get('name')];
if (!d)
debugger;
this.v91d882cc13a1210c1a8462ac0e5bb93e[c.get('name')] = d, delete this.v91d882cc13a1210c1a8462ac0e5bb93e[b.get('name')];
var d = this.v5016a24825ffee124e6fbacb46933e41[b.get('name')];
d && (this.v5016a24825ffee124e6fbacb46933e41[c.get('name')] = d, delete this.v5016a24825ffee124e6fbacb46933e41[b.get('name')])
}
a.dy = f, a.node = b, a.v5d2f0ab3575cd429aba24ede75f2d357(!1);
var e = a.v04b0dd7d7198b9c7a88db3da70c7c354(b);
_.each(e, function (a) {
a.vace1743ae632a9f23e876cef7207bff1(null)
}, this), this.v12129b226b1ece8fa7f6ff9a9d03bfc1(a), a.dy = g, a.node = c, a.v5d2f0ab3575cd429aba24ede75f2d357();
var e = a.v04b0dd7d7198b9c7a88db3da70c7c354(c);
_.each(e, function (c) {
c.blocked = a.vbc7398e5a6e3c83f57205149871b22f0(c), c.vace1743ae632a9f23e876cef7207bff1(b.pathLocationOffset)
}, this), this.v12129b226b1ece8fa7f6ff9a9d03bfc1(a), this.vb02de472cea8ce814a37b51bea76e9db && this.vb02de472cea8ce814a37b51bea76e9db.v69cae692ace155bf2f816d6294dc710d && b != c && this.vb02de472cea8ce814a37b51bea76e9db.v69cae692ace155bf2f816d6294dc710d.vc2efdb89ecdb56c0e8ae271473dd61f9(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Moved {0} from {3} location: {1} to {2}.', [
a.v362697120ef6bc3b622eb15f1c1a8b9e(),
b.vb50fc58d21e6ed625bad8bd30fbc8bbc(),
c.vb50fc58d21e6ed625bad8bd30fbc8bbc(),
this.v362697120ef6bc3b622eb15f1c1a8b9e()
]))
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v5ca5eaf38af7022a1adf7c70505b138c = function (componentNames, nodeName, count, stockpileObj, dy, suppressJournalAndAlerts, event, ignoreCost) {
if (A.vb06c3a859d6038b4515bccc5f1f891ef() && !_.isUndefined(A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().v16e2e3168c8da5f520897f054e4dc159) && !A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().v16e2e3168c8da5f520897f054e4dc159) {
Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('That action is not enabled in this assignment.'));
return
}
_.isUndefined(stockpileObj) && (stockpileObj = new v11ae23f0d8d2c70b8f28353b8ac02a01);
var v8f3c681737f9f11ab3dc32c9425967e8 = [];
_.each(componentNames, function (v7f2370cc1a3df2aa05556b4fae3125f8) {
var c = this.vd4d816df61e2fa01756017294208be37().ve179db5c14980e0deda32a9dfdf019a0(v7f2370cc1a3df2aa05556b4fae3125f8);
_.isString(c.get('stockpileClass')) && eval('stockpileObj = new ' + c.get('stockpileClass') + '()'), v8f3c681737f9f11ab3dc32c9425967e8.v657e3b6ac90f6a38de6cb0a741ad936e(c)
}, this);
var node;
if (_.isUndefined(nodeName)) {
if (stockpileObj.floor = this, node = _.find(U.shuffle(this.map.nodes, A.vb06c3a859d6038b4515bccc5f1f891ef().random), function (a) {
return stockpileObj.v4ce19c16001fe9f274bc08ac6fa10ba6(a)
}), !node)
return suppressJournalAndAlerts || Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('No space for {0}.', v8f3c681737f9f11ab3dc32c9425967e8[0].get('name'))), !1;
nodeName = node.get('name')
} else
node = this.map.v040524d79fd2ae5ca93384aa85fd60a4(nodeName);
if (stockpileObj.init(v8f3c681737f9f11ab3dc32c9425967e8, node, count, this, dy), !(ignoreCost || stockpileObj.v0b94e7cf8e38b475e0d806dad42f3845(this.vb02de472cea8ce814a37b51bea76e9db)))
return;
if (event) {
var pileLoc = stockpileObj.v25196ed13cc6ca31bcfa62d3e731b111(stockpileObj.get('floorStack')), v2e0145a15b8f555e5c073a6fce578daf = stockpileObj.v63cdceda7131ea881cabd0b95325fa9c('floorStack');
_.forEach(v2e0145a15b8f555e5c073a6fce578daf, function (a) {
U.v90c847f353145812a35b4d545170829a(a, function (a) {
a.location.x -= pileLoc.x, a.location.y -= pileLoc.y
})
}), this.vcc2ef6d12a6c4eafc95eb41b4755693d(event, pileLoc, v2e0145a15b8f555e5c073a6fce578daf, _.bind(this.vb28ef5dce328f20dfbbf387bc935f976, this, stockpileObj, nodeName, suppressJournalAndAlerts))
} else
this.vb28ef5dce328f20dfbbf387bc935f976(stockpileObj, nodeName, suppressJournalAndAlerts);
return stockpileObj
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vb28ef5dce328f20dfbbf387bc935f976 = function (a, b, c) {
return this.v5016a24825ffee124e6fbacb46933e41[b] = a, a.events.v49ad792f5229d4be359d5c4aa4e18617(this, 'move', 'stockpileMoved'), this.v8c52e48d2249455ab4047b00df6378cd(a, b), a.v5d2f0ab3575cd429aba24ede75f2d357(), this.v12129b226b1ece8fa7f6ff9a9d03bfc1(a), this.events.trigger('stockpileAdded', a), this.vb02de472cea8ce814a37b51bea76e9db && this.vb02de472cea8ce814a37b51bea76e9db.v69cae692ace155bf2f816d6294dc710d && c !== !0 && (node = this.map.v040524d79fd2ae5ca93384aa85fd60a4(b), this.vb02de472cea8ce814a37b51bea76e9db.v69cae692ace155bf2f816d6294dc710d.vc2efdb89ecdb56c0e8ae271473dd61f9(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Added {0} for {1} to {2} at location: {3}.', [
a.vd6ff363edca8da5dabce8e1ef8851b85(),
a.v362697120ef6bc3b622eb15f1c1a8b9e(),
this.v362697120ef6bc3b622eb15f1c1a8b9e(),
node.vb50fc58d21e6ed625bad8bd30fbc8bbc()
]))), a
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.stockpileMoved = function (b, c) {
var a = this.v5016a24825ffee124e6fbacb46933e41[b.get('name')];
if (!a) {
debugger;
return
}
this.v5016a24825ffee124e6fbacb46933e41[c.get('name')] = a, delete this.v5016a24825ffee124e6fbacb46933e41[b.get('name')];
var a = this.v5016a24825ffee124e6fbacb46933e41[c.get('name')];
a.v5d2f0ab3575cd429aba24ede75f2d357(!1, b), a.v5d2f0ab3575cd429aba24ede75f2d357(undefined, c), c.vace1743ae632a9f23e876cef7207bff1(b.pathLocationOffset), b.vace1743ae632a9f23e876cef7207bff1(null), this.v12129b226b1ece8fa7f6ff9a9d03bfc1(), this.vb02de472cea8ce814a37b51bea76e9db && this.vb02de472cea8ce814a37b51bea76e9db.v69cae692ace155bf2f816d6294dc710d && this.vb02de472cea8ce814a37b51bea76e9db.v69cae692ace155bf2f816d6294dc710d.vc2efdb89ecdb56c0e8ae271473dd61f9(U.vbacce6a42a9154e1b2ea38c9b107fbb2('Moved {0} from {3} location: {1} to {2}.', [
a.v362697120ef6bc3b622eb15f1c1a8b9e(),
b.vb50fc58d21e6ed625bad8bd30fbc8bbc(),
c.vb50fc58d21e6ed625bad8bd30fbc8bbc(),
this.v362697120ef6bc3b622eb15f1c1a8b9e()
]))
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.va924f1045e993c66a2dff7e796ba1931 = function (c, b) {
if (b == undefined)
var a = this.vbeca473b6081aca664f2618b3983f675(c);
else if (_.isString(b))
var a = this.vc1792baba15d2339c86a18fb66a1e7aa(b);
else if (_.isObject(b))
var a = b;
_.isObject(a) && c.ve9305d578e56d72f5312dd134e1af564(a), this.v6563a53e7794112bfcbc9351b914d524(c), this.vb02de472cea8ce814a37b51bea76e9db.v983203ab8b94f456c0a8850b85a2cff6 && c.v4a241fcfc7ba18839b04a4a304cb515b()
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vdf3053bea62b74061768f769e44462ad = function (a) {
return process = _.find(this.v91d882cc13a1210c1a8462ac0e5bb93e, function (b) {
return _.contains(b.v9bfb605e9e535db1c5e1273e80914d30, a)
}), process || (process = a.process), process && process.vdf3053bea62b74061768f769e44462ad(a), a.vb51d19b488c15d9484b62c6206ea4e8f(!1), this.v46c9cc408f9f431abf796c4aad9bea22(a), process
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v97d1839ee2ca61d804cb7e8a6404329b = function () {
var a = _.clone(this.v68e47a15b509f0f991ca2c330301190a);
_.each(a, function (a) {
this.vdf3053bea62b74061768f769e44462ad(a)
}, this)
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vbeca473b6081aca664f2618b3983f675 = function (c) {
var a = _.filter(this.v91d882cc13a1210c1a8462ac0e5bb93e, function (a) {
return a.vace71abf9d5901df5eecbb5bd062e24d(c)
}, this);
a.length > 0 && (vc83e194f8a9088c0911ab3a13a9bb903 = a[0].id);
var b = this.vc1792baba15d2339c86a18fb66a1e7aa(vc83e194f8a9088c0911ab3a13a9bb903);
return b
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vfabcce9a946f82852878d38b91064159 = function (d, b) {
var a = _.filter(this.v91d882cc13a1210c1a8462ac0e5bb93e, function (a) {
return a.id != d ? !1 : b ? b(a) : !0
});
if (a.length == 0)
return undefined;
var c = _.min(a, function (a) {
return a.v663f282ce3c0fa7668713b3a24b959f4()
});
return c
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vc1792baba15d2339c86a18fb66a1e7aa = function (b) {
var a = _.find(this.v91d882cc13a1210c1a8462ac0e5bb93e, function (a) {
if (a.id != b)
return !1;
var c = a.v663f282ce3c0fa7668713b3a24b959f4();
return c < a.v1b95e6414a687628443a8eabd7a50dcd()
});
return a ? a : this.vfabcce9a946f82852878d38b91064159(b)
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v67298440e677cf569a410b16b0e67dcd = function (f) {
var c = 9999999, d = null;
for (var a = 0; a < this.v91d882cc13a1210c1a8462ac0e5bb93e.length; a++) {
var b = this.v91d882cc13a1210c1a8462ac0e5bb93e[a];
if (b.id != f)
return;
var e = b.v663f282ce3c0fa7668713b3a24b959f4();
e < c && (c = e, d = b)
}
return d
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v0c46b98162bc937ec5149fd029d7b7ae = function () {
var e = this.map.v040524d79fd2ae5ca93384aa85fd60a4(this.v4541032622e9bef1a24a2380fa9cad62(this.get('gridSize').x - 1, 0)), f = this.map.v040524d79fd2ae5ca93384aa85fd60a4(this.v4541032622e9bef1a24a2380fa9cad62(this.get('gridSize').x - 1, this.get('gridSize').y - 1)), b = e.va104dfefa6670b37275d51b041f7e0bd(), a = this.get('nodeSpread');
b.x += a.x / 3, b.y += a.x / 3;
var c = f.va104dfefa6670b37275d51b041f7e0bd();
c.x += a.x / 3, c.y += a.x / 3;
var d = new Point(c.x, c.y);
d.x += a.x / 3, d.y += a.x / 3, returnPathEnd = new Point(b.x, b.y), returnPathEnd.x += a.x / 3, returnPathEnd.y += a.x / 3;
var g = [
b,
c,
d,
returnPathEnd,
b
];
return g
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v12129b226b1ece8fa7f6ff9a9d03bfc1 = function (a) {
this.v46b6de48a13e72727a95759f3a3c1a25 = [], this.__v747de00f88c9121e362e3efba2927fa8 = [], (_.isUndefined(a) || a.vbc7398e5a6e3c83f57205149871b22f0() || a.v0122ac692b08ce3d18501dc97a8c6d4a(this).length > 0) && v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v12129b226b1ece8fa7f6ff9a9d03bfc1.call(this, a)
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v0c6150ccbf968b4b9f0b7eb6b479debf = function () {
return !1
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v4e25d356381ec458fade693d741eb742 = function (b) {
belowCapacity = {}, _.each(b, function (a) {
belowCapacity[a.id] = 0
});
var a = _.keys(belowCapacity);
return _.each(this.v5016a24825ffee124e6fbacb46933e41, function (b) {
b && b.v0cce122862de131c3015d708c507b474 && _.contains(a, b.v0cce122862de131c3015d708c507b474.v689f5106fac3c1a533ea723821591a86()) && (belowCapacity[b.v0cce122862de131c3015d708c507b474.v689f5106fac3c1a533ea723821591a86()] += b.maxAllowed() - b.vb8fcc44f955f43b26c0b823a57be5f8f())
}), belowCapacity
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v1a5957e76d9d9a22bc73dfa3303314c5 = function (b) {
var a = _.pluck(b, 'id');
return this.vcc89659864a17c6f23f5209e9754bb0e(a)
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vcc89659864a17c6f23f5209e9754bb0e = function (a) {
return counts = {}, _.each(a, function (a) {
counts[a] = 0
}), _.each(this.v5016a24825ffee124e6fbacb46933e41, function (b) {
b && b.v0cce122862de131c3015d708c507b474 && _.contains(a, b.v0cce122862de131c3015d708c507b474.v689f5106fac3c1a533ea723821591a86()) && (counts[b.v0cce122862de131c3015d708c507b474.v689f5106fac3c1a533ea723821591a86()] += b.vb8fcc44f955f43b26c0b823a57be5f8f())
}), counts
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vd9edb0cffa7ee93da01f03bdc7411deb = function () {
return _.filter(this.v68e47a15b509f0f991ca2c330301190a, function (a) {
return a.process != null
})
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v4a241fcfc7ba18839b04a4a304cb515b = function () {
_.each(this.vd9edb0cffa7ee93da01f03bdc7411deb(), function (a) {
a.v4a241fcfc7ba18839b04a4a304cb515b()
})
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vd9411b9bf2c920e345c88ddec3aa192b = function () {
_.each(this.vd9edb0cffa7ee93da01f03bdc7411deb(), function (a) {
a.vd9411b9bf2c920e345c88ddec3aa192b()
})
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vdb4029be5b914fd42b5e13188edba48a = function () {
return waterCoolers = _.where(this.v91d882cc13a1210c1a8462ac0e5bb93e, { id: 'idleProcess' }), waterCoolers.length > 0 ? waterCoolers[0].node : null
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v46c9cc408f9f431abf796c4aad9bea22 = function (a) {
this.v68e47a15b509f0f991ca2c330301190a.v6658d41901465458c34d0790e8086649(a), this.vdd11ee24bb0b496c042287e9d83254a9.call(this, a)
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v6563a53e7794112bfcbc9351b914d524 = function (a) {
this.v68e47a15b509f0f991ca2c330301190a.v657e3b6ac90f6a38de6cb0a741ad936e(a), this.v8c52e48d2249455ab4047b00df6378cd.call(this, a)
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vcc2ef6d12a6c4eafc95eb41b4755693d = function (a, d, e, f) {
var b = new Point(a.pageX, a.pageY), c = U.v6f0fe872ec7bca2968508c8573c46737(d);
this.v90f36218e884134c10a2b5d9bb9de3d0(b, c, e, f)
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v165f103303438ebac0ce602ab2dde581 = function (b, c, d) {
Math.random() > .5 ? endLoc = new Point(Math.random() > .5 ? 0 : $('#sim-view-container').width(), Math.random() * $('#sim-view-container').height()) : endLoc = new Point(Math.random() * $('#sim-view-container').width(), Math.random() > .5 ? 0 : $('#sim-view-container').height());
var a = U.v6f0fe872ec7bca2968508c8573c46737(b);
this.v90f36218e884134c10a2b5d9bb9de3d0(a, endLoc, c, d)
}, v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v90f36218e884134c10a2b5d9bb9de3d0 = function (g, e, f, h) {
var a = f[0].v61e1c7be274590e1c927aba3b8fc63b3();
_.forEach(_.rest(f), function (c) {
var b = c.v61e1c7be274590e1c927aba3b8fc63b3();
b && (a.left = _.isUndefined(a.left) ? b.left : _.isUndefined(b.left) ? a.left : Math.min(b.left, a.left), a.right = _.isUndefined(a.right) ? b.right : _.isUndefined(b.right) ? a.right : Math.max(b.right, a.right), a.top = _.isUndefined(a.top) ? b.top : _.isUndefined(b.top) ? a.top : Math.min(b.top, a.top), a.bottom = _.isUndefined(a.bottom) ? b.bottom : _.isUndefined(b.bottom) ? a.bottom : Math.max(b.bottom, a.bottom))
});
var c = A.vf3351ba56d8b7e42f05b30b819a9db80().v65c637ea0baf5919932c148aeb4cc9f9[A.vf3351ba56d8b7e42f05b30b819a9db80().v8eb1fe4496c57b0b4b8e014fcb5be9f3];
_.forEach(f, function (b) {
U.v90c847f353145812a35b4d545170829a(b, function (b) {
b.location.x += a.right - a.left, b.location.y += a.bottom - a.top
})
}), e.x -= c * (a.right - a.left), e.y -= c * (a.bottom - a.top);
var b = $('<canvas></canvas>');
b.appendTo('body'), b.attr('width', 2 * c * (a.right - a.left)), b.attr('height', 2 * c * (a.bottom - a.top)), b.css('position', 'absolute'), b.css('left', g.x), b.css('top', g.y), b.css('z-index', 99999);
var d = b[0].getContext('2d');
d.save(), d.scale(c, c), _.forEach(f, function (a) {
a.draw(d)
}), d.restore();
var i = this;
b.animate({
left: e.x + 'px',
top: e.y + 'px'
}, 700, 'swing', function () {
$(this).remove(), h && h.call(), i.__v71790054a2a40b15200f60aab3038748.trigger('animationCompleted')
})
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.constructor = ve01cf3aa195c1e646452b8bceb756fd0, ve01cf3aa195c1e646452b8bceb756fd0.v9325f3f8f9dbeb6d5705abf190ac87bc = function (a) {
return vbe7993a2ce2422b8674dc4b1008561b0.processModel.v9325f3f8f9dbeb6d5705abf190ac87bc(a)
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.v9325f3f8f9dbeb6d5705abf190ac87bc = function (a) {
return _.isObject(this.v8f3c681737f9f11ab3dc32c9425967e8[a]) ? this.v8f3c681737f9f11ab3dc32c9425967e8[a].name : _.isObject(this.v91d882cc13a1210c1a8462ac0e5bb93e[a]) ? this.v91d882cc13a1210c1a8462ac0e5bb93e[a].name : _.isObject(this.v96f7bb61dc703eb3f521f6b09d41dfa6[a]) ? this.v96f7bb61dc703eb3f521f6b09d41dfa6[a].name : void 0
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.init = function (a) {
_.assign(this, a), this.vc4a5d86cc956dda6a7251fffab1ad612(this.v8f3c681737f9f11ab3dc32c9425967e8), this.vc4a5d86cc956dda6a7251fffab1ad612(this.v91d882cc13a1210c1a8462ac0e5bb93e), _.each(this.v8f3c681737f9f11ab3dc32c9425967e8, function (a) {
_.isUndefined(a.v5352b8566ac308eb5321193ff215a585) && (a.v5352b8566ac308eb5321193ff215a585 = 0), a.floorStack || (a.floorStack = {}), a.floorStack.vaf0aee3a08d6f443e188c38464a9045a || (a.floorStack.vaf0aee3a08d6f443e188c38464a9045a = {
X: 1,
Y: 1,
Z: 1
}), a.floorStack.v3f79e5a09c86823c63d1dd4c45a2c380 || (a.floorStack.v3f79e5a09c86823c63d1dd4c45a2c380 = {
X: 0,
Y: 0,
Z: 0
}), a.floorStack.vba8cb9348fd5726d9b54bfb932e15191 || (a.floorStack.vba8cb9348fd5726d9b54bfb932e15191 = 'ZXY'), a.isInput = !1, a.v07d5a91b31ad63f2a8946779f9a35676 = !1, a.v7cd50f52105f48b232ec86abe9462ae3 = 0, a.value = 0
}), _.each(this.v91d882cc13a1210c1a8462ac0e5bb93e, function (a) {
a.idlePose || (a.idlePose = 'Stand');
var d = 0, c = [];
a.processSteps ? _.each(a.processSteps, function (a) {
a.inputs && c.v65232cbf984e4899d32f63ff906d72ec(a.inputs)
}) : c = a.inputs, _.each(c, function (b) {
var a = this.v8f3c681737f9f11ab3dc32c9425967e8[b.id];
a.isInput = !0, a.value = Math.max(a.v5352b8566ac308eb5321193ff215a585, a.value), a.v5352b8566ac308eb5321193ff215a585 > 0 && (a.v7cd50f52105f48b232ec86abe9462ae3 = a.v5352b8566ac308eb5321193ff215a585 * a.v8a6b11b89244edcdcfb95ddc38f77cf9), d += a.value * b.quantity
}, this);
var b = [];
a.processSteps ? _.each(a.processSteps, function (a) {
a.outputs && b.v65232cbf984e4899d32f63ff906d72ec(a.outputs)
}) : b = a.outputs;
var e = _.reduce(b, function (a, b) {
return a + b.quantity
}, 0);
_.each(b, function (a) {
this.v8f3c681737f9f11ab3dc32c9425967e8[a.id].v07d5a91b31ad63f2a8946779f9a35676 = !0, this.v8f3c681737f9f11ab3dc32c9425967e8[a.id].value = d / e
}, this)
}, this), this.vdb0b783d2d3abf3cf8bf12760cba6c8b = _.filter(this.v8f3c681737f9f11ab3dc32c9425967e8, function (a) {
return a.v7cd50f52105f48b232ec86abe9462ae3 > 0
})
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.vc4a5d86cc956dda6a7251fffab1ad612 = function (a) {
var b = _.pick(a, function (b, a) {
return U.startsWith(a, '#include')
});
_.each(b, function (b) {
_.merge(a, this.includes[b], function (a, b) {
return _.isUndefined(a) ? void 0 : a
})
}, this), a = _.omit(a, _.keys(b)), _.forIn(a, function (a, b, c) {
_.isObject(a) && this.vc4a5d86cc956dda6a7251fffab1ad612(a)
}, this)
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.v18e7164f0b633c371c0a3e5477cfec81 = function (b, c) {
var a = _.find(this.v91d882cc13a1210c1a8462ac0e5bb93e, function (a) {
return _.any(a.outputs, function (a) {
return a.id == b
})
});
upstreamOutput = _.find(a.outputs, function (a) {
return a.id == b
}), _.each(a.inputs, function (b) {
var a = this.v8f3c681737f9f11ab3dc32c9425967e8[b.id];
a.v7cd50f52105f48b232ec86abe9462ae3 *= c / upstreamOutput.quantity
}, this)
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.v8e8df88c66b14ac612e16ea974a73c66 = function () {
return this.v8f3c681737f9f11ab3dc32c9425967e8[this.product]
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.v656590035af330f8760f5bedfcfdf0b5 = function () {
return this.v8f3c681737f9f11ab3dc32c9425967e8[this.product].name
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.v3977f80ea4b724d5315309c686665b77 = function () {
var a = this.v656590035af330f8760f5bedfcfdf0b5();
return a += U.endsWith(a, 's') ? '' : 's', a
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.v45724dc441392e95f9946a2888c42274 = function () {
return _.sum(this.v5fb4c14f2ffc20248ff6757b3f14f00f(), function (a) {
return a.v7cd50f52105f48b232ec86abe9462ae3
})
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.v224aad5e51c01a498dc770bb283df0c5 = function (b) {
var a = this.v8f3c681737f9f11ab3dc32c9425967e8[b];
return a.v7f2370cc1a3df2aa05556b4fae3125f8 ? a.v7f2370cc1a3df2aa05556b4fae3125f8 : a.name
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.v4c1bc5c30aca4c3876782d471a8bbc96 = function (a) {
return _.map(a, _.bind(function (a) {
return this.v224aad5e51c01a498dc770bb283df0c5(a.v689f5106fac3c1a533ea723821591a86())
}, this))
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.v5fb4c14f2ffc20248ff6757b3f14f00f = function () {
return this.vdb0b783d2d3abf3cf8bf12760cba6c8b
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.vf5752ecac5722bf823d2ba46669b8e06 = function (a) {
return _.isObject(this.v8f3c681737f9f11ab3dc32c9425967e8[a]) && _.isNumber(this.v8f3c681737f9f11ab3dc32c9425967e8[a].v5352b8566ac308eb5321193ff215a585) ? this.v8f3c681737f9f11ab3dc32c9425967e8[a].v5352b8566ac308eb5321193ff215a585 : _.isObject(this.v8f3c681737f9f11ab3dc32c9425967e8[a]) && _.isNumber(this.v8f3c681737f9f11ab3dc32c9425967e8[a].value) ? this.v8f3c681737f9f11ab3dc32c9425967e8[a].value : 0
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.va66df45833d478ef378ed569450a2608 = function (b) {
var a = this.v91d882cc13a1210c1a8462ac0e5bb93e[b];
return a.v8da03c84c9a6c4659ffabb016e93f1e2
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.v9a984f5904d614ce010744ad37b61f96 = function (c) {
var a = this.v91d882cc13a1210c1a8462ac0e5bb93e[c], b = 0;
return a.processSteps ? b = _.sum(a.processSteps, 'duration') : b = a.duration, U.vbacce6a42a9154e1b2ea38c9b107fbb2('{0} mins.', Math.round(b / 60))
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.ve179db5c14980e0deda32a9dfdf019a0 = function (v512c098d0a689345fa0d4b06a9787e8c, quantity, itemId, imageAlias) {
if (this.v8f3c681737f9f11ab3dc32c9425967e8[v512c098d0a689345fa0d4b06a9787e8c].vffadfbbe1b3a1a244004a78231122dd7)
eval('var c=new ' + this.v8f3c681737f9f11ab3dc32c9425967e8[v512c098d0a689345fa0d4b06a9787e8c].vffadfbbe1b3a1a244004a78231122dd7 + '();');
else
var c = new v882dbe972e6ff2620ccf6173b0cc3500;
return _.isUndefined(quantity) && (quantity = 0), c.init(this.v8f3c681737f9f11ab3dc32c9425967e8[v512c098d0a689345fa0d4b06a9787e8c], quantity, itemId, imageAlias), c
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.v858b1c5740e4fdc477c496eea907bccf = function (b) {
var a = this.ve179db5c14980e0deda32a9dfdf019a0(b.id);
return _.assign(a, b), a
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.vc7d194d0ac6e222d8062acd6a5fe52cd = function (v4f240c4a6f3a19456a2778f9aa66b58b, container, empInstance) {
var jp = this.v96f7bb61dc703eb3f521f6b09d41dfa6[v4f240c4a6f3a19456a2778f9aa66b58b];
if (eval('var w = new ' + jp.v334679b0be6bbb6d679f12d1ec54d800 + '()'), empInstance.init(jp, jp.marketWage), w.init(empInstance), jp.vb9c21cc6078079f5a2a35c8173654141) {
var fp = container.vc1792baba15d2339c86a18fb66a1e7aa(jp.vb9c21cc6078079f5a2a35c8173654141);
fp.floor.va924f1045e993c66a2dff7e796ba1931(w, jp.vb9c21cc6078079f5a2a35c8173654141), w.v4a241fcfc7ba18839b04a4a304cb515b()
}
return w
}, ve01cf3aa195c1e646452b8bceb756fd0.prototype.vf0d5d10f878c6353392b2bce0ecadd41 = function (b) {
if (!this.__vae4b3b5436598ae1ed8c3adb12320d39) {
var a = {};
_.forOwn(this, function (c, b) {
_.forOwn(c, function (c, d) {
c.category && _.forEach(c.category, function (e) {
a[e] || (a[e] = {}), a[e][b] || (a[e][b] = {}), a[e][b][d] = _.omit(c, 'category')
})
})
}), _.forOwn(this, function (c, b) {
_.forOwn(c, function (c, d) {
c.category || _.forEach(_.keys(a), function (e) {
a[e][b] || (a[e][b] = {}), a[e][b][d] = c
})
})
}), _.forOwn(a, function (c, d) {
var b = new ve01cf3aa195c1e646452b8bceb756fd0;
b.init(c), a[d] = b
}), this.__vae4b3b5436598ae1ed8c3adb12320d39 = a
}
return this.__vae4b3b5436598ae1ed8c3adb12320d39[b]
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype = Object.create(v27eb52255b219d669bc8df98aaa52940.prototype), v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.constructor = v11ae23f0d8d2c70b8f28353b8ac02a01, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.init = function (c, d, a, e, f) {
var b = c[0];
v27eb52255b219d669bc8df98aaa52940.prototype.init.call(this, b, d, a, e, f), this.v0cce122862de131c3015d708c507b474 = b, _.isUndefined(a) && (a = b.get('initCount')), _.isNumber(a) ? this.v5930b0d69e89ee8338f95d064cc975a4(a) : a == 'maxAllowed' ? this.v5930b0d69e89ee8338f95d064cc975a4(this.maxAllowed()) : this.v5930b0d69e89ee8338f95d064cc975a4(0), this.events.v49ad792f5229d4be359d5c4aa4e18617(this, 'moved', 'onStockpileMoved')
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.vf63005be1fd5ac186dd59298448d25ae = function () {
return this.v0cce122862de131c3015d708c507b474.v689f5106fac3c1a533ea723821591a86()
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.v483011b294fe19594d57f6d57837112e = function () {
return [this.v0cce122862de131c3015d708c507b474.v689f5106fac3c1a533ea723821591a86()]
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.v71212a52379b6523929279a1941f4307 = function (a) {
if (a != this.v0cce122862de131c3015d708c507b474.v689f5106fac3c1a533ea723821591a86()) {
var c = this.v0cce122862de131c3015d708c507b474.v689f5106fac3c1a533ea723821591a86(), b = vbe7993a2ce2422b8674dc4b1008561b0.processModel.ve179db5c14980e0deda32a9dfdf019a0(a);
v27eb52255b219d669bc8df98aaa52940.prototype.init.call(this, b, this.node, this.v2709a24449d9a4bf61d7ad0074b39acf, this.floor), this.v0cce122862de131c3015d708c507b474 = b, this.floor.events.trigger('stockpileComponentChanged', this, c, a)
}
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.va9cedc721d38dd0cffc8dab1d2e5b8a9 = function () {
return 'sp:' + this.v0cce122862de131c3015d708c507b474.get('id') + ':' + this.dy
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.vd6ff363edca8da5dabce8e1ef8851b85 = function () {
return 'stockpile'
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.v362697120ef6bc3b622eb15f1c1a8b9e = function () {
return this.v0cce122862de131c3015d708c507b474.get('name')
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.vf18f6429345d5b7febceb7b2165f23a8 = function (e) {
var cmc = this.v0cce122862de131c3015d708c507b474.get('contextMenuClass');
if (!_.isUndefined(cmc))
if (cmc != 'null' && cmc != null) {
var v737eaa6afb8f912ddc9d1a11e32828b3 = this.node.get('name');
eval('var cm = new ' + cmc + '(e, nodeLabel);')
} else {
this.floor.vf18f6429345d5b7febceb7b2165f23a8(e);
return
}
else
var cm = new frmContextMenu(e);
return cm.init(this), cm.show(), cm.v8d57dda12f8951da88f3c6827658f646(this.v362697120ef6bc3b622eb15f1c1a8b9e()), this.v6ecbf7e68c80854fcec3f646c90a55fc(cm), cm
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.v3aed6d256f01a7b87432911882a6daa5 = function (a) {
return this.v2c37f623f454a52d448a98459acecdeb(a, !1)
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.v2c37f623f454a52d448a98459acecdeb = function (a, b, c) {
if (this.v0772724ae4e897421c9021a4eb421456)
return !1;
if (this.v0cce122862de131c3015d708c507b474.v689f5106fac3c1a533ea723821591a86() == a.v689f5106fac3c1a533ea723821591a86())
if (b && this.vb8fcc44f955f43b26c0b823a57be5f8f() > 0)
return !0;
else if (!b && this.vb8fcc44f955f43b26c0b823a57be5f8f() < this.maxAllowed())
return !0;
else if (a.vac9f76090bb71c8d0e9a4b115afe200e() == 0)
return !0;
return !1
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.v19e410305b10676c935c7d5c15109280 = function (b) {
var a = 0;
return this.v2c37f623f454a52d448a98459acecdeb(b, !0) && (a = Math.min(this.vb8fcc44f955f43b26c0b823a57be5f8f(), b.vac9f76090bb71c8d0e9a4b115afe200e()), b.v7bb3cc1a990885e800b51a52aec7a8f9(), this.vbf5df9d7e0a47bc92c1cdcaabc673213(-a)), a
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.v7c607f7089d018113d3b4859ca67f414 = function (b) {
var a = 0;
return this.v2c37f623f454a52d448a98459acecdeb(b, !1) && (a = Math.min(b.vac9f76090bb71c8d0e9a4b115afe200e(), this.maxAllowed() - this.vb8fcc44f955f43b26c0b823a57be5f8f()), b.v9c88523c81fa87e4e738fc6d384be21b(), this.vbf5df9d7e0a47bc92c1cdcaabc673213(a)), a
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.onStockpileMoved = function () {
this.__vbcc689c942faa74e017fb71b44a0c45c = {}
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.v3c3119270af1bebf83ca8838de01fd49 = function () {
return this.v0cce122862de131c3015d708c507b474.get('scaleFactor') ? this.v0cce122862de131c3015d708c507b474.get('scaleFactor') : 1
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.vb8fcc44f955f43b26c0b823a57be5f8f = function () {
return _.round(this.v3c3119270af1bebf83ca8838de01fd49() * v27eb52255b219d669bc8df98aaa52940.prototype.vb8fcc44f955f43b26c0b823a57be5f8f.call(this))
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.vbf5df9d7e0a47bc92c1cdcaabc673213 = function (a) {
v27eb52255b219d669bc8df98aaa52940.prototype.vbf5df9d7e0a47bc92c1cdcaabc673213.call(this, a / this.v3c3119270af1bebf83ca8838de01fd49())
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.v5930b0d69e89ee8338f95d064cc975a4 = function (a) {
v27eb52255b219d669bc8df98aaa52940.prototype.v5930b0d69e89ee8338f95d064cc975a4.call(this, a / this.v3c3119270af1bebf83ca8838de01fd49())
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.maxAllowed = function () {
return this.v3c3119270af1bebf83ca8838de01fd49() * v27eb52255b219d669bc8df98aaa52940.prototype.maxAllowed.call(this)
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.remove = function (a) {
this.floor.v113ee3ed22c8dc8213312ccf8af2f5f8(this, !1, a)
}, v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.v4d5c3744e96fe28d3c8b12f999af0dfd = function (a, b) {
}, vf08a6623d53eeea5258a0007a932951c.prototype = Object.create(v11ae23f0d8d2c70b8f28353b8ac02a01.prototype), vf08a6623d53eeea5258a0007a932951c.prototype.constructor = vf08a6623d53eeea5258a0007a932951c, vf08a6623d53eeea5258a0007a932951c.prototype.init = function (a, b) {
this.v8f3c681737f9f11ab3dc32c9425967e8 = a, this.node = b
}, vf08a6623d53eeea5258a0007a932951c.prototype.get = function (a) {
return this[a]
}, vf08a6623d53eeea5258a0007a932951c.prototype.v483011b294fe19594d57f6d57837112e = function () {
return _.isArray(this.v8f3c681737f9f11ab3dc32c9425967e8) ? _.pluck(this.v8f3c681737f9f11ab3dc32c9425967e8, 'id') : [this.v8f3c681737f9f11ab3dc32c9425967e8.id]
}, vf08a6623d53eeea5258a0007a932951c.prototype.va9cedc721d38dd0cffc8dab1d2e5b8a9 = function () {
return 'dsp:' + this.v483011b294fe19594d57f6d57837112e().join('&')
}, vf08a6623d53eeea5258a0007a932951c.prototype.v362697120ef6bc3b622eb15f1c1a8b9e = function () {
return this.v483011b294fe19594d57f6d57837112e().join(', ')
}, vf08a6623d53eeea5258a0007a932951c.prototype.v3aed6d256f01a7b87432911882a6daa5 = function (a) {
return _.contains(this.v483011b294fe19594d57f6d57837112e(), a.v689f5106fac3c1a533ea723821591a86())
}, vf08a6623d53eeea5258a0007a932951c.prototype.v2c37f623f454a52d448a98459acecdeb = function (a, b) {
return b ? !1 : this.v3aed6d256f01a7b87432911882a6daa5(a)
}, vf08a6623d53eeea5258a0007a932951c.prototype.v7c607f7089d018113d3b4859ca67f414 = function (a) {
return this.v3aed6d256f01a7b87432911882a6daa5(a) ? (a.v9c88523c81fa87e4e738fc6d384be21b(), a.quantity) : void 0
}, vf08a6623d53eeea5258a0007a932951c.prototype.vf18f6429345d5b7febceb7b2165f23a8 = function () {
}, vf08a6623d53eeea5258a0007a932951c.prototype.v7e5e98ec16ea7db634c80781d06374cc = function (a) {
return []
}, vf08a6623d53eeea5258a0007a932951c.prototype.v63cdceda7131ea881cabd0b95325fa9c = function () {
return []
}, vf08a6623d53eeea5258a0007a932951c.prototype.vbc7398e5a6e3c83f57205149871b22f0 = function () {
return !1
}, v904e08bd5378fd045017dffe63a74e5f.prototype = Object.create(v11ae23f0d8d2c70b8f28353b8ac02a01.prototype), v904e08bd5378fd045017dffe63a74e5f.prototype.constructor = v904e08bd5378fd045017dffe63a74e5f, v904e08bd5378fd045017dffe63a74e5f.prototype.init = function (a, b, c, d, e) {
v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.init.call(this, a, b, c, d, e), this.vc33eb8962188b1b3bea0110137162abb()
}, v904e08bd5378fd045017dffe63a74e5f.prototype.vc33eb8962188b1b3bea0110137162abb = function () {
this.items = Array(this.maxAllowed()), _.fill(this.items, null), this.v28c8d0e122c3726c81cb836ae9ba3dac = {}
}, v904e08bd5378fd045017dffe63a74e5f.prototype.v2c37f623f454a52d448a98459acecdeb = function (a, b, c) {
if (this.v0772724ae4e897421c9021a4eb421456)
return !1;
if (this.v0cce122862de131c3015d708c507b474.id == a.v689f5106fac3c1a533ea723821591a86()) {
if (a.vac9f76090bb71c8d0e9a4b115afe200e() == 0)
return !0;
if (b) {
if (_.isUndefined(a.v9b387cd2115319e02de9dcfba2194798()))
return _.some(this.items, function (a) {
return a != null
});
if (_.isArray(this.v28c8d0e122c3726c81cb836ae9ba3dac[a.v9b387cd2115319e02de9dcfba2194798()]))
return !0
} else if (!b && this.vb8fcc44f955f43b26c0b823a57be5f8f() < this.maxAllowed())
return !0
}
return !1
}, v904e08bd5378fd045017dffe63a74e5f.prototype.v19e410305b10676c935c7d5c15109280 = function (e, f) {
var a = 0, c;
if (this.v2c37f623f454a52d448a98459acecdeb(e, !0, f)) {
this.__vbcc689c942faa74e017fb71b44a0c45c = {};
var b = e.v9b387cd2115319e02de9dcfba2194798();
_.isUndefined(b) && (b = _.first(_.keys(this.v28c8d0e122c3726c81cb836ae9ba3dac)));
var d = this.v28c8d0e122c3726c81cb836ae9ba3dac[b].pop();
if (_.isUndefined(d))
return this.v1f041ca635a56fa93fb95da2eabbd130(), a;
if (c = this.items[d], _.isNull(c))
return this.v1f041ca635a56fa93fb95da2eabbd130(), a;
var a = c.vac9f76090bb71c8d0e9a4b115afe200e();
this.vbf5df9d7e0a47bc92c1cdcaabc673213(-a), e.v7bb3cc1a990885e800b51a52aec7a8f9(), this.items[d] = null, this.v28c8d0e122c3726c81cb836ae9ba3dac[b].length == 0 && delete this.v28c8d0e122c3726c81cb836ae9ba3dac[b]
}
return c ? c : a
}, v904e08bd5378fd045017dffe63a74e5f.prototype.v7c607f7089d018113d3b4859ca67f414 = function (a, e) {
var b = 0;
if (this.v2c37f623f454a52d448a98459acecdeb(a, !1)) {
if (b = Math.min(a.vac9f76090bb71c8d0e9a4b115afe200e(), this.maxAllowed() - this.vb8fcc44f955f43b26c0b823a57be5f8f()), this.__vbcc689c942faa74e017fb71b44a0c45c = {}, b < 1)
return a;
this.vbf5df9d7e0a47bc92c1cdcaabc673213(b), _.isFunction(a.v9c88523c81fa87e4e738fc6d384be21b) && a.v9c88523c81fa87e4e738fc6d384be21b();
var d = this.v9b6489c47ec49d3c231edb98c566c146(a);
this.items[d] = a;
var c = a.v9b387cd2115319e02de9dcfba2194798();
if (!_.isUndefined(c))
return _.isUndefined(this.v28c8d0e122c3726c81cb836ae9ba3dac[c]) ? this.v28c8d0e122c3726c81cb836ae9ba3dac[c] = [d] : this.v28c8d0e122c3726c81cb836ae9ba3dac[c].push(d), a
}
return b
}, v904e08bd5378fd045017dffe63a74e5f.prototype.v63cdceda7131ea881cabd0b95325fa9c = function (b) {
var a = v11ae23f0d8d2c70b8f28353b8ac02a01.prototype.v63cdceda7131ea881cabd0b95325fa9c.call(this, b);
return a
}, v904e08bd5378fd045017dffe63a74e5f.prototype.v7e5e98ec16ea7db634c80781d06374cc = function (c, a) {
_.isUndefined(a) && (a = 'floorStack');
var b = this.v0cce122862de131c3015d708c507b474.v63cdceda7131ea881cabd0b95325fa9c(c, this.items, this.v0cce122862de131c3015d708c507b474.get(a), this.v2709a24449d9a4bf61d7ad0074b39acf, this.dy);
return b
}, v904e08bd5378fd045017dffe63a74e5f.prototype.v9b6489c47ec49d3c231edb98c566c146 = function (b) {
var a;
for (var a = 0; a < this.maxAllowed(); a++)
if (_.isNull(this.items[a]))
break;
else
continue;
return a
}, v904e08bd5378fd045017dffe63a74e5f.prototype.v1f041ca635a56fa93fb95da2eabbd130 = function () {
_.forEach(this.v28c8d0e122c3726c81cb836ae9ba3dac, _.bind(function (a, b) {
this.v28c8d0e122c3726c81cb836ae9ba3dac[b] = _.filter(a, _.bind(function (a) {
return this.items[a]
}, this))
}, this)), this.v28c8d0e122c3726c81cb836ae9ba3dac = _.omit(this.v28c8d0e122c3726c81cb836ae9ba3dac, function (a) {
return a.length == 0 ? !0 : void 0
})
}, v5d175940a170ccbf06e358126101192c.v8813797593d12514c5cba7f8480eee0a = {
v2a62bd5f72e38f326b72f36696c16382: 'drawablesAfter',
BEFORE: 'drawablesBefore'
}, v5d175940a170ccbf06e358126101192c.prototype.constructor = v5d175940a170ccbf06e358126101192c, v5d175940a170ccbf06e358126101192c.prototype.init = function (a, b, c, e, f) {
if (this.vf92e01bc53fc242f77de0952ff3b57f1 = a, !_.isNull(a)) {
var d = A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(a);
this.v054274c8bc723ab62b822a20e15365b1 = d.cols
}
b && (this.vd231284b644ab5685b8d80d8c3259a7a = b), this.ve9fcfc4547732eccd3c7e0fec24caabb = c ? c : 0, this.vc64990c4bf49791e3c6a29f94e13d128 = e, f ? this.v66c08e98073ef25122fe803efb81ad5a = _.range(this.v054274c8bc723ab62b822a20e15365b1, -1, -1) : this.v66c08e98073ef25122fe803efb81ad5a = _.range(0, this.v054274c8bc723ab62b822a20e15365b1, 1)
}, v5d175940a170ccbf06e358126101192c.prototype.v324b8da5955c0be8dd78c495d7b0e141 = function (a) {
this.v66c08e98073ef25122fe803efb81ad5a = a
}, v5d175940a170ccbf06e358126101192c.prototype.ve44103814547356c17006b8a9fcb6551 = function (a) {
this.vbbd92215e11cfcb0ab34a6ae7954518a = a
}, v5d175940a170ccbf06e358126101192c.prototype.vdb6cf9ec994e304dabc8f4fc5ee33b21 = function (a) {
this.v25ffd0e674efbccb966ed458b2c53c4e = a
}, v5d175940a170ccbf06e358126101192c.prototype.vb5dbf38ca9970ce8a5a1f7c85eb3954d = function () {
return this.started && !this.stopped
}, v5d175940a170ccbf06e358126101192c.prototype.v7b623f48e8f1b98b36720360919be3fb = function () {
return this.v66c08e98073ef25122fe803efb81ad5a.length + Math.max(this.ve9fcfc4547732eccd3c7e0fec24caabb, -1 * this.v66c08e98073ef25122fe803efb81ad5a.length)
}, v5d175940a170ccbf06e358126101192c.prototype.start = function (a) {
this.started = !0, this.stopped = !1, this.ve01e9541038aef5ac1cb2f343df50c9f = 0, this.v5112222e1e7849c10f25c4c79e04df7a = 1, this.vdcded69f1bb51db8b8b4f5f4c2dc7f75 = a
}, v5d175940a170ccbf06e358126101192c.prototype.stop = function () {
this.stopped = !0
}, v5d175940a170ccbf06e358126101192c.prototype.reset = function () {
this.started = !1, this.stopped = !1, this.ve01e9541038aef5ac1cb2f343df50c9f = 0, this.v5112222e1e7849c10f25c4c79e04df7a = 1
}, v5d175940a170ccbf06e358126101192c.prototype.va367f4743342c1a2e3cacb9746db09fd = function () {
this.vb5dbf38ca9970ce8a5a1f7c85eb3954d() && (this.v5112222e1e7849c10f25c4c79e04df7a++, this.v5112222e1e7849c10f25c4c79e04df7a >= (this.ve01e9541038aef5ac1cb2f343df50c9f + 1) * this.vdcded69f1bb51db8b8b4f5f4c2dc7f75 && this.ve01e9541038aef5ac1cb2f343df50c9f++)
}, v5d175940a170ccbf06e358126101192c.prototype.isFinished = function () {
return this.v5112222e1e7849c10f25c4c79e04df7a > _.round(this.v66c08e98073ef25122fe803efb81ad5a.length * this.vdcded69f1bb51db8b8b4f5f4c2dc7f75 + .35)
}, v5d175940a170ccbf06e358126101192c.prototype.vbe3dcb024ff1b5590974080bd1d02e5f = function () {
return this.v66c08e98073ef25122fe803efb81ad5a.length - this.ve01e9541038aef5ac1cb2f343df50c9f
}, v5d175940a170ccbf06e358126101192c.prototype.v63cdceda7131ea881cabd0b95325fa9c = function (e, b) {
var c;
if (b && this.vbbd92215e11cfcb0ab34a6ae7954518a != b)
return [];
if (!this.started)
return [];
if (this.ve01e9541038aef5ac1cb2f343df50c9f >= this.v66c08e98073ef25122fe803efb81ad5a.length)
if (_.isNumber(this.vc64990c4bf49791e3c6a29f94e13d128))
c = this.vc64990c4bf49791e3c6a29f94e13d128;
else
return [];
else
c = this.v66c08e98073ef25122fe803efb81ad5a[this.ve01e9541038aef5ac1cb2f343df50c9f];
var d = this.v86a37b56a789c064a768c07933832e1e(e), a = new vbe6dfab6e47ff3d003a423092f4c35ef(d, this.vf92e01bc53fc242f77de0952ff3b57f1);
return a.col = c, this.row && (a.row = this.row), this.flipX && (a.flipX = this.flipX), _.isObject(this.vbbd92215e11cfcb0ab34a6ae7954518a) && _.extend(a, vd88269f14c639d29ae709e1533438c8a, { vd47ed85cab7ce2b6d437e7b570eea18a: this.vbbd92215e11cfcb0ab34a6ae7954518a }), b.v7ce86f426ce3fcb24bfb995ffd6813db = 'customDraw', [a]
}, v5d175940a170ccbf06e358126101192c.prototype.v86a37b56a789c064a768c07933832e1e = function (b) {
var a = this.vd231284b644ab5685b8d80d8c3259a7a;
return _.isArray(this.vd231284b644ab5685b8d80d8c3259a7a) && (a = new Point(0, 0), a.x = this.vd231284b644ab5685b8d80d8c3259a7a[0].x + (this.vd231284b644ab5685b8d80d8c3259a7a[1].x - this.vd231284b644ab5685b8d80d8c3259a7a[0].x) * this.ve01e9541038aef5ac1cb2f343df50c9f / (this.v66c08e98073ef25122fe803efb81ad5a.length - 1), a.y = this.vd231284b644ab5685b8d80d8c3259a7a[0].y + (this.vd231284b644ab5685b8d80d8c3259a7a[1].y - this.vd231284b644ab5685b8d80d8c3259a7a[0].y) * this.ve01e9541038aef5ac1cb2f343df50c9f / (this.v66c08e98073ef25122fe803efb81ad5a.length - 1)), new Point(b.x + a.x, b.y + a.y)
}, v6c8e2523b426d9300d1463b586afc667.prototype.constructor = v6c8e2523b426d9300d1463b586afc667, v6c8e2523b426d9300d1463b586afc667.prototype.vafbe47bed93812d57aeed97cf32c2f55 = function (a) {
this.animations.v657e3b6ac90f6a38de6cb0a741ad936e(a)
}, v6c8e2523b426d9300d1463b586afc667.prototype.v809ecbaf7813e0b6d4435cc92b3b98ae = function (a) {
this.v9f87ed35276cca50cf80c6e96ea2bdbd = a
}, v6c8e2523b426d9300d1463b586afc667.prototype.va367f4743342c1a2e3cacb9746db09fd = function (b, c) {
this.location = c;
for (var a = 0; a < this.animations.length; a++)
this.animations[a].va367f4743342c1a2e3cacb9746db09fd();
for (var a = this.animations.length - 1; a >= 0; a--)
this.animations[a].vb5dbf38ca9970ce8a5a1f7c85eb3954d() || (a == 0 ? this.animations[a].start(b) : this.animations[a - 1].vbe3dcb024ff1b5590974080bd1d02e5f() <= -1 * this.animations[a].ve9fcfc4547732eccd3c7e0fec24caabb && this.animations[a].start(b))
}, v6c8e2523b426d9300d1463b586afc667.prototype.reset = function () {
for (var a = 0; a < this.animations.length; a++)
this.animations[a].reset()
}, v6c8e2523b426d9300d1463b586afc667.prototype.v5a8cbad96fb912d9948eb7d691a615ed = function () {
return this.animations.length == 0 ? !1 : this.animations[0].started
}, v6c8e2523b426d9300d1463b586afc667.prototype.isFinished = function () {
if (this.animations.length == 0)
return !0;
var b = _.find(this.animations, function (a) {
return !a.isFinished()
}), a = _.isUndefined(b);
return a && this.v9f87ed35276cca50cf80c6e96ea2bdbd > 0 ? (this.v9f87ed35276cca50cf80c6e96ea2bdbd--, this.reset(), !1) : a
}, v6c8e2523b426d9300d1463b586afc667.prototype.stop = function () {
for (var a = 0; a < this.animations.length; a++)
this.animations[a].stop()
}, v6c8e2523b426d9300d1463b586afc667.prototype.v054274c8bc723ab62b822a20e15365b1 = function () {
return _.reduce(this.animations, function (b, c) {
var a = c.v7b623f48e8f1b98b36720360919be3fb();
return b + a
}, 0)
}, v6c8e2523b426d9300d1463b586afc667.prototype.v63cdceda7131ea881cabd0b95325fa9c = function (e, g) {
var c = {
drawablesBefore: [],
drawablesAfter: []
}, d = this.location;
e && (d = e);
for (var a = 0; a < this.animations.length; a++) {
var b = this.animations[a], f = b.v63cdceda7131ea881cabd0b95325fa9c(d, g);
_.isNull(b.v25ffd0e674efbccb966ed458b2c53c4e) || c[b.v25ffd0e674efbccb966ed458b2c53c4e].v65232cbf984e4899d32f63ff906d72ec(f)
}
return c
}, v1d9545606d219a6b6b917d8df442d16e.prototype = Object.create(vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype), v1d9545606d219a6b6b917d8df442d16e.prototype.constructor = v1d9545606d219a6b6b917d8df442d16e, v1d9545606d219a6b6b917d8df442d16e.prototype.init = function (a, b) {
vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.init.call(this, a, b)
}, v1d9545606d219a6b6b917d8df442d16e.prototype.ve1351d8e1c213b0801e2f368891ce0f9 = function () {
return U.vbacce6a42a9154e1b2ea38c9b107fbb2('Waiting for a task to do.')
}, v1d9545606d219a6b6b917d8df442d16e.prototype.v645708bc86a78cc49cac7a64e516f8ad = function (a) {
return
}, v1d9545606d219a6b6b917d8df442d16e.prototype.v17d5f65254383b740db2d65876aa48c2 = function (a) {
return a.v4c81630cf6a1c362e833a37820843b20(), a.v3d56f028e1994ad1b676d003e00ccdea(Math.max(5, Math.round(this.get('duration') / A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().SimulatedSecondsPerStep))), a.task = {
counter: A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().SimulatedSecondsPerStep,
duration: A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().SimulatedSecondsPerStep
}, 0
}, v1d9545606d219a6b6b917d8df442d16e.prototype.v8f16346c17cc04d15f549b120b9bbe47 = function (a) {
vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v8f16346c17cc04d15f549b120b9bbe47.call(this, a), a.v4a367c637cd54077b044f96b4dded6f9()
}, v1d9545606d219a6b6b917d8df442d16e.prototype.vf18f6429345d5b7febceb7b2165f23a8 = function (b) {
if (this.get('name') && this.get('name').length > 0) {
var a = new frmContextMenu(b);
a.show(), a.v8d57dda12f8951da88f3c6827658f646(this.get('name'))
}
}, v1d9545606d219a6b6b917d8df442d16e.prototype.v9dd3565afeb81e8c95e9d449508c5819 = function (a) {
return this.get('forcedOrientation') ? this.get('forcedOrientation') : a.orientation()
}, v1d9545606d219a6b6b917d8df442d16e.prototype.ve1147fa4b302aca7d0945a32650cfb8f = function () {
return !1
}, v1d9545606d219a6b6b917d8df442d16e.prototype.vd4a8ae3867294f8e89e4ff876b862996 = function (a) {
a.v6cbe84ebdbebaf8d76a00723c0ee90a5 = undefined, vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vd4a8ae3867294f8e89e4ff876b862996.call(this, a)
}, v1d9545606d219a6b6b917d8df442d16e.prototype.v2b1d4545d2c4637078a482cf5a03ffe9 = function (d, c) {
if (d.v6cbe84ebdbebaf8d76a00723c0ee90a5)
return d.v6cbe84ebdbebaf8d76a00723c0ee90a5;
var e = this.vb5e6350d6d0bb1d6a0c1e750acd16671(), a = this.v20665077b93bc831119718af355f6eff();
c || (c = this.v557529d29d876fca93cd7be5bfad0721(d.va5aeabb6e87882b192668878e68c8e84().id)), a.x = a.x + c.x, a.y = a.y + c.y;
var b = a;
if (e.length > 1) {
var f = !0, g = 0;
for (var h = 0; h < 10 && f; h++) {
if (a = this.node.v26baece43410e172361dfa585625b2bf(A.vb06c3a859d6038b4515bccc5f1f891ef().random), this.floor.v0776834b0640adaef760589da7a7a8d7(a) != this.node)
return;
minSpace = 9999999, _.each(e, function (c) {
if (c === d)
return;
var b = U.v84eedb61e1366b8609056884e40b965e(c.va104dfefa6670b37275d51b041f7e0bd(), a);
b < minSpace && (minSpace = b)
}), minSpace > g && (b = a, g = minSpace), f = minSpace < (vbe7993a2ce2422b8674dc4b1008561b0.v35d5370a8d025ff6e7fc9ec381246219 ? vbe7993a2ce2422b8674dc4b1008561b0.v35d5370a8d025ff6e7fc9ec381246219 : 20)
}
b.x = b.x + c.x, b.y = b.y + c.y
}
return d.v6cbe84ebdbebaf8d76a00723c0ee90a5 = b, b
}, v1d9545606d219a6b6b917d8df442d16e.prototype.v73fa30fd32305a4fa0296724d714012f = function (a) {
return this.v24a5bad1a9e7094af710e71709d44d96(a)
}, v1d9545606d219a6b6b917d8df442d16e.prototype.vfea8e705d55413af944734bd15056baa = function (a) {
return this.v24a5bad1a9e7094af710e71709d44d96(a)
}, v1d9545606d219a6b6b917d8df442d16e.prototype.v24a5bad1a9e7094af710e71709d44d96 = function (a) {
return a.v7ce86f426ce3fcb24bfb995ffd6813db == 'Invisible' ? 'Invisible' : a.v5af95216e115d76c3042d72f1afac26f.length > 0 ? 'CarryIdle' : 'Stand'
}, vff83f26eb97d0c05c0b0068b1902c577.prototype = Object.create(vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype), vff83f26eb97d0c05c0b0068b1902c577.prototype.constructor = vff83f26eb97d0c05c0b0068b1902c577, vff83f26eb97d0c05c0b0068b1902c577.prototype.init = function (a, b) {
vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.init.call(this, a, b), this.events.v49ad792f5229d4be359d5c4aa4e18617(this, 'move', 'onMove')
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v712f74cff9e94e9c1d1420e2e20dbb92 = function (c) {
var a = this.vb5e6350d6d0bb1d6a0c1e750acd16671();
c.vc9df8beed4e7c544ac444c35ed29d7c8.find('.refresh').html('');
var b = '';
if (a.length > 0) {
var e = _.reduce(a, function (a, b) {
return a + b.vcba51b17a01b2f68371b4bc5c3f3486a()
}, 0, this) / a.length, d = a[0].v20ec3d4a803dd27a55f795e3c1e1414a().toLowerCase();
b = '<div>' + U.vbacce6a42a9154e1b2ea38c9b107fbb2('{0} {1} waiting an average of {2} minutes.', [
a.length,
a.length == 1 ? d : d + 's',
U.vd84eadcceba7c7ff874f8d08babd5fe2(e, 0)
]) + '</div>'
} else
b = '<div>' + U.vbacce6a42a9154e1b2ea38c9b107fbb2('No line right now.') + '</div>';
c.v4d77ae1222564924ebffd0e618e01f8b(b, '#refreshDiv'), this.v6ecbf7e68c80854fcec3f646c90a55fc.call(this, c, '#refreshDiv')
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v00baf59d9699696f44e210a1c9cf545f = function () {
return vbe7993a2ce2422b8674dc4b1008561b0.processModel.v91d882cc13a1210c1a8462ac0e5bb93e[this.id].leaveAfterWaitSeconds ? vbe7993a2ce2422b8674dc4b1008561b0.processModel.v91d882cc13a1210c1a8462ac0e5bb93e[this.id].leaveAfterWaitSeconds : U.vb57864c2b24994a28548be73b11c2d8f
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.onMove = function (b, a) {
this.node = a, this.v2eaec3045dcca7f016fcef5137459b48(), this.ve9d37794b16a1e84da835a433003586e()
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.rotate = function () {
var a = vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.rotate.call(this);
return a && (this.v2eaec3045dcca7f016fcef5137459b48(), this.ve9d37794b16a1e84da835a433003586e()), a
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.remove = function () {
this.get('reassignWorkersWhenRemoved') && _.forEach(this.v591c3ebab0dc1959c856034d3d9b670a, _.bind(function (b) {
var a = this.floor.vfabcce9a946f82852878d38b91064159(this.id, _.bind(function (a) {
return a.node.id != this.node.id
}, this));
a && b.ve9305d578e56d72f5312dd134e1af564(a)
}, this)), vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.remove.call(this)
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v51437c72107c143b80de076f21e2e55c = function (a, b) {
vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v51437c72107c143b80de076f21e2e55c.call(this, a, b), this.v2eaec3045dcca7f016fcef5137459b48(), this.ve9d37794b16a1e84da835a433003586e()
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v2eaec3045dcca7f016fcef5137459b48 = function () {
this.frontOfLineLoc = this.node.va104dfefa6670b37275d51b041f7e0bd();
var b = this.v04b0dd7d7198b9c7a88db3da70c7c354(), c = _.max(b, _.bind(function (a) {
return U.va8b5009a1e24fd5735deb7089099e7fc(this.node, a)
}, this));
this.backOfLineLoc = c.va104dfefa6670b37275d51b041f7e0bd();
var a = this.v557529d29d876fca93cd7be5bfad0721('line');
a && (this.frontOfLineLoc.x = this.frontOfLineLoc.x - this.dy * a.x, this.frontOfLineLoc.y += a.y, this.backOfLineLoc.x = this.backOfLineLoc.x - this.dy * a.x, this.backOfLineLoc.y += a.y)
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v17d5f65254383b740db2d65876aa48c2 = function (a) {
var b = -1;
if (a.vcba51b17a01b2f68371b4bc5c3f3486a() * 60 > this.v00baf59d9699696f44e210a1c9cf545f())
return a.vc1db579a4d032f721872a06fb5c9f010(-25, U.vbacce6a42a9154e1b2ea38c9b107fbb2('Been waiting more than {0} minutes for {1}. I\'m leaving!', [
Math.round(this.v00baf59d9699696f44e210a1c9cf545f() / 60),
this.get('waitTargetName')
]), Satisfaction ? Satisfaction.__va26cc9c6d0cb0dd662df4081e4927bde : 0, this.get('waitTargetDept')), _.isFunction(a.leave) ? a.leave() : this.v55eb6e74ea90f28f20063806926301a8(a), 0;
if (_.contains(this.v9bfb605e9e535db1c5e1273e80914d30, a) || (vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.va924f1045e993c66a2dff7e796ba1931.call(this, a), this.v591c3ebab0dc1959c856034d3d9b670a.v6658d41901465458c34d0790e8086649(a), a.v4c81630cf6a1c362e833a37820843b20(), a.state = a.__ve53079a360c86165a33746ac2b5388d9.v32a423450f9c4507ce955152c2650564, this.ve9d37794b16a1e84da835a433003586e()), _.indexOf(this.v58697f1dc959693f21429f12df0345ec(), a) == 0) {
var c = this.get('primary');
return _.isUndefined(c) || a.va5aeabb6e87882b192668878e68c8e84().id == c ? vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v17d5f65254383b740db2d65876aa48c2.call(this, a) : b
} else
return b
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v8f16346c17cc04d15f549b120b9bbe47 = function (a) {
vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v8f16346c17cc04d15f549b120b9bbe47.call(this, a)
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.va924f1045e993c66a2dff7e796ba1931 = function (a) {
this.v591c3ebab0dc1959c856034d3d9b670a.v657e3b6ac90f6a38de6cb0a741ad936e(a)
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.vd4a8ae3867294f8e89e4ff876b862996 = function (a) {
_.remove(this.v591c3ebab0dc1959c856034d3d9b670a, a), vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vd4a8ae3867294f8e89e4ff876b862996.call(this, a);
var b = a.v4a367c637cd54077b044f96b4dded6f9();
this.ve17eb41b7ccb564eab89c96c6d0b087b(a, b), this.ve9d37794b16a1e84da835a433003586e()
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v154b45f608cb0e3ef6c5533bcf8f2edb = function () {
return 0
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.ve17eb41b7ccb564eab89c96c6d0b087b = function (a, b) {
if (b > this.v00baf59d9699696f44e210a1c9cf545f())
return;
var c = this.v8abbb767001681ddd4cdd55cb533bbdf();
if (_.isUndefined(c))
return;
b > c ? b < this.get('reallySteamedAfterWaitSeconds') ? a.vc1db579a4d032f721872a06fb5c9f010(-5, U.vbacce6a42a9154e1b2ea38c9b107fbb2('Kind of a long line waiting for {0}. Not happy about that.', [this.get('waitTargetName')]), this.get('satisfactionType'), this.get('waitTargetDept')) : a.vc1db579a4d032f721872a06fb5c9f010(-15, U.vbacce6a42a9154e1b2ea38c9b107fbb2('Had to wait in line forever for {0}. Argh!!', [this.get('waitTargetName')]), this.get('satisfactionType'), this.get('waitTargetDept')) : a.vc1db579a4d032f721872a06fb5c9f010(.1, U.vbacce6a42a9154e1b2ea38c9b107fbb2('Didn\'t have to wait in line for {0}! Nice service here.', [this.get('waitTargetName')]), this.get('satisfactionType'), this.get('waitTargetDept'))
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.ve9d37794b16a1e84da835a433003586e = function () {
var d = this.v58697f1dc959693f21429f12df0345ec();
for (var b = 0; b < d.length; b++) {
var a = d[b];
if (a.state <= a.__ve53079a360c86165a33746ac2b5388d9.va00800a74f59579fc5f00667f737974f || a.state == a.__ve53079a360c86165a33746ac2b5388d9.v746b94464c46642872fcc3ac5b556e4a) {
var c = this.vd251f43ce5129eed6391e25b57d4e901(b), e = a.v02dac0d354b20606b64e9803ba767d64();
if (e.x != c.x || e.y != c.y) {
var f = this.floor.v0776834b0640adaef760589da7a7a8d7(c);
if (f) {
var g = a.floor.va67977e167a9efd933bd15b7b1f8b384(a.floor.v0776834b0640adaef760589da7a7a8d7(a.v99852e2df25602e53d8983589cf14117.clone()), f);
a.v69fead28026a5e82d9cd72e749372012(g, c), a.vcfffb548d60c1bf710717076d624fe2e = a.state, a.state = a.__ve53079a360c86165a33746ac2b5388d9.v746b94464c46642872fcc3ac5b556e4a
}
}
}
}
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.vd251f43ce5129eed6391e25b57d4e901 = function (a) {
var b = this.frontOfLineLoc.x - a / this.v7f2aa62e474db6945d1ed719d5c69467() * (this.frontOfLineLoc.x - this.backOfLineLoc.x), c = this.frontOfLineLoc.y - a / this.v7f2aa62e474db6945d1ed719d5c69467() * (this.frontOfLineLoc.y - this.backOfLineLoc.y);
return new Point(b, c)
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v7f2aa62e474db6945d1ed719d5c69467 = function () {
return this.v1b95e6414a687628443a8eabd7a50dcd() - 1
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v2b1d4545d2c4637078a482cf5a03ffe9 = function (a) {
var c = _.indexOf(this.v9bfb605e9e535db1c5e1273e80914d30, a);
if (c < 0)
return this.vd251f43ce5129eed6391e25b57d4e901(this.vc79ad32304c467c4d8d58d877e363b8b() + 1);
else {
var b = a.v02dac0d354b20606b64e9803ba767d64();
return b != undefined ? b : a.va104dfefa6670b37275d51b041f7e0bd()
}
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v58697f1dc959693f21429f12df0345ec = function () {
return _.filter(this.v9bfb605e9e535db1c5e1273e80914d30, function (a) {
return this.vace71abf9d5901df5eecbb5bd062e24d(a)
}, this)
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.vc79ad32304c467c4d8d58d877e363b8b = function () {
return this.v58697f1dc959693f21429f12df0345ec().length
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v663f282ce3c0fa7668713b3a24b959f4 = function () {
return this.vc79ad32304c467c4d8d58d877e363b8b() + this.v591c3ebab0dc1959c856034d3d9b670a.length
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v651b348996febe8a6042627310788f64 = function () {
return _.first(this.v58697f1dc959693f21429f12df0345ec())
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v55eb6e74ea90f28f20063806926301a8 = function (a) {
this.floor.vdf3053bea62b74061768f769e44462ad(a)
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.vdf0ef943298a7acb854e9db8d5e0f699 = function () {
var a = this.v651b348996febe8a6042627310788f64();
return a ? [a] : []
}, vff83f26eb97d0c05c0b0068b1902c577.prototype.v8abbb767001681ddd4cdd55cb533bbdf = function () {
return this.get('maxAcceptableWaitSeconds')
}, v3ef233c5d57ef7bfef4ce46eb6a46778.prototype = Object.create(vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype), v3ef233c5d57ef7bfef4ce46eb6a46778.prototype.constructor = v3ef233c5d57ef7bfef4ce46eb6a46778, v3ef233c5d57ef7bfef4ce46eb6a46778.prototype.v483011b294fe19594d57f6d57837112e = function () {
return this.get('componentIds')
}, v3ef233c5d57ef7bfef4ce46eb6a46778.prototype.v3aed6d256f01a7b87432911882a6daa5 = function (a, b) {
return _.isUndefined(a) ? this.v483011b294fe19594d57f6d57837112e().length == 0 ? !1 : !0 : this.v2c37f623f454a52d448a98459acecdeb(a, !1, b)
}, v3ef233c5d57ef7bfef4ce46eb6a46778.prototype.vbc7398e5a6e3c83f57205149871b22f0 = function () {
return !1
}, v3ef233c5d57ef7bfef4ce46eb6a46778.prototype.v2c37f623f454a52d448a98459acecdeb = function (c, d, a) {
if (d)
return !1;
if (this.get('workerNeeded') && !(a && this.vace71abf9d5901df5eecbb5bd062e24d(a)))
return !1;
var b = _.some(this.v483011b294fe19594d57f6d57837112e(), function (a) {
return a == c.v689f5106fac3c1a533ea723821591a86()
}, this);
return b ? !0 : !1
}, v3ef233c5d57ef7bfef4ce46eb6a46778.prototype.v776dc86700a5f93052efad6483137448 = function () {
return !0
}, v3ef233c5d57ef7bfef4ce46eb6a46778.prototype.v7c607f7089d018113d3b4859ca67f414 = function (a, b) {
return this.v2c37f623f454a52d448a98459acecdeb(a, !1, b) ? (a.v9c88523c81fa87e4e738fc6d384be21b(), a) : 0
}, v3ef233c5d57ef7bfef4ce46eb6a46778.prototype.v17d5f65254383b740db2d65876aa48c2 = function (a) {
this.va43e1c7a0abc0be95c156d9ff798b4df(a), a.v86164064ae72a6e88d57369bbec634d6.dt = 0
}, v3ef233c5d57ef7bfef4ce46eb6a46778.prototype.va43e1c7a0abc0be95c156d9ff798b4df = function (a) {
a.v5af95216e115d76c3042d72f1afac26f.vb6197b85339d8d08458ca1d8b757f7b5(), a.v9f46cd89bff4af8a37f702f5b8b856b2 = !0, a.vd9411b9bf2c920e345c88ddec3aa192b(), this.floor.vdf3053bea62b74061768f769e44462ad(a);
return
}, v3ef233c5d57ef7bfef4ce46eb6a46778.prototype.v2b1d4545d2c4637078a482cf5a03ffe9 = function (b) {
var a = this.v20665077b93bc831119718af355f6eff();
return workerOffset = this.v557529d29d876fca93cd7be5bfad0721(), a.x = a.x - this.dy * workerOffset.x, a.y = a.y + workerOffset.y, a
}, v9699b24815d6dfadfa0243b18016fdda.prototype = Object.create(vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype), v9699b24815d6dfadfa0243b18016fdda.prototype.constructor = v9699b24815d6dfadfa0243b18016fdda, v9699b24815d6dfadfa0243b18016fdda.prototype.init = function (a, b, c) {
vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.init.call(this, a, b, c)
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v62f827e7493d5c76277958cc51f610b8 = function () {
var a = this.vff0eae7421e370abcd8e5d27ade69c72();
return _.isObject(a) ? !0 : _.some(this.vd7237e6d90a0ba3db6fd9b84db8c053b, function (a) {
return a.quantity > 0 && _.contains(this.v483011b294fe19594d57f6d57837112e(), a.id)
}, this)
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v3410bdd1de563b13f3a724dd00d284d3 = function () {
return !_.isUndefined(this.v57ca54cedeb48617c89828ae920ea053())
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v23bfba723603d5b6e327452d84b017d6 = function () {
return this.get('needsCustomer') == 1 || this.get('needsCustomer') == 1
}, v9699b24815d6dfadfa0243b18016fdda.prototype.vbeff761fe76ea661f861f66888b894b6 = function (a) {
return _.isUndefined(this.get('needsWorker')) ? !0 : this.get('needsWorker')
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v8f5963a11ba9b52abb4fe96b8499807c = function (a) {
if (this.vb636fbe8e56b1d180bae32cd360990dd(a))
return this.get('needsWorker') && !this.v57ca54cedeb48617c89828ae920ea053() ? !1 : this.v73ff3221798a2471f31acbf17b9572c1() >= this.v46025f2b17250e27317f9f3e848ef6d9() ? !1 : !0;
if (this.ve263f4fdb81615d4f692cb0e69d75bc6(a)) {
if (!this.vbeff761fe76ea661f861f66888b894b6(a))
return !1;
if (this.vdf574b01404e9a90d36956e931b498a9(a) && this.get('allowMultiplePrimary'))
return !0;
var b = this.v57ca54cedeb48617c89828ae920ea053();
if (!b || b == a)
return !0
}
return !1
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v46025f2b17250e27317f9f3e848ef6d9 = function () {
return _.isUndefined(this.get('maxCustomers')) ? 1 : this.get('maxCustomers')
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v73ff3221798a2471f31acbf17b9572c1 = function () {
return this.v0c35f95beb928e4f751baceca96efbbf().length
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v3ba55fe0de64cd6c1d0c6ac5006945e9 = function () {
return _.isUndefined(this.get('minCustomers')) ? !(this.v23bfba723603d5b6e327452d84b017d6() && !this.v62f827e7493d5c76277958cc51f610b8()) : this.v73ff3221798a2471f31acbf17b9572c1() >= this.get('minCustomers')
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v57ca54cedeb48617c89828ae920ea053 = function () {
return _.find(this.v9bfb605e9e535db1c5e1273e80914d30, function (a) {
return this.vace71abf9d5901df5eecbb5bd062e24d(a)
}, this)
}, v9699b24815d6dfadfa0243b18016fdda.prototype.vff0eae7421e370abcd8e5d27ade69c72 = function () {
return _.find(this.v9bfb605e9e535db1c5e1273e80914d30, function (a) {
return a.va5aeabb6e87882b192668878e68c8e84().id == this.get('customerNeeded')
}, this)
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v0c35f95beb928e4f751baceca96efbbf = function () {
return _.filter(this.v9bfb605e9e535db1c5e1273e80914d30, function (a) {
return a.va5aeabb6e87882b192668878e68c8e84().id == this.get('customerNeeded')
}, this)
}, v9699b24815d6dfadfa0243b18016fdda.prototype.vb636fbe8e56b1d180bae32cd360990dd = function (a) {
return a.va5aeabb6e87882b192668878e68c8e84().id == this.get('customerNeeded')
}, v9699b24815d6dfadfa0243b18016fdda.prototype.ve263f4fdb81615d4f692cb0e69d75bc6 = function (a) {
return this.vace71abf9d5901df5eecbb5bd062e24d(a)
}, v9699b24815d6dfadfa0243b18016fdda.prototype.vbdf0dd48b4747435af4aeaf1c03a1349 = function () {
return _.find(this.v9bfb605e9e535db1c5e1273e80914d30, function (a) {
return this.vdf574b01404e9a90d36956e931b498a9(a)
}, this)
}, v9699b24815d6dfadfa0243b18016fdda.prototype.vd4a8ae3867294f8e89e4ff876b862996 = function (a) {
vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.vd4a8ae3867294f8e89e4ff876b862996.call(this, a), a.v059568171df9b909bc05ce15aee62602 = null
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v7b4bff01c2630a030a8ca6d7ef566965 = function () {
return _.all(this.v9bfb605e9e535db1c5e1273e80914d30, function (a) {
return this.vdf574b01404e9a90d36956e931b498a9(a) ? !0 : a.v059568171df9b909bc05ce15aee62602
}, this)
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v776dc86700a5f93052efad6483137448 = function (a) {
return this.vdf574b01404e9a90d36956e931b498a9(a) ? void 0 : !0
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v2c37f623f454a52d448a98459acecdeb = function (c, d, a) {
if (d)
return !1;
var b = _.some(this.vcc0fddc17a3e79dfbf92235830555bad(), _.bind(function (a) {
return a.id == c.id && this.v3b359138338c9f98537ced2d8ad82c0a(a.id) < a.quantity
}, this));
if (!b)
return !1;
if (this.get('needsWorker') && this.vb636fbe8e56b1d180bae32cd360990dd(a)) {
if (!this.va7e1bdec378a369b6b40fd760e183a40())
return !1;
if (this.v57ca54cedeb48617c89828ae920ea053().state >= a.__ve53079a360c86165a33746ac2b5388d9.vcc51f848da7c73e6e682fc1a12d7a738)
return !1
}
return this.get('primary') != this.get('customerNeeded') && this.v62f827e7493d5c76277958cc51f610b8() && this.vff0eae7421e370abcd8e5d27ade69c72() != a ? !1 : !0
}, v9699b24815d6dfadfa0243b18016fdda.prototype.vdf574b01404e9a90d36956e931b498a9 = function (c) {
var b = !1, a = this.get('primary');
return a ? (_.isString(a) && c.va5aeabb6e87882b192668878e68c8e84().id == a && (b = !0), _.isArray(a) && _.contains(a, c.va5aeabb6e87882b192668878e68c8e84().id) && (b = !0)) : this.vace71abf9d5901df5eecbb5bd062e24d(c) && (b = !0), b
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v95f51992798d154a976610f812f29b58 = function (a, b) {
return a && this.ve263f4fdb81615d4f692cb0e69d75bc6(a) && !this.v3ba55fe0de64cd6c1d0c6ac5006945e9() ? [] : vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v95f51992798d154a976610f812f29b58.call(this, a, b)
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v17d5f65254383b740db2d65876aa48c2 = function (a) {
var b = this.v57ca54cedeb48617c89828ae920ea053(), c = this.vff0eae7421e370abcd8e5d27ade69c72();
return this.get('needsWorker') && !b ? -1 : this.v3ba55fe0de64cd6c1d0c6ac5006945e9() ? b && b.state == b.__ve53079a360c86165a33746ac2b5388d9.v746b94464c46642872fcc3ac5b556e4a || c && c.state == c.__ve53079a360c86165a33746ac2b5388d9.v746b94464c46642872fcc3ac5b556e4a ? -1 : this.vdf574b01404e9a90d36956e931b498a9(a) ? this.vbdf0dd48b4747435af4aeaf1c03a1349() == a || this.get('allowMultiplePrimary') && this.vdf574b01404e9a90d36956e931b498a9(a) ? (this.v0dd5fd90ea838ad4c55f66535b48b558(a, this.ve08e39eb47161113e34e559e1cb5cb3b), vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v17d5f65254383b740db2d65876aa48c2.call(this, a)) : -1 : a.v059568171df9b909bc05ce15aee62602 ? -1 : (a.v059568171df9b909bc05ce15aee62602 = !1, this.v7578eeeb053bd7a55862d0c9f448067e() ? (a.v86164064ae72a6e88d57369bbec634d6.dt = 0, 0) : -1) : -1
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v7d6eb1b803afcd72a693aa83533a5103 = function () {
return 1
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v7578eeeb053bd7a55862d0c9f448067e = function () {
var a = this.vbdf0dd48b4747435af4aeaf1c03a1349();
return _.isUndefined(a) ? !1 : _.isUndefined(a.task) ? !1 : _.isUndefined(a.task.counter) ? !1 : !0
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v3bfb30a19746b869703b55350a08c230 = function (b, a) {
if (this.vdf574b01404e9a90d36956e931b498a9(b)) {
var c = vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v3bfb30a19746b869703b55350a08c230.call(this, b, a);
if (c && this.v23bfba723603d5b6e327452d84b017d6() && this.get('needsWorker'))
if (!this.v7b4bff01c2630a030a8ca6d7ef566965())
return a.dt = 0, !1;
else
_.each(this.v9bfb605e9e535db1c5e1273e80914d30, function (a) {
a.v059568171df9b909bc05ce15aee62602 = null
});
return c
}
if (this.v7578eeeb053bd7a55862d0c9f448067e())
return this.vbdf0dd48b4747435af4aeaf1c03a1349().task.counter <= 0 ? (b.v059568171df9b909bc05ce15aee62602 = !0, !0) : (a.dt = 0, !1);
a.dt = 0
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v8f16346c17cc04d15f549b120b9bbe47 = function (a) {
this.vdf574b01404e9a90d36956e931b498a9(a) && vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v8f16346c17cc04d15f549b120b9bbe47.call(this, a), a.task = undefined
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v36d637f1b93df436a329c1bcd67243e1 = function (a) {
return vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype.v36d637f1b93df436a329c1bcd67243e1.call(this, this.vbdf0dd48b4747435af4aeaf1c03a1349())
}, v9699b24815d6dfadfa0243b18016fdda.prototype.vdf0ef943298a7acb854e9db8d5e0f699 = function (a) {
return this.vdf574b01404e9a90d36956e931b498a9(a) ? this.v9bfb605e9e535db1c5e1273e80914d30 : [a]
}, v9699b24815d6dfadfa0243b18016fdda.prototype.v6c11c4f283121592d0e74c78991c3aea = function () {
return _.filter(this.v9bfb605e9e535db1c5e1273e80914d30, _.bind(function (a) {
return this.vdf574b01404e9a90d36956e931b498a9(a) ? a.state == a.__ve53079a360c86165a33746ac2b5388d9.va00800a74f59579fc5f00667f737974f : !0
}, this))
}, v7a9f14e612f7b84d62f123daca663ebc.prototype = Object.create(vaa3654ee2359ca7a5fd7b1ea9d05a7cc.prototype), v7a9f14e612f7b84d62f123daca663ebc.prototype.constructor = v7a9f14e612f7b84d62f123daca663ebc, v7a9f14e612f7b84d62f123daca663ebc.prototype.v51437c72107c143b80de076f21e2e55c = function (a, b) {
this.floor = a
}, v7a9f14e612f7b84d62f123daca663ebc.prototype.vbc7398e5a6e3c83f57205149871b22f0 = function () {
return !1
}, v7a9f14e612f7b84d62f123daca663ebc.prototype.v766f806a913bf189f72ab62692eac3ec = function () {
return 0
}, v7a9f14e612f7b84d62f123daca663ebc.prototype.v63cdceda7131ea881cabd0b95325fa9c = function () {
return []
}, v7a9f14e612f7b84d62f123daca663ebc.prototype.vf18f6429345d5b7febceb7b2165f23a8 = function (a) {
}, v7a9f14e612f7b84d62f123daca663ebc.prototype.v712f74cff9e94e9c1d1420e2e20dbb92 = function (a) {
}, v7a9f14e612f7b84d62f123daca663ebc.prototype.v20665077b93bc831119718af355f6eff = function () {
return null
}, v7a9f14e612f7b84d62f123daca663ebc.prototype.v2b1d4545d2c4637078a482cf5a03ffe9 = function (a) {
return a.va104dfefa6670b37275d51b041f7e0bd()
}, v7a9f14e612f7b84d62f123daca663ebc.prototype.veed3db4a8d4e5c24efd2b945f3f6dbe6 = function (a) {
return a
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.constructor = v54895b27e34ab34a9ebec1e7553b97a8, v54895b27e34ab34a9ebec1e7553b97a8.prototype.get = function (a) {
if (!_.isUndefined(this[a]))
return this[a];
var b = vbe7993a2ce2422b8674dc4b1008561b0.buildingDef;
return b ? b[a] : void 0
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.init = function (buildingDef) {
this.v4ab57876d963a80ac82916d6f78992c3 = [], this.vabd060f6a0d58969e59b1ace41865f57 = {}, this.id = 'BUILDING', this.vbcc67b3195d920bb8e305b69b1ce5971 = null, this.connectorMap = {}, this.isBuilding = !0, this.events = new va20bdc309a7a3a70da33773c4c0407ec, this.v91d882cc13a1210c1a8462ac0e5bb93e = {}, this.v5016a24825ffee124e6fbacb46933e41 = {}, this.va1fbbae8686a54f73802638e2162e0fb = !0, this.vd9ed44a2e6067baec403d541c041c93b = buildingDef.v73511abc2cb8350064ad0262f9eef45f, this.v119220ccba37c61e304d20eab9a9a1df = 0, _.each(buildingDef.v4ab57876d963a80ac82916d6f78992c3, function (v5fa42f82c9848628c7c011f4543c7a4f) {
this.v119220ccba37c61e304d20eab9a9a1df += v5fa42f82c9848628c7c011f4543c7a4f.height, v5fa42f82c9848628c7c011f4543c7a4f.repeat && (this.v119220ccba37c61e304d20eab9a9a1df += (eval(v5fa42f82c9848628c7c011f4543c7a4f.repeat) - 1) * v5fa42f82c9848628c7c011f4543c7a4f.height)
}, this), _.each(buildingDef.v4ab57876d963a80ac82916d6f78992c3, function (v5fa42f82c9848628c7c011f4543c7a4f) {
var f = this.v8f7623df73bfeb67bdfb3cb3a6955606(buildingDef, _.clone(v5fa42f82c9848628c7c011f4543c7a4f));
if (this.v41cd782998dc50a4e6a7c3a9fb6abf09 || (this.v41cd782998dc50a4e6a7c3a9fb6abf09 = f.get('origin')), v5fa42f82c9848628c7c011f4543c7a4f.repeat) {
var repFloorDef = _.cloneDeep(v5fa42f82c9848628c7c011f4543c7a4f), repeatTimes = eval(repFloorDef.repeat);
for (var i = 0; i < repeatTimes - 1; i++) {
var upperFloorDef = _.clone(repFloorDef);
_.remove(upperFloorDef.va3e27835733301701cc7fecb8709ee91, function (a) {
return a.repeat == 0
}), this.v8f7623df73bfeb67bdfb3cb3a6955606(buildingDef, upperFloorDef)
}
}
}, this), this.calculateSize(), this.vb004322b3cd841543238a4e02930f7fd(this.v4ab57876d963a80ac82916d6f78992c3.length - 1), this.v38b3c97e7bae1eaaf52bb5580150819e(buildingDef.v94e58280e3934d7fdb05857ef480ec6e), this.v8f4dc6e02bd3eb10a9d315638bd4e756 = undefined
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v8f7623df73bfeb67bdfb3cb3a6955606 = function (buildingDef, v5fa42f82c9848628c7c011f4543c7a4f) {
var f = new v53dc83a020dff29b8fb05a08a5017c07;
if (v5fa42f82c9848628c7c011f4543c7a4f.v68811822a2f3508715a495f77e3de41a && (f = eval('new ' + v5fa42f82c9848628c7c011f4543c7a4f.v68811822a2f3508715a495f77e3de41a + '()')), v5fa42f82c9848628c7c011f4543c7a4f.id = v5fa42f82c9848628c7c011f4543c7a4f.id.replace('%id%', this.v4ab57876d963a80ac82916d6f78992c3.length + 1), f.Yoffset = this.v119220ccba37c61e304d20eab9a9a1df, this.v41cd782998dc50a4e6a7c3a9fb6abf09)
var floorOrigin = new Point(this.v41cd782998dc50a4e6a7c3a9fb6abf09.x, f.Yoffset);
return f.init(this, v5fa42f82c9848628c7c011f4543c7a4f, floorOrigin), this.v119220ccba37c61e304d20eab9a9a1df -= v5fa42f82c9848628c7c011f4543c7a4f.height, v5fa42f82c9848628c7c011f4543c7a4f.veebc02bb5fdd51cde243a992b326843c && f.va12bccf58db9ade7723dfc69250c3f2a(v5fa42f82c9848628c7c011f4543c7a4f.veebc02bb5fdd51cde243a992b326843c, v5fa42f82c9848628c7c011f4543c7a4f.veebc02bb5fdd51cde243a992b326843c), _.each(v5fa42f82c9848628c7c011f4543c7a4f.va3e27835733301701cc7fecb8709ee91, function (a) {
var a = _.clone(a), b = buildingDef.v7500636b2e6fc9e6e2ef9cf5149d0453[a.type];
a.id = a.id.replace('%id%', v5fa42f82c9848628c7c011f4543c7a4f.id), f.v45c60a6ab8eff89d80ec8b69243b6c63(a, b)
}, this), f.vd7f9916a26d13c1e673f64fc875636fe(this, v5fa42f82c9848628c7c011f4543c7a4f, floorOrigin), this.v4ab57876d963a80ac82916d6f78992c3.v657e3b6ac90f6a38de6cb0a741ad936e(f), this.vabd060f6a0d58969e59b1ace41865f57[f.id] = f, f
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.vf7e5c37053a15e339c2c2df8a26a637f = function (a, b) {
this.vb02de472cea8ce814a37b51bea76e9db = a, _.each(this.v4ab57876d963a80ac82916d6f78992c3, function (c) {
c.vf7e5c37053a15e339c2c2df8a26a637f(a, b)
})
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v88a2b15c4121e571dfc2eba60c399a98 = function () {
_.each(this.v4ab57876d963a80ac82916d6f78992c3, function (a) {
a.v88a2b15c4121e571dfc2eba60c399a98(this, this)
}, this), delete this.isBuilding, delete this.va1fbbae8686a54f73802638e2162e0fb
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v722981c5d57a8249ee3363033649fa0f = function (a) {
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v040524d79fd2ae5ca93384aa85fd60a4 = function (b) {
var a = this.__v51826f8ea7858340894e6a23ad6004d7[b];
if (!a) {
var c = b.split('.'), d = c.pop(), e = c.join('.'), f = this.v9acd4c1515aecee3f8c20e0fbeabb528(e);
a = f.map.v040524d79fd2ae5ca93384aa85fd60a4(d), this.__v51826f8ea7858340894e6a23ad6004d7[b] = a
}
return a
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.vb004322b3cd841543238a4e02930f7fd = function (a) {
this.vbcc67b3195d920bb8e305b69b1ce5971 = this.v4ab57876d963a80ac82916d6f78992c3[_.ceil(a)], this.vd283b6c2d953ae984b3f92f1bee552fa = a, _.isUndefined(this.__v3edd0e2972d5be9725d957d29e444667) && (this.__v3edd0e2972d5be9725d957d29e444667 = this.vd283b6c2d953ae984b3f92f1bee552fa), A.vf3351ba56d8b7e42f05b30b819a9db80().running || A.vf3351ba56d8b7e42f05b30b819a9db80().v8cf292f4364b69195a11d9e7acf9914b()
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v0a7ed81b16b7b83094869c33a91fa67f = function () {
return this.vd283b6c2d953ae984b3f92f1bee552fa
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.floorProcessAdded = function (a) {
this.events.trigger('processAdded', a), _.isUndefined(this.v91d882cc13a1210c1a8462ac0e5bb93e[a.id]) && (this.v91d882cc13a1210c1a8462ac0e5bb93e[a.id] = []), this.v91d882cc13a1210c1a8462ac0e5bb93e[a.id].v657e3b6ac90f6a38de6cb0a741ad936e(a)
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.floorProcessRemoved = function (a) {
this.events.trigger('processRemoved', a), this.v91d882cc13a1210c1a8462ac0e5bb93e[a.id].v6658d41901465458c34d0790e8086649(a), this.v91d882cc13a1210c1a8462ac0e5bb93e[a.id].length == 0 && delete this.v91d882cc13a1210c1a8462ac0e5bb93e[a.id]
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.stockpileAdded = function (a) {
_.each(a.v483011b294fe19594d57f6d57837112e(), function (b) {
_.isUndefined(this.v5016a24825ffee124e6fbacb46933e41[b]) && (this.v5016a24825ffee124e6fbacb46933e41[b] = []), this.v5016a24825ffee124e6fbacb46933e41[b].v657e3b6ac90f6a38de6cb0a741ad936e(a)
}, this)
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.stockpileRemoved = function (a) {
_.each(a.v483011b294fe19594d57f6d57837112e(), function (b) {
this.v5016a24825ffee124e6fbacb46933e41[b].v6658d41901465458c34d0790e8086649(a), this.v5016a24825ffee124e6fbacb46933e41[b].length == 0 && delete this.v5016a24825ffee124e6fbacb46933e41[b]
}, this)
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.stockpileComponentChanged = function (b, c, a) {
this.v5016a24825ffee124e6fbacb46933e41[c] && this.v5016a24825ffee124e6fbacb46933e41[c].v6658d41901465458c34d0790e8086649(b), _.isUndefined(this.v5016a24825ffee124e6fbacb46933e41[a]) && (this.v5016a24825ffee124e6fbacb46933e41[a] = []), this.v5016a24825ffee124e6fbacb46933e41[a].v657e3b6ac90f6a38de6cb0a741ad936e(b)
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.ve71cc10441dd3b41666e016fd7b74111 = function (c, a, d, e, b) {
_.isUndefined(b) && (b = !0), _.isUndefined(this.__v7c24d1e4623d365e87a100c9731a4d34[a]) && (this.__v7c24d1e4623d365e87a100c9731a4d34[a] = []), this.__v7c24d1e4623d365e87a100c9731a4d34[a].v657e3b6ac90f6a38de6cb0a741ad936e({
node: c,
doorImage: d,
reservedForWalking: e,
active: b
})
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v38b3c97e7bae1eaaf52bb5580150819e = function (a) {
_.each(_.keys(this.__v7c24d1e4623d365e87a100c9731a4d34), function (d) {
var c = this.__v7c24d1e4623d365e87a100c9731a4d34[d], b = a[d];
_.isUndefined(b) && (b = a['default']), _.each(c, function (a) {
_.each(c, function (c) {
if (a.node != c.node) {
var d = new v56d2db3a957c006c8270c232ac724ddf;
d.init(a.node, a.doorImage, c.node, c.doorImage, b.v7ce86f426ce3fcb24bfb995ffd6813db, a.active && c.active);
var e = d.va897c8ee334d1dace0549c19a610ca1d();
this.connectorMap[e] || (this.connectorMap[e] = []), this.connectorMap[e].v657e3b6ac90f6a38de6cb0a741ad936e(d), a.node.v1d3670bc0be0346b3cafb5fff98f54ad(c.node, a.doorImage, a.reservedForWalking), c.node.v1d3670bc0be0346b3cafb5fff98f54ad(a.node, c.doorImage, c.reservedForWalking)
}
}, this)
}, this)
}, this)
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.on = function (d, e, b) {
if (b && A.vf3351ba56d8b7e42f05b30b819a9db80().v720508d5c3659b419d8d583088d93da4('showAnchorPoints')) {
var a = A.vf3351ba56d8b7e42f05b30b819a9db80().context;
a.save();
var c = A.vf3351ba56d8b7e42f05b30b819a9db80().v65c637ea0baf5919932c148aeb4cc9f9[A.vf3351ba56d8b7e42f05b30b819a9db80().v8eb1fe4496c57b0b4b8e014fcb5be9f3];
a.scale(c, c), b.v619b603066d5f27748e4a3124b1e6820(a), a.restore()
}
_.some(this.vbcc67b3195d920bb8e305b69b1ce5971.va3e27835733301701cc7fecb8709ee91, function (c) {
var a = c.on(d, e, b);
return a
}) || this.vbcc67b3195d920bb8e305b69b1ce5971.on(d, e, b)
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v63cdceda7131ea881cabd0b95325fa9c = function () {
var b = [];
for (var a = 0; a < this.v4ab57876d963a80ac82916d6f78992c3.length && a <= _.ceil(this.vd283b6c2d953ae984b3f92f1bee552fa); a++) {
var c = this.v4ab57876d963a80ac82916d6f78992c3[a] == this.vbcc67b3195d920bb8e305b69b1ce5971, f = a == _.floor(this.vd283b6c2d953ae984b3f92f1bee552fa) || a == _.ceil(this.vd283b6c2d953ae984b3f92f1bee552fa), d = 1 - (_.ceil(this.vd283b6c2d953ae984b3f92f1bee552fa) - this.vd283b6c2d953ae984b3f92f1bee552fa);
if (dFloor = this.v4ab57876d963a80ac82916d6f78992c3[a].v63cdceda7131ea881cabd0b95325fa9c(f), c || _.each(dFloor, function (a) {
U.v90c847f353145812a35b4d545170829a(a, function (a) {
a.clickable = !1
})
}), c && (this.vd283b6c2d953ae984b3f92f1bee552fa != this.__v3edd0e2972d5be9725d957d29e444667 || d != 1) && (_.each(dFloor, function (a) {
U.v90c847f353145812a35b4d545170829a(a, function (a) {
a.alpha = d
})
}), this.__v3edd0e2972d5be9725d957d29e444667 = this.vd283b6c2d953ae984b3f92f1bee552fa), dFloor.length > 0) {
var e = new vbe6dfab6e47ff3d003a423092f4c35ef(new Point(a, a), null);
e.drawablesAfter.v65232cbf984e4899d32f63ff906d72ec(dFloor), b.v657e3b6ac90f6a38de6cb0a741ad936e(e)
}
}
return A.vf3351ba56d8b7e42f05b30b819a9db80().v720508d5c3659b419d8d583088d93da4('showConnectors') && (b[b.length - 1].vbd5fe1eb0166be3d3c5abf3a4c60cc14 = _.bind(this.v85264d2a58eef35dd31e00ee8f93da00, this)), A.vf3351ba56d8b7e42f05b30b819a9db80().v720508d5c3659b419d8d583088d93da4('showAnchorPoints') && _.each(b, function (a) {
U.v90c847f353145812a35b4d545170829a(a, function (a) {
a.v7a9ce2c4e74e75d3cc4ccdef17e58262 = !0, a.clickable = !0
})
}), b
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.calculateSize = function () {
var a;
_.forEach(this.v4ab57876d963a80ac82916d6f78992c3, function (b) {
a = b.v976d94451d41416eefdf0cf9fbf2687f(a)
}), _.isObject(a) && a.left.x > 300 && _.forEach(this.v4ab57876d963a80ac82916d6f78992c3, function (b) {
b.v73838d794171144fc0cfd3b229eb225a(a.left.x - 100)
});
var b = _.max(this.v4ab57876d963a80ac82916d6f78992c3, function (a) {
return a.floorSize.x
});
if (!_.isObject(b))
return;
var c = _.max(this.v4ab57876d963a80ac82916d6f78992c3, function (a) {
return a.floorSize.y
});
this.ve696785c2a260d91957e836c7c2bf97b = new Point(b.floorSize.x, c.floorSize.y), this.ve696785c2a260d91957e836c7c2bf97b.y += _.max(this.v4ab57876d963a80ac82916d6f78992c3, 'Yoffset').Yoffset - _.min(this.v4ab57876d963a80ac82916d6f78992c3, 'Yoffset').Yoffset
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v155bbbd00c2ac91934e210b0c23fc00b = function () {
return this.ve696785c2a260d91957e836c7c2bf97b
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v85264d2a58eef35dd31e00ee8f93da00 = function (c, a) {
var b = [];
_.each(this.get('connectorMap'), function (a) {
_.each(a, function (a) {
a.active && (a.vd962ceca76d42b59c8365450ac557b48.floor.vf34bb46669bbd0ddf7bae18eb347ca19() == this.vbcc67b3195d920bb8e305b69b1ce5971 || a.vd1b16db4d79a56a1ae36c4ccbf04dfaa.floor.vf34bb46669bbd0ddf7bae18eb347ca19() == this.vbcc67b3195d920bb8e305b69b1ce5971) && b.v657e3b6ac90f6a38de6cb0a741ad936e([
a.vd962ceca76d42b59c8365450ac557b48,
a.vd1b16db4d79a56a1ae36c4ccbf04dfaa
])
}, this)
}, this), _.each(b, function (d) {
var b = d[0].va104dfefa6670b37275d51b041f7e0bd(), c = d[1].va104dfefa6670b37275d51b041f7e0bd();
a.beginPath(), a.moveTo(b.x, b.y), a.lineWidth = 2, a.v2cfccdae09c4bc7c589324299403bc1b = 'square', a.lineTo(c.x, c.y), a.strokeStyle = '#FF0000', a.stroke()
}), this.vbcc67b3195d920bb8e305b69b1ce5971.v85264d2a58eef35dd31e00ee8f93da00(c, a), _.each(this.vbcc67b3195d920bb8e305b69b1ce5971.va3e27835733301701cc7fecb8709ee91, function (b) {
b.v85264d2a58eef35dd31e00ee8f93da00(c, a)
})
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v1388c0652c7784096140d2f154108949 = function (b) {
var a = [];
return _.each(this.get('connectorMap'), function (c) {
_.each(c, function (c) {
(c.vd962ceca76d42b59c8365450ac557b48 == b || c.vd1b16db4d79a56a1ae36c4ccbf04dfaa == b) && a.v657e3b6ac90f6a38de6cb0a741ad936e(c)
}, this)
}, this), a
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.va67977e167a9efd933bd15b7b1f8b384 = function (i, h, a, g) {
_.isUndefined(a) && (a = new v89365b2f63ef0ee3d846cbed55db4c60(this));
var f = i.floor;
if (h.floor)
var b = h, c = h.floor;
else
var c = h, b = null;
var e;
if (e = this.vb9c055ed60166aaa548853f380d9513a(f, c), !e) {
var r = !1, t = !1;
if (f.vf34bb46669bbd0ddf7bae18eb347ca19() != c.vf34bb46669bbd0ddf7bae18eb347ca19() && (t = !0, r = this.v7d054ce360f7e1487b7a50ddeb0a0150(f, i, c, b, a, g)), !r) {
var k = [[f.vfb795903b518f9f4e880b4c49b8a1cc4]], o = [f.vfb795903b518f9f4e880b4c49b8a1cc4], j;
while (k.length > 0 && !j) {
var u = [];
_.forEach(k, _.bind(function (a) {
var b = this.v9acd4c1515aecee3f8c20e0fbeabb528(_.last(a)), d = this.v6ed96f1bfa669482f938a246e007396d(b);
_.forEach(d, _.bind(function (d) {
var e = this.v9acd4c1515aecee3f8c20e0fbeabb528(d);
if (!t && b.vf34bb46669bbd0ddf7bae18eb347ca19() != e.vf34bb46669bbd0ddf7bae18eb347ca19())
return;
if (e == c)
a.v657e3b6ac90f6a38de6cb0a741ad936e(d), j = a;
else if (!_.contains(o, d)) {
o.v657e3b6ac90f6a38de6cb0a741ad936e(d);
var f = _.clone(a);
f.v657e3b6ac90f6a38de6cb0a741ad936e(d), u.v657e3b6ac90f6a38de6cb0a741ad936e(f)
}
}, this))
}, this)), k = u
}
if (j) {
var d = i, w = [];
for (var m = 1; m < j.length; m++) {
var s = this.v9acd4c1515aecee3f8c20e0fbeabb528(j[m]);
if (d.floor != s) {
var n = d.floor.va67977e167a9efd933bd15b7b1f8b384(d, s, g);
if (!n)
return null;
w.v657e3b6ac90f6a38de6cb0a741ad936e(n), a.append(n)
}
d = a.vd19a4a5f65708121730ad2134000bba8()
}
if (b) {
var d = a.vd19a4a5f65708121730ad2134000bba8();
if (d != b) {
var l = c.va67977e167a9efd933bd15b7b1f8b384(a.vd19a4a5f65708121730ad2134000bba8(), b, g);
if (l == null)
return l = c.va67977e167a9efd933bd15b7b1f8b384(a.vd19a4a5f65708121730ad2134000bba8(), b, g), null;
a.append(l)
}
}
return a
}
}
}
if (e) {
if (e.length > 1) {
var v = new vcfe882df616f899ab32c02dee5b814a6(U.v780d5490d68f7caff665f700355b2585(i.get('name') + h.get('name')));
e = U.shuffle(e, v)
}
var q = _.filter(_.map(e, function (d) {
var a = new v89365b2f63ef0ee3d846cbed55db4c60(this), e = f.va67977e167a9efd933bd15b7b1f8b384(i, d.v8e0e12e7b87ddf0f3e01c951e9fd8eb2(this), g);
if (!e)
return !1;
if (a.append(e), a.v325bd4829fa1d6afa8ef2a08e8f9fbb4(d), b) {
var h = c.va67977e167a9efd933bd15b7b1f8b384(d.vd19a4a5f65708121730ad2134000bba8(this), b, g);
return h ? (a.append(h), a) : !1
}
return a
}, this));
if (q.length > 0) {
var p = _.min(q, function (a) {
return a.v85f7358b5fd3abf0082918fe1449bd43()
});
p && a.append(p)
}
}
return a.v949af90f9fd713ce3224875373c95712.length == 0 && (a = null), a
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v7d054ce360f7e1487b7a50ddeb0a0150 = function (o, m, k, j, f, g) {
var i = _.filter(o.vf34bb46669bbd0ddf7bae18eb347ca19().va3e27835733301701cc7fecb8709ee91, function (a) {
return a.get('roomClass') == 'elevator'
});
elevatorChoices = _.clone(i);
var b = !1;
while (b == 0) {
if (elevatorChoices.length == 0)
return !1;
var h = _.round(.4 * U.v780d5490d68f7caff665f700355b2585(m.id) + .7 * U.v780d5490d68f7caff665f700355b2585(j.id)) % elevatorChoices.length, a = elevatorChoices[h], d = this.va67977e167a9efd933bd15b7b1f8b384(m, a.map.nodes[0], undefined, g);
if (!d) {
_.remove(elevatorChoices, a);
continue
}
var l = k.vf34bb46669bbd0ddf7bae18eb347ca19().id + '.' + elevatorChoices[h].id.split('_')[0] + '_' + k.vf34bb46669bbd0ddf7bae18eb347ca19().id, c = this.v9acd4c1515aecee3f8c20e0fbeabb528(l);
if (!c) {
_.remove(elevatorChoices, a);
continue
}
var n = this.va67977e167a9efd933bd15b7b1f8b384(a.map.nodes[0], c.map.nodes[0], undefined, g), e = this.va67977e167a9efd933bd15b7b1f8b384(c.map.nodes[0], j, undefined, g);
if (!e) {
_.remove(elevatorChoices, a);
continue
}
f.append(d), f.append(n), f.append(e), b = !0
}
return b
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.vb9c055ed60166aaa548853f380d9513a = function (c, d) {
var e = [
c.vfb795903b518f9f4e880b4c49b8a1cc4 + '-' + d.vfb795903b518f9f4e880b4c49b8a1cc4,
d.vfb795903b518f9f4e880b4c49b8a1cc4 + '-' + c.vfb795903b518f9f4e880b4c49b8a1cc4
];
for (var a = 0; a < 2; a++) {
var f = e[a], b = this.get('connectorMap')[f];
if (b)
return _.filter(b, function (a) {
return a.active
})
}
return undefined
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v6ed96f1bfa669482f938a246e007396d = function (a) {
if (this.__vf71eb095135a5fd2ec895b0c2671bd19[a.vfb795903b518f9f4e880b4c49b8a1cc4])
return this.__vf71eb095135a5fd2ec895b0c2671bd19[a.vfb795903b518f9f4e880b4c49b8a1cc4];
var b = _.reduce(_.keys(this.get('connectorMap')), function (c, d) {
var b = d.split('-');
return b[0] == a.vfb795903b518f9f4e880b4c49b8a1cc4 && c.push(b[1]), c
}, []);
return this.__vf71eb095135a5fd2ec895b0c2671bd19[a.vfb795903b518f9f4e880b4c49b8a1cc4] = b, b
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v72ad336ca6ba368e4d91e7845323994e = function (a) {
this.va00a957d57df34fc7ec9917463ef957d = a
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.vd4d816df61e2fa01756017294208be37 = function () {
return this.va00a957d57df34fc7ec9917463ef957d ? vbe7993a2ce2422b8674dc4b1008561b0.processModel.vf0d5d10f878c6353392b2bce0ecadd41(this.va00a957d57df34fc7ec9917463ef957d) : vbe7993a2ce2422b8674dc4b1008561b0.processModel
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.vc1792baba15d2339c86a18fb66a1e7aa = function (b) {
var a = _.max(this.v91d882cc13a1210c1a8462ac0e5bb93e[b], function (a) {
return a.v1b95e6414a687628443a8eabd7a50dcd() - a.v663f282ce3c0fa7668713b3a24b959f4()
});
return a
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v1c4e0fc858aff91765072431fb0f1667 = function (b, c) {
var a = _.find(this.v91d882cc13a1210c1a8462ac0e5bb93e[b], function (a) {
return a.v8f5963a11ba9b52abb4fe96b8499807c(c)
});
return a
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v17ac3388f3a81bb6e1e058189c427da3 = function (a) {
return this.v91d882cc13a1210c1a8462ac0e5bb93e[a]
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v64f03a9f5234fbb15a5be5e1c215583b = function (a) {
if (a.process instanceof v1d9545606d219a6b6b917d8df442d16e)
return a.process;
var b = _.filter(_.keys(this.v91d882cc13a1210c1a8462ac0e5bb93e), _.bind(function (b) {
return this.v91d882cc13a1210c1a8462ac0e5bb93e[b][0].vace71abf9d5901df5eecbb5bd062e24d(a)
}, this));
b = _.sortBy(b, function (b) {
return b == a.va5aeabb6e87882b192668878e68c8e84().vb9c21cc6078079f5a2a35c8173654141 ? 0 : 1
});
for (var c = 0; c < b.length; c++) {
var e = b[c];
for (var d = 0; d < this.v91d882cc13a1210c1a8462ac0e5bb93e[e].length; d++) {
var f = this.v91d882cc13a1210c1a8462ac0e5bb93e[e][d];
if (f.v8f5963a11ba9b52abb4fe96b8499807c(a))
return f
}
}
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.va924f1045e993c66a2dff7e796ba1931 = function (a) {
p = this.v64f03a9f5234fbb15a5be5e1c215583b(a), p.floor.va924f1045e993c66a2dff7e796ba1931(a, p)
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v7af923ffd4e8528da94cf2f9d65f5a62 = function () {
return _.map(this.v4ab57876d963a80ac82916d6f78992c3, function (a) {
return _.isString(a.label) ? a.label : U.v70383056c36094038ae41c98942ba0e9(a.id) + ' Floor'
})
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v62610616175bfb16462c6dbe358b44a2 = function (a, c, d) {
var b = _.filter(this.v5016a24825ffee124e6fbacb46933e41[a.v689f5106fac3c1a533ea723821591a86()], function (b) {
return b.v2c37f623f454a52d448a98459acecdeb(a, c, d)
});
return b
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v9acd4c1515aecee3f8c20e0fbeabb528 = function (d) {
var a = this.__v74fab4a8125c7261a2a5254b1078115c[d];
if (!a) {
var b = d.split('.');
if (a = this.vabd060f6a0d58969e59b1ace41865f57[b[0]], a)
for (var c = 1; c < b.length; c++)
a = a.v34e963bfb56c68976333fc7a32831f01[b[c]]
}
return this.__v74fab4a8125c7261a2a5254b1078115c[d] = a, a
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v76114003837f7b417c3dcf4f251347de = function () {
_.each(this.v4ab57876d963a80ac82916d6f78992c3, function (a) {
a.v76114003837f7b417c3dcf4f251347de()
})
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.vb9aa81381af28c2b166a81949dda700c = function () {
if (!this.v73511abc2cb8350064ad0262f9eef45f) {
var a = this.v9acd4c1515aecee3f8c20e0fbeabb528(this.vd9ed44a2e6067baec403d541c041c93b.floor);
this.v73511abc2cb8350064ad0262f9eef45f = a.map.vaed5f6f2d7e4bc585e9fd131eba0ec3c(a.v4541032622e9bef1a24a2380fa9cad62(this.vd9ed44a2e6067baec403d541c041c93b.node.x, this.vd9ed44a2e6067baec403d541c041c93b.node.y))
}
return this.v73511abc2cb8350064ad0262f9eef45f
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.vdf8941c95fd3b01bc3faf4d551874805 = function (c, b) {
if (this.v73511abc2cb8350064ad0262f9eef45f = c, b) {
var a = new v5bafaa73e0e648e291bbab7ad5a30af0;
a.init(this.v73511abc2cb8350064ad0262f9eef45f, b, .15), this.v73511abc2cb8350064ad0262f9eef45f.floor.v8c52e48d2249455ab4047b00df6378cd(a, this.v73511abc2cb8350064ad0262f9eef45f.name)
}
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v730fe048756826c7986666142f3c0e41 = function (a) {
if (!_.isNumber(a))
return this.vfa2863c7918c37c5d43dc39b52f3e809;
this.vfa2863c7918c37c5d43dc39b52f3e809 = a
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v12129b226b1ece8fa7f6ff9a9d03bfc1 = function (a) {
_.forEach(this.v4ab57876d963a80ac82916d6f78992c3, function (b) {
b.ve56700b46f269a876508c62683f8215e(a)
})
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v02b41e1b8a33b84fd00460ae7e0ba2a6 = function (a) {
return counts = {}, _.forEach(a, _.bind(function (a) {
counts[a] = 0, _.forEach(this.v5016a24825ffee124e6fbacb46933e41[a], function (b) {
counts[a] += b.maxAllowed()
})
}, this)), counts
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v8b59a54da60de34d063dc4f1de672fae = function (a) {
return counts = {}, _.forEach(a, _.bind(function (a) {
counts[a] = 0, _.forEach(this.v5016a24825ffee124e6fbacb46933e41[a], function (b) {
counts[a] += b.vb8fcc44f955f43b26c0b823a57be5f8f()
})
}, this)), counts
}, v54895b27e34ab34a9ebec1e7553b97a8.prototype.v59048620b41c1916b149a651f3cd4656 = function (a, b) {
_.forEach(this.v4ab57876d963a80ac82916d6f78992c3, function (c) {
c.v59048620b41c1916b149a651f3cd4656(a, b)
})
}, v53dc83a020dff29b8fb05a08a5017c07.prototype = Object.create(v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype), v53dc83a020dff29b8fb05a08a5017c07.prototype.constructor = v53dc83a020dff29b8fb05a08a5017c07, v53dc83a020dff29b8fb05a08a5017c07.prototype.get = function (a) {
if (!_.isUndefined(this[a]))
return this[a];
var b = vbe7993a2ce2422b8674dc4b1008561b0.buildingDef;
return b ? b.v9acd4c1515aecee3f8c20e0fbeabb528(this.vfb795903b518f9f4e880b4c49b8a1cc4)[a] : void 0
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.init = function (n, a, l) {
this.va3e27835733301701cc7fecb8709ee91 = [], this.v34e963bfb56c68976333fc7a32831f01 = {}, this.v2120cb007a5002fcaab35f1072cb6659 = {}, this.isBuilding = !1, this.va1fbbae8686a54f73802638e2162e0fb = !0, this.v9c295abc1f29dd4da23129862a7f3e9e = [], this.parent = n, this.v5fa42f82c9848628c7c011f4543c7a4f = a, _.isFunction(this.parent.floorProcessAdded) && this.events.v49ad792f5229d4be359d5c4aa4e18617(this.parent, 'processAdded', 'floorProcessAdded'), _.isFunction(this.parent.floorProcessRemoved) && this.events.v49ad792f5229d4be359d5c4aa4e18617(this.parent, 'processRemoved', 'floorProcessRemoved'), _.isFunction(this.parent.stockpileAdded) && this.events.v49ad792f5229d4be359d5c4aa4e18617(this.parent, 'stockpileAdded', 'stockpileAdded'), _.isFunction(this.parent.stockpileRemoved) && this.events.v49ad792f5229d4be359d5c4aa4e18617(this.parent, 'stockpileRemoved', 'stockpileRemoved'), _.isFunction(this.parent.stockpileComponentChanged) && this.events.v49ad792f5229d4be359d5c4aa4e18617(this.parent, 'stockpileComponentChanged', 'stockpileComponentChanged'), this.height = a.height, _.isUndefined(a.contextMenuClass) || (this.contextMenuClass = a.contextMenuClass), this.highlightSelectedNodes = !0, _.isUndefined(a.highlightSelectedNodes) || (this.highlightSelectedNodes = a.highlightSelectedNodes), this.id = a.id, _.isString(a.label) && (this.label = a.label), a.v14429bd85fdd195c82740ceda3d2f761 && (this.v14429bd85fdd195c82740ceda3d2f761 = a.v14429bd85fdd195c82740ceda3d2f761), a.v78f3ac2233ab2982488fa06761a1c670 && (this.v78f3ac2233ab2982488fa06761a1c670 = a.v78f3ac2233ab2982488fa06761a1c670), this.vfb795903b518f9f4e880b4c49b8a1cc4 = this.id, _.isUndefined(this.parent.vfb795903b518f9f4e880b4c49b8a1cc4) || (this.vfb795903b518f9f4e880b4c49b8a1cc4 = this.parent.vfb795903b518f9f4e880b4c49b8a1cc4 + '.' + this.id), this.gridSize = a.gridSize, this.nodeSize = a.nodeSize, this.nodeSpread = {
x: Math.sqrt(2 * this.nodeSize.x * this.nodeSize.x),
y: Math.sqrt(2 * this.nodeSize.y * this.nodeSize.y)
};
var h = this.nodeSpread.x * (Math.max(this.gridSize.y, this.gridSize.x * .9) + 1) + this.nodeSpread.x * (Math.max(this.gridSize.x, this.gridSize.y * .9) + 1), m = h / 2 + (_.isUndefined(this.height) ? 0 : this.height);
h += 150, this.floorSize = new Point(h, m), l == undefined ? this.origin = new Point(h / 2, this.Yoffset) : (this.origin = new Point(l.x, l.y), this.origin.y += this.nodeSpread.x / 2), this.map = new v00c9f4d149099c55b010722e6778dab5;
var i = a.v36e9d243fedf8471698ce7dba082cf7b;
_.isArray(a.v36e9d243fedf8471698ce7dba082cf7b) && (i = a.v36e9d243fedf8471698ce7dba082cf7b.join('|')), i = i.replace(/%id%/g, this.id);
var j = i.split('|'), f = 0;
this.v7107fdace2851a23a30309bd13ba7119 = {};
for (var c = 0; c < this.gridSize.x; c++)
for (var d = 0; d < this.gridSize.y; d++) {
var e = j[f++];
if (e.startsWith('#'))
continue;
var g = this.vd4b812106241ad35180ec35536ba68dd(c, d), b = new v0df9bf38e174113f03f32babe1a54bce(g.x, g.y, this.v4541032622e9bef1a24a2380fa9cad62(c, d), c, d);
b.init(this);
var k = this.vee669780255160bd2d239a52da51beb5((c + d) % 2);
k && b.v35539ff1d279ace5d966cb6af9772e2c(k), this.map.v722981c5d57a8249ee3363033649fa0f(b, null), this.v00ea12d41c005c0583af4e5c5fdf6996().v722981c5d57a8249ee3363033649fa0f(b)
}
this.map.v2b1c86a367609fc64a4532c7c9c82e3e(), f = 0;
for (var c = 0; c < this.gridSize.x; c++)
for (var d = 0; d < this.gridSize.y; d++) {
var e = j[f++], b = this.map.vaed5f6f2d7e4bc585e9fd131eba0ec3c(this.v4541032622e9bef1a24a2380fa9cad62(c, d));
_.forEach(e.split(','), _.bind(function (a) {
this.v4a1b83f4e1784401dd914d59acdca1dc(a, b, c, d)
}, this))
}
if (a.v3b0c534c7e6d2c4f53c316d1bfe85d97) {
for (var f = 0; f < a.v3b0c534c7e6d2c4f53c316d1bfe85d97.length; f++) {
var e = a.v3b0c534c7e6d2c4f53c316d1bfe85d97[f], g = this.vd4b812106241ad35180ec35536ba68dd(e.location.x, e.location.y), b = new v0df9bf38e174113f03f32babe1a54bce(g.x, g.y, 'extraNode' + f, 'E', 'E');
b.init(this), this.map.v722981c5d57a8249ee3363033649fa0f(b, null), this.v00ea12d41c005c0583af4e5c5fdf6996().v722981c5d57a8249ee3363033649fa0f(b), this.v4a1b83f4e1784401dd914d59acdca1dc(e.v36e9d243fedf8471698ce7dba082cf7b, b), _.forEach(e.vf1d1c1fee3af5f3b2d3437e6e6f9b314, _.bind(function (c) {
var a = this.map.vaed5f6f2d7e4bc585e9fd131eba0ec3c(c);
a != null && this.map.link(b, a)
}, this))
}
this.map.v2b1c86a367609fc64a4532c7c9c82e3e()
}
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vd7f9916a26d13c1e673f64fc875636fe = function (i, d, j) {
var a = d.v36e9d243fedf8471698ce7dba082cf7b;
_.isArray(d.v36e9d243fedf8471698ce7dba082cf7b) && (a = d.v36e9d243fedf8471698ce7dba082cf7b.join('|')), a = a.replace(/%id%/g, this.id);
var e = a.split('|'), g = 0;
for (var c = 0; c < this.gridSize.x; c++)
for (var b = 0; b < this.gridSize.y; b++) {
var f = e[g++], h = this.map.vaed5f6f2d7e4bc585e9fd131eba0ec3c(this.v4541032622e9bef1a24a2380fa9cad62(c, b));
this.va31ec088505faa8d2125d70da3121c6d(f, h, c, b)
}
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v4a1b83f4e1784401dd914d59acdca1dc = function (nodeDef, node, x, y) {
var segs = nodeDef.split(':');
if (segs[0] == 'room') {
if (upperCornerOffset = new Point(-.5, -.5), segs.length > 2) {
var offsets = segs[2].split('/');
upperCornerOffset.x += parseFloat(offsets[0]), offsets.length > 1 && (upperCornerOffset.y += parseFloat(offsets[1]))
}
var pt = U.vd4b812106241ad35180ec35536ba68dd(x + upperCornerOffset.x, y + upperCornerOffset.y, this.get('origin').x, this.get('origin').y, this.nodeSpread.x, this.nodeSpread.y);
this.v7107fdace2851a23a30309bd13ba7119[segs[1]] = pt
}
if (node)
if (segs[0] == 'cn') {
var v840095fd0c5216ef15bff6c0baa0179e = segs[1], connectorImage = segs[2], connectorReservedForWalking = !0, active = !0;
segs.length > 3 && (connectorReservedForWalking = segs[3] != 0), segs.length > 4 && (active = segs[4] != 0), this.v00ea12d41c005c0583af4e5c5fdf6996().ve71cc10441dd3b41666e016fd7b74111(node, v840095fd0c5216ef15bff6c0baa0179e, connectorImage, connectorReservedForWalking, active)
} else if (segs[0] == 'ft') {
var veebc02bb5fdd51cde243a992b326843c = segs[1], row, flipX, v15b635f9dcfed0c558d5a8701d21e13d;
if (segs.length > 2) {
var parms = segs[2];
parms = parms.split('/'), row = parseInt(parms[0]), flipX = parseInt(parms[1]), parms.length > 2 && (v15b635f9dcfed0c558d5a8701d21e13d = parms[2])
}
node.v35539ff1d279ace5d966cb6af9772e2c(veebc02bb5fdd51cde243a992b326843c, row, flipX, v15b635f9dcfed0c558d5a8701d21e13d)
} else if (segs[0] == 'obj' || segs[0] == 'blockingObj' || segs[0] == 'customObj') {
var object = {}, vca695f055719e0b5fb5f35bb12d0778f = 2;
if (segs[0] == 'customObj' ? (object.className = segs[2], eval('object.backingObject = new ' + segs[2] + '()'), object.backingObject.init(segs[1]), vca695f055719e0b5fb5f35bb12d0778f = 3) : object.imageName = segs[1], object.plane = 0, segs.length > vca695f055719e0b5fb5f35bb12d0778f) {
var parms = segs[vca695f055719e0b5fb5f35bb12d0778f];
parms = parms.split('/'), object.row = parseInt(parms[0]), object.flipX = parseInt(parms[1]), parms.length > 2 && (object.vb1046f0eb3d95b01630f2e0ce815e952 = parseInt(parms[2]), object.vc56db26a7d220393e60c22b49b5e2d89 = parseInt(parms[3]), parms.length > 4 && (object.plane = parseFloat(parms[4])))
}
node.v15b635f9dcfed0c558d5a8701d21e13d(object), segs[0] == 'blockingObj' && (node.blocked = !0)
} else if (segs[0] == 'wall') {
var img, plane = 0;
segs.length > 2 && (img = segs[2]), segs.length > 3 && (plane = parseFloat(segs[3])), node.v09e9678cb102f06d6c0b2f6db4cd0197(segs[1], img, plane);
var cannotGetToNode = this.v18406fb5454623d4d4551953567200d2(node, segs[1]);
_.isObject(cannotGetToNode) && this.map.v5f9677f6574a04c460650f52a22d80aa(node, cannotGetToNode)
} else if (segs[0] == 'door') {
var img;
segs.length > 2 && (img = segs[2]), node.v09e9678cb102f06d6c0b2f6db4cd0197(segs[1], img)
} else
segs[0] == 'cmm' ? node.ve41ad249e09601f5fc33fcd206954ce1(segs[1]) : v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v4a1b83f4e1784401dd914d59acdca1dc.call(this, nodeDef, node)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.va31ec088505faa8d2125d70da3121c6d = function (b, a, c, d) {
defs = b.split(','), _.each(defs, function (h) {
var b = h.split(':');
if (b[0] == 'facade') {
this != this.vf34bb46669bbd0ddf7bae18eb347ca19() && console.error('Cannot add facade element to room, only a parent level floor');
var f;
b.length > 3 && (f = b[3]);
var g;
if (b.length > 4 && (g = b[4]), this.vff3c6869de70c949cdbfee3f9fbbdfc3(c, d, b[1], b[2], f, g), a) {
var e = this.v18406fb5454623d4d4551953567200d2(a, b[1]);
_.isObject(e) && this.map.v5f9677f6574a04c460650f52a22d80aa(a, e)
}
}
}, this)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vb7642999cf7b55b701b1966360ca046a = function () {
return this.get('nodeSize').x
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vc879f504381e711e96bae53fe5556588 = function () {
return this.get('nodeSize').y
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v45c60a6ab8eff89d80ec8b69243b6c63 = function (roomDef, roomTypeDef) {
if (roomTypeDef.v347a7ad660468a7541d28630c2728b31)
eval('var br = new ' + roomTypeDef.v347a7ad660468a7541d28630c2728b31 + '();');
else
var br = new v53dc83a020dff29b8fb05a08a5017c07;
return roomTypeDef.id = roomDef.id, _.isString(roomTypeDef.processModel) && br.vdaef14ebc9318f78757cf0fb437b3253(roomTypeDef.processModel), br.drawIfNotTop = roomDef.drawIfNotTop, br.v20d4c7851f6556bfa5122dfd459d6e95 = roomDef.type, br.roomClass = roomTypeDef.v20d4c7851f6556bfa5122dfd459d6e95, br.outside = roomTypeDef.outside, br.init(this, roomTypeDef, this.v7107fdace2851a23a30309bd13ba7119[roomDef.id]), roomTypeDef.veebc02bb5fdd51cde243a992b326843c && br.va12bccf58db9ade7723dfc69250c3f2a(roomTypeDef.veebc02bb5fdd51cde243a992b326843c), _.isUndefined(roomTypeDef.contextMenuClass) || (br.contextMenuClass = roomTypeDef.contextMenuClass), _.isUndefined(roomTypeDef.highlightSelectedNodes) || (br.highlightSelectedNodes = roomTypeDef.highlightSelectedNodes), this.va3e27835733301701cc7fecb8709ee91.v657e3b6ac90f6a38de6cb0a741ad936e(br), this.v34e963bfb56c68976333fc7a32831f01[roomDef.id] = br, this.va3e27835733301701cc7fecb8709ee91 = _.sortBy(this.va3e27835733301701cc7fecb8709ee91, function (a) {
return a.get('origin').y
}), roomDef.v017a71cac755b39973524dc496de3b64 && _.each(roomDef.v017a71cac755b39973524dc496de3b64, function (a) {
_.each(br.map.nodes, function (b) {
b.vb315d139cf821a44e798df6c77ce15b7(a)
})
}), this.vb02de472cea8ce814a37b51bea76e9db && br.vf7e5c37053a15e339c2c2df8a26a637f(this.vb02de472cea8ce814a37b51bea76e9db), br
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vff3c6869de70c949cdbfee3f9fbbdfc3 = function (e, c, k, l, m, n) {
var f = 2, b = this.get('origin'), a = this.get('nodeSpread'), j = .525, h, g, d;
if (k == 'NE')
h = !1, g = 1, d = U.vd4b812106241ad35180ec35536ba68dd(e, c - j, b.x, b.y, a.x, a.y), c == 0 && (f = 0);
else if (k == 'NW') {
if (h = !0, g = 1, n) {
d = U.vd4b812106241ad35180ec35536ba68dd(e - j - .01, c + .27, b.x, b.y, a.x, a.y), this.v9c295abc1f29dd4da23129862a7f3e9e.v657e3b6ac90f6a38de6cb0a741ad936e({
ir: l + 'Left',
flipX: h,
row: g,
pt: d,
type: f,
col: 1
}), d = U.vd4b812106241ad35180ec35536ba68dd(e - j - .09, c - .34, b.x, b.y, a.x, a.y), this.v9c295abc1f29dd4da23129862a7f3e9e.v657e3b6ac90f6a38de6cb0a741ad936e({
ir: l + 'Right',
flipX: h,
row: g,
pt: d,
type: f,
col: 0
});
return
}
d = U.vd4b812106241ad35180ec35536ba68dd(e - j, c, b.x, b.y, a.x, a.y), e == 0 && (f = 0)
} else if (k == 'SE') {
h = !0, g = 0, d = U.vd4b812106241ad35180ec35536ba68dd(e + j - .02, c, b.x, b.y, a.x, a.y);
var i = this.vec5054ea51538850f6d04952bb64c1a5(U.vd4b812106241ad35180ec35536ba68dd(e + 1, c, b.x, b.y, a.x, a.y));
if (!_.isObject(i)) {
var i = this.vec5054ea51538850f6d04952bb64c1a5(U.vd4b812106241ad35180ec35536ba68dd(e + 1, c + 1, b.x, b.y, a.x, a.y));
_.isObject(i) || (f = 1)
}
} else if (k == 'SW') {
h = !1, g = 0, d = U.vd4b812106241ad35180ec35536ba68dd(e + .02, c + j, b.x, b.y, a.x, a.y);
var i = this.vec5054ea51538850f6d04952bb64c1a5(U.vd4b812106241ad35180ec35536ba68dd(e, c + 1, b.x, b.y, a.x, a.y));
_.isObject(i) || (f = 1)
} else
k == 'UP' && (h = !1, g = 0, d = U.vd4b812106241ad35180ec35536ba68dd(e, c, b.x, b.y, a.x, a.y), d.y -= this.height, f = 1);
_.isUndefined(m) || (g = m), this.v9c295abc1f29dd4da23129862a7f3e9e.v657e3b6ac90f6a38de6cb0a741ad936e({
ir: l,
flipX: h,
row: g,
pt: d,
type: f
})
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vf7e5c37053a15e339c2c2df8a26a637f = function (b, a) {
this.vb02de472cea8ce814a37b51bea76e9db = b, _.each(this.va3e27835733301701cc7fecb8709ee91, function (c) {
c.vf7e5c37053a15e339c2c2df8a26a637f(b, a)
}), _.isFunction(a) && a(this)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v88a2b15c4121e571dfc2eba60c399a98 = function (a, b) {
this.parent = b, delete this.va1fbbae8686a54f73802638e2162e0fb, delete this.nodeTileImages, delete this.isBuilding, delete this.processModel, delete this.drawIfNotTop, delete this.v5fa42f82c9848628c7c011f4543c7a4f, delete this.contextMenuClass, delete this.highlightSelectedNodes, delete this.nodeSpread, delete this.origin, delete this.gridSize, delete this.nodeSize, delete this.floorSize, delete this.Yoffset, delete this.roomClass, delete this.v20d4c7851f6556bfa5122dfd459d6e95, delete this.v2120cb007a5002fcaab35f1072cb6659, delete this.v7107fdace2851a23a30309bd13ba7119, _.each(this.va3e27835733301701cc7fecb8709ee91, function (b) {
b.v88a2b15c4121e571dfc2eba60c399a98(a, this)
}, this), _.each(this.map.nodes, function (b, c, d) {
b.v88a2b15c4121e571dfc2eba60c399a98(a, this)
}, this)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v63cdceda7131ea881cabd0b95325fa9c = function (c) {
_.isUndefined(c) ? this.va0b87d22633922f87a46ae1e285b62fd = this.vf34bb46669bbd0ddf7bae18eb347ca19().va0b87d22633922f87a46ae1e285b62fd : this.va0b87d22633922f87a46ae1e285b62fd = c;
var b = [];
if (A.vf3351ba56d8b7e42f05b30b819a9db80().v720508d5c3659b419d8d583088d93da4('showWalkable') != this.v4d7bca1590675a0a3aa8996509e0a9e7 && (this.v4d7bca1590675a0a3aa8996509e0a9e7 = A.vf3351ba56d8b7e42f05b30b819a9db80().v720508d5c3659b419d8d583088d93da4('showWalkable'), delete this.__v38591f95bfc71f5c3398a38d89b81b4c), !this.va0b87d22633922f87a46ae1e285b62fd)
a = [], _.each(this.va3e27835733301701cc7fecb8709ee91, function (b) {
!this.va0b87d22633922f87a46ae1e285b62fd && b.get('drawIfNotTop') && (a.v65232cbf984e4899d32f63ff906d72ec(b.ve82ebb2dbb8dd7983ec7fa3afb12e0b5()), a.v65232cbf984e4899d32f63ff906d72ec(b.vaa91db525d6f4458dc181d49ce74b672()), a.v65232cbf984e4899d32f63ff906d72ec(b.v3c93b1508950a3eac5280f1c7feb8de8()), a.v65232cbf984e4899d32f63ff906d72ec(b.vc660b4c35129911bac218e7eea8a2421()))
}, this), a.sort(vbe6dfab6e47ff3d003a423092f4c35ef.v3647f4d98b63ac6bd7af663f228c044d), b.v65232cbf984e4899d32f63ff906d72ec(a), b.v65232cbf984e4899d32f63ff906d72ec(this.v53def95704ae78d4a09ee57b2ae0c495(2)), b.v65232cbf984e4899d32f63ff906d72ec(this.v53def95704ae78d4a09ee57b2ae0c495(1));
else {
b.v65232cbf984e4899d32f63ff906d72ec(this.vaa91db525d6f4458dc181d49ce74b672()), b.v65232cbf984e4899d32f63ff906d72ec(this.v53def95704ae78d4a09ee57b2ae0c495(0));
var a = this.ve82ebb2dbb8dd7983ec7fa3afb12e0b5();
a.v65232cbf984e4899d32f63ff906d72ec(this.v3c93b1508950a3eac5280f1c7feb8de8()), a.v65232cbf984e4899d32f63ff906d72ec(this.v53def95704ae78d4a09ee57b2ae0c495(2)), a.v65232cbf984e4899d32f63ff906d72ec(this.vc660b4c35129911bac218e7eea8a2421()), a.v65232cbf984e4899d32f63ff906d72ec(this.v53def95704ae78d4a09ee57b2ae0c495(1)), a.sort(vbe6dfab6e47ff3d003a423092f4c35ef.v3647f4d98b63ac6bd7af663f228c044d), b.v65232cbf984e4899d32f63ff906d72ec(a)
}
return b
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vaa91db525d6f4458dc181d49ce74b672 = function () {
if (this.__v38591f95bfc71f5c3398a38d89b81b4c)
return delete this.__v38591f95bfc71f5c3398a38d89b81b4c.vbd5fe1eb0166be3d3c5abf3a4c60cc14, this.__v38591f95bfc71f5c3398a38d89b81b4c.cache = !0, this.__v38591f95bfc71f5c3398a38d89b81b4c.v7a9ce2c4e74e75d3cc4ccdef17e58262 = !1, this.vdda94aac0c3f7a2f87e160acf719044d(this.__v38591f95bfc71f5c3398a38d89b81b4c) == 1 && (this.__v38591f95bfc71f5c3398a38d89b81b4c.v7a9ce2c4e74e75d3cc4ccdef17e58262 = !0, this.__v38591f95bfc71f5c3398a38d89b81b4c.cache = !1), [this.__v38591f95bfc71f5c3398a38d89b81b4c];
var a = v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.vaa91db525d6f4458dc181d49ce74b672.call(this);
if (_.each(this.va3e27835733301701cc7fecb8709ee91, function (b) {
a.v65232cbf984e4899d32f63ff906d72ec(b.vaa91db525d6f4458dc181d49ce74b672())
}, this), this == this.vf34bb46669bbd0ddf7bae18eb347ca19() && a.length > 0) {
a.sort(vbe6dfab6e47ff3d003a423092f4c35ef.v3647f4d98b63ac6bd7af663f228c044d);
var b = _.rest(a);
return d = _.first(a), d.drawablesAfter.v65232cbf984e4899d32f63ff906d72ec(b), d.cache = !0, this.__v38591f95bfc71f5c3398a38d89b81b4c = d, d.v492347134bdd86399872b16353ba6e51 = _.bind(this.vd1af36e95c4eb43c39b8b9d0a2102307, this), [d]
} else
return a
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v73838d794171144fc0cfd3b229eb225a = function (a) {
delete this.__v38591f95bfc71f5c3398a38d89b81b4c, delete this.__v3b76eb4b3116c4a227cd083a828ec4c4, this.floorSize.x -= a, this.origin.x -= a, _.forEach(_.values(this.v7107fdace2851a23a30309bd13ba7119), function (b) {
b.x -= a
}), _.forEach(_.values(this.v9c295abc1f29dd4da23129862a7f3e9e), function (b) {
b.pt.x -= a
}), _.forEach(this.map.nodes, function (c) {
var b = c.va104dfefa6670b37275d51b041f7e0bd();
b.x -= a, c.v00602c11b99a49d289192ceabbdd2f22(b)
}), _.forEach(this.va3e27835733301701cc7fecb8709ee91, function (b) {
b.v73838d794171144fc0cfd3b229eb225a(a)
})
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v976d94451d41416eefdf0cf9fbf2687f = function (a) {
return _.forEach(this.map.nodes, function (b) {
a || (a = {
left: new Point(999999999, 0),
right: new Point(-999999999, 0),
top: new Point(0, 99999999),
bottom: new Point(0, -99999999)
});
var c = b.v9e48743ee7ac9d76cab9f116889dbe07('N');
c.y < a.top.y && (a.top = c);
var d = b.v9e48743ee7ac9d76cab9f116889dbe07('E');
d.x > a.right.x && (a.right = d);
var e = b.v9e48743ee7ac9d76cab9f116889dbe07('W');
e.x < a.left.x && (a.left = e);
var f = b.v9e48743ee7ac9d76cab9f116889dbe07('S');
f.y > a.bottom.y && (a.bottom = f)
}), _.forEach(this.va3e27835733301701cc7fecb8709ee91, function (b) {
a = b.v976d94451d41416eefdf0cf9fbf2687f(a)
}), a
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vd1af36e95c4eb43c39b8b9d0a2102307 = function (q, a) {
var d = 6, n = 40, i = 0, c = this.v976d94451d41416eefdf0cf9fbf2687f();
a.save(), a.fillStyle = '#3D3D3D', b = c.right, f = -.5, h = b.x / 2 - 10, g = d, a.transform(1, f, i, 1, g, h), a.fillRect(b.x, b.y, c.bottom.x - b.x - d, n), a.restore(), a.save(), a.fillStyle = '#424242';
var b = c.left, f = .5, h = -b.x / 2 - 8, g = -d;
a.transform(1, f, i, 1, g, h), a.fillRect(b.x, b.y, c.bottom.x - b.x + d, n), a.restore();
var m, j = new Point(c.top.x, c.top.y + this.get('nodeSpread').y / 2), e = this.vbb9a445f5effdfc91e5ff102d0db998f(j);
if (!e)
for (var k = 0; k < this.va3e27835733301701cc7fecb8709ee91.length; k++) {
var o = this.va3e27835733301701cc7fecb8709ee91[k];
if (j = new Point(c.top.x, c.top.y + o.get('nodeSpread').y / 2), e = o.vbb9a445f5effdfc91e5ff102d0db998f(j), e)
break
}
if (e) {
var l = e.vf93f3bc9de434b4e3edffe1cc3d0af28();
l.length > 0 && (m = e.v022775d301f206d9bed2a018edaa26c4(l[0]))
}
if (m) {
a.save(), a.fillStyle = '#424242';
var p = vdc7354c3cd5c7774f4dbfeba28eba934.instance.imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(m[0].imageAlias);
b = c.top, f = -.5, i = 2, h = b.x / 2 - p.f[0][6] + 40, g = -2 * (b.y + d) + 1, a.globalAlpha = 1 - this.v00ea12d41c005c0583af4e5c5fdf6996().v730fe048756826c7986666142f3c0e41(), a.transform(1, f, i, 1, g, h), a.fillRect(b.x, b.y, d + 4, d - 1.5), a.restore()
}
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vdda94aac0c3f7a2f87e160acf719044d = function (d) {
var a = !1;
if (this.__v435d7f241ea641efc8227e38c949836f != null && this.get('highlightSelectedNodes') && (selNodeLoc = this.__v435d7f241ea641efc8227e38c949836f.va104dfefa6670b37275d51b041f7e0bd(), a = !0), this.v2716bc551998973eacb2e1c5866afc4e != null && this.__v99af750f6ff9ba2929ddad7384e04a9c != null && (a = !0), !a) {
for (var b = 0; b < this.va3e27835733301701cc7fecb8709ee91.length; b++) {
var f = this.va3e27835733301701cc7fecb8709ee91[b].vdda94aac0c3f7a2f87e160acf719044d(d);
if (f)
return !0
}
return !1
} else {
for (var c = 0; c < this.map.nodes.length; c++) {
var e = this.map.nodes[c];
if (nLoc = e.va104dfefa6670b37275d51b041f7e0bd(), this.__v435d7f241ea641efc8227e38c949836f != null && this.get('highlightSelectedNodes') && nLoc.x == selNodeLoc.x && nLoc.y == selNodeLoc.y)
return d.vbd5fe1eb0166be3d3c5abf3a4c60cc14 = _.bind(this.vff658cd4776a9073d66ec26bd40a09f0, this, selNodeLoc, this.__v9638a1d067d2b0e5e6ca187ca9c47a89.selectedNode), !0;
if (this.v2716bc551998973eacb2e1c5866afc4e != null && this.__v99af750f6ff9ba2929ddad7384e04a9c != null && e.id == this.v2716bc551998973eacb2e1c5866afc4e.id) {
var g = this.__v99af750f6ff9ba2929ddad7384e04a9c.v1cb62fba49731d3783250f6ec91a4a99();
return d.vbd5fe1eb0166be3d3c5abf3a4c60cc14 = _.bind(this.vc431427f2184b8b50131306583c23896, this, nLoc, g, this.__v9638a1d067d2b0e5e6ca187ca9c47a89.dropNode), !0
}
}
return !1
}
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v3c93b1508950a3eac5280f1c7feb8de8 = function () {
var a = v9d38cc6cb3fc9bb07cd7a3d22d5be7a7.prototype.v3c93b1508950a3eac5280f1c7feb8de8.call(this);
return _.each(this.map.nodes, function (b) {
a.v65232cbf984e4899d32f63ff906d72ec(b.vc8d568911c0654ae9fb51a311aec3299())
}), a.v65232cbf984e4899d32f63ff906d72ec(this.v4bbdf5d43b7ea89f239b42c4d45a3e02()), _.each(this.va3e27835733301701cc7fecb8709ee91, function (c) {
if (!(this.va0b87d22633922f87a46ae1e285b62fd || c.vf148d4dc681a56a1ea606d88342ad1b2()))
return;
var b = [];
b.v65232cbf984e4899d32f63ff906d72ec(c.ve82ebb2dbb8dd7983ec7fa3afb12e0b5()), b.v65232cbf984e4899d32f63ff906d72ec(c.v3c93b1508950a3eac5280f1c7feb8de8()), b.v65232cbf984e4899d32f63ff906d72ec(c.vc660b4c35129911bac218e7eea8a2421()), a.v65232cbf984e4899d32f63ff906d72ec(b)
}, this), a
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vc660b4c35129911bac218e7eea8a2421 = function () {
var d = [], g = 1 - this.v3ce73950cbd6e574a2689be09bcdd432();
if (g > 0) {
var b = this.get('gridSize');
for (var e = 0; e < b.x; e++) {
var a = this.map.vaed5f6f2d7e4bc585e9fd131eba0ec3c(this.v4541032622e9bef1a24a2380fa9cad62(e, b.y - 1));
if (a) {
var c = a.v827148c4e3bf67c99ce751d3f5f8e446(['SW']);
d.v65232cbf984e4899d32f63ff906d72ec(c)
}
}
for (var f = 0; f < b.y; f++) {
var a = this.map.vaed5f6f2d7e4bc585e9fd131eba0ec3c(this.v4541032622e9bef1a24a2380fa9cad62(b.x - 1, f));
if (a) {
var c = a.v827148c4e3bf67c99ce751d3f5f8e446(['SE']);
d.v65232cbf984e4899d32f63ff906d72ec(c)
}
}
}
return d
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.ve82ebb2dbb8dd7983ec7fa3afb12e0b5 = function () {
var c = [], g = 1 - this.v3ce73950cbd6e574a2689be09bcdd432();
if (g > 0) {
var f = this.get('gridSize');
for (var d = 0; d < f.x; d++) {
var a = this.map.vaed5f6f2d7e4bc585e9fd131eba0ec3c(this.v4541032622e9bef1a24a2380fa9cad62(d, 0));
if (a) {
var b = a.v827148c4e3bf67c99ce751d3f5f8e446(['NE']);
c.v65232cbf984e4899d32f63ff906d72ec(b)
}
}
for (var e = 0; e < f.y; e++) {
var a = this.map.vaed5f6f2d7e4bc585e9fd131eba0ec3c(this.v4541032622e9bef1a24a2380fa9cad62(0, e));
if (a) {
var b = a.v827148c4e3bf67c99ce751d3f5f8e446(['NW']);
c.v65232cbf984e4899d32f63ff906d72ec(b)
}
}
}
return c
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v3ce73950cbd6e574a2689be09bcdd432 = function () {
if (this.vf148d4dc681a56a1ea606d88342ad1b2())
if (this.vf34bb46669bbd0ddf7bae18eb347ca19().va0b87d22633922f87a46ae1e285b62fd)
var a = this.v00ea12d41c005c0583af4e5c5fdf6996().v730fe048756826c7986666142f3c0e41();
else
var a = 0;
else
var a = this.v00ea12d41c005c0583af4e5c5fdf6996().v730fe048756826c7986666142f3c0e41();
return a
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v4bbdf5d43b7ea89f239b42c4d45a3e02 = function () {
var d = [], f = 1 - this.v00ea12d41c005c0583af4e5c5fdf6996().v730fe048756826c7986666142f3c0e41();
if (f > 0) {
var c = this.get('gridSize');
for (var a = 0; a < c.y; a++)
for (var b = 0; b < c.x; b++) {
var e = this.map.vaed5f6f2d7e4bc585e9fd131eba0ec3c(this.v4541032622e9bef1a24a2380fa9cad62(b, a));
if (e) {
sides = [], b > 0 && sides.v657e3b6ac90f6a38de6cb0a741ad936e('NW'), a > 0 && sides.v657e3b6ac90f6a38de6cb0a741ad936e('NE'), b < c.x - 1 && sides.v657e3b6ac90f6a38de6cb0a741ad936e('SE'), a < c.y - 1 && sides.v657e3b6ac90f6a38de6cb0a741ad936e('SW');
var g = e.v827148c4e3bf67c99ce751d3f5f8e446(sides);
d.v65232cbf984e4899d32f63ff906d72ec(g)
}
}
}
return d
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v53def95704ae78d4a09ee57b2ae0c495 = function (c) {
var b = [], a = 1;
return this.va0b87d22633922f87a46ae1e285b62fd && (a = 1 - this.v00ea12d41c005c0583af4e5c5fdf6996().v730fe048756826c7986666142f3c0e41()), a > 0 && _.each(this.v9c295abc1f29dd4da23129862a7f3e9e, function (e) {
if (e.type == c) {
var d = new vbe6dfab6e47ff3d003a423092f4c35ef(e.pt, e.ir);
d.flipX = e.flipX, d.row = e.row, e.col && (d.col = e.col), d.alpha = a, d.clickable = !1, d.cache = !0, d.v7a9ce2c4e74e75d3cc4ccdef17e58262 = !1, c == 1 && (d.plane = 9), b.v657e3b6ac90f6a38de6cb0a741ad936e(d)
}
}, this), b
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vec5054ea51538850f6d04952bb64c1a5 = function (b) {
var a = v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vbb9a445f5effdfc91e5ff102d0db998f.call(this, b);
if (a != null)
return a;
var c = _.find(this.va3e27835733301701cc7fecb8709ee91, function (d) {
var e = d.get('origin'), f = d.get('nodeSpread'), c = d.get('gridSize');
return Math.abs(b.x - e.x) > (c.x + c.y) * f.x ? !1 : b.y - e.y > (c.x + c.y) * f.x || b.y - e.y < 0 ? !1 : (a = d.vbb9a445f5effdfc91e5ff102d0db998f(b), a != null ? !0 : !1)
}, this);
return a
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v00ea12d41c005c0583af4e5c5fdf6996 = function () {
if (!this.__v519a6ae1e78a9ec1d7cb6e5b5b099dfc) {
this.__v519a6ae1e78a9ec1d7cb6e5b5b099dfc = this;
while (_.isObject(this.__v519a6ae1e78a9ec1d7cb6e5b5b099dfc.parent) && !this.__v519a6ae1e78a9ec1d7cb6e5b5b099dfc.get('isBuilding'))
this.__v519a6ae1e78a9ec1d7cb6e5b5b099dfc = this.__v519a6ae1e78a9ec1d7cb6e5b5b099dfc.parent
}
return this.__v519a6ae1e78a9ec1d7cb6e5b5b099dfc
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vf34bb46669bbd0ddf7bae18eb347ca19 = function () {
if (!this.__v225e85728e59eb23b22ad2c2aa99d152) {
this.__v225e85728e59eb23b22ad2c2aa99d152 = this;
while (_.isObject(this.__v225e85728e59eb23b22ad2c2aa99d152.parent) && !this.__v225e85728e59eb23b22ad2c2aa99d152.parent.get('isBuilding'))
this.__v225e85728e59eb23b22ad2c2aa99d152 = this.__v225e85728e59eb23b22ad2c2aa99d152.parent
}
return this.__v225e85728e59eb23b22ad2c2aa99d152
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v58c8a35734f623c13cc6bf17c21b1dbf = function (a) {
return this.v34e963bfb56c68976333fc7a32831f01[a]
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vd4d816df61e2fa01756017294208be37 = function () {
return this.v00ea12d41c005c0583af4e5c5fdf6996().vd4d816df61e2fa01756017294208be37()
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v885450442aaf99b7925483476cac29ae = function (vc83e194f8a9088c0911ab3a13a9bb903, nodeName, dy, params, suppressJournalAndAlerts, event, ignoreCost) {
if (A.vb06c3a859d6038b4515bccc5f1f891ef() && !A.v2d3853f5fd5eaf5f5afa5e5eecb5239a().vc2b525abb59a9681f2bf5f5a46fb4bde)
return Alert.show(U.vbacce6a42a9154e1b2ea38c9b107fbb2('That action is not enabled in this assignment.')), !1;
var floorProcess, segs = vc83e194f8a9088c0911ab3a13a9bb903.split('#');
vc83e194f8a9088c0911ab3a13a9bb903 = segs[0];
var processData = this.vd4d816df61e2fa01756017294208be37().v91d882cc13a1210c1a8462ac0e5bb93e[vc83e194f8a9088c0911ab3a13a9bb903];
if (!_.isObject(processData))
throw 'Could not add process with id: ' + vc83e194f8a9088c0911ab3a13a9bb903;
_.isString(processData.vf498344b709544bc47259199ad07b006) ? eval('floorProcess = new ' + processData.vf498344b709544bc47259199ad07b006 + '()') : floorProcess = new vaa3654ee2359ca7a5fd7b1ea9d05a7cc, floorProcess.init(processData, dy, params), segs.length > 1 && (floorProcess.id += '.' + segs[1]);
var rc = v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v885450442aaf99b7925483476cac29ae.call(this, floorProcess, nodeName, dy, params, suppressJournalAndAlerts, event, ignoreCost);
return rc ? floorProcess : rc
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.floorProcessAdded = function (a) {
this.events.trigger('processAdded', a)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.stockpileAdded = function (a) {
this.events.trigger('stockpileAdded', a)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.floorProcessRemoved = function (a) {
this.events.trigger('processRemoved', a)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.stockpileRemoved = function (a) {
this.events.trigger('stockpileRemoved', a)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.stockpileComponentChanged = function (a, b, c) {
this.events.trigger('stockpileComponentChanged', a, b, c)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vc1792baba15d2339c86a18fb66a1e7aa = function (b) {
var a = v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.vc1792baba15d2339c86a18fb66a1e7aa.call(this, b);
return _.isObject(a) ? a : this.v00ea12d41c005c0583af4e5c5fdf6996().vc1792baba15d2339c86a18fb66a1e7aa(b)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.va67977e167a9efd933bd15b7b1f8b384 = function (c, a, d) {
var e = c.get('id') + '|' + a.get('id');
d && (e += JSON.stringify(d));
var b = this.__vab32eb4048ac52487ddf8c9a74123769[e];
if (_.isUndefined(b)) {
if (a.floor)
var g = a, f = a.floor;
else
var f = a, g = null;
b = new v89365b2f63ef0ee3d846cbed55db4c60(this.v00ea12d41c005c0583af4e5c5fdf6996());
var h = c.floor;
if (h == f)
return v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.va67977e167a9efd933bd15b7b1f8b384.call(this, c, a, d);
b = this.v00ea12d41c005c0583af4e5c5fdf6996().va67977e167a9efd933bd15b7b1f8b384(c, a, b, d)
}
return this.__vab32eb4048ac52487ddf8c9a74123769[e] = b, b
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v62610616175bfb16462c6dbe358b44a2 = function (a, b, c, d) {
return d === !0 ? this.v00ea12d41c005c0583af4e5c5fdf6996().v62610616175bfb16462c6dbe358b44a2(a, b, c) : v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v62610616175bfb16462c6dbe358b44a2.call(this, a, b, c)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v014a0ed4a91628fb9a62faf3c2fa7035 = function (a, b, c, d) {
return v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v014a0ed4a91628fb9a62faf3c2fa7035.call(this, a, b, c, d)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v76114003837f7b417c3dcf4f251347de = function () {
console.group('Floor: ' + this.vfb795903b518f9f4e880b4c49b8a1cc4), _.each(this.vfa70ca62e66b1581fc05bef8ab9d26f9, function (a) {
_.isFunction(a.getName) && console.v57a3c8fe83e4816e7f187a6398fdb914(a.getName())
}), _.each(this.va3e27835733301701cc7fecb8709ee91, function (a) {
a.v76114003837f7b417c3dcf4f251347de()
}), console.vacba2f325f58127d521eb5ed314bac03()
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.vf148d4dc681a56a1ea606d88342ad1b2 = function () {
return this.get('outside')
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v12129b226b1ece8fa7f6ff9a9d03bfc1 = function (a) {
this.v00ea12d41c005c0583af4e5c5fdf6996().v12129b226b1ece8fa7f6ff9a9d03bfc1(a)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.ve56700b46f269a876508c62683f8215e = function (a) {
delete this.__v38591f95bfc71f5c3398a38d89b81b4c, _.forEach(this.va3e27835733301701cc7fecb8709ee91, function (b) {
b.ve56700b46f269a876508c62683f8215e(a)
}), v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v12129b226b1ece8fa7f6ff9a9d03bfc1.call(this, a)
}, v53dc83a020dff29b8fb05a08a5017c07.prototype.v59048620b41c1916b149a651f3cd4656 = function (a, b) {
_.forEach(this.va3e27835733301701cc7fecb8709ee91, function (c) {
c.v59048620b41c1916b149a651f3cd4656(a, b)
}), v4b5ac2920c4dbdfe7625c792c4f2ffff.prototype.v59048620b41c1916b149a651f3cd4656.call(this, a, b)
}, v56d2db3a957c006c8270c232ac724ddf.prototype.constructor = v56d2db3a957c006c8270c232ac724ddf, v56d2db3a957c006c8270c232ac724ddf.prototype.init = function (a, b, c, d, e, f) {
this.vd962ceca76d42b59c8365450ac557b48 = a, this.vd1b16db4d79a56a1ae36c4ccbf04dfaa = c, this.v17fb5de6fadeeb3691b433a62c42d15f = b, this.v79b682aaad59b313bacd078fd612193f = d, this.v7ce86f426ce3fcb24bfb995ffd6813db = e, this.active = f, this.v34548e3b2e83cfbdfb3df6df9109d7c2 = 0
}, v56d2db3a957c006c8270c232ac724ddf.prototype.va897c8ee334d1dace0549c19a610ca1d = function () {
return this.vd962ceca76d42b59c8365450ac557b48.v0366d21dc43357eeda76e807ccea3fe8() + '-' + this.vd1b16db4d79a56a1ae36c4ccbf04dfaa.v0366d21dc43357eeda76e807ccea3fe8()
}, v56d2db3a957c006c8270c232ac724ddf.prototype.v8e0e12e7b87ddf0f3e01c951e9fd8eb2 = function (a) {
return a.v040524d79fd2ae5ca93384aa85fd60a4(this.vd962ceca76d42b59c8365450ac557b48.id)
}, v56d2db3a957c006c8270c232ac724ddf.prototype.vd19a4a5f65708121730ad2134000bba8 = function (a) {
return a.v040524d79fd2ae5ca93384aa85fd60a4(this.vd1b16db4d79a56a1ae36c4ccbf04dfaa.id)
}, v56d2db3a957c006c8270c232ac724ddf.prototype.ve2a6088b32145ebd8e567a5b5ea2b081 = function (b) {
var a = new ve5efc04c89b9805e9d580437dd8af057;
return a.nodes = [
this.v8e0e12e7b87ddf0f3e01c951e9fd8eb2(b),
this.vd19a4a5f65708121730ad2134000bba8(b)
], a
}, v56d2db3a957c006c8270c232ac724ddf.prototype.ve185849ce9265b887e774f0e9e63fecf = function () {
return this.ve2a6088b32145ebd8e567a5b5ea2b081().ve185849ce9265b887e774f0e9e63fecf()
}, v56d2db3a957c006c8270c232ac724ddf.prototype.v24a5bad1a9e7094af710e71709d44d96 = function () {
return this.v7ce86f426ce3fcb24bfb995ffd6813db
}, v56d2db3a957c006c8270c232ac724ddf.prototype.v47395643ac2cb0f13bb8f0eb8498cc29 = function () {
return new Point(Math.round((this.vd962ceca76d42b59c8365450ac557b48.x + this.vd1b16db4d79a56a1ae36c4ccbf04dfaa.x) / 2), Math.round((this.vd962ceca76d42b59c8365450ac557b48.y + this.vd1b16db4d79a56a1ae36c4ccbf04dfaa.y) / 2))
}, v56d2db3a957c006c8270c232ac724ddf.prototype.vf297387b7980c01f445bb4846af42e53 = function (c) {
var d = c.floor.v00ea12d41c005c0583af4e5c5fdf6996(), a = this.v8e0e12e7b87ddf0f3e01c951e9fd8eb2(d).floor, b = this.vd19a4a5f65708121730ad2134000bba8(d).floor;
_.isObject(a) && _.isObject(b) && a !== b && c.v7ef2d88c25e42e369b9351a7caf6fbb6(a, b), this.v34548e3b2e83cfbdfb3df6df9109d7c2--, this.v34548e3b2e83cfbdfb3df6df9109d7c2 <= 0 && this.v6f5dbd8a0eeddd5d27fc8a6de6eb2403(c, '')
}, v56d2db3a957c006c8270c232ac724ddf.prototype.v72302962421c7dfbf114aad24ee17c5d = function (a) {
this.v6f5dbd8a0eeddd5d27fc8a6de6eb2403(a, 'Open'), this.v34548e3b2e83cfbdfb3df6df9109d7c2 = Math.max(1, this.v34548e3b2e83cfbdfb3df6df9109d7c2 + 1)
}, v56d2db3a957c006c8270c232ac724ddf.prototype.v6f5dbd8a0eeddd5d27fc8a6de6eb2403 = function (c, b) {
var a = c.floor.v00ea12d41c005c0583af4e5c5fdf6996();
this.v17fb5de6fadeeb3691b433a62c42d15f && this.v8e0e12e7b87ddf0f3e01c951e9fd8eb2(a).v1d3670bc0be0346b3cafb5fff98f54ad(this.vd19a4a5f65708121730ad2134000bba8(a), this.v17fb5de6fadeeb3691b433a62c42d15f + b), this.v79b682aaad59b313bacd078fd612193f && this.vd19a4a5f65708121730ad2134000bba8(a).v1d3670bc0be0346b3cafb5fff98f54ad(this.v8e0e12e7b87ddf0f3e01c951e9fd8eb2(a), this.v79b682aaad59b313bacd078fd612193f + b)
}, v56d2db3a957c006c8270c232ac724ddf.prototype.vfc4ce389989df7914c2e56144c663a96 = function (a) {
this.v34548e3b2e83cfbdfb3df6df9109d7c2 = U.vb57864c2b24994a28548be73b11c2d8f, this.v6f5dbd8a0eeddd5d27fc8a6de6eb2403(a, 'Open')
}, v56d2db3a957c006c8270c232ac724ddf.prototype.v531c892e358081159b4ce7bff102d599 = function (a) {
this.v34548e3b2e83cfbdfb3df6df9109d7c2 = 0, this.v6f5dbd8a0eeddd5d27fc8a6de6eb2403(a, '')
}, v0df9bf38e174113f03f32babe1a54bce.prototype = Object.create(v9bc041960e80b10064b57b79a0d88cd9.prototype), v0df9bf38e174113f03f32babe1a54bce.prototype.constructor = v0df9bf38e174113f03f32babe1a54bce, v0df9bf38e174113f03f32babe1a54bce.prototype.init = function (c) {
v9bc041960e80b10064b57b79a0d88cd9.prototype.init.call(this, c), this.va1fbbae8686a54f73802638e2162e0fb = !0, this.blocked = !1;
var b = this.name, a = c;
while (_.isObject(a.parent))
b = a.id + '.' + b, a = a.parent;
this.id = b
}, v0df9bf38e174113f03f32babe1a54bce.prototype.get = function (a) {
if (!_.isUndefined(this[a]))
return this[a];
var b = vbe7993a2ce2422b8674dc4b1008561b0.buildingDef;
return b ? b.v040524d79fd2ae5ca93384aa85fd60a4(this.id)[a] : void 0
}, v0df9bf38e174113f03f32babe1a54bce.prototype.vb508106b6842aacd405108a2fea8f059 = function () {
return _.isUndefined(this.get('width')) ? this.floor.vb7642999cf7b55b701b1966360ca046a() : this.get('width')
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v8779877904cbdb3f6d302edade8b3ab9 = function () {
return _.isUndefined(this.get('height')) ? this.floor.vc879f504381e711e96bae53fe5556588() : this.get('height')
}, v0df9bf38e174113f03f32babe1a54bce.prototype.va104dfefa6670b37275d51b041f7e0bd = function () {
return this.__v1e7620a6b386b1f8b6720fd6b3c3f296 || (this.__v1e7620a6b386b1f8b6720fd6b3c3f296 = this.get('x'), this.__v29f5087228082bb2a73fb2389bc66929 = this.get('y')), new Point(this.__v1e7620a6b386b1f8b6720fd6b3c3f296, this.__v29f5087228082bb2a73fb2389bc66929)
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v00602c11b99a49d289192ceabbdd2f22 = function (a) {
v9bc041960e80b10064b57b79a0d88cd9.prototype.v00602c11b99a49d289192ceabbdd2f22.call(this, a), delete this.__v1e7620a6b386b1f8b6720fd6b3c3f296, delete this.__v29f5087228082bb2a73fb2389bc66929, delete this.__vbcc689c942faa74e017fb71b44a0c45c, this.__va5ed1f5c9d4109c4b9412f79445f0c16 = {}
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v88a2b15c4121e571dfc2eba60c399a98 = function (a, b) {
this.floor = b, delete this.connected, delete this.wallImages, delete this.objects, delete this.height, delete this.width, delete this.baseTileImageName, delete this.x, delete this.y, delete this.weight, delete this.name, delete this.nodes, delete this.va1fbbae8686a54f73802638e2162e0fb, a.v722981c5d57a8249ee3363033649fa0f(this)
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v63cdceda7131ea881cabd0b95325fa9c = function () {
var a = v9bc041960e80b10064b57b79a0d88cd9.prototype.v63cdceda7131ea881cabd0b95325fa9c.call(this);
return this.__v110c23a2973f4eaaf75140f5984fea2b || (this.__v110c23a2973f4eaaf75140f5984fea2b = a[0].plane, this.floor.va3e27835733301701cc7fecb8709ee91 && this.floor.va3e27835733301701cc7fecb8709ee91.length > 0 && this.__v110c23a2973f4eaaf75140f5984fea2b--), a[0].plane = this.__v110c23a2973f4eaaf75140f5984fea2b, a
}, v0df9bf38e174113f03f32babe1a54bce.prototype.vc8d568911c0654ae9fb51a311aec3299 = function () {
if (this.__vbcc689c942faa74e017fb71b44a0c45c)
return this.__vbcc689c942faa74e017fb71b44a0c45c;
else {
var a = [], b = this.get('objects');
return b && b.length > 0 && _.each(_.groupBy(b, 'plane'), function (e, g) {
var c;
_.isUndefined(e[0].backingObject) ? c = new vbe6dfab6e47ff3d003a423092f4c35ef(this.va104dfefa6670b37275d51b041f7e0bd(), e[0].imageName) : c = e[0].backingObject.v63cdceda7131ea881cabd0b95325fa9c(this.va104dfefa6670b37275d51b041f7e0bd(), this, e[0]), c.plane = g;
for (var f = 0; f < e.length; f++) {
var b = e[f];
if (f == 0)
var d = c;
else {
var d;
_.isUndefined(b.backingObject) ? d = new vbe6dfab6e47ff3d003a423092f4c35ef(this.va104dfefa6670b37275d51b041f7e0bd(), b.imageName) : d = b.backingObject.v63cdceda7131ea881cabd0b95325fa9c(this.va104dfefa6670b37275d51b041f7e0bd(), this, b), c.v7c056d47dc2a91151c75a39bfcb33041 += b.imageName
}
d.clickable = !1, b.flipX && (d.flipX = b.flipX), b.row && (d.row = b.row), b.vb1046f0eb3d95b01630f2e0ce815e952 && (d.location.x += b.vb1046f0eb3d95b01630f2e0ce815e952), b.vc56db26a7d220393e60c22b49b5e2d89 && (d.location.y += b.vc56db26a7d220393e60c22b49b5e2d89), f > 0 && c.drawablesAfter.v657e3b6ac90f6a38de6cb0a741ad936e(d)
}
_.isUndefined(c.cache) && (c.cache = !0), c.v7a9ce2c4e74e75d3cc4ccdef17e58262 = !1, a.v657e3b6ac90f6a38de6cb0a741ad936e(c)
}, this), _.all(a, { cache: !0 }) && (this.__vbcc689c942faa74e017fb71b44a0c45c = a), a
}
}, v0df9bf38e174113f03f32babe1a54bce.prototype.ve6a38c80cd901f69aace95b4d76b2c8e = function () {
var a = this.floor.v3ce73950cbd6e574a2689be09bcdd432();
return a != this.__v4f1ca70b1049a607574ae66c47e497ad && (this.__va5ed1f5c9d4109c4b9412f79445f0c16 = {}, this.__v4f1ca70b1049a607574ae66c47e497ad = a), a
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v827148c4e3bf67c99ce751d3f5f8e446 = function (n) {
var l = 1 - this.ve6a38c80cd901f69aace95b4d76b2c8e(), k = [];
if (l > 0) {
var b;
for (var h = 0; h < n.length; h++) {
var a = n[h];
if (!this.__va5ed1f5c9d4109c4b9412f79445f0c16[a]) {
var j = [];
b || (b = this.get('wallImages'), b ? b = _.clone(b) : b = {});
var g = this.v4884be078f9ff311d56276fc2ed136ef(a);
if (g && (b != undefined && b[a] != undefined ? b[a].v657e3b6ac90f6a38de6cb0a741ad936e({
imageAlias: g,
plane: 0
}) : b[a] = [{
imageAlias: g,
plane: 0
}]), b != undefined && b[a] != undefined) {
var i = this.ve4f8820d6c8f8c28228b5549688c077a(a), e = new vbe6dfab6e47ff3d003a423092f4c35ef(i, b[a][0].imageAlias);
for (var d = 0; d < b[a].length; d++) {
if (d == 0)
var c = e;
else {
var c = new vbe6dfab6e47ff3d003a423092f4c35ef(i, b[a][d].imageAlias);
e.drawablesAfter.v657e3b6ac90f6a38de6cb0a741ad936e(c), e.v7c056d47dc2a91151c75a39bfcb33041 = e.v7c056d47dc2a91151c75a39bfcb33041.concat(b[a][d].imageAlias)
}
if (c.alpha = l, c.clickable = !1, a == 'SE' || a == 'NW') {
var o = A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.v6b16907196f9c1c0f21d3b872545f80e(b[a][d].imageAlias);
o.cols > 1 ? c.col = 1 : c.flipX = !0
}
c.cache = !0, c.v7a9ce2c4e74e75d3cc4ccdef17e58262 = !1, c.plane = b[a][d].plane;
var p = A.vf3351ba56d8b7e42f05b30b819a9db80().imageAtlas.vc6d84ea5b6df6cca18bcc7097994e243(b[a][d].imageAlias, c.col, c.row).width;
if (p < this.vb508106b6842aacd405108a2fea8f059()) {
var m = this.v9e48743ee7ac9d76cab9f116889dbe07(_.last(a)), f = new vbe6dfab6e47ff3d003a423092f4c35ef(m, c.imageAlias);
_.merge(f, c), f.location = m, f.plane = c.plane, c.drawablesAfter.v657e3b6ac90f6a38de6cb0a741ad936e(f)
}
}
j.v657e3b6ac90f6a38de6cb0a741ad936e(e)
}
this.__va5ed1f5c9d4109c4b9412f79445f0c16[a] = j
}
k.v65232cbf984e4899d32f63ff906d72ec(this.__va5ed1f5c9d4109c4b9412f79445f0c16[a])
}
}
return k
}, v0df9bf38e174113f03f32babe1a54bce.prototype.vf710e5eb838aaeb19fca6639ae3176e4 = function () {
return this.id.split('.')
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v0366d21dc43357eeda76e807ccea3fe8 = function () {
var a = this.vf710e5eb838aaeb19fca6639ae3176e4();
return a.pop(), a.join('.')
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v35539ff1d279ace5d966cb6af9772e2c = function (a, b, c, d) {
_.isString(this.baseTileImageName) || v9bc041960e80b10064b57b79a0d88cd9.prototype.v35539ff1d279ace5d966cb6af9772e2c.call(this, a, b, c), d && this.v6045c4088bf53bdfc2a724ef746d02bc()
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v09e9678cb102f06d6c0b2f6db4cd0197 = function (a, c, b) {
c && (_.isUndefined(b) && (b = 0), this.wallImages || (this.wallImages = {}), this.wallImages[a] || (this.wallImages[a] = []), this.wallImages[a].v657e3b6ac90f6a38de6cb0a741ad936e({
imageAlias: c,
plane: b
})), this.__va5ed1f5c9d4109c4b9412f79445f0c16 = {}
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v31282e3b58cf07529e95d45c9d20c12a = function (b) {
var a = this.get('wallImages');
return a && !_.isUndefined(a[b])
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v022775d301f206d9bed2a018edaa26c4 = function (b) {
var a = this.get('wallImages');
return a ? a[b] : void 0
}, v0df9bf38e174113f03f32babe1a54bce.prototype.vb315d139cf821a44e798df6c77ce15b7 = function (a) {
this.wallImages && (delete this.wallImages[a], this.__va5ed1f5c9d4109c4b9412f79445f0c16 = {})
}, v0df9bf38e174113f03f32babe1a54bce.prototype.vf148d4dc681a56a1ea606d88342ad1b2 = function () {
return _.isUndefined(this.__v80a3abf216388b229851afa90d6d07a6) ? (this.__v80a3abf216388b229851afa90d6d07a6 = this.floor.vf148d4dc681a56a1ea606d88342ad1b2(), this.__v80a3abf216388b229851afa90d6d07a6) : this.__v80a3abf216388b229851afa90d6d07a6
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v8100f9f6473eaf2d9ee4e93ffc84989e = function (a, b) {
this.connected || (this.connected = {}), this.connected[a] = b
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v1d3670bc0be0346b3cafb5fff98f54ad = function (b, a, c) {
b.get('x') - this.get('x') > 0 ? b.get('y') - this.get('y') > 0 ? (this.v8100f9f6473eaf2d9ee4e93ffc84989e('SE', a), delete this.__va5ed1f5c9d4109c4b9412f79445f0c16.SE) : (this.v8100f9f6473eaf2d9ee4e93ffc84989e('NE', a), delete this.__va5ed1f5c9d4109c4b9412f79445f0c16.NE) : b.get('x') - this.get('x') < 0 ? b.get('y') - this.get('y') > 0 ? (this.v8100f9f6473eaf2d9ee4e93ffc84989e('SW', a), delete this.__va5ed1f5c9d4109c4b9412f79445f0c16.SW) : (this.v8100f9f6473eaf2d9ee4e93ffc84989e('NW', a), delete this.__va5ed1f5c9d4109c4b9412f79445f0c16.NW) : b.get('y') - this.get('y') > 0 ? (this.v8100f9f6473eaf2d9ee4e93ffc84989e('up', a), delete this.__va5ed1f5c9d4109c4b9412f79445f0c16.up) : (this.v8100f9f6473eaf2d9ee4e93ffc84989e('dn', a), delete this.__va5ed1f5c9d4109c4b9412f79445f0c16.dn), c === !1 && (this.v3697f924454ea536473f11235a017ba5 = !0), this.width > 0 && !this.v3697f924454ea536473f11235a017ba5 && (this.v3697f924454ea536473f11235a017ba5 = !0, this.v6045c4088bf53bdfc2a724ef746d02bc())
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v0d188350005fb9a9de00f5ac2995c754 = function (b) {
var a = this.get('connected');
return a && _.isString(a[b])
}, v0df9bf38e174113f03f32babe1a54bce.prototype.vaa475940ec6cd28571b1a8c5245ceb8a = function () {
var a = this.get('connected');
return a && _.size(a) > 0
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v4884be078f9ff311d56276fc2ed136ef = function (b) {
var a = this.get('connected');
return a ? a[b] : !1
}, v0df9bf38e174113f03f32babe1a54bce.prototype.ve4f8820d6c8f8c28228b5549688c077a = function (b) {
var a = this.va104dfefa6670b37275d51b041f7e0bd();
return b[0] == 'N' ? a.y -= this.v8779877904cbdb3f6d302edade8b3ab9() * .35 : a.y += this.v8779877904cbdb3f6d302edade8b3ab9() * .35, a.y = Math.round(a.y), b[1] == 'W' ? a.x -= this.vb508106b6842aacd405108a2fea8f059() * .705 : a.x += this.vb508106b6842aacd405108a2fea8f059() * .705, a.x = Math.round(a.x), a
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v9e48743ee7ac9d76cab9f116889dbe07 = function (b) {
var a = this.va104dfefa6670b37275d51b041f7e0bd();
return b == 'N' ? a.y -= this.v8779877904cbdb3f6d302edade8b3ab9() * .705 : b == 'S' ? a.y += this.v8779877904cbdb3f6d302edade8b3ab9() * .705 : b == 'W' ? a.x -= this.vb508106b6842aacd405108a2fea8f059() * 1.41 : b == 'E' && (a.x += this.vb508106b6842aacd405108a2fea8f059() * 1.41), a.x = Math.round(a.x), a.y = Math.round(a.y), a
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v15b635f9dcfed0c558d5a8701d21e13d = function (a) {
_.isUndefined(this.objects) && (this.objects = []);
var b = this;
_.forOwn(a, function (c, d) {
if (_.isNaN(c))
throw 'object: ' + a.imageName + ' added at node: ' + b.id + ' has a NaN property: ' + d
}), this.objects.v657e3b6ac90f6a38de6cb0a741ad936e(a), delete this.__vbcc689c942faa74e017fb71b44a0c45c
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v23ffef113053b1f6212b5fef0cf5056d = function (a) {
this.objects = _.without(this.objects, a)
}, v0df9bf38e174113f03f32babe1a54bce.prototype.v26baece43410e172361dfa585625b2bf = function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment