/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.115 * * 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 _}from"./chunk-A7LPWAU6.js";import{a as B,b as S}from"./chunk-UNVMUIJM.js";import{e as i}from"./chunk-WVB7XP3Q.js";var c,r={requestFullscreen:void 0,exitFullscreen:void 0,fullscreenEnabled:void 0,fullscreenElement:void 0,fullscreenchange:void 0,fullscreenerror:void 0},l={};Object.defineProperties(l,{element:{get:function(){if(l.supportsFullscreen())return document[r.fullscreenElement]}},changeEventName:{get:function(){if(l.supportsFullscreen())return r.fullscreenchange}},errorEventName:{get:function(){if(l.supportsFullscreen())return r.fullscreenerror}},enabled:{get:function(){if(l.supportsFullscreen())return document[r.fullscreenEnabled]}},fullscreen:{get:function(){if(l.supportsFullscreen())return l.element!==null}}});l.supportsFullscreen=function(){if(i(c))return c;c=!1;let e=document.body;if(typeof e.requestFullscreen=="function")return r.requestFullscreen="requestFullscreen",r.exitFullscreen="exitFullscreen",r.fullscreenEnabled="fullscreenEnabled",r.fullscreenElement="fullscreenElement",r.fullscreenchange="fullscreenchange",r.fullscreenerror="fullscreenerror",c=!0,c;let t=["webkit","moz","o","ms","khtml"],n;for(let p=0,M=t.length;p{let t=new Image;t.onload=function(){u._result=t.width>0&&t.height>0,e(u._result)},t.onerror=function(){u._result=!1,e(u._result)},t.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA"})),u._promise};Object.defineProperties(u,{initialized:{get:function(){return i(u._result)}}});var d=[];typeof ArrayBuffer<"u"&&(d.push(Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array),typeof Uint8ClampedArray<"u"&&d.push(Uint8ClampedArray),typeof Uint8ClampedArray<"u"&&d.push(Uint8ClampedArray),typeof BigInt64Array<"u"&&d.push(BigInt64Array),typeof BigUint64Array<"u"&&d.push(BigUint64Array));var f={isChrome:w,chromeVersion:T,isSafari:$,safariVersion:Q,isWebkit:q,webkitVersion:j,isInternetExplorer:O,internetExplorerVersion:J,isEdge:x,edgeVersion:Y,isFirefox:h,firefoxVersion:X,isWindows:G,isIPadOrIOS:K,hardwareConcurrency:_(s.hardwareConcurrency,3),supportsPointerEvents:H,supportsImageRenderingPixelated:z,supportsWebP:u,imageRenderingValue:L,typedArrayTypes:d};f.supportsBasis=function(e){return f.supportsWebAssembly()&&e.context.supportsBasis};f.supportsFullscreen=function(){return C.supportsFullscreen()};f.supportsTypedArrays=function(){return typeof ArrayBuffer<"u"};f.supportsBigInt64Array=function(){return typeof BigInt64Array<"u"};f.supportsBigUint64Array=function(){return typeof BigUint64Array<"u"};f.supportsBigInt=function(){return typeof BigInt<"u"};f.supportsWebWorkers=function(){return typeof Worker<"u"};f.supportsWebAssembly=function(){return typeof WebAssembly<"u"};f.supportsWebgl2=function(e){return S.defined("scene",e),e.context.webgl2};f.supportsEsmWebWorkers=function(){return!h()||parseInt(v)>=114};var se=f;export{se as a};