/** * @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}from"./chunk-BXPFAIYZ.js";import{a as P}from"./chunk-ITSDUOWL.js";import{a as F}from"./chunk-LUECBOIT.js";import{a as V}from"./chunk-VELRZYUL.js";import"./chunk-FYQCPFNB.js";import"./chunk-3R3BCVRR.js";import{a as C}from"./chunk-YNBY2HFD.js";import{a as M}from"./chunk-C4NHPSO2.js";import"./chunk-WTIPXHS3.js";import{a as W,b as D}from"./chunk-IPQQ2USK.js";import"./chunk-RH3WVPDR.js";import"./chunk-MUI5QV7K.js";import"./chunk-H6AHPUMX.js";import"./chunk-FMWRN5G2.js";import{a as G}from"./chunk-RU2T2U4O.js";import{a as B}from"./chunk-VZ4ER5HI.js";import{b as U,c as S,d as w}from"./chunk-LTHJTGXC.js";import{c as x}from"./chunk-XEBZTQHW.js";import"./chunk-6LZUEMFX.js";import"./chunk-AZCCS55A.js";import"./chunk-V74K6IQF.js";import{a as T}from"./chunk-5HZ2G332.js";import"./chunk-LKQXJXNV.js";import"./chunk-VXS2FTO4.js";import{c as y}from"./chunk-ZQTDDQLY.js";import{a as v,c as j}from"./chunk-U4VWQPTS.js";import{a as L}from"./chunk-GZABERXA.js";import{a as N,b as O}from"./chunk-WM6AKY6B.js";import{f as E}from"./chunk-6K4BWAPV.js";var Y=[],k=[];function K(e,t,r,b,l){let p=M.fromPoints(t,e).projectPointsOntoPlane(t,Y);D.computeWindingOrder2D(p)===W.CLOCKWISE&&(p.reverse(),t=t.slice().reverse());let n,i,o=t.length,c=0;if(b)for(n=new Float64Array(o*2*3),i=0;i