define(["./Cartesian3-7e9cc2ff","./ComponentDatatype-aaeec80f","./createTaskProcessorWorker","./defaultValue-81eec7ed","./Check-741c5f3c","./Math-5f585871","./WebGLConstants-508b9636"],(function(t,e,n,a,i,r,o){"use strict";function y(e,n){let a=0,i=new t.Cartesian3,r=new t.Cartesian3;i=n[0];for(let t=1;t<=n.length;t++){if(r=t!==n.length?n[t]:n[0],o=i,y=r,((s=e).x-o.x)*(y.y-o.y)==(y.x-o.x)*(s.y-o.y)&&Math.min(o.x,y.x)<=s.x&&s.x<=Math.max(o.x,y.x)&&Math.min(o.y,y.y)<=s.y&&s.y<=Math.max(o.y,y.y))return!0;if(e.y>Math.min(i.y,r.y)&&e.y<=Math.max(i.y,r.y)&&e.x<=Math.max(i.x,r.x)&&i.y!==r.y){const t=(e.y-i.y)*(r.x-i.x)/(r.y-i.y)+i.x;(i.x===r.x||e.x<=t)&&a++}i=r}var o,y,s;return a%2!=0}return n((function(n){const i=n.positionLen,r=n.pointLen,o=n.arrBuffer,s=n.sizeInBytes,x=n.flattenData,f=n.flattenHeight,l=n.primitiveId,h=a.defined(n.quantization)?n.quantization:{};let m=!1;const c=n.draco;if(x.length>0){const n={};if(c){const e=[],a=new Uint16Array(s/2),c=new t.Cartesian3(-1/0,-1/0,-1/0),u=new t.Cartesian3(1/0,1/0,1/0),p=o,z=h.range/(1<M&&(M=c.x-u.x),c.y-u.y>M&&(M=c.y-u.y),c.z-u.z>M&&(M=c.z-u.z);const C=1<