- // Compiled in PRETTY style
- var $gwt_version = "2.4.0";
- var $wnd = parent;
- var $doc = $wnd.document;
- var $moduleName, $moduleBase;
- var $strongName = '1BC1D4781D368AD647A20426554E79AA';
- var $stats = $wnd.__gwtStatsEvent ? function(a) {return $wnd.__gwtStatsEvent(a);} : null,
- $sessionId = $wnd.__gwtStatsSessionId ? $wnd.__gwtStatsSessionId : null;
- $stats && $stats({moduleName:'com.google.gwt.Hello',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalStart'});
- </script></head>
- <body>
- <script><!--
- var _, Q$Object = 0, Q$String = 1, Q$RuntimeException = 2, Q$Throwable = 3;
- function makeCastMap(a){
- var result = {};
- for (var i = 0, c = a.length; i < c; ++i) {
- result[a[i]] = 1;
- }
- return result;
- }
- function nullMethod(){
- }
- function Object_0(){
- }
- _ = Object_0.prototype = {};
- _.typeMarker$ = nullMethod;
- _.castableTypeMap$ = {};
- function $setStackTrace(stackTrace){
- var c, copy, i;
- copy = initDim(_3Ljava_lang_StackTraceElement_2_classLit, {}, Q$Object, stackTrace.length, 0);
- for (i = 0 , c = stackTrace.length; i < c; ++i) {
- if (!stackTrace[i]) {
- throw new NullPointerException_0;
- }
- copy[i] = stackTrace[i];
- }
- }
- function Throwable(){
- }
- _ = Throwable.prototype = new Object_0;
- _.castableTypeMap$ = makeCastMap([Q$Throwable]);
- function Exception(){
- }
- _ = Exception.prototype = new Throwable;
- _.castableTypeMap$ = makeCastMap([Q$Throwable]);
- function RuntimeException(){
- }
- _ = RuntimeException.prototype = new Exception;
- _.castableTypeMap$ = makeCastMap([Q$RuntimeException, Q$Throwable]);
- function JavaScriptException_0(e){
- $fillInStackTrace();
- this.e = e;
- $createStackTrace(this);
- }
- function JavaScriptException(){
- }
- _ = JavaScriptException_0.prototype = JavaScriptException.prototype = new RuntimeException;
- _.castableTypeMap$ = makeCastMap([Q$RuntimeException, Q$Throwable]);
- _.e = null;
- function Scheduler(){
- }
- _ = Scheduler.prototype = new Object_0;
- function apply(jsFunction, thisObj, arguments_0){
- return jsFunction.apply(thisObj, arguments_0);
- var __0;
- }
- function enter(){
- if (entryDepth++ == 0) {
- $flushEntryCommands(($clinit_SchedulerImpl() , INSTANCE));
- return true;
- }
- return false;
- }
- function entry(jsFunction){
- return function(){
- try {
- return entry0(jsFunction, this, arguments);
- }
- catch (e) {
- throw e;
- }
- }
- ;
- }
- function entry0(jsFunction, thisObj, arguments_0){
- var initialEntry;
- initialEntry = enter();
- try {
- return apply(jsFunction, thisObj, arguments_0);
- }
- finally {
- initialEntry && $flushFinallyCommands(($clinit_SchedulerImpl() , INSTANCE));
- --entryDepth;
- }
- }
- var entryDepth = 0;
- function $clinit_SchedulerImpl(){
- $clinit_SchedulerImpl = nullMethod;
- INSTANCE = new SchedulerImpl_0;
- }
- function $flushEntryCommands(this$static){
- var oldQueue, rescheduled;
- if (this$static.entryCommands) {
- rescheduled = null;
- do {
- oldQueue = this$static.entryCommands;
- this$static.entryCommands = null;
- rescheduled = runScheduledTasks(oldQueue, rescheduled);
- }
- while (this$static.entryCommands);
- this$static.entryCommands = rescheduled;
- }
- }
- function $flushFinallyCommands(this$static){
- var oldQueue, rescheduled;
- if (this$static.finallyCommands) {
- rescheduled = null;
- do {
- oldQueue = this$static.finallyCommands;
- this$static.finallyCommands = null;
- rescheduled = runScheduledTasks(oldQueue, rescheduled);
- }
- while (this$static.finallyCommands);
- this$static.finallyCommands = rescheduled;
- }
- }
- function SchedulerImpl_0(){
- }
- function push(queue, task){
- !queue && (queue = []);
- queue[queue.length] = task;
- return queue;
- }
- function runScheduledTasks(tasks, rescheduled){
- var $e0, i, j, t;
- for (i = 0 , j = tasks.length; i < j; ++i) {
- t = tasks[i];
- try {
- t[1]?t[0].nullMethod() && (rescheduled = push(rescheduled, t)):t[0].nullMethod();
- }
- catch ($e0) {
- $e0 = caught($e0);
- if (!instanceOf($e0, Q$RuntimeException))
- throw $e0;
- }
- }
- return rescheduled;
- }
- function SchedulerImpl(){
- }
- _ = SchedulerImpl_0.prototype = SchedulerImpl.prototype = new Scheduler;
- _.entryCommands = null;
- _.finallyCommands = null;
- var INSTANCE;
- function extractNameFromToString(fnToString){
- var index, start, toReturn;
- toReturn = '';
- fnToString = $trim(fnToString);
- index = fnToString.indexOf('(');
- if (index != -1) {
- start = fnToString.indexOf('function') == 0?8:0;
- toReturn = $trim(fnToString.substr(start, index - start));
- }
- return toReturn.length > 0?toReturn:'anonymous';
- }
- function $collect(this$static){
- var seen = {};
- var toReturn = [];
- var callee = arguments.callee.caller.caller;
- while (callee) {
- var name_0 = this$static.extractName(callee.toString());
- toReturn.push(name_0);
- var keyName = ':' + name_0;
- var withThisName = seen[keyName];
- if (withThisName) {
- var i, j;
- for (i = 0 , j = withThisName.length; i < j; i++) {
- if (withThisName[i] === callee) {
- return toReturn;
- }
- }
- }
- (withThisName || (seen[keyName] = [])).push(callee);
- callee = callee.caller;
- }
- return toReturn;
- }
- function $createStackTrace(e){
- var i, j, stack, stackTrace;
- stack = (instanceOfJso(e.e)?dynamicCastJso(e.e):null , []);
- stackTrace = initDim(_3Ljava_lang_StackTraceElement_2_classLit, {}, Q$Object, stack.length, 0);
- for (i = 0 , j = stackTrace.length; i < j; ++i) {
- stackTrace[i] = new StackTraceElement_0(stack[i]);
- }
- $setStackTrace(stackTrace);
- }
- function $fillInStackTrace(){
- var i, j, stack, stackTrace;
- stack = $collect(new StackTraceCreator$Collector_0);
- stackTrace = initDim(_3Ljava_lang_StackTraceElement_2_classLit, {}, Q$Object, stack.length, 0);
- for (i = 0 , j = stackTrace.length; i < j; ++i) {
- stackTrace[i] = new StackTraceElement_0(stack[i]);
- }
- $setStackTrace(stackTrace);
- }
- function StackTraceCreator$Collector_0(){
- }
- function StackTraceCreator$Collector(){
- }
- _ = StackTraceCreator$Collector_0.prototype = StackTraceCreator$Collector.prototype = new Object_0;
- _.extractName = function extractName(fnToString){
- return extractNameFromToString(fnToString);
- }
- ;
- function Array_1(){
- }
- function createFromSeed(seedType, length_0){
- var array = new Array(length_0);
- if (seedType == 3) {
- for (var i = 0; i < length_0; ++i) {
- var value = new Object;
- value.l = value.m = value.h = 0;
- array[i] = value;
- }
- }
- else if (seedType > 0) {
- var value = [null, 0, false][seedType];
- for (var i = 0; i < length_0; ++i) {
- array[i] = value;
- }
- }
- return array;
- }
- function initDim(arrayClass, castableTypeMap, queryId, length_0, seedType){
- var result;
- result = createFromSeed(seedType, length_0);
- initValues(arrayClass, castableTypeMap, queryId, result);
- return result;
- }
- function initValues(arrayClass, castableTypeMap, queryId, array){
- $clinit_Array$ExpandoWrapper();
- wrapArray(array, expandoNames_0, expandoValues_0);
- array.castableTypeMap$ = castableTypeMap;
- return array;
- }
- function Array_0(){
- }
- _ = Array_1.prototype = Array_0.prototype = new Object_0;
- function $clinit_Array$ExpandoWrapper(){
- $clinit_Array$ExpandoWrapper = nullMethod;
- expandoNames_0 = [];
- expandoValues_0 = [];
- initExpandos(new Array_1, expandoNames_0, expandoValues_0);
- }
- function initExpandos(protoType, expandoNames, expandoValues){
- var i = 0, value;
- for (var name_0 in protoType) {
- if (value = protoType[name_0]) {
- expandoNames[i] = name_0;
- expandoValues[i] = value;
- ++i;
- }
- }
- }
- function wrapArray(array, expandoNames, expandoValues){
- $clinit_Array$ExpandoWrapper();
- for (var i = 0, c = expandoNames.length; i < c; ++i) {
- array[expandoNames[i]] = expandoValues[i];
- }
- }
- var expandoNames_0, expandoValues_0;
- function canCast(src, dstId){
- return src.castableTypeMap$ && !!src.castableTypeMap$[dstId];
- }
- function dynamicCastJso(src){
- if (src != null && (src.typeMarker$ == nullMethod || canCast(src, 1))) {
- throw new ClassCastException_0;
- }
- return src;
- }
- function instanceOf(src, dstId){
- return src != null && canCast(src, dstId);
- }
- function instanceOfJso(src){
- return src != null && src.typeMarker$ != nullMethod && !canCast(src, 1);
- }
- function init(){
- var runtimeValue;
- !!$stats && onModuleStart('com.google.gwt.user.client.UserAgentAsserter');
- runtimeValue = $getRuntimeValue();
- $equals('ie8', runtimeValue) || ($wnd.alert('ERROR: Possible problem with your *.gwt.xml module file.\nThe compile time user.agent value (ie8) does not match the runtime user.agent value (' + runtimeValue + '). Expect more errors.\n') , undefined);
- !!$stats && onModuleStart('com.google.gwt.user.client.DocumentModeAsserter');
- $onModuleLoad();
- !!$stats && onModuleStart('com.google.gwt.client.Hello');
- $wnd.alert('Hello world');
- }
- function caught(e){
- if (instanceOf(e, Q$Throwable)) {
- return e;
- }
- return new JavaScriptException_0(e);
- }
- function onModuleStart(mainClassName){
- return $stats({moduleName:$moduleName, sessionId:$sessionId, subSystem:'startup', evtGroup:'moduleStartup', millis:(new Date).getTime(), type:'onModuleLoadStart', className:mainClassName});
- }
- function $onModuleLoad(){
- var allowedModes, currentMode, i;
- currentMode = $doc.compatMode;
- allowedModes = initValues(_3Ljava_lang_String_2_classLit, {}, Q$String, ['CSS1Compat']);
- for (i = 0; i < allowedModes.length; ++i) {
- if ($equals(allowedModes[i], currentMode)) {
- return;
- }
- }
- allowedModes.length == 1 && $equals('CSS1Compat', allowedModes[0]) && $equals('BackCompat', currentMode)?"GWT no longer supports Quirks Mode (document.compatMode=' BackCompat').<br>Make sure your application's host HTML page has a Standards Mode (document.compatMode=' CSS1Compat') doctype,<br>e.g. by using <!doctype html> at the start of your application's HTML page.<br><br>To continue using this unsupported rendering mode and risk layout problems, suppress this message by adding<br>the following line to your*.gwt.xml module file:<br> <extend-configuration-property name=\"document.compatMode\" value=\"" + currentMode + '"/>':"Your *.gwt.xml module configuration prohibits the use of the current doucment rendering mode (document.compatMode=' " + currentMode + "').<br>Modify your application's host HTML page doctype, or update your custom 'document.compatMode' configuration property settings.";
- }
- function $getRuntimeValue(){
- var ua = navigator.userAgent.toLowerCase();
- var makeVersion = function(result){
- return parseInt(result[1]) * 1000 + parseInt(result[2]);
- }
- ;
- if (function(){
- return ua.indexOf('opera') != -1;
- }
- ())
- return 'opera';
- if (function(){
- return ua.indexOf('webkit') != -1 || function(){
- if (ua.indexOf('chromeframe') != -1) {
- return true;
- }
- if (typeof window['ActiveXObject'] != 'undefined') {
- try {
- var obj = new ActiveXObject('ChromeTab.ChromeFrame');
- if (obj) {
- obj.registerBhoIfNeeded();
- return true;
- }
- }
- catch (e) {
- }
- }
- return false;
- }
- ();
- }
- ())
- return 'safari';
- if (function(){
- return ua.indexOf('msie') != -1 && $doc.documentMode >= 9;
- }
- ())
- return 'ie9';
- if (function(){
- return ua.indexOf('msie') != -1 && $doc.documentMode >= 8;
- }
- ())
- return 'ie8';
- if (function(){
- var result = /msie ([0-9]+)\.([0-9]+)/.exec(ua);
- if (result && result.length == 3)
- return makeVersion(result) >= 6000;
- }
- ())
- return 'ie6';
- if (function(){
- return ua.indexOf('gecko') != -1;
- }
- ())
- return 'gecko1_8';
- return 'unknown';
- }
- function Class_0(){
- }
- function Class(){
- }
- _ = Class_0.prototype = Class.prototype = new Object_0;
- function ClassCastException_0(){
- $fillInStackTrace();
- }
- function ClassCastException(){
- }
- _ = ClassCastException_0.prototype = ClassCastException.prototype = new RuntimeException;
- _.castableTypeMap$ = makeCastMap([Q$RuntimeException, Q$Throwable]);
- function NullPointerException_0(){
- $fillInStackTrace();
- }
- function NullPointerException(){
- }
- _ = NullPointerException_0.prototype = NullPointerException.prototype = new RuntimeException;
- _.castableTypeMap$ = makeCastMap([Q$RuntimeException, Q$Throwable]);
- function StackTraceElement_0(methodName){
- }
- function StackTraceElement(){
- }
- _ = StackTraceElement_0.prototype = StackTraceElement.prototype = new Object_0;
- function $equals(this$static, other){
- if (other == null) {
- return false;
- }
- return String(this$static) == other;
- }
- function $trim(this$static){
- if (this$static.length == 0 || this$static[0] > ' ' && this$static[this$static.length - 1] > ' ') {
- return this$static;
- }
- var r1 = this$static.replace(/^(\s*)/, '');
- var r2 = r1.replace(/\s*$/, '');
- return r2;
- }
- _ = String.prototype;
- _.castableTypeMap$ = makeCastMap([Q$String]);
- var $entry = entry;
- function gwtOnLoad(errFn, modName, modBase, softPermutationId){
- $moduleName = modName;
- $moduleBase = modBase;
- if (errFn)
- try {
- $entry(init)();
- }
- catch (e) {
- errFn(modName);
- }
- else {
- $entry(init)();
- }
- }
- var _3Ljava_lang_StackTraceElement_2_classLit = new Class_0, _3Ljava_lang_String_2_classLit = new Class_0;
- $stats && $stats({moduleName:'com.google.gwt.Hello',sessionId:$sessionId,subSystem:'startup',evtGroup:'moduleStartup',millis:(new Date()).getTime(),type:'moduleEvalEnd'});
- if ($wnd.com_google_gwt_Hello) $wnd.com_google_gwt_Hello.onScriptLoad();