plotly.js 2.10.1 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/CONTRIBUTING.md +17 -0
  3. package/README.md +3 -3
  4. package/dist/README.md +22 -22
  5. package/dist/plotly-basic.js +2 -2
  6. package/dist/plotly-basic.min.js +2 -2
  7. package/dist/plotly-cartesian.js +2 -2
  8. package/dist/plotly-cartesian.min.js +2 -2
  9. package/dist/plotly-finance.js +2 -2
  10. package/dist/plotly-finance.min.js +2 -2
  11. package/dist/plotly-geo-assets.js +2 -2
  12. package/dist/plotly-geo.js +2 -2
  13. package/dist/plotly-geo.min.js +2 -2
  14. package/dist/plotly-gl2d.js +380 -344
  15. package/dist/plotly-gl2d.min.js +10 -10
  16. package/dist/plotly-gl3d.js +2 -2
  17. package/dist/plotly-gl3d.min.js +2 -2
  18. package/dist/plotly-mapbox.js +2 -2
  19. package/dist/plotly-mapbox.min.js +2 -2
  20. package/dist/plotly-strict.js +40193 -939
  21. package/dist/plotly-strict.min.js +11 -11
  22. package/dist/plotly-with-meta.js +656 -615
  23. package/dist/plotly.js +627 -586
  24. package/dist/plotly.min.js +3 -3
  25. package/lib/index-strict.js +5 -0
  26. package/package.json +5 -4
  27. package/src/generated/regl-codegen/0919c57b995304312da30a5af7873a319bfb7b7e22ff6b4fa203ecbd5774ebfc +1462 -0
  28. package/src/generated/regl-codegen/13c0ae156483f2bcbd7ff29404f0abfd8689ff43f41791a6c7469868690a4260 +3391 -0
  29. package/src/generated/regl-codegen/19769c875db736c08a744c0a6aabe28276ed06aa24fdb7c36506a9f4c1f56f13 +3375 -0
  30. package/src/generated/regl-codegen/21cec01aa93887c70e86d7f1bc84d6837da0b1f5c1ff4cadd42ac6eb37f9f316 +2488 -0
  31. package/src/generated/regl-codegen/4df455b48c9de7d9f1de4b9481b505c09613ba7f90d2b4e360e673839566688e +662 -0
  32. package/src/generated/regl-codegen/53f2bf051e4ba66c90f343d29aa8da9e4029454c0d428f8e46e94dfddc97c8c6 +459 -0
  33. package/src/generated/regl-codegen/59568c77bcbe6343ee6109df49ceeb78c8a8a8a81872e88fb077f9a3d6dc0567 +637 -0
  34. package/src/generated/regl-codegen/6c3ff5a68d2906faf59307b58a799389f916ebdd3f7732ce75967575041988fc +2226 -0
  35. package/src/generated/regl-codegen/7c8e7f36e693904898ece5f7f8b49b23c69d98397567c3915a45647209eb7da4 +2052 -0
  36. package/src/generated/regl-codegen/8a43b073e4f3e9c0e499c8ac9c253f2aa1e3d3de2febfccc6526b52295dbf770 +664 -0
  37. package/src/generated/regl-codegen/909861c036d6f1ef40ba2dfcc33ef32489d2fe05fa7b7984d5ff315ddceb17b1 +454 -0
  38. package/src/generated/regl-codegen/c759965c8d66b2b356ae7455825df829f2ba7d4e7e903236f8c8d3bc5f45bd44 +2116 -0
  39. package/src/generated/regl-codegen/f9448a214a3e3cd439b767559aa71a4d1ccf5a8f39b8b756973e71acd33ff956 +2755 -0
  40. package/src/generated/regl-codegen/ff8495670417d5d0e4caa9942ad63b4dff0242a390ac1cb807c78ca326d6f3ce +639 -0
  41. package/src/lib/prepare_regl.js +7 -3
  42. package/src/traces/parcoords/base_index.js +24 -0
  43. package/src/traces/parcoords/index.js +4 -22
  44. package/src/traces/parcoords/plot-strict.js +9 -0
  45. package/src/traces/parcoords/plot.js +5 -2
  46. package/src/traces/parcoords/regl_precompiled.js +12 -0
  47. package/src/traces/parcoords/strict.js +7 -0
  48. package/src/traces/scattergl/base_index.js +29 -0
  49. package/src/traces/scattergl/index.js +3 -26
  50. package/src/traces/scattergl/plot.js +5 -2
  51. package/src/traces/scattergl/plot_strict.js +9 -0
  52. package/src/traces/scattergl/regl_precompiled.js +24 -0
  53. package/src/traces/scattergl/strict.js +7 -0
  54. package/src/traces/scatterpolargl/base_index.js +29 -0
  55. package/src/traces/scatterpolargl/index.js +3 -26
  56. package/src/traces/scatterpolargl/plot.js +4 -0
  57. package/src/traces/scatterpolargl/plot_strict.js +13 -0
  58. package/src/traces/scatterpolargl/regl_precompiled.js +24 -0
  59. package/src/traces/scatterpolargl/strict.js +7 -0
  60. package/src/traces/splom/base_index.js +36 -0
  61. package/src/traces/splom/base_plot.js +5 -2
  62. package/src/traces/splom/base_plot_strict.js +9 -0
  63. package/src/traces/splom/index.js +3 -33
  64. package/src/traces/splom/regl_precompiled.js +24 -0
  65. package/src/traces/splom/strict.js +7 -0
  66. package/src/version.js +1 -1
  67. package/tasks/bundle.js +18 -0
  68. package/tasks/partial_bundle.js +26 -23
  69. package/tasks/stats.js +3 -3
  70. package/tasks/util/constants.js +13 -1
@@ -0,0 +1,2226 @@
1
+ module.exports = function anonymous(g0,g18,g19,g52,g54,g56,g58,g60,g97,g104,g105,g107,g112,g115,g117,g118,g121,g123,g137,g141,g144,g146,g160,g164,g167,g169,g183,g187,g189,g203,g207,g209,g210,g212,g213,g215,g216,g218,g221,g223,g226,g228,g231,g233,g236,g237,g239,g258,g260,g262,g264,g266,g268,g270,g272,g274,g276,g278,g280,g291,g295,g299,g302,g305,g308,g311,g314,g317,g320,g323,g326,g328,g341,g354,g381,g408,g435,g462,g475,g477,g514,g515,g516
2
+ ) {
3
+ "use strict";
4
+ var v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29,v30,v31,v32,v33,v34,v35,v36,v37,v38,v39,v40,v41,v42,v43,v44,v45,v46,v47,v48,v49,v50,v51,v53,v55,v57,v59;
5
+ v1=g0.gl;
6
+ v2=g0.context;
7
+ v3=g0.strings;
8
+ v4=g0.next;
9
+ v5=g0.current;
10
+ v6=g0.draw;
11
+ v7=g0.elements;
12
+ v8=g0.buffer;
13
+ v9=g0.shader;
14
+ v10=g0.attributes;
15
+ v11=g0.vao;
16
+ v12=g0.uniforms;
17
+ v13=g0.framebuffer;
18
+ v14=g0.extensions;
19
+ v15=g0.timer;
20
+ v16=g0.isBufferArgs;
21
+ v17=g0.isArrayLike;
22
+ v20=v4.blend_color;
23
+ v21=v5.blend_color;
24
+ v22=v4.blend_equation;
25
+ v23=v5.blend_equation;
26
+ v24=v4.blend_func;
27
+ v25=v5.blend_func;
28
+ v26=v4.depth_range;
29
+ v27=v5.depth_range;
30
+ v28=v4.colorMask;
31
+ v29=v5.colorMask;
32
+ v30=v4.polygonOffset_offset;
33
+ v31=v5.polygonOffset_offset;
34
+ v32=v4.sample_coverage;
35
+ v33=v5.sample_coverage;
36
+ v34=v4.stencil_func;
37
+ v35=v5.stencil_func;
38
+ v36=v4.stencil_opFront;
39
+ v37=v5.stencil_opFront;
40
+ v38=v4.stencil_opBack;
41
+ v39=v5.stencil_opBack;
42
+ v40=v4.scissor_box;
43
+ v41=v5.scissor_box;
44
+ v42=v4.viewport;
45
+ v43=v5.viewport;
46
+ v44={
47
+ "points":0,"point":0,"lines":1,"line":1,"triangles":4,"triangle":4,"line loop":2,"line strip":3,"triangle strip":5,"triangle fan":6}
48
+ ;
49
+ v45={
50
+ "never":512,"less":513,"<":513,"equal":514,"=":514,"==":514,"===":514,"lequal":515,"<=":515,"greater":516,">":516,"notequal":517,"!=":517,"!==":517,"gequal":518,">=":518,"always":519}
51
+ ;
52
+ v46={
53
+ "0":0,"1":1,"zero":0,"one":1,"src color":768,"one minus src color":769,"src alpha":770,"one minus src alpha":771,"dst color":774,"one minus dst color":775,"dst alpha":772,"one minus dst alpha":773,"constant color":32769,"one minus constant color":32770,"constant alpha":32771,"one minus constant alpha":32772,"src alpha saturate":776}
54
+ ;
55
+ v47={
56
+ "add":32774,"subtract":32778,"reverse subtract":32779}
57
+ ;
58
+ v48={
59
+ "0":0,"zero":0,"keep":7680,"replace":7681,"increment":7682,"decrement":7683,"increment wrap":34055,"decrement wrap":34056,"invert":5386}
60
+ ;
61
+ v49={
62
+ "int8":5120,"int16":5122,"int32":5124,"uint8":5121,"uint16":5123,"uint32":5125,"float":5126,"float32":5126}
63
+ ;
64
+ v50={
65
+ "cw":2304,"ccw":2305}
66
+ ;
67
+ v51=["constant color, constant alpha","one minus constant color, constant alpha","constant color, one minus constant alpha","one minus constant color, one minus constant alpha","constant alpha, constant color","constant alpha, one minus constant color","one minus constant alpha, constant color","one minus constant alpha, one minus constant color"];
68
+ v53={
69
+ }
70
+ ;
71
+ v53.buffer=g54;
72
+ v53.divisor=1;
73
+ v55={
74
+ }
75
+ ;
76
+ v55.buffer=g56;
77
+ v55.divisor=1;
78
+ v57={
79
+ }
80
+ ;
81
+ v57.buffer=g58;
82
+ v57.divisor=1;
83
+ v59={
84
+ }
85
+ ;
86
+ v59.buffer=g60;
87
+ v59.divisor=1;
88
+ return {
89
+ "draw":function(a0){
90
+ var v61,v62,v96,v98,v99,v100,v101,v102,v103,v106,v108,v109,v110,v111,v113,v114,v116,v119,v120,v122,v124,v125,v126,v127,v128,v129,v130,v131,v132,v133,v134,v135,v136,v138,v139,v140,v142,v143,v145,v147,v148,v149,v150,v151,v152,v153,v154,v155,v156,v157,v158,v159,v161,v162,v163,v165,v166,v168,v170,v171,v172,v173,v174,v175,v176,v177,v178,v179,v180,v181,v182,v184,v185,v186,v188,v190,v191,v192,v193,v194,v195,v196,v197,v198,v199,v200,v201,v202,v204,v205,v206,v208,v211,v214,v217,v219,v220,v222,v224,v225,v227,v229,v230,v232,v234,v235,v238,v240,v241,v242,v243,v244,v245,v246;
91
+ v61=v14.angle_instanced_arrays;
92
+ v62=v13.next;
93
+ if(v62!==v13.cur){
94
+ if(v62){
95
+ v1.bindFramebuffer(36160,v62.framebuffer);
96
+ }
97
+ else{
98
+ v1.bindFramebuffer(36160,null);
99
+ }
100
+ v13.cur=v62;
101
+ }
102
+ if(v5.dirty){
103
+ var v63,v64,v65,v66,v67,v68,v69,v70,v71,v72,v73,v74,v75,v76,v77,v78,v79,v80,v81,v82,v83,v84,v85,v86,v87,v88,v89,v90,v91,v92,v93,v94,v95;
104
+ v63=v4.dither;
105
+ if(v63!==v5.dither){
106
+ if(v63){
107
+ v1.enable(3024);
108
+ }
109
+ else{
110
+ v1.disable(3024);
111
+ }
112
+ v5.dither=v63;
113
+ }
114
+ v64=v4.depth_func;
115
+ if(v64!==v5.depth_func){
116
+ v1.depthFunc(v64);
117
+ v5.depth_func=v64;
118
+ }
119
+ v65=v26[0];
120
+ v66=v26[1];
121
+ if(v65!==v27[0]||v66!==v27[1]){
122
+ v1.depthRange(v65,v66);
123
+ v27[0]=v65;
124
+ v27[1]=v66;
125
+ }
126
+ v67=v4.depth_mask;
127
+ if(v67!==v5.depth_mask){
128
+ v1.depthMask(v67);
129
+ v5.depth_mask=v67;
130
+ }
131
+ v68=v28[0];
132
+ v69=v28[1];
133
+ v70=v28[2];
134
+ v71=v28[3];
135
+ if(v68!==v29[0]||v69!==v29[1]||v70!==v29[2]||v71!==v29[3]){
136
+ v1.colorMask(v68,v69,v70,v71);
137
+ v29[0]=v68;
138
+ v29[1]=v69;
139
+ v29[2]=v70;
140
+ v29[3]=v71;
141
+ }
142
+ v72=v4.cull_enable;
143
+ if(v72!==v5.cull_enable){
144
+ if(v72){
145
+ v1.enable(2884);
146
+ }
147
+ else{
148
+ v1.disable(2884);
149
+ }
150
+ v5.cull_enable=v72;
151
+ }
152
+ v73=v4.cull_face;
153
+ if(v73!==v5.cull_face){
154
+ v1.cullFace(v73);
155
+ v5.cull_face=v73;
156
+ }
157
+ v74=v4.frontFace;
158
+ if(v74!==v5.frontFace){
159
+ v1.frontFace(v74);
160
+ v5.frontFace=v74;
161
+ }
162
+ v75=v4.lineWidth;
163
+ if(v75!==v5.lineWidth){
164
+ v1.lineWidth(v75);
165
+ v5.lineWidth=v75;
166
+ }
167
+ v76=v4.polygonOffset_enable;
168
+ if(v76!==v5.polygonOffset_enable){
169
+ if(v76){
170
+ v1.enable(32823);
171
+ }
172
+ else{
173
+ v1.disable(32823);
174
+ }
175
+ v5.polygonOffset_enable=v76;
176
+ }
177
+ v77=v30[0];
178
+ v78=v30[1];
179
+ if(v77!==v31[0]||v78!==v31[1]){
180
+ v1.polygonOffset(v77,v78);
181
+ v31[0]=v77;
182
+ v31[1]=v78;
183
+ }
184
+ v79=v4.sample_alpha;
185
+ if(v79!==v5.sample_alpha){
186
+ if(v79){
187
+ v1.enable(32926);
188
+ }
189
+ else{
190
+ v1.disable(32926);
191
+ }
192
+ v5.sample_alpha=v79;
193
+ }
194
+ v80=v4.sample_enable;
195
+ if(v80!==v5.sample_enable){
196
+ if(v80){
197
+ v1.enable(32928);
198
+ }
199
+ else{
200
+ v1.disable(32928);
201
+ }
202
+ v5.sample_enable=v80;
203
+ }
204
+ v81=v32[0];
205
+ v82=v32[1];
206
+ if(v81!==v33[0]||v82!==v33[1]){
207
+ v1.sampleCoverage(v81,v82);
208
+ v33[0]=v81;
209
+ v33[1]=v82;
210
+ }
211
+ v83=v4.stencil_enable;
212
+ if(v83!==v5.stencil_enable){
213
+ if(v83){
214
+ v1.enable(2960);
215
+ }
216
+ else{
217
+ v1.disable(2960);
218
+ }
219
+ v5.stencil_enable=v83;
220
+ }
221
+ v84=v4.stencil_mask;
222
+ if(v84!==v5.stencil_mask){
223
+ v1.stencilMask(v84);
224
+ v5.stencil_mask=v84;
225
+ }
226
+ v85=v34[0];
227
+ v86=v34[1];
228
+ v87=v34[2];
229
+ if(v85!==v35[0]||v86!==v35[1]||v87!==v35[2]){
230
+ v1.stencilFunc(v85,v86,v87);
231
+ v35[0]=v85;
232
+ v35[1]=v86;
233
+ v35[2]=v87;
234
+ }
235
+ v88=v36[0];
236
+ v89=v36[1];
237
+ v90=v36[2];
238
+ v91=v36[3];
239
+ if(v88!==v37[0]||v89!==v37[1]||v90!==v37[2]||v91!==v37[3]){
240
+ v1.stencilOpSeparate(v88,v89,v90,v91);
241
+ v37[0]=v88;
242
+ v37[1]=v89;
243
+ v37[2]=v90;
244
+ v37[3]=v91;
245
+ }
246
+ v92=v38[0];
247
+ v93=v38[1];
248
+ v94=v38[2];
249
+ v95=v38[3];
250
+ if(v92!==v39[0]||v93!==v39[1]||v94!==v39[2]||v95!==v39[3]){
251
+ v1.stencilOpSeparate(v92,v93,v94,v95);
252
+ v39[0]=v92;
253
+ v39[1]=v93;
254
+ v39[2]=v94;
255
+ v39[3]=v95;
256
+ }
257
+ }
258
+ v96=a0["viewport"];
259
+ if(!(v96&&typeof v96==="object"))g18.commandRaise(g97,g19);
260
+ v98=v96.x|0;
261
+ v99=v96.y|0;
262
+ v100="width" in v96?v96.width|0:(v2.framebufferWidth-v98);
263
+ v101="height" in v96?v96.height|0:(v2.framebufferHeight-v99);
264
+ if(!(v100>=0&&v101>=0))g18.commandRaise(g97,g19);
265
+ v102=v2.viewportWidth;
266
+ v2.viewportWidth=v100;
267
+ v103=v2.viewportHeight;
268
+ v2.viewportHeight=v101;
269
+ v1.viewport(v98,v99,v100,v101);
270
+ v43[0]=v98;
271
+ v43[1]=v99;
272
+ v43[2]=v100;
273
+ v43[3]=v101;
274
+ v1.blendColor(0,0,0,0);
275
+ v21[0]=0;
276
+ v21[1]=0;
277
+ v21[2]=0;
278
+ v21[3]=0;
279
+ if(g104){
280
+ v1.enable(3042);
281
+ }
282
+ else{
283
+ v1.disable(3042);
284
+ }
285
+ v5.blend_enable=g104;
286
+ v1.blendEquationSeparate(32774,32774);
287
+ v23[0]=32774;
288
+ v23[1]=32774;
289
+ v1.blendFuncSeparate(770,771,773,1);
290
+ v25[0]=770;
291
+ v25[1]=771;
292
+ v25[2]=773;
293
+ v25[3]=1;
294
+ if(g105){
295
+ v1.enable(2929);
296
+ }
297
+ else{
298
+ v1.disable(2929);
299
+ }
300
+ v5.depth_enable=g105;
301
+ v106=a0["viewport"];
302
+ if(!(v106&&typeof v106==="object"))g18.commandRaise(g107,g19);
303
+ v108=v106.x|0;
304
+ v109=v106.y|0;
305
+ v110="width" in v106?v106.width|0:(v2.framebufferWidth-v108);
306
+ v111="height" in v106?v106.height|0:(v2.framebufferHeight-v109);
307
+ if(!(v110>=0&&v111>=0))g18.commandRaise(g107,g19);
308
+ v1.scissor(v108,v109,v110,v111);
309
+ v41[0]=v108;
310
+ v41[1]=v109;
311
+ v41[2]=v110;
312
+ v41[3]=v111;
313
+ if(g112){
314
+ v1.enable(3089);
315
+ }
316
+ else{
317
+ v1.disable(3089);
318
+ }
319
+ v5.scissor_enable=g112;
320
+ v113=v5.profile;
321
+ if(v113){
322
+ v114=performance.now();
323
+ g52.count++;
324
+ }
325
+ v1.useProgram(g115.program);
326
+ v116=v14.angle_instanced_arrays;
327
+ v11.setVAO(null);
328
+ v119=g118.location;
329
+ v120=v10[v119];
330
+ if(!v120.buffer){
331
+ v1.enableVertexAttribArray(v119);
332
+ }
333
+ if(v120.type!==5126||v120.size!==2||v120.buffer!==g117||v120.normalized!==false||v120.offset!==16||v120.stride!==24){
334
+ v1.bindBuffer(34962,g117.buffer);
335
+ v1.vertexAttribPointer(v119,2,5126,false,24,16);
336
+ v120.type=5126;
337
+ v120.size=2;
338
+ v120.buffer=g117;
339
+ v120.normalized=false;
340
+ v120.offset=16;
341
+ v120.stride=24;
342
+ }
343
+ if(v120.divisor!==0){
344
+ v116.vertexAttribDivisorANGLE(v119,0);
345
+ v120.divisor=0;
346
+ }
347
+ v122=g121.call(this,v2,a0,0);
348
+ v53.offset=v122;
349
+ if(!(v53&&(typeof v53==="object"||typeof v53==="function")&&(v16(v53)||v8.getBuffer(v53)||v8.getBuffer(v53.buffer)||v16(v53.buffer)||("constant" in v53&&(typeof v53.constant==="number"||v17(v53.constant))))))g18.commandRaise(g123,g19);
350
+ v124=false;
351
+ v125=1;
352
+ v126=0;
353
+ v127=0;
354
+ v128=0;
355
+ v129=0;
356
+ v130=null;
357
+ v131=0;
358
+ v132=false;
359
+ v133=5126;
360
+ v134=0;
361
+ v135=0;
362
+ v136=0;
363
+ if(v16(v53)){
364
+ v124=true;
365
+ v130=v8.createStream(34962,v53);
366
+ v133=v130.dtype;
367
+ }
368
+ else{
369
+ v130=v8.getBuffer(v53);
370
+ if(v130){
371
+ v133=v130.dtype;
372
+ }
373
+ else if("constant" in v53){
374
+ v125=2;
375
+ if(typeof v53.constant === "number"){
376
+ v126=v53.constant;
377
+ v127=v128=v129=0;
378
+ }
379
+ else{
380
+ v126=v53.constant.length>0?v53.constant[0]:0;
381
+ v127=v53.constant.length>1?v53.constant[1]:0;
382
+ v128=v53.constant.length>2?v53.constant[2]:0;
383
+ v129=v53.constant.length>3?v53.constant[3]:0;
384
+ }
385
+ }
386
+ else{
387
+ if(v16(v53.buffer)){
388
+ v130=v8.createStream(34962,v53.buffer);
389
+ }
390
+ else{
391
+ v130=v8.getBuffer(v53.buffer);
392
+ }
393
+ v133="type" in v53?v49[v53.type]:v130.dtype;
394
+ v132=!!v53.normalized;
395
+ v131=v53.size|0;
396
+ v134=v53.offset|0;
397
+ v135=v53.stride|0;
398
+ v136=v53.divisor|0;
399
+ }
400
+ }
401
+ v138=g137.location;
402
+ v139=v10[v138];
403
+ if(v125===1){
404
+ if(!v139.buffer){
405
+ v1.enableVertexAttribArray(v138);
406
+ }
407
+ v140=v131||4;
408
+ if(v139.type!==v133||v139.size!==v140||v139.buffer!==v130||v139.normalized!==v132||v139.offset!==v134||v139.stride!==v135){
409
+ v1.bindBuffer(34962,v130.buffer);
410
+ v1.vertexAttribPointer(v138,v140,v133,v132,v135,v134);
411
+ v139.type=v133;
412
+ v139.size=v140;
413
+ v139.buffer=v130;
414
+ v139.normalized=v132;
415
+ v139.offset=v134;
416
+ v139.stride=v135;
417
+ }
418
+ if(v139.divisor!==v136){
419
+ v116.vertexAttribDivisorANGLE(v138,v136);
420
+ v139.divisor=v136;
421
+ }
422
+ }
423
+ else{
424
+ if(v139.buffer){
425
+ v1.disableVertexAttribArray(v138);
426
+ v139.buffer=null;
427
+ }
428
+ if(v139.x!==v126||v139.y!==v127||v139.z!==v128||v139.w!==v129){
429
+ v1.vertexAttrib4f(v138,v126,v127,v128,v129);
430
+ v139.x=v126;
431
+ v139.y=v127;
432
+ v139.z=v128;
433
+ v139.w=v129;
434
+ }
435
+ }
436
+ v142=g141.location;
437
+ v143=v10[v142];
438
+ if(!v143.buffer){
439
+ v1.enableVertexAttribArray(v142);
440
+ }
441
+ if(v143.type!==5126||v143.size!==2||v143.buffer!==g117||v143.normalized!==false||v143.offset!==0||v143.stride!==24){
442
+ v1.bindBuffer(34962,g117.buffer);
443
+ v1.vertexAttribPointer(v142,2,5126,false,24,0);
444
+ v143.type=5126;
445
+ v143.size=2;
446
+ v143.buffer=g117;
447
+ v143.normalized=false;
448
+ v143.offset=0;
449
+ v143.stride=24;
450
+ }
451
+ if(v143.divisor!==0){
452
+ v116.vertexAttribDivisorANGLE(v142,0);
453
+ v143.divisor=0;
454
+ }
455
+ v145=g144.call(this,v2,a0,0);
456
+ v59.offset=v145;
457
+ if(!(v59&&(typeof v59==="object"||typeof v59==="function")&&(v16(v59)||v8.getBuffer(v59)||v8.getBuffer(v59.buffer)||v16(v59.buffer)||("constant" in v59&&(typeof v59.constant==="number"||v17(v59.constant))))))g18.commandRaise(g146,g19);
458
+ v147=false;
459
+ v148=1;
460
+ v149=0;
461
+ v150=0;
462
+ v151=0;
463
+ v152=0;
464
+ v153=null;
465
+ v154=0;
466
+ v155=false;
467
+ v156=5126;
468
+ v157=0;
469
+ v158=0;
470
+ v159=0;
471
+ if(v16(v59)){
472
+ v147=true;
473
+ v153=v8.createStream(34962,v59);
474
+ v156=v153.dtype;
475
+ }
476
+ else{
477
+ v153=v8.getBuffer(v59);
478
+ if(v153){
479
+ v156=v153.dtype;
480
+ }
481
+ else if("constant" in v59){
482
+ v148=2;
483
+ if(typeof v59.constant === "number"){
484
+ v149=v59.constant;
485
+ v150=v151=v152=0;
486
+ }
487
+ else{
488
+ v149=v59.constant.length>0?v59.constant[0]:0;
489
+ v150=v59.constant.length>1?v59.constant[1]:0;
490
+ v151=v59.constant.length>2?v59.constant[2]:0;
491
+ v152=v59.constant.length>3?v59.constant[3]:0;
492
+ }
493
+ }
494
+ else{
495
+ if(v16(v59.buffer)){
496
+ v153=v8.createStream(34962,v59.buffer);
497
+ }
498
+ else{
499
+ v153=v8.getBuffer(v59.buffer);
500
+ }
501
+ v156="type" in v59?v49[v59.type]:v153.dtype;
502
+ v155=!!v59.normalized;
503
+ v154=v59.size|0;
504
+ v157=v59.offset|0;
505
+ v158=v59.stride|0;
506
+ v159=v59.divisor|0;
507
+ }
508
+ }
509
+ v161=g160.location;
510
+ v162=v10[v161];
511
+ if(v148===1){
512
+ if(!v162.buffer){
513
+ v1.enableVertexAttribArray(v161);
514
+ }
515
+ v163=v154||4;
516
+ if(v162.type!==v156||v162.size!==v163||v162.buffer!==v153||v162.normalized!==v155||v162.offset!==v157||v162.stride!==v158){
517
+ v1.bindBuffer(34962,v153.buffer);
518
+ v1.vertexAttribPointer(v161,v163,v156,v155,v158,v157);
519
+ v162.type=v156;
520
+ v162.size=v163;
521
+ v162.buffer=v153;
522
+ v162.normalized=v155;
523
+ v162.offset=v157;
524
+ v162.stride=v158;
525
+ }
526
+ if(v162.divisor!==v159){
527
+ v116.vertexAttribDivisorANGLE(v161,v159);
528
+ v162.divisor=v159;
529
+ }
530
+ }
531
+ else{
532
+ if(v162.buffer){
533
+ v1.disableVertexAttribArray(v161);
534
+ v162.buffer=null;
535
+ }
536
+ if(v162.x!==v149||v162.y!==v150||v162.z!==v151||v162.w!==v152){
537
+ v1.vertexAttrib4f(v161,v149,v150,v151,v152);
538
+ v162.x=v149;
539
+ v162.y=v150;
540
+ v162.z=v151;
541
+ v162.w=v152;
542
+ }
543
+ }
544
+ v165=g164.location;
545
+ v166=v10[v165];
546
+ if(!v166.buffer){
547
+ v1.enableVertexAttribArray(v165);
548
+ }
549
+ if(v166.type!==5126||v166.size!==2||v166.buffer!==g117||v166.normalized!==false||v166.offset!==8||v166.stride!==24){
550
+ v1.bindBuffer(34962,g117.buffer);
551
+ v1.vertexAttribPointer(v165,2,5126,false,24,8);
552
+ v166.type=5126;
553
+ v166.size=2;
554
+ v166.buffer=g117;
555
+ v166.normalized=false;
556
+ v166.offset=8;
557
+ v166.stride=24;
558
+ }
559
+ if(v166.divisor!==0){
560
+ v116.vertexAttribDivisorANGLE(v165,0);
561
+ v166.divisor=0;
562
+ }
563
+ v168=g167.call(this,v2,a0,0);
564
+ v55.offset=v168;
565
+ if(!(v55&&(typeof v55==="object"||typeof v55==="function")&&(v16(v55)||v8.getBuffer(v55)||v8.getBuffer(v55.buffer)||v16(v55.buffer)||("constant" in v55&&(typeof v55.constant==="number"||v17(v55.constant))))))g18.commandRaise(g169,g19);
566
+ v170=false;
567
+ v171=1;
568
+ v172=0;
569
+ v173=0;
570
+ v174=0;
571
+ v175=0;
572
+ v176=null;
573
+ v177=0;
574
+ v178=false;
575
+ v179=5126;
576
+ v180=0;
577
+ v181=0;
578
+ v182=0;
579
+ if(v16(v55)){
580
+ v170=true;
581
+ v176=v8.createStream(34962,v55);
582
+ v179=v176.dtype;
583
+ }
584
+ else{
585
+ v176=v8.getBuffer(v55);
586
+ if(v176){
587
+ v179=v176.dtype;
588
+ }
589
+ else if("constant" in v55){
590
+ v171=2;
591
+ if(typeof v55.constant === "number"){
592
+ v172=v55.constant;
593
+ v173=v174=v175=0;
594
+ }
595
+ else{
596
+ v172=v55.constant.length>0?v55.constant[0]:0;
597
+ v173=v55.constant.length>1?v55.constant[1]:0;
598
+ v174=v55.constant.length>2?v55.constant[2]:0;
599
+ v175=v55.constant.length>3?v55.constant[3]:0;
600
+ }
601
+ }
602
+ else{
603
+ if(v16(v55.buffer)){
604
+ v176=v8.createStream(34962,v55.buffer);
605
+ }
606
+ else{
607
+ v176=v8.getBuffer(v55.buffer);
608
+ }
609
+ v179="type" in v55?v49[v55.type]:v176.dtype;
610
+ v178=!!v55.normalized;
611
+ v177=v55.size|0;
612
+ v180=v55.offset|0;
613
+ v181=v55.stride|0;
614
+ v182=v55.divisor|0;
615
+ }
616
+ }
617
+ v184=g183.location;
618
+ v185=v10[v184];
619
+ if(v171===1){
620
+ if(!v185.buffer){
621
+ v1.enableVertexAttribArray(v184);
622
+ }
623
+ v186=v177||2;
624
+ if(v185.type!==v179||v185.size!==v186||v185.buffer!==v176||v185.normalized!==v178||v185.offset!==v180||v185.stride!==v181){
625
+ v1.bindBuffer(34962,v176.buffer);
626
+ v1.vertexAttribPointer(v184,v186,v179,v178,v181,v180);
627
+ v185.type=v179;
628
+ v185.size=v186;
629
+ v185.buffer=v176;
630
+ v185.normalized=v178;
631
+ v185.offset=v180;
632
+ v185.stride=v181;
633
+ }
634
+ if(v185.divisor!==v182){
635
+ v116.vertexAttribDivisorANGLE(v184,v182);
636
+ v185.divisor=v182;
637
+ }
638
+ }
639
+ else{
640
+ if(v185.buffer){
641
+ v1.disableVertexAttribArray(v184);
642
+ v185.buffer=null;
643
+ }
644
+ if(v185.x!==v172||v185.y!==v173||v185.z!==v174||v185.w!==v175){
645
+ v1.vertexAttrib4f(v184,v172,v173,v174,v175);
646
+ v185.x=v172;
647
+ v185.y=v173;
648
+ v185.z=v174;
649
+ v185.w=v175;
650
+ }
651
+ }
652
+ v188=g187.call(this,v2,a0,0);
653
+ v57.offset=v188;
654
+ if(!(v57&&(typeof v57==="object"||typeof v57==="function")&&(v16(v57)||v8.getBuffer(v57)||v8.getBuffer(v57.buffer)||v16(v57.buffer)||("constant" in v57&&(typeof v57.constant==="number"||v17(v57.constant))))))g18.commandRaise(g189,g19);
655
+ v190=false;
656
+ v191=1;
657
+ v192=0;
658
+ v193=0;
659
+ v194=0;
660
+ v195=0;
661
+ v196=null;
662
+ v197=0;
663
+ v198=false;
664
+ v199=5126;
665
+ v200=0;
666
+ v201=0;
667
+ v202=0;
668
+ if(v16(v57)){
669
+ v190=true;
670
+ v196=v8.createStream(34962,v57);
671
+ v199=v196.dtype;
672
+ }
673
+ else{
674
+ v196=v8.getBuffer(v57);
675
+ if(v196){
676
+ v199=v196.dtype;
677
+ }
678
+ else if("constant" in v57){
679
+ v191=2;
680
+ if(typeof v57.constant === "number"){
681
+ v192=v57.constant;
682
+ v193=v194=v195=0;
683
+ }
684
+ else{
685
+ v192=v57.constant.length>0?v57.constant[0]:0;
686
+ v193=v57.constant.length>1?v57.constant[1]:0;
687
+ v194=v57.constant.length>2?v57.constant[2]:0;
688
+ v195=v57.constant.length>3?v57.constant[3]:0;
689
+ }
690
+ }
691
+ else{
692
+ if(v16(v57.buffer)){
693
+ v196=v8.createStream(34962,v57.buffer);
694
+ }
695
+ else{
696
+ v196=v8.getBuffer(v57.buffer);
697
+ }
698
+ v199="type" in v57?v49[v57.type]:v196.dtype;
699
+ v198=!!v57.normalized;
700
+ v197=v57.size|0;
701
+ v200=v57.offset|0;
702
+ v201=v57.stride|0;
703
+ v202=v57.divisor|0;
704
+ }
705
+ }
706
+ v204=g203.location;
707
+ v205=v10[v204];
708
+ if(v191===1){
709
+ if(!v205.buffer){
710
+ v1.enableVertexAttribArray(v204);
711
+ }
712
+ v206=v197||2;
713
+ if(v205.type!==v199||v205.size!==v206||v205.buffer!==v196||v205.normalized!==v198||v205.offset!==v200||v205.stride!==v201){
714
+ v1.bindBuffer(34962,v196.buffer);
715
+ v1.vertexAttribPointer(v204,v206,v199,v198,v201,v200);
716
+ v205.type=v199;
717
+ v205.size=v206;
718
+ v205.buffer=v196;
719
+ v205.normalized=v198;
720
+ v205.offset=v200;
721
+ v205.stride=v201;
722
+ }
723
+ if(v205.divisor!==v202){
724
+ v116.vertexAttribDivisorANGLE(v204,v202);
725
+ v205.divisor=v202;
726
+ }
727
+ }
728
+ else{
729
+ if(v205.buffer){
730
+ v1.disableVertexAttribArray(v204);
731
+ v205.buffer=null;
732
+ }
733
+ if(v205.x!==v192||v205.y!==v193||v205.z!==v194||v205.w!==v195){
734
+ v1.vertexAttrib4f(v204,v192,v193,v194,v195);
735
+ v205.x=v192;
736
+ v205.y=v193;
737
+ v205.z=v194;
738
+ v205.w=v195;
739
+ }
740
+ }
741
+ v208=a0["capSize"];
742
+ if(!(typeof v208==="number"))g18.commandRaise(g209,g19);
743
+ v1.uniform1f(g207.location,v208);
744
+ v211=a0["lineWidth"];
745
+ if(!(typeof v211==="number"))g18.commandRaise(g212,g19);
746
+ v1.uniform1f(g210.location,v211);
747
+ v214=a0["opacity"];
748
+ if(!(typeof v214==="number"))g18.commandRaise(g215,g19);
749
+ v1.uniform1f(g213.location,v214);
750
+ v217=a0["scale"];
751
+ if(!(v17(v217)&&v217.length===2))g18.commandRaise(g218,g19);
752
+ v219=v217[0];
753
+ v220=v217[1];
754
+ v1.uniform2f(g216.location,v219,v220);
755
+ v222=a0["scaleFract"];
756
+ if(!(v17(v222)&&v222.length===2))g18.commandRaise(g223,g19);
757
+ v224=v222[0];
758
+ v225=v222[1];
759
+ v1.uniform2f(g221.location,v224,v225);
760
+ v227=a0["translate"];
761
+ if(!(v17(v227)&&v227.length===2))g18.commandRaise(g228,g19);
762
+ v229=v227[0];
763
+ v230=v227[1];
764
+ v1.uniform2f(g226.location,v229,v230);
765
+ v232=a0["translateFract"];
766
+ if(!(v17(v232)&&v232.length===2))g18.commandRaise(g233,g19);
767
+ v234=v232[0];
768
+ v235=v232[1];
769
+ v1.uniform2f(g231.location,v234,v235);
770
+ v238=g237.call(this,v2,a0,0);
771
+ if(!(v17(v238)&&v238.length===4))g18.commandRaise(g239,g19);
772
+ v240=v238[0];
773
+ v241=v238[1];
774
+ v242=v238[2];
775
+ v243=v238[3];
776
+ v1.uniform4f(g236.location,v240,v241,v242,v243);
777
+ v244=v6.elements;
778
+ if(v244){
779
+ v1.bindBuffer(34963,v244.buffer.buffer);
780
+ }
781
+ else if(v11.currentVAO){
782
+ v244=v7.getElements(v11.currentVAO.elements);
783
+ if(v244)v1.bindBuffer(34963,v244.buffer.buffer);
784
+ }
785
+ v245=v6.offset;
786
+ v246=a0["count"];
787
+ if(v246>0){
788
+ if(v244){
789
+ v116.drawElementsInstancedANGLE(4,36,v244.type,v245<<((v244.type-5121)>>1),v246);
790
+ }
791
+ else{
792
+ v116.drawArraysInstancedANGLE(4,v245,36,v246);
793
+ }
794
+ }
795
+ else if(v246<0){
796
+ if(v244){
797
+ v1.drawElements(4,36,v244.type,v245<<((v244.type-5121)>>1));
798
+ }
799
+ else{
800
+ v1.drawArrays(4,v245,36);
801
+ }
802
+ }
803
+ v5.dirty=true;
804
+ v11.setVAO(null);
805
+ v2.viewportWidth=v102;
806
+ v2.viewportHeight=v103;
807
+ if(v113){
808
+ g52.cpuTime+=performance.now()-v114;
809
+ }
810
+ if(v124){
811
+ v8.destroyStream(v130);
812
+ }
813
+ if(v147){
814
+ v8.destroyStream(v153);
815
+ }
816
+ if(v170){
817
+ v8.destroyStream(v176);
818
+ }
819
+ if(v190){
820
+ v8.destroyStream(v196);
821
+ }
822
+ }
823
+ ,"scope":function(a0,a1,a2){
824
+ var v247,v248,v249,v250,v251,v252,v253,v254,v255,v256,v257,v259,v261,v263,v265,v267,v269,v271,v273,v275,v277,v279,v281,v282,v283,v284,v285,v286,v287,v288,v289,v290,v292,v293,v294,v296,v297,v298,v300,v301,v303,v304,v306,v307,v309,v310,v312,v313,v315,v316,v318,v319,v321,v322,v324,v325,v327,v329,v330,v331,v332,v333,v334,v335,v336,v337,v338,v339,v340,v342,v343,v344,v345,v346,v347,v348,v349,v350,v351,v352,v353,v355,v356,v357,v358,v359,v360,v361,v362,v363,v364,v365,v366,v367,v368,v369,v370,v371,v372,v373,v374,v375,v376,v377,v378,v379,v380,v382,v383,v384,v385,v386,v387,v388,v389,v390,v391,v392,v393,v394,v395,v396,v397,v398,v399,v400,v401,v402,v403,v404,v405,v406,v407,v409,v410,v411,v412,v413,v414,v415,v416,v417,v418,v419,v420,v421,v422,v423,v424,v425,v426,v427,v428,v429,v430,v431,v432,v433,v434,v436,v437,v438,v439,v440,v441,v442,v443,v444,v445,v446,v447,v448,v449,v450,v451,v452,v453,v454,v455,v456,v457,v458,v459,v460,v461,v463,v464,v465,v466,v467,v468,v469,v470,v471,v472,v473,v474,v476,v478;
825
+ v247=a0["viewport"];
826
+ if(!(v247&&typeof v247==="object"))g18.commandRaise(g97,g19);
827
+ v248=v247.x|0;
828
+ v249=v247.y|0;
829
+ v250="width" in v247?v247.width|0:(v2.framebufferWidth-v248);
830
+ v251="height" in v247?v247.height|0:(v2.framebufferHeight-v249);
831
+ if(!(v250>=0&&v251>=0))g18.commandRaise(g97,g19);
832
+ v252=v2.viewportWidth;
833
+ v2.viewportWidth=v250;
834
+ v253=v2.viewportHeight;
835
+ v2.viewportHeight=v251;
836
+ v254=v42[0];
837
+ v42[0]=v248;
838
+ v255=v42[1];
839
+ v42[1]=v249;
840
+ v256=v42[2];
841
+ v42[2]=v250;
842
+ v257=v42[3];
843
+ v42[3]=v251;
844
+ v259=v20[0];
845
+ v20[0]=g258;
846
+ v261=v20[1];
847
+ v20[1]=g260;
848
+ v263=v20[2];
849
+ v20[2]=g262;
850
+ v265=v20[3];
851
+ v20[3]=g264;
852
+ v267=v4.blend_enable;
853
+ v4.blend_enable=g266;
854
+ v269=v22[0];
855
+ v22[0]=g268;
856
+ v271=v22[1];
857
+ v22[1]=g270;
858
+ v273=v24[0];
859
+ v24[0]=g272;
860
+ v275=v24[1];
861
+ v24[1]=g274;
862
+ v277=v24[2];
863
+ v24[2]=g276;
864
+ v279=v24[3];
865
+ v24[3]=g278;
866
+ v281=v4.depth_enable;
867
+ v4.depth_enable=g280;
868
+ v282=a0["viewport"];
869
+ if(!(v282&&typeof v282==="object"))g18.commandRaise(g107,g19);
870
+ v283=v282.x|0;
871
+ v284=v282.y|0;
872
+ v285="width" in v282?v282.width|0:(v2.framebufferWidth-v283);
873
+ v286="height" in v282?v282.height|0:(v2.framebufferHeight-v284);
874
+ if(!(v285>=0&&v286>=0))g18.commandRaise(g107,g19);
875
+ v287=v40[0];
876
+ v40[0]=v283;
877
+ v288=v40[1];
878
+ v40[1]=v284;
879
+ v289=v40[2];
880
+ v40[2]=v285;
881
+ v290=v40[3];
882
+ v40[3]=v286;
883
+ v292=v4.scissor_enable;
884
+ v4.scissor_enable=g291;
885
+ v293=v5.profile;
886
+ if(v293){
887
+ v294=performance.now();
888
+ g52.count++;
889
+ }
890
+ v296=v6.count;
891
+ v6.count=g295;
892
+ v297=a0["count"];
893
+ v298=v6.instances;
894
+ v6.instances=v297;
895
+ v300=v6.primitive;
896
+ v6.primitive=g299;
897
+ v301=a0["range"];
898
+ v303=v12[g302];
899
+ v12[g302]=v301;
900
+ v304=a0["lineWidth"];
901
+ v306=v12[g305];
902
+ v12[g305]=v304;
903
+ v307=a0["capSize"];
904
+ v309=v12[g308];
905
+ v12[g308]=v307;
906
+ v310=a0["opacity"];
907
+ v312=v12[g311];
908
+ v12[g311]=v310;
909
+ v313=a0["scale"];
910
+ v315=v12[g314];
911
+ v12[g314]=v313;
912
+ v316=a0["translate"];
913
+ v318=v12[g317];
914
+ v12[g317]=v316;
915
+ v319=a0["scaleFract"];
916
+ v321=v12[g320];
917
+ v12[g320]=v319;
918
+ v322=a0["translateFract"];
919
+ v324=v12[g323];
920
+ v12[g323]=v322;
921
+ v325=g237.call(this,v2,a0,a2);
922
+ v327=v12[g326];
923
+ v12[g326]=v325;
924
+ v329=g328.state;
925
+ g328.state=1;
926
+ v330=g328.x;
927
+ g328.x=0;
928
+ v331=g328.y;
929
+ g328.y=0;
930
+ v332=g328.z;
931
+ g328.z=0;
932
+ v333=g328.w;
933
+ g328.w=0;
934
+ v334=g328.buffer;
935
+ g328.buffer=g117;
936
+ v335=g328.size;
937
+ g328.size=0;
938
+ v336=g328.normalized;
939
+ g328.normalized=false;
940
+ v337=g328.type;
941
+ g328.type=5126;
942
+ v338=g328.offset;
943
+ g328.offset=0;
944
+ v339=g328.stride;
945
+ g328.stride=24;
946
+ v340=g328.divisor;
947
+ g328.divisor=0;
948
+ v342=g341.state;
949
+ g341.state=1;
950
+ v343=g341.x;
951
+ g341.x=0;
952
+ v344=g341.y;
953
+ g341.y=0;
954
+ v345=g341.z;
955
+ g341.z=0;
956
+ v346=g341.w;
957
+ g341.w=0;
958
+ v347=g341.buffer;
959
+ g341.buffer=g117;
960
+ v348=g341.size;
961
+ g341.size=0;
962
+ v349=g341.normalized;
963
+ g341.normalized=false;
964
+ v350=g341.type;
965
+ g341.type=5126;
966
+ v351=g341.offset;
967
+ g341.offset=8;
968
+ v352=g341.stride;
969
+ g341.stride=24;
970
+ v353=g341.divisor;
971
+ g341.divisor=0;
972
+ v355=g354.state;
973
+ g354.state=1;
974
+ v356=g354.x;
975
+ g354.x=0;
976
+ v357=g354.y;
977
+ g354.y=0;
978
+ v358=g354.z;
979
+ g354.z=0;
980
+ v359=g354.w;
981
+ g354.w=0;
982
+ v360=g354.buffer;
983
+ g354.buffer=g117;
984
+ v361=g354.size;
985
+ g354.size=0;
986
+ v362=g354.normalized;
987
+ g354.normalized=false;
988
+ v363=g354.type;
989
+ g354.type=5126;
990
+ v364=g354.offset;
991
+ g354.offset=16;
992
+ v365=g354.stride;
993
+ g354.stride=24;
994
+ v366=g354.divisor;
995
+ g354.divisor=0;
996
+ v367=g121.call(this,v2,a0,a2);
997
+ v53.offset=v367;
998
+ if(!(v53&&(typeof v53==="object"||typeof v53==="function")&&(v16(v53)||v8.getBuffer(v53)||v8.getBuffer(v53.buffer)||v16(v53.buffer)||("constant" in v53&&(typeof v53.constant==="number"||v17(v53.constant))))))g18.commandRaise(g123,g19);
999
+ v368=false;
1000
+ v369=1;
1001
+ v370=0;
1002
+ v371=0;
1003
+ v372=0;
1004
+ v373=0;
1005
+ v374=null;
1006
+ v375=0;
1007
+ v376=false;
1008
+ v377=5126;
1009
+ v378=0;
1010
+ v379=0;
1011
+ v380=0;
1012
+ if(v16(v53)){
1013
+ v368=true;
1014
+ v374=v8.createStream(34962,v53);
1015
+ v377=v374.dtype;
1016
+ }
1017
+ else{
1018
+ v374=v8.getBuffer(v53);
1019
+ if(v374){
1020
+ v377=v374.dtype;
1021
+ }
1022
+ else if("constant" in v53){
1023
+ v369=2;
1024
+ if(typeof v53.constant === "number"){
1025
+ v370=v53.constant;
1026
+ v371=v372=v373=0;
1027
+ }
1028
+ else{
1029
+ v370=v53.constant.length>0?v53.constant[0]:0;
1030
+ v371=v53.constant.length>1?v53.constant[1]:0;
1031
+ v372=v53.constant.length>2?v53.constant[2]:0;
1032
+ v373=v53.constant.length>3?v53.constant[3]:0;
1033
+ }
1034
+ }
1035
+ else{
1036
+ if(v16(v53.buffer)){
1037
+ v374=v8.createStream(34962,v53.buffer);
1038
+ }
1039
+ else{
1040
+ v374=v8.getBuffer(v53.buffer);
1041
+ }
1042
+ v377="type" in v53?v49[v53.type]:v374.dtype;
1043
+ v376=!!v53.normalized;
1044
+ v375=v53.size|0;
1045
+ v378=v53.offset|0;
1046
+ v379=v53.stride|0;
1047
+ v380=v53.divisor|0;
1048
+ }
1049
+ }
1050
+ v382=g381.state;
1051
+ g381.state=v369;
1052
+ v383=g381.x;
1053
+ g381.x=v370;
1054
+ v384=g381.y;
1055
+ g381.y=v371;
1056
+ v385=g381.z;
1057
+ g381.z=v372;
1058
+ v386=g381.w;
1059
+ g381.w=v373;
1060
+ v387=g381.buffer;
1061
+ g381.buffer=v374;
1062
+ v388=g381.size;
1063
+ g381.size=v375;
1064
+ v389=g381.normalized;
1065
+ g381.normalized=v376;
1066
+ v390=g381.type;
1067
+ g381.type=v377;
1068
+ v391=g381.offset;
1069
+ g381.offset=v378;
1070
+ v392=g381.stride;
1071
+ g381.stride=v379;
1072
+ v393=g381.divisor;
1073
+ g381.divisor=v380;
1074
+ v394=g167.call(this,v2,a0,a2);
1075
+ v55.offset=v394;
1076
+ if(!(v55&&(typeof v55==="object"||typeof v55==="function")&&(v16(v55)||v8.getBuffer(v55)||v8.getBuffer(v55.buffer)||v16(v55.buffer)||("constant" in v55&&(typeof v55.constant==="number"||v17(v55.constant))))))g18.commandRaise(g169,g19);
1077
+ v395=false;
1078
+ v396=1;
1079
+ v397=0;
1080
+ v398=0;
1081
+ v399=0;
1082
+ v400=0;
1083
+ v401=null;
1084
+ v402=0;
1085
+ v403=false;
1086
+ v404=5126;
1087
+ v405=0;
1088
+ v406=0;
1089
+ v407=0;
1090
+ if(v16(v55)){
1091
+ v395=true;
1092
+ v401=v8.createStream(34962,v55);
1093
+ v404=v401.dtype;
1094
+ }
1095
+ else{
1096
+ v401=v8.getBuffer(v55);
1097
+ if(v401){
1098
+ v404=v401.dtype;
1099
+ }
1100
+ else if("constant" in v55){
1101
+ v396=2;
1102
+ if(typeof v55.constant === "number"){
1103
+ v397=v55.constant;
1104
+ v398=v399=v400=0;
1105
+ }
1106
+ else{
1107
+ v397=v55.constant.length>0?v55.constant[0]:0;
1108
+ v398=v55.constant.length>1?v55.constant[1]:0;
1109
+ v399=v55.constant.length>2?v55.constant[2]:0;
1110
+ v400=v55.constant.length>3?v55.constant[3]:0;
1111
+ }
1112
+ }
1113
+ else{
1114
+ if(v16(v55.buffer)){
1115
+ v401=v8.createStream(34962,v55.buffer);
1116
+ }
1117
+ else{
1118
+ v401=v8.getBuffer(v55.buffer);
1119
+ }
1120
+ v404="type" in v55?v49[v55.type]:v401.dtype;
1121
+ v403=!!v55.normalized;
1122
+ v402=v55.size|0;
1123
+ v405=v55.offset|0;
1124
+ v406=v55.stride|0;
1125
+ v407=v55.divisor|0;
1126
+ }
1127
+ }
1128
+ v409=g408.state;
1129
+ g408.state=v396;
1130
+ v410=g408.x;
1131
+ g408.x=v397;
1132
+ v411=g408.y;
1133
+ g408.y=v398;
1134
+ v412=g408.z;
1135
+ g408.z=v399;
1136
+ v413=g408.w;
1137
+ g408.w=v400;
1138
+ v414=g408.buffer;
1139
+ g408.buffer=v401;
1140
+ v415=g408.size;
1141
+ g408.size=v402;
1142
+ v416=g408.normalized;
1143
+ g408.normalized=v403;
1144
+ v417=g408.type;
1145
+ g408.type=v404;
1146
+ v418=g408.offset;
1147
+ g408.offset=v405;
1148
+ v419=g408.stride;
1149
+ g408.stride=v406;
1150
+ v420=g408.divisor;
1151
+ g408.divisor=v407;
1152
+ v421=g187.call(this,v2,a0,a2);
1153
+ v57.offset=v421;
1154
+ if(!(v57&&(typeof v57==="object"||typeof v57==="function")&&(v16(v57)||v8.getBuffer(v57)||v8.getBuffer(v57.buffer)||v16(v57.buffer)||("constant" in v57&&(typeof v57.constant==="number"||v17(v57.constant))))))g18.commandRaise(g189,g19);
1155
+ v422=false;
1156
+ v423=1;
1157
+ v424=0;
1158
+ v425=0;
1159
+ v426=0;
1160
+ v427=0;
1161
+ v428=null;
1162
+ v429=0;
1163
+ v430=false;
1164
+ v431=5126;
1165
+ v432=0;
1166
+ v433=0;
1167
+ v434=0;
1168
+ if(v16(v57)){
1169
+ v422=true;
1170
+ v428=v8.createStream(34962,v57);
1171
+ v431=v428.dtype;
1172
+ }
1173
+ else{
1174
+ v428=v8.getBuffer(v57);
1175
+ if(v428){
1176
+ v431=v428.dtype;
1177
+ }
1178
+ else if("constant" in v57){
1179
+ v423=2;
1180
+ if(typeof v57.constant === "number"){
1181
+ v424=v57.constant;
1182
+ v425=v426=v427=0;
1183
+ }
1184
+ else{
1185
+ v424=v57.constant.length>0?v57.constant[0]:0;
1186
+ v425=v57.constant.length>1?v57.constant[1]:0;
1187
+ v426=v57.constant.length>2?v57.constant[2]:0;
1188
+ v427=v57.constant.length>3?v57.constant[3]:0;
1189
+ }
1190
+ }
1191
+ else{
1192
+ if(v16(v57.buffer)){
1193
+ v428=v8.createStream(34962,v57.buffer);
1194
+ }
1195
+ else{
1196
+ v428=v8.getBuffer(v57.buffer);
1197
+ }
1198
+ v431="type" in v57?v49[v57.type]:v428.dtype;
1199
+ v430=!!v57.normalized;
1200
+ v429=v57.size|0;
1201
+ v432=v57.offset|0;
1202
+ v433=v57.stride|0;
1203
+ v434=v57.divisor|0;
1204
+ }
1205
+ }
1206
+ v436=g435.state;
1207
+ g435.state=v423;
1208
+ v437=g435.x;
1209
+ g435.x=v424;
1210
+ v438=g435.y;
1211
+ g435.y=v425;
1212
+ v439=g435.z;
1213
+ g435.z=v426;
1214
+ v440=g435.w;
1215
+ g435.w=v427;
1216
+ v441=g435.buffer;
1217
+ g435.buffer=v428;
1218
+ v442=g435.size;
1219
+ g435.size=v429;
1220
+ v443=g435.normalized;
1221
+ g435.normalized=v430;
1222
+ v444=g435.type;
1223
+ g435.type=v431;
1224
+ v445=g435.offset;
1225
+ g435.offset=v432;
1226
+ v446=g435.stride;
1227
+ g435.stride=v433;
1228
+ v447=g435.divisor;
1229
+ g435.divisor=v434;
1230
+ v448=g144.call(this,v2,a0,a2);
1231
+ v59.offset=v448;
1232
+ if(!(v59&&(typeof v59==="object"||typeof v59==="function")&&(v16(v59)||v8.getBuffer(v59)||v8.getBuffer(v59.buffer)||v16(v59.buffer)||("constant" in v59&&(typeof v59.constant==="number"||v17(v59.constant))))))g18.commandRaise(g146,g19);
1233
+ v449=false;
1234
+ v450=1;
1235
+ v451=0;
1236
+ v452=0;
1237
+ v453=0;
1238
+ v454=0;
1239
+ v455=null;
1240
+ v456=0;
1241
+ v457=false;
1242
+ v458=5126;
1243
+ v459=0;
1244
+ v460=0;
1245
+ v461=0;
1246
+ if(v16(v59)){
1247
+ v449=true;
1248
+ v455=v8.createStream(34962,v59);
1249
+ v458=v455.dtype;
1250
+ }
1251
+ else{
1252
+ v455=v8.getBuffer(v59);
1253
+ if(v455){
1254
+ v458=v455.dtype;
1255
+ }
1256
+ else if("constant" in v59){
1257
+ v450=2;
1258
+ if(typeof v59.constant === "number"){
1259
+ v451=v59.constant;
1260
+ v452=v453=v454=0;
1261
+ }
1262
+ else{
1263
+ v451=v59.constant.length>0?v59.constant[0]:0;
1264
+ v452=v59.constant.length>1?v59.constant[1]:0;
1265
+ v453=v59.constant.length>2?v59.constant[2]:0;
1266
+ v454=v59.constant.length>3?v59.constant[3]:0;
1267
+ }
1268
+ }
1269
+ else{
1270
+ if(v16(v59.buffer)){
1271
+ v455=v8.createStream(34962,v59.buffer);
1272
+ }
1273
+ else{
1274
+ v455=v8.getBuffer(v59.buffer);
1275
+ }
1276
+ v458="type" in v59?v49[v59.type]:v455.dtype;
1277
+ v457=!!v59.normalized;
1278
+ v456=v59.size|0;
1279
+ v459=v59.offset|0;
1280
+ v460=v59.stride|0;
1281
+ v461=v59.divisor|0;
1282
+ }
1283
+ }
1284
+ v463=g462.state;
1285
+ g462.state=v450;
1286
+ v464=g462.x;
1287
+ g462.x=v451;
1288
+ v465=g462.y;
1289
+ g462.y=v452;
1290
+ v466=g462.z;
1291
+ g462.z=v453;
1292
+ v467=g462.w;
1293
+ g462.w=v454;
1294
+ v468=g462.buffer;
1295
+ g462.buffer=v455;
1296
+ v469=g462.size;
1297
+ g462.size=v456;
1298
+ v470=g462.normalized;
1299
+ g462.normalized=v457;
1300
+ v471=g462.type;
1301
+ g462.type=v458;
1302
+ v472=g462.offset;
1303
+ g462.offset=v459;
1304
+ v473=g462.stride;
1305
+ g462.stride=v460;
1306
+ v474=g462.divisor;
1307
+ g462.divisor=v461;
1308
+ v476=v9.vert;
1309
+ v9.vert=g475;
1310
+ v478=v9.frag;
1311
+ v9.frag=g477;
1312
+ v5.dirty=true;
1313
+ a1(v2,a0,a2);
1314
+ v2.viewportWidth=v252;
1315
+ v2.viewportHeight=v253;
1316
+ v42[0]=v254;
1317
+ v42[1]=v255;
1318
+ v42[2]=v256;
1319
+ v42[3]=v257;
1320
+ v20[0]=v259;
1321
+ v20[1]=v261;
1322
+ v20[2]=v263;
1323
+ v20[3]=v265;
1324
+ v4.blend_enable=v267;
1325
+ v22[0]=v269;
1326
+ v22[1]=v271;
1327
+ v24[0]=v273;
1328
+ v24[1]=v275;
1329
+ v24[2]=v277;
1330
+ v24[3]=v279;
1331
+ v4.depth_enable=v281;
1332
+ v40[0]=v287;
1333
+ v40[1]=v288;
1334
+ v40[2]=v289;
1335
+ v40[3]=v290;
1336
+ v4.scissor_enable=v292;
1337
+ if(v293){
1338
+ g52.cpuTime+=performance.now()-v294;
1339
+ }
1340
+ v6.count=v296;
1341
+ v6.instances=v298;
1342
+ v6.primitive=v300;
1343
+ v12[g302]=v303;
1344
+ v12[g305]=v306;
1345
+ v12[g308]=v309;
1346
+ v12[g311]=v312;
1347
+ v12[g314]=v315;
1348
+ v12[g317]=v318;
1349
+ v12[g320]=v321;
1350
+ v12[g323]=v324;
1351
+ v12[g326]=v327;
1352
+ g328.state=v329;
1353
+ g328.x=v330;
1354
+ g328.y=v331;
1355
+ g328.z=v332;
1356
+ g328.w=v333;
1357
+ g328.buffer=v334;
1358
+ g328.size=v335;
1359
+ g328.normalized=v336;
1360
+ g328.type=v337;
1361
+ g328.offset=v338;
1362
+ g328.stride=v339;
1363
+ g328.divisor=v340;
1364
+ g341.state=v342;
1365
+ g341.x=v343;
1366
+ g341.y=v344;
1367
+ g341.z=v345;
1368
+ g341.w=v346;
1369
+ g341.buffer=v347;
1370
+ g341.size=v348;
1371
+ g341.normalized=v349;
1372
+ g341.type=v350;
1373
+ g341.offset=v351;
1374
+ g341.stride=v352;
1375
+ g341.divisor=v353;
1376
+ g354.state=v355;
1377
+ g354.x=v356;
1378
+ g354.y=v357;
1379
+ g354.z=v358;
1380
+ g354.w=v359;
1381
+ g354.buffer=v360;
1382
+ g354.size=v361;
1383
+ g354.normalized=v362;
1384
+ g354.type=v363;
1385
+ g354.offset=v364;
1386
+ g354.stride=v365;
1387
+ g354.divisor=v366;
1388
+ if(v368){
1389
+ v8.destroyStream(v374);
1390
+ }
1391
+ g381.state=v382;
1392
+ g381.x=v383;
1393
+ g381.y=v384;
1394
+ g381.z=v385;
1395
+ g381.w=v386;
1396
+ g381.buffer=v387;
1397
+ g381.size=v388;
1398
+ g381.normalized=v389;
1399
+ g381.type=v390;
1400
+ g381.offset=v391;
1401
+ g381.stride=v392;
1402
+ g381.divisor=v393;
1403
+ if(v395){
1404
+ v8.destroyStream(v401);
1405
+ }
1406
+ g408.state=v409;
1407
+ g408.x=v410;
1408
+ g408.y=v411;
1409
+ g408.z=v412;
1410
+ g408.w=v413;
1411
+ g408.buffer=v414;
1412
+ g408.size=v415;
1413
+ g408.normalized=v416;
1414
+ g408.type=v417;
1415
+ g408.offset=v418;
1416
+ g408.stride=v419;
1417
+ g408.divisor=v420;
1418
+ if(v422){
1419
+ v8.destroyStream(v428);
1420
+ }
1421
+ g435.state=v436;
1422
+ g435.x=v437;
1423
+ g435.y=v438;
1424
+ g435.z=v439;
1425
+ g435.w=v440;
1426
+ g435.buffer=v441;
1427
+ g435.size=v442;
1428
+ g435.normalized=v443;
1429
+ g435.type=v444;
1430
+ g435.offset=v445;
1431
+ g435.stride=v446;
1432
+ g435.divisor=v447;
1433
+ if(v449){
1434
+ v8.destroyStream(v455);
1435
+ }
1436
+ g462.state=v463;
1437
+ g462.x=v464;
1438
+ g462.y=v465;
1439
+ g462.z=v466;
1440
+ g462.w=v467;
1441
+ g462.buffer=v468;
1442
+ g462.size=v469;
1443
+ g462.normalized=v470;
1444
+ g462.type=v471;
1445
+ g462.offset=v472;
1446
+ g462.stride=v473;
1447
+ g462.divisor=v474;
1448
+ v9.vert=v476;
1449
+ v9.frag=v478;
1450
+ v5.dirty=true;
1451
+ }
1452
+ ,"batch":function(a0,a1){
1453
+ var v479,v480,v517,v518,v519,v520,v521;
1454
+ v479=v14.angle_instanced_arrays;
1455
+ v480=v13.next;
1456
+ if(v480!==v13.cur){
1457
+ if(v480){
1458
+ v1.bindFramebuffer(36160,v480.framebuffer);
1459
+ }
1460
+ else{
1461
+ v1.bindFramebuffer(36160,null);
1462
+ }
1463
+ v13.cur=v480;
1464
+ }
1465
+ if(v5.dirty){
1466
+ var v481,v482,v483,v484,v485,v486,v487,v488,v489,v490,v491,v492,v493,v494,v495,v496,v497,v498,v499,v500,v501,v502,v503,v504,v505,v506,v507,v508,v509,v510,v511,v512,v513;
1467
+ v481=v4.dither;
1468
+ if(v481!==v5.dither){
1469
+ if(v481){
1470
+ v1.enable(3024);
1471
+ }
1472
+ else{
1473
+ v1.disable(3024);
1474
+ }
1475
+ v5.dither=v481;
1476
+ }
1477
+ v482=v4.depth_func;
1478
+ if(v482!==v5.depth_func){
1479
+ v1.depthFunc(v482);
1480
+ v5.depth_func=v482;
1481
+ }
1482
+ v483=v26[0];
1483
+ v484=v26[1];
1484
+ if(v483!==v27[0]||v484!==v27[1]){
1485
+ v1.depthRange(v483,v484);
1486
+ v27[0]=v483;
1487
+ v27[1]=v484;
1488
+ }
1489
+ v485=v4.depth_mask;
1490
+ if(v485!==v5.depth_mask){
1491
+ v1.depthMask(v485);
1492
+ v5.depth_mask=v485;
1493
+ }
1494
+ v486=v28[0];
1495
+ v487=v28[1];
1496
+ v488=v28[2];
1497
+ v489=v28[3];
1498
+ if(v486!==v29[0]||v487!==v29[1]||v488!==v29[2]||v489!==v29[3]){
1499
+ v1.colorMask(v486,v487,v488,v489);
1500
+ v29[0]=v486;
1501
+ v29[1]=v487;
1502
+ v29[2]=v488;
1503
+ v29[3]=v489;
1504
+ }
1505
+ v490=v4.cull_enable;
1506
+ if(v490!==v5.cull_enable){
1507
+ if(v490){
1508
+ v1.enable(2884);
1509
+ }
1510
+ else{
1511
+ v1.disable(2884);
1512
+ }
1513
+ v5.cull_enable=v490;
1514
+ }
1515
+ v491=v4.cull_face;
1516
+ if(v491!==v5.cull_face){
1517
+ v1.cullFace(v491);
1518
+ v5.cull_face=v491;
1519
+ }
1520
+ v492=v4.frontFace;
1521
+ if(v492!==v5.frontFace){
1522
+ v1.frontFace(v492);
1523
+ v5.frontFace=v492;
1524
+ }
1525
+ v493=v4.lineWidth;
1526
+ if(v493!==v5.lineWidth){
1527
+ v1.lineWidth(v493);
1528
+ v5.lineWidth=v493;
1529
+ }
1530
+ v494=v4.polygonOffset_enable;
1531
+ if(v494!==v5.polygonOffset_enable){
1532
+ if(v494){
1533
+ v1.enable(32823);
1534
+ }
1535
+ else{
1536
+ v1.disable(32823);
1537
+ }
1538
+ v5.polygonOffset_enable=v494;
1539
+ }
1540
+ v495=v30[0];
1541
+ v496=v30[1];
1542
+ if(v495!==v31[0]||v496!==v31[1]){
1543
+ v1.polygonOffset(v495,v496);
1544
+ v31[0]=v495;
1545
+ v31[1]=v496;
1546
+ }
1547
+ v497=v4.sample_alpha;
1548
+ if(v497!==v5.sample_alpha){
1549
+ if(v497){
1550
+ v1.enable(32926);
1551
+ }
1552
+ else{
1553
+ v1.disable(32926);
1554
+ }
1555
+ v5.sample_alpha=v497;
1556
+ }
1557
+ v498=v4.sample_enable;
1558
+ if(v498!==v5.sample_enable){
1559
+ if(v498){
1560
+ v1.enable(32928);
1561
+ }
1562
+ else{
1563
+ v1.disable(32928);
1564
+ }
1565
+ v5.sample_enable=v498;
1566
+ }
1567
+ v499=v32[0];
1568
+ v500=v32[1];
1569
+ if(v499!==v33[0]||v500!==v33[1]){
1570
+ v1.sampleCoverage(v499,v500);
1571
+ v33[0]=v499;
1572
+ v33[1]=v500;
1573
+ }
1574
+ v501=v4.stencil_enable;
1575
+ if(v501!==v5.stencil_enable){
1576
+ if(v501){
1577
+ v1.enable(2960);
1578
+ }
1579
+ else{
1580
+ v1.disable(2960);
1581
+ }
1582
+ v5.stencil_enable=v501;
1583
+ }
1584
+ v502=v4.stencil_mask;
1585
+ if(v502!==v5.stencil_mask){
1586
+ v1.stencilMask(v502);
1587
+ v5.stencil_mask=v502;
1588
+ }
1589
+ v503=v34[0];
1590
+ v504=v34[1];
1591
+ v505=v34[2];
1592
+ if(v503!==v35[0]||v504!==v35[1]||v505!==v35[2]){
1593
+ v1.stencilFunc(v503,v504,v505);
1594
+ v35[0]=v503;
1595
+ v35[1]=v504;
1596
+ v35[2]=v505;
1597
+ }
1598
+ v506=v36[0];
1599
+ v507=v36[1];
1600
+ v508=v36[2];
1601
+ v509=v36[3];
1602
+ if(v506!==v37[0]||v507!==v37[1]||v508!==v37[2]||v509!==v37[3]){
1603
+ v1.stencilOpSeparate(v506,v507,v508,v509);
1604
+ v37[0]=v506;
1605
+ v37[1]=v507;
1606
+ v37[2]=v508;
1607
+ v37[3]=v509;
1608
+ }
1609
+ v510=v38[0];
1610
+ v511=v38[1];
1611
+ v512=v38[2];
1612
+ v513=v38[3];
1613
+ if(v510!==v39[0]||v511!==v39[1]||v512!==v39[2]||v513!==v39[3]){
1614
+ v1.stencilOpSeparate(v510,v511,v512,v513);
1615
+ v39[0]=v510;
1616
+ v39[1]=v511;
1617
+ v39[2]=v512;
1618
+ v39[3]=v513;
1619
+ }
1620
+ }
1621
+ v1.blendColor(0,0,0,0);
1622
+ v21[0]=0;
1623
+ v21[1]=0;
1624
+ v21[2]=0;
1625
+ v21[3]=0;
1626
+ if(g514){
1627
+ v1.enable(3042);
1628
+ }
1629
+ else{
1630
+ v1.disable(3042);
1631
+ }
1632
+ v5.blend_enable=g514;
1633
+ v1.blendEquationSeparate(32774,32774);
1634
+ v23[0]=32774;
1635
+ v23[1]=32774;
1636
+ v1.blendFuncSeparate(770,771,773,1);
1637
+ v25[0]=770;
1638
+ v25[1]=771;
1639
+ v25[2]=773;
1640
+ v25[3]=1;
1641
+ if(g515){
1642
+ v1.enable(2929);
1643
+ }
1644
+ else{
1645
+ v1.disable(2929);
1646
+ }
1647
+ v5.depth_enable=g515;
1648
+ if(g516){
1649
+ v1.enable(3089);
1650
+ }
1651
+ else{
1652
+ v1.disable(3089);
1653
+ }
1654
+ v5.scissor_enable=g516;
1655
+ v517=v5.profile;
1656
+ if(v517){
1657
+ v518=performance.now();
1658
+ g52.count+=a1;
1659
+ }
1660
+ v1.useProgram(g115.program);
1661
+ v519=v14.angle_instanced_arrays;
1662
+ var v534,v535,v536,v537,v538,v539,v643,v644;
1663
+ v11.setVAO(null);
1664
+ v534=g118.location;
1665
+ v535=v10[v534];
1666
+ if(!v535.buffer){
1667
+ v1.enableVertexAttribArray(v534);
1668
+ }
1669
+ if(v535.type!==5126||v535.size!==2||v535.buffer!==g117||v535.normalized!==false||v535.offset!==16||v535.stride!==24){
1670
+ v1.bindBuffer(34962,g117.buffer);
1671
+ v1.vertexAttribPointer(v534,2,5126,false,24,16);
1672
+ v535.type=5126;
1673
+ v535.size=2;
1674
+ v535.buffer=g117;
1675
+ v535.normalized=false;
1676
+ v535.offset=16;
1677
+ v535.stride=24;
1678
+ }
1679
+ if(v535.divisor!==0){
1680
+ v519.vertexAttribDivisorANGLE(v534,0);
1681
+ v535.divisor=0;
1682
+ }
1683
+ v536=g141.location;
1684
+ v537=v10[v536];
1685
+ if(!v537.buffer){
1686
+ v1.enableVertexAttribArray(v536);
1687
+ }
1688
+ if(v537.type!==5126||v537.size!==2||v537.buffer!==g117||v537.normalized!==false||v537.offset!==0||v537.stride!==24){
1689
+ v1.bindBuffer(34962,g117.buffer);
1690
+ v1.vertexAttribPointer(v536,2,5126,false,24,0);
1691
+ v537.type=5126;
1692
+ v537.size=2;
1693
+ v537.buffer=g117;
1694
+ v537.normalized=false;
1695
+ v537.offset=0;
1696
+ v537.stride=24;
1697
+ }
1698
+ if(v537.divisor!==0){
1699
+ v519.vertexAttribDivisorANGLE(v536,0);
1700
+ v537.divisor=0;
1701
+ }
1702
+ v538=g164.location;
1703
+ v539=v10[v538];
1704
+ if(!v539.buffer){
1705
+ v1.enableVertexAttribArray(v538);
1706
+ }
1707
+ if(v539.type!==5126||v539.size!==2||v539.buffer!==g117||v539.normalized!==false||v539.offset!==8||v539.stride!==24){
1708
+ v1.bindBuffer(34962,g117.buffer);
1709
+ v1.vertexAttribPointer(v538,2,5126,false,24,8);
1710
+ v539.type=5126;
1711
+ v539.size=2;
1712
+ v539.buffer=g117;
1713
+ v539.normalized=false;
1714
+ v539.offset=8;
1715
+ v539.stride=24;
1716
+ }
1717
+ if(v539.divisor!==0){
1718
+ v519.vertexAttribDivisorANGLE(v538,0);
1719
+ v539.divisor=0;
1720
+ }
1721
+ v643=v6.elements;
1722
+ if(v643){
1723
+ v1.bindBuffer(34963,v643.buffer.buffer);
1724
+ }
1725
+ else if(v11.currentVAO){
1726
+ v643=v7.getElements(v11.currentVAO.elements);
1727
+ if(v643)v1.bindBuffer(34963,v643.buffer.buffer);
1728
+ }
1729
+ v644=v6.offset;
1730
+ for(v520=0;
1731
+ v520<a1;
1732
+ ++v520){
1733
+ v521=a0[v520];
1734
+ var v522,v523,v524,v525,v526,v527,v528,v529,v530,v531,v532,v533,v540,v541,v542,v543,v544,v545,v546,v547,v548,v549,v550,v551,v552,v553,v554,v555,v556,v557,v558,v559,v560,v561,v562,v563,v564,v565,v566,v567,v568,v569,v570,v571,v572,v573,v574,v575,v576,v577,v578,v579,v580,v581,v582,v583,v584,v585,v586,v587,v588,v589,v590,v591,v592,v593,v594,v595,v596,v597,v598,v599,v600,v601,v602,v603,v604,v605,v606,v607,v608,v609,v610,v611,v612,v613,v614,v615,v616,v617,v618,v619,v620,v621,v622,v623,v624,v625,v626,v627,v628,v629,v630,v631,v632,v633,v634,v635,v636,v637,v638,v639,v640,v641,v642,v645;
1735
+ v522=v521["viewport"];
1736
+ if(!(v522&&typeof v522==="object"))g18.commandRaise(g97,g19);
1737
+ v523=v522.x|0;
1738
+ v524=v522.y|0;
1739
+ v525="width" in v522?v522.width|0:(v2.framebufferWidth-v523);
1740
+ v526="height" in v522?v522.height|0:(v2.framebufferHeight-v524);
1741
+ if(!(v525>=0&&v526>=0))g18.commandRaise(g97,g19);
1742
+ v527=v2.viewportWidth;
1743
+ v2.viewportWidth=v525;
1744
+ v528=v2.viewportHeight;
1745
+ v2.viewportHeight=v526;
1746
+ v1.viewport(v523,v524,v525,v526);
1747
+ v43[0]=v523;
1748
+ v43[1]=v524;
1749
+ v43[2]=v525;
1750
+ v43[3]=v526;
1751
+ v529=v521["viewport"];
1752
+ if(!(v529&&typeof v529==="object"))g18.commandRaise(g107,g19);
1753
+ v530=v529.x|0;
1754
+ v531=v529.y|0;
1755
+ v532="width" in v529?v529.width|0:(v2.framebufferWidth-v530);
1756
+ v533="height" in v529?v529.height|0:(v2.framebufferHeight-v531);
1757
+ if(!(v532>=0&&v533>=0))g18.commandRaise(g107,g19);
1758
+ v1.scissor(v530,v531,v532,v533);
1759
+ v41[0]=v530;
1760
+ v41[1]=v531;
1761
+ v41[2]=v532;
1762
+ v41[3]=v533;
1763
+ v540=g121.call(this,v2,v521,v520);
1764
+ v53.offset=v540;
1765
+ if(!(v53&&(typeof v53==="object"||typeof v53==="function")&&(v16(v53)||v8.getBuffer(v53)||v8.getBuffer(v53.buffer)||v16(v53.buffer)||("constant" in v53&&(typeof v53.constant==="number"||v17(v53.constant))))))g18.commandRaise(g123,g19);
1766
+ v541=false;
1767
+ v542=1;
1768
+ v543=0;
1769
+ v544=0;
1770
+ v545=0;
1771
+ v546=0;
1772
+ v547=null;
1773
+ v548=0;
1774
+ v549=false;
1775
+ v550=5126;
1776
+ v551=0;
1777
+ v552=0;
1778
+ v553=0;
1779
+ if(v16(v53)){
1780
+ v541=true;
1781
+ v547=v8.createStream(34962,v53);
1782
+ v550=v547.dtype;
1783
+ }
1784
+ else{
1785
+ v547=v8.getBuffer(v53);
1786
+ if(v547){
1787
+ v550=v547.dtype;
1788
+ }
1789
+ else if("constant" in v53){
1790
+ v542=2;
1791
+ if(typeof v53.constant === "number"){
1792
+ v543=v53.constant;
1793
+ v544=v545=v546=0;
1794
+ }
1795
+ else{
1796
+ v543=v53.constant.length>0?v53.constant[0]:0;
1797
+ v544=v53.constant.length>1?v53.constant[1]:0;
1798
+ v545=v53.constant.length>2?v53.constant[2]:0;
1799
+ v546=v53.constant.length>3?v53.constant[3]:0;
1800
+ }
1801
+ }
1802
+ else{
1803
+ if(v16(v53.buffer)){
1804
+ v547=v8.createStream(34962,v53.buffer);
1805
+ }
1806
+ else{
1807
+ v547=v8.getBuffer(v53.buffer);
1808
+ }
1809
+ v550="type" in v53?v49[v53.type]:v547.dtype;
1810
+ v549=!!v53.normalized;
1811
+ v548=v53.size|0;
1812
+ v551=v53.offset|0;
1813
+ v552=v53.stride|0;
1814
+ v553=v53.divisor|0;
1815
+ }
1816
+ }
1817
+ v554=g137.location;
1818
+ v555=v10[v554];
1819
+ if(v542===1){
1820
+ if(!v555.buffer){
1821
+ v1.enableVertexAttribArray(v554);
1822
+ }
1823
+ v556=v548||4;
1824
+ if(v555.type!==v550||v555.size!==v556||v555.buffer!==v547||v555.normalized!==v549||v555.offset!==v551||v555.stride!==v552){
1825
+ v1.bindBuffer(34962,v547.buffer);
1826
+ v1.vertexAttribPointer(v554,v556,v550,v549,v552,v551);
1827
+ v555.type=v550;
1828
+ v555.size=v556;
1829
+ v555.buffer=v547;
1830
+ v555.normalized=v549;
1831
+ v555.offset=v551;
1832
+ v555.stride=v552;
1833
+ }
1834
+ if(v555.divisor!==v553){
1835
+ v519.vertexAttribDivisorANGLE(v554,v553);
1836
+ v555.divisor=v553;
1837
+ }
1838
+ }
1839
+ else{
1840
+ if(v555.buffer){
1841
+ v1.disableVertexAttribArray(v554);
1842
+ v555.buffer=null;
1843
+ }
1844
+ if(v555.x!==v543||v555.y!==v544||v555.z!==v545||v555.w!==v546){
1845
+ v1.vertexAttrib4f(v554,v543,v544,v545,v546);
1846
+ v555.x=v543;
1847
+ v555.y=v544;
1848
+ v555.z=v545;
1849
+ v555.w=v546;
1850
+ }
1851
+ }
1852
+ v557=g144.call(this,v2,v521,v520);
1853
+ v59.offset=v557;
1854
+ if(!(v59&&(typeof v59==="object"||typeof v59==="function")&&(v16(v59)||v8.getBuffer(v59)||v8.getBuffer(v59.buffer)||v16(v59.buffer)||("constant" in v59&&(typeof v59.constant==="number"||v17(v59.constant))))))g18.commandRaise(g146,g19);
1855
+ v558=false;
1856
+ v559=1;
1857
+ v560=0;
1858
+ v561=0;
1859
+ v562=0;
1860
+ v563=0;
1861
+ v564=null;
1862
+ v565=0;
1863
+ v566=false;
1864
+ v567=5126;
1865
+ v568=0;
1866
+ v569=0;
1867
+ v570=0;
1868
+ if(v16(v59)){
1869
+ v558=true;
1870
+ v564=v8.createStream(34962,v59);
1871
+ v567=v564.dtype;
1872
+ }
1873
+ else{
1874
+ v564=v8.getBuffer(v59);
1875
+ if(v564){
1876
+ v567=v564.dtype;
1877
+ }
1878
+ else if("constant" in v59){
1879
+ v559=2;
1880
+ if(typeof v59.constant === "number"){
1881
+ v560=v59.constant;
1882
+ v561=v562=v563=0;
1883
+ }
1884
+ else{
1885
+ v560=v59.constant.length>0?v59.constant[0]:0;
1886
+ v561=v59.constant.length>1?v59.constant[1]:0;
1887
+ v562=v59.constant.length>2?v59.constant[2]:0;
1888
+ v563=v59.constant.length>3?v59.constant[3]:0;
1889
+ }
1890
+ }
1891
+ else{
1892
+ if(v16(v59.buffer)){
1893
+ v564=v8.createStream(34962,v59.buffer);
1894
+ }
1895
+ else{
1896
+ v564=v8.getBuffer(v59.buffer);
1897
+ }
1898
+ v567="type" in v59?v49[v59.type]:v564.dtype;
1899
+ v566=!!v59.normalized;
1900
+ v565=v59.size|0;
1901
+ v568=v59.offset|0;
1902
+ v569=v59.stride|0;
1903
+ v570=v59.divisor|0;
1904
+ }
1905
+ }
1906
+ v571=g160.location;
1907
+ v572=v10[v571];
1908
+ if(v559===1){
1909
+ if(!v572.buffer){
1910
+ v1.enableVertexAttribArray(v571);
1911
+ }
1912
+ v573=v565||4;
1913
+ if(v572.type!==v567||v572.size!==v573||v572.buffer!==v564||v572.normalized!==v566||v572.offset!==v568||v572.stride!==v569){
1914
+ v1.bindBuffer(34962,v564.buffer);
1915
+ v1.vertexAttribPointer(v571,v573,v567,v566,v569,v568);
1916
+ v572.type=v567;
1917
+ v572.size=v573;
1918
+ v572.buffer=v564;
1919
+ v572.normalized=v566;
1920
+ v572.offset=v568;
1921
+ v572.stride=v569;
1922
+ }
1923
+ if(v572.divisor!==v570){
1924
+ v519.vertexAttribDivisorANGLE(v571,v570);
1925
+ v572.divisor=v570;
1926
+ }
1927
+ }
1928
+ else{
1929
+ if(v572.buffer){
1930
+ v1.disableVertexAttribArray(v571);
1931
+ v572.buffer=null;
1932
+ }
1933
+ if(v572.x!==v560||v572.y!==v561||v572.z!==v562||v572.w!==v563){
1934
+ v1.vertexAttrib4f(v571,v560,v561,v562,v563);
1935
+ v572.x=v560;
1936
+ v572.y=v561;
1937
+ v572.z=v562;
1938
+ v572.w=v563;
1939
+ }
1940
+ }
1941
+ v574=g167.call(this,v2,v521,v520);
1942
+ v55.offset=v574;
1943
+ if(!(v55&&(typeof v55==="object"||typeof v55==="function")&&(v16(v55)||v8.getBuffer(v55)||v8.getBuffer(v55.buffer)||v16(v55.buffer)||("constant" in v55&&(typeof v55.constant==="number"||v17(v55.constant))))))g18.commandRaise(g169,g19);
1944
+ v575=false;
1945
+ v576=1;
1946
+ v577=0;
1947
+ v578=0;
1948
+ v579=0;
1949
+ v580=0;
1950
+ v581=null;
1951
+ v582=0;
1952
+ v583=false;
1953
+ v584=5126;
1954
+ v585=0;
1955
+ v586=0;
1956
+ v587=0;
1957
+ if(v16(v55)){
1958
+ v575=true;
1959
+ v581=v8.createStream(34962,v55);
1960
+ v584=v581.dtype;
1961
+ }
1962
+ else{
1963
+ v581=v8.getBuffer(v55);
1964
+ if(v581){
1965
+ v584=v581.dtype;
1966
+ }
1967
+ else if("constant" in v55){
1968
+ v576=2;
1969
+ if(typeof v55.constant === "number"){
1970
+ v577=v55.constant;
1971
+ v578=v579=v580=0;
1972
+ }
1973
+ else{
1974
+ v577=v55.constant.length>0?v55.constant[0]:0;
1975
+ v578=v55.constant.length>1?v55.constant[1]:0;
1976
+ v579=v55.constant.length>2?v55.constant[2]:0;
1977
+ v580=v55.constant.length>3?v55.constant[3]:0;
1978
+ }
1979
+ }
1980
+ else{
1981
+ if(v16(v55.buffer)){
1982
+ v581=v8.createStream(34962,v55.buffer);
1983
+ }
1984
+ else{
1985
+ v581=v8.getBuffer(v55.buffer);
1986
+ }
1987
+ v584="type" in v55?v49[v55.type]:v581.dtype;
1988
+ v583=!!v55.normalized;
1989
+ v582=v55.size|0;
1990
+ v585=v55.offset|0;
1991
+ v586=v55.stride|0;
1992
+ v587=v55.divisor|0;
1993
+ }
1994
+ }
1995
+ v588=g183.location;
1996
+ v589=v10[v588];
1997
+ if(v576===1){
1998
+ if(!v589.buffer){
1999
+ v1.enableVertexAttribArray(v588);
2000
+ }
2001
+ v590=v582||2;
2002
+ if(v589.type!==v584||v589.size!==v590||v589.buffer!==v581||v589.normalized!==v583||v589.offset!==v585||v589.stride!==v586){
2003
+ v1.bindBuffer(34962,v581.buffer);
2004
+ v1.vertexAttribPointer(v588,v590,v584,v583,v586,v585);
2005
+ v589.type=v584;
2006
+ v589.size=v590;
2007
+ v589.buffer=v581;
2008
+ v589.normalized=v583;
2009
+ v589.offset=v585;
2010
+ v589.stride=v586;
2011
+ }
2012
+ if(v589.divisor!==v587){
2013
+ v519.vertexAttribDivisorANGLE(v588,v587);
2014
+ v589.divisor=v587;
2015
+ }
2016
+ }
2017
+ else{
2018
+ if(v589.buffer){
2019
+ v1.disableVertexAttribArray(v588);
2020
+ v589.buffer=null;
2021
+ }
2022
+ if(v589.x!==v577||v589.y!==v578||v589.z!==v579||v589.w!==v580){
2023
+ v1.vertexAttrib4f(v588,v577,v578,v579,v580);
2024
+ v589.x=v577;
2025
+ v589.y=v578;
2026
+ v589.z=v579;
2027
+ v589.w=v580;
2028
+ }
2029
+ }
2030
+ v591=g187.call(this,v2,v521,v520);
2031
+ v57.offset=v591;
2032
+ if(!(v57&&(typeof v57==="object"||typeof v57==="function")&&(v16(v57)||v8.getBuffer(v57)||v8.getBuffer(v57.buffer)||v16(v57.buffer)||("constant" in v57&&(typeof v57.constant==="number"||v17(v57.constant))))))g18.commandRaise(g189,g19);
2033
+ v592=false;
2034
+ v593=1;
2035
+ v594=0;
2036
+ v595=0;
2037
+ v596=0;
2038
+ v597=0;
2039
+ v598=null;
2040
+ v599=0;
2041
+ v600=false;
2042
+ v601=5126;
2043
+ v602=0;
2044
+ v603=0;
2045
+ v604=0;
2046
+ if(v16(v57)){
2047
+ v592=true;
2048
+ v598=v8.createStream(34962,v57);
2049
+ v601=v598.dtype;
2050
+ }
2051
+ else{
2052
+ v598=v8.getBuffer(v57);
2053
+ if(v598){
2054
+ v601=v598.dtype;
2055
+ }
2056
+ else if("constant" in v57){
2057
+ v593=2;
2058
+ if(typeof v57.constant === "number"){
2059
+ v594=v57.constant;
2060
+ v595=v596=v597=0;
2061
+ }
2062
+ else{
2063
+ v594=v57.constant.length>0?v57.constant[0]:0;
2064
+ v595=v57.constant.length>1?v57.constant[1]:0;
2065
+ v596=v57.constant.length>2?v57.constant[2]:0;
2066
+ v597=v57.constant.length>3?v57.constant[3]:0;
2067
+ }
2068
+ }
2069
+ else{
2070
+ if(v16(v57.buffer)){
2071
+ v598=v8.createStream(34962,v57.buffer);
2072
+ }
2073
+ else{
2074
+ v598=v8.getBuffer(v57.buffer);
2075
+ }
2076
+ v601="type" in v57?v49[v57.type]:v598.dtype;
2077
+ v600=!!v57.normalized;
2078
+ v599=v57.size|0;
2079
+ v602=v57.offset|0;
2080
+ v603=v57.stride|0;
2081
+ v604=v57.divisor|0;
2082
+ }
2083
+ }
2084
+ v605=g203.location;
2085
+ v606=v10[v605];
2086
+ if(v593===1){
2087
+ if(!v606.buffer){
2088
+ v1.enableVertexAttribArray(v605);
2089
+ }
2090
+ v607=v599||2;
2091
+ if(v606.type!==v601||v606.size!==v607||v606.buffer!==v598||v606.normalized!==v600||v606.offset!==v602||v606.stride!==v603){
2092
+ v1.bindBuffer(34962,v598.buffer);
2093
+ v1.vertexAttribPointer(v605,v607,v601,v600,v603,v602);
2094
+ v606.type=v601;
2095
+ v606.size=v607;
2096
+ v606.buffer=v598;
2097
+ v606.normalized=v600;
2098
+ v606.offset=v602;
2099
+ v606.stride=v603;
2100
+ }
2101
+ if(v606.divisor!==v604){
2102
+ v519.vertexAttribDivisorANGLE(v605,v604);
2103
+ v606.divisor=v604;
2104
+ }
2105
+ }
2106
+ else{
2107
+ if(v606.buffer){
2108
+ v1.disableVertexAttribArray(v605);
2109
+ v606.buffer=null;
2110
+ }
2111
+ if(v606.x!==v594||v606.y!==v595||v606.z!==v596||v606.w!==v597){
2112
+ v1.vertexAttrib4f(v605,v594,v595,v596,v597);
2113
+ v606.x=v594;
2114
+ v606.y=v595;
2115
+ v606.z=v596;
2116
+ v606.w=v597;
2117
+ }
2118
+ }
2119
+ v608=v521["capSize"];
2120
+ if(!(typeof v608==="number"))g18.commandRaise(g209,g19);
2121
+ if(!v520||v609!==v608){
2122
+ v609=v608;
2123
+ v1.uniform1f(g207.location,v608);
2124
+ }
2125
+ v610=v521["lineWidth"];
2126
+ if(!(typeof v610==="number"))g18.commandRaise(g212,g19);
2127
+ if(!v520||v611!==v610){
2128
+ v611=v610;
2129
+ v1.uniform1f(g210.location,v610);
2130
+ }
2131
+ v612=v521["opacity"];
2132
+ if(!(typeof v612==="number"))g18.commandRaise(g215,g19);
2133
+ if(!v520||v613!==v612){
2134
+ v613=v612;
2135
+ v1.uniform1f(g213.location,v612);
2136
+ }
2137
+ v614=v521["scale"];
2138
+ if(!(v17(v614)&&v614.length===2))g18.commandRaise(g218,g19);
2139
+ v615=v614[0];
2140
+ v617=v614[1];
2141
+ if(!v520||v616!==v615||v618!==v617){
2142
+ v616=v615;
2143
+ v618=v617;
2144
+ v1.uniform2f(g216.location,v615,v617);
2145
+ }
2146
+ v619=v521["scaleFract"];
2147
+ if(!(v17(v619)&&v619.length===2))g18.commandRaise(g223,g19);
2148
+ v620=v619[0];
2149
+ v622=v619[1];
2150
+ if(!v520||v621!==v620||v623!==v622){
2151
+ v621=v620;
2152
+ v623=v622;
2153
+ v1.uniform2f(g221.location,v620,v622);
2154
+ }
2155
+ v624=v521["translate"];
2156
+ if(!(v17(v624)&&v624.length===2))g18.commandRaise(g228,g19);
2157
+ v625=v624[0];
2158
+ v627=v624[1];
2159
+ if(!v520||v626!==v625||v628!==v627){
2160
+ v626=v625;
2161
+ v628=v627;
2162
+ v1.uniform2f(g226.location,v625,v627);
2163
+ }
2164
+ v629=v521["translateFract"];
2165
+ if(!(v17(v629)&&v629.length===2))g18.commandRaise(g233,g19);
2166
+ v630=v629[0];
2167
+ v632=v629[1];
2168
+ if(!v520||v631!==v630||v633!==v632){
2169
+ v631=v630;
2170
+ v633=v632;
2171
+ v1.uniform2f(g231.location,v630,v632);
2172
+ }
2173
+ v634=g237.call(this,v2,v521,v520);
2174
+ if(!(v17(v634)&&v634.length===4))g18.commandRaise(g239,g19);
2175
+ v635=v634[0];
2176
+ v637=v634[1];
2177
+ v639=v634[2];
2178
+ v641=v634[3];
2179
+ if(!v520||v636!==v635||v638!==v637||v640!==v639||v642!==v641){
2180
+ v636=v635;
2181
+ v638=v637;
2182
+ v640=v639;
2183
+ v642=v641;
2184
+ v1.uniform4f(g236.location,v635,v637,v639,v641);
2185
+ }
2186
+ v645=v521["count"];
2187
+ if(v645>0){
2188
+ if(v643){
2189
+ v519.drawElementsInstancedANGLE(4,36,v643.type,v644<<((v643.type-5121)>>1),v645);
2190
+ }
2191
+ else{
2192
+ v519.drawArraysInstancedANGLE(4,v644,36,v645);
2193
+ }
2194
+ }
2195
+ else if(v645<0){
2196
+ if(v643){
2197
+ v1.drawElements(4,36,v643.type,v644<<((v643.type-5121)>>1));
2198
+ }
2199
+ else{
2200
+ v1.drawArrays(4,v644,36);
2201
+ }
2202
+ }
2203
+ v2.viewportWidth=v527;
2204
+ v2.viewportHeight=v528;
2205
+ if(v541){
2206
+ v8.destroyStream(v547);
2207
+ }
2208
+ if(v558){
2209
+ v8.destroyStream(v564);
2210
+ }
2211
+ if(v575){
2212
+ v8.destroyStream(v581);
2213
+ }
2214
+ if(v592){
2215
+ v8.destroyStream(v598);
2216
+ }
2217
+ }
2218
+ v5.dirty=true;
2219
+ v11.setVAO(null);
2220
+ if(v517){
2221
+ g52.cpuTime+=performance.now()-v518;
2222
+ }
2223
+ }
2224
+ ,}
2225
+
2226
+ }