var $wnd = $wnd || window.parent; var __gwtModuleFunction = $wnd.circuitjs1; var $sendStats = __gwtModuleFunction.__sendStats; $sendStats('moduleStartup', 'moduleEvalStart'); var $gwt_version = "2.8.2"; var $strongName = ''; var $gwt = {}; var $doc = $wnd.document; var $moduleName, $moduleBase; function __gwtStartLoadingFragment(frag) { var fragFile = 'deferredjs/' + $strongName + '/' + frag + '.cache.js'; return __gwtModuleFunction.__startLoadingFragment(fragFile); } function __gwtInstallCode(code) {return __gwtModuleFunction.__installRunAsyncCode(code);} function __gwt_isKnownPropertyValue(propName, propValue) { return __gwtModuleFunction.__gwt_isKnownPropertyValue(propName, propValue); } function __gwt_getMetaProperty(name) { return __gwtModuleFunction.__gwt_getMetaProperty(name); } var $stats = $wnd.__gwtStatsEvent ? function(a) { return $wnd.__gwtStatsEvent && $wnd.__gwtStatsEvent(a); } : null; var $sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null; /****************************************************************************** * Variables used by the Plugin *****************************************************************************/ var $entry; var $hostedHtmlVersion="2.1"; var $errFn; var $moduleName; var $moduleBase; var __gwt_getProperty; /****************************************************************************** * WRITE ME - what does this invokes stuff do??? Probably related to invoking * calls... *****************************************************************************/ var __gwt_javaInvokes = []; // Wrapper to call JS methods, which we need both to be able to supply a // different this for method lookup and to get the exception back function __gwt_jsInvoke(thisObj, methodName) { try { var args = Array.prototype.slice.call(arguments, 2); return [0, window[methodName].apply(thisObj, args)]; } catch (e) { return [1, e]; } } function __gwt_makeJavaInvoke(argCount) { return __gwt_javaInvokes[argCount] || __gwt_doMakeJavaInvoke(argCount); } function __gwt_doMakeJavaInvoke(argCount) { // IE6 won't eval() anonymous functions except as r-values var argList = ""; for (var i = 0; i < argCount; i++) { argList += ",p" + i; } var argListNoComma = argList.substring(1); return eval( "__gwt_javaInvokes[" + argCount + "] =\n" + " function(thisObj, dispId" + argList + ") {\n" + " var result = __static(dispId, thisObj" + argList + ");\n" + " if (result[0]) {\n" + " throw result[1];\n" + " } else {\n" + " return result[1];\n" + " }\n" + " }\n" ); } /****************************************************************************** * Functions used to create tear-offs of Java methods. Each function corresponds * to exactly one dispId, and also embeds the argument count. We get the "this" * value from the context in which the function is being executed. * Function-object identity is preserved by caching in a sparse array. *****************************************************************************/ var __gwt_tearOffs = []; var __gwt_tearOffGenerators = []; function __gwt_makeTearOff(proxy, dispId, argCount) { return __gwt_tearOffs[dispId] || __gwt_doMakeTearOff(dispId, argCount); } function __gwt_doMakeTearOff(dispId, argCount) { return __gwt_tearOffs[dispId] = (__gwt_tearOffGenerators[argCount] || __gwt_doMakeTearOffGenerator(argCount))(dispId); } function __gwt_doMakeTearOffGenerator(argCount) { // IE6 won't eval() anonymous functions except as r-values var argList = ""; for (var i = 0; i < argCount; i++) { argList += ",p" + i; } var argListNoComma = argList.substring(1); return eval( "__gwt_tearOffGenerators[" + argCount + "] =\n" + " function(dispId) {\n" + " return function(" + argListNoComma + ") {\n" + " var result = __static(dispId, this" + argList + ");\n" + " if (result[0]) {\n" + " throw result[1];\n" + " } else {\n" + " return result[1];\n" + " }\n" + " }\n" + " }\n" ); } /****************************************************************************** *Code to give visual feedback when something goes wrong in Dev Mode *****************************************************************************/ function __gwt_disconnected() { // Prevent double-invocation. window.__gwt_disconnected = new Function(); // Do it in a timeout so we can be sure we have a clean stack. window.setTimeout(__gwt_disconnected_impl, 1); } function __gwt_disconnected_impl() { __gwt_displayGlassMessage('GWT Code Server Disconnected', 'Most likely, you closed GWT Development Mode. Or, you might have lost ' + 'network connectivity. To fix this, try restarting GWT Development Mode and ' + 'refresh this page.'); } // Keep track of z-index to allow layering of multiple glass messages var __gwt_glassMessageZIndex = 2147483647; // Note this method is also used by ModuleSpace.java function __gwt_displayGlassMessage(summary, details) { var topWin = window.top; var topDoc = topWin.document; var outer = topDoc.createElement("div"); // Do not insert whitespace or outer.firstChild will get a text node. outer.innerHTML = '