define(["exports","./when-d186add7","./Check-2514d21d"],(function(n,t,e){"use strict";function o(n){n=t.u(n,t.u.EMPTY_OBJECT),this.position=t.u(n.position,!1),this.normal=t.u(n.normal,!1),this.st=t.u(n.st,!1),this.bitangent=t.u(n.bitangent,!1),this.tangent=t.u(n.tangent,!1),this.color=t.u(n.color,!1)}o.POSITION_ONLY=Object.freeze(new o({position:!0})),o.POSITION_AND_NORMAL=Object.freeze(new o({position:!0,normal:!0})),o.POSITION_NORMAL_AND_ST=Object.freeze(new o({position:!0,normal:!0,st:!0})),o.POSITION_AND_ST=Object.freeze(new o({position:!0,st:!0})),o.POSITION_AND_COLOR=Object.freeze(new o({position:!0,color:!0})),o.ALL=Object.freeze(new o({position:!0,normal:!0,st:!0,tangent:!0,bitangent:!0})),o.DEFAULT=o.POSITION_NORMAL_AND_ST,o.packedLength=6,o.pack=function(n,o,i){if(!t.e(n))throw new e.t("value is required");if(!t.e(o))throw new e.t("array is required");return i=t.u(i,0),o[i++]=n.position?1:0,o[i++]=n.normal?1:0,o[i++]=n.st?1:0,o[i++]=n.tangent?1:0,o[i++]=n.bitangent?1:0,o[i]=n.color?1:0,o},o.unpack=function(n,i,r){if(!t.e(n))throw new e.t("array is required");return i=t.u(i,0),t.e(r)||(r=new o),r.position=1===n[i++],r.normal=1===n[i++],r.st=1===n[i++],r.tangent=1===n[i++],r.bitangent=1===n[i++],r.color=1===n[i],r},o.clone=function(n,e){if(t.e(n))return t.e(e)||(e=new o),e.position=n.position,e.normal=n.normal,e.st=n.st,e.tangent=n.tangent,e.bitangent=n.bitangent,e.color=n.color,e},n.n=o}));
