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,2052 @@
1
+ module.exports = function anonymous(g0,g18,g19,g52,g97,g104,g105,g106,g109,g112,g126,g131,g145,g150,g164,g169,g183,g187,g189,g190,g191,g193,g195,g196,g198,g201,g202,g204,g207,g209,g210,g211,g213,g214,g216,g221,g222,g224,g225,g227,g228,g230,g233,g235,g238,g240,g243,g245,g252,g254,g267,g269,g271,g273,g275,g277,g279,g281,g283,g285,g287,g295,g298,g301,g304,g307,g310,g313,g316,g319,g322,g325,g328,g331,g334,g350,g377,g404,g431,g444,g446,g496,g497,g498
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,v54;
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.offset=4;
72
+ v53.stride=8;
73
+ v54={
74
+ }
75
+ ;
76
+ v54.offset=0;
77
+ v54.stride=8;
78
+ return {
79
+ "draw":function(a0){
80
+ var v55,v56,v96,v98,v99,v100,v101,v102,v103,v107,v108,v110,v111,v113,v114,v115,v116,v117,v118,v119,v120,v121,v122,v123,v124,v125,v127,v128,v129,v130,v132,v133,v134,v135,v136,v137,v138,v139,v140,v141,v142,v143,v144,v146,v147,v148,v149,v151,v152,v153,v154,v155,v156,v157,v158,v159,v160,v161,v162,v163,v165,v166,v167,v168,v170,v171,v172,v173,v174,v175,v176,v177,v178,v179,v180,v181,v182,v184,v185,v186,v188,v192,v194,v197,v199,v200,v203,v205,v206,v208,v212,v215,v217,v218,v219,v220,v223,v226,v229,v231,v232,v234,v236,v237,v239,v241,v242,v244,v246,v247,v248,v249,v250,v251,v253,v255;
81
+ v55=v14.angle_instanced_arrays;
82
+ v56=v13.next;
83
+ if(v56!==v13.cur){
84
+ if(v56){
85
+ v1.bindFramebuffer(36160,v56.framebuffer);
86
+ }
87
+ else{
88
+ v1.bindFramebuffer(36160,null);
89
+ }
90
+ v13.cur=v56;
91
+ }
92
+ if(v5.dirty){
93
+ var v57,v58,v59,v60,v61,v62,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;
94
+ v57=v4.dither;
95
+ if(v57!==v5.dither){
96
+ if(v57){
97
+ v1.enable(3024);
98
+ }
99
+ else{
100
+ v1.disable(3024);
101
+ }
102
+ v5.dither=v57;
103
+ }
104
+ v58=v22[0];
105
+ v59=v22[1];
106
+ if(v58!==v23[0]||v59!==v23[1]){
107
+ v1.blendEquationSeparate(v58,v59);
108
+ v23[0]=v58;
109
+ v23[1]=v59;
110
+ }
111
+ v60=v4.depth_func;
112
+ if(v60!==v5.depth_func){
113
+ v1.depthFunc(v60);
114
+ v5.depth_func=v60;
115
+ }
116
+ v61=v26[0];
117
+ v62=v26[1];
118
+ if(v61!==v27[0]||v62!==v27[1]){
119
+ v1.depthRange(v61,v62);
120
+ v27[0]=v61;
121
+ v27[1]=v62;
122
+ }
123
+ v63=v4.depth_mask;
124
+ if(v63!==v5.depth_mask){
125
+ v1.depthMask(v63);
126
+ v5.depth_mask=v63;
127
+ }
128
+ v64=v28[0];
129
+ v65=v28[1];
130
+ v66=v28[2];
131
+ v67=v28[3];
132
+ if(v64!==v29[0]||v65!==v29[1]||v66!==v29[2]||v67!==v29[3]){
133
+ v1.colorMask(v64,v65,v66,v67);
134
+ v29[0]=v64;
135
+ v29[1]=v65;
136
+ v29[2]=v66;
137
+ v29[3]=v67;
138
+ }
139
+ v68=v4.cull_enable;
140
+ if(v68!==v5.cull_enable){
141
+ if(v68){
142
+ v1.enable(2884);
143
+ }
144
+ else{
145
+ v1.disable(2884);
146
+ }
147
+ v5.cull_enable=v68;
148
+ }
149
+ v69=v4.cull_face;
150
+ if(v69!==v5.cull_face){
151
+ v1.cullFace(v69);
152
+ v5.cull_face=v69;
153
+ }
154
+ v70=v4.frontFace;
155
+ if(v70!==v5.frontFace){
156
+ v1.frontFace(v70);
157
+ v5.frontFace=v70;
158
+ }
159
+ v71=v4.lineWidth;
160
+ if(v71!==v5.lineWidth){
161
+ v1.lineWidth(v71);
162
+ v5.lineWidth=v71;
163
+ }
164
+ v72=v4.polygonOffset_enable;
165
+ if(v72!==v5.polygonOffset_enable){
166
+ if(v72){
167
+ v1.enable(32823);
168
+ }
169
+ else{
170
+ v1.disable(32823);
171
+ }
172
+ v5.polygonOffset_enable=v72;
173
+ }
174
+ v73=v30[0];
175
+ v74=v30[1];
176
+ if(v73!==v31[0]||v74!==v31[1]){
177
+ v1.polygonOffset(v73,v74);
178
+ v31[0]=v73;
179
+ v31[1]=v74;
180
+ }
181
+ v75=v4.sample_alpha;
182
+ if(v75!==v5.sample_alpha){
183
+ if(v75){
184
+ v1.enable(32926);
185
+ }
186
+ else{
187
+ v1.disable(32926);
188
+ }
189
+ v5.sample_alpha=v75;
190
+ }
191
+ v76=v4.sample_enable;
192
+ if(v76!==v5.sample_enable){
193
+ if(v76){
194
+ v1.enable(32928);
195
+ }
196
+ else{
197
+ v1.disable(32928);
198
+ }
199
+ v5.sample_enable=v76;
200
+ }
201
+ v77=v32[0];
202
+ v78=v32[1];
203
+ if(v77!==v33[0]||v78!==v33[1]){
204
+ v1.sampleCoverage(v77,v78);
205
+ v33[0]=v77;
206
+ v33[1]=v78;
207
+ }
208
+ v79=v4.stencil_mask;
209
+ if(v79!==v5.stencil_mask){
210
+ v1.stencilMask(v79);
211
+ v5.stencil_mask=v79;
212
+ }
213
+ v80=v34[0];
214
+ v81=v34[1];
215
+ v82=v34[2];
216
+ if(v80!==v35[0]||v81!==v35[1]||v82!==v35[2]){
217
+ v1.stencilFunc(v80,v81,v82);
218
+ v35[0]=v80;
219
+ v35[1]=v81;
220
+ v35[2]=v82;
221
+ }
222
+ v83=v36[0];
223
+ v84=v36[1];
224
+ v85=v36[2];
225
+ v86=v36[3];
226
+ if(v83!==v37[0]||v84!==v37[1]||v85!==v37[2]||v86!==v37[3]){
227
+ v1.stencilOpSeparate(v83,v84,v85,v86);
228
+ v37[0]=v83;
229
+ v37[1]=v84;
230
+ v37[2]=v85;
231
+ v37[3]=v86;
232
+ }
233
+ v87=v38[0];
234
+ v88=v38[1];
235
+ v89=v38[2];
236
+ v90=v38[3];
237
+ if(v87!==v39[0]||v88!==v39[1]||v89!==v39[2]||v90!==v39[3]){
238
+ v1.stencilOpSeparate(v87,v88,v89,v90);
239
+ v39[0]=v87;
240
+ v39[1]=v88;
241
+ v39[2]=v89;
242
+ v39[3]=v90;
243
+ }
244
+ v91=v4.scissor_enable;
245
+ if(v91!==v5.scissor_enable){
246
+ if(v91){
247
+ v1.enable(3089);
248
+ }
249
+ else{
250
+ v1.disable(3089);
251
+ }
252
+ v5.scissor_enable=v91;
253
+ }
254
+ v92=v40[0];
255
+ v93=v40[1];
256
+ v94=v40[2];
257
+ v95=v40[3];
258
+ if(v92!==v41[0]||v93!==v41[1]||v94!==v41[2]||v95!==v41[3]){
259
+ v1.scissor(v92,v93,v94,v95);
260
+ v41[0]=v92;
261
+ v41[1]=v93;
262
+ v41[2]=v94;
263
+ v41[3]=v95;
264
+ }
265
+ }
266
+ v96=this["viewport"];
267
+ if(!(v96&&typeof v96==="object"))g18.commandRaise(g97,g19);
268
+ v98=v96.x|0;
269
+ v99=v96.y|0;
270
+ v100="width" in v96?v96.width|0:(v2.framebufferWidth-v98);
271
+ v101="height" in v96?v96.height|0:(v2.framebufferHeight-v99);
272
+ if(!(v100>=0&&v101>=0))g18.commandRaise(g97,g19);
273
+ v102=v2.viewportWidth;
274
+ v2.viewportWidth=v100;
275
+ v103=v2.viewportHeight;
276
+ v2.viewportHeight=v101;
277
+ v1.viewport(v98,v99,v100,v101);
278
+ v43[0]=v98;
279
+ v43[1]=v99;
280
+ v43[2]=v100;
281
+ v43[3]=v101;
282
+ v1.blendColor(0,0,0,1);
283
+ v21[0]=0;
284
+ v21[1]=0;
285
+ v21[2]=0;
286
+ v21[3]=1;
287
+ if(g104){
288
+ v1.enable(3042);
289
+ }
290
+ else{
291
+ v1.disable(3042);
292
+ }
293
+ v5.blend_enable=g104;
294
+ v1.blendFuncSeparate(770,771,773,1);
295
+ v25[0]=770;
296
+ v25[1]=771;
297
+ v25[2]=773;
298
+ v25[3]=1;
299
+ if(g105){
300
+ v1.enable(2929);
301
+ }
302
+ else{
303
+ v1.disable(2929);
304
+ }
305
+ v5.depth_enable=g105;
306
+ if(g106){
307
+ v1.enable(2960);
308
+ }
309
+ else{
310
+ v1.disable(2960);
311
+ }
312
+ v5.stencil_enable=g106;
313
+ v107=v5.profile;
314
+ if(v107){
315
+ v108=performance.now();
316
+ g52.count++;
317
+ }
318
+ v1.useProgram(g109.program);
319
+ v110=v14.angle_instanced_arrays;
320
+ v11.setVAO(null);
321
+ v111=this["charBuffer"];
322
+ if(!(v111&&(typeof v111==="object"||typeof v111==="function")&&(v16(v111)||v8.getBuffer(v111)||v8.getBuffer(v111.buffer)||v16(v111.buffer)||("constant" in v111&&(typeof v111.constant==="number"||v17(v111.constant))))))g18.commandRaise(g112,g19);
323
+ v113=false;
324
+ v114=1;
325
+ v115=0;
326
+ v116=0;
327
+ v117=0;
328
+ v118=0;
329
+ v119=null;
330
+ v120=0;
331
+ v121=false;
332
+ v122=5126;
333
+ v123=0;
334
+ v124=0;
335
+ v125=0;
336
+ if(v16(v111)){
337
+ v113=true;
338
+ v119=v8.createStream(34962,v111);
339
+ v122=v119.dtype;
340
+ }
341
+ else{
342
+ v119=v8.getBuffer(v111);
343
+ if(v119){
344
+ v122=v119.dtype;
345
+ }
346
+ else if("constant" in v111){
347
+ v114=2;
348
+ if(typeof v111.constant === "number"){
349
+ v115=v111.constant;
350
+ v116=v117=v118=0;
351
+ }
352
+ else{
353
+ v115=v111.constant.length>0?v111.constant[0]:0;
354
+ v116=v111.constant.length>1?v111.constant[1]:0;
355
+ v117=v111.constant.length>2?v111.constant[2]:0;
356
+ v118=v111.constant.length>3?v111.constant[3]:0;
357
+ }
358
+ }
359
+ else{
360
+ if(v16(v111.buffer)){
361
+ v119=v8.createStream(34962,v111.buffer);
362
+ }
363
+ else{
364
+ v119=v8.getBuffer(v111.buffer);
365
+ }
366
+ v122="type" in v111?v49[v111.type]:v119.dtype;
367
+ v121=!!v111.normalized;
368
+ v120=v111.size|0;
369
+ v123=v111.offset|0;
370
+ v124=v111.stride|0;
371
+ v125=v111.divisor|0;
372
+ }
373
+ }
374
+ v127=g126.location;
375
+ v128=v10[v127];
376
+ if(v114===1){
377
+ if(!v128.buffer){
378
+ v1.enableVertexAttribArray(v127);
379
+ }
380
+ v129=v120||1;
381
+ if(v128.type!==v122||v128.size!==v129||v128.buffer!==v119||v128.normalized!==v121||v128.offset!==v123||v128.stride!==v124){
382
+ v1.bindBuffer(34962,v119.buffer);
383
+ v1.vertexAttribPointer(v127,v129,v122,v121,v124,v123);
384
+ v128.type=v122;
385
+ v128.size=v129;
386
+ v128.buffer=v119;
387
+ v128.normalized=v121;
388
+ v128.offset=v123;
389
+ v128.stride=v124;
390
+ }
391
+ if(v128.divisor!==v125){
392
+ v110.vertexAttribDivisorANGLE(v127,v125);
393
+ v128.divisor=v125;
394
+ }
395
+ }
396
+ else{
397
+ if(v128.buffer){
398
+ v1.disableVertexAttribArray(v127);
399
+ v128.buffer=null;
400
+ }
401
+ if(v128.x!==v115||v128.y!==v116||v128.z!==v117||v128.w!==v118){
402
+ v1.vertexAttrib4f(v127,v115,v116,v117,v118);
403
+ v128.x=v115;
404
+ v128.y=v116;
405
+ v128.z=v117;
406
+ v128.w=v118;
407
+ }
408
+ }
409
+ v130=this["sizeBuffer"];
410
+ v53.buffer=v130;
411
+ 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(g131,g19);
412
+ v132=false;
413
+ v133=1;
414
+ v134=0;
415
+ v135=0;
416
+ v136=0;
417
+ v137=0;
418
+ v138=null;
419
+ v139=0;
420
+ v140=false;
421
+ v141=5126;
422
+ v142=0;
423
+ v143=0;
424
+ v144=0;
425
+ if(v16(v53)){
426
+ v132=true;
427
+ v138=v8.createStream(34962,v53);
428
+ v141=v138.dtype;
429
+ }
430
+ else{
431
+ v138=v8.getBuffer(v53);
432
+ if(v138){
433
+ v141=v138.dtype;
434
+ }
435
+ else if("constant" in v53){
436
+ v133=2;
437
+ if(typeof v53.constant === "number"){
438
+ v134=v53.constant;
439
+ v135=v136=v137=0;
440
+ }
441
+ else{
442
+ v134=v53.constant.length>0?v53.constant[0]:0;
443
+ v135=v53.constant.length>1?v53.constant[1]:0;
444
+ v136=v53.constant.length>2?v53.constant[2]:0;
445
+ v137=v53.constant.length>3?v53.constant[3]:0;
446
+ }
447
+ }
448
+ else{
449
+ if(v16(v53.buffer)){
450
+ v138=v8.createStream(34962,v53.buffer);
451
+ }
452
+ else{
453
+ v138=v8.getBuffer(v53.buffer);
454
+ }
455
+ v141="type" in v53?v49[v53.type]:v138.dtype;
456
+ v140=!!v53.normalized;
457
+ v139=v53.size|0;
458
+ v142=v53.offset|0;
459
+ v143=v53.stride|0;
460
+ v144=v53.divisor|0;
461
+ }
462
+ }
463
+ v146=g145.location;
464
+ v147=v10[v146];
465
+ if(v133===1){
466
+ if(!v147.buffer){
467
+ v1.enableVertexAttribArray(v146);
468
+ }
469
+ v148=v139||1;
470
+ if(v147.type!==v141||v147.size!==v148||v147.buffer!==v138||v147.normalized!==v140||v147.offset!==v142||v147.stride!==v143){
471
+ v1.bindBuffer(34962,v138.buffer);
472
+ v1.vertexAttribPointer(v146,v148,v141,v140,v143,v142);
473
+ v147.type=v141;
474
+ v147.size=v148;
475
+ v147.buffer=v138;
476
+ v147.normalized=v140;
477
+ v147.offset=v142;
478
+ v147.stride=v143;
479
+ }
480
+ if(v147.divisor!==v144){
481
+ v110.vertexAttribDivisorANGLE(v146,v144);
482
+ v147.divisor=v144;
483
+ }
484
+ }
485
+ else{
486
+ if(v147.buffer){
487
+ v1.disableVertexAttribArray(v146);
488
+ v147.buffer=null;
489
+ }
490
+ if(v147.x!==v134||v147.y!==v135||v147.z!==v136||v147.w!==v137){
491
+ v1.vertexAttrib4f(v146,v134,v135,v136,v137);
492
+ v147.x=v134;
493
+ v147.y=v135;
494
+ v147.z=v136;
495
+ v147.w=v137;
496
+ }
497
+ }
498
+ v149=this["position"];
499
+ if(!(v149&&(typeof v149==="object"||typeof v149==="function")&&(v16(v149)||v8.getBuffer(v149)||v8.getBuffer(v149.buffer)||v16(v149.buffer)||("constant" in v149&&(typeof v149.constant==="number"||v17(v149.constant))))))g18.commandRaise(g150,g19);
500
+ v151=false;
501
+ v152=1;
502
+ v153=0;
503
+ v154=0;
504
+ v155=0;
505
+ v156=0;
506
+ v157=null;
507
+ v158=0;
508
+ v159=false;
509
+ v160=5126;
510
+ v161=0;
511
+ v162=0;
512
+ v163=0;
513
+ if(v16(v149)){
514
+ v151=true;
515
+ v157=v8.createStream(34962,v149);
516
+ v160=v157.dtype;
517
+ }
518
+ else{
519
+ v157=v8.getBuffer(v149);
520
+ if(v157){
521
+ v160=v157.dtype;
522
+ }
523
+ else if("constant" in v149){
524
+ v152=2;
525
+ if(typeof v149.constant === "number"){
526
+ v153=v149.constant;
527
+ v154=v155=v156=0;
528
+ }
529
+ else{
530
+ v153=v149.constant.length>0?v149.constant[0]:0;
531
+ v154=v149.constant.length>1?v149.constant[1]:0;
532
+ v155=v149.constant.length>2?v149.constant[2]:0;
533
+ v156=v149.constant.length>3?v149.constant[3]:0;
534
+ }
535
+ }
536
+ else{
537
+ if(v16(v149.buffer)){
538
+ v157=v8.createStream(34962,v149.buffer);
539
+ }
540
+ else{
541
+ v157=v8.getBuffer(v149.buffer);
542
+ }
543
+ v160="type" in v149?v49[v149.type]:v157.dtype;
544
+ v159=!!v149.normalized;
545
+ v158=v149.size|0;
546
+ v161=v149.offset|0;
547
+ v162=v149.stride|0;
548
+ v163=v149.divisor|0;
549
+ }
550
+ }
551
+ v165=g164.location;
552
+ v166=v10[v165];
553
+ if(v152===1){
554
+ if(!v166.buffer){
555
+ v1.enableVertexAttribArray(v165);
556
+ }
557
+ v167=v158||2;
558
+ if(v166.type!==v160||v166.size!==v167||v166.buffer!==v157||v166.normalized!==v159||v166.offset!==v161||v166.stride!==v162){
559
+ v1.bindBuffer(34962,v157.buffer);
560
+ v1.vertexAttribPointer(v165,v167,v160,v159,v162,v161);
561
+ v166.type=v160;
562
+ v166.size=v167;
563
+ v166.buffer=v157;
564
+ v166.normalized=v159;
565
+ v166.offset=v161;
566
+ v166.stride=v162;
567
+ }
568
+ if(v166.divisor!==v163){
569
+ v110.vertexAttribDivisorANGLE(v165,v163);
570
+ v166.divisor=v163;
571
+ }
572
+ }
573
+ else{
574
+ if(v166.buffer){
575
+ v1.disableVertexAttribArray(v165);
576
+ v166.buffer=null;
577
+ }
578
+ if(v166.x!==v153||v166.y!==v154||v166.z!==v155||v166.w!==v156){
579
+ v1.vertexAttrib4f(v165,v153,v154,v155,v156);
580
+ v166.x=v153;
581
+ v166.y=v154;
582
+ v166.z=v155;
583
+ v166.w=v156;
584
+ }
585
+ }
586
+ v168=this["sizeBuffer"];
587
+ v54.buffer=v168;
588
+ if(!(v54&&(typeof v54==="object"||typeof v54==="function")&&(v16(v54)||v8.getBuffer(v54)||v8.getBuffer(v54.buffer)||v16(v54.buffer)||("constant" in v54&&(typeof v54.constant==="number"||v17(v54.constant))))))g18.commandRaise(g169,g19);
589
+ v170=false;
590
+ v171=1;
591
+ v172=0;
592
+ v173=0;
593
+ v174=0;
594
+ v175=0;
595
+ v176=null;
596
+ v177=0;
597
+ v178=false;
598
+ v179=5126;
599
+ v180=0;
600
+ v181=0;
601
+ v182=0;
602
+ if(v16(v54)){
603
+ v170=true;
604
+ v176=v8.createStream(34962,v54);
605
+ v179=v176.dtype;
606
+ }
607
+ else{
608
+ v176=v8.getBuffer(v54);
609
+ if(v176){
610
+ v179=v176.dtype;
611
+ }
612
+ else if("constant" in v54){
613
+ v171=2;
614
+ if(typeof v54.constant === "number"){
615
+ v172=v54.constant;
616
+ v173=v174=v175=0;
617
+ }
618
+ else{
619
+ v172=v54.constant.length>0?v54.constant[0]:0;
620
+ v173=v54.constant.length>1?v54.constant[1]:0;
621
+ v174=v54.constant.length>2?v54.constant[2]:0;
622
+ v175=v54.constant.length>3?v54.constant[3]:0;
623
+ }
624
+ }
625
+ else{
626
+ if(v16(v54.buffer)){
627
+ v176=v8.createStream(34962,v54.buffer);
628
+ }
629
+ else{
630
+ v176=v8.getBuffer(v54.buffer);
631
+ }
632
+ v179="type" in v54?v49[v54.type]:v176.dtype;
633
+ v178=!!v54.normalized;
634
+ v177=v54.size|0;
635
+ v180=v54.offset|0;
636
+ v181=v54.stride|0;
637
+ v182=v54.divisor|0;
638
+ }
639
+ }
640
+ v184=g183.location;
641
+ v185=v10[v184];
642
+ if(v171===1){
643
+ if(!v185.buffer){
644
+ v1.enableVertexAttribArray(v184);
645
+ }
646
+ v186=v177||1;
647
+ if(v185.type!==v179||v185.size!==v186||v185.buffer!==v176||v185.normalized!==v178||v185.offset!==v180||v185.stride!==v181){
648
+ v1.bindBuffer(34962,v176.buffer);
649
+ v1.vertexAttribPointer(v184,v186,v179,v178,v181,v180);
650
+ v185.type=v179;
651
+ v185.size=v186;
652
+ v185.buffer=v176;
653
+ v185.normalized=v178;
654
+ v185.offset=v180;
655
+ v185.stride=v181;
656
+ }
657
+ if(v185.divisor!==v182){
658
+ v110.vertexAttribDivisorANGLE(v184,v182);
659
+ v185.divisor=v182;
660
+ }
661
+ }
662
+ else{
663
+ if(v185.buffer){
664
+ v1.disableVertexAttribArray(v184);
665
+ v185.buffer=null;
666
+ }
667
+ if(v185.x!==v172||v185.y!==v173||v185.z!==v174||v185.w!==v175){
668
+ v1.vertexAttrib4f(v184,v172,v173,v174,v175);
669
+ v185.x=v172;
670
+ v185.y=v173;
671
+ v185.z=v174;
672
+ v185.w=v175;
673
+ }
674
+ }
675
+ v188=a0["align"];
676
+ if(!(typeof v188==="number"))g18.commandRaise(g189,g19);
677
+ v1.uniform1f(g187.location,v188);
678
+ v192=g191.call(this,v2,a0,0);
679
+ if(v192&&v192._reglType==="framebuffer"){
680
+ v192=v192.color[0];
681
+ }
682
+ if(!(typeof v192==="function"&&v192._reglType==="texture2d"))g18.commandRaise(g193,g19);
683
+ v194=v192._texture;
684
+ v1.uniform1i(g190.location,v194.bind());
685
+ v197=g196.call(this,v2,a0,0);
686
+ if(!(v17(v197)&&v197.length===2))g18.commandRaise(g198,g19);
687
+ v199=v197[0];
688
+ v200=v197[1];
689
+ v1.uniform2f(g195.location,v199,v200);
690
+ v203=g202.call(this,v2,a0,0);
691
+ if(!(v17(v203)&&v203.length===2))g18.commandRaise(g204,g19);
692
+ v205=v203[0];
693
+ v206=v203[1];
694
+ v1.uniform2f(g201.location,v205,v206);
695
+ v208=a0["baseline"];
696
+ if(!(typeof v208==="number"))g18.commandRaise(g209,g19);
697
+ v1.uniform1f(g207.location,v208);
698
+ v212=g211.call(this,v2,a0,0);
699
+ if(!(typeof v212==="number"))g18.commandRaise(g213,g19);
700
+ v1.uniform1f(g210.location,v212);
701
+ v215=a0["color"];
702
+ if(!(v17(v215)&&v215.length===4))g18.commandRaise(g216,g19);
703
+ v217=v215[0];
704
+ v218=v215[1];
705
+ v219=v215[2];
706
+ v220=v215[3];
707
+ v1.uniform4f(g214.location,v217,v218,v219,v220);
708
+ v223=g222.call(this,v2,a0,0);
709
+ if(!(typeof v223==="number"))g18.commandRaise(g224,g19);
710
+ v1.uniform1f(g221.location,v223);
711
+ v226=a0["opacity"];
712
+ if(!(typeof v226==="number"))g18.commandRaise(g227,g19);
713
+ v1.uniform1f(g225.location,v226);
714
+ v229=a0["positionOffset"];
715
+ if(!(v17(v229)&&v229.length===2))g18.commandRaise(g230,g19);
716
+ v231=v229[0];
717
+ v232=v229[1];
718
+ v1.uniform2f(g228.location,v231,v232);
719
+ v234=this["scale"];
720
+ if(!(v17(v234)&&v234.length===2))g18.commandRaise(g235,g19);
721
+ v236=v234[0];
722
+ v237=v234[1];
723
+ v1.uniform2f(g233.location,v236,v237);
724
+ v239=this["translate"];
725
+ if(!(v17(v239)&&v239.length===2))g18.commandRaise(g240,g19);
726
+ v241=v239[0];
727
+ v242=v239[1];
728
+ v1.uniform2f(g238.location,v241,v242);
729
+ v244=this["viewportArray"];
730
+ if(!(v17(v244)&&v244.length===4))g18.commandRaise(g245,g19);
731
+ v246=v244[0];
732
+ v247=v244[1];
733
+ v248=v244[2];
734
+ v249=v244[3];
735
+ v1.uniform4f(g243.location,v246,v247,v248,v249);
736
+ v250=v6.elements;
737
+ if(v250){
738
+ v1.bindBuffer(34963,v250.buffer.buffer);
739
+ }
740
+ else if(v11.currentVAO){
741
+ v250=v7.getElements(v11.currentVAO.elements);
742
+ if(v250)v1.bindBuffer(34963,v250.buffer.buffer);
743
+ }
744
+ v251=a0["offset"];
745
+ if(!(v251>=0))g18.commandRaise(g252,g19);
746
+ v253=a0["count"];
747
+ if(!(typeof v253==="number"&&v253>=0&&v253===(v253|0)))g18.commandRaise(g254,g19);
748
+ if(v253){
749
+ v255=v6.instances;
750
+ if(v255>0){
751
+ if(v250){
752
+ v110.drawElementsInstancedANGLE(0,v253,v250.type,v251<<((v250.type-5121)>>1),v255);
753
+ }
754
+ else{
755
+ v110.drawArraysInstancedANGLE(0,v251,v253,v255);
756
+ }
757
+ }
758
+ else if(v255<0){
759
+ if(v250){
760
+ v1.drawElements(0,v253,v250.type,v251<<((v250.type-5121)>>1));
761
+ }
762
+ else{
763
+ v1.drawArrays(0,v251,v253);
764
+ }
765
+ }
766
+ v5.dirty=true;
767
+ v11.setVAO(null);
768
+ v2.viewportWidth=v102;
769
+ v2.viewportHeight=v103;
770
+ if(v107){
771
+ g52.cpuTime+=performance.now()-v108;
772
+ }
773
+ if(v113){
774
+ v8.destroyStream(v119);
775
+ }
776
+ if(v132){
777
+ v8.destroyStream(v138);
778
+ }
779
+ if(v151){
780
+ v8.destroyStream(v157);
781
+ }
782
+ if(v170){
783
+ v8.destroyStream(v176);
784
+ }
785
+ v194.unbind();
786
+ }
787
+ }
788
+ ,"scope":function(a0,a1,a2){
789
+ var v256,v257,v258,v259,v260,v261,v262,v263,v264,v265,v266,v268,v270,v272,v274,v276,v278,v280,v282,v284,v286,v288,v289,v290,v291,v292,v293,v294,v296,v297,v299,v300,v302,v303,v305,v306,v308,v309,v311,v312,v314,v315,v317,v318,v320,v321,v323,v324,v326,v327,v329,v330,v332,v333,v335,v336,v337,v338,v339,v340,v341,v342,v343,v344,v345,v346,v347,v348,v349,v351,v352,v353,v354,v355,v356,v357,v358,v359,v360,v361,v362,v363,v364,v365,v366,v367,v368,v369,v370,v371,v372,v373,v374,v375,v376,v378,v379,v380,v381,v382,v383,v384,v385,v386,v387,v388,v389,v390,v391,v392,v393,v394,v395,v396,v397,v398,v399,v400,v401,v402,v403,v405,v406,v407,v408,v409,v410,v411,v412,v413,v414,v415,v416,v417,v418,v419,v420,v421,v422,v423,v424,v425,v426,v427,v428,v429,v430,v432,v433,v434,v435,v436,v437,v438,v439,v440,v441,v442,v443,v445,v447;
790
+ v256=this["viewport"];
791
+ if(!(v256&&typeof v256==="object"))g18.commandRaise(g97,g19);
792
+ v257=v256.x|0;
793
+ v258=v256.y|0;
794
+ v259="width" in v256?v256.width|0:(v2.framebufferWidth-v257);
795
+ v260="height" in v256?v256.height|0:(v2.framebufferHeight-v258);
796
+ if(!(v259>=0&&v260>=0))g18.commandRaise(g97,g19);
797
+ v261=v2.viewportWidth;
798
+ v2.viewportWidth=v259;
799
+ v262=v2.viewportHeight;
800
+ v2.viewportHeight=v260;
801
+ v263=v42[0];
802
+ v42[0]=v257;
803
+ v264=v42[1];
804
+ v42[1]=v258;
805
+ v265=v42[2];
806
+ v42[2]=v259;
807
+ v266=v42[3];
808
+ v42[3]=v260;
809
+ v268=v20[0];
810
+ v20[0]=g267;
811
+ v270=v20[1];
812
+ v20[1]=g269;
813
+ v272=v20[2];
814
+ v20[2]=g271;
815
+ v274=v20[3];
816
+ v20[3]=g273;
817
+ v276=v4.blend_enable;
818
+ v4.blend_enable=g275;
819
+ v278=v24[0];
820
+ v24[0]=g277;
821
+ v280=v24[1];
822
+ v24[1]=g279;
823
+ v282=v24[2];
824
+ v24[2]=g281;
825
+ v284=v24[3];
826
+ v24[3]=g283;
827
+ v286=v4.depth_enable;
828
+ v4.depth_enable=g285;
829
+ v288=v4.stencil_enable;
830
+ v4.stencil_enable=g287;
831
+ v289=v5.profile;
832
+ if(v289){
833
+ v290=performance.now();
834
+ g52.count++;
835
+ }
836
+ v291=a0["offset"];
837
+ if(!(v291>=0))g18.commandRaise(g252,g19);
838
+ v292=v6.offset;
839
+ v6.offset=v291;
840
+ v293=a0["count"];
841
+ if(!(typeof v293==="number"&&v293>=0&&v293===(v293|0)))g18.commandRaise(g254,g19);
842
+ v294=v6.count;
843
+ v6.count=v293;
844
+ v296=v6.primitive;
845
+ v6.primitive=g295;
846
+ v297=g202.call(this,v2,a0,a2);
847
+ v299=v12[g298];
848
+ v12[g298]=v297;
849
+ v300=g196.call(this,v2,a0,a2);
850
+ v302=v12[g301];
851
+ v12[g301]=v300;
852
+ v303=g191.call(this,v2,a0,a2);
853
+ v305=v12[g304];
854
+ v12[g304]=v303;
855
+ v306=g211.call(this,v2,a0,a2);
856
+ v308=v12[g307];
857
+ v12[g307]=v306;
858
+ v309=g222.call(this,v2,a0,a2);
859
+ v311=v12[g310];
860
+ v12[g310]=v309;
861
+ v312=a0["color"];
862
+ v314=v12[g313];
863
+ v12[g313]=v312;
864
+ v315=a0["opacity"];
865
+ v317=v12[g316];
866
+ v12[g316]=v315;
867
+ v318=this["viewportArray"];
868
+ v320=v12[g319];
869
+ v12[g319]=v318;
870
+ v321=this["scale"];
871
+ v323=v12[g322];
872
+ v12[g322]=v321;
873
+ v324=a0["align"];
874
+ v326=v12[g325];
875
+ v12[g325]=v324;
876
+ v327=a0["baseline"];
877
+ v329=v12[g328];
878
+ v12[g328]=v327;
879
+ v330=this["translate"];
880
+ v332=v12[g331];
881
+ v12[g331]=v330;
882
+ v333=a0["positionOffset"];
883
+ v335=v12[g334];
884
+ v12[g334]=v333;
885
+ v336=this["charBuffer"];
886
+ if(!(v336&&(typeof v336==="object"||typeof v336==="function")&&(v16(v336)||v8.getBuffer(v336)||v8.getBuffer(v336.buffer)||v16(v336.buffer)||("constant" in v336&&(typeof v336.constant==="number"||v17(v336.constant))))))g18.commandRaise(g112,g19);
887
+ v337=false;
888
+ v338=1;
889
+ v339=0;
890
+ v340=0;
891
+ v341=0;
892
+ v342=0;
893
+ v343=null;
894
+ v344=0;
895
+ v345=false;
896
+ v346=5126;
897
+ v347=0;
898
+ v348=0;
899
+ v349=0;
900
+ if(v16(v336)){
901
+ v337=true;
902
+ v343=v8.createStream(34962,v336);
903
+ v346=v343.dtype;
904
+ }
905
+ else{
906
+ v343=v8.getBuffer(v336);
907
+ if(v343){
908
+ v346=v343.dtype;
909
+ }
910
+ else if("constant" in v336){
911
+ v338=2;
912
+ if(typeof v336.constant === "number"){
913
+ v339=v336.constant;
914
+ v340=v341=v342=0;
915
+ }
916
+ else{
917
+ v339=v336.constant.length>0?v336.constant[0]:0;
918
+ v340=v336.constant.length>1?v336.constant[1]:0;
919
+ v341=v336.constant.length>2?v336.constant[2]:0;
920
+ v342=v336.constant.length>3?v336.constant[3]:0;
921
+ }
922
+ }
923
+ else{
924
+ if(v16(v336.buffer)){
925
+ v343=v8.createStream(34962,v336.buffer);
926
+ }
927
+ else{
928
+ v343=v8.getBuffer(v336.buffer);
929
+ }
930
+ v346="type" in v336?v49[v336.type]:v343.dtype;
931
+ v345=!!v336.normalized;
932
+ v344=v336.size|0;
933
+ v347=v336.offset|0;
934
+ v348=v336.stride|0;
935
+ v349=v336.divisor|0;
936
+ }
937
+ }
938
+ v351=g350.state;
939
+ g350.state=v338;
940
+ v352=g350.x;
941
+ g350.x=v339;
942
+ v353=g350.y;
943
+ g350.y=v340;
944
+ v354=g350.z;
945
+ g350.z=v341;
946
+ v355=g350.w;
947
+ g350.w=v342;
948
+ v356=g350.buffer;
949
+ g350.buffer=v343;
950
+ v357=g350.size;
951
+ g350.size=v344;
952
+ v358=g350.normalized;
953
+ g350.normalized=v345;
954
+ v359=g350.type;
955
+ g350.type=v346;
956
+ v360=g350.offset;
957
+ g350.offset=v347;
958
+ v361=g350.stride;
959
+ g350.stride=v348;
960
+ v362=g350.divisor;
961
+ g350.divisor=v349;
962
+ v363=this["position"];
963
+ if(!(v363&&(typeof v363==="object"||typeof v363==="function")&&(v16(v363)||v8.getBuffer(v363)||v8.getBuffer(v363.buffer)||v16(v363.buffer)||("constant" in v363&&(typeof v363.constant==="number"||v17(v363.constant))))))g18.commandRaise(g150,g19);
964
+ v364=false;
965
+ v365=1;
966
+ v366=0;
967
+ v367=0;
968
+ v368=0;
969
+ v369=0;
970
+ v370=null;
971
+ v371=0;
972
+ v372=false;
973
+ v373=5126;
974
+ v374=0;
975
+ v375=0;
976
+ v376=0;
977
+ if(v16(v363)){
978
+ v364=true;
979
+ v370=v8.createStream(34962,v363);
980
+ v373=v370.dtype;
981
+ }
982
+ else{
983
+ v370=v8.getBuffer(v363);
984
+ if(v370){
985
+ v373=v370.dtype;
986
+ }
987
+ else if("constant" in v363){
988
+ v365=2;
989
+ if(typeof v363.constant === "number"){
990
+ v366=v363.constant;
991
+ v367=v368=v369=0;
992
+ }
993
+ else{
994
+ v366=v363.constant.length>0?v363.constant[0]:0;
995
+ v367=v363.constant.length>1?v363.constant[1]:0;
996
+ v368=v363.constant.length>2?v363.constant[2]:0;
997
+ v369=v363.constant.length>3?v363.constant[3]:0;
998
+ }
999
+ }
1000
+ else{
1001
+ if(v16(v363.buffer)){
1002
+ v370=v8.createStream(34962,v363.buffer);
1003
+ }
1004
+ else{
1005
+ v370=v8.getBuffer(v363.buffer);
1006
+ }
1007
+ v373="type" in v363?v49[v363.type]:v370.dtype;
1008
+ v372=!!v363.normalized;
1009
+ v371=v363.size|0;
1010
+ v374=v363.offset|0;
1011
+ v375=v363.stride|0;
1012
+ v376=v363.divisor|0;
1013
+ }
1014
+ }
1015
+ v378=g377.state;
1016
+ g377.state=v365;
1017
+ v379=g377.x;
1018
+ g377.x=v366;
1019
+ v380=g377.y;
1020
+ g377.y=v367;
1021
+ v381=g377.z;
1022
+ g377.z=v368;
1023
+ v382=g377.w;
1024
+ g377.w=v369;
1025
+ v383=g377.buffer;
1026
+ g377.buffer=v370;
1027
+ v384=g377.size;
1028
+ g377.size=v371;
1029
+ v385=g377.normalized;
1030
+ g377.normalized=v372;
1031
+ v386=g377.type;
1032
+ g377.type=v373;
1033
+ v387=g377.offset;
1034
+ g377.offset=v374;
1035
+ v388=g377.stride;
1036
+ g377.stride=v375;
1037
+ v389=g377.divisor;
1038
+ g377.divisor=v376;
1039
+ v390=this["sizeBuffer"];
1040
+ v53.buffer=v390;
1041
+ 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(g131,g19);
1042
+ v391=false;
1043
+ v392=1;
1044
+ v393=0;
1045
+ v394=0;
1046
+ v395=0;
1047
+ v396=0;
1048
+ v397=null;
1049
+ v398=0;
1050
+ v399=false;
1051
+ v400=5126;
1052
+ v401=0;
1053
+ v402=0;
1054
+ v403=0;
1055
+ if(v16(v53)){
1056
+ v391=true;
1057
+ v397=v8.createStream(34962,v53);
1058
+ v400=v397.dtype;
1059
+ }
1060
+ else{
1061
+ v397=v8.getBuffer(v53);
1062
+ if(v397){
1063
+ v400=v397.dtype;
1064
+ }
1065
+ else if("constant" in v53){
1066
+ v392=2;
1067
+ if(typeof v53.constant === "number"){
1068
+ v393=v53.constant;
1069
+ v394=v395=v396=0;
1070
+ }
1071
+ else{
1072
+ v393=v53.constant.length>0?v53.constant[0]:0;
1073
+ v394=v53.constant.length>1?v53.constant[1]:0;
1074
+ v395=v53.constant.length>2?v53.constant[2]:0;
1075
+ v396=v53.constant.length>3?v53.constant[3]:0;
1076
+ }
1077
+ }
1078
+ else{
1079
+ if(v16(v53.buffer)){
1080
+ v397=v8.createStream(34962,v53.buffer);
1081
+ }
1082
+ else{
1083
+ v397=v8.getBuffer(v53.buffer);
1084
+ }
1085
+ v400="type" in v53?v49[v53.type]:v397.dtype;
1086
+ v399=!!v53.normalized;
1087
+ v398=v53.size|0;
1088
+ v401=v53.offset|0;
1089
+ v402=v53.stride|0;
1090
+ v403=v53.divisor|0;
1091
+ }
1092
+ }
1093
+ v405=g404.state;
1094
+ g404.state=v392;
1095
+ v406=g404.x;
1096
+ g404.x=v393;
1097
+ v407=g404.y;
1098
+ g404.y=v394;
1099
+ v408=g404.z;
1100
+ g404.z=v395;
1101
+ v409=g404.w;
1102
+ g404.w=v396;
1103
+ v410=g404.buffer;
1104
+ g404.buffer=v397;
1105
+ v411=g404.size;
1106
+ g404.size=v398;
1107
+ v412=g404.normalized;
1108
+ g404.normalized=v399;
1109
+ v413=g404.type;
1110
+ g404.type=v400;
1111
+ v414=g404.offset;
1112
+ g404.offset=v401;
1113
+ v415=g404.stride;
1114
+ g404.stride=v402;
1115
+ v416=g404.divisor;
1116
+ g404.divisor=v403;
1117
+ v417=this["sizeBuffer"];
1118
+ v54.buffer=v417;
1119
+ if(!(v54&&(typeof v54==="object"||typeof v54==="function")&&(v16(v54)||v8.getBuffer(v54)||v8.getBuffer(v54.buffer)||v16(v54.buffer)||("constant" in v54&&(typeof v54.constant==="number"||v17(v54.constant))))))g18.commandRaise(g169,g19);
1120
+ v418=false;
1121
+ v419=1;
1122
+ v420=0;
1123
+ v421=0;
1124
+ v422=0;
1125
+ v423=0;
1126
+ v424=null;
1127
+ v425=0;
1128
+ v426=false;
1129
+ v427=5126;
1130
+ v428=0;
1131
+ v429=0;
1132
+ v430=0;
1133
+ if(v16(v54)){
1134
+ v418=true;
1135
+ v424=v8.createStream(34962,v54);
1136
+ v427=v424.dtype;
1137
+ }
1138
+ else{
1139
+ v424=v8.getBuffer(v54);
1140
+ if(v424){
1141
+ v427=v424.dtype;
1142
+ }
1143
+ else if("constant" in v54){
1144
+ v419=2;
1145
+ if(typeof v54.constant === "number"){
1146
+ v420=v54.constant;
1147
+ v421=v422=v423=0;
1148
+ }
1149
+ else{
1150
+ v420=v54.constant.length>0?v54.constant[0]:0;
1151
+ v421=v54.constant.length>1?v54.constant[1]:0;
1152
+ v422=v54.constant.length>2?v54.constant[2]:0;
1153
+ v423=v54.constant.length>3?v54.constant[3]:0;
1154
+ }
1155
+ }
1156
+ else{
1157
+ if(v16(v54.buffer)){
1158
+ v424=v8.createStream(34962,v54.buffer);
1159
+ }
1160
+ else{
1161
+ v424=v8.getBuffer(v54.buffer);
1162
+ }
1163
+ v427="type" in v54?v49[v54.type]:v424.dtype;
1164
+ v426=!!v54.normalized;
1165
+ v425=v54.size|0;
1166
+ v428=v54.offset|0;
1167
+ v429=v54.stride|0;
1168
+ v430=v54.divisor|0;
1169
+ }
1170
+ }
1171
+ v432=g431.state;
1172
+ g431.state=v419;
1173
+ v433=g431.x;
1174
+ g431.x=v420;
1175
+ v434=g431.y;
1176
+ g431.y=v421;
1177
+ v435=g431.z;
1178
+ g431.z=v422;
1179
+ v436=g431.w;
1180
+ g431.w=v423;
1181
+ v437=g431.buffer;
1182
+ g431.buffer=v424;
1183
+ v438=g431.size;
1184
+ g431.size=v425;
1185
+ v439=g431.normalized;
1186
+ g431.normalized=v426;
1187
+ v440=g431.type;
1188
+ g431.type=v427;
1189
+ v441=g431.offset;
1190
+ g431.offset=v428;
1191
+ v442=g431.stride;
1192
+ g431.stride=v429;
1193
+ v443=g431.divisor;
1194
+ g431.divisor=v430;
1195
+ v445=v9.vert;
1196
+ v9.vert=g444;
1197
+ v447=v9.frag;
1198
+ v9.frag=g446;
1199
+ v5.dirty=true;
1200
+ a1(v2,a0,a2);
1201
+ v2.viewportWidth=v261;
1202
+ v2.viewportHeight=v262;
1203
+ v42[0]=v263;
1204
+ v42[1]=v264;
1205
+ v42[2]=v265;
1206
+ v42[3]=v266;
1207
+ v20[0]=v268;
1208
+ v20[1]=v270;
1209
+ v20[2]=v272;
1210
+ v20[3]=v274;
1211
+ v4.blend_enable=v276;
1212
+ v24[0]=v278;
1213
+ v24[1]=v280;
1214
+ v24[2]=v282;
1215
+ v24[3]=v284;
1216
+ v4.depth_enable=v286;
1217
+ v4.stencil_enable=v288;
1218
+ if(v289){
1219
+ g52.cpuTime+=performance.now()-v290;
1220
+ }
1221
+ v6.offset=v292;
1222
+ v6.count=v294;
1223
+ v6.primitive=v296;
1224
+ v12[g298]=v299;
1225
+ v12[g301]=v302;
1226
+ v12[g304]=v305;
1227
+ v12[g307]=v308;
1228
+ v12[g310]=v311;
1229
+ v12[g313]=v314;
1230
+ v12[g316]=v317;
1231
+ v12[g319]=v320;
1232
+ v12[g322]=v323;
1233
+ v12[g325]=v326;
1234
+ v12[g328]=v329;
1235
+ v12[g331]=v332;
1236
+ v12[g334]=v335;
1237
+ if(v337){
1238
+ v8.destroyStream(v343);
1239
+ }
1240
+ g350.state=v351;
1241
+ g350.x=v352;
1242
+ g350.y=v353;
1243
+ g350.z=v354;
1244
+ g350.w=v355;
1245
+ g350.buffer=v356;
1246
+ g350.size=v357;
1247
+ g350.normalized=v358;
1248
+ g350.type=v359;
1249
+ g350.offset=v360;
1250
+ g350.stride=v361;
1251
+ g350.divisor=v362;
1252
+ if(v364){
1253
+ v8.destroyStream(v370);
1254
+ }
1255
+ g377.state=v378;
1256
+ g377.x=v379;
1257
+ g377.y=v380;
1258
+ g377.z=v381;
1259
+ g377.w=v382;
1260
+ g377.buffer=v383;
1261
+ g377.size=v384;
1262
+ g377.normalized=v385;
1263
+ g377.type=v386;
1264
+ g377.offset=v387;
1265
+ g377.stride=v388;
1266
+ g377.divisor=v389;
1267
+ if(v391){
1268
+ v8.destroyStream(v397);
1269
+ }
1270
+ g404.state=v405;
1271
+ g404.x=v406;
1272
+ g404.y=v407;
1273
+ g404.z=v408;
1274
+ g404.w=v409;
1275
+ g404.buffer=v410;
1276
+ g404.size=v411;
1277
+ g404.normalized=v412;
1278
+ g404.type=v413;
1279
+ g404.offset=v414;
1280
+ g404.stride=v415;
1281
+ g404.divisor=v416;
1282
+ if(v418){
1283
+ v8.destroyStream(v424);
1284
+ }
1285
+ g431.state=v432;
1286
+ g431.x=v433;
1287
+ g431.y=v434;
1288
+ g431.z=v435;
1289
+ g431.w=v436;
1290
+ g431.buffer=v437;
1291
+ g431.size=v438;
1292
+ g431.normalized=v439;
1293
+ g431.type=v440;
1294
+ g431.offset=v441;
1295
+ g431.stride=v442;
1296
+ g431.divisor=v443;
1297
+ v9.vert=v445;
1298
+ v9.frag=v447;
1299
+ v5.dirty=true;
1300
+ }
1301
+ ,"batch":function(a0,a1){
1302
+ var v448,v449,v489,v490,v491,v492,v493,v494,v495,v499,v500,v501,v502,v503;
1303
+ v448=v14.angle_instanced_arrays;
1304
+ v449=v13.next;
1305
+ if(v449!==v13.cur){
1306
+ if(v449){
1307
+ v1.bindFramebuffer(36160,v449.framebuffer);
1308
+ }
1309
+ else{
1310
+ v1.bindFramebuffer(36160,null);
1311
+ }
1312
+ v13.cur=v449;
1313
+ }
1314
+ if(v5.dirty){
1315
+ var v450,v451,v452,v453,v454,v455,v456,v457,v458,v459,v460,v461,v462,v463,v464,v465,v466,v467,v468,v469,v470,v471,v472,v473,v474,v475,v476,v477,v478,v479,v480,v481,v482,v483,v484,v485,v486,v487,v488;
1316
+ v450=v4.dither;
1317
+ if(v450!==v5.dither){
1318
+ if(v450){
1319
+ v1.enable(3024);
1320
+ }
1321
+ else{
1322
+ v1.disable(3024);
1323
+ }
1324
+ v5.dither=v450;
1325
+ }
1326
+ v451=v22[0];
1327
+ v452=v22[1];
1328
+ if(v451!==v23[0]||v452!==v23[1]){
1329
+ v1.blendEquationSeparate(v451,v452);
1330
+ v23[0]=v451;
1331
+ v23[1]=v452;
1332
+ }
1333
+ v453=v4.depth_func;
1334
+ if(v453!==v5.depth_func){
1335
+ v1.depthFunc(v453);
1336
+ v5.depth_func=v453;
1337
+ }
1338
+ v454=v26[0];
1339
+ v455=v26[1];
1340
+ if(v454!==v27[0]||v455!==v27[1]){
1341
+ v1.depthRange(v454,v455);
1342
+ v27[0]=v454;
1343
+ v27[1]=v455;
1344
+ }
1345
+ v456=v4.depth_mask;
1346
+ if(v456!==v5.depth_mask){
1347
+ v1.depthMask(v456);
1348
+ v5.depth_mask=v456;
1349
+ }
1350
+ v457=v28[0];
1351
+ v458=v28[1];
1352
+ v459=v28[2];
1353
+ v460=v28[3];
1354
+ if(v457!==v29[0]||v458!==v29[1]||v459!==v29[2]||v460!==v29[3]){
1355
+ v1.colorMask(v457,v458,v459,v460);
1356
+ v29[0]=v457;
1357
+ v29[1]=v458;
1358
+ v29[2]=v459;
1359
+ v29[3]=v460;
1360
+ }
1361
+ v461=v4.cull_enable;
1362
+ if(v461!==v5.cull_enable){
1363
+ if(v461){
1364
+ v1.enable(2884);
1365
+ }
1366
+ else{
1367
+ v1.disable(2884);
1368
+ }
1369
+ v5.cull_enable=v461;
1370
+ }
1371
+ v462=v4.cull_face;
1372
+ if(v462!==v5.cull_face){
1373
+ v1.cullFace(v462);
1374
+ v5.cull_face=v462;
1375
+ }
1376
+ v463=v4.frontFace;
1377
+ if(v463!==v5.frontFace){
1378
+ v1.frontFace(v463);
1379
+ v5.frontFace=v463;
1380
+ }
1381
+ v464=v4.lineWidth;
1382
+ if(v464!==v5.lineWidth){
1383
+ v1.lineWidth(v464);
1384
+ v5.lineWidth=v464;
1385
+ }
1386
+ v465=v4.polygonOffset_enable;
1387
+ if(v465!==v5.polygonOffset_enable){
1388
+ if(v465){
1389
+ v1.enable(32823);
1390
+ }
1391
+ else{
1392
+ v1.disable(32823);
1393
+ }
1394
+ v5.polygonOffset_enable=v465;
1395
+ }
1396
+ v466=v30[0];
1397
+ v467=v30[1];
1398
+ if(v466!==v31[0]||v467!==v31[1]){
1399
+ v1.polygonOffset(v466,v467);
1400
+ v31[0]=v466;
1401
+ v31[1]=v467;
1402
+ }
1403
+ v468=v4.sample_alpha;
1404
+ if(v468!==v5.sample_alpha){
1405
+ if(v468){
1406
+ v1.enable(32926);
1407
+ }
1408
+ else{
1409
+ v1.disable(32926);
1410
+ }
1411
+ v5.sample_alpha=v468;
1412
+ }
1413
+ v469=v4.sample_enable;
1414
+ if(v469!==v5.sample_enable){
1415
+ if(v469){
1416
+ v1.enable(32928);
1417
+ }
1418
+ else{
1419
+ v1.disable(32928);
1420
+ }
1421
+ v5.sample_enable=v469;
1422
+ }
1423
+ v470=v32[0];
1424
+ v471=v32[1];
1425
+ if(v470!==v33[0]||v471!==v33[1]){
1426
+ v1.sampleCoverage(v470,v471);
1427
+ v33[0]=v470;
1428
+ v33[1]=v471;
1429
+ }
1430
+ v472=v4.stencil_mask;
1431
+ if(v472!==v5.stencil_mask){
1432
+ v1.stencilMask(v472);
1433
+ v5.stencil_mask=v472;
1434
+ }
1435
+ v473=v34[0];
1436
+ v474=v34[1];
1437
+ v475=v34[2];
1438
+ if(v473!==v35[0]||v474!==v35[1]||v475!==v35[2]){
1439
+ v1.stencilFunc(v473,v474,v475);
1440
+ v35[0]=v473;
1441
+ v35[1]=v474;
1442
+ v35[2]=v475;
1443
+ }
1444
+ v476=v36[0];
1445
+ v477=v36[1];
1446
+ v478=v36[2];
1447
+ v479=v36[3];
1448
+ if(v476!==v37[0]||v477!==v37[1]||v478!==v37[2]||v479!==v37[3]){
1449
+ v1.stencilOpSeparate(v476,v477,v478,v479);
1450
+ v37[0]=v476;
1451
+ v37[1]=v477;
1452
+ v37[2]=v478;
1453
+ v37[3]=v479;
1454
+ }
1455
+ v480=v38[0];
1456
+ v481=v38[1];
1457
+ v482=v38[2];
1458
+ v483=v38[3];
1459
+ if(v480!==v39[0]||v481!==v39[1]||v482!==v39[2]||v483!==v39[3]){
1460
+ v1.stencilOpSeparate(v480,v481,v482,v483);
1461
+ v39[0]=v480;
1462
+ v39[1]=v481;
1463
+ v39[2]=v482;
1464
+ v39[3]=v483;
1465
+ }
1466
+ v484=v4.scissor_enable;
1467
+ if(v484!==v5.scissor_enable){
1468
+ if(v484){
1469
+ v1.enable(3089);
1470
+ }
1471
+ else{
1472
+ v1.disable(3089);
1473
+ }
1474
+ v5.scissor_enable=v484;
1475
+ }
1476
+ v485=v40[0];
1477
+ v486=v40[1];
1478
+ v487=v40[2];
1479
+ v488=v40[3];
1480
+ if(v485!==v41[0]||v486!==v41[1]||v487!==v41[2]||v488!==v41[3]){
1481
+ v1.scissor(v485,v486,v487,v488);
1482
+ v41[0]=v485;
1483
+ v41[1]=v486;
1484
+ v41[2]=v487;
1485
+ v41[3]=v488;
1486
+ }
1487
+ }
1488
+ v489=this["viewport"];
1489
+ if(!(v489&&typeof v489==="object"))g18.commandRaise(g97,g19);
1490
+ v490=v489.x|0;
1491
+ v491=v489.y|0;
1492
+ v492="width" in v489?v489.width|0:(v2.framebufferWidth-v490);
1493
+ v493="height" in v489?v489.height|0:(v2.framebufferHeight-v491);
1494
+ if(!(v492>=0&&v493>=0))g18.commandRaise(g97,g19);
1495
+ v494=v2.viewportWidth;
1496
+ v2.viewportWidth=v492;
1497
+ v495=v2.viewportHeight;
1498
+ v2.viewportHeight=v493;
1499
+ v1.viewport(v490,v491,v492,v493);
1500
+ v43[0]=v490;
1501
+ v43[1]=v491;
1502
+ v43[2]=v492;
1503
+ v43[3]=v493;
1504
+ v1.blendColor(0,0,0,1);
1505
+ v21[0]=0;
1506
+ v21[1]=0;
1507
+ v21[2]=0;
1508
+ v21[3]=1;
1509
+ if(g496){
1510
+ v1.enable(3042);
1511
+ }
1512
+ else{
1513
+ v1.disable(3042);
1514
+ }
1515
+ v5.blend_enable=g496;
1516
+ v1.blendFuncSeparate(770,771,773,1);
1517
+ v25[0]=770;
1518
+ v25[1]=771;
1519
+ v25[2]=773;
1520
+ v25[3]=1;
1521
+ if(g497){
1522
+ v1.enable(2929);
1523
+ }
1524
+ else{
1525
+ v1.disable(2929);
1526
+ }
1527
+ v5.depth_enable=g497;
1528
+ if(g498){
1529
+ v1.enable(2960);
1530
+ }
1531
+ else{
1532
+ v1.disable(2960);
1533
+ }
1534
+ v5.stencil_enable=g498;
1535
+ v499=v5.profile;
1536
+ if(v499){
1537
+ v500=performance.now();
1538
+ g52.count+=a1;
1539
+ }
1540
+ v1.useProgram(g109.program);
1541
+ v501=v14.angle_instanced_arrays;
1542
+ var v504,v505,v506,v507,v508,v509,v510,v511,v512,v513,v514,v515,v516,v517,v518,v519,v520,v521,v522,v523,v524,v525,v526,v527,v528,v529,v530,v531,v532,v533,v534,v535,v536,v537,v538,v539,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,v619,v622;
1543
+ v11.setVAO(null);
1544
+ v504=this["charBuffer"];
1545
+ if(!(v504&&(typeof v504==="object"||typeof v504==="function")&&(v16(v504)||v8.getBuffer(v504)||v8.getBuffer(v504.buffer)||v16(v504.buffer)||("constant" in v504&&(typeof v504.constant==="number"||v17(v504.constant))))))g18.commandRaise(g112,g19);
1546
+ v505=false;
1547
+ v506=1;
1548
+ v507=0;
1549
+ v508=0;
1550
+ v509=0;
1551
+ v510=0;
1552
+ v511=null;
1553
+ v512=0;
1554
+ v513=false;
1555
+ v514=5126;
1556
+ v515=0;
1557
+ v516=0;
1558
+ v517=0;
1559
+ if(v16(v504)){
1560
+ v505=true;
1561
+ v511=v8.createStream(34962,v504);
1562
+ v514=v511.dtype;
1563
+ }
1564
+ else{
1565
+ v511=v8.getBuffer(v504);
1566
+ if(v511){
1567
+ v514=v511.dtype;
1568
+ }
1569
+ else if("constant" in v504){
1570
+ v506=2;
1571
+ if(typeof v504.constant === "number"){
1572
+ v507=v504.constant;
1573
+ v508=v509=v510=0;
1574
+ }
1575
+ else{
1576
+ v507=v504.constant.length>0?v504.constant[0]:0;
1577
+ v508=v504.constant.length>1?v504.constant[1]:0;
1578
+ v509=v504.constant.length>2?v504.constant[2]:0;
1579
+ v510=v504.constant.length>3?v504.constant[3]:0;
1580
+ }
1581
+ }
1582
+ else{
1583
+ if(v16(v504.buffer)){
1584
+ v511=v8.createStream(34962,v504.buffer);
1585
+ }
1586
+ else{
1587
+ v511=v8.getBuffer(v504.buffer);
1588
+ }
1589
+ v514="type" in v504?v49[v504.type]:v511.dtype;
1590
+ v513=!!v504.normalized;
1591
+ v512=v504.size|0;
1592
+ v515=v504.offset|0;
1593
+ v516=v504.stride|0;
1594
+ v517=v504.divisor|0;
1595
+ }
1596
+ }
1597
+ v518=g126.location;
1598
+ v519=v10[v518];
1599
+ if(v506===1){
1600
+ if(!v519.buffer){
1601
+ v1.enableVertexAttribArray(v518);
1602
+ }
1603
+ v520=v512||1;
1604
+ if(v519.type!==v514||v519.size!==v520||v519.buffer!==v511||v519.normalized!==v513||v519.offset!==v515||v519.stride!==v516){
1605
+ v1.bindBuffer(34962,v511.buffer);
1606
+ v1.vertexAttribPointer(v518,v520,v514,v513,v516,v515);
1607
+ v519.type=v514;
1608
+ v519.size=v520;
1609
+ v519.buffer=v511;
1610
+ v519.normalized=v513;
1611
+ v519.offset=v515;
1612
+ v519.stride=v516;
1613
+ }
1614
+ if(v519.divisor!==v517){
1615
+ v501.vertexAttribDivisorANGLE(v518,v517);
1616
+ v519.divisor=v517;
1617
+ }
1618
+ }
1619
+ else{
1620
+ if(v519.buffer){
1621
+ v1.disableVertexAttribArray(v518);
1622
+ v519.buffer=null;
1623
+ }
1624
+ if(v519.x!==v507||v519.y!==v508||v519.z!==v509||v519.w!==v510){
1625
+ v1.vertexAttrib4f(v518,v507,v508,v509,v510);
1626
+ v519.x=v507;
1627
+ v519.y=v508;
1628
+ v519.z=v509;
1629
+ v519.w=v510;
1630
+ }
1631
+ }
1632
+ v521=this["sizeBuffer"];
1633
+ v53.buffer=v521;
1634
+ 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(g131,g19);
1635
+ v522=false;
1636
+ v523=1;
1637
+ v524=0;
1638
+ v525=0;
1639
+ v526=0;
1640
+ v527=0;
1641
+ v528=null;
1642
+ v529=0;
1643
+ v530=false;
1644
+ v531=5126;
1645
+ v532=0;
1646
+ v533=0;
1647
+ v534=0;
1648
+ if(v16(v53)){
1649
+ v522=true;
1650
+ v528=v8.createStream(34962,v53);
1651
+ v531=v528.dtype;
1652
+ }
1653
+ else{
1654
+ v528=v8.getBuffer(v53);
1655
+ if(v528){
1656
+ v531=v528.dtype;
1657
+ }
1658
+ else if("constant" in v53){
1659
+ v523=2;
1660
+ if(typeof v53.constant === "number"){
1661
+ v524=v53.constant;
1662
+ v525=v526=v527=0;
1663
+ }
1664
+ else{
1665
+ v524=v53.constant.length>0?v53.constant[0]:0;
1666
+ v525=v53.constant.length>1?v53.constant[1]:0;
1667
+ v526=v53.constant.length>2?v53.constant[2]:0;
1668
+ v527=v53.constant.length>3?v53.constant[3]:0;
1669
+ }
1670
+ }
1671
+ else{
1672
+ if(v16(v53.buffer)){
1673
+ v528=v8.createStream(34962,v53.buffer);
1674
+ }
1675
+ else{
1676
+ v528=v8.getBuffer(v53.buffer);
1677
+ }
1678
+ v531="type" in v53?v49[v53.type]:v528.dtype;
1679
+ v530=!!v53.normalized;
1680
+ v529=v53.size|0;
1681
+ v532=v53.offset|0;
1682
+ v533=v53.stride|0;
1683
+ v534=v53.divisor|0;
1684
+ }
1685
+ }
1686
+ v535=g145.location;
1687
+ v536=v10[v535];
1688
+ if(v523===1){
1689
+ if(!v536.buffer){
1690
+ v1.enableVertexAttribArray(v535);
1691
+ }
1692
+ v537=v529||1;
1693
+ if(v536.type!==v531||v536.size!==v537||v536.buffer!==v528||v536.normalized!==v530||v536.offset!==v532||v536.stride!==v533){
1694
+ v1.bindBuffer(34962,v528.buffer);
1695
+ v1.vertexAttribPointer(v535,v537,v531,v530,v533,v532);
1696
+ v536.type=v531;
1697
+ v536.size=v537;
1698
+ v536.buffer=v528;
1699
+ v536.normalized=v530;
1700
+ v536.offset=v532;
1701
+ v536.stride=v533;
1702
+ }
1703
+ if(v536.divisor!==v534){
1704
+ v501.vertexAttribDivisorANGLE(v535,v534);
1705
+ v536.divisor=v534;
1706
+ }
1707
+ }
1708
+ else{
1709
+ if(v536.buffer){
1710
+ v1.disableVertexAttribArray(v535);
1711
+ v536.buffer=null;
1712
+ }
1713
+ if(v536.x!==v524||v536.y!==v525||v536.z!==v526||v536.w!==v527){
1714
+ v1.vertexAttrib4f(v535,v524,v525,v526,v527);
1715
+ v536.x=v524;
1716
+ v536.y=v525;
1717
+ v536.z=v526;
1718
+ v536.w=v527;
1719
+ }
1720
+ }
1721
+ v538=this["position"];
1722
+ if(!(v538&&(typeof v538==="object"||typeof v538==="function")&&(v16(v538)||v8.getBuffer(v538)||v8.getBuffer(v538.buffer)||v16(v538.buffer)||("constant" in v538&&(typeof v538.constant==="number"||v17(v538.constant))))))g18.commandRaise(g150,g19);
1723
+ v539=false;
1724
+ v540=1;
1725
+ v541=0;
1726
+ v542=0;
1727
+ v543=0;
1728
+ v544=0;
1729
+ v545=null;
1730
+ v546=0;
1731
+ v547=false;
1732
+ v548=5126;
1733
+ v549=0;
1734
+ v550=0;
1735
+ v551=0;
1736
+ if(v16(v538)){
1737
+ v539=true;
1738
+ v545=v8.createStream(34962,v538);
1739
+ v548=v545.dtype;
1740
+ }
1741
+ else{
1742
+ v545=v8.getBuffer(v538);
1743
+ if(v545){
1744
+ v548=v545.dtype;
1745
+ }
1746
+ else if("constant" in v538){
1747
+ v540=2;
1748
+ if(typeof v538.constant === "number"){
1749
+ v541=v538.constant;
1750
+ v542=v543=v544=0;
1751
+ }
1752
+ else{
1753
+ v541=v538.constant.length>0?v538.constant[0]:0;
1754
+ v542=v538.constant.length>1?v538.constant[1]:0;
1755
+ v543=v538.constant.length>2?v538.constant[2]:0;
1756
+ v544=v538.constant.length>3?v538.constant[3]:0;
1757
+ }
1758
+ }
1759
+ else{
1760
+ if(v16(v538.buffer)){
1761
+ v545=v8.createStream(34962,v538.buffer);
1762
+ }
1763
+ else{
1764
+ v545=v8.getBuffer(v538.buffer);
1765
+ }
1766
+ v548="type" in v538?v49[v538.type]:v545.dtype;
1767
+ v547=!!v538.normalized;
1768
+ v546=v538.size|0;
1769
+ v549=v538.offset|0;
1770
+ v550=v538.stride|0;
1771
+ v551=v538.divisor|0;
1772
+ }
1773
+ }
1774
+ v552=g164.location;
1775
+ v553=v10[v552];
1776
+ if(v540===1){
1777
+ if(!v553.buffer){
1778
+ v1.enableVertexAttribArray(v552);
1779
+ }
1780
+ v554=v546||2;
1781
+ if(v553.type!==v548||v553.size!==v554||v553.buffer!==v545||v553.normalized!==v547||v553.offset!==v549||v553.stride!==v550){
1782
+ v1.bindBuffer(34962,v545.buffer);
1783
+ v1.vertexAttribPointer(v552,v554,v548,v547,v550,v549);
1784
+ v553.type=v548;
1785
+ v553.size=v554;
1786
+ v553.buffer=v545;
1787
+ v553.normalized=v547;
1788
+ v553.offset=v549;
1789
+ v553.stride=v550;
1790
+ }
1791
+ if(v553.divisor!==v551){
1792
+ v501.vertexAttribDivisorANGLE(v552,v551);
1793
+ v553.divisor=v551;
1794
+ }
1795
+ }
1796
+ else{
1797
+ if(v553.buffer){
1798
+ v1.disableVertexAttribArray(v552);
1799
+ v553.buffer=null;
1800
+ }
1801
+ if(v553.x!==v541||v553.y!==v542||v553.z!==v543||v553.w!==v544){
1802
+ v1.vertexAttrib4f(v552,v541,v542,v543,v544);
1803
+ v553.x=v541;
1804
+ v553.y=v542;
1805
+ v553.z=v543;
1806
+ v553.w=v544;
1807
+ }
1808
+ }
1809
+ v555=this["sizeBuffer"];
1810
+ v54.buffer=v555;
1811
+ if(!(v54&&(typeof v54==="object"||typeof v54==="function")&&(v16(v54)||v8.getBuffer(v54)||v8.getBuffer(v54.buffer)||v16(v54.buffer)||("constant" in v54&&(typeof v54.constant==="number"||v17(v54.constant))))))g18.commandRaise(g169,g19);
1812
+ v556=false;
1813
+ v557=1;
1814
+ v558=0;
1815
+ v559=0;
1816
+ v560=0;
1817
+ v561=0;
1818
+ v562=null;
1819
+ v563=0;
1820
+ v564=false;
1821
+ v565=5126;
1822
+ v566=0;
1823
+ v567=0;
1824
+ v568=0;
1825
+ if(v16(v54)){
1826
+ v556=true;
1827
+ v562=v8.createStream(34962,v54);
1828
+ v565=v562.dtype;
1829
+ }
1830
+ else{
1831
+ v562=v8.getBuffer(v54);
1832
+ if(v562){
1833
+ v565=v562.dtype;
1834
+ }
1835
+ else if("constant" in v54){
1836
+ v557=2;
1837
+ if(typeof v54.constant === "number"){
1838
+ v558=v54.constant;
1839
+ v559=v560=v561=0;
1840
+ }
1841
+ else{
1842
+ v558=v54.constant.length>0?v54.constant[0]:0;
1843
+ v559=v54.constant.length>1?v54.constant[1]:0;
1844
+ v560=v54.constant.length>2?v54.constant[2]:0;
1845
+ v561=v54.constant.length>3?v54.constant[3]:0;
1846
+ }
1847
+ }
1848
+ else{
1849
+ if(v16(v54.buffer)){
1850
+ v562=v8.createStream(34962,v54.buffer);
1851
+ }
1852
+ else{
1853
+ v562=v8.getBuffer(v54.buffer);
1854
+ }
1855
+ v565="type" in v54?v49[v54.type]:v562.dtype;
1856
+ v564=!!v54.normalized;
1857
+ v563=v54.size|0;
1858
+ v566=v54.offset|0;
1859
+ v567=v54.stride|0;
1860
+ v568=v54.divisor|0;
1861
+ }
1862
+ }
1863
+ v569=g183.location;
1864
+ v570=v10[v569];
1865
+ if(v557===1){
1866
+ if(!v570.buffer){
1867
+ v1.enableVertexAttribArray(v569);
1868
+ }
1869
+ v571=v563||1;
1870
+ if(v570.type!==v565||v570.size!==v571||v570.buffer!==v562||v570.normalized!==v564||v570.offset!==v566||v570.stride!==v567){
1871
+ v1.bindBuffer(34962,v562.buffer);
1872
+ v1.vertexAttribPointer(v569,v571,v565,v564,v567,v566);
1873
+ v570.type=v565;
1874
+ v570.size=v571;
1875
+ v570.buffer=v562;
1876
+ v570.normalized=v564;
1877
+ v570.offset=v566;
1878
+ v570.stride=v567;
1879
+ }
1880
+ if(v570.divisor!==v568){
1881
+ v501.vertexAttribDivisorANGLE(v569,v568);
1882
+ v570.divisor=v568;
1883
+ }
1884
+ }
1885
+ else{
1886
+ if(v570.buffer){
1887
+ v1.disableVertexAttribArray(v569);
1888
+ v570.buffer=null;
1889
+ }
1890
+ if(v570.x!==v558||v570.y!==v559||v570.z!==v560||v570.w!==v561){
1891
+ v1.vertexAttrib4f(v569,v558,v559,v560,v561);
1892
+ v570.x=v558;
1893
+ v570.y=v559;
1894
+ v570.z=v560;
1895
+ v570.w=v561;
1896
+ }
1897
+ }
1898
+ v572=this["scale"];
1899
+ if(!(v17(v572)&&v572.length===2))g18.commandRaise(g235,g19);
1900
+ v573=v572[0];
1901
+ v574=v572[1];
1902
+ v1.uniform2f(g233.location,v573,v574);
1903
+ v575=this["translate"];
1904
+ if(!(v17(v575)&&v575.length===2))g18.commandRaise(g240,g19);
1905
+ v576=v575[0];
1906
+ v577=v575[1];
1907
+ v1.uniform2f(g238.location,v576,v577);
1908
+ v578=this["viewportArray"];
1909
+ if(!(v17(v578)&&v578.length===4))g18.commandRaise(g245,g19);
1910
+ v579=v578[0];
1911
+ v580=v578[1];
1912
+ v581=v578[2];
1913
+ v582=v578[3];
1914
+ v1.uniform4f(g243.location,v579,v580,v581,v582);
1915
+ v619=v6.elements;
1916
+ if(v619){
1917
+ v1.bindBuffer(34963,v619.buffer.buffer);
1918
+ }
1919
+ else if(v11.currentVAO){
1920
+ v619=v7.getElements(v11.currentVAO.elements);
1921
+ if(v619)v1.bindBuffer(34963,v619.buffer.buffer);
1922
+ }
1923
+ v622=v6.instances;
1924
+ for(v502=0;
1925
+ v502<a1;
1926
+ ++v502){
1927
+ v503=a0[v502];
1928
+ var 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,v620,v621;
1929
+ v583=v503["align"];
1930
+ if(!(typeof v583==="number"))g18.commandRaise(g189,g19);
1931
+ if(!v502||v584!==v583){
1932
+ v584=v583;
1933
+ v1.uniform1f(g187.location,v583);
1934
+ }
1935
+ v585=g191.call(this,v2,v503,v502);
1936
+ if(v585&&v585._reglType==="framebuffer"){
1937
+ v585=v585.color[0];
1938
+ }
1939
+ if(!(typeof v585==="function"&&v585._reglType==="texture2d"))g18.commandRaise(g193,g19);
1940
+ v586=v585._texture;
1941
+ v1.uniform1i(g190.location,v586.bind());
1942
+ v587=g196.call(this,v2,v503,v502);
1943
+ if(!(v17(v587)&&v587.length===2))g18.commandRaise(g198,g19);
1944
+ v588=v587[0];
1945
+ v590=v587[1];
1946
+ if(!v502||v589!==v588||v591!==v590){
1947
+ v589=v588;
1948
+ v591=v590;
1949
+ v1.uniform2f(g195.location,v588,v590);
1950
+ }
1951
+ v592=g202.call(this,v2,v503,v502);
1952
+ if(!(v17(v592)&&v592.length===2))g18.commandRaise(g204,g19);
1953
+ v593=v592[0];
1954
+ v595=v592[1];
1955
+ if(!v502||v594!==v593||v596!==v595){
1956
+ v594=v593;
1957
+ v596=v595;
1958
+ v1.uniform2f(g201.location,v593,v595);
1959
+ }
1960
+ v597=v503["baseline"];
1961
+ if(!(typeof v597==="number"))g18.commandRaise(g209,g19);
1962
+ if(!v502||v598!==v597){
1963
+ v598=v597;
1964
+ v1.uniform1f(g207.location,v597);
1965
+ }
1966
+ v599=g211.call(this,v2,v503,v502);
1967
+ if(!(typeof v599==="number"))g18.commandRaise(g213,g19);
1968
+ if(!v502||v600!==v599){
1969
+ v600=v599;
1970
+ v1.uniform1f(g210.location,v599);
1971
+ }
1972
+ v601=v503["color"];
1973
+ if(!(v17(v601)&&v601.length===4))g18.commandRaise(g216,g19);
1974
+ v602=v601[0];
1975
+ v604=v601[1];
1976
+ v606=v601[2];
1977
+ v608=v601[3];
1978
+ if(!v502||v603!==v602||v605!==v604||v607!==v606||v609!==v608){
1979
+ v603=v602;
1980
+ v605=v604;
1981
+ v607=v606;
1982
+ v609=v608;
1983
+ v1.uniform4f(g214.location,v602,v604,v606,v608);
1984
+ }
1985
+ v610=g222.call(this,v2,v503,v502);
1986
+ if(!(typeof v610==="number"))g18.commandRaise(g224,g19);
1987
+ if(!v502||v611!==v610){
1988
+ v611=v610;
1989
+ v1.uniform1f(g221.location,v610);
1990
+ }
1991
+ v612=v503["opacity"];
1992
+ if(!(typeof v612==="number"))g18.commandRaise(g227,g19);
1993
+ if(!v502||v613!==v612){
1994
+ v613=v612;
1995
+ v1.uniform1f(g225.location,v612);
1996
+ }
1997
+ v614=v503["positionOffset"];
1998
+ if(!(v17(v614)&&v614.length===2))g18.commandRaise(g230,g19);
1999
+ v615=v614[0];
2000
+ v617=v614[1];
2001
+ if(!v502||v616!==v615||v618!==v617){
2002
+ v616=v615;
2003
+ v618=v617;
2004
+ v1.uniform2f(g228.location,v615,v617);
2005
+ }
2006
+ v620=v503["offset"];
2007
+ if(!(v620>=0))g18.commandRaise(g252,g19);
2008
+ v621=v503["count"];
2009
+ if(!(typeof v621==="number"&&v621>=0&&v621===(v621|0)))g18.commandRaise(g254,g19);
2010
+ if(v621){
2011
+ if(v622>0){
2012
+ if(v619){
2013
+ v501.drawElementsInstancedANGLE(0,v621,v619.type,v620<<((v619.type-5121)>>1),v622);
2014
+ }
2015
+ else{
2016
+ v501.drawArraysInstancedANGLE(0,v620,v621,v622);
2017
+ }
2018
+ }
2019
+ else if(v622<0){
2020
+ if(v619){
2021
+ v1.drawElements(0,v621,v619.type,v620<<((v619.type-5121)>>1));
2022
+ }
2023
+ else{
2024
+ v1.drawArrays(0,v620,v621);
2025
+ }
2026
+ }
2027
+ v586.unbind();
2028
+ }
2029
+ }
2030
+ if(v505){
2031
+ v8.destroyStream(v511);
2032
+ }
2033
+ if(v522){
2034
+ v8.destroyStream(v528);
2035
+ }
2036
+ if(v539){
2037
+ v8.destroyStream(v545);
2038
+ }
2039
+ if(v556){
2040
+ v8.destroyStream(v562);
2041
+ }
2042
+ v5.dirty=true;
2043
+ v11.setVAO(null);
2044
+ v2.viewportWidth=v494;
2045
+ v2.viewportHeight=v495;
2046
+ if(v499){
2047
+ g52.cpuTime+=performance.now()-v500;
2048
+ }
2049
+ }
2050
+ ,}
2051
+
2052
+ }