/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.109 * * 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 _t}from"./chunk-EHYESN44.js";import{a as D}from"./chunk-AJGH25BB.js";import{a as K}from"./chunk-6A32WNKQ.js";import{a as nt}from"./chunk-GSCCE6TP.js";import{a as yt}from"./chunk-GH2M3QEY.js";import"./chunk-YZMLQP2E.js";import"./chunk-BSOA334C.js";import{a as mt}from"./chunk-LQRZQ5E6.js";import{a as at}from"./chunk-YYCOBWZH.js";import{a as z}from"./chunk-M3OLDEEW.js";import{a as ct}from"./chunk-YTG33ZHK.js";import"./chunk-LLBHZLGF.js";import{a as ft,b as tt}from"./chunk-MUMMGJJL.js";import"./chunk-RUSF25XT.js";import"./chunk-Y5NK5HSS.js";import"./chunk-YYMHH3T4.js";import"./chunk-ATQXFTWF.js";import{a as st}from"./chunk-67OQHZOZ.js";import"./chunk-FUN3J34G.js";import{c as ut,d as q}from"./chunk-A4RD4IQP.js";import{d as dt,f as rt}from"./chunk-NNIY7VTE.js";import"./chunk-NX64RCXJ.js";import{c as ht,d as X}from"./chunk-5EDTRNG5.js";import{a as Q}from"./chunk-IO6LETQ6.js";import{a as u,b as $,c as V,d as k}from"./chunk-C6Y3PRDH.js";import{a as B}from"./chunk-LI57NJAL.js";import"./chunk-IBAO62UG.js";import"./chunk-3NARV6MR.js";import{a as w}from"./chunk-P44SUSQU.js";import{a as it,b as Y}from"./chunk-FUATUYJ3.js";import{e as A}from"./chunk-ODUTJJQ5.js";var Ht=new $,Pt=new $;function Et(t,e,o,r){let d=r.cartesianToCartographic(t,Ht).height,a=r.cartesianToCartographic(e,Pt);a.height=d,r.cartographicToCartesian(a,e);let l=r.cartesianToCartographic(o,Pt);l.height=d-100,r.cartographicToCartesian(l,o)}var Ot=new _t,xt=new u,Ct=new u,Rt=new u,Nt=new u,vt=new u,Dt=new u,lt=new u,j=new u,et=new u,Ft=new X,It=new X,Lt=new u,bt=new rt,St=new k,Bt=new k;function pt(t){let e=t.vertexFormat,o=t.geometry,r=t.shadowVolume,n=o.attributes.position.values,d=A(o.attributes.st)?o.attributes.st.values:void 0,a=n.length,l=t.wall,m=t.top||l,g=t.bottom||l;if(e.st||e.normal||e.tangent||e.bitangent||r){let p=t.boundingRectangle,i=t.tangentPlane,P=t.ellipsoid,C=t.stRotation,F=t.perPositionHeight,L=Ft;L.x=p.x,L.y=p.y;let R=e.st?new Float32Array(2*(a/3)):void 0,b;e.normal&&(F&&m&&!l?b=o.attributes.normal.values:b=new Float32Array(a));let c=e.tangent?new Float32Array(a):void 0,N=e.bitangent?new Float32Array(a):void 0,E=r?new Float32Array(a):void 0,O=0,h=0,y=Ct,s=Rt,_=Nt,H=!0,M=St,U=Bt;if(C!==0){let I=rt.fromAxisAngle(i._plane.normal,C,bt);M=k.fromQuaternion(I,M),I=rt.fromAxisAngle(i._plane.normal,-C,bt),U=k.fromQuaternion(I,U)}else M=k.clone(k.IDENTITY,M),U=k.clone(k.IDENTITY,U);let f=0,x=0;m&&g&&(f=a/2,x=a/3,a/=2);for(let I=0;IZ.eastOverIDL-Z.westOverIDL&&(n.west=Z.westOverIDL,n.east=Z.eastOverIDL,n.east>B.PI&&(n.east=n.east-B.TWO_PI),n.west>B.PI&&(n.west=n.west-B.TWO_PI)),n}var Mt=new $;function wt(t,e,o,r){let n=t.surfaceDistance,d=Math.ceil(n*e),a=d>0?n/(d-1):Number.POSITIVE_INFINITY,l=0;for(let m=0;m=0?p:p+B.TWO_PI;r.westOverIDL=Math.min(r.westOverIDL,P),r.eastOverIDL=Math.max(r.eastOverIDL,P)}}var Tt=[];function zt(t,e,o,r,n,d,a,l,m,g){let p={walls:[]},i;if(a||l){let c=D.createGeometryFromPositions(t,e,o,r,d,m,g),N=c.attributes.position.values,E=c.indices,O,h;if(a&&l){let y=N.concat(N);O=y.length/3,h=st.createTypedArray(O,E.length*2),h.set(E);let s=E.length,_=O/2;for(i=0;i