/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.137.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-6WLI3422.js";import{a as W,b as u,c as j1}from"./chunk-G2EMNOST.js";import{a as D}from"./chunk-4VFKVGYI.js";import{a as g,b as f}from"./chunk-3WJNS2B6.js";import{e as S}from"./chunk-XCN226AA.js";function j(n,o,c,y){this.x=n??0,this.y=o??0,this.z=c??0,this.w=y??0}j.fromElements=function(n,o,c,y,p){return S(p)?(p.x=n,p.y=o,p.z=c,p.w=y,p):new j(n,o,c,y)};j.fromColor=function(n,o){return f.typeOf.object("color",n),S(o)?(o.x=n.red,o.y=n.green,o.z=n.blue,o.w=n.alpha,o):new j(n.red,n.green,n.blue,n.alpha)};j.clone=function(n,o){if(S(n))return S(o)?(o.x=n.x,o.y=n.y,o.z=n.z,o.w=n.w,o):new j(n.x,n.y,n.z,n.w)};j.packedLength=4;j.pack=function(n,o,c){return f.typeOf.object("value",n),f.defined("array",o),c=c??0,o[c++]=n.x,o[c++]=n.y,o[c++]=n.z,o[c]=n.w,o};j.unpack=function(n,o,c){return f.defined("array",n),o=o??0,S(c)||(c=new j),c.x=n[o++],c.y=n[o++],c.z=n[o++],c.w=n[o],c};j.packArray=function(n,o){f.defined("array",n);let c=n.length,y=c*4;if(!S(o))o=new Array(y);else{if(!Array.isArray(o)&&o.length!==y)throw new g("If result is a typed array, it must have exactly array.length * 4 elements");o.length!==y&&(o.length=y)}for(let p=0;p