1"use strict";(self.webpackChunkgatsby_template=self.webpackChunkgatsby_template||[]).push([[568],{15568:function(e,t,n){n.r(t),n.d(t,{StyledHeader:function(){return R},default:function(){return Y}});var o=n(59994),i=n(63696),s=n(99451),a=Object.defineProperty,r=(e,t,n)=>(((e,t,n)=>{t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const c=new s.RlV,l=new s.Zcv,h=Math.cos(Math.PI/180*70),m=(e,t)=>(e%t+t)%t;class p extends s.Qev{constructor(e,t){super(),r(this,"object"),r(this,"domElement"),r(this,"enabled",!0),r(this,"target",new s.Pq0),r(this,"minDistance",0),r(this,"maxDistance",1/0),r(this,"minZoom",0),r(this,"maxZoom",1/0),r(this,"minPolarAngle",0),r(this,"maxPolarAngle",Math.PI),r(this,"minAzimuthAngle",-1/0),r(this,"maxAzimuthAngle",1/0),r(this,"enableDamping",!1),r(this,"dampingFactor",.05),r(this,"enableZoom",!0),r(this,"zoomSpeed",1),r(this,"enableRotate",!0),r(this,"rotateSpeed",1),r(this,"enablePan",!0),r(this,"panSpeed",1),r(this,"screenSpacePanning",!0),r(this,"keyPanSpeed",7),r(this,"zoomToCursor",!1),r(this,"autoRotate",!1),r(this,"autoRotateSpeed",2),r(this,"reverseOrbit",!1),r(this,"reverseHorizontalOrbit",!1),r(this,"reverseVerticalOrbit",!1),r(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),r(this,"mouseButtons",{LEFT:s.kBv.ROTATE,MIDDLE:s.kBv.DOLLY,RIGHT:s.kBv.PAN}),r(this,"touches",{ONE:s.wtR.ROTATE,TWO:s.wtR.DOLLY_PAN}),r(this,"target0"),r(this,"position0"),r(this,"zoom0"),r(this,"_domElementKeyEvents",null),r(this,"getPolarAngle"),r(this,"getAzimuthalAngle"),r(this,"setPolarAngle"),r(this,"setAzimuthalAngle"),r(this,"getDistance"),r(this,"listenToKeyEvents"),r(this,"stopListenToKeyEvents"),r(this,"saveState"),r(this,"reset"),r(this,"update"),r(this,"connect"),r(this,"dispose"),this.object=e,this.domElement=t,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>b.phi,this.getAzimuthalAngle=()=>b.theta,this.setPolarAngle=e=>{let t=m(e,2*Math.PI),o=b.phi;o<0&&(o+=2*Math.PI),t<0&&(t+=2*Math.PI);let i=Math.abs(t-o);2*Math.PI-i<i&&(t<o?t+=2*Math.PI:o+=2*Math.PI),g.phi=t-o,n.update()},this.setAzimuthalAngle=e=>{let t=m(e,2*Math.PI),o=b.theta;o<0&&(o+=2*Math.PI),t<0&&(t+=2*Math.PI);let i=Math.abs(t-o);2*Math.PI-i<i&&(t<o?t+=2*Math.PI:o+=2*Math.PI),g.theta=t-o,n.update()},this.getDistance=()=>n.object.position.distanceTo(n.target),this.listenToKeyEvents=e=>{e.addEventListener("keydown",te),this._domElementKeyEvents=e},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",te),this._domElementKeyEvents=null},this.saveState=()=>{n.target0.copy(n.target),n.position0.copy(n.object.position),n.zoom0=n.object.zoom},this.reset=()=>{n.target.copy(n.target0),n.object.position.copy(n.position0),n.object.zoom=n.zoom0,n.object.updateProjectionMatrix(),n.dispatchEvent(o),n.update(),d=p.NONE},this.update=(()=>{const t=new s.Pq0,i=new s.Pq0(0,1,0),a=(new s.PTz).setFromUnitVectors(e.up,i),r=a.clone().invert(),m=new s.Pq0,v=new s.PTz,y=2*Math.PI;return function(){const j=n.object.position;a.setFromUnitVectors(e.up,i),r.copy(a).invert(),t.copy(j).sub(n.target),t.applyQuaternion(a),b.setFromVector3(t),n.autoRotate&&d===p.NONE&&H(2*Math.PI/60/60*n.autoRotateSpeed),n.enableDamping?(b.theta+=g.theta*n.dampingFactor,b.phi+=g.phi*n.dampingFactor):(b.theta+=g.theta,b.phi+=g.phi);let E=n.minAzimuthAngle,P=n.maxAzimuthAngle;isFinite(E)&&isFinite(P)&&(E<-Math.PI?E+=y:E>Math.PI&&(E-=y),P<-Math.PI?P+=y:P>Math.PI&&(P-=y),b.theta=E<=P?Math.max(E,Math.min(P,b.theta)):b.theta>(E+P)/2?Math.max(E,b.theta):Math.min(P,b.theta)),b.phi=Math.max(n.minPolarAngle,Math.min(n.maxPolarAngle,b.phi)),b.makeSafe(),!0===n.enableDamping?n.target.addScaledVector(w,n.dampingFactor):n.target.add(w),n.zoomToCursor&&L||n.object.isOrthographicCamera?b.radius=_(b.radius):b.radius=_(b.radius*f),t.setFromSpherical(b),t.applyQuaternion(r),j.copy(n.target).add(t),n.object.matrixAutoUpdate||n.object.updateMatrix(),n.object.lookAt(n.target),!0===n.enableDamping?(g.theta*=1-n.dampingFactor,g.phi*=1-n.dampingFactor,w.multiplyScalar(1-n.dampingFactor)):(g.set(0,0,0),w.set(0,0,0));let x=!1;if(n.zoomToCursor&&L){let o=null;if(n.object instanceof s.ubm&&n.object.isPerspectiveCamera){const e=t.length();o=_(e*f);const i=e-o;n.object.position.addScaledVector(I,i),n.object.updateMatrixWorld()}else if(n.object.isOrthographicCamera){const e=new s.Pq0(T.x,T.y,0);e.unproject(n.object),n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/f)),n.object.updateProjectionMatrix(),x=!0;const i=new s.Pq0(T.x,T.y,0);i.unproject(n.object),n.object.position.sub(i).add(e),n.object.updateMatrixWorld(),o=t.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),n.zoomToCursor=!1;null!==o&&(n.screenSpacePanning?n.target.set(0,0,-1).transformDirection(n.object.matrix).multiplyScalar(o).add(n.object.position):(c.origin.copy(n.object.position),c.direction.set(0,0,-1).transformDirection(n.object.matrix),Math.abs(n.object.up.dot(c.direction))<
1h?e.lookAt(n.target):(l.setFromNormalAndCoplanarPoint(n.object.up,n.target),c.intersectPlane(l,n.target))))}else n.object instanceof s.qUd&&n.object.isOrthographicCamera&&(x=1!==f,x&&(n.object.zoom=Math.max(n.minZoom,Math.min(n.maxZoom,n.object.zoom/f)),n.object.updateProjectionMatrix()));return f=1,L=!1,!!(x||m.distanceToSquared(n.object.position)>u||8*(1-v.dot(n.object.quaternion))>u)&&(n.dispatchEvent(o),m.copy(n.object.position),v.copy(n.object.quaternion),x=!1,!0)}})(),this.connect=e=>{e===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),n.domElement=e,n.domElement.style.touchAction="none",n.domElement.addEventListener("contextmenu",ne),n.domElement.addEventListener("pointerdown",$),n.domElement.addEventListener("pointercancel",Q),n.domElement.addEventListener("wheel",ee)},this.dispose=()=>{var e,t,o,i,s,a;n.domElement&&(n.domElement.style.touchAction="auto"),null==(e=n.domElement)||e.removeEventListener("contextmenu",ne),null==(t=n.domElement)||t.removeEventListener("pointerdown",$),null==(o=n.domElement)||o.removeEventListener("pointercancel",Q),null==(i=n.domElement)||i.removeEventListener("wheel",ee),null==(s=n.domElement)||s.ownerDocument.removeEventListener("pointermove",J),null==(a=n.domElement)||a.ownerDocument.removeEventListener("pointerup",Q),null!==n._domElementKeyEvents&&n._domElementKeyEvents.removeEventListener("keydown",te)};const n=this,o={type:"change"},i={type:"start"},a={type:"end"},p={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let d=p.NONE;const u=1e-6,b=new s.YHV,g=new s.YHV;let f=1;const w=new s.Pq0,v=new s.I9Y,y=new s.I9Y,j=new s.I9Y,E=new s.I9Y,P=new s.I9Y,x=new s.I9Y,A=new s.I9Y,O=new s.I9Y,M=new s.I9Y,I=new s.Pq0,T=new s.I9Y;let L=!1;const z=[],N={};function C(){return Math.pow(.95,n.zoomSpeed)}function H(e){n.reverseOrbit||n.reverseHorizontalOrbit?g.theta+=e:g.theta-=e}function R(e){n.reverseOrbit||n.reverseVerticalOrbit?g.phi+=e:g.phi-=e}const S=(()=>{const e=new s.Pq0;return function(t,n){e.setFromMatrixColumn(n,0),e.multiplyScalar(-t),w.add(e)}})(),k=(()=>{const e=new s.Pq0;return function(t,o){!0===n.screenSpacePanning?e.setFromMatrixColumn(o,1):(e.setFromMatrixColumn(o,0),e.crossVectors(n.object.up,e)),e.multiplyScalar(t),w.add(e)}})(),Y=(()=>{const e=new s.Pq0;return function(t,o){const i=n.domElement;if(i&&n.object instanceof s.ubm&&n.object.isPerspectiveCamera){const s=n.object.position;e.copy(s).sub(n.target);let a=e.length();a*=Math.tan(n.object.fov/2*Math.PI/180),S(2*t*a/i.clientHeight,n.object.matrix),k(2*o*a/i.clientHeight,n.object.matrix)}else i&&n.object instanceof s.qUd&&n.object.isOrthographicCamera?(S(t*(n.object.right-n.object.left)/n.object.zoom/i.clientWidth,n.object.matrix),k(o*(n.object.top-n.object.bottom)/n.object.zoom/i.clientHeight,n.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),n.enablePan=!1)}})();function D(e){n.object instanceof s.ubm&&n.object.isPerspectiveCamera||n.object instanceof s.qUd&&n.object.isOrthographicCamera?f/=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function F(e){n.object instanceof s.ubm&&n.object.isPerspectiveCamera||n.object instanceof s.qUd&&n.object.isOrthographicCamera?f*=e:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),n.enableZoom=!1)}function V(e){if(!n.zoomToCursor||!n.domElement)return;L=!0;const t=n.domElement.getBoundingClientRect(),o=e.clientX-t.left,i=e.clientY-t.top,s=t.width,a=t.height;T.x=o/s*2-1,T.y=-i/a*2+1,I.set(T.x,T.y,1).unproject(n.object).sub(n.object.position).normalize()}function _(e){return Math.max(n.minDistance,Math.min(n.maxDistance,e))}function U(e){v.set(e.clientX,e.clientY)}function q(e){E.set(e.clientX,e.clientY)}function W(){if(1==z.length)v.set(z[0].pageX,z[0].pageY);else{const e=.5*(z[0].pageX+z[1].pageX),t=.5*(z[0].pageY+z[1].pageY);
1v.set(e,t)}}function B(){if(1==z.length)E.set(z[0].pageX,z[0].pageY);else{const e=.5*(z[0].pageX+z[1].pageX),t=.5*(z[0].pageY+z[1].pageY);E.set(e,t)}}function X(){const e=z[0].pageX-z[1].pageX,t=z[0].pageY-z[1].pageY,n=Math.sqrt(e*e+t*t);A.set(0,n)}function Z(e){if(1==z.length)y.set(e.pageX,e.pageY);else{const t=ie(e),n=.5*(e.pageX+t.x),o=.5*(e.pageY+t.y);y.set(n,o)}j.subVectors(y,v).multiplyScalar(n.rotateSpeed);const t=n.domElement;t&&(H(2*Math.PI*j.x/t.clientHeight),R(2*Math.PI*j.y/t.clientHeight)),v.copy(y)}function K(e){if(1==z.length)P.set(e.pageX,e.pageY);else{const t=ie(e),n=.5*(e.pageX+t.x),o=.5*(e.pageY+t.y);P.set(n,o)}x.subVectors(P,E).multiplyScalar(n.panSpeed),Y(x.x,x.y),E.copy(P)}function G(e){const t=ie(e),o=e.pageX-t.x,i=e.pageY-t.y,s=Math.sqrt(o*o+i*i);O.set(0,s),M.set(0,Math.pow(O.y/A.y,n.zoomSpeed)),D(M.y),A.copy(O)}function $(e){var t,o;!1!==n.enabled&&(0===z.length&&(null==(t=n.domElement)||t.ownerDocument.addEventListener("pointermove",J),null==(o=n.domElement)||o.ownerDocument.addEventListener("pointerup",Q)),function(e){z.push(e)}(e),"touch"===e.pointerType?function(e){switch(oe(e),z.length){case 1:switch(n.touches.ONE){case s.wtR.ROTATE:if(!1===n.enableRotate)return;W(),d=p.TOUCH_ROTATE;break;case s.wtR.PAN:if(!1===n.enablePan)return;B(),d=p.TOUCH_PAN;break;default:d=p.NONE}break;case 2:switch(n.touches.TWO){case s.wtR.DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;n.enableZoom&&X(),n.enablePan&&B(),d=p.TOUCH_DOLLY_PAN;break;case s.wtR.DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;n.enableZoom&&X(),n.enableRotate&&W(),d=p.TOUCH_DOLLY_ROTATE;break;default:d=p.NONE}break;default:d=p.NONE}d!==p.NONE&&n.dispatchEvent(i)}(e):function(e){let t;switch(e.button){case 0:t=n.mouseButtons.LEFT;break;case 1:t=n.mouseButtons.MIDDLE;break;case 2:t=n.mouseButtons.RIGHT;break;default:t=-1}switch(t){case s.kBv.DOLLY:if(!1===n.enableZoom)return;!function(e){V(e),A.set(e.clientX,e.clientY)}(e),d=p.DOLLY;break;case s.kBv.ROTATE:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enablePan)return;q(e),d=p.PAN}else{if(!1===n.enableRotate)return;U(e),d=p.ROTATE}break;case s.kBv.PAN:if(e.ctrlKey||e.metaKey||e.shiftKey){if(!1===n.enableRotate)return;U(e),d=p.ROTATE}else{if(!1===n.enablePan)return;q(e),d=p.PAN}break;default:d=p.NONE}d!==p.NONE&&n.dispatchEvent(i)}(e))}function J(e){!1!==n.enabled&&("touch"===e.pointerType?function(e){switch(oe(e),d){case p.TOUCH_ROTATE:if(!1===n.enableRotate)return;Z(e),n.update();break;case p.TOUCH_PAN:if(!1===n.enablePan)return;K(e),n.update();break;case p.TOUCH_DOLLY_PAN:if(!1===n.enableZoom&&!1===n.enablePan)return;!function(e){n.enableZoom&&G(e),n.enablePan&&K(e)}(e),n.update();break;case p.TOUCH_DOLLY_ROTATE:if(!1===n.enableZoom&&!1===n.enableRotate)return;!function(e){n.enableZoom&&G(e),n.enableRotate&&Z(e)}(e),n.update();break;default:d=p.NONE}}(e):function(e){if(!1===n.enabled)return;switch(d){case p.ROTATE:if(!1===n.enableRotate)return;!function(e){y.set(e.clientX,e.clientY),j.subVectors(y,v).multiplyScalar(n.rotateSpeed);const t=n.domElement;t&&(H(2*Math.PI*j.x/t.clientHeight),R(2*Math.PI*j.y/t.clientHeight)),v.copy(y),n.update()}(e);break;case p.DOLLY:if(!1===n.enableZoom)return;!function(e){O.set(e.clientX,e.clientY),M.subVectors(O,A),M.y>0?D(C()):M.y<0&&F(C()),A.copy(O),n.update()}(e);break;case p.PAN:if(!1===n.enablePan)return;!function(e){P.set(e.clientX,e.clientY),x.subVectors(P,E).multiplyScalar(n.panSpeed),Y(x.x,x.y),E.copy(P),n.update()}(e)}}(e))}function Q(e){var t,o,i;!function(e){delete N[e.pointerId];for(let t=0;t<z.length;t++)if(z[t].pointerId==e.pointerId)return void z.splice(t,1)}(e),0===z.length&&(null==(t=n.domElement)||t.releasePointerCapture(e.pointerId),null==(o=n.domElement)||o.ownerDocument.removeEventListener("pointermove",J),null==(i=n.domElement)||i.ownerDocument.removeEventListener("pointerup",Q)),n.dispatchEvent(a),d=p.NONE}function ee(e){!1===n.enabled||!1===n.enableZoom||d!==p.NONE&&d!==p.ROTATE||(e.preventDefault(),n.dispatchEvent(i),function(e){V(e),e.deltaY<0?F(C()):e.deltaY>0&&D(C()),n.update()}(e),n.dispatchEvent(a))}function te(e){!1!==n.enabled&&!1!==n.enablePan&&function(e){let t=!1;switch(e.code){case n.keys.UP:Y(0,n.keyPanSpeed),t=!0;break;case n.keys.BOTTOM:Y(0,-n.keyPanSpeed),t=!0;break;case n.keys.LEFT:Y(n.keyPanSpeed,0),t=!0;break;case n.keys.RIGHT:Y(-n.keyPanSpeed,0),t=!0}t&&(e.preventDefault(),n.update())}(e)}function ne(e){!1!==n.enabled&&e.preventDefault()}function oe(e){let t=N[e.pointerId];void 0===t&&(t=new s.I9Y,N[e.pointerId]=t),t.set(e.pageX,e.pageY)}function ie(e){const t=e.pointerId===z[0].pointerId?z[1]:z[0];return N[t.pointerId]}void 0!==t&&this.connect(t),this.update()}}const d=/^[og]\s*(.+)?/,u=/^mtllib /,b=/^usemtl /,g=/^usemap /,f=new s.Pq0,w=new s.Pq0,v=new s.Pq0,y=new s.Pq0,j=new s.Pq0;function E(){const e={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(e,t){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=e,void(this.object.fromDeclaration=!1!==t);const n=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:e||"",fromDeclaration:!1!==t,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(e,t){const n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);const o={index:this.materials.length,name:e||"",mtllib:Array.isArray(t)&&t.length>0?t[t.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(e){const t={index:"number"==typeof e?e:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return t.clone=this.clone.bind(t),t}};return this.materials.push(o),o},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){const t=this.currentMaterial();if(t&&-1===t.groupEnd&&(t.groupEnd=this.geometry.vertices.length/3,t.groupCount=t.groupEnd-t.groupStart,t.inherited=!1),e&&this.materials.length>1)for(let n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return e&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),t}}
vendor: 6,411 bytes, line 1
1,n&&n.name&&"function"==typeof n.clone){const e=n.clone(0);e.inherited=!0,this.object.materials.push(e)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(e,t){const n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseNormalIndex:function(e,t){const n=parseInt(e,10);return 3*(n>=0?n-1:n+t/3)},parseUVIndex:function(e,t){const n=parseInt(e,10);return 2*(n>=0?n-1:n+t/2)},addVertex:function(e,t,n){const o=this.vertices,i=this.object.geometry.vertices;i.push(o[e+0],o[e+1],o[e+2]),i.push(o[t+0],o[t+1],o[t+2]),i.push(o[n+0],o[n+1],o[n+2])},addVertexPoint:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addVertexLine:function(e){const t=this.vertices;this.object.geometry.vertices.push(t[e+0],t[e+1],t[e+2])},addNormal:function(e,t,n){const o=this.normals,i=this.object.geometry.normals;i.push(o[e+0],o[e+1],o[e+2]),i.push(o[t+0],o[t+1],o[t+2]),i.push(o[n+0],o[n+1],o[n+2])},addFaceNormal:function(e,t,n){const o=this.vertices,i=this.object.geometry.normals;f.fromArray(o,e),w.fromArray(o,t),v.fromArray(o,n),j.subVectors(v,w),y.subVectors(f,w),j.cross(y),j.normalize(),i.push(j.x,j.y,j.z),i.push(j.x,j.y,j.z),i.push(j.x,j.y,j.z)},addColor:function(e,t,n){const o=this.colors,i=this.object.geometry.colors;void 0!==o[e]&&i.push(o[e+0],o[e+1],o[e+2]),void 0!==o[t]&&i.push(o[t+0],o[t+1],o[t+2]),void 0!==o[n]&&i.push(o[n+0],o[n+1],o[n+2])},addUV:function(e,t,n){const o=this.uvs,i=this.object.geometry.uvs;i.push(o[e+0],o[e+1]),i.push(o[t+0],o[t+1]),i.push(o[n+0],o[n+1])},addDefaultUV:function(){const e=this.object.geometry.uvs;e.push(0,0),e.push(0,0),e.push(0,0)},addUVLine:function(e){const t=this.uvs;this.object.geometry.uvs.push(t[e+0],t[e+1])},addFace:function(e,t,n,o,i,s,a,r,c){const l=this.vertices.length;let h=this.parseVertexIndex(e,l),m=this.parseVertexIndex(t,l),p=this.parseVertexIndex(n,l);if(this.addVertex(h,m,p),this.addColor(h,m,p),void 0!==a&&""!==a){const e=this.normals.length;h=this.parseNormalIndex(a,e),m=this.parseNormalIndex(r,e),p=this.parseNormalIndex(c,e),this.addNormal(h,m,p)}else this.addFaceNormal(h,m,p);if(void 0!==o&&""!==o){const e=this.uvs.length;h=this.parseUVIndex(o,e),m=this.parseUVIndex(i,e),p=this.parseUVIndex(s,e),this.addUV(h,m,p),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(e){this.object.geometry.type="Points";const t=this.vertices.length;for(let n=0,o=e.length;n<o;n++){const o=this.parseVertexIndex(e[n],t);this.addVertexPoint(o),this.addColor(o)}},addLineGeometry:function(e,t){this.object.geometry.type="Line";const n=this.vertices.length,o=this.uvs.length;for(let i=0,s=e.length;i<s;i++)this.addVertexLine(this.parseVertexIndex(e[i],n));for(let i=0,s=t.length;i<s;i++)this.addUVLine(this.parseUVIndex(t[i],o))}};return e.startObject("",!1),e}class P extends s.aHM{constructor(e){super(e),this.materials=null}load(e,t,n,o){const i=this,a=new s.Y9S(this.manager);a.setPath(this.path),a.setRequestHeader(this.requestHeader),a.setWithCredentials(this.withCredentials),a.load(e,(function(n){try{t(i.parse(n))}catch(s){o?o(s):console.error(s),i.manager.itemError(e)}}),n,o)}setMaterials(e){return this.materials=e,this}parse(e){const t=new E;-1!==e.indexOf("\r\n")&&(e=e.replace(/\r\n/g,"\n")),-1!==e.indexOf("\\\n")&&(e=e.replace(/\\\n/g,""));const n=e.split("\n");let o="",i="",a=0,r=[];const c="function"==typeof"".trimLeft;for(let s=0,h=n.length;s<h;s++)if(o=n[s],o=c?o.trimLeft():o.trim(),a=o.length,0!==a&&(i=o.charAt(0),"#"!==i))if("v"===i){const e=o.split(/\s+/);switch(e[0]){case"v":t.vertices.push(parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3])),e.length>=7?t.colors.push(parseFloat(e[4]),parseFloat(e[5]),parseFloat(e[6])):t.colors.push(void 0,void 0,void 0);break;case"vn":t.normals.push(parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3]));break;case"vt":t.uvs.push(parseFloat(e[1]),parseFloat(e[2]))}}else if("f"===i){const e=o.substr(1).trim().split(/\s+/),n=[];for(let t=0,o=e.length;t<o;t++){const o=e[t];if(o.length>0){const e=o.split("/");n.push(e)}}const i=n[0];for(let o=1,s=n.length-1;o<s;o++){const e=n[o],s=n[o+1];t.addFace(i[0],e[0],s[0],i[1],e[1],s[1],i[2],e[2],s[2])}}else if("l"===i){const e=o.substring(1).trim().split(" ");let n=[];const i=[];if(-1===o.indexOf("/"))n=e;else for(let t=0,o=e.length;t<o;t++){const o=e[t].split("/");""!==o[0]&&n.push(o[0]),""!==o[1]&&i.push(o[1])}t.addLineGeometry(n,i)}else if("p"===i){const e=o.substr(1).trim().split(" ");t.addPointGeometry(e)}else if(null!==(r=d.exec(o))){const e=(" "+r[0].substr(1).trim()).substr(1);t.startObject(e)}else if(b.test(o))t.object.startMaterial(o.substring(7).trim(),t.materialLibraries);else if(u.test(o))t.materialLibraries.push(o.substring(7).trim());else if(g.test(o))console.warn('THREE.OBJLoader: Rendering identifier "usemap" not supported. Textures must be defined in MTL files.');else if("s"===i){if(r=o.split(" "),r.length>1){const e=r[1].trim().toLowerCase();t.object.smooth="0"!==e&&"off"!==e}else t.object.smooth=!0;const e=t.object.currentMaterial();e&&(e.smooth=t.object.smooth)}else{if("\0"===o)continue;console.warn('THREE.OBJLoader: Unexpected line: "'+o+'"')}t.finalize();const l=new s.YJl;l.materialLibraries=[].concat(t.materialLibraries);if(!0===!(1===t.objects.length&&0===t.objects[0].geometry.vertices.length))for(let h=0,m=t.objects.length;h<m;h++){const e=t.objects[h],n=e.geometry,o=e.materials,i="Line"===n.type,a="Points"===n.type;let r=!1;if(0===n.vertices.length)continue;const c=new s.LoY;c.setAttribute("position",new s.qtW(n.vertices,3)),n.normals.length>0&&c.setAttribute("normal",new s.qtW(n.normals,3)),n.colors.length>0&&(r=!0,c.setAttribute("color",new s.qtW(n.colors,3))),!0===n.hasUVIndices&&c.setAttribute("uv",new s.qtW(n.uvs,2));const m=[];for(let l=0,h=o.length;l<h;l++){const e=o[l],n=e.name+"_"+e.smooth+"_"+r;let c=t.materials[n];if(null!==this.materials)if(c=this.materials.create(e.name),!i||!c||c instanceof s.mrM){if(a&&c&&!(c instanceof s.BH$)){const e=new s.BH$({size:10,sizeAttenuation:!1});s.imn.prototype.copy.call(e,c),e.color.copy(c.color),e.map=c.map,c=e}}else{const e=new s.mrM;s.imn.prototype.copy.call(e,c),e.color.copy(c.color),c=e}void 0===c&&(c=i?new s.mrM:a?new s.BH$({size:1,sizeAttenuation:!1}):new s.tXL,c.name=e.name,c.flatShading=!e.smooth,c.vertexColors=r,t.materials[n]=c),m.push(c)}let p;
1if(m.length>1){for(let e=0,t=o.length;e<t;e++){const t=o[e];c.addGroup(t.groupStart,t.groupCount,e)}p=i?new s.DXC(c,m):a?new s.ONl(c,m):new s.eaF(c,m)}else p=i?new s.DXC(c,m[0]):a?new s.ONl(c,m[0]):new s.eaF(c,m[0]);p.name=e.name,l.add(p)}else if(t.vertices.length>0){const e=new s.BH$({size:1,sizeAttenuation:!1}),n=new s.LoY;n.setAttribute("position",new s.qtW(t.vertices,3)),t.colors.length>0&&void 0!==t.colors[0]&&(n.setAttribute("color",new s.qtW(t.colors,3)),e.vertexColors=!0);const o=new s.ONl(n,e);l.add(o)}return l}}var x=n(62688),A=n.n(x),O=n(68823),M=n(4663),I=(n(42331),n(96877)),T=n(46495),L=n(48446),z=n(99465),N=n(6297),C=n(74599),H=n(48930);const R=(0,O.default)("header").withConfig({displayName:"HeaderRadian__StyledHeader",componentId:"sc-bbchey-0"})({position:"relative"},(0,M.Zz)(M.yW,M.r7));let S=function(e){function t(t){var n;return(n=e.call(this,t)||this).start=()=>{n.frameId||(n.frameId=requestAnimationFrame(n.animate))},n.stop=()=>{cancelAnimationFrame(n.frameId)},n.animate=()=>{n.objMesh&&(n.objMesh.rotation.y-=.008),n.controls.update(),n.renderScene(),n.frameId=window.requestAnimationFrame(n.animate)},n.renderScene=()=>{n.renderer&&n.renderer.render(n.scene,n.camera)},n.state={objScale:.013},n}(0,o.A)(t,e);var n=t.prototype;return n.componentDidMount=function(){const e=this.props.isHomepage?this.props.isMobileBp&&window.innerHeight>window.innerWidth?window.innerWidth:window.innerHeight/1.9:70,t=this.props.isHomepage?this.props.isMobileBp&&window.innerHeight>window.innerWidth?window.innerWidth:window.innerHeight/1.9:70;this.scene=new s.Z58,this.renderer=new s.JeP({antialias:!0,alpha:!0}),this.renderer.setClearColor(16777215,0),this.renderer.setSize(e,t),this.renderer.setPixelRatio(Math.min(window.devicePixelRatio,2)),this.mount.appendChild(this.renderer.domElement),this.camera=new s.ubm(40,e/t,.1,1e3),this.camera.position.z=20,this.camera.position.y=0,this.controls=new p(this.camera,this.renderer.domElement),this.controls.enableDamping=!0,this.controls.enableZoom=!1,this.controls.enablePan=!1,this.scene.add(new s.$p8(16777215)),this.addModels(),this.renderScene(),this.start(),window.addEventListener("resize",(()=>{const e=this.props.isHomepage?this.props.isMobileBp&&window.innerHeight>window.innerWidth?window.innerWidth:window.innerHeight/1.9:70,t=this.props.isHomepage?this.props.isMobileBp&&window.innerHeight>window.innerWidth?window.innerWidth:window.innerHeight/1.9:70;this.camera.aspect=e/t,this.camera.updateProjectionMatrix(),this.renderer.setSize(e,t),this.renderer.setPixelRatio(Math.min(window.devicePixelRatio,2))}))},n.addModels=function(){const e=new s.tXL({color:48639,shininess:150,combine:s.KRh,reflectivity:.5});(new P).load(`https://wbcg-cors-anywhere.herokuapp.com/${this.props.obj}`,(t=>{this.objMesh=t;var n=(new s.NRn).setFromObject(t);t.traverse((function(t){t instanceof s.eaF&&(t.material=e,t.geometry.translate(0,0,0))})),n.setFromObject(t),this.objMesh.scale.set(this.state.objScale,this.state.objScale,this.state.objScale),this.scene.add(this.objMesh)}),(e=>{console.log(e.loaded/e.total*100+"% loaded")}),(e=>{console.log("An error happened"+e)}))},n.componentWillUnmount=function(){this.stop(),this.mount.removeChild(this.renderer.domElement)},n.componentDidUpdate=function(e){if(this.props.isHomepage!==e.isHomepage){const e=this.props.isHomepage?this.props.isMobileBp&&window.innerHeight>window.innerWidth?window.innerWidth:window.innerHeight/1.9:70,t=this.props.isHomepage?this.props.isMobileBp&&window.innerHeight>window.innerWidth?window.innerWidth:window.innerHeight/1.9:70;this.camera.aspect=e/t,this.camera.updateProjectionMatrix(),this.renderer.setSize(e,t),this.renderer.setPixelRatio(Math.min(window.devicePixelRatio,2))}},n.render=function(){return i.createElement("div",{style:{width:"100%",height:"100%"},ref:e=>{this.mount=e}})},t}(i.Component);const k=e=>{let{theme:t="default",bg:n=0,shadow:o="none",logo:s,rightImage:a,siteTitle:r,isHomepage:c,title:l,subtitle:h}=e;const m=(0,H.A)("sm"),p=()=>i.createElement(i.Fragment,null,s&&!c&&i.createElement(N.A,{width:{_:8,md:9},height:{_:2,md:3}},i.createElement(T.A,{"aria-label":"Go to home page link",to:"/"},s&&i.createElement(L.A,Object.assign({alternativeText:"Header Logo"},s,{style:{height:"100%"},imgStyle:{objectFit:"contain",objectPosition:"left center"}})))),!s&&!c&&i.createElement(T.A,{"aria-label":"Go to home page link",to:"/"},i.createElement(C.hE,{color:"#0F0047",fontSize:"14px",letterSpacing:"2px",fontWeight:"medium",variant:"h1",as:"span"},l||r)),c&&i.createElement(z.A,{flexDirection:"column",alignItems:"center",pb:"110px"},i.createElement(T.A,{"aria-label":"Go to home page link",to:"/"},i.createElement(C.hE,{color:"#0F0047",fontSize:"14px",letterSpacing:"2px",textAlign:"center",fontWeight:"medium",variant:"h1",as:"span"},l||r)),h&&i.createElement(C.hE,{color:"#0F0047",fontSize:"20px",textAlign:"center",fontWeight:"medium",variant:"h1",as:"span",pt:"62px"},h)));return i.createElement(I.A,{theme:c?"light":t},i.createElement(R,{bg:`background.${n}`,style:{height:c?"100%":"80px",zIndex:"header"},boxShadow:o},i.createElement(z.A,{px:5,pt:c?7:null,flexDirection:c?"column":"row",width:"100%",alignItems:"center",justifyContent:"space-between",height:"100%"},i.createElement(p,null),(null==a?void 0:a.url)&&i.createElement(N.A,{pb:c?null:2}
1,i.createElement(S,{obj:null==a?void 0:a.url,isHomepage:c,isMobileBp:m})))))};var Y=k;k.strapiProps={logo:A().shape({url:A().string,alternativeText:A().string}),rightImage:A().shape({url:A().string,alternativeText:A().string})}}}]); 2//# sourceMappingURL=568-ba3c8371edfddc5f4992.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.