/**
 * @license
 * Cesium - https://github.com/CesiumGS/cesium
 * Version 1.122
 *
 * 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-ZPNGL6DU.js";import{a as Z}from"./chunk-6X7WLTTW.js";import{a as _t}from"./chunk-QTX6TFJQ.js";import{a as Oe}from"./chunk-ZYB4DKDQ.js";import{a as Le}from"./chunk-ZIUWYBT3.js";import{a as te}from"./chunk-45FCQ3FJ.js";import{b as Qt}from"./chunk-354SKS6C.js";import{a as jt}from"./chunk-H5GL2A6Z.js";import{c as Ce,d as zt}from"./chunk-N72XKOXM.js";import{a as bt,d as G}from"./chunk-EWTFJ46X.js";import{d as xe,e as Ne,f as Kt,i as U}from"./chunk-5IUXF6I3.js";import{a as Bt}from"./chunk-27UWHT4D.js";import{a as t,b as u,c as Pt,d as z,e as vt}from"./chunk-RFPX772U.js";import{a as p}from"./chunk-RAYRECQS.js";import"./chunk-2NAI7YQ3.js";import"./chunk-QE3ZUOZY.js";import{a as O}from"./chunk-6KLVDWWE.js";import{a as St,b as et}from"./chunk-6P5KAIBX.js";import{e as g}from"./chunk-4FSVUTPL.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){let e=(t=O(t,O.EMPTY_OBJECT)).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 t=0;t<dn;t++)if(e instanceof le[t]){n=t;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 e=0;e<y;e++){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)}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 e=0;e<o;++e){let r=a[e];t.pack(r,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 n=0;n<a;n++)o[n]=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=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),b=[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?b.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)&&b.push(t.clone(_)))),b.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?b.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)&&b.push(t.clone(_)))));let v=b.length,A=new Array(v);for(r=0;r<v;r++){let t=u.fromCartesian(b[r],o);t.height=0,A[r]=t}if(A=Le(A,u.equalsEpsilon),v=A.length,v<2)return;let I=[],S=[],j=[],z=[],D=Cn,N=_n,x=Ln,H=On,M=Dn,U=A[0],C=A[1];for(D=P(o,A[v-1],h,D),H=P(o,C,h,H),N=P(o,U,h,N),x=P(o,U,d,x),M=a?ie(D,N,x,H,M):se(U,C,d,o,M),t.pack(M,S,0),t.pack(N,j,0),t.pack(x,z,0),I.push(U.latitude),I.push(U.longitude),ne(U,C,h,d,l,s,o,S,j,z,I),r=1;r<v-1;++r){D=t.clone(N,D),N=t.clone(H,N);let e=A[r];P(o,e,d,x),P(o,A[r+1],h,H),ie(D,N,x,H,M),n=S.length,t.pack(M,S,n),t.pack(N,j,n),t.pack(x,z,n),I.push(e.latitude),I.push(e.longitude),ne(A[r],A[r+1],h,d,l,s,o,S,j,z,I)}let Y=A[v-1],G=A[v-2];if(N=P(o,Y,h,N),x=P(o,Y,d,x),a){let t=A[0];D=P(o,G,h,D),H=P(o,t,h,H),M=ie(D,N,x,H,M)}else M=se(G,Y,d,o,M);if(n=S.length,t.pack(M,S,n),t.pack(N,j,n),t.pack(x,z,n),I.push(Y.latitude),I.push(Y.longitude),a){for(ne(Y,U,h,d,l,s,o,S,j,z,I),n=S.length,r=0;r<3;++r)S[n+r]=S[r],j[n+r]=j[r],z[n+r]=z[r];I.push(U.latitude),I.push(U.longitude)}return Qn(a,c,j,z,S,I,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)).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),_=new Float64Array(3*m),k=new Float32Array(y),P=new Float32Array(y),E=new Float32Array(y),L=new Float32Array(y),b=new Float32Array(y);l&&(c=new Float32Array(y),h=new Float32Array(y),g=new Float32Array(y),d=new Float32Array(2*m));let v=o.length/2,A=0,I=nn;I.height=0;let S=on;S.height=0;let j=Ue,z=re;if(l)for(u=0,s=1;s<v;s++)I.latitude=o[u],I.longitude=o[u+1],S.latitude=o[u+2],S.longitude=o[u+3],j=n.project(I,j),z=n.project(S,z),A+=t.distance(j,z),u+=2;let D=i.length/3;z=t.unpack(i,0,z);let N,x=0;for(u=3,s=1;s<D;s++)j=t.clone(z,j),z=t.unpack(i,u,z),x+=t.distance(j,z),u+=3;u=3;let H=0,M=0,C=0,Y=0,F=!1,R=t.unpack(r,0,qe),Z=t.unpack(i,0,re),X=t.unpack(a,0,We);if(e){ze(X,t.unpack(r,r.length-6,Ge),R,Z)&&(X=t.negate(X,X))}let B=0,q=0,W=0;for(s=0;s<w;s++){let e,s,w,m,y=t.clone(R,Ge),O=t.clone(Z,Ue),T=t.clone(X,Pn);if(F&&(T=t.negate(T,T)),R=t.unpack(r,u,qe),Z=t.unpack(i,u,re),X=t.unpack(a,u,We),F=ze(X,y,R,Z),I.latitude=o[H],I.longitude=o[H+1],S.latitude=o[H+2],S.longitude=o[H+3],l){let r=Rn(I,S);e=n.project(I,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,I,T,e,ae),m=Dt(n,S,X,s,ce)):1===r?(m=Dt(n,S,X,s,ce),w.x=0,w.y=p.sign(I.longitude-Math.abs(S.longitude)),w.z=0):(w=Dt(n,I,T,e,ae),m.x=0,m.y=p.sign(I.longitude-S.longitude),m.z=0)}let v=t.distance(O,Z),j=_t.fromCartesian(y,Vn),z=t.subtract(R,y,Un),D=t.normalize(z,Ze),G=t.subtract(O,y,Gn);G=t.normalize(G,G);let Q=t.cross(D,G,Ze);Q=t.normalize(Q,Q);let V=t.cross(G,T,Wn);V=t.normalize(V,V);let K=t.subtract(Z,R,qn);K=t.normalize(K,K);let J=t.cross(X,K,Zn);J=t.normalize(J,J);let $,tt,et,rt=v/x,it=B/x,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/A,lt=q/A}for(N=0;N<8;N++){let e=Y+4*N,n=M+2*N,r=e+3,i=N<4?1:-1,a=2===N||3===N||6===N||7===N?1:-1;t.pack(j.high,k,e),k[r]=z.x,t.pack(j.low,P,e),P[r]=z.y,t.pack(V,E,e),E[r]=z.z,t.pack(J,L,e),L[r]=rt*i,t.pack(Q,b,e);let o=it*a;0===o&&a<0&&(o=9),b[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;W+=Math.abs(dt),W+=Math.abs(ft),Fe(y,O,dt,ft,st,ct),Fe(R,Z,dt,ft,ut,pt);let wt=t.multiplyByScalar(Q,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,_,C),t.pack(ut,_,C+3),t.pack(pt,_,C+6),t.pack(ct,_,C+9),wt=t.multiplyByScalar(Q,-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,_,C+12),t.pack(ut,_,C+15),t.pack(pt,_,C+18),t.pack(ct,_,C+21),H+=2,u+=3,M+=16,C+=24,Y+=32,B+=v,q+=at}u=0;let Q=0;for(s=0;s<w;s++){for(N=0;N<Je;N++)T[u+N]=rn[N]+Q;Q+=8,u+=Je}let V=Kn;G.fromVertices(r,t.ZERO,3,V[0]),G.fromVertices(i,t.ZERO,3,V[1]);let K=G.fromBoundingSpheres(V);K.radius+=W/(2*w);let J={position:new zt({componentDatatype:Bt.DOUBLE,componentsPerAttribute:3,normalize:!1,values:_}),startHiAndForwardOffsetX:at(k),startLoAndForwardOffsetY:at(P),startNormalAndForwardOffsetZ:at(E),endNormalAndTextureCoordinateNormalizationX:at(L),rightNormalAndTextureCoordinateNormalizationY:at(b)};return l&&(J.startHiLo2D=at(c),J.offsetAndRight2D=at(h),J.startEndNormals2D=at(g),J.texcoordNormalization2D=new zt({componentDatatype:Bt.FLOAT,componentsPerAttribute:2,normalize:!1,values:d})),new Ce({attributes:J,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};