{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0',['pandav:/npm/bcore/0.0.18/event','pandav:/npm/react/17.0.2','pandav:/npm/react-dom/17.0.2','pandav:/npm/jquery/2.1.4','pandav:/npm/lodash/4.6.1','pandav:/com/smartCity/1.0.0/src/SmartCity'],function(a,b,c){var d=c('pandav:/npm/bcore/0.0.18/event'),e=c('pandav:/npm/react/17.0.2'),f=c('pandav:/npm/react-dom/17.0.2'),g=c('pandav:/npm/jquery/2.1.4'),h=c('pandav:/npm/lodash/4.6.1'),i=c('pandav:/com/smartCity/1.0.0/src/SmartCity'),j=i.SmartCity;return a.exports=d.extend(function(a,b){this.config={theme:{}},this.childrenConfig=[],this.container=a,this.apis=b.apis,this.containSize={boxWidth:g(a)&&g(a).width(),boxHeight:g(a)&&g(a).height()},this.init(b)},{init:function(a){this.mergeConfig(a)},add:function(a,b){a.addTo(this,b)},mergeConfig:function(a){var b;return a?(b=a,this.config=a):b=this.config,b.options.sceneConfig.scenes=function(a){return h.cloneDeepWith(a,function(a){return h.isPlainObject(a)&&h.has(a,'lng')&&h.has(a,'lat')?[a.lng,a.lat]:void 0})}(b.options.sceneConfig.scenes),b},updateOptions:function(a,b){'[object Object]'===Object.prototype.toString.call(b)&&(this.config=a),this.childrenConfig.forEach(function(c){c.id===b&&(c.config=a)}),this.render(this._data,this.config)},updateChildOptions:function(a){if(0a.length)&&(b=a.length);for(var c=0,d=Array(b);ce)},d.selectAction=function(a){if(a&&a.componentId&&a.componentId===g.id){var b=g.parent.props.emit;b&&b('click',g.data,g.id)}},d.props=a,d.id=a.id,d.config=a.configuration,d.data=a.data,d.parent=c,d.interaction=a.configuration.interaction,d.scene=c.extend.scene,d.camera=c.extend.camera,d.container=c.container,d.group=new y.Group,d.group.name='\\u81EA\\u5B9A\\u4E49\\u6A21\\u578B',d.scene.add(d.group),d.meterScale=c.threeLayer.distanceToVector3(0,1).y;var h=d.config.baseConfig.altitude;return d.group.position.z=d.meterScale*h,d.parent.map.on('zooming',d.onZoom),d.loadModel(d.addModel),d}return w(b,a),n(b,[{key:'loadModel',value:function b(a){var c=this.config.styleConfig.url;this.loadItem=O(this);var d=new G;d.setDecoderPath('/civ_pandaview_component/pandabi-component/assets/smartCity/draco/'),new E().setDRACOLoader(d).load(c,function(b){a(b.scene)},function(a){},function(a){console.log('\\u6A21\\u578B\\u52A0\\u8F7D\\u5F02\\u5E38',a)})}},{key:'animateToWrap',value:function a(){var b=this.wrap.position,c=this.config.baseConfig.system,d=this.VectorToLngLat(b),e=this.parent.reverseSystem(c,d);this.parent.map.animateTo({center:e})}},{key:'configModel',value:function a(){var b=this.wrap,c=this.config.baseConfig,d=c.system,e=c.depthTest,f=c.renderOrder,g=this.config.modelConfig,h=g.position,i=g.rotation,j=g.scale,k=h.lng,l=h.lat,m=h.height,n=this.parent.matchSystem(d,[k,l]),o=this.parent.threeLayer.coordinateToVector3(n,m*this.meterScale);b.position.copy(o),b.scale.set(j.x,j.y,j.z),b.rotation.set(L(i.x),L(i.y),L(i.z)),this.props.edit&&this.parent.map.animateTo({center:n}),b.traverse(function(a){a instanceof y.Mesh&&(Array.isArray(a.material)?a.material.map(function(a){a.transparent=!0}):a.material.transparent=!0)}),this.onZoom()}},{key:'VectorToLngLat',value:function b(a){var c=a.x,d=a.y,e=this.parent.map.getGLZoom(),f=this.parent.map.pointToCoordinate({x:c,y:d},e);return[f.x,f.y]}},{key:'getModelConfig',value:function a(){var b=this.wrap,c=b.position,d=b.rotation,e=b.scale,g=c.z/this.meterScale,h=this.config.baseConfig.system,i=this.VectorToLngLat(c),j=this.parent.reverseSystem(h,i),k=f(j,2),l=k[0],m=k[1];return{scale:{x:e.x,y:e.y,z:e.z},position:{lng:l,lat:m,height:g},rotation:{x:M(d.x),y:M(d.y),z:M(d.z)}}}},{key:'dispatchModelUpdate',value:function a(){var b=this.getModelConfig(),c=this.parent.updateConfig;c&&c({id:this.id,type:'config',payload:[{path:['modelConfig','position','lng'],value:b.position.lng},{path:['modelConfig','position','lat'],value:b.position.lat},{path:['modelConfig','position','height'],value:b.position.height},{path:['modelConfig','scale','x'],value:b.scale.x},{path:['modelConfig','scale','y'],value:b.scale.y},{path:['modelConfig','scale','z'],value:b.scale.z},{path:['modelConfig','rotation','x'],value:b.rotation.x},{path:['modelConfig','rotation','y'],value:b.rotation.y},{path:['modelConfig','rotation','z'],value:b.rotation.z}]})}},{key:'getSupportObjects',value:function a(){return this.wrap}},{key:'updateComponent',value:function b(a){var c=this.config,d=this.props;if(this.props=a,this.config=a.configuration,this.data=a.data,!R.isEqual(c,this.config)){var e=c.baseConfig.altitude,f=this.config.baseConfig.altitude,g=c.styleConfig.bloom,h=this.config.styleConfig.bloom;e===f?g===h?R.isEqual(c.styleConfig,this.config.styleConfig)?this.configModel():(this.dispose(),this.loadModel(this.addModel)):this.wrap.traverse(function(a){h?a.layers.enable(1):a.layers.disable(1)}):this.group.position.z=this.meterScale*f}}},{key:'dispose',value:function a(){this.wrap&&(this.wrap.parent.remove(this.wrap),C(this.wrap),this.wrap=null)}},{key:'destroy',value:function a(){this.group.parent.remove(this.group),B(this.group),this.group=null,this.parent.map.off('zooming',this.onZoom)}}]),b}(I);return a.exports={CustomModel:e},a.exports});", "requires": [ "pandav:/src/utils/childTemplate.js", "pandav:/src/utils/calc.js", "pandav:/src/utils/util.js" ], "buildLevel": 11, "outputDir": "/com/smartCity/1.0.0/src/children", "outputPath": "/com/smartCity/1.0.0/src/children/customModel.js", "fileName": "/src/children/customModel.js" }, "pandav:/src/children/directionalLight.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/children/directionalLight',['pandav:/npm/three/0.125.0/build/three.module','pandav:/com/common-utils/1.0.0','pandav:/com/smartCity/1.0.0/src/utils/childTemplate','pandav:/com/smartCity/1.0.0/src/utils/util','pandav:/com/smartCity/1.0.0/src/helper/DirectionalLightHelper','pandav:/npm/lodash/4.6.1'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;da.length)&&(b=a.length);for(var c=0,d=Array(b);ce?g.circles.map(function(a){return a.hide()}):g.circles.map(function(a){return a.show()})},d.triggerEvent=function(a){var b=g.parent.props.emit;b&&b('click',a,g.id)},d.id=a.id,d.config=a.configuration,d.data=a.data,d.parent=c,d.renderer=c.extend.renderer,d.circles=[],d.showData(),d.parent?.map?.on('zooming',d.onZoom),d}return w(b,a),n(b,[{key:'transData',value:function b(a){var c=this,e=this.config.baseConfig.system;return a.flatMap(function(a){var b=c.parent.matchSystem(e,[a.lng,a.lat]);return null==b[0]||null==b[1]?[]:Object.assign({},a,{},{coordinate:b})})}},{key:'showData',value:function a(){var b=this,c=this.config.baseConfig,d=c.depthTest,e=c.renderOrder,f=c.altitude,g=this.config.styleConfig,h=g.bloom,i=g.color,j=g.size,k=g.interval,l=this.parent.threeLayer,m=this.createMaterial({depthTest:d,bloom:h,color:i,size:j,interval:k}),n=this.transData(this.data);n.map(function(a,c){var g=new t(a,{bloom:h,color:i,size:j,interval:k,altitude:f},m,l),n=g.getObject3d();n.renderOrder=d?0:e,n.userData=a,n.interactive=!0,n.componentId=b.id,b.circles.push(g)}),l.addMesh(this.circles)}},{key:'createMaterial',value:function b(a){var c=a.depthTest,d=a.color;return new y.ShaderMaterial(Object.assign({},J,{blending:y.AdditiveBlending,transparent:!0,depthTest:c,side:y.DoubleSide,depthWrite:!1,uniforms:{time:{value:0},color:{value:new y.Color(d.toLocaleLowerCase())},fogColor:{value:new y.Color},fogDensity:{value:0}}}))}},{key:'updateComponent',value:function b(a){var c=this.config,d=this.data;this.config=a.configuration,this.data=a.data,K.isEqual(c,this.config)&&K.isEqual(d,this.data)||(this.dispose(),this.showData())}},{key:'dispose',value:function a(){this.circles.map(function(a){return a.remove().dispose()}),this.circles=[]}},{key:'destroy',value:function a(){this.dispose(),this.parent.map?.off('zooming',this.onZoom)}}]),b}(E),t=function(a){function b(a,c,d,e){var f;l(this,b),f=q(this,b),c=F.Util.extend({},c,{layer:e,data:a}),f._initOptions(c),f._createGroup(),f.material=d;var g=c,h=g.size,i=g.bloom,j=g.depthTest,k=g.renderOrder,m=a.height,n=void 0===m?0:m,o=f.getObject3d(),p=new y.PlaneBufferGeometry(h,h),r=new y.Mesh(p,d);i&&r.layers.enable(1),r.renderOrder=j?0:k,o.add(r);var s=e.distanceToVector3(n,n).x,t=e.coordinateToVector3(a.coordinate,s);return o.position.copy(t),f}return w(b,a),n(b,[{key:'_animation',value:function b(a){var c=this.getOptions(),d=c.interval;this.material&&(this.material.uniforms.time.value+=d)}},{key:'dispose',value:function a(){C(this.getObject3d())}}]),b}(H);return a.exports={ImpactCircle:e},a.exports});", "requires": [ "pandav:/src/utils/childTemplate.js", "pandav:/src/shaders/impact.js" ], "buildLevel": 16, "outputDir": "/com/smartCity/1.0.0/src/children", "outputPath": "/com/smartCity/1.0.0/src/children/impactCircle.js", "fileName": "/src/children/impactCircle.js" }, "pandav:/src/children/infoPanel.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/children/infoPanel',['pandav:/npm/three/0.125.0/build/three.module','pandav:/com/smartCity/1.0.0/src/template/LoopBoard','pandav:/com/smartCity/1.0.0/src/utils/util'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function j(){\"use strict\";function b(a,b,c){return Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}),a[b]}function k(b,d,e,f){var g=d&&d.prototype instanceof q?d:q,h=Object.create(g.prototype),a=new F(f||[]);return J(h,'_invoke',{value:B(b,e,a)}),h}function m(a,b,c){try{return{type:'normal',arg:a.call(b,c)}}catch(a){return{type:'throw',arg:a}}}function q(){}function w(){}function x(){}function z(a){['next','throw','return'].forEach(function(c){b(a,c,function(a){return this._invoke(c,a)})})}function A(b,f){function c(e,g,j,i){var a=m(b[e],b,g);if('throw'!==a.type){var k=a.arg,l=k.value;return l&&'object'==d(l)&&t.call(l,'__await')?f.resolve(l.__await).then(function(a){c('next',a,j,i)},function(a){c('throw',a,j,i)}):f.resolve(l).then(function(a){k.value=a,j(k)},function(a){return c('throw',a,j,i)})}i(a.arg)}var e;J(this,'_invoke',{value:function d(a,b){function g(){return new f(function(d,e){c(a,b,d,e)})}return e=e?e.then(g,g):g()}})}function B(a,b,d){var e='suspendedStart';return function(f,g){if('executing'===e)throw new Error('Generator is already running');if('completed'===e){if('throw'===f)throw g;return{value:H,done:!0}}for(d.method=f,d.arg=g;;){var h=d.delegate;if(h){var i=C(h,d);if(i){if(i===s)continue;return i}}if('next'===d.method)d.sent=d._sent=d.arg;else if('throw'===d.method){if('suspendedStart'===e)throw e='completed',d.arg;d.dispatchException(d.arg)}else'return'===d.method&&d.abrupt('return',d.arg);e='executing';var j=m(a,b,d);if('normal'===j.type){if(e=d.done?'completed':'suspendedYield',j.arg===s)continue;return{value:j.arg,done:d.done}}'throw'===j.type&&(e='completed',d.method='throw',d.arg=j.arg)}}}function C(b,c){var d=c.method,e=b.iterator[d];if(e===H)return c.delegate=null,'throw'===d&&b.iterator.return&&(c.method='return',c.arg=H,C(b,c),'throw'===c.method)||'return'!==d&&(c.method='throw',c.arg=new TypeError('The iterator does not provide a \\''+d+'\\' method')),s;var f=m(e,b.iterator,c.arg);if('throw'===f.type)return c.method='throw',c.arg=f.arg,c.delegate=null,s;var g=f.arg;return g?g.done?(c[b.resultName]=g.value,c.next=b.nextLoc,'return'!==c.method&&(c.method='next',c.arg=H),c.delegate=null,s):g:(c.method='throw',c.arg=new TypeError('iterator result is not an object'),c.delegate=null,s)}function D(a){var b={tryLoc:a[0]};1 in a&&(b.catchLoc=a[1]),2 in a&&(b.finallyLoc=a[2],b.afterLoc=a[3]),this.tryEntries.push(b)}function E(a){var b=a.completion||{};b.type='normal',delete b.arg,a.completion=b}function F(a){this.tryEntries=[{tryLoc:'root'}],a.forEach(D,this),this.reset(!0)}function G(a){if(a||''===a){var b=a[K];if(b)return b.call(a);if('function'==typeof a.next)return a;if(!isNaN(a.length)){var c=-1,e=function b(){for(;++ca.length)&&(b=a.length);for(var c=0,d=Array(b);ca.length)&&(b=a.length);for(var c=0,d=Array(b);c=a.floorRange.min&&h=a.length?{done:!0}:{done:!1,value:a[d++]}},e:function b(a){throw a},f:e}}throw new TypeError('Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}var f,g=!0,h=!1;return{s:function b(){c=c.call(a)},n:function a(){var b=c.next();return g=b.done,b},e:function b(a){h=!0,f=a},f:function a(){try{g||null==c.return||c.return()}finally{if(h)throw f}}}}function j(a,b){return o(a)||n(a,b)||l(a,b)||k()}function k(){throw new TypeError('Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}function l(a,b){if(a){if('string'==typeof a)return m(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?m(a,b):void 0}}function m(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);ce?f.fences.map(function(a){return a.hide()}):f.fences.map(function(a){return a.show()})},d.triggerEvent=function(a){var b=f.parent.props.emit;b&&b('click',[Object.assign({},a)],f.id)},d.id=a.id,d.config=a.configuration,d.data=a.data,d.parent=c,d.interaction=a.configuration.interaction,d.scene=c.extend.scene,d.fences=[],d.showData(),d.parent.map.on('zooming',f.onZoom),d}return A(b,a),r(b,[{key:'showData',value:function a(){var b=this,c=this.config.styleConfig.url;c?(this.loadItem=T(this),fetch(''.concat(c)).then(function(a){return a.json()}).then(function(a){var c,d=i(a.features);try{for(d.s();!(c=d.n()).done;){var f,g=c.value,h=b.createMultipleFence(g);(f=b.fences).push.apply(f,e(h))}}catch(a){d.e(a)}finally{d.f()}b.parent.threeLayer.addMesh(b.fences),b.onZoom(),b.loadItem.loaded=!0,b.parent.checkLoading()})):(this.data.forEach(function(a){a.features&&a.features.map(function(a){var b,c=this.createMultipleFence(a);(b=this.fences).push.apply(b,e(c))})}),this.parent.threeLayer.addMesh(this.fences),this.onZoom())}},{key:'createMultipleFence',value:function b(a){var c=this,d=[],e=a.geometry.type,f=a.properties,g=void 0===f?{}:f,h=this.config,i=h.baseConfig,j=h.styleConfig,k=j.defaultStyle,l=j.styles,m=j.styleType,n=j;switch('default'==m&&(n=Object.assign({},j,k[l])),e){case'MultiPolygon':a.geometry.coordinates.forEach(function(a){a.forEach(function(a){var b=new $(a,i,n,c.parent);b.on('click',function(){return c.triggerEvent(g)}),d.push(b)})});break;case'Polygon':case'MultiLineString':a.geometry.coordinates.forEach(function(a){var b=new $(a,i,n,c.parent);b.on('click',function(){return c.triggerEvent(g)}),d.push(b)});break;case'LineString':var o=new $(a.geometry.coordinates,i,n,this.parent);o.on('click',function(){return c.triggerEvent(g)}),d.push(o)}return d}},{key:'updateComponent',value:function b(a){var c=this.config,d=this.data;this.config=a.configuration,this.data=a.data,X.isEqual(c,this.config)&&X.isEqual(d,this.data)||(this.dispose(),this.showData())}},{key:'dispose',value:function a(){this.parent.threeLayer.removeMesh(this.fences),this.fences.map(function(a){return a.dispose()}),this.fences=[]}},{key:'destroy',value:function a(){this.dispose(),this.parent.map.off('zooming',this.onZoom)}}]),b}(N),$=function(a){function b(a,c,d,e){var f;p(this,b),f=v(this,b);var g=z(f);f.createMat=function(a,b){var c=a.depthTest,d=b.fillType;return'color'==d?C(c,b):'video'==d?D(c,b):void 0},f.createGeo=function(a,b,c,d){var e=b.system,f=c.fillType,g=c.height,h=c.width,j=c.mirror,k=[],l=[],m=[],o=0;if('color'==f)for(var p=0;p y-axis, [-pi/2, pi/2]\\n float phi = atan( direction.z, direction.x ); // azimuth --> x-axis [-pi/2, pi/2]\\n vec2 uv = vec2( phi, theta ) / vec2( 2.0 * pi, pi ) + vec2( 0.5, 0.0 );\\n vec3 L0 = vec3( 0.1 ) * Fex;\\n float sundisk = smoothstep( sunAngularDiameterCos, sunAngularDiameterCos + 0.00002, cosTheta );\\n L0 += ( vSunE * 19000.0 * Fex ) * sundisk;\\n vec3 texColor = ( Lin + L0 ) * 0.04 + vec3( 0.0, 0.0003, 0.00075 );\\n vec3 retColor = pow( texColor, vec3( 1.0 / ( 1.2 + ( 1.2 * vSunfade ) ) ) );\\n gl_FragColor = vec4( retColor, 1.0 );\\n if(clip) {\\n float rate = gl_FragCoord.y / height;\\n float maxOffset = 0.265;\\n if(pitch < 70. || rate < 1. - (pitch - 70.) / 10. * maxOffset) discard;\\n };\\n #include \\n #include \\n }'},a.exports={Sky:z},a.exports});", "requires": [], "buildLevel": 9, "outputDir": "/com/smartCity/1.0.0/src/mainEffect", "outputPath": "/com/smartCity/1.0.0/src/mainEffect/Sky.js", "fileName": "/src/mainEffect/Sky.js" }, "pandav:/src/shaders/fence.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/shaders/fence',['pandav:/npm/three/0.125.0/build/three.module'],function(a,b,c){var d=c('pandav:/npm/three/0.125.0/build/three.module'),e={uniforms:{time:{value:0,interval:1},offset:{value:0},lineColor:{value:new d.Color('#0000ff')},lineOpacity:{value:1},bottomColor:{value:new d.Color('#F5D827')},bottomOpacity:{value:1},topColor:{value:new d.Color('#FFFFFF')},topOpacity:{value:.3},lineLength:{value:.3}},fragmentShader:'\\n #include \\n #include \\n\\n varying vec2 vUv;\\n uniform float time;\\n uniform float offset;\\n\\n uniform vec3 lineColor;\\n uniform float lineOpacity;\\n\\n uniform vec3 bottomColor;\\n uniform float bottomOpacity;\\n\\n uniform vec3 topColor;\\n uniform float topOpacity;\\n\\n uniform float lineLength;\\n uniform bool animation;\\n\\n void main(){\\n #include \\n float start = time * 0.0005 + offset;\\n start = fract(start) * (1.0 + lineLength) - lineLength;\\n float end = start + lineLength;\\n float offset = end - vUv.y;\\n\\n if(animation) {\\n if(offset < 0.0 || offset > lineLength) {\\n gl_FragColor = vec4(mix(bottomColor, topColor, vUv.y), mix(bottomOpacity, topOpacity, vUv.y));\\n } else {\\n gl_FragColor = vec4(lineColor, lineOpacity);\\n }\\n } else {\\n gl_FragColor = vec4(mix(bottomColor, topColor, vUv.y), mix(bottomOpacity, topOpacity, vUv.y));\\n }\\n\\n #include \\n }\\n',vertexShader:'\\n #include \\n #include \\n #include \\n\\n varying vec2 vUv;\\n\\n void main(){\\n #include \\n #include \\n \\n vUv = uv;\\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\\n\\n #include \\n #include \\n }\\n'};return a.exports={fenceShader:e},a.exports});", "requires": [], "buildLevel": 4, "outputDir": "/com/smartCity/1.0.0/src/shaders", "outputPath": "/com/smartCity/1.0.0/src/shaders/fence.js", "fileName": "/src/shaders/fence.js" }, "pandav:/src/children/streamer.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/children/streamer',['pandav:/npm/three/0.125.0/build/three.module','pandav:/com/common-utils/1.0.0','pandav:/com/smartCity/1.0.0/src/utils/childTemplate','pandav:/npm/maptalks/1.2.1/build/maptalks','pandav:/npm/maptalks.three/0.39.0/dist/maptalks.three','pandav:/com/smartCity/1.0.0/src/utils/calc','pandav:/com/smartCity/1.0.0/src/utils/util','pandav:/com/smartCity/1.0.0/src/shaders/flyLine','pandav:/npm/lodash/4.6.1'],function(a,b,c){var e=Math.PI,f=Math.atan2;function g(a){\"@babel/helpers - typeof\";return g='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},g(a)}function h(a,b){var c='undefined'!=typeof Symbol&&a[Symbol.iterator]||a['@@iterator'];if(!c){if(Array.isArray(a)||(c=k(a))||b&&a&&'number'==typeof a.length){c&&(a=c);var d=0,e=function a(){};return{s:e,n:function b(){return d>=a.length?{done:!0}:{done:!1,value:a[d++]}},e:function b(a){throw a},f:e}}throw new TypeError('Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}var f,g=!0,h=!1;return{s:function b(){c=c.call(a)},n:function a(){var b=c.next();return g=b.done,b},e:function b(a){h=!0,f=a},f:function a(){try{g||null==c.return||c.return()}finally{if(h)throw f}}}}function i(a,b){return n(a)||m(a,b)||k(a,b)||j()}function j(){throw new TypeError('Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}function k(a,b){if(a){if('string'==typeof a)return l(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?l(a,b):void 0}}function l(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);ck?k+=2*e:k>2*e&&(k-=2*e);var l=k/2+i,m=b*h(l)+c.x,n=b*d(l)+c.y;return{x:2*c.x-m,y:2*c.y-n}}function B(a,b){var c=[],d=[],e=[],f=a.length;a.forEach(function(g,h){var i=h/(f-1);if(e.push(i,0),e.push(i,1),0===h){var j=a[h+1],k={x:2*g.x-j.x,y:2*g.y-j.y},l=A(g,k,j,-b),m=A(g,k,j,b);c.push(l.x,l.y,0),c.push(m.x,m.y,0)}else if(h===f-1){var n=a[h-1],o={x:2*g.x-n.x,y:2*g.y-n.y},p=A(g,n,o,-b),q=A(g,n,o,b);c.push(p.x,p.y,0),c.push(q.x,q.y,0),d.push(2*h-2,2*h,2*h-1,2*h-1,2*h,2*h+1)}else{var r=a[h-1],s=a[h+1],t=A(g,r,s,-b),u=A(g,r,s,b);c.push(t.x,t.y,0),c.push(u.x,u.y,0),d.push(2*h-2,2*h,2*h-1,2*h-1,2*h,2*h+1)}});var g=new C.BufferGeometry;return g.setIndex(d),g.setAttribute('position',new C.Float32BufferAttribute(c,3)),g.setAttribute('uv',new C.Float32BufferAttribute(e,2)),g}var C=c('pandav:/npm/three/0.125.0/build/three.module'),D=c('pandav:/com/common-utils/1.0.0'),E=D.disposeMaterial,F=D.deepDisposeGroup,G=D.deepDispose,H=c('pandav:/com/smartCity/1.0.0/src/utils/childTemplate'),I=H.ChildTemplate,J=c('pandav:/npm/maptalks/1.2.1/build/maptalks'),K=c('pandav:/npm/maptalks.three/0.39.0/dist/maptalks.three'),L=K.BaseObject,M=c('pandav:/com/smartCity/1.0.0/src/utils/calc'),N=M.calculatePolygonCentroid,O=c('pandav:/com/smartCity/1.0.0/src/utils/util'),P=O.getLoadItem,Q=O.getColor,R=O.transformGeo2Center,S=O.createPureTextTexture,T=c('pandav:/com/smartCity/1.0.0/src/shaders/flyLine'),U=T.flyLineShader,V=c('pandav:/npm/lodash/4.6.1'),d=function(a){function b(a,c){var d;o(this,b),d=t(this,b);var f=x(d);return d.id=void 0,d.config=void 0,d.interaction=void 0,d.data=void 0,d.parent=void 0,d.scene=void 0,d.mapJson=void 0,d.buildings=void 0,d.material=void 0,d.loadItem=void 0,d.streamers=void 0,d.addStreamer=function(a){var b=a.geometry.type;switch(b){case'MultiPolygon':a.geometry.coordinates.forEach(function(a){a.forEach(function(a){var b=new W(a,f.config,f.parent);f.streamers.push(b)})});break;case'Polygon':case'MultiLineString':a.geometry.coordinates.forEach(function(a){var b=new W(a,f.config,f.parent);f.streamers.push(b)});break;case'LineString':var c=new W(a.geometry.coordinates,f.config,f.parent);f.streamers.push(c)}},d.onZoom=function(a){var b=a&&null!=a.to?a.to:f.parent.map?.getZoom(),c=i(f.config.baseConfig.showLevel,2),d=c[0],e=c[1];be?f.streamers.map(function(a){return a.hide()}):f.streamers.map(function(a){return a.show()})},d.id=a.id,d.config=a.configuration,d.data=a.data,d.parent=c,d.scene=c.extend.scene,d.streamers=[],d.showData(),d.parent.map.on('zooming',d.onZoom),d}return y(b,a),q(b,[{key:'showData',value:function a(){var b=this,c=this.config.styleConfig.url;c?(this.loadItem=P(this),fetch(''.concat(c)).then(function(a){return a.json()}).then(function(a){var c,d=h(a.features);try{for(d.s();!(c=d.n()).done;){var e=c.value;b.addStreamer(e)}}catch(a){d.e(a)}finally{d.f()}b.parent.threeLayer.addMesh(b.streamers),b.onZoom(),b.loadItem.loaded=!0,b.parent.checkLoading()})):(this.data.forEach(function(a){a.features&&a.features.map(function(a){b.addStreamer(a)})}),this.parent.threeLayer.addMesh(this.streamers),this.onZoom())}},{key:'updateComponent',value:function b(a){var c=this.config,d=this.data;this.config=a.configuration,this.data=a.data,V.isEqual(c,this.config)&&V.isEqual(d,this.data)||(this.dispose(),this.showData())}},{key:'dispose',value:function a(){this.parent.threeLayer.removeMesh(this.streamers),this.streamers.map(function(a){return a.dispose()}),this.streamers=[]}},{key:'destroy',value:function a(){this.dispose(),this.parent.map.off('zooming',this.onZoom)}},{key:'getAllPathDirections',value:function a(){return this.streamers.map(function(a,b){var c=a.getPathDirectionInfo();return Object.assign({index:b,streamer:a},c)})}}]),b}(I),W=function(a){var b=Math.min,c=Math.floor;function d(a,b,c){var f;o(this,d),f=t(this,d);var g=x(f);f.data=void 0,f.headMesh=void 0,f.mesh=void 0,f.uniforms=void 0,f.pathLengths=void 0,f.totalPathLength=void 0,f.elementConfig=void 0,f.elementProgress=void 0,f.lastElementSpawnTime=void 0,f.createHead=function(a){var b=g.elementConfig.imageUrl,c=new C.TextureLoader().load(b);c.generateMipmaps=!1,c.minFilter=C.LinearFilter,c.magFilter=C.LinearFilter,c.wrapS=C.ClampToEdgeWrapping,c.wrapT=C.ClampToEdgeWrapping,c.flipY=!1;var d=new C.MeshBasicMaterial({map:c,transparent:!0,alphaTest:.1,side:C.DoubleSide}),f=new C.PlaneGeometry(g.elementConfig.width,g.elementConfig.height),h=new C.Mesh(f,d);if(h.position.set(a.x,a.y,a.z),h.rotateZ(e/2),g.elementConfig.followDirection&&g.data&&1d))if(this.elementConfig.followStreamHead){var f=5e-4*a+this.uniforms.offset;f=(f-c(f))*(1+this.uniforms.lineLength)-this.uniforms.lineLength;var g=f+this.uniforms.lineLength;0>g&&(g=0),1this.data.length)){for(var d=[0],e=0,f=1;fthis.data.length)||this.calculatePathLengths(),0>=a)return{x:this.data[0].x,y:this.data[0].y,z:this.data[0].z||0};if(1<=a){var e=this.data[this.data.length-1];return{x:e.x,y:e.y,z:e.z||0}}for(var f=a*this.totalPathLength,g=0,h=0;hthis.data.length)return{x:0,y:0,z:0};if(0>=a)return this.headMesh.visible=!0,{x:this.data[0].x,y:this.data[0].y,z:this.data[0].z||0};if(1<=a){this.headMesh.visible=!1;var e=this.data[this.data.length-1];return{x:e.x,y:e.y,z:e.z||0}}var f=this.data.length-1,g=a*f,h=c(g),i=g-h,j=b(h,f-1),k=b(j+1,this.data.length-1),l=this.data[j],m=this.data[k];return{x:l.x+(m.x-l.x)*i,y:l.y+(m.y-l.y)*i,z:(l.z||0)+((m.z||0)-(l.z||0))*i}}},{key:'calculateDirection',value:function c(a,b){var d=b.x-a.x,e=b.y-a.y;return f(e,d)}},{key:'getMovementDirection',value:function d(a){var f=!!(1this.data.length)return 0;var g,h,i=this.data.length-1,j=a*i,k=c(j),l=b(k,i-1),m=b(l+1,this.data.length-1),n=0;for(l===m?0===l?(g=this.data[0],h=this.data[1]):(g=this.data[l-1],h=this.data[l]):(g=this.data[l],h=this.data[m]),n=this.calculateDirection(g,h),f&&(n+=e);n>e;)n-=2*e;for(;n<-e;)n+=2*e;return n}},{key:'getPathDirectionInfo',value:function a(){if(!this.data||2>this.data.length)return null;for(var b={pathId:0e?f-=2*e:f<-e&&(f+=2*e),a+f*d}},{key:'_animation',value:function a(){var b=this.getOptions(),c=b.config,d=c.styleConfig.lineConfig.lineLength,e=c.animateConfig,f=e.speed,g=e.interval,h=this.mesh.material;h.uniforms.time.value+=f,this.elementConfig.show&&this.updateStreamerHead(h.uniforms.time.value)}},{key:'createIndependentElements',value:function a(){var b=this.elementConfig.maxElements||1,c=Date.now();if(this.elementConfig.elements.length=this.elementConfig.spawnInterval||0===this.elementConfig.elements.length)&&(this.createNewElement(),this.lastElementSpawnTime=c)}}},{key:'createNewElement',value:function a(){var b=this.data&&0a.progress)return void f.push(b);}else if(1a.length)&&(b=a.length);for(var c=0,d=Array(b);ca.length)&&(b=a.length);for(var c=0,d=Array(b);ce?g.flyLines.map(function(a){return a.hide()}):g.flyLines.map(function(a){return a.show()})},d.triggerEvent=function(a){var b=g.parent.props.emit;b&&b('click',[Object.assign({},a)],g.id)},d.id=a.id,d.config=a.configuration,d.data=a.data,d.parent=c,d.interaction=a.configuration.interaction,d.scene=c.extend.scene,d.flyLines=[],d.showData(),d.parent.map.on('zooming',d.onZoom),d}return w(b,a),n(b,[{key:'showData',value:function a(){var b=this;this.data.forEach(function(a){var c=new L(a,b.config,b.parent);c.on('click',function(){return b.triggerEvent(a)}),b.flyLines.push(c)}),this.parent.threeLayer.addMesh(this.flyLines),this.onZoom()}},{key:'updateComponent',value:function b(a){var c=this.config,d=this.data;this.config=a.configuration,this.data=a.data,J.isEqual(c,this.config)&&J.isEqual(d,this.data)||(this.dispose(),this.showData())}},{key:'dispose',value:function a(){this.parent.threeLayer.removeMesh(this.flyLines),this.flyLines.map(function(a){return a.dispose()}),this.flyLines=[]}},{key:'destroy',value:function a(){this.dispose(),this.parent.map.off('zooming',this.onZoom)}}]),b}(F),L=function(a){function b(a,c,d){var e;l(this,b),e=q(this,b);var f=v(e);e.createMat=function(a){var b=Math.round,c=a.baseConfig.depthTest,d=a.animateConfig.startRandom,e=a.styleConfig,f=e.lineConfig,g=e.backConfig,h=f.colors.value,i=h.stops,j=h.opacity,k=void 0===j?1:j,l=f.lineLength,m=g.show,n=g.color,o=i[0].color,p=i[1].color,q=H(o),r=H(p),s=H(n);return new y.ShaderMaterial({vertexShader:t.vertexShader,fragmentShader:t.fragmentShader,side:y.DoubleSide,transparent:!0,depthWrite:!1,depthTest:c,uniforms:{time:{value:0},offset:{value:d?.1*b(10*Math.random()):0},startColor:{value:new y.Color(q[0])},startOpacity:{value:q[1]*k},endColor:{value:new y.Color(r[0])},endOpacity:{value:r[1]*k},backColor:{value:new y.Color(s[0])},backOpacity:{value:m?s[1]:0},lineLength:{value:l}}})},e.createGeo=function(a,b,c){var d=b.baseConfig.system,e=b.styleConfig.lineConfig,f=e.lineHeight,g=e.lineWidth,h=a.startLng,i=a.startLat,j=a.endLng,k=a.endLat,l=c.matchSystem(d,[h,i]),m=c.matchSystem(d,[j,k]);h=l[0],i=l[1],j=m[0],k=m[1];var n=new y.Vector2(+h,+i),o=new y.Vector2(+j,+k),p=n.clone().lerp(o,.35),q=n.clone().lerp(o,.65),r=c.threeLayer.coordinateToVector3([h,i],0),s=c.threeLayer.coordinateToVector3([p.x,p.y],f/10),t=c.threeLayer.coordinateToVector3([q.x,q.y],f/10),u=c.threeLayer.coordinateToVector3([j,k,0]),v=new y.CubicBezierCurve3(new y.Vector3(r.x,r.y,r.z),new y.Vector3(s.x,s.y,s.z),new y.Vector3(t.x,t.y,t.z),new y.Vector3(u.x,u.y,u.z)),w=new y.TubeBufferGeometry(v,50,g/100,3,!1);return w},e.createFlyLine=function(a,b,c){var d=b.baseConfig,e=d.depthTest,g=d.renderOrder,h=b.styleConfig.bloom,i=f.createGeo(a,b,c),j=f.createMat(b),k=new y.Mesh(i,j);return I(k),h&&k.layers.enable(1),k.renderOrder=e?0:g,k};var g=z.Util.extend({},{data:a,config:c,parent:d});e._initOptions(g),e._createGroup();var h=e.getObject3d(),i=e.createFlyLine(a,c,d);h.add(i);var j=c.baseConfig.altitude,k=d.threeLayer.distanceToVector3(0,1).y;return h.position.z=k*j,e.mesh=i,e}return w(b,a),n(b,[{key:'_animation',value:function a(){var b=this,c=this.getOptions(),d=c.config,e=d.styleConfig.lineConfig.lineLength,f=d.animateConfig,g=f.speed,h=f.interval,i=this.mesh.material.uniforms,j=i.time,k=i.offset,l=5e-4*(j.value+g)+k.value;l=l%1*(1+e)-e,this.mesh.pause||(this.mesh.material.uniforms.time.value+=g),l>1-.001*g&&(this.mesh.pause=!0,setTimeout(function(){b.mesh&&(b.mesh.pause=!1)},1e3*h))}},{key:'dispose',value:function a(){D(this.mesh),this.mesh=null}}]),b}(B);return a.exports={FlyLine:K},a.exports});", "requires": [ "pandav:/src/utils/childTemplate.js", "pandav:/src/utils/util.js", "pandav:/src/shaders/flyLine.js" ], "buildLevel": 15, "outputDir": "/com/smartCity/1.0.0/src/children", "outputPath": "/com/smartCity/1.0.0/src/children/flyLine.js", "fileName": "/src/children/flyLine.js" }, "pandav:/src/shaders/impact.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/shaders/impact',['pandav:/npm/three/0.125.0/build/three.module'],function(a,b,c){var d=c('pandav:/npm/three/0.125.0/build/three.module'),e={uniforms:{time:{value:0,interval:.006},color:{value:new d.Color('rgb(50, 125, 255)')}},fragmentShader:'\\n #include \\n #include \\n\\n varying vec2 vUv;\\n uniform float time;\\n uniform vec3 color;\\n\\n float circle(float d, float out_r,float delta_r){\\n return smoothstep(out_r - delta_r,out_r,d) - step(out_r,d);\\n }\\n\\n void main(){\\n #include \\n\\n vec2 st = vUv;\\n float d = length( (st)-.5 );\\n d *= 1. - step(0.5,d);\\n float time = fract(time);\\n time *= .5;\\n float single_c = circle(d,.1 + time,.1);\\n vec4 color_target = vec4(color,single_c);\\n\\n gl_FragColor = color_target;\\n\\n #include \\n }\\n ',vertexShader:'\\n #include \\n #include \\n #include \\n\\n varying vec2 vUv;\\n \\n void main(){\\n #include \\n #include \\n\\n vUv = uv;\\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\\n\\n #include \\n #include \\n }\\n '};return a.exports={impact:e},a.exports});", "requires": [], "buildLevel": 17, "outputDir": "/com/smartCity/1.0.0/src/shaders", "outputPath": "/com/smartCity/1.0.0/src/shaders/impact.js", "fileName": "/src/shaders/impact.js" }, "pandav:/src/shaders/flyLine.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/shaders/flyLine',['pandav:/npm/three/0.125.0/build/three.module'],function(a,b,c){var d=c('pandav:/npm/three/0.125.0/build/three.module'),e={uniforms:{time:{value:0,interval:1},offset:{value:0},backColor:{value:new d.Color('#FFFF00')},backOpacity:{value:.3},startColor:{value:new d.Color('#F5D827')},startOpacity:{value:1},endColor:{value:new d.Color('#FFFFFF')},endOpacity:{value:.3},lineLength:{value:.3}},fragmentShader:'\\n #include \\n #include \\n varying vec2 vUv;\\n uniform float time;\\n uniform float offset;\\n\\n uniform vec3 backColor;\\n uniform float backOpacity;\\n\\n uniform vec3 startColor;\\n uniform float startOpacity;\\n\\n uniform vec3 endColor;\\n uniform float endOpacity;\\n\\n uniform float lineLength;\\n\\n void main(){\\n #include \\n \\n float start = time * 0.0005 + offset;\\n start = fract(start) * (1.0 + lineLength) - lineLength;\\n\\n float end = start + lineLength;\\n float offset = end - vUv.x;\\n\\n if(offset < 0.0 || offset > lineLength) {\\n gl_FragColor = vec4(backColor, backOpacity);\\n } else {\\n float intensity = 1.0;\\n intensity = 1.0 - abs(offset / lineLength);\\n gl_FragColor = vec4(vec3(mix(endColor, startColor, intensity)), mix(endOpacity, startOpacity, intensity));\\n }\\n\\n #include \\n }\\n',vertexShader:'#include \\n #include \\n #include \\n varying vec2 vUv;\\n void main(){\\n #include \\n #include \\n vUv = uv;\\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\\n #include \\n #include \\n }'};return a.exports={flyLineShader:e},a.exports});", "requires": [], "buildLevel": 15, "outputDir": "/com/smartCity/1.0.0/src/shaders", "outputPath": "/com/smartCity/1.0.0/src/shaders/flyLine.js", "fileName": "/src/shaders/flyLine.js" }, "pandav:/src/shaders/lambertMix.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/shaders/lambertMix',['pandav:/npm/three/0.125.0/build/three.module'],function(a,b,c){var d=c('pandav:/npm/three/0.125.0/build/three.module'),e={uniforms:d.UniformsUtils.merge([d.ShaderLib.lambert.uniforms]),fragmentShader:'\\n // uniform vec3 diffuse;\\n // uniform float opacity;\\n uniform vec3 emissive;\\n\\n uniform vec3 bottomColor;\\n uniform vec3 topColor;\\n uniform float bottomOpacity;\\n uniform float topOpacity;\\n\\n varying vec3 vLightFront;\\n varying vec3 vIndirectFront;\\n varying vec2 vUv;\\n\\n #ifdef DOUBLE_SIDED\\n varying vec3 vLightBack;\\n varying vec3 vIndirectBack;\\n #endif\\n\\n\\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n\\n void main() {\\n vec3 diffuse = mix(bottomColor, topColor, vUv.y);\\n float opacity = mix(bottomOpacity, topOpacity, vUv.y);\\n\\n #include \\n\\n vec4 diffuseColor = vec4( diffuse, opacity );\\n ReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\\n vec3 totalEmissiveRadiance = emissive;\\n\\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n\\n // accumulation\\n\\n #ifdef DOUBLE_SIDED\\n\\n reflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\\n\\n #else\\n\\n reflectedLight.indirectDiffuse += vIndirectFront;\\n\\n #endif\\n\\n #include \\n\\n reflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\\n\\n #ifdef DOUBLE_SIDED\\n\\n reflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\\n\\n #else\\n\\n reflectedLight.directDiffuse = vLightFront;\\n\\n #endif\\n\\n reflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\\n\\n // modulation\\n\\n #include \\n\\n vec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\\n\\n #include \\n\\n gl_FragColor = vec4( outgoingLight, diffuseColor.a );\\n\\n #include \\n #include \\n #include \\n #include \\n #include \\n }\\n ',vertexShader:'\\n #define LAMBERT\\n\\n varying vec3 vLightFront;\\n varying vec3 vIndirectFront;\\n varying vec2 vUv;\\n\\n #ifdef DOUBLE_SIDED\\n varying vec3 vLightBack;\\n varying vec3 vIndirectBack;\\n #endif\\n\\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n\\n void main() {\\n \\n #include \\n #include \\n #include \\n \\n vUv = uv;\\n\\n #include \\n #include \\n #include \\n #include \\n #include \\n\\n #include \\n #include \\n #include \\n #include \\n #include \\n #include \\n\\n #include \\n #include \\n #include \\n #include \\n #include \\n }\\n '};return a.exports={lambertMix:e},a.exports});", "requires": [], "buildLevel": 13, "outputDir": "/com/smartCity/1.0.0/src/shaders", "outputPath": "/com/smartCity/1.0.0/src/shaders/lambertMix.js", "fileName": "/src/shaders/lambertMix.js" }, "pandav:/src/children/polygon.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/children/polygon',['pandav:/npm/three/0.125.0/build/three.module','pandav:/com/common-utils/1.0.0','pandav:/com/smartCity/1.0.0/src/utils/childTemplate','pandav:/npm/three/0.125.0/examples/jsm/lines/LineMaterial','pandav:/npm/three/0.125.0/examples/jsm/lines/LineGeometry','pandav:/npm/three/0.125.0/examples/jsm/lines/Line2','pandav:/npm/maptalks/1.2.1/build/maptalks','pandav:/npm/maptalks.three/0.39.0/dist/maptalks.three','pandav:/com/smartCity/1.0.0/src/utils/calc','pandav:/com/smartCity/1.0.0/src/utils/util','pandav:/npm/lodash/4.6.1'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a){return h(a)||g(a)||l(a)||f()}function f(){throw new TypeError('Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}function g(a){if('undefined'!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a['@@iterator'])return Array.from(a)}function h(a){if(Array.isArray(a))return m(a)}function i(a,b){var c='undefined'!=typeof Symbol&&a[Symbol.iterator]||a['@@iterator'];if(!c){if(Array.isArray(a)||(c=l(a))||b&&a&&'number'==typeof a.length){c&&(a=c);var d=0,e=function a(){};return{s:e,n:function b(){return d>=a.length?{done:!0}:{done:!1,value:a[d++]}},e:function b(a){throw a},f:e}}throw new TypeError('Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}var f,g=!0,h=!1;return{s:function b(){c=c.call(a)},n:function a(){var b=c.next();return g=b.done,b},e:function b(a){h=!0,f=a},f:function a(){try{g||null==c.return||c.return()}finally{if(h)throw f}}}}function j(a,b){return o(a)||n(a,b)||l(a,b)||k()}function k(){throw new TypeError('Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}function l(a,b){if(a){if('string'==typeof a)return m(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?m(a,b):void 0}}function m(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);ce?f.polygons.map(function(a){return a.hide()}):f.polygons.map(function(a){return a.show()})},d.triggerEvent=function(a){var b=f.parent.props.emit;b&&b('click',a,f.id)},d.id=a.id,d.config=a.configuration,d.data=a.data,d.parent=c,d.interaction=a.configuration.interaction,d.renderer=c.extend.renderer,d.polygons=[],d.showData(),d.parent?.map?.on('zooming',d.onZoom),d}return A(b,a),r(b,[{key:'showData',value:function a(){var b=this;if(this.data&&this.data.length)this.data.forEach(function(a){'FeatureCollection'==(null===a||void 0===a?void 0:a.type)?a.features&&a.features.map(function(a){return b.addMultiplePolygon(a)}):a.geometry&&b.addMultiplePolygon(a)}),this.onZoom();else{var c=this.config.styleConfig.url;c&&(this.loadItem=V(this),fetch(''.concat(c)).then(function(a){return a.json()}).then(function(a){var c,d=i(a.features);try{for(d.s();!(c=d.n()).done;){var e=c.value;b.addMultiplePolygon(e)}}catch(a){d.e(a)}finally{d.f()}b.onZoom(),b.loadItem.loaded=!0,b.parent.checkLoading()}))}}},{key:'addPolygon',value:function c(a,b){var d=this,e=this.config.baseConfig.system,f=a.map(function(a){var b=d.parent?.matchSystem?d.parent.matchSystem(e,a):[],c=j(b,2),f=c[0],g=c[1];return d.parent?.threeLayer?.coordinateToVector3([f,g],0)}),g=new $(this.parent?.threeLayer,f,b,this.config,this.parent);g.on('click',function(){return d.triggerEvent(b)}),this.parent?.threeLayer?.addMesh([g]),this.polygons.push(g)}},{key:'addMultiplePolygon',value:function b(a){var c=this,d=a.geometry.type,e=a.properties,f=void 0===e?{}:e;'MultiPolygon'===d?a.geometry.coordinates.forEach(function(a){a.forEach(function(a){return c.addPolygon(a,f)})}):'Polygon'===d?a.geometry.coordinates.forEach(function(a){c.addPolygon(a,f)}):void 0}},{key:'updateComponent',value:function b(a){var c=this.config,d=this.data;this.config=a.configuration,this.data=a.data,Z.isEqual(c,this.config)&&Z.isEqual(d,this.data)||(this.dispose(),this.showData())}},{key:'dispose',value:function a(){this.polygons.map(function(a){return a.remove().dispose()}),this.polygons=[]}},{key:'destroy',value:function a(){this.dispose(),this.parent.map?.off('zooming',this.onZoom)}}]),b}(I),$=function(a){function b(a,c,d,e,f){var g;p(this,b),g=v(this,b);var h=P.Util.extend({},{layer:a,data:c,properties:d,config:e,parent:f});return g._initOptions(h),g.initGroup(),g.addArea(),g.addLine(),g.addText(),g.setBloom(),g.setOrder(),g}return A(b,a),r(b,[{key:'initGroup',value:function a(){var b=this.getOptions(),c=b.config.baseConfig.altitude;this._createGroup(),this.setAltitude(c)}},{key:'add',value:function b(a){var c=this.getObject3d();c.add(a)}},{key:'addLine',value:function a(){var b=this.getOptions(),c=b.data,d=b.config,f=d.baseConfig.depthTest,g=d.styleConfig.border,h=g.show,i=g.color,k=g.width;if(h){var l=c.reduce(function(a,b){var c=b.x,d=b.y,e=b.z;return a.concat([c,d,e])},[]);l.push.apply(l,e(l.slice(0,3)));var m=new M;m.setPositions(l);var n=W(i),o=j(n,2),p=o[0],q=o[1],r=new K({transparent:!0,opacity:q,color:p,linewidth:.001*k,depthTest:f}),s=new O(m,r);this.line=s;var t=this.getObject3d();t.add(s)}}},{key:'addArea',value:function a(){var b=this.getOptions(),c=b.data,d=b.config,e=d.baseConfig.depthTest,f=d.styleConfig.fill,g=new C.Shape(c),h=new C.ShapeGeometry(g),i=W(f),k=j(i,2),l=k[0],m=k[1],n=new C.MeshBasicMaterial({color:l,opacity:m,side:C.DoubleSide,transparent:!0,depthTest:e}),o=new C.Mesh(h,n);this.area=o,this.add(o)}},{key:'addText',value:function a(){var b=this.getOptions(),c=b.data,d=b.properties,e=b.parent,f=b.config.styleConfig.text,g=f.show,h=f.key,i=f.textStyle,k=f.offset;if(g){var l=d[h],m={fontWeight:i.fontWeight,fontStyle:i.italic,fontFamily:i.fontFamily,fontSize:i.fontSize,color:i.color,letterSpacing:i.letterSpacing,encoding:e.extend.renderer.outputEncoding,x:k.x,y:k.y},n=8,o=Y(l,m,n),p=o.texture,q=o.width,r=o.height,s=new C.SpriteMaterial({map:p,transparent:!0,depthTest:!1});this._textWidth=q/n/4,this._textHeight=r/n/4;var t=new C.Sprite(s);t.scale.set(this._textWidth,this._textHeight,1);var u=T(c.map(function(a){return[a.x,a.y]}))||[],v=j(u,2),w=v[0],x=v[1];t.position.set(w,x,0),this.text=t,this.add(t)}}},{key:'updateTextSize',value:function b(a){var c=this.getOptions(),d=c.config.styleConfig.text,e=d.sizeType,f=d.show;f&&'screen'==e&&this.text.scale.set(this._textWidth*a,this._textHeight*a,1)}},{key:'setBloom',value:function a(){var b=this.getOptions().config.styleConfig.bloom;b&&(this.line?.layers?.enable(1),this.area?.layers?.enable(1),this.text?.layers?.enable(1))}},{key:'setOrder',value:function a(){var b=this.getOptions().config.baseConfig,c=b.depthTest,d=b.renderOrder;c||(this.line&&(this.line.renderOrder=d),this.area&&(this.area.renderOrder=d),this.text&&(this.text.renderOrder=d))}},{key:'dispose',value:function a(){G(this.getObject3d())}}]),b}(R);return a.exports={Polygon:t},a.exports});", "requires": [ "pandav:/src/utils/childTemplate.js", "pandav:/src/utils/calc.js", "pandav:/src/utils/util.js" ], "buildLevel": 18, "outputDir": "/com/smartCity/1.0.0/src/children", "outputPath": "/com/smartCity/1.0.0/src/children/polygon.js", "fileName": "/src/children/polygon.js" }, "pandav:/src/shaders/water.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/shaders/water',['pandav:/npm/three/0.125.0/build/three.module'],function(a,b,c){var d=c('pandav:/npm/three/0.125.0/build/three.module'),e={uniforms:d.UniformsUtils.merge([d.UniformsLib.fog,{normalSampler:{type:'t',value:null},mirrorSampler:{type:'t',value:null},alpha:{type:'f',value:1},time:{type:'f',value:0},distortionScale:{type:'f',value:20},noiseScale:{type:'f',value:1},textureMatrix:{type:'m4',value:new d.Matrix4},sunColor:{type:'c',value:new d.Color(8355711)},sunDirection:{type:'v3',value:new d.Vector3(.70707,.70707,0)},eye:{type:'v3',value:new d.Vector3(0,0,0)},waterColor:{type:'c',value:new d.Color(5592405)}}]),vertexShader:'uniform mat4 textureMatrix;\\nuniform float time;\\nvarying vec4 mirrorCoord;\\nvarying vec3 worldPosition;\\nvarying vec3 modelPosition;\\nvarying vec3 surfaceX;\\nvarying vec3 surfaceY;\\nvarying vec3 surfaceZ;\\nvoid main()\\n{\\n\\tmirrorCoord = modelMatrix * vec4(position, 1.0);\\n\\tworldPosition = mirrorCoord.xyz;\\n\\tmodelPosition = position;\\n\\tsurfaceX = vec3( modelMatrix[0][0], modelMatrix[0][1], modelMatrix[0][2]);\\n\\tsurfaceY = vec3( modelMatrix[1][0], modelMatrix[1][1], modelMatrix[1][2]);\\n\\tsurfaceZ = vec3( modelMatrix[2][0], modelMatrix[2][1], modelMatrix[2][2]);\\n\\tmirrorCoord = textureMatrix * mirrorCoord;\\n\\tgl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\\n}',fragmentShader:['uniform sampler2D mirrorSampler;','uniform float alpha;','uniform float time;','uniform float distortionScale;','uniform float noiseScale;','uniform sampler2D normalSampler;','uniform vec3 sunColor;','uniform vec3 sunDirection;','uniform vec3 eye;','uniform vec3 waterColor;','varying vec4 mirrorCoord;','varying vec3 worldPosition;','varying vec3 modelPosition;','varying vec3 surfaceX;','varying vec3 surfaceY;','varying vec3 surfaceZ;','void sunLight(const vec3 surfaceNormal, const vec3 eyeDirection, in float shiny, in float spec, in float diffuse, inout vec3 diffuseColor, inout vec3 specularColor)','{','\\tvec3 reflection = normalize(reflect(-sunDirection, surfaceNormal));','\\tfloat direction = max(0.0, dot(eyeDirection, reflection));','\\tspecularColor += pow(direction, shiny) * sunColor * spec;','\\tdiffuseColor += max(dot(sunDirection, surfaceNormal), 0.0) * sunColor * diffuse;','}','vec3 getNoise(in vec2 uv)','{','\\tvec2 uv0 = uv / (103.0 * noiseScale) + vec2(time / 17.0, time / 29.0);','\\tvec2 uv1 = uv / (107.0 * noiseScale) - vec2(time / -19.0, time / 31.0);','\\tvec2 uv2 = uv / (vec2(8907.0, 9803.0) * noiseScale) + vec2(time / 101.0, time / 97.0);','\\tvec2 uv3 = uv / (vec2(1091.0, 1027.0) * noiseScale) - vec2(time / 109.0, time / -113.0);','\\tvec4 noise = texture2D(normalSampler, uv0) +','\\t\\ttexture2D(normalSampler, uv1) +','\\t\\ttexture2D(normalSampler, uv2) +','\\t\\ttexture2D(normalSampler, uv3);','\\treturn noise.xyz * 0.5 - 1.0;','}',d.ShaderChunk.common,d.ShaderChunk.fog_pars_fragment,'void main()','{','\\tvec3 worldToEye = eye - worldPosition;','\\tvec3 eyeDirection = normalize(worldToEye);','\\tvec3 noise = getNoise(modelPosition.xy * 1.0);','\\tvec3 distordCoord = noise.x * surfaceX + noise.y * surfaceY;','\\tvec3 distordNormal = distordCoord + surfaceZ;','\\tif(dot(eyeDirection, surfaceZ) < 0.0)','\\t\\tdistordNormal = distordNormal * -1.0;','\\tvec3 diffuseLight = vec3(0.0);','\\tvec3 specularLight = vec3(0.0);','\\tsunLight(distordNormal, eyeDirection, 100.0, 2.0, 0.5, diffuseLight, specularLight);','\\tfloat distance = length(worldToEye);','\\tvec2 distortion = distordCoord.xy * distortionScale * sqrt(distance) * 0.07;',' vec3 mirrorDistord = mirrorCoord.xyz + vec3(distortion.x, distortion.y, 1.0);',' vec3 reflectionSample = texture2DProj(mirrorSampler, mirrorDistord).xyz;','\\tfloat theta = max(dot(eyeDirection, distordNormal), 0.0);','\\tfloat reflectance = 0.3 + (1.0 - 0.3) * pow((1.0 - theta), 3.0);','\\tvec3 scatter = max(0.0, dot(distordNormal, eyeDirection)) * waterColor;','\\tvec3 albedo = mix(sunColor * diffuseLight * 0.3 + scatter, (vec3(0.1) + reflectionSample * 0.9 + reflectionSample * specularLight), reflectance);',' vec3 outgoingLight = albedo;',d.ShaderChunk.fog_fragment,' gl_FragColor = vec4( outgoingLight, alpha );','}'].join('\\n')};return a.exports={water:e},a.exports});", "requires": [], "buildLevel": 0, "outputDir": "/com/smartCity/1.0.0/src/shaders", "outputPath": "/com/smartCity/1.0.0/src/shaders/water.js", "fileName": "/src/shaders/water.js" }, "pandav:/src/shaders/mergeBloom.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/shaders/mergeBloom',[],function(a){return a.exports={mergeBloom:{uniforms:{baseTexture:{value:null},bloomTexture:{value:null}},fragmentShader:'\\n uniform sampler2D baseTexture;\\n uniform sampler2D bloomTexture;\\n\\n varying vec2 vUv;\\n\\n void main() {\\n gl_FragColor = ( texture2D( baseTexture, vUv ) + vec4( 1.0 ) * texture2D( bloomTexture, vUv ) );\\n }\\n\\t',vertexShader:'\\n varying vec2 vUv;\\n\\n void main() {\\n vUv = uv;\\n\\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\\n }\\n '}},a.exports});", "requires": [], "buildLevel": 3, "outputDir": "/com/smartCity/1.0.0/src/shaders", "outputPath": "/com/smartCity/1.0.0/src/shaders/mergeBloom.js", "fileName": "/src/shaders/mergeBloom.js" }, "pandav:/src/template/LoopBoard.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/template/LoopBoard',['pandav:/npm/three/0.125.0/build/three.module','pandav:/com/smartCity/1.0.0/src/utils/childTemplate','pandav:/com/common-utils/1.0.0','pandav:/com/smartCity/1.0.0/src/utils/util','pandav:/npm/lodash/4.6.1'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a){throw new TypeError('\"'+a+'\" is read-only')}function j(){\"use strict\";function b(a,b,c){return Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}),a[b]}function k(b,d,e,f){var g=d&&d.prototype instanceof q?d:q,h=Object.create(g.prototype),a=new F(f||[]);return J(h,'_invoke',{value:B(b,e,a)}),h}function m(a,b,c){try{return{type:'normal',arg:a.call(b,c)}}catch(a){return{type:'throw',arg:a}}}function q(){}function w(){}function x(){}function z(a){['next','throw','return'].forEach(function(c){b(a,c,function(a){return this._invoke(c,a)})})}function A(b,f){function c(e,g,j,i){var a=m(b[e],b,g);if('throw'!==a.type){var k=a.arg,l=k.value;return l&&'object'==d(l)&&t.call(l,'__await')?f.resolve(l.__await).then(function(a){c('next',a,j,i)},function(a){c('throw',a,j,i)}):f.resolve(l).then(function(a){k.value=a,j(k)},function(a){return c('throw',a,j,i)})}i(a.arg)}var e;J(this,'_invoke',{value:function d(a,b){function g(){return new f(function(d,e){c(a,b,d,e)})}return e=e?e.then(g,g):g()}})}function B(a,b,d){var e='suspendedStart';return function(f,g){if('executing'===e)throw new Error('Generator is already running');if('completed'===e){if('throw'===f)throw g;return{value:H,done:!0}}for(d.method=f,d.arg=g;;){var h=d.delegate;if(h){var i=C(h,d);if(i){if(i===s)continue;return i}}if('next'===d.method)d.sent=d._sent=d.arg;else if('throw'===d.method){if('suspendedStart'===e)throw e='completed',d.arg;d.dispatchException(d.arg)}else'return'===d.method&&d.abrupt('return',d.arg);e='executing';var j=m(a,b,d);if('normal'===j.type){if(e=d.done?'completed':'suspendedYield',j.arg===s)continue;return{value:j.arg,done:d.done}}'throw'===j.type&&(e='completed',d.method='throw',d.arg=j.arg)}}}function C(b,c){var d=c.method,e=b.iterator[d];if(e===H)return c.delegate=null,'throw'===d&&b.iterator.return&&(c.method='return',c.arg=H,C(b,c),'throw'===c.method)||'return'!==d&&(c.method='throw',c.arg=new TypeError('The iterator does not provide a \\''+d+'\\' method')),s;var f=m(e,b.iterator,c.arg);if('throw'===f.type)return c.method='throw',c.arg=f.arg,c.delegate=null,s;var g=f.arg;return g?g.done?(c[b.resultName]=g.value,c.next=b.nextLoc,'return'!==c.method&&(c.method='next',c.arg=H),c.delegate=null,s):g:(c.method='throw',c.arg=new TypeError('iterator result is not an object'),c.delegate=null,s)}function D(a){var b={tryLoc:a[0]};1 in a&&(b.catchLoc=a[1]),2 in a&&(b.finallyLoc=a[2],b.afterLoc=a[3]),this.tryEntries.push(b)}function E(a){var b=a.completion||{};b.type='normal',delete b.arg,a.completion=b}function F(a){this.tryEntries=[{tryLoc:'root'}],a.forEach(D,this),this.reset(!0)}function G(a){if(a||''===a){var b=a[K];if(b)return b.call(a);if('function'==typeof a.next)return a;if(!isNaN(a.length)){var c=-1,e=function b(){for(;++ca.length)&&(b=a.length);for(var c=0,d=Array(b);ce);var g=f.config.styleConfig.sizeType,h=f.parent.map;if('screen'==g&&h){var i=f.getScale();f.group.children.map(function(a){return a.updateScale(i)})}}},d.id=a.id,d.config=a.configuration,d.interaction=a.configuration.interaction,d.data=a.data,d.parent=c,d.scene=c.extend.scene,d.renderer=c.extend.renderer,d.group=new I.Group,d.group.name='\\u6807\\u724C\\u7EC4',d.meterScale=c.threeLayer.distanceToVector3(0,1).y;var g=d.config.baseConfig.altitude;return d.group.position.z=d.meterScale*g,d.scene.add(d.group),d.pointStyles=[],d.hightlightBoard=null,d.loopStamp=0,d.build(),d.showData(),d.parent.map.on('zooming zoomend',d.onZoom),d}return E(b,a),w(b,[{key:'build',value:function a(){}},{key:'getScale',value:function a(){var b=this.config.styleConfig.sizeType,c=this.parent.map;return'screen'==b&&c?5*(c.getScale(c.getZoom())/20/25):1}},{key:'loadImage',value:function b(a){var c=new Image;return c.setAttribute('crossOrigin','anonymous'),c.src=a,new Promise(function(a){c.onload=function(){return a(c)},c.onerror=function(){return a(null)}})}},{key:'loadResource',value:function(){function a(a){return b.apply(this,arguments)}var b=l(j().mark(function b(a){var c,d=this;return j().wrap(function e(b){for(;1;)switch(b.prev=b.next){case 0:return c=a.map(function(){var a=l(j().mark(function b(a){var c;return j().wrap(function e(b){for(;1;)switch(b.prev=b.next){case 0:return b.next=2,d.loadImage(a);case 2:return c=b.sent,b.abrupt('return',{url:a,img:c});case 4:case'end':return b.stop()}},b)}));return function(b){return a.apply(this,arguments)}}()),b.abrupt('return',new Promise(function(a){Promise.all(c).then(function(b){var c={};b.forEach(function(a){var b=a.url,d=a.img;c[b]=d}),a(c)})}));case 2:case'end':return b.stop()}},b)}));return a}()},{key:'createPointStyle',value:function c(a,b){var d=this.resourceMap,e=a.url,f=a.size,g=f.width,i=f.height,j=a.scale,k=g*j,l=i*j;return'row'==b?{geo:O(k,l),mat:P(d[e],b,this.renderer.outputEncoding)}:{size:{w:k,h:l},mat:P(d[e],b,this.renderer.outputEncoding)}}},{key:'createSpriteBack',value:function(){function a(a){return b.apply(this,arguments)}var b=l(j().mark(function b(a){var c;return j().wrap(function d(b){for(;1;)switch(b.prev=b.next){case 0:return c=a.data,b.abrupt('return',new I.Object3D);case 2:case'end':return b.stop()}},b)}));return a}()},{key:'getSourceUrls',value:function a(){return[]}},{key:'initPointStyle',value:function a(){}},{key:'getPointStyle',value:function b(a){return null}},{key:'getBackStyle',value:function a(){}},{key:'checkLoading',value:function a(){this.loadItem.loaded=!0,this.parent.checkLoading()}},{key:'showData',value:function(){function a(){return b.apply(this,arguments)}var b=l(j().mark(function a(){var b,c,d,e,g,h,i,k,m,n,o,p,q=this;return j().wrap(function r(a){for(;1;)switch(a.prev=a.next){case 0:return this.loadItem=Q(this),b=this.getSourceUrls(),a.next=4,this.loadResource(b);case 4:if(c=a.sent,this.resourceMap=c,this.initPointStyle(),d=this.config.baseConfig,e=d.system,g=d.renderOrder,h=this.config.animateConfig,i=h.triggerType,k=h.loop_show,m=h.loop_interval,n=h.drill_show,o=h.drill_duration,p=!0,k?p=!1:'none'!==i&&(p=!1),this.data.length){a.next=14;break}return this.checkLoading(),a.abrupt('return');case 14:return a.next=16,Promise.all(this.data.map(function(){var a=l(j().mark(function b(a){var c,d,h,l,m,r,s,t;return j().wrap(function j(b){for(;1;)switch(b.prev=b.next){case 0:return c=a.lng,d=a.lat,h=a.height,l=void 0===h?0:h,b.next=3,q.createSpriteBack({data:a});case 3:if(m=b.sent,m&&q.group){b.next=6;break}return b.abrupt('return',q.checkLoading());case 6:if(m.visible=p,r=q.getPointStyle(a.state),r){b.next=10;break}return b.abrupt('return',q.checkLoading());case 10:if(s=new f({id:q.id,loop:k,triggerType:i,back:{object:m,style:{}},point:r}),s.renderOrder=g,s.userData=Object.assign({},a,{drill:{show:n,duration:1e3*o}}),q.parent.threeLayer&&q.parent.matchSystem){b.next=15;break}return b.abrupt('return');case 15:t=q.parent.threeLayer.coordinateToVector3(q.parent.matchSystem(e,[c,d]),l*q.meterScale),s.position.copy(t),s.backObject=m,q.group.add(s),s.updateScale(q.getScale()),q.checkLoading();case 21:case'end':return b.stop()}},b)}));return function(b){return a.apply(this,arguments)}}()));case 16:k&&this.loop(m),this.onZoom();case 18:case'end':return a.stop()}},a,this)}));return a}()},{key:'updateComponent',value:function b(a){var c=this.config,d=this.data,e=c.baseConfig.altitude;this.config=a.configuration,this.interaction=a.configuration.interaction,this.data=a.data;var f=this.config.baseConfig.altitude;e===f?(!R.isEqual(c,this.config)||!R.isEqual(d,this.data))&&(this.dispose(),this.showData()):this.group.position.z=this.meterScale*f}},{key:'getSupportObjects',value:function a(){return this.group}},{key:'loop',value:function b(a){var c=this;if(this.group){var d=this.group.children.length,e=this.group.children.indexOf(this.hightlightBoard),f=-1==e?0:(e+1)%d,g=this.group.children[f];g&&(this.highlight(g),this.trigger('switch',g)),clearTimeout(this.loopStamp),this.loopStamp=setTimeout(function(){return c.loop(a)},1e3*a)}}},{key:'highlight',value:function b(a){a&&this.hightlightBoard!=a&&(this.hightlightBoard&&this.hightlightBoard.switchState('normal'),a.switchState('current'),this.hightlightBoard=a)}},{key:'hoverAction',value:function b(a){a&&a.componentId&&a.componentId===this.id&&'hover'==this.config.animateConfig.triggerType&&(this.highlight(a),this.trigger('switch',a),this.trigger('hover',a))}},{key:'leaveAction',value:function b(a){if(a&&a.componentId&&a.componentId===this.id){var c=this.config.animateConfig,d=c.triggerType,e=c.canCancel;'hover'==d&&a==this.hightlightBoard&&e&&this.cancelAction()}}},{key:'selectAction',value:function b(a){if(a&&a.componentId&&a.componentId===this.id){this.trigger('click',a);var c=this.config.animateConfig,d=c.triggerType,f=c.canCancel;if('click'==d)if(a!=this.hightlightBoard)this.highlight(a),this.trigger('switch',a);else if(f)return void this.cancelAction();var g=a.userData,h=g.drill,i=g.zoom,j=g.lng,k=g.lat;if(h&&h.show&&j&&k){var l=this.parent.map.getMinZoom(),m=this.parent.map.getMaxZoom();im&&(m,e('zoom'));var n=this.config.baseConfig.system;if(!this.parent.matchSystem)return;this.parent.map.animateTo({center:this.parent.matchSystem(n,[j,k]),zoom:i||this.parent.map.getZoom(),pitch:this.parent.map.getPitch(),bearing:this.parent.map.getBearing()},{duration:h.duration,easing:'in'})}}}},{key:'emit',value:function c(a,b){var d=b?.userData||{},c=this.parent.props.emit;c&&c(a,Object.assign({},d),this.id)}},{key:'trigger',value:function c(a,b){this.emit(a,b)}},{key:'cancelAction',value:function a(){this.hightlightBoard&&this.hightlightBoard.switchState('normal'),this.hightlightBoard=null,this.trigger('cancel',null),this.trigger('switch',null)}},{key:'update',value:function a(){}},{key:'dispose',value:function a(){clearTimeout(this.loopStamp),M(this.group),this.group.children.length=0}},{key:'destroy',value:function a(){this.dispose(),this.scene.remove(this.group),this.group=null,this.parent.map.off('zooming zoomend',this.onZoom)}}]),b}(K);return a.exports={LoopBoard:g},a.exports});", "requires": [ "pandav:/src/utils/childTemplate.js", "pandav:/src/utils/util.js" ], "buildLevel": 13, "outputDir": "/com/smartCity/1.0.0/src/template", "outputPath": "/com/smartCity/1.0.0/src/template/LoopBoard.js", "fileName": "/src/template/LoopBoard.js" }, "pandav:/src/utils/addChildren.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/utils/addChildren',['pandav:/npm/lodash/4.6.1'],function(a,b,c){function d(a,b){var c='undefined'!=typeof Symbol&&a[Symbol.iterator]||a['@@iterator'];if(!c){if(Array.isArray(a)||(c=e(a))||b&&a&&'number'==typeof a.length){c&&(a=c);var d=0,f=function(){};return{s:f,n:function(){return d>=a.length?{done:!0}:{done:!1,value:a[d++]}},e:function(a){throw a},f:f}}throw new TypeError('Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}var g,h=!0,j=!1;return{s:function(){c=c.call(a)},n:function(){var a=c.next();return h=a.done,a},e:function(a){j=!0,g=a},f:function(){try{h||null==c.return||c.return()}finally{if(j)throw g}}}}function e(a,b){if(a){if('string'==typeof a)return f(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?f(a,b):void 0}}function f(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);cb.indexOf(a[d])&&c.push(a[d]);return c}function j(a){var b=a.childrenConfig,c=void 0===b?[]:b;return c.map(function(a){return Object.assign({},a,{configuration:a.config})})}function k(){var a=0a?-1:1:0}null!=this.parent&&(this.mesh=this.parent),this.updateMatrixWorld(),this.camera.updateMatrixWorld(),this.cameraWorldPosition.setFromMatrixPosition(this.camera.matrixWorld),this.rotationMatrix.extractRotation(this.matrixWorld),this.normal=new e.Vector3(0,0,1).applyEuler(this.mesh.rotation);var b=new e.Vector3(0,0,1).applyEuler(this.camera.rotation);if(0>this.normal.dot(b)){var d=new e.Vector3(0,0,1).applyEuler(this.mesh.rotation);this.normal.reflect(d)}var f=this.mesh.position.clone().sub(this.cameraWorldPosition);f.reflect(this.normal).negate(),f.add(this.mesh.position),this.rotationMatrix.extractRotation(this.camera.matrixWorld),this.lookAtPosition.set(0,0,-1),this.lookAtPosition.applyMatrix4(this.rotationMatrix),this.lookAtPosition.add(this.cameraWorldPosition);var g=this.mesh.position.clone().sub(this.lookAtPosition);g.reflect(this.normal).negate(),g.add(this.mesh.position),this.up.set(0,-1,0),this.up.applyMatrix4(this.rotationMatrix),this.up.reflect(this.normal).negate(),this.mirrorCamera.position.copy(f),this.mirrorCamera.up=this.up,this.mirrorCamera.lookAt(g),this.mirrorCamera.aspect=this.camera.aspect,this.mirrorCamera.updateProjectionMatrix(),this.mirrorCamera.updateMatrixWorld(),this.mirrorCamera.matrixWorldInverse.copy(this.mirrorCamera.matrixWorld).invert(),this.textureMatrix.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),this.textureMatrix.multiply(this.mirrorCamera.projectionMatrix),this.textureMatrix.multiply(this.mirrorCamera.matrixWorldInverse),this.mirrorPlane.setFromNormalAndCoplanarPoint(this.normal,this.mesh.position),this.mirrorPlane.applyMatrix4(this.mirrorCamera.matrixWorldInverse),this.clipPlane.set(this.mirrorPlane.normal.x,this.mirrorPlane.normal.y,this.mirrorPlane.normal.z,this.mirrorPlane.constant);var h=new e.Vector4,i=this.mirrorCamera.projectionMatrix;h.x=(a(this.clipPlane.x)+i.elements[8])/i.elements[0],h.y=(a(this.clipPlane.y)+i.elements[9])/i.elements[5],h.z=-1,h.w=(1+i.elements[10])/i.elements[14];var j=new e.Vector4;j=this.clipPlane.multiplyScalar(2/this.clipPlane.dot(h)),i.elements[2]=j.x,i.elements[6]=j.y,i.elements[10]=j.z+1-this.clipBias,i.elements[14]=j.w;var k=new e.Vector3;k.setFromMatrixPosition(this.camera.matrixWorld),this.eye=k,this.material.uniforms.eye.value=this.eye},d.prototype.render=function(a){if(this.matrixNeedsUpdate&&this.updateTextureMatrix(),this.matrixNeedsUpdate=!0,void 0!==this.scene&&this.scene instanceof e.Scene){this.material.uniforms.mirrorSampler.value=this.dummyTexture;var b=void 0!==a&&a?this.tempTexture:this.texture;this.material.uniforms.mirrorSampler.value=b.texture}},a.exports={WaterOcean:d},a.exports});", "requires": [ "pandav:/src/shaders/water.js" ], "buildLevel": 0, "outputDir": "/com/smartCity/1.0.0/src/template", "outputPath": "/com/smartCity/1.0.0/src/template/WaterOcean.js", "fileName": "/src/template/WaterOcean.js" }, "pandav:/src/utils/calc.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/utils/calc',[],function(a){var c=Math.PI,e=Math.cos,f=Math.sin,g=Math.sqrt,h=Math.abs;function i(a,b){return n(a)||m(a,b)||k(a,b)||j()}function j(){throw new TypeError('Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}function k(a,b){if(a){if('string'==typeof a)return l(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?l(a,b):void 0}}function l(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);cc||137.8347d||55.8271c||137.8347d||55.8271m?m+=2*c:m>2*c&&(m-=2*c);var n=m/2+j,o=b/f(m/2);h(o)>2*b&&(o=b);var p=o*e(n)+g.x,q=o*f(n)+g.y;return{x:2*g.x-p,y:2*g.y-q}},rad2ang:function(a){return 180*a/c},ang2rad:function(a){return a*c/180},range:function(a,b){var c=i(a,2),d=c[0],e=c[1],f=i(b,2),g=f[0],h=f[1];return function(a){var b=Number.isNaN,c=+a;return b(c)?1:d+(c-g)/(h-g)*(e-d)}},calculatePolygonCentroid:function(b){if(3>b.length)return null;for(var c=0,d=0,e=0,f=0;f=a.length?{done:!0}:{done:!1,value:a[d++]}},e:function b(a){throw a},f:e}}throw new TypeError('Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.')}var f,g=!0,h=!1;return{s:function b(){c=c.call(a)},n:function a(){var b=c.next();return g=b.done,b},e:function b(a){h=!0,f=a},f:function a(){try{g||null==c.return||c.return()}finally{if(h)throw f}}}}function j(a,b){if(a){if('string'==typeof a)return k(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return'Object'===c&&a.constructor&&(c=a.constructor.name),'Map'===c||'Set'===c?Array.from(a):'Arguments'===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?k(a,b):void 0}}function k(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);cf[1]?d.map.setBearing(f[1]):kg[1]?d.map.setPitch(g[1]):jb.length-1?d?(f=0,c.cameraCruise({cameras:b,loop:d,index:f})):c.tween_fly=null:c.cameraCruise({cameras:b,loop:d,index:f})}})}},this.cameraSwitch=function(a){c.safeSetView(a)},this.dispatchCameraUpdate=function(){var a=c.map&&c.map.getView(),b=c.city.props.updateConfig;b&&b({type:'camera',payload:a})},this.getOptions=function(a){var b=a.sceneConfig.scenes,c=Object.keys(b),d=c.map(function(a,c){var d=b[a].name;return{name:d||'\\u573A\\u666F'+(c+1),value:a}});return d},this.updateScenes=function(a){var b=c.city.props.updateConfig;b&&b({type:'actions',payload:{path:['sceneId'],value:c.getOptions(a),field:'options',actionName:'animateScene'}})},this.handleStateUpdate=function(a){var b=a.data,d=b.value,e=b.type;if(c.city.props.edit)if('camera'===e)c.stopFly(),c.stopRotate(),c.cameraFly({target:d,time:1,easeType:'easeInOut'});else if('animation'===e){var f=d.type,g=d.value;'play'===f?c.tween_fly?'rotate'===g.type?c.cameraRotate(g.speed):c.resumeFly():c.animateScene(g):'pause'===f?(c.pauseFly(),c.stopRotate()):'reset'===f&&(c.stopFly(),c.stopRotate(),c.switchScene(g))}},this.handlerAction=function(a){var b=a.data,d=void 0===b?{}:b,e=c.city.config.sceneConfig.scenes,f=e.filter(function(a){return a.name===d.sceneId})[0];c.animateScene(f)},this.dynamicChangeScreenHandler=function(a){var b=a.dynamicData,d=void 0===b?'':b,e=c.city.config.sceneConfig.scenes,f=Object.values(e).find(function(a){return a.name===d});f&&d?c.animateScene(f):c.animateScene(Object.values(e)[0])},this.city=b,this.map=b.map,this.timer=null,this.tween_fly=null,this.addListener()}return g(a,[{key:'stopRotate',value:function a(){this.timer&&cancelAnimationFrame(this.timer),this.timer=null}},{key:'stopFly',value:function a(){this.tween_fly&&this.tween_fly.stop(),this.tween_fly=null}},{key:'pauseFly',value:function a(){this.tween_fly&&this.tween_fly.pause()}},{key:'resumeFly',value:function a(){this.tween_fly&&this.tween_fly.resume()}},{key:'animateScene',value:function b(a){var c=this;if(a){this.stopFly(),this.stopRotate();var d=a.open,e=a.type,f=a.entranceTime,g=a.defaultCamera,h=a.rotateCamera,i=a.speed,j=a.flyCameras,k=a.loop;d?'rotate'==e?this.cameraFly({target:h,time:f,easeType:'easeInOut',callback:function a(){c.cameraRotate(i)}}):this.cameraFly({target:j[0],time:f,easeType:'easeInOut',callback:function a(){c.cameraCruise({cameras:j,loop:k,index:1})}}):this.cameraFly({target:g,time:f})}}},{key:'switchScene',value:function b(a){if(a){var c,d=a.open,e=a.type,f=a.defaultCamera,g=a.rotateCamera,h=a.flyCameras;c=d?'rotate'==e?g:h[0]:f,c&&this.cameraSwitch(c)}}},{key:'addListener',value:function a(){document.addEventListener('updateState',this.handleStateUpdate,!1),document.addEventListener('animateScene_'.concat(this.city.props.id),this.handlerAction,!1),document.addEventListener('dynamicChangeScreen_'.concat(this.city.id),this.dynamicChangeScreenHandler,!1)}},{key:'removeListener',value:function a(){document.removeEventListener('updateState',this.handleStateUpdate),document.removeEventListener('animateScene_'.concat(this.city.props.id),this.handlerAction),document.removeEventListener('dynamicChangeScreen_'.concat(this.city.id),this.dynamicChangeScreenHandler)}},{key:'dispose',value:function a(){this.removeListener(),this.stopFly(),this.stopRotate(),this.map=null,this.city=null}}]),a}();return a.exports={CameraControl:i},a.exports});", "requires": [], "buildLevel": 6, "outputDir": "/com/smartCity/1.0.0/src/utils", "outputPath": "/com/smartCity/1.0.0/src/utils/cameraControl.js", "fileName": "/src/utils/cameraControl.js" }, "pandav:/src/utils/constant.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/utils/constant',[],function(a){return a.exports={DEFAULT_MAPBOX_TOKEN:'pk.eyJ1IjoiZWFzeXYiLCJhIjoiY2trM2Q0MGE2MTVrNjJycWRrbGZsYXF4MyJ9.KscWEGxP3mVPjlUJX0AJrA',DEFAULT_ENCODING:'sRGBEncoding'},a.exports});", "requires": [], "buildLevel": 6, "outputDir": "/com/smartCity/1.0.0/src/utils", "outputPath": "/com/smartCity/1.0.0/src/utils/constant.js", "fileName": "/src/utils/constant.js" }, "pandav:/src/viewTool/info.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/viewTool/info',['pandav:/npm/react/17.0.2'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;db.length)&&(c=b.length);for(var d=0,f=Array(c);de?g.infoList.map(function(a){a.getDOM().style.opacity=0}):g.infoList.map(function(a){a.getDOM().style.opacity=1})},d.showData(),d.parent.map.on('zooming',d.onZoom),d}return x(b,a),n(b,[{key:'checkLoading',value:function a(){this.loadItem.loaded=!0,this.parent.checkLoading()}},{key:'selectAction',value:function c(a,b){var d=this.parent.props.emit;a&&d&&d(a,this.data[b],this.id)}},{key:'showData',value:function a(){var b=this;this.loadItem=L(this);var c=this.config.baseConfig,d=c.system,e=c.altitude,f=void 0===e?0:e,g=this.config.styleConfig,h=g.horizontalAlignment,i=g.verticalAlignment,j=this.config.interactAnimation,k=j.carouselEnable,l=j.interval;if(!this.data.length)return void this.checkLoading();this.data.map(function(a,c){var e=a.lng,g=a.lat,j=b.parent.matchSystem(d,[e,g]),k=new C.ui.UIMarker(j,{content:'',altitude:f,horizontalAlignment:h,verticalAlignment:i}).addTo(b.map),l=k.getDOM();B.render(A.createElement(V,{config:b.config,index:c,event:b.event,selectAction:b.selectAction.bind(b),dataItem:a}),l),b.infoList.push(k)});var m=new E('cluster',this.infoList).addTo(this.map);this.checkLoading(),k&&this.loop(l)}},{key:'loop',value:function b(a){clearInterval(this.timer);var c=this;this.timer=setInterval(function(){if(c.data.length){var a=(c.selectedIndex+1)%c.data.length;c.setSelectedItem(a)}},1e3*a)}},{key:'setSelectedItem',value:function b(a){this.selectedIndex===a||(this.event.emit('selectMetaInfoPanel',a),this.selectedIndex=a)}},{key:'updateComponent',value:function b(a){var c=this.config,d=this.data;this.config=a.configuration,this.data=a.data,_.isEqual(c,this.config)&&_.isEqual(d,this.data)||(this.dispose(),this.showData())}},{key:'dispose',value:function a(){this.infoList.forEach(function(a){return a.remove()}),this.infoList=[],this.selectedIndex=-1,clearInterval(this.timer),this.timer=null,this.event.removeAllListeners()}},{key:'destroy',value:function a(){this.dispose(),this.parent.map.off('zooming',this.onZoom)}}])}(G),V=function(a){function b(a){var c;return l(this,b),c=r(this,b,[a]),c.state={selected:!1},c.handleSelect=c.handleSelect.bind(c),c}return x(b,a),n(b,[{key:'componentDidMount',value:function a(){var b=this.props,c=b.event,d=b.index;c.on('selectMetaInfoPanel',this.handleSelect)}},{key:'componentWillUnmount',value:function a(){var b=this.props.event;b.off('selectMetaInfoPanel',this.handleSelect)}},{key:'handleSelect',value:function b(a){var c=this.props.index,d=c===a;this.setState({selected:d})}},{key:'onClick',value:function b(a){var c=this.props.config.interactAnimation.interactType;'\\u70B9\\u51FB'==c&&this.props.event&&this.props.event.emit('selectMetaInfoPanel',a)}},{key:'onMouseMove',value:function c(a,b){var d=this.props.config.interactAnimation.interactType;'\\u60AC\\u505C'===d&&(a.stopPropagation(),!this.state.selected&&this.props.event&&this.props.event.emit('selectMetaInfoPanel',b))}},{key:'onAction',value:function c(a,b){this.props.selectAction(a,b)}},{key:'render',value:function a(){var b,c,d=this,e=this.state.selected,f=this.props,g=f.config,h=f.dataItem,i=f.index,j=h.status,k=g.styleConfig,l=g.baseConfig,m=g.interactAnimation,n=m.interactType,o=m.carouselEnable,p=k.statusBgList,q=k.rightTextAlign,r=k.padding,s=k.lineList,t=k.leftTextAlign,u=k.leftColumnWidthRatio,v=p.find(function(a){return a.status===j}),w=v.dot,x=v.offset,y=v.src,z=v.size;e&&w.select.img?(c={width:w.select.size.width,height:w.select.size.height,transform:'translate(-50%, -50%) translate('.concat(w.select.offset.x,'px,').concat(w.select.offset.y,'px)'),cursor:'default'},b=w.select.img):(c={width:w.normal.size.width,height:w.normal.size.height,transform:'translate(-50%, -50%) translate('.concat(w.normal.offset.x,'px,').concat(w.normal.offset.y,'px)'),cursor:'default'},b=w.normal.img);var B='\\u70B9\\u51FB'===n,C='\\u65E0'==n&&!o||e;return A.createElement('div',{style:{position:'relative',width:0,height:0}},A.createElement(R,{eventThrough:!B,style:Object.assign({position:'absolute',transitionProperty:'background-image, width, height',transitionDuration:'0.2s',transitionTimingFunction:'ease-in-out',pointerEvents:'auto'},c),onClick:function a(){return d.onClick(i)},onMouseMove:function b(a){return d.onMouseMove(a,i)},onMouseEnter:function a(){return d.onAction('mouseEnter',i)},onMouseLeave:function a(){return d.onAction('mouseLeave',i)}},A.createElement(P,{url:b,style:{width:'100%',height:'100%'}})),A.createElement(R,{eventThrough:!B,style:{width:z.width,height:z.height,transform:' translate('.concat(x.x,'px, ').concat(x.y,'px)'),cursor:B?'pointer':'default'},onClick:function a(){return C&&d.onAction('click',i)},onMouseMove:function b(a){return a.stopPropagation()},onMouseEnter:function a(){return C&&d.onAction('mouseEnter',i)},onMouseLeave:function a(){return C&&d.onAction('mouseLeave',i)}},A.createElement(T,{visible:C,getStyle:function b(a){return{pointerEvents:0===a?'none':'auto',opacity:a,transformOrigin:'center bottom',transform:'scale('.concat(a,')'),transitionProperty:'opacity, transform',transitionDuration:'0.2s',transitionTimingFunction:'ease-in-out'}}},A.createElement(P,{url:y,style:{width:z.width,height:z.height},contentStyle:{display:'flex',alignItems:'center',justifyContent:'flex-start',flexDirection:'column'}},A.createElement('div',{style:{width:'100%',height:'100%',display:'flex',flexDirection:'column',padding:''.concat(r.top,'px ').concat(r.right,'px ').concat(r.bottom,'px ').concat(r.left,'px')}},Object.values(s).map(function(a,b){var c=a.map.fieldName,d=a.labelStyle,e=a.valueStyle;return c&&void 0!==h[c]?A.createElement('div',{key:b,style:{display:'flex',justifyContent:'space-between',width:'100%',height:''.concat(100/Object.values(s).length,'%')}},A.createElement('div',{style:Object.assign({},N(d.textStyle,'dom'),{width:''.concat(u,'%'),height:'100%',textAlign:t,transform:'translate('.concat(d.offset.x,'px, ').concat(d.offset.y,'px)')})},a.map.displayName),A.createElement('div',{style:Object.assign({},N(e.textStyle,'dom'),{width:''.concat(100-u,'%'),height:'100%',textAlign:q,transform:'translate('.concat(e.offset.x,'px, ').concat(e.offset.y,'px)')})},A.createElement('span',null,h[c]),e.suffix.show&&A.createElement('span',{style:Object.assign({},N(e.suffix.textStyle,'dom'),{marginLeft:e.suffix.leftMargin})},e.suffix.content))):null}))))))}}])}(A.Component);return a.exports={MetaInfoPanel:U},a.exports});", "requires": [ "pandav:/src/utils/childTemplate.js", "pandav:/src/utils/util.js", "pandav:/src/domutils/BoardBac.js", "pandav:/src/domutils/BlockClickDiv.js", "pandav:/src/domutils/TransitionWrapper.js" ], "buildLevel": 2, "outputDir": "/com/smartCity/1.0.0/src/children", "outputPath": "/com/smartCity/1.0.0/src/children/metaInfoPanel.js", "fileName": "/src/children/metaInfoPanel.js" }, "pandav:/src/domutils/TransitionWrapper.js": { "cubeCode": "Cube('pandav:/com/smartCity/1.0.0/src/domutils/TransitionWrapper',['pandav:/npm/react/17.0.2'],function(a,b,c){function d(a){\"@babel/helpers - typeof\";return d='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(a){return typeof a}:function(a){return a&&'function'==typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?'symbol':typeof a},d(a)}function e(a,b){if(!(a instanceof b))throw new TypeError('Cannot call a class as a function')}function f(a,b){for(var c,d=0;d