Index: src/site/codelabs/darrrt/examples/1-blankbadge/piratebadge.dart.precompiled.js |
diff --git a/src/site/codelabs/darrrt/examples/1-blankbadge/piratebadge.dart.precompiled.js b/src/site/codelabs/darrrt/examples/1-blankbadge/piratebadge.dart.precompiled.js |
index 61f0b6110a98a7cff7aee414ebcf325f35845909..79eae4285a5cc1c53d16d1f5f901e04b01eac394 100644 |
--- a/src/site/codelabs/darrrt/examples/1-blankbadge/piratebadge.dart.precompiled.js |
+++ b/src/site/codelabs/darrrt/examples/1-blankbadge/piratebadge.dart.precompiled.js |
@@ -1,199 +1,196 @@ |
// Generated by dart2js, the Dart to JavaScript compiler. |
-// The code supports the following hooks: |
-// dartPrint(message) - if this function is defined it is called |
-// instead of the Dart [print] method. |
-// dartMainRunner(main) - if this function is defined, the Dart [main] |
-// method will not be invoked directly. |
-// Instead, a closure that will invoke [main] is |
-// passed to [dartMainRunner]. |
-(function($) { |
-var A = {}; |
-delete A.x; |
-var B = {}; |
-delete B.x; |
-var C = {}; |
-delete C.x; |
-var D = {}; |
-delete D.x; |
-var E = {}; |
-delete E.x; |
-var F = {}; |
-delete F.x; |
-var G = {}; |
-delete G.x; |
-var H = {}; |
-delete H.x; |
-var J = {}; |
-delete J.x; |
-var K = {}; |
-delete K.x; |
-var L = {}; |
-delete L.x; |
-var M = {}; |
-delete M.x; |
-var N = {}; |
-delete N.x; |
-var O = {}; |
-delete O.x; |
-var P = {}; |
-delete P.x; |
-var Q = {}; |
-delete Q.x; |
-var R = {}; |
-delete R.x; |
-var S = {}; |
-delete S.x; |
-var T = {}; |
-delete T.x; |
-var U = {}; |
-delete U.x; |
-var V = {}; |
-delete V.x; |
-var W = {}; |
-delete W.x; |
-var X = {}; |
-delete X.x; |
-var Y = {}; |
-delete Y.x; |
-var Z = {}; |
-delete Z.x; |
-function Isolate() {} |
-init(); |
+(function($){function dart(){this.x=0}var A=new dart |
+delete A.x |
+var B=new dart |
+delete B.x |
+var C=new dart |
+delete C.x |
+var D=new dart |
+delete D.x |
+var E=new dart |
+delete E.x |
+var F=new dart |
+delete F.x |
+var G=new dart |
+delete G.x |
+var H=new dart |
+delete H.x |
+var J=new dart |
+delete J.x |
+var K=new dart |
+delete K.x |
+var L=new dart |
+delete L.x |
+var M=new dart |
+delete M.x |
+var N=new dart |
+delete N.x |
+var O=new dart |
+delete O.x |
+var P=new dart |
+delete P.x |
+var Q=new dart |
+delete Q.x |
+var R=new dart |
+delete R.x |
+var S=new dart |
+delete S.x |
+var T=new dart |
+delete T.x |
+var U=new dart |
+delete U.x |
+var V=new dart |
+delete V.x |
+var W=new dart |
+delete W.x |
+var X=new dart |
+delete X.x |
+var Y=new dart |
+delete Y.x |
+var Z=new dart |
+delete Z.x |
+function I(){} |
+init() |
+$=I.p |
+;(function(a){"use strict" |
+function map(b){b={x:b} |
+delete b.x |
+return b}function processStatics(a3){for(var h in a3){if(!u.call(a3,h))continue |
+if(h==="^")continue |
+var g=a3[h] |
+var f=h.substring(0,1) |
+var e |
+if(f==="+"){v[e]=h.substring(1) |
+var d=a3[h] |
+if(d>0)a3[e].$reflectable=d |
+if(g&&g.length)init.typeInformation[e]=g}else if(f==="@"){h=h.substring(1) |
+$[h]["@"]=g}else if(f==="*"){n[e].$defaultValues=g |
+var c=a3.$methodsWithOptionalArguments |
+if(!c){a3.$methodsWithOptionalArguments=c={}}c[h]=e}else if(typeof g==="function"){n[e=h]=g |
+i.push(h) |
+init.globalFunctions[h]=g}else if(g.constructor===Array){addStubs(n,g,h,true,a3,i)}else{e=h |
+var b={} |
+var a0 |
+for(var a1 in g){if(!u.call(g,a1))continue |
+f=a1.substring(0,1) |
+if(a1==="static"){processStatics(init.statics[h]=g[a1])}else if(f==="+"){w[a0]=a1.substring(1) |
+var d=g[a1] |
+if(d>0)g[a0].$reflectable=d}else if(f==="@"&&a1!=="@"){b[a1.substring(1)]["@"]=g[a1]}else if(f==="*"){b[a0].$defaultValues=g[a1] |
+var c=b.$methodsWithOptionalArguments |
+if(!c){b.$methodsWithOptionalArguments=c={}}c[a1]=a0}else{var a2=g[a1] |
+if(a1!=="^"&&a2!=null&&a2.constructor===Array&&a1!=="<>"){addStubs(b,a2,a1,false,g,[])}else{b[a0=a1]=a2}}}$$[h]=[n,b] |
+j.push(h)}}}function addStubs(b3,b4,b5,b6,b7,b8){var h,g=[b7[b5]=b3[b5]=h=b4[0]] |
+h.$stubName=b5 |
+b8.push(b5) |
+for(var f=0;f<b4.length;f+=2){h=b4[f+1] |
+if(typeof h!="function")break |
+h.$stubName=b4[f+2] |
+g.push(h) |
+if(h.$stubName){b7[h.$stubName]=b3[h.$stubName]=h |
+b8.push(h.$stubName)}}for(var e=0;e<g.length;f++,e++){g[e].$callName=b4[f+1]}var d=b4[++f] |
+b4=b4.slice(++f) |
+var c=b4[0] |
+var b=c>>1 |
+var a0=(c&1)===1 |
+var a1=c===3 |
+var a2=c===1 |
+var a3=b4[1] |
+var a4=a3>>1 |
+var a5=(a3&1)===1 |
+var a6=b+a4!=g[0].length |
+var a7=b4[2] |
+var a8=2*a4+b+3 |
+var a9=b4.length>a8 |
+if(d){h=tearOff(g,b4,b6,b5,a6) |
+b3[b5].$getter=h |
+h.$getterStub=true |
+if(b6)init.globalFunctions[b5]=h |
+b7[d]=b3[d]=h |
+g.push(h) |
+if(d)b8.push(d) |
+h.$stubName=d |
+h.$callName=null |
+if(a6)init.interceptedNames[d]=true}if(a9){for(var e=0;e<g.length;e++){g[e].$reflectable=1 |
+g[e].$reflectionInfo=b4}var b0=b6?init.mangledGlobalNames:init.mangledNames |
+var b1=b4[a8] |
+var b2=b1 |
+if(d)b0[d]=b2 |
+if(a1){b2+="="}else if(!a2){b2+=":"+b+":"+a4}b0[b5]=b2 |
+g[0].$reflectionName=b2 |
+g[0].$metadataIndex=a8+1 |
+if(a4)b3[b1+"*"]=g[0]}}function tearOffGetterNoCsp(b,c,d,e){return e?new Function("funcs","reflectionInfo","name","H","c","return function tearOff_"+d+z+++"(x) {"+"if (c === null) c = H.qm("+"this, funcs, reflectionInfo, false, [x], name);"+"return new c(this, funcs[0], x, name);"+"}")(b,c,d,H,null):new Function("funcs","reflectionInfo","name","H","c","return function tearOff_"+d+z+++"() {"+"if (c === null) c = H.qm("+"this, funcs, reflectionInfo, false, [], name);"+"return new c(this, funcs[0], null, name);"+"}")(b,c,d,H,null)}function tearOffGetterCsp(b,c,d,e){var h=null |
+return e?function(f){if(h===null)h=H.qm(this,b,c,false,[f],d) |
+return new h(this,b[0],f,d)}:function(){if(h===null)h=H.qm(this,b,c,false,[],d) |
+return new h(this,b[0],null,d)}}function tearOff(b,c,d,e,f){var h |
+return d?function(){if(h===void 0)h=H.qm(this,b,c,true,[],e).prototype |
+return h}:y(b,c,e,f)}var z=0 |
+var y=typeof dart_precompiled=="function"?tearOffGetterCsp:tearOffGetterNoCsp |
+if(!init.libraries)init.libraries=[] |
+if(!init.mangledNames)init.mangledNames=map() |
+if(!init.mangledGlobalNames)init.mangledGlobalNames=map() |
+if(!init.statics)init.statics=map() |
+if(!init.typeInformation)init.typeInformation=map() |
+if(!init.globalFunctions)init.globalFunctions=map() |
+if(!init.interceptedNames)init.interceptedNames=map() |
+var x=init.libraries |
+var w=init.mangledNames |
+var v=init.mangledGlobalNames |
+var u=Object.prototype.hasOwnProperty |
+var t=a.length |
+for(var s=0;s<t;s++){var r=a[s] |
+var q=r[0] |
+var p=r[1] |
+var o=r[2] |
+var n=r[3] |
+var m=r[4] |
+var l=!!r[5] |
+var k=m&&m["^"] |
+var j=[] |
+var i=[] |
+processStatics(m) |
+x.push([q,p,j,i,o,k,l,n])}})([["","file:///Users/kathyw/Spot/one-hour-codelab/web/1-blankbadge/piratebadge.dart",,A,{ |
+"^":"", |
+E2:function(){}},1],]) |
+$.libraries_to_load = {} |
+$.yj=0 |
+$.mJ=null |
+$.P4=null |
-$ = Isolate.$isolateProperties; |
-// Method closures |
-(function (reflectionData) { |
- function map(x){x={x:x};delete x.x;return x} |
- if (!init.libraries) init.libraries = []; |
- if (!init.mangledNames) init.mangledNames = map(); |
- if (!init.mangledGlobalNames) init.mangledGlobalNames = map(); |
- if (!init.statics) init.statics = map(); |
- if (!init.interfaces) init.interfaces = map(); |
- if (!init.globalFunctions) init.globalFunctions = map(); |
- var libraries = init.libraries; |
- var mangledNames = init.mangledNames; |
- var mangledGlobalNames = init.mangledGlobalNames; |
- var hasOwnProperty = Object.prototype.hasOwnProperty; |
- var length = reflectionData.length; |
- for (var i = 0; i < length; i++) { |
- var data = reflectionData[i]; |
- var name = data[0]; |
- var uri = data[1]; |
- var metadata = data[2]; |
- var globalObject = data[3]; |
- var descriptor = data[4]; |
- var isRoot = !!data[5]; |
- var fields = descriptor && descriptor[""]; |
- var classes = []; |
- var functions = []; |
- function processStatics(descriptor) { |
- for (var property in descriptor) { |
- if (!hasOwnProperty.call(descriptor, property)) continue; |
- if (property === "") continue; |
- var element = descriptor[property]; |
- var firstChar = property.substring(0, 1); |
- var previousProperty; |
- if (firstChar === "+") { |
- mangledGlobalNames[previousProperty] = property.substring(1); |
- if (descriptor[property] == 1) descriptor[previousProperty].$reflectable = 1; |
- if (element && element.length) init.interfaces[previousProperty] = element; |
- } else if (firstChar === "@") { |
- property = property.substring(1); |
- $[property]["@"] = element; |
- } else if (firstChar === "*") { |
- globalObject[previousProperty].$defaultValues = element; |
- var optionalMethods = descriptor.$methodsWithOptionalArguments; |
- if (!optionalMethods) { |
- descriptor.$methodsWithOptionalArguments = optionalMethods = {} |
- } |
- optionalMethods[property] = previousProperty; |
- } else if (typeof element === "function") { |
- globalObject[previousProperty = property] = element; |
- functions.push(property); |
- init.globalFunctions[property] = element; |
- } else { |
- previousProperty = property; |
- var newDesc = {}; |
- var previousProp; |
- for (var prop in element) { |
- if (!hasOwnProperty.call(element, prop)) continue; |
- firstChar = prop.substring(0, 1); |
- if (prop === "static") { |
- processStatics(init.statics[property] = element[prop]); |
- } else if (firstChar === "+") { |
- mangledNames[previousProp] = prop.substring(1); |
- if (element[prop] == 1) element[previousProp].$reflectable = 1; |
- } else if (firstChar === "@" && prop !== "@") { |
- newDesc[prop.substring(1)]["@"] = element[prop]; |
- } else if (firstChar === "*") { |
- newDesc[previousProp].$defaultValues = element[prop]; |
- var optionalMethods = newDesc.$methodsWithOptionalArguments; |
- if (!optionalMethods) { |
- newDesc.$methodsWithOptionalArguments = optionalMethods={} |
- } |
- optionalMethods[prop] = previousProp; |
- } else { |
- newDesc[previousProp = prop] = element[prop]; |
- } |
- } |
- $$[property] = [globalObject, newDesc]; |
- classes.push(property); |
- } |
- } |
- } |
- processStatics(descriptor); |
- libraries.push([name, uri, classes, functions, metadata, fields, isRoot, |
- globalObject]); |
- } |
-})([ |
-["", "piratebadge.dart", , A, { |
-main: function() { |
-}}, |
-1], |
-]); |
-// Static function getters |
-// Runtime type support |
-// getInterceptor methods |
-$.initNativeDispatchFlag = null; |
- |
-init.functionAliases = {}; |
-; |
-init.metadata = []; |
-$ = null; |
-Isolate = Isolate.$finishIsolateConstructor(Isolate); |
-$ = new Isolate(); |
+init.functionAliases={} |
+init.metadata=[];$=null |
+I = I.$finishIsolateConstructor(I) |
+$=new I() |
function convertToFastObject(properties) { |
function MyClass() {}; |
MyClass.prototype = properties; |
new MyClass(); |
return properties; |
} |
-A = convertToFastObject(A); |
-B = convertToFastObject(B); |
-C = convertToFastObject(C); |
-D = convertToFastObject(D); |
-E = convertToFastObject(E); |
-F = convertToFastObject(F); |
-G = convertToFastObject(G); |
-H = convertToFastObject(H); |
-J = convertToFastObject(J); |
-K = convertToFastObject(K); |
-L = convertToFastObject(L); |
-M = convertToFastObject(M); |
-N = convertToFastObject(N); |
-O = convertToFastObject(O); |
-P = convertToFastObject(P); |
-Q = convertToFastObject(Q); |
-R = convertToFastObject(R); |
-S = convertToFastObject(S); |
-T = convertToFastObject(T); |
-U = convertToFastObject(U); |
-V = convertToFastObject(V); |
-W = convertToFastObject(W); |
-X = convertToFastObject(X); |
-Y = convertToFastObject(Y); |
-Z = convertToFastObject(Z); |
-// BEGIN invoke [main]. |
+A = convertToFastObject(A) |
+B = convertToFastObject(B) |
+C = convertToFastObject(C) |
+D = convertToFastObject(D) |
+E = convertToFastObject(E) |
+F = convertToFastObject(F) |
+G = convertToFastObject(G) |
+H = convertToFastObject(H) |
+J = convertToFastObject(J) |
+K = convertToFastObject(K) |
+L = convertToFastObject(L) |
+M = convertToFastObject(M) |
+N = convertToFastObject(N) |
+O = convertToFastObject(O) |
+P = convertToFastObject(P) |
+Q = convertToFastObject(Q) |
+R = convertToFastObject(R) |
+S = convertToFastObject(S) |
+T = convertToFastObject(T) |
+U = convertToFastObject(U) |
+V = convertToFastObject(V) |
+W = convertToFastObject(W) |
+X = convertToFastObject(X) |
+Y = convertToFastObject(Y) |
+Z = convertToFastObject(Z) |
;(function (callback) { |
if (typeof document === "undefined") { |
callback(null); |
@@ -218,64 +215,39 @@ Z = convertToFastObject(Z); |
init.currentScript = currentScript; |
if (typeof dartMainRunner === "function") { |
- dartMainRunner(function() { A.main(); }); |
+ dartMainRunner(A.E2, []); |
} else { |
- A.main(); |
+ A.E2([]); |
} |
-}); |
-// END invoke [main]. |
-function init() { |
- Isolate.$isolateProperties = {}; |
- Isolate.$lazy = function(prototype, staticName, fieldName, getterName, lazyValue) { |
- var sentinelUndefined = {}; |
- var sentinelInProgress = {}; |
- prototype[fieldName] = sentinelUndefined; |
- prototype[getterName] = function() { |
- var result = $[fieldName]; |
- try { |
- if (result === sentinelUndefined) { |
- $[fieldName] = sentinelInProgress; |
- try { |
- result = $[fieldName] = lazyValue(); |
- } finally { |
- if (result === sentinelUndefined) { |
- if ($[fieldName] === sentinelInProgress) { |
- $[fieldName] = null; |
- } |
- } |
- } |
- } else { |
- if (result === sentinelInProgress) |
- H.throwCyclicInit(staticName); |
- } |
- return result; |
- } finally { |
- $[getterName] = function() { |
- return this[fieldName]; |
- }; |
- } |
- }; |
- }; |
- Isolate.$finishIsolateConstructor = function(oldIsolate) { |
- var isolateProperties = oldIsolate.$isolateProperties; |
- function Isolate() { |
- var hasOwnProperty = Object.prototype.hasOwnProperty; |
- for (var staticName in isolateProperties) |
- if (hasOwnProperty.call(isolateProperties, staticName)) |
- this[staticName] = isolateProperties[staticName]; |
- function ForceEfficientMap() { |
- } |
- ForceEfficientMap.prototype = this; |
- new ForceEfficientMap(); |
- } |
- Isolate.prototype = oldIsolate.prototype; |
- Isolate.prototype.constructor = Isolate; |
- Isolate.$isolateProperties = isolateProperties; |
- return Isolate; |
- }; |
-} |
+}) |
+function init(){I.p={} |
+I.$lazy=function(a,b,c,d,e){var z={} |
+var y={} |
+a[c]=z |
+a[d]=function(){var x=$[c] |
+try{if(x===z){$[c]=y |
+try{x=$[c]=e()}finally{if(x===z)if($[c]===y)$[c]=null}}else{if(x===y)H.eQ(b)}return x}finally{$[d]=function(){return this[c]}}}} |
+I.$finishIsolateConstructor=function(a){var z=a.p |
+function Isolate(){var y=Object.prototype.hasOwnProperty |
+for(var x in z)if(y.call(z,x))this[x]=z[x] |
+function ForceEfficientMap(){}ForceEfficientMap.prototype=this |
+new ForceEfficientMap()}Isolate.prototype=a.prototype |
+Isolate.prototype.constructor=Isolate |
+Isolate.p=z |
+return Isolate}} |
})() |
-function dart_precompiled($collectedClasses) { |
- var $desc; |
- return []; |
+{ |
+ var message = |
+ 'Deprecation: Automatic generation of output for Content Security\n' + |
+ 'Policy is deprecated and will be removed with the next development\n' + |
+ 'release. Use the --csp option to generate CSP restricted output.'; |
+ if (typeof dartPrint == "function") { |
+ dartPrint(message); |
+ } else if (typeof console == "object" && typeof console.log == "function") { |
+ console.log(message); |
+ } else if (typeof print == "function") { |
+ print(message); |
+ } |
} |
+function dart_precompiled($collectedClasses){var $desc |
+return[]} |