/**
 * @license
 * Cesium - https://github.com/CesiumGS/cesium
 * Version 1.126
 *
 * Copyright 2011-2022 Cesium Contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Columbus View (Pat. Pend.)
 *
 * Portions licensed separately.
 * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
 */
import{a as _e}from"./chunk-TRWH7IZP.js";import{a as Z}from"./chunk-VSCNOKDU.js";import{a as _t}from"./chunk-I4G5DYCC.js";import{a as Oe}from"./chunk-55B3WQ6I.js";import{a as Le}from"./chunk-K4QHJFYW.js";import{a as te}from"./chunk-CZ6DDD6J.js";import{b as Qt}from"./chunk-26PPBGHW.js";import{a as jt}from"./chunk-FMJWH3RL.js";import{c as Ce,d as zt}from"./chunk-SPFUTSGC.js";import{a as bt,d as G}from"./chunk-E2NX4UJ2.js";import{d as xe,e as Ne,f as Kt,h as U}from"./chunk-JBPQP6LH.js";import{a as Bt}from"./chunk-NLPIV6OK.js";import{a as t,b as u,c as Pt,d as z,e as vt}from"./chunk-IIT3SHXK.js";import{a as p}from"./chunk-DLCTHPIV.js";import"./chunk-GMF7KJHC.js";import"./chunk-NYFH7JC3.js";import{a as O}from"./chunk-I2ICH2LD.js";import{a as St,b as et}from"./chunk-R6A52HT4.js";import{e as g}from"./chunk-D32DZSEC.js";function rt(t){t=O(t,O.EMPTY_OBJECT),this._ellipsoid=O(t.ellipsoid,z.default),this._rectangle=O(t.rectangle,U.MAX_VALUE),this._projection=new bt(this._ellipsoid),this._numberOfLevelZeroTilesX=O(t.numberOfLevelZeroTilesX,2),this._numberOfLevelZeroTilesY=O(t.numberOfLevelZeroTilesY,1)}Object.defineProperties(rt.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},rectangle:{get:function(){return this._rectangle}},projection:{get:function(){return this._projection}}}),rt.prototype.getNumberOfXTilesAtLevel=function(t){return this._numberOfLevelZeroTilesX<<t},rt.prototype.getNumberOfYTilesAtLevel=function(t){return this._numberOfLevelZeroTilesY<<t},rt.prototype.rectangleToNativeRectangle=function(t,e){et.defined("rectangle",t);let n=p.toDegrees(t.west),r=p.toDegrees(t.south),i=p.toDegrees(t.east),a=p.toDegrees(t.north);return g(e)?(e.west=n,e.south=r,e.east=i,e.north=a,e):new U(n,r,i,a)},rt.prototype.tileXYToNativeRectangle=function(t,e,n,r){let i=this.tileXYToRectangle(t,e,n,r);return i.west=p.toDegrees(i.west),i.south=p.toDegrees(i.south),i.east=p.toDegrees(i.east),i.north=p.toDegrees(i.north),i},rt.prototype.tileXYToRectangle=function(t,e,n,r){let i=this._rectangle,a=this.getNumberOfXTilesAtLevel(n),o=this.getNumberOfYTilesAtLevel(n),l=i.width/a,s=t*l+i.west,u=(t+1)*l+i.west,c=i.height/o,p=i.north-e*c,h=i.north-(e+1)*c;return g(r)||(r=new U(s,h,u,p)),r.west=s,r.south=h,r.east=u,r.north=p,r},rt.prototype.positionToTileXY=function(t,e,n){let r=this._rectangle;if(!U.contains(r,t))return;let i=this.getNumberOfXTilesAtLevel(e),a=this.getNumberOfYTilesAtLevel(e),o=r.width/i,l=r.height/a,s=t.longitude;r.east<r.west&&(s+=p.TWO_PI);let u=(s-r.west)/o|0;u>=i&&(u=i-1);let c=(r.north-t.latitude)/l|0;return c>=a&&(c=a-1),g(n)?(n.x=u,n.y=c,n):new Pt(u,c)};var De=rt,Ie=new t,He=new t,ke=new u,ee=new t,hn=new t,ye=new G,pn=new De,Lt=[new u,new u,new u,new u],Ot=new Pt,w={};function Ae(t){u.fromRadians(t.east,t.north,0,Lt[0]),u.fromRadians(t.west,t.north,0,Lt[1]),u.fromRadians(t.east,t.south,0,Lt[2]),u.fromRadians(t.west,t.south,0,Lt[3]);let e,n=0,r=0,i=0,a=0,o=w._terrainHeightsMaxLevel;for(e=0;e<=o;++e){let t=!1;for(let n=0;n<4;++n){let r=Lt[n];if(pn.positionToTileXY(r,e,Ot),0===n)i=Ot.x,a=Ot.y;else if(i!==Ot.x||a!==Ot.y){t=!0;break}}if(t)break;n=i,r=a}if(0!==e)return{x:n,y:r,level:e>o?o:e-1}}w.initialize=function(){let t=w._initPromise;return g(t)||(t=xe.fetchJson(Ne("Assets/approximateTerrainHeights.json")).then((function(t){w._terrainHeights=t})),w._initPromise=t),t},w.getMinimumMaximumHeights=function(e,n){if(et.defined("rectangle",e),!g(w._terrainHeights))throw new St("You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function");n=O(n,z.default);let r=Ae(e),i=w._defaultMinTerrainHeight,a=w._defaultMaxTerrainHeight;if(g(r)){let o=`${r.level}-${r.x}-${r.y}`,l=w._terrainHeights[o];g(l)&&(i=l[0],a=l[1]),n.cartographicToCartesian(U.northeast(e,ke),Ie),n.cartographicToCartesian(U.southwest(e,ke),He),t.midpoint(He,Ie,ee);let s=n.scaleToGeodeticSurface(ee,hn);if(g(s)){let e=t.distance(ee,s);i=Math.min(i,-e)}else i=w._defaultMinTerrainHeight}return i=Math.max(w._defaultMinTerrainHeight,i),{minimumTerrainHeight:i,maximumTerrainHeight:a}},w.getBoundingSphere=function(t,e){if(et.defined("rectangle",t),!g(w._terrainHeights))throw new St("You must call ApproximateTerrainHeights.initialize and wait for the promise to resolve before using this function");e=O(e,z.default);let n=Ae(t),r=w._defaultMaxTerrainHeight;if(g(n)){let t=`${n.level}-${n.x}-${n.y}`,e=w._terrainHeights[t];g(e)&&(r=e[1])}let i=G.fromRectangle3D(t,e,0);return G.fromRectangle3D(t,e,r,ye),G.union(i,ye,i)},w._terrainHeightsMaxLevel=6,w._defaultMaxTerrainHeight=9e3,w._defaultMinTerrainHeight=-1e5,w._terrainHeights=void 0,w._initPromise=void 0,Object.defineProperties(w,{initialized:{get:function(){return g(w._terrainHeights)}}});var Xt=w,le=[bt,_e],dn=le.length,Ke=Math.cos(p.toRadians(30)),Me=Math.cos(p.toRadians(150)),Qe=0,tn=1e3;function ct(t){t=O(t,O.EMPTY_OBJECT);let e=t.positions;if(!g(e)||e.length<2)throw new St("At least two positions are required.");if(g(t.arcType)&&t.arcType!==Z.GEODESIC&&t.arcType!==Z.RHUMB)throw new St("Valid options for arcType are ArcType.GEODESIC and ArcType.RHUMB.");this.width=O(t.width,1),this._positions=e,this.granularity=O(t.granularity,9999),this.loop=O(t.loop,!1),this.arcType=O(t.arcType,Z.GEODESIC),this._ellipsoid=z.default,this._projectionIndex=0,this._workerName="createGroundPolylineGeometry",this._scene3DOnly=!1}Object.defineProperties(ct.prototype,{packedLength:{get:function(){return 1+3*this._positions.length+1+1+1+z.packedLength+1+1}}}),ct.setProjectionAndEllipsoid=function(t,e){let n=0;for(let r=0;r<dn;r++)if(e instanceof le[r]){n=r;break}t._projectionIndex=n,t._ellipsoid=e.ellipsoid};var fn=new t,Re=new t,Pe=new t;function se(e,n,r,i,a){let o=P(i,e,0,fn),l=P(i,e,r,Re),s=P(i,n,0,Pe),u=nt(l,o,Re),c=nt(s,o,Pe);return t.cross(c,u,a),t.normalize(a,a)}var mn=new u,gn=new t,un=new t,wn=new t;function ne(e,n,r,i,a,o,l,s,u,c,p){if(0===a)return;let h;o===Z.GEODESIC?h=new Oe(e,n,l):o===Z.RHUMB&&(h=new te(e,n,l));let g=h.surfaceDistance;if(g<a)return;let d=se(e,n,i,l,wn),f=Math.ceil(g/a),w=g/f,m=w,y=f-1,O=s.length;for(let T=0;T<y;T++){let e=h.interpolateUsingSurfaceDistance(m,mn),n=P(l,e,r,gn),a=P(l,e,i,un);t.pack(d,s,O),t.pack(n,u,O),t.pack(a,c,O),p.push(e.latitude),p.push(e.longitude),O+=3,m+=w}}var oe=new u;function P(t,e,n,r){return u.clone(e,oe),oe.height=n,u.toCartesian(oe,t,r)}function nt(e,n,r){return t.subtract(e,n,r),t.normalize(r,r),r}function be(e,n,r,i){return i=nt(e,n,i),i=t.cross(i,r,i),i=t.normalize(i,i),i=t.cross(r,i,i),i}ct.pack=function(e,n,r){et.typeOf.object("value",e),et.defined("array",n);let i=O(r,0),a=e._positions,o=a.length;n[i++]=o;for(let l=0;l<o;++l){let e=a[l];t.pack(e,n,i),i+=3}return n[i++]=e.granularity,n[i++]=e.loop?1:0,n[i++]=e.arcType,z.pack(e._ellipsoid,n,i),i+=z.packedLength,n[i++]=e._projectionIndex,n[i++]=e._scene3DOnly?1:0,n},ct.unpack=function(e,n,r){et.defined("array",e);let i=O(n,0),a=e[i++],o=new Array(a);for(let g=0;g<a;g++)o[g]=t.unpack(e,i),i+=3;let l=e[i++],s=1===e[i++],u=e[i++],c=z.unpack(e,i);i+=z.packedLength;let p=e[i++],h=1===e[i++];return g(r)||(r=new ct({positions:o})),r._positions=o,r.granularity=l,r.loop=s,r.arcType=u,r._ellipsoid=c,r._projectionIndex=p,r._scene3DOnly=h,r};var Sn=new t,Tn=new t,En=new t,en=new t,xn=0,Nn=-1;function ie(e,n,r,i,a){let o=nt(r,n,en),l=be(e,n,o,Sn),s=be(i,n,o,Tn);if(p.equalsEpsilon(t.dot(l,s),Nn,p.EPSILON5))return a=t.cross(o,l,a),a=t.normalize(a,a),a;a=t.add(s,l,a),a=t.normalize(a,a);let u=t.cross(o,a,En);return t.dot(s,u)<xn&&(a=t.negate(a,a)),a}var Gt=jt.fromPointNormal(t.ZERO,t.UNIT_Y),Cn=new t,_n=new t,Ln=new t,On=new t,Dn=new t,Yt=new t,Ft=new u,ve=new u,Be=new u;ct.createGeometry=function(e){let n,r,i=!e._scene3DOnly,a=e.loop,o=e._ellipsoid,l=e.granularity,s=e.arcType,c=new le[e._projectionIndex](o),h=Qe,d=tn,f=e._positions,w=f.length;2===w&&(a=!1);let m,y,O,T,_,k,E,L=new te(void 0,void 0,o),I=[f[0]];for(r=0;r<w-1;r++)m=f[r],y=f[r+1],_=Qt.lineSegmentPlane(m,y,Gt,Yt),g(_)&&!t.equalsEpsilon(_,m,p.EPSILON7)&&!t.equalsEpsilon(_,y,p.EPSILON7)&&(e.arcType===Z.GEODESIC?I.push(t.clone(_)):e.arcType===Z.RHUMB&&(E=o.cartesianToCartographic(_,Ft).longitude,O=o.cartesianToCartographic(m,Ft),T=o.cartesianToCartographic(y,ve),L.setEndPoints(O,T),k=L.findIntersectionWithLongitude(E,Be),_=o.cartographicToCartesian(k,Yt),g(_)&&!t.equalsEpsilon(_,m,p.EPSILON7)&&!t.equalsEpsilon(_,y,p.EPSILON7)&&I.push(t.clone(_)))),I.push(y);a&&(m=f[w-1],y=f[0],_=Qt.lineSegmentPlane(m,y,Gt,Yt),g(_)&&!t.equalsEpsilon(_,m,p.EPSILON7)&&!t.equalsEpsilon(_,y,p.EPSILON7)&&(e.arcType===Z.GEODESIC?I.push(t.clone(_)):e.arcType===Z.RHUMB&&(E=o.cartesianToCartographic(_,Ft).longitude,O=o.cartesianToCartographic(m,Ft),T=o.cartesianToCartographic(y,ve),L.setEndPoints(O,T),k=L.findIntersectionWithLongitude(E,Be),_=o.cartographicToCartesian(k,Yt),g(_)&&!t.equalsEpsilon(_,m,p.EPSILON7)&&!t.equalsEpsilon(_,y,p.EPSILON7)&&I.push(t.clone(_)))));let b=I.length,v=new Array(b);for(r=0;r<b;r++){let t=u.fromCartesian(I[r],o);t.height=0,v[r]=t}if(v=Le(v,u.equalsEpsilon),b=v.length,b<2)return;let D=[],S=[],A=[],j=[],z=Cn,H=_n,N=Ln,x=On,C=Dn,M=v[0],G=v[1],U=v[b-1];for(z=P(o,U,h,z),x=P(o,G,h,x),H=P(o,M,h,H),N=P(o,M,d,N),C=a?ie(z,H,N,x,C):se(M,G,d,o,C),t.pack(C,S,0),t.pack(H,A,0),t.pack(N,j,0),D.push(M.latitude),D.push(M.longitude),ne(M,G,h,d,l,s,o,S,A,j,D),r=1;r<b-1;++r){z=t.clone(H,z),H=t.clone(x,H);let e=v[r];P(o,e,d,N),P(o,v[r+1],h,x),ie(z,H,N,x,C),n=S.length,t.pack(C,S,n),t.pack(H,A,n),t.pack(N,j,n),D.push(e.latitude),D.push(e.longitude),ne(v[r],v[r+1],h,d,l,s,o,S,A,j,D)}let R=v[b-1],Y=v[b-2];if(H=P(o,R,h,H),N=P(o,R,d,N),a){let t=v[0];z=P(o,Y,h,z),x=P(o,t,h,x),C=ie(z,H,N,x,C)}else C=se(Y,R,d,o,C);if(n=S.length,t.pack(C,S,n),t.pack(H,A,n),t.pack(N,j,n),D.push(R.latitude),D.push(R.longitude),a){for(ne(R,M,h,d,l,s,o,S,A,j,D),n=S.length,r=0;r<3;++r)S[n+r]=S[r],A[n+r]=A[r],j[n+r]=j[r];D.push(M.latitude),D.push(M.longitude)}return Qn(a,c,A,j,S,D,i)};var In=new t,Hn=new vt,kn=new Kt;function ze(e,n,r,i){let a=nt(r,n,In),o=t.dot(a,e);if(o>Ke||o<Me){let t=nt(i,r,en),n=o<Me?p.PI_OVER_TWO:-p.PI_OVER_TWO,a=Kt.fromAxisAngle(t,n,kn),l=vt.fromQuaternion(a,Hn);return vt.multiplyByVector(l,e,e),!0}return!1}var je=new u,yn=new t,Xe=new t;function Dt(e,n,r,i,a){let o=u.toCartesian(n,e._ellipsoid,yn),l=t.add(o,r,Xe),s=!1,c=e._ellipsoid,h=c.cartesianToCartographic(l,je);Math.abs(n.longitude-h.longitude)>p.PI_OVER_TWO&&(s=!0,l=t.subtract(o,r,Xe),h=c.cartesianToCartographic(l,je)),h.height=0;let g=e.project(h,a);return a=t.subtract(g,i,a),a.z=0,a=t.normalize(a,a),s&&t.negate(a,a),a}var An=new t,Ye=new t;function Fe(e,n,r,i,a,o){let l=t.subtract(n,e,An);t.normalize(l,l);let s=r-Qe,u=t.multiplyByScalar(l,s,Ye);t.add(e,u,a);let c=i-tn;u=t.multiplyByScalar(l,c,Ye),t.add(n,u,o)}var Mn=new t;function Ut(e,n){let r=jt.getPointDistance(Gt,e),i=jt.getPointDistance(Gt,n),a=Mn;p.equalsEpsilon(r,0,p.EPSILON2)?(a=nt(n,e,a),t.multiplyByScalar(a,p.EPSILON2,a),t.add(e,a,e)):p.equalsEpsilon(i,0,p.EPSILON2)&&(a=nt(e,n,a),t.multiplyByScalar(a,p.EPSILON2,a),t.add(n,a,n))}function Rn(t,e){let n=Math.abs(t.longitude),r=Math.abs(e.longitude);if(p.equalsEpsilon(n,p.PI,p.EPSILON11)){let r=p.sign(e.longitude);return t.longitude=r*(n-p.EPSILON11),1}if(p.equalsEpsilon(r,p.PI,p.EPSILON11)){let n=p.sign(t.longitude);return e.longitude=n*(r-p.EPSILON11),2}return 0}var nn=new u,on=new u,Ue=new t,re=new t,Ge=new t,qe=new t,Pn=new t,We=new t,bn=[nn,on],vn=new U,Bn=new t,zn=new t,jn=new t,Xn=new t,Yn=new t,Fn=new t,ae=new t,ce=new t,Un=new t,Gn=new t,qn=new t,Ze=new t,Wn=new t,Zn=new t,Vn=new _t,$n=new _t,Ve=new t,Jn=new t,$e=new t,Kn=[new G,new G],rn=[0,2,1,0,3,2,0,7,3,0,4,7,0,5,4,0,1,5,5,7,4,5,6,7,5,2,6,5,1,2,3,6,2,3,7,6],Je=rn.length;function Qn(e,n,r,i,a,o,l){let s,u,c,h,g,d,f=n._ellipsoid,w=r.length/3-1,m=8*w,y=4*m,O=36*w,T=m>65535?new Uint32Array(O):new Uint16Array(O),P=new Float64Array(3*m),_=new Float32Array(y),k=new Float32Array(y),E=new Float32Array(y),L=new Float32Array(y),I=new Float32Array(y);l&&(c=new Float32Array(y),h=new Float32Array(y),g=new Float32Array(y),d=new Float32Array(2*m));let b=o.length/2,v=0,D=nn;D.height=0;let S=on;S.height=0;let A=Ue,j=re;if(l)for(u=0,s=1;s<b;s++)D.latitude=o[u],D.longitude=o[u+1],S.latitude=o[u+2],S.longitude=o[u+3],A=n.project(D,A),j=n.project(S,j),v+=t.distance(A,j),u+=2;let z=i.length/3;j=t.unpack(i,0,j);let H,N=0;for(u=3,s=1;s<z;s++)A=t.clone(j,A),j=t.unpack(i,u,j),N+=t.distance(A,j),u+=3;u=3;let x=0,C=0,M=0,R=0,Y=!1,F=t.unpack(r,0,qe),B=t.unpack(i,0,re),Z=t.unpack(a,0,We);if(e){let e=t.unpack(r,r.length-6,Ge);ze(Z,e,F,B)&&(Z=t.negate(Z,Z))}let X=0,q=0,V=0;for(s=0;s<w;s++){let e,s,w,m,y=t.clone(F,Ge),O=t.clone(B,Ue),T=t.clone(Z,Pn);if(Y&&(T=t.negate(T,T)),F=t.unpack(r,u,qe),B=t.unpack(i,u,re),Z=t.unpack(a,u,We),Y=ze(Z,y,F,B),D.latitude=o[x],D.longitude=o[x+1],S.latitude=o[x+2],S.longitude=o[x+3],l){let r=Rn(D,S);e=n.project(D,Yn),s=n.project(S,Fn);let i=nt(s,e,Ve);i.y=Math.abs(i.y),w=ae,m=ce,0===r||t.dot(i,t.UNIT_Y)>Ke?(w=Dt(n,D,T,e,ae),m=Dt(n,S,Z,s,ce)):1===r?(m=Dt(n,S,Z,s,ce),w.x=0,w.y=p.sign(D.longitude-Math.abs(S.longitude)),w.z=0):(w=Dt(n,D,T,e,ae),m.x=0,m.y=p.sign(D.longitude-S.longitude),m.z=0)}let b=t.distance(O,B),A=_t.fromCartesian(y,Vn),j=t.subtract(F,y,Un),z=t.normalize(j,Ze),G=t.subtract(O,y,Gn);G=t.normalize(G,G);let W=t.cross(z,G,Ze);W=t.normalize(W,W);let J=t.cross(G,T,Wn);J=t.normalize(J,J);let K=t.subtract(B,F,qn);K=t.normalize(K,K);let Q=t.cross(Z,K,Zn);Q=t.normalize(Q,Q);let $,tt,et,rt=b/N,it=X/N,at=0,ot=0,lt=0;if(l){at=t.distance(e,s),$=_t.fromCartesian(e,$n),tt=t.subtract(s,e,Ve),et=t.normalize(tt,Jn);let n=et.x;et.x=et.y,et.y=-n,ot=at/v,lt=q/v}for(H=0;H<8;H++){let e=R+4*H,n=C+2*H,r=e+3,i=H<4?1:-1,a=2===H||3===H||6===H||7===H?1:-1;t.pack(A.high,_,e),_[r]=j.x,t.pack(A.low,k,e),k[r]=j.y,t.pack(J,E,e),E[r]=j.z,t.pack(Q,L,e),L[r]=rt*i,t.pack(W,I,e);let o=it*a;0===o&&a<0&&(o=9),I[r]=o,l&&(c[e]=$.high.x,c[e+1]=$.high.y,c[e+2]=$.low.x,c[e+3]=$.low.y,g[e]=-w.y,g[e+1]=w.x,g[e+2]=m.y,g[e+3]=-m.x,h[e]=tt.x,h[e+1]=tt.y,h[e+2]=et.x,h[e+3]=et.y,d[n]=ot*i,o=lt*a,0===o&&a<0&&(o=9),d[n+1]=o)}let st=jn,ut=Xn,ct=Bn,pt=zn,ht=U.fromCartographicArray(bn,vn),gt=Xt.getMinimumMaximumHeights(ht,f),dt=gt.minimumTerrainHeight,ft=gt.maximumTerrainHeight;V+=Math.abs(dt),V+=Math.abs(ft),Fe(y,O,dt,ft,st,ct),Fe(F,B,dt,ft,ut,pt);let wt=t.multiplyByScalar(W,p.EPSILON5,$e);t.add(st,wt,st),t.add(ut,wt,ut),t.add(ct,wt,ct),t.add(pt,wt,pt),Ut(st,ut),Ut(ct,pt),t.pack(st,P,M),t.pack(ut,P,M+3),t.pack(pt,P,M+6),t.pack(ct,P,M+9),wt=t.multiplyByScalar(W,-2*p.EPSILON5,$e),t.add(st,wt,st),t.add(ut,wt,ut),t.add(ct,wt,ct),t.add(pt,wt,pt),Ut(st,ut),Ut(ct,pt),t.pack(st,P,M+12),t.pack(ut,P,M+15),t.pack(pt,P,M+18),t.pack(ct,P,M+21),x+=2,u+=3,C+=16,M+=24,R+=32,X+=b,q+=at}u=0;let W=0;for(s=0;s<w;s++){for(H=0;H<Je;H++)T[u+H]=rn[H]+W;W+=8,u+=Je}let J=Kn;G.fromVertices(r,t.ZERO,3,J[0]),G.fromVertices(i,t.ZERO,3,J[1]);let K=G.fromBoundingSpheres(J);K.radius+=V/(2*w);let Q={position:new zt({componentDatatype:Bt.DOUBLE,componentsPerAttribute:3,normalize:!1,values:P}),startHiAndForwardOffsetX:at(_),startLoAndForwardOffsetY:at(k),startNormalAndForwardOffsetZ:at(E),endNormalAndTextureCoordinateNormalizationX:at(L),rightNormalAndTextureCoordinateNormalizationY:at(I)};return l&&(Q.startHiLo2D=at(c),Q.offsetAndRight2D=at(h),Q.startEndNormals2D=at(g),Q.texcoordNormalization2D=new zt({componentDatatype:Bt.FLOAT,componentsPerAttribute:2,normalize:!1,values:d})),new Ce({attributes:Q,indices:T,boundingSphere:K})}function at(t){return new zt({componentDatatype:Bt.FLOAT,componentsPerAttribute:4,normalize:!1,values:t})}ct._projectNormal=Dt;var he=ct;function to(t,e){return Xt.initialize().then((function(){return g(e)&&(t=he.unpack(t,e)),he.createGeometry(t)}))}var ti=to;export{ti as default};