/** * SmartEarth WebSDK - https://websdk.terra-it.cn * Version 5.3.1 */ import{a as M}from"./chunk-LH5VIH3W.js";import{a as ht}from"./chunk-KHYDR4FN.js";import"./chunk-WGRWYGAM.js";import"./chunk-5B7R4ODL.js";import{a as _t}from"./chunk-55FFQILS.js";import{a as G}from"./chunk-WF3WCQMH.js";import"./chunk-P5SE5XVC.js";import"./chunk-ZPRLAWII.js";import{b as yt}from"./chunk-IRIBHMN7.js";import{a as Pt}from"./chunk-A6RR2BLJ.js";import"./chunk-EPQZOCRV.js";import"./chunk-BUR4N7VJ.js";import"./chunk-33CJ2NM7.js";import{a as Nt}from"./chunk-ZDNS2GYV.js";import{a as Ct}from"./chunk-LH4TAMBV.js";import{b as Mt,c as Vt,d as x}from"./chunk-TNSV6TPX.js";import{d as St}from"./chunk-QHUUGFLC.js";import{i as Et}from"./chunk-BHJLM5NY.js";import{a as F}from"./chunk-3LWOQSP3.js";import{b as o,c as bt,e as I}from"./chunk-7DK7KB7Q.js";import{a as st}from"./chunk-JSZDCKFG.js";import"./chunk-YGIPMXAD.js";import"./chunk-54HAFFPJ.js";import{a as B}from"./chunk-5HWP5DW7.js";import{b as it}from"./chunk-INT7THOB.js";import{e as X}from"./chunk-PPCZYYBW.js";var zt=new o,kt=new o,wt=new o,Tt=new o,jt=new o,Ht=new o,at=new o,ft=new o;function Ut(t,e){for(let i=0;ik;n--)N=st.PI_OVER_TWO-n*U,c[L++]=1-$*(1+Math.cos(N)),c[L++]=.5*(1+Math.sin(N));for(n=k;n>0;n--)N=st.PI_OVER_TWO-U*n,c[L++]=1-v*(1+Math.cos(N)),c[L++]=.5*(1+Math.sin(N));for(n=a-p;n>0;n--)c[L++]=n*v,c[L++]=1;for(n=1;n0;n--)c[L++]=(n-1)*v,c[L++]=1}g.st=new x({componentDatatype:F.FLOAT,componentsPerAttribute:2,values:c})}return e.normal&&(g.normal=new x({componentDatatype:F.FLOAT,componentsPerAttribute:3,values:z.normals})),e.tangent&&(g.tangent=new x({componentDatatype:F.FLOAT,componentsPerAttribute:3,values:z.tangents})),e.bitangent&&(g.bitangent=new x({componentDatatype:F.FLOAT,componentsPerAttribute:3,values:z.bitangents})),{attributes:g,indices:_}}function qt(t,e){if(!e.normal&&!e.tangent&&!e.bitangent&&!e.st)return t;let i=t.position.values,l,d;(e.normal||e.bitangent)&&(l=t.normal.values,d=t.bitangent.values);let f=t.position.values.length/18,h=f*3,O=f*2,g=h*2,r;if(e.normal||e.bitangent||e.tangent){let a=e.normal?new Float32Array(h*6):void 0,s=e.tangent?new Float32Array(h*6):void 0,n=e.bitangent?new Float32Array(h*6):void 0,A=zt,u=kt,b=wt,p=Tt,R=jt,m=Ht,C=g;for(r=0;r