/** * SmartEarth WebSDK - https://websdk.terra-it.cn * Version 5.4.1 */ import{a as G}from"./chunk-YME4CS4F.js";import{a as z}from"./chunk-TWEYJPY7.js";import{b as B}from"./chunk-5HPENZ6M.js";import{a as C}from"./chunk-SY6XZLBE.js";import{b as L}from"./chunk-RQCJJCAO.js";import{b as a,c as D,e as I}from"./chunk-UMC5CP2H.js";import{a as S}from"./chunk-72V3KRTJ.js";import{a as x}from"./chunk-VJ26MOOM.js";import{e as T}from"./chunk-E3YQ3WWZ.js";var p={};p.numberOfPoints=function(r,n,o){let e=a.distance(r,n);return Math.ceil(e/o)};p.numberOfPointsRhumbLine=function(r,n,o){let e=Math.pow(r.longitude-n.longitude,2)+Math.pow(r.latitude-n.latitude,2);return Math.max(1,Math.ceil(Math.sqrt(e/(o*o))))};var Z=new D;p.extractHeights=function(r,n){let o=r.length,e=new Array(o);for(let t=0;t0){n=n??L.IDENTITY;let t=L.inverseTransformation(n,Y),l=L.multiplyByPoint(t,a.ZERO,V),u=a.normalize(L.multiplyByPointAsVector(t,a.UNIT_Y,_),_),d=C.fromPointNormal(l,u,F),c=a.normalize(L.multiplyByPointAsVector(t,a.UNIT_X,v),v),w=C.fromPointNormal(l,c,j),h=1;o.push(a.clone(r[0]));let f=o[0],y=r.length;for(let g=1;g