@wdp-api/aesrt-api
Version:
51WORLD aesrt-api is a JavaScript plugin designed for WdpApi, offering a comprehensive set of APIs that empower developers to seamlessly integrate aesrt-api into their applications.
10 lines (9 loc) β’ 63.8 kB
JavaScript
/**
* Β© AesRTApi v2.0.0
* build: 2025-09-24TZ18:33:45
* Copyright (c) 2012-2025 keithskyey@gmail.com
* https://www.51aes.com/
* https://wdpapi.51aes.com/
* All Rights Reserved.
*/
var AesRTApi=function(){"use strict";var ba=Object.defineProperty,a=(M,N)=>()=>(M&&(N=M(M=0)),N),b=(M,N)=>{for(var O in N)ba(M,O,{get:N[O],enumerable:!0})},ca,da,c,ea=a(()=>{ca="2.0.0",da="2025-09-24TZ18:33:45",c={company:"π",name:"AesRTApi",slogan:"AesRT API Plugins",version:ca,updated:da,author:"Keith Orbit"}});ea();var fa=class M{constructor(N){this.obj=N,this.obj.cloudApiLog("AESRT module install",this),this.initLog(),window.GUIaesrtapi=M,window.aesrtRegisterSceneEvents=this.onAesRTClickEvent.bind(this)}async install(){const [N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,re,se,te,ue,ve,we,xe,ye]=await Promise.all([Promise.resolve().then(function(){return id(),gd}),Promise.resolve().then(function(){return Xb(),Ub}),Promise.resolve().then(function(){return Ka(),Ia}),Promise.resolve().then(function(){return Oa(),La}),Promise.resolve().then(function(){return Ra(),Pa}),Promise.resolve().then(function(){return Va(),Sa}),Promise.resolve().then(function(){return Ya(),Wa}),Promise.resolve().then(function(){return ab(),Za}),Promise.resolve().then(function(){return db(),bb}),Promise.resolve().then(function(){return hb(),eb}),Promise.resolve().then(function(){return kb(),ib}),Promise.resolve().then(function(){return ob(),lb}),Promise.resolve().then(function(){return rb(),pb}),Promise.resolve().then(function(){return vb(),sb}),Promise.resolve().then(function(){return yb(),wb}),Promise.resolve().then(function(){return Cb(),zb}),Promise.resolve().then(function(){return Fb(),Db}),Promise.resolve().then(function(){return Jb(),Gb}),Promise.resolve().then(function(){return Mb(),Kb}),Promise.resolve().then(function(){return Qb(),Nb}),Promise.resolve().then(function(){return Tb(),Rb}),Promise.resolve().then(function(){return qe(),ne}),Promise.resolve().then(function(){return $b(),Yb})]);return{info:{name:c.name,des:c.slogan,version:c.version},list:this.createPluginList({AesRTController:N,WMSController:O,WMSEntity:P,WMTSController:Q,WMTSEntity:R,WFSController:S,WFSEntity:T,WCSController:W,WCSEntity:X,TilesController:Y,TilesEntity:Z,TiffController:$,TiffEntity:_,VectorController:U,VectorEntity:V,VectorFreeController:re,VectorFreeEntity:se,WMSFreeController:te,WMSFreeEntity:ue,TilesFreeController:ve,TilesFreeEntity:we,TiffFreeController:xe,TiffFreeEntity:ye})}}createPluginList(N){return[{name:"aesrt",factory:N.AesRTController.default,category:"aesrt"},{name:"WMS",factory:N.WMSController.default,object:N.WMSEntity.default,category:"aesrt",type:"AesRTWMSLayerEntity"},{name:"WMTS",factory:N.WMTSController.default,object:N.WMTSEntity.default,category:"aesrt",type:"AesRTWMTSLayerEntity"},{name:"WFS",factory:N.WFSController.default,object:N.WFSEntity.default,category:"aesrt",type:"AesRTWFSLayerEntity"},{name:"WCS",factory:N.WCSController.default,object:N.WCSEntity.default,category:"aesrt",type:"AesRTWCSLayerEntity"},{name:"TilesLayer",factory:N.TilesController.default,object:N.TilesEntity.default,category:"aesrt",type:"AesRTTilesLayerEntity"},{name:"Tiff",factory:N.TiffController.default,object:N.TiffEntity.default,category:"aesrt",type:"AesRTTiffLayerEntity"},{name:"Vector",factory:N.VectorController.default,object:N.VectorEntity.default,category:"aesrt",type:"AesRTGeoJsonLayerEntity"},{name:"WMSFree",factory:N.WMSFreeController.default,object:N.WMSFreeEntity.default,category:"aesrtfree",type:"AesRTWMSBaseEntity"},{name:"TilesFree",factory:N.TilesFreeController.default,object:N.TilesFreeEntity.default,category:"aesrtfree",type:"AesRTTilesBaseEntity"},{name:"TiffFree",factory:N.TiffFreeController.default,object:N.TiffFreeEntity.default,category:"aesrtfree",type:"AesRTTiffBaseEntity"},{name:"VectorFree",factory:N.VectorFreeController.default,object:N.VectorFreeEntity.default,category:"aesrtfree",type:"AesRTShpBaseEntity"}]}initLog(){const N="color:white;padding:5px;border-radius:5px;",O=`${N}background:#4F4E4E;margin-right:10px;`;console.group(`%c${c.company}%c${c.slogan} ~~ !`,`${N}background:black;margin-right:10px;`,`${N}background:#219E5A;`);console.log(`%cVersion%cV${c.version}`,O,"");console.log(`%cUpdated%c${c.updated}`,O,"");console.groupEnd()}handleSelectionEvent=(N)=>{const {success:O,result:P}=N||{},Q=this.obj?.aesrt?.Vector;if(!Q)return;P.type=Q.eventType||"";Q.clickFun?.({success:O,message:"",result:P})};onAesRTClickEvent=()=>{const N=this.obj?.aesrt?.Vector;if(typeof N?.clickFun!=="function")return;this.obj.Renderer.UnRegisterSceneEvents(["OnAesRTSelectionFeatureEvent_private","OnAesRTSelectionLayerEvent_private","OnAesRTSelectionFeatureEvent_Base_private","OnAesRTSelectionLayerEvent_Base_private"]);this.obj.Renderer.RegisterSceneEvents([{name:"OnAesRTSelectionFeatureEvent_private",func:this.handleSelectionEvent.bind(this)},{name:"OnAesRTSelectionLayerEvent_private",func:this.handleSelectionEvent.bind(this)},{name:"OnAesRTSelectionFeatureEvent_Base_private",func:this.handleSelectionEvent.bind(this)},{name:"OnAesRTSelectionLayerEvent_Base_private",func:this.handleSelectionEvent.bind(this)}])}};window.GUIaesrtapi=fa;function ga(M,N){return D({},wa,M,N)}function ha(M,N){return D({},xa,M,N)}function ia(M,N){return D({},Ea,M,N)}function ja(M,N){const O=D({},ya,M,N);if(!O)return;const P=M.getAttribute("isDefault")==="true";O["isDefault"]=P;return O}function ka(M,N){return D({},za,M,N)}function la(M,N){return D({},Ca,M,N)}function ma(M,N){const O=M.getAttribute("format"),P=M.getAttribute("template"),Q=M.getAttribute("resourceType"),R={};if(O)R["format"]=O;if(P)R["template"]=P;if(Q)R["resourceType"]=Q;return R}function na(M,N){const O=D([],Da,M,N);if(O.length!=2)return;return jd(O)}function oa(M,N){const O=M.getAttribute("crs"),P=D([],Da,M,N);if(P.length!=2)return;return{extent:jd(P),crs:O}}function pa(M,N){const O={};O["format"]=M.getAttribute("format");O["href"]=G(M);return O}function qa(M,N){const O=L(M).split(/\s+/);if(!O||O.length!=2)return;const P=+O[0],Q=+O[1];if(isNaN(P)||isNaN(Q))return;return[P,Q]}function ra(M,N){return D({},Fa,M,N)}function sa(M,N){return D([],Aa,M,N)}function ta(M,N){return D({},Ba,M,N)}var d,e,ua,va,wa,xa,ya,za,Aa,Ba,Ca,Da,Ea,Fa,Ga,Ha=a(()=>{md(),E(),_d(),ce(),ee(),ge(),d=[null,"http://www.opengis.net/wmts/1.0"],e=[null,"http://www.opengis.net/ows/1.1"],ua=C(d,{"Contents":B(ga)}),va=class extends be{constructor(){super(),this.owsParser_=new $d()}readFromNode(M){let N=M.getAttribute("version");if(N)N=N.trim();let O=this.owsParser_.readFromNode(M);if(!O)return null;O["version"]=N;O=D(O,ua,M,[]);return O?O:null}},wa=C(d,{"Layer":A(ha),"TileMatrixSet":A(ia)}),xa=C(d,{"Style":A(ja),"Format":A(L),"TileMatrixSetLink":A(ka),"Dimension":A(la),"ResourceURL":A(ma)},C(e,{"Title":B(L),"Abstract":B(L),"WGS84BoundingBox":B(na),"BoundingBox":A(oa),"Identifier":B(L)})),ya=C(d,{"LegendURL":A(pa)},C(e,{"Title":B(L),"Identifier":B(L)})),za=C(d,{"TileMatrixSet":B(L),"TileMatrixSetLimits":B(sa)}),Aa=C(d,{"TileMatrixLimits":z(ta)}),Ba=C(d,{"TileMatrix":B(L),"MinTileRow":B(K),"MaxTileRow":B(K),"MinTileCol":B(K),"MaxTileCol":B(K)}),Ca=C(d,{"Default":B(L),"Value":A(L)},C(e,{"Identifier":B(L)})),Da=C(e,{"LowerCorner":z(qa),"UpperCorner":z(qa)}),Ea=C(d,{"WellKnownScaleSet":B(L),"TileMatrix":A(ra)},C(e,{"SupportedCRS":B(L),"Identifier":B(L),"BoundingBox":B(na)})),Fa=C(d,{"TopLeftCorner":B(qa),"ScaleDenominator":B(I),"TileWidth":B(K),"TileHeight":B(K),"MatrixWidth":B(K),"MatrixHeight":B(K)},C(e,{"Identifier":B(L)})),Ga=va}),Ia={};b(Ia,{default:()=>Ja});var Ja,Ka=a(()=>{k(),m(),o(),q(),s(),Ja=class{static extendsCore(M){return class N extends M{className="WMS";#apiClassName="AesRTEntityAPI";#logger=r.getInstance();#timestamp=Date.now();#getKeys=(O)=>Object.keys(O);AesRTBaseInfoAtom={heads:{time:this.#timestamp,token:j(20)},url:"",type:"wms"};AesRTRasterInfoAtom={model:"add"};AesRTVisibleAtom={bVisible:!0};AesRTWMSInfoAtom={layerId:"",crs:"",style:""};constructor(O){super();this.oType="WMS";this.type=p.get(this.oType);this.setObjAtom(this);if(O)this.SetData(O),this.addNewScheme={EntityType:this.type,...this.generateAtomData(O)};l("wms",this)}get apiClassName(){return this.#apiClassName}OnClickEvent(O){this.obj.aesrt.Vector.clickFun=O,window.aesrtRegisterSceneEvents({})}GetScheme(){return{AssetAtom:this.AssetAtom,AesRTBaseInfoAtom:this.AesRTBaseInfoAtom,AesRTRasterInfoAtom:this.AesRTRasterInfoAtom,AesRTVisibleAtom:this.AesRTVisibleAtom,AesRTWMSInfoAtom:this.AesRTWMSInfoAtom}}GetData(){return{...this.getEid(),...this.getTransformData(),...this.getBasicData(),...this.getOtherData(),...this.AssetAtom,baseInfo:this.AesRTBaseInfoAtom,rasterInfo:this.AesRTRasterInfoAtom,wmsInfo:this.AesRTWMSInfoAtom,entityType:this.oType}}SetData(O){this.setEid(O),this.setTransformData(O),this.setBasicData(O),this.setVisibleData(O),this.setLockedData(O),this.setIndexData(O),f(this.AesRTBaseInfoAtom,O),f(this.AesRTRasterInfoAtom,O),f(this.AesRTVisibleAtom,O),f(this.AesRTWMSInfoAtom,O)}generateAtomData(O){const P={};this.handleBasicAtom(P.BasicInfoAtom={},O);this.handleTransformAtom(P.TransformAtom={},O);this.handleLockedAtom(P.EntityFlagAtom={},O);this.handleEntityOutlinerAtom(P.EntityOutlinerAtom={},O);const Q=g(this.AesRTBaseInfoAtom,O,this.#getKeys(this.AesRTBaseInfoAtom));if(!i(Q))P.AesRTBaseInfoAtom=Q;const R=g(this.AesRTRasterInfoAtom,O,this.#getKeys(this.AesRTRasterInfoAtom));if(!i(R))P.AesRTRasterInfoAtom=R;const S=g(this.AesRTVisibleAtom,O,this.#getKeys(this.AesRTVisibleAtom));if(!i(S))P.AesRTVisibleAtom=S;const T=g(this.AesRTWMSInfoAtom,O,this.#getKeys(this.AesRTWMSInfoAtom));if(!i(T))P.AesRTWMSInfoAtom=T;const U=P.AesRTRasterInfoAtom;if(U?.model==="height")U.model="elevation",this.AesRTRasterInfoAtom.model="elevation";return P}middlewareApi(O,P){return n(this,O,P,{overrideParamsMap:{AesRTSetRasterLayerVisible:(Q)=>({bVisible:Q}),AesRTLayerSetOffset:(Q)=>({bInit:!1,offset:Q}),AesRTLayerSetRotation:(Q)=>({bInit:!1,...Q}),AesRTSetLayerToTop:(Q)=>({layerName:""}),OnAesRTClickEvent:(Q)=>({clickType:Q})},atomUpdaters:{AesRTLayerSetOffset:(Q,R)=>{const S=Q.pivotOffset??[0,0,0],T=R.offset??[0,0,0];Q.pivotOffset=S.map((U,V)=>U+(T[V]||0))},AesRTLayerSetRotation:(Q,R)=>{Q.rotator=R.rotation}},eventHandlers:{OnAesRTClickEvent:(Q,R)=>{Q.obj.aesrt.Vector.eventType=R}}})}}}}}),La={};b(La,{default:()=>Na});var Ma,Na,Oa=a(()=>{Ra(),Ma=class{static extendsCore(M,N){return class O extends M{constructor(P){super(P,Qa.extendsCore(N)),this.setType("WMTS")}}}},Na=Ma}),Pa={};b(Pa,{default:()=>Qa});var Qa,Ra=a(()=>{k(),m(),o(),q(),s(),Qa=class{static extendsCore(M){return class N extends M{className="WMTS";#apiClassName="AesRTEntityAPI";#logger=r.getInstance();#timestamp=Date.now();#getKeys=(O)=>Object.keys(O);AesRTBaseInfoAtom={heads:{time:this.#timestamp,token:j(20)},url:"",type:"wmts"};AesRTRasterInfoAtom={model:"add"};AesRTVisibleAtom={bVisible:!0};AesRTWMTSInfoAtom={layerId:"",crs:"",style:"polygon",tileMatrixLabels:[]};constructor(O){super();this.oType="WMTS";this.type=p.get(this.oType);this.setObjAtom(this);if(O)this.SetData(O),this.addNewScheme={EntityType:this.type,...this.generateAtomData(O)};l("wmts",this)}get apiClassName(){return this.#apiClassName}OnClickEvent(O){this.obj.aesrt.Vector.clickFun=O,window.aesrtRegisterSceneEvents({})}GetScheme(){return{AssetAtom:this.AssetAtom,AesRTBaseInfoAtom:this.AesRTBaseInfoAtom,AesRTRasterInfoAtom:this.AesRTRasterInfoAtom,AesRTVisibleAtom:this.AesRTVisibleAtom,AesRTWMTSInfoAtom:this.AesRTWMTSInfoAtom}}GetData(){return{...this.getEid(),...this.getTransformData(),...this.getBasicData(),...this.getOtherData(),...this.AssetAtom,baseInfo:this.AesRTBaseInfoAtom,rasterInfo:this.AesRTRasterInfoAtom,wmtsInfo:this.AesRTWMTSInfoAtom,entityType:this.oType}}SetData(O){this.setEid(O),this.setTransformData(O),this.setBasicData(O),this.setVisibleData(O),this.setLockedData(O),this.setIndexData(O),f(this.AesRTBaseInfoAtom,O),f(this.AesRTRasterInfoAtom,O),f(this.AesRTVisibleAtom,O),f(this.AesRTWMTSInfoAtom,O)}generateAtomData(O){const P={};this.handleBasicAtom(P.BasicInfoAtom={},O);this.handleTransformAtom(P.TransformAtom={},O);this.handleLockedAtom(P.EntityFlagAtom={},O);this.handleEntityOutlinerAtom(P.EntityOutlinerAtom={},O);const Q=g(this.AesRTBaseInfoAtom,O,this.#getKeys(this.AesRTBaseInfoAtom));if(!i(Q))P.AesRTBaseInfoAtom=Q;const R=g(this.AesRTRasterInfoAtom,O,this.#getKeys(this.AesRTRasterInfoAtom));if(!i(R))P.AesRTRasterInfoAtom=R;const S=g(this.AesRTVisibleAtom,O,this.#getKeys(this.AesRTVisibleAtom));if(!i(S))P.AesRTVisibleAtom=S;const T=g(this.AesRTWMTSInfoAtom,O,this.#getKeys(this.AesRTWMTSInfoAtom));if(!i(T))P.AesRTWMTSInfoAtom=T;const U=P.AesRTRasterInfoAtom;if(U?.model==="height")U.model="elevation",this.AesRTRasterInfoAtom.model="elevation";return P}middlewareApi(O,P){return n(this,O,P,{overrideParamsMap:{AesRTSetRasterLayerVisible:(Q)=>({bVisible:Q}),AesRTLayerSetOffset:(Q)=>({bInit:!1,offset:Q}),AesRTLayerSetRotation:(Q)=>({bInit:!1,...Q}),AesRTSetLayerToTop:(Q)=>({layerName:""}),OnAesRTClickEvent:(Q)=>({clickType:Q})},atomUpdaters:{AesRTLayerSetOffset:(Q,R)=>{const S=Q.pivotOffset??[0,0,0],T=R.offset??[0,0,0];Q.pivotOffset=S.map((U,V)=>U+(T[V]||0))},AesRTLayerSetRotation:(Q,R)=>{Q.rotator=R.rotation}},eventHandlers:{OnAesRTClickEvent:(Q,R)=>{Q.obj.aesrt.Vector.eventType=R}}})}}}}}),Sa={};b(Sa,{default:()=>Ua});var Ta,Ua,Va=a(()=>{Ya(),Ta=class{static extendsCore(M,N){return class O extends M{constructor(P){super(P,Xa.extendsCore(N)),this.setType("WFS")}}}},Ua=Ta}),Wa={};b(Wa,{default:()=>Xa});var Xa,Ya=a(()=>{k(),m(),o(),q(),s(),Xa=class{static extendsCore(M){return class N extends M{className="WFS";#apiClassName="AesRTEntityAPI";#logger=r.getInstance();#timestamp=Date.now();#baseType=["z","zType","geometryType"];#geometryType=["polygon","line","point"];#getKeys=(O)=>Object.keys(O);AesRTBaseInfoAtom={heads:{time:this.#timestamp,token:j(20)},url:"",type:"wfs"};AesRTGeoJsonAtom={geoJson:""};AesRTVisibleAtom={bVisible:!0};AesRTVectorInfoAtom={zType:"z",z:0,layerId:"",geometryType:"polygon",polygon:{random:!1,symbolField:"GDP",symbolScheme:"NumRange",polygonFeatures:[{symbolParams:"0,200",featureStyle:{ploygonStyle:"block",filledColor:"00f1d0eb",bOutline:!0,outlineColor:"FFFFFFFF",outlineWidth:1,bExtrude:!0,extrudeHeight:100,extrudeHeightField:"height",topColor:"00f1d0eb",bottomColor:"00f1d0eb",sideColor:"00f1d0eb",bShowTop:!0,bShowBottom:!0,bShowSides:!0}},{symbolParams:"200,400",featureStyle:{ploygonStyle:"block",filledColor:"FFFFA07A",bOutline:!0,outlineColor:"FFFFFFFF",outlineWidth:1,bExtrude:!0,extrudeHeight:100,extrudeHeightField:"height",topColor:"FFFFA07A",bottomColor:"FFFFA07A",sideColor:"FFFFA07A",bShowTop:!0,bShowBottom:!0,bShowSides:!0}},{symbolParams:"400,600",featureStyle:{ploygonStyle:"block",filledColor:"67FF01FF",bOutline:!0,outlineColor:"FFFFFFFF",outlineWidth:1,bExtrude:!0,extrudeHeight:100,extrudeHeightField:"height",topColor:"67FF01FF",bottomColor:"67FF01FF",bSideColor:"67FF01FF",bShowTop:!0,bShowBottom:!0,bShowSides:!0}}]},line:{symbolField:"GBCODE",symbolScheme:"EqualStr",lineFeatures:[{symbolParams:"41020",featureStyle:{pixelSize:!0,lineColor:"FF0000FF",lineWidth:10,lineStyle:"Plane"}},{symbolParams:"43010",featureStyle:{pixelSize:!0,lineColor:"00FFE4FF",lineWidth:10,lineStyle:"Plane"}}]},point:{symbolField:"ADCLASS",symbolScheme:"EqualNum",pointFeatures:[{symbolParams:"1",featureStyle:{pixelSize:!0,pointColor:"00f1d0eb",pointSize:1e4,pointStyle:"Circle",Text:["PINYIN","00f1d0eb","1000"]}},{symbolParams:"2",featureStyle:{pixelSize:!0,pointColor:"FFFFA07A",pointSize:1e4,pointStyle:"Circle",Text:["GDP","FFFFA07A","50"]}}]}};constructor(O){super();this.oType="WFS";this.type=p.get(this.oType);this.setObjAtom(this);if(O)this.SetData(O),this.addNewScheme={EntityType:this.type,...this.generateAtomData(O)};l("wfs",this)}get apiClassName(){return this.#apiClassName}OnClickEvent(O){this.obj.aesrt.Vector.clickFun=O,window.aesrtRegisterSceneEvents({})}GetScheme(){return{AssetAtom:this.AssetAtom,AesRTBaseInfoAtom:this.AesRTBaseInfoAtom,AesRTGeoJsonAtom:this.AesRTGeoJsonAtom,AesRTVisibleAtom:this.AesRTVisibleAtom,AesRTVectorInfoAtom:this.AesRTVectorInfoAtom}}GetData(){return{...this.getEid(),...this.getTransformData(),...this.getBasicData(),...this.getOtherData(),...this.AssetAtom,baseInfo:this.AesRTBaseInfoAtom,geoJsonInfo:this.AesRTGeoJsonAtom,vectorInfo:this.AesRTVectorInfoAtom,entityType:this.oType}}SetData(O){this.setEid(O),this.setTransformData(O),this.setBasicData(O),this.setVisibleData(O),this.setLockedData(O),this.setIndexData(O),f(this.AesRTBaseInfoAtom,O),f(this.AesRTGeoJsonAtom,O),f(this.AesRTVisibleAtom,O),h(this.AesRTVectorInfoAtom,O,this.#geometryType)}generateAtomData(O){const P={};this.handleBasicAtom(P.BasicInfoAtom={},O);this.handleTransformAtom(P.TransformAtom={},O);this.handleLockedAtom(P.EntityFlagAtom={},O);this.handleEntityOutlinerAtom(P.EntityOutlinerAtom={},O);const Q=g(this.AesRTBaseInfoAtom,O,this.#getKeys(this.AesRTBaseInfoAtom));if(!i(Q))P.AesRTBaseInfoAtom=Q;const R=g(this.AesRTGeoJsonAtom,O,this.#getKeys(this.AesRTGeoJsonAtom));if(!i(R))P.AesRTGeoJsonAtom=R;const S=g(this.AesRTVisibleAtom,O,this.#getKeys(this.AesRTVisibleAtom));if(!i(S))P.AesRTVisibleAtom=S;const T=g(this.AesRTVectorInfoAtom,O,this.#baseType),U=_b(O,this.#geometryType),V={...T,...U};P.AesRTVectorInfoAtom={layerId:O?.layerId||"",syltePresets:V};return P}middlewareApi(O,P){return n(this,O,P,{overrideParamsMap:{AesRTSetVectorLayerVisible:(Q)=>({bVisible:Q}),AesRTLayerSetOffset:(Q)=>({bInit:!1,offset:Q}),AesRTLayerSetRotation:(Q)=>({bInit:!1,...Q}),AesRTVectorUpdateStyle:(Q)=>({style:Q}),OnAesRTClickEvent:(Q)=>({clickType:Q})},atomUpdaters:{AesRTLayerSetOffset:(Q,R)=>{const S=Q.pivotOffset??[0,0,0],T=R.offset??[0,0,0];Q.pivotOffset=S.map((U,V)=>U+(T[V]||0))},AesRTLayerSetRotation:(Q,R)=>{Q.rotator=R.rotation}},eventHandlers:{OnAesRTClickEvent:(Q,R)=>{Q.obj.aesrt.Vector.eventType=R}}})}}}}}),Za={};b(Za,{default:()=>_a});var $a,_a,ab=a(()=>{db(),$a=class{static extendsCore(M,N){return class O extends M{constructor(P){super(P,cb.extendsCore(N)),this.setType("Vector")}}}},_a=$a}),bb={};b(bb,{default:()=>cb});var cb,db=a(()=>{k(),m(),o(),q(),s(),cb=class{static extendsCore(M){return class N extends M{className="Vector";#apiClassName="AesRTEntityAPI";#logger=r.getInstance();#timestamp=Date.now();#baseType=["z","zType","geometryType"];#geometryType=["polygon","line","point"];#getKeys=(O)=>Object.keys(O);AesRTBaseInfoAtom={heads:{time:this.#timestamp,token:j(20)},url:"",type:"geojson"};AesRTGeoJsonAtom={geoJson:""};AesRTVisibleAtom={bVisible:!0};AesRTVectorInfoAtom={zType:"z",z:0,layerId:"",geometryType:"polygon",polygon:{random:!1,symbolField:"GDP",symbolScheme:"NumRange",polygonFeatures:[{symbolParams:"0,200",featureStyle:{ploygonStyle:"block",filledColor:"00f1d0eb",bOutline:!0,outlineColor:"FFFFFFFF",outlineWidth:1,bExtrude:!0,extrudeHeight:100,extrudeHeightField:"height",topColor:"00f1d0eb",bottomColor:"00f1d0eb",sideColor:"00f1d0eb",bShowTop:!0,bShowBottom:!0,bShowSides:!0}},{symbolParams:"200,400",featureStyle:{ploygonStyle:"block",filledColor:"FFFFA07A",bOutline:!0,outlineColor:"FFFFFFFF",outlineWidth:1,bExtrude:!0,extrudeHeight:100,extrudeHeightField:"height",topColor:"FFFFA07A",bottomColor:"FFFFA07A",sideColor:"FFFFA07A",bShowTop:!0,bShowBottom:!0,bShowSides:!0}},{symbolParams:"400,600",featureStyle:{ploygonStyle:"block",filledColor:"67FF01FF",bOutline:!0,outlineColor:"FFFFFFFF",outlineWidth:1,bExtrude:!0,extrudeHeight:100,extrudeHeightField:"height",topColor:"67FF01FF",bottomColor:"67FF01FF",bSideColor:"67FF01FF",bShowTop:!0,bShowBottom:!0,bShowSides:!0}}]},line:{symbolField:"GBCODE",symbolScheme:"EqualStr",lineFeatures:[{symbolParams:"41020",featureStyle:{pixelSize:!0,lineColor:"FF0000FF",lineWidth:10,lineStyle:"Plane"}},{symbolParams:"43010",featureStyle:{pixelSize:!0,lineColor:"00FFE4FF",lineWidth:10,lineStyle:"Plane"}}]},point:{symbolField:"ADCLASS",symbolScheme:"EqualNum",pointFeatures:[{symbolParams:"1",featureStyle:{pixelSize:!0,pointColor:"00f1d0eb",pointSize:1e4,pointStyle:"Circle",Text:["PINYIN","00f1d0eb","1000"]}},{symbolParams:"2",featureStyle:{pixelSize:!0,pointColor:"FFFFA07A",pointSize:1e4,pointStyle:"Circle",Text:["GDP","FFFFA07A","50"]}}]}};constructor(O){super();this.oType="Vector";this.type=p.get(this.oType);this.setObjAtom(this);const P=String(O?.type||"").trim().toLowerCase().replace(/[\u200B-\u200D\uFEFF]/g,""),Q={shp:"AesRTShpLayerEntity",geojson:"AesRTGeoJsonLayerEntity"}[P]||this.type;if(O)this.SetData(O),this.addNewScheme={EntityType:Q||this.type,...this.generateAtomData(O)};l("vector",this)}get apiClassName(){return this.#apiClassName}OnClickEvent(O){this.obj.aesrt.Vector.clickFun=O,window.aesrtRegisterSceneEvents({})}GetScheme(){return{AssetAtom:this.AssetAtom,AesRTBaseInfoAtom:this.AesRTBaseInfoAtom,AesRTGeoJsonAtom:this.AesRTGeoJsonAtom,AesRTVisibleAtom:this.AesRTVisibleAtom,AesRTVectorInfoAtom:this.AesRTVectorInfoAtom}}GetData(){return{...this.getEid(),...this.getTransformData(),...this.getBasicData(),...this.getOtherData(),...this.AssetAtom,baseInfo:this.AesRTBaseInfoAtom,geoJsonInfo:this.AesRTGeoJsonAtom,vectorInfo:this.AesRTVectorInfoAtom,entityType:this.oType}}SetData(O){this.setEid(O),this.setTransformData(O),this.setBasicData(O),this.setVisibleData(O),this.setLockedData(O),this.setIndexData(O),f(this.AesRTBaseInfoAtom,O),f(this.AesRTGeoJsonAtom,O),f(this.AesRTVisibleAtom,O),h(this.AesRTVectorInfoAtom,O,this.#geometryType)}generateAtomData(O){const P={};this.handleBasicAtom(P.BasicInfoAtom={},O);this.handleTransformAtom(P.TransformAtom={},O);this.handleLockedAtom(P.EntityFlagAtom={},O);this.handleEntityOutlinerAtom(P.EntityOutlinerAtom={},O);const Q=g(this.AesRTBaseInfoAtom,O,this.#getKeys(this.AesRTBaseInfoAtom));if(!i(Q))P.AesRTBaseInfoAtom=Q;const R=g(this.AesRTGeoJsonAtom,O,this.#getKeys(this.AesRTGeoJsonAtom));if(!i(R))P.AesRTGeoJsonAtom=R;const S=g(this.AesRTVisibleAtom,O,this.#getKeys(this.AesRTVisibleAtom));if(!i(S))P.AesRTVisibleAtom=S;const T=g(this.AesRTVectorInfoAtom,O,this.#baseType),U=_b(O,this.#geometryType),V={...T,...U};P.AesRTVectorInfoAtom={layerId:O?.layerId||"",syltePresets:V};return P}middlewareApi(O,P){return n(this,O,P,{overrideParamsMap:{AesRTSetVectorLayerVisible:(Q)=>({bVisible:Q}),AesRTLayerSetOffset:(Q)=>({bInit:!1,offset:Q}),AesRTLayerSetRotation:(Q)=>({bInit:!1,...Q}),AesRTVectorUpdateStyle:(Q)=>({style:Q}),OnAesRTClickEvent:(Q)=>({clickType:Q})},atomUpdaters:{AesRTLayerSetOffset:(Q,R)=>{const S=Q.pivotOffset??[0,0,0],T=R.offset??[0,0,0];Q.pivotOffset=S.map((U,V)=>U+(T[V]||0))},AesRTLayerSetRotation:(Q,R)=>{Q.rotator=R.rotation}},eventHandlers:{OnAesRTClickEvent:(Q,R)=>{Q.obj.aesrt.Vector.eventType=R}}})}}}}}),eb={};b(eb,{default:()=>gb});var fb,gb,hb=a(()=>{kb(),fb=class{static extendsCore(M,N){return class O extends M{constructor(P){super(P,jb.extendsCore(N)),this.setType("WCS")}}}},gb=fb}),ib={};b(ib,{default:()=>jb});var jb,kb=a(()=>{k(),m(),o(),q(),s(),jb=class{static extendsCore(M){return class N extends M{className="WCS";#apiClassName="AesRTEntityAPI";#logger=r.getInstance();#timestamp=Date.now();#getKeys=(O)=>Object.keys(O);AesRTBaseInfoAtom={heads:{time:this.#timestamp,token:j(20)},url:"",type:"wcs"};AesRTRasterInfoAtom={model:"add"};AesRTVisibleAtom={bVisible:!0};AesRTWCSInfoAtom={coverage:"ne:hainan_mainland_mercator",version:"2.0.1",tiffPresets:{colorRamp:["FF071EFF","FF7C19FF","FFB307FF","24FF00FF","0061FFFF"],minValue:0,maxValue:68}};constructor(O){super();this.oType="WCS";this.type=p.get(this.oType);this.setObjAtom(this);if(O)this.SetData(O),this.addNewScheme={EntityType:this.type,...this.generateAtomData(O)};l("wcs",this)}get apiClassName(){return this.#apiClassName}OnClickEvent(O){this.obj.aesrt.Vector.clickFun=O,window.aesrtRegisterSceneEvents({})}GetScheme(){return{AssetAtom:this.AssetAtom,AesRTBaseInfoAtom:this.AesRTBaseInfoAtom,AesRTRasterInfoAtom:this.AesRTRasterInfoAtom,AesRTVisibleAtom:this.AesRTVisibleAtom,AesRTWCSInfoAtom:this.AesRTWCSInfoAtom}}GetData(){return{...this.getEid(),...this.getTransformData(),...this.getBasicData(),...this.getOtherData(),...this.AssetAtom,baseInfo:this.AesRTBaseInfoAtom,rasterInfo:this.AesRTRasterInfoAtom,wcsInfo:this.AesRTWCSInfoAtom,entityType:this.oType}}SetData(O){this.setEid(O),this.setTransformData(O),this.setBasicData(O),this.setVisibleData(O),this.setLockedData(O),this.setIndexData(O),f(this.AesRTBaseInfoAtom,O),f(this.AesRTRasterInfoAtom,O),f(this.AesRTVisibleAtom,O),f(this.AesRTWCSInfoAtom,O)}generateAtomData(O){const P={};this.handleBasicAtom(P.BasicInfoAtom={},O);this.handleTransformAtom(P.TransformAtom={},O);this.handleLockedAtom(P.EntityFlagAtom={},O);this.handleEntityOutlinerAtom(P.EntityOutlinerAtom={},O);const Q=g(this.AesRTBaseInfoAtom,O,this.#getKeys(this.AesRTBaseInfoAtom));if(!i(Q))P.AesRTBaseInfoAtom=Q;const R=g(this.AesRTRasterInfoAtom,O,this.#getKeys(this.AesRTRasterInfoAtom));if(!i(R))P.AesRTRasterInfoAtom=R;const S=g(this.AesRTVisibleAtom,O,this.#getKeys(this.AesRTVisibleAtom));if(!i(S))P.AesRTVisibleAtom=S;const T=g(this.AesRTWCSInfoAtom,O,this.#getKeys(this.AesRTWCSInfoAtom));if(!i(T))P.AesRTWCSInfoAtom=T;const U=P.AesRTRasterInfoAtom;if(U?.model==="height")U.model="elevation",this.AesRTRasterInfoAtom.model="elevation";return P}middlewareApi(O,P){return n(this,O,P,{overrideParamsMap:{AesRTSetRasterLayerVisible:(Q)=>({bVisible:Q}),AesRTLayerSetOffset:(Q)=>({bInit:!1,offset:Q}),AesRTLayerSetRotation:(Q)=>({bInit:!1,...Q}),AesRTSetLayerToTop:(Q)=>({layerName:""}),OnAesRTClickEvent:(Q)=>({clickType:Q})},atomUpdaters:{AesRTLayerSetOffset:(Q,R)=>{const S=Q.pivotOffset??[0,0,0],T=R.offset??[0,0,0];Q.pivotOffset=S.map((U,V)=>U+(T[V]||0))},AesRTLayerSetRotation:(Q,R)=>{Q.rotator=R.rotation}},eventHandlers:{OnAesRTClickEvent:(Q,R)=>{Q.obj.aesrt.Vector.eventType=R}}})}}}}}),lb={};b(lb,{default:()=>nb});var mb,nb,ob=a(()=>{rb(),mb=class{static extendsCore(M,N){return class O extends M{constructor(P){super(P,qb.extendsCore(N)),this.setType("TilesLayer")}}}},nb=mb}),pb={};b(pb,{default:()=>qb});var qb,rb=a(()=>{k(),m(),o(),q(),s(),qb=class{static extendsCore(M){return class N extends M{className="TilesLayer";#apiClassName="AesRTEntityAPI";#logger=r.getInstance();#timestamp=Date.now();#getKeys=(O)=>Object.keys(O);AesRTBaseInfoAtom={heads:{time:this.#timestamp,token:j(20)},url:"",type:"3dtiles"};AesRTVisibleAtom={bVisible:!0};AesRTColorInfoAtom={bActive:!0,color:"ffffff"};constructor(O){super();this.oType="TilesLayer";this.type=p.get(this.oType);this.setObjAtom(this);if(O)this.SetData(O),this.addNewScheme={EntityType:this.type,...this.generateAtomData(O)};l("tiles",this)}get apiClassName(){return this.#apiClassName}OnClickEvent(O){this.obj.aesrt.Vector.clickFun=O,window.aesrtRegisterSceneEvents({})}GetScheme(){return{AssetAtom:this.AssetAtom,AesRTBaseInfoAtom:this.AesRTBaseInfoAtom,AesRTVisibleAtom:this.AesRTVisibleAtom,AesRTColorInfoAtom:this.AesRTColorInfoAtom}}GetData(){return{...this.getEid(),...this.getTransformData(),...this.getBasicData(),...this.getOtherData(),...this.AssetAtom,baseInfo:this.AesRTBaseInfoAtom,colorInfo:this.AesRTColorInfoAtom,entityType:this.oType}}SetData(O){this.setEid(O),this.setTransformData(O),this.setBasicData(O),this.setVisibleData(O),this.setLockedData(O),this.setIndexData(O),f(this.AesRTBaseInfoAtom,O),f(this.AesRTVisibleAtom,O),f(this.AesRTColorInfoAtom,O)}generateAtomData(O){const P={};this.handleBasicAtom(P.BasicInfoAtom={},O);this.handleTransformAtom(P.TransformAtom={},O);this.handleLockedAtom(P.EntityFlagAtom={},O);this.handleEntityOutlinerAtom(P.EntityOutlinerAtom={},O);const Q=g(this.AesRTBaseInfoAtom,O,this.#getKeys(this.AesRTBaseInfoAtom));if(!i(Q))P.AesRTBaseInfoAtom=Q;const R=g(this.AesRTColorInfoAtom,O,this.#getKeys(this.AesRTColorInfoAtom));if(!i(Q))P.AesRTColorInfoAtom=R;const S=g(this.AesRTVisibleAtom,O,this.#getKeys(this.AesRTVisibleAtom));if(!i(S))P.AesRTVisibleAtom=S;return P}middlewareApi(O,P){return n(this,O,P,{overrideParamsMap:{AesRTSetVectorLayerVisible:(Q)=>({bVisible:Q}),AesRTLayerSetOffset:(Q)=>({bInit:!1,offset:Q}),AesRTLayerSetRotation:(Q)=>({bInit:!1,...Q}),OnAesRTClickEvent:(Q)=>({clickType:Q})},atomUpdaters:{AesRTLayerSetOffset:(Q,R)=>{const S=Q.pivotOffset??[0,0,0],T=R.offset??[0,0,0];Q.pivotOffset=S.map((U,V)=>U+(T[V]||0))},AesRTLayerSetRotation:(Q,R)=>{Q.rotator=R.rotation}},eventHandlers:{OnAesRTClickEvent:(Q,R)=>{Q.obj.aesrt.Vector.eventType=R}}})}}}}}),sb={};b(sb,{default:()=>ub});var tb,ub,vb=a(()=>{yb(),tb=class{static extendsCore(M,N){return class O extends M{constructor(P){super(P,xb.extendsCore(N)),this.setType("Tiff")}}}},ub=tb}),wb={};b(wb,{default:()=>xb});var xb,yb=a(()=>{k(),m(),o(),q(),s(),xb=class{static extendsCore(M){return class N extends M{className="Tiff";#apiClassName="AesRTEntityAPI";#logger=r.getInstance();#timestamp=Date.now();#getKeys=(O)=>Object.keys(O);AesRTBaseInfoAtom={heads:{time:this.#timestamp,token:j(20)},url:"",type:"tiff"};AesRTRasterInfoAtom={model:"add"};AesRTVisibleAtom={bVisible:!0};AesRTTiffInfoAtom={tiffPresets:{colorRamp:[],minValue:0,maxValue:1}};constructor(O){super();this.oType="Tiff";this.type=p.get(this.oType);this.setObjAtom(this);if(O)this.SetData(O),this.addNewScheme={EntityType:this.type,...this.generateAtomData(O)};l("tiff",this)}get apiClassName(){return this.#apiClassName}OnClickEvent(O){this.obj.aesrt.Vector.clickFun=O,window.aesrtRegisterSceneEvents({})}GetScheme(){return{AssetAtom:this.AssetAtom,AesRTBaseInfoAtom:this.AesRTBaseInfoAtom,AesRTRasterInfoAtom:this.AesRTRasterInfoAtom,AesRTVisibleAtom:this.AesRTVisibleAtom,AesRTTiffInfoAtom:this.AesRTTiffInfoAtom}}GetData(){return{...this.getEid(),...this.getTransformData(),...this.getBasicData(),...this.getOtherData(),...this.AssetAtom,baseInfo:this.AesRTBaseInfoAtom,rasterInfo:this.AesRTRasterInfoAtom,tiffInfo:this.AesRTTiffInfoAtom,entityType:this.oType}}SetData(O){this.setEid(O),this.setTransformData(O),this.setBasicData(O),this.setVisibleData(O),this.setLockedData(O),this.setIndexData(O),f(this.AesRTBaseInfoAtom,O),f(this.AesRTRasterInfoAtom,O),f(this.AesRTVisibleAtom,O),f(this.AesRTTiffInfoAtom,O)}generateAtomData(O){const P={};this.handleBasicAtom(P.BasicInfoAtom={},O);this.handleTransformAtom(P.TransformAtom={},O);this.handleLockedAtom(P.EntityFlagAtom={},O);this.handleEntityOutlinerAtom(P.EntityOutlinerAtom={},O);const Q=g(this.AesRTBaseInfoAtom,O,this.#getKeys(this.AesRTBaseInfoAtom));if(!i(Q))P.AesRTBaseInfoAtom=Q;const R=g(this.AesRTRasterInfoAtom,O,this.#getKeys(this.AesRTRasterInfoAtom));if(!i(R))P.AesRTRasterInfoAtom=R;const S=g(this.AesRTVisibleAtom,O,this.#getKeys(this.AesRTVisibleAtom));if(!i(S))P.AesRTVisibleAtom=S;const T=g(this.AesRTTiffInfoAtom,O,this.#getKeys(this.AesRTTiffInfoAtom));if(!i(T))P.AesRTTiffInfoAtom=T;const U=P.AesRTRasterInfoAtom;if(U?.model==="height")U.model="elevation",this.AesRTRasterInfoAtom.model="elevation";return P}middlewareApi(O,P){return n(this,O,P,{overrideParamsMap:{AesRTSetRasterLayerVisible:(Q)=>({bVisible:Q}),AesRTLayerSetOffset:(Q)=>({bInit:!1,offset:Q}),AesRTLayerSetRotation:(Q)=>({bInit:!1,...Q}),AesRTSetLayerToTop:(Q)=>({layerName:""}),OnAesRTClickEvent:(Q)=>({clickType:Q})},atomUpdaters:{AesRTLayerSetOffset:(Q,R)=>{const S=Q.pivotOffset??[0,0,0],T=R.offset??[0,0,0];Q.pivotOffset=S.map((U,V)=>U+(T[V]||0))},AesRTLayerSetRotation:(Q,R)=>{Q.rotator=R.rotation}},eventHandlers:{OnAesRTClickEvent:(Q,R)=>{Q.obj.aesrt.Vector.eventType=R}}})}}}}}),zb={};b(zb,{default:()=>Bb});var Ab,Bb,Cb=a(()=>{Fb(),Ab=class{static extendsCore(M,N){return class O extends M{constructor(P){super(P,Eb.extendsCore(N)),this.setType("VectorFree")}}}},Bb=Ab}),Db={};b(Db,{default:()=>Eb});var Eb,Fb=a(()=>{k(),m(),o(),q(),s(),Eb=class{static extendsCore(M){return class N extends M{className="VectorFree";#apiClassName="AesRTBaseAPI";#logger=r.getInstance();#timestamp=Date.now();#baseType=["z","zType","geometryType"];#geometryType=["polygon","line","point"];#getKeys=(O)=>Object.keys(O);AesRTBaseInfoAtom={heads:{time:this.#timestamp,token:j(20)},url:"",type:"shp"};AesRTGeoJsonAtom={geoJson:""};AesRTVisibleAtom={bVisible:!0};AesRTVectorInfoAtom={zType:"z",z:0,layerId:"",geometryType:"polygon",polygon:{random:!1,symbolField:"GDP",symbolScheme:"NumRange",polygonFeatures:[{symbolParams:"0,200",featureStyle:{ploygonStyle:"block",filledColor:"00f1d0eb",bOutline:!0,outlineColor:"FFFFFFFF",outlineWidth:1,bExtrude:!0,extrudeHeight:100,extrudeHeightField:"height",topColor:"00f1d0eb",bottomColor:"00f1d0eb",sideColor:"00f1d0eb",bShowTop:!0,bShowBottom:!0,bShowSides:!0}},{symbolParams:"200,400",featureStyle:{ploygonStyle:"block",filledColor:"FFFFA07A",bOutline:!0,outlineColor:"FFFFFFFF",outlineWidth:1,bExtrude:!0,extrudeHeight:100,extrudeHeightField:"height",topColor:"FFFFA07A",bottomColor:"FFFFA07A",sideColor:"FFFFA07A",bShowTop:!0,bShowBottom:!0,bShowSides:!0}},{symbolParams:"400,600",featureStyle:{ploygonStyle:"block",filledColor:"67FF01FF",bOutline:!0,outlineColor:"FFFFFFFF",outlineWidth:1,bExtrude:!0,extrudeHeight:100,extrudeHeightField:"height",topColor:"67FF01FF",bottomColor:"67FF01FF",bSideColor:"67FF01FF",bShowTop:!0,bShowBottom:!0,bShowSides:!0}}]},line:{symbolField:"GBCODE",symbolScheme:"EqualStr",lineFeatures:[{symbolParams:"41020",featureStyle:{pixelSize:!0,lineColor:"FF0000FF",lineWidth:10,lineStyle:"Plane"}},{symbolParams:"43010",featureStyle:{pixelSize:!0,lineColor:"00FFE4FF",lineWidth:10,lineStyle:"Plane"}}]},point:{symbolField:"ADCLASS",symbolScheme:"EqualNum",pointFeatures:[{symbolParams:"1",featureStyle:{pixelSize:!0,pointColor:"00f1d0eb",pointSize:1e4,pointStyle:"Circle",Text:["PINYIN","00f1d0eb","1000"]}},{symbolParams:"2",featureStyle:{pixelSize:!0,pointColor:"FFFFA07A",pointSize:1e4,pointStyle:"Circle",Text:["GDP","FFFFA07A","50"]}}]}};constructor(O){super();this.oType="VectorFree";this.type=p.get(this.oType);this.setObjAtom(this);if(O)this.SetData(O),this.addNewScheme={EntityType:this.type,...this.generateAtomData(O)};l("vectorfree",this)}get apiClassName(){return this.#apiClassName}OnClickEvent(O){this.obj.aesrt.Vector.clickFun=O,window.aesrtRegisterSceneEvents({})}GetScheme(){return{AssetAtom:this.AssetAtom,AesRTBaseInfoAtom:this.AesRTBaseInfoAtom,AesRTGeoJsonAtom:this.AesRTGeoJsonAtom,AesRTVisibleAtom:this.AesRTVisibleAtom,AesRTVectorInfoAtom:this.AesRTVectorInfoAtom}}GetData(){return{...this.getEid(),...this.getTransformData(),...this.getBasicData(),...this.getOtherData(),...this.AssetAtom,baseInfo:this.AesRTBaseInfoAtom,geoJsonInfo:this.AesRTGeoJsonAtom,vectorInfo:this.AesRTVectorInfoAtom,entityType:this.oType}}SetData(O){this.setEid(O),this.setTransformData(O),this.setBasicData(O),this.setVisibleData(O),this.setLockedData(O),this.setIndexData(O),f(this.AesRTBaseInfoAtom,O),f(this.AesRTGeoJsonAtom,O),f(this.AesRTVisibleAtom,O),h(this.AesRTVectorInfoAtom,O,this.#geometryType)}generateAtomData(O){const P={};this.handleBasicAtom(P.BasicInfoAtom={},O);this.handleTransformAtom(P.TransformAtom={},O);this.handleLockedAtom(P.EntityFlagAtom={},O);this.handleEntityOutlinerAtom(P.EntityOutlinerAtom={},O);const Q=g(this.AesRTBaseInfoAtom,O,this.#getKeys(this.AesRTBaseInfoAtom));if(!i(Q))P.AesRTBaseInfoAtom=Q;const R=g(this.AesRTGeoJsonAtom,O,this.#getKeys(this.AesRTGeoJsonAtom));if(!i(R))P.AesRTGeoJsonAtom=R;const S=g(this.AesRTVisibleAtom,O,this.#getKeys(this.AesRTVisibleAtom));if(!i(S))P.AesRTVisibleAtom=S;const T=g(this.AesRTVectorInfoAtom,O,this.#baseType),U=_b(O,this.#geometryType),V={...T,...U};P.AesRTVectorInfoAtom={layerId:O?.layerId||"",syltePresets:V};return P}middlewareApi(O,P){return n(this,O,P,{overrideParamsMap:{AesRTSetVectorLayerVisible:(Q)=>({bVisible:Q}),AesRTLayerSetOffset:(Q)=>({bInit:!1,offset:Q}),AesRTLayerSetRotation:(Q)=>({bInit:!1,...Q}),AesRTVectorUpdateStyle:(Q)=>({style:Q}),OnAesRTClickEvent:(Q)=>({clickType:Q})},atomUpdaters:{AesRTLayerSetOffset:(Q,R)=>{const S=Q.pivotOffset??[0,0,0],T=R.offset??[0,0,0];Q.pivotOffset=S.map((U,V)=>U+(T[V]||0))},AesRTLayerSetRotation:(Q,R)=>{Q.rotator=R.rotation}},eventHandlers:{OnAesRTClickEvent:(Q,R)=>{Q.obj.aesrt.Vector.eventType=R}}})}}}}}),Gb={};b(Gb,{default:()=>Ib});var Hb,Ib,Jb=a(()=>{Mb(),Hb=class{static extendsCore(M,N){return class O extends M{constructor(P){super(P,Lb.extendsCore(N)),this.setType("WMSFree")}}}},Ib=Hb}),Kb={};b(Kb,{default:()=>Lb});var Lb,Mb=a(()=>{k(),m(),o(),q(),s(),Lb=class{static extendsCore(M){return class N extends M{className="WMSFree";#apiClassName="AesRTBaseAPI";#logger=r.getInstance();#timestamp=Date.now();#getKeys=(O)=>Object.keys(O);AesRTBaseInfoAtom={heads:{time:this.#timestamp,token:j(20)},url:"",type:"wms"};AesRTRasterInfoAtom={model:"add"};AesRTVisibleAtom={bVisible:!0};AesRTWMSInfoAtom={layerId:"",crs:"",style:""};constructor(O){super();this.oType="WMSFree";this.type=p.get(this.oType);this.setObjAtom(this);if(O)this.SetData(O),this.addNewScheme={EntityType:this.type,...this.generateAtomData(O)};l("wmsfree",this)}get apiClassName(){return this.#apiClassName}OnClickEvent(O){this.obj.aesrt.Vector.clickFun=O,window.aesrtRegisterSceneEvents({})}GetScheme(){return{AssetAtom:this.AssetAtom,AesRTBaseInfoAtom:this.AesRTBaseInfoAtom,AesRTRasterInfoAtom:this.AesRTRasterInfoAtom,AesRTVisibleAtom:this.AesRTVisibleAtom,AesRTWMSInfoAtom:this.AesRTWMSInfoAtom}}GetData(){return{...this.getEid(),...this.getTransformData(),...this.getBasicData(),...this.getOtherData(),...this.AssetAtom,baseInfo:this.AesRTBaseInfoAtom,rasterInfo:this.AesRTRasterInfoAtom,wmsInfo:this.AesRTWMSInfoAtom,entityType:this.oType}}SetData(O){this.setEid(O),this.setTransformData(O),this.setBasicData(O),this.setVisibleData(O),this.setLockedData(O),this.setIndexData(O),f(this.AesRTBaseInfoAtom,O),f(this.AesRTRasterInfoAtom,O),f(this.AesRTVisibleAtom,O),f(this.AesRTWMSInfoAtom,O)}generateAtomData(O){const P={};this.handleBasicAtom(P.BasicInfoAtom={},O);this.handleTransformAtom(P.TransformAtom={},O);this.handleLockedAtom(P.EntityFlagAtom={},O);this.handleEntityOutlinerAtom(P.EntityOutlinerAtom={},O);const Q=g(this.AesRTBaseInfoAtom,O,this.#getKeys(this.AesRTBaseInfoAtom));if(!i(Q))P.AesRTBaseInfoAtom=Q;const R=g(this.AesRTRasterInfoAtom,O,this.#getKeys(this.AesRTRasterInfoAtom));if(!i(R))P.AesRTRasterInfoAtom=R;const S=g(this.AesRTVisibleAtom,O,this.#getKeys(this.AesRTVisibleAtom));if(!i(S))P.AesRTVisibleAtom=S;const T=g(this.AesRTWMSInfoAtom,O,this.#getKeys(this.AesRTWMSInfoAtom));if(!i(T))P.AesRTWMSInfoAtom=T;const U=P.AesRTRasterInfoAtom;if(U?.model==="height")U.model="elevation",this.AesRTRasterInfoAtom.model="elevation";return P}middlewareApi(O,P){return n(this,O,P,{overrideParamsMap:{AesRTSetRasterLayerVisible:(Q)=>({bVisible:Q}),AesRTLayerSetOffset:(Q)=>({bInit:!1,offset:Q}),AesRTLayerSetRotation:(Q)=>({bInit:!1,...Q}),AesRTSetLayerToTop:(Q)=>({layerName:""}),OnAesRTClickEvent:(Q)=>({clickType:Q})},atomUpdaters:{AesRTLayerSetOffset:(Q,R)=>{const S=Q.pivotOffset??[0,0,0],T=R.offset??[0,0,0];Q.pivotOffset=S.map((U,V)=>U+(T[V]||0))},AesRTLayerSetRotation:(Q,R)=>{Q.rotator=R.rotation}},eventHandlers:{OnAesRTClickEvent:(Q,R)=>{Q.obj.aesrt.Vector.eventType=R}}})}}}}}),Nb={};b(Nb,{default:()=>Pb});var Ob,Pb,Qb=a(()=>{Tb(),Ob=class{static extendsCore(M,N){return class O extends M{constructor(P){super(P,Sb.extendsCore(N)),this.setType("TilesFree")}}}},Pb=Ob}),Rb={};b(Rb,{default:()=>Sb});var Sb,Tb=a(()=>{k(),m(),o(),q(),s(),Sb=class{static extendsCore(M){return class N extends M{className="TilesFree";#apiClassName="AesRTBaseAPI";#logger=r.getInstance();#timestamp=Date.now();#getKeys=(O)=>Object.keys(O);AesRTBaseInfoAtom={heads:{time:this.#timestamp,token:j(20)},url:"",type:"3dtiles"};AesRTVisibleAtom={bVisible:!0};AesRTColorInfoAtom={bActive:!1,color:"ffffff"};constructor(O){super();this.oType="TilesFree";this.type=p.get(this.oType);this.setObjAtom(this);if(O)this.SetData(O),this.addNewScheme={EntityType:this.type,...this.generateAtomData(O)};l("tilesfree",this)}get apiClassName(){return this.#apiClassName}OnClickEvent(O){this.obj.aesrt.Vector.clickFun=O,window.aesrtRegisterSceneEvents({})}GetScheme(){return{AssetAtom:this.AssetAtom,AesRTBaseInfoAtom:this.AesRTBaseInfoAtom,AesRTVisibleAtom:this.AesRTVisibleAtom,AesRTColorInfoAtom:this.AesRTColorInfoAtom}}GetData(){return{...this.getEid(),...this.getTransformData(),...this.getBasicData(),...this.getOtherData(),...this.AssetAtom,baseInfo:this.AesRTBaseInfoAtom,colorInfo:this.AesRTColorInfoAtom,entityType:this.oType}}SetData(O){this.setEid(O),this.setTransformData(O),this.setBasicData(O),this.setVisibleData(O),this.setLockedData(O),this.setIndexData(O),f(this.AesRTBaseInfoAtom,O),f(this.AesRTVisibleAtom,O),f(this.AesRTColorInfoAtom,O)}generateAtomData(O){const P={};this.handleBasicAtom(P.BasicInfoAtom={},O);this.handleTransformAtom(P.TransformAtom={},O);this.handleLockedAtom(P.EntityFlagAtom={},O);this.handleEntityOutlinerAtom(P.EntityOutlinerAtom={},O);const Q=g(this.AesRTBaseInfoAtom,O,this.#getKeys(this.AesRTBaseInfoAtom));if(!i(Q))P.AesRTBaseInfoAtom=Q;const R=g(this.AesRTColorInfoAtom,O,this.#getKeys(this.AesRTColorInfoAtom));if(!i(Q))P.AesRTColorInfoAtom=R;const S=g(this.AesRTVisibleAtom,O,this.#getKeys(this.AesRTVisibleAtom));if(!i(S))P.AesRTVisibleAtom=S;return P}middlewareApi(O,P){return n(this,O,P,{overrideParamsMap:{AesRTSetVectorLayerVisible:(Q)=>({bVisible:Q}),AesRTLayerSetOffset:(Q)=>({bInit:!1,offset:Q}),AesRTLayerSetRotation:(Q)=>({bInit:!1,...Q}),OnAesRTClickEvent:(Q)=>({clickType:Q})},atomUpdaters:{AesRTLayerSetOffset:(Q,R)=>{const S=Q.pivotOffset??[0,0,0],T=R.offset??[0,0,0];Q.pivotOffset=S.map((U,V)=>U+(T[V]||0))},AesRTLayerSetRotation:(Q,R)=>{Q.rotator=R.rotation}},eventHandlers:{OnAesRTClickEvent:(Q,R)=>{Q.obj.aesrt.Vector.eventType=R}}})}}}}}),Ub={};b(Ub,{default:()=>Wb});var Vb,Wb,Xb=a(()=>{Ka(),Vb=class{static extendsCore(M,N){return class O extends M{constructor(P){super(P,Ja.extendsCore(N)),this.setType("WMS")}}}},Wb=Vb}),Yb={};b(Yb,{default:()=>Zb});var Zb,$b=a(()=>{k(),m(),o(),q(),s(),Zb=class{static extendsCore(M){return class N extends M{className="TiffFree";#apiClassName="AesRTBaseAPI";#logger=r.getInstance();#timestamp=Date.now();#getKeys=(O)=>Object.keys(O);AesRTBaseInfoAtom={heads:{time:this.#timestamp,token:j(20)},url:"",type:"tiff"};AesRTRasterInfoAtom={model:"add"};AesRTVisibleAtom={bVisible:!0};AesRTTiffInfoAtom={tiffPresets:{colorRamp:[],minValue:0,maxValue:1}};constructor(O){super();this.oType="TiffFree";this.type=p.get(this.oType);this.setObjAtom(this);if(O)this.SetData(O),this.addNewScheme={EntityType:this.type,...this.generateAtomData(O)};l("tifffree",this)}get apiClassName(){return this.#apiClassName}OnClickEvent(O){this.obj.aesrt.Vector.clickFun=O,window.aesrtRegisterSceneEvents({})}GetScheme(){return{AssetAtom:this.AssetAtom,AesRTBaseInfoAtom:this.AesRTBaseInfoAtom,AesRTRasterInfoAtom:this.AesRTRasterInfoAtom,AesRTVisibleAtom:this.AesRTVisibleAtom,AesRTTiffInfoAtom:this.AesRTTiffInfoAtom}}GetData(){return{...this.getEid(),...this.getTransformData(),...this.getBasicData(),...this.getOtherData(),...this.AssetAtom,baseInfo:this.AesRTBaseInfoAtom,rasterInfo:this.AesRTRasterInfoAtom,tiffInfo:this.AesRTTiffInfoAtom,entityType:this.oType}}SetData(O){this.setEid(O),this.setTransformData(O),this.setBasicData(O),this.setVisibleData(O),this.setLockedData(O),this.setIndexData(O),f(this.AesRTBaseInfoAtom,O),f(this.AesRTRasterInfoAtom,O),f(this.AesRTVisibleAtom,O),f(this.AesRTTiffInfoAtom,O)}generateAtomData(O){const P={};this.handleBasicAtom(P.BasicInfoAtom={},O);this.handleTransformAtom(P.TransformAtom={},O);this.handleLockedAtom(P.EntityFlagAtom={},O);this.handleEntityOutlinerAtom(P.EntityOutlinerAtom={},O);const Q=g(this.AesRTBaseInfoAtom,O,this.#getKeys(this.AesRTBaseInfoAtom));if(!i(Q))P.AesRTBaseInfoAtom=Q;const R=g(this.AesRTRasterInfoAtom,O,this.#getKeys(this.AesRTRasterInfoAtom));if(!i(R))P.AesRTRasterInfoAtom=R;const S=g(this.AesRTVisibleAtom,O,this.#getKeys(this.AesRTVisibleAtom));if(!i(S))P.AesRTVisibleAtom=S;const T=g(this.AesRTTiffInfoAtom,O,this.#getKeys(this.AesRTTiffInfoAtom));if(!i(T))P.AesRTTiffInfoAtom=T;const U=P.AesRTRasterInfoAtom;if(U?.model==="height")U.model="elevation",this.AesRTRasterInfoAtom.model="elevation";return P}middlewareApi(O,P){return n(this,O,P,{overrideParamsMap:{AesRTSetRasterLayerVisible:(Q)=>({bVisible:Q}),AesRTLayerSetOffset:(Q)=>({bInit:!1,offset:Q}),AesRTLayerSetRotation:(Q)=>({bInit:!1,...Q}),OnAesRTClickEvent:(Q)=>({clickType:Q})},atomUpdaters:{AesRTLayerSetOffset:(Q,R)=>{const S=Q.pivotOffset??[0,0,0],T=R.offset??[0,0,0];Q.pivotOffset=S.map((U,V)=>U+(T[V]||0))},AesRTLayerSetRotation:(Q,R)=>{Q.rotator=R.rotation}},eventHandlers:{OnAesRTClickEvent:(Q,R)=>{Q.obj.aesrt.Vector.eventType=R}}})}}}}});function _b(M,N){const O={},P=N.filter((Q)=>Q in M);if(P.length===0)throw new Error(`${N.join(", ")} field value is invalid`);for(const Q of P)O[Q]=M[Q];return O}function f(M,N){for(const O of Object.keys(M))if(O in N)M[O]=N[O]}function g(M,N,O){const P={};for(const Q of O)if(N[Q]!==void 0)P[Q]=N[Q];else if(M[Q]!==void 0)P[Q]=M[Q];return P}var h,i,j,k=a(()=>{h=(()=>{let M=!1,N=[];return(O,P,Q)=>{if(!M)N=Object.keys(O),M=!0;for(const R of Q)if(O.hasOwnProperty(R))delete O[R];for(const R of N)if(P.hasOwnProperty(R))O[R]=P[R]}})(),i=(M)=>Object.keys(M).length===0,j=(M=32)=>{const N=crypto.getRandomValues(new Uint8Array(M));return[...N].map((O)=>O.toString(16).padStart(2,"0")).join("")}}),ac,bc,l,m=a(()=>{lc(),nc(),ac=(M)=>Object.fromEntries(Object.entries(kc).filter(([,{entities:N}])=>N.includes(M)).map(([N,O])=>[N,O.api])),bc=(M,N)=>({methods:ac(N),getApiClassName:()=>M.getApiClassName?.()??M.apiClassName??(()=>{throw new Error("apiClassName is required")})(),middlewareApi:M.middlewareApi.bind(M),startApi:(O,P)=>M.startApi(M.getApiClassName?.()??M.apiClassName,O,P),setMethod:(O,P)=>{M[O]=P},getEid:()=>M.eid}),l=(M,N)=>{const O=bc(N,M);mc(N,O,Object.fromEntries(Object.entries(kc).map(([P,Q])=>[P,Q.api])));return O}});async function n(M,N,O,P){if(!M.eid)return Promise.reject({success:!1,message:"Invalid entity eid"});const {overrideParamsMap:Q={},atomUpdaters:R={},eventHandlers:S={},methodModelRules:T={}}=P,U={...cc,...T},V=U[N],W=M.AesRTRasterInfoAtom?.model;if(W&&V&&!V(W))return Promise.reject({success:!1,message:W==="add"?"Only supported for model: cover":"Only supported for model: add"});let X=Q[N]?.(O)??O;if(S[N])S[N](M,O,X);const Y={entityType:M.type,eid:M.eid,...X};if(N==="AesRTVectorUpdateStyle"){const {vectorInfo:$}=M.GetData()||{},_=X.style??{};X.style={..._,geometryType:_.geometryType??$?.geometryType,zType:_.zType??$?.zType,z:_.z??$?.z}}if(N==="AesRTVectorUpdateStyle")M.atomObj.SetData(X.style);else M.atomObj.SetData(Y);const Z=R[N];if(Z&&M.atomObj?.GetData){const $=M.atomObj.GetData();Z($,Y);M.atomObj.SetData($)}if(N==="AesRTGetFeatureProperty"&&Array.isArray(O?.fid)){const $={entityType:M.type,eid:M.eid};return{success:!0,message:"",result:await Promise.all(O.fid.map((_)=>M.StartApi(M.apiClassName,N,{...$,fid:_}).then((re)=>re.result??null)))}}return M.StartApi(M.apiClassName,N,Y)}var cc,o=a(()=>{cc={AesRTSetLayerToTop:(M)=>M!=="add"&&M!=="elevation",AesRTLayerSetOffset:(M)=>M==="add",AesRTLayerSetRotation:(M)=>M==="add"}}),p,q=a(()=>{p=new Map([["WMS","AesRTWMSLayerEntity"],["WMTS","AesRTWMTSLayerEntity"],["WFS","AesRTWFSLayerEntity"],["WCS","AesRTWCSLayerEntity"],["Tiff","AesRTTiffLayerEntity"],["TilesLayer","AesRTTilesLayerEntity"],["Vector","AesRTGeoJsonLayerEntity"],["VectorFree","AesRTShpBaseEntity"],["WMSFree","AesRTWMSBaseEntity"],["TiffFree","AesRTTiffBaseEntity"],["TilesFree","AesRTTilesBaseEntity"]])}),r,s=a(()=>{r=class M{static instance;#logStyles={base:"color: black; border-radius: 3px 0 0 3px; padding: 2px 2px 1px 10px;",tag:"border-radius: 0 3px 3px 0; padding: 2px 10px 1px 2px;"};constructor(){}static getInstance(){if(!M.instance)M.instance=new M();return M.instance}formatTime(){const N=new Date();return`${N.toLocaleTimeString()}.${N.getMilliseconds()}`}log(N,O,P,Q,R){console.group(`%cDebugger %c ${P}`,`${this.#logStyles.base}background: ${O};`,`${this.#logStyles.tag}background: ${O}40;`);for(const S of R)console.log(`%c${Q}[${N.toUpperCase()} ${this.formatTime()}]:::`,`color: ${O}`,S);console.groupEnd()}error(N,...O){this.log("error","#ff4d4f",N,"β",O)}info(N,...O){this.log("info","#00dc82",N,"π",O)}warn(N,...O){this.log("warn","#faad14",N,"π₯",O)}}});function dc(M){try{return new URL(M),!0}catch{return!1}}var ec,fc,gc,hc,ic=a(()=>{fd(),Ha(),ec={WMS:new ed(),WMTS:new Ga()},fc=new Map(),gc=3e5,hc=async(M,N,O=gc)=>{if(!dc(M))return{success:!1,message:"URL ιζ³οΌθ―·ζδΎζζη URLγ",result:null};const P=`${M}::${N}`,Q=Date.now(),R=fc.get(P);if(R&&Q-R.timestamp<O)return R.promise;const S=ec[N];if(!S)return{success:!1,message:`δΈζ―ζηζε‘η±»εοΌ${N}`,result:null};const T=(async()=>{try{const U=await fetch(M);if(!U.ok)return{success:!1,message:`η½η»εεΊιθ――οΌηΆζη οΌ${U.status}`,result:null};const V=await U.text(),W=S.read(V);return{success:!0,result:W}}catch(U){return{success:!1,message:`θ·εζθ§£ζ ${N} GetCapabilities ζΆεΊιοΌ${U.message||"ζͺη₯ιθ――"}`,result:null}}})();fc.set(P,{timestamp:Q,promise:T});return T}}),t,jc,kc,lc=a(()=>{t=["vector","tiff","tiles","wcs","wfs","wms","wmts"],jc=["vectorfree","tifffree","tilesfree","wmsfree"],kc={GetLayerInfo:{api:"GetLayerInformation",entities:t},SetRasterVisible:{api:"AesRTSetRasterLayerVisible",entities:["tiff","wcs","wms","wmts"]},GetFeatureProperty:{api:"AesRTGetFeatureProperty",entities:["vector"]},SetFeatureVisible:{api:"AesRTFeatureVisible",entities:["vector","wfs"]},SetFeatureFocus:{api:"AesRTFocusFeature",entities:["vector","wfs"]},SetFeatureHighLight:{api:"SetAesRTHighLightFeatureParam",entities:["vector","vectorfree","wfs"]},SetLayerVisible:{api:"AesRTSetVectorLayerVisible",entities:["vector","wfs","tiles"]},SetLayerFocus:{api:"AesRTFocusLayer",entities:t},SetLayerOffset:{api:"AesRTLayerSetOffset",entities:[...t,"wmsfree","tifffree"]},SetLayerRotation:{api:"AesRTLayerSetRotation",entities:[...t,"wmsfree","tifffree"]},UpdateLayerStyle:{api:"AesRTVectorUpdateStyle",entities:["vector","wfs"]},SetLayerToTop:{api:"AesRTSetLayerToTop",entities:["tiff","wcs","wms","wmts"]},SetLayerClick:{api:"OnAesRTClickEvent",entities:[...t,...jc]}}});function mc