/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.140.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 z1}from"./chunk-422SYBQS.js";import{a as L,b as u,c as j1}from"./chunk-XXWWJ3QU.js";import{a as F}from"./chunk-N6SIW7ZL.js";import{a as g,b as p}from"./chunk-K35RPNUR.js";import{e as U}from"./chunk-RTRJ3LVQ.js";var P=class c{constructor(n,o,y,O){this.x=n??0,this.y=o??0,this.z=y??0,this.w=O??0}static fromElements(n,o,y,O,f){return U(f)?(f.x=n,f.y=o,f.z=y,f.w=O,f):new c(n,o,y,O)}static fromColor(n,o){return p.typeOf.object("color",n),U(o)?(o.x=n.red,o.y=n.green,o.z=n.blue,o.w=n.alpha,o):new c(n.red,n.green,n.blue,n.alpha)}static clone(n,o){if(U(n))return U(o)?(o.x=n.x,o.y=n.y,o.z=n.z,o.w=n.w,o):new c(n.x,n.y,n.z,n.w)}static pack(n,o,y){return p.typeOf.object("value",n),p.defined("array",o),y=y??0,o[y++]=n.x,o[y++]=n.y,o[y++]=n.z,o[y]=n.w,o}static unpack(n,o,y){return p.defined("array",n),o=o??0,U(y)||(y=new c),y.x=n[o++],y.y=n[o++],y.z=n[o++],y.w=n[o],y}static packArray(n,o){p.defined("array",n);let y=n.length,O=y*4;if(!U(o))o=new Array(O);else{if(!Array.isArray(o)&&o.length!==O)throw new g("If result is a typed array, it must have exactly array.length * 4 elements");o.length!==O&&(o.length=O)}for(let f=0;f