/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.142.0 * * 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 R}from"./chunk-FXWI4VL7.js";import{a as y}from"./chunk-YNBY2HFD.js";import{b as z}from"./chunk-IPQQ2USK.js";import"./chunk-MUI5QV7K.js";import{a as q}from"./chunk-RU2T2U4O.js";import{a as F}from"./chunk-VZ4ER5HI.js";import{b as v,c as B,d as T}from"./chunk-LTHJTGXC.js";import{c as P}from"./chunk-XEBZTQHW.js";import"./chunk-6LZUEMFX.js";import{j as b}from"./chunk-AZCCS55A.js";import"./chunk-V74K6IQF.js";import{a as D}from"./chunk-5HZ2G332.js";import"./chunk-LKQXJXNV.js";import"./chunk-VXS2FTO4.js";import{a as U,c as w}from"./chunk-ZQTDDQLY.js";import{a as x,c as M}from"./chunk-U4VWQPTS.js";import{a as S}from"./chunk-GZABERXA.js";import{a as C}from"./chunk-WM6AKY6B.js";import{f as H}from"./chunk-6K4BWAPV.js";var j=new P,K=new P,Q=new x,W=new b;function Y(t,e){let i=t._ellipsoid,m=e.height,s=e.width,h=e.northCap,p=e.southCap,_=m,A=2,o=0,g=4;h&&(A-=1,_-=1,o+=1,g-=2),p&&(A-=1,_-=1,o+=1,g-=2),o+=A*s+2*_-g;let n=new Float64Array(o*3),l=0,f=0,a,r=Q;if(h)R.computePosition(e,i,!1,f,0,r),n[l++]=r.x,n[l++]=r.y,n[l++]=r.z;else for(a=0;a=0;a--)R.computePosition(e,i,!1,f,a,r),n[l++]=r.x,n[l++]=r.y,n[l++]=r.z;for(a=0,f=m-2;f>0;f--)R.computePosition(e,i,!1,f,a,r),n[l++]=r.x,n[l++]=r.y,n[l++]=r.z;let u=n.length/3*2,c=q.createTypedArray(n.length/3,u),E=0;for(let L=0;L