define(["exports","./Check-52a7d806","./when-92c6cf3c","./Math-92c3b5f7"],(function(e,t,n,r){"use strict";function o(e,t,r,o){this.x=n.u(e,0),this.y=n.u(t,0),this.z=n.u(r,0),this.w=n.u(o,0)}o.fromElements=function(e,t,r,a,u){return n.e(u)?(u.x=e,u.y=t,u.z=r,u.w=a,u):new o(e,t,r,a)},o.fromColor=function(e,r){return t.o.typeOf.object("color",e),n.e(r)?(r.x=e.red,r.y=e.green,r.z=e.blue,r.w=e.alpha,r):new o(e.red,e.green,e.blue,e.alpha)},o.clone=function(e,t){if(n.e(e))return n.e(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new o(e.x,e.y,e.z,e.w)},o.packedLength=4,o.pack=function(e,r,o){return t.o.typeOf.object("value",e),t.o.defined("array",r),o=n.u(o,0),r[o++]=e.x,r[o++]=e.y,r[o++]=e.z,r[o]=e.w,r},o.unpack=function(e,r,a){return t.o.defined("array",e),r=n.u(r,0),n.e(a)||(a=new o),a.x=e[r++],a.y=e[r++],a.z=e[r++],a.w=e[r],a},o.packArray=function(e,r){t.o.defined("array",e);var a=e.length,u=4*a;if(n.e(r)){if(!Array.isArray(r)&&r.length!==u)throw new t.t("If result is a typed array, it must have exactly array.length * 4 elements");r.length!==u&&(r.length=u)}else r=new Array(u);for(var c=0;c=38)return o<0?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY;var a=o*e.x*.00390625;return a+=o*e.y*152587890625e-16,(a+=o*e.z*5.960464477539063e-8)*Math.pow(10,r)},e.e=o}));