import{__awaiter as e,__generator as n}from"tslib";window.CESIUM_BASE_URL=window.CESIUM_BASE_URL||"//gis.7cdn.msign.net/assets/angularis_js_api/1.63.1-0.1.0/";import"@msign/angularis/Build/Cesium/Widgets/widgets.css";import{Viewer as i,SkyBox as t,Color as r,RequestScheduler as o}from"@msign/angularis";import s from"../core/Instance";"production"!=process.env.NODE_ENV&&(window.Angularis=require("@msign/angularis"));var u=function(){function u(){}return u.prototype.i=function(){return e(this,void 0,void 0,(function(){return n(this,(function(e){switch(e.label){case 0:return[4,import("../core/CesiumFix")];case 1:return e.t(),[2]}}))}))},u.o=function(o,c){return void 0===c&&(c={}),e(this,void 0,void 0,(function(){var e,c,a;return n(this,(function(n){switch(n.label){case 0:return console.time("构造cesium实例"),o&&s.s(),[4,(e=new u).i()];case 1:for(n.t();o.childNodes&&o.childNodes[0];)o.removeChild(o.childNodes[0]);return c=new t({}),(a=e.l=new i(o,{animation:!1,p:!1,v:document.createElement("div"),h:{B:{alpha:!0,k:!0}},C:!1,global:!0,j:!1,I:4,O:!1,P:!1,_:!1,q:c,A:!1,D:!1})).g.m.u=new r(0,0,0,0),a.g.m.F.get(0).alpha=.5,a.g.H=!1,a.g.backgroundColor=new r(0,0,0,1),a.g.L&&(a.g.L.show=!1),console.timeEnd("构造cesium实例"),[2,e]}}))}))},Object.defineProperty(u.prototype,"M",{get:function(){return this.l},R:!0,T:!0}),u.prototype.W=function(e){void 0===e&&(e=!0),e?(o.G=256,o.J=512):(o.G=6,o.J=50)},u}();export default u;