OLD | NEW |
1 // Generated by dart2js, the Dart to JavaScript compiler. | 1 // Generated by dart2js, the Dart to JavaScript compiler. |
2 // The code supports the following hooks: | 2 (function($){function dart(){this.x=0}var A=new dart |
3 // dartPrint(message) - if this function is defined it is called | 3 delete A.x |
4 // instead of the Dart [print] method. | 4 var B=new dart |
5 // dartMainRunner(main) - if this function is defined, the Dart [main] | 5 delete B.x |
6 // method will not be invoked directly. | 6 var C=new dart |
7 // Instead, a closure that will invoke [main] is | 7 delete C.x |
8 // passed to [dartMainRunner]. | 8 var D=new dart |
9 (function($) { | 9 delete D.x |
10 var A = {}; | 10 var E=new dart |
11 delete A.x; | 11 delete E.x |
12 var B = {}; | 12 var F=new dart |
13 delete B.x; | 13 delete F.x |
14 var C = {}; | 14 var G=new dart |
15 delete C.x; | 15 delete G.x |
16 var D = {}; | 16 var H=new dart |
17 delete D.x; | 17 delete H.x |
18 var E = {}; | 18 var J=new dart |
19 delete E.x; | 19 delete J.x |
20 var F = {}; | 20 var K=new dart |
21 delete F.x; | 21 delete K.x |
22 var G = {}; | 22 var L=new dart |
23 delete G.x; | 23 delete L.x |
24 var H = {}; | 24 var M=new dart |
25 delete H.x; | 25 delete M.x |
26 var J = {}; | 26 var N=new dart |
27 delete J.x; | 27 delete N.x |
28 var K = {}; | 28 var O=new dart |
29 delete K.x; | 29 delete O.x |
30 var L = {}; | 30 var P=new dart |
31 delete L.x; | 31 delete P.x |
32 var M = {}; | 32 var Q=new dart |
33 delete M.x; | 33 delete Q.x |
34 var N = {}; | 34 var R=new dart |
35 delete N.x; | 35 delete R.x |
36 var O = {}; | 36 var S=new dart |
37 delete O.x; | 37 delete S.x |
38 var P = {}; | 38 var T=new dart |
39 delete P.x; | 39 delete T.x |
40 var Q = {}; | 40 var U=new dart |
41 delete Q.x; | 41 delete U.x |
42 var R = {}; | 42 var V=new dart |
43 delete R.x; | 43 delete V.x |
44 var S = {}; | 44 var W=new dart |
45 delete S.x; | 45 delete W.x |
46 var T = {}; | 46 var X=new dart |
47 delete T.x; | 47 delete X.x |
48 var U = {}; | 48 var Y=new dart |
49 delete U.x; | 49 delete Y.x |
50 var V = {}; | 50 var Z=new dart |
51 delete V.x; | 51 delete Z.x |
52 var W = {}; | 52 function I(){} |
53 delete W.x; | 53 init() |
54 var X = {}; | 54 $=I.p |
55 delete X.x; | 55 var $$={} |
56 var Y = {}; | 56 ;(function(a){"use strict" |
57 delete Y.x; | 57 function map(b){b={x:b} |
58 var Z = {}; | 58 delete b.x |
59 delete Z.x; | 59 return b}function processStatics(a3){for(var h in a3){if(!u.call(a3,h))continue |
60 function Isolate() {} | 60 if(h==="^")continue |
61 init(); | 61 var g=a3[h] |
62 | 62 var f=h.substring(0,1) |
63 $ = Isolate.$isolateProperties; | 63 var e |
64 var $$ = {}; | 64 if(f==="+"){v[e]=h.substring(1) |
65 | 65 var d=a3[h] |
66 // Native classes | 66 if(d>0)a3[e].$reflectable=d |
67 // Method closures | 67 if(g&&g.length)init.typeInformation[e]=g}else if(f==="@"){h=h.substring(1) |
68 $$.BoundClosure$i0 = [H, {"": "BoundClosure;_self,__js_helper$_target,_receiver,
__js_helper$_name", | 68 $[h]["@"]=g}else if(f==="*"){n[e].$defaultValues=g |
69 call$0: function() { | 69 var c=a3.$methodsWithOptionalArguments |
70 return this.__js_helper$_target.call(this._self, this._receiver); | 70 if(!c){a3.$methodsWithOptionalArguments=c={}}c[h]=e}else if(typeof g==="function
"){n[e=h]=g |
| 71 i.push(h) |
| 72 init.globalFunctions[h]=g}else if(g.constructor===Array){addStubs(n,g,h,true,a3,
i)}else{e=h |
| 73 var b={} |
| 74 var a0 |
| 75 for(var a1 in g){if(!u.call(g,a1))continue |
| 76 f=a1.substring(0,1) |
| 77 if(a1==="static"){processStatics(init.statics[h]=g[a1])}else if(f==="+"){w[a0]=a
1.substring(1) |
| 78 var d=g[a1] |
| 79 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] |
| 80 var c=b.$methodsWithOptionalArguments |
| 81 if(!c){b.$methodsWithOptionalArguments=c={}}c[a1]=a0}else{var a2=g[a1] |
| 82 if(a1!=="^"&&a2!=null&&a2.constructor===Array&&a1!=="<>"){addStubs(b,a2,a1,false
,g,[])}else{b[a0=a1]=a2}}}$$[h]=[n,b] |
| 83 j.push(h)}}}function addStubs(b3,b4,b5,b6,b7,b8){var h,g=[b7[b5]=b3[b5]=h=b4[0]] |
| 84 h.$stubName=b5 |
| 85 b8.push(b5) |
| 86 for(var f=0;f<b4.length;f+=2){h=b4[f+1] |
| 87 if(typeof h!="function")break |
| 88 h.$stubName=b4[f+2] |
| 89 g.push(h) |
| 90 if(h.$stubName){b7[h.$stubName]=b3[h.$stubName]=h |
| 91 b8.push(h.$stubName)}}for(var e=0;e<g.length;f++,e++){g[e].$callName=b4[f+1]}var
d=b4[++f] |
| 92 b4=b4.slice(++f) |
| 93 var c=b4[0] |
| 94 var b=c>>1 |
| 95 var a0=(c&1)===1 |
| 96 var a1=c===3 |
| 97 var a2=c===1 |
| 98 var a3=b4[1] |
| 99 var a4=a3>>1 |
| 100 var a5=(a3&1)===1 |
| 101 var a6=b+a4!=g[0].length |
| 102 var a7=b4[2] |
| 103 var a8=2*a4+b+3 |
| 104 var a9=b4.length>a8 |
| 105 if(d){h=tearOff(g,b4,b6,b5,a6) |
| 106 b3[b5].$getter=h |
| 107 h.$getterStub=true |
| 108 if(b6)init.globalFunctions[b5]=h |
| 109 b7[d]=b3[d]=h |
| 110 g.push(h) |
| 111 if(d)b8.push(d) |
| 112 h.$stubName=d |
| 113 h.$callName=null |
| 114 if(a6)init.interceptedNames[d]=true}if(a9){for(var e=0;e<g.length;e++){g[e].$ref
lectable=1 |
| 115 g[e].$reflectionInfo=b4}var b0=b6?init.mangledGlobalNames:init.mangledNames |
| 116 var b1=b4[a8] |
| 117 var b2=b1 |
| 118 if(d)b0[d]=b2 |
| 119 if(a1){b2+="="}else if(!a2){b2+=":"+b+":"+a4}b0[b5]=b2 |
| 120 g[0].$reflectionName=b2 |
| 121 g[0].$metadataIndex=a8+1 |
| 122 if(a4)b3[b1+"*"]=g[0]}}function tearOffGetterNoCsp(b,c,d,e){return e?new Functio
n("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 n
ew c(this, funcs[0], null, name);"+"}")(b,c,d,H,null)}function tearOffGetterCsp(
b,c,d,e){var h=null |
| 123 return e?function(f){if(h===null)h=H.qm(this,b,c,false,[f],d) |
| 124 return new h(this,b[0],f,d)}:function(){if(h===null)h=H.qm(this,b,c,false,[],d) |
| 125 return new h(this,b[0],null,d)}}function tearOff(b,c,d,e,f){var h |
| 126 return d?function(){if(h===void 0)h=H.qm(this,b,c,true,[],e).prototype |
| 127 return h}:y(b,c,e,f)}var z=0 |
| 128 var y=typeof dart_precompiled=="function"?tearOffGetterCsp:tearOffGetterNoCsp |
| 129 if(!init.libraries)init.libraries=[] |
| 130 if(!init.mangledNames)init.mangledNames=map() |
| 131 if(!init.mangledGlobalNames)init.mangledGlobalNames=map() |
| 132 if(!init.statics)init.statics=map() |
| 133 if(!init.typeInformation)init.typeInformation=map() |
| 134 if(!init.globalFunctions)init.globalFunctions=map() |
| 135 if(!init.interceptedNames)init.interceptedNames=map() |
| 136 var x=init.libraries |
| 137 var w=init.mangledNames |
| 138 var v=init.mangledGlobalNames |
| 139 var u=Object.prototype.hasOwnProperty |
| 140 var t=a.length |
| 141 for(var s=0;s<t;s++){var r=a[s] |
| 142 var q=r[0] |
| 143 var p=r[1] |
| 144 var o=r[2] |
| 145 var n=r[3] |
| 146 var m=r[4] |
| 147 var l=!!r[5] |
| 148 var k=m&&m["^"] |
| 149 var j=[] |
| 150 var i=[] |
| 151 processStatics(m) |
| 152 x.push([q,p,j,i,o,k,l,n])}})([["_foreign_helper","dart:_foreign_helper",,H,{ |
| 153 "^":"", |
| 154 FK:{ |
| 155 "^":"a;tT"}}],["_interceptors","dart:_interceptors",,J,{ |
| 156 "^":"", |
| 157 x:function(a){return void 0}, |
| 158 Qu:function(a,b,c,d){return{i:a,p:b,e:c,x:d}}, |
| 159 ks:function(a){var z,y,x,w |
| 160 z=a[init.dispatchPropertyName] |
| 161 if(z==null)if($.Bv==null){H.XD() |
| 162 z=a[init.dispatchPropertyName]}if(z!=null){y=z.p |
| 163 if(!1===y)return z.i |
| 164 if(!0===y)return a |
| 165 x=Object.getPrototypeOf(a) |
| 166 if(y===x)return z.i |
| 167 if(z.e===x)throw H.b(P.SY("Return interceptor for "+H.d(y(a,z))))}w=H.w3(a) |
| 168 if(w==null){y=Object.getPrototypeOf(a) |
| 169 if(y==null||y===Object.prototype)return C.ZQ |
| 170 else return C.vB}return w}, |
| 171 Gv:{ |
| 172 "^":"a;", |
| 173 n:function(a,b){return a===b}, |
| 174 giO:function(a){return H.eQ(a)}, |
| 175 bu:function(a){return H.a5(a)}, |
| 176 "%":"DOMError|FileError|MediaError|MediaKeyError|Navigator|NavigatorUserMediaErr
or|PositionError|SQLError|SVGAnimatedNumberList|SVGAnimatedString"}, |
| 177 kn:{ |
| 178 "^":"Gv;", |
| 179 bu:function(a){return String(a)}, |
| 180 giO:function(a){return a?519018:218159}, |
| 181 $isa2:true}, |
| 182 YE:{ |
| 183 "^":"Gv;", |
| 184 n:function(a,b){return null==b}, |
| 185 bu:function(a){return"null"}, |
| 186 giO:function(a){return 0}}, |
| 187 Ue:{ |
| 188 "^":"Gv;", |
| 189 giO:function(a){return 0}}, |
| 190 iC:{ |
| 191 "^":"Ue;"}, |
| 192 is:{ |
| 193 "^":"Ue;"}, |
| 194 Q:{ |
| 195 "^":"Gv;", |
| 196 Rz:function(a,b){var z |
| 197 if(!!a.fixed$length)H.vh(P.f("remove")) |
| 198 for(z=0;z<a.length;++z)if(J.de(a[z],b)){a.splice(z,1) |
| 199 return!0}return!1}, |
| 200 aN:function(a,b){return H.bQ(a,b)}, |
| 201 Zv:function(a,b){if(b<0||b>=a.length)return H.e(a,b) |
| 202 return a[b]}, |
| 203 tg:function(a,b){var z |
| 204 for(z=0;z<a.length;++z)if(J.de(a[z],b))return!0 |
| 205 return!1}, |
| 206 gl0:function(a){return a.length===0}, |
| 207 bu:function(a){return H.mx(a,"[","]")}, |
| 208 tt:function(a,b){var z |
| 209 if(b)return H.VM(a.slice(),[H.Kp(a,0)]) |
| 210 else{z=H.VM(a.slice(),[H.Kp(a,0)]) |
| 211 z.fixed$length=init |
| 212 return z}}, |
| 213 br:function(a){return this.tt(a,!0)}, |
| 214 gA:function(a){return new H.a7(a,a.length,0,null)}, |
| 215 giO:function(a){return H.eQ(a)}, |
| 216 gB:function(a){return a.length}, |
| 217 sB:function(a,b){if(b<0)throw H.b(P.N(b)) |
| 218 if(!!a.fixed$length)H.vh(P.f("set length")) |
| 219 a.length=b}, |
| 220 t:function(a,b){if(typeof b!=="number"||Math.floor(b)!==b)throw H.b(P.u(b)) |
| 221 if(b>=a.length||b<0)throw H.b(P.N(b)) |
| 222 return a[b]}, |
| 223 u:function(a,b,c){if(!!a.immutable$list)H.vh(P.f("indexed set")) |
| 224 if(typeof b!=="number"||Math.floor(b)!==b)throw H.b(P.u(b)) |
| 225 if(b>=a.length||b<0)throw H.b(P.N(b)) |
| 226 a[b]=c}, |
| 227 $isQ:true, |
| 228 $iszM:true, |
| 229 $aszM:null}, |
| 230 P:{ |
| 231 "^":"Gv;", |
| 232 JV:function(a,b){return a%b}, |
| 233 yu:function(a){var z |
| 234 if(a>=-2147483648&&a<=2147483647)return a|0 |
| 235 if(isFinite(a)){z=a<0?Math.ceil(a):Math.floor(a) |
| 236 return z+0}throw H.b(P.f(''+a))}, |
| 237 bu:function(a){if(a===0&&1/a<0)return"-0.0" |
| 238 else return""+a}, |
| 239 giO:function(a){return a&0x1FFFFFFF}, |
| 240 g:function(a,b){return a+b}, |
| 241 cU:function(a,b){return(a|0)===a?a/b|0:this.yu(a/b)}, |
| 242 GG:function(a,b){var z |
| 243 if(a>0)z=b>31?0:a>>>b |
| 244 else{z=b>31?31:b |
| 245 z=a>>z>>>0}return z}, |
| 246 C:function(a,b){if(typeof b!=="number")throw H.b(P.u(b)) |
| 247 return a<b}, |
| 248 F:function(a,b){if(typeof b!=="number")throw H.b(P.u(b)) |
| 249 return a>=b}, |
| 250 $islf:true, |
| 251 static:{"^":"SA,yc"}}, |
| 252 im:{ |
| 253 "^":"P;", |
| 254 $islf:true, |
| 255 $isKN:true}, |
| 256 VA:{ |
| 257 "^":"P;", |
| 258 $islf:true}, |
| 259 O:{ |
| 260 "^":"Gv;", |
| 261 j:function(a,b){if(b<0)throw H.b(P.N(b)) |
| 262 if(b>=a.length)throw H.b(P.N(b)) |
| 263 return a.charCodeAt(b)}, |
| 264 g:function(a,b){if(typeof b!=="string")throw H.b(P.u(b)) |
| 265 return a+b}, |
| 266 Nj:function(a,b,c){if(c==null)c=a.length |
| 267 if(typeof c!=="number"||Math.floor(c)!==c)H.vh(P.u(c)) |
| 268 if(b<0)throw H.b(P.N(b)) |
| 269 if(typeof c!=="number")return H.s(c) |
| 270 if(b>c)throw H.b(P.N(b)) |
| 271 if(c>a.length)throw H.b(P.N(c)) |
| 272 return a.substring(b,c)}, |
| 273 yn:function(a,b){return this.Nj(a,b,null)}, |
| 274 bS:function(a){var z,y,x,w,v |
| 275 z=a.trim() |
| 276 y=z.length |
| 277 if(y===0)return z |
| 278 if(this.j(z,0)===133){x=J.mm(z,1) |
| 279 if(x===y)return""}else x=0 |
| 280 w=y-1 |
| 281 v=this.j(z,w)===133?J.r9(z,w):y |
| 282 if(x===0&&v===y)return z |
| 283 return z.substring(x,v)}, |
| 284 gl0:function(a){return a.length===0}, |
| 285 bu:function(a){return a}, |
| 286 giO:function(a){var z,y,x |
| 287 for(z=a.length,y=0,x=0;x<z;++x){y=536870911&y+a.charCodeAt(x) |
| 288 y=536870911&y+((524287&y)<<10>>>0) |
| 289 y^=y>>6}y=536870911&y+((67108863&y)<<3>>>0) |
| 290 y^=y>>11 |
| 291 return 536870911&y+((16383&y)<<15>>>0)}, |
| 292 gB:function(a){return a.length}, |
| 293 t:function(a,b){if(typeof b!=="number"||Math.floor(b)!==b)throw H.b(P.u(b)) |
| 294 if(b>=a.length||b<0)throw H.b(P.N(b)) |
| 295 return a[b]}, |
| 296 $isqU:true, |
| 297 static:{Ga:function(a){if(a<256)switch(a){case 9:case 10:case 11:case 12:case 13
:case 32:case 133:case 160:return!0 |
| 298 default:return!1}switch(a){case 5760:case 6158:case 8192:case 8193:case 8194:cas
e 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:cas
e 8232:case 8233:case 8239:case 8287:case 12288:case 65279:return!0 |
| 299 default:return!1}},mm:function(a,b){var z,y |
| 300 for(z=a.length;b<z;){if(b>=z)H.vh(P.N(b)) |
| 301 y=a.charCodeAt(b) |
| 302 if(y!==32&&y!==13&&!J.Ga(y))break;++b}return b},r9:function(a,b){var z,y,x |
| 303 for(z=a.length;b>0;b=y){y=b-1 |
| 304 if(y>=z)H.vh(P.N(y)) |
| 305 x=a.charCodeAt(y) |
| 306 if(x!==32&&x!==13&&!J.Ga(x))break}return b}}}}],["_isolate_helper","dart:_isolat
e_helper",,H,{ |
| 307 "^":"", |
| 308 zd:function(a,b){var z=a.vV(b) |
| 309 init.globalState.Xz.bL() |
| 310 return z}, |
| 311 ox:function(){--init.globalState.Xz.GL}, |
| 312 Rq:function(a,b){var z,y,x,w,v,u |
| 313 z={} |
| 314 z.a=b |
| 315 b=b |
| 316 z.a=b |
| 317 if(b==null){b=[] |
| 318 z.a=b |
| 319 y=b}else y=b |
| 320 if(!J.x(y).$iszM)throw H.b(P.u("Arguments to main must be a List: "+H.d(y))) |
| 321 y=new H.O2(0,0,1,null,null,null,null,null,null,null,null,null,a) |
| 322 y.i6(a) |
| 323 init.globalState=y |
| 324 if(init.globalState.EF===!0)return |
| 325 y=init.globalState.Hg++ |
| 326 x=P.L5(null,null,null,P.KN,H.yo) |
| 327 w=P.Ls(null,null,null,P.KN) |
| 328 v=new H.yo(0,null,!1) |
| 329 u=new H.aX(y,x,w,new I(),v,P.N3(),P.N3(),!1,[],P.Ls(null,null,null,null),null,nu
ll,!1,!1) |
| 330 w.h(0,0) |
| 331 u.aU(0,v) |
| 332 init.globalState.yc=u |
| 333 init.globalState.N0=u |
| 334 y=H.N7() |
| 335 x=H.KT(y,[y]).BD(a) |
| 336 if(x)u.vV(new H.PK(z,a)) |
| 337 else{y=H.KT(y,[y,y]).BD(a) |
| 338 if(y)u.vV(new H.JO(z,a)) |
| 339 else u.vV(a)}init.globalState.Xz.bL()}, |
| 340 Td:function(){var z=init.currentScript |
| 341 if(z!=null)return String(z.src) |
| 342 if(typeof version=="function"&&typeof os=="object"&&"system" in os)return H.mf() |
| 343 if(typeof version=="function"&&typeof system=="function")return thisFilename() |
| 344 if(init.globalState.EF===!0)return H.mf() |
| 345 return}, |
| 346 mf:function(){var z,y |
| 347 z=new Error().stack |
| 348 if(z==null){z=function(){try{throw new Error()}catch(x){return x.stack}}() |
| 349 if(z==null)throw H.b(P.f("No stack trace"))}y=z.match(new RegExp("^ *at [^(]*\\(
(.*):[0-9]*:[0-9]*\\)$","m")) |
| 350 if(y!=null)return y[1] |
| 351 y=z.match(new RegExp("^[^@]*@(.*):[0-9]*$","m")) |
| 352 if(y!=null)return y[1] |
| 353 throw H.b(P.f("Cannot extract URI from \""+H.d(z)+"\""))}, |
| 354 Mg:function(a,b){var z,y,x,w,v,u,t,s,r,q,p,o,n,m,l,k,j,i |
| 355 z=H.Hh(b.data) |
| 356 y=J.U6(z) |
| 357 switch(y.t(z,"command")){case"start":init.globalState.oL=y.t(z,"id") |
| 358 x=y.t(z,"functionName") |
| 359 w=x==null?init.globalState.w2:init.globalFunctions[x]() |
| 360 v=y.t(z,"args") |
| 361 u=H.Hh(y.t(z,"msg")) |
| 362 t=y.t(z,"isSpawnUri") |
| 363 s=y.t(z,"startPaused") |
| 364 r=H.Hh(y.t(z,"replyTo")) |
| 365 y=init.globalState.Hg++ |
| 366 q=P.L5(null,null,null,P.KN,H.yo) |
| 367 p=P.Ls(null,null,null,P.KN) |
| 368 o=new H.yo(0,null,!1) |
| 369 n=new H.aX(y,q,p,new I(),o,P.N3(),P.N3(),!1,[],P.Ls(null,null,null,null),null,nu
ll,!1,!1) |
| 370 p.h(0,0) |
| 371 n.aU(0,o) |
| 372 init.globalState.Xz.Rk.NZ(new H.IY(n,new H.jl(w,v,u,t,s,r),"worker-start")) |
| 373 init.globalState.N0=n |
| 374 init.globalState.Xz.bL() |
| 375 break |
| 376 case"spawn-worker":q=y.t(z,"functionName") |
| 377 m=y.t(z,"uri") |
| 378 p=y.t(z,"args") |
| 379 o=y.t(z,"msg") |
| 380 l=y.t(z,"isSpawnUri") |
| 381 k=y.t(z,"startPaused") |
| 382 y=y.t(z,"replyPort") |
| 383 if(m==null)m=$.Rs() |
| 384 j=new Worker(m) |
| 385 j.onmessage=function(c,d){return function(e){c(d,e)}}(H.Mg,j) |
| 386 i=init.globalState.Y7++ |
| 387 $.p6().u(0,j,i) |
| 388 init.globalState.XC.u(0,i,j) |
| 389 j.postMessage(H.Gy(P.EF(["command","start","id",i,"replyTo",H.Gy(y),"args",p,"ms
g",H.Gy(o),"isSpawnUri",l,"startPaused",k,"functionName",q],null,null))) |
| 390 break |
| 391 case"message":if(y.t(z,"port")!=null)y.t(z,"port").wR(y.t(z,"msg")) |
| 392 init.globalState.Xz.bL() |
| 393 break |
| 394 case"close":init.globalState.XC.Rz(0,$.p6().t(0,a)) |
| 395 a.terminate() |
| 396 init.globalState.Xz.bL() |
| 397 break |
| 398 case"log":H.VL(y.t(z,"msg")) |
| 399 break |
| 400 case"print":if(init.globalState.EF===!0){y=init.globalState.vd |
| 401 q=H.Gy(P.EF(["command","print","msg",z],null,null)) |
| 402 y.toString |
| 403 self.postMessage(q)}else P.JS(y.t(z,"msg")) |
| 404 break |
| 405 case"error":throw H.b(y.t(z,"msg"))}}, |
| 406 VL:function(a){var z,y,x,w |
| 407 if(init.globalState.EF===!0){y=init.globalState.vd |
| 408 x=H.Gy(P.EF(["command","log","msg",a],null,null)) |
| 409 y.toString |
| 410 self.postMessage(x)}else try{$.jk().console.log(a)}catch(w){H.Ru(w) |
| 411 z=new H.XO(w,null) |
| 412 throw H.b(P.FM(z))}}, |
| 413 Z7:function(a,b,c,d,e,f){var z,y,x,w |
| 414 z=init.globalState.N0 |
| 415 y=z.jO |
| 416 $.te=$.te+("_"+y) |
| 417 $.eb=$.eb+("_"+y) |
| 418 y=z.EE |
| 419 x=init.globalState.N0.jO |
| 420 w=z.Qy |
| 421 f.wR(["spawned",new H.JM(y,x),w,z.PX]) |
| 422 x=new H.vK(a,b,c,d) |
| 423 if(e===!0){z.v8(w,w) |
| 424 init.globalState.Xz.Rk.NZ(new H.IY(z,x,"start isolate"))}else x.$0()}, |
| 425 Gy:function(a){var z |
| 426 if(init.globalState.ji===!0){z=new H.Bj(0,new H.X1()) |
| 427 z.iq=new H.fP(null) |
| 428 return z.h7(a)}else{z=new H.NO(new H.X1()) |
| 429 z.iq=new H.fP(null) |
| 430 return z.h7(a)}}, |
| 431 Hh:function(a){if(init.globalState.ji===!0)return new H.II(null).QS(a) |
| 432 else return a}, |
| 433 vM:function(a){return a==null||typeof a==="string"||typeof a==="number"||typeof
a==="boolean"}, |
| 434 uu:function(a){return a==null||typeof a==="string"||typeof a==="number"||typeof
a==="boolean"}, |
| 435 PK:{ |
| 436 "^":"Tp:7;a,b", |
| 437 $0:function(){this.b.$1(this.a.a)}}, |
| 438 JO:{ |
| 439 "^":"Tp:7;a,c", |
| 440 $0:function(){this.c.$2(this.a.a,null)}}, |
| 441 O2:{ |
| 442 "^":"a;Hg,oL,Y7,N0,yc,Xz,Ai,EF,ji,i2,vd,XC,w2", |
| 443 i6:function(a){var z,y,x,w |
| 444 z=$.C5()==null |
| 445 y=$.vy() |
| 446 x=z&&$.Iz()===!0 |
| 447 this.EF=x |
| 448 if(!x)y=y!=null&&$.Rs()!=null |
| 449 else y=!0 |
| 450 this.ji=y |
| 451 this.Ai=z&&!x |
| 452 y=H.IY |
| 453 x=H.VM(new P.Sw(null,0,0,0),[y]) |
| 454 x.Eo(null,y) |
| 455 this.Xz=new H.cC(x,0) |
| 456 this.i2=P.L5(null,null,null,P.KN,H.aX) |
| 457 this.XC=P.L5(null,null,null,P.KN,null) |
| 458 if(this.EF===!0){z=new H.JH() |
| 459 this.vd=z |
| 460 w=function(b,c){return function(d){b(c,d)}}(H.Mg,z) |
| 461 $.jk().onmessage=w |
| 462 $.jk().dartPrint=function(b){}}}}, |
| 463 aX:{ |
| 464 "^":"a;jO,Gx,fW,En<,EE<,Qy,PX,UF,C9,lJ,Jp,ml,mf,pa", |
| 465 v8:function(a,b){if(!this.Qy.n(0,a))return |
| 466 if(this.lJ.h(0,b)&&!this.UF)this.UF=!0 |
| 467 this.PC()}, |
| 468 cK:function(a){var z,y,x,w,v,u |
| 469 if(!this.UF)return |
| 470 z=this.lJ |
| 471 z.Rz(0,a) |
| 472 if(z.X5===0){for(z=this.C9;y=z.length,y!==0;){if(0>=y)return H.e(z,0) |
| 473 x=z.pop() |
| 474 y=init.globalState.Xz.Rk |
| 475 w=y.av |
| 476 v=y.v5 |
| 477 u=v.length |
| 478 w=(w-1&u-1)>>>0 |
| 479 y.av=w |
| 480 if(w<0||w>=u)return H.e(v,w) |
| 481 v[w]=x |
| 482 if(w===y.HV)y.VW();++y.qT}this.UF=!1}this.PC()}, |
| 483 iK:function(a){var z=this.Jp |
| 484 if(z==null){z=[] |
| 485 this.Jp=z}if(J.kE(z,a))return |
| 486 this.Jp.push(a)}, |
| 487 Hh:function(a){var z=this.Jp |
| 488 if(z==null)return |
| 489 J.V1(z,a)}, |
| 490 MZ:function(a,b){if(!this.PX.n(0,a))return |
| 491 this.pa=b}, |
| 492 Wq:function(a,b){var z,y |
| 493 z=J.x(b) |
| 494 if(!z.n(b,0))y=z.n(b,1)&&!this.mf |
| 495 else y=!0 |
| 496 if(y){a.wR(null) |
| 497 return}y=new H.NY(a) |
| 498 if(z.n(b,2)){init.globalState.Xz.Rk.NZ(new H.IY(this,y,"ping")) |
| 499 return}z=this.ml |
| 500 if(z==null){z=H.VM(new P.Sw(null,0,0,0),[null]) |
| 501 z.Eo(null,null) |
| 502 this.ml=z}z.NZ(y)}, |
| 503 bc:function(a,b){var z,y |
| 504 if(!this.PX.n(0,a))return |
| 505 z=J.x(b) |
| 506 if(!z.n(b,0))y=z.n(b,1)&&!this.mf |
| 507 else y=!0 |
| 508 if(y){this.Dm() |
| 509 return}if(z.n(b,2)){z=init.globalState.Xz |
| 510 y=this.gIm() |
| 511 z.Rk.NZ(new H.IY(this,y,"kill")) |
| 512 return}z=this.ml |
| 513 if(z==null){z=H.VM(new P.Sw(null,0,0,0),[null]) |
| 514 z.Eo(null,null) |
| 515 this.ml=z}z.NZ(this.gIm())}, |
| 516 vV:function(a){var z,y,x |
| 517 z=init.globalState.N0 |
| 518 init.globalState.N0=this |
| 519 $=this.En |
| 520 y=null |
| 521 this.mf=!0 |
| 522 try{y=a.$0()}finally{this.mf=!1 |
| 523 init.globalState.N0=z |
| 524 if(z!=null)$=z.gEn() |
| 525 if(this.ml!=null)for(;x=this.ml,!x.gl0(x);)this.ml.Ux().$0()}return y}, |
| 526 hV:function(a){return this.Gx.t(0,a)}, |
| 527 aU:function(a,b){var z=this.Gx |
| 528 if(z.x4(0,a))throw H.b(P.FM("Registry: ports must be registered only once.")) |
| 529 z.u(0,a,b)}, |
| 530 PC:function(){if(this.Gx.X5-this.fW.X5>0||this.UF)init.globalState.i2.u(0,this.j
O,this) |
| 531 else this.Dm()}, |
| 532 Dm:[function(){var z,y,x |
| 533 z=this.ml |
| 534 if(z!=null)z.V1(0) |
| 535 for(z=this.Gx,y=z.gUQ(z),x=y.l6,y=H.VM(new H.MH(null,x.gA(x),y.T6),[H.Kp(y,0),H.
Kp(y,1)]);y.G();)y.lo.pr() |
| 536 if(z.X5>0){z.lX=null |
| 537 z.H9=null |
| 538 z.OB=null |
| 539 z.OX=null |
| 540 z.vv=null |
| 541 z.X5=0 |
| 542 z.zN=z.zN+1&67108863}z=this.fW |
| 543 if(z.X5>0){z.lX=null |
| 544 z.H9=null |
| 545 z.OB=null |
| 546 z.OX=null |
| 547 z.vv=null |
| 548 z.X5=0 |
| 549 z.zN=z.zN+1&67108863}init.globalState.i2.Rz(0,this.jO) |
| 550 z=this.Jp |
| 551 if(z!=null){for(z=new H.a7(z,z.length,0,null);z.G();)z.lo.wR(null) |
| 552 this.Jp=null}},"$0","gIm",0,0,1]}, |
| 553 NY:{ |
| 554 "^":"Tp:1;a", |
| 555 $0:function(){this.a.wR(null)}}, |
| 556 cC:{ |
| 557 "^":"a;Rk,GL", |
| 558 Jc:function(){var z=this.Rk |
| 559 if(z.av===z.HV)return |
| 560 return z.Ux()}, |
| 561 xB:function(){var z,y,x |
| 562 z=this.Jc() |
| 563 if(z==null){if(init.globalState.yc!=null&&init.globalState.i2.x4(0,init.globalSt
ate.yc.jO)&&init.globalState.Ai===!0&&init.globalState.yc.Gx.X5===0)H.vh(P.FM("P
rogram exited with open ReceivePorts.")) |
| 564 y=init.globalState |
| 565 if(y.EF===!0&&y.i2.X5===0&&y.Xz.GL===0){y=y.vd |
| 566 x=H.Gy(P.EF(["command","close"],null,null)) |
| 567 y.toString |
| 568 self.postMessage(x)}return!1}z.VU() |
| 569 return!0}, |
| 570 Wu:function(){if($.C5()!=null)new H.RA(this).$0() |
| 571 else for(;this.xB(););}, |
| 572 bL:function(){var z,y,x,w,v |
| 573 if(init.globalState.EF!==!0)this.Wu() |
| 574 else try{this.Wu()}catch(x){w=H.Ru(x) |
| 575 z=w |
| 576 y=new H.XO(x,null) |
| 577 w=init.globalState.vd |
| 578 v=H.Gy(P.EF(["command","error","msg",H.d(z)+"\n"+H.d(y)],null,null)) |
| 579 w.toString |
| 580 self.postMessage(v)}}}, |
| 581 RA:{ |
| 582 "^":"Tp:1;a", |
| 583 $0:function(){if(!this.a.xB())return |
| 584 P.rT(C.RT,this)}}, |
| 585 IY:{ |
| 586 "^":"a;od,i3,G1", |
| 587 VU:function(){var z=this.od |
| 588 if(z.UF){z.C9.push(this) |
| 589 return}z.vV(this.i3)}}, |
| 590 JH:{ |
| 591 "^":"a;"}, |
| 592 jl:{ |
| 593 "^":"Tp:7;a,b,c,d,e,f", |
| 594 $0:function(){H.Z7(this.a,this.b,this.c,this.d,this.e,this.f)}}, |
| 595 vK:{ |
| 596 "^":"Tp:1;a,b,c,d", |
| 597 $0:function(){var z,y,x |
| 598 if(this.d!==!0)this.a.$1(this.c) |
| 599 else{z=this.a |
| 600 y=H.N7() |
| 601 x=H.KT(y,[y,y]).BD(z) |
| 602 if(x)z.$2(this.b,this.c) |
| 603 else{y=H.KT(y,[y]).BD(z) |
| 604 if(y)z.$1(this.b) |
| 605 else z.$0()}}}}, |
| 606 Iy:{ |
| 607 "^":"a;", |
| 608 $isbC:true, |
| 609 $isIU:true}, |
| 610 JM:{ |
| 611 "^":"Iy;JE,Jz", |
| 612 wR:function(a){var z,y,x,w,v |
| 613 z={} |
| 614 y=this.Jz |
| 615 x=init.globalState.i2.t(0,y) |
| 616 if(x==null)return |
| 617 w=this.JE |
| 618 if(w.gKS())return |
| 619 v=init.globalState.N0!=null&&init.globalState.N0.jO!==y |
| 620 z.a=a |
| 621 if(v)z.a=H.Gy(a) |
| 622 if(x.gEE()===w){z=z.a |
| 623 y=J.U6(z) |
| 624 switch(y.t(z,0)){case"pause":x.v8(y.t(z,1),y.t(z,2)) |
| 625 break |
| 626 case"resume":x.cK(y.t(z,1)) |
| 627 break |
| 628 case"add-ondone":x.iK(y.t(z,1)) |
| 629 break |
| 630 case"remove-ondone":x.Hh(y.t(z,1)) |
| 631 break |
| 632 case"set-errors-fatal":x.MZ(y.t(z,1),y.t(z,2)) |
| 633 break |
| 634 case"ping":x.Wq(y.t(z,1),y.t(z,2)) |
| 635 break |
| 636 case"kill":x.bc(y.t(z,1),y.t(z,2)) |
| 637 break}return}y=init.globalState.Xz |
| 638 w="receive "+H.d(a) |
| 639 y.Rk.NZ(new H.IY(x,new H.Ua(z,this,v),w))}, |
| 640 n:function(a,b){if(b==null)return!1 |
| 641 return!!J.x(b).$isJM&&J.de(this.JE,b.JE)}, |
| 642 giO:function(a){return this.JE.gx6()}, |
| 643 $isJM:true, |
| 644 $isbC:true, |
| 645 $isIU:true}, |
| 646 Ua:{ |
| 647 "^":"Tp:7;a,b,c", |
| 648 $0:function(){var z,y |
| 649 z=this.b.JE |
| 650 if(!z.gKS()){if(this.c){y=this.a |
| 651 y.a=H.Hh(y.a)}z.FL(this.a.a)}}}, |
| 652 ns:{ |
| 653 "^":"Iy;Ws,bv,Jz", |
| 654 wR:function(a){var z,y |
| 655 z=H.Gy(P.EF(["command","message","port",this,"msg",a],null,null)) |
| 656 if(init.globalState.EF===!0){init.globalState.vd.toString |
| 657 self.postMessage(z)}else{y=init.globalState.XC.t(0,this.Ws) |
| 658 if(y!=null)y.postMessage(z)}}, |
| 659 n:function(a,b){if(b==null)return!1 |
| 660 return!!J.x(b).$isns&&J.de(this.Ws,b.Ws)&&J.de(this.Jz,b.Jz)&&J.de(this.bv,b.bv)
}, |
| 661 giO:function(a){var z,y,x |
| 662 z=this.Ws |
| 663 if(typeof z!=="number")return z.O() |
| 664 y=this.Jz |
| 665 if(typeof y!=="number")return y.O() |
| 666 x=this.bv |
| 667 if(typeof x!=="number")return H.s(x) |
| 668 return(z<<16^y<<8^x)>>>0}, |
| 669 $isns:true, |
| 670 $isbC:true, |
| 671 $isIU:true}, |
| 672 yo:{ |
| 673 "^":"a;x6<,Sy,KS<", |
| 674 aV:function(a){return this.Sy.$1(a)}, |
| 675 pr:function(){this.KS=!0 |
| 676 this.Sy=null}, |
| 677 FL:function(a){if(this.KS)return |
| 678 this.aV(a)}, |
| 679 static:{"^":"ty"}}, |
| 680 Bj:{ |
| 681 "^":"Tf;CN,iq", |
| 682 aC:function(a){if(!!a.$isJM)return["sendport",init.globalState.oL,a.Jz,a.JE.gx6(
)] |
| 683 if(!!a.$isns)return["sendport",a.Ws,a.Jz,a.bv] |
| 684 throw H.b("Illegal underlying port "+a.bu(0))}, |
| 685 yf:function(a){if(!!a.$isku)return["capability",a.x6] |
| 686 throw H.b("Capability not serializable: "+a.bu(0))}}, |
| 687 NO:{ |
| 688 "^":"oo;iq", |
| 689 aC:function(a){if(!!a.$isJM)return new H.JM(a.JE,a.Jz) |
| 690 if(!!a.$isns)return new H.ns(a.Ws,a.bv,a.Jz) |
| 691 throw H.b("Illegal underlying port "+a.bu(0))}, |
| 692 yf:function(a){if(!!a.$isku)return new H.ku(a.x6) |
| 693 throw H.b("Capability not serializable: "+a.bu(0))}}, |
| 694 II:{ |
| 695 "^":"iY;RZ", |
| 696 Vf:function(a){var z,y,x,w,v,u |
| 697 z=J.U6(a) |
| 698 y=z.t(a,1) |
| 699 x=z.t(a,2) |
| 700 w=z.t(a,3) |
| 701 if(J.de(y,init.globalState.oL)){v=init.globalState.i2.t(0,x) |
| 702 if(v==null)return |
| 703 u=v.hV(w) |
| 704 if(u==null)return |
| 705 return new H.JM(u,x)}else return new H.ns(y,w,x)}, |
| 706 Op:function(a){return new H.ku(J.UQ(a,1))}}, |
| 707 fP:{ |
| 708 "^":"a;kw", |
| 709 t:function(a,b){return b.__MessageTraverser__attached_info__}, |
| 710 u:function(a,b,c){this.kw.push(b) |
| 711 b.__MessageTraverser__attached_info__=c}, |
| 712 CH:function(a){this.kw=[]}, |
| 713 F4:function(){var z,y,x |
| 714 for(z=this.kw.length,y=0;y<z;++y){x=this.kw |
| 715 if(y>=x.length)return H.e(x,y) |
| 716 x[y].__MessageTraverser__attached_info__=null}this.kw=null}}, |
| 717 X1:{ |
| 718 "^":"a;", |
| 719 t:function(a,b){return}, |
| 720 u:function(a,b,c){}, |
| 721 CH:function(a){}, |
| 722 F4:function(){}}, |
| 723 HU:{ |
| 724 "^":"a;", |
| 725 h7:function(a){var z |
| 726 if(H.vM(a))return this.Pq(a) |
| 727 this.iq.CH(0) |
| 728 z=null |
| 729 try{z=this.I8(a)}finally{this.iq.F4()}return z}, |
| 730 I8:function(a){var z |
| 731 if(a==null||typeof a==="string"||typeof a==="number"||typeof a==="boolean")retur
n this.Pq(a) |
| 732 z=J.x(a) |
| 733 if(!!z.$iszM)return this.wb(a) |
| 734 if(!!z.$isZ0)return this.w5(a) |
| 735 if(!!z.$isbC)return this.aC(a) |
| 736 if(!!z.$isIU)return this.yf(a) |
| 737 return this.N1(a)}, |
| 738 N1:function(a){throw H.b("Message serialization: Illegal value "+H.d(a)+" passed
")}}, |
| 739 oo:{ |
| 740 "^":"HU;", |
| 741 Pq:function(a){return a}, |
| 742 wb:function(a){var z,y,x |
| 743 z=this.iq.t(0,a) |
| 744 if(z!=null)return z |
| 745 y=J.q8(a) |
| 746 z=Array(y) |
| 747 z.fixed$length=init |
| 748 this.iq.u(0,a,z) |
| 749 for(x=0;x<y;++x){if(x>=a.length)return H.e(a,x) |
| 750 z[x]=this.I8(a[x])}return z}, |
| 751 w5:function(a){var z,y |
| 752 z={} |
| 753 y=this.iq.t(0,a) |
| 754 z.a=y |
| 755 if(y!=null)return y |
| 756 y=P.L5(null,null,null,null,null) |
| 757 z.a=y |
| 758 this.iq.u(0,a,y) |
| 759 J.kH(a,new H.OW(z,this)) |
| 760 return z.a}, |
| 761 aC:function(a){return H.vh(P.SY(null))}, |
| 762 yf:function(a){return H.vh(P.SY(null))}}, |
| 763 OW:{ |
| 764 "^":"Tp:8;a,b", |
| 765 $2:function(a,b){var z=this.b |
| 766 J.kW(this.a.a,z.I8(a),z.I8(b))}}, |
| 767 Tf:{ |
| 768 "^":"HU;", |
| 769 Pq:function(a){return a}, |
| 770 wb:function(a){var z,y |
| 771 z=this.iq.t(0,a) |
| 772 if(z!=null)return["ref",z] |
| 773 y=this.CN++ |
| 774 this.iq.u(0,a,y) |
| 775 return["list",y,this.mE(a)]}, |
| 776 w5:function(a){var z,y,x |
| 777 z=this.iq.t(0,a) |
| 778 if(z!=null)return["ref",z] |
| 779 y=this.CN++ |
| 780 this.iq.u(0,a,y) |
| 781 x=J.RE(a) |
| 782 return["map",y,this.mE(J.qA(x.gvc(a))),this.mE(J.qA(x.gUQ(a)))]}, |
| 783 mE:function(a){var z,y,x,w |
| 784 z=J.q8(a) |
| 785 y=[] |
| 786 C.Nm.sB(y,z) |
| 787 for(x=0;x<z;++x){if(x>=a.length)return H.e(a,x) |
| 788 w=this.I8(a[x]) |
| 789 if(x>=y.length)return H.e(y,x) |
| 790 y[x]=w}return y}, |
| 791 aC:function(a){return H.vh(P.SY(null))}, |
| 792 yf:function(a){return H.vh(P.SY(null))}}, |
| 793 iY:{ |
| 794 "^":"a;", |
| 795 QS:function(a){if(H.uu(a))return a |
| 796 this.RZ=P.Py(null,null,null,null,null) |
| 797 return this.XE(a)}, |
| 798 XE:function(a){var z,y |
| 799 if(a==null||typeof a==="string"||typeof a==="number"||typeof a==="boolean")retur
n a |
| 800 z=J.U6(a) |
| 801 switch(z.t(a,0)){case"ref":y=z.t(a,1) |
| 802 return this.RZ.t(0,y) |
| 803 case"list":return this.Dj(a) |
| 804 case"map":return this.tv(a) |
| 805 case"sendport":return this.Vf(a) |
| 806 case"capability":return this.Op(a) |
| 807 default:return this.PR(a)}}, |
| 808 Dj:function(a){var z,y,x,w,v |
| 809 z=J.U6(a) |
| 810 y=z.t(a,1) |
| 811 x=z.t(a,2) |
| 812 this.RZ.u(0,y,x) |
| 813 z=J.U6(x) |
| 814 w=z.gB(x) |
| 815 if(typeof w!=="number")return H.s(w) |
| 816 v=0 |
| 817 for(;v<w;++v)z.u(x,v,this.XE(z.t(x,v))) |
| 818 return x}, |
| 819 tv:function(a){var z,y,x,w,v,u,t,s |
| 820 z=P.L5(null,null,null,null,null) |
| 821 y=J.U6(a) |
| 822 x=y.t(a,1) |
| 823 this.RZ.u(0,x,z) |
| 824 w=y.t(a,2) |
| 825 v=y.t(a,3) |
| 826 y=J.U6(w) |
| 827 u=y.gB(w) |
| 828 if(typeof u!=="number")return H.s(u) |
| 829 t=J.U6(v) |
| 830 s=0 |
| 831 for(;s<u;++s)z.u(0,this.XE(y.t(w,s)),this.XE(t.t(v,s))) |
| 832 return z}, |
| 833 PR:function(a){throw H.b("Unexpected serialized object")}}, |
| 834 yH:{ |
| 835 "^":"a;Kf,zu,p9", |
| 836 Qa:function(a,b){var z,y |
| 837 if(a===0)z=$.jk().setTimeout==null||init.globalState.EF===!0 |
| 838 else z=!1 |
| 839 if(z){this.p9=1 |
| 840 z=init.globalState.Xz |
| 841 y=init.globalState.N0 |
| 842 z.Rk.NZ(new H.IY(y,new H.FA(this,b),"timer")) |
| 843 this.zu=!0}else{z=$.jk() |
| 844 if(z.setTimeout!=null){++init.globalState.Xz.GL |
| 845 this.p9=z.setTimeout(H.tR(new H.Av(this,b),0),a)}else throw H.b(P.f("Timer great
er than 0."))}}, |
| 846 static:{cy:function(a,b){var z=new H.yH(!0,!1,null) |
| 847 z.Qa(a,b) |
| 848 return z}}}, |
| 849 FA:{ |
| 850 "^":"Tp:1;a,b", |
| 851 $0:function(){this.a.p9=null |
| 852 this.b.$0()}}, |
| 853 Av:{ |
| 854 "^":"Tp:1;c,d", |
| 855 $0:function(){this.c.p9=null |
| 856 H.ox() |
| 857 this.d.$0()}}, |
| 858 ku:{ |
| 859 "^":"a;x6<", |
| 860 giO:function(a){var z=this.x6 |
| 861 if(typeof z!=="number")return z.m() |
| 862 z=C.CD.GG(z,0)^C.CD.cU(z,4294967296) |
| 863 z=(~z>>>0)+(z<<15>>>0)&4294967295 |
| 864 z=((z^z>>>12)>>>0)*5&4294967295 |
| 865 z=((z^z>>>4)>>>0)*2057&4294967295 |
| 866 return(z^z>>>16)>>>0}, |
| 867 n:function(a,b){var z,y |
| 868 if(b==null)return!1 |
| 869 if(b===this)return!0 |
| 870 if(!!J.x(b).$isku){z=this.x6 |
| 871 y=b.x6 |
| 872 return z==null?y==null:z===y}return!1}, |
| 873 $isku:true, |
| 874 $isIU:true}}],["_js_helper","dart:_js_helper",,H,{ |
| 875 "^":"", |
| 876 wV:function(a,b){var z |
| 877 if(b!=null){z=b.x |
| 878 if(z!=null)return z}return!!J.x(a).$isXj}, |
| 879 d:function(a){var z |
| 880 if(typeof a==="string")return a |
| 881 if(typeof a==="number"){if(a!==0)return""+a}else if(!0===a)return"true" |
| 882 else if(!1===a)return"false" |
| 883 else if(a==null)return"null" |
| 884 z=J.AG(a) |
| 885 if(typeof z!=="string")throw H.b(P.u(a)) |
| 886 return z}, |
| 887 eQ:function(a){var z=a.$identityHash |
| 888 if(z==null){z=Math.random()*0x3fffffff|0 |
| 889 a.$identityHash=z}return z}, |
| 890 lh:function(a){var z,y |
| 891 z=C.w2(J.x(a)) |
| 892 if(z==="Object"){y=String(a.constructor).match(/^\s*function\s*(\S*)\s*\(/)[1] |
| 893 if(typeof y==="string")z=/^\w+$/.test(y)?y:z}if(z.length>1&&C.xB.j(z,0)===36)z=C
.xB.yn(z,1) |
| 894 return(z+H.ia(H.oX(a),0,null)).replace(/[^<,> ]+/g,function(b){return init.mangl
edGlobalNames[b]||b})}, |
| 895 a5:function(a){return"Instance of '"+H.lh(a)+"'"}, |
| 896 Lw:function(a){var z |
| 897 if(0<=a){if(a<=65535)return String.fromCharCode(a) |
| 898 if(a<=1114111){z=a-65536 |
| 899 return String.fromCharCode((55296|C.jn.GG(z,10))>>>0,56320|z&1023)}}throw H.b(P.
TE(a,0,1114111))}, |
| 900 VK:function(a,b){if(a==null||typeof a==="boolean"||typeof a==="number"||typeof a
==="string")throw H.b(P.u(a)) |
| 901 return a[b]}, |
| 902 aw:function(a,b,c){if(a==null||typeof a==="boolean"||typeof a==="number"||typeof
a==="string")throw H.b(P.u(a)) |
| 903 a[b]=c}, |
| 904 s:function(a){throw H.b(P.u(a))}, |
| 905 e:function(a,b){if(a==null)J.q8(a) |
| 906 if(typeof b!=="number"||Math.floor(b)!==b)H.s(b) |
| 907 throw H.b(P.N(b))}, |
| 908 b:function(a){var z |
| 909 if(a==null)a=new P.LK() |
| 910 z=new Error() |
| 911 z.dartException=a |
| 912 if("defineProperty" in Object){Object.defineProperty(z,"message",{get:H.Ju}) |
| 913 z.name=""}else z.toString=H.Ju |
| 914 return z}, |
| 915 Ju:function(){return J.AG(this.dartException)}, |
| 916 vh:function(a){throw H.b(a)}, |
| 917 Ru:function(a){var z,y,x,w,v,u,t,s,r,q,p,o,n,m |
| 918 z=new H.Am(a) |
| 919 if(a==null)return |
| 920 if(typeof a!=="object")return a |
| 921 if("dartException" in a)return z.$1(a.dartException) |
| 922 else if(!("message" in a))return a |
| 923 y=a.message |
| 924 if("number" in a&&typeof a.number=="number"){x=a.number |
| 925 w=x&65535 |
| 926 if((C.jn.GG(x,16)&8191)===10)switch(w){case 438:return z.$1(H.T3(H.d(y)+" (Error
"+w+")",null)) |
| 927 case 445:case 5007:v=H.d(y)+" (Error "+w+")" |
| 928 return z.$1(new H.Zo(v,null))}}if(a instanceof TypeError){v=$.WD() |
| 929 u=$.OI() |
| 930 t=$.PH() |
| 931 s=$.D1() |
| 932 r=$.rx() |
| 933 q=$.Y9() |
| 934 p=$.zO() |
| 935 $.Pv() |
| 936 o=$.eA() |
| 937 n=$.ko() |
| 938 m=v.qS(y) |
| 939 if(m!=null)return z.$1(H.T3(y,m)) |
| 940 else{m=u.qS(y) |
| 941 if(m!=null){m.method="call" |
| 942 return z.$1(H.T3(y,m))}else{m=t.qS(y) |
| 943 if(m==null){m=s.qS(y) |
| 944 if(m==null){m=r.qS(y) |
| 945 if(m==null){m=q.qS(y) |
| 946 if(m==null){m=p.qS(y) |
| 947 if(m==null){m=s.qS(y) |
| 948 if(m==null){m=o.qS(y) |
| 949 if(m==null){m=n.qS(y) |
| 950 v=m!=null}else v=!0}else v=!0}else v=!0}else v=!0}else v=!0}else v=!0}else v=!0 |
| 951 if(v){v=m==null?null:m.method |
| 952 return z.$1(new H.Zo(y,v))}}}v=typeof y==="string"?y:"" |
| 953 return z.$1(new H.vV(v))}if(a instanceof RangeError){if(typeof y==="string"&&y.i
ndexOf("call stack")!==-1)return new P.VS() |
| 954 return z.$1(new P.AT(null))}if(typeof InternalError=="function"&&a instanceof In
ternalError)if(typeof y==="string"&&y==="too much recursion")return new P.VS() |
| 955 return a}, |
| 956 CU:function(a){if(a==null||typeof a!='object')return J.v1(a) |
| 957 else return H.eQ(a)}, |
| 958 B7:function(a,b){var z,y,x,w |
| 959 z=a.length |
| 960 for(y=0;y<z;y=w){x=y+1 |
| 961 w=x+1 |
| 962 b.u(0,a[y],a[x])}return b}, |
| 963 ft:function(a,b,c,d,e,f,g){var z=J.x(c) |
| 964 if(z.n(c,0))return H.zd(b,new H.dr(a)) |
| 965 else if(z.n(c,1))return H.zd(b,new H.TL(a,d)) |
| 966 else if(z.n(c,2))return H.zd(b,new H.KX(a,d,e)) |
| 967 else if(z.n(c,3))return H.zd(b,new H.uZ(a,d,e,f)) |
| 968 else if(z.n(c,4))return H.zd(b,new H.OQ(a,d,e,f,g)) |
| 969 else throw H.b(P.FM("Unsupported number of arguments for wrapped closure"))}, |
| 970 tR:function(a,b){var z |
| 971 if(a==null)return |
| 972 z=a.$identity |
| 973 if(!!z)return z |
| 974 z=function(c,d,e,f){return function(g,h,i,j){return f(c,e,d,g,h,i,j)}}(a,b,init.
globalState.N0,H.ft) |
| 975 a.$identity=z |
| 976 return z}, |
| 977 iA:function(a,b,c,d,e,f){var z,y,x,w,v,u,t,s,r,q,p,o,n,m |
| 978 z=b[0] |
| 979 z.$stubName |
| 980 y=z.$callName |
| 981 z.$reflectionInfo=c |
| 982 x=H.zh(z).AM |
| 983 w=d?Object.create(new H.Bp().constructor.prototype):Object.create(new H.v(null,n
ull,null,null).constructor.prototype) |
| 984 w.$initialize=w.constructor |
| 985 if(d)v=function(){this.$initialize()} |
| 986 else if(typeof dart_precompiled=="function"){u=function(g,h,i,j){this.$initializ
e(g,h,i,j)} |
| 987 v=u}else{u=$.yj |
| 988 $.yj=J.WB(u,1) |
| 989 u=new Function("a","b","c","d","this.$initialize(a,b,c,d);"+u) |
| 990 v=u}w.constructor=v |
| 991 v.prototype=w |
| 992 u=!d |
| 993 if(u){t=e.length==1&&!0 |
| 994 s=H.bx(a,z,t) |
| 995 s.$reflectionInfo=c}else{w.$name=f |
| 996 s=z |
| 997 t=!1}if(typeof x=="number")r=function(g){return function(){return init.metadata[
g]}}(x) |
| 998 else if(u&&typeof x=="function"){q=t?H.yS:H.DV |
| 999 r=function(g,h){return function(){return g.apply({$receiver:h(this)},arguments)}
}(x,q)}else throw H.b("Error in reflectionInfo.") |
| 1000 w.$signature=r |
| 1001 w[y]=s |
| 1002 for(u=b.length,p=1;p<u;++p){o=b[p] |
| 1003 n=o.$callName |
| 1004 if(n!=null){m=d?o:H.bx(a,o,t) |
| 1005 w[n]=m}}w["call*"]=s |
| 1006 return v}, |
| 1007 vq:function(a,b,c,d){var z=H.DV |
| 1008 switch(b?-1:a){case 0:return function(e,f){return function(){return f(this)[e]()
}}(c,z) |
| 1009 case 1:return function(e,f){return function(g){return f(this)[e](g)}}(c,z) |
| 1010 case 2:return function(e,f){return function(g,h){return f(this)[e](g,h)}}(c,z) |
| 1011 case 3:return function(e,f){return function(g,h,i){return f(this)[e](g,h,i)}}(c,
z) |
| 1012 case 4:return function(e,f){return function(g,h,i,j){return f(this)[e](g,h,i,j)}
}(c,z) |
| 1013 case 5:return function(e,f){return function(g,h,i,j,k){return f(this)[e](g,h,i,j
,k)}}(c,z) |
| 1014 default:return function(e,f){return function(){return e.apply(f(this),arguments)
}}(d,z)}}, |
| 1015 bx:function(a,b,c){var z,y,x,w,v,u |
| 1016 if(c)return H.Hf(a,b) |
| 1017 z=b.$stubName |
| 1018 y=b.length |
| 1019 x=a[z] |
| 1020 w=b==null?x==null:b===x |
| 1021 if(typeof dart_precompiled=="function"||!w||y>=27)return H.vq(y,!w,z,b) |
| 1022 if(y===0){w=$.mJ |
| 1023 if(w==null){w=H.E2("self") |
| 1024 $.mJ=w}w="return function(){return this."+H.d(w)+"."+H.d(z)+"();" |
| 1025 v=$.yj |
| 1026 $.yj=J.WB(v,1) |
| 1027 return new Function(w+H.d(v)+"}")()}u="abcdefghijklmnopqrstuvwxyz".split("").spl
ice(0,y).join(",") |
| 1028 w="return function("+u+"){return this." |
| 1029 v=$.mJ |
| 1030 if(v==null){v=H.E2("self") |
| 1031 $.mJ=v}v=w+H.d(v)+"."+H.d(z)+"("+u+");" |
| 1032 w=$.yj |
| 1033 $.yj=J.WB(w,1) |
| 1034 return new Function(v+H.d(w)+"}")()}, |
| 1035 Z4:function(a,b,c,d){var z,y |
| 1036 z=H.DV |
| 1037 y=H.yS |
| 1038 switch(b?-1:a){case 0:throw H.b(H.Ef("Intercepted function with no arguments.")) |
| 1039 case 1:return function(e,f,g){return function(){return f(this)[e](g(this))}}(c,z
,y) |
| 1040 case 2:return function(e,f,g){return function(h){return f(this)[e](g(this),h)}}(
c,z,y) |
| 1041 case 3:return function(e,f,g){return function(h,i){return f(this)[e](g(this),h,i
)}}(c,z,y) |
| 1042 case 4:return function(e,f,g){return function(h,i,j){return f(this)[e](g(this),h
,i,j)}}(c,z,y) |
| 1043 case 5:return function(e,f,g){return function(h,i,j,k){return f(this)[e](g(this)
,h,i,j,k)}}(c,z,y) |
| 1044 case 6:return function(e,f,g){return function(h,i,j,k,l){return f(this)[e](g(thi
s),h,i,j,k,l)}}(c,z,y) |
| 1045 default:return function(e,f,g,h){return function(){h=[g(this)] |
| 1046 Array.prototype.push.apply(h,arguments) |
| 1047 return e.apply(f(this),h)}}(d,z,y)}}, |
| 1048 Hf:function(a,b){var z,y,x,w,v,u,t,s |
| 1049 z=H.oN() |
| 1050 y=$.P4 |
| 1051 if(y==null){y=H.E2("receiver") |
| 1052 $.P4=y}x=b.$stubName |
| 1053 w=b.length |
| 1054 v=typeof dart_precompiled=="function" |
| 1055 u=a[x] |
| 1056 t=b==null?u==null:b===u |
| 1057 if(v||!t||w>=28)return H.Z4(w,!t,x,b) |
| 1058 if(w===1){y="return function(){return this."+H.d(z)+"."+H.d(x)+"(this."+H.d(y)+"
);" |
| 1059 t=$.yj |
| 1060 $.yj=J.WB(t,1) |
| 1061 return new Function(y+H.d(t)+"}")()}s="abcdefghijklmnopqrstuvwxyz".split("").spl
ice(0,w-1).join(",") |
| 1062 y="return function("+s+"){return this."+H.d(z)+"."+H.d(x)+"(this."+H.d(y)+", "+s
+");" |
| 1063 t=$.yj |
| 1064 $.yj=J.WB(t,1) |
| 1065 return new Function(y+H.d(t)+"}")()}, |
| 1066 qm:function(a,b,c,d,e,f){b.fixed$length=init |
| 1067 c.fixed$length=init |
| 1068 return H.iA(a,b,c,!!d,e,f)}, |
| 1069 SE:function(a,b){var z=J.U6(b) |
| 1070 throw H.b(H.aq(H.lh(a),z.Nj(b,3,z.gB(b))))}, |
| 1071 Go:function(a,b){var z |
| 1072 if(a!=null)z=typeof a==="object"&&J.x(a)[b] |
| 1073 else z=!0 |
| 1074 if(z)return a |
| 1075 H.SE(a,b)}, |
| 1076 ag:function(a){throw H.b(P.Gz("Cyclic initialization for static "+H.d(a)))}, |
| 1077 KT:function(a,b,c){return new H.tD(a,b,c,null)}, |
| 1078 N7:function(){return C.KZ}, |
| 1079 VM:function(a,b){if(a!=null)a.$builtinTypeInfo=b |
| 1080 return a}, |
| 1081 oX:function(a){if(a==null)return |
| 1082 return a.$builtinTypeInfo}, |
| 1083 IM:function(a,b){return H.Z9(a["$as"+H.d(b)],H.oX(a))}, |
| 1084 ip:function(a,b,c){var z=H.IM(a,b) |
| 1085 return z==null?null:z[c]}, |
| 1086 Kp:function(a,b){var z=H.oX(a) |
| 1087 return z==null?null:z[b]}, |
| 1088 Ko:function(a,b){if(a==null)return"dynamic" |
| 1089 else if(typeof a==="object"&&a!==null&&a.constructor===Array)return a[0].builtin
$cls+H.ia(a,1,b) |
| 1090 else if(typeof a=="function")return a.builtin$cls |
| 1091 else if(typeof a==="number"&&Math.floor(a)===a)return C.jn.bu(a) |
| 1092 else return}, |
| 1093 ia:function(a,b,c){var z,y,x,w,v,u |
| 1094 if(a==null)return"" |
| 1095 z=P.p9("") |
| 1096 for(y=b,x=!0,w=!0;y<a.length;++y){if(x)x=!1 |
| 1097 else z.vM+=", " |
| 1098 v=a[y] |
| 1099 if(v!=null)w=!1 |
| 1100 u=H.Ko(v,c) |
| 1101 z.vM+=typeof u==="string"?u:H.d(u)}return w?"":"<"+H.d(z)+">"}, |
| 1102 Z9:function(a,b){if(typeof a==="object"&&a!==null&&a.constructor===Array)b=a |
| 1103 else if(typeof a=="function"){a=H.ml(a,null,b) |
| 1104 if(typeof a==="object"&&a!==null&&a.constructor===Array)b=a |
| 1105 else if(typeof a=="function")b=H.ml(a,null,b)}return b}, |
| 1106 hv:function(a,b){var z,y |
| 1107 if(a==null||b==null)return!0 |
| 1108 z=a.length |
| 1109 for(y=0;y<z;++y)if(!H.t1(a[y],b[y]))return!1 |
| 1110 return!0}, |
| 1111 IG:function(a,b,c){return H.ml(a,b,H.IM(b,c))}, |
| 1112 t1:function(a,b){var z,y,x,w,v,u,t |
| 1113 if(a===b)return!0 |
| 1114 if(a==null||b==null)return!0 |
| 1115 if("func" in b){if(!("func" in a)){if("$is_"+H.d(b.func) in a)return!0 |
| 1116 z=a.$signature |
| 1117 if(z==null)return!1 |
| 1118 a=z.apply(a,null)}return H.Ly(a,b)}if(b.builtin$cls==="EH"&&"func" in a)return!0 |
| 1119 y=typeof a==="object"&&a!==null&&a.constructor===Array |
| 1120 x=y?a[0]:a |
| 1121 w=typeof b==="object"&&b!==null&&b.constructor===Array |
| 1122 v=w?b[0]:b |
| 1123 u=H.Ko(v,null) |
| 1124 if(v!==x){if(!("$is"+H.d(u) in x))return!1 |
| 1125 t=x["$as"+H.d(H.Ko(v,null))]}else t=null |
| 1126 if(!y&&t==null||!w)return!0 |
| 1127 y=y?a.slice(1):null |
| 1128 w=w?b.slice(1):null |
| 1129 return H.hv(H.Z9(t,y),w)}, |
| 1130 Hc:function(a,b,c){var z,y,x,w,v |
| 1131 if(b==null&&a==null)return!0 |
| 1132 if(b==null)return c |
| 1133 if(a==null)return!1 |
| 1134 z=a.length |
| 1135 y=b.length |
| 1136 if(c){if(z<y)return!1}else if(z!==y)return!1 |
| 1137 for(x=0;x<y;++x){w=a[x] |
| 1138 v=b[x] |
| 1139 if(!(H.t1(w,v)||H.t1(v,w)))return!1}return!0}, |
| 1140 Vt:function(a,b){var z,y,x,w,v,u |
| 1141 if(b==null)return!0 |
| 1142 if(a==null)return!1 |
| 1143 z=Object.getOwnPropertyNames(b) |
| 1144 z.fixed$length=init |
| 1145 y=z |
| 1146 for(z=y.length,x=0;x<z;++x){w=y[x] |
| 1147 if(!Object.hasOwnProperty.call(a,w))return!1 |
| 1148 v=b[w] |
| 1149 u=a[w] |
| 1150 if(!(H.t1(v,u)||H.t1(u,v)))return!1}return!0}, |
| 1151 Ly:function(a,b){var z,y,x,w,v,u,t,s,r,q,p,o,n,m,l |
| 1152 if(!("func" in a))return!1 |
| 1153 if("void" in a){if(!("void" in b)&&"ret" in b)return!1}else if(!("void" in b)){z
=a.ret |
| 1154 y=b.ret |
| 1155 if(!(H.t1(z,y)||H.t1(y,z)))return!1}x=a.args |
| 1156 w=b.args |
| 1157 v=a.opt |
| 1158 u=b.opt |
| 1159 t=x!=null?x.length:0 |
| 1160 s=w!=null?w.length:0 |
| 1161 r=v!=null?v.length:0 |
| 1162 q=u!=null?u.length:0 |
| 1163 if(t>s)return!1 |
| 1164 if(t+r<s+q)return!1 |
| 1165 if(t===s){if(!H.Hc(x,w,!1))return!1 |
| 1166 if(!H.Hc(v,u,!0))return!1}else{for(p=0;p<t;++p){o=x[p] |
| 1167 n=w[p] |
| 1168 if(!(H.t1(o,n)||H.t1(n,o)))return!1}for(m=p,l=0;m<s;++l,++m){o=v[l] |
| 1169 n=w[m] |
| 1170 if(!(H.t1(o,n)||H.t1(n,o)))return!1}for(m=0;m<q;++l,++m){o=v[l] |
| 1171 n=u[m] |
| 1172 if(!(H.t1(o,n)||H.t1(n,o)))return!1}}return H.Vt(a.named,b.named)}, |
| 1173 ml:function(a,b,c){return a.apply(b,c)}, |
| 1174 or:function(a){var z=$.NF |
| 1175 return"Instance of "+(z==null?"<Unknown>":z.$1(a))}, |
| 1176 wz:function(a){return H.eQ(a)}, |
| 1177 iw:function(a,b,c){Object.defineProperty(a,b,{value:c,enumerable:false,writable:
true,configurable:true})}, |
| 1178 w3:function(a){var z,y,x,w,v,u |
| 1179 z=$.NF.$1(a) |
| 1180 y=$.nw[z] |
| 1181 if(y!=null){Object.defineProperty(a,init.dispatchPropertyName,{value:y,enumerabl
e:false,writable:true,configurable:true}) |
| 1182 return y.i}x=$.vv[z] |
| 1183 if(x!=null)return x |
| 1184 w=init.interceptorsByTag[z] |
| 1185 if(w==null){z=$.TX.$2(a,z) |
| 1186 if(z!=null){y=$.nw[z] |
| 1187 if(y!=null){Object.defineProperty(a,init.dispatchPropertyName,{value:y,enumerabl
e:false,writable:true,configurable:true}) |
| 1188 return y.i}x=$.vv[z] |
| 1189 if(x!=null)return x |
| 1190 w=init.interceptorsByTag[z]}}if(w==null)return |
| 1191 x=w.prototype |
| 1192 v=z[0] |
| 1193 if(v==="!"){y=H.Va(x) |
| 1194 $.nw[z]=y |
| 1195 Object.defineProperty(a,init.dispatchPropertyName,{value:y,enumerable:false,writ
able:true,configurable:true}) |
| 1196 return y.i}if(v==="~"){$.vv[z]=x |
| 1197 return x}if(v==="-"){u=H.Va(x) |
| 1198 Object.defineProperty(Object.getPrototypeOf(a),init.dispatchPropertyName,{value:
u,enumerable:false,writable:true,configurable:true}) |
| 1199 return u.i}if(v==="+")return H.Lc(a,x) |
| 1200 if(v==="*")throw H.b(P.SY(z)) |
| 1201 if(init.leafTags[z]===true){u=H.Va(x) |
| 1202 Object.defineProperty(Object.getPrototypeOf(a),init.dispatchPropertyName,{value:
u,enumerable:false,writable:true,configurable:true}) |
| 1203 return u.i}else return H.Lc(a,x)}, |
| 1204 Lc:function(a,b){var z,y |
| 1205 z=Object.getPrototypeOf(a) |
| 1206 y=J.Qu(b,z,null,null) |
| 1207 Object.defineProperty(z,init.dispatchPropertyName,{value:y,enumerable:false,writ
able:true,configurable:true}) |
| 1208 return b}, |
| 1209 Va:function(a){return J.Qu(a,!1,null,!!a.$isXj)}, |
| 1210 ow:function(a,b,c){var z=b.prototype |
| 1211 if(init.leafTags[a]===true)return J.Qu(z,!1,null,!!z.$isXj) |
| 1212 else return J.Qu(z,c,null,null)}, |
| 1213 XD:function(){if(!0===$.Bv)return |
| 1214 $.Bv=!0 |
| 1215 H.Z1()}, |
| 1216 Z1:function(){var z,y,x,w,v,u,t,s |
| 1217 $.nw=Object.create(null) |
| 1218 $.vv=Object.create(null) |
| 1219 H.kO() |
| 1220 z=init.interceptorsByTag |
| 1221 y=Object.getOwnPropertyNames(z) |
| 1222 if(typeof window!="undefined"){window |
| 1223 x=function(){} |
| 1224 for(w=0;w<y.length;++w){v=y[w] |
| 1225 u=$.x7.$1(v) |
| 1226 if(u!=null){t=H.ow(v,z[v],u) |
| 1227 if(t!=null){Object.defineProperty(u,init.dispatchPropertyName,{value:t,enumerabl
e:false,writable:true,configurable:true}) |
| 1228 x.prototype=u}}}}for(w=0;w<y.length;++w){v=y[w] |
| 1229 if(/^[A-Za-z_]/.test(v)){s=z[v] |
| 1230 z["!"+v]=s |
| 1231 z["~"+v]=s |
| 1232 z["-"+v]=s |
| 1233 z["+"+v]=s |
| 1234 z["*"+v]=s}}}, |
| 1235 kO:function(){var z,y,x,w,v,u,t |
| 1236 z=C.MA() |
| 1237 z=H.ud(C.Mc,H.ud(C.hQ,H.ud(C.XQ,H.ud(C.XQ,H.ud(C.M1,H.ud(C.lR,H.ud(C.ur(C.w2),z)
)))))) |
| 1238 if(typeof dartNativeDispatchHooksTransformer!="undefined"){y=dartNativeDispatchH
ooksTransformer |
| 1239 if(typeof y=="function")y=[y] |
| 1240 if(y.constructor==Array)for(x=0;x<y.length;++x){w=y[x] |
| 1241 if(typeof w=="function")z=w(z)||z}}v=z.getTag |
| 1242 u=z.getUnknownTag |
| 1243 t=z.prototypeForTag |
| 1244 $.NF=new H.dC(v) |
| 1245 $.TX=new H.wN(u) |
| 1246 $.x7=new H.VX(t)}, |
| 1247 ud:function(a,b){return a(b)||b}, |
| 1248 FD:{ |
| 1249 "^":"a;mr,Rn,XZ,Rv,hG,Mo,AM,NE", |
| 1250 static:{"^":"t4,FV,Oc,pv",zh:function(a){var z,y,x |
| 1251 z=a.$reflectionInfo |
| 1252 if(z==null)return |
| 1253 z.fixed$length=init |
| 1254 z=z |
| 1255 y=z[0] |
| 1256 x=z[1] |
| 1257 return new H.FD(a,z,(y&1)===1,y>>1,x>>1,(x&1)===1,z[2],null)}}}, |
| 1258 Zr:{ |
| 1259 "^":"a;bT,rq,Xs,Fa,Ga,cR", |
| 1260 qS:function(a){var z,y,x |
| 1261 z=new RegExp(this.bT).exec(a) |
| 1262 if(z==null)return |
| 1263 y={} |
| 1264 x=this.rq |
| 1265 if(x!==-1)y.arguments=z[x+1] |
| 1266 x=this.Xs |
| 1267 if(x!==-1)y.argumentsExpr=z[x+1] |
| 1268 x=this.Fa |
| 1269 if(x!==-1)y.expr=z[x+1] |
| 1270 x=this.Ga |
| 1271 if(x!==-1)y.method=z[x+1] |
| 1272 x=this.cR |
| 1273 if(x!==-1)y.receiver=z[x+1] |
| 1274 return y}, |
| 1275 static:{"^":"lm,k1,Re,fN,qi,rZ,BX,kM,dt,A7",cM:function(a){var z,y,x,w,v,u |
| 1276 a=a.replace(String({}),'$receiver$').replace(new RegExp("[[\\]{}()*+?.\\\\^$|]",
'g'),'\\$&') |
| 1277 z=a.match(/\\\$[a-zA-Z]+\\\$/g) |
| 1278 if(z==null)z=[] |
| 1279 y=z.indexOf("\\$arguments\\$") |
| 1280 x=z.indexOf("\\$argumentsExpr\\$") |
| 1281 w=z.indexOf("\\$expr\\$") |
| 1282 v=z.indexOf("\\$method\\$") |
| 1283 u=z.indexOf("\\$receiver\\$") |
| 1284 return new H.Zr(a.replace('\\$arguments\\$','((?:x|[^x])*)').replace('\\$argumen
tsExpr\\$','((?:x|[^x])*)').replace('\\$expr\\$','((?:x|[^x])*)').replace('\\$me
thod\\$','((?:x|[^x])*)').replace('\\$receiver\\$','((?:x|[^x])*)'),y,x,w,v,u)},
S7:function(a){return function($expr$){var $argumentsExpr$='$arguments$' |
| 1285 try{$expr$.$method$($argumentsExpr$)}catch(z){return z.message}}(a)},Mj:function
(a){return function($expr$){try{$expr$.$method$}catch(z){return z.message}}(a)}}
}, |
| 1286 Zo:{ |
| 1287 "^":"Ge;V7,Ga", |
| 1288 bu:function(a){var z=this.Ga |
| 1289 if(z==null)return"NullError: "+H.d(this.V7) |
| 1290 return"NullError: Cannot call \""+H.d(z)+"\" on null"}, |
| 1291 $isGe:true}, |
| 1292 az:{ |
| 1293 "^":"Ge;V7,Ga,cR", |
| 1294 bu:function(a){var z,y |
| 1295 z=this.Ga |
| 1296 if(z==null)return"NoSuchMethodError: "+H.d(this.V7) |
| 1297 y=this.cR |
| 1298 if(y==null)return"NoSuchMethodError: Cannot call \""+H.d(z)+"\" ("+H.d(this.V7)+
")" |
| 1299 return"NoSuchMethodError: Cannot call \""+H.d(z)+"\" on \""+H.d(y)+"\" ("+H.d(th
is.V7)+")"}, |
| 1300 $isGe:true, |
| 1301 static:{T3:function(a,b){var z,y |
| 1302 z=b==null |
| 1303 y=z?null:b.method |
| 1304 z=z?null:b.receiver |
| 1305 return new H.az(a,y,z)}}}, |
| 1306 vV:{ |
| 1307 "^":"Ge;V7", |
| 1308 bu:function(a){var z=this.V7 |
| 1309 return C.xB.gl0(z)?"Error":"Error: "+z}}, |
| 1310 Am:{ |
| 1311 "^":"Tp:9;a", |
| 1312 $1:function(a){if(!!J.x(a).$isGe)if(a.$thrownJsError==null)a.$thrownJsError=this
.a |
| 1313 return a}}, |
| 1314 XO:{ |
| 1315 "^":"a;lA,ui", |
| 1316 bu:function(a){var z,y |
| 1317 z=this.ui |
| 1318 if(z!=null)return z |
| 1319 z=this.lA |
| 1320 y=typeof z==="object"?z.stack:null |
| 1321 z=y==null?"":y |
| 1322 this.ui=z |
| 1323 return z}}, |
| 1324 dr:{ |
| 1325 "^":"Tp:7;a", |
| 1326 $0:function(){return this.a.$0()}}, |
| 1327 TL:{ |
| 1328 "^":"Tp:7;b,c", |
| 1329 $0:function(){return this.b.$1(this.c)}}, |
| 1330 KX:{ |
| 1331 "^":"Tp:7;d,e,f", |
| 1332 $0:function(){return this.d.$2(this.e,this.f)}}, |
| 1333 uZ:{ |
| 1334 "^":"Tp:7;UI,bK,Gq,Rm", |
| 1335 $0:function(){return this.UI.$3(this.bK,this.Gq,this.Rm)}}, |
| 1336 OQ:{ |
| 1337 "^":"Tp:7;w3,HZ,mG,xC,cj", |
| 1338 $0:function(){return this.w3.$4(this.HZ,this.mG,this.xC,this.cj)}}, |
| 1339 Tp:{ |
| 1340 "^":"a;", |
| 1341 bu:function(a){return"Closure"}, |
| 1342 gKu:function(){return this}}, |
| 1343 Bp:{ |
| 1344 "^":"Tp;"}, |
| 1345 v:{ |
| 1346 "^":"Bp;nw,jm,cR,RA", |
| 1347 n:function(a,b){if(b==null)return!1 |
| 1348 if(this===b)return!0 |
| 1349 if(!J.x(b).$isv)return!1 |
| 1350 return this.nw===b.nw&&this.jm===b.jm&&this.cR===b.cR}, |
| 1351 giO:function(a){var z,y |
| 1352 z=this.cR |
| 1353 if(z==null)y=H.eQ(this.nw) |
| 1354 else y=typeof z!=="object"?J.v1(z):H.eQ(z) |
| 1355 z=H.eQ(this.jm) |
| 1356 if(typeof y!=="number")return y.w() |
| 1357 return(y^z)>>>0}, |
| 1358 $isv:true, |
| 1359 static:{"^":"mJ,P4",DV:function(a){return a.nw},yS:function(a){return a.cR},oN:f
unction(){var z=$.mJ |
| 1360 if(z==null){z=H.E2("self") |
| 1361 $.mJ=z}return z},E2:function(a){var z,y,x,w,v |
| 1362 z=new H.v("self","target","receiver","name") |
| 1363 y=Object.getOwnPropertyNames(z) |
| 1364 y.fixed$length=init |
| 1365 x=y |
| 1366 for(y=x.length,w=0;w<y;++w){v=x[w] |
| 1367 if(z[v]===a)return v}}}}, |
| 1368 Pe:{ |
| 1369 "^":"Ge;G1", |
| 1370 bu:function(a){return this.G1}, |
| 1371 $isGe:true, |
| 1372 static:{aq:function(a,b){return new H.Pe("CastError: Casting value of type "+H.d
(a)+" to incompatible type "+H.d(b))}}}, |
| 1373 Eq:{ |
| 1374 "^":"Ge;G1", |
| 1375 bu:function(a){return"RuntimeError: "+H.d(this.G1)}, |
| 1376 static:{Ef:function(a){return new H.Eq(a)}}}, |
| 1377 lb:{ |
| 1378 "^":"a;"}, |
| 1379 tD:{ |
| 1380 "^":"lb;dw,Iq,is,p6", |
| 1381 BD:function(a){var z=this.rP(a) |
| 1382 return z==null?!1:H.Ly(z,this.za())}, |
| 1383 rP:function(a){var z=J.x(a) |
| 1384 return"$signature" in z?z.$signature():null}, |
| 1385 za:function(){var z,y,x,w,v,u,t |
| 1386 z={func:"dynafunc"} |
| 1387 y=this.dw |
| 1388 x=J.x(y) |
| 1389 if(!!x.$isnr)z.void=true |
| 1390 else if(!x.$ishJ)z.ret=y.za() |
| 1391 y=this.Iq |
| 1392 if(y!=null&&y.length!==0)z.args=H.Dz(y) |
| 1393 y=this.is |
| 1394 if(y!=null&&y.length!==0)z.opt=H.Dz(y) |
| 1395 y=this.p6 |
| 1396 if(y!=null){w={} |
| 1397 v=H.kU(y) |
| 1398 for(x=v.length,u=0;u<x;++u){t=v[u] |
| 1399 w[t]=y[t].za()}z.named=w}return z}, |
| 1400 bu:function(a){var z,y,x,w,v,u,t,s |
| 1401 z=this.Iq |
| 1402 if(z!=null)for(y=z.length,x="(",w=!1,v=0;v<y;++v,w=!0){u=z[v] |
| 1403 if(w)x+=", " |
| 1404 x+=H.d(u)}else{x="(" |
| 1405 w=!1}z=this.is |
| 1406 if(z!=null&&z.length!==0){x=(w?x+", ":x)+"[" |
| 1407 for(y=z.length,w=!1,v=0;v<y;++v,w=!0){u=z[v] |
| 1408 if(w)x+=", " |
| 1409 x+=H.d(u)}x+="]"}else{z=this.p6 |
| 1410 if(z!=null){x=(w?x+", ":x)+"{" |
| 1411 t=H.kU(z) |
| 1412 for(y=t.length,w=!1,v=0;v<y;++v,w=!0){s=t[v] |
| 1413 if(w)x+=", " |
| 1414 x+=H.d(z[s].za())+" "+s}x+="}"}}return x+(") -> "+H.d(this.dw))}, |
| 1415 static:{"^":"lc",Dz:function(a){var z,y,x |
| 1416 a=a |
| 1417 z=[] |
| 1418 for(y=a.length,x=0;x<y;++x)z.push(a[x].za()) |
| 1419 return z}}}, |
| 1420 hJ:{ |
| 1421 "^":"lb;", |
| 1422 bu:function(a){return"dynamic"}, |
| 1423 za:function(){return}, |
| 1424 $ishJ:true}, |
| 1425 dC:{ |
| 1426 "^":"Tp:9;a", |
| 1427 $1:function(a){return this.a(a)}}, |
| 1428 wN:{ |
| 1429 "^":"Tp:10;b", |
| 1430 $2:function(a,b){return this.b(a,b)}}, |
| 1431 VX:{ |
| 1432 "^":"Tp:11;c", |
| 1433 $1:function(a){return this.c(a)}}}],["dart._internal","dart:_internal",,H,{ |
| 1434 "^":"", |
| 1435 bQ:function(a,b){var z |
| 1436 for(z=new H.a7(a,a.length,0,null);z.G();)b.$1(z.lo)}, |
| 1437 mx:function(a,b,c){var z,y,x,w |
| 1438 for(y=0;x=$.RM(),y<x.length;++y){x=x[y] |
| 1439 w=a |
| 1440 if(x==null?w==null:x===w)return H.d(b)+"..."+H.d(c)}z=P.p9("") |
| 1441 try{$.RM().push(a) |
| 1442 z.KF(b) |
| 1443 z.We(a,", ") |
| 1444 z.KF(c)}finally{x=$.RM() |
| 1445 if(0>=x.length)return H.e(x,0) |
| 1446 x.pop()}return z.gvM()}, |
| 1447 qG:function(a,b,c,d,e){var z |
| 1448 if(b<0||b>a.length)H.vh(P.TE(b,0,a.length)) |
| 1449 if(c<b||c>a.length)H.vh(P.TE(c,b,a.length)) |
| 1450 z=c-b |
| 1451 if(z===0)return |
| 1452 if(e+z>d.length)throw H.b(H.ar()) |
| 1453 H.Gj(d,e,a,b,z)}, |
| 1454 ar:function(){return new P.lj("Too few elements")}, |
| 1455 Gj:function(a,b,c,d,e){var z,y,x,w |
| 1456 if(b<d)for(z=b+e-1,y=d+e-1,x=a.length;z>=b;--z,--y){if(z>=x)return H.e(a,z) |
| 1457 C.Nm.u(c,y,a[z])}else for(x=b+e,w=a.length,y=d,z=b;z<x;++z,++y){if(z>=w)return H
.e(a,z) |
| 1458 C.Nm.u(c,y,a[z])}}, |
| 1459 Fv:function(a){return a.gfN()}, |
| 1460 a7:{ |
| 1461 "^":"a;l6,SW,G7,lo", |
| 1462 gl:function(){return this.lo}, |
| 1463 G:function(){var z,y,x,w |
| 1464 z=this.l6 |
| 1465 y=J.U6(z) |
| 1466 x=y.gB(z) |
| 1467 if(this.SW!==x)throw H.b(P.a4(z)) |
| 1468 w=this.G7 |
| 1469 if(w>=x){this.lo=null |
| 1470 return!1}this.lo=y.Zv(z,w);++this.G7 |
| 1471 return!0}}, |
| 1472 i1:{ |
| 1473 "^":"mW;l6,T6", |
| 1474 gA:function(a){var z=this.l6 |
| 1475 z=new H.MH(null,z.gA(z),this.T6) |
| 1476 z.$builtinTypeInfo=this.$builtinTypeInfo |
| 1477 return z}, |
| 1478 gB:function(a){var z=this.l6 |
| 1479 return z.gB(z)}, |
| 1480 gl0:function(a){var z=this.l6 |
| 1481 return z.gl0(z)}, |
| 1482 $asmW:function(a,b){return[b]}, |
| 1483 static:{K1:function(a,b,c,d){return H.VM(new H.xy(a,b),[c,d])}}}, |
| 1484 xy:{ |
| 1485 "^":"i1;l6,T6"}, |
| 1486 MH:{ |
| 1487 "^":"An;lo,OI,T6", |
| 1488 mb:function(a){return this.T6.$1(a)}, |
| 1489 G:function(){var z=this.OI |
| 1490 if(z.G()){this.lo=this.mb(z.gl()) |
| 1491 return!0}this.lo=null |
| 1492 return!1}, |
| 1493 gl:function(){return this.lo}}, |
| 1494 SU:{ |
| 1495 "^":"a;"}}],["dart._js_names","dart:_js_names",,H,{ |
| 1496 "^":"", |
| 1497 kU:function(a){var z=H.VM(function(b,c){var y=[] |
| 1498 for(var x in b){if(c.call(b,x))y.push(x)}return y}(a,Object.prototype.hasOwnProp
erty),[null]) |
| 1499 z.fixed$length=init |
| 1500 return z}}],["dart.async","dart:async",,P,{ |
| 1501 "^":"", |
| 1502 Oj:function(){if($.jk().scheduleImmediate!=null)return P.Sx() |
| 1503 return P.K7()}, |
| 1504 ZV:[function(a){++init.globalState.Xz.GL |
| 1505 $.jk().scheduleImmediate(H.tR(new P.C6(a),0))},"$1","Sx",2,0,0], |
| 1506 Bz:[function(a){P.jL(C.RT,a)},"$1","K7",2,0,0], |
| 1507 VH:function(a,b){var z=H.N7() |
| 1508 z=H.KT(z,[z,z]).BD(a) |
| 1509 if(z){b.toString |
| 1510 return a}else{b.toString |
| 1511 return a}}, |
| 1512 Cx:function(){var z=$.S6 |
| 1513 for(;z!=null;){z.Ki() |
| 1514 z=z.aw |
| 1515 $.S6=z}$.k8=null}, |
| 1516 BG:[function(){var z |
| 1517 try{P.Cx()}catch(z){H.Ru(z) |
| 1518 $.ej().$1(P.qZ()) |
| 1519 $.S6=$.S6.aw |
| 1520 throw z}},"$0","qZ",0,0,1], |
| 1521 IA:function(a){var z,y |
| 1522 z=$.k8 |
| 1523 if(z==null){z=new P.OM(a,null) |
| 1524 $.k8=z |
| 1525 $.S6=z |
| 1526 $.ej().$1(P.qZ())}else{y=new P.OM(a,null) |
| 1527 z.aw=y |
| 1528 $.k8=y}}, |
| 1529 FE:function(a,b,c){var z,y,x,w |
| 1530 try{b.$1(a.$0())}catch(x){w=H.Ru(x) |
| 1531 z=w |
| 1532 y=new H.XO(x,null) |
| 1533 c.$2(z,y)}}, |
| 1534 NX:function(a,b,c,d){a.ed() |
| 1535 b.K5(c,d)}, |
| 1536 TB:function(a,b){return new P.uR(a,b)}, |
| 1537 Bb:function(a,b,c){a.ed() |
| 1538 b.rX(c)}, |
| 1539 rT:function(a,b){var z=$.X3 |
| 1540 if(z===C.NU){z.toString |
| 1541 return P.h8(z,null,z,a,b)}return P.h8(z,null,z,a,z.xi(b,!0))}, |
| 1542 jL:function(a,b){var z=C.jn.cU(a.Fq,1000) |
| 1543 return H.cy(z<0?0:z,b)}, |
| 1544 PJ:function(a){var z=$.X3 |
| 1545 $.X3=a |
| 1546 return z}, |
| 1547 L2:function(a,b,c,d,e){P.T8(a,null,a,new P.pK(d,e))}, |
| 1548 T8:function(a,b,c,d){var z,y |
| 1549 if($.X3===c)return d.$0() |
| 1550 z=P.PJ(c) |
| 1551 try{y=d.$0() |
| 1552 return y}finally{$.X3=z}}, |
| 1553 V7:function(a,b,c,d,e){var z,y |
| 1554 if($.X3===c)return d.$1(e) |
| 1555 z=P.PJ(c) |
| 1556 try{y=d.$1(e) |
| 1557 return y}finally{$.X3=z}}, |
| 1558 Mu:function(a,b,c,d,e,f){var z,y |
| 1559 if($.X3===c)return d.$2(e,f) |
| 1560 z=P.PJ(c) |
| 1561 try{y=d.$2(e,f) |
| 1562 return y}finally{$.X3=z}}, |
| 1563 Tk:function(a,b,c,d){P.IA(C.NU!==c?c.ce(d):d)}, |
| 1564 h8:function(a,b,c,d,e){return P.jL(d,C.NU!==c?c.ce(e):e)}, |
| 1565 C6:{ |
| 1566 "^":"Tp:7;a", |
| 1567 $0:function(){H.ox() |
| 1568 this.a.$0()}}, |
| 1569 Ca:{ |
| 1570 "^":"a;kc>,I4<", |
| 1571 $isGe:true}, |
| 1572 vs:{ |
| 1573 "^":"a;Gv,Lj<,jk,BQ<,OY,As,qV,o4", |
| 1574 gcg:function(){return this.Gv>=4}, |
| 1575 gWj:function(){return this.Gv===4}, |
| 1576 gNm:function(){return this.Gv===8}, |
| 1577 swG:function(a){if(a)this.Gv=2 |
| 1578 else this.Gv=0}, |
| 1579 Rx:function(a,b){var z,y |
| 1580 z=$.X3 |
| 1581 z.toString |
| 1582 y=H.VM(new P.vs(0,z,null,null,a,null,P.VH(b,z),null),[null]) |
| 1583 this.au(y) |
| 1584 return y}, |
| 1585 gDL:function(){return this.jk}, |
| 1586 gcG:function(){return this.jk}, |
| 1587 Am:function(a){this.Gv=4 |
| 1588 this.jk=a}, |
| 1589 E6:function(a,b){this.Gv=8 |
| 1590 this.jk=new P.Ca(a,b)}, |
| 1591 au:function(a){var z |
| 1592 if(this.Gv>=4){z=this.Lj |
| 1593 z.toString |
| 1594 P.Tk(z,null,z,new P.da(this,a))}else{a.BQ=this.jk |
| 1595 this.jk=a}}, |
| 1596 L3:function(){var z,y,x |
| 1597 z=this.jk |
| 1598 this.jk=null |
| 1599 for(y=null;z!=null;y=z,z=x){x=z.gBQ() |
| 1600 z.BQ=y}return y}, |
| 1601 rX:function(a){var z,y |
| 1602 z=J.x(a) |
| 1603 if(!!z.$isb8)if(!!z.$isvs)P.A9(a,this) |
| 1604 else P.k3(a,this) |
| 1605 else{y=this.L3() |
| 1606 this.Am(a) |
| 1607 P.HZ(this,y)}}, |
| 1608 K5:[function(a,b){var z=this.L3() |
| 1609 this.E6(a,b) |
| 1610 P.HZ(this,z)},function(a){return this.K5(a,null)},"Lp","$2","$1","gbY",2,2,12,13
], |
| 1611 $isvs:true, |
| 1612 $isb8:true, |
| 1613 static:{"^":"Gn,Ry,cp,UX,NK",Dt:function(a){return H.VM(new P.vs(0,$.X3,null,nul
l,null,null,null,null),[a])},k3:function(a,b){b.Gv=2 |
| 1614 a.Rx(new P.pV(b),new P.U7(b))},A9:function(a,b){b.Gv=2 |
| 1615 if(a.Gv>=4)P.HZ(a,b) |
| 1616 else a.au(b)},yE:function(a,b){var z |
| 1617 do{z=b.gBQ() |
| 1618 b.BQ=null |
| 1619 P.HZ(a,b) |
| 1620 if(z!=null){b=z |
| 1621 continue}else break}while(!0)},HZ:function(a,b){var z,y,x,w,v,u,t,s,r,q,p,o |
| 1622 z={} |
| 1623 z.e=a |
| 1624 for(y=a;!0;){x={} |
| 1625 if(!y.gcg())return |
| 1626 w=z.e.gNm() |
| 1627 if(w&&b==null){v=z.e.gcG() |
| 1628 y=z.e.gLj() |
| 1629 x=J.w8(v) |
| 1630 u=v.gI4() |
| 1631 y.toString |
| 1632 P.L2(y,null,y,x,u) |
| 1633 return}if(b==null)return |
| 1634 if(b.BQ!=null){P.yE(z.e,b) |
| 1635 return}x.b=!0 |
| 1636 t=z.e.gWj()?z.e.gDL():null |
| 1637 x.c=t |
| 1638 x.d=!1 |
| 1639 y=!w |
| 1640 if(y){u=b.Gv===2 |
| 1641 if((u?null:b.OY)==null){s=(u?null:b.o4)!=null |
| 1642 u=s}else u=!0}else u=!0 |
| 1643 if(u){r=b.Lj |
| 1644 if(w){u=z.e.gLj() |
| 1645 u.toString |
| 1646 r.toString |
| 1647 u=r==null?u!=null:r!==u}else u=!1 |
| 1648 if(u){v=z.e.gcG() |
| 1649 y=z.e.gLj() |
| 1650 x=J.w8(v) |
| 1651 u=v.gI4() |
| 1652 y.toString |
| 1653 P.L2(y,null,y,x,u) |
| 1654 return}q=$.X3 |
| 1655 if(q==null?r!=null:q!==r)$.X3=r |
| 1656 else q=null |
| 1657 if(y){if((b.Gv===2?null:b.OY)!=null)x.b=new P.rq(x,b,t,r).$0()}else new P.RW(z,x
,b,r).$0() |
| 1658 if((b.Gv===2?null:b.o4)!=null)new P.YP(z,x,w,b,r).$0() |
| 1659 if(q!=null)$.X3=q |
| 1660 if(x.d)return |
| 1661 if(x.b===!0){y=x.c |
| 1662 y=(t==null?y!=null:t!==y)&&!!J.x(y).$isb8}else y=!1 |
| 1663 if(y){p=x.c |
| 1664 if(!!J.x(p).$isvs)if(p.Gv>=4){b.Gv=2 |
| 1665 z.e=p |
| 1666 y=p |
| 1667 continue}else P.A9(p,b) |
| 1668 else P.k3(p,b) |
| 1669 return}}if(x.b===!0){o=b.L3() |
| 1670 y=x.c |
| 1671 b.Gv=4 |
| 1672 b.jk=y}else{o=b.L3() |
| 1673 v=x.c |
| 1674 y=J.w8(v) |
| 1675 x=v.gI4() |
| 1676 b.Gv=8 |
| 1677 b.jk=new P.Ca(y,x)}z.e=b |
| 1678 y=b |
| 1679 b=o}}}}, |
| 1680 da:{ |
| 1681 "^":"Tp:7;a,b", |
| 1682 $0:function(){P.HZ(this.a,this.b)}}, |
| 1683 pV:{ |
| 1684 "^":"Tp:9;a", |
| 1685 $1:function(a){var z,y |
| 1686 z=this.a |
| 1687 y=z.L3() |
| 1688 z.Am(a) |
| 1689 P.HZ(z,y)}}, |
| 1690 U7:{ |
| 1691 "^":"Tp:14;b", |
| 1692 $2:function(a,b){this.b.K5(a,b)}, |
| 1693 $1:function(a){return this.$2(a,null)}}, |
| 1694 rq:{ |
| 1695 "^":"Tp:15;b,d,e,f", |
| 1696 $0:function(){var z,y,x,w,v |
| 1697 try{x=this.f |
| 1698 w=this.d |
| 1699 w=w.Gv===2?null:w.OY |
| 1700 x.toString |
| 1701 this.b.c=P.V7(x,null,x,w,this.e) |
| 1702 return!0}catch(v){x=H.Ru(v) |
| 1703 z=x |
| 1704 y=new H.XO(v,null) |
| 1705 this.b.c=new P.Ca(z,y) |
| 1706 return!1}}}, |
| 1707 RW:{ |
| 1708 "^":"Tp:1;c,b,UI,bK", |
| 1709 $0:function(){var z,y,x,w,v,u,t,s,r,q,p,o,n,m |
| 1710 z=this.c.e.gcG() |
| 1711 r=this.UI |
| 1712 y=r.Gv===2?null:r.As |
| 1713 x=!0 |
| 1714 if(y!=null)try{q=this.bK |
| 1715 p=J.w8(z) |
| 1716 q.toString |
| 1717 x=P.V7(q,null,q,y,p)}catch(o){r=H.Ru(o) |
| 1718 w=r |
| 1719 v=new H.XO(o,null) |
| 1720 r=J.w8(z) |
| 1721 q=w |
| 1722 n=(r==null?q==null:r===q)?z:new P.Ca(w,v) |
| 1723 r=this.b |
| 1724 r.c=n |
| 1725 r.b=!1 |
| 1726 return}u=r.Gv===2?null:r.qV |
| 1727 if(x===!0&&u!=null){try{r=u |
| 1728 q=H.N7() |
| 1729 q=H.KT(q,[q,q]).BD(r) |
| 1730 p=this.bK |
| 1731 m=this.b |
| 1732 if(q){r=J.w8(z) |
| 1733 q=z.gI4() |
| 1734 p.toString |
| 1735 m.c=P.Mu(p,null,p,u,r,q)}else{r=J.w8(z) |
| 1736 p.toString |
| 1737 m.c=P.V7(p,null,p,u,r)}}catch(o){r=H.Ru(o) |
| 1738 t=r |
| 1739 s=new H.XO(o,null) |
| 1740 r=J.w8(z) |
| 1741 q=t |
| 1742 n=(r==null?q==null:r===q)?z:new P.Ca(t,s) |
| 1743 r=this.b |
| 1744 r.c=n |
| 1745 r.b=!1 |
| 1746 return}this.b.b=!0}else{r=this.b |
| 1747 r.c=z |
| 1748 r.b=!1}}}, |
| 1749 YP:{ |
| 1750 "^":"Tp:1;c,b,Gq,Rm,w3", |
| 1751 $0:function(){var z,y,x,w,v,u |
| 1752 z={} |
| 1753 z.a=null |
| 1754 try{w=this.w3 |
| 1755 v=this.Rm |
| 1756 v=v.Gv===2?null:v.o4 |
| 1757 w.toString |
| 1758 z.a=P.T8(w,null,w,v)}catch(u){w=H.Ru(u) |
| 1759 y=w |
| 1760 x=new H.XO(u,null) |
| 1761 if(this.Gq){w=J.w8(this.c.e.gcG()) |
| 1762 v=y |
| 1763 v=w==null?v==null:w===v |
| 1764 w=v}else w=!1 |
| 1765 v=this.b |
| 1766 if(w)v.c=this.c.e.gcG() |
| 1767 else v.c=new P.Ca(y,x) |
| 1768 v.b=!1}if(!!J.x(z.a).$isb8){w=this.Rm |
| 1769 w.swG(!0) |
| 1770 this.b.d=!0 |
| 1771 z.a.Rx(new P.jZ(this.c,w),new P.FZ(z,w))}}}, |
| 1772 jZ:{ |
| 1773 "^":"Tp:9;c,HZ", |
| 1774 $1:function(a){P.HZ(this.c.e,this.HZ)}}, |
| 1775 FZ:{ |
| 1776 "^":"Tp:14;a,mG", |
| 1777 $2:function(a,b){var z,y |
| 1778 z=this.a |
| 1779 if(!J.x(z.a).$isvs){y=P.Dt(null) |
| 1780 z.a=y |
| 1781 y.E6(a,b)}P.HZ(z.a,this.mG)}, |
| 1782 $1:function(a){return this.$2(a,null)}}, |
| 1783 OM:{ |
| 1784 "^":"a;FR,aw", |
| 1785 Ki:function(){return this.FR.$0()}}, |
| 1786 qh:{ |
| 1787 "^":"a;", |
| 1788 aN:function(a,b){var z,y |
| 1789 z={} |
| 1790 y=P.Dt(null) |
| 1791 z.a=null |
| 1792 z.a=this.KR(new P.lz(z,this,b,y),!0,new P.M4(y),y.gbY()) |
| 1793 return y}, |
| 1794 gB:function(a){var z,y |
| 1795 z={} |
| 1796 y=P.Dt(P.KN) |
| 1797 z.a=0 |
| 1798 this.KR(new P.B5(z),!0,new P.PI(z,y),y.gbY()) |
| 1799 return y}, |
| 1800 gl0:function(a){var z,y |
| 1801 z={} |
| 1802 y=P.Dt(P.a2) |
| 1803 z.a=null |
| 1804 z.a=this.KR(new P.j4(z,y),!0,new P.i9(y),y.gbY()) |
| 1805 return y}}, |
| 1806 lz:{ |
| 1807 "^":"Tp;a,b,c,d", |
| 1808 $1:function(a){P.FE(new P.Rl(this.c,a),new P.Jb(),P.TB(this.a.a,this.d))}, |
| 1809 $signature:function(){return H.IG(function(a){return{func:"Lf",args:[a]}},this.b
,"qh")}}, |
| 1810 Rl:{ |
| 1811 "^":"Tp:7;e,f", |
| 1812 $0:function(){return this.e.$1(this.f)}}, |
| 1813 Jb:{ |
| 1814 "^":"Tp:9;", |
| 1815 $1:function(a){}}, |
| 1816 M4:{ |
| 1817 "^":"Tp:7;UI", |
| 1818 $0:function(){this.UI.rX(null)}}, |
| 1819 B5:{ |
| 1820 "^":"Tp:9;a", |
| 1821 $1:function(a){++this.a.a}}, |
| 1822 PI:{ |
| 1823 "^":"Tp:7;a,b", |
| 1824 $0:function(){this.b.rX(this.a.a)}}, |
| 1825 j4:{ |
| 1826 "^":"Tp:9;a,b", |
| 1827 $1:function(a){P.Bb(this.a.a,this.b,!1)}}, |
| 1828 i9:{ |
| 1829 "^":"Tp:7;c", |
| 1830 $0:function(){this.c.rX(!0)}}, |
| 1831 MO:{ |
| 1832 "^":"a;"}, |
| 1833 nP:{ |
| 1834 "^":"a;"}, |
| 1835 dR:{ |
| 1836 "^":"Tp:7;a,b,c", |
| 1837 $0:function(){return this.a.K5(this.b,this.c)}}, |
| 1838 uR:{ |
| 1839 "^":"Tp:16;a,b", |
| 1840 $2:function(a,b){return P.NX(this.a,this.b,a,b)}}, |
| 1841 QX:{ |
| 1842 "^":"Tp:7;a,b", |
| 1843 $0:function(){return this.a.rX(this.b)}}, |
| 1844 fZ:{ |
| 1845 "^":"a;", |
| 1846 bH:function(a){var z,y,x,w |
| 1847 try{x=this.Gr(a) |
| 1848 return x}catch(w){x=H.Ru(w) |
| 1849 z=x |
| 1850 y=new H.XO(w,null) |
| 1851 return this.hk(z,y)}}, |
| 1852 m1:function(a,b){var z,y,x,w |
| 1853 try{x=this.FI(a,b) |
| 1854 return x}catch(w){x=H.Ru(w) |
| 1855 z=x |
| 1856 y=new H.XO(w,null) |
| 1857 return this.hk(z,y)}}, |
| 1858 xi:function(a,b){var z=this.Al(a) |
| 1859 if(b)return new P.TF(this,z) |
| 1860 else return new P.K5(this,z)}, |
| 1861 ce:function(a){return this.xi(a,!0)}, |
| 1862 oj:function(a,b){var z=this.wY(a) |
| 1863 if(b)return new P.Cg(this,z) |
| 1864 else return new P.Hs(this,z)}}, |
| 1865 TF:{ |
| 1866 "^":"Tp:7;a,b", |
| 1867 $0:function(){return this.a.bH(this.b)}}, |
| 1868 K5:{ |
| 1869 "^":"Tp:7;c,d", |
| 1870 $0:function(){return this.c.Gr(this.d)}}, |
| 1871 Cg:{ |
| 1872 "^":"Tp:9;a,b", |
| 1873 $1:function(a){return this.a.m1(this.b,a)}}, |
| 1874 Hs:{ |
| 1875 "^":"Tp:9;c,d", |
| 1876 $1:function(a){return this.c.FI(this.d,a)}}, |
| 1877 pK:{ |
| 1878 "^":"Tp:7;a,b", |
| 1879 $0:function(){P.IA(new P.eM(this.a,this.b))}}, |
| 1880 eM:{ |
| 1881 "^":"Tp:7;c,d", |
| 1882 $0:function(){var z,y |
| 1883 z=this.c |
| 1884 P.JS("Uncaught Error: "+H.d(z)) |
| 1885 y=this.d |
| 1886 if(y==null&&!!J.x(z).$isGe)y=z.gI4() |
| 1887 if(y!=null)P.JS("Stack Trace: \n"+H.d(y)+"\n") |
| 1888 throw H.b(z)}}, |
| 1889 R8:{ |
| 1890 "^":"fZ;", |
| 1891 t:function(a,b){return}, |
| 1892 hk:function(a,b){return P.L2(this,null,this,a,b)}, |
| 1893 Gr:function(a){return P.T8(this,null,this,a)}, |
| 1894 FI:function(a,b){return P.V7(this,null,this,a,b)}, |
| 1895 Al:function(a){return a}, |
| 1896 wY:function(a){return a}}}],["dart.collection","dart:collection",,P,{ |
| 1897 "^":"", |
| 1898 EF:function(a,b,c){return H.B7(a,H.VM(new P.YB(0,null,null,null,null,null,0),[b,
c]))}, |
| 1899 tt:function(a,b){return H.VM(new P.YB(0,null,null,null,null,null,0),[a,b])}, |
| 1900 jB:function(){var z=Object.create(null) |
| 1901 z["<non-identifier-key>"]=z |
| 1902 delete z["<non-identifier-key>"] |
| 1903 return z}, |
| 1904 Ou:[function(a,b){return J.de(a,b)},"$2","iv",4,0,2], |
| 1905 T9:[function(a){return J.v1(a)},"$1","py",2,0,3], |
| 1906 Py:function(a,b,c,d,e){return H.VM(new P.k6(0,null,null,null,null),[d,e])}, |
| 1907 yv:function(a){return H.VM(new P.YO(0,null,null,null,null),[a])}, |
| 1908 FO:function(a){var z,y |
| 1909 if($.xb().tg(0,a))return"(...)" |
| 1910 $.xb().h(0,a) |
| 1911 z=[] |
| 1912 try{P.Vr(a,z)}finally{$.xb().Rz(0,a)}y=P.p9("(") |
| 1913 y.We(z,", ") |
| 1914 y.KF(")") |
| 1915 return y.vM}, |
| 1916 Vr:function(a,b){var z,y,x,w,v,u,t,s,r,q,p |
| 1917 z=a.gA(a) |
| 1918 y=0 |
| 1919 x=0 |
| 1920 while(!0){if(!(y<80||x<3))break |
| 1921 if(!z.G())return |
| 1922 w=H.d(z.gl()) |
| 1923 b.push(w) |
| 1924 y+=w.length+2;++x}if(!z.G()){if(x<=5)return |
| 1925 if(0>=b.length)return H.e(b,0) |
| 1926 v=b.pop() |
| 1927 if(0>=b.length)return H.e(b,0) |
| 1928 u=b.pop()}else{t=z.gl();++x |
| 1929 if(!z.G()){if(x<=4){b.push(H.d(t)) |
| 1930 return}v=H.d(t) |
| 1931 if(0>=b.length)return H.e(b,0) |
| 1932 u=b.pop() |
| 1933 y+=v.length+2}else{s=z.gl();++x |
| 1934 for(;z.G();t=s,s=r){r=z.gl();++x |
| 1935 if(x>100){while(!0){if(!(y>75&&x>3))break |
| 1936 if(0>=b.length)return H.e(b,0) |
| 1937 q=J.q8(b.pop()) |
| 1938 if(typeof q!=="number")return q.g() |
| 1939 y-=q+2;--x}b.push("...") |
| 1940 return}}u=H.d(t) |
| 1941 v=H.d(s) |
| 1942 y+=v.length+u.length+4}}if(x>b.length+2){y+=5 |
| 1943 p="..."}else p=null |
| 1944 while(!0){if(!(y>80&&b.length>3))break |
| 1945 if(0>=b.length)return H.e(b,0) |
| 1946 q=J.q8(b.pop()) |
| 1947 if(typeof q!=="number")return q.g() |
| 1948 y-=q+2 |
| 1949 if(p==null){y+=5 |
| 1950 p="..."}}if(p!=null)b.push(p) |
| 1951 b.push(u) |
| 1952 b.push(v)}, |
| 1953 L5:function(a,b,c,d,e){return H.VM(new P.YB(0,null,null,null,null,null,0),[d,e])
}, |
| 1954 Ls:function(a,b,c,d){return H.VM(new P.b6(0,null,null,null,null,null,0),[d])}, |
| 1955 vW:function(a){var z,y,x,w,v |
| 1956 z={} |
| 1957 for(x=0;w=$.tw(),x<w.length;++x){w=w[x] |
| 1958 v=a |
| 1959 if(w==null?v==null:w===v)return"{...}"}y=P.p9("") |
| 1960 try{$.tw().push(a) |
| 1961 y.KF("{") |
| 1962 z.a=!0 |
| 1963 J.kH(a,new P.W0(z,y)) |
| 1964 y.KF("}")}finally{z=$.tw() |
| 1965 if(0>=z.length)return H.e(z,0) |
| 1966 z.pop()}return y.gvM()}, |
| 1967 k6:{ |
| 1968 "^":"a;X5,vv,OX,OB,wV", |
| 1969 gB:function(a){return this.X5}, |
| 1970 gl0:function(a){return this.X5===0}, |
| 1971 gvc:function(a){return H.VM(new P.fG(this),[H.Kp(this,0)])}, |
| 1972 gUQ:function(a){return H.K1(H.VM(new P.fG(this),[H.Kp(this,0)]),new P.oi(this),H
.Kp(this,0),H.Kp(this,1))}, |
| 1973 t:function(a,b){var z,y,x,w |
| 1974 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 1975 if(z==null)y=null |
| 1976 else{x=z[b] |
| 1977 y=x===z?null:x}return y}else if(typeof b==="number"&&(b&0x3ffffff)===b){w=this.O
X |
| 1978 if(w==null)y=null |
| 1979 else{x=w[b] |
| 1980 y=x===w?null:x}return y}else return this.Dl(b)}, |
| 1981 Dl:function(a){var z,y,x |
| 1982 z=this.OB |
| 1983 if(z==null)return |
| 1984 y=z[this.nm(a)] |
| 1985 x=this.aH(y,a) |
| 1986 return x<0?null:y[x+1]}, |
| 1987 u:function(a,b,c){var z,y |
| 1988 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 1989 if(z==null){z=P.a0() |
| 1990 this.vv=z}this.dg(z,b,c)}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=this.
OX |
| 1991 if(y==null){y=P.a0() |
| 1992 this.OX=y}this.dg(y,b,c)}else this.ms(b,c)}, |
| 1993 ms:function(a,b){var z,y,x,w |
| 1994 z=this.OB |
| 1995 if(z==null){z=P.a0() |
| 1996 this.OB=z}y=this.nm(a) |
| 1997 x=z[y] |
| 1998 if(x==null){P.cW(z,y,[a,b]);++this.X5 |
| 1999 this.wV=null}else{w=this.aH(x,a) |
| 2000 if(w>=0)x[w+1]=b |
| 2001 else{x.push(a,b);++this.X5 |
| 2002 this.wV=null}}}, |
| 2003 aN:function(a,b){var z,y,x,w |
| 2004 z=this.Ig() |
| 2005 for(y=z.length,x=0;x<y;++x){w=z[x] |
| 2006 b.$2(w,this.t(0,w)) |
| 2007 if(z!==this.wV)throw H.b(P.a4(this))}}, |
| 2008 Ig:function(){var z,y,x,w,v,u,t,s,r,q,p,o |
| 2009 z=this.wV |
| 2010 if(z!=null)return z |
| 2011 y=Array(this.X5) |
| 2012 y.fixed$length=init |
| 2013 x=this.vv |
| 2014 if(x!=null){w=Object.getOwnPropertyNames(x) |
| 2015 v=w.length |
| 2016 for(u=0,t=0;t<v;++t){y[u]=w[t];++u}}else u=0 |
| 2017 s=this.OX |
| 2018 if(s!=null){w=Object.getOwnPropertyNames(s) |
| 2019 v=w.length |
| 2020 for(t=0;t<v;++t){y[u]=+w[t];++u}}r=this.OB |
| 2021 if(r!=null){w=Object.getOwnPropertyNames(r) |
| 2022 v=w.length |
| 2023 for(t=0;t<v;++t){q=r[w[t]] |
| 2024 p=q.length |
| 2025 for(o=0;o<p;o+=2){y[u]=q[o];++u}}}this.wV=y |
| 2026 return y}, |
| 2027 dg:function(a,b,c){if(a[b]==null){++this.X5 |
| 2028 this.wV=null}P.cW(a,b,c)}, |
| 2029 nm:function(a){return J.v1(a)&0x3ffffff}, |
| 2030 aH:function(a,b){var z,y |
| 2031 if(a==null)return-1 |
| 2032 z=a.length |
| 2033 for(y=0;y<z;y+=2)if(J.de(a[y],b))return y |
| 2034 return-1}, |
| 2035 $isZ0:true, |
| 2036 $asZ0:null, |
| 2037 static:{cW:function(a,b,c){if(c==null)a[b]=a |
| 2038 else a[b]=c},a0:function(){var z=Object.create(null) |
| 2039 P.cW(z,"<non-identifier-key>",z) |
| 2040 delete z["<non-identifier-key>"] |
| 2041 return z}}}, |
| 2042 oi:{ |
| 2043 "^":"Tp:9;a", |
| 2044 $1:function(a){return this.a.t(0,a)}}, |
| 2045 fG:{ |
| 2046 "^":"mW;Fb", |
| 2047 gB:function(a){return this.Fb.X5}, |
| 2048 gl0:function(a){return this.Fb.X5===0}, |
| 2049 gA:function(a){var z=this.Fb |
| 2050 return new P.EQ(z,z.Ig(),0,null)}, |
| 2051 aN:function(a,b){var z,y,x,w |
| 2052 z=this.Fb |
| 2053 y=z.Ig() |
| 2054 for(x=y.length,w=0;w<x;++w){b.$1(y[w]) |
| 2055 if(y!==z.wV)throw H.b(P.a4(z))}}}, |
| 2056 EQ:{ |
| 2057 "^":"a;Fb,wV,zi,fD", |
| 2058 gl:function(){return this.fD}, |
| 2059 G:function(){var z,y,x |
| 2060 z=this.wV |
| 2061 y=this.zi |
| 2062 x=this.Fb |
| 2063 if(z!==x.wV)throw H.b(P.a4(x)) |
| 2064 else if(y>=z.length){this.fD=null |
| 2065 return!1}else{this.fD=z[y] |
| 2066 this.zi=y+1 |
| 2067 return!0}}}, |
| 2068 YB:{ |
| 2069 "^":"a;X5,vv,OX,OB,H9,lX,zN", |
| 2070 gB:function(a){return this.X5}, |
| 2071 gl0:function(a){return this.X5===0}, |
| 2072 gvc:function(a){return H.VM(new P.i5(this),[H.Kp(this,0)])}, |
| 2073 gUQ:function(a){return H.K1(H.VM(new P.i5(this),[H.Kp(this,0)]),new P.a1(this),H
.Kp(this,0),H.Kp(this,1))}, |
| 2074 x4:function(a,b){var z |
| 2075 if((b&0x3ffffff)===b){z=this.OX |
| 2076 if(z==null)return!1 |
| 2077 return z[b]!=null}else return this.Zt(b)}, |
| 2078 Zt:function(a){var z=this.OB |
| 2079 if(z==null)return!1 |
| 2080 return this.aH(z[this.nm(a)],a)>=0}, |
| 2081 t:function(a,b){var z,y,x |
| 2082 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2083 if(z==null)return |
| 2084 y=z[b] |
| 2085 return y==null?null:y.gcA()}else if(typeof b==="number"&&(b&0x3ffffff)===b){x=th
is.OX |
| 2086 if(x==null)return |
| 2087 y=x[b] |
| 2088 return y==null?null:y.gcA()}else return this.Dl(b)}, |
| 2089 Dl:function(a){var z,y,x |
| 2090 z=this.OB |
| 2091 if(z==null)return |
| 2092 y=z[this.nm(a)] |
| 2093 x=this.aH(y,a) |
| 2094 if(x<0)return |
| 2095 return y[x].gcA()}, |
| 2096 u:function(a,b,c){var z,y |
| 2097 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2098 if(z==null){z=P.Qs() |
| 2099 this.vv=z}this.dg(z,b,c)}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=this.
OX |
| 2100 if(y==null){y=P.Qs() |
| 2101 this.OX=y}this.dg(y,b,c)}else this.ms(b,c)}, |
| 2102 ms:function(a,b){var z,y,x,w |
| 2103 z=this.OB |
| 2104 if(z==null){z=P.Qs() |
| 2105 this.OB=z}y=this.nm(a) |
| 2106 x=z[y] |
| 2107 if(x==null)z[y]=[this.pE(a,b)] |
| 2108 else{w=this.aH(x,a) |
| 2109 if(w>=0)x[w].scA(b) |
| 2110 else x.push(this.pE(a,b))}}, |
| 2111 Rz:function(a,b){if(typeof b==="string"&&b!=="__proto__")return this.Nv(this.vv,
b) |
| 2112 else if(typeof b==="number"&&(b&0x3ffffff)===b)return this.Nv(this.OX,b) |
| 2113 else return this.bB(b)}, |
| 2114 bB:function(a){var z,y,x,w |
| 2115 z=this.OB |
| 2116 if(z==null)return |
| 2117 y=z[this.nm(a)] |
| 2118 x=this.aH(y,a) |
| 2119 if(x<0)return |
| 2120 w=y.splice(x,1)[0] |
| 2121 this.Vb(w) |
| 2122 return w.gcA()}, |
| 2123 aN:function(a,b){var z,y |
| 2124 z=this.H9 |
| 2125 y=this.zN |
| 2126 for(;z!=null;){b.$2(z.gkh(z),z.cA) |
| 2127 if(y!==this.zN)throw H.b(P.a4(this)) |
| 2128 z=z.DG}}, |
| 2129 dg:function(a,b,c){var z=a[b] |
| 2130 if(z==null)a[b]=this.pE(b,c) |
| 2131 else z.scA(c)}, |
| 2132 Nv:function(a,b){var z |
| 2133 if(a==null)return |
| 2134 z=a[b] |
| 2135 if(z==null)return |
| 2136 this.Vb(z) |
| 2137 delete a[b] |
| 2138 return z.gcA()}, |
| 2139 pE:function(a,b){var z,y |
| 2140 z=new P.db(a,b,null,null) |
| 2141 if(this.H9==null){this.lX=z |
| 2142 this.H9=z}else{y=this.lX |
| 2143 z.zQ=y |
| 2144 y.sDG(z) |
| 2145 this.lX=z}++this.X5 |
| 2146 this.zN=this.zN+1&67108863 |
| 2147 return z}, |
| 2148 Vb:function(a){var z,y |
| 2149 z=a.gzQ() |
| 2150 y=a.gDG() |
| 2151 if(z==null)this.H9=y |
| 2152 else z.sDG(y) |
| 2153 if(y==null)this.lX=z |
| 2154 else y.szQ(z);--this.X5 |
| 2155 this.zN=this.zN+1&67108863}, |
| 2156 nm:function(a){return J.v1(a)&0x3ffffff}, |
| 2157 aH:function(a,b){var z,y |
| 2158 if(a==null)return-1 |
| 2159 z=a.length |
| 2160 for(y=0;y<z;++y)if(J.de(J.up(a[y]),b))return y |
| 2161 return-1}, |
| 2162 bu:function(a){return P.vW(this)}, |
| 2163 $isZ0:true, |
| 2164 $asZ0:null, |
| 2165 static:{Qs:function(){var z=Object.create(null) |
| 2166 z["<non-identifier-key>"]=z |
| 2167 delete z["<non-identifier-key>"] |
| 2168 return z}}}, |
| 2169 a1:{ |
| 2170 "^":"Tp:9;a", |
| 2171 $1:function(a){return this.a.t(0,a)}}, |
| 2172 db:{ |
| 2173 "^":"a;kh>,cA@,DG@,zQ@"}, |
| 2174 i5:{ |
| 2175 "^":"mW;Fb", |
| 2176 gB:function(a){return this.Fb.X5}, |
| 2177 gl0:function(a){return this.Fb.X5===0}, |
| 2178 gA:function(a){var z,y |
| 2179 z=this.Fb |
| 2180 y=new P.N6(z,z.zN,null,null) |
| 2181 y.zq=z.H9 |
| 2182 return y}, |
| 2183 aN:function(a,b){var z,y,x |
| 2184 z=this.Fb |
| 2185 y=z.H9 |
| 2186 x=z.zN |
| 2187 for(;y!=null;){b.$1(y.gkh(y)) |
| 2188 if(x!==z.zN)throw H.b(P.a4(z)) |
| 2189 y=y.DG}}}, |
| 2190 N6:{ |
| 2191 "^":"a;Fb,zN,zq,fD", |
| 2192 gl:function(){return this.fD}, |
| 2193 G:function(){var z=this.Fb |
| 2194 if(this.zN!==z.zN)throw H.b(P.a4(z)) |
| 2195 else{z=this.zq |
| 2196 if(z==null){this.fD=null |
| 2197 return!1}else{this.fD=z.gkh(z) |
| 2198 this.zq=this.zq.gDG() |
| 2199 return!0}}}}, |
| 2200 jg:{ |
| 2201 "^":"u3;", |
| 2202 gA:function(a){return new P.oz(this,this.Zl(),0,null)}, |
| 2203 gB:function(a){return this.X5}, |
| 2204 gl0:function(a){return this.X5===0}, |
| 2205 tg:function(a,b){var z,y |
| 2206 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2207 return z==null?!1:z[b]!=null}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=t
his.OX |
| 2208 return y==null?!1:y[b]!=null}else return this.bk(b)}, |
| 2209 bk:function(a){var z=this.OB |
| 2210 if(z==null)return!1 |
| 2211 return this.aH(z[this.nm(a)],a)>=0}, |
| 2212 hV:function(a){var z |
| 2213 if(!(typeof a==="string"&&a!=="__proto__"))z=typeof a==="number"&&(a&0x3ffffff)=
==a |
| 2214 else z=!0 |
| 2215 if(z)return this.tg(0,a)?a:null |
| 2216 return this.AD(a)}, |
| 2217 AD:function(a){var z,y,x |
| 2218 z=this.OB |
| 2219 if(z==null)return |
| 2220 y=z[this.nm(a)] |
| 2221 x=this.aH(y,a) |
| 2222 if(x<0)return |
| 2223 return J.UQ(y,x)}, |
| 2224 h:function(a,b){return this.NZ(b)}, |
| 2225 NZ:function(a){var z,y,x |
| 2226 z=this.OB |
| 2227 if(z==null){z=P.jB() |
| 2228 this.OB=z}y=this.nm(a) |
| 2229 x=z[y] |
| 2230 if(x==null)z[y]=[a] |
| 2231 else{if(this.aH(x,a)>=0)return!1 |
| 2232 x.push(a)}++this.X5 |
| 2233 this.DM=null |
| 2234 return!0}, |
| 2235 Rz:function(a,b){return this.bB(b)}, |
| 2236 bB:function(a){var z,y,x |
| 2237 z=this.OB |
| 2238 if(z==null)return!1 |
| 2239 y=z[this.nm(a)] |
| 2240 x=this.aH(y,a) |
| 2241 if(x<0)return!1;--this.X5 |
| 2242 this.DM=null |
| 2243 y.splice(x,1) |
| 2244 return!0}, |
| 2245 Zl:function(){var z,y,x,w,v,u,t,s,r,q,p,o |
| 2246 z=this.DM |
| 2247 if(z!=null)return z |
| 2248 y=Array(this.X5) |
| 2249 y.fixed$length=init |
| 2250 x=this.vv |
| 2251 if(x!=null){w=Object.getOwnPropertyNames(x) |
| 2252 v=w.length |
| 2253 for(u=0,t=0;t<v;++t){y[u]=w[t];++u}}else u=0 |
| 2254 s=this.OX |
| 2255 if(s!=null){w=Object.getOwnPropertyNames(s) |
| 2256 v=w.length |
| 2257 for(t=0;t<v;++t){y[u]=+w[t];++u}}r=this.OB |
| 2258 if(r!=null){w=Object.getOwnPropertyNames(r) |
| 2259 v=w.length |
| 2260 for(t=0;t<v;++t){q=r[w[t]] |
| 2261 p=q.length |
| 2262 for(o=0;o<p;++o){y[u]=q[o];++u}}}this.DM=y |
| 2263 return y}, |
| 2264 nm:function(a){return J.v1(a)&0x3ffffff}, |
| 2265 aH:function(a,b){var z,y |
| 2266 if(a==null)return-1 |
| 2267 z=a.length |
| 2268 for(y=0;y<z;++y)if(J.de(a[y],b))return y |
| 2269 return-1}}, |
| 2270 YO:{ |
| 2271 "^":"jg;X5,vv,OX,OB,DM", |
| 2272 nm:function(a){return H.CU(a)&0x3ffffff}, |
| 2273 aH:function(a,b){var z,y,x |
| 2274 if(a==null)return-1 |
| 2275 z=a.length |
| 2276 for(y=0;y<z;++y){x=a[y] |
| 2277 if(x==null?b==null:x===b)return y}return-1}}, |
| 2278 oz:{ |
| 2279 "^":"a;O2,DM,zi,fD", |
| 2280 gl:function(){return this.fD}, |
| 2281 G:function(){var z,y,x |
| 2282 z=this.DM |
| 2283 y=this.zi |
| 2284 x=this.O2 |
| 2285 if(z!==x.DM)throw H.b(P.a4(x)) |
| 2286 else if(y>=z.length){this.fD=null |
| 2287 return!1}else{this.fD=z[y] |
| 2288 this.zi=y+1 |
| 2289 return!0}}}, |
| 2290 b6:{ |
| 2291 "^":"u3;X5,vv,OX,OB,H9,lX,zN", |
| 2292 gA:function(a){var z=new P.zQ(this,this.zN,null,null) |
| 2293 z.zq=this.H9 |
| 2294 return z}, |
| 2295 gB:function(a){return this.X5}, |
| 2296 gl0:function(a){return this.X5===0}, |
| 2297 tg:function(a,b){var z,y |
| 2298 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2299 if(z==null)return!1 |
| 2300 return z[b]!=null}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=this.OX |
| 2301 if(y==null)return!1 |
| 2302 return y[b]!=null}else return this.bk(b)}, |
| 2303 bk:function(a){var z=this.OB |
| 2304 if(z==null)return!1 |
| 2305 return this.aH(z[this.nm(a)],a)>=0}, |
| 2306 hV:function(a){var z |
| 2307 if(!(typeof a==="string"&&a!=="__proto__"))z=typeof a==="number"&&(a&0x3ffffff)=
==a |
| 2308 else z=!0 |
| 2309 if(z)return this.tg(0,a)?a:null |
| 2310 else return this.AD(a)}, |
| 2311 AD:function(a){var z,y,x |
| 2312 z=this.OB |
| 2313 if(z==null)return |
| 2314 y=z[this.nm(a)] |
| 2315 x=this.aH(y,a) |
| 2316 if(x<0)return |
| 2317 return J.UQ(y,x).gGc()}, |
| 2318 aN:function(a,b){var z,y |
| 2319 z=this.H9 |
| 2320 y=this.zN |
| 2321 for(;z!=null;){b.$1(z.gGc()) |
| 2322 if(y!==this.zN)throw H.b(P.a4(this)) |
| 2323 z=z.DG}}, |
| 2324 h:function(a,b){var z,y |
| 2325 if(typeof b==="string"&&b!=="__proto__"){z=this.vv |
| 2326 if(z==null){z=P.T2() |
| 2327 this.vv=z}return this.jn(z,b)}else if(typeof b==="number"&&(b&0x3ffffff)===b){y=
this.OX |
| 2328 if(y==null){y=P.T2() |
| 2329 this.OX=y}return this.jn(y,b)}else return this.NZ(b)}, |
| 2330 NZ:function(a){var z,y,x |
| 2331 z=this.OB |
| 2332 if(z==null){z=P.T2() |
| 2333 this.OB=z}y=this.nm(a) |
| 2334 x=z[y] |
| 2335 if(x==null)z[y]=[this.xf(a)] |
| 2336 else{if(this.aH(x,a)>=0)return!1 |
| 2337 x.push(this.xf(a))}return!0}, |
| 2338 Rz:function(a,b){if(typeof b==="string"&&b!=="__proto__")return this.Nv(this.vv,
b) |
| 2339 else if(typeof b==="number"&&(b&0x3ffffff)===b)return this.Nv(this.OX,b) |
| 2340 else return this.bB(b)}, |
| 2341 bB:function(a){var z,y,x |
| 2342 z=this.OB |
| 2343 if(z==null)return!1 |
| 2344 y=z[this.nm(a)] |
| 2345 x=this.aH(y,a) |
| 2346 if(x<0)return!1 |
| 2347 this.Vb(y.splice(x,1)[0]) |
| 2348 return!0}, |
| 2349 jn:function(a,b){if(a[b]!=null)return!1 |
| 2350 a[b]=this.xf(b) |
| 2351 return!0}, |
| 2352 Nv:function(a,b){var z |
| 2353 if(a==null)return!1 |
| 2354 z=a[b] |
| 2355 if(z==null)return!1 |
| 2356 this.Vb(z) |
| 2357 delete a[b] |
| 2358 return!0}, |
| 2359 xf:function(a){var z,y |
| 2360 z=new P.tj(a,null,null) |
| 2361 if(this.H9==null){this.lX=z |
| 2362 this.H9=z}else{y=this.lX |
| 2363 z.zQ=y |
| 2364 y.sDG(z) |
| 2365 this.lX=z}++this.X5 |
| 2366 this.zN=this.zN+1&67108863 |
| 2367 return z}, |
| 2368 Vb:function(a){var z,y |
| 2369 z=a.gzQ() |
| 2370 y=a.gDG() |
| 2371 if(z==null)this.H9=y |
| 2372 else z.sDG(y) |
| 2373 if(y==null)this.lX=z |
| 2374 else y.szQ(z);--this.X5 |
| 2375 this.zN=this.zN+1&67108863}, |
| 2376 nm:function(a){return J.v1(a)&0x3ffffff}, |
| 2377 aH:function(a,b){var z,y |
| 2378 if(a==null)return-1 |
| 2379 z=a.length |
| 2380 for(y=0;y<z;++y)if(J.de(a[y].gGc(),b))return y |
| 2381 return-1}, |
| 2382 static:{T2:function(){var z=Object.create(null) |
| 2383 z["<non-identifier-key>"]=z |
| 2384 delete z["<non-identifier-key>"] |
| 2385 return z}}}, |
| 2386 tj:{ |
| 2387 "^":"a;Gc<,DG@,zQ@"}, |
| 2388 zQ:{ |
| 2389 "^":"a;O2,zN,zq,fD", |
| 2390 gl:function(){return this.fD}, |
| 2391 G:function(){var z=this.O2 |
| 2392 if(this.zN!==z.zN)throw H.b(P.a4(z)) |
| 2393 else{z=this.zq |
| 2394 if(z==null){this.fD=null |
| 2395 return!1}else{this.fD=z.gGc() |
| 2396 this.zq=this.zq.gDG() |
| 2397 return!0}}}}, |
| 2398 u3:{ |
| 2399 "^":"mW;", |
| 2400 bu:function(a){return H.mx(this,"{","}")}}, |
| 2401 mW:{ |
| 2402 "^":"a;", |
| 2403 aN:function(a,b){var z |
| 2404 for(z=this.gA(this);z.G();)b.$1(z.gl())}, |
| 2405 tt:function(a,b){return P.F(this,b,H.ip(this,"mW",0))}, |
| 2406 br:function(a){return this.tt(a,!0)}, |
| 2407 gB:function(a){var z,y |
| 2408 z=this.gA(this) |
| 2409 for(y=0;z.G();)++y |
| 2410 return y}, |
| 2411 gl0:function(a){return!this.gA(this).G()}, |
| 2412 Zv:function(a,b){var z,y,x |
| 2413 if(b<0)throw H.b(P.N(b)) |
| 2414 for(z=this.gA(this),y=b;z.G();){x=z.gl() |
| 2415 if(y===0)return x;--y}throw H.b(P.N(b))}, |
| 2416 bu:function(a){return P.FO(this)}}, |
| 2417 lG:{ |
| 2418 "^":"a;", |
| 2419 gA:function(a){return new H.a7(a,this.gB(a),0,null)}, |
| 2420 Zv:function(a,b){return this.t(a,b)}, |
| 2421 aN:function(a,b){var z,y,x |
| 2422 z=this.gB(a) |
| 2423 for(y=a.length,x=0;x<z;++x){if(x>=y)return H.e(a,x) |
| 2424 b.$1(a[x]) |
| 2425 if(z!==y)throw H.b(P.a4(a))}}, |
| 2426 gl0:function(a){return this.gB(a)===0}, |
| 2427 bu:function(a){var z |
| 2428 if($.xb().tg(0,a))return"[...]" |
| 2429 z=P.p9("") |
| 2430 try{$.xb().h(0,a) |
| 2431 z.KF("[") |
| 2432 z.We(a,", ") |
| 2433 z.KF("]")}finally{$.xb().Rz(0,a)}return z.gvM()}, |
| 2434 $iszM:true, |
| 2435 $aszM:null}, |
| 2436 W0:{ |
| 2437 "^":"Tp:8;a,b", |
| 2438 $2:function(a,b){var z=this.a |
| 2439 if(!z.a)this.b.KF(", ") |
| 2440 z.a=!1 |
| 2441 z=this.b |
| 2442 z.KF(a) |
| 2443 z.KF(": ") |
| 2444 z.KF(b)}}, |
| 2445 Sw:{ |
| 2446 "^":"mW;v5,av,HV,qT", |
| 2447 gA:function(a){return new P.o0(this,this.HV,this.qT,this.av,null)}, |
| 2448 aN:function(a,b){var z,y,x |
| 2449 z=this.qT |
| 2450 for(y=this.av;y!==this.HV;y=(y+1&this.v5.length-1)>>>0){x=this.v5 |
| 2451 if(y<0||y>=x.length)return H.e(x,y) |
| 2452 b.$1(x[y]) |
| 2453 if(z!==this.qT)H.vh(P.a4(this))}}, |
| 2454 gl0:function(a){return this.av===this.HV}, |
| 2455 gB:function(a){return(this.HV-this.av&this.v5.length-1)>>>0}, |
| 2456 V1:function(a){var z,y,x,w,v |
| 2457 z=this.av |
| 2458 y=this.HV |
| 2459 if(z!==y){for(x=this.v5,w=x.length,v=w-1;z!==y;z=(z+1&v)>>>0){if(z<0||z>=w)retur
n H.e(x,z) |
| 2460 x[z]=null}this.HV=0 |
| 2461 this.av=0;++this.qT}}, |
| 2462 bu:function(a){return H.mx(this,"{","}")}, |
| 2463 Ux:function(){var z,y,x,w |
| 2464 z=this.av |
| 2465 if(z===this.HV)throw H.b(P.w("No elements"));++this.qT |
| 2466 y=this.v5 |
| 2467 x=y.length |
| 2468 if(z>=x)return H.e(y,z) |
| 2469 w=y[z] |
| 2470 y[z]=null |
| 2471 this.av=(z+1&x-1)>>>0 |
| 2472 return w}, |
| 2473 NZ:function(a){var z,y,x |
| 2474 z=this.v5 |
| 2475 y=this.HV |
| 2476 x=z.length |
| 2477 if(y>=x)return H.e(z,y) |
| 2478 z[y]=a |
| 2479 x=(y+1&x-1)>>>0 |
| 2480 this.HV=x |
| 2481 if(this.av===x)this.VW();++this.qT}, |
| 2482 VW:function(){var z,y,x,w |
| 2483 z=Array(this.v5.length*2) |
| 2484 z.fixed$length=init |
| 2485 y=H.VM(z,[H.Kp(this,0)]) |
| 2486 z=this.v5 |
| 2487 x=this.av |
| 2488 w=z.length-x |
| 2489 H.qG(y,0,w,z,x) |
| 2490 z=this.av |
| 2491 x=this.v5 |
| 2492 H.qG(y,w,w+z,x,0) |
| 2493 this.av=0 |
| 2494 this.HV=this.v5.length |
| 2495 this.v5=y}, |
| 2496 Eo:function(a,b){var z=Array(8) |
| 2497 z.fixed$length=init |
| 2498 this.v5=H.VM(z,[b])}, |
| 2499 static:{"^":"TN"}}, |
| 2500 o0:{ |
| 2501 "^":"a;Lz,dP,qT,Dc,fD", |
| 2502 gl:function(){return this.fD}, |
| 2503 G:function(){var z,y,x |
| 2504 z=this.Lz |
| 2505 if(this.qT!==z.qT)H.vh(P.a4(z)) |
| 2506 y=this.Dc |
| 2507 if(y===this.dP){this.fD=null |
| 2508 return!1}z=z.v5 |
| 2509 x=z.length |
| 2510 if(y>=x)return H.e(z,y) |
| 2511 this.fD=z[y] |
| 2512 this.Dc=(y+1&x-1)>>>0 |
| 2513 return!0}}}],["dart.convert","dart:convert",,P,{ |
| 2514 "^":"", |
| 2515 VQ:function(a,b){var z=new P.JC() |
| 2516 return z.$2(null,new P.f1(z).$1(a))}, |
| 2517 BS:function(a,b){var z,y,x,w |
| 2518 x=a |
| 2519 if(typeof x!=="string")throw H.b(P.u(a)) |
| 2520 z=null |
| 2521 try{z=JSON.parse(a)}catch(w){x=H.Ru(w) |
| 2522 y=x |
| 2523 throw H.b(P.rr(String(y)))}return P.VQ(z,b)}, |
| 2524 JC:{ |
| 2525 "^":"Tp:8;", |
| 2526 $2:function(a,b){return b}}, |
| 2527 f1:{ |
| 2528 "^":"Tp:9;a", |
| 2529 $1:function(a){var z,y,x,w,v,u,t |
| 2530 if(a==null||typeof a!="object")return a |
| 2531 if(Object.getPrototypeOf(a)===Array.prototype){z=a |
| 2532 for(y=this.a,x=0;x<z.length;++x)z[x]=y.$2(x,this.$1(z[x])) |
| 2533 return z}w=Object.keys(a) |
| 2534 v=P.tt(null,null) |
| 2535 for(y=this.a,x=0;x<w.length;++x){u=w[x] |
| 2536 v.u(0,u,y.$2(u,this.$1(a[u])))}t=a.__proto__ |
| 2537 if(typeof t!=="undefined"&&t!==Object.prototype)v.u(0,"__proto__",y.$2("__proto_
_",this.$1(t))) |
| 2538 return v}}, |
| 2539 Uk:{ |
| 2540 "^":"a;"}, |
| 2541 wI:{ |
| 2542 "^":"a;"}, |
| 2543 by:{ |
| 2544 "^":"Uk;N5,iY", |
| 2545 pW:function(a,b){return P.BS(a,this.gHe().N5)}, |
| 2546 kV:function(a){return this.pW(a,null)}, |
| 2547 gHe:function(){return C.A3}}, |
| 2548 QM:{ |
| 2549 "^":"wI;N5"}}],["dart.core","dart:core",,P,{ |
| 2550 "^":"", |
| 2551 Hp:function(a){return H.Fv(a)}, |
| 2552 hl:function(a){var z,y,x,w,v |
| 2553 if(typeof a==="number"||typeof a==="boolean"||null==a)return J.AG(a) |
| 2554 if(typeof a==="string"){z=new P.Rn("") |
| 2555 z.vM="\"" |
| 2556 for(y=a.length,x=0,w="\"";x<y;++x){v=C.xB.j(a,x) |
| 2557 if(v<=31)if(v===10)w=z.vM+="\\n" |
| 2558 else if(v===13)w=z.vM+="\\r" |
| 2559 else if(v===9)w=z.vM+="\\t" |
| 2560 else{w=z.vM+="\\x" |
| 2561 if(v<16)z.vM=w+"0" |
| 2562 else{z.vM=w+"1" |
| 2563 v-=16}w=H.Lw(v<10?48+v:87+v) |
| 2564 w=z.vM+=w}else if(v===92)w=z.vM+="\\\\" |
| 2565 else if(v===34)w=z.vM+="\\\"" |
| 2566 else{w=H.Lw(v) |
| 2567 w=z.vM+=w}}y=w+"\"" |
| 2568 z.vM=y |
| 2569 return y}return"Instance of '"+H.lh(a)+"'"}, |
| 2570 FM:function(a){return new P.HG(a)}, |
| 2571 ad:[function(a,b){return a==null?b==null:a===b},"$2","n0",4,0,4], |
| 2572 xv:[function(a){return H.CU(a)},"$1","J2",2,0,5], |
| 2573 F:function(a,b,c){var z,y |
| 2574 z=H.VM([],[c]) |
| 2575 for(y=a.gA(a);y.G();)z.push(y.gl()) |
| 2576 if(b)return z |
| 2577 z.fixed$length=init |
| 2578 return z}, |
| 2579 JS:function(a){var z=H.d(a) |
| 2580 H.qw(z)}, |
| 2581 CL:{ |
| 2582 "^":"Tp:17;a", |
| 2583 $2:function(a,b){var z=this.a |
| 2584 if(z.b>0)z.a.KF(", ") |
| 2585 z.a.KF(P.Hp(a))}}, |
| 2586 a2:{ |
| 2587 "^":"a;", |
| 2588 $isa2:true}, |
| 2589 "+bool":0, |
| 2590 Vf:{ |
| 2591 "^":"lf;"}, |
| 2592 "+double":0, |
| 2593 a6:{ |
| 2594 "^":"a;Fq", |
| 2595 g:function(a,b){return P.k5(0,0,C.jn.g(this.Fq,b.gFq()),0,0,0)}, |
| 2596 C:function(a,b){return C.jn.C(this.Fq,b.gFq())}, |
| 2597 F:function(a,b){return C.jn.F(this.Fq,b.gFq())}, |
| 2598 n:function(a,b){if(b==null)return!1 |
| 2599 if(!J.x(b).$isa6)return!1 |
| 2600 return this.Fq===b.Fq}, |
| 2601 giO:function(a){return this.Fq&0x1FFFFFFF}, |
| 2602 bu:function(a){var z,y,x,w,v |
| 2603 z=new P.DW() |
| 2604 y=this.Fq |
| 2605 if(y<0)return"-"+P.k5(0,0,-y,0,0,0).bu(0) |
| 2606 x=z.$1(C.jn.JV(C.jn.cU(y,60000000),60)) |
| 2607 w=z.$1(C.jn.JV(C.jn.cU(y,1000000),60)) |
| 2608 v=new P.P7().$1(C.jn.JV(y,1000000)) |
| 2609 return""+C.jn.cU(y,3600000000)+":"+H.d(x)+":"+H.d(w)+"."+H.d(v)}, |
| 2610 $isa6:true, |
| 2611 static:{"^":"Wt,S4,dk,Lo,zj,b2,q9,Ie,Do,Cv,kT,IJ,D9,Vk,S8,rG",k5:function(a,b,c,
d,e,f){return new P.a6(a*86400000000+b*3600000000+e*60000000+f*1000000+d*1000+c)
}}}, |
| 2612 P7:{ |
| 2613 "^":"Tp:18;", |
| 2614 $1:function(a){if(a>=100000)return""+a |
| 2615 if(a>=10000)return"0"+a |
| 2616 if(a>=1000)return"00"+a |
| 2617 if(a>=100)return"000"+a |
| 2618 if(a>=10)return"0000"+a |
| 2619 return"00000"+a}}, |
| 2620 DW:{ |
| 2621 "^":"Tp:18;", |
| 2622 $1:function(a){if(a>=10)return""+a |
| 2623 return"0"+a}}, |
| 2624 Ge:{ |
| 2625 "^":"a;", |
| 2626 gI4:function(){return new H.XO(this.$thrownJsError,null)}, |
| 2627 $isGe:true}, |
| 2628 LK:{ |
| 2629 "^":"Ge;", |
| 2630 bu:function(a){return"Throw of null."}}, |
| 2631 AT:{ |
| 2632 "^":"Ge;G1", |
| 2633 bu:function(a){var z=this.G1 |
| 2634 if(z!=null)return"Illegal argument(s): "+H.d(z) |
| 2635 return"Illegal argument(s)"}, |
| 2636 static:{u:function(a){return new P.AT(a)}}}, |
| 2637 bJ:{ |
| 2638 "^":"AT;G1", |
| 2639 bu:function(a){return"RangeError: "+H.d(this.G1)}, |
| 2640 static:{C3:function(a){return new P.bJ(a)},N:function(a){return new P.bJ("value
"+H.d(a))},TE:function(a,b,c){return new P.bJ("value "+H.d(a)+" not in range "+b
+".."+H.d(c))}}}, |
| 2641 ub:{ |
| 2642 "^":"Ge;G1", |
| 2643 bu:function(a){return"Unsupported operation: "+this.G1}, |
| 2644 static:{f:function(a){return new P.ub(a)}}}, |
| 2645 ds:{ |
| 2646 "^":"Ge;G1", |
| 2647 bu:function(a){var z=this.G1 |
| 2648 return z!=null?"UnimplementedError: "+H.d(z):"UnimplementedError"}, |
| 2649 $isGe:true, |
| 2650 static:{SY:function(a){return new P.ds(a)}}}, |
| 2651 lj:{ |
| 2652 "^":"Ge;G1", |
| 2653 bu:function(a){return"Bad state: "+this.G1}, |
| 2654 static:{w:function(a){return new P.lj(a)}}}, |
| 2655 UV:{ |
| 2656 "^":"Ge;YA", |
| 2657 bu:function(a){var z=this.YA |
| 2658 if(z==null)return"Concurrent modification during iteration." |
| 2659 return"Concurrent modification during iteration: "+H.d(P.hl(z))+"."}, |
| 2660 static:{a4:function(a){return new P.UV(a)}}}, |
| 2661 VS:{ |
| 2662 "^":"a;", |
| 2663 bu:function(a){return"Stack Overflow"}, |
| 2664 gI4:function(){return}, |
| 2665 $isGe:true}, |
| 2666 t7:{ |
| 2667 "^":"Ge;Wo", |
| 2668 bu:function(a){return"Reading static variable '"+this.Wo+"' during its initializ
ation"}, |
| 2669 static:{Gz:function(a){return new P.t7(a)}}}, |
| 2670 HG:{ |
| 2671 "^":"a;G1", |
| 2672 bu:function(a){var z=this.G1 |
| 2673 if(z==null)return"Exception" |
| 2674 return"Exception: "+H.d(z)}}, |
| 2675 aE:{ |
| 2676 "^":"a;G1", |
| 2677 bu:function(a){return"FormatException: "+this.G1}, |
| 2678 static:{rr:function(a){return new P.aE(a)}}}, |
| 2679 qo:{ |
| 2680 "^":"a;oc", |
| 2681 bu:function(a){return"Expando:"+H.d(this.oc)}, |
| 2682 t:function(a,b){var z=H.VK(b,"expando$values") |
| 2683 return z==null?null:H.VK(z,this.J4())}, |
| 2684 u:function(a,b,c){var z=H.VK(b,"expando$values") |
| 2685 if(z==null){z=new P.a() |
| 2686 H.aw(b,"expando$values",z)}H.aw(z,this.J4(),c)}, |
| 2687 J4:function(){var z,y |
| 2688 z=H.VK(this,"expando$key") |
| 2689 if(z==null){y=$.Ss |
| 2690 $.Ss=y+1 |
| 2691 z="expando$key$"+y |
| 2692 H.aw(this,"expando$key",z)}return z}, |
| 2693 static:{"^":"bZ,rl,Ss"}}, |
| 2694 KN:{ |
| 2695 "^":"lf;", |
| 2696 $isKN:true}, |
| 2697 "+int":0, |
| 2698 An:{ |
| 2699 "^":"a;"}, |
| 2700 zM:{ |
| 2701 "^":"a;", |
| 2702 $iszM:true, |
| 2703 $aszM:null}, |
| 2704 "+List":0, |
| 2705 c8:{ |
| 2706 "^":"a;", |
| 2707 bu:function(a){return"null"}}, |
| 2708 "+Null":0, |
| 2709 lf:{ |
| 2710 "^":"a;", |
| 2711 $islf:true}, |
| 2712 "+num":0, |
| 2713 a:{ |
| 2714 "^":";", |
| 2715 n:function(a,b){return this===b}, |
| 2716 giO:function(a){return H.eQ(this)}, |
| 2717 bu:function(a){return H.a5(this)}}, |
| 2718 mE:{ |
| 2719 "^":"a;"}, |
| 2720 qU:{ |
| 2721 "^":"a;", |
| 2722 $isqU:true}, |
| 2723 "+String":0, |
| 2724 Rn:{ |
| 2725 "^":"a;vM<", |
| 2726 gB:function(a){return this.vM.length}, |
| 2727 gl0:function(a){return this.vM.length===0}, |
| 2728 KF:function(a){this.vM+=typeof a==="string"?a:H.d(a)}, |
| 2729 We:function(a,b){var z,y |
| 2730 z=J.GP(a) |
| 2731 if(!z.G())return |
| 2732 if(b.length===0)do{y=z.gl() |
| 2733 this.vM+=typeof y==="string"?y:H.d(y)}while(z.G()) |
| 2734 else{this.KF(z.gl()) |
| 2735 for(;z.G();){this.vM+=b |
| 2736 y=z.gl() |
| 2737 this.vM+=typeof y==="string"?y:H.d(y)}}}, |
| 2738 bu:function(a){return this.vM}, |
| 2739 PD:function(a){this.vM=a}, |
| 2740 static:{p9:function(a){var z=new P.Rn("") |
| 2741 z.PD(a) |
| 2742 return z}}}, |
| 2743 wv:{ |
| 2744 "^":"a;"}}],["dart.dom.html","dart:html",,W,{ |
| 2745 "^":"", |
| 2746 qc:function(a){var z |
| 2747 if(a==null)return |
| 2748 if("setInterval" in a){z=W.P1(a) |
| 2749 if(!!J.x(z).$isD0)return z |
| 2750 return}else return a}, |
| 2751 VF:function(a){var z=$.X3 |
| 2752 if(z===C.NU)return a |
| 2753 return z.oj(a,!0)}, |
| 2754 qE:{ |
| 2755 "^":"cv;", |
| 2756 "%":"HTMLAppletElement|HTMLBRElement|HTMLCanvasElement|HTMLContentElement|HTMLDL
istElement|HTMLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDirector
yElement|HTMLDivElement|HTMLEmbedElement|HTMLFontElement|HTMLFrameElement|HTMLHR
Element|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElement|HTM
LImageElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLMapElement|HT
MLMarqueeElement|HTMLMenuElement|HTMLMetaElement|HTMLMeterElement|HTMLModElement
|HTMLOListElement|HTMLObjectElement|HTMLOutputElement|HTMLParagraphElement|HTMLP
aramElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLScriptElemen
t|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLTableCaptionElement|HT
MLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTableElement
|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|HTMLTemp
lateElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnknownElemen
t;HTMLElement"}, |
| 2757 Gh:{ |
| 2758 "^":"qE;N:target=", |
| 2759 bu:function(a){return a.toString()}, |
| 2760 "%":"HTMLAnchorElement"}, |
| 2761 fY:{ |
| 2762 "^":"qE;N:target=", |
| 2763 bu:function(a){return a.toString()}, |
| 2764 "%":"HTMLAreaElement"}, |
| 2765 nB:{ |
| 2766 "^":"qE;N:target=", |
| 2767 "%":"HTMLBaseElement"}, |
| 2768 QP:{ |
| 2769 "^":"qE;", |
| 2770 $isD0:true, |
| 2771 "%":"HTMLBodyElement"}, |
| 2772 IF:{ |
| 2773 "^":"qE;lz:disabled}", |
| 2774 "%":"HTMLButtonElement"}, |
| 2775 nx:{ |
| 2776 "^":"KV;B:length=", |
| 2777 "%":"CDATASection|Comment|Text;CharacterData"}, |
| 2778 Nh:{ |
| 2779 "^":"Gv;", |
| 2780 bu:function(a){return a.toString()}, |
| 2781 "%":"DOMException"}, |
| 2782 cv:{ |
| 2783 "^":"KV;", |
| 2784 bu:function(a){return a.localName}, |
| 2785 gVl:function(a){return H.VM(new W.Cq(a,C.T1.Ph,!1),[null])}, |
| 2786 gLm:function(a){return H.VM(new W.Cq(a,C.io.Ph,!1),[null])}, |
| 2787 $isD0:true, |
| 2788 "%":";Element"}, |
| 2789 hY:{ |
| 2790 "^":"ea;kc:error=", |
| 2791 "%":"ErrorEvent"}, |
| 2792 ea:{ |
| 2793 "^":"Gv;", |
| 2794 gN:function(a){return W.qc(a.target)}, |
| 2795 "%":"AudioProcessingEvent|AutocompleteErrorEvent|BeforeLoadEvent|BeforeUnloadEve
nt|CSSFontFaceLoadEvent|CloseEvent|CustomEvent|DeviceMotionEvent|DeviceOrientati
onEvent|HashChangeEvent|IDBVersionChangeEvent|InstallEvent|InstallPhaseEvent|MID
IConnectionEvent|MIDIMessageEvent|MediaKeyEvent|MediaKeyMessageEvent|MediaKeyNee
dedEvent|MediaStreamEvent|MediaStreamTrackEvent|MessageEvent|MutationEvent|Offli
neAudioCompletionEvent|OverflowEvent|PageTransitionEvent|PopStateEvent|ProgressE
vent|RTCDTMFToneChangeEvent|RTCDataChannelEvent|RTCIceCandidateEvent|ResourcePro
gressEvent|SecurityPolicyViolationEvent|SpeechInputEvent|SpeechRecognitionEvent|
SpeechSynthesisEvent|StorageEvent|TrackEvent|TransitionEvent|WebGLContextEvent|W
ebKitAnimationEvent|WebKitTransitionEvent|XMLHttpRequestProgressEvent;Event"}, |
| 2796 D0:{ |
| 2797 "^":"Gv;", |
| 2798 On:function(a,b,c,d){return a.addEventListener(b,H.tR(c,1),d)}, |
| 2799 Y9:function(a,b,c,d){return a.removeEventListener(b,H.tR(c,1),d)}, |
| 2800 $isD0:true, |
| 2801 "%":";EventTarget"}, |
| 2802 as:{ |
| 2803 "^":"qE;lz:disabled}", |
| 2804 "%":"HTMLFieldSetElement"}, |
| 2805 Yu:{ |
| 2806 "^":"qE;B:length=,N:target=", |
| 2807 "%":"HTMLFormElement"}, |
| 2808 Mi:{ |
| 2809 "^":"qE;lz:disabled}", |
| 2810 $isMi:true, |
| 2811 $isD0:true, |
| 2812 "%":"HTMLInputElement"}, |
| 2813 In:{ |
| 2814 "^":"qE;lz:disabled}", |
| 2815 "%":"HTMLKeygenElement"}, |
| 2816 Og:{ |
| 2817 "^":"qE;lz:disabled}", |
| 2818 "%":"HTMLLinkElement"}, |
| 2819 El:{ |
| 2820 "^":"qE;kc:error=", |
| 2821 "%":"HTMLAudioElement|HTMLMediaElement|HTMLVideoElement"}, |
| 2822 Aj:{ |
| 2823 "^":"w6;", |
| 2824 "%":"DragEvent|MSPointerEvent|MouseEvent|MouseScrollEvent|MouseWheelEvent|Pointe
rEvent|WheelEvent"}, |
| 2825 KV:{ |
| 2826 "^":"D0;", |
| 2827 bu:function(a){var z=a.nodeValue |
| 2828 return z==null?J.Gv.prototype.bu.call(this,a):z}, |
| 2829 "%":"Attr|Document|DocumentFragment|DocumentType|HTMLDocument|Notation|ShadowRoo
t|XMLDocument;Node"}, |
| 2830 l9:{ |
| 2831 "^":"qE;lz:disabled}", |
| 2832 "%":"HTMLOptGroupElement"}, |
| 2833 Ql:{ |
| 2834 "^":"qE;lz:disabled}", |
| 2835 "%":"HTMLOptionElement"}, |
| 2836 nC:{ |
| 2837 "^":"nx;N:target=", |
| 2838 "%":"ProcessingInstruction"}, |
| 2839 lp:{ |
| 2840 "^":"qE;lz:disabled},B:length=", |
| 2841 "%":"HTMLSelectElement"}, |
| 2842 HN:{ |
| 2843 "^":"ea;kc:error=", |
| 2844 "%":"SpeechRecognitionError"}, |
| 2845 As:{ |
| 2846 "^":"Gv;", |
| 2847 t:function(a,b){return a.getItem(b)}, |
| 2848 u:function(a,b,c){a.setItem(b,c)}, |
| 2849 aN:function(a,b){var z,y |
| 2850 for(z=0;!0;++z){y=a.key(z) |
| 2851 if(y==null)return |
| 2852 b.$2(y,a.getItem(y))}}, |
| 2853 gvc:function(a){var z=[] |
| 2854 this.aN(a,new W.cX(z)) |
| 2855 return z}, |
| 2856 gUQ:function(a){var z=[] |
| 2857 this.aN(a,new W.DE(z)) |
| 2858 return z}, |
| 2859 gB:function(a){return a.length}, |
| 2860 gl0:function(a){return a.key(0)==null}, |
| 2861 $isZ0:true, |
| 2862 $asZ0:function(){return[P.qU,P.qU]}, |
| 2863 "%":"Storage"}, |
| 2864 fq:{ |
| 2865 "^":"qE;lz:disabled}", |
| 2866 "%":"HTMLStyleElement"}, |
| 2867 FB:{ |
| 2868 "^":"qE;lz:disabled}", |
| 2869 "%":"HTMLTextAreaElement"}, |
| 2870 w6:{ |
| 2871 "^":"ea;", |
| 2872 "%":"CompositionEvent|FocusEvent|KeyboardEvent|SVGZoomEvent|TextEvent|TouchEvent
;UIEvent"}, |
| 2873 Oi:{ |
| 2874 "^":"D0;", |
| 2875 bu:function(a){return a.toString()}, |
| 2876 $isD0:true, |
| 2877 "%":"DOMWindow|Window"}, |
| 2878 Nf:{ |
| 2879 "^":"qE;", |
| 2880 $isD0:true, |
| 2881 "%":"HTMLFrameSetElement"}, |
| 2882 cX:{ |
| 2883 "^":"Tp:8;a", |
| 2884 $2:function(a,b){return this.a.push(a)}}, |
| 2885 DE:{ |
| 2886 "^":"Tp:8;a", |
| 2887 $2:function(a,b){return this.a.push(b)}}, |
| 2888 Fk:{ |
| 2889 "^":"a;Ph"}, |
| 2890 RO:{ |
| 2891 "^":"qh;", |
| 2892 KR:function(a,b,c,d){var z=new W.xC(0,this.uv,this.Ph,W.VF(a),this.Sg) |
| 2893 z.$builtinTypeInfo=this.$builtinTypeInfo |
| 2894 z.Zz() |
| 2895 return z}}, |
| 2896 Cq:{ |
| 2897 "^":"RO;uv,Ph,Sg"}, |
| 2898 xC:{ |
| 2899 "^":"MO;VP,uv,Ph,u7,Sg", |
| 2900 ed:function(){if(this.uv==null)return |
| 2901 this.Ns() |
| 2902 this.uv=null |
| 2903 this.u7=null |
| 2904 return}, |
| 2905 Zz:function(){var z=this.u7 |
| 2906 if(z!=null&&this.VP<=0)J.qV(this.uv,this.Ph,z,this.Sg)}, |
| 2907 Ns:function(){var z=this.u7 |
| 2908 if(z!=null)J.GJ(this.uv,this.Ph,z,this.Sg)}}, |
| 2909 dW:{ |
| 2910 "^":"a;Ui", |
| 2911 $isD0:true, |
| 2912 static:{P1:function(a){if(a===window)return a |
| 2913 else return new W.dW(a)}}}}],["dart.dom.svg","dart:svg",,P,{ |
| 2914 "^":"", |
| 2915 Y0:{ |
| 2916 "^":"tp;N:target=", |
| 2917 "%":"SVGAElement"}, |
| 2918 tp:{ |
| 2919 "^":"d5;", |
| 2920 "%":"SVGAltGlyphElement|SVGCircleElement|SVGClipPathElement|SVGDefsElement|SVGEl
lipseElement|SVGForeignObjectElement|SVGGElement|SVGGeometryElement|SVGImageElem
ent|SVGLineElement|SVGPathElement|SVGPolygonElement|SVGPolylineElement|SVGRectEl
ement|SVGSVGElement|SVGSwitchElement|SVGTSpanElement|SVGTextContentElement|SVGTe
xtElement|SVGTextPathElement|SVGTextPositioningElement|SVGUseElement;SVGGraphics
Element"}, |
| 2921 Lx:{ |
| 2922 "^":"d5;lz:disabled}", |
| 2923 "%":"SVGStyleElement"}, |
| 2924 d5:{ |
| 2925 "^":"cv;", |
| 2926 gVl:function(a){return H.VM(new W.Cq(a,C.T1.Ph,!1),[null])}, |
| 2927 gLm:function(a){return H.VM(new W.Cq(a,C.io.Ph,!1),[null])}, |
| 2928 $isD0:true, |
| 2929 "%":"SVGAltGlyphDefElement|SVGAltGlyphItemElement|SVGAnimateElement|SVGAnimateMo
tionElement|SVGAnimateTransformElement|SVGAnimationElement|SVGComponentTransferF
unctionElement|SVGCursorElement|SVGDescElement|SVGDiscardElement|SVGFEBlendEleme
nt|SVGFEColorMatrixElement|SVGFEComponentTransferElement|SVGFECompositeElement|S
VGFEConvolveMatrixElement|SVGFEDiffuseLightingElement|SVGFEDisplacementMapElemen
t|SVGFEDistantLightElement|SVGFEDropShadowElement|SVGFEFloodElement|SVGFEFuncAEl
ement|SVGFEFuncBElement|SVGFEFuncGElement|SVGFEFuncRElement|SVGFEGaussianBlurEle
ment|SVGFEImageElement|SVGFEMergeElement|SVGFEMergeNodeElement|SVGFEMorphologyEl
ement|SVGFEOffsetElement|SVGFEPointLightElement|SVGFESpecularLightingElement|SVG
FESpotLightElement|SVGFETileElement|SVGFETurbulenceElement|SVGFilterElement|SVGF
ontElement|SVGFontFaceElement|SVGFontFaceFormatElement|SVGFontFaceNameElement|SV
GFontFaceSrcElement|SVGFontFaceUriElement|SVGGlyphElement|SVGGlyphRefElement|SVG
GradientElement|SVGHKernElement|SVGLinearGradientElement|SVGMPathElement|SVGMark
erElement|SVGMaskElement|SVGMetadataElement|SVGMissingGlyphElement|SVGPatternEle
ment|SVGRadialGradientElement|SVGScriptElement|SVGSetElement|SVGStopElement|SVGS
ymbolElement|SVGTitleElement|SVGVKernElement|SVGViewElement;SVGElement"}}],["dar
t.isolate","dart:isolate",,P,{ |
| 2930 "^":"", |
| 2931 IU:{ |
| 2932 "^":"a;", |
| 2933 $isIU:true, |
| 2934 static:{N3:function(){return new H.ku((Math.random()*0x100000000>>>0)+(Math.rand
om()*0x100000000>>>0)*4294967296)}}}}],["dart.math","dart:math",,P,{ |
| 2935 "^":"", |
| 2936 mg:{ |
| 2937 "^":"a;", |
| 2938 j1:function(a){if(a<=0||a>4294967296)throw H.b(P.C3("max must be in range 0 < ma
x \u2264 2^32, was "+a)) |
| 2939 return Math.random()*a>>>0}}}],["dart.typed_data.implementation","dart:_native_t
yped_data",,H,{ |
| 2940 "^":"", |
| 2941 ET:{ |
| 2942 "^":"Gv;", |
| 2943 J2:function(a,b,c){var z=J.Wx(b) |
| 2944 if(z.C(b,0)||z.F(b,c))throw H.b(P.TE(b,0,c)) |
| 2945 else throw H.b(P.u("Invalid list index "+H.d(b)))}, |
| 2946 "%":";ArrayBufferView;b0|Ob|GV|Pg"}, |
| 2947 V6:{ |
| 2948 "^":"Pg;", |
| 2949 gB:function(a){return a.length}, |
| 2950 t:function(a,b){var z=a.length |
| 2951 if(b>>>0!==b||b>=z)this.J2(a,b,z) |
| 2952 return a[b]}, |
| 2953 u:function(a,b,c){var z=a.length |
| 2954 if(b>>>0!==b||b>=z)this.J2(a,b,z) |
| 2955 a[b]=c}, |
| 2956 $iszM:true, |
| 2957 $aszM:function(){return[P.KN]}, |
| 2958 "%":";Uint8Array"}, |
| 2959 b0:{ |
| 2960 "^":"ET;", |
| 2961 gB:function(a){return a.length}, |
| 2962 $isXj:true}, |
| 2963 Pg:{ |
| 2964 "^":"GV;", |
| 2965 $iszM:true, |
| 2966 $aszM:function(){return[P.KN]}}, |
| 2967 Ob:{ |
| 2968 "^":"b0+lG;", |
| 2969 $iszM:true, |
| 2970 $aszM:function(){return[P.KN]}}, |
| 2971 GV:{ |
| 2972 "^":"Ob+SU;"}}],["dart2js._js_primitives","dart:_js_primitives",,H,{ |
| 2973 "^":"", |
| 2974 qw:function(a){if(typeof dartPrint=="function"){dartPrint(a) |
| 2975 return}if(typeof console=="object"&&typeof console.log=="function"){console.log(
a) |
| 2976 return}if(typeof window=="object")return |
| 2977 if(typeof print=="function"){print(a) |
| 2978 return}throw"Unable to print message: "+String(a)}}],["","file:///Users/kathyw/S
pot/one-hour-codelab/web/5-localbadge/piratebadge.dart",,A,{ |
| 2979 "^":"", |
| 2980 Iq:[function(){var z=J.q0(document.querySelector("#inputName")) |
| 2981 H.VM(new W.xC(0,z.uv,z.Ph,W.VF(A.qC()),z.Sg),[H.Kp(z,0)]).Zz() |
| 2982 z=document.querySelector("#generateButton") |
| 2983 $.Tn=z |
| 2984 z=J.Vg(z) |
| 2985 H.VM(new W.xC(0,z.uv,z.Ph,W.VF(A.OL()),z.Sg),[H.Kp(z,0)]).Zz() |
| 2986 A.Qx(A.dK())},"$0","eE",0,0,1], |
| 2987 zL:[function(a){var z,y,x |
| 2988 z=H.Go(J.l2(a),"$isMi").value |
| 2989 A.Qx(A.ly(null,z)) |
| 2990 y=J.Q7(z) |
| 2991 x=$.Tn |
| 2992 if(y.length===0){J.lo(x,!1) |
| 2993 x.textContent="Aye! Gimme a name!"}else{J.lo(x,!0) |
| 2994 x.textContent="Arrr! Write yer name!"}},"$1","qC",2,0,6], |
| 2995 KL:[function(a){A.Qx(A.ly(null,null))},"$1","OL",2,0,6], |
| 2996 Qx:function(a){var z |
| 2997 if(a==null)return |
| 2998 z=document.querySelector("#badgeName") |
| 2999 z.textContent=J.FN(a.TK)===!0?"":H.d(a.TK)+" the "+H.d(a.Fj) |
| 3000 window.localStorage.setItem("pirateName","{ \"f\": \""+H.d(a.TK)+"\", \"a\": \""
+H.d(a.Fj)+"\" } ")}, |
| 3001 dK:function(){var z,y |
| 3002 z=window.localStorage.getItem("pirateName") |
| 3003 if(z!=null){y=new A.QQ(null,null) |
| 3004 y.yZ(z) |
| 3005 return y}else return}, |
| 3006 QQ:{ |
| 3007 "^":"a;TK,Fj", |
| 3008 bu:function(a){return J.FN(this.TK)===!0?"":H.d(this.TK)+" the "+H.d(this.Fj)}, |
| 3009 iF:function(a,b){var z,y |
| 3010 if(b==null){z=$.Ck() |
| 3011 y=$.VY().j1(10) |
| 3012 if(y<0||y>=10)return H.e(z,y) |
| 3013 this.TK=z[y]}else this.TK=b |
| 3014 z=$.eg() |
| 3015 y=$.VY().j1(10) |
| 3016 if(y<0||y>=10)return H.e(z,y) |
| 3017 this.Fj=z[y]}, |
| 3018 yZ:function(a){var z,y |
| 3019 z=C.xr.kV(a) |
| 3020 y=J.U6(z) |
| 3021 this.TK=y.t(z,"f") |
| 3022 this.Fj=y.t(z,"a")}, |
| 3023 static:{"^":"dy,XR,mT",ly:function(a,b){var z=new A.QQ(null,null) |
| 3024 z.iF(a,b) |
| 3025 return z}}}},1],]) |
| 3026 I.$finishClasses($$,$,null) |
| 3027 $$=null |
| 3028 P.qU.$isqU=true |
| 3029 P.qU.$isa=true |
| 3030 P.KN.$isKN=true |
| 3031 P.KN.$isa=true |
| 3032 P.lf.$isa=true |
| 3033 P.a.$isa=true |
| 3034 P.a6.$isa=true |
| 3035 W.Aj.$isea=true |
| 3036 W.Aj.$isa=true |
| 3037 P.a2.$isa2=true |
| 3038 P.a2.$isa=true |
| 3039 W.ea.$isea=true |
| 3040 W.ea.$isa=true |
| 3041 H.yo.$isa=true |
| 3042 H.IY.$isa=true |
| 3043 H.aX.$isa=true |
| 3044 P.wv.$iswv=true |
| 3045 P.wv.$isa=true |
| 3046 P.mE.$ismE=true |
| 3047 P.mE.$isa=true |
| 3048 P.nP.$isnP=true |
| 3049 P.nP.$isa=true |
| 3050 J.Qc=function(a){if(typeof a=="number")return J.P.prototype |
| 3051 if(typeof a=="string")return J.O.prototype |
| 3052 if(a==null)return a |
| 3053 if(!(a instanceof P.a))return J.is.prototype |
| 3054 return a} |
| 3055 J.RE=function(a){if(a==null)return a |
| 3056 if(typeof a!="object")return a |
| 3057 if(a instanceof P.a)return a |
| 3058 return J.ks(a)} |
| 3059 J.U6=function(a){if(typeof a=="string")return J.O.prototype |
| 3060 if(a==null)return a |
| 3061 if(a.constructor==Array)return J.Q.prototype |
| 3062 if(typeof a!="object")return a |
| 3063 if(a instanceof P.a)return a |
| 3064 return J.ks(a)} |
| 3065 J.Wx=function(a){if(typeof a=="number")return J.P.prototype |
| 3066 if(a==null)return a |
| 3067 if(!(a instanceof P.a))return J.is.prototype |
| 3068 return a} |
| 3069 J.rY=function(a){if(typeof a=="string")return J.O.prototype |
| 3070 if(a==null)return a |
| 3071 if(!(a instanceof P.a))return J.is.prototype |
| 3072 return a} |
| 3073 J.w1=function(a){if(a==null)return a |
| 3074 if(a.constructor==Array)return J.Q.prototype |
| 3075 if(typeof a!="object")return a |
| 3076 if(a instanceof P.a)return a |
| 3077 return J.ks(a)} |
| 3078 J.x=function(a){if(typeof a=="number"){if(Math.floor(a)==a)return J.im.prototype |
| 3079 return J.VA.prototype}if(typeof a=="string")return J.O.prototype |
| 3080 if(a==null)return J.YE.prototype |
| 3081 if(typeof a=="boolean")return J.kn.prototype |
| 3082 if(a.constructor==Array)return J.Q.prototype |
| 3083 if(typeof a!="object")return a |
| 3084 if(a instanceof P.a)return a |
| 3085 return J.ks(a)} |
| 3086 J.AG=function(a){return J.x(a).bu(a)} |
| 3087 J.FN=function(a){return J.U6(a).gl0(a)} |
| 3088 J.GJ=function(a,b,c,d){return J.RE(a).Y9(a,b,c,d)} |
| 3089 J.GP=function(a){return J.w1(a).gA(a)} |
| 3090 J.Q7=function(a){return J.rY(a).bS(a)} |
| 3091 J.UQ=function(a,b){if(a.constructor==Array||typeof a=="string"||H.wV(a,a[init.di
spatchPropertyName]))if(b>>>0===b&&b<a.length)return a[b] |
| 3092 return J.U6(a).t(a,b)} |
| 3093 J.V1=function(a,b){return J.w1(a).Rz(a,b)} |
| 3094 J.Vg=function(a){return J.RE(a).gVl(a)} |
| 3095 J.WB=function(a,b){if(typeof a=="number"&&typeof b=="number")return a+b |
| 3096 return J.Qc(a).g(a,b)} |
| 3097 J.de=function(a,b){if(a==null)return b==null |
| 3098 if(typeof a!="object")return b!=null&&a===b |
| 3099 return J.x(a).n(a,b)} |
| 3100 J.kE=function(a,b){return J.U6(a).tg(a,b)} |
| 3101 J.kH=function(a,b){return J.w1(a).aN(a,b)} |
| 3102 J.kW=function(a,b,c){if((a.constructor==Array||H.wV(a,a[init.dispatchPropertyNam
e]))&&!a.immutable$list&&b>>>0===b&&b<a.length)return a[b]=c |
| 3103 return J.w1(a).u(a,b,c)} |
| 3104 J.l2=function(a){return J.RE(a).gN(a)} |
| 3105 J.lo=function(a,b){return J.RE(a).slz(a,b)} |
| 3106 J.q0=function(a){return J.RE(a).gLm(a)} |
| 3107 J.q8=function(a){return J.U6(a).gB(a)} |
| 3108 J.qA=function(a){return J.w1(a).br(a)} |
| 3109 J.qV=function(a,b,c,d){return J.RE(a).On(a,b,c,d)} |
| 3110 J.up=function(a){return J.RE(a).gkh(a)} |
| 3111 J.v1=function(a){return J.x(a).giO(a)} |
| 3112 J.w8=function(a){return J.RE(a).gkc(a)} |
| 3113 C.Nm=J.Q.prototype |
| 3114 C.jn=J.im.prototype |
| 3115 C.CD=J.P.prototype |
| 3116 C.xB=J.O.prototype |
| 3117 C.ZQ=J.iC.prototype |
| 3118 C.vB=J.is.prototype |
| 3119 C.KZ=new H.hJ() |
| 3120 C.pr=new P.mg() |
| 3121 C.NU=new P.R8() |
| 3122 C.RT=new P.a6(0) |
| 3123 C.T1=new W.Fk("click") |
| 3124 C.io=new W.Fk("input") |
| 3125 C.Mc=function(hooks) { |
| 3126 if (typeof dartExperimentalFixupGetTag != "function") return hooks; |
| 3127 hooks.getTag = dartExperimentalFixupGetTag(hooks.getTag); |
| 3128 } |
| 3129 C.lR=function(hooks) { |
| 3130 var userAgent = typeof navigator == "object" ? navigator.userAgent : ""; |
| 3131 if (userAgent.indexOf("Firefox") == -1) return hooks; |
| 3132 var getTag = hooks.getTag; |
| 3133 var quickMap = { |
| 3134 "BeforeUnloadEvent": "Event", |
| 3135 "DataTransfer": "Clipboard", |
| 3136 "GeoGeolocation": "Geolocation", |
| 3137 "Location": "!Location", |
| 3138 "WorkerMessageEvent": "MessageEvent", |
| 3139 "XMLDocument": "!Document"}; |
| 3140 function getTagFirefox(o) { |
| 3141 var tag = getTag(o); |
| 3142 return quickMap[tag] || tag; |
71 } | 3143 } |
72 }]; | 3144 hooks.getTag = getTagFirefox; |
73 | |
74 $$.BoundClosure$1 = [H, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", | |
75 call$1: function(p0) { | |
76 return this.__js_helper$_target.call(this._self, p0); | |
77 }, | |
78 $is_args1: true | |
79 }]; | |
80 | |
81 $$.BoundClosure$2 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", | |
82 call$2: function(p0, p1) { | |
83 return this.__js_helper$_target.call(this._self, p0, p1); | |
84 }, | |
85 call$1: function(p0) { | |
86 return this.call$2(p0, null); | |
87 }, | |
88 $is_args2: true, | |
89 $is_args1: true | |
90 }]; | |
91 | |
92 $$.BoundClosure$0 = [P, {"": "BoundClosure;_self,__js_helper$_target,_receiver,_
_js_helper$_name", | |
93 call$0: function() { | |
94 return this.__js_helper$_target.call(this._self); | |
95 } | |
96 }]; | |
97 | |
98 $$.Closure$2 = [H, {"": "Closure;call$2,$name", $is_args2: true}]; | |
99 | |
100 $$.Closure$0 = [H, {"": "Closure;call$0,$name"}]; | |
101 | |
102 $$.Closure$7 = [H, {"": "Closure;call$7,$name"}]; | |
103 | |
104 $$.Closure$1 = [H, {"": "Closure;call$1,$name", $is_args1: true}]; | |
105 | |
106 $$.Closure$21 = [P, {"": "Closure;call$2,$name", | |
107 call$1: function(p0) { | |
108 return this.call$2(p0, null); | |
109 }, | |
110 $is_args2: true, | |
111 $is_args1: true | |
112 }]; | |
113 | |
114 (function (reflectionData) { | |
115 function map(x){x={x:x};delete x.x;return x} | |
116 if (!init.libraries) init.libraries = []; | |
117 if (!init.mangledNames) init.mangledNames = map(); | |
118 if (!init.mangledGlobalNames) init.mangledGlobalNames = map(); | |
119 if (!init.statics) init.statics = map(); | |
120 if (!init.interfaces) init.interfaces = map(); | |
121 if (!init.globalFunctions) init.globalFunctions = map(); | |
122 var libraries = init.libraries; | |
123 var mangledNames = init.mangledNames; | |
124 var mangledGlobalNames = init.mangledGlobalNames; | |
125 var hasOwnProperty = Object.prototype.hasOwnProperty; | |
126 var length = reflectionData.length; | |
127 for (var i = 0; i < length; i++) { | |
128 var data = reflectionData[i]; | |
129 var name = data[0]; | |
130 var uri = data[1]; | |
131 var metadata = data[2]; | |
132 var globalObject = data[3]; | |
133 var descriptor = data[4]; | |
134 var isRoot = !!data[5]; | |
135 var fields = descriptor && descriptor[""]; | |
136 var classes = []; | |
137 var functions = []; | |
138 function processStatics(descriptor) { | |
139 for (var property in descriptor) { | |
140 if (!hasOwnProperty.call(descriptor, property)) continue; | |
141 if (property === "") continue; | |
142 var element = descriptor[property]; | |
143 var firstChar = property.substring(0, 1); | |
144 var previousProperty; | |
145 if (firstChar === "+") { | |
146 mangledGlobalNames[previousProperty] = property.substring(1); | |
147 if (descriptor[property] == 1) descriptor[previousProperty].$reflectab
le = 1; | |
148 if (element && element.length) init.interfaces[previousProperty] = ele
ment; | |
149 } else if (firstChar === "@") { | |
150 property = property.substring(1); | |
151 $[property]["@"] = element; | |
152 } else if (firstChar === "*") { | |
153 globalObject[previousProperty].$defaultValues = element; | |
154 var optionalMethods = descriptor.$methodsWithOptionalArguments; | |
155 if (!optionalMethods) { | |
156 descriptor.$methodsWithOptionalArguments = optionalMethods = {} | |
157 } | |
158 optionalMethods[property] = previousProperty; | |
159 } else if (typeof element === "function") { | |
160 globalObject[previousProperty = property] = element; | |
161 functions.push(property); | |
162 init.globalFunctions[property] = element; | |
163 } else { | |
164 previousProperty = property; | |
165 var newDesc = {}; | |
166 var previousProp; | |
167 for (var prop in element) { | |
168 if (!hasOwnProperty.call(element, prop)) continue; | |
169 firstChar = prop.substring(0, 1); | |
170 if (prop === "static") { | |
171 processStatics(init.statics[property] = element[prop]); | |
172 } else if (firstChar === "+") { | |
173 mangledNames[previousProp] = prop.substring(1); | |
174 if (element[prop] == 1) element[previousProp].$reflectable = 1; | |
175 } else if (firstChar === "@" && prop !== "@") { | |
176 newDesc[prop.substring(1)]["@"] = element[prop]; | |
177 } else if (firstChar === "*") { | |
178 newDesc[previousProp].$defaultValues = element[prop]; | |
179 var optionalMethods = newDesc.$methodsWithOptionalArguments; | |
180 if (!optionalMethods) { | |
181 newDesc.$methodsWithOptionalArguments = optionalMethods={} | |
182 } | |
183 optionalMethods[prop] = previousProp; | |
184 } else { | |
185 newDesc[previousProp = prop] = element[prop]; | |
186 } | |
187 } | |
188 $$[property] = [globalObject, newDesc]; | |
189 classes.push(property); | |
190 } | |
191 } | |
192 } | |
193 processStatics(descriptor); | |
194 libraries.push([name, uri, classes, functions, metadata, fields, isRoot, | |
195 globalObject]); | |
196 } | |
197 })([ | |
198 ["_foreign_helper", "dart:_foreign_helper", , H, { | |
199 JS_CONST: {"": "Object;code"}}], | |
200 ["_interceptors", "dart:_interceptors", , J, { | |
201 getInterceptor: function(object) { | |
202 return void 0; | |
203 }, | |
204 | |
205 makeDispatchRecord: function(interceptor, proto, extension, indexability) { | |
206 return {i: interceptor, p: proto, e: extension, x: indexability}; | |
207 }, | |
208 | |
209 getNativeInterceptor: function(object) { | |
210 var record, proto, objectProto; | |
211 record = object[init.dispatchPropertyName]; | |
212 if (record == null) | |
213 if ($.initNativeDispatchFlag == null) { | |
214 H.initNativeDispatch(); | |
215 record = object[init.dispatchPropertyName]; | |
216 } | |
217 if (record != null) { | |
218 proto = record.p; | |
219 if (false === proto) | |
220 return record.i; | |
221 if (true === proto) | |
222 return object; | |
223 objectProto = Object.getPrototypeOf(object); | |
224 if (proto === objectProto) | |
225 return record.i; | |
226 if (record.e === objectProto) | |
227 return proto(object, record); | |
228 } | |
229 record = H.lookupDispatchRecord(object); | |
230 if (record == null) | |
231 return C.C_UnknownJavaScriptObject; | |
232 Object.defineProperty(Object.getPrototypeOf(object), init.dispatchPropertyName
, {value: record, enumerable: false, writable: true, configurable: true}); | |
233 return J.getNativeInterceptor(object); | |
234 }, | |
235 | |
236 Interceptor: {"": "Object;", | |
237 $eq: function(receiver, other) { | |
238 return receiver === other; | |
239 }, | |
240 get$hashCode: function(receiver) { | |
241 return H.Primitives_objectHashCode(receiver); | |
242 }, | |
243 toString$0: function(receiver) { | |
244 return H.Primitives_objectToString(receiver); | |
245 } | |
246 }, | |
247 | |
248 JSBool: {"": "bool/Interceptor;", | |
249 toString$0: function(receiver) { | |
250 return String(receiver); | |
251 }, | |
252 get$hashCode: function(receiver) { | |
253 return receiver ? 519018 : 218159; | |
254 }, | |
255 $isbool: true | |
256 }, | |
257 | |
258 JSNull: {"": "Interceptor;", | |
259 $eq: function(receiver, other) { | |
260 return null == other; | |
261 }, | |
262 toString$0: function(receiver) { | |
263 return "null"; | |
264 }, | |
265 get$hashCode: function(receiver) { | |
266 return 0; | |
267 } | |
268 }, | |
269 | |
270 JavaScriptObject: {"": "Interceptor;", | |
271 get$hashCode: function(_) { | |
272 return 0; | |
273 } | |
274 }, | |
275 | |
276 PlainJavaScriptObject: {"": "JavaScriptObject;"}, | |
277 | |
278 UnknownJavaScriptObject: {"": "JavaScriptObject;"}, | |
279 | |
280 JSArray: {"": "List/Interceptor;", | |
281 forEach$1: function(receiver, f) { | |
282 return H.IterableMixinWorkaround_forEach(receiver, f); | |
283 }, | |
284 elementAt$1: function(receiver, index) { | |
285 if (index < 0 || index >= receiver.length) | |
286 throw H.ioore(receiver, index); | |
287 return receiver[index]; | |
288 }, | |
289 get$isEmpty: function(receiver) { | |
290 return receiver.length === 0; | |
291 }, | |
292 toString$0: function(receiver) { | |
293 return H.IterableMixinWorkaround_toStringIterable(receiver, "[", "]"); | |
294 }, | |
295 toList$1$growable: function(receiver, growable) { | |
296 return P.List_List$from(receiver, growable, H.getRuntimeTypeArgument(receive
r, "JSArray", 0)); | |
297 }, | |
298 toList$0: function($receiver) { | |
299 return this.toList$1$growable($receiver, true); | |
300 }, | |
301 get$iterator: function(receiver) { | |
302 return new H.ListIterator(receiver, receiver.length, 0, null); | |
303 }, | |
304 get$hashCode: function(receiver) { | |
305 return H.Primitives_objectHashCode(receiver); | |
306 }, | |
307 get$length: function(receiver) { | |
308 return receiver.length; | |
309 }, | |
310 $index: function(receiver, index) { | |
311 if (typeof index !== "number" || Math.floor(index) !== index) | |
312 throw H.wrapException(new P.ArgumentError(index)); | |
313 if (index >= receiver.length || index < 0) | |
314 throw H.wrapException(P.RangeError$value(index)); | |
315 return receiver[index]; | |
316 }, | |
317 $indexSet: function(receiver, index, value) { | |
318 if (!!receiver.immutable$list) | |
319 H.throwExpression(P.UnsupportedError$("indexed set")); | |
320 if (typeof index !== "number" || Math.floor(index) !== index) | |
321 throw H.wrapException(new P.ArgumentError(index)); | |
322 if (index >= receiver.length || index < 0) | |
323 throw H.wrapException(P.RangeError$value(index)); | |
324 receiver[index] = value; | |
325 }, | |
326 $isList: true, | |
327 $asList: null, | |
328 $isList: true, | |
329 $isEfficientLength: true | |
330 }, | |
331 | |
332 JSMutableArray: {"": "JSArray;", $isJSMutableArray: true, | |
333 $asJSArray: function() { | |
334 return [null]; | |
335 }, | |
336 $asList: function() { | |
337 return [null]; | |
338 } | |
339 }, | |
340 | |
341 JSFixedArray: {"": "JSMutableArray;"}, | |
342 | |
343 JSExtendableArray: {"": "JSMutableArray;"}, | |
344 | |
345 JSNumber: {"": "num/Interceptor;", | |
346 remainder$1: function(receiver, b) { | |
347 return receiver % b; | |
348 }, | |
349 toInt$0: function(receiver) { | |
350 var t1; | |
351 if (receiver >= -2147483648 && receiver <= 2147483647) | |
352 return receiver | 0; | |
353 if (isFinite(receiver)) { | |
354 t1 = receiver < 0 ? Math.ceil(receiver) : Math.floor(receiver); | |
355 return t1 + 0; | |
356 } | |
357 throw H.wrapException(P.UnsupportedError$('' + receiver)); | |
358 }, | |
359 toString$0: function(receiver) { | |
360 if (receiver === 0 && 1 / receiver < 0) | |
361 return "-0.0"; | |
362 else | |
363 return "" + receiver; | |
364 }, | |
365 get$hashCode: function(receiver) { | |
366 return receiver & 0x1FFFFFFF; | |
367 }, | |
368 $tdiv: function(receiver, other) { | |
369 if ((receiver | 0) === receiver && (other | 0) === other && 0 !== other && -
1 !== other) | |
370 return receiver / other | 0; | |
371 else | |
372 return this._slowTdiv$1(receiver, other); | |
373 }, | |
374 _slowTdiv$1: function(receiver, other) { | |
375 return this.toInt$0(receiver / other); | |
376 }, | |
377 $shr: function(receiver, other) { | |
378 if (other < 0) | |
379 throw H.wrapException(new P.ArgumentError(other)); | |
380 if (receiver > 0) { | |
381 if (other > 31) | |
382 return 0; | |
383 return receiver >>> other; | |
384 } | |
385 if (other > 31) | |
386 other = 31; | |
387 return receiver >> other >>> 0; | |
388 }, | |
389 $lt: function(receiver, other) { | |
390 if (typeof other !== "number") | |
391 throw H.wrapException(new P.ArgumentError(other)); | |
392 return receiver < other; | |
393 }, | |
394 $gt: function(receiver, other) { | |
395 if (typeof other !== "number") | |
396 throw H.wrapException(new P.ArgumentError(other)); | |
397 return receiver > other; | |
398 }, | |
399 $ge: function(receiver, other) { | |
400 if (typeof other !== "number") | |
401 throw H.wrapException(new P.ArgumentError(other)); | |
402 return receiver >= other; | |
403 }, | |
404 $isnum: true, | |
405 static: { | |
406 "": "JSNumber__MIN_INT32,JSNumber__MAX_INT32", | |
407 } | 3145 } |
408 | 3146 C.w2=function getTagFallback(o) { |
409 }, | 3147 var constructor = o.constructor; |
410 | 3148 if (typeof constructor == "function") { |
411 JSInt: {"": "int/JSNumber;", $isdouble: true, $isnum: true, $isint: true}, | 3149 var name = constructor.name; |
412 | 3150 if (typeof name == "string" && |
413 JSDouble: {"": "double/JSNumber;", $isdouble: true, $isnum: true}, | 3151 name.length > 2 && |
414 | 3152 name !== "Object" && |
415 JSString: {"": "String/Interceptor;", | 3153 name !== "Function.prototype") { |
416 codeUnitAt$1: function(receiver, index) { | 3154 return name; |
417 if (index < 0) | |
418 throw H.wrapException(P.RangeError$value(index)); | |
419 if (index >= receiver.length) | |
420 throw H.wrapException(P.RangeError$value(index)); | |
421 return receiver.charCodeAt(index); | |
422 }, | |
423 substring$2: function(receiver, startIndex, endIndex) { | |
424 if (endIndex == null) | |
425 endIndex = receiver.length; | |
426 if (typeof endIndex !== "number") | |
427 H.throwExpression(P.ArgumentError$(endIndex)); | |
428 if (startIndex < 0) | |
429 throw H.wrapException(P.RangeError$value(startIndex)); | |
430 if (typeof endIndex !== "number") | |
431 throw H.iae(endIndex); | |
432 if (startIndex > endIndex) | |
433 throw H.wrapException(P.RangeError$value(startIndex)); | |
434 if (endIndex > receiver.length) | |
435 throw H.wrapException(P.RangeError$value(endIndex)); | |
436 return receiver.substring(startIndex, endIndex); | |
437 }, | |
438 substring$1: function($receiver, startIndex) { | |
439 return this.substring$2($receiver, startIndex, null); | |
440 }, | |
441 trim$0: function(receiver) { | |
442 var endIndex, startIndex, codeUnit, endIndex0, endIndex1; | |
443 for (endIndex = receiver.length, startIndex = 0; startIndex < endIndex;) { | |
444 if (startIndex >= endIndex) | |
445 H.throwExpression(P.RangeError$value(startIndex)); | |
446 codeUnit = receiver.charCodeAt(startIndex); | |
447 if (codeUnit === 32 || codeUnit === 13 || J.JSString__isWhitespace(codeUni
t)) | |
448 ++startIndex; | |
449 else | |
450 break; | |
451 } | |
452 if (startIndex === endIndex) | |
453 return ""; | |
454 for (endIndex0 = endIndex; true; endIndex0 = endIndex1) { | |
455 endIndex1 = endIndex0 - 1; | |
456 if (endIndex1 < 0) | |
457 H.throwExpression(P.RangeError$value(endIndex1)); | |
458 if (endIndex1 >= endIndex) | |
459 H.throwExpression(P.RangeError$value(endIndex1)); | |
460 codeUnit = receiver.charCodeAt(endIndex1); | |
461 if (codeUnit === 32 || codeUnit === 13 || J.JSString__isWhitespace(codeUni
t)) | |
462 ; | |
463 else | |
464 break; | |
465 } | |
466 if (startIndex === 0 && endIndex0 === endIndex) | |
467 return receiver; | |
468 return receiver.substring(startIndex, endIndex0); | |
469 }, | |
470 get$isEmpty: function(receiver) { | |
471 return receiver.length === 0; | |
472 }, | |
473 toString$0: function(receiver) { | |
474 return receiver; | |
475 }, | |
476 get$hashCode: function(receiver) { | |
477 var t1, hash, i; | |
478 for (t1 = receiver.length, hash = 0, i = 0; i < t1; ++i) { | |
479 hash = 536870911 & hash + receiver.charCodeAt(i); | |
480 hash = 536870911 & hash + ((524287 & hash) << 10 >>> 0); | |
481 hash ^= hash >> 6; | |
482 } | |
483 hash = 536870911 & hash + ((67108863 & hash) << 3 >>> 0); | |
484 hash ^= hash >> 11; | |
485 return 536870911 & hash + ((16383 & hash) << 15 >>> 0); | |
486 }, | |
487 get$length: function(receiver) { | |
488 return receiver.length; | |
489 }, | |
490 $index: function(receiver, index) { | |
491 if (typeof index !== "number" || Math.floor(index) !== index) | |
492 throw H.wrapException(new P.ArgumentError(index)); | |
493 if (index >= receiver.length || index < 0) | |
494 throw H.wrapException(P.RangeError$value(index)); | |
495 return receiver[index]; | |
496 }, | |
497 $isString: true, | |
498 static: { | |
499 JSString__isWhitespace: function(codeUnit) { | |
500 if (codeUnit < 256) | |
501 switch (codeUnit) { | |
502 case 9: | |
503 case 10: | |
504 case 11: | |
505 case 12: | |
506 case 13: | |
507 case 32: | |
508 case 133: | |
509 case 160: | |
510 return true; | |
511 default: | |
512 return false; | |
513 } | |
514 switch (codeUnit) { | |
515 case 5760: | |
516 case 6158: | |
517 case 8192: | |
518 case 8193: | |
519 case 8194: | |
520 case 8195: | |
521 case 8196: | |
522 case 8197: | |
523 case 8198: | |
524 case 8199: | |
525 case 8200: | |
526 case 8201: | |
527 case 8202: | |
528 case 8232: | |
529 case 8233: | |
530 case 8239: | |
531 case 8287: | |
532 case 12288: | |
533 case 65279: | |
534 return true; | |
535 default: | |
536 return false; | |
537 } | |
538 }} | |
539 | |
540 }}], | |
541 ["_isolate_helper", "dart:_isolate_helper", , H, { | |
542 _callInIsolate: function(isolate, $function) { | |
543 var result = isolate.eval$1($function); | |
544 $globalState.topEventLoop.run$0(); | |
545 return result; | |
546 }, | |
547 | |
548 startRootIsolate: function(entry) { | |
549 var rootContext, t1; | |
550 $globalState = H._Manager$(entry); | |
551 if ($globalState.isWorker === true) | |
552 return; | |
553 rootContext = H._IsolateContext$(); | |
554 $globalState.rootContext = rootContext; | |
555 $globalState.currentContext = rootContext; | |
556 t1 = J.getInterceptor(entry); | |
557 if (!!t1.$is_args1) | |
558 rootContext.eval$1(new H.startRootIsolate_closure(entry)); | |
559 else if (!!t1.$is_args2) | |
560 rootContext.eval$1(new H.startRootIsolate_closure0(entry)); | |
561 else | |
562 rootContext.eval$1(entry); | |
563 $globalState.topEventLoop.run$0(); | |
564 }, | |
565 | |
566 IsolateNatives_computeThisScript: function() { | |
567 var currentScript = init.currentScript; | |
568 if (currentScript != null) | |
569 return String(currentScript.src); | |
570 if (typeof version == "function" && typeof os == "object" && "system" in os) | |
571 return H.IsolateNatives_computeThisScriptD8(); | |
572 if (typeof version == "function" && typeof system == "function") | |
573 return thisFilename(); | |
574 return; | |
575 }, | |
576 | |
577 IsolateNatives_computeThisScriptD8: function() { | |
578 var stack, matches; | |
579 stack = new Error().stack; | |
580 if (stack == null) { | |
581 stack = (function() {try { throw new Error() } catch(e) { return e.stack }})
(); | |
582 if (stack == null) | |
583 throw H.wrapException(P.UnsupportedError$("No stack trace")); | |
584 } | |
585 matches = stack.match(new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "m"))
; | |
586 if (matches != null) | |
587 return matches[1]; | |
588 matches = stack.match(new RegExp("^[^@]*@(.*):[0-9]*$", "m")); | |
589 if (matches != null) | |
590 return matches[1]; | |
591 throw H.wrapException(P.UnsupportedError$("Cannot extract URI from \"" + stack
+ "\"")); | |
592 }, | |
593 | |
594 IsolateNatives__processWorkerMessage: function(sender, e) { | |
595 var msg, t1, functionName, entryPoint, args, message, isSpawnUri, replyTo, con
text, t2; | |
596 msg = H._deserializeMessage(e.data); | |
597 t1 = J.getInterceptor$asx(msg); | |
598 switch (t1.$index(msg, "command")) { | |
599 case "start": | |
600 $globalState.currentManagerId = t1.$index(msg, "id"); | |
601 functionName = t1.$index(msg, "functionName"); | |
602 entryPoint = functionName == null ? $globalState.entry : init.globalFuncti
ons[functionName]; | |
603 args = t1.$index(msg, "args"); | |
604 message = H._deserializeMessage(t1.$index(msg, "msg")); | |
605 isSpawnUri = t1.$index(msg, "isSpawnUri"); | |
606 replyTo = H._deserializeMessage(t1.$index(msg, "replyTo")); | |
607 context = H._IsolateContext$(); | |
608 $globalState.topEventLoop.events._add$1(new H._IsolateEvent(context, new H
.IsolateNatives__processWorkerMessage_closure(entryPoint, args, message, isSpawn
Uri, replyTo), "worker-start")); | |
609 $globalState.currentContext = context; | |
610 $globalState.topEventLoop.run$0(); | |
611 break; | |
612 case "spawn-worker": | |
613 H.IsolateNatives__spawnWorker(t1.$index(msg, "functionName"), t1.$index(ms
g, "uri"), t1.$index(msg, "args"), t1.$index(msg, "msg"), t1.$index(msg, "isSpaw
nUri"), t1.$index(msg, "replyPort")); | |
614 break; | |
615 case "message": | |
616 if (t1.$index(msg, "port") != null) | |
617 t1.$index(msg, "port").send$1(t1.$index(msg, "msg")); | |
618 $globalState.topEventLoop.run$0(); | |
619 break; | |
620 case "close": | |
621 t1 = $globalState.managers; | |
622 t2 = $.get$IsolateNatives_workerIds(); | |
623 t1.remove$1(t1, t2.$index(t2, sender)); | |
624 sender.terminate(); | |
625 $globalState.topEventLoop.run$0(); | |
626 break; | |
627 case "log": | |
628 H.IsolateNatives__log(t1.$index(msg, "msg")); | |
629 break; | |
630 case "print": | |
631 if ($globalState.isWorker === true) { | |
632 t1 = $globalState.mainManager; | |
633 t2 = H._serializeMessage(H.fillLiteralMap(["command", "print", "msg", ms
g], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null))); | |
634 t1.toString; | |
635 self.postMessage(t2); | |
636 } else | |
637 P.print(t1.$index(msg, "msg")); | |
638 break; | |
639 case "error": | |
640 throw H.wrapException(t1.$index(msg, "msg")); | |
641 default: | |
642 } | |
643 }, | |
644 | |
645 IsolateNatives__log: function(msg) { | |
646 var trace, t1, t2, exception; | |
647 if ($globalState.isWorker === true) { | |
648 t1 = $globalState.mainManager; | |
649 t2 = H._serializeMessage(H.fillLiteralMap(["command", "log", "msg", msg], P.
LinkedHashMap_LinkedHashMap(null, null, null, null, null))); | |
650 t1.toString; | |
651 self.postMessage(t2); | |
652 } else | |
653 try { | |
654 $.get$globalThis().console.log(msg); | |
655 } catch (exception) { | |
656 H.unwrapException(exception); | |
657 trace = new H._StackTrace(exception, null); | |
658 throw H.wrapException(P.Exception_Exception(trace)); | |
659 } | |
660 | |
661 }, | |
662 | |
663 IsolateNatives__startIsolate: function(topLevel, args, message, isSpawnUri, repl
yTo) { | |
664 var t1; | |
665 H.Primitives_initializeStatics($globalState.currentContext.id); | |
666 $.lazyPort = H.ReceivePortImpl$(); | |
667 t1 = $.lazyPort; | |
668 t1.toString; | |
669 replyTo.send$1(["spawned", new H._NativeJsSendPort(t1, $globalState.currentCon
text.id)]); | |
670 if (isSpawnUri !== true) | |
671 topLevel.call$1(message); | |
672 else { | |
673 t1 = J.getInterceptor(topLevel); | |
674 if (!!t1.$is_args2) | |
675 topLevel.call$2(args, message); | |
676 else if (!!t1.$is_args1) | |
677 topLevel.call$1(args); | |
678 else | |
679 topLevel.call$0(); | |
680 } | |
681 }, | |
682 | |
683 IsolateNatives__spawnWorker: function(functionName, uri, args, message, isSpawnU
ri, replyPort) { | |
684 var worker, t1, workerId; | |
685 if (uri == null) | |
686 uri = $.get$IsolateNatives_thisScript(); | |
687 worker = new Worker(uri); | |
688 worker.onmessage = function(e) { H.IsolateNatives__processWorkerMessage$closur
e.call$2(worker, e); }; | |
689 t1 = $globalState; | |
690 workerId = t1.nextManagerId; | |
691 t1.nextManagerId = workerId + 1; | |
692 t1 = $.get$IsolateNatives_workerIds(); | |
693 t1.$indexSet(t1, worker, workerId); | |
694 t1 = $globalState.managers; | |
695 t1.$indexSet(t1, workerId, worker); | |
696 worker.postMessage(H._serializeMessage(H.fillLiteralMap(["command", "start", "
id", workerId, "replyTo", H._serializeMessage(replyPort), "args", args, "msg", H
._serializeMessage(message), "isSpawnUri", isSpawnUri, "functionName", functionN
ame], P.LinkedHashMap_LinkedHashMap(null, null, null, null, null)))); | |
697 }, | |
698 | |
699 _waitForPendingPorts: function(message, callback) { | |
700 var finder = H._PendingSendPortFinder$(); | |
701 finder.traverse$1(message); | |
702 P.Future_wait(finder.ports).then$1(new H._waitForPendingPorts_closure(callback
)); | |
703 }, | |
704 | |
705 _serializeMessage: function(message) { | |
706 var t1; | |
707 if ($globalState.supportsWorkers === true) { | |
708 t1 = new H._JsSerializer(0, new H._MessageTraverserVisitedMap()); | |
709 t1._visited = new H._JsVisitedMap(null); | |
710 return t1.traverse$1(message); | |
711 } else { | |
712 t1 = new H._JsCopier(new H._MessageTraverserVisitedMap()); | |
713 t1._visited = new H._JsVisitedMap(null); | |
714 return t1.traverse$1(message); | |
715 } | |
716 }, | |
717 | |
718 _deserializeMessage: function(message) { | |
719 if ($globalState.supportsWorkers === true) | |
720 return new H._JsDeserializer(null).deserialize$1(message); | |
721 else | |
722 return message; | |
723 }, | |
724 | |
725 _MessageTraverser_isPrimitive: function(x) { | |
726 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; | |
727 }, | |
728 | |
729 _Deserializer_isPrimitive: function(x) { | |
730 return x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean"; | |
731 }, | |
732 | |
733 startRootIsolate_closure: {"": "Closure;entry_0", | |
734 call$0: function() { | |
735 this.entry_0.call$1([]); | |
736 } | |
737 }, | |
738 | |
739 startRootIsolate_closure0: {"": "Closure;entry_1", | |
740 call$0: function() { | |
741 this.entry_1.call$2([], null); | |
742 } | |
743 }, | |
744 | |
745 _Manager: {"": "Object;nextIsolateId,currentManagerId,nextManagerId,currentConte
xt,rootContext,topEventLoop,fromCommandLine,isWorker,supportsWorkers,isolates,ma
inManager,managers,entry", | |
746 _nativeDetectEnvironment$0: function() { | |
747 var t1, t2; | |
748 t1 = $.get$globalWindow() == null; | |
749 t2 = $.get$globalWorker(); | |
750 this.isWorker = t1 && $.get$globalPostMessageDefined() === true; | |
751 if (this.isWorker !== true) | |
752 t2 = t2 != null && $.get$IsolateNatives_thisScript() != null; | |
753 else | |
754 t2 = true; | |
755 this.supportsWorkers = t2; | |
756 this.fromCommandLine = t1 && this.isWorker !== true; | |
757 }, | |
758 _nativeInitWorkerMessageHandler$0: function() { | |
759 var $function = function (e) { H.IsolateNatives__processWorkerMessage$closur
e.call$2(this.mainManager, e); }; | |
760 $.get$globalThis().onmessage = $function; | |
761 $.get$globalThis().dartPrint = function (object) {}; | |
762 }, | |
763 _Manager$1: function(entry) { | |
764 this._nativeDetectEnvironment$0(); | |
765 this.topEventLoop = new H._EventLoop(P.ListQueue$(null, H._IsolateEvent), 0)
; | |
766 this.isolates = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, H._
IsolateContext); | |
767 this.managers = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, nul
l); | |
768 if (this.isWorker === true) { | |
769 this.mainManager = new H._MainManagerStub(); | |
770 this._nativeInitWorkerMessageHandler$0(); | |
771 } | |
772 }, | |
773 static: { | |
774 _Manager$: function(entry) { | |
775 var t1 = new H._Manager(0, 0, 1, null, null, null, null, null, null, null, nul
l, null, entry); | |
776 t1._Manager$1(entry); | |
777 return t1; | |
778 }} | |
779 | |
780 }, | |
781 | |
782 _IsolateContext: {"": "Object;id,ports,isolateStatics<", | |
783 eval$1: function(code) { | |
784 var old, result; | |
785 old = $globalState.currentContext; | |
786 $globalState.currentContext = this; | |
787 $ = this.isolateStatics; | |
788 result = null; | |
789 try { | |
790 result = code.call$0(); | |
791 } finally { | |
792 $globalState.currentContext = old; | |
793 if (old != null) | |
794 $ = old.get$isolateStatics(); | |
795 } | |
796 return result; | |
797 }, | |
798 lookup$1: function(portId) { | |
799 var t1 = this.ports; | |
800 return t1.$index(t1, portId); | |
801 }, | |
802 register$2: function(_, portId, port) { | |
803 var t1 = this.ports; | |
804 if (t1.containsKey$1(t1, portId)) | |
805 throw H.wrapException(P.Exception_Exception("Registry: ports must be regis
tered only once.")); | |
806 t1 = this.ports; | |
807 t1.$indexSet(t1, portId, port); | |
808 t1 = $globalState.isolates; | |
809 t1.$indexSet(t1, this.id, this); | |
810 }, | |
811 unregister$1: function(portId) { | |
812 var t1 = this.ports; | |
813 t1.remove$1(t1, portId); | |
814 if (this.ports._collection$_length === 0) { | |
815 t1 = $globalState.isolates; | |
816 t1.remove$1(t1, this.id); | |
817 } | |
818 }, | |
819 _IsolateContext$0: function() { | |
820 var t1, t2; | |
821 t1 = $globalState; | |
822 t2 = t1.nextIsolateId; | |
823 t1.nextIsolateId = t2 + 1; | |
824 this.id = t2; | |
825 this.ports = P.LinkedHashMap_LinkedHashMap(null, null, null, J.JSInt, P.Rece
ivePort); | |
826 this.isolateStatics = new Isolate(); | |
827 }, | |
828 static: { | |
829 _IsolateContext$: function() { | |
830 var t1 = new H._IsolateContext(null, null, null); | |
831 t1._IsolateContext$0(); | |
832 return t1; | |
833 }} | |
834 | |
835 }, | |
836 | |
837 _EventLoop: {"": "Object;events,activeTimerCount", | |
838 dequeue$0: function() { | |
839 var t1 = this.events; | |
840 if (t1._head === t1._tail) | |
841 return; | |
842 return t1.removeFirst$0(); | |
843 }, | |
844 checkOpenReceivePortsFromCommandLine$0: function() { | |
845 if ($globalState.rootContext != null) { | |
846 var t1 = $globalState.isolates; | |
847 t1 = t1.containsKey$1(t1, $globalState.rootContext.id) && $globalState.fro
mCommandLine === true && $globalState.rootContext.ports._collection$_length ===
0; | |
848 } else | |
849 t1 = false; | |
850 if (t1) | |
851 throw H.wrapException(P.Exception_Exception("Program exited with open Rece
ivePorts.")); | |
852 }, | |
853 runIteration$0: function() { | |
854 var $event, t1, t2; | |
855 $event = this.dequeue$0(); | |
856 if ($event == null) { | |
857 this.checkOpenReceivePortsFromCommandLine$0(); | |
858 t1 = $globalState; | |
859 if (t1.isWorker === true && t1.isolates._collection$_length === 0 && t1.to
pEventLoop.activeTimerCount === 0) { | |
860 t1 = t1.mainManager; | |
861 t2 = H._serializeMessage(H.fillLiteralMap(["command", "close"], P.Linked
HashMap_LinkedHashMap(null, null, null, null, null))); | |
862 t1.toString; | |
863 self.postMessage(t2); | |
864 } | |
865 return false; | |
866 } | |
867 $event.process$0(); | |
868 return true; | |
869 }, | |
870 _runHelper$0: function() { | |
871 if ($.get$globalWindow() != null) | |
872 new H._EventLoop__runHelper_next(this).call$0(); | |
873 else | |
874 for (; this.runIteration$0();) | |
875 ; | |
876 }, | |
877 run$0: function() { | |
878 var e, trace, exception, t1, t2; | |
879 if ($globalState.isWorker !== true) | |
880 this._runHelper$0(); | |
881 else | |
882 try { | |
883 this._runHelper$0(); | |
884 } catch (exception) { | |
885 t1 = H.unwrapException(exception); | |
886 e = t1; | |
887 trace = new H._StackTrace(exception, null); | |
888 t1 = $globalState.mainManager; | |
889 t2 = H._serializeMessage(H.fillLiteralMap(["command", "error", "msg", H.
S(e) + "\n" + H.S(trace)], P.LinkedHashMap_LinkedHashMap(null, null, null, null,
null))); | |
890 t1.toString; | |
891 self.postMessage(t2); | |
892 } | |
893 | |
894 } | |
895 }, | |
896 | |
897 _EventLoop__runHelper_next: {"": "Closure;this_0", | |
898 call$0: function() { | |
899 if (!this.this_0.runIteration$0()) | |
900 return; | |
901 P.Timer_Timer(C.Duration_0, this); | |
902 } | |
903 }, | |
904 | |
905 _IsolateEvent: {"": "Object;isolate,fn,message", | |
906 process$0: function() { | |
907 this.isolate.eval$1(this.fn); | |
908 } | |
909 }, | |
910 | |
911 _MainManagerStub: {"": "Object;"}, | |
912 | |
913 IsolateNatives__processWorkerMessage_closure: {"": "Closure;entryPoint_0,args_1,
message_2,isSpawnUri_3,replyTo_4", | |
914 call$0: function() { | |
915 H.IsolateNatives__startIsolate(this.entryPoint_0, this.args_1, this.message_
2, this.isSpawnUri_3, this.replyTo_4); | |
916 } | |
917 }, | |
918 | |
919 _BaseSendPort: {"": "Object;", $isSendPort: true}, | |
920 | |
921 _NativeJsSendPort: {"": "_BaseSendPort;_receivePort,_isolateId", | |
922 send$2: function(message, replyTo) { | |
923 H._waitForPendingPorts(message, new H._NativeJsSendPort_send_closure(this, m
essage)); | |
924 }, | |
925 send$1: function(message) { | |
926 return this.send$2(message, null); | |
927 }, | |
928 $eq: function(_, other) { | |
929 var t1; | |
930 if (other == null) | |
931 return false; | |
932 t1 = J.getInterceptor(other); | |
933 return typeof other === "object" && other !== null && !!t1.$is_NativeJsSendP
ort && J.$eq(this._receivePort, other._receivePort); | |
934 }, | |
935 get$hashCode: function(_) { | |
936 return this._receivePort.get$_id(); | |
937 }, | |
938 $is_NativeJsSendPort: true, | |
939 $isSendPort: true | |
940 }, | |
941 | |
942 _NativeJsSendPort_send_closure: {"": "Closure;this_1,message_2", | |
943 call$0: function() { | |
944 var t1, t2, t3, t4, isolate, shouldSerialize, msg; | |
945 t1 = {}; | |
946 t2 = $globalState.isolates; | |
947 t3 = this.this_1; | |
948 t4 = t3._isolateId; | |
949 isolate = t2.$index(t2, t4); | |
950 if (isolate == null) | |
951 return; | |
952 if ((t3._receivePort.get$_controller()._state & 4) !== 0) | |
953 return; | |
954 shouldSerialize = $globalState.currentContext != null && $globalState.curren
tContext.id !== t4; | |
955 msg = this.message_2; | |
956 t1.msg_0 = msg; | |
957 if (shouldSerialize) | |
958 t1.msg_0 = H._serializeMessage(t1.msg_0); | |
959 t2 = $globalState.topEventLoop; | |
960 t4 = "receive " + H.S(msg); | |
961 t2.events._add$1(new H._IsolateEvent(isolate, new H._NativeJsSendPort_send__
closure(t1, t3, shouldSerialize), t4)); | |
962 } | |
963 }, | |
964 | |
965 _NativeJsSendPort_send__closure: {"": "Closure;box_0,this_3,shouldSerialize_4", | |
966 call$0: function() { | |
967 var t1, t2; | |
968 t1 = this.this_3._receivePort; | |
969 if ((t1.get$_controller()._state & 4) === 0) { | |
970 if (this.shouldSerialize_4) { | |
971 t2 = this.box_0; | |
972 t2.msg_0 = H._deserializeMessage(t2.msg_0); | |
973 } | |
974 t1 = t1.get$_controller(); | |
975 t2 = this.box_0.msg_0; | |
976 if (t1._state >= 4) | |
977 H.throwExpression(t1._badEventState$0()); | |
978 t1._async$_add$1(t2); | |
979 } | 3155 } |
980 } | 3156 } |
981 }, | 3157 var s = Object.prototype.toString.call(o); |
| 3158 return s.substring(8, s.length - 1); |
| 3159 } |
| 3160 C.XQ=function(hooks) { return hooks; } |
982 | 3161 |
983 _WorkerSendPort: {"": "_BaseSendPort;_workerId,_receivePortId,_isolateId", | 3162 C.ur=function(getTagFallback) { |
984 send$2: function(message, replyTo) { | 3163 return function(hooks) { |
985 H._waitForPendingPorts(message, new H._WorkerSendPort_send_closure(this, mes
sage)); | 3164 if (typeof navigator != "object") return hooks; |
986 }, | 3165 var ua = navigator.userAgent; |
987 send$1: function(message) { | 3166 if (ua.indexOf("DumpRenderTree") >= 0) return hooks; |
988 return this.send$2(message, null); | 3167 if (ua.indexOf("Chrome") >= 0) { |
989 }, | 3168 function confirm(p) { |
990 $eq: function(_, other) { | 3169 return typeof window == "object" && window[p] && window[p].name == p; |
991 var t1; | 3170 } |
992 if (other == null) | 3171 if (confirm("Window") && confirm("HTMLElement")) return hooks; |
993 return false; | 3172 } |
994 t1 = J.getInterceptor(other); | 3173 hooks.getTag = getTagFallback; |
995 if (typeof other === "object" && other !== null && !!t1.$is_WorkerSendPort) | 3174 }; |
996 t1 = J.$eq(this._workerId, other._workerId) && J.$eq(this._isolateId, othe
r._isolateId) && J.$eq(this._receivePortId, other._receivePortId); | 3175 } |
997 else | 3176 C.MA=function() { |
998 t1 = false; | 3177 function typeNameInChrome(o) { |
999 return t1; | 3178 var name = o.constructor.name; |
1000 }, | 3179 if (name) return name; |
1001 get$hashCode: function(_) { | 3180 var s = Object.prototype.toString.call(o); |
1002 var t1, t2, t3; | 3181 return s.substring(8, s.length - 1); |
1003 t1 = this._workerId; | 3182 } |
1004 if (typeof t1 !== "number") | 3183 function getUnknownTag(object, tag) { |
1005 throw t1.$shl(); | 3184 if (/^HTML[A-Z].*Element$/.test(tag)) { |
1006 t2 = this._isolateId; | 3185 var name = Object.prototype.toString.call(object); |
1007 if (typeof t2 !== "number") | 3186 if (name == "[object Object]") return null; |
1008 throw t2.$shl(); | 3187 return "HTMLElement"; |
1009 t3 = this._receivePortId; | |
1010 if (typeof t3 !== "number") | |
1011 throw H.iae(t3); | |
1012 return (t1 << 16 ^ t2 << 8 ^ t3) >>> 0; | |
1013 }, | |
1014 $is_WorkerSendPort: true, | |
1015 $isSendPort: true | |
1016 }, | |
1017 | |
1018 _WorkerSendPort_send_closure: {"": "Closure;this_0,message_1", | |
1019 call$0: function() { | |
1020 var t1, workerMessage, t2, manager; | |
1021 t1 = this.this_0; | |
1022 workerMessage = H._serializeMessage(H.fillLiteralMap(["command", "message",
"port", t1, "msg", this.message_1], P.LinkedHashMap_LinkedHashMap(null, null, nu
ll, null, null))); | |
1023 if ($globalState.isWorker === true) { | |
1024 $globalState.mainManager.toString; | |
1025 self.postMessage(workerMessage); | |
1026 } else { | |
1027 t2 = $globalState.managers; | |
1028 manager = t2.$index(t2, t1._workerId); | |
1029 if (manager != null) | |
1030 manager.postMessage(workerMessage); | |
1031 } | 3188 } |
1032 } | 3189 } |
1033 }, | 3190 function getUnknownTagGenericBrowser(object, tag) { |
| 3191 if (object instanceof HTMLElement) return "HTMLElement"; |
| 3192 return getUnknownTag(object, tag); |
| 3193 } |
| 3194 function prototypeForTag(tag) { |
| 3195 if (typeof window == "undefined") return null; |
| 3196 if (typeof window[tag] == "undefined") return null; |
| 3197 var constructor = window[tag]; |
| 3198 if (typeof constructor != "function") return null; |
| 3199 return constructor.prototype; |
| 3200 } |
| 3201 function discriminator(tag) { return null; } |
| 3202 var isBrowser = typeof navigator == "object"; |
| 3203 return { |
| 3204 getTag: typeNameInChrome, |
| 3205 getUnknownTag: isBrowser ? getUnknownTagGenericBrowser : getUnknownTag, |
| 3206 prototypeForTag: prototypeForTag, |
| 3207 discriminator: discriminator }; |
| 3208 } |
| 3209 C.M1=function(hooks) { |
| 3210 var userAgent = typeof navigator == "object" ? navigator.userAgent : ""; |
| 3211 if (userAgent.indexOf("Trident/") == -1) return hooks; |
| 3212 var getTag = hooks.getTag; |
| 3213 var quickMap = { |
| 3214 "BeforeUnloadEvent": "Event", |
| 3215 "DataTransfer": "Clipboard", |
| 3216 "HTMLDDElement": "HTMLElement", |
| 3217 "HTMLDTElement": "HTMLElement", |
| 3218 "HTMLPhraseElement": "HTMLElement", |
| 3219 "Position": "Geoposition" |
| 3220 }; |
| 3221 function getTagIE(o) { |
| 3222 var tag = getTag(o); |
| 3223 var newTag = quickMap[tag]; |
| 3224 if (newTag) return newTag; |
| 3225 if (tag == "Object") { |
| 3226 if (window.DataView && (o instanceof window.DataView)) return "DataView"; |
| 3227 } |
| 3228 return tag; |
| 3229 } |
| 3230 function prototypeForTagIE(tag) { |
| 3231 var constructor = window[tag]; |
| 3232 if (constructor == null) return null; |
| 3233 return constructor.prototype; |
| 3234 } |
| 3235 hooks.getTag = getTagIE; |
| 3236 hooks.prototypeForTag = prototypeForTagIE; |
| 3237 } |
| 3238 C.hQ=function(hooks) { |
| 3239 var getTag = hooks.getTag; |
| 3240 var prototypeForTag = hooks.prototypeForTag; |
| 3241 function getTagFixed(o) { |
| 3242 var tag = getTag(o); |
| 3243 if (tag == "Document") { |
| 3244 if (!!o.xmlVersion) return "!Document"; |
| 3245 return "!HTMLDocument"; |
| 3246 } |
| 3247 return tag; |
| 3248 } |
| 3249 function prototypeForTagFixed(tag) { |
| 3250 if (tag == "Document") return null; |
| 3251 return prototypeForTag(tag); |
| 3252 } |
| 3253 hooks.getTag = getTagFixed; |
| 3254 hooks.prototypeForTag = prototypeForTagFixed; |
| 3255 } |
| 3256 C.xr=new P.by(null,null) |
| 3257 C.A3=new P.QM(null) |
| 3258 $.libraries_to_load = {} |
| 3259 $.te="$cachedFunction" |
| 3260 $.eb="$cachedInvocation" |
| 3261 $.yj=0 |
| 3262 $.mJ=null |
| 3263 $.P4=null |
| 3264 $.lc=!1 |
| 3265 $.NF=null |
| 3266 $.TX=null |
| 3267 $.x7=null |
| 3268 $.nw=null |
| 3269 $.vv=null |
| 3270 $.Bv=null |
| 3271 $.oK=null |
| 3272 $.S6=null |
| 3273 $.k8=null |
| 3274 $.X3=C.NU |
| 3275 $.Ss=0 |
| 3276 $.Qz=null |
| 3277 $.PN=null |
| 3278 $.Tn=null |
| 3279 I.$lazy($,"globalThis","DX","jk",function(){return function(){return this}()}) |
| 3280 I.$lazy($,"globalWindow","cO","C5",function(){return $.jk().window}) |
| 3281 I.$lazy($,"globalWorker","u9","vy",function(){return $.jk().Worker}) |
| 3282 I.$lazy($,"globalPostMessageDefined","Wd","Iz",function(){return $.jk().postMess
age!==void 0}) |
| 3283 I.$lazy($,"thisScript","Kb","Rs",function(){return H.Td()}) |
| 3284 I.$lazy($,"workerIds","rS","p6",function(){return new P.qo(null)}) |
| 3285 I.$lazy($,"noSuchMethodPattern","lm","WD",function(){return H.cM(H.S7({toString:
function(){return"$receiver$"}}))}) |
| 3286 I.$lazy($,"notClosurePattern","k1","OI",function(){return H.cM(H.S7({$method$:nu
ll,toString:function(){return"$receiver$"}}))}) |
| 3287 I.$lazy($,"nullCallPattern","Re","PH",function(){return H.cM(H.S7(null))}) |
| 3288 I.$lazy($,"nullLiteralCallPattern","fN","D1",function(){return H.cM(function(){v
ar $argumentsExpr$='$arguments$' |
| 3289 try{null.$method$($argumentsExpr$)}catch(z){return z.message}}())}) |
| 3290 I.$lazy($,"undefinedCallPattern","qi","rx",function(){return H.cM(H.S7(void 0))}
) |
| 3291 I.$lazy($,"undefinedLiteralCallPattern","rZ","Y9",function(){return H.cM(functio
n(){var $argumentsExpr$='$arguments$' |
| 3292 try{(void 0).$method$($argumentsExpr$)}catch(z){return z.message}}())}) |
| 3293 I.$lazy($,"nullPropertyPattern","BX","zO",function(){return H.cM(H.Mj(null))}) |
| 3294 I.$lazy($,"nullLiteralPropertyPattern","kM","Pv",function(){return H.cM(function
(){try{null.$method$}catch(z){return z.message}}())}) |
| 3295 I.$lazy($,"undefinedPropertyPattern","dt","eA",function(){return H.cM(H.Mj(void
0))}) |
| 3296 I.$lazy($,"undefinedLiteralPropertyPattern","A7","ko",function(){return H.cM(fun
ction(){try{(void 0).$method$}catch(z){return z.message}}())}) |
| 3297 I.$lazy($,"_toStringList","Ml","RM",function(){return[]}) |
| 3298 I.$lazy($,"scheduleImmediateClosure","lI","ej",function(){return P.Oj()}) |
| 3299 I.$lazy($,"_toStringVisiting","xg","xb",function(){return P.yv(null)}) |
| 3300 I.$lazy($,"_toStringList","yu","tw",function(){return[]}) |
| 3301 I.$lazy($,"indexGen","dy","VY",function(){return C.pr}) |
| 3302 I.$lazy($,"names","XR","Ck",function(){return["Anne","Mary","Jack","Morgan","Rog
er","Bill","Ragnar","Ed","John","Jane"]}) |
| 3303 I.$lazy($,"appellations","mT","eg",function(){return["Jackal","King","Red","Stal
wart","Axe","Young","Brave","Eager","Wily","Zesty"]}) |
1034 | 3304 |
1035 ReceivePortImpl: {"": "Stream;_id<,_controller<", | 3305 init.functionAliases={} |
1036 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { | 3306 init.metadata=[{func:"n9",void:true,args:[{func:"X0",void:true}]},{func:"X0",voi
d:true},{func:"Gl",ret:P.a2,args:[null,null]},{func:"bX",ret:P.KN,args:[null]},{
func:"E0",ret:P.a2,args:[P.a,P.a]},{func:"ZY",ret:P.KN,args:[P.a]},{func:"WW",vo
id:true,args:[W.ea]},{func:"NT"},{func:"bh",args:[null,null]},{func:"aB",args:[n
ull]},{func:"TS",args:[null,P.qU]},{func:"uO",args:[P.qU]},{func:"Vx",void:true,
args:[null],opt:[P.mE]},,{func:"BG",args:[null],opt:[null]},{func:"Uf",ret:P.a2}
,{func:"bb",args:[null,P.mE]},{func:"lv",args:[P.wv,null]},{func:"Pt",ret:P.qU,a
rgs:[P.KN]},];$=null |
1037 var t1 = this._controller; | 3307 I = I.$finishIsolateConstructor(I) |
1038 t1.toString; | 3308 $=new I() |
1039 t1 = new P._ControllerStream(t1); | |
1040 H.setRuntimeTypeInfo(t1, [null]); | |
1041 return t1.listen$4$cancelOnError$onDone$onError(onData, cancelOnError, onDon
e, onError); | |
1042 }, | |
1043 close$0: function(_) { | |
1044 var t1 = this._controller; | |
1045 if ((t1._state & 4) !== 0) | |
1046 return; | |
1047 t1.close$0(t1); | |
1048 $globalState.currentContext.unregister$1(this._id); | |
1049 }, | |
1050 get$close: function(_receiver) { | |
1051 return new H.BoundClosure$i0(this, H.ReceivePortImpl.prototype.close$0, _rec
eiver, "close$0"); | |
1052 }, | |
1053 ReceivePortImpl$0: function() { | |
1054 this._controller = P.StreamController_StreamController(this.get$close(this),
null, null, null, true, null); | |
1055 var t1 = $globalState.currentContext; | |
1056 t1.register$2(t1, this._id, this); | |
1057 }, | |
1058 static: { | |
1059 "": "ReceivePortImpl__nextFreeId", | |
1060 ReceivePortImpl$: function() { | |
1061 var t1 = $.ReceivePortImpl__nextFreeId; | |
1062 $.ReceivePortImpl__nextFreeId = t1 + 1; | |
1063 t1 = new H.ReceivePortImpl(t1, null); | |
1064 t1.ReceivePortImpl$0(); | |
1065 return t1; | |
1066 }} | |
1067 | |
1068 }, | |
1069 | |
1070 _waitForPendingPorts_closure: {"": "Closure;callback_0", | |
1071 call$1: function(_) { | |
1072 return this.callback_0.call$0(); | |
1073 }, | |
1074 $is_args1: true | |
1075 }, | |
1076 | |
1077 _PendingSendPortFinder: {"": "_MessageTraverser;ports,_visited", | |
1078 visitPrimitive$1: function(x) { | |
1079 }, | |
1080 visitList$1: function(list) { | |
1081 var t1 = this._visited; | |
1082 if (t1.$index(t1, list) != null) | |
1083 return; | |
1084 t1 = this._visited; | |
1085 t1.$indexSet(t1, list, true); | |
1086 J.forEach$1$ax(list, this.get$_dispatch()); | |
1087 }, | |
1088 visitMap$1: function(map) { | |
1089 var t1 = this._visited; | |
1090 if (t1.$index(t1, map) != null) | |
1091 return; | |
1092 t1 = this._visited; | |
1093 t1.$indexSet(t1, map, true); | |
1094 J.forEach$1$ax(J.get$values$x(map), this.get$_dispatch()); | |
1095 }, | |
1096 visitSendPort$1: function(port) { | |
1097 }, | |
1098 _PendingSendPortFinder$0: function() { | |
1099 this._visited = new H._JsVisitedMap(null); | |
1100 }, | |
1101 static: { | |
1102 _PendingSendPortFinder$: function() { | |
1103 var t1 = new H._PendingSendPortFinder([], new H._MessageTraverserVisitedMap())
; | |
1104 t1._PendingSendPortFinder$0(); | |
1105 return t1; | |
1106 }} | |
1107 | |
1108 }, | |
1109 | |
1110 _JsSerializer: {"": "_Serializer;_nextFreeRefId,_visited", | |
1111 visitSendPort$1: function(x) { | |
1112 if (!!x.$is_NativeJsSendPort) | |
1113 return ["sendport", $globalState.currentManagerId, x._isolateId, x._receiv
ePort.get$_id()]; | |
1114 if (!!x.$is_WorkerSendPort) | |
1115 return ["sendport", x._workerId, x._isolateId, x._receivePortId]; | |
1116 throw H.wrapException("Illegal underlying port " + H.S(x)); | |
1117 } | |
1118 }, | |
1119 | |
1120 _JsCopier: {"": "_Copier;_visited", | |
1121 visitSendPort$1: function(x) { | |
1122 if (!!x.$is_NativeJsSendPort) | |
1123 return new H._NativeJsSendPort(x._receivePort, x._isolateId); | |
1124 if (!!x.$is_WorkerSendPort) | |
1125 return new H._WorkerSendPort(x._workerId, x._receivePortId, x._isolateId); | |
1126 throw H.wrapException("Illegal underlying port " + H.S(x)); | |
1127 } | |
1128 }, | |
1129 | |
1130 _JsDeserializer: {"": "_Deserializer;_deserialized", | |
1131 deserializeSendPort$1: function(list) { | |
1132 var t1, managerId, isolateId, receivePortId, isolate, receivePort; | |
1133 t1 = J.getInterceptor$asx(list); | |
1134 managerId = t1.$index(list, 1); | |
1135 isolateId = t1.$index(list, 2); | |
1136 receivePortId = t1.$index(list, 3); | |
1137 if (J.$eq(managerId, $globalState.currentManagerId)) { | |
1138 t1 = $globalState.isolates; | |
1139 isolate = t1.$index(t1, isolateId); | |
1140 if (isolate == null) | |
1141 return; | |
1142 receivePort = isolate.lookup$1(receivePortId); | |
1143 if (receivePort == null) | |
1144 return; | |
1145 return new H._NativeJsSendPort(receivePort, isolateId); | |
1146 } else | |
1147 return new H._WorkerSendPort(managerId, receivePortId, isolateId); | |
1148 } | |
1149 }, | |
1150 | |
1151 _JsVisitedMap: {"": "Object;tagged", | |
1152 $index: function(_, object) { | |
1153 return object.__MessageTraverser__attached_info__; | |
1154 }, | |
1155 $indexSet: function(_, object, info) { | |
1156 this.tagged.push(object); | |
1157 object.__MessageTraverser__attached_info__ = info; | |
1158 }, | |
1159 reset$0: function(_) { | |
1160 this.tagged = P.List_List(null, null); | |
1161 }, | |
1162 cleanup$0: function() { | |
1163 var $length, i, t1; | |
1164 for ($length = this.tagged.length, i = 0; i < $length; ++i) { | |
1165 t1 = this.tagged; | |
1166 if (i >= t1.length) | |
1167 throw H.ioore(t1, i); | |
1168 t1[i].__MessageTraverser__attached_info__ = null; | |
1169 } | |
1170 this.tagged = null; | |
1171 } | |
1172 }, | |
1173 | |
1174 _MessageTraverserVisitedMap: {"": "Object;", | |
1175 $index: function(_, object) { | |
1176 return; | |
1177 }, | |
1178 $indexSet: function(_, object, info) { | |
1179 }, | |
1180 reset$0: function(_) { | |
1181 }, | |
1182 cleanup$0: function() { | |
1183 } | |
1184 }, | |
1185 | |
1186 _MessageTraverser: {"": "Object;", | |
1187 traverse$1: function(x) { | |
1188 var result, t1; | |
1189 if (H._MessageTraverser_isPrimitive(x)) | |
1190 return this.visitPrimitive$1(x); | |
1191 t1 = this._visited; | |
1192 t1.reset$0(t1); | |
1193 result = null; | |
1194 try { | |
1195 result = this._dispatch$1(x); | |
1196 } finally { | |
1197 this._visited.cleanup$0(); | |
1198 } | |
1199 return result; | |
1200 }, | |
1201 _dispatch$1: function(x) { | |
1202 var t1; | |
1203 if (x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean") | |
1204 return this.visitPrimitive$1(x); | |
1205 t1 = J.getInterceptor(x); | |
1206 if (typeof x === "object" && x !== null && (x.constructor === Array || !!t1.
$isList)) | |
1207 return this.visitList$1(x); | |
1208 if (typeof x === "object" && x !== null && !!t1.$isMap) | |
1209 return this.visitMap$1(x); | |
1210 if (typeof x === "object" && x !== null && !!t1.$isSendPort) | |
1211 return this.visitSendPort$1(x); | |
1212 return this.visitObject$1(x); | |
1213 }, | |
1214 get$_dispatch: function() { | |
1215 return new H.BoundClosure$1(this, H._MessageTraverser.prototype._dispatch$1,
null, "_dispatch$1"); | |
1216 }, | |
1217 visitObject$1: function(x) { | |
1218 throw H.wrapException("Message serialization: Illegal value " + H.S(x) + " p
assed"); | |
1219 } | |
1220 }, | |
1221 | |
1222 _Copier: {"": "_MessageTraverser;", | |
1223 visitPrimitive$1: function(x) { | |
1224 return x; | |
1225 }, | |
1226 visitList$1: function(list) { | |
1227 var t1, copy, len, t2, i, t3; | |
1228 t1 = this._visited; | |
1229 copy = t1.$index(t1, list); | |
1230 if (copy != null) | |
1231 return copy; | |
1232 t1 = J.getInterceptor$asx(list); | |
1233 len = t1.get$length(list); | |
1234 copy = P.List_List(len, null); | |
1235 t2 = this._visited; | |
1236 t2.$indexSet(t2, list, copy); | |
1237 for (t2 = copy.length, i = 0; i < len; ++i) { | |
1238 t3 = this._dispatch$1(t1.$index(list, i)); | |
1239 if (i >= t2) | |
1240 throw H.ioore(copy, i); | |
1241 copy[i] = t3; | |
1242 } | |
1243 return copy; | |
1244 }, | |
1245 visitMap$1: function(map) { | |
1246 var t1, t2; | |
1247 t1 = {}; | |
1248 t2 = this._visited; | |
1249 t1.copy_0 = t2.$index(t2, map); | |
1250 t2 = t1.copy_0; | |
1251 if (t2 != null) | |
1252 return t2; | |
1253 t1.copy_0 = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null); | |
1254 t2 = this._visited; | |
1255 t2.$indexSet(t2, map, t1.copy_0); | |
1256 J.forEach$1$ax(map, new H._Copier_visitMap_closure(t1, this)); | |
1257 return t1.copy_0; | |
1258 } | |
1259 }, | |
1260 | |
1261 _Copier_visitMap_closure: {"": "Closure;box_0,this_1", | |
1262 call$2: function(key, val) { | |
1263 var t1 = this.this_1; | |
1264 J.$indexSet$ax(this.box_0.copy_0, t1._dispatch$1(key), t1._dispatch$1(val)); | |
1265 }, | |
1266 $is_args2: true | |
1267 }, | |
1268 | |
1269 _Serializer: {"": "_MessageTraverser;", | |
1270 visitPrimitive$1: function(x) { | |
1271 return x; | |
1272 }, | |
1273 visitList$1: function(list) { | |
1274 var t1, copyId, id; | |
1275 t1 = this._visited; | |
1276 copyId = t1.$index(t1, list); | |
1277 if (copyId != null) | |
1278 return ["ref", copyId]; | |
1279 id = this._nextFreeRefId; | |
1280 this._nextFreeRefId = id + 1; | |
1281 t1 = this._visited; | |
1282 t1.$indexSet(t1, list, id); | |
1283 return ["list", id, this._serializeList$1(list)]; | |
1284 }, | |
1285 visitMap$1: function(map) { | |
1286 var t1, copyId, id; | |
1287 t1 = this._visited; | |
1288 copyId = t1.$index(t1, map); | |
1289 if (copyId != null) | |
1290 return ["ref", copyId]; | |
1291 id = this._nextFreeRefId; | |
1292 this._nextFreeRefId = id + 1; | |
1293 t1 = this._visited; | |
1294 t1.$indexSet(t1, map, id); | |
1295 t1 = J.getInterceptor$x(map); | |
1296 return ["map", id, this._serializeList$1(J.toList$0$ax(t1.get$keys(map))), t
his._serializeList$1(J.toList$0$ax(t1.get$values(map)))]; | |
1297 }, | |
1298 _serializeList$1: function(list) { | |
1299 var t1, len, result, t2, i, t3; | |
1300 t1 = J.getInterceptor$asx(list); | |
1301 len = t1.get$length(list); | |
1302 result = P.List_List(len, null); | |
1303 for (t2 = result.length, i = 0; i < len; ++i) { | |
1304 t3 = this._dispatch$1(t1.$index(list, i)); | |
1305 if (i >= t2) | |
1306 throw H.ioore(result, i); | |
1307 result[i] = t3; | |
1308 } | |
1309 return result; | |
1310 } | |
1311 }, | |
1312 | |
1313 _Deserializer: {"": "Object;", | |
1314 deserialize$1: function(x) { | |
1315 if (H._Deserializer_isPrimitive(x)) | |
1316 return x; | |
1317 this._deserialized = P.HashMap_HashMap(null, null, null, null, null); | |
1318 return this._deserializeHelper$1(x); | |
1319 }, | |
1320 _deserializeHelper$1: function(x) { | |
1321 var t1, id; | |
1322 if (x == null || typeof x === "string" || typeof x === "number" || typeof x
=== "boolean") | |
1323 return x; | |
1324 t1 = J.getInterceptor$asx(x); | |
1325 switch (t1.$index(x, 0)) { | |
1326 case "ref": | |
1327 id = t1.$index(x, 1); | |
1328 t1 = this._deserialized; | |
1329 return t1.$index(t1, id); | |
1330 case "list": | |
1331 return this._deserializeList$1(x); | |
1332 case "map": | |
1333 return this._deserializeMap$1(x); | |
1334 case "sendport": | |
1335 return this.deserializeSendPort$1(x); | |
1336 default: | |
1337 return this.deserializeObject$1(x); | |
1338 } | |
1339 }, | |
1340 _deserializeList$1: function(x) { | |
1341 var t1, id, dartList, len, i; | |
1342 t1 = J.getInterceptor$asx(x); | |
1343 id = t1.$index(x, 1); | |
1344 dartList = t1.$index(x, 2); | |
1345 t1 = this._deserialized; | |
1346 t1.$indexSet(t1, id, dartList); | |
1347 t1 = J.getInterceptor$asx(dartList); | |
1348 len = t1.get$length(dartList); | |
1349 if (typeof len !== "number") | |
1350 throw H.iae(len); | |
1351 i = 0; | |
1352 for (; i < len; ++i) | |
1353 t1.$indexSet(dartList, i, this._deserializeHelper$1(t1.$index(dartList, i)
)); | |
1354 return dartList; | |
1355 }, | |
1356 _deserializeMap$1: function(x) { | |
1357 var result, t1, id, t2, keys, values, len, i; | |
1358 result = P.LinkedHashMap_LinkedHashMap(null, null, null, null, null); | |
1359 t1 = J.getInterceptor$asx(x); | |
1360 id = t1.$index(x, 1); | |
1361 t2 = this._deserialized; | |
1362 t2.$indexSet(t2, id, result); | |
1363 keys = t1.$index(x, 2); | |
1364 values = t1.$index(x, 3); | |
1365 t1 = J.getInterceptor$asx(keys); | |
1366 len = t1.get$length(keys); | |
1367 if (typeof len !== "number") | |
1368 throw H.iae(len); | |
1369 t2 = J.getInterceptor$asx(values); | |
1370 i = 0; | |
1371 for (; i < len; ++i) | |
1372 result.$indexSet(result, this._deserializeHelper$1(t1.$index(keys, i)), th
is._deserializeHelper$1(t2.$index(values, i))); | |
1373 return result; | |
1374 }, | |
1375 deserializeObject$1: function(x) { | |
1376 throw H.wrapException("Unexpected serialized object"); | |
1377 } | |
1378 }, | |
1379 | |
1380 TimerImpl: {"": "Object;_once,_inEventLoop,_handle", | |
1381 TimerImpl$2: function(milliseconds, callback) { | |
1382 var t1, t2; | |
1383 if (milliseconds === 0) | |
1384 t1 = $.get$globalThis().setTimeout == null || $globalState.isWorker === tr
ue; | |
1385 else | |
1386 t1 = false; | |
1387 if (t1) { | |
1388 this._handle = 1; | |
1389 t1 = $globalState.topEventLoop; | |
1390 t2 = $globalState.currentContext; | |
1391 t1.events._add$1(new H._IsolateEvent(t2, new H.TimerImpl_internalCallback(
this, callback), "timer")); | |
1392 this._inEventLoop = true; | |
1393 } else if ($.get$globalThis().setTimeout != null) { | |
1394 t1 = $globalState.topEventLoop; | |
1395 t1.activeTimerCount = t1.activeTimerCount + 1; | |
1396 this._handle = $.get$globalThis().setTimeout(H.convertDartClosureToJS(new
H.TimerImpl_internalCallback0(this, callback), 0), milliseconds); | |
1397 } else | |
1398 throw H.wrapException(P.UnsupportedError$("Timer greater than 0.")); | |
1399 }, | |
1400 static: { | |
1401 TimerImpl$: function(milliseconds, callback) { | |
1402 var t1 = new H.TimerImpl(true, false, null); | |
1403 t1.TimerImpl$2(milliseconds, callback); | |
1404 return t1; | |
1405 }} | |
1406 | |
1407 }, | |
1408 | |
1409 TimerImpl_internalCallback: {"": "Closure;this_0,callback_1", | |
1410 call$0: function() { | |
1411 this.this_0._handle = null; | |
1412 this.callback_1.call$0(); | |
1413 } | |
1414 }, | |
1415 | |
1416 TimerImpl_internalCallback0: {"": "Closure;this_2,callback_3", | |
1417 call$0: function() { | |
1418 this.this_2._handle = null; | |
1419 var t1 = $globalState.topEventLoop; | |
1420 t1.activeTimerCount = t1.activeTimerCount - 1; | |
1421 this.callback_3.call$0(); | |
1422 } | |
1423 }}], | |
1424 ["_js_helper", "dart:_js_helper", , H, { | |
1425 isJsIndexable: function(object, record) { | |
1426 var result, t1; | |
1427 if (record != null) { | |
1428 result = record.x; | |
1429 if (result != null) | |
1430 return result; | |
1431 } | |
1432 t1 = J.getInterceptor(object); | |
1433 return typeof object === "object" && object !== null && !!t1.$isJavaScriptInde
xingBehavior; | |
1434 }, | |
1435 | |
1436 S: function(value) { | |
1437 var res; | |
1438 if (typeof value === "string") | |
1439 return value; | |
1440 if (typeof value === "number") { | |
1441 if (value !== 0) | |
1442 return "" + value; | |
1443 } else if (true === value) | |
1444 return "true"; | |
1445 else if (false === value) | |
1446 return "false"; | |
1447 else if (value == null) | |
1448 return "null"; | |
1449 res = J.toString$0(value); | |
1450 if (typeof res !== "string") | |
1451 throw H.wrapException(P.ArgumentError$(value)); | |
1452 return res; | |
1453 }, | |
1454 | |
1455 Primitives_initializeStatics: function(id) { | |
1456 $.Primitives_mirrorFunctionCacheName = $.Primitives_mirrorFunctionCacheName +
("_" + H.S(id)); | |
1457 $.Primitives_mirrorInvokeCacheName = $.Primitives_mirrorInvokeCacheName + ("_"
+ H.S(id)); | |
1458 }, | |
1459 | |
1460 Primitives_objectHashCode: function(object) { | |
1461 var hash = object.$identityHash; | |
1462 if (hash == null) { | |
1463 hash = Math.random() * 0x3fffffff | 0; | |
1464 object.$identityHash = hash; | |
1465 } | |
1466 return hash; | |
1467 }, | |
1468 | |
1469 Primitives_objectTypeName: function(object) { | |
1470 var $name, decompiled, t1; | |
1471 $name = H.constructorNameFallback(J.getInterceptor(object)); | |
1472 if (J.$eq($name, "Object")) { | |
1473 decompiled = String(object.constructor).match(/^\s*function\s*(\S*)\s*\(/)[1
]; | |
1474 if (typeof decompiled === "string") | |
1475 $name = decompiled; | |
1476 } | |
1477 t1 = J.getInterceptor$s($name); | |
1478 if (t1.codeUnitAt$1($name, 0) === 36) | |
1479 $name = t1.substring$1($name, 1); | |
1480 t1 = H.getRuntimeTypeInfo(object); | |
1481 return H.S($name) + H.joinArguments(t1, 0); | |
1482 }, | |
1483 | |
1484 Primitives_objectToString: function(object) { | |
1485 return "Instance of '" + H.Primitives_objectTypeName(object) + "'"; | |
1486 }, | |
1487 | |
1488 Primitives_newFixedList: function($length) { | |
1489 var result = new Array($length); | |
1490 result.fixed$length = true; | |
1491 return result; | |
1492 }, | |
1493 | |
1494 Primitives__fromCharCodeApply: function(array) { | |
1495 var end, t1, result, i, subarray, t2; | |
1496 end = array.length; | |
1497 for (t1 = end <= 500, result = "", i = 0; i < end; i += 500) { | |
1498 if (t1) | |
1499 subarray = array; | |
1500 else { | |
1501 t2 = i + 500; | |
1502 t2 = t2 < end ? t2 : end; | |
1503 subarray = array.slice(i, t2); | |
1504 } | |
1505 result += String.fromCharCode.apply(null, subarray); | |
1506 } | |
1507 return result; | |
1508 }, | |
1509 | |
1510 Primitives_stringFromCodePoints: function(codePoints) { | |
1511 var a, t1, i; | |
1512 a = []; | |
1513 for (t1 = new H.ListIterator(codePoints, codePoints.length, 0, null); t1.moveN
ext$0();) { | |
1514 i = t1._current; | |
1515 if (typeof i !== "number" || Math.floor(i) !== i) | |
1516 throw H.wrapException(new P.ArgumentError(i)); | |
1517 if (i <= 65535) | |
1518 a.push(i); | |
1519 else if (i <= 1114111) { | |
1520 a.push(55296 + (C.JSInt_methods.$shr(i - 65536, 10) & 1023)); | |
1521 a.push(56320 + (i & 1023)); | |
1522 } else | |
1523 throw H.wrapException(new P.ArgumentError(i)); | |
1524 } | |
1525 return H.Primitives__fromCharCodeApply(a); | |
1526 }, | |
1527 | |
1528 Primitives_stringFromCharCodes: function(charCodes) { | |
1529 var t1, i; | |
1530 for (t1 = new H.ListIterator(charCodes, charCodes.length, 0, null); t1.moveNex
t$0();) { | |
1531 i = t1._current; | |
1532 if (typeof i !== "number" || Math.floor(i) !== i) | |
1533 throw H.wrapException(new P.ArgumentError(i)); | |
1534 if (i < 0) | |
1535 throw H.wrapException(new P.ArgumentError(i)); | |
1536 if (i > 65535) | |
1537 return H.Primitives_stringFromCodePoints(charCodes); | |
1538 } | |
1539 return H.Primitives__fromCharCodeApply(charCodes); | |
1540 }, | |
1541 | |
1542 Primitives_getProperty: function(object, key) { | |
1543 if (object == null || typeof object === "boolean" || typeof object === "number
" || typeof object === "string") | |
1544 throw H.wrapException(new P.ArgumentError(object)); | |
1545 return object[key]; | |
1546 }, | |
1547 | |
1548 Primitives_setProperty: function(object, key, value) { | |
1549 if (object == null || typeof object === "boolean" || typeof object === "number
" || typeof object === "string") | |
1550 throw H.wrapException(new P.ArgumentError(object)); | |
1551 object[key] = value; | |
1552 }, | |
1553 | |
1554 iae: function(argument) { | |
1555 throw H.wrapException(P.ArgumentError$(argument)); | |
1556 }, | |
1557 | |
1558 ioore: function(receiver, index) { | |
1559 if (receiver == null) | |
1560 J.get$length$asx(receiver); | |
1561 if (typeof index !== "number" || Math.floor(index) !== index) | |
1562 H.iae(index); | |
1563 throw H.wrapException(P.RangeError$value(index)); | |
1564 }, | |
1565 | |
1566 wrapException: function(ex) { | |
1567 var wrapper; | |
1568 if (ex == null) | |
1569 ex = new P.NullThrownError(); | |
1570 wrapper = new Error(); | |
1571 wrapper.dartException = ex; | |
1572 if ("defineProperty" in Object) { | |
1573 Object.defineProperty(wrapper, "message", { get: H.toStringWrapper$closure.c
all$0 }); | |
1574 wrapper.name = ""; | |
1575 } else | |
1576 wrapper.toString = H.toStringWrapper$closure.call$0; | |
1577 return wrapper; | |
1578 }, | |
1579 | |
1580 toStringWrapper: function() { | |
1581 return J.toString$0(this.dartException); | |
1582 }, | |
1583 | |
1584 throwExpression: function(ex) { | |
1585 throw H.wrapException(ex); | |
1586 }, | |
1587 | |
1588 unwrapException: function(ex) { | |
1589 var t1, message, number, ieErrorCode, t2, t3, t4, nullLiteralCall, t5, t6, t7,
t8, t9, match; | |
1590 t1 = new H.unwrapException_saveStackTrace(ex); | |
1591 if (ex == null) | |
1592 return; | |
1593 if (typeof ex !== "object") | |
1594 return ex; | |
1595 if ("dartException" in ex) | |
1596 return t1.call$1(ex.dartException); | |
1597 else if (!("message" in ex)) | |
1598 return ex; | |
1599 message = ex.message; | |
1600 if ("number" in ex && typeof ex.number == "number") { | |
1601 number = ex.number; | |
1602 ieErrorCode = number & 65535; | |
1603 if ((C.JSInt_methods.$shr(number, 16) & 8191) === 10) | |
1604 switch (ieErrorCode) { | |
1605 case 438: | |
1606 return t1.call$1(H.JsNoSuchMethodError$(H.S(message) + " (Error " + ie
ErrorCode + ")", null)); | |
1607 case 445: | |
1608 case 5007: | |
1609 t2 = H.S(message) + " (Error " + ieErrorCode + ")"; | |
1610 return t1.call$1(new H.NullError(t2, null)); | |
1611 default: | |
1612 } | |
1613 } | |
1614 if (ex instanceof TypeError) { | |
1615 t2 = $.get$TypeErrorDecoder_noSuchMethodPattern(); | |
1616 t3 = $.get$TypeErrorDecoder_notClosurePattern(); | |
1617 t4 = $.get$TypeErrorDecoder_nullCallPattern(); | |
1618 nullLiteralCall = $.get$TypeErrorDecoder_nullLiteralCallPattern(); | |
1619 t5 = $.get$TypeErrorDecoder_undefinedCallPattern(); | |
1620 t6 = $.get$TypeErrorDecoder_undefinedLiteralCallPattern(); | |
1621 t7 = $.get$TypeErrorDecoder_nullPropertyPattern(); | |
1622 $.get$TypeErrorDecoder_nullLiteralPropertyPattern(); | |
1623 t8 = $.get$TypeErrorDecoder_undefinedPropertyPattern(); | |
1624 t9 = $.get$TypeErrorDecoder_undefinedLiteralPropertyPattern(); | |
1625 match = t2.matchTypeError$1(message); | |
1626 if (match != null) | |
1627 return t1.call$1(H.JsNoSuchMethodError$(message, match)); | |
1628 else { | |
1629 match = t3.matchTypeError$1(message); | |
1630 if (match != null) { | |
1631 match.method = "call"; | |
1632 return t1.call$1(H.JsNoSuchMethodError$(message, match)); | |
1633 } else { | |
1634 match = t4.matchTypeError$1(message); | |
1635 if (match == null) { | |
1636 match = nullLiteralCall.matchTypeError$1(message); | |
1637 if (match == null) { | |
1638 match = t5.matchTypeError$1(message); | |
1639 if (match == null) { | |
1640 match = t6.matchTypeError$1(message); | |
1641 if (match == null) { | |
1642 match = t7.matchTypeError$1(message); | |
1643 if (match == null) { | |
1644 match = nullLiteralCall.matchTypeError$1(message); | |
1645 if (match == null) { | |
1646 match = t8.matchTypeError$1(message); | |
1647 if (match == null) { | |
1648 match = t9.matchTypeError$1(message); | |
1649 t2 = match != null; | |
1650 } else | |
1651 t2 = true; | |
1652 } else | |
1653 t2 = true; | |
1654 } else | |
1655 t2 = true; | |
1656 } else | |
1657 t2 = true; | |
1658 } else | |
1659 t2 = true; | |
1660 } else | |
1661 t2 = true; | |
1662 } else | |
1663 t2 = true; | |
1664 if (t2) { | |
1665 t2 = match == null ? null : match.method; | |
1666 return t1.call$1(new H.NullError(message, t2)); | |
1667 } | |
1668 } | |
1669 } | |
1670 t2 = typeof message === "string" ? message : ""; | |
1671 return t1.call$1(new H.UnknownJsTypeError(t2)); | |
1672 } | |
1673 if (ex instanceof RangeError) { | |
1674 if (typeof message === "string" && message.indexOf("call stack") !== -1) | |
1675 return new P.StackOverflowError(); | |
1676 return t1.call$1(new P.ArgumentError(null)); | |
1677 } | |
1678 if (typeof InternalError == "function" && ex instanceof InternalError) | |
1679 if (typeof message === "string" && message === "too much recursion") | |
1680 return new P.StackOverflowError(); | |
1681 return ex; | |
1682 }, | |
1683 | |
1684 objectHashCode: function(object) { | |
1685 if (object == null || typeof object != 'object') | |
1686 return J.get$hashCode$(object); | |
1687 else | |
1688 return H.Primitives_objectHashCode(object); | |
1689 }, | |
1690 | |
1691 fillLiteralMap: function(keyValuePairs, result) { | |
1692 var $length, index, index0, index1; | |
1693 $length = keyValuePairs.length; | |
1694 for (index = 0; index < $length; index = index1) { | |
1695 index0 = index + 1; | |
1696 index1 = index0 + 1; | |
1697 result.$indexSet(result, keyValuePairs[index], keyValuePairs[index0]); | |
1698 } | |
1699 return result; | |
1700 }, | |
1701 | |
1702 invokeClosure: function(closure, isolate, numberOfArguments, arg1, arg2, arg3, a
rg4) { | |
1703 var t1 = J.getInterceptor(numberOfArguments); | |
1704 if (t1.$eq(numberOfArguments, 0)) | |
1705 return H._callInIsolate(isolate, new H.invokeClosure_closure(closure)); | |
1706 else if (t1.$eq(numberOfArguments, 1)) | |
1707 return H._callInIsolate(isolate, new H.invokeClosure_closure0(closure, arg1)
); | |
1708 else if (t1.$eq(numberOfArguments, 2)) | |
1709 return H._callInIsolate(isolate, new H.invokeClosure_closure1(closure, arg1,
arg2)); | |
1710 else if (t1.$eq(numberOfArguments, 3)) | |
1711 return H._callInIsolate(isolate, new H.invokeClosure_closure2(closure, arg1,
arg2, arg3)); | |
1712 else if (t1.$eq(numberOfArguments, 4)) | |
1713 return H._callInIsolate(isolate, new H.invokeClosure_closure3(closure, arg1,
arg2, arg3, arg4)); | |
1714 else | |
1715 throw H.wrapException(P.Exception_Exception("Unsupported number of arguments
for wrapped closure")); | |
1716 }, | |
1717 | |
1718 convertDartClosureToJS: function(closure, arity) { | |
1719 var $function; | |
1720 if (closure == null) | |
1721 return; | |
1722 $function = closure.$identity; | |
1723 if (!!$function) | |
1724 return $function; | |
1725 $function = (function(closure, arity, context, invoke) { return function(a1,
a2, a3, a4) { return invoke(closure, context, arity, a1, a2, a3, a4); };})(
closure,arity,$globalState.currentContext,H.invokeClosure$closure.call$7); | |
1726 closure.$identity = $function; | |
1727 return $function; | |
1728 }, | |
1729 | |
1730 propertyTypeCastError: function(value, property) { | |
1731 var t1 = J.getInterceptor$asx(property); | |
1732 throw H.wrapException(H.CastErrorImplementation$(H.Primitives_objectTypeName(v
alue), t1.substring$2(property, 3, t1.get$length(property)))); | |
1733 }, | |
1734 | |
1735 interceptedTypeCast: function(value, property) { | |
1736 var t1; | |
1737 if (value != null) | |
1738 t1 = typeof value === "object" && J.getInterceptor(value)[property]; | |
1739 else | |
1740 t1 = true; | |
1741 if (t1) | |
1742 return value; | |
1743 H.propertyTypeCastError(value, property); | |
1744 }, | |
1745 | |
1746 throwCyclicInit: function(staticName) { | |
1747 throw H.wrapException(P.CyclicInitializationError$("Cyclic initialization for
static " + H.S(staticName))); | |
1748 }, | |
1749 | |
1750 setRuntimeTypeInfo: function(target, typeInfo) { | |
1751 if (target != null) | |
1752 target.$builtinTypeInfo = typeInfo; | |
1753 return target; | |
1754 }, | |
1755 | |
1756 getRuntimeTypeInfo: function(target) { | |
1757 if (target == null) | |
1758 return; | |
1759 return target.$builtinTypeInfo; | |
1760 }, | |
1761 | |
1762 getRuntimeTypeArguments: function(target, substitutionName) { | |
1763 return H.substitute(target["$as" + H.S(substitutionName)], H.getRuntimeTypeInf
o(target)); | |
1764 }, | |
1765 | |
1766 getRuntimeTypeArgument: function(target, substitutionName, index) { | |
1767 var $arguments = H.getRuntimeTypeArguments(target, substitutionName); | |
1768 return $arguments == null ? null : $arguments[index]; | |
1769 }, | |
1770 | |
1771 runtimeTypeToString: function(type) { | |
1772 if (type == null) | |
1773 return "dynamic"; | |
1774 else if (typeof type === "object" && type !== null && type.constructor === Arr
ay) | |
1775 return type[0].builtin$cls + H.joinArguments(type, 1); | |
1776 else if (typeof type == "function") | |
1777 return type.builtin$cls; | |
1778 else if (typeof type === "number" && Math.floor(type) === type) | |
1779 return C.JSInt_methods.toString$0(type); | |
1780 else | |
1781 return; | |
1782 }, | |
1783 | |
1784 joinArguments: function(types, startIndex) { | |
1785 var buffer, index, firstArgument, allDynamic, argument, str; | |
1786 if (types == null) | |
1787 return ""; | |
1788 buffer = P.StringBuffer$(""); | |
1789 for (index = startIndex, firstArgument = true, allDynamic = true; index < type
s.length; ++index) { | |
1790 if (firstArgument) | |
1791 firstArgument = false; | |
1792 else | |
1793 buffer._contents = buffer._contents + ", "; | |
1794 argument = types[index]; | |
1795 if (argument != null) | |
1796 allDynamic = false; | |
1797 str = H.runtimeTypeToString(argument); | |
1798 str = typeof str === "string" ? str : str; | |
1799 buffer._contents = buffer._contents + str; | |
1800 } | |
1801 return allDynamic ? "" : "<" + H.S(buffer) + ">"; | |
1802 }, | |
1803 | |
1804 substitute: function(substitution, $arguments) { | |
1805 if (typeof substitution === "object" && substitution !== null && substitution.
constructor === Array) | |
1806 $arguments = substitution; | |
1807 else if (typeof substitution == "function") { | |
1808 substitution = H.invokeOn(substitution, null, $arguments); | |
1809 if (typeof substitution === "object" && substitution !== null && substitutio
n.constructor === Array) | |
1810 $arguments = substitution; | |
1811 else if (typeof substitution == "function") | |
1812 $arguments = H.invokeOn(substitution, null, $arguments); | |
1813 } | |
1814 return $arguments; | |
1815 }, | |
1816 | |
1817 computeSignature: function(signature, context, contextName) { | |
1818 return H.invokeOn(signature, context, H.getRuntimeTypeArguments(context, conte
xtName)); | |
1819 }, | |
1820 | |
1821 invokeOn: function($function, receiver, $arguments) { | |
1822 return $function.apply(receiver, $arguments); | |
1823 }, | |
1824 | |
1825 typeNameInChrome: function(obj) { | |
1826 return obj.constructor.name; | |
1827 }, | |
1828 | |
1829 typeNameInSafari: function(obj) { | |
1830 return H.constructorNameFallback(obj); | |
1831 }, | |
1832 | |
1833 typeNameInOpera: function(obj) { | |
1834 return H.constructorNameFallback(obj); | |
1835 }, | |
1836 | |
1837 typeNameInFirefox: function(obj) { | |
1838 var $name = H.constructorNameFallback(obj); | |
1839 if ($name === "BeforeUnloadEvent") | |
1840 return "Event"; | |
1841 if ($name === "DataTransfer") | |
1842 return "Clipboard"; | |
1843 if ($name === "GeoGeolocation") | |
1844 return "Geolocation"; | |
1845 if ($name === "WorkerMessageEvent") | |
1846 return "MessageEvent"; | |
1847 if ($name === "XMLDocument") | |
1848 return "Document"; | |
1849 return $name; | |
1850 }, | |
1851 | |
1852 typeNameInIE: function(obj) { | |
1853 var $name = H.constructorNameFallback(obj); | |
1854 if ($name === "Document") { | |
1855 if (!!obj.xmlVersion) | |
1856 return "Document"; | |
1857 return "HTMLDocument"; | |
1858 } | |
1859 if ($name === "BeforeUnloadEvent") | |
1860 return "Event"; | |
1861 if ($name === "DataTransfer") | |
1862 return "Clipboard"; | |
1863 if ($name === "HTMLDDElement") | |
1864 return "HTMLElement"; | |
1865 if ($name === "HTMLDTElement") | |
1866 return "HTMLElement"; | |
1867 if ($name === "HTMLPhraseElement") | |
1868 return "HTMLElement"; | |
1869 if ($name === "Position") | |
1870 return "Geoposition"; | |
1871 if ($name === "Object") | |
1872 if (window.DataView && obj instanceof window.DataView) | |
1873 return "DataView"; | |
1874 return $name; | |
1875 }, | |
1876 | |
1877 constructorNameFallback: function(object) { | |
1878 var $constructor, $name, t1, string; | |
1879 if (object == null) | |
1880 return "Null"; | |
1881 $constructor = object.constructor; | |
1882 if (typeof $constructor === "function") { | |
1883 $name = $constructor.builtin$cls; | |
1884 if ($name != null) | |
1885 return $name; | |
1886 $name = $constructor.name; | |
1887 if (typeof $name === "string") | |
1888 t1 = $name !== "" && $name !== "Object" && $name !== "Function.prototype"; | |
1889 else | |
1890 t1 = false; | |
1891 if (t1) | |
1892 return $name; | |
1893 } | |
1894 string = Object.prototype.toString.call(object); | |
1895 return string.substring(8, string.length - 1); | |
1896 }, | |
1897 | |
1898 alternateTag: function(object, tag) { | |
1899 if (!!/^HTML[A-Z].*Element$/.test(tag)) { | |
1900 if (Object.prototype.toString.call(object) === "[object Object]") | |
1901 return; | |
1902 return "HTMLElement"; | |
1903 } | |
1904 return; | |
1905 }, | |
1906 | |
1907 getFunctionForTypeNameOf: function() { | |
1908 var getTagFunction = H.getBaseFunctionForTypeNameOf(); | |
1909 if (typeof dartExperimentalFixupGetTag == "function") | |
1910 return H.applyExperimentalFixup(dartExperimentalFixupGetTag, getTagFunction)
; | |
1911 return getTagFunction; | |
1912 }, | |
1913 | |
1914 getBaseFunctionForTypeNameOf: function() { | |
1915 if (typeof navigator !== "object") | |
1916 return H.typeNameInChrome$closure; | |
1917 var userAgent = navigator.userAgent; | |
1918 if (userAgent.indexOf("Chrome") !== -1 || userAgent.indexOf("DumpRenderTree")
!== -1) | |
1919 return H.typeNameInChrome$closure; | |
1920 else if (userAgent.indexOf("Firefox") !== -1) | |
1921 return H.typeNameInFirefox$closure; | |
1922 else if (userAgent.indexOf("Trident/") !== -1) | |
1923 return H.typeNameInIE$closure; | |
1924 else if (userAgent.indexOf("Opera") !== -1) | |
1925 return H.typeNameInOpera$closure; | |
1926 else if (userAgent.indexOf("AppleWebKit") !== -1) | |
1927 return H.typeNameInSafari$closure; | |
1928 else | |
1929 return H.constructorNameFallback$closure; | |
1930 }, | |
1931 | |
1932 applyExperimentalFixup: function(fixupJSFunction, originalGetTagDartFunction) { | |
1933 return new H.applyExperimentalFixup_newGetTagDartFunction(fixupJSFunction((fun
ction(invoke, closure){return function(arg){ return invoke(closure, arg); };})(H
.callDartFunctionWith1Arg$closure.call$2, originalGetTagDartFunction))); | |
1934 }, | |
1935 | |
1936 callDartFunctionWith1Arg: function(fn, arg) { | |
1937 return fn.call$1(arg); | |
1938 }, | |
1939 | |
1940 toStringForNativeObject: function(obj) { | |
1941 return "Instance of " + $.get$getTypeNameOf().call$1(obj); | |
1942 }, | |
1943 | |
1944 hashCodeForNativeObject: function(object) { | |
1945 return H.Primitives_objectHashCode(object); | |
1946 }, | |
1947 | |
1948 defineProperty: function(obj, property, value) { | |
1949 Object.defineProperty(obj, property, {value: value, enumerable: false, writabl
e: true, configurable: true}); | |
1950 }, | |
1951 | |
1952 lookupInterceptor: function(hasOwnPropertyFunction, tag) { | |
1953 var map = init.interceptorsByTag; | |
1954 return hasOwnPropertyFunction.call(map, tag) ? map[tag] : null; | |
1955 }, | |
1956 | |
1957 lookupDispatchRecord: function(obj) { | |
1958 var hasOwnPropertyFunction, tag, interceptorClass, secondTag, interceptor; | |
1959 hasOwnPropertyFunction = Object.prototype.hasOwnProperty; | |
1960 tag = $.get$getTypeNameOf().call$1(obj); | |
1961 interceptorClass = H.lookupInterceptor(hasOwnPropertyFunction, tag); | |
1962 if (interceptorClass == null) { | |
1963 secondTag = H.alternateTag(obj, tag); | |
1964 if (secondTag != null) | |
1965 interceptorClass = H.lookupInterceptor(hasOwnPropertyFunction, secondTag); | |
1966 } | |
1967 if (interceptorClass == null) | |
1968 return; | |
1969 interceptor = interceptorClass.prototype; | |
1970 if (init.leafTags[tag] === true) | |
1971 return H.makeLeafDispatchRecord(interceptor); | |
1972 else | |
1973 return J.makeDispatchRecord(interceptor, Object.getPrototypeOf(obj), null, n
ull); | |
1974 }, | |
1975 | |
1976 makeLeafDispatchRecord: function(interceptor) { | |
1977 return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaScr
iptIndexingBehavior); | |
1978 }, | |
1979 | |
1980 makeDefaultDispatchRecord: function(tag, interceptorClass, proto) { | |
1981 var interceptor = interceptorClass.prototype; | |
1982 if (init.leafTags[tag] === true) | |
1983 return J.makeDispatchRecord(interceptor, false, null, !!interceptor.$isJavaS
criptIndexingBehavior); | |
1984 else | |
1985 return J.makeDispatchRecord(interceptor, proto, null, null); | |
1986 }, | |
1987 | |
1988 initNativeDispatch: function() { | |
1989 var context, map, tags, i, tag, proto, record; | |
1990 $.initNativeDispatchFlag = true; | |
1991 if (typeof window != "undefined") { | |
1992 context = window; | |
1993 map = init.interceptorsByTag; | |
1994 tags = Object.getOwnPropertyNames(map); | |
1995 for (i = 0; i < tags.length; ++i) { | |
1996 tag = tags[i]; | |
1997 if (typeof context[tag] == "function") { | |
1998 proto = context[tag].prototype; | |
1999 if (proto != null) { | |
2000 record = H.makeDefaultDispatchRecord(tag, map[tag], proto); | |
2001 if (record != null) | |
2002 Object.defineProperty(proto, init.dispatchPropertyName, {value: reco
rd, enumerable: false, writable: true, configurable: true}); | |
2003 } | |
2004 } | |
2005 } | |
2006 } | |
2007 }, | |
2008 | |
2009 TypeErrorDecoder: {"": "Object;_pattern,_arguments,_argumentsExpr,_expr,_method,
_receiver", | |
2010 matchTypeError$1: function(message) { | |
2011 var match, result, t1; | |
2012 match = new RegExp(this._pattern).exec(message); | |
2013 if (match == null) | |
2014 return; | |
2015 result = {}; | |
2016 t1 = this._arguments; | |
2017 if (t1 !== -1) | |
2018 result.arguments = match[t1 + 1]; | |
2019 t1 = this._argumentsExpr; | |
2020 if (t1 !== -1) | |
2021 result.argumentsExpr = match[t1 + 1]; | |
2022 t1 = this._expr; | |
2023 if (t1 !== -1) | |
2024 result.expr = match[t1 + 1]; | |
2025 t1 = this._method; | |
2026 if (t1 !== -1) | |
2027 result.method = match[t1 + 1]; | |
2028 t1 = this._receiver; | |
2029 if (t1 !== -1) | |
2030 result.receiver = match[t1 + 1]; | |
2031 return result; | |
2032 }, | |
2033 static: { | |
2034 "": "TypeErrorDecoder_noSuchMethodPattern,TypeErrorDecoder_notClosurePattern,Typ
eErrorDecoder_nullCallPattern,TypeErrorDecoder_nullLiteralCallPattern,TypeErrorD
ecoder_undefinedCallPattern,TypeErrorDecoder_undefinedLiteralCallPattern,TypeErr
orDecoder_nullPropertyPattern,TypeErrorDecoder_nullLiteralPropertyPattern,TypeEr
rorDecoder_undefinedPropertyPattern,TypeErrorDecoder_undefinedLiteralPropertyPat
tern", | |
2035 TypeErrorDecoder_extractPattern: function(message) { | |
2036 var match, $arguments, argumentsExpr, expr, method, receiver; | |
2037 message = message.replace(String({}), '$receiver$').replace(new RegExp("[[\\]{
}()*+?.\\\\^$|]", 'g'), '\\$&'); | |
2038 match = message.match(/\\\$[a-zA-Z]+\\\$/g); | |
2039 if (match == null) | |
2040 match = []; | |
2041 $arguments = match.indexOf("\\$arguments\\$"); | |
2042 argumentsExpr = match.indexOf("\\$argumentsExpr\\$"); | |
2043 expr = match.indexOf("\\$expr\\$"); | |
2044 method = match.indexOf("\\$method\\$"); | |
2045 receiver = match.indexOf("\\$receiver\\$"); | |
2046 return new H.TypeErrorDecoder(message.replace('\\$arguments\\$', '((?:x|[^x])*
)').replace('\\$argumentsExpr\\$', '((?:x|[^x])*)').replace('\\$expr\\$', '((?:x
|[^x])*)').replace('\\$method\\$', '((?:x|[^x])*)').replace('\\$receiver\\$', '(
(?:x|[^x])*)'), $arguments, argumentsExpr, expr, method, receiver); | |
2047 }, | |
2048 | |
2049 TypeErrorDecoder_provokeCallErrorOn: function(expression) { | |
2050 return function($expr$) { | |
2051 var $argumentsExpr$ = '$arguments$' | |
2052 try { | |
2053 $expr$.$method$($argumentsExpr$); | |
2054 } catch (e) { | |
2055 return e.message; | |
2056 } | |
2057 }(expression); | |
2058 }, | |
2059 | |
2060 TypeErrorDecoder_provokeCallErrorOnNull: function() { | |
2061 return function() { | |
2062 var $argumentsExpr$ = '$arguments$' | |
2063 try { | |
2064 null.$method$($argumentsExpr$); | |
2065 } catch (e) { | |
2066 return e.message; | |
2067 } | |
2068 }(); | |
2069 }, | |
2070 | |
2071 TypeErrorDecoder_provokeCallErrorOnUndefined: function() { | |
2072 return function() { | |
2073 var $argumentsExpr$ = '$arguments$' | |
2074 try { | |
2075 (void 0).$method$($argumentsExpr$); | |
2076 } catch (e) { | |
2077 return e.message; | |
2078 } | |
2079 }(); | |
2080 }, | |
2081 | |
2082 TypeErrorDecoder_provokePropertyErrorOn: function(expression) { | |
2083 return function($expr$) { | |
2084 try { | |
2085 $expr$.$method$; | |
2086 } catch (e) { | |
2087 return e.message; | |
2088 } | |
2089 }(expression); | |
2090 }, | |
2091 | |
2092 TypeErrorDecoder_provokePropertyErrorOnNull: function() { | |
2093 return function() { | |
2094 try { | |
2095 null.$method$; | |
2096 } catch (e) { | |
2097 return e.message; | |
2098 } | |
2099 }(); | |
2100 }, | |
2101 | |
2102 TypeErrorDecoder_provokePropertyErrorOnUndefined: function() { | |
2103 return function() { | |
2104 try { | |
2105 (void 0).$method$; | |
2106 } catch (e) { | |
2107 return e.message; | |
2108 } | |
2109 }(); | |
2110 }} | |
2111 | |
2112 }, | |
2113 | |
2114 NullError: {"": "Error;_message,_method", | |
2115 toString$0: function(_) { | |
2116 var t1 = this._method; | |
2117 if (t1 == null) | |
2118 return "NullError: " + H.S(this._message); | |
2119 return "NullError: Cannot call \"" + H.S(t1) + "\" on null"; | |
2120 }, | |
2121 $isError: true | |
2122 }, | |
2123 | |
2124 JsNoSuchMethodError: {"": "Error;_message,_method,_receiver", | |
2125 toString$0: function(_) { | |
2126 var t1, t2; | |
2127 t1 = this._method; | |
2128 if (t1 == null) | |
2129 return "NoSuchMethodError: " + H.S(this._message); | |
2130 t2 = this._receiver; | |
2131 if (t2 == null) | |
2132 return "NoSuchMethodError: Cannot call \"" + t1 + "\" (" + H.S(this._messa
ge) + ")"; | |
2133 return "NoSuchMethodError: Cannot call \"" + t1 + "\" on \"" + t2 + "\" (" +
H.S(this._message) + ")"; | |
2134 }, | |
2135 $isError: true, | |
2136 static: { | |
2137 JsNoSuchMethodError$: function(_message, match) { | |
2138 var t1, t2; | |
2139 t1 = match == null; | |
2140 t2 = t1 ? null : match.method; | |
2141 t1 = t1 ? null : match.receiver; | |
2142 return new H.JsNoSuchMethodError(_message, t2, t1); | |
2143 }} | |
2144 | |
2145 }, | |
2146 | |
2147 UnknownJsTypeError: {"": "Error;_message", | |
2148 toString$0: function(_) { | |
2149 var t1 = this._message; | |
2150 return C.JSString_methods.get$isEmpty(t1) ? "Error" : "Error: " + t1; | |
2151 } | |
2152 }, | |
2153 | |
2154 unwrapException_saveStackTrace: {"": "Closure;ex_0", | |
2155 call$1: function(error) { | |
2156 var t1 = J.getInterceptor(error); | |
2157 if (typeof error === "object" && error !== null && !!t1.$isError) | |
2158 if (error.$thrownJsError == null) | |
2159 error.$thrownJsError = this.ex_0; | |
2160 return error; | |
2161 }, | |
2162 $is_args1: true | |
2163 }, | |
2164 | |
2165 _StackTrace: {"": "Object;_exception,_trace", | |
2166 toString$0: function(_) { | |
2167 var t1, trace; | |
2168 t1 = this._trace; | |
2169 if (t1 != null) | |
2170 return t1; | |
2171 t1 = this._exception; | |
2172 trace = typeof t1 === "object" ? t1.stack : null; | |
2173 t1 = trace == null ? "" : trace; | |
2174 this._trace = t1; | |
2175 return t1; | |
2176 } | |
2177 }, | |
2178 | |
2179 invokeClosure_closure: {"": "Closure;closure_0", | |
2180 call$0: function() { | |
2181 return this.closure_0.call$0(); | |
2182 } | |
2183 }, | |
2184 | |
2185 invokeClosure_closure0: {"": "Closure;closure_1,arg1_2", | |
2186 call$0: function() { | |
2187 return this.closure_1.call$1(this.arg1_2); | |
2188 } | |
2189 }, | |
2190 | |
2191 invokeClosure_closure1: {"": "Closure;closure_3,arg1_4,arg2_5", | |
2192 call$0: function() { | |
2193 return this.closure_3.call$2(this.arg1_4, this.arg2_5); | |
2194 } | |
2195 }, | |
2196 | |
2197 invokeClosure_closure2: {"": "Closure;closure_6,arg1_7,arg2_8,arg3_9", | |
2198 call$0: function() { | |
2199 return this.closure_6.call$3(this.arg1_7, this.arg2_8, this.arg3_9); | |
2200 } | |
2201 }, | |
2202 | |
2203 invokeClosure_closure3: {"": "Closure;closure_10,arg1_11,arg2_12,arg3_13,arg4_14
", | |
2204 call$0: function() { | |
2205 return this.closure_10.call$4(this.arg1_11, this.arg2_12, this.arg3_13, this
.arg4_14); | |
2206 } | |
2207 }, | |
2208 | |
2209 Closure: {"": "Object;", | |
2210 toString$0: function(_) { | |
2211 return "Closure"; | |
2212 } | |
2213 }, | |
2214 | |
2215 BoundClosure: {"": "Closure;_self,__js_helper$_target,_receiver,__js_helper$_nam
e", | |
2216 $eq: function(_, other) { | |
2217 var t1; | |
2218 if (other == null) | |
2219 return false; | |
2220 if (this === other) | |
2221 return true; | |
2222 t1 = J.getInterceptor(other); | |
2223 if (typeof other !== "object" || other === null || !t1.$isBoundClosure) | |
2224 return false; | |
2225 return this._self === other._self && this.__js_helper$_target === other.__js
_helper$_target && this._receiver === other._receiver; | |
2226 }, | |
2227 get$hashCode: function(_) { | |
2228 var t1, receiverHashCode; | |
2229 t1 = this._receiver; | |
2230 if (t1 == null) | |
2231 receiverHashCode = H.Primitives_objectHashCode(this._self); | |
2232 else | |
2233 receiverHashCode = typeof t1 !== "object" ? J.get$hashCode$(t1) : H.Primit
ives_objectHashCode(t1); | |
2234 return (receiverHashCode ^ H.Primitives_objectHashCode(this.__js_helper$_tar
get)) >>> 0; | |
2235 }, | |
2236 $isBoundClosure: true | |
2237 }, | |
2238 | |
2239 CastErrorImplementation: {"": "Error;message", | |
2240 toString$0: function(_) { | |
2241 return this.message; | |
2242 }, | |
2243 $isError: true, | |
2244 static: { | |
2245 CastErrorImplementation$: function(actualType, expectedType) { | |
2246 return new H.CastErrorImplementation("CastError: Casting value of type " + act
ualType + " to incompatible type " + H.S(expectedType)); | |
2247 }} | |
2248 | |
2249 }, | |
2250 | |
2251 applyExperimentalFixup_newGetTagDartFunction: {"": "Closure;newGetTagJSFunction_
0", | |
2252 call$1: function(object) { | |
2253 return this.newGetTagJSFunction_0(object); | |
2254 }, | |
2255 $is_args1: true | |
2256 }}], | |
2257 ["dart._collection.dev", "dart:_collection-dev", , H, { | |
2258 Arrays_copy: function(src, srcStart, dst, dstStart, count) { | |
2259 var i, j, t1; | |
2260 if (srcStart < dstStart) | |
2261 for (i = srcStart + count - 1, j = dstStart + count - 1; i >= srcStart; --i,
--j) { | |
2262 if (i < 0 || i >= src.length) | |
2263 throw H.ioore(src, i); | |
2264 C.JSArray_methods.$indexSet(dst, j, src[i]); | |
2265 } | |
2266 else | |
2267 for (t1 = srcStart + count, j = dstStart, i = srcStart; i < t1; ++i, ++j) { | |
2268 if (i < 0 || i >= src.length) | |
2269 throw H.ioore(src, i); | |
2270 C.JSArray_methods.$indexSet(dst, j, src[i]); | |
2271 } | |
2272 }, | |
2273 | |
2274 IterableMixinWorkaround_forEach: function(iterable, f) { | |
2275 var t1; | |
2276 for (t1 = new H.ListIterator(iterable, iterable.length, 0, null); t1.moveNext$
0();) | |
2277 f.call$1(t1._current); | |
2278 }, | |
2279 | |
2280 IterableMixinWorkaround_toStringIterable: function(iterable, leftDelimiter, righ
tDelimiter) { | |
2281 var result, i, t1; | |
2282 for (i = 0; i < $.get$IterableMixinWorkaround__toStringList().length; ++i) { | |
2283 t1 = $.get$IterableMixinWorkaround__toStringList(); | |
2284 if (i >= t1.length) | |
2285 throw H.ioore(t1, i); | |
2286 if (t1[i] === iterable) | |
2287 return H.S(leftDelimiter) + "..." + H.S(rightDelimiter); | |
2288 } | |
2289 result = P.StringBuffer$(""); | |
2290 try { | |
2291 $.get$IterableMixinWorkaround__toStringList().push(iterable); | |
2292 result.write$1(leftDelimiter); | |
2293 result.writeAll$2(iterable, ", "); | |
2294 result.write$1(rightDelimiter); | |
2295 } finally { | |
2296 t1 = $.get$IterableMixinWorkaround__toStringList(); | |
2297 if (0 >= t1.length) | |
2298 throw H.ioore(t1, 0); | |
2299 t1.pop(); | |
2300 } | |
2301 return result.get$_contents(); | |
2302 }, | |
2303 | |
2304 IterableMixinWorkaround__rangeCheck: function(list, start, end) { | |
2305 if (start < 0 || start > list.length) | |
2306 throw H.wrapException(P.RangeError$range(start, 0, list.length)); | |
2307 if (end < start || end > list.length) | |
2308 throw H.wrapException(P.RangeError$range(end, start, list.length)); | |
2309 }, | |
2310 | |
2311 IterableMixinWorkaround_setRangeList: function(list, start, end, from, skipCount
) { | |
2312 var $length; | |
2313 H.IterableMixinWorkaround__rangeCheck(list, start, end); | |
2314 $length = end - start; | |
2315 if ($length === 0) | |
2316 return; | |
2317 if (skipCount < 0) | |
2318 throw H.wrapException(new P.ArgumentError(skipCount)); | |
2319 if (skipCount + $length > from.length) | |
2320 throw H.wrapException(P.StateError$("Not enough elements")); | |
2321 H.Arrays_copy(from, skipCount, list, start, $length); | |
2322 }, | |
2323 | |
2324 printToConsole: function(line) { | |
2325 if (typeof dartPrint == "function") { | |
2326 dartPrint(line); | |
2327 return; | |
2328 } | |
2329 if (typeof console == "object" && typeof console.log == "function") { | |
2330 console.log(line); | |
2331 return; | |
2332 } | |
2333 if (typeof window == "object") | |
2334 return; | |
2335 if (typeof print == "function") { | |
2336 print(line); | |
2337 return; | |
2338 } | |
2339 throw "Unable to print message: " + String(line); | |
2340 }, | |
2341 | |
2342 Symbol_getName: function(symbol) { | |
2343 return symbol.get$_name(); | |
2344 }, | |
2345 | |
2346 ListIterator: {"": "Object;_iterable,_length,_index,_current", | |
2347 get$current: function() { | |
2348 return this._current; | |
2349 }, | |
2350 moveNext$0: function() { | |
2351 var t1, t2, $length, t3; | |
2352 t1 = this._iterable; | |
2353 t2 = J.getInterceptor$asx(t1); | |
2354 $length = t2.get$length(t1); | |
2355 if (this._length !== $length) | |
2356 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
2357 t3 = this._index; | |
2358 if (t3 >= $length) { | |
2359 this._current = null; | |
2360 return false; | |
2361 } | |
2362 this._current = t2.elementAt$1(t1, t3); | |
2363 this._index = this._index + 1; | |
2364 return true; | |
2365 } | |
2366 }, | |
2367 | |
2368 MappedIterable: {"": "IterableBase;_iterable,_f", | |
2369 get$iterator: function(_) { | |
2370 var t1 = this._iterable; | |
2371 t1 = t1.get$iterator(t1); | |
2372 t1 = new H.MappedIterator(null, t1, this._f); | |
2373 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "MappedIterable", 0
), H.getRuntimeTypeArgument(this, "MappedIterable", 1)]); | |
2374 return t1; | |
2375 }, | |
2376 get$length: function(_) { | |
2377 var t1 = this._iterable; | |
2378 return t1.get$length(t1); | |
2379 }, | |
2380 get$isEmpty: function(_) { | |
2381 var t1 = this._iterable; | |
2382 return t1.get$isEmpty(t1); | |
2383 }, | |
2384 $asIterableBase: function($S, $T) { | |
2385 return [$T]; | |
2386 }, | |
2387 static: { | |
2388 MappedIterable_MappedIterable: function(iterable, $function, $S, $T) { | |
2389 var t1; | |
2390 if (!!iterable.$isEfficientLength) { | |
2391 t1 = new H.EfficientLengthMappedIterable(iterable, $function); | |
2392 H.setRuntimeTypeInfo(t1, [$S, $T]); | |
2393 return t1; | |
2394 } | |
2395 t1 = new H.MappedIterable(iterable, $function); | |
2396 H.setRuntimeTypeInfo(t1, [$S, $T]); | |
2397 return t1; | |
2398 }} | |
2399 | |
2400 }, | |
2401 | |
2402 EfficientLengthMappedIterable: {"": "MappedIterable;_iterable,_f", $asMappedIter
able: null, $isEfficientLength: true}, | |
2403 | |
2404 MappedIterator: {"": "Iterator;_current,_iterator,_f", | |
2405 _f$1: function(arg0) { | |
2406 return this._f.call$1(arg0); | |
2407 }, | |
2408 moveNext$0: function() { | |
2409 var t1 = this._iterator; | |
2410 if (t1.moveNext$0()) { | |
2411 this._current = this._f$1(t1.get$current()); | |
2412 return true; | |
2413 } | |
2414 this._current = null; | |
2415 return false; | |
2416 }, | |
2417 get$current: function() { | |
2418 return this._current; | |
2419 }, | |
2420 $asIterator: function($S, $T) { | |
2421 return [$T]; | |
2422 } | |
2423 }, | |
2424 | |
2425 FixedLengthListMixin: {"": "Object;"}}], | |
2426 ["dart.async", "dart:async", , P, { | |
2427 _attachStackTrace: function(o, st) { | |
2428 var t1; | |
2429 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o =
== "string") | |
2430 return; | |
2431 t1 = $.get$_stackTraceExpando(); | |
2432 t1.$indexSet(t1, o, st); | |
2433 }, | |
2434 | |
2435 _invokeErrorHandler: function(errorHandler, error, stackTrace) { | |
2436 var t1 = J.getInterceptor(errorHandler); | |
2437 if (!!t1.$is_args2) | |
2438 return errorHandler.call$2(error, stackTrace); | |
2439 else | |
2440 return errorHandler.call$1(error); | |
2441 }, | |
2442 | |
2443 _registerErrorHandler: function(errorHandler, zone) { | |
2444 var t1 = J.getInterceptor(errorHandler); | |
2445 zone.toString; | |
2446 if (!!t1.$is_args2) | |
2447 return errorHandler; | |
2448 else | |
2449 return errorHandler; | |
2450 }, | |
2451 | |
2452 getAttachedStackTrace: function(o) { | |
2453 var t1; | |
2454 if (o == null || typeof o === "boolean" || typeof o === "number" || typeof o =
== "string") | |
2455 return; | |
2456 t1 = $.get$_stackTraceExpando(); | |
2457 return t1.$index(t1, o); | |
2458 }, | |
2459 | |
2460 Future_wait: function(futures) { | |
2461 var t1, t2, t3, future, pos, t4, t5, result, completer; | |
2462 t1 = {}; | |
2463 t1.completer_0 = null; | |
2464 t1.values_1 = null; | |
2465 t2 = new P.Future_wait_handleError(t1); | |
2466 t1.remaining_2 = 0; | |
2467 for (t3 = new H.ListIterator(futures, futures.length, 0, null); t3.moveNext$0(
);) { | |
2468 future = t3._current; | |
2469 pos = t1.remaining_2; | |
2470 t1.remaining_2 = pos + 1; | |
2471 t4 = future.catchError$1(t2); | |
2472 t5 = $.Zone__current; | |
2473 t5.toString; | |
2474 result = new P._Future(0, t5, null, null, new P.Future_wait_closure(t1, pos)
, null, P._registerErrorHandler(null, t5), null); | |
2475 result.$builtinTypeInfo = [null]; | |
2476 t4._addListener$1(result); | |
2477 } | |
2478 t2 = t1.remaining_2; | |
2479 if (t2 === 0) | |
2480 return P._Future$immediate(C.List_empty, null); | |
2481 t1.values_1 = P.List_List(t2, null); | |
2482 t2 = J.JSArray; | |
2483 completer = new P._AsyncCompleter(P._Future$(t2)); | |
2484 H.setRuntimeTypeInfo(completer, [t2]); | |
2485 t1.completer_0 = completer; | |
2486 return t1.completer_0.future; | |
2487 }, | |
2488 | |
2489 _asyncRunCallback: function() { | |
2490 var callback, t1, exception, milliseconds; | |
2491 for (; t1 = $.get$_asyncCallbacks(), t1._head !== t1._tail;) { | |
2492 callback = $.get$_asyncCallbacks().removeFirst$0(); | |
2493 try { | |
2494 callback.call$0(); | |
2495 } catch (exception) { | |
2496 H.unwrapException(exception); | |
2497 milliseconds = C.JSNumber_methods.$tdiv(C.Duration_0._duration, 1000); | |
2498 H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, P._asyncRunCallback$clos
ure); | |
2499 throw exception; | |
2500 } | |
2501 | |
2502 } | |
2503 $._callbacksAreEnqueued = false; | |
2504 }, | |
2505 | |
2506 _scheduleAsyncCallback: function(callback) { | |
2507 $.get$_asyncCallbacks()._add$1(callback); | |
2508 if (!$._callbacksAreEnqueued) { | |
2509 P._createTimer(C.Duration_0, P._asyncRunCallback$closure); | |
2510 $._callbacksAreEnqueued = true; | |
2511 } | |
2512 }, | |
2513 | |
2514 scheduleMicrotask: function(callback) { | |
2515 var t1, t2; | |
2516 t1 = $.Zone__current; | |
2517 if (t1 === C.C__RootZone) { | |
2518 t1.toString; | |
2519 P._scheduleAsyncCallback(callback); | |
2520 return; | |
2521 } | |
2522 t2 = t1.bindCallback$2$runGuarded(callback, true); | |
2523 t1.toString; | |
2524 P._scheduleAsyncCallback(t2); | |
2525 }, | |
2526 | |
2527 StreamController_StreamController: function(onCancel, onListen, onPause, onResum
e, sync, $T) { | |
2528 var t1; | |
2529 if (sync) { | |
2530 t1 = new P._SyncStreamController(onListen, onPause, onResume, onCancel, null
, 0, null); | |
2531 H.setRuntimeTypeInfo(t1, [$T]); | |
2532 } else { | |
2533 t1 = new P._AsyncStreamController(onListen, onPause, onResume, onCancel, nul
l, 0, null); | |
2534 H.setRuntimeTypeInfo(t1, [$T]); | |
2535 } | |
2536 return t1; | |
2537 }, | |
2538 | |
2539 _runGuarded: function(notificationHandler) { | |
2540 var result, e, s, t1, t2, exception; | |
2541 if (notificationHandler == null) | |
2542 return; | |
2543 try { | |
2544 result = notificationHandler.call$0(); | |
2545 t1 = result; | |
2546 t2 = J.getInterceptor(t1); | |
2547 if (typeof t1 === "object" && t1 !== null && !!t2.$isFuture) | |
2548 return result; | |
2549 return; | |
2550 } catch (exception) { | |
2551 t1 = H.unwrapException(exception); | |
2552 e = t1; | |
2553 s = new H._StackTrace(exception, null); | |
2554 t1 = $.Zone__current; | |
2555 t2 = P._asyncError(e, s); | |
2556 t1.toString; | |
2557 P._rootHandleUncaughtError(t1, null, t1, t2, s); | |
2558 } | |
2559 | |
2560 }, | |
2561 | |
2562 _nullDataHandler: function(value) { | |
2563 }, | |
2564 | |
2565 _nullErrorHandler: function(error, stackTrace) { | |
2566 var t1 = $.Zone__current; | |
2567 t1.toString; | |
2568 P._rootHandleUncaughtError(t1, null, t1, error, stackTrace); | |
2569 }, | |
2570 | |
2571 _nullDoneHandler: function() { | |
2572 }, | |
2573 | |
2574 _asyncError: function(error, stackTrace) { | |
2575 if (stackTrace == null) | |
2576 return error; | |
2577 if (P.getAttachedStackTrace(error) != null) | |
2578 return error; | |
2579 P._attachStackTrace(error, stackTrace); | |
2580 return error; | |
2581 }, | |
2582 | |
2583 _runUserCode: function(userCode, onSuccess, onError) { | |
2584 var e, s, exception, t1; | |
2585 try { | |
2586 onSuccess.call$1(userCode.call$0()); | |
2587 } catch (exception) { | |
2588 t1 = H.unwrapException(exception); | |
2589 e = t1; | |
2590 s = new H._StackTrace(exception, null); | |
2591 onError.call$2(P._asyncError(e, s), s); | |
2592 } | |
2593 | |
2594 }, | |
2595 | |
2596 _cancelAndError: function(subscription, future, error, stackTrace) { | |
2597 var cancelFuture, t1; | |
2598 cancelFuture = subscription.cancel$0(); | |
2599 t1 = J.getInterceptor(cancelFuture); | |
2600 if (typeof cancelFuture === "object" && cancelFuture !== null && !!t1.$isFutur
e) | |
2601 cancelFuture.whenComplete$1(new P._cancelAndError_closure(future, error, sta
ckTrace)); | |
2602 else | |
2603 future._completeError$2(error, stackTrace); | |
2604 }, | |
2605 | |
2606 _cancelAndErrorClosure: function(subscription, future) { | |
2607 return new P._cancelAndErrorClosure_closure(subscription, future); | |
2608 }, | |
2609 | |
2610 _cancelAndValue: function(subscription, future, value) { | |
2611 var cancelFuture, t1; | |
2612 cancelFuture = subscription.cancel$0(); | |
2613 t1 = J.getInterceptor(cancelFuture); | |
2614 if (typeof cancelFuture === "object" && cancelFuture !== null && !!t1.$isFutur
e) | |
2615 cancelFuture.whenComplete$1(new P._cancelAndValue_closure(future, value)); | |
2616 else | |
2617 future._complete$1(value); | |
2618 }, | |
2619 | |
2620 Timer_Timer: function(duration, callback) { | |
2621 var t1, t2; | |
2622 t1 = $.Zone__current; | |
2623 if (t1 === C.C__RootZone) { | |
2624 t1.toString; | |
2625 return P._createTimer(duration, callback); | |
2626 } | |
2627 t2 = t1.bindCallback$2$runGuarded(callback, true); | |
2628 t1.toString; | |
2629 return P._createTimer(duration, t2); | |
2630 }, | |
2631 | |
2632 _createTimer: function(duration, callback) { | |
2633 var milliseconds = C.JSNumber_methods.$tdiv(duration._duration, 1000); | |
2634 return H.TimerImpl$(milliseconds < 0 ? 0 : milliseconds, callback); | |
2635 }, | |
2636 | |
2637 _rootHandleUncaughtError: function($self, $parent, zone, error, stackTrace) { | |
2638 P._rootRun($self, null, $self, new P._rootHandleUncaughtError_closure(error, s
tackTrace)); | |
2639 }, | |
2640 | |
2641 _rootRun: function($self, $parent, zone, f) { | |
2642 var old, t1, t2; | |
2643 t1 = $.Zone__current; | |
2644 t2 = zone; | |
2645 if (t1 == null ? t2 == null : t1 === t2) | |
2646 return f.call$0(); | |
2647 old = t1; | |
2648 try { | |
2649 $.Zone__current = zone; | |
2650 t1 = f.call$0(); | |
2651 return t1; | |
2652 } finally { | |
2653 $.Zone__current = old; | |
2654 } | |
2655 }, | |
2656 | |
2657 _rootRunUnary: function($self, $parent, zone, f, arg) { | |
2658 var old, t1, t2; | |
2659 t1 = $.Zone__current; | |
2660 t2 = zone; | |
2661 if (t1 == null ? t2 == null : t1 === t2) | |
2662 return f.call$1(arg); | |
2663 old = t1; | |
2664 try { | |
2665 $.Zone__current = zone; | |
2666 t1 = f.call$1(arg); | |
2667 return t1; | |
2668 } finally { | |
2669 $.Zone__current = old; | |
2670 } | |
2671 }, | |
2672 | |
2673 _AsyncError: {"": "Object;error>,stackTrace<", $isError: true}, | |
2674 | |
2675 Future: {"": "Object;", $isFuture: true}, | |
2676 | |
2677 Future_wait_handleError: {"": "Closure;box_0", | |
2678 call$1: function(error) { | |
2679 var t1 = this.box_0; | |
2680 if (t1.values_1 != null) { | |
2681 t1.values_1 = null; | |
2682 t1 = t1.completer_0.future; | |
2683 if (t1._state !== 0) | |
2684 H.throwExpression(P.StateError$("Future already completed")); | |
2685 t1._asyncCompleteError$2(error, null); | |
2686 } | |
2687 return; | |
2688 }, | |
2689 $is_args1: true | |
2690 }, | |
2691 | |
2692 Future_wait_closure: {"": "Closure;box_0,pos_1", | |
2693 call$1: function(value) { | |
2694 var t1, t2, t3; | |
2695 t1 = this.box_0; | |
2696 t2 = t1.values_1; | |
2697 if (t2 == null) | |
2698 return; | |
2699 t3 = this.pos_1; | |
2700 if (t3 < 0 || t3 >= t2.length) | |
2701 throw H.ioore(t2, t3); | |
2702 t2[t3] = value; | |
2703 t1.remaining_2 = t1.remaining_2 - 1; | |
2704 if (t1.remaining_2 === 0) { | |
2705 t2 = t1.completer_0; | |
2706 t1 = t1.values_1; | |
2707 t2 = t2.future; | |
2708 if (t2._state !== 0) | |
2709 H.throwExpression(P.StateError$("Future already completed")); | |
2710 t2._asyncComplete$1(t1); | |
2711 } | |
2712 }, | |
2713 $is_args1: true | |
2714 }, | |
2715 | |
2716 _Completer: {"": "Object;"}, | |
2717 | |
2718 _AsyncCompleter: {"": "_Completer;future", $as_Completer: null}, | |
2719 | |
2720 _Future: {"": "Object;_state,_zone<,_resultOrListeners,_nextListener@,_onValueCa
llback,_errorTestCallback,_onErrorCallback,_whenCompleteActionCallback", | |
2721 get$_isComplete: function() { | |
2722 return this._state >= 4; | |
2723 }, | |
2724 get$_hasError: function() { | |
2725 return this._state === 8; | |
2726 }, | |
2727 set$_isChained: function(value) { | |
2728 if (value) | |
2729 this._state = 2; | |
2730 else | |
2731 this._state = 0; | |
2732 }, | |
2733 get$_onValue: function() { | |
2734 return this._state === 2 ? null : this._onValueCallback; | |
2735 }, | |
2736 _onValue$1: function(arg0) { | |
2737 return this.get$_onValue().call$1(arg0); | |
2738 }, | |
2739 get$_whenCompleteAction: function() { | |
2740 return this._state === 2 ? null : this._whenCompleteActionCallback; | |
2741 }, | |
2742 _whenCompleteAction$0: function() { | |
2743 return this.get$_whenCompleteAction().call$0(); | |
2744 }, | |
2745 then$2$onError: function(f, onError) { | |
2746 var result = P._Future$_then(f, onError, null); | |
2747 this._addListener$1(result); | |
2748 return result; | |
2749 }, | |
2750 then$1: function(f) { | |
2751 return this.then$2$onError(f, null); | |
2752 }, | |
2753 catchError$2$test: function(onError, test) { | |
2754 var result = P._Future$_catchError(onError, test, null); | |
2755 this._addListener$1(result); | |
2756 return result; | |
2757 }, | |
2758 catchError$1: function(onError) { | |
2759 return this.catchError$2$test(onError, null); | |
2760 }, | |
2761 whenComplete$1: function(action) { | |
2762 var result = P._Future$_whenComplete(action, H.getRuntimeTypeArgument(this,
"_Future", 0)); | |
2763 this._addListener$1(result); | |
2764 return result; | |
2765 }, | |
2766 get$_value: function() { | |
2767 return this._resultOrListeners; | |
2768 }, | |
2769 get$_error: function() { | |
2770 return this._resultOrListeners; | |
2771 }, | |
2772 _setValue$1: function(value) { | |
2773 this._state = 4; | |
2774 this._resultOrListeners = value; | |
2775 }, | |
2776 _setError$2: function(error, stackTrace) { | |
2777 this._state = 8; | |
2778 this._resultOrListeners = new P._AsyncError(error, stackTrace); | |
2779 }, | |
2780 _addListener$1: function(listener) { | |
2781 if (this._state >= 4) { | |
2782 this._zone.toString; | |
2783 P._scheduleAsyncCallback(new P._Future__addListener_closure(this, listener
)); | |
2784 } else { | |
2785 listener._nextListener = this._resultOrListeners; | |
2786 this._resultOrListeners = listener; | |
2787 } | |
2788 }, | |
2789 _removeListeners$0: function() { | |
2790 var current, prev, next; | |
2791 current = this._resultOrListeners; | |
2792 this._resultOrListeners = null; | |
2793 for (prev = null; current != null; prev = current, current = next) { | |
2794 next = current.get$_nextListener(); | |
2795 current.set$_nextListener(prev); | |
2796 } | |
2797 return prev; | |
2798 }, | |
2799 _complete$1: function(value) { | |
2800 var t1, listeners; | |
2801 t1 = J.getInterceptor(value); | |
2802 if (typeof value === "object" && value !== null && !!t1.$isFuture) { | |
2803 P._Future__chainFutures(value, this); | |
2804 return; | |
2805 } | |
2806 listeners = this._removeListeners$0(); | |
2807 this._setValue$1(value); | |
2808 P._Future__propagateToListeners(this, listeners); | |
2809 }, | |
2810 _completeError$2: function(error, stackTrace) { | |
2811 var listeners; | |
2812 if (stackTrace != null) | |
2813 P._attachStackTrace(error, stackTrace); | |
2814 listeners = this._state === 2 ? null : this._removeListeners$0(); | |
2815 this._setError$2(error, stackTrace); | |
2816 P._Future__propagateToListeners(this, listeners); | |
2817 }, | |
2818 get$_completeError: function() { | |
2819 return new P.BoundClosure$2(this, P._Future.prototype._completeError$2, null
, "_completeError$2"); | |
2820 }, | |
2821 _asyncComplete$1: function(value) { | |
2822 if (this._state !== 0) | |
2823 H.throwExpression(P.StateError$("Future already completed")); | |
2824 this._state = 1; | |
2825 this._zone.toString; | |
2826 P._scheduleAsyncCallback(new P._Future__asyncComplete_closure(this, value)); | |
2827 }, | |
2828 _asyncCompleteError$2: function(error, stackTrace) { | |
2829 if (this._state !== 0) | |
2830 H.throwExpression(P.StateError$("Future already completed")); | |
2831 this._state = 1; | |
2832 this._zone.toString; | |
2833 P._scheduleAsyncCallback(new P._Future__asyncCompleteError_closure(this, err
or, stackTrace)); | |
2834 }, | |
2835 _async$_Future$immediate$1: function(value, $T) { | |
2836 this._asyncComplete$1(value); | |
2837 }, | |
2838 $is_Future: true, | |
2839 $isFuture: true, | |
2840 static: { | |
2841 "": "_Future__INCOMPLETE,_Future__PENDING_COMPLETE,_Future__CHAINED,_Future__VAL
UE,_Future__ERROR", | |
2842 _Future$: function($T) { | |
2843 var t1 = new P._Future(0, $.Zone__current, null, null, null, null, null, null)
; | |
2844 H.setRuntimeTypeInfo(t1, [$T]); | |
2845 return t1; | |
2846 }, | |
2847 | |
2848 _Future$immediate: function(value, $T) { | |
2849 var t1 = new P._Future(0, $.Zone__current, null, null, null, null, null, null)
; | |
2850 H.setRuntimeTypeInfo(t1, [$T]); | |
2851 t1._async$_Future$immediate$1(value, $T); | |
2852 return t1; | |
2853 }, | |
2854 | |
2855 _Future$_then: function(onValueCallback, onErrorCallback, $T) { | |
2856 var t1 = $.Zone__current; | |
2857 t1.toString; | |
2858 t1 = new P._Future(0, t1, null, null, onValueCallback, null, P._registerErrorH
andler(onErrorCallback, t1), null); | |
2859 H.setRuntimeTypeInfo(t1, [$T]); | |
2860 return t1; | |
2861 }, | |
2862 | |
2863 _Future$_catchError: function(onErrorCallback, errorTestCallback, $T) { | |
2864 var t1, t2; | |
2865 t1 = $.Zone__current; | |
2866 t2 = P._registerErrorHandler(onErrorCallback, t1); | |
2867 t1.toString; | |
2868 t2 = new P._Future(0, t1, null, null, null, errorTestCallback, t2, null); | |
2869 H.setRuntimeTypeInfo(t2, [$T]); | |
2870 return t2; | |
2871 }, | |
2872 | |
2873 _Future$_whenComplete: function(whenCompleteActionCallback, $T) { | |
2874 var t1 = $.Zone__current; | |
2875 t1.toString; | |
2876 t1 = new P._Future(0, t1, null, null, null, null, null, whenCompleteActionCall
back); | |
2877 H.setRuntimeTypeInfo(t1, [$T]); | |
2878 return t1; | |
2879 }, | |
2880 | |
2881 _Future__chainFutures: function(source, target) { | |
2882 var t1; | |
2883 target._state = 2; | |
2884 t1 = J.getInterceptor(source); | |
2885 if (typeof source === "object" && source !== null && !!t1.$is_Future) | |
2886 if (source._state >= 4) | |
2887 P._Future__propagateToListeners(source, target); | |
2888 else | |
2889 source._addListener$1(target); | |
2890 else | |
2891 source.then$2$onError(new P._Future__chainFutures_closure(target), new P._Fu
ture__chainFutures_closure0(target)); | |
2892 }, | |
2893 | |
2894 _Future__propagateMultipleListeners: function(source, listeners) { | |
2895 var listeners0; | |
2896 do { | |
2897 listeners0 = listeners.get$_nextListener(); | |
2898 listeners.set$_nextListener(null); | |
2899 P._Future__propagateToListeners(source, listeners); | |
2900 if (listeners0 != null) { | |
2901 listeners = listeners0; | |
2902 continue; | |
2903 } else | |
2904 break; | |
2905 } while (true); | |
2906 }, | |
2907 | |
2908 _Future__propagateToListeners: function(source, listeners) { | |
2909 var t1, t2, hasError, asyncError, t3, t4, t5, chainSource, listeners0; | |
2910 t1 = {}; | |
2911 t1.source_4 = source; | |
2912 for (; true;) { | |
2913 t2 = {}; | |
2914 if (!t1.source_4.get$_isComplete()) | |
2915 return; | |
2916 hasError = t1.source_4.get$_hasError(); | |
2917 if (hasError && listeners == null) { | |
2918 t2 = t1.source_4; | |
2919 asyncError = t2.get$_error(); | |
2920 t2 = t2.get$_zone(); | |
2921 t3 = J.get$error$x(asyncError); | |
2922 t4 = asyncError.get$stackTrace(); | |
2923 t2.toString; | |
2924 P._rootHandleUncaughtError(t2, null, t2, t3, t4); | |
2925 return; | |
2926 } | |
2927 if (listeners == null) | |
2928 return; | |
2929 if (listeners._nextListener != null) { | |
2930 P._Future__propagateMultipleListeners(t1.source_4, listeners); | |
2931 return; | |
2932 } | |
2933 if (hasError) { | |
2934 t3 = t1.source_4.get$_zone(); | |
2935 t4 = listeners._zone; | |
2936 t3.toString; | |
2937 t4.toString; | |
2938 t3 = t4 == null ? t3 != null : t4 !== t3; | |
2939 } else | |
2940 t3 = false; | |
2941 if (t3) { | |
2942 t2 = t1.source_4; | |
2943 asyncError = t2.get$_error(); | |
2944 t2 = t2.get$_zone(); | |
2945 t3 = J.get$error$x(asyncError); | |
2946 t4 = asyncError.get$stackTrace(); | |
2947 t2.toString; | |
2948 P._rootHandleUncaughtError(t2, null, t2, t3, t4); | |
2949 return; | |
2950 } | |
2951 t3 = $.Zone__current; | |
2952 t4 = listeners._zone; | |
2953 if (t3 == null ? t4 != null : t3 !== t4) { | |
2954 t4.toString; | |
2955 P._rootRun(t4, null, t4, new P._Future__propagateToListeners_closure(t1, l
isteners)); | |
2956 return; | |
2957 } | |
2958 t2.listenerHasValue_1 = null; | |
2959 t2.listenerValueOrError_2 = null; | |
2960 t2.isPropagationAborted_3 = false; | |
2961 t4.toString; | |
2962 P._rootRun(t4, null, t4, new P._Future__propagateToListeners_closure0(t1, t2
, hasError, listeners)); | |
2963 if (t2.isPropagationAborted_3) | |
2964 return; | |
2965 t3 = t2.listenerHasValue_1 === true; | |
2966 if (t3) { | |
2967 t4 = t2.listenerValueOrError_2; | |
2968 t5 = J.getInterceptor(t4); | |
2969 t5 = typeof t4 === "object" && t4 !== null && !!t5.$isFuture; | |
2970 t4 = t5; | |
2971 } else | |
2972 t4 = false; | |
2973 if (t4) { | |
2974 chainSource = t2.listenerValueOrError_2; | |
2975 t2 = J.getInterceptor(chainSource); | |
2976 if (typeof chainSource === "object" && chainSource !== null && !!t2.$is_Fu
ture && chainSource._state >= 4) { | |
2977 listeners._state = 2; | |
2978 t1.source_4 = chainSource; | |
2979 continue; | |
2980 } | |
2981 P._Future__chainFutures(chainSource, listeners); | |
2982 return; | |
2983 } | |
2984 if (t3) { | |
2985 listeners0 = listeners._removeListeners$0(); | |
2986 t2 = t2.listenerValueOrError_2; | |
2987 listeners._state = 4; | |
2988 listeners._resultOrListeners = t2; | |
2989 } else { | |
2990 listeners0 = listeners._removeListeners$0(); | |
2991 asyncError = t2.listenerValueOrError_2; | |
2992 t2 = J.get$error$x(asyncError); | |
2993 t3 = asyncError.get$stackTrace(); | |
2994 listeners._state = 8; | |
2995 listeners._resultOrListeners = new P._AsyncError(t2, t3); | |
2996 } | |
2997 t1.source_4 = listeners; | |
2998 listeners = listeners0; | |
2999 } | |
3000 }} | |
3001 | |
3002 }, | |
3003 | |
3004 _Future__addListener_closure: {"": "Closure;this_0,listener_1", | |
3005 call$0: function() { | |
3006 P._Future__propagateToListeners(this.this_0, this.listener_1); | |
3007 } | |
3008 }, | |
3009 | |
3010 _Future__chainFutures_closure: {"": "Closure;target_0", | |
3011 call$1: function(value) { | |
3012 this.target_0._complete$1(value); | |
3013 }, | |
3014 $is_args1: true | |
3015 }, | |
3016 | |
3017 _Future__chainFutures_closure0: {"": "Closure;target_1", | |
3018 call$2: function(error, stackTrace) { | |
3019 this.target_1._completeError$2(error, stackTrace); | |
3020 }, | |
3021 call$1: function(error) { | |
3022 return this.call$2(error, null); | |
3023 }, | |
3024 $is_args2: true, | |
3025 $is_args1: true | |
3026 }, | |
3027 | |
3028 _Future__asyncComplete_closure: {"": "Closure;this_0,value_1", | |
3029 call$0: function() { | |
3030 this.this_0._complete$1(this.value_1); | |
3031 } | |
3032 }, | |
3033 | |
3034 _Future__asyncCompleteError_closure: {"": "Closure;this_0,error_1,stackTrace_2", | |
3035 call$0: function() { | |
3036 this.this_0._completeError$2(this.error_1, this.stackTrace_2); | |
3037 } | |
3038 }, | |
3039 | |
3040 _Future__propagateToListeners_closure: {"": "Closure;box_2,listener_3", | |
3041 call$0: function() { | |
3042 P._Future__propagateToListeners(this.box_2.source_4, this.listener_3); | |
3043 } | |
3044 }, | |
3045 | |
3046 _Future__propagateToListeners_closure0: {"": "Closure;box_2,box_1,hasError_4,lis
tener_5", | |
3047 call$0: function() { | |
3048 var t1, value, asyncError, test, matchesTest, errorCallback, e, s, t2, t3, t
4, exception; | |
3049 t1 = {}; | |
3050 try { | |
3051 t2 = this.box_2; | |
3052 if (!this.hasError_4) { | |
3053 value = t2.source_4.get$_value(); | |
3054 t2 = this.listener_5; | |
3055 t3 = t2._state === 2 ? null : t2._onValueCallback; | |
3056 t4 = this.box_1; | |
3057 if (t3 != null) { | |
3058 t4.listenerValueOrError_2 = t2._onValue$1(value); | |
3059 t4.listenerHasValue_1 = true; | |
3060 } else { | |
3061 t4.listenerValueOrError_2 = value; | |
3062 t4.listenerHasValue_1 = true; | |
3063 } | |
3064 } else { | |
3065 asyncError = t2.source_4.get$_error(); | |
3066 t2 = this.listener_5; | |
3067 test = t2._state === 2 ? null : t2._errorTestCallback; | |
3068 matchesTest = true; | |
3069 if (test != null) | |
3070 matchesTest = test.call$1(J.get$error$x(asyncError)); | |
3071 if (matchesTest === true) | |
3072 t3 = (t2._state === 2 ? null : t2._onErrorCallback) != null; | |
3073 else | |
3074 t3 = false; | |
3075 if (t3) { | |
3076 errorCallback = t2._state === 2 ? null : t2._onErrorCallback; | |
3077 t2 = this.box_1; | |
3078 t2.listenerValueOrError_2 = P._invokeErrorHandler(errorCallback, J.get
$error$x(asyncError), asyncError.get$stackTrace()); | |
3079 t2.listenerHasValue_1 = true; | |
3080 } else { | |
3081 t2 = this.box_1; | |
3082 t2.listenerValueOrError_2 = asyncError; | |
3083 t2.listenerHasValue_1 = false; | |
3084 } | |
3085 } | |
3086 t2 = this.listener_5; | |
3087 if ((t2._state === 2 ? null : t2._whenCompleteActionCallback) != null) { | |
3088 t1.completeResult_0 = t2._whenCompleteAction$0(); | |
3089 t3 = t1.completeResult_0; | |
3090 t4 = J.getInterceptor(t3); | |
3091 if (typeof t3 === "object" && t3 !== null && !!t4.$isFuture) { | |
3092 t2.set$_isChained(true); | |
3093 t1.completeResult_0.then$2$onError(new P._Future__propagateToListeners
__closure(this.box_2, t2), new P._Future__propagateToListeners__closure0(t1, t2)
); | |
3094 this.box_1.isPropagationAborted_3 = true; | |
3095 } | |
3096 } | |
3097 } catch (exception) { | |
3098 t1 = H.unwrapException(exception); | |
3099 e = t1; | |
3100 s = new H._StackTrace(exception, null); | |
3101 if (this.hasError_4) { | |
3102 t1 = J.get$error$x(this.box_2.source_4.get$_error()); | |
3103 t2 = e; | |
3104 t2 = t1 == null ? t2 == null : t1 === t2; | |
3105 t1 = t2; | |
3106 } else | |
3107 t1 = false; | |
3108 t2 = this.box_1; | |
3109 if (t1) | |
3110 t2.listenerValueOrError_2 = this.box_2.source_4.get$_error(); | |
3111 else | |
3112 t2.listenerValueOrError_2 = new P._AsyncError(P._asyncError(e, s), s); | |
3113 this.box_1.listenerHasValue_1 = false; | |
3114 } | |
3115 | |
3116 } | |
3117 }, | |
3118 | |
3119 _Future__propagateToListeners__closure: {"": "Closure;box_2,listener_6", | |
3120 call$1: function(ignored) { | |
3121 P._Future__propagateToListeners(this.box_2.source_4, this.listener_6); | |
3122 }, | |
3123 $is_args1: true | |
3124 }, | |
3125 | |
3126 _Future__propagateToListeners__closure0: {"": "Closure;box_0,listener_7", | |
3127 call$2: function(error, stackTrace) { | |
3128 var t1, t2, t3; | |
3129 t1 = this.box_0; | |
3130 t2 = t1.completeResult_0; | |
3131 t3 = J.getInterceptor(t2); | |
3132 if (typeof t2 !== "object" || t2 === null || !t3.$is_Future) { | |
3133 t1.completeResult_0 = P._Future$(null); | |
3134 t1.completeResult_0._setError$2(error, stackTrace); | |
3135 } | |
3136 P._Future__propagateToListeners(t1.completeResult_0, this.listener_7); | |
3137 }, | |
3138 call$1: function(error) { | |
3139 return this.call$2(error, null); | |
3140 }, | |
3141 $is_args2: true, | |
3142 $is_args1: true | |
3143 }, | |
3144 | |
3145 Stream: {"": "Object;", | |
3146 forEach$1: function(_, action) { | |
3147 var t1, future; | |
3148 t1 = {}; | |
3149 future = P._Future$(null); | |
3150 t1.subscription_0 = null; | |
3151 t1.subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_
forEach_closure(t1, this, action, future), true, new P.Stream_forEach_closure0(f
uture), future.get$_completeError()); | |
3152 return future; | |
3153 }, | |
3154 get$length: function(_) { | |
3155 var t1, future; | |
3156 t1 = {}; | |
3157 future = P._Future$(J.JSInt); | |
3158 t1.count_0 = 0; | |
3159 this.listen$4$cancelOnError$onDone$onError(new P.Stream_length_closure(t1),
true, new P.Stream_length_closure0(t1, future), future.get$_completeError()); | |
3160 return future; | |
3161 }, | |
3162 get$isEmpty: function(_) { | |
3163 var t1, future; | |
3164 t1 = {}; | |
3165 future = P._Future$(J.JSBool); | |
3166 t1.subscription_0 = null; | |
3167 t1.subscription_0 = this.listen$4$cancelOnError$onDone$onError(new P.Stream_
isEmpty_closure(t1, future), true, new P.Stream_isEmpty_closure0(future), future
.get$_completeError()); | |
3168 return future; | |
3169 } | |
3170 }, | |
3171 | |
3172 Stream_forEach_closure: {"": "Closure;box_0,this_1,action_2,future_3", | |
3173 call$1: function(element) { | |
3174 P._runUserCode(new P.Stream_forEach__closure(this.action_2, element), new P.
Stream_forEach__closure0(), P._cancelAndErrorClosure(this.box_0.subscription_0,
this.future_3)); | |
3175 }, | |
3176 $is_args1: true | |
3177 }, | |
3178 | |
3179 Stream_forEach__closure: {"": "Closure;action_4,element_5", | |
3180 call$0: function() { | |
3181 return this.action_4.call$1(this.element_5); | |
3182 } | |
3183 }, | |
3184 | |
3185 Stream_forEach__closure0: {"": "Closure;", | |
3186 call$1: function(_) { | |
3187 }, | |
3188 $is_args1: true | |
3189 }, | |
3190 | |
3191 Stream_forEach_closure0: {"": "Closure;future_6", | |
3192 call$0: function() { | |
3193 this.future_6._complete$1(null); | |
3194 } | |
3195 }, | |
3196 | |
3197 Stream_length_closure: {"": "Closure;box_0", | |
3198 call$1: function(_) { | |
3199 var t1 = this.box_0; | |
3200 t1.count_0 = t1.count_0 + 1; | |
3201 }, | |
3202 $is_args1: true | |
3203 }, | |
3204 | |
3205 Stream_length_closure0: {"": "Closure;box_0,future_1", | |
3206 call$0: function() { | |
3207 this.future_1._complete$1(this.box_0.count_0); | |
3208 } | |
3209 }, | |
3210 | |
3211 Stream_isEmpty_closure: {"": "Closure;box_0,future_1", | |
3212 call$1: function(_) { | |
3213 P._cancelAndValue(this.box_0.subscription_0, this.future_1, false); | |
3214 }, | |
3215 $is_args1: true | |
3216 }, | |
3217 | |
3218 Stream_isEmpty_closure0: {"": "Closure;future_2", | |
3219 call$0: function() { | |
3220 this.future_2._complete$1(true); | |
3221 } | |
3222 }, | |
3223 | |
3224 StreamSubscription: {"": "Object;"}, | |
3225 | |
3226 _StreamController: {"": "Object;", | |
3227 get$_pendingEvents: function() { | |
3228 if ((this._state & 8) === 0) | |
3229 return this._varData; | |
3230 return this._varData.get$varData(); | |
3231 }, | |
3232 _ensurePendingEvents$0: function() { | |
3233 if ((this._state & 8) === 0) { | |
3234 if (this._varData == null) | |
3235 this._varData = new P._StreamImplEvents(null, null, 0); | |
3236 return this._varData; | |
3237 } | |
3238 var t1 = this._varData.get$varData(); | |
3239 return t1; | |
3240 }, | |
3241 get$_subscription: function() { | |
3242 if ((this._state & 8) !== 0) | |
3243 return this._varData.get$varData(); | |
3244 return this._varData; | |
3245 }, | |
3246 _badEventState$0: function() { | |
3247 if ((this._state & 4) !== 0) | |
3248 return new P.StateError("Cannot add event after closing"); | |
3249 return new P.StateError("Cannot add event while adding a stream"); | |
3250 }, | |
3251 _ensureDoneFuture$0: function() { | |
3252 if (this._doneFuture == null) { | |
3253 this._doneFuture = P._Future$(null); | |
3254 if ((this._state & 2) !== 0) | |
3255 this._doneFuture._complete$1(null); | |
3256 } | |
3257 return this._doneFuture; | |
3258 }, | |
3259 close$0: function(_) { | |
3260 var t1 = this._state; | |
3261 if ((t1 & 4) !== 0) | |
3262 return this._doneFuture; | |
3263 if (t1 >= 4) | |
3264 throw H.wrapException(this._badEventState$0()); | |
3265 this._state = (t1 | 4) >>> 0; | |
3266 this._ensureDoneFuture$0(); | |
3267 t1 = this._state; | |
3268 if ((t1 & 1) !== 0) | |
3269 this._sendDone$0(); | |
3270 else if ((t1 & 3) === 0) { | |
3271 t1 = this._ensurePendingEvents$0(); | |
3272 t1.add$1(t1, C.C__DelayedDone); | |
3273 } | |
3274 return this._doneFuture; | |
3275 }, | |
3276 _async$_add$1: function(value) { | |
3277 var t1 = this._state; | |
3278 if ((t1 & 1) !== 0) | |
3279 this._sendData$1(value); | |
3280 else if ((t1 & 3) === 0) { | |
3281 t1 = this._ensurePendingEvents$0(); | |
3282 t1.add$1(t1, new P._DelayedData(value, null)); | |
3283 } | |
3284 }, | |
3285 _subscribe$1: function(cancelOnError) { | |
3286 var t1, t2, subscription, pendingEvents; | |
3287 if ((this._state & 3) !== 0) | |
3288 throw H.wrapException(P.StateError$("Stream has already been listened to."
)); | |
3289 t1 = $.Zone__current; | |
3290 t2 = cancelOnError ? 1 : 0; | |
3291 subscription = new P._ControllerSubscription(this, null, null, null, t1, t2,
null, null); | |
3292 H.setRuntimeTypeInfo(subscription, [null]); | |
3293 pendingEvents = this.get$_pendingEvents(); | |
3294 this._state = (this._state | 1) >>> 0; | |
3295 if ((this._state & 8) !== 0) | |
3296 this._varData.set$varData(subscription); | |
3297 else | |
3298 this._varData = subscription; | |
3299 subscription._setPendingEvents$1(pendingEvents); | |
3300 subscription._guardCallback$1(new P._StreamController__subscribe_closure(thi
s)); | |
3301 return subscription; | |
3302 }, | |
3303 _recordCancel$1: function(subscription) { | |
3304 var t1, future; | |
3305 if ((this._state & 8) !== 0) | |
3306 this._varData.cancel$0(); | |
3307 this._varData = null; | |
3308 this._state = (this._state & 4294967286 | 2) >>> 0; | |
3309 t1 = new P._StreamController__recordCancel_complete(this); | |
3310 future = P._runGuarded(this.get$_onCancel()); | |
3311 if (future != null) | |
3312 future = future.whenComplete$1(t1); | |
3313 else | |
3314 t1.call$0(); | |
3315 return future; | |
3316 } | |
3317 }, | |
3318 | |
3319 _StreamController__subscribe_closure: {"": "Closure;this_0", | |
3320 call$0: function() { | |
3321 P._runGuarded(this.this_0.get$_onListen()); | |
3322 } | |
3323 }, | |
3324 | |
3325 _StreamController__recordCancel_complete: {"": "Closure;this_0", | |
3326 call$0: function() { | |
3327 var t1 = this.this_0._doneFuture; | |
3328 if (t1 != null && t1._state === 0) | |
3329 t1._asyncComplete$1(null); | |
3330 } | |
3331 }, | |
3332 | |
3333 _SyncStreamControllerDispatch: {"": "Object;", | |
3334 _sendData$1: function(data) { | |
3335 this.get$_subscription()._async$_add$1(data); | |
3336 }, | |
3337 _sendDone$0: function() { | |
3338 this.get$_subscription()._close$0(); | |
3339 } | |
3340 }, | |
3341 | |
3342 _AsyncStreamControllerDispatch: {"": "Object;", | |
3343 _sendData$1: function(data) { | |
3344 this.get$_subscription()._addPending$1(new P._DelayedData(data, null)); | |
3345 }, | |
3346 _sendDone$0: function() { | |
3347 this.get$_subscription()._addPending$1(C.C__DelayedDone); | |
3348 } | |
3349 }, | |
3350 | |
3351 _AsyncStreamController: {"": "_StreamController__AsyncStreamControllerDispatch;_
onListen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"}, | |
3352 | |
3353 _StreamController__AsyncStreamControllerDispatch: {"": "_StreamController+_Async
StreamControllerDispatch;"}, | |
3354 | |
3355 _SyncStreamController: {"": "_StreamController__SyncStreamControllerDispatch;_on
Listen<,_onPause<,_onResume<,_onCancel<,_varData,_state,_doneFuture"}, | |
3356 | |
3357 _StreamController__SyncStreamControllerDispatch: {"": "_StreamController+_SyncSt
reamControllerDispatch;"}, | |
3358 | |
3359 _ControllerStream: {"": "_StreamImpl;_async$_controller", | |
3360 _createSubscription$1: function(cancelOnError) { | |
3361 return this._async$_controller._subscribe$1(cancelOnError); | |
3362 }, | |
3363 get$hashCode: function(_) { | |
3364 return (H.Primitives_objectHashCode(this._async$_controller) ^ 892482866) >>
> 0; | |
3365 }, | |
3366 $eq: function(_, other) { | |
3367 var t1; | |
3368 if (other == null) | |
3369 return false; | |
3370 if (this === other) | |
3371 return true; | |
3372 t1 = J.getInterceptor(other); | |
3373 if (typeof other !== "object" || other === null || !t1.$is_ControllerStream) | |
3374 return false; | |
3375 return other._async$_controller === this._async$_controller; | |
3376 }, | |
3377 $is_ControllerStream: true, | |
3378 $as_StreamImpl: null | |
3379 }, | |
3380 | |
3381 _ControllerSubscription: {"": "_BufferingStreamSubscription;_async$_controller,_
async$_onData,_onError,_onDone,_zone,_state,_cancelFuture,_pending", | |
3382 _onCancel$0: function() { | |
3383 return this._async$_controller._recordCancel$1(this); | |
3384 }, | |
3385 _onPause$0: function() { | |
3386 var t1, addState; | |
3387 t1 = this._async$_controller; | |
3388 if ((t1._state & 8) !== 0) { | |
3389 addState = t1._varData; | |
3390 addState.pause$0(addState); | |
3391 } | |
3392 P._runGuarded(t1.get$_onPause()); | |
3393 }, | |
3394 get$_onPause: function() { | |
3395 return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onPau
se$0, null, "_onPause$0"); | |
3396 }, | |
3397 _onResume$0: function() { | |
3398 var t1 = this._async$_controller; | |
3399 if ((t1._state & 8) !== 0) | |
3400 t1._varData.resume$0(); | |
3401 P._runGuarded(t1.get$_onResume()); | |
3402 }, | |
3403 get$_onResume: function() { | |
3404 return new P.BoundClosure$0(this, P._ControllerSubscription.prototype._onRes
ume$0, null, "_onResume$0"); | |
3405 }, | |
3406 $as_BufferingStreamSubscription: null | |
3407 }, | |
3408 | |
3409 _EventSink: {"": "Object;"}, | |
3410 | |
3411 _BufferingStreamSubscription: {"": "Object;_async$_onData,_onError,_onDone,_zone
<,_state,_cancelFuture,_pending", | |
3412 _setPendingEvents$1: function(pendingEvents) { | |
3413 if (pendingEvents == null) | |
3414 return; | |
3415 this._pending = pendingEvents; | |
3416 if (!pendingEvents.get$isEmpty(pendingEvents)) { | |
3417 this._state = (this._state | 64) >>> 0; | |
3418 this._pending.schedule$1(this); | |
3419 } | |
3420 }, | |
3421 onData$1: function(handleData) { | |
3422 $.Zone__current.toString; | |
3423 this._async$_onData = handleData; | |
3424 }, | |
3425 onError$1: function(_, handleError) { | |
3426 this._onError = P._registerErrorHandler(handleError, $.Zone__current); | |
3427 }, | |
3428 onDone$1: function(handleDone) { | |
3429 $.Zone__current.toString; | |
3430 this._onDone = handleDone; | |
3431 }, | |
3432 pause$1: function(_, resumeSignal) { | |
3433 var t1 = this._state; | |
3434 if ((t1 & 8) !== 0) | |
3435 return; | |
3436 this._state = (t1 + 128 | 4) >>> 0; | |
3437 if (t1 < 128 && this._pending != null) | |
3438 this._pending.cancelSchedule$0(); | |
3439 if ((t1 & 4) === 0 && (this._state & 32) === 0) | |
3440 this._guardCallback$1(this.get$_onPause()); | |
3441 }, | |
3442 pause$0: function($receiver) { | |
3443 return this.pause$1($receiver, null); | |
3444 }, | |
3445 resume$0: function() { | |
3446 var t1, t2; | |
3447 t1 = this._state; | |
3448 if ((t1 & 8) !== 0) | |
3449 return; | |
3450 if (t1 >= 128) { | |
3451 this._state = t1 - 128; | |
3452 t1 = this._state; | |
3453 if (t1 < 128) { | |
3454 if ((t1 & 64) !== 0) { | |
3455 t2 = this._pending; | |
3456 t2 = !t2.get$isEmpty(t2); | |
3457 } else | |
3458 t2 = false; | |
3459 if (t2) | |
3460 this._pending.schedule$1(this); | |
3461 else { | |
3462 this._state = (t1 & 4294967291) >>> 0; | |
3463 if ((this._state & 32) === 0) | |
3464 this._guardCallback$1(this.get$_onResume()); | |
3465 } | |
3466 } | |
3467 } | |
3468 }, | |
3469 cancel$0: function() { | |
3470 this._state = (this._state & 4294967279) >>> 0; | |
3471 if ((this._state & 8) !== 0) | |
3472 return this._cancelFuture; | |
3473 this._cancel$0(); | |
3474 return this._cancelFuture; | |
3475 }, | |
3476 get$_mayResumeInput: function() { | |
3477 if (this._state < 128) { | |
3478 var t1 = this._pending; | |
3479 t1 = t1 == null || t1.get$isEmpty(t1); | |
3480 } else | |
3481 t1 = false; | |
3482 return t1; | |
3483 }, | |
3484 _cancel$0: function() { | |
3485 this._state = (this._state | 8) >>> 0; | |
3486 if ((this._state & 64) !== 0) | |
3487 this._pending.cancelSchedule$0(); | |
3488 if ((this._state & 32) === 0) | |
3489 this._pending = null; | |
3490 this._cancelFuture = this._onCancel$0(); | |
3491 }, | |
3492 _async$_add$1: function(data) { | |
3493 var t1 = this._state; | |
3494 if ((t1 & 8) !== 0) | |
3495 return; | |
3496 if (t1 < 32) | |
3497 this._sendData$1(data); | |
3498 else | |
3499 this._addPending$1(new P._DelayedData(data, null)); | |
3500 }, | |
3501 _close$0: function() { | |
3502 var t1 = this._state; | |
3503 if ((t1 & 8) !== 0) | |
3504 return; | |
3505 this._state = (t1 | 2) >>> 0; | |
3506 if (this._state < 32) | |
3507 this._sendDone$0(); | |
3508 else | |
3509 this._addPending$1(C.C__DelayedDone); | |
3510 }, | |
3511 _onPause$0: function() { | |
3512 }, | |
3513 get$_onPause: function() { | |
3514 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onPause$0, null, "_onPause$0"); | |
3515 }, | |
3516 _onResume$0: function() { | |
3517 }, | |
3518 get$_onResume: function() { | |
3519 return new P.BoundClosure$0(this, P._BufferingStreamSubscription.prototype._
onResume$0, null, "_onResume$0"); | |
3520 }, | |
3521 _onCancel$0: function() { | |
3522 }, | |
3523 _addPending$1: function($event) { | |
3524 var pending, t1; | |
3525 pending = this._pending; | |
3526 if (pending == null) { | |
3527 pending = new P._StreamImplEvents(null, null, 0); | |
3528 this._pending = pending; | |
3529 } | |
3530 pending.add$1(pending, $event); | |
3531 t1 = this._state; | |
3532 if ((t1 & 64) === 0) { | |
3533 this._state = (t1 | 64) >>> 0; | |
3534 if (this._state < 128) | |
3535 this._pending.schedule$1(this); | |
3536 } | |
3537 }, | |
3538 _sendData$1: function(data) { | |
3539 var t1 = this._state; | |
3540 this._state = (t1 | 32) >>> 0; | |
3541 this._zone.runUnaryGuarded$2(this._async$_onData, data); | |
3542 this._state = (this._state & 4294967263) >>> 0; | |
3543 this._checkState$1((t1 & 4) !== 0); | |
3544 }, | |
3545 _sendDone$0: function() { | |
3546 var t1, t2, t3; | |
3547 t1 = new P._BufferingStreamSubscription__sendDone_sendDone(this); | |
3548 this._cancel$0(); | |
3549 this._state = (this._state | 16) >>> 0; | |
3550 t2 = this._cancelFuture; | |
3551 t3 = J.getInterceptor(t2); | |
3552 if (typeof t2 === "object" && t2 !== null && !!t3.$isFuture) | |
3553 t2.whenComplete$1(t1); | |
3554 else | |
3555 t1.call$0(); | |
3556 }, | |
3557 _guardCallback$1: function(callback) { | |
3558 var t1 = this._state; | |
3559 this._state = (t1 | 32) >>> 0; | |
3560 callback.call$0(); | |
3561 this._state = (this._state & 4294967263) >>> 0; | |
3562 this._checkState$1((t1 & 4) !== 0); | |
3563 }, | |
3564 _checkState$1: function(wasInputPaused) { | |
3565 var t1, t2, isInputPaused; | |
3566 t1 = this._state; | |
3567 if ((t1 & 64) !== 0) { | |
3568 t2 = this._pending; | |
3569 t2 = t2.get$isEmpty(t2); | |
3570 } else | |
3571 t2 = false; | |
3572 if (t2) { | |
3573 this._state = (t1 & 4294967231) >>> 0; | |
3574 if ((this._state & 4) !== 0 && this.get$_mayResumeInput()) | |
3575 this._state = (this._state & 4294967291) >>> 0; | |
3576 } | |
3577 for (; true; wasInputPaused = isInputPaused) { | |
3578 t1 = this._state; | |
3579 if ((t1 & 8) !== 0) { | |
3580 this._pending = null; | |
3581 return; | |
3582 } | |
3583 isInputPaused = (t1 & 4) !== 0; | |
3584 if (wasInputPaused === isInputPaused) | |
3585 break; | |
3586 this._state = (t1 ^ 32) >>> 0; | |
3587 if (isInputPaused) | |
3588 this._onPause$0(); | |
3589 else | |
3590 this._onResume$0(); | |
3591 this._state = (this._state & 4294967263) >>> 0; | |
3592 } | |
3593 t1 = this._state; | |
3594 if ((t1 & 64) !== 0 && t1 < 128) | |
3595 this._pending.schedule$1(this); | |
3596 }, | |
3597 static: { | |
3598 "": "_BufferingStreamSubscription__STATE_CANCEL_ON_ERROR,_BufferingStreamSubscri
ption__STATE_CLOSED,_BufferingStreamSubscription__STATE_INPUT_PAUSED,_BufferingS
treamSubscription__STATE_CANCELED,_BufferingStreamSubscription__STATE_WAIT_FOR_C
ANCEL,_BufferingStreamSubscription__STATE_IN_CALLBACK,_BufferingStreamSubscripti
on__STATE_HAS_PENDING,_BufferingStreamSubscription__STATE_PAUSE_COUNT,_Buffering
StreamSubscription__STATE_PAUSE_COUNT_SHIFT", | |
3599 } | |
3600 | |
3601 }, | |
3602 | |
3603 _BufferingStreamSubscription__sendDone_sendDone: {"": "Closure;this_0", | |
3604 call$0: function() { | |
3605 var t1, t2; | |
3606 t1 = this.this_0; | |
3607 t2 = t1._state; | |
3608 if ((t2 & 16) === 0) | |
3609 return; | |
3610 t1._state = (t2 | 42) >>> 0; | |
3611 t1._zone.runGuarded$1(t1._onDone); | |
3612 t1._state = (t1._state & 4294967263) >>> 0; | |
3613 } | |
3614 }, | |
3615 | |
3616 _StreamImpl: {"": "Stream;", | |
3617 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { | |
3618 var subscription = this._createSubscription$1(true === cancelOnError); | |
3619 subscription.onData$1(onData); | |
3620 subscription.onError$1(subscription, onError); | |
3621 subscription.onDone$1(onDone); | |
3622 return subscription; | |
3623 }, | |
3624 _createSubscription$1: function(cancelOnError) { | |
3625 var t1, t2; | |
3626 t1 = $.Zone__current; | |
3627 t2 = cancelOnError ? 1 : 0; | |
3628 return new P._BufferingStreamSubscription(null, null, null, t1, t2, null, nu
ll); | |
3629 }, | |
3630 $asStream: null | |
3631 }, | |
3632 | |
3633 _DelayedEvent: {"": "Object;next@"}, | |
3634 | |
3635 _DelayedData: {"": "_DelayedEvent;value,next", | |
3636 perform$1: function(dispatch) { | |
3637 dispatch._sendData$1(this.value); | |
3638 } | |
3639 }, | |
3640 | |
3641 _DelayedDone: {"": "Object;", | |
3642 perform$1: function(dispatch) { | |
3643 dispatch._sendDone$0(); | |
3644 }, | |
3645 get$next: function() { | |
3646 return; | |
3647 }, | |
3648 set$next: function(_) { | |
3649 throw H.wrapException(P.StateError$("No events after a done.")); | |
3650 } | |
3651 }, | |
3652 | |
3653 _PendingEvents: {"": "Object;", | |
3654 schedule$1: function(dispatch) { | |
3655 var t1 = this._state; | |
3656 if (t1 === 1) | |
3657 return; | |
3658 if (t1 >= 1) { | |
3659 this._state = 1; | |
3660 return; | |
3661 } | |
3662 P.scheduleMicrotask(new P._PendingEvents_schedule_closure(this, dispatch)); | |
3663 this._state = 1; | |
3664 }, | |
3665 cancelSchedule$0: function() { | |
3666 if (this._state === 1) | |
3667 this._state = 3; | |
3668 } | |
3669 }, | |
3670 | |
3671 _PendingEvents_schedule_closure: {"": "Closure;this_0,dispatch_1", | |
3672 call$0: function() { | |
3673 var t1, oldState; | |
3674 t1 = this.this_0; | |
3675 oldState = t1._state; | |
3676 t1._state = 0; | |
3677 if (oldState === 3) | |
3678 return; | |
3679 t1.handleNext$1(this.dispatch_1); | |
3680 } | |
3681 }, | |
3682 | |
3683 _StreamImplEvents: {"": "_PendingEvents;firstPendingEvent,lastPendingEvent,_stat
e", | |
3684 get$isEmpty: function(_) { | |
3685 return this.lastPendingEvent == null; | |
3686 }, | |
3687 add$1: function(_, $event) { | |
3688 var t1 = this.lastPendingEvent; | |
3689 if (t1 == null) { | |
3690 this.lastPendingEvent = $event; | |
3691 this.firstPendingEvent = $event; | |
3692 } else { | |
3693 t1.set$next($event); | |
3694 this.lastPendingEvent = $event; | |
3695 } | |
3696 }, | |
3697 handleNext$1: function(dispatch) { | |
3698 var $event = this.firstPendingEvent; | |
3699 this.firstPendingEvent = $event.get$next(); | |
3700 if (this.firstPendingEvent == null) | |
3701 this.lastPendingEvent = null; | |
3702 $event.perform$1(dispatch); | |
3703 } | |
3704 }, | |
3705 | |
3706 _cancelAndError_closure: {"": "Closure;future_0,error_1,stackTrace_2", | |
3707 call$0: function() { | |
3708 return this.future_0._completeError$2(this.error_1, this.stackTrace_2); | |
3709 } | |
3710 }, | |
3711 | |
3712 _cancelAndErrorClosure_closure: {"": "Closure;subscription_0,future_1", | |
3713 call$2: function(error, stackTrace) { | |
3714 return P._cancelAndError(this.subscription_0, this.future_1, error, stackTra
ce); | |
3715 }, | |
3716 $is_args2: true | |
3717 }, | |
3718 | |
3719 _cancelAndValue_closure: {"": "Closure;future_0,value_1", | |
3720 call$0: function() { | |
3721 return this.future_0._complete$1(this.value_1); | |
3722 } | |
3723 }, | |
3724 | |
3725 _BaseZone: {"": "Object;", | |
3726 runGuarded$1: function(f) { | |
3727 var e, s, t1, exception; | |
3728 try { | |
3729 t1 = this.run$1(f); | |
3730 return t1; | |
3731 } catch (exception) { | |
3732 t1 = H.unwrapException(exception); | |
3733 e = t1; | |
3734 s = new H._StackTrace(exception, null); | |
3735 return this.handleUncaughtError$2(e, s); | |
3736 } | |
3737 | |
3738 }, | |
3739 runUnaryGuarded$2: function(f, arg) { | |
3740 var e, s, t1, exception; | |
3741 try { | |
3742 t1 = this.runUnary$2(f, arg); | |
3743 return t1; | |
3744 } catch (exception) { | |
3745 t1 = H.unwrapException(exception); | |
3746 e = t1; | |
3747 s = new H._StackTrace(exception, null); | |
3748 return this.handleUncaughtError$2(e, s); | |
3749 } | |
3750 | |
3751 }, | |
3752 bindCallback$2$runGuarded: function(f, runGuarded) { | |
3753 var registered = this.registerCallback$1(f); | |
3754 if (runGuarded) | |
3755 return new P._BaseZone_bindCallback_closure(this, registered); | |
3756 else | |
3757 return new P._BaseZone_bindCallback_closure0(this, registered); | |
3758 }, | |
3759 bindUnaryCallback$2$runGuarded: function(f, runGuarded) { | |
3760 var registered = this.registerUnaryCallback$1(f); | |
3761 if (runGuarded) | |
3762 return new P._BaseZone_bindUnaryCallback_closure(this, registered); | |
3763 else | |
3764 return new P._BaseZone_bindUnaryCallback_closure0(this, registered); | |
3765 } | |
3766 }, | |
3767 | |
3768 _BaseZone_bindCallback_closure: {"": "Closure;this_0,registered_1", | |
3769 call$0: function() { | |
3770 return this.this_0.runGuarded$1(this.registered_1); | |
3771 } | |
3772 }, | |
3773 | |
3774 _BaseZone_bindCallback_closure0: {"": "Closure;this_2,registered_3", | |
3775 call$0: function() { | |
3776 return this.this_2.run$1(this.registered_3); | |
3777 } | |
3778 }, | |
3779 | |
3780 _BaseZone_bindUnaryCallback_closure: {"": "Closure;this_0,registered_1", | |
3781 call$1: function(arg) { | |
3782 return this.this_0.runUnaryGuarded$2(this.registered_1, arg); | |
3783 }, | |
3784 $is_args1: true | |
3785 }, | |
3786 | |
3787 _BaseZone_bindUnaryCallback_closure0: {"": "Closure;this_2,registered_3", | |
3788 call$1: function(arg) { | |
3789 return this.this_2.runUnary$2(this.registered_3, arg); | |
3790 }, | |
3791 $is_args1: true | |
3792 }, | |
3793 | |
3794 _rootHandleUncaughtError_closure: {"": "Closure;error_0,stackTrace_1", | |
3795 call$0: function() { | |
3796 P._scheduleAsyncCallback(new P._rootHandleUncaughtError__closure(this.error_
0, this.stackTrace_1)); | |
3797 } | |
3798 }, | |
3799 | |
3800 _rootHandleUncaughtError__closure: {"": "Closure;error_2,stackTrace_3", | |
3801 call$0: function() { | |
3802 var t1, trace; | |
3803 t1 = this.error_2; | |
3804 P.print("Uncaught Error: " + H.S(t1)); | |
3805 trace = this.stackTrace_3; | |
3806 if (trace == null) | |
3807 trace = P.getAttachedStackTrace(t1); | |
3808 P._attachStackTrace(t1, null); | |
3809 if (trace != null) | |
3810 P.print("Stack Trace: \n" + H.S(trace) + "\n"); | |
3811 throw H.wrapException(t1); | |
3812 } | |
3813 }, | |
3814 | |
3815 _RootZone: {"": "_BaseZone;", | |
3816 $index: function(_, key) { | |
3817 return; | |
3818 }, | |
3819 handleUncaughtError$2: function(error, stackTrace) { | |
3820 return P._rootHandleUncaughtError(this, null, this, error, stackTrace); | |
3821 }, | |
3822 run$1: function(f) { | |
3823 return P._rootRun(this, null, this, f); | |
3824 }, | |
3825 runUnary$2: function(f, arg) { | |
3826 return P._rootRunUnary(this, null, this, f, arg); | |
3827 }, | |
3828 registerCallback$1: function(f) { | |
3829 return f; | |
3830 }, | |
3831 registerUnaryCallback$1: function(f) { | |
3832 return f; | |
3833 } | |
3834 }}], | |
3835 ["dart.collection", "dart:collection", , P, { | |
3836 _HashSet__newHashTable: function() { | |
3837 var table = Object.create(null); | |
3838 table["<non-identifier-key>"] = table; | |
3839 delete table["<non-identifier-key>"]; | |
3840 return table; | |
3841 }, | |
3842 | |
3843 _defaultEquals: function(a, b) { | |
3844 return J.$eq(a, b); | |
3845 }, | |
3846 | |
3847 _defaultHashCode: function(a) { | |
3848 return J.get$hashCode$(a); | |
3849 }, | |
3850 | |
3851 HashMap_HashMap: function(equals, hashCode, isValidKey, $K, $V) { | |
3852 var t1 = new P._HashMap(0, null, null, null, null); | |
3853 H.setRuntimeTypeInfo(t1, [$K, $V]); | |
3854 return t1; | |
3855 }, | |
3856 | |
3857 _iterableToString: function(iterable) { | |
3858 var parts, t1; | |
3859 t1 = $.get$_toStringVisiting(); | |
3860 if (t1.contains$1(t1, iterable)) | |
3861 return "(...)"; | |
3862 t1 = $.get$_toStringVisiting(); | |
3863 t1.add$1(t1, iterable); | |
3864 parts = []; | |
3865 try { | |
3866 P._iterablePartsToStrings(iterable, parts); | |
3867 } finally { | |
3868 t1 = $.get$_toStringVisiting(); | |
3869 t1.remove$1(t1, iterable); | |
3870 } | |
3871 t1 = P.StringBuffer$("("); | |
3872 t1.writeAll$2(parts, ", "); | |
3873 t1.write$1(")"); | |
3874 return t1._contents; | |
3875 }, | |
3876 | |
3877 _iterablePartsToStrings: function(iterable, parts) { | |
3878 var it, $length, count, next, ultimateString, penultimateString, penultimate,
ultimate, ultimate0, elision; | |
3879 it = iterable.get$iterator(iterable); | |
3880 $length = 0; | |
3881 count = 0; | |
3882 while (true) { | |
3883 if (!($length < 80 || count < 3)) | |
3884 break; | |
3885 if (!it.moveNext$0()) | |
3886 return; | |
3887 next = H.S(it.get$current()); | |
3888 parts.push(next); | |
3889 $length += next.length + 2; | |
3890 ++count; | |
3891 } | |
3892 if (!it.moveNext$0()) { | |
3893 if (count <= 5) | |
3894 return; | |
3895 if (0 >= parts.length) | |
3896 throw H.ioore(parts, 0); | |
3897 ultimateString = parts.pop(); | |
3898 if (0 >= parts.length) | |
3899 throw H.ioore(parts, 0); | |
3900 penultimateString = parts.pop(); | |
3901 } else { | |
3902 penultimate = it.get$current(); | |
3903 ++count; | |
3904 if (!it.moveNext$0()) { | |
3905 if (count <= 4) { | |
3906 parts.push(H.S(penultimate)); | |
3907 return; | |
3908 } | |
3909 ultimateString = H.S(penultimate); | |
3910 if (0 >= parts.length) | |
3911 throw H.ioore(parts, 0); | |
3912 penultimateString = parts.pop(); | |
3913 $length += ultimateString.length + 2; | |
3914 } else { | |
3915 ultimate = it.get$current(); | |
3916 ++count; | |
3917 for (; it.moveNext$0(); penultimate = ultimate, ultimate = ultimate0) { | |
3918 ultimate0 = it.get$current(); | |
3919 ++count; | |
3920 if (count > 100) { | |
3921 while (true) { | |
3922 if (!($length > 75 && count > 3)) | |
3923 break; | |
3924 if (0 >= parts.length) | |
3925 throw H.ioore(parts, 0); | |
3926 $length -= parts.pop().length + 2; | |
3927 --count; | |
3928 } | |
3929 parts.push("..."); | |
3930 return; | |
3931 } | |
3932 } | |
3933 penultimateString = H.S(penultimate); | |
3934 ultimateString = H.S(ultimate); | |
3935 $length += ultimateString.length + penultimateString.length + 4; | |
3936 } | |
3937 } | |
3938 if (count > parts.length + 2) { | |
3939 $length += 5; | |
3940 elision = "..."; | |
3941 } else | |
3942 elision = null; | |
3943 while (true) { | |
3944 if (!($length > 80 && parts.length > 3)) | |
3945 break; | |
3946 if (0 >= parts.length) | |
3947 throw H.ioore(parts, 0); | |
3948 $length -= parts.pop().length + 2; | |
3949 if (elision == null) { | |
3950 $length += 5; | |
3951 elision = "..."; | |
3952 } | |
3953 } | |
3954 if (elision != null) | |
3955 parts.push(elision); | |
3956 parts.push(penultimateString); | |
3957 parts.push(ultimateString); | |
3958 }, | |
3959 | |
3960 LinkedHashMap_LinkedHashMap: function(equals, hashCode, isValidKey, $K, $V) { | |
3961 var t1 = new P._LinkedHashMap(0, null, null, null, null, null, 0); | |
3962 H.setRuntimeTypeInfo(t1, [$K, $V]); | |
3963 return t1; | |
3964 }, | |
3965 | |
3966 Maps_mapToString: function(m) { | |
3967 var t1, result, i, t2; | |
3968 t1 = {}; | |
3969 for (i = 0; i < $.get$Maps__toStringList().length; ++i) { | |
3970 t2 = $.get$Maps__toStringList(); | |
3971 if (i >= t2.length) | |
3972 throw H.ioore(t2, i); | |
3973 if (t2[i] === m) | |
3974 return "{...}"; | |
3975 } | |
3976 result = P.StringBuffer$(""); | |
3977 try { | |
3978 $.get$Maps__toStringList().push(m); | |
3979 result.write$1("{"); | |
3980 t1.first_0 = true; | |
3981 J.forEach$1$ax(m, new P.Maps_mapToString_closure(t1, result)); | |
3982 result.write$1("}"); | |
3983 } finally { | |
3984 t1 = $.get$Maps__toStringList(); | |
3985 if (0 >= t1.length) | |
3986 throw H.ioore(t1, 0); | |
3987 t1.pop(); | |
3988 } | |
3989 return result.get$_contents(); | |
3990 }, | |
3991 | |
3992 _HashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_keys", | |
3993 get$length: function(_) { | |
3994 return this._collection$_length; | |
3995 }, | |
3996 get$isEmpty: function(_) { | |
3997 return this._collection$_length === 0; | |
3998 }, | |
3999 get$keys: function(_) { | |
4000 var t1 = new P.HashMapKeyIterable(this); | |
4001 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); | |
4002 return t1; | |
4003 }, | |
4004 get$values: function(_) { | |
4005 var t1 = new P.HashMapKeyIterable(this); | |
4006 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_HashMap", 0)]); | |
4007 return H.MappedIterable_MappedIterable(t1, new P._HashMap_values_closure(thi
s), H.getRuntimeTypeArgument(t1, "IterableBase", 0), null); | |
4008 }, | |
4009 $index: function(_, key) { | |
4010 var strings, t1, entry, nums, rest, bucket, index; | |
4011 if (typeof key === "string" && key !== "__proto__") { | |
4012 strings = this._strings; | |
4013 if (strings == null) | |
4014 t1 = null; | |
4015 else { | |
4016 entry = strings[key]; | |
4017 t1 = entry === strings ? null : entry; | |
4018 } | |
4019 return t1; | |
4020 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
4021 nums = this._nums; | |
4022 if (nums == null) | |
4023 t1 = null; | |
4024 else { | |
4025 entry = nums[key]; | |
4026 t1 = entry === nums ? null : entry; | |
4027 } | |
4028 return t1; | |
4029 } else { | |
4030 rest = this._rest; | |
4031 if (rest == null) | |
4032 return; | |
4033 bucket = rest[this._computeHashCode$1(key)]; | |
4034 index = this._findBucketIndex$2(bucket, key); | |
4035 return index < 0 ? null : bucket[index + 1]; | |
4036 } | |
4037 }, | |
4038 $indexSet: function(_, key, value) { | |
4039 var strings, nums, rest, hash, bucket, index; | |
4040 if (typeof key === "string" && key !== "__proto__") { | |
4041 strings = this._strings; | |
4042 if (strings == null) { | |
4043 strings = P._HashMap__newHashTable(); | |
4044 this._strings = strings; | |
4045 } | |
4046 this._addHashTableEntry$3(strings, key, value); | |
4047 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
4048 nums = this._nums; | |
4049 if (nums == null) { | |
4050 nums = P._HashMap__newHashTable(); | |
4051 this._nums = nums; | |
4052 } | |
4053 this._addHashTableEntry$3(nums, key, value); | |
4054 } else { | |
4055 rest = this._rest; | |
4056 if (rest == null) { | |
4057 rest = P._HashMap__newHashTable(); | |
4058 this._rest = rest; | |
4059 } | |
4060 hash = this._computeHashCode$1(key); | |
4061 bucket = rest[hash]; | |
4062 if (bucket == null) { | |
4063 P._HashMap__setTableEntry(rest, hash, [key, value]); | |
4064 this._collection$_length = this._collection$_length + 1; | |
4065 this._keys = null; | |
4066 } else { | |
4067 index = this._findBucketIndex$2(bucket, key); | |
4068 if (index >= 0) | |
4069 bucket[index + 1] = value; | |
4070 else { | |
4071 bucket.push(key, value); | |
4072 this._collection$_length = this._collection$_length + 1; | |
4073 this._keys = null; | |
4074 } | |
4075 } | |
4076 } | |
4077 }, | |
4078 forEach$1: function(_, action) { | |
4079 var keys, $length, i, key; | |
4080 keys = this._computeKeys$0(); | |
4081 for ($length = keys.length, i = 0; i < $length; ++i) { | |
4082 key = keys[i]; | |
4083 action.call$2(key, this.$index(this, key)); | |
4084 if (keys !== this._keys) | |
4085 throw H.wrapException(P.ConcurrentModificationError$(this)); | |
4086 } | |
4087 }, | |
4088 _computeKeys$0: function() { | |
4089 var t1, result, strings, names, entries, index, i, nums, rest, bucket, $leng
th, i0; | |
4090 t1 = this._keys; | |
4091 if (t1 != null) | |
4092 return t1; | |
4093 result = P.List_List(this._collection$_length, null); | |
4094 strings = this._strings; | |
4095 if (strings != null) { | |
4096 names = Object.getOwnPropertyNames(strings); | |
4097 entries = names.length; | |
4098 for (index = 0, i = 0; i < entries; ++i) { | |
4099 result[index] = names[i]; | |
4100 ++index; | |
4101 } | |
4102 } else | |
4103 index = 0; | |
4104 nums = this._nums; | |
4105 if (nums != null) { | |
4106 names = Object.getOwnPropertyNames(nums); | |
4107 entries = names.length; | |
4108 for (i = 0; i < entries; ++i) { | |
4109 result[index] = +names[i]; | |
4110 ++index; | |
4111 } | |
4112 } | |
4113 rest = this._rest; | |
4114 if (rest != null) { | |
4115 names = Object.getOwnPropertyNames(rest); | |
4116 entries = names.length; | |
4117 for (i = 0; i < entries; ++i) { | |
4118 bucket = rest[names[i]]; | |
4119 $length = bucket.length; | |
4120 for (i0 = 0; i0 < $length; i0 += 2) { | |
4121 result[index] = bucket[i0]; | |
4122 ++index; | |
4123 } | |
4124 } | |
4125 } | |
4126 this._keys = result; | |
4127 return result; | |
4128 }, | |
4129 _addHashTableEntry$3: function(table, key, value) { | |
4130 if (table[key] == null) { | |
4131 this._collection$_length = this._collection$_length + 1; | |
4132 this._keys = null; | |
4133 } | |
4134 P._HashMap__setTableEntry(table, key, value); | |
4135 }, | |
4136 _computeHashCode$1: function(key) { | |
4137 return J.get$hashCode$(key) & 0x3ffffff; | |
4138 }, | |
4139 _findBucketIndex$2: function(bucket, key) { | |
4140 var $length, i; | |
4141 if (bucket == null) | |
4142 return -1; | |
4143 $length = bucket.length; | |
4144 for (i = 0; i < $length; i += 2) | |
4145 if (J.$eq(bucket[i], key)) | |
4146 return i; | |
4147 return -1; | |
4148 }, | |
4149 $isMap: true, | |
4150 $asMap: null, | |
4151 static: { | |
4152 _HashMap__setTableEntry: function(table, key, value) { | |
4153 if (value == null) | |
4154 table[key] = table; | |
4155 else | |
4156 table[key] = value; | |
4157 }, | |
4158 | |
4159 _HashMap__newHashTable: function() { | |
4160 var table = Object.create(null); | |
4161 P._HashMap__setTableEntry(table, "<non-identifier-key>", table); | |
4162 delete table["<non-identifier-key>"]; | |
4163 return table; | |
4164 }} | |
4165 | |
4166 }, | |
4167 | |
4168 _HashMap_values_closure: {"": "Closure;this_0", | |
4169 call$1: function(each) { | |
4170 var t1 = this.this_0; | |
4171 return t1.$index(t1, each); | |
4172 }, | |
4173 $is_args1: true | |
4174 }, | |
4175 | |
4176 HashMapKeyIterable: {"": "IterableBase;_map", | |
4177 get$length: function(_) { | |
4178 return this._map._collection$_length; | |
4179 }, | |
4180 get$isEmpty: function(_) { | |
4181 return this._map._collection$_length === 0; | |
4182 }, | |
4183 get$iterator: function(_) { | |
4184 var t1 = this._map; | |
4185 return new P.HashMapKeyIterator(t1, t1._computeKeys$0(), 0, null); | |
4186 }, | |
4187 forEach$1: function(_, f) { | |
4188 var t1, keys, $length, i; | |
4189 t1 = this._map; | |
4190 keys = t1._computeKeys$0(); | |
4191 for ($length = keys.length, i = 0; i < $length; ++i) { | |
4192 f.call$1(keys[i]); | |
4193 if (keys !== t1._keys) | |
4194 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4195 } | |
4196 }, | |
4197 $asIterableBase: null, | |
4198 $isEfficientLength: true | |
4199 }, | |
4200 | |
4201 HashMapKeyIterator: {"": "Object;_map,_keys,_offset,_collection$_current", | |
4202 get$current: function() { | |
4203 return this._collection$_current; | |
4204 }, | |
4205 moveNext$0: function() { | |
4206 var keys, offset, t1; | |
4207 keys = this._keys; | |
4208 offset = this._offset; | |
4209 t1 = this._map; | |
4210 if (keys !== t1._keys) | |
4211 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4212 else if (offset >= keys.length) { | |
4213 this._collection$_current = null; | |
4214 return false; | |
4215 } else { | |
4216 this._collection$_current = keys[offset]; | |
4217 this._offset = offset + 1; | |
4218 return true; | |
4219 } | |
4220 } | |
4221 }, | |
4222 | |
4223 _LinkedHashMap: {"": "Object;_collection$_length,_strings,_nums,_rest,_first,_la
st,_modifications", | |
4224 get$length: function(_) { | |
4225 return this._collection$_length; | |
4226 }, | |
4227 get$isEmpty: function(_) { | |
4228 return this._collection$_length === 0; | |
4229 }, | |
4230 get$keys: function(_) { | |
4231 var t1 = new P.LinkedHashMapKeyIterable(this); | |
4232 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0
)]); | |
4233 return t1; | |
4234 }, | |
4235 get$values: function(_) { | |
4236 var t1 = new P.LinkedHashMapKeyIterable(this); | |
4237 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_LinkedHashMap", 0
)]); | |
4238 return H.MappedIterable_MappedIterable(t1, new P._LinkedHashMap_values_closu
re(this), H.getRuntimeTypeArgument(t1, "IterableBase", 0), null); | |
4239 }, | |
4240 containsKey$1: function(_, key) { | |
4241 var nums, rest; | |
4242 if ((key & 0x3ffffff) === key) { | |
4243 nums = this._nums; | |
4244 if (nums == null) | |
4245 return false; | |
4246 return nums[key] != null; | |
4247 } else { | |
4248 rest = this._rest; | |
4249 if (rest == null) | |
4250 return false; | |
4251 return this._findBucketIndex$2(rest[this._computeHashCode$1(key)], key) >=
0; | |
4252 } | |
4253 }, | |
4254 $index: function(_, key) { | |
4255 var strings, cell, nums, rest, bucket, index; | |
4256 if (typeof key === "string" && key !== "__proto__") { | |
4257 strings = this._strings; | |
4258 if (strings == null) | |
4259 return; | |
4260 cell = strings[key]; | |
4261 return cell == null ? null : cell.get$_collection$_value(); | |
4262 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
4263 nums = this._nums; | |
4264 if (nums == null) | |
4265 return; | |
4266 cell = nums[key]; | |
4267 return cell == null ? null : cell.get$_collection$_value(); | |
4268 } else { | |
4269 rest = this._rest; | |
4270 if (rest == null) | |
4271 return; | |
4272 bucket = rest[this._computeHashCode$1(key)]; | |
4273 index = this._findBucketIndex$2(bucket, key); | |
4274 if (index < 0) | |
4275 return; | |
4276 return bucket[index].get$_collection$_value(); | |
4277 } | |
4278 }, | |
4279 $indexSet: function(_, key, value) { | |
4280 var strings, nums, rest, hash, bucket, index; | |
4281 if (typeof key === "string" && key !== "__proto__") { | |
4282 strings = this._strings; | |
4283 if (strings == null) { | |
4284 strings = P._LinkedHashMap__newHashTable(); | |
4285 this._strings = strings; | |
4286 } | |
4287 this._addHashTableEntry$3(strings, key, value); | |
4288 } else if (typeof key === "number" && (key & 0x3ffffff) === key) { | |
4289 nums = this._nums; | |
4290 if (nums == null) { | |
4291 nums = P._LinkedHashMap__newHashTable(); | |
4292 this._nums = nums; | |
4293 } | |
4294 this._addHashTableEntry$3(nums, key, value); | |
4295 } else { | |
4296 rest = this._rest; | |
4297 if (rest == null) { | |
4298 rest = P._LinkedHashMap__newHashTable(); | |
4299 this._rest = rest; | |
4300 } | |
4301 hash = this._computeHashCode$1(key); | |
4302 bucket = rest[hash]; | |
4303 if (bucket == null) | |
4304 rest[hash] = [this._newLinkedCell$2(key, value)]; | |
4305 else { | |
4306 index = this._findBucketIndex$2(bucket, key); | |
4307 if (index >= 0) | |
4308 bucket[index].set$_collection$_value(value); | |
4309 else | |
4310 bucket.push(this._newLinkedCell$2(key, value)); | |
4311 } | |
4312 } | |
4313 }, | |
4314 remove$1: function(_, key) { | |
4315 var rest, bucket, index, cell; | |
4316 if (typeof key === "string" && key !== "__proto__") | |
4317 return this._removeHashTableEntry$2(this._strings, key); | |
4318 else if (typeof key === "number" && (key & 0x3ffffff) === key) | |
4319 return this._removeHashTableEntry$2(this._nums, key); | |
4320 else { | |
4321 rest = this._rest; | |
4322 if (rest == null) | |
4323 return; | |
4324 bucket = rest[this._computeHashCode$1(key)]; | |
4325 index = this._findBucketIndex$2(bucket, key); | |
4326 if (index < 0) | |
4327 return; | |
4328 cell = bucket.splice(index, 1)[0]; | |
4329 this._unlinkCell$1(cell); | |
4330 return cell.get$_collection$_value(); | |
4331 } | |
4332 }, | |
4333 forEach$1: function(_, action) { | |
4334 var cell, modifications; | |
4335 cell = this._first; | |
4336 modifications = this._modifications; | |
4337 for (; cell != null;) { | |
4338 action.call$2(cell._key, cell._collection$_value); | |
4339 if (modifications !== this._modifications) | |
4340 throw H.wrapException(P.ConcurrentModificationError$(this)); | |
4341 cell = cell._next; | |
4342 } | |
4343 }, | |
4344 _addHashTableEntry$3: function(table, key, value) { | |
4345 var cell = table[key]; | |
4346 if (cell == null) | |
4347 table[key] = this._newLinkedCell$2(key, value); | |
4348 else | |
4349 cell.set$_collection$_value(value); | |
4350 }, | |
4351 _removeHashTableEntry$2: function(table, key) { | |
4352 var cell; | |
4353 if (table == null) | |
4354 return; | |
4355 cell = table[key]; | |
4356 if (cell == null) | |
4357 return; | |
4358 this._unlinkCell$1(cell); | |
4359 delete table[key]; | |
4360 return cell.get$_collection$_value(); | |
4361 }, | |
4362 _newLinkedCell$2: function(key, value) { | |
4363 var cell, last; | |
4364 cell = new P.LinkedHashMapCell(key, value, null, null); | |
4365 if (this._first == null) { | |
4366 this._last = cell; | |
4367 this._first = cell; | |
4368 } else { | |
4369 last = this._last; | |
4370 cell._previous = last; | |
4371 last._next = cell; | |
4372 this._last = cell; | |
4373 } | |
4374 this._collection$_length = this._collection$_length + 1; | |
4375 this._modifications = this._modifications + 1 & 67108863; | |
4376 return cell; | |
4377 }, | |
4378 _unlinkCell$1: function(cell) { | |
4379 var previous, next; | |
4380 previous = cell.get$_previous(); | |
4381 next = cell.get$_next(); | |
4382 if (previous == null) | |
4383 this._first = next; | |
4384 else | |
4385 previous._next = next; | |
4386 if (next == null) | |
4387 this._last = previous; | |
4388 else | |
4389 next._previous = previous; | |
4390 this._collection$_length = this._collection$_length - 1; | |
4391 this._modifications = this._modifications + 1 & 67108863; | |
4392 }, | |
4393 _computeHashCode$1: function(key) { | |
4394 return J.get$hashCode$(key) & 0x3ffffff; | |
4395 }, | |
4396 _findBucketIndex$2: function(bucket, key) { | |
4397 var $length, i; | |
4398 if (bucket == null) | |
4399 return -1; | |
4400 $length = bucket.length; | |
4401 for (i = 0; i < $length; ++i) | |
4402 if (J.$eq(J.get$_key$x(bucket[i]), key)) | |
4403 return i; | |
4404 return -1; | |
4405 }, | |
4406 toString$0: function(_) { | |
4407 return P.Maps_mapToString(this); | |
4408 }, | |
4409 $isMap: true, | |
4410 $asMap: null, | |
4411 static: { | |
4412 _LinkedHashMap__newHashTable: function() { | |
4413 var table = Object.create(null); | |
4414 table["<non-identifier-key>"] = table; | |
4415 delete table["<non-identifier-key>"]; | |
4416 return table; | |
4417 }} | |
4418 | |
4419 }, | |
4420 | |
4421 _LinkedHashMap_values_closure: {"": "Closure;this_0", | |
4422 call$1: function(each) { | |
4423 var t1 = this.this_0; | |
4424 return t1.$index(t1, each); | |
4425 }, | |
4426 $is_args1: true | |
4427 }, | |
4428 | |
4429 LinkedHashMapCell: {"": "Object;_key>,_collection$_value@,_next<,_previous<"}, | |
4430 | |
4431 LinkedHashMapKeyIterable: {"": "IterableBase;_map", | |
4432 get$length: function(_) { | |
4433 return this._map._collection$_length; | |
4434 }, | |
4435 get$isEmpty: function(_) { | |
4436 return this._map._collection$_length === 0; | |
4437 }, | |
4438 get$iterator: function(_) { | |
4439 var t1 = this._map; | |
4440 t1 = new P.LinkedHashMapKeyIterator(t1, t1._modifications, null, null); | |
4441 t1._cell = t1._map._first; | |
4442 return t1; | |
4443 }, | |
4444 forEach$1: function(_, f) { | |
4445 var t1, cell, modifications; | |
4446 t1 = this._map; | |
4447 cell = t1._first; | |
4448 modifications = t1._modifications; | |
4449 for (; cell != null;) { | |
4450 f.call$1(cell._key); | |
4451 if (modifications !== t1._modifications) | |
4452 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4453 cell = cell._next; | |
4454 } | |
4455 }, | |
4456 $asIterableBase: null, | |
4457 $isEfficientLength: true | |
4458 }, | |
4459 | |
4460 LinkedHashMapKeyIterator: {"": "Object;_map,_modifications,_cell,_collection$_cu
rrent", | |
4461 get$current: function() { | |
4462 return this._collection$_current; | |
4463 }, | |
4464 moveNext$0: function() { | |
4465 var t1 = this._map; | |
4466 if (this._modifications !== t1._modifications) | |
4467 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4468 else { | |
4469 t1 = this._cell; | |
4470 if (t1 == null) { | |
4471 this._collection$_current = null; | |
4472 return false; | |
4473 } else { | |
4474 this._collection$_current = t1._key; | |
4475 this._cell = this._cell._next; | |
4476 return true; | |
4477 } | |
4478 } | |
4479 } | |
4480 }, | |
4481 | |
4482 _HashSet: {"": "_HashSetBase;", | |
4483 get$iterator: function(_) { | |
4484 return new P.HashSetIterator(this, this._computeElements$0(), 0, null); | |
4485 }, | |
4486 get$length: function(_) { | |
4487 return this._collection$_length; | |
4488 }, | |
4489 get$isEmpty: function(_) { | |
4490 return this._collection$_length === 0; | |
4491 }, | |
4492 contains$1: function(_, object) { | |
4493 var strings, nums, rest; | |
4494 if (typeof object === "string" && object !== "__proto__") { | |
4495 strings = this._strings; | |
4496 return strings == null ? false : strings[object] != null; | |
4497 } else if (typeof object === "number" && (object & 0x3ffffff) === object) { | |
4498 nums = this._nums; | |
4499 return nums == null ? false : nums[object] != null; | |
4500 } else { | |
4501 rest = this._rest; | |
4502 if (rest == null) | |
4503 return false; | |
4504 return this._findBucketIndex$2(rest[this._computeHashCode$1(object)], obje
ct) >= 0; | |
4505 } | |
4506 }, | |
4507 lookup$1: function(object) { | |
4508 var t1, rest, bucket, index; | |
4509 if (!(typeof object === "string" && object !== "__proto__")) | |
4510 t1 = typeof object === "number" && (object & 0x3ffffff) === object; | |
4511 else | |
4512 t1 = true; | |
4513 if (t1) | |
4514 return this.contains$1(this, object) ? object : null; | |
4515 rest = this._rest; | |
4516 if (rest == null) | |
4517 return; | |
4518 bucket = rest[this._computeHashCode$1(object)]; | |
4519 index = this._findBucketIndex$2(bucket, object); | |
4520 if (index < 0) | |
4521 return; | |
4522 return J.$index$asx(bucket, index); | |
4523 }, | |
4524 add$1: function(_, element) { | |
4525 var rest, hash, bucket; | |
4526 rest = this._rest; | |
4527 if (rest == null) { | |
4528 rest = P._HashSet__newHashTable(); | |
4529 this._rest = rest; | |
4530 } | |
4531 hash = this._computeHashCode$1(element); | |
4532 bucket = rest[hash]; | |
4533 if (bucket == null) | |
4534 rest[hash] = [element]; | |
4535 else { | |
4536 if (this._findBucketIndex$2(bucket, element) >= 0) | |
4537 return false; | |
4538 bucket.push(element); | |
4539 } | |
4540 this._collection$_length = this._collection$_length + 1; | |
4541 this._elements = null; | |
4542 return true; | |
4543 }, | |
4544 remove$1: function(_, object) { | |
4545 var rest, bucket, index; | |
4546 rest = this._rest; | |
4547 if (rest == null) | |
4548 return false; | |
4549 bucket = rest[this._computeHashCode$1(object)]; | |
4550 index = this._findBucketIndex$2(bucket, object); | |
4551 if (index < 0) | |
4552 return false; | |
4553 this._collection$_length = this._collection$_length - 1; | |
4554 this._elements = null; | |
4555 bucket.splice(index, 1); | |
4556 return true; | |
4557 }, | |
4558 _computeElements$0: function() { | |
4559 var t1, result, strings, names, entries, index, i, nums, rest, bucket, $leng
th, i0; | |
4560 t1 = this._elements; | |
4561 if (t1 != null) | |
4562 return t1; | |
4563 result = P.List_List(this._collection$_length, null); | |
4564 strings = this._strings; | |
4565 if (strings != null) { | |
4566 names = Object.getOwnPropertyNames(strings); | |
4567 entries = names.length; | |
4568 for (index = 0, i = 0; i < entries; ++i) { | |
4569 result[index] = names[i]; | |
4570 ++index; | |
4571 } | |
4572 } else | |
4573 index = 0; | |
4574 nums = this._nums; | |
4575 if (nums != null) { | |
4576 names = Object.getOwnPropertyNames(nums); | |
4577 entries = names.length; | |
4578 for (i = 0; i < entries; ++i) { | |
4579 result[index] = +names[i]; | |
4580 ++index; | |
4581 } | |
4582 } | |
4583 rest = this._rest; | |
4584 if (rest != null) { | |
4585 names = Object.getOwnPropertyNames(rest); | |
4586 entries = names.length; | |
4587 for (i = 0; i < entries; ++i) { | |
4588 bucket = rest[names[i]]; | |
4589 $length = bucket.length; | |
4590 for (i0 = 0; i0 < $length; ++i0) { | |
4591 result[index] = bucket[i0]; | |
4592 ++index; | |
4593 } | |
4594 } | |
4595 } | |
4596 this._elements = result; | |
4597 return result; | |
4598 }, | |
4599 _computeHashCode$1: function(element) { | |
4600 return J.get$hashCode$(element) & 0x3ffffff; | |
4601 }, | |
4602 _findBucketIndex$2: function(bucket, element) { | |
4603 var $length, i; | |
4604 if (bucket == null) | |
4605 return -1; | |
4606 $length = bucket.length; | |
4607 for (i = 0; i < $length; ++i) | |
4608 if (J.$eq(bucket[i], element)) | |
4609 return i; | |
4610 return -1; | |
4611 }, | |
4612 $as_HashSetBase: null, | |
4613 $isEfficientLength: true | |
4614 }, | |
4615 | |
4616 _IdentityHashSet: {"": "_HashSet;_collection$_length,_strings,_nums,_rest,_eleme
nts", | |
4617 _computeHashCode$1: function(key) { | |
4618 return H.objectHashCode(key) & 0x3ffffff; | |
4619 }, | |
4620 _findBucketIndex$2: function(bucket, element) { | |
4621 var $length, i, t1; | |
4622 if (bucket == null) | |
4623 return -1; | |
4624 $length = bucket.length; | |
4625 for (i = 0; i < $length; ++i) { | |
4626 t1 = bucket[i]; | |
4627 if (t1 == null ? element == null : t1 === element) | |
4628 return i; | |
4629 } | |
4630 return -1; | |
4631 }, | |
4632 $as_HashSet: null | |
4633 }, | |
4634 | |
4635 HashSetIterator: {"": "Object;_set,_elements,_offset,_collection$_current", | |
4636 get$current: function() { | |
4637 return this._collection$_current; | |
4638 }, | |
4639 moveNext$0: function() { | |
4640 var elements, offset, t1; | |
4641 elements = this._elements; | |
4642 offset = this._offset; | |
4643 t1 = this._set; | |
4644 if (elements !== t1._elements) | |
4645 throw H.wrapException(P.ConcurrentModificationError$(t1)); | |
4646 else if (offset >= elements.length) { | |
4647 this._collection$_current = null; | |
4648 return false; | |
4649 } else { | |
4650 this._collection$_current = elements[offset]; | |
4651 this._offset = offset + 1; | |
4652 return true; | |
4653 } | |
4654 } | |
4655 }, | |
4656 | |
4657 _HashSetBase: {"": "IterableBase;", | |
4658 toString$0: function(_) { | |
4659 return H.IterableMixinWorkaround_toStringIterable(this, "{", "}"); | |
4660 }, | |
4661 $asIterableBase: null, | |
4662 $isEfficientLength: true | |
4663 }, | |
4664 | |
4665 HashSet: {"": "Object;", $isEfficientLength: true, static: { | |
4666 HashSet_HashSet$identity: function($E) { | |
4667 var t1 = new P._IdentityHashSet(0, null, null, null, null); | |
4668 H.setRuntimeTypeInfo(t1, [$E]); | |
4669 return t1; | |
4670 }} | |
4671 }, | |
4672 | |
4673 IterableBase: {"": "Object;", | |
4674 forEach$1: function(_, f) { | |
4675 var t1; | |
4676 for (t1 = this.get$iterator(this); t1.moveNext$0();) | |
4677 f.call$1(t1.get$current()); | |
4678 }, | |
4679 toList$1$growable: function(_, growable) { | |
4680 return P.List_List$from(this, growable, H.getRuntimeTypeArgument(this, "Iter
ableBase", 0)); | |
4681 }, | |
4682 toList$0: function($receiver) { | |
4683 return this.toList$1$growable($receiver, true); | |
4684 }, | |
4685 get$length: function(_) { | |
4686 var it, count; | |
4687 it = this.get$iterator(this); | |
4688 for (count = 0; it.moveNext$0();) | |
4689 ++count; | |
4690 return count; | |
4691 }, | |
4692 get$isEmpty: function(_) { | |
4693 return !this.get$iterator(this).moveNext$0(); | |
4694 }, | |
4695 elementAt$1: function(_, index) { | |
4696 var t1, remaining, element; | |
4697 if (index < 0) | |
4698 throw H.wrapException(P.RangeError$value(index)); | |
4699 for (t1 = this.get$iterator(this), remaining = index; t1.moveNext$0();) { | |
4700 element = t1.get$current(); | |
4701 if (remaining === 0) | |
4702 return element; | |
4703 --remaining; | |
4704 } | |
4705 throw H.wrapException(P.RangeError$value(index)); | |
4706 }, | |
4707 toString$0: function(_) { | |
4708 return P._iterableToString(this); | |
4709 } | |
4710 }, | |
4711 | |
4712 ListMixin: {"": "Object;", | |
4713 get$iterator: function(receiver) { | |
4714 return new H.ListIterator(receiver, this.get$length(receiver), 0, null); | |
4715 }, | |
4716 elementAt$1: function(receiver, index) { | |
4717 return this.$index(receiver, index); | |
4718 }, | |
4719 forEach$1: function(receiver, action) { | |
4720 var $length, i; | |
4721 $length = this.get$length(receiver); | |
4722 for (i = 0; i < $length; ++i) { | |
4723 action.call$1(this.$index(receiver, i)); | |
4724 if ($length !== this.get$length(receiver)) | |
4725 throw H.wrapException(P.ConcurrentModificationError$(receiver)); | |
4726 } | |
4727 }, | |
4728 get$isEmpty: function(receiver) { | |
4729 return this.get$length(receiver) === 0; | |
4730 }, | |
4731 toString$0: function(receiver) { | |
4732 var result, t1; | |
4733 t1 = $.get$_toStringVisiting(); | |
4734 if (t1.contains$1(t1, receiver)) | |
4735 return "[...]"; | |
4736 result = P.StringBuffer$(""); | |
4737 try { | |
4738 t1 = $.get$_toStringVisiting(); | |
4739 t1.add$1(t1, receiver); | |
4740 result.write$1("["); | |
4741 result.writeAll$2(receiver, ", "); | |
4742 result.write$1("]"); | |
4743 } finally { | |
4744 t1 = $.get$_toStringVisiting(); | |
4745 t1.remove$1(t1, receiver); | |
4746 } | |
4747 return result.get$_contents(); | |
4748 }, | |
4749 $isList: true, | |
4750 $asList: null, | |
4751 $isEfficientLength: true | |
4752 }, | |
4753 | |
4754 Maps_mapToString_closure: {"": "Closure;box_0,result_1", | |
4755 call$2: function(k, v) { | |
4756 var t1 = this.box_0; | |
4757 if (!t1.first_0) | |
4758 this.result_1.write$1(", "); | |
4759 t1.first_0 = false; | |
4760 t1 = this.result_1; | |
4761 t1.write$1(k); | |
4762 t1.write$1(": "); | |
4763 t1.write$1(v); | |
4764 }, | |
4765 $is_args2: true | |
4766 }, | |
4767 | |
4768 ListQueue: {"": "IterableBase;_table,_head,_tail,_modificationCount", | |
4769 get$iterator: function(_) { | |
4770 return P._ListQueueIterator$(this); | |
4771 }, | |
4772 forEach$1: function(_, action) { | |
4773 var modificationCount, i, t1; | |
4774 modificationCount = this._modificationCount; | |
4775 for (i = this._head; i !== this._tail; i = (i + 1 & this._table.length - 1)
>>> 0) { | |
4776 t1 = this._table; | |
4777 if (i < 0 || i >= t1.length) | |
4778 throw H.ioore(t1, i); | |
4779 action.call$1(t1[i]); | |
4780 if (modificationCount !== this._modificationCount) | |
4781 H.throwExpression(P.ConcurrentModificationError$(this)); | |
4782 } | |
4783 }, | |
4784 get$isEmpty: function(_) { | |
4785 return this._head === this._tail; | |
4786 }, | |
4787 get$length: function(_) { | |
4788 return (this._tail - this._head & this._table.length - 1) >>> 0; | |
4789 }, | |
4790 toString$0: function(_) { | |
4791 return H.IterableMixinWorkaround_toStringIterable(this, "{", "}"); | |
4792 }, | |
4793 removeFirst$0: function() { | |
4794 var t1, t2, t3, result; | |
4795 if (this._head === this._tail) | |
4796 throw H.wrapException(P.StateError$("No elements")); | |
4797 this._modificationCount = this._modificationCount + 1; | |
4798 t1 = this._table; | |
4799 t2 = this._head; | |
4800 t3 = t1.length; | |
4801 if (t2 < 0 || t2 >= t3) | |
4802 throw H.ioore(t1, t2); | |
4803 result = t1[t2]; | |
4804 this._head = (t2 + 1 & t3 - 1) >>> 0; | |
4805 return result; | |
4806 }, | |
4807 _add$1: function(element) { | |
4808 var t1, t2, t3; | |
4809 t1 = this._table; | |
4810 t2 = this._tail; | |
4811 t3 = t1.length; | |
4812 if (t2 < 0 || t2 >= t3) | |
4813 throw H.ioore(t1, t2); | |
4814 t1[t2] = element; | |
4815 this._tail = (t2 + 1 & t3 - 1) >>> 0; | |
4816 if (this._head === this._tail) | |
4817 this._grow$0(); | |
4818 this._modificationCount = this._modificationCount + 1; | |
4819 }, | |
4820 _grow$0: function() { | |
4821 var newTable, t1, t2, split; | |
4822 newTable = P.List_List(this._table.length * 2, H.getRuntimeTypeArgument(this
, "ListQueue", 0)); | |
4823 H.setRuntimeTypeInfo(newTable, [H.getRuntimeTypeArgument(this, "ListQueue",
0)]); | |
4824 t1 = this._table; | |
4825 t2 = this._head; | |
4826 split = t1.length - t2; | |
4827 H.IterableMixinWorkaround_setRangeList(newTable, 0, split, t1, t2); | |
4828 t1 = this._head; | |
4829 t2 = this._table; | |
4830 H.IterableMixinWorkaround_setRangeList(newTable, split, split + t1, t2, 0); | |
4831 this._head = 0; | |
4832 this._tail = this._table.length; | |
4833 this._table = newTable; | |
4834 }, | |
4835 ListQueue$1: function(initialCapacity, $E) { | |
4836 var t1 = P.List_List(8, $E); | |
4837 H.setRuntimeTypeInfo(t1, [$E]); | |
4838 this._table = t1; | |
4839 }, | |
4840 $asIterableBase: null, | |
4841 $isEfficientLength: true, | |
4842 static: { | |
4843 "": "ListQueue__INITIAL_CAPACITY", | |
4844 ListQueue$: function(initialCapacity, $E) { | |
4845 var t1 = new P.ListQueue(null, 0, 0, 0); | |
4846 H.setRuntimeTypeInfo(t1, [$E]); | |
4847 t1.ListQueue$1(initialCapacity, $E); | |
4848 return t1; | |
4849 }} | |
4850 | |
4851 }, | |
4852 | |
4853 _ListQueueIterator: {"": "Object;_queue,_end,_modificationCount,_position,_colle
ction$_current", | |
4854 get$current: function() { | |
4855 return this._collection$_current; | |
4856 }, | |
4857 moveNext$0: function() { | |
4858 var t1, t2, t3; | |
4859 t1 = this._queue; | |
4860 if (this._modificationCount !== t1._modificationCount) | |
4861 H.throwExpression(P.ConcurrentModificationError$(t1)); | |
4862 t2 = this._position; | |
4863 if (t2 === this._end) { | |
4864 this._collection$_current = null; | |
4865 return false; | |
4866 } | |
4867 t3 = t1._table; | |
4868 if (t2 < 0 || t2 >= t3.length) | |
4869 throw H.ioore(t3, t2); | |
4870 this._collection$_current = t3[t2]; | |
4871 this._position = (this._position + 1 & t1._table.length - 1) >>> 0; | |
4872 return true; | |
4873 }, | |
4874 static: { | |
4875 _ListQueueIterator$: function(queue) { | |
4876 return new P._ListQueueIterator(queue, queue._tail, queue._modificationCount,
queue._head, null); | |
4877 }} | |
4878 | |
4879 }}], | |
4880 ["dart.convert", "dart:convert", , P, { | |
4881 _convertJsonToDart: function(json, reviver) { | |
4882 var revive = new P._convertJsonToDart_closure(); | |
4883 return revive.call$2(null, new P._convertJsonToDart_walk(revive).call$1(json))
; | |
4884 }, | |
4885 | |
4886 _parseJson: function(source, reviver) { | |
4887 var parsed, e, t1, exception; | |
4888 t1 = source; | |
4889 if (typeof t1 !== "string") | |
4890 throw H.wrapException(new P.ArgumentError(source)); | |
4891 parsed = null; | |
4892 try { | |
4893 parsed = JSON.parse(source); | |
4894 } catch (exception) { | |
4895 t1 = H.unwrapException(exception); | |
4896 e = t1; | |
4897 throw H.wrapException(P.FormatException$(String(e))); | |
4898 } | |
4899 | |
4900 return P._convertJsonToDart(parsed, reviver); | |
4901 }, | |
4902 | |
4903 _convertJsonToDart_closure: {"": "Closure;", | |
4904 call$2: function(key, value) { | |
4905 return value; | |
4906 }, | |
4907 $is_args2: true | |
4908 }, | |
4909 | |
4910 _convertJsonToDart_walk: {"": "Closure;revive_0", | |
4911 call$1: function(e) { | |
4912 var list, t1, i, keys, map, key, proto; | |
4913 if (e == null || typeof e != "object") | |
4914 return e; | |
4915 if (Object.getPrototypeOf(e) === Array.prototype) { | |
4916 list = e; | |
4917 for (t1 = this.revive_0, i = 0; i < list.length; ++i) | |
4918 list[i] = t1.call$2(i, this.call$1(list[i])); | |
4919 return list; | |
4920 } | |
4921 keys = Object.keys(e); | |
4922 map = H.fillLiteralMap([], P.LinkedHashMap_LinkedHashMap(null, null, null, n
ull, null)); | |
4923 for (t1 = this.revive_0, i = 0; i < keys.length; ++i) { | |
4924 key = keys[i]; | |
4925 map.$indexSet(map, key, t1.call$2(key, this.call$1(e[key]))); | |
4926 } | |
4927 proto = e.__proto__; | |
4928 if (typeof proto !== "undefined" && proto !== Object.prototype) | |
4929 map.$indexSet(map, "__proto__", t1.call$2("__proto__", this.call$1(proto))
); | |
4930 return map; | |
4931 }, | |
4932 $is_args1: true | |
4933 }, | |
4934 | |
4935 Codec: {"": "Object;"}, | |
4936 | |
4937 Converter: {"": "Object;"}, | |
4938 | |
4939 JsonCodec: {"": "Codec;", | |
4940 decode$2$reviver: function(source, reviver) { | |
4941 return P._parseJson(source, C.JsonDecoder_null._reviver); | |
4942 }, | |
4943 decode$1: function(source) { | |
4944 return this.decode$2$reviver(source, null); | |
4945 } | |
4946 }, | |
4947 | |
4948 JsonDecoder: {"": "Converter;_reviver"}}], | |
4949 ["dart.core", "dart:core", , P, { | |
4950 _symbolToString: function(symbol) { | |
4951 return H.Symbol_getName(symbol); | |
4952 }, | |
4953 | |
4954 Error_safeToString: function(object) { | |
4955 var buffer, t1, i, codeUnit, t2, charCodes; | |
4956 if (typeof object === "number" && Math.floor(object) === object || typeof obje
ct === "number" || typeof object === "boolean" || null == object) | |
4957 return J.toString$0(object); | |
4958 if (typeof object === "string") { | |
4959 buffer = new P.StringBuffer(""); | |
4960 buffer._contents = "\""; | |
4961 for (t1 = object.length, i = 0; i < t1; ++i) { | |
4962 codeUnit = C.JSString_methods.codeUnitAt$1(object, i); | |
4963 if (codeUnit <= 31) | |
4964 if (codeUnit === 10) | |
4965 buffer._contents = buffer._contents + "\\n"; | |
4966 else if (codeUnit === 13) | |
4967 buffer._contents = buffer._contents + "\\r"; | |
4968 else if (codeUnit === 9) | |
4969 buffer._contents = buffer._contents + "\\t"; | |
4970 else { | |
4971 buffer._contents = buffer._contents + "\\x"; | |
4972 if (codeUnit < 16) | |
4973 buffer._contents = buffer._contents + "0"; | |
4974 else { | |
4975 buffer._contents = buffer._contents + "1"; | |
4976 codeUnit -= 16; | |
4977 } | |
4978 t2 = codeUnit < 10 ? 48 + codeUnit : 87 + codeUnit; | |
4979 charCodes = P.List_List$filled(1, t2, J.JSInt); | |
4980 charCodes.$builtinTypeInfo = [J.JSInt]; | |
4981 t2 = H.Primitives_stringFromCharCodes(charCodes); | |
4982 buffer._contents = buffer._contents + t2; | |
4983 } | |
4984 else if (codeUnit === 92) | |
4985 buffer._contents = buffer._contents + "\\\\"; | |
4986 else if (codeUnit === 34) | |
4987 buffer._contents = buffer._contents + "\\\""; | |
4988 else { | |
4989 charCodes = P.List_List$filled(1, codeUnit, J.JSInt); | |
4990 charCodes.$builtinTypeInfo = [J.JSInt]; | |
4991 t2 = H.Primitives_stringFromCharCodes(charCodes); | |
4992 buffer._contents = buffer._contents + t2; | |
4993 } | |
4994 } | |
4995 buffer._contents = buffer._contents + "\""; | |
4996 return buffer._contents; | |
4997 } | |
4998 return "Instance of '" + H.Primitives_objectTypeName(object) + "'"; | |
4999 }, | |
5000 | |
5001 Exception_Exception: function(message) { | |
5002 return new P._ExceptionImplementation(message); | |
5003 }, | |
5004 | |
5005 identical: function(a, b) { | |
5006 return a == null ? b == null : a === b; | |
5007 }, | |
5008 | |
5009 identityHashCode: function(object) { | |
5010 return H.objectHashCode(object); | |
5011 }, | |
5012 | |
5013 List_List: function($length, $E) { | |
5014 if ($length == null) | |
5015 return new Array(0); | |
5016 if (typeof $length !== "number" || Math.floor($length) !== $length || $length
< 0) | |
5017 throw H.wrapException(new P.ArgumentError("Length must be a positive integer
: " + H.S($length) + ".")); | |
5018 return H.Primitives_newFixedList($length); | |
5019 }, | |
5020 | |
5021 List_List$filled: function($length, fill, $E) { | |
5022 var result, t1, i; | |
5023 if ($length < 0) | |
5024 throw H.wrapException(new P.ArgumentError("Length must be a positive integer
: " + $length + ".")); | |
5025 result = H.Primitives_newFixedList($length); | |
5026 if ($length !== 0 && true) | |
5027 for (t1 = result.length, i = 0; i < t1; ++i) | |
5028 result[i] = fill; | |
5029 return result; | |
5030 }, | |
5031 | |
5032 List_List$from: function(other, growable, $E) { | |
5033 var list, t1, $length, fixedList, t2, i, t3; | |
5034 list = P.List_List(null, $E); | |
5035 H.setRuntimeTypeInfo(list, [$E]); | |
5036 for (t1 = J.get$iterator$ax(other); t1.moveNext$0();) | |
5037 list.push(t1.get$current()); | |
5038 if (growable) | |
5039 return list; | |
5040 $length = list.length; | |
5041 fixedList = P.List_List($length, $E); | |
5042 H.setRuntimeTypeInfo(fixedList, [$E]); | |
5043 for (t1 = list.length, t2 = fixedList.length, i = 0; i < $length; ++i) { | |
5044 if (i >= t1) | |
5045 throw H.ioore(list, i); | |
5046 t3 = list[i]; | |
5047 if (i >= t2) | |
5048 throw H.ioore(fixedList, i); | |
5049 fixedList[i] = t3; | |
5050 } | |
5051 return fixedList; | |
5052 }, | |
5053 | |
5054 print: function(object) { | |
5055 var line = J.toString$0(object); | |
5056 H.printToConsole(line); | |
5057 }, | |
5058 | |
5059 NoSuchMethodError_toString_closure: {"": "Closure;box_0", | |
5060 call$2: function(key, value) { | |
5061 var t1 = this.box_0; | |
5062 if (t1.i_1 > 0) | |
5063 t1.sb_0.write$1(", "); | |
5064 t1.sb_0.write$1(P._symbolToString(key)); | |
5065 }, | |
5066 $is_args2: true | |
5067 }, | |
5068 | |
5069 Duration: {"": "Object;_duration", | |
5070 $lt: function(_, other) { | |
5071 return C.JSNumber_methods.$lt(this._duration, other.get$_duration()); | |
5072 }, | |
5073 $gt: function(_, other) { | |
5074 return C.JSNumber_methods.$gt(this._duration, other.get$_duration()); | |
5075 }, | |
5076 $ge: function(_, other) { | |
5077 return C.JSNumber_methods.$ge(this._duration, other.get$_duration()); | |
5078 }, | |
5079 $eq: function(_, other) { | |
5080 var t1; | |
5081 if (other == null) | |
5082 return false; | |
5083 t1 = J.getInterceptor(other); | |
5084 if (typeof other !== "object" || other === null || !t1.$isDuration) | |
5085 return false; | |
5086 return this._duration === other._duration; | |
5087 }, | |
5088 get$hashCode: function(_) { | |
5089 return this._duration & 0x1FFFFFFF; | |
5090 }, | |
5091 toString$0: function(_) { | |
5092 var t1, t2, twoDigitMinutes, twoDigitSeconds, sixDigitUs; | |
5093 t1 = new P.Duration_toString_twoDigits(); | |
5094 t2 = this._duration; | |
5095 if (t2 < 0) | |
5096 return "-" + H.S(P.Duration$(0, 0, -t2, 0, 0, 0)); | |
5097 twoDigitMinutes = t1.call$1(C.JSNumber_methods.remainder$1(C.JSNumber_method
s.$tdiv(t2, 60000000), 60)); | |
5098 twoDigitSeconds = t1.call$1(C.JSNumber_methods.remainder$1(C.JSNumber_method
s.$tdiv(t2, 1000000), 60)); | |
5099 sixDigitUs = new P.Duration_toString_sixDigits().call$1(C.JSNumber_methods.r
emainder$1(t2, 1000000)); | |
5100 return H.S(C.JSNumber_methods.$tdiv(t2, 3600000000)) + ":" + H.S(twoDigitMin
utes) + ":" + H.S(twoDigitSeconds) + "." + H.S(sixDigitUs); | |
5101 }, | |
5102 $isDuration: true, | |
5103 static: { | |
5104 "": "Duration_MICROSECONDS_PER_MILLISECOND,Duration_MILLISECONDS_PER_SECOND,Dura
tion_SECONDS_PER_MINUTE,Duration_MINUTES_PER_HOUR,Duration_HOURS_PER_DAY,Duratio
n_MICROSECONDS_PER_SECOND,Duration_MICROSECONDS_PER_MINUTE,Duration_MICROSECONDS
_PER_HOUR,Duration_MICROSECONDS_PER_DAY,Duration_MILLISECONDS_PER_MINUTE,Duratio
n_MILLISECONDS_PER_HOUR,Duration_MILLISECONDS_PER_DAY,Duration_SECONDS_PER_HOUR,
Duration_SECONDS_PER_DAY,Duration_MINUTES_PER_DAY,Duration_ZERO", | |
5105 Duration$: function(days, hours, microseconds, milliseconds, minutes, seconds) { | |
5106 return new P.Duration(days * 86400000000 + hours * 3600000000 + minutes * 6000
0000 + seconds * 1000000 + milliseconds * 1000 + microseconds); | |
5107 }} | |
5108 | |
5109 }, | |
5110 | |
5111 Duration_toString_sixDigits: {"": "Closure;", | |
5112 call$1: function(n) { | |
5113 var t1 = J.getInterceptor$n(n); | |
5114 if (t1.$ge(n, 100000)) | |
5115 return H.S(n); | |
5116 if (t1.$ge(n, 10000)) | |
5117 return "0" + H.S(n); | |
5118 if (t1.$ge(n, 1000)) | |
5119 return "00" + H.S(n); | |
5120 if (t1.$ge(n, 100)) | |
5121 return "000" + H.S(n); | |
5122 if (t1.$gt(n, 10)) | |
5123 return "0000" + H.S(n); | |
5124 return "00000" + H.S(n); | |
5125 }, | |
5126 $is_args1: true | |
5127 }, | |
5128 | |
5129 Duration_toString_twoDigits: {"": "Closure;", | |
5130 call$1: function(n) { | |
5131 if (J.$ge$n(n, 10)) | |
5132 return H.S(n); | |
5133 return "0" + H.S(n); | |
5134 }, | |
5135 $is_args1: true | |
5136 }, | |
5137 | |
5138 Error: {"": "Object;", | |
5139 get$stackTrace: function() { | |
5140 return new H._StackTrace(this.$thrownJsError, null); | |
5141 }, | |
5142 $isError: true | |
5143 }, | |
5144 | |
5145 NullThrownError: {"": "Error;", | |
5146 toString$0: function(_) { | |
5147 return "Throw of null."; | |
5148 } | |
5149 }, | |
5150 | |
5151 ArgumentError: {"": "Error;message", | |
5152 toString$0: function(_) { | |
5153 var t1 = this.message; | |
5154 if (t1 != null) | |
5155 return "Illegal argument(s): " + H.S(t1); | |
5156 return "Illegal argument(s)"; | |
5157 }, | |
5158 static: { | |
5159 ArgumentError$: function(message) { | |
5160 return new P.ArgumentError(message); | |
5161 }} | |
5162 | |
5163 }, | |
5164 | |
5165 RangeError: {"": "ArgumentError;message", | |
5166 toString$0: function(_) { | |
5167 return "RangeError: " + H.S(this.message); | |
5168 }, | |
5169 static: { | |
5170 RangeError$value: function(value) { | |
5171 return new P.RangeError("value " + H.S(value)); | |
5172 }, | |
5173 | |
5174 RangeError$range: function(value, start, end) { | |
5175 return new P.RangeError("value " + H.S(value) + " not in range " + start + "..
" + H.S(end)); | |
5176 }} | |
5177 | |
5178 }, | |
5179 | |
5180 UnsupportedError: {"": "Error;message", | |
5181 toString$0: function(_) { | |
5182 return "Unsupported operation: " + this.message; | |
5183 }, | |
5184 static: { | |
5185 UnsupportedError$: function(message) { | |
5186 return new P.UnsupportedError(message); | |
5187 }} | |
5188 | |
5189 }, | |
5190 | |
5191 StateError: {"": "Error;message", | |
5192 toString$0: function(_) { | |
5193 return "Bad state: " + this.message; | |
5194 }, | |
5195 static: { | |
5196 StateError$: function(message) { | |
5197 return new P.StateError(message); | |
5198 }} | |
5199 | |
5200 }, | |
5201 | |
5202 ConcurrentModificationError: {"": "Error;modifiedObject", | |
5203 toString$0: function(_) { | |
5204 var t1 = this.modifiedObject; | |
5205 if (t1 == null) | |
5206 return "Concurrent modification during iteration."; | |
5207 return "Concurrent modification during iteration: " + P.Error_safeToString(t
1) + "."; | |
5208 }, | |
5209 static: { | |
5210 ConcurrentModificationError$: function(modifiedObject) { | |
5211 return new P.ConcurrentModificationError(modifiedObject); | |
5212 }} | |
5213 | |
5214 }, | |
5215 | |
5216 StackOverflowError: {"": "Object;", | |
5217 toString$0: function(_) { | |
5218 return "Stack Overflow"; | |
5219 }, | |
5220 get$stackTrace: function() { | |
5221 return; | |
5222 }, | |
5223 $isError: true | |
5224 }, | |
5225 | |
5226 CyclicInitializationError: {"": "Error;variableName", | |
5227 toString$0: function(_) { | |
5228 return "Reading static variable '" + this.variableName + "' during its initi
alization"; | |
5229 }, | |
5230 static: { | |
5231 CyclicInitializationError$: function(variableName) { | |
5232 return new P.CyclicInitializationError(variableName); | |
5233 }} | |
5234 | |
5235 }, | |
5236 | |
5237 _ExceptionImplementation: {"": "Object;message", | |
5238 toString$0: function(_) { | |
5239 var t1 = this.message; | |
5240 if (t1 == null) | |
5241 return "Exception"; | |
5242 return "Exception: " + H.S(t1); | |
5243 } | |
5244 }, | |
5245 | |
5246 FormatException: {"": "Object;message", | |
5247 toString$0: function(_) { | |
5248 return "FormatException: " + this.message; | |
5249 }, | |
5250 static: { | |
5251 FormatException$: function(message) { | |
5252 return new P.FormatException(message); | |
5253 }} | |
5254 | |
5255 }, | |
5256 | |
5257 Expando: {"": "Object;name", | |
5258 toString$0: function(_) { | |
5259 return "Expando:" + this.name; | |
5260 }, | |
5261 $index: function(_, object) { | |
5262 var values = H.Primitives_getProperty(object, "expando$values"); | |
5263 return values == null ? null : H.Primitives_getProperty(values, this._getKey
$0()); | |
5264 }, | |
5265 $indexSet: function(_, object, value) { | |
5266 var values = H.Primitives_getProperty(object, "expando$values"); | |
5267 if (values == null) { | |
5268 values = new P.Object(); | |
5269 H.Primitives_setProperty(object, "expando$values", values); | |
5270 } | |
5271 H.Primitives_setProperty(values, this._getKey$0(), value); | |
5272 }, | |
5273 _getKey$0: function() { | |
5274 var key, t1; | |
5275 key = H.Primitives_getProperty(this, "expando$key"); | |
5276 if (key == null) { | |
5277 t1 = $.Expando__keyCount; | |
5278 $.Expando__keyCount = t1 + 1; | |
5279 key = "expando$key$" + t1; | |
5280 H.Primitives_setProperty(this, "expando$key", key); | |
5281 } | |
5282 return key; | |
5283 }, | |
5284 static: { | |
5285 "": "Expando__KEY_PROPERTY_NAME,Expando__EXPANDO_PROPERTY_NAME,Expando__keyCount
", | |
5286 } | |
5287 | |
5288 }, | |
5289 | |
5290 Function: {"": "Object;"}, | |
5291 | |
5292 Iterator: {"": "Object;"}, | |
5293 | |
5294 Null: {"": "Object;", | |
5295 toString$0: function(_) { | |
5296 return "null"; | |
5297 } | |
5298 }, | |
5299 | |
5300 Object: {"": ";", | |
5301 $eq: function(_, other) { | |
5302 return this === other; | |
5303 }, | |
5304 get$hashCode: function(_) { | |
5305 return H.Primitives_objectHashCode(this); | |
5306 }, | |
5307 toString$0: function(_) { | |
5308 return H.Primitives_objectToString(this); | |
5309 } | |
5310 }, | |
5311 | |
5312 StackTrace: {"": "Object;"}, | |
5313 | |
5314 StringBuffer: {"": "Object;_contents<", | |
5315 get$length: function(_) { | |
5316 return this._contents.length; | |
5317 }, | |
5318 get$isEmpty: function(_) { | |
5319 return this._contents.length === 0; | |
5320 }, | |
5321 write$1: function(obj) { | |
5322 var str = typeof obj === "string" ? obj : H.S(obj); | |
5323 this._contents = this._contents + str; | |
5324 }, | |
5325 writeAll$2: function(objects, separator) { | |
5326 var iterator, str; | |
5327 iterator = J.get$iterator$ax(objects); | |
5328 if (!iterator.moveNext$0()) | |
5329 return; | |
5330 if (separator.length === 0) | |
5331 do { | |
5332 str = iterator.get$current(); | |
5333 str = typeof str === "string" ? str : H.S(str); | |
5334 this._contents = this._contents + str; | |
5335 } while (iterator.moveNext$0()); | |
5336 else { | |
5337 this.write$1(iterator.get$current()); | |
5338 for (; iterator.moveNext$0();) { | |
5339 this._contents = this._contents + separator; | |
5340 str = iterator.get$current(); | |
5341 str = typeof str === "string" ? str : H.S(str); | |
5342 this._contents = this._contents + str; | |
5343 } | |
5344 } | |
5345 }, | |
5346 toString$0: function(_) { | |
5347 return this._contents; | |
5348 }, | |
5349 StringBuffer$1: function($content) { | |
5350 this._contents = $content; | |
5351 }, | |
5352 static: { | |
5353 StringBuffer$: function($content) { | |
5354 var t1 = new P.StringBuffer(""); | |
5355 t1.StringBuffer$1($content); | |
5356 return t1; | |
5357 }} | |
5358 | |
5359 }, | |
5360 | |
5361 Symbol: {"": "Object;"}}], | |
5362 ["dart.dom.html", "dart:html", , W, { | |
5363 _convertNativeToDart_EventTarget: function(e) { | |
5364 var $window, t1; | |
5365 if (e == null) | |
5366 return; | |
5367 if ("setInterval" in e) { | |
5368 $window = W._DOMWindowCrossFrame__createSafe(e); | |
5369 t1 = J.getInterceptor($window); | |
5370 if (typeof $window === "object" && $window !== null && !!t1.$isEventTarget) | |
5371 return $window; | |
5372 return; | |
5373 } else | |
5374 return e; | |
5375 }, | |
5376 | |
5377 _wrapZone: function(callback) { | |
5378 var t1 = $.Zone__current; | |
5379 if (t1 === C.C__RootZone) | |
5380 return callback; | |
5381 return t1.bindUnaryCallback$2$runGuarded(callback, true); | |
5382 }, | |
5383 | |
5384 Storage_keys_closure: {"": "Closure;keys_0", | |
5385 call$2: function(k, v) { | |
5386 return this.keys_0.push(k); | |
5387 }, | |
5388 $is_args2: true | |
5389 }, | |
5390 | |
5391 Storage_values_closure: {"": "Closure;values_0", | |
5392 call$2: function(k, v) { | |
5393 return this.values_0.push(v); | |
5394 }, | |
5395 $is_args2: true | |
5396 }, | |
5397 | |
5398 _EventStream: {"": "Stream;", | |
5399 listen$4$cancelOnError$onDone$onError: function(onData, cancelOnError, onDone,
onError) { | |
5400 var t1 = new W._EventStreamSubscription(0, this._target, this._eventType, W.
_wrapZone(onData), this._useCapture); | |
5401 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(this, "_EventStream", 0)]
); | |
5402 t1._tryResume$0(); | |
5403 return t1; | |
5404 }, | |
5405 $asStream: null | |
5406 }, | |
5407 | |
5408 _ElementEventStreamImpl: {"": "_EventStream;_target,_eventType,_useCapture", $as
_EventStream: null}, | |
5409 | |
5410 _EventStreamSubscription: {"": "StreamSubscription;_pauseCount,_target,_eventTyp
e,_onData,_useCapture", | |
5411 cancel$0: function() { | |
5412 if (this._target == null) | |
5413 return; | |
5414 this._unlisten$0(); | |
5415 this._target = null; | |
5416 this._onData = null; | |
5417 }, | |
5418 _tryResume$0: function() { | |
5419 var t1 = this._onData; | |
5420 if (t1 != null && this._pauseCount <= 0) | |
5421 J.addEventListener$3$x(this._target, this._eventType, t1, this._useCapture
); | |
5422 }, | |
5423 _unlisten$0: function() { | |
5424 var t1 = this._onData; | |
5425 if (t1 != null) | |
5426 J.removeEventListener$3$x(this._target, this._eventType, t1, this._useCapt
ure); | |
5427 }, | |
5428 $asStreamSubscription: null | |
5429 }, | |
5430 | |
5431 EventStreamProvider: {"": "Object;_eventType"}, | |
5432 | |
5433 _DOMWindowCrossFrame: {"": "Object;_window", $isEventTarget: true, static: { | |
5434 _DOMWindowCrossFrame__createSafe: function(w) { | |
5435 if (w === window) | |
5436 return w; | |
5437 else | |
5438 return new W._DOMWindowCrossFrame(w); | |
5439 }} | |
5440 }, | |
5441 | |
5442 HtmlElement: {"": "Element;", "%": "HTMLAppletElement|HTMLBRElement|HTMLBaseFont
Element|HTMLBodyElement|HTMLCanvasElement|HTMLContentElement|HTMLDListElement|HT
MLDataListElement|HTMLDetailsElement|HTMLDialogElement|HTMLDirectoryElement|HTML
DivElement|HTMLEmbedElement|HTMLFontElement|HTMLFrameElement|HTMLFrameSetElement
|HTMLHRElement|HTMLHeadElement|HTMLHeadingElement|HTMLHtmlElement|HTMLIFrameElem
ent|HTMLImageElement|HTMLLIElement|HTMLLabelElement|HTMLLegendElement|HTMLMapEle
ment|HTMLMarqueeElement|HTMLMenuElement|HTMLMetaElement|HTMLMeterElement|HTMLMod
Element|HTMLOListElement|HTMLObjectElement|HTMLOutputElement|HTMLParagraphElemen
t|HTMLParamElement|HTMLPreElement|HTMLProgressElement|HTMLQuoteElement|HTMLScrip
tElement|HTMLShadowElement|HTMLSourceElement|HTMLSpanElement|HTMLTableCaptionEle
ment|HTMLTableCellElement|HTMLTableColElement|HTMLTableDataCellElement|HTMLTable
Element|HTMLTableHeaderCellElement|HTMLTableRowElement|HTMLTableSectionElement|H
TMLTemplateElement|HTMLTitleElement|HTMLTrackElement|HTMLUListElement|HTMLUnknow
nElement;HTMLElement"}, | |
5443 | |
5444 AnchorElement: {"": "HtmlElement;target=", | |
5445 toString$0: function(receiver) { | |
5446 return receiver.toString(); | |
5447 }, | |
5448 "%": "HTMLAnchorElement" | |
5449 }, | |
5450 | |
5451 AreaElement: {"": "HtmlElement;target=", "%": "HTMLAreaElement"}, | |
5452 | |
5453 BaseElement: {"": "HtmlElement;target=", "%": "HTMLBaseElement"}, | |
5454 | |
5455 ButtonElement: {"": "HtmlElement;disabled}", "%": "HTMLButtonElement"}, | |
5456 | |
5457 CharacterData: {"": "Node;length=", "%": "CDATASection|Comment|Text;CharacterDat
a"}, | |
5458 | |
5459 DomException: {"": "Interceptor;", | |
5460 toString$0: function(receiver) { | |
5461 return receiver.toString(); | |
5462 }, | |
5463 "%": "DOMException" | |
5464 }, | |
5465 | |
5466 Element: {"": "Node;", | |
5467 toString$0: function(receiver) { | |
5468 return receiver.localName; | |
5469 }, | |
5470 "%": ";Element" | |
5471 }, | |
5472 | |
5473 ErrorEvent: {"": "Event;error=", "%": "ErrorEvent"}, | |
5474 | |
5475 Event: {"": "Interceptor;", | |
5476 get$target: function(receiver) { | |
5477 return W._convertNativeToDart_EventTarget(receiver.target); | |
5478 }, | |
5479 "%": "AudioProcessingEvent|AutocompleteErrorEvent|BeforeLoadEvent|BeforeUnload
Event|CSSFontFaceLoadEvent|CloseEvent|CustomEvent|DeviceMotionEvent|DeviceOrient
ationEvent|HashChangeEvent|IDBVersionChangeEvent|MIDIConnectionEvent|MIDIMessage
Event|MediaKeyEvent|MediaKeyMessageEvent|MediaKeyNeededEvent|MediaStreamEvent|Me
diaStreamTrackEvent|MessageEvent|MutationEvent|OfflineAudioCompletionEvent|Overf
lowEvent|PageTransitionEvent|PopStateEvent|ProgressEvent|RTCDTMFToneChangeEvent|
RTCDataChannelEvent|RTCIceCandidateEvent|ResourceProgressEvent|SecurityPolicyVio
lationEvent|SpeechInputEvent|SpeechRecognitionEvent|SpeechSynthesisEvent|Storage
Event|TrackEvent|TransitionEvent|WebGLContextEvent|WebKitAnimationEvent|WebKitTr
ansitionEvent|XMLHttpRequestProgressEvent;Event" | |
5480 }, | |
5481 | |
5482 EventTarget: {"": "Interceptor;", | |
5483 addEventListener$3: function(receiver, type, listener, useCapture) { | |
5484 return receiver.addEventListener(type, H.convertDartClosureToJS(listener, 1)
, useCapture); | |
5485 }, | |
5486 removeEventListener$3: function(receiver, type, listener, useCapture) { | |
5487 return receiver.removeEventListener(type, H.convertDartClosureToJS(listener,
1), useCapture); | |
5488 }, | |
5489 $isEventTarget: true, | |
5490 "%": "MediaStream;EventTarget" | |
5491 }, | |
5492 | |
5493 FieldSetElement: {"": "HtmlElement;disabled}", "%": "HTMLFieldSetElement"}, | |
5494 | |
5495 FormElement: {"": "HtmlElement;length=,target=", "%": "HTMLFormElement"}, | |
5496 | |
5497 InputElement: {"": "HtmlElement;disabled}", $isInputElement: true, $isEventTarge
t: true, "%": "HTMLInputElement"}, | |
5498 | |
5499 KeygenElement: {"": "HtmlElement;disabled}", "%": "HTMLKeygenElement"}, | |
5500 | |
5501 LinkElement: {"": "HtmlElement;disabled}", "%": "HTMLLinkElement"}, | |
5502 | |
5503 MediaElement: {"": "HtmlElement;error=", "%": "HTMLAudioElement|HTMLMediaElement
|HTMLVideoElement"}, | |
5504 | |
5505 MouseEvent: {"": "UIEvent;", "%": "DragEvent|MSPointerEvent|MouseEvent|MouseScro
llEvent|MouseWheelEvent|PointerEvent|WheelEvent"}, | |
5506 | |
5507 Node: {"": "EventTarget;", | |
5508 toString$0: function(receiver) { | |
5509 var t1 = receiver.nodeValue; | |
5510 return t1 == null ? J.Interceptor.prototype.toString$0.call(this, receiver)
: t1; | |
5511 }, | |
5512 "%": "Attr|Document|DocumentFragment|DocumentType|Entity|HTMLDocument|Notation
|SVGDocument|ShadowRoot;Node" | |
5513 }, | |
5514 | |
5515 OptGroupElement: {"": "HtmlElement;disabled}", "%": "HTMLOptGroupElement"}, | |
5516 | |
5517 OptionElement: {"": "HtmlElement;disabled}", "%": "HTMLOptionElement"}, | |
5518 | |
5519 ProcessingInstruction: {"": "CharacterData;target=", "%": "ProcessingInstruction
"}, | |
5520 | |
5521 SelectElement: {"": "HtmlElement;disabled},length=", "%": "HTMLSelectElement"}, | |
5522 | |
5523 SpeechRecognitionError: {"": "Event;error=", "%": "SpeechRecognitionError"}, | |
5524 | |
5525 Storage: {"": "Interceptor;", | |
5526 $index: function(receiver, key) { | |
5527 return receiver.getItem(key); | |
5528 }, | |
5529 $indexSet: function(receiver, key, value) { | |
5530 receiver.setItem(key, value); | |
5531 }, | |
5532 forEach$1: function(receiver, f) { | |
5533 var i, key; | |
5534 for (i = 0; true; ++i) { | |
5535 key = receiver.key(i); | |
5536 if (key == null) | |
5537 return; | |
5538 f.call$2(key, receiver.getItem(key)); | |
5539 } | |
5540 }, | |
5541 get$keys: function(receiver) { | |
5542 var keys = []; | |
5543 this.forEach$1(receiver, new W.Storage_keys_closure(keys)); | |
5544 return keys; | |
5545 }, | |
5546 get$values: function(receiver) { | |
5547 var values = []; | |
5548 this.forEach$1(receiver, new W.Storage_values_closure(values)); | |
5549 return values; | |
5550 }, | |
5551 get$length: function(receiver) { | |
5552 return receiver.length; | |
5553 }, | |
5554 get$isEmpty: function(receiver) { | |
5555 return receiver.key(0) == null; | |
5556 }, | |
5557 $isMap: true, | |
5558 $asMap: function() { | |
5559 return [J.JSString, J.JSString]; | |
5560 }, | |
5561 "%": "Storage" | |
5562 }, | |
5563 | |
5564 StyleElement: {"": "HtmlElement;disabled}", "%": "HTMLStyleElement"}, | |
5565 | |
5566 TextAreaElement: {"": "HtmlElement;disabled}", "%": "HTMLTextAreaElement"}, | |
5567 | |
5568 UIEvent: {"": "Event;", "%": "CompositionEvent|FocusEvent|KeyboardEvent|SVGZoomE
vent|TextEvent|TouchEvent;UIEvent"}, | |
5569 | |
5570 Window: {"": "EventTarget;", | |
5571 toString$0: function(receiver) { | |
5572 return receiver.toString(); | |
5573 }, | |
5574 $isEventTarget: true, | |
5575 "%": "DOMWindow|Window" | |
5576 }}], | |
5577 ["dart.dom.svg", "dart:svg", , P, { | |
5578 AElement: {"": "GraphicsElement;target=", "%": "SVGAElement"}, | |
5579 | |
5580 GraphicsElement: {"": "SvgElement;", "%": "SVGAltGlyphElement|SVGCircleElement|S
VGClipPathElement|SVGDefsElement|SVGEllipseElement|SVGForeignObjectElement|SVGGE
lement|SVGImageElement|SVGLineElement|SVGPathElement|SVGPolygonElement|SVGPolyli
neElement|SVGRectElement|SVGSVGElement|SVGSwitchElement|SVGTSpanElement|SVGTextC
ontentElement|SVGTextElement|SVGTextPathElement|SVGTextPositioningElement|SVGUse
Element;SVGGraphicsElement"}, | |
5581 | |
5582 StyleElement0: {"": "SvgElement;disabled}", "%": "SVGStyleElement"}, | |
5583 | |
5584 SvgElement: {"": "Element;", "%": "SVGAltGlyphDefElement|SVGAltGlyphItemElement|
SVGAnimateColorElement|SVGAnimateElement|SVGAnimateMotionElement|SVGAnimateTrans
formElement|SVGAnimationElement|SVGComponentTransferFunctionElement|SVGCursorEle
ment|SVGDescElement|SVGFEBlendElement|SVGFEColorMatrixElement|SVGFEComponentTran
sferElement|SVGFECompositeElement|SVGFEConvolveMatrixElement|SVGFEDiffuseLightin
gElement|SVGFEDisplacementMapElement|SVGFEDistantLightElement|SVGFEDropShadowEle
ment|SVGFEFloodElement|SVGFEFuncAElement|SVGFEFuncBElement|SVGFEFuncGElement|SVG
FEFuncRElement|SVGFEGaussianBlurElement|SVGFEImageElement|SVGFEMergeElement|SVGF
EMergeNodeElement|SVGFEMorphologyElement|SVGFEOffsetElement|SVGFEPointLightEleme
nt|SVGFESpecularLightingElement|SVGFESpotLightElement|SVGFETileElement|SVGFETurb
ulenceElement|SVGFilterElement|SVGFontElement|SVGFontFaceElement|SVGFontFaceForm
atElement|SVGFontFaceNameElement|SVGFontFaceSrcElement|SVGFontFaceUriElement|SVG
GlyphElement|SVGGlyphRefElement|SVGGradientElement|SVGHKernElement|SVGLinearGrad
ientElement|SVGMPathElement|SVGMarkerElement|SVGMaskElement|SVGMetadataElement|S
VGMissingGlyphElement|SVGPatternElement|SVGRadialGradientElement|SVGScriptElemen
t|SVGSetElement|SVGStopElement|SVGSymbolElement|SVGTitleElement|SVGVKernElement|
SVGViewElement;SVGElement"}}], | |
5585 ["dart.isolate", "dart:isolate", , P, { | |
5586 ReceivePort: {"": "Object;"}}], | |
5587 ["dart.math", "dart:math", , P, { | |
5588 _Random: {"": "Object;", | |
5589 nextInt$1: function(max) { | |
5590 if (max < 0) | |
5591 throw H.wrapException(new P.ArgumentError("negative max: " + max)); | |
5592 if (max > 4294967295) | |
5593 max = 4294967295; | |
5594 return Math.random() * max >>> 0; | |
5595 } | |
5596 }}], | |
5597 ["dart.typed_data", "dart:typed_data", , P, { | |
5598 TypedData_ListMixin: {"": "TypedData+ListMixin;", $isList: true, $asList: null,
$isEfficientLength: true}, | |
5599 | |
5600 TypedData_ListMixin_FixedLengthListMixin: {"": "TypedData_ListMixin+FixedLengthL
istMixin;", $asList: null}, | |
5601 | |
5602 TypedData: {"": "Interceptor;", | |
5603 _invalidIndex$2: function(receiver, index, $length) { | |
5604 var t1 = J.getInterceptor$n(index); | |
5605 if (t1.$lt(index, 0) || t1.$ge(index, $length)) | |
5606 throw H.wrapException(P.RangeError$range(index, 0, $length)); | |
5607 else | |
5608 throw H.wrapException(P.ArgumentError$("Invalid list index " + H.S(index))
); | |
5609 }, | |
5610 "%": ";ArrayBufferView;TypedData_ListMixin|TypedData_ListMixin_FixedLengthList
Mixin" | |
5611 }, | |
5612 | |
5613 Uint8List: {"": "TypedData_ListMixin_FixedLengthListMixin;", | |
5614 get$length: function(receiver) { | |
5615 return C.JS_CONST_ZYJ(receiver); | |
5616 }, | |
5617 $index: function(receiver, index) { | |
5618 var t1 = C.JS_CONST_ZYJ(receiver); | |
5619 if (index >>> 0 != index || J.$ge$n(index, t1)) | |
5620 this._invalidIndex$2(receiver, index, t1); | |
5621 return receiver[index]; | |
5622 }, | |
5623 $indexSet: function(receiver, index, value) { | |
5624 var t1 = C.JS_CONST_ZYJ(receiver); | |
5625 if (index >>> 0 != index || J.$ge$n(index, t1)) | |
5626 this._invalidIndex$2(receiver, index, t1); | |
5627 receiver[index] = value; | |
5628 }, | |
5629 $asList: function() { | |
5630 return [J.JSInt]; | |
5631 }, | |
5632 $isList: true, | |
5633 $isEfficientLength: true, | |
5634 $isJavaScriptIndexingBehavior: true, | |
5635 "%": ";Uint8Array" | |
5636 }}], | |
5637 ["", "piratebadge.dart", , A, { | |
5638 main: function() { | |
5639 var t1, t2; | |
5640 t1 = document.querySelector("#inputName"); | |
5641 t1.toString; | |
5642 t1 = new W._ElementEventStreamImpl(t1, C.EventStreamProvider_input._eventType,
false); | |
5643 H.setRuntimeTypeInfo(t1, [null]); | |
5644 t2 = new W._EventStreamSubscription(0, t1._target, t1._eventType, W._wrapZone(
A.updateBadge$closure), t1._useCapture); | |
5645 H.setRuntimeTypeInfo(t2, [H.getRuntimeTypeArgument(t1, "_EventStream", 0)]); | |
5646 t2._tryResume$0(); | |
5647 $.genButton = document.querySelector("#generateButton"); | |
5648 t2 = $.genButton; | |
5649 t2.toString; | |
5650 t2 = new W._ElementEventStreamImpl(t2, C.EventStreamProvider_click._eventType,
false); | |
5651 H.setRuntimeTypeInfo(t2, [null]); | |
5652 t1 = new W._EventStreamSubscription(0, t2._target, t2._eventType, W._wrapZone(
A.generateBadge$closure), t2._useCapture); | |
5653 H.setRuntimeTypeInfo(t1, [H.getRuntimeTypeArgument(t2, "_EventStream", 0)]); | |
5654 t1._tryResume$0(); | |
5655 A.setBadgeName(A.getBadgeNameFromStorage()); | |
5656 }, | |
5657 | |
5658 updateBadge: function(e) { | |
5659 var inputName, t1, t2; | |
5660 inputName = H.interceptedTypeCast(J.get$target$x(e), "$isInputElement").value; | |
5661 A.setBadgeName(A.PirateName$(null, inputName)); | |
5662 t1 = J.trim$0$s(inputName); | |
5663 t2 = $.genButton; | |
5664 if (t1.length === 0) { | |
5665 J.set$disabled$x(t2, false); | |
5666 t2.textContent = "Aye! Gimme a name!"; | |
5667 } else { | |
5668 J.set$disabled$x(t2, true); | |
5669 t2.textContent = "Arrr! Write yer name!"; | |
5670 } | |
5671 }, | |
5672 | |
5673 generateBadge: function(e) { | |
5674 A.setBadgeName(A.PirateName$(null, null)); | |
5675 }, | |
5676 | |
5677 setBadgeName: function(newName) { | |
5678 var t1; | |
5679 if (newName == null) | |
5680 return; | |
5681 t1 = document.querySelector("#badgeName"); | |
5682 t1.textContent = J.get$isEmpty$asx(newName._firstName) === true ? "" : H.S(new
Name._firstName) + " the " + H.S(newName._appellation); | |
5683 window.localStorage.setItem("pirateName", "{ \"f\": \"" + H.S(newName._firstNa
me) + "\", \"a\": \"" + H.S(newName._appellation) + "\" } "); | |
5684 }, | |
5685 | |
5686 getBadgeNameFromStorage: function() { | |
5687 var storedName = window.localStorage.getItem("pirateName"); | |
5688 if (storedName != null) | |
5689 return A.PirateName$fromJSON(storedName); | |
5690 else | |
5691 return; | |
5692 }, | |
5693 | |
5694 PirateName: {"": "Object;_firstName,_appellation", | |
5695 toString$0: function(_) { | |
5696 return J.get$isEmpty$asx(this._firstName) === true ? "" : H.S(this._firstNam
e) + " the " + H.S(this._appellation); | |
5697 }, | |
5698 PirateName$2$appellation$firstName: function(appellation, firstName) { | |
5699 var t1, t2; | |
5700 if (firstName == null) { | |
5701 t1 = $.get$PirateName_names(); | |
5702 t2 = $.get$PirateName_indexGen(); | |
5703 $.get$PirateName_names(); | |
5704 t2 = t2.nextInt$1(10); | |
5705 if (t2 < 0 || t2 >= 10) | |
5706 throw H.ioore(t1, t2); | |
5707 this._firstName = t1[t2]; | |
5708 } else | |
5709 this._firstName = firstName; | |
5710 t1 = $.get$PirateName_appellations(); | |
5711 t2 = $.get$PirateName_indexGen(); | |
5712 $.get$PirateName_appellations(); | |
5713 t2 = t2.nextInt$1(12); | |
5714 if (t2 < 0 || t2 >= 12) | |
5715 throw H.ioore(t1, t2); | |
5716 this._appellation = t1[t2]; | |
5717 }, | |
5718 PirateName$fromJSON$1: function(jsonString) { | |
5719 var storedName, t1; | |
5720 storedName = C.C_JsonCodec.decode$1(jsonString); | |
5721 t1 = J.getInterceptor$asx(storedName); | |
5722 this._firstName = t1.$index(storedName, "f"); | |
5723 this._appellation = t1.$index(storedName, "a"); | |
5724 }, | |
5725 static: { | |
5726 "": "PirateName_indexGen,PirateName_names,PirateName_appellations", | |
5727 PirateName$: function(appellation, firstName) { | |
5728 var t1 = new A.PirateName(null, null); | |
5729 t1.PirateName$2$appellation$firstName(appellation, firstName); | |
5730 return t1; | |
5731 }, | |
5732 | |
5733 PirateName$fromJSON: function(jsonString) { | |
5734 var t1 = new A.PirateName(null, null); | |
5735 t1.PirateName$fromJSON$1(jsonString); | |
5736 return t1; | |
5737 }} | |
5738 | |
5739 }}, | |
5740 1], | |
5741 ]); | |
5742 Isolate.$finishClasses($$, $, null); | |
5743 $$ = null; | |
5744 | |
5745 // Static function getters | |
5746 init.globalFunctions.IsolateNatives__processWorkerMessage$closure = H.IsolateNat
ives__processWorkerMessage$closure = new H.Closure$2(H.IsolateNatives__processWo
rkerMessage, "IsolateNatives__processWorkerMessage$closure"); | |
5747 init.globalFunctions.toStringWrapper$closure = H.toStringWrapper$closure = new H
.Closure$0(H.toStringWrapper, "toStringWrapper$closure"); | |
5748 init.globalFunctions.invokeClosure$closure = H.invokeClosure$closure = new H.Clo
sure$7(H.invokeClosure, "invokeClosure$closure"); | |
5749 init.globalFunctions.typeNameInChrome$closure = H.typeNameInChrome$closure = new
H.Closure$1(H.typeNameInChrome, "typeNameInChrome$closure"); | |
5750 init.globalFunctions.typeNameInSafari$closure = H.typeNameInSafari$closure = new
H.Closure$1(H.typeNameInSafari, "typeNameInSafari$closure"); | |
5751 init.globalFunctions.typeNameInOpera$closure = H.typeNameInOpera$closure = new H
.Closure$1(H.typeNameInOpera, "typeNameInOpera$closure"); | |
5752 init.globalFunctions.typeNameInFirefox$closure = H.typeNameInFirefox$closure = n
ew H.Closure$1(H.typeNameInFirefox, "typeNameInFirefox$closure"); | |
5753 init.globalFunctions.typeNameInIE$closure = H.typeNameInIE$closure = new H.Closu
re$1(H.typeNameInIE, "typeNameInIE$closure"); | |
5754 init.globalFunctions.constructorNameFallback$closure = H.constructorNameFallback
$closure = new H.Closure$1(H.constructorNameFallback, "constructorNameFallback$c
losure"); | |
5755 init.globalFunctions.callDartFunctionWith1Arg$closure = H.callDartFunctionWith1A
rg$closure = new H.Closure$2(H.callDartFunctionWith1Arg, "callDartFunctionWith1A
rg$closure"); | |
5756 init.globalFunctions._asyncRunCallback$closure = P._asyncRunCallback$closure = n
ew H.Closure$0(P._asyncRunCallback, "_asyncRunCallback$closure"); | |
5757 init.globalFunctions._nullDataHandler$closure = P._nullDataHandler$closure = new
H.Closure$1(P._nullDataHandler, "_nullDataHandler$closure"); | |
5758 init.globalFunctions._nullErrorHandler$closure = P._nullErrorHandler$closure = n
ew P.Closure$21(P._nullErrorHandler, "_nullErrorHandler$closure"); | |
5759 init.globalFunctions._nullDoneHandler$closure = P._nullDoneHandler$closure = new
H.Closure$0(P._nullDoneHandler, "_nullDoneHandler$closure"); | |
5760 init.globalFunctions._defaultEquals$closure = P._defaultEquals$closure = new H.C
losure$2(P._defaultEquals, "_defaultEquals$closure"); | |
5761 init.globalFunctions._defaultHashCode$closure = P._defaultHashCode$closure = new
H.Closure$1(P._defaultHashCode, "_defaultHashCode$closure"); | |
5762 init.globalFunctions.identical$closure = P.identical$closure = new H.Closure$2(P
.identical, "identical$closure"); | |
5763 init.globalFunctions.identityHashCode$closure = P.identityHashCode$closure = new
H.Closure$1(P.identityHashCode, "identityHashCode$closure"); | |
5764 init.globalFunctions.main$closure = A.main$closure = new H.Closure$0(A.main, "ma
in$closure"); | |
5765 init.globalFunctions.updateBadge$closure = A.updateBadge$closure = new H.Closure
$1(A.updateBadge, "updateBadge$closure"); | |
5766 init.globalFunctions.generateBadge$closure = A.generateBadge$closure = new H.Clo
sure$1(A.generateBadge, "generateBadge$closure"); | |
5767 // Runtime type support | |
5768 J.JSString.$isString = true; | |
5769 J.JSString.$isObject = true; | |
5770 J.JSInt.$isint = true; | |
5771 J.JSInt.$isObject = true; | |
5772 J.JSNumber.$isObject = true; | |
5773 P.Object.$isObject = true; | |
5774 P.Duration.$isObject = true; | |
5775 W.Event.$isEvent = true; | |
5776 W.Event.$isObject = true; | |
5777 W.MouseEvent.$isEvent = true; | |
5778 W.MouseEvent.$isObject = true; | |
5779 J.JSBool.$isbool = true; | |
5780 J.JSBool.$isObject = true; | |
5781 P.ReceivePort.$isObject = true; | |
5782 H._IsolateEvent.$isObject = true; | |
5783 H._IsolateContext.$isObject = true; | |
5784 J.JSArray.$isObject = true; | |
5785 P.Symbol.$isSymbol = true; | |
5786 P.Symbol.$isObject = true; | |
5787 P.StackTrace.$isStackTrace = true; | |
5788 P.StackTrace.$isObject = true; | |
5789 P.Function.$isFunction = true; | |
5790 P.Function.$isObject = true; | |
5791 P._EventSink.$is_EventSink = true; | |
5792 P._EventSink.$isObject = true; | |
5793 P.Future.$isFuture = true; | |
5794 P.Future.$isObject = true; | |
5795 P.StreamSubscription.$isStreamSubscription = true; | |
5796 P.StreamSubscription.$isObject = true; | |
5797 // getInterceptor methods | |
5798 J.getInterceptor = function(receiver) { | |
5799 if (typeof receiver == "number") { | |
5800 if (Math.floor(receiver) == receiver) | |
5801 return J.JSInt.prototype; | |
5802 return J.JSDouble.prototype; | |
5803 } | |
5804 if (typeof receiver == "string") | |
5805 return J.JSString.prototype; | |
5806 if (receiver == null) | |
5807 return J.JSNull.prototype; | |
5808 if (typeof receiver == "boolean") | |
5809 return J.JSBool.prototype; | |
5810 if (receiver.constructor == Array) | |
5811 return J.JSArray.prototype; | |
5812 if (typeof receiver != "object") | |
5813 return receiver; | |
5814 if (receiver instanceof P.Object) | |
5815 return receiver; | |
5816 return J.getNativeInterceptor(receiver); | |
5817 }; | |
5818 J.getInterceptor$asx = function(receiver) { | |
5819 if (typeof receiver == "string") | |
5820 return J.JSString.prototype; | |
5821 if (receiver == null) | |
5822 return receiver; | |
5823 if (receiver.constructor == Array) | |
5824 return J.JSArray.prototype; | |
5825 if (typeof receiver != "object") | |
5826 return receiver; | |
5827 if (receiver instanceof P.Object) | |
5828 return receiver; | |
5829 return J.getNativeInterceptor(receiver); | |
5830 }; | |
5831 J.getInterceptor$ax = function(receiver) { | |
5832 if (receiver == null) | |
5833 return receiver; | |
5834 if (receiver.constructor == Array) | |
5835 return J.JSArray.prototype; | |
5836 if (typeof receiver != "object") | |
5837 return receiver; | |
5838 if (receiver instanceof P.Object) | |
5839 return receiver; | |
5840 return J.getNativeInterceptor(receiver); | |
5841 }; | |
5842 J.getInterceptor$n = function(receiver) { | |
5843 if (typeof receiver == "number") | |
5844 return J.JSNumber.prototype; | |
5845 if (receiver == null) | |
5846 return receiver; | |
5847 if (!(receiver instanceof P.Object)) | |
5848 return J.UnknownJavaScriptObject.prototype; | |
5849 return receiver; | |
5850 }; | |
5851 J.getInterceptor$s = function(receiver) { | |
5852 if (typeof receiver == "string") | |
5853 return J.JSString.prototype; | |
5854 if (receiver == null) | |
5855 return receiver; | |
5856 if (!(receiver instanceof P.Object)) | |
5857 return J.UnknownJavaScriptObject.prototype; | |
5858 return receiver; | |
5859 }; | |
5860 J.getInterceptor$x = function(receiver) { | |
5861 if (receiver == null) | |
5862 return receiver; | |
5863 if (typeof receiver != "object") | |
5864 return receiver; | |
5865 if (receiver instanceof P.Object) | |
5866 return receiver; | |
5867 return J.getNativeInterceptor(receiver); | |
5868 }; | |
5869 C.C_JsonCodec = new P.JsonCodec(); | |
5870 C.C_UnknownJavaScriptObject = new J.UnknownJavaScriptObject(); | |
5871 C.C__DelayedDone = new P._DelayedDone(); | |
5872 C.C__Random = new P._Random(); | |
5873 C.C__RootZone = new P._RootZone(); | |
5874 C.Duration_0 = new P.Duration(0); | |
5875 C.EventStreamProvider_click = new W.EventStreamProvider("click"); | |
5876 C.EventStreamProvider_input = new W.EventStreamProvider("input"); | |
5877 C.JSArray_methods = J.JSArray.prototype; | |
5878 C.JSInt_methods = J.JSInt.prototype; | |
5879 C.JSNumber_methods = J.JSNumber.prototype; | |
5880 C.JSString_methods = J.JSString.prototype; | |
5881 C.JS_CONST_ZYJ = ((typeof version == "function" && typeof os == "object" &&
"system" in os) | |
5882 || (typeof navigator == "object" | |
5883 && navigator.userAgent.indexOf('Chrome') != -1)) | |
5884 ? function(x) { return x.$dartCachedLength || x.length; } | |
5885 : function(x) { return x.length; }; | |
5886 ; | |
5887 C.JsonDecoder_null = new P.JsonDecoder(null); | |
5888 Isolate.makeConstantList = function(list) { | |
5889 list.immutable$list = true; | |
5890 list.fixed$length = true; | |
5891 return list; | |
5892 }; | |
5893 C.List_empty = Isolate.makeConstantList([]); | |
5894 $.lazyPort = null; | |
5895 $.ReceivePortImpl__nextFreeId = 1; | |
5896 $.Primitives_mirrorFunctionCacheName = "$cachedFunction"; | |
5897 $.Primitives_mirrorInvokeCacheName = "$cachedInvocation"; | |
5898 $.initNativeDispatchFlag = null; | |
5899 $.printToZone = null; | |
5900 $._callbacksAreEnqueued = false; | |
5901 $.Zone__current = C.C__RootZone; | |
5902 $.Expando__keyCount = 0; | |
5903 $.Device__isOpera = null; | |
5904 $.Device__isWebKit = null; | |
5905 $.genButton = null; | |
5906 J.$eq = function(receiver, a0) { | |
5907 if (receiver == null) | |
5908 return a0 == null; | |
5909 if (typeof receiver != "object") | |
5910 return a0 != null && receiver === a0; | |
5911 return J.getInterceptor(receiver).$eq(receiver, a0); | |
5912 }; | |
5913 J.$ge$n = function(receiver, a0) { | |
5914 if (typeof receiver == "number" && typeof a0 == "number") | |
5915 return receiver >= a0; | |
5916 return J.getInterceptor$n(receiver).$ge(receiver, a0); | |
5917 }; | |
5918 J.$index$asx = function(receiver, a0) { | |
5919 if (receiver.constructor == Array || typeof receiver == "string" || H.isJsInde
xable(receiver, receiver[init.dispatchPropertyName])) | |
5920 if (a0 >>> 0 === a0 && a0 < receiver.length) | |
5921 return receiver[a0]; | |
5922 return J.getInterceptor$asx(receiver).$index(receiver, a0); | |
5923 }; | |
5924 J.$indexSet$ax = function(receiver, a0, a1) { | |
5925 if ((receiver.constructor == Array || H.isJsIndexable(receiver, receiver[init.
dispatchPropertyName])) && !receiver.immutable$list && a0 >>> 0 === a0 && a0 < r
eceiver.length) | |
5926 return receiver[a0] = a1; | |
5927 return J.getInterceptor$ax(receiver).$indexSet(receiver, a0, a1); | |
5928 }; | |
5929 J.addEventListener$3$x = function(receiver, a0, a1, a2) { | |
5930 return J.getInterceptor$x(receiver).addEventListener$3(receiver, a0, a1, a2); | |
5931 }; | |
5932 J.forEach$1$ax = function(receiver, a0) { | |
5933 return J.getInterceptor$ax(receiver).forEach$1(receiver, a0); | |
5934 }; | |
5935 J.get$_key$x = function(receiver) { | |
5936 return J.getInterceptor$x(receiver).get$_key(receiver); | |
5937 }; | |
5938 J.get$error$x = function(receiver) { | |
5939 return J.getInterceptor$x(receiver).get$error(receiver); | |
5940 }; | |
5941 J.get$hashCode$ = function(receiver) { | |
5942 return J.getInterceptor(receiver).get$hashCode(receiver); | |
5943 }; | |
5944 J.get$isEmpty$asx = function(receiver) { | |
5945 return J.getInterceptor$asx(receiver).get$isEmpty(receiver); | |
5946 }; | |
5947 J.get$iterator$ax = function(receiver) { | |
5948 return J.getInterceptor$ax(receiver).get$iterator(receiver); | |
5949 }; | |
5950 J.get$length$asx = function(receiver) { | |
5951 return J.getInterceptor$asx(receiver).get$length(receiver); | |
5952 }; | |
5953 J.get$target$x = function(receiver) { | |
5954 return J.getInterceptor$x(receiver).get$target(receiver); | |
5955 }; | |
5956 J.get$values$x = function(receiver) { | |
5957 return J.getInterceptor$x(receiver).get$values(receiver); | |
5958 }; | |
5959 J.removeEventListener$3$x = function(receiver, a0, a1, a2) { | |
5960 return J.getInterceptor$x(receiver).removeEventListener$3(receiver, a0, a1, a2
); | |
5961 }; | |
5962 J.set$disabled$x = function(receiver, value) { | |
5963 return J.getInterceptor$x(receiver).set$disabled(receiver, value); | |
5964 }; | |
5965 J.toList$0$ax = function(receiver) { | |
5966 return J.getInterceptor$ax(receiver).toList$0(receiver); | |
5967 }; | |
5968 J.toString$0 = function(receiver) { | |
5969 return J.getInterceptor(receiver).toString$0(receiver); | |
5970 }; | |
5971 J.trim$0$s = function(receiver) { | |
5972 return J.getInterceptor$s(receiver).trim$0(receiver); | |
5973 }; | |
5974 Isolate.$lazy($, "globalThis", "globalThis", "get$globalThis", function() { | |
5975 return function() { return this; }(); | |
5976 }); | |
5977 Isolate.$lazy($, "globalWindow", "globalWindow", "get$globalWindow", function()
{ | |
5978 return $.get$globalThis().window; | |
5979 }); | |
5980 Isolate.$lazy($, "globalWorker", "globalWorker", "get$globalWorker", function()
{ | |
5981 return $.get$globalThis().Worker; | |
5982 }); | |
5983 Isolate.$lazy($, "globalPostMessageDefined", "globalPostMessageDefined", "get$gl
obalPostMessageDefined", function() { | |
5984 return $.get$globalThis().postMessage !== void 0; | |
5985 }); | |
5986 Isolate.$lazy($, "thisScript", "IsolateNatives_thisScript", "get$IsolateNatives_
thisScript", function() { | |
5987 return H.IsolateNatives_computeThisScript(); | |
5988 }); | |
5989 Isolate.$lazy($, "workerIds", "IsolateNatives_workerIds", "get$IsolateNatives_wo
rkerIds", function() { | |
5990 return new P.Expando(null); | |
5991 }); | |
5992 Isolate.$lazy($, "noSuchMethodPattern", "TypeErrorDecoder_noSuchMethodPattern",
"get$TypeErrorDecoder_noSuchMethodPattern", function() { | |
5993 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
({ toString: function() { return "$receiver$"; } })); | |
5994 }); | |
5995 Isolate.$lazy($, "notClosurePattern", "TypeErrorDecoder_notClosurePattern", "get
$TypeErrorDecoder_notClosurePattern", function() { | |
5996 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
({ $method$: null, toString: function() { return "$receiver$"; } })); | |
5997 }); | |
5998 Isolate.$lazy($, "nullCallPattern", "TypeErrorDecoder_nullCallPattern", "get$Typ
eErrorDecoder_nullCallPattern", function() { | |
5999 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
(null)); | |
6000 }); | |
6001 Isolate.$lazy($, "nullLiteralCallPattern", "TypeErrorDecoder_nullLiteralCallPatt
ern", "get$TypeErrorDecoder_nullLiteralCallPattern", function() { | |
6002 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
Null()); | |
6003 }); | |
6004 Isolate.$lazy($, "undefinedCallPattern", "TypeErrorDecoder_undefinedCallPattern"
, "get$TypeErrorDecoder_undefinedCallPattern", function() { | |
6005 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
(void 0)); | |
6006 }); | |
6007 Isolate.$lazy($, "undefinedLiteralCallPattern", "TypeErrorDecoder_undefinedLiter
alCallPattern", "get$TypeErrorDecoder_undefinedLiteralCallPattern", function() { | |
6008 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokeCallErrorOn
Undefined()); | |
6009 }); | |
6010 Isolate.$lazy($, "nullPropertyPattern", "TypeErrorDecoder_nullPropertyPattern",
"get$TypeErrorDecoder_nullPropertyPattern", function() { | |
6011 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErr
orOn(null)); | |
6012 }); | |
6013 Isolate.$lazy($, "nullLiteralPropertyPattern", "TypeErrorDecoder_nullLiteralProp
ertyPattern", "get$TypeErrorDecoder_nullLiteralPropertyPattern", function() { | |
6014 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErr
orOnNull()); | |
6015 }); | |
6016 Isolate.$lazy($, "undefinedPropertyPattern", "TypeErrorDecoder_undefinedProperty
Pattern", "get$TypeErrorDecoder_undefinedPropertyPattern", function() { | |
6017 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErr
orOn(void 0)); | |
6018 }); | |
6019 Isolate.$lazy($, "undefinedLiteralPropertyPattern", "TypeErrorDecoder_undefinedL
iteralPropertyPattern", "get$TypeErrorDecoder_undefinedLiteralPropertyPattern",
function() { | |
6020 return H.TypeErrorDecoder_extractPattern(H.TypeErrorDecoder_provokePropertyErr
orOnUndefined()); | |
6021 }); | |
6022 Isolate.$lazy($, "getTypeNameOf", "getTypeNameOf", "get$getTypeNameOf", function
() { | |
6023 return H.getFunctionForTypeNameOf(); | |
6024 }); | |
6025 Isolate.$lazy($, "_toStringList", "IterableMixinWorkaround__toStringList", "get$
IterableMixinWorkaround__toStringList", function() { | |
6026 return P.List_List(null, null); | |
6027 }); | |
6028 Isolate.$lazy($, "_stackTraceExpando", "_stackTraceExpando", "get$_stackTraceExp
ando", function() { | |
6029 return new P.Expando("asynchronous error"); | |
6030 }); | |
6031 Isolate.$lazy($, "_asyncCallbacks", "_asyncCallbacks", "get$_asyncCallbacks", fu
nction() { | |
6032 return P.ListQueue$(null, {func: "void_", void: true}); | |
6033 }); | |
6034 Isolate.$lazy($, "_toStringVisiting", "_toStringVisiting", "get$_toStringVisitin
g", function() { | |
6035 return P.HashSet_HashSet$identity(null); | |
6036 }); | |
6037 Isolate.$lazy($, "_toStringList", "Maps__toStringList", "get$Maps__toStringList"
, function() { | |
6038 return P.List_List(null, null); | |
6039 }); | |
6040 Isolate.$lazy($, "indexGen", "PirateName_indexGen", "get$PirateName_indexGen", f
unction() { | |
6041 return C.C__Random; | |
6042 }); | |
6043 Isolate.$lazy($, "names", "PirateName_names", "get$PirateName_names", function()
{ | |
6044 return ["Anne", "Mary", "Jack", "Morgan", "Roger", "Bill", "Ragnar", "Ed", "Jo
hn", "Jane"]; | |
6045 }); | |
6046 Isolate.$lazy($, "appellations", "PirateName_appellations", "get$PirateName_appe
llations", function() { | |
6047 return ["Black", "Damned", "Jackal", "Red", "Stalwart", "Axe", "Young", "Old",
"Angry", "Brave", "Crazy", "Noble"]; | |
6048 }); | |
6049 // Native classes | |
6050 J.Interceptor["%"] = "DOMError|FileError|MediaError|MediaKeyError|Navigator|Navi
gatorUserMediaError|PositionError|SQLError|SVGAnimatedNumberList|SVGAnimatedStri
ng"; | |
6051 | |
6052 | |
6053 init.functionAliases = {}; | |
6054 ; | |
6055 init.metadata = []; | |
6056 $ = null; | |
6057 Isolate = Isolate.$finishIsolateConstructor(Isolate); | |
6058 $ = new Isolate(); | |
6059 function convertToFastObject(properties) { | 3309 function convertToFastObject(properties) { |
6060 function MyClass() {}; | 3310 function MyClass() {}; |
6061 MyClass.prototype = properties; | 3311 MyClass.prototype = properties; |
6062 new MyClass(); | 3312 new MyClass(); |
6063 return properties; | 3313 return properties; |
6064 } | 3314 } |
6065 A = convertToFastObject(A); | 3315 A = convertToFastObject(A) |
6066 B = convertToFastObject(B); | 3316 B = convertToFastObject(B) |
6067 C = convertToFastObject(C); | 3317 C = convertToFastObject(C) |
6068 D = convertToFastObject(D); | 3318 D = convertToFastObject(D) |
6069 E = convertToFastObject(E); | 3319 E = convertToFastObject(E) |
6070 F = convertToFastObject(F); | 3320 F = convertToFastObject(F) |
6071 G = convertToFastObject(G); | 3321 G = convertToFastObject(G) |
6072 H = convertToFastObject(H); | 3322 H = convertToFastObject(H) |
6073 J = convertToFastObject(J); | 3323 J = convertToFastObject(J) |
6074 K = convertToFastObject(K); | 3324 K = convertToFastObject(K) |
6075 L = convertToFastObject(L); | 3325 L = convertToFastObject(L) |
6076 M = convertToFastObject(M); | 3326 M = convertToFastObject(M) |
6077 N = convertToFastObject(N); | 3327 N = convertToFastObject(N) |
6078 O = convertToFastObject(O); | 3328 O = convertToFastObject(O) |
6079 P = convertToFastObject(P); | 3329 P = convertToFastObject(P) |
6080 Q = convertToFastObject(Q); | 3330 Q = convertToFastObject(Q) |
6081 R = convertToFastObject(R); | 3331 R = convertToFastObject(R) |
6082 S = convertToFastObject(S); | 3332 S = convertToFastObject(S) |
6083 T = convertToFastObject(T); | 3333 T = convertToFastObject(T) |
6084 U = convertToFastObject(U); | 3334 U = convertToFastObject(U) |
6085 V = convertToFastObject(V); | 3335 V = convertToFastObject(V) |
6086 W = convertToFastObject(W); | 3336 W = convertToFastObject(W) |
6087 X = convertToFastObject(X); | 3337 X = convertToFastObject(X) |
6088 Y = convertToFastObject(Y); | 3338 Y = convertToFastObject(Y) |
6089 Z = convertToFastObject(Z); | 3339 Z = convertToFastObject(Z) |
6090 !function() { | 3340 !function(){function intern(a){var u={} |
6091 var objectProto = Object.prototype; | 3341 u[a]=1 |
6092 for (var i = 0;; i++) { | 3342 return Object.keys(convertToFastObject(u))[0]}init.getIsolateTag=function(a){ret
urn intern("___dart_"+a+init.isolateTag)} |
6093 var property = "___dart_dispatch_record_ZxYxX_0_"; | 3343 var z="___dart_isolate_tags_" |
6094 if (i > 0) | 3344 var y=Object[z]||(Object[z]=Object.create(null)) |
6095 property = rootProperty + "_" + i; | 3345 var x="_ZxYxX" |
6096 if (!(property in objectProto)) | 3346 for(var w=0;;w++){var v=intern(x+"_"+w+"_") |
6097 return init.dispatchPropertyName = property; | 3347 if(!(v in y)){y[v]=1 |
6098 } | 3348 init.isolateTag=v |
6099 }(); | 3349 break}}}() |
6100 // BEGIN invoke [main]. | 3350 init.dispatchPropertyName=init.getIsolateTag("dispatch_record") |
6101 ;(function (callback) { | 3351 ;(function (callback) { |
6102 if (typeof document === "undefined") { | 3352 if (typeof document === "undefined") { |
6103 callback(null); | 3353 callback(null); |
6104 return; | 3354 return; |
6105 } | 3355 } |
6106 if (document.currentScript) { | 3356 if (document.currentScript) { |
6107 callback(document.currentScript); | 3357 callback(document.currentScript); |
6108 return; | 3358 return; |
6109 } | 3359 } |
6110 | 3360 |
6111 var scripts = document.scripts; | 3361 var scripts = document.scripts; |
6112 function onLoad(event) { | 3362 function onLoad(event) { |
6113 for (var i = 0; i < scripts.length; ++i) { | 3363 for (var i = 0; i < scripts.length; ++i) { |
6114 scripts[i].removeEventListener("load", onLoad, false); | 3364 scripts[i].removeEventListener("load", onLoad, false); |
6115 } | 3365 } |
6116 callback(event.target); | 3366 callback(event.target); |
6117 } | 3367 } |
6118 for (var i = 0; i < scripts.length; ++i) { | 3368 for (var i = 0; i < scripts.length; ++i) { |
6119 scripts[i].addEventListener("load", onLoad, false); | 3369 scripts[i].addEventListener("load", onLoad, false); |
6120 } | 3370 } |
6121 })(function(currentScript) { | 3371 })(function(currentScript) { |
6122 init.currentScript = currentScript; | 3372 init.currentScript = currentScript; |
6123 | 3373 |
6124 if (typeof dartMainRunner === "function") { | 3374 if (typeof dartMainRunner === "function") { |
6125 dartMainRunner(function() { H.startRootIsolate(A.main$closure); }); | 3375 dartMainRunner((function(a){H.Rq(A.eE(),a)}), []); |
6126 } else { | 3376 } else { |
6127 H.startRootIsolate(A.main$closure); | 3377 (function(a){H.Rq(A.eE(),a)})([]); |
6128 } | 3378 } |
6129 }); | 3379 }) |
6130 // END invoke [main]. | 3380 function init(){I.p={} |
6131 function init() { | 3381 function generateAccessor(a,b,c){var y=a.split("-") |
6132 Isolate.$isolateProperties = {}; | 3382 var x=y[0] |
6133 function generateAccessor(field, accessors, cls) { | 3383 var w=x.length |
6134 var len = field.length; | 3384 var v=x.charCodeAt(w-1) |
6135 var code = field.charCodeAt(len - 1); | 3385 var u |
6136 var reflectable = false; | 3386 if(y.length>1)u=true |
6137 if (code == 45) { | 3387 else u=false |
6138 len--; | 3388 v=v>=60&&v<=64?v-59:v>=123&&v<=126?v-117:v>=37&&v<=43?v-27:0 |
6139 code = field.charCodeAt(len - 1); | 3389 if(v){var t=v&3 |
6140 field = field.substring(0, len); | 3390 var s=v>>2 |
6141 reflectable = true; | 3391 var r=x=x.substring(0,w-1) |
6142 } | 3392 var q=x.indexOf(":") |
6143 code = code >= 60 && code <= 64 ? code - 59 : code >= 123 && code <= 126 ? c
ode - 117 : code >= 37 && code <= 43 ? code - 27 : 0; | 3393 if(q>0){r=x.substring(0,q) |
6144 if (code) { | 3394 x=x.substring(q+1)}if(t){var p=t&2?"r":"" |
6145 var getterCode = code & 3; | 3395 var o=t&1?"this":"r" |
6146 var setterCode = code >> 2; | 3396 var n="return "+o+"."+x |
6147 var accessorName = field = field.substring(0, len - 1); | 3397 var m=c+".prototype.g"+r+"=" |
6148 var divider = field.indexOf(":"); | 3398 var l="function("+p+"){"+n+"}" |
6149 if (divider > 0) { | 3399 if(u)b.push(m+"$reflectable("+l+");\n") |
6150 accessorName = field.substring(0, divider); | 3400 else b.push(m+l+";\n")}if(s){var p=s&2?"r,v":"v" |
6151 field = field.substring(divider + 1); | 3401 var o=s&1?"this":"r" |
6152 } | 3402 var n=o+"."+x+"=v" |
6153 if (getterCode) { | 3403 var m=c+".prototype.s"+r+"=" |
6154 var args = getterCode & 2 ? "receiver" : ""; | 3404 var l="function("+p+"){"+n+"}" |
6155 var receiver = getterCode & 1 ? "this" : "receiver"; | 3405 if(u)b.push(m+"$reflectable("+l+");\n") |
6156 var body = "return " + receiver + "." + field; | 3406 else b.push(m+l+";\n")}}return x}I.p.$generateAccessor=generateAccessor |
6157 var property = cls + ".prototype.get$" + accessorName + "="; | 3407 function defineClass(a,b,c){var y=[] |
6158 var fn = "function(" + args + "){" + body + "}"; | 3408 var x="function "+b+"(" |
6159 if (reflectable) | 3409 var w="" |
6160 accessors.push(property + "$reflectable(" + fn + ");\n"); | 3410 for(var v=0;v<c.length;v++){if(v!=0)x+=", " |
6161 else | 3411 var u=generateAccessor(c[v],y,b) |
6162 accessors.push(property + fn + ";\n"); | 3412 var t="parameter_"+u |
6163 } | 3413 x+=t |
6164 if (setterCode) { | 3414 w+="this."+u+" = "+t+";\n"}x+=") {\n"+w+"}\n" |
6165 var args = setterCode & 2 ? "receiver, value" : "value"; | 3415 x+=b+".builtin$cls=\""+a+"\";\n" |
6166 var receiver = setterCode & 1 ? "this" : "receiver"; | 3416 x+="$desc=$collectedClasses."+b+";\n" |
6167 var body = receiver + "." + field + " = value"; | 3417 x+="if($desc instanceof Array) $desc = $desc[1];\n" |
6168 var property = cls + ".prototype.set$" + accessorName + "="; | 3418 x+=b+".prototype = $desc;\n" |
6169 var fn = "function(" + args + "){" + body + "}"; | 3419 if(typeof defineClass.name!="string"){x+=b+".name=\""+b+"\";\n"}x+=y.join("") |
6170 if (reflectable) | 3420 return x}var z=function(){function tmp(){}var y=Object.prototype.hasOwnProperty |
6171 accessors.push(property + "$reflectable(" + fn + ");\n"); | 3421 return function(a,b){tmp.prototype=b.prototype |
6172 else | 3422 var x=new tmp() |
6173 accessors.push(property + fn + ";\n"); | 3423 var w=a.prototype |
6174 } | 3424 for(var v in w)if(y.call(w,v))x[v]=w[v] |
6175 } | 3425 x.constructor=a |
6176 return field; | 3426 a.prototype=x |
6177 } | 3427 return x}}() |
6178 Isolate.$isolateProperties.$generateAccessor = generateAccessor; | 3428 I.$finishClasses=function(a,b,c){var y={} |
6179 function defineClass(name, cls, fields) { | 3429 if(!init.allClasses)init.allClasses={} |
6180 var accessors = []; | 3430 var x=init.allClasses |
6181 var str = "function " + cls + "("; | 3431 var w=Object.prototype.hasOwnProperty |
6182 var body = ""; | 3432 if(typeof dart_precompiled=="function"){var v=dart_precompiled(a)}else{var u="fu
nction $reflectable(fn){fn.$reflectable=1;return fn};\n"+"var $desc;\n" |
6183 for (var i = 0; i < fields.length; i++) { | 3433 var t=[]}for(var s in a){if(w.call(a,s)){var r=a[s] |
6184 if (i != 0) | 3434 if(r instanceof Array)r=r[1] |
6185 str += ", "; | 3435 var q=r["^"],p,o=s,n=q |
6186 var field = generateAccessor(fields[i], accessors, cls); | 3436 if(typeof q=="string"){var m=q.split("/") |
6187 var parameter = "parameter_" + field; | 3437 if(m.length==2){o=m[0] |
6188 str += parameter; | 3438 n=m[1]}}var l=n.split(";") |
6189 body += "this." + field + " = " + parameter + ";\n"; | 3439 n=l[1]==""?[]:l[1].split(",") |
6190 } | 3440 p=l[0] |
6191 str += ") {\n" + body + "}\n"; | 3441 m=p.split(":") |
6192 str += cls + ".builtin$cls=\"" + name + "\";\n"; | 3442 if(m.length==2){p=m[0] |
6193 str += "$desc=$collectedClasses." + cls + ";\n"; | 3443 var k=m[1] |
6194 str += "if($desc instanceof Array) $desc = $desc[1];\n"; | 3444 if(k)r.$signature=function(d){return function(){return init.metadata[d]}}(k)}if(
p&&p.indexOf("+")>0){l=p.split("+") |
6195 str += cls + ".prototype = $desc;\n"; | 3445 p=l[0] |
6196 if (typeof defineClass.name != "string") { | 3446 var j=a[l[1]] |
6197 str += cls + ".name=\"" + cls + "\";\n"; | 3447 if(j instanceof Array)j=j[1] |
6198 } | 3448 for(var i in j){if(w.call(j,i)&&!w.call(r,i))r[i]=j[i]}}if(typeof dart_precompil
ed!="function"){u+=defineClass(o,s,n) |
6199 str += accessors.join(""); | 3449 t.push(s)}if(p)y[s]=p}}if(typeof dart_precompiled!="function"){u+="return [\n "
+t.join(",\n ")+"\n]" |
6200 return str; | 3450 var v=new Function("$collectedClasses",u)(a) |
6201 } | 3451 u=null}for(var h=0;h<v.length;h++){var g=v[h] |
6202 var inheritFrom = function() { | 3452 var s=g.name |
6203 function tmp() { | 3453 var r=a[s] |
6204 } | 3454 var f=b |
6205 var hasOwnProperty = Object.prototype.hasOwnProperty; | 3455 if(r instanceof Array){f=r[0]||b |
6206 return function(constructor, superConstructor) { | 3456 r=r[1]}x[s]=g |
6207 tmp.prototype = superConstructor.prototype; | 3457 f[s]=g}v=null |
6208 var object = new tmp(); | 3458 var e={} |
6209 var properties = constructor.prototype; | 3459 init.interceptorsByTag=Object.create(null) |
6210 for (var member in properties) | 3460 init.leafTags={} |
6211 if (hasOwnProperty.call(properties, member)) | 3461 function finishClass(a9){var d=Object.prototype.hasOwnProperty |
6212 object[member] = properties[member]; | 3462 if(d.call(e,a9))return |
6213 object.constructor = constructor; | 3463 e[a9]=true |
6214 constructor.prototype = object; | 3464 var a0=y[a9] |
6215 return object; | 3465 if(!a0||typeof a0!="string")return |
6216 }; | 3466 finishClass(a0) |
6217 }(); | 3467 var a1=x[a9] |
6218 Isolate.$finishClasses = function(collectedClasses, isolateProperties, existin
gIsolateProperties) { | 3468 var a2=x[a0] |
6219 var pendingClasses = {}; | 3469 if(!a2)a2=c[a0] |
6220 if (!init.allClasses) | 3470 var a3=z(a1,a2) |
6221 init.allClasses = {}; | 3471 if(d.call(a3,"%")){var a4=a3["%"].split(";") |
6222 var allClasses = init.allClasses; | 3472 if(a4[0]){var a5=a4[0].split("|") |
6223 var hasOwnProperty = Object.prototype.hasOwnProperty; | 3473 for(var a6=0;a6<a5.length;a6++){init.interceptorsByTag[a5[a6]]=a1 |
6224 if (typeof dart_precompiled == "function") { | 3474 init.leafTags[a5[a6]]=true}}if(a4[1]){a5=a4[1].split("|") |
6225 var constructors = dart_precompiled(collectedClasses); | 3475 if(a4[2]){var a7=a4[2].split("|") |
6226 } else { | 3476 for(var a6=0;a6<a7.length;a6++){var a8=x[a7[a6]] |
6227 var combinedConstructorFunction = "function $reflectable(fn){fn.$reflectab
le=1;return fn};\n" + "var $desc;\n"; | 3477 a8.$nativeSuperclassTag=a5[0]}}for(a6=0;a6<a5.length;a6++){init.interceptorsByTa
g[a5[a6]]=a1 |
6228 var constructorsList = []; | 3478 init.leafTags[a5[a6]]=false}}}}for(var s in y)finishClass(s)} |
6229 } | 3479 I.$lazy=function(a,b,c,d,e){var y={} |
6230 for (var cls in collectedClasses) { | 3480 var x={} |
6231 if (hasOwnProperty.call(collectedClasses, cls)) { | 3481 a[c]=y |
6232 var desc = collectedClasses[cls]; | 3482 a[d]=function(){var w=$[c] |
6233 if (desc instanceof Array) | 3483 try{if(w===y){$[c]=x |
6234 desc = desc[1]; | 3484 try{w=$[c]=e()}finally{if(w===y)if($[c]===x)$[c]=null}}else{if(w===x)H.ag(b)}ret
urn w}finally{$[d]=function(){return this[c]}}}} |
6235 var classData = desc[""], supr, name = cls, fields = classData; | 3485 I.$finishIsolateConstructor=function(a){var y=a.p |
6236 if (typeof classData == "string") { | 3486 function Isolate(){var x=Object.prototype.hasOwnProperty |
6237 var split = classData.split("/"); | 3487 for(var w in y)if(x.call(y,w))this[w]=y[w] |
6238 if (split.length == 2) { | 3488 function ForceEfficientMap(){}ForceEfficientMap.prototype=this |
6239 name = split[0]; | 3489 new ForceEfficientMap()}Isolate.prototype=a.prototype |
6240 fields = split[1]; | 3490 Isolate.prototype.constructor=Isolate |
6241 } | 3491 Isolate.p=y |
6242 } | 3492 Isolate.$finishClasses=a.$finishClasses |
6243 var s = fields.split(";"); | 3493 return Isolate}} |
6244 fields = s[1] == "" ? [] : s[1].split(","); | |
6245 supr = s[0]; | |
6246 if (supr && supr.indexOf("+") > 0) { | |
6247 s = supr.split("+"); | |
6248 supr = s[0]; | |
6249 var mixin = collectedClasses[s[1]]; | |
6250 if (mixin instanceof Array) | |
6251 mixin = mixin[1]; | |
6252 for (var d in mixin) { | |
6253 if (hasOwnProperty.call(mixin, d) && !hasOwnProperty.call(desc, d)) | |
6254 desc[d] = mixin[d]; | |
6255 } | |
6256 } | |
6257 if (typeof dart_precompiled != "function") { | |
6258 combinedConstructorFunction += defineClass(name, cls, fields); | |
6259 constructorsList.push(cls); | |
6260 } | |
6261 if (supr) | |
6262 pendingClasses[cls] = supr; | |
6263 } | |
6264 } | |
6265 if (typeof dart_precompiled != "function") { | |
6266 combinedConstructorFunction += "return [\n " + constructorsList.join(",\n
") + "\n]"; | |
6267 var constructors = new Function("$collectedClasses", combinedConstructorFu
nction)(collectedClasses); | |
6268 combinedConstructorFunction = null; | |
6269 } | |
6270 for (var i = 0; i < constructors.length; i++) { | |
6271 var constructor = constructors[i]; | |
6272 var cls = constructor.name; | |
6273 var desc = collectedClasses[cls]; | |
6274 var globalObject = isolateProperties; | |
6275 if (desc instanceof Array) { | |
6276 globalObject = desc[0] || isolateProperties; | |
6277 desc = desc[1]; | |
6278 } | |
6279 allClasses[cls] = constructor; | |
6280 globalObject[cls] = constructor; | |
6281 } | |
6282 constructors = null; | |
6283 var finishedClasses = {}; | |
6284 init.interceptorsByTag = {}; | |
6285 init.leafTags = {}; | |
6286 function finishClass(cls) { | |
6287 var hasOwnProperty = Object.prototype.hasOwnProperty; | |
6288 if (hasOwnProperty.call(finishedClasses, cls)) | |
6289 return; | |
6290 finishedClasses[cls] = true; | |
6291 var superclass = pendingClasses[cls]; | |
6292 if (!superclass || typeof superclass != "string") | |
6293 return; | |
6294 finishClass(superclass); | |
6295 var constructor = allClasses[cls]; | |
6296 var superConstructor = allClasses[superclass]; | |
6297 if (!superConstructor) | |
6298 superConstructor = existingIsolateProperties[superclass]; | |
6299 var prototype = inheritFrom(constructor, superConstructor); | |
6300 if (hasOwnProperty.call(prototype, "%")) { | |
6301 var nativeSpec = prototype["%"].split(";"); | |
6302 if (nativeSpec[0]) { | |
6303 var tags = nativeSpec[0].split("|"); | |
6304 for (var i = 0; i < tags.length; i++) { | |
6305 init.interceptorsByTag[tags[i]] = constructor; | |
6306 init.leafTags[tags[i]] = true; | |
6307 } | |
6308 } | |
6309 if (nativeSpec[1]) { | |
6310 tags = nativeSpec[1].split("|"); | |
6311 if (nativeSpec[2]) { | |
6312 var subclasses = nativeSpec[2].split("|"); | |
6313 for (var i = 0; i < subclasses.length; i++) { | |
6314 var subclass = allClasses[subclasses[i]]; | |
6315 subclass.$nativeSuperclassTag = tags[0]; | |
6316 } | |
6317 } | |
6318 for (i = 0; i < tags.length; i++) { | |
6319 init.interceptorsByTag[tags[i]] = constructor; | |
6320 init.leafTags[tags[i]] = false; | |
6321 } | |
6322 } | |
6323 } | |
6324 } | |
6325 for (var cls in pendingClasses) | |
6326 finishClass(cls); | |
6327 }; | |
6328 Isolate.$lazy = function(prototype, staticName, fieldName, getterName, lazyVal
ue) { | |
6329 var sentinelUndefined = {}; | |
6330 var sentinelInProgress = {}; | |
6331 prototype[fieldName] = sentinelUndefined; | |
6332 prototype[getterName] = function() { | |
6333 var result = $[fieldName]; | |
6334 try { | |
6335 if (result === sentinelUndefined) { | |
6336 $[fieldName] = sentinelInProgress; | |
6337 try { | |
6338 result = $[fieldName] = lazyValue(); | |
6339 } finally { | |
6340 if (result === sentinelUndefined) { | |
6341 if ($[fieldName] === sentinelInProgress) { | |
6342 $[fieldName] = null; | |
6343 } | |
6344 } | |
6345 } | |
6346 } else { | |
6347 if (result === sentinelInProgress) | |
6348 H.throwCyclicInit(staticName); | |
6349 } | |
6350 return result; | |
6351 } finally { | |
6352 $[getterName] = function() { | |
6353 return this[fieldName]; | |
6354 }; | |
6355 } | |
6356 }; | |
6357 }; | |
6358 Isolate.$finishIsolateConstructor = function(oldIsolate) { | |
6359 var isolateProperties = oldIsolate.$isolateProperties; | |
6360 function Isolate() { | |
6361 var hasOwnProperty = Object.prototype.hasOwnProperty; | |
6362 for (var staticName in isolateProperties) | |
6363 if (hasOwnProperty.call(isolateProperties, staticName)) | |
6364 this[staticName] = isolateProperties[staticName]; | |
6365 function ForceEfficientMap() { | |
6366 } | |
6367 ForceEfficientMap.prototype = this; | |
6368 new ForceEfficientMap(); | |
6369 } | |
6370 Isolate.prototype = oldIsolate.prototype; | |
6371 Isolate.prototype.constructor = Isolate; | |
6372 Isolate.$isolateProperties = isolateProperties; | |
6373 Isolate.$finishClasses = oldIsolate.$finishClasses; | |
6374 Isolate.makeConstantList = oldIsolate.makeConstantList; | |
6375 return Isolate; | |
6376 }; | |
6377 } | |
6378 })() | 3494 })() |
6379 | |
6380 //# sourceMappingURL=piratebadge.dart.js.map | |
6381 //@ sourceMappingURL=piratebadge.dart.js.map | |
OLD | NEW |