123456789101112131415161718192021222324 |
- !function(e){var t={};function i(o){if(t[o])return t[o].exports;var g=t[o]={i:o,l:!1,exports:{}};return e[o].call(g.exports,g,g.exports,i),g.l=!0,g.exports}i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var g in e)i.d(o,g,function(t){return e[t]}.bind(null,g));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=309)}([function(e,t,i){"use strict";var o=i(118),g=window.publicObjectSet={automation:o.a,player:null,gui:null,guider:null,loaders:null,playGuider:null,recordGuider:null,tagManager:null,modelManager:null,displayController:null,container:null,camera:null,controls:null,sceneRenderer:null,tileDownloader:null,panoRenderer:null,qualityManager:null,director:null,miniMap:null,rebuild:!1};t.a=g},function(e,t,i){"use strict";i(90);var o=i(11),g=i.n(o),n=i(8);n.HorizontalBlurShader={uniforms:{tDiffuse:{type:"t",value:null},h:{type:"f",value:1/512}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform sampler2D tDiffuse;","uniform float h;","varying vec2 vUv;","void main() {","vec4 sum = vec4( 0.0 );","sum += texture2D( tDiffuse, vec2( vUv.x - 4.0 * h, vUv.y ) ) * 0.051;","sum += texture2D( tDiffuse, vec2( vUv.x - 3.0 * h, vUv.y ) ) * 0.0918;","sum += texture2D( tDiffuse, vec2( vUv.x - 2.0 * h, vUv.y ) ) * 0.12245;","sum += texture2D( tDiffuse, vec2( vUv.x - 1.0 * h, vUv.y ) ) * 0.1531;","sum += texture2D( tDiffuse, vec2( vUv.x, vUv.y ) ) * 0.1633;","sum += texture2D( tDiffuse, vec2( vUv.x + 1.0 * h, vUv.y ) ) * 0.1531;","sum += texture2D( tDiffuse, vec2( vUv.x + 2.0 * h, vUv.y ) ) * 0.12245;","sum += texture2D( tDiffuse, vec2( vUv.x + 3.0 * h, vUv.y ) ) * 0.0918;","sum += texture2D( tDiffuse, vec2( vUv.x + 4.0 * h, vUv.y ) ) * 0.051;","gl_FragColor = sum;","}"].join("\n")},n.VerticalBlurShader={uniforms:{tDiffuse:{type:"t",value:null},v:{type:"f",value:1/512}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform sampler2D tDiffuse;","uniform float v;","varying vec2 vUv;","void main() {","vec4 sum = vec4( 0.0 );","sum += texture2D( tDiffuse, vec2( vUv.x, vUv.y - 4.0 * v ) ) * 0.051;","sum += texture2D( tDiffuse, vec2( vUv.x, vUv.y - 3.0 * v ) ) * 0.0918;","sum += texture2D( tDiffuse, vec2( vUv.x, vUv.y - 2.0 * v ) ) * 0.12245;","sum += texture2D( tDiffuse, vec2( vUv.x, vUv.y - 1.0 * v ) ) * 0.1531;","sum += texture2D( tDiffuse, vec2( vUv.x, vUv.y ) ) * 0.1633;","sum += texture2D( tDiffuse, vec2( vUv.x, vUv.y + 1.0 * v ) ) * 0.1531;","sum += texture2D( tDiffuse, vec2( vUv.x, vUv.y + 2.0 * v ) ) * 0.12245;","sum += texture2D( tDiffuse, vec2( vUv.x, vUv.y + 3.0 * v ) ) * 0.0918;","sum += texture2D( tDiffuse, vec2( vUv.x, vUv.y + 4.0 * v ) ) * 0.051;","gl_FragColor = sum;","}"].join("\n")},n.ShaderPass=function(e,t){this.textureID=void 0!==t?t:"tDiffuse",e instanceof n.ShaderMaterial?(this.uniforms=e.uniforms,this.material=e):e&&(this.uniforms=n.UniformsUtils.clone(e.uniforms),this.material=new n.ShaderMaterial({defines:e.defines||{},uniforms:this.uniforms,vertexShader:e.vertexShader,fragmentShader:e.fragmentShader})),this.renderToScreen=!1,this.enabled=!0,this.needsSwap=!0,this.clear=!1,this.camera=new n.OrthographicCamera(-1,1,1,-1,0,1),this.scene=new n.Scene,this.quad=new n.Mesh(new n.PlaneBufferGeometry(2,2),null),this.scene.add(this.quad)},n.ShaderPass.prototype={render:function(e,t,i,o){this.uniforms[this.textureID]&&(this.uniforms[this.textureID].value=i),this.quad.material=this.material,this.renderToScreen?e.render(this.scene,this.camera):e.render(this.scene,this.camera,t,this.clear)}},n.CopyShader={uniforms:{tDiffuse:{type:"t",value:null},opacity:{type:"f",value:1}},vertexShader:["varying vec2 vUv;","void main() {","vUv = uv;","gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );","}"].join("\n"),fragmentShader:["uniform float opacity;","uniform sampler2D tDiffuse;","varying vec2 vUv;","void main() {","vec4 texel = texture2D( tDiffuse, vUv );","gl_FragColor = opacity * texel;","}"].join("\n")},n.EffectComposer=function(e,t){if(this.renderer=e,void 0===t){var i={minFilter:n.LinearFilter,magFilter:n.LinearFilter,format:n.RGBAFormat,stencilBuffer:!1},o=e.getSize();t=new n.WebGLRenderTarget(o.width,o.height,i)}this.renderTarget1=t,this.renderTarget2=t.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2,this.passes=[],void 0===n.CopyShader&&console.error("THREE.EffectComposer relies on THREE.CopyShader"),this.copyPass=new n.ShaderPass(n.CopyShader)},n.EffectComposer.prototype={swapBuffers:function(){var e=this.readBuffer;this.readBuffer=this.writeBuffer,this.writeBuffer=e},addPass:function(e){this.passes.push(e)},insertPass:function(e,t){this.passes.splice(t,0,e)},render:function(e){this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2;var t,i,o=!1,g=this.passes.length;for(i=0;i<g;i++)if((t=this.passes[i]).enabled){if(t.render(this.renderer,this.writeBuffer,this.readBuffer,e,o),t.needsSwap){if(o){var a=this.renderer.context;a.stencilFunc(a.NOTEQUAL,1,4294967295),this.copyPass.render(this.renderer,this.writeBuffer,this.readBuffer,e),a.stencilFunc(a.EQUAL,1,4294967295)}this.swapBuffers()}t instanceof n.MaskPass?o=!0:t instanceof n.ClearMaskPass&&(o=!1)}},reset:function(e){if(void 0===e){var t=this.renderer.getSize();(e=this.renderTarget1.clone()).setSize(t.width,t.height)}this.renderTarget1.dispose(),this.renderTarget2.dispose(),this.renderTarget1=e,this.renderTarget2=e.clone(),this.writeBuffer=this.renderTarget1,this.readBuffer=this.renderTarget2},setSize:function(e,t){this.renderTarget1.setSize(e,t),this.renderTarget2.setSize(e,t)}},n.ImageUtils.crossOrigin="anonymous";i(146);!function(){if("performance"in window==0&&(window.performance={}),"now"in window.performance==0){var e=Date.now();performance.timing&&performance.timing.navigationStart&&(e=performance.timing.navigationStart),window.performance.now=function(){return Date.now()-e}}}(),n.WebGLRenderer.prototype.paramThreeToGL=function(e){var t,i=this.extensions,o=this.context;if(e===n.RepeatWrapping)return o.REPEAT;if(e===n.ClampToEdgeWrapping)return o.CLAMP_TO_EDGE;if(e===n.MirroredRepeatWrapping)return o.MIRRORED_REPEAT;if(e===n.NearestFilter)return o.NEAREST;if(e===n.NearestMipMapNearestFilter)return o.NEAREST_MIPMAP_NEAREST;if(e===n.NearestMipMapLinearFilter)return o.NEAREST_MIPMAP_LINEAR;if(e===n.LinearFilter)return o.LINEAR;if(e===n.LinearMipMapNearestFilter)return o.LINEAR_MIPMAP_NEAREST;if(e===n.LinearMipMapLinearFilter)return o.LINEAR_MIPMAP_LINEAR;if(e===n.UnsignedByteType)return o.UNSIGNED_BYTE;if(e===n.UnsignedShort4444Type)return o.UNSIGNED_SHORT_4_4_4_4;if(e===n.UnsignedShort5551Type)return o.UNSIGNED_SHORT_5_5_5_1;if(e===n.UnsignedShort565Type)return o.UNSIGNED_SHORT_5_6_5;if(e===n.ByteType)return o.BYTE;if(e===n.ShortType)return o.SHORT;if(e===n.UnsignedShortType)return o.UNSIGNED_SHORT;if(e===n.IntType)return o.INT;if(e===n.UnsignedIntType)return o.UNSIGNED_INT;if(e===n.FloatType)return o.FLOAT;if(null!==(t=i.get("OES_texture_half_float"))&&e===n.HalfFloatType)return t.HALF_FLOAT_OES;if(e===n.AlphaFormat)return o.ALPHA;if(e===n.RGBFormat)return o.RGB;if(e===n.RGBAFormat)return o.RGBA;if(e===n.LuminanceFormat)return o.LUMINANCE;if(e===n.LuminanceAlphaFormat)return o.LUMINANCE_ALPHA;if(e===n.AddEquation)return o.FUNC_ADD;if(e===n.SubtractEquation)return o.FUNC_SUBTRACT;if(e===n.ReverseSubtractEquation)return o.FUNC_REVERSE_SUBTRACT;if(e===n.ZeroFactor)return o.ZERO;if(e===n.OneFactor)return o.ONE;if(e===n.SrcColorFactor)return o.SRC_COLOR;if(e===n.OneMinusSrcColorFactor)return o.ONE_MINUS_SRC_COLOR;if(e===n.SrcAlphaFactor)return o.SRC_ALPHA;if(e===n.OneMinusSrcAlphaFactor)return o.ONE_MINUS_SRC_ALPHA;if(e===n.DstAlphaFactor)return o.DST_ALPHA;if(e===n.OneMinusDstAlphaFactor)return o.ONE_MINUS_DST_ALPHA;if(e===n.DstColorFactor)return o.DST_COLOR;if(e===n.OneMinusDstColorFactor)return o.ONE_MINUS_DST_COLOR;if(e===n.SrcAlphaSaturateFactor)return o.SRC_ALPHA_SATURATE;if(null!==(t=i.get("WEBGL_compressed_texture_s3tc"))){if(e===n.RGB_S3TC_DXT1_Format)return t.COMPRESSED_RGB_S3TC_DXT1_EXT;if(e===n.RGBA_S3TC_DXT1_Format)return t.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(e===n.RGBA_S3TC_DXT3_Format)return t.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(e===n.RGBA_S3TC_DXT5_Format)return t.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(null!==(t=i.get("WEBGL_compressed_texture_pvrtc"))){if(e===n.RGB_PVRTC_4BPPV1_Format)return t.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(e===n.RGB_PVRTC_2BPPV1_Format)return t.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(e===n.RGBA_PVRTC_4BPPV1_Format)return t.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(e===n.RGBA_PVRTC_2BPPV1_Format)return t.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(null!==(t=i.get("WEBGL_compressed_texture_etc1"))&&e===n.RGB_ETC1_Format)return t.COMPRESSED_RGB_ETC1_WEBGL;if(null!==(t=i.get("EXT_blend_minmax"))){if(e===n.MinEquation)return t.MIN_EXT;if(e===n.MaxEquation)return t.MAX_EXT}return 0},n.WebGLState=function(e,t,i){var o=this,g=new n.Vector4,a=e.getParameter(e.MAX_VERTEX_ATTRIBS),A=new Uint8Array(a),r=new Uint8Array(a),C=new Uint8Array(a),I={},s=null,l=null,c=null,u=null,d=null,h=null,p=null,f=null,m=!1,v=null,y=null,b=null,w=null,x=null,E=null,P=null,T=null,D=null,M=null,S=null,R=null,k=null,O=null,L=null,B=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),F=void 0,j={},N=new n.Vector4,H=null,z=null,V=new n.Vector4,G=new n.Vector4;this.init=function(){this.clearColor(0,0,0,1),this.clearDepth(1),this.clearStencil(0),this.enable(e.DEPTH_TEST),e.depthFunc(e.LEQUAL),e.frontFace(e.CCW),e.cullFace(e.BACK),this.enable(e.CULL_FACE),this.enable(e.BLEND),e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA)},this.initAttributes=function(){for(var e=0,t=A.length;e<t;e++)A[e]=0},this.enableAttribute=function(i){(A[i]=1,0===r[i]&&(e.enableVertexAttribArray(i),r[i]=1),0!==C[i])&&(t.get("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(i,0),C[i]=0)},this.enableAttributeAndDivisor=function(t,i,o){A[t]=1,0===r[t]&&(e.enableVertexAttribArray(t),r[t]=1),C[t]!==i&&(o.vertexAttribDivisorANGLE(t,i),C[t]=i)},this.disableUnusedAttributes=function(){for(var t=0,i=r.length;t<i;t++)r[t]!==A[t]&&(e.disableVertexAttribArray(t),r[t]=0)},this.enable=function(t){!0!==I[t]&&(e.enable(t),I[t]=!0)},this.disable=function(t){!1!==I[t]&&(e.disable(t),I[t]=!1)},this.getCompressedTextureFormats=function(){if(null===s&&(s=[],t.get("WEBGL_compressed_texture_pvrtc")||t.get("WEBGL_compressed_texture_s3tc")||t.get("WEBGL_compressed_texture_etc1")))for(var i=e.getParameter(e.COMPRESSED_TEXTURE_FORMATS),o=0;o<i.length;o++)s.push(i[o]);return s},this.setBlending=function(t,o,g,a,A,r,C,I){t===n.NoBlending?this.disable(e.BLEND):this.enable(e.BLEND),t===l&&I===m||(t===n.AdditiveBlending?I?(e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE,e.ONE,e.ONE)):(e.blendEquation(e.FUNC_ADD),e.blendFunc(e.SRC_ALPHA,e.ONE)):t===n.SubtractiveBlending?I?(e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.ZERO,e.ONE_MINUS_SRC_COLOR,e.ONE_MINUS_SRC_ALPHA)):(e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ZERO,e.ONE_MINUS_SRC_COLOR)):t===n.MultiplyBlending?I?(e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ZERO,e.ZERO,e.SRC_COLOR,e.SRC_ALPHA)):(e.blendEquation(e.FUNC_ADD),e.blendFunc(e.ZERO,e.SRC_COLOR)):I?(e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.ONE,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA)):(e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD),e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA)),l=t,m=I),t===n.CustomBlending?(A=A||o,r=r||g,C=C||a,o===c&&A===h||(e.blendEquationSeparate(i(o),i(A)),c=o,h=A),g===u&&a===d&&r===p&&C===f||(e.blendFuncSeparate(i(g),i(a),i(r),i(C)),u=g,d=a,p=r,f=C)):(c=null,u=null,d=null,h=null,p=null,f=null)},this.setDepthFunc=function(t){if(v!==t){if(t)switch(t){case n.NeverDepth:e.depthFunc(e.NEVER);break;case n.AlwaysDepth:e.depthFunc(e.ALWAYS);break;case n.LessDepth:e.depthFunc(e.LESS);break;case n.LessEqualDepth:e.depthFunc(e.LEQUAL);break;case n.EqualDepth:e.depthFunc(e.EQUAL);break;case n.GreaterEqualDepth:e.depthFunc(e.GEQUAL);break;case n.GreaterDepth:e.depthFunc(e.GREATER);break;case n.NotEqualDepth:e.depthFunc(e.NOTEQUAL);break;default:e.depthFunc(e.LEQUAL)}else e.depthFunc(e.LEQUAL);v=t}},this.setDepthTest=function(t){t?this.enable(e.DEPTH_TEST):this.disable(e.DEPTH_TEST)},this.setDepthWrite=function(t){y!==t&&(e.depthMask(t),y=t)},this.setColorWrite=function(t){b!==t&&(e.colorMask(t,t,t,t),b=t)},this.setStencilFunc=function(t,i,o){x===t&&E===i&&P===o||(e.stencilFunc(t,i,o),x=t,E=i,P=o)},this.setStencilOp=function(t,i,o){T===t&&D===i&&M===o||(e.stencilOp(t,i,o),T=t,D=i,M=o)},this.setStencilTest=function(t){t?this.enable(e.STENCIL_TEST):this.disable(e.STENCIL_TEST)},this.setStencilWrite=function(t){w!==t&&(e.stencilMask(t),w=t)},this.setFlipSided=function(t){S!==t&&(t?e.frontFace(e.CW):e.frontFace(e.CCW),S=t)},this.setLineWidth=function(t){t!==R&&(e.lineWidth(t),R=t)},this.setPolygonOffset=function(t,i,o){t?this.enable(e.POLYGON_OFFSET_FILL):this.disable(e.POLYGON_OFFSET_FILL),!t||k===i&&O===o||(e.polygonOffset(i,o),k=i,O=o)},this.getScissorTest=function(){return L},this.setScissorTest=function(t){L=t,t?this.enable(e.SCISSOR_TEST):this.disable(e.SCISSOR_TEST)},this.activeTexture=function(t){void 0===t&&(t=e.TEXTURE0+B-1),F!==t&&(e.activeTexture(t),F=t)},this.bindTexture=function(t,i){void 0===F&&o.activeTexture();var g=j[F];void 0===g&&(g={type:void 0,texture:void 0},j[F]=g),g.type===t&&g.texture===i||(e.bindTexture(t,i),g.type=t,g.texture=i)},this.compressedTexImage2D=function(){try{e.compressedTexImage2D.apply(e,arguments)}catch(e){console.error(e)}},this.texImage2D=function(){try{e.texImage2D.apply(e,arguments)}catch(e){console.error(e)}},this.clearColor=function(t,i,o,n){g.set(t,i,o,n),!1===N.equals(g)&&(e.clearColor(t,i,o,n),N.copy(g))},this.clearDepth=function(t){H!==t&&(e.clearDepth(t),H=t)},this.clearStencil=function(t){z!==t&&(e.clearStencil(t),z=t)},this.scissor=function(t){!1===V.equals(t)&&(e.scissor(t.x,t.y,t.z,t.w),V.copy(t))},this.viewport=function(t){!1===G.equals(t)&&(e.viewport(t.x,t.y,t.z,t.w),G.copy(t))},this.reset=function(){for(var t=0;t<r.length;t++)1===r[t]&&(e.disableVertexAttribArray(t),r[t]=0);I={},s=null,F=void 0,j={},l=null,b=null,y=null,w=null,S=null}};var a,A=i(2),r=i(7),C=i(10),I=i(18),s=i(9),l=i(54),c=i(45),u=i(5),d=i(6),h=(a={debug:!1,version:"2.23.8-0-g24ec69e",skyboxRadius:2500,imagesPath:"images/images",jsonPath:"data/data",metaSceneService:A.a.prefixShowProApi+"/getInfo",job:"dacf7dfa24ae47fab8fcebfe4dc41ab9",preTexture:"_50k_texture_jpg_high1",format:"_50k.dam",locationfileName:"vision.modeldata",languageTag:r.a.valueFromHash("lang",null),pageTitle:"Matterport 3D Showcase",autoplay:r.a.valueFromHash("play",!1)||!r.a.inIframe(),logLevel:r.a.valueFromHash("log",2)},g()(a,"skyboxRadius",2500),g()(a,"modelBoundsPadding",5),g()(a,"showNeighbors",!1),g()(a,"brand",r.a.valueFromHash("brand",!0)),g()(a,"showHighlights",r.a.valueFromHash("hhl",!0)&&r.a.valueFromHash("hr",1)),g()(a,"startHighlights",r.a.valueFromHash("hl",-1)),g()(a,"specialEdition",r.a.valueFromHash("bn",0)),g()(a,"useWheel",r.a.valueFromHash("wh",!0)),g()(a,"fancierTransition",!1),g()(a,"wireframe",!1),g()(a,"skyboxWireframe",!1),g()(a,"modelAlpha",1),g()(a,"highlightPanoSelection",!1),g()(a,"showSweeps",!0),g()(a,"showSkyboxes",!1),g()(a,"showMesh",!0),g()(a,"showFloors",!1),g()(a,"showFloorDuration",300),g()(a,"showFloorDelay",300),g()(a,"hideFloorDuration",300),g()(a,"hideFloorDelay",0),g()(a,"reticuleOpacityTransitionTime",250),g()(a,"reticuleColor","zhiHouse"==A.a.applicationName?l.a.zhiBlue:l.a.green),g()(a,"markerOpacityTransitionTime",500),g()(a,"guiAnimationSpeed",250),g()(a,"highlightAnimationDuration",500),g()(a,"modelComponentLoadSpinnerDelay",150),g()(a,"captureErrors",!1),g()(a,"maxMobileTextures",6),g()(a,"minimalMemoryMode",r.a.valueFromHash("m3",r.a.isMobile())),g()(a,"startupFlyinDelay",500),g()(a,"overlay",{width:1,height:.5}),g()(a,"dollhouseDefault",{minDistance:15,maxDistance:50,minPolarAngle:n.Math.degToRad(10),maxPolarAngle:n.Math.degToRad(90)}),g()(a,"hideReticuleTimeout",1e3),g()(a,"analytics",{inactivityThreshold:30,sessionTrackingRate:.15,maxTrackedErrors:20,sessionDurationPingFrequency:10,sessionDurationTimeout:15}),g()(a,"flydown",{movementEasing:"easeInOutQuad",movementDelay:.001,rotationEasing:"easeInOutQuad",rotationDelay:.5,modelTextureDelay:.75,skyboxDelay:.75}),g()(a,"transition",{flySpeed:.01,flyTime:750,flytimeMaxDistanceThreshold:5,flytimeDistanceMultiplier:150,aimTime:1500,aimSlowFactor:1,blur:.8,movementEasing:"easeInOutQuad",blendEasing:"easeInOutQuad",fastForwardFactor:r.a.valueFromHash("mfis",3)}),g()(a,"show360Views",{enabled:!0,transitionTime:1e3}),g()(a,"quickstart",{enabled:1===r.a.valueFromHash("qust",0)||1===r.a.valueFromHash("qs",0),animation:1400,showTextDelay:500,fadeOutDelay:3e3,fovChange:10}),g()(a,"appConfig",{webvr_version:null,segment_key:null,embedly_key:null,branch_key:null,keen_write_key:null,keen_project_id:null}),g()(a,"share",{enabled:!r.a.valueFromHash("mls",0)&&r.a.valueFromHash("brand",!0)}),g()(a,"input",{longTapThreshold:200,moveToleranceNDC:.01,touchMoveThreshold:25}),g()(a,"help",{modalStayDuration:600}),g()(a,"immersive",{timeToShowAgain:1250,uiStayDuration:600}),g()(a,"tourInteraction",{disabled:"0"===r.a.valueFromHash("tourcta",null),showPauseButton:1e3,showModal:1500,allowNextClick:200,largeModal:"1"===r.a.valueFromHash("tourcta",null),smallModal:"2"===r.a.valueFromHash("tourcta",null)}),g()(a,"labels",{enabled:!1,hideUntilStart:!0,fadeInDuration:250,fadeInDelay:250,fadeOutDuration:250,fadeOutDelay:0,zoomHideThreshhold:{mobile:r.a.isSmallScreen()?.45:.6,desktop:2},zoomTruncateThreshhold:{mobile:r.a.isSmallScreen()?.35:.45,desktop:.85},minLengthForTruncate:16,truncateLength:12,truncateSuffix:"..."}),g()(a,"tags",{enabled:r.a.valueFromHash("mt",1),startup:{hideUntilStart:!0,fadeInDuration:500,fadeInDelay:100},visibility:{anyDistance:!0,visibleDistance:8,cameraClearance:.1,alphaTestLevel:.05,hideViaFloor:!0,hideOffScreenDisc:!1,hideOffScreenObject:!1},disc:{opacity:1,disabledOpacity:.5,scale:{nearBound:1.5,farBound:4.8,linkFarBound:!1,linkPercent:40,maxSize:80,minSize:40,baseViewportSize:800,responsiveness:100}},pole:{enabled:!0,height:.5,width:2,opacity:.5,color:"white"},navigate:{nearestPano:!0,lineOfSight:!0,reactivate:!0,aimAt:"disc",tiltTolerance:isMobile?15:25,rotateSpeedFactor:.9}}),g()(a,"path",{color:"zhiHouse"==A.a.applicationName?l.a.zhiBlue:l.a.lightGreen,colorUp:l.a._desat(l.a.newBlue,.5),colorDown:l.a._darken(l.a.newBlue,.35),opacity:.5,style:"ribbon",height:.025,ribbonWidth:.24,outsideHeight:.5,waypointRadius:.5,waypointIndoorRadius:.24,waypointPulse:1e3,typ:c.a.BLACK,meshFree:r.a.valueFromHash("mf",1),mapGuides:r.a.valueFromHash("guides",!0),fadeInTime:400,fadeOutTime:300}),g()(a,"warp",{nearPanoDist:.1,matchCam:!1,blur:.33,fastTime:1500,teleportTime:1e3,outsideTime:2e3,lookAheadMax:.3,lookAheadDist:2.5,softPushDist:.37,softPushEnd:.3,softBendAngle:8,softBendTilt:4,softBendEnd:.3,doBurns:r.a.valueFromHash("kb",!0),burnsAngle:35,minBurnsAngle:35,minDownAngle:-35,maxTurnPerSec:280,maxAimPerSec:35,minRotation:12,maxAimRotation:33.2,turnFriction:.2,flySpeed:.01,minWarpTime:1200,warpInterruptionRedirectTime:500,tourStepDelay:r.a.valueFromHash("st",0),walkDelay:0,walkMaxDist:50,walkMinDist:.8,walkSlideShowThreshhold:3e3,walkExtraPanosDistance:.4,timePerMeter:800,motionLeadTime:500,movementEasing:"easeInOutQuad",blendEasing:"easeInOutQuad",showBunny:!1,loop:r.a.valueFromHash("lp",!1),auto:r.a.valueFromHash("ts",-1),eOrder:"YXZ",stepFactor:.25,brakeStrength:2,minBrakeAngle:.1,maxBrakeAngle:1.8,climbEffort:4}),g()(a,"rotationFriction",isMobile?.15:.05),g()(a,"rotationAccelerationInside",4.5),g()(a,"rotationAccelerationOutside",.15),g()(a,"rotationAfterMoveMultiplier",40),g()(a,"rotationAfterMoveHistoryCount",5),g()(a,"panFriction",.09),g()(a,"panAccelerationOutside",60),g()(a,"onload",r.a.valueFromHash("onload",u.a.PANORAMA)),g()(a,"zoomNearLimit",.1),g()(a,"zoomFarLimit",10),g()(a,"navigation",{panoScores:!1,mouseDirection:!0,filterStrictness:.75,angleFactor:-30,directionFactor:10,distanceFactor:-1,optionalityFactor:3}),g()(a,"sdkInit",!1),g()(a,"secretPanelWord",[38,38,40,40,37,39,37,39,66,65]),g()(a,"console",r.a.valueFromHash("console",!1)),g()(a,"noMeshFloorPositionOffset",new n.Vector3(0,-1.2,0)),g()(a,"panoramaNeighbourMaxDistance",5),g()(a,"panoFloorClickRadius",.35),g()(a,"showScreenshotLocations",!1),g()(a,"showAxis",!1),g()(a,"showNeighbourRaycasts",!1),g()(a,"colorMarkerOnLoad",!1),g()(a,"colorMarkerByFloor",!1),g()(a,"tiling",{panoPreRenderRepeatDelay:2500,panoPreRenderDelay:500,preRenderTourPanos:r.a.valueFromHash("tileprerender",0),tilingFlagNames:["usetiles","tiles"],maxNavPanoQuality:r.a.valueFromHash("maxtileq",null),maxZoomPanoQuality:r.a.valueFromHash("maxztileq",null),overlayStyle:r.a.valueFromHash("tileoverlay",0),uploadIntervalDelay:r.a.valueFromHash("tileupdelay",10),initialIntervalDelay:r.a.valueFromHash("itiledelay",0),maxNonBaseUploadsPerFrame:r.a.valueFromHash("maxnbtpf",2),maxBaseUploadsPerFrame:r.a.valueFromHash("maxbtpf",6),customCompression:r.a.valueFromHash("tilecustcomp",0),mobileHighQualityOverride:!1,allowUltraHighResolution:!0}),g()(a,"zoom",{enabled:!1,forceOff:r.a.valueFromHash("nozoom",0),overridemax:r.a.valueFromHash("maxzoom",null),overridemin:r.a.valueFromHash("minzoom",null),max:d.a.highQualityMaxZoom,min:1,transitionStyle:r.a.valueFromHash("zoomtrans",1),activationThreshold:1.1,restoreTime:500}),g()(a,"profiling",{enabled:r.a.valueFromHash("mem",!1)}),a);(h=C.default.deepExtend(h,d.a,{insideFOV:r.a.valueFromHash("fov",d.a.insideFOV),insideFOVMax:r.a.valueFromHash("fovmax",d.a.insideFOVMax),panorama:{transitionTime:1e3,modelAlpha:0,modelAlphaDelay:h.flydown.modelTextureDelay,modelAlphaLength:1,skyboxOpacity:1,skyboxOpacityDelay:h.flydown.skyboxDelay,skyboxOpacityLength:.9,fovLength:1,fovDelay:0,cameraMatrixDuration:.8,cameraMatrixDelay:0,cameraMatrixEase:I.a.easeInCubic,reticuleOpacity:1,markerOpacity:.3,markerOpacityOnHover:1},dollhouse:{transitionTime:1e3,modelAlpha:1,modelAlphaDelay:0,modelAlphaLength:1-h.flydown.modelTextureDelay,skyboxOpacity:0,skyboxOpacityDelay:0,skyboxOpacityLength:1-h.flydown.skyboxDelay,fovLength:1,fovDelay:0,cameraMatrixDuration:.8,cameraMatrixDelay:.3,cameraMatrixEase:I.a.easeInCubic,reticuleOpacity:1,markerOpacity:0,markerOpacityOnHover:0},floorplan:{transitionTime:1e3,modelAlpha:1,modelAlphaDelay:0,modelAlphaLength:1-h.flydown.modelTextureDelay,skyboxOpacity:0,skyboxOpacityDelay:0,skyboxOpacityLength:1-h.flydown.skyboxDelay,fovLength:1,fovDelay:0,cameraMatrixDuration:.5,cameraMatrixDelay:0,cameraMatrixEase:I.a.easeOutCubic,reticuleOpacity:1,markerOpacity:0,markerOpacityOnHover:0,cameraHeight:50},transitioning:{reticuleOpacity:0,markerOpacity:.3,markerOpacityOnHover:1},"floorplan-dollhouse":{rotationDelay:0,rotationDuration:1},"floorplan-panorama":{rotationDelay:.5,rotationDuration:1},"dollhouse-panorama":{rotationDelay:.5,rotationDuration:1},"dollhouse-floorplan":{rotationDelay:0,rotationDuration:1,cameraMatrixDuration:1.05,cameraMatrixDelay:.5},"panorama-dollhouse":{rotationDelay:0,rotationDuration:.5},"panorama-floorplan":{transitionTime:1500,rotationDelay:0,rotationDuration:.5}})).path.meshFree&&(h.path.typ=c.a.WALK),h.zoom.max=h.zoom.overridemax||h.zoom.max,h.zoom.min=h.zoom.overridemin||h.zoom.min,h.option={autoload:!1,floors:!0,local:!1,url:A.a.projectNum,urlFiles:"http://www.4dage.com/BigScene7niu/api/player/models/"+A.a.projectNum+"/files",useVisionModelData:!0},h.modelMeta={sid:A.a.projectNum,name:"四维时代",status:"viewable",floors:"",metainfo:{allowed_methods:["GET","OPTIONS","HEAD"]},image:"http://7xo6he.com2.z0.glb.qiniucdn.com/images/images1/07.13.2015_16.22.30.jpg",images:[],job:{uuid:"dacf7dfa24ae47fab8fcebfe4dc41ab9"},layers:[]},h.HorizontalBlurShader=new n.ShaderPass(n.HorizontalBlurShader),h.VerticalBlurShader=new n.ShaderPass(n.VerticalBlurShader),h.VerticalBlurShader.renderToScreen,h.aspect=window.innerWidth/window.innerHeight,isNaN(d.a.aspect)&&(d.a.aspect=1),h.sphereBufferGeometry=new n.SphereBufferGeometry(.05),h.freeze=Object.freeze({FlyToPano:s.a.getUniqueId(),FlyToNewMode:s.a.getUniqueId(),FlyToSameMode:s.a.getUniqueId(),FlyToViewFloor:s.a.getUniqueId(),LookTransition:s.a.getUniqueId(),ZoomTransition:s.a.getUniqueId(),LookRotationForPlay:s.a.getUniqueId(),wallLineShine:s.a.getUniqueId(),spotShine:s.a.getUniqueId(),rulerShine:s.a.getUniqueId()}),h.billboardSettings=Object.freeze({animation:Object.freeze({hoverOnClosing:!1,openDelay:"bigScene"==A.a.applicationName?50:100,closeDelay:50,openDuration:"bigScene"==A.a.applicationName?150:500,closeDuration:300}),boardToDiscRatio:1.15}),h.MediaEvent=Object.freeze({LINK_CLICK:"mtmedia.link",IMAGE_LOADED:"mtmedia.image.loaded",IMAGE_OPENING:"mtmedia.image.opening",IMAGE_OPENED:"mtmedia.image.opened",IMAGE_CLOSING:"mtmedia.image.closing",IMAGE_CLOSED:"mtmedia.image.closed",VIDEO_START:"mtmedia.video.start",VIDEO_PAUSE:"mtmedia.video.pause",VIDEO_ENDED:"mtmedia.video.end"}),h.BillboardEvent=Object.freeze({ENTER:"billboard.enter",LEAVE:"billboard.leave",OPENING:"billboard.opening",OPENED:"billboard.open",CLOSING:"billboard.closing",CLOSED:"billboard.closed",ACTIVATING:"billboard.activating",ACTIVATE:"billboard.activate"}),h.tagEvents=Object.freeze({TagActivated:"tag.activated",TagDismissed:"tag.dismissed",TagNavigation:"tag.navigation"}),h.TagStates=Object.freeze({IDLE:"idle",BROWSE:"browse",EXAMINE:"examine"});t.a=h},function(e,t,i){"use strict";var o=i(7),g=i(6);window.appLoginToken=o.a.urlHasValue("token",!0);var n={environment:"test",jsonPath:"scene/data/data",infoPath:"scene/getInfo",blueReticle:"images/blueReticle.png",whiteReticule:"images/whiteReticule.png",marker:"images/marker.png",reticule:"images/reticule.png",path:"images/path.png",pathStart:"images/pathStart.png",pathEnd:"images/pathEnd.png",vrTexture:"images/texture.jpg",prefixServerECS:"scene/",prefixServerOSS:"/static/",imagesPath:"images/images",job:"dacf7dfa24ae47fab8fcebfe4dc41ab9",preTexture:"_50k_texture_jpg_high1",format:"_50k.dam",locationfileName:"vision.modeldata",location2fileName:"vision2.modeldata",use7niu:!1,prefixEditProMobileApi:"api/scene/edit/forApp",prefixEditProPCApi:"api/scene/edit",prefixShowProApi:"api/scene",app:o.a.urlHasValue("app"),notch:o.a.urlHasValue("notch",!0),antialias:!isMobile||edit,applicationName:"4dkankan",projectNum:o.a.getProjectNum(),CADenable:!0,keyCon:!0,setSpotType:1,statusCode:{},lang:o.a.urlHasValue("lang",!0)||"zh",isTestMode:function(){return"test"==this.environment},wallType:o.a.urlHasValue("oldWall")?1:2,getMetadataUrl:function(){return"static/images/images".concat(this.projectNum,"/sceneData.json?m=").concat(Date.now())},getFloorUrl:function(){var e=publicObjectSet.player.model.urls;return(edit?n.prefixServerECS:n.prefixServerOSS)+"data/data".concat(this.projectNum,"/floor.json?m=")+e.getPost()},getHotUrl:function(){return edit?"".concat(this.jsonPath).concat(this.projectNum,"/hot.json?m=").concat(Date.now()):n.prefixServerOSS+"data/data".concat(this.projectNum,"/hot.json?m=").concat(Date.now())},getCadUrl:function(){return edit?"".concat(this.jsonPath).concat(this.projectNum,"/cad.json?m=").concat(Date.now()):n.prefixServerOSS+"data/data".concat(this.projectNum,"/cad.json?m=").concat(Date.now())},getHotMapping:function(e){return"".concat(this.jsonPath).concat(this.projectNum,"/mapping/").concat(e,".json")},getTourListUrl:function(e){return(window.edit?"scene/":"bigScene"==n.applicationName?g.a.bigScenePrefix:g.a.prefix)+e+"?m="+(new Date).getTime()},getResourceUrl:function(e){return 0==e.indexOf("http")?e+"?m="+Date.now():"scene/"+e+"?m="+Date.now()},getRecordProUrl:function(e){return(edit?"":n.prefixServerOSS)+"".concat(e,"?m=")+Date.now()},setStatusCode:function(){this.statusCode.SUCCESS=0,this.statusCode.EXCEPTION=-1,this.statusCode.FAILURE_CODE_3001=3001,this.statusCode.FAILURE_CODE_3002=3002,this.statusCode.FAILURE_CODE_3003=3003,this.statusCode.FAILURE_CODE_3004=3004,this.statusCode.FAILURE_CODE_3005=3005,this.statusCode.FAILURE_CODE_3006=3006,this.statusCode.FAILURE_CODE_3007=3007,this.statusCode.FAILURE_CODE_3008=3008,this.statusCode.FAILURE_CODE_3009=3009,this.statusCode.FAILURE_CODE_3010=3010,this.statusCode.FAILURE_CODE_3011=3011,this.statusCode.FAILURE_CODE_3012=3012,this.statusCode.FAILURE_CODE_3013=3013,this.statusCode.FAILURE_CODE_3014=3014,this.statusCode.FAILURE_CODE_3015=3015,this.statusCode.FAILURE_CODE_3016=3016,this.statusCode.FAILURE_CODE_3017=3017,this.statusCode.FAILURE_CODE_3018=3018,this.statusCode.FAILURE_CODE_5010=5010,this.statusCode.FAILURE_CODE_5005=5005}};n.setStatusCode(),"production"!=n.environment&&(window.Config=n),"zhiHouse"==n.environment&&(n.applicationName="zhiHouse");var a=o.a.urlHasValue("v2");if(n.scene_version=a||"bigScene"==n.applicationName?2:1,n.defaultName="zhiHouse"==n.applicationName?"指房宝":"四维看看",o.a.urlHasValue("log")){var A=document.createElement("textarea");A.id="consoleLog",document.getElementsByTagName("body")[0].appendChild(A);for(var r=["log","error","warn","debug","info","time","timeEnd"],C=function(e){console["old"+e]=console[e],console[e]=function(t){console["old"+e](t);var i=document.getElementById("consoleLog").innerHTML;document.getElementById("consoleLog").innerHTML=t+"\n\n"+i}},I=0;I<r.length;I++)C(r[I])}t.a=n},function(e,t,i){"use strict";i(38);var o=i(7),g=i(2),n=o.a.urlHasValue("lang",!0),a={en:{"中文":"英文","场景二维码":"QR Code","下载二维码":"Download the QR code","上传":"Upload","自定义logo并与微信分享同步":"Customize your logo and share the QR Code on WeChat.","场景地址":"Scene Link","复制地址":"Copy the link","复制成功!":"Copied","背景音乐":"BGM","无":"No music","欢快":"Cheerful","空灵":"Ethereal","节奏":"Rhythmic","怀旧":"Nostalgic","想念":"Missing","复古":"Retro","琴弦":"Strings","愉快":"Happy","漫游视角可视":"Roaming","平面图可视":"Layout Plan","三维模型可视":"3D Model","小地图预览可视":"Mini-map","VR模式可视":"VR Mode","自动导览可视":"Tour Guide","标尺可视":"Measurements","俯视图户型可视":"Floor Layout","测量工具可视":"Ruler","标题":"Title","简介":"Description","添加链接":"Add a link","请填写链接文本":"Link title","请填写链接地址":"Link","链接文本不能为空":"Please fill in the text.","链接地址不能为空":"Please fill in the link.","添加":"Add","取消":"Cancel","分类":"Choose a category","其他":"Other","文博":"Museum","地产":"Real estate","电商":"E-Commerce","餐饮":"Catering","家居":"Home","上传时间":"Upload date","拍摄数量":"Number of shots","访问密码":"Set a password","公开":"Public","加密":"Private","输入4位数字或字母的密码":"4 characters","设置完密码后,当其他人访问您的场景时,需要输入您设置的密码才能访问。如无需设置点击“公开”即可。":"Set a password if you don’t want it to be accessible for the public. ","设置为初始画面":"Set as scene cover","请等待...":"Please wait…","设置成功":"Set up successfully","当前初始视角":"Current cover","添加热点":"Add Hotspot","设置热点可视":"Hotspot Visiblity","通过添加热点,您可以进一步装饰您的场景;例如:说明标签、图片、音频、视频等。":"Add a hotspot to include tags, pictures, audio or video.","热点定位":"Hotspot Location ","将热点标记并拖动到合适的位置。":"Drag the hotspot to another position.","请先在左侧点击":"Please click on the left side first.","辅助校准位置可能不准确,请检查并拖动到与左侧相同位置":"The auxiliary alignment position may not be accurate, please check and drag to the same position as the left.","您标注的热点位置在区域外,系统已将其调整至区域内。":"The hotspot you set was out of the area. The system adjusted it to inside the area.","确定热点位置":"Confirm hotspot location","修改热点位置":"Modify hotspot location","请于左方两个场景区域拖动热点并对准所需标记的位置。":"Please drag the hot spot in the two scene areas on the left and align it to the desired point.","选择热点样式":"Choose hotspot style","文本热点。您可根据场景内容填写热点的标题、内容以及链接内容":"Text hotspot. Fill in a title, description and link based on the content of the scene.","请填写标题":"Please enter a title.","请添加标题(15字以内)":"Please add a title (max 30 characters).","请填写内容简介":"Please enter a description.","完成":"Complete","图片热点。您可添加图片以丰富的热点内容,图片过大将被系统压缩。":"Picture hotspot. If the picture is too large, it will be compressed by the system.","图片":"Picture","添加图片":"Add","支持JPG、PNG等图片格式":"Supports mainstream formats.","更改":"Change","提示":"Message","文件过大":"File is too large","图片文件过大(兆),不能大于10兆":"The picture file is too large (MB). Max 10 MB.","请上传图片":"Please upload a picture.","确定":"OK","视频热点。您可上传本地视频内容进行更多的展示。":"Video hotspot. Upload a video to further demonstrate the scene.","视频":"Video","添加视频":"Add","支持MP4、MOV等视频格式":"Supports mainstream formats.","视频文件过大(兆),不能大于20兆":"The video file is too large (MB). Max 20 MB.","请上传视频":"Please upload a video.","音频热点。您可上传本地音频内容进行热点讲解。":"Audio hotspot. Upload an audio to interpret the hotspot.","音频":"Audio","添加音频":"Add audio","支持MP3、WAV等音频格式":"Supports mainstream formats.","请上传音频":"Please upload an audio file.","音乐文件过大(兆),不能大于5兆":"Music files are too large (MB). Max 5 MB.","超链接热点。您可添加超链接视频,视频将在热点里播放。":"Hyperlink hotspot. Add a hyperlinked video and the video will be played at the hotspot.","嵌入式外链":"Embedded external link","请上传外链":"Please upload an external link.","导航路线":"Tour Route","切换视角":"Switch View","开始录制":"Start recording","继续录制":"Continue recording","录音":"Record ","停止":"Stop","麦克风开启失败":"Microphone can't be turned on.","您需要在浏览器的设置中允许此网站使用麦克风,并且添加麦克风设备,然后刷新该页面。":"Please allow this site to use the microphone in your browser settings and refresh the page.","录制时长2分钟,当前已达上限":"The recording time limit of 2 minutes has been reached.","是否清空?":"Delete?","您当前录制的内容将会被清空":"Your current recording will be deleted.","放弃":"Cancel","自动导览功能已开启":"Tour guide turned on","速度":"Speed","秒":"s","一键平滑":"One-click smoothing","原始拍摄":"Original","转换成功":"Conversion succeeded","声画同步":"Audiovisual synchronization","上传音频":"Upload audio","支持上传MP3等音频文件":"Supports mainstream formats.","删除":"Delete ","地面标志":"Logo style","手动上传":"Upload","标志大小":"Size","漫游可行":"Roaming Possibility","通过设置漫游可行,进一步优化在漫游时出现的体验;例如,您在漫游时,出现穿透房间的情况。":"Further optimize the experience during roaming by setting roaming possibility, such as cases in which one may penetrate through the walls. ","通过点选各个漫游点的连线即可设置漫游点的可行性。":"Set the roaming possibility by clicking and setting the connection of each roaming point.","保存当前设置":"Save current settings","隐藏该点位置":"Hide the spot","显示该点位置":"Show the spot","漫游视角":"Roaming View","CAD视角":"CAD View","增添结构":"Add structure","门":"Door","窗户":"Window","柱子":"Pillar","点":"Corner","房间名字":"Room name","未命名":"Untitled","显示名称":"Display name","显示面积":"Display area","房间地面校准":"Floor calibration","设置":"Set up ","能对当前房间地面高度进行校准":"Calibrate the height of the current room.","请将左右分屏中的线条移动到相同的位置,例如墙角边缘":"Move the lines in the split left and right screens to the same position, such as at the corner. ","确定地面高度":"Determine height","地面高度校准完毕,请继续修改其它墙壁位置":"Height calibration completed, please continue to modify other wall positions.","屋顶高度":"Ceiling height","保存并发布":"Save and publish","请填写简介":"Introduction","未记录":"Not recorded","清空":"Clear","录制音频":"Record audio","房间属性":"Room properties","隐藏该点设置":"Hide this shooting point","确定修改":"Press OK to modify","总面积":"Total area","约":"≈","米":"m","确定起点":"Select the starting point","请在手机展示页面观看VR效果":"Experience the VR mode on your phone.","请在展示页面使用测距功能":"Please use the measuring function on the page.","确定终点":"Select the ending point","起点确定完毕,请定位终点":"Starting point set, please set the ending point.","3D空间漫游":"3D space roaming","手机扫一扫分享 还可体验VR模式":"Scan with your phone to share the scene, you can also experience the VR mode.","开启音乐":"Turn on music","关闭音乐":"Turn off music","测距工具":"Measuring tool","VR模式":"VR mode","分享":"Share it","保存成功":"Saved successfully","导览录制中,不能播放":"Unable to play music during tour recording.","登录异常(代号3001)":"Login error (code 3001)","您没有登录,请于主页登录后再编辑":"Please log in before editing.","去登录":"Log in","登录完毕,继续":"Log in and continue","找不到场景对应相机":"Unable to find the corresponding camera for the scene.","该场景不存在":"This scene does not exist.","异常错误":"Error","登陆验证出错', '若一直无法登陆,请联系客服":"Login verification error ',' Please contact our customer service.","退出去登录":"Log out","请输入简介":"Please enter a discription","是否重新录制导览?":"Do you want to start over the tour recording?","重新录制将覆盖之前的数据":"Redo the recording will overwrite previous data.","您已录制过导览":"You have recorded a tour.","是否删除当前场景?":"Do you want to delete the current scene?","该操作将无法恢复":"This operation cannot be resumed.","使用过的积分亦无法返还":"Used points are not refundable.","是否删除当前热点?":"Delete current hotspot?","确认删除":"OK","样式一":"Style one","样式二":"Style two","样式三":"Style three","上传失败":"Upload failed","编辑名称为空":"Name empty","四维看看":"4D KanKan","场景":"Scenes","保存":"Save","取消加密":"Cancel encryption","传递的参数为空":"Empty Parameter","场景为空":"Empty Scene","场景不属于该相机":"Scene does not belong to the camera.","该场景被成功删除!":"Scene deleted successfully.","录屏":"Screen recording","抱歉,录音上传失败":"Recording upload failed.","您可以为此导览手动上传音频,或重新录制":"Upload audio manually or start over.","正在上传录音":"Uploading recorded audio…","录音保存成功":"Recording saved successfully.","微信上传获取id成功":"WeChat obtained ID successfully.","录音保存失败":"Failed to save audio.","微信上传获取id失败":"WeChat failed to obtain ID.","模型保存":"Save model","CAD图片上传":"CAD image upload","保存失败":"Failed to Save","您的场景已加密, 点击修改密码。":"Your scene is encrypted, click to change the password.","请设置您的加密密码":"Please set your password.","图片文件过大(兆),不能大于":"The picture file is too large (MB). Max () MB.","拖动滑块、根据绿色阴影调整热点位置":"Drag the slider to adjust the hotspot position based on the green shadow.","请随处走动来确保热点位置准确":"Scroll around to make sure the hotspot is accurately positioned.","双指捏合可后退,反之可前进":"Pinch with two fingers to move for- and backwards.","平面视角功能已开启":"Plane view turned on","平面视角功能已关闭":"Plane view turned off","漫游视角功能已开启":"Roaming view turned on","漫游视角功能已关闭":"Roaming view turned off","暂时不去":"Not going","立即前往":"Go now","保存并发布成功!":"Saved and published successfully.","是否立刻前往观看您的场景?":"Do you want to proceed and watch your scene right away?","三维视角功能已开启":"3D view turned on","三维视角功能已关闭":"3D view turned off","自动导览功能已关闭":"Tour guide turned off","小地图功能已开启":"Mini-map feature turned on","小地图功能已关闭":"Mini-map feature turned off","VR功能已打开":"VR turned on","VR功能已关闭":"VR turned off","标尺功能已打开":"Measuring function turned on","标尺功能已关闭":"Measuring function turned off","俯视图户型功能已开启":"Layout plan turned on","俯视图户型功能已关闭":"Layout plan turned off","测距功能已开启":"Ruler turned on","测距功能已关闭":"Ruler turned off","您的浏览器不支持上传文件":"Your browser does not support the selected files.","您选择的不是浏览器支持的 + chType[elemType] + 文件,请重新选择":"The selected file is not supported by the browser + chType [elemType] + Please select another file.","您选择的不是浏览器支持的":"Your browser does not support the selected files.","文件,请重新选择":"Please select another file.","文件类型错误":"File type error","文件出错":"File error","无法加载此":"Unable to load","文件可能损坏,或者浏览器不支持,或者后缀与文件不匹配。建议在IE以外的浏览器上传":"The file may be damaged, not supported by your browser or the format does not match. Please use other browsers than IE.","上传语音讲解":"Upload audio commentary","更改图片":"Change picture","删除图片":"Delete picture","删除视频":"Delete video","更改视频":"Change video","更改音频":"Change audio","删除音频":"Delete audio","系统提示":"System Message","仅支持腾讯、爱奇艺、优酷外链":"Only Tencent, iQiyi and Youku external links are supported.","点击选择要设置的热点":"Click to select the hotspot.","点击绿色图标,设置热点在这些位置是否可见":"Change the visibility of the hotspot by clicking on the green icon.","麦克风开启成功":"Microphone turned on successfully.","微信麦克风开启失败":"WeChat microphone failed to turn on.","可能您若要开启录音,请于微信的设置—隐私—授权管理中开启。且保证录音设备正常":"To record, please enable it under: WeChat Settings -> Privacy -> Authorizations. Also ensure proper functioning of the recording equipment.","当前不支持录音":"Recording is not supported currently.","可在微信或电脑端录音":"Record on WeChat or a computer.","请填写":"Please fill out.","密码需要四位数字或字母":"The password requests 4 characters.","请退出后重新登录该场景的账户":"Please log out and log in with the matching account again.","若一直无法登录,请联系客服。":"If you have troubles to log in, please contact our customer service.","登录验证出错":"Login verification error","若一直无法登陆,请联系客服":"If you have troubles to log in, please contact our customer service.","您未登录该场景的账户":"You are not logged in to the right account. Please log out","图片文件过大":"The picture file is too large.","不能大于":"Cannot be larger than","兆":"MB","请输入4位数的密码":"Please enter a 4-digit password.","重新载入模型":"Reload the model","确定回退?":"Are you sure you want to reload the model?","将会重置为展示页的状态":"Reset and go back to the display page.","无法设置热点可视":"Unable to set hotspot visibility.","当前无热点,请先创建热点再设置":"Currently no hotspots set up. Please create one.","logo替换成功!":"Logo replaced successfully.","二维码":"QR code","复制失败,请直接点击链接以复制展示页面的地址栏":"Copy failed, please click and copy the link address directly.","请点击选择":"Please click to select.","不是浏览器支持的音频文件":"Audio file format not supported by this browser.","文件。 文件可能损坏,或者浏览器不支持,或者后缀与文件不匹配。建议在IE以外的浏览器上传":"The file may be damaged, not supported by your browser or the format does not match. Please use other browsers than IE.","预览":"Preview","录制时长限制为2分钟,已自动结束":"Recording duration is limited to 2 minutes. Recording has been stopped automatically.","是否重新录制?":"Do you want to rerecord?","已有语音讲解将会被替换":"Existing audio commentary will be replaced.","已录制配音将会被删除":"Recorded dubbing will be deleted.","是否删除":"Delete?","录制时长限制为2分钟,当前已达上限":"Recording duration is limited to 2 minutes. This limit has been reached.","开启录屏同步录音,已有音频将会被替换":"Turn on screen and voice recording. Existing audio will be replaced.","是否替换?":"Replace?","平滑过渡":"Smooth transition","原始过渡":"Standard transition","点击保存按钮保存当前镜头方向":"Click Save to save the current camera position.","镜头保存成功":"Shot saved successfully.","手机扫一扫分享":"Scan with your phone to share.","还可体验VR模式":"Experience VR mode","请上传":"Please upload ","热点保存":"Save hotspot","点击确定热点位置":"Click to choose the hotspot location.","未设置":"Not set","已设置":"Already set","确定删除":"Delete","点击一下即可上传":"Click to upload","还差一步":"Proceed","您当前上传的语音讲解将会被删除":"Your currently recorded audio commentary will be deleted.","删除语音讲解":"Delete audio commentary","Safari不支持录音":"Safari does not support recording.","可在其他浏览器中录音,或稍后上传讲解音频":"Record in other browsers or upload audio later speratly. ","此浏览器不支持录音":"This browser does not support recording.","建议更换其他主流浏览器,体验更佳":"Please use another mainstream browser for a better experience.","抱歉,录音保存失败":"Sorry, failed to save recording.","您当前录制的语音讲解将会被删除":"Your current audio commentary will be deleted.","失败":"Fail","成功":"successfully","登录完毕,重新保存":"Save again after login. ","您没有登录,请登录后再编辑":"Not logged in. Please log in before editing.","注释":"Comment","照片":"Photo","声音":"Audio","链接":"Link","此房间没有漫游点,无法进入":"No shooting point found in this room. It therby cannot be entered.","热点位置计算在房间或模型外,已矫正位置 。":"The calculated hotspot position was outside the room or model and is corrected.","超出字数限制":"Word limit exceeded","无法添加热点":"Unable to add hotspot","热点数目已达最大:":"Max. number of hotspots reached:","无法在此添加热点":"Unable to add hotspot here.","由于当前位置没有邻近位置,无法添加热点。请在别的位置添加":"Unable to add hotspot because nearby location missing. Please add it elsewhere.","是否删除?":"Delete?","场景?":"Scenes?","请先在上方点击":"Please click above.","获取贴图失败,可能网络状态不佳,请重新尝试":"Failed to get maps. Check your network connection and try again.","该点暂时无法设置":"Unable to set this point temporarily.","该点是相机协助点,正常情况不会走到该点。请走到其他点设置热点。":"This point is a camera assisting point. Please choose another one to set a hotspot.","点击下一步编辑热点内容":"Click Next to edit content of the hotspot.","请选择一个图像文件!":"Please select an image file.","裁剪地面标志":"Crop ground logo.","房间":"Room","请先走到一个房间才能设置":"Please walk into a room before setting.","当前房间无法进入":"Room inaccessible","确定计算地面高度":"Determine floor height","请将左右分屏中的线条都移动到相同位置,例如墙角边缘":"Move the lines in both screens to the edges of the room. ","地面高度校准完毕,请继续修改其他墙壁位置":"Floor height calibration completed. Continue to modify other wall positions.","房间相机点数为0":"No shooting points found in the room. ","柱宽度":"Width","柱厚度":"Depth","柱属性":"Parameters","厚度":"Depth","门宽度":"Width","门高度":"Height","窗宽度":"Width","窗高度":"Height","门属性":"Parameters","窗属性":"Parameters","高度":"Height","基础设置":"Basic Setting","场景信息":"Scene Info","初始画面":"Scene Cover","自动导览":"Tour Guide","地面Logo":"Spot Logo","修整模型":"Model Edit","已添加的热点":"Added hotspots","必填,限15字":"Mandatory, up to 30 characters.","填写标题":"Enter a title","暂停":"Pause","场景标题":"Please name your scene","限15字内":"Up to 30 characters","场景简介":"Scene Description","限200字内":"Up to 200 characters","四维看看 让空间讲故事":"4DKanKan Let space tell the story.","添加链接文本":"Add a description of the link","添加链接地址":"Add the link address","漫游":"Roaming","移动屏幕,点击保存您的初始画面。(注:视频采集点无法保存)":"Drag the screen, click and save your scene cover.(Video point cannot be set)","选择音乐":"Choose a BGM","无音乐":"Mute","测量工具":"Ruler","标志样式":"Logo style","将上下分屏热点对准同一个所标记目标":"Target the same spot on the split screens.","确定热点位置,点击下一步编辑内容":"Confirm hotspot location, click Next to edit.","选择样式":"Choose hotspot style","请输入您的标题":"Enter a title","内容简介":"Description","上一步":"Go back","仅支持腾讯、爱奇艺、优酷":"Only Tencent, iQiyi and Youku external links are supported.","点击开始录制导览":"Click Start to record the tour.","房间地面":"Ground","房间屋顶":"Roof","删除片段":"Delete the clip","请选择分类":"Please choose a category.","4位数字或字母":"4 digits or letters","编辑模式下无法使用测距功能,请在展示页面操作。":"Please use the measuring function on the page.","录屏成功":"Screen recorded successfully","当前位置已存在建筑部件。":"There is already a structure on the selected spot. ","当前位置无法添加建筑部件。":"The selected spot cannot add more structure elements.","暂无项目描述":"No content yet","宽度":"Width","完成录制":"Finish","文本热点。您可根据场景内容填写热点的标题、内容以及链接内容。":"Text hotspot. Fill in a title, description and link based on the content of the scene.","移动屏幕,点击保存选择您的初始画面":"Drag the screen, click and save your scene cover.","下一步":"Next","开始":"Start","删除此部件":"Delete","导览":"Tour Guide","限定15字以内":"Up to 30 characters","删除测量线":"Delete","音乐":"Music","外链":"External link","输入密码:":"Password","请输入观看密码":"Enter password","观看场景":"GO!","解锁成功!":"Unlocked","密码错误,请再输一次":"Incorrect password,try again.","密码错误":"Incorrect password","分享链接给好友":"Share the link","一键复制":"Copy the link","浏览器未能检测到转动":"Browser failed to detect rotation.","请在手机或浏览器设置中开启了运动和方向访问等设置,然后刷新此页面。":"Please turn on the access to the motion and orientation sensors in your phone or browser settings, then refresh this page.","为完整体验VR效果,请打开 “设置” > “Safari” > “隐私和安全” 下的 “运动和方向访问” 开关,然后刷新此页面。":"For a better VR experience, permit the Motion & Orientation Access under Settings> Safari> Privacy & Security and then refresh this page.","请点击“允许”":"Please click Allow","运动和方向访问失败":"Motion and direction access denied.","这会导致画面视角一直固定。您需要完全关闭当前应用,然后再次打开,并允许访问运动与方向。":"This will result in a fixed perspective. You need to close the current App and then restart. Please allow the access to motion and direction.","复制失败。请直接复制地址栏连接。":"Copy failed. Please copy the link address manually.","数据不正常":"Abnormal data","上传文件为空":"No file uploaded yet.","无权操作该场景":"You have no access to edit the scene.","修改":"Modify","微信":"WeChat","朋友圈":"Moments","辅助校准位置可能不准确,请检查并拖动到与上侧相同位置":"The auxiliary alignment position may not be accurate, please check and drag to the same position as the upper side.","原始模型下载":"Original model download","修改模型上传":"Modified model upload","模型下载/上传功能教程":"Model download/upload tutorial","1.下载场景模型的压缩包后,使用三维软件打开解压后文件“output.house.obj”,即可开展编辑;":"1.After downloading the ZIP package of the scene model, open the decompressed file”output.house.obj” to edit it.","2.编辑完成后,建议将模型贴图进行烘焙,烘焙贴图需控制在1.5M以内,同时,保存的obj文件需要控制在3M以内;":"2.After the edit is completed, it is recommended to render the model texture. The render texture should be controlled within 1.5M while the saved obj files should be controlled within 3M.","3.完成1、2步骤后,将obj,mtl,贴图打包为zip压缩包上传即可。":"3.After completing steps 1 and 2, package the obj, mtl, and texture into a zip package and upload it.","注:":"Notes:","1.请尽量控制文件大小,以免浏览的时候卡顿,影响体验。":"1.Please control the file size, in order not to freeze when you are browsing which will affect your experience.","2.请将obj及压缩包的名称保持一致,否则会替换失败。":"2.Please use the same name in both obj and ZIP package, otherwise the replacement will fail.","*上传模型失败,请参照右侧教程。":"Failed to upload model, please refer the tutorial on the right.","zip文件只能有一层目录或无目录":"There should be only one layer or no directory in zip files.","必须有且仅有一个obj和mtl文件":"There must be one and the only one obj and mtl file.","贴图需控制在1.5M以内,obj文件需要控制在3M以内。":"The texture should be controlled within 1.5M, obj file should be controlled within 3M.","上传下载":"Upload Download","上传中":"Uploading","等待上传...":"Wait...","上传出错":"Error","文件上传":"Upload File","添加文件":"Add","开始上传":"Start","已上传":"Uploaded"}};n||(n=window.navigator.language||window.navigator.userLanguage||null)&&!/^zh/.test(n)&&(console.log("自动获取浏览器语言:"+n),g.a.lang=n="en");var A={get:function(e){if(!n||"zh"===n||!a[n])return e;var t=a[n][e];return void 0===t?e:t},set:function(e){n=e}};"en"==n?$("i.icondkkr").removeClass("icondkkr").addClass("iconhengbiaoEN"):$("i.icondkkr").removeClass("icondkkr").addClass("iconhengbiaoCN"),$("body").find("[data-lang]").each((function(){var e=$(this);e.html(A.get(e.text()))})),$("body").find("[placeholder]").each((function(){var e=$(this),t=e.attr("placeholder");t&&e.attr("placeholder",A.get(t))}));t.a=A},function(e,t,i){"use strict";var o=function(){};o.info=function(e){console.log(e)},o.debug=function(e){console.debug(e)},o.error=function(e){console.error(e)},o.warn=function(e){console.warn(e)},o.time=function(e){console.time(e)},o.timeEnd=function(e){console.timeEnd(e)},o.message=function(e){alert(e)},t.a=o},function(e,t,i){"use strict";var o={PANORAMA:"panorama",DOLLHOUSE:"dollhouse",FLOORPLAN:"floorplan",TRANSITIONING:"transitioning",toInt:function(e){switch(e){case this.PANORAMA:return 1;case this.DOLLHOUSE:return 2;case this.FLOORPLAN:return 3;case this.TRANSITIONING:return-1}throw new Error("未知模式: "+c)},fromInt:function(e){switch(e){case"1":case 1:return this.PANORAMA;case"2":case 2:return this.DOLLHOUSE;case"3":case 3:return this.FLOORPLAN}throw new Error("未知模式: "+c)},convertWorkshopModeInt:function(e){switch(e){case"0":case 0:return this.PANORAMA;case"1":case 1:return this.FLOORPLAN;case"2":case 2:return this.DOLLHOUSE;case"3":case 3:return this.MESH}throw new ViewmodeConvertException("No known conversion for Workshop int to viewmode for int: "+e)}};t.a=o},function(e,t,i){"use strict";i(191);var o=i(7),g=i(3);Math.sign=function(e){return e<0?-1:1};var n={signedUrlDefaultExpireTime:24e4,signedUrlCheckInterval:1e4,signedUrlRefreshBuffer:15e3,dollhouseFOV:70,dollhouseNear:1,dollhouseFar:5e3,insideFOV:70,insideFOVMax:120,insideNear:.1,insideFar:5e3,insideLookSpeed:.12,insideLookLimitUp:40,insideLookLimitDown:-40,orthoNear:1,orthoFar:5e3,orthoBase:10,narrowLandscapeHeight:290,reallyNarrowLandscapeHeight:250,visionTilingStartDate:new Date("8/26/2016"),visionTilingStartVersion:"1.1.407.13667",windowHeightHighQualityThreshold:900,tourStepDelayDefault:3500,tourStepDelaySlideShow:5e3,workshopApsect:9/16,highQualityMaxZoom:2,ultraHighQualityMaxZoom:3,fish:{insideFOV:80,insideLookLimitUp:20,insideLookLimitDown:-20},MAX_SPOT_COUNT:30,LOADPIC:"thumbBigImg.jpg",LOADPIC_FISH:"thumbFishBigImg.jpg",THUMBPIC:"thumbSmallImg.jpg",Mobile_Login:"mobile.html#/login",SCENETYPE:[g.a.get("文博"),g.a.get("地产"),g.a.get("电商"),g.a.get("餐饮"),g.a.get("家居"),g.a.get("其他")],SCENETYPE2:[g.a.get("其他"),g.a.get("文博"),g.a.get("地产"),g.a.get("电商"),g.a.get("餐饮"),g.a.get("家居")],SCENETYPE_index:[[g.a.get("其他"),"icon_logo"],[g.a.get("文博"),"icon_wenbo"],[g.a.get("地产"),"icon_zhuye"],[g.a.get("电商"),"icon_dianshang"],[g.a.get("餐饮"),"icon_canyin"],[g.a.get("家居"),"icon_jiaju"]],FishCam_BackDist:4/11,FishCam_BackDist2:.2,skyRadius:.6,BGM_LIST:[{name:g.a.get("欢快"),ch:"欢快",file:"01.mp3"},{name:g.a.get("空灵"),ch:"空灵",file:"02.mp3"},{name:g.a.get("节奏"),ch:"节奏",file:"03.mp3"},{name:g.a.get("怀旧"),ch:"怀旧",file:"04.mp3"},{name:g.a.get("想念"),ch:"想念",file:"05.mp3"},{name:g.a.get("复古"),ch:"复古",file:"06.mp3"},{name:g.a.get("琴弦"),ch:"琴弦",file:"07.mp3"},{name:g.a.get("愉快"),ch:"愉快",file:"08.mp3"}],bigScenePrefix:"https://4dscene.4dage.com/",imgRoot:"images/",FloorLogoUser:"floorLogoImg.png",HotChinese:{note:g.a.get("注释"),photo:g.a.get("照片"),video:g.a.get("视频"),voice:g.a.get("声音"),link:g.a.get("链接")},styleRemarks:{note:g.a.get("文本热点。您可根据场景内容填写热点的标题、内容以及链接内容。"),photo:g.a.get("图片热点。您可添加图片以丰富的热点内容,图片过大将被系统压缩。"),video:g.a.get("视频热点。您可上传本地视频内容进行更多的展示。"),voice:g.a.get("音频热点。您可上传本地音频内容进行热点讲解。"),link:g.a.get("超链接热点。您可添加超链接视频,视频将在热点里播放。")},Circle:"iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAARs0lEQVR4nO3de4xc5XnH8e/M2mvjxV6bq8H4gh1DIOBCqEAOtSGJSdIoFeXSAnFVSPpHKKIoTdLS5J8qapNKTdMLTdJIUdLECiJOkZwqVW5QrjUXpwbXYAgYfANfwCR4Mcb2enenfzyz3vF4bmfmnPc5l99HOlrvMnPmsTnvb99zznvet8QTa5BM6wdOr24zgenADGCw+ufx7ycDJwB91ff01+1nuLqNAgeBI8D+6vYWMFT9uh/YB7xW3YYT+5tJ4iZ5FyAd6QfOAuYC84DZ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QBEK/p2G3Ey4ELyO/j1qGNAZuA/8G6+vt9y8kPBUByZmFBsAy7cKi1DaOpAM9jDX4tNh28xEwBEMbJwGXYnYQL0SPJzQxj3fp12AXXX/uWk38KgPCmYI8jXwRcjMYXvILdstuAPY572LecYtFtrPAOA7+sbgCDwPnYacK7sduMef3/MoIt6/YrrHv/HDDkWlHB5fVAy5Ih4PHqBnZ6sBg4F1iEPZw0h+xdUBwDdmIP37yMTay5GevmS0ooANJnGLvivanmZ/3AWcD86tfZwGnV7aTQBdb5DbZi8+vAHmy+/B1Y116NPeUUANkwjI1wazTKrR84vbrNxGY5GsRuSc6ofp2OjU8YwO5GTOPYHsVh7P462MQYler3+6vbW9WvQ9U/78MesnkNNfJM+3+04rJhF1d+wAAAAABJRU5ErkJggg==",PngdataPre:"data:image/png;base64,",TOURFile_prefix:"data/data**/tour/screenCap{index}.json",TOURimg_prefix:"images/images**/tour/guide",guideSoundFile:"201810-sound",guideMediaFile:"201810-media",setPrefix:function(e){n.prefix=2==e?"https://4dkk.4dage.com/":"https://scene3d.4dage.com/"}};o.a.urlHasValue("oldPrefix")?n.setPrefix():n.setPrefix(2),t.a=n},function(e,t,i){"use strict";i(72),i(166),i(39),i(63),i(86),i(192);var o=i(201),g=i.n(o);if(window.location.search.indexOf("vlog")>-1)new g.a;function n(e,t){var i=window.navigator.userAgent.match(e);return i=i?i[1].split(t):[],{major:parseInt(i[0])||0,minor:parseInt(i[1])||0,patch:parseInt(i[2])||0}}var a={isFullscreen:function(){return document.fullscreenElement||document.mozFullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},supportsFullscreen:function(){return document.fullscreenEnabled||document.mozFullscreenEnabled||document.mozFullScreenEnabled||document.webkitFullscreenEnabled||document.msFullscreenEnabled},isPointerLocked:function(){return document.pointerLockElement||document.mozPointerLockElement||document.webkitPointerLockElement},requestFullscreen:function(e,t){e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.msRequestFullscreen&&e.msRequestFullscreen(),t&&$(document).on("fullscreenchange webkitfullscreenchange mozfullscreenchange MSFullscreenChange",a.requestPointerLock)},requestPointerLock:function(){var e;if(document.fullscreenElement)e=document.fullscreenElement();else if(document.mozFullscreenElement)e=document.mozFullscreenElement();else if(document.mozFullScreenElement)e=document.mozFullScreenElement();else{if(!document.webkitFullscreenElement)return;e=document.webkitFullscreenElement()}e.requestPointerLock=e.requestPointerLock||e.mozRequestPointerLock||e.webkitRequestPointerLock,e.requestPointerLock(),$(document).off("fullscreenchange webkitfullscreenchange mozfullscreenchange MSFullscreenChange",this)},exitPointerLock:function(){document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock()},exitFullscreen:function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},details:function(){var e=navigator.userAgent.match("(Firefox|Chrome|Safari)/([\\d]+)");return e?{name:e[1],version:parseInt(e[2]),platform:navigator.platform}:{}},is:function(e){return this.details()&&this.details().name===e},inIframe:function(){return window.parent!==window},aspectRatio:function(e){var t=(e=e||$("#player")).width()/e.height();return isFinite(t)?t:0},userAgent:function(){return window.navigator.userAgent},isMobile:function(){var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|android|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))},isLandscape:function(){return this.isMobile&&this.aspectRatio()>1},isSmallScreen:function(){return screen.width/window.devicePixelRatio<240},detectIE:function(){return-1!==window.navigator.userAgent.indexOf("MSIE ")||!!navigator.userAgent.match(/Trident.*rv\:11\./)},detectSafari:function(){return-1!==window.navigator.userAgent.indexOf("Safari")&&!this.detectOpera()&&!this.detectChrome()},detectFirefox:function(){return-1!==window.navigator.userAgent.indexOf("Firefox")},detectChrome:function(){return-1!==window.navigator.userAgent.indexOf("Chrome")&&!this.detectOpera()},detectOpera:function(){return-1!==window.navigator.userAgent.indexOf("OPR")},detectIOS:function(){return this.detectIPhone()||this.detectIPad()||this.detectIPod()},detectIPad:function(){var e=window.navigator.userAgent;return/iPad/.test(e)},detectIPod:function(){var e=window.navigator.userAgent;return/iPod/.test(e)},detectIPhone:function(){var e=window.navigator.userAgent;return/iPhone/.test(e)},detectAndroid:function(){return-1!==window.navigator.userAgent.indexOf("Android")},detectAndroidMobile:function(){var e=window.navigator.userAgent;return this.detectAndroid()&&-1!==e.indexOf("Mobile")},detectSamsungNative:function(){var e=window.navigator.userAgent;return-1!==e.indexOf("SM-G900H")||-1!==e.indexOf("GT-I9500")||-1!==e.indexOf("SM-N900")},detectSamsungS6:function(){return-1!==window.navigator.userAgent.indexOf("SM-G92")},detectHUAWEI5X:function(){return-1!==window.navigator.userAgent.indexOf("KIW-TL00H")},detectWebVR:function(){return!(!window.navigator.getVRDisplays||!window.VRDisplay)},getVRDisplay:function(){var e=$.Deferred();return this.detectWebVR()?(navigator.getVRDisplays().then((function(t){t.length>=1&&e.resolve(t[0]),e.reject(null)})),e):e.reject(null)},iosVersion:function(){if(!this.detectIOS())throw new DeviceMismatchException("Did not detect an iDevice");return n(/((?:\d+\_?){1,3}) like Mac OS/,"_")},androidVersion:function(){if(!this.detectAndroid())throw new DeviceMismatchException("Did not detect an Android based device");return n(/Android ((?:\d+\.?){1,3})/,".")},valueFromCookie:function(e,t){var i=new RegExp(e+"=([0-9a-f]+)(; ?|$)").exec(document.cookie);if(!i)return t;var o=i[1];return"boolean"==typeof t?"true"===o||"1"===o:"number"==typeof t?parseFloat(o):o},valueFromHash:function(e,t){var i=new RegExp("[#&?]"+e+"=([^#&?]*)").exec(window.location.href);if(!i)return t;var o=i[1];return"boolean"==typeof t?"true"===o||"1"===o:"number"==typeof t?parseFloat(o):window.decodeURIComponent(o)},getProjectNum:function(){var e=window.location.href.substring(window.location.href.indexOf("?")+1);-1!=(e=e.replace(/&/gi,"&")).indexOf("#")&&(e=e.substring(0,e.indexOf("#")));for(var t=e.split("&"),i=0;i<t.length;++i)if(0==t[i].indexOf("m="))return t[i].substring(t[i].indexOf("=")+1);return e.substring(e.indexOf("=")+1)},urlHasValue:function(e,t){if(t){var i=window.location.href.substring(window.location.href.indexOf("?")+1),o=i.indexOf("&"+e+"=");if(o>-1){var g=i.substring(o+("&"+e+"=").length);return g.indexOf("&")>-1&&(g=g.substring(0,g.indexOf("&"))),g.indexOf("#")>-1&&(g=g.substring(0,g.indexOf("#"))),g}return!1}return window.location.href.substring(window.location.href.indexOf("?")+1).indexOf("&"+e)>-1},islongPhone:function(){var e=screen.height/screen.width;return this.isMobile()&&(e>1.99||e<.502512)},detectWeixin:function(){return"micromessenger"==window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i)},detectEdge:function(){return window.navigator.userAgent.indexOf("Edge")>-1},getQueryValue:function(e){var t=window.location.search.substr(1);if(!t)return"";var i={};return t.split("&").forEach((function(e){var t=e.split("=");2==t.length&&(i[t[0]]=t[1])})),e?i[e]||"":i},isTabHidden:function(){var e=["webkit","moz","ms","o"];if("hidden"in document)return document.hidden;for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return document[e[t]+"Hidden"];return!1}};t.a=a},function(e,t){e.exports=THREE},function(e,t,i){"use strict";i(39);var o=i(18),g={globalDone:null,funcs:[],counter:0,uniqueID:0,start:function(e,t,i,g,n,a,A,r){return g=g||0,this.funcs.push({func:e,current:-g*Math.abs(t),duration:(1-Math.max(g,0))*Math.abs(t),done:i,easing:n||o.a.linearTween,cycling:t<0,running:!0,debug:g<0,name:a||"T"+this.counter,id:void 0===A?this.counter:A,paused:!1,cancelFun:r}),e(0,16),this.counter+=1,e},trigger:function(e){var t=void 0===e.delayRatio?0:e.delayRatio,i=e.func||function(){},g=void 0===e.duration?0:e.duration;void 0!==e.cycling&&e.cycling&&(g=-Math.abs(g));var n=e.done||null,a=e.easing||o.a.linearTween,A=e.name||"R"+this.counter,r=void 0===e.id?this.counter:e.id;return this.start(i,g,n,t,a,A,r)},setTimeout:function(e,t,i){var o=void 0===i?this.counter:i;return this.trigger({done:e,duration:void 0===t?0:t,name:"O"+this.counter,id:o})},pause:function(){this.paused=!0},resume:function(){this.paused=!1},update:function(e){this.funcs.forEach((function(t){if(!(t.paused||(t.current+=1e3*e,t.current<0)))if(t.current>=t.duration&&!t.cycling){var i=t.easing(1,0,1,1);t.func(i,1e3*e),t.done&&t.done(),t.running=!1}else{var o=t.easing(t.current%t.duration/t.duration,0,1,1);(t.func(o,1e3*e)||!1)&&(t.done&&t.done(),t.running=!1)}}));var t=this.funcs.length;this.funcs=this.funcs.filter((function(e){return e.running}));var i=this.funcs.length;if(t>0&&0===i&&this.globalDone){var o=this.globalDone;this.globalDone=null,o()}},adjustSpeed:function(e,t){for(var i=this.getById(e),o=0;o<i.length;o++){var g=i[o];g.duration/=t,g.current/=t}},getById:function(e){return this.funcs.filter((function(t){return e===t.id}))},get:function(e){for(var t=0;t<this.funcs.length;t+=1)if(this.funcs[t].func===e)return this.funcs[t];return null},isRunning:function(e){var t=this.get(e);return null!==t&&t.running},countActive:function(){for(var e=0,t=0;t<this.funcs.length;t+=1)e+=this.funcs[t].running;return e},listActive:function(){for(var e=[],t=0;t<this.funcs.length;t+=1)this.funcs[t].running&&e.push(this.funcs[t].name);return e},done:function(e){this.globalDone=e},cancelById:function(e,t){var i=void 0===e?0:e;this.funcs=this.funcs.filter((function(e){var o=e.id==i;return o&&t&&e.cancelFun&&e.cancelFun(),!o}))},cancel:function(e){this.funcs=this.funcs.filter((function(t){return t.func!==e}))},getUniqueId:function(){return this.uniqueID-=1,this.uniqueID}};t.a=g},function(e,t,i){"use strict";i.r(t);i(39),i(146),i(86),i(63);var o,g,n=i(11),a=i.n(n),A=(i(166),i(44)),r=i.n(A),C=(i(49),i(75),i(59),i(53),i(29),i(60),i(72),i(6)),I=(o={waitDestroyBlob:[],delayOneFrame:function(e){window.setTimeout(e,1)},normalizeUrl:function(e){return e.replace("https://","http://")},domainFromUrl:function(e){var t=/^([^:]*:\/\/)?(www\.)?([^\/]+)/.exec(e);return t?t[3]:e},average:function(e,t){if(0===e.length)return null;for(var i=0,o=0,g=0;g<e.length;g++){i+=t?e[g][t]:e[g],o++}return i/o},countUnique:function(e){for(var t={},i=0;i<e.length;i++)t[e[i]]=1+(t[e[i]]||0);return Object.keys(t).length},averageVectors:function(e,t){var i=new THREE.Vector3;if(0===e.length)return i;for(var o=0,g=0;g<e.length;g++){var n=t?e[g][t]:e[g];i.add(n),o++}return i.divideScalar(o)},equalLists:function(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0},lowerMedian:function(e,t){return 0===e.length?null:(t=t||2,e.sort((function(e,t){return e-t})),e[Math.floor(e.length/t)])},stableSort:function(e,t){return e.map((function(e,t){return{value:e,index:t}})).sort((function(e,i){var o=t(e.value,i.value);return 0!==o?o:e.index-i.index})).map((function(e){return e.value}))},filterAll:function(e,t){return e.filter((function(e){return t.every((function(t){return t(e)}))}))},formatDate:function(e){return[e.getFullYear(),e.getMonth()+1,e.getDate()].join("-")},formatDatetime:function(e){return[e.getFullYear(),e.getMonth()+1,e.getDate(),e.getHours(),e.getMinutes()].join("-")},randomString:function(e){for(var t="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=0;o<e;o++)t+=i.charAt(Math.floor(Math.random()*i.length));return t},uint8ToBase64:function(e,t){t&&"number"==typeof t||(t=8192);for(var i=[],o=0;o<e.length;o+=t)i.push(String.fromCharCode.apply(null,e.subarray(o,o+t)));return btoa(i.join(""))},uuid4:function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)},nth:function(e){return 1===(e%=10)?e+"st":2===e?e+"nd":3===e?e+"rd":e+"th"},extendObject:function(e,t){return Object.keys(t).forEach((function(i){e[i]=t[i]})),e},deepExtend:function e(t){t=t||{};for(var i=1;i<arguments.length;i++){var o=arguments[i];if(o)for(var g in o)o.hasOwnProperty(g)&&("object"==r()(o[g])?t[g]=e(t[g],o[g]):t[g]=o[g])}return t},inherit:function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},extend:function(e,t){for(var i in t.prototype)e.prototype[i]=t.prototype[i]}},a()(o,"extendObject",(function(e,t){if(t instanceof Object)return Object.keys(t).forEach((function(i){e[i]=t[i]})),e})),a()(o,"_textureCache",{}),a()(o,"loadTextureFromCache",(function(e){return this._textureCache[e]||(this._textureCache[e]=I.getTexture(e)),this._textureCache[e]})),a()(o,"extend",(function(e,t){for(var i in t.prototype)e.prototype[i]=t.prototype[i]})),a()(o,"valueFromHash",(function(e,t){var i=new RegExp("[#&?]"+e+"=([^#&?]*)").exec(window.location.href);if(!i)return t;var o=i[1];return"boolean"==typeof t?"true"===o||"1"===o:"number"==typeof t?parseFloat(o):window.decodeURIComponent(o)})),o);I.getMAXCUBETEXTURESIZE=function(){try{var e=document.createElement("canvas"),t=e.getContext("webgl");return t||(t=e.getContext("experimental-webgl")),t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE)}catch(e){return 0}},I.getTexture=((g=new THREE.TextureLoader).setCrossOrigin("Anonymous"),g.crossOrigin=!0,function(e,t,i,o){return/^http/.test(e)||(e="images/"+e.replace("pro/images/","")),g.load(e,t,i,o)}),I.getBlobSrc=function(e,t){var i=I.dataURLtoBlob((t?C.a.PngdataPre:"")+e);return window.URL.createObjectURL(i)},I.destroyBlob=function(e){window.URL.revokeObjectURL(e)},I.destroyNoUseBlob=function(e){if(e){var t=[];for(var i in e.billboard.mediaData)e.billboard.mediaData[i].media&&t.push(e.billboard.mediaData[i].media.src);I.waitDestroyBlob.forEach((function(e){-1==t.indexOf(e)&&(I.destroyBlob(e),console.log("destroyBlob"))}))}else I.waitDestroyBlob.forEach((function(e){I.destroyBlob(e)}));I.waitDestroyBlob=[]},I.dataURLtoBlob=function(e){for(var t=e.split(","),i=t[0].match(/:(.*?);/)[1],o=atob(t[1]),g=o.length,n=new Uint8Array(g);g--;)n[g]=o.charCodeAt(g);return new Blob([n],{type:i})},I.dataURLtoFile=function(e,t){for(var i=e.split(","),o=i[0].match(/:(.*?);/)[1],g=atob(i[1]),n=g.length,a=new Uint8Array(n);n--;)a[n]=g.charCodeAt(n);return new File([a],t,{type:o})},I.saveFile=function(e,t){var i=document.createElementNS("http://www.w3.org/1999/xhtml","a");i.href=e,i.download=t;var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(o)},I.replaceAll=function(e,t,i){var o=new RegExp(t,"g");return e.replace(o,i)},I.randomWord=function(e,t,i){var o="",g=t,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"];e&&(g=Math.round(Math.random()*(i-t))+t);for(var a=0;a<g;a++){o+=n[Math.round(Math.random()*(n.length-1))]}return o},I.getRandomSid=function(){var e=I.randomWord(!0,5,7),t=(new Date).getTime()+"",i=t.length;return e+(t=t.substring(i-8,i-5)+t.substring(i-3,i))},I.getTime=function(e){var t="",i=parseInt(e/60);return i<10&&(t+="0"),t+=i,1==(e=parseInt(e%60)+"").length&&(e="0"+e),t=t+":"+e},I.getSceneType=function(e,t){for(var i=C.a.SCENETYPE_index,o=0;o<i.length;o++)if(i[o][0]==e)return"class"==t?i[o][1]:o;return 0},I.CloneObject=function(e,t){if(t=t||{},e instanceof Array){if(!(e[0]instanceof Object))return e.slice(0);t=[]}for(var i in e)e[i]instanceof Object?t[i]=this.CloneObject(e[i]):t[i]=e[i];return t},I.saveFile=function(e,t){var i=document.createElementNS("http://www.w3.org/1999/xhtml","a");i.href=e,i.download=t;var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),i.dispatchEvent(o)},I.findBgMusic=function(e){if(!e||"noMusic"==e)return null;for(var t=0,i=C.a.BGM_LIST.length;t<i;t++)if(e==C.a.BGM_LIST[t].name)return C.a.imgRoot+"audio/"+C.a.BGM_LIST[t].file},I.getMinKey=function(e){return Math.min.apply(null,Object.keys(e))},I.getMaxKey=function(e){return Math.max.apply(null,Object.keys(e))},I.getFragmentItem=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!e||!e.value)return e;if(1==e.type){var t=e.value[e.value.length-1];return{pos:t.pos,mode:t.mode,type:t.type,eTime:t.eTime,startTime:e.value[0].eTime,transType:e.transType}}return 2==e.type?{pos:e.value.pos,mode:e.value.mode,type:e.value.type,eTime:e.value.eTime,startTime:e.value.startTime,speed:e.value.speed,transType:e.transType,transForHot:e.value.transForHot,catchTransForHotSid:e.value.catchTransForHotSid}:void 0},I.getWordsLength=function(e,t){for(var i=0,o="",g=0;g<e.length;g++){var n=e.charCodeAt(g);if(n>=0&&n<=128){if(t){if(i>t-.5)break;o+=e[g]}i+=.5}else{if(t){if(i>t-1)break;o+=e[g]}i+=1}}return{len:i,words:o}},t.default=I},function(e,t){e.exports=function(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},function(e,t,i){"use strict";i(38);var o=i(16),g=(i(10),i(170)),n=i(0),a=i(41),A=i(4),r=(i(5),{tranString:function(e){return{pa:"panorama",panorama:"pa",doll:"dollhouse",dollhouse:"doll",fplan:"floorplan",floorplan:"fplan",newM:"flyToNewMode",fly:"flyToPano",pos:"position",qua:"quaternion"}[e]},toObject:function(e){var t=["x","y","z","w"],i={};return e.forEach((function(e,o){i[t[o]]=e})),i},convert:function(e){for(var t=0;t<e.length;++t){var i=e[t];if(!i)return null;var o,g={};for(var t in i)if(i[t]instanceof Array){var n=this.tranString(t),a=this.toObject(i[t]);n?g[n]=a:g[t]=a}else(o=this.tranString(i[t]))?g[t]=o:g[t]=i[t];e[t]=g}return e},getTime:function(e){var t=n.a.sceneRenderer.updateClock.elapsedTime-e;return o.a.toPrecision(t,4)},searchNormalItem:function(e,t){for(var i;i=this.getCapItem(n.a.playGuider.nodeIndex,e);){for(var o=!1,g=0;g<t.length;g++)if(i.type==t[g]){o=!0;break}if(!o)break;e++}return i},checkSame:function(e,t){var i=!0;for(var o in t)if("eTime"!=o){if(null==e[o]){i=!1;break}if(t[o]instanceof Array){for(var g=0;g<t[o].length;g++)if(t[o][g]!=e[o][g]){i=!1;break}}else if(e[o]!=t[o]){i=!1;break}}return i},capItemDeal:function(e){for(var t in e)e[t]&&"string"!=typeof e[t]&&("fplan"==e.mode&&"pos"==t?e[t]=o.a.toPrecision(e[t],7):"target"!=t&&"starttarget"!=t&&"endtarget"!=t&&(e[t]=o.a.toPrecision(e[t],4)));return e},getTarget:function(e,t,i){if(e.y<=t.y)return A.a.info("O.y <= A.y??"),null;if(e.y!=t.y){if(t.y!=i){var o=(e.y-i)/(t.y-i),g=(o*t.x-e.x)/(o-1),n=(o*t.z-e.z)/(o-1);return new THREE.Vector3(g,i,n)}A.a.info("一样2??")}else A.a.info("一样??")},createThumb:function(e,t){var i={tasks:{unFish:[{width:130,height:130}]},dontflash:!0,snapshotTopview:!0,f:function(i){void 0===a.a.thumbs[e]&&(a.a.thumbs[e]={}),a.a.thumbs[e][t+"_url"]&&!a.a.thumbs[e][t+"_back_url"]&&(a.a.thumbs[e][t+"_back_url"]=a.a.thumbs[e][t+"_url"]),a.a.thumbs[e][t+"_url"]=i,n.a.player.model.shouldShowTags=!0}};Object(g.a)(i)},cancelToDelSpot:function(e){n.a.player.sureToDel&&(e&&e.stopPropagation(),n.a.player.sureToDel.find(".DelConfirm").removeClass("open"),n.a.player.sureToDel=null)},getPlayDataItem:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=null;if(a.a.playData[e]&&1==a.a.playData[e].type)if(0==t||1==t)i=this.getCapItem(e,0);else{var o=a.a.frameData[e].length;i=this.getCapItem(e,o-1)}else a.a.playData[e]&&2==a.a.playData[e].type&&(i=this.getCapItem(e));return i},getCapItem:function(e,t){var i=null;if(void 0===t?0==a.a.playData.length?((i=a.a.capData[e].value).speed=a.a.capData[e].speed,i.transType=a.a.capData[e].transType):((i=a.a.playData[e].value).speed=a.a.playData[e].speed,i.transType=a.a.playData[e].transType):0==a.a.playData.length?a.a.frameData[e]&&(i=a.a.frameData[e][t]):i=a.a.playData[e].value[t],!i)return null;var o,g={};for(var n in i)if(i[n]instanceof Array){var A=this.tranString(n),r=this.toObject(i[n]);A?g[A]=r:g[n]="tags"==n?i[n]:r}else(o=this.tranString(i[n]))?g[n]=o:g[n]=i[n];return g},convertHighlight:function(e){var t={};return t.cameraMode=e.mode,t.floorVisibility=[],t.name=this.destinationItem,t.orthoZoom=-1,t.panoId=e.pano,t.position=new THREE.Vector3(e.position.x,e.position.y,e.position.z),t.quaternion=(new THREE.Quaternion).copy(e.quaternion),t},calcNodeTime:function(e){var t=!1,i=0,o=0,g=0;e.forEach((function(n,a){if(n.time={},!n.value)return n.time.sTime=0,n.time.eTime=0,void(n.time.diff=0);1==n.type?(n.time.sTime=n.value[0].eTime,n.time.eTime=n.value[n.value.length-1].eTime):(n.time.sTime=n.value.startTime,n.time.eTime=n.value.eTime),t&&(1==n.type?(g=1==e[a-1].type?e[a-1].value[e[a-1].value.length-1].eTime:e[a-1].value.eTime,i=e[a-1].time.eTime+(n.value[0].eTime-g),o=i+(n.value[n.value.length-1].eTime-n.value[0].eTime)):(g=1==e[a-1].type?e[a-1].value[e[a-1].value.length-1].eTime:e[a-1].value.eTime,i=e[a-1].time.eTime+(n.value.startTime-g),o=i+(n.value.eTime-n.value.startTime)),n.time.sTime=i,n.time.eTime=o),n.time.diff=n.time.eTime-n.time.sTime,2==n.type&&n.speed&&1!=n.speed&&(n.time.diff=n.time.diff/n.speed,n.time.eTime=n.time.sTime+n.time.diff,t=!0)}));var n=0;e.forEach((function(e,t){1==e.type?e.value[e.value.length-1].wTime?(e.time.sTime+=n,e.time.eTime=n+e.time.eTime+e.value[e.value.length-1].wTime,e.time.diff=e.time.eTime-e.time.sTime,n+=e.value[e.value.length-1].wTime):(e.time.sTime+=n,e.time.eTime+=n):e.value.wTime?(e.time.sTime+=n,e.time.eTime=n+e.time.eTime+e.value.wTime,e.time.diff=e.time.eTime-e.time.sTime,n+=e.value.wTime):(e.time.sTime+=n,e.time.eTime+=n)}))}});t.a=r},function(e,t,i){"use strict";i(72);var o=i(44),g=i.n(o),n=(i(63),i(0)),a=i(4),A=i(2),r=i(3),C={done:function(e,t,i){u.savingInfo[e]&&(u.savingInfo[e].done++,u.saveCallBack.check(e,t,i))},fail:function(e,t,i){u.savingInfo[e]&&(setTimeout((function(){n.a.gui.showWaiting(!1,e),n.a.gui.showInfo({result:!1,title:t?t+("en"==A.a.lang?" ":"")+r.a.get("失败"):r.a.get("保存失败")})}),600),i&&i(),delete u.savingInfo[e])},check:function(e,t,i){var o=u.savingInfo;if(o[e]){var g=u.count[e.split("@")[0]]||1;if(o[e].waitAjax&&o[e].done==g-1){if(o[e].waitAjax instanceof Function)var a=o[e].waitAjax();else a=o[e].waitAjax;s(a.url,a.data,a.dataDeal)}else o[e].done==g&&(n.a.gui.showWaiting(!1,e),n.a.gui.showInfo({result:!0,title:i?i+("en"==A.a.lang?" ":"")+r.a.get("成功"):r.a.get("保存成功")}),t&&t(),delete o[e])}}};function I(e,t,i,o,g){var A={url:e,name_t:t,group:{3001:function(){a.a.info("传递的参数为空"),C.fail(t,o,g)},3004:function(i,o){if(window.ifTest)return console.log("没有登录 测试 假设成功"),void A.group[0]();window.appLoginToken="",n.a.gui.showAskBox("",r.a.get("您没有登录,请于主页登录后再编辑"),{btns:[{text:r.a.get("去登录"),type:"submit",wait:!0,fuc:function(){window.open(isMobile?CONSTANT.Mobile_Login:"index.html","blank")}},{text:r.a.get("登录完毕,重新保存"),type:"cancel",fuc:function(){s(e,o,A)}}],donClose:!0}),n.a.gui.showWaiting(!1,t)},202:function(e,i){n.a.gui.showAskBox("",r.a.get("您没有登录,请登录后再编辑"),{btns:[{text:r.a.get("退出去登录"),type:"submit",wait:!0,fuc:function(){$("#back").click()}}],donClose:!0}),n.a.gui.showWaiting(!1,t)},5005:function(){a.a.info("场景为空"),o||g||n.a.gui.showAskBox("",r.a.get("场景为空"),{btns:[{text:r.a.get("确定"),type:"submit"}]}),C.fail(t,o,g)},5012:function(){a.a.info("数据不正常"),o||g||n.a.gui.showAskBox("",r.a.get("数据不正常"),{btns:[{text:r.a.get("确定"),type:"submit"}]}),C.fail(t,o,g)},5014:function(){a.a.info("无权操作该场景"),o||g||n.a.gui.showAskBox(r.a.get("无权操作该场景"),r.a.get("您未登录该场景的账户")+", "+r.a.get("请退出后重新登录该场景的账户"),{btns:[{text:r.a.get("确定"),type:"submit"}]}),C.fail(t,o,g)},"-1":function(){a.a.info("异常错误"),o||g||n.a.gui.showAskBox("",r.a.get("异常错误"),{btns:[{text:r.a.get("确定"),type:"submit"}]}),C.fail(t,o,g)},0:function(){C.done(t,i,o)}},error:function(){C.fail(t,o,g)},done:function(){C.done(t,i,o)},fail:function(){C.done(t,o,g)}};return A}function s(e,t,i){n.a.gui.showWaiting(!0,i.name_t);var o=new FormData;for(var g in t)o.append(g,t[g]);window.appLoginToken||(window.appLoginToken=localStorage.getItem("token")||""),$.ajax({type:"POST",url:e,headers:{token:window.appLoginToken},cache:!1,processData:!1,contentType:!1,data:o,success:function(e){c({dataDeal:i,oriData:t,data:e.code,msg:e.msg})},error:function(e,t,o){window.ifTest?i.group[0]():c({dataDeal:i,arguments:arguments,type:"error"})}})}var l=function(e,t){console.log("%c"+e+" 的返回值:"+t,"color:#36f")},c=function(e){var t,i=e.data,o=e.dataDeal;if("error"==e.type){l(o.url," error 出错了");var n=e.arguments;n&&a.a.info("错误信息:"+[n[0],n[1],n[2]].join(";")),t=o.error}else"object"==g()(i)?t=o.other:(i=(i+"").replace(/\n/g,""),l(o.url,i),t=o.group[i]||o.other||o.error);t&&(t instanceof Function?t(i,e.oriData,e.response):a.a.info("%c"+t,"color:#78f"))},u={savingInfo:{},count:{screen:5},saveCallBack:C,getDataDeal:I,saveFucforPC:function(e){u.savingInfo[e.name_t]={done:0};var t=I(e.url,e.name_t,e.f,e.dialog,e.fail);return e.data.sceneNum=A.a.projectNum,s(e.url,e.data,t),t},saveAjax:s,dealAjax:c};window.uploadsSaving=u,t.a=u},function(e,t,i){"use strict";i(106),i(107),i(59),i(53),i(29),i(60);var o=i(11),g=i.n(o);function n(e,t){var i=(e[0].x-t[0].x)*(e[1].y-t[0].y)-(e[0].y-t[0].y)*(e[1].x-t[0].x),o=(e[0].x-t[1].x)*(e[1].y-t[1].y)-(e[0].y-t[1].y)*(e[1].x-t[1].x);if(i*o>=0)return!1;var g=(t[0].x-e[0].x)*(t[1].y-e[0].y)-(t[0].y-e[0].y)*(t[1].x-e[0].x);return!(g*(g+i-o)>=0)}function a(e,t){var i,o,g=t.length,n=0,a=e;i=t[0];for(var A=1;A<=g;++A){if(a.x==i.x&&a.y==i.y)return!1;if(o=t[A%g],a.y<Math.min(i.y,o.y)||a.y>Math.max(i.y,o.y))i=o;else{if(a.y>Math.min(i.y,o.y)&&a.y<Math.max(i.y,o.y)){if(a.x<=Math.max(i.x,o.x)){if(i.y==o.y&&a.x>=Math.min(i.x,o.x))return!1;if(i.x==o.x){if(i.x==a.x)return!1;++n}else{var r=(a.y-i.y)*(o.x-i.x)/(o.y-i.y)+i.x;if(Math.abs(a.x-r)<2e-10)return!1;a.x<r&&++n}}}else if(a.y==o.y&&a.x<=o.x){var C=t[(A+1)%g];a.y>=Math.min(i.y,C.y)&&a.y<=Math.max(i.y,C.y)?++n:n+=2}i=o}}return n%2!=0}function A(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}var r={raLineVector:function(e){var t=r.lineVector(e);return 1===Math.abs(t.x)&&(t.y=0),1===Math.abs(t.y)&&(t.x=0),t},strictLineVector:function(e){var t=e.points[1].x-e.points[0].x,i=e.points[1].y-e.points[0].y,o=Math.abs(t/1),g=Math.abs(i/1),n=o>g?o:g;return{x:t/n,y:i/n}},lineVector:function(e){var t=r.strictLineVector(e);return Math.abs(t.x)<.01&&(t.x=0),Math.abs(t.y)<.01&&(t.y=0),t},vectorWidth:function(e,t){return Math.sqrt(Math.pow(t,2)/(Math.pow(e.x,2)+Math.pow(e.y,2)))},lineAngle:function(e){var t=e[0].y-e[1].y,i=e[0].x-e[1].x;if(0==i)return e[0].y>=e[1].y?90:270;var o=Math.atan(t/i),g=180*o/Math.PI;return o>0?e[0].x>e[1].x?g:g+180:e[0].x>e[1].x?g+360:g+180},lineDistance:function(e){return Math.sqrt(Math.pow(e[0].x-e[1].x,2)+Math.pow(e[0].y-e[1].y,2))},isInfinity:function(e){return e===1/0||e===-1/0},getSection:function(e){var t={minx:e[0].x,maxx:e[0].x,miny:e[0].y,maxy:e[0].y};return e.forEach((function(e){t.minx>e.x&&(t.minx=e.x),t.maxx<e.x&&(t.maxx=e.x),t.miny>e.y&&(t.miny=e.y),t.maxy<e.y&&(t.maxy=e.y)})),t},verticalLine:function(e){var t,i,o=[e.points[1].x-e.points[0].x,e.points[1].y-e.points[0].y];return 0!==o.length?(i=Math.sqrt(1/(o[1]*o[1]/(o[0]*o[0])+1)),t=Math.sqrt(1-i*i),Math.abs(t)<.1&&(t=0),Math.abs(i)<.1&&(i=0),[t,i]):[]},tranProp:function(e,t){var i=r.getSection(e),o=i.maxx-i.minx,g=i.maxy-i.miny,n=o>g?o:g;return{offset:{x:-(i.minx+o/2),y:-(i.miny+g/2)},prop:n,range:t[1]-t[0]}},tranPoint:function(e,t){return{x:e.x+t.minx,y:e.y+t.miny}},pointLineDis:function(e,t){var i=0,o=e[1].x-e[0].x,g=t.x-e[0].x,n=t.x-e[1].x,a=e[1].y-e[0].y,A=t.y-e[0].y,r=t.y-e[1].y,C=o*g+a*A,I=o*o+a*a;if(C<=0)i=Math.sqrt(g*g+A*A);else if(C>=I)i=Math.sqrt(n*n+r*r);else{var s=C/I,l=e[0].x+o*s,c=e[0].y+a*s;i=Math.sqrt((t.x-l)*(t.x-l)+(c-t.y)*(c-t.y))}return i},isContainPoint:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3?arguments[3]:void 0,g=r.pointLineDis(t,e);g=g<.01?0:g;var n=i/2,a=0-n;return o&&console.log("---\x3e",g),g>=a&&g<=n},isLineIntersect:function(e,t){var i=e[1].y-e[0].y,o=e[0].x-e[1].x,g=i*e[0].x+o*e[0].y,n=t[1].y-t[0].y,a=t[0].x-t[1].x,A=n*t[0].x+a*t[0].y,r=i*a-n*o;if(0==r)return!1;var C=(a*g-o*A)/r,I=(i*A-n*g)/r;if((s(e[0].x,C,e[1].x)||s(e[0].y,I,e[1].y))&&(s(t[0].x,C,t[1].x)||s(t[0].y,I,t[1].y)))return!0;function s(e,t,i){return!(Math.abs(e-t)<1e-6||Math.abs(t-i)<1e-6)&&(e<=t&&t<=i||i<=t&&t<=e)}return!1},equalPoint:function(e,t){return Math.abs(e.x-t.x)<.001&&Math.abs(e.y-t.y)<.001},isFaceIntersect:function(e,t){for(var i=0;i<e.length;i++)for(var o=i+1===e.length?0:i+1,g=[e[i],e[o]],n=0;n<t.length;n++){o=n+1===t.length?0:n+1;var a=[t[n],t[o]],A=r.isLineIntersect(a,g),C=r.isLineIntersect(g,a);if(A&&C)return!0}},isFaceIntersect2:function(e,t){return function(e,t){for(var i=0,o=e.length;i<o;i++)for(var g=0,a=t.length;g<a;g++){if(n([e[i],e[i===o-1?0:i+1]],[t[g],t[g===a-1?0:g+1]]))return!0}return!1}(e,t)||function(e,t){var i,o=!1;return(i=e.some((function(e){return a(e,t)})))||(o=t.some((function(t){return a(t,e)}))),i||o}(e,t)},pointInside:function(e,t){for(var i=!1,o=e.x,g=e.y,n=0,a=t.length-1;n<t.length;a=n++){var A=t[n].x,r=t[n].y,C=t[a].x,I=t[a].y;r>g!=I>g&&o<(C-A)*(g-r)/(I-r)+A&&(i=!i)}return i},containPolygonBorder:function(e,t){for(var i=!1,o=0;o<t.length;o++){var g=[t[o],t[o+1===t.length?0:o+1]];if(r.pointLineDis(g,e)<.001){i=!0;break}}return i},faceContain:function(e,t){for(var i=!1,o=0;o<t.length;o++)if(!r.pointInside(t[o],e)&&!r.containPolygonBorder(t[o],e)){i=!0;break}return!i},getPointAngle:function(e,t){t||(t={x:0,y:0});var i=e.x-t.x,o=e.y-t.y,g=0;return 0==i?g=0==o?0:o>0?90:270:(g=180*Math.atan(o/i)/Math.PI,i<0?g+=180:i>0&&o<0&&(g+=360)),g>=360&&(g=0),g},pointInSector:function(e,t,i,o,g){var n=g.x-e.x,a=g.y-e.y;t>i&&(t-=360);var A=!1,C=r.getPointAngle({x:n,y:a});(i<360?C<=i&&C>=t&&(A=!0):(C<=(i-=360)||C>=t)&&(A=!0),A)&&(A=o>r.lineDistance([{x:n,y:a},{x:0,y:0}]));return A},faceCenter:function(e){for(var t=0,i=0,o=0;o<e.length;o++)t+=e[o].x,i+=e[o].y;return{x:t/=e.length,y:i/=e.length}},faceArea:function(e){var t=e.length;if(t.length<3)return 0;for(var i=e[0].y*(e[t-1].x-e[1].x),o=1;o<t;++o)i+=e[o].y*(e[o-1].x-e[(o+1)%t].x);return Math.abs(i/2)},isClockWise1:function(e){for(var t=e.length,i=0,o=t-1,g=0;g<t;o=g++)i+=e[o].x*e[g].y-e[g].x*e[o].y;return-.5*i>0},isClockWise:function(e){var t,i,o,g,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=0,A=n?-1:1;if(null==e||e.length<3)return!1;var r=e.length;for(t=0;t<r;t++)o=(t+2)%r,g=(e[i=(t+1)%r].x-e[t].x)*(e[o].y*A-e[i].y*A),(g-=(e[i].y*A-e[t].y*A)*(e[o].x-e[i].x))<0?a--:g>0&&a++;return a>0},getCenterOfGravityPoint:function(e){for(var t=0,i=0,o=0,g=1;g<=e.length;g++){var n=e[g%e.length].x,a=e[g%e.length].y,A=e[g-1].x,r=e[g-1].y,C=(n*r-a*A)/2;t+=C,i+=C*(n+A)/3,o+=C*(a+r)/3}return{x:i/=t,y:o/=t}},copyPoints:function(e){return e.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?A(Object(i),!0).forEach((function(t){g()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):A(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e)}))}};t.a=r},function(e,t,i){"use strict";t.a={vector:function(e,t,i){var o=e.clone();return t=t.clone(),function(g){e.set(o.x*(1-g)+t.x*g,o.y*(1-g)+t.y*g,o.z*(1-g)+t.z*g),i&&i(e,g)}},quaternion:function(e,t,i){var o=e.clone();return function(g){e.copy(o).slerp(t,g),i&&i(e,g)}},property:function(e,t,i,o){var g=e[t];return function(n){e[t]=g*(1-n)+i*n,o&&o(e[t])}},uniform:function(e,t,i){var o=e.material.uniforms[t].value;return function(g){e.material.uniforms[t]&&(e.material.uniforms[t].value=o*(1-g)+i*g)}},matrix4:function(e,t,i){var o=e.clone();return function(g){for(var n=e.elements,a=o.elements,A=t.elements,r=0;r<16;r++)n[r]=a[r]*(1-g)+A[r]*g;i&&i(e)}},allUniforms:function(e,t,i){var o=e.map(function(e){return this.uniform(e,t,i)}.bind(this));return function(e){o.forEach((function(t){t(e)}))}}}},function(e,t,i){"use strict";i(52);function o(e,t,i){return!(Math.abs(e-t)<1e-6||Math.abs(t-i)<1e-6)&&(e<=t&&t<=i||i<=t&&t<=e)}var g,a,A,r={convertVisionVector:function(e){return new THREE.Vector3(e.x,e.z,-e.y)},convertVisionQuaternion:function(e){return new THREE.Quaternion(e.x,e.z,-e.y,e.w).multiply((new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(0,1,0),THREE.Math.degToRad(90)))},convertWorkshopVector:function(e){return new THREE.Vector3(-e.x,e.y,e.z)},convertWorkshopQuaternion:function(e){return new THREE.Quaternion(-e.x,e.y,e.z,-e.w).multiply(new THREE.Quaternion(Math.sqrt(2)/2,Math.sqrt(2)/2,0,0))},convertWorkshopPanoramaQuaternion:function(e){return new THREE.Quaternion(e.x,-e.y,-e.z,e.w).normalize().multiply((new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(0,1,0),THREE.Math.degToRad(270)))},convertWorkshopOrthoZoom:function(e){return-1===e?-1:e*($("#player").width()/$("#player").height())},toPrecision:function(e,t){var i=function(e,t){var i=Math.pow(10,t);return Math.round(e*i)/i};if(e instanceof Array){for(var o=0;o<e.length;o++)e[o]=i(e[o],t);return e}if(e instanceof Object){for(var o in e)e[o]=i(e[o],t);return e}return i(e,t)},isEmptyQuaternion:function(e){return 0===Math.abs(e.x)&&0===Math.abs(e.y)&&0===Math.abs(e.z)&&0===Math.abs(e.w)},projectPositionToCanvas:function(e,t,i){(i=i||new THREE.Vector3).copy(e);var o=.5*$("#player").width(),g=.5*$("#player").height();return i.project(t),i.x=i.x*o+o,i.y=-i.y*g+g,i},convertScreenPositionToNDC:function(e,t,i,o){return o=o||$("#player")[0],(i=i||new n.Vector2).x=e/o.clientWidth*2-1,i.y=-t/o.clientHeight*2+1,i},handelPadResize:!1,handelPadding:(g=[],a=[],A=function(){g=[],a=[],r.handelPadResize=!1},edit&&!isMobile&&window.addEventListener("resize",A),function(e,t,i){if(!edit||isMobile)return{x:e,y:t};var o;this.handelPadResize&&A(),i=i||$("#player")[0];var n=a.indexOf(i);return-1==n?(a.push(i),o={x:this.getOffset("left",i),y:this.getOffset("top",i)},g.push(o)):o=g[n],{x:e-o.x,y:t-o.y}}),getOffset:function(e,t,i){var o="left"==e?t.offsetLeft:t.offsetTop;for(i||(i=$("body")[0]);(t=t.offsetParent)&&t!=i;)o+="left"==e?t.offsetLeft:t.offsetTop;return o},constrainedTurn:function(e){var t=e%(2*Math.PI);return t>Math.PI?t-=2*Math.PI:t<-Math.PI?t+=2*Math.PI:t},getFOVDotThreshold:function(e){return Math.cos(THREE.Math.degToRad(e/2))},transform2DForwardVectorByCubeFace:function(e,t,i,o){switch(e){case GLCubeFaces.GL_TEXTURE_CUBE_MAP_POSITIVE_X:i.set(1,t.y,t.x);break;case GLCubeFaces.GL_TEXTURE_CUBE_MAP_NEGATIVE_X:i.set(-1,t.y,-t.x);break;case GLCubeFaces.GL_TEXTURE_CUBE_MAP_POSITIVE_Y:i.set(-t.x,1,-t.y);break;case GLCubeFaces.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:i.set(-t.x,-1,t.y);break;case GLCubeFaces.GL_TEXTURE_CUBE_MAP_POSITIVE_Z:i.set(-t.x,t.y,1);break;case GLCubeFaces.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:i.set(t.x,t.y,-1)}o&&i.normalize()},getFootPoint:function(e,t,i,o){var g=e.clone().sub(t),n=t.clone().sub(i),a=n.length(),A=g.dot(n)/a;return t.clone().add(n.multiplyScalar(A/a))},getCenterOfGravityPoint:function(e){for(var t=0,i=0,o=0,g=1;g<=e.length;g++){var n=e[g%e.length].x,a=e[g%e.length].y,A=e[g-1].x,r=e[g-1].y,C=(n*r-a*A)/2;t+=C,i+=C*(n+A)/3,o+=C*(a+r)/3}return{x:i/=t,y:o/=t}},getBound:function(e){for(var t=new THREE.Box2,i=0,o=e.length;i<o;i++)t.expandByPoint(e[i]);return t},isPointInArea:function(e,t){var i=this.getBound(e);if(t.x<=i.min.x||t.x>=i.max.x||t.y<=i.min.y||t.y>=i.max.y)return!1;for(var o=!1,g=t.x,n=t.y,a=0,A=e.length-1;a<e.length;A=a++){var r=e[a].x,C=e[a].y,I=e[A].x,s=e[A].y;C>n!=s>n&&g<(I-r)*(n-C)/(s-C)+r&&(o=!o)}return o},getArea:function(e){for(var t=e.length,i=0,o=t-1,g=0;g<t;o=g++)i+=e[o].x*e[g].y-e[g].x*e[o].y;return-.5*i},isLineIntersect:function(e,t){var i=e[1].y-e[0].y,g=e[0].x-e[1].x,n=i*e[0].x+g*e[0].y,a=t[1].y-t[0].y,A=t[0].x-t[1].x,r=a*t[0].x+A*t[0].y,C=i*A-a*g;if(0==C)return!1;var I=(A*n-g*r)/C,s=(i*r-a*n)/C;return!(!o(e[0].x,I,e[1].x)&&!o(e[0].y,s,e[1].y)||!o(t[0].x,I,t[1].x)&&!o(t[0].y,s,t[1].y))||void 0},getNormal:function(e){var t,i,o=e.points[1].x-e.points[0].x,g=e.points[1].y-e.points[0].y;if(0!=g)i=-o*(t=1)/g;else{if(0==o)return console.log("两个点一样"),null;t=-g*(i=1)/o}var n=new THREE.Vector3(t,0,i),a=new THREE.Vector3(o,0,g);return n.cross(a).y>0&&(t*=-1,i*=-1),new THREE.Vector2(t,i).normalize()}};t.a=r},function(e,t,i){"use strict";i(72);var o,g=i(11),n=i.n(g),a=(i(38),i(52),i(39),i(0)),A=i(2),r=i(6),C=i(4),I=i(10),s=i(13),l=i(79),c=i(89),u=i(16),d=i(32),h=i(3);function p(e){o||(o=a.a.player),this.domParent=e.domParent||$("#hotspot"),this.pos3d=e.pos3d,this.state="static",this.clickFuc=!1,e.elem?this.elem=e.elem:(this.elem=$('<div class="staticSpot hide "><div class="inside"></div><div class="point"></div><div class="around"><div class="iconfont icon_top"></div><div class="iconfont icon_top"></div><div class="iconfont icon_top"></div><div class="iconfont icon_top"></div></div></div>'),this.domParent.append(this.elem)),this.elem.belongSpot=this,this.title=e.title||"",this.content=e.content||"",this.type=e.type||"hotspot",this.style=e.style,this.camera=e.camera,this.enable=!1,e.src&&this.elem.find(".inside").css("background-image","url("+e.src+")"),"label"==this.type?(this.text=e.text,this.elem.innerText=this.text,dom.addClass(this.elem,"label")):this.elem.addClass("markspot"),e.imgSrc&&(this.img=new Image,this.img.src=e.imgSrc),e.index&&(this.index=e.index)}p.prototype.becomeReal=function(e){I.default.getRandomSid();var t=a.a.editor.markTag;return e&&"static"==e||(t.state=""),t.rePos(this.pos3d),a.a.editor.hotRePos||(t.bindEvents(),o.tagManager.getTag(t)),t.style!=this.style&&t.setElemType(this.style),t.snapInfo={standPos:o.position.clone()},t.setVisiblePanos(),t},p.prototype.hotspotDragBegin=function(e){this.belongSpot.player.flying||(this.belongSpot.player.hotspotDrag.mouseinitX=e.clientX,this.belongSpot.player.hotspotDrag.mouseinitY=e.clientY,this.belongSpot.player.hotspotDrag.transformX=this.belongSpot.transformX,this.belongSpot.player.hotspotDrag.transformY=this.belongSpot.transformY,this.belongSpot.state="drag",this.belongSpot.player.dragSpot=this.belongSpot,dom.addClass(this,"drag"))},p.prototype.enlarge=function(){var e=new Image;e.src=this.img?this.img.src:"images/default.jpg";var t=dom.id("spotLarge"),i=dom.cla("inner",t)[0];i.appendChild(e);var g=dom.cla("replaceImg",this.elem)[0],n=o.imgRect=g.getBoundingClientRect();dom.removeClass(t,"hide"),i.style.left=n.left+"px",i.style.top=n.top-(window.innerHeight-o.domElement.clientHeight)+"px",i.style.width=n.width+"px",i.style.height=n.height+"px",setTimeout(function(){var g=i.clientWidth/i.clientHeight;if(g>=o.domElement.clientWidth/o.domElement.clientHeight){var n=Math.min(.95*o.domElement.clientWidth,1.5*e.naturalWidth);i.style.width=n+"px",i.style.height=n/g+"px"}else{var a=Math.min(.95*o.domElement.clientHeight,1.5*e.naturalHeight);i.style.height=a+"px",i.style.width=a*g+"px"}i.style.left="50%",i.style.top="50%",dom.addClass(t,"center")}.bind(this),50)},p.prototype.setPosGets=function(e){for(var t in this.posGets={list:[],length:2},e)this.posGets[t]=(new THREE.Vector3).fromArray(e[t]),this.posGets.list.push(t)};var f=function(e,t){return Math.abs(e-t)<1e-7};p.prototype.computeHotPos=function(){var e="hotspot"==this.type?"posGets":"posGetsMs",t=o.model.panos.index[o[e].list[0]].origin,i=o.model.panos.index[o[e].list[1]].origin;if("hotspot"==this.type)var g=o[e][o[e].list[0]],n=o[e][o[e].list[1]];else g=o[e][o[e].list[0]][this.index],n=o[e][o[e].list[1]][this.index];var a=g.x-t.x,A=g.y-t.y,r=g.z-t.z,C=n.x-i.x,I=n.y-i.y,s=n.z-i.z,l=t.x-i.x,c=t.y-i.y,u=t.z-i.z,d=a*a+A*A+r*r,h=a*C+A*I+r*s,p=C*C+I*I+s*s,m=a*l+A*c+r*u,v=C*l+I*c+s*u,y=d*p-h*h,b=y,w=y,x=0,E=0,P=function(e){this.pos3d=(1==e?g:n).clone(),console.log(this.pos3d+" 在后方交点,使用点"+e)}.bind(this);if(f(y,0))x=0,b=1,E=v,w=p;else if(E=d*v-h*m,(x=h*v-p*m)<0)return void P(1);if(E<0)P(2);else{sc=0,tc=0,f(x,0)?sc=0:sc=x/b,f(E,0)?tc=0:tc=E/w;var T=new THREE.Vector3(t.x+sc*a,t.y+sc*A,t.z+sc*r),D=new THREE.Vector3(i.x+tc*C,i.y+tc*I,i.z+tc*s);this.pos3d=T.clone().add(D).multiplyScalar(.5)}},p.prototype.computeHotPos2=function(e){if(0==A.a.setSpotType)var t=a.a.editor.spotPosInfo.panoA.position.clone(),i=a.a.editor.spotPosInfo.panoB.position.clone(),o=a.a.editor.spotPosInfo.posA.clone(),g=a.a.editor.spotPosInfo.posB.clone();else if(edit&&a.a.editor.mainDesign.floorExamingStep)t=e.A,i=e.B,o=e.p1,g=e.p2;else t=a.a.editor.spotPosInfo.panoA.position.clone(),i=a.a.editor.spotPosInfo.panoB.position.clone(),o=a.a.editor.spotPosInfo.clickA,g=a.a.editor.spotPosInfo.clickB;var n,r=o.clone().sub(t).normalize(),C=g.clone().sub(i).normalize(),I=Math.abs(r.dot(C));console.log("真实两线夹角: "+(n=I,180*Math.acos(n)/Math.PI+"(")+I+")");var s=function(){var e,n=o.x-t.x,a=o.y-t.y,A=o.z-t.z,r=g.x-i.x,C=g.y-i.y,I=g.z-i.z,s=t.x-i.x,l=t.y-i.y,c=t.z-i.z,u=n*n+a*a+A*A,d=n*r+a*C+A*I,h=r*r+C*C+I*I,p=n*s+a*l+A*c,m=r*s+C*l+I*c,v=u*h-d*d,y=v,b=v,w=0,x=0,E=function(t){e=(1==t?o:g).clone(),console.log(e+" 在后方交点,使用点"+t)}.bind(this);if(f(v,0))w=0,y=1,x=m,b=h;else if(x=u*m-d*p,(w=d*m-h*p)<0)return E(1),e;if(x<0)return E(2),e;var P=0,T=0;P=f(w,0)?0:w/y,T=f(x,0)?0:x/b;var D=new THREE.Vector3(t.x+P*n,t.y+P*a,t.z+P*A),M=new THREE.Vector3(i.x+T*r,i.y+T*C,i.z+T*I);return D.clone().add(M).multiplyScalar(.5)}();return e&&e.dontRestric||(s=this.restricPosAtRoom(s)),e&&e.dontRestric?console.log("dontRestric"):console.log("restricPosAtRoom"),e&&e.onlyGetPos||(this.pos3d=s),s},p.prototype.restricPosAtRoom=function(e){var t=a.a.player.currentPano.position,i=a.a.editor.oriRoomData;if(i){for(var o=0;o<i.length;o++)if(i[o].panos.indexOf(a.a.player.currentPano)>-1){var g=e;if((A=new THREE.Raycaster(t,g.clone().sub(t).normalize(),0,t.distanceTo(g)).intersectObjects(i[o].wallMeshes))&&A.length){console.log("热点飘出房间"+i[o].id+" 外,矫正:"+e.toArray()+" --\x3e "+A[0].point.toArray());var n=A[0].point.clone().setY(A[0].point.y+.001);e.copy(n)}break}}else{var A;g=e;(A=new THREE.Raycaster(t,g.clone().sub(t).normalize(),0,t.distanceTo(g)).intersectObjects(a.a.player.model.chunks.concat([a.a.player.model.skybox])))&&A.length&&(console.log("热点飘出房间或模型外,矫正:"+e.toArray()+" --\x3e "+A[0].point.toArray()),e.copy(A[0].point))}return e},p.prototype.updateHotspot2dPos=function(){if(this.pos3d&&"drag"!=this.state&&"none"!=this.elem[0].display&&this.enable){var e=this.pos3d.clone().applyMatrix4(o.model.matrixWorld),t=o.position.distanceTo(e),i=d.a.getPos2d(e,this.camera,this.domParent[0]);if(i.trueSide){if(this.elem.removeClass("hide"),this.transformX=i.pos.x-this.domParent.width()/2,this.transformY=i.pos.y-this.domParent.height()/2,"real"===this.state)var g=this.scale1*o.k/t;else if("hover"===this.state||"pin"===this.state)g=this.scale1*this.scale2*o.k/t;this.elem.css({transform:"translate("+this.transformX+"px,"+this.transformY+"px)"+("real"===this.state||("hover"===this.state||"pin"===this.state)&&g>this.scale1?" scale("+g+","+g+")":"")})}else this.elem.addClass("hide")}};var m=p,v=i(1),y=i(138),b=i(76),w=i(144),x=i(51),E=i(7),P=i(36);if(!isMobile&&E.a.detectIE())var T=i(199).default,D=T[32],M=T[64];else D=i(136).default;if(edit)var S=i(101).default;var R={editType:"tag",IfLabelBlank:function(e){return 0==I.default.replaceAll(e.billboard.label," ","").length}};R.init=function(e,t){var i,o=e.spotPosInfo={},g=$('<div id="IMGparent"><div><img id="img1" ></img><div class="cursor cursor1"></div>\x3c!--???--\x3e<div class="cursor cursor2"></div></div><div><img id="img2" ></img><div class="cursor cursor1"></div><div class="cursor cursor2"></div></div></div>'),p=$("#playerB");p.on("pointerup touchend",(function(t){if(R.playerBmousedown=!1,i&&i.moving)return;var g=N(t);if(Math.abs(j.x-g.x)>3||Math.abs(j.y-g.y)>3)return;if("designWall"==R.editType)return void(e.mainDesign.hoverLine&&!e.mainDesign.hoverPull&&e.mainDesign.floorLineB.movePullMesh(e.mainDesign.lineHoverPoint));if(!o.clickA&&!e.hotRePos)return void a.a.gui.showInfo(isMobile?h.a.get("请先在上方点击"):h.a.get("请先在左侧点击"));var n=new THREE.Vector2;u.a.convertScreenPositionToNDC(g.x,g.y,n,p[0]),H(n)})),p.on("pointerdown touchstart",(function(t){if(R.playerBmousedown=!0,j=N(t),edit&&2==e.mainDesign.floorExamingStep)return void(e.mainDesign.hoverPull&&e.mainDesign.dragLineBegin(R))})),p.on("pointermove",(function(t){edit&&2==e.mainDesign.floorExamingStep&&(R.mouseB=N(t),e.mainDesign.handleDragging(R))})),p.on("mouseover",(function(e){R.BcontainsMouse=!0,!R.playerBmousedown||0!==e.which&&0!==e.buttons||(R.mouseDown=!1)})),p.on("mouseout",(function(e){R.BcontainsMouse=!1})),R.renderSpotArea=function(){a.a.editor.enterSplitView&&(t.tagManager.tagDiscs.forEach((function(e){e.visible&&0!=e.material.uniforms.opacity.value&&(e.canvasA_Qua=e.quaternion.clone(),e.canvasA_Scale=e.scale.clone(),e.tag.update(t.mode,k,t.currentPano,t.flying))})),f.render(a.a.sceneRenderer.scene,k),t.tagManager.tagDiscs.forEach((function(e){e.visible&&0!=e.material.uniforms.opacity.value&&(e.quaternion.copy(e.canvasA_Qua),e.scale.copy(e.canvasA_Scale))})))},R.setPlayerBSize=function(){a.a.editor.enterSplitView&&(f.setSize(p.width(),p.height(),!1,Math.min(window.devicePixelRatio,2)),k.aspect=p.width()/p.height(),k.updateProjectionMatrix())};var f=new THREE.WebGLRenderer({antialias:!isMobile});f.setPixelRatio(window.devicePixelRatio),f.setSize(300,300,!1),p.append(f.domElement);var T=new y.a;T.init(p[0],null,"spotPlayer"),T.activateControls("panorama");var k=T.activeControl.camera,O=T.activeControl;k.fov=50,k.updateProjectionMatrix();var L=new THREE.Mesh(new THREE.BoxGeometry(10,10,10),new b.a({side:THREE.BackSide,transparent:!1,name:"spotAddCubeMat",not_Cube:!0},"fishSky"));L.layers.set(P.a.SubScreen),a.a.sceneRenderer.scene.add(L),k.layers.toggle(P.a.DEFAULT),k.layers.enable(P.a.TAG),k.layers.enable(P.a.BothAtMainAndSubScreen),k.layers.enable(P.a.SubScreen);var B=new m({src:D.note,style:"note",elem:$("#hotspot .staticSpot")}),F=new m({domParent:p,camera:k,src:D.note,style:"note"});B.elem.addClass("hide"),F.elem.addClass("hide"),B.name="markSpotA",F.name="markSpotB",o.renderer=f,o.camera=k,o.control=O,o.cube=L,o.markSpotA=B,o.markSpotB=F;var j=new THREE.Vector2,N=function(e){var t=(e=e.originalEvent||e).type.indexOf("touch")>-1;return{x:t?e.changedTouches[0].clientX:e.offsetX,y:t?isMobile?e.changedTouches[0].clientY-$("#player").height():e.changedTouches[0].clientY:e.offsetY}};function H(i){var g=new THREE.Raycaster,n=new THREE.Vector3(i.x,i.y,-1).unproject(k),a=new THREE.Vector3(i.x,i.y,1).unproject(k).sub(n).normalize();g.set(n,a);var r=g.intersectObjects([L])[0],C=(new THREE.Matrix4).getInverse(t.model.matrixWorld.clone());if(o.clickB=r.point.clone().applyMatrix4(C),F.pos3d=o.clickB,F.updateHotspot2dPos(),3==A.a.setSpotType){try{e.markTag.rePos(B.computeHotPos2({onlyGetPos:!0,dontRestric:"measure"==R.editType}))}catch(e){console.log(e)}console.log("远近:"+e.markTag.position.distanceTo(t.position))}}function z(){o.panoA=t.currentPano;var i=o.panoB;if(edit&&2==e.mainDesign.floorExamingStep){e.markTag.obj3d.updateMatrixWorld(),e.markTag.visiblePanos=e.mainDesign.examGoodSightPanos;var g=e.markTag.closestPanoTowardTag("panorama",t.currentPano,null,!0);if(g&&g.length>0)if(g[0].pano==t.currentPano)g[1]?o.panoB=g[1].pano:o.panoB=t.currentPano.subPano;else{o.panoB=g[0].pano;var n=t.position.distanceTo(e.markTag.position);n>4&&(console.log("距离"+n),g[1]&&g[1].pano.position.distanceTo(e.markTag.position)<n&&(console.log("准备飞 id "+g[1].pano.id),setTimeout((function(){t.flyToPano({pano:g[1].pano})}),150)))}else o.panoB=t.currentPano.subPano;return L.position.copy(o.panoB.position),k.position.copy(o.panoB.position),t.cameraControls.activeControl.lookAt(e.mainDesign.selectFloorLine.pullMesh.position),O.lookAt(e.mainDesign.selectFloorLine.pullMesh.position),isMobile&&"measure"==R.editType||(R.hideMarker&&(R.hideMarker.visible=!0),R.hideMarker=o.panoB.marker,R.hideMarker&&(R.hideMarker.visible=!1)),void W()}o.panoB!=o.panoA.subPano&&(o.panoB=o.panoA.subPano,L.position.copy(o.panoB.position),k.position.copy(o.panoB.position),isMobile&&"measure"==R.editType||(R.hideMarker&&(R.hideMarker.visible=!0),R.hideMarker=o.panoA.marker,R.hideMarker&&(R.hideMarker.visible=!1)),W()),i&&i!=o.panoB&&i.exit()}R.mouseB={},R.enterPosView=function(){e.setSpotPos=!0,e.enterSplitView=!0,console.log("player.flyingToTag "+t.flyingToTag),t.flyingToTag&&(window.cancelReExam=!0),t.zoomTo(1),t.panoVideoRenderer&&t.panoVideoRenderer.onPanoChange(null),t.reticule.visible=!1,R.zoomEnabled=v.a.zoom.enabled,v.a.zoom.enabled=!1,$("#webgl").addClass("editSpot"),$(".webgl-inside .groupTitle").removeClass("hide"),$("#j-header-dropdown").addClass("hide");var i=t.cameraControls.cameras.panorama;i.fov=i.staticFov=50,i.updateProjectionMatrix(),o.clickA||"designWall"==R.editType||(t.reticule.visible=!1),e.markTag||R.addATag(),"designWall"==R.editType&&(e.markTag.rePos(e.mainDesign.selectFloorLine.pullMesh.position),o.pauseCameraBind=!0),z(),"tag"!=R.editType&&"measure"!=R.editType||(oe(),isMobile||ae(1),o.pauseCameraBind=!1)},R.exitHotPosEdit=function(){if(e.setSpotPos)if(e.enterSplitView){v.a.zoom.enabled=R.zoomEnabled,e.setSpotPos=!1,e.enterSplitView=!1,B.elem.addClass("hide"),F.elem.addClass("hide"),B.enable=!1,F.enable=!1,t.reticule.visible=!0,o.clickA=null;var i=t.cameraControls.cameras.panorama;i.fov=v.a.insideFOV,i.staticFov=null,i.updateProjectionMatrix(),$(".webgl-inside .groupTitle").addClass("hide"),$("#j-header-dropdown").removeClass("hide"),$("#player").css("cursor",""),$("#webgl").removeClass("editSpot"),g.addClass("hide"),"measure"!=R.editType&&setTimeout((function(){t.panoVideoRenderer&&"panorama"==t.mode&&t.panoVideoRenderer.onPanoChange(t.currentPano)}),10),Y.removeClass("unable"),isMobile||Y.addClass("hide"),R.hideMarker&&(console.log("showM "+R.hideMarker.pano.id),R.hideMarker.visible=!0,R.hideMarker=null)}else 1==A.a.setSpotType?(0==e.atHotStep&&console.log("exitHotPosEdit editor.atHotStep == 0???"),1==e.atHotStep&&$("#hotspot .staticSpot").addClass("hide"),e.setSpotPos=!1):0==A.a.setSpotType&&(o.posA=null,o.posB=null,o.panoA=null,o.panoB=null,B.elem.addClass("hide"),B.enable=!1,t.reticule.visible=!0,Y.removeClass("unable"),isMobile||Y.addClass("hide"),$("#player").css("cursor",""))},R.addATag=function(){e.markTag=new c.a(t.model,I.default.getRandomSid(),{position:new THREE.Vector3,state:"mark"}),e.markTag.edit=!0,e.markTag.build()};var V,G={};function W(e){if(t.checkAndWaitForPanoLoad(e||o.panoB,"high","high",t.basePanoSize,(function(){W(e||o.panoB)})))G[o.panoB.id]||(G[o.panoB.id]=setTimeout((function(){a.a.gui.showWaiting(!1,"getTextureForCube"),clearTimeout(G[o.panoB.id]),delete G[o.panoB.id],isMobile?$(".tmpl-hotpoint.step-1 button[type='button']").click():$(".hotpointDetail .tail .cancel").click(),a.a.gui.showInfo({title:h.a.get("获取贴图失败,可能网络状态不佳,请重新尝试"),time:3e3}),o.panoB=null,console.log("无法获取贴图,强制退出热点编辑")}),2e4)),a.a.gui.showWaiting(!0,"getTextureForCube");else{if(G[o.panoB.id]&&(clearTimeout(G[o.panoB.id]),delete G[o.panoB.id]),e&&o.panoB!=e)return void console.log("getTextureForCube退出");a.a.gui.showWaiting(!1,"getTextureForCube"),o.panoB.ensureSkyboxReadyForRender(),L.material.uniforms.pano1Map.value=o.panoB.solidSkybox,L.material.uniforms.pano1Matrix.value.copy(o.panoB.skyboxMesh.matrixWorld),!a.a.player.model.supportsTiles&&window.ifTest&&(g.removeClass("hide"),$("#IMGparent #img1").attr("src",t.currentPano.solidSkybox.image.src),$("#IMGparent #img2").attr("src",o.panoB.solidSkybox.image.src))}}R.changePano=function(t,i){"A"==t&&(i.subPano==o.panoB?(B.pos3d=o.clickA.clone(),console.log(0)):(B.pos3d=e.markTag.position.clone(),console.log(1),edit&&e.mainDesign.floorExamingStep&&e.mainDesign.rePlaceFloorLine()))},R.cameraBchanged=function(){var e,t,i=k.position.clone(),o=k.quaternion.clone();return V&&i.equals(V.position)&&o.equals(V.quaternion)||(t=!0),(t||R.mouseB.x!=V.mouse.x||R.mouseB.y!=V.mouse.y)&&(e=!0),V={position:i,quaternion:o,mouse:{x:R.mouseB.x,y:R.mouseB.y}},{changed:e,cameraChanged:t}},R.getMouseIntersect=function(e,t){var i=new THREE.Vector2;return u.a.convertScreenPositionToNDC(R.mouseB.x,R.mouseB.y,i,p[0]),d.a.getMouseIntersect(k,t,i)};var U={photo:"photo",video:"video",voice:"audio",link:"outLink"};if(R.selectStyle=function(t){if(1==A.a.setSpotType||0==A.a.setSpotType?(!isMobile&&E.a.detectIE()&&$("#hotspot .staticSpot .inside").css("background-image",'url("'+M[t]+'")'),$("#hotspot .staticSpot .inside").css("background-image",'url("'+D[t]+'")')):(!isMobile&&E.a.detectIE()?$(".markspot .inside").css("background-image",'url("'+M[t]+'")'):$(".markspot .inside").css("background-image",'url("'+D[t]+'")'),B.style=t,F.style=t),e.markTag){if("measure"!=R.editType){isMobile?$(".tmpl-hotpoint.step-3 .medias>div").addClass("hide"):$(".hotpointDetail li.audio , .hotpointDetail li.photo , .hotpointDetail li.video , .hotpointDetail li.outLink").addClass("dontShow");var i={link:".outer-chain",voice:".audio-waveBtn",photo:".tag-image",video:".tag-media"},o=e.markTag.billboard.div,g=e.markTag.billboard,n=this;if(this.__style=t,g.loadingMedia){var C=g.onMediaLoadFinished;g.onMediaLoadFinished=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];C.call.apply(C,[this].concat(t)),g.loadingMedia||(g.onMediaLoadFinished=C,$(o).find(".tag-media-content > *").addClass("hide"),$(o).find(i[n.__style]).removeClass("hide"))}}if($(o).find(".tag-media-content > *").addClass("hide"),$(o).find(".audio-waveBtn").addClass("hide"),$(o).find(i[t]).removeClass("hide"),$(o).removeClass("has-"+U[e.markTag.style]),$(o).addClass("has-"+U[t]),"video"!==t){var I=$(o).find(".tag-media-content video")[0];I&&I.pause()}if("voice"!==t&&e.markTag.billboard.mediaObject.audioPlayer&&a.a.gui.playAudio(e.markTag.billboard.mediaObject.audioPlayer,!1),e.markTag.billboard.closeImage&&e.markTag.billboard.closeImage(),e.markTag.billboard.applyOrientation(e.markTag.billboard.orientation),isMobile?$(".tmpl-hotpoint.step-3 [data-type="+U[t]+"]").removeClass("hide"):$(".hotpointDetail li."+U[t]).removeClass("dontShow"),isMobile){$(".swiper-slide.active").removeClass("active"),$(".swiper-slide[data-name="+t+"]").addClass("active");try{a.a.appEditExt.jroll.destroy()}catch(e){}a.a.appEditExt.jroll=new JRoll("footer",{scrollBarY:!0})}else $(".hotpointDetail .style .remark").text(r.a.styleRemarks[t])}e.markTag.setElemType(t)}console.log("切换风格"+t+": "+D[t])},edit)if(isMobile)Y=$('.tmpl-hotpoint.step-1 button[type="submit"]');else{Y=$(".toolRight .hotpointDetail .setPos button.submit");var Q=$(".toolRight .hotpointDetail .setPos button.cancel")}else var Y=isMobile?$(".bottomOverlay [data-name='measure'] button[type='submit']"):$(".confirmSnap");if(2==A.a.setSpotType||3==A.a.setSpotType){var Z=function i(g){if(!t.flying&&e.setSpotPos){if(3==A.a.setSpotType&&t.currentPano.subPano!=o.panoB){if(a.a.editor.spotPosInfo.clickA){o.panoA=t.currentPano;var n=(new THREE.Matrix4).getInverse(t.model.matrixWorld.clone());return o.clickA=g.point.clone().applyMatrix4(n),B.pos3d=o.clickA,B.updateHotspot2dPos(),e.markTag.rePos(B.computeHotPos2({onlyGetPos:!0,dontRestric:"measure"==R.editType})),void console.log("远近:"+e.markTag.position.distanceTo(t.position))}z(),o.pauseCameraBind=!1}if(!oe()){a.a.gui.showWaiting(!0,"getMatchData");var r=o.panoA.id+"_"+o.panoB.id;if(ie[r]=(ie[r]||0)+1,!(ie[r]>5))return void setTimeout((function(){i(g)}),200);console.error("获取不到matchdata 放弃使用: "+r)}a.a.gui.showWaiting(!1,"getMatchData");n=(new THREE.Matrix4).getInverse(t.model.matrixWorld.clone());if(o.clickA=g.point.clone().applyMatrix4(n),o.dirA=K(o.clickA),o.UVa=X(o.dirA),o.UVb=ee(),o.UVb)o.UVb.x=o.UVb.x.toFixed(3)-0,o.UVb.y=o.UVb.y.toFixed(3)-0;else{C.a.info("找不到UVb,假设一个");o.UVb={x:o.UVa.x,y:o.UVa.y+-.02}}if(o.dirB=J(o.UVb),o.clickB=te(o.dirB),$("#IMGparent > div").eq(0).find(".cursor1").css({display:"block",left:100*o.UVa.x+"100%",top:100*o.UVa.y+"100%"}),$("#IMGparent > div").eq(1).find(".cursor1").css({display:"block",left:100*o.UVb.x+"100%",top:100*o.UVb.y+"100%"}),B.pos3d=o.clickA,F.pos3d=o.clickB,B.elem.removeClass("hide"),F.elem.removeClass("hide"),B.enable=!0,F.enable=!0,B.updateHotspot2dPos(),F.updateHotspot2dPos(),e.markTag.rePos(B.computeHotPos2({onlyGetPos:!0,dontRestric:"measure"==R.editType})),3==A.a.setSpotType);Y.removeClass("unable"),$("#player").css("cursor",""),t.reticule.visible=!0}},X=function(e){return(e=e.clone()).x*=-1,{x:Math.atan2(e.x,e.z)/(2*Math.PI)+.5,y:Math.acos(e.y)/Math.PI}},J=function(e){var t,i,o=Math.cos(e.y*Math.PI),g=2*Math.PI*e.x-Math.PI;t=-Math.PI<=g&&g<0?-1:1,i=-Math.PI/2<=g&&g<Math.PI/2?1:-1;var n=Math.tan(g),a=Math.sqrt((1-o*o)/(1+n*n)),A=n*a;return a*i<0&&(a*=-1,(A*=-1)*t<0&&console.log("wrong!!!!!??????????")),A*=-1,new THREE.Vector3(A,o,a)},K=function(e){console.log("lookVector:"),console.log(a.a.player.cameraControls.activeControl.lookVector);var i=e.clone().sub(t.position);if(t.model.supportsTiles)var o=t.currentPano.rot90Matrix.clone();else o=t.currentPano.skyboxMesh.matrixWorld.clone();return(i=_(i,o)).normalize(),i},q={};$(".upperLayer").append(g),g.addClass("hide"),$(".tmpl-hotpoint.step-1 .tips").text(h.a.get("将上下分屏热点对准同一个所标记目标")),new w.a({elem:B.elem,domParent:$("#player"),useTransform:!0,beginMoveFuc:function(){e.enterSplitView&&(B.state="drag",B.elem.addClass("dragging"),t.cameraControls.controls.panorama.locked=!0,O.locked=!0)},moveDoneFuc:function(i){e.enterSplitView&&(B.state="static",B.elem.removeClass("dragging"),t.cameraControls.controls.panorama.locked=!1,O.locked=!1,i&&function(e){t.handleInputStart(e.x,e.y,!0,!0),t.updateIntersect({notTag:!0}),t.intersect?Z(t.intersect):B.updateHotspot2dPos(),t.mouseDown=!1}(i))}}),i=new w.a({elem:F.elem,domParent:p,useTransform:!0,beginMoveFuc:function(){F.state="drag",F.elem.addClass("dragging"),O.locked=!0,t.cameraControls.controls.panorama.locked=!0},moveDoneFuc:function(e){F.state="static",F.elem.removeClass("dragging"),O.locked=!1,t.cameraControls.controls.panorama.locked=!1,e&&function(e){var t=new THREE.Vector2;u.a.convertScreenPositionToNDC(e.x,e.y,t,p[0]),H(t)}(e)}}),R.addSpot=function(){if(t.flying||t.flyingToTag)return t.flyingToTag&&(window.cancelReExam=!0),t.waitFlytoItemFuc=R.addSpot,a.a.gui.showWaiting(!0,"addSpot"),void console.log("waitFlytoItemFuc 飞完重新addSpot");a.a.gui.showWaiting(!1,"addSpot"),e.checkSpotCount({max:r.a.MAX_SPOT_COUNT})?a.a.gui.showAskBox(h.a.get("无法添加热点"),h.a.get("热点数目已达最大:")+r.a.MAX_SPOT_COUNT):(t.FlyToMode("panorama",(function(){e.setSpotPos||t.flying||(R.editType="tag",parseInt(t.currentPano.id)%2==0?(R.enterPosView(),t.tagManager.activeTag&&t.tagManager.dismissActiveTag(),R.updatePanelForTag()):a.a.gui.showAskBox(h.a.get("该点暂时无法设置"),h.a.get("该点是相机协助点,正常情况不会走到该点。请走到其他点设置热点。")))})),Y.addClass("unable"))},R.confirmPos=function(){if(e.setSpotPos){B.computeHotPos2({dontRestric:"measure"==R.editType});var i=B.becomeReal("measure"==R.editType?"static":null);return"tag"==R.editType&&(isMobile?t.lookAtPos(i.position,null,{speed:.05,time:500}):i.billboard.open()),"measure"==R.editType&&(i.isMeasurePoint=!0),void 0===a.a.tagManager.tagNeedClose[i.sid]&&(a.a.tagManager.tagNeedClose[i.sid]=i),R.exitHotPosEdit(),!0}},R.reSetPos=function(){if(parseInt(t.currentPano.id)%2==0){var i=function(){a.a.gui.showWaiting(!1,"reSetPos"),e.hotRePos=!0,B.pos3d=o.clickA=e.markTag.position,B.elem.removeClass("hide"),B.enable=!0,F.pos3d=o.clickB=e.markTag.position,F.elem.removeClass("hide"),F.enable=!0,setTimeout((function(){B.updateHotspot2dPos(),F.updateHotspot2dPos()}),300),R.enterPosView(),e.markTag.edit=!1,e.markTag.billboard.close(),delete a.a.tagManager.tagNeedClose[e.markTag.sid],e.markTag.edit=!0,t.lookAtPos(e.markTag.position,null,{speed:.1,time:500}),e.markTag.state="mark",e.markTag.obj3d.visible=!1};if(!t.flying)return i(),!0;t.waitFlytoItemFuc=i}else a.a.gui.showAskBox(h.a.get("该点暂时无法设置"),h.a.get("该点是相机协助点,正常情况不会走到该点。请走到其他点设置热点"))},isMobile||(Y.on("click",(function(){"tag"==R.editType&&R.confirmPos()&&ae(3)})),edit&&Q.on("click",(function(){a.a.gui.showWaiting(!0,"reSetPos"),t.FlyToMode("panorama",(function(){R.reSetPos()}))}))),e.clickToGetA=function(e){Z(e)};var _=function(e,t){var i=t.elements,o=new THREE.Vector3;return o.x=i[0]*e.x+i[1]*e.y+i[2]*e.z+i[3],o.y=i[4]*e.x+i[5]*e.y+i[6]*e.z+i[7],o.z=i[8]*e.x+i[9]*e.y+i[10]*e.z+i[11],o},ee=function(){var e=oe(t.currentPano.id);if(o.UVa||console.log("!!!"),!e||!e["view pair"]||!e["view pair"].uv)return null;var i,g=o.UVa.x,n=o.UVa.y,a={},A={},r={},C={},I={leftTop:a,rightTop:A,leftBot:r,rightBot:C};$("#IMGparent .cursor2").remove();var s=[];function l(e,t){var i=t[0],o=t[1],a=(i-g)*(i-g)+(o-n)*(o-n);(null==e.dis||e.dis>a)&&(e.dis=a,e.pair=t)}e["view pair"].uv.forEach((function(e){e[0]<g&&e[1]<=n?l(a,e):e[0]>=g&&e[1]<=n?l(A,e):e[0]<g&&e[1]>=n?l(r,e):l(C,e)}));var c=0;for(var u in I)I[u].pair&&c++;var d={};function h(e){var t;s.indexOf(e)>-1||((t=$('<div class="cursor cursor2"></div>')).css({left:100*e.pair[0]+"%",top:100*e.pair[1]+"%"}),$("#IMGparent>div").eq(0).append(t),(t=$('<div class="cursor cursor2"></div>')).css({left:100*e.pair[2]+"%",top:100*e.pair[3]+"%"}),$("#IMGparent>div").eq(1).append(t),s.push(e))}function p(e,t){return e.pair?t.pair?e.dis<t.dis?e:t:e:t}function f(){var e=p(a,r),t=p(A,C),i=p(a,A),o=p(r,C);return h(e),h(t),h(i),h(o),d.x=(g-e.pair[0])/(t.pair[0]-e.pair[0]),d.y=(n-i.pair[1])/(o.pair[1]-i.pair[1]),{x:e.pair[2]+(t.pair[2]-e.pair[2])*d.x,y:i.pair[3]+(o.pair[3]-i.pair[3])*d.y}}return(c>=3||2==c&&(a.pair&&C.pair||r.pair&&A.pair))&&(i=f()),i},te=function(e){e=e.clone();var t=o.panoB.skyboxMesh.matrixWorld.clone();return t.getInverse(t),e=_(e,t),o.panoB.position.clone().add(e)},ie={},oe=function(){var e=o.panoA.id+"_"+o.panoB.id;if(q[e])return q[e];x.a.getChain(A.a.getHotMapping(e),null,(function(t){q[e]=t}))}}else if(1==A.a.setSpotType&&!isMobile){var ge=function(i,o){if(1==o){e.setSpotPos=!0,ae(1);var g=$("#hotspot .staticSpot");(e.hotRePos||2==i)&&(t.lookAtPos(e.markTag.position,null,{speed:.1,time:500}),e.markTag.billboard.closeImage&&e.markTag.billboard.closeImage(),!e.tempPosData&&(e.tempPosData=e.markTag.getTempData()),e.markTag.markGroup&&(e.markTag.markGroup.remove(),e.markTag.markGroup=null),e.markTag.remove(),e.markTag=null,C.a.info("删除editor.markTag")),g.removeClass("hide"),e.markMoveCtrl.recover()}else if(2==o){ae(2),e.snapInfo={pano:t.currentPano,quaternion:t.quaternion,style:Ae.find(".active").data("name")},e.tagMoveCtrl.setPathWidth(),C.a.info("开始新建热点");var n=e.markMoveCtrl.reportPos();if(t.handleInputStart(n.x,n.y,!0,!0),e.createTag(),e.markTag.edit=!0,e.tempPosData){var a=e.tempPosData;e.markTag.sid=a.sid,e.openLi&&(e.openLi[0].tag=e.markTag,e.markTag.listElem=e.openLi),e.markTag.billboard.changeLabel(a.label),e.markTag.billboard.changeDesc(a.description),e.markTag.media=a.media,e.markTag.fileSrc=a.fileSrc,e.markTag.fileName=a.fileName,e.markTag.recoverFromTemp(a,"builded"),a.media.forEach((function(t){e.markTag.billboard.changeMedia(t)})),e.tempPosData=null}$("#hotspot .staticSpot").addClass("hide"),Y.text(h.a.get("确定热点位置")+"B(2/2)")}else 3==o&&(ae(3),e.markTag.markGroup.hide(),e.markTag.state="normal",e.markTag.setVisiblePanos(),e.setSpotPos=!1)};$(".hotpointDetail .setPos ul").removeClass("hide"),e.atHotStep=0,Y.on("click",(function(){1==e.atHotStep?ge(1,2):2==e.atHotStep&&ge(2,3)})),$(".toolRight .hotpointDetail .setPos li").eq(0).on("click",(function(){2==e.atHotStep&&ge(2,1)})),R.addSpot=function(){e.checkSpotCount({max:r.a.MAX_SPOT_COUNT})?a.a.gui.showAskBox(h.a.get("无法添加热点"),h.a.get("热点数目已达最大:")+r.a.MAX_SPOT_COUNT):e.checkNoNeighbour()?a.a.gui.showAskBox(h.a.get("无法在此添加热点"),h.a.get("由于当前位置没有邻近位置,无法添加热点。请在别的位置添加")):t.FlyToMode("panorama",(function(){ge(0,1),R.updatePanelForTag()}))},Q.on("click",t.FlyToMode.bind(t,"panorama",(function(){e.hotRePos=!0,e.setSpotPos=!0,ge(0,1)})))}function ne(){e.hotRePos=!1,e.reEditHot=!1}function ae(t){e.atHotStep=t;var i=$(".hotpointDetail .buttons.tail .submit");if($(".toolRight .hotpointDetail").removeClass("atRight"),$(".slideCtrl").addClass("hide"),3==t?(Y.addClass("hide"),"tag"==R.editType&&(i.removeClass("unable"),2!=A.a.setSpotType&&3!=A.a.setSpotType&&$(".toolRight .hotpointDetail .setPos ul").addClass("hide"),Q.removeClass("hide"),$(".toolRight .hotpointDetail .style").removeClass("hide"),$(".toolRight .hotpointDetail .info").removeClass("hide"),$(".hotpointDetail li."+U[e.markTag.style]).removeClass("hide"),$(".hotpointDetail .style").removeClass("unable"),$(".hotpointDetail .info").removeClass("unable"),$(".hotpointDetail .photo, .hotpointDetail .video, .hotpointDetail .audio, .hotpointDetail .outLink").removeClass("hide"),$(".hotpointDetail .mediaUpload").removeClass("unable"),$(".toolRight .hotpointDetail .setPos .remark").eq(0).removeClass("hide"),$(".toolRight .hotpointDetail .setPos .remark").eq(1).addClass("hide"),$(".toolRight .hotpointDetail .setPos .remark").eq(2).addClass("hide")),a.a.gui.permitTranMode(!0)):(i.addClass("unable"),1==t?("tag"==R.editType&&(Q.addClass("hide"),(2==A.a.setSpotType||3==A.a.setSpotType)&&!o.clickA&&$("#player").css("cursor","crosshair"),2!=A.a.setSpotType&&3!=A.a.setSpotType&&$(".toolRight .hotpointDetail .setPos ul").removeClass("hide"),$(".toolRight .hotpointDetail .setPos .remark").eq(0).addClass("hide"),$(".toolRight .hotpointDetail .setPos .remark").eq(1).removeClass("hide"),$(".hotpointDetail .style").addClass("unable"),$(".hotpointDetail .info").addClass("unable"),$(".hotpointDetail .mediaUpload").addClass("unable"),$(".hotpointDetail .photo, .hotpointDetail .video, .hotpointDetail .audio, .hotpointDetail .outLink").addClass("hide"),Y.text(2!=A.a.setSpotType&&3!=A.a.setSpotType?h.a.get("确定热点位置")+"A(1/2)":h.a.get("确定热点位置"))),Y.removeClass("hide"),a.a.gui.permitTranMode(!1)):2==t?($(".toolRight .hotpointDetail .setPos .remark").eq(1).addClass("hide"),$(".toolRight .hotpointDetail .setPos .remark").eq(2).removeClass("hide"),$(".slideCtrl").removeClass("hide"),Y.removeClass("hide"),Y.text(h.a.get("点击确定热点位置")+"B(2/2)")):0==t&&($(".hotpointDetail .style").addClass("hide"),$(".toolRight .hotpointDetail .info").addClass("hide"),$(".toolRight .hotpointDetail .photo").addClass("hide"),$(".toolRight .hotpointDetail .mediaUpload").addClass("hide"),$(".toolRight .hotpointDetail .setPos").addClass("noBorderbott"),$(".toolRight .hotpointDetail").addClass("atRight"),$("#project-intro1").hasClass("sizeWaring")&&$("#project-intro1").removeClass("sizeWaring").attr("data-size","0"),Y.addClass("hide"),e.warnLabel.spotTitle.ifWarn(0),a.a.gui.permitTranMode(!0))),2!=A.a.setSpotType&&3!=A.a.setSpotType){var g=$(".hotpointDetail .setPos ul li");g.removeClass("finish"),g.find(".state").text(h.a.get("未设置")),g.removeClass("active");for(var n=1;n<=t;n++)n-2>=0&&g.eq(n-2).addClass("finish"),n-2>=0&&g.eq(n-2).find(".state").text(h.a.get("已设置"));g.eq(t-1).addClass("active")}}R.exitHotEdit=function(){if(R.exitHotPosEdit(),t.flyingToTag=!1,e.markTag&&(e.reEditHot&&R.selectStyle(e.tempTagData.style),e.markTag.markGroup&&(e.markTag.markGroup.remove(),e.markTag.markGroup=null),e.markTag.remove(),e.markTag=null),e.reEditHot){var i=e.tempTagData,o=new c.a(t.model,i.sid,i);isMobile||(o.listElem=e.openLi,e.openLi[0].tag=o),o.recoverFromTemp(i),I.default.destroyNoUseBlob(o),o.hide(0),setTimeout((function(){t.tagManager.updateVisible(t.mode,null,o),o.show(200)}),50)}else I.default.destroyNoUseBlob();isMobile||ae(0),ne()},R.saveSpot=function(i){function o(){var o=e.markTag;if(2==A.a.setSpotType||3==A.a.setSpotType);else if(1==A.a.setSpotType&&!isMobile&&3!=e.atHotStep)return void C.a.info("还没完成热点");var g={voice:"audio",link:"outLink",photo:"photo",video:"video"};if(R.IfLabelBlank(o))isMobile?(a.a.appEditExt.jroll.scrollTo(0,0),$(".tmpl-hotpoint.step-3 .warn").removeClass("hide")):e.warnLabel.spotTitle.ifWarn(1);else if(!g[o.style]||o.billboard.mediaData[g[o.style]]){C.a.info("准备保存热点"),s.a.savingInfo.hotspot={done:0};var r={count:0},c={photo:".jpg",video:".mp4",audio:".mp3"},u=o.billboard.mediaData,d=$(".hotpointDetail .style li.active").attr("data-name");for(var p in g[d]&&(u=n()({},g[d],u[g[d]])),g)p!=o.style&&e.deleteMediaType(g[p]);for(var p in console.log(u),u)u[p].needSave&&(r.file||(r.file={}),r.file[p]={name:"hot"+o.sid+c[p],file:u[p].file?u[p].file:u[p].media.base64Src,needTransfer:!u[p].file,type:p},r.count++);var f=o.billboard.description.replace(/<(\/)?div>/g,(function(e){return 0==e.indexOf("</")?"</p>":"<p>"}));if(r.hotData={label:o.billboard.label,description:0===o.billboard.description.indexOf("<p>")?f:"<p>"+f+"</p>",style:o.style,sid:o.sid,media:o.billboard.media,position:o.position,visiblePanos:o.getVisiPanoData(),fileName:o.fileName,fileSrc:o.fileSrc,outLink:o.billboard.mediaData.outLink||""},o.snapInfo&&o.snapInfo.nodeEnd&&(r.hotData.snapInfo={nodeEnd:o.snapInfo.nodeEnd,panoId:o.snapInfo.panoId}),o.posGets&&(r.hotData.posGets=o.posGets),r.count++,r.file)for(var p in r.file)if(A.a.use7niu&&"photo"!=p&&(r.file[p].Config.use7niu=!0),"video"===p){a.a.gui.showWaiting(!0,"uploadVideo");var m=new FormData;m.append("sceneNum",A.a.projectNum),m.append("file",r.file[p].file),m.append("sid",r.hotData.sid),$.ajax({headers:{token:window.appLoginToken},type:"post",url:"/api/scene/edit/uploadHotMedia",data:m,cache:!1,processData:!1,contentType:!1,success:function(t){a.a.gui.showWaiting(!1,"uploadVideo");var i=p;e.markTag.billboard.mediaData[i].needSave=!1,e.markTag.billboard.mediaData[i].file=null,s.a.saveCallBack.done("hotspot",ne,h.a.get("热点保存")),o.billboard.body.querySelector("video").setAttribute("poster","scene/images/images".concat(A.a.projectNum,"/hot").concat(r.hotData.sid,"-cut.jpg"))}})}else Object(l.a)((isMobile?A.a.prefixEditProMobileApi:A.a.prefixEditProPCApi)+"/uploadPic",r.file[p],{sceneNum:A.a.projectNum},(function(t,i){C.a.info(t+" media saveDone"),A.a.use7niu&&"photo"!=t&&(e.markTag.fileSrc[t]=i),e.markTag.billboard.mediaData[t].needSave=!1,e.markTag.billboard.mediaData[t].file=null,s.a.saveCallBack.done("hotspot",ne,h.a.get("热点保存"))}),s.a.saveCallBack.fail.bind(this,"hotspot",h.a.get("热点保存"),ne));if(s.a.count.hotspot=r.count,r.hotData){var v=(isMobile?A.a.prefixEditProMobileApi:A.a.prefixEditProPCApi)+"/saveHot",y=s.a.getDataDeal(v,"hotspot",ne);y.group[0]=function(){var i=e.markTag;isMobile||t.tagManager.activateTag(i),i.markGroup&&(i.markGroup.remove(),i.markGroup=null),isMobile||(ae(0),e.reEditHot?(i.listElem.find(".icon").css("background-image",'url("'+D[i.style]+'")'),i.listElem.find(".title").text(i.billboard.label||h.a.get("未命名"))):e.addList(i)),i.edit=!1,I.default.destroyNoUseBlob(i),i.billboard.resizeImg(),t.tagManager.updateVisible(t.mode,null,i),e.markTag=null,isMobile||i.billboard.changeDesc(i.billboard.description),e.hotJsonChanged=!0,C.a.info("热点保存完毕"),s.a.saveCallBack.done("hotspot",ne),isMobile&&a.a.appEditExt.exitEvent("hotpoint.step-3"),setTimeout((function(){isMobile&&t.tagManager.activeTag&&t.tagManager.dismissActiveTag()}),100)},r.file?s.a.savingInfo.hotspot.waitAjax=function(){return r.hotData.fileSrc=o.fileSrc,C.a.info(r.hotData),{url:v,dataDeal:y,data:{sceneNum:A.a.projectNum,hotData:JSON.stringify(r.hotData),type:e.reEditHot?0:1}}}:(C.a.info(r.hotData),s.a.saveAjax(v,{sceneNum:A.a.projectNum,hotData:JSON.stringify(r.hotData),type:e.reEditHot?0:1},y))}r.file||r.hotData||s.a.saveCallBack.done("hotspot",ne),isMobile&&i()}else{var b={video:h.a.get("视频"),voice:h.a.get("音频"),photo:h.a.get("图片"),link:h.a.get("外链")};a.a.gui.showInfo(h.a.get("请上传")+b[o.style])}}window.__ajaxing?window.__cbs=o:o()},$(".hotpointDetail .buttons.tail .submit").on("click",R.saveSpot),$(".toolRight .hotpoint .addSpot button").on("click",R.addSpot),$(".hotpointDetail .buttons.tail .cancel, .hotpointDetail .itemTitle.head a.close").on("click",R.exitHotEdit),R.updatePanelForTag=function(){var t=e.markTag;if(isMobile){var i=$("footer .tmpl-hotpoint.step-3");t?(R.selectStyle(t.style),i.find("input").eq(0).val(t.billboard.label),a.a.editor.hotsEditor.txt.html(t.billboard.description)):(i.find("input").val(""),a.a.editor.hotsEditor.txt.html(""))}else{Ie(),$(".toolRight .hotpointDetail").find(".info .name input").val(t?t.billboard.label:""),t&&""!=t.billboard.description?S.editor1.txt.html(t.billboard.description):S.editor1.txt.html(""),e.updateTextCount.HotLabel()}!function(e){a.a.gui.changeMediaPreview(e,"photo"),a.a.gui.changeMediaPreview(e,"audio"),a.a.gui.changeMediaPreview(e,"video"),a.a.gui.changeMediaPreview(e,"outLink")}(t)};var Ae=$(".toolRight .hotpointDetail .style>ul");for(var re in r.a.HotChinese){var Ce=$('<li data-name="'+re+'"></li>');Ce.css("background-image",'url("'+D[re]+'")'),Ae.append(Ce)}Ae.children().first().addClass("active"),Ae.children().on("click",(function(){Ae.find(".active").removeClass("active"),$(this).addClass("active");var e=$(this).data("name");R.selectStyle(e)}));Ae=$(".toolRight .hotpointDetail .style>ul");var Ie=function(){if(e.reEditHot)var t='.toolRight .hotpointDetail .style li[data-name="'+e.markTag.style+'"]';else t=Ae.children().first();$(t).click()};if(e.openList=function(i){R.editType="tag";var o=i[0].tag;return!t.flying&&!t.flyingToTag&&(C.a.info("修改热点"),e.reEditHot=!0,e.openLi=i,e.markTag=o,o.edit=!0,o.disc.visible=!0,o.billboard.closeImage&&o.billboard.closeImage(),ae(3),R.updatePanelForTag(),t.flytoTag(o,"force"),e.tempTagData=o.getTempData(),!0)},e.spotNumUpdate=function(){var e=$(".toolRight .spotList li").length;$(".toolRight .spotList .itemTitle span").text(h.a.get("已添加的热点")+"("+e+")"),e>0?($(".toolRight .hotpoint .describ").addClass("hide"),$(".toolRight .hotpoint .spotList").removeClass("hide")):($(".toolRight .hotpoint .describ").removeClass("hide"),$(".toolRight .hotpoint .spotList").addClass("hide"))},e.cancelToDelSpot=function(t){e.sureToDel&&(t&&t.stopPropagation(),e.sureToDel.find(".DelConfirm").removeClass("open"),e.sureToDel=null)},e.addList=function(i){var o=$('<li><div class="icon"></div><div class="title">'+(i.billboard.label||h.a.get("未命名"))+'</div><div class="DelConfirm">'+h.a.get("确定删除")+'</div><div class="del"></div></li>');$(".toolRight .spotList ul").prepend(o),o.find(".icon").css("background-image",'url("'+D[i.style]+'")'),i.listElem=o,o[0].tag=i,o[0].player=this.player,e.spotNumUpdate();var g=o.find(".DelConfirm");o.on("click",function(i){if(setTimeout((function(){})),$(i.target).hasClass("DelConfirm")){i.stopPropagation();var n=A.a.prefixEditProPCApi+"/saveHot";s.a.savingInfo.deleteSpot={done:0};var r=s.a.getDataDeal(n,"deleteSpot",null,h.a.get("删除")),C=o[0].tag,l=a.a.recordGuider.deleteHotInfo(C.sid);a.a.gui.showWaiting(!0,"deleteSpot"),r.group[0]=function(){C.billboard.deleteMedia("photo"),C.billboard.deleteMedia("audio"),C.billboard.deleteMedia("video"),C.remove(),C.billboard.mediaData={},I.default.destroyNoUseBlob(C),C===e.chosenSpot&&(e.chosenSpot=null),o.remove(),e.sureToDel=null,e.spotNumUpdate(),s.a.saveCallBack.done("deleteSpot",null,h.a.get("删除"))};var c={sceneNum:A.a.projectNum,sid:C.sid,type:-1};l&&(a.a.recordGuider._is_modify=!0,c.capData=JSON.stringify(Store.capData),c.frameData=JSON.stringify(Store.frameData),c.playData=JSON.stringify(Store.playData),a.a.recordGuider.checkModify()),s.a.saveAjax(n,c,r)}else if($(i.target).hasClass("del"))i.stopPropagation(),e.cancelToDelSpot(),g.addClass("open"),e.sureToDel=o;else{if("transitioning"==t.mode)return;e.openList(this)}}.bind(o))},$(document).on("click",e.cancelToDelSpot),!isMobile){for(var re in t.model.tags)"videoPanoFlag"!=t.model.tags[re].state&&e.addList(t.model.tags[re]);e.spotNumUpdate()}$(".hotpointDetail .video .playBox>div:first-child").on("click",(function(){a.a.gui.playVideo(e.markTag.billboard.mediaObject.videoPlayer,!0)})),$(".hotpointDetail .audio .playBox>div:first-child").on("click",(function(){var t=e.markTag.billboard.mediaObject.audioPlayer;a.a.gui.playAudio(t,t.paused)}))};t.a=R},function(e,t,i){"use strict";var o={linearTween:function(e,t,i,o){return i*e/o+t},easeInQuad:function(e,t,i,o){return i*(e/=o)*e+t},easeOutQuad:function(e,t,i,o){return-i*(e/=o)*(e-2)+t},easeInOutQuad:function(e,t,i,o){return(e/=o/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,i,o){return i*(e/=o)*e*e+t},easeOutCubic:function(e,t,i,o){return e/=o,i*(--e*e*e+1)+t},easeInOutCubic:function(e,t,i,o){return(e/=o/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,i,o){return i*(e/=o)*e*e*e+t},easeOutQuart:function(e,t,i,o){return e/=o,-i*(--e*e*e*e-1)+t},easeInOutQuart:function(e,t,i,o){return(e/=o/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,i,o){return i*(e/=o)*e*e*e*e+t},easeOutQuint:function(e,t,i,o){return e/=o,i*(--e*e*e*e*e+1)+t},easeInOutQuint:function(e,t,i,o){return(e/=o/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,i,o){return-i*Math.cos(e/o*(Math.PI/2))+i+t},easeOutSine:function(e,t,i,o){return i*Math.sin(e/o*(Math.PI/2))+t},easeInOutSine:function(e,t,i,o){return-i/2*(Math.cos(Math.PI*e/o)-1)+t},easeInExpo:function(e,t,i,o){return i*Math.pow(2,10*(e/o-1))+t},easeOutExpo:function(e,t,i,o){return i*(1-Math.pow(2,-10*e/o))+t},easeInOutExpo:function(e,t,i,o){return(e/=o/2)<1?i/2*Math.pow(2,10*(e-1))+t:(e--,i/2*(2-Math.pow(2,-10*e))+t)},easeInCirc:function(e,t,i,o){return e/=o,-i*(Math.sqrt(1-e*e)-1)+t},easeOutCirc:function(e,t,i,o){return e/=o,e--,i*Math.sqrt(1-e*e)+t},easeInOutCirc:function(e,t,i,o){return(e/=o/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:(e-=2,i/2*(Math.sqrt(1-e*e)+1)+t)},easeInElastic:function(e,t,i,o){var g=1.70158,n=0,a=i;return 0===e?t:1==(e/=o)?t+i:(n||(n=.3*o),a<Math.abs(i)?(a=i,g=n/4):g=n/(2*Math.PI)*Math.asin(i/a),-a*Math.pow(2,10*(e-=1))*Math.sin((e*o-g)*(2*Math.PI)/n)+t)},easeOutElastic:function(e,t,i,o){var g=1.70158,n=0,a=i;return 0===e?t:1==(e/=o)?t+i:(n||(n=.3*o),a<Math.abs(i)?(a=i,g=n/4):g=n/(2*Math.PI)*Math.asin(i/a),a*Math.pow(2,-10*e)*Math.sin((e*o-g)*(2*Math.PI)/n)+i+t)},easeInOutElastic:function(e,t,i,o){var g=1.70158,n=0,a=i;return 0===e?t:2==(e/=o/2)?t+i:(n||(n=o*(.3*1.5)),a<Math.abs(i)?(a=i,g=n/4):g=n/(2*Math.PI)*Math.asin(i/a),e<1?a*Math.pow(2,10*(e-=1))*Math.sin((e*o-g)*(2*Math.PI)/n)*-.5+t:a*Math.pow(2,-10*(e-=1))*Math.sin((e*o-g)*(2*Math.PI)/n)*.5+i+t)},easeInBack:function(e,t,i,o,g){return void 0===g&&(g=1.70158),i*(e/=o)*e*((g+1)*e-g)+t},easeOutBack:function(e,t,i,o,g){return void 0===g&&(g=1.70158),i*((e=e/o-1)*e*((g+1)*e+g)+1)+t},easeInOutBack:function(e,t,i,o,g){return void 0===g&&(g=1.70158),(e/=o/2)<1?i/2*(e*e*((1+(g*=1.525))*e-g))+t:i/2*((e-=2)*e*((1+(g*=1.525))*e+g)+2)+t},easeOutBounce:function(e,t,i,o){return(e/=o)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInBounce:function(e,t,i,g){return i-o.easeOutBounce(g-e,0,i,g)+t},easeInOutBounce:function(e,t,i,g){return e<g/2?.5*o.easeInBounce(2*e,0,i,g)+t:.5*o.easeOutBounce(x,2*e-g,0,i,g)+.5*i+t}};t.a=o},function(e,t){function i(t){return e.exports=i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},i(t)}e.exports=i},function(e,t,i){"use strict";i(52),i(39);var o=i(78),g={LoadComplete:"panorama.load.complete",LoadFailed:"panorama.load.failed",TileLoaded:"panorama.tile.loaded"},n=i(1),a=i(50),A=i(36),r=i(9),C=i(15),I=i(10),s=i(2),l=i(57),c=i(0),u=i(6),d=i(4),h=i(51),p=i(37),f=i(77),m=i(31);function v(e,t,i){if(this.model=e,this.id=t,this.neighbourUUIDs=i.neighbours||null,this.neighbourPanos=null,this.floor=null,this.floorIndex=i.subgroup,this.roomIndex=i.group,this.failedLoadingAt=0,this.maxLoadRetries=4,this.origin=i.position.clone(),this.position=i.position.clone(),this.tiled=e.supportsTiles&&!i.isSub,this.tiled)this.quaternion=i.quaternion.clone();else{var o=i.quaternion.clone(),g=(new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(0,1,0),-Math.PI/2);this.quaternion=(new THREE.Quaternion).multiplyQuaternions(o,g)}if(s.a.ifFish&&(this.floorPosition2=new THREE.Vector3),this.skyboxMesh=new THREE.Mesh(n.a.sphereBufferGeometry),this.skyboxMesh.material.color=new THREE.Color(1,.9,.9),this.skyboxMesh.position.copy(this.position),this.tiled){g=(new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(0,1,0),-Math.PI/2),o=(new THREE.Quaternion).multiplyQuaternions(this.quaternion,g);this.skyboxMesh.quaternion.copy(o),this.skyboxMesh.updateMatrix(),this.skyboxMesh.updateMatrixWorld(),this.rot90Matrix=this.skyboxMesh.matrixWorld.clone()}if(this.skyboxMesh.quaternion.copy(this.quaternion),this.skyboxMesh.name="skybox",this.skyboxMesh.visible=!1,this.skyboxMesh.updateMatrix(),this.skyboxMesh.updateMatrixWorld(),this.marker=null,this.isAligned()&&!i.isSub&&(this.marker=new THREE.Mesh(w,new THREE.MeshBasicMaterial({map:I.default.getTexture(s.a.marker),side:THREE.DoubleSide,opacity:s.a.ifFish?n.a.panorama.markerOpacity:0,transparent:!0,depthWrite:!1,depthTest:!s.a.ifFish})),this.marker.renderOrder=a.a.panoMarker,this.marker.name="marker",this.marker.pano=this,this.marker.layers.set(A.a.PANOMARKERS),this.marker.updateMatrixWorld(),n.a.colorMarkerOnLoad&&this.on("load",(function(){this.marker.material.color.set(65280)}))),this.debugColor=(new THREE.Color).setHSL(.06+.53*Math.random(),.8+.2*Math.random(),.5+.2*Math.random()),this.floorPosition=i.puck?i.puck.clone():null,this.tiled?this.solidSkybox=null:(this.solidSkybox=new THREE.Texture,this.solidSkybox.flipY=!1,n.a.minimalMemoryMode&&(this.solidSkybox.minFilter=THREE.LinearFilter,this.solidSkybox.magFilter=THREE.LinearFilter,this.solidSkybox.generateMipmaps=!1)),this.zoomed=!1,this.panoRenderer=null,this.qualityManager=null,this.tileDownloader=null,this.tiledPanoRenderTarget=null,this.minimumTiledPanoLoaded=!1,this.highestPartialTileRenderOpCompleted=0,this.highestFullTileRenderOpCompleted=0,this.shouldRedrawOnBaseLoaded=!1,this.lockUntilRenderingComplete=!1,n.a.colorMarkerOnLoad&&this.on("load",(function(){this.marker.material.color.set(65280)})),this.noBlocks=i.noBlocks,this.seeMarkers=i.seeMarkers,this.visibleRulerInfos=[],!i.isSub&&isMobile){var r=l.a.load(b);this.vrMarker=new THREE.Sprite(new THREE.SpriteMaterial({transparent:!0,opacity:.75,map:r,depthTest:!1})),this.vrMarker.scale.set(.16,.16,1),this.vrMarker.boluoType="vr",this.vrMarker.position.copy(this.position),this.vrMarker.position.y-=.2,this.vrMarker.enabled=!0,this.vrMarker.visible=!1,this.vrMarker.pano=this,this.vrMarker.renderOrder=a.a.panoMarker,c.a.player.model.vrMarkers.push(this.vrMarker),this.model.add(this.vrMarker)}}var y,b=I.default.getBlobSrc(u.a.Circle,!0),w=new THREE.PlaneBufferGeometry(.4,.4,1,1);v.prototype=Object.create(EventEmitter.prototype),v.prototype.enter=(y=null,function(){this.setZoomed(!1),this.emit("enter",{oldPano:y,newPano:this}),y=this}),v.prototype.exit=function(){this.tiled?(this.clearWaitDeferreds(),this.minimumTiledPanoLoaded=!1,this.tiledPanoRenderTarget=null,this.setZoomed(!1),this.panoRenderer.deactivateTiledPano(this),this.highestPartialTileRenderOpCompleted=0,this.highestFullTileRenderOpCompleted=0):(this.solidSkybox.dispose(),this.solidSkybox.loaded=!1,this.solidSkybox.version=0),this.emit("exit")},v.prototype.hoverOn=function(e){this.marker&&!this.hasVideo&&(r.a.start(C.a.property(this.marker.material,"opacity",n.a[e].markerOpacityOnHover),250),n.a.navigation.panoScores&n.a.navigation.mouseDirection&&this.addTextSprite("HIT",12525854))},v.prototype.hoverOff=function(e){this.marker&&!this.hasVideo&&r.a.start(C.a.property(this.marker.material,"opacity",n.a[e].markerOpacity),250)},v.prototype.build1=function(){this.floor=this.floor||this.model.floors.get(this.floorIndex)||this.raycastToFindFloor()||this.model.getFloorAtPoint(this.position),this.floor.addPano(this),this.floorPosition=this.floorPosition||this.raycastFloorPosition(),this.neighbourPanos=this.neighbourPanos||this.findNeighourPanos(),n.a.colorMarkerByFloor&&this.marker&&this.marker.material.color.set(this.floor.debugColor)},v.prototype.build2=function(){this.floorPosition=this.floorPosition||this.interpolateFloorPosition(),this.height=this.position.distanceTo(this.floorPosition),this.placeMarker()},v.prototype.dispose=function(){this.skyboxMesh.parent.remove(this.skyboxMesh),this.marker.parent.remove(this.marker)},v.prototype.raycastToFindFloor=function(){var e=[new THREE.Vector3(0,-1,0),new THREE.Vector3(1,-1,0),new THREE.Vector3(0,-1,1),new THREE.Vector3(-1,-1,0),new THREE.Vector3(0,-1,-1),new THREE.Vector3(1,0,0),new THREE.Vector3(0,0,1),new THREE.Vector3(-1,0,0),new THREE.Vector3(0,0,-1)];return function(){d.a.warn("Performance warning: Raycasting to find floor index");for(var t=0;t<e.length;t++){var i=new THREE.Raycaster(this.position.clone(),e[t].clone()).intersectObjects(this.model.colliders);if(i.length)return i[0].object.parent.parent}return null}}(),v.prototype.placeMarker=function(){if(this.marker){var e=new THREE.Raycaster;e.set(this.position,new THREE.Vector3(0,-1,0));var t=e.intersectObjects(c.a.player.model.chunks);t.length>0?this.floorPosition.setY(t[0].point.y):this.floorPosition.setY(c.a.player.model.boundingBox.min.y),this.height=this.position.distanceTo(this.floorPosition),this.marker.position.copy(this.floorPosition),this.marker.position.y+=.01,this.marker.lookAt(new THREE.Vector3(0,1,0).add(this.marker.position))}},v.prototype.attachToPanoRenderer=function(e){this.panoRenderer=e,this.panoRenderer.on(o.a.TileRenderSuccess,this.onTileRendered.bind(this)),this.panoRenderer.on(o.a.PanoRenderComplete,this.onPanoRendered.bind(this)),this.panoRenderer.on(o.a.TileRenderFailure,this.onTileRenderFail.bind(this)),this.panoRenderer.on(o.a.UploadAttemptedForAllTiles,this.onUploadAttemptedForAllTiles.bind(this))};var x={};v.prototype.getWaitDeferred=function(e){var t=x[this.id];t||(t={},x[this.id]=t);var i=t[e];return i||(i={deferred:$.Deferred(),active:!1},t[e]=i),i},v.prototype.resetWaitDeferred=function(e){var t=this.getWaitDeferred(e);t.active=!1,t.deferred=$.Deferred()},v.prototype.clearWaitDeferreds=function(){var e=x[this.id];for(var t in e||(e={},x[this.id]=e),e)if(e.hasOwnProperty(t)){var i=e[t];i.active=!1,i.deferred=$.Deferred()}},v.prototype.loadTiledPano=function(){var e=(new THREE.Vector3,[]),t=[];return function(i,o,n,a,A,r){null!=a||(a=!0),null!=A||(A=!0);var C=this.getWaitDeferred(i),I=C.deferred,s=null,l=null;if(n&&("number"==typeof n?s=n:(s=n.hFov,l=n.vFov)),!this.isLoaded(i)){if(!C.active){if(C.active=!0,n){var c=m.a.matchingTilesInDirection(this,i,o,s,l);e[this.id+":"+i]={tileCount:0,targetTileCount:c},d.a.info("Loading partial pano: "+this.id+" with "+c+" tiles")}t[this.id]||(t[this.id]=!0,this.on(g.LoadComplete,function(e,t){var i=this.getWaitDeferred(e).deferred;i&&"pending"===i.state()&&this.highestPartialTileRenderOpCompleted>=e&&(i.resolve(e,t),this.resetWaitDeferred(e))}.bind(this)),this.on(g.LoadFailed,function(e){var t=this.getWaitDeferred(e).deferred;t&&"pending"===t.state()&&this.highestPartialTileRenderOpCompleted>=e&&(t.reject(e),this.resetWaitDeferred(e))}.bind(this)),this.on(g.TileLoaded,function(t,i,o){var g=this.getWaitDeferred(t).deferred;if(g&&"pending"===g.state()){g.notify(t,i,o);var n=e[this.id+":"+t];n&&(n.tileCount++,n.tileCount===n.targetTileCount&&(this.onPanoRendered(this.id,t,o,!0),g.resolve(t,o),this.resetWaitDeferred(t)))}}.bind(this)))}this.tileDownloader.clearForceQueue(),this.tileDownloader.forceQueueTilesForPano(this,i,o,s,l,r),this.tiledPanoRenderTarget=this.panoRenderer.activateTiledPano(this,this.qualityManager.getMaxNavPanoSize(),a),this.panoRenderer.renderPanoTiles(this.id,o,A)}return I.promise()}}(),v.prototype.onUploadAttemptedForAllTiles=function(e,t,i){e===this.id&&(t===this.qualityManager.getPanoSize(p.a.BASE)&&this.shouldRedrawOnBaseLoaded&&(this.shouldRedrawOnBaseLoaded=!1,this.panoRenderer.resetRenderStatus(this.id,!0,!1),this.panoRenderer.renderPanoTiles(this.id,null,!0,!0)))},v.prototype.onTileRendered=function(e,t,i,o){e===this.id&&this.emit(g.TileLoaded,t,i,o)},v.prototype.onPanoRendered=function(e,t,i,o){e===this.id&&(this.minimumTiledPanoLoaded=!0,this.updateSkyboxForZoomLevel(),t>this.highestPartialTileRenderOpCompleted&&(this.highestPartialTileRenderOpCompleted=t),!o&&t>this.highestFullTileRenderOpCompleted&&(this.highestFullTileRenderOpCompleted=t),this.emit("load",t),this.model.emit("load",this),this.emit(g.LoadComplete,t,i))},v.prototype.setZoomed=function(e){this.zoomed=e,this.updateSkyboxForZoomLevel()},v.prototype.ensureSkyboxReadyForRender=function(){this.tiled||(this.solidSkybox.loaded||(this.solidSkybox.needsUpdate=!0),this.solidSkybox.loaded=!0)},v.prototype.updateSkyboxForZoomLevel=function(){this.minimumTiledPanoLoaded&&this.model.updateProjectedPanos()},v.prototype.getSkyboxTexture=function(){return this.tiled?this.minimumTiledPanoLoaded?this.zoomed?this.panoRenderer.zoomRenderTarget.texture:this.tiledPanoRenderTarget.texture:null:this.solidSkybox},v.prototype.onTileRenderFail=function(e,t,i){e===this.id&&this.emit(g.LoadFailed,t)},v.prototype.isLoaded=function(e){if(this.tiled){if(e&&"string"==typeof e)throw new f.a("Wrong panoSize given to Panorama.isLoaded(); a tiled pano uses PanoSizeClass");return!!this.minimumTiledPanoLoaded&&(!e||this.highestPartialTileRenderOpCompleted>=e)}if(e&&"number"==typeof e)throw new f.a("Wrong panoSize given to Panorama.isLoaded(); a non-tiled pano uses high/low.");return!!this.solidSkybox.high||e in this.solidSkybox},v.prototype.loadCube=function(e){if(this.isLoaded(e))return d.a.info("Skipping load of pano, already loaded"),$.when();this.emit("loading",e),this.model.emit("loading",this);var t=this.getCubemapUrls(this.id,e);return $.when(h.a.loadImg(t)).then(function(t){return this.solidSkybox[e]=t,this.solidSkybox.minFilter=THREE.LinearFilter,"high"!==e&&this.solidSkybox.high||(this.solidSkybox.image=this.solidSkybox[e],this.solidSkybox.low=null),this.solidSkybox.needsUpdate=!0,this.emit("load",e),this.model.emit("load",this),this}.bind(this),function(){d.a.error("Downloading cubemap for pano",this.id,"failed"),this.failedLoadingAt=Date.now()}.bind(this),(function(){console.log("load cubeTex 出现问题?")}))},v.prototype.getCubemapUrls=function(e,t){return u.a.prefix+"images/images"+s.a.projectNum+"/pan/"+t+"/"+e+".jpg"},v.raycastsSkipped=0,v.raycastsDone=0,v.prototype.findNeighourPanos=function(){return this.model.panos.setNeighbour(this.id,this.id,!1),this.model.panos.forEach(function(e){if(e!==this&&(!this.model.panos.neighbourMap[this.id]||void 0===this.model.panos.neighbourMap[this.id][e.id])){var t=this.position.distanceTo(e.position);if(t>n.a.panoramaNeighbourMaxDistance)return this.model.panos.setNeighbour(this,e,!1),void v.raycastsSkipped++;var i=e.position.clone().sub(this.position).normalize(),o=new THREE.Raycaster(this.position,i.clone(),0,t).intersectObjects(this.model.colliders);v.raycastsDone++,this.model.panos.setNeighbour(this,e,0===o.length),n.a.showNeighbourRaycasts&&(o.length?this.floor.model.add(new THREE.ArrowHelper(i,this.position,o[0].distance,16711680)):this.floor.model.add(new THREE.ArrowHelper(i,this.position,t,16777215,0,0)))}}.bind(this)),this.model.panos.neighbourMap[this.id]},v.prototype.worldPosition=function(){return this.position},v.prototype.isAligned=function(){return!0},v.filters={inDirection:function(e,t,i){return function(o){return o.position.clone().sub(e).normalize().dot(t)>i}},inFloorDirection:function(e,t,i){return function(o){if(o.floorPosition2)var g=o.floorPosition2.clone().sub(e).setY(0).normalize();else g=o.floorPosition.clone().sub(e).setY(0).normalize();return g.dot(t)>i}},inPanoDirection:function(e,t,i){return i=n.a.navigation.panoScores?n.a.navigation.filterStrictness:i,function(o){var g=o.floorPosition.clone().sub(e).setY(0).normalize(),n=o.position.clone().sub(e).normalize();return g.dot(t.clone().setY(0).normalize())>i||n.dot(t)>i}},atFloor:function(e){return function(t){return!e||t.floor===e}},not:function(e){return function(t){return t!==e}},notIn:function(e){return function(t){return-1===e.indexOf(t)}},isLoaded:function(){return function(e){return e.isLoaded()}},isNotLoaded:function(){return function(e){return!e.isLoaded()}},isCloseEnoughTo:function(e,t){return function(i){return e.distanceTo(i.floorPosition2||i.floorPosition)<t}},hasMinimumHeightDifferenceTo:function(e,t){return function(i){return Math.abs(i.position.y-e.y)>t}},isNotBehindNormal:function(e,t){var i=new THREE.Vector3;return t=t.clone(),function(o){return i.copy(o.position).sub(e).normalize().dot(t)>0}},isNeighbourPanoTo:function(e){return function(t){return!e||!e.neighbourPanos||!!e.neighbourPanos[t.id]}},isNeighbourOfNeighbourTo:function(e){return function(t){return!!e.neighbourPanos[t.id]||e.neighbourUUIDs.some((function(i){var o=e.model.panos.get(i);return!!o&&o.neighbourPanos[t.id]}))}},isNotRecentlyFailed:function(e){return function(t){return Date.now()-t.failedLoadingAt>e}},isOnVisibleFloor:function(){return function(e){return!e.floor.hidden}},isPanoAligned:function(){return function(e){return e.isAligned()}},hasVideo:function(){return function(e){return!0===e.hasVideo}},isInFanAngle:function(e,t,i){return function(o){var g=t.setY(0),n=o.position.clone().sub(e).setY(0);return g.angleTo(n)<=i}}},v.sortFunctions={distanceToPoint:function(e){return function(t,i){return t.position.distanceTo(e)-i.position.distanceTo(e)}},floorDistanceToPoint:function(e){return function(t,i){return s.a.ifFish?t.floorPosition2.distanceTo(e)-i.floorPosition2.distanceTo(e):t.floorPosition.distanceTo(e)-i.floorPosition.distanceTo(e)}},choose:function(e){return function(t,i){return e.id===t.id?-1:e.id===i.id?1:0}}},v.scoreFunctions={distance:function(e,t){return t=t||n.a.navigation.distanceFactor,function(i){return e?e.position.distanceTo(i.position)*t:0}},distanceSquared:function(e,t){return t=t||n.a.navigation.distanceFactor,function(i){return s.a.ifFish?e?e.origin.distanceToSquared(i.origin)*t:0:e?e.position.distanceToSquared(i.position)*t:0}},direction:function(e,t){return function(i){return i.position.clone().sub(e).normalize().dot(t)*n.a.navigation.directionFactor}},angle:function(e,t){return function(i){return i.position.clone().sub(e).normalize().angleTo(t)*n.a.navigation.angleFactor}},inFieldOfView:function(e,t){return function(i){return i.position.clone().sub(e).normalize().dot(t)>.75?10:-1}},optionality:function(e){return function(t){return t.neighbourUUIDs.filter((function(t){return!(t in e.neighbourUUIDs)&&t!==e.id})).length*n.a.navigation.optionalityFactor}},penalizeHeightDifferenceUnder:function(e,t){return function(i){return e.y-i.position.y<t?-20:0}}};t.a=v},function(e,t,i){"use strict";var o=i(1),g=(i(2),"precision highp float;\nprecision highp int;\n\nuniform mat4 modelMatrix;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nuniform mat4 viewMatrix;\nuniform mat3 normalMatrix;\nuniform vec3 cameraPosition;\nattribute vec3 position;\nattribute vec3 normal;\nattribute vec2 uv;\n"),n="precision highp float;\nprecision highp int;\n\nuniform mat4 viewMatrix;\nuniform vec3 cameraPosition;\n",a={model:{uniforms:{minOpa:{type:"f",value:.14},minDistance:{type:"f",value:2.5},maxDistance:{type:"f",value:4},map:{type:"t",value:null},modelAlpha:{type:"f",value:o.a.modelAlpha},opacity:{type:"f",value:1},progress:{type:"f",value:0},blackout:{type:"i",value:0},pano0Map:{type:"t",value:null},pano0Position:{type:"v3",value:new THREE.Vector3},pano0Matrix:{type:"m4",value:new THREE.Matrix4},pano1Map:{type:"t",value:null},pano1Position:{type:"v3",value:new THREE.Vector3},pano1Matrix:{type:"m4",value:new THREE.Matrix4}},vertexShader:g+"uniform vec3 pano0Position;\nuniform mat4 pano0Matrix;\n\nuniform vec3 pano1Position;\nuniform mat4 pano1Matrix;\n #if defined(checkDistance)\n varying vec3 world_Position; \n #endif\nvarying vec2 vUv;\nvarying vec3 vWorldPosition0;\nvarying vec3 vWorldPosition1;\n\nvoid main() {\n\n vUv = uv;\n vec4 worldPosition = modelMatrix * vec4(position, 1.0);\n #if defined(checkDistance)\n world_Position = worldPosition.xyz; \n #endif\n \n vec3 positionLocalToPanoCenter0 = worldPosition.xyz - pano0Position;\n vWorldPosition0 = (vec4(positionLocalToPanoCenter0, 1.0) * pano0Matrix).xyz;\n vWorldPosition0.x *= -1.0;\n\n vec3 positionLocalToPanoCenter1 = worldPosition.xyz - pano1Position;\n vWorldPosition1 = (vec4(positionLocalToPanoCenter1, 1.0) * pano1Matrix).xyz;\n vWorldPosition1.x *= -1.0;\n\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n}\n",fragmentShader:n+"uniform sampler2D map;uniform float modelAlpha;uniform float opacity;uniform float progress;uniform int blackout;uniform vec3 pano0Position;uniform vec3 pano1Position;uniform float maxDistance;uniform float minDistance;uniform float minOpa;varying vec2 vUv;varying vec3 vWorldPosition0;varying vec3 vWorldPosition1;\n#if defined(checkDistance)\n varying vec3 world_Position; \n #endif\n\n#define PI 3.141592653 \n#if defined(Not_Cube)\nuniform sampler2D pano0Map;uniform sampler2D pano1Map;vec4 texCubemapWith2D(sampler2D t,vec3 dir){dir=normalize(dir);float tx=atan(dir.x,dir.z)/(PI*2.0)+0.5;float ty=acos(dir.y)/PI;vec4 color=texture2D(t,vec2(tx,ty));return color;}\n#else\nuniform samplerCube pano0Map;uniform samplerCube pano1Map;\n#endif\nconst vec4 BLACK=vec4(0.0,0.0,0.0,1.0);const vec4 GREY=vec4(0.5,0.5,0.5,1.0);void main(){vec4 colorFromPanos;\n#if defined(Not_Cube)\nvec4 colorFromPano0=texCubemapWith2D(pano0Map,vWorldPosition0);vec4 colorFromPano1=texCubemapWith2D(pano1Map,vWorldPosition1);\n#else\nvec4 colorFromPano0=textureCube(pano0Map,vWorldPosition0.xyz);vec4 colorFromPano1=textureCube(pano1Map,vWorldPosition1.xyz);\n#endif\nif(blackout==0){colorFromPanos=mix(colorFromPano0,colorFromPano1,progress);}else if(blackout==1){colorFromPanos=mix(colorFromPano0,BLACK,min(1.0,progress*2.0));colorFromPanos=mix(colorFromPanos,colorFromPano1,max(0.0,progress*2.0-1.0));}else if(blackout==2){colorFromPanos=mix(colorFromPano0,BLACK,progress);}else if(blackout==3){colorFromPanos=mix(BLACK,colorFromPano1,max(0.0,progress*2.0-1.0));}vec4 colorFromTexture=texture2D(map,vUv);colorFromPanos=mix(colorFromPanos,colorFromTexture,modelAlpha); float opac=opacity;\n#if defined(checkDistance)\n vec3 cameraPos=mix(pano0Position,pano1Position,progress);float dis=distance(cameraPos,world_Position);float disOpa=minOpa;if(dis<minDistance)disOpa=1.0;else if(dis<maxDistance){float k=(minOpa-1.0)/(maxDistance-minDistance);disOpa=k*dis+1.0-k*minDistance;}opac=opacity*disOpa; \n #endif\n float whiteness=1.0-smoothstep(0.1,0.2,opac);colorFromPanos=mix(colorFromPanos,GREY,whiteness);gl_FragColor=vec4(colorFromPanos.rgb,opac);}"},fishModel:{uniforms:{map:{type:"t",value:null},modelAlpha:{type:"f",value:o.a.modelAlpha},opacity:{type:"f",value:1},progress:{type:"f",value:0},pano0Map:{type:"t",value:null},pano0Position:{type:"v3",value:new THREE.Vector3},pano0Matrix:{type:"m4",value:new THREE.Matrix4},pano1Map:{type:"t",value:null},pano1Position:{type:"v3",value:new THREE.Vector3},pano1Matrix:{type:"m4",value:new THREE.Matrix4},radius:{type:"f",value:.6},cameraPos0:{type:"v3",value:new THREE.Vector3},cameraPos1:{type:"v3",value:new THREE.Vector3},blackout:{type:"i",value:0}},vertexShader:g+"varying vec2 vUv;varying vec4 worldPosition;void main(){vUv=uv;worldPosition=modelMatrix*vec4(position,1.0);gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.0);}",fragmentShader:n+"uniform sampler2D map;uniform float modelAlpha;uniform float opacity;uniform float progress;uniform float radius;uniform int blackout;uniform vec3 pano0Position;uniform vec3 pano1Position;uniform mat4 pano0Matrix;uniform mat4 pano1Matrix;uniform vec3 cameraPos0;uniform vec3 cameraPos1;varying vec2 vUv;varying vec4 worldPosition;\n#define PI 3.141592653\n\n#if defined(Not_Cube)\nuniform sampler2D pano0Map;uniform sampler2D pano1Map;vec4 texCubemapWith2D(sampler2D t,vec3 dir){dir=normalize(dir);float tx=atan(dir.x,dir.z)/(PI*2.0)+0.5;float ty=acos(dir.y)/PI;vec4 color=texture2D(t,vec2(tx,ty));return color;}\n#else\nuniform samplerCube pano0Map;uniform samplerCube pano1Map;\n#endif\nvoid main(){\tconst vec4 BLACK=vec4(0.0,0.0,0.0,1.0);\tconst vec4 GREY=vec4(0.5,0.5,0.5,1.0);vec3 worldPosition0=worldPosition.xyz;float x1=worldPosition.x,x2=cameraPos0.x,y1=worldPosition.y,y2=cameraPos0.y,z1=worldPosition.z,z2=cameraPos0.z;float px=pano0Position.x,py=pano0Position.y,pz=pano0Position.z;float a=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)+(z2-z1)*(z2-z1);float b=2.0*((x2-x1)*(x1-px)+(y2-y1)*(y1-py)+(z2-z1)*(z1-pz));float c=(x1-px)*(x1-px)+(y1-py)*(y1-py)+(z1-pz)*(z1-pz)-radius*radius;float below=b*b-4.0*a*c;if(below>=0.0){float k1=(-b+sqrt(below))/(2.0*a);float k2=(-b-sqrt(below))/(2.0*a);float X1=k1*(x2-x1)+x1;float X2=k2*(x2-x1)+x1;float Y1=k1*(y2-y1)+y1;float Y2=k2*(y2-y1)+y1;if(X1<=max(x1,x2)&&X1>=min(x1,x2)&&Y1<=max(y1,y2)&&Y2>=min(y1,y2)){worldPosition0=vec3(X1,Y1,k1*(z2-z1)+z1);}else{worldPosition0=vec3(X2,Y2,k2*(z2-z1)+z1);}}vec3 positionLocalToPanoCenter0=worldPosition0.xyz-pano0Position;vec3 vWorldPosition0=(vec4(positionLocalToPanoCenter0,1.0)*pano0Matrix).xyz;vWorldPosition0.x*=-1.0;vec3 worldPosition1=worldPosition.xyz;x1=worldPosition.x,x2=cameraPos1.x,y1=worldPosition.y,y2=cameraPos1.y,z1=worldPosition.z,z2=cameraPos1.z;px=pano1Position.x,py=pano1Position.y,pz=pano1Position.z;a=(x2-x1)*(x2-x1)+(y2-y1)*(y2-y1)+(z2-z1)*(z2-z1);b=2.0*((x2-x1)*(x1-px)+(y2-y1)*(y1-py)+(z2-z1)*(z1-pz));c=(x1-px)*(x1-px)+(y1-py)*(y1-py)+(z1-pz)*(z1-pz)-radius*radius;below=b*b-4.0*a*c;if(below>=0.0){float k1=(-b+sqrt(below))/(2.0*a);float k2=(-b-sqrt(below))/(2.0*a);float X1=k1*(x2-x1)+x1;float X2=k2*(x2-x1)+x1;float Y1=k1*(y2-y1)+y1;float Y2=k2*(y2-y1)+y1;if(X1<=max(x1,x2)&&X1>=min(x1,x2)&&Y1<=max(y1,y2)&&Y2>=min(y1,y2)){worldPosition1=vec3(X1,Y1,k1*(z2-z1)+z1);}else{worldPosition1=vec3(X2,Y2,k2*(z2-z1)+z1);}}vec3 positionLocalToPanoCenter1=worldPosition1-pano1Position;vec3 vWorldPosition1=(vec4(positionLocalToPanoCenter1,1.0)*pano1Matrix).xyz;vWorldPosition1.x*=-1.0;\n#if defined(Not_Cube)\nvec4 colorFromPano0=texCubemapWith2D(pano0Map,vWorldPosition0);vec4 colorFromPano1=texCubemapWith2D(pano1Map,vWorldPosition1);\n#else\nvec4 colorFromPano0=textureCube(pano0Map,vWorldPosition0.xyz);vec4 colorFromPano1=textureCube(pano1Map,vWorldPosition1.xyz);\n#endif\n\tvec4 colorFromPanos;\tif(blackout==0){\t\tcolorFromPanos=mix(colorFromPano0,colorFromPano1,progress);\t}else if(blackout==1){\t\tcolorFromPanos=mix(colorFromPano0,BLACK,min(1.0,progress*2.0));\t\tcolorFromPanos=mix(colorFromPanos,colorFromPano1,max(0.0,progress*2.0-1.0));\t}else if(blackout==2){\t\tcolorFromPanos=mix(colorFromPano0,BLACK,progress);\t}else if(blackout==3){\t\tcolorFromPanos=mix(BLACK,colorFromPano1,max(0.0,progress*2.0-1.0));\t}vec4 colorFromTexture=texture2D(map,vUv);colorFromPanos=mix(colorFromPanos,colorFromTexture,modelAlpha);float whiteness=1.0-smoothstep(0.1,0.2,opacity);colorFromPanos=mix(colorFromPanos,vec4(0.5,0.5,0.5,1.0),whiteness);gl_FragColor=vec4(colorFromPanos.rgb,opacity);}"},fishSky:{uniforms:{opacity:{type:"f",value:1},pano1Map:{type:"t",value:null},pano1Matrix:{type:"m4",value:new THREE.Matrix4}},vertexShader:g+"uniform mat4 pano1Matrix;varying vec3 vWorldPosition;void main(){vWorldPosition=(vec4(position,1.0)*pano1Matrix).xyz;gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.0);}",fragmentShader:n+"uniform float opacity;varying vec3 vWorldPosition;\n#define PI 3.141592653 \n\n#if defined(Not_Cube)\nuniform sampler2D pano1Map;vec4 texCubemapWith2D(sampler2D t,vec3 dir){dir=normalize(dir);float tx=atan(dir.x,dir.z)/(PI*2.0)+0.5;float ty=acos(dir.y)/PI;vec4 color=texture2D(t,vec2(tx,ty));return color;}\n#else\nuniform samplerCube pano1Map;\n#endif\nvoid main(){\n#if defined(Not_Cube)\nvec4 colorFromPanos=texCubemapWith2D(pano1Map,vec3(-1.0*vWorldPosition.x,vWorldPosition.yz));\n#else\nvec4 colorFromPanos=textureCube(pano1Map,vec3(-1.0*vWorldPosition.x,vWorldPosition.yz));\n#endif\ngl_FragColor=vec4(colorFromPanos.rgb,opacity);}"},SkyVideo:{uniforms:{videoMap:{type:"t",value:null},pano1Matrix:{type:"m4",value:new THREE.Matrix4},u1:{type:"f",value:0},u2:{type:"f",value:1}},vertexShader:g+"uniform mat4 pano1Matrix;varying vec3 vWorldPosition;void main(){vWorldPosition=(vec4(position,1.0)*pano1Matrix).xyz;gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.0);}",fragmentShader:n+"varying vec3 vWorldPosition;\n#define PI 3.141592653\n uniform float u1;uniform float u2;uniform sampler2D videoMap;vec4 texCubemapWith2D(vec3 dir){dir=normalize(dir);float tx=atan(dir.x,dir.z)/(PI*2.0)+0.5;if(tx>u1&&tx<u2){tx=(tx-u1)/(u2-u1);float ty=acos(dir.y)/PI;\nreturn texture2D(videoMap,vec2(tx,ty));}else{\nreturn vec4(0.0,0.0,0.0,0.0);}\n}void main(){gl_FragColor=texCubemapWith2D(vec3(-1.0*vWorldPosition.x,vWorldPosition.yz));}"},FishEyeVideo:{uniforms:{videoReady:{value:0},videoMap:{},pano1Map:{},pano1Matrix:{type:"m4",value:new THREE.Matrix4},parameters:{type:"m4",value:(new THREE.Matrix4).set(2304,1728,2048,1024,.969455,1.34,875,1128,-686571e-10,-13788e-8,-.0336433,0,0,0,0,0)},distortTable:{}},vertexShader:g+"\n\t\tuniform mat4 pano1Matrix;\n\t\n\t\tvarying vec3 qg;\n\t\tvarying vec2 wr;\n\t\t\n\t\tvoid main(){\n\t\t\n\t\t\tqg = (vec4(position,1.0)*pano1Matrix).xyz;\n\t\t\tqg.xy *= -1.0;\n\t\t\t\n\t\n\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4(position,1.0);\n\t\t\t\n\t\t\twr = uv;\n\t\t}\n\t\n\t\t",fragmentShader:n+"\n\t\t#define PI 3.141592653589793\n\n\t\tuniform mat4 pano1Matrix;\n\t\tuniform sampler2D pano1Map;\n\t\tuniform sampler2D videoMap;\n\n\t\tuniform mat4 parameters;\n\t\tuniform int videoReady;\n\t\n\t\tvarying vec3 qg;\n\t\tvarying vec2 wr;\n\t\n\t\n\t\tvec2 f12( vec3 as )\n\t\t{\n\t\t\tas=normalize(as);\n\t\t\tfloat tx=atan(as.x,as.z)/(PI*2.0)+0.5;\n\t\t\tfloat ty=acos(as.y)/PI;\n\t\t\treturn vec2(tx,ty);\n\t\t}\n\t\n\t\tfloat f42( float phi_undistorted )\n\t\t{\n\t\t\treturn - 0.0497*phi_undistorted*phi_undistorted*phi_undistorted*phi_undistorted*phi_undistorted\n\t\t\t\t\t+ 0.2548*phi_undistorted*phi_undistorted*phi_undistorted*phi_undistorted\n\t\t\t\t\t- 0.4303*phi_undistorted*phi_undistorted*phi_undistorted\n\t\t\t\t\t- 0.016 *phi_undistorted*phi_undistorted \n\t\t\t\t\t+ 1.0068*phi_undistorted - 0.0004;\t\t \n\t\t}\n\t\t\n\t\tvec2 uv2CameraCoord( vec2 uv) \n\t\t{\n\t\t\tvec2 coor;\n\t\t\tcoor.x = (uv.x* parameters[0][0] - parameters[0][3]) / parameters[2][3];\n\t\t\tcoor.y = (uv.y* parameters[1][0] - parameters[1][3]) / parameters[3][3];\n\t\t\treturn coor;\n\t\t}\n\t\n\t\tvec4 f44(sampler2D texture, vec2 dc)\n\t\t{\n\t\t\n\t\t\tfloat vm = parameters[0][0];\n\t\t\tfloat vb = parameters[1][0];\n\t\t\tfloat vy = parameters[2][0];\n\t\t\tfloat oh = parameters[3][0];\n\n\t\t\tfloat wa = parameters[0][1];\n\t\t\tfloat qa = parameters[1][1];\n\t\t\tfloat cx = parameters[2][1];\n\t\t\tfloat cy = parameters[3][1];\n\t\n\t\t\tfloat tx = parameters[0][2];\n\t\t\tfloat ty = parameters[1][2];\n\t\t\tfloat tz = parameters[2][2];\n\t\n\t\t\t//////////////////////////////////////////\n\t\t\t\n\t\t\tfloat focal_final = wa * 1000.0 / qa;\n\t\n\t\t\t\n\t\n\t\t\tfloat ptIn_x = dc.x * vy;\n\t\t\tfloat ptIn_y = (1.0 - dc.y) * oh;\n\t\n\t\t\tfloat ptOut_x, ptOut_y;\n\t\t\t\n\t\t\tfloat size = vy > oh ? vy : oh;\n\t\n\t\t\tfloat camx, camy;\n\t\n\t\t\tcamx = (ptIn_x - vy / 2.0) / size;\n\t\t\tcamy = (ptIn_y - oh / 2.0) / size;\n\t\n\t\t\tfloat lon, lat;\n\t\n\t\t\tlon = camx * 2.0 * 3.1415926;\n\t\t\tlat = -1.0 * camy * 2.0 * 3.1415926;\n\t\n\t\t\tfloat zq, zw, zr;\n\t\n\t\t\tzq = 0.33 * tx + cos(lat) * sin(lon);\n\t\t\tzw = 0.33 * ty - sin(lat);\n\t\t\tzr = 0.33 * tz + cos(lat) * cos(lon); \n\t\n\t\n\t\t\tfloat theta = atan(-zw, zq);\n\t\n\t\t\tfloat al = atan( sqrt(zq * zq + zw * zw), zr);\n\t\n\t\t\tfloat x12, x13;\n\t\n\t\t\tfloat wea = f42(al);\n\t\t\tfloat r = focal_final * tan(wea);\n\t\n\t\t\tx12 = cx + r * cos(theta);\n\t\t\tx13 = cy - r * sin(theta);\n\t\n\t\t\tptOut_x = x13 / vm;\n\t\t\tptOut_y = x12 / vb;\n\t\t\t\n\t\t\t\n\t\t\tvec2 samplerCoord = vec2(ptOut_x, ptOut_y);\n\n\t\t\t#if Mapping == 1\n\t\t\t\tsamplerCoord = uv2CameraCoord(samplerCoord);\n\t\t\t#endif\n\t\n\t\t\treturn texture2D(texture, samplerCoord);\n\t\n\t\t}\n\t\n\t\n\t\n\t\tvoid main() \n\t\t{\n\t\t\tvec2 dc = f12(qg);\n\t\n\t\t\tvec4 ft = f44(videoMap, dc);\n\t\t\tvec4 fb = texture2D(pano1Map, dc);\n\t\n\t\t\tvec4 color = vec4(0.0);\n\n\t\t\t#if Mapping == 0\n\t\t\t\tfloat alpha = smoothstep(0.3, 0.33, dc.x) * 1.0 - smoothstep(0.66, 0.7, dc.x);\n\t\t\t\tcolor = mix(fb, ft, alpha * float(videoReady));\n\t\t\t#elif Mapping == 1\n\t\t\t\tfloat alphaX = smoothstep( 0.416, 0.426, dc.x) * 1.0 - smoothstep(0.573, 0.583, dc.x);\n\t\t\t\tfloat alphaY = smoothstep( 0.283, 0.293, dc.y) * 1.0 - smoothstep(0.706, 0.716, dc.y);\n\t\t\t\tcolor = mix(fb, ft, alphaX * alphaY * float(videoReady));\t\t\n\t\t\t#endif\n\n\t\t\n\t\t\tgl_FragColor = vec4(color.xyz, 1.0);\n\t\n\t\t}\n\t\t"},floorLogo:{uniforms:{map:{type:"t",value:null},opacity:{type:"f",value:0},opaRadius:{type:"f",value:.2}},vertexShader:"varying vec2 vUv;void main() { vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );}",fragmentShader:"uniform sampler2D map; uniform float opacity;uniform float opaRadius;varying vec2 vUv; void main() { vec2 vUv2 = vec2(vUv.x*2.0 - 1.0, vUv.y*2.0 - 1.0); vec4 colorFromTexture = texture2D( map, vUv ); float opa = 1.0; float r = vUv2.x*vUv2.x + vUv2.y*vUv2.y; if(r > 1.0) opa = 0.0; else if(r < opaRadius)opa = 1.0; else{\tfloat a = -1.0 / ((opaRadius - 1.0)*(opaRadius - 1.0));\tfloat b = -2.0 * a * opaRadius;\tfloat c = 1.0 + a * opaRadius * opaRadius; opa = a * r*r + b * r + c; } gl_FragColor = vec4(colorFromTexture.rgb, opacity * min(colorFromTexture.a, opa) );}"},basicTextured:{uniforms:{tDiffuse:{type:"t",value:null},alpha:{type:"f",value:1}},vertexShader:"varying vec2 vUv;\nvoid main() {\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}",fragmentShader:"varying vec2 vUv;\nuniform float alpha;\nuniform sampler2D tDiffuse;\nvoid main() {\n vec4 texColor = texture2D(tDiffuse, vUv);\n gl_FragColor = vec4(texColor.rgb, texColor.a * alpha);\n}"},cube:{uniforms:{map:{type:"t",value:null},opacity:{type:"f",value:1}},vertexShader:g+"varying vec3 vWorldPosition;\n\nvoid main() {\n vWorldPosition = position;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}\n",fragmentShader:n+"uniform samplerCube map;\nuniform float opacity;\n\nvarying vec3 vWorldPosition;\n\nvoid main() {\n vec4 color = textureCube( map, vec3( -vWorldPosition.x, vWorldPosition.yz ) );\n gl_FragColor = vec4(color.rgb, opacity);\n}\n"},copyCubeMap:{uniforms:{tDiffuse:{type:"t",value:null},alpha:{type:"f",value:1}},vertexShader:"varying vec3 vWorldPos;\nvoid main() {\n vWorldPos = vec3(-position.x, -position.y, position.z);\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}",fragmentShader:"varying vec3 vWorldPos;\nuniform float alpha;\nuniform samplerCube tDiffuse;\nvoid main() {\n vec4 texColor = textureCube(tDiffuse, vWorldPos);\n gl_FragColor = vec4(texColor.rgb, texColor.a * alpha);\n}"},modelOutside:{uniforms:{map:{type:"t",value:null},opacity:{type:"f",value:1}},vertexShader:g+"varying vec2 vUv;\n\nvoid main() {\n\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n}\n",fragmentShader:n+"uniform sampler2D map;\nuniform float opacity;\nvarying vec2 vUv;\n\nvec4 white = vec4(0.5, 0.5, 0.5, 1.0);\n\nvoid main() {\n\n vec4 colorFromTexture = texture2D( map, vUv );\n float whiteness = 1.0 - smoothstep(0.1, 0.2, opacity);\n colorFromTexture = mix(colorFromTexture, white, whiteness);\n gl_FragColor = vec4(colorFromTexture.rgb, opacity);\n\n}\n"},ribbon:{uniforms:{map:{type:"t",value:null},opacity:{type:"f",value:1},color:{type:"c",value:new THREE.Color(o.a.path.color)}},vertexShader:g+"varying vec2 vUv;\nvarying vec3 vN;\nvarying vec4 vP;\n\nvoid main() {\n\n vUv = uv;\n vN= normalMatrix * normal;\n vP = modelViewMatrix * vec4( position, 1.0 );\n gl_Position = projectionMatrix * vP;\n}\n",fragmentShader:n+"uniform sampler2D map;\nuniform float opacity;\nvarying vec2 vUv;\nuniform vec3 color;\nvarying vec3 vN; // show-1182\nvarying vec4 vP; // show-1182\n\nvoid main() {\n\t// TODO add scroll-in and pulsing behaviors\n\tvec3 vNn = normalize(vN);\n\tvec3 vPn = normalize(vP.xyz);\n\tfloat f = pow(1.0-abs(dot(vNn,vPn)),0.2);\n vec4 colorFromTexture = texture2D( map, vUv );\n colorFromTexture.a *= f;\n gl_FragColor = vec4((color.rgb*colorFromTexture.rgb),\n \t\t\t\t\t\t(opacity*colorFromTexture.a));\n}\n"},waypoint:{uniforms:{map:{type:"t",value:null},opacity:{type:"f",value:1},pulse:{type:"f",value:1},nearFade:{type:"v2",value:new THREE.Vector2(2*o.a.insideNear,2*o.a.path.waypointIndoorRadius)},color:{type:"c",value:new THREE.Color(o.a.reticuleColor)}},vertexShader:g+"varying vec2 vUv;\nvarying vec4 vPointView;\n\nvoid main() {\n\n vUv = uv;\n vPointView = modelViewMatrix * vec4( position, 1.0 );\n gl_Position = projectionMatrix * vPointView;\n\n}\n",fragmentShader:n+"uniform sampler2D map;\nuniform float opacity;\nuniform float pulse; // another opacity, with a different clock\nuniform vec2 nearFade;\nvarying vec2 vUv;\nvarying vec4 vPointView;\nuniform vec3 color;\n\nvoid main() {\n\t// TODO add scroll-in and pulsing behaviors\n\tfloat depthFade = min(1.0, (abs(vPointView.z)-nearFade.x)/(nearFade.y-nearFade.x));\n vec4 colorFromTexture = texture2D( map, vUv );\t\t// we only use the alpha!\n gl_FragColor = vec4(color.rgb,\n \t\t\t\t\t\t(pulse*opacity*colorFromTexture.a * depthFade));\n}\n"},modelDebug:{uniforms:{map:{type:"t",value:null},modelAlpha:{type:"f",value:o.a.modelAlpha},depthmapRatio:{type:"f",value:0},opacity:{type:"f",value:1},progress:{type:"f",value:0},considerOcclusion:{type:"i",value:o.a.fancierTransition},highlightPanoSelection:{type:"i",value:0},useThirdPano:{type:"i",value:o.a.useThirdPano},pano0Map:{type:"t",value:null},pano0Depth:{type:"t",value:null},pano0Position:{type:"v3",value:new THREE.Vector3},pano0Matrix:{type:"m4",value:new THREE.Matrix4},pano0Weight:{type:"f",value:o.a.transition.pano0Weight},pano1Map:{type:"t",value:null},pano1Depth:{type:"t",value:null},pano1Position:{type:"v3",value:new THREE.Vector3},pano1Matrix:{type:"m4",value:new THREE.Matrix4},pano1Weight:{type:"f",value:o.a.transition.pano1Weight},pano2Map:{type:"t",value:null},pano2Depth:{type:"t",value:null},pano2Position:{type:"v3",value:new THREE.Vector3},pano2Matrix:{type:"m4",value:new THREE.Matrix4},pano2Weight:{type:"f",value:o.a.transition.pano2Weight}},vertexShader:g+"uniform vec3 pano0Position;\nuniform mat4 pano0Matrix;\n\nuniform vec3 pano1Position;\nuniform mat4 pano1Matrix;\n\nuniform vec3 pano2Position;\nuniform mat4 pano2Matrix;\n\nvarying vec2 vUv;\nvarying vec3 vWorldPosition0;\nvarying vec3 vWorldPosition1;\nvarying vec3 vWorldPosition2;\n\nvarying vec4 worldPosition;\n\nvoid main() {\n\n vUv = uv;\n worldPosition = modelMatrix * vec4(position, 1.0);\n\n vec3 positionLocalToPanoCenter0 = worldPosition.xyz - pano0Position;\n vWorldPosition0 = (vec4(positionLocalToPanoCenter0, 1.0) * pano0Matrix).xyz;\n vWorldPosition0.x *= -1.0;\n\n vec3 positionLocalToPanoCenter1 = worldPosition.xyz - pano1Position;\n vWorldPosition1 = (vec4(positionLocalToPanoCenter1, 1.0) * pano1Matrix).xyz;\n vWorldPosition1.x *= -1.0;\n\n vec3 positionLocalToPanoCenter2 = worldPosition.xyz - pano2Position;\n vWorldPosition2 = (vec4(positionLocalToPanoCenter2, 2.0) * pano2Matrix).xyz;\n vWorldPosition2.x *= -1.0;\n\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n}\n",fragmentShader:n+"uniform sampler2D map;\nuniform float depthmapRatio;\nuniform float modelAlpha;\nuniform float opacity;\nuniform float progress;\nuniform int considerOcclusion;\nuniform int highlightPanoSelection;\nuniform int useThirdPano;\n\nuniform vec3 pano0Position;\nuniform samplerCube pano0Map;\nuniform samplerCube pano0Depth;\nuniform float pano0Weight;\n\nuniform vec3 pano1Position;\nuniform samplerCube pano1Map;\nuniform samplerCube pano1Depth;\nuniform float pano1Weight;\n\nuniform vec3 pano2Position;\nuniform samplerCube pano2Map;\nuniform samplerCube pano2Depth;\nuniform float pano2Weight;\n\nvarying vec2 vUv;\nvarying vec3 vWorldPosition0;\nvarying vec3 vWorldPosition1;\nvarying vec3 vWorldPosition2;\n\nvarying vec4 worldPosition;\n\nvoid main() {\n\n vec4 depthFromPano0 = textureCube( pano0Depth, vWorldPosition0.xyz );\n vec4 depthFromPano1 = textureCube( pano1Depth, vWorldPosition1.xyz );\n vec4 depthFromPano2 = textureCube( pano2Depth, vWorldPosition2.xyz );\n\n vec4 colorFromPano0 = textureCube( pano0Map, vWorldPosition0.xyz );\n vec4 colorFromPano1 = textureCube( pano1Map, vWorldPosition1.xyz );\n vec4 colorFromPano2 = textureCube( pano2Map, vWorldPosition2.xyz );\n\n float distanceToPano0 = distance(worldPosition.xyz, pano0Position);\n float distanceToPano1 = distance(worldPosition.xyz, pano1Position);\n float distanceToPano2 = distance(worldPosition.xyz, pano2Position);\n\n float cameraToPano0 = distance(cameraPosition.xyz, pano0Position);\n float cameraToPano1 = distance(cameraPosition.xyz, pano1Position);\n float cameraToPano2 = distance(cameraPosition.xyz, pano2Position);\n\n float contributionFromPano0 = cameraToPano0 == 0.0 ? 1000.0 : pano0Weight / cameraToPano0;\n float contributionFromPano1 = cameraToPano1 == 0.0 ? 1000.0 : pano1Weight / cameraToPano1;\n float contributionFromPano2 = cameraToPano2 == 0.0 ? 1000.0 : pano2Weight / cameraToPano2;\n\n contributionFromPano0 *= 1.0 / distanceToPano0;\n contributionFromPano1 *= 1.0 / distanceToPano1;\n contributionFromPano2 *= 1.0 / distanceToPano2;\n\n if(considerOcclusion == 1) {\n bool occludedFromPano0 = distanceToPano0 / 10.0 > 1.01 - depthFromPano0.x;\n bool occludedFromPano1 = distanceToPano1 / 10.0 > 1.01 - depthFromPano1.x;\n bool occludedFromPano2 = distanceToPano2 / 10.0 > 1.01 - depthFromPano2.x;\n\n if(occludedFromPano0){contributionFromPano0 *= 0.1;}\n if(occludedFromPano1){contributionFromPano1 *= 0.1;}\n if(occludedFromPano2){contributionFromPano2 *= 0.1;}\n //if(occludedFromPano0 && occludedFromPano1 && !occludedFromPano2) { contributionFromPano2 += 0.5; }\n }\n\n float contributionSum = contributionFromPano0 + contributionFromPano1 + contributionFromPano2;\n contributionFromPano0 /= contributionSum;\n contributionFromPano1 /= contributionSum;\n contributionFromPano2 /= contributionSum;\n\n vec4 colorFromPanos = colorFromPano0 * contributionFromPano0;\n colorFromPanos += colorFromPano1 * contributionFromPano1;\n colorFromPanos += colorFromPano2 * contributionFromPano2;\n\n vec4 depthFromPanos = depthFromPano0 * contributionFromPano0;\n depthFromPanos += depthFromPano1 * contributionFromPano1;\n depthFromPanos += depthFromPano2 * contributionFromPano2;\n\n vec4 colorFromTexture = texture2D( map, vUv );\n colorFromPanos = mix(colorFromPanos, colorFromTexture, modelAlpha);\n\n if(highlightPanoSelection == 1) {\n colorFromPanos.r = contributionFromPano0;\n colorFromPanos.g = contributionFromPano1;\n colorFromPanos.b = contributionFromPano2;\n }\n\n gl_FragColor = vec4(mix(colorFromPanos, depthFromPanos, depthmapRatio).rgb, opacity);\n\n}\n"},customDepth:{uniforms:{panoPosition:{type:"v3",value:new THREE.Vector3}},vertexShader:g+"varying vec4 worldPosition;\n\nvoid main() {\n\n worldPosition = modelMatrix * vec4(position, 1.0);\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n}\n",fragmentShader:n+"uniform vec3 panoPosition;\nvarying vec4 worldPosition;\n\nvoid main() {\n\n float depth = distance(worldPosition.xyz, panoPosition);\n float color = 1.0 - depth / 10.0;\n gl_FragColor = vec4(color, color, color, 1.0);\n\n}\n"},skysphere:{uniforms:{radius:{type:"f",value:2500}},vertexShader:g+"varying vec4 worldPosition;\n\nvoid main() {\n\n worldPosition = modelMatrix * vec4(position, 1.0);\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n}\n",fragmentShader:n+"varying vec4 worldPosition;\nuniform float radius;\n\nvoid main() {\n\n vec4 topColor = vec4(0.4, 0.4, 0.4, 1.0);\n vec4 bottomColor = vec4(0.2, 0.2, 0.2, 1.0);\n float normalizedHeight = (worldPosition.y + radius) / (radius * 2.0);\n float ratio = smoothstep(0.0, 0.5, normalizedHeight);\n gl_FragColor = mix(bottomColor, topColor, ratio);\n\n}\n"},tagDisc:{uniforms:{opacity:{type:"f",value:1},dark:{type:"i",value:0},map:{type:"t",value:null}},vertexShader:g+"varying vec2 vUv;\nvoid main() {\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);\n}",fragmentShader:n+"uniform float opacity;\nuniform int dark;\nuniform sampler2D map;\n \n\nvarying vec2 vUv;\n\nvoid main() {\n vec4 color = texture2D(map, vUv); \n if(dark == 1 && (color.r + color.g + color.b < 240.0*3.0/255.0)){\n\t color.rgb *= 0.9;\n } \n gl_FragColor = vec4(color.rgb, color.a * opacity);\n}\n"},videoPanoMarker:{uniforms:{progress:{type:"f",value:0},map0:{type:"t",value:null},map1:{type:"t",value:null},map2:{type:"t",value:null},opacity:{type:"f",value:1}},vertexShader:g+"\n\t\t\tuniform float progress;\n\t\t\tvarying vec2 vUv0; varying vec2 vUv1; varying vec2 vUv2;\n\t\t\t vec2 Scale(vec2 vuv, float scale){\n\t\t\t\tscale = 1.0/scale; \n\t\t\t \tvuv.x=(uv.x-0.5) * scale + 0.5; \n\t\t \t \tvuv.y=(uv.y-0.5) * scale + 0.5 ; \n\t \t\t \treturn vuv ; \t\t\t\t\t \t\t\n\t\t\t }\t\n\n\t\t\t void main(){\n\t\t\t \tfloat baseScale = 0.78;\n\t\t\t \tfloat s1 = 1.0; float s2 = 1.28;\n\t\t\t\tfloat scale1 = progress * (s2 - s1) + s1;\n\t\t\t\tvUv1 = Scale(uv, scale1 * baseScale);\n\t\t\t\tfloat scale2;\n\t\t\t\tif(progress < 0.5){\n\t\t\t\t\tfloat s1 = 1.0; float s2 = 1.16; \n\t\t\t\t\tscale2 = 2.0 * progress * (s2 - s1) + s1;\n\t\t\t\t}else{\n\t\t\t\t\tfloat s1 = 1.16; float s2 = 1.27;\n\t\t\t\t\tscale2 = 2.0 *(progress - 0.5) * (s2 - s1) + s1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tvUv2 = Scale(uv, scale2 * baseScale);\n \t\t\t\tvUv0 = Scale(uv, baseScale);\n\n \t\t\t\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n\n\n\n\t\t\t}\n\n\t\t",fragmentShader:n+"\n\t\t\tuniform sampler2D map0;uniform sampler2D map1; uniform sampler2D map2;\n\t\t\tuniform float opacity;\n\t\t\tuniform float progress;\n\t\t\tvec4 noRepeat(sampler2D sampler, vec2 uv){\t\t\t\t\t \n\t\t \t vec4 color;\n\t\t \t\t if(uv.x<0.0) \t color = vec4(0.0, 0.0, 0.0, 0.0) ;\n\t\t \t\t else if(uv.x>1.0) color = vec4(0.0, 0.0, 0.0, 0.0) ;\n\t\t \t\t else if(uv.y<0.0) color = vec4(0.0, 0.0, 0.0, 0.0) ;\n\t\t\t\t else if(uv.y>1.0) color = vec4(0.0, 0.0, 0.0, 0.0) ;\t\n\t\t\t\t else color = texture2D(sampler, uv);\n\t\t \t\t return color ;\t\t\n\t\t\t }\n\t\t\t vec4 mixColor(vec4 downColor,vec4 upColor){\n\t\t\t \treturn vec4(upColor.rgb * upColor.a + (1.0 - upColor.a) * downColor.rgb, upColor.a+downColor.a);//下层的分量通过上层的a来决定,暂时这么设置\n\t\t\t\t//vec4 sum = downColor + upColor; \n\t\t\t\t//if(sum.a == 0.0){\n\t\t\t\t//\treturn sum;\n\t\t\t\t//}\n\t\t\t\t//float upPct = upColor.a / sum.a;\n\t\t\t\t//float downPct = downColor.a / sum.a; \n\t\t\t\t//return vec4(upColor.rgb * upPct + downColor.rgb * downPct , sum.a );\n\t\t\t }\n\t\t\t varying vec2 vUv0; varying vec2 vUv1; varying vec2 vUv2; \n\t\t\t void main(){\n\t\t\t \tfloat op1, op2;\n\t\t\t \tif(progress<0.5){\n\t\t\t \t\top1 = 0.49; \n\t\t\t \t\top2 = 2.0 * progress * (0.48 - 1.0) + 1.0;\n\t\t\t \t}else{\n\t\t\t\t\top1 = 2.0 * (progress - 0.5) * (0.0 - 0.49) + 0.49;\n\t\t\t\t\top2 = 2.0 * (progress - 0.5) * (0.0 - 0.48) + 0.48;\n\t\t\t \t}\n\n\t\t\t \tvec4 color0 = noRepeat(map0, vUv0);\n\t\t\t \tvec4 color1 = noRepeat(map1, vUv1);\n\t\t\t \tvec4 color2 = noRepeat(map2, vUv2);\n\t\t\t \tcolor1.a *= op1;\n\t\t\t \tcolor2.a *= op2;\n\t\t\t\t \n\t\t\t\t\n\t\t\t\t#if defined(useColor2) \n\t\t\t\t\tgl_FragColor = mixColor(mixColor(color0 , color1), color2); //为什么苹果渲染的发黑//这样稍微柔和一些\n\t\t\t\t#else\t\n\t\t\t\t\tgl_FragColor = mixColor(mixColor(color2 , color0), color1 ); //这个叠放顺序也是试出来比较好的一种。color0基底由于外框部分都是0,0,0,0作为下层会被取一部分黑色,所以只能放上层,而内层的color1也要放上层,所以color2就是最下层。\n \t\t\t\t#endif \n\t\t\t\tgl_FragColor.a *= opacity;\n\t\t\t }\n\n\t\t"}};t.a=a},function(e,t,i){"use strict";t.a={Move:"move",MoveComplete:"move.complete",ModeChanged:"mode.changed",ModeChanging:"mode.changing",PanoChosen:"pano.chosen",ClosestPanoChanging:"closest.pano.changing",WarpStarted:"warp.started",WarpInterrupted:"warp.interrupted",WarpEnded:"warp.ended",FlyinFinished:"flyin.finished",FlyingStarted:"flying.started",FlyingInterrupted:"flying.interrupted",FlyingEnded:"flying.ended",Ready:"ready",StartInside:"start.inside",StartOutside:"start.outside",ViewChanged:"view.changed",WarpInterruptedWithFlyTo:"warp.interrupted.flyto",InputStart:"input.start"}},function(e,t,i){e.exports=i(95)},function(e,t,i){"use strict";var o={ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,LEFTARROW:37,UPARROW:38,RIGHTARROW:39,DOWNARROW:40,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,SPACE:32,RETURN:13,SEMICOLON:186,PLUSEQUALS:187,DASHUNDERSCORE:189,OPENBRACKET:219};i(7).a.detectFirefox()&&(o.SEMICOLON=59,o.PLUSEQUALS=61,o.DASHUNDERSCORE=173),t.a=o},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,i){"use strict";t.a={Move:"move",InteractionDirect:"interaction.direct",InteractionKey:"interaction.key",InteractionGui:"interaction.gui",FlyInDirection:"fly.direction",InputStart:"input.start",Pinch:"input.pinch",Scroll:"input.scroll",AutoPanInterrupt:"autopan.interrupt",AutoPanComplete:"autopan.complete",AutoPanClamped:"autopan.clamped",LongTap:"longtap"}},function(e,t,i){"use strict";i(124);var o={};o.RADIANS_PER_DEGREE=Math.PI/180,o.DEGREES_PER_RADIAN=180/Math.PI,o.Vector3=function(e,t,i){this.x=e||0,this.y=t||0,this.z=i||0},o.Matrix4=function(){this.elements=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),arguments.length>0&&console.error("MathLight.Matrix4: the constructor no longer reads arguments. use .set() instead.")},o.Matrix4.prototype={identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},copy:function(e){return this.elements.set(e.elements),this},applyToVector3:function(e){var t=e.x,i=e.y,o=e.z,g=this.elements;return e.x=g[0]*t+g[4]*i+g[8]*o+g[12],e.y=g[1]*t+g[5]*i+g[9]*o+g[13],e.z=g[2]*t+g[6]*i+g[10]*o+g[14],this},getInverse:function(e,t){var i=this.elements,o=e.elements,g=o[0],n=o[1],a=o[2],A=o[3],r=o[4],C=o[5],I=o[6],s=o[7],l=o[8],c=o[9],u=o[10],d=o[11],h=o[12],p=o[13],f=o[14],m=o[15],v=c*f*s-p*u*s+p*I*d-C*f*d-c*I*m+C*u*m,y=h*u*s-l*f*s-h*I*d+r*f*d+l*I*m-r*u*m,b=l*p*s-h*c*s+h*C*d-r*p*d-l*C*m+r*c*m,w=h*c*I-l*p*I-h*C*u+r*p*u+l*C*f-r*c*f,x=g*v+n*y+a*b+A*w;if(0===x){var E="MathLight.Matrix4.getInverse(): can't invert matrix, determinant is 0";if(t)throw new Error(E);return console.warn(E),this.identity()}var P=1/x;return i[0]=v*P,i[1]=(p*u*A-c*f*A-p*a*d+n*f*d+c*a*m-n*u*m)*P,i[2]=(C*f*A-p*I*A+p*a*s-n*f*s-C*a*m+n*I*m)*P,i[3]=(c*I*A-C*u*A-c*a*s+n*u*s+C*a*d-n*I*d)*P,i[4]=y*P,i[5]=(l*f*A-h*u*A+h*a*d-g*f*d-l*a*m+g*u*m)*P,i[6]=(h*I*A-r*f*A-h*a*s+g*f*s+r*a*m-g*I*m)*P,i[7]=(r*u*A-l*I*A+l*a*s-g*u*s-r*a*d+g*I*d)*P,i[8]=b*P,i[9]=(h*c*A-l*p*A-h*n*d+g*p*d+l*n*m-g*c*m)*P,i[10]=(r*p*A-h*C*A+h*n*s-g*p*s-r*n*m+g*C*m)*P,i[11]=(l*C*A-r*c*A-l*n*s+g*c*s+r*n*d-g*C*d)*P,i[12]=w*P,i[13]=(l*p*a-h*c*a+h*n*u-g*p*u-l*n*f+g*c*f)*P,i[14]=(h*C*a-r*p*a-h*n*I+g*p*I+r*n*f-g*C*f)*P,i[15]=(r*c*a-l*C*a+l*n*I-g*c*I-r*n*u+g*C*u)*P,this},makeRotationFromQuaternion:function(e){var t=this.elements,i=e.x,o=e.y,g=e.z,n=e.w,a=i+i,A=o+o,r=g+g,C=i*a,I=i*A,s=i*r,l=o*A,c=o*r,u=g*r,d=n*a,h=n*A,p=n*r;return t[0]=1-(l+u),t[4]=I-p,t[8]=s+h,t[1]=I+p,t[5]=1-(C+u),t[9]=c-d,t[2]=s-h,t[6]=c+d,t[10]=1-(C+l),t[3]=0,t[7]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,this}},o.Quaternion=function(e,t,i,o){this._x=e||0,this._y=t||0,this._z=i||0,this._w=void 0!==o?o:1},o.Quaternion.prototype={get x(){return this._x},set x(e){this._x=e},get y(){return this._y},set y(e){this._y=e},get z(){return this._z},set z(e){this._z=e},get w(){return this._w},set w(e){this._w=e},copy:function(e){this._x=e.x,this._y=e.y,this._z=e.z,this._w=e.w},inverse:function(){return this.conjugate().normalize()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var e=this.length();return 0===e?(this._x=0,this._y=0,this._z=0,this._w=1):(e=1/e,this._x=this._x*e,this._y=this._y*e,this._z=this._z*e,this._w=this._w*e),this},setFromAxisAngle:function(e,t){var i=t/2,o=Math.sin(i);return this._x=e.x*o,this._y=e.y*o,this._z=e.z*o,this._w=Math.cos(i),this},setFromUnitVectors:function(){var e,t;return function(i,g){return void 0===e&&(e=new o.Vector3),(t=o.dot(i,g)+1)<1e-6?(t=0,Math.abs(i.x)>Math.abs(i.z)?o.setVector(e,-i.y,i.x,0):o.setVector(e,0,-i.z,i.y)):o.cross(i,g,e),this._x=e.x,this._y=e.y,this._z=e.z,this._w=t,this.normalize()}}(),multiply:function(e){return this.multiplyQuaternions(this,e)},premultiply:function(e){return this.multiplyQuaternions(e,this)},multiplyQuaternions:function(e,t){var i=e._x,o=e._y,g=e._z,n=e._w,a=t._x,A=t._y,r=t._z,C=t._w;return this._x=i*C+n*a+o*r-g*A,this._y=o*C+n*A+g*a-i*r,this._z=g*C+n*r+i*A-o*a,this._w=n*C-i*a-o*A-g*r,this}},o.convertWorkshopVector=function(e){return new o.Vector3(-e.x,e.y,e.z)},o.convertWorkshopQuaternion=function(e){return new o.Quaternion(-e.x,e.y,e.z,-e.w).multiply(new o.Quaternion(Math.sqrt(2)/2,Math.sqrt(2)/2,0,0))},o.convertWorkshopOrthoZoom=function(e){return-1===e?-1:e*($("#player").width()/$("#player").height())},o.convertWorkshopPanoramaQuaternion=function(e){return new o.Quaternion(e.x,-e.y,-e.z,e.w).normalize().multiply((new o.Quaternion).setFromAxisAngle(new o.Vector3(0,1,0),270*o.RADIANS_PER_DEGREE))},o.normalize=function(e){var t=e.x*e.x+e.y*e.y+e.z*e.z,i=Math.sqrt(t);e.x/=i,e.y/=i,e.z/=i},o.dot=function(e,t){return e.x*t.x+e.y*t.y+e.z*t.z},o.cross=function(e,t,i){var o=e.x,g=e.y,n=e.z;i.x=g*t.z-n*t.y,i.y=n*t.x-o*t.z,i.z=o*t.y-g*t.x},o.setVector=function(e,t,i,o){e.x=t,e.y=i,e.z=o},o.copyVector=function(e,t){t.x=e.x,t.y=e.y,t.z=e.z},o.addVector=function(e,t){e.x+=t.x,e.y+=t.y,e.z+=t.z},o.subVector=function(e,t){e.x-=t.x,e.y-=t.y,e.z-=t.z},o.applyQuaternionToVector=function(e,t){var i=t.x,o=t.y,g=t.z,n=e.x,a=e.y,A=e.z,r=e.w,C=r*i+a*g-A*o,I=r*o+A*i-n*g,s=r*g+n*o-a*i,l=-n*i-a*o-A*g;t.x=C*r+l*-n+I*-A-s*-a,t.y=I*r+l*-a+s*-n-C*-A,t.z=s*r+l*-A+C*-a-I*-n},o.angleBetweenVectors=function(e,t){return Math.acos(o.dot(e,t))},t.a=o},function(e,t){function i(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}e.exports=function(e,t,o){return t&&i(e.prototype,t),o&&i(e,o),e}},function(e,t,i){"use strict";var o=i(121),g={};g[i(56)("toStringTag")]="z",g+""!="[object z]"&&i(84)(Object.prototype,"toString",(function(){return"[object "+o(this)+"]"}),!0)},function(e,t,i){"use strict";var o={UP:new THREE.Vector3(0,1,0),DOWN:new THREE.Vector3(0,-1,0),LEFT:new THREE.Vector3(-1,0,0),RIGHT:new THREE.Vector3(1,0,0),FORWARD:new THREE.Vector3(0,0,-1),BACK:new THREE.Vector3(0,0,1)};t.a=o},function(e,t,i){"use strict";var o,g=i(43),n=i(27),a={};a.TILE_SIZE=512,a.FACES_PER_PANO=6,a.LocationOnTile={Center:0,UpperLeft:1,UpperRight:2,LowerRight:3,LowerLeft:4},a.getTileVector=function(e,t,i,o,A,r,C,I){var s=e/t,l=t/e*2,c=l/2,u=o/s*2-1+c,d=(A=s-1-A)/s*2-1+c;switch(r=r||a.LocationOnTile.Center){case a.LocationOnTile.UpperLeft:u-=c,d+=c,u+=C*l;break;case a.LocationOnTile.UpperRight:u+=c,d+=c,d-=C*l;break;case a.LocationOnTile.LowerRight:u+=c,d-=c,u-=C*l;break;case a.LocationOnTile.LowerLeft:u-=c,d-=c,d+=C*l;break;case a.LocationOnTile.Center:}switch(i){case g.a.GL_TEXTURE_CUBE_MAP_POSITIVE_X:n.a.setVector(I,-1,d,-u);break;case g.a.GL_TEXTURE_CUBE_MAP_NEGATIVE_X:n.a.setVector(I,1,d,u);break;case g.a.GL_TEXTURE_CUBE_MAP_POSITIVE_Y:n.a.setVector(I,-u,1,-d);break;case g.a.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:n.a.setVector(I,-u,-1,d);break;case g.a.GL_TEXTURE_CUBE_MAP_POSITIVE_Z:n.a.setVector(I,-u,d,1);break;case g.a.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:n.a.setVector(I,u,d,-1)}n.a.normalize(I)},a.getFaceForTile=function(e,t){var i=a.TILE_SIZE;e<a.TILE_SIZE&&(i=e);var o=Math.floor(e/i),g=o*o;return Math.floor(t/g)},a.getTileLocation=function(e,t,i){var o=a.TILE_SIZE;e<a.TILE_SIZE&&(o=e);var g=a.getFaceForTile(e,t),n=Math.floor(e/o),A=t-g*(n*n);i.tileX=A%n,i.tileY=Math.floor(A/n),i.face=g,i.faceTileIndex=A},a.getTileCountForSize=function(e){if(e<=a.TILE_SIZE)return a.FACES_PER_PANO;var t=Math.floor(e/a.TILE_SIZE);return t*t*a.FACES_PER_PANO},a.getRelativeDirection=function(){var e=new n.a.Matrix4,t=new n.a.Quaternion;return function(i,o){t.copy(i),t.inverse(),e.makeRotationFromQuaternion(t),e.applyToVector3(o),n.a.normalize(o)}}(),a.matchingTilesInDirection=function(){var e=new n.a.Vector3,t=new n.a.Vector3(0,0,-1),i=new n.a.Quaternion,o=function(e,t){e.push({face:t.face,faceTileIndex:t.faceTileIndex,tileX:t.tileX,tileY:t.tileY})},g=function(){var e={face:-1,faceTileIndex:-1,tileX:-1,tileY:-1};return function(t,i,g){for(var n=a.getTileCountForSize(t),A=0,r=0;r<n;r++)a.getTileLocation(t,r,e),i&&!i(e)||(A++,g&&o(g,e));return A}}();return function(o,A,r,C,I,s){var l=A<a.TILE_SIZE?A:a.TILE_SIZE;if(a.getTileCountForSize(A),!C&&!I)return g(A,null,s);var c=!!I;if(I=I||C,I=Math.max(0,Math.min(I,360)),C=Math.max(0,Math.min(C,360)),n.a.copyVector(r,e),a.getRelativeDirection(o.quaternion,e),c){i.setFromUnitVectors(e,t);return g(A,(function(e){return a.isTileWithinFrustum(A,l,e.face,e.tileX,e.tileY,i,C,I)}),s)}return g(A,(function(t){return a.isTileWithinFOV(A,l,t.face,t.tileX,t.tileY,e,C)}),s)}}(),a.isTileWithinFrustum=(o=new n.a.Vector3,function(e,t,i,g,A,r,C,I){for(var s=Math.tan(.5*I*n.a.RADIANS_PER_DEGREE),l=-s,c=Math.tan(.5*C*n.a.RADIANS_PER_DEGREE),u=-c,d=a.mapFaceToCubemapFace(i),h=0,p=0,f=0,m=0,v=0,y=a.LocationOnTile.Center;y<=a.LocationOnTile.LowerLeft;y++)if(a.getTileVector(e,t,d,g,A,y,0,o),n.a.applyQuaternionToVector(r,o),o.z>=-1e-5);else{var b=-1/o.z,w=o.x*b,x=o.y*b;x>s?h++:x<l&&p++,w>c?f++:w<u&&m++,v++}return p!==v&&h!==v&&f!==v&&m!==v}),a.isTileWithinFOV=function(){var e=new n.a.Vector3,t=new n.a.Vector3(0,1,0),i=new n.a.Vector3(1,0,0);return function(o,g,A,r,C,I,s){var l=a.mapFaceToCubemapFace(A);if(n.a.cross(I,t,i),a.getTileVector(o,g,l,r,C,a.LocationOnTile.Center,0,e),a.isWithinFOV(e,I,s,null))return!0;for(var c=s/360,u=Math.floor(1/c),d=0,h=0;h<u;h++){for(var p=a.LocationOnTile.UpperLeft;p<=a.LocationOnTile.LowerLeft;p++)if(a.getTileVector(o,g,l,r,C,p,d,e),a.isWithinFOV(e,I,s,null))return!0;d+=c}return!1}}(),a.isWithinFOV=function(){var e=new n.a.Vector3,t=new n.a.Vector3;return function(i,o,g,a){if(n.a.copyVector(i,t),a){n.a.copyVector(a,e),n.a.normalize(e);var A=n.a.dot(e,i);e.x*=A,e.y*=A,e.z*=A,n.a.subVector(t,e)}var r=g/2*n.a.RADIANS_PER_DEGREE,C=Math.cos(r);return n.a.dot(t,o)>=C}}(),a.mapFaceToCubemapFace=function(){var e={0:g.a.GL_TEXTURE_CUBE_MAP_POSITIVE_Y,1:g.a.GL_TEXTURE_CUBE_MAP_POSITIVE_Z,2:g.a.GL_TEXTURE_CUBE_MAP_POSITIVE_X,3:g.a.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z,4:g.a.GL_TEXTURE_CUBE_MAP_NEGATIVE_X,5:g.a.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y};return function(t){return e[t]}}(),t.a=a},function(e,t,i){"use strict";i(52);var o=i(0),g=i(6),n=new THREE.Raycaster,a={getPos2d:function(e,t,i){t=t||o.a.player.camera,i=i||o.a.player.domElement;var g,n,a=e.clone().project(t);g=(a.x+1)/2*i.clientWidth,n=(1-(a.y+1)/2)*i.clientHeight;var A=g<=i.clientWidth&&g>=0&&n<=i.clientHeight&&n>=0;return{pos:new THREE.Vector2(g,n),vector:a,trueSide:a.z<1,inSight:A}},ifShelter:function(e,t){t||(t=this.getPos2d(e));var i=o.a.player,g=new THREE.Vector3(t.x,t.y,-1).unproject(i.camera),a=e.clone().sub(g).normalize();if(n.set(g,a),edit&&o.a.editor.mainDesign.editing)var A=n.intersectObjects(o.a.editor.mainDesign.wallMeshes);else A=n.intersectObjects(i.model.chunks);var r=e.distanceTo(g);if(A&&A.length)for(var C=0;C<A.length;C++)if(A[C].distance<r)return!0},getMouseIntersect:function(e,t,i){var o=new THREE.Raycaster;e.updateMatrixWorld();var g=new THREE.Vector3(i.x,i.y,-1).unproject(e),n=new THREE.Vector3(i.x,i.y,1).unproject(e).sub(g).normalize();o.set(g,n);var a=o.intersectObjects(t);return 0===a.length?null:a[0]},getPosAtSphere:function(e,t){var i=e.clone().sub(t);return i.normalize(),i.multiplyScalar(g.a.skyRadius),i.add(t),i}};t.a=a},function(e,t,i){var o=i(292),g=i(293),n=i(270),a=i(294);e.exports=function(e){return o(e)||g(e)||n(e)||a()}},function(e,t,i){var o=i(236);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&o(e,t)}},function(e,t,i){var o=i(44),g=i(139);e.exports=function(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?g(e):t}},function(e,t,i){"use strict";t.a={DEFAULT:0,PANOMARKERS:1,RETICULE:2,TAG:3,BothAtMainAndSubScreen:4,SubScreen:5}},function(e,t,i){"use strict";t.a={BASE:1,STANDARD:2,HIGH:3,ULTRAHIGH:4}},function(e,t,i){"use strict";var o=i(58),g=i(154)(5),n=!0;"find"in[]&&Array(1).find((function(){n=!1})),o(o.P+o.F*n,"Array",{find:function(e){return g(this,e,arguments.length>1?arguments[1]:void 0)}}),i(120)("find")},function(e,t,i){var o=i(73).f,g=Function.prototype,n=/^\s*function ([^ (]*)/;"name"in g||i(70)&&o(g,"name",{configurable:!0,get:function(){try{return(""+this).match(n)[1]}catch(e){return""}}})},function(e,t){function i(e,t,i,o,g,n,a){try{var A=e[n](a),r=A.value}catch(e){return void i(e)}A.done?t(r):Promise.resolve(r).then(o,g)}e.exports=function(e){return function(){var t=this,o=arguments;return new Promise((function(g,n){var a=e.apply(t,o);function A(e){i(a,g,n,A,r,"next",e)}function r(e){i(a,g,n,A,r,"throw",e)}A(void 0)}))}}},function(e,t,i){"use strict";i(49),i(29),i(69);var o=i(25),g=i.n(o),n=i(28),a=i.n(n),A=i(34),r=i.n(A),C=i(35),I=i.n(C),s=i(19),l=i.n(s),c=i(10),u=i(91);function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var h=window.Store=new(function(e){r()(o,e);var t,i=(t=o,function(){var e,i=l()(t);if(d()){var o=l()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return I()(this,e)});function o(){var e;return g()(this,o),(e=i.call(this)).metadata=null,e.metaModel=null,e.floorJson=null,e.hot=null,e.frameData=[],e.capData=[],e.playData=[],e.thumbs=[],e.capTime=0,e.recordType=2,e.isGuiderLoaded=!1,e.isResourceLoaded=!1,e.soundType=null,e}return a()(o,[{key:"set",value:function(e,t){return void 0!==this[e]&&(this[e]=t,this.emit(e,t)),this}}]),o}(u.a));h.FootIcon=c.default.getBlobSrc("iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJ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yfpW8j4L/CzgT0rgjwmg/yTQjghsySAvf5AliWxIkf375HH3xPXJb4fHNh7jUfVncX0jAXSQB2c3wCcAYFbEa7sJKVaRe6BENA8AJbDaBuYfEIC4wCnvX8Xc+fd5q/ZvccpzOeDMgtaU7FEbUohb/L0N6HOBfzKCf0wAgycDyiGFdmFCXv4gSwJ5IQXLfG1+bz5H9hqy12feN62bnHuRA7osGLMgzSODOOf7LMh1HN9O3osW13fSg35MAKNBBFlSKFIHrAWg87532vxdHunor/OIqu36yQCL5xABz5ABLyAB3ub7vJJdKy+fBf8Y+GMCGCki6JQMKAfE7QBuC/zs8+RdVx7wkQO0PDDaEIGwAHkeuXQE+jHwxwQwqmTQYqJ27j6EVsTQTtq3A37eLQ/4lAOqPInd6tZOpvM2P897HKB1TD/29mMCOOEIohUgW31PXfxeu58VrqOCnwnL/xMFjzv26qNOAGMb29hOPGPjt2BsYxsTwNjGNrYxAYxtbGMbE8DYxja2MQGMbWxjGxPA2MY2tjEBjG1sYxsTwNjGNrYTxv5/VDdIV3cES5wAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMTEtMTVUMDY6NTQ6NTMrMDA6MDA6OXdYAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTExLTE1VDA2OjU0OjUzKzAwOjAwS2TP5AAAAABJRU5ErkJggg==",!0),t.a=h},function(e,t,i){"use strict";i(49),i(29);var o,g,n={copy:function(e,t){for(var i in t)e[i]=t[i]},getPosition:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,i={x:0,y:0};e&&e!==t&&e!==document.documentElement;)i.x+=e.offsetLeft,i.y+=e.offsetTop,e=e.offsetParent;return i},getType:function(e){return Object.prototype.toString.call(e).slice(8,-1)},addMouseEvent:function(e,t){function i(t){var i=e.width,o=e.height;return t.x=i*t.x/e.offsetWidth,t.y=o*t.y/e.offsetHeight,t}e.addEventListener("mousemove",(function(e){t.move(i({x:e.offsetX,y:e.offsetY}))}),{passive:!1}),e.addEventListener("mousedown",(function(o){var g=i({x:o.offsetX,y:o.offsetY});function n(e){t.move(i({x:e.offsetX,y:e.offsetY}),g),g=i({x:e.offsetX,y:e.offsetY}),e.stopPropagation(),e.preventDefault()}t.down(i({x:o.offsetX,y:o.offsetY}))&&(e.addEventListener("mousemove",n,{passive:!1}),document.documentElement.addEventListener("mouseup",(function i(o){e.removeEventListener("mousemove",n,{passive:!1}),document.documentElement.removeEventListener("mouseup",i,{passive:!1,capture:!0}),t.up(),o.stopPropagation(),o.preventDefault()}),{passive:!1,capture:!0}),o.stopPropagation(),o.preventDefault())}),!1),e.addEventListener("mousewheel",(function(e){var i=0;e.wheelDelta?(i=e.wheelDelta/120,window.opera&&(i=-i)):e.detail&&(i=-e.detail/3),i<0?t.domscale(-1):t.domscale(1)}))},grentID:(o={},g={},function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:String;return o[e]?t&&(o[e]=o[e]>t?o[e]:t):(o[e]=t||1,g[e]=i),g[e]===String?e+"_"+o[e]++:o[e]++})};t.a=n},function(e,t,i){"use strict";t.a={GL_TEXTURE_CUBE_MAP_POSITIVE_X:0,GL_TEXTURE_CUBE_MAP_NEGATIVE_X:1,GL_TEXTURE_CUBE_MAP_POSITIVE_Y:2,GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:3,GL_TEXTURE_CUBE_MAP_POSITIVE_Z:4,GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:5}},function(e,t){function i(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=i=function(e){return typeof e}:e.exports=i=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(t)}e.exports=i},function(e,t,i){"use strict";t.a={BLACK:"black",STD:"std",WALK:"walk"}},function(e,t,i){"use strict";(function(e){i.d(t,"d",(function(){return c})),i.d(t,"c",(function(){return d})),i.d(t,"e",(function(){return p})),i.d(t,"b",(function(){return f}));i(106),i(107),i(119),i(200),i(150),i(151),i(39),i(59),i(53),i(29),i(60);var o=i(33),g=i.n(o),n=(i(105),i(38),i(11)),a=i.n(n),A=i(42),r=i(14),C=i(172),I=i(2);i(3);function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function l(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach((function(t){a()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function c(e){var t=l({},e);return void 0!==e.id&&null!==e.id||(t.id=A.a.grentID("point")),t}function u(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!~t.indexOf(e[i]))return!1;return!0}function d(e,t,i){return null==i&&(i=A.a.grentID("line")),{id:i,points:[e,t],otherobjs:[]}}function h(e){var t,i,o=(t={column:e.column,door:e.door,window:e.window},Object.keys(t).reduce((function(e,i){return e.concat.apply(e,g()(t[i].map((function(e){return l({id:A.a.grentID(i),points2d:(t=e.pos,o=[],t.forEach((function(e,t){var i=Math.floor(t/2);o[i]||(o[i]={}),o[i][t%2?"y":"x"]=t%2?-e:e})),o)},e);var t,o}))))}),[])),n=function(e){var t=e.vertex,i=e.wall,o=t.map((function(e){return c(e)}));return t.forEach((function(e,g){var n=function(e,t){var i=e.vertex,o=e.wall,g=i.indexOf(t),n=[];return o.forEach((function(e){var t=e.p1,i=e.p2;t!==g&&i!==g||n.push(t===g?i:t)})),n}({vertex:t,wall:i},e);o[g].joins=n.map((function(e){return o.find((function(t){return t.id===e}))}))})),o}(e);e.room?i=e.room.map((function(e){return Array.from(new Set(e.points)).map((function(e){return n.find((function(t){return t.id===e}))}))})).map((function(e){return e.filter((function(e){return!!e}))})):(i=[],n.forEach((function(e){i=i.concat(function(e,t){var i=[[t]];return function t(o){for(var n,a=i.length-1,A=e.filter((function(e){return!~i[a].indexOf(e)&&~o.joins.findIndex((function(t){return t.id===e.id}))})),r=1===A.length?null:g()(i[a]),C=0;n=A[C];C++)0!==C&&i.push(g()(r)),i[i.length-1].push(n),t(n)}(t),i.filter((function(e){return~e[e.length-1].joins.findIndex((function(e){return e.id===t.id}))}))}(n,e))})),i=function(e){for(var t=0;t<e.length;t++)for(var i=t+1;i<e.length;i++)u(e[t],e[i])&&e.splice(i--,1);for(var o=0;o<e.length;o++)for(var g=0;g<e.length;g++)if(o!==g&&r.a.faceContain(e[o],e[g])){e.splice(o--,1);break}return e}(i));var a,C=i.map((function(e){return function(e){if(!r.a.isClockWise(e)){var t=[];e.forEach((function(i,o){return t[e.length-o-1]=i})),e=t}for(var i=[],o=0;o<e.length;o++)i.push(d(e[o],e[o+1===e.length?0:o+1]));return i}(e)}));return(a=C.reduce((function(e,t){return e.concat(t)}),[])).forEach((function(e){e.joins=a.filter((function(t){return t!==e&&(~t.points.indexOf(e.points[0])||~t.points.indexOf(e.points[1]))}))})),o.forEach((function(t){var i=e.wall.find((function(e){return e.id===t.line}));if(i)for(var o=i.p1,g=i.p2,a=n.find((function(e){return e.id===o})),A=n.find((function(e){return e.id===g})),r=0;r<C.length;r++){for(var I=C[r],s=0;s<I.length;s++)if(I[s].points[0]===a&&I[s].points[1]===A||I[s].points[1]===a&&I[s].points[0]===A){I[s].otherobjs.push(t);break}if(s!==I.length)break}})),C.forEach((function(e){return e.forEach((function(e){return e.points.forEach((function(e){return delete e.joins}))}))})),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;arguments.length>3&&arguments[3],arguments.length>4&&arguments[4],Object.keys(i).forEach((function(e){var o=i[e],g=i[e].reduce((function(e,t){return e.push(t.points[0]),e}),[]).map((function(e){return e.id})),n=t.find((function(e){var t=e.points;return t.length===g.length&&(t.reduce((function(e,t){return e+t}),0)===g.reduce((function(e,t){return e+t}),0)&&!t.find((function(e){return!~g.indexOf(e)})))}));n||(n={}),o.name=n.name||"未命名","未命名"===o.name&&"en"===I.a.lang&&(o.name="untitled"),void 0!==n.top&&null!==n.top&&(o.top=n.top),void 0!==n.bottom&&null!==n.bottom&&(o.bottom=n.bottom),o.showArea=void 0===n.showArea||!!n.showArea,o.showName=void 0===n.showName||!!n.showName,o.group=n.group,o.subgroup=n.subgroup}))}(n,e.room,C,e.top,e.bottom),C}function p(e){var t=Object.keys(e).reduce((function(t,i){return t.concat(e[i])}),[]);t.forEach((function(e){e.joins=function(e,t){return e.filter((function(e){return e!==t&&(~e.points.indexOf(t.points[0])||~e.points.indexOf(t.points[1]))}))}(t,e)}))}function f(e,t){return Object.keys(e).reduce((function(t,i){return t.concat(e[i])}),[]).filter((function(e){return e!==t&&~e.points.indexOf(t.points[0])&&~e.points.indexOf(t.points[1])}))}t.a=function(t){1,t.room||(t=Object(C.a)(t)),A.a.grentID("point",Math.max.apply(Math,g()(t.vertex.map((function(e){return e.id}))))||0,Number),A.a.grentID("line",Math.max.apply(Math,g()(t.wall.map((function(e){return e.id}))))||0,Number),t.column=t.column||[],t.door=t.door||[],t.window=t.window||[],t.houseInfo=t.houseInfo||{},t.vertex.forEach((function(e){return e.y*=-1}));var i=h(t);return i.forEach((function(e){e.id=A.a.grentID("face")})),e.faces=i,{faces:i,top:t.top,bottom:t.bottom,houseInfo:t.houseInfo}}}).call(this,i(180))},function(e,t,i){"use strict";i(106),i(107),i(59),i(53),i(29),i(60);var o=i(11),g=i.n(o);function n(e,t){var i=(e[0].x-t[0].x)*(e[1].y-t[0].y)-(e[0].y-t[0].y)*(e[1].x-t[0].x),o=(e[0].x-t[1].x)*(e[1].y-t[1].y)-(e[0].y-t[1].y)*(e[1].x-t[1].x);if(i*o>=0)return!1;var g=(t[0].x-e[0].x)*(t[1].y-e[0].y)-(t[0].y-e[0].y)*(t[1].x-e[0].x);return!(g*(g+i-o)>=0)}function a(e,t){var i,o,g=t.length,n=0,a=e;i=t[0];for(var A=1;A<=g;++A){if(a.x==i.x&&a.y==i.y)return!1;if(o=t[A%g],a.y<Math.min(i.y,o.y)||a.y>Math.max(i.y,o.y))i=o;else{if(a.y>Math.min(i.y,o.y)&&a.y<Math.max(i.y,o.y)){if(a.x<=Math.max(i.x,o.x)){if(i.y==o.y&&a.x>=Math.min(i.x,o.x))return!1;if(i.x==o.x){if(i.x==a.x)return!1;++n}else{var r=(a.y-i.y)*(o.x-i.x)/(o.y-i.y)+i.x;if(Math.abs(a.x-r)<2e-10)return!1;a.x<r&&++n}}}else if(a.y==o.y&&a.x<=o.x){var C=t[(A+1)%g];a.y>=Math.min(i.y,C.y)&&a.y<=Math.max(i.y,C.y)?++n:n+=2}i=o}}return n%2!=0}function A(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}var r={raLineVector:function(e){var t=r.lineVector(e);return 1===Math.abs(t.x)&&(t.y=0),1===Math.abs(t.y)&&(t.x=0),t},strictLineVector:function(e){var t=e.points[1].x-e.points[0].x,i=e.points[1].y-e.points[0].y,o=Math.abs(t/1),g=Math.abs(i/1),n=o>g?o:g;return{x:t/n,y:i/n}},lineVector:function(e){var t=r.strictLineVector(e);return Math.abs(t.x)<.01&&(t.x=0),Math.abs(t.y)<.01&&(t.y=0),t},vectorWidth:function(e,t){return Math.sqrt(Math.pow(t,2)/(Math.pow(e.x,2)+Math.pow(e.y,2)))},lineAngle:function(e){var t=e[0].y-e[1].y,i=e[0].x-e[1].x;if(0==i)return e[0].y>=e[1].y?90:270;var o=Math.atan(t/i),g=180*o/Math.PI;return o>0?e[0].x>e[1].x?g:g+180:e[0].x>e[1].x?g+360:g+180},lineDistance:function(e){return Math.sqrt(Math.pow(e[0].x-e[1].x,2)+Math.pow(e[0].y-e[1].y,2))},isInfinity:function(e){return e===1/0||e===-1/0},getSection:function(e){var t={minx:e[0].x,maxx:e[0].x,miny:e[0].y,maxy:e[0].y};return e.forEach((function(e){t.minx>e.x&&(t.minx=e.x),t.maxx<e.x&&(t.maxx=e.x),t.miny>e.y&&(t.miny=e.y),t.maxy<e.y&&(t.maxy=e.y)})),t},verticalLine:function(e){var t,i,o=[e.points[1].x-e.points[0].x,e.points[1].y-e.points[0].y];return 0!==o.length?(i=Math.sqrt(1/(o[1]*o[1]/(o[0]*o[0])+1)),t=Math.sqrt(1-i*i),Math.abs(t)<.1&&(t=0),Math.abs(i)<.1&&(i=0),[t,i]):[]},tranProp:function(e,t){var i=r.getSection(e),o=i.maxx-i.minx,g=i.maxy-i.miny;return{offset:{x:-(i.minx+o/2),y:-(i.miny+g/2)},prop:{x:o,y:g},range:t[1]-t[0]}},tranPoint:function(e,t){return{x:e.x+t.minx,y:e.y+t.miny}},pointLineDis:function(e,t){var i=0,o=e[1].x-e[0].x,g=t.x-e[0].x,n=t.x-e[1].x,a=e[1].y-e[0].y,A=t.y-e[0].y,r=t.y-e[1].y,C=o*g+a*A,I=o*o+a*a;if(C<=0)i=Math.sqrt(g*g+A*A);else if(C>=I)i=Math.sqrt(n*n+r*r);else{var s=C/I,l=e[0].x+o*s,c=e[0].y+a*s;i=Math.sqrt((t.x-l)*(t.x-l)+(c-t.y)*(c-t.y))}return i},isContainPoint:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3?arguments[3]:void 0,g=r.pointLineDis(t,e);g=g<.01?0:g;var n=i/2,a=0-n;return o&&console.log("---\x3e",g),g>=a&&g<=n},isLineIntersect:function(e,t){var i=e[1].y-e[0].y,o=e[0].x-e[1].x,g=i*e[0].x+o*e[0].y,n=t[1].y-t[0].y,a=t[0].x-t[1].x,A=n*t[0].x+a*t[0].y,r=i*a-n*o;if(0==r)return!1;var C=(a*g-o*A)/r,I=(i*A-n*g)/r;if((s(e[0].x,C,e[1].x)||s(e[0].y,I,e[1].y))&&(s(t[0].x,C,t[1].x)||s(t[0].y,I,t[1].y)))return!0;function s(e,t,i){return!(Math.abs(e-t)<1e-6||Math.abs(t-i)<1e-6)&&(e<=t&&t<=i||i<=t&&t<=e)}return!1},equalPoint:function(e,t){return Math.abs(e.x-t.x)<.001&&Math.abs(e.y-t.y)<.001},isFaceIntersect:function(e,t){for(var i=0;i<e.length;i++)for(var o=i+1===e.length?0:i+1,g=[e[i],e[o]],n=0;n<t.length;n++){o=n+1===t.length?0:n+1;var a=[t[n],t[o]],A=r.isLineIntersect(a,g),C=r.isLineIntersect(g,a);if(A&&C)return!0}},isFaceIntersect2:function(e,t){return function(e,t){for(var i=0,o=e.length;i<o;i++)for(var g=0,a=t.length;g<a;g++){if(n([e[i],e[i===o-1?0:i+1]],[t[g],t[g===a-1?0:g+1]]))return!0}return!1}(e,t)||function(e,t){var i,o=!1;return(i=e.some((function(e){return a(e,t)})))||(o=t.some((function(t){return a(t,e)}))),i||o}(e,t)},pointInside:function(e,t){for(var i=!1,o=e.x,g=e.y,n=0,a=t.length-1;n<t.length;a=n++){var A=t[n].x,r=t[n].y,C=t[a].x,I=t[a].y;r>g!=I>g&&o<(C-A)*(g-r)/(I-r)+A&&(i=!i)}return i},containPolygonBorder:function(e,t){for(var i=!1,o=0;o<t.length;o++){var g=[t[o],t[o+1===t.length?0:o+1]];if(r.pointLineDis(g,e)<.001){i=!0;break}}return i},faceContain:function(e,t){for(var i=!1,o=0;o<t.length;o++)if(!r.pointInside(t[o],e)&&!r.containPolygonBorder(t[o],e)){i=!0;break}return!i},getPointAngle:function(e,t){t||(t={x:0,y:0});var i=e.x-t.x,o=e.y-t.y,g=0;return 0==i?g=0==o?0:o>0?90:270:(g=180*Math.atan(o/i)/Math.PI,i<0?g+=180:i>0&&o<0&&(g+=360)),g>=360&&(g=0),g},pointInSector:function(e,t,i,o,g){var n=g.x-e.x,a=g.y-e.y;t>i&&(t-=360);var A=!1,C=r.getPointAngle({x:n,y:a});(i<360?C<=i&&C>=t&&(A=!0):(C<=(i-=360)||C>=t)&&(A=!0),A)&&(A=o>r.lineDistance([{x:n,y:a},{x:0,y:0}]));return A},faceCenter:function(e){for(var t=0,i=0,o=0;o<e.length;o++)t+=e[o].x,i+=e[o].y;return{x:t/=e.length,y:i/=e.length}},faceArea:function(e){var t=e.length;if(t.length<3)return 0;for(var i=e[0].y*(e[t-1].x-e[1].x),o=1;o<t;++o)i+=e[o].y*(e[o-1].x-e[(o+1)%t].x);return Math.abs(i/2)},isClockWise1:function(e){for(var t=e.length,i=0,o=t-1,g=0;g<t;o=g++)i+=e[o].x*e[g].y-e[g].x*e[o].y;return-.5*i>0},isClockWise:function(e){var t,i,o,g,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],a=0,A=n?-1:1;if(null==e||e.length<3)return!1;var r=e.length;for(t=0;t<r;t++)o=(t+2)%r,g=(e[i=(t+1)%r].x-e[t].x)*(e[o].y*A-e[i].y*A),(g-=(e[i].y*A-e[t].y*A)*(e[o].x-e[i].x))<0?a--:g>0&&a++;return a>0},getCenterOfGravityPoint:function(e){for(var t=0,i=0,o=0,g=1;g<=e.length;g++){var n=e[g%e.length].x,a=e[g%e.length].y,A=e[g-1].x,r=e[g-1].y,C=(n*r-a*A)/2;t+=C,i+=C*(n+A)/3,o+=C*(a+r)/3}return{x:i/=t,y:o/=t}},copyPoints:function(e){return e.map((function(e){return function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?A(Object(i),!0).forEach((function(t){g()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):A(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}({},e)}))}};t.a=r},function(e,t,i){"use strict";i(52),i(124);var o=i(54),g=i(2),n=i(16),a="zhiHouse"==g.a.applicationName?o.a.zhiBlue:o.a.lightGreen,A={createLine:function(e,t){var i=new THREE.BufferGeometry,o=new Float32Array(6);i.addAttribute("position",new THREE.BufferAttribute(o,3));o=i.attributes.position.array;for(var g=0;g<2;g++)o[3*g]=e[g].x,o[3*g+1]=e[g].y,o[3*g+2]=e[g].z;var n=new THREE[t.deshed?"LineDashedMaterial":"LineBasicMaterial"]({linewidth:t.width||1,color:t.color||a,transparent:!t.dontAlwaysSeen,depthTest:!!t.dontAlwaysSeen}),A=new THREE.Line(i,n);return A.renderOrder=t.renderOrder||4,A},moveLine:function(e,t){for(var i=e.geometry.attributes.position.array,o=0;o<2;o++)null!=t[o]&&(i[3*o]=t[o].x,i[3*o+1]=t[o].y,i[3*o+2]=t[o].z);e.geometry.attributes.position.needsUpdate=!0,e.geometry.computeBoundingSphere()},createBoldLine:function(e,t){var i=t&&t.cylinder,o=e[1].clone().sub(e[0]),a=function(){i.lastVector=o;var e=new THREE.Vector3(0,-1,0),t=e.clone().cross(o).normalize(),g=e.angleTo(o);i.quaternion.setFromAxisAngle(t,g)};if(t&&"init"==t.type){if((i=new THREE.Mesh).material=t.mat,0==o.length())return i;a()}if(0==o.length())return i;if("update"!=t.type){var A=e[0].clone().add(e[1]).multiplyScalar(.5);if(i.position.copy(A),i.lastVector&&"moveAndRotate"!=t.type?i.lastVector&&o.angleTo(i.lastVector)>0&&a():a(),edit&&!publicObjectSet.editor.mainDesign.editing)return i}var r=e[0].distanceTo(e[1]),C=t&&t.standPos||(g.a.ifFish?publicObjectSet.player.currentPano.position:publicObjectSet.player.position),I=isMobile?20:40,s=e[0].distanceTo(C),l=e[1].distanceTo(C),c=n.a.getFootPoint(C,e[0],e[1]);if(c.clone().sub(e[0]).dot(c.clone().sub(e[1]))>0)var u=[new THREE.Vector2(s/I,r/2),new THREE.Vector2(l/I,-r/2)];else{var d=c.distanceTo(C),h=c.distanceTo(e[0]);u=[new THREE.Vector2(s/I,r/2),new THREE.Vector2(d/I,r/2-h),new THREE.Vector2(l/I,-r/2)]}return i.geometry&&i.geometry.dispose(),i.geometry=new THREE.LatheBufferGeometry(u,4),i.renderOrder=2,i},updateBoldLine:function(e,t,i,o){this.createBoldLine(t,{type:i,cylinder:e,standPos:o})},createFatLineMat:function(e){var t=new THREE.LineMaterial({color:e.color||16777215,linewidth:e.width||5,resolution:new THREE.Vector2($("#player").width(),$("#player").height()),dashed:!1,transparent:!e.dontAlwaysSeen,depthTest:!!e.dontAlwaysSeen});return t.uniforms.opacity.value=null!=e.opacity?e.opacity:1,t},createFatLine:function(e,t){var i=new THREE.LineGeometry;i.setPositions(e),i.setColors(t.color||[1,1,1]);var o=t.material||this.createFatLineMat(t),g=new THREE.Fatline(i,o);return g.computeLineDistances(),g.scale.set(1,1,1),g.renderOrder=2,g},moveFatLine:function(e,t){e.geometry.setPositions(t)}};t.a=A},function(e,t,i){"use strict";i(226);var o=i(67),g=i(130),n=i(70),a=/./.toString,A=function(e){i(84)(RegExp.prototype,"toString",e,!0)};i(65)((function(){return"/a/b"!=a.call({source:"a",flags:"b"})}))?A((function(){var e=o(this);return"/".concat(e.source,"/","flags"in e?e.flags:!n&&e instanceof RegExp?g.call(e):void 0)})):"toString"!=a.name&&A((function(){return a.call(this)}))},function(e,t,i){"use strict";t.a={visibleFloor:1,ghostFloor:3,boundingSkybox:1,panoMarker:2,floorlogo:3,reticule:4,tagStem:5,tagDisc:6,pullMesh:6,ribbon:100}},function(e,t,i){"use strict";var o=i(4),g={get:function(e,t,i,o){$.ajax({url:e,type:"GET",crossDomain:!0,contentType:"application/json",async:!0,dataType:"json",data:{num:window.number},success:function(e){i(e)},error:function(e){o(e)}})},getChain:function(e,t,i,o){var g=$.Deferred();return $.ajax({url:e,type:"GET",crossDomain:!0,contentType:"application/json",async:!0,data:t,dataType:"json",success:function(e){i&&i(e),g.resolve(e)},error:function(e){o?o():g.reject("加载失败")}}),g.promise()},_xhr:function(e,t,i){var o=new XMLHttpRequest;if(i&&"withCredentials"in o)o.open("GET",t,i);else if("undefined"!=typeof XDomainRequest)(o=new XDomainRequest).open(e,t);else{if(i)throw"Browser does not support CORS!";o.open("GET",t)}return o}};g.loadImg=function(e,t){var i=$.Deferred(),n=new Image;function a(){o.a.warn("Retrying: "+e),this.loadImg(e,t-1).done(i.resolve.bind(i)).progress(i.notify.bind(i)).fail(i.reject.bind(i))}return null!=t||(t=3),n.onerror=function(){t>0?setTimeout(a.bind(g),1e3):i.reject()},n.onload=function(){i.resolve(n)},n.crossOrigin="anonymous",n.src=e,i},t.a=g},function(e,t,i){"use strict";i(159)("sub",(function(e){return function(){return e(this,"sub","","")}}))},function(e,t,i){"use strict";var o=i(120),g=i(209),n=i(113),a=i(117);e.exports=i(176)(Array,"Array",(function(e,t){this._t=a(e),this._i=0,this._k=t}),(function(){var e=this._t,t=this._k,i=this._i++;return!e||i>=e.length?(this._t=void 0,g(1)):g(0,"keys"==t?i:"values"==t?e[i]:[i,e[i]])}),"values"),n.Arguments=n.Array,o("keys"),o("values"),o("entries")},function(e,t,i){"use strict";var o={green:new THREE.Color("#00c8ae"),lightGreen:new THREE.Color("#09e1c0"),zhiBlue:new THREE.Color(0,.458,.862),newBlue:new THREE.Color(4967932),altBlue:new THREE.Color(47355),tagDefault:new THREE.Color(223357),classicBlue:new THREE.Color(53759),mpYellow:new THREE.Color(16502016),mpOrange:new THREE.Color(16428055),mpBlue:new THREE.Color(12096),mpLtGrey:new THREE.Color(13751252),mpDkGrey:new THREE.Color(10000019),mpRed:new THREE.Color(12525854),mpOrangeDesat:new THREE.Color(16764529),mpBlueDesat:new THREE.Color(4034734),mpRedDesat:new THREE.Color(14705505),white:new THREE.Color(16777215),black:new THREE.Color(0),_desat:function(e,t){var i=t||.3,o=(new THREE.Color).copy(e).getHSL({h:0,s:0,l:0});return(new THREE.Color).setHSL(o.h,o.s*(1-i),o.l)},_darken:function(e,t){var i=t||.2,o=e.getHSL({h:0,s:0,l:0});return(new THREE.Color).setHSL(o.h,o.s,o.l*(1-i))}};t.a=o},function(e,t){var i=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(e,t,i){var o=i(145)("wks"),g=i(111),n=i(55).Symbol,a="function"==typeof n;(e.exports=function(e){return o[e]||(o[e]=a&&n[e]||(a?n:g)("Symbol."+e))}).store=o},function(e,t,i){"use strict";var o=i(1),g=i(51),n=i(0),a=i(7),A=i(4),r={data:{},load:function(e,t,i,C){n.a.rebuild&&(r.data=[],n.a.rebuild=!1);var I=r.data[e];return I?(t&&setTimeout((function(){t(I)}),1),I):(I=new THREE.Texture,C&&C.antialias&&!a.a.isMobile()?(I.minFilter=THREE.LinearMipMapLinearFilter,I.magFilter=THREE.LinearMipMapLinearFilter):(I.minFilter=THREE.LinearFilter,I.magFilter=THREE.LinearFilter),o.a.minimalMemoryMode&&(I.generateMipmaps=!1),I.sourceFile=e,r.data[e]=I,g.a.loadImg(e).then((function(i){A.a.info("加载贴图成功:"+e),I.image=i,I.needsUpdate=!0,t&&t(I)})).fail((function(t){A.a.error("加载贴图失败:"+e),console.error(t)})),I)},loadBase64:function(e,t){t=t||"png";var i=new THREE.Texture;return i.image=document.createElement("img"),i.image.setAttribute("src","data:image/"+t+";base64,"+e),o.a.minimalMemoryMode&&(i.minFilter=THREE.LinearFilter,i.magFilter=THREE.LinearFilter,i.generateMipmaps=!1),i.needsUpdate=!0,i},isLoaded:function(e){return!!r.data[e]}};t.a=r},function(e,t,i){var o=i(55),g=i(110),n=i(81),a=i(84),A=i(94),r=function(e,t,i){var C,I,s,l,c=e&r.F,u=e&r.G,d=e&r.S,h=e&r.P,p=e&r.B,f=u?o:d?o[t]||(o[t]={}):(o[t]||{}).prototype,m=u?g:g[t]||(g[t]={}),v=m.prototype||(m.prototype={});for(C in u&&(i=t),i)s=((I=!c&&f&&void 0!==f[C])?f:i)[C],l=p&&I?A(s,o):h&&"function"==typeof s?A(Function.call,s):s,f&&a(f,C,s,e&r.U),m[C]!=s&&n(m,C,l),h&&v[C]!=s&&(v[C]=s)};o.core=g,r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,e.exports=r},function(e,t,i){for(var o=i(53),g=i(128),n=i(84),a=i(55),A=i(81),r=i(113),C=i(56),I=C("iterator"),s=C("toStringTag"),l=r.Array,c={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},u=g(c),d=0;d<u.length;d++){var h,p=u[d],f=c[p],m=a[p],v=m&&m.prototype;if(v&&(v[I]||A(v,I,l),v[s]||A(v,s,p),r[p]=l,f))for(h in o)v[h]||n(v,h,o[h],!0)}},function(e,t,i){var o=i(85),g=i(128);i(190)("keys",(function(){return function(e){return g(o(e))}}))},function(e,t,i){"use strict";var o=i(7),g=i(4),n=navigator.userAgent||navigator.vendor||window.opera;var a=o.a.urlHasValue("android");t.a=function(e){g.a.info("sendToApp "),g.a.info(e),function(e){try{if(/iPad|iPhone|iPod/.test(n)&&!window.MSStream)window.webkit.messageHandlers.inappbrowserbridge.postMessage(e);else if(/android/i.test(n))if(a)switch(e){case"Back":AndroidNative.Back();break;case"Share":AndroidNative.Share()}else UnityInAppBrowser.sendMessageFromJS(e)}catch(e){g.a.info(e)}}(e)}},function(e,t,i){"use strict";t.a={NONE:0,MIDDLE:1,END:2,BEGINNING:3,FADEIN:4}},function(e,t,i){"use strict";var o=i(155),g=i(67),n=i(156),a=i(157),A=i(74),r=i(129),C=i(158),I=i(65),s=Math.min,l=[].push,c="length",u=!I((function(){RegExp(4294967295,"y")}));i(131)("split",2,(function(e,t,i,I){var d;return d="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1)[c]||2!="ab".split(/(?:ab)*/)[c]||4!=".".split(/(.?)(.?)/)[c]||".".split(/()()/)[c]>1||"".split(/.?/)[c]?function(e,t){var g=String(this);if(void 0===e&&0===t)return[];if(!o(e))return i.call(g,e,t);for(var n,a,A,r=[],I=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),s=0,u=void 0===t?4294967295:t>>>0,d=new RegExp(e.source,I+"g");(n=C.call(d,g))&&!((a=d.lastIndex)>s&&(r.push(g.slice(s,n.index)),n[c]>1&&n.index<g[c]&&l.apply(r,n.slice(1)),A=n[0][c],s=a,r[c]>=u));)d.lastIndex===n.index&&d.lastIndex++;return s===g[c]?!A&&d.test("")||r.push(""):r.push(g.slice(s)),r[c]>u?r.slice(0,u):r}:"0".split(void 0,0)[c]?function(e,t){return void 0===e&&0===t?[]:i.call(this,e,t)}:i,[function(i,o){var g=e(this),n=null==i?void 0:i[t];return void 0!==n?n.call(i,g,o):d.call(String(g),i,o)},function(e,t){var o=I(d,e,this,t,d!==i);if(o.done)return o.value;var C=g(e),l=String(this),c=n(C,RegExp),h=C.unicode,p=(C.ignoreCase?"i":"")+(C.multiline?"m":"")+(C.unicode?"u":"")+(u?"y":"g"),f=new c(u?C:"^(?:"+C.source+")",p),m=void 0===t?4294967295:t>>>0;if(0===m)return[];if(0===l.length)return null===r(f,l)?[l]:[];for(var v=0,y=0,b=[];y<l.length;){f.lastIndex=u?y:0;var w,x=r(f,u?l:l.slice(y));if(null===x||(w=s(A(f.lastIndex+(u?0:y)),l.length))===v)y=a(l,y,h);else{if(b.push(l.slice(v,y)),b.length===m)return b;for(var E=1;E<=x.length-1;E++)if(b.push(x[E]),b.length===m)return b;y=v=w}}return b.push(l.slice(v)),b}]}))},function(e,t,i){"use strict";i(90);var o=Object.freeze({None:0,Queued:1,ForceQueued:2,Downloading:3,Downloaded:4,DownloadFailed:5});t.a=o},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,i){"use strict";var o=i(11),g=i.n(o),n=(i(63),i(23)),a=i.n(n),A=(i(100),i(29),i(95),i(40)),r=i.n(A),C=(i(125),i(14)),I=i(42),s=new Image,l=new Image;s.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAA57mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgICAgICAgICAgeG1sbnM6dGl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wvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTAwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEwMDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+GZD5AAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAGxklEQVR42uxdTWhVRxT+ThKTkrh4gQQRJCgGN49kUxqCuCq4cWFAhUZCRHFRoUR0ZcSdXRjcKGbVjUhLwJJWSRYuFApCSImlKEYXSpQoKJQKzaaiVfm6yFGCmZn3cnPffffnfBACd+beOed8b+acO/fMDJADkDxG8lgedGlCPvBFTvRAAwxGiMEIMUIMRogRknBoO0uyMcJ9jSRnjZDahOjdEe7rzlJ435CiHtBN8lagyjyAngiP7tF7fe3eItlthKzGEwDbSW5NihBta7u2bYSshIgQwASAIU+V+wB6Izy6V+91YQjAhLZdTJCcJtniKdtB8pGnrJPkgqfsBMkTnrIFkp2eskckd3jKWkhOF6GHvAJw0tNLHgNYItnnKPsbQCvJtjWQ3wagVe/9vKwPwJK26cJJlTX3hJwGMEJys6f8RwDDnrKHAMpraKus97gwrG25iNwMYERlzTchIvIXgEsAznmq/AxgP8kNMTh2p0PXZx/Qtlw4B+CSypp9QkiWSA4GqlwAsNMzNL0C8AeAPR7H7iLk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GltZW5zaW9uPjEwMDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+hSv1CAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VG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ANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAt1BMVEVHcEz///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+6urrFxcXR0dHY2NjX19fDw8P////Hx8fg4ODj4+PQ0NDCwsLGxsb///////////////+Zk85TAAAAPHRSTlMAAgQiHSZ5yO+B2fPfw70siHVCZ337ODSO0YM7rJLjzVINSDDpcBkUXfljCAQ4lcV6BgpEkKlgQ0CZ3FCcXUtcAAAAAWJLR0QB/wIt3gAAAAd0SU1FB+MFHgsMLLYaoF4AAADtSURBVBjTbVCJcoIwFNxQuSIWEYMoUOSQo/S0p+37/+9qIraNnb7JZDK7m012gfNhBvsXuZjoiNpNyyZHR5jp8qk3m17+avw5Jx4swqWITsgq9sR6aWKySVL7eDfKrkQeKPtt7BdUAlVcC3vXKLLdWQ0yT55IdO3oa246hqK/hoGwd4GB3dze3T88MgTjfyKR74Gn55fXt3fAsaRQrn0uqsINB2XR9cVRKYkDpQmDiviRwRjTAJwOkmUoqcF3IcyL13mLAXZ6Eqqpy4CcBVbk/wjBeC0il7p0Bq1NmyqZkSjRwaaFISN9/i0d2hNf1CoSHV2Lm8sAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDUtMzBUMTE6MTI6NDQrMDg6MDCJUf45AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA1LTMwVDExOjEyOjQ0KzA4OjAw+AxGhQAAAABJRU5ErkJggg==";var u=new Image;u.src="data:img/jpg;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAYUlEQVQokY2NwRWAIAzFYp8TOVR3gp1gJTyVBwW0HPtJcqlqBh5irwiQgp8BkgAFqBE7UMXIiB3AgL9K32U4flX6NgKnynQXN + 4q080DvrJUPeCNS / HeAGZt3n4CzNx2wwvE6hq5Sy / f3gAAAABJRU5ErkJggg ==",s._load_complete=l._load_complete=c._load_complete=u._load_complete=!0;var d={scale:s,guide:l,feiji:c,jiantou:u},h=g()({arc:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;e.beginPath(),e.fillStyle="rgba(255,255,255,0.6)",e.arc(t.x,t.y,i,0,2*Math.PI,!0),e.closePath(),e.fill()},pointSelect:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i/2,g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"rgba(245, 255, 255, 0.3)",n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"rgba(245, 255, 0, 0.7)";e.beginPath(),e.fillStyle=g,e.arc(t.x,t.y,i,0,2*Math.PI),e.fill(),e.closePath(),e.beginPath(),e.fillStyle=n,e.arc(t.x,t.y,i-o,0,2*Math.PI),e.fill(),e.closePath()},pointDirection:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:14,g=i,n=i+o,a=i+.57*o,A=o/2,r=[[0,1],[1,2],[1,3]],C=[[{x:t.x+g,y:t.y},{x:t.x+n,y:t.y},{x:t.x+a,y:t.y-A},{x:t.x+a,y:t.y+A}],[{x:t.x-g,y:t.y},{x:t.x-n,y:t.y},{x:t.x-a,y:t.y-A},{x:t.x-a,y:t.y+A}],[{x:t.x,y:t.y+g},{x:t.x,y:t.y+n},{x:t.x-A,y:t.y+a},{x:t.x+A,y:t.y+a}],[{x:t.x,y:t.y-g},{x:t.x,y:t.y-n},{x:t.x-A,y:t.y-a},{x:t.x+A,y:t.y-a}]];h.pointSelect(e,t,.57*o),C.forEach((function(t){e.strokeStyle="#fff",e.lineWidth=6,e.lineCap="round",r.forEach((function(i){e.beginPath(),e.moveTo(t[i[0]].x,t[i[0]].y),e.lineTo(t[i[1]].x,t[i[1]].y),e.stroke(),e.closePath()})),e.strokeStyle="#01c7ae",e.lineWidth=2,r.forEach((function(i){e.beginPath(),e.moveTo(t[i[0]].x,t[i[0]].y),e.lineTo(t[i[1]].x,t[i[1]].y),e.stroke(),e.closePath()}))}))},lineVertial:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:6,g=C.a.lineVector({points:t}),n=C.a.verticalLine({points:t});n={x:n[0],y:n[1]};var a={x:(t[0].x+t[1].x)/2+n.x*i,y:(t[0].y+t[1].y)/2+n.y*i},A=C.a.vectorWidth(g,o),r=C.a.vectorWidth(n,o),I=[{x:a.x+g.x*A,y:a.y+g.y*A},{x:a.x-g.x*A,y:a.y-g.y*A},{x:a.x+n.x*r,y:a.y+n.y*r}];e.beginPath(),e.lineWidth=3,e.strokeStyle="#fff",e.fillStyle="#00c7b0",e.moveTo(I[0].x,I[0].y),e.lineTo(I[1].x,I[1].y),e.lineTo(I[2].x,I[2].y),e.closePath(),e.stroke(),e.fill(),I=[{x:(a={x:(t[0].x+t[1].x)/2-n.x*i,y:(t[0].y+t[1].y)/2-n.y*i}).x+g.x*A,y:a.y+g.y*A},{x:a.x-g.x*A,y:a.y-g.y*A},{x:a.x-n.x*r,y:a.y-n.y*r}],e.beginPath(),e.moveTo(I[0].x,I[0].y),e.lineTo(I[1].x,I[1].y),e.lineTo(I[2].x,I[2].y),e.closePath(),e.stroke(),e.fill()},lineSelect:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#fff",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;e.beginPath(),e.strokeStyle=i,e.lineWidth=o,e.lineCap="round",e.moveTo(t[0].x,t[0].y),e.lineTo(t[1].x,t[1].y),e.stroke(),e.closePath()},face:function(e,t){for(var i,o=0;i=t[o];o++)0===o&&e.moveTo(i[0].x,i[0].y),e.lineTo(i[1].x,i[1].y)},faceLine:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#fff";e.strokeStyle=o,e.lineWidth=i,e.lineCap="square",e.beginPath(),h.face(e,t),e.closePath(),e.stroke()},faceImage:function(e,t,i){return r()(a.a.mark((function o(){var g;return a.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if("Array"!==I.a.getType(t)&&(t=[t]),d[i.src]&&d[i.src]._load_complete){o.next=7;break}return(g=new Image).src=i.src,d[i.src]=g,o.next=7,new Promise((function(e,t){g.onload=e,g.onerror=t,d[i.src]._load_complete=!0}));case 7:e.beginPath(),t&&t.length>0&&(t.forEach((function(t){return h.face(e,t)})),e.clip()),e.drawImage(d[i.src],i.p4.x,i.p4.y,C.a.lineDistance([i.p1,i.p2]),C.a.lineDistance([i.p1,i.p4])),e.closePath();case 11:case"end":return o.stop()}}),o)})))()},lineBoth:function(e,t,i){var o=C.a.verticalLine({points:t});o={x:o[0],y:o[1]};var g=C.a.vectorWidth(o,i/2),n=o.x*g,a=o.y*g,A=[{x:t[0].x+n,y:t[0].y+a},{x:t[0].x-n,y:t[0].y-a}],r=[{x:t[1].x+n,y:t[1].y+a},{x:t[1].x-n,y:t[1].y-a}];h.lineSelect(e,A),h.lineSelect(e,t),h.lineSelect(e,r)},compass:function(e,t,i,o,g){var n=t.x,a=t.y,A=i/2,r=i/2;e.translate(n+A,a+r),e.rotate(o),e.drawImage(d.scale,-A,-r,i,i),e.drawImage(d.guide,-A,-r,i,i),e.font=g+"px '字体','字体','微软雅黑','宋体'",e.textAlign="center",e.textBaseline="middle",e.translate(0,-r-5),e.rotate(-o),e.fillText("N",0,0),e.rotate(o),e.translate(0,r+5),e.translate(0,r+5),e.rotate(-o),e.fillText("S",0,0),e.rotate(o),e.translate(0,-r-5),e.translate(-A-5,0),e.rotate(-o),e.fillText("W",0,0),e.rotate(o),e.translate(r+5,0),e.translate(r+5,0),e.rotate(-o),e.fillText("E",0,0),e.rotate(o),e.translate(-r-5,0),e.rotate(-o),e.translate(-(n+A),-(a+r))},doorSector:function(e,t,i,o,g,n){e.strokeStyle="rgba(0,200,175,1)",e.lineWidth=6,e.strokeStyle="#181c1d",e.beginPath(),e.moveTo(t[0].x,t[0].y),e.lineTo(t[1].x,t[1].y),e.stroke(),e.closePath(),e.lineWidth=1,e.strokeStyle="#fff",e.beginPath(),e.moveTo(t[0].x,t[0].y),e.arc(t[0].x,t[0].y,g,i,o),e.lineTo(t[0].x,t[0].y),e.stroke(),n&&(e.fillStyle=n,e.fill())},fillTextVertical:function(e,t,i,o){var g=t.split(""),n=g.map((function(t){var i=e.measureText(t).width+1;return i<4?4:i})),a=e.textAlign,A=e.textBaseline;"left"==a?i+=Math.max.apply(null,n)/2:"right"==a?i-=Math.max.apply(null,n)/2:"center"==a&&(o-=n.reduce((function(e,t){return e+t}),0)/2),"bottom"==A||"alphabetic"==A||"ideographic"==A?o-=n[0]/2:"top"!=A&&"hanging"!=A||(o+=n[0]/2),e.textAlign="center",e.textBaseline="middle",g.forEach((function(t,g){var a=n[g];e.translate(i,o),e.rotate(90*Math.PI/180),e.translate(-i,-o),e.fillText(t,i,o),e.translate(i,o),e.rotate(-90*Math.PI/180),e.translate(-i,-o);a=n[g];o+=a})),e.textAlign=a,e.textBaseline=A},drawBubble:function(e,t,i,o){t.x-=.18*i,t.y-=1.1*o;var g=t.x,n=t.y;e.beginPath(),e.moveTo(g,n+.35*o),e.quadraticCurveTo(g+.04*i,n+.02*o,g+.5*i,n),e.quadraticCurveTo(g+.96*i,n+.02*o,g+i,n+.35*o),e.quadraticCurveTo(g+i,n+.7*o,g+.58*i,n+.72*o),e.quadraticCurveTo(g+.5*i,n+.9*o,g+.2*i,n+o),e.quadraticCurveTo(g+.38*i,n+.8*o,g+.38*i,n+.72*o),e.quadraticCurveTo(g,n+.7*o,g,n+.35*o),e.stroke()}},"drawBubble",(function(e,t,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:30,g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:14,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:n;e.beginPath(),e.lineJoin="round",e.strokeStyle="rgba(102,102,102,0.8)",e.lineWidth=o,e.strokeRect(t.x-i/2+o/2,t.y-o-3/n,i-o,0),e.stroke();var a=g,A={x:t.x-a/6/n,y:t.y-a-6/n};h.faceImage(e,[],{p4:A,p1:{x:A.x,y:A.y+a},p2:{x:A.x+a,y:A.y+a},src:"jiantou"})}));t.a=h},function(e,t,i){var o=i(68);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,i){var o=i(58),g=i(123),n=i(103),a=i(67),A=i(68),r=i(65),C=i(235),I=(i(55).Reflect||{}).construct,s=r((function(){function e(){}return!(I((function(){}),[],e)instanceof e)})),l=!r((function(){I((function(){}))}));o(o.S+o.F*(s||l),"Reflect",{construct:function(e,t){n(e),a(t);var i=arguments.length<3?e:n(arguments[2]);if(l&&!s)return I(e,t,i);if(e==i){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var o=[null];return o.push.apply(o,t),new(C.apply(e,o))}var r=i.prototype,c=g(A(r)?r:Object.prototype),u=Function.apply.call(e,c,t);return A(u)?u:c}})},function(e,t,i){e.exports=!i(65)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,i){"use strict";t.a={ModelAdded:"model-added",ActiveModelChanged:"active-model-changed"}},function(e,t,i){"use strict";var o=i(67),g=i(85),n=i(74),a=i(97),A=i(157),r=i(129),C=Math.max,I=Math.min,s=Math.floor,l=/\$([$&`']|\d\d?|<[^>]*>)/g,c=/\$([$&`']|\d\d?)/g;i(131)("replace",2,(function(e,t,i,u){return[function(o,g){var n=e(this),a=null==o?void 0:o[t];return void 0!==a?a.call(o,n,g):i.call(String(n),o,g)},function(e,t){var g=u(i,e,this,t);if(g.done)return g.value;var s=o(e),l=String(this),c="function"==typeof t;c||(t=String(t));var h=s.global;if(h){var p=s.unicode;s.lastIndex=0}for(var f=[];;){var m=r(s,l);if(null===m)break;if(f.push(m),!h)break;""===String(m[0])&&(s.lastIndex=A(l,n(s.lastIndex),p))}for(var v,y="",b=0,w=0;w<f.length;w++){m=f[w];for(var x=String(m[0]),E=C(I(a(m.index),l.length),0),P=[],T=1;T<m.length;T++)P.push(void 0===(v=m[T])?v:String(v));var D=m.groups;if(c){var M=[x].concat(P,E,l);void 0!==D&&M.push(D);var S=String(t.apply(void 0,M))}else S=d(x,l,E,P,D,t);E>=b&&(y+=l.slice(b,E)+S,b=E+x.length)}return y+l.slice(b)}];function d(e,t,o,n,a,A){var r=o+e.length,C=n.length,I=c;return void 0!==a&&(a=g(a),I=l),i.call(A,I,(function(i,g){var A;switch(g.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,o);case"'":return t.slice(r);case"<":A=a[g.slice(1,-1)];break;default:var I=+g;if(0===I)return i;if(I>C){var l=s(I/10);return 0===l?i:l<=C?void 0===n[l-1]?g.charAt(1):n[l-1]+g.charAt(1):i}A=n[I-1]}return void 0===A?"":A}))}}))},function(e,t,i){var o=i(67),g=i(183),n=i(127),a=Object.defineProperty;t.f=i(70)?Object.defineProperty:function(e,t,i){if(o(e),t=n(t,!0),o(i),g)try{return a(e,t,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(e[t]=i.value),e}},function(e,t,i){var o=i(97),g=Math.min;e.exports=function(e){return e>0?g(o(e),9007199254740991):0}},function(e,t,i){"use strict";var o=i(58),g=i(103),n=i(85),a=i(65),A=[].sort,r=[1,2,3];o(o.P+o.F*(a((function(){r.sort(void 0)}))||!a((function(){r.sort(null)}))||!i(220)(A)),"Array",{sort:function(e){return void 0===e?A.call(n(this)):A.call(n(this),g(e))}})},function(e,t,i){"use strict";i(39);var o=i(10),g=i(21),n=i(2);function a(e,t){if(e=e||{},!publicObjectSet.player.model.supportsTiles||e.not_Cube){var i=e.defines||{};i.Not_Cube="",e.defines=i}t=t||(n.a.ifFish?"fishModel":"model");THREE.RawShaderMaterial.call(this,o.default.extendObject({fragmentShader:g.a[t].fragmentShader,vertexShader:g.a[t].vertexShader,uniforms:THREE.UniformsUtils.clone(g.a[t].uniforms),name:"ModelTextureMaterial"},e))}a.prototype=Object.create(THREE.RawShaderMaterial.prototype),a.prototype.constructor=a,a.prototype.setProjectedPanos=function(e,t,i,o,g,a){"fishSphereMat"==this.name?(t.ensureSkyboxReadyForRender(),this.uniforms.pano1Map.value=t.getSkyboxTexture(),this.uniforms.pano1Matrix.value.copy(t.skyboxMesh.matrixWorld)):(i&&(this.uniforms.progress.value=0),e.ensureSkyboxReadyForRender(),this.uniforms.pano0Map.value=e.getSkyboxTexture(),this.uniforms.pano0Position.value.copy(e.position),this.uniforms.pano0Matrix.value.copy(e.skyboxMesh.matrixWorld),t.ensureSkyboxReadyForRender(),this.uniforms.pano1Map.value=t.getSkyboxTexture(),this.uniforms.pano1Position.value.copy(t.position),this.uniforms.pano1Matrix.value.copy(t.skyboxMesh.matrixWorld)),n.a.ifFish&&(o&&this.uniforms.cameraPos0&&this.uniforms.cameraPos0.value.copy(o),g&&this.uniforms.cameraPos1&&this.uniforms.cameraPos1.value.copy(g),a&&this.uniforms.radius&&(this.uniforms.radius.value=a))},a.prototype.setCameraEndPos=function(e,t){this.uniforms.cameraPos1&&this.uniforms.cameraPos1.value.copy(e),this.uniforms.cameraPos0&&this.uniforms.cameraPos0.value.copy(t)},t.a=a},function(e,t,i){"use strict";t.a=function(e){this.message=e}},function(e,t,i){"use strict";t.a={PanoRenderComplete:"panorama.render.complete",TileRenderFailure:"panorama.tile.render.failed",TileRenderSuccess:"panorama.tile.render.success",TileUploadAttempted:"panorama.tile.upload.attempted",UploadAttemptedForAllTiles:"panorama.upload.attempted.all.tiles",ZoomLevelRenderStarted:"panorama.zoom.render.started"}},function(e,t,i){"use strict";i(39),i(2),i(7);var o=i(0),g=i(13),n=(i(6),i(4)),a=i(10),A=i(3);t.a=function e(t,i,r,C,I,s){window.appLoginToken||(window.appLoginToken=localStorage.getItem("token")||"");var l=$.Deferred(),c=function(e,o,g){l.resolve(),console.log("%c"+t+": uploadFile成功。","color:#78f"),C&&C(i.type,g)},u=function(e){I&&I(),console.log("%c"+t+": uploadFile失败。status"+h.status+(null!=e?e:""),"color:#78f"),l.reject()},d={url:t,group:{3001:u.bind(this,"缺少必要参数"),3004:function(g){if(window.ifTest)return console.log("没有登录 测试 假设成功"),void c();window.appLoginToken="",o.a.gui.showAskBox("",A.a.get("您没有登录,请于主页登录后再编辑"),{btns:[{text:A.a.get("去登录"),type:"submit",wait:!0,fuc:function(){window.open(isMobile?CONSTANT.Mobile_Login:"index.html","blank")}},{text:A.a.get("登录完毕,继续"),type:"cancel",fuc:function(){s&&s.resaveFuc?s.resaveFuc():e(t,i,r,C,I,s)}}],donClose:!0})},3017:u.bind(this,A.a.get("上传文件为空")),5005:u.bind(this,A.a.get("场景为空")),5012:u.bind(this,A.a.get("数据不正常")),5014:u.bind(this,A.a.get("无权操作该场景")),"-1":u.bind(this,A.a.get("异常错误")),0:function(e,t,i){c(0,0,i)}},other:function(e){s&&s.checkCallback?s.checkCallback(e)?c():u("得到的返回值不对:"+e):e==i.name?c():u("得到的文件名不对:"+e)},error:u.bind(this,"error")};if(i.use7niu)return window.uploadChange(i.file),window.upload7niuError=function(e){saveBeDone?C&&C(e,"saveBeDoneNOlink"):I&&I(e)},void(window.upload7niuDone=function(e,t){C&&C(e,t)});var h=new XMLHttpRequest;h.open("post",t,!0),h.setRequestHeader("token",window.appLoginToken);var p=new FormData;if(i.needTransfer){var f=a.default.dataURLtoBlob(i.file);p.append("file",f,i.name)}else if(i.isBlob)n.a.info("上传的文件:"+i.name),p.append("file",i.file,i.name);else{var m=i.file;p.append("file",m,i.name)}for(var v in r)p.append(v,r[v]);h.onreadystatechange=function(){if(4==h.readyState){var e="";try{e=JSON.parse(h.responseText)}catch(t){e=h.responseText}h.status>=200&&h.status<300||304==h.status?g.a.dealAjax({dataDeal:d,data:e.code,response:e}):g.a.dealAjax({dataDeal:d,arguments:[e],type:"error"}),s&&s.otherFuc&&s.otherFuc()}},h.send(p)}},function(e,t,i){var o=i(297);function g(t,i,n){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=g=Reflect.get:e.exports=g=function(e,t,i){var g=o(e,t);if(g){var n=Object.getOwnPropertyDescriptor(g,t);return n.get?n.get.call(i):n.value}},g(t,i,n||t)}e.exports=g},function(e,t,i){var o=i(73),g=i(115);e.exports=i(70)?function(e,t,i){return o.f(e,t,g(1,i))}:function(e,t,i){return e[t]=i,e}},function(e,t,i){"use strict";i(63);var o=i(23),g=i.n(o),n=(i(100),i(29),i(95),i(40)),a=i.n(n),A=(i(125),i(47)),r=i(99),C=new Image,I=new Image;C.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAA57mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4b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vcCBDQyAyMDE3IChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTAwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEwMDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+GZD5AAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAGxklEQVR42uxdTWhVRxT+ThKTkrh4gQQRJCgGN49kUxqCuCq4cWFAhUZCRHFRoUR0ZcSdXRjcKGbVjUhLwJJWSRYuFApCSImlKEYXSpQoKJQKzaaiVfm6yFGCmZn3cnPffffnfBACd+beOed8b+acO/fMDJADkDxG8lgedGlCPvBFTvRAAwxGiMEIMUIMRogRknBoO0uyMcJ9jSRnjZDahOjdEe7rzlJ435CiHtBN8lagyjyAngiP7tF7fe3eItlthKzGEwDbSW5NihBta7u2bY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ZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTAwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEwMDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+hSv1CAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAADBUlEQVR42uycO2/UQBRGz10tCggkBAqyiKCCCkRPBw00IChAYgON/wb/xg1hFwpooEsFRSToEFSk42UeQilQhII8FDFSErxmH17bd/mOFMnZ9YwyOfY39ng8FkJAtIeO/gUSIiREQoSESIiQEAkREiIhQkKEhEiIkBAJERIiIUJCJERIiJAQCRES4p2uhz/SzMp3SNLzAMTRWtluHuagdefkwLoFGLDmvSHm4agpPUOStAO8y387QRxlns+QeehDLgDH85+L6tTbEVdF24qs2iMrSfcBKXAk/+Q7EBFHW4qsZri0Qwb59mVFVnMsF3zWU2Q1EVlJegD4DBza880P4BhxtKnIqpcrBTIADgJXFVntiCv3seUzspL0MPAJ2D+kyM/8amtDkVUP10pkACwA1xVZ9XFnhH1uK7LqiKwkXQQ+8u+B0V/AEnH0RZE1W24y2ih1F7ihyGr26sp9bPmKrCRdYnuo3UYsGoCTxNF7Rdbszg4bx6W3exJvQiYZXnclxE9kJekp4O2EVZwmjtYVWc115m47d09Ceg2VlZC/SNJzwNkpajiT1yEhLYgrV7HlYl7W0YXOcjZlh9wx6wF3JaQCvvUWswqqyTy01UtkDSqo44GEVMf9CupYkZDqbgxfAa+nqOJNXoeEVEi/obL1Hnxehk5CCFMNnZiZhk4qlrIOvJig6Mu8rO7UW3K11ffUQFcPqEIIEz2gMjM9oJqRmA/AszGKPP8jQ5HVjnuSFW+NczcNKIQw1jQgM9M0oBnL+QqsjrDr6k4ZiqzZcm8e48plZOXRM9JkazPTZOuaBG0AT0t2ebJXhiKr2autvtdGuX2lLYRQ+kqbmemVtpolbQKPC756VCRDkdVcbPU9N8j1wgEhhMKFA8xMCwc0JGqL3c/KHw6Tociqj8GQbUVW3ZGVx9Cu5ZnMzPXyTO4XMDOzLIQw2N60zHt75mVFucGctMNHZP1PaFVSCRESIiFCQiRESIiECAmRECEhQkIkREiIhAgJkRAhIRIiJERIiIQICXHP7wEAHiDp1oKzlp8AAAAASUVORK5CYII=";var s=new Image;s.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAt1BMVEVHcEz///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+6urrFxcXR0dHY2NjX19fDw8P////Hx8fg4ODj4+PQ0NDCwsLGxsb///////////////+Zk85TAAAAPHRSTlMAAgQiHSZ5yO+B2fPfw70siHVCZ337ODSO0YM7rJLjzVINSDDpcBkUXfljCAQ4lcV6BgpEkKlgQ0CZ3FCcXUtcAAAAAWJLR0QB/wIt3gAAAAd0SU1FB+MFHgsMLLYaoF4AAADtSURBVBjTbVCJcoIwFNxQuSIWEYMoUOSQo/S0p+37/+9qIraNnb7JZDK7m012gfNhBvsXuZjoiNpNyyZHR5jp8qk3m17+avw5Jx4swqWITsgq9sR6aWKySVL7eDfKrkQeKPtt7BdUAlVcC3vXKLLdWQ0yT55IdO3oa246hqK/hoGwd4GB3dze3T88MgTjfyKR74Gn55fXt3fAsaRQrn0uqsINB2XR9cVRKYkDpQmDiviRwRjTAJwOkmUoqcF3IcyL13mLAXZ6Eqqpy4CcBVbk/wjBeC0il7p0Bq1NmyqZkSjRwaaFISN9/i0d2hNf1CoSHV2Lm8sAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDUtMzBUMTE6MTI6NDQrMDg6MDCJUf45AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA1LTMwVDExOjEyOjQ0KzA4OjAw+AxGhQAAAABJRU5ErkJggg==",C._load_complete=I._load_complete=s._load_complete=!0;var l={scale:C,guide:I,feiji:s},c={arc:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;e.beginPath(),e.fillStyle="rgba(255,255,255,0.6)",e.arc(t.x,t.y,i,0,2*Math.PI,!0),e.closePath(),e.fill()},pointSelect:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i/2,g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"rgba(245, 255, 255, 0.3)",n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"rgba(245, 255, 0, 0.7)";e.beginPath(),e.fillStyle=g,e.arc(t.x,t.y,i,0,2*Math.PI),e.fill(),e.closePath(),e.beginPath(),e.fillStyle=n,e.arc(t.x,t.y,i-o,0,2*Math.PI),e.fill(),e.closePath()},pointDirection:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:12,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:14,g=i,n=i+o,a=i+.57*o,A=o/2,r=[[0,1],[1,2],[1,3]],C=[[{x:t.x+g,y:t.y},{x:t.x+n,y:t.y},{x:t.x+a,y:t.y-A},{x:t.x+a,y:t.y+A}],[{x:t.x-g,y:t.y},{x:t.x-n,y:t.y},{x:t.x-a,y:t.y-A},{x:t.x-a,y:t.y+A}],[{x:t.x,y:t.y+g},{x:t.x,y:t.y+n},{x:t.x-A,y:t.y+a},{x:t.x+A,y:t.y+a}],[{x:t.x,y:t.y-g},{x:t.x,y:t.y-n},{x:t.x-A,y:t.y-a},{x:t.x+A,y:t.y-a}]];c.pointSelect(e,t,.57*o),C.forEach((function(t){e.strokeStyle="#fff",e.lineWidth=6,e.lineCap="round",r.forEach((function(i){e.beginPath(),e.moveTo(t[i[0]].x,t[i[0]].y),e.lineTo(t[i[1]].x,t[i[1]].y),e.stroke(),e.closePath()})),e.strokeStyle="#01c7ae",e.lineWidth=2,r.forEach((function(i){e.beginPath(),e.moveTo(t[i[0]].x,t[i[0]].y),e.lineTo(t[i[1]].x,t[i[1]].y),e.stroke(),e.closePath()}))}))},lineVertial:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:6,g=A.a.lineVector({points:t}),n=A.a.verticalLine({points:t});n={x:n[0],y:n[1]};var a={x:(t[0].x+t[1].x)/2+n.x*i,y:(t[0].y+t[1].y)/2+n.y*i},r=A.a.vectorWidth(g,o),C=A.a.vectorWidth(n,o),I=[{x:a.x+g.x*r,y:a.y+g.y*r},{x:a.x-g.x*r,y:a.y-g.y*r},{x:a.x+n.x*C,y:a.y+n.y*C}];e.beginPath(),e.lineWidth=3,e.strokeStyle="#fff",e.fillStyle="#00c7b0",e.moveTo(I[0].x,I[0].y),e.lineTo(I[1].x,I[1].y),e.lineTo(I[2].x,I[2].y),e.closePath(),e.stroke(),e.fill(),I=[{x:(a={x:(t[0].x+t[1].x)/2-n.x*i,y:(t[0].y+t[1].y)/2-n.y*i}).x+g.x*r,y:a.y+g.y*r},{x:a.x-g.x*r,y:a.y-g.y*r},{x:a.x-n.x*C,y:a.y-n.y*C}],e.beginPath(),e.moveTo(I[0].x,I[0].y),e.lineTo(I[1].x,I[1].y),e.lineTo(I[2].x,I[2].y),e.closePath(),e.stroke(),e.fill()},lineSelect:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#fff",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;e.beginPath(),e.strokeStyle=i,e.lineWidth=o,e.lineCap="square",e.moveTo(t[0].x,t[0].y),e.lineTo(t[1].x,t[1].y),e.stroke(),e.closePath()},face:function(e,t){for(var i,o=0;i=t[o];o++)0===o&&e.moveTo(i[0].x,i[0].y),e.lineTo(i[1].x,i[1].y)},faceLine:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#fff";e.strokeStyle=o,e.lineWidth=i,e.lineCap="square",e.beginPath(),c.face(e,t),e.closePath(),e.stroke()},faceClip:function(e,t){"Array"!==r.a.getType(t)&&(t=[t]),e.beginPath(),t&&t.length>0&&(t.forEach((function(t){return c.face(e,t)})),e.clip()),e.fillStyle="rgba(0,0,0,0.6)",e.fillRect(-1e3,-1e3,2e3,2e3),e.closePath()},faceImage:function(e,t,i){return a()(g.a.mark((function o(){var n;return g.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if("Array"!==r.a.getType(t)&&(t=[t]),l[i.src]&&l[i.src]._load_complete){o.next=7;break}return(n=new Image).src=i.src,l[i.src]=n,o.next=7,new Promise((function(e,t){n.onload=e,n.onerror=t,l[i.src]._load_complete=!0}));case 7:e.beginPath(),t&&t.length>0&&(t.forEach((function(t){return c.face(e,t)})),e.clip()),e.drawImage(l[i.src],i.p4.x,i.p4.y,A.a.lineDistance([i.p1,i.p2]),A.a.lineDistance([i.p1,i.p4])),e.fillStyle="rgba(0,0,0,0.4)",e.fillRect(i.p4.x,i.p4.y,A.a.lineDistance([i.p1,i.p2]),A.a.lineDistance([i.p1,i.p4])),e.closePath();case 13:case"end":return o.stop()}}),o)})))()},lineBoth:function(e,t,i){var o=A.a.verticalLine({points:t});o={x:o[0],y:o[1]};var g=A.a.vectorWidth(o,i/2),n=o.x*g,a=o.y*g,r=[{x:t[0].x+n,y:t[0].y+a},{x:t[0].x-n,y:t[0].y-a}],C=[{x:t[1].x+n,y:t[1].y+a},{x:t[1].x-n,y:t[1].y-a}];c.lineSelect(e,r,"#fff",2),c.lineSelect(e,t,"#fff",2),c.lineSelect(e,C,"#fff",2)},compass:function(e,t,i,o,g){var n=t.x,a=t.y,A=i/2,r=i/2;e.translate(n+A,a+r),e.rotate(o),e.drawImage(l.scale,-A,-r,i,i),e.drawImage(l.guide,-A,-r,i,i),e.font=g+"px '字体','字体','微软雅黑','宋体'",e.textAlign="center",e.textBaseline="middle",e.translate(0,-r-5),e.rotate(-o),e.fillText("N",0,0),e.rotate(o),e.translate(0,r+5),e.translate(0,r+5),e.rotate(-o),e.fillText("S",0,0),e.rotate(o),e.translate(0,-r-5),e.translate(-A-5,0),e.rotate(-o),e.fillText("W",0,0),e.rotate(o),e.translate(r+5,0),e.translate(r+5,0),e.rotate(-o),e.fillText("E",0,0),e.rotate(o),e.translate(-r-5,0),e.rotate(-o),e.translate(-(n+A),-(a+r))},doorSector:function(e,t,i,o,g,n){e.strokeStyle="rgba(0,200,175,1)",e.lineWidth=8,e.strokeStyle="#181c1d",e.beginPath(),e.moveTo(t[0].x,t[0].y),e.lineTo(t[1].x,t[1].y),e.stroke(),e.closePath(),e.lineWidth=1,e.strokeStyle="#fff",e.beginPath(),e.moveTo(t[0].x,t[0].y),e.arc(t[0].x,t[0].y,g,i,o),e.lineTo(t[0].x,t[0].y),e.stroke(),n&&(e.fillStyle=n,e.fill())},fillTextVertical:function(e,t,i,o){var g=t.split(""),n=g.map((function(t){var i=e.measureText(t).width+1;return i<4?6:i})),a=e.textAlign,A=e.textBaseline;"left"==a?i+=Math.max.apply(null,n)/2:"right"==a?i-=Math.max.apply(null,n)/2:"center"==a&&(o-=n.reduce((function(e,t){return e+t}),0)/2),"bottom"==A||"alphabetic"==A||"ideographic"==A?o-=n[0]/2:"top"!=A&&"hanging"!=A||(o+=n[0]/2),e.textAlign="center",e.textBaseline="middle",g.forEach((function(t,g){var a=n[g];e.translate(i,o),e.rotate(90*Math.PI/180),e.translate(-i,-o),e.fillText(t,i,o),e.translate(i,o),e.rotate(-90*Math.PI/180),e.translate(-i,-o);a=n[g];o+=a})),e.textAlign=a,e.textBaseline=A},drawBubble:function(e,t,i,o){t.x-=.18*i,t.y-=1.1*o;var g=t.x,n=t.y;e.beginPath(),e.moveTo(g,n+.35*o),e.quadraticCurveTo(g+.04*i,n+.02*o,g+.5*i,n),e.quadraticCurveTo(g+.96*i,n+.02*o,g+i,n+.35*o),e.quadraticCurveTo(g+i,n+.7*o,g+.58*i,n+.72*o),e.quadraticCurveTo(g+.5*i,n+.9*o,g+.2*i,n+o),e.quadraticCurveTo(g+.38*i,n+.8*o,g+.38*i,n+.72*o),e.quadraticCurveTo(g,n+.7*o,g,n+.35*o),e.stroke()}};t.a=c},function(e,t,i){"use strict";var o=i(27),g={clampVFOV:function(e,t,i,o){return g.getHFOVFromVFOV(e,i,o)>t?g.getVFOVFromHFOV(t,i,o):e},getHFOVForCamera:function(e,t,i){return g.getHFOVFromVFOV(e.fov,t,i)},getHFOVFromVFOV:function(e,t,i){var g=t,n=i;return 2*Math.atan(Math.tan(e*o.a.RADIANS_PER_DEGREE/2)*(g/n))*o.a.DEGREES_PER_RADIAN},getVFOVFromHFOV:function(e,t,i){var g=t,n=i;return 2*Math.atan(Math.tan(e*o.a.RADIANS_PER_DEGREE/2)*(n/g))*o.a.DEGREES_PER_RADIAN}};t.a=g},function(e,t,i){var o=i(55),g=i(81),n=i(93),a=i(111)("src"),A=i(216),r=(""+A).split("toString");i(110).inspectSource=function(e){return A.call(e)},(e.exports=function(e,t,i,A){var C="function"==typeof i;C&&(n(i,"name")||g(i,"name",t)),e[t]!==i&&(C&&(n(i,a)||g(i,a,e[t]?""+e[t]:r.join(String(t)))),e===o?e[t]=i:A?e[t]?e[t]=i:g(e,t,i):(delete e[t],g(e,t,i)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[a]||A.call(this)}))},function(e,t,i){var o=i(96);e.exports=function(e){return Object(o(e))}},function(e,t,i){"use strict";var o=i(67),g=i(74),n=i(157),a=i(129);i(131)("match",1,(function(e,t,i,A){return[function(i){var o=e(this),g=null==i?void 0:i[t];return void 0!==g?g.call(i,o):new RegExp(i)[t](String(o))},function(e){var t=A(i,e,this);if(t.done)return t.value;var r=o(e),C=String(this);if(!r.global)return a(r,C);var I=r.unicode;r.lastIndex=0;for(var s,l=[],c=0;null!==(s=a(r,C));){var u=String(s[0]);l[c]=u,""===u&&(r.lastIndex=n(C,g(r.lastIndex),I)),c++}return 0===c?null:l}]}))},function(e,t,i){"use strict";i(75);function o(){this.list=[],this.index={},Object.defineProperty(this,"length",{get:function(){return this.list.length}})}o.prototype.forEach=function(e){this.list.forEach(e)},o.prototype.add=function(e){this.list.push(e),this.index[this.getIndex(e)]=e},o.prototype.getIndex=function(e){throw new Error("IndexedCollection.getIndex not implemented in subclass.")},o.prototype.extend=function(e){for(var t=0;t<e.length;t++)this.add(e[t])},o.prototype.get=function(e){return this.index[e]},o.prototype.first=function(){return this.list[0]},o.prototype.last=function(){return this.list[this.list.length-1]},o.prototype.reIndex=function(){this.index={};var e=this;this.forEach((function(t){e.index[e.getIndex(t)]=t}))},o.prototype.filter=function(e){var t=this.list.filter(e);return this.reIndex(),t},o.prototype.reduce=function(e,t){return this.list.reduce(e,t)},o.prototype.sort=function(e){return this.list.sort(e)},o.prototype.indexOf=function(e){for(var t=0;t<this.list.length;++t)if(this.list[t]===e)return t;return-1},t.a=o},function(e,t,i){"use strict";t.a={LEFT:0,MIDDLE:1,RIGHT:2}},function(e,t,i){"use strict";i(39),i(52),i(210),i(211);var g=i(7),n=i(4),a=i(15),A=i(18),r=i(1),C=i(9),I=i(5),s=i(54),c=i(36),u=i(50),d=i(20),h=(i(63),i(100),i(29),i(38),i(2)),p=i(6),f=i(10),m=i(16);function v(){this.imageWrapper=null,this.width=0,this.height=0,this.aspect=1}v.prototype=Object.create(EventEmitter.prototype),v.prototype.createDomElement=function(e){return e instanceof Image?this.imageWrapper=e:(this.imageWrapper=new Image,e&&(this.imageWrapper.src=e)),this.imageWrapper.classList.add("tag-image"),this.imageWrapper.classList.add("hidden"),this.imageWrapper.addEventListener("click",function(e){e.stopPropagation(),this.emit(r.a.MediaEvent.IMAGE_OPENING),this.imageWrapper.style.pointerEvents="none"}.bind(this)),this.imageWrapper},v.prototype.onClosed=function(){this.imageWrapper.style.pointerEvents="auto"},v.prototype.load=function(e,t){return new Promise(function(i,o){var g=function(e,t){$(this.imageWrapper).attr("width",""),$(this.imageWrapper).attr("height",""),this.imageWrapper.classList.remove("hidden"),i()}.bind(this);e instanceof Image?(this.createDomElement(e),g(e,t)):(this.createDomElement(e),this.imageWrapper.onload=function(e){g(e.target,t)},this.imageWrapper.onerror=function(){o("fail load img")})}.bind(this))};var y=v,b=i(0);function w(){this.embedWrapper=null,this.embedElement=null}w.prototype.createDomElement=function(){return this.embedWrapper=document.createElement("div"),this.embedWrapper.classList.add("tag-embed"),this.embedWrapper.classList.add("hidden"),this.embedWrapper},w.prototype.load=function(e,t){var i=e;return new Promise(function(e,o){var g;"video"==t?(this.player=$('<video> <source src="'+i+'" ></video>')[0],g='<div class="videoThumb"><img></img><div><span></span></div></div>'):(g="<div><span></span><span></span><span></span><span></span></div>",this.player=new Audio),this.embedWrapper.innerHTML=g,this.embedElement=this.embedWrapper.firstChild,this.player.load(),this.embedElement.classList.add("hidden"),this.embedWrapper.classList.remove("hidden"),this.player.addEventListener("loadeddata",function(){if("video"==t){var i=getVideoPoster(this.player,300),o=getBlobSrc(i);$(this.embedElement).find("img").attr("src",o),$(this.embedElement).on("click",(function(){b.a.gui.playVideo(this.player,!0)}))}e()}.bind(this)),this.player.onerror=o}.bind(this))},w.prototype.show=function(){this.embedElement&&this.embedElement.classList.remove("hidden")},w.prototype.hide=function(){this.embedElement&&this.embedElement.classList.add("hidden")};var x,E=w,P=(i(90),Object.freeze({NOT_READY:"player.not.ready",CUED:"player.cued",PLAYING:"player.playing",PAUSED:"player.paused"}));function T(e){E.call(this),this.options=e,this.playerControls=null,this.state=P.NOT_READY}T.prototype=Object.create(EventEmitter.prototype),T.prototype.createDomElement=function(e){if("video"==e){var t=$('<div class="tag-media hidden"></div>');return this.embedWrapper=t[0],this.embedWrapper}t=$('<div class="tag-audio hidden"></div>');return this.embedWrapper},T.prototype.load=function(e,t){return o.prototype.load.call(this,e,t)},T.prototype.play=(x=g.a.isMobile(),function(){this.playerState!==P.NOT_READY&&this.playerControls&&!x&&(this.state===P.CUED&&this.options.autoPlay||this.options.autoResume)&&this.playerControls.play()}),T.prototype.pause=function(){this.playerState!==P.NOT_READY&&this.playerControls&&this.playerControls.pause()};var D=i(12);i(86);function M(e){e.play(),"micromessenger"==navigator.userAgent.toLowerCase().match(/MicroMessenger/i)?window.WeixinJSBridge?WeixinJSBridge.invoke("getNetworkType",{},(function(t){e.play()}),!1):document.addEventListener("WeixinJSBridgeReady",(function(){WeixinJSBridge.invoke("getNetworkType",{},(function(t){e.play()}))}),!1):e.play()}var S=i(3);i(8);if(isMobile&&edit)var R=i(181).default;function k(e,t,i,o,g){this.div=null,this.body=null,this.label=null!=e?e:"",this.description=null!=t?t:"",this.parsedDescription=[],this.loadingSpinner=null,this.state=L.CLOSED,this.orientation="",this.initialTransform="",this.hovering=!1,this.openTransition=null,this.closeTransition=null,this.openPromise=null,this.closePromise=null,this.animationTransition=null,this.animationScale=0,this.tag=g,this.dealMedia(i,o),this.examTimes=0,this.mediaDivs={}}var O=document.getElementById("tag-billboards");O.addEventListener("touchend",(function(e){O.style.pointerEvents="none"})),O.addEventListener("touchcancel",(function(e){O.style.pointerEvents="none"}));var L={CLOSED:"closed",OPENING:"opening",OPEN:"open",CLOSING:"closing",ACTIVE:"active"};k.prototype=Object.create(EventEmitter.prototype),k.prototype.build=function(e){var t=document.createElement("div");t.className="tag-container has-hotzone",this.div=t,this.body=document.createElement("div"),this.body.className="tag-body";var i=document.createElement("div");i.classList.add("tag-content");var o=document.createElement("div");o.classList.add("tag-text-content");var g=document.createElement("div");g.className="tag-title";var n=document.createElement("div");n.className="tag-label",n.textContent=this.label,!this.label&&edit&&this.tag==publicObjectSet.editor.markTag&&(isMobile?n.textContent=S.a.get("点击下一步编辑热点内容"):n.textContent=S.a.get("请填写标题")),o.appendChild(g),g.appendChild(n);var a=document.createElement("div");a.className="tag-desc",o.appendChild(a),i.appendChild(o),this.body.appendChild(i),t.appendChild(this.body);var A=document.createElement("div");A.className="closeTag",t.appendChild(A),A.addEventListener("mousedown",(function(e){e.stopPropagation()})),A.addEventListener("click",function(e){publicObjectSet.tagManager.activeTag&&publicObjectSet.tagManager.dismissActiveTag(),e.stopPropagation()}.bind(this),!1),O.appendChild(t),this.changeDesc(this.description),this.mediaObject={},this.appendMedia(),this.bindEvents(t,this.body)},k.prototype.dealMedia=function(e,t){var i={photo:".jpg",audio:".mp3",video:".mp4"};this.mediaData={},this.media=e||[],e&&e.type&&"photo"==e.type&&(this.media=["photo"]);var o="";this.tag.pages&&(o="_"+this.tag.pages[0].sid);for(var g=0;g<this.media.length;g++){var n=this.media[g];"outLink"==n?this.mediaData[n]=t:(this.mediaData[n]={src:h.a.getResourceUrl(this.tag.fileSrc[n]?"https://"+this.tag.fileSrc[n]:p.a.sceneImgRoot+"hot"+this.tag.sid+o+i[n])},"video"===n&&(this.mediaData[n].poster=h.a.getResourceUrl(this.tag.fileSrc[n]?"https://"+this.tag.fileSrc[n]:p.a.sceneImgRoot+"hot"+this.tag.sid+"-cut.jpg")))}this.media.length&&(this.loadingMedia=!0)},k.prototype.changeLabel=function(e){var t=$(this.div).find(".tag-label")[0];t.innerHTML="",this.label=e,t.textContent=this.label||S.a.get("请填写标题"),this.applyOrientation(this.orientation)},k.prototype.changeDesc=function(e){var t=$(this.div).find(".tag-desc")[0];t.innerHTML="",this.description=e,!edit||this.tag!=publicObjectSet.editor.markTag||e&&"<p></p>"!=e||isMobile||(e=S.a.get("请填写内容简介")),""!=e&&"<p></p>"!=e?$(this.div).addClass("has-text"):$(this.div).removeClass("has-text"),t.innerHTML=e,this.applyOrientation(this.orientation)},k.prototype.changeMedia=function(e){this.loadingMedia=!0,-1==this.media.indexOf(e)&&this.media.push(e),this.appendMediaContent(e)},k.prototype.deleteMedia=function(e){var t=this.mediaDivs[e];if(t){switch(e){case"photo":this.div.classList.remove("has-photo"),this.div.classList.remove("image-portrait");var i=$(this.div).find(".tag-image");i.length&&f.default.waitDestroyBlob.push(i.attr("src"));break;case"video":this.div.classList.remove("has-video"),(o=this.mediaObject.videoPlayer)&&($(o).attr("poster")&&f.default.waitDestroyBlob.push($(o).attr("poster")),f.default.waitDestroyBlob.push(o.src),this.mediaObject.videoPlayer=null);break;case"audio":var o;this.div.classList.remove("has-audio"),(o=this.mediaObject.audioPlayer)&&(publicObjectSet.gui.playAudio(o,!1),f.default.waitDestroyBlob.push(o.src),this.mediaObject.audioPlayer=null);break;case"outLink":this.div.classList.remove("hasLink")}t.parentElement.removeChild(t),this.onMediaLoadFinished(e),delete this.mediaDivs[e],delete this.mediaData[e],this.applyOrientation(this.orientation)}},k.prototype.reBuildMedia=function(e){e&&(this.media=e);for(var t=["photo","video","audio"],i=0;i<3;i++)-1==this.media.indexOf(t[i])?this.deleteMedia(t[i]):this.changeMedia(t[i])},k.prototype.bindEvents=function(e,t){var i=function(e){return function(t){if(!this.div.classList.contains("overlay")&&!t.target.classList.contains("closeTag")){var i,o=document.getElementById("player");try{i=new MouseEvent(e,t)}catch(o){(i=document.createEvent("MouseEvents")).initMouseEvent(e,t.bubbles,t.cancelable,t.view,t.detail,t.screenX,t.screenY,t.clientX,t.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,t.button,t.relatedTarget)}o.dispatchEvent(i)}}};t.addEventListener("mousedown",(function(e){e.stopPropagation()})),t.addEventListener("mouseup",function(e){e.stopPropagation()}.bind(this)),e.addEventListener("mousedown",i("mousedown").bind(this)),e.addEventListener("mouseup",i("mouseup").bind(this)),e.addEventListener("touchstart",(function(e){O.style.pointerEvents="auto"})),t.addEventListener("mouseover",function(t){publicObjectSet.playGuider.isPlaying||this.state===L.OPEN&&e.classList.remove("has-hotzone")}.bind(this)),e.addEventListener("mouseenter",function(e){publicObjectSet.playGuider.isPlaying||this.state!==L.CLOSING&&(this.hovering=!0,this.emit(r.a.BillboardEvent.ENTER))}.bind(this)),e.addEventListener("mouseleave",function(e){publicObjectSet.playGuider.isPlaying||(this.hovering=!1,this.emit(r.a.BillboardEvent.LEAVE))}.bind(this)),e.addEventListener("gesturestart",(function(e){publicObjectSet.playGuider.isPlaying||e.preventDefault()}));var o,g=e.querySelector(".tag-text-content"),n=0;g.addEventListener("touchstart",(function(e){n=e.changedTouches[0].clientY})),e.addEventListener("touchstart",(function(e){o=e.changedTouches[0].clientY})),e.addEventListener("touchmove",(function(i){function g(e,t){return e&&(0===e.scrollTop&&i.changedTouches[0].clientY>t||e.scrollTop+e.clientHeight-e.scrollHeight==0&&i.changedTouches[0].clientY<t)}function a(e){return 0==(e.compareDocumentPosition(i.target)&Node.DOCUMENT_POSITION_CONTAINED_BY)&&i.target!=e}g(this.querySelector(".tag-desc"),n)&&(!e.classList.contains("overlay")||g(t,o))&&i.preventDefault(),a(this.querySelector(".tag-desc"))&&(!e.classList.contains("overlay")||a(e))&&i.preventDefault()}))},k.prototype.resizeImg=function(){this.imgNeedResize=!1;var e=this.div.getElementsByClassName("tag-image"),t=$(this.div).find(".videoThumb"),i=this.div.classList.contains("has-text"),o=this.media.indexOf("photo")>-1&&e.length&&e[0].src,g=this.media.indexOf("video")>-1&&t.find("video").length,n=this.media.indexOf("outLink")>-1&&$(this.div).find(".outer-chain");if(!(o||g||n.length&&i))return!1;var a,A=$(this.div).find(".tag-label").height()+12,r=window.horizontal&&(i||o&&g),C=(this.div.children[0].children[0].clientHeight,r?.32*$("#player").width():$("#player").width()<340?280:$("#player").width()<420?300:350),I=(window.horizontal?.85*$("#player").height():$("#player").height()>700?.65*$("#player").height():.7*$("#player").height())-36,s=$(this.div).find(".tag-desc");if(n.length){var l=Math.min(I-n.height()-18,260);s.css("max-height",Math.max(l,60)+"px")}else{if(window.horizontal)a=I-A,s.css("max-height",Math.max(a,60)+"px");else if(i){l=.3*I-A;s.css("max-height",Math.max(l,60)+"px"),a=A+s[0].scrollHeight>.3*I?.7*I-18:I-A-s[0].scrollHeight-10}else a=I-A;var c=function e(i){var o=t.find("video")[0],g=o.videoWidth,n=o.videoHeight,a=C/g,A=i/n,r=Math.min(a,A);if(!g&&!n){var I=o.muted;o.addEventListener("loadeddata",(function t(){o.removeEventListener("loadeddata",t),o.pause(),o.muted=I,e(i)})),o.muted=!0,o.play()}if(g>n)if(window.horizontal)t[0].style.width=g*r<320?g*r+"px":"320px",t[0].style.height=n*r<180?n*r+"px":"180px";else{var s=Math.max(C,320);t[0].style.width=s+"px",t[0].style.height=i<180?i+"px":"180px"}else if(window.horizontal)t[0].style.width=g*r<270?g*r+"px":"270px",t[0].style.height=n*r<360?n*r+"px":"360px";else{s=Math.max(C,270);t[0].style.width=s+"px",t[0].style.height=i<360?i+"px":"360px"}};if(g)o?(e[0].style["max-width"]=C+"px",r?(s.css("max-height",.3*a+"px"),e[0].style["max-height"]=Math.min(e[0].naturalHeight/e[0].naturalWidth*C,.7*a)+"px",c(.7*a)):(e[0].style["max-height"]=.6*a+"px",c(.4*a))):c(a);else e[0].style["max-width"]=C+"px",e[0].style["max-height"]=a+"px"}return this.closeImage&&this.closeImage(),this.applyOrientation(this.orientation),!0},k.prototype.appendLoadingSpinner=function(e){this.loadingSpinner||(this.loadingSpinner={});var t=document.createElement("div");t.classList.add("loading-spinner");var i=document.createElement("div");i.classList.add("gui-spinner-icon"),t.appendChild(i),this.body.appendChild(t),this.loadingSpinner[e]=t},k.prototype.onMediaLoadFinished=function(e){this.loadingMedia&&(this.loadingSpinner[e]&&this.loadingSpinner[e].parentNode.removeChild(this.loadingSpinner[e]),this.resizeImg(),setTimeout(function(){this.applyOrientation(this.orientation),this.needExam&&(this.tag.examine(this.tag.tagManager.player,"currPano"),this.needExam=!1)}.bind(this),80),delete this.loadingSpinner[e],this.loadingMedia=!1)},k.prototype.appendMedia=function(){this.media.forEach(function(e){this.appendMediaContent(e)}.bind(this))},k.prototype.appendMediaContent=function(e){if(this.appendLoadingSpinner(e),!this.mediaDiv){this.mediaDiv=document.createElement("div"),this.mediaDiv.classList.add("tag-media-content");var t=document.createElement("i");["icon","icon-close-thin","close"].forEach((function(e){t.classList.add(e)})),this.body.appendChild(t),this.body.appendChild(this.mediaDiv)}switch(console.log(e),e){case"photo":this.createImageElement(this.mediaData[e],this.body);break;case"video":this.addMediaInOrder(this.createMediaElement(this.mediaData[e],this.body,e),"video");break;case"audio":this.addMediaInOrder(this.createMediaElement(this.mediaData[e],this.body,e),"audio");break;case"outLink":this.addOuterChain(this.mediaData[e])}},k.prototype.addOuterChain=function(e){if(e&&e.indexOf&&("http://"==(e=e.trim()).slice(0,7)?e="https://"+e.slice(7):"https://"!=e.slice(0,8)&&(e="https://"+e)),["https://v.qq.com/txp/iframe/player.html","https://open.iqiyi.com/developer/player_js/coopPlayerIndex.html","https://player.youku.com/embed/"].find((function(t){return 0===e.indexOf(t)}))){var t=$("\n\t\t<div class=\"outer-chain\" outerHTML=\"<iframe frameborder='0' src='".concat(e,"' allowFullScreen='true'></iframe>\">\n\t\t</div>\n\t"));this.state!==L.OPEN&&this.state!==L.ACTIVE&&this.state!==L.OPENING||t.append(t.attr("outerHTML")),this.imgNeedResize=!0,this.div.classList.add("hasLink"),this.mediaDiv.appendChild(t[0]),this.mediaDivs.outLink=t[0],this.onMediaLoadFinished("outLink")}},k.prototype.addMediaInOrder=function(e,t){this.mediaDivs[t]&&this.mediaDivs[t].parentElement.removeChild(this.mediaDivs[t]),this.mediaDivs[t]=null,"audio"==t?$(this.div).find(".tag-title")[0].appendChild(e):this.mediaDiv.appendChild(e),this.mediaDivs[t]=e},k.prototype.createImageElement=function(e,t){function i(){function e(){console.error("aa"),u||(o.imageWrapper.classList.remove("view-image"),C.classList.add("overlay"),o.descMaxH=h.style["max-height"],h.style["max-height"]="none",i(),window.addEventListener("resize",p),C.addEventListener("click",n),c.addEventListener("click",A),l.addEventListener("click",a),u=!0,g.emit(r.a.MediaEvent.IMAGE_OPENED))}function i(){return t.classList.add("show-info"),I.classList.remove("collapsible"),I.style.height="",g.description.length>0&&I.classList.add("collapsible"),$.when(this)}function n(e){e.target===C&&a()}function a(){u&&(u=!1,o.imageWrapper.classList.add("view-image"),C.classList.remove("overlay"),o.descMaxH&&(h.style["max-height"]=o.descMaxH),I.style.height="",s.style.paddingTop="",t.style.width="",t.style.height="",window.removeEventListener("resize",p),C.removeEventListener("click",n),c.removeEventListener("click",A),l.removeEventListener("click",a),g.emit(r.a.MediaEvent.IMAGE_CLOSED))}function A(e){t.classList.toggle("show-info")}var C=g.div,I=C.getElementsByClassName("tag-content")[0],s=C.getElementsByClassName("tag-media-content")[0],l=t.getElementsByClassName("close")[0],c=I.getElementsByClassName("tag-label")[0];C.classList.add("has-photo");try{}catch(e){console.error(e)}g.addMediaInOrder(o.imageWrapper,"photo"),o.imageWrapper.classList.add("view-image"),o.imageWrapper.draggable=!1,o.imageWrapper.ondragstart=function(){return!1},C.classList.add(o.aspect>=1?"image-landscape":"image-portrait");var u=!1,d=getComputedStyle(I),h=(parseFloat(d.paddingTop),parseFloat(d.paddingBottom),parseFloat(getComputedStyle(s).paddingLeft),I.querySelector(".tag-label"),I.querySelector(".tag-desc")),p=function(){var e,t,o=0;return function(){clearInterval(e),clearTimeout(t),e=setInterval((function(){var e=C.clientHeight;o!==e&&(i(),o=e)}),100),t=setTimeout(clearInterval.bind(this,e),1e3)}}();o.on(r.a.MediaEvent.IMAGE_OPENING,(function(){console.error("aa"),u||(o.imageWrapper.classList.remove("view-image"),C.classList.add("overlay"),o.descMaxH=h.style["max-height"],h.style["max-height"]="none",i(),window.addEventListener("resize",p),C.addEventListener("click",n),c.addEventListener("click",A),l.addEventListener("click",a),u=!0,g.emit(r.a.MediaEvent.IMAGE_OPENED))})),g.on(r.a.MediaEvent.IMAGE_CLOSED,o.onClosed.bind(o)),g.closeImage=a}var o=new y,g=this;e=e.media?e.media:e.src;var a=function(){o.load(e,this.div).then(i).catch((function(e){n.a.warn("Failed to load image:"),n.a.warn("with error:",e)})).then(this.onMediaLoadFinished.bind(this,"photo"))}.bind(this);e instanceof Image?a():(e||(e=h.a.getResourceUrl(p.a.sceneImgRoot+"hot/hot"+this.tag.sid+".jpg")),this.state==L.CLOSING||this.state==L.CLOSED?this.once(r.a.BillboardEvent.OPENED,a):a())},k.prototype.createMediaElement=function(e,t,i){var o,a,A=this,r=e.poster;e=e.media?e.media:e.src,$(this.mediaDiv).removeClass("hidden");var C="";if("video"===i&&(C="\n\t\t\t".concat(r?'<div class="video-cover" style="background-image: url('+r+')"></div>':"",'\n\t\t\t<video \n\t\t\t\tid="').concat(this.tag.sid,'"\n\t\t\t\tclass="video-js" \n\t\t\t\t').concat(r?'poster="'+r+'"':"",'\n\t\t\t\tx5-video-player-type="h5-page"\n\t\t\t\tcontrols \n\t\t\t\tcontrolslist="nodownload"\n\t\t\t\tdisablepictureinpicture\n\t\t\t\twebkit-playsinline="true"\n\t\t\t\tx-webkit-airplay="true"\n\t\t\t\tplaysinline="true"\n\t\t\t\tpreload = "auto" \n\t\t\t\tdata-setup="{}">\n\t\t\t\t<source src="').concat("string"==typeof e?e:e.src,'" type="video/mp4">\n\t\t\t</video>\n\t\t')),edit){var I=!1;"video"==i?(a=$('\n\t\t\t\t<div class="tag-media hidden">\n\t\t\t\t\t<div class="videoThumb" outerHTML=\''.concat(C,"'>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t")),this.mediaObject.videoPlayer&&(o=this.mediaObject.videoPlayer,I=!0)):(a=$('<div class="audio-waveBtn hidden"><span></span><span></span><span></span><span></span></div>'),this.mediaObject.audioPlayer&&(o=this.mediaObject.audioPlayer,I=!0))}else"video"==i?a=$('\n\t\t\t\t<div class="tag-media hidden">\n\t\t\t\t\t<div class="videoThumb" outerHTML=\''.concat(C,"'>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t")):(a=$('<div class="audio-waveBtn hidden"><span></span><span></span><span></span><span></span></div>'),o=this.audioPlayer=new Audio);var s,l=function(){!0,console.log("addCover"),edit?I?this.mediaObject.videoCanvas&&this.mediaObject.videoCanvas instanceof Node&&a.find(".videoThumb")[0].appendChild(this.mediaObject.videoCanvas):(this.mediaObject.videoCanvas=document.createElement("canvas"),a.find(".videoThumb")[0].appendChild(this.mediaObject.videoCanvas),o.pause(),publicObjectSet.gui.getVideoPoster(o,this.mediaObject.videoCanvas,"loadFail"),this.mediaObject.videominiCanvas=document.createElement("canvas"),publicObjectSet.gui.getVideoPoster(o,this.mediaObject.videominiCanvas),publicObjectSet.gui.changeMediaPreview(this.tag,"video"),setTimeout((function(){s.resolve()}),30)):setTimeout((function(){s.resolve()}),30),a.find(".videoThumb").on("click",function(){publicObjectSet.gui.playVideo(o,!0)}.bind(this)),o.removeEventListener("loadeddata",l),a.removeClass("hidden")}.bind(this),c=0,u=function(e,t){c++,"soon"!=t&&"video"==i&&2!=c||("video"==i?g.a.detectEdge()?setTimeout(l,600):l():(e&&e.resolve(),a.on("click",function(e){publicObjectSet.gui.playAudio(o,o.paused),e.stopPropagation()}.bind(this)),I||o.addEventListener("ended",(function(e){publicObjectSet.gui.playAudio(o,!1)})),o.billboard=this,a.removeClass("hidden")))}.bind(this),d=function(e){if(s=$.Deferred(),edit)if(e instanceof HTMLVideoElement||e instanceof Audio)o=e,"audio"==i?this.mediaObject.audioPlayer=e:this.mediaObject.videoPlayer=e,u(s,"soon");else{"video"==i?((o=this.mediaObject.videoPlayer=$('<video controls="controls" x5-playsinline="" webkit-playsinline="true" playsinline="true" controlslist="nodownload"></video>')[0]).setAttribute("crossOrigin","Anonymous"),$(o).on("contextmenu",(function(){return!1}))):o=this.mediaObject.audioPlayer=new Audio,$(o).attr("src",e),console.log("load2"),o.load();var t=function(){u(s)};o.addEventListener("loadeddata",t),"video"==i&&o.addEventListener("loadedmetadata",t),setTimeout((function(){n||(console.log("timeout load fail"),o.removeEventListener("loadeddata",t),o.removeEventListener("loadedmetadata",t),s.reject())}),5e3)}else{$(o).attr("src",e),"video"==i||o.load();var n=0,A=function(){n++,console.log(n),"video"==i&&2!=n||("video"==i?g.a.detectEdge()?setTimeout(l,600):l():(s.resolve(),$(o).addClass("hide"),a.append($(o)),a.on("click",function(e){publicObjectSet.gui.playAudio(o,o.paused),e.stopPropagation()}.bind(this)),o.addEventListener("ended",(function(){publicObjectSet.gui.playAudio(o,!1)})),o.billboard=this,a.removeClass("hidden")))}.bind(this);"video"!==i?A():s.reject()}return s.promise()}.bind(this),h=function(){-1!=!this.media.indexOf(i)&&d(e).done(function(){this.div.classList.add("has-"+i),this.resizeImg(),this.onMediaLoadFinished(i),"video"==i&&this.tag.videoReadyCallBack&&this.tag.videoReadyCallBack()}.bind(this)).fail(function(){try{n.a.warn("Failed to embed video"),n.a.warn("with error:",t)}catch(e){console.log(e)}console.log("加载失败了"),"video"==i&&this.tag.videoReadyCallBack&&this.tag.videoReadyCallBack(),this.onMediaLoadFinished(i)}.bind(this))}.bind(this);function p(e,t,i){t.muted=!0;var o=t.parentNode.querySelector(".video-cover");return console.log(o),o&&(t.addEventListener("canplay",(function(){o.style.display="none"})),o.addEventListener("click",(function(){console.log("----------------------333"),t.play()}))),new Promise((function(e){if(!edit)return e();function i(e){M(t)}setTimeout(i),document.documentElement.addEventListener("click",i,!0),document.documentElement.addEventListener("touchstart",i,!0),t.addEventListener("canplay",(function(){if(clearTimeout(i),document.documentElement.removeEventListener("click",i,!0),document.documentElement.removeEventListener("touchstart",i,!0),t.pause(),edit){var o=document.createElement("canvas");if(0==t.videoWidth)o.width=97,o.height=97;else{var g=97/t.videoWidth,n=97/t.videoHeight,a=Math.max(g,n);o.width=t.videoWidth*a,o.height=t.videoHeight*a}o.getContext("2d").drawImage(t,0,0,t.videoWidth,t.videoHeight,0,0,o.width,o.height);var A=o.toDataURL("image/jpeg",.8);e(A),console.log("-----play",A)}})),setTimeout((function(){e(),clearTimeout(i),document.documentElement.removeEventListener("click",i,!0),document.documentElement.removeEventListener("touchstart",i,!0)}),1e4)}))}return I?("video"==i?this.mediaObject.videoCanvas&&this.mediaObject.videoCanvas instanceof Node?(u(null,"soon"),this.div.classList.add("has-"+i),this.imgNeedResize=!0):console.log("no videoCanvas"+this.mediaObject.videoCanvas):(u(null,"soon"),this.div.classList.add("has-"+i),this.imgNeedResize=!0),this.onMediaLoadFinished(i)):e instanceof HTMLVideoElement?setTimeout((function(){if(A.div.classList.add("has-"+i),a.removeClass("hidden"),r)edit&&(A.mediaObject.videominiCanvas=r,publicObjectSet.gui.changeMediaPreview(A.tag,"video"));else{var e=a.find(".videoThumb");e.append(e.attr("outerHTML")),p(A.tag,e.find("video")[0]).then((function(e){edit&&(A.mediaObject.videominiCanvas=e,publicObjectSet.gui.changeMediaPreview(A.tag,"video"))}));var t=e[0],o=e.find("video")[0];t.loadSuccess||o.addEventListener("loadeddata",(function(){A.onMediaLoadFinished("video"),t.loadSuccess=!0})),o.play()}edit&&e.find("video").addClass("loadsuccess")})):e instanceof Audio||"blob:"==e.slice(0,5)?h():a.find(".videoThumb").attr("outerHTML")&&~a.find(".videoThumb").attr("outerHTML").indexOf("video")?setTimeout((function(){if(A.div.classList.add("has-"+i),a.removeClass("hidden"),A.state===L.OPEN||A.state===L.ACTIVE||A.state===L.OPENING){var e=a.find(".videoThumb");e.append(e.attr("outerHTML")),p(A.tag,e.find("video")[0]).then((function(e){edit&&(A.mediaObject.videominiCanvas=e,publicObjectSet.gui.changeMediaPreview(A.tag,"video"))}));var t=e[0],o=e.find("video")[0];t.loadSuccess||o.addEventListener("loadeddata",(function(){A.onMediaLoadFinished("video"),t.loadSuccess=!0})),o.play()}else edit&&(A.mediaObject.videominiCanvas=r,publicObjectSet.gui.changeMediaPreview(A.tag,"video"))})):this.once("loadMedia",h),a[0]},k.prototype.createEmbedElement=function(e,t){var i=new l,o=i.createDomElement();return this.once(r.a.BillboardEvent.OPENED,function(){i.load(e.src).then(function(){this.div.classList.add("has-embed"),this.state!==L.OPEN&&this.state!==L.ACTIVE||i.show(),this.applyOrientation(this.orientation),this.on(r.a.BillboardEvent.OPENING,i.show.bind(i)),this.on(r.a.BillboardEvent.CLOSED,i.hide.bind(i))}.bind(this)).catch((function(t){n.a.warn("Failed to embed:",e.src),n.a.warn("with error:",t)})).then(this.onMediaLoadFinished.bind(this,"rich"))}.bind(this)),o},k.prototype.screenCap=function(e){if(console.log("screenCap "+e),publicObjectSet.recordGuider.onRecording&&(!publicObjectSet.player.flyingToTag||!publicObjectSet.player.flying)){var t={};t.eTime=D.a.getTime(publicObjectSet.recordGuider.startCapTime),t.type="spot",t.state=e,t.sid=this.tag.sid,t.pos=publicObjectSet.player.position.toArray(),t.qua=publicObjectSet.player.quaternion.toArray(),t.mode=D.a.tranString(publicObjectSet.player.model.mode),D.a.capItemDeal(t);var i=Store.frameData.length-1;void 0===Store.frameData[i]&&(Store.frameData[i]=[]),Store.frameData[i].push(t);var o=Store.capData,g=o[o.length-1];g.tags||(g.tags=[]);var n={type:"spot"};n.state=e,n.eTime=D.a.getTime(publicObjectSet.recordGuider.startCapTime),n.sid=this.tag.sid,n.position=publicObjectSet.player.position.toArray(),n.quaternion=publicObjectSet.player.quaternion.toArray(),publicObjectSet.player.mode==I.a.FLOORPLAN&&(n.zoom=publicObjectSet.player.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),g.tags.length>0&&g.tags[g.tags.length-1].sid==this.tag.sid?"close"==e&&(g.tags[g.tags.length-1].state==e?g.tags[g.tags.length-1].eTime=n.eTime:g.tags.push(n)):g.tags.push(n)}},k.prototype.open=function(e){var t=this;if(console.log("------------------------"),edit&&(publicObjectSet.editor.chosenSpot=this.tag),isMobile&&edit&&R.onSwichEditor("hotEdit"),this.emit("loadMedia"),this.imgNeedResize&&this.resizeImg(),this.tag.listElem&&$(this.tag.listElem).addClass("active"),this.div.classList.add("active"),this.openPromise=$.Deferred(),this.state===L.ACTIVE)return 1==this.animationScale?this.openPromise.resolve().promise():this.openPromise;if(this.hovering||this.div.classList.add("has-hotzone"),this.openTransition?(console.log("setActive 1"),e&&this.setActiveState()):(this.screenCap("open"),this.openTransition=C.a.setTimeout(function(){this.state!==L.OPEN&&(console.log("2222222222222"),this.emit(r.a.BillboardEvent.OPENING),e&&this.emit(r.a.BillboardEvent.ACTIVATING),this.state=L.OPENING,this.animateOpen(function(){console.log("setActive 2"),e&&this.setActiveState(),this.openPromise.resolve(),this.examOpenPromise&&"resolved"!=this.examOpenPromise.state()&&this.examOpenPromise.resolve()}.bind(this)))}.bind(this),r.a.billboardSettings.animation.openDelay)),C.a.cancel(this.closeTransition),this.closePromise&&this.closePromise.reject(),this.closeTransition=void 0,a=this.mediaDivs.video&&this.mediaDivs.video.querySelector(".videoThumb")){var i=a.querySelector("video");if(i&&!i.reload&&(i.pause(),i.parentNode.removeChild(i)),!i||!i.reload){a.innerHTML=a.getAttribute("outerHTML"),a.style.visibility="hidden",clearTimeout(this.__video_time),this.__video_time=setTimeout((function(){a.style.visibility="visible"}),700);var o=a.querySelector("video");if(o.reload=!0,!o)return;var n=o.parentNode.querySelector(".video-cover");n?(o.addEventListener("play",(function e(){g.a.detectWeixin()&&g.a.detectAndroid()&&(publicObjectSet.playGuider.isPlaying||publicObjectSet.recordGuider.onRecording)||(n.style.display="none",n.removeEventListener("play",e),o.classList.add("loadsuccess"))})),console.log(o),n.addEventListener("click",(function(){o.play()}))):o.classList.add("loadsuccess"),a.loadSuccess||o.addEventListener("loadeddata",(function(){t.onMediaLoadFinished("video"),a.loadSuccess=!0})),setTimeout((function(){a.querySelector("video")===o&&(o.muted=publicObjectSet.playGuider.isPlaying||publicObjectSet.recordGuider.onRecording,M(o))}),50)}}var a,A=this.mediaDivs.outLink;A&&!A.querySelector("iframe")&&(A.innerHTML=A.getAttribute("outerHTML")),A&&(A.querySelector("iframe").style.visibility="hidden",clearTimeout(this.__iframe_time),this.__iframe_time=setTimeout((function(){A.querySelector("iframe").style.visibility="visible"}),700)),((a=this.mediaDivs.video&&this.mediaDivs.video.querySelector(".videoThumb"))||A)&&publicObjectSet.playGuider.musicPlayer.isPlaying&&(publicObjectSet.playGuider.musicPlayer.pause(),this._pauseMiusic=!0);var I=this.mediaDivs.audio&&this.mediaDivs.audio.querySelector("audio")||this.mediaObject&&this.mediaObject.audioPlayer;return I&&(I.billboard=this,publicObjectSet.playGuider.isPlaying||publicObjectSet.recordGuider.onRecording||publicObjectSet.gui.playAudio(I,!0)),publicObjectSet.guider.isPlaying||publicObjectSet.recordGuider.onRecording,this.openPromise},k.prototype.close=function(e){if(this.tag.listElem&&$(this.tag.listElem).removeClass("active"),this.tag.edit)return $.Deferred().reject();publicObjectSet.tagManager.tagNeedClose[this.tag.sid]&&delete publicObjectSet.tagManager.tagNeedClose[this.tag.sid],this.closeImage&&this.closeImage(),this.tag.flyingToTag=!1,isMobile&&edit&&R.cancelTagEdit();var t=this.mediaDivs[this.media];if(t){var i=t.querySelector("video"),o=t.querySelector("audio"),g=t.querySelector("iframe");"audio"==this.media[0]&&this.mediaObject.audioPlayer?publicObjectSet.gui.playAudio(this.mediaObject.audioPlayer,!1):o&&publicObjectSet.gui.playAudio(o,!1),i&&(i.pause(),i.parentNode.innerHTML=""),g&&g.parentNode.removeChild(g),(i||g)&&this._pauseMiusic&&(publicObjectSet.playGuider.musicPlayer.play(),this._pauseMiusic=!1),(o=this.mediaDivs.audio&&this.mediaDivs.audio.querySelector("audio")||this.mediaObject&&this.mediaObject.audioPlayer)&&(o.billboard=this,publicObjectSet.gui.playAudio(o,!1))}return this.div.classList.remove("active"),this.closePromise=$.Deferred(),this.outOfScreen=!1,e||!this.hovering||publicObjectSet.playGuider.isPlaying?(console.log("close 222222"),this.closeTransition||(this.closeTransition=C.a.setTimeout(function(){this.state!==L.CLOSED&&(this.emit(r.a.BillboardEvent.CLOSING),console.log("state closing "),this.state=L.CLOSING,this.animateClose())}.bind(this),r.a.billboardSettings.animation.closeDelay),this.screenCap("close")),C.a.cancel(this.openTransition),this.openPromise&&this.openPromise.reject(),this.openTransition=void 0,this.closePromise.resolve(),this.closePromise.promise()):(console.log("reject??"),this.closePromise.reject().promise())},k.prototype.setActiveState=function(){this.state!==L.CLOSED&&(this.state=L.ACTIVE,this.emit(r.a.BillboardEvent.ACTIVATE),this.div.classList.remove("has-hotzone"))},k.prototype.animateOpen=function(e){if(this.state===L.OPENING){if(C.a.cancel(this.animationTransition),g.a.detectSamsungNative())return this.boardOrientation=null,this.div.style.visibility="visible",this.emit(r.a.BillboardEvent.OPENED),this.state!=L.ACTIVE&&(this.state=L.OPEN),void(e&&e());if(this.div.style.webkitTransform="scale(0)",this.div.style.transform="scale(0)",this.div.style.visibility="visible",this.div.screenTransform){var t=this.div.screenTransform.indexOf("scale");if(t>-1){var i=this.div.screenTransform.slice(0,t);this.div.screenTransform=i+"scale(0)",this.div.style.webkitTransform=this.div.screenTransform,this.div.style.transform=this.div.screenTransform}}this.animationTransition=C.a.start(a.a.property(this,"animationScale",1),r.a.billboardSettings.animation.openDuration,function(){this.emit(r.a.BillboardEvent.OPENED),this.state!=L.ACTIVE&&(this.state=L.OPEN),e&&e()}.bind(this))}},k.prototype.animateClose=function(e){this.state===L.CLOSING&&(C.a.cancel(this.animationTransition),this.animationTransition=C.a.start(a.a.property(this,"animationScale",0),r.a.billboardSettings.animation.closeDuration,function(){this.emit(r.a.BillboardEvent.CLOSED),this.state=L.CLOSED,this.div.style.visibility="hidden",this.div.classList.contains("has-hotzone")||this.div.classList.add("has-hotzone"),e&&e()}.bind(this)))},k.prototype.needsUpdate=function(){return this.state!==L.CLOSED},k.prototype.update=function(e,t){if(this.needsUpdate()){var i=this.calcScale(t),o={x:(e.x+1)*$("#player").width()/2,y:(e.y+1)*$("#player").height()/2};if("center"==this.orientation&&(this.tag.examing||this.outOfScreen||"opening"==this.state)){var g=this.getDimensions(),n=$("#player").height(),a=isMobile?publicObjectSet.recordGuider.onRecording?$(".tmpl-snapTour.step-2").height()+70:120:55;if((o.y-g.height/2<0||o.y+g.height/2+a*i*this.animationScale>n)&&(this.outOfScreen=!0,o.y-g.height/2<0?o.y=g.height/2:o.y=n-g.height/2-a*i*this.animationScale,($(this.div).height()+a)*i*this.animationScale>n))return this.updateOrientation(e),this.div.screenTransform=this.initialTransform+" translate("+o.x+"px, "+o.y+"px) scale("+n/($(this.div).height()+a)+")",this.div.style.webkitTransform=this.div.screenTransform,void(this.div.style.transform=this.div.screenTransform)}this.updateOrientation(e),this.div.screenTransform=this.initialTransform+" translate("+o.x+"px, "+o.y+"px) scale("+i*this.animationScale+")",this.div.style.webkitTransform=this.div.screenTransform,this.div.style.transform=this.div.screenTransform}},k.prototype.getDimensions=function(){return this.div.getBoundingClientRect()},k.prototype.ifOutOfScreen=function(){var e=this.getDimensions(),t=$("#player")[0].getBoundingClientRect(),i=isMobile?50:0;return e.left<t.left-3||e.right>t.right+3||e.top<t.top-3||e.bottom>t.bottom-i+3},k.prototype.calcScale=function(e){if($("#player").width()<=320&&$("#player").height()<=520)var t=.86;else t=1;return Math.sqrt(e/40)*r.a.billboardSettings.boardToDiscRatio*t},k.prototype.updateOrientation=function(e){if(isMobile||publicObjectSet.recordGuider.onRecording||publicObjectSet.playGuider.isPlaying)"center"!=this.orientation&&this.applyOrientation("center");else if(!this.tag.examing&&this.state!==L.ACTIVE&&!this.tag.edit||!this.orientation||"center"==this.orientation){var t=1/3,i=e.y<-t?0:e.y<t?1:2,o=e.x<-t?0:e.x<t?1:2,g="";g+=0===o?"right":2===o?"left":"",g+=0===i?"-down":2===i?"-up":"",1===o&&(g=0===i?"bottom":2===i?"top":"",1===i&&(g=$("#player").width()>$("#player").height()?e.x<0?"right":"left":e.y<0?"bottom":"top")),g===this.orientation||this.applyOrientation(g)}},k.prototype.applyOrientation=function(e){if(e){this.div.style.transform=this.div.style.webkitTransform="",this.div.classList.remove("tag-container-"+this.orientation),this.div.classList.add("tag-container-"+e);var t=window.getComputedStyle(this.div),i=t.transform.slice(7,-1).split(","),o=-i[4],g=-i[5];if(!isNaN(o)&&!isNaN(g)&&(this.initialTransform=t.transform||t.webkitTransform,"none"===this.initialTransform&&(this.initialTransform=""),this.div.style.webkitTransformOrigin=o+"px "+g+"px",this.div.style.transformOrigin=o+"px "+g+"px",this.orientation=e,this.div.screenTransform)){var n=this.div.screenTransform.indexOf("translate");if(n>-1){var a=" "+this.div.screenTransform.slice(n);this.div.screenTransform=this.initialTransform+a,this.div.style.webkitTransform=this.div.screenTransform,this.div.style.transform=this.div.screenTransform}}}},k.prototype.getCenterPos=function(){var e=this.getDimensions(),t=new THREE.Vector3,i=publicObjectSet.player,o=m.a.handelPadding(e.left,e.top);if(m.a.convertScreenPositionToNDC(o.x+e.width/2,o.y+e.height/2,t),i.flying&&i.camera.updateProjectionMatrix(),t.unproject(i.camera),h.a.ifFish){var g=i.camera.position.distanceTo(this.tag.position);t=t.sub(i.camera.position).normalize().multiplyScalar(g).add(i.camera.position)}return t};var B=k,F=i(21),j=i(57),N={};if(!isMobile&&g.a.detectIE()){var H=i(199).default;for(var z in H[32])N[z]=j.a.load(H[32][z],null,null,{antialias:!0})}else{var V=i(136).default;for(var z in V)N[z]=j.a.load(V[z],null,null,{antialias:!0})}if(edit&&2!=h.a.setSpotType||!edit)var G=i(245).default;function W(e,t,i){this.model=e,this.sid=t,this.color=(new THREE.Color).set(i.color||s.a.tagDefault),this.hoverColor=s.a._darken(this.color,.2),this.floor=null,this.floorIndex=i.floor,this.mode=I.a.PANORAMA,this.obj3d=null,this.disc=null,this.position=(new THREE.Vector3).copy(i.position),h.a.ifFish&&(this.origin=this.position.clone()),this.discWorldPosition=null,this.discScale=.06,this.fileName=i.fileName||{},this.fileSrc=i.fileSrc||{},i.style&&i.style.includes("animate")?(this.pages=i.pages,this.billboard=new B(i.pages[0].label,i.pages[0].description,i.pages[0].media,i.outLink,this)):(this.billboard=new B(i.label,i.description,i.media,i.outLink,this),this.visibleTransition=null,this.hoveringDisc=!1),this.state=i.state,this.snapInfo=i.snapInfo,this.snapInfo&&(this.snapInfo.nodeEnd=(new THREE.Vector3).copy(i.snapInfo.nodeEnd)),this.visiblePanos=[],"mark"!=this.state&&this.setVisiblePanos(i.visiblePanos),this.style=N[i.style]?i.style:i.style&&i.style.includes("animate")?"photo":"note",this.model.tags[t]=this}var U=isMobile?new THREE.PlaneBufferGeometry(1.4,1.4):new THREE.PlaneBufferGeometry(1,1);W.prototype=Object.create(EventEmitter.prototype),W.raycaster=new THREE.Raycaster,W.prototype.bindEvents=function(){this.billboard.on(r.a.BillboardEvent.ENTER,this.setHoverState.bind(this)),this.billboard.on(r.a.BillboardEvent.LEAVE,this.setFreeState.bind(this))},W.prototype.unbindEvent=function(){this.billboard.removeListener(r.a.BillboardEvent.ENTER,this.setHoverState.bind(this)),this.billboard.removeListener(r.a.BillboardEvent.LEAVE,this.setFreeState.bind(this))},W.prototype.remove=function(){this.unbindEvent(),b.a.gui.playAudio(this.billboard.mediaObject.audioPlayer,!1),this.obj3d.remove(this.disc),this.floor.remove(this.obj3d),this.markGroup&&this.markGroup.remove();try{this.billboard.div.parentElement.removeChild(this.billboard.div)}catch(e){console.log(e)}this.tagManager&&(this==this.tagManager.activeTag&&this.tagManager.dismissActiveTag(),this.tagManager.removeTag(this)),delete this.model.tags[this.sid]};var Q,Y=function(e){var t={};for(var i in e)t[i]="outLink"==i?e[i]:{file:e[i].file,media:e[i].media,src:e[i].src,needSave:e[i].needSave};return t};W.prototype.getTempData=function(){var e={sid:this.sid,position:this.position.clone(),label:this.billboard.label,description:this.billboard.description,style:this.style,media:this.billboard.media.slice(0),mediaData:Y(this.billboard.mediaData),fileSrc:f.default.CloneObject(this.fileSrc),fileName:f.default.CloneObject(this.fileName),visiblePanos:this.getVisiPanoData(),mediaObject:this.billboard.mediaObject};return this.snapInfo?2==h.a.setSpotType||1==h.a.setSpotType&&(e.snapInfo={panoId:this.snapInfo.panoId,nodeEnd:this.snapInfo.nodeEnd.clone()}):e.posGets=this.posGets,e},W.prototype.recoverFromTemp=function(e,t){var i=this.billboard.mediaData.video?this.billboard.mediaData.video.poster:void 0;this.billboard.mediaData=e.mediaData,this.billboard.mediaData.video&&(this.billboard.mediaData.video.poster=i),this.billboard.mediaObject=e.mediaObject,"builded"!=t&&(this.build(),this.bindEvents(),b.a.player.model.tags[e.sid]=this,b.a.player.tagManager.getTag(this)),this.visiblePanos=e.visiblePanos},W.prototype.rePos=function(e,t,i){this.position.copy(e),this.obj3d.position.copy(e),this.markGroup&&t&&this.markGroup.rePosAtSphere(t,i)},W.prototype.shineSpot=function(e){if("end"==e)return C.a.cancelById(r.a.freeze.spotShine+this.sid),void(this.disc.material.uniforms.opacity.value=1);this.model.tags[this.sid]&&C.a.start(a.a.uniform(this.disc,"opacity",1==this.disc.material.uniforms.opacity.value?.4:1,(function(e){})),700,this.shineSpot.bind(this),0,A.a[r.a.transition.blendEasing],"wallLineShine",r.a.freeze.spotShine+this.sid)},W.prototype.setVisiblePanos=function(e){this.visiblePanos=[];var t=function(){var e=this.model.panos.index,t=this.position.clone();for(var i in this.snapInfo&&(this.snapInfo.standPos?this.snapInfo.standPos.clone():this.model.panos.index[this.snapInfo.panoId].position.clone()),e){var o=e[i].position.clone(),g=new THREE.Raycaster(o,t.clone().sub(o).normalize(),0,o.distanceTo(t)-this.discScale/2-.075).intersectObjects(this.model.chunks);g&&g.length||this.visiblePanos.push(e[i].id)}}.bind(this);if(e)if("string"==typeof e[0])this.visiblePanos=e;else for(var i=0;i<e.length;i++){var o=this.model.panos.list[e[i]];o?this.visiblePanos.push(o.id):console.log("visiblePanos 无此id")}else t()},W.prototype.getVisiPanoData=function(){return this.visiblePanos},W.prototype.setElemType=function(e){this.style=e,this.disc.material.uniforms.map.value=N[this.style]},W.prototype.createMarkGroup=function(e){var t=$.extend({tag:this,model:this.model},e);this.markGroup=new G(t)},W.prototype.build=function(){return this.floor=this.model.floors.get(this.floorIndex)||this.model.floors.first(),this.floor&&(this.billboard.build(this.model.sid),this.obj3d=this.buildObject3D(),this.floor.add(this.obj3d)),edit&&"mark"==this.state&&!b.a.editor.enterSplitView&&this.createMarkGroup({type:"addTag"}),this},W.prototype.buildObject3D=function(){var e=new THREE.Object3D;e.position.copy(this.position);var t=THREE.UniformsUtils.clone(F.a.tagDisc.uniforms);t.map.value=N[this.style];var i=new THREE.RawShaderMaterial({transparent:!0,vertexShader:F.a.tagDisc.vertexShader,fragmentShader:F.a.tagDisc.fragmentShader,uniforms:t,depthTest:!1});return this.disc=new THREE.Mesh(U,i),this.disc.layers.set(c.a.TAG),this.disc.renderOrder=u.a.tagDisc,this.disc.tag=this,this.disc.name="disc",e.add(this.disc),e.name="tagGroup","mark"==this.state&&b.a.editor.enterSplitView&&(e.visible=!1),e},W.prototype.setFreeState=function(e){!e&&this.hoveringDisc||this.billboard.close(e).then(function(){this.disc.material.uniforms.dark.value=0}.bind(this))},W.prototype.setHoverState=function(e){"videoPanoFlag"!=this.state&&this.billboard.open(e),void 0===b.a.tagManager.tagNeedClose[this.sid]&&(b.a.tagManager.tagNeedClose[this.sid]=this),this.disc.material.uniforms.dark.value=1},W.prototype.hide=function(e,t){var i=$.Deferred();if(0===this.disc.material.uniforms.opacity.value&&!C.a.isRunning(this.visibleTransition))return i.resolve().promise();e=e||0,t=t||0,C.a.cancel(this.visibleTransition),this.markGroup&&this.markGroup.hide();var o=this.disc.material.uniforms.opacity.value/r.a.tags.disc.opacity,g=t+e,n=t/g;return this.visibleTransition=C.a.start(function(e){var t=a.a.property(e.disc.material.uniforms.opacity,"value",0);return function(e){t(e)}}(this),g*o,(function(){i.resolve()}),n,A.a[r.a.warp.blendEasing]),i.promise()},W.prototype.show=function(e,t){var i=$.Deferred();if(this.disc.material.uniforms.opacity.value===r.a.tags.disc.opacity&&!C.a.isRunning(this.visibleTransition))return i.resolve().promise();e=e||0,t=t||0,C.a.cancel(this.visibleTransition),this.markGroup&&this.markGroup.show();var o=(r.a.tags.disc.opacity-this.disc.material.uniforms.opacity.value)/r.a.tags.disc.opacity,g=t+e,n=t/g;return this.visibleTransition=C.a.start(function(e){var t=a.a.property(e.disc.material.uniforms.opacity,"value",r.a.tags.disc.opacity);return function(e){t(e)}}(this),g*o,(function(){i.resolve()}),n,A.a[r.a.warp.blendEasing]),i.promise()},W.prototype.closestPanoTowardTag=function(e,t,i,o){var g=[],n=[],a=this,A=h.a.ifFish?this.origin.clone():this.disc.getWorldPosition();if(e===I.a.PANORAMA){var C=t.position.clone().sub(A).normalize();n.push(d.a.scoreFunctions.direction(A,C))}b.a.player.model.noPanoHasNeighbor||g.push((function(e){return b.a.player.model.checkHasNeighbor(e)})),g.push((function(e){return a.visiblePanos.indexOf(e.id)>-1}));var s=new THREE.Vector3;g.push((function(e){return Math.abs(e.position.x-A.x)>r.a.tags.visibility.cameraClearance||Math.abs(e.position.z-A.z)>r.a.tags.visibility.cameraClearance}),(function(e){s.copy(A).sub(e.position);var t=THREE.Math.radToDeg(Math.atan(s.y/Math.sqrt(s.x*s.x+s.z*s.z)));if(b.a.recordGuider.onRecording)return-46<t&&t<50;var i=r.a.tags.navigate.tiltTolerance,o=b.a.player.cameraControls.cameras.panorama.fov,g=h.a.ifFish?-10:(70-o)/2;return(b.a.player.cameraControls.controls.panorama.insideLookLimitDown||r.a.insideLookLimitDown)-i+g+(isMobile?edit?4:2:0)<t&&t<r.a.insideLookLimitUp+i-g})),n.push(d.a.scoreFunctions.distanceSquared(this,-2));var l=this.model.panos.sortByScore(g,n);return o?l:l&&l.length>0&&l[0].pano},W.prototype.getAngle=function(e,t){var i=e.camera.quaternion.clone(),o=(new THREE.Matrix4).lookAt(e.currentPano.position,t,new THREE.Vector3(0,1,0)),g=(new THREE.Quaternion).setFromRotationMatrix(o),n=new THREE.Vector3(0,0,-1).clone().applyQuaternion(i),a=new THREE.Vector3(0,0,-1).clone().applyQuaternion(g);return n.angleTo(a)/Math.PI*180},W.prototype.examine=function(e,t,i){var o=e.mode,g=r.a.tags.navigate.nearestPano&&this.closestPanoTowardTag(o,e.currentPano,t)||e.currentPano,a=h.a.ifFish?this.origin.clone():this.disc.getWorldPosition();this.billboard.setActiveState(),this.examing=!0,e.flyingToTag=!0,console.log("examing");var A=function(){if(e.flyingToTag=!1,e.waitFlytoItemFuc){var t=e.waitFlytoItemFuc;e.waitFlytoItemFuc=null,t()}b.a.tagManager.navigatingViaTag=!1}.bind(this),C=function(){this.examing=!1,this.billboard.examTimes=0,!i||window.cancelReExam?A():i((function(){A()})),window.cancelReExam=!1,console.log("ex done ")}.bind(this),s=function(t){if(window.cancelReExam||"panorama"!=e.mode)C();else{if(!this.disc.visible)return b.a.tagManager.dismissActiveTag(),void C();var i=function(){var i=this.billboard.getCenterPos();console.log("ff"),e.flyToPano({pano:g,lookAtPoint:i,examTag:this,constantMoveSpeed:"constant"==t,cancelLookFun:C},function(){if(console.log("ff11111"),isMobile||b.a.recordGuider.onRecording||b.a.playGuider.isPlaying)C();else if(window.cancelReExam||b.a.tagManager.activeTag!=this)C();else{var e=this.billboard.getDimensions();if(0==e.height&&0==e.width)C();else if(this.billboard.ifOutOfScreen())if(b.a.recordGuider.onRecording)C();else{if(this.billboard.examTimes>0)return console.log("exam>1次仍未校准,已放弃"),void C();console.log("准备重新校准"),s("constant"),this.billboard.examTimes++}else C();this.billboard.loadingMedia&&(this.billboard.needExam=!0)}}.bind(this))}.bind(this);this.billboard.ifOutOfScreen()?isMobile||b.a.recordGuider.onRecording||b.a.playGuider.isPlaying||(e.cameraControls.activeControl.lat<=r.a.insideLookLimitDown+5?(this.billboard.setActiveState(),this.billboard.applyOrientation("top"),setTimeout(i,60)):e.cameraControls.activeControl.lat>=r.a.insideLookLimitUp-5?(this.billboard.setActiveState(),this.billboard.applyOrientation("bottom"),setTimeout(i,60)):i()):i(),this.billboard.loadingMedia&&(this.billboard.needExam=!0)}}.bind(this);if(o===I.a.PANORAMA)if("currPano"!=t&&(g!==e.currentPano||"force"===t&&this.getAngle(e,a)>60)||isMobile||b.a.recordGuider.onRecording||b.a.playGuider.isPlaying){var l={pano:g,lookAtPoint:a,duration:null,maxDistanceOverride:null,skipWarpingCheck:!1,examTag:this,force:"force"==t,cancelLookFun:C};if(b.a.recordGuider.onRecording&&g==e.currentPano){var c=i;i=function(e){if(b.a.recordGuider.onRecording&&Store.capData.length>0&&Store.capData[Store.capData.length-1].tags.length>0){var t=Store.capData[Store.capData.length-1].tags.length;Store.capData[Store.capData.length-1].tags[t-1].quaternion=b.a.player.quaternion.toArray();var i=D.a.getTime(b.a.recordGuider.startCapTime);if(Store.capData[Store.capData.length-1].tags[t-1].eTime=i,t=Store.frameData.length-1,void 0===Store.frameData[t])return void n.a.error("原生模式录屏数据里热点缺了!");for(var o=Store.frameData[t].length-1;o>0;--o)if("spot"==Store.frameData[t][o].type){Store.frameData[t][o].endqua=b.a.player.quaternion.toArray(),Store.frameData[t][o].endTime=i;break}}c&&c(),e&&e()}}isMobile||b.a.recordGuider.onRecording||b.a.playGuider.isPlaying?e.flyToPano(l,C):e.flyToPano(l,s)}else{var u=!1,d=this.billboard.open();this.billboard.examOpenPromise=d,d.done(function(){u=!0,void 0===b.a.tagManager.tagNeedClose[this.sid]&&(b.a.tagManager.tagNeedClose[this.sid]=this),s()}.bind(this)).fail((function(){u=!0,C()})),setTimeout(function(){u||(console.log("setTimeout 1100"),"open"==this.billboard.state||"active"==this.billboard.state?s():(console.log("state "+this.billboard.state),C()))}.bind(this),900)}else{var p={pano:g,examTag:this};if(a){var f=(new THREE.Matrix4).lookAt(g.position,a,new THREE.Vector3(0,1,0));p.quaternion=(new THREE.Quaternion).setFromRotationMatrix(f)}p.callback=s,p.duration=1500,p.mode=I.a.PANORAMA,e.flyToNewMode(p)}},W.prototype.update=(Q=new THREE.Vector3,function(e,t){!this.disc||"mark"==this.state&&b.a.editor.enterSplitView&&!this.isMeasurePoint||(h.a.ifFish?(this.obj3d.updateMatrixWorld(),this.discWorldPosition=this.obj3d.position.clone(),Q.copy(this.discWorldPosition).project(t),(Q.z<1||this.tagManager.forceUpdateDisc)&&(this.tagManager.forceUpdateDisc=!1,this.disc.visible&&this.updateDisc(e,t),this.billboard.needsUpdate()&&(Q.y*=-1,this.billboard.update(Q,this.getDiscRadius(Q,t))))):(this.discWorldPosition=this.disc.getWorldPosition(new THREE.Vector3),this.updateDisc(e,t),this.billboard.needsUpdate()&&(Q.copy(this.discWorldPosition).project(t),Q.z<1||this.updateBoardOrient?(Q.y*=-1,this.updateBoardOrient=!1,this.billboard.div.style.opacity="1",this.billboard.update(Q,this.getDiscRadius(Q,t))):this.billboard.div.style.opacity="0")))}),W.prototype.updateDisc=function(e,t){var i=new THREE.Vector3,o=new THREE.Vector3,g=new THREE.Vector3,n=new THREE.Vector3,a=new THREE.Vector3;return function(e,t){var A=r.a.tags.visibility,C=r.a.tags.disc.scale,s=e===I.a.DOLLHOUSE||e===I.a.FLOORPLAN?r.a.tags.visibility.visibleDistance:t.position.distanceTo(h.a.ifFish?this.origin:this.discWorldPosition);if(this.obj3d.visible=0!==this.disc.material.opacity&&(A.anyDistance||s<=A.visibleDistance||e===I.a.TRANSITIONING)&&(!A.hideViaFloor||this.tagVisibleOnCurrentFloor(e))&&(!A.hideOffScreenDisc||!this.offScreen(this.disc,t))&&(!A.hideOffScreenObject||!this.offScreen(this.obj3d,t)),this.obj3d.visible&&this.disc.visible){this.disc.quaternion.copy(t.quaternion);var l=C.maxSize-(C.maxSize-C.minSize)*THREE.Math.smoothstep(s,C.nearBound,C.farBound);i.copy(this.discWorldPosition).project(t),o.set($("#player").width()/2,$("#player").height()/2,1).multiply(i),g.set(l/2,0,0).add(o),n.set(2/$("#player").width(),2/$("#player").height(),1).multiply(g),a.copy(n).unproject(t);var c=a.distanceTo(this.discWorldPosition),u=1+r.a.tags.disc.scale.responsiveness/100*(W.viewportScale()-1);this.discScale=c*u;try{b.a.player.setTagVisible?this.discScale*=isMobile?2:1.5:this.isMeasurePoint&&(this.discScale*=.9)}catch(e){}this.disc.scale.set(this.discScale,this.discScale,this.discScale)}}}(),W.prototype.getDiscRadius=function(e,t){var i=new THREE.Vector3;return function(e,t){return i.set(-this.discScale/2,0,0).applyQuaternion(t.quaternion).add(this.discWorldPosition).project(t),Math.abs(e.x-i.x)*$("#player").width()}}(),W.prototype.tagVisibleOnCurrentFloor=function(e){return!(e===I.a.DOLLHOUSE||e===I.a.FLOORPLAN)||this.model.allFloorsVisible||!this.floor.hidden},W.prototype.offScreen=function(e,t){var i=e.getWorldPosition().project(t);return!(-1<i.x&&i.x<1&&-1<i.y&&i.y<1)},W.prototype.offScreen2=function(e,t){var i=e.getWorldPosition().project(t);return!(-.95<i.x&&i.x<.95)},W.viewportScale=function(){return W.viewportWidth===$("#player").width()&&W.viewportHeight===$("#player").height()||(W.viewportWidth=$("#player").width(),W.viewportHeight=$("#player").height(),W.currentViewportScale=Math.sqrt(Math.min(W.viewportWidth,W.viewportHeight)/r.a.tags.disc.scale.baseViewportSize)),W.currentViewportScale};t.a=W},function(e,t,i){var o=i(68),g=i(179).onFreeze;i(190)("freeze",(function(e){return function(t){return e&&o(t)?e(g(t)):t}}))},function(e,t,i){"use strict";i.d(t,"a",(function(){return u}));i(49),i(29),i(69);var o=i(25),g=i.n(o),n=i(28),a=i.n(n),A=i(34),r=i.n(A),C=i(35),I=i.n(C),s=i(19),l=i.n(s);function c(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var u=function(e){r()(o,e);var t,i=(t=o,function(){var e,i=l()(t);if(c()){var o=l()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return I()(this,e)});function o(){return g()(this,o),i.apply(this,arguments)}return a()(o,[{key:"on",value:function(e,t){return this.addListener(e,t),this}},{key:"emit",value:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];return this.emitEvent(e,i),this}}]),o}(EventEmitter)},function(e,t,i){"use strict";var o=i(44),g=i.n(o);function n(e){this.state=e.state||0,this.$elem=e.$elem,this.$elem.on("click",this.switchState.bind(this)),this.fuc=e.fuc,this.state&&this.switchState(1,e.noInitEvent)}n.prototype.switchState=function(e,t){this.state=null!=e&&"object"!=g()(e)?e:!this.state,!0!==t&&this.fuc&&!1===this.fuc(this.state)||(this.state?this.$elem.addClass("on"):this.$elem.removeClass("on"))},t.a=n},function(e,t){var i={}.hasOwnProperty;e.exports=function(e,t){return i.call(e,t)}},function(e,t,i){var o=i(103);e.exports=function(e,t,i){if(o(e),void 0===t)return e;switch(i){case 1:return function(i){return e.call(t,i)};case 2:return function(i,o){return e.call(t,i,o)};case 3:return function(i,o,g){return e.call(t,i,o,g)}}return function(){return e.apply(t,arguments)}}},function(e,t,i){var o=function(e){"use strict";var t=Object.prototype,i=t.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},g=o.iterator||"@@iterator",n=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function A(e,t,i,o){var g=t&&t.prototype instanceof I?t:I,n=Object.create(g.prototype),a=new b(o||[]);return n._invoke=function(e,t,i){var o="suspendedStart";return function(g,n){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===g)throw n;return x()}for(i.method=g,i.arg=n;;){var a=i.delegate;if(a){var A=m(a,i);if(A){if(A===C)continue;return A}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===o)throw o="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o="executing";var I=r(e,t,i);if("normal"===I.type){if(o=i.done?"completed":"suspendedYield",I.arg===C)continue;return{value:I.arg,done:i.done}}"throw"===I.type&&(o="completed",i.method="throw",i.arg=I.arg)}}}(e,i,a),n}function r(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(e){return{type:"throw",arg:e}}}e.wrap=A;var C={};function I(){}function s(){}function l(){}var c={};c[g]=function(){return this};var u=Object.getPrototypeOf,d=u&&u(u(w([])));d&&d!==t&&i.call(d,g)&&(c=d);var h=l.prototype=I.prototype=Object.create(c);function p(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function f(e,t){var o;this._invoke=function(g,n){function a(){return new t((function(o,a){!function o(g,n,a,A){var C=r(e[g],e,n);if("throw"!==C.type){var I=C.arg,s=I.value;return s&&"object"==typeof s&&i.call(s,"__await")?t.resolve(s.__await).then((function(e){o("next",e,a,A)}),(function(e){o("throw",e,a,A)})):t.resolve(s).then((function(e){I.value=e,a(I)}),(function(e){return o("throw",e,a,A)}))}A(C.arg)}(g,n,o,a)}))}return o=o?o.then(a,a):a()}}function m(e,t){var i=e.iterator[t.method];if(void 0===i){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,m(e,t),"throw"===t.method))return C;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return C}var o=r(i,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,C;var g=o.arg;return g?g.done?(t[e.resultName]=g.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,C):g:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,C)}function v(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function y(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function b(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(v,this),this.reset(!0)}function w(e){if(e){var t=e[g];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,n=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:x}}function x(){return{value:void 0,done:!0}}return s.prototype=h.constructor=l,l.constructor=s,l[a]=s.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===s||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(h),e},e.awrap=function(e){return{__await:e}},p(f.prototype),f.prototype[n]=function(){return this},e.AsyncIterator=f,e.async=function(t,i,o,g,n){void 0===n&&(n=Promise);var a=new f(A(t,i,o,g),n);return e.isGeneratorFunction(i)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},p(h),h[a]="Generator",h[g]=function(){return this},h.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var i in e)t.push(i);return t.reverse(),function i(){for(;t.length;){var o=t.pop();if(o in e)return i.value=o,i.done=!1,i}return i.done=!0,i}},e.values=w,b.prototype={constructor:b,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(y),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(i,o){return a.type="throw",a.arg=e,t.next=i,o&&(t.method="next",t.arg=void 0),!!o}for(var g=this.tryEntries.length-1;g>=0;--g){var n=this.tryEntries[g],a=n.completion;if("root"===n.tryLoc)return o("end");if(n.tryLoc<=this.prev){var A=i.call(n,"catchLoc"),r=i.call(n,"finallyLoc");if(A&&r){if(this.prev<n.catchLoc)return o(n.catchLoc,!0);if(this.prev<n.finallyLoc)return o(n.finallyLoc)}else if(A){if(this.prev<n.catchLoc)return o(n.catchLoc,!0)}else{if(!r)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return o(n.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var g=this.tryEntries[o];if(g.tryLoc<=this.prev&&i.call(g,"finallyLoc")&&this.prev<g.finallyLoc){var n=g;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=e,a.arg=t,n?(this.method="next",this.next=n.finallyLoc,C):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),C},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),y(i),C}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var o=i.completion;if("throw"===o.type){var g=o.arg;y(i)}return g}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:w(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),C}},e}(e.exports);try{regeneratorRuntime=o}catch(e){Function("r","regeneratorRuntime = r")(o)}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var i=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:i)(e)}},function(e,t,i){"use strict";var o,g,n=(o=Array.prototype.shift,g=Array.prototype.unshift,function(){var e={};function t(e,t,i){e[t]?e[t].push(i):e[t]=[i]}function i(){var e=arguments,t=o.call(e),i=o.call(e),g=t[i];if(g&&0!==g.length)return g.forEach((function(t){try{t.apply(this,e)}catch(e){console.error(e)}})),g}return{create:function(o){if(e[o=o||"default"])return e[o];var n={},a={listen:function(e,i){t(n,e,i)},once:function(e,i){i.__once=!0,t(n,e,i)},remove:function(e,t){!function(e,t,i){var o=e[t];if(o&&0!==o.length)if(i)for(var g=o.length;g>=0;g--)o[g]===i&&o.splice(g,1);else o.length=0}(n,e,t)},trigger:function(){g.call(arguments,n);var e=i.apply(this,arguments);if(e)for(var t=e.length;t>=0;t--)e[t]&&e[t].__once&&e.splice(t,1)}};return e[o]=a,a},once:function(){this.create().once.apply(this,arguments)},listen:function(){this.create().listen.apply(this,arguments)},remove:function(){this.create().remove.apply(this,arguments)},trigger:function(){this.create().trigger.apply(this,arguments)}}}());t.a=n},function(e,t,i){"use strict";i(49),i(29);var o,g,n={copy:function(e,t){for(var i in t)e[i]=t[i]},getPosition:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement,i={x:0,y:0};e&&e!==t&&e!==document.documentElement;)i.x+=e.offsetLeft,i.y+=e.offsetTop,e=e.offsetParent;return i},getType:function(e){return Object.prototype.toString.call(e).slice(8,-1)},addMouseEvent:function(e,t){e.addEventListener("mousedown",(function(i){var o={x:i.offsetX,y:i.offsetY};function g(e){t.move({x:e.offsetX,y:e.offsetY},o),o={x:e.offsetX,y:e.offsetY},e.stopPropagation(),e.preventDefault()}t.down({x:i.offsetX,y:i.offsetY})&&(e.addEventListener("mousemove",g,{passive:!1}),document.documentElement.addEventListener("mouseup",(function i(o){e.removeEventListener("mousemove",g,{passive:!1}),document.documentElement.removeEventListener("mouseup",i,{passive:!1,capture:!0}),t.up(),o.stopPropagation(),o.preventDefault()}),{passive:!1,capture:!0}),i.stopPropagation(),i.preventDefault())}),!1)},grentID:(o={},g={},function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:String;return o[e]?t&&(o[e]=o[e]>t?o[e]:t):(o[e]=t||1,g[e]=i),g[e]===String?e+"_"+o[e]++:o[e]++})};t.a=n},function(e,t,i){"use strict";var o,g,n,a,A=i(112),r=i(55),C=i(94),I=i(121),s=i(58),l=i(68),c=i(103),u=i(133),d=i(195),h=i(156),p=i(197).set,f=i(237)(),m=i(198),v=i(238),y=i(239),b=i(240),w=r.TypeError,x=r.process,E=x&&x.versions,P=E&&E.v8||"",T=r.Promise,D="process"==I(x),M=function(){},S=g=m.f,R=!!function(){try{var e=T.resolve(1),t=(e.constructor={})[i(56)("species")]=function(e){e(M,M)};return(D||"function"==typeof PromiseRejectionEvent)&&e.then(M)instanceof t&&0!==P.indexOf("6.6")&&-1===y.indexOf("Chrome/66")}catch(e){}}(),k=function(e){var t;return!(!l(e)||"function"!=typeof(t=e.then))&&t},O=function(e,t){if(!e._n){e._n=!0;var i=e._c;f((function(){for(var o=e._v,g=1==e._s,n=0,a=function(t){var i,n,a,A=g?t.ok:t.fail,r=t.resolve,C=t.reject,I=t.domain;try{A?(g||(2==e._h&&F(e),e._h=1),!0===A?i=o:(I&&I.enter(),i=A(o),I&&(I.exit(),a=!0)),i===t.promise?C(w("Promise-chain cycle")):(n=k(i))?n.call(i,r,C):r(i)):C(o)}catch(e){I&&!a&&I.exit(),C(e)}};i.length>n;)a(i[n++]);e._c=[],e._n=!1,t&&!e._h&&L(e)}))}},L=function(e){p.call(r,(function(){var t,i,o,g=e._v,n=B(e);if(n&&(t=v((function(){D?x.emit("unhandledRejection",g,e):(i=r.onunhandledrejection)?i({promise:e,reason:g}):(o=r.console)&&o.error&&o.error("Unhandled promise rejection",g)})),e._h=D||B(e)?2:1),e._a=void 0,n&&t.e)throw t.v}))},B=function(e){return 1!==e._h&&0===(e._a||e._c).length},F=function(e){p.call(r,(function(){var t;D?x.emit("rejectionHandled",e):(t=r.onrejectionhandled)&&t({promise:e,reason:e._v})}))},j=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),O(t,!0))},N=function(e){var t,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===e)throw w("Promise can't be resolved itself");(t=k(e))?f((function(){var o={_w:i,_d:!1};try{t.call(e,C(N,o,1),C(j,o,1))}catch(e){j.call(o,e)}})):(i._v=e,i._s=1,O(i,!1))}catch(e){j.call({_w:i,_d:!1},e)}}};R||(T=function(e){u(this,T,"Promise","_h"),c(e),o.call(this);try{e(C(N,this,1),C(j,this,1))}catch(e){j.call(this,e)}},(o=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=i(132)(T.prototype,{then:function(e,t){var i=S(h(this,T));return i.ok="function"!=typeof e||e,i.fail="function"==typeof t&&t,i.domain=D?x.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&O(this,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),n=function(){var e=new o;this.promise=e,this.resolve=C(N,e,1),this.reject=C(j,e,1)},m.f=S=function(e){return e===T||e===a?new n(e):g(e)}),s(s.G+s.W+s.F*!R,{Promise:T}),i(122)(T,"Promise"),i(149)("Promise"),a=i(110).Promise,s(s.S+s.F*!R,"Promise",{reject:function(e){var t=S(this);return(0,t.reject)(e),t.promise}}),s(s.S+s.F*(A||!R),"Promise",{resolve:function(e){return b(A&&this===a?T:this,e)}}),s(s.S+s.F*!(R&&i(148)((function(e){T.all(e).catch(M)}))),"Promise",{all:function(e){var t=this,i=S(t),o=i.resolve,g=i.reject,n=v((function(){var i=[],n=0,a=1;d(e,!1,(function(e){var A=n++,r=!1;i.push(void 0),a++,t.resolve(e).then((function(e){r||(r=!0,i[A]=e,--a||o(i))}),g)})),--a||o(i)}));return n.e&&g(n.v),i.promise},race:function(e){var t=this,i=S(t),o=i.reject,g=v((function(){d(e,!1,(function(e){t.resolve(e).then(i.resolve,o)}))}));return g.e&&o(g.v),i.promise}})},function(e,t,i){"use strict";i.r(t);i(38),i(49),i(29),i(69),i(72);var o=i(25),g=i.n(o),n=i(28),a=i.n(n),A=i(34),r=i.n(A),C=i(35),I=i.n(C),s=i(19),l=i.n(s),c=i(0),u=i(3),d=i(10);function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var p,f,m=Quill.import("parchment"),v=Quill.import("modules/clipboard"),y=Quill.import("delta"),b=function(e){r()(o,e);var t,i=(t=o,function(){var e,i=l()(t);if(h()){var o=l()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return I()(this,e)});function o(){return g()(this,o),i.apply(this,arguments)}return a()(o,[{key:"onPaste",value:function(e){e.preventDefault();var t=this.quill.getSelection(),i=e.clipboardData.getData("text/plain").replace(/\r\n|\n|\t/g,""),o=(new y).retain(t.index).delete(t.length).insert(i),g=i.length+t.index;this.quill.updateContents(o),this.quill.setSelection(g,0),this.quill.scrollIntoView()}}]),o}(v);Quill.register("modules/clipboard",b,!0);var w={project_name_normal:function(e,t,i){var o=e.val().length;return t.attr("data-size",(i||15)-o),o},project_name:function(e,t,i,o){var g=d.default.getWordsLength(e.val(),o&&(i||15)),n=Math.floor((i||15)-g.len);return t.attr("data-size",n),o&&e.val(g.words),n},editor:function(e,t){var i=200,o=P(e).length,g=$("#project-intro"+t);return""==e&&(i=200),o>i?g.addClass("sizeWaring").attr("data-size",u.a.get("超出字数限制")):g.removeClass("sizeWaring").attr("data-size",i-o),i-o}};if(!isMobile){var x=function(e,t,i,o){var g=new Quill(t,{modules:{toolbar:!1},placeholder:u.a.get("请填写简介")});return $(t).on("click","a",(function(e){var t=m.find(e.target).offset(g.scroll),i=$(this).text().length;g.__range={index:t,length:i}})),g.txt={html:function(e){if(void 0===e)return g.root.innerHTML;g.root.innerHTML=e}},g.on("text-change",(function(){i(g.root.innerHTML,g.getText())})),g.on("selection-change",(function(){g.__init_focus=!0})),g.__setLink=function(e,t){if(!t||!e)return!1;/http(s)?:\/\//.test(t)||(t="https://"+t),g.__init_focus&&g.focus();var i=(g.getSelection()||{}).index;return void 0===i&&(i=g.getLength()-1),g.insertText(i,e,"link",t),!0},g};window.editor1=p=x(0,"#edit1",(function(e){var t=p.getLength()-1,i=$("#project-intro1");t>200?(e=T(e,200),i.hasClass("sizeWaring")||i.addClass("sizeWaring").attr("data-size",u.a.get("超出字数限制"))):(i.hasClass("sizeWaring")&&i.removeClass("sizeWaring"),i.attr("data-size",200-t)),c.a.editor.markTag&&("<p><br></p>"==e?c.a.editor.markTag.billboard.changeDesc(""):c.a.editor.markTag.billboard.changeDesc(e))})),window.editor2=f=x(0,"#edit2",(function(e){var t=f.getLength()-1,i=$("#project-intro2");t>200?(e=T(e,200),i.hasClass("sizeWaring")||i.addClass("sizeWaring").attr("data-size",u.a.get("超出字数限制"))):(i.hasClass("sizeWaring")&&i.removeClass("sizeWaring"),i.attr("data-size",200-t)),"<p><br></p>"==e||"<p></p>"==e?($("#j-header-arrow").hasClass("down")&&$("#j-header-dropdown").click(),$("#j-header-dropdown .desc #j-header-scenedesc").html(""),$("#j-header-dropdown").addClass("noTouch")):($("#j-header-dropdown .desc #j-header-scenedesc").html(e),$("#j-header-dropdown").removeClass("noTouch"))}))}function E(e,t){this.tempDiv=document.createElement("div"),this.tempDiv.id="TempNodeForTest",this.tempDiv.innerHTML=e,this.charCount=0,this.limit=t}function P(e){var t=P.__textarea;return t||(t=P.__textarea=document.createElement("textarea")),t.innerHTML=e,t.value}function T(e,t){return new E(e,t).cut()}E.prototype.cut=function(){var e=document.createElement("div");return this.searchEnd(this.tempDiv,e),e.innerHTML},E.prototype.searchEnd=function(e,t){for(var i,o,g=0;g<e.childNodes.length;g++)if(3==(i=e.childNodes[g]).nodeType){if(i.nodeValue.length+this.charCount>=this.limit)return(o=i.cloneNode(!0)).nodeValue=i.nodeValue.substr(0,this.limit-this.charCount),t.appendChild(o),!0;o=i.cloneNode(!0),t.appendChild(o),this.charCount+=i.nodeValue.length}else{if(o=i.cloneNode(!0),t.appendChild(o),0===i.childNodes.length)continue;o.innerHTML="";var n=this.searchEnd(i,o);if(n)return n}return!1};var D={editor1:p,editor2:f,linkChange:function(e,t,i,o,g){if(e.hasClass("submit")){var n=t.val().trim(),a=i.val().trim();if(!n)return c.a.gui.showInfo(u.a.get("链接文本不能为空"));if(!a)return c.a.gui.showInfo(u.a.get("链接地址不能为空"));o.__setLink(n,a)}t.val(""),i.val(""),g.attr("data-size","40")},checkLen:w,cutHtmlString:T};t.default=D},function(e,t,i){"use strict";t.a={ContextCreated:"scene-renderer-context-created",AfterRender:"after-render",MemoryUsageUpdated:"scene-renderer-memory-usage-updated"}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var i={}.toString;e.exports=function(e){return i.call(e).slice(8,-1)}},function(e,t,i){"use strict";var o=i(58),g=i(154)(6),n="findIndex",a=!0;n in[]&&Array(1)[n]((function(){a=!1})),o(o.P+o.F*a,"Array",{findIndex:function(e){return g(this,e,arguments.length>1?arguments[1]:void 0)}}),i(120)(n)},function(e,t,i){var o=i(58),g=i(288),n=i(117),a=i(135),A=i(212);o(o.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,i,o=n(e),r=a.f,C=g(o),I={},s=0;C.length>s;)void 0!==(i=r(o,t=C[s++]))&&A(I,t,i);return I}})},function(e,t,i){"use strict";var o=i(55),g=i(93),n=i(70),a=i(58),A=i(84),r=i(179).KEY,C=i(65),I=i(145),s=i(122),l=i(111),c=i(56),u=i(268),d=i(289),h=i(290),p=i(208),f=i(67),m=i(68),v=i(85),y=i(117),b=i(127),w=i(115),x=i(123),E=i(291),P=i(135),T=i(213),D=i(73),M=i(128),S=P.f,R=D.f,k=E.f,O=o.Symbol,L=o.JSON,B=L&&L.stringify,F=c("_hidden"),j=c("toPrimitive"),N={}.propertyIsEnumerable,H=I("symbol-registry"),z=I("symbols"),V=I("op-symbols"),G=Object.prototype,W="function"==typeof O&&!!T.f,U=o.QObject,Q=!U||!U.prototype||!U.prototype.findChild,Y=n&&C((function(){return 7!=x(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(e,t,i){var o=S(G,t);o&&delete G[t],R(e,t,i),o&&e!==G&&R(G,t,o)}:R,Z=function(e){var t=z[e]=x(O.prototype);return t._k=e,t},X=W&&"symbol"==typeof O.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof O},J=function(e,t,i){return e===G&&J(V,t,i),f(e),t=b(t,!0),f(i),g(z,t)?(i.enumerable?(g(e,F)&&e[F][t]&&(e[F][t]=!1),i=x(i,{enumerable:w(0,!1)})):(g(e,F)||R(e,F,w(1,{})),e[F][t]=!0),Y(e,t,i)):R(e,t,i)},K=function(e,t){f(e);for(var i,o=h(t=y(t)),g=0,n=o.length;n>g;)J(e,i=o[g++],t[i]);return e},q=function(e){var t=N.call(this,e=b(e,!0));return!(this===G&&g(z,e)&&!g(V,e))&&(!(t||!g(this,e)||!g(z,e)||g(this,F)&&this[F][e])||t)},_=function(e,t){if(e=y(e),t=b(t,!0),e!==G||!g(z,t)||g(V,t)){var i=S(e,t);return!i||!g(z,t)||g(e,F)&&e[F][t]||(i.enumerable=!0),i}},$=function(e){for(var t,i=k(y(e)),o=[],n=0;i.length>n;)g(z,t=i[n++])||t==F||t==r||o.push(t);return o},ee=function(e){for(var t,i=e===G,o=k(i?V:y(e)),n=[],a=0;o.length>a;)!g(z,t=o[a++])||i&&!g(G,t)||n.push(z[t]);return n};W||(A((O=function(){if(this instanceof O)throw TypeError("Symbol is not a constructor!");var e=l(arguments.length>0?arguments[0]:void 0),t=function(i){this===G&&t.call(V,i),g(this,F)&&g(this[F],e)&&(this[F][e]=!1),Y(this,e,w(1,i))};return n&&Q&&Y(G,e,{configurable:!0,set:t}),Z(e)}).prototype,"toString",(function(){return this._k})),P.f=_,D.f=J,i(116).f=E.f=$,i(177).f=q,T.f=ee,n&&!i(112)&&A(G,"propertyIsEnumerable",q,!0),u.f=function(e){return Z(c(e))}),a(a.G+a.W+a.F*!W,{Symbol:O});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;te.length>ie;)c(te[ie++]);for(var oe=M(c.store),ge=0;oe.length>ge;)d(oe[ge++]);a(a.S+a.F*!W,"Symbol",{for:function(e){return g(H,e+="")?H[e]:H[e]=O(e)},keyFor:function(e){if(!X(e))throw TypeError(e+" is not a symbol!");for(var t in H)if(H[t]===e)return t},useSetter:function(){Q=!0},useSimple:function(){Q=!1}}),a(a.S+a.F*!W,"Object",{create:function(e,t){return void 0===t?x(e):K(x(e),t)},defineProperty:J,defineProperties:K,getOwnPropertyDescriptor:_,getOwnPropertyNames:$,getOwnPropertySymbols:ee});var ne=C((function(){T.f(1)}));a(a.S+a.F*ne,"Object",{getOwnPropertySymbols:function(e){return T.f(v(e))}}),L&&a(a.S+a.F*(!W||C((function(){var e=O();return"[null]"!=B([e])||"{}"!=B({a:e})||"{}"!=B(Object(e))}))),"JSON",{stringify:function(e){for(var t,i,o=[e],g=1;arguments.length>g;)o.push(arguments[g++]);if(i=t=o[1],(m(t)||void 0!==e)&&!X(e))return p(t)||(t=function(e,t){if("function"==typeof i&&(t=i.call(this,e,t)),!X(t))return t}),o[1]=t,B.apply(L,o)}}),O.prototype[j]||i(81)(O.prototype,j,O.prototype.valueOf),s(O,"Symbol"),s(Math,"Math",!0),s(o.JSON,"JSON",!0)},function(e,t,i){"use strict";i(39);var o=i(109),g=function(e){o.a.call(this,e),this.panoId=e.panoId,this.orthoZoom=e.orthoZoom,this.floorVisibility=e.floorVisibility,this.thumbUrl=e.thumbUrl,this.name=e.name};(g.prototype=Object.create(o.a.prototype)).isPano=function(){return this.panoId&&""!==this.panoId},t.a=g},function(e,t,i){"use strict";function o(e){e=e||{},this.position=new THREE.Vector3,this.quaternion=new THREE.Quaternion,this.update(e)}o.prototype=Object.create(EventEmitter.prototype),o.prototype.isValid=function(){return!!this.cameraMode},o.prototype.update=function(e){return this.cameraMode=e.cameraMode||this.cameraMode,this.pano=e.pano||this.pano,e.position&&this.position.copy(e.position),e.quaternion&&this.quaternion.copy(e.quaternion),this},t.a=o},function(e,t){var i=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=i)},function(e,t){var i=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++i+o).toString(36))}},function(e,t){e.exports=!1},function(e,t){e.exports={}},function(e,t,i){"use strict";i.d(t,"b",(function(){return p})),i.d(t,"a",(function(){return f})),i.d(t,"c",(function(){return m}));i(49),i(69),i(100),i(29);var o=i(25),g=i.n(o),n=i(28),a=i.n(n),A=i(34),r=i.n(A),C=i(35),I=i.n(C),s=i(19),l=i.n(s),c=i(91),u=(i(10),i(7)),d=i(2);i(0);function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function p(e){function t(){window.removeEventListener("click",t),document.removeEventListener("touchstart",t),document.removeEventListener("mousedown",t),$("#player")[0].removeEventListener("click",t),$("#player")[0].removeEventListener("touchstart",t),e()}if(isMobile)if(isMobile&&u.a.detectWeixin()){var i=function(){WeixinJSBridge.invoke("getNetworkType",{},(function(e){t()}),!1)};"undefined"!=typeof WeixinJSBridge?i():document.addEventListener("WeixinJSBridgeReady",i)}else d.a.app&&u.a.detectAndroid()?(window.addEventListener("click",t),$("#player")[0].addEventListener("click",t)):(document.addEventListener("touchstart",t),document.addEventListener("mousedown",t),$("#player")[0].addEventListener("touchstart",t));else t()}function f(e){var t=u.a.detectWeixin()||!isMobile;e&&e((function(e){if(isMobile&&u.a.detectWeixin()){var i=function(){WeixinJSBridge.invoke("getNetworkType",{},(function(i){e&&e(t)}),!1)};"undefined"!=typeof WeixinJSBridge?i():document.addEventListener("WeixinJSBridgeReady",i)}else e&&e(t)}))}var m=function(e){r()(o,e);var t,i=(t=o,function(){var e,i=l()(t);if(h()){var o=l()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return I()(this,e)});function o(){var e;return g()(this,o),(e=i.call(this))._url="",e._loaded=!1,e._config={loop:!1,autoplay:!1},e._isByOther=!1,e._isPause=!1,e._isAutoplay=!1,e}return a()(o,[{key:"url",value:function(e,t){var i=this;return this.remove(),this._url=e,this._sound=new Howl({src:[e],format:["mp3","webm"]}),this._sound.once("load",(function(){i.emit("loaded",i._sound.duration()),i._loaded=!0,t&&t()})),this._sound.on("end",(function(){return i.emit("end")})),this._sound.on("loaderror",(function(e){i.emit("error",e)})),this}},{key:"config",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};for(var t in e)this._config[t]=e[t]}},{key:"play",value:function(){this._url&&!this.isPlaying&&(this._sound.play(),this._isPause=!1,this._isByOther=!1,this.emit("playing"))}},{key:"pause",value:function(e){this.isPlaying&&!0===e&&(this._isByOther=!0),this._url&&this.isPlaying&&(this._sound.pause(),this._isPause=!0),this.emit("paused")}},{key:"stop",value:function(){return this._loaded&&this._sound.stop(),this._isByOther=!1,this._isPause=!1,this.emit("stop"),this}},{key:"time",value:function(e){this._loaded&&this._sound.seek(e)}},{key:"mute",value:function(e){this._loaded&&this._sound.mute(e)}},{key:"setLoop",value:function(e){return this._sound.loop(e),this}},{key:"setAutoplay",value:function(e){return this._isAutoplay=e,this}},{key:"remove",value:function(){this._sound&&(this._sound.stop(),this._sound.unload()),this._url="",this._loaded=!1}},{key:"isReady",value:function(){return this._loaded}},{key:"canPlay",value:function(){return!!this._url}},{key:"resume",value:function(){(this._isAutoplay||this._isPause)&&this._isByOther&&this.play()}},{key:"checkLoaded",value:function(){return this._loaded&&this.emit("loaded",this._sound.duration()),this}},{key:"buffer",value:function(){return this._buffer}},{key:"request",value:function(){var e=this;return new Promise((function(t,i){var o=new XMLHttpRequest;o.open("GET",e._url,!0),o.responseType="arraybuffer",o.onload=function(){var g=(o.status+"")[0];if("0"!==g&&"2"!==g&&"3"!==g)return i();e._buffer=o.response,t(URL.createObjectURL(new Blob([e._buffer])))},o.onerror=function(){i()},o.send()}))}},{key:"isPlaying",get:function(){return!!this._loaded&&(this._sound.playing&&this._sound.playing())}},{key:"isPause",get:function(){return!!this._loaded&&this._isPause}}]),o}(c.a)},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,i){var o=i(187),g=i(162).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,g)}},function(e,t,i){var o=i(175),g=i(96);e.exports=function(e){return o(g(e))}},function(e,t,i){"use strict";i(146);var o=i(36),g=i(10),n=i(202),a=i.n(n),r=i(4);function C(e,t,i){e&&(e=e.toLowerCase().trim());var o=new I.UP.clone,g=Math.PI/3,n=Math.PI/2;switch(e){case"left":i.copy(t),i.applyAxisAngle(o,n);break;case"right":i.copy(t),i.applyAxisAngle(o,-n);break;case"forwardleft":i.copy(t),i.applyAxisAngle(o,g);break;case"forwardright":i.copy(t),i.applyAxisAngle(o,-g);break;case"forward":default:i.copy(t)}return i}function s(e,t){if(e){var i={pano:e,lookAtPoint:null,duration:null,maxDistanceOverride:null,skipWarpingCheck:!1};this.player.flyToPano(i,(function(){t&&t({success:!0,message:"Transition complete."})}))}else R.warn("Showcase -> clickPanoObject: Unable to find pano."),t&&t({success:!1,error:"Unable to find pano."})}function l(e,t){var i=this.findRankedPano(e,t);return i>=0?this.handleToObject[i]:(R.warn("Showcase -> findRankedPanoObject: Unable to find nearby pano."),null)}function u(e,t){var i=this.findRankedtag(e,t);return i>=0?this.handleToObject[i]:(R.warn("Showcase -> findRankedtagObject: Unable to find nearby tag."),null)}function d(e,t){t.copy(I.FORWARD),e.getDirection(t)}var h,p,f={director:null,player:null,controls:null,sceneRenderer:null,model:null,init:function(e,t,i,o){this.director=e,this.player=i,this.controls=t,this.sceneRenderer=o},handleToObject:{},objectToHandle:{},handleCount:0,onMessageReceive:function(e){if(e){var t=e.targetFunction,i=e.params,o=e.onDone;t&&this[t]&&this[t](i,o)}},waitForInit:function(e,t){F.then(t.bind({success:!0,message:"Init complete."}))},moveToPano:function(e,t){var i=new THREE.Euler(0,0,0,"YXZ"),o=new THREE.Quaternion;return function(e,t){var g=e.pano,n=e.rotation,a=e.transition;if(!this.model)return t({success:!1,error:"The model has not been loaded yet"});var C=this.model.panos.get(g);if(!C)return t({success:!1,error:g+" does not exist in this model"});if(!n)return t({sucess:!1,erorr:n+" is not a valid rotation"});i.set(c.Math.degToRad(n.x||0),c.Math.degToRad(n.y||0),c.Math.degToRad(n.z||0),"YXZ"),r.a.info(n.z);var s={success:!0,message:g};if(a===A.FADEOUT)o.setFromEuler(i),this.player.warpToPano(C,o,null,null,b.BLACK,null,null,t.bind(this,s));else{var l,u;a===A.INSTANT&&(l=0,u=0);var d=I.FORWARD.clone().applyEuler(i).add(C.position);this.player.flyToPano({pano:C,lookAtPoint:d,duration:l,aimDuration:u},t.bind(this,s))}}}(),moveInDirection:function(e,t){var i=e.direction;return void 0===v[i]?(R.warn("Showcase -> moveInDirection: Cannot move in invalid direction."),void(t&&t({success:!1,error:"Invalid direction."}))):void this.player.flyLocalDirection(I[i].clone()).then((function(e){t(e?{success:!0,message:"moved "+i}:{success:!1,error:"Cannot move in direction: "+i})}))},getPose:function(e,t){return this.player.camera.position,(new THREE.Euler).setFromQuaternion(this.player.camera.quaternion,"YXZ"),t({success:!0,message:B(this.player)})},takeScreenShot:(h=new THREE.PerspectiveCamera,p=new THREE.WebGLRenderTarget,function(e,t){if(!e.resolution)return t({success:!1,error:"An invalid resolution was specified"});if(-1===e.resolution.width||-1===e.resolution.height){var i=this.sceneRenderer.renderer.getSize();e.resolution.width=i.width,e.resolution.height=i.height}h.layers.set(o.a.DEFAULT),e.visibleObjects&&(e.visibleObjects.showtags&&h.layers.enable(o.a.TAG),e.visibleObjects.showPucks&&h.layers.enable(o.a.PANOMARKERS),e.visibleObjects.showReticule&&h.layers.enable(o.a.RETICULE));var n=e.resolution.width,A=e.resolution.height,r=n/A;h.position.copy(this.sceneRenderer.camera.position),h.quaternion.copy(this.sceneRenderer.camera.quaternion),h.projectionMatrix.copy(this.player.camera.projectionMatrix),h.projectionMatrix.elements[0]=this.player.camera.projectionMatrix.elements[5]/r,h.projectionMatrix.elements[5]=-h.projectionMatrix.elements[5],p.setSize(n,A),this.sceneRenderer.renderer.render(this.sceneRenderer.scene,h,p);var C=new Uint8Array(n*A*4);this.sceneRenderer.renderer.readRenderTargetPixels(p,0,0,n,A,C);var I=a.a.encode({data:C,width:n,height:A,heading:180,pitch:0},e.quality);t({success:!0,message:"data:image/jpg;base64,"+g.default.uint8ToBase64(I.data)})}),findRankedPano:function(e,t){var i=new THREE.Vector3,o=new THREE.Vector3;return function(e,t){d(this.player,o),C(t,o,i);var g=this.player.rankedPanoInDirection(e,i);if(g){var n=this.objectToHandle[g.id];return n||(this.objectToHandle[g.id]=n=this.handleCount++,this.handleToObject[n]=g),n}return R.warn("Showcase -> findRankedPano: Unable to find nearby pano."),-1}}(),findRankedtag:function(e,t){var i=new THREE.Vector3,o=new THREE.Vector3;return function(e,t){d(this.player,o),C(t,o,i);var g=this.player.rankedtagInDirection(e,i);if(g){var n=this.objectToHandle[g.sid];return n||(this.objectToHandle[g.sid]=n=this.handleCount++,this.handleToObject[n]=g),n}return R.warn("Showcase -> findRankedtag: Unable to find nearby tag."),-1}}(),clickNearesttag:function(e){this.clickRankedtag(0,e)},clickRankedtag:function(e,t){var i=u.call(this,e,t);i&&O.call(this,i)},clickNearestPano:function(e,t){this.clickRankedPano(0,e,t)},clickRankedPano:function(e,t,i){var o=l.call(this,e,t);o?s.call(this,o,i):i(null)},clickPano:function(e,t){var i=this.handleTable[e];i?s.call(this,i,t):t(null)},rotateDirection:function(e,t){var i=e.direction,o=e.angle;if(!P.active){var g=0,n=0,a=0,A=0;if(!o||isNaN(o))return R.warn("Showcase -> rotateDirection: Invalid rotation angle."),void(t&&t({success:!1,error:"Invalid rotation angle."}));if(this.player.mode===E.TRANSITIONING)return R.warn("Automation -> rotateDirection: Cannot rotate while transitioning"),void(t&&t({success:!1,error:"Cannot rotate while transitioning"}));if(i===v.RIGHT||i===v.LEFT)i===v.RIGHT&&(o=-o),g=o>0?-1:1,a=o;else{if(i!==v.UP&&i!==v.DOWN)return R.warn("Showcase -> rotateDirection: Invalid direction for rotation: "+i),void(t&&t({success:!1,error:"Invalid direction for rotation."}));if(this.player.mode===E.FLOORPLAN)return R.warn("Showcase -> rotateDirection: Cannot rotate "+i+" in floorplan mode"),void(t&&t({success:!1,error:"Cannot rotate "+i+" in floorplan mode"}));if(i===v.DOWN&&(o=-o),0===(o=N.call(this,o)))return R.warn("Showcase -> rotateDirection: Already at maximum rotation in direction: "+i),void(t&&t({success:!1,error:"Already at maximum rotation in direction: "+i}));n=o>0?1:-1,A=o}var r=o;o=c.Math.degToRad(o),a=c.Math.degToRad(a),A=c.Math.degToRad(A);var C=this.controls.activeControl;C.startRotating(g,n),P.start(a,A,this.player,(function(){C.stopRotating(!0),t&&t({success:!0,message:"Rotated "+r.toFixed(2)+"° in direction: "+e.direction})}))}},rotate:function(){var e=new THREE.Vector3,t=new THREE.Vector3;return function(i,o){var g=i.xAngle,n=i.yAngle;if(!P.active){if(g=g||0,n=n||0,isNaN(g)||isNaN(n))return R.warn("Showcase -> rotate: Invalid rotation angle."),void(o&&o({success:!1,error:"Invalid rotation angle."}));if(this.player.mode===E.TRANSITIONING)return R.warn("Automation -> rotate: Cannot rotate while transitioning"),void(o&&o({success:!1,error:"Cannot rotate while transitioning"}));Math.abs(g)<.01&&(g=0),Math.abs(n)<.01&&(n=0);var a=n;n=N.call(this,n);var A=a>0?"UP":"DOWN";if(!(g=-g)&&a&&!n)return R.warn("Showcase -> rotate: Already at maximum rotation in direction: "+A),void(o&&o({success:!1,error:"Already at maximum rotation in direction: "+A}));a>n&&R.warn("Showcase -> rotate: Reached maximum rotation in direction: "+A);var r=n;n=c.Math.degToRad(n),g=c.Math.degToRad(g),e.copy(this.player.mode===E.FLOORPLAN?I.UP:I.FORWARD),this.player.getDirection(e),t.copy(e).applyAxisAngle(I.UP,g),t.applyAxisAngle(I.RIGHT,n);var C=(e.angleTo(t),g>0?-1:g<0?1:0),s=n>0?1:n<0?-1:0;Math.abs(g)>Math.abs(n)?s*=Math.abs(n/g):Math.abs(n)>Math.abs(g)&&(C*=Math.abs(g/n));var l=this.controls.activeControl;l.startRotating(C,s),P.start(g,n,this.player,(function(){l.stopRotating(!0),o&&o({success:!0,message:"Rotated "+i.xAngle.toFixed(2)+"° horizontally, "+r.toFixed(2)+"° vertically"})}))}}}(),panCamera:function(e,t){function i(e){switch(g.removeAllListeners(T.AutoPanComplete),g.removeAllListeners(T.AutoPanInterrupt),g.removeAllListeners(T.AutoPanClamped),e){case T.AutoPanInterrupt:t({success:!0,message:"Camera panning interrupted."});break;case T.AutoPanClamped:if(g.autoPanPosition.x!==o.x||g.autoPanPosition.z!==o.z){if(Math.abs(this.player.position.x-g.autoPanPosition.x)<.01&&Math.abs(this.player.position.z-g.autoPanPosition.z)<.01)return void t({success:!1,error:"Already at edge of current model bounds."});var i="The view point is outside the bounds for the current model. ";i+="The view point was clamped to "+n(g.target.x,g.target.z),console.warn(i)}case T.AutoPanComplete:t({success:!0,message:"Panned camera to position "+n(g.autoPanPosition.x,g.autoPanPosition.z)})}}if(this.player.mode!==E.DOLLHOUSE&&this.player.mode!==E.FLOORPLAN)return t({success:!1,error:"Camera panning is not available in the current mode: "+this.player.mode});var o=e.position,g=this.player.control;g.setAutoPanPosition(o.x,o.z),g.autoPan=!0;var n=function(e,t){return"("+e.toFixed(2)+", "+t.toFixed(2)+")"};g.on(T.AutoPanComplete,i.bind(this,T.AutoPanComplete)),g.on(T.AutoPanInterrupt,i.bind(this,T.AutoPanInterrupt)),g.on(T.AutoPanClamped,i.bind(this,T.AutoPanClamped))},click:function(e,t){var i=e.x,o=e.y;!0===e.percentage&&(i=i/100*$("#player").width(),o=o/100*$("#player").height()),this.player.handleInputStart(i,o),this.player.updateIntersect(),this.player.handleInputEnd(i,o)},mouseOver:function(e,t){var i=e.x,o=e.y;!0===e.percentage&&(i=i/100*$("#player").width(),o=o/100*$("#player").height()),this.player.handleInputMove(i,o),this.player.updateIntersect()},moveToMode:function(e,t){function i(e){t(e?{success:!1,error:"Failed to load new mode: "+e}:{success:!0,message:"Moved to new mode: "+o})}var o=e.mode;o===E.PANORAMA||o===E.DOLLHOUSE||o===E.FLOORPLAN?this.director.changeMode(o).then((function(){i()}),(function(e){i(e)})):t({success:!1,error:"Invalid mode selection"})}},m={init:function(e,t,i,o,g){f.init(e,t,i,g)},takeScreenShot:function(e,t){f.takeScreenShot(e,t)}};t.a=m},function(e,t,i){"use strict";var o=i(55),g=i(93),n=i(104),a=i(178),A=i(127),r=i(65),C=i(116).f,I=i(135).f,s=i(73).f,l=i(241).trim,c=o.Number,u=c,d=c.prototype,h="Number"==n(i(123)(d)),p="trim"in String.prototype,f=function(e){var t=A(e,!1);if("string"==typeof t&&t.length>2){var i,o,g,n=(t=p?t.trim():l(t,3)).charCodeAt(0);if(43===n||45===n){if(88===(i=t.charCodeAt(2))||120===i)return NaN}else if(48===n){switch(t.charCodeAt(1)){case 66:case 98:o=2,g=49;break;case 79:case 111:o=8,g=55;break;default:return+t}for(var a,r=t.slice(2),C=0,I=r.length;C<I;C++)if((a=r.charCodeAt(C))<48||a>g)return NaN;return parseInt(r,o)}}return+t};if(!c(" 0o1")||!c("0b1")||c("+0x1")){c=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof c&&(h?r((function(){d.valueOf.call(i)})):"Number"!=n(i))?a(new u(f(t)),i,c):f(t)};for(var m,v=i(70)?C(u):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),y=0;v.length>y;y++)g(u,m=v[y])&&!g(c,m)&&s(c,m,I(u,m));c.prototype=d,d.constructor=c,i(84)(o,"Number",c)}},function(e,t,i){var o=i(56)("unscopables"),g=Array.prototype;null==g[o]&&i(81)(g,o,{}),e.exports=function(e){g[o][e]=!0}},function(e,t,i){var o=i(104),g=i(56)("toStringTag"),n="Arguments"==o(function(){return arguments}());e.exports=function(e){var t,i,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(i=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),g))?i:n?o(t):"Object"==(a=o(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,i){var o=i(73).f,g=i(93),n=i(56)("toStringTag");e.exports=function(e,t,i){e&&!g(e=i?e:e.prototype,n)&&o(e,n,{configurable:!0,value:t})}},function(e,t,i){var o=i(67),g=i(222),n=i(162),a=i(161)("IE_PROTO"),A=function(){},r=function(){var e,t=i(153)("iframe"),o=n.length;for(t.style.display="none",i(188).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),r=e.F;o--;)delete r.prototype[n[o]];return r()};e.exports=Object.create||function(e,t){var i;return null!==e?(A.prototype=o(e),i=new A,A.prototype=null,i[a]=e):i=r(),void 0===t?i:g(i,t)}},function(e,t,i){i(147)("Float32",4,(function(e){return function(t,i,o){return e(this,t,i,o)}}))},function(e,t,i){var o=i(58);o(o.P,"Array",{fill:i(163)}),i(120)("fill")},function(e,t,i){"use strict";t.a={TileDownloadSuccess:"tiledownloader.download.success",TileDownloadFailure:"tiledownloader.download.failure",PanoDownloadComplete:"tiledownloader.pano.download.complete"}},function(e,t,i){var o=i(68);e.exports=function(e,t){if(!o(e))return e;var i,g;if(t&&"function"==typeof(i=e.toString)&&!o(g=i.call(e)))return g;if("function"==typeof(i=e.valueOf)&&!o(g=i.call(e)))return g;if(!t&&"function"==typeof(i=e.toString)&&!o(g=i.call(e)))return g;throw TypeError("Can't convert object to primitive value")}},function(e,t,i){var o=i(187),g=i(162);e.exports=Object.keys||function(e){return o(e,g)}},function(e,t,i){"use strict";var o=i(121),g=RegExp.prototype.exec;e.exports=function(e,t){var i=e.exec;if("function"==typeof i){var n=i.call(e,t);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==o(e))throw new TypeError("RegExp#exec called on incompatible receiver");return g.call(e,t)}},function(e,t,i){"use strict";var o=i(67);e.exports=function(){var e=o(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,i){"use strict";i(219);var o=i(84),g=i(81),n=i(65),a=i(96),A=i(56),r=i(158),C=A("species"),I=!n((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),s=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var i="ab".split(e);return 2===i.length&&"a"===i[0]&&"b"===i[1]}();e.exports=function(e,t,i){var l=A(e),c=!n((function(){var t={};return t[l]=function(){return 7},7!=""[e](t)})),u=c?!n((function(){var t=!1,i=/a/;return i.exec=function(){return t=!0,null},"split"===e&&(i.constructor={},i.constructor[C]=function(){return i}),i[l](""),!t})):void 0;if(!c||!u||"replace"===e&&!I||"split"===e&&!s){var d=/./[l],h=i(a,l,""[e],(function(e,t,i,o,g){return t.exec===r?c&&!g?{done:!0,value:d.call(t,i,o)}:{done:!0,value:e.call(i,t,o)}:{done:!1}})),p=h[0],f=h[1];o(String.prototype,e,p),g(RegExp.prototype,l,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)})}}},function(e,t,i){var o=i(84);e.exports=function(e,t,i){for(var g in t)o(e,g,t[g],i);return e}},function(e,t){e.exports=function(e,t,i,o){if(!(e instanceof t)||void 0!==o&&o in e)throw TypeError(i+": incorrect invocation!");return e}},function(e,t,i){var o=i(97),g=Math.max,n=Math.min;e.exports=function(e,t){return(e=o(e))<0?g(e+t,0):n(e,t)}},function(e,t,i){var o=i(177),g=i(115),n=i(117),a=i(127),A=i(93),r=i(183),C=Object.getOwnPropertyDescriptor;t.f=i(70)?C:function(e,t){if(e=n(e),t=a(t,!0),r)try{return C(e,t)}catch(e){}if(A(e,t))return g(!o.f.call(e,t),e[t])}},function(e,t,i){"use strict";i.r(t);var o=i(10),g={note:"iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsTAAALEwEAmpwYAAA4JmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub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0b3J5PgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTI4PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEyODwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+eDeTagAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAARrklEQVR42uyde4xc9XXHP7/fvfPc9drr9a7X2IANASMMSQ0YsBRC2tptiuOQEPNIiBKhJuKRKFVAjZo0PEuJSlSSUIeHRIVSnIR3FblGURylPBKZhzGk1FYhsdcP/Ni1F/a987r39I/7m/Xs7Ozsej0zd+7s/Up3Z8cze33v73x/53fOueecnxIRQsxe6HAIZjfsBrkPZQ5tXjuBFcCZwDLgdKADaDNHExArOkcaGAZ6zdED7AO6gN3ATuAIIIBrXgOvPlWAlwBtjmbgAuAy4FJgJTC/gBT5g4LXqSAFr4XHB8BbwKvAK8AOYMgQwg0JUBuNFQHOAK4A1gOrgLhP15MC3gA2Ay8Ae4AskAsJUDlYRsCnARuA64Bz6/RadwFPAs8C+w1BnJAAM0PMqPJPAjcBnwiYdn0ZeAR40Swd6ZAA00MSWARcC3wdOCXgdtYh4CfAU8BhYCQkQGkkgFOBrwDfMu8bCaPAD4GfAgfM+5AAxjJfClwPfBuY0+Cu9yBwP/AzYK/frqTfBFgErAXuNJb9bMIe4G5gq1kaZhUBIsCFwHeNKzebsRm4D3jTuJANT4AlwBeAu4zBF8IzDO8CfgG838gEuAS4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gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+v7MxQAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAU50lEQVR42uydf3BcV3XHP/e+tz+1si3JPyTHjuOY4MROaR1okwxJamrcYWwyk9J4EpowCc10IOU3JXRKYSAFwiR0QhNIAkOBSUMgIY6ng5tMi4ESTJsETFwYbEJ+2bKMbEuWLUva3/vu6R/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XNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTI4PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEyODwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+mLPY+QAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAASyUlEQVR42uyde5AV1Z3HP6e773vuDMwwzAwPETGwwpb4YtWoiWGDFSFWNj5RUNyNGzQm65oYs9FK1DWrpRvXivGVSCrR6IrKxjKIbkmwNGQLMTx8BCKKg4AwDMO85767++wffS5cZnqGYZxh+t7b36r2cmWmufd8v+f3+51zfr9fCyklPsoXmj8E5Q2jRL6HUJemXuuBWcA0YCowBRgP1KgrBoR63SMDJIBWde0HdgI7gI+BLcA+QAK2ei168ymK2AVo6qoATgPOA84CTgWqC0SRvyh4PRJkwWvh1QZsBt4C1gKbgB4lCNsXwLGxWAHgBGA+cBEwBwiP0udJA38GVgKvAI1ADjB9AQwfdEXwccClwEJgpkc/61ZgObAC2KUEYvkCGBpCypSfD1wPfKHIrOsfgceBN5TryPgCGByiQANwBXAjMKHI46y9wCPAc0ATkPQF4I4IMBlYAtys3pcSUsCDwJPAbvXeF4CKzI8HFgG3AvESX3p3A/cDzwCfjPZScrQF0ADMA+5QkX05oRG4C1itXENZCSAAnA7cppZy5YyVwD3ARrWELHkBTAKuBO5UAZ8PJzC8E3gW+LSUBXAm8CNggc+5K1YBdwPrS00AYeAyFfzU+zwPiH0qGH4BZyOp6AUwCbgB+CGD34svd0jgXuCxkXYJIy2AWcC/Axf7nA4JvwN+jHMSWXQCOAv4L+Bsn8fPhHXAd3FOIItGAF8EHsW7hzbFhq3At4A3h/vGI5ERNA/4lU/+sGKmGtN5XrcA84Bf4GTh+Bh+7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lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEyODwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+UexUTQAAACBjSFJNAAB6JQAAgIMAAPn/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AwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTI4PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEyODwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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ZXhpZjpQaXhlbFhEaW1lbnNpb24+NjQ8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+NjQ8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgIC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Q9pm6H1OTyWFr5zf89J2ZRVHdwDBrwMP5/H+Q8BrAfRwuc1OA1Odh10JC51rvZovnrG6ScLlNjUN3Ow8PJmw0BU5LjeyYZTVTRIutwnp2A1thL6EhS4oU10fzrkrQ0rX3o2lEhZ6pYgJrR+4LmF94nz70xW+eekPsBpds+y4G54xCQs9keA3m8QV/pCDks8AjQkLPVBE3U8DG+BiGvjdXRoSFvq2XZHniwHbGieJZvd6Pe0ZZrMTFvo9mYiOfLHD6iYJl9vJtGdzcHuAyWxdnsP5M6uTNGa5G6M0cMR5eE+g2Xwh8CZwdZj3rlrPPxZgBfBxO5KS1Az84ig7nqHe1KS3xk/ZJmeGyfvZRsjOAMM+fhw+4+wrpkbHRPc+bVENOENz3XV2x52i7lL1eA16hFxOHZFHCDIOwk7HK1RLTtEmMhGncafoA8ChaAQcBo7H/hwNrK6h3l/tkD9unAc/AXnW6jU2cVQ76o2Lu8cQjntqh3NcHBdoLS411jE0gvXckM52ZsqXnZnyUpkiwJIq04xDHJvyvR7fV8UG2Oe5Hh+XK0Biucdd3VaF5NsKCZCIQmQ6azBEpnOkITJY4LEbJPWbBUlXOvmZnpjBvmzB1LmCol0cq4IwuWNJhMlFZbOnsS4LSqyWQMkt/4fKBgyWbquQ2T5YsPRIwuX3lmmzNM0TBhckXH6kCRMvlTBhYkOpEybySZnZGChlpsnaLlvKTL5JUx9KWpxA0lSrtRUkaarYtLllwGZyp819QyZt7oidxU+Ryf27ZOf0emAsMAm4jf/S5u4md9rcC8B7FJg2l1Ti5HNAO6VNnNxOJvCiqNvsEKmzTwa4XBn04wPvUGGpsz60mBNyIZlM0GJwnEx80S4qPHk6G6L0+bl26xSlz48FbjAH7EXz1Jwjkz7fDfxACdLn/x0AcITaDnJQlswAAAAASUVORK5CYII=";var n={};for(var a in g)n[a]=o.default.getBlobSrc(g[a],!0);t.default=n},function(e,t,i){"use strict";i(75),i(52),i(90);var o=i(20),g=i(64),n=i(137),a=i(31),A=i(16);!function(){var e,t=window.TilePrioritizer=function(e,i,o,g,n){this.qualityManager=e,this.maxNavQuality=this.qualityManager.getMaxNavPanoSize(),this.maxZoomQuality=this.qualityManager.getMaxZoomPanoSize(),this.baseSize=i,this.standardSize=o,this.highSize=g,this.ultraHighSize=n,this.priorityCriteria=new t.PriorityCriteria(null,new THREE.Vector3(0,0,0),new THREE.Vector3(0,0,-1),new THREE.Vector3(0,0,-1))},i=Object.freeze({None:0,DirectionalFOV:1}),n=((e=function e(t,i){var o=e._panoSpaceDir,g=e._fovThreshold,n=e._fovThresholdNarrow,a=Math.max(Math.min(o.dot(t.direction),1),-1),A=Math.max(Math.min(o.dot(i.direction),1),-1);return t._dot=a,i._dot=A,a>=g&&A<g?-1:a<g&&A>=g?1:a>=n&&A<n?-1:a<n&&A>=n||t.panoSize>i.panoSize?1:i.panoSize>t.panoSize?-1:-(a-A)})._panoSpaceDir=new THREE.Vector3,e._fovThreshold=-1,e._fovThresholdNarrow=-1,e);t.PriorityCriteria=function(e,t,i,o,g){this.pano=e,this.cameraPosition=(new THREE.Vector3).copy(t),this.cameraDir=(new THREE.Vector3).copy(i),this.panoSpaceDir=(new THREE.Vector3).copy(o),this.upcomingPanos=g,this.copy=function(e){this.pano=e.pano,this.cameraPosition.copy(e.cameraPosition),this.cameraDir.copy(e.cameraDir),this.panoSpaceDir.copy(e.panoSpaceDir),this.upcomingPanos=g},this.zoomingActive=!1},t.DIRECTIONAL_FOV=180,t.DIRECTIONAL_FOV_NARROW=120,t.MAX_SCORED_PANOS_TOCONSIDER=6,t.MAX_SCORED_PANOS_TOADD=2,t.MAX_UPCOMING_PANOS_TOADD=3,t.DIRECTION_SCORE_STRICTNESS=.75,t.appendQueue=function(e,t){if(e&&t)for(var i=0;i<t.length;i++)e.push(t[i])},t.prototype.updateCriteria=function(e,t,i,o){this.priorityCriteria.pano=e,this.priorityCriteria.cameraPosition.copy(t),this.priorityCriteria.cameraDir.copy(i),this.priorityCriteria.upcomingPanos=o,this.maxNavQuality=this.qualityManager.getMaxNavPanoSize(),this.maxZoomQuality=this.qualityManager.getMaxZoomPanoSize()},t.prototype.filterAndPrioritize=function(){var e=[],i=[],o=[];return function(g,n,a){this.populateNeighborPanos(this.priorityCriteria.pano,n,e),this.populateScoredPanos(this.priorityCriteria.pano,n,i,this.priorityCriteria.cameraDir,t.MAX_SCORED_PANOS_TOCONSIDER);var A=this.baseSize,r=this.standardSize,C=this.highSize,I=this.ultraHighSize;this.queueTilesForPano(g,a,this.priorityCriteria.pano,A),this.priorityCriteria.upcomingPanos&&this.queueTilesForPanos(g,this.priorityCriteria.upcomingPanos,a,A,t.MAX_UPCOMING_PANOS_TOADD),o.length=0,this.canDownloadSize(r)&&this.queueTilesInDirectionForPano(o,a,this.priorityCriteria.pano,r,this.priorityCriteria.cameraPosition,this.priorityCriteria.cameraDir,t.DIRECTIONAL_FOV_NARROW),t.sortPanoTiles(o,this.priorityCriteria.pano,this.priorityCriteria.cameraDir),t.appendQueue(g,o),this.queueTilesForPanos(g,i,a,A,t.MAX_SCORED_PANOS_TOADD),o.length=0,this.canDownloadSize(C)&&this.queueTilesInDirectionForPano(o,a,this.priorityCriteria.pano,C,this.priorityCriteria.cameraPosition,this.priorityCriteria.cameraDir,t.DIRECTIONAL_FOV_NARROW),this.canDownloadSize(I)&&this.queueTilesInDirectionForPano(o,a,this.priorityCriteria.pano,I,this.priorityCriteria.cameraPosition,this.priorityCriteria.cameraDir,t.DIRECTIONAL_FOV_NARROW),t.sortPanoTiles(o,this.priorityCriteria.pano,this.priorityCriteria.cameraDir),t.appendQueue(g,o),o.length=0,this.canDownloadSize(r)&&this.queueTilesInDirectionForPano(o,a,this.priorityCriteria.pano,r,this.priorityCriteria.cameraPosition,this.priorityCriteria.cameraDir,t.DIRECTIONAL_FOV),this.canDownloadSize(C)&&this.queueTilesInDirectionForPano(o,a,this.priorityCriteria.pano,C,this.priorityCriteria.cameraPosition,this.priorityCriteria.cameraDir,t.DIRECTIONAL_FOV),this.canDownloadSize(I)&&this.queueTilesInDirectionForPano(o,a,this.priorityCriteria.pano,I,this.priorityCriteria.cameraPosition,this.priorityCriteria.cameraDir,t.DIRECTIONAL_FOV),t.sortPanoTiles(o,this.priorityCriteria.pano,this.priorityCriteria.cameraDir),t.appendQueue(g,o),this.queueTilesForPanos(g,e,a,A)}}(),t.prototype.canDownloadSize=function(e){return this.maxNavQuality>=e||this.maxZoomQuality>=e&&this.zoomingActive},t.prototype.populateNeighborPanos=function(e,t,i){(i=i||[]).length=0;var o=t.getNeighbours(e);for(var g in o)if(o.hasOwnProperty(g)){var n=t.get(g);i.push(n)}return i},t.prototype.populateScoredPanos=function(e,i,g,n,a){(g=g||[]).length=0;var A=[o.a.filters.inPanoDirection(e.position,n,t.DIRECTION_SCORE_STRICTNESS),o.a.filters.not(e)],r=[o.a.scoreFunctions.distanceSquared(e),o.a.scoreFunctions.direction(e.position,n)],C=i.sortByScore(A,r);if(C)for(var I=0;I<C.length&&I<a;I++){var s=C[I].pano;g.push(s)}return g},t.prototype.queueTilesForPanos=function(e,t,i,o,g){for(var n=0,a=0;a<t.length;a++){var A=t[a];if(n+=this.queueTilesForPano(e,i,A,o)>0?1:0,g&&n>=g)break}return n},t.prototype.queueTilesForPano=function(){var e={filter:i.None};return function(t,i,o,g){return this.filterAndQueueTileDownloadDescriptors(t,i,o,g,e)}}(),t.prototype.queueTilesForPanosInDirection=function(){var e=new THREE.Vector3;return function(t,i,o,g,n,a,A,r){for(var C=0,I=0;I<o.length;I++){var s=o[I];if(e.copy(s.position),e.sub(n),e.normalize(),Math.max(Math.min(a.dot(e),1),-1)>=c.getFOVDotThreshold(A))if(C+=this.queueTilesInDirectionForPano(t,i,s,g,n,a,A)>0?1:0,r&&C>=r)break}return C}}(),t.prototype.queueTilesInDirectionForPanos=function(e,t,i,o,g,n,a,A){for(var r=0,C=0;C<i.length;C++){var I=i[C];if(r+=this.queueTilesInDirectionForPano(e,t,I,o,n,a)>0?1:0,A&&r>=A)break}return r},t.prototype.queueTilesInDirectionForPano=function(){var e={filter:i.DirectionalFOV,direction:new THREE.Vector3,fov:60},t=new THREE.Vector3;return function(i,o,g,n,A,r,C){return t.copy(r),a.a.getRelativeDirection(g.quaternion,t),e.direction.copy(t),e.fov=C,this.filterAndQueueTileDownloadDescriptors(i,o,g,n,e)}}(),t.prototype.filterAndQueueTileDownloadDescriptors=function(){var e=[];return function(t,i,o,g,n){var a=i.getTileDownloadDescriptors(o,g);e.length=0,this.filterTileDownloadDescriptors(o,a,e,n);for(var A=0,r=0;r<e.length;r++){var C=e[r];C&&(t.push(C),A++)}return A}}(),t.prototype.filterTileDownloadDescriptors=(new THREE.Vector3,function(e,t,o,g){var n,A;switch(g.filter){case i.DirectionalFOV:for(n=0;n<t.length;n++)A=t[n],a.a.isTileWithinFOV(A.panoSize,A.tileSize,A.face,A.tileX,A.tileY,g.direction,g.fov)&&o.push(A);break;default:for(n=0;n<t.length;n++)A=t[n],o.push(A)}for(n=0;n<o.length;n++)A=o[n],this.canIncludeDescriptor(A)||(o[n]=null)}),t.prototype.canIncludeDescriptor=function(e){return e.status!==g.a.Downloading&&e.status!==g.a.Downloaded},t.prototype.canIncludePano=function(e,t){return!e.isLoaded(t)},t.getFOVDotThreshold=function(e){return Math.cos(THREE.Math.degToRad(e/2))},t.sortPanoTiles=function(e,i,o){n._panoSpaceDir.copy(o),a.a.getRelativeDirection(i.quaternion,n._panoSpaceDir),n._fovThresholdNarrow=A.a.getFOVDotThreshold(t.DIRECTIONAL_FOV_NARROW),n._fovThreshold=A.a.getFOVDotThreshold(t.DIRECTIONAL_FOV),e.sort(n)},t.insertSortedPanoTile=function(e,i,o,g){n._panoSpaceDir.copy(g),a.a.getRelativeDirection(o.quaternion,n._panoSpaceDir),n._fovThresholdNarrow=A.a.getFOVDotThreshold(t.DIRECTIONAL_FOV_NARROW),n._fovThreshold=A.a.getFOVDotThreshold(t.DIRECTIONAL_FOV);for(var r=-1,C=0;C<e.length;C++){if(n(i,e[C])<=0){r=C;break}}if(-1===r)e[e.length]=i;else{for(var I=e.length;I>r;I--)e[I]=e[I-1];e[r]=i}},t.prototype.setZoomingActive=function(e){e!==this.zoomingActive&&(this.zoomingActive=e)}}(),t.a=n.a},function(e,t,i){"use strict";var o=i(0),g=i(5),n=i(1),a=(i(49),i(29),i(69),i(25)),A=i.n(a),r=i(28),C=i.n(r),I=i(34),s=i.n(I),l=i(35),c=i.n(l),u=i(19),d=i.n(u),h=i(8),p=i(6),f=i(83);function m(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var v=function(e){s()(o,e);var t,i=(t=o,function(){var e,i=d()(t);if(m()){var o=d()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return c()(this,e)});function o(e){var t;return A()(this,o),(t=i.call(this,f.a.clampVFOV(n.a.insideFOV),window.innerWidth/window.innerHeight,n.a.insideNear,n.a.insideFar)).controls=null,t.updateAspect(e),t}return C()(o,[{key:"updateAspect",value:function(e){this.aspect=e,this.updateProjectionMatrix()}}]),o}(h.PerspectiveCamera);function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var b=function(e){s()(o,e);var t,i=(t=o,function(){var e,i=d()(t);if(y()){var o=d()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return c()(this,e)});function o(){var e;return A()(this,o),(e=i.call(this,f.a.clampVFOV(p.a.dollhouseFOV),window.innerWidth/window.innerHeight,p.a.dollhouseNear,p.a.dollhouseFar)).controls=null,e}return C()(o,[{key:"updateAspect",value:function(e){this.aspect=e,this.updateProjectionMatrix()}}]),o}(h.PerspectiveCamera);function w(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var x=function(e){s()(o,e);var t,i=(t=o,function(){var e,i=d()(t);if(w()){var o=d()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return c()(this,e)});function o(e){var t;return A()(this,o),(t=i.call(this,-p.a.orthoBase,p.a.orthoBase,p.a.orthoBase/e,-p.a.orthoBase/e,p.a.orthoNear,p.a.orthoFar)).controls=null,t.updateAspect(e),t}return C()(o,[{key:"updateAspect",value:function(e){this.aspect=e,this.top=p.a.orthoBase/this.aspect,this.bottom=-p.a.orthoBase/this.aspect,this.updateProjectionMatrix(),this.delayUpdateAspect=null}}]),o}(h.OrthographicCamera),E=i(140),P=(i(52),{NONE:-1,ROTATE:0,DOLLY:1,PAN:2,ROTATE_DOLLY:3,PAN_DOLLY:4}),T=i(88),D=i(26),M=i(10),S=i(24);function R(e){this.camera=e,this.camera.controls=this,this.enabled=!1,this.target=new THREE.Vector3,this.targetBounds=new THREE.Box3,this.zoomSpeed=1,this.minDistance=0,this.maxDistance=1/0,this.scale=1,this.dollyStart=new THREE.Vector2,this.dollyEnd=new THREE.Vector2,this.dollyDelta=new THREE.Vector2,this.noRotateUpDown=!1,this.rotateSpeed=1,this.keyboardZoomSpeed=0,this.keyPanSpeed=7,this.autoRotate=!1,this.autoRotateSpeed=2,this.minPolarAngle=THREE.Math.degToRad(25),this.maxPolarAngle=THREE.Math.degToRad(65),this.rotationAcceleration=new THREE.Vector2,this.rotationSpeed=new THREE.Vector2,this.rotateStart=new THREE.Vector2,this.rotateEnd=new THREE.Vector2,this.rotateDelta=new THREE.Vector2,this.phiDelta=0,this.thetaDelta=0,this.autoPan=!1,this.autoPanPosition=new THREE.Vector3,this.panAcceleration=new THREE.Vector2,this.panSpeed=new THREE.Vector2,this.panStart=new THREE.Vector2,this.panEnd=new THREE.Vector2,this.panDelta=new THREE.Vector2,this.panOffset=new THREE.Vector3,this.panVector=new THREE.Vector3,this.offset=new THREE.Vector3,this.lastPosition=new THREE.Vector3,this.state=P.NONE,this.mouseActions={},this.mouseActions[T.a.LEFT]=P.ROTATE,this.mouseActions[T.a.MIDDLE]=P.DOLLY,this.mouseActions[T.a.RIGHT]=P.PAN,this.touchActions={},this.touchActions[1]=P.ROTATE,this.touchActions[2]=P.PAN_DOLLY,this.lastMoveTime=0,this.pointersLimit=2,this.pointers=[],this.angle=1e-6}R.prototype=Object.create(EventEmitter.prototype),R.prototype.setBounds=function(e){this.targetBounds=e},R.prototype.isEngaged=function(){return this.state!==P.NONE},R.prototype.rotateLeft=function(e){void 0===e&&(e=this.getAutoRotationAngle()),this.thetaDelta-=e},R.prototype.rotateUp=function(e){this.noRotateUpDown||(void 0===e&&(e=this.getAutoRotationAngle()),this.phiDelta-=e)},R.prototype.panLeft=function(e){isNaN(e)&&(e=0);var t=this.camera.matrix.elements;this.panOffset.set(t[0],0,t[2]).normalize(),this.panOffset.multiplyScalar(-e),this.panVector.add(this.panOffset)},R.prototype.panUp=function(e){isNaN(e)&&(e=0);var t=this.camera.matrix.elements;this.panOffset.set(t[4],0,t[6]).normalize(),this.panOffset.multiplyScalar(-e),this.panVector.add(this.panOffset)},R.prototype.setAutoPanPosition=function(e,t){var i=new THREE.Vector3,o=new THREE.Vector3;return function(e,t){i.copy(this.camera.position),void 0===e&&null===e||i.setX(e),void 0===t&&null===t||i.setZ(t);var g=this.camera.position.distanceTo(this.target),n=Vector3.FORWARD.clone().applyQuaternion(this.camera.quaternion);this.targetClamped=!1,o.copy(i).addScaledVector(n,g),this.targetBounds.containsPoint(o)||(this.targetBounds.clampPoint(o,o),i.copy(o).addScaledVector(n,-g),this.targetClamped=!0),this.autoPanPosition.x=i.x,this.autoPanPosition.z=i.z,this.autoPan&&this.stopAutoPanning()}}(),R.prototype.stopAutoPanning=function(){var e=this.autoPan;this.autoPan=!1,this.emit(this.targetClamped?D.a.AutoPanClamped:e?D.a.AutoPanInterrupt:D.a.AutoPanComplete)},R.prototype.dollyIn=function(e){void 0===e&&(e=this.getZoomScale()),this.scale/=e},R.prototype.dollyOut=function(e){void 0===e&&(e=this.getZoomScale()),this.scale*=e},R.prototype.updatePan=function(e){if(this.panSpeed.multiplyScalar(1-n.a.panFriction).addScaledVector(this.panAcceleration,n.a.panAccelerationOutside*e),this.pan(-this.panSpeed.x,this.panSpeed.y),this.autoPan){var t=(new THREE.Vector3).copy(this.autoPanPosition).sub(this.camera.position);t.setY(0).clampLength(0,50*e),this.target.add(t),this.camera.position.add(t),this.autoPanPosition.x===this.camera.position.x&&this.autoPanPosition.z===this.camera.position.z&&(this.autoPan=!1,this.stopAutoPanning())}},R.prototype.update=function(e,t){e||(e=1/60),this.rotationSpeed.multiplyScalar(1-n.a.rotationFriction).addScaledVector(this.rotationAcceleration,n.a.rotationAccelerationOutside*e),this.rotateLeft(-this.rotationSpeed.x),this.noRotateUpDown||this.rotateUp(this.rotationSpeed.y),this.updatePan(e);var i=this.camera.position;this.offset.copy(i).sub(this.target);var o=Math.atan2(this.offset.x,this.offset.z),g=Math.atan2(Math.sqrt(this.offset.x*this.offset.x+this.offset.z*this.offset.z),this.offset.y);this.autoRotate&&this.rotateLeft(this.getAutoRotationAngle()),o+=this.thetaDelta,g+=this.phiDelta,g=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,g)),g=Math.max(this.angle,Math.min(Math.PI-this.angle,g));var a=this.updateZoom();a=Math.max(this.minDistance,Math.min(this.maxDistance,a)),this.target.add(this.panVector),this.targetBounds.clampPoint(this.target,this.target),this.offset.x=a*Math.sin(g)*Math.sin(o),this.offset.y=a*Math.cos(g),this.offset.z=a*Math.sin(g)*Math.cos(o),i.copy(this.target).add(this.offset),this.camera.lookAt(this.target),this.thetaDelta=0,this.phiDelta=0,this.scale=1,this.panVector.set(0,0,0),this.lastPosition.distanceTo(this.camera.position)>0&&this.lastPosition.copy(this.camera.position)},R.prototype.getAutoRotationAngle=function(){return 2*Math.PI/60/60*this.autoRotateSpeed},R.prototype.getZoomScale=function(){return Math.pow(.95,this.zoomSpeed)},R.prototype.onMouseDown=function(e){if(this.enabled){switch(e.preventDefault(),this.stopAutoPanning(),this.mouseDown=!0,this.state=this.mouseActions[e.button],this.state){case P.ROTATE:this.rotateStart.set(e.clientX,this.noRotateUpDown?0:e.clientY),this.rotationSpeed.set(0,0);break;case P.DOLLY:this.dollyStart.set(e.clientX,e.clientY);break;case P.PAN:this.panStart.set(e.clientX,e.clientY)}this.emit(D.a.InputStart,"mouse")}},R.prototype.onMouseMove=function(e){if(this.enabled&&this.mouseDown&&0!==e.buttons){switch(e.preventDefault(),this.state){case P.ROTATE:this.rotateEnd.set(e.clientX,this.noRotateUpDown?0:e.clientY),this.rotateDelta.subVectors(this.rotateEnd,this.rotateStart),this.rotateLeft(2*Math.PI*this.rotateDelta.x/window.innerWidth*this.rotateSpeed),this.rotateUp(2*Math.PI*this.rotateDelta.y/window.innerHeight*this.rotateSpeed),this.rotateStart.copy(this.rotateEnd);break;case P.DOLLY:this.dollyEnd.set(e.clientX,e.clientY),this.dollyDelta.subVectors(this.dollyEnd,this.dollyStart),(this.dollyDelta.y>0?this.dollyIn:this.dollyOut).call(this),this.dollyStart.copy(this.dollyEnd);break;case P.PAN:this.panEnd.set(e.clientX,e.clientY),this.panDelta.subVectors(this.panEnd,this.panStart),this.pan(this.panDelta.x,this.panDelta.y),this.panStart.copy(this.panEnd)}this.emit(D.a.Move,"mouse"),this.lastMoveTime=e.timeStamp,this.update()}},R.prototype.onMouseUp=function(e){this.enabled&&(this.mouseDown=!1,this.state=P.NONE,"mouseover"!==e.type&&(e.timeStamp>this.lastMoveTime+100?(this.rotationSpeed.set(0,0),this.rotationAcceleration.set(0,0)):this.rotationAcceleration.set(-this.rotateDelta.x,this.rotateDelta.y),this.update(),this.rotationAcceleration.set(0,0),this.rotateDelta.set(0,0)))},R.prototype.onMouseOver=function(e){0!==e.which&&0!==e.buttons||this.onMouseUp(e)},R.prototype.onMouseWheel=function(e){if(this.enabled&&n.a.useWheel){this.emit(D.a.Move,"wheel");var t=e.wheelDelta||-e.detail,i=this.dollyIn;t>0&&(i=this.dollyOut),i.call(this),this.update()}},R.prototype.onKeyDown=function(e){this.enabled&&(e.metaKey||e.ctrlKey||(e.preventDefault(),this.handleKeyDown(e.which)))},R.prototype.navRotationAcc=function(e,t){"y"===e?this.noRotateUpDown?this.keyboardZoomSpeed=t:this.rotationAcceleration.y=t:this.rotationAcceleration.x=t},R.prototype.navPanAcc=function(e,t){this.stopAutoPanning(),this.panAcceleration[e]=t},R.prototype.handleKeyDown=function(e){var t=!0;switch(e){case S.a.UPARROW:case S.a.I:this.navRotationAcc("y",1);break;case S.a.DOWNARROW:case S.a.K:this.navRotationAcc("y",-1);break;case S.a.LEFTARROW:case S.a.J:this.navRotationAcc("x",-1);break;case S.a.RIGHTARROW:case S.a.L:this.navRotationAcc("x",1);break;case S.a.W:this.navPanAcc("y",1);break;case S.a.S:this.navPanAcc("y",-1);break;case S.a.A:this.navPanAcc("x",-1);break;case S.a.D:this.navPanAcc("x",1);break;default:t=!1}t&&this.emit(D.a.Move,"key")},R.prototype.onKeyUp=function(e){this.enabled&&(e.preventDefault(),e.stopPropagation(),this.handleKeyUp(e.which))},R.prototype.handleKeyUp=function(e){switch(e){case S.a.I:case S.a.K:case S.a.UPARROW:case S.a.DOWNARROW:this.keyboardZoomSpeed=0,this.rotationAcceleration.y=0;break;case S.a.J:case S.a.L:case S.a.LEFTARROW:case S.a.RIGHTARROW:this.rotationAcceleration.x=0;break;case S.a.S:case S.a.W:this.panAcceleration.y=0;break;case S.a.A:case S.a.D:this.panAcceleration.x=0}},R.prototype.onTouchStart=function(e){if(this.enabled||this.state===P.NONE){e.preventDefault(),e.stopPropagation(),this.stopAutoPanning();var t=function(){if(2===e.touches.length){var t=e.touches[0].pageX-e.touches[1].pageX,i=e.touches[0].pageY-e.touches[1].pageY;this.dollyStart.set(t,i)}}.bind(this),i=function(){this.panStart.set(M.default.average(e.touches,"pageX"),M.default.average(e.touches,"pageY"))}.bind(this),o=function(){this.rotateStart.set(M.default.average(e.touches,"pageX"),M.default.average(e.touches,"pageY"))}.bind(this);switch(this.state=this.touchActions[e.touches.length],this.state){case P.PAN_DOLLY:t();case P.PAN:i();break;case P.ROTATE_DOLLY:t();case P.ROTATE:o()}this.rotationSpeed.set(0,0),this.emit(D.a.InputStart,"touch")}},R.prototype.onTouchMove=function(e){if(this.enabled&&this.state!==P.NONE){e.preventDefault(),e.stopPropagation();var t=function(){var t=e.touches[0].pageX-e.touches[1].pageX,i=e.touches[0].pageY-e.touches[1].pageY;this.dollyEnd.set(t,i);var o=this.dollyStart.length()-this.dollyEnd.length();o>0?this.dollyOut(1+o/200):this.dollyIn(1-o/200),this.dollyStart.copy(this.dollyEnd)}.bind(this),i=function(){this.panEnd.set(M.default.average(e.touches,"pageX"),M.default.average(e.touches,"pageY")),this.panDelta.subVectors(this.panEnd,this.panStart),this.pan(this.panDelta.x,this.panDelta.y),this.panStart.copy(this.panEnd),this.rotateDelta.set(0,0)}.bind(this),o=function(){this.rotateEnd.set(M.default.average(e.touches,"pageX"),M.default.average(e.touches,"pageY")),this.rotateDelta.subVectors(this.rotateEnd,this.rotateStart),this.rotateLeft(2*Math.PI*this.rotateDelta.x/window.innerWidth*this.rotateSpeed),this.rotateUp(2*Math.PI*this.rotateDelta.y/window.innerHeight*this.rotateSpeed),this.rotateStart.copy(this.rotateEnd)}.bind(this),g=function(){if(2===e.touches.length){var i=window.devicePixelRatio||1,g=e.touches[1].pageX-e.touches[0].pageX,a=e.touches[1].pageY-e.touches[0].pageY,A=Math.sqrt(g*g+a*a);if(Math.abs(this.dollyStart.length()-A)>n.a.input.touchMoveThreshold*i)this.state=P.DOLLY,t();else{var r=M.default.average(e.touches,"pageX"),C=M.default.average(e.touches,"pageY");this.rotateDelta.set(r,C).sub(this.rotateStart).length()>n.a.input.touchMoveThreshold&&(this.state=P.ROTATE,this.rotateStart.set(r,C),o())}}}.bind(this);switch(this.state){case P.PAN_DOLLY:t();case P.PAN:i();break;case P.ROTATE_DOLLY:g();break;case P.DOLLY:t();break;case P.ROTATE:o();break;default:this.state=P.NONE}this.lastMoveTime=e.timeStamp,this.emit(D.a.Move,"touch")}},R.prototype.onTouchEnd=function(e){this.enabled&&(this.state===P.ROTATE&&(e.timeStamp>this.lastMoveTime+100?(this.rotationSpeed.set(0,0),this.rotationAcceleration.set(0,0)):this.rotationAcceleration.set(-this.rotateDelta.x,this.rotateDelta.y)),this.state=P.NONE,this.update(),this.rotationAcceleration.set(0,0),this.rotateDelta.set(0,0))},R.prototype.onPointerDown=function(e){this.enabled&&("touch"===e.pointerType&&(this.pointers.length<this.pointersLimit&&this.pointers.push({id:e.pointerId,pageX:e.pageX,pageY:e.pageY}),e.touches=this.pointers,this.onTouchStart(e)),this.emit(D.a.InputStart,"pointer"))},R.prototype.onPointerMove=function(e){this.enabled&&"touch"===e.pointerType&&(this.pointers.forEach((function(t){e.pointerId===t.id&&(t.pageX=e.pageX,t.pageY=e.pageY)})),e.touches=this.pointers,this.onTouchMove(e))},R.prototype.onPointerUp=function(e){this.enabled&&"touch"===e.pointerType&&(this.pointers.forEach(function(t,i){e.pointerId===t.id&&this.pointers.splice(i,1)}.bind(this)),e.touches=this.pointers,this.onTouchEnd(e))},R.prototype.reset=function(){this.state=P.NONE,this.stopAutoPanning(),this.rotationSpeed.set(0,0),this.rotationAcceleration.set(0,0),this.panSpeed.set(0,0),this.panAcceleration.set(0,0)},R.prototype.toJSON=function(){return{camera_position:{x:math.toPrecision(this.camera.position.x,4),y:math.toPrecision(this.camera.position.y,4),z:math.toPrecision(this.camera.position.z,4)},camera_quaternion:{x:math.toPrecision(this.camera.quaternion.x,4),y:math.toPrecision(this.camera.quaternion.y,4),z:math.toPrecision(this.camera.quaternion.z,4),w:math.toPrecision(this.camera.quaternion.w,4)}}};var k=R;function O(e,t){k.call(this,e),this.minPolarAngle=n.a.dollhouseDefault.minPolarAngle,this.maxPolarAngle=n.a.dollhouseDefault.maxPolarAngle,this.minDistance=n.a.dollhouseDefault.minDistance,this.maxDistance=n.a.dollhouseDefault.maxDistance,this.adjustedMinDistance=this.minDistance,this.adjustedMaxDistance=this.maxDistance,this.dom=t}O.prototype=Object.create(k.prototype),O.prototype.pan=function(e,t){this.camera.updateMatrix();var i=this.camera.position.clone().sub(this.target).length();i*=Math.tan(this.camera.fov/2*Math.PI/180),this.panLeft(2*e*i/window.innerHeight),this.panUp(-2*t*i/window.innerHeight)},O.prototype.updateZoom=function(){return this.offset.length()*this.scale},O.prototype.setZoomBounds=function(e){var t=e.min.distanceTo(e.max);this.adjustedMinDistance=Math.max(Math.min(t/2,n.a.dollhouseDefault.minDistance),0),this.adjustedMaxDistance=Math.min(Math.max(t,n.a.dollhouseDefault.maxDistance),n.a.skyboxRadius),this.minDistance=this.adjustedMinDistance,this.maxDistance=this.adjustedMaxDistance},O.prototype.resetRanges=function(e,t){e?(this.minDistance=Math.min(e,this.minDistance),this.maxDistance=Math.max(e,this.maxDistance)):(this.minDistance=this.adjustedMinDistance,this.maxDistance=this.adjustedMaxDistance),t?(this.minPolarAngle=THREE.Math.degToRad(-15),this.maxPolarAngle=THREE.Math.degToRad(89.9)):(this.minPolarAngle=n.a.dollhouseDefault.minPolarAngle,this.maxPolarAngle=n.a.dollhouseDefault.maxPolarAngle)},O.prototype.toJSON=function(){return k.prototype.toJSON.call(this)};var L=O,B=i(44),F=i.n(B),j=i(7),N=(i(51),i(4),i(2));function H(e,t){k.call(this,e),this.minDistance=15,this.maxDistance=50,this.noRotateUpDown=!0,this.minPolarAngle=0,this.maxPolarAngle=0,this.mouseActions[T.a.LEFT]=P.PAN,this.mouseActions[T.a.MIDDLE]=P.DOLLY,this.mouseActions[T.a.RIGHT]=P.ROTATE,this.touchActions[1]=P.PAN,this.touchActions[2]=P.ROTATE_DOLLY,this.absoluteScale=1,this.currentScale=1,this.dom=t,this.plane=null,this.cadSize=null,this.floorTexture=null}H.prototype=Object.create(k.prototype),H.prototype.createFloorPlanImg=function(e,t){if(null!=this.floorTexture){var i=new THREE.PlaneBufferGeometry(e,t),g=new THREE.MeshBasicMaterial({map:this.floorTexture,opacity:1,transparent:!0,side:THREE.DoubleSide,depthTest:!1});g.needsUpdate=!0,this.plane=new THREE.Mesh(i,g),this.plane.position.x=o.a.player.model.center.x,this.plane.position.z=o.a.player.model.center.z,this.plane.position.y=o.a.player.model.boundingBox.max.y+.1,this.plane.rotateX(-Math.PI/2),o.a.sceneRenderer.scene.add(this.plane)}},H.prototype.createFloorTexture=function(){var e=N.a.prefixServerOSS+"images/images"+o.a.player.projectNum+"/floorplan.png";edit&&(e=N.a.prefixServerECS+"images/images"+o.a.player.projectNum+"/floorplan.png"),o.a.rebuild?e+="?m="+(new Date).getTime():e+="?m="+o.a.player.model.urls.getPost(),null!=this.floorTexture&&(this.floorTexture.dispose(),this.floorTexture=null),(new THREE.TextureLoader).load(e,function(e){e.needsUpdate=!0,this.floorTexture=e}.bind(this),(function(e){}),(function(e){console.log("没有floorplan.png!")}))},H.prototype.createFloorPlane=function(){this.camera.right,this.camera.left,this.camera.top,this.camera.bottom;var e=o.a.player.model.boundingBox.max.x-o.a.player.model.boundingBox.min.x,t=o.a.player.model.boundingBox.max.z-o.a.player.model.boundingBox.min.z;"object"==F()(Store.metadata.cadInfo)?this.cadSize=Store.metadata.cadInfo:this.cadSize=JSON.parse(Store.metadata.cadInfo);var i=(this.floorTexture.image.width-this.cadSize.left-this.cadSize.right)/e,g=(this.floorTexture.image.height-this.cadSize.top-this.cadSize.bottom)/t;this.plane="nofile",this.createFloorPlanImg(e+(this.cadSize.left+this.cadSize.right)/i,t+(this.cadSize.top+this.cadSize.bottom)/g),edit&&o.a.gui.changeCadVisible()},H.prototype.remomveFloorPlane=function(){null!=this.plane&&(this.plane.parent.remove(this.plane),this.plane.geometry.dispose(),this.plane.material.dispose()),this.plane=null},H.prototype.updateFloorCad=function(){if(null!=this.plane&&"nofile"!=this.plane){var e=this.plane.geometry.parameters.width,t=this.plane.geometry.parameters.height,i=o.a.player.model.boundingBox.max.x-o.a.player.model.boundingBox.min.x,g=o.a.player.model.boundingBox.max.z-o.a.player.model.boundingBox.min.z,n=(this.camera.right,this.camera.left,this.camera.top,this.camera.bottom,window.innerWidth/(this.camera.right-this.camera.left));this.plane.scale.x=(i+(this.cadSize.left+this.cadSize.right)/n)/e,this.plane.scale.z=(g+(this.cadSize.left+this.cadSize.right)/n)/t}},H.prototype.zoomToContain=function(e){var t=Math.max(e.x,e.z),i=Math.min(e.x,e.z),o=Math.max(t,i*this.camera.aspect),g=Math.max(i,t*this.camera.aspect);this.absoluteScale=(j.a.aspectRatio()<1?g:o)/2/n.a.orthoBase*2,this.currentScale=this.absoluteScale},H.prototype.getDefaultAbsoluteScale=function(e){var t=Math.max(e.x,e.z),i=Math.min(e.x,e.z),o=Math.max(t,i*this.camera.aspect),g=Math.max(i,t*this.camera.aspect);return(j.a.aspectRatio()<1?g:o)/2/n.a.orthoBase*1.2},H.prototype.rotateToView=function(e,t){var i=0;i=j.a.aspectRatio()<1===e.x<e.z?0:Math.PI/2,this.rotateLeft(i),this.update(0)},H.prototype.pan=function(e,t){this.camera.updateMatrix(),this.panLeft(e*(this.camera.right-this.camera.left)/$("#player").width()),this.panUp(-t*(this.camera.top-this.camera.bottom)/$("#player").height())},H.prototype.updateZoom=function(){this.absoluteScale*=this.scale-.03*this.keyboardZoomSpeed,this.absoluteScale=Math.max(n.a.zoomNearLimit,Math.min(this.absoluteScale,n.a.zoomFarLimit)),this.currentScale=.8*this.currentScale+.2*this.absoluteScale;var e=this.snapshotTopAspect?this.camera.aspect/this.snapshotTopAspect:1;return this.camera.left=-n.a.orthoBase*this.currentScale*e,this.camera.right=n.a.orthoBase*this.currentScale*e,this.camera.top=n.a.orthoBase*this.currentScale/this.camera.aspect*e,this.camera.bottom=-n.a.orthoBase*this.currentScale/this.camera.aspect*e,(edit&&o.a.editor.cadImgVisiCon&&"settings"==o.a.editor.atPanel?o.a.editor.cadImgVisiCon.state:1==Store.metadata.cadImgVisi||null==Store.metadata.cadImgVisi)&&null==this.plane&&null!=this.floorTexture&&null!=Store.metadata.cadInfo&&this.createFloorPlane(),this.camera.updateProjectionMatrix(),this.offset.length()},H.prototype.toJSON=function(){var e=new THREE.Quaternion,t=(new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(0,1,0),THREE.Math.degToRad(90)),i=new THREE.Quaternion;return function(){var o=k.prototype.toJSON.call(this);return e.copy(o.camera_quaternion),i.copy(t),i.multiply(e),o.camera_quaternion.x=math.toPrecision(i.x,4),o.camera_quaternion.y=math.toPrecision(i.y,4),o.camera_quaternion.z=math.toPrecision(i.z,4),o.camera_quaternion.w=math.toPrecision(i.w,4),o.ortho_zoom=math.toPrecision(this.currentScale*this.camera.aspect,4),o}};var z=H,V=i(71);function G(){this.activeControl=null,this.controls={},this.cameras={}}G.prototype=Object.create(EventEmitter.prototype),G.prototype.init=function(e,t,i){this.setUpControls(e,i),this.bindEvents(e,t)},G.prototype.activateControls=function(e){this.activeControl&&(this.activeControl.reset(),this.activeControl.enabled=!1),this.controls[e]&&(this.controls[e].enabled=!0),this.activeControl=this.controls[e]},G.prototype.setUpControls=function(e,t){var i={},o={},n="miniView"==t||"spotPlayer"==t?[g.a.PANORAMA]:[g.a.PANORAMA,g.a.DOLLHOUSE,g.a.FLOORPLAN],a=[v,b,x],A=[E.a,L,z];n.forEach(function(t,g){i[t]=new a[g],o[t]=new A[g](i[t],e),o[t].on(D.a.Move,this.emit.bind(this,D.a.Move)),o[t].on(D.a.InputStart,this.emit.bind(this,D.a.InputStart)),o[t].on(D.a.InteractionDirect,this.emit.bind(this,D.a.InteractionDirect)),o[t].on(D.a.InteractionKey,this.emit.bind(this,D.a.InteractionKey)),o[t].on(D.a.Pinch,this.emit.bind(this,D.a.Pinch)),o[t].on(D.a.Scroll,this.emit.bind(this,D.a.Scroll))}.bind(this)),this.controls=o,this.cameras=i},G.prototype.bindEvents=function(e,t){e.addEventListener("mousemove",this.onMouseMove.bind(this)),e.addEventListener("mousedown",this.onMouseDown.bind(this)),e.addEventListener("mouseup",this.onMouseUp.bind(this)),e.addEventListener("mouseover",this.onMouseOver.bind(this)),n.a.useWheel&&(e.addEventListener("mousewheel",this.onMouseWheel.bind(this)),e.addEventListener("DOMMouseScroll",this.onMouseWheel.bind(this))),e.addEventListener("touchstart",this.onTouchStart.bind(this)),e.addEventListener("touchmove",this.onTouchMove.bind(this)),e.addEventListener("touchend",this.onTouchEnd.bind(this)),e.addEventListener("contextmenu",(function(e){e.preventDefault()})),e.addEventListener("pointerdown",this.onPointerDown.bind(this)),e.addEventListener("pointermove",this.onPointerMove.bind(this)),e.addEventListener("pointerup",this.onPointerUp.bind(this)),e.addEventListener("pointerout",this.onPointerCancel.bind(this)),e.addEventListener("pointercancel",this.onPointerCancel.bind(this)),document.addEventListener("keydown",this.onKeyDown.bind(this)),document.addEventListener("keyup",this.onKeyUp.bind(this)),t&&t.on(V.a.ActiveModelChanged,function(e){this.setModelForControls(e.model)}.bind(this))},G.prototype.setModelForControls=function(e){this.controls[g.a.DOLLHOUSE].setZoomBounds(e.boundingBox);var t=e.boundingBox.clone().expandByScalar(n.a.modelBoundsPadding);[g.a.DOLLHOUSE,g.a.FLOORPLAN].forEach(function(e){this.controls[e].setBounds(t)}.bind(this))},G.prototype.onMouseDown=function(e){e.preventDefault(),this.activeControl&&this.activeControl.onMouseDown(e)},G.prototype.onMouseMove=function(e){e.preventDefault(),this.activeControl&&this.activeControl.onMouseMove(e)},G.prototype.onMouseUp=function(e){e.preventDefault(),this.activeControl&&this.activeControl.onMouseUp(e)},G.prototype.onMouseOver=function(e){e.preventDefault(),this.activeControl&&this.activeControl.onMouseOver(e)},G.prototype.onMouseWheel=function(e){e.preventDefault(),this.activeControl&&this.activeControl.onMouseWheel(e)},G.prototype.onTouchStart=function(e){e.preventDefault(),this.activeControl&&this.activeControl.onTouchStart(e)},G.prototype.onTouchMove=function(e){e.preventDefault(),this.activeControl&&this.activeControl.onTouchMove(e)},G.prototype.onTouchEnd=function(e){e.preventDefault(),this.activeControl&&this.activeControl.onTouchEnd(e)},G.prototype.onPointerDown=function(e){if(e.preventDefault(),this.activeControl)switch(e.pointerType){case"mouse":this.activeControl.onMouseDown(e);break;default:this.activeControl.onPointerDown(e)}},G.prototype.onPointerMove=function(e){if(e.preventDefault(),this.activeControl)switch(e.pointerType){case"mouse":this.activeControl.onMouseMove(e);break;default:this.activeControl.onPointerMove(e)}},G.prototype.onPointerUp=function(e){if(e.preventDefault(),this.activeControl)switch(e.pointerType){case"mouse":this.activeControl.onMouseUp(e);break;default:this.activeControl.onPointerUp(e)}},G.prototype.onPointerCancel=function(e){e.preventDefault(),this.activeControl&&"mouse"!==e.pointerType&&this.activeControl.onPointerUp(e)},G.prototype.onKeyDown=function(e){if(e.metaKey||e.ctrlKey);else{if(!N.a.keyCon)return;e.preventDefault(),this.activeControl&&this.activeControl.onKeyDown(e)}},G.prototype.onKeyUp=function(e){e.preventDefault(),this.activeControl&&this.activeControl.onKeyUp(e)},o.a.controls=new G;t.a=G},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,i){"use strict";i(52);var o=i(1),g=i(6),n=i(16),a=i(88),A=i(26),r=i(10),C=i(24),I=i(2),s=i(0),l=i(9),c=i(15),u=i(18);i(4);function d(e,t){this.camera=e,this.camera.controls=this,this.target=new THREE.Vector3(0,0,0),this.lookVector=new THREE.Vector3,this.lookSpeed=.05,this.rotationAcc=new THREE.Vector2,this.rotationSpeed=new THREE.Vector2,this.lat=0,this.lon=0,this.phi=0,this.theta=0,this.enabled=!1,this.locked=!1,this.pointer=new THREE.Vector2(0,0),this.pointersLimit=2,this.pointers=[],this.rotationHistory=[],this.rotationDifference=new THREE.Vector2,this.pointerDragOn=!1,this.pointerDragStart=new THREE.Vector2(0,0),this.pinchDistance=0,this.moveStart=new THREE.Vector2,this.moveTolerance=.01,this.dom=t}d.prototype=Object.create(EventEmitter.prototype),d.prototype.usable=function(){return this.enabled&&!this.locked},d.prototype.lookAt=function(e){var t=this.camera.position.clone().sub(e),i=Math.atan(t.z/t.x);i+=t.x<0?Math.PI:0,i+=t.x>0&&t.z<0?2*Math.PI:0,this.lon=THREE.Math.radToDeg(i)+180;var o=Math.sqrt(t.x*t.x+t.z*t.z),g=Math.atan(t.y/o);this.lat=-THREE.Math.radToDeg(g)},d.prototype.startLookAt=function(e,t,i){var o=i&&(null!=i.lon||null!=i.lat);if(!o){var g=t?t.clone().sub(e):this.camera.position.clone().sub(e),n=Math.atan(g.z/g.x);n+=g.x<0?Math.PI:0,n+=g.x>0&&g.z<0?2*Math.PI:0;var a=THREE.Math.radToDeg(n)+180,A=Math.sqrt(g.x*g.x+g.z*g.z),r=Math.atan(g.y/A),C=-THREE.Math.radToDeg(r),I=(a-this.lon)%360;Math.abs(I)>180&&(I>0?I-=360:I+=360),a=this.lon+I;I=(C-this.lat)%360;Math.abs(I)>180&&(I>0?I-=360:I+=360),C=this.lat+I}var s=1200,d=u.a.easeInOutQuad;if(null!=i){if(i.soon)return this.lon=a,void(this.lat=C);if(i.speed){if(o)var h=(i.lon?Math.abs(i.lon-this.lon):0)+(i.lat?Math.abs(i.lat-this.lat):0);else h=Math.abs(a-this.lon)+Math.abs(C-this.lat);s=h/i.speed,i.time&&(s=Math.min(i.time,s))}else i.time&&(s=i.time);i.fuc&&setTimeout(i.fuc,s),i.constantSpeed&&(d=null)}o?(i.lon&&l.a.start(c.a.property(this,"lon",i.lon),s,null,0,d),i.lat&&l.a.start(c.a.property(this,"lat",i.lat),s,null,0,d)):(l.a.start(c.a.property(this,"lon",a),s,null,0,d),l.a.start(c.a.property(this,"lat",C),s,null,0,d))},d.prototype.startRotationFrom=function(e,t){var i=n.a.handelPadding(e,t,this.dom);n.a.convertScreenPositionToNDC(i.x,i.y,this.pointer,this.dom),this.pointerDragOn=!0,this.pointerDragStart.copy(this.pointer),this.moveStart.copy(this.pointer),this.rotationHistory=[],this.rotationSpeed.set(0,0)},d.prototype.onMouseOver=function(e){!this.pointerDragOn||0!==e.which&&0!==e.buttons||this.onMouseUp(e)},d.prototype.onTouchStart=function(e){if(this.usable()){switch(e.preventDefault(),e.stopPropagation(),e.touches.length){case 1:this.startRotationFrom(e.touches[0].clientX,e.touches[0].clientY);break;case 2:var t=(e.touches[0].clientX-e.touches[1].clientX)/window.innerWidth,i=(e.touches[0].clientY-e.touches[1].clientY)/window.innerHeight;this.pinchDistance=Math.sqrt(t*t+i*i)}this.emit(A.a.InputStart,"touch")}},d.prototype.onPointerDown=function(e){this.usable()&&"touch"===e.pointerType&&(this.pointers.length<this.pointersLimit&&this.pointers.push({id:e.pointerId,clientX:e.clientX,clientY:e.clientY}),e.touches=this.pointers,this.onTouchStart(e),this.emit(A.a.InputStart,"pointer"))},d.prototype.onMouseDown=function(e){if(this.usable()){switch(e.preventDefault(),e.stopPropagation(),e.button){case a.a.LEFT:this.startRotationFrom(e.clientX,e.clientY)}this.emit(A.a.InputStart,"mouse")}},d.prototype.updateRotation=function(){if(this.usable()&&this.pointerDragOn){this.camera.matrixWorld=new THREE.Matrix4;var e=new THREE.Vector3(this.pointerDragStart.x,this.pointerDragStart.y,-1).unproject(this.camera),t=new THREE.Vector3(this.pointer.x,this.pointer.y,-1).unproject(this.camera),i=Math.sqrt(e.x*e.x+e.z*e.z),o=Math.sqrt(t.x*t.x+t.z*t.z),g=Math.atan2(e.y,i),n=Math.atan2(t.y,o);this.camera.updateMatrix(),this.camera.updateMatrixWorld(),this.rotationDifference.y=THREE.Math.radToDeg(g-n),e.y=0,t.y=0;var a=Math.acos(e.dot(t)/e.length()/t.length());isNaN(a)||(this.rotationDifference.x=THREE.Math.radToDeg(a),this.pointerDragStart.x<this.pointer.x&&(this.rotationDifference.x*=-1)),this.pointerDragStart.copy(this.pointer)}},d.prototype.onMouseMove=function(e){if(this.usable()){var t=n.a.handelPadding(e.clientX,e.clientY,this.dom);n.a.convertScreenPositionToNDC(t.x,t.y,this.pointer,this.dom),this.pointerDragOn&&(Math.abs(this.pointer.x-this.moveStart.x)>this.moveTolerance||Math.abs(this.pointer.y-this.moveStart.y)>this.moveTolerance)&&this.emit(A.a.Move,"mouse")}},d.prototype.onTouchMove=function(e){if(this.usable())switch(this.emit(A.a.Move,"touch"),e.touches.length){case 1:var t=n.a.handelPadding(e.touches[0].clientX,e.touches[0].clientY,this.dom);n.a.convertScreenPositionToNDC(t.x,t.y,this.pointer,this.dom);break;case 2:var i=(e.touches[0].clientX-e.touches[1].clientX)/window.innerWidth,o=(e.touches[0].clientY-e.touches[1].clientY)/window.innerHeight,g=this.pinchDistance-Math.sqrt(i*i+o*o);Math.abs(g)>.01&&(this.emit(A.a.InteractionDirect),this.emit(A.a.Pinch,g),this.pinchDistance-=g)}},d.prototype.onPointerMove=function(e){this.usable()&&"touch"===e.pointerType&&(this.pointers.forEach((function(t){e.pointerId===t.id&&(t.clientX=e.clientX,t.clientY=e.clientY)})),e.touches=this.pointers,this.onTouchMove(e))},d.prototype.endRotation=function(){this.pointerDragOn=!1;var e=r.default.averageVectors(this.rotationHistory);this.rotationSpeed.set(e.x*o.a.rotationAfterMoveMultiplier,e.y*o.a.rotationAfterMoveMultiplier)},d.prototype.onTouchEnd=function(e){this.usable()&&(e.preventDefault(),e.stopPropagation(),this.endRotation())},d.prototype.onMouseUp=function(e){this.usable()&&(e.preventDefault(),e.stopPropagation(),this.endRotation())},d.prototype.onPointerUp=function(e){this.usable()&&"touch"===e.pointerType&&(this.pointers.forEach(function(t,i){e.pointerId===t.id&&this.pointers.splice(i,1)}.bind(this)),e.touches=this.pointers,this.onTouchEnd(e))},d.prototype.update=function(e){if((!s.a.sceneRenderer.vrEnabled||window.ifTest)&&(s.a.player.flying||s.a.player.flyRotate||"panorama"!=s.a.player.mode||s.a.playGuider.onUpdate)){for(this.lon,this.lat,this.updateRotation(),this.rotationHistory.push(this.rotationDifference.clone());this.rotationHistory.length>o.a.rotationAfterMoveHistoryCount;)this.rotationHistory.shift();this.lon+=this.rotationDifference.x,this.lat+=this.rotationDifference.y,this.rotationDifference.set(0,0);var t=Math.min(1,o.a.rotationFriction*e*60);this.rotationSpeed.x=this.rotationSpeed.x*(1-t)+this.rotationAcc.x*o.a.rotationAccelerationInside,this.rotationSpeed.y=this.rotationSpeed.y*(1-t)+this.rotationAcc.y*o.a.rotationAccelerationInside,this.lon+=this.rotationSpeed.x*e,this.lat+=this.rotationSpeed.y*e,I.a.ifFish||this.fishState?this.updateByLookVector():(null==this.limitDownAngel?this.lat=Math.max(null!=this.insideLookLimitDown?this.insideLookLimitDown:o.a.insideLookLimitDown,Math.min(o.a.insideLookLimitUp,this.lat)):this.lat=this.limitDownAngel,this.phi=THREE.Math.degToRad(90-this.lat),this.theta=THREE.Math.degToRad(this.lon),this.lookVector.x=Math.sin(this.phi)*Math.cos(this.theta),this.lookVector.y=Math.cos(this.phi),this.lookVector.z=Math.sin(this.phi)*Math.sin(this.theta),this.target.copy(this.lookVector).add(this.camera.position),this.camera.lookAt(this.target))}},d.prototype.updateByLookVector=function(e){var t;this.lat=Math.max(g.a.insideLookLimitDown,Math.min(g.a.insideLookLimitUp,this.lat)),this.phi=THREE.Math.degToRad(90-this.lat),this.theta=THREE.Math.degToRad(this.lon),t=new THREE.Vector3;var i=10==Store.metadata.sceneScheme?g.a.FishCam_BackDist2:g.a.FishCam_BackDist;if(t.x=g.a.skyRadius*i*Math.sin(this.phi)*Math.cos(this.theta),t.y=g.a.skyRadius*i*Math.cos(this.phi),t.z=g.a.skyRadius*i*Math.sin(this.phi)*Math.sin(this.theta),this.fishState&&this.camera.position.copy(t).negate().add(this.target),!s.a.player.flyingToTag&&!s.a.player.flyingWithRot&&!s.a.player.flyRotate&&!e&&s.a.player.flying){var o=s.a.player.model.skybox.material.uniforms.pano0Position.value.clone(),n=s.a.player.model.skybox.material.uniforms.pano1Position.value.clone(),a=t.clone().negate().add(n),A=t.clone().negate().add(o);s.a.player.model.setCameraEndPos(a,A)}if(e||this.fishState)return t;t&&this.lookVector.copy(t),this.target=s.a.player.currentTarget.clone(),this.camera.position.copy(this.lookVector).negate().add(this.target),this.camera.lookAt(this.target)},d.prototype.onMouseWheel=function(e){if(this.usable()){var t=e.wheelDelta||-e.detail;this.emit(A.a.InteractionDirect),this.emit(A.a.Scroll,t)}},d.prototype.onKeyDown=function(e){if(this.usable())if(e.metaKey||e.ctrlKey);else{if(!I.a.keyCon)return;e.preventDefault(),this.handleKeyDown(e.which)}},d.prototype.handleKeyDown=function(e){var t=function(e,t){this.rotationAcc[e]=t}.bind(this);this.emit(A.a.InteractionKey);var i=!0;switch(e){case C.a.LEFTARROW:case C.a.J:t("x",-1);break;case C.a.RIGHTARROW:case C.a.L:t("x",1);break;case C.a.I:t("y",1);break;case C.a.K:t("y",-1);break;default:i=!1}i&&this.emit(A.a.Move,"key")},d.prototype.onKeyUp=function(e){this.usable()&&(e.preventDefault(),e.stopPropagation(),this.handleKeyUp(e.which))},d.prototype.handleKeyUp=function(e){switch(e){case C.a.LEFTARROW:case C.a.J:case C.a.RIGHTARROW:case C.a.L:this.rotationAcc.x=0;break;case C.a.I:case C.a.K:this.rotationAcc.y=0}},d.prototype.startRotating=function(e,t){e&&(this.rotationAcc.x=e),t&&(this.rotationAcc.y=t)},d.prototype.stopRotating=function(e){e&&(this.rotationSpeed.x=this.rotationSpeed.y=0),this.rotationAcc.set(0,0)},d.prototype.reset=function(){this.pointerDragOn=!1,this.rotationAcc.set(0,0),this.rotationSpeed.set(0,0),this.pointers=[]},d.prototype.toJSON=function(){return{camera_position:{x:n.a.toPrecision(this.camera.position.x,4),y:n.a.toPrecision(this.camera.position.y,4),z:n.a.toPrecision(this.camera.position.z,4)},camera_quaternion:{x:n.a.toPrecision(this.camera.quaternion.x,4),y:n.a.toPrecision(this.camera.quaternion.y,4),z:n.a.toPrecision(this.camera.quaternion.z,4),w:n.a.toPrecision(this.camera.quaternion.w,4)}}},d.prototype.setStateFromJSON=function(e){this.camera.position.copy(e.camera_position),this.camera.quaternion.copy(e.camera_quaternion)},t.a=d},function(e,t,i){"use strict";var o=i(43),g={getCubemapUrls:function(e,t,i){return[0,1,2,3,4,5].map(function(o,g){return e.get("pan/"+i+"/"+t+"_skybox"+r(o)+".jpg")}.bind(this))},mapFaceToCubemapFace:function(e){return{0:o.a.GL_TEXTURE_CUBE_MAP_POSITIVE_Y,1:o.a.GL_TEXTURE_CUBE_MAP_POSITIVE_Z,2:o.a.GL_TEXTURE_CUBE_MAP_POSITIVE_X,3:o.a.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z,4:o.a.GL_TEXTURE_CUBE_MAP_NEGATIVE_X,5:o.a.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y}[e]}};t.a=g},function(e,t,i){"use strict";var o=i(1),g=i(22),n=i(5),a=i(9),A={currentBlur:0,aspect:o.a.aspect,blurStrength:1,hblurPass:o.a.HorizontalBlurShader,vblurPass:o.a.VerticalBlurShader,bindEvents:function(e){e.on(g.a.ModeChanged,(function(e,t){e===n.a.PANORAMA&&(a.a.cancel(A.blur),a.a.cancel(A.addBlur),a.a.start(A.removeBlur,500,null,0,null,"deblur"))}))},blur:function(e){A.currentBlur=e;var t=e*A.blurStrength;o.a.VerticalBlurShader.uniforms.v.value=t/512*A.aspect,o.a.HorizontalBlurShader.uniforms.h.value=t/512},addBlur:function(e){e=Math.max(e,A.currentBlur),A.blur(e)},removeBlur:function(e){e=Math.min(1-e,A.currentBlur),A.blur(e)}};A.blur(0),t.a=A},function(e,t,i){"use strict";i(52),i(38);var o=i(32),g=i(2),n=(i(6),i(3));function a(e){this.sid=e.sid,this.setPoints(e.points),this.state=e.state||"active",this.elem=$('<div class="ruler hide" data-name=""><div class="ruler-line"><em></em><div class="ruler-label"><div class="ruler-label-point"></div><span class="ruler-label-name">约0.5米</span></div></div></div>'),$("#hotspot .rulers").append(this.elem),this.text=e.text||"",this.length=Math.round(100*this.points[0].distanceTo(this.points[1]))/100,this.text=n.a.get("约")+this.length+n.a.get("米"),this.elem.find(".ruler-label-name").html(this.text),publicObjectSet.player.cornerRulers.push(this)}a.prototype.setPoints=function(e){this.points=e},a.prototype.remove=function(){this.elem.remove();var e=publicObjectSet.player.cornerRulers.indexOf(this);e>-1&&publicObjectSet.player.cornerRulers.splice(e,1)},a.prototype.getCrossPoint=function(e,t){var i,o,g,n=publicObjectSet.player.domElement.clientWidth,a=publicObjectSet.player.domElement.clientHeight,A=(t.x-e.x)/(t.y-e.y),r=function(t){return A*(t-e.y)+e.x},C=function(t){return 1/A*(t-e.x)+e.y};return t.x>n||t.x<0?(g=t.x>n?n:0,t.y<0||t.y>a?((i=r(o=t.y<0?0:a))>n||i<0)&&(o=C(i=g)):o=C(i=g)):i=r(o=t.y<0?0:a),new THREE.Vector2(i,o)},a.prototype.getPosInCrossPoint=function(e,t){var i,o,g=publicObjectSet.player.domElement.clientWidth,n=publicObjectSet.player.domElement.clientHeight,a=(t.x-e.x)/(t.y-e.y);return((o=function(t){return 1/a*(t-e.x)+e.y}(i=t.x>=e.x?g:0))<0||o>n)&&(i=function(t){return a*(t-e.y)+e.x}(o=o<0?0:n)),new THREE.Vector2(i,o)},a.prototype.getPosAtSphere=function(e){this.fishPoints=[],this.points.forEach(function(t){var i=o.a.getPosAtSphere(t,e);this.fishPoints.push(i)}.bind(this))},a.prototype.getPosInScreen=function(e,t,i){var g=e.point.clone().add(t.point).multiplyScalar(.5),n=o.a.getPos2d(g);if(n.trueSide){var a=e.pos2d.trueSide?e.pos2d:t.pos2d;return n.inSight&&(n.pos=this.getPosInCrossPoint(a.pos,n.pos),n.vector=null),{result:"p1p2",p1:a,p2:n}}if(!(i>0)){var A=e.pos2d.trueSide?e:t;return this.getPosInScreen(A,{point:g,pos2d:n},++i)}},a.prototype.update=function(){if("panorama"==publicObjectSet.player.mode&&"active"==this.state){if(g.a.ifFish){if(!this.fishPoints)return;var e=o.a.getPos2d(this.fishPoints[0]),t=o.a.getPos2d(this.fishPoints[1])}else e=o.a.getPos2d(this.points[0]),t=o.a.getPos2d(this.points[1]);if(!e.trueSide||!t.trueSide){if(!e.trueSide&&!t.trueSide)return void this.elem.addClass("hide");var i=this.getPosInScreen({point:g.a.ifFish?this.fishPoints[0]:this.points[0],pos2d:e},{point:g.a.ifFish?this.fishPoints[1]:this.points[1],pos2d:t},0);if(!i)return void this.elem.addClass("hide");e=i.p1,t=i.p2}var n=e.pos,a=t.pos,A=n.distanceTo(a);if(0!=A){var r=Math.acos((n.x-a.x)/A);r%=360,r*=180/Math.PI;var C=n.clone().sub(a),I=new THREE.Vector3(C.x,C.y,0),s=new THREE.Vector3(1,0,0);r*=I.cross(s).z>0?1:-1,this.elem.find(".ruler-line").css({width:A+"px",left:t.pos.x+"px",top:t.pos.y+"px",transform:"rotate("+-r+"deg)"});var l,c,u=.5,d=publicObjectSet.player.domElement.clientWidth,h=publicObjectSet.player.domElement.clientHeight;if(e.inSight&&t.inSight)l=(n.x+a.x)/2;else{var p,f;p=e.inSight?n.clone():this.getCrossPoint(a,n),f=t.inSight?a.clone():this.getCrossPoint(n,a);var m=p.clone().add(f).multiplyScalar(.5);if(l=m.x,c=m.y,m.x>d||m.x<0||m.y>h||m.y<0)return void this.elem.addClass("hide");if(a.x==n.x){if(a.y==n.y)return void console.warn("pos1和2一样???");u=a.y<n.y?(c-a.y)/(n.y-a.y):(a.y-c)/(a.y-n.y)}else u=a.x<n.x?(l-a.x)/(n.x-a.x):(a.x-l)/(a.x-n.x);if(u<0||u>1)return void this.elem.addClass("hide")}this.elem.removeClass("hide"),"left"!=this.dir&&l<d/2||"right"==this.dir?this.elem.find(".ruler-label").addClass("reverse"):this.elem.find(".ruler-label").removeClass("reverse"),this.elem.find(".ruler-label").css({transform:"rotate("+r+"deg)",left:100*u+"%"})}else console.warn("ruler间距为0!")}else this.elem.addClass("hide")},t.a=a},function(e,t,i){"use strict";i(63);var o=function(e){this.elem=e.elem,this.domParent=e.domParent,this.elem.on("pointerdown mousedown touchstart",this.beginMove.bind(this)),$(document).on("pointermove mousemove touchmove",this.move.bind(this)),$(document).on("pointerup mouseup touchend touchcancel",this.moveDone.bind(this)),this.beginMoveFuc=e.beginMoveFuc,this.moveDoneFuc=e.moveDoneFuc,this.hasBound=e.hasBound,this.useTransform=e.useTransform,e.hasBound&&(this.needGetBound=1,window.addEventListener("resize",function(){this.needGetBound=1}.bind(this))),this.recover()};o.prototype.beginMove=function(e){if(e.preventDefault(),e.stopPropagation(),this.hasBound&&this.getMoveBound(),!this.moving){var t=(e=e.originalEvent||e).type.indexOf("touch")>-1;if(this.moving=!0,this.useTransform){var i=this.elem.css("transform").split(",");"none"!=i&&(this.dragInfo={startElem:{x:parseFloat(i[4]),y:parseFloat(i[5])},endElem:{x:parseFloat(i[4]),y:parseFloat(i[5])}})}else this.dragInfo={startElem:{x:parseFloat(this.elem[0].style.left),y:parseFloat(this.elem[0].style.top)}};this.dragInfo.startMouse={x:t?e.changedTouches[0].clientX:e.clientX,y:t?e.changedTouches[0].clientY:e.clientY},this.beginMoveFuc&&this.beginMoveFuc(),console.log("beginMove")}},o.prototype.move=function(e){if(this.moving){var t=(e=e.originalEvent||e).type.indexOf("touch")>-1,i=t?e.changedTouches[0].clientX:e.clientX,o=t?e.changedTouches[0].clientY:e.clientY;this.dragInfo.vector={x:i-this.dragInfo.startMouse.x,y:o-this.dragInfo.startMouse.y},this.dragInfo.endElem={x:this.dragInfo.startElem.x+this.dragInfo.vector.x,y:this.dragInfo.startElem.y+this.dragInfo.vector.y},this.hasBound&&(this.dragInfo.endElem.x=Math.max(this.bound.left,this.dragInfo.endElem.x),this.dragInfo.endElem.x=Math.min(this.bound.right,this.dragInfo.endElem.x),this.dragInfo.endElem.y=Math.max(this.bound.top,this.dragInfo.endElem.y),this.dragInfo.endElem.y=Math.min(this.bound.bottom,this.dragInfo.endElem.y)),this.useTransform?this.elem.css("transform","translate("+this.dragInfo.endElem.x+"px,"+this.dragInfo.endElem.y+"px)"):this.elem.css({left:this.dragInfo.endElem.x+"px",top:this.dragInfo.endElem.y+"px"})}},o.prototype.moveDone=function(e){this.moving&&(this.getMoveBound(),this.moving=!1,this.move(e),this.moveDoneFuc&&this.moveDoneFuc(this.reportPos()),this.dragInfo.startElem=this.dragInfo.endElem,this.dragInfo.vector={x:0,y:0},console.log("moveDone"))},o.prototype.getMoveBound=function(){if(this.needGetBound){var e=isMobile?68:100,t=isMobile?32:60,i=($("#player").width()-e)/2;isMobile?this.bound={left:-i,right:i,top:-($("#player").height()/2-$("header")[0].offsetTop-$("header").height()-t/2),bottom:$("#player").height()/2-$("footer").height()-t/2}:this.bound={left:-i,right:i,top:-($("#player").height()/2-50-t/2),bottom:$("#player").height()/2-t/2},console.log(this.bound),this.needGetBound=0}},o.prototype.reportPos=function(){return{x:this.dragInfo.endElem.x+this.domParent.width()/2,y:this.dragInfo.endElem.y+this.domParent.height()/2}},o.prototype.recover=function(){this.dragInfo={startElem:{x:0,y:0},endElem:{x:0,y:0}},this.useTransform?this.elem.css("transform",""):this.elem.css({left:0,top:0})},t.a=o},function(e,t,i){var o=i(110),g=i(55),n=g["__core-js_shared__"]||(g["__core-js_shared__"]={});(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:o.version,mode:i(112)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,i){i(147)("Uint8",1,(function(e){return function(t,i,o){return e(this,t,i,o)}}))},function(e,t,i){"use strict";if(i(70)){var o=i(112),g=i(55),n=i(65),a=i(58),A=i(185),r=i(221),C=i(94),I=i(133),s=i(115),l=i(81),c=i(132),u=i(97),d=i(74),h=i(186),p=i(134),f=i(127),m=i(93),v=i(121),y=i(68),b=i(85),w=i(164),x=i(123),E=i(189),P=i(116).f,T=i(165),D=i(111),M=i(56),S=i(154),R=i(160),k=i(156),O=i(53),L=i(113),B=i(148),F=i(149),j=i(163),N=i(224),H=i(73),z=i(135),V=H.f,G=z.f,W=g.RangeError,U=g.TypeError,Q=g.Uint8Array,Y=Array.prototype,Z=r.ArrayBuffer,X=r.DataView,J=S(0),K=S(2),q=S(3),_=S(4),$=S(5),ee=S(6),te=R(!0),ie=R(!1),oe=O.values,ge=O.keys,ne=O.entries,ae=Y.lastIndexOf,Ae=Y.reduce,re=Y.reduceRight,Ce=Y.join,Ie=Y.sort,se=Y.slice,le=Y.toString,ce=Y.toLocaleString,ue=M("iterator"),de=M("toStringTag"),he=D("typed_constructor"),pe=D("def_constructor"),fe=A.CONSTR,me=A.TYPED,ve=A.VIEW,ye=S(1,(function(e,t){return Pe(k(e,e[pe]),t)})),be=n((function(){return 1===new Q(new Uint16Array([1]).buffer)[0]})),we=!!Q&&!!Q.prototype.set&&n((function(){new Q(1).set({})})),xe=function(e,t){var i=u(e);if(i<0||i%t)throw W("Wrong offset!");return i},Ee=function(e){if(y(e)&&me in e)return e;throw U(e+" is not a typed array!")},Pe=function(e,t){if(!y(e)||!(he in e))throw U("It is not a typed array constructor!");return new e(t)},Te=function(e,t){return De(k(e,e[pe]),t)},De=function(e,t){for(var i=0,o=t.length,g=Pe(e,o);o>i;)g[i]=t[i++];return g},Me=function(e,t,i){V(e,t,{get:function(){return this._d[i]}})},Se=function(e){var t,i,o,g,n,a,A=b(e),r=arguments.length,I=r>1?arguments[1]:void 0,s=void 0!==I,l=T(A);if(null!=l&&!w(l)){for(a=l.call(A),o=[],t=0;!(n=a.next()).done;t++)o.push(n.value);A=o}for(s&&r>2&&(I=C(I,arguments[2],2)),t=0,i=d(A.length),g=Pe(this,i);i>t;t++)g[t]=s?I(A[t],t):A[t];return g},Re=function(){for(var e=0,t=arguments.length,i=Pe(this,t);t>e;)i[e]=arguments[e++];return i},ke=!!Q&&n((function(){ce.call(new Q(1))})),Oe=function(){return ce.apply(ke?se.call(Ee(this)):Ee(this),arguments)},Le={copyWithin:function(e,t){return N.call(Ee(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return _(Ee(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return j.apply(Ee(this),arguments)},filter:function(e){return Te(this,K(Ee(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $(Ee(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Ee(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){J(Ee(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ie(Ee(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Ee(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return Ce.apply(Ee(this),arguments)},lastIndexOf:function(e){return ae.apply(Ee(this),arguments)},map:function(e){return ye(Ee(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return Ae.apply(Ee(this),arguments)},reduceRight:function(e){return re.apply(Ee(this),arguments)},reverse:function(){for(var e,t=Ee(this).length,i=Math.floor(t/2),o=0;o<i;)e=this[o],this[o++]=this[--t],this[t]=e;return this},some:function(e){return q(Ee(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return Ie.call(Ee(this),e)},subarray:function(e,t){var i=Ee(this),o=i.length,g=p(e,o);return new(k(i,i[pe]))(i.buffer,i.byteOffset+g*i.BYTES_PER_ELEMENT,d((void 0===t?o:p(t,o))-g))}},Be=function(e,t){return Te(this,se.call(Ee(this),e,t))},Fe=function(e){Ee(this);var t=xe(arguments[1],1),i=this.length,o=b(e),g=d(o.length),n=0;if(g+t>i)throw W("Wrong length!");for(;n<g;)this[t+n]=o[n++]},je={entries:function(){return ne.call(Ee(this))},keys:function(){return ge.call(Ee(this))},values:function(){return oe.call(Ee(this))}},Ne=function(e,t){return y(e)&&e[me]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},He=function(e,t){return Ne(e,t=f(t,!0))?s(2,e[t]):G(e,t)},ze=function(e,t,i){return!(Ne(e,t=f(t,!0))&&y(i)&&m(i,"value"))||m(i,"get")||m(i,"set")||i.configurable||m(i,"writable")&&!i.writable||m(i,"enumerable")&&!i.enumerable?V(e,t,i):(e[t]=i.value,e)};fe||(z.f=He,H.f=ze),a(a.S+a.F*!fe,"Object",{getOwnPropertyDescriptor:He,defineProperty:ze}),n((function(){le.call({})}))&&(le=ce=function(){return Ce.call(this)});var Ve=c({},Le);c(Ve,je),l(Ve,ue,je.values),c(Ve,{slice:Be,set:Fe,constructor:function(){},toString:le,toLocaleString:Oe}),Me(Ve,"buffer","b"),Me(Ve,"byteOffset","o"),Me(Ve,"byteLength","l"),Me(Ve,"length","e"),V(Ve,de,{get:function(){return this[me]}}),e.exports=function(e,t,i,r){var C=e+((r=!!r)?"Clamped":"")+"Array",s="get"+e,c="set"+e,u=g[C],p=u||{},f=u&&E(u),m=!u||!A.ABV,b={},w=u&&u.prototype,T=function(e,i){V(e,i,{get:function(){return function(e,i){var o=e._d;return o.v[s](i*t+o.o,be)}(this,i)},set:function(e){return function(e,i,o){var g=e._d;r&&(o=(o=Math.round(o))<0?0:o>255?255:255&o),g.v[c](i*t+g.o,o,be)}(this,i,e)},enumerable:!0})};m?(u=i((function(e,i,o,g){I(e,u,C,"_d");var n,a,A,r,s=0,c=0;if(y(i)){if(!(i instanceof Z||"ArrayBuffer"==(r=v(i))||"SharedArrayBuffer"==r))return me in i?De(u,i):Se.call(u,i);n=i,c=xe(o,t);var p=i.byteLength;if(void 0===g){if(p%t)throw W("Wrong length!");if((a=p-c)<0)throw W("Wrong length!")}else if((a=d(g)*t)+c>p)throw W("Wrong length!");A=a/t}else A=h(i),n=new Z(a=A*t);for(l(e,"_d",{b:n,o:c,l:a,e:A,v:new X(n)});s<A;)T(e,s++)})),w=u.prototype=x(Ve),l(w,"constructor",u)):n((function(){u(1)}))&&n((function(){new u(-1)}))&&B((function(e){new u,new u(null),new u(1.5),new u(e)}),!0)||(u=i((function(e,i,o,g){var n;return I(e,u,C),y(i)?i instanceof Z||"ArrayBuffer"==(n=v(i))||"SharedArrayBuffer"==n?void 0!==g?new p(i,xe(o,t),g):void 0!==o?new p(i,xe(o,t)):new p(i):me in i?De(u,i):Se.call(u,i):new p(h(i))})),J(f!==Function.prototype?P(p).concat(P(f)):P(p),(function(e){e in u||l(u,e,p[e])})),u.prototype=w,o||(w.constructor=u));var D=w[ue],M=!!D&&("values"==D.name||null==D.name),S=je.values;l(u,he,!0),l(w,me,C),l(w,ve,!0),l(w,pe,u),(r?new u(1)[de]==C:de in w)||V(w,de,{get:function(){return C}}),b[C]=u,a(a.G+a.W+a.F*(u!=p),b),a(a.S,C,{BYTES_PER_ELEMENT:t}),a(a.S+a.F*n((function(){p.of.call(u,1)})),C,{from:Se,of:Re}),"BYTES_PER_ELEMENT"in w||l(w,"BYTES_PER_ELEMENT",t),a(a.P,C,Le),F(C),a(a.P+a.F*we,C,{set:Fe}),a(a.P+a.F*!M,C,je),o||w.toString==le||(w.toString=le),a(a.P+a.F*n((function(){new u(1).slice()})),C,{slice:Be}),a(a.P+a.F*(n((function(){return[1,2].toLocaleString()!=new u([1,2]).toLocaleString()}))||!n((function(){w.toLocaleString.call([1,2])}))),C,{toLocaleString:Oe}),L[C]=M?D:S,o||M||l(w,ue,S)}}else e.exports=function(){}},function(e,t,i){var o=i(56)("iterator"),g=!1;try{var n=[7][o]();n.return=function(){g=!0},Array.from(n,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!g)return!1;var i=!1;try{var n=[7],a=n[o]();a.next=function(){return{done:i=!0}},n[o]=function(){return a},e(n)}catch(e){}return i}},function(e,t,i){"use strict";var o=i(55),g=i(73),n=i(70),a=i(56)("species");e.exports=function(e){var t=o[e];n&&t&&!t[a]&&g.f(t,a,{configurable:!0,get:function(){return this}})}},function(e,t,i){"use strict";var o=i(184)(!0);i(176)(String,"String",(function(e){this._t=String(e),this._i=0}),(function(){var e,t=this._t,i=this._i;return i>=t.length?{value:void 0,done:!0}:(e=o(t,i),this._i+=e.length,{value:e,done:!1})}))},function(e,t,i){"use strict";var o=i(94),g=i(58),n=i(85),a=i(196),A=i(164),r=i(74),C=i(212),I=i(165);g(g.S+g.F*!i(148)((function(e){Array.from(e)})),"Array",{from:function(e){var t,i,g,s,l=n(e),c="function"==typeof this?this:Array,u=arguments.length,d=u>1?arguments[1]:void 0,h=void 0!==d,p=0,f=I(l);if(h&&(d=o(d,u>2?arguments[2]:void 0,2)),null==f||c==Array&&A(f))for(i=new c(t=r(l.length));t>p;p++)C(i,p,h?d(l[p],p):l[p]);else for(s=f.call(l),i=new c;!(g=s.next()).done;p++)C(i,p,h?a(s,d,[g.value,p],!0):g.value);return i.length=p,i}})},function(e,t,i){"use strict";i.d(t,"b",(function(){return d}));i(106),i(107),i(200),i(150),i(151),i(39),i(119),i(59),i(53),i(29),i(60);var o=i(33),g=i.n(o),n=(i(105),i(38),i(11)),a=i.n(n),A=i(99),r=i(47),C=i(3);function I(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?I(Object(i),!0).forEach((function(t){a()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):I(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function l(e){var t=e.vertex,i=e.wall,o=t.map((function(e){return function(e){var t=s({},e);return void 0!==e.id&&null!==e.id||(t.id=A.a.grentID("point")),t}(e)}));return t.forEach((function(e,g){var n=function(e,t){var i=e.vertex,o=e.wall,g=i.indexOf(t),n=[];return o.forEach((function(e){var t=e.p1,i=e.p2;t!==g&&i!==g||n.push(t===g?i:t)})),n}({vertex:t,wall:i},e);o[g].joins=n.map((function(e){return o.find((function(t){return t.id===e}))}))})),o}function c(e,t){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!~t.indexOf(e[i]))return!1;return!0}function u(e){var t,i,o=(t={column:e.column,door:e.door,window:e.window},Object.keys(t).reduce((function(e,i){return e.concat.apply(e,g()(t[i].map((function(e){return s({id:A.a.grentID(i),points2d:(t=e.pos,o=[],t.forEach((function(e,t){var i=Math.floor(t/2);o[i]||(o[i]={}),o[i][t%2?"y":"x"]=t%2?-e:e})),o)},e);var t,o}))))}),[])),n=l(e);e.room?(i=e.room.map((function(e){return Array.from(new Set(e.points)).map((function(e){return n.find((function(t){return t.id===e}))}))})).map((function(e){return e.filter((function(e){return!!e}))}))).forEach((function(e){for(var t=[],i=0;i<e.length;i++)for(var o=[e[i],e[i+1===e.length?0:i+1]],g=0;g<n.length&&(~t.indexOf(n[g])||~o.indexOf(n[g])||~o.indexOf(n[g])||!(r.a.pointLineDis(o,n[g])<.001));g++);})):(i=[],n.forEach((function(e){i=i.concat(function(e,t){var i=[[t]];return function t(o){for(var n,a=i.length-1,A=e.filter((function(e){return!~i[a].indexOf(e)&&~o.joins.findIndex((function(t){return t.id===e.id}))})),r=1===A.length?null:g()(i[a]),C=0;n=A[C];C++)0!==C&&i.push(g()(r)),i[i.length-1].push(n),t(n)}(t),i.filter((function(e){return~e[e.length-1].joins.findIndex((function(e){return e.id===t.id}))}))}(n,e))})),i=function(e){for(var t=0;t<e.length;t++)for(var i=t+1;i<e.length;i++)c(e[t],e[i])&&e.splice(i--,1);for(var o=0;o<e.length;o++)for(var g=0;g<e.length;g++)if(o!==g&&r.a.faceContain(e[o],e[g])){e.splice(o--,1);break}return e}(i));var a,I=i.map((function(e){return function(e){if(!r.a.isClockWise(e)){var t=[];e.forEach((function(i,o){return t[e.length-o-1]=i})),e=t}for(var i,o,g,n=[],a=0;a<e.length;a++)n.push((i=e[a],o=e[a+1===e.length?0:a+1],null==(g=void 0)&&(g=A.a.grentID("line")),{id:g,points:[i,o],otherobjs:[]}));return n}(e)}));return(a=I.reduce((function(e,t){return e.concat(t)}),[])).forEach((function(e){e.joins=a.filter((function(t){return t!==e&&(~t.points.indexOf(e.points[0])||~t.points.indexOf(e.points[1]))}))})),o.forEach((function(t){var i=e.wall.find((function(e){return e.id===t.line}));if(i)for(var o=i.p1,g=i.p2,a=n.find((function(e){return e.id===o})),A=n.find((function(e){return e.id===g})),r=0;r<I.length;r++){for(var C=I[r],s=0;s<C.length;s++)if(C[s].points[0]===a&&C[s].points[1]===A||C[s].points[1]===a&&C[s].points[0]===A){C[s].otherobjs.push(t);break}if(s!==C.length)break}})),I.forEach((function(e){return e.forEach((function(e){return e.points.forEach((function(e){return delete e.joins}))}))})),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;arguments.length>3&&arguments[3],arguments.length>4&&arguments[4],Object.keys(i).forEach((function(e){var o=i[e],g=i[e].reduce((function(e,t){return e.push(t.points[0]),e}),[]).map((function(e){return e.id})),n=t.find((function(e){var t=e.points;return t.length===g.length&&(t.reduce((function(e,t){return e+t}),0)===g.reduce((function(e,t){return e+t}),0)&&!t.find((function(e){return!~g.indexOf(e)})))}));n||(n={name:C.a.get("房间")+(Number(e)+1)}),o.name=n.name||C.a.get("未命名"),void 0!==n.top&&(o.top=n.top),void 0!==n.bottom&&(o.bottom=n.bottom),o.showArea=void 0===n.showArea||!!n.showArea,o.showName=void 0===n.showName||!!n.showName}))}(n,e.room,I,e.top,e.bottom),I}function d(e,t){return Object.keys(e).reduce((function(t,i){return t.concat(e[i])}),[]).filter((function(e){return e!==t&&~e.points.indexOf(t.points[0])&&~e.points.indexOf(t.points[1])}))}t.a=function(e){(e=JSON.parse(JSON.stringify(e))).room||(e=function(e){return e.vertex.forEach((function(e,t){return e.id=t})),e.wall.forEach((function(e,t){return e.id=t})),e}(e)),A.a.grentID("point",Math.max.apply(Math,g()(e.vertex.map((function(e){return e.id}))))||0,Number),A.a.grentID("line",Math.max.apply(Math,g()(e.wall.map((function(e){return e.id}))))||0,Number),e.column=e.column||[],e.door=e.door||[],e.window=e.window||[],e.houseInfo=e.houseInfo||{},e.vertex.forEach((function(e){return e.y*=-1}));var t=u(e);return t.forEach((function(e){return e.id=A.a.grentID("face")})),{faces:t,top:e.top,bottom:e.bottom,houseInfo:e.houseInfo}}},function(e,t,i){var o=i(68),g=i(55).document,n=o(g)&&o(g.createElement);e.exports=function(e){return n?g.createElement(e):{}}},function(e,t,i){var o=i(94),g=i(175),n=i(85),a=i(74),A=i(217);e.exports=function(e,t){var i=1==e,r=2==e,C=3==e,I=4==e,s=6==e,l=5==e||s,c=t||A;return function(t,A,u){for(var d,h,p=n(t),f=g(p),m=o(A,u,3),v=a(f.length),y=0,b=i?c(t,v):r?c(t,0):void 0;v>y;y++)if((l||y in f)&&(h=m(d=f[y],y,p),e))if(i)b[y]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return y;case 2:b.push(d)}else if(I)return!1;return s?-1:C||I?I:b}}},function(e,t,i){var o=i(68),g=i(104),n=i(56)("match");e.exports=function(e){var t;return o(e)&&(void 0!==(t=e[n])?!!t:"RegExp"==g(e))}},function(e,t,i){var o=i(67),g=i(103),n=i(56)("species");e.exports=function(e,t){var i,a=o(e).constructor;return void 0===a||null==(i=o(a)[n])?t:g(i)}},function(e,t,i){"use strict";var o=i(184)(!0);e.exports=function(e,t,i){return t+(i?o(e,t).length:1)}},function(e,t,i){"use strict";var o,g,n=i(130),a=RegExp.prototype.exec,A=String.prototype.replace,r=a,C=(o=/a/,g=/b*/g,a.call(o,"a"),a.call(g,"a"),0!==o.lastIndex||0!==g.lastIndex),I=void 0!==/()??/.exec("")[1];(C||I)&&(r=function(e){var t,i,o,g,r=this;return I&&(i=new RegExp("^"+r.source+"$(?!\\s)",n.call(r))),C&&(t=r.lastIndex),o=a.call(r,e),C&&o&&(r.lastIndex=r.global?o.index+o[0].length:t),I&&o&&o.length>1&&A.call(o[0],i,(function(){for(g=1;g<arguments.length-2;g++)void 0===arguments[g]&&(o[g]=void 0)})),o}),e.exports=r},function(e,t,i){var o=i(58),g=i(65),n=i(96),a=/"/g,A=function(e,t,i,o){var g=String(n(e)),A="<"+t;return""!==i&&(A+=" "+i+'="'+String(o).replace(a,""")+'"'),A+">"+g+"</"+t+">"};e.exports=function(e,t){var i={};i[e]=t(A),o(o.P+o.F*g((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",i)}},function(e,t,i){var o=i(117),g=i(74),n=i(134);e.exports=function(e){return function(t,i,a){var A,r=o(t),C=g(r.length),I=n(a,C);if(e&&i!=i){for(;C>I;)if((A=r[I++])!=A)return!0}else for(;C>I;I++)if((e||I in r)&&r[I]===i)return e||I||0;return!e&&-1}}},function(e,t,i){var o=i(145)("keys"),g=i(111);e.exports=function(e){return o[e]||(o[e]=g(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,i){"use strict";var o=i(85),g=i(134),n=i(74);e.exports=function(e){for(var t=o(this),i=n(t.length),a=arguments.length,A=g(a>1?arguments[1]:void 0,i),r=a>2?arguments[2]:void 0,C=void 0===r?i:g(r,i);C>A;)t[A++]=e;return t}},function(e,t,i){var o=i(113),g=i(56)("iterator"),n=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||n[g]===e)}},function(e,t,i){var o=i(121),g=i(56)("iterator"),n=i(113);e.exports=i(110).getIteratorMethod=function(e){if(null!=e)return e[g]||e["@@iterator"]||n[o(e)]}},function(e,t,i){var o=i(55),g=i(178),n=i(73).f,a=i(116).f,A=i(155),r=i(130),C=o.RegExp,I=C,s=C.prototype,l=/a/g,c=/a/g,u=new C(l)!==l;if(i(70)&&(!u||i(65)((function(){return c[i(56)("match")]=!1,C(l)!=l||C(c)==c||"/a/i"!=C(l,"i")})))){C=function(e,t){var i=this instanceof C,o=A(e),n=void 0===t;return!i&&o&&e.constructor===C&&n?e:g(u?new I(o&&!n?e.source:e,t):I((o=e instanceof C)?e.source:e,o&&n?r.call(e):t),i?this:s,C)};for(var d=function(e){e in C||n(C,e,{configurable:!0,get:function(){return I[e]},set:function(t){I[e]=t}})},h=a(I),p=0;h.length>p;)d(h[p++]);s.constructor=C,C.prototype=s,i(84)(o,"RegExp",C)}i(149)("RegExp")},function(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BjYW1lcmEgKi8KCW9wdGlvbmFsIGludDMyIGdyb3VwID0gNDsgIC8qIGZsb29yIGluZGV4ICovCglvcHRpb25hbCBpbnQzMiBzdWJncm91cCA9IDU7ICAvKiByb29tIGluZGV4ICovCglyZXBlYXRlZCBpbnQzMiB2aXNpYmxlcyA9IDY7ICAvKiBsaXN0IG9mIGluZGljZXMgdG8gYWxsIHB1Y2tzIHZpc2libGUgZnJvbSB0aGlzIHB1Y2sgKi8KCXJlcGVhdGVkIGludDMyIHZpc2libGVzMiA9IDc7IAoJcmVwZWF0ZWQgaW50MzIgdmlzaWJsZXMzID0gODsKfQoKLy8KLy8gQWxsIHB1Y2tzIGluIGEgbW9kZWwuIFB1Y2tzIGFyZSBzdG9yZWQgaW4gc2Nhbm5pbmcgb3JkZXIuCi8vCm1lc3NhZ2UgTmF2aWdhdGlvbkluZm8gewoJcmVwZWF0ZWQgU3dlZXBMb2NhdGlvbiBzd2VlcExvY2F0aW9ucyA9IDE7Cn0="),decoderMesh:function(){return dcodeIO.ProtoBuf.loadProto(this.damPro).build("binary_mesh")},decoderModeldata:function(){return dcodeIO.ProtoBuf.loadProto(this.visionmodeldataPro).build("NavigationInfo")},decompressMesh:function(e){var t=null;try{I.a.time("parse dam proto"),t=this.decoderMesh().decode(e),I.a.timeEnd("parse proto")}catch(e){return I.a.error("failed parsing proto for .dam"),null}return t},decompressModeldata:function(e){var t=null;try{I.a.time("parse modeldata proto"),t=this.decoderModeldata().decode(e),I.a.timeEnd("parse proto")}catch(e){return I.a.error("failed parsing proto for .modeldata"),null}return t}},c=(i(251),i(124),i(20)),u=i(76),d=i(21),h=i(5),p=i(0);function f(e){this.materialInside=new u.a({side:THREE.DoubleSide});var t=THREE.UniformsUtils.clone(d.a.modelOutside.uniforms);this.materialOutside=new THREE.RawShaderMaterial({fragmentShader:d.a.modelOutside.fragmentShader,vertexShader:d.a.modelOutside.vertexShader,uniforms:t,side:THREE.FrontSide,name:"chunkOut"}),THREE.Mesh.call(this,e.geometry,this.materialInside),this.name=e.name||"",this.textureName=e.textureName,this.meshUrl=e.meshUrl}f.prototype=Object.create(THREE.Mesh.prototype),f.prototype.setTextureMap=function(e){this.materialInside.uniforms.map.value=e,this.materialOutside.uniforms.map.value=e},f.prototype.setMode=function(e){var t=this.materialInside;e!==h.a.DOLLHOUSE&&e!==h.a.FLOORPLAN||(t=this.materialOutside),e===h.a.PANORAMA||edit&&p.a.editor.mainDesign.editing?t.side=THREE.DoubleSide:t.side=THREE.FrontSide,t.transparent=this.material.transparent,t.uniforms.opacity.value=this.material.uniforms.opacity.value,this.material=t};var m=f,v=i(2),y=function(){};y.convertProtobufToSceneObject=function(e,t){if(0==t.chunk.length)return I.a.warn("No chunks in damfile..."),null;var i=new THREE.Matrix4;return i.set(1,0,0,0,0,0,1,0,0,-1,0,0,0,0,0,1),t.chunk.map((function(t){var o=new THREE.BufferGeometry;return o.addAttribute("position",new THREE.BufferAttribute(new Float32Array(t.vertices.xyz,0,3),3)),t.vertices.uv.length>0&&o.addAttribute("uv",new THREE.BufferAttribute(new Float32Array(t.vertices.uv,0,2),2)),o.setIndex(new THREE.BufferAttribute(new Uint32Array(t.faces.faces,0,1),1)),o.applyMatrix(i),o.computeBoundingBox(),new m({geometry:o,textureName:t.material_name,name:t.chunk_name,meshUrl:v.a.prefixServerOSS+v.a.imagesPath+e+"/"+v.a.job+v.a.format})}))},y.visionModeldata=function(e){var t;e.sweepLocations.forEach((function(e){e.visibles3=e.visibles3||[],e.visibles.forEach((function(t){-1==e.visibles3.indexOf(t)&&e.visibles3.push(t)}))}));for(var i=e.sweepLocations.length,o=0;o<i;o++){if((e.sweepLocations[o].visibles2&&e.sweepLocations[o].visibles2.length||0)>0){t=!0;break}}t||(e.sweepLocations.forEach((function(e){e.visibles2=null})),I.a.info("检测到疑似没有noblock数据,应该是手动上传,block置空"));var g=e.sweepLocations.map(function(e){return{uuid:e.uuid.toUTF8().replace(/-/g,""),position:{x:e.pose.translation.x,y:e.pose.translation.y,z:e.pose.translation.z},quaternion:{x:e.pose.rotation.x,y:e.pose.rotation.y,z:e.pose.rotation.z,w:e.pose.rotation.w},puck:{x:e.puck.x,y:e.puck.y,z:e.puck.z},alignmentType:e.alignment_type,neighbours:e.visibles3||e.visibles,noBlocks:e.visibles2,seeMarkers:e.visibles,group:e.group,subgroup:e.subgroup}}.bind(this)).map(function(e){return e.position=this.convertVisionVector(e.position),e.quaternion=this.convertVisionQuaternion(e.quaternion),e.puck=this.convertVisionVector(e.puck),e}.bind(this));return g.forEach((function(e){e.neighbours=e.neighbours.map((function(e){if(g[e])return g[e].uuid;console.log(1)}))})),g.forEach((function(e){e.noBlocks&&(e.noBlocks=e.noBlocks.map((function(e){return g[e].uuid})))})),g.forEach((function(e){e.seeMarkers&&(e.seeMarkers=e.seeMarkers.map((function(e){return g[e].uuid})))})),g},y.panos=function(e,t,i){return e.extend(t.map(function(e){return new c.a(i.model,e.uuid,e)}.bind(this))),e.forEach((function(t){t.neighbourUUIDs&&(t.neighbourUUIDs.forEach((function(i){var o=e.get(i);o&&e.setNeighbour(t,o,!0)})),t.neighbourPanos=e.getNeighbours(t)||e.setNeighbour(t,t,!0))})),0===e.length&&I.a.warn("Model has no panos, turning off inside mode"),e},y.panosSub=function(e,t){return e.map(function(e){return new c.a(t,e.uuid,e)}.bind(this))},y.convertVisionVector=function(e){return new THREE.Vector3(e.x,e.z,-e.y)},y.convertVisionQuaternion=function(e){return new THREE.Quaternion(e.x,e.z,-e.y,e.w).multiply((new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(0,1,0),THREE.Math.degToRad(90)))},y.convertWorkshopVector=function(e){return new THREE.Vector3(-e.x,e.y,e.z)},y.convertWorkshopQuaternion=function(e){return new THREE.Quaternion(-e.x,e.y,e.z,-e.w).multiply(new THREE.Quaternion(Math.sqrt(2)/2,Math.sqrt(2)/2,0,0))};var b=y,w={parseIdsFromChunkName:function(e,t){t.floorId=w.parseFloor(e),t.roomId=w.parseRoom(e)},parseFloor:function(e){var t=e.match(/_group([0-9]+)/);if(!t)return 0;try{return parseInt(t[1],10)}catch(e){return I.a.warn('Non-int value "'+t[1]+'" for mesh group, defaulting to floor 0'),0}},parseRoom:function(e){var t=e.match(/_sub([0-9]+)/);if(!t)return-1;try{return parseInt(t[1],10)}catch(e){return I.a.warn('Non-int value "'+t[1]+' " for mesh subgroup, defaulting to subgroup 0'),0}}},x=w,E=i(10),P=i(57),T={};T.load=function(e,t,i){function o(e,i){e||(t.push(i),r++,A.notify(r,g),r===g&&A.resolve())}if(!e.chunks[0]||!e.chunks[0].meshUrl)return $.when();var g=E.default.countUnique(e.chunks.map((function(e){return e.textureName})));e.chunks[0].meshUrl.indexOf("_50k");var n="low";s.a.minimalMemoryMode&&"high"===n&&(browser.detectSamsungS6()?(I.a.warn("Galaxy S6 cannot handle large textures, turning down quality."),n="low"):g>s.a.maxMobileTextures&&(I.a.warn("Model probably too large for mobile, turning down quality."),n="low"));var a=e.data.job.uuid+""+v.a.preTexture+"/",A=$.Deferred(),r=0;return console.log("开始加载模型贴图!"),e.chunks.forEach((function(t){if(!t.material.map&&t.textureName){var g=e.urls.get(a+t.textureName,i);t.setTextureMap(P.a.load(g,o.bind(this,P.a.isLoaded(g))))}})),A.promise()};var D=T,M=i(6),S=i(89),R=i(172),k=i(7),O=i(12),L=i(3),B=function(){this.projectNum=v.a.projectNum,this.player=p.a.player};B.prototype.init=function(){},B.prototype.load=r()(a.a.mark((function e(){var t,i,o=arguments;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:100,i=$("#gui-parent #loadProgress .progressInside").css("width","10%"),e.prev=2,e.next=5,this.loadMetadata(this.loadThumb);case 5:if(i.css("width","50%"),this.weixinShare(),edit){e.next=11;break}return e.next=10,this.checkPassword();case 10:i.css("width","60%");case 11:return e.next=13,this.loadModel();case 13:return i.css("width","70%"),e.next=16,this.loadModelAddition();case 16:i.css("width",t+"%"),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(2),I.a.error(e.t0);case 22:case"end":return e.stop()}}),e,this,[[2,19]])}))),B.prototype.loadMetadata=function(){var e=r()(a.a.mark((function e(t){var i,o,g;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g=function(){o({public:0,screencapMusic:"",screenCapLen:0,sceneKey:"",sceneName:"..",sceneDec:"\n",sceneType:0,homePic:"http://scene3d.4dage.com/loading/thumb.jpg",thumbImg:0,version:1,floorLogo:"0",floorLogoSize:50,createTime:"",shootCount:0,status:-2,sceneIndex:0,hasBGM:"noMusic",sceneScheme:1,oss:"aliyun",hots:0},t)},o=function(e,t){if(5005!=e.code){if(-1==e)return console.warn("loadMetadata get -1"),void g();if(!edit&&e.data&&(e=e.data),"string"==typeof e.entry&&""!=e.entry&&"undefined"!=e.entry&&(e.entry=JSON.parse(e.entry)),"string"==typeof e.gps&&""!=e.gps&&"undefined"!=e.gps&&(e.gps=JSON.parse(e.gps)),Store.set("metadata",e),v.a.setSpotType=2==e.visions||"2"==e.visions||e.measureVisi?3:1,k.a.urlHasValue("setSpotType0")&&(v.a.setSpotType=0),null!=e.sceneScheme&&(v.a.scene_version=10!=parseInt(e.sceneScheme)||isMobile||edit?1:2,2==v.a.scene_version&&(p.a.player.model.supportsTiles=!0)),v.a.ifFish=isMobile&&!edit,v.a.ifFish)for(var o in M.a.fish)s.a[o]=M.a.fish[o];switch(v.a.vrFishTemp=v.a.ifFish,s.a.zoom.enabled=!edit,e.floorLogo){case 1:case"1":e.floorLogo="user";break;case 0:case"0":case"":case void 0:case"undefined":e.floorLogo="f0";break;default:"user"!=e.floorLogo&&"f1"!=e.floorLogo&&"f2"!=e.floorLogo&&(e.floorLogo="f0")}if(-1==e.sceneIndex&&(e.sceneIndex=1),e.sceneType=e.sceneType||0,"undefined"==e.entry&&(e.entry=null),e.entry){if(!e.entry.camera){var n={camera:{zoom:-1,quaternion:e.entry.quaternion},pano:e.entry.panoId};delete e.entry.quaternion,delete e.entry.panoId,e.entry=n}e.thumbImg=1}e.hasBGM&&!e.bgMusic&&(e.bgMusic=e.hasBGM),p.a.gui.initInformation(),t&&t.call(i)}else location.href=isMobile?"mobile.html#/404":"main.html#/404"},i=this,e.prev=3,e.next=6,C.a.getChain(v.a.getMetadataUrl(),null,function(e){o(e,t)}.bind(this));case 6:I.a.info("加载 metadata 完成"),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(3),console.warn("loadMetadata error"),g();case 13:case"end":return e.stop()}}),e,this,[[3,9]])})));return function(t){return e.apply(this,arguments)}}(),B.prototype.checkPassword=function(){var e=$.Deferred();if("zhiHouse"==v.a.applicationName)return e.resolve();var t=Store.metadata;return t.sceneKey?function(){if(window.isMobile){$(".tmpl-lock").fadeIn(200),$("#quick-blackout").css("z-index","-1");var i=!1,o="";$(".tmpl-lock .psd input").on("input",(function(e){if(i){var t=$(".tmpl-lock .psd li"),g=e.target.value.match(/[a-zA-Z0-9]*/g).join("").slice(0,4);$(".tmpl-lock .psd .focus").removeClass("focus");for(var n=0;n<4;n++)n<g.length?(t.eq(n).text(g[n]),4==g.length&&3==n&&t.eq(n).addClass("focus")):(t.eq(n).text(""),n==g.length&&t.eq(n).addClass("focus"));o=g,i=!1}else e.target.value=o})),$(".tmpl-lock .psd input").on("focus",(function(e){console.log("focus"),$(".tmpl-lock .psd .focus").removeClass("focus");var t=o.length;t<3?$(".tmpl-lock .psd li").eq(t).addClass("focus"):$(".tmpl-lock .psd li").eq(3).addClass("focus")})),$(".tmpl-lock .psd input").on("blur",(function(e){console.log("blur"),$(".tmpl-lock .psd .focus").removeClass("focus")})),$(".tmpl-lock .psd input").on("keydown",(function(e){e.target.value=o,i=!0})),$('.tmpl-lock button[type="submit"]').on("click",(function(){t.sceneKey==o?($(".tmpl-lock .tips").text(L.a.get("解锁成功!")),$(".tmpl-lock").fadeOut(150),e.resolve()):($(".tmpl-lock .tips").text(L.a.get("密码错误,请再输一次")),$(".tmpl-lock .tips").removeClass("shake"),setTimeout((function(){$(".tmpl-lock .tips").addClass("shake")}),2))})),p.a.gui.textKeyBoardEvent($(".tmpl-lock .psd input"))}else{var g=function(){var i=n[0].value;t.sceneKey==i?(window.hasStartload=!0,$("#player canvas").removeClass("hide"),e.resolve(),a.removeClass("show"),$(".psd.Box").fadeOut(200)):(a.addClass("show"),a.removeClass("shake"),setTimeout((function(){a.addClass("shake")}),2))};$(".psd.Box").fadeIn(200);var n=$(".psd.Box input"),a=$(".psd.Box .wrong");$(".psd.Box button").click(g),n.on("change",g),n.on("focus",(function(){a.removeClass("show")})),n.focus()}}():e.resolve(),e.promise()},B.prototype.loadThumb=function(){if(1==Store.metadata.thumbImg){var e=(edit?"scene/":M.a.prefix)+"images/images"+this.projectNum+"/"+(v.a.ifFish?M.a.LOADPIC_FISH:M.a.LOADPIC);$("#gui-thumb").css("background-position","center center")}else if(2==Store.metadata.thumbImg){e=Store.metadata.homePic;$("#gui-thumb").css("background-position","center center")}else e=M.a.prefix+"loading/pc.jpg";C.a.loadImg(e).then((function(){$("#gui-thumb").css("background-image","url("+e+")").fadeIn(120)}))},B.prototype.weixinShare=function(){if(k.a.detectWeixin()){if(Store.metadata.shareLogo)var e="https://www.4dkankan.com/scene/"+Store.metadata.shareLogo+"?m="+(new Date).getTime();else if(2==Store.metadata.thumbImg)e=Store.metadata.homePic.replace("icon","icon_smallPic");else if(1==Store.metadata.thumbImg)e=(edit?"scene/":M.a.prefix)+"images/images"+this.projectNum+"/smallPic.jpg?m="+(new Date).getTime();else e=M.a.prefix+"loading/share.jpg";console.log(e),(0,i(252).default)({title:Store.metadata.sceneName||v.a.defaultName,link:window.location.href,imgUrl:e,desc:$("#j-header-scenedesc").text()})}},B.prototype.loadModel=function(){var e=r()(a.a.mark((function e(t,i){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,p.a.rebuild){e.next=8;break}return e.next=4,this.loadPanos();case 4:if(e.t0=1!=v.a.setSpotType,!e.t0){e.next=8;break}return e.next=8,this.loadSubPanos();case 8:return e.next=10,this.loadMesh(i);case 10:return e.next=12,this.loadMeshTextures(i);case 12:I.a.info("loadMeshTextures完成"),t&&t(),e.next=19;break;case 16:e.prev=16,e.t1=e.catch(0),console.error(e.t1);case 19:case"end":return e.stop()}}),e,this,[[0,16]])})));return function(t,i){return e.apply(this,arguments)}}(),B.prototype.loadModelAddition=function(){var e=r()(a.a.mark((function e(t,i){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,C.a.getChain(v.a.getFloorUrl(),null,(function(e){0!==Store.metadata.CADenable&&"0"!==Store.metadata.CADenable||(v.a.CADenable=!1),!e.room&&e.vertex&&e.wall&&Object(R.a)(e),I.a.info("floor.json加载成功"),Store.set("floorJson",e),p.a.player.model.InitMiniMap()}));case 3:e.next=10;break;case 5:e.prev=5,e.t0=e.catch(0),p.a.player.model.InitMiniMap(),I.a.warn("floor文件不存在"),v.a.CADenable=!1;case 10:if(p.a.rebuild||null==Store.metadata.hots&&!Store.metadata.hotsIds){e.next=19;break}return e.prev=11,e.next=14,C.a.getChain(v.a.getHotUrl(),null,(function(e){I.a.info("hot.json加载成功"),"object"==g()(e)&&e.length>0&&e.forEach(function(e){var t=p.a.player.model;t.tags[e.sid]?console.log("有重复的热点sid"+e.sid):(t.tags[e.sid]=new S.a(t,e.sid,e),t.tags[e.sid].build(),t.tags[e.sid].bindEvents(),p.a.tagManager.getTag(t.tags[e.sid]),t.tags[e.sid].disc.material.uniforms.opacity.value=0)}.bind(this))}));case 14:e.next=19;break;case 16:e.prev=16,e.t1=e.catch(11),I.a.warn("hot文件不存在");case 19:case"end":return e.stop()}}),e,null,[[0,5],[11,16]])})));return function(t,i){return e.apply(this,arguments)}}(),B.prototype.loadHighlightReel=r()(a.a.mark((function e(){var t,i;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=$.Deferred(),i="pro/data/data"+this.player.model.sid+"/active_reel.json",C.a.get(i,{responseType:"json",auth:this.player.model.isPublic?null:s.a.authorizationHeader},function(e){if(I.a.info("loadHighlightReel 完成"),(e=JSON.parse(JSON.stringify(e))).images){this.player.model.images.list=e.images;for(var i=0;i<e.images.length;++i)e.images[i].metadata=JSON.parse(e.images[i].metadata),this.player.model.images.index[e.images[i].sid]=e.images[i]}t.resolve()}.bind(this),(function(e){I.a.warn("Getting highlight reel failed, no highlights available"),t.resolve()})),e.abrupt("return",t);case 3:case"end":return e.stop()}}),e,this)}))),B.prototype.loadGuider=function(){var e=r()(a.a.mark((function e(t,i){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!Store.isGuiderLoaded){e.next=3;break}return e.abrupt("return");case 3:if(!Store.metadata.screencapThumb){e.next=6;break}return e.next=6,C.a.getChain(v.a.getTourListUrl(Store.metadata.screencapThumb),null,(function(e){Store.set("thumbs",e)}));case 6:if(!Store.metadata.playData){e.next=9;break}return e.next=9,C.a.getChain(v.a.getTourListUrl(Store.metadata.playData),null,(function(e){$.isArray(e)||(e=[]),O.a.calcNodeTime(e),Store.set("playData",e)}));case 9:if(!Store.metadata.capData||!edit){e.next=12;break}return e.next=12,C.a.getChain(v.a.getTourListUrl(Store.metadata.capData),null,(function(e){Store.set("capData",e)}));case 12:if(!Store.metadata.frameData||!edit){e.next=15;break}return e.next=15,C.a.getChain(v.a.getTourListUrl(Store.metadata.frameData),null,(function(e){Store.set("frameData",e)}));case 15:Store.isGuiderLoaded=!0,e.next=22;break;case 18:e.prev=18,e.t0=e.catch(0),I.a.info("加载导览失败,视作无导览"),I.a.error(e.t0);case 22:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(t,i){return e.apply(this,arguments)}}(),B.prototype.loadMesh=function(){var e=r()(a.a.mark((function e(t){var i,o,g,n,A,r,C=this;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g=function(e,t){if(0===e.length){I.a.warn("No geometry found for model, loading faux geometry, disabling outside mode"),t.model.supportedModes[ViewMode.DOLLHOUSE]=!1,t.model.supportedModes[ViewMode.FLOORPLAN]=!1;var i=new Chunk({geometry:new THREE.PlaneBufferGeometry(5,5,1,1)});i.material.visible=!1,i.rotateX(-Math.PI/2),i.geometry.computeBoundingBox(),e=[i]}e.forEach((function(e){var i=0;t.model.floorsEnabled&&(i=x.parseFloor(e.name)),t.model.addChunk(i,e)})),t.model.floors.sort()},function(e){var t=e.match(/group([0-9]*)/);if(!t)return 0;try{return parseInt(t[1],10)}catch(e){return I.a.warn('Non-int value "'+t[1]+'" for mesh group, defaulting to floor 0'),0}},I.a.info("开始执行loadMesh"),$.Deferred(),i=p.a.player.model.urls,o=i.getPrefix(t)+v.a.imagesPath+this.projectNum+"/"+v.a.job+v.a.format,p.a.rebuild?o+="?m="+(new Date).getTime():o+="?m="+i.getPost(),n=function(e){I.a.info("loadMesh加载完了");var t=(new Date).getTime();console.log("model解压时间1:"+(t-A)+"ms");var i=l.decompressMesh(e),o=b.convertProtobufToSceneObject(C.projectNum,i);g(o,C.player),console.log("model解压时间2:"+((new Date).getTime()-t)+"ms")},A=(new Date).getTime(),e.next=11,this.getFileAsArrayBuffer(o);case 11:r=e.sent,n.call(this,r);case 13:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),B.prototype.loadFirstPano=function(){},B.prototype.loadPanos=r()(a.a.mark((function e(){var t,i,o,g=this;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I.a.info("开始执行loadPanos"),t=v.a.prefixServerOSS+v.a.imagesPath+this.projectNum+"/"+v.a.locationfileName+"?m="+(new Date).getTime(),i=function(e){I.a.info("loadPanos加载完了");var t=l.decompressModeldata(e),i=b.visionModeldata(t);return g.player.model.panos=b.panos(g.player.model.panos,i,g.player),i},e.next=5,this.getFileAsArrayBuffer(t);case 5:return o=e.sent,e.abrupt("return",i(o));case 7:case"end":return e.stop()}}),e,this)}))),B.prototype.loadSubPanos=r()(a.a.mark((function e(){var t,i,o,g=this;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return I.a.info("开始执行loadPanos"),t=v.a.prefixServerOSS+v.a.imagesPath+this.projectNum+"/"+v.a.location2fileName+"?m="+(new Date).getTime(),i=function(e){I.a.info("loadPanos加载完了");var t=l.decompressModeldata(e),i=b.visionModeldata(t);i.forEach((function(e){e.isSub=!0}));var o=b.panosSub(i,g.player.model);return o.forEach(function(e,t){this.player.model.panos.list[t].subPano=e,e.isSub=!0}.bind(g)),g.player.model.subPanos=o,i},e.next=5,this.getFileAsArrayBuffer(t);case 5:return o=e.sent,e.abrupt("return",i(o));case 7:case"end":return e.stop()}}),e,this)}))),B.prototype.loadMeshTextures=function(){var e=r()(a.a.mark((function e(t){var i=this;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:D.load(this.player.model,this.player.model.meshTextures,t).then((function(){i.player.model.meshTexturesLoaded=!0})).fail((function(e){return console.error(e)}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),B.prototype.loadRecordProData=function(){var e=r()(a.a.mark((function e(t){return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,C.a.getChain(t,null,function(e){Store.set("recordPro",e)}.bind(this));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),B.prototype.getFileAsArrayBuffer=function(e){var t=$.Deferred(),i=function(){I.a.error("模型dam文件不存在")},o=C.a._xhr("get",e,i);return o.responseType="arraybuffer",o.onreadystatechange=function(){4==this.readyState&&(200==this.status?t.resolve(this.response):i&&i())},o.send(),t.promise()},p.a.loaders=new B;t.a=B},function(e,t,i){"use strict";i(38);var o=i(32),g=i(0);function n(e){this.position=e.pos,this.sid=e.sid,this.elem=$('<div class="roomLabel"><a><span>客厅</span></a></div>'),this.text=e.text||"",this.elem.find("span").html(this.text),e.container?e.container.append(this.elem):$("#hotspot .dollLabels").append(this.elem),g.a.player.dollLabels.push(this),this.toPano=e.toPano,this.clickFun=e.clickFun,this.elem[0].addEventListener("click",this.clickFuc.bind(this)),this.enable=!0,this.type="doll"}n.prototype.changeText=function(e){this.text=e,this.elem.find("span").html(this.text)},n.prototype.update=function(){if("dollhouse"===g.a.player.mode)if(this.enable&&this.text){var e=o.a.getPos2d(this.position);if(e.trueSide){var t=this.position.clone().setY(this.position.y+2);o.a.ifShelter(t,{x:e.vector.x,y:e.vector.y})?this.elem.addClass("hide"):(this.elem.css({left:e.pos.x+"px",top:e.pos.y+"px"}),this.elem.removeClass("hide"))}else this.elem.addClass("hide")}else this.elem.addClass("hide")},n.prototype.clickFuc=function(){this.toPano?g.a.player.flyToPano({pano:this.toPano}):this.clickFun&&this.clickFun()},n.prototype.remove=function(){this.elem.remove();var e=g.a.player.dollLabels.indexOf(this);e>-1&&g.a.player.dollLabels.splice(e,1)},t.a=n},function(e,t,i){"use strict";i(38);var o=i(32),g=i(0);function n(e){this.position=e.pos,this.sid=e.sid,this.elem=$('<div class="roomLabel"><a></a></div>'),this.text=e.text||"",this.elem.find("a").html(this.text),e.container?e.container.append(this.elem):$("#hotspot .planLabels").append(this.elem),g.a.player.planLabels.push(this),this.toPano=e.toPano,this.enable=!1,this.type="plan"}n.prototype.changeText=function(e){this.text=e,this.elem.find("a").html(this.text)},n.prototype.update=function(){if(this.enable&&this.text){var e=o.a.getPos2d(this.position);e.trueSide?(this.elem.css({left:e.pos.x+"px",top:e.pos.y+"px"}),this.elem.removeClass("hide")):this.elem.addClass("hide")}else this.elem.addClass("hide")},n.prototype.remove=function(){this.elem.remove();var e=g.a.player.planLabels.indexOf(this);e>-1&&g.a.player.planLabels.splice(e,1)},t.a=n},function(e,t,i){"use strict";i(39);var o,g=i(7),n=i(0),a=i(4),A=i(118),r=i(6),C=g.a.detectSafari(),I=function(e){for(var t in o.reticule.visible=!0,o.model.floorLogos[0].visible=e.fL0,o.model.floorLogos[1].visible=e.fL1,o.path.currentPanoMarker.mesh.visible=!0,o.model.panos.index)o.model.panos.index[t].marker.visible=o.model.panos.index[t].marker.forceHide;o.cameraControls.controls.floorplan.snapshotTopAspect=null,"panorama"!=o.mode&&(o.model.chunks.forEach((function(e){e.material.side=THREE.FrontSide})),n.a.sceneRenderer.scene.skyboxBG.material.side=THREE.BackSide),o.model.skybox.material.side=THREE.BackSide,window.isMobile||n.a.gui.showWaiting(!1,"Screenshot")},s=function e(t,i){var g,s;t.tasks.unFish&&t.tasks.unFish.length?(g=t.tasks.unFish.splice(0,1)[0],s="unFish"):t.tasks.fish&&t.tasks.fish.length?(g=t.tasks.fish.splice(0,1)[0],s="fish"):s="finish","unFish"==i&&"fish"==s?function(e){o.model.fishSkybox||(o.model.fishSkybox=new THREE.Mesh(new THREE.SphereGeometry(r.a.skyRadius,80,50),o.model.skybox.material),n.a.sceneRenderer.scene.add(o.model.fishSkybox)),o.model.fishSkybox.position.copy(o.position),o.model.fishSkybox.visible=!0,o.model.skybox.visible=!1;for(var t=0;t<o.model.chunks.length;t++)o.model.chunks[t].visible=!1;e.cameraPosOld=o.camera.position.clone(),o.cameraControls.activeControl.fishState=!0,o.cameraControls.activeControl.camera.fov=r.a.fish.insideFOV,o.cameraControls.activeControl.target.copy(o.position),o.updateFromControls()}(t.changeBefore):"fish"==i&&"finish"==s?(!function(e){if("panorama"==o.mode){o.cameraControls.activeControl.camera.position.copy(e.cameraPosOld),o.cameraControls.activeControl.fishState=!1,o.model.fishSkybox.visible=!1,o.model.skybox.visible=!0;for(var t=0;t<o.model.chunks.length;t++)o.model.chunks[t].visible=!0;o.cameraControls.activeControl.camera.fov=r.a.insideFOV}o.updateFromControls()}(t.changeBefore),I(t.changeBefore)):"finish"==s?I(t.changeBefore):a.a.info("other state:"+i+"|"+s),"finish"!=s&&A.a.takeScreenShot({resolution:{width:g.width,height:g.height},quality:C?45:60},(function(i){t.f&&t.f(i.message,g.name),e(t,s)}))};t.a=function(e){o||(o=n.a.player),(o.flying||o.isWarping()||"transitioning"==o.mode)&&console.warn("you take a screenshot 当 flying or transitioning mode!!请检查截图");var t=$("#gui-parent .snapshotFlash");window.isMobile||n.a.gui.showWaiting(!0,"Screenshot");var i=function(){var t=o.model.floorLogos[0].visible,i=o.model.floorLogos[1].visible;for(var g in o.model.panos.index)o.model.panos.index[g].marker.forceHide=o.model.panos.index[g].marker.visible,o.model.panos.index[g].marker.visible=!1;o.reticule.visible=!1,o.model.floorLogos[0].visible=!1,o.model.floorLogos[1].visible=!1,o.path.currentPanoMarker.mesh.visible=!1,"panorama"!=o.mode&&(o.model.chunks.forEach((function(e){e.material.side=THREE.BackSide})),n.a.sceneRenderer.scene.skyboxBG.material.side=THREE.FrontSide),o.model.skybox.material.side=THREE.DoubleSide,e.snapshotTopview&&"floorplan"==o.mode&&(o.cameraControls.controls.floorplan.snapshotTopAspect=$("#player").width()/$("#player").height()),e.changeBefore={fL0:t,fL1:i,notHideTags:e.notHideTags},s(e)};return e.dontflash?i():(t.addClass("active"),setTimeout(i,10),setTimeout((function(){t.removeClass("active")}),1550)),!0}},function(e,t,i){"use strict";i(38);var o=i(32),g=(i(2),i(6),i(48),i(3));function n(e){this.updatePoints(e.points),this.state=e.state||"active",this.elem=$('<div class="ruler wallLine hide" data-name=""><div class="ruler-label"><div class="ruler-label-point"></div><span class="ruler-label-name">约0.5米</span></div></div>'),$("#hotspot .rulers").append(this.elem),this.elem.find(".ruler-label-name").html(this.text)}n.prototype.remove=function(){this.elem.remove()},n.prototype.updatePoints=function(e){this.point=e[0].clone().add(e[1]).multiplyScalar(.5),this.length=Math.round(100*e[0].distanceTo(e[1]))/100,this.text=g.a.get("约")+this.length+g.a.get("米")},n.prototype.update=function(){if("panorama"==publicObjectSet.player.mode&&"active"==this.state){var e=o.a.getPos2d(this.point);e.trueSide&&e.inSight?(this.elem.removeClass("hide"),this.elem.find(".ruler-label").css({left:e.pos.x+"px",top:e.pos.y+"px"})):this.elem.addClass("hide")}else this.elem.addClass("hide")},t.a=n},function(e,t,i){"use strict";t.a=function(e){return e.vertex.forEach((function(e,t){return e.id=t})),e.wall.forEach((function(e,t){return e.id=t})),e}},function(e,t,i){"use strict";i(38);var o=i(61),g=function(e){this.type=e.type,"chose"==e.type?this.$list=$("#bottChoseList"):"share"==e.type&&(this.$list=$("#bottShareList")),"share"==e.type&&this.ShareInit(),this.$list.find("ul").eq(1).find("li").on("click",this.close.bind(this)),this.$list.on("click",function(e){e.target==this.$list[0]&&this.close()}.bind(this))};g.prototype.close=function(){this.$list.removeClass("open"),setTimeout(function(){this.$list.addClass("hide")}.bind(this),200)},g.prototype.open=function(e){if("chose"==this.type)for(var t in this.$list.find("ul").eq(0).html(""),e.ul){var i=$("<li>"+t+"</li>");i.on("click",function(t){return function(){e.ul[t]&&e.ul[t](),this.close()}.bind(this)}.bind(this)(t)),this.$list.find("ul").eq(0).append(i)}this.$list.removeClass("hide"),setTimeout(function(){this.$list.addClass("open")}.bind(this),100)},g.prototype.ShareInit=function(){this.$list.find('li[data-type="weixin"]').on("click",function(){Object(o.a)("Share-weixin"),this.close()}.bind(this)),this.$list.find('li[data-type="weixinFriend"]').on("click",function(){Object(o.a)("Share-weixinFriend"),this.close()}.bind(this)),this.$list.find('li[data-type="qq"]').on("click",function(){Object(o.a)("Share-qq"),this.close()}.bind(this)),this.$list.find(".cancel").on("click",function(){this.close()}.bind(this))},t.a=g},function(e,t,i){"use strict";i(38),i(39);var o=i(4),g=function(e){var t=this;this.name=e.name,this.value=e.value,this.min=null!=e.min?e.min:0,this.max=this.oriMax=null!=e.max?e.max:100,this.noValue=e.noValue,this.precision=e.precision;var i=$('<div><div class="Main"><div class="scrollBar"><div class="scroll_Track"></div><div class="scroll_Thumb"></div></div>'+(e.noValue?"":'<div class="BarTxt"><input class="scrollBarTxt"></div></div>'));if(i.addClass("slider"),e.unitStr&&i.find(".BarTxt").append($("<span>"+e.unitStr+"</span>")),e.root.append(i),this.line=$(".scrollBar",i),this.knot=$(".scroll_Thumb",i),e.noValue||(this.textArea=$(".scrollBarTxt",i)),this.track=$(".scroll_Track",i),this.unitStr=e.unitStr,this.onchange=e.onchange,this.percent=null,this.dragStart=!1,this.offsetToBody=null,this.getOffset(),this.checkError(),this.percent=this.getPercent(),e.noValue||this.displayValue(),this.moveKnot(),this.knotWidth=0,this.lineWidth=0,this.avoidCrash=e.avoidCrash,this.realMax=this.noValue?null:e.realMax,this.scrollUnit=.001*(t.max-t.min),null!=this.precision){var o=Math.pow(10,-this.precision);this.scrollUnit<o&&(this.scrollUnit=o)}else this.scrollUnit<1&&(this.scrollUnit=1);this.dragStartEvent=e.dragStartEvent,this.line.on("mousedown touchstart",(function(i){t.dragStart=!0,t.dragChange(i),t.dragStartEvent&&t.dragStartEvent(),e.avoidCrash&&isMobile&&t.dealInterval()})),!window.isMobile&&this.line.on("mousewheel DOMMouseScroll wheel",(function(e){e.preventDefault();var i=e.originalEvent.deltaY>0?-t.scrollUnit:t.scrollUnit;t.setValue(t.value+i)})),this.dragEndEvent=e.dragEndEvent;var g=function(){t.dragStart&&(t.dragStart=!1,t.dragEndEvent&&t.dragEndEvent())};$(document).on("mouseup touchend",g),isMobile||$("#player").on("mouseup",g);$(document).on("mousemove touchmove",(function(){t.dragStart&&(isMobile&&e.avoidCrash?t.lastDragEvent=event:t.dragChange(event))})),e.noValue||this.textArea.on("change",(function(){var e=parseFloat(t.textArea.val());e==e&&t.setValueFromOutside(e)}))};g.prototype.dealInterval=function(){this.interval=setInterval(function(){this.lastDragEvent&&this.dragChange(this.lastDragEvent),this.lastDragEvent=null,this.dragStart||clearInterval(this.interval)}.bind(this),90)},g.prototype.changeLimit=function(e){e.min&&(this.min=e.min),e.max&&(this.max=e.max)},g.prototype.getOffset=function(){for(var e=this.line[0].offsetLeft,t=this.line[0];t=t.offsetParent;)e+=t.offsetLeft;this.offsetToBody=0==e?this.offsetToBody||0:e},g.prototype.InitOffset=function(){this.getOffset(),this.getWidth(),this.moveKnot()},g.prototype.checkError=function(){this.min>=this.max&&o.a.info("scrollbar值有误 "+name)},g.prototype.getPercent=function(){return(this.value-this.min)/(this.max-this.min)},g.prototype.displayValue=function(e){null!=e&&(this.value=e),this.textArea.val(this.value)},g.prototype.getWidth=function(){this.knotWidth=this.knot.width(),this.lineWidth=this.line.width()-this.knotWidth},g.prototype.moveKnot=function(){var e=this.percent*this.lineWidth;this.knot.css("left",e+"px"),this.track&&this.track.css("width",e+this.knotWidth/2+"px")},g.prototype.bind=function(e){this.onchange=e},g.prototype.setValue=function(e,t,i){null!=this.precision?this.value=parseFloat(e.toFixed(this.precision)):this.value=Math.round(e),i&&null!=this.realMax&&(this.value>this.oriMax?(this.value=Math.min(this.value,this.realMax),this.changeLimit({max:this.value})):this.changeLimit({max:this.oriMax})),this.percent=this.getPercent();var o=!0;this.onchange&&!t&&(!1===this.onchange(this.value)&&(o=!1));o&&(this.moveKnot(),this.noValue||this.displayValue())},g.prototype.dragChange=function(e){null!=e.clientX?this.percent=(e.clientX-this.knotWidth/2-this.offsetToBody)/this.lineWidth:null!=e.touches?this.percent=(e.touches[0].clientX-this.knotWidth/2-this.offsetToBody)/this.lineWidth:this.percent=(e.originalEvent.touches[0].clientX-this.knotWidth/2-this.offsetToBody)/this.lineWidth,this.percent<0?this.percent=0:this.percent>1&&(this.percent=1);var t=this.percent*(this.max-this.min)+this.min;this.value!=t&&this.setValue(t)},g.prototype.setValueFromOutside=function(e){0!=this.line.width()&&(null!=this.realMax?(e=THREE.Math.clamp(e,this.min,this.realMax))>this.max&&this.changeLimit({max:e}):e=THREE.Math.clamp(e,this.min,this.max),this.setValue(e))},t.a=g},function(e,t,i){var o=i(104);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,i){"use strict";var o=i(112),g=i(58),n=i(84),a=i(81),A=i(113),r=i(223),C=i(122),I=i(189),s=i(56)("iterator"),l=!([].keys&&"next"in[].keys()),c=function(){return this};e.exports=function(e,t,i,u,d,h,p){r(i,t,u);var f,m,v,y=function(e){if(!l&&e in E)return E[e];switch(e){case"keys":case"values":return function(){return new i(this,e)}}return function(){return new i(this,e)}},b=t+" Iterator",w="values"==d,x=!1,E=e.prototype,P=E[s]||E["@@iterator"]||d&&E[d],T=P||y(d),D=d?w?y("entries"):T:void 0,M="Array"==t&&E.entries||P;if(M&&(v=I(M.call(new e)))!==Object.prototype&&v.next&&(C(v,b,!0),o||"function"==typeof v[s]||a(v,s,c)),w&&P&&"values"!==P.name&&(x=!0,T=function(){return P.call(this)}),o&&!p||!l&&!x&&E[s]||a(E,s,T),A[t]=T,A[b]=c,d)if(f={values:w?T:y("values"),keys:h?T:y("keys"),entries:D},p)for(m in f)m in E||n(E,m,f[m]);else g(g.P+g.F*(l||x),t,f);return f}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,i){var o=i(68),g=i(225).set;e.exports=function(e,t,i){var n,a=t.constructor;return a!==i&&"function"==typeof a&&(n=a.prototype)!==i.prototype&&o(n)&&g&&g(e,n),e}},function(e,t,i){var o=i(111)("meta"),g=i(68),n=i(93),a=i(73).f,A=0,r=Object.isExtensible||function(){return!0},C=!i(65)((function(){return r(Object.preventExtensions({}))})),I=function(e){a(e,o,{value:{i:"O"+ ++A,w:{}}})},s=e.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!g(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!n(e,o)){if(!r(e))return"F";if(!t)return"E";I(e)}return e[o].i},getWeak:function(e,t){if(!n(e,o)){if(!r(e))return!0;if(!t)return!1;I(e)}return e[o].w},onFreeze:function(e){return C&&s.NEED&&r(e)&&!n(e,o)&&I(e),e}}},function(e,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(e){"object"==typeof window&&(i=window)}e.exports=i},function(e,t,i){"use strict";i.r(t);i(49),i(29),i(72),i(63),i(150),i(151),i(39),i(86),i(38);var o,g,n,a=i(0),A=i(6),r=i(2),C=i(61),I=i(13),s=i(79),l=(i(7),i(4)),c=i(92),u=i(136),d=i(10),h=i(17),p=i(3);function f(e,t){$(e).length;var i=new Quill(e,{modules:{toolbar:!1},placeholder:p.a.get("请输入简介")});return i.txt={html:function(e){if(void 0===e)return i.root.innerHTML;i.root.innerHTML=e}},i.on("text-change",(function(){t(i.root.innerHTML,i.getText())})),i.on("selection-change",(function(){i.__init_focus=!0})),i.__setLink=function(e,t){if(!t||!e)return!1;/http(s)?:\/\//.test(t)||(t="https://"+t),i.__init_focus&&i.focus();var o=(i.getSelection()||{}).index;return void 0===o&&(o=i.getLength()-1),i.insertText(o,e,"link",t),i.blur(),!0},i}function m(e,t){e.on("input",(function(t){d.default.getWordsLength(e.val())})),e.on("change",(function(){var i=d.default.getWordsLength(e.val(),t||15);e.val(i.words)}))}function v(){$(".tmpl-menu li").click((function(){var e=$(this).data("name");if("snapTour.step-1"==e&&Store.playData&&Store.playData.length>0)a.a.gui.showAskBox(p.a.get("是否重新录制导览?"),"<ul><li>"+p.a.get("您已录制过导览")+"</li><li>"+p.a.get("重新录制将覆盖之前的数据")+"</li></ul>",{btns:[{text:p.a.get("取消"),type:"cancel"},{text:p.a.get("确定"),type:"submit",fuc:b.bind(this,e)}]});else{if("hotpoint.step-1"==e){if(a.a.editor.checkSpotCount({max:A.a.MAX_SPOT_COUNT}))return void a.a.gui.showAskBox(p.a.get("无法添加热点"),p.a.get("热点数目已达最大:")+A.a.MAX_SPOT_COUNT);if(1==r.a.setSpotType&&a.a.editor.checkNoNeighbour())return void a.a.gui.showAskBox(p.a.get("无法在此添加热点"),p.a.get("由于当前位置没有邻近位置,无法添加热点。请在别的位置添加"))}else if("hotVisible"==e&&a.a.editor.checkSpotCount({min:0}))return void a.a.gui.showAskBox(p.a.get("无法设置热点可视"),p.a.get("当前无热点,请先创建热点再设置"));b(e)}})),$(".tmpl-hotpoint").on("click",".swiper-slide",(function(){$(".tmpl-hotpoint").find(".swiper-slide.active").removeClass("active"),$(this).addClass("active");var e=$(this).data("name");h.a.selectStyle(e)})),$(".tmpl-music").on("click","li",(function(){$(".tmpl-music .tips .right").addClass("enable"),$(".tmpl-music").find("li.active").removeClass("active"),$(this).addClass("active"),a.a.editor.dataInEdit.bgmIndex=$(this).index(),a.a.playGuider.musicPlayer.stop().url(A.a.imgRoot+"audio/"+A.a.BGM_LIST[$(this).index()].file).setLoop(!0),a.a.playGuider.musicPlayer.play(),$(".btn-right").removeClass("hide")})),$(".tmpl-music").on("click",".tips .right",(function(){$(this).removeClass("enable"),$(".tmpl-music").find("li.active").removeClass("active"),a.a.editor.dataInEdit.bgmIndex=null,a.a.playGuider.musicPlayer.stop(),a.a.playGuider.musicPlayer.remove(),$(".btn-right").addClass("hide")})),$(".tmpl-sign").on("click",".icon-sign",(function(){if(!$(this).hasClass("enable")){$(".tmpl-sign").find("span.active").removeClass("active"),$(this).addClass("active");var e=$(this).parent("li").index();3==e?($(".tmpl-sign").find(".tips span").addClass("enable"),a.a.editor.flUserImg instanceof Image?a.a.editor.changeFloorLogo({image:a.a.editor.flUserImg}):a.a.editor.changeFloorLogo({url:a.a.editor.flUserImg})):(a.a.editor.changeFloorLogo({url:A.a.imgRoot+"floorlogo/"+("en"==r.a.lang?"en/":"")+e+".png",index:e}),$(".tmpl-sign").find(".tips span").removeClass("enable"))}})),$(".tmpl-information").on("change","input.title",(function(e){a.a.editor.dataInEdit.sceneName=e.target.value})),$(".tmpl-information").on("focus","input.title",(function(e){$(".tmpl-information .word .warn").eq(0).addClass("hide")})),g=f(".tmpl-information .desc",(function(e){g.getLength()-1>200&&(e=S(e,200)),a.a.editor.dataInEdit.sceneDec=e})),n=f(".tmpl-hotpoint.step-3 .desc",(function(e){n.getLength()-1>200&&(e=S(e,200)),console.log(e),a.a.editor.markTag.billboard.changeDesc(e)})),m($(".tmpl-information .word input").eq(0)),m($(".tmpl-hotpoint .word input")),m($(".tmpl-wallDesign #roomName")),$(".tmpl-information .categorys").on("click","span",(function(){$(".tmpl-information .categorys").find(".active").removeClass("active"),$(this).addClass("active"),a.a.editor.dataInEdit.sceneType=d.default.getSceneType(A.a.SCENETYPE2[$(this).index()])})),$(".tmpl-hotpoint.step-3").on("input","input.text,input.url",(function(){var e=$(".tmpl-hotpoint.step-3");e.find("input.text").val()&&e.find("input.url").val()?e.find(".link button").addClass("enable"):e.find(".link button").removeClass("enable")})),$(".tmpl-hotpoint.step-3 .link").on("click","a.submit",(function(){var e=$(".tmpl-hotpoint.step-3"),t=e.find("input.text").val(),i=e.find("input.url").val();t&&i&&(/^http(s)?:\/\//.test(i)||(i="http://"+i),n.__setLink(t,i),a.a.editor.markTag.billboard.changeDesc(S(n.txt.html(),200)),e.find("input.text").val(""),e.find("input.url").val(""))})),$(".tmpl-information .link").on("click","a.submit",(function(){var e=$(".tmpl-information"),t=e.find("input.text").val(),i=e.find("input.url").val();t&&i&&(/^http(s)?:\/\//.test(i)||(i="http://"+i),g.__setLink(t,i),a.a.editor.dataInEdit.sceneDec=S(g.txt.html(),200),e.find("input.text").val(""),e.find("input.url").val(""))})),$(".tmpl-hotpoint.step-3 .link").on("click","a.button",(function(){var e=$(".tmpl-hotpoint.step-3");e.find("input.text").val(""),e.find("input.url").val("")})),$(".tmpl-information .link").on("click","a.button",(function(){var e=$(".tmpl-information");e.find("input.text").val(""),e.find("input.url").val("")}));var e=!1;$("#app .tmpl-lock .psd input").on("input",(function(t){if(l.a.info("psdInput2"),e){l.a.info("psdInput2getIn"+t.target.value);var i=$("#app .tmpl-lock .psd li"),o=t.target.value.match(/[a-zA-Z0-9]*/g).join("").slice(0,4);$("#app .tmpl-lock .psd .focus").removeClass("focus");for(var g=0;g<4;g++)g<o.length?(i.eq(g).text(o[g]),4==o.length&&3==g&&i.eq(g).addClass("focus")):(i.eq(g).text(""),g==o.length&&i.eq(g).addClass("focus"));a.a.editor.dataInEdit.psd=o,e=!1}else t.target.value=a.a.editor.dataInEdit.psd})),$("#app .tmpl-lock .psd input").on("focus",(function(e){l.a.info("focusInput "+e.target.value),$("#app .tmpl-lock .psd .focus").removeClass("focus");var t=a.a.editor.dataInEdit.psd.length;t<3?$("#app .tmpl-lock .psd li").eq(t).addClass("focus"):$("#app .tmpl-lock .psd li").eq(3).addClass("focus")})),$("#app .tmpl-lock .psd input").on("blur",(function(e){l.a.info("blurInput "+e.target.value),$("#app .tmpl-lock .psd .focus").removeClass("focus")})),$("#app .tmpl-lock .psd input").on("keydown",(function(t){t.target.value=a.a.editor.dataInEdit.psd,e=!0,l.a.info("keydown")})),$('#app .tmpl-lock button[type="cancelPsd"]').click((function(){a.a.editor.dataInSave.psd?E("unlockRequest"):(D(!1),x())})),$(".tmpl-information .lock input").on("input",(function(e){var t=e.target.value.match(/[a-zA-Z0-9]*/g);e.target.value=t.join("").slice(0,4),a.a.editor.dataInEdit.psd=e.target.value,4==e.target.value.length&&$(".tmpl-information .lock .warn").addClass("hide")})),$("header .btn-right.delete").on("click",(function(){a.a.gui.showAskBox(p.a.get("是否删除当前场景?"),"<ul><li>"+p.a.get("该操作将无法恢复")+"</li><li>"+p.a.get("使用过的积分亦无法返还")+"</li></ul>",{btns:[{text:p.a.get("取消"),type:"cancel"},{text:p.a.get("确定"),type:"submit",fuc:E.bind(this,"delete"),wait:!0}]})})),$("header .btn-right.save").on("click",(function(){a.a.gui.showInfo(p.a.get("保存成功"))})),$('.buttons button[type="submit"]').click((function(){var e=$(this).parent().data("name");e&&E(e)})),$('.buttons button[type="button"]').click((function(){x($(this).parent().data("name"),"cancel")})),$('.buttons button[type="PreStep"]').click((function(){!function(e){"hotpoint.step-1-2"==e||"hotpoint.step-2"==e?b("hotpoint.step-1"):"hotpoint.step-3"==e&&(2==r.a.setSpotType||3==r.a.setSpotType?b("hotpoint.step-1-2"):b("hotpoint.step-2"))}($(this).parent().data("name"))})),$('footer .tmpl-hotEdit button[type="delete"]').on("click",(function(){a.a.gui.showAskBox(p.a.get("是否删除当前热点?"),"",{btns:[{text:p.a.get("取消"),type:"cancel"},{text:p.a.get("确认删除"),type:"submit",wait:!0,fuc:E.bind(this,"deleteSpot")}]})})),$('footer .tmpl-hotEdit button[type="change"]').on("click",(function(){a.a.editor.reEditHot=!0,b("hotpoint.step-1")})),$("footer").on("touchstart touchmove",".tmpl-information .ql-container",(function(e){g.hasFocus()&&e.stopPropagation()})),$("footer").on("touchstart touchmove",".tmpl-hotpoint .ql-container",(function(e){n.hasFocus()&&e.stopPropagation()})),document.body.addEventListener("focusout",(function(){document.body.scrollTop=0,document.documentElement.scrollTop=0}))}a.a,"zhiHouse"==r.a.applicationName&&(window.appLoginToken||a.a.gui.showAskBox("",p.a.get("您没有登录,请登录后再编辑"),{btns:[{text:p.a.get("退出去登录"),type:"submit",wait:!0,fuc:function(){$("#back").click()}}],donClose:!0}));var y=!1;function b(e){if(e="string"==typeof e?e:$(this).data("name")){if(!a.a.player.flyingToTag){if("hotEdit"==e){if("menu"!=a.a.editor.atPanel)return;y=!0}else y=!1;if(r.a.app&&$("#back").addClass("unVisible"),$("header").addClass("hide"),"settings"!=e&&$("nav.left").addClass("hide"),$("#app").removeClass("full"),O.jroll&&O.jroll.destroy){try{O.jroll.destroy()}catch(e){}O.jroll=null}a.a.editor.atPanel=e,$(".footer-tmpl").css("display","none");$(".footer-tmpl.tmpl-"+e).css("display","block").find("div.link")[0];if(a.a.editor.enterHandel&&a.a.editor.enterHandel[e]&&a.a.editor.enterHandel[e](),$("body").attr("atPanel",e),"hotpoint.step-3"!=e&&"information"!=e||($("#app").addClass("full"),O.jroll=new JRoll("footer",{scrollBarY:!0})),"hotpoint.step-3"==e){Array.from(document.querySelectorAll("video")).forEach((function(e){return e.pause()}));var t=5.3;window.innerWidth>500?(t=window.innerWidth/100*1.4,$(".tmpl-hotpoint .swiper-container>.swiper-wrapper").css("justify-content","space-evenly")):$(".tmpl-hotpoint .swiper-container>.swiper-wrapper").css("justify-content","left"),o?o.update():o=new Swiper(".tmpl-hotpoint .swiper-container",{slideToClickedSlide:!1,slidesPerView:t,spaceBetween:1,freeMode:!0})}else"delete"===e&&$(".tmpl-delete div.tips").text(p.a.get("是否删除")+(a.a.editor.dataInSave.sceneName||p.a.get("四维看看"))+p.a.get("场景?"));null,"hotEdit"!=e&&Object(C.a)("VRMode1")}}else alert(p.a.get("编辑名称为空"))}function w(e){r.a.app&&$("#back").removeClass("unVisible"),a.a.editor.atPanel="menu",y=!1,$(".footer-tmpl").css("display","none"),$(".footer-tmpl.tmpl-menu").css("display","block"),$("header").removeClass("hide"),$("nav.left").removeClass("hide"),Object(C.a)("VRMode0")}function x(e,t){if(a.a.gui.showWaiting(!1),$("#app").removeClass("full"),$("body").attr("atPanel",""),O.jroll&&O.jroll.destroy){try{O.jroll.destroy()}catch(e){}O.jroll=null}for(var i in I.a.savingInfo)delete I.a.savingInfo[i];a.a.editor.exitHandel&&a.a.editor.exitHandel[e]&&a.a.editor.exitHandel[e](t),"delete"!=e?("deleteSpot"==e&&a.a.gui.closeAskBox(),w(),a.a.gui.permitTranMode(!0)):a.a.gui.closeAskBox()}function E(e){if(a.a.editor.btnHandel&&a.a.editor.btnHandel[e]){var t=e+"@"+(new Date).getTime();I.a.savingInfo[t]={done:0},a.a.editor.btnHandel[e].bind(this,(function(i){T(t,i,x.bind(this,e))}))(),function(e){"hotpoint.step-1"==e?2==r.a.setSpotType||3==r.a.setSpotType?b("hotpoint.step-1-2"):b("hotpoint.step-2"):"hotpoint.step-1-2"==e||"hotpoint.step-2"==e?b("hotpoint.step-3"):"snapTour.step-1"==e&&b("snapTour.step-2")}(e)}else l.a.info("没有这个btnHandel"),x(e)}var P=function(e,t,i){I.a.savingInfo[e].done=0,T(e,t,i)};function T(e,t,i){var o=e.split("@")[0],g=a.a.player;if("settings"==o){var n=r.a.prefixEditProMobileApi+"/saveAllVisi",c=I.a.getDataDeal(n,e,i,p.a.get("保存")),u={sceneNum:r.a.projectNum};u.panoVisi=a.a.editor.panoVisi?1:0,u.m2dVisi=a.a.editor.m2dVisi?1:0,u.m3dVisi=a.a.editor.m3dVisi?1:0,u.mapVisi=a.a.editor.mapVisi?1:0,u.vrVisi=a.a.editor.vrVisi?1:0,u.tourVisi=a.a.editor.tourVisi?1:0,u.rulerVisi=a.a.editor.rulerVisi?1:0,u.cadImgVisi=a.a.editor.cadImgVisi?1:0,u.measureVisi=a.a.editor.measureVisi?1:0,c.group[0]=function(){I.a.saveCallBack.done(e,i,p.a.get("保存"))},c.group[-1]=function(){I.a.saveCallBack.fail(e,i,p.a.get("保存"))},I.a.saveAjax(n,u,c)}else if("screen"==o)for(var d in t)if("EntryInfo"==d){n=r.a.prefixEditProMobileApi+"/saveInitialPage",c=I.a.getDataDeal(n,e,i);I.a.savingInfo[e].waitAjax={url:n,dataDeal:c,data:{sceneNum:r.a.projectNum,initialPoint:JSON.stringify(t.EntryInfo)}}}else Object(s.a)(r.a.prefixEditProMobileApi+"/uploadPic",{name:d+".jpg",needTransfer:!0,file:t[d]},{sceneNum:r.a.projectNum},I.a.saveCallBack.done.bind(this,e,i),I.a.saveCallBack.fail.bind(this,e),{resaveFuc:P.bind(this,e,t,i)});else if("sign"==o){1==t.chose?t.chose="user":0==t.chose&&(t.chose="f0");n=r.a.prefixEditProMobileApi+"/saveFloorLogo";(c=I.a.getDataDeal(n,e,i)).group[0]=function(){a.a.editor.dataInSave.flScale=t.size,a.a.editor.dataInSave.floorLogo=t.chose,I.a.saveCallBack.done(e,i)},I.a.saveAjax(n,{sceneNum:r.a.projectNum,size:t.size,picName:"floorLogoImg.png",logoType:t.chose},c)}else if("music"==o){n=r.a.prefixEditProMobileApi+"/saveBackgroundMusic",c=I.a.getDataDeal(n,e,i,p.a.get("设置"));(o=null!=a.a.editor.dataInEdit.bgmIndex?A.a.BGM_LIST[a.a.editor.dataInEdit.bgmIndex].name:"noMusic")==a.a.editor.dataInSave.bgmName?c.group[0]():(c.group[0]=function(){a.a.editor.dataInSave.bgmName=o,I.a.saveCallBack.done(e,i,p.a.get("设置"))},I.a.saveAjax(n,{sceneNum:r.a.projectNum,musicName:"en"==r.a.lang?"noMusic"==o?"noMusic":A.a.BGM_LIST[a.a.editor.dataInEdit.bgmIndex].ch:o},c))}else if("lock"==o){n=r.a.prefixEditProMobileApi+"/saveSceneKey",c=I.a.getDataDeal(n,e,i,p.a.get("加密"));a.a.editor.dataInSave.psd==t.psd?c.group[0]():(c.group[0]=function(){D(!0),setTimeout((function(){I.a.saveCallBack.done(e,i,p.a.get("加密"))}),800)},I.a.saveAjax(n,{sceneNum:r.a.projectNum,sceneKey:t.psd},c))}else if("unlockRequest"==o){n=r.a.prefixEditProMobileApi+"/saveSceneKey";(c=I.a.getDataDeal(n,e,i,p.a.get("取消加密"))).group[0]=function(){D(!1),setTimeout((function(){I.a.saveCallBack.done(e,i,p.a.get("取消加密"))}),500)},I.a.saveAjax(n,{sceneNum:r.a.projectNum,sceneKey:""},c)}else if("information"==o){n=r.a.prefixEditProMobileApi+"/saveSceneInfo",c=I.a.getDataDeal(n,e,i);if(a.a.editor.dataInSave.sceneName==a.a.editor.dataInEdit.sceneName&&a.a.editor.dataInSave.sceneDec==a.a.editor.dataInEdit.sceneDec&&a.a.editor.dataInSave.sceneType==a.a.editor.dataInEdit.sceneType&&a.a.editor.dataInSave.psd==a.a.editor.dataInEdit.psd)c.group[0]();else{c.group[0]=function(){a.a.editor.dataInSave.sceneName=a.a.editor.dataInEdit.sceneName,a.a.editor.dataInSave.sceneDec=a.a.editor.dataInEdit.sceneDec,a.a.editor.dataInSave.sceneType=a.a.editor.dataInEdit.sceneType,a.a.editor.dataInSave.psd=a.a.editor.dataInEdit.psd,$("#j-header-scenename").html(a.a.editor.dataInSave.sceneName),$("#j-header-scenetitle").html(a.a.editor.dataInSave.sceneName),$("#j-header-scenedesc").html(a.a.editor.dataInSave.sceneDec),"<p><br></p>"==a.a.editor.dataInSave.sceneDec||"<p></p>"==a.a.editor.dataInSave.sceneDec?($("#j-header-arrow").hasClass("down")&&$("#j-header-dropdown").click(),$("#j-header-dropdown .desc #j-header-scenedesc").html(""),$("#j-header-dropdown").addClass("noTouch")):($("#j-header-dropdown .desc #j-header-scenedesc").html(a.a.editor.dataInSave.sceneDec),$("#j-header-dropdown").removeClass("noTouch"));var t=$("#j-header-dropdown i.typeLogo");A.a.SCENETYPE_index.forEach((function(e){t.removeClass(e[1])})),t.addClass(A.a.SCENETYPE_index[a.a.editor.dataInSave.sceneType][1]),I.a.saveCallBack.done(e,i)};var h=a.a.editor.dataInEdit.sceneDec.replace(/<(\/)?div>/g,(function(e){return 0==e.indexOf("</")?"</p>":"<p>"}));I.a.saveAjax(n,{sceneNum:r.a.projectNum,sceneName:a.a.editor.dataInEdit.sceneName,sceneDec:0===a.a.editor.dataInEdit.sceneDec.indexOf("<p>")?h:"<p>"+h+"</p>",sceneType:a.a.editor.dataInEdit.sceneType,sceneKey:a.a.editor.dataInEdit.psd},c)}}else if("hotpoint.step-3"==o);else if("deleteSpot"==o){n=r.a.prefixEditProMobileApi+"/saveHot",c=I.a.getDataDeal(n,e,i,p.a.get("删除"));var f={sceneNum:r.a.projectNum,sid:t.sid,type:-1};a.a.recordGuider.deleteHotInfo(t.sid)&&(a.a.recordGuider._is_modify=!0,f.capData=JSON.stringify(Store.capData),f.frameData=JSON.stringify(Store.frameData),f.playData=JSON.stringify(Store.playData)),I.a.saveAjax(n,f,c)}else if("delete"==o){n="app/deleteForCameraName";var m=p.a.get("删除");(c={url:n,group:{'{"state":-15}':function(){l.a.info("传递的参数为空"),I.a.saveCallBack.fail(e,m)},'{"state":-11}':function(){window.appLoginToken="",a.a.gui.showAskBox("",p.a.get("您没有登录,请于主页登录后再编辑"),{text:p.a.get("确定"),type:"submit",wait:!0,fuc:function(){window.open(isMobile?A.a.Mobile_Login:A.a.MAINURL,"blank")}})},'{"state":-16}':function(){l.a.info("场景为空"),I.a.saveCallBack.fail(e,m)},'{"state":-17}':function(){l.a.info("场景不属于该相机"),I.a.saveCallBack.fail(e,m)},'{"state":-8}':function(){l.a.info("异常错误"),I.a.saveCallBack.fail(e,m)},'{"state":1}':function(){a.a.gui.showInfo(p.a.get("该场景被成功删除!")),setTimeout((function(){window.location.href=window.location.href}),800)}},error:function(){I.a.saveCallBack.fail(e,m)}}).group[0]=function(){a.a.gui.showInfo(p.a.get("该场景被成功删除!")),setTimeout((function(){window.location.href=window.location.href}),200)},I.a.saveAjax(n,{sceneNum:r.a.projectNum,apppassword:"4dkankan@4dage",appuserName:Store.metadata.CAMERA_ID},c)}else if("hotVisible"==o){if(0==t.length)return void I.a.saveCallBack.done(e,i,p.a.get("设置"));n=r.a.prefixEditProMobileApi+"/saveHotVisible";(c=I.a.getDataDeal(n,e,i,p.a.get("设置"))).group[0]=function(){for(var t in g.tagVTemp)g.model.tags[t].visiblePanos=g.tagVTemp[t];a.a.editor.finishSetTagVisible(),I.a.saveCallBack.done(e,i,p.a.get("设置"))},c.group[3017]=function(){l.a.info("hot.json不存在或者为空"),I.a.saveCallBack.fail(e,p.a.get("设置"))},I.a.saveAjax(n,{sceneNum:r.a.projectNum,data:JSON.stringify(t)},c)}else if("panoVisible"==o){if(0==t.length)return void I.a.saveCallBack.done(e,i,p.a.get("设置"));n=r.a.prefixEditProMobileApi+"/saveLinkPano";(c=I.a.getDataDeal(n,e,i,p.a.get("设置"))).group[0]=function(){for(var t in g.panoVTemp){var o=g.model.panos.index[t];o.seeMarkers=g.panoVTemp[t].seeMarkers,o.neighbourUUIDs=g.panoVTemp[t].neighbourUUIDs,o.neighbourPanos=g.panoVTemp[t].neighbourPanos}a.a.editor.finishSetTagVisible(),I.a.saveCallBack.done(e,i,p.a.get("设置"))},I.a.saveAjax(n,{sceneNum:r.a.projectNum,data:JSON.stringify(t)},c)}else if("snapTour.step-2"==o){if(recording.finish(),!Store.playData||0==Store.playData.length)return void I.a.saveCallBack.fail(e,i,p.a.get("录屏"));n=r.a.prefixEditProMobileApi+"/saveScreencapData";(c=I.a.getDataDeal(n,e,i,p.a.get("录屏"))).group[0]=function(){I.a.saveCallBack.done(e,i,p.a.get("录屏")),a.a.recordGuider._capData=null,a.a.recordGuider._frameData=null,a.a.recordGuider._playData=null,a.a.recordGuider._thumbs=null,$("nav ._vr").data("visi")&&$("nav ._vr").removeData("visi").parent().removeClass("hide"),$("nav ._measure").data("visi")&&$("nav ._measure").removeData("visi").parent().removeClass("hide");var t=function(e){Store.playData&&Store.playData.length&&(a.a.editor.tourVisiCon.state||a.a.editor.tourVisiCon.switchState(!0),$('.switch[data-name="tourVisi"]').removeClass("unable"),Store.metadata.screencapVoiceType="soundsync",a.a.playGuider.soundPlayer.remove(),e.msg&&(Store.metadata.screencapVoiceSoundsync=e.msg))},o=function(){a.a.gui.showWaiting(!1,"uploadSound"),a.a.gui.showAskBox(p.a.get("抱歉,录音上传失败"),p.a.get("您可以为此导览手动上传音频,或重新录制"))};recording.recorder?r.a.app?(a.a.gui.showWaiting(!0,"uploadSound"),a.a.gui.showInfo(p.a.get("正在上传录音")),Object(C.a)("RecordUpload"),recording.recorder.then((function(){var e=setInterval((function(){$.get("api/scene/getVoiceSound",{num:r.a.projectNum}).done((function(i){i.msg&&i.msg!=Store.metadata.screencapVoiceSoundsync&&(a.a.gui.showWaiting(!1,"uploadSound"),a.a.gui.showInfo(p.a.get("录音保存成功")),t({msg:i.msg}),clearInterval(e))}))}),1e3)})).fail((function(){return o()}))):a.a.editor.recordSound&&recording.recorder.then((function(){czg_record.wxUploadRecord((function(e){e.state?(l.a.info(e.msg+", 微信上传获取id成功"),l.a.info("serverId:"+e.callback.serverId),$.ajax({type:"POST",url:r.a.prefixEditProMobileApi+"/getRecordAudioFromWeixin",headers:{token:window.appLoginToken},data:{id:e.callback.serverId,sceneNum:r.a.projectNum}}).done((function(e){0==e.code?(a.a.gui.showInfo(p.a.get("录音保存成功")),e.msg=e.msg+"?m="+Date.now(),t(e)):a.a.gui.showInfo(p.a.get("录音保存失败"))})).fail((function(){return o()}))):(l.a.info(e.msg+", 微信上传获取id失败"),o())}))})).fail((function(){return o()})):t({msg:""})},I.a.saveAjax(n,{sceneNum:r.a.projectNum,screencapVoiceType:"sound",recordType:2,capData:JSON.stringify(Store.capData),frameData:JSON.stringify(Store.frameData),playData:JSON.stringify(Store.playData),screencapThumb:JSON.stringify(Store.thumbs)},c)}else"wallDesign"==o&&(a.a.gui.showWaiting(!0,"uploadCADImg"),a.a.editor.mainDesign.CAD.uploadCADImg((function(t,o){if(o){I.a.savingInfo.updateCADimg={done:0};var g=I.a.getDataDeal("","updateCADimg",(function(){a.a.editor.savedCADimg=!0;var o=r.a.prefixEditProMobileApi+"/uploadFloorJsonAndRebuild",g=I.a.getDataDeal(o,e,i,p.a.get("模型保存"));g.group[0]=function(){a.a.editor.reloadModelAfterSaveWall(t,{done:I.a.saveCallBack.done.call(this,e,i,p.a.get("模型保存"))})},I.a.saveAjax(o,{sceneNum:r.a.projectNum,floor:JSON.stringify(a.a.editor.mainDesign.CAD.getStateData())},g)}),p.a.get("CAD图片上传"));I.a.dealAjax({dataDeal:g,data:t.code,msg:t.msg})}else a.a.gui.showInfo(p.a.get("保存失败")),console.error("cad图上传失败");a.a.gui.showWaiting(!1,"uploadCADImg")}),!0))}function D(e){if(e)$(".tmpl-lock .tips").text(p.a.get("您的场景已加密, 点击修改密码。")),a.a.editor.dataInSave.psd=a.a.editor.dataInEdit.psd;else{$(".tmpl-lock .tips").text(p.a.get("请设置您的加密密码")),$("#app .tmpl-lock .psd input")[0].value="";for(var t=$("#app .tmpl-lock .psd li"),i=0;i<4;i++)t[i].innerText="";a.a.editor.dataInSave.psd=a.a.editor.dataInEdit.psd=""}}function M(e,t){this.tempDiv=document.createElement("div"),this.tempDiv.id="TempNodeForTest",this.tempDiv.innerHTML=e,this.charCount=0,this.limit=t}function S(e,t){return new M(e,t).cut()}function R(e){this.$tipElem=e.$tipElem,this.fadeTime=e.fadeTime||500,this.timer=null,this.textGroup=e.textGroup,this.nextShowText=this.nextText,this.$tipElem.text(this.textGroup[0].text),this.$tipElem.css("transition","opacity "+this.fadeTime+"ms"),this.cursor=0}function k(){var e=$("footer .tmpl-hotpoint.step-3 .swiper-wrapper");for(var t in A.a.HotChinese){(g=$('<div class="swiper-slide" data-name="'+t+'"><div><span></span></div></div>')).find("span").css("background-image",'url("'+u.default[t]+'")'),e.append(g)}e.children().first().addClass("active");var i=$("footer .tmpl-information");if(i.find("input.title")[0].value=Store.metadata.sceneName||"",i.find("div.desc")[0].innerHTML=Store.metadata.sceneDec||"",i.find(".limit label").text(Store.metadata.sceneDec?Store.metadata.sceneDec.replace(/<[^>]+>/g,"").length:0),a.a.editor.psdSwitch=new c.a({$elem:$("footer .tmpl-information .lock .switch"),fuc:function(e){var t=$("footer .tmpl-information .lock .word");e?t.css({opacity:"1","pointer-events":"auto"}):(t.css({opacity:"0","pointer-events":"none"}),a.a.editor.dataInEdit.psd="",$(".tmpl-information .lock input").val(""))},state:Store.metadata.sceneKey&&4==Store.metadata.sceneKey.length}),$("footer .tmpl-information .lock .word input").val(Store.metadata.sceneKey),"zhiHouse"!=r.a.applicationName){var o=$("footer .tmpl-information .categorys");for(t=0;t<A.a.SCENETYPE2.length;t++){var g=$("<span>"+A.a.SCENETYPE2[t]+"</span>");o.append(g)}Store.metadata.sceneType?$(o.children()[Store.metadata.sceneType]).addClass("active"):o.children().first().addClass("active")}var n=$("footer .tmpl-music ul.chose");for(t=0;t<A.a.BGM_LIST.length;t++){var C=$("<li>"+A.a.BGM_LIST[t].name+"<label></label></li>");n.append(C),Store.metadata.bgMusic&&p.a.get(Store.metadata.bgMusic)==A.a.BGM_LIST[t].name&&($(".tmpl-music .tips .right").addClass("enable"),C.addClass("active"),a.a.editor.dataInEdit.bgmIndex=t,a.a.editor.dataInSave.bgmName=Store.metadata.bgMusic,$(".btn-right").removeClass("hide"))}null==a.a.editor.dataInEdit.bgmIndex&&(a.a.editor.dataInSave.bgmName="noMusic"),function(){var e=[{id:1,url:A.a.imgRoot+"floorlogo/"+("en"==r.a.lang?"en/":"")+"0.png",name:p.a.get("样式一")},{id:2,url:A.a.imgRoot+"floorlogo/"+("en"==r.a.lang?"en/":"")+"1.png",name:p.a.get("样式二")},{id:3,url:A.a.imgRoot+"floorlogo/"+("en"==r.a.lang?"en/":"")+"2.png",name:p.a.get("样式三")}],t=[];e.forEach((function(e){t.push('<li><span data-src="'+e.url+'" class="icon-sign" style="background-image:url('+e.url+')"><label>'+e.name+"</label></span></li>")})),e.length<4&&(t.push("<li>"),t.push(' <span class="upload icon-sign enable" id="image-picker">'),t.push(' <div class="bg">'),t.push(" <em>"),t.push(" <i></i>"),t.push(" </em>"),t.push(" <label>"+p.a.get("手动上传")+"</label>"),t.push(" </div>"),t.push(" </span>"),t.push(" </li>")),$(".tmpl-sign ul").html(t.join("")),($("#image-picker").length?$("#image-picker"):$(".tmpl-sign .tips span")).fileupload({uploadUrl:r.a.prefixEditProMobileApi+"/uploadPic",uploadFormData:{sceneNum:r.a.projectNum},fileName:"floorLogoImg.png",error:function(){a.a.gui.showInfo({result:!1,title:p.a.get("上传失败")})},uploaded:function(e){var t=d.default.dataURLtoBlob(e),i=window.URL.createObjectURL(t);a.a.editor.flUserImg=new Image,a.a.editor.flUserImg.src=i,$("#image-picker .bg").css("background-image",'url("'+i+'")'),$("#image-picker em").addClass("hasImg"),$("#image-picker").removeClass("enable"),$("footer .tmpl-sign .tips span").addClass("enable"),$("#image-picker").click()}})}();var I=["f0","f1","f2","user"].indexOf(a.a.editor.dataInSave.floorLogo);$("footer .tmpl-sign .chose span.icon-sign").eq(I).addClass("active"),3==I&&($("#image-picker .bg").css("background-image",'url("scene/'+A.a.sceneImgRoot+A.a.FloorLogoUser+"?m="+Store.metadata.version+'")'),a.a.editor.flUserImg="scene/"+A.a.sceneImgRoot+A.a.FloorLogoUser,$("#image-picker em").addClass("hasImg"),$("footer .tmpl-sign .tips span").addClass("enable"),$("#image-picker").removeClass("enable"),$("#image-picker").addClass("active"))}M.prototype.cut=function(){var e=document.createElement("div");return this.searchEnd(this.tempDiv,e),e.innerHTML},M.prototype.searchEnd=function(e,t){for(var i,o,g=0;g<e.childNodes.length;g++)if(3==(i=e.childNodes[g]).nodeType){if(i.nodeValue.length+this.charCount>=this.limit)return(o=i.cloneNode(!0)).nodeValue=i.nodeValue.substr(0,this.limit-this.charCount),t.appendChild(o),!0;o=i.cloneNode(!0),t.appendChild(o),this.charCount+=i.nodeValue.length}else{if(o=i.cloneNode(!0),t.appendChild(o),0===i.childNodes.length)continue;o.innerHTML="";var n=this.searchEnd(i,o);if(n)return n}return!1},function(){function e(e){l.a.info(e.trigger);var t=e.trigger,i=[];i.push('<div class="avatar-cropper">'),i.push(' <div class="avatar-cropper-container">'),i.push(' <div class="avatar-cropper-image-container">'),i.push(' <img alt="" />'),i.push(" </div>"),i.push(' <div class="avatar-cropper-footer">'),i.push(' <button type="button" class="avatar-cropper-btn">取消</button>'),i.push(' <button type="submit" class="avatar-cropper-btn">确定</button>'),i.push(" </div>"),i.push(" </div>"),i.push(' <input ref="input" type="file" class="avatar-cropper-img-input" accept="image/*">'),i.push("</div>");var o,g,n,A=$(i.join("")).appendTo("body"),C=A.find("img")[0],I=A.find("input[type=file]")[0];A.find(".avatar-cropper-container").on("touchmove",(function(e){e.preventDefault()})),A.find("button[type=button]").click((function(){n&&(n.destroy(),A.hide())})),A.find("button[type=submit]").click((function(){!function(t){a.a.gui.showWaiting(!0,"flupload");var i=n.getCroppedCanvas({width:512,height:512}).toDataURL();Object(s.a)(e.uploadUrl,{name:e.fileName||o,needTransfer:!0,file:i},{sceneNum:r.a.projectNum},(function(){e.uploaded&&e.uploaded(i),t(),I.value="",a.a.gui.showWaiting(!1,"flupload"),a.a.gui.showInfo(p.a.get("上传成功"))}),(function(){a.a.gui.showWaiting(!1,"flupload"),a.a.gui.showInfo(p.a.get("上传失败"))}))}((function(){A.find("button[type=button]").click()}))})),I.addEventListener("change",(function(){if(null!=I.files&&null!=I.files[0]){var t=I.files[0].size/1024/1024;if(t>5)return void a.a.gui.showAskBox(p.a.get("文件过大"),p.a.get("图片文件过大")+"( "+parseInt(100*t)/100+p.a.get("兆")+"),"+p.a.get("不能大于")+5+p.a.get("兆"));var i=new FileReader;i.onload=function(t){g=t.target.result,C.src=g,A.show(),C.onload=function(){n=new Cropper(C,e.option)}};i.readAsDataURL(I.files[0]);o=I.files[0].name||"unknown"}else console.log("fileInput.files出了点错")}));for(var c=0;c<t.length;c++)t[c].click((function(){$(this).hasClass("enable")&&I.click()}))}$.fn.fileupload=function(t){return e(t=$.extend({option:{aspectRatio:1,autoCropArea:1,viewMode:1,movable:!1,zoomable:!1},uploadUrl:"",uploadFormData:{},trigger:[$("footer .tmpl-sign .tips span"),this]},t||{})),this}}(),R.prototype.begin=function(){this.timer=setTimeout(function(){this.$tipElem.css("opacity","0"),this.step2()}.bind(this),this.textGroup[this.cursor].time)},R.prototype.step2=function(){this.timer=setTimeout(function(){this.cursor++,this.cursor%=this.textGroup.length,this.$tipElem.text(this.textGroup[this.cursor].text),this.$tipElem.css("opacity","1"),this.begin()}.bind(this),this.fadeTime)},R.prototype.end=function(){this.timer&&(clearTimeout(this.timer),this.timer=null,this.$tipElem.css("opacity","1"),this.$tipElem.text(this.textGroup[0].text))};var O={initApp:function(){a.a.editor.dataInSave={bgmName:null,psd:Store.metadata.sceneKey||"",sceneName:Store.metadata.sceneName||"",sceneDec:Store.metadata.sceneDec||"",sceneType:Store.metadata.sceneType||0,floorLogo:Store.metadata.floorLogo?1==Store.metadata.floorLogo?"user":Store.metadata.floorLogo:"f0",flScale:Store.metadata.floorLogoSize?Store.metadata.floorLogoSize:100},a.a.editor.dataInEdit={bgmIndex:null,psd:Store.metadata.sceneKey||"",sceneName:Store.metadata.sceneName||"",sceneDec:Store.metadata.sceneDec||"",sceneType:Store.metadata.sceneType||0,floorLogo:a.a.editor.dataInSave.floorLogo},k(),v(),a.a.editor.infoEditor=g,a.a.editor.hotsEditor=n},exitEvent:x,hotstep2Tip:new R({$tipElem:$(".tmpl-hotpoint.step-2 .tips"),textGroup:[{text:p.a.get("拖动滑块、根据绿色阴影调整热点位置"),time:7e3},{text:p.a.get("请随处走动来确保热点位置准确"),time:4e3},{text:p.a.get("双指捏合可后退,反之可前进"),time:4e3}]}),onSwichEditor:b,cancelTagEdit:function(){y&&w()},jroll:void 0};a.a.appEditExt=O,t.default=O},function(e,t,i){"use strict";i(105),i(52),i(75),i(38);var o=i(10),g=i(87),n=i(20),a=i(1),A=i(9),r=(i(49),i(29),i(59),i(53),i(60),i(44)),C=i.n(r);function I(e){if(this.set={},this.infContains=function(){return!0},"object"==C()(e))if(e instanceof Array)for(var t=0;t<e.length;t++)this.set[e[t]]=!0;else this.set=e;else if("function"==typeof e)this.infContains=e;else if(void 0!==e)throw new Error("set must be either an array or an object.")}I.prototype.contains=function(e){return!!this.set[e]},I.prototype.has=I.prototype.contains,I.prototype.add=function(e){if(1==arguments.length)this.set[e]=!0;else for(var t=0;t<arguments.length;t++)this.set[arguments[t]]=!0},I.prototype.addAll=function(e){if("object"!=C()(e)&&!(e instanceof Array))throw new Error("arr must be an array.");for(var t=0;t<e.length;t++)this.add(e[t])},I.prototype.remove=function(e){if(1==arguments.length)delete this.set[e];else for(var t=0;t<arguments.length;t++)delete this.set[arguments[t]]},I.prototype.delete=I.prototype.remove,I.prototype.clear=function(){this.set={}},I.prototype.size=function(){return Object.keys(this.set).length},I.prototype.toString=function(){return"{"+Object.keys(this.set).toString()+"}"},I.prototype.toArray=function(){return void 0===this.set?[]:Object.keys(this.set)},I.prototype["*values"]=I.prototype.toArray;var s=I;function l(e){return R+e}function c(e){return e.substring(R.length)}function u(e){if("string"!=typeof e)throw new TypeError("key must be a string.")}var d,h,p,f,m,v,y,b,w,x,E,P,T,D,M,S=Object.prototype.hasOwnProperty,R="~",k=function(e){var t=Object.create(null),i=0,o={};return function(e,t){for(var i in t)Object.defineProperty(e,i,{value:t[i],configurable:!0,writable:!0})}(o,{get:function(e,i){u(e);var o=l(e);return o in t?t[o]:i},set:function(e,o){u(e);var g=l(e);return g in t||++i,t[g]=o},has:function(e){return u(e),l(e)in t},delete:function(e){u(e);var o=l(e);return o in t&&(--i,delete t[o],!0)},clear:function(){t=Object.create(null),i=0},forEach:function(e,i){if("function"!=typeof e)throw new TypeError("`callback` must be a function");for(var g in t)if(S.call(t,g)){var n=c(g),a=t[g];e.call(i,a,n,o)}}}),Object.defineProperty(o,"size",{get:function(){return i},configurable:!0}),"object"==C()(e)&&null!==e&&Object.keys(e).forEach((function(t){o.set(t,e[t])})),o};i(72);p=Math.floor,x=Math.min,h=function(e,t){return e<t?-1:e>t?1:0},w=function(e,t,i,o,g){var n;if(null==i&&(i=0),null==g&&(g=h),i<0)throw new Error("lo must be non-negative");for(null==o&&(o=e.length);i<o;)g(t,e[n=p((i+o)/2)])<0?o=n:i=n+1;return[].splice.apply(e,[i,i-i].concat(t)),t},v=function(e,t,i){return null==i&&(i=h),e.push(t),D(e,0,e.length-1,i)},m=function(e,t){var i,o;return null==t&&(t=h),i=e.pop(),e.length?(o=e[0],e[0]=i,M(e,0,t)):o=i,o},b=function(e,t,i){var o;return null==i&&(i=h),o=e[0],e[0]=t,M(e,0,i),o},y=function(e,t,i){var o;return null==i&&(i=h),e.length&&i(e[0],t)<0&&(t=(o=[e[0],t])[0],e[0]=o[1],M(e,0,i)),t},f=function(e,t){var i,o,g,n,a,A;for(null==t&&(t=h),a=[],o=0,g=(n=function(){A=[];for(var t=0,i=p(e.length/2);0<=i?t<i:t>i;0<=i?t++:t--)A.push(t);return A}.apply(this).reverse()).length;o<g;o++)i=n[o],a.push(M(e,i,t));return a},T=function(e,t,i){var o;if(null==i&&(i=h),-1!==(o=e.indexOf(t)))return D(e,0,o,i),M(e,o,i)},E=function(e,t,i){var o,g,n,a,A;if(null==i&&(i=h),!(g=e.slice(0,t)).length)return g;for(f(g,i),n=0,a=(A=e.slice(t)).length;n<a;n++)o=A[n],y(g,o,i);return g.sort(i).reverse()},P=function(e,t,i){var o,g,n,a,A,r,C,I,s;if(null==i&&(i=h),10*t<=e.length){if(!(n=e.slice(0,t).sort(i)).length)return n;for(g=n[n.length-1],a=0,r=(C=e.slice(t)).length;a<r;a++)i(o=C[a],g)<0&&(w(n,o,0,null,i),n.pop(),g=n[n.length-1]);return n}for(f(e,i),s=[],A=0,I=x(t,e.length);0<=I?A<I:A>I;0<=I?++A:--A)s.push(m(e,i));return s},D=function(e,t,i,o){var g,n,a;for(null==o&&(o=h),g=e[i];i>t&&o(g,n=e[a=i-1>>1])<0;)e[i]=n,i=a;return e[i]=g},M=function(e,t,i){var o,g,n,a,A;for(null==i&&(i=h),g=e.length,A=t,n=e[t],o=2*t+1;o<g;)(a=o+1)<g&&!(i(e[o],e[a])<0)&&(o=a),e[t]=e[o],o=2*(t=o)+1;return e[t]=n,D(e,A,t,i)},(d=function(e){this.cmp=null!=e?e:h,this.nodes=[]}).push=v,d.pop=m,d.replace=b,d.pushpop=y,d.heapify=f,d.updateItem=T,d.nlargest=E,d.nsmallest=P,d.prototype.push=function(e){return v(this.nodes,e,this.cmp)},d.prototype.pop=function(){return m(this.nodes,this.cmp)},d.prototype.peek=function(){return this.nodes[0]},d.prototype.contains=function(e){return-1!==this.nodes.indexOf(e)},d.prototype.replace=function(e){return b(this.nodes,e,this.cmp)},d.prototype.pushpop=function(e){return y(this.nodes,e,this.cmp)},d.prototype.heapify=function(){return f(this.nodes,this.cmp)},d.prototype.updateItem=function(e){return T(this.nodes,e,this.cmp)},d.prototype.clear=function(){return this.nodes=[]},d.prototype.empty=function(){return 0===this.nodes.length},d.prototype.size=function(){return this.nodes.length},d.prototype.clone=function(){var e;return(e=new d).nodes=this.nodes.slice(0),e},d.prototype.toArray=function(){return this.nodes.slice(0)},d.prototype.insert=d.prototype.push,d.prototype.top=d.prototype.peek,d.prototype.front=d.prototype.peek,d.prototype.has=d.prototype.contains,d.prototype.copy=d.prototype.clone;var O=d;function L(e){if(void 0!==e.parent){var t=L(e.parent);return t.push(e.data),t}return[e.data]}function B(e){return e.toString()}function F(e,t){return e.f-t.f}var j=function(e){void 0===e.timeout&&(e.timeout=1/0);var t=e.hash||B,i={data:e.start,g:0,h:e.heuristic(e.start)},o=i;i.f=i.h;var g=new s,n=new O(F),a=k();n.push(i),a.set(t(i.data),i);for(var A=new Date;n.size();){if(new Date-A>e.timeout)return{status:"timeout",cost:o.g,path:L(o)};var r=n.pop();if(a.delete(t(r.data)),e.isEnd(r.data)){var C=L(r);return{status:"success",cost:r.g,path:C}}g.add(t(r.data));for(var I=e.neighbor(r.data),l=0;l<I.length;l++){var c=I[l];if(!g.contains(t(c))){var u=r.g+e.distance(r.data,c),d=a.get(t(c)),h=!1;if(void 0===d)d={data:c},a.set(t(c),d);else{if(d.g<u)continue;h=!0}d.parent=r,d.g=u,d.h=e.heuristic(c),d.f=u+d.h,d.h<o.h&&(o=d),h?n.heapify():n.push(d)}}}return{status:"noPath",cost:o.g,path:L(o)}},N=i(4);function H(){g.a.call(this),this.neighbourMap={},this.map=null}o.default.inherit(H,g.a),H.prototype.getIndex=function(e){return e.id},H.prototype.find=function(e,t){var i=o.default.filterAll(this.list,e);return 0===i.length?null:(t&&t.forEach((function(e){i=o.default.stableSort(i,e)})),i[0])},H.prototype.sortByScore=function(e,t){var i=o.default.filterAll(this.list,e);return 0===i.length?null:i=i.map((function(e){return{pano:e,score:t.reduce((function(t,i){return t+i(e)}),0)}})).sort((function(e,t){return t.score-e.score}))},H.prototype.lowestByScore=function(e,t,i){return this.findRankedByScore(0,e,t,i)},H.prototype.findRankedByScore=function(e,t,i,o){o&&(o.candidates=null,o.pano=null),e||(e=0);var g=this.sortByScore(t,i);return!g||0===g.length||e>=g.length?null:(o&&(o.candidates=g,o.pano=g[e].pano),g[e].pano)},H.prototype.isNeighbour=function(e,t){return this.neighbourMap[e.id][t.id]},H.prototype.getNeighbours=function(e){return this.neighbourMap[e.id]},H.prototype.setNeighbour=function(e,t,i){return this.neighbourMap[e.id]||(this.neighbourMap[e.id]={}),this.neighbourMap[t.id]||(this.neighbourMap[t.id]={}),this.neighbourMap[e.id][e.id]=!0,this.neighbourMap[t.id][t.id]=!0,this.neighbourMap[e.id][t.id]=i,this.neighbourMap[t.id][e.id]=i,this.neighbourMap[e.id]},H.prototype.findClosest=function(e,t){var i=[n.a.filters.isPanoAligned()];return t&&i.push(n.a.filters.inDirection(e,t,.75)),this.find(i,[n.a.sortFunctions.distanceToPoint(e)])},H.prototype.getHasVideos=function(){return this.list.filter(n.a.filters.hasVideo())},H.prototype.findClosestHasVideo=function(e){var t=[n.a.filters.hasVideo()],i=[n.a.sortFunctions.distanceToPoint(e.position)];return this.find(t,i)},H.prototype.populate_path_graph=function(){var e,t,i,o,g,n,a,A,r=Date.now(),C={},I=0,s=new THREE.Vector3(0,0,0);for(e=0;e<this.list.length;e+=1){for(t in a={},A=!1,i=(g=this.list[e]).neighbourPanos||g.findNeighourPanos())if(i[t]){n=this.index[t],s.copy(g.floorPosition),s.sub(n.floorPosition);var l=Math.sqrt(s.x*s.x+s.z*s.z),c=(Math.abs(s.y),Math.max(l,.01),Math.max(0,Math.abs(s.y)-.2));c>0?(1,c=Math.pow(4*c,2),l=Math.pow(l,2),o=Math.sqrt(c*c+l*l)):(1,o=s.length()),a[n.id]=o,A=!0}A?C[g.id]=a:I+=1}this.map=C,N.a.info("graph ready in "+(Date.now()-r)+"ms, "+I+" had no neighbors")},H.prototype.aStarSearch=function(e,t){var i=Date.now(),o=new j({start:e,isEnd:function(e){return e===t},neighbor:function(e){var t=e.neighbourPanos||e.findNeighourPanos(),i=[];for(var o in t)i.push(this.index[o]);return i}.bind(this),distance:function(e,t){return this.map[e.id][t.id]}.bind(this),heuristic:function(e,t){return 1}.bind(this),hash:function(e){return e.id},timeout:5e3});if(N.a.debug("A* search in "+(Date.now()-i)+"ms"),"success"!==o.status)return N.a.debug("Did not find A* path from "+e+" to "+t),null;N.a.debug("Total cost "+o.cost.toPrecision(3)+", "+o.path.length+" steps");var g=[];return o.path.forEach((function(e){g.push(e.id)})),g},H.prototype.includeNodesNearPath=function(){var e=new THREE.Vector3,t=new THREE.Vector3,i=new THREE.Vector3,o=new THREE.Vector3,g=new THREE.Vector3,n=new THREE.Vector3,a=new THREE.Vector3,A=new THREE.Vector3,r=[],C=new THREE.Vector3,I=new THREE.Vector3;return function(s,l){if(s)for(var c=function(e,t,i){return g.copy(t).sub(e),g.dot(i)},u=function(e,t){return c(C,e.position,i)-c(C,t.position,i)},d=0;d<s.length-1;){var h=s[d],p=s[d+1],f=this.index[h],m=this.index[p];C.copy(f.position),I.copy(m.position),r.length=0,e.copy(I).sub(C),i.copy(e).normalize();for(var v=0;v<this.list.length;v++){var y=this.list[v];g.copy(y.position).sub(C);var b=g.dot(i);if(b>0)if(a.copy(i),a.multiplyScalar(b),n.copy(g),n.sub(a),n.length()<l)t.copy(e).negate(),o.copy(t).normalize(),A.copy(y.position).sub(I),A.dot(o)>0&&r.push(y)}if(r.length>0){r.sort(u);for(var w=s.length+r.length-1;w>=d+r.length;w--)s[w]=s[w-r.length];for(var x=0;x<r.length;x++)s[x+d+1]=r[x].id}d+=r.length+1}}}(),H.prototype.fadeMarkerOpacity=function(e,t,i){if(this.list.findIndex((function(e){return e.marker}))<0)N.a.info("marker findIndex<0");else{var o,g=function(e,i){e.member=e.member.filter((function(t){return t.marker.material.opacity!=e.toOp})),A.a.trigger({func:function(t,i){e.member.forEach((function(i){var o=i.marker.oldOpacity,g=o+t*(e.toOp-o);i.marker&&(i.marker.material.opacity=g)}))}.bind(this),duration:null==t?a.a.markerOpacityTransitionTime:t,name:"_fpm_"+i})};this.forEach((function(e){e.marker&&(e.marker.oldOpacity=e.marker.material.opacity)})),o=(e=null==e?a.a.panorama.markerOpacity:e)>0&&i?i:[{member:this.list,toOp:e}];for(var n=0;n<o.length;n++)g(o[n],n)}};t.a=H},function(e,t,i){e.exports=!i(70)&&!i(65)((function(){return 7!=Object.defineProperty(i(153)("div"),"a",{get:function(){return 7}}).a}))},function(e,t,i){var o=i(97),g=i(96);e.exports=function(e){return function(t,i){var n,a,A=String(g(t)),r=o(i),C=A.length;return r<0||r>=C?e?"":void 0:(n=A.charCodeAt(r))<55296||n>56319||r+1===C||(a=A.charCodeAt(r+1))<56320||a>57343?e?A.charAt(r):n:e?A.slice(r,r+2):a-56320+(n-55296<<10)+65536}}},function(e,t,i){for(var o,g=i(55),n=i(81),a=i(111),A=a("typed_array"),r=a("view"),C=!(!g.ArrayBuffer||!g.DataView),I=C,s=0,l="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");s<9;)(o=g[l[s++]])?(n(o.prototype,A,!0),n(o.prototype,r,!0)):I=!1;e.exports={ABV:C,CONSTR:I,TYPED:A,VIEW:r}},function(e,t,i){var o=i(97),g=i(74);e.exports=function(e){if(void 0===e)return 0;var t=o(e),i=g(t);if(t!==i)throw RangeError("Wrong length!");return i}},function(e,t,i){var o=i(93),g=i(117),n=i(160)(!1),a=i(161)("IE_PROTO");e.exports=function(e,t){var i,A=g(e),r=0,C=[];for(i in A)i!=a&&o(A,i)&&C.push(i);for(;t.length>r;)o(A,i=t[r++])&&(~n(C,i)||C.push(i));return C}},function(e,t,i){var o=i(55).document;e.exports=o&&o.documentElement},function(e,t,i){var o=i(93),g=i(85),n=i(161)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=g(e),o(e,n)?e[n]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,i){var o=i(58),g=i(110),n=i(65);e.exports=function(e,t){var i=(g.Object||{})[e]||Object[e],a={};a[e]=t(i),o(o.S+o.F*n((function(){i(1)})),"Object",a)}},function(e,t,i){var o=i(58);o(o.S,"Math",{sign:i(227)})},function(e,t,i){"use strict";var o=i(67),g=i(228),n=i(129);i(131)("search",1,(function(e,t,i,a){return[function(i){var o=e(this),g=null==i?void 0:i[t];return void 0!==g?g.call(i,o):new RegExp(i)[t](String(o))},function(e){var t=a(i,e,this);if(t.done)return t.value;var A=o(e),r=String(this),C=A.lastIndex;g(C,0)||(A.lastIndex=0);var I=n(A,r);return g(A.lastIndex,C)||(A.lastIndex=C),null===I?-1:I.index}]}))},function(e,t,i){"use strict";(function(e){
- /*!
- * The buffer module from node.js, for the browser.
- *
- * @author Feross Aboukhadijeh <http://feross.org>
- * @license MIT
- */
- var o=i(230),g=i(231),n=i(232);function a(){return r.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function A(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return r.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=r.prototype:(null===e&&(e=new r(t)),e.length=t),e}function r(e,t,i){if(!(r.TYPED_ARRAY_SUPPORT||this instanceof r))return new r(e,t,i);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return s(this,e)}return C(this,e,t,i)}function C(e,t,i,o){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,i,o){if(t.byteLength,i<0||t.byteLength<i)throw new RangeError("'offset' is out of bounds");if(t.byteLength<i+(o||0))throw new RangeError("'length' is out of bounds");t=void 0===i&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,i):new Uint8Array(t,i,o);r.TYPED_ARRAY_SUPPORT?(e=t).__proto__=r.prototype:e=l(e,t);return e}(e,t,i,o):"string"==typeof t?function(e,t,i){"string"==typeof i&&""!==i||(i="utf8");if(!r.isEncoding(i))throw new TypeError('"encoding" must be a valid string encoding');var o=0|u(t,i),g=(e=A(e,o)).write(t,i);g!==o&&(e=e.slice(0,g));return e}(e,t,i):function(e,t){if(r.isBuffer(t)){var i=0|c(t.length);return 0===(e=A(e,i)).length||t.copy(e,0,0,i),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(o=t.length)!=o?A(e,0):l(e,t);if("Buffer"===t.type&&n(t.data))return l(e,t.data)}var o;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function I(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function s(e,t){if(I(t),e=A(e,t<0?0:0|c(t)),!r.TYPED_ARRAY_SUPPORT)for(var i=0;i<t;++i)e[i]=0;return e}function l(e,t){var i=t.length<0?0:0|c(t.length);e=A(e,i);for(var o=0;o<i;o+=1)e[o]=255&t[o];return e}function c(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function u(e,t){if(r.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var i=e.length;if(0===i)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return V(e).length;default:if(o)return z(e).length;t=(""+t).toLowerCase(),o=!0}}function d(e,t,i){var o=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return M(this,t,i);case"utf8":case"utf-8":return P(this,t,i);case"ascii":return T(this,t,i);case"latin1":case"binary":return D(this,t,i);case"base64":return E(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,i);default:if(o)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),o=!0}}function h(e,t,i){var o=e[t];e[t]=e[i],e[i]=o}function p(e,t,i,o,g){if(0===e.length)return-1;if("string"==typeof i?(o=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),i=+i,isNaN(i)&&(i=g?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(g)return-1;i=e.length-1}else if(i<0){if(!g)return-1;i=0}if("string"==typeof t&&(t=r.from(t,o)),r.isBuffer(t))return 0===t.length?-1:f(e,t,i,o,g);if("number"==typeof t)return t&=255,r.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?g?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):f(e,[t],i,o,g);throw new TypeError("val must be string, number or Buffer")}function f(e,t,i,o,g){var n,a=1,A=e.length,r=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return-1;a=2,A/=2,r/=2,i/=2}function C(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(g){var I=-1;for(n=i;n<A;n++)if(C(e,n)===C(t,-1===I?0:n-I)){if(-1===I&&(I=n),n-I+1===r)return I*a}else-1!==I&&(n-=n-I),I=-1}else for(i+r>A&&(i=A-r),n=i;n>=0;n--){for(var s=!0,l=0;l<r;l++)if(C(e,n+l)!==C(t,l)){s=!1;break}if(s)return n}return-1}function m(e,t,i,o){i=Number(i)||0;var g=e.length-i;o?(o=Number(o))>g&&(o=g):o=g;var n=t.length;if(n%2!=0)throw new TypeError("Invalid hex string");o>n/2&&(o=n/2);for(var a=0;a<o;++a){var A=parseInt(t.substr(2*a,2),16);if(isNaN(A))return a;e[i+a]=A}return a}function v(e,t,i,o){return G(z(t,e.length-i),e,i,o)}function y(e,t,i,o){return G(function(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,o)}function b(e,t,i,o){return y(e,t,i,o)}function w(e,t,i,o){return G(V(t),e,i,o)}function x(e,t,i,o){return G(function(e,t){for(var i,o,g,n=[],a=0;a<e.length&&!((t-=2)<0);++a)i=e.charCodeAt(a),o=i>>8,g=i%256,n.push(g),n.push(o);return n}(t,e.length-i),e,i,o)}function E(e,t,i){return 0===t&&i===e.length?o.fromByteArray(e):o.fromByteArray(e.slice(t,i))}function P(e,t,i){i=Math.min(e.length,i);for(var o=[],g=t;g<i;){var n,a,A,r,C=e[g],I=null,s=C>239?4:C>223?3:C>191?2:1;if(g+s<=i)switch(s){case 1:C<128&&(I=C);break;case 2:128==(192&(n=e[g+1]))&&(r=(31&C)<<6|63&n)>127&&(I=r);break;case 3:n=e[g+1],a=e[g+2],128==(192&n)&&128==(192&a)&&(r=(15&C)<<12|(63&n)<<6|63&a)>2047&&(r<55296||r>57343)&&(I=r);break;case 4:n=e[g+1],a=e[g+2],A=e[g+3],128==(192&n)&&128==(192&a)&&128==(192&A)&&(r=(15&C)<<18|(63&n)<<12|(63&a)<<6|63&A)>65535&&r<1114112&&(I=r)}null===I?(I=65533,s=1):I>65535&&(I-=65536,o.push(I>>>10&1023|55296),I=56320|1023&I),o.push(I),g+=s}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var i="",o=0;for(;o<t;)i+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return i}(o)}t.Buffer=r,t.SlowBuffer=function(e){+e!=e&&(e=0);return r.alloc(+e)},t.INSPECT_MAX_BYTES=50,r.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),r.poolSize=8192,r._augment=function(e){return e.__proto__=r.prototype,e},r.from=function(e,t,i){return C(null,e,t,i)},r.TYPED_ARRAY_SUPPORT&&(r.prototype.__proto__=Uint8Array.prototype,r.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&r[Symbol.species]===r&&Object.defineProperty(r,Symbol.species,{value:null,configurable:!0})),r.alloc=function(e,t,i){return function(e,t,i,o){return I(t),t<=0?A(e,t):void 0!==i?"string"==typeof o?A(e,t).fill(i,o):A(e,t).fill(i):A(e,t)}(null,e,t,i)},r.allocUnsafe=function(e){return s(null,e)},r.allocUnsafeSlow=function(e){return s(null,e)},r.isBuffer=function(e){return!(null==e||!e._isBuffer)},r.compare=function(e,t){if(!r.isBuffer(e)||!r.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var i=e.length,o=t.length,g=0,n=Math.min(i,o);g<n;++g)if(e[g]!==t[g]){i=e[g],o=t[g];break}return i<o?-1:o<i?1:0},r.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},r.concat=function(e,t){if(!n(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return r.alloc(0);var i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;var o=r.allocUnsafe(t),g=0;for(i=0;i<e.length;++i){var a=e[i];if(!r.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(o,g),g+=a.length}return o},r.byteLength=u,r.prototype._isBuffer=!0,r.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)h(this,t,t+1);return this},r.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)h(this,t,t+3),h(this,t+1,t+2);return this},r.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)h(this,t,t+7),h(this,t+1,t+6),h(this,t+2,t+5),h(this,t+3,t+4);return this},r.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):d.apply(this,arguments)},r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===r.compare(this,e)},r.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,i).match(/.{2}/g).join(" "),this.length>i&&(e+=" ... ")),"<Buffer "+e+">"},r.prototype.compare=function(e,t,i,o,g){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===o&&(o=0),void 0===g&&(g=this.length),t<0||i>e.length||o<0||g>this.length)throw new RangeError("out of range index");if(o>=g&&t>=i)return 0;if(o>=g)return-1;if(t>=i)return 1;if(this===e)return 0;for(var n=(g>>>=0)-(o>>>=0),a=(i>>>=0)-(t>>>=0),A=Math.min(n,a),C=this.slice(o,g),I=e.slice(t,i),s=0;s<A;++s)if(C[s]!==I[s]){n=C[s],a=I[s];break}return n<a?-1:a<n?1:0},r.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},r.prototype.indexOf=function(e,t,i){return p(this,e,t,i,!0)},r.prototype.lastIndexOf=function(e,t,i){return p(this,e,t,i,!1)},r.prototype.write=function(e,t,i,o){if(void 0===t)o="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)o=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(i)?(i|=0,void 0===o&&(o="utf8")):(o=i,i=void 0)}var g=this.length-t;if((void 0===i||i>g)&&(i=g),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var n=!1;;)switch(o){case"hex":return m(this,e,t,i);case"utf8":case"utf-8":return v(this,e,t,i);case"ascii":return y(this,e,t,i);case"latin1":case"binary":return b(this,e,t,i);case"base64":return w(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,i);default:if(n)throw new TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),n=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(e,t,i){var o="";i=Math.min(e.length,i);for(var g=t;g<i;++g)o+=String.fromCharCode(127&e[g]);return o}function D(e,t,i){var o="";i=Math.min(e.length,i);for(var g=t;g<i;++g)o+=String.fromCharCode(e[g]);return o}function M(e,t,i){var o=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>o)&&(i=o);for(var g="",n=t;n<i;++n)g+=H(e[n]);return g}function S(e,t,i){for(var o=e.slice(t,i),g="",n=0;n<o.length;n+=2)g+=String.fromCharCode(o[n]+256*o[n+1]);return g}function R(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function k(e,t,i,o,g,n){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>g||t<n)throw new RangeError('"value" argument is out of bounds');if(i+o>e.length)throw new RangeError("Index out of range")}function O(e,t,i,o){t<0&&(t=65535+t+1);for(var g=0,n=Math.min(e.length-i,2);g<n;++g)e[i+g]=(t&255<<8*(o?g:1-g))>>>8*(o?g:1-g)}function L(e,t,i,o){t<0&&(t=4294967295+t+1);for(var g=0,n=Math.min(e.length-i,4);g<n;++g)e[i+g]=t>>>8*(o?g:3-g)&255}function B(e,t,i,o,g,n){if(i+o>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function F(e,t,i,o,n){return n||B(e,0,i,4),g.write(e,t,i,o,23,4),i+4}function j(e,t,i,o,n){return n||B(e,0,i,8),g.write(e,t,i,o,52,8),i+8}r.prototype.slice=function(e,t){var i,o=this.length;if((e=~~e)<0?(e+=o)<0&&(e=0):e>o&&(e=o),(t=void 0===t?o:~~t)<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),r.TYPED_ARRAY_SUPPORT)(i=this.subarray(e,t)).__proto__=r.prototype;else{var g=t-e;i=new r(g,void 0);for(var n=0;n<g;++n)i[n]=this[n+e]}return i},r.prototype.readUIntLE=function(e,t,i){e|=0,t|=0,i||R(e,t,this.length);for(var o=this[e],g=1,n=0;++n<t&&(g*=256);)o+=this[e+n]*g;return o},r.prototype.readUIntBE=function(e,t,i){e|=0,t|=0,i||R(e,t,this.length);for(var o=this[e+--t],g=1;t>0&&(g*=256);)o+=this[e+--t]*g;return o},r.prototype.readUInt8=function(e,t){return t||R(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,t){return t||R(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,t){return t||R(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,t){return t||R(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,t){return t||R(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,t,i){e|=0,t|=0,i||R(e,t,this.length);for(var o=this[e],g=1,n=0;++n<t&&(g*=256);)o+=this[e+n]*g;return o>=(g*=128)&&(o-=Math.pow(2,8*t)),o},r.prototype.readIntBE=function(e,t,i){e|=0,t|=0,i||R(e,t,this.length);for(var o=t,g=1,n=this[e+--o];o>0&&(g*=256);)n+=this[e+--o]*g;return n>=(g*=128)&&(n-=Math.pow(2,8*t)),n},r.prototype.readInt8=function(e,t){return t||R(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,t){t||R(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt16BE=function(e,t){t||R(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},r.prototype.readInt32LE=function(e,t){return t||R(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,t){return t||R(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,t){return t||R(e,4,this.length),g.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,t){return t||R(e,4,this.length),g.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,t){return t||R(e,8,this.length),g.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,t){return t||R(e,8,this.length),g.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,t,i,o){(e=+e,t|=0,i|=0,o)||k(this,e,t,i,Math.pow(2,8*i)-1,0);var g=1,n=0;for(this[t]=255&e;++n<i&&(g*=256);)this[t+n]=e/g&255;return t+i},r.prototype.writeUIntBE=function(e,t,i,o){(e=+e,t|=0,i|=0,o)||k(this,e,t,i,Math.pow(2,8*i)-1,0);var g=i-1,n=1;for(this[t+g]=255&e;--g>=0&&(n*=256);)this[t+g]=e/n&255;return t+i},r.prototype.writeUInt8=function(e,t,i){return e=+e,t|=0,i||k(this,e,t,1,255,0),r.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},r.prototype.writeUInt16LE=function(e,t,i){return e=+e,t|=0,i||k(this,e,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},r.prototype.writeUInt16BE=function(e,t,i){return e=+e,t|=0,i||k(this,e,t,2,65535,0),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},r.prototype.writeUInt32LE=function(e,t,i){return e=+e,t|=0,i||k(this,e,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},r.prototype.writeUInt32BE=function(e,t,i){return e=+e,t|=0,i||k(this,e,t,4,4294967295,0),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},r.prototype.writeIntLE=function(e,t,i,o){if(e=+e,t|=0,!o){var g=Math.pow(2,8*i-1);k(this,e,t,i,g-1,-g)}var n=0,a=1,A=0;for(this[t]=255&e;++n<i&&(a*=256);)e<0&&0===A&&0!==this[t+n-1]&&(A=1),this[t+n]=(e/a>>0)-A&255;return t+i},r.prototype.writeIntBE=function(e,t,i,o){if(e=+e,t|=0,!o){var g=Math.pow(2,8*i-1);k(this,e,t,i,g-1,-g)}var n=i-1,a=1,A=0;for(this[t+n]=255&e;--n>=0&&(a*=256);)e<0&&0===A&&0!==this[t+n+1]&&(A=1),this[t+n]=(e/a>>0)-A&255;return t+i},r.prototype.writeInt8=function(e,t,i){return e=+e,t|=0,i||k(this,e,t,1,127,-128),r.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},r.prototype.writeInt16LE=function(e,t,i){return e=+e,t|=0,i||k(this,e,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):O(this,e,t,!0),t+2},r.prototype.writeInt16BE=function(e,t,i){return e=+e,t|=0,i||k(this,e,t,2,32767,-32768),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):O(this,e,t,!1),t+2},r.prototype.writeInt32LE=function(e,t,i){return e=+e,t|=0,i||k(this,e,t,4,2147483647,-2147483648),r.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},r.prototype.writeInt32BE=function(e,t,i){return e=+e,t|=0,i||k(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),r.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},r.prototype.writeFloatLE=function(e,t,i){return F(this,e,t,!0,i)},r.prototype.writeFloatBE=function(e,t,i){return F(this,e,t,!1,i)},r.prototype.writeDoubleLE=function(e,t,i){return j(this,e,t,!0,i)},r.prototype.writeDoubleBE=function(e,t,i){return j(this,e,t,!1,i)},r.prototype.copy=function(e,t,i,o){if(i||(i=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<i&&(o=i),o===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("sourceStart out of bounds");if(o<0)throw new RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-i&&(o=e.length-t+i);var g,n=o-i;if(this===e&&i<t&&t<o)for(g=n-1;g>=0;--g)e[g+t]=this[g+i];else if(n<1e3||!r.TYPED_ARRAY_SUPPORT)for(g=0;g<n;++g)e[g+t]=this[g+i];else Uint8Array.prototype.set.call(e,this.subarray(i,i+n),t);return n},r.prototype.fill=function(e,t,i,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,i=this.length):"string"==typeof i&&(o=i,i=this.length),1===e.length){var g=e.charCodeAt(0);g<256&&(e=g)}if(void 0!==o&&"string"!=typeof o)throw new TypeError("encoding must be a string");if("string"==typeof o&&!r.isEncoding(o))throw new TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;var n;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(n=t;n<i;++n)this[n]=e;else{var a=r.isBuffer(e)?e:z(new r(e,o).toString()),A=a.length;for(n=0;n<i-t;++n)this[n+t]=a[n%A]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function H(e){return e<16?"0"+e.toString(16):e.toString(16)}function z(e,t){var i;t=t||1/0;for(var o=e.length,g=null,n=[],a=0;a<o;++a){if((i=e.charCodeAt(a))>55295&&i<57344){if(!g){if(i>56319){(t-=3)>-1&&n.push(239,191,189);continue}if(a+1===o){(t-=3)>-1&&n.push(239,191,189);continue}g=i;continue}if(i<56320){(t-=3)>-1&&n.push(239,191,189),g=i;continue}i=65536+(g-55296<<10|i-56320)}else g&&(t-=3)>-1&&n.push(239,191,189);if(g=null,i<128){if((t-=1)<0)break;n.push(i)}else if(i<2048){if((t-=2)<0)break;n.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;n.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;n.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return n}function V(e){return o.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(N,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function G(e,t,i,o){for(var g=0;g<o&&!(g+i>=t.length||g>=e.length);++g)t[g+i]=e[g];return g}}).call(this,i(180))},function(e,t){e.exports=function(e,t,i){var o=void 0===i;switch(t.length){case 0:return o?e():e.call(i);case 1:return o?e(t[0]):e.call(i,t[0]);case 2:return o?e(t[0],t[1]):e.call(i,t[0],t[1]);case 3:return o?e(t[0],t[1],t[2]):e.call(i,t[0],t[1],t[2]);case 4:return o?e(t[0],t[1],t[2],t[3]):e.call(i,t[0],t[1],t[2],t[3])}return e.apply(i,t)}},function(e,t,i){var o=i(94),g=i(196),n=i(164),a=i(67),A=i(74),r=i(165),C={},I={};(t=e.exports=function(e,t,i,s,l){var c,u,d,h,p=l?function(){return e}:r(e),f=o(i,s,t?2:1),m=0;if("function"!=typeof p)throw TypeError(e+" is not iterable!");if(n(p)){for(c=A(e.length);c>m;m++)if((h=t?f(a(u=e[m])[0],u[1]):f(e[m]))===C||h===I)return h}else for(d=p.call(e);!(u=d.next()).done;)if((h=g(d,f,u.value,t))===C||h===I)return h}).BREAK=C,t.RETURN=I},function(e,t,i){var o=i(67);e.exports=function(e,t,i,g){try{return g?t(o(i)[0],i[1]):t(i)}catch(t){var n=e.return;throw void 0!==n&&o(n.call(e)),t}}},function(e,t,i){var o,g,n,a=i(94),A=i(194),r=i(188),C=i(153),I=i(55),s=I.process,l=I.setImmediate,c=I.clearImmediate,u=I.MessageChannel,d=I.Dispatch,h=0,p={},f=function(){var e=+this;if(p.hasOwnProperty(e)){var t=p[e];delete p[e],t()}},m=function(e){f.call(e.data)};l&&c||(l=function(e){for(var t=[],i=1;arguments.length>i;)t.push(arguments[i++]);return p[++h]=function(){A("function"==typeof e?e:Function(e),t)},o(h),h},c=function(e){delete p[e]},"process"==i(104)(s)?o=function(e){s.nextTick(a(f,e,1))}:d&&d.now?o=function(e){d.now(a(f,e,1))}:u?(n=(g=new u).port2,g.port1.onmessage=m,o=a(n.postMessage,n,1)):I.addEventListener&&"function"==typeof postMessage&&!I.importScripts?(o=function(e){I.postMessage(e+"","*")},I.addEventListener("message",m,!1)):o="onreadystatechange"in C("script")?function(e){r.appendChild(C("script")).onreadystatechange=function(){r.removeChild(this),f.call(e)}}:function(e){setTimeout(a(f,e,1),0)}),e.exports={set:l,clear:c}},function(e,t,i){"use strict";var o=i(103);function g(e){var t,i;this.promise=new e((function(e,o){if(void 0!==t||void 0!==i)throw TypeError("Bad Promise constructor");t=e,i=o})),this.resolve=o(t),this.reject=o(i)}e.exports.f=function(e){return new g(e)}},function(e,t,i){"use strict";i.r(t);var o,g=i(11),n=i.n(g),a=i(10),A=(o={note:"iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4wkRASchLt9ZCwAACLNJREFUeNrdmU9sHGcZxjeK23UriL0IhCscR3BEPiFaEA6uhOCILCol+MAlOfiCiQQXBIoUmxuqw40TlxxBCKk9VBiz20ApVePUJQWVmG0aO2l2Y8e7drK7s7Pz9+V5v3lnPTvetT2zs866n/TTrGe+ed/neebvrlOphAcR7UcaZMAIGAVjwqisy8icjjX6cuwjeBiMg2kwB66BJbAC8mBNyMu6JZkzJ/uMS43+DGMf05NgHuRAEegUfeiyb05qTXYKo1/MnwYzYBGUKflRltoz0uvphNDGOF+7s2AZGNT7YUivWel9dEGEmg2CKTlFj8J4uyByomGw5yGEzJ8BV3t0qse5NK6Kpt6EECh8ApyV5B3qn+GIprOiMbkQAuZPgvNglfp3rIrGk4mEEDA/AC6CAvX/KIjWga5CCB35C2CDjs/YEM3xzoTQNX/umBz5dmfCucj3hNDdfqLPr/nD3BMmI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wMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTI4PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEyODwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+v7MxQAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAU50lEQVR42uydf3BcV3XHP/e+tz+1si3JPyTHjuOY4MROaR1okwxJamrcYWwyk9J4EpowCc10IOU3JXRKYSAFwiR0QhNIAkOBSUMgIY6ng5tMi4ESTJsETFwYbEJ+2bKMbEuWLUva3/vu6R/vrrwrraSVdrWrXe9X80Zavd23753zveeee+655yoRoYVzF7olgnMb7kK5kbOGaE4WSdlDA0qEbpCNwDpgLbAGWA502aMNCE347jRIHBiyxwDQCxwCXgUOiHDcv0Ex9kZl8v1PfobZnptslKWkjCox3tFoZGERYI7WSwMx4DLgauAKYBPQWUCK/EHB71IIAu1Ad4GWZMJxCtgPPAfsBV4AxgBjj4aDWig+QJkWwAUCwIXANuBa4I+B8ORrSdWtT4n3pYBfALtFeBp4DciC5BrFAjQCARyr4POB64EbgQ0zX6smBJh47iDwGMhO4IgliNciwNyUELKmfDPwXuCa2V2rLgQoPP9T4KvAT0Q45fsYLQKUI9wo0APcALwPWDm3a9WdAHn0i/AA8DhwDCTRIkBp4UaA1SC3AB8BIpWRacEQIH8uCXwJ5GGgz75uEcB65heIcBPwcZD26liTBUeA/KtR4B7gUeCwSOGbzz0C9ABbgU+LcGEFcYBGIkD+j9eAO0XY43cN5xYBAsAbgU/YoVylgaBGJED+3G7gLuCXINlaE6AeoeBVwIeBH+WVf47jWiuLD1vZNHUg6HLgU8D2ubbCJrQAha+eAj4rwvPNZgHCwLuAfy+l/BbGsd3K6F1MiG7OF2pBgFW21T+MH2dvYXp0W1l9qhZdwnwTY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oPsQ1uXekLTFbbaW6nPHCwLbDE5GdyKR7AODYBiMgjEwAaaECTk3KnW4bh/fK22UbL8hyxbJwGs02QzaQDvoAF1Ch5zja81btVHt8n+C0p7rpCQODgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0wOS0xN1QwMTozOTozMSswMDowMOCXK/0AAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMDktMTdUMDE6Mzk6MzErMDA6MDCRypNBAAAAAElFTkSuQmCC"),o),r={note:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAACkVBMVEUAAAD////+/v/+/v76+vr5+fr5+fn4+Pn39/j4+Pj39/f29vf19fb19fX09PX////////////////////////////////////////////////////////////////////////////////////////////////9/f7+/v/+/v7+/v7+/v7+/v7+/v7+/v7+/v79/f39/f39/f39/f39/f38/P38/Pz8/Pz8/Pz8/Pz7+/v7+/v7+/v7+/v6+vr5+fr5+fr4+Pr5+fn4+Pn4+Pn4+Pj39/j29vn39/j39/f29vf29vb29vb09PT19fb19fb19fX09PX09PXz8/X09PXz8/Tz8/Tz8/Tz8/Tz8/Tz8/Tz8/Ty8vPy8vPy8vP////+/v/5/v3K+PGu9Oqs9On+/v75/f2D7t4Y4cIQ4MAR4MD//v/K9/BU6dKx9Oq09eut9Oms9OjV+fNw7Nln69do69d37dvi+/f9/f6r8+i09Ou69ewv5Mcn48Un48Ym48U45crP+PL9/f3//f6z9Or//v76/fzp+/jl+vfr+/j7/f3z/PvP9/HJ9+/S+PL3/Pv8/P3//f+y9Ooc4cMV4cEW4cHJ9vD8/Pz//P2q8uez8+r//f3i+faY8eOQ8OGR8OGe8eXr+vir8uf//P77+/v++/zB9OwU4MFm6tbI9u/J9u/b9/P8+/zk+fbK9u/6+vvx+flr6tcQ4L8U4MAs48aq8edj6dUW4MH6+vr7+vvu+fev8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dgByVrDi4vb5/rGMDH24uLA5IxuLl9/fxvoAF/P19ubljW4uHhCQgMuokEggIDgIKIzMnDzRscEhoWHhF561ZkRHhYaEgwLzcPcvbmA4Go6JjYuLjYmOgoMBciAwAYLKL0y8ucOQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0wOS0xN1QwMTo0MTozNyswMDowMLmrS7AAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMDktMTdUMDE6NDE6MzcrMDA6MDDI9vMMAAAAAElFTkSuQmCC",photo:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAC61BMVEUAAAD////+/v76+vr5+fr5+fn4+Pn39/f4+Pj39/j29vf19fb29vb09PX19fX+/v7+/v79/f39/f39/f38/P38/Pz8/Pz7+/v7+/v9/f7+/v7+/v7+/v7+/v79/f39/f38/Pz8/Pz7+/v7+/v6+vr5+fr4+Pr////+/v/+/v75+fr5+fn4+Pn////////////4+Pn4+Pj29vn////////////39/j39/j29vf////////39/f29vf09PT////////29vb19fb19fb19fX////09PXz8/X////////09PX09PX////z8/T////////z8/Tz8/T////////z8/Tz8/T////////z8/Ty8vP////////z8/Ty8vP////y8vP9/f38/P3+/v79/f78/Pz7+/v6+vv6+vr+/v/5+fr5+fn////4+Pn39/j39/f7+vv29vb//v///v7//f7//P39+/z19fbT+fOH799+7tx/7tx+7dyG7t7R9vH7+vr2/fzg+vZG584M378b4cNF5s3d9/Tz+fn09PWz9etM588u48cM377W+fPT+PLV+POF7t4L374t48dL5s6x8ejW+fQm48Yn48ZV6NJt69jn+/j//f3m+fZs6tdU59En4sUm4sXS9e/6+Pmt9OkP4MCn8+f9/v77/v3o+/i79ey69ezn+vf+/P35+/v6+/ul8eWp8OX8+fqp9OgS4MC59ezL9/FA5swQ4MDK9u//+/y38+oR4MCl8OS49ezx/ftM6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mBkVX369PnLV0RkQaM7vQAIINH97dv3H0jRjZxgUFMUNMEQSnIEEy3hZE844xDOeoQzL77sDwC5A3e8qTx8kgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAxOS0wOS0xN1QwMTo0MTozNyswMDowMLmrS7AAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMTktMDktMTdUMDE6NDE6MzcrMDA6MDDI9vMMAAAAAElFTkSuQmCC",video:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAACtVBMVEUAAAD////+/v/+/v76+vr5+fr5+fn4+Pn39/j4+Pj39/f29vf19fb19fX09PX////////////////////////////////////////////////////////////////////////////////////////////////9/f7+/v/+/v7+/v7+/v7+/v7+/v7+/v7+/v79/f39/f39/f39/f39/f38/P38/Pz8/Pz8/Pz8/Pz7+/v7+/v7+/v7+/v6+vr5+fr5+fr4+Pr5+fn4+Pn4+Pn4+Pj39/j29vn39/j39/f29vf29vb29vb09PT19fb19fb19fX09PX09PXz8/X09PXz8/Tz8/Tz8/Tz8/Tz8/Tz8/Tz8/Ty8vPy8vPy8vP////+/v/r/Pru/Pr+/v7//v71/fxe6dRB5s2t9On//v/w/Po75coF370R4MBa6dPH9/D9/v465cpC5s147dsc4cMb4cN57dve+vY55cpX6dL4/v3J9/Bb6dQu5MiY8eT9/f7+/f7v/PpW6NL5/f31/Put8+k/5swN379G58619ev4/fz9/f3+/f3v+/k55Mr5/fz//f7p+/iP8OEo48YT4MFk6tbO9/H8/f3b+fRq69cL378i4sS19Or8/P39/P1W6NH4/PzK9vBZ6dMw5Mi+9e3//f38/Pz9/Pzu+vk55Mn4/Pv+/P3c+PR57NpV6NH4+/v//P3s+viY8OIu48cQ4MDG9e/7/Pz7+/v8+/zu+fhX6NHy+vm28+pH5s4O378/5cus8ujz+vr++/z6+vvt+fg65Mpi6dU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KzAwOjAwfOp45AAAAABJRU5ErkJggg==",link:"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAC6FBMVEUAAAD////+/v/+/v76+vr5+fr5+fn4+Pn39/j4+Pj39/f29vf19fb19fX09PX////////////////////////////////////////////////////////////////////////////////////////////////9/f7+/v/+/v7+/v7+/v7+/v7+/v7+/v7+/v79/f39/f39/f39/f39/f38/P38/Pz8/Pz8/Pz8/Pz7+/v7+/v7+/v7+/v6+vr5+fr5+fr4+Pr5+fn5+fn4+Pn4+Pn4+Pj39/j29vn39/j39/f29vf29vb29vb09PT19fb19fb19fX09PX09PX09PXz8/X09PXz8/Tz8/Tz8/Tz8/Tz8/Tz8/Tz8/Ty8vPy8vPy8vP////+/v/3/f259uyF79+O8OHO+PL+/v7//v/w/Pty7NkS4MAY4cIT4MEg4sSl8+f//v5s7NgN379p69e99u075csp48bc+vVt7NgN4L9x7Nny/fun8+cP4MCv9On1/fzz/fuh8uay9Or9/f79/f3+/f6r8+gQ4MBr69ji+vfs+/nQ+PIz5Mkv5Mjg+vb+/f35/fz1/Ptq69fZ+fR+7txJ58/i+vbR+PI45cob4cOv8+n//f3v+/p17Npv7Nhk69bZ+PSk8uaG799U6NEa4cKq8+j8/P3+/P3v+/ls69gM37967dt/7dzk+fYn48Zf6tSq8ui59Ov9/P38/Pz3+/t37Nrw+/n1+/qN7+Cq8ue99OwV4MF87dz//P3L9u8Z4cJg6dT9/PzQ9/E25Mkk4sXM9vD7+/v/+/yp8uax8+n++/zP9vA45Moc4cOt8uj8+/z6+vu68+sR4MCF7d7O9vCr8ef8+/v6+vr7+vvr+PZM5s8W4MFv69iB7d0t48ep8eb5+fr7+frT9fBX59Eb4cIX4cE95cux8ej6+fr5+fnx+PfR9e/L9O7o9/X4+Pn5+Pn7+Pn39/j39/f29vb19fb09PXz8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F0ZTptb2RpZnkAMjAxOS0wOS0xN1QwMjo0MjozOSswMDowMM40X5wAAAAASUVORK5CYII=",r.linkYellow="iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAACzVBMVEUAAAD+/AH+/AD//QD+/AD+/AD+/AD+/AD+/AD+/AD+/AD+/AD+/Ar+/B7+/DL+/AD+/AD+/AT+/S/+/AD+/AD+/BD+/AD+/Af+/A/+/AD+/Av+/AD+/Af+/Aj+/AD+/AD+/AT+/AD+/C/+/AD+/AD+/AD+/Ar+/DH9/C7+/A78+i79+x38+jD+/Tr+/XT//rP//tn//+z///H+/Sz//pP//+X////+/WL//9z//oP///b///v//tz+//r+/u/+//n+/ZP+/v/+/v77/Mb4+GP490H4+F77/ML+/uT8+7f39jD39j/4+Xb490P39jH7/Mn8+7j39i7491T9/d/8/d339jj+/bL7+7n491X9/eL9/vn391H3+GP9/vz+/dj9/v/+/f79/f78/N739jn491H8/Nv9/fz5+7X39ib5+ZL9/er9/f36+qX39if7+8b5+Y74+Hz8/fX5+7n29i7391j8/Oj+/Dn9/fD9/f/7+rj4+Gv5+YX39ir7+9D5+pr39SX5+qH29jr291T7/OH8/O/8/P38/P76+rj39i35+sL4+H37+9n5+Yv5+qv6++H8/P/8/Pz8/Or6+s339jL491P7++D5+rb5+rn4+af39SP6+rb8/Nf7/P77+/34+Hn39jX6+tn4+rr29i339137++/8+7H7+//7+/v6+/r292L291L6+/j7+/74+bf29lT5+uD8+3P6+vz6+vv6+v33+I339Sj4+bH5+ur3+a74+uD6+uL6+vr5+eL39lj29SX39jf29SP29lv4+d/7+pL5+f35+fr5+fn5+fv4+eb3+KP294T3+Kb4+en5+fz9+yz5+dj4+Pv4+fz8+mH4+PD39/n4+Pj3+Pj6+YH39/T39/f6+YD29u/29vn29vb7+WD29tf19fn19fj19fb8+yv495D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ed7e+y1EsODvZWzgCD3cwMYnt81TjzcblHiYmOWJlmCggwk+ALxhhmfuGU/gzYQSg4g4FR69hDamBFu4QgsN6Fjj1nlq8caiZEpESVHh0XcxIMRGFxUUICK7wNsupSBqd06FB6jinsJr1FVLQ96pEwEiqwEi+PodBRfQktwUKNGIAtH+KzzbBw59JdHHYSUrjoqB6wvX823n8eV0ekhF2TGkLSMi/xr0rYXaz/SQihoZUzKFdEyH2rqu67Isz51dsjpYFtjEI7VVovRoGBVZhawnbAo0mWNXbtwVeg5F7lxUhZcXfTKbglkOnMbSDZxhjAf+7sWqOJWRExgy0xsxYgMj+Gsk3aUgGmQOBV5ZLLpiY47fDa8zaUgEo5NpC5brMwsmKizy8eE15k0Us4YXvGdVMIpRsO4qiDchr5iQVzA7rgnSiYeLOPEiJYznThjPE8J44oZRJlI/IZHyTiLlUxLpWGCLCfn3VN76h2Jyy9mG+atyNr/L+buhaJkbijbfUPyWdimTJUNLKxI519IWa6pKWzdT27qptPVfDJb9hMGSONoOsI1VlozOU/poSx2uL5mGqzLem2x1t6zUTxItnnq8iR3vX0BZnSCgjl61AAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE5LTA5LTE3VDAyOjQ3OjU1KzAwOjAwWI9PlwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxOS0wOS0xN1QwMjo0Nzo1NSswMDowMCnS9ysAAAAASUVORK5CYII=";var C={64:{},32:{}};for(var I in A)C[64][I]=a.default.getBlobSrc(A[I],!0);for(var I in r)C[32][I]=a.default.getBlobSrc(r[I],!0);t.default=C},function(e,t,i){"use strict";var o=i(295),g=i(271);e.exports=i(296)("Set",(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return o.def(g(this,"Set"),e=0===e?0:e,e)}},o)},function(module,exports,__webpack_require__){
- /*!
- * vConsole v3.3.4 (https://github.com/Tencent/vConsole)
- *
- * Tencent is pleased to support the open source community by making vConsole available.
- * Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
- * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
- * http://opensource.org/licenses/MIT
- * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
- */
- !function(e,t){module.exports=t()}(window,(function(){return function(e){var t={};function i(o){if(t[o])return t[o].exports;var g=t[o]={i:o,l:!1,exports:{}};return e[o].call(g.exports,g,g.exports,i),g.l=!0,g.exports}return i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var g in e)i.d(o,g,function(t){return e[t]}.bind(null,g));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=6)}([function(e,t,i){var o,g;void 0===(g="function"==typeof(o=function(e){"use strict";function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e){return"[object Number]"==Object.prototype.toString.call(e)}function o(e){return"[object String]"==Object.prototype.toString.call(e)}function g(e){return"[object Array]"==Object.prototype.toString.call(e)}function n(e){return"[object Boolean]"==Object.prototype.toString.call(e)}function a(e){return void 0===e}function A(e){return null===e}function r(e){return"[object Symbol]"==Object.prototype.toString.call(e)}function C(e){return!("[object Object]"!=Object.prototype.toString.call(e)&&(i(e)||o(e)||n(e)||g(e)||A(e)||I(e)||a(e)||r(e)))}function I(e){return"[object Function]"==Object.prototype.toString.call(e)}function s(e){var t=Object.prototype.toString.call(e);return"[object global]"==t||"[object Window]"==t||"[object DOMWindow]"==t}function l(e){if(!C(e)&&!g(e))return[];if(g(e)){var t=[];return e.forEach((function(e,i){t.push(i)})),t}return Object.getOwnPropertyNames(e).sort()}Object.defineProperty(e,"__esModule",{value:!0}),e.getDate=function(e){var t=e>0?new Date(e):new Date,i=t.getDate()<10?"0"+t.getDate():t.getDate(),o=t.getMonth()<9?"0"+(t.getMonth()+1):t.getMonth()+1,g=t.getFullYear(),n=t.getHours()<10?"0"+t.getHours():t.getHours(),a=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes(),A=t.getSeconds()<10?"0"+t.getSeconds():t.getSeconds(),r=t.getMilliseconds()<10?"0"+t.getMilliseconds():t.getMilliseconds();return r<100&&(r="0"+r),{time:+t,year:g,month:o,day:i,hour:n,minute:a,second:A,millisecond:r}},e.isNumber=i,e.isString=o,e.isArray=g,e.isBoolean=n,e.isUndefined=a,e.isNull=A,e.isSymbol=r,e.isObject=C,e.isFunction=I,e.isElement=function(e){return"object"===("undefined"==typeof HTMLElement?"undefined":t(HTMLElement))?e instanceof HTMLElement:e&&"object"===t(e)&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},e.isWindow=s,e.isPlainObject=function(e){var i,o=Object.prototype.hasOwnProperty;if(!e||"object"!==t(e)||e.nodeType||s(e))return!1;try{if(e.constructor&&!o.call(e,"constructor")&&!o.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}for(i in e);return void 0===i||o.call(e,i)},e.htmlEncode=function(e){return document.createElement("a").appendChild(document.createTextNode(e)).parentNode.innerHTML},e.JSONStringify=function(e){if(!C(e)&&!g(e))return JSON.stringify(e);var t="{",i="}";g(e)&&(t="[",i="]");for(var o=t,n=l(e),a=0;a<n.length;a++){var A=n[a],s=e[A];try{g(e)||(C(A)||g(A)||r(A)?o+=Object.prototype.toString.call(A):o+=A,o+=": "),g(s)?o+="Array["+s.length+"]":C(s)||r(s)||I(s)?o+=Object.prototype.toString.call(s):o+=JSON.stringify(s),a<n.length-1&&(o+=", ")}catch(e){continue}}return o+i},e.getObjAllKeys=l,e.getObjName=function(e){return Object.prototype.toString.call(e).replace("[object ","").replace("]","")},e.setStorage=function(e,t){window.localStorage&&(e="vConsole_"+e,localStorage.setItem(e,t))},e.getStorage=function(e){if(window.localStorage)return e="vConsole_"+e,localStorage.getItem(e)}})?o.apply(t,[t]):o)||(e.exports=g)},function(e,t,i){var o,g,n;g=[t,i(0),i(10)],void 0===(n="function"==typeof(o=function(i,o,g){"use strict";var n;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,g=(n=g)&&n.__esModule?n:{default:n};var a={one:function(e,t){try{return(t||document).querySelector(e)||void 0}catch(e){return}},all:function(e,t){try{var i=(t||document).querySelectorAll(e);return Array.from(i)}catch(e){return[]}},addClass:function(e,t){if(e){(0,o.isArray)(e)||(e=[e]);for(var i=0;i<e.length;i++){var g=(e[i].className||"").split(" ");g.indexOf(t)>-1||(g.push(t),e[i].className=g.join(" "))}}},removeClass:function(e,t){if(e){(0,o.isArray)(e)||(e=[e]);for(var i=0;i<e.length;i++){for(var g=e[i].className.split(" "),n=0;n<g.length;n++)g[n]==t&&(g[n]="");e[i].className=g.join(" ").trim()}}},hasClass:function(e,t){return!(!e||!e.classList)&&e.classList.contains(t)},bind:function(e,t,i,g){e&&((0,o.isArray)(e)||(e=[e]),e.forEach((function(e){e.addEventListener(t,i,!!g)})))},delegate:function(e,t,i,o){e&&e.addEventListener(t,(function(t){var g=a.all(i,e);if(g)e:for(var n=0;n<g.length;n++)for(var A=t.target;A;){if(A==g[n]){o.call(A,t);break e}if((A=A.parentNode)==e)break}}),!1)}};a.render=g.default;var A=a;i.default=A,e.exports=t.default})?o.apply(t,g):o)||(e.exports=n)},function(e,t,i){var o,g;void 0===(g="function"==typeof(o=function(i){"use strict";function o(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var g=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"newPlugin";!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=t,this.name=i,this.isReady=!1,this.eventList={}}var t,i;return t=e,(i=[{key:"on",value:function(e,t){return this.eventList[e]=t,this}},{key:"trigger",value:function(e,t){if("function"==typeof this.eventList[e])this.eventList[e].call(this,t);else{var i="on"+e.charAt(0).toUpperCase()+e.slice(1);"function"==typeof this[i]&&this[i].call(this,t)}return this}},{key:"id",get:function(){return this._id},set:function(e){if(!e)throw"Plugin ID cannot be empty";this._id=e.toLowerCase()}},{key:"name",get:function(){return this._name},set:function(e){if(!e)throw"Plugin name cannot be empty";this._name=e}},{key:"vConsole",get:function(){return this._vConsole||void 0},set:function(e){if(!e)throw"vConsole cannot be empty";this._vConsole=e}}])&&o(t.prototype,i),e}();i.default=g,e.exports=t.default})?o.apply(t,[t]):o)||(e.exports=g)},function(e,t,i){var o,g,n;g=[t,i(0),i(1),i(2),i(18),i(19),i(20)],void 0===(n="function"==typeof(o=function(i,o,g,n,a,A,r){"use strict";function C(e){return e&&e.__esModule?e:{default:e}}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,i):{};o.get||o.set?Object.defineProperty(t,i,o):t[i]=e[i]}return t.default=e,t}(o),g=C(g),n=C(n),a=C(a),A=C(A),r=C(r);var d=1e3,h=[],p={},f=function(e){function t(){var e,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,g=new Array(o),n=0;n<o;n++)g[n]=arguments[n];return i=l(this,(e=c(t)).call.apply(e,[this].concat(g))),h.push(i.id),i.tplTabbox="",i.allowUnformattedLog=!0,i.isReady=!1,i.isShow=!1,i.$tabbox=null,i.console={},i.logList=[],i.isInBottom=!0,i.maxLogNumber=d,i.logNumber=0,i.mockConsole(),i}var i,C;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,n.default),i=t,(C=[{key:"onInit",value:function(){this.$tabbox=g.default.render(this.tplTabbox,{}),this.updateMaxLogNumber()}},{key:"onRenderTab",value:function(e){e(this.$tabbox)}},{key:"onAddTopBar",value:function(e){for(var t=this,i=["All","Log","Info","Warn","Error"],o=[],n=0;n<i.length;n++)o.push({name:i[n],data:{type:i[n].toLowerCase()},className:"",onClick:function(){if(g.default.hasClass(this,"vc-actived"))return!1;t.showLogType(this.dataset.type||"all")}});o[0].className="vc-actived",e(o)}},{key:"onAddTool",value:function(e){var t=this;e([{name:"Clear",global:!1,onClick:function(){t.clearLog(),t.vConsole.triggerEvent("clearLog")}}])}},{key:"onReady",value:function(){var e=this;e.isReady=!0;var t=g.default.all(".vc-subtab",e.$tabbox);g.default.bind(t,"click",(function(i){if(i.preventDefault(),g.default.hasClass(this,"vc-actived"))return!1;g.default.removeClass(t,"vc-actived"),g.default.addClass(this,"vc-actived");var o=this.dataset.type,n=g.default.one(".vc-log",e.$tabbox);g.default.removeClass(n,"vc-log-partly-log"),g.default.removeClass(n,"vc-log-partly-info"),g.default.removeClass(n,"vc-log-partly-warn"),g.default.removeClass(n,"vc-log-partly-error"),"all"==o?g.default.removeClass(n,"vc-log-partly"):(g.default.addClass(n,"vc-log-partly"),g.default.addClass(n,"vc-log-partly-"+o))}));var i=g.default.one(".vc-content");g.default.bind(i,"scroll",(function(t){e.isShow&&(i.scrollTop+i.offsetHeight>=i.scrollHeight?e.isInBottom=!0:e.isInBottom=!1)}));for(var o=0;o<e.logList.length;o++)e.printLog(e.logList[o]);e.logList=[]}},{key:"onRemove",value:function(){window.console.log=this.console.log,window.console.info=this.console.info,window.console.warn=this.console.warn,window.console.debug=this.console.debug,window.console.error=this.console.error,window.console.time=this.console.time,window.console.timeEnd=this.console.timeEnd,window.console.clear=this.console.clear,this.console={};var e=h.indexOf(this.id);e>-1&&h.splice(e,1)}},{key:"onShow",value:function(){this.isShow=!0,1==this.isInBottom&&this.autoScrollToBottom()}},{key:"onHide",value:function(){this.isShow=!1}},{key:"onShowConsole",value:function(){1==this.isInBottom&&this.autoScrollToBottom()}},{key:"onUpdateOption",value:function(){this.vConsole.option.maxLogNumber!=this.maxLogNumber&&(this.updateMaxLogNumber(),this.limitMaxLogs())}},{key:"updateMaxLogNumber",value:function(){this.maxLogNumber=this.vConsole.option.maxLogNumber||d,this.maxLogNumber=Math.max(1,this.maxLogNumber)}},{key:"limitMaxLogs",value:function(){if(this.isReady)for(;this.logNumber>this.maxLogNumber;){var e=g.default.one(".vc-item",this.$tabbox);if(!e)break;e.parentNode.removeChild(e),this.logNumber--}}},{key:"showLogType",value:function(e){var t=g.default.one(".vc-log",this.$tabbox);g.default.removeClass(t,"vc-log-partly-log"),g.default.removeClass(t,"vc-log-partly-info"),g.default.removeClass(t,"vc-log-partly-warn"),g.default.removeClass(t,"vc-log-partly-error"),"all"==e?g.default.removeClass(t,"vc-log-partly"):(g.default.addClass(t,"vc-log-partly"),g.default.addClass(t,"vc-log-partly-"+e))}},{key:"autoScrollToBottom",value:function(){this.vConsole.option.disableLogScrolling||this.scrollToBottom()}},{key:"scrollToBottom",value:function(){var e=g.default.one(".vc-content");e&&(e.scrollTop=e.scrollHeight-e.offsetHeight)}},{key:"mockConsole",value:function(){var e=this,t=this,i=["log","info","warn","debug","error"];window.console?(i.map((function(e){t.console[e]=window.console[e]})),t.console.time=window.console.time,t.console.timeEnd=window.console.timeEnd,t.console.clear=window.console.clear):window.console={},i.map((function(t){window.console[t]=function(){for(var i=arguments.length,o=new Array(i),g=0;g<i;g++)o[g]=arguments[g];e.printLog({logType:t,logs:o})}}));var o={};window.console.time=function(e){o[e]=Date.now()},window.console.timeEnd=function(e){var t=o[e];t?(console.log(e+":",Date.now()-t+"ms"),delete o[e]):console.log(e+": 0ms")},window.console.clear=function(){t.clearLog();for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];t.console.clear.apply(window.console,i)}}},{key:"clearLog",value:function(){g.default.one(".vc-log",this.$tabbox).innerHTML="",this.logNumber=0,p={}}},{key:"printOriginLog",value:function(e){"function"==typeof this.console[e.logType]&&this.console[e.logType].apply(window.console,e.logs)}},{key:"printLog",value:function(e){var t=e.logs||[];if(t.length||e.content){t=[].slice.call(t||[]);var i=/^\[(\w+)\]$/i,g="",n=!1;if(o.isString(t[0])){var a=t[0].match(i);null!==a&&a.length>0&&(g=a[1].toLowerCase(),n=h.indexOf(g)>-1)}if(g===this.id||!0!==n&&"default"===this.id)if(e._id||(e._id="__vc_"+Math.random().toString(36).substring(2,8)),e.date||(e.date=+new Date),this.isReady){o.isString(t[0])&&n&&(t[0]=t[0].replace(i,""),""===t[0]&&t.shift());for(var A={_id:e._id,logType:e.logType,logText:[],hasContent:!!e.content,count:1},r=0;r<t.length;r++)o.isFunction(t[r])?A.logText.push(t[r].toString()):o.isObject(t[r])||o.isArray(t[r])?A.logText.push(o.JSONStringify(t[r])):A.logText.push(t[r]);A.logText=A.logText.join(" "),A.hasContent||p.logType!==A.logType||p.logText!==A.logText?(this.printNewLog(e,t),p=A):this.printRepeatLog(),this.isInBottom&&this.isShow&&this.autoScrollToBottom(),e.noOrigin||this.printOriginLog(e)}else this.logList.push(e);else e.noOrigin||this.printOriginLog(e)}}},{key:"printRepeatLog",value:function(){var e=g.default.one("#"+p._id),t=g.default.one(".vc-item-repeat",e);t||((t=document.createElement("i")).className="vc-item-repeat",e.insertBefore(t,e.lastChild)),p.count,p.count++,t.innerHTML=p.count}},{key:"printNewLog",value:function(e,t){var i=g.default.render(a.default,{_id:e._id,logType:e.logType,style:e.style||""}),n=/(\%c )|( \%c)/g,A=[];if(o.isString(t[0])&&n.test(t[0])){for(var r=t[0].split(n).filter((function(e){return void 0!==e&&""!==e&&!/ ?\%c ?/.test(e)})),C=t[0].match(n),s=0;s<C.length;s++)o.isString(t[s+1])&&A.push(t[s+1]);for(var l=C.length+1;l<t.length;l++)r.push(t[l]);t=r}for(var c=g.default.one(".vc-item-content",i),u=0;u<t.length;u++){var d=void 0;try{if(""===t[u])continue;d=o.isFunction(t[u])?"<span> "+t[u].toString()+"</span>":o.isObject(t[u])||o.isArray(t[u])?this.getFoldedLine(t[u]):(A[u]?'<span style="'.concat(A[u],'"> '):"<span> ")+o.htmlEncode(t[u]).replace(/\n/g,"<br/>")+"</span>"}catch(e){d="<span> ["+I(t[u])+"]</span>"}d&&("string"==typeof d?c.insertAdjacentHTML("beforeend",d):c.insertAdjacentElement("beforeend",d))}o.isObject(e.content)&&c.insertAdjacentElement("beforeend",e.content),g.default.one(".vc-log",this.$tabbox).insertAdjacentElement("beforeend",i),this.logNumber++,this.limitMaxLogs()}},{key:"getFoldedLine",value:function(e,t){var i=this;if(!t){var n=o.JSONStringify(e),a=n.substr(0,36);t=o.getObjName(e),n.length>36&&(a+="..."),t+=" "+a}var C=g.default.render(A.default,{outer:t,lineType:"obj"});return g.default.bind(g.default.one(".vc-fold-outer",C),"click",(function(t){t.preventDefault(),t.stopPropagation(),g.default.hasClass(C,"vc-toggle")?(g.default.removeClass(C,"vc-toggle"),g.default.removeClass(g.default.one(".vc-fold-inner",C),"vc-toggle"),g.default.removeClass(g.default.one(".vc-fold-outer",C),"vc-toggle")):(g.default.addClass(C,"vc-toggle"),g.default.addClass(g.default.one(".vc-fold-inner",C),"vc-toggle"),g.default.addClass(g.default.one(".vc-fold-outer",C),"vc-toggle"));var n=g.default.one(".vc-fold-inner",C);return setTimeout((function(){if(0==n.children.length&&e){for(var t=o.getObjAllKeys(e),a=0;a<t.length;a++){var C=void 0,I="undefined",s="";try{C=e[t[a]]}catch(e){continue}o.isString(C)?(I="string",C='"'+C+'"'):o.isNumber(C)?I="number":o.isBoolean(C)?I="boolean":o.isNull(C)?(I="null",C="null"):o.isUndefined(C)?(I="undefined",C="undefined"):o.isFunction(C)?(I="function",C="function()"):o.isSymbol(C)&&(I="symbol");var l=void 0;if(o.isArray(C)){var c=o.getObjName(C)+"["+C.length+"]";l=i.getFoldedLine(C,g.default.render(r.default,{key:t[a],keyType:s,value:c,valueType:"array"},!0))}else if(o.isObject(C)){var u=o.getObjName(C);l=i.getFoldedLine(C,g.default.render(r.default,{key:o.htmlEncode(t[a]),keyType:s,value:u,valueType:"object"},!0))}else{e.hasOwnProperty&&!e.hasOwnProperty(t[a])&&(s="private");var d={lineType:"kv",key:o.htmlEncode(t[a]),keyType:s,value:o.htmlEncode(C),valueType:I};l=g.default.render(A.default,d)}n.insertAdjacentElement("beforeend",l)}if(o.isObject(e)){var h,p=e.__proto__;h=o.isObject(p)?i.getFoldedLine(p,g.default.render(r.default,{key:"__proto__",keyType:"private",value:o.getObjName(p),valueType:"object"},!0)):g.default.render(r.default,{key:"__proto__",keyType:"private",value:"null",valueType:"null"}),n.insertAdjacentElement("beforeend",h)}}})),!1})),C}}])&&s(i.prototype,C),t}();f.AddedLogID=[];var m=f;i.default=m,e.exports=t.default})?o.apply(t,g):o)||(e.exports=n)},function(e,t,i){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var i=function(e,t){var i,o,g,n=e[1]||"",a=e[3];if(!a)return n;if(t&&"function"==typeof btoa){var A=(i=a,o=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),g="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(o),"/*# ".concat(g," */")),r=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot).concat(e," */")}));return[n].concat(r).concat([A]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2],"{").concat(i,"}"):i})).join("")},t.i=function(e,i){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},g=0;g<this.length;g++){var n=this[g][0];null!=n&&(o[n]=!0)}for(var a=0;a<e.length;a++){var A=e[a];null!=A[0]&&o[A[0]]||(i&&!A[2]?A[2]=i:i&&(A[2]="(".concat(A[2],") and (").concat(i,")")),t.push(A))}},t}},function(e,t,i){"use strict";var o,g={},n=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}();function a(e,t){for(var i=[],o={},g=0;g<e.length;g++){var n=e[g],a=t.base?n[0]+t.base:n[0],A={css:n[1],media:n[2],sourceMap:n[3]};o[a]?o[a].parts.push(A):i.push(o[a]={id:a,parts:[A]})}return i}function A(e,t){for(var i=0;i<e.length;i++){var o=e[i],n=g[o.id],a=0;if(n){for(n.refs++;a<n.parts.length;a++)n.parts[a](o.parts[a]);for(;a<o.parts.length;a++)n.parts.push(u(o.parts[a],t))}else{for(var A=[];a<o.parts.length;a++)A.push(u(o.parts[a],t));g[o.id]={id:o.id,refs:1,parts:A}}}}function r(e){var t=document.createElement("style");if(void 0===e.attributes.nonce){var o=i.nc;o&&(e.attributes.nonce=o)}if(Object.keys(e.attributes).forEach((function(i){t.setAttribute(i,e.attributes[i])})),"function"==typeof e.insert)e.insert(t);else{var g=n(e.insert||"head");if(!g)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");g.appendChild(t)}return t}var C,I=(C=[],function(e,t){return C[e]=t,C.filter(Boolean).join("\n")});function s(e,t,i,o){var g=i?"":o.css;if(e.styleSheet)e.styleSheet.cssText=I(t,g);else{var n=document.createTextNode(g),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(n,a[t]):e.appendChild(n)}}var l=null,c=0;function u(e,t){var i,o,g;if(t.singleton){var n=c++;i=l||(l=r(t)),o=s.bind(null,i,n,!1),g=s.bind(null,i,n,!0)}else i=r(t),o=function(e,t,i){var o=i.css,g=i.media,n=i.sourceMap;if(g&&e.setAttribute("media",g),n&&btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(n))))," */")),e.styleSheet)e.styleSheet.cssText=o;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(o))}}.bind(null,i,t),g=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(i)};return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else g()}}e.exports=function(e,t){(t=t||{}).attributes="object"==typeof t.attributes?t.attributes:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=(void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o));var i=a(e,t);return A(i,t),function(e){for(var o=[],n=0;n<i.length;n++){var r=i[n],C=g[r.id];C&&(C.refs--,o.push(C))}e&&A(a(e,t),t);for(var I=0;I<o.length;I++){var s=o[I];if(0===s.refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete g[s.id]}}}}},function(e,t,i){var o,g,n;g=[t,i(7),i(8)],void 0===(n="function"==typeof(o=function(i,o,g){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var n,a=(n=g,g=n&&n.__esModule?n:{default:n}).default;i.default=a,e.exports=t.default})?o.apply(t,g):o)||(e.exports=n)},function(e,t,i){var o,g;void 0===(g="function"==typeof(o=function(){"use strict";if("undefined"==typeof Symbol){window.Symbol=function(){};var e="__symbol_iterator_key";window.Symbol.iterator=e,Array.prototype[e]=function(){var e=this,t=0;return{next:function(){return{done:e.length===t,value:e.length===t?void 0:e[t++]}}}}}})?o.apply(t,[]):o)||(e.exports=g)},function(e,t,i){var o,g,n;g=[t,i(9),i(0),i(1),i(11),i(13),i(14),i(15),i(16),i(17),i(2),i(3),i(21),i(24),i(26),i(30),i(37)],void 0===(n="function"==typeof(o=function(i,o,g,n,a,A,r,C,I,s,l,c,u,d,h,p,f){"use strict";function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,o=m(o),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,i):{};o.get||o.set?Object.defineProperty(t,i,o):t[i]=e[i]}return t.default=e,t}(g),n=m(n),A=m(A),r=m(r),C=m(C),I=m(I),s=m(s),l=m(l),c=m(c),u=m(u),d=m(d),h=m(h),p=m(p),f=m(f);var y="#__vconsole",b=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.default.one(y))console.debug("vConsole is already exists.");else{var i=this;if(this.version=o.default.version,this.$dom=null,this.isInited=!1,this.option={defaultPlugins:["system","network","element","storage"]},this.activedTab="",this.tabList=[],this.pluginList={},this.switchPos={x:10,y:10,startX:0,startY:0,endX:0,endY:0},this.tool=g,this.$=n.default,g.isObject(t))for(var a in t)this.option[a]=t[a];this._addBuiltInPlugins();var A,r=function(){i.isInited||(i._render(),i._mockTap(),i._bindEvent(),i._autoRun())};void 0!==document?"loading"===document.readyState?n.default.bind(window,"DOMContentLoaded",r):r():A=setTimeout((function e(){document&&"complete"==document.readyState?(A&&clearTimeout(A),r()):A=setTimeout(e,1)}),1)}}var t,i;return t=e,(i=[{key:"_addBuiltInPlugins",value:function(){this.addPlugin(new u.default("default","Log"));var e=this.option.defaultPlugins,t={system:{proto:d.default,name:"System"},network:{proto:h.default,name:"Network"},element:{proto:p.default,name:"Element"},storage:{proto:f.default,name:"Storage"}};if(e&&g.isArray(e))for(var i=0;i<e.length;i++){var o=t[e[i]];o?this.addPlugin(new o.proto(e[i],o.name)):console.debug("Unrecognized default plugin ID:",e[i])}}},{key:"_render",value:function(){if(!n.default.one(y)){var e=document.createElement("div");e.innerHTML=A.default,document.documentElement.insertAdjacentElement("beforeend",e.children[0])}this.$dom=n.default.one(y);var t=n.default.one(".vc-switch",this.$dom),i=1*g.getStorage("switch_x"),o=1*g.getStorage("switch_y");(i||o)&&(i+t.offsetWidth>document.documentElement.offsetWidth&&(i=document.documentElement.offsetWidth-t.offsetWidth),o+t.offsetHeight>document.documentElement.offsetHeight&&(o=document.documentElement.offsetHeight-t.offsetHeight),i<0&&(i=0),o<0&&(o=0),this.switchPos.x=i,this.switchPos.y=o,n.default.one(".vc-switch").style.right=i+"px",n.default.one(".vc-switch").style.bottom=o+"px");var a=window.devicePixelRatio||1,r=document.querySelector('[name="viewport"]');if(r&&r.content){var C=r.content.match(/initial\-scale\=\d+(\.\d+)?/);(C?parseFloat(C[0].split("=")[1]):1)<1&&(this.$dom.style.fontSize=13*a+"px")}n.default.one(".vc-mask",this.$dom).style.display="none"}},{key:"_mockTap",value:function(){var e,t,i,o=!1,g=null;this.$dom.addEventListener("touchstart",(function(o){if(void 0===e){var n=o.targetTouches[0];t=n.pageX,i=n.pageY,e=o.timeStamp,g=o.target.nodeType===Node.TEXT_NODE?o.target.parentNode:o.target}}),!1),this.$dom.addEventListener("touchmove",(function(e){var g=e.changedTouches[0];(Math.abs(g.pageX-t)>10||Math.abs(g.pageY-i)>10)&&(o=!0)})),this.$dom.addEventListener("touchend",(function(t){if(!1===o&&t.timeStamp-e<700&&null!=g){var i=!1;switch(g.tagName.toLowerCase()){case"textarea":i=!0;break;case"input":switch(g.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":i=!1;break;default:i=!g.disabled&&!g.readOnly}}i?g.focus():t.preventDefault();var n=t.changedTouches[0],a=document.createEvent("MouseEvents");a.initMouseEvent("click",!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),a.forwardedTouchEvent=!0,a.initEvent("click",!0,!0),g.dispatchEvent(a)}e=void 0,o=!1,g=null}),!1)}},{key:"_bindEvent",value:function(){var e=this,t=n.default.one(".vc-switch",e.$dom);n.default.bind(t,"touchstart",(function(t){e.switchPos.startX=t.touches[0].pageX,e.switchPos.startY=t.touches[0].pageY})),n.default.bind(t,"touchend",(function(t){e.switchPos.x=e.switchPos.endX,e.switchPos.y=e.switchPos.endY,e.switchPos.startX=0,e.switchPos.startY=0,g.setStorage("switch_x",e.switchPos.x),g.setStorage("switch_y",e.switchPos.y)})),n.default.bind(t,"touchmove",(function(i){if(i.touches.length>0){var o=i.touches[0].pageX-e.switchPos.startX,g=i.touches[0].pageY-e.switchPos.startY,n=e.switchPos.x-o,a=e.switchPos.y-g;n+t.offsetWidth>document.documentElement.offsetWidth&&(n=document.documentElement.offsetWidth-t.offsetWidth),a+t.offsetHeight>document.documentElement.offsetHeight&&(a=document.documentElement.offsetHeight-t.offsetHeight),n<0&&(n=0),a<0&&(a=0),t.style.right=n+"px",t.style.bottom=a+"px",e.switchPos.endX=n,e.switchPos.endY=a,i.preventDefault()}})),n.default.bind(n.default.one(".vc-switch",e.$dom),"click",(function(){e.show()})),n.default.bind(n.default.one(".vc-hide",e.$dom),"click",(function(){e.hide()})),n.default.bind(n.default.one(".vc-mask",e.$dom),"click",(function(t){if(t.target!=n.default.one(".vc-mask"))return!1;e.hide()})),n.default.delegate(n.default.one(".vc-tabbar",e.$dom),"click",".vc-tab",(function(t){var i=this.dataset.tab;i!=e.activedTab&&e.showTab(i)})),n.default.bind(n.default.one(".vc-panel",e.$dom),"transitionend webkitTransitionEnd oTransitionEnd otransitionend",(function(t){if(t.target!=n.default.one(".vc-panel"))return!1;n.default.hasClass(e.$dom,"vc-toggle")||(t.target.style.display="none")}));var i=n.default.one(".vc-content",e.$dom),o=!1;n.default.bind(i,"touchstart",(function(e){var t=i.scrollTop,g=i.scrollHeight,a=t+i.offsetHeight;0===t?(i.scrollTop=1,0===i.scrollTop&&(n.default.hasClass(e.target,"vc-cmd-input")||(o=!0))):a===g&&(i.scrollTop=t-1,i.scrollTop===t&&(n.default.hasClass(e.target,"vc-cmd-input")||(o=!0)))})),n.default.bind(i,"touchmove",(function(e){o&&e.preventDefault()})),n.default.bind(i,"touchend",(function(e){o=!1}))}},{key:"_autoRun",value:function(){for(var e in this.isInited=!0,this.pluginList)this._initPlugin(this.pluginList[e]);this.tabList.length>0&&this.showTab(this.tabList[0]),this.triggerEvent("ready")}},{key:"triggerEvent",value:function(e,t){e="on"+e.charAt(0).toUpperCase()+e.slice(1),g.isFunction(this.option[e])&&this.option[e].apply(this,t)}},{key:"_initPlugin",value:function(e){var t=this;e.vConsole=this,e.trigger("init"),e.trigger("renderTab",(function(i){t.tabList.push(e.id);var o=n.default.render(r.default,{id:e.id,name:e.name});n.default.one(".vc-tabbar",t.$dom).insertAdjacentElement("beforeend",o);var a=n.default.render(C.default,{id:e.id});i&&(g.isString(i)?a.innerHTML+=i:g.isFunction(i.appendTo)?i.appendTo(a):g.isElement(i)&&a.insertAdjacentElement("beforeend",i)),n.default.one(".vc-content",t.$dom).insertAdjacentElement("beforeend",a)})),e.trigger("addTopBar",(function(i){if(i)for(var o=n.default.one(".vc-topbar",t.$dom),a=function(t){var a=i[t],A=n.default.render(I.default,{name:a.name||"Undefined",className:a.className||"",pluginID:e.id});if(a.data)for(var r in a.data)A.dataset[r]=a.data[r];g.isFunction(a.onClick)&&n.default.bind(A,"click",(function(t){!1===a.onClick.call(A)||(n.default.removeClass(n.default.all(".vc-topbar-"+e.id),"vc-actived"),n.default.addClass(A,"vc-actived"))})),o.insertAdjacentElement("beforeend",A)},A=0;A<i.length;A++)a(A)})),e.trigger("addTool",(function(i){if(i)for(var o=n.default.one(".vc-tool-last",t.$dom),a=function(t){var a=i[t],A=n.default.render(s.default,{name:a.name||"Undefined",pluginID:e.id});1==a.global&&n.default.addClass(A,"vc-global-tool"),g.isFunction(a.onClick)&&n.default.bind(A,"click",(function(e){a.onClick.call(A)})),o.parentNode.insertBefore(A,o)},A=0;A<i.length;A++)a(A)})),e.isReady=!0,e.trigger("ready")}},{key:"_triggerPluginsEvent",value:function(e){for(var t in this.pluginList)this.pluginList[t].isReady&&this.pluginList[t].trigger(e)}},{key:"_triggerPluginEvent",value:function(e,t){var i=this.pluginList[e];i&&i.isReady&&i.trigger(t)}},{key:"addPlugin",value:function(e){return void 0!==this.pluginList[e.id]?(console.debug("Plugin "+e.id+" has already been added."),!1):(this.pluginList[e.id]=e,this.isInited&&(this._initPlugin(e),1==this.tabList.length&&this.showTab(this.tabList[0])),!0)}},{key:"removePlugin",value:function(e){e=(e+"").toLowerCase();var t=this.pluginList[e];if(void 0===t)return console.debug("Plugin "+e+" does not exist."),!1;if(t.trigger("remove"),this.isInited){var i=n.default.one("#__vc_tab_"+e);i&&i.parentNode.removeChild(i);for(var o=n.default.all(".vc-topbar-"+e,this.$dom),g=0;g<o.length;g++)o[g].parentNode.removeChild(o[g]);var a=n.default.one("#__vc_log_"+e);a&&a.parentNode.removeChild(a);for(var A=n.default.all(".vc-tool-"+e,this.$dom),r=0;r<A.length;r++)A[r].parentNode.removeChild(A[r])}var C=this.tabList.indexOf(e);C>-1&&this.tabList.splice(C,1);try{delete this.pluginList[e]}catch(t){this.pluginList[e]=void 0}return this.activedTab==e&&this.tabList.length>0&&this.showTab(this.tabList[0]),!0}},{key:"show",value:function(){if(this.isInited){var e=this;n.default.one(".vc-panel",this.$dom).style.display="block",setTimeout((function(){n.default.addClass(e.$dom,"vc-toggle"),e._triggerPluginsEvent("showConsole"),n.default.one(".vc-mask",e.$dom).style.display="block"}),10)}}},{key:"hide",value:function(){if(this.isInited){n.default.removeClass(this.$dom,"vc-toggle"),this._triggerPluginsEvent("hideConsole");var e=n.default.one(".vc-mask",this.$dom),t=n.default.one(".vc-panel",this.$dom);n.default.bind(e,"transitionend",(function(i){e.style.display="none",t.style.display="none"}))}}},{key:"showSwitch",value:function(){this.isInited&&(n.default.one(".vc-switch",this.$dom).style.display="block")}},{key:"hideSwitch",value:function(){this.isInited&&(n.default.one(".vc-switch",this.$dom).style.display="none")}},{key:"showTab",value:function(e){if(this.isInited){var t=n.default.one("#__vc_log_"+e);n.default.removeClass(n.default.all(".vc-tab",this.$dom),"vc-actived"),n.default.addClass(n.default.one("#__vc_tab_"+e),"vc-actived"),n.default.removeClass(n.default.all(".vc-logbox",this.$dom),"vc-actived"),n.default.addClass(t,"vc-actived");var i=n.default.all(".vc-topbar-"+e,this.$dom);n.default.removeClass(n.default.all(".vc-toptab",this.$dom),"vc-toggle"),n.default.addClass(i,"vc-toggle"),i.length>0?n.default.addClass(n.default.one(".vc-content",this.$dom),"vc-has-topbar"):n.default.removeClass(n.default.one(".vc-content",this.$dom),"vc-has-topbar"),n.default.removeClass(n.default.all(".vc-tool",this.$dom),"vc-toggle"),n.default.addClass(n.default.all(".vc-tool-"+e,this.$dom),"vc-toggle"),this.activedTab&&this._triggerPluginEvent(this.activedTab,"hide"),this.activedTab=e,this._triggerPluginEvent(this.activedTab,"show")}}},{key:"setOption",value:function(e,t){if(g.isString(e))this.option[e]=t,this._triggerPluginsEvent("updateOption");else if(g.isObject(e)){for(var i in e)this.option[i]=e[i];this._triggerPluginsEvent("updateOption")}else console.debug("The first parameter of vConsole.setOption() must be a string or an object.")}},{key:"destroy",value:function(){if(this.isInited){for(var e=Object.keys(this.pluginList),t=e.length-1;t>=0;t--)this.removePlugin(e[t]);this.$dom.parentNode.removeChild(this.$dom),this.isInited=!1}}}])&&v(t.prototype,i),e}();b.VConsolePlugin=l.default,b.VConsoleLogPlugin=c.default,b.VConsoleDefaultPlugin=u.default,b.VConsoleSystemPlugin=d.default,b.VConsoleNetworkPlugin=h.default,b.VConsoleElementPlugin=p.default,b.VConsoleStoragePlugin=f.default;var w=b;i.default=w,e.exports=t.default})?o.apply(t,g):o)||(e.exports=n)},function(e){e.exports=JSON.parse('{"name":"vconsole","version":"3.3.4","description":"A lightweight, extendable front-end developer tool for mobile web page.","homepage":"https://github.com/Tencent/vConsole","main":"dist/vconsole.min.js","typings":"dist/vconsole.min.d.ts","scripts":{"test":"mocha","build":"webpack"},"keywords":["console","debug","mobile"],"repository":{"type":"git","url":"git+https://github.com/Tencent/vConsole.git"},"dependencies":{},"devDependencies":{"@babel/core":"^7.5.5","@babel/plugin-proposal-class-properties":"^7.5.5","@babel/plugin-proposal-export-namespace-from":"^7.5.2","@babel/plugin-proposal-object-rest-spread":"^7.5.5","@babel/preset-env":"^7.5.5","babel-loader":"^8.0.6","babel-plugin-add-module-exports":"^1.0.2","chai":"^4.2.0","copy-webpack-plugin":"^5.0.4","css-loader":"^3.2.0","html-loader":"^0.5.5","jsdom":"^15.1.1","json-loader":"^0.5.7","less":"^3.10.0","less-loader":"^5.0.0","mocha":"^5.2.0","style-loader":"^1.0.0","webpack":"^4.39.2","webpack-cli":"^3.3.6"},"author":"Tencent","license":"MIT"}')},function(e,t,i){var o,g;void 0===(g="function"==typeof(o=function(i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=function(e,t,i){var o=/\{\{([^\}]+)\}\}/g,g="",n="",a=0,A=[],r=function(e,t){""!==e&&(t?e.match(/^ ?else/g)?g+="} "+e+" {\n":e.match(/\/(if|for|switch)/g)?g+="}\n":e.match(/^ ?if|for|switch/g)?g+=e+" {\n":e.match(/^ ?(break|continue) ?$/g)?g+=e+";\n":e.match(/^ ?(case|default)/g)?g+=e+":\n":g+="arr.push("+e+");\n":g+='arr.push("'+e.replace(/"/g,'\\"')+'");\n')};for(window.__mito_data=t,window.__mito_code="",window.__mito_result="",e=(e=e.replace(/(\{\{ ?switch(.+?)\}\})[\r\n\t ]+\{\{/g,"$1{{")).replace(/^[\r\n]/,"").replace(/\n/g,"\\\n").replace(/\r/g,"\\\r"),n="(function(){\n",g="var arr = [];\n";A=o.exec(e);)r(e.slice(a,A.index),!1),r(A[1],!0),a=A.index+A[0].length;r(e.substr(a,e.length-a),!1),n+=g="with (__mito_data) {\n"+(g+='__mito_result = arr.join("");')+"\n}",n+="})();";var C=document.getElementsByTagName("script"),I="";C.length>0&&(I=C[0].nonce||"");var s=document.createElement("SCRIPT");s.innerHTML=n,s.setAttribute("nonce",I),document.documentElement.appendChild(s);var l=__mito_result;if(document.documentElement.removeChild(s),!i){var c=document.createElement("DIV");c.innerHTML=l,l=c.children[0]}return l},e.exports=t.default})?o.apply(t,[t]):o)||(e.exports=g)},function(e,t,i){var o=i(12);"string"==typeof o&&(o=[[e.i,o,""]]);i(5)(o,{insert:"head",singleton:!1}),o.locals&&(e.exports=o.locals)},function(e,t,i){(e.exports=i(4)(!1)).push([e.i,'#__vconsole {\n color: #000;\n font-size: 13px;\n font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n /* global */\n /* compoment */\n}\n#__vconsole .vc-max-height {\n max-height: 19.23076923em;\n}\n#__vconsole .vc-max-height-line {\n max-height: 3.38461538em;\n}\n#__vconsole .vc-min-height {\n min-height: 3.07692308em;\n}\n#__vconsole dd,\n#__vconsole dl,\n#__vconsole pre {\n margin: 0;\n}\n#__vconsole .vc-switch {\n display: block;\n position: fixed;\n right: 0.76923077em;\n bottom: 0.76923077em;\n color: #FFF;\n background-color: #04BE02;\n line-height: 1;\n font-size: 1.07692308em;\n padding: 0.61538462em 1.23076923em;\n z-index: 10000;\n border-radius: 0.30769231em;\n box-shadow: 0 0 0.61538462em rgba(0, 0, 0, 0.4);\n}\n#__vconsole .vc-mask {\n display: none;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0);\n z-index: 10001;\n transition: background 0.3s;\n -webkit-tap-highlight-color: transparent;\n overflow-y: scroll;\n}\n#__vconsole .vc-panel {\n display: none;\n position: fixed;\n min-height: 85%;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 10002;\n background-color: #EFEFF4;\n -webkit-transition: -webkit-transform 0.3s;\n transition: -webkit-transform 0.3s;\n transition: transform 0.3s;\n transition: transform 0.3s, -webkit-transform 0.3s;\n -webkit-transform: translate(0, 100%);\n transform: translate(0, 100%);\n}\n#__vconsole .vc-tabbar {\n border-bottom: 1px solid #D9D9D9;\n overflow-x: auto;\n height: 3em;\n width: auto;\n white-space: nowrap;\n}\n#__vconsole .vc-tabbar .vc-tab {\n display: inline-block;\n line-height: 3em;\n padding: 0 1.15384615em;\n border-right: 1px solid #D9D9D9;\n text-decoration: none;\n color: #000;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-tabbar .vc-tab:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-tabbar .vc-tab.vc-actived {\n background-color: #FFF;\n}\n#__vconsole .vc-content {\n background-color: #FFF;\n overflow-x: hidden;\n overflow-y: auto;\n position: absolute;\n top: 3.07692308em;\n left: 0;\n right: 0;\n bottom: 3.07692308em;\n -webkit-overflow-scrolling: touch;\n margin-bottom: constant(safe-area-inset-bottom);\n margin-bottom: env(safe-area-inset-bottom);\n}\n#__vconsole .vc-content.vc-has-topbar {\n top: 5.46153846em;\n}\n#__vconsole .vc-topbar {\n background-color: #FBF9FE;\n display: flex;\n display: -webkit-box;\n flex-direction: row;\n flex-wrap: wrap;\n -webkit-box-direction: row;\n -webkit-flex-wrap: wrap;\n width: 100%;\n}\n#__vconsole .vc-topbar .vc-toptab {\n display: none;\n flex: 1;\n -webkit-box-flex: 1;\n line-height: 2.30769231em;\n padding: 0 1.15384615em;\n border-bottom: 1px solid #D9D9D9;\n text-decoration: none;\n text-align: center;\n color: #000;\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-topbar .vc-toptab.vc-toggle {\n display: block;\n}\n#__vconsole .vc-topbar .vc-toptab:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-topbar .vc-toptab.vc-actived {\n border-bottom: 1px solid #3e82f7;\n}\n#__vconsole .vc-logbox {\n display: none;\n position: relative;\n min-height: 100%;\n}\n#__vconsole .vc-logbox i {\n font-style: normal;\n}\n#__vconsole .vc-logbox .vc-log {\n padding-bottom: 3em;\n -webkit-tap-highlight-color: transparent;\n}\n#__vconsole .vc-logbox .vc-log:empty:before {\n content: "Empty";\n color: #999;\n position: absolute;\n top: 45%;\n left: 0;\n right: 0;\n bottom: 0;\n font-size: 1.15384615em;\n text-align: center;\n}\n#__vconsole .vc-logbox .vc-item {\n margin: 0;\n padding: 0.46153846em 0.61538462em;\n overflow: hidden;\n line-height: 1.3;\n border-bottom: 1px solid #EEE;\n word-break: break-word;\n}\n#__vconsole .vc-logbox .vc-item-info {\n color: #6A5ACD;\n}\n#__vconsole .vc-logbox .vc-item-debug {\n color: #DAA520;\n}\n#__vconsole .vc-logbox .vc-item-warn {\n color: #FFA500;\n border-color: #FFB930;\n background-color: #FFFACD;\n}\n#__vconsole .vc-logbox .vc-item-error {\n color: #DC143C;\n border-color: #F4A0AB;\n background-color: #FFE4E1;\n}\n#__vconsole .vc-logbox .vc-log.vc-log-partly .vc-item {\n display: none;\n}\n#__vconsole .vc-logbox .vc-log.vc-log-partly-log .vc-item-log,\n#__vconsole .vc-logbox .vc-log.vc-log-partly-info .vc-item-info,\n#__vconsole .vc-logbox .vc-log.vc-log-partly-warn .vc-item-warn,\n#__vconsole .vc-logbox .vc-log.vc-log-partly-error .vc-item-error {\n display: block;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-content {\n margin-right: 4.61538462em;\n display: inline-block;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-repeat {\n display: inline-block;\n margin-right: 0.30769231em;\n padding: 0 6.5px;\n color: #D7E0EF;\n background-color: #42597F;\n border-radius: 8.66666667px;\n}\n#__vconsole .vc-logbox .vc-item.vc-item-error .vc-item-repeat {\n color: #901818;\n background-color: #DC2727;\n}\n#__vconsole .vc-logbox .vc-item.vc-item-warn .vc-item-repeat {\n color: #987D20;\n background-color: #F4BD02;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code {\n display: block;\n white-space: pre-wrap;\n overflow: auto;\n position: relative;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-input,\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-output {\n padding-left: 0.92307692em;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-input:before,\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-output:before {\n content: "›";\n position: absolute;\n top: -0.23076923em;\n left: 0;\n font-size: 1.23076923em;\n color: #6A5ACD;\n}\n#__vconsole .vc-logbox .vc-item .vc-item-code.vc-item-code-output:before {\n content: "‹";\n}\n#__vconsole .vc-logbox .vc-item .vc-fold {\n display: block;\n overflow: auto;\n -webkit-overflow-scrolling: touch;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer {\n display: block;\n font-style: italic;\n padding-left: 0.76923077em;\n position: relative;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer:active {\n background-color: #E6E6E6;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer:before {\n content: "";\n position: absolute;\n top: 0.30769231em;\n left: 0.15384615em;\n width: 0;\n height: 0;\n border: transparent solid 0.30769231em;\n border-left-color: #000;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer.vc-toggle:before {\n top: 0.46153846em;\n left: 0;\n border-top-color: #000;\n border-left-color: transparent;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-inner {\n display: none;\n margin-left: 0.76923077em;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-inner.vc-toggle {\n display: block;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-inner .vc-code-key {\n margin-left: 0.76923077em;\n}\n#__vconsole .vc-logbox .vc-item .vc-fold .vc-fold-outer .vc-code-key {\n margin-left: 0;\n}\n#__vconsole .vc-logbox .vc-code-key {\n color: #905;\n}\n#__vconsole .vc-logbox .vc-code-private-key {\n color: #D391B5;\n}\n#__vconsole .vc-logbox .vc-code-function {\n color: #905;\n font-style: italic;\n}\n#__vconsole .vc-logbox .vc-code-number,\n#__vconsole .vc-logbox .vc-code-boolean {\n color: #0086B3;\n}\n#__vconsole .vc-logbox .vc-code-string {\n color: #183691;\n}\n#__vconsole .vc-logbox .vc-code-null,\n#__vconsole .vc-logbox .vc-code-undefined {\n color: #666;\n}\n#__vconsole .vc-logbox .vc-cmd {\n position: absolute;\n height: 3.07692308em;\n left: 0;\n right: 0;\n bottom: 0;\n border-top: 1px solid #D9D9D9;\n display: block!important;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-input-wrap {\n display: block;\n height: 2.15384615em;\n margin-right: 3.07692308em;\n padding: 0.46153846em 0.61538462em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-input {\n width: 100%;\n border: none;\n resize: none;\n outline: none;\n padding: 0;\n font-size: 0.92307692em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-input::-webkit-input-placeholder {\n line-height: 2.15384615em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-btn {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 3.07692308em;\n border: none;\n background-color: #EFEFF4;\n outline: none;\n -webkit-touch-callout: none;\n font-size: 1em;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-btn:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-prompted {\n position: fixed;\n width: 100%;\n background-color: #FBF9FE;\n border: 1px solid #D9D9D9;\n overflow-x: scroll;\n display: none;\n}\n#__vconsole .vc-logbox .vc-cmd .vc-cmd-prompted li {\n list-style: none;\n line-height: 30px;\n padding: 0 0.46153846em;\n border-bottom: 1px solid #D9D9D9;\n}\n#__vconsole .vc-logbox .vc-group .vc-group-preview {\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-logbox .vc-group .vc-group-preview:active {\n background-color: #E6E6E6;\n}\n#__vconsole .vc-logbox .vc-group .vc-group-detail {\n display: none;\n padding: 0 0 0.76923077em 1.53846154em;\n border-bottom: 1px solid #EEE;\n}\n#__vconsole .vc-logbox .vc-group.vc-actived .vc-group-detail {\n display: block;\n background-color: #FBF9FE;\n}\n#__vconsole .vc-logbox .vc-group.vc-actived .vc-table-row {\n background-color: #FFF;\n}\n#__vconsole .vc-logbox .vc-group.vc-actived .vc-group-preview {\n background-color: #FBF9FE;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row {\n display: flex;\n display: -webkit-flex;\n flex-direction: row;\n flex-wrap: wrap;\n -webkit-box-direction: row;\n -webkit-flex-wrap: wrap;\n overflow: hidden;\n border-bottom: 1px solid #EEE;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row.vc-left-border {\n border-left: 1px solid #EEE;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col {\n flex: 1;\n -webkit-box-flex: 1;\n padding: 0.23076923em 0.30769231em;\n border-left: 1px solid #EEE;\n overflow: auto;\n white-space: pre-wrap;\n word-break: break-word;\n /*white-space: nowrap;\n text-overflow: ellipsis;*/\n -webkit-overflow-scrolling: touch;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col:first-child {\n border: none;\n}\n#__vconsole .vc-logbox .vc-table .vc-small .vc-table-col {\n padding: 0 0.30769231em;\n font-size: 0.92307692em;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-2 {\n flex: 2;\n -webkit-box-flex: 2;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-3 {\n flex: 3;\n -webkit-box-flex: 3;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-4 {\n flex: 4;\n -webkit-box-flex: 4;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-5 {\n flex: 5;\n -webkit-box-flex: 5;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-6 {\n flex: 6;\n -webkit-box-flex: 6;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row-error {\n border-color: #F4A0AB;\n background-color: #FFE4E1;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-row-error .vc-table-col {\n color: #DC143C;\n border-color: #F4A0AB;\n}\n#__vconsole .vc-logbox .vc-table .vc-table-col-title {\n font-weight: bold;\n}\n#__vconsole .vc-logbox.vc-actived {\n display: block;\n}\n#__vconsole .vc-toolbar {\n border-top: 1px solid #D9D9D9;\n line-height: 3em;\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n display: -webkit-box;\n flex-direction: row;\n -webkit-box-direction: row;\n}\n#__vconsole .vc-toolbar .vc-tool {\n display: none;\n text-decoration: none;\n color: #000;\n width: 50%;\n flex: 1;\n -webkit-box-flex: 1;\n text-align: center;\n position: relative;\n -webkit-touch-callout: none;\n}\n#__vconsole .vc-toolbar .vc-tool.vc-toggle,\n#__vconsole .vc-toolbar .vc-tool.vc-global-tool {\n display: block;\n}\n#__vconsole .vc-toolbar .vc-tool:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n#__vconsole .vc-toolbar .vc-tool:after {\n content: " ";\n position: absolute;\n top: 0.53846154em;\n bottom: 0.53846154em;\n right: 0;\n border-left: 1px solid #D9D9D9;\n}\n#__vconsole .vc-toolbar .vc-tool-last:after {\n border: none;\n}\n@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {\n #__vconsole .vc-toolbar,\n #__vconsole .vc-switch {\n bottom: constant(safe-area-inset-bottom);\n bottom: env(safe-area-inset-bottom);\n }\n}\n#__vconsole.vc-toggle .vc-switch {\n display: none;\n}\n#__vconsole.vc-toggle .vc-mask {\n background: rgba(0, 0, 0, 0.6);\n display: block;\n}\n#__vconsole.vc-toggle .vc-panel {\n -webkit-transform: translate(0, 0);\n transform: translate(0, 0);\n}\n',""])},function(e,t){e.exports='<div id="__vconsole" class="">\n <div class="vc-switch">vConsole</div>\n <div class="vc-mask">\n </div>\n <div class="vc-panel">\n <div class="vc-tabbar">\n </div>\n <div class="vc-topbar">\n </div>\n <div class="vc-content">\n </div>\n <div class="vc-toolbar">\n <a class="vc-tool vc-global-tool vc-tool-last vc-hide">Hide</a>\n </div>\n </div>\n</div>'},function(e,t){e.exports='<a class="vc-tab" data-tab="{{id}}" id="__vc_tab_{{id}}">{{name}}</a>'},function(e,t){e.exports='<div class="vc-logbox" id="__vc_log_{{id}}">\n \n</div>'},function(e,t){e.exports='<a class="vc-toptab vc-topbar-{{pluginID}}{{if (className)}} {{className}}{{/if}}">{{name}}</a>'},function(e,t){e.exports='<a class="vc-tool vc-tool-{{pluginID}}">{{name}}</a>'},function(e,t){e.exports='<div id="{{_id}}" class="vc-item vc-item-{{logType}} {{style}}">\n\t<div class="vc-item-content"></div>\n</div>'},function(e,t){e.exports='<div class="vc-fold">\n {{if (lineType == \'obj\')}}\n <i class="vc-fold-outer">{{outer}}</i>\n <div class="vc-fold-inner"></div>\n {{else if (lineType == \'value\')}}\n <i class="vc-code-{{valueType}}">{{value}}</i>\n {{else if (lineType == \'kv\')}}\n <i class="vc-code-key{{if (keyType)}} vc-code-{{keyType}}-key{{/if}}">{{key}}</i>: <i class="vc-code-{{valueType}}">{{value}}</i>\n {{/if}}\n</div>'},function(e,t){e.exports='<span>\n <i class="vc-code-key{{if (keyType)}} vc-code-{{keyType}}-key{{/if}}">{{key}}</i>: <i class="vc-code-{{valueType}}">{{value}}</i>\n</span>'},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,factory;factory=function(_exports,_query,tool,_log,_tabbox_default,_item_code){"use strict";function _interopRequireWildcard(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,i):{};o.get||o.set?Object.defineProperty(t,i,o):t[i]=e[i]}return t.default=e,t}function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),e}function _possibleConstructorReturn(e,t){return!t||"object"!==_typeof(t)&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _get(e,t,i){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var o=_superPropBase(e,t);if(o){var g=Object.getOwnPropertyDescriptor(o,t);return g.get?g.get.call(i):g.value}})(e,t,i||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(_exports,"__esModule",{value:!0}),_exports.default=void 0,_query=_interopRequireDefault(_query),tool=_interopRequireWildcard(tool),_log=_interopRequireDefault(_log),_tabbox_default=_interopRequireDefault(_tabbox_default),_item_code=_interopRequireDefault(_item_code);var VConsoleDefaultTab=function(_VConsoleLogTab){function VConsoleDefaultTab(){var e,t;_classCallCheck(this,VConsoleDefaultTab);for(var i=arguments.length,o=new Array(i),g=0;g<i;g++)o[g]=arguments[g];return(t=_possibleConstructorReturn(this,(e=_getPrototypeOf(VConsoleDefaultTab)).call.apply(e,[this].concat(o)))).tplTabbox=_tabbox_default.default,t}return _inherits(VConsoleDefaultTab,_VConsoleLogTab),_createClass(VConsoleDefaultTab,[{key:"onReady",value:function onReady(){var that=this;_get(_getPrototypeOf(VConsoleDefaultTab.prototype),"onReady",this).call(this),window.winKeys=Object.getOwnPropertyNames(window).sort(),window.keyTypes={};for(var i=0;i<winKeys.length;i++)keyTypes[winKeys[i]]=_typeof(window[winKeys[i]]);var cacheObj={},ID_REGEX=/[a-zA-Z_0-9\$\-\u00A2-\uFFFF]/,retrievePrecedingIdentifier=function(e,t,i){i=i||ID_REGEX;for(var o=[],g=t-1;g>=0&&i.test(e[g]);g--)o.push(e[g]);if(0==o.length){i=/\./;for(var n=t-1;n>=0&&i.test(e[n]);n--)o.push(e[n])}if(0===o.length){var a=e.match(/[\(\)\[\]\{\}]/gi)||[];return a[a.length-1]}return o.reverse().join("")};_query.default.bind(_query.default.one(".vc-cmd-input"),"keyup",(function(e){var isDeleteKeyCode=8===e.keyCode||46===e.keyCode,$prompted=_query.default.one(".vc-cmd-prompted");$prompted.style.display="none",$prompted.innerHTML="";var tempValue=this.value,value=retrievePrecedingIdentifier(this.value,this.value.length);if(value&&value.length>0){if(/\(/.test(value)&&!isDeleteKeyCode)return void(_query.default.one(".vc-cmd-input").value+=")");if(/\[/.test(value)&&!isDeleteKeyCode)return void(_query.default.one(".vc-cmd-input").value+="]");if(/\{/.test(value)&&!isDeleteKeyCode)return void(_query.default.one(".vc-cmd-input").value+="}");if("."===value){var key=retrievePrecedingIdentifier(tempValue,tempValue.length-1);if(!cacheObj[key])try{cacheObj[key]=Object.getOwnPropertyNames(eval("("+key+")")).sort()}catch(e){}try{for(var _i3=0;_i3<cacheObj[key].length;_i3++){var $li=document.createElement("li"),_key=cacheObj[key][_i3];$li.innerHTML=_key,$li.onclick=function(){_query.default.one(".vc-cmd-input").value="",_query.default.one(".vc-cmd-input").value=tempValue+this.innerHTML,$prompted.style.display="none"},$prompted.appendChild($li)}}catch(e){}}else if("."!==value.substring(value.length-1)&&value.indexOf(".")<0){for(var _i4=0;_i4<winKeys.length;_i4++)if(winKeys[_i4].toLowerCase().indexOf(value.toLowerCase())>=0){var _$li=document.createElement("li");_$li.innerHTML=winKeys[_i4],_$li.onclick=function(){_query.default.one(".vc-cmd-input").value="",_query.default.one(".vc-cmd-input").value=this.innerHTML,"function"==keyTypes[this.innerHTML]&&(_query.default.one(".vc-cmd-input").value+="()"),$prompted.style.display="none"},$prompted.appendChild(_$li)}}else{var arr=value.split(".");if(cacheObj[arr[0]]){cacheObj[arr[0]].sort();for(var _i5=0;_i5<cacheObj[arr[0]].length;_i5++){var _$li2=document.createElement("li"),_key3=cacheObj[arr[0]][_i5];_key3.indexOf(arr[1])>=0&&(_$li2.innerHTML=_key3,_$li2.onclick=function(){_query.default.one(".vc-cmd-input").value="",_query.default.one(".vc-cmd-input").value=tempValue+this.innerHTML,$prompted.style.display="none"},$prompted.appendChild(_$li2))}}}if($prompted.children.length>0){var m=Math.min(200,31*$prompted.children.length);$prompted.style.display="block",$prompted.style.height=m+"px",$prompted.style.marginTop=-m+"px"}}else $prompted.style.display="none"})),_query.default.bind(_query.default.one(".vc-cmd",this.$tabbox),"submit",(function(e){e.preventDefault();var t=_query.default.one(".vc-cmd-input",e.target),i=t.value;t.value="",""!==i&&that.evalCommand(i);var o=_query.default.one(".vc-cmd-prompted");o&&(o.style.display="none")}));var code="";code+="if (!!window) {",code+="window.__vConsole_cmd_result = undefined;",code+="window.__vConsole_cmd_error = false;",code+="}";var scriptList=document.getElementsByTagName("script"),nonce="";scriptList.length>0&&(nonce=scriptList[0].nonce||"");var script=document.createElement("SCRIPT");script.innerHTML=code,script.setAttribute("nonce",nonce),document.documentElement.appendChild(script),document.documentElement.removeChild(script)}},{key:"mockConsole",value:function(){_get(_getPrototypeOf(VConsoleDefaultTab.prototype),"mockConsole",this).call(this);var e=this;tool.isFunction(window.onerror)&&(this.windowOnError=window.onerror),window.onerror=function(t,i,o,g,n){var a=t;i&&(a+="\n"+i.replace(location.origin,"")),(o||g)&&(a+=":"+o+":"+g);var A=!!n&&!!n.stack&&n.stack.toString()||"";e.printLog({logType:"error",logs:[a,A],noOrigin:!0}),tool.isFunction(e.windowOnError)&&e.windowOnError.call(window,t,i,o,g,n)}}},{key:"evalCommand",value:function(e){this.printLog({logType:"log",content:_query.default.render(_item_code.default,{content:e,type:"input"}),style:""});var t,i=void 0;try{i=eval.call(window,"("+e+")")}catch(t){try{i=eval.call(window,e)}catch(e){}}tool.isArray(i)||tool.isObject(i)?t=this.getFoldedLine(i):(tool.isNull(i)?i="null":tool.isUndefined(i)?i="undefined":tool.isFunction(i)?i="function()":tool.isString(i)&&(i='"'+i+'"'),t=_query.default.render(_item_code.default,{content:i,type:"output"})),this.printLog({logType:"log",content:t,style:""}),window.winKeys=Object.getOwnPropertyNames(window).sort()}}]),VConsoleDefaultTab}(_log.default),_default=VConsoleDefaultTab;_exports.default=_default,module.exports=exports.default},__WEBPACK_AMD_DEFINE_ARRAY__=[exports,__webpack_require__(1),__webpack_require__(0),__webpack_require__(3),__webpack_require__(22),__webpack_require__(23)],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=factory)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(e,t){e.exports='<div>\n <div class="vc-log"></div>\n <form class="vc-cmd">\n <button class="vc-cmd-btn" type="submit">OK</button>\n <ul class=\'vc-cmd-prompted\'></ul>\n <div class="vc-cmd-input-wrap">\n <textarea class="vc-cmd-input" placeholder="command..."></textarea>\n </div>\n </form>\n</div>'},function(e,t){e.exports='<pre class="vc-item-code vc-item-code-{{type}}">{{content}}</pre>'},function(e,t,i){var o,g,n;g=[t,i(3),i(25)],void 0===(n="function"==typeof(o=function(i,o,g){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function r(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e,t,i){return(C="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,i){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=I(e)););return e}(e,t);if(o){var g=Object.getOwnPropertyDescriptor(o,t);return g.get?g.get.call(i):g.value}})(e,t,i||e)}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,o=n(o),g=n(g);var l=function(e){function t(){var e,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,n=new Array(o),a=0;a<o;a++)n[a]=arguments[a];return(i=r(this,(e=I(t)).call.apply(e,[this].concat(n)))).tplTabbox=g.default,i.allowUnformattedLog=!1,i}var i,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(t,o.default),i=t,(n=[{key:"onInit",value:function(){C(I(t.prototype),"onInit",this).call(this),this.printSystemInfo()}},{key:"printSystemInfo",value:function(){var e=navigator.userAgent,t="",i=e.match(/(ipod).*\s([\d_]+)/i),o=e.match(/(ipad).*\s([\d_]+)/i),g=e.match(/(iphone)\sos\s([\d_]+)/i),n=e.match(/(android)\s([\d\.]+)/i);t="Unknown",n?t="Android "+n[2]:g?t="iPhone, iOS "+g[2].replace(/_/g,"."):o?t="iPad, iOS "+o[2].replace(/_/g,"."):i&&(t="iPod, iOS "+i[2].replace(/_/g,"."));var a=t,A=e.match(/MicroMessenger\/([\d\.]+)/i);t="Unknown",A&&A[1]?(a+=", WeChat "+(t=A[1]),console.info("[system]","System:",a)):console.info("[system]","System:",a),t="Unknown",a=t="https:"==location.protocol?"HTTPS":"http:"==location.protocol?"HTTP":location.protocol.replace(":","");var r=e.toLowerCase().match(/ nettype\/([^ ]+)/g);t="Unknown",r&&r[0]?(a+=", "+(t=(r=r[0].split("/"))[1]),console.info("[system]","Network:",a)):console.info("[system]","Protocol:",a),console.info("[system]","UA:",e),setTimeout((function(){var e=window.performance||window.msPerformance||window.webkitPerformance;if(e&&e.timing){var t=e.timing;t.navigationStart&&console.info("[system]","navigationStart:",t.navigationStart),t.navigationStart&&t.domainLookupStart&&console.info("[system]","navigation:",t.domainLookupStart-t.navigationStart+"ms"),t.domainLookupEnd&&t.domainLookupStart&&console.info("[system]","dns:",t.domainLookupEnd-t.domainLookupStart+"ms"),t.connectEnd&&t.connectStart&&(t.connectEnd&&t.secureConnectionStart?console.info("[system]","tcp (ssl):",t.connectEnd-t.connectStart+"ms ("+(t.connectEnd-t.secureConnectionStart)+"ms)"):console.info("[system]","tcp:",t.connectEnd-t.connectStart+"ms")),t.responseStart&&t.requestStart&&console.info("[system]","request:",t.responseStart-t.requestStart+"ms"),t.responseEnd&&t.responseStart&&console.info("[system]","response:",t.responseEnd-t.responseStart+"ms"),t.domComplete&&t.domLoading&&(t.domContentLoadedEventStart&&t.domLoading?console.info("[system]","domComplete (domLoaded):",t.domComplete-t.domLoading+"ms ("+(t.domContentLoadedEventStart-t.domLoading)+"ms)"):console.info("[system]","domComplete:",t.domComplete-t.domLoading+"ms")),t.loadEventEnd&&t.loadEventStart&&console.info("[system]","loadEvent:",t.loadEventEnd-t.loadEventStart+"ms"),t.navigationStart&&t.loadEventEnd&&console.info("[system]","total (DOM):",t.loadEventEnd-t.navigationStart+"ms ("+(t.domComplete-t.navigationStart)+"ms)")}}),0)}}])&&A(i.prototype,n),t}();i.default=l,e.exports=t.default})?o.apply(t,g):o)||(e.exports=n)},function(e,t){e.exports='<div>\n <div class="vc-log"></div>\n</div>'},function(e,t,i){var o,g,n;g=[t,i(1),i(0),i(2),i(27),i(28),i(29)],void 0===(n="function"==typeof(o=function(i,o,g,n,a,A,r){"use strict";function C(e){return e&&e.__esModule?e:{default:e}}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return!t||"object"!==I(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,o=C(o),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,i):{};o.get||o.set?Object.defineProperty(t,i,o):t[i]=e[i]}return t.default=e,t}(g),n=C(n),a=C(a),A=C(A),r=C(r);var d=function(e){function t(){var e,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var g=arguments.length,n=new Array(g),A=0;A<g;A++)n[A]=arguments[A];return(i=l(this,(e=c(t)).call.apply(e,[this].concat(n)))).$tabbox=o.default.render(a.default,{}),i.$header=null,i.reqList={},i.domList={},i.isReady=!1,i.isShow=!1,i.isInBottom=!0,i._open=void 0,i._send=void 0,i.mockAjax(),i}var i,C;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,n.default),i=t,(C=[{key:"onRenderTab",value:function(e){e(this.$tabbox)}},{key:"onAddTool",value:function(e){var t=this;e([{name:"Clear",global:!1,onClick:function(e){t.clearLog()}}])}},{key:"onReady",value:function(){var e=this;e.isReady=!0,this.renderHeader(),o.default.delegate(o.default.one(".vc-log",this.$tabbox),"click",".vc-group-preview",(function(t){var i=this.dataset.reqid,g=this.parentNode;o.default.hasClass(g,"vc-actived")?(o.default.removeClass(g,"vc-actived"),e.updateRequest(i,{actived:!1})):(o.default.addClass(g,"vc-actived"),e.updateRequest(i,{actived:!0})),t.preventDefault()}));var t=o.default.one(".vc-content");for(var i in o.default.bind(t,"scroll",(function(i){e.isShow&&(t.scrollTop+t.offsetHeight>=t.scrollHeight?e.isInBottom=!0:e.isInBottom=!1)})),e.reqList)e.updateRequest(i,{})}},{key:"onRemove",value:function(){window.XMLHttpRequest&&(window.XMLHttpRequest.prototype.open=this._open,window.XMLHttpRequest.prototype.send=this._send,this._open=void 0,this._send=void 0)}},{key:"onShow",value:function(){this.isShow=!0,1==this.isInBottom&&this.scrollToBottom()}},{key:"onHide",value:function(){this.isShow=!1}},{key:"onShowConsole",value:function(){1==this.isInBottom&&this.scrollToBottom()}},{key:"scrollToBottom",value:function(){var e=o.default.one(".vc-content");e.scrollTop=e.scrollHeight-e.offsetHeight}},{key:"clearLog",value:function(){for(var e in this.reqList={},this.domList)this.domList[e].parentNode.removeChild(this.domList[e]),this.domList[e]=void 0;this.domList={},this.renderHeader()}},{key:"renderHeader",value:function(){var e=Object.keys(this.reqList).length,t=o.default.render(A.default,{count:e}),i=o.default.one(".vc-log",this.$tabbox);this.$header?this.$header.parentNode.replaceChild(t,this.$header):i.parentNode.insertBefore(t,i),this.$header=t}},{key:"updateRequest",value:function(e,t){var i=Object.keys(this.reqList).length,n=this.reqList[e]||{};for(var a in t)n[a]=t[a];if(this.reqList[e]=n,this.isReady){var A={id:e,url:n.url,status:n.status,method:n.method||"-",costTime:n.costTime>0?n.costTime+"ms":"-",header:n.header||null,getData:n.getData||null,postData:n.postData||null,response:null,actived:!!n.actived};switch(n.responseType){case"":case"text":if(g.isString(n.response))try{A.response=JSON.parse(n.response),A.response=JSON.stringify(A.response,null,1),A.response=g.htmlEncode(A.response)}catch(e){A.response=g.htmlEncode(n.response)}else void 0!==n.response&&(A.response=Object.prototype.toString.call(n.response));break;case"json":void 0!==n.response&&(A.response=JSON.stringify(n.response,null,1),A.response=g.htmlEncode(A.response));break;case"blob":case"document":case"arraybuffer":default:void 0!==n.response&&(A.response=Object.prototype.toString.call(n.response))}0==n.readyState||1==n.readyState?A.status="Pending":2==n.readyState||3==n.readyState?A.status="Loading":4==n.readyState||(A.status="Unknown");var C=o.default.render(r.default,A),I=this.domList[e];n.status>=400&&o.default.addClass(o.default.one(".vc-group-preview",C),"vc-table-row-error"),I?I.parentNode.replaceChild(C,I):o.default.one(".vc-log",this.$tabbox).insertAdjacentElement("beforeend",C),this.domList[e]=C,Object.keys(this.reqList).length!=i&&this.renderHeader(),this.isInBottom&&this.scrollToBottom()}}},{key:"mockAjax",value:function(){if(window.XMLHttpRequest){var e=this,t=window.XMLHttpRequest.prototype.open,i=window.XMLHttpRequest.prototype.send;e._open=t,e._send=i,window.XMLHttpRequest.prototype.open=function(){var i=this,o=[].slice.call(arguments),g=o[0],n=o[1],a=e.getUniqueID(),A=null;i._requestID=a,i._method=g,i._url=n;var r=i.onreadystatechange||function(){},C=function(){var t=e.reqList[a]||{};if(t.readyState=i.readyState,t.status=0,i.readyState>1&&(t.status=i.status),t.responseType=i.responseType,0==i.readyState)t.startTime||(t.startTime=+new Date);else if(1==i.readyState)t.startTime||(t.startTime=+new Date);else if(2==i.readyState){t.header={};for(var o=i.getAllResponseHeaders()||"",g=o.split("\n"),n=0;n<g.length;n++){var C=g[n];if(C){var I=C.split(": "),s=I[0],l=I.slice(1).join(": ");t.header[s]=l}}}else 3==i.readyState||(4==i.readyState?(clearInterval(A),t.endTime=+new Date,t.costTime=t.endTime-(t.startTime||t.endTime),t.response=i.response):clearInterval(A));return i._noVConsole||e.updateRequest(a,t),r.apply(i,arguments)};i.onreadystatechange=C;var I=-1;return A=setInterval((function(){I!=i.readyState&&(I=i.readyState,C.call(i))}),10),t.apply(i,o)},window.XMLHttpRequest.prototype.send=function(){var t=this,o=[].slice.call(arguments),n=o[0],a=e.reqList[t._requestID]||{};a.method=t._method.toUpperCase();var A=t._url.split("?");if(a.url=A.shift(),A.length>0){a.getData={},A=(A=A.join("?")).split("&");var r=!0,C=!1,I=void 0;try{for(var s,l=A[Symbol.iterator]();!(r=(s=l.next()).done);r=!0){var c=s.value;c=c.split("="),a.getData[c[0]]=decodeURIComponent(c[1])}}catch(e){C=!0,I=e}finally{try{r||null==l.return||l.return()}finally{if(C)throw I}}}if("POST"==a.method)if(g.isString(n)){var u=n.split("&");a.postData={};var d=!0,h=!1,p=void 0;try{for(var f,m=u[Symbol.iterator]();!(d=(f=m.next()).done);d=!0){var v=f.value;v=v.split("="),a.postData[v[0]]=v[1]}}catch(e){h=!0,p=e}finally{try{d||null==m.return||m.return()}finally{if(h)throw p}}}else g.isPlainObject(n)&&(a.postData=n);return t._noVConsole||e.updateRequest(t._requestID,a),i.apply(t,o)}}}},{key:"getUniqueID",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}}])&&s(i.prototype,C),t}();i.default=d,e.exports=t.default})?o.apply(t,g):o)||(e.exports=n)},function(e,t){e.exports='<div class="vc-table">\n <div class="vc-log"></div>\n</div>'},function(e,t){e.exports='<dl class="vc-table-row">\n <dd class="vc-table-col vc-table-col-4">Name {{if (count > 0)}}({{count}}){{/if}}</dd>\n <dd class="vc-table-col">Method</dd>\n <dd class="vc-table-col">Status</dd>\n <dd class="vc-table-col">Time</dd>\n</dl>'},function(e,t){e.exports='<div class="vc-group {{actived ? \'vc-actived\' : \'\'}}">\n <dl class="vc-table-row vc-group-preview" data-reqid="{{id}}">\n <dd class="vc-table-col vc-table-col-4">{{url}}</dd>\n <dd class="vc-table-col">{{method}}</dd>\n <dd class="vc-table-col">{{status}}</dd>\n <dd class="vc-table-col">{{costTime}}</dd>\n </dl>\n <div class="vc-group-detail">\n {{if (header !== null)}}\n <div>\n <dl class="vc-table-row vc-left-border">\n <dt class="vc-table-col vc-table-col-title">Headers</dt>\n </dl>\n {{for (var key in header)}}\n <div class="vc-table-row vc-left-border vc-small">\n <div class="vc-table-col vc-table-col-2">{{key}}</div>\n <div class="vc-table-col vc-table-col-4 vc-max-height-line">{{header[key]}}</div>\n </div>\n {{/for}}\n </div>\n {{/if}}\n {{if (getData !== null)}}\n <div>\n <dl class="vc-table-row vc-left-border">\n <dt class="vc-table-col vc-table-col-title">Query String Parameters</dt>\n </dl>\n {{for (var key in getData)}}\n <div class="vc-table-row vc-left-border vc-small">\n <div class="vc-table-col vc-table-col-2">{{key}}</div>\n <div class="vc-table-col vc-table-col-4 vc-max-height-line">{{getData[key]}}</div>\n </div>\n {{/for}}\n </div>\n {{/if}}\n {{if (postData !== null)}}\n <div>\n <dl class="vc-table-row vc-left-border">\n <dt class="vc-table-col vc-table-col-title">Form Data</dt>\n </dl>\n {{for (var key in postData)}}\n <div class="vc-table-row vc-left-border vc-small">\n <div class="vc-table-col vc-table-col-2">{{key}}</div>\n <div class="vc-table-col vc-table-col-4 vc-max-height-line">{{postData[key]}}</div>\n </div>\n {{/for}}\n </div>\n {{/if}}\n <div>\n <dl class="vc-table-row vc-left-border">\n <dt class="vc-table-col vc-table-col-title">Response</dt>\n </dl>\n <div class="vc-table-row vc-left-border vc-small">\n <pre class="vc-table-col vc-max-height vc-min-height">{{response || \'\'}}</pre>\n </div>\n </div>\n </div>\n</div>'},function(e,t,i){var o,g,n;g=[t,i(31),i(2),i(33),i(34),i(0),i(1)],void 0===(n="function"==typeof(o=function(i,o,g,n,a,A,r){"use strict";function C(e){return e&&e.__esModule?e:{default:e}}function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,g=C(g),n=C(n),a=C(a),A=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,i):{};o.get||o.set?Object.defineProperty(t,i,o):t[i]=e[i]}return t.default=e,t}(A),r=C(r);var d=function(e){function t(){var e,i,o,g;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,A=new Array(a),C=0;C<a;C++)A[C]=arguments[C];o=this,i=!(g=(e=l(t)).call.apply(e,[this].concat(A)))||"object"!==I(g)&&"function"!=typeof g?c(o):g;var s=c(i);s.isInited=!1,s.node={},s.$tabbox=r.default.render(n.default,{}),s.nodes=[],s.activedElem={};var u=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;return s.observer=new u((function(e){for(var t=0;t<e.length;t++){var i=e[t];s._isInVConsole(i.target)||s.onMutation(i)}})),i}var i,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,g.default),i=t,(o=[{key:"onRenderTab",value:function(e){e(this.$tabbox)}},{key:"onAddTool",value:function(e){var t=this;e([{name:"Expand",global:!1,onClick:function(e){if(t.activedElem)if(r.default.hasClass(t.activedElem,"vc-toggle"))for(var i=0;i<t.activedElem.childNodes.length;i++){var o=t.activedElem.childNodes[i];if(r.default.hasClass(o,"vcelm-l")&&!r.default.hasClass(o,"vcelm-noc")&&!r.default.hasClass(o,"vc-toggle")){r.default.one(".vcelm-node",o).click();break}}else r.default.one(".vcelm-node",t.activedElem).click()}},{name:"Collapse",global:!1,onClick:function(e){t.activedElem&&(r.default.hasClass(t.activedElem,"vc-toggle")?r.default.one(".vcelm-node",t.activedElem).click():t.activedElem.parentNode&&r.default.hasClass(t.activedElem.parentNode,"vcelm-l")&&r.default.one(".vcelm-node",t.activedElem.parentNode).click())}}])}},{key:"onShow",value:function(){if(!this.isInited){this.isInited=!0,this.node=this.getNode(document.documentElement);var e=this.renderView(this.node,r.default.one(".vc-log",this.$tabbox)),t=r.default.one(".vcelm-node",e);t&&t.click(),this.observer.observe(document.documentElement,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}}},{key:"onRemove",value:function(){this.observer.disconnect()}},{key:"onMutation",value:function(e){switch(e.type){case"childList":e.removedNodes.length>0&&this.onChildRemove(e),e.addedNodes.length>0&&this.onChildAdd(e);break;case"attributes":this.onAttributesChange(e);break;case"characterData":this.onCharacterDataChange(e)}}},{key:"onChildRemove",value:function(e){var t=e.target;if(t.__vconsole_node){for(var i=0;i<e.removedNodes.length;i++){var o=e.removedNodes[i].__vconsole_node;o&&o.view&&o.view.parentNode.removeChild(o.view)}this.getNode(t)}}},{key:"onChildAdd",value:function(e){var t=e.target,i=t.__vconsole_node;if(i){this.getNode(t),i.view&&r.default.removeClass(i.view,"vcelm-noc");for(var o=0;o<e.addedNodes.length;o++){var g=e.addedNodes[o].__vconsole_node;if(g)if(null!==e.nextSibling){var n=e.nextSibling.__vconsole_node;n.view&&this.renderView(g,n.view,"insertBefore")}else i.view&&(i.view.lastChild?this.renderView(g,i.view.lastChild,"insertBefore"):this.renderView(g,i.view))}}}},{key:"onAttributesChange",value:function(e){var t=e.target.__vconsole_node;t&&(t=this.getNode(e.target)).view&&this.renderView(t,t.view,!0)}},{key:"onCharacterDataChange",value:function(e){var t=e.target.__vconsole_node;t&&(t=this.getNode(e.target)).view&&this.renderView(t,t.view,!0)}},{key:"renderView",value:function(e,t,i){var o=this,g=new a.default(e).get();switch(e.view=g,r.default.delegate(g,"click",".vcelm-node",(function(t){t.stopPropagation();var i=this.parentNode;if(!r.default.hasClass(i,"vcelm-noc")){o.activedElem=i,r.default.hasClass(i,"vc-toggle")?r.default.removeClass(i,"vc-toggle"):r.default.addClass(i,"vc-toggle");for(var g=-1,n=0;n<i.children.length;n++){var a=i.children[n];r.default.hasClass(a,"vcelm-l")&&(g++,a.children.length>0||(e.childNodes[g]?o.renderView(e.childNodes[g],a,"replace"):a.style.display="none"))}}})),i){case"replace":t.parentNode.replaceChild(g,t);break;case"insertBefore":t.parentNode.insertBefore(g,t);break;default:t.appendChild(g)}return g}},{key:"getNode",value:function(e){if(!this._isIgnoredElement(e)){var t=e.__vconsole_node||{};if(t.nodeType=e.nodeType,t.nodeName=e.nodeName,t.tagName=e.tagName||"",t.textContent="",t.nodeType!=e.TEXT_NODE&&t.nodeType!=e.DOCUMENT_TYPE_NODE||(t.textContent=e.textContent),t.id=e.id||"",t.className=e.className||"",t.attributes=[],e.hasAttributes&&e.hasAttributes())for(var i=0;i<e.attributes.length;i++)t.attributes.push({name:e.attributes[i].name,value:e.attributes[i].value||""});if(t.childNodes=[],e.childNodes.length>0)for(var o=0;o<e.childNodes.length;o++){var g=this.getNode(e.childNodes[o]);g&&t.childNodes.push(g)}return e.__vconsole_node=t,t}}},{key:"_isIgnoredElement",value:function(e){return e.nodeType==e.TEXT_NODE&&""==e.textContent.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$|\n+/g,"")}},{key:"_isInVConsole",value:function(e){for(var t=e;null!=t;){if("__vconsole"==t.id)return!0;t=t.parentNode||void 0}return!1}}])&&s(i.prototype,o),t}();i.default=d,e.exports=t.default})?o.apply(t,g):o)||(e.exports=n)},function(e,t,i){var o=i(32);"string"==typeof o&&(o=[[e.i,o,""]]);i(5)(o,{insert:"head",singleton:!1}),o.locals&&(e.exports=o.locals)},function(e,t,i){(e.exports=i(4)(!1)).push([e.i,'/* color */\n.vcelm-node {\n color: #183691;\n}\n.vcelm-k {\n color: #0086B3;\n}\n.vcelm-v {\n color: #905;\n}\n/* layout */\n.vcelm-l {\n padding-left: 8px;\n position: relative;\n word-wrap: break-word;\n line-height: 1;\n}\n/*.vcelm-l.vcelm-noc {\n padding-left: 0;\n}*/\n.vcelm-l.vc-toggle > .vcelm-node {\n display: block;\n}\n.vcelm-l .vcelm-node:active {\n background-color: rgba(0, 0, 0, 0.15);\n}\n.vcelm-l.vcelm-noc .vcelm-node:active {\n background-color: transparent;\n}\n.vcelm-t {\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n/* level */\n.vcelm-l .vcelm-l {\n display: none;\n}\n.vcelm-l.vc-toggle > .vcelm-l {\n margin-left: 4px;\n display: block;\n}\n/* arrow */\n.vcelm-l:before {\n content: "";\n display: block;\n position: absolute;\n top: 6px;\n left: 3px;\n width: 0;\n height: 0;\n border: transparent solid 3px;\n border-left-color: #000;\n}\n.vcelm-l.vc-toggle:before {\n display: block;\n top: 6px;\n left: 0;\n border-top-color: #000;\n border-left-color: transparent;\n}\n.vcelm-l.vcelm-noc:before {\n display: none;\n}\n',""])},function(e,t){e.exports='<div>\n <div class="vc-log"></div>\n</div>'},function(e,t,i){var o,g,n;g=[t,i(35),i(36),i(0),i(1)],void 0===(n="function"==typeof(o=function(i,o,g,n,a){"use strict";function A(e){return e&&e.__esModule?e:{default:e}}function r(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,o=A(o),g=A(g),n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,i):{};o.get||o.set?Object.defineProperty(t,i,o):t[i]=e[i]}return t.default=e,t}(n),a=A(a);var C=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.node=t,this.view=this._create(this.node)}var t,i;return t=e,(i=[{key:"get",value:function(){return this.view}},{key:"_create",value:function(e,t){var i=document.createElement("DIV");switch(a.default.addClass(i,"vcelm-l"),e.nodeType){case i.ELEMENT_NODE:this._createElementNode(e,i);break;case i.TEXT_NODE:this._createTextNode(e,i);break;case i.COMMENT_NODE:case i.DOCUMENT_NODE:case i.DOCUMENT_TYPE_NODE:case i.DOCUMENT_FRAGMENT_NODE:}return i}},{key:"_createTextNode",value:function(e,t){a.default.addClass(t,"vcelm-t vcelm-noc"),e.textContent&&t.appendChild(function(e){return document.createTextNode(e)}(e.textContent.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")))}},{key:"_createElementNode",value:function(e,t){var i,n=(i=(i=e.tagName)?i.toLowerCase():"",["br","hr","img","input","link","meta"].indexOf(i)>-1),A=n;0==e.childNodes.length&&(A=!0);var r=a.default.render(o.default,{node:e}),C=a.default.render(g.default,{node:e});if(A)a.default.addClass(t,"vcelm-noc"),t.appendChild(r),n||t.appendChild(C);else{t.appendChild(r);for(var I=0;I<e.childNodes.length;I++){var s=document.createElement("DIV");a.default.addClass(s,"vcelm-l"),t.appendChild(s)}n||t.appendChild(C)}}}])&&r(t.prototype,i),e}();i.default=C,e.exports=t.default})?o.apply(t,g):o)||(e.exports=n)},function(e,t){e.exports='<span class="vcelm-node"><{{node.tagName.toLowerCase()}}{{if (node.className || node.attributes.length)}}\n <i class="vcelm-k">\n {{for (var i = 0; i < node.attributes.length; i++)}}\n {{if (node.attributes[i].value !== \'\')}}\n {{node.attributes[i].name}}="<i class="vcelm-v">{{node.attributes[i].value}}</i>"{{else}}\n {{node.attributes[i].name}}{{/if}}{{/for}}</i>{{/if}}></span>'},function(e,t){e.exports='<span class="vcelm-node"></{{node.tagName.toLowerCase()}}></span>'},function(e,t,i){var o,g,n;g=[t,i(2),i(38),i(39),i(0),i(1)],void 0===(n="function"==typeof(o=function(i,o,g,n,a,A){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return!t||"object"!==C(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,o=r(o),g=r(g),n=r(n),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,i):{};o.get||o.set?Object.defineProperty(t,i,o):t[i]=e[i]}return t.default=e,t}(a),A=r(A);var u=function(e){function t(){var e,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,n=new Array(o),a=0;a<o;a++)n[a]=arguments[a];return(i=s(this,(e=l(t)).call.apply(e,[this].concat(n)))).$tabbox=A.default.render(g.default,{}),i.currentType="",i.typeNameMap={cookies:"Cookies",localstorage:"LocalStorage",sessionstorage:"SessionStorage"},i}var i,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(t,o.default),i=t,(r=[{key:"onRenderTab",value:function(e){e(this.$tabbox)}},{key:"onAddTopBar",value:function(e){for(var t=this,i=["Cookies","LocalStorage","SessionStorage"],o=[],g=0;g<i.length;g++)o.push({name:i[g],data:{type:i[g].toLowerCase()},className:"",onClick:function(){if(A.default.hasClass(this,"vc-actived"))return!1;t.currentType=this.dataset.type,t.renderStorage()}});o[0].className="vc-actived",e(o)}},{key:"onAddTool",value:function(e){var t=this;e([{name:"Refresh",global:!1,onClick:function(e){t.renderStorage()}},{name:"Clear",global:!1,onClick:function(e){t.clearLog()}}])}},{key:"onReady",value:function(){}},{key:"onShow",value:function(){""==this.currentType&&(this.currentType="cookies",this.renderStorage())}},{key:"clearLog",value:function(){if(this.currentType&&window.confirm&&!window.confirm("Remove all "+this.typeNameMap[this.currentType]+"?"))return!1;switch(this.currentType){case"cookies":this.clearCookieList();break;case"localstorage":this.clearLocalStorageList();break;case"sessionstorage":this.clearSessionStorageList();break;default:return!1}this.renderStorage()}},{key:"renderStorage",value:function(){var e=[];switch(this.currentType){case"cookies":e=this.getCookieList();break;case"localstorage":e=this.getLocalStorageList();break;case"sessionstorage":e=this.getSessionStorageList();break;default:return!1}var t=A.default.one(".vc-log",this.$tabbox);if(0==e.length)t.innerHTML="";else{for(var i=0;i<e.length;i++)e[i].name=a.htmlEncode(e[i].name),e[i].value=a.htmlEncode(e[i].value);t.innerHTML=A.default.render(n.default,{list:e},!0)}}},{key:"getCookieList",value:function(){if(!document.cookie||!navigator.cookieEnabled)return[];for(var e=[],t=document.cookie.split(";"),i=0;i<t.length;i++){var o=t[i].split("="),g=o.shift().replace(/^ /,""),n=o.join("=");try{g=decodeURIComponent(g),n=decodeURIComponent(n)}catch(e){console.log(e,g,n)}e.push({name:g,value:n})}return e}},{key:"getLocalStorageList",value:function(){if(!window.localStorage)return[];try{for(var e=[],t=0;t<localStorage.length;t++){var i=localStorage.key(t),o=localStorage.getItem(i);e.push({name:i,value:o})}return e}catch(e){return[]}}},{key:"getSessionStorageList",value:function(){if(!window.sessionStorage)return[];try{for(var e=[],t=0;t<sessionStorage.length;t++){var i=sessionStorage.key(t),o=sessionStorage.getItem(i);e.push({name:i,value:o})}return e}catch(e){return[]}}},{key:"clearCookieList",value:function(){if(document.cookie&&navigator.cookieEnabled){for(var e=window.location.hostname,t=this.getCookieList(),i=0;i<t.length;i++){var o=t[i].name;document.cookie="".concat(o,"=;expires=Thu, 01 Jan 1970 00:00:00 GMT"),document.cookie="".concat(o,"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/"),document.cookie="".concat(o,"=;expires=Thu, 01 Jan 1970 00:00:00 GMT;path=/;domain=.").concat(e.split(".").slice(-2).join("."))}this.renderStorage()}}},{key:"clearLocalStorageList",value:function(){if(window.localStorage)try{localStorage.clear(),this.renderStorage()}catch(e){alert("localStorage.clear() fail.")}}},{key:"clearSessionStorageList",value:function(){if(window.sessionStorage)try{sessionStorage.clear(),this.renderStorage()}catch(e){alert("sessionStorage.clear() fail.")}}}])&&I(i.prototype,r),t}();i.default=u,e.exports=t.default})?o.apply(t,g):o)||(e.exports=n)},function(e,t){e.exports='<div class="vc-table">\n <div class="vc-log"></div>\n</div>'},function(e,t){e.exports='<div>\n <dl class="vc-table-row">\n <dd class="vc-table-col">Name</dd>\n <dd class="vc-table-col vc-table-col-2">Value</dd>\n </dl>\n {{for (var i = 0; i < list.length; i++)}}\n <dl class="vc-table-row">\n <dd class="vc-table-col">{{list[i].name}}</dd>\n <dd class="vc-table-col vc-table-col-2">{{list[i].value}}</dd>\n </dl>\n {{/for}}\n</div>'}])}))},function(e,t,i){var o=i(229),g=i(233);e.exports={encode:o,decode:g}},function(e,t,i){"use strict";i(39),i(254),i(59),i(53),i(29),i(60);var o=i(142),g=(i(1),i(36)),n=i(102),a=i(0),A=i(2),r=i(7),C=i(6),I=i(4),s=i(21),l=i(43),c=i(77),u=i(50),d=i(3),h=function(){this.scene=null,this.camera=null,this.light=null,this.renderer=null,this.effects=o.a,this.animateCallback=null,this.composer=null,this.qualityManager=null,this.updateClock=new THREE.Clock,this.components=[],this.updateListeners=[],this.resizeListeners=[],this.forceUpdateSize=!1,this.started=!1,this.textures={},this.suspendedObjects=[],this.vrEnabled=!1};window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame,(h.prototype=Object.create(EventEmitter.prototype)).createScene=function(e){this.camera=new THREE.PerspectiveCamera,this.camera.layers.enable(g.a.PANOMARKERS),this.camera.layers.enable(g.a.RETICULE),this.camera.layers.enable(g.a.TAG),this.camera.layers.enable(g.a.BothAtMainAndSubScreen),this.scene=new THREE.Scene,this.light=new THREE.AmbientLight(16777215),this.scene.add(this.light);var t=new THREE.RawShaderMaterial({fragmentShader:s.a.skysphere.fragmentShader,vertexShader:s.a.skysphere.vertexShader,uniforms:THREE.UniformsUtils.clone(s.a.skysphere.uniforms),side:THREE.BackSide,name:"skysphereBG"});this.scene.skyboxBG=new THREE.Mesh(new THREE.SphereBufferGeometry(2500,20,5),t),this.scene.add(this.scene.skyboxBG)},h.prototype.addComponent=function(e){this.components.push(e),e.update&&this.updateListeners.push(e),e.setSize&&(this.resizeListeners.push(e),this.forceUpdateSize=!0)},h.prototype.removeComponent=function(e){var t=function(t){return t!==e};this.components=this.components.filter(t),this.updateListeners=this.updateListeners.filter(t),this.resizeListeners=this.resizeListeners.filter(t)},h.prototype.start=function(e){if(this.started)throw new c.a("Can't start SceneRenderer, already started");this.createContext(e),isMobile&&this.boluoVrInit(),this.initComposer(),this.started=!0,(this.animate=this.animate.bind(this))(),r.a.urlHasValue("fps")&&setTimeout((function(){detectFPS(1)}),3e3)},h.prototype.createContext=function(e){try{this.renderer=new THREE.WebGLRenderer({antialias:A.a.antialias}),this.renderer.autoClear=!0,this.renderer.setPixelRatio(window.devicePixelRatio?window.devicePixelRatio:1),this.renderer.setSize($("#player").width(),$("#player").height(),!1),this.emit(n.a.ContextCreated)}catch(e){$("#player").html("<div style='width:100%;top: 40%;height:30px;position:absolute;font-size:30px;'>webgl出错。请重启浏览器。</div>"),console.error("Unable to create a WebGL rendering context")}e.appendChild(this.renderer.domElement)},h.prototype.initComposer=function(){this.composer=new THREE.EffectComposer(this.renderer),this.composer.addPass(new THREE.RenderPass(this.scene,this.camera)),this.composer.addPass(this.effects.hblurPass),this.composer.addPass(this.effects.vblurPass)},h.prototype.setSize=function(e,t,i){this.renderWidth=e,this.renderHeight=t,this.effects.aspect=e/t,this.renderer.setSize(e,t,!1,i),this.composer.setSize(e,t);for(var o=0;o<this.resizeListeners.length;o++)this.resizeListeners[o].setSize(e,t);edit||null==a.a.player.cad||(a.a.player.cad.renderer.init(),a.a.player.cad.renderer.render(),a.a.player.cameraControls.controls.floorplan.updateFloorCad())},window.detectFPS=function(e){if(e){if(window.FPS=window.AFPS=0,window.FPSCountTime=0,window.FPSWatchBox)window.FPSWatchBox.removeClass("hide");else{var t=$('<div style="position:fixed;right:0;top:0;width:100px; background: #ffffffbf;font-size: 18px;z-index: 9999;color: #000;pointer-events: none;"></div>');$("body").append(t),window.FPSWatchBox=t}window.FPSCounter=setInterval((function(){window.AFPS=(window.AFPS*window.FPSCountTime+window.FPS)/++window.FPSCountTime,window.FPSWatchBox.html("FPS:"+window.FPS+"<br>平均:"+parseInt(100*window.AFPS)/100),window.FPS=0}),1e3)}else window.FPSWatchBox.addClass("hide"),clearInterval(window.FPSCounter),window.FPSCounter=null},h.prototype.render=function(){this.effects.currentBlur>0?this.composer.render():this.renderer.render(this.scene,this.camera),window.FPSCounter&&window.FPS++,edit&&"wallDesign"==a.a.editor.atPanel&&a.a.editor.mainDesign.useCssRender&&a.a.editor.mainDesign.renderCssElem()};var p,f,m,v=function(e,t){"reset"==e?window.vrPermission={}:(window.vrPermission[e]=t,2!=Object.keys(window.vrPermission).length||"granted"==window.vrPermission.deviceMotion&&"granted"==window.vrPermission.deviceOrientation||a.a.gui.showAskBox(d.a.get("运动和方向访问失败"),d.a.get("这会导致画面视角一直固定。您需要完全关闭当前应用,然后再次打开,并允许访问运动与方向。")))};h.prototype.boluoVrInit=function(){if(this.renderer&&!this.newRenderer&&isMobile&&(!a.a.guider.currentType||-1!=this.updateListeners.indexOf(a.a.player))){this.isHuawei5X=r.a.detectHUAWEI5X(),this.oldRenderer=this.renderer,this.newRenderer=new this.vrRenderer(this.renderer,this,this.camera);var e=this,t=!1,i=!1;Object.defineProperty(this,"vrEnabled",{get:function(){return t},set:function(o){if((o=!!o)&&e.vrSplitScreen?e.renderer=e.newRenderer:e.renderer=e.oldRenderer,e.cursor.visible=o,e.setSize(window.innerWidth,window.innerHeight),t=o,a.a.gui.showVrHorizonTip(t&&!i),o)setTimeout((function(){if(console.log("orientEnable"+window.orientEnable),e.vrEnabled&&!window.orientEnable)if(r.a.detectIOS()){var t=r.a.iosVersion();if(12==t.major&&t.minor>=2)r.a.detectSafari()?a.a.gui.showAskBox(d.a.get("浏览器未能检测到转动"),d.a.get("为完整体验VR效果,请打开 “设置” > “Safari” > “隐私和安全” 下的 “运动和方向访问” 开关,然后刷新此页面。")):a.a.gui.showAskBox(d.a.get("浏览器未能检测到转动"),d.a.get("请在手机或浏览器设置中开启了运动和方向访问等设置,然后刷新此页面。"));else if(t.major>=13){var i=window.vrPermission&&("granted"!=window.vrPermission.deviceMotion||"granted"!=window.vrPermission.deviceOrientation);i||a.a.gui.showInfo(d.a.get("请点击“允许”")),setTimeout((function(){e.vrEnabled&&!window.orientEnable&&(v("reset"),DeviceMotionEvent&&DeviceMotionEvent.requestPermission&&"function"==typeof DeviceMotionEvent.requestPermission?(console.log("开始获取权限1"),DeviceMotionEvent.requestPermission().then((function(e){console.log("permissionState1: "+e),v("deviceMotion",e)})).catch((function(e){v("deviceMotion",!1),console.log(e)}))):(console.log("DeviceMotionEvent undefined"),v("deviceMotion",!1)),DeviceOrientationEvent&&DeviceOrientationEvent.requestPermission&&"function"==typeof DeviceOrientationEvent.requestPermission?(console.log("开始获取权限2"),DeviceOrientationEvent.requestPermission().then((function(e){console.log("permissionState2: "+e),v("deviceOrientation",e)})).catch((function(e){v("deviceOrientation",!1),console.log(e)}))):(console.log("DeviceOrientationEvent undefined"),v("deviceOrientation",!1)))}),i?0:150)}else console.log("陀螺仪未能启用 ios "+t.major+"."+t.minor)}else a.a.gui.showAskBox(d.a.get("浏览器未能检测到转动"),d.a.get("请在手机或浏览器设置中开启了运动和方向访问等设置,然后刷新此页面。"))}),200);else{var g=a.a.player.position,n=(new THREE.Quaternion).copy(a.a.player.camera.quaternion),A=new THREE.Vector3(0,0,-1).applyQuaternion(n).add(g);A.x==g.x&&A.z==g.z?I.a.info("看向正地面时无法lookAt,无法更新camera转向,直接退出vr"):a.a.player.cameraControls.activeControl.lookAt(A)}a.a.player.model.updateVrMarker(o)}}),Object.defineProperty(this,"vrSplitScreen",{get:function(){return i},set:function(t){i!=(t=!!t)&&(i=t,e.vrEnabled&&(e.renderer=t?e.newRenderer:e.oldRenderer,e.setSize(window.innerWidth,window.innerHeight),a.a.gui.showVrHorizonTip(e.vrEnabled&&!e.vrSplitScreen)))}}),90!=window.orientation&&270!=window.orientation||(this.vrSplitScreen=!0),this.createCursor(.5,!0,1,16777215,0);var o={setSize:function(t,i){e.camera.aspect=t/i}};this.resizeListeners.push(o),this.vrLoadingInit()}},h.prototype.vrLoadingInit=function(){var e=new(e=function(e){var t=this,i=new THREE.RingGeometry(1.3,1.5,32,32,0,1.2*Math.PI),o=new THREE.MeshBasicMaterial({color:4967932,side:THREE.DoubleSide}),g=new THREE.Mesh(i,o);this.mesh=g,g.position.z=-2,g.scale.set(.08,.08,.08),g.visible=!1,e.add(g),t.enabled=!1,this.update=function(e){1==t.enabled&&(g.rotation.z+=15*e)}})(this.camera);window.Loading=e,this.updateListeners.push(e)},h.prototype.createCursor=function(e,t,i,o,g){var n,a=new THREE.SpriteMaterial({opacity:i,color:o,transparent:t,map:this.boluoGetTexture(C.a.imgRoot+"vrCursor.png"),needsUpdate:!0,side:THREE.DoubleSide});a.map.offset=new THREE.Vector2(1/17*g,0),a.map.repeat=new THREE.Vector2(1/17,1),a.depthTest=!1,a.blending=THREE.AdditiveBlending,(n=new THREE.Sprite(a)).scale.set(e,e,e),n.position.z=-5,n.visible=!1,n.name="cursor",n.renderOrder=u.a.panoMarker,this.camera.add(n),this.scene.add(this.camera),this.cursor=n;var A=new this.CursorAnimation(this.scene,n,this.camera);this.cursor.triggerTargetEvent=A.triggerTargetEvent,this.updateListeners.push(A)},window.orientEnable=0,h.prototype.CursorAnimation=function(e,t,i){this.cursor=t,this.raycaster=new THREE.Raycaster,this.targetEventObj={},this.type=1,this.tweenFlag=!0;var o=this;this.target=i,this.euler=new THREE.Euler,this.q0=new THREE.Quaternion,this.q1=new THREE.Quaternion(-Math.sqrt(.5),0,0,Math.sqrt(.5)),this.zee=new THREE.Vector3(0,0,1),this.alpha=-1e3,this.beta=-1e3,this.gamma=-1e3,this.orient=THREE.Math.degToRad(window.orientation||0),window.addEventListener("orientationchange",(function(){o.orient=THREE.Math.degToRad(window.orientation||0)})),window.addEventListener("deviceorientation",(function(e){if(a.a.sceneRenderer.vrEnabled||!window.orientEnable){window.orientEnable||(window.orientEnable=1);var t=THREE.Math.degToRad(e.alpha),i=THREE.Math.degToRad(e.beta),g=THREE.Math.degToRad(e.gamma);if(this.isHuawei5X?(-1e3===o.alpha&&(o.alpha=t),-1e3===o.beta&&(o.beta=i),-1e3===o.gamma&&(o.gamma=g),Math.abs(t-o.alpha)>.06&&(o.alpha=t),Math.abs(i-o.beta)>.006&&(o.beta=i),Math.abs(g-o.gamma)>.006&&(o.gamma=g)):(o.alpha=t,o.beta=i,o.gamma=g),h.vrDebug){$("#info-device-orientation").css("display","block");var n="";n+="alpha=("+o.alpha+")<BR/>",n+="beta=("+o.beta+")<BR/>",n+="gamma="+o.gamma+"<BR/>",document.getElementById("info-device-orientation").innerHTML=n}}})),this.setObjectQuaternion=function(e,t,i,g,n){o.euler.set(i,t,-g,"YXZ"),e.setFromEuler(o.euler),e.multiply(o.q1),e.multiply(o.q0.setFromAxisAngle(o.zee,-n))},parent!==window&&window.addEventListener("message",(function(e){var t=JSON.parse(e.data),i=-1!==window.navigator.userAgent.indexOf("KIW-TL00H");t&&t.alpha&&t.beta&&t.gamma&&function(e){var i=THREE.Math.degToRad(t.alpha),g=THREE.Math.degToRad(t.beta),n=THREE.Math.degToRad(t.gamma);e?(-1e3===o.alpha&&(o.alpha=i),-1e3===o.beta&&(o.beta=g),-1e3===o.gamma&&(o.gamma=n),Math.abs(i-o.alpha)>.06&&(o.alpha=i),Math.abs(g-o.beta)>.006&&(o.beta=g),Math.abs(n-o.gamma)>.006&&(o.gamma=n)):(o.alpha=i,o.beta=g,o.gamma=n)}(i)})),this.update=function(e){TWEEN.update(),window.ifTest&&a.a.sceneRenderer.vrEnabled?this.triggerTargetEvent():a.a.sceneRenderer.vrEnabled&&(this.setObjectQuaternion(a.a.player.cameraControls.activeControl.camera.quaternion,this.alpha,this.beta,this.gamma,this.orient),this.triggerTargetEvent())},this.triggerTargetEvent=function(){var e=this.choseObj(),t=e?e.object:void 0;this.targetEventObj.currentObj=t,t!==this.targetEventObj.lastObj&&(t&&this.autoCursorPosition(e),1===this.type?(this.cursorAnimate&&this.cursorAnimate.stop(),t&&t.enabled&&this.startAnimate(function(){this.clickCallback(t)}.bind(this))):this.type,this.targetEventObj.lastObj=t)},this.choseObj=function(){this.raycaster.setFromCamera({x:0,y:0},i);var e=(this.raycaster.ray,a.a.player.model.vrMarkers),t=this.raycaster.intersectObjects(e);if(t.length>0)return t[0]},this.clickCallback=function(e){this.runTHREEAction(e,"onclick")},this.runTHREEAction=function(e,t){switch(t){case"onclick":e._listeners&&e._listeners.click&&e._listeners.click.forEach((function(e){e()}));break;case"onhover":e._listeners&&e._listeners.hover&&e._listeners.hover.forEach((function(e){e()}));break;case"onout":e._listeners&&e._listeners.out&&e._listeners.out.forEach((function(e){e()}))}},this.startAnimate=function(e){this.tweenFlag&&this.initAnimation(e)},this.initAnimation=function(e){var t=this,i=this.cursor.material.map.offset;t.tweenFlag=!1,this.cursorAnimate=new TWEEN.Tween(i).to({x:1},1e3).onStart((function(){t.tweenFlag=!1})).onStop((function(){t.tweenFlag=!0,this.x=0,i.x=0})).onUpdate((function(){})).onComplete((function(){e(),i.x=0,setTimeout((function(){t.tweenFlag=!0}),1500)})),this.cursorAnimate.easing((function(e){return Math.floor(17*e)/17})),this.cursorAnimate.start()},this.autoCursorPosition=function(e){var t=Math.abs(e.distance-10);this.cursor.position.z=-t,t/=10,this.cursor.scale.set(t,t,t)}},h.prototype.vrRenderer=function(e,t,i){var o=new t.vrCamera(i);o.bananaAspect=.8,this.width,this.height;t=this;this.setSize=function(i,o){e.setSize.call(this,i,o,!1),t.width=i,t.height=o},this.render=function(t,i,g,n){var a,A;if(i.__RESS__SKIP__STEREO__)return e.render(t,i,g,n);if("PerspectiveCamera"===i.type)a=o.cameraL,A=o.cameraR,t.updateMatrixWorld(),null===i.parent&&i.updateMatrixWorld(),o.vrCameraUpdate(i);else{if("OrthographicCamera"!==i.type)return DEBUG&&console.error("Unsupported renderer: ",i.type);a=A=i}e.setScissorTest(!0),e.setScissor(0,0,this.width/2,this.height),e.setViewport(0,0,this.width/2,this.height),e.render.call(this,t,a,g,n),e.setScissor(this.width/2,0,this.width/2,this.height),e.setViewport(this.width/2,0,this.width/2,this.height),e.render.call(this,t,A,g,n),e.setScissorTest(!1)},this.__proto__={__proto__:e}},h.prototype.vrCamera=function(e){this.type="StereoCamera",this._aspect=1,this._overlap=.064,this.cameraL=new THREE.PerspectiveCamera,this.cameraL.layers.enable(1),this.cameraL.near=.01,this.cameraL.matrixAutoUpdate=!1,this.cameraR=new THREE.PerspectiveCamera,this.cameraR.layers.enable(2),this.cameraR.near=.01,this.cameraR.matrixAutoUpdate=!1,this.eyeRight=new THREE.Matrix4,this.eyeLeft=new THREE.Matrix4,this.vrCameraNeedsUpdate=!0,Object.defineProperty(this,"bananaAspect",{get:function(){return this._aspect},set:function(e){this._aspect!==e&&(this.vrCameraNeedsUpdate=!0),this._aspect=e}}),Object.defineProperty(this,"overlap",{get:function(){return this._overlap},set:function(e){this._overlap!==e&&(this.vrCameraNeedsUpdate=!0),this._overlap=e}}),this.vrCameraUpdate=function(e){if(this.vrCameraNeedsUpdate=this.vrCameraNeedsUpdate||this.bananaFov!==e.fov||this.bananaReal_aspect!==e.aspect*this.bananaAspect||this.bananaNear!==e.near||this.bananaFar!==e.far,this.vrCameraNeedsUpdate){this.vrCameraNeedsUpdate=!1,console.debug("vrCameraUpdate"),this.bananaFocus=e.focus,this.bananaFov=e.fov,this.bananaReal_aspect=e.aspect*this.bananaAspect,this.bananaNear=e.near,this.bananaFar=e.far,console.debug(e.aspect),this.bananaFocus=10;var t,i,o=e.projectionMatrix.clone(),g=this.overlap/2,n=g*this.bananaNear/this.bananaFocus,a=this.bananaNear*Math.tan(Math.PI/180*this.bananaFov*.5);this.eyeLeft.elements[12]=-g,this.eyeRight.elements[12]=g,t=-a*this.bananaReal_aspect+n,i=a*this.bananaReal_aspect+n,o.elements[0]=2*this.bananaNear/(i-t),o.elements[8]=(i+t)/(i-t),this.cameraL.projectionMatrix.copy(o),t=-a*this.bananaReal_aspect-n,i=a*this.bananaReal_aspect-n,o.elements[0]=2*this.bananaNear/(i-t),o.elements[8]=(i+t)/(i-t),this.cameraR.projectionMatrix.copy(o)}this.cameraL.matrixWorld.copy(e.matrixWorld).multiply(this.eyeLeft),this.cameraR.matrixWorld.copy(e.matrixWorld).multiply(this.eyeRight)}},h.prototype.boluoGetTexture=function(e){var t=new THREE.TextureLoader;return t.crossOrigin="anonymous",t.load(e)},h.prototype.updateScreenSize=function(e){var t,i,o,g=!1;e&&!e.resize&&null!=e.width&&null!=e.height?(i=e.width,o=e.height,g=!0,t=1):(i=$("#player").width(),o=$("#player").height(),e&&e.resize&&(p=this.renderWidth,f=this.renderHeight),(i!==p||o!==f||this.forceUpdateSize||m!=window.devicePixelRatio)&&(p=i,f=o,g=!0,m=window.devicePixelRatio,t=isMobile?Math.min(window.devicePixelRatio,2):window.devicePixelRatio)),g&&(this.setSize(i,o,t),this.forceUpdateSize=!1),edit&&(a.a.editor.mainDesign.editing&&a.a.editor.mainDesign.setMiniSize(),"snapTour"==a.a.editor.atPanel&&a.a.recordGuider.cadCanvasResize())},h.prototype.updateComponents=function(){for(var e=Math.min(1,this.updateClock.getDelta()),t=0;t<this.updateListeners.length;t++)this.updateListeners[t].update(e)},h.prototype.suspend=function(){this.started=!1,this.suspendedObjects=this.scene.children.map(function(e){return this.scene.remove(e),e}.bind(this)),this.render()},h.prototype.resume=function(){this.suspendedObjects.forEach(function(e){this.scene.add(e)}.bind(this)),this.suspendedObjects=[],this.started=!0,this.animate()},h.prototype.animate=function(){this.started&&(window.requestAnimationFrame(this.animate),this.updateScreenSize(),this.updateComponents(),this.render(),this.emit(n.a.AfterRender))},h.prototype.getImageData=function(){var e=document.createElement("canvas"),t=e.getContext("2d");return function(i,o,g){return e.width===o&&e.height===g||(e.width=o,e.height=g),t.drawImage(i,0,0,o,g),t.getImageData(0,0,o,g)}}(),h.prototype.initSizedTexture2D=function(e,t,i){var o=this.renderer,g=o.context,n=o.state,a=new THREE.Texture(null);a.flipY=!1,!0!==i&&(i=!1),a.generateMipmaps=i;var A=o.paramThreeToGL(a.format),r=o.paramThreeToGL(a.type),C=o.properties.get(a),I=g.createTexture();n.bindTexture(g.TEXTURE_2D,I),g.pixelStorei(g.UNPACK_FLIP_Y_WEBGL,a.flipY),g.texImage2D(g.TEXTURE_2D,0,A,e,e,0,A,r,null),a.wrapS=t,a.wrapT=t;var s=o.paramThreeToGL(t);return g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,s),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,s),i?(a.magFilter=THREE.LinearFilter,a.minFilter=THREE.LinearMipMapLinearFilter,g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR_MIPMAP_NEAREST),g.generateMipmap(g.TEXTURE_2D)):(a.magFilter=THREE.LinearFilter,a.minFilter=THREE.LinearFilter,g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR)),n.bindTexture(g.TEXTURE_2D,null),C.__webglTexture=I,a},h.prototype.deallocateCubeTexture=function(e){var t=this.renderer,i=t.context,o=t.properties.get(e);i.deleteTexture(o.__image__webglTextureCube)},h.prototype.uploadTexture2D=function(e,t,i,o,g,n){var a=this.renderer,A=a.context,r=a.state,C=a.properties.get(t);r.bindTexture(A.TEXTURE_2D,C.__webglTexture),A.pixelStorei(A.UNPACK_FLIP_Y_WEBGL,t.flipY),A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultiplyAlpha),A.pixelStorei(A.UNPACK_ALIGNMENT,t.unpackAlignment),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_S,a.paramThreeToGL(t.wrapS)),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_WRAP_T,a.paramThreeToGL(t.wrapT)),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MAG_FILTER,a.paramThreeToGL(t.magFilter)),A.texParameteri(A.TEXTURE_2D,A.TEXTURE_MIN_FILTER,a.paramThreeToGL(t.minFilter)),A.texSubImage2D(A.TEXTURE_2D,0,i,o,A.RGBA,A.UNSIGNED_BYTE,e),t.generateMipmaps&&A.generateMipmap(A.TEXTURE_2D),r.bindTexture(A.TEXTURE_2D,null)},h.prototype.renderToCubeMap=function(){var e=!1,t=null,i=null,o=null,g=null,n=null;return function(a,A,r,C,I,l,c,u,d,h,p,f,m,v,y,b){this.renderer.context,e||((i=new THREE.OrthographicCamera(-.5,.5,.5,-.5,-200,200)).position.z=150,(t=new THREE.Scene).add(i),o=new THREE.ShaderMaterial({uniforms:{tDiffuse:{type:"t",value:null},alpha:{type:"f",value:1}},vertexShader:s.a.basicTextured.vertexShader,fragmentShader:s.a.basicTextured.fragmentShader,depthWrite:!1,depthTest:!1,side:THREE.DoubleSide}),g=new THREE.PlaneBufferGeometry(1,1),(n=new THREE.Mesh(g,o)).position.z=0,t.add(n),e=!0);var w=g.getAttribute("uv");w.setDynamic(!0),w.needsUpdate=!0;var x=w.array,E=I/r,P=l/C,T=c/r,D=u/C;x[0]=E,x[1]=P+D,x[2]=E+T,x[3]=P+D,x[4]=E,x[5]=P,x[6]=E+T,x[7]=P;var M=g.getAttribute("position");M.setDynamic(!0),M.needsUpdate=!0;var S=M.array,R=d/A.width-.5,k=h/A.height-.5,O=p/A.width,L=f/A.height;if(S[0]=R,S[1]=k+L,S[3]=R+O,S[4]=k+L,S[6]=R,S[7]=k,S[9]=R+O,S[10]=k,this.renderer.properties.get(a),o.uniforms.tDiffuse.value=a,o.blending=v||THREE.NoBlending,o.transparent=!!y,null!=b||(b=1),o.uniforms.alpha.value=b,o.needUpdate=!0,A.activeCubeFace=m,A.viewport.set(0,0,A.width,A.height),this.oldRenderer){var B=this.oldRenderer.autoClear;this.oldRenderer.autoClear=!1,this.oldRenderer.render(t,i,A,!1),this.oldRenderer.autoClear=B}else{B=this.renderer.autoClear;this.renderer.autoClear=!1,this.renderer.render(t,i,A,!1),this.renderer.autoClear=B}}}(),h.prototype.copyCubeMap=function(){var e=!1,t=null,i=null,o=null,g=null,n=null,a=new THREE.Euler;return new THREE.Vector3,function(A,r,C,I,l,c,u,d,p){if(this.renderer,!e){(i=new THREE.OrthographicCamera(-1,1,1,-1,0,200)).position.set(0,0,0),(t=new THREE.Scene).add(i),o=new THREE.ShaderMaterial({uniforms:{tDiffuse:{type:"t",value:null},alpha:{type:"f",value:1}},vertexShader:s.a.copyCubeMap.vertexShader,fragmentShader:s.a.copyCubeMap.fragmentShader,depthWrite:!1,depthTest:!1,side:THREE.DoubleSide}),g=new THREE.BoxGeometry(2,2,2),n=new THREE.Mesh(g,o),t.add(n),e=!0}for(var f=0;f<6;f++)h.getCubeOrientationForCubeFace(f,a),n.rotation.copy(a),n.matrixWorldNeedsUpdate=!0,n.updateMatrixWorld(),o.uniforms.tDiffuse.value=A,o.blending=u||THREE.NoBlending,o.transparent=!!d,null!=p||(p=1),o.uniforms.alpha.value=p,o.needUpdate=!0,r.activeCubeFace=f,r.viewport.set(0,0,l,c),this.renderer.render(t,i,r,!1)}}(),h.getCubeOrientationForCubeFace=function(e,t){switch(e){case l.a.GL_TEXTURE_CUBE_MAP_POSITIVE_X:t.set(0,-Math.PI/2,0);break;case l.a.GL_TEXTURE_CUBE_MAP_NEGATIVE_X:t.set(0,Math.PI/2,0);break;case l.a.GL_TEXTURE_CUBE_MAP_POSITIVE_Y:t.set(Math.PI/2,Math.PI,0);break;case l.a.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y:t.set(-Math.PI/2,Math.PI,0);break;case l.a.GL_TEXTURE_CUBE_MAP_POSITIVE_Z:t.set(0,-Math.PI,0);break;case l.a.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z:t.set(0,0,0)}},t.a=h},function(e,t,i){"use strict";var o=i(5),g=i(4),n=i(20);function a(e,t){this.model=e,this.panos=e.panos,this.player=t,this.imagePanos=this.listImagePanos(),this.retryMinimumTime=1e4}a.prototype.start=function(){this.loadNextPano(function(e){e?this.start():setTimeout(function(){this.start()}.bind(this),1e3)}.bind(this))},a.prototype.validLoadTarget=function(e){return e&&!e.isLoaded("high")&&Date.now()-e.failedLoadingAt>this.retryMinimumTime},a.prototype.listImagePanos=function(){var e=[],t=this;return this.model.images.forEach((function(i){if(i.metadata&&i.metadata.scan_id){var o=t.model.panos.get(i.metadata.scan_id);o&&!o.isLoaded("high")&&e.push(o)}})),e},a.prototype.nextNotLoadedImage=function(){for(;this.imagePanos.length>0;){var e=this.imagePanos[0];if(!e.isLoaded("high"))return e;this.imagePanos.shift()}return null},a.prototype.loadNextPano=function(e){var t,i,a=this.model.waitQueue.filter((function(e){return e.object instanceof n.a}));a.length>0?(t=a[0].object,g.a.debug("Overrode pano selection: Flying to an unloaded pano "+t.id)):this.validLoadTarget(this.player.currentPano)?(t=this.player.currentPano,g.a.debug("Overrode pano selection: Currently at an unloaded pano "+t.id)):this.validLoadTarget(this.player.closestPano)?(t=this.player.closestPano,g.a.debug("Overrode pano selection: Hovering over an unloaded pano "+t.id)):this.validLoadTarget(this.nextNotLoadedImage())?(i="high",t=this.imagePanos[0],g.a.debug("Overrode pano selection: Highlight image "+t.id)):this.player.mode===o.a.PANORAMA&&(t=this.panos.lowestByScore([this.validLoadTarget.bind(this),n.a.filters.isNeighbourPanoTo(this.player.currentPano)],[n.a.scoreFunctions.distance(this.player.currentPano),n.a.scoreFunctions.direction(this.player.position,this.player.getDirection()),n.a.scoreFunctions.inFieldOfView(this.player.position,this.player.getDirection())])),t?(i=i||t.isSub||t.isLoaded("low")?"high":"low",t.loadCube(i).done(e).fail((function(){g.a.warn("Failed preloading pano",t.id,", marking it as failed and forgetting it for a while"),e()}))):e&&e(null)},t.a=a},function(e,t,i){"use strict";var o=i(5),g=i(1),n=i(12),a=i(4),A=i(2),r=(i(16),i(0));t.a=function(e){var t={},i=r.a.playGuider.checkHasTour();if(!edit&&i){var C={};switch(i&&(1==Store.playData[0].type?(C=n.a.getCapItem(0,0),t.zoom=C.zoom,t.target=C.target):(C=n.a.getCapItem(0),t.zoom=C.startZoom,t.target=C.starttarget)),C.mode){case o.a.PANORAMA:I={camera:{quaternion:C.quaternion,zoom:-1},pano:C.pano};break;case o.a.FLOORPLAN:I={camera:{quaternion:C.quaternion,position:C.position,zoom:C.zoom}};break;case o.a.DOLLHOUSE:I={camera:{quaternion:C.quaternion,position:C.position,zoom:-1}}}t.quickstart=e.quickstart=C.mode==o.a.PANORAMA,t.mode=C.mode,t.quaternion=(new THREE.Quaternion).copy(I.camera.quaternion),I.camera.position&&(t.position=(new THREE.Vector3).copy(I.camera.position)),I.pano&&(t.pano=r.a.player.model.panos.get(I.pano)||r.a.player.model.panos.findClosest(t.position))}else if(Store.metadata.entry){var I;(I=Store.metadata.entry).camera||(I={camera:{zoom:-1,quaternion:I.quaternion},pano:I.panoId}),t.mode=o.a.PANORAMA,t.quaternion=(new THREE.Quaternion).fromArray(I.camera.quaternion),I.pano&&(t.pano=r.a.player.model.panos.get(I.pano)||r.a.player.model.panos.findClosest(t.position)),t.zoom=-1}else t.quickstart=e.quickstart,t.mode=o.a.PANORAMA,t.pano=r.a.player.model.panos.list[0],t.position=e.position,t.quaternion=null,t.zoom=-1;return a.a.info("Starting player in "+t.mode),a.a.info(A.a.projectNum,"started-playing",g.a.autoplay,t.quickstart),t}},function(e,t,i){"use strict";i(49),i(29),i(69),i(63);var o=i(25),g=i.n(o),n=i(28),a=i.n(n),A=i(34),r=i.n(A),C=i(35),I=i.n(C),s=i(19),l=i.n(s),c=i(4),u=(i(10),i(91)),d=(i(16),i(0)),h=i(12),p=i(5),f=i(13),m=(i(79),i(2)),v=i(1);i(109),i(9),i(15),i(18),i(27);function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var b=function(e){r()(o,e);var t,i=(t=o,function(){var e,i=l()(t);if(y()){var o=l()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return I()(this,e)});function o(e){var t;return g()(this,o),(t=i.call(this)).player=e,t.onUpdate=!0,t.onRecording=!1,t.onPause=!1,t.isMouseMove=!0,t.startCapTime=0,t.preIndex=-1,t.soundPlayer=d.a.playGuider.soundPlayer,t}return a()(o,[{key:"beforeStart",value:function(){this.player.tagManager&&null!=this.player.tagManager.activeTag&&this.player.tagManager.dismissActiveTag(),this.player.modeTran.split("-")[1]!=p.a.PANORAMA&&this.player.tagManager.hideAllTags()}},{key:"start",value:function(){if(d.a.playGuider.isPause=!1,this.onRecording=!0,0==Store.capData.length){this.onPause=!1;var e={};e.pos=this.player.position.toArray(),e.qua=this.player.quaternion.toArray(),e.pano=this.player.currentPano.id,e.mode=this.player.mode,e.type="move",this.CapFirstItem2(e),e.startTime=h.a.getTime(this.startCapTime),h.a.capItemDeal(e)}else{var t=this.getFrameLastItem();if(this.onPause){var i=h.a.getTime(this.startCapTime)-t.eTime;this.startCapTime+=i,this.onPause=!1}else this.startCapTime=d.a.sceneRenderer.updateClock.elapsedTime-t.eTime;var o=1;t.mode==p.a.PANORAMA&&this.player.mode==p.a.PANORAMA&&t.pano==this.player.currentPano.id||t.mode==p.a.DOLLHOUSE&&this.player.mode==p.a.DOLLHOUSE||t.mode==p.a.FLOORPLAN&&this.player.mode==p.a.FLOORPLAN?o=0:t.mode==p.a.FLOORPLAN&&this.player.mode==p.a.PANORAMA&&(o=1.5),this.startCapTime-=o;var g={};g.pos=this.player.position.toArray(),g.qua=this.player.quaternion.toArray(),g.pano=this.player.currentPano.id,g.type="move",g.mode=h.a.tranString(this.player.model.mode),g.mode!=h.a.tranString(t.mode)?t.type="newM":t.type="fly",t.mode=h.a.tranString(t.mode),c.a.info("this.startCapTime-----------95("+Store.frameData[Store.frameData.length-1].length+"):"+this.startCapTime),g.startTime=h.a.getTime(this.startCapTime),g.starttarget=new THREE.Vector3(this.player.cameraControls.activeControl.target.x,this.player.cameraControls.activeControl.target.y,this.player.cameraControls.activeControl.target.z),this.player.model.mode==p.a.FLOORPLAN&&(g.startZoom=this.player.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),0!=o?(h.a.capItemDeal(g),Store.capData.push(g),h.a.createThumb(Store.capData.length-1,"first")):(t.type="move",delete t.transType);var n=Store.capData.length-1;void 0===Store.frameData[n]&&(Store.frameData[n]=[]);var a=JSON.parse(JSON.stringify(g));a.eTime=g.startTime,a.target=g.starttarget,g.startZoom&&(a.zoom=g.startZoom),delete a.startTime,delete a.starttarget,Store.frameData[n].push(a)}}},{key:"pause",value:function(){if(d.a.tagManager.activeTag&&d.a.tagManager.dismissActiveTag(),$("#tag-billboards").removeClass("noTouch"),this.onRecording=!1,this.onPause=!0,c.a.info("暂停录屏"),this.player.mode==p.a.TRANSITIONING){var e=Store.frameData[Store.frameData.length-1].length;Store.frameData[Store.frameData.length-1][e-1].type="move"}else if(Store.capData.length>0){var t=Store.capData[Store.capData.length-1],i=this.player.cameraControls.activeControl;t.endquaternion=i.camera.quaternion.toArray(),t.endposition=i.camera.position.toArray(),t.endtarget=(new THREE.Vector3).copy(this.player.cameraControls.activeControl.target),h.a.createThumb(Store.capData.length-1,"second"),this.player.model.mode==p.a.FLOORPLAN&&(t.endZoom=i.currentScale/($("#player").width()/$("#player").height())),t.eTime?(t.eTime=h.a.getTime(this.startCapTime),this.updateFragment(Store.capData.length-1,1,Store.thumbs[Store.capData.length-1].second_url)):(t.eTime=h.a.getTime(this.startCapTime),this.setFragment(t));var o={};o.pos=i.camera.position.toArray(),o.qua=i.camera.quaternion.toArray(),o.type="move",o.eTime=t.eTime,o.mode=t.mode,h.a.tranString(t.mode)==p.a.PANORAMA?o.pano=t.pano:o.target=new THREE.Vector3(t.endtarget.x,t.endtarget.y,t.endtarget.z).toArray(),Store.frameData[Store.frameData.length-1].push(o)}for(var g in d.a.player.model.tags){var n=d.a.player.model.tags[g];-1==n.billboard.media.indexOf("outLink")&&"videoPanoFlag"!=n.state&&n.show()}this.addToPlayData()}},{key:"stop",value:function(){if(d.a.tagManager.activeTag&&d.a.tagManager.dismissActiveTag(),$("#tag-billboards").removeClass("noTouch"),this.onPause=!1,this.onRecording=!1,c.a.info("停止录屏"),"transitioning"==this.player.mode){var e=Store.frameData[Store.frameData.length-1].length;Store.frameData[Store.frameData.length-1][e-1].type="move"}else if(Store.capData.length>0){d.a.playGuider.nodeIndex=0;var t=Store.capData[Store.capData.length-1];if(!t.eTime){var i=this.player.cameraControls.activeControl;t.endquaternion=i.camera.quaternion.toArray(),t.eTime=h.a.getTime(this.startCapTime),h.a.createThumb(Store.capData.length-1,"second"),this.player.model.mode==p.a.FLOORPLAN&&(t.endZoom=i.currentScale/($("#player").width()/$("#player").height())),this.setFragment(t)}}for(var o in d.a.player.model.tags){var g=d.a.player.model.tags[o];-1==g.billboard.media.indexOf("outLink")&&"videoPanoFlag"!=g.state&&g.show()}this.addToPlayData(),this.startCapTime=0,v.a.zoom.enabled=this.player.model.supportsTiles}},{key:"deleteData",value:function(e){this.stop();var t=m.a.prefixEditProMobileApi+"/deleteRecordPro";f.a.savingInfo[t]={done:0},f.a.saveAjax(t,{sceneNum:m.a.projectNum},f.a.getDataDeal(t,t,e,"删除"))}},{key:"removeData",value:function(){d.a.playGuider.nodeIndex=0,this.onUpdate=!0,this.onRecording=!1,this.startCapTime=0,Store.capTime=0,Store.capData=[],Store.frameData=[],Store.playData=[],Store.thumbs=[]}},{key:"setFragmentAngle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=Store.capData[e];return 0==t||1==t?(h.a.createThumb(e,"first"),this.updateFragment(e,0,Store.thumbs[e].first_url)):(h.a.createThumb(e,"second"),this.updateFragment(e,1,Store.thumbs[e].second_url)),"pa"==i.mode?0==t||1==t?i.qua=this.player.quaternion.toArray():i.endquaternion=this.player.quaternion.toArray():"doll"==i.mode?0==t||1==t?(i.qua=this.player.quaternion.toArray(),i.pos=this.player.position.toArray(),i.starttarget=new THREE.Vector3(this.player.cameraControls.activeControl.target.x,this.player.cameraControls.activeControl.target.y,this.player.cameraControls.activeControl.target.z)):(i.endquaternion=this.player.quaternion.toArray(),i.endtarget=new THREE.Vector3(this.player.cameraControls.activeControl.target.x,this.player.cameraControls.activeControl.target.y,this.player.cameraControls.activeControl.target.z),i.endposition=this.player.cameraControls.activeControl.camera.position.clone()):"fplan"==i.mode&&(0==t||1==t?(i.qua=this.player.quaternion.toArray(),i.pos=this.player.position.toArray(),i.starttarget=new THREE.Vector3(this.player.cameraControls.activeControl.target.x,this.player.cameraControls.activeControl.target.y,this.player.cameraControls.activeControl.target.z),i.startZoom=this.player.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())):(i.endquaternion=this.player.quaternion.toArray(),i.endtarget=new THREE.Vector3(this.player.cameraControls.activeControl.target.x,this.player.cameraControls.activeControl.target.y,this.player.cameraControls.activeControl.target.z),i.endposition=this.player.cameraControls.activeControl.camera.position.clone(),i.endZoom=this.player.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height()))),2==Store.playData[e].type&&(Store.playData[e].value=i),i}},{key:"controlRecord",value:function(e){e?this.start():this.pause()}},{key:"deleteFragment",value:function(e){if(!(e>Store.playData.length-1)){if(e==Store.playData.length-1)return Store.capData.splice(e,1),Store.frameData.splice(e,1),Store.playData.splice(e,1),void Store.thumbs.splice(e,1);this.deleteTagForTransf(e);var t=Store.capData[e+1].startTime-Store.capData[e].startTime,i=this.getTransitionTime(e);e<Store.capData.length&&(Store.capData.splice(e,1),Store.frameData.splice(e,1),Store.playData.splice(e,1),Store.thumbs.splice(e,1));var o=this.getTransitionTime(e);if(void 0!==t){t=t+i-o;for(var g=e;g<Store.capData.length;++g){if(Store.capData[g].startTime-=t,Store.capData[g].eTime-=t,Store.capData[g].tags)for(var n=0;n<Store.capData[g].tags.length;++n)Store.capData[g].tags[n].eTime-=t;Store.capData[g].transForHot&&(Store.capData[g].transForHot.eTime-=t);for(n=0;n<Store.frameData[g].length;++n)Store.frameData[g][n].eTime-=t,void 0!==Store.frameData[g][n].endTime&&(Store.frameData[g][n].endTime-=t);2==Store.playData[g].type?Store.playData[g].value=JSON.parse(JSON.stringify(Store.capData[g])):Store.playData[g].value=JSON.parse(JSON.stringify(Store.frameData[g]))}}if(e>0&&this.updateFrameItem(e-1),0==o&&0!=e){Store.capData[e-1].eTime=Store.capData[e].eTime,Store.capData[e-1].endquaternion=Store.capData[e].endquaternion,Store.capData[e].endtarget&&(Store.capData[e-1].endtarget=Store.capData[e].endtarget),Store.capData[e].endposition&&(Store.capData[e-1].endposition=Store.capData[e].endposition),Store.capData[e].endZoom&&(Store.capData[e-1].endZoom=Store.capData[e].endZoom);var a=Store.frameData[e-1].length;Store.frameData[e-1][a-1].type="move",Store.frameData[e-1]=Store.frameData[e-1].concat(Store.frameData[e]),Store.thumbs[e-1].second_url=Store.thumbs[e].second_url,Store.thumbs[e].second_back_url&&(Store.thumbs[e-1].second_back_url=Store.thumbs[e].second_back_url),Store.playData[e-1].transType=Store.playData[e].transType,1==Store.playData[e-1].type?Store.playData[e-1].value=JSON.parse(JSON.stringify(Store.frameData[e-1])):2==Store.playData[e-1].type&&(Store.playData[e-1].value=JSON.parse(JSON.stringify(Store.capData[e-1]))),this.deleteFragmentUI&&this.deleteFragmentUI(e)}h.a.calcNodeTime(Store.playData)}}},{key:"updateSpeed",value:function(e,t){Store.capData[e].speed=t,Store.playData[e].speed=t,h.a.calcNodeTime(Store.playData)}},{key:"preview",value:function(e,t){e?d.a.guider.play(t):d.a.guider.stop()}},{key:"CapFirstItem1",value:function(e){0==Store.frameData.length&&(this.startCapTime=d.a.sceneRenderer.updateClock.elapsedTime,Store.frameData[0]=[],Store.frameData[0].push(h.a.capItemDeal({type:"move",eTime:0,mode:e.mode,qua:e.qua})),e.pos&&(Store.frameData[0][0].pos=e.pos),e.pano&&(Store.frameData[0][0].pano=e.pano),e.target&&(Store.frameData[0][0].target=e.target),this.player.mode==p.a.FLOORPLAN&&(Store.frameData[0][0].zoom=this.player.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())))}},{key:"CapFirstItem2",value:function(e){if(0==Store.capData.length){if(this.startCapTime=d.a.sceneRenderer.updateClock.elapsedTime,e.startTime=0,e.mode==p.a.DOLLHOUSE||e.mode==p.a.FLOORPLAN){var t=this.player.cameraControls.activeControl;e.starttarget=new THREE.Vector3(t.target.x,t.target.y,t.target.z)}e.mode=h.a.tranString(this.player.model.mode),this.player.mode==p.a.FLOORPLAN&&(e.startZoom=this.player.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),Store.capData.push(e),h.a.createThumb(Store.capData.length-1,"first")}}},{key:"getMoveItem",value:function(e,t){var i={},o=this.player.cameraControls.activeControl,g=this.player.cameraControls.activeControl.camera;return i.mode=h.a.tranString(this.player.model.mode),i.qua=g.quaternion.toArray(),this.player.mode!=p.a.PANORAMA?(i.target=o.target.toArray(),i.pos=g.position.toArray()):i.pos=this.player.currentPano.position.toArray(),this.player.mode==p.a.FLOORPLAN&&(i.zoom=o.currentScale/($("#player").width()/$("#player").height())),this.player.mode==p.a.PANORAMA&&(i.pano=this.player.currentPano.id),i.type="move",this.CapFirstItem1(i),i.eTime=h.a.getTime(this.startCapTime),h.a.capItemDeal(i),i}},{key:"addToPlayData",value:function(){var e=Store.playData.length;for(0!=e&&--e;e<Store.capData.length;++e)if(Store.playData[e])1==Store.playData[e].type?Store.playData[e].value=JSON.parse(JSON.stringify(Store.frameData[e])):Store.playData[e].value=JSON.parse(JSON.stringify(Store.capData[e]));else{var t=null;t=Store.recordType&&2!=Store.recordType?JSON.parse(JSON.stringify(Store.frameData[e])):JSON.parse(JSON.stringify(Store.capData[e])),Store.playData[e]={},Store.playData[e].value=t,Store.playData[e].type=Store.recordType,Store.playData[e].speed=1,Store.playData[e].transType="default"}h.a.calcNodeTime(Store.playData)}},{key:"updatePlayData",value:function(e,t){switch(t){case 1:Store.playData[e].type=1,Store.playData[e].value=JSON.parse(JSON.stringify(Store.frameData[e]));break;case 2:Store.playData[e].type=2,Store.playData[e].value=JSON.parse(JSON.stringify(Store.capData[e]))}h.a.calcNodeTime(Store.playData)}},{key:"reSetPlayData",value:function(e){switch(Store.recordType=e,e){case 1:for(var t=0;t<Store.capData.length;++t)Store.playData[t].type=1,Store.playData[t].value=JSON.parse(JSON.stringify(Store.frameData[t]));break;case 2:for(t=0;t<Store.capData.length;++t)Store.playData[t].type=2,Store.playData[t].value=JSON.parse(JSON.stringify(Store.capData[t]))}h.a.calcNodeTime(Store.playData)}},{key:"getTransitionTime",value:function(e){if(e<1)return 0;var t=h.a.getPlayDataItem(e-1,2),i=h.a.getPlayDataItem(e,0);return t.mode==p.a.PANORAMA&&i.mode==p.a.PANORAMA&&t.pano==i.pano||t.mode==p.a.DOLLHOUSE&&i.mode==p.a.DOLLHOUSE||t.mode==p.a.FLOORPLAN&&i.mode==p.a.FLOORPLAN?0:t.mode==p.a.FLOORPLAN&&i.mode==p.a.PANORAMA?1.5:1}},{key:"setPreviewStatus",value:function(e){Store.playData&&(edit&&isMobile||("fly"==e?($("#autoTour").addClass("unable"),$("#tourGuide").addClass("unable"),$("#BottNav nav").addClass("unable"),$("#player").css("pointer-events","none")):"started"==e?$("#autoTour").removeClass("unable"):($("#autoTour").removeClass("unable"),$("#tourGuide").removeClass("unable"),$("#player,#map").css("pointer-events",""),$("#autoTour .play").removeClass("onPause"),$(".bottRight").removeClass("unable"),$("#BottNav nav").removeClass("unable"),$("#map").removeClass("unable"),$("body").removeClass("playingRecord"),d.a.player.panoVideoRenderer&&"panorama"==d.a.player.mode&&(d.a.player.panoVideoRenderer.enabled=!0,d.a.player.panoVideoRenderer.onPanoChange(d.a.player.currentPano)),$("#tag-billboards").removeClass("noTouch"),$("header>*").removeClass("unable"),$("#j-header-dropdown,.toolTop,.toolLeft,.toolRight").removeClass("unable"))))}},{key:"getFrameLastItem",value:function(){var e=Store.frameData.length,t=Store.frameData[e-1][Store.frameData[e-1].length-1];return t.mode=h.a.tranString(t.mode),t}},{key:"updateFrameItem",value:function(e){if(Store.frameData[e+1]){var t=Store.frameData[e].length,i=Store.frameData[e][t-1],o=Store.frameData[e+1][0];i.mode!=o.mode||"doll"==i.mode||"fplan"==i.mode?i.type="newM":i.type="fly"}else{var g=Store.frameData[e+1].length;Store.frameData[e+1][g-1].type="move"}1==Store.playData[e].type&&(Store.playData[e].value=JSON.parse(JSON.stringify(Store.frameData[e]))),h.a.calcNodeTime(Store.playData)}},{key:"deleteHotInfo",value:function(e){var t=!1;if(e)for(var i=0;i<Store.capData.length;++i){if(Store.capData[i].tags){for(var o=0;o<Store.capData[i].tags.length;++o)Store.capData[i].tags[o].sid==e&&(t=!0,Store.capData[i].tags.splice(o,1),--o);0==Store.capData[i].tags.length&&(t=!0,delete Store.capData[i].tags);for(o=0;o<Store.frameData[i].length;++o)Store.frameData[i][o].sid==e&&(t=!0,Store.frameData[i].splice(o,1),--o)}Store.capData[i].transForHot&&Store.capData[i].transForHot.sid==e?(delete Store.capData[i].transForHot,t=!0):Store.capData[i].catchTransForHotSid==e&&(delete Store.capData[i].catchTransForHotSid,t=!0),t&&(1==Store.playData[i].type?Store.playData[i].value=JSON.parse(JSON.stringify(Store.frameData[i])):Store.playData[i].value=JSON.parse(JSON.stringify(Store.capData[i])))}return t}},{key:"deleteTagForTransf",value:function(e){if(Store.capData[e].transForHot){for(var t=Store.capData[e].transForHot.sid,i=Store.frameData[e].length-1;i>0;--i)if(Store.frameData[e][i].sid==t&&"spot"==Store.frameData[e][i].type&&"open"==Store.frameData[e][i].state){Store.frameData[e].splice(i,1);break}if(delete Store.capData[e].transForHot,Store.capData[e+1]&&Store.capData[e+1].catchTransForHotSid){for(i=0;i<Store.frameData[e+1].length-1;++i)if(Store.frameData[e+1][i].sid==t&&"spot"==Store.frameData[e+1][i].type&&"close"==Store.frameData[e+1][i].state){Store.frameData[e+1].splice(i,1);break}delete Store.capData[e+1].catchTransForHotSid,Store.capData[e+1].tags&&Store.capData[e+1].tags.splice(0,1)}1==Store.playData[e].type?(Store.playData[e].value=JSON.parse(JSON.stringify(Store.frameData[e])),Store.playData[e+1].value=JSON.parse(JSON.stringify(Store.frameData[e+1]))):(Store.playData[e].value=JSON.parse(JSON.stringify(Store.capData[e])),Store.playData[e+1].value=JSON.parse(JSON.stringify(Store.capData[e+1])))}else if(Store.capData[e].catchTransForHotSid){var o=Store.capData[e].catchTransForHotSid;for(i=0;i<Store.frameData[e].length-1;++i)if(Store.frameData[e][i].sid==o&&"spot"==Store.frameData[e][i].type&&"close"==Store.frameData[e][i].state){Store.frameData[e].splice(i,1);break}if(delete Store.capData[e].catchTransForHotSid,Store.capData[e].tags&&Store.capData[e].tags.splice(0,1),Store.capData[e-1]&&Store.capData[e-1].transForHot){for(i=Store.frameData[e-1].length-1;i>0;--i)if(Store.frameData[e-1][i].sid==o&&"spot"==Store.frameData[e-1][i].type&&"open"==Store.frameData[e-1][i].state){Store.frameData[e-1].splice(i,1);break}delete Store.capData[e-1].transForHot}1==Store.playData[e].type?(Store.playData[e].value=JSON.parse(JSON.stringify(Store.frameData[e])),Store.playData[e-1].value=JSON.parse(JSON.stringify(Store.frameData[e-1]))):(Store.playData[e].value=JSON.parse(JSON.stringify(Store.capData[e])),Store.playData[e-1].value=JSON.parse(JSON.stringify(Store.capData[e-1])))}}},{key:"resizeFragment",value:function(e){var t=Store.frameData.length,i=e-Store.playData[t-1].time.eTime;if(i>0){Store.capData[t-1].wTime=i;var o=Store.frameData[t-1].length;Store.frameData[t-1][o-1].wTime=e-Store.playData[t-1].time.eTime,1==Store.playData[t-1].type?Store.playData[t-1].value=JSON.parse(JSON.stringify(Store.frameData[t-1])):Store.playData[t-1].value=JSON.parse(JSON.stringify(Store.capData[t-1])),h.a.calcNodeTime(Store.playData)}}},{key:"updateFragmentUI",value:function(){d.a.guider.updateActivePic()}},{key:"updateFragmentProgress",value:function(e,t){}},{key:"startPreview",value:function(){}},{key:"stopPreview",value:function(){}}]),o}(u.a);t.a=b},function(e,t,i){"use strict";i(49),i(29),i(69),i(38),i(52);var o=i(25),g=i.n(o),n=i(28),a=i.n(n),A=i(34),r=i.n(A),C=i(35),I=i.n(C),s=i(19),l=i.n(s),c=i(91),u=i(114);function d(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var h=function(e){r()(o,e);var t,i=(t=o,function(){var e,i=l()(t);if(d()){var o=l()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return I()(this,e)});function o(){var e;return g()(this,o),(e=i.call(this)).soundPlayer=new u.c,e.musicPlayer=new u.c,e.enable=!0,e}return o}(c.a),p=i(4),f=i(0),m=i(12),v=(i(7),i(5)),y=i(9),b=i(15),w=i(18),x=i(27),E=i(1),P=i(2),T=i(10);function D(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var M=function(e){r()(o,e);var t,i=(t=o,function(){var e,i=l()(t);if(D()){var o=l()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return I()(this,e)});function o(){var e;return g()(this,o),(e=i.call(this)).player=f.a.player,e.guider=f.a.guider,e.onUpdate=!0,e.canPlay=!1,e.isPlaying=!1,e.isPause=!1,e.flyToSingleCap=!1,e.wait=!0,e.screenCapLen=0,e.screenCapIndex=0,e.nodeIndex=0,e.frameIndex=0,e.chooseIndex=0,e.temp={nodeIndex:-1},e.transWeight=.98,window.useInterpolation=0,e}return a()(o,[{key:"start",value:function(e){if(this.nodeIndex>Store.playData.length-1)this.stop();else{f.a.gui.playAudio(null,!1),edit&&f.a.editor.finishSetTagVisible(),f.a.recordGuider.updateFragmentUI(this.nodeIndex);var t=function(){setTimeout(function(){this.isPause||(p.a.info("开始播放录屏了!"),this.canPlay=!1,this.isPlaying=!0,this.enable=!0,this.wait=!1,this.player.panoVideoRenderer&&this.player.panoVideoRenderer.setMute(!0),this.soundPlayer.canPlay()?(this.musicPlayer.pause(!0),this.soundPlayer.play()):this.musicPlayer.canPlay()&&this.musicPlayer.pause(!0),f.a.guider.startPreview(this.nodeIndex),f.a.recordGuider.startPreview(this.nodeIndex),f.a.recordGuider.setPreviewStatus("started"),e&&e())}.bind(this),100)};f.a.recordGuider.setPreviewStatus("fly"),this.isPause=!1,f.a.tagManager.closeNeedTag();var i=self.setInterval(function(){this.player.flying||(this.player.flyingToTag=!1,this.flyToIndex(this.nodeIndex,t),window.clearInterval(i))}.bind(this),200)}}},{key:"pause",value:function(){this.isPause||(f.a.tagManager.closeNeedTag(),$("#tag-billboards").removeClass("noTouch"),$("body").removeClass("playingRecord"),this.isPause=!0,this.canPlay=!0,this.isPlaying=!1,this.flyToSingleCap=!1,this.frameIndex=0,this.player.panoVideoRenderer&&this.player.panoVideoRenderer.setMute(!1),this.soundPlayer.canPlay()?(this.soundPlayer.stop(),this.musicPlayer.resume()):this.musicPlayer.canPlay()&&this.musicPlayer.resume(),y.a.cancelById(E.a.freeze.LookRotationForPlay),y.a.cancelById(E.a.freeze.LookTransition,!0),this.player.mode==v.a.PANORAMA?this.player.adjustControlAngel():this.player.cameraControls.activeControl,this.onUpdate=!0,this.player.panoVideoRenderer&&"panorama"==this.player.mode&&(f.a.player.panoVideoRenderer.enabled=!0,f.a.player.panoVideoRenderer.onPanoChange(f.a.player.currentPano)),this.player.flying||f.a.recordGuider.setPreviewStatus("start"))}},{key:"stop",value:function(){this.pause(),this.nodeIndex=0,this.frameIndex=0,this.enable=!1,f.a.guider.stopPreview(),f.a.recordGuider.stopPreview(),P.a.keyCon=!0}},{key:"reSet",value:function(){}},{key:"checkPlaying",value:function(){return this.enable&&this.isPlaying&&!this.wait&&!this.isPause}},{key:"checkHasTour",value:function(){return!!(Store.playData&&Store.playData.length>0)&&(1==Store.metadata.tourVisi||null==Store.metadata.mapVisi)}},{key:"playFragment",value:function(){this.wait=!0,this.nodeIndex!=Store.playData.length?1==Store.playData[this.nodeIndex].type?this.playFragment1():this.playFragment2():this.stop()}},{key:"flyToIndex",value:function(e,t){this.player.flyToItem(e,t.bind(this))}},{key:"interpolation",value:function(e,t){var i=m.a.getCapItem(this.nodeIndex,0),o=e.eTime-i.eTime,g=(m.a.getTime(this.startPlayTime)-o)/(t.eTime-e.eTime);if(console.log("percent"+g),isNaN(g))this.player.copyCameraProp(this.player.cameraControls.activeControl,t);else if(g<0&&console.log("???????"),g>.8)this.player.copyCameraProp(this.player.cameraControls.activeControl,t);else if(g<.2)this.player.copyCameraProp(this.player.cameraControls.activeControl,e);else{var n=T.default.CloneObject(e);n.quaternion&&(n.quaternion=(new THREE.Quaternion).copy(n.quaternion),b.a.quaternion(n.quaternion,(new THREE.Quaternion).copy(t.quaternion))(g)),n.position&&(n.position=(new THREE.Vector3).copy(n.position),b.a.vector(n.position,(new THREE.Vector3).copy(t.position))(g)),n.target&&(n.target=(new THREE.Vector3).copy(n.target),b.a.vector(n.target,(new THREE.Vector3).copy(t.target))(g)),console.log(n),this.player.copyCameraProp(this.player.cameraControls.activeControl,n)}}},{key:"chooseFragment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2?arguments[2]:void 0;this.pause(),this.nodeIndex=e,f.a.recordGuider.updateFragmentUI(this.nodeIndex),f.a.recordGuider.setPreviewStatus("fly"),this.flyToSingleCap=!0;var o=null,g=null,n=null,a=null,A=null;if(1==Store.playData[e].type){if(0==t||1==t)o=m.a.getCapItem(e,0);else{var r=Store.playData[e].value.length;o=m.a.getCapItem(e,r-1)}o.zoom?g=o.zoom:o.startZoom&&(g=o.startZoom),n=o.target,a=o.quaternion,A=o.position}else o=m.a.getCapItem(this.nodeIndex),0==t||1==t?(g=o.startZoom,n=o.starttarget,a=o.quaternion,A=o.position):(g=o.endZoom,n=o.endtarget,a=o.endquaternion,A=o.endposition);if(o.mode==v.a.PANORAMA){var C=this.player.model.panos.get(o.pano);this.player.currentPano&&o.pano==this.player.currentPano.id&&f.a.recordGuider.setPreviewStatus("start");var I=new THREE.Vector3(0,0,-1).applyQuaternion(o.quaternion).add(C.position);2==t&&o.endquaternion&&(I=new THREE.Vector3(0,0,-1).applyQuaternion(o.endquaternion).add(C.position)),this.player.mode==v.a.DOLLHOUSE||this.player.mode==v.a.FLOORPLAN?this.player.flyToNewMode({pano:C,mode:o.mode,quaternion:(new THREE.Quaternion).copy(a),zoom:g,callback:i}):this.player.mode==v.a.TRANSITIONING?setTimeout(function(){this.player.flyToNewMode({pano:C,mode:o.mode,quaternion:(new THREE.Quaternion).copy(a),zoom:g,target:n,callback:i})}.bind(this),1e3):this.player.flyToPano({pano:C,lookAtPoint:I,target:n},i)}else this.player.mode!=o.mode?o.mode!=v.a.PANORAMA&&this.player.flyToNewMode({position:A,target:n,mode:o.mode,zoom:g,quaternion:(new THREE.Quaternion).copy(a),callback:i}):(this.onUpdate=!1,A=new THREE.Vector3(A.x,A.y,A.z),y.a.start(b.a.vector(this.player.cameraControls.activeControl.camera.position,A),1e3,null,0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.FlyToNewMode),o.mode!=v.a.PANORAMA?(g&&(g=x.a.convertWorkshopOrthoZoom(g),y.a.start(b.a.property(this.player.cameraControls.activeControl,"absoluteScale",g,function(e){this.player.cameraControls.activeControl&&(this.player.cameraControls.activeControl.currentScale=e,this.player.cameraControls.activeControl.updateZoom())}.bind(this)),1e3,null,0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.LookRotationForPlay)),y.a.start(b.a.vector(this.player.cameraControls.activeControl.target,new THREE.Vector3(n.x,n.y,n.z),(function(e,t){})),1e3,function(){this.onUpdate=!0,this.flyToSingleCap=!1,i&&i(),f.a.recordGuider.setPreviewStatus("start")}.bind(this),0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.FlyToNewMode)):y.a.start(b.a.quaternion(this.player.cameraControls.activeControl.camera.quaternion,(new THREE.Quaternion).copy(a),(function(e,t){})),1e3,function(){this.onUpdate=!0,this.flyToSingleCap=!1,i&&i(),f.a.recordGuider.setPreviewStatus("start")}.bind(this),0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.FlyToNewMode))}},{key:"updateProgress",value:function(){var e=this.frameIndex/Store.playData[this.nodeIndex].value.length;p.a.info("playFragment1旋转进度:"+e+"----frameIndex:"+this.frameIndex),f.a.recordGuider.updateFragmentProgress(this.nodeIndex,e)}},{key:"playFragment1",value:function(){this.wait=!1,this.onUpdate=!1;var e=m.a.getCapItem(this.nodeIndex,this.frameIndex);if(this.updateProgress(),null==e)return++this.nodeIndex,this.frameIndex=0,void this.updateProgress();if(e.wTime)return this.wait=!0,void setTimeout(function(){this.nodeIndex<Store.playData.length-1?(++this.frameIndex,this.updateProgress(),++this.nodeIndex,this.frameIndex=0,this.flyToIndex(this.nodeIndex,function(){this.wait=!1}.bind(this))):(++this.nodeIndex,this.stop())}.bind(this),1e3*e.wTime);if(this.nodeIndex==Store.playData.length-1&&!Store.playData[this.nodeIndex].value[this.frameIndex+1]||this.isPause)return this.player.adjustControlAngel(),this.onUpdate=!0,f.a.recordGuider.updateFragmentProgress(this.nodeIndex,1),++this.frameIndex,this.updateProgress(),void this.stop();0==this.frameIndex&&(this.startPlayTime=f.a.sceneRenderer.updateClock.elapsedTime);var t=m.a.getCapItem(this.nodeIndex,0);if(window.useInterpolation){if(m.a.getTime(this.startPlayTime)<e.eTime-t.eTime){if(p.a.warn("原生模式播放快了:"+this.frameIndex),!(this.frameIndex-1>=0))return void++this.frameIndex;var i=m.a.getCapItem(this.nodeIndex,this.frameIndex-1);if("move"==e.type&&i.mode==e.mode)return void this.interpolation(i,e)}else if("move"==e.type){if(null==(g=m.a.getCapItem(this.nodeIndex,this.frameIndex+1))&&(++this.nodeIndex,g=m.a.getCapItem(this.nodeIndex,0)),null==g)return this.player.copyCameraProp(this.player.cameraControls.activeControl,e),void++this.frameIndex;if(m.a.getTime(this.startPlayTime)>g.eTime-t.eTime)return p.a.warn("原生模式播放慢了:"+this.frameIndex),++this.frameIndex,void this.playFragment1();if(g.mode==e.mode)return this.interpolation(e,g),void++this.frameIndex}}else{if(m.a.getTime(this.startPlayTime)<e.eTime-t.eTime){if(m.a.getTime(this.startPlayTime)-(e.eTime-t.eTime)<-.1)return void p.a.warn("原生模式播放快了:"+this.frameIndex)}else if(m.a.getTime(this.startPlayTime)-(e.eTime-t.eTime)>.1)return p.a.warn("原生模式播放慢了:"+this.frameIndex),++this.frameIndex,void this.updateProgress();if("move"==e.type)return this.player.copyCameraProp(this.player.cameraControls.activeControl,e),void++this.frameIndex}if("spot"==e.type){var o=this.player.model.tags[e.sid];o&&("open"==e.state?(o.billboard.open(),void 0===f.a.tagManager.tagNeedClose[o.sid]&&(f.a.tagManager.tagNeedClose[o.sid]=o)):(o.billboard.close(),delete f.a.tagManager.tagNeedClose[o.sid])),++this.frameIndex}else if("flyToPano"==e.type||"flyToNewMode"==e.type){var g;if(++this.frameIndex,this.updateProgress(),this.frameIndex<Store.playData[this.nodeIndex].value.length&&(this.frameIndex=Store.playData[this.nodeIndex].value.length,this.updateProgress()),++this.nodeIndex,!(g=this.getNextItem()))return++this.frameIndex,void this.stop();var n=m.a.getTime(this.startPlayTime)-(e.eTime-t.eTime);p.a.info("errorTime:"+n);var a=null;if((a=1==Store.playData[this.nodeIndex].type?g.eTime-e.eTime-n:g.startTime-e.eTime-n)<0&&(a=.2),"flyToPano"==e.type){if(this.player.mode==v.a.PANORAMA){this.player.adjustControlAngel();var A,r=this.player.model.panos.get(g.pano);g.mode==v.a.PANORAMA&&"flyToNewMode"!=g.type&&(A=new THREE.Vector3(0,0,-1).applyQuaternion(g.quaternion).add(r.position)),"opacity"==Store.playData[this.nodeIndex-1].transType?(this.wait=!0,f.a.director.goToHighlight(this.nodeIndex),this.player.model.floorLogos[0].position.copy(r.floorPosition.clone().sub(this.player.model.position)),this.player.model.floorLogos[1].position.copy(r.floorPosition.clone().sub(this.player.model.position))):r.id==e.pano?this.wait=!1:(this.wait=!0,this.player.flyToPano({pano:r,duration:1e3*a*this.transWeight,lookAtPoint:A}))}}else if("flyToNewMode"==e.type){this.wait=!0,this.player.adjustControlAngel();var C={position:new THREE.Vector3(g.position.x,g.position.y,g.position.z),target:g.starttarget,quaternion:(new THREE.Quaternion).copy(g.quaternion),mode:g.mode,zoom:g.zoom?g.zoom:g.startZoom,duration:1e3*a*this.transWeight};g.starttarget||(C.target=g.target),g.mode==v.a.PANORAMA&&(C.pano=this.player.model.panos.get(g.pano)),e.mode!=g.mode?this.player.flyToNewMode(C):this.wait=!1}this.frameIndex=0}}},{key:"playFragment2",value:function(e){function t(){var e=m.a.getTime(this.startPlayTime)-(Store.playData[this.nodeIndex].value.eTime-Store.playData[this.nodeIndex].value.startTime)/g.speed;++this.nodeIndex,this.player.adjustControlAngel({target:g.endtarget}),this.onUpdate=!0;var t=this.getNextItem();if(g.wTime)return this.wait=!0,void setTimeout(function(){if(this.nodeIndex<Store.playData.length)if(f.a.recordGuider.updateFragmentProgress(this.nodeIndex-1,1),"opacity"==r){var e=this.player.model.panos.get(t.pano);f.a.director.goToHighlight(this.nodeIndex),this.player.model.floorLogos[0].position.copy(e.floorPosition.clone().sub(this.player.model.position)),this.player.model.floorLogos[1].position.copy(e.floorPosition.clone().sub(this.player.model.position))}else this.flyToIndex(this.nodeIndex,function(){this.wait=!1}.bind(this));else this.stop()}.bind(this),1e3*g.wTime);if(t)if(t){var i=t.mode;if("opacity"==r){var o=this.player.model.panos.get(t.pano);f.a.director.goToHighlight(this.nodeIndex),this.player.model.floorLogos[0].position.copy(o.floorPosition.clone().sub(this.player.model.position)),this.player.model.floorLogos[1].position.copy(o.floorPosition.clone().sub(this.player.model.position))}else if("default"!=r||g.transForHot){if(g.transForHot){var a=t.eTime-g.transForHot.eTime;t.startTime&&(a=t.startTime-g.transForHot.eTime),a<0&&(a=1),this.showTag(g,t,1e3*a)}}else if(n==i){if(n!=v.a.PANORAMA)return!this.isPlaying&&this.isPause&&(f.a.recordGuider.setPreviewStatus("start"),this.player.adjustControlAngel({target:g.endtarget}),f.a.playGuider.onUpdate=!0),this.canPlay||(this.canPlay=!0),void(e>0?setTimeout(function(){this.wait=!1}.bind(this),1e3*e):this.wait=!1);var A=this.player.model.panos.get(t.pano),C=new THREE.Vector3(0,0,-1).applyQuaternion(t.quaternion).add(A.position);if(this.player.currentPano.id==A.id)return!this.isPlaying&&this.isPause&&(f.a.recordGuider.setPreviewStatus("start"),this.player.adjustControlAngel({target:g.endtarget}),f.a.playGuider.onUpdate=!0),this.canPlay||(this.canPlay=!0),void(e>0?setTimeout(function(){this.wait=!1}.bind(this),1e3*e):this.wait=!1);var I=null;(I=1==Store.playData[this.nodeIndex].type?t.eTime-g.eTime-e:t.startTime-g.eTime-e)<0&&(I=.2),this.player.flyToPano({pano:A,duration:1e3*I*this.transWeight,lookAtPoint:C})}else if(this.player.model.supportsTiles&&(this.player.adjustControlAngel({target:g.endtarget}),this.onUpdate=!0),i==v.a.PANORAMA){o=this.player.model.panos.get(t.pano);t.startTime?o.duration=1e3*(t.startTime-g.eTime)*this.transWeight:o.duration=1e3*(t.eTime-g.eTime)*this.transWeight,this.player.flyToNewMode({pano:o,quaternion:(new THREE.Quaternion).copy(t.quaternion),mode:i})}else{var s;(s=t.startTime?t.startTime-g.eTime-e:t.eTime-g.eTime-e)<0&&(s=.2),this.player.flyToNewMode({position:t.position,target:t.starttarget,quaternion:(new THREE.Quaternion).copy(t.quaternion),mode:i,zoom:t.startZoom,duration:1e3*s*this.transWeight})}}else this.stop();else this.stop()}this.canPlay=!1,this.onUpdate=!1,this.isPlaying=!0;var i=this.nodeIndex,o=0;if(Store.playData.length>i){var g=m.a.getCapItem(i),n=g.mode,a=g.speed;1!=a&&(this.changeTime=g.eTime-g.startTime-(g.eTime-g.startTime)/a);var A,r=g.transType;if(void 0===e&&(this.startPlayTime=f.a.sceneRenderer.updateClock.elapsedTime),g.tags&&void 0===e&&(e=-1,A=g.startTime),g.tags&&g.tags.length>0&&e<g.tags.length-1){.92;var C=function(e){this.playFragment2(e)};-1==e||(A=g.tags[e].eTime);var I=null;e>-1&&e<g.tags.length?(I=this.player.model.tags[g.tags[e].sid])&&("open"==g.tags[e].state?(p.a.info("打开热点:"+I.sid),I.billboard.open(),f.a.tagManager.tagNeedClose[I.sid]=I):"close"==g.tags[e].state&&(p.a.info("关闭热点:"+I.sid),I.billboard.close(),delete f.a.tagManager.tagNeedClose[I.sid])):e==g.tags.length&&p.a.info("最后一个热点关闭");var s,l=g.eTime,c=g.endZoom;g.endposition&&(s=new THREE.Vector3(g.endposition.x,g.endposition.y,g.endposition.z));var u=(new THREE.Quaternion).copy(g.endquaternion);++e<g.tags.length?(l=g.tags[e].eTime,u=(new THREE.Quaternion).copy(m.a.toObject(g.tags[e].quaternion)),g.tags[e].zoom&&(c=g.tags[e].zoom),o=l-A):(o=l-A,o*=.9),o<0&&(p.a.error("热点关闭的时间居然大于节点最后的时间1!"),o=.1);var d=1/(g.tags.length+1);if(g.mode==v.a.DOLLHOUSE)y.a.start(b.a.vector(this.player.cameraControls.activeControl.target,new THREE.Vector3(g.endtarget.x,g.endtarget.y,g.endtarget.z),function(t,i){f.a.recordGuider.updateFragmentProgress(this.nodeIndex,e*d+d*i),p.a.info("(热点)旋转进度:"+i)}.bind(this)),o/a*1e3,null,0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.LookRotationForPlay),y.a.start(b.a.vector(this.player.cameraControls.activeControl.camera.position,s),o/a*1e3,C.bind(this,e),0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.LookRotationForPlay);else if(g.mode==v.a.FLOORPLAN)y.a.start(b.a.vector(this.player.cameraControls.activeControl.target,new THREE.Vector3(g.endtarget.x,g.endtarget.y,g.endtarget.z),function(t,i){f.a.recordGuider.updateFragmentProgress(this.nodeIndex,e*d+d*i),p.a.info("(热点)旋转进度:"+i)}.bind(this)),o/a*1e3,null,0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.LookRotationForPlay),this.player.cameraControls.activeControl.absoluteScale!=c&&(c=x.a.convertWorkshopOrthoZoom(c),y.a.start(b.a.property(this.player.cameraControls.activeControl,"absoluteScale",c,function(e){this.player.cameraControls.activeControl&&(this.player.cameraControls.activeControl.currentScale=e,this.player.cameraControls.activeControl.updateZoom())}.bind(this)),o/a*1e3,null,0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.LookRotationForPlay)),y.a.start(b.a.vector(this.player.cameraControls.activeControl.camera.position,s),o/a*1e3,C.bind(this,e),0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.LookRotationForPlay);else{p.a.info("热点旋转dtime:"+o+",speed:"+a);var h=this.player.cameraControls.activeControl.camera.quaternion.clone();y.a.start(b.a.quaternion(h,u,function(t,i){if(P.a.ifFish)this.player.copyCameraProp2(this.player.cameraControls.activeControl,{endquaternion:t,mode:"panorama"});else{var o=new THREE.Vector3(0,0,-1).applyQuaternion(t).add(this.player.position);this.player.cameraControls.activeControl.camera.lookAt(o)}f.a.recordGuider.updateFragmentProgress(this.nodeIndex,e*d+d*i)}.bind(this)),o/a*1e3,C.bind(this,e),0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.LookRotationForPlay)}}else{d=1;if(g.tags&&g.tags.length>0&&e==g.tags.length-1)(I=this.player.model.tags[g.tags[e].sid]).billboard.close(),delete f.a.tagManager.tagNeedClose[I.sid],d=1/(g.tags.length+1);A=g.tags&&g.tags.length>0?g.tags[g.tags.length-1].eTime:g.startTime,(o=g.transForHot?g.transForHot.eTime-A:g.eTime-A)<0&&(p.a.error("热点关闭的时间居然大于节点最后的时间2!"),o=.1);var T=0;if(g.wTime&&(T=1e-4),g.mode==v.a.DOLLHOUSE||g.mode==v.a.FLOORPLAN)y.a.start(b.a.vector(this.player.cameraControls.activeControl.target,new THREE.Vector3(g.endtarget.x,g.endtarget.y,g.endtarget.z),function(e,t){f.a.recordGuider.updateFragmentProgress(this.nodeIndex,1-d+d*t-T)}.bind(this)),o/a*1e3,null,0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.LookRotationForPlay),y.a.start(b.a.vector(this.player.cameraControls.activeControl.camera.position,new THREE.Vector3(g.endposition.x,g.endposition.y,g.endposition.z)),o/a*1e3,t.bind(this),0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.LookRotationForPlay),g.mode==v.a.FLOORPLAN&&this.player.cameraControls.activeControl.absoluteScale!=g.endZoom&&(g.endZoom=x.a.convertWorkshopOrthoZoom(g.endZoom),y.a.start(b.a.property(this.player.cameraControls.activeControl,"absoluteScale",g.endZoom,function(e){this.player.cameraControls.activeControl&&(this.player.cameraControls.activeControl.currentScale=e,"PerspectiveCamera"!=this.player.cameraControls.activeControl.camera.type&&this.player.cameraControls.activeControl.updateZoom())}.bind(this)),o/a*1e3,null,0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.LookRotationForPlay));else{p.a.info("非热点旋转:dtime:"+o+",speed:"+a);h=this.player.cameraControls.activeControl.camera.quaternion.clone();y.a.start(b.a.quaternion(h,(new THREE.Quaternion).copy(g.endquaternion),function(e,t){if(this.player.cameraControls.activeControl)if(P.a.ifFish)this.player.copyCameraProp2(this.player.cameraControls.activeControl,{endquaternion:e,mode:"panorama"});else{var i=new THREE.Vector3(0,0,-1).applyQuaternion(e).add(this.player.position);this.player.cameraControls.activeControl.camera.lookAt(i)}f.a.recordGuider.updateFragmentProgress(this.nodeIndex,1-d+d*t-T)}.bind(this)),o/a*1e3,t.bind(this),0,w.a[E.a.flydown.rotationEasing],null,E.a.freeze.LookRotationForPlay)}}}}},{key:"showTag",value:function(e,t,i,o){var g=e.transForHot.sid,n=this.player.model.tags[g];n&&(f.a.tagManager.tagNeedClose[n.sid]=n,n.billboard.open());var a=this.player.model.panos.get(t.pano);this.player.flyToPano({pano:a,lookAtPoint:P.a.ifFish?n.origin.clone():n.disc.getWorldPosition(),duration:i},o)}},{key:"setPreviewStatus",value:function(e){"fly"==e?($("#player").css("pointer-events","none"),$("#autoTour").addClass("unable"),$("#tourGuide").addClass("unable"),$(".toolRight").addClass("unable"),$(".toolLeft").addClass("unable"),$(".toolTop").addClass("unable"),$("#tag-billboards").addClass("noTouch"),$("#BottNav nav").addClass("unable"),$(".bottRight").addClass("unable"),$("header>*").addClass("unable"),$("#j-header-dropdown").find(">i").removeClass("down"),$("#j-header-dropdown").find(">div").removeClass("show"),$("#j-header-dropdown").addClass("unable"),$("#map").addClass("unable")):($("#player").css("pointer-events",""),$("#autoTour").removeClass("unable"),$("#tourGuide").removeClass("unable"),$(".toolRight").removeClass("unable"),$(".toolLeft").removeClass("unable"),$(".toolTop").removeClass("unable"),$("#tag-billboards").removeClass("noTouch"),$("#BottNav nav").removeClass("unable"),$("#autoTour .play").removeClass("onPause"),$(".bottRight").removeClass("unable"),$("header>*").removeClass("unable"),$("#j-header-dropdown").removeClass("unable"),$("#map").removeClass("unable"))}},{key:"getNextItem",value:function(){var e=Store.playData[this.nodeIndex];return e&&1==e.type?e=m.a.getCapItem(this.nodeIndex,0):e&&2==e.type?e=m.a.getCapItem(this.nodeIndex):null}}]),o}(h);f.a.playGuider=new M;t.a=M},function(e,t,i){var o=i(104);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,i){"use strict";var o=i(58),g=i(160)(!0);o(o.P,"Array",{includes:function(e){return g(this,e,arguments.length>1?arguments[1]:void 0)}}),i(120)("includes")},function(e,t,i){"use strict";var o=i(58),g=i(243);o(o.P+o.F*i(244)("includes"),"String",{includes:function(e){return!!~g(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,i){"use strict";var o=i(73),g=i(115);e.exports=function(e,t,i){t in e?o.f(e,t,g(0,i)):e[t]=i}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,i){"use strict";i.d(t,"b",(function(){return W}));i(106),i(107),i(105);var o=i(11),g=i.n(o),n=(i(38),i(59),i(53),i(29),i(60),i(33)),a=i.n(n),A=(i(49),i(69),i(25)),r=i.n(A),C=i(28),I=i.n(C),s=i(80),l=i.n(s),c=i(34),u=i.n(c),d=i(35),h=i.n(d),p=i(19),f=i.n(p),m=i(98),v=i(42),y=i(14);function b(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function w(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?b(Object(i),!0).forEach((function(t){g()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):b(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var x=0,E=function(){function e(t,i,o,g,n){r()(this,e),x++,this.points=i,this.stateStack=[],this.origin=g,this.line=t,this.minMargin=o||.1,this.prevLinePoints=y.a.copyPoints(this.line.points),this.init(n),v.a.copy(this,m.a.create("__Furniture__"+x++))}return I()(e,[{key:"isScale",value:function(){return!0}},{key:"init",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=0;t<e;t++)this.preservationState()}},{key:"_move",value:function(){this.initialPoints||(this.initialPoints=this.points.map((function(e){return w({},e)})))}},{key:"_up",value:function(){this.initialPoints=null}},{key:"getIndex",value:function(){return 1}},{key:"lineChangeMove",value:function(){var e={x:this.line.points[0].x-this.prevLinePoints[0].x,y:this.line.points[0].y-this.prevLinePoints[0].y};return this.prevLinePoints=y.a.copyPoints(this.line.points),e}},{key:"lineUpdate",value:function(){var e=this.lineChangeMove(),t=e.x,i=e.y,o=y.a.lineVector(this.line);this.points.forEach((function(e){0===o.x&&(e.x+=t),0===o.y&&(e.y+=i)})),this.trigger("changePoints")}},{key:"changeSelect",value:function(e,t){!1!==t&&(t||e&&2!==this.selected||!e&&2===this.selected)&&this.trigger("selectChange",{selected:e}),this.selected=e?2:0}},{key:"getMoveChange",value:function(e,t,i){var o={x:e.x<0?i.x-t.x:t.x-i.x,y:e.y<0?i.y-t.y:t.y-i.y};return o=Math.abs(e.x)>Math.abs(e.y)?{x:o.x*e.x,y:o.x*e.y}:{x:o.y*e.x,y:o.y*e.y}}},{key:"deteFurniture",value:function(){for(var e=this.line,t=0;t<e.__furnitures.length;t++){var i=e.__furnitures[t];if(i!==this&&(y.a.isContainPoint(this.points[0],i.points,this.minMargin)||y.a.isContainPoint(this.points[1],i.points,this.minMargin)||y.a.isContainPoint(i.points[0],this.points,this.minMargin)||y.a.isContainPoint(i.points[1],this.points,this.minMargin)))return!1}return!0}},{key:"detection",value:function(e){arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.line;var t=y.a.lineVector({points:this.points});if(e){var i=y.a.lineVector({points:e});if(i.x*t.x<0||i.y*t.y<0)return!1}return this.deteFurniture()&&this.selfAdaption(!!this.selected)}},{key:"checkRange",value:function(e){var t=this.line,i=y.a.lineVector(t),o=1===Math.abs(i.x)?"x":"y",g=t.points[0][o]<t.points[1][o]?t.points[0][o]:t.points[1][o],n=t.points[0][o]>t.points[1][o]?t.points[0][o]:t.points[1][o];return e[o]>=g&&e[o]<=n}},{key:"selfAdaption",value:function(e){var t=this,i=this.line,o=y.a.lineVector(this.line),g=y.a.lineVector({points:this.points}),n=this.points.map((function(e){return w({},e)})),a=[];a=Math.abs(o.x)>Math.abs(o.y)?this.points.map((function(e){return{x:e.x,y:t.line.points[0].y}})):this.points.map((function(e){return{x:t.line.points[0].y,y:e.y}}));var A=this.checkRange(a[0]),r=this.checkRange(a[1]);if(A&&r)return!0;if(e)return!1;if(!A&&r){var C=y.a.equalPoint(o,g)?w({},i.points[0]):w({},i.points[1]),I={x:a[1].x-(a[0].x-C.x),y:a[1].y-(a[0].y-C.y)};a[0].x=C.x,a[0].y=C.y,a[1].x=I.x,a[1].y=I.y,y.a.isContainPoint(a[1],i.points,0)||(I=y.a.equalPoint(o,g)?w({},i.points[1]):w({},i.points[0]),a[1].x=I.x,a[1].y=I.y)}else{if(r||!A)return!1;var s=y.a.equalPoint(o,g)?w({},i.points[1]):w({},i.points[0]),l={x:a[0].x-(a[1].x-s.x),y:a[0].y-(a[1].y-s.y)};a[0].x=l.x,a[0].y=l.y,a[1].x=s.x,a[1].y=s.y,y.a.isContainPoint(a[0],i.points,0)||(l=y.a.equalPoint(o,g)?w({},i.points[0]):w({},i.points[1]),a[0].x=l.x,a[0].y=l.y)}return!(y.a.lineDistance(a)<.3)&&(this.replacePoints(a),!this.deteFurniture()||this.otherDete&&!this.otherDete()?(this.replacePoints(n),!1):(this.trigger("changePoints"),!0))}},{key:"replacePoints",value:function(e){for(var t=0;t<e.length;t++)this.points[t].x=e[t].x,this.points[t].y=e[t].y}},{key:"testing",value:function(e,t){var i={};return this.points.forEach((function(o,g){y.a.lineDistance([e,o])<.3/t.scale&&(i.scalePoint=g)})),!i.scalePoint&&y.a.isContainPoint(e,this.points,.4/t.scale)&&(i.selected=!0),i}},{key:"scale",value:function(e,t,i,o){var g=this,n=y.a.lineVector(this.line),a=this.points.map((function(e){return{x:e.x,y:e.y}})),A=this.getMoveChange(n,e,t);"Array"!==v.a.getType(i)&&(i=[i]);var r=[];i.forEach((function(e,t){var i=g.points.indexOf(e);~i&&(r[t]=w({},e),e.x=g.initialPoints[i].x+A.x,e.y=g.initialPoints[i].y+A.y)})),this.detection(a)?(this.trigger("changePoints"),o.render(!1)):i.forEach((function(e,t){e.x=r[t].x,e.y=r[t].y}))}},{key:"move",value:function(e,t,i){var o=this,g=y.a.lineVector(this.line),n=this.getMoveChange(g,e,t),a=[];this.points.forEach((function(e,t){a[t]=w({},e),e.x=o.initialPoints[t].x+n.x,e.y=o.initialPoints[t].y+n.y})),this.detection()?(i.render(!1),this.trigger("changePoints")):this.points.forEach((function(e,t){e.x=a[t].x,e.y=a[t].y}))}}]),e}(),P=i(66),T=i(46);function D(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var M=function(e){u()(o,e);var t,i=(t=o,function(){var e,i=f()(t);if(D()){var o=f()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return h()(this,e)});function o(e,t,g,n,a,A){var C;return r()(this,o),(C=i.call(this,e,t,g,n,a)).wall=A,C}return I()(o,[{key:"detection",value:function(e){if(!l()(f()(o.prototype),"detection",this).call(this,e,this.line))return!1;for(var t=Object(T.b)(this.wall.faces,this.line),i=0;i<t.length;i++)if(t[i].__furnitures&&!l()(f()(o.prototype),"detection",this).call(this,e,t[i]))return!1;return!0}},{key:"callAttr",value:function(e){var t=y.a.verticalLine({points:this.points}),i=y.a.lineDistance(this.points),o=this.points.concat([{x:this.points[0].x+t[0]*i,y:this.points[0].y+t[1]*i}]),g=y.a.lineAngle([o[1],o[0]])*Math.PI/180,n=y.a.lineAngle([o[2],o[0]])*Math.PI/180,a=n-g;return(a>=Math.PI/2&&a>=Math.PI||a<=-Math.PI/2&&a>=-Math.PI)&&(a=n,n=g,g=a),{points:o,startDeg:g,endDeg:n}}},{key:"testing",value:function(e,t){var i=l()(f()(o.prototype),"testing",this).call(this,e,t);if(i.selected||"Number"===v.a.getType(i.scalePoint))return i;var g=this.callAttr(t),n=g.points,a=g.startDeg,A=g.endDeg;n=n.map((function(e){return t.transScreenPoint(e)})),e=t.transScreenPoint(e);var r=y.a.lineDistance([n[1],n[0]]);return a=a/Math.PI*180,A=A/Math.PI*180,y.a.pointInSector(n[0],a,A,r,e)&&(i.selected=!0),i}},{key:"_down",value:function(e,t,i){if(!t.edit)return!1;var o=this.testing(e,t);return o.selected||"Number"===v.a.getType(o.scalePoint)?(this.changeSelect(!0,i),o):(this.changeSelect(!1,i),null)}},{key:"_hover",value:function(e,t,i){if(!i.edit)return!1;var o=this.testing(e,i);return this.horn=this.points[o.scalePoint],2!==this.selected&&(this.selected=!!o.selected&&1),i.render(!1),this.horn||this.selected}},{key:"_move",value:function(e,t,i,g){l()(f()(o.prototype),"_move",this).call(this),"Number"===v.a.getType(i.scalePoint)?this.scale(e,t,this.points[i.scalePoint],g):this.move(e,t,g)}},{key:"draw",value:function(e,t){var i=this;return function(){var o=i.callAttr(e),g=o.points,n=o.startDeg,a=o.endDeg;g=g.map((function(t){return e.transScreenPoint(t)})),P.a.doorSector(t,g,n,a,y.a.lineDistance([g[1],g[0]]),i.selected?2===i.selected?"rgba(243, 255, 0, 0.5)":"rgba(243, 255, 0, 0.8)":null,6/e.scale,1/e.scale),i.horn&&P.a.pointSelect(t,e.transScreenPoint(i.horn),12/e.scale,6/e.scale)}}}]),o}(E);function S(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var R=function(e){u()(o,e);var t,i=(t=o,function(){var e,i=f()(t);if(S()){var o=f()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return h()(this,e)});function o(e,t,g,n,a,A){var C;return r()(this,o),(C=i.call(this,e,t,g,n,a)).wall=A,C}return I()(o,[{key:"detection",value:function(e){if(!l()(f()(o.prototype),"detection",this).call(this,e,this.line))return!1;for(var t=Object(T.b)(this.wall.faces,this.line),i=0;i<t.length;i++)if(t[i].__furnitures&&!l()(f()(o.prototype),"detection",this).call(this,e,t[i]))return!1;return!0}},{key:"_down",value:function(e,t,i){if(!t.edit)return!1;var o=this.testing(e,t);return o.selected||"Number"===v.a.getType(o.scalePoint)?(this.changeSelect(!0,i),o):(this.changeSelect(!1,i),null)}},{key:"_hover",value:function(e,t,i){if(!i.edit)return!1;var o=this.testing(e,i);return this.horn=this.points[o.scalePoint],2!==this.selected&&(this.selected=!!o.selected&&1),i.render(!1),this.horn||this.selected}},{key:"_move",value:function(e,t,i,g){l()(f()(o.prototype),"_move",this).call(this),"Number"===v.a.getType(i.scalePoint)?this.scale(e,t,this.points[i.scalePoint],g):this.move(e,t,g)}},{key:"draw",value:function(e,t){var i=this;return function(){var o=i.points.map((function(t){return e.transScreenPoint(t)})),g=1===i.selected?"rgba(243, 255, 0, 0.5)":2===i.selected?"rgba(243, 255, 0, 0.8)":"#202123";P.a.lineSelect(t,o,g,6/e.scale),P.a.lineSelect(t,o,"#fff",1/e.scale),i.horn&&P.a.pointSelect(t,e.transScreenPoint(i.horn),12/e.scale,6/e.scale)}}}]),o}(E);i(125),i(119),i(75);function k(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function O(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?k(Object(i),!0).forEach((function(t){g()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function L(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var B={"-1":[0,1],0:[1,3],1:[3,2],2:[2,0]},F=function(e){u()(o,e);var t,i=(t=o,function(){var e,i=f()(t);if(L()){var o=f()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return h()(this,e)});function o(e,t,g,n,a,A){var C;return r()(this,o),(C=i.call(this,e,t,g,n,a)).face=Object.keys(B).reduce((function(e,t){return e.concat(B[t][0])}),[]).map((function(e){return t[e]})),C.wall=A,C.calcMaxThickness(),C}return I()(o,[{key:"calcMaxThickness",value:function(){var e=this.wall.getFace(this.line),t=e.reduce((function(e,t){return e.concat(t.points[0])}),[]),i=y.a.lineVector(this.line),o=Math.abs(i.x)<Math.abs(i.y)?"x":"y",g=[],n=0;e.forEach((function(e){return~g.indexOf(e.points[0][o])||g.push(e.points[0][o])})),g.sort((function(e,t){return e+1e3-(t+1e3)}));var a=this.points[0][o];this.points[0][o]<this.points[2][o]?((g=g.slice(g.indexOf(this.points[0][o])+1)).reverse(),n=-.1):(g=g.slice(0,g.indexOf(this.points[0][o])),n=.1);for(var A=O({},this.points[2]),r=O({},this.points[3]),C=a,I=0;I<g.length;I++)if(A[o]=g[I]+n,r[o]=g[I]+n,(y.a.pointInside(A,t)||y.a.containPolygonBorder(A,t))&&(y.a.pointInside(r,t)||y.a.containPolygonBorder(r,t))){C=g[I];break}return Math.abs(C-a)}},{key:"replacePoints",value:function(e){e[0].y===e[1].y?(this.points[0].x=this.points[2].x=e[0].x,this.points[1].x=this.points[3].x=e[1].x):e[0].x===e[1].x&&(this.points[0].y=this.points[2].y=e[0].y,this.points[1].y=this.points[3].y=e[1].y)}},{key:"otherDete",value:function(){var e=this.wall.getFace(this.line),t=e.reduce((function(e,t){return e.concat(t.points[0])}),[]),i=y.a.lineVector(this.line),o=[];if(Math.abs(i.x)<Math.abs(i.y)){var g=this.points[3].x-this.points[0].x;o.push({x:this.line.points[0].x+g,y:this.points[0].y},{x:this.line.points[0].x+g,y:this.points[1].y})}else{var n=this.points[3].y-this.points[0].y;o.push({y:this.line.points[0].y+n,x:this.points[0].x},{y:this.line.points[0].y+n,x:this.points[1].x})}var a=y.a.pointInside(o[0],t)||y.a.containPolygonBorder(o[0],t),A=y.a.pointInside(o[1],t)||y.a.containPolygonBorder(o[1],t);if(!a||!A)return!1;for(var r=0;r<e.length;r++)if(e[r]!==this.line&&(y.a.isLineIntersect(e[r].points,[this.points[1],this.points[3]])||y.a.isLineIntersect(e[r].points,[this.points[2],this.points[0]])))return!1;return!0}},{key:"detection",value:function(e){if(!l()(f()(o.prototype),"detection",this).call(this,e,this.line))return!1;for(var t=Object(T.b)(this.wall.faces,this.line),i=0;i<t.length;i++)if(t[i].__furnitures){var g={points:t[i].points};if(g.__furnitures=t[i].__furnitures.filter((function(e){return!(e instanceof o)})),!l()(f()(o.prototype),"detection",this).call(this,e,g))return!1}if(e){var n=y.a.lineVector({points:[e[1],e[3]]}),a=y.a.lineVector({points:[this.points[1],this.points[3]]});if(n.x*a.x<0||n.y*a.y<0)return!1}return this.otherDete()}},{key:"testing",value:function(e,t){for(var i=this,o={},g=Object.keys(B),n=0;n<g.length;n++)if(g[n]-0!=-1&&y.a.isContainPoint(e,B[g[n]].map((function(e){return i.points[e]})),.2/t.scale)){o.scalePoint=Number(g[n]);break}return n===g.length&&y.a.pointInside(e,this.face)&&(o.selected=!0),o}},{key:"_hover",value:function(e,t,i){if(!i.edit)return!1;var o=this.testing(e,i);return this.scalePoint=o.scalePoint,2!==this.selected&&(this.selected=!!o.selected&&1),i.render(!1),"Number"===v.a.getType(this.scalePoint)||this.selected}},{key:"_down",value:function(e,t,i){if(!t.edit)return!1;var o=this.testing(e,t);return o.selected||"Number"===v.a.getType(o.scalePoint)?(this.changeSelect(!0,i),o):(this.changeSelect(!1,i),null)}},{key:"_move",value:function(e,t,i,g){var n=this;if(l()(f()(o.prototype),"_move",this).call(this),"Number"===v.a.getType(i.scalePoint)){var a=B[i.scalePoint].map((function(e){return n.points[e]}));this.scale(e,t,a,g)}else this.move(e,t,g);this.listEndpoint()}},{key:"listEndpoint",value:function(){var e,t,i=y.a.lineVector(this.line),o=y.a.lineVector({points:this.points});y.a.equalPoint(i,o)?(e=this.line.points[0],t=this.line.points[1]):(e=this.line.points[1],t=this.line.points[0]),y.a.lineDistance([e,this.points[0]])<.05&&this.replacePoints([e,this.points[1]]),y.a.lineDistance([t,this.points[1]])<.05&&this.replacePoints([this.points[0],t])}},{key:"scale",value:function(e,t,i,o){var g=this,n=y.a.verticalLine({points:i});n={x:n[0],y:n[1]};var a=this.points.map((function(e){return{x:e.x,y:e.y}})),A=this.getMoveChange(n,e,t),r=[];i.forEach((function(e,t){var i=g.points.indexOf(e);r[t]=O({},e),e.x=g.initialPoints[i].x+A.x,e.y=g.initialPoints[i].y+A.y})),this.detection(a)?(this.trigger("changePoints"),o.render(!1)):i.forEach((function(e,t){e.x=r[t].x,e.y=r[t].y}))}},{key:"getMoveChange",value:function(e,t,i){var o={x:e.x<0?i.x-t.x:t.x-i.x,y:e.y<0?i.y-t.y:t.y-i.y};return o=Math.abs(e.x)>Math.abs(e.y)?{x:o.x*e.x,y:o.x*e.y}:{x:o.y*e.x,y:o.y*e.y}}},{key:"draw",value:function(e,t){var i=this;return function(){for(var o=i.face.map((function(t){return e.transScreenPoint(t)})),g=[],n=0;n<o.length-1;n++)g.push([o[n],o[n+1]]);if(P.a.faceLine(t,g,2/e.scale),1===i.selected?(t.fillStyle="rgba(243, 255, 0, 0.5)",t.fill()):2===i.selected&&(t.fillStyle="rgba(243, 255, 0, 0.8)",t.fill()),"Number"===v.a.getType(i.scalePoint)){var a=B[i.scalePoint].map((function(t){return e.transScreenPoint(i.points[t])}));P.a.lineVertial(t,a,4/e.scale,6/e.scale,3/e.scale)}t.lineWidth=1/e.scale,t.beginPath(),t.moveTo(o[0].x,o[0].y),t.lineTo(o[2].x,o[2].y),t.stroke(),t.closePath(),t.beginPath(),t.moveTo(o[1].x,o[1].y),t.lineTo(o[3].x,o[3].y),t.stroke(),t.closePath()}}}]),o}(E);i(266),i(265);function j(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function N(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?j(Object(i),!0).forEach((function(t){g()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):j(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function H(e,t,i){var o=[];e.__furnitures=e.__furnitures||[],e.__loaddingModels=e.__loaddingModels||[];for(var g,n=0;g=e.otherobjs[n];n++)if(!~e.__loaddingModels.indexOf(g)){var a=~g.id.indexOf("door")?M:~g.id.indexOf("window")?R:~g.id.indexOf("column")?F:null,A=new a(e,g.points2d,.1,g,t.stackStateIndex,i);if(A.__startMove={x:0,y:0},e.__loaddingModels.push(g),e.__furnitures.push(A),t.models.push(A),a===F){var r=z(t,i,A);-1!==r&&1!==r||o.push(A),r<0&&n--}else o.push(A)}return o}function z(e,t,i){var o=i.line;if(i.detection())return 1;var g,n=Object(T.b)(t.faces,i.line);for(g=0;g<n.length;g++)if(i.line=n[g],i.line.__furnitures||H(i.line,e,t),i.detection())return o.__loaddingModels.splice(o.__loaddingModels.indexOf(i.origin),1),o.__furnitures.splice(o.__furnitures.indexOf(i),1),o.otherobjs.splice(o.otherobjs.indexOf(i.origin),1),i.line.otherobjs.push(i.origin),i.line.__furnitures.push(i),i.line.__loaddingModels.push(i.origin),-1;return g===n.length?(o.__loaddingModels.splice(o.__loaddingModels.indexOf(i.origin),1),o.__furnitures.splice(o.__furnitures.indexOf(i),1),o.otherobjs.splice(o.otherobjs.indexOf(i.origin),1),e.models.splice(e.models.indexOf(i),1),-2):void 0}function V(e,t,i,o){o.otherobjs=o.otherobjs||[],H(o,t,i).forEach((function(t){return function(e,t,i){t.listen("selectChange",(function(i){var o=i.selected;return setTimeout((function(){e.trigger(o?"selectMesh":"unSelectMesh",t)}),o?32:0)})),t.listen("changePoints",(function(){e.trigger("meshChange",t)}))}(e,t)}))}function G(e){var t=e.__furnitures,i=e.__loaddingModels,o=e.otherobjs;return e.__furnitures=[],e.__loaddingModels=[],e.otherobjs=[],{furnitures:t,loaddingModels:i,otherobjs:o}}function W(e,t,i,o,g,n,A){if("column"===n){var r=e.getFace(),C=[].concat(a()(Object(T.b)(r,o)),[o]),I=Object.keys(r).filter((function(e){return~r[e].findIndex((function(e){return~C.indexOf(e)}))})),s=r[I.find((function(t){return y.a.pointInside(A,e.getFacePoints(t))}))];s&&(o=C.find((function(e){return~s.indexOf(e)})))}var l=function(e,t,i,o,g){for(var n,a=.4,A=1,r=y.a.lineVector(i),C={plus:0,reduce:0,pac:.1},I=Math.ceil(y.a.lineDistance(i.points)/C.pac);;){var s=A,l=N({},o),c=~C.plus?~C.reduce&&C.plus>C.reduce?"reduce":"plus":"reduce",u="reduce"===c?-C[c]:C[c],d=void 0;0===r.x?l.y+=u:l.x+=u;do{d=0===r.x?[{x:i.points[0].x,y:l.y+s/2},{x:i.points[0].x,y:l.y-s/2}]:[{x:l.x+s/2,y:i.points[0].y},{x:l.x-s/2,y:i.points[0].y}];var h=!0,p=void 0,f=void 0;for(p=0;f=i.__furnitures[p];p++)if(y.a.isContainPoint(d[0],f.points,.1)||y.a.isContainPoint(d[1],f.points,.1)||y.a.isContainPoint(f.points[0],d,.1)||y.a.isContainPoint(f.points[1],d,.1)){h=!1;break}if(h)for(var m=Object(T.b)(t.faces,i),b=0;b<m.length&&h;b++)for(p=0;f=m[b].__furnitures[p];p++)if(!("column"===g&&f instanceof F)&&(y.a.isContainPoint(d[0],f.points,.1)||y.a.isContainPoint(d[1],f.points,.1)||y.a.isContainPoint(f.points[0],d,.1)||y.a.isContainPoint(f.points[1],d,.1))){h=!1;break}if(h&&(h=y.a.isContainPoint(d[0],i.points,0)&&y.a.isContainPoint(d[1],i.points,0)),h)break;s-=.1}while(s>a);if(s>a){n=d;break}if(~C[c]&&(C[c]+=C.pac),--I<0)break}if(!n)return null;if("column"===g){var w=e.getFace(),x=e.getFacePoints(Object.keys(w).find((function(e){return~w[e].indexOf(i)}))),E=.4;y.a.pointInside(0===r.x?{x:n[0].x+.4,y:n[0].y}:{x:n[0].x,y:n[0].y+.4},x)||(E=-.4),0===r.x?(n.push({x:n[0].x+E,y:n[0].y}),n.push({x:n[1].x+E,y:n[1].y})):(n.push({x:n[0].x,y:n[0].y+E}),n.push({x:n[1].x,y:n[1].y+E}))}return{id:v.a.grentID(g),pos:n.reduce((function(e,t){return e.concat(t.x,t.y)}),[]),points2d:n}}(e,i,o,g,n);if(l){var c=o.otherobjs.length;return o.otherobjs.push(l),V(e,t,i,o),e.trigger("regMesh",o.__furnitures[c]),t.render(!1),!0}return!1}t.a=function(e,t,i){if(Object.keys(t.faces).reduce((function(e,i){return e.concat(t.faces[i])}),[]).forEach((function(o){return V(e,i,t,o)})),!e.isLoadMeshListen){e.isLoadMeshListen=!0,t.listen("changePosition",(function(e){setTimeout((function(){[].concat(a()(Object(T.b)(t.faces,e)),[e]).forEach((function(e){return function(e,t){var i=Object(T.b)(e.faces,t);i.push(t),i.reduce((function(e,t){var i=t.__furnitures;return e.concat(i)}),[]).forEach((function(e){return e&&e.lineUpdate()}))}(t,e)}))}))})),t.listen("delLine",(function(t){var i=t.del,o=t.origin;!function(e,t,i){var o,g,n,A=G(t);(o=i.__furnitures).push.apply(o,a()(A.furnitures)),(g=i.__loaddingModels).push.apply(g,a()(A.loaddingModels)),(n=i.otherobjs).push.apply(n,a()(A.otherobjs)),i.__furnitures.forEach((function(e){return e.line=i})),i.__furnitures.forEach((function(t){return e.trigger("changedMeshLine",t)}))}(e,i,o)})),t.listen("addLine",(function(o){var g=o.add;return V(e,i,t,g)})),t.listen("updateLine",(function(o){var g=o.del,n=o.add,a=o.change;n=n.concat(a),g.map((function(e){return G(e)})).forEach((function(o,g){n.forEach((function(o){return o.__furnitures||V(e,i,t,o)})),o.furnitures.forEach((function(t,g){var a=y.a.raLineVector(t.line),A=n.filter((function(e){return y.a.equalPoint(a,y.a.raLineVector(e))})),r=t.line,C=A.find((function(e){var i=1===Math.abs(a.x)?"x":"y",o=e.points[0][i]<e.points[1][i]?e.points[0][i]:e.points[1][i],g=e.points[0][i]>e.points[1][i]?e.points[0][i]:e.points[1][i];return t.points[0][i]>=o&&t.points[0][i]<=g&&t.points[1][i]>=o&&t.points[1][i]<=g}));if(!C){var I=y.a.lineVector(r),s=A.filter((function(e){return y.a.equalPoint(y.a.lineVector(e),I)})),l=s.reduce((function(e,t){return t.__furnitures.length>e?t.__furnitures.length:e}),0);C=s.find((function(e){return e.__furnitures.length===l}))}(C=C||A[0]||n[0])?(C.__furnitures.push(o.furnitures[g]),C.__loaddingModels.push(o.loaddingModels[g]),C.otherobjs.push(o.otherobjs[g]),t.line=C,setTimeout((function(){e.trigger("changedMeshLine",o.furnitures[g])}))):i.models.splice(i.models.indexOf(t),1)}))}))})),e.dispatcher.listen("selectMesh",(function(e){var t=e.points.reduce((function(e,t){return e.x+=t.x,e.y+=t.y,e}),{x:0,y:0});t={x:t.x/e.points.length,y:t.y/e.points.length},i.down(t,!1),i.up()})),e.dispatcher.listen("unSelectMesh",(function(e){i.down({x:-1e4,y:-1e3},!1),i.up()})),e.dispatcher.listen("moveMesh",(function(e,t){e.initialPoints||(e.initialPoints=e.points.map((function(e){return N({},e)})));var o={x:t.x-e.__startMove.x,y:t.y-e.__startMove.y};e.__startMove=t;var g=[o,{x:0,y:0},i];e.move.apply(e,g)})),e.dispatcher.listen("scaleMesh",(function(e,t,o){e.initialPoints||(e.initialPoints=e.points.map((function(e){return N({},e)})));var g=t;e.__startMove=t;var n=[g,{x:0,y:0},o,i];e.scale.apply(e,n)})),e.dispatcher.listen("meshOperEnd",(function(e){clearTimeout(o),e._up(),i.trigger("change")})),e.dispatcher.listen("regMesh",(function(t,i,o){e.addMesh(t,i,!0,o)})),e.dispatcher.listen("delMesh",(function(g){for(var n,a=null,A=Object.keys(t.faces),r=0;(n=A[r])&&!(a=t.faces[n].find((function(e){return~e.__furnitures.indexOf(g)})));r++);!function(e,t,i){var o=t.__furnitures.indexOf(i);~o&&(t.__loaddingModels.splice(o,1),t.__furnitures.splice(o,1),t.otherobjs.splice(o,1),e.renderer.models.splice(e.renderer.models.indexOf(i),1),e.trigger("delMesh",i))}(e,a,g),clearTimeout(o),i.trigger("change"),i.render(!1)}));var o=null;e.dispatcher.listen("meshChangeSize",(function(e,t){if(t.width){var g=function(t,i){e instanceof F?t?(e.points[1][A]=i,e.points[3][A]=i):(e.points[2][A]=i,e.points[0][A]=i):e.points[t][A]=i},n=y.a.lineVector(e.line),a=n.x,A=(n.y,a?"x":"y"),r=!0,C=e.points[0][A]>e.points[1][A]?0:1,I=[N({},e.points[0]),N({},e.points[1])],s=t.width-y.a.lineDistance(I),l={x:(e.points[0].x+e.points[1].x)/2,y:(e.points[0].y+e.points[1].y)/2};if(g(C,l[A]+t.width/2),g(C?0:1,l[A]-t.width/2),e.detection()||(g(C,I[C][A]+s),g(C?0:1,I[C?0:1][A]),e.detection()||(g(C,I[C?0:1][A]-s),g(C,I[C][A]),e.detection()||(r=!1,g(C?0:1,I[C?0:1][A])))),!r){var c,u=s/100,d=[],h=[e.points[C],e.points[C?0:1]],p=[u,-u],f=2;for(c=0;c<100;c++){var m=h[c%f],v=p[c%f];if(g(m,e.points[m]+v),e.detection()||(m[A]=m[A]-v,c--,d.push(m),h.splice(h.indexOf(m),1),p.splice(p.indexOf(v),1),f--),0===f)break}100!==c&&(g(C,I[C][A]),g(C?0:1,I[C?0:1][A]))}e.trigger("changePoints"),i.render(!1)}if(t.thickness&&e instanceof F){e.initialPoints||(e.initialPoints=e.points.map((function(e){return N({},e)})));var b=t.thickness-y.a.lineDistance([e.points[1],e.points[3]]),w=y.a.lineVector({points:[e.points[1],e.points[3]]}),x=y.a.lineVector(e.line);-1!==w.x&&-1!==w.y||(b=-b);var E={x:0,y:0};x.x?E.y=b:E.x=b;var P=[E,{x:0,y:0},[e.points[3],e.points[2]],i];e.scale.apply(e,P),e.initialPoints=null}t.top&&(e.origin.origin=t.top),t.bottom&&(e.origin.bottom=t.bottom),o||(o=setTimeout((function(){return i.trigger("change"),o=null}),1e3))}))}}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,i){e.exports=i(145)("native-function-to-string",Function.toString)},function(e,t,i){var o=i(218);e.exports=function(e,t){return new(o(e))(t)}},function(e,t,i){var o=i(68),g=i(208),n=i(56)("species");e.exports=function(e){var t;return g(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!g(t.prototype)||(t=void 0),o(t)&&null===(t=t[n])&&(t=void 0)),void 0===t?Array:t}},function(e,t,i){"use strict";var o=i(158);i(58)({target:"RegExp",proto:!0,forced:o!==/./.exec},{exec:o})},function(e,t,i){"use strict";var o=i(65);e.exports=function(e,t){return!!e&&o((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,i){"use strict";var o=i(55),g=i(70),n=i(112),a=i(185),A=i(81),r=i(132),C=i(65),I=i(133),s=i(97),l=i(74),c=i(186),u=i(116).f,d=i(73).f,h=i(163),p=i(122),f=o.ArrayBuffer,m=o.DataView,v=o.Math,y=o.RangeError,b=o.Infinity,w=f,x=v.abs,E=v.pow,P=v.floor,T=v.log,D=v.LN2,M=g?"_b":"buffer",S=g?"_l":"byteLength",R=g?"_o":"byteOffset";function k(e,t,i){var o,g,n,a=new Array(i),A=8*i-t-1,r=(1<<A)-1,C=r>>1,I=23===t?E(2,-24)-E(2,-77):0,s=0,l=e<0||0===e&&1/e<0?1:0;for((e=x(e))!=e||e===b?(g=e!=e?1:0,o=r):(o=P(T(e)/D),e*(n=E(2,-o))<1&&(o--,n*=2),(e+=o+C>=1?I/n:I*E(2,1-C))*n>=2&&(o++,n/=2),o+C>=r?(g=0,o=r):o+C>=1?(g=(e*n-1)*E(2,t),o+=C):(g=e*E(2,C-1)*E(2,t),o=0));t>=8;a[s++]=255&g,g/=256,t-=8);for(o=o<<t|g,A+=t;A>0;a[s++]=255&o,o/=256,A-=8);return a[--s]|=128*l,a}function O(e,t,i){var o,g=8*i-t-1,n=(1<<g)-1,a=n>>1,A=g-7,r=i-1,C=e[r--],I=127&C;for(C>>=7;A>0;I=256*I+e[r],r--,A-=8);for(o=I&(1<<-A)-1,I>>=-A,A+=t;A>0;o=256*o+e[r],r--,A-=8);if(0===I)I=1-a;else{if(I===n)return o?NaN:C?-b:b;o+=E(2,t),I-=a}return(C?-1:1)*o*E(2,I-t)}function L(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function B(e){return[255&e]}function F(e){return[255&e,e>>8&255]}function j(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function N(e){return k(e,52,8)}function H(e){return k(e,23,4)}function z(e,t,i){d(e.prototype,t,{get:function(){return this[i]}})}function V(e,t,i,o){var g=c(+i);if(g+t>e[S])throw y("Wrong index!");var n=e[M]._b,a=g+e[R],A=n.slice(a,a+t);return o?A:A.reverse()}function G(e,t,i,o,g,n){var a=c(+i);if(a+t>e[S])throw y("Wrong index!");for(var A=e[M]._b,r=a+e[R],C=o(+g),I=0;I<t;I++)A[r+I]=C[n?I:t-I-1]}if(a.ABV){if(!C((function(){f(1)}))||!C((function(){new f(-1)}))||C((function(){return new f,new f(1.5),new f(NaN),"ArrayBuffer"!=f.name}))){for(var W,U=(f=function(e){return I(this,f),new w(c(e))}).prototype=w.prototype,Q=u(w),Y=0;Q.length>Y;)(W=Q[Y++])in f||A(f,W,w[W]);n||(U.constructor=f)}var Z=new m(new f(2)),X=m.prototype.setInt8;Z.setInt8(0,2147483648),Z.setInt8(1,2147483649),!Z.getInt8(0)&&Z.getInt8(1)||r(m.prototype,{setInt8:function(e,t){X.call(this,e,t<<24>>24)},setUint8:function(e,t){X.call(this,e,t<<24>>24)}},!0)}else f=function(e){I(this,f,"ArrayBuffer");var t=c(e);this._b=h.call(new Array(t),0),this[S]=t},m=function(e,t,i){I(this,m,"DataView"),I(e,f,"DataView");var o=e[S],g=s(t);if(g<0||g>o)throw y("Wrong offset!");if(g+(i=void 0===i?o-g:l(i))>o)throw y("Wrong length!");this[M]=e,this[R]=g,this[S]=i},g&&(z(f,"byteLength","_l"),z(m,"buffer","_b"),z(m,"byteLength","_l"),z(m,"byteOffset","_o")),r(m.prototype,{getInt8:function(e){return V(this,1,e)[0]<<24>>24},getUint8:function(e){return V(this,1,e)[0]},getInt16:function(e){var t=V(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=V(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return L(V(this,4,e,arguments[1]))},getUint32:function(e){return L(V(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return O(V(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return O(V(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){G(this,1,e,B,t)},setUint8:function(e,t){G(this,1,e,B,t)},setInt16:function(e,t){G(this,2,e,F,t,arguments[2])},setUint16:function(e,t){G(this,2,e,F,t,arguments[2])},setInt32:function(e,t){G(this,4,e,j,t,arguments[2])},setUint32:function(e,t){G(this,4,e,j,t,arguments[2])},setFloat32:function(e,t){G(this,4,e,H,t,arguments[2])},setFloat64:function(e,t){G(this,8,e,N,t,arguments[2])}});p(f,"ArrayBuffer"),p(m,"DataView"),A(m.prototype,a.VIEW,!0),t.ArrayBuffer=f,t.DataView=m},function(e,t,i){var o=i(73),g=i(67),n=i(128);e.exports=i(70)?Object.defineProperties:function(e,t){g(e);for(var i,a=n(t),A=a.length,r=0;A>r;)o.f(e,i=a[r++],t[i]);return e}},function(e,t,i){"use strict";var o=i(123),g=i(115),n=i(122),a={};i(81)(a,i(56)("iterator"),(function(){return this})),e.exports=function(e,t,i){e.prototype=o(a,{next:g(1,i)}),n(e,t+" Iterator")}},function(e,t,i){"use strict";var o=i(85),g=i(134),n=i(74);e.exports=[].copyWithin||function(e,t){var i=o(this),a=n(i.length),A=g(e,a),r=g(t,a),C=arguments.length>2?arguments[2]:void 0,I=Math.min((void 0===C?a:g(C,a))-r,a-A),s=1;for(r<A&&A<r+I&&(s=-1,r+=I-1,A+=I-1);I-- >0;)r in i?i[A]=i[r]:delete i[A],A+=s,r+=s;return i}},function(e,t,i){var o=i(68),g=i(67),n=function(e,t){if(g(e),!o(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,o){try{(o=i(94)(Function.call,i(135).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,i){return n(e,i),t?e.__proto__=i:o(e,i),e}}({},!1):void 0),check:n}},function(e,t,i){i(70)&&"g"!=/./g.flags&&i(73).f(RegExp.prototype,"flags",{configurable:!0,get:i(130)})},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,i){(function(t){function i(e){Math.round;var i,o,g,n,a,A=Math.floor,r=new Array(64),C=new Array(64),I=new Array(64),s=new Array(64),l=new Array(65535),c=new Array(65535),u=new Array(64),d=new Array(64),h=[],p=0,f=7,m=new Array(64),v=new Array(64),y=new Array(64),b=new Array(256),w=new Array(2048),x=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],E=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],P=[0,1,2,3,4,5,6,7,8,9,10,11],T=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],D=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],M=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],R=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],k=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function O(e,t){for(var i=0,o=0,g=new Array,n=1;n<=16;n++){for(var a=1;a<=e[n];a++)g[t[o]]=[],g[t[o]][0]=i,g[t[o]][1]=n,o++,i++;i*=2}return g}function L(e){for(var t=e[0],i=e[1]-1;i>=0;)t&1<<i&&(p|=1<<f),i--,--f<0&&(255==p?(B(255),B(0)):B(p),f=7,p=0)}function B(e){h.push(e)}function F(e){B(e>>8&255),B(255&e)}function j(e,t,i,o,g){for(var n,a=g[0],A=g[240],r=function(e,t){var i,o,g,n,a,A,r,C,I,s,l=0;for(I=0;I<8;++I){i=e[l],o=e[l+1],g=e[l+2],n=e[l+3],a=e[l+4],A=e[l+5],r=e[l+6];var c=i+(C=e[l+7]),d=i-C,h=o+r,p=o-r,f=g+A,m=g-A,v=n+a,y=n-a,b=c+v,w=c-v,x=h+f,E=h-f;e[l]=b+x,e[l+4]=b-x;var P=.707106781*(E+w);e[l+2]=w+P,e[l+6]=w-P;var T=.382683433*((b=y+m)-(E=p+d)),D=.5411961*b+T,M=1.306562965*E+T,S=.707106781*(x=m+p),R=d+S,k=d-S;e[l+5]=k+D,e[l+3]=k-D,e[l+1]=R+M,e[l+7]=R-M,l+=8}for(l=0,I=0;I<8;++I){i=e[l],o=e[l+8],g=e[l+16],n=e[l+24],a=e[l+32],A=e[l+40],r=e[l+48];var O=i+(C=e[l+56]),L=i-C,B=o+r,F=o-r,j=g+A,N=g-A,H=n+a,z=n-a,V=O+H,G=O-H,W=B+j,U=B-j;e[l]=V+W,e[l+32]=V-W;var Q=.707106781*(U+G);e[l+16]=G+Q,e[l+48]=G-Q;var Y=.382683433*((V=z+N)-(U=F+L)),Z=.5411961*V+Y,X=1.306562965*U+Y,J=.707106781*(W=N+F),K=L+J,q=L-J;e[l+40]=q+Z,e[l+24]=q-Z,e[l+8]=K+X,e[l+56]=K-X,l++}for(I=0;I<64;++I)s=e[I]*t[I],u[I]=s>0?s+.5|0:s-.5|0;return u}(e,t),C=0;C<64;++C)d[x[C]]=r[C];var I=d[0]-i;i=d[0],0==I?L(o[0]):(L(o[c[n=32767+I]]),L(l[n]));for(var s=63;s>0&&0==d[s];s--);if(0==s)return L(a),i;for(var h,p=1;p<=s;){for(var f=p;0==d[p]&&p<=s;++p);var m=p-f;if(m>=16){h=m>>4;for(var v=1;v<=h;++v)L(A);m&=15}n=32767+d[p],L(g[(m<<4)+c[n]]),L(l[n]),p++}return 63!=s&&L(a),i}function N(e){if(e<=0&&(e=1),e>100&&(e=100),a!=e){(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],i=0;i<64;i++){var o=A((t[i]*e+50)/100);o<1?o=1:o>255&&(o=255),r[x[i]]=o}for(var g=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],n=0;n<64;n++){var a=A((g[n]*e+50)/100);a<1?a=1:a>255&&(a=255),C[x[n]]=a}for(var l=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],c=0,u=0;u<8;u++)for(var d=0;d<8;d++)I[c]=1/(r[x[c]]*l[u]*l[d]*8),s[c]=1/(C[x[c]]*l[u]*l[d]*8),c++})(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),a=e}}this.encode=function(e,a){(new Date).getTime();a&&N(a),h=new Array,p=0,f=7,F(65496),F(65504),F(16),B(74),B(70),B(73),B(70),B(0),B(1),B(1),B(0),F(1),F(1),B(0),B(0),function(){F(65499),F(132),B(0);for(var e=0;e<64;e++)B(r[e]);B(1);for(var t=0;t<64;t++)B(C[t])}(),function(e,t){F(65472),F(17),B(8),F(t),F(e),B(3),B(1),B(17),B(0),B(2),B(17),B(1),B(3),B(17),B(1)}(e.width,e.height),function(){F(65476),F(418),B(0);for(var e=0;e<16;e++)B(E[e+1]);for(var t=0;t<=11;t++)B(P[t]);B(16);for(var i=0;i<16;i++)B(T[i+1]);for(var o=0;o<=161;o++)B(D[o]);B(1);for(var g=0;g<16;g++)B(M[g+1]);for(var n=0;n<=11;n++)B(S[n]);B(17);for(var a=0;a<16;a++)B(R[a+1]);for(var A=0;A<=161;A++)B(k[A])}(),F(65498),F(12),B(3),B(1),B(0),B(2),B(17),B(3),B(17),B(0),B(63),B(0);var A=0,l=0,c=0;p=0,f=7,this.encode.displayName="_encode_";for(var u,d,b,x,O,H,z,V,G,W=e.data,U=e.width,Q=e.height,Y=4*U,Z=0;Z<Q;){for(u=0;u<Y;){for(H=O=Y*Z+u,z=-1,V=0,G=0;G<64;G++)H=O+(V=G>>3)*Y+(z=4*(7&G)),Z+V>=Q&&(H-=Y*(Z+1+V-Q)),u+z>=Y&&(H-=u+z-Y+4),d=W[H++],b=W[H++],x=W[H++],m[G]=(w[d]+w[b+256>>0]+w[x+512>>0]>>16)-128,v[G]=(w[d+768>>0]+w[b+1024>>0]+w[x+1280>>0]>>16)-128,y[G]=(w[d+1280>>0]+w[b+1536>>0]+w[x+1792>>0]>>16)-128;A=j(m,I,A,i,g),l=j(v,s,l,o,n),c=j(y,s,c,o,n),u+=32}Z+=8}if(f>=0){var X=[];X[1]=f+1,X[0]=(1<<f+1)-1,L(X)}return F(65497),new t(h)},function(){(new Date).getTime();e||(e=50),function(){for(var e=String.fromCharCode,t=0;t<256;t++)b[t]=e(t)}(),i=O(E,P),o=O(M,S),g=O(T,D),n=O(R,k),function(){for(var e=1,t=2,i=1;i<=15;i++){for(var o=e;o<t;o++)c[32767+o]=i,l[32767+o]=[],l[32767+o][1]=i,l[32767+o][0]=o;for(var g=-(t-1);g<=-e;g++)c[32767+g]=i,l[32767+g]=[],l[32767+g][1]=i,l[32767+g][0]=t-1+g;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)w[e]=19595*e,w[e+256>>0]=38470*e,w[e+512>>0]=7471*e+32768,w[e+768>>0]=-11059*e,w[e+1024>>0]=-21709*e,w[e+1280>>0]=32768*e+8421375,w[e+1536>>0]=-27439*e,w[e+1792>>0]=-5329*e}(),N(e),(new Date).getTime()}()}void 0!==typeof e&&(e.exports=function(e,t){void 0===t&&(t=50);return{data:new i(t).encode(e,t),width:e.width,height:e.height}})}).call(this,i(193).Buffer)},function(e,t,i){"use strict";t.byteLength=function(e){var t=C(e),i=t[0],o=t[1];return 3*(i+o)/4-o},t.toByteArray=function(e){var t,i,o=C(e),a=o[0],A=o[1],r=new n(function(e,t,i){return 3*(t+i)/4-i}(0,a,A)),I=0,s=A>0?a-4:a;for(i=0;i<s;i+=4)t=g[e.charCodeAt(i)]<<18|g[e.charCodeAt(i+1)]<<12|g[e.charCodeAt(i+2)]<<6|g[e.charCodeAt(i+3)],r[I++]=t>>16&255,r[I++]=t>>8&255,r[I++]=255&t;2===A&&(t=g[e.charCodeAt(i)]<<2|g[e.charCodeAt(i+1)]>>4,r[I++]=255&t);1===A&&(t=g[e.charCodeAt(i)]<<10|g[e.charCodeAt(i+1)]<<4|g[e.charCodeAt(i+2)]>>2,r[I++]=t>>8&255,r[I++]=255&t);return r},t.fromByteArray=function(e){for(var t,i=e.length,g=i%3,n=[],a=0,A=i-g;a<A;a+=16383)n.push(I(e,a,a+16383>A?A:a+16383));1===g?(t=e[i-1],n.push(o[t>>2]+o[t<<4&63]+"==")):2===g&&(t=(e[i-2]<<8)+e[i-1],n.push(o[t>>10]+o[t>>4&63]+o[t<<2&63]+"="));return n.join("")};for(var o=[],g=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",A=0,r=a.length;A<r;++A)o[A]=a[A],g[a.charCodeAt(A)]=A;function C(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function I(e,t,i){for(var g,n,a=[],A=t;A<i;A+=3)g=(e[A]<<16&16711680)+(e[A+1]<<8&65280)+(255&e[A+2]),a.push(o[(n=g)>>18&63]+o[n>>12&63]+o[n>>6&63]+o[63&n]);return a.join("")}g["-".charCodeAt(0)]=62,g["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,i,o,g){var n,a,A=8*g-o-1,r=(1<<A)-1,C=r>>1,I=-7,s=i?g-1:0,l=i?-1:1,c=e[t+s];for(s+=l,n=c&(1<<-I)-1,c>>=-I,I+=A;I>0;n=256*n+e[t+s],s+=l,I-=8);for(a=n&(1<<-I)-1,n>>=-I,I+=o;I>0;a=256*a+e[t+s],s+=l,I-=8);if(0===n)n=1-C;else{if(n===r)return a?NaN:1/0*(c?-1:1);a+=Math.pow(2,o),n-=C}return(c?-1:1)*a*Math.pow(2,n-o)},t.write=function(e,t,i,o,g,n){var a,A,r,C=8*n-g-1,I=(1<<C)-1,s=I>>1,l=23===g?Math.pow(2,-24)-Math.pow(2,-77):0,c=o?0:n-1,u=o?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(A=isNaN(t)?1:0,a=I):(a=Math.floor(Math.log(t)/Math.LN2),t*(r=Math.pow(2,-a))<1&&(a--,r*=2),(t+=a+s>=1?l/r:l*Math.pow(2,1-s))*r>=2&&(a++,r/=2),a+s>=I?(A=0,a=I):a+s>=1?(A=(t*r-1)*Math.pow(2,g),a+=s):(A=t*Math.pow(2,s-1)*Math.pow(2,g),a=0));g>=8;e[i+c]=255&A,c+=u,A/=256,g-=8);for(a=a<<g|A,C+=g;C>0;e[i+c]=255&a,c+=u,a/=256,C-=8);e[i+c-u]|=128*d}},function(e,t){var i={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==i.call(e)}},function(e,t,i){(function(t){var i=function(){"use strict";var e=new Int32Array([0,1,8,16,9,2,3,10,17,24,32,25,18,11,4,5,12,19,26,33,40,48,41,34,27,20,13,6,7,14,21,28,35,42,49,56,57,50,43,36,29,22,15,23,30,37,44,51,58,59,52,45,38,31,39,46,53,60,61,54,47,55,62,63]);function t(){}function i(e,t){for(var i,o,g=0,n=[],a=16;a>0&&!e[a-1];)a--;n.push({children:[],index:0});var A,r=n[0];for(i=0;i<a;i++){for(o=0;o<e[i];o++){for((r=n.pop()).children[r.index]=t[g];r.index>0;){if(0===n.length)throw new Error("Could not recreate Huffman Table");r=n.pop()}for(r.index++,n.push(r);n.length<=i;)n.push(A={children:[],index:0}),r.children[r.index]=A.children,r=A;g++}i+1<a&&(n.push(A={children:[],index:0}),r.children[r.index]=A.children,r=A)}return n[0].children}function o(t,i,o,g,n,a,A,r,C){o.precision,o.samplesPerLine,o.scanLines;var I=o.mcusPerLine,s=o.progressive,l=(o.maxH,o.maxV,i),c=0,u=0;function d(){if(u>0)return u--,c>>u&1;if(255==(c=t[i++])){var e=t[i++];if(e)throw new Error("unexpected marker: "+(c<<8|e).toString(16))}return u=7,c>>>7}function h(e){for(var t,i=e;null!==(t=d());){if("number"==typeof(i=i[t]))return i;if("object"!=typeof i)throw new Error("invalid huffman sequence")}return null}function p(e){for(var t=0;e>0;){var i=d();if(null===i)return;t=t<<1|i,e--}return t}function f(e){var t=p(e);return t>=1<<e-1?t:t+(-1<<e)+1}var m=0;var v,y=0;function b(e,t,i,o,g){var n=i%I,a=(i/I|0)*e.v+o,A=n*e.h+g;t(e,e.blocks[a][A])}function w(e,t,i){var o=i/e.blocksPerLine|0,g=i%e.blocksPerLine;t(e,e.blocks[o][g])}var x,E,P,T,D,M,S=g.length;M=s?0===a?0===r?function(e,t){var i=h(e.huffmanTableDC),o=0===i?0:f(i)<<C;t[0]=e.pred+=o}:function(e,t){t[0]|=d()<<C}:0===r?function(t,i){if(m>0)m--;else for(var o=a,g=A;o<=g;){var n=h(t.huffmanTableAC),r=15&n,I=n>>4;if(0!==r){i[e[o+=I]]=f(r)*(1<<C),o++}else{if(I<15){m=p(I)+(1<<I)-1;break}o+=16}}}:function(t,i){for(var o=a,g=A,n=0;o<=g;){var r=e[o],I=i[r]<0?-1:1;switch(y){case 0:var s=h(t.huffmanTableAC),l=15&s;n=s>>4;if(0===l)n<15?(m=p(n)+(1<<n),y=4):(n=16,y=1);else{if(1!==l)throw new Error("invalid ACn encoding");v=f(l),y=n?2:3}continue;case 1:case 2:i[r]?i[r]+=(d()<<C)*I:0===--n&&(y=2==y?3:0);break;case 3:i[r]?i[r]+=(d()<<C)*I:(i[r]=v<<C,y=0);break;case 4:i[r]&&(i[r]+=(d()<<C)*I)}o++}4===y&&0===--m&&(y=0)}:function(t,i){var o=h(t.huffmanTableDC),g=0===o?0:f(o);i[0]=t.pred+=g;for(var n=1;n<64;){var a=h(t.huffmanTableAC),A=15&a,r=a>>4;if(0!==A){i[e[n+=r]]=f(A),n++}else{if(r<15)break;n+=16}}};var R,k,O,L,B=0;for(k=1==S?g[0].blocksPerLine*g[0].blocksPerColumn:I*o.mcusPerColumn,n||(n=k);B<k;){for(E=0;E<S;E++)g[E].pred=0;if(m=0,1==S)for(x=g[0],D=0;D<n;D++)w(x,M,B),B++;else for(D=0;D<n;D++){for(E=0;E<S;E++)for(O=(x=g[E]).h,L=x.v,P=0;P<L;P++)for(T=0;T<O;T++)b(x,M,B,P,T);if(++B===k)break}if(u=0,(R=t[i]<<8|t[i+1])<65280)throw new Error("marker was not found");if(!(R>=65488&&R<=65495))break;i+=2}return i-l}function g(e,t){var i,o,g=[],n=t.blocksPerLine,a=t.blocksPerColumn,A=n<<3,r=new Int32Array(64),C=new Uint8Array(64);function I(e,i,o){var g,n,a,A,r,C,I,s,l,c,u=t.quantizationTable,d=o;for(c=0;c<64;c++)d[c]=e[c]*u[c];for(c=0;c<8;++c){var h=8*c;0!=d[1+h]||0!=d[2+h]||0!=d[3+h]||0!=d[4+h]||0!=d[5+h]||0!=d[6+h]||0!=d[7+h]?(g=5793*d[0+h]+128>>8,n=5793*d[4+h]+128>>8,a=d[2+h],A=d[6+h],r=2896*(d[1+h]-d[7+h])+128>>8,s=2896*(d[1+h]+d[7+h])+128>>8,C=d[3+h]<<4,l=g-n+1>>1,g=g+n+1>>1,n=l,l=3784*a+1567*A+128>>8,a=1567*a-3784*A+128>>8,A=l,l=r-(I=d[5+h]<<4)+1>>1,r=r+I+1>>1,I=l,l=s+C+1>>1,C=s-C+1>>1,s=l,l=g-A+1>>1,g=g+A+1>>1,A=l,l=n-a+1>>1,n=n+a+1>>1,a=l,l=2276*r+3406*s+2048>>12,r=3406*r-2276*s+2048>>12,s=l,l=799*C+4017*I+2048>>12,C=4017*C-799*I+2048>>12,I=l,d[0+h]=g+s,d[7+h]=g-s,d[1+h]=n+I,d[6+h]=n-I,d[2+h]=a+C,d[5+h]=a-C,d[3+h]=A+r,d[4+h]=A-r):(l=5793*d[0+h]+512>>10,d[0+h]=l,d[1+h]=l,d[2+h]=l,d[3+h]=l,d[4+h]=l,d[5+h]=l,d[6+h]=l,d[7+h]=l)}for(c=0;c<8;++c){var p=c;0!=d[8+p]||0!=d[16+p]||0!=d[24+p]||0!=d[32+p]||0!=d[40+p]||0!=d[48+p]||0!=d[56+p]?(g=5793*d[0+p]+2048>>12,n=5793*d[32+p]+2048>>12,a=d[16+p],A=d[48+p],r=2896*(d[8+p]-d[56+p])+2048>>12,s=2896*(d[8+p]+d[56+p])+2048>>12,C=d[24+p],l=g-n+1>>1,g=g+n+1>>1,n=l,l=3784*a+1567*A+2048>>12,a=1567*a-3784*A+2048>>12,A=l,l=r-(I=d[40+p])+1>>1,r=r+I+1>>1,I=l,l=s+C+1>>1,C=s-C+1>>1,s=l,l=g-A+1>>1,g=g+A+1>>1,A=l,l=n-a+1>>1,n=n+a+1>>1,a=l,l=2276*r+3406*s+2048>>12,r=3406*r-2276*s+2048>>12,s=l,l=799*C+4017*I+2048>>12,C=4017*C-799*I+2048>>12,I=l,d[0+p]=g+s,d[56+p]=g-s,d[8+p]=n+I,d[48+p]=n-I,d[16+p]=a+C,d[40+p]=a-C,d[24+p]=A+r,d[32+p]=A-r):(l=5793*o[c+0]+8192>>14,d[0+p]=l,d[8+p]=l,d[16+p]=l,d[24+p]=l,d[32+p]=l,d[40+p]=l,d[48+p]=l,d[56+p]=l)}for(c=0;c<64;++c){var f=128+(d[c]+8>>4);i[c]=f<0?0:f>255?255:f}}for(var s=0;s<a;s++){var l=s<<3;for(i=0;i<8;i++)g.push(new Uint8Array(A));for(var c=0;c<n;c++){I(t.blocks[s][c],C,r);var u=0,d=c<<3;for(o=0;o<8;o++){var h=g[l+o];for(i=0;i<8;i++)h[d+i]=C[u++]}}}return g}function n(e){return e<0?0:e>255?255:e}return t.prototype={load:function(e){var t=new XMLHttpRequest;t.open("GET",e,!0),t.responseType="arraybuffer",t.onload=function(){var e=new Uint8Array(t.response||t.mozResponseArrayBuffer);this.parse(e),this.onload&&this.onload()}.bind(this),t.send(null)},parse:function(t){var n=0;t.length;function a(){var e=t[n]<<8|t[n+1];return n+=2,e}function A(){var e=a(),i=t.subarray(n,n+e-2);return n+=i.length,i}function r(e){var t,i,o=0,g=0;for(i in e.components)e.components.hasOwnProperty(i)&&(o<(t=e.components[i]).h&&(o=t.h),g<t.v&&(g=t.v));var n=Math.ceil(e.samplesPerLine/8/o),a=Math.ceil(e.scanLines/8/g);for(i in e.components)if(e.components.hasOwnProperty(i)){t=e.components[i];for(var A=Math.ceil(Math.ceil(e.samplesPerLine/8)*t.h/o),r=Math.ceil(Math.ceil(e.scanLines/8)*t.v/g),C=n*t.h,I=a*t.v,s=[],l=0;l<I;l++){for(var c=[],u=0;u<C;u++)c.push(new Int32Array(64));s.push(c)}t.blocksPerLine=A,t.blocksPerColumn=r,t.blocks=s}e.maxH=o,e.maxV=g,e.mcusPerLine=n,e.mcusPerColumn=a}var C,I,s=null,l=null,c=[],u=[],d=[],h=[],p=a();if(65496!=p)throw new Error("SOI not found");for(p=a();65497!=p;){switch(p){case 65280:break;case 65504:case 65505:case 65506:case 65507:case 65508:case 65509:case 65510:case 65511:case 65512:case 65513:case 65514:case 65515:case 65516:case 65517:case 65518:case 65519:case 65534:var f=A();65504===p&&74===f[0]&&70===f[1]&&73===f[2]&&70===f[3]&&0===f[4]&&(s={version:{major:f[5],minor:f[6]},densityUnits:f[7],xDensity:f[8]<<8|f[9],yDensity:f[10]<<8|f[11],thumbWidth:f[12],thumbHeight:f[13],thumbData:f.subarray(14,14+3*f[12]*f[13])}),65518===p&&65===f[0]&&100===f[1]&&111===f[2]&&98===f[3]&&101===f[4]&&0===f[5]&&(l={version:f[6],flags0:f[7]<<8|f[8],flags1:f[9]<<8|f[10],transformCode:f[11]});break;case 65499:for(var m=a()+n-2;n<m;){var v=t[n++],y=new Int32Array(64);if(v>>4==0)for(V=0;V<64;V++){y[e[V]]=t[n++]}else{if(v>>4!=1)throw new Error("DQT: invalid table spec");for(V=0;V<64;V++){y[e[V]]=a()}}c[15&v]=y}break;case 65472:case 65473:case 65474:a(),(C={}).extended=65473===p,C.progressive=65474===p,C.precision=t[n++],C.scanLines=a(),C.samplesPerLine=a(),C.components={},C.componentsOrder=[];var b,w=t[n++];for(H=0;H<w;H++){b=t[n];var x=t[n+1]>>4,E=15&t[n+1],P=t[n+2];C.componentsOrder.push(b),C.components[b]={h:x,v:E,quantizationIdx:P},n+=3}r(C),u.push(C);break;case 65476:var T=a();for(H=2;H<T;){var D=t[n++],M=new Uint8Array(16),S=0;for(V=0;V<16;V++,n++)S+=M[V]=t[n];var R=new Uint8Array(S);for(V=0;V<S;V++,n++)R[V]=t[n];H+=17+S,(D>>4==0?h:d)[15&D]=i(M,R)}break;case 65501:a(),I=a();break;case 65498:a();var k=t[n++],O=[];for(H=0;H<k;H++){G=C.components[t[n++]];var L=t[n++];G.huffmanTableDC=h[L>>4],G.huffmanTableAC=d[15&L],O.push(G)}var B=t[n++],F=t[n++],j=t[n++],N=o(t,n,C,O,I,B,F,j>>4,15&j);n+=N;break;case 65535:255!==t[n]&&n--;break;default:if(255==t[n-3]&&t[n-2]>=192&&t[n-2]<=254){n-=3;break}throw new Error("unknown JPEG marker "+p.toString(16))}p=a()}if(1!=u.length)throw new Error("only single frame JPEGs supported");for(var H=0;H<u.length;H++){var z=u[H].components;for(var V in z)z[V].quantizationTable=c[z[V].quantizationIdx],delete z[V].quantizationIdx}this.width=C.samplesPerLine,this.height=C.scanLines,this.jfif=s,this.adobe=l,this.components=[];for(H=0;H<C.componentsOrder.length;H++){var G=C.components[C.componentsOrder[H]];this.components.push({lines:g(0,G),scaleX:G.h/C.maxH,scaleY:G.v/C.maxV})}},getData:function(e,t){var i,o,g,a,A,r,C,I,s,l,c,u,d,h,p,f,m,v,y,b,w,x=this.width/e,E=this.height/t,P=0,T=e*t*this.components.length,D=new Uint8Array(T);switch(this.components.length){case 1:for(i=this.components[0],l=0;l<t;l++)for(A=i.lines[0|l*i.scaleY*E],s=0;s<e;s++)c=A[0|s*i.scaleX*x],D[P++]=c;break;case 2:for(i=this.components[0],o=this.components[1],l=0;l<t;l++)for(A=i.lines[0|l*i.scaleY*E],r=o.lines[0|l*o.scaleY*E],s=0;s<e;s++)c=A[0|s*i.scaleX*x],D[P++]=c,c=r[0|s*o.scaleX*x],D[P++]=c;break;case 3:for(w=!0,this.adobe&&this.adobe.transformCode?w=!0:void 0!==this.colorTransform&&(w=!!this.colorTransform),i=this.components[0],o=this.components[1],g=this.components[2],l=0;l<t;l++)for(A=i.lines[0|l*i.scaleY*E],r=o.lines[0|l*o.scaleY*E],C=g.lines[0|l*g.scaleY*E],s=0;s<e;s++)w?(c=A[0|s*i.scaleX*x],u=r[0|s*o.scaleX*x],v=n(c+1.402*((d=C[0|s*g.scaleX*x])-128)),y=n(c-.3441363*(u-128)-.71413636*(d-128)),b=n(c+1.772*(u-128))):(v=A[0|s*i.scaleX*x],y=r[0|s*o.scaleX*x],b=C[0|s*g.scaleX*x]),D[P++]=v,D[P++]=y,D[P++]=b;break;case 4:if(!this.adobe)throw new Error("Unsupported color mode (4 components)");for(w=!1,this.adobe&&this.adobe.transformCode?w=!0:void 0!==this.colorTransform&&(w=!!this.colorTransform),i=this.components[0],o=this.components[1],g=this.components[2],a=this.components[3],l=0;l<t;l++)for(A=i.lines[0|l*i.scaleY*E],r=o.lines[0|l*o.scaleY*E],C=g.lines[0|l*g.scaleY*E],I=a.lines[0|l*a.scaleY*E],s=0;s<e;s++)w?(c=A[0|s*i.scaleX*x],u=r[0|s*o.scaleX*x],d=C[0|s*g.scaleX*x],h=I[0|s*a.scaleX*x],p=255-n(c+1.402*(d-128)),f=255-n(c-.3441363*(u-128)-.71413636*(d-128)),m=255-n(c+1.772*(u-128))):(p=A[0|s*i.scaleX*x],f=r[0|s*o.scaleX*x],m=C[0|s*g.scaleX*x],h=I[0|s*a.scaleX*x]),D[P++]=255-p,D[P++]=255-f,D[P++]=255-m,D[P++]=255-h;break;default:throw new Error("Unsupported color mode")}return D},copyToImageData:function(e,t){var i,o,g,a,A,r,C,I,s,l=e.width,c=e.height,u=e.data,d=this.getData(l,c),h=0,p=0;switch(this.components.length){case 1:for(o=0;o<c;o++)for(i=0;i<l;i++)g=d[h++],u[p++]=g,u[p++]=g,u[p++]=g,t&&(u[p++]=255);break;case 3:for(o=0;o<c;o++)for(i=0;i<l;i++)C=d[h++],I=d[h++],s=d[h++],u[p++]=C,u[p++]=I,u[p++]=s,t&&(u[p++]=255);break;case 4:for(o=0;o<c;o++)for(i=0;i<l;i++)A=d[h++],r=d[h++],g=d[h++],C=255-n(A*(1-(a=d[h++])/255)+a),I=255-n(r*(1-a/255)+a),s=255-n(g*(1-a/255)+a),u[p++]=C,u[p++]=I,u[p++]=s,t&&(u[p++]=255);break;default:throw new Error("Unsupported color mode")}}},t}();e.exports=function(e,o){var g={useTArray:!1,colorTransform:void 0,formatAsRGBA:!0};o?"object"==typeof o?o={useTArray:void 0===o.useTArray?g.useTArray:o.useTArray,colorTransform:void 0===o.colorTransform?g.colorTransform:o.colorTransform,formatAsRGBA:void 0===o.formatAsRGBA?g.formatAsRGBA:o.formatAsRGBA}:(o=g).useTArray=!0:o=g;var n=new Uint8Array(e),a=new i;a.parse(n),a.colorTransform=o.colorTransform;var A=o.formatAsRGBA?4:3,r=a.width*a.height*A;try{var C={width:a.width,height:a.height,data:o.useTArray?new Uint8Array(r):new t(r)}}catch(e){throw e instanceof RangeError?new Error("Could not allocate enough memory for the image. Required: "+r):e}return a.copyToImageData(C,o.formatAsRGBA),C}}).call(this,i(193).Buffer)},function(e,t,i){"use strict";i(159)("fixed",(function(e){return function(){return e(this,"tt","","")}}))},function(e,t,i){"use strict";var o=i(103),g=i(68),n=i(194),a=[].slice,A={},r=function(e,t,i){if(!(t in A)){for(var o=[],g=0;g<t;g++)o[g]="a["+g+"]";A[t]=Function("F,a","return new F("+o.join(",")+")")}return A[t](e,i)};e.exports=Function.bind||function(e){var t=o(this),i=a.call(arguments,1),A=function(){var o=i.concat(a.call(arguments));return this instanceof A?r(t,o.length,o):n(t,o,e)};return g(t.prototype)&&(A.prototype=t.prototype),A}},function(e,t){function i(t,o){return e.exports=i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i(t,o)}e.exports=i},function(e,t,i){var o=i(55),g=i(197).set,n=o.MutationObserver||o.WebKitMutationObserver,a=o.process,A=o.Promise,r="process"==i(104)(a);e.exports=function(){var e,t,i,C=function(){var o,g;for(r&&(o=a.domain)&&o.exit();e;){g=e.fn,e=e.next;try{g()}catch(o){throw e?i():t=void 0,o}}t=void 0,o&&o.enter()};if(r)i=function(){a.nextTick(C)};else if(!n||o.navigator&&o.navigator.standalone)if(A&&A.resolve){var I=A.resolve(void 0);i=function(){I.then(C)}}else i=function(){g.call(o,C)};else{var s=!0,l=document.createTextNode("");new n(C).observe(l,{characterData:!0}),i=function(){l.data=s=!s}}return function(o){var g={fn:o,next:void 0};t&&(t.next=g),e||(e=g,i()),t=g}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,i){var o=i(55).navigator;e.exports=o&&o.userAgent||""},function(e,t,i){var o=i(67),g=i(68),n=i(198);e.exports=function(e,t){if(o(e),g(t)&&t.constructor===e)return t;var i=n.f(e);return(0,i.resolve)(t),i.promise}},function(e,t,i){var o=i(58),g=i(96),n=i(65),a=i(242),A="["+a+"]",r=RegExp("^"+A+A+"*"),C=RegExp(A+A+"*$"),I=function(e,t,i){var g={},A=n((function(){return!!a[e]()||"
"!="
"[e]()})),r=g[e]=A?t(s):a[e];i&&(g[i]=r),o(o.P+o.F*A,"String",g)},s=I.trim=function(e,t){return e=String(g(e)),1&t&&(e=e.replace(r,"")),2&t&&(e=e.replace(C,"")),e};e.exports=I},function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"},function(e,t,i){var o=i(155),g=i(96);e.exports=function(e,t,i){if(o(t))throw TypeError("String#"+i+" doesn't accept regex!");return String(g(e))}},function(e,t,i){var o=i(56)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(i){try{return t[o]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,i){"use strict";i.r(t);i(52),i(39);var o=i(48),g=i(57),n=i(10),a=i(32),A=i(6),r=(i(0),i(54)),C=i(21),I=i(171),s=i(36),l=n.default.getBlobSrc(A.a.Circle,!0),c=function(e){this.tag=e.tag,this.model=e.model,this.type=e.type,"addTag"==this.type&&(e.tag.snapInfo.nodeStart||(e.tag.snapInfo.nodeStart=e.model.panos.index[e.tag.snapInfo.panoId].position),this.fartherEnd=this.findfartherEnd(e.tag.snapInfo.nodeStart,e.tag.snapInfo.nodeEnd),this.rayLine=o.a.createLine([e.tag.snapInfo.nodeStart,this.fartherEnd],{width:3,deshed:!0}),this.rayLine.layers.set(s.a.TAG),this.getCameraNearPos(),this.model.add(this.rayLine)),this.groundPoint=this.findGroundPoint(e.tag.position.clone()),this.stemLine=o.a.createLine([e.tag.position,this.groundPoint],{width:2,color:e.stemLineColor||"#eee"});var t=THREE.UniformsUtils.clone(C.a.waypoint.uniforms);t.map.value=g.a.load(l),t.opacity.value=.6,t.color.value.set(e.color||r.a.lightGreen);var i=new THREE.RawShaderMaterial({side:THREE.DoubleSide,vertexShader:C.a.waypoint.vertexShader,fragmentShader:C.a.waypoint.fragmentShader,uniforms:t,name:"shadow",transparent:!0,depthTest:!1});e.addHeightLabel&&(this.heightLabel=new I.a({points:[e.tag.position,this.groundPoint]}));var n=e.size||1;"flagSpot"!=this.type&&(this.shadow=new THREE.Mesh(new THREE.PlaneGeometry(n,n,1,1),i),this.shadow.position.copy(this.groundPoint),this.shadow.lookAt(this.groundPoint.clone().add(new THREE.Vector3(0,1,0))),this.shadow.renderOrder=8,this.shadow.name="markTagShdow",this.shadow.layers.set(s.a.TAG),this.model.add(this.shadow)),this.stemLine.layers.set(s.a.TAG),this.stemLine2&&this.stemLine2.layers.set(s.a.TAG),this.model.add(this.stemLine),this.stemLine2&&this.model.add(this.stemLine2)};c.prototype.findfartherEnd=function(e,t){var i=e.distanceTo(t),o=e.clone().sub(t);return e.clone().sub(o.multiplyScalar(800/i))},c.prototype.findGroundPoint=function(e){var t=e.clone();if(!this.groundPoint){var i=new THREE.Raycaster;i.set(e,new THREE.Vector3(0,-1,0));var o=i.intersectObjects(this.model.chunks);return o.length>0?(console.log(o[0].point),o[0].point):e.clone().setY(this.model.boundingBox.min.y)}t.y=this.groundPoint.y},c.prototype.getCameraNearPos=function(e){this.cameraNear=.12;var t=this.tag.snapInfo.nodeStart,i=this.tag.position;this.nearPos=i.clone().sub(t).normalize().multiplyScalar(this.cameraNear).add(t),i.distanceTo(t)<this.cameraNear&&this.tag.rePos(this.nearPos)},c.prototype.moveTagPos=function(e,t){if(0!=e){var i=this.tag.position,g=new THREE.Vector3,n=this.tag.snapInfo.nodeStart,a=this.tag.snapInfo.nodeEnd,A=a.distanceTo(n);i.distanceTo(n)<=this.cameraNear&&e<0||(["x","y","z"].forEach(function(t){e<0?(g[t]=-(a[t]-n[t])*Math.abs(e)/A+i[t],A<this.cameraNear?(n[t]-this.nearPos[t])*(this.nearPos[t]-g[t])<0&&(g[t]=this.nearPos[t]):(this.nearPos[t]-a[t])*(this.nearPos[t]-g[t])<0&&(g[t]=this.nearPos[t])):g[t]=(a[t]-n[t])*Math.abs(e)/A+i[t]}.bind(this)),this.tag.rePos(g),this.groundPoint=this.findGroundPoint(g),o.a.moveLine(this.stemLine,[g,this.groundPoint]),this.shadow.position.copy(this.groundPoint),t&&t(g))}},c.prototype.changeHeight=function(e,t){console.log(this.tag.snapInfo.normal),0!=e&&(this.height+=e,this.height=Math.max(0,this.height),this.moveTag(this.tag.snapInfo),console.log(this.tag.snapInfo.normal))},c.prototype.dragShadow=function(e,t){this.tag.snapInfo.nodeEnd.copy(e),this.tag.snapInfo.normal.copy(t),this.moveTag(this.tag.snapInfo),this.shadow.position.copy(this.tag.snapInfo.nodeEnd),this.shadow.lookAt(this.tag.position)},c.prototype.moveTag=function(e){this.tag.rePos(e.nodeEnd.clone().add(e.normal.clone().multiplyScalar(this.height))),o.a.moveLine(this.stemLine,[e.nodeEnd,this.tag.position])},c.prototype.remove=function(){this.shadow&&(this.shadow.geometry.dispose(),this.shadow.material.dispose(),this.model.remove(this.shadow)),this.stemLine.geometry.dispose(),this.stemLine.material.dispose(),this.model.remove(this.stemLine),this.rayLine&&(this.rayLine.geometry.dispose(),this.rayLine.material.dispose(),this.model.remove(this.rayLine)),this.heightLabel&&this.heightLabel.remove()},c.prototype.hide=function(){this.shadow&&(this.shadow.visible=!1),this.stemLine.visible=!1,this.rayLine&&(this.rayLine.visible=!1)},c.prototype.show=function(){this.shadow&&(this.shadow.visible=!0),this.stemLine.visible=!0,this.rayLine&&(this.rayLine.visible=!0)},c.prototype.rePosAtSphere=function(e,t){if("changeBack"==t)o.a.moveLine(this.stemLine,[this.tag.origin,this.groundPoint]);else{var i=a.a.getPosAtSphere(this.groundPoint,e);o.a.moveLine(this.stemLine,[this.tag.position,i])}},t.default=c},function(e,t,i){"use strict";var o=i(0),g=i(10),n=i(71),a=i(78);function A(){this.modelMap={},this.activeModel=null,this.modelCount=0,this.panoRenderer=null}A.prototype.init=function(e,t,i){this.tileDownloader=e,this.panoRenderer=t,this.qualityManager=i,this.bindEvents()},A.prototype.bindEvents=function(){this.panoRenderer.on(a.a.TileRenderSuccess,this.onTileRendered.bind(this))},A.prototype.onTileRendered=function(e,t,i,o){},A.prototype.addModel=function(e){this.modelMap[e.sid]=e,0===this.modelCount&&this.activateModel(e.sid),this.modelCount++,this.emit(n.a.ModelAdded)},A.prototype.activateModel=function(e){var t=this.modelMap[e];if(!t)throw new BasicException("Tried to activate invalid model!");var i=this.activeModel;this.activeModel=t,this.tileDownloader.setPanoData(t.panos,t.listImagePanos(),t.sid),this.tileDownloader.setUrls(t.urls),t.panos.forEach(function(e){e.attachToPanoRenderer(this.panoRenderer),e.tileDownloader=this.tileDownloader,e.qualityManager=this.qualityManager}.bind(this)),this.emit(n.a.ActiveModelChanged,{oldModel:i,model:t})},A.prototype.getActiveModel=function(){return this.activeModel},g.default.extend(A,EventEmitter),o.a.modelManager=new A},function(e,t,i){"use strict";i(75),i(52),i(63),i(59),i(53),i(29),i(60);var o,g=i(0),n=i(10),a=i(5),A=i(4),r=i(1),C=(i(6),i(9)),I=i(15),s=(i(18),i(71)),l=i(22),c=i(32);function u(){this.tagState=r.a.TagStates.IDLE,this.intersectTag=null,this.hoveredTag=null,this.activeTag=null,this.tagDiscs=[],this.raycaster=new THREE.Raycaster,this.modelManager=null,this.player=null,this.totalTags=0,this.navigatingViaTag=!1,this.enabled=!1,this.tagNeedClose={}}n.default.extend(u,EventEmitter),u.prototype.init=function(e,t){this.modelManager=e,this.player=t,this.updateModel(),this.bindEvents()},u.prototype.boardsResize=function(){for(var e in this.model.tags){var t=this.model.tags[e].billboard;t.imgNeedResize||(t.imgNeedResize=!0,t.once(r.a.BillboardEvent.OPENED,function(e,t){return function(){t.model.tags[e].billboard.resizeImg()}}(e,this)))}},u.prototype.updateVisible=function(e,t){if(this.player||this.player.model){var i=this.player.model.tags;for(var o in t=t||this.player.currentPano,i){var g;"videoPanoFlag"!=i[o].state&&(e!=a.a.PANORAMA?(g=!0,i[o].disc.material.depthTest=!0):(i[o].disc.material.depthTest=!1,g=i[o].edit||i[o].visiblePanos.indexOf(t.id)>-1),i[o].disc.visible=g)}}},u.prototype.updatePosAtSphere=function(e,t,i,o){this.player;if(e==a.a.PANORAMA)for(var g in this.model.tags){if((A=this.model.tags[g]).disc.visible){var n=c.a.getPosAtSphere(A.origin.clone(),t);i?C.a.start(I.a.vector(A.position,n,function(e){this.rePos(e,t)}.bind(A)),i,function(){this.markGroup&&this.markGroup.rePosAtSphere(t)}.bind(A),o):A.rePos(n,t)}}else for(var g in this.model.tags){var A=this.model.tags[g];i?C.a.start(I.a.vector(A.position,A.origin,function(e){this.rePos(e,t)}.bind(A)),i,function(){this.markGroup}.bind(A),o):this.model.tags[g].rePos(A.origin,t,"changeBack")}},u.prototype.getTag=function(e){this.tagDiscs.push(e.disc),this.totalTags++,e.tagManager=this},u.prototype.removeTag=function(e){var t=this.tagDiscs.indexOf(e.disc);t>-1&&(this.tagDiscs.splice(t,1),this.totalTags--)},u.prototype.update=function(e){this.updateTags(this.player.mode,this.player.camera,this.player.currentPano,this.player.flying)},u.prototype.updateTags=function(e,t,i,o){for(var g in this.model.tags)this.model.tags[g].update(e,t,i,o)},u.prototype.updateModel=function(){this.model=this.modelManager.getActiveModel()},u.prototype.bindEvents=function(){function e(){Object.keys(this.model.tags).forEach(function(e){var t=this.model.tags[e];t.bindEvents(),t.billboard.on(r.a.MediaEvent.LINK_CLICK,function(e){e.type===LinkType.NAVIGATION&&this.navigateViaLink(e.url)}.bind(this)),t.billboard.on(r.a.MediaEvent.IMAGE_OPENED,function(){this.tagState=r.a.TagStates.EXAMINE,this.emit(r.a.MediaEvent.IMAGE_OPENED)}.bind(this))}.bind(this))}this.modelManager.on(s.a.ActiveModelChanged,this.updateModel.bind(this)),this.modelManager.on(s.a.ActiveModelChanged,e.bind(this)),this.player.on(l.a.ModeChanging,this.onPlayerModeChanging.bind(this)),this.player.on(l.a.PanoChosen,this.onPanoChange.bind(this)),this.player.on(l.a.Ready,this.onPlayerReady.bind(this)),this.player.on(l.a.FlyingEnded,this.onPlayerFlyingEnded.bind(this)),this.player.on(l.a.WarpStarted,this.handleWarpStart.bind(this)),this.player.on(l.a.WarpInterrupted,this.handleWarpInterruption.bind(this)),e.call(this),window.addEventListener("resize",this.boardsResize.bind(this))},u.prototype.navigateViaLink=function(e){var t=serializer.deserialize(e);if(t)if(t.mode===a.a.PANORAMA){try{this.player.model.panos.get(t.panoId)}catch(e){return void A.a.warn("Unable to find panorama location",t.panoId)}this.player.warpToPanoById(t.panoId,t.quaternion,null,null,WarpStyle.BLACK)}else{var i={cameraMode:t.mode,position:t.position,quaternion:t.quaternion,scanId:t.panoId,orthoZoom:t.zoom,floorVisibility:t.floorVisibility,thumbUrl:null,name:null};this.player.flyToNewMode({mode:t.mode,duration:r.a.warp.outsideTime,warpDest:new Snapshot(i),force:!0})}},u.prototype.handleWarpStart=function(e,t,i,o){this.dismissExaminedTag(),t===WarpStyle.BLACK&&(null!=o||(o=r.a.warp.teleportTime),e&&(i=BlackoutStyle.END),this.hideShowTagsForBlackoutStyle(i,o))},u.prototype.handleWarpInterruption=function(e,t,i){null!=i||(i=r.a.warp.teleportTime),this.hideShowTagsForBlackoutStyle(t,i)},u.prototype.hideShowTagsForBlackoutStyle=function(e,t){var i=0,o=0,g=t/2;switch(null!=e||(e=BlackoutStyle.MIDDLE),e){case BlackoutStyle.END:this.hideAllTags(g);break;case BlackoutStyle.BEGINNING:this.hideAllTags().done(this.showAllTags.bind(this,g));break;case BlackoutStyle.NONE:break;case BlackoutStyle.MIDDLE:i=g,o=g,this.hideAllTags(o),setTimeout(function(){this.showAllTags(i)}.bind(this),o);break;case BlackoutStyle.FADEIN:setTimeout(function(){this.showAllTags(g)}.bind(this),g)}},u.prototype.onPlayerModeChanging=function(e,t){t!==a.a.PANORAMA&&this.dismissExaminedTag()},u.prototype.onPanoChange=function(e,t){var i=this.navigatingViaTag;if(this.navigatingViaTag=!1,!i){this.dismissExaminedTag();var o=e&&!e.isAligned()?a.a.OUTDOOR:a.a.PANORAMA,g=t&&!t.isAligned()?a.a.OUTDOOR:a.a.PANORAMA;o!==g&&(g===a.a.PANORAMA?this.showAllTags(r.a.tags.startup.fadeInDuration,null,!0):this.hideAllTags(r.a.tags.startup.fadeInDuration))}},u.prototype.onPlayerReady=function(e,t,i){this.update(),this.showAllTags(200,300)},u.prototype.onPlayerFlyingEnded=function(e,t){this.updateClosestTags(e)},u.prototype.dismissExaminedTag=function(){this.activeTag&&this.tagState===r.a.TagStates.EXAMINE&&this.dismissActiveTag(),this.hoveredTag&&(this.hoveredTag.setFreeState(!0),this.hoveredTag=null)},u.prototype.startAllTags=function(e,t){this.model.shouldShowTags=r.a.tags.enabled,this.enabled=!0,e||(this.showAllTags(r.a.tags.startup.fadeInDuration,r.a.tags.startup.fadeInDelay),t&&setTimeout(function(){this.activateTag(this.model.getTagBySid(t))}.bind(this),r.a.tags.startup.fadeInDuration/2))},u.prototype.showAllTags=function(e,t,i){function o(){++n===this.totalTags&&(this.model.tagsShown=!0,g.resolve())}var g=$.Deferred(),n=0;for(var a in this.model.tags){var A=this.model.tags[a];"videoPanoFlag"!=A.state&&A.show(e,t).done(o.bind(this))}return g.promise()},u.prototype.hideAllTags=function(e,t){function i(){++g===this.totalTags&&(this.model.tagsShown=!1,o.resolve())}var o=$.Deferred(),g=0;for(var n in this.model.tags){var a=this.model.tags[n];"videoPanoFlag"!=a.state&&(a.hide(e,t).done(i.bind(this)),a===this.activeTag&&this.dismissActiveTag())}return o.promise()},u.prototype.enableHovering=function(){this.enabled=!0},u.prototype.disableHovering=function(){this.enabled=!1},u.prototype.activateTag=function(e,t){t=t||r.a.TagStates.EXAMINE,this.activeTag=e,this.activeTag.hoveringDisc=!0,this.activeTag.setHoverState(t===r.a.TagStates.EXAMINE),this.tagState=t,this.emit(r.a.tagEvents.TagActivated,e)},u.prototype.dismissActiveTag=function(){console.log("dismissActiveTag: "+this.activeTag.sid),this.activeTag.hoveringDisc=!1,this.activeTag.setFreeState(!0);var e=this.activeTag;this.activeTag=null,this.tagState=r.a.TagStates.IDLE,this.emit(r.a.tagEvents.TagDismissed,e)},u.prototype.clickedOnTag=function(e){if(console.log("clickedOnTag"),!this.player.markspot&&!this.player.startGetPos)if(this.player.setTagVisible&&"videoPanoFlag"!=this.intersectTag.state)g.a.editor.SetOneTagVisible(this.intersectTag);else if(!edit||!g.a.editor.markTag){var t=function(){this.navigatingViaTag=!0,"videoPanoFlag"==this.activeTag.state?this.player.flyToPano({pano:this.player.model.panos.index[this.activeTag.sid.split("flagSpot___")[1]]}):(this.activeTag.examine(this.player),this.emit(r.a.tagEvents.TagNavigation,this.activeTag))}.bind(this);return this.tagState==r.a.TagStates.EXAMINE?this.activeTag==this.intersectTag?this.dismissActiveTag():(this.dismissActiveTag(),this.activateTag(this.intersectTag,r.a.TagStates.EXAMINE),this.activeTag=this.intersectTag,t()):(this.activateTag(this.intersectTag,r.a.TagStates.EXAMINE),this.activeTag=this.intersectTag,t()),!0}},u.prototype.intersecttag=function(){var e=new THREE.Vector3,t=new THREE.Vector3,i=new THREE.Vector3;return function(o,g,n){var A=null,C=this.tagDiscs.filter((function(e){return e.parent.visible&&"mark"!=e.tag.state&&1==e.material.uniforms.opacity.value}));if(C.length>0){var I;I=this.player.mode==a.a.PANORAMA||this.player.setTagVisible?C:this.model.floors.reduce((function(e,t){return t.hidden?e:e.concat(t.collider.children)}),C),e.set(o.x,o.y,-1).unproject(n),t.set(o.x,o.y,1).unproject(n),i.copy(t).sub(e).normalize(),this.raycaster.set(e,i);var s=this.raycaster.intersectObjects(I);s.length>0&&-1!==C.indexOf(s[0].object)&&(A=s[0].object.tag)}return this.intersectTag=A,this.player.setTagVisible?(null!=A?$("#player").css("cursor","pointer"):$("#player").css("cursor",""),A):(g&&(this.activeTag&&A!==this.activeTag&&(this.tagState===r.a.TagStates.BROWSE||this.tagState===r.a.TagStates.EXAMINE&&A)&&this.dismissActiveTag(),A&&A!==this.activeTag&&(A.getListeners(r.a.BillboardEvent.ENTER).length<1&&(A.billboard.on(r.a.BillboardEvent.ENTER,function(){this.hoveredTag=A}.bind(this)),A.billboard.on(r.a.BillboardEvent.LEAVE,function(){this.hoveredTag=null}.bind(this))),this.activateTag(A,r.a.TagStates.BROWSE))),A)}}(),u.prototype.rankedTagInDirection=function(){var e=[],t=[],i=new THREE.Vector3,o=new THREE.Vector3,g=new THREE.Vector3;return function(n,a,A,r){var C=0;t.length=0;for(var I=0;I<this.closestTags.length;I++){var s=this.closestTags[I];o.copy(s.position),o.add(s.discPosition),i.copy(a),i.sub(o).negate(),i.normalize();var l=i.dot(r);if(l>=0)if(g.copy(o),g.project(A),this.intersectTag(g,!1,A)){if(C>=e.length)for(var c=0;c<64;c++)e.push({tag:s,dot:l});var u=e[C];u.tag=s,u.dot=l,u.position=math.projectPositionToCanvas(o,A),t.push(u),C++}}return t.sort((function(e,t){return e.dot>t.dot?-1:e.dot<t.dot?1:0})),n<t.length?t[n].tag:null}}(),u.prototype.updateClosestTags=(o=new THREE.Vector3,function(e){this.closestTags||(this.closestTags=[]),this.closestTags.length=0;var t=this.model.tags;if(t)for(var i in t)if(t.hasOwnProperty(i)){var g=t[i],n=g.position;o.copy(e),o.sub(n).negate(),o.lengthSq()<30&&this.closestTags.push(g)}}),u.prototype.closeNeedTag=function(){for(var e in this.tagNeedClose){var t=this.tagNeedClose[e];t.billboard.close(),delete this.tagNeedClose[t.sid]}this.activeTag&&this.dismissActiveTag()},g.a.tagManager=new u},function(e,t,i){"use strict";var o=i(0),g=i(9),n=i(15),a=i(22),A=i(1),r=i(5);function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e3;this.player=null,this.director=null,this.modelManager=null,this.container=null,this.fadeInSpeed=e,null!==this.fadeInSpeed&&void 0!==this.fadeInSpeed||(this.fadeInSpeed=0)}C.prototype.init=function(e,t,i,o){this.player=t,this.director=e,this.modelManager=i,this.container=o,this.updateModel(),this.bindEvents()},C.prototype.setFadeInSpeed=function(e){this.fadeInSpeed=e},C.prototype.bindEvents=function(){this.player.on(a.a.ModeChanging,this.handlePlayerModeChanging.bind(this)),this.player.on(a.a.ModeChanged,this.handlePlayerModeChanged.bind(this)),this.player.on(a.a.ClosestPanoChanging,this.handleClosestPanoChanging.bind(this)),this.player.on(a.a.StartInside,this.handleStartInside.bind(this)),this.player.on(a.a.StartOutside,this.handleStartOutside.bind(this))},C.prototype.updateModel=function(){this.model=this.modelManager.getActiveModel()},C.prototype.handlePlayerModeChanging=function(e,t,i){var o=this.modelManager.getActiveModel();this.player.is360View(t,i)||A.a[t].markerOpacity,o.setMode(t)},C.prototype.handlePlayerModeChanged=function(e,t){var i=this.modelManager.getActiveModel(),o=t===r.a.PANORAMA?THREE.DoubleSide:THREE.FrontSide;i.setSide(o),i.setMode(t)},C.prototype.handleClosestPanoChanging=function(e,t,i,o){i!==r.a.TRANSITIONING&&(e&&(!o||o.seeMarkers.indexOf(e.id)>-1)&&e.hoverOff(i),t&&(!o||o.seeMarkers.indexOf(t.id)>-1)&&t.hoverOn(i))},C.prototype.handleStartInside=function(e){var t=A.a[this.player.mode],i=e?0:t.transitionTime*t.skyboxOpacityLength;this.fadeIn(this.fadeInSpeed),this.model.alpha=0,this.model.skybox.material.uniforms.opacity.value=1,this.model.fadePanoMarkers(null,null,{player:o.a.player});var a=this.player.reticule;g.a.start(n.a.property(a.material,"opacity",0),i,null,0,null,"retReOpac")},C.prototype.handleStartOutside=function(e){this.fadeIn(e)},C.prototype.fadeIn=function(e){null!=e||(e=2e3,logger.warn("DisplayController.fadeIn -> no transition time specified, defaulting to 2000 ms.")),$(this.container).fadeIn(e)},o.a.displayController=new C},function(e,t,i){"use strict";var o=i(1),g=i(37),n=i(6),a=i(7),A=i(71),r=i(0);function C(e,t,i){this.maxNavPanoSize=-1,this.maxZoomPanoSize=-1,this.devicePixelDensity=e,this.deviceScreenSize=t,this.clientBandwidth=i,this.panoSizeClassMap={},this.useHighResolutionPanos=!0,this.useUltraHighResolutionPanos=!1,this.modelHasUltraHighPanos=!1}C.prototype.init=function(e){this.buildPanoSizeClassMap(this.devicePixelDensity,this.deviceScreenSize,this.clientBandwidth),this.ultraHighSize=this.getPanoSize(g.a.ULTRAHIGH),this.highSize=this.getPanoSize(g.a.HIGH),this.standardSize=this.getPanoSize(g.a.STANDARD),this.baseSize=this.getPanoSize(g.a.BASE),o.a.tiling.maxZoomPanoQuality&&this.ultraHighSize<=o.a.tiling.maxZoomPanoQuality&&(o.a.tiling.allowUltraHighResolution=!0),this.highQualityThreshold=a.a.valueFromHash("threshold2k",n.a.windowHeightHighQualityThreshold),this.updateMaximums(),e.on(A.a.ActiveModelChanged,this.onModelChanged.bind(this))},C.prototype.updateFromModel=function(e){this.updateUltraHighResolutionSettings(e)},C.prototype.updateHighResolutionSettings=function(e){showcase.modelDataPromisesTiles(e.data)?this.useHighResolutionPanos=!0:this.useHighResolutionPanos=!1,this.updateMaximums()},C.prototype.updateUltraHighResolutionSettings=function(e){o.a.tiling.allowUltraHighResolution&&this.modelHasUltraHighPanos?this.useUltraHighResolutionPanos=!0:this.useUltraHighResolutionPanos=!1,this.updateMaximums()},C.prototype.enableUltraHighQualityMode=function(){this.modelHasUltraHighPanos=!0,this.updateUltraHighResolutionSettings(null)},C.prototype.ultraHighQualityModeEnabled=function(){return this.modelHasUltraHighPanos},C.prototype.onModelChanged=function(e){this.updateFromModel(e.model),this.updateMaximums()},C.prototype.updateMaximums=function(){this.maxNavPanoSize=o.a.tiling.maxNavPanoQuality||this.detectMaxNavPanoSize(),this.maxZoomPanoSize=o.a.tiling.maxZoomPanoQuality||this.detectMaxZoomPanoSize(),this.maxZoomPanoSize<this.maxNavPanoSize&&(this.maxNavPanoSize=this.maxZoomPanoSize)},C.prototype.buildPanoSizeClassMap=function(){this.panoSizeClassMap[g.a.BASE]=512,this.panoSizeClassMap[g.a.STANDARD]=1024,this.panoSizeClassMap[g.a.HIGH]=2048,this.panoSizeClassMap[g.a.ULTRAHIGH]=4096},C.prototype.getPanoSize=function(e){return this.panoSizeClassMap[e]},C.prototype.getMaxPossiblePanoSize=function(){return this.getPanoSize(g.a.ULTRAHIGH)},C.prototype.getMaxPanoSize=function(){return this.maxZoomPanoSize},C.prototype.getMaxNavPanoSize=function(){return this.maxNavPanoSize},C.prototype.getMaxZoomPanoSize=function(){return this.maxZoomPanoSize},C.prototype.detectMaxNavPanoSizeClass=function(){return this.useHighResolutionPanos?a.a.isMobile()||window.innerHeight<this.highQualityThreshold?g.a.STANDARD:g.a.HIGH:g.a.STANDARD},C.prototype.detectMaxNavPanoSize=function(){var e=this.detectMaxNavPanoSizeClass();return this.getPanoSize(e)},C.prototype.detectMaxZoomPanoSize=function(){return this.useHighResolutionPanos?a.a.isMobile()?o.a.tiling.mobileHighQualityOverride?this.getPanoSize(g.a.HIGH):this.getPanoSize(g.a.STANDARD):this.useUltraHighResolutionPanos?this.getPanoSize(g.a.ULTRAHIGH):this.getPanoSize(g.a.HIGH):this.getPanoSize(g.a.STANDARD)},r.a.qualityManager=new C},function(e,t,i){"use strict";i(105),i(90);var o,g=i(0),n=i(1),a=i(126),A=(i(137),i(31)),r=i(64),C=i(141),I=i(51);i(2);function s(e){this.panos=null,this.retryMinimumTime=1e4,this.urls=null,this.panoLoadCallbacks={},this.downloadDescriptors={},this.priorityQueue=[],this.forceQueue=[],this.activeDownloads=[],this.qualityManager=null,this.tilePrioritizer=null,this.refreshInterval=null,this.processPriorityQueue=!1,this.concurrentDownloads=e.concurrentDownloads||1,this.downloadTestResults={},this.freeze=Object.freeze({Testing:1,Success:2,Fail:3})}s.prototype=Object.create(EventEmitter.prototype),s.tilegen=!0,s.IDLE_REFRESH_DELAY=500,s.ACTIVE_REFRESH_DELAY=16,s.DOWNLOAD_RETRIES=4,s.prototype.init=function(e){this.qualityManager=e},s.prototype.setUrls=function(e){this.urls=e},s.prototype.setPanoData=function(e,t,i){this.panos=e,this.imagePanos=t,this.panoGroupId=i},s.prototype.start=function(){this.refreshUpdateInterval(0)},s.prototype.stop=function(){window.cancel(this.refreshInterval)},s.prototype.refreshUpdateInterval=function(e){e||(e=0),this.refreshInterval=window.setTimeout(function(){this.update()?this.refreshUpdateInterval(s.ACTIVE_REFRESH_DELAY):this.refreshUpdateInterval(s.IDLE_REFRESH_DELAY)}.bind(this),e)},s.prototype.update=function(){var e=this.forceQueue.length>0;return this.processQueueForDownloading(this.forceQueue),this.processPriorityQueue&&(this.queuePrioritizedTilesForPanos(this.panos),this.priorityQueue.length>0&&(e=!0),this.processQueueForDownloading(this.priorityQueue)),e},s.prototype.forceQueueTilesForPano=function(){var e=[],t=[];return function(i,o,g,n,a,C){e.length=0;for(var I=this.getTileDownloadDescriptors(i,o),s=0;s<I.length;s++){var l=I[s];l.status!==r.a.None&&l.status!==r.a.Queued||e.push(l)}if(g&&e.length>0){window.TilePrioritizer.sortPanoTiles(e,i,g),t.length=0,A.a.matchingTilesInDirection(i,o,g,n,a,t);for(var c=0,u=function(e){return e.face===d.face&&e.faceTileIndex===d.faceTileIndex};c<e.length;){var d=e[c];t.findIndex(u)<0?e.splice(c,1):c++}}for(var h=0;h<e.length;h++)this.forceQueue.push(e[h]);this.setStatusForAllDescriptors(this.forceQueue,r.a.ForceQueued),this.clearFromQueue(this.priorityQueue,r.a.ForceQueued,!1),C&&this.processQueueForDownloading(this.forceQueue,!0)}}(),s.prototype.clearForceQueue=function(){this.clearQueue(this.forceQueue)},s.prototype.queuePrioritizedTilesForPanos=function(e){this.tilePrioritizer&&(this.clearQueue(this.priorityQueue),this.tilePrioritizer.filterAndPrioritize(this.priorityQueue,e,this),this.clearFromQueue(this.priorityQueue,r.a.None,!0),this.setStatusOrRemoveForAllDescriptors(this.priorityQueue,r.a.Queued))},s.prototype.clearQueue=function(e){this.setStatusForAllDescriptors(e,r.a.None),e.length=0},s.prototype.clearFromQueue=function(e,t,i){for(var o=0;o<e.length;o++){var g=e[o];g&&(t===g.status&&!i||t!==g.status&&i)&&(e[o]=null)}},s.prototype.setStatusForAllDescriptors=function(e,t){for(var i=0;i<e.length;i++){var o=e[i];o&&(o.status=t)}},s.prototype.setStatusOrRemoveForAllDescriptors=function(e,t){for(var i=0;i<e.length;i++){var o=e[i];o&&(o.status!==t?o.status=t:e[i]=null)}},s.prototype.getTileDownloadDescriptors=function(e,t){var i=this.getAllTileDownloadDescriptorsForPano(e),o=i[t];return o||(o=this.buildDownloadDescriptorArray(t),i[t]=o,this.initTileDownloadDescriptors(o,e,t)),o},s.prototype.getAllTileDownloadDescriptorsForPano=function(e){var t=this.downloadDescriptors[e.id];return t||(t={},this.downloadDescriptors[e.id]=t),t},s.prototype.processQueueForDownloading=function(e,t){if(this.cleanupActiveDownloads(),this.activeDownloads.length<this.concurrentDownloads||t)for(var i=t?e.length:this.concurrentDownloads-this.activeDownloads.length,o=0,g=0;o<i&&e.length>0;g++){var n=e.shift();n&&(this.startDownload(n),o++)}},s.prototype.testDownload=function(e,t,i){var o=this.downloadTestResults[e];if(o)o===this.freeze.Success?i(!0):o===this.freeze.Fail&&i(!1);else{this.downloadTestResults[e]=this.freeze.Testing;var g=this.panos.list[0],n=this.getTileUrl(g.id,e,t,0),a=function(t){this.downloadTestResults[e]=this.freeze.Success,i(!0)}.bind(this),A=function(){this.downloadTestResults[e]=this.freeze.Fail,i(!1)}.bind(this);this.loadImage(n,0,a,A)}},s.prototype.startDownload=function(e){e.status=r.a.Downloading;var t=this.getTileUrl(e.pano.id,e.panoSize,e.tileSize,e.tileIndex);this.activeDownloads.push(e),this.loadImage(t,s.DOWNLOAD_RETRIES,this.downloadComplete.bind(this,e),this.downloadFailed.bind(this,e))},s.prototype.downloadFailed=function(e,t){},s.prototype.downloadComplete=function(e,t){if(e.panoGroupId===this.panoGroupId){var i=this.getPanoLoadCallbacks(e.pano,e.panoSize);e.status=r.a.Downloaded,i&&i.onProgress&&i.onProgress(e.pano,e.panoSize);var o={panoId:e.pano.id,image:t,tileSize:e.tileSize,panoSize:e.panoSize,tileIndex:e.tileIndex,faceTileIndex:e.faceTileIndex,totalTiles:e.totalTiles,face:e.face,tileX:e.tileX,tileY:e.tileY,direction:e.direction};e.image=t,this.emit(a.a.TileDownloadSuccess,o),this.isPanoDownloaded(e.pano,e.panoSize)&&(o={panoId:e.pano.id,tileSize:e.tileSize,panoSize:e.panoSize},this.emit(a.a.PanoDownloadComplete,o),i&&i.onLoad&&i.onLoad(e.pano,e.panoSize))}},s.prototype.cleanupActiveDownloads=(o=[],function(){o.length=0;for(var e=0;e<this.activeDownloads.length;e++){var t=this.activeDownloads[e];t.status!==r.a.Downloaded&&t.status!==r.a.Failed&&o.push(t)}this.activeDownloads.length=0,this.activeDownloads.push.apply(this.activeDownloads,o)}),s.prototype.isPanoDownloaded=function(e,t){var i=this.getTileDownloadDescriptors(e,t);if(i.length<=0)return!1;for(var o=0;o<i.length;o++){if(i[o].status!==r.a.Downloaded)return!1}return!0},s.prototype.setPanoLoadCallbacks=function(e,t,i,o,g){var n=e.id+":"+this.qualityManager.getPanoSize(t);this.panoLoadCallbacks[n]={onLoad:i,onFail:o,onProgress:g}},s.prototype.getPanoLoadCallbacks=function(e,t){var i=e.id+":"+t;return this.panoLoadCallbacks[i]},s.prototype.buildDownloadDescriptorArray=function(e){for(var t=A.a.getTileCountForSize(e),i=[],o=0;o<t;o++){var g=this.buildDownloadDescriptor();i.push(g)}return i},s.prototype.buildDownloadDescriptor=function(){return{panoGroupId:null,pano:null,panoSize:-1,tileSize:-1,tileIndex:-1,totalTiles:-1,faceTileIndex:-1,status:r.a.None,url:null,image:null,direction:new THREE.Vector3,face:-1,cubeFace:-1,tileX:-1,tileY:-1}},s.prototype.initTileDownloadDescriptors=function(e,t,i){for(var o=0;o<e.length;o++){var g=e[o];this.initTileDownloadDescriptor(g,t,i,o)}},s.prototype.initTileDownloadDescriptor=function(e,t,i,o){var g=i>=A.a.TILE_SIZE?A.a.TILE_SIZE:i;e.face=A.a.getFaceForTile(i,o),e.cubeFace=C.a.mapFaceToCubemapFace(e.face),e.panoGroupId=this.panoGroupId,e.pano=t,e.panoSize=i,e.tileSize=g,e.tileIndex=o,e.totalTiles=A.a.getTileCountForSize(i),e.status=r.a.None,e.image=null,A.a.getTileLocation(e.panoSize,e.tileIndex,e),A.a.getTileVector(e.panoSize,e.tileSize,e.cubeFace,e.tileX,e.tileY,A.a.LocationOnTile.Center,0,e.direction)},s.prototype.getTileUrl=function(){var e={256:"256",512:"512",1024:"1k",2048:"2k",4096:"4k"},t={face:-1,faceTileIndex:-1,tileX:-1,tileY:-1};return function(i,o,g,a){A.a.getTileLocation(o,a,t);var r=Math.floor(o/g),C=r*r,I=Math.floor(a/C),s="";if(1===n.a.tiling.customCompression&&(s="_"+n.a.tiling["q"+e[o]]),10==Store.metadata.sceneScheme||10==Store.metadata.cameraType){var l="tiles/4k/"+i+"_skybox"+I+".jpg?x-oss-process=";return"512"==e[o]?l+="image/resize,h_512":("1k"==e[o]||"2k"==e[o]?l+="image/resize,m_lfit,w_"+o+"/crop,w_512,h_512,":l="tiles/4k/"+i+"_skybox"+I+".jpg?x-oss-process=image/crop,w_512,h_512,",l+=0==t.tileX?"x_0,":"x_"+(512*t.tileX-1)+",",l+=0==t.tileY?"y_0":"y_"+(512*t.tileY-1)),l=this.urls.getTiles(l)}return l=this.urls.getTiles("tiles/"+i+"/"+e[o]+s+"_face"+I+"_"+t.tileX+"_"+t.tileY+".jpg")}}(),s.prototype.loadImage=function(e,t,i,o){I.a.loadImg(e,t).then((function(e){i(e)})).fail(o)};var l=s.tilegen?6:2;g.a.tileDownloader=new s({concurrentDownloads:l})},function(e,t,i){i(147)("Uint32",4,(function(e){return function(t,i,o){return e(this,t,i,o)}}))},function(e,t,i){"use strict";i.r(t);var o=i(23),g=i.n(o),n=(i(95),i(40)),a=i.n(n);i(253),i(59),i(53),i(60),i(63),i(100),i(29);function A(e){var t=[];return Object.keys(e).forEach((function(i){null!==e[i]&&t.push("".concat(i,"=").concat(e[i]))})),"?"+t.join("&")}function r(e){var t=e.title,i=e.link,o=e.imgUrl,g=e.desc,n=function(){},a=i.substr(i.indexOf("?")),r=i.substr(0,i.indexOf("?")),C=function(e){var t=e.substr(1).split("&"),i={};return t.forEach((function(e){var t=e.indexOf("=");~t?i[e.substr(0,t)]=e.substr(t+1):i[e]=null})),i}(a);wx.ready((function(){C.open="wx_friends",wx.onMenuShareTimeline({title:t,link:r+A(C),imgUrl:o,desc:g}),C.open="wx_friend",wx.onMenuShareAppMessage({title:t,desc:g,link:r+A(C),imgUrl:o,type:"",dataUrl:""}),C.open="weibo",wx.onMenuShareWeibo({title:t,desc:g,link:r+A(C),imgUrl:o,success:n,cancel:n}),C.open="qq_zone",wx.onMenuShareQZone({title:t,desc:g,link:r+A(C),imgUrl:o,success:n,cancel:n}),C.open="qq",wx.onMenuShareQQ({title:t,desc:g,link:r+A(C),imgUrl:o,success:n,cancel:n}),wx.error((function(e){}))}))}t.default=function(){var e=a()(g.a.mark((function e(t){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("undefined"==typeof wx){e.next=4;break}return e.next=3,new Promise((function(e,t){$.ajax({url:"//www.4dage.com/wechat/jssdk/share",type:"get",data:{uri:location.href.split("#")[0],name:"厦门四维时代微信公众号"},dataType:"jsonp",jsonpCallback:"success_jsonp",success:function(t,i){wx.config({debug:!1,appId:t.appId,timestamp:t.timestamp,nonceStr:t.nonceStr,signature:t.signature,jsApiList:["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","hideMenuItems","showMenuItems","hideAllNonBaseMenuItem","showAllNonBaseMenuItem","translateVoice","startRecord","stopRecord","onRecordEnd","playVoice","pauseVoice","stopVoice","uploadVoice","downloadVoice","chooseImage","previewImage","uploadImage","downloadImage","getNetworkType","openLocation","getLocation","hideOptionMenu","showOptionMenu","closeWindow","scanQRCode","chooseWXPay","openProductSpecificView","addCard","chooseCard","openCard"]}),e()},error:function(e,i,o){t("jsonp.error:"+i)}})}));case 3:r(t);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},function(e,t,i){"use strict";i(159)("link",(function(e){return function(t){return e(this,"a","href",t)}}))},function(e,t,i){var o=i(58);o(o.P,"String",{repeat:i(255)})},function(e,t,i){"use strict";var o=i(97),g=i(96);e.exports=function(e){var t=String(g(this)),i="",n=o(e);if(n<0||n==1/0)throw RangeError("Count can't be negative");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(i+=t);return i}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,i){"use strict";i(38),i(63),i(105),i(52),i(75),i(39);var o=i(10),n=i(1),A=i(5),C=(i(59),i(53),i(29),i(60),i(2));function I(e){this.cache=null,this.expires=0,this.projectNum=e}I.prototype={version:1,validate:function(e){return"catalog.json"in e&&Object.keys(e).length>0},update:function(e){return this.cache=e,this.expires=Date.now()+constants.signedUrlDefaultExpireTime,$.when()},getPost:function(){return edit?Store.metadata.floorEditVer||0:Store.metadata.floorPublishVer||0},getPrefix:function(){return edit&&null!=Store.metadata.floorEditVer&&Store.metadata.floorEditVer!=Store.metadata.floorPublishVer?C.a.prefixServerECS:C.a.prefixServerOSS},get:function(e){return publicObjectSet.rebuild?this.getPrefix()+C.a.imagesPath+this.projectNum+"/"+e+"?m="+(new Date).getTime():this.getPrefix()+C.a.imagesPath+this.projectNum+"/"+e+"?m="+this.getPost()},getTiles:function(e){return this.getPrefix()+C.a.imagesPath+this.projectNum+"/"+e}};var s=I,c=i(182),u=(i(86),i(87)),h=i(108),p=i(4);function f(){u.a.call(this)}o.default.inherit(f,u.a),f.prototype.getImage=function(e){return e&&this.index.hasOwnProperty(e)?this.index[e]:null},f.prototype.filterByModesAndReel=function(e,t){for(var i=[],o=0;o<t.length;o+=1){var g=t[o],n=this.index[g.sid];n&&i.push(n)}var a=e[A.a.DOLLHOUSE],r=e[A.a.FLOORPLAN];(i=i.filter((function(e){if(!e.metadata||void 0===e.metadata.camera_mode)return!0;var t;try{t=A.a.convertWorkshopModeInt(e.metadata.camera_mode)}catch(e){return p.a.debug(e.message),!1}return t===A.a.PANORAMA||t===A.a.FLOORPLAN&&r||t===A.a.DOLLHOUSE&&a}))).length!==this.list.length&&p.a.info("Disallowed "+(this.list.length-i.length)+" highlight images"),this.list=i,this.reIndex()},f.prototype.getHeroLocations=function(e){if(0===this.list.length)return[];for(var t=[],i=0;i<this.list.length;++i){var o=this.list[i],g=o.thumbnail_signed_src,n=o.name;if(o.metadata&&void 0!==o.metadata.camera_quaternion){var a=A.a.convertWorkshopModeInt(o.metadata.camera_mode);if(a===A.a.MESH)continue;var r={cameraMode:a,position:o.metadata.camera_position,quaternion:o.metadata.camera_quaternion,panoId:o.metadata.scan_id,orthoZoom:o.metadata.ortho_zoom,floorVisibility:void 0!==o.metadata.floor_visibility?o.metadata.floor_visibility.slice(0):[],thumbUrl:g,name:f.filterImageName(n)},C=new h.a(r);t.push(C)}}return t},f.prototype.getIndex=function(e){return e.sid},f.filterImageName=function(e){return""===e||e.match(/^[0-9.]+_[0-9.]+$/)?null:e};var m=f;i(49),i(124);function v(e){this.chunksize=e||10,this.chunks={},this.boundingBoxes={},this.children=[],this.offset=new THREE.Vector3(0,.5,0),this.material=new THREE.MeshBasicMaterial({color:16777215*Math.random(),side:THREE.DoubleSide})}v.prototype.add=function(e){var t,i,o,g,n,a,A,r,C,I,s=e.attributes;s?(t=s.position.array,i=void 0!==e.index?e.index.array:void 0):(t=e.vertices,e.faces);var l=new THREE.Vector3;if(i)for(o=0,g=i.length;o<g;o+=3){var c=3*i[o],u=3*i[o+1],d=3*i[o+2];n=(t[c]+t[u]+t[d])/3,a=(t[c+1]+t[u+1]+t[d+1])/3,A=(t[c+2]+t[u+2]+t[d+2])/3,(r=Math.floor(n/this.chunksize)+"."+Math.floor(a/this.chunksize)+"."+Math.floor(A/this.chunksize))in this.chunks?(I=this.chunks[r],C=this.boundingBoxes[r]):(I=this.chunks[r]=[],C=this.boundingBoxes[r]=new THREE.Box3),I.push(t[c],t[c+1],t[c+2],t[u],t[u+1],t[u+2],t[d],t[d+1],t[d+2]),C.expandByPoint(l.set(t[c],t[c+1],t[c+2])),C.expandByPoint(l.set(t[u],t[u+1],t[u+2])),C.expandByPoint(l.set(t[d],t[d+1],t[d+2]))}else for(o=0,g=t.length;o<g;o+=9)n=(t[o]+t[o+3]+t[o+6])/3,a=(t[o+1]+t[o+4]+t[o+7])/3,A=(t[o+2]+t[o+5]+t[o+8])/3,(r=Math.floor(n/this.chunksize)+"."+Math.floor(a/this.chunksize)+"."+Math.floor(A/this.chunksize))in this.chunks?(I=this.chunks[r],C=this.boundingBoxes[r]):(I=this.chunks[r]=[],C=this.boundingBoxes[r]=new THREE.Box3),I.push(t[o],t[o+1],t[o+2],t[o+3],t[o+4],t[o+5],t[o+6],t[o+7],t[o+8]),C.expandByPoint(l.set(t[o],t[o+1],t[o+2])),C.expandByPoint(l.set(t[o+3],t[o+4],t[o+5])),C.expandByPoint(l.set(t[o+6],t[o+7],t[o+8]))},v.prototype.build=function(){var e=new THREE.Object3D;for(var t in e.material=this.material,this.chunks){var i=this.chunks[t],o=new THREE.BufferGeometry;o.addAttribute("position",new THREE.BufferAttribute(new Float32Array(i),3)),o.boundingBox=this.boundingBoxes[t];var g=new THREE.Mesh(o,this.material);g.material.visible=!1,e.add(g),this.chunks[t]=[]}return e};var y=v,b=i(50);function w(e,t,i){THREE.Object3D.call(this),this.model=e,this.floorIndex=t,this.name=i||"楼层"+(t+1),this.panos=[],this.chunks=[],this.colliderBuilder=new y(3),this.collider=null,this.center=null,this.boundingBox=new THREE.Box3,this.size=null,this.hidden=!1,this.conservativeBoundingBox=new THREE.Box3,this.debugColor=16777215*Math.random(),this.transition=null}w.prototype=Object.create(THREE.Object3D.prototype),w.prototype.enter=function(e){this.model.setFloor(this,e)},w.prototype.reGetCollider=function(){this.colliderBuilder=new y(3),this.boundingBox=new THREE.Box3},w.prototype.show=function(e){if(this.hidden||this.transition){this.hidden=!1,transitions.cancel(this.transition);var t=e?Settings.showFloorDuration:Settings.showFloorDuration+Settings.showFloorDelay,i=e?0:Settings.showFloorDelay/t;this.transition=transitions.start(lerp.allUniforms(this.chunks,"opacity",1),t,function(){this.hidden||this.chunks.forEach((function(e){e.material.transparent=!1}))}.bind(this),i,easing.easeInOutQuad)}},w.prototype.toggle=function(e,t){(e=void 0===e?this.hidden:e)?this.show(t):this.hide(t)},w.prototype.addChunk=function(e){null==this.colliderBuilder&&(this.colliderBuilder=new y(3)),e.renderOrder=b.a.ghostFloor,this.add(e),this.chunks.push(e),this.boundingBox.union(e.geometry.boundingBox),this.size=this.boundingBox.getSize(new THREE.Vector3),this.colliderBuilder.add(e.geometry)},w.prototype.addPano=function(e){this.panos.push(e),this.add(e.skyboxMesh),e.marker&&this.add(e.marker);var t=new THREE.Vector3(1,1,1),i=(new THREE.Box3).setFromCenterAndSize(e.position,t);this.boundingBox.union(i)},w.prototype.distanceToPoint=function(e){var t=null,i=1/0;return this.collider.children.forEach((function(o){o.geometry.boundingBox||o.geometry.computeBoundingBox();var g=o.geometry.boundingBox.distanceToPoint(e);(!t||i>g)&&(i=g,t=o)})),i},w.prototype.build=function(){this.collider=this.colliderBuilder.build(!0),this.add(this.collider),this.center=this.boundingBox.center(),this.conservativeBoundingBox.copy(this.boundingBox),this.conservativeBoundingBox.min.y=o.default.lowerMedian(this.collider.children.map((function(e){return e.geometry.boundingBox.min.y})),5),this.conservativeBoundingBox.max.y=o.default.lowerMedian(this.collider.children.map((function(e){return e.geometry.boundingBox.max.y})),5),this.colliderBuilder=null},w.prototype.toShortString=function(){return o.default.nth(this.floorIndex+1)},w.prototype.toString=function(){return this.name};var x=w;function E(e){u.a.call(this),this.model=e,this.exploded=!1}o.default.inherit(E,u.a),E.prototype.add=function(e){u.a.prototype.add.call(this,e),this.model.add(e)},E.prototype.getIndex=function(e){return e.floorIndex},E.prototype.build=function(){this.list.forEach((function(e){e.build()}))},E.prototype.nextFloor=function(e,t){return this.index[e.floorIndex+t]||null},E.prototype.getFloorAtPoint=function(e){for(var t=null,i=1/0,o=0;o<this.list.length;o++){var g=this.list[o],n=g.distanceToPoint(e);(!t||i>n)&&(i=n,t=g)}return t},E.prototype.getOrMakeFloor=function(e){var t=this.index[e];return t||(t=new x(this.model,e),this.add(t)),t},E.prototype.hide=function(){this.list.forEach((function(e){e.hide()}))},E.prototype.show=function(){this.list.forEach((function(e){e.show()}))};var P=E;function T(e,t,i){var o=(e=e.clone().expandByScalar(.01)).size(),g=new THREE.BoxGeometry(o.x,o.y,o.z);g.computeBoundingBox(),THREE.Mesh.call(this,g,t),this.position.copy(e.center()),this.frustumCulled=!1,i&&this.add(new THREE.WireframeHelper(this))}T.prototype=Object.create(THREE.Mesh.prototype),T.prototype.constructor=T;var D=T,M=i(76);function S(e){p.a.time("Computing a nice bounding cubemap");var t=new M.a({side:THREE.BackSide,transparent:!0});t.uniforms.modelAlpha.value=0,t.uniforms.opacity.value=1-n.a.modelAlpha,this.renderOrder=b.a.boundingSkybox,D.call(this,e,t),p.a.timeEnd("Computing a nice bounding cubemap")}S.prototype=Object.create(D.prototype),S.prototype.constructor=S;var R,k=S,O=i(20),L=i(9),B=i(57),F=i(15),j=i(18),N=(i(166),i(44)),H=i.n(N),z=(i(72),i(7)),V=i(6),G={getAuthorizationHeader:function(){var e=z.a.valueFromHash("auth");if(e)return e.replace(","," ");var t=z.a.valueFromCookie("token");return t?"Token "+t:null},getModelIDFromQueryString:function(){return z.a.valueFromHash("model")||z.a.valueFromHash("m")},normalizeModeldata:function(e,t){e=JSON.parse(JSON.stringify(e));var i=null;if(e.images.forEach((function(o){if(o.metadata&&"string"==typeof o.metadata)try{o.metadata=JSON.parse(o.metadata)}catch(e){p.a.warn("Unable to parse image metadata"),o.metadata=null}else"object"==H()(o.metadata)&&p.a.debug("image.metadata already a JSON object");o.metadata&&(o.metadata.camera_quaternion&&(o.metadata.camera_quaternion=t.convertWorkshopQuaternion(o.metadata.camera_quaternion)),o.metadata.camera_position&&(o.metadata.camera_position=t.convertWorkshopVector(o.metadata.camera_position)),!i&&e.icon&&e.icon===o.sid&&(i=o.metadata))})),i&&i.camera_quaternion&&i.camera_position&&i.scan_position&&i.scan_quaternion){var o={};o.pano={quaternion:t.convertWorkshopPanoramaQuaternion(i.scan_quaternion),position:t.convertWorkshopVector(i.scan_position),uuid:i.scan_id},o.camera={quaternion:i.camera_quaternion,position:i.camera_position},e.startPano=o}return e},visionVersionToInt:(R=new RegExp(["(?:[0-9.]+\\.){1,4}","([0-9]+)","[^\\.]*$"].join("")),function(e){if(!e)throw new Error("Vision version is required");var t=R.exec(e);if(null===t)throw new Error("String is not a vision version: "+e);return parseInt(t[1])}),modelDataPromisesTiles:function(e){if(e.vision_version)try{return l.visionVersionToInt(e.vision_version)>=l.visionVersionToInt(V.a.visionTilingStartVersion)}catch(t){p.a.warn("Invalid vision version: "+e.vision_version)}var t=e.created?new Date(e.created):null;return t&&t>=r.visionTilingStartDate}},W=i(21),U=(i(51),i(0)),Q=(i(234),i(125),function(e){var t={vesion:"1.0.0",author:"xst",lastId:0,getId:function(){return t.lastId=parseInt(t.lastId)+1,"vector"+t.lastId},Size:function(e,t){this.w=e,this.h=t},Bounds:function(e,i,o,g){this.leftBottom=new t.Position(e,i),this.rigthTop=new t.Position(o,g),this.leftTop=new t.Position(e,g),this.rightBottom=new t.Position(o,i),this.left=e,this.right=o,this.bottom=i,this.top=g}};t.Bounds.prototype.getCenter=function(){var e=this.right-this.left,i=this.top-this.bottom;return new t.Position(this.left+e/2,this.bottom+i/2)},t.Position=function(e,t){this.x=e,this.y=t};var i=function e(t){return new e.fn.init(t)};function o(e,i){this.point1=e,this.point2=i,this.id=t.getId()}function g(e,t){this.x=e,this.y=t}function n(){this.distance=15,this.driftAngle=25/180*Math.PI}return i.fn=i.prototype={constructor:i,init:function(e){this.canvas=document.getElementById("miniMap"),this.canvas2=document.getElementById("playMap"),this.context1=this.canvas.getContext("2d"),this.context2=this.canvas2.getContext("2d"),this.oldWidth=this.canvas.width,this.oldHeight=this.canvas.height,this.scale=.8,this.style={},this.vectors={},this.maxWith=4,this.radius=5,this.wallWith=2,this.center={x:0,y:0},this.width=(this.canvas.width||this.canvas.clientWidth)*this.scale,this.height=(this.canvas.height||this.canvas.clientHeight)*this.scale,this.ratio=null,this.resolution=e.innerWidth/this.width,this.resolution2=e.innerWidth/this.width,this.devicePixelRatio=e.devicePixelRatio||1,this.bounds=new t.Bounds(-this.canvas.width/2,-this.canvas.height/2,this.canvas.width/2,this.canvas.height/2),this.mathUtil=new n,this.playerPoint=null,this.playerAngle=null},getRatio:function(){var e=this.context1.webkitBackingStorePixelRatio||this.context1.mozBackingStorePixelRatio||this.context1.msBackingStorePixelRatio||this.context1.oBackingStorePixelRatio||this.context1.backingStorePixelRatio||1;this.ratio=this.devicePixelRatio/e},getLocalXY:function(e){var t=this.bounds,i=(e.x-this.center.x)/this.resolution-t.left,o=t.top-(e.y-this.center.y)/this.resolution;return i=.5+i<<0,o=.5+o<<0,{x:Math.floor(i),y:Math.floor(o)}},getLocalXY2:function(e){var t=this.bounds,i=(e.x-this.center.x)/this.resolution2-t.left,o=t.top-(e.y-this.center.y)/this.resolution2;return i=.5+i<<0,o=.5+o<<0,{x:Math.floor(i),y:Math.floor(o)}},draw:function(e,t,i,n){null==this.ratio&&(this.getRatio(),this.adapt()),this.context1.save(),this.context1.beginPath(),this.context1.lineWidth=this.wallWith,this.context1.lineJoin="miter",this.context1.lineCap="square";var a=new o(new g(e,t),new g(i,n)),A=this.getLocalXY(a.point1),r=this.getLocalXY(a.point2);this.context1.strokeStyle="white",this.context1.moveTo(A.x,A.y),this.context1.lineTo(r.x,r.y),this.context1.stroke(),this.vectors[a.id]=a,this.context1.restore()},deleteLine:function(e,t,i,n){this.context1.save(),this.context1.beginPath(),this.context1.lineWidth=this.maxWith+1;var a=new o(new g(e,t),new g(i,n)),A=this.getLocalXY(a.point1),r=this.getLocalXY(a.point2);this.context1.strokeStyle="#333333",this.context1.moveTo(A.x,A.y),this.context1.lineTo(r.x,r.y),this.context1.stroke(),this.vectors[a.id]=a,this.context1.restore()},drawTest:function(e){this.context1.save(),this.context1.beginPath(),this.context1.lineWidth=5,this.context1.strokeStyle="white",this.context1.moveTo(0,54),this.context1.lineTo(e,54),this.context1.stroke()},drawFloor:function(e){for(var t=e.vertex,i=e.wall,o=0;o<i.length;++o){var g=i[o],n=g.p1,a=g.p2;draw(t[n].x,t[n].y,t[a].x,t[a].y,this.maxWith)}},drawPoint:function(e){this.radius;var t=2*Math.PI;this.context2.save(),this.context2.fillStyle="zhiHouse"==C.a.applicationName?"#0075dc":"#00c8af",this.context2.beginPath(),this.context2.moveTo(e.x,e.y),this.context2.arc(e.x,e.y,this.radius,0,t,!0),this.context2.closePath(),this.context2.fill(),this.context2.restore()},drawCircle:function(e){var t=this.radius+1,i=2*Math.PI;this.context2.save(),this.context2.strokeStyle="white",this.context2.lineWidth=2,this.context2.beginPath(),this.context2.arc(e.x,e.y,t,0,i,!0),this.context2.closePath(),this.context2.stroke(),this.context2.restore()},drawSector:function(e,t,i,o){this.context2.save();var g=this.context2.createRadialGradient(e.x,e.y,0,e.x,e.y,this.mathUtil.distanceForPoints(e,t));"zhiHouse"!=C.a.applicationName?(g.addColorStop(0,"rgba(0, 200, 174, 1)"),g.addColorStop(1,"rgba(0, 200, 174, 0)")):(g.addColorStop(0,"rgba(0, 117, 220, 1)"),g.addColorStop(1,"rgba(0, 117, 220, 0)")),this.context2.fillStyle=g,this.context2.strokeStyle="zhiHouse"==C.a.applicationName?"#0075dc":"#00c8af",this.context2.beginPath(),this.context2.moveTo(e.x,e.y),this.context2.lineTo(t.x,t.y),this.context2.arcTo(t.x,t.y,i.x,i.y,o),this.context2.lineTo(i.x,i.y),this.context2.closePath(),this.context2.fill(),this.context2.restore()},drawplayer:function(e,t){if(t<0||t>2*Math.PI){var i=t/(2*Math.PI);(t-=Math.floor(i)*(2*Math.PI))<0&&(t+=2*Math.PI)}if(null==this.playerPoint||this.playerPoint.x!=e.x||this.playerPoint.y!=e.y||null==this.playerAngle||this.playerAngle!=t){this.clearCanvas(0),this.playerPoint=e,e=this.getLocalXY2(e);var o=this.mathUtil.getEndpoint(e,t);this.drawSector(e,o.p1,o.p2,this.mathUtil.distanceForPoints(e,o.p1)),this.playerAngle=t,this.drawPoint(e),this.drawCircle(e)}},clearCanvas:function(e){0==e?(this.context2.clearRect(0,0,this.canvas.width,this.canvas.height),this.playerPoint=null,this.playerAngle=null):this.context1.clearRect(0,0,this.canvas.width,this.canvas.height)},adapt:function(){this.canvas.width=this.oldWidth*this.ratio,this.canvas.height=this.oldHeight*this.ratio,this.canvas2.width=this.oldWidth*this.ratio,this.canvas2.height=this.oldHeight*this.ratio,this.context1.scale(this.ratio,this.ratio),this.context2.scale(this.ratio,this.ratio)}},o.prototype.geoType="Line",g.prototype.geoType="Point",n.prototype.createLine=function(e,t){if(t==Math.PI/2||t==1.5*Math.PI)return{x:e.x};var i=Math.tan(t),o=e.y-i*e.x;return 0!=i?{a:i,b:o}:{y:e.y}},n.prototype.create2AngleLine=function(e,t){return{line1:this.createLine(e,t-this.driftAngle),line2:this.createLine(e,t+this.driftAngle)}},n.prototype.getParallelLineForDistance=function(e,t){var i={};i.a=e.a,i.b=e.b;var o={};if(o.a=e.a,o.b=e.b,void 0===e.a){if(e.hasOwnProperty("x")){var g=e.x;i.x=g+t,o.x=g-t}else if(e.hasOwnProperty("y")){var n=e.y;i.y=n+t,o.y=n-t}}else{var a=Math.atan(e.a),A=Math.abs(t/Math.cos(a)),r=e.b;i.b=r+A,o.b=r-A}return{line1:i,line2:o}},n.prototype.getEndpoint=function(e,t){var i=this.create2AngleLine(e,t),o=this.createLine(e,t);o=this.getLineForPoint(o,e);var g=this.getParallelLineForDistance(o,this.distance),n=(this.getDistancePointToLine(e,g.line1),this.getDistancePointToLine(e,g.line2),this.getIntersectionPoint(i.line1,g.line1)),a=this.getIntersectionPoint(i.line1,g.line2),A=this.getIntersectionPoint(i.line2,g.line1),r=this.getIntersectionPoint(i.line2,g.line2),C=this.Angle(e,n,{x:e.x+1,y:e.y}),I=this.Angle(e,a,{x:e.x+1,y:e.y}),s=this.Angle(e,A,{x:e.x+1,y:e.y}),l=this.Angle(e,r,{x:e.x+1,y:e.y});return t>Math.PI&&(t=2*Math.PI-t),Math.abs((C+s)/2-t)<Math.abs((I+l)/2-t)?{p1:n,p2:A}:{p1:a,p2:r}},n.prototype.getIntersectionPoint=function(e,t){if(this.isParallel(e,t))return null;if(void 0===e.a&&void 0!==t.a){if(e.x)return{x:e.x,y:t.a*e.x+t.b};if(e.y)return{x:(e.y-t.b)/t.a,y:e.y}}else if(void 0===t.a&&void 0!==e.a){if(t.x)return{x:t.x,y:e.a*t.x+e.b};if(t.y)return{x:(t.y-e.b)/e.a,y:t.y}}else if(void 0===t.a&&void 0===e.a)return e.hasOwnProperty("x")&&t.hasOwnProperty("y")?{x:e.x,y:t.y}:e.hasOwnProperty("y")&&t.hasOwnProperty("x")?{x:t.x,y:e.y}:null;return e.a==t.a?null:{x:(t.b-e.b)/(e.a-t.a),y:(e.a*t.b-t.a*e.b)/(e.a-t.a)}},n.prototype.isParallel=function(e,t){var i=this.fixed;return void 0===e.a&&void 0===t.a?!(!e.hasOwnProperty("x")||!t.hasOwnProperty("x"))||!(!e.hasOwnProperty("y")||!t.hasOwnProperty("y")):void 0!==e.a&&void 0!==t.a&&e.a.toFixed(i)==t.a.toFixed(i)},n.prototype.Angle=function(e,t,i){var o,g,n=0,a=t.x-e.x,A=t.y-e.y,r=i.x-e.x,C=i.y-e.y;return n=a*r+A*C,g=(a*a+A*A)*(r*r+C*C),(n/=Math.sqrt(g))>=1?0:n<=-1?180:180*(o=Math.acos(n))/Math.PI<180?o:2*Math.PI-o},n.prototype.getLineForPoint=function(e,t){var i={};return 0==e.a||void 0===e.a?e.x?i.y=t.y:e.y&&(i.x=t.x):(i.a=-1/e.a,i.b=t.y-t.x*i.a),i},n.prototype.distanceForPoints=function(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},n.prototype.getDistancePointToLine=function(e,t){if(void 0===t.a)return t.hasOwnProperty("x")?Math.abs(e.x-t.x):t.hasOwnProperty("y")?Math.abs(e.y-t.y):null;var i=-1/t.a,o={a:i,b:e.y-i*e.x},g=this.getIntersectionPoint(o,t);return this.distanceForPoints(e,g)},i.fn.init.prototype=i.fn,i}()),Y=i(54),Z=i(48),X=i(16),J=i(168),K=i(169),q=i(143),_=(i(69),i(139)),ee=i.n(_),te=i(34),ie=i.n(te),oe=i(35),ge=i.n(oe),ne=i(19),ae=i.n(ne),Ae=(i(100),i(119),i(25)),re=i.n(Ae),Ce=i(28),Ie=i.n(Ce),se=i(8),le=i(89),ce=i(36);function ue(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var de=o.default.getTexture("pro/images/videoMarker/play-64.png"),he=o.default.getTexture("pro/images/videoMarker/256-1.png"),pe=o.default.getTexture("pro/images/videoMarker/256-3.png"),fe=o.default.getTexture("pro/images/videoMarker/256-2.png"),me=new se.PlaneBufferGeometry(.6,.6,1,1);z.a.detectIOS()&&(fe.minFilter=se.LinearFilter,fe.maxFilter=se.LinearFilter,fe.generateMipmaps=!1);var ve=[],ye=0,be=20;setInterval((function(){if(ye>=1){if(0!=be)return void be--;be=20,ye=0}else ye+=.01;ve.forEach((function(e){e.uniforms.progress.value=ye}))}),20);setTimeout((function(){if(z.a.urlHasValue("vmarker")){var e=se.UniformsUtils.clone(W.a.videoPanoMarker.uniforms),t=new se.RawShaderMaterial({transparent:!0,vertexShader:W.a.videoPanoMarker.vertexShader,fragmentShader:W.a.videoPanoMarker.fragmentShader,uniforms:e,depthTest:!1});e.map0.value=he,e.map1.value=pe,e.map2.value=fe,e.opacity.value=1,ve.push(t);var i=new se.Mesh(new se.PlaneGeometry(10,10,1,1),t);window.plane=i,U.a.player.model.add(i),i.lookAt(i.position.clone().add(new se.Vector3(0,1,0)))}}),1e3);var we,xe,Ee,Pe,Te,De=function(){function e(t){var i=this;re()(this,e),this.enabled=!1,this.version=1,this.player=t,this.isCubeTex=this.player.model.supportsTiles,this.sourceMap=this.getVideoData(),this.parameters=(new se.Matrix4).set(2304,1728,2048,1024,.969455,1.34,875,1128,-686571e-10,-13788e-8,-.0336433,0,0,0,0,0),this.loadParameter(this.sourceMap.upPath);var o={loop:!0,onRendered:this.onVideoRendered.bind(this),initSource:this.sourceMap.default},g=new M.a({transparent:!0,defines:{Mapping:0}},"FishEyeVideo");this.version>2&&(g.defines.Mapping=1,this.parameters.elements[0]=4608,this.parameters.elements[4]=3456,this.parameters.elements[8]=8192,this.parameters.elements[12]=4096,this.parameters.elements[3]=1235,this.parameters.elements[7]=954,this.parameters.elements[11]=2112,this.parameters.elements[15]=1584),this.videoPlayer=z.a.detectAndroidMobile()?new Se(o,t):new Me(o,t),this.videoSkybox=C.a.vrFishTemp?new se.Mesh(this.player.model.fishSphere.geometry,g):new se.Mesh(new se.BoxGeometry(.4,.4,.4),g),this.videoSkybox.visible=!1,this.videoSkybox.material.side=1,this.player.model.add(this.videoSkybox),this.texture=this.videoPlayer.texture,this.texture.onUpdate=function(){if(z.a.detectAndroidMobile()&&z.a.detectWeixin())var e=setTimeout((function(){i.videoSkybox.material.uniforms.videoReady.value=1,clearTimeout(e)}),1e3);else i.videoSkybox.material.uniforms.videoReady.value=1},this.panoTexture=new se.Texture,this.panoTexture.magFilter=se.LinearFilter,this.panoTexture.minFilter=se.LinearFilter,this.closestVideoPano=this.player.model.panos.getHasVideos()[0]}return Ie()(e,[{key:"getVideoData",value:function(){var e=this,t={},i={};try{t=JSON.parse(Store.metadata.videos)}catch(e){return i}return null==t||(t.data.forEach((function(o){(1==t.version||t.version>1)&&(i[o.id]={mpeg:{url:C.a.prefixServerOSS+"video/video"+C.a.projectNum+"/"+o.id+".ts",size:o.tsSize},pc:{url:C.a.prefixServerOSS+"video/video"+C.a.projectNum+"/"+o.id+".mp4"},ios:{url:C.a.prefixServerOSS+"video/video"+C.a.projectNum+"/"+o.id+".mp4"}});var g=e.player.model.panos.index[Number(o.id)];if(g){g.hasVideo=!0;var n=se.UniformsUtils.clone(W.a.videoPanoMarker.uniforms),a=z.a.detectIOS()?{useColor2:""}:{};g.marker.material=new se.RawShaderMaterial({transparent:!0,vertexShader:W.a.videoPanoMarker.vertexShader,fragmentShader:W.a.videoPanoMarker.fragmentShader,uniforms:n,depthTest:!1,defines:a}),n.map0.value=he,n.map1.value=pe,n.map2.value=fe,ve.push(g.marker.material),g.marker.layers.set(ce.a.TAG),g.flagSpot=new le.a(e.player.model,"flagSpot___"+g.id,{position:g.floorPosition.clone().add(new se.Vector3(0,.5,0)),state:"videoPanoFlag",sid:"flagSpot___"+g.id}),g.flagSpot.build(),g.flagSpot.disc.material.uniforms.map.value=de,g.flagSpot.createMarkGroup({type:"flagSpot"}),U.a.tagManager.getTag(g.flagSpot),C.a.ifFish&&(g.marker.geometry=me),g.vrMarker&&(g.vrMarker.material.map=de);var A=C.a.ifFish?1:0;if(Object.defineProperty(g.marker.material,"opacity",{get:function(){return A},set:function(e){A=e,g.marker.material.uniforms.opacity.value=e,g.flagSpot.markGroup.stemLine.material.opacity=e,g.flagSpot.disc.material.uniforms.opacity.value=e}}),g.marker.material.opacity=C.a.ifFish?1:0,C.a.ifFish){var r=g.marker.visible;Object.defineProperty(g.marker,"visible",{get:function(){return r},set:function(e){e?g.flagSpot.show():g.flagSpot.hide(),r=e}}),g.marker.visible=!1}g.skyboxMesh.material.color=new se.Color(10/255,218/255,.8)}})),i.default=i[t.data[0].id],i.upPath=t.upPath,this.version=t.version,this.enabled=!0),i}},{key:"loadParameter",value:function(e){var t=this,i=new XMLHttpRequest;i.open("GET",e),i.responseType="text",i.send(),i.onreadystatechange=function(){if(4==i.readyState&&200==i.status){var e=i.response.split(/\n/).filter((function(e){return""!=e.trim()})).map((function(e){return e.split(":")})),o=Number(e[0][1]),g=Number(e[1][1]),n=e[2][1].trim().split(/\s+/).map((function(e){return Number(e)})),a=e[7][0].trim().split(/\s+/).map((function(e){return Number(e)}))[3],A=e[8][0].trim().split(/\s+/).map((function(e){return Number(e)}))[3],r=e[9][0].trim().split(/\s+/).map((function(e){return Number(e)}))[3];t.parameters.elements[1]=o,t.parameters.elements[5]=g,t.parameters.elements[9]=n[0],t.parameters.elements[13]=n[1],t.parameters.elements[2]=a,t.parameters.elements[6]=A,t.parameters.elements[10]=r,t.videoSkybox.material.uniforms.parameters.value=t.parameters}}}},{key:"loadCurrentPanoImage",value:function(){var e=this.player.currentPano.getCubemapUrls(this.currentPano.id,"high");return new Promise((function(t){var i=new Image;i.crossOrigin="anonymous",i.src=e,i.onload=function(){t(i)}}))}},{key:"onPanoChange",value:function(e){var t=this;if(!this.started||e!=this.currentPano){var i=this.started;if(this.currentPano=e,e&&this.ifEnable())if(this.currentPano.hasVideo)this.started=!0,this.currentPano.id!=this.closestVideoPano.id&&this.preload(this.currentPano),z.a.detectAndroid()||z.a.detectIOS()?(this.panoTexture.image=this.currentPano.solidSkybox.image,this.panoTexture.needsUpdate=!0,this.videoSkybox.material.uniforms.pano1Map.value=this.panoTexture,this.play()):this.loadCurrentPanoImage().then((function(e){t.panoTexture.image=e,t.panoTexture.needsUpdate=!0,t.videoSkybox.material.uniforms.pano1Map.value=t.panoTexture,t.play()}));else{this.pause();var o=this.player.model.panos.findClosestHasVideo(this.currentPano);this.preload(o)}else this.pause();this.started!=i&&this.player.updateRulersVisi()}}},{key:"preload",value:function(e){if(this.closestVideoPano.id!=e.id||null==this.videoPlayer.currentSource){this.closestVideoPano=e;var t=this.sourceMap[e.id];t&&this.videoPlayer.preload(t)}}},{key:"play",value:function(){this.videoPlayer.startPlay()}},{key:"pause",value:function(){this.videoSkybox.visible=!1,this.started=!1,this.videoPlayer.stop(),this.videoPlayer.played=!1,this.videoSkybox.material.uniforms.videoReady.value=0}},{key:"setVolume",value:function(e){this.videoPlayer.setVolume(e)}},{key:"setMute",value:function(e){this.videoPlayer.setMute(e)}},{key:"suspendVideo",value:function(){this.videoPlayer.suspendVideo()}},{key:"resumeVideo",value:function(){this.currentPano.hasVideo&&this.videoPlayer.resumeVideo()}},{key:"ifEnable",value:function(){var e=U.a.editor;return this.enabled&&(!e||!e.enterSplitView)&&(!edit||null==e.atPanel||!e.mainDesign.editing&&"screen"!=e.atPanel)}},{key:"onVideoRendered",value:function(){this.videoSkybox.material.uniforms.pano1Matrix.value=this.isCubeTex?this.player.currentPano.rot90Matrix.clone():this.player.currentPano.skyboxMesh.matrixWorld.clone(),this.videoSkybox.material.uniforms.videoMap.value=this.texture,this.texture.needsUpdate=!0,this.videoSkybox.material.needsUpdate=!0,this.videoSkybox.visible=!0,this.videoSkybox.position.copy(this.player.currentPano.origin)}},{key:"update",value:function(){}}]),e}(),Me=function(){function e(t,i){re()(this,e),this.player=i,this._onRendered=t.onRendered,this.video=document.createElement("video"),this.video.setAttribute("crossOrigin","anonymous"),this.video.setAttribute("playsinline","true"),this.video.setAttribute("x5-playsinline","true"),this.video.setAttribute("webkit-playsinline","true"),this.video.setAttribute("x5-video-player-type","h5"),this.video.setAttribute("controls","true"),this.video.style.position="fixed",this.video.style.left="0",this.video.style.top="0",this.video.style.width="200px",this.video.style.display="none",document.body.appendChild(this.video),this.video.preload="auto",this.video.autoplay=!1,this.video.muted=!1,this.video.loop=t.loop,this.texture=new se.VideoTexture(this.video),this.texture.magFilter=se.LinearFilter,this.texture.minFilter=se.LinearFilter,this.currentSource=null,this.isFirstPlay=!0}return Ie()(e,[{key:"preload",value:function(e){this.currentSource=e,this.video.src=this.currentSource.ios.url,this.video.autoplay=!1}},{key:"playByInteraction",value:function(){var e=this;this.isFirstPlay&&(this.video.play(),this.video.onplaying=function(){e.isFirstPlay=!1,e.player.domElement.removeEventListener("touchend",e.playByInteraction),e.onVideoPlay()})}},{key:"onVideoPlay",value:function(){this._onRendered()}},{key:"startPlay",value:function(){var e=this;this.video.autoplay=!0,z.a.detectIOS()?z.a.detectWeixin()?(window.WeixinJSBridge&&window.WeixinJSBridge.invoke("getNetworkType",{},(function(t){e.video.play()}),!1),parent.WeixinJSBridge&&parent.WeixinJSBridge.invoke("getNetworkType",{},(function(t){e.video.play()}),!1)):this.isFirstPlay?this.player.domElement&&this.player.domElement.addEventListener("touchend",this.playByInteraction.bind(this)):this.video.play():z.a.detectAndroidMobile()&&z.a.detectWeixin()&&this.isFirstPlay&&!navigator.userAgent.match("miniProgram")?this.player.domElement&&this.player.domElement.addEventListener("touchend",this.playByInteraction.bind(this)):this.video.play(),this.video.onplaying=this.onVideoPlay.bind(this)}},{key:"suspendVideo",value:function(){this.video.pause()}},{key:"resumeVideo",value:function(){this.video.play()}},{key:"stop",value:function(){this.video.pause(),this.video.onplaying=void 0}},{key:"seek",value:function(e){this.video.currentTime=e}},{key:"setVolume",value:function(e){this.video.volume=e}},{key:"setMute",value:function(e){this.video.muted=e}}]),e}(),Se=function(e){ie()(o,e);var t,i=(t=o,function(){var e,i=ae()(t);if(ue()){var o=ae()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return ge()(this,e)});function o(e,t){var g;re()(this,o);var n=document.createElement("canvas");n.width=1024,n.height=1024,n.style.border="1px solid red",n.style.position="absolute",n.style.left="-0%",n.style.top="-0%",n.style.display="none",n.style.zIndex=1e3,n.style.pointerEvents="none",n.style.transform="scale(0.5) translate(-50%, -80%)";var a=e.initSource?e.initSource.mpeg.url:"";return(g=i.call(this,a,{canvas:n,loop:!1,disableGl:!1,video:!0,audio:!0,chunkSize:1048576,disableWebAssembly:!0,decodeFirstFrame:!1,videoBufferSize:524288,preserveDrawingBuffer:!0})).autoplay=!1,g.player=t,g.currentSource=e.initSource||null,g.video.onDecodeCallback=g._onVideoDecode.bind(ee()(g)),g.options.onEnded=g._onEnded.bind(ee()(g)),g.texture=new se.CanvasTexture(n),g.texture.minFilter=se.LinearFilter,g.texture.magFilter=se.LinearFilter,g.texture.flipY=!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),g.stop(),g.played=!1,g._onRendered=e.onRendered,g.customLoop=e.loop,g}return Ie()(o,[{key:"_onEnded",value:function(){this.customLoop&&this.currentSource&&(this.preload(this.currentSource),this.startPlay())}},{key:"_onVideoDecode",value:function(e){this.texture.needsUpdate=!0,!this.played&&e.currentFrame>15&&(this._onRendered&&this._onRendered(),this.played=!0)}},{key:"preload",value:function(e){this.currentSource=e}},{key:"startPlay",value:function(){this.stop(),this.played=!1,this.source.url=this.currentSource.mpeg.url,this.source.established=!1,this.source.loadedSize=0,this.source.start(this.currentSource.mpeg.size),this.demuxer.startTime=0,this.demuxer.currentTime=0,this.demuxer.bits=null,this.demuxer.leftoverBytes=null,console.log("重置语音和画面"),this.video.bits=new JSMpeg.BitBuffer(524288,2),this.video.collectTimestamps=!1,this.audio.bits=new JSMpeg.BitBuffer(131072,2),this.audio.collectTimestamps=!1,this.audioOut.resetEnqueuedTime(),this.audioOut.unlock(),this.seek(0),this.play()}},{key:"suspendVideo",value:function(){this.pause()}},{key:"resumeVideo",value:function(){this.play()}},{key:"setMute",value:function(e){e?this.setVolume(0):this.setVolume(1)}}]),o}(JSMpeg.Player),Re=i(32),ke=i(3),Oe=i(30);function Le(e,t){THREE.Object3D.call(this),this.sid=t.sid,this.data=t,this.options=e,this.urls=new s(this.sid),this.isPublic=void 0!==t.is_public&&t.is_public,this.images=new m(this),this.images.extend(t.images),this.heroImage=this.images.getImage(t.icon),this.heroLocations=[],this.outdoorPanoLocations=[],this.floors=new P(this),this.floorsEnabled=void 0===e.floors||e.floors,this.changingFloor=!1,this.chunks=[],this.panos=new c.a,this.colliders=[],this.loadPanosPromise=null,this.loadMeshTexturesPromise=null,this.auxDataPromise=null,this.meshTexturesLoaded=!1,this.meshTextures=[],this.tags={},this.tagsShown=!1,this.shouldShowTags=!0,//!1; //许钟文改 否则showAllTags的时候不显示
- this.has360Views=!1,this.showingLabels=n.a.labels.enabled&&t.player_options.labels,this.supportedModes={},this.supportedModes[A.a.PANORAMA]=!0,this.supportedModes[A.a.DOLLHOUSE]=!t.player_options||t.player_options.dollhouse&&z.a.valueFromHash("dh",1),this.supportedModes[A.a.FLOORPLAN]=!t.player_options||t.player_options.floor_plan&&z.a.valueFromHash("dh",1),this.supportedModes[A.a.TRANSITIONING]=!0,this.supportsTiles=1!=C.a.scene_version&&this.configureTiling(),this.supportsVR=t.is_vr,this.mode=A.a.DOLLHOUSE,this.size=null,this.center=null,this.boundingBox=new THREE.Box3,this.currentFloor=null,this.allFloorsVisible=!0,this.projectedPano0=null,this.projectedPano1=null,this.floorsEnabled&&t.floors&&-1!==t.floors.indexOf(",")&&t.floors.split(",").forEach(function(e,t){this.addFloor(new Floor(this,t,e.trim()))}.bind(this)),this.waitQueue=[],this.on("load",function(e){0!==this.waitQueue.length&&(this.waitQueue=this.waitQueue.filter((function(e){return!e.isLoadedCallback()})),0===this.waitQueue.length&&this.emit("waiting-done"))}.bind(this)),this.setupCustomProperties(),this.vrMarkers=[],this.tagsVLines={},this.panoVLines={}}function Be(e){var t=U.a.miniMap;if(null!=U.a.miniMap&&U.a.miniMap.clearCanvas(1),null!=e&&void 0!==e)if(null!=e.geoData&&void 0!==e.geoData)for(var i in e.geoData){var o=e.geoData[i];void 0!==o.geometry.p1&&void 0!==o.geometry.p2&&t.draw(o.geometry.p1.x,o.geometry.p1.y,o.geometry.p2.x,o.geometry.p2.y)}else if(void 0!==e.vertex&&void 0!==e.wall)for(var g=0;g<e.wall.length;++g){var n=e.wall[g];if(void 0!==n.id&&void 0!==e.mapping){var a=e.vertex[e.mapping[n.p1]],A=e.vertex[e.mapping[n.p2]];t.draw(a.x,a.y,A.x,A.y)}else{a=e.vertex[n.p1],A=e.vertex[n.p2];t.draw(a.x,a.y,A.x,A.y)}}}function Fe(e,t){var i=U.a.miniMap,o=null,g=null,n=null,a=null;if(null!=t&&void 0!==t)if(null!=t.geoData&&void 0!==t.geoData){for(var A in t.geoData){var r,C,I,s,l=t.geoData[A];void 0!==l.geometry.p1&&void 0!==l.geometry.p2&&(l.geometry.p1.x<l.geometry.p2.x?(r=l.geometry.p1.x,I=l.geometry.p2.x):(r=l.geometry.p2.x,I=l.geometry.p1.x),l.geometry.p1.y<l.geometry.p2.y?(C=l.geometry.p1.y,s=l.geometry.p2.y):(C=l.geometry.p2.y,s=l.geometry.p1.y),(null==o||o<I)&&(o=I),(null==g||g<s)&&(g=s),(null==n||n>r)&&(n=r),(null==a||a>C)&&(a=C))}var c=Math.abs(o-n),u=Math.abs(g-a),d=Math.abs(e.max.x-e.min.x),h=Math.abs(e.max.z-e.min.z);i.resolution=Math.max(c/i.width,u/i.height),i.resolution2=Math.max(d/i.width,h/i.height),i.center.x=e.center().x,i.center.y=e.center().z}else{void 0===t.mapping&&(t.mapping={});for(var p=0;p<t.vertex.length;++p){var f=t.vertex[p];void 0!==f.id&&(t.mapping[f.id]=p),(null==o||o<f.x)&&(o=f.x),(null==g||g<f.y)&&(g=f.y),(null==n||n>f.x)&&(n=f.x),(null==a||a>f.y)&&(a=f.y)}c=Math.abs(o-n),u=Math.abs(g-a);i.center.x=(o+n)/2,i.center.y=(g+a)/2,i.resolution=Math.max(c/i.width,u/i.height),i.resolution2=i.resolution}}Le.prototype=Object.create(THREE.Object3D.prototype),o.default.extend(Le,EventEmitter),Le.prototype.setupCustomProperties=function(){var e=n.a.modelAlpha;Object.defineProperty(this,"alpha",{get:function(){return e},set:function(t){e=t,this.chunks.forEach((function(t){t.materialInside&&(t.materialInside.uniforms.modelAlpha.value=e)}))}})},Le.prototype.configureTiling=function(){var e=o.default.getMAXCUBETEXTURESIZE();if(e<2048)return!1;p.a.warn("Max cube texture size: "+e);for(var t=0;t<n.a.tiling.tilingFlagNames.length;t++){var i=n.a.tiling.tilingFlagNames[t];if("1"===z.a.valueFromHash(i,null))return!0;if("0"===z.a.valueFromHash(i,null))return!1}return!!G.modelDataPromisesTiles(this.data)},Le.prototype.toggleAlpha=function(){this.alpha<1?this.alpha=1:this.alpha=0},Le.prototype.waitForLoad=function(e,t){t()||(this.waitQueue.push({object:e,isLoadedCallback:t}),1===this.waitQueue.length&&this.emit("waiting"))},Le.prototype.hide=function(){this.floors.hide()},Le.prototype.show=function(){this.floors.show()},Le.prototype.floorNames=function(){return this.floors.names()},Le.prototype.setFloor=function(e,t){this.allFloorsVisible&&this.emit("allfloors.toggled",!1,this.currentFloor),this.allFloorsVisible=!1,this._setFloor(e,t)},Le.prototype.toggleAllFloors=function(e){this.allFloorsVisible=void 0!==e?e:!this.allFloorsVisible,this.emit("allfloors.toggled",this.allFloorsVisible,this.currentFloor),this._setFloor(this.currentFloor)},Le.prototype._setFloor=function(e,t){t=t||this.mode,this.emit("floor.changed",e,t,this.currentFloor),this.currentFloor=e,t===A.a.PANORAMA?this.show():t!==A.a.FLOORPLAN&&t!==A.a.DOLLHOUSE||this.floors.list.forEach(function(e,t){e.toggle(e===this.currentFloor||this.allFloorsVisible,t||this.allFloorsVisible)}.bind(this));var i=this,o=e;L.a.start((function(){}),n.a.showFloorDelay,function(){i.floors.forEach((function(e){e.chunks.forEach((function(t){t.renderOrder=e===o?b.a.visibleFloor:b.a.ghostFloor}))}))}.bind(this))},Le.prototype.toggleExplode=function(){this.floors.toggleExplodeHorizontal()},Le.prototype.toggleExplodeUp=function(){this.floors.toggleExplodeVertical()},Le.prototype.nextFloor=function(e){return this.floors.nextFloor(this.currentFloor,e)},Le.prototype.addFloor=function(e){this.floors.add(e)},Le.prototype.getFloorAtPoint=function(e){return this.floors.getFloorAtPoint(e)},Le.prototype.addChunk=function(e,t){this.floors.getOrMakeFloor(e).addChunk(t),this.chunks.push(t)},Le.prototype.setMode=function(e){if(!this.supportedModes[e])throw new BasicException("Mode not supported for this model: "+e);this.mode=e,this.chunks.forEach((function(t){t.setMode(e)}))},Le.prototype.build=function(){this.heroLocations=Store.capData,this.currentFloor=this.floors.last(),this.floors.build(),this.colliders=this.floors.reduce((function(e,t){return e.concat(t.collider.children)}),[]),this.panos.forEach(function(e){e.build1(),e.on("enter",function(){e.floor!==this.currentFloor&&this.setFloor(e.floor)}.bind(this))}.bind(this));var e=(new Date).getTime();if(this.initRoomInfo(),console.log("initRoomInfo: "+((new Date).getTime()-e)+"ms"),this.panos.forEach((function(e){e.build2()})),this.floors.forEach(function(e){this.boundingBox.union(e.boundingBox)}.bind(this)),this.size=this.boundingBox.size(),this.center=this.boundingBox.center(),this.floors.forEach(function(e){p.a.info("Floor "+e+": "+e.children.length+" chunks, "+e.panos.length+" panos.")}.bind(this)),this.panos.populate_path_graph(),this.skybox=new k(this.boundingBox),this.skybox.matrixWorldNeedsUpdate=!0,this.add(this.skybox),C.a.ifFish){var t=new THREE.SphereGeometry(V.a.skyRadius,80,50);t.computeBoundingBox();var i=new M.a({side:THREE.BackSide,transparent:!0,name:"fishSphereMat"},"fishSky");this.fishSphere=new THREE.Mesh(t,i),this.fishSphere.renderOrder=b.a.boundingSkybox,this.fishSphere.name="fishSphere",this.fishSphere.visible=!1,this.add(this.fishSphere)}return p.a.debug("Done building model"),O.a.raycastsDone>0&&(p.a.warn("raycasts: "+O.a.raycastsDone),p.a.warn("raycasts skipped: "+O.a.raycastsSkipped)),U.a.rebuild||(this.createFloorLogo(),Store.metadata.videos&&JSON.parse(Store.metadata.videos).data.length>0&&(z.a.detectIE()||(U.a.player.panoVideoRenderer=new De(U.a.player))),this.ifAllPanoNoNeighbor()),!z.a.urlHasValue("panos")||edit||isMobile||this.createPanoLabels(),$.when(this)},Le.prototype.reBuild=function(){this.removeRoomLabels(),this.skybox.parent.remove(this.skybox),this.boundingBox=new THREE.Box3,U.a.rebuild=!0,this.build(),this.setMode(U.a.player.currentPano.model.mode)},Le.prototype.initRoomInfo=function(){if(Store.floorJson&&Store.floorJson.room){var e=function(e,t){t.rulers.forEach((function(i){if((o=i.pointBtm.distanceTo(e.position))<Math.max(1.2*i.last.horizon.length,1.2*i.horizon.length,4)){var o=i.pointBtm.clone().sub(e.position).setY(0),g=i.next.pointBtm.clone().sub(i.pointBtm).setY(0),n=i.last.pointBtm.clone().sub(i.pointBtm).setY(0);(t.isClockWise?g.cross(o).y>0&&i.horizon.length>.2||n.cross(o).y<0&&i.last.horizon.length>.2:g.cross(o).y<0&&i.horizon.length>.2||n.cross(o).y>0&&i.last.horizon.length>.2)||(i.visiblePanos.push(e),e.visibleRulerInfos.push(i))}}))},t=null!=Store.floorJson.bottom?Store.floorJson.bottom:U.a.player.model.boundingBox.min.y,i=null!=Store.floorJson.top?Store.floorJson.top:U.a.player.model.boundingBox.max.y,o=.6*(t-i)+i,g=[],n={};if(Store.floorJson.vertex.forEach((function(e){n[e.id]={x:e.x,y:-e.y}})),Store.floorJson.room.forEach((function(e,t){var i,o=[];if(e.points.forEach((function(e){o.push(n[e])})),null!=e.name&&""!=e.name&&e.showName||e.showArea){var a=X.a.getCenterOfGravityPoint(o);isNaN(a.x)||isNaN(a.y)?console.log("这个房间的点有问题"):i={showName:null!=e.name&&""!=e.name&&e.showName,center:a,name:e.name,points:o,nearPano:{pano:null,dis:1/0}},"未命名"==i.name&&"en"==C.a.lang&&(i.name="untitled")}else i={points:o};if(edit||1==Store.metadata.rulerVisi||null==Store.metadata.rulerVisi){var A=null!=e.bottom?e.bottom:Store.floorJson.bottom,r=null!=e.top?e.top:Store.floorJson.top;i.rulers=[],o.forEach((function(e,g){var n=o[(g+1)%o.length],a=new THREE.Vector3(e.x,A,e.y),C=new THREE.Vector3(n.x,A,n.y),I=new THREE.Vector3(e.x,r,e.y),s={pointBtm:a,pointTop:I};s.horizon=new q.a({sid:"r_horiz_"+t+"_"+g,points:[a,C],state:"unable"}),s.verti=new q.a({sid:"r_verti_"+t+"_"+g,points:[a,I],state:"unable"}),s.visiblePanos=[],i.rulers.push(s)})),i.rulers.forEach((function(e,t){e.last=i.rulers[(t+o.length-1)%o.length],e.next=i.rulers[(t+1)%o.length]}))}i.bottom=null!=e.bottom?e.bottom:Store.floorJson.bottom,i.cameras=e.cameras,i.showArea=e.showArea,i.isClockWise=X.a.getArea(o)>0,i.panos=[],g.push(i)})),0==g.length)return;for(var a in this.panos.list.forEach((function(t){for(var i=new THREE.Vector2(t.position.x,t.position.z),o=0;o<g.length;o++)if(X.a.isPointInArea(g[o].points,i)){if(t.belongToRoom=o,g[o].panos.push(t),(edit||1==Store.metadata.rulerVisi||null==Store.metadata.rulerVisi)&&e(t,g[o]),g[o].showName){var n=i.distanceTo(g[o].center);n<g[o].nearPano.dis&&(g[o].nearPano.dis=n,g[o].nearPano.pano=t)}break}null==t.belongToRoom&&console.log(t.id)})),g.forEach((function(e,t){if(e.showName||e.showArea){var i=e.center;if(X.a.isPointInArea(e.points,e.center)||(console.log("!math.isPointIn"),i={x:e.nearPano.pano.position.x,y:e.nearPano.pano.position.z}),e.showName&&e.nearPano.pano){var g=new J.a({sid:t,pos:new THREE.Vector3(i.x,o,i.y),text:e.name,toPano:e.nearPano.pano});U.a.player.defaultRoomLabels.push(g)}if(edit||0===Store.metadata.cadImgVisi){var n=Math.abs(X.a.getArea(e.points));e.area=X.a.toPrecision(n,n<.1?2:1);var a=e.showName&&e.showArea&&e.name.trim()?e.name+"<br>"+ke.a.get("约")+e.area+"m²":e.showName&&e.name.trim()?e.name:e.showArea?ke.a.get("约")+e.area+"m²":"";if(a){var A=new K.a({sid:"pl_"+t,pos:new THREE.Vector3(i.x,o,i.y),text:a});U.a.player.defaultRoomLabels.push(A)}}}})),this.roomInfo=g,this.tags)for(var A=this.tags[a],r={x:A.position.x,y:A.position.z},I=0;I<g.length;I++)if(X.a.isPointInArea(g[I].points,r)){Math.abs(A.position.y-g[I].bottom)<.001&&(C.a.ifFish?A.origin.copy(A.origin.clone().setY(g[I].bottom+.001)):A.rePos(A.position.clone().setY(g[I].bottom+.001)));break}}},Le.prototype.removeRoomLabels=function(){U.a.player.defaultRoomLabels.forEach((function(e){e.remove()})),U.a.player.defaultRoomLabels=[],U.a.player.cornerRulers.forEach((function(e){e.remove()}))},Le.prototype.createFloorLogo=function(){var e=Store.metadata.floorLogo;switch(Store.metadata.floorLogo){case 1:case"1":e="user";break;case 0:case"0":case"f0":e="f0";break;default:"user"!=Store.metadata.floorLogo&&"f1"!=Store.metadata.floorLogo&&"f2"!=Store.metadata.floorLogo&&(e="f0")}Store.metadata.floorLogo=e;var t=null;t="user"==e||1==e?edit?"scene/"+V.a.sceneImgRoot+V.a.FloorLogoUser+"?m="+Store.metadata.version:V.a.sceneImgRoot+V.a.FloorLogoUser+"?m="+Store.metadata.version:V.a.imgRoot+"floorlogo/"+("en"==C.a.lang?"en/":"")+e[1]+".png";var i=B.a.load(t);$("#showInformationLogo").css("background-image","url('"+t+"')"),this.floorLogos=[];for(var o=0;o<2;o++){var g=THREE.UniformsUtils.clone(W.a.floorLogo.uniforms);g.map.value=i;var n=new THREE.ShaderMaterial({fragmentShader:W.a.floorLogo.fragmentShader,vertexShader:W.a.floorLogo.vertexShader,uniforms:g,side:THREE.DoubleSide,transparent:!0,depthWrite:!1,depthTest:!1}),a=new THREE.Mesh(new THREE.PlaneGeometry(2.5,2.5,1,1),n),A=(Store.metadata.floorLogoSize||100)/100;a.scale.set(A,A,A),a.position.set(0,-1.49,0),a.lookAt(a.position.clone().add(new THREE.Vector3(0,1,0))),a.renderOrder=b.a.floorlogo,C.a.ifFish&&(a.oriPos=new THREE.Vector3),this.add(a),this.floorLogos.push(a)}this.floorLogos[1].visible=!1},Le.prototype.changeFloorLogo=function(e){if(this.floorLogos)for(var t=0;t<2;t++)if(this.floorLogos[t].material.uniforms.map.value&&this.floorLogos[t].material.uniforms.map.value.dispose(),e.url)this.floorLogos[t].material.uniforms.map.value=B.a.load(e.url+"?m="+Store.metadata.version);else if(e.image){var i=new THREE.Texture(e.image);i.needsUpdate=!0,this.floorLogos[t].material.uniforms.map.value=i,this.floorLogos[t].material.needsUpdate=!0}},Le.prototype.adjustfloorLogoHeight=function(e){if(e&&e.reback){var t=U.a.player.currentPano.floorPosition.y+U.a.player.path.pathHeight();this.floorLogos[1].position.setY(t),this.floorLogos[0].position.setY(t),U.a.player.path.currentPanoMarker.mesh.position.y=t}else if(e&&e.begin||edit&&U.a.editor.mainDesign.editing){var i=U.a.editor.mainDesign,o=e&&e.room||i.rooms[i.atRoom];if(o){t=o.bottom+U.a.player.path.pathHeight();this.floorLogos[1].position.setY(t),this.floorLogos[0].position.setY(t),U.a.player.path.currentPanoMarker.mesh.position.y=t}}},Le.prototype.changefloorLogoOpa=function(e){this.floorLogos&&(L.a.cancelById("flOpa_"+e.index),null!=e.from&&(this.floorLogos[e.index].material.uniforms.opacity.value=e.from),e.dur?L.a.start(F.a.uniform(this.floorLogos[e.index],"opacity",e.opa),e.dur||0,null,e.delay||0,j.a.easeInQuad,"changefloorLogoOpa","flOpa_"+e.index):this.floorLogos[e.index].material.uniforms.opacity.value=e.opa)},Le.prototype.updateFloorlogo=(xe=new THREE.Quaternion,Ee=function(e,t,i){return Math.abs(e-t)<i},function(e,t){if(e){for(var i,o,g,n=0;n<2;n++)(r=this.floorLogos[n]).visible&&0!=r.material.uniforms.opacity.value&&(g=!0);if(g){var a,A=t.camera.quaternion;for((a=Ee(A.x,xe.x,.005)&&Ee(A.y,xe.y,.005)&&Ee(A.z,xe.z,.005)&&Ee(A.w,xe.w,.005))||(xe=A.clone()),C.a.ifFish&&((i=function(e,t,i){if(!t)return!1;i.sceneRenderer;var o=8e-4;return Ee(e.x,t.x,o)&&Ee(e.y,t.y,o)&&Ee(e.z,t.z,o)&&(null==e.w||Ee(e.w,t.w,o))}(t.camera.position,we,t))||(we=t.camera.position.clone())),n=0;n<2;n++){var r=this.floorLogos[n];if(!a){if(!o){(s=new THREE.Vector3(0,0,-1)).applyQuaternion(e),s.setY(0);var I=(new THREE.Matrix4).lookAt(s,new THREE.Vector3,new THREE.Vector3(0,1,0));o=(new THREE.Quaternion).setFromRotationMatrix(I);var s=new THREE.Quaternion(0,.7071067811865476,.7071067811865476,0);o.multiply(s)}r.quaternion.copy(o)}if(C.a.ifFish&&!i){var l=r.oriPos.clone().sub(t.currentTarget),c=l.length(),u=l.multiplyScalar(V.a.skyRadius/c).add(t.currentTarget).sub(t.camera.position);r.position.copy(u.multiplyScalar(c/V.a.skyRadius).add(t.camera.position))}}}}}),Le.prototype.changeMat=function(){function e(e,t){return e.material=new M.a(t),e.material.uniforms.modelAlpha.value=0,e.material.uniforms.progress.value=1,e.material}this.chunks.forEach((function(t){var i=t.materialInside.uniforms.map.value;t.materialInside=e(t,{side:THREE.DoubleSide}),t.materialInside.uniforms.map.value=i})),e(this.skybox,{side:THREE.BackSide})},Le.prototype.fadePanoMarkers=function(e,t,i){if(C.a.vrFishTemp){if(!i)return;if("panorama"!=i.player.mode&&(e=0),0!=e&&i.player.currentPano.hasVideo){var o=(new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(0,1,0),THREE.Math.degToRad(this.supportsTiles?90:180)),g=Oe.a.FORWARD.clone().applyQuaternion(o.multiply(i.player.currentPano.quaternion)).add(i.player.currentPano.position).clone().sub(i.player.currentPano.position),a=THREE.Math.degToRad(70);I=O.a.filters.isInFanAngle(i.player.currentPano.position,g,a)}if(!i.player.currentPano)return;for(var A in i.player.model.panos.index){var r=(u=i.player.model.panos.index[A]).marker;0==e||-1==i.player.currentPano.seeMarkers.indexOf(A)||I&&I(u)?r.visible=!1:r.visible=!0}}else if(U.a.sceneRenderer.vrEnabled)this.updateVrMarker();else if(0!=e&&i)if("panorama"==i.player.mode&&i.player.currentPano){var I,s=[],l=[],c=[];if(i.player.currentPano.hasVideo){o=(new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(0,1,0),THREE.Math.degToRad(this.supportsTiles?90:180)),g=Oe.a.FORWARD.clone().applyQuaternion(o.multiply(i.player.currentPano.quaternion)).add(i.player.currentPano.position).clone().sub(i.player.currentPano.position),a=THREE.Math.degToRad(70);I=O.a.filters.isInFanAngle(i.player.currentPano.position,g,a)}for(var A in i.player.model.panos.index){r=(u=i.player.model.panos.index[A]).marker;i.player.markspot&&1==i.player.posGets.list.length||i.player.markMeasures&&1==i.player.posGetsMs.list.length?i.player.disablePanos.indexOf(u)>-1?(r.material.depthTest=!0,c.push(u)):(r.material.depthTest=!1,s.push(u)):i.player.markspot&&2==i.player.posGets.list.length||i.player.markMeasures&&2==i.player.posGetsMs.list.length?i.player.markspot&&i.player.posGets.list.indexOf(A)>-1||i.player.markMeasures&&i.player.posGetsMs.list.indexOf(A)>-1?(r.material.depthTest=!1,s.push(u)):(r.material.depthTest=!0,c.push(u)):I&&I(u)||!(i.player.currentPano.seeMarkers.indexOf(A)>-1)?(C.a.isSpecialScene||"bigScene"==C.a.applicationName||(r.material.depthTest=!0),c.push(u)):(C.a.isSpecialScene||"bigScene"==C.a.applicationName||(r.material.depthTest=!1),u.hasVideo?l.push(u):s.push(u))}this.panos.fadeMarkerOpacity(e,t,[{toOp:n.a.panorama.markerOpacity,member:s},{toOp:1,member:l},{toOp:0,member:c}])}else"panorama"!=i.player.mode&&this.panos.fadeMarkerOpacity(0,t);else if(0==e)this.panos.fadeMarkerOpacity(0,t);else{s=[],l=[];for(var A in U.a.player.model.panos.index){var u;r=(u=U.a.player.model.panos.index[A]).marker;u.hasVideo?l.push(u):s.push(u)}this.panos.fadeMarkerOpacity(e,t,[{toOp:n.a.panorama.markerOpacity,member:s},{toOp:1,member:l}])}},Le.prototype.updateVrMarker=function(e){if(e=null==e?U.a.sceneRenderer.vrEnabled:e)for(var t in this.panos.index){this.panos.index[t].marker.visible=!1}else this.fadePanoMarkers(null,null,{player:U.a.player});this.vrMarkers.forEach((function(t){t.visible=e&&U.a.player.currentPano.id!=t.pano.id&&!!U.a.player.currentPano.neighbourPanos[t.pano.id];//!! 是防止undefined
- }))},Le.prototype.createTagVisiLines=function(e,t){for(var i=t[e.sid]||e.visiblePanos,o=0;o<i.length;o++){var g=this.panos.index[i[o]];this.createTagSingleLine(g,"old",e)}},Le.prototype.createTagSingleLine=function(e,t,i){var o=Z.a.createLine([e.floorPosition.clone().sub(this.position),i.position.clone()],{color:Y.a.green});this.add(o),o.name="tagVL-"+t+"-"+e.id,this.tagsVLines[e.id]=o,this.changeFIconState(this.panos.index[e.id].footIcon,"linked")},Le.prototype.dealTagVisible=function(e,t){this.tagsVLines[t]?(this.tagsVLines[t].visible=!this.tagsVLines[t].visible,this.changeFIconState(this.panos.index[t].footIcon,!!this.tagsVLines[t].visible&&"linked")):this.createTagSingleLine(this.panos.index[t],"new",e)},Le.prototype.delVisibleLines=function(){for(var e in this.tagsVLines)this.tagsVLines[e].geometry.dispose(),this.tagsVLines[e].material.dispose(),this.remove(this.tagsVLines[e]),delete this.tagsVLines[e];for(var e in this.panoVLines)this.panoVLines[e].geometry.dispose(),this.panoVLines[e].material.dispose(),this.remove(this.panoVLines[e]),delete this.panoVLines[e]},Le.prototype.createPanoVisiLines=function(e,t){var i=t[e.id]&&t[e.id].neighbourPanos||e.neighbourPanos;for(var o in i)i[o]&&o!=e.id&&this.createPanoSingleLine(e,"old",o)},Le.prototype.createPanoSingleLine=function(e,t,i){var o=this.panos.index[i].floorPosition.clone().sub(this.position),g=Z.a.createLine([e.floorPosition.clone().sub(this.position),o],{color:Y.a.green});this.add(g),g.name="PanoVL-"+t+"-"+i,this.panoVLines[i]=g,this.changeFIconState(this.panos.index[i].footIcon,"linked")},Le.prototype.dealPanoVisible=function(e){var t,i=U.a.player;i.panoVsetting?e==i.panoVsetting.id?U.a.editor.pauseSetPanoVisible("unsaved"):(this.panoVLines[e]?(this.panoVLines[e].visible=!this.panoVLines[e].visible,t=this.panoVLines[e].visible,this.changeFIconState(this.panos.index[e].footIcon,!!this.panoVLines[e].visible&&"linked")):(this.createPanoSingleLine(i.panoVsetting,"new",e),t=!0),t?(this.changeFIconState2(this.panos.index[e].footIcon,!0),this.changeFIconState2(this.panos.index[i.panoVsetting.id].footIcon,!0)):(this.changeFIconState2(this.panos.index[e].footIcon,this.checkHasNeighbor(this.panos.index[e])),this.changeFIconState2(this.panos.index[i.panoVsetting.id].footIcon,this.checkHasNeighbor(i.panoVsetting)))):U.a.editor.SetOnePanoVisible(this.panos.index[e]);this.updateFootIconSize(U.a.player.cameraControls.activeControl)},Le.prototype.showFootIcons=function(e,t){if(!this.footIcons){Pe=B.a.load(Store.FootIcon),Te=B.a.load(Store.FootIcon_unable),this.footIcons=[];var i=.4;i*=40/Math.sqrt(Math.min($("#player").width(),$("#player").height())),i=THREE.Math.clamp(i,.3,.7);var o=new THREE.PlaneGeometry(i,i,1,1);for(var g in this.panos.index){var n=THREE.UniformsUtils.clone(W.a.waypoint.uniforms);n.map.value=Pe,n.color.value.set("#ffffff");var a=new THREE.RawShaderMaterial({vertexShader:W.a.waypoint.vertexShader,fragmentShader:W.a.waypoint.fragmentShader,uniforms:n,side:THREE.DoubleSide,transparent:!0,depthWrite:!1,depthTest:!1,name:"footIcon"}),A=new THREE.Mesh(o,a);A.position.copy(this.panos.index[g].floorPosition.clone().sub(this.position)),A.lookAt(A.position.clone().add(new THREE.Vector3(0,1,0))),A.name=this.panos.index[g].id,A.visible=!1,A.renderOrder=6,this.panos.index[g].footIcon=A,this.add(A),this.footIcons.push(A)}}for(var r=0;r<this.footIcons.length;r++)this.footIcons[r].visible=!0,this.changeFIconState(this.footIcons[r],!1),t&&this.changeFIconState2(this.footIcons[r],this.checkHasNeighbor(this.panos.index[this.footIcons[r].name],"showFoot")),e&&this.footIcons[r].name==e.id?(this.footIcons[r].oriScale=new THREE.Vector3(1.5,1.5,1.5),t&&this.changeFIconState(this.footIcons[r],"center")):this.footIcons[r].oriScale=new THREE.Vector3(1,1,1)},Le.prototype.checkHasNeighbor=function(e,t){var i=U.a.player,o=i.panoVTemp&&i.panoVTemp[e.id]?i.panoVTemp[e.id].neighbourPanos:e.neighbourPanos;if("showFoot"==t||e!=i.panoVsetting){for(var g in o)if(g!=e.id&&o[g]){if(i.panoVsetting&&i.panoVsetting.id==g&&this.panoVLines[e.id]&&!this.panoVLines[e.id].visible)continue;return!0}return!1}for(var g in this.panoVLines)if(this.panoVLines[g].visible)return!0},Le.prototype.ifAllPanoNoNeighbor=function(){for(var e in this.panos.index)if(this.checkHasNeighbor(this.panos.index[e]))return!1;return this.noPanoHasNeighbor=!0,!0},Le.prototype.changeFIconState=function(e,t){var i="linked"==t?Y.a.green:"center"==t?"#d5f12e":"#ffffff";e.material.uniforms.color.value.set(i)},Le.prototype.changeFIconState2=function(e,t){t?(e.material.uniforms.map.value=Pe,U.a.player.panoVsetting&&(U.a.player.panoVsetting.id!=e.name?e.material.uniforms.opacity.value=1:U.a.editor.changeVisiBtnState(!0))):(e.material.uniforms.map.value=Te,U.a.player.panoVsetting&&U.a.player.panoVsetting.id==e.name?(e.material.uniforms.opacity.value=1,U.a.editor.changeVisiBtnState(!1)):e.material.uniforms.opacity.value=.5)},Le.prototype.recoverAllState2=function(){for(var e=0;e<this.footIcons.length;e++)this.footIcons[e].material.uniforms.opacity.value=1,this.footIcons[e].material.uniforms.map.value=Pe},Le.prototype.hideFootIcons=function(){if(this.footIcons)for(var e=0;e<this.footIcons.length;e++)this.footIcons[e].visible=!1},Le.prototype.updateFootIconSize=function(){if(this.footIcons){var e=2.8*U.a.player.cameraControls.controls.floorplan.absoluteScale;e=THREE.Math.clamp(e,.5,1.4),this.footIcons.forEach((function(t){t.scale.copy(t.oriScale).multiplyScalar(e)}))}},Le.prototype.createPanoLabels=function(){var e=$("<div id='panoLabels' class='hide'></div>");this.panos.list.forEach((function(t){var i=$("<div date-type="+t.id+">"+t.id+"</div>");e.append(i),t.hintLabel=i})),C.a.hasPanoLabels=!0,$("#hotspot").append(e)},Le.prototype.updatePanoLabels=function(){this.panos.list.forEach((function(e){var t=Re.a.getPos2d(e.position);e.hintLabel.css({left:t.pos.x+"px",top:t.pos.y+"px"})}))},Le.prototype.InitMiniMap=function(){if(null==Store.floorJson||void 0===Store.floorJson||$.isEmptyObject(Store.floorJson.geoData)&&void 0!==Store.floorJson.geoData||$.isEmptyObject(Store.floorJson)&&void 0===Store.floorJson.geoData||$.isEmptyObject(Store.floorJson.vertex)&&void 0!==Store.floorJson.vertex)$("#map").attr("noData","1"),$("#map").css("display","none");else{var e=JSON.parse(JSON.stringify(Store.floorJson));null==U.a.miniMap&&(U.a.miniMap=new Q(window)),e.floors?this.changeMiniMap(0):(Fe(this.boundingBox,e),Be(e)),$("#map").on("click",(function(){U.a.gui.modeChange.floorplan()})),U.a.gui.changeMapVisible()}},Le.prototype.changeMiniMap=function(e){if(!(this.floors.length<2||e==this.mapFloor||1==$("#map").attr("noData")||null==Store.floorJson)){this.mapFloor=e;var t=JSON.parse(JSON.stringify(Store.floorJson));Fe(this.boundingBox,t.floors[e]),U.a.miniMap.clearCanvas(),Be(t.floors[e])}},Le.prototype.updateProjectedPanos=function(){this.projectedPano0&&this.projectedPano1&&this.setProjectedPanos(this.projectedPano0,this.projectedPano1,!1)},Le.prototype.setProjectedPanos=function(e,t,i,o,g,n){null!=i||(i=!0),i=!!i,this.projectedPano0=e,this.projectedPano1=t,this.skybox.material.setProjectedPanos(e,t,i,o,g,n),C.a.ifFish&&this.fishSphere.material.setProjectedPanos(e,t,i,o,g,n),this.chunks.forEach((function(a){a.materialInside.setProjectedPanos(e,t,i,o,g,n)}))},Le.prototype.setCameraEndPos=function(e,t){this.skybox.material.setCameraEndPos(e,t),this.chunks.forEach((function(i){i.materialInside.setCameraEndPos(e,t)}))},Le.prototype.setSide=function(e){this.floors.forEach((function(t){t.collider.material.side=e}))},Le.prototype.heroCount=function(){return Store.playData.length},Le.prototype.getHeroDescriptorByIndex=function(e){if(e<0)return p.a.warn("Model.getHeroDescriptorByHeroIndex() -> heroIndex is less than 0."),null;if(this.heroCount()<1)return p.a.warn("Model.getHeroDescriptorByIndex() -> No hero locations in this model"),null;var t=this.heroLocations[e];return void 0===t?(p.a.warn("Model.getHeroDescriptorByIndex() -> Index "+e+" is not a validindex"),null):t},Le.prototype.listImagePanos=function(){var e=[],t=this;return this.images.forEach((function(i){if(i.metadata&&i.metadata.scan_id){var o=t.panos.get(i.metadata.scan_id);o&&(t.supportsTiles||o.isLoaded("high")||e.push(o))}})),e},Le.prototype.outsideAllowed=function(){return this.supportedModes[A.a.DOLLHOUSE]&&this.supportedModes[A.a.FLOORPLAN]};var je=Le;function Ne(e){var t=THREE.UniformsUtils.clone(W.a.waypoint.uniforms);t.map.value=o.default.getTexture(C.a.reticule),t.opacity.value=0,t.color.value.set(n.a.reticuleColor),THREE.Mesh.call(this,new THREE.PlaneBufferGeometry(.4,.4,1,1),new THREE.RawShaderMaterial({side:THREE.DoubleSide,depthWrite:!1,depthTest:!1,transparent:!0,vertexShader:W.a.waypoint.vertexShader,fragmentShader:W.a.waypoint.fragmentShader,uniforms:t,name:"waypoint",opacity:0})),this.layers.set(ce.a.RETICULE),this.renderOrder=b.a.reticule,this.player=e,this.direction=new THREE.Vector3,this.hidden=!0,this.mouseLastMoveTime=Date.now()}Ne.prototype=Object.create(THREE.Mesh.prototype),Ne.prototype.move=function(e,t,i){this.hidden=i,this.mouseLastMoveTime=Date.now()},Ne.prototype.hide=function(){this.hidden||(this.hidden=!0,L.a.start(F.a.property(this.material.uniforms.opacity,"value",0),n.a.reticuleOpacityTransitionTime))},Ne.prototype.show=function(){this.hidden=!1,this.material.opacity<=0&&L.a.start(F.a.property(this.material.uniforms.opacity,"value",n.a[this.player.mode].reticuleOpacity),n.a.reticuleOpacityTransitionTime)},Ne.prototype.update=function(){Date.now()-this.mouseLastMoveTime>n.a.hideReticuleTimeout&&!this.hidden&&this.hide()},Ne.prototype.updatePosition=function(e,t){if(!this.hidden){if(!t)return this.hide();var i=t.point,o=e.distanceTo(i),g=1+.01*o;o<1&&(g-=1-o),this.show(),this.scale.set(g,g,g),this.direction=this.direction.multiplyScalar(.8),this.direction.add(t.face.normal.clone().multiplyScalar(.2)),this.position.copy(i).add(t.face.normal.clone().multiplyScalar(.01)),this.lookAt(this.position.clone().add(this.direction))}};var He=Ne,ze=i(109);function Ve(){this.events=[],this.valid=!1}Ve.prototype.push=function(e,t){this.events.push({direction:e,pano:t}),this.valid=!0},Ve.prototype.pop=function(e){var t=this.events.pop();return this.events.length<1&&(this.valid=!1),t},Ve.prototype.peek=function(){return this.events.length?this.events[this.events.length-1]:{direction:null,pano:null}},Ve.prototype.invalidate=function(){this.events=[],this.valid=!1},Ve.prototype.reversePano=function(e){if(!this.valid)return null;var t=this.peek();return r.opposite(e)===t.direction?(this.pop(),t.pano):null};var Ge=Ve;function We(){this.actionSequence=[],this.actionSequenceInProgress=!1}We.prototype.reset=function(e){this.actionSequenceInProgress=!1,this.actionSequence.length=0};var Ue,Qe,Ye,Ze=We,Xe=i(26),Je=i(22),Ke=i(83),qe=i(24),_e={ZoomIn:"zoom.in",ZoomOut:"zoom.out",ZoomMax:"zoom.max",ZoomMin:"zoom.min"},$e=i(27),et=i(62),tt=i(45),it=(i(191),i(71)),ot=i(12),gt=i(41);function nt(e,t,i){this.obj3d=null,this.nodes=[],this.colorHull=[],this.shortPaths={},this.floorHull=null,this.cameraHull=null,this.floorPathDistance=0,this.floorCurvePoints=null,this.floorCurveColors=null,this.camCurvePoints=null,this.warpDestHeroLoc=null,this.warpDestPano=null,this.warpPathPoints=null,this.warpPathLengths=[0],this.warpLength=0,this.closeWarpDistance=4,this.UP=Oe.a.UP.clone(),this.longestStep=0,this.upcomingTransType=null,this.burnsDir=1,this.prevNextDist=0,this.nextI=0,this.activeTransType=null,this.lastTransType=null,this.bunnyObj=null,this.director=e,this.player=t,this.playerControls=i,this.modelManager=t.modelManager,this.updateModel(),this.updateDefaultsFromModelData(),this.bindEvents(),this.warping=!1,this.waitingToWarp=!1,this.warpInterrupted=!1,this.warpInterruptionBlackoutStyle=null,this.warpInterruptionTravelTime=null,this.pathImg={},this.init()}nt.prototype.init=function(){this.pathImg.path=o.default.getTexture(C.a.path),this.pathImg.pathEnd=o.default.getTexture(C.a.pathEnd),this.pathImg.pathStart=o.default.getTexture(C.a.pathStart)},nt.prototype.setScene=function(e){this.createCpm(e),this.createBunnyObj(e)},nt.prototype.updateModel=function(){this.model=this.modelManager.getActiveModel()},nt.prototype.bindEvents=function(){this.modelManager.on(it.a.ActiveModelChanged,this.updateModel.bind(this))},nt.prototype.updateDefaultsFromModelData=function(){this.model.data},nt.prototype.pointPathDistance=function(e){for(var t=0,i=1;i<e.length;i+=1)t+=e[i-1].distanceTo(e[i]);return t},nt.prototype.pointPathLengths=function(e){for(var t=[0],i=1;i<e.length;i+=1)t.push(t[i-1]+e[i-1].distanceTo(e[i]));return t},nt.prototype.interpAlongPath=function(e,t,i){var o,g=new THREE.Vector3,n=t[t.length-1];if(i<1){o=i*n;for(var a=1;a<t.length;a+=1)if(t[a]>o){var A=(o-t[a-1])/(t[a]-t[a-1]);return g.copy(e[a]),g.sub(e[a-1]),g.multiplyScalar(A),g.add(e[a-1]),g}}else g.copy(e[e.length-1]);return g},nt.prototype.pathHeight=function(){return this.player.mode!==A.a.FLOORPLAN?n.a.path.height:n.a.path.outsideHeight},nt.prototype.createBunnyObj=function(e){this.bunnyObj||(this.bunnyObj=new THREE.AxisHelper(.1),this.bunnyObj.visible=n.a.warp.showBunny),this.bunnyObj.parent&&this.bunnyObj.parent.remove(this.bunnyObj),e.add(this.bunnyObj)},nt.prototype.createCpm=function(e){if(!this.currentPanoMarker){var t=this.makeWaypointObj(this.pathImg.pathEnd,"Current");t.material.uniforms.opacity.value=0,this.currentPanoMarker={mesh:t,placed:!1}}this.currentPanoMarker.mesh.parent&&this.currentPanoMarker.mesh.parent.remove(this.currentPanoMarker.mesh),this.placeCpm(),this.currentPanoMarker.mesh.parent||e.add(this.currentPanoMarker.mesh)},nt.prototype.placeCpm=function(e){if(n.a.path.mapGuides&&this.player.currentPano&&this.player.currentPano.isAligned()){var t=this.player.currentPano.floor;if(this.currentPanoMarker.mesh.parent!==this.player.currentPano.floor&&(this.currentPanoMarker.mesh.parent&&this.currentPanoMarker.mesh.parent.remove(this.currentPanoMarker.mesh),t.add(this.currentPanoMarker.mesh)),this.currentPanoMarker.mesh.position.copy(this.player.currentPano.floorPosition).sub(t.position),edit&&U.a.editor.mainDesign.editing){var i=U.a.editor.mainDesign;i.atRoom&&this.currentPanoMarker.mesh.position.setY(i.rooms[i.atRoom].bottom)}this.currentPanoMarker.mesh.position.y+=this.pathHeight(),this.currentPanoMarker.placed=!0}else this.popOutCpm()},nt.prototype.fadeInCpm=function(e){this.player.mode===A.a.PANORAMA&&this.player.currentPano&&!this.player.currentPano.isAligned()||n.a.path.mapGuides&&this.currentPanoMarker.placed&&L.a.start(F.a.property(this.currentPanoMarker.mesh.material.uniforms.opacity,"value",1),e)},nt.prototype.fadeOutCpm=function(e){L.a.start(F.a.property(this.currentPanoMarker.mesh.material.uniforms.opacity,"value",0),e)},nt.prototype.popInCpm=function(){n.a.path.mapGuides&&this.currentPanoMarker.placed&&this.fadeInCpm(2)},nt.prototype.popOutCpm=function(){this.fadeOutCpm(2)},nt.prototype.brushPrefs={linewidth:7,strokeWidth:15,cvSegments:48,paveStep:.1,paveWidth:.2,lookBlendDist:3,maxTurn:THREE.Math.degToRad(2)},nt.prototype.panoPathDistance=function(e){var t=this.model.panos;if(!e||e.length<2)return 0;for(var i=[],o=0;o<e.length;o+=1)i.push(t.get(e[o]).floorPosition);return this.pointPathDistance(i)},nt.prototype.loadTileTexture=function(e){var t=texture.load(e,(function(t){t.wrapS=THREE.RepeatWrapping,t.wrapT=THREE.RepeatWrapping,t.needsUpdate=!0,p.a.debug('path texture "'+e+'" is ready')}),(function(){p.a.error('path texture "'+e+'" failed')}));return t.mapping=THREE.UVMapping,t},nt.prototype.buildWarpDestinationDescriptor=function(e,t,i,o,g,n){var a={cameraMode:o,position:e,quaternion:t,panoId:i,orthoZoom:n,floorVisibility:g,thumbUrl:null,name:null};return new h.a(a)},nt.prototype.buildWarpDestinationDescriptorFromHero=function(e){return this.buildWarpDestinationDescriptor(e.position,e.quaternion,this.getHeroId(e),e.cameraMode,e.floorVisibility,e.orthoZoom)},nt.prototype.setWarpDestination=function(e){this.warpDestHeroLoc=e},nt.prototype.setWarpDestinationByHeroIndex=function(e){var t=this.getHeroDescriptorByHeroIndex(e);return null!==t&&(this.setWarpDestination(t),!0)},nt.prototype.setWarpDestinationByPano=function(e,t){return!!this.model.panos.get(e.id)&&this.setWarpDestinationByPanoId(e.id,t)},nt.prototype.setWarpDestinationByPanoId=function(e,t){var i=this.model.panos.get(e);if(i){t=t||new THREE.Quaternion;var o=this.buildWarpDestinationDescriptor(i.position,t,i.id,"panorama",[],-1);return this.setWarpDestination(o),!0}return!1},nt.prototype.getHeroDescriptorByHeroIndex=function(e){var t=this.model.heroCount();if(null!==this.warpDestHeroLoc&&t<2)return p.a.info("ShowPath.getHeroDescriptorByHeroIndex() -> Only one hero location is available."),this.model.getHeroDescriptorByIndex(0);var i=this.model.getHeroDescriptorByIndex(e);i=ot.a.getCapItem(e),1==gt.a.playData[e].type&&(i=ot.a.getCapItem(e,0));var o=ot.a.convertHighlight(i),g=new h.a(o);if(g){var n=g.isPano()?g.panoId:g.cameraMode;p.a.debug('ShowPath.getHeroDescriptorByHeroIndex() -> New brush/warp destination: "'+n+'" out of '+t+" choices.")}return g},nt.prototype.getHeroDescriptorByPano=function(e){return this.model.panos.get(e.id)?this.getHeroDescriptorByPanoId(e.id):null},nt.prototype.getHeroDescriptorByPanoId=function(e){var t=this.getHeroIndexFromPanoId(e);return this.getHeroDescriptorByHeroIndex(t)},nt.prototype.getHeroIndexFromPanoId=function(e){for(var t=0;t<this.model.heroLocations.length;t++){var i=this.model.heroLocations[t],o=this.getHeroId(i);if(o&&o===e)return t}return-1},nt.prototype.getHeroPano=function(e){if(null===e)return p.a.warn("getHeroPano(): no destination"),null;var t=this.getHeroId(e),i=this.model.panos.get(t);return void 0===i&&(i=null,""!==t&&p.a.debug('unable to find pano "'+t+'"')),i},nt.prototype.getHeroId=function(e){return e.panoId},nt.prototype.setWarpDestPano=function(){return this.warpDestPano=this.getHeroPano(this.warpDestHeroLoc),this.warpDestPano},nt.prototype.brushToWarpPano=function(e,t){if(this.discardPathObject(),!this.setWarpDestPano())return!1;if(this.warpDestHeroLoc.cameraMode!==A.a.PANORAMA&&p.a.warn("Can only brush from pano to pano"),!this.warpDestPano)return p.a.info("No brush"),!1;if(!this.player.currentPano)return p.a.debug("No current pano, visibility undefined"),!1;if(!this.warpDestPano)return p.a.info("No wPano, visibility undefined"),!1;if(!this.warpDestPano.isAligned())return p.a.debug("Cannot brush to unaligned pano"),!1;var i=(e===tt.a.STD||e===tt.a.WALK)&&n.a.path.mapGuides,o=!0;if(this.player.currentPano.id===this.warpDestPano.id)p.a.debug("Already at destination pano");else{this.nodes=this.findShortestPath(this.player.currentPano,this.warpDestPano),o=void 0===this.nodes||null===this.nodes||this.nodes.length<1,this.obj3d=new THREE.Object3D,p.a.debug('Brushing from "'+this.player.currentPano.id+'" to "'+this.warpDestPano.id+'" ('+(this.nodes?this.nodes.length:0)+")"),o?(p.a.info('No "walkable" route, using fall-back warp style transition'),e=t):(this.setPathHulls(this.nodes),this.setFloorCurves(),i&&("chevron"===n.a.path.style?this.obj3d.add(this.drawPathPavement(this.floorCurvePoints)):"ribbon"===n.a.path.style&&this.obj3d.add(this.drawPathRibbon(this.floorCurvePoints,this.floorCurveColors)))),this.player.currentPano.floor.add(this.obj3d);var g=this.player.mode===A.a.DOLLHOUSE||this.player.mode===A.a.FLOORPLAN,a=e===tt.a.STD;if(!o&&(i||a)){if(g){var r=this.makeStartMarker(this.floorHull[0],this.floorCurvePoints);this.obj3d.add(r)}var C=this.makeEndMarker(this.floorHull[this.floorHull.length-1]);this.obj3d.add(C)}this.appearSlow()}return this.upcomingTransType=e,!o},nt.prototype.findShortestPath=function(e,t){if(!e||!t)return null;var i=n.a.warp.walkExtraPanosDistance,o=e.id+":"+t.id+":"+i;if(this.shortPaths.hasOwnProperty(o))return this.shortPaths[o]?this.shortPaths[o].slice():null;var g=t.id+":"+e.id+":"+i;if(this.shortPaths.hasOwnProperty(g))return this.shortPaths[g]?this.shortPaths[g].slice().reverse():null;var a=this.model.panos.aStarSearch(e,t);return this.model.panos.includeNodesNearPath(a,i),this.shortPaths[o]=a?a.slice():null,a},nt.prototype.makePathHulls=function(e){var t,i,o,g,a,A=0,r=[],C=[],I=[],s=this.model.panos;g=(t=s.get(e[0])).floor.floorIndex;for(var l=0;l<e.length;l+=1)(i=(t=s.get(e[l])).floorPosition.clone().sub(this.model.position)).y+=this.pathHeight(),r.push(i),C.push(t.position.clone()),o=t.floor.floorIndex,I.push(o>g?n.a.path.colorUp:o<g?n.a.path.colorDown:n.a.path.color),l>0&&((a=C[l].distanceTo(C[l-1]))>A&&(A=a));return A>this.longestStep&&(this.longestStep=A,p.a.debug("path contains "+A+" meter segment")),{floor:r,camera:C,color:I}},nt.prototype.makeFloorCurves=function(e,t,i){var o=this.player.mode===A.a.PANORAMA?n.a.path.waypointIndoorRadius:n.a.path.waypointRadius,g=this.pointPathDistance(e)-2*o,a=e.slice(0),r=a[1].clone().sub(a[0]);r.y=0,r.normalize().multiplyScalar(o),a[0]=(new THREE.Vector3).copy(a[0]).add(r),(r=a[a.length-2].clone().sub(a[a.length-1])).y=0,r.normalize().multiplyScalar(o),a[a.length-1]=(new THREE.Vector3).copy(a[a.length-1]).add(r);var C=new THREE.CatmullRomCurve3(a),I=Math.floor(g/i);I=4*Math.floor(I/4),I=Math.max(4,I);for(var s,l,c=C.getSpacedPoints(I),u=[],d=new THREE.Vector3,h=0;h<c.length;h+=1){l=0,s=c[h].distanceTo(e[0]);for(var p=1;p<e.length;p+=1)d.copy(c[h]).sub(e[p]),d.y*=4,d.length()<s&&(l=p);u.push(t[l])}return{distance:g,points:c,colors:u}},nt.prototype.makeCameraCurvePoints=function(e,t){var i=this.pointPathDistance(e);return new THREE.CatmullRomCurve3(e).getSpacedPoints(Math.max(2,Math.floor(i/t)))},nt.prototype.setPathHulls=function(e){var t=this.makePathHulls(e);this.floorHull=t.floor,this.cameraHull=t.camera,this.colorHull=t.color},nt.prototype.setFloorCurves=function(){var e=this.makeFloorCurves(this.floorHull,this.colorHull,this.brushPrefs.paveStep);this.floorPathDistance=e.distance,this.floorCurvePoints=e.points,this.floorCurveColors=e.colors},nt.prototype.setCameraCurvePoints=function(){this.camCurvePoints=this.makeCameraCurvePoints(this.cameraHull,n.a.warp.stepFactor*this.brushPrefs.paveStep)},nt.prototype.chooseWarpPath=function(e){var t,i,o,g=this.playerControls.cameras[A.a.PANORAMA];if(this.player.currentPano===this.warpDestPano||!e)return this.warpPathPoints=null,this.warpLength=0,!1;this.nodes=this.findShortestPath(this.player.currentPano,this.warpDestPano),this.setPathHulls(this.nodes),void 0===this.nodes||null===this.nodes||this.nodes.length<1?(p.a.debug("warp path to unreachable node"),i=(t=this.warpDestPano.position.clone().sub(g.position)).clone().negate(),t.multiplyScalar(.15).add(g.position),i.multiplyScalar(.15).add(this.warpDestPano.position),t.y=g.position.y,i.y=this.warpDestPano.position.y,o=new THREE.CubicBezierCurve3(g.position.clone(),t,i,this.warpDestPano.position.clone()),this.warpPathPoints=o.getSpacedPoints(this.brushPrefs.cvSegments)):(p.a.debug("follow warp path (path distance was "+this.nodes.length+" nodes, "+this.floorPathDistance+")"),this.setCameraCurvePoints(),this.warpPathPoints=this.camCurvePoints.slice(0)),this.warpLength=0,this.warpPathLengths=[0];for(var a=new THREE.Vector3,r=new THREE.Vector3,C=Math.cos(THREE.Math.degToRad(n.a.warp.minBrakeAngle)),I=Math.cos(THREE.Math.degToRad(n.a.warp.maxBrakeAngle)),s=1;s<this.warpPathPoints.length;s+=1){a.copy(this.warpPathPoints[s-1]).sub(this.warpPathPoints[s]);var l=a.length();a.y*=n.a.warp.climbEffort;var c=a.length()/l;if(s>1){a.setY(0).normalize(),r.copy(this.warpPathPoints[s-2]).sub(this.warpPathPoints[s-1]).setY(0).normalize();var u=Math.min(1,a.dot(r)),d=1+(n.a.warp.brakeStrength-1)*(1-THREE.Math.smoothstep(u,I,C));c=Math.max(d,c)}this.warpLength+=l*c,this.warpPathLengths[s]=this.warpLength}return!0},nt.prototype.drawPathRibbon=function(e,t){this.bunnyObj.visible=n.a.warp.showBunny;for(var i=.6*n.a.path.ribbonWidth*.5,o=new THREE.Vector3,g=new THREE.Vector3(0,this.pathHeight(),0),a=new THREE.Geometry,r=new THREE.Vector3,C=0;C<e.length;C+=1){r.copy(e[C]),0===C?r.sub(e[C+1]):r.sub(e[C-1]).negate(),r.normalize(),o.crossVectors(r,Oe.a.UP),o.multiplyScalar(i);var I=(new THREE.Vector3).copy(e[C]).add(g);I.sub(o),a.vertices.push(I),(I=(new THREE.Vector3).copy(e[C]).add(g)).add(o),a.vertices.push(I)}var s,l,c,u=0;for(C=0;C<e.length-1;C+=1){var d=2*C,h=u,p=u+=e[C+1].distanceTo(e[C]),f=t[C],m=t[C+1];(s=new THREE.Face3(d,d+1,d+2)).vertexColors=[new THREE.Color(f),new THREE.Color(f),new THREE.Color(m)],a.faces.push(s),a.faceVertexUvs[0].push([new THREE.Vector2(0,h),new THREE.Vector2(1,h),new THREE.Vector2(0,p)]),(s=new THREE.Face3(d+2,d+1,d+3)).vertexColors=[new THREE.Color(m),new THREE.Color(f),new THREE.Color(m)],a.faces.push(s),a.faceVertexUvs[0].push([new THREE.Vector2(0,p),new THREE.Vector2(1,h),new THREE.Vector2(1,p)])}a.computeFaceNormals(),a.computeVertexNormals(),this.player.mode===A.a.PANORAMA?((c=THREE.UniformsUtils.clone(W.a.ribbon.uniforms)).map.value=this.pathImg.path,c.opacity.value=0,c.color.value.set(n.a.path.color),l=new THREE.RawShaderMaterial({side:THREE.DoubleSide,depthWrite:!1,transparent:!0,vertexShader:W.a.ribbon.vertexShader,fragmentShader:W.a.ribbon.fragmentShader,uniforms:c,name:"ribbonT",opacity:0})):l=new THREE.MeshBasicMaterial({color:16777215,side:THREE.DoubleSide,name:"ribbonOut",vertexColors:THREE.VertexColors});var v=new THREE.Mesh(a,l);return v.name="ribbon",this.player.mode===A.a.PANORAMA&&(v.renderOrder=b.a.ribbon),v},nt.prototype.drawPathPavement=function(e){for(var t,i=new THREE.Vector3,o=new THREE.Geometry,g=new THREE.Vector3,a=0;a<e.length;a+=1)g.copy(e[a]),0===a?g.sub(e[a+1]).negate():g.sub(e[a-1]),g.normalize(),i.crossVectors(g,Oe.a.UP),i.multiplyScalar(this.brushPrefs.paveWidth),(t=(new THREE.Vector3).copy(e[a])).sub(i),o.vertices.push(t),o.vertices.push((new THREE.Vector3).copy(e[a])),(t=(new THREE.Vector3).copy(e[a])).add(i),o.vertices.push(t);var r,C,I;for(a=0;a<e.length-1;a+=1)r=3*a+1,I=(C=.25*a)+.25,o.faces.push(new THREE.Face3(r-1,r,r+3)),o.faceVertexUvs[0].push([new THREE.Vector2(0,C),new THREE.Vector2(.5,C),new THREE.Vector2(.5,I)]),o.faces.push(new THREE.Face3(r+3,r+2,r-1)),o.faceVertexUvs[0].push([new THREE.Vector2(.5,I),new THREE.Vector2(0,I),new THREE.Vector2(0,C)]),o.faces.push(new THREE.Face3(r+3,r,r+1)),o.faceVertexUvs[0].push([new THREE.Vector2(.5,I),new THREE.Vector2(.5,C),new THREE.Vector2(1,C)]),o.faces.push(new THREE.Face3(r+3,r+1,r+4)),o.faceVertexUvs[0].push([new THREE.Vector2(.5,I),new THREE.Vector2(1,C),new THREE.Vector2(1,I)]);var s=this.player.mode===A.a.PANORAMA?new THREE.MeshBasicMaterial({color:n.a.path.color,side:THREE.DoubleSide,transparent:!0,depthWrite:!1,opacity:0,name:"paveT",map:this.pathImg.path}):new THREE.MeshBasicMaterial({color:n.a.path.color,side:THREE.DoubleSide,transparent:!0,depthWrite:!1,opacity:1,name:"paveO",map:this.pathImg.path});return new THREE.Mesh(o,s)},nt.prototype.hintPrefs={rad:.18,width:.0125,depth:.0625,setBack:-.04,markRad:.25,markInnerRad:.16},nt.prototype.makeWaypointObj=function(e,t){var i=new THREE.Geometry,o=this.player.mode===A.a.PANORAMA?n.a.path.waypointIndoorRadius:n.a.path.waypointRadius,g=this.pathHeight();i.vertices.push(new THREE.Vector3(-o,g,o),new THREE.Vector3(-o,g,-o),new THREE.Vector3(o,g,-o),new THREE.Vector3(o,g,o)),i.faces.push(new THREE.Face3(0,1,2),new THREE.Face3(2,3,0)),i.faceVertexUvs[0].push([new THREE.Vector2(0,0),new THREE.Vector2(1,0),new THREE.Vector2(1,1)]),i.faceVertexUvs[0].push([new THREE.Vector2(1,1),new THREE.Vector2(0,1),new THREE.Vector2(0,0)]);var a=THREE.UniformsUtils.clone(W.a.waypoint.uniforms);a.map.value=e,a.opacity.value=0,a.color.value.set(n.a.path.color);var r={side:THREE.DoubleSide,depthWrite:!1,depthTest:!1,transparent:!0,vertexShader:W.a.waypoint.vertexShader,fragmentShader:W.a.waypoint.fragmentShader,uniforms:a,name:"waypoint",opacity:0};this.player.mode!==A.a.PANORAMA&&(r.depthTest=!1,r.name="wayPtOut");var C=new THREE.RawShaderMaterial(r),I=new THREE.Mesh(i,C);return I.renderOrder=b.a.panoMarker,I.name=t,I},nt.prototype.makeStartMarker=function(e,t){var i=(new THREE.Vector3).copy(t[1]).sub(t[0]);i.y=0,i.normalize();var o=Math.acos(i.x),g=this.makeWaypointObj(this.pathImg.pathStart,"Start");return g.rotateOnAxis(new THREE.Vector3(0,1,0),o),g.position.copy(e),g},nt.prototype.makeEndMarker=function(e){var t=this.makeWaypointObj(this.pathImg.pathEnd,"End"),i=this.model.panos.get(this.nodes[0]).floor.floorIndex,o=this.model.panos.get(this.nodes[this.nodes.length-1]).floor.floorIndex;return i<o?t.material.uniforms.color.value.set(n.a.path.colorUp):i>o&&t.material.uniforms.color.value.set(n.a.path.colorDown),t.position.copy(e),t},nt.prototype.pathClean=function(e){if(e){for(var t in e.children)this.pathClean(e.children[t]);e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose()}},nt.prototype.discardPathObject=function(){if(this.obj3d){var e=this.obj3d.parent;e&&e.remove(this.obj3d),this.pathClean(this.obj3d)}this.obj3d=null,this.popInCpm()},nt.prototype.discardSlow=function(){if(this.obj3d){if(this.player.mode!==A.a.PANORAMA)return void this.discardPathObject();for(var e,t=0,i=function(){this.discardPathObject()}.bind(this),o=0;o<this.obj3d.children.length;o+=1)void 0!==(e=this.obj3d.children[o]).material&&!0===e.material.transparent&&(void 0!==e.material.uniforms?L.a.start(F.a.property(e.material.uniforms.opacity,"value",0),n.a.path.fadeOutTime,i,0,j.a[n.a.warp.blendEasing]):L.a.start(F.a.property(e.material,"opacity",0),n.a.path.fadeOutTime,i,0,j.a[n.a.warp.blendEasing]),t+=1,i=null);0===t&&this.discardPathObject(),this.player.mode!==A.a.PANORAMA&&this.fadeInCpm(n.a.path.fadeInTime-3)}},nt.prototype.appearSlow=function(){var e;this.fadeOutCpm(n.a.path.fadeInTime);for(var t=this.player.mode===A.a.PANORAMA?n.a.path.opacity:1,i=0;i<this.obj3d.children.length;i+=1)void 0!==(e=this.obj3d.children[i]).material&&!0===e.material.transparent&&(void 0!==e.material.uniforms?L.a.start(F.a.property(e.material.uniforms.opacity,"value",t),n.a.path.fadeInTime,null,0,j.a[n.a.warp.blendEasing]):L.a.start(F.a.property(e.material,"opacity",t),n.a.path.fadeInTime,null,0,j.a[n.a.warp.blendEasing]))},nt.prototype.update=function(){this.obj3d&&this.obj3d.updateMatrixWorld()},nt.prototype.calcBurnsAmount=function(e){var t=THREE.Math.degToRad(n.a.warp.burnsAngle);if(this.player.mode===A.a.PANORAMA){var i=this.burnsDir*t;if(this.upcomingTransType===tt.a.BLACK)return i;var o=e;if(null===o)return p.a.warn("Transition request for non-highlight"),i;var g=this.getHeroDescriptorByHeroIndex(o);if(null===g)return i;if(!g.isPano())return i;var a=this.getHeroPano(g),r=this.playerControls.cameras[A.a.PANORAMA],C=Oe.a.FORWARD.clone().applyQuaternion(r.quaternion).setY(0).normalize(),I=Math.min(THREE.Math.degToRad(n.a.warp.minBurnsAngle),t),s=function(e){var i=Math.acos(Math.min(1,e.dot(C))),o=(new THREE.Vector3).crossVectors(C,e);return Math.max(I,Math.min(Math.abs(i),t))*Math.sign(o.y)};if(a===this.player.currentPano)return s(Oe.a.FORWARD.clone().applyQuaternion(g.quaternion).setY(0).normalize());var l=this.findShortestPath(this.player.currentPano,a);if(null==l||l.length<1)return p.a.debug("Empty path ahead..."),i;var c=this.makePathHulls(l),u=new THREE.CatmullRomCurve3(c.camera),d=Math.min(.1,n.a.warp.lookAheadDist/u.getLength());return s(u.getPointAt(d).clone().sub(r.position).setY(0).normalize())}return this.player.mode===A.a.DOLLHOUSE?.02*this.burnsDir:this.burnsDir},nt.prototype.waitNextStep=function(e,t){var i=n.a.warp.tourStepDelay;i||(i=this.lastTransType===tt.a.BLACK?constants.tourStepDelaySlideShow:constants.tourStepDelayDefault);var o=new THREE.Euler,g=new THREE.Vector3;p.a.debug("Starting wait: "+(void 0!==t));var a=this.calcBurnsAmount(e),r=function(){this.endWarpState(),this.player.mode===A.a.DOLLHOUSE&&(this.playerControls.cameras[A.a.DOLLHOUSE].controls.rotationAcceleration.x=0),t&&t()}.bind(this),C=function(e,t){if(this.warpInterrupted)return r(),!0;var C=t||1e3/60;if(n.a.warp.doBurns)if(this.player.mode===A.a.PANORAMA){var I=this.playerControls.cameras[A.a.PANORAMA];o.setFromQuaternion(WarpcameraStyle.quaternion,n.a.warp.eOrder);var s=C*a/i;o.y+=s,g.set(0,0,-1),g.applyEuler(o),g.add(I.position),I.controls.lookAt(g),I.controls.lookVector.copy(g),I.lookAt(g)}else this.player.mode===A.a.DOLLHOUSE?this.playerControls.controls[A.a.DOLLHOUSE].rotationAcceleration.x=a:this.playerControls.controls[A.a.FLOORPLAN].absoluteScale*=.9996}.bind(this);this.startWarpState(),L.a.start(C,i,r,0,j.a.easeInOutQuad,"wait")},nt.prototype.warpToNonPano=function(e){if(this.discardPathObject(),this.warpDestHeroLoc.cameraMode===A.a.DOLLHOUSE||this.warpDestHeroLoc.cameraMode===A.a.FLOORPLAN){var t=function(){e&&e()}.bind(this);this.player.flyToNewMode({mode:this.warpDestHeroLoc.cameraMode,duration:n.a.warp.outsideTime,warpDest:this.warpDestHeroLoc,callback:t,force:!0})}else p.a.warn("no warp destination!!!"),e&&e()},nt.prototype._resetWarpShaderParams=function(e){this.player.mode===A.a.PANORAMA&&(void 0!==e.material.uniforms.blackout&&(e.material.uniforms.blackout.value=0),void 0!==e.material.uniforms.modelAlpha&&(e.material.uniforms.modelAlpha.value=0))},nt.prototype._clearWarpShading=function(){for(var e=this.model.chunks,t=0;t<e.length;t+=1)this._resetWarpShaderParams(e[t]),e[t].visible=!0;this._resetWarpShaderParams(this.model.skybox)},nt.prototype._warpStopFlying=function(){this.activeTransType=null,this.placeCpm()},nt.prototype._wrapupTravelOnlyBits=function(){this._warpStopFlying(),this.warpPathPoints&&(this.player.currentPano.exit(),this.warpDestPano.enter(),this.player.currentPano=this.warpDestPano),this.placeCpm()},nt.prototype._wrapupTravel=function(e){this._wrapupTravelOnlyBits(),this.warpCameraAim(e)},nt.prototype._wrapupWarpShading=function(e){this._clearWarpShading(),this._wrapupTravel(e)},nt.prototype.wrapupWarpShadingOnly=function(e,t){t!==et.a.END&&this._clearWarpShading(),this._wrapupTravelOnlyBits(),this.upcomingTransType=null,e&&e()},nt.prototype._warpCameraAim=function(e,t){var i=this.warpDestHeroLoc.quaternion,o=this.playerControls.cameras[A.a.PANORAMA],g=new THREE.Vector3(0,0,1).applyQuaternion(i).normalize(),a=new THREE.Vector3(0,0,1).applyQuaternion(o.quaternion).normalize().dot(g),r=THREE.Math.radToDeg(Math.acos(a)),C=new THREE.Euler(0,0,0,n.a.warp.eOrder).setFromQuaternion(i,n.a.warp.eOrder),I=(new THREE.Euler).setFromQuaternion(o.quaternion,n.a.warp.eOrder),s=new THREE.Euler(C.x-I.x,C.y-I.y,C.z-I.z,n.a.warp.eOrder);s.y=X.a.constrainedTurn(s.y),this.burnsDir=Math.sign(s.y);var l=new THREE.Euler(0,0,0,n.a.warp.eOrder),c=new THREE.Vector3,u=function(e,t){return!!this.warpInterrupted||(l.x=I.x+e*s.x,l.y=I.y+e*s.y,l.z=I.z+e*s.z,c.set(0,0,-1),c.applyEuler(l),c.add(o.position),o.controls.lookAt(c),o.controls.lookVector.copy(c),void o.lookAt(c))}.bind(this);return r>n.a.warp.minRotation?L.a.start(u,e,t,0,j.a[n.a.warp.movementEasing]):(p.a.debug("Aim angle only is "+r.toPrecision(3)+" degrees, skipping explicit re-aim"),void(t&&t()))},nt.prototype._warpBendAim=function(e,t,i,o){var g=o||0,a=this.playerControls.cameras[A.a.PANORAMA],r=new THREE.Euler(0,0,0,n.a.warp.eOrder).setFromQuaternion(this.warpDestHeroLoc.quaternion,n.a.warp.eOrder),C=(new THREE.Euler).setFromQuaternion(a.quaternion,n.a.warp.eOrder),I=new THREE.Euler(r.x-C.x,r.y-C.y,r.z-C.z,n.a.warp.eOrder);I.y=X.a.constrainedTurn(I.y);var s=Math.min(THREE.Math.degToRad(n.a.warp.softBendTilt),Math.abs(I.x));I.x=s*Math.sign(I.x),s=Math.min(THREE.Math.degToRad(Math.max(0,n.a.warp.softBendAngle)),s),this.burnsDir=Math.sign(I.y),s*=Math.sign(I.y),I.y=s;var l=new THREE.Euler(0,0,0,n.a.warp.eOrder),c=new THREE.Vector3,u=function(e,t){if(e<.5)l.x=C.x+e*I.x,l.y=C.y+e*I.y,l.z=C.z+e*I.z;else{var i=(1-e)*n.a.warp.softBendEnd;l.x=r.x-i*I.x,l.y=r.y-i*I.y,l.z=r.z-i*I.z}c.set(0,0,-1),c.applyEuler(l),c.add(a.position),a.controls.lookAt(c),a.controls.lookVector.copy(c),a.lookAt(c)}.bind(this);return L.a.start(u,t,i,g,j.a[n.a.warp.movementEasing])},nt.prototype._warpStepCameraAim=function(e,t,i){var o=this.playerControls.cameras[A.a.PANORAMA],g=new THREE.Euler(0,0,0,n.a.warp.eOrder).setFromQuaternion(this.warpDestHeroLoc.quaternion,n.a.warp.eOrder),a=(new THREE.Euler).setFromQuaternion(o.quaternion,n.a.warp.eOrder),r=new THREE.Euler(g.x-a.x,g.y-a.y,g.z-a.z,n.a.warp.eOrder);r.y=X.a.constrainedTurn(r.y),this.burnsDir=Math.sign(r.y);var C=new THREE.Euler(0,0,0,n.a.warp.eOrder),I=new THREE.Vector3,s=function(e,t){e<.5?C.copy(a):C.copy(g),I.set(0,0,-1),I.applyEuler(C),I.add(o.position),o.controls.lookAt(I),o.controls.lookVector.copy(I),o.lookAt(I)}.bind(this);return L.a.start(s,t,i,0,j.a[n.a.warp.movementEasing])},nt.prototype.setBurnsDir=function(){var e=this.playerControls.cameras[A.a.PANORAMA],t=new THREE.Euler(0,0,0,n.a.warp.eOrder).setFromQuaternion(this.warpDestHeroLoc.quaternion,n.a.warp.eOrder),i=(new THREE.Euler).setFromQuaternion(e.quaternion,n.a.warp.eOrder),o=new THREE.Euler(t.x-i.x,t.y-i.y,t.z-i.z,n.a.warp.eOrder);o.y=X.a.constrainedTurn(o.y),this.burnsDir=Math.sign(o.y)},nt.prototype.stepWarpPath=function(e,t){var i=this.playerControls.cameras[A.a.PANORAMA];if(!this.warpPathPoints)return i.position.copy(this.warpDestPano.position),!0;var o=this.warpPathPoints[0],g=this.warpDestPano.position;if(null!==this.nodes&&this.cameraHull.length>1){var a=new THREE.Vector3;e<.5?a.copy(this.cameraHull[1]).sub(o).normalize().multiplyScalar(n.a.warp.softPushDist*e).add(o):a.copy(this.cameraHull[this.cameraHull.length-2]).sub(g).normalize().multiplyScalar(n.a.warp.softPushDist*n.a.warp.softPushEnd*(1-e)).add(g),C.a.ifFish?this.player.currentTarget.copy(a):i.position.copy(a)}else C.a.ifFish?e<.5?this.player.currentTarget.copy(o):this.player.currentTarget.copy(g):e<.5?i.position.copy(o):i.position.copy(g)},nt.prototype.interruptAndFastForward=function(e,t){this.warping&&(this.warpInterrupted=!0,this.warpInterruptionBlackoutStyle=e,this.warpInterruptionTravelTime=t,null!==this.warpInterruptionBlackoutStyle&&void 0!==this.warpInterruptionBlackoutStyle||(this.warpInterruptionBlackoutStyle=et.a.MIDDLE),null!==this.warpInterruptionTravelTime&&void 0!==this.warpInterruptionTravelTime||(this.warpInterruptionTravelTime=n.a.minWarpTime))},nt.prototype.warpCameraAim=function(e){var t=n.a.warp.minWarpTime;if(this.upcomingTransType===tt.a.BLACK)t=n.a.warp.teleportTime;else{var i=this.playerControls.cameras[A.a.PANORAMA],o=new THREE.Euler(0,0,0,n.a.warp.eOrder).setFromQuaternion(this.warpDestHeroLoc.quaternion,n.a.warp.eOrder),g=(new THREE.Euler).setFromQuaternion(i.quaternion,n.a.warp.eOrder),a=new THREE.Euler(o.x-g.x,o.y-g.y,o.z-g.z,n.a.warp.eOrder);a.y=X.a.constrainedTurn(a.y);var r=1e3*Math.abs(a.y)/THREE.Math.degToRad(n.a.warp.maxAimPerSec);t=Math.max(t,r)}var C=function(){this._warpStopFlying(),this.discardSlow(),e&&e()}.bind(this);this._warpCameraAim(t,C)},nt.prototype.warpCommonParameters=function(e,t,i,o){this.model.skybox.material.uniforms.blackout.value=o;var g=F.a.uniform(this.model.skybox,"progress",1),a=F.a.allUniforms(this.model.chunks,"progress",1),A=!1,r=function(){if(this.warpInterrupted)return A=!0,!0}.bind(this),C=function(e,t){return i&&A?(this.model.skybox.material.uniforms.progress.value=0,!0):void g(e,t)}.bind(this),I=function(e,t){return i&&A?(a(0),!0):void a(e,t)}.bind(this);L.a.start(r,e,null,t,null,"safeHaltWatch"),L.a.start(C,e,null,t,j.a[n.a.warp.blendEasing],"skyboxProgress"),L.a.start(I,e,null,t,j.a[n.a.warp.blendEasing],"chunkProgress")},nt.prototype.warpTravel_STD=function(e){var t,i=Math.min(n.a.warp.lookAheadMax,n.a.warp.lookAheadDist/this.warpLength),o=this.playerControls.cameras[a.PANORAMA],A=(Math.min(.25,3/this.warpLength),Math.min(.35,7/this.warpLength)),r=new THREE.Euler(0,0,0,n.a.warp.eOrder),C=new THREE.Vector3,I=(new THREE.Euler).setFromQuaternion(o.quaternion,n.a.warp.eOrder),s=(new THREE.Euler).copy(I),c=o.position.clone(),u=new THREE.Matrix4,h=new THREE.Euler,f=n.a.warp.minWarpTime;f+=this.warpLength*n.a.warp.timePerMeter,n.a.warp.flySpeed>.01&&(f=1e3*this.warpLength/n.a.warp.flySpeed);var m=!1,v=this.warpDestHeroLoc.quaternion,y=new THREE.Vector3(0,0,-1).applyQuaternion(v).normalize(),b=this.warpPathPoints[this.warpPathPoints.length-1].clone().sub(this.warpPathPoints[this.warpPathPoints.length-2]).normalize(),w=b.dot(y),x=THREE.Math.radToDeg(Math.acos(w)),E=function(e){var t=A;return THREE.Math.smoothstep(e,0,t)*(1-THREE.Math.smoothstep(e,1-t,1))},P=function(){return u.lookAt(c,t,Oe.a.UP),r.setFromRotationMatrix(u,n.a.warp.eOrder),I.setFromQuaternion(o.quaternion,n.a.warp.eOrder),h.set(r.x-I.x,r.y-I.y,r.z-I.z,n.a.warp.eOrder),X.a.constrainedTurn(h.y)}.bind(this),T=function(e,t){if(this.warpInterrupted)return m=!0,!0}.bind(this),D=function(e,t){return m||!this.warpPathPoints?(effects.blur(0),!0):void effects.blur(e)}.bind(this),M=F.a.allUniforms(this.model.chunks,"modelAlpha",1),S=function(e,t){return m||!this.warpPathPoints?(M(0),!0):void M(e,t)}.bind(this),R=function(e,t){if(!this.warpPathPoints)return o.position.copy(this.warpDestPano.position),!0;if(m)return!0;var i=this.interpAlongPath(this.warpPathPoints,this.warpPathLengths,e);o.position.copy(i),c=this.interpAlongPath(this.warpPathPoints,this.warpPathLengths,.99*e)}.bind(this),k=function(e,o){return this.warpPathPoints?!!m||void(t=this.interpAlongPath(this.warpPathPoints,this.warpPathLengths,Math.min(e+i,1))):(p.a.debug("Lost bunny."),!0)}.bind(this),O=function(e,g){if(m)return p.a.debug(">>>> Walkthrough interupted at t="+e),!0;if(!this.warpPathPoints)return!0;var a=this.warpLength*e,A=THREE.Math.smoothstep(a,0,this.brushPrefs.lookBlendDist),l=THREE.Math.smoothstep(a,this.warpLength-this.brushPrefs.lookBlendDist,this.warpLength);n.a.warp.matchCam&&(A*=1-l),u.lookAt(c,t,Oe.a.UP),r.setFromRotationMatrix(u,n.a.warp.eOrder),I.setFromQuaternion(o.quaternion,n.a.warp.eOrder),h.set(r.x-I.x,r.y-I.y,r.z-I.z,n.a.warp.eOrder),h.y=X.a.constrainedTurn(h.y),r.x=I.x+A*h.x,r.y=I.y+A*h.y,r.z=I.z+A*h.z,h.set(r.x-s.x,r.y-s.y,r.z-s.z,n.a.warp.eOrder),h.y=X.a.constrainedTurn(h.y);var d=THREE.Math.degToRad(n.a.warp.maxTurnPerSec)*g/1e3;h.y=Math.sign(h.y)*Math.min(d,Math.abs(h.y)),s.x=s.x+h.x*n.a.warp.turnFriction,s.y=s.y+h.y*n.a.warp.turnFriction,s.z=s.z+h.z*n.a.warp.turnFriction,s.x=Math.max(THREE.Math.degToRad(n.a.warp.minDownAngle),s.x);var f=t.clone().sub(c).normalize();if(x<n.a.warp.maxAimRotation&&l>0){var v=1-l;f.x=f.x*v+l*b.x,f.y=f.y*v+l*b.y,f.z=f.z*v+l*b.z,f.normalize()}this.bunnyObj.position.copy(o.position).add(f),C.set(0,0,-1).applyEuler(s).normalize(),C.multiplyScalar(8),C.add(o.position),e>1-i&&n.a.warp.matchCam||(o.controls.lookAt(C),o.controls.lookVector.copy(C),o.lookAt(C))}.bind(this),B=function(){m?(this.discardSlow(),this.upcomingTransType=l.BLACK,this.warpTravel_BLACK(-.5,this.warpInterruptionTravelTime,et.a.BEGINNING,e)):this._wrapupWarpShading(e)}.bind(this);k(0);var j=n.a.warp.motionLeadTime+1e3*Math.abs(P())/THREE.Math.degToRad(n.a.warp.maxTurnPerSec),N=j/(f+=j);this.warpCommonParameters(f,N,!0,et.a.NONE),L.a.start(T,f,null,0,null,"_haltWatcher"),n.a.warp.blur>0&&(g.blurStrength=n.a.warp.blur,L.a.start(D,f,null,N,E,"blurring")),L.a.start(S,f,null,N,E,"modelAlpha"),L.a.start(R,f,null,N,d[n.a.warp.blendEasing],"followPath"),L.a.start(k,f,null,N,d[n.a.warp.blendEasing],"goBunny"),L.a.start(O,f,B,0,d[n.a.warp.blendEasing],"lookAtBunny")},nt.prototype.warpTravel_BLACK=function(e,t,i,o){C.a.ifFish&&(this.model.skybox.visible=!0,this.model.fishSphere.visible=!1,this.player.updateMarkerFishPos(this.player.currentPano,this.warpDestPano,1)),this.player.model.floorLogos[0].visible=!1,this.player.model.floorLogos[1].visible=!1,this.player.tagManager.hideAllTags();var g=e||0;null!=t||(t=n.a.warp.teleportTime),this.warpCommonParameters(t,g,!1,i),this.model.chunks.forEach((function(e){C.a.ifFish&&(e.visible=!0),e.material.uniforms.blackout.value=i})),this._warpBendAim(null,t,null,g);var a=function(){if(this.wrapupWarpShadingOnly(o,t),C.a.ifFish){var e=this.player.currentPano;this.model.fishSphere.position.copy(e.position),"panorama"==this.player.mode&&(this.model.skybox.visible=!1,this.model.fishSphere.visible=!0),this.player.currentTarget=e.position.clone(),this.model.floorLogos[0].quaternion.copy(this.model.floorLogos[1].quaternion),this.model.floorLogos[0].oriPos.copy(e.position.clone().sub(new THREE.Vector3(0,e.height,0)))}for(var t in U.a.player.model.tags){var i=U.a.player.model.tags[t];-1==i.billboard.media.indexOf("outLink")&&"videoPanoFlag"!=i.state&&i.show()}}.bind(this);L.a.start(this.stepWarpPath.bind(this),t,a,g,j.a[n.a.warp.blendEasing],"stepMotion")},nt.prototype.flightStepWalk=(Ue=new THREE.Vector3,Qe=new THREE.Vector3,Ye=function(e,t){var i=Math.min(this.player.position.distanceTo(e.position),n.a.transition.flytimeMaxDistanceThreshold)*n.a.transition.flytimeDistanceMultiplier+n.a.transition.flyTime;Qe.copy(Oe.a.FORWARD),this.player.getDirection(Qe),Ue.copy(t).sub(e.position).normalize();var o=Ue.dot(Qe),g=Math.acos(o),a=g/i;return a>.001&&(i*=a/.001,g<1&&(i*=1.2)),i},function(e,t,i){if(this.warpInterrupted)i&&i();else if(this.activeTransType!==l.WALK)this._clearWarpShading(),this._warpStopFlying(),this.player.spider.draw(),this.placeCpm(),i&&i();else if(this.player.currentPano!==e){var o={pano:e,lookAtPoint:t,duration:null,maxDistanceOverride:n.a.warp.walkMaxDist,skipWarpingCheck:!1,constantMoveSpeed:!0};o.duration=Ye.call(this,e,t),this.player.nonInterruptingFlyToPano(o,i)}else i&&i()}),nt.prototype.makeWalkFlightFunc=function(e,t,i){return this.flightStepWalk.bind(this,e,t,i)},nt.prototype.warpTravel_WALK=function(){var e=[];return function(t){var i=this.player.model.panos;e.length=0;for(var o=null,g=!1,a=0;a<this.nodes.length;a++){var A=this.nodes[a],r=i.get(A);this.nodes.length,g=o&&r.position.distanceTo(o.position)<n.a.warp.walkMinDist,o&&g||(e.push(A),o=r)}g&&this.nodes.length>1&&(e[e.length-1]=this.nodes[this.nodes.length-1]);var C=e.length,I=i.get(e[C-1]),s=new Array(C+1);s[s.length-1]=function(){t&&t()}.bind(this);for(var l=C-1,c=s.length-1;c>0;c-=1){var u=e[l];I=i.get(u);var d=new THREE.Vector3;this.getLookAtForWalkingTourNode(e,l,d),s[c-1]=this.makeWalkFlightFunc(I,d,s[c]),l--}s[0]()}}(),nt.prototype.getLookAtForWalkingTourNode=function(){var e=new THREE.Vector3,t=new THREE.Vector3,i=new THREE.Vector3,o=new THREE.Vector3,g=new THREE.Vector3;return function(n,a,A){var r=n.length;if(a>=r)return!1;var C=1,I=1;t.set(0,0,0),g.set(0,0,0);for(var s=null,l=a;l<a+3&&!(l>=r);l++){if(s=this.player.model.panos.get(n[l]),this.getOrientationForWalkingTourNode(n,l,i),l===a&&e.copy(i),o.copy(i),l>a){var c=o.dot(e)<.65;C*=c?.2:.75,I*=c?.2:.4}i.multiplyScalar(C),t.add(i),g.lerp(s.position,I)}return t.normalize(),A.copy(g),A.add(t),!0}}(),nt.prototype.getOrientationForWalkingTourNode=function(e,t,i){var o=e.length;if(t>=o)return!1;if(t===o-1)i.copy(Oe.a.FORWARD).applyQuaternion(this.warpDestHeroLoc.quaternion);else{var g=this.player.model.panos.get(e[t]),n=this.player.model.panos.get(e[t+1]);i.copy(n.position).sub(g.position)}return i.normalize(),!0},nt.prototype.warpCameraTravel=function(e,t,i,o){if(this.activeTransType=this.upcomingTransType,this.lastTransType=this.activeTransType,this.upcomingTransType=null,e)this.activeTransType===tt.a.BLACK?this.warpTravel_BLACK(null,i,t,o):this.activeTransType===tt.a.WALK?this.warpTravel_WALK(function(){this._clearWarpShading(),this._warpStopFlying(),this.player.spider.draw(),this.placeCpm(),o&&o()}.bind(this)):this.warpTravel_STD(o);else{var g=function(){this._wrapupTravel(o)}.bind(this),n={pano:this.warpDestPano,lookAtPoint:null,duration:null,maxDistanceOverride:null,skipWarpingCheck:!1};this.player.flyToPano(n,g)}},nt.prototype.startWarpState=function(){this.warping=!0,this.warpInterrupted=!1,this.warpInterruptionBlackoutStyle=null,this.warpInterruptionTravelTime=null},nt.prototype.endWarpState=function(){this.warping=!1},nt.prototype.warpToPano=function(e,t,i,o){if(this.warping)p.a.warn("Cannot warp when already warping");else{if(this.upcomingTransType=e,this.activeTransType=null,2==Store.playData[U.a.director.destinationItem].type)this.warpDestPano=this.player.model.panos.get(Store.playData[U.a.director.destinationItem].value.pano);else{var g=Store.playData[U.a.director.destinationItem].value.length;this.warpDestPano=this.player.model.panos.get(Store.playData[U.a.director.destinationItem].value[g-1].pano)}var a=this.model.panos.isNeighbour(this.player.currentPano,this.warpDestPano),A=this.warpDestPano!==this.player.currentPano,r=this.warpDestPano.position.distanceTo(this.player.currentPano.position)<n.a.warp.nearPanoDist,I=!(a&&A&&r),s=this.chooseWarpPath(I);if(s&&this.upcomingTransType!==tt.a.WALK){var l=function(){this.waitingToWarp=!1,this.warpToPano(e,t,i,o)}.bind(this);if(this.player.checkAndWaitForPanoLoad(this.warpDestPano,"high","low",this.player.basePanoSize,l))return void(this.waitingToWarp=!0)}if(this.player.currentPano||(p.a.warn("Arrived at a very strange spot!"),this.player.currentPano=this.warpDestPano,this.placeCpm(),this.fadeOutCpm(n.a.path.fadeOutTime),this.player.spider.draw()),p.a.debug("Warping to pano ",this.warpDestPano.position),this.upcomingTransType!==tt.a.WALK)if(C.a.ifFish){if(this.player.currentPano.id!=this.warpDestPano.id){var c=this.player.position,u=new THREE.Vector3,d=this.player.cameraControls.activeControl,h=(new THREE.Vector3).copy(Oe.a.FORWARD).applyQuaternion(this.warpDestHeroLoc.quaternion).add(this.player.camera.position);d.lookAt(h);var f=d.updateByLookVector(!0);u.copy(f).negate().add(this.warpDestPano.position),this.player.emit(Je.a.PanoChosen,this.player.currentPano,this.warpDestPano,null,c,u,V.a.skyRadius)}}else this.player.emit(Je.a.PanoChosen,this.player.currentPano,this.warpDestPano);this.startWarpState();var m=function(){this.endWarpState(),o&&o()}.bind(this);s?this.warpCameraTravel(I,t,i,m):this.warpCameraAim(m),C.a.ifFish||this.player.smoothZoomToDefault(n.a.zoom.restoreTime)}};var at,At,rt,Ct=nt,It=i(37),st=i(140),lt=i(77),ct=i(17);function ut(){this.projectNum=C.a.projectNum,this.model=new je(n.a.option,n.a.modelMeta),this.currentPano=null,this.nextPano=null,this.camera=null,this.paused=!1,this.flying=!1,this.sceneIntersectionPlane=null,this.target=new THREE.Vector3,this.mouse=new THREE.Vector3(1.1,1.1,.5),this.mouseAtMouseDown=new THREE.Vector2,this.mouseCouldBeClickToMove=!1,this.mouseLastMoveTime=Date.now(),this.mouseDown=!1,this.mouseDownTimer=null,this.couldBeLongTap=!1,this.containsMouse=!0,this.isTouchEvent=!1,this.isPanoHover=!1,this.reticule=new He(this),this.panoMarkers=[],this.quaternion=new THREE.Quaternion,this.position=new THREE.Vector3(15,10,15),this.previousState=null,this.lastInsideView=new ze.a,this.last360View=new ze.a,this.raycaster=new THREE.Raycaster,this.intersect=null,this.lastChangeTime=Date.now(),this.history=new Ge,this.cameraControls=null,this.path=null,this.domElement=null,this.cachedPanoCandidates=null,this.basePanoSize=0,this.standardPanoSize=0,this.highPanoSize=0,this.ultraHighPanoSize=0,this.zoomLevel=1,this.zooming=0,this.zoomSpeed=.5,this.scrollZoomSpeed=.06,this.zoomSpeedAdjust=.05,this.defaultZoomIncrement=.2,this.baseFov=n.a.insideFOV,this.zoomFov=this.baseFov,this.zoomEnabled=!0,this.preRenderingEnabled=!1,this.setupCustomProperties(A.a.PANORAMA),this.zoomStats=new Ze,this.imagePanos=this.listImagePanos(),this.currentTarget=new THREE.Vector3,this.cornerRulers=[],this.measureRulers=[],this.dollLabels=[],this.planLabels=[],this.defaultRoomLabels=[],this.waitFlytoItemFuc=null,this.cad=null}ut.prototype=Object.create(EventEmitter.prototype),ut.prototype.init=function(e){this.modelManager=e.modelManager,this.tileDownloader=e.tileDownloader,this.panoRenderer=e.panoRenderer,this.qualityManager=e.qualityManager,this.domElement=e.container,this.camera=e.camera,this.tagManager=e.tagManager,this.cameraControls=e.controls,this.path=new Ct(e.director,this,e.controls),this.basePanoSize=this.qualityManager.getPanoSize(It.a.BASE),this.standardPanoSize=this.qualityManager.getPanoSize(It.a.STANDARD),this.highPanoSize=this.qualityManager.getPanoSize(It.a.HIGH),this.ultraHighPanoSize=this.qualityManager.getPanoSize(It.a.ULTRAHIGH),this.tileDownloader.processPriorityQueue=!1,this.tileDownloader.tilePrioritizer=new TilePrioritizer(this.qualityManager,this.basePanoSize,this.standardPanoSize,this.highPanoSize,this.ultraHighPanoSize),this.bindEvents(e.container),this.updateModel()},ut.prototype.setupCustomProperties=function(e){var t=e||A.a.PANORAMA;Object.defineProperty(this,"mode",{get:function(){return t},set:function(e){var i=t;t=e,this.onModeUpdated(i,t)}})},ut.prototype.isOutsideMode=function(e){return(e=e||this.mode)===A.a.DOLLHOUSE||e===A.a.FLOORPLAN},ut.prototype.is360View=function(e,t){return!1},ut.prototype.changeMode=function(e,t){var i=$.Deferred(),o=function(){t&&t.fuc&&t.fuc(),i.resolve()},g=i.reject.bind(i);switch(e){case A.a.PANORAMA:this.mode===A.a.PANORAMA||this.insideMode(this.currentPano).done(o).fail(g);break;case A.a.DOLLHOUSE:case A.a.FLOORPLAN:this.flyToNewMode({mode:e}).done(o).fail(g)}return i.promise()},ut.prototype.setScene=function(e){this.sceneIntersectionPlane=e.plane,this.path.setScene(e),this.moveReticuleToScene(e)},ut.prototype.moveReticuleToScene=function(e){this.reticule.parent&&this.reticule.parent.remove(this.reticule),e.add(this.reticule)},ut.prototype.updateModel=function(){if(this.model=this.modelManager.getActiveModel(),this.on(Je.a.PanoChosen,this.model.setProjectedPanos.bind(this.model)),isMobile){var e=this;this.model.panos.list.forEach((function(t){t.vrMarker.addEventListener("click",(function(){e.flyToPano({pano:t})}))}))}},ut.prototype.updateModelDependentData=function(){this.cameraControls.setModelForControls(this.model),this.getPanoMarkersFromModel(this.model)},ut.prototype.getPanoMarkersFromModel=function(e){this.panoMarkers=e.panos.list.reduce((function(e,t){return t.marker?e.concat(t.marker):e}),[])},ut.prototype.handleControlMove=function(e){this.emit(Je.a.Move,e)},ut.prototype.handleControlInputStart=function(e){this.emit(Je.a.InputStart,e)},ut.prototype.onModeUpdated=function(e,t){this.cameraControls.activateControls(t),this.emit(Je.a.ModeChanged,e,t)},ut.prototype.isWarping=function(){return!1},ut.prototype.isWaitingToWarp=function(){return!1},ut.prototype.bindEvents=function(e){e!==document&&e.setAttribute("tabindex",-1),e.addEventListener("mousedown",this.onMouseDown.bind(this)),e.addEventListener("mousemove",this.onMouseMove.bind(this)),e.addEventListener("mouseover",this.onMouseOver.bind(this)),e.addEventListener("mouseout",this.onMouseOut.bind(this)),e.addEventListener("mouseup",this.onMouseUp.bind(this)),e.addEventListener("touchstart",this.onTouchStart.bind(this)),e.addEventListener("touchmove",this.onTouchMove.bind(this)),e.addEventListener("touchend",this.onTouchEnd.bind(this)),e.addEventListener("pointerdown",this.onPointerDown.bind(this)),e.addEventListener("pointermove",this.onPointerMove.bind(this)),e.addEventListener("pointerup",this.onPointerUp.bind(this)),isMobile||document.addEventListener("pointerup",this.onPointerUp2.bind(this)),e.addEventListener("pointerout",this.onPointerOut.bind(this)),e.addEventListener("pointercancel",this.onPointerCancel.bind(this)),document.addEventListener("keydown",this.onKeyDown.bind(this)),this.cameraControls.on(Xe.a.Move,this.handleControlMove.bind(this)),this.cameraControls.on(Xe.a.InputStart,this.handleControlInputStart.bind(this)),this.cameraControls.on(Xe.a.Pinch,this.handleControlPinch.bind(this)),this.cameraControls.on(Xe.a.Scroll,this.handleControlScroll.bind(this))},ut.prototype.onMouseDown=function(e){e.currentTarget!==document&&e.currentTarget.focus(),0===e.button&&(this.handleInputStart.call(this,e.clientX,e.clientY,!1),$("#tag-billboards>div").css("pointer-events","none"),$("#tag-billboards img").css("pointer-events","none"),this.updateIntersect())},ut.prototype.onMouseMove=function(e){this.isTouchEvent=!1,this.handleInputMove.call(this,e.clientX,e.clientY,!1)},ut.prototype.onMouseOver=function(e){this.containsMouse=!0,!this.mouseDown||0!==e.which&&0!==e.buttons||(this.mouseDown=!1)},ut.prototype.onMouseOut=function(e){this.containsMouse=!1},window.lastMouseupTime=null,ut.prototype.onMouseUp=function(e){var t=!1,i=(new Date).getTime();window.lastMouseupTime&&i-window.lastMouseupTime<50&&(t=!0),window.lastMouseupTime=i,t||(this.handleInputEnd.call(this,e.clientX,e.clientY,!1),$("#tag-billboards>div").css("pointer-events",""),$("#tag-billboards img").css("pointer-events",""))},ut.prototype.onTouchStart=function(e){if(e.currentTarget!==document&&e.currentTarget.focus(),!this.mouseDown){this.couldBeLongTap=!0;var t=o.default.average(e.changedTouches,"clientX"),i=o.default.average(e.changedTouches,"clientY");if(this.handleInputStart.call(this,t,i,!0),edit&&U.a.editor.mainDesign.editing)return;this.mouseDownTimer=setTimeout(function(){this.updateIntersect(),this.handleInputEnd.call(this,t,i,!0)}.bind(this),n.a.input.longTapThreshold)}},ut.prototype.onTouchMove=function(e){var t=o.default.average(e.changedTouches,"clientX"),i=o.default.average(e.changedTouches,"clientY");this.handleInputMove.call(this,t,i,!0)},ut.prototype.onTouchEnd=function(e){if(clearTimeout(this.mouseDownTimer),this.mouseDown){this.couldBeLongTap=!1,this.updateIntersect();var t=o.default.average(e.changedTouches,"clientX"),i=o.default.average(e.changedTouches,"clientY");this.handleInputEnd.call(this,t,i,!0)}},ut.prototype.onPointerDown=function(e){if(e.currentTarget!==document&&e.currentTarget.focus(),this.mouseDown||"mouse"===e.pointerType)return this.onMouseDown(e);this.couldBeLongTap=!0,this.handleInputStart.call(this,e.clientX,e.clientY,!0),edit&&U.a.editor.mainDesign.editing||(this.mouseDownTimer=setTimeout(function(){this.updateIntersect(),this.handleInputEnd.call(this,e.clientX,e.clientY,!0)}.bind(this),n.a.input.longTapThreshold))},ut.prototype.onPointerMove=function(e){"mouse"!==e.pointerType?this.handleInputMove.call(this,e.clientX,e.clientY,!0):this.onMouseMove(e)},ut.prototype.onPointerUp=function(e){return this.mouseDown&&"mouse"!==e.pointerType?(clearTimeout(this.mouseDownTimer),this.couldBeLongTap=!1,this.updateIntersect(),void this.handleInputEnd.call(this,e.clientX,e.clientY,!0)):this.onMouseUp(e)},ut.prototype.onPointerOut=function(e){this.mouseDown=!1},ut.prototype.onPointerCancel=function(e){this.mouseDown=!1},ut.prototype.onKeyDown=function(e){if(C.a.keyCon){var t=function(){this.cameraControls.activeControl&&this.cameraControls.activeControl.emit(Xe.a.Move,"key")}.bind(this),i=e.which;switch(i){case qe.a.F:t(),this.changeFloor(-1);break;case qe.a.R:t(),this.changeFloor(1)}if(this.mode===A.a.PANORAMA)switch(i){case qe.a.UPARROW:case qe.a.W:this.flyLocalDirection(Oe.a.FORWARD.clone());break;case qe.a.DOWNARROW:case qe.a.S:this.flyLocalDirection(Oe.a.BACK.clone());break;case qe.a.A:this.flyLocalDirection(Oe.a.LEFT.clone());break;case qe.a.D:this.flyLocalDirection(Oe.a.RIGHT.clone())}}},ut.prototype.handleScrollPinchZoom=function(e){var t=e;this.zoomLevel,this.zoomBy(t)},ut.prototype.handleControlPinch=function(e){n.a.zoom.enabled?this.handleScrollPinchZoom(1-e):this.flyLocalDirection(new THREE.Vector3(0,0,e).normalize())},ut.prototype.handleControlScroll=function(e){n.a.zoom.enabled?(e>0?e=1+this.scrollZoomSpeed:e<0&&(e=1-this.scrollZoomSpeed),0!==e&&this.handleScrollPinchZoom(e)):this.flyLocalDirection(new THREE.Vector3(0,0,-e).normalize())},ut.prototype.handleInputStart=function(e,t,i,o){if(this.isTouchEvent=i,isMobile||o)g={x:e,y:t};else var g=X.a.handelPadding(e,t);X.a.convertScreenPositionToNDC(g.x,g.y,this.mouse),X.a.convertScreenPositionToNDC(g.x,g.y,this.mouseAtMouseDown),this.mouseCouldBeClickToMove=!0,this.mouseDown=!0,edit&&U.a.editor.mainDesign.editing?(this.intersect=U.a.editor.mainDesign.checkIntersect(),U.a.editor.mainDesign.handleDragStart(this)):edit||this.updateIntersect()},ut.prototype.handleInputMove=function(e,t,i){this.isTouchEvent=i;var o=X.a.handelPadding(e,t);X.a.convertScreenPositionToNDC(o.x,o.y,this.mouse),this.mouseAtMouseDown.distanceTo(this.mouse)>n.a.input.moveToleranceNDC&&(this.mouseCouldBeClickToMove=!1,this.couldBeLongTap=!1,clearTimeout(this.mouseDownTimer)),this.mouseLastMoveTime=Date.now(),this.reticule.move(e,t,!!isMobile||i),edit&&"wallDesign"==U.a.editor.atPanel&&U.a.editor.mainDesign.handleDragging(this)},ut.prototype.handleInputEnd=function(e,t,i){if(this.isTouchEvent=i,this.mouseDown=!1,this.cameraControls.controls[A.a.PANORAMA].emit("interaction.direct"),!i&&this.couldBeLongTap)return!0;if(edit&&U.a.editor.mainDesign.editing&&U.a.editor.mainDesign.handleDragEnd())return!0;if(this.handleLongTap())return!0;if(this.mouseCouldBeClickToMove){if(this.flying)return!0;if(U.a.editor&&U.a.editor.chosenMeasureRuler&&U.a.editor.chosenMeasureRuler.showOptionLabel(!1),edit){if("wallDesign"==U.a.editor.atPanel&&U.a.editor.mainDesign.handleClickEnd(this)&&"panorama"==this.mode)return!0;if("wallDesign"==U.a.editor.atPanel&&"panorama"==U.a.editor.mainDesign.miniView)return;if("wallDesign"!=U.a.editor.atPanel&&U.a.editor.mainDesign.hoveringPlane)return U.a.editor.mainDesign.clickOverlay(U.a.editor.mainDesign.hoveringPlane),!0}if(U.a.editor&&U.a.editor.setSpotPos&&(2==C.a.setSpotType||0==C.a.setSpotType||3==C.a.setSpotType&&("tag"==ct.a.editType||"measure"==ct.a.editType))&&!U.a.editor.spotPosInfo.clickA)return void(this.intersect&&U.a.editor.clickToGetA(this.intersect));if(this.checktagClick())return!0;if(this.setPanoVisible)return void(this.intersect&&this.intersect.object.visible&&this.model.dealPanoVisible(this.intersect.object.name));if(this.setTagVisible)return void(this.tagVsetting&&this.intersect&&this.intersect.object.visible&&this.model.dealTagVisible(this.tagVsetting,this.intersect.object.name));if(!edit&&this.intersect&&this.intersect.object.parentRuler)return void this.intersect.object.parentRuler.showOptionLabel(!0,this.intersect.point);if(this.cameraControls.activeControl&&this.cameraControls.activeControl.emit(Xe.a.Move,this.isTouchEvent?"touch":"mouse"),this.history.invalidate(),this.intersect)return this.flyToPanoClosestToMouse();if(this.mode===A.a.PANORAMA){var o=this.closestPanoInDirection(this.getMouseDirection());return o?this.flyToPano({pano:o}):this.bump(this.getMouseDirection())}}this.intersect&&this.closestPano&&this.closestPano.hoverOff(this.mode)},ut.prototype.onPointerUp2=function(){if(edit&&U.a.editor.mainDesign.editing&&U.a.editor.mainDesign.handleDragEnd())return!0},ut.prototype.handleLongTap=function(){if(this.couldBeLongTap&&(!this.isPanoHover||this.mode!==A.a.PANORAMA))return this.cameraControls.activeControl&&this.cameraControls.activeControl.emit(Xe.a.LongTap,"touch"),!0},ut.prototype.checktagClick=function(){if(this.tagManager.intersectTag){var e=this.isTouchEvent,t=this.tagManager.clickedOnTag(e,this);return e||t||L.a.cancelById(n.a.freeze.LookTransition,!0),!0}if(this.tagManager.activeTag&&!U.a.recordGuider.onRecording)return this.tagManager.dismissActiveTag(),!1},ut.prototype.rankedtagInDirection=function(e,t){return this.mattertagManager.rankedtagInDirection(e,this.position,this.camera,t)},ut.prototype.start=function(e){var t=e.mode,i=e.pano,o=e.position,g=e.quaternion,n=e.tag,a=e.quickstart,A=$.Deferred();this.updateModelDependentData(),this.updateFromControls();var r=this.is360View(t,i);return Store.metadata.floorPlanPng&&U.a.player.cameraControls.controls.floorplan.createFloorTexture(),!this.model.outsideAllowed()||r||a?this.startInside(i,o,g,n,A):this.startOutside(e,A),A.done(function(e){this.update(1),this.emit(Je.a.Ready,r,e,n)}.bind(this)),A.promise()},ut.prototype.startOutside=function(e,t){var i=e.mode,o=e.pano,g=e.position,a=e.quaternion,r=e.target,C=e.zoom,I=(e.floorVisibility,e.tag);this.emit(Je.a.StartOutside,n.a[i].transitionTime),this.isOutsideMode(i)?(L.a.cancelById(n.a.freeze.FlyToViewFloor),i===A.a.FLOORPLAN?this.floorplanMode(g,a,r,C):this.dollhouseMode(g,a,r),t.resolve(!1)):this.startInsideWithFlyin(o,g,a,I,t)},ut.prototype.startInside=function(e,t,i,o,g){g=g||$.Deferred(),this.currentPano=e;var n=e&&!e.isAligned();if(t=n?e.position:t||e.position,i=i||e.quaternion,e){var a=this.startInside.bind(this,e,t,i,o,g);if(this.checkAndWaitForPanoLoad(e,"high","low",this.basePanoSize,a))return}return this.mode=A.a.PANORAMA,e.floor.enter(this.mode),this.emit(Je.a.PanoChosen,this.currentPano,this.currentPano),this.switchCameraMode(this.mode,i),this.emit(Je.a.StartInside,n),this.model.skybox.material.uniforms.opacity.value=1,this.model.chunks.forEach((function(e){e.material.uniforms.modelAlpha.value=0})),g.resolve(!0),g},ut.prototype.startInsideWithFlyin=function(e,t,i,o,g){if(g=g||$.Deferred(),this.dollhouseMode(),!e)return p.a.warn("Player.startInsideWithFlyin() -> targetPano is invalid."),g.resolve(!1),g;t=t||e.position;var a=i||this.cameraControls.activeControl.camera.quaternion,r=e.position;return this.fitDollhouse(r,t,a),setTimeout(function(t){this.cameraControls.activeControl&&(this.cameraControls.activeControl.maxDistance=t);var o={mode:A.a.PANORAMA,pano:e,quaternion:i,callback:function(){this.emit(Je.a.FlyinFinished),g.resolve(!0)}.bind(this)};this.flyToNewMode(o)}.bind(this,this.cameraControls.activeControl.maxDistance),n.a.startupFlyinDelay),g},ut.prototype.checkAndWaitForPanoLoad=(at={},At={},function(e,t,i,g,n,a,A,r,C,I){if(function(){for(var e in at)if(at.hasOwnProperty(e)&&at[e]&&performance.now()-At[e]<5e3)return!0;return!1}())return"cannotLoad";var s=function(e,t,i){o.default.delayOneFrame(function(){at[e]=!1,n&&n(t,i)}.bind(this))}.bind(this,e.id),l=function(e,t){o.default.delayOneFrame(function(){at[e]=!1,a&&a(t)}.bind(this))}.bind(this,e.id);try{return null!=r||(r=!0),e.tiled?at[e.id]=this.checkAndWaitForTiledPanoLoad(e,g,s,l,A,r,C,I):at[e.id]=this.checkAndWaitForWholePanoLoad(e,t,i,s,r),at[e.id]&&(At[e.id]=performance.now()),at[e.id]}catch(t){throw at[e.id]=!1,At[e.id]=performance.now()-5e3,t}}),ut.prototype.checkAndWaitForWholePanoLoad=function(e,t,i,o,g){if(!e)throw new lt.a("Player.checkAndWaitForWholePanoLoad() -> Cannot load texture for null pano.");return g&&this.model.waitForLoad(e,(function(){return e.isLoaded(t)})),e.isLoaded(t)||e.loadCube(t),e.isLoaded(i)||e.loadCube(i).done(o),!e.isLoaded(i)},ut.prototype.checkAndWaitForTiledPanoLoad=(rt=new THREE.Vector3,function(e,t,i,o,g,n,a,A){if(!e)throw new lt.a("Player.checkAndWaitForTiledPanoLoad() -> Cannot load texture for null pano.");return rt.copy(Oe.a.FORWARD),this.getDirection(rt),!e.isLoaded(t)&&(n&&this.model.waitForLoad(e,(function(){return e.isLoaded(t)})),e.loadTiledPano(t,rt,null,a,A).done(function(e,t){i&&i(e,t)}.bind(this)).fail(function(e){o&&o(e)}.bind(this)).progress(function(e,t,i){g&&g(e,t,i)}.bind(this)),!0)}),ut.prototype.switchCameraMode=function(e,t,i,o,g){var a=this.cameraControls.controls[e],r=a.camera;if(U.a.playGuider.isPlaying&&null==t){if(I=ot.a.searchNormalItem(U.a.playGuider.frameIndex,["spot","flyToNewMode","start"]))return C.a.ifFish&&"panorama"==I.mode&&this.currentTarget.copy(this.model.panos.get(I.pano).position),void this.copyCameraProp(a,I)}else if((U.a.playGuider.isPlaying||U.a.playGuider.flyToSingleCap)&&e!=A.a.PANORAMA){var I={};return o&&(I.position=o),t&&(I.quaternion=t),i&&(I.target=i),g&&(I.zoom=g),void this.copyCameraProp(a,I)}switch(e){case A.a.PANORAMA:var s;r.position.copy(this.currentPano.position),s=t?Oe.a.FORWARD.clone().applyQuaternion(t):this.getDirection().setY(0).normalize(),a.lookAt(s.add(r.position)),C.a.ifFish&&this.currentTarget.copy(this.currentPano.position);break;case A.a.DOLLHOUSE:if(U.a.playGuider.isPlaying||U.a.playGuider.flyToSingleCap)return o&&r.position.copy(o),t&&r.quaternion.copy(t),void(i&&a.target.copy(i));if(edit&&"wallDesign"==U.a.editor.atPanel&&this.flyoutTarget){o=this.flyoutTarget.clone();this.mode===A.a.PANORAMA?o.add(new THREE.Vector3(0,6,0)).add(this.getDirection().multiplyScalar(-10)):o.add(Oe.a.DOWN.clone().applyQuaternion(this.quaternion).multiplyScalar(6)).setY(6),r.position.copy(o),a.target.copy(this.flyoutTarget.clone().setY(U.a.editor.mainDesign.meshGroup.position.y)),this.flyoutTarget=null}else{o=this.position.clone();this.mode===A.a.PANORAMA?o.add(new THREE.Vector3(0,6,0)).add(this.getDirection().multiplyScalar(-10)):o.add(Oe.a.DOWN.clone().applyQuaternion(this.quaternion).multiplyScalar(6)).setY(6),r.position.copy(o),a.target.copy(this.target.clone().setY(this.model.center.y))}break;case A.a.FLOORPLAN:if(edit&&this.flyoutType){var l,c,u;if("wallDesign"==U.a.editor.atPanel){var d=U.a.editor.mainDesign;l=(isMobile?d.rooms[d.atRoom]:d.selectRoom).modelBound,c=.4}else if("beginSetPanoVisible"==this.flyoutType){for(var h in l=new THREE.Box2,this.currentPano.neighbourPanos)if(this.currentPano.neighbourPanos[h]){var p=this.model.panos.index[h];l.expandByPoint(new THREE.Vector2(p.position.x,p.position.z))}u=($("#player").width()+$("#player").height())/160}var f=l.getCenter();r.position.set(f.x,n.a.floorplan.cameraHeight,f.y),a.target.copy(r.position).setY(0);var m=l.max.x-l.min.x,v=l.max.y-l.min.y;if(null!=c)var y=new THREE.Vector3(Math.min(m/c,this.model.size.x),1,Math.min(v/c,this.model.size.z));else if(null!=u)y=new THREE.Vector3(m<u?Math.min(u,this.model.size.x):Math.min(1.2*m,this.model.size.x),1,v<u?Math.min(u,this.model.size.z):Math.min(1.2*v,this.model.size.z));y.multiplyScalar(.6),a.zoomToContain(y),console.log(y),this.flyoutTarget=null,this.flyoutType=null,a.rotateToView(y,this.getDirection())}else r.position.copy(this.model.center).setY(n.a.floorplan.cameraHeight),a.target.copy(this.model.center).setY(0),a.zoomToContain(this.model.size.clone().multiplyScalar(.6)),t&&r.quaternion.copy(t),a.rotateToView(this.model.size,this.getDirection())}a.update(0)};var dt,ht,pt,ft=function(e,t,i){var g=o.default.filterAll(e,t);return 0===g.length?null:g=g.map((function(e){return{item:e,score:i.reduce((function(t,i){return t+i(e)}),0)}})).sort((function(e,t){return t.score-e.score}))};ut.prototype.updateRulersVisi=function(e){var t=U.a.editor;if(!1===e||edit&&(!t.rulerVisi||t.mainDesign.editing||U.a.recordGuider.onRecording||"screen"==U.a.editor.atPanel)||!edit&&0==Store.metadata.rulerVisi||"panorama"!=this.mode||U.a.sceneRenderer.vrEnabled||U.a.playGuider.isPlaying||!this.currentPano||this.panoVideoRenderer&&this.panoVideoRenderer.started||null==this.currentPano.belongToRoom||t&&t.setSpotPos)return dt&&[dt.horizon,dt.verti,dt.last.horizon].forEach((function(e){e.state="unable",e.update()})),void(dt=null);var i=this.model.roomInfo[this.currentPano.belongToRoom].rulers,o=this,g=[],n=[function(e){return e.visiblePanos.indexOf(o.currentPano)>-1}],a={},A=this.getDirection().setY(0).normalize(),r=ft(i,n,[function(e){return-e.pointBtm.distanceTo(o.position)/5},function(e){var t=e.pointBtm.clone().sub(o.position).setY(0).normalize(),i=A.dot(t);return 10*Math.pow(i,3)},function(e){var t=2;return e.horizon.length<.4&&e.last.horizon.length<.4&&(t-=1),function(e,t,i){a[t.verti.sid]||(a[t.verti.sid]={}),a[t.verti.sid][e]=i}("length",e,t),t}]);if(r&&r[0]&&r[0].item!=dt||(!r||!r[0])&&dt){if(dt&&(dt.horizon.state="unable",dt.verti.state="unable",dt.last.horizon.state="unable",g.push(dt.horizon,dt.verti,dt.last.horizon)),r&&r[0]){(dt=r[0].item).horizon.state="active",dt.verti.state="active",dt.last.horizon.state="active",C.a.ifFish&&[dt.horizon,dt.verti,dt.last.horizon].forEach(function(e){e.getPosAtSphere(this.currentTarget)}.bind(this));var I=isMobile?1:2,s=dt.pointBtm.distanceTo(this.currentPano.origin);s>dt.horizon.length*I?dt.horizon.dir="left":dt.horizon.dir="",s>dt.last.horizon.length*I?dt.last.horizon.dir="right":dt.last.horizon.dir=""}this.rulerGroupShowing=dt}dt&&g.push(dt.horizon,dt.verti,dt.last.horizon),g.forEach((function(e){e.update()}))},ut.prototype.shineRulers=function(e){var t=this;if(e){if(this.noVisibleRuler)return;if(null==this.currentPano.belongToRoom){if((n=this.model.panos.list.filter((function(e){return null!=e.belongToRoom})).sort(function(e,t){return t.position.distanceTo(this.currentPano)-e.position.distanceTo(this.currentPano)}.bind(this)))&&n[0])return console.log("重新走"),void this.flyToPano({pano:n[0]},this.shineRulers.bind(this,e))}else{var i=this.model.roomInfo[this.currentPano.belongToRoom].rulers,o=this.getDirection().setY(0).normalize(),g=ft(i,[function(e){return e.visiblePanos.indexOf(t.currentPano)>-1}],[function(e){var i=e.pointBtm.clone().sub(t.position).setY(0).normalize();return 10*o.dot(i)}]);if(g)this.lookAtPos(g[0].item.pointBtm,null,{speed:.05,time:500});else{var n;if((n=this.model.roomInfo[this.currentPano.belongToRoom].panos.filter((function(e){return e.visibleRulerInfos.length>0})).sort(function(e,t){return t.position.distanceTo(this.currentPano)-e.position.distanceTo(this.currentPano)}.bind(this)))&&n[0])return console.log("重新走"),void this.flyToPano({pano:n[0]},this.shineRulers.bind(this,e));if((n=this.model.panos.list.filter((function(e){return null!=e.belongToRoom&&e.visibleRulerInfos.length>0})).sort(function(e,t){return t.position.distanceTo(this.currentPano)-e.position.distanceTo(this.currentPano)}.bind(this)))&&n[0])return console.log("重新走"),void this.flyToPano({pano:n[0]},this.shineRulers.bind(this,e));console.log("完全找不到可见ruler"),this.noVisibleRuler=!0}}}this.updateRulersVisi()},ut.prototype.update=function(){var e={},t=[];return function(i){if(edit)var o=U.a.editor.mainDesign;if(this.updatePersistentZooming(i),this.updateFromControls(i),this.hasChanged(e)&&(this.lastChangeTime=Date.now(),!this.mouseDown&&this.containsMouse&&this.updateIntersect(),this.emit(Je.a.ViewChanged)),e.cameraChanged&&(null!=U.a.miniMap&&(isNaN(this.cameraControls.controls.panorama.lon)||U.a.miniMap.drawplayer({x:this.cameraControls.controls.panorama.camera.position.x,y:-1*this.cameraControls.controls.panorama.camera.position.z},2*Math.PI*this.cameraControls.controls.panorama.lon/360)),this.updateRulersVisi(),this.dollLabels.forEach((function(e){e.update()})),this.planLabels.forEach((function(e){e.update()})),"panorama"==this.mode&&this.measureRulers.forEach((function(e){e.update()})),ct.a.measureTag1&&ct.a.measureTag1.markGroup.heightLabel.update(),C.a.hasPanoLabels&&"floorplan"==this.mode&&this.model.updatePanoLabels(),edit&&"wallDesign"==U.a.editor.atPanel&&(o.optionLabelPos&&o.updateOptionPos(),"panorama"==this.mode&&o.CAD.setPosition({x:this.position.x,y:this.position.z},2*Math.PI*this.cameraControls.controls.panorama.lon/360),o.updateRuler()),!edit&&!isMobile&&U.a.editor&&U.a.editor.chosenMeasureRuler&&U.a.editor.chosenMeasureRuler.updateOptionPos(),U.a.editor&&U.a.editor.setSpotPos&&C.a.setSpotType>1&&(U.a.editor.spotPosInfo.markSpotA.updateHotspot2dPos(),U.a.editor.spotPosInfo.pauseCameraBind||U.a.editor.spotPosInfo.markSpotB.updateHotspot2dPos()),this.model.updateFloorlogo(this.camera&&this.camera.quaternion,this),(this.setTagVisible||this.setPanoVisible)&&this.model.updateFootIconSize(this.cameraControls.activeControl)),U.a.editor&&U.a.editor.enterSplitView){var g=ct.a.cameraBchanged();"designWall"!=ct.a.editType&&U.a.editor.spotPosInfo.pauseCameraBind?g.cameraChanged&&U.a.editor.spotPosInfo.markSpotB.updateHotspot2dPos():"designWall"==ct.a.editType&&ct.a.BcontainsMouse&&!ct.a.playerBmousedown&&g.changed&&o.checkIntersect(ct.a)}this.model.supportsTiles&&(this.updateTileDownloader(t),this.updatePanoRenderer(t)),this.updatePreRendering(t),this.reticule.update(),this.path.update(),this.cachedPanoCandidates&&n.a.navigation.panoScores&&this.model.panos.showPanoScores(this.cachedPanoCandidates),this.updateControlLocks(),this.model.supportsTiles&&this.updateZoomPano(),this.panoVideoRenderer&&this.panoVideoRenderer.update()}}(),ut.prototype.updatePersistentZooming=function(e){1===this.zooming?this.zoomBy(1+this.zoomSpeed*e):-1===this.zooming&&this.zoomBy(1-this.zoomSpeed*e)},ut.prototype.updateControlLocks=function(){edit&&U.a.editor.mainDesign.editing||!this.currentPano||!this.model.supportsTiles||(this.cameraControls.controls[A.a.PANORAMA].locked=!this.currentPano.highestFullTileRenderOpCompleted&&this.currentPano.lockUntilRenderingComplete)},ut.prototype.updatePanoRenderer=function(){var e=new THREE.Vector3;return function(t){var i=this.nextPano||this.currentPano;this.panoRenderer.hasQueuedTiles()&&i&&(e.copy(Oe.a.FORWARD),this.getDirection(e),this.panoRenderer.updateDirection(e))}}(),ut.prototype.updatePreRendering=function(){var e={};return function(t){if(1===n.a.tiling.preRenderTourPanos&&this.preRenderingEnabled){var i=this.nextPano||this.currentPano;if(i&&t&&t.length>1){var o=t.findIndex((function(e){if(e.id===i.id)return!0}));if(o>=0&&o+1<t.length){var g=t[o+1];g.isLoaded(this.basePanoSize)||e[g.id]||(window.setTimeout(function(t){this.checkAndWaitForPanoLoad(t,"high","low",this.basePanoSize,null,null,null,!1,!1,!1),window.setTimeout(function(t){e[t.id]=!1}.bind(this,t),n.a.tiling.panoPreRenderRepeatDelay)}.bind(this,g),n.a.tiling.panoPreRenderDelay),e[g.id]=!0)}}}}}(),ut.prototype.enablePreRendering=function(){this.preRenderingEnabled=!0},ut.prototype.updateTileDownloader=function(){var e=new THREE.Vector3;return function(t){var i=this.nextPano||this.currentPano;i&&(e.copy(Oe.a.FORWARD),this.getDirection(e),this.tileDownloader.tilePrioritizer.updateCriteria(i,this.position,e,t.length>0?t:null),this.tileDownloader.processPriorityQueue=!0)}}(),ut.prototype.FlyToMode=function(e,t){var i;if(this.mode==e)t();else{if(isMobile&&edit){var o=U.a.editor.atPanel;$('#app button[type="submit"]').css("pointer-events","none"),i=function(){U.a.editor.atPanel==o&&t(),$('#app button[type="submit"]').css("pointer-events","")}}else i=t;"transitioning"==this.mode&&this.modeTran.split("-")[1]!=e?this.afterCModeFuc=function(){this.afterCModeFuc=i,U.a.gui.modeChange[e]()}.bind(this):(U.a.gui.modeChange[e](null),this.afterCModeFuc=i)}},ut.prototype.changeFishMode=function(e){e=!!e,C.a.ifFish=e,this.model.changeMat();for(var t=this.cameraControls.activeControl.camera,i=this.currentPano,o=0,g=this.model.chunks.length;o<g;o++)this.model.chunks[o].visible=!e;if(this.model.fishSphere.visible=e,e)for(var a in this.currentTarget=i.position.clone(),this.updateMarkerFishPos(i,i,1),this.tagManager.updatePosAtSphere("panorama",this.currentTarget),this.model.floorLogos[0].oriPos.copy(i.floorPosition),this.model.fishSphere.position.copy(i.position),this.model.skybox.visible=!1,V.a.fish)n.a[a]=V.a.fish[a];else for(var a in this.model.panos.list.forEach((function(e){e.placeMarker()})),this.tagManager.updatePosAtSphere(),t.position.copy(i.position),this.model.skybox.visible=!0,V.a.fish)n.a[a]=V.a[a];this.emit(Je.a.PanoChosen,i,i,!1)},ut.prototype.updateMarkerFishPos=function(e,t,i){null==i&&(i=1),i=Math.pow(i,1/3);for(var o=e.position.clone(),g=t.position.clone(),n=-(g.x*i+o.x*(1-i)),a=-(g.z*i+o.z*(1-i)),A=-(g.y*i+o.y*(1-i)),r=this.model.panos.list,C=0;C<r.length;C++){var I=r[C].position.x+n,s=r[C].position.y+A,l=r[C].position.z+a;if(1==i){r[C].floorPosition2.x=I,r[C].floorPosition2.y=s-r[C].height,r[C].floorPosition2.z=l,r[C].floorPosition2.normalize(),r[C].floorPosition2.multiplyScalar(V.a.skyRadius),r[C].floorPosition2.add(g),r[C].marker.position.copy(r[C].floorPosition2);var c=r[C].position.clone();c.y-=r[C].height;var u=.45/c.distanceTo(g);r[C].marker.scale.set(u,u,u),r[C].marker.lookAt(g.clone().add(new THREE.Vector3(0,5*V.a.skyRadius,0)))}}t.marker.visible=!1},ut.prototype.getLookTarget=(ht=new st.a(new THREE.Camera),function(){if(edit&&2==U.a.editor.mainDesign.floorExamingStep)return U.a.editor.mainDesign.floorLineA.pullMesh.position;var e=U.a.editor.markTag;if(e.markGroup&&e.markGroup.stemLine.visible){var t=e.position.clone(),i=e.markGroup.groundPoint.clone(),o=this.position.clone();ht.camera.position.copy(o),ht.lookAt(i),ht.lat=this.cameraControls.activeControl.lat,ht.update(0);var g=ht.lookVector;if(0==g.x&&0==g.z)return console.log("方向向量的x z都为0,无法计算"),t;if(0==g.x)var n=g.y*(t.z-o.z)/g.z+o.y;else n=g.y*(t.x-o.x)/g.x+o.y;var a=(n-t.y)/(i.y-t.y);return a<0?t.clone():a>1?i.clone():new THREE.Vector3(t.x,n,t.z)}return e.position.clone()}),ut.prototype.lookAtPos=function(e,t,i){var o=e?e.clone().applyMatrix4(this.model.matrixWorld):null;this.cameraControls.activeControl.startLookAt(o,t,i)},ut.prototype.getSnapAngleInfo=function(){var e={metadata:{}},t=this.camera.quaternion.clone();switch(this.mode){case"panorama":e.metadata.scan_id=this.currentPano.id;break;case"floorplan":(t=(new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(0,1,0),THREE.Math.degToRad(90))).multiply(this.camera.quaternion),e.metadata.camera_mode=1,e.metadata.ortho_zoom=X.a.toPrecision(this.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height()),4);break;case"dollhouse":e.metadata.camera_mode=2}return e.metadata.camera_position=this.camera.position.clone(),e.metadata.camera_quaternion=t,e.metadata.lon=this.cameraControls.activeControl.lon,e.metadata.lat=this.cameraControls.activeControl.lat,e.sid="4dkk"+(new Date).getTime(),e.name="",e.mode=this.mode,e},ut.prototype.adjustControlAngel=function(e){if(!C.a.ifFish)if("panorama"==this.mode){var t=new THREE.Vector3(0,0,-1).applyQuaternion(this.quaternion).add(this.position);this.cameraControls.activeControl.lookAt(t)}else{if(!e)return;this.cameraControls.activeControl&&e.target&&this.cameraControls.activeControl.target.copy(e.target)}},ut.prototype.copyCameraProp=function(e,t){var i=e.camera;if(C.a.ifFish&&"panorama"==t.mode){var o=this.currentPano.position,g=(new THREE.Quaternion).copy(t.quaternion),n=new THREE.Vector3(0,0,-1).applyQuaternion(g).add(o);i.position.copy(o),e.lookAt(n),e.updateByLookVector()}else{t.position?i.position.copy(t.position):i.position.copy(this.currentPano.position),i.quaternion.copy(t.quaternion),t.target&&e.target.copy(t.target);var a=t.zoom;t.startZoom&&(a=t.startZoom),a&&(e.currentScale=$e.a.convertWorkshopOrthoZoom(a),e.absoluteScale=e.currentScale,e.offset.copy(i.position).sub(e.target),e.updateZoom())}},ut.prototype.copyCameraProp2=function(e,t){var i=e.camera;if(C.a.ifFish&&"panorama"==t.mode){var o=this.currentPano.position,g=(new THREE.Quaternion).copy(t.endquaternion),n=new THREE.Vector3(0,0,-1).applyQuaternion(g).add(o);i.position.copy(o),e.lookAt(n),e.updateByLookVector()}else t.position?i.position.copy(t.position):i.position.copy(this.currentPano.position),i.quaternion.copy(t.quaternion),t.target&&e.target.copy(t.target),t.zoom&&(e.currentScale=$e.a.convertWorkshopOrthoZoom(t.zoom),e.absoluteScale=e.currentScale,e.offset.copy(i.position).sub(e.target),e.updateZoom())},ut.prototype.logCam=function(){var e=this.cameraControls.activeControl,t=e.camera;p.a.info({left:t.left,top:t.top,scale:e.currentScale})},ut.prototype.flyToItem=function(e,t){U.a.playGuider.flyToSingleCap=!0;var i=ot.a.getPlayDataItem(e);if(i){var o=function(){U.a.gui.changeMapVisible(),t&&t()}.bind(this);if(i.mode==A.a.PANORAMA){var g=this.model.panos.get(i.pano),n=new THREE.Vector3(0,0,-1).applyQuaternion(i.quaternion).add(g.position);this.flyToPano({pano:g,lookAtPoint:n},o)}else if(this.mode!=i.mode){var a=i.target,r=i.zoom;2==Store.playData[e].type&&(a=i.starttarget,r=i.startZoom),this.flyToNewMode({mode:i.mode,position:i.position,target:a,zoom:r,quaternion:(new THREE.Quaternion).copy(i.quaternion),callback:o})}else this.copyCameraProp(this.cameraControls.activeControl,i),o()}else p.a.info("没有可以飞向的下一个的item - -")},ut.prototype.updateFromControls=function(e){if(null!=e||(e=0),this.cameraControls.activeControl){if(U.a.recordGuider.onRecording&&U.a.recordGuider.isMouseMove&&!this.flying){var t=U.a.recordGuider.getMoveItem();if(Store.frameData.length>0){var i=Store.capData.length-1,o=Store.frameData[i][Store.frameData[i].length-1];ot.a.checkSame(o,t)||Store.frameData[i].push(t)}else Store.frameData[0]=[],Store.frameData[0].push(t)}U.a.playGuider.checkPlaying()&&U.a.playGuider.playFragment(),this.cameraControls.activeControl&&(this.cameraControls.activeControl.update(e),this.quaternion.copy(this.cameraControls.activeControl.camera.quaternion),this.position.copy(this.cameraControls.activeControl.camera.position),this.target.copy(this.cameraControls.activeControl.target),this.cameraControls.activeControl.camera.updateProjectionMatrix(),this.camera.projectionMatrix.copy(this.cameraControls.activeControl.camera.projectionMatrix));edit&&U.a.editor.mainDesign;if(U.a.editor&&U.a.editor.enterSplitView){var g=U.a.editor.spotPosInfo.control;U.a.editor.spotPosInfo.pauseCameraBind?g.update(e):(g.lon=this.cameraControls.controls.panorama.lon,g.lat=this.cameraControls.controls.panorama.lat,g.update(e),this.cameraControls.controls.panorama.lon=g.lon,this.cameraControls.controls.panorama.lat=g.lat)}}this.camera.position.copy(this.position),this.camera.quaternion.copy(this.quaternion),this.camera.updateMatrix(),this.camera.updateMatrixWorld()},ut.prototype.hasChanged=function(e){if(!this.previousState)return this.previousState={allFloorsVisible:this.model.allFloorsVisible,position:this.position.clone(),quaternion:this.quaternion.clone(),mouse:this.mouse.clone(),currentFloor:this.model.currentFloor,projectionMatrix:this.camera.projectionMatrix.clone(),worldMatrix:this.camera.matrixWorld.clone(),mode:this.mode,modelPosition:this.model.position.clone(),modelCenter:this.model.center.clone(),zoomLevel:this.zoomLevel},!0;var t=this.position.equals(this.previousState.position)&&this.quaternion.equals(this.previousState.quaternion)&&this.camera.matrixWorld.equals(this.previousState.worldMatrix)&&this.camera.projectionMatrix.equals(this.previousState.projectionMatrix)&&this.mode===this.previousState.mode&&this.zoomLevel===this.previousState.zoomLevel&&this.model.center.equals(this.previousState.modelCenter)&&this.model.position.equals(this.previousState.modelPosition),i=t&&this.mouse.equals(this.previousState.mouse)&&this.model.allFloorsVisible===this.previousState.allFloorsVisible&&this.model.currentFloor===this.previousState.currentFloor&&null===this.nextPano;return e.cameraChanged=!t,e.allFloorsVisible=this.model.allFloorsVisible!==this.previousState.allFloorsVisible,e.moved=!this.position.equals(this.previousState.position),e.rotated=!this.quaternion.equals(this.previousState.quaternion),e.mouseMoved=!this.mouse.equals(this.previousState.mouse),e.floorChanged=this.model.currentFloor!==this.previousState.currentFloor,e.cameraProjectionChanged=!this.camera.projectionMatrix.equals(this.previousState.projectionMatrix),e.cameraWorldMatrixChanged=!this.camera.matrixWorld.equals(this.previousState.worldMatrix),e.modeChanged=this.mode!==this.previousState.mode,e.modelPositionChanged=!this.model.position.equals(this.previousState.modelPosition),e.modelCenterChanged=!this.model.center.equals(this.previousState.modelCenter),e.nextPanoActive=null!==this.nextPano,e.zoomLevel=this.zoomLevel!==this.previousState.zoomLevel,this.previousState.allFloorsVisible=this.model.allFloorsVisible,this.previousState.position.copy(this.position),this.previousState.quaternion.copy(this.quaternion),this.previousState.mouse.copy(this.mouse),this.previousState.currentFloor=this.model.currentFloor,this.previousState.projectionMatrix.copy(this.camera.projectionMatrix),this.previousState.worldMatrix.copy(this.camera.matrixWorld),this.previousState.mode=this.mode,this.previousState.modelPosition.copy(this.model.position),this.previousState.modelCenter.copy(this.model.center),this.previousState.zoomLevel=this.zoomLevel,!i},ut.prototype.updateIntersect=function(e){var t=this.flying||this.isWarping(),i=this.isOutsideMode()&&this.cameraControls.controls[this.mode].isEngaged(),o=L.a.getById(n.a.freeze.LookTransition,!0),g=!U.a.recordGuider.onRecording&&!(t||i||this.isTouchEvent||o.length&&o[0].running);if(!this.tagManager.intersecttag(this.mouse,g,this.camera)){if(z.a.urlHasValue("overlay"))try{if(this.intersect=this.getMouseIntersect(null,U.a.editor.mainDesign.overlayPlanes),this.intersect?U.a.editor.mainDesign.hoverOverlay(this.intersect.object):U.a.editor.mainDesign.hoveringPlane&&U.a.editor.mainDesign.hoverOverlay(null),this.intersect)return}catch(t){}if(edit&&U.a.editor.mainDesign.editing&&(this.intersect=U.a.editor.mainDesign.checkIntersect(),this.intersect))return;if(!edit){var a=[];if(this.measureRulers.forEach((function(e){"unable"!=e.state&&a.push(e.boldLine)})),this.intersect=this.getMouseIntersect(null,a),this.intersect&&this.intersect.object.parentRuler)return void $("#player").css("cursor","pointer");U.a.editor&&U.a.editor.enterSplitView||$("#player").css("cursor","")}if(this.setPanoVisible||this.setTagVisible)return this.intersect=this.getMouseIntersect(null,this.model.footIcons),void(this.intersect&&this.intersect.object.visible?$("#player").css("cursor","pointer"):$("#player").css("cursor",""));if(e&&e.tagShadow)return void(this.intersect=this.getMouseIntersect(null,[this.markTag.markGroup.shadow]));if(edit&&U.a.editor.mainDesign.editing){var A=[],r=U.a.editor.mainDesign;2==C.a.wallType?r.atRoom&&r.rooms[r.atRoom].CADroom.forEach((function(e){A.push(e.wallLine.wallMesh)})):r.atRoom&&r.rooms[r.atRoom].CADroom.forEach((function(e){A.push(e.in3D.wallMesh)})),r.atRoom&&(A.push(r.rooms[r.atRoom].floorMesh),2==C.a.wallType&&A.push(r.rooms[r.atRoom].ceilMesh)),A.push(this.model.skybox),this.intersect=this.getMouseIntersect(null,A)}else this.intersect=this.getMouseIntersect(null,null,"normal");this.intersect&&this.updateClosestPano(this.intersect),this.closestPano||this.closestPanoInDirection(this.getMouseDirection())?(this.reticule.updatePosition(this.position,this.intersect),n.a.navigation.panoScores&&!n.a.navigation.mouseDirection&&this.closestPanoInDirection(this.getDirection())):this.reticule.hide()}},ut.prototype.getMouseDirection=function(e){e=e||this.mouse;var t=new THREE.Vector3(e.x,e.y,-1).unproject(this.camera);return new THREE.Vector3(e.x,e.y,1).unproject(this.camera).sub(t).normalize()},ut.prototype.getMouseIntersect=function(e,t,i){e=e||this.mouse.clone(),t||(t=this.model.floors.reduce((function(e,t){return t.hidden?e:e.concat(t.collider.children)}),this.mode===A.a.PANORAMA?this.panoMarkers:[])),this.mode===A.a.PANORAMA&&"normal"==i&&(t=t.concat([this.model.skybox]));var o=new THREE.Vector3(e.x,e.y,-1).unproject(this.camera);this.raycaster.set(o,this.getMouseDirection(e));var g=this.raycaster.intersectObjects(t,!0);if(0===g.length)return null;var n=g[0];n.face&&(n.normal=n.face.normal.applyQuaternion(n.object.quaternion),this.position.clone().sub(n.point).dot(n.normal)<0&&n.normal.negate(),this.currentPano?n.onFloor=n.point.y<this.position.y-.5*this.currentPano.height:n.onFloor=n.point.y<this.position.y-.5,n.horizontal=n.normal.y>.8);return n},ut.prototype.updateClosestPano=function(e){var t=this,i=[];if(this.mode===A.a.PANORAMA){if(!this.currentPano)return;i.push(O.a.filters.not(this.currentPano)),i.push(O.a.filters.inFloorDirection(this.currentPano.floorPosition2||this.currentPano.floorPosition,this.getDirection(),.25)),i.push(O.a.filters.isNeighbourPanoTo(this.currentPano)),i.push(O.a.filters.isCloseEnoughTo(e.point,n.a.panoFloorClickRadius)),C.a.ifFish||i.push(O.a.filters.isNotBehindNormal(e.point,e.normal))}else this.model.noPanoHasNeighbor||i.push((function(e){return t.model.checkHasNeighbor(e)})),i.push(O.a.filters.isOnVisibleFloor()),this.mode!==A.a.FLOORPLAN&&i.push(O.a.filters.inDirection(this.position,this.getDirection(),.25));var o=this.model.panos.find(i,[O.a.sortFunctions.floorDistanceToPoint(e.point)]);o!==this.closestPano?(o&&(this.isPanoHover=!0),this.emit(Je.a.ClosestPanoChanging,this.closestPano,o,this.mode,this.currentPano),this.closestPano=o):this.isPanoHover=!1},ut.prototype.findNearPano=function(e){var t=this.currentPano;return this.model.panos.sortByScore([O.a.filters.not(this.currentPano)],[function(e){return-e.position.distanceTo(t.position)},function(i){var o=0,g=t.position.clone().sub(e.position).setY(0),n=t.position.clone().sub(i.position).setY(0),a=e.position.clone().sub(t.position).setY(0),A=e.position.clone().sub(i.position).setY(0);return g.dot(n)>=0&&a.dot(A)>=0&&(o=1.5),o},function(t){var i=0;return e.visiblePanos.indexOf(t.id)>-1&&(i+=3),i},function(i){var o=0,g=t.position.clone().sub(e.position).setY(0),n=t.position.clone().sub(i.position).setY(0),a=Math.abs(g.dot(n)/g.length()/n.length());return a>.95&&(o=-10*(a-.95)),o},function(){var t=[],i=e.snapInfo.nodeStart,o=e.snapInfo.nodeEnd;t.push(i);for(var g=0;g<1;g++){var n=(1+g)/2,a=n*(o.x-i.x)+i.x,A=n*(o.y-i.y)+i.y,C=n*(o.z-i.z)+i.z;t.push(new r.Vector3(a,A,C))}return t.push(o),function(e){for(var i=0,o=0;o<3;o++){var n=Math.abs(t[o].y-e.position.y)/t[g].distanceTo(e.position);i=Math.max(i,n)}return-3*i}}()],!0)},ut.prototype.dollhouseMode=function(e,t,i){if(this.emit(Je.a.ModeChanging,this.mode,A.a.DOLLHOUSE),this.mode=A.a.DOLLHOUSE,this.cameraControls.controls[A.a.DOLLHOUSE].reset(),e&&t&&i)this.copyCameraProp(this.cameraControls.controls[A.a.DOLLHOUSE],{quaternion:t,target:i,position:e});else{var o=new THREE.Vector3(this.model.center.x,0,this.model.center.z),g=new THREE.Vector3(15,10,15);if(e&&t){var n=Oe.a.FORWARD.clone().applyQuaternion(t),a=(e=this.model.center.clone().sub(e)).dot(n);a>0?(o=n.clone().multiplyScalar(a).add(e),g.copy(e)):p.a.warn("Tried to initiate dollhouse mode that wasn'quaternion looking at the model",e,t)}this.cameraControls.controls[A.a.DOLLHOUSE].resetRanges(0,!0),this.cameraControls.controls[A.a.DOLLHOUSE].target.copy(o),this.cameraControls.cameras[A.a.DOLLHOUSE].position.copy(g),this.updateFromControls()}this.model.alpha=1,this.model.skybox.material.uniforms.opacity.value=0},ut.prototype.insideMode=function(e,t){var i=$.Deferred(),o=t||null;if(this.mode!==A.a.PANORAMA&&this.mode!==A.a.TRANSITIONING){var g=[];this.model.currentFloor&&g.push(O.a.filters.atFloor(this.model.currentFloor)),e=e||this.currentPano||this.model.panos.find(g,[O.a.sortFunctions.distanceToPoint(this.cameraControls.activeControl.target)]),this.flyToNewMode({mode:A.a.PANORAMA,pano:e,callback:o}).done(i.resolve.bind(i)).fail(i.reject.bind(i))}else{var n="Cannot change mode during mode transition";this.mode===A.a.PANORAMA&&(n="Already in panorama mode"),i.reject(n)}return i.promise()},ut.prototype.fitDollhouse=function(e,t,i){var o=Oe.a.FORWARD.clone().applyQuaternion(i);this.cameraControls.activeControl.target.copy(o).add(e),this.cameraControls.activeControl.camera.position.set(0,6,0).add(e).add(o.multiplyScalar(-10))},ut.prototype.floorplanMode=function(e,t,i,o){this.mode=A.a.FLOORPLAN;var g=this.cameraControls.controls[A.a.FLOORPLAN];if(g.reset(),e&&t&&i)this.copyCameraProp(g,{quaternion:t,target:i,zoom:o,position:e});else{var a=e||this.model.center;if(g.target.copy(a).setY(0),g.camera.position.copy(a).setY(n.a.floorplan.cameraHeight),o?(g.currentScale=o/(window.innerWidth/window.innerHeight),g.absoluteScale=g.currentScale):g.zoomToContain(this.model.size),t){var r=Oe.a.LEFT.clone().applyQuaternion(t);g.rotateLeft(-Math.atan2(r.x,r.z))}else g.rotateToView(this.model.size,this.getDirection())}g.update(0)},ut.prototype.flyToPano=function(e,t){var i,g=e.pano,a=e.lookAtPoint,r=e.duration,I=e.aimDuration,s=e.rotSpeed,l=e.maxDistanceOverride,c=(e.skipWarpingCheck,e.constantMoveSpeed),u=null,d=null,h=e.force,f=e.examTag,m=e.cancelLookFun;if(edit)U.a.editor.mainDesign;if(this.mode!==A.a.PANORAMA)return a&&(i=(new THREE.Quaternion).setFromUnitVectors(Oe.a.FORWARD,a.sub(g.position).normalize())),void this.flyToNewMode({mode:A.a.PANORAMA,pano:g,duration:r,quaternion:i,callback:t});g&&(u=o.default.deepExtend(e),d=function(){o.default.delayOneFrame(function(){this.flyToPano(u,t)}.bind(this))}.bind(this));var v=!g||this.checkAndWaitForPanoLoad(g,"high","low",this.basePanoSize,d);if(v)"cannotLoad"==v&&(console.log("飞7"),setTimeout(function(){this.flyToPano(u,t)}.bind(this),100));else{var y=function(e){var t=this;if(C.a.ifFish&&(this.currentTarget=g.position.clone(),this.updateMarkerFishPos(this.currentPano,g,1)),this.flying=!1,this.currentPano!==g&&(this.currentPano.exit(),g.enter(),this.currentPano=g,this.nextPano=null,this.path.placeCpm(),this.mode==A.a.PANORAMA&&this.path.fadeOutCpm(n.a.path.fadeOutTime)),this.emit(Je.a.FlyingEnded,g.position,z,g,G),console.log("isPlaying "+U.a.playGuider.isPlaying),console.log("isPause "+U.a.playGuider.isPause),!U.a.playGuider.isPlaying&&U.a.playGuider.isPause&&U.a.recordGuider.setPreviewStatus("start"),U.a.playGuider.canPlay||(U.a.playGuider.canPlay=!0),U.a.playGuider.wait&&U.a.playGuider.isPlaying&&(U.a.recordGuider.updateFragmentUI(U.a.playGuider.nodeIndex),U.a.playGuider.wait=!1),U.a.playGuider.flyToSingleCap=!1,this.model.fadePanoMarkers(null,null,{player:this}),this.mode==A.a.PANORAMA){if(this.panoVideoRenderer&&this.panoVideoRenderer.onPanoChange(g),C.a.ifFish){for(var i=0;i<this.model.chunks.length;i++)this.model.chunks[i].visible=!1;this.model.fishSphere.visible=!0,this.model.skybox.visible=!1,this.model.fishSphere.position.copy(g.position),this.model.floorLogos[0].quaternion.copy(this.model.floorLogos[1].quaternion),this.model.floorLogos[0].oriPos.copy(this.model.floorLogos[1].oriPos)}if(this.model.floorLogos[0].position.copy(this.model.floorLogos[1].position),this.model.adjustfloorLogoHeight(),this.model.changefloorLogoOpa({index:0,opa:1,dur:0}),this.model.floorLogos[1].visible=!1,U.a.recordGuider.onRecording){var o={};o.pos=this.position.toArray(),o.qua=this.quaternion.toArray(),o.pano=g.id,o.mode="pa",o.type="move",o.startTime=ot.a.getTime(U.a.recordGuider.startCapTime),ot.a.capItemDeal(o),Store.capData.length>0&&Store.capData[Store.capData.length-1].transForHot&&(o.catchTransForHotSid=Store.capData[Store.capData.length-1].transForHot.sid),Store.capData.push(o);var a=Store.capData.length-1;void 0===Store.frameData[a]&&(Store.frameData[a]=[]);var r=JSON.parse(JSON.stringify(o));r.eTime=o.startTime,delete r.startTime,Store.frameData[a].push(r),ot.a.createThumb(Store.capData.length-1,"first")}edit&&"screen"==U.a.editor.atPanel&&U.a.editor.EntryAvoidVideo()}if(this.model.chunks.forEach((function(e){e.material.uniforms.progress&&(e.material.uniforms.progress.value=1),edit&&U.a.editor.mainDesign.editing||C.a.ifFish||U.a.sceneRenderer.vrEnabled||(e.visible=!0)})),edit?U.a.editor.mainDesign.editing&&(this.mode!=A.a.PANORAMA&&U.a.editor.mainDesign.updateOutMat("outside"),U.a.editor.mainDesign.updateRoomDisplay({state:"afterFlytopano",from:G,to:g})):this.measureRulers.forEach((function(e){U.a.editor.setSpotPos||e.updateVisible(),e.boldLine.visible=!0,e.balls.forEach((function(e){e.visible=!0})),"active"==e.state&&(C.a.ifFish&&e.getPosAtSphere(t.currentTarget),e.updateBoldLine())})),this.rulerGroupShowing){var I=isMobile?1:2,s=this.rulerGroupShowing.pointBtm.distanceTo(this.currentPano.origin);s>this.rulerGroupShowing.horizon.length*I?this.rulerGroupShowing.horizon.dir="left":this.rulerGroupShowing.horizon.dir="",s>this.rulerGroupShowing.last.horizon.length*I?this.rulerGroupShowing.last.horizon.dir="right":this.rulerGroupShowing.last.horizon.dir=""}w(e),U.a.recordGuider.isMouseMove=!0};if(U.a.editor&&U.a.editor.enterSplitView){if("designWall"!=ct.a.editType&&!U.a.editor.spotPosInfo.clickA&&1!=ct.a.measureStep)return;if("designWall"!=ct.a.editType&&g.subPano==U.a.editor.spotPosInfo.panoB)return void console.warn("不能选中这个点");if("designWall"==ct.a.editType&&g==U.a.editor.spotPosInfo.panoB)return void console.warn("不能选中这个点");ct.a.changePano("A",g),U.a.editor.spotPosInfo.pauseCameraBind=!0}if(U.a.editor&&U.a.editor.markTag&&!a&&(1!=ct.a.measureStep||U.a.editor.spotPosInfo.clickA)){if(this.flying)return void console.log("flyingReturn");a=this.getLookTarget(),this.flyingToTag=!1}else if(!a&&g.hasVideo&&this.panoVideoRenderer&&this.panoVideoRenderer.ifEnable()){var b=(new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(0,1,0),THREE.Math.degToRad(this.model.supportsTiles?90:180));e.lookAtPoint=a=Oe.a.FORWARD.clone().applyQuaternion(b.multiply(g.quaternion)).add(g.position)}var w=function(e){if(this.flyRotate=!1,this.flyingWithRot=!1,t&&t(e),this.waitFlytoItemFuc){var i=this.waitFlytoItemFuc;this.waitFlytoItemFuc=null,i()}}.bind(this);this.currentPano||(this.currentPano=g,this.path.placeCpm(),this.path.fadeOutCpm(n.a.path.fadeOutTime));var x=r;if("number"!=typeof r){var E=l||n.a.transition.flytimeMaxDistanceThreshold;x=Math.min(this.currentPano.position.distanceTo(g.position),E)*n.a.transition.flytimeDistanceMultiplier+n.a.transition.flyTime}if(n.a.transition.flySpeed>.01&&(x=1e3*this.currentPano.position.distanceTo(g.position)/n.a.transition.flySpeed),1!==this.zoomLevel)switch(n.a.zoom.transitionStyle){case 1:this.smoothZoomToDefault(x/2);break;case 2:return u=o.default.deepExtend(e),d=this.flyToPano.bind(this,u,t),void this.smoothZoomToDefault(n.a.zoom.restoreTime*(this.zoomLevel-1),d)}if(a){L.a.cancelById(n.a.freeze.LookTransition,!0),x*=n.a.transition.aimSlowFactor;var P=this.cameraControls.activeControl.camera.quaternion.clone(),T=(new THREE.Matrix4).lookAt(g.position,a,Oe.a.UP),D=(new THREE.Quaternion).setFromRotationMatrix(T),M=P.clone(),S=new THREE.Vector3;if(g===this.currentPano){U.a.playGuider.flyToSingleCap=!1;var R=Oe.a.FORWARD.clone().applyQuaternion(P),k=Oe.a.FORWARD.clone().applyQuaternion(D),O=R.angleTo(k);console.log("R.angleTo(P) "+O),this.flyRotate=!0;var B=f&&!isMobile&&!U.a.recordGuider.onRecording&&!U.a.playGuider.isPlaying&&!h,N=(f&&f.billboard.loadingMedia,0),H={progress:null,value:null};return null!=I||(I=1*Math.sqrt(O)/(s||n.a.tags.navigate.rotateSpeedFactor)*1e3),void L.a.start(function(e){if(this.mode!=A.a.PANORAMA||window.cancelReExam||f&&U.a.tagManager.activeTag!=f)return L.a.cancelById(n.a.freeze.LookTransition),void w();var t,i;B?(e-N>.01?(a=f.billboard.getCenterPos(),T=(new THREE.Matrix4).lookAt(g.position,a,Oe.a.UP),D=(new THREE.Quaternion).setFromRotationMatrix(T),t=H.progress,H.progress=e,i=!0,N=e):(t=H.progress,i=!1),H.value&&1!=t?(M.copy(H.value),e=(e-t)/(1-t)):M.copy(P),F.a.quaternion(M,D)(e),i&&(H.value=M.clone())):(M.copy(P),F.a.quaternion(M,D)(e));S.copy(Oe.a.FORWARD).applyQuaternion(M).add(this.cameraControls.activeControl.camera.position),this.cameraControls.activeControl.lookAt(S)}.bind(this),I,w,0,j.a[B?"easeOutSine":n.a.transition.movementEasing],null,n.a.freeze.LookTransition,m)}}if(g===this.currentPano||this.flying)return void w();this.panoVideoRenderer&&this.panoVideoRenderer.onPanoChange(null),this.emitEvent("player.flyToPano"),this.flying=!0;var z=this.position.clone(),G=this.currentPano;if(p.a.debug("Flying to pano ",g.position),this.emit(Je.a.FlyingStarted,g.position,z,g,G),this.tagManager.updateVisible("panorama",g),C.a.ifFish){var W=this.cameraControls.cameras[A.a.PANORAMA].position.clone(),Q=this.cameraControls.activeControl;if(a){var Y=new THREE.Vector3;S.copy(new THREE.Vector3(0,0,-1)).applyQuaternion(D).add(this.camera.position),Q.lookAt(S);var Z=Q.updateByLookVector(!0);Y.copy(Z).negate().add(g.position)}else Y=this.cameraControls.cameras[A.a.PANORAMA].position.clone().add(g.position.clone().sub(this.currentPano.position));this.emit(Je.a.PanoChosen,this.currentPano,g,null,W,Y,V.a.skyRadius);for(var X=0;X<this.model.panos.list.length;X++)this.model.panos.list[X].marker.visible=!1;this.model.fishSphere.visible=!1,this.model.skybox.visible=!0;var J=g.floorPosition.clone().sub(this.currentPano.floorPosition).setY(0).angleTo(this.getDirection().setY(0))>Math.PI/2;this.model.floorLogos[1].quaternion.copy(this.model.floorLogos[0].quaternion),window.lowFPS&&J||this.model.changefloorLogoOpa({index:0,opa:0,dur:J?x:300,delay:.5}),this.model.floorLogos[1].oriPos=g.floorPosition.clone(),this.model.floorLogos[1].visible=!0,J?this.model.changefloorLogoOpa({index:1,from:0,opa:1,dur:x,delay:.8}):this.model.changefloorLogoOpa({index:1,from:0,opa:1,dur:200}),J=!1}else this.emit(Je.a.PanoChosen,this.currentPano,g),this.model.changefloorLogoOpa({index:0,opa:0,dur:x,delay:.7}),this.model.floorLogos[1].position.copy(g.floorPosition.clone().sub(this.model.position)),this.model.adjustfloorLogoHeight(),this.model.floorLogos[1].material.uniforms.opacity.value=0,this.model.floorLogos[1].visible=!0,this.model.changefloorLogoOpa({index:1,opa:1,dur:250});U.a.recordGuider.isMouseMove=!1;var K={};if(K.pos=this.position.toArray(),K.qua=this.quaternion.toArray(),K.pano=this.currentPano.id,K.mode="pa",K.type="fly",U.a.recordGuider.onRecording){U.a.recordGuider.CapFirstItem1(K),K.eTime=ot.a.getTime(U.a.recordGuider.startCapTime),ot.a.capItemDeal(K);var q=Store.capData.length-1;void 0===Store.frameData[q]&&(Store.frameData[q]=[]),Store.frameData[q].push(K),U.a.recordGuider.CapFirstItem2(K);var _=Store.capData,$=_[_.length-1];if(ot.a.createThumb(_.length-1,"second"),$.eTime&&$.pano==this.currentPano.id?U.a.recordGuider.updateFragment(_.length-1,1,Store.thumbs[_.length-1].second_url):U.a.recordGuider.setFragment($),$.endquaternion=this.cameraControls.activeControl.camera.quaternion.toArray(),$.eTime=K.eTime,this.flyingToTag&&$.tags&&"open"==$.tags[$.tags.length-1].state){$.transForHot={sid:$.tags[$.tags.length-1].sid,eTime:$.tags[$.tags.length-1].eTime};var ee=$.tags.length-1;$.tags.splice(ee,1),0==$.tags.length&&delete $.tags}x=1e3}a&&(this.flyingWithRot=!0)&&L.a.start(function(e){if(this.mode!=A.a.PANORAMA||f&&U.a.tagManager.activeTag!=f)return L.a.cancelById(n.a.freeze.LookTransition),void w();M.copy(P),F.a.quaternion(M,D)(e),S.copy(Oe.a.FORWARD).applyQuaternion(M).add(this.cameraControls.activeControl.camera.position),this.cameraControls.activeControl.lookAt(S)}.bind(this),x,null,0,j.a[n.a.transition.movementEasing],null,n.a.freeze.LookTransition,m);var te=!0;if(edit&&U.a.editor.mainDesign.editing)te=!1;else if(null==this.currentPano.noBlocks||this.currentPano.noBlocks.indexOf(g.id)>-1||C.a.isSpecialScene||"bigScene"==C.a.applicationName){if(C.a.ifFish)for(var ie=0;ie<this.model.chunks.length;ie++)this.model.chunks[ie].visible=!0}else{var oe=this.currentPano.origin.clone(),ge=g.origin.clone(),ne=ge.clone().sub(oe).normalize().multiplyScalar(.1),ae=oe.clone().sub(ne),Ae=ge.clone().add(ne),re=new THREE.Raycaster(ae,Ae.clone().sub(ae).normalize(),0,ae.distanceTo(Ae)).intersectObjects(this.model.chunks);if(re&&re.length){for(ie=0;ie<this.model.chunks.length;ie++)this.model.chunks[ie].visible=!1;te=!1}}this.model.skybox.visible=!0,edit&&"wallDesign"==U.a.editor.atPanel&&U.a.editor.mainDesign.updateRoomDisplay({state:"beforeFlytopano",from:G,to:g}),this.measureRulers.forEach((function(e){e.boldLine.visible=!1,e.balls.forEach((function(e){e.visible=!1}))}));var Ce=c?null:j.a[n.a.transition.movementEasing];this.nextPano=g,te?L.a.start(F.a.allUniforms(this.model.chunks,"progress",1),x,null,0,j.a[n.a.transition.blendEasing],"chunkFly",n.a.freeze.FlyToPano):edit&&U.a.editor.mainDesign.editing&&L.a.start(F.a.uniform(this.model.chunks[0],"progress",1),x,null,0,j.a[n.a.transition.blendEasing],"chunkFly",n.a.freeze.FlyToPano),L.a.start(F.a.uniform(this.model.skybox,"progress",1),x,null,0,j.a[n.a.transition.blendEasing],"skyFly",n.a.freeze.FlyToPano),C.a.ifFish?L.a.start(F.a.vector(this.currentTarget,g.position,function(e){this.mode==A.a.PANORAMA&&(this.tagManager.updatePosAtSphere("panorama",this.currentTarget),this.cornerRulers.forEach((function(t){"active"==t.state&&t.getPosAtSphere(e)})),this.measureRulers.forEach((function(t){"active"==t.state&&t.getPosAtSphere(e)})))}.bind(this)),x,y.bind(this),0,Ce,"camFly",n.a.freeze.FlyToPano):L.a.start(F.a.vector(this.cameraControls.cameras[A.a.PANORAMA].position,g.position,function(e){if(edit){var t=U.a.editor.mainDesign;t.editing&&"panorama"==this.mode&&(t.pullsShowing.forEach((function(e){t.updateSize({mesh:e,smooth:!0})})),t.clickLine?t.updateSize({mesh:t.clickLine.children[0]}):t.floorLineA&&2==t.floorExamingStep&&t.updateSize({mesh:t.floorLineA.pullMesh}))}}.bind(this)),x,y.bind(this),0,Ce,"camFly",n.a.freeze.FlyToPano),this.videoTexture&&(this.videoTexture.isPlaying=!1,this.video.pause(),this.video.src="")}},ut.prototype.flytoTag=function(e,t){this.tagManager.activeTag&&this.tagManager.activeTag!=e&&this.tagManager.dismissActiveTag(),this.tagManager.navigatingViaTag=!0,this.tagManager.activateTag(e,"examine"),e.updateBoardOrient=!0,e.examine(this,t)},ut.prototype.flyToPanoClosestToMouse=function(){if(Date.now()-this.mouseLastMoveTime>50&&this.intersect&&this.updateClosestPano(this.intersect),this.closestPano)return this.flyToPano({pano:this.closestPano});var e=this.getMouseDirection();this.flyDirection(e)||this.flyToPano({pano:this.currentPano})},ut.prototype.flyLocalDirection=function(e){if(!edit||!U.a.editor.setSpotPos||2!=C.a.setSpotType){var t=this.getDirection(e),i=1===e.z?.4:.75,o=1===Math.abs(e.x);return this.flyDirection(t,i,o)}},ut.prototype.flyDirection=function(e,t,i){var o=$.Deferred();this.history.invalidate();var g=this.closestPanoInDirection(e,t,i);return g?this.flyToPano({pano:g},o.resolve.bind(o,!0)):(this.bump(e),o.resolve(!1)),o.promise()},ut.prototype.closestPanoInDirection=function(e,t,i){return this.rankedPanoInDirection(0,e,t,i)},ut.prototype.rankedPanoInDirection=(pt={pano:null,candidates:[]},function(e,t,i,o){e||(e=0),i=void 0!==i?i:.75;var g=o?"angle":"direction",n=[O.a.filters.isPanoAligned(),O.a.filters.inPanoDirection(this.position,t,i),O.a.filters.isNeighbourPanoTo(this.currentPano),O.a.filters.not(this.currentPano)],a=[O.a.scoreFunctions.distanceSquared(this.currentPano),O.a.scoreFunctions[g](this.position,t)];return U.a.editor&&U.a.editor.setSpotPos&&(3!=C.a.setSpotType||"tag"!=ct.a.editType&&"measure"!=ct.a.editType?"designWall"==ct.a.editType&&n.push((function(e){return e!=U.a.editor.spotPosInfo.panoB})):n.push((function(e){return e.subPano!=U.a.editor.spotPosInfo.panoB}))),this.model.panos.findRankedByScore(e,n,a,pt),this.cachedPanoCandidates=pt.candidates,pt.pano}),ut.prototype.bump=function(e){if(this.mode===A.a.PANORAMA&&!this.flying&&!this.isWarping()){var t,i,o,g=n.a.transition,a=(g.flytimeMaxDistanceThreshold*g.flytimeDistanceMultiplier+g.flyTime)/8,r=this.camera.getWorldDirection().dot(e);if(Math.abs(r)>.5)t=function(){L.a.start(F.a.property(this.cameraControls.cameras[A.a.PANORAMA],"zoom",r>0?1.04:.96),a,i,0,j.a.easeInOutSine,"bumpZStart")}.bind(this),i=function(){L.a.start(F.a.property(this.cameraControls.cameras[A.a.PANORAMA],"zoom",1),5*a,o,0,j.a.easeInOutSine,"bumpZRelax")}.bind(this);else{var C=this.camera.position.clone(),I=e.clone();this.raycaster.set(C,I);var s=this.model.floors.reduce((function(e,t){return e.concat(t.collider.children)}),[]),l=this.raycaster.intersectObjects(s),c=l.length>0?l[0].distance/25:.04,u=C.clone().add(I.multiplyScalar(c));t=function(){L.a.start(F.a.vector(this.cameraControls.cameras[A.a.PANORAMA].position,u),a,i,0,j.a.easeInOutSine,"bumpTStart")}.bind(this),i=function(){L.a.start(F.a.vector(this.cameraControls.cameras[A.a.PANORAMA].position,C),5*a,o,0,j.a.easeInOutSine,"bumpTRelax")}.bind(this)}o=function(){if(this.flying=!1,!U.a.playGuider.isPlaying&&U.a.playGuider.isPause&&(U.a.recordGuider.setPreviewStatus("start"),U.a.playGuider.flyToSingleCap=!1),this.waitFlytoItemFuc){var e=this.waitFlytoItemFuc;this.waitFlytoItemFuc=null,e()}}.bind(this),this.flying=!0,t()}},ut.prototype.changeFloor=function(e){if(!this.is360View(this.mode,this.currentPano))if(this.mode===A.a.PANORAMA){var t=this.history.reversePano(e);t?this.flyToPano({pano:t}):this.changeFloorByScore(e)}else this.model.setFloor(this.model.nextFloor(e)||this.model.currentFloor)},ut.prototype.changeFloorByScore=function(){var e={pano:null,candidates:[]};return function(t){var i=this.model.nextFloor(t);return i?(this.model.panos.lowestByScore([O.a.filters.atFloor(i),O.a.filters.isPanoAligned()],[O.a.scoreFunctions.distance(this.currentPano),O.a.scoreFunctions.direction(this.position,new THREE.Vector3(0,t,0)),O.a.scoreFunctions.penalizeHeightDifferenceUnder(this.position,.5)],e),void(e.pano?(this.cachedPanoCandidates=e.candidates,this.history.push(t,this.currentPano),this.flyToPano({pano:e.pano})):p.a.warn("No pano found on selected floor, not moving there."))):void p.a.debug("Player.changeFloor("+t+"): no such floor")}}(),ut.prototype.gotoFloor=function(e){var t=e-this.model.currentFloor.floorIndex;this.changeFloor(t)},ut.prototype.getDirection=function(e,t){t=t||this.camera;return(e=e||(new THREE.Vector3).copy(Oe.a.FORWARD)).applyQuaternion(t.quaternion)},ut.prototype.beforeChangeMode=function(e,t,i,o){if(this.modeTran=e+"-"+t,U.a.gui.switchNav(e,t),edit&&(U.a.editor.mainDesign.editing&&U.a.editor.mainDesign.unselectAll(),isMobile||(this.setTagVisible?U.a.editor.finishSetTagVisible():this.setPanoVisible&&U.a.editor.leavePanel("panoVisible"))),e==A.a.PANORAMA)this.flyingToTag=this.flyRotate=this.flyingWithRot=!1,this.tagManager.updateVisible(),this.tagManager.dismissExaminedTag(),this.model.floorLogos[0].visible=!1,this.model.floorLogos[1].visible=!1,C.a.ifFish&&(this.tagManager.updatePosAtSphere("changeBack",null,100,0),this.model.fishSphere.visible=!1,this.model.skybox.visible=!0),edit&&"wallDesign"==U.a.editor.atPanel?(U.a.editor.mainDesign.updateOutMat(),U.a.editor.mainDesign.updateRoomDisplay({state:"forceToUpdate"}),2==C.a.wallType&&U.a.editor.mainDesign.setLabelPosAndText(),U.a.editor.mainDesign.adjustLight(),U.a.editor.mainDesign.restoreAllSize()):(this.model.chunks.forEach((function(e){e.visible=!0})),U.a.editor&&U.a.editor.chosenMeasureRuler&&U.a.editor.chosenMeasureRuler.showOptionLabel(!1)),this.model.skybox.material.transparent=!0,$("#hotspot .rulers").addClass("hide"),$("#hotspot .doors").addClass("hide"),C.a.ifFish?this.measureRulers.forEach((function(e){e.state="unable",e.update()})):this.measureRulers.forEach((function(e){e.state="active",e.update()})),this.panoVideoRenderer&&this.panoVideoRenderer.onPanoChange(null),C.a.ifFish&&this.model.fadePanoMarkers(0,null,{player:this});else if(e==A.a.FLOORPLAN){edit&&U.a.editor.mainDesign.editing&&U.a.editor.mainDesign.setflTopLine(!1),$(".planLabels").addClass("hide"),(g=this.cameraControls.controls.floorplan.plane)&&"nofile"!=g&&L.a.start(F.a.property(g.material,"opacity",0),600),C.a.hasPanoLabels&&$("#panoLabels").addClass("hide")}else e==A.a.DOLLHOUSE&&$(".dollLabels").addClass("hide");if(t==A.a.PANORAMA)this.model.floorLogos[0].position.copy(i.floorPosition.clone().sub(this.model.position)),this.model.floorLogos[1].position.copy(this.model.floorLogos[0].position),this.model.adjustfloorLogoHeight(),C.a.ifFish&&(this.model.fishSphere.visible=!1,this.model.fishSphere.position.copy(i.position),this.model.skybox.material.transparent=!0,this.currentTarget.copy(i.position),this.tagManager.updateVisible("panorama"),this.tagManager.updatePosAtSphere("panorama",this.currentTarget,o,.2),this.cornerRulers.forEach(function(e){"active"==e.state&&e.getPosAtSphere(this.currentPano.position)}.bind(this)),this.updateMarkerFishPos(i,i,1),this.model.floorLogos[0].oriPos.copy(i.floorPosition),this.model.floorLogos[1].oriPos.copy(this.model.floorLogos[0].oriPos),this.model.floorLogos[0].position.copy(this.model.floorLogos[0].oriPos)),edit&&U.a.editor.mainDesign.editing&&(U.a.editor.mainDesign.updateRoomDisplay({state:"beforeFlyIn",to:i}),U.a.editor.mainDesign.updateOutMat(),U.a.editor.mainDesign.waitChangeMode=!0,this.model.chunks[0].material.transparent=!1,this.model.chunks[0].materialInside.polygonOffset=!0);else if(t==A.a.FLOORPLAN){var g;(g=this.cameraControls.controls.floorplan.plane)&&"nofile"!=g&&L.a.start(F.a.property(g.material,"opacity",1),1e3)}for(var n=0;n<this.model.panos.list.length;n++)this.model.panos.list[n].skyboxMesh.visible=!1;U.a.gui.changeMapVisible(null)},ut.prototype.afterChangeMode=function(e,t){if(C.a.ifFish&&t!=A.a.PANORAMA||this.model.fadePanoMarkers(null,null,{player:this}),t==A.a.PANORAMA)this.model.floorLogos[0].visible=!0,this.model.changefloorLogoOpa({index:0,from:0,opa:1,dur:150}),edit?((U.a.editor.mainDesign.editing||U.a.editor.mainDesign.waitChangeMode)&&(U.a.editor.mainDesign.updateRoomDisplay({state:"forceToUpdate"}),this.model.chunks[0].materialInside.polygonOffset=!1),U.a.editor.mainDesign.waitChangeMode=!1):this.measureRulers.forEach((function(e){e.updateVisible()})),C.a.ifFish?(this.model.fishSphere.visible=!0,this.model.fishSphere.material.transparent=!1,this.model.skybox.visible=!1,this.model.chunks.forEach((function(e){e.visible=!1})),this.measureRulers.forEach(function(e){"active"==e.state&&e.getPosAtSphere(this.currentPano.position)}.bind(this))):this.tagManager.updateVisible("panorama"),this.measureRulers.forEach((function(e){e.updateBoldLine()})),this.model.skybox.material.transparent=!1,$("#hotspot .rulers").removeClass("hide"),$("#hotspot .doors").removeClass("hide"),this.panoVideoRenderer&&this.panoVideoRenderer.onPanoChange(this.currentPano);else if(t==A.a.DOLLHOUSE){for(var i=0;i<this.model.panos.list.length;i++)this.model.panos.list[i].skyboxMesh.visible=!0;$(".dollLabels").removeClass("hide"),edit&&"wallDesign"==U.a.editor.atPanel?U.a.editor.mainDesign.dollLabels.forEach((function(e){e.enable=!0})):this.defaultRoomLabels.forEach((function(e){e.enable="doll"==e.type}))}else t==A.a.FLOORPLAN&&($(".planLabels").removeClass("hide"),edit&&"wallDesign"==U.a.editor.atPanel?(U.a.editor.mainDesign.planLabels.forEach((function(e){e.enable=!0})),U.a.editor.mainDesign.setflTopLine(!0)):this.defaultRoomLabels.forEach((function(e){e.enable="plan"==e.type&&!e.dontShow})),C.a.hasPanoLabels&&$("#panoLabels").removeClass("hide"));if(this.afterCModeFuc){var o=this.afterCModeFuc;this.afterCModeFuc=null,o()}if(this.waitFlytoItemFuc){o=this.waitFlytoItemFuc;this.waitFlytoItemFuc=null,o()}edit&&U.a.editor.enablePanel()},ut.prototype.flyToNewMode=function(e,t){var i=(e=e||{}).mode,g=e.pano,a=e.duration,r=(e.warpDest,e.callback),I=(e.force,e.target),s=e.position,l=e.quaternion,c=e.zoom;if(t=t||$.Deferred(),this.isWarping())return p.a.warn("Player.flyToNewMode() -> Cannot fly when warping"),r&&r(!1),t.reject("Cannot change mode during tour transition").promise();if(this.mode===A.a.TRANSITIONING)return r&&r(!1),t.reject("Cannot change mode during mode transition").promise();if(i===this.mode)return r&&r(!1),t.reject("Already in "+i+" mode").promise();p.a.debug("Switching mode to "+i);var u=function(){o.default.delayOneFrame(function(){this.flyToNewMode(e,t)}.bind(this))}.bind(this);if(g&&this.checkAndWaitForPanoLoad(g,"low","low",this.basePanoSize,u))return t.promise();if(!this.model.meshTexturesLoaded&&this.isOutsideMode(i))return p.a.info("Waiting for model textures to be loaded before going out to dollhouse"),this.model.waitForLoad(this.model,function(){return this.model.meshTexturesLoaded}.bind(this)),U.a.loaders.loadMeshTextures(u),t.promise();if(this.history.invalidate(),this.updateLastView(),U.a.recordGuider.onRecording&&(e.mode!=A.a.PANORAMA||e.mode==A.a.PANORAMA&&null==e.callback)){U.a.recordGuider.isMouseMove=!1;var d={};d.pos=this.position.toArray(),d.qua=this.quaternion.toArray(),d.mode=ot.a.tranString(this.mode),d.type="newM",this.mode==A.a.PANORAMA?(this.tagManager.hideAllTags(),d.pano=this.currentPano.id):this.mode==A.a.FLOORPLAN&&(d.zoom=this.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height())),ot.a.capItemDeal(d),U.a.recordGuider.CapFirstItem1(d),d.eTime=ot.a.getTime(U.a.recordGuider.startCapTime),U.a.recordGuider.CapFirstItem2(d);var h=Store.capData.length-1;void 0===Store.frameData[h]&&(Store.frameData[h]=[]),Store.frameData[h].push(d);var f=Store.capData,m=f[f.length-1];m.endquaternion=this.cameraControls.cameras[this.model.mode].quaternion.toArray(),ot.a.createThumb(f.length-1,"second"),this.cameraControls.activeControl.target&&(m.endtarget=(new THREE.Vector3).copy(this.cameraControls.activeControl.target),d.target=m.endtarget),this.currentPano.model.mode!=A.a.PANORAMA&&(m.endposition=this.cameraControls.activeControl.camera.position.clone(),this.currentPano.model.mode==A.a.FLOORPLAN&&(m.endZoom=this.cameraControls.activeControl.currentScale/($("#player").width()/$("#player").height()))),m.eTime&&(ot.a.tranString(m.mode)==A.a.PANORAMA&&m.pano==this.currentPano.id||ot.a.tranString(m.mode)!=A.a.PANORAMA&&ot.a.tranString(m.mode)==this.mode)?U.a.recordGuider.updateFragment(f.length-1,1,Store.thumbs[f.length-1].second_url):U.a.recordGuider.setFragment(m),m.eTime=d.eTime}var v=this.mode,y=this.cameraControls.cameras[i],b=o.default.deepExtend({},n.a[i],n.a[v+"-"+i]),w=b.transitionTime;if(void 0!==a&&(w=a),g&&(this.currentPano=g),i!=A.a.PANORAMA&&1!==this.zoomLevel&&this.zoomDefault(),i==A.a.PANORAMA&&U.a.editor&&U.a.editor.markTag&&!l&&(1!=ct.a.measureStep||U.a.editor.spotPosInfo.clickA)){var x=this.getLookTarget();this.flyingToTag=!1;var E=(new THREE.Matrix4).lookAt(g.position,x,Oe.a.UP);l=(new THREE.Quaternion).setFromRotationMatrix(E)}else i==A.a.PANORAMA&&!l&&g.hasVideo&&this.panoVideoRenderer&&this.panoVideoRenderer.ifEnable()&&(l=(new THREE.Quaternion).setFromAxisAngle(new THREE.Vector3(0,1,0),THREE.Math.degToRad(this.model.supportsTiles?90:180)).multiply(g.quaternion));this.switchCameraMode(i,l,I,s,c),L.a.cancelById(n.a.freeze.LookTransition,!0);var P=(new THREE.Vector3).copy(this.position);this.mode===A.a.PANORAMA&&C.a.ifFish&&this.emit(Je.a.PanoChosen,this.currentPano,this.currentPano,null,this.camera.position,this.camera.position,V.a.skyRadius),i===A.a.PANORAMA?(C.a.ifFish?this.emit(Je.a.PanoChosen,g,g,null,y.position,y.position,V.a.skyRadius):this.emit(Je.a.PanoChosen,g,g),setTimeout(function(){g.floor.enter(i)}.bind(this),w/2),this.path.fadeOutCpm(n.a.path.fadeOutTime)):(this.path.placeCpm(),this.path.fadeInCpm(n.a.path.fadeInTime),i===A.a.DOLLHOUSE?this.model.toggleAllFloors(!0):this.model.currentFloor.enter(i));var T=this.currentPano,D=this.position.clone();return this.emit(Je.a.FlyingStarted,P,D,g,this.currentPano),this.flying=!0,this.isOutsideMode(i)&&this.is360View(v,T)?(i==A.a.DOLLHOUSE&&(y.position.set(15,10,15),y.controls.target.set(this.model.center.x,0,this.model.center.z),y.controls.update()),b.blackoutStyle=et.a.FADEIN,w=n.a.show360Views.transitionTime):this.isOutsideMode(v)&&this.is360View(i,g)?(this.mode=i,b.blackoutStyle=et.a.END,w=n.a.show360Views.transitionTime):((!edit||"wallDesign"!=U.a.editor.atPanel)&&L.a.start(F.a.property(this.model,"alpha",b.modelAlpha,null),w*b.modelAlphaLength,null,b.modelAlphaDelay,null,n.a.freeze.FlyToNewMode),L.a.start(F.a.vector(this.position,y.position),w,null,n.a.flydown.movementDelay,j.a[n.a.flydown.movementEasing],null,n.a.freeze.FlyToNewMode),L.a.start(F.a.quaternion(this.quaternion,y.quaternion),w*b.rotationDuration,null,b.rotationDelay,j.a[n.a.flydown.rotationEasing],null,n.a.freeze.FlyToNewMode),L.a.start(F.a.matrix4(this.camera.projectionMatrix,y.projectionMatrix),w*b.cameraMatrixDuration,null,b.cameraMatrixDelay,b.cameraMatrixEase,null,n.a.freeze.FlyToNewMode),L.a.start(F.a.uniform(this.model.skybox,"opacity",b.skyboxOpacity),w*b.skyboxOpacityLength,null,b.skyboxOpacityDelay,null,n.a.freeze.FlyToNewMode),L.a.start(F.a.property(this.reticule.material.uniforms.opacity,"value",0),w,null,n.a.freeze.FlyToNewMode)),edit||$("#player-cad").css("display","none"),L.a.setTimeout(function(){if(this.emit(Je.a.ModeChanging,v,i,g),this.flying=!1,v===A.a.PANORAMA&&i!==A.a.PANORAMA?edit&&"wallDesign"==U.a.editor.atPanel?this.waitToExitPano=this.currentPano:this.currentPano.exit():v!==A.a.PANORAMA&&i===A.a.PANORAMA&&(this.currentPano!==T&&T.exit(),this.currentPano.enter(),this.path.placeCpm(),this.path.fadeOutCpm(n.a.path.fadeOutTime),this.waitToExitPano&&this.waitToExitPano!=T&&this.waitToExitPano!=this.currentPano&&this.waitToExitPano.exit(),this.waitToExitPano=null),v===A.a.DOLLHOUSE&&(!edit||"wallDesign"!=U.a.editor.atPanel)&&this.cameraControls.controls[A.a.DOLLHOUSE].resetRanges(),this.mode=i,this.afterChangeMode(v,i),this.emit(Je.a.FlyingEnded,P,D,this.currentPano,T),r&&r(),t.resolve(),U.a.recordGuider.isMouseMove=!0,i==A.a.DOLLHOUSE&&I?this.cameraControls.controls.dollhouse.target.copy(I):i==A.a.FLOORPLAN&&(edit||U.a.playGuider.isPlaying||null==this.cad||(isNaN(this.cameraControls.controls.panorama.lon)||this.cad.setPosition(this.cameraControls.controls.panorama.camera.position,2*Math.PI*this.cameraControls.controls.panorama.lon/360),this.cad.setStreamlining(!1),$("#player-cad").css("display",""))),U.a.recordGuider.onRecording){var o={};o.pos=this.position.toArray(),o.qua=this.quaternion.toArray(),o.mode=ot.a.tranString(e.mode),o.type="move";var a=this.cameraControls.activeControl;a.target&&(o.starttarget={x:a.target.x,y:a.target.y,z:a.target.z}),i==A.a.PANORAMA?o.pano=e.pano.id:i==A.a.FLOORPLAN&&(o.startZoom=a.currentScale/($("#player").width()/$("#player").height())),o.startTime=ot.a.getTime(U.a.recordGuider.startCapTime),Store.capData.push(o);var C=Store.capData.length-1;void 0===Store.frameData[C]&&(Store.frameData[C]=[]);var s=JSON.parse(JSON.stringify(o));if(s.eTime=o.startTime,s.target=o.starttarget,delete s.startTime,delete s.starttarget,Store.frameData[C].push(s),ot.a.createThumb(Store.capData.length-1,"first"),i==A.a.PANORAMA)for(var l in this.model.tags){var c=this.model.tags[l];-1==c.billboard.media.indexOf("outLink")&&"videoPanoFlag"!=c.state&&c.show()}}!U.a.playGuider.isPlaying&&U.a.playGuider.isPause&&U.a.recordGuider.setPreviewStatus("start"),U.a.playGuider.canPlay||(U.a.playGuider.canPlay=!0),U.a.playGuider.wait&&U.a.playGuider.isPlaying&&(U.a.recordGuider.updateFragmentUI(U.a.playGuider.nodeIndex),U.a.playGuider.wait=!1),U.a.playGuider.flyToSingleCap=!1,this.emitEvent("player.flyToNewMode")}.bind(this,y),w,n.a.freeze.FlyToNewMode),this.beforeChangeMode(v,i,g,w),this.mode=A.a.TRANSITIONING,t.promise()},ut.prototype.updateLastView=function(){this.mode===A.a.PANORAMA&&(this.currentPano.isAligned()?this.lastInsideView:this.last360View).update({pano:this.currentPano,position:this.position,quaternion:this.quaternion})},ut.prototype.setSize=function(e,t){var i=e/t;this.baseFov=Ke.a.clampVFOV(n.a.insideFOV,n.a.insideFOVMax,e,t);var o=Ke.a.getHFOVFromVFOV(n.a.insideFOV,e,t);for(var g in o>n.a.insideFOVMax?this.baseFov=Ke.a.getVFOVFromHFOV(n.a.insideFOVMax,e,t):this.baseFov=n.a.insideFOV,this.cameraControls.cameras){var a=this.cameraControls.cameras[g];a.fov=a.staticFov?a.staticFov:this.baseFov*(1/this.zoomLevel),a.updateAspect(i)}this.measureRulers.forEach((function(i){i.line.material.resolution.set(e,t)}))},ut.prototype.toJSON=function(){var e={};return this.cameraControls.activeControl?((e=this.cameraControls.activeControl.toJSON()).camera_mode=A.a.toInt(this.mode),this.isOutsideMode()?this.model.allFloorsVisible?e.floor_visibility=[]:e.floor_visibility=this.model.floors.list.map((function(e){return e.hidden?0:1})):A.a.PANORAMA&&(e.scan_id=this.currentPano.id),e):e},ut.prototype.zoomIncrementally=function(e){this.zoomLevel;this.zoomTo(this.zoomLevel+e)},ut.prototype.zoomInIncrementally=function(e){e=e||this.defaultZoomIncrement,this.zoomIncrementally(e)},ut.prototype.zoomOutIncrementally=function(e){e=e||-this.defaultZoomIncrement,this.zoomIncrementally(e)},ut.prototype.zoomBy=function(e){this.zoomTo(this.zoomLevel*e)},ut.prototype.zoomIn=function(){this.zoomBy(1+this.zoomSpeed)},ut.prototype.zoomOut=function(){this.zoomBy(1-this.zoomSpeed)},ut.prototype.zoomTo=function(e,t){if((t||n.a.zoom.enabled&&this.mode===A.a.PANORAMA&&this.zoomEnabled)&&(e<n.a.zoom.min&&(e=n.a.zoom.min),e>n.a.zoom.max&&(e=n.a.zoom.max),e>this.zoomLevel?(this.emit(_e.ZoomIn),e===n.a.zoom.max&&this.emit(_e.ZoomMax)):e<this.zoomLevel&&(this.emit(_e.ZoomOut),e===n.a.zoom.min&&this.emit(_e.ZoomMin)),this.cameraControls.activeControl)){var i=this.cameraControls.activeControl.camera;this.zoomLevel=e,i.fov=this.baseFov*(1/this.zoomLevel),i.updateProjectionMatrix(),this.zoomFov=i.fov}},ut.prototype.increaseZoomSpeed=function(){this.zoomSpeed=this.clampZoomSpeed(this.zoomSpeed+this.zoomSpeedAdjust)},ut.prototype.decreaseZoomSpeed=function(){this.zoomSpeed=this.clampZoomSpeed(this.zoomSpeed-this.zoomSpeedAdjust)},ut.prototype.clampZoomSpeed=function(e){return e<0?0:e},ut.prototype.activatePersistentZooming=function(e){this.zooming=e?1:-1},ut.prototype.deactivatePersistentZooming=function(){this.zooming=0},ut.prototype.zoomDefault=function(){this.zoomTo(1,!0)},ut.prototype.smoothZoomToDefault=function(e,t){var i,o=this.zoomLevel,g=function(e){e>1&&(e=1),i=o*(1-e)+e,this.zoomTo(i,!0)}.bind(this),a=function(){this.zoomDefault(),t&&window.setTimeout(t,50)}.bind(this);L.a.start(g,e,a,null,0,j.a[n.a.transition.blendEasing])},ut.prototype.updateZoomPano=function(){if(!this.panoRenderer.zoomPanoRenderingDisabled&&this.mode===A.a.PANORAMA){var e=this.currentPano;if(e){var t=this.zoomLevel>n.a.zoom.activationThreshold,i=!(this.flying&&this.nextPano&&this.nextPano!==this.currentPano)&&!this.isWarping(),o=t&&i;this.tileDownloader.tilePrioritizer.setZoomingActive(o),this.panoRenderer.setZoomingActive(o,e,!0);var g=function(e,t){this.panoRenderer.resetRenderStatus(e.id,!1,!0,this.qualityManager.getMaxNavPanoSize()),this.panoRenderer.clearAllQueuedUploadsForPano(e.id),this.panoRenderer.renderPanoTiles(e.id,null,!1,!1),e.setZoomed(t)}.bind(this);o&&!e.zoomed?(g(e,!0),this.panoRenderer.enableUltraHighQualityMode(function(){this.qualityManager.useUltraHighResolutionPanos&&!n.a.zoom.overridemax&&(n.a.zoom.max=V.a.ultraHighQualityMaxZoom),o&&g(e,!0)}.bind(this))):!t&&e.zoomed&&g(e,!1)}}},ut.prototype.listImagePanos=function(){var e=[],t=this;return this.model.images.forEach((function(i){if(i.metadata&&i.metadata.scan_id){var o=t.model.panos.get(i.metadata.scan_id);o&&!o.isLoaded("high")&&e.push(o)}})),e},ut.prototype.nextNotLoadedImage=function(){for(;this.imagePanos.length>0;){var e=this.imagePanos[0];if(!e.isLoaded("high"))return e;this.imagePanos.shift()}return null},ut.prototype.startWarp=function(e,t,i,o,g,n){return this.cameraControls.activeControl&&(this.cameraControls.activeControl.enabled=!1),o=o||et.a.MIDDLE,this.path.warpToPano(i,o,g,function(){this.cameraControls.activeControl&&(this.cameraControls.activeControl.enabled=!0),n&&n()}.bind(this)),!0},ut.prototype.warpToPanoById=function(e,t,i,o,g,n,a,A){return this.path.setWarpDestinationByPanoId(e,t)?this.startWarp(i,o,g,n,a,A):(p.a.warn("Player.warpToPanoById() -> Could not setWarpDestinationByPanoId()"),A&&A(),!1)},ut.prototype.warpToPanoByHeroIndex=function(e,t,i,o,g,n,a){return this.path.setWarpDestinationByHeroIndex(e)?this.startWarp(t,i,o,g,n,a):(p.a.warn("Player.warpToPanoByHeroIndex() -> Could not setWarpDestinationByHeroIndex()"),a&&a(),!1)},ut.prototype.warpToPano=function(e,t,i,o,g,n,a,A){return this.warpToPanoById(e.id,t,i,o,g,n,a,A)},ut.prototype.warpToNonPanoByHeroIndex=function(e,t){return this.path.setWarpDestinationByHeroIndex(e)?(this.path.warpToNonPano(t),!0):(p.a.warn("Player.warpToNonPanoByHeroIndex() -> Could not setWarpDestinationByHeroIndex()"),t&&t(),!1)},ut.prototype.aimTourCamera=function(e,t,i,o){return p.a.debug("Player.aimTourCamera("+e+") calling warpToPanoByHeroIndex("+e+")"),this.warpToPanoByHeroIndex(e,t,i,null,null,null,o)},ut.prototype.showPathToHeroLocation=function(e){this.path.setWarpDestinationByHeroIndex(e)&&this.path.brushToWarpPano(tt.a.STD,tt.a.BLACK)},ut.prototype.tourInterlude=function(e,t){this.history.invalidate(),this.path.discardSlow(),this.path.waitNextStep(e,function(){t&&t()}.bind(this))},ut.prototype.stopInterlude=function(){this.interruptAndFastForward(null,0)},ut.prototype.interruptAndFastForward=function(e,t){this.isWarping()&&this.emit(Je.a.WarpInterrupted,this.path.activeTransType,e,t),this.flying&&this.emit(Je.a.FlyingInterrupted),this.path.interruptAndFastForward(e,t)},U.a.player=new ut},function(e,t,i){"use strict";i(105),i(72),i(90);var o=i(0),g=i(2),n=i(4),a=i(9),A=i(7),r=i(1),s=i(5),l=Object.freeze({Show:0,Hide:1,Retain:2}),c=i(62),u=i(45),d=i(22),h={ActionInterrupted:"action.interrupted",TourStart:"tour.start",TourEnd:"tour.end",StartModeChange:"mode.startChange"},p=i(26),f=Object.freeze({Standard:0,Slow:1,Retain:2}),m=i(71),v=i(12),y=i(108),b=i(41);function w(){this.endlessLoop=r.a.warp.loop,this.clock=new THREE.Clock(!0),this.model=null,this.player=null,this.currentItem=null,this.destinationItem=null,this.tourIsPlaying=!1,this.nextFunc=null,this.onTheBus=!1,this.reachSource=null,this.interrupted=!1,this.nItems=0,this.currentScript=0,this.walkingSectionPaused=!1,this.C=Object.freeze({None:0,Moving:1,Aiming:2,Interlude:3}),this.I=Object.freeze({Forward:1,NoChange:0,Backwards:-1}),this.transitionStage=this.C.None}w.prototype=Object.create(EventEmitter.prototype),w.prototype.init=function(e,t){this.player=e,this.modelManager=t,this.updateModel(),this.resetAll(),this.bindEvents()},w.prototype.resetAll=function(){if(this.currentItem=null,this.destinationItem=null,this.tourIsPlaying=!1,this.transitionStage=this.C.None,this.nextFunc=null,this.onTheBus=!1,this.reachSource=null,this.interrupted=!1,this.model)switch(this.model.switch_scene_type){case 1:this.defaultWarpStyle=u.a.BLACK;break;case 2:this.defaultWarpStyle=u.a.WALK;break;case 3:this.defaultWarpStyle=u.a.STD;break;default:this.defaultWarpStyle=u.a.BLACK}else this.defaultWarpStyle=u.a.BLACK,n.a.warn('No model yet, choosing "'+this.defaultWarpStyle+'" transitions');this.resetSpecialTransition()},w.prototype.updateModel=function(){this.model=this.modelManager.getActiveModel(),this.model.heroLocations?this.nItems=this.model.heroLocations.length-1:this.nItems=0},w.prototype.bindEvents=function(){this.modelManager.on(m.a.ActiveModelChanged,this.updateModel.bind(this)),this.player.on(d.a.WarpInterruptedWithFlyTo,this.handleFlyToWarpInterruption.bind(this)),this.player.on(d.a.Move,this.handlePlayerMove.bind(this)),this.player.on(d.a.PanoChosen,this.handlePlayerPanoChosen.bind(this)),this.player.on(d.a.ModeChanged,this.handlePlayerModeChanged.bind(this)),this.player.on(d.a.InputStart,this.handlePlayerInputStart.bind(this)),this.player.on(d.a.FlyingStarted,this.handlePlayerFlyingStarted.bind(this))},w.prototype.handleFlyToWarpInterruption=function(e,t){e===u.a.WALK?(this.interrupt(c.a.NONE),this.pauseWalkingSection(),this.player.fastForwardActivePanoFlight()):this.transitionStage===this.C.Interlude&&(this.interrupt(c.a.NONE),t&&t())},w.prototype.handlePlayerMove=function(e){this.transitionStage===this.C.Interlude&&this.interrupt(c.a.NONE)},w.prototype.handlePlayerPanoChosen=function(e,t){this.intermediateState()||e.id===t.id||(this.onTheBus=!1,this.emit("update.controls"))},w.prototype.handlePlayerModeChanged=function(e,t){this.intermediateState()||e===t||(this.onTheBus=!1,this.emit("update.controls"))},w.prototype.handlePlayerInputStart=function(e){this.transitionStage===this.C.Interlude&&this.interrupt(c.a.NONE)},w.prototype.handlePlayerFlyingStarted=function(){this.clearWalkingSectionPaused()},w.prototype.describe=function(){return{nItems:this.nItems,currentItem:this.currentItem,destinationItem:this.destinationItem,tourIsPlaying:this.tourIsPlaying,onTheBus:this.onTheBus,endlessLoop:this.endlessLoop,viewMode:this.player.mode,inTransition:this._inTransition(),transitionStage:this.transitionStage}},w.prototype._inTransition=function(){return this.player.flying||this.player.isWarping()||this.player.mode===s.a.TRANSITIONING||this.tourIsPlaying},w.prototype.bounceable=function(){var e=this.clock.getDelta();return this.isInterrupted()||e<.9&&e>.01||this.player.flying&&!this.player.isWarping()},w.prototype.currentMoveDirection=function(){return null===this.currentItem||void 0===this.currentItem?this.I.Forward:this.destinationItem===this.currentItem?this.I.NoChange:this.destinationItem>this.currentItem?this.I.Forward:I.Backwards},w.prototype.clearPath=function(){this._inTransition()||this.player.path.discardPathObject()},w.prototype.allFloors=function(){var e=this.player.controls[this.player.mode];e&&e.emit("move","gui"),this.player.controls[s.a.PANORAMA].emit(p.a.InteractionGui,"floor-control"),this.model.toggleAllFloors()},w.prototype.actionComplete=function(e){var t=this.transitionStage;if(this.interrupted=!1,this.transitionStage=this.C.None,this.resetSpecialTransition(),null!==this.destinationItem&&this.setCurrentItem(this.destinationItem),this.tourIsPlaying||this.player.mode===s.a.PANORAMA&&this.player.currentPano.isAligned()&&this.model.fadePanoMarkers(null,null,{player:this.player}),this.emit("update.controls"),this.currentScript&&(this.model.enableTagMovie&&t===this.C.Interlude||this.model.enableTagMovie&&t===this.C.Aiming&&null===this.nextFunc))this.openTag();else if(this.nextFunc){var i=this.nextFunc;this.nextFunc=null,i()}},w.prototype.awaitCompletion=function(e,t){this.nextFunc=t,e()},w.prototype.updateSuccessFunction=function(e){this.nextFunc=e},w.prototype.interrupt=function(e,t){return!!this.wouldInterrupt()&&(this.tourIsPlaying&&(this.player.zoomEnabled=this.wasZoomEnabled),this.tourIsPlaying=!1,this.interrupted=!0,this.nextFunc=null,$("#drawer-container").show(),$("#gui").show(),A.a.isMobile()?$(".btn-cat-play").removeClass("cat-mob-pause").addClass("cat-mob-play"):$(".btn-cat-play").removeClass("cat-pc-pause").addClass("cat-pc-play"),this.emit(h.ActionInterruped),null!=e||(e=c.a.BEGINNING),this.player.interruptAndFastForward(e,t),!0)},w.prototype.wouldInterrupt=function(){return this.transitionStage!==this.C.None},w.prototype.intermediateState=function(){return this.transitionStage!==this.C.None},w.prototype.isInterrupted=function(){return this.interrupted},w.prototype.pauseWalkingSection=function(){this.walkingSectionPaused=!0},w.prototype.clearWalkingSectionPaused=function(){this.walkingSectionPaused=!1},w.prototype.autoTour=function(){r.a.nestscenes&&r.a.nestscenes.scenes&&r.a.nestscenes.scenes.length&&!r.a.nestscenes.scenes[0].script&&(r.a.basic.menu.scene_autoplay&&(r.a.warp.auto=0,$("#play").removeClass("play").addClass("pause"),G.playing=!0,$(".gui-floor").hide(),$(".rightbar").hide(),$("#userlogo").hide(),$("#page-view").hide(),$("#back-url").hide(),$(".indoordir, .indoorscale").hide(),$("#virgule, #barrageShow, #barrageCon").hide()),r.a.warp.auto>=0&&a.a.trigger({duration:1e3*Math.min(300,r.a.warp.auto),done:function(){this.playTour()}.bind(this),name:"_atr"}))},w.prototype.atDestinationPano=function(){if(!this.player.currentPano||null===this.destinationItem)return!1;var e=this.player.currentPano.id;if(void 0===e)return!1;var t=this.model.heroLocations;return null!==this.destinationItem&&void 0!==t[this.destinationItem]&&e==t[this.destinationItem].panoId},w.prototype.redirectToItem=function(e,t){if(null!=e)if(this.wouldInterrupt())if(this.player.mode!==s.a.TRANSITIONING){n.a.debug("Director.redirectToItem() -> Redirecting to "+e+" via "+t);var i=function(){a.a.setTimeout(function(){this.setDestinationItem(e),n.a.info("from redirectToItem"),this.goToDestination(!0,c.a.BEGINNING,r.a.warp.warpInterruptionRedirectTime,!1)}.bind(this),0)}.bind(this);this.interrupt(c.a.END,0),this.updateSuccessFunction(i)}else n.a.debug("Director.redirectToItem() -> Cannot redirect while transitioning.");else n.a.warn("Director.redirectToItem() -> Director cannot redirect if there is nothing to interrupt.");else n.a.warn("Director.redirectToItem() -> Redirecting to null item.")},w.prototype.useSpecialTransition=function(e){void 0!==e&&this.defaultWarpStyle!==u.a.BLACK&&n.a.debug("useSpecialTransition(): "+e),this.nextWarpStyle=this.defaultWarpStyle},w.prototype.resetSpecialTransition=function(){this.nextWarpStyle=this.defaultWarpStyle},w.prototype.arrivedAtDestination=function(e){if(this.player.flying||this.player.isWarping())n.a.warn("Cannot advance to interlude or aiming while player is flying or warping.");else{this.transitionStage=this.C.Aiming;var t=this.tourIsPlaying?this.tourInterlude.bind(this,this.nextItem(this.currentItem)):null;this.player.model.fadePanoMarkers(0),this.tour360view(),this.awaitCompletion(function(){this.resetSpecialTransition(),e?this.player.aimTourCamera(this.destinationItem,l.Hide,f.Slow,this.actionComplete.bind(this)):this.actionComplete()}.bind(this),t)}if(o.a.playGuider.isPlaying&&!o.a.playGuider.isPause||o.a.recordGuider.setPreviewStatus("start"),o.a.playGuider.canPlay||(o.a.playGuider.canPlay=!0),o.a.playGuider.wait&&o.a.playGuider.isPlaying&&(o.a.recordGuider.updateFragmentUI(o.a.playGuider.nodeIndex),o.a.playGuider.wait=!1),this.player.model&&this.player.model.chunks&&1==this.player.model.chunks[0].material.uniforms.blackout.value){for(var i=0;i<this.player.model.chunks.length;++i)this.player.model.chunks[i].material.uniforms.blackout.value=0;o.a.player.model.skybox.material.uniforms.blackout.value=0}else n.a.warn("模型不存在??");o.a.playGuider.flyToSingleCap=!1,"panorama"==this.player.mode&&(this.player.model.floorLogos[0].visible=!0,g.a.ifFish&&(this.player.currentTarget=this.player.currentPano.position.clone()),"black"==this.nextWarpStyle&&(g.a.ifFish&&this.player.tagManager.updatePosAtSphere("panorama",this.player.currentTarget),this.player.tagManager.updateVisible("panorama",this.player.currentPano))),this.player.panoVideoRenderer&&this.player.panoVideoRenderer.onPanoChange(this.player.currentPano)},w.prototype.toast=function(e){setTimeout((function(){document.getElementsByClassName("toast-wrap")[0].getElementsByClassName("toast-msg")[0].innerHTML=e;var t=document.getElementsByClassName("toast-wrap")[0];t.className=t.className.replace("toastAnimate",""),setTimeout((function(){t.className=t.className+" toastAnimate"}),10)}),10)},w.prototype.tour360view=function(){var e=this.model;if(this.player.currentPano&&2===this.player.currentPano.alignmentType){var t=e.language;this.toast(t.watchPr)}else $("#play").hasClass("play")},w.prototype.goToDestination=function(e,t,i,g){if(this.destinationItem=o.a.playGuider.nodeIndex,this.onTheBus=!0,this.emit("update.controls"),this.player.updateLastView(),g||!this.atDestinationPano())if(this.player.flying||this.player.isWarping())n.a.warn("Cannot go to new destination while player is flying or warping.");else{var a=v.a.getCapItem(this.destinationItem),A=null,r=null;1==b.a.playData[this.destinationItem].type&&(a=v.a.getCapItem(this.destinationItem,0)),n.a.info("goToDestination");var C=v.a.convertHighlight(a);if(new y.a(C).isPano()){var I=0===this.destinationItem||e?u.a.BLACK:this.nextWarpStyle;r=this.player.warpToPanoByHeroIndex.bind(this.player,this.destinationItem,l.Show,f.Slow,I,t,i,this.actionComplete.bind(this)),A=this.arrivedAtDestination.bind(this,!0)}else r=this.player.warpToNonPanoByHeroIndex.bind(this.player,this.destinationItem,this.actionComplete.bind(this)),A=this.arrivedAtDestination.bind(this,!1);this.transitionStage=this.C.Moving,this.model.fadePanoMarkers(0),this.awaitCompletion(function(){r()}.bind(this),A),this.emit("update.controls")}else this.arrivedAtDestination(!0)},w.prototype.tourInterlude=function(){if(this.model.fadePanoMarkers(0),this.emit("update.controls"),this.tourIsPlaying)return this.atEndOfTour()&&!this.endlessLoop?(this.stopTour(),void(this.player.mode===s.a.PANORAMA&&this.model.fadePanoMarkers(r.a.panorama.markerOpacity))):void this.awaitCompletion(function(){this.transitionStage=C.Interlude,this.player.tourInterlude(this.nextItem(this.currentItem),this.actionComplete.bind(this))}.bind(this),this.goNext.bind(this))},w.prototype.playTour=function(){var e=this.model,t=r.a.nestscenes.scenes;if(n.a.info("start play"),t.length>0&&1!==t[0].script&&1!==e.switch_scene_type&&$("#multiplier-speed").fadeIn(300),!this.bounceable())return this.tourIsPlaying?void n.a.info("tour is already playing"):void(this.wouldInterrupt()||(this.player.emit("tour_auto",this.defaultWarpStyle),this.reachSource="play",this.tourIsPlaying=!0,this.wasZoomEnabled=this.player.zoomEnabled,this.player.zoomEnabled=!1,this.resetSpecialTransition(),this.emit("update.controls"),this.player.enablePreRendering(),this.walkingSectionPaused?(this.clearWalkingSectionPaused(),n.a.info("from playTour"),this.goToDestination()):this.goNext()))},w.prototype.hideTourBar=function(){A.a.isMobile()?$(".btn-cat-play").removeClass("cat-mob-pause").addClass("cat-mob-play"):$(".btn-cat-play").removeClass("cat-pc-pause").addClass("cat-pc-play"),$("#gui").show()},w.prototype.stopTour=function(){n.a.info("stopTour"),this.emit("tourStop"),this.isInterrupted()||(this.tourIsPlaying&&(this.player.zoomEnabled=this.wasZoomEnabled),this.tourIsPlaying=!1,this.interrupt(),this.clearWalkingSectionPaused(),this.resetSpecialTransition(),this.emit("update.controls")),this.openTag(),this.hideTourBar()},w.prototype.goToHighlight=function(e){this.clearWalkingSectionPaused(),this.destinationItem=e,this.useSpecialTransition("Hilight"),this.goToDestination(),this.player.panoVideoRenderer&&this.player.panoVideoRenderer.onPanoChange(null)},w.prototype.goToHighlightByLocation=function(e){var t=this.model.heroLocations.findIndex((function(t){return!(!t.panoId||t.panoId!=e)}));if(!this.wouldInterrupt()){if(n.a.debug("<tour.goto "+t+">"),this.wouldInterrupt()&&(t===this.destinationItem?this.interrupt():this.redirectToItem(t,"goToHighlight")),this.isInterrupted())return;this.clearWalkingSectionPaused(),this.setDestinationItem(t),this.useSpecialTransition("Hilight"),this.goToDestination()}},w.prototype.prevHighlight=function(){this.bounceable()||(this.player.emit("tour_manual","prev"),this.interrupt(c.a.BEGINNING)||this.isInterrupted()||(this.clearWalkingSectionPaused(),this.reachSource="prev",this.goPrev()))},w.prototype.nextHighlight=function(){this.bounceable()||(this.player.emit("tour_manual","next"),this.interrupt(c.a.BEGINNING)||this.isInterrupted()||(this.clearWalkingSectionPaused(),this.reachSource="next",this.goNext()))},w.prototype.changeMode=function(e,t){var i=t||"gui";switch(this.wouldInterrupt()&&this.interrupt(),this.player.controls[e].emit("interaction."+i),this.clearWalkingSectionPaused(),e){case s.a.PANORAMA:this.player.insideMode();break;case s.a.DOLLHOUSE:case s.a.FLOORPLAN:this.player.flyToNewMode({mode:e})}},w.prototype.atEndOfTour=function(){return this.currentItem>=this.nItems-1},w.prototype.firstDestination=function(){if(this.nItems<=0)return null;for(var e=0;e<this.nItems;e++)if(this.model.images.list[e].script===this.currentScript)return e;return 0},w.prototype.finalDestination=function(){if(this.nItems<=0)return null;for(var e=this.nItems-1;e>=0;e--)if(this.model.images.list[e].script===this.currentScript)return e;return 0},w.prototype.goPrev=function(){this.tourAdvance(-1)},w.prototype.goNext=function(){null===this.currentItem&&(this.currentItem=this.finalDestination());for(var e,t=!1,i=this.currentItem+1;i<this.nItems;i++)if(this.model.images.list[i].script===this.currentScript){e=i-this.currentItem,t=!0;break}t||(e=this.nItems-this.currentItem),0===e&&(e=1),this.tourAdvance(e)},w.prototype.setDestinationItem=function(e){e>this.nItems&&(e=this.firstDestination()),this.destinationItem=e,this.emit("update.controls")},w.prototype.setCurrentItem=function(e){this.currentItem=e,this.emit("update.controls")},w.prototype.nextItem=function(e){return null===e?this.firstDestination():e>=this.nItems-1?this.endlessLoop?this.firstDestination():null:e+1},w.prototype.prevItem=function(e){return null===e?this.firstDestination():e<0?this.endlessLoop?this.lastDestination():null:e-1},w.prototype.tourAdvance=function(e){n.a.debug("tourAdvance("+e+")"),null===this.currentItem||void 0===this.currentItem?this.setDestinationItem(this.firstDestination()):this.setDestinationItem(this.currentItem+e),this.destinationItem<0?(this.setDestinationItem(this.finalDestination()),this.useSpecialTransition("reverse-looping to end")):this.destinationItem>=this.nItems&&(this.setDestinationItem(this.firstDestination()),this.useSpecialTransition("looping back to start")),this.goToDestination()},w.prototype.compassAdd=function(e){this.model.adjustCompass+=e,$("#nest_rotate_value").text(this.model.adjustCompass.toFixed(2))},w.prototype.compassReset=function(e){this.model.adjustCompass=e,$("#nest_rotate_value").text(this.model.adjustCompass.toFixed(2))},o.a.director=new w},function(e,t,i){"use strict";i(59),i(53),i(29),i(60),i(63),i(38);var o=i(0),g=i(5),n=i(173),a=i(2),A=i(7),r=i(61),C=i(6),I=i(4),s=(i(10),i(17)),l=(i(39),i(32)),c=i(48),u=i(16),d=i(3),h=new THREE.Mesh(new THREE.SphereBufferGeometry(.01,10,10),new THREE.MeshBasicMaterial({color:"#f0ff00",depthTest:!1,transparent:!0})),p=c.a.createFatLineMat({width:3,color:"#f0ff00"});function f(e){this.setPoints(e.points),this.state=e.state||"active",this.visiblePanos=e.visiblePanos,this.initVisiblePanos(),this.elem=$('<div class="ruler measure hide" data-name=""><div class="ruler-label"><div class="ruler-label-point"></div><span class="ruler-label-name">约0.5米</span></div></div>'),$("#hotspot .rulers").append(this.elem),this.text=e.text||"",this.length=Math.round(100*this.points[0].distanceTo(this.points[1]))/100,this.text=d.a.get("约")+this.length+d.a.get("米"),this.elem.find(".ruler-label-name").html(this.text),publicObjectSet.player.measureRulers.push(this);var t=new THREE.Object3D;t.name="measure",this.balls=[h.clone(),h.clone()],this.balls[0].position.copy(this.points[0]),this.balls[1].position.copy(this.points[1]),this.balls[0].renderOrder=this.balls[1].renderOrder=2,t.add(this.balls[0]),t.add(this.balls[1]);var i=[];i.push(this.points[0].x,this.points[0].y,this.points[0].z),i.push(this.points[1].x,this.points[1].y,this.points[1].z),this.line=c.a.createFatLine(i,{material:p}),t.add(this.line),this.boldLine=c.a.createBoldLine(this.points,{mat:new THREE.MeshBasicMaterial({wireframe:!0,opacity:ifTest?.3:0,transparent:!0,depthTest:!1,color:"#991111"}),type:"init"}),this.boldLine.parentRuler=this,t.add(this.boldLine),publicObjectSet.player.model.add(t),this.group=t,a.a.vrFishTemp&&(this.getPosAtSphere(publicObjectSet.player.currentPano.position),this.updateBoldLine())}f.prototype.setPoints=function(e){this.points=e},f.prototype.initVisiblePanos=function(){var e=this,t=publicObjectSet.player.model.roomInfo;if(t)for(var i=[new THREE.Vector2(this.points[0].x,this.points[0].z),new THREE.Vector2(this.points[1].x,this.points[1].z)],o=0;o<t.length;o++)for(var g=0,n=t[o].points.length;g<n;g++){var a=[{x:t[o].points[g].x,y:t[o].points[g].y},{x:t[o].points[(g+1)%n].x,y:t[o].points[(g+1)%n].y}];if(u.a.isLineIntersect(i,a)){t[o].panos.forEach((function(t){-1==e.visiblePanos.indexOf(t.id)&&e.visiblePanos.push(t.id)})),console.log("加入房间 "+o);break}}else console.log("无法获取roomInfo, MeasureRuler initVisiblePanos可能不准确")},f.prototype.remove=function(){var e=publicObjectSet.player.measureRulers.indexOf(this);publicObjectSet.player.measureRulers.splice(e,1),this.group.parent.remove(this.group),this.elem.remove()},f.prototype.updateBoldLine=function(){a.a.vrFishTemp?c.a.updateBoldLine(this.boldLine,this.fishPoints,"moveAndRotate"):c.a.updateBoldLine(this.boldLine,this.points,"update")},f.prototype.showOptionLabel=function(e,t){if(e){isMobile&&($(".bottomOverlay").removeClass("hide"),$(".bottomOverlay [data-name='measureDel']").removeClass("hide"),publicObjectSet.gui.permitTranMode(!1)),publicObjectSet.editor.chosenMeasureRuler=this;t=u.a.getFootPoint(t,this.points[0],this.points[1],!0);$("#hotspot .wallDesignOption div").removeClass("hide"),this.optionLabelPos=t,this.updateOptionPos()}else isMobile&&($(".bottomOverlay").addClass("hide"),$(".bottomOverlay [data-name='measureDel']").addClass("hide"),publicObjectSet.gui.permitTranMode(!0)),publicObjectSet.editor.chosenMeasureRuler=null,$("#hotspot .wallDesignOption div").addClass("hide"),this.optionLabelPos=null},f.prototype.updateOptionPos=function(){var e=l.a.getPos2d(this.optionLabelPos);e.trueSide?($("#hotspot .wallDesignOption div").removeClass("hide"),$("#hotspot .wallDesignOption div").css({left:e.pos.x+"px",top:e.pos.y+"px"}),e.vector.x>0?$("#hotspot .wallDesignOption").removeClass("right"):$("#hotspot .wallDesignOption").addClass("right")):$("#hotspot .wallDesignOption div").addClass("hide")},f.prototype.getCrossPoint=function(e,t){var i,o,g,n=publicObjectSet.player.domElement.clientWidth,a=publicObjectSet.player.domElement.clientHeight,A=(t.x-e.x)/(t.y-e.y),r=function(t){return A*(t-e.y)+e.x},C=function(t){return 1/A*(t-e.x)+e.y};return t.x>n||t.x<0?(g=t.x>n?n:0,t.y<0||t.y>a?((i=r(o=t.y<0?0:a))>n||i<0)&&(o=C(i=g)):o=C(i=g)):i=r(o=t.y<0?0:a),new THREE.Vector2(i,o)},f.prototype.getPosInCrossPoint=function(e,t){var i,o,g=publicObjectSet.player.domElement.clientWidth,n=publicObjectSet.player.domElement.clientHeight,a=(t.x-e.x)/(t.y-e.y);return((o=function(t){return 1/a*(t-e.x)+e.y}(i=t.x>=e.x?g:0))<0||o>n)&&(i=function(t){return a*(t-e.y)+e.x}(o=o<0?0:n)),new THREE.Vector2(i,o)},f.prototype.getPosAtSphere=function(e,t){this.fishPoints=[];var i=[];this.points.forEach(function(t,o){var g=l.a.getPosAtSphere(t,e);this.fishPoints.push(g),i.push(g.x,g.y,g.z),this.balls[o].position.copy(g);var n=C.a.skyRadius/e.distanceTo(t);this.balls[o].scale.set(n,n,n)}.bind(this)),c.a.moveFatLine(this.line,i)},f.prototype.getPosInScreen=function(e,t,i){var o=e.point.clone().add(t.point).multiplyScalar(.5),g=l.a.getPos2d(o);if(g.trueSide){var n=e.pos2d.trueSide?e.pos2d:t.pos2d;return g.inSight&&(g.pos=this.getPosInCrossPoint(n.pos,g.pos),g.vector=null),{result:"p1p2",p1:n,p2:g}}if(!(i>0)){var a=e.pos2d.trueSide?e:t;return this.getPosInScreen(a,{point:o,pos2d:g},++i)}},f.prototype.updateVisible=function(){!publicObjectSet.sceneRenderer.vrEnabled&&this.visiblePanos.indexOf(publicObjectSet.player.currentPano.id)>-1?this.state="active":this.state="unable"},f.prototype.update=function(){if("panorama"!=publicObjectSet.player.mode||"active"!=this.state)return this.elem.addClass("hide"),void(this.group.visible=!1);if(a.a.ifFish){if(!this.fishPoints)return;var e=l.a.getPos2d(this.fishPoints[0]),t=l.a.getPos2d(this.fishPoints[1])}else e=l.a.getPos2d(this.points[0]),t=l.a.getPos2d(this.points[1]);var i,o,g=publicObjectSet.player.domElement.clientWidth,n=publicObjectSet.player.domElement.clientHeight;if(!e.trueSide||!t.trueSide){if(!e.trueSide&&!t.trueSide)return void this.elem.addClass("hide");var A=this.getPosInScreen({point:a.a.ifFish?this.fishPoints[0]:this.points[0],pos2d:e},{point:a.a.ifFish?this.fishPoints[1]:this.points[1],pos2d:t},0);if(!A)return void this.elem.addClass("hide");e=A.p1,t=A.p2}var r=e.pos,C=t.pos;if(0!=r.distanceTo(C)){if(e.inSight&&t.inSight)i=(r.x+C.x)/2,o=(r.y+C.y)/2;else{var I,s;I=e.inSight?r.clone():this.getCrossPoint(C,r),s=t.inSight?C.clone():this.getCrossPoint(r,C);var c,u=I.clone().add(s).multiplyScalar(.5);if(i=u.x,o=u.y,u.x>g||u.x<0||u.y>n||u.y<0)return this.elem.addClass("hide"),void(this.group.visible=!1);if(C.x==r.x){if(C.y==r.y)return void console.warn("pos1和2一样???");c=C.y<r.y?(o-C.y)/(r.y-C.y):(C.y-o)/(C.y-r.y)}else c=C.x<r.x?(i-C.x)/(r.x-C.x):(C.x-i)/(C.x-r.x);if(c<0||c>1)return void this.elem.addClass("hide")}this.elem.removeClass("hide"),this.group.visible=!0,"left"!=this.dir&&i<g/2||"right"==this.dir?this.elem.find(".ruler-label").addClass("reverse"):this.elem.find(".ruler-label").removeClass("reverse"),this.elem.find(".ruler-label").css({left:i+"px",top:o+"px"})}else console.warn("ruler间距为0!")};var m,v=f,y=$("#toolTips"),b=!1,w=function e(t){var i=this;this.orientation=t.orientation,this.button=t.button,"down"==this.orientation?this.elem=$('<div class="container down hide"><div class="arrow"></div><div class="body"></div></div>'):this.elem=$('<div class="container up hide"><div class="body"></div><div class="arrow"></div></div>'),y.append(this.elem),this.motionTime=0,this.button.on("click",(function(){var e=(new Date).getTime();e-i.motionTime<200?console.log("触发过快"):(i.motionTime=e,y.removeClass("hide"),i.elem.removeClass("hide"),i.updatePos(),m=i,isMobile&&(publicObjectSet.gui.changeMapVisible(!1),$("#j-header-arrow").hasClass("down")&&$("#j-header-dropdown").click()),console.log("打开 tip"))})),b||($(document).on("mousedown",e.hide),$(window).on("touchstart",e.hide),$("#player").on("pointerdown",e.hide),$("#player").on("touchstart",e.hide),window.addEventListener("resize",e.hide),b=!0)};w.hide=function(e){if((!e||!$.contains(y[0],e.target))&&m){var t=(new Date).getTime();t-m.motionTime<200||(m.motionTime=t,m.elem.addClass("hide"),y.addClass("hide"),m=null,isMobile&&publicObjectSet.gui.changeMapVisible(),console.log("关闭 tip"))}},w.prototype.updatePos=function(){var e=this.button[0].getBoundingClientRect(),t=(e.left+e.right)/2;this.elem.find(".arrow").width();"down"==this.orientation?this.elem.css("top",e.bottom+13+"px"):this.elem.css("bottom",window.innerHeight-e.top+13+"px");var i=t-this.elem.width()/2;i=THREE.Math.clamp(i,10,window.innerWidth-10-this.elem.width()),this.elem.css("left",i+"px"),this.elem.find(".arrow").css("left",t-i+"px")};var x=w,E=function(e){this.player=e,this.bgMusicAudio=new Audio,this.bgMusicAudio.autoplay=!1,this.bgMusicAudio.loop=!0,this.bgMusicAudio.addEventListener("ended",function(){this.bgMusicAudio.play()}.bind(this)),this.audioPlayer={audio:null},this.videoPlayer={video:null},this.permitTran=!0};function P(e){"touchstart"===e.type&&e.preventDefault(),e.stopPropagation()}E.prototype.init=function(){a.a.app&&($("#back").removeClass("hide"),$("#back").css("opacity","0")),"en"==a.a.lang&&$("body").addClass("en"),isMobile&&(0==window.orientation||180==window.orientation?this.setNotch():this.setNotch(1),setTimeout(function(){window.addEventListener("resize",this.Orientation.bind(this)),this.Orientation()}.bind(this),700),window.addEventListener("orientationchange",this.Orientation.bind(this))),this.preDealPage();var e=function(e,t){e&&P(e),this.player.changeMode(g.a.PANORAMA,t)}.bind(this),t=function(e,t){e&&P(e),this.player.changeMode(g.a.FLOORPLAN,t)}.bind(this),n=function(e,t){e&&P(e),this.player.changeMode(g.a.DOLLHOUSE,t)}.bind(this),C=function(e,t){e&&P(e),$("nav").hasClass("unable")||($("header,header >*,footer,nav").addClass("unable"),$("#player,#map").css("pointer-events","none"),$("body").addClass("playingRecord"),o.a.playGuider.soundPlayer.isReady()?o.a.playGuider.start():Store.metadata.screencapVoiceSoundsync||Store.metadata.screencapVoiceSound||Store.metadata.screencapVoiceSrc?(o.a.playGuider.soundPlayer.on("loaded",(function(){$(".waiting").removeClass("showloading"),o.a.playGuider.start()})).on("error",(function(){$(".waiting").removeClass("showloading"),o.a.playGuider.start()})),"soundsync"==Store.metadata.screencapVoiceType&&Store.metadata.screencapVoiceSoundsync?($(".waiting").addClass("showloading"),o.a.playGuider.soundPlayer.url(/^http/.test(Store.metadata.screencapVoiceSoundsync)?Store.metadata.screencapVoiceSoundsync:"scene/"+Store.metadata.screencapVoiceSoundsync)):"sound"==Store.metadata.screencapVoiceType&&Store.metadata.screencapVoiceSound?($(".waiting").addClass("showloading"),o.a.playGuider.soundPlayer.url(/^http/.test(Store.metadata.screencapVoiceSound)?Store.metadata.screencapVoiceSound:"scene/"+Store.metadata.screencapVoiceSound)):"file"==Store.metadata.screencapVoiceType&&Store.metadata.screencapVoiceSrc?($(".waiting").addClass("showloading"),o.a.playGuider.soundPlayer.url(/^http/.test(Store.metadata.screencapVoiceSrc)?Store.metadata.screencapVoiceSrc:"scene/"+Store.metadata.screencapVoiceSrc)):o.a.guider.play()):o.a.guider.play())}.bind(this);if($("nav ._3d").parent().on("click",n),$("nav ._2d").parent().on("click",t),$("nav ._roam").parent().on("click",e),$("nav ._tour").parent().on("click",C),this.modeChange={panorama:e,dollhouse:n,floorplan:t},$(".bottRight a[data-type='vr']").on("click",(function(){if(!isMobile&&edit)return o.a.gui.showInfo({title:d.a.get("请在手机展示页面观看VR效果"),time:3e3})})),$('.bottRight [data-type="measure"]').click((function(){edit&&o.a.gui.showInfo({title:d.a.get("编辑模式下无法使用测距功能,请在展示页面操作。"),time:3e3})})),$('nav.left [data-type="measure"]').parent().click((function(){edit&&o.a.gui.showInfo({title:d.a.get("编辑模式下无法使用测距功能,请在展示页面操作。"),time:3e3})})),isMobile&&edit&&a.a.app)var I=i(181).default;window.Back=function(){if(o.a.sceneRenderer&&o.a.sceneRenderer.vrEnabled)o.a.gui.vrModeChange();else if(a.a.app){if(edit&&o.a.editor.atPanel)return void I.exitEvent(o.a.editor.atPanel,"cancel");var e=o.a.tagManager.activeTag||edit&&o.a.editor.markTag;e&&e.billboard.close(),o.a.playGuider.soundPlayer.remove(),o.a.playGuider.musicPlayer.remove(),Object(r.a)("Back")}},isMobile&&$("#back").on("click",window.Back),$("#gui-parent #videoPlayer .close").on("click",function(){this.playVideo(null,!1)}.bind(this)),this.infoGuiBind(),!isMobile&&edit&&(A.a.detectFirefox||A.a.detectIE)&&$("body").addClass("widthScroll")},E.prototype.initMeasure=function(){console.log("initMeasure");var e={};if(o.a.editor=e,Store.metadata.measureVisi){var t=isMobile?$(".bottomOverlay [data-name='measure'] button[type='submit']"):$("#btmButtons .confirmSnap"),i=isMobile?$(".bottomOverlay [data-name='measure'] button[type='cancel']"):$("#btmButtons .cancel");s.a.init(e,this.player),s.a.editType="measure",s.a.measureStep=0,(isMobile?1==this.selections?$(".btn-right"):this.selectionsTip.elem.find("#measureBtn"):$("#BottNav .bottRight [data-type='measure']")).removeClass("hide").on("click",function(){this.player.FlyToMode("panorama",function(){if(!this.player.flying&&!this.player.flyingToTag){s.a.enterPosView(),s.a.selectStyle("measurePoint"),this.player.tagManager.hideAllTags(),this.player.measureRulers.forEach((function(e){e.state="unable"})),e.chosenMeasureRuler&&e.chosenMeasureRuler.showOptionLabel(!1);try{o.a.guider.playOrStopGuide(!1)}catch(e){console.log(e)}isMobile&&(o.a.gui.permitTranMode(!1),a.a.vrFishTemp&&this.player.changeFishMode(!1),$(".bottomOverlay").removeClass("hide"),$(".bottomOverlay [data-name='measure']").removeClass("hide"),this.player.model.panos.list.forEach((function(e){e.marker.material.opacity=0})),$("header").addClass("hide"),x.hide()),t.text(d.a.get("确定起点")+"(1/2)").addClass("unable"),i.removeClass("hide"),$("#player").css("cursor","crosshair")}}.bind(this))}.bind(this)),$(".staticSpot .inside").addClass("small");var g=function(){var t=this;s.a.measureTag1&&(s.a.measureTag1.shineSpot("end"),s.a.measureTag1.remove()),s.a.measureTag2&&s.a.measureTag2.remove(),e.markTag&&this.player.model.tags[e.markTag.sid]&&e.markTag.remove(),s.a.measureTag1=s.a.measureTag2=e.markTag=null,this.permitTranMode(!0),i.addClass("hide"),s.a.measureStep=0,this.player.tagManager.showAllTags(),isMobile&&(o.a.gui.permitTranMode(!0),a.a.vrFishTemp&&this.player.changeFishMode(!0),$(".bottomOverlay").addClass("hide"),$(".bottomOverlay [data-name='measure']").addClass("hide"),$("header").removeClass("hide"),this.player.model.panos.list.forEach((function(e){e.marker.material.opacity=.3}))),this.player.measureRulers.forEach((function(e){e.updateVisible(),"active"==e.state&&(a.a.ifFish&&e.getPosAtSphere(t.player.currentTarget),e.updateBoldLine())})),setTimeout((function(){t.player.panoVideoRenderer&&"panorama"==t.player.mode&&t.player.panoVideoRenderer.onPanoChange(t.player.currentPano)}),10),$("#player").css("cursor","")}.bind(this);t.on("click",function(){if(!isMobile||!o.a.player.flying)if(0==s.a.measureStep)s.a.confirmPos(),e.markTag.createMarkGroup({type:"measure",addHeightLabel:!0,color:"#ffffff",size:.15,stemLineColor:"#09e1c0"}),s.a.measureTag1=e.markTag,setTimeout((function(){s.a.measureTag1.markGroup.heightLabel.update()}),100),e.markTag.shineSpot("start"),e.markTag=null,s.a.enterPosView(),t.text(d.a.get("确定终点")+"(2/2)").addClass("unable"),$("#player").css("cursor","crosshair"),s.a.measureStep=1,this.showInfo(d.a.get("起点确定完毕,请定位终点"));else{s.a.confirmPos(),s.a.measureTag2=e.markTag;var i=s.a.measureTag1.visiblePanos.concat(s.a.measureTag2.visiblePanos.filter((function(e){return-1==s.a.measureTag1.visiblePanos.indexOf(e)})));console.log(s.a.measureTag1.visiblePanos),console.log(s.a.measureTag2.visiblePanos),new v({points:[s.a.measureTag1.position,s.a.measureTag2.position],visiblePanos:i,state:"active"}),g()}}.bind(this)),i.on("click",(function(){isMobile&&o.a.player.flying||e.setSpotPos&&(s.a.exitHotPosEdit(),g())})),isMobile?($(".bottomOverlay [data-name='measureDel'] [type='cancel']").on("click",(function(){e.chosenMeasureRuler.remove(),e.chosenMeasureRuler.showOptionLabel(!1)})),$(".bottomOverlay [data-name='measureDel'] [type='submit']").on("click",(function(){e.chosenMeasureRuler.showOptionLabel(!1)}))):$("#hotspot .wallDesignOption div").on("click",(function(){e.chosenMeasureRuler.remove(),e.chosenMeasureRuler.showOptionLabel(!1)})),e.update=function(){s.a.renderSpotArea()},e.setSize=function(e,t){s.a.setPlayerBSize()},o.a.sceneRenderer.addComponent(e)}},E.prototype.initInformation=function(){var e=Store.metadata;e.version=parseInt(e.version||0),e.sceneType=parseInt(e.sceneType),0!==Store.metadata.showLogoBottom&&$(".bottom-logo").find("i").removeClass("hide"),$(".model-title").html(e.sceneName||d.a.get(a.a.defaultName)),$(".model-title2").text(e.sceneName||d.a.get(a.a.defaultName)),$("head title").html(e.sceneName||d.a.get(a.a.defaultName)),$("#j-header-dropdown #j-header-scenename").text(e.sceneName||d.a.get(a.a.defaultName)),$("#j-header-dropdown #j-header-scenetitle").text(e.sceneName||d.a.get(a.a.defaultName)),$("#j-header-dropdown #j-header-scenedesc").html(e.sceneDec||""),"zhiHouse"==a.a.applicationName?$("#j-header-dropdown i.typeLogo").addClass("icon_zfb_logo"):$("#j-header-dropdown i.typeLogo").addClass(C.a.SCENETYPE_index[e.sceneType][1]),isMobile||1!=e.vrVisi&&null!=e.vrVisi||($("#BottNav [data-type='vr']").removeClass("hide"),edit||(this.vrTip=new x({oritation:"up",button:$("#BottNav [data-type='vr']")}),this.vrTip.elem.find(".body").append($('<div class="QRCodeImg"></div><div style="text-align: center;">'+d.a.get("手机扫一扫分享")+"<br>"+d.a.get("还可体验VR模式")+"</div>")),this.vrTip.elem.find(".QRCodeImg").css("background-image",'url("sceneQRcode/'+a.a.projectNum+("en"==a.a.lang?"_en":"")+".png?m="+(new Date).getTime()+'")'))),1!=e.mapVisi&&null!=e.mapVisi&&($("#map").attr("visi","0"),this.changeMapVisible(!1)),null==e.floorLogoSize&&(e.floorLogoSize=100),e.floorLogoSize=THREE.Math.clamp(e.floorLogoSize,20,180),edit&&isMobile&&(o.a.guider.initBGM(),o.a.guider.playBGM()),e.sceneDec&&"<p></p>"!=e.sceneDec&&"<p><br></p>"!=e.sceneDec&&$("#j-header-dropdown").removeClass("noTouch")};var T,D,M,S,R,k,O,L,B,F,j,N,H=(new Date).getTime();E.prototype.progressUpdate=function(e,t){e=.8*e*100,e=Math.max(Math.min(e,100),0),$("#gui-parent #loadProgress .progressInside").css("width",e+"%"),I.a.info("pro1:"+(t||"")+":"+e),e;var i=(new Date).getTime();I.a.info(i),H&&I.a.info("delta : "+(i-H)),H=i},E.prototype.loadFinish=function(){$("#gui-loading").fadeOut(500),$("#player").fadeIn(500),edit?isMobile&&$("#app").fadeIn():isMobile?$("#app").fadeIn():($(".introduce-top").fadeIn(),$("#app header").addClass("hide")),Store.set("isResourceLoaded",!0),isMobile&&this.Orientation.bind(this)()},E.prototype.setMoreBtn=function(e){var t=this;if(isMobile){var i=$("header .btn-right"),C=edit?$("nav ._vr").parent():$("header .btn-right");if(!edit)if(this.selections=1,e&&this.selections++,Store.metadata.measureVisi&&this.selections++,(Store.metadata.vrVisi||null==Store.metadata.vrVisi)&&this.selections++,this.selections>0&&($(".btn-right").removeClass("hide"),$(".btn-right i").addClass("icon_more_1"),this.selectionsTip=new x({orientation:"down",button:$(".btn-right")}),this.selectionsTip.elem.addClass("moreSelection"),e&&this.selectionsTip.elem.find(".body").append($('<div id="bgmBtn"><i class="iconfont icon_music"></i><span class="play">'+d.a.get("开启音乐")+'</span><span class="pause">'+d.a.get("关闭音乐")+"</span></div>")),Store.metadata.measureVisi&&this.selectionsTip.elem.find(".body").append($('<div id="measureBtn"><i class="iconfont icon_staff"></i><span>'+d.a.get("测距工具")+"</span></div>")),Store.metadata.vrVisi&&(this.selectionsTip.elem.find(".body").append($('<div id="vrBtn"><i class="iconfont icon_vr"></i><span>'+d.a.get("VR模式")+"</span></div>")),C=this.selectionsTip.elem.find($("#vrBtn"))),this.selectionsTip.elem.find(".body").append($('<div id="share"><i class="iconfont icon_share"></i><span>'+d.a.get("分享")+"</span></div>")),i=this.selectionsTip.elem.find($("#share")),a.a.app||0===Store.metadata.showLogoBottom||(this.selectionsTip.elem.find(".body").append($('<div style="margin-top:5px;border-top:solid 1px #000;border-bottom:solid 1px #666;height:0;line-height:0"></div>')),"en"==a.a.lang?this.selectionsTip.elem.find(".body").append($('<div id="homeBtn"><a class="iconfont iconhengbiaoEN" href="https://www.4dkankan.com" style="font-size:110px"></a></div>')):this.selectionsTip.elem.find(".body").append($('<div id="homeBtn"><a class="iconfont iconhengbiaoCN" href="https://www.4dkankan.com"></a></div>')))),a.a.app){var I=navigator.userAgent||navigator.vendor||window.opera;if(/android/i.test(I)&&A.a.urlHasValue("android"))i.on("click",function(){this.player.flying||Object(r.a)("Share")}.bind(this));else{var s=new n.a({type:"share"});i.on("click",function(){this.player.flying||s.open()}.bind(this))}}else if(A.a.detectWeixin())i.on("click",(function(){$("#weixinShareTip").removeClass("hide")})),$(document).on("mousedown",(function(e){$("#weixinShareTip").addClass("hide")})),$(window).on("touchstart",(function(e){$("#weixinShareTip").addClass("hide")})),$("#weixinShareTip").on("pointerdown",(function(e){$("#weixinShareTip").addClass("hide")})),$("#weixinShareTip").on("touchstart",(function(e){$("#weixinShareTip").addClass("hide")}));else{var l=new ClipboardJS($("#shareLink button[type='submit']")[0]),c=location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")+"/showProPC.html?m="+a.a.projectNum;$("#shareLink button[type='submit']").attr("data-clipboard-text",c),$("#shareLink p").text(c),l.on("success",(function(){t.showInfo(d.a.get("复制成功!")),$("#shareLink").addClass("hide")})),l.on("error",(function(){t.showInfo(d.a.get("复制失败。请直接复制地址栏连接。"))})),i.on("click",(function(){$("#shareLink").removeClass("hide")})),$("#shareLink button[type='cancel']").on("click",(function(){$("#shareLink").addClass("hide")}))}(Store.metadata.vrVisi||null==Store.metadata.vrVisi)&&C.on("click",function(){a.a.app||$("#back").removeClass("hide"),o.a.player.FlyToMode(g.a.PANORAMA,this.vrModeChange.bind(this)),x.hide()}.bind(this))}},E.prototype.vrModeChange=function(){var e=this;if(!this.player.flying&&!this.player.flyingToTag)if(o.a.sceneRenderer.vrEnabled)a.a.vrFishTemp&&this.player.changeFishMode(!0),o.a.sceneRenderer.vrEnabled=!1,$("#app").removeClass("hide"),!a.a.app&&$("#back").addClass("hide"),A.a.exitFullscreen(),this.closeAskBox(),this.player.tagManager.showAllTags(),"zhiHouse"==a.a.applicationName?Object(r.a)("vrEnd"):Object(r.a)("VRMode0"),o.a.guider.scroller&&o.a.guider.scrollUpdate(),this.player.measureRulers.forEach((function(t){t.updateVisible(),"active"==t.state&&(a.a.ifFish&&t.getPosAtSphere(e.player.currentTarget),t.updateBoldLine())}));else{a.a.vrFishTemp&&this.player.changeFishMode(!1),o.a.sceneRenderer.vrEnabled=!0,$("#app").addClass("hide"),A.a.requestFullscreen($("body")[0]),this.player.guider.playOrStopGuide(!1),!a.a.app&&$("#back").removeClass("hide");for(var t=0,i=this.player.model.chunks.length;t<i;t++)this.player.model.chunks[t].visible=!1;this.player.tagManager.hideAllTags(),"zhiHouse"==a.a.applicationName?Object(r.a)("vr"):Object(r.a)("VRMode1"),this.player.measureRulers.forEach((function(e){e.state="unable"}))}},E.prototype.switchNav=function(e,t){for(var i=$("nav li span"),o=0;o<i.length;o++)e==$(i[o]).data("type")?$(i[o]).removeClass("active"):t==$(i[o]).data("type")&&$(i[o]).addClass("active")},E.prototype.changeMapVisible=function(e){null==e&&(e=!0,(!this.permitTran||"0"==$("#map").attr("visi")||!this.player.modeTran||"panorama"!=this.player.modeTran.split("-")[1]||edit&&o.a.editor.mainDesign.editing||"1"==$("#map").attr("noData")||isMobile&&$("#j-header-dropdown>i").hasClass("down"))&&(e=!1)),e?$("#map").removeClass("hide"):$("#map").addClass("hide")},E.prototype.changeCadVisible=function(e,t){var i=o.a.editor;null==e&&(e=!(!i.cadImgVisi||i.mainDesign.editing||this.player.setPanoVisible||this.player.setTagVisible));var g=this.player.cameraControls.controls.floorplan.plane;g&&g instanceof THREE.Mesh&&(g.visible=!!e);var n=!e&&this.player.modeTran&&"floorplan"==this.player.modeTran.split("-")[1]&&!i.mainDesign.editing;this.player.defaultRoomLabels.forEach((function(t){"plan"==t.type&&(t.enable=n,t.dontShow=!!e,t.update())}))},E.prototype.showVrHorizonTip=function(e){e?($("#vrTipCover .inner").removeClass("animate"),""==$("#vrTipCover .inner .phone")[0].src&&($("#vrTipCover .inner .phone")[0].src=C.a.imgRoot+"phone-vr.svg"),setTimeout((function(){$("#vrTipCover .inner").addClass("animate"),$("#vrTipCover").css("opacity","1"),$("#vrTipCover").removeClass("hide"),this.vrHorizonTipTimer&&clearTimeout(this.vrHorizonTipTimer),this.vrHorizonTipTimer=setTimeout((function(){$("#vrTipCover").css("opacity","0"),setTimeout((function(){$("#vrTipCover .inner").removeClass("animate"),$("#vrTipCover").addClass("hide")}),300)}),4e3)}),10)):$("#vrTipCover").addClass("hide")},E.prototype.preDealPage=function(){if(isMobile)for(var e=[$("#app"),$(".resultBox"),$(".waiting")],t=0;t<e.length;t++)e[t].on("touchmove",(function(e){e.preventDefault()}))},E.prototype.infoGuiBind=function(){$("#j-header-dropdown").on("click",function(e){$(e.currentTarget).find(">i").toggleClass("down"),$(e.currentTarget).find(">div").toggleClass("show"),isMobile&&(edit&&($(e.currentTarget).find(">i").hasClass("down")?$("nav").addClass("hide"):this.permitTran&&$("nav").removeClass("hide")),this.changeMapVisible())}.bind(this)),isMobile||edit||a.a.openToLinkScene||("en"==a.a.lang?$("#j-header-dropdown .desc>div").append($('<div id="home"><a class="iconfont iconhengbiaoEN" href="https://www.4dkankan.com"></a></div>')):$("#j-header-dropdown .desc>div").append($('<div id="home"><a class="iconfont iconhengbiaoCN" href="https://www.4dkankan.com"></a></div>')))},E.prototype.setNotch=function(e){if($("header").css("top",""),$("#back").css("top",""),edit&&($("nav.left").css("left",""),$("footer > div > div").css("padding-left",""),$("footer .tmpl-information, footer .tmpl-hotpoint.step-3").css("padding-top","")),A.a.islongPhone()||a.a.notch)if($("footer .layout").css("padding-bottom","17px"),a.a.notch){var t=a.a.notch/window.devicePixelRatio;e?edit&&($("footer > div > div").css("padding-left",t/2+"px"),$("nav.left").css("left",t/2+"px")):($("header").css("top",t+"px"),$("#back").css("top",t+"px"),edit&&$("footer .tmpl-information, footer .tmpl-hotpoint.step-3").css("padding-top",t+"px"))}else e?window.innerWidth/window.innerHeight>screen.width/screen.height-.2&&($("header").css("top",""),$("#back").css("top",""),edit&&($("nav.left").css("left","1rem"),$("footer > div > div").css("padding-left","1rem"))):window.innerHeight/window.innerWidth>screen.height/screen.width-.2&&($("header").css("top","1rem"),$("#back").css("top","1rem"),edit&&$("footer .tmpl-information, footer .tmpl-hotpoint.step-3").css("padding-top","1rem"));if(a.a.app){var i=$("#back")[0].getBoundingClientRect(),o={BackBtnInfo:{left:i.left,top:i.top,radius:i.width/2}};A.a.detectAndroid()?Object(r.a)(JSON.stringify(o)):Object(r.a)(o)}},E.prototype.Orientation=function(){var e,t=this,i=o.a.player;if(null!=window.orientation){if("floorplan"==i.mode){var g=3;setTimeout((function t(){"floorplan"==i.mode&&(console.log(i.cameraControls.activeControl.camera.aspect),e!=i.cameraControls.activeControl.camera.aspect&&(i.switchCameraMode("floorplan"),e=i.cameraControls.activeControl.camera.aspect),--g>0&&setTimeout(t,200))}),300)}window.orienPromise&&(clearTimeout(window.orienPromise),window.orienPromise=null),0==window.orientation||180==window.orientation?(window.orienPromise=setTimeout(function(){1!==t.prevState&&(t.prevState=1,$("#tag-billboards").removeClass("horizontal"),window.horizontal=!1,window.navigator.userAgent.indexOf("HUAWEIDUK-AL20")>-1?$("body").css({height:"100%",top:""}):$("body").css({height:window.innerHeight+"px",top:""}),i&&i.tagManager&&i.tagManager.activeTag&&!i.tagManager.activeTag.billboard.resizeImg()&&i.tagManager.activeTag.billboard.applyOrientation(i.tagManager.activeTag.billboard.orientation),this.setNotch(),I.a.info("竖屏"))}.bind(this),A.a.detectIOS()?500:800),o.a.sceneRenderer&&(o.a.sceneRenderer.vrSplitScreen=!1)):(window.orienPromise=setTimeout(function(){if(2!==t.prevState){t.prevState=2,$("#tag-billboards").addClass("horizontal"),window.horizontal=!0,i&&i.tagManager&&i.tagManager.activeTag&&!i.tagManager.activeTag.billboard.resizeImg()&&i.tagManager.activeTag.billboard.applyOrientation(i.tagManager.activeTag.billboard.orientation);var e=window.pageYOffset,o=$("body").height(),g=window.innerHeight;I.a.info("横屏"),I.a.info("bodyHeight"+o),I.a.info("winHeight"+g),I.a.info("winOffsetY"+e),window.navigator.userAgent.indexOf("HUAWEIDUK-AL20")>-1?$("body").css({height:"100%",top:""}):g!=o||0!=e?$("body").css({height:g+"px",top:e+"px"}):$("body").css({height:"",top:e+"px"}),this.setNotch(1)}}.bind(this),500),o.a.sceneRenderer&&(o.a.sceneRenderer.vrSplitScreen=!0))}else I.a.info("no orientation"),setTimeout((function(){window.innerWidth<=window.innerHeight?($("#tag-billboards").removeClass("horizontal"),window.horizontal=!1,i.tagManager&&i.tagManager.activeTag&&!i.tagManager.activeTag.billboard.resizeImg()&&i.tagManager.activeTag.billboard.applyOrientation(i.tagManager.activeTag.billboard.orientation)):($("#tag-billboards").addClass("horizontal"),window.horizontal=!0,i.tagManager&&i.tagManager.activeTag&&!i.tagManager.activeTag.billboard.resizeImg()&&i.tagManager.activeTag.billboard.applyOrientation(i.tagManager.activeTag.billboard.orientation))}),30)},E.prototype.showWaiting=(T={},function(e,t){console.log("showWaiting "+e+" -- "+t),e?(t&&(T[t]=1),$(".waiting").addClass("showloading")):t?(delete T[t],0==Object.keys(T).length&&$(".waiting").removeClass("showloading")):(console.log("showWaiting has no name"),T={},$(".waiting").removeClass("showloading"))}),E.prototype.showAskBox=(D=$(".dialog_box"),M=D.find(">div"),S=M.find(".icon"),R=M.find(".tips .title"),k=M.find(".tips .content"),O=M.find(".buttons"),L=["delAsk-bg.png","ok-bg.png"],B=[],F=function(e){e.target==D[0]&&j()},j=function(){D.addClass("hide"),$(document).off("click",F)},E.prototype.closeAskBox=j,function(e,t,i){if(i=i||{},R.html(e),k.html(t),S.css("background-image",'url("'+C.a.imgRoot+L[null!=i.img?i.img:0]+'")'),O.html(""),D.removeClass("hide"),i&&i.clickBlankToHide&&$(document).on("click",F),B=null==i||null==i.btns?[{text:d.a.get("确定"),type:"submit"}]:i.btns,M.find(".header a").remove(),i.donClose);else{var o=$("<a></a>");M.find(".header").append(o),o.on("click",(function(){for(var e=0;e<B.length;e++)if("cancel"==B[e].type){B[e].fuc&&B[e].fuc();break}j()}))}for(var g=0;g<B.length;g++){var n=$('<button class="'+B[g].type+' innerBtn">'+B[g].text+"</button>");n.on("click",function(e){return function(){B[e].fuc?B[e].wait?B[e].fuc()&&j():(B[e].fuc(),j()):j()}}(g)),O.append(n)}}),E.prototype.showInfo=function(e){var t=$(".resultBox"),i=e.title||e||d.a.get("保存成功");t.children().eq(0).html(i);var o=e.time||THREE.Math.clamp("en"==a.a.lang?50*i.length:130*i.length,1300,5e3);e.time||console.log("showtime "+o),this.showInfoTimer&&clearTimeout(this.showInfoTimer),t.removeClass("animate"),setTimeout(function(){t.css({"-webkit-animation-duration":o+"ms","animation-duration":o+"ms"}),t.removeClass("hide"),t.addClass("animate"),e.dontInteract?t.css("pointer-events","auto"):t.css("pointer-events","none"),this.showInfoTimer=setTimeout(function(){t.removeClass("animate"),t.addClass("hide"),this.showInfoTimer=null}.bind(this),o+20)}.bind(this),50)},E.prototype.textScrollSet=function(e,t){if(e){var i=0;e.addEventListener("touchstart",(function(e){i=e.changedTouches[0].clientY})),e.addEventListener("touchmove",(function(t){var o,g;g=i,(o=e)&&(0===o.scrollTop&&t.changedTouches[0].clientY>g||o.scrollTop+o.clientHeight-o.scrollHeight==0&&t.changedTouches[0].clientY<g)||t.stopPropagation()}))}},E.prototype.textKeyBoardEvent=function(e){e.on("blur",(function(e){var t=function(){var e=window.pageYOffset,t=$("body").height(),i=window.innerHeight;i==t&&0==e||$("body").css({height:i+"px",top:e+"px"})};setTimeout(t,70),setTimeout(t,150),setTimeout(t,500)}))},E.prototype.audioAutoPlay=function(e,t,i){if(e)if(e.autoplay=!0,e.play(),console.log("audio.paused "+e.paused),e.paused){var g=function(){console.log("remove"),window.removeEventListener("click",n),$("#player")[0].removeEventListener("click",n),document.removeEventListener("touchstart",n),document.removeEventListener("mousedown",n),$("#player")[0].removeEventListener("touchstart",n)},n=function(){console.log("准备播放"),console.log("type"+i),"bgm"==i?this.bgMusicPlay?(e.play(),e.paused||(console.log("播放了"),t&&t(),g())):g():(console.log("专业canPlay",o.a.playGuider.isPlaying),o.a.playGuider.isPlaying?(o.a.guider.tourSoundPlay(!0,!0),e.paused||(console.log("播放了"),t&&t(),g())):(e.play(),setTimeout((function(){e.pause()}),1)))}.bind(this);if(A.a.detectWeixin()){var r=function(){WeixinJSBridge.invoke("getNetworkType",{},(function(e){n()}),!1)};"undefined"!=typeof WeixinJSBridge?(console.log("WeixinJSBridge !==undefined"),r()):document.addEventListener("WeixinJSBridgeReady",r)}else a.a.app&&A.a.detectAndroid()?(window.addEventListener("click",n),$("#player")[0].addEventListener("click",n)):(document.addEventListener("touchstart",n),document.addEventListener("mousedown",n),$("#player")[0].addEventListener("touchstart",n))}else t&&t(),"preload"==i&&e.pause()},E.prototype.bgmPlayState=function(e,t){},E.prototype.playAudio=function(e,t){var i=function(e,t,i){t?(e&&(e.play(),e.billboard&&$(e.billboard.div).find(".audio-waveBtn").addClass("play")),i&&(edit&&e.billboard&&o.a.editor.markTag==e.billboard.tag&&$(".hotpointDetail .audio .playBox>div:first-child").addClass("playing"),o.a.playGuider.musicPlayer.pause(!0))):(e&&(e.pause(),e.billboard&&$(e.billboard.div).find(".audio-waveBtn").removeClass("play")),i&&(edit&&e.billboard&&o.a.editor.markTag==e.billboard.tag&&$(".hotpointDetail .audio .playBox>div:first-child").removeClass("playing"),o.a.playGuider.isPlaying||o.a.playGuider.musicPlayer.resume()))}.bind(this);this.audioPlayer.audio?e?this.audioPlayer.audio!=e?t?(i(this.audioPlayer.audio,!1,!1),i(e,!0,!0)):i(this.audioPlayer.audio,!1,!0):i(e,t,!0):i(this.audioPlayer.audio,!1,!0):e&&t&&i(e,!0,!0),this.audioPlayer.audio=e},E.prototype.playVideo=(N=$("#gui-parent #videoPlayer"),function(e,t){if(t){if(o.a.recordGuider.onRecording)return void this.showInfo({title:d.a.get("导览录制中,不能播放"),time:1500});N.removeClass("hide"),setTimeout((function(){!function(){var e=N.find(".close").width()/2,t=isMobile?1.7071065*e:2*e,i=($("#player").width()-N.find("video").width())/2-t,o=($("#player").height()-N.find("video").height())/2-t;i=Math.max(5,i),o=Math.max(5,o),N.find(".close").css("right",i+"px"),N.find(".close").css("top",o+"px")}()}),20),this.videoPlayer.video?e==this.videoPlayer.video||(this.videoPlayer.video.pause(),N[0].removeChild(this.videoPlayer.video),N[0].appendChild(e)):N[0].appendChild(e),e.currentTime=0,e.play(),this.videoPlayer.video=e,this.playAudio(null,!1),o.a.playGuider.musicPlayer.pause(!0)}else this.videoPlayer.video&&this.videoPlayer.video.pause(),N.addClass("hide"),o.a.playGuider.isPlaying||o.a.playGuider.musicPlayer.resume()}),E.prototype.preLoadVideo={add:function(e){isMobile&&($("#tryPlay").append($(e)),e.autoplay=!0,e.play(),console.log("tryplay"))},remove:function(e){if(isMobile){e.pause();try{$("#tryPlay").children().length&&$("#tryPlay")[0].removeChild(e)}catch(e){console.log(e)}}}},E.prototype.restrictInput=function(e){e.on("focus",(function(){a.a.keyCon=!1})),e.on("blur",(function(){a.a.keyCon=!0})),e.on("keydown",(function(e){33!=e.which&&34!=e.which||e.preventDefault(),e.stopPropagation()}))},E.prototype.getVideoPoster=function(e,t){if(0==e.videoWidth)t.width=300,t.height=4800/9;else{var i=300/e.videoWidth,o=500/e.videoHeight,g=Math.min(i,o);t.width=e.videoWidth*g,t.height=e.videoHeight*g}var n=t.getContext("2d");try{n.drawImage(e,0,0,e.videoWidth,e.videoHeight,0,0,t.width,t.height)}catch(e){I.a.info(e)}var a=new Image;g=t.width/300*32;a.src=C.a.imgRoot+"canvasPlay.png",a.onload=function(){n.drawImage(a,t.width/2-g,t.height/2-g,2*g,2*g)}},E.prototype.permitTranMode=function(e){this.permitTran=e,e?($("#gui-parent #BottNav").removeClass("hide"),$("nav.right").removeClass("hide"),this.changeMapVisible()):($("#gui-parent #BottNav").addClass("hide"),$("nav.right").addClass("hide"),this.changeMapVisible(!1))},E.prototype.changeMediaPreview=function(e,t,i){if(e){if(!o.a.editor.markTag||e.sid!=o.a.editor.markTag.sid)return;var g=e.billboard.media,n=e.billboard.mediaData[t]}if(window.isMobile){var a=(A=$("footer .tmpl-hotpoint.step-3")).find("."+t+" .preview").eq(0);if("photo"==t)e&&g.indexOf(t)>-1?(a.css("background-image",'url("'+(n.media?n.media.src:n.src)+'")'),a.text(""),a.addClass("hasPhoto")):(a.css("background-image",""),a.text(d.a.get("添加图片")),a.removeClass("hasPhoto"));else if("audio"==t){if(A.find(".audio").attr("notSupport"))return;e&&g.indexOf(t)>-1?(a.find(".name").removeClass("hide").text(e.fileName.audio),a.find("span").text(""),a.addClass("hasAudio")):(a.find(".name").addClass("hide"),a.find("span").text(d.a.get("添加音频")),a.removeClass("hasAudio"))}else if("video"==t){if(e&&g.indexOf(t)>-1)(r=e.billboard.mediaObject.videominiCanvas)?a.css("background-image",'url("'+r+'")'):a.find(".name").removeClass("hide").text(e.fileName.video),a.find("span").text(""),a.addClass("hasVideo");else a.find(".name").addClass("hide"),a.css("background-image",""),a.find("span").text(d.a.get("添加视频")),a.removeClass("hasVideo")}else"outLink"==t&&e&&$("div.tmpl-hotpoint .medias .outLink input").val(n||"")}else{var A=$(".toolRight .hotpointDetail");if("photo"==t){a=A.find(".photo .upload>div").eq(0);e&&g.indexOf(t)>-1?(a.css("background-image",'url("'+(n.media?n.media.src:n.src)+'")'),a.parent().addClass("uploaded")):(a.css("background-image",""),a.parent().removeClass("uploaded"))}else if("audio"==t)e&&g.indexOf(t)>-1?(A.find(".audio .upload .name").removeClass("hide").text(e.fileName.audio),A.find(".audio .upload").addClass("uploaded")):(A.find(".audio .upload .name").addClass("hide"),A.find(".audio .upload").removeClass("uploaded"));else if("video"==t){a=A.find(".video .upload>div").eq(0);if(e&&g.indexOf(t)>-1){var r=e.billboard.mediaObject.videominiCanvas;a.css("background-image",'url("'+r+'")'),a.parent().addClass("uploaded")}else a.css("background-image",""),a.parent().removeClass("uploaded")}else"outLink"==t&&e&&$("div.hotpointDetail .outLink .link input").val(n||"")}},o.a.gui=new E(o.a.player)},function(e,t,i){"use strict";i(39),i(38),i(72);var o,g=i(0),n=i(2),a=i(6),A=(i(49),i(29),i(86),i(44)),r=i.n(A),C=(i(63),jQuery),I=window;function s(e,t,i){function o(t){var i=Me.length;if(ye.old=C.extend({},ye),me=he?0:pe[ue.horizontal?"width":"height"](),xe=be[ue.horizontal?"width":"height"](),ve=he?e:fe[ue.horizontal?"outerWidth":"outerHeight"](),Me.length=0,ye.start=0,ye.end=H(ve-me,0),ze){Re.length,Se=fe.children(ue.itemSelector),Re.length=0;var o,n=p(fe,ue.horizontal?"paddingLeft":"paddingTop"),A=p(fe,ue.horizontal?"paddingRight":"paddingBottom"),r="border-box"===C(Se).css("boxSizing"),I="none"!==Se.css("float"),s=0,l=Se.length-1;ve=0,Se.each((function(e,t){var i=C(t),g=t.getBoundingClientRect(),a=N(ue.horizontal?g.width||g.right-g.left:g.height||g.bottom-g.top),r=p(i,ue.horizontal?"marginLeft":"marginTop"),c=p(i,ue.horizontal?"marginRight":"marginBottom"),u=a+r+c,d=!r||!c,h={};h.el=t,h.size=d?a:u,h.half=h.size/2,h.start=ve+(d?r:0),h.center=h.start-N(me/2-h.size/2),h.end=h.start-me+h.size,e||(ve+=n),ve+=u,ue.horizontal||I||c&&r&&e>0&&(ve-=z(r,c)),e===l&&(h.end+=A,ve+=A,s=d?c:0),Re.push(h),o=h})),fe[0].style[ue.horizontal?"width":"height"]=(r?ve:ve-n-A)+"px",ve-=s,Re.length?(ye.start=Re[0][Ne?"center":"start"],ye.end=Ne?o.center:ve>me?o.end:ye.start):ye.start=ye.end=0}if(ye.center=N(ye.end/2+ye.start/2),Q(),we.length&&xe>0&&(ue.dynamicHandle?(Ee=f(Ee=ye.start===ye.end?xe:N(xe*me/ve),ue.minHandleSize,xe),we[0].style[ue.horizontal?"width":"height"]=Ee+"px"):Ee=we[ue.horizontal?"outerWidth":"outerHeight"](),Pe.end=xe-Ee,tt||a()),!he&&me>0){var c=ye.start,u="";if(ze)C.each(Re,(function(e,t){Ne?Me.push(t.center):t.start+t.size>c&&c<=ye.end&&(c=t.start,Me.push(c),(c+=me)>ye.end&&c<ye.end+me&&Me.push(ye.end))}));else for(;c-me<ye.end;)Me.push(c),c+=me;if(Te[0]&&i!==Me.length){for(var d=0;d<Me.length;d++)u+=ue.pageBuilder.call(de,d);(De=Te.html(u).children()).eq(ke.activePage).addClass(ue.activeClass)}}if(ke.slideeSize=ve,ke.frameSize=me,ke.sbSize=xe,ke.handleSize=Ee,ze){t&&null!=ue.startAt&&(W(ue.startAt),de[He?"toCenter":"toStart"](ue.startAt));var h=Re[ke.activeItem];g(He&&h?h.center:f(ye.dest,ye.start,ye.end))}else t?null!=ue.startAt&&g(ue.startAt,1):g(f(ye.dest,ye.start,ye.end));se("load")}function g(e,t,i){if(ze&&$e.released&&!i){var o=U(e),g=e>ye.start&&e<ye.end;He?(g&&(e=Re[o.centerItem].center),Ne&&ue.activateMiddle&&W(o.centerItem)):g&&(e=Re[o.firstItem].start)}$e.init&&$e.slidee&&ue.elasticBounds?e>ye.end?e=ye.end+(e-ye.end)/6:e<ye.start&&(e=ye.start+(e-ye.start)/6):e=f(e,ye.start,ye.end),qe.start=+new Date,qe.time=0,qe.from=ye.cur,qe.to=e,qe.delta=e-ye.cur,qe.tweesing=$e.tweese||$e.init&&!$e.slidee,qe.immediate=!qe.tweesing&&(t||$e.init&&$e.slidee||!ue.speed),$e.tweese=0,e!==ye.dest&&(ye.dest=e,se("change"),tt||n()),J(),Q(),Y(),De[0]&&Ke.page!==ke.activePage&&(Ke.page=ke.activePage,De.removeClass(ue.activeClass).eq(ke.activePage).addClass(ue.activeClass),se("activePage",Ke.page))}function n(){if(de.initialized){if(!tt)return tt=E(n),void($e.released&&se("moveStart"));qe.immediate?ye.cur=qe.to:qe.tweesing?(qe.tweeseDelta=qe.to-ye.cur,B(qe.tweeseDelta)<.1?ye.cur=qe.to:ye.cur+=qe.tweeseDelta*($e.released?ue.swingSpeed:ue.syncSpeed)):(qe.time=z(+new Date-qe.start,ue.speed),ye.cur=qe.from+qe.delta*C.easing[ue.easing](qe.time/ue.speed,qe.time,0,1,ue.speed)),qe.to===ye.cur?(ye.cur=qe.to,$e.tweese=tt=0):tt=E(n),se("move"),he||(v?fe[0].style[v]=y+(ue.horizontal?"translateX":"translateY")+"("+-ye.cur+"px)":fe[0].style[ue.horizontal?"left":"top"]=-N(ye.cur)+"px"),!tt&&$e.released&&se("moveEnd"),a()}}function a(){we.length&&(Pe.cur=ye.start===ye.end?0:(($e.init&&!$e.slidee?ye.dest:ye.cur)-ye.start)/(ye.end-ye.start)*Pe.end,Pe.cur=f(N(Pe.cur),Pe.start,Pe.end),Ke.hPos!==Pe.cur&&(Ke.hPos=Pe.cur,v?we[0].style[v]=y+(ue.horizontal?"translateX":"translateY")+"("+Pe.cur+"px)":we[0].style[ue.horizontal?"left":"top"]=Pe.cur+"px"))}function A(){_e.speed&&ye.cur!==(_e.speed>0?ye.end:ye.start)||de.stop(),gt=$e.init?E(A):0,_e.now=+new Date,_e.pos=ye.cur+(_e.now-_e.lastTime)/1e3*_e.speed,g($e.init?_e.pos:N(_e.pos)),$e.init||ye.cur!==ye.dest||se("moveEnd"),_e.lastTime=_e.now}function r(e,t,i){if("boolean"===l(t))i=t;else{if(He&&"center"!==e)return;var o=de.getPos(t);o&&g(o[e],i,!He)}}function I(e){return null!=e?h(e)?e>=0&&e<Re.length?e:-1:Se.index(e):-1}function G(e){return I(h(e)&&0>e?e+Re.length:e)}function W(e,t){var i=I(e);return!(!ze||0>i)&&((Ke.active!==i||t)&&(Se.eq(ke.activeItem).removeClass(ue.activeClass),Se.eq(i).addClass(ue.activeClass),Ke.active=ke.activeItem=i,Y(),se("active",i)),i)}function U(e){e=f(h(e)?e:ye.dest,ye.start,ye.end);var t={},i=Ne?0:me/2;if(!he)for(var o=0,g=Me.length;g>o;o++){if(e>=ye.end||o===Me.length-1){t.activePage=Me.length-1;break}if(e<=Me[o]+i){t.activePage=o;break}}if(ze){for(var n=!1,a=!1,A=!1,r=0,C=Re.length;C>r;r++)if(!1===n&&e<=Re[r].start+Re[r].half&&(n=r),!1===A&&e<=Re[r].center+Re[r].half&&(A=r),r===C-1||e<=Re[r].end+Re[r].half){a=r;break}t.firstItem=h(n)?n:0,t.centerItem=h(A)?A:t.firstItem,t.lastItem=h(a)?a:t.centerItem}return t}function Q(e){C.extend(ke,U(e))}function Y(){var e=ye.dest<=ye.start,t=ye.dest>=ye.end,i=(e?1:0)|(t?2:0);if(Ke.slideePosState!==i&&(Ke.slideePosState=i,Ze.is("button,input")&&Ze.prop("disabled",e),Xe.is("button,input")&&Xe.prop("disabled",t),Ze.add(Ue)[e?"addClass":"removeClass"](ue.disabledClass),Xe.add(We)[t?"addClass":"removeClass"](ue.disabledClass)),Ke.fwdbwdState!==i&&$e.released&&(Ke.fwdbwdState=i,Ue.is("button,input")&&Ue.prop("disabled",e),We.is("button,input")&&We.prop("disabled",t)),ze&&null!=ke.activeItem){var o=0===ke.activeItem,g=ke.activeItem>=Re.length-1,n=(o?1:0)|(g?2:0);Ke.itemsButtonState!==n&&(Ke.itemsButtonState=n,Qe.is("button,input")&&Qe.prop("disabled",o),Ye.is("button,input")&&Ye.prop("disabled",g),Qe[o?"addClass":"removeClass"](ue.disabledClass),Ye[g?"addClass":"removeClass"](ue.disabledClass))}}function Z(e,t,i){if(e=G(e),t=G(t),e>-1&&t>-1&&e!==t&&(!i||t!==e-1)&&(i||t!==e+1)){Se.eq(e)[i?"insertAfter":"insertBefore"](Re[t].el);var g=t>e?e:i?t:t-1,n=e>t?e:i?t+1:t,a=e>t;null!=ke.activeItem&&(e===ke.activeItem?Ke.active=ke.activeItem=i?a?t+1:t:a?t:t-1:ke.activeItem>g&&ke.activeItem<n&&(Ke.active=ke.activeItem+=a?1:-1)),o()}}function X(e,t){for(var i=0,o=Je[e].length;o>i;i++)if(Je[e][i]===t)return i;return-1}function J(){$e.released&&!de.isPaused&&de.resume()}function K(e){return N(f(e,Pe.start,Pe.end)/Pe.end*(ye.end-ye.start))+ye.start}function q(){$e.history[0]=$e.history[1],$e.history[1]=$e.history[2],$e.history[2]=$e.history[3],$e.history[3]=$e.delta}function _(e){$e.released=0,$e.source=e,$e.slidee="slidee"===e}function $(e){var t="touchstart"===e.type,i=e.data.source,o="slidee"===i;$e.init||!t&&ie(e.target)||("handle"!==i||ue.dragHandle&&Pe.start!==Pe.end)&&(!o||(t?ue.touchDragging:ue.mouseDragging&&e.which<2))&&(t||c(e),_(i),$e.init=0,$e.$source=C(e.target),$e.touch=t,$e.pointer=t?e.originalEvent.touches[0]:e,$e.initX=$e.pointer.pageX,$e.initY=$e.pointer.pageY,$e.initPos=o?ye.cur:Pe.cur,$e.start=+new Date,$e.time=0,$e.path=0,$e.delta=0,$e.locked=0,$e.history=[0,0,0,0],$e.pathToLock=o?t?30:10:0,P.on(t?M:D,ee),de.pause(1),(o?fe:we).addClass(ue.draggedClass),se("moveStart"),o&&(it=setInterval(q,10)))}function ee(e){if($e.released="mouseup"===e.type||"touchend"===e.type,$e.pointer=$e.touch?e.originalEvent[$e.released?"changedTouches":"touches"][0]:e,$e.pathX=$e.pointer.pageX-$e.initX,$e.pathY=$e.pointer.pageY-$e.initY,$e.path=F(j($e.pathX,2)+j($e.pathY,2)),$e.delta=ue.horizontal?$e.pathX:$e.pathY,$e.released||!($e.path<1)){if(!$e.init){if(!(ue.horizontal?B($e.pathX)>B($e.pathY):B($e.pathX)<B($e.pathY)))return te();$e.init=1}c(e),!$e.locked&&$e.path>$e.pathToLock&&$e.slidee&&($e.locked=1,$e.$source.on(R,u)),$e.released&&(te(),ue.releaseSwing&&$e.slidee&&($e.swing=($e.delta-$e.history[0])/40*300,$e.delta+=$e.swing,$e.tweese=B($e.swing)>10)),g($e.slidee?N($e.initPos-$e.delta):K($e.initPos+$e.delta))}}function te(){clearInterval(it),$e.released=!0,P.off($e.touch?M:D,ee),($e.slidee?fe:we).removeClass(ue.draggedClass),setTimeout((function(){$e.$source.off(R,u)})),ye.cur===ye.dest&&$e.init&&se("moveEnd"),de.resume(1),$e.init=0}function ie(e){return~C.inArray(e.nodeName,O)||C(e).is(ue.interactive)}function oe(){de.stop(),P.off("mouseup",oe)}function ge(e){switch(c(e),this){case We[0]:case Ue[0]:de.moveBy(We.is(this)?ue.moveBy:-ue.moveBy),P.on("mouseup",oe);break;case Qe[0]:de.prev();break;case Ye[0]:de.next();break;case Ze[0]:de.prevPage();break;case Xe[0]:de.nextPage()}}function ne(e){e.originalEvent[w]=de;var t=+new Date;if(V+ue.scrollHijack>t&&Ve[0]!==document&&Ve[0]!==window)V=t;else if(ue.scrollBy&&ye.start!==ye.end){var i=function(e){return et.curDelta=(ue.horizontal?e.deltaY||e.deltaX:e.deltaY)||-e.wheelDelta,et.curDelta/=1===e.deltaMode?3:100,ze?(b=+new Date,et.last<b-et.resetTime&&(et.delta=0),et.last=b,et.delta+=et.curDelta,B(et.delta)<1?et.finalDelta=0:(et.finalDelta=N(et.delta/1),et.delta%=1),et.finalDelta):et.curDelta}(e.originalEvent);(ue.scrollTrap||i>0&&ye.dest<ye.end||0>i&&ye.dest>ye.start)&&c(e,1),de.slideBy(ue.scrollBy*i)}}function ae(e){ue.clickBar&&e.target===be[0]&&(c(e),g(K((ue.horizontal?e.pageX-be.offset().left:e.pageY-be.offset().top)-Ee/2)))}function Ae(e){if(ue.keyboardNavBy)switch(e.which){case ue.horizontal?37:38:c(e),de["pages"===ue.keyboardNavBy?"prevPage":"prev"]();break;case ue.horizontal?39:40:c(e),de["pages"===ue.keyboardNavBy?"nextPage":"next"]()}}function re(e){return ie(this)?void(e.originalEvent[w+"ignore"]=!0):void(this.parentNode!==fe[0]||e.originalEvent[w+"ignore"]||de.activate(this))}function Ce(){this.parentNode===Te[0]&&de.activatePage(De.index(this))}function Ie(e){ue.pauseOnHover&&de["mouseenter"===e.type?"pause":"resume"](2)}function se(e,t){if(Je[e]){for(ce=Je[e].length,L.length=0,le=0;ce>le;le++)L.push(Je[e][le]);for(le=0;ce>le;le++)L[le].call(de,e,t)}}var le,ce,ue=C.extend({},s.defaults,t),de=this,he=h(e),pe=C(e),fe=ue.slidee?C(ue.slidee).eq(0):pe.children().eq(0),me=0,ve=0,ye={start:0,center:0,end:0,cur:0,dest:0},be=C(ue.scrollBar).eq(0),we=be.children().eq(0),xe=0,Ee=0,Pe={start:0,end:0,cur:0},Te=C(ue.pagesBar),De=0,Me=[],Se=0,Re=[],ke={firstItem:0,lastItem:0,centerItem:0,activeItem:null,activePage:0},Oe=new m(pe[0]),Le=new m(fe[0]),Be=new m(be[0]),Fe=new m(we[0]),je="basic"===ue.itemNav,Ne="forceCentered"===ue.itemNav,He="centered"===ue.itemNav||Ne,ze=!he&&(je||He||Ne),Ve=ue.scrollSource?C(ue.scrollSource):pe,Ge=ue.dragSource?C(ue.dragSource):pe,We=C(ue.forward),Ue=C(ue.backward),Qe=C(ue.prev),Ye=C(ue.next),Ze=C(ue.prevPage),Xe=C(ue.nextPage),Je={},Ke={},qe={},_e={},$e={released:1},et={last:0,delta:0,resetTime:200},tt=0,it=0,ot=0,gt=0;he||(e=pe[0]),de.initialized=0,de.frame=e,de.slidee=fe[0],de.pos=ye,de.rel=ke,de.items=Re,de.pages=Me,de.isPaused=0,de.options=ue,de.dragging=$e,de.reload=function(){o()},de.getPos=function(e){if(ze){var t=I(e);return-1!==t&&Re[t]}var i=fe.find(e).eq(0);if(i[0]){var o=ue.horizontal?i.offset().left-fe.offset().left:i.offset().top-fe.offset().top,g=i[ue.horizontal?"outerWidth":"outerHeight"]();return{start:o,center:o-me/2+g/2,end:o-me+g,size:g}}return!1},de.moveBy=function(e){_e.speed=e,!$e.init&&_e.speed&&ye.cur!==(_e.speed>0?ye.end:ye.start)&&(_e.lastTime=+new Date,_e.startPos=ye.cur,_("button"),$e.init=1,se("moveStart"),x(gt),A())},de.stop=function(){"button"===$e.source&&($e.init=0,$e.released=1)},de.prev=function(){de.activate(null==ke.activeItem?0:ke.activeItem-1)},de.next=function(){de.activate(null==ke.activeItem?0:ke.activeItem+1)},de.prevPage=function(){de.activatePage(ke.activePage-1)},de.nextPage=function(){de.activatePage(ke.activePage+1)},de.slideBy=function(e,t){e&&(ze?de[He?"toCenter":"toStart"](f((He?ke.centerItem:ke.firstItem)+ue.scrollBy*e,0,Re.length)):g(ye.dest+e,t))},de.slideTo=function(e,t){g(e,t)},de.toStart=function(e,t){r("start",e,t)},de.toEnd=function(e,t){r("end",e,t)},de.toCenter=function(e,t){r("center",e,t)},de.getIndex=I,de.activate=function(e,t){var i=W(e);ue.smart&&!1!==i&&(He?de.toCenter(i,t):i>=ke.lastItem?de.toStart(i,t):i<=ke.firstItem?de.toEnd(i,t):J())},de.activatePage=function(e,t){h(e)&&g(Me[f(e,0,Me.length-1)],t)},de.resume=function(e){ue.cycleBy&&ue.cycleInterval&&("items"!==ue.cycleBy||Re[0]&&null!=ke.activeItem)&&!(e<de.isPaused)&&(de.isPaused=0,ot?ot=clearTimeout(ot):se("resume"),ot=setTimeout((function(){switch(se("cycle"),ue.cycleBy){case"items":de.activate(ke.activeItem>=Re.length-1?0:ke.activeItem+1);break;case"pages":de.activatePage(ke.activePage>=Me.length-1?0:ke.activePage+1)}}),ue.cycleInterval))},de.pause=function(e){e<de.isPaused||(de.isPaused=e||100,ot&&(ot=clearTimeout(ot),se("pause")))},de.toggle=function(){de[ot?"pause":"resume"]()},de.set=function(e,t){C.isPlainObject(e)?C.extend(ue,e):ue.hasOwnProperty(e)&&(ue[e]=t)},de.add=function(e,t){var i=C(e);ze?(null==t||!Re[0]||t>=Re.length?i.appendTo(fe):Re.length&&i.insertBefore(Re[t].el),null!=ke.activeItem&&t<=ke.activeItem&&(Ke.active=ke.activeItem+=i.length)):fe.append(i),o()},de.remove=function(e){if(ze){var t=G(e);if(t>-1){Se.eq(t).remove();var i=t===ke.activeItem;null!=ke.activeItem&&t<ke.activeItem&&(Ke.active=--ke.activeItem),o(),i&&(Ke.active=null,de.activate(ke.activeItem))}}else C(e).remove(),o()},de.moveAfter=function(e,t){Z(e,t,1)},de.moveBefore=function(e,t){Z(e,t)},de.on=function(e,t){if("object"===l(e))for(var i in e)e.hasOwnProperty(i)&&de.on(i,e[i]);else if("function"===l(t))for(var o=e.split(" "),g=0,n=o.length;n>g;g++)Je[o[g]]=Je[o[g]]||[],-1===X(o[g],t)&&Je[o[g]].push(t);else if("array"===l(t))for(var a=0,A=t.length;A>a;a++)de.on(e,t[a])},de.one=function(e,t){de.on(e,(function i(){t.apply(de,arguments),de.off(e,i)}))},de.off=function(e,t){if(t instanceof Array)for(var i=0,o=t.length;o>i;i++)de.off(e,t[i]);else for(var g=e.split(" "),n=0,a=g.length;a>n;n++)if(Je[g[n]]=Je[g[n]]||[],null==t)Je[g[n]].length=0;else{var A=X(g[n],t);-1!==A&&Je[g[n]].splice(A,1)}},de.destroy=function(){return Ve.add(we).add(be).add(Te).add(We).add(Ue).add(Qe).add(Ye).add(Ze).add(Xe).off("."+w),P.off("keydown",Ae),Qe.add(Ye).add(Ze).add(Xe).removeClass(ue.disabledClass),Se&&null!=ke.activeItem&&Se.eq(ke.activeItem).removeClass(ue.activeClass),Te.empty(),he||(pe.off("."+w),Oe.restore(),Le.restore(),Be.restore(),Fe.restore(),C.removeData(e,w)),Re.length=Me.length=0,Ke={},de.initialized=0,de},de.init=function(){if(!de.initialized){de.on(i);var e=["overflow","position"],t=["position","webkitTransform","msTransform","transform","left","top","width","height"];Oe.save.apply(Oe,e),Be.save.apply(Be,e),Le.save.apply(Le,t),Fe.save.apply(Fe,t);var g=we;return he||(g=g.add(fe),pe.css("overflow","hidden"),v||"static"!==pe.css("position")||pe.css("position","relative")),v?y&&g.css(v,y):("static"===be.css("position")&&be.css("position","relative"),g.css({position:"absolute"})),ue.forward&&We.on(k,ge),ue.backward&&Ue.on(k,ge),ue.prev&&Qe.on(R,ge),ue.next&&Ye.on(R,ge),ue.prevPage&&Ze.on(R,ge),ue.nextPage&&Xe.on(R,ge),Ve.on(S,ne),be[0]&&be.on(R,ae),ze&&ue.activateOn&&pe.on(ue.activateOn+"."+w,"*",re),Te[0]&&ue.activatePageOn&&Te.on(ue.activatePageOn+"."+w,"*",Ce),Ge.on(T,{source:"slidee"},$),we&&we.on(T,{source:"handle"},$),P.on("keydown",Ae),he||(pe.on("mouseenter."+w+" mouseleave."+w,Ie),pe.on("scroll."+w,d)),de.initialized=1,o(!0),ue.cycleBy&&!he&&de[ue.startPaused?"pause":"resume"](),de}}}function l(e){return null==e?String(e):"object"==r()(e)||"function"==typeof e?Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase()||"object":r()(e)}function c(e,t){e.preventDefault(),t&&e.stopPropagation()}function u(e){c(e,1),C(this).off(e.type,u)}function d(){this.scrollLeft=0,this.scrollTop=0}function h(e){return!isNaN(parseFloat(e))&&isFinite(e)}function p(e,t){return 0|N(String(e.css(t)).replace(/[^\-0-9.]/g,""))}function f(e,t,i){return t>e?t:e>i?i:e}function m(e){var t={style:{},save:function(){if(e&&e.nodeType){for(var i=0;i<arguments.length;i++)t.style[arguments[i]]=e.style[arguments[i]];return t}},restore:function(){if(e&&e.nodeType){for(var i in t.style)t.style.hasOwnProperty(i)&&(e.style[i]=t.style[i]);return t}}};return t}var v,y,b,w="sly",x=I.cancelAnimationFrame||I.cancelRequestAnimationFrame,E=I.requestAnimationFrame,P=C(document),T="touchstart."+w+" mousedown."+w,D="mousemove."+w+" mouseup."+w,M="touchmove."+w+" touchend."+w,S=(document.implementation.hasFeature("Event.wheel","3.0")?"wheel.":"mousewheel.")+w,R="click."+w,k="mousedown."+w,O=["INPUT","SELECT","BUTTON","TEXTAREA"],L=[],B=Math.abs,F=Math.sqrt,j=Math.pow,N=Math.round,H=Math.max,z=Math.min,V=0;P.on(S,(function(e){var t=e.originalEvent[w],i=+new Date;(!t||t.options.scrollHijack<i-V)&&(V=i)})),function(e){E=e.requestAnimationFrame||e.webkitRequestAnimationFrame||function(e){var i=(new Date).getTime(),o=Math.max(0,16-(i-t)),g=setTimeout(e,o);return t=i,g};var t=(new Date).getTime(),i=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.clearTimeout;x=function(t){i.call(e,t)}}(window),function(){function e(e){for(var o=0,g=t.length;g>o;o++){var n=t[o]?t[o]+e.charAt(0).toUpperCase()+e.slice(1):e;if(null!=i.style[n])return n}}var t=["","webkit","moz","ms","o"],i=document.createElement("div");v=e("transform"),y=e("perspective")?"translateZ(0) ":""}(),o=s,C.fn.sly=function(e,t){var i,o;return C.isPlainObject(e)||(("string"===l(e)||!1===e)&&(i=!1===e?"destroy":e,o=Array.prototype.slice.call(arguments,1)),e={}),this.each((function(g,n){var a=C.data(n,w);a||i?a&&i&&a[i]&&a[i].apply(a,o):a=C.data(n,w,new s(n,e,t).init())}))},s.defaults={slidee:null,horizontal:!1,itemNav:null,itemSelector:null,smart:!1,activateOn:null,activateMiddle:!1,scrollSource:null,scrollBy:0,scrollHijack:300,scrollTrap:!1,dragSource:null,mouseDragging:!1,touchDragging:!1,releaseSwing:!1,swingSpeed:.2,elasticBounds:!1,interactive:null,scrollBar:null,dragHandle:!1,dynamicHandle:!1,minHandleSize:50,clickBar:!1,syncSpeed:.5,pagesBar:null,activatePageOn:null,pageBuilder:function(e){return"<li>"+(e+1)+"</li>"},forward:null,backward:null,prev:null,next:null,prevPage:null,nextPage:null,cycleBy:null,cycleInterval:5e3,pauseOnHover:!1,startPaused:!1,moveBy:300,speed:0,easing:"swing",startAt:null,keyboardNavBy:null,draggedClass:"dragged",activeClass:"active",disabledClass:"disabled"};var G=o,W=i(10),U=(i(4),i(12),i(114)),Q=i(7),Y=i(3),Z=Q.a.getQueryValue("nosound");function X(e){return edit||0===e.indexOf("http")||-1!=e.indexOf("pro")?e:("aliyun"==Store.metadata.oss?-1==e.indexOf("4dkankan.oss-cn-shenzhen.aliyuncs.com")&&(e=a.a.prefix+e):"bigScene"==n.a.applicationName?e=a.a.bigScenePrefix+e:-1==e.indexOf("scene3d.4dage.com")&&(e=a.a.prefix+e),(e=e.replace("http:/","https:/"))+"?m="+(new Date).getTime())}var J=function(e){this.player=e,this.currentType=null,this.ready=!0,this.scroller=null,this.scrollLen=0,this.touchScreenToStop=!0,this.totalTime=0,this.showTime=null,this.playedTime=0,this.isPlaying=!1,this.isPlayed=!1,this.scrollNeedUpdate=!0,this.waiting=!1,e.guider=this,this.bindEvents()};J.prototype.init=function(){edit||(this.panoVisi=1==Store.metadata.panoVisi||null==Store.metadata.panoVisi,this.m2dVisi=1==Store.metadata.m2dVisi||null==Store.metadata.m2dVisi,this.m3dVisi=1==Store.metadata.m3dVisi||null==Store.metadata.m3dVisi,this.mapVisi=1==Store.metadata.mapVisi||null==Store.metadata.mapVisi,this.tourVisi=1==Store.metadata.tourVisi||null==Store.metadata.mapVisi,this.vrVisi=1==Store.metadata.vrVisi||null==Store.metadata.mapVisi,this.rulerVisi=1==Store.metadata.rulerVisi||null==Store.metadata.rulerVisi,this.cadImgVisi=1==Store.metadata.cadImgVisi||null==Store.metadata.cadImgVisi,this.panoVisi&&$("nav ._roam").parent().removeClass("hide"),this.m2dVisi&&$("nav ._2d").parent().removeClass("hide"),this.m3dVisi&&$("nav ._3d").parent().removeClass("hide"),this.vrVisi&&$("nav ._vr").parent().removeClass("hide"),this.rulerVisi&&$('.bottRight [data-type="ruler"]').removeClass("hide")),this.initBGM(),Store.playData.length?(this.loadDone(),this.addScrollImgs(),this.autoStart()):this.playBGM()},J.prototype.initBGM=function(){var e=this;if(Z)g.a.gui.setMoreBtn(!1);else{if(this.bgmButton=isMobile?$("header .btn-right"):$("#BottNav .bottRight .bgm"),Store.metadata.bgMusic&&"noMusic"!=Store.metadata.bgMusic){var t=W.default.findBgMusic(Y.a.get(Store.metadata.bgMusic));t?(g.a.gui.setMoreBtn(!0),isMobile&&!edit&&g.a.gui.selections>1&&(this.bgmButton=g.a.gui.selectionsTip.elem.find("#bgmBtn")),this.bgmButton.removeClass("hide"),g.a.playGuider.musicPlayer.url(X(t)),g.a.playGuider.musicPlayer.setLoop(!0),edit||g.a.playGuider.musicPlayer.setAutoplay(!0)):g.a.gui.setMoreBtn(!1)}else g.a.gui.setMoreBtn(!1);g.a.playGuider.musicPlayer.on("stop",(function(){e.bgmButton.removeClass("onplay")})),g.a.playGuider.musicPlayer.on("paused",(function(){e.bgmButton.removeClass("onplay")})),g.a.playGuider.musicPlayer.on("playing",(function(){e.bgmButton.addClass("onplay")})),this.bgmButton.on("click",(function(e){g.a.playGuider.musicPlayer.isPlaying?g.a.playGuider.musicPlayer.pause():g.a.playGuider.musicPlayer.play()}))}},J.prototype.playBGM=function(){var e=this;g.a.playGuider.musicPlayer.on("loaded",(function(){Object(U.b)((function(){g.a.playGuider.musicPlayer.play(),setTimeout((function(){g.a.playGuider.musicPlayer.stop(),(!edit||"snapTour"!=g.a.editor.atPanel&&"wallDesign"!=g.a.editor.atPanel)&&(g.a.playGuider.musicPlayer.play(!0),e.bgmButton.addClass("onplay"))}),50)}))})).checkLoaded()},J.prototype.autoStart=function(){var e=this;edit?this.playBGM():Z||(1==Store.metadata.tourVisi||null==Store.metadata.mapVisi?Store.metadata.screencapVoiceSoundsync||Store.metadata.screencapVoiceSound||Store.metadata.screencapVoiceSrc?Object(U.a)((function(t){g.a.playGuider.soundPlayer.on("loaded",(function(){t((function(t){e.waiting=!1,t&&(g.a.playGuider.soundPlayer.play(),setTimeout((function(){g.a.playGuider.soundPlayer.stop(),e.isPlayed=!0,e.playOrStopGuide(!0,!0)}),50))}))})).on("error",(function(){e.waiting=!1,e.playOrStopGuide(!0,!0)})),""!=Store.metadata.screencapVoiceType&&"soundsync"!=Store.metadata.screencapVoiceType||!Store.metadata.screencapVoiceSoundsync?"sound"==Store.metadata.screencapVoiceType&&Store.metadata.screencapVoiceSound?(e.waiting=!0,g.a.playGuider.soundPlayer.url(X(Store.metadata.screencapVoiceSound))):"file"==Store.metadata.screencapVoiceType&&Store.metadata.screencapVoiceSrc?(e.waiting=!0,g.a.playGuider.soundPlayer.url(X(Store.metadata.screencapVoiceSrc))):e.playOrStopGuide(!0,!0):(e.waiting=!0,g.a.playGuider.soundPlayer.url(X(Store.metadata.screencapVoiceSoundsync)))})):this.playOrStopGuide(!0,!0):this.playBGM())},J.prototype.bindEvents=function(){var e=this;this.eventBinded||($("#autoTour .play").on("click",(function(t){$(this).hasClass("onPause")?e.playOrStopGuide(!1):e.playOrStopGuide(!0)})),$("#autoTour .pullUp").on("click",(function(t){$(this).hasClass("down")?e.slideUpOrDown(!1):e.slideUpOrDown(!0)})),this.addScroll(),$(window).on("resize",this.scrollUpdate.bind(this)),this.eventBinded=!0)},J.prototype.addScroll=function(){this.scroller=new G($("#scrollFrame"),{horizontal:!0,itemNav:"centered",smart:!0,scrollTrap:!0,scrollBy:1,mouseDragging:!0,touchDragging:!0,speed:300,dragHandle:!0,dynamicHandle:!0,clickBar:!0,scrollBar:$("#tourGuide .scrollbar"),activateOn:null}).init()},J.prototype.playOrStopGuide=function(e,t){var i=function(e){$.contains($("#BottNav")[0],e.target)||($.contains($("#autoTour .play")[0],e.target)||(this.playOrStopGuide(!1),$("#autoTour .play").css("pointer-events","none"),setTimeout((function(){$("#autoTour .play").css("pointer-events","")}),300)),$(window).off("touchstart",i),$(window).off("mousedown",i))}.bind(this);e?(this.touchScreenToStop&&$(window).on("touchstart mousedown",i),this.play()):this.stop()},J.prototype.tourSoundPlay=function(e,t){};function K(e,t){var i=null;for(var o in t)if(o>e){i=t[o];break}return null==i?i=t[o]:i--,i}J.prototype.slideUpOrDown=function(e){e?($("#BottNav").addClass("open"),$("#autoTour .pullUp").addClass("down"),this.scrollNeedUpdate&&(this.scrollNeedUpdate=!1,setTimeout(this.scrollUpdate.bind(this),100))):($("#BottNav").removeClass("open"),$("#autoTour .pullUp").removeClass("down"))},J.prototype.addImg=function(e,t){var i=edit?ifTest&&!n.a.isTestMode()?"pro/":"":"bigScene"==n.a.applicationName?a.a.bigScenePrefix:a.a.prefix,o=$('<li class="thumbImg" data-index="'+e.index+'"><span class="name">'+(e.name||"")+"</span></li>"),A=e.BlobSrc?'url("'+e.BlobSrc+'")':'url("'+i+a.a.TOURimg_prefix.replace("**",n.a.projectNum)+t+".jpg?m="+(new Date).getTime()+'")';o.css("background-image",A),isMobile||o.addClass("hasHover"),$("#thumb-container").append(o),o.on("click",function(e){var t=$(e.target).data("index"),i=Store.playData[t].time.sTime;g.a.playGuider.chooseFragment(t,0,(function(){$("#player").css("pointer-events","")})),g.a.guider.updateProgress(parseInt(i)),g.a.guider.stop()}.bind(this))},J.prototype.addScrollImgs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(null!==e?e:edit?1==Store.metadata.tourVisi||null==Store.metadata.mapVisi:this.tourVisi){var t=75,i=12;if(this.activePicObject={},this.scrollLen=(t+i)*Store.playData.length,!this.scrollLen)return $("#autoTour").hasClass("hide")||$("#autoTour").addClass("hide"),this.slideUpOrDown(!1),void(null==e&&edit&&g.a.editor.tourVisiCon&&(g.a.editor.tourVisiCon.switchState(0,!0),g.a.editor.tourVisiCon.$elem.addClass("unable")));$("#autoTour").removeClass("hide"),this.slideUpOrDown(!1),null==e&&edit&&g.a.editor.tourVisiCon&&(g.a.editor.tourVisiCon.switchState(1,!0),g.a.editor.tourVisiCon.$elem.removeClass("unable")),$("#thumb-container").html("");for(var o=0;o<Store.playData.length;o++){var n=W.default.getFragmentItem(Store.playData[o]);n.index=o,n.BlobSrc=Store.thumbs[o].first_url,this.activePicObject[n.index]=n.index,this.addImg(n,n.index)}this.updateTotalTime()}else $("#autoTour").removeClass("hide").addClass("hide")},J.prototype.updateTotalTime=function(){this.totalTime=Store.playData.length?Store.playData[Store.playData.length-1].time.eTime:0,this.totalTime=Math.ceil(this.totalTime),$("#playProgress .status .curTime").text("00:00"),$("#playProgress .status .totalTime").text(W.default.getTime(this.totalTime)),$("#playProgress .progressBar>div").css("width","0")},J.prototype.scrollUpdate=function(){if(this.scroller){this.scroller.reload();var e=$("#player").width(),t=$("#tourGuide .scrollbar"),i=$("#tourGuide"),o=$("#BottNav");if($("#player").width()<488||$("#player").height()<488)t.addClass("conceal"),i.addClass("noScroll"),o.addClass("noScroll");else this.scrollLen>e!==!i.hasClass("noScroll")&&(t.toggleClass("conceal"),i.toggleClass("noScroll"),o.toggleClass("noScroll"));void 0!==this.scroller.__index&&this.scroller.activate(this.scroller.__index)}},J.prototype.updateProgress=function(e,t){$("#playProgress .status .curTime").text(W.default.getTime(e)),$("#playProgress .progressBar>div").css("width",e/this.totalTime*100+"%")},J.prototype.updateActivePic=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;if(this.activePicObject){var t=e>-1?e:g.a.playGuider.nodeIndex,i=$("#scrollFrame li.active").length?$("#scrollFrame li.active").index():null,o=K(t,this.activePicObject);-1==o||i!==o&&(this.scroller.activate(o),this.scroller.__index=o)}},J.prototype.play=function(e){if(this.waiting)return $("#autoTour .play").addClass("onPause"),void $("#autoTour").addClass("unable");n.a.keyCon=!1,this.isPlaying=!0,$("#player").css("pointer-events","none"),$(".toolRight").addClass("unable"),$(".toolLeft").addClass("unable"),$(".toolTop").addClass("unable"),$("#tag-billboards").addClass("noTouch"),$("body").addClass("playingRecord"),$("#BottNav nav").addClass("unable"),$("#autoTour .play").addClass("onPause"),$(".bottRight").addClass("unable"),$("header>*").addClass("unable"),$("#j-header-dropdown").find(">i").removeClass("down"),$("#j-header-dropdown").find(">div").removeClass("show"),$("#j-header-dropdown").addClass("unable"),$("#map").addClass("unable"),isMobile,g.a.playGuider.start(e)},J.prototype.stop=function(){this.isPlaying=!1,g.a.playGuider.pause(),$("#autoTour .play").removeClass("onPause"),clearInterval(this.playTimer),n.a.keyCon=!0},J.prototype.startPreview=function(e){var t=this;if(this.isPlaying&&Store.playData.length&&(!edit||!isMobile)){$("#autoTour").removeClass("unable"),clearInterval(this.playTimer),this.playTimer=setInterval((function(){++t.playTime>t.totalTime||t.updateProgress(t.playTime)}),1e3);var i=Store.playData[e].time.sTime;g.a.playGuider.soundPlayer.time(i),this.playTime=Math.ceil(i),this.updateProgress(this.playTime)}},J.prototype.stopPreview=function(){this.isPlaying&&Store.playData.length&&(edit&&isMobile||(clearInterval(this.playTimer),this.isPlaying=!1,this.playTime=Math.ceil(Store.playData[Store.playData.length-1].time.eTime),g.a.guider.updateProgress(this.playTime),$("#autoTour").removeClass("unable"),$("#tourGuide").removeClass("unable"),$("#BottNav nav").removeClass("unable"),$("#autoTour .play").removeClass("onPause"),$("#snapTour-cad").removeClass("unable"),$("#player").css("pointer-events",""),$(".bottRight").removeClass("unable"),$("#map").removeClass("unable"),$("#tag-billboards").removeClass("noTouch"),$("body").removeClass("playingRecord"),$("header>*").removeClass("unable"),$("#j-header-dropdown,.toolTop,.toolLeft,.toolRight").removeClass("unable")))},J.prototype.loadDone=function(){this.ready=!0,this.readyDone&&this.readyDone(),this.readyDone=null},g.a.guider=new J(g.a.player)},function(e,t,i){"use strict";var o=i(0),g=i(77),n=i(1),a=i(37),A=i(78),r=i(102),C=i(126),I=i(30);i(90);!function(){function e(e,t){this.tree=e,this.parent=t,this.children=[],this.id=++o}window.TileTree=function(t,o){this.levels=o,this.tileSize=t,this.root=null,this.allNodes=[],function(t){t.root=function t(o,g,n){if(n>o.levels)return null;var a=new e(o,g);o.allNodes.push(a);for(var A=0;A<i;A++)a.children[A]=t(o,a,n+1);return a}(t,null,0)}(this)};var t=2,i=t*t;TileTree.TraversalType=Object.freeze({PreOrder:0,PostOrder:1});var o=0;TileTree.getLevelCountForSize=function(e,i){var o=0;for(i<e&&(i=e);!((i/=t)<e);)o++;return o},TileTree.getSizeForLevel=function(e,i){return Math.pow(t,i)*e},TileTree.prototype.getSubNode=function(e,i,o){(!i||e<this.tileSize)&&(i=0),(!o||e<this.tileSize)&&(o=0),e<this.tileSize&&(e=this.tileSize);var g=TileTree.getLevelCountForSize(this.tileSize,e);return function e(i,o,g,n,a){if(!i)return null;if(0===g)return i;if(!i.children||0===i.children.length)return null;var A=Math.pow(t,g)/t,r=n%A,C=a%A,I=Math.floor(a/A),s=Math.floor(n/A),l=I*t+s;return e(i.children[l],o+1,g-1,r,C)}(this.root,0,g,i,o)},TileTree.prototype.breadthFirst=function(e){var t=!!(e=e||{}).nullLevelEnd,i=e.maxLevel,o=e.minLevel,g=e.callback,n=e.saveVisited,a=[],A={},r=0;for(a.push(this.root),a.push(A);a.length>0&&!(i&&r>i);){var C=a.shift();if(C===A)(!o||r>=o)&&(g&&t&&g(null),n&&t&&n.push(null)),a.length>0&&a.push(A),r++,0;else{if(C.children)for(var I=0;I<C.children.length;I++){C.children[I]&&a.push(C.children[I])}var s=this.getFaceIndexFromNode(C);(!o||r>=o)&&(g&&g(C,r,s),n&&n.push(C))}}},TileTree.prototype.getFaceIndexFromNode=function(e){if(!e)return-1;for(var i=1,o=e,g=0,n=0;;){var a=o.parent;if(!a)break;for(var A=-1,r=0;r<a.children.length;r++)a.children[r]===o&&(A=r);g=A%t*i+g,n=Math.floor(A/t)*i+n,i*=t,o=a}return n*i+g},TileTree.prototype.depthFirst=function(e,i,o){!function e(i,o,g,n,a,A,r,C){if(i){r=r||TileTree.TraversalType.PreOrder;var I=n*t+g;if(r===TileTree.TraversalType.PreOrder&&(a&&a(i,o,I,g,n),A&&A.push(i)),i.children&&0!==i.children.length){for(var s=n*t,l=g*t,c=0;c<t;c++)for(var u=0;u<t;u++)e(i.children[u*t+c],o+1,l+c,s+u,a,A,r,C);r===TileTree.TraversalType.PostOrder&&(a&&a(i,o,I,g,n),A&&A.push(i))}}}(this.root,0,0,0,e,i,o,this.tileSize)}}();var s=TileTree,l=(i(137),i(31)),c=i(141);!function(){function e(e){var t={renderTarget:null,inUse:!1,size:-1,pano:null};return t.inUse=!0,t.size=e,function(e){b.push(e)}(t),t}function t(e){for(var t=0;t<b.length;t++){var i=b[t];if(i.renderTarget===e)return i.inUse=!1,!0}return!1}function i(){this.uploadIntervalCancelled||(this.overlayTilesLoaded||!this.usingTileOverlay?(d=!0,this.updateUploadQueue(this.maxNonBaseUploadsPerFrame,this.maxBaseUploadsPerFrame),this.peekNextFromUploadQueue()?this.refreshUploadInterval(h):this.uploadInterval=null):this.refreshUploadInterval(this.uploadIntervalDelay))}var u,d=!1,h=n.a.tiling.uploadIntervalDelay,p=n.a.tiling.initialIntervalDelay,f=n.a.tiling.maxNonBaseUploadsPerFrame,m=n.a.tiling.maxBaseUploadsPerFrame,v=0,y=1,b=[];window.PanoRenderer=function(){this.tileDirectory={},this.activeRenderTargetDescriptors={},this.activePanos=[],this.panoLODDescriptors={},this.panoDescriptors={},this.tileTrees={},this.sceneRenderer=null,this.tileDownloader=null,this.forceQueue=[],this.uploadQueues={},this.uploadInterval=null,this.uploadIntervalCancelled=!1,this.usingTileOverlay=!1,this.overlayTilesLoaded=!1,this.overlayTileBase=null,this.overlayTilesBasic={},this.overlayTilesEnhanced={},this.zoomRenderTarget=null,this.zoomPano=null,this.zoomingActive=!1,this.zoomPanoId=null,this.zoomPanoRenderingDisabled=!1,this.direction=new THREE.Vector3,this.initTime=-1,this.maxBaseUploadsPerFrame=m,this.maxNonBaseUploadsPerFrame=f},PanoRenderer.prototype=Object.create(EventEmitter.prototype),PanoRenderer.prototype.init=function(e,t,i){this.sceneRenderer=e,this.tileDownloader=t,this.qualityManager=i,this.bindEvents(),this.sceneRenderer.on(r.a.ContextCreated,this.loadOverlayTiles.bind(this)),this.initTime=performance.now()},PanoRenderer.prototype.getActivePanoTextures=function(e){e=e||[];for(var t=0;t<b.length;t++){var i=b[t];i.renderTarget&&i.renderTarget.texture&&e.push(i.renderTarget.texture)}},PanoRenderer.prototype.hasQueuedTiles=function(){var e=this.peekNextFromUploadQueue();return null!=e},PanoRenderer.prototype.getActiveRenderTargetDescriptor=function(e){return this.activeRenderTargetDescriptors[e]},PanoRenderer.prototype.setActiveRenderTargetDescriptor=function(e,t){this.activeRenderTargetDescriptors[e]=t},PanoRenderer.prototype.loadOverlayTiles=function(){if(0!==n.a.tiling.overlayStyle){var e=0,t=function(t,o,g){t=o?t[o]=this.sceneRenderer.initSizedTexture2D(l.a.TILE_SIZE,THREE.ClampToEdgeWrapping):this.overlayTileBase=this.sceneRenderer.initSizedTexture2D(l.a.TILE_SIZE,THREE.ClampToEdgeWrapping),this.sceneRenderer.uploadTexture2D(g,t,0,0,l.a.TILE_SIZE,l.a.TILE_SIZE),++e===i.length&&(this.overlayTilesLoaded=!0)}.bind(this),i=[["images/outlineBase.png",t.bind(this,this.overlayTileBase,null)],["images/outlineBasic512.png",t.bind(this,this.overlayTilesBasic,256)],["images/outlineBasic512.png",t.bind(this,this.overlayTilesBasic,512)],["images/outlineBasic1024.png",t.bind(this,this.overlayTilesBasic,1024)],["images/outlineBasic2048.png",t.bind(this,this.overlayTilesBasic,2048)],["images/outlineBasic4096.png",t.bind(this,this.overlayTilesBasic,4096)],["images/outlineEnhanced512.png",t.bind(this,this.overlayTilesEnhanced,256)],["images/outlineEnhanced512.png",t.bind(this,this.overlayTilesEnhanced,512)],["images/outlineEnhanced1024.png",t.bind(this,this.overlayTilesEnhanced,1024)],["images/outlineEnhanced2048.png",t.bind(this,this.overlayTilesEnhanced,2048)],["images/outlineEnhanced4096.png",t.bind(this,this.overlayTilesEnhanced,4096)]];i.forEach(function(e){this.tileDownloader.loadImage(e[0],0,e[1])}.bind(this)),this.usingTileOverlay=!0}else this.usingTileOverlay=!1},PanoRenderer.prototype.bindEvents=function(){this.tileDownloader.on(C.a.TileDownloadSuccess,this.onTileDownloaded.bind(this))},PanoRenderer.prototype.setupZoomRenderTarget=function(){if(this.qualityManager.getMaxZoomPanoSize()>=this.qualityManager.getMaxNavPanoSize()){if(this.zoomRenderTarget&&this.zoomRenderTarget.width===this.qualityManager.getMaxZoomPanoSize())return;var e=this.zoomRenderTarget;if(this.zoomRenderTarget=this.initTiledPano(this.qualityManager.getMaxZoomPanoSize(),!1),e){var t=e.width,i=this.zoomRenderTarget.width;this.sceneRenderer.copyCubeMap(e.texture,this.zoomRenderTarget,t,t,i,i),e.texture.dispose(),e.texture.loaded=!1,e.texture.version=0,this.sceneRenderer.deallocateCubeTexture(e.texture),e.texture=null}this.zoomPanoRenderingDisabled=!1}else this.zoomPanoRenderingDisabled=!0},PanoRenderer.prototype.enableUltraHighQualityMode=function(e){if(!this.qualityManager.ultraHighQualityModeEnabled()){var t=this.qualityManager.getPanoSize(a.a.ULTRAHIGH);this.tileDownloader.testDownload(t,l.a.TILE_SIZE,function(t){t&&(this.qualityManager.enableUltraHighQualityMode(),this.setupZoomRenderTarget(),e())}.bind(this))}},PanoRenderer.prototype.activateTiledPano=function(i,o,g){g&&this.clearAllQueuedUploads();for(var n=0;n<l.a.FACES_PER_PANO;n++)this.initTileTree(i.id,n,this.qualityManager.getMaxPossiblePanoSize());this.linkAllTilesAndNodes(i);var a=this.getActiveRenderTargetDescriptor(i.id),A=o;if(A>this.qualityManager.getMaxNavPanoSize()&&(A=this.qualityManager.getMaxNavPanoSize()),!a||A!==a.size){if(a&&t(a.renderTarget),!(a=function(e){for(var t=0;t<b.length;t++){var i=b[t];if(!i.inUse&&i.size===e)return i.inUse=!0,i}return null}(A))){var r=this.initTiledPano(A,!1);(a=e(r.width)).renderTarget=r}a.pano=i,this.resetPanoDescriptor(i.id),this.resetPanoLODDescriptors(i.id),this.resetRenderStatus(i.id,!0,!0)}this.setActiveRenderTargetDescriptor(i.id,a);var C=g?0:1;return this.updateActivePanos(i,C),a.renderTarget},PanoRenderer.prototype.deactivateTiledPano=function(e){var i=this.getActiveRenderTargetDescriptor(e.id);this.isRenderTargetDescriptorValid(i)&&t(i.renderTarget),this.setActiveRenderTargetDescriptor(e.id,null);var o=this.getUploadQueueForPano(e.id);this.clearUploadQueue(o),this.updateActivePanos()},PanoRenderer.prototype.updateActivePanos=(u=[],function(e,t){u.length=0;for(var i=0;i<this.activePanos.length;i++){e&&u.length===t&&u.push(e);var o=this.activePanos[i],g=this.getActiveRenderTargetDescriptor(o.id);e&&o.id===e.id||!this.isRenderTargetDescriptorValid(g)||u.push(o)}e&&t>=u.length&&u.push(e),this.activePanos.length=0,this.activePanos.push.apply(this.activePanos,u)}),PanoRenderer.prototype.getActivePanoCount=function(){return this.activePanos.length},PanoRenderer.prototype.resetRenderStatus=function(e,t,i,o){var g=null;o&&(g=s.getLevelCountForSize(l.a.TILE_SIZE,o)+1);for(var n=function(e,o,g,n){i&&(o.tile.zoomUploaded=!1),t&&(o.tile.uploaded=!1)},a=0;a<l.a.FACES_PER_PANO;a++){this.getTileTree(e,a).breadthFirst({callback:n.bind(this,a),minLevel:g})}},PanoRenderer.prototype.copyBaseRenderStatusToZoomed=function(e){for(var t=s.getLevelCountForSize(l.a.TILE_SIZE,this.qualityManager.getMaxNavPanoSize()),i=function(e,t,i,o){t.tile.zoomUploaded=t.tile.uploaded,t.zoomCovered=t.covered},o=0;o<l.a.FACES_PER_PANO;o++){this.getTileTree(e,o).breadthFirst({callback:i.bind(this,o),maxLevel:t})}},PanoRenderer.prototype.renderPanoTiles=function(){var e=[];return function(t,i,o,n){this.zoomRenderTarget&&this.zoomRenderTarget.width===this.qualityManager.getMaxZoomPanoSize()||this.zoomPanoRenderingDisabled||this.setupZoomRenderTarget(),i=i||this.direction||I.a.FORWARD;var a=this.getActiveRenderTargetDescriptor(t);if(!this.isRenderTargetDescriptorValid(a))throw new g.a("PanoRenderer.renderPanoTiles() -> Cannot render to a pano that is not activated.");for(var A=0;A<l.a.FACES_PER_PANO;A++){var r=this.getTileTree(t,A);e.length=0,r.breadthFirst({saveVisited:e});for(var C=0;C<e.length;C++){var s=e[C];this.queueTileUpload(s.tile,!1,n||0===C&&o)}}this.updateDirection(i)}}(),PanoRenderer.prototype.isRenderTargetDescriptorValid=function(e){return e&&e.renderTarget},PanoRenderer.prototype.isPanoActive=function(e){var t=this.getActiveRenderTargetDescriptor(e);return this.isRenderTargetDescriptorValid(t)},PanoRenderer.prototype.isPanoZoomed=function(e){return this.zoomingActive&&this.zoomPanoId===e},PanoRenderer.prototype.initTileTree=function(e,t,i){var o=this.tileTrees[e];o||(o=[],this.tileTrees[e]=o);var g=o[t];if(!g){var n=s.getLevelCountForSize(l.a.TILE_SIZE,i);g=new s(l.a.TILE_SIZE,n),o[t]=g}},PanoRenderer.prototype.getTileTree=function(e,t){var i=this.tileTrees[e];if(!i)throw new g.a("PanoRenderer.getTileTree() -> Tree array not yet initialized!");var o=i[t];if(!o)throw new g.a("PanoRenderer.getTileTree() -> Tree not yet initialized!");return o},PanoRenderer.prototype.initTiledPano=function(e,t){var i=this.sceneRenderer.renderer,o=(i.context,new THREE.WebGLRenderTargetCube(e,e,{stencilBuffer:!1})),g=new THREE.CubeTexture([]);o.texture=g,g.image=[null,null,null,null,null,null],g.flipY=!0,t?(g.generateMipmaps=!0,g.magFilter=THREE.LinearFilter,g.minFilter=THREE.LinearMipMapLinearFilter):(g.generateMipmaps=!1,g.magFilter=THREE.LinearFilter,g.minFilter=THREE.LinearFilter),g.format=THREE.RGBAFormat,i.setRenderTarget(o),i.setRenderTarget(null);var n=i.properties.get(g);return n.__image__webglTextureCube=n.__webglTexture,o},PanoRenderer.prototype.getUploadQueueForPano=function(e){var t=this.uploadQueues[e];return t||(t=[],this.uploadQueues[e]=t),t},PanoRenderer.prototype.isTileUploaded=function(e){return this.isPanoZoomed(e.panoId)?e.zoomUploaded:e.uploaded},PanoRenderer.prototype.setUploaded=function(e,t){this.isPanoZoomed(e.panoId)?e.zoomUploaded=t:e.uploaded=t},PanoRenderer.prototype.queueTileUpload=function(e,t,i){var o=this.getActiveRenderTargetDescriptor(e.panoId);if(this.isRenderTargetDescriptorValid(o)&&e.downloaded&&!this.isTileUploaded(e)&&(!e.uploadQueued||i)&&(!(e.panoSize>this.qualityManager.getMaxNavPanoSize())||this.zoomingActive)){var g=this.getUploadQueueForPano(e.panoId);i?this.uploadTile(e,!1):(this.shoulPushToFrontOfQueue(e)?this.forceQueue.push(e):t&&this.direction?window.TilePrioritizer.insertSortedPanoTile(g,e,o.pano,this.direction):g.push(e),e.uploadQueued=!0,this.uploadInterval||this.uploadIntervalCancelled||this.refreshUploadInterval(0))}},PanoRenderer.prototype.shoulPushToFrontOfQueue=function(e){return 0===s.getLevelCountForSize(l.a.TILE_SIZE,e.panoSize)},PanoRenderer.prototype.getTopUploadQueue=function(){for(var e=null,t=null,i=v;i<=y;i++)for(var o=0;o<this.activePanos.length;o++)if(e=this.activePanos[o],(t=this.getUploadQueueForPano(e.id)).length>0)switch(i){case v:if(0===t[0].level)return t;break;case y:return t}return null},PanoRenderer.prototype.getNextFromUploadQueue=function(){var e=function(e){var t=e.shift();return t.uploadQueued=!1,t};return function(){if(this.forceQueue.length>0)return e(this.forceQueue);var t=this.getTopUploadQueue();return t&&t.length>0?e(t):null}}(),PanoRenderer.prototype.peekNextFromUploadQueue=function(){if(this.forceQueue.length>0)return this.forceQueue[0];var e=this.getTopUploadQueue();return e&&e.length>0?e[0]:null},PanoRenderer.prototype.clearAllQueuedUploads=function(){this.clearAllUploadQueues(null,0)},PanoRenderer.prototype.clearAllQueuedUploadsForPano=function(e){this.clearAllUploadQueues(e,0)},PanoRenderer.prototype.clearAllUploadQueues=function(e,t){if(e)this.clearUploadQueue(this.getUploadQueueForPano(e),t),this.clearUploadQueue(this.forceQueue,t,e);else{for(var i=0;i<this.activePanos.length;i++){var o=this.activePanos[i];this.clearUploadQueue(this.getUploadQueueForPano(o.id),t)}this.clearUploadQueue(this.forceQueue,t)}},PanoRenderer.prototype.clearUploadQueue=function(e,t,i){null!=t||(t=0);for(var o=0;o<e.length;){var g=e[o];(!i||i&&i===g.tile.panoId)&&g.level>=t?(g.uploadQueued=!1,e.splice(o,1)):o++}},PanoRenderer.prototype.refreshUploadInterval=function(){var e=null;return function(t){this.uploadIntervalCancelled||(e||(e=i.bind(this)),null!=t||(t=h),d||(t=p),this.uploadInterval=window.setTimeout(e,t),this.uploadIntervalDelay=t)}}(),PanoRenderer.prototype.update=function(){var e=performance.now(),t=0;return function(){this.uploadIntervalCancelled=!0,window.clearTimeout(this.uploadInterval),this.uploadInterval=null,//!(i > w || 0 === t) || !this.overlayTilesLoaded && this.usingTileOverlay || (this.updateUploadQueue(this.maxNonBaseUploadsPerFrame, this.maxBaseUploadsPerFrame),
- !(performance.now()-e>h||0===t)||!this.overlayTilesLoaded&&this.usingTileOverlay||(this.updateUploadQueue(this.maxNonBaseUploadsPerFrame,this.maxBaseUploadsPerFrame),e=performance.now()),t++}}(),PanoRenderer.prototype.updateUploadQueue=function(e,t){e||(e=1);for(var i=0,o=0;!(o>=t||i>=e);){var g=this.getNextFromUploadQueue();if(!g)break;if(0!==g.level?i++:o++,!(g.panoSize>this.qualityManager.getMaxNavPanoSize())||this.zoomingActive){var n=this.getActiveRenderTargetDescriptor(g.panoId);this.isRenderTargetDescriptorValid(n)&&this.uploadTile(g,g.forceUpload)}}},PanoRenderer.prototype.updateDirection=function(e){if(e=e||this.direction){this.direction=e;for(var t=0;t<this.activePanos.length;t++){var i=this.activePanos[t],o=this.getUploadQueueForPano(i.id);window.TilePrioritizer.sortPanoTiles(o,i,this.direction)}}},PanoRenderer.prototype.uploadTile=function(){var e={},t=(new THREE.Vector4,n.a.tiling.overlayStyle);return function(i,o){var g=i.panoId,n=i.image,a=i.tileSize,r=i.panoSize,C=i.tileIndex,I=(i.faceTileIndex,i.totalTiles),s=(i.face,i.tileX),l=i.tileY,c=!0,u=!1,d=(this.getPanoDescriptor(g),this.getPanoLODDescriptor(g,r)),h=this.getActiveRenderTargetDescriptor(g),p=h.renderTarget,f=h.size;if(this.isPanoZoomed(g)&&(p=this.zoomRenderTarget,f=this.qualityManager.getMaxZoomPanoSize()),this.isRenderTargetDescriptorValid(h)||(c=!1,u=!1),o||(this.anyUploaded(i.node)&&(c=!1,u=!0),this.isTileUploaded(i)&&(c=!1,u=!1)),c){var m=a/r*f,v=s*a/r*f,y=l*a/r*f;e[a]||(e[a]=this.sceneRenderer.initSizedTexture2D(a,THREE.ClampToEdgeWrapping));var b=e[a];if(this.sceneRenderer.uploadTexture2D(n,b,0,0,a,a),1===t||2===t){var w=1===t?this.overlayTilesBasic:this.overlayTilesEnhanced;this.sceneRenderer.renderToCubeMap(b,p,a,a,0,0,a,a,v,y,m,m,i.cubeFace),this.sceneRenderer.renderToCubeMap(w[r],p,a,a,0,0,a,a,v,y,m,m,i.cubeFace,THREE.NormalBlending,!0,.5)}else this.sceneRenderer.renderToCubeMap(b,p,a,a,0,0,a,a,v,y,m,m,i.cubeFace);d.uploadCount++,this.emit(A.a.TileRenderSuccess,g,r,C,I),d.uploadCount===I&&this.emit(A.a.PanoRenderComplete,g,r,I),this.setUploaded(i,!0),this.addCoverageForNode(i.node)}else this.setUploaded(i,!1);return i.uploadAttempted||(d.uploadAttempts++,this.emit(A.a.TileUploadAttempted,g,r,C,I)),i.uploadAttempted=!0,d.uploadAttempts===I&&this.emit(A.a.UploadAttemptedForAllTiles,g,r,I),u}}(),PanoRenderer.prototype.linkTileAndNode=function(e,t){t.tile=e,e.node=t},PanoRenderer.prototype.linkAllTilesAndNodes=function(e){for(var t=function(t,i,o,g,n){var a=this.getTileDirectoryEntry(e.id,i,g,n);this.linkTileAndNode(a,o)},i=0;i<l.a.FACES_PER_PANO;i++){var o=this.getTileTree(e.id,i);o.breadthFirst({callback:t.bind(this,o,i)})}},PanoRenderer.prototype.anyUploaded=function(e){if(!e)return!1;if(e.tile&&this.isTileUploaded(e.tile))return!0;if(e.children)for(var t=0;t<e.children.length;t++){var i=e.children[t];if(this.anyUploaded(i))return!0}return!1},PanoRenderer.prototype.setNodeCovered=function(e,t){this.isPanoZoomed(e.tile.panoId)?e.zoomCovered=t:e.covered=t},PanoRenderer.prototype.isNodeCovered=function(e){return!!e&&(this.isPanoZoomed(e.tile.panoId)?e.zoomCovered:e.covered)},PanoRenderer.prototype.addCoverageForNode=function(e){if(this.setNodeCovered(e,!0),e.parent&&e.covered){var t=e.parent;this.nodeSubcovered(t)&&this.addCoverageForNode(t,!0)}},PanoRenderer.prototype.calcFullCoverage=function(e){var t=!1;if(e.children)for(var i=0;i<e.children.length;i++){var o=e.children[i];t=t||this.calcFullCoverage(o)}e.covered=e.tile.uploaded||t},PanoRenderer.prototype.nodeSubcovered=function(e){if(!e.children)return!1;for(var t=0;t<e.children.length;t++)if(!e.children[t]||!this.isNodeCovered(e.children[t]))return!1;return!0},PanoRenderer.prototype.resetPanoDescriptor=function(e){this.getPanoDescriptor(e)},PanoRenderer.prototype.getPanoDescriptor=function(e){var t=this.panoDescriptors[e];return t||(t={},this.panoDescriptors[e]=t),t},PanoRenderer.prototype.resetPanoLODDescriptors=function(e){var t=this.getPanoLODDescriptors(e);for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];o.uploadCount=0,o.uploadAttempts=0}},PanoRenderer.prototype.getPanoLODDescriptor=function(e,t){var i=this.getPanoLODDescriptors(e),o=i[t];return o||(o={uploadCount:0,uploadAttempts:0},i[t]=o),o},PanoRenderer.prototype.getPanoLODDescriptors=function(e){var t=this.panoLODDescriptors[e];return t||(t={},this.panoLODDescriptors[e]=t),t},PanoRenderer.prototype.onTileDownloaded=function(e){var t=s.getLevelCountForSize(l.a.TILE_SIZE,e.panoSize),i=this.getTileDirectoryEntry(e.panoId,e.face,t,e.faceTileIndex);if(i.downloaded=!0,i.image=e.image,i.panoSize=e.panoSize,i.tileX=e.tileX,i.tileY=e.tileY,i.totalTiles=e.totalTiles,i.tileIndex=e.tileIndex,i.faceTileIndex=e.faceTileIndex,i.face=e.face,i.cubeFace=c.a.mapFaceToCubemapFace(e.face),i.panoId=e.panoId,i.tileSize=e.tileSize,i.direction=(new THREE.Vector3).copy(e.direction),i.node=null,i.level=s.getLevelCountForSize(l.a.TILE_SIZE,i.panoSize),this.isPanoActive(i.panoId)){var o=this.getTileTree(i.panoId,i.face).getSubNode(i.panoSize,i.tileX,i.tileY);this.linkTileAndNode(i,o),this.queueTileUpload(i,!0)}},PanoRenderer.prototype.getTileDirectoryEntry=function(e,t,i,o){var g=this.tileDirectory[e];g||(g={},this.tileDirectory[e]=g);var n=16384*t+1024*i+o,a=g[n];return a||(a={downloaded:!1,uploaded:!1,zoomUploaded:!1},g[n]=a),a._key=e+":"+t+":"+i+":"+o,a._tileKey=n,a},PanoRenderer.prototype.setZoomingActive=function(e,t,i){this.zoomPanoRenderingDisabled||e===this.zoomingActive&&this.zoomPanoId===t.id||(this.zoomingActive=e,this.zoomPanoId=t.id,this.zoomingActive&&(this.zoomPanoId!==t.id||i)&&this.updateZoomedPanoFromBase(t))},PanoRenderer.prototype.updateZoomedPanoFromBase=function(e){if(!this.zoomPanoRenderingDisabled){var t=this.getActiveRenderTargetDescriptor(e.id);if(t&&t.renderTarget){var i=this.qualityManager.getMaxZoomPanoSize(),o=t.renderTarget,g=t.size;this.sceneRenderer.copyCubeMap(o.texture,this.zoomRenderTarget,g,g,i,i),this.copyBaseRenderStatusToZoomed(e.id)}}},o.a.panoRenderer=new PanoRenderer}();PanoRenderer},function(e,t,i){"use strict";i(100),i(29),i(146),i(86),i(63);var o=i(274),g=i(2);function n(e){for(var t=e.split(","),i=t[0].match(/:(.*?);/)[1],o=atob(t[1]),g=o.length,n=new Uint8Array(g);g--;)n[g]=o.charCodeAt(g);return new Blob([n],{type:i})}t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=document.createElement("canvas"),a=2048,A=2048;i.width=a,i.height=A,i.style.cssText="\n position: fixed;\n left: 0;\n top: 0;\n visibility: hidden;\n z-index: 99999;\n ",document.documentElement.appendChild(i);var r=Object(o.a)(i,e);return new Promise((function(e,o){setTimeout((function(){var C=n(i.toDataURL("image/png"));document.documentElement.removeChild(i),console.log("图:",URL.createObjectURL(C));var I=new FormData;I.append("file",C),I.append("sceneNum",g.a.projectNum),I.append("width",a),I.append("height",A),I.append("cadInfo",JSON.stringify(r.getPadding())),$.ajax({type:"post",url:t?"/api/scene/edit/forApp/uploadFloorplanPng":"/api/scene/edit/uploadFloorplanPng",data:I,headers:{token:window.appLoginToken},processData:!1,contentType:!1,success:function(t){t.cadInfo=r.getPadding(),t.cadInfo.width=a,t.cadInfo.height=A,e(t)},error:function(e){o(e)}})}),50)}))}},function(e,t,i){"use strict";i(106),i(107),i(59),i(53),i(29),i(60);var o=i(23),g=i.n(o),n=(i(95),i(40)),a=i.n(n),A=i(11),r=i.n(A),C=i(33),I=i.n(C),s=(i(75),i(25)),l=i.n(s),c=i(28),u=i.n(c),d=i(47),h=i(99);function p(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function f(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?p(Object(i),!0).forEach((function(t){r()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m=function(){function e(t,i,o){var g=this;l()(this,e),this.renderCount=0,this.canvas=t,this.context=t.getContext("2d"),this.origin=i,this.models=[],this.edit=o,this.prohibitmove=!1,this.saveCount=0,this.scale=1,this.offset={x:0,y:0};var n=this.context.restore,a=this.context.save;this.context.restore=function(){g.saveCount>0&&(--g.saveCount,n.call(g.context))},this.context.save=function(){++g.saveCount,a.call(g.context)},this.center={x:0,y:0,z:0},this.setPadding({top:120,bottom:120,left:120,right:120}),this.init(),this.regEvent()}return u()(e,[{key:"setPadding",value:function(e,t){var i=e.top,o=e.bottom,g=e.left,n=e.right;this.top=i||0,this.bottom=o||0,this.left=g||0,this.right=n||0,this.center=t}},{key:"getPadding",value:function(){var e=(this.canvas.width-this.width)/2,t=(this.canvas.height-this.height)/2;return{left:e,right:e,top:t,bottom:t}}},{key:"init",value:function(){for(;this.saveCount>0;)this.context.restore();this.context.save(),this.canvasWidth=this.canvas.width,this.canvasHeight=this.canvas.height;var e=d.a.getSection(this.origin.reduce((function(e,t){return e.concat(t.points)}),[])),t=e.maxx-e.minx,i=e.maxy-e.miny;this.streamlining||(this.canvasWidth=this.canvasWidth-this.left-this.right,this.canvasHeight=this.canvasHeight-this.top-this.bottom,this.context.translate(this.left,this.top));var o=t/i;if(o*this.canvasHeight>this.canvasWidth?(this.width=this.canvasWidth,this.height=this.canvasWidth/o):(this.height=this.canvasHeight,this.width=o*this.canvasHeight),this.wMultiple=this.canvasWidth/this.domWidth,this.hMultiple=this.canvasHeight/this.domHeight,this.screenOffset={x:0,y:0},this.screenOffset.x+=(this.canvasWidth-this.width)/2,this.screenOffset.y+=(this.canvasHeight-this.height)/2,this.streamlining)this.renderContent=[-.9,.9];else{this.renderContent=[-1,1]}console.log(this.renderContent),this.canvas.scale=this.scale,this.context.translate(this.canvasWidth/2,this.canvasHeight/2),this.section={minx:-this.width/2,maxx:this.width/2,miny:-this.height/2,maxy:this.height/2};var g=d.a.tranProp(this.origin.reduce((function(e,t){return e.concat(t.points)}),[]),this.renderContent),n=g.offset,a=g.prop,A=g.range;if(this.status={offset:n,prop:a,range:A},this.center){var r=this.width/t*this.center.x,C=this.height/i*this.center.z;this.centerOffset={x:r,y:C},this.context.translate(-r,C)}}},{key:"transScreenPoint",value:function(e){return{x:(e.x+this.status.offset.x)*this.status.range/this.status.prop.x*(this.width/2),y:(e.y+this.status.offset.y)*this.status.range/this.status.prop.y*(this.height/2)}}},{key:"transRealPoint",value:function(e){return{x:e.x*this.status.prop.x/(this.status.range*this.width/2)-this.status.offset.x,y:e.y*this.status.prop.y/(this.status.range*this.height/2)-this.status.offset.y}}},{key:"getSortModels",value:function(){return I()(this.models).sort((function(e,t){return(t.getIndex?t.getIndex():0)-(e.getIndex?e.getIndex():0)}))}},{key:"transTranRealPoint",value:function(e){var t=f({},e);return t.x-=this.offset.x,t.y-=this.offset.y,t.x=this.domWidth/2+(t.x-this.domWidth/2)/this.scale,t.y=this.domHeight/2+(t.y-this.domHeight/2)/this.scale,t=this.offsetTranRealPoint(t)}},{key:"offsetTranRealPoint",value:function(e){var t=f({},e);return t.x=(t.x-this.screenOffset.x)*this.wMultiple,t.y=(t.y-this.screenOffset.y)*this.hMultiple,t=this.transRealPoint(d.a.tranPoint(t,this.section))}},{key:"regEvent",value:function(){var e,t,i=this,o=null,g=null,n=null,a=!1;this.down=function(){for(var a=arguments.length,A=new Array(a),r=0;r<a;r++)A[r]=arguments[r];if(!i.prohibitmove){var C,I=A.shift();return 0===A.length&&(C=i.transTranRealPoint(I)),I,g=o=C||I,(n=i.getSortModels()).forEach((function(g){g._down&&(t?g._down.call(g,{x:-1e3,y:-1e3},i):(e=g._down.apply(g,[g.isScale&&g.isScale()||0===A.length?o:i.offsetTranRealPoint(I),i].concat(A)))&&(t=g))})),I.force||!0,!0}},this.move=function(o){if(!i.prohibitmove){n=n||i.getSortModels();var A=i.transTranRealPoint(o);if(t)t._move(A,g,e,i,i.context),a||(a=!0);else{var r=!1;n.forEach((function(e){e._hover&&(r?e._hover({x:-1e3,y:-1e3},g,i,i.context):r=e._hover(A,g,i,i.context))})),i.canvas.style.cursor=r?"pointer":"default"}o}},this.up=function(){i.prohibitmove||(t&&t._up&&t._up(o,g,i,i.context),o=null,g=null,t=null,e=null,null,n=null,a&&i.trigger("change"),a=!1,!1)},h.a.addMouseEvent(this.canvas,{down:this.down,move:this.move,up:this.up,domscale:this.domscale})}},{key:"unifiedExec",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var o=t.shift(),g="FUNCTION_EXEC"===t[t.length-1];return this.models.map((function(e){if(e[o])return g?t[0].apply(e,[e,t.slice(1,t.length-1)]):e[o].apply(e,t)}))}},{key:"render",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=function(){var t=a()(g.a.mark((function t(o){var n,a,A,r,C,I;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=[],e.context.clearRect(-e.canvas.offsetWidth,-e.canvas.offsetHeight,2*e.canvas.offsetWidth,2*e.canvas.offsetHeight),A=0;case 3:if(!(a=e.models[A])){t.next=18;break}if(e.renderCount===o){t.next=6;break}return t.abrupt("return",0);case 6:return e.context.save(),a.isScale&&a.isScale()&&(e.context.translate(e.offset.x,e.offset.y),e.context.scale(e.scale,e.scale)),t.next=10,a.draw(e,e.context);case 10:if(r=t.sent,e.renderCount===o){t.next=13;break}return t.abrupt("return",i(e.renderCount));case 13:e.context.restore(),r&&n.push({model:a,ret:r});case 15:A++,t.next=3;break;case 18:if(!(n.length>0)){t.next=33;break}I=0;case 20:if(!(C=n[I])){t.next=33;break}if(e.renderCount===o){t.next=23;break}return t.abrupt("return",0);case 23:return e.context.save(),C.model.isScale&&C.model.isScale()&&(e.context.translate(e.offset.x,e.offset.y),e.context.scale(e.scale,e.scale)),t.next=27,C.ret(e,e.context);case 27:if(e.renderCount===o){t.next=29;break}return t.abrupt("return",i(e.renderCount));case 29:e.context.restore();case 30:I++,t.next=20;break;case 33:e.rendering=!1;case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();t&&this.renderCount++,this.rendering||(this.rendering=!0,requestAnimationFrame((function(){return i(e.renderCount)})))}}]),e}();t.a=m},function(e,t,i){"use strict";var o=i(33),g=i.n(o),n=i(23),a=i.n(n),A=(i(95),i(40)),r=i.n(A),C=(i(59),i(53),i(29),i(60),i(38),i(25)),I=i.n(C),s=i(28),l=i.n(s),c=i(47),u=i(82),d=i(152),h=function(){function e(t){var i=t.faces;I()(this,e),this.origin=i,this.initFaces()}var t;return l()(e,[{key:"getIndex",value:function(){return this.index||0}},{key:"initFaces",value:function(){var e={};this.origin.forEach((function(t){e[t.id]=t})),this.faces=e}},{key:"getFace",value:function(e){var t=this,i=Object.keys(this.faces).find((function(i){return~t.faces[i].indexOf(e)}));return this.faces[i]}},{key:"getTsFace",value:function(e){var t=[];for(var i in this.faces){var o=this.faces[i].map((function(t){return[e.transScreenPoint(t.points[0]),e.transScreenPoint(t.points[1])]}));o.selected=this.faces[i].selected,t.push(o)}return t}},{key:"draw",value:(t=r()(a.a.mark((function e(t,i){var o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.streamlining?this.lineWidth=2.5:(this.lineWidth=18.6,o=this.getTsFace(t),u.a.faceClip(i,o)),e.abrupt("return",this.asyncDraw.bind(this));case 2:case"end":return e.stop()}}),e,this)}))),function(e,i){return t.apply(this,arguments)})},{key:"asyncDraw",value:function(e,t){var i=this;this.streamlining?Object.keys(this.faces).forEach((function(o){return i.faces[o].forEach((function(o){var n=[],a=o.__furnitures.concat(Object(d.b)(i.faces,o).reduce((function(e,t){return e.push.apply(e,g()(t.__furnitures)),e}),[]));if(0===a.length)n.push(o.points);else{var A=[o.points];a.forEach((function(e){var t,i=e.points,o=A.find((function(e){return c.a.isContainPoint(i[0],e)&&c.a.isContainPoint(i[1],e)}));o&&(t=c.a.lineDistance([o[0],i[0]])>c.a.lineDistance([o[0],i[1]])?[[o[0],i[1]],[i[0],o[1]]]:[[o[0],i[0]],[i[1],o[1]]],A.splice.apply(A,[A.indexOf(o),1].concat(g()(t))))})),n.push.apply(n,A)}n.forEach((function(o){var g=[e.transScreenPoint(o[0]),e.transScreenPoint(o[1])];u.a.lineSelect(t,g,"#fff",i.lineWidth)}))}))})):this.getTsFace(e).forEach((function(e){u.a.faceLine(t,e,i.lineWidth,"#fff")}))}}]),e}();t.a=h},function(e,t,i){"use strict";i(106),i(107),i(59),i(53),i(29),i(60);var o=i(23),g=i.n(o),n=(i(95),i(40)),a=i.n(n),A=i(11),r=i.n(A),C=i(33),I=i.n(C),s=(i(75),i(25)),l=i.n(s),c=i(28),u=i.n(c),d=i(14),h=i(42),p=i(98);function f(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function m(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?f(Object(i),!0).forEach((function(t){r()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):f(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var v=0,y=function(){function e(t,i,o){var g=this;l()(this,e),this.renderCount=0,this.canvas=t,this.context=t.getContext("2d"),this.origin=i,this.models=[],this.edit=o,this.prohibitmove=!1,this.saveCount=0,this.scale=1,this.offset={x:0,y:0};var n=this.context.restore,a=this.context.save;this.context.restore=function(){g.saveCount>0&&(--g.saveCount,n.call(g.context))},this.context.save=function(){++g.saveCount,a.call(g.context)},h.a.copy(this,p.a.create("__renderer__"+v++)),this.init(),this.regEvent()}return u()(e,[{key:"init",value:function(){for(this.canvas.width=this.canvas.offsetWidth,this.canvas.height=this.canvas.offsetHeight;this.saveCount>0;)this.context.restore();this.context.save();1<this.canvas.width/this.canvas.height?(this.height=this.canvas.height,this.width=1*this.canvas.height):(this.width=this.canvas.width,this.height=this.canvas.width/1),this.width>this.height?this.width=this.height:this.height=this.width,this.domWidth=this.canvas.offsetWidth||this.width,this.domHeight=this.canvas.offsetHeight||this.height,this.wMultiple=this.canvas.width/this.domWidth,this.hMultiple=this.canvas.height/this.domHeight,this.screenOffset={x:0,y:0},this.screenOffset.x+=(this.canvas.width-this.width)/2,this.screenOffset.y+=(this.canvas.height-this.height)/2,this.renderContent=[-.7,.7],this.canvas.scale=this.scale,this.context.translate(this.canvas.width/2,this.canvas.height/2),this.section={minx:-this.width/2,maxx:this.width/2,miny:-this.height/2,maxy:this.height/2};var e=d.a.tranProp(this.origin.reduce((function(e,t){return e.concat(t.points)}),[]),this.renderContent),t=e.offset,i=e.prop,o=e.range;this.status={offset:t,prop:i,range:o},console.log(this.width,this.height),this.trigger("restart")}},{key:"transScreenPoint",value:function(e){return{x:(e.x+this.status.offset.x)*this.status.range/this.status.prop*(this.width/2),y:(e.y+this.status.offset.y)*this.status.range/this.status.prop*(this.height/2)}}},{key:"transRealPoint",value:function(e){return{x:e.x*this.status.prop/(this.status.range*this.width/2)-this.status.offset.x,y:e.y*this.status.prop/(this.status.range*this.height/2)-this.status.offset.y}}},{key:"getSortModels",value:function(){return I()(this.models).sort((function(e,t){return(t.getIndex?t.getIndex():0)-(e.getIndex?e.getIndex():0)}))}},{key:"transTranRealPoint",value:function(e){var t=m({},e);return t.x-=this.offset.x,t.y-=this.offset.y,t.x=this.domWidth/2+(t.x-this.domWidth/2)/this.scale,t.y=this.domHeight/2+(t.y-this.domHeight/2)/this.scale,t=this.offsetTranRealPoint(t)}},{key:"offsetTranRealPoint",value:function(e){var t=m({},e);return t.x=(t.x-this.screenOffset.x)*this.wMultiple,t.y=(t.y-this.screenOffset.y)*this.hMultiple,t=this.transRealPoint(d.a.tranPoint(t,this.section))}},{key:"regEvent",value:function(){var e,t,i=this,o=null,g=null,n=null,a=null,A=!1,r=!1;this.down=function(){for(var A=arguments.length,C=new Array(A),I=0;I<A;I++)C[I]=arguments[I];if(!i.prohibit&&!i.prohibitmove){var s,l=C.shift();return 0===C.length&&(s=i.transTranRealPoint(l)),o=l,n=g=s||l,(a=i.getSortModels()).forEach((function(o){o._down&&(t?o._down.call(o,{x:-1e3,y:-1e3},i):(e=o._down.apply(o,[o.isScale&&o.isScale()||0===C.length?g:i.offsetTranRealPoint(l),i].concat(C)))&&(t=o))})),l.force||(r=!0),!0}},this.move=function(g){if(!i.prohibit&&!i.prohibitmove){a=a||i.getSortModels();var C=i.transTranRealPoint(g);if(t)t._move(C,n,e,i,i.context),A||(A=!0);else if(r)i.offset.x+=g.x-o.x,i.offset.y+=g.y-o.y,i.trigger("move"),i.render();else{var I=!1;a.forEach((function(e){e._hover&&(I?e._hover({x:-1e3,y:-1e3},n,i,i.context):I=e._hover(C,n,i,i.context))})),i.canvas.style.cursor=I?"pointer":"default"}o=g}},this.up=function(){i.prohibit||i.prohibitmove||(t&&t._up&&t._up(g,n,i,i.context),g=null,n=null,t=null,e=null,o=null,a=null,A&&i.trigger("change"),A=!1,r=!1)},this.domscale=function(e){i.prohibit||(i.scale+=e>0?.1:-.1,i.scale<.3&&(i.scale=.3),i.trigger("scale"),i.render())},h.a.addMouseEvent(this.canvas,{down:this.down,move:this.move,up:this.up,domscale:this.domscale})}},{key:"unifiedExec",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var o=t.shift(),g="FUNCTION_EXEC"===t[t.length-1];return this.models.map((function(e){if(e[o])return g?t[0].apply(e,[e,t.slice(1,t.length-1)]):e[o].apply(e,t)}))}},{key:"render",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(!isMobile){var i=function(){var t=a()(g.a.mark((function t(o){var n,a,A,r,C,I;return g.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=[],e.context.clearRect(-e.canvas.width/2,-e.canvas.height/2,e.canvas.width,e.canvas.height),A=0;case 3:if(!(a=e.models[A])){t.next=18;break}if(e.renderCount===o){t.next=6;break}return t.abrupt("return",0);case 6:return e.context.save(),a.isScale&&a.isScale()&&(e.context.translate(e.offset.x,e.offset.y),e.context.scale(e.scale,e.scale)),t.next=10,a.draw(e,e.context);case 10:if(r=t.sent,e.renderCount===o){t.next=13;break}return t.abrupt("return",i(e.renderCount));case 13:e.context.restore(),r&&n.push({model:a,ret:r});case 15:A++,t.next=3;break;case 18:if(!(n.length>0)){t.next=33;break}I=0;case 20:if(!(C=n[I])){t.next=33;break}if(e.renderCount===o){t.next=23;break}return t.abrupt("return",0);case 23:return e.context.save(),C.model.isScale&&C.model.isScale()&&(e.context.translate(e.offset.x,e.offset.y),e.context.scale(e.scale,e.scale)),t.next=27,C.ret(e,e.context);case 27:if(e.renderCount===o){t.next=29;break}return t.abrupt("return",i(e.renderCount));case 29:e.context.restore();case 30:I++,t.next=20;break;case 33:e.rendering=!1;case 34:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}();isMobile||(t&&this.renderCount++,this.rendering||(this.rendering=!0,requestAnimationFrame((function(){return i(e.renderCount)}))))}}}]),e}();t.a=y},function(e,t,i){"use strict";i(106),i(107),i(125);var o=i(23),g=i.n(o),n=(i(95),i(40)),a=i.n(n),A=i(44),r=i.n(A),C=(i(119),i(11)),I=i.n(C),s=(i(75),i(105),i(200),i(150),i(151),i(33)),l=i.n(s),c=(i(59),i(53),i(29),i(60),i(38),i(25)),u=i.n(c),d=i(28),h=i.n(d),p=i(98),f=i(42),m=i(14),v=i(66),y=i(46);function b(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function w(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?b(Object(i),!0).forEach((function(t){I()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):b(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var x=0,E=function(e,t){return~t.points.indexOf(e.points[0])&&~t.points.indexOf(e.points[1])},P=function(){function e(t){var i=t.faces,o=t.top,g=t.bottom;u()(this,e),this.lineWidth=2,this.bound={p1:{x:-8.5,y:7},p2:{x:8,y:7},p3:{x:8,y:-7},p4:{x:-8.5,y:-7}},this.origin=i,this.top=o,this.bottom=g,this.initFaces(),f.a.copy(this,p.a.create("__wall__"+x++))}var t;return h()(e,[{key:"getIndex",value:function(){return this.index||0}},{key:"initFaces",value:function(){var e={};this.origin.forEach((function(t){e[t.id]=t})),this.faces=e}},{key:"getFace",value:function(e){var t=this,i=Object.keys(this.faces).find((function(i){return~t.faces[i].indexOf(e)}));return this.faces[i]}},{key:"appointLineSplice",value:function(e,t){var i=this,o=[].concat(l()(Object(y.b)(this.faces,e)),[e]),g=[];t=Object(y.d)({x:t.x,y:t.y}),o.forEach((function(e){var o=i.getFace(e),n=[Object(y.c)(e.points[0],t),Object(y.c)(t,e.points[1])];o.splice.apply(o,[o.indexOf(e),1].concat(n)),g.push(o),Object(y.e)(i.faces),i.trigger("updateLine",{del:[e],change:[],add:n,face:o})})),this.trigger("addPoint",{point:t,faces:g})}},{key:"isPointDel",value:function(e){var t=this,i=[];if(Object.keys(this.faces).forEach((function(o){return t.faces[o].forEach((function(t){~t.points.indexOf(e)&&i.push(t)}))})),!i.length)return!1;for(var o=m.a.lineVector(i[0]),g=1;g<i.length;g++){var n=m.a.lineVector(i[g]);if(Math.abs(n.x)!==Math.abs(o.x)||Math.abs(n.y)!==Math.abs(o.y))return!1}return!0}},{key:"lineHornDel",value:function(e){var t=this;this.isPointDel(e)&&(this.getyPointLines(e).forEach((function(i){var o=i.line,g=o.points.indexOf(e);if(~g){var n=t.getFace(o);if(n){var a=n.indexOf(o),A=n[(a+1)%n.length],r=n[(a-1+n.length)%n.length];if(1===g){var C=Object(y.c)(o.points[0],A.points[1]);n.splice(n.indexOf(o),1,C),n.splice(n.indexOf(A),1),Object(y.e)(t.faces),t.trigger("updateLine",{del:[A,o],change:[],add:[C],face:n})}else{var I=Object(y.c)(r.points[0],o.points[1]);n.splice(n.indexOf(r),1,I),n.splice(n.indexOf(o),1),Object(y.e)(t.faces),t.trigger("updateLine",{del:[r,o],change:[],add:[I],face:n})}}}})),this.trigger("delPoint",{point:[e]}))}},{key:"lineSplice",value:function(e,t,i){var o=this,g=Array.from(new Set(t.map((function(t){return t.points.find((function(t){return~e.points.indexOf(t)}))})))),n=g.map((function(e){return Object(y.d)({x:e.x,y:e.y})})),a=[],A=Object.keys(this.faces).filter((function(t){return o.faces[t].find((function(t){return E(t,e)}))})).map((function(e){return o.faces[e]}));A.map((function(t){return t.find((function(t){return E(t,e)}))})).forEach((function(e,t){g.forEach((function(r,C){var I=e.points.indexOf(r),s=I?[n[C],r]:[r,n[C]],l=y.c.apply(void 0,s);a[C]?a[C].push(A[t]):a[C]=[A[t]],s[I?0:1].x+=i.x,s[I?0:1].y+=i.y,1===g.length&&(e.points[I?0:1].x+=i.x,e.points[I?0:1].y+=i.y),e.points[I]=s[I?0:1],l.joins=e.joins.filter((function(e){return~e.points.indexOf(r)})),l.joins.push(e),e.joins=e.joins.filter((function(e){return!~e.points.indexOf(r)})),e.joins.push(l),l.joins.forEach((function(t){var i=t.joins.indexOf(e);~i&&t.joins.splice(i,1,l),~(i=t.points.indexOf(r))&&(t.points[i]=s[I?1:0])}));var c=A[t].indexOf(e)+(I?1:0);A[t].splice(c>A[t].length?A[t].length-1:c,0,l),o.trigger("addLine",{origin:e,add:l,face:A[t]})}))})),n.forEach((function(e,t){return o.trigger("addPoint",{point:e,faces:a[t]||[]})}))}},{key:"delSurplus",value:function(e){var t=e.line,i=e.bLine,o=m.a.lineVector(t),g=m.a.lineVector(i),n=t.points.indexOf(i.points[0]),a=t.points.indexOf(i.points[1]),A=m.a.pointLineDis(t.points,i.points[0]),r=m.a.pointLineDis(t.points,i.points[1]);if(A=Math.abs(A)<.01?0:A,r=Math.abs(r)<.01?0:r,!(o.x===g.x&&o.y===-g.y||o.x===-g.x&&o.y===g.y)||!(~n&&1===n||~a&&0===a))return 0;if(!(A===r||~n&&0===r||~a&&0===A))return-1;var C=this.getFace(i);if(C===this.getFace(t)&&!(Math.abs(C.indexOf(i)-C.indexOf(t))>1)){var I=[];i.warning=t.warning=!0,I[~a?0:1]=i.points[~a?0:1],I[~a?1:0]=t.points[~a?1:0];var s=y.c.apply(void 0,I);return C.splice(C.indexOf(i),1),C[C.indexOf(t)]=s,Object(y.e)(this.faces),this.trigger("updateLine",{del:[i,t],change:[],add:[s],face:C}),1}}},{key:"longLineSplice",value:function(e){var t=e.line,i=e.bLine,o=m.a.lineVector(t),g=m.a.lineVector(i),n=t.points.indexOf(i.points[0]),a=t.points.indexOf(i.points[1]),A=m.a.pointLineDis(t.points,i.points[0]),r=m.a.pointLineDis(t.points,i.points[1]),C=m.a.lineDistance(i.points);if(A=A<.01?0:A,r=r<.01?0:r,!(o.x===g.x&&Math.abs(o.y)===Math.abs(g.y)||o.y===g.y&&Math.abs(o.x)===Math.abs(g.x))||!~n&&!~a||0!==A||C===r||0!==r||C===A)return{code:0};var I=0===o.x?"y":"x",s=t.points.concat(i.points);(s=s.filter((function(e,t){return s.findIndex((function(t){return t[I]===e[I]}))===t}))).sort((function(e,t){return e[I]-t[I]}));var l=s.indexOf(t.points[0]),c=s.indexOf(t.points[1]);if(Math.abs(c-l)<=1)return{code:-1};for(var u=c-l<0?-1:1,d=[],h=l;u<0?h>c:h<c;h+=u)d.push(Object(y.c)(s[h],s[h+u]));var p=this.getFace(t);return p&&(p.splice.apply(p,[p.indexOf(t),1].concat(d)),this.trigger("updateLine",{del:[t],change:[],add:d,face:p}),Object(y.e)(this.faces)),{code:1,lines:d}}},{key:"queryPointLine",value:function(e){var t=this,i=[];return Object.keys(this.faces).forEach((function(o){return t.faces[o].forEach((function(t){~t.points.indexOf(e)&&i.push(t)}))})),i}},{key:"getyPointLines",value:function(e){var t=this,i=[];return Object.keys(this.faces).forEach((function(o){return t.faces[o].forEach((function(t){var o=t.points.indexOf(e);~o&&i.push({index:o,line:t})}))})),i}},{key:"mergeLine",value:function(){var e=this;Object.keys(this.faces).forEach((function(t){for(var i,o=e.faces[t],g=function(t,i){var g=o[(t+1)%o.length],a=o[(t+2)%o.length],A=o[(t+3)%o.length],r=m.a.lineVector(i),C=m.a.lineVector(a),I=[];if(!m.a.equalPoint(r,C)||m.a.lineDistance(g.points)>.05)return n=t,"continue";var s=[].concat(l()(Object(y.b)(e.faces,i)),[i]),c=[].concat(l()(Object(y.b)(e.faces,g)),[g]),u=[].concat(l()(Object(y.b)(e.faces,a)),[a]),d=[].concat(l()(s),l()(c),l()(u));if(0===Array.from(new Set([].concat(l()(e.queryPointLine(g.points[0])),l()(e.queryPointLine(g.points[1]))).filter((function(e){return!~d.indexOf(e)})))).length){var h=Object(y.d)({x:a.points[1].x,y:a.points[1].y});0===r.x?h.x=i.points[0].x:h.y=i.points[0].y;var p={},f=Array.from(new Set([].concat(l()(a.points),l()(g.points),[A.points[0],i.points[1]])));[].concat(l()(Object(y.b)(e.faces,g)),[g],l()(Object(y.b)(e.faces,a)),[a]).forEach((function(i){var o=e.getFace(i);o?(o.splice(o.indexOf(i),1),p[o.id]||(p[o.id]={add:[],change:[],del:[]}),p[o.id].del.push(i)):n=t}));var v=e.getyPointLines(A.points[0]);v.forEach((function(t){var i=t.line,o=t.index,g=[];g[o]=h,g[o?0:1]=i.points[o?0:1];var n=y.c.apply(void 0,g),a=e.getFace(i);a[a.indexOf(i)]=n,I.push(a),p[a.id]||(p[a.id]={add:[],change:[],del:[]}),p[a.id].add.push(n),p[a.id].del.push(i)})),(v=e.getyPointLines(i.points[1])).forEach((function(t){var i=t.line,o=t.index,g=e.getFace(i),n=[];n[o]=h,n[o?0:1]=i.points[o?0:1];var a=y.c.apply(void 0,n);g[g.indexOf(i)]=a,I.push(g),p[g.id]||(p[g.id]={add:[],change:[],del:[]}),p[g.id].add.push(a),p[g.id].del.push(i)})),Object(y.e)(e.faces),t--,I=Array.from(new Set(I)),e.trigger("addPoint",{point:h,faces:I}),e.correct(),Object.keys(p).forEach((function(t){e.trigger("updateLine",w({},p[t],{face:e.faces[t]})),setTimeout((function(){p[t].add.forEach((function(t){e.trigger("changePosition",t)}))}))})),e.detection({line:i})?0===r.x?h.x=a.points[0].x:h.y=a.points[0].y:e.detection()&&(0===r.x?h.y=i.points[1].y:h.x=i.points[1].x),f=f.filter((function(i){for(var o in e.faces)for(var g=0;g<e.faces[o].length;g++)if(e.faces[o][g].points[0].id===i.id)return g=t,!1;return n=t,!0})),e.trigger("delPoint",{point:f}),Object.keys(p).forEach((function(t){p[t].add.forEach((function(t){return e.trigger("changePosition",t)}))}))}n=t},n=0;i=o[n];n++)g(n,i)}))}},{key:"annexPoints",value:function(){var e=this;Object.keys(this.faces).forEach((function(t){var i=e.faces[t];if(!(i.length<=4))for(var o=function(t){var o=Object.keys(e.faces).reduce((function(t,i){return t.concat(e.faces[i])}),[]),n=i[t];if(m.a.lineDistance(n.points)>.05)return g=t,"continue";var a=n.points[0],A=n.points[1];if(a===A)i.splice(t,1),t--,e.trigger("updateLine",{del:[n],change:[],add:[],face:i});else{var r=[n],C=[];o.forEach((function(i){var o=i.points.indexOf(a),I=e.getFace(i);if(i!==n&&~o){var s=l()(i.points);s[o]=A;var c=y.c.apply(void 0,l()(s));I[I.indexOf(i)]=c,r.push(i),C.push(c)}else g=t})),i.splice(t,1),e.trigger("delPoint",{point:[a]}),e.trigger("updateLine",{del:r,change:[],add:C,face:i}),setTimeout((function(){C.forEach((function(t){return e.trigger("changePosition",t)}))})),t--}g=t},g=0;g<i.length;g++)o(g)})),Object(y.e)(this.faces)}},{key:"spanFaceMore",value:function(){var e=this;Object.keys(this.faces).forEach((function(t){for(var i=e.faces[t],o=Object.keys(e.faces).reduce((function(t,o){return e.faces[o]!==i?t.concat(e.faces[o]):t}),[]),g=function(t){var g=i[t],a=m.a.lineDistance(g.points),A=m.a.lineVector(g),r=o.find((function(e){if(~g.points.indexOf(e.points[0])&&m.a.isContainPoint(e.points[1],g.points)||~g.points.indexOf(e.points[1])&&m.a.isContainPoint(e.points[0],g.points)){var i=m.a.lineVector(e);if(Math.abs(i.y)===Math.abs(A.y)&&Math.abs(i.x===A.x)){var o=m.a.lineDistance(e.points);return n=t,a-o>.01}n=t}else n=t}));if(!r)return n=t,"continue";var C=void 0,I=void 0,s=void 0;r.points[0]===g.points[0]||r.points[1]===g.points[0]?(g.points[0],C=r.points[r.points[0]===g.points[0]?1:0],I=g.points[1],s=1):r.points[0]!==g.points[1]&&r.points[1]!==g.points[1]||(g.points[1],C=r.points[r.points[0]===g.points[1]?1:0],I=g.points[0],s=-1);var c=l()(g.points);c[~s?1:0]=C;var u=y.c.apply(void 0,l()(~s?[C,I]:[I,C])),d=y.c.apply(void 0,l()(c));i[t]=d,i.splice(~s?t+1:t,0,u),e.trigger("updateLine",{del:[g],change:[],add:[u,d],face:i}),setTimeout((function(){e.trigger("changePosition",u),e.trigger("changePosition",d)})),t--,n=t},n=0;n<i.length;n++)g(n);Object(y.e)(e.faces)}))}},{key:"repeatLineHandle",value:function(){var e=this;Object.keys(this.faces).forEach((function(t){for(var i=e.faces[t],o=0;o<i.length;o++){var g=i[o],n=i[o+1===i.length?0:o+1],a=g.points.indexOf(n.points[0]),A=g.points.indexOf(n.points[1]);~a&&~A&&a!==A&&(i.splice(i.indexOf(g),1),i.splice(i.indexOf(n),1),e.trigger("updateLine",{del:[g,n],change:[],add:[],face:i}),--o)}}))}},{key:"autoDelPoint",value:function(){var e=this,t=[];Object.keys(this.faces).forEach((function(i){e.faces[i].forEach((function(e){t.push(e.points[0])}))})),Array.from(new Set(t)).forEach((function(t){return e.lineHornDel(t)}))}},{key:"correct",value:function(){var e=this,t=[],i=!1,o=40;do{i=!1,Object.keys(this.faces).forEach((function(g){return e.faces[g].forEach((function(g){var n=m.a.strictLineVector(g);if(!isNaN(n.x)&&!isNaN(n.y)&&!(0===n.x&&1===Math.abs(n.y)||0===n.y&&1===Math.abs(n.x))){g.error=!0,o--,i=!0;var a=e.getyPointLines(g.points[0]),A=e.getyPointLines(g.points[1]),r=a.length>A.length?1:0;~t.indexOf(g.points[r])&&(r=Number(!r)),t.push(g.points[r]),Math.abs(n.x)>Math.abs(n.y)?g.points[r].y=g.points[(r+1)%2].y:g.points[r].x=g.points[(r+1)%2].x,[].concat(l()(Object(y.b)(e.faces,g)),[g]).forEach((function(t){return e.trigger("changePosition",t)}))}}))}))}while(i&&o>0)}},{key:"handlePolygon",value:function(){var e=this;Object.keys(this.faces).forEach((function(t){for(var i,o=e.faces[t],g=0;g<o.length&&(i=o[g+1===o.length?0:g+1]).points[0]===o[g].points[1];g++);if(g!==o.length){var n=Object(y.c)(o[g].points[1],i.points[0]);o.splice(g+1,0,n),Object(y.e)(e.faces),e.trigger("addLine",{origin:o[g],add:n,face:o})}}))}},{key:"isScale",value:function(){return!0}},{key:"listenLineHandle",value:function(){for(var e,t=this,i=Object.keys(this.faces).reduce((function(e,i){return e.concat(t.faces[i].map((function(e){return{face:t.faces[i],line:e}})))}),[]),o=0;o<i.length;o++)for(var g=i[o],n=g.face,a=g.line,A=0;A<n.length;A++){var r=n[A];if(a!==r&&(!~a.points.indexOf(r.points[0])||!~a.points.indexOf(r.points[1]))){var C=this.delSurplus({line:a,bLine:r});~C?1===C&&A--:this.delSurplus({line:r,bLine:a})}}this.handlePolygon();var I=1e3;do{e=!1;for(var s=Object.keys(this.faces).reduce((function(e,i){return e.concat(t.faces[i].map((function(e){return{face:t.faces[i],line:e}})))}),[]),l=0;l<s.length;l++){var c=s[l].line,u=function(i,o){if(c===o)return"continue";if(~c.points.indexOf(o.points[0])&&~c.points.indexOf(o.points[1]))return"continue";var g=t.longLineSplice({line:c,bLine:o});return 1===g.code?(e=!0,"break"):-1!==g.code||~s.findIndex((function(e){return e.line===o}))?void 0:(s.push({line:o}),"break")};e:for(var d,h=0;d=c.joins[h];h++){switch(u(0,d)){case"continue":continue;case"break":break e}}}}while(e&&--I);this.repeatLineHandle()}},{key:"testing",value:function(e,t){var i,o,g=this,n=[];for(var a in this.faces)for(var A,r=this.faces[a],C=function(o,a){var A=m.a.lineDistance([e,o.points[0]])<.1,C=m.a.lineDistance([e,o.points[1]])<.1;if(A||C){var I=A?o.points[0]:o.points[1],s=r.find((function(e){return e!==o&&(m.a.equalPoint(e.points[0],I)||m.a.equalPoint(e.points[1],I))}));return n.push({face:r,line:o,dire:m.a.verticalLine(o)},{face:r,line:s,dire:m.a.verticalLine(s)}),i=I,"break"}m.a.isContainPoint(t.transScreenPoint(e),o.points.map((function(e){return t.transScreenPoint(e)})),(g.lineWidth+3)/t.scale,3869===o.id)&&n.push({face:r,line:o,dire:m.a.verticalLine(o)})},I=0;A=r[I];I++){if("break"===C(A))break}if(!i&&0===n.length)for(var s in this.faces)if(m.a.pointInside(e,this.faces[s].reduce((function(e,t){return e.concat(t.points)}),[]))){o=this.faces[s];break}return{horn:i,selectLines:n,face:o}}},{key:"updateLine",value:function(e,t,i){var o=this;if(!t&&!i)return!0;var g=m.a.raLineVector(e),n=[],a=(e=this.getOriginLine(e)).joins.filter((function(t){if(E(e,t))return!1;var i=m.a.raLineVector(t);return g.x===i.x&&g.y===i.y||g.x===i.x&&0===i.x&&Math.abs(g.y)===Math.abs(i.y)||g.y===i.y&&0===i.y&&Math.abs(g.x)===Math.abs(i.x)}));if(a.length>0){e.points[0].x+=t,e.points[0].y+=i,e.points[1].x+=t,e.points[1].y+=i;var A=this.detection({line:e});return e.points[0].x-=t,e.points[0].y-=i,e.points[1].x-=t,e.points[1].y-=i,this.lineSplice(e,a,A?{x:0,y:0}:{x:t,y:i}),!1}return~n.indexOf(e.points[0])||n.push(e.points[0]),~n.indexOf(e.points[1])||n.push(e.points[1]),n.forEach((function(g){if(o.initLinePoints){var n=e.points.indexOf(g);t?g.x=o.initLinePoints[n].x+t:g.y=o.initLinePoints[n].y+i}})),!0}},{key:"_hover",value:function(e,t,i){if(!i.edit)return!1;for(var o in this.faces){2!==this.faces[o].selected&&delete this.faces[o].selected;for(var g,n=0;g=this.faces[o][n];n++)delete g.showLabel,2!==g.selected&&delete g.selected}delete this.hover_horn;var a=this.testing(e,i),A=a.horn,r=a.selectLines,C=a.face;return A?this.hover_horn=A:r.forEach((function(e){var t=e.line;t.showLabel=!0,2!==t.selected&&(t.selected=1)})),!A&&0===r.length&&C&&2!==C.selected&&(C.selected=1),i.render(!1),A||r.length>0||C}},{key:"_down",value:function(e,t,i){var o=this;if(!t.edit)return!1;this.limit={};var g=this.testing(e,t),n=g.horn,a=g.selectLines,A=g.face;for(var r in n?this.horn!==n&&(this.horn&&this.changeHorn(!1,i,e),this.hornRets=a.map((function(e){return e.line})),this.horn=n,this.changeHorn(!0,i)):this.horn&&(this.changeHorn(!1,i),delete this.horn,delete this.hornRets),this.faces)this.faces[r]!==A&&this.changeFaceSelect(this.faces[r],!1),this.faces[r].forEach((function(e){!n&&a.find((function(t){return t.line===e}))||o.changeSelect(e,!1,i)}));return!n&&a.length>0&&a.forEach((function(e){var t=e.line;o.changeSelect(t,!0)})),!n&&0===a.length&&A&&this.changeFaceSelect(A,2!==A.selected,e),t.render(!1),a.length>0?{horn:n,selectLines:a}:null}},{key:"saveInit",value:function(){this.initLinePoints||(this.initLinePoints=this.lineInfoIng.line.points.map((function(e){return w({},e)})))}},{key:"_move",value:function(e,t,i,o,g,n,a){var A=this;this.selectInfo=i,this.limit=this.limit||{};var C=i.horn,I=i.selectLines;if(!C){var s=e.x-t.x,l=e.y-t.y,c={x:0,y:0},u=!1;do{for(var d=function(e){var t=I[e];if(A.lineInfoIng&&A.saveInit(),A.lineInfoIng&&A.lineInfoIng.line!==t.line)return A.changeSelect(t.line,!1,n),"continue";var i=t.dire[0]-t.dire[1]>0?"X":"Y",g=t.line.points.map((function(e){return{x:e.x,y:e.y}}));if("X"===i?(c.x=s,u=A.updateLine(t.line,s,0,o)):(c.y=l,u=A.updateLine(t.line,0,l,o)),!u)return a||(A.preMerge=!0,o.up(),A.index=2,o.down({x:(t.line.points[0].x+t.line.points[1].x)/2,y:(t.line.points[0].y+t.line.points[1].y)/2,force:!0},void 0)),{v:void 0};A.index=0;var r=A.detection(t);r||(A.listenLineHandle(),r=A.detection(t)),r?(1!==r?A.listenLineHandle():(A.limit.extremum||(A.limit.start=A.initLinePoints,A.limit.extremum="X"===i?s:l,A.limit.dire=i),A.limit.move=c),t.line.points.forEach((function(e,t){e.x=g[t].x,e.y=g[t].y}))):(!c.x&&!c.y||C||A.trigger("changePosition",A.getOriginLine(t.line)),o.render(!1),C||A.lineInfoIng||!(Math.abs(s)>.1||Math.abs(l)>.1)||(A.lineInfoIng=t),A.preMerge=!1)},h=0;h<I.length;h++){var p=d(h);switch(p){case"continue":continue;default:if("object"===r()(p))return p.v}}}while(!this.lineInfoIng&&(this.lineInfoIng=I[0]));!n&&C&&(c.x||c.y)&&this.trigger("changeHorn",e,C)}}},{key:"_up",value:function(e,t,i){var o=this;this.preMerge||(this.mergeLine(),this.annexPoints(),this.spanFaceMore(),this.mergeLine()),this.correct(),this.listenLineHandle(),this.repeatLineHandle(),this.autoDelPoint(),this.preMerge||this.mergeLine(),delete this.initLinePoints,delete this.lineInfoIng,delete this.selectInfo,Object.keys(this.faces).forEach((function(e){return o.faces[e].forEach((function(e){e.points[0].isolated=o.isPointDel(e.points[0]),e.points[1].isolated=o.isPointDel(e.points[1])}))}));var g=[];Object.keys(this.faces).forEach((function(e){return o.faces[e].forEach((function(e){return g.push(e)}))})),i.origin=g,i.init(),i.render(!1)}},{key:"getOriginLine",value:function(e){return e}},{key:"getFaceLine",value:function(e){return e}},{key:"changeSelect",value:function(e,t,i){if(!1!==i&&(i||t&&2!==e.selected||!t&&2===e.selected))if(t){var o=this._move.bind(this);this._move=function(){this.trigger("selectChange",{line:this.getOriginLine(e),selected:"drag"}),o.apply(void 0,arguments),delete this._move,delete this._up};var g=this._up.bind(this);this._up=function(){this.trigger("selectChange",{line:this.getOriginLine(e),selected:"select"}),g.apply(void 0,arguments),delete this._move,delete this._up}}else!1!==i&&this.trigger("selectChange",{line:this.getOriginLine(e),selected:null});e.selected=t?2:0}},{key:"changeFaceSelect",value:function(e,t,i){(t||!t&&2===e.selected)&&this.trigger("selectFaceChange",{selected:t,face:e,point:i}),e.selected=t?2:0}},{key:"changeHorn",value:function(e,t){if(!1!==t&&(t||!this.showHorn&&e||this.showHorn&&!e)){var i=this._move.bind(this),o=this._up.bind(this);e?(this._move=function(){this.trigger("selectHorn",{lines:this.hornRets,horn:this.horn,selected:"drag"}),i.apply(this,arguments),delete this._move},this._up=function(){this.trigger("selectHorn",{lines:this.hornRets,horn:this.horn,selected:"select"}),o.apply(this,arguments),delete this._up}):this.trigger("selectHorn",{lines:this.hornRets,horn:this.horn,selected:null})}this.showHorn=e}},{key:"detection",value:function(e){for(var t=this,i=Object.keys(this.faces).reduce((function(e,i){return e.concat(t.faces[i])}),[]),o=0;o<i.length;o++)for(var g=i[o],n=0;n<i.length;n++)if(o!==n){var a=i[n];if(m.a.isLineIntersect(g.points,a.points))return!0}for(var A in this.faces){var r=this.faces[A].reduce((function(e,t){return e.push(t.points[0]),e}),[]);if(!m.a.isClockWise(r))return!0}return!1}},{key:"getTsFace",value:function(e){var t=[];for(var i in this.faces){var o=this.faces[i].map((function(t){return[e.transScreenPoint(t.points[0]),e.transScreenPoint(t.points[1])]}));o.selected=this.faces[i].selected,t.push(o)}return t}},{key:"draw",value:(t=a()(g.a.mark((function e(t,i){var o,n,a=this;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n in o={src:gremote+"/pro/images/test.jpg"},this.getTsFace(t),this.bound)o[n]=t.transScreenPoint(this.bound[n]);return Object.keys(this.faces).forEach((function(e){return a.faces[e].forEach((function(e){var t=m.a.lineVector(e);isNaN(t.x)||isNaN(t.y)||1===(0===Math.abs(t.x)&&Math.abs(t.y))||1===Math.abs(t.x)&&0===Math.abs(t.y)?delete e.error:e.error=!0}))})),e.abrupt("return",this.asyncDraw.bind(this));case 5:case"end":return e.stop()}}),e,this)}))),function(e,i){return t.apply(this,arguments)})},{key:"asyncDraw",value:function(e,t){var i=this,o=this.getTsFace(e);o.forEach((function(o){v.a.faceLine(t,o,i.lineWidth/e.scale,"#fff"),i.prohibitImage&&o.selected&&(t.fillStyle=1===o.selected?"rgba(5, 200, 174, 0.3)":"rgba(5, 200, 174, 0.5)",t.fill())}));var g=[];for(var n in this.faces)this.faces[n].forEach((function(o){if(o.selected||o.error||o.warning){var n=[e.transScreenPoint(o.points[0]),e.transScreenPoint(o.points[1])];n.showLabel=o.showLabel,g.push(n),v.a.lineSelect(t,n,o.error?"red":o.warning?"rgb(25,60,255)":1===n.selected?"rgba(241, 255, 0, 0.5)":"rgba(241, 255, 0, 0.8)",i.lineWidth/e.scale)}}));for(var a=0;a<g.length;a++)if(g[a].showLabel){v.a.lineVertial(t,g[a],4/e.scale,6/e.scale,3/e.scale);break}o.forEach((function(o){return o.forEach((function(o){v.a.pointSelect(t,o[0],i.lineWidth/e.scale,0,"#fff","#00c8ae"),v.a.pointSelect(t,o[1],i.lineWidth/e.scale,0,"#fff","#00c8ae")}))})),this.horn&&v.a.pointSelect(t,e.transScreenPoint(this.horn),14*.57/e.scale),this.hover_horn&&v.a.pointSelect(t,e.transScreenPoint(this.hover_horn),14*.57/e.scale)}}]),e}();t.a=P},function(e,t,i){"use strict";(function(e){i(106),i(107),i(200),i(150),i(151);var o=i(11),g=i.n(o),n=(i(75),i(39),i(119),i(33)),a=i.n(n),A=(i(59),i(53),i(29),i(60),i(42)),r=i(265),C=i(266),I=i(278),s=i(279),l=i(14),c=i(280),u=i(281),d=i(46),h=i(214),p=i(285),f=i(282),m=i(98),v=i(283),y=i(262),b=i(3);function w(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function x(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?w(Object(i),!0).forEach((function(t){g()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function E(e,t){var i,o=e.wall,g=e.CAD,n={};Object.keys(o.faces).forEach((function(e){return n[e]=g.getFaceCamera(e)}));var a=new v.a({faces:o.faces,label:g.getLabel?g.getLabel():{},top:o.top,bottom:o.bottom,cameras:n}),A=0;function r(){var e=a.getLength(),t={len:e,revoke:!(A<=0),reduction:!(A>=e-1)};g.trigger("stateChange",t)}return{preservationState:function(){clearTimeout(i),i=setTimeout((function(){var e={};Object.keys(o.faces).forEach((function(t){return e[t]=g.getFaceCamera(t)})),a.setLength(++A),a.push({faces:o.faces,label:g.getLabel?g.getLabel():{},top:o.top,bottom:o.bottom,cameras:e}),r()}),16)},revokeState:function(){t(a.get(--A)),r()},reductionState:function(){t(a.get(++A)),r()},getStateData:function(){return a.get(A)}}}function P(e,t){var i,o=e.renderer,g=e.wall,n=e.CAD,r=new s.a(o,t.deg,g);return r.prohibitWH=t.show,o.models.push(r),o.render(!1),o.listen("move",r.calcFacesArea.bind(r)),o.listen("scale",r.calcFacesArea.bind(r)),o.listen("restart",r.calcFacesArea.bind(r)),r.listen("changeFaceAttr",(function(e){var t=o.transRealPoint(e.textPoint),i=e.map((function(e){return e.points[0]}));if(!l.a.pointInside(t,i)){var g=n.getFaceCamera(e.id),A=g.map((function(e){var i={x:e.position.x,y:e.position.z};return l.a.lineDistance([i,t])}));if(A.length>0){var r=A.indexOf(Math.min.apply(Math,a()(A)));~r&&(t={x:g[r].position.x,y:g[r].position.z})}}n.trigger("changeFaceAttr",{face:e,area:e.area,position:t,name:e.name})})),{getLabel:function(){return r},addLabel:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"Number"===A.a.getType(e.deg)&&(r.deg=e.deg)||(r.deg=0),void 0!==e.show&&(r.prohibitWH=e.show),t&&(clearTimeout(i),i=setTimeout((function(){return o.trigger("change")}),1e3)),o.render(!1)}}}function T(e,t,i){var o=e.renderer,g=new I.a(t,i);return o.models.push(g),o.render(!1),{setPosition:function(e,t){g.point=e,g.angle=t,o.render(!1)}}}function D(e,t){var i=e.renderer,o=e.CAD,g=new c.a(i);return g.push(t),i.models.push(g),i.render(!1),g.listen("activeChange",(function(e){o.trigger("routeActiveChange",e)})),{pushRoute:function(e){g.push(e),i.render(!1)},activeRoute:function(e){if(!(g.routes.length<=e)){var t=g.testing(g.routes[e],i);t.length>1?g.downModule={point:g.routes[e],indexs:t}:delete g.downModule,g.active=e,i.up(),i.render(!1)}},popRoute:function(e){g.delete(e),i.render(!1)},clearRoutes:function(){g.clear(),i.render(!1)}}}function M(e,t,i){return Object.keys(e).forEach((function(o){t[o]=function(){for(var g=arguments.length,n=new Array(g),a=0;a<g;a++)n[a]=arguments[a];var A=e[o].apply(e,[i].concat(n));delete t[o],Object.keys(A).forEach((function(e){t[e]=A[e]}))}})),e}function S(e,t){var i=a()(e);for(e.forEach((function(e,i){e.__firPointDis=l.a.pointLineDis(e.points,t)})),i.sort((function(e,t){return e.__firPointDis-t.__firPointDis}));i.length;){var o=i[0],g=x({},t),n=l.a.lineVector(o);if(Math.abs(n.x)>Math.abs(n.y)?g.y=o.points[0].y+g.x/n.x*n.y:g.x=o.points[0].x+g.y/n.y*n.x,l.a.isContainPoint(g,o.points))return{line:o,point:g};i.shift()}}function R(e,t,i,o,g){var n=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:g;if(!n){var A=a===g;g=t.transTranRealPoint(g),A&&(a=x({},g))}var r=S(Object.keys(i.faces).reduce((function(e,t){return e.concat(i.faces[t])}),[]),g),C=r.line,I=r.point;if("point"!==o)Object(h.b)(e,t,i,C,I,o,a)?t.trigger("change"):publicObjectSet.gui.showInfo(b.a.get("当前位置无法添加建筑部件。"));else{var s;for(s=0;s<C.__furnitures.length&&!l.a.isContainPoint(I,C.__furnitures[s].points);s++);s===C.__furnitures.length?(i.appointLineSplice(C,I),t.trigger("change"),t.render(!1)):publicObjectSet.gui.showInfo(b.a.get("当前位置已存在建筑部件。"))}}function k(e,t,i,o){if(o){Object.keys(i.faces).forEach((function(e){return i.faces[e].forEach((function(e){e.__furnitures.forEach((function(e){t.models.splice(t.models.indexOf(e),1)}))}))})),Object.keys(i.faces).forEach((function(e){return delete i.faces[e]}));var g=Object(d.a)(o),n=g.faces,a=g.top,A=g.bottom,r=g.houseInfo;Object.keys(n).forEach((function(e){return i.faces[n[e].id]=n[e]})),Object(h.a)(e,i,t),i.top=a,i.bottom=A,i.trigger("changeFace"),t.origin=n.reduce((function(e,t){return e.concat(t)}),[]),t.init(),e.getLabel&&(e.getLabel().faces=n),e.addLabel({area:r.area,deg:r.deg},!1),e.getLabel().calcFacesArea(),t.render(!1)}}e.gremote="";var O=0;t.a=function(t,i,o,g){var n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=Object(d.a)(i),A=new r.a(t,a.faces.reduce((function(e,t){return e.concat(t)}),[]),n),I=new C.a(a),s=new u.a(A,!1),l=m.a.create("__CAD__"+O++);l.dispatcher=m.a.create("__CAD__dispatcher__"+O++),I.prohibitImage=n,I.top=a.top,I.bottom=a.bottom,A.models.push(s),A.models.push(I),Object(h.a)(l,I,A),Object(f.a)(l,A,I),s.listen("update",(function(e){I.prohibitImage=!e,l.addLabel({show:e},!1),A.render(!1)}));var c=x({wall:I,renderer:A},Object(p.a)(l,I,A,s,g),{getFace:function(){return I.faces},getFacePoints:function(e){var t=I.faces[e]||[];return Array.from(new Set(t.reduce((function(e,t){return e.concat(t.points)}),[])))},prohibit:function(){return A.prohibitmove=!0},enable:function(){return A.prohibitmove=!1},getAttr:function(){return{top:I.top,bottom:I.bottom}},addMesh:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return R.apply(void 0,[l,A,I].concat(t))}});for(var v in I.faces){var b=c.getFaceCamera(v)[0];b&&(I.faces[v].group=b.roomIndex,I.faces[v].subgroup=b.floorIndex)}return Object.keys(c).forEach((function(e){return l[e]=c[e]})),M({setPosition:T,addLabel:P,pushRoute:D,preservationState:E},l,{renderer:A,wall:I,CAD:l}),l.addLabel({area:a.houseInfo.area,deg:a.houseInfo.deg},!1),l.preservationState((function(e){return k(l,A,I,e)})),l.uploadCADImg=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Object(y.a)(l.getStateData(),t).then((function(t){e&&e(t,!0)})).catch((function(t){e&&e(null,!1)}))},A.listen("change",(function(){return l.preservationState()})),A.render(),l.hideLabel=function(){A.prohibit=!0,A.scale=1,A.offset={x:0,y:0},s.seftShow=!1,l.addLabel({show:!0},!1),A.render(!1)},l.showLabel=function(){A.prohibit=!1,s.seftShow=!0,l.addLabel({show:!1},!1),A.render(!1)},e.CAD=l,l}}).call(this,i(180))},function(e,t,i){t.f=i(56)},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,o=new Array(t);i<t;i++)o[i]=e[i];return o}},function(e,t,i){var o=i(269);e.exports=function(e,t){if(e){if("string"==typeof e)return o(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(i):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?o(e,t):void 0}}},function(e,t,i){var o=i(68);e.exports=function(e,t){if(!o(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,i,o){"use strict";o(52),o(105);var g=o(11),n=o.n(g),a=(o(39),o(86),o(38),o(63),o(23)),A=o.n(a),r=(o(95),o(40)),C=o.n(r),I=(o(59),o(53),o(29),o(60),o(2)),s=o(3),l=WebUploader.create({server:"api/scene/edit/uploadObjAndImg",duplicate:!0,pick:{id:"#uploadPicker",label:s.a.get("添加文件")},accept:{extensions:"zip",mimeTypes:"application/zip"},multiple:!1,fileNumLimit:1,resize:!1}),c=$(".upload_box"),u=c.find("#uploadList");l.on("uploadBeforeSend",(function(e,t,i){t.sceneNum=I.a.projectNum,i.token=window.appLoginToken})),l.on("fileQueued",(function(e){c.find(".upload_info").text(""),u.append('<div id="'+e.id+'" class="item"><h4 class="info"><i class="iconfont icon_close"></i>'+e.name+'</h4><p class="state">'+s.a.get("等待上传...")+"</p></div>")})),l.on("uploadProgress",(function(e,t){var i=$("#"+e.id),o=i.find(".progress .progress-bar");o.length||(o=$('<div class="progress progress-striped active" style="height:3px"><div class="progress-bar" role="progressbar" style="width: 0%;height:100%;background-color:#02c8ae"></div></div>').appendTo(i).find(".progress-bar"),i.find(".icon_close").remove()),i.find("p.state").text(s.a.get("上传中")),o.css("width",100*t+"%")})),l.on("uploadSuccess",(function(e,t){$("#"+e.id).find("p.state").text(s.a.get("已上传")),l.removeFile(e),0!=t.code?(c.find(".upload_info").text(s.a.get(t.msg)),$("#"+e.id).find("p.state").text(s.a.get("上传出错"))):$("#"+e.id).find("p.state").text(s.a.get("已上传"))})),l.on("uploadError",(function(e){$("#"+e.id).find("p.state").text(s.a.get("上传出错"))})),l.on("uploadComplete",(function(e){$("#"+e.id).find(".progress").fadeOut()})),l.on("uploadFinished",(function(){l.reset()})),c.find(".header a").on("click",(function(){c.removeClass("show")})),u.on("click",".icon_close",(function(){var e=$(this).parents(".item");l.removeFile(e.attr("id"),!0),e.fadeOut((function(){e.remove()}))})),$("#modellUp").on("click",(function(){c.addClass("show"),u.empty(),c.find(".upload_info").text(""),l.getFiles().forEach((function(e){l.removeFile(e,!0)})),l.reset()})),$("#modelDown").on("click",(function(){$(".waiting").addClass("showloading"),$.ajax({url:"api/scene/edit/downloadTexData?sceneNum=".concat(I.a.projectNum),type:"POST",headers:{token:window.appLoginToken},success:function(e){e.code,location.href=e.msg},error:function(e){}}).always((function(){$(".waiting").removeClass("showloading")}))})),$(".webuploader-upload-button").on("click",(function(){c.find(".upload_info").text(""),l.upload()}));o(124);var d=o(44),h=o.n(d);var p=window,f=function(e,t,i,o){function g(){(G="object"==h()(i)?i:t.src||o?A:document.createElement("canvas")).width=l,G.height=c,W=G.getContext("2d")}function n(e){if(e){var t,i=W.getImageData(0,0,l,c),o=i.data;for(t=0;ge>t;t+=4)o[t]=e[t]*ne|0,o[t+1]=e[t+1]*ne|0,o[t+2]=e[t+2]*ne|0,o[t+3]=e[t+3]*ne|0;return i}return W.getImageData(0,0,l,c)}function a(e,t,i,o,g){return.5*(o-t+(2*t-5*i+4*o-g+(3*(i-o)+g-t)*e)*e)*e+i}var A,r;if(t||(t=e.input,i=e.output,o=e.inputRemovable,e.scale&&(e=e.scale)),t.src)if(A=document.createElement("canvas"),null!=t.naturalWidth)A.width=t.naturalWidth,A.height=t.naturalHeight;else if(null!=t.runtimeStyle){var C=t.runtimeStyle,I=C.width,s=C.height;C.width="auto",C.height="auto",A.width=t.width,A.height=t.height,C.width=I,C.height=s}else{I=t.width,s=t.height;t.removeAttribute&&(t.removeAttribute("width"),t.removeAttribute("height")),A.width=t.width,A.height=t.height,t.width=I,t.height=s}else A=t;r=A.getContext("2d"),t.src&&r.drawImage(t,0,0);var l,c,u=A.width,d=A.height,f=r.getImageData(0,0,u,d).data;if(!u||!d)return!1;(t.src||o)&&A.clearRect(0,0,u,d),"object"==h()(e)?e.width?(l=e.width+.5|0,c=e.height+.5|0):(l=u*e.scaleX+.5|0,c=d*e.scaleY+.5|0):(l=e*u+.5|0,c=e*d+.5|0);var m,v,y,b,w,x,E,P,T,D,M,S,R,k,O,L,B,F,j,N,H,z,V,G,W,U,Q,Y,Z,X,J,K,q,_,$,ee=l<<2,te=u<<2,ie=0,oe=0,ge=ee*c,ne=255.99/255,ae=l/u,Ae=c/d,re=ae*Ae;if(ae>1||Ae>1)for(g(),Q=(U=n()).data,b=0;c>b;b++)for(z=(v=b/Ae)-(T=0|v),Z=T*te,Y=1>T?Z:Z-te,d-2>T?(X=Z+te,J=(T+2)*te):X=J=T>d-2?Z:Z+te,y=0;l>y;y++,oe+=4)q=(P=0|(m=y/ae))<<2,u-2>P?(_=q+4,$=q+8):_=$=P>u-2?q:q+4,F=a(z,a(V=m-P,f[Y+(K=1>P?q:q-4)],f[Y+q],f[Y+_],f[Y+$]),a(V,f[Z+K],f[Z+q],f[Z+_],f[Z+$]),a(V,f[X+K],f[X+q],f[X+_],f[X+$]),a(V,f[J+K],f[J+q],f[J+_],f[J+$]))*ne|0,++q,++_,++$,N=a(z,a(V,f[Y+ ++K],f[Y+q],f[Y+_],f[Y+$]),a(V,f[Z+K],f[Z+q],f[Z+_],f[Z+$]),a(V,f[X+K],f[X+q],f[X+_],f[X+$]),a(V,f[J+K],f[J+q],f[J+_],f[J+$]))*ne|0,++q,++_,++$,H=a(z,a(V,f[Y+ ++K],f[Y+q],f[Y+_],f[Y+$]),a(V,f[Z+K],f[Z+q],f[Z+_],f[Z+$]),a(V,f[X+K],f[X+q],f[X+_],f[X+$]),a(V,f[J+K],f[J+q],f[J+_],f[J+$]))*ne|0,++q,++_,++$,j=a(z,a(V,f[Y+ ++K],f[Y+q],f[Y+_],f[Y+$]),a(V,f[Z+K],f[Z+q],f[Z+_],f[Z+$]),a(V,f[X+K],f[X+q],f[X+_],f[X+$]),a(V,f[J+K],f[J+q],f[J+_],f[J+$]))*ne|0,Q[oe]=F>=0?256>F?F:255:0,Q[oe+1]=N>=0?256>N?N:255:0,Q[oe+2]=H>=0?256>H?H:255:0,Q[oe+3]=j>=0?256>j?j:255:0;else{if(p.Float32Array)B=new Float32Array(ge);else for(B=[],oe=0;ge>oe;++oe)B[oe]=0;for(v=0;d>v;v++)for(w=(E=0|(b=v*Ae))*ee,(L=!!((E-(b+Ae|0))*(d-1-v))<<1)&&(R=E+1-b,k=b+Ae-E-1),m=0;u>m;m++,ie+=4)switch(oe=w+((x=0|(y=m*ae))<<2),(O=!!((x-(y+ae|0))*(u-1-m)))&&(M=x+1-y,S=y+ae-x-1),F=f[ie],N=f[ie+1],H=f[ie+2],j=f[ie+3],O+L){case 0:B[oe]+=F*re,B[oe+1]+=N*re,B[oe+2]+=H*re,B[oe+3]+=j*re;break;case 1:D=M*Ae,B[oe]+=F*D,B[oe+1]+=N*D,B[oe+2]+=H*D,B[oe+3]+=j*D,D=S*Ae,B[oe+4]+=F*D,B[oe+5]+=N*D,B[oe+6]+=H*D,B[oe+7]+=j*D;break;case 2:D=ae*R,B[oe]+=F*D,B[oe+1]+=N*D,B[oe+2]+=H*D,B[oe+3]+=j*D,D=ae*k,B[oe+=ee]+=F*D,B[oe+1]+=N*D,B[oe+2]+=H*D,B[oe+3]+=j*D;break;default:D=M*R,B[oe]+=F*D,B[oe+1]+=N*D,B[oe+2]+=H*D,B[oe+3]+=j*D,D=S*R,B[oe+4]+=F*D,B[oe+5]+=N*D,B[oe+6]+=H*D,B[oe+7]+=j*D,D=M*k,B[oe+=ee]+=F*D,B[oe+1]+=N*D,B[oe+2]+=H*D,B[oe+3]+=j*D,D=S*k,B[oe+4]+=F*D,B[oe+5]+=N*D,B[oe+6]+=H*D,B[oe+7]+=j*D}g(),U=n(B)}if(W.putImageData(U,0,0),"string"==typeof i){var Ce;if("png"===i||"jpeg"===i)return(Ce=o&&t.src?t:new Image).width=l,Ce.height=c,Ce.src=G.toDataURL("image/"+i,.85),Ce;if("png-src"===i||"jpeg-src"===i)return G.toDataURL("image/"+i.split("-")[0],.85)}return G},m=o(6),v=o(4),y=o(10),b=function(e,t){var i,o,g,n,a=function(e){for(var t=!1,i=3;i<e.length;i+=4)if(255!=e[i]){t=!0;break}return t?"png":"jpeg"};!function(e){o=document.createElement("canvas"),g=o.getContext("2d"),function(e){o.width=e.width,o.height=e.height,g.drawImage(e,0,0,e.width,e.height)}(e);var n=g.getImageData(0,0,e.width,e.height).data;i=t.oldType||a(n)}(e);var A=e.width*e.height,r=t.maxSize*t.maxSize/A,C=t.maxWeight/t.weight,I=function(e){n=f(Math.sqrt(e),o,i)};C<1?I("jpeg"==i?r<1?r:C/.9:Math.min(r,C)):r<1&&I(r);var s=n||new Image,l=n||e;if(!s.base64Src){var c=y.default.dataURLtoBlob(l.src);c.size>t.maxWeight&&v.a.info("reOverWeight "+(c.size-t.maxWeight)/1024+"KB"),t.info&&(t.info.size=c.size),s.base64Src=l.src,s.src=window.URL.createObjectURL(c)}return t.info&&!t.info.size&&(t.info.size=t.oldSize),s},w=(o(72),function(e,t,i,o){var g=$(t).find("a"),n=$(t).find("ul"),a=function(e){return e.replace("\r","").replace("\n","").replace("\t","")};0===e.length&&e.push("空");for(var A=0;A<e.length;A++){var r=$("<li>"+e[A]+"</li>");n.append(r)}o&&o.option?g.html(o.option):o&&!o.option&&o.initOption?g.html(o.initOption):g.html(e[0]);var C=!1,I=!1,s=!1,l=!1,c=!1;g.on("mouseover",(function(){g.addClass("focus"),C=!0})),g.on("mouseout",(function(){s||g.removeClass("focus"),C=!1,c=!1})),n.on("mouseover",(function(){I=!0,n.children().removeClass("hover");var e=event.target;for(l=!1;"LI"!=e.nodeName;)e=e.parentElement,l=!0;$(e).addClass("hover")})),n.on("mouseout",(function(){I=!1,l=!1})),$(document).on("mousedown",(function(e){C?(c=!0,s=!0,g.addClass("focus")):I||l||(n.addClass("hide"),g.removeClass("focus"),s=!1)})),$(document).on("mouseup",(function(e){if(C)if(n.hasClass("hide")&&c){n.removeClass("hide");for(var t=0,A=n.children(),r=A.length;t<r;t++)A.eq(t).text()===g.text()?A.eq(t).addClass("hover"):A.eq(t).removeClass("hover")}else n.hasClass("hide")||n.addClass("hide");else if(I||l){for(var u=e.target;"LI"!=u.nodeName;)u=u.parentElement;(!i||"空"==u.innerHTML||o&&o.noCallback)&&g.html(a(u.innerHTML)),"空"!==u.innerHTML&&i&&i(a(u.innerText),g.attr("index"),(function(){g.html(a(u.innerHTML))})),$(u).removeClass("hover"),n.addClass("hide"),g.removeClass("focus"),s=!1}else I||l||(n.addClass("hide"),g.removeClass("focus"),s=!1)})),this.getValue=function(){return g.text()},this.selectFromOutSide=function(e){g.text(e),i&&i(e)}}),x=o(174),E=o(16),P=function(e){e.warnText,this.state=0,this.panel=e.panel,this.$container=e.$container,this.$input=e.$input,this.$label=$('<div class="warnLabel">'+e.warnText+"</div>"),this.safeTopHeight=e.safeTopHeight||0,e.$container.append(this.$label)};P.prototype.ifWarn=function(e){var t=this;if(this.state!=e){var i=function(){this.ifWarn(0)}.bind(this);e?(this.updatePos(),this.$label.addClass("show"),this.$input.addClass("warning"),this.posUpdateBind=function(){t.updatePos()},$(this.panel).on("scroll",this.posUpdateBind),$(this.panel).on("wheel",this.NoScroll),$(this.panel).on("touchmove",this.NoScroll),$(this.$input).on("focus",i)):(this.$label.removeClass("show"),this.$input.removeClass("warning"),$(this.panel).off("scroll",this.posUpdateBind),$(this.panel).off("wheel",this.NoScroll),$(this.panel).off("touchmove",this.NoScroll),$(this.$input).off("focus",i)),this.state=e}},P.prototype.NoScroll=function(e){e.stopPropagation(),e.preventDefault()},P.prototype.updatePos=function(){var e=E.a.getOffset("top",this.$input[0],this.panel);(e-this.safeTopHeight<this.panel.scrollTop||e-this.safeTopHeight+this.$input.height()>this.panel.scrollTop+this.panel.clientHeight)&&(this.panel.scrollTop=e-this.safeTopHeight),this.$label.css("margin-top",-(33+this.panel.scrollTop)+"px")};var T,D=P,M=o(7),S=(o(118),o(0)),R=o(13),k=o(79),O=o(89),L=o(61),B=o(173),F=o(92),j=(o(32),o(182),o(170)),N=o(144),H=o(1),z=o(101),V=o(17),G=$(".myAccount-cutAvatar input"),W=$("#myAccount-cutAvatar-img"),U={aspectRatio:1,viewMode:0,radius:.5,preview:".myAccount-cutAvatar-img-preview"},Q=null;$(".myAccount-cutAvatar button.submit").click((function(){G.attr("accept","image/*"),$(".myAccount-cutAvatar").addClass("hide"),function(){var e=$("#myAccount-cutAvatar-img"),t=$("#showInformationLogo"),i=e.cropper("getCroppedCanvas");$(".waiting").addClass("showloading");var o=i.toDataURL("png"),g=new Image;g.src=o,g.onload=function(){var e=y.default.dataURLtoBlob(o),i=b(g,{weight:e.size,maxWeight:Q.maxWeight,maxSize:Q.size});t.css("background-image","url('"+i.src+"')"),t.css("display","block"),Q.doneFun(i)}.bind(this)}()})),$(".myAccount-cutAvatar .header a").click((function(){G.attr("accept","image/*"),$(".myAccount-cutAvatar").addClass("hide")})),$(".myAccount-cutAvatar button.cancel").click((function(){G.attr("accept","image/*"),$(".myAccount-cutAvatar").addClass("hide")})),G.change((function(){var e,t=this.files;if(W.data("cropper")&&t&&t.length){e=t[0],/^image\/\w+$/.test(e.type)?(T&&URL.revokeObjectURL(T),T=URL.createObjectURL(e),W.cropper("destroy").attr("src",T).cropper(U),G.val(""),$(".myAccount-cutAvatar").removeClass("hide")):publicObjectSet.gui.showAskBox("",s.a.get("请选择一个图像文件!"));var i=setInterval((function(){$(".myAccount-cutAvatar-main span:first").hasClass("cropper-view-box")&&($(".cropper-view-box").css("borderRadius",100*U.radius+"%"),clearInterval(i))}),5)}}));var Y=function(e){this.elem=e.elem,this.doneFun=e.done,this.aspectRatio=e.aspectRatio||1,this.radius=e.radius||0,this.size=e.size||512,this.maxWeight=e.maxWeight||419430.4,this.title=s.a.get(e.title),this.elem.on("click",this.importImg.bind(this)),this.cropBoxSize=e.cropBoxSize,this.containerSize=e.containerSize,this.fileExt=e.fileExt};Y.prototype.importImg=function(e){$(".myAccount-cutAvatar-main>div:last").css("display","block"),$(".myAccount-cutAvatar-main>div:first").addClass("logo-cutAvatar"),$(".myAccount-cutAvatar .header>span").text(this.title),this.initCropper()},Y.prototype.initCropper=function(){U.aspectRatio=this.aspectRatio,U.radius=this.radius,this.cropBoxSize&&(this.cropBoxSize.width!=this.cropBoxSize.height&&(U.aspectRatio=NaN),U.zoomable=!0,U.cropBoxResizable=!1,U.minCropBoxWidth=this.cropBoxSize.width,U.minCropBoxHeight=this.cropBoxSize.height,U.minContainerWidth=this.cropBoxSize.width,U.minContainerHeight=this.cropBoxSize.height,U.data={width:this.cropBoxSize.width,height:this.cropBoxSize.height,x:0,y:0,scaleX:1,scaleY:1}),this.containerSize&&($(".myAccount-cutAvatar").find(".logo-cutAvatar").css({width:this.containerSize.width+"px",height:this.containerSize.height+"px"}),U.minContainerWidth=this.containerSize.width,U.minContainerHeight=this.containerSize.height),this.fileExt&&G.attr("accept","image/"+this.fileExt),W.cropper(U),URL?G.click():G.prop("disabled",!0).addClass("disabled"),Q=this};var Z,X=Y,J=o(22);o(262);window.Promise||(window.Promise=t("promise-polyfill")),console.log("Config:",I.a),isMobile&&(Z=o(181).default);var K,q={enabled:!1,modes:{},scroller:{},global:{},selectList:{},inputAreas:{},gc:null,floorplaneInfo:null,unsavedNewTags:[],saveFailTags:[],mainDesign:{},allHotspots:[]};q.init=function(){K=S.a.player,q.guider=K.guider},isMobile&&(q.atPanel="menu"),2!=I.a.setSpotType&&(q.createTag=function(){K.updateIntersect({notTag:!0});var e,t=(new THREE.Matrix4).getInverse(K.model.matrixWorld.clone()),i=K.intersect.point.clone().applyMatrix4(t),o=null!=q.tempPosData,g={label:"",description:"",position:i,state:"mark",style:q.snapInfo&&q.snapInfo.style,snapInfo:{normal:K.intersect.normal,panoId:K.currentPano.id,nodeStart:K.position.clone(),nodeEnd:i.clone()}};o?(e=q.tempPosData.sid,g.label=q.tempPosData.label,g.description=q.tempPosData.description,g.fileSrc=q.tempPosData.fileSrc,g.fileName=q.tempPosData.fileName,g.style=q.tempPosData.style):e=y.default.getRandomSid(),this.markTag=new O.a(K.model,e,g),this.markTag.build(),this.markTag.bindEvents(),K.model.tags[e]=this.markTag,K.tagManager.getTag(this.markTag)}),isMobile||(q.warnLabel={spotTitle:new D({panel:$(".hotpointDetail .content")[0],$container:$(".hotpointDetail .content .info .name"),$input:$(".hotpointDetail .content .name input"),warnText:s.a.get(s.a.get("请添加标题(15字以内)")),safeTopHeight:80}),sceneTitle:new D({panel:$(".toolRight .information.content")[0],$container:$(".toolRight .information .name"),$input:$(".toolRight .information .name input"),warnText:s.a.get(s.a.get("请添加标题(15字以内)")),safeTopHeight:94}),psd:new D({panel:$(".toolRight .information.content")[0],$container:$(".toolRight .information [data-name='lock'] .word"),$input:$(".toolRight .information [data-name='lock'] .word input"),warnText:s.a.get("请输入4位数的密码")})});q.checkSpotCount=function(e){return null!=e.max&&K.tagManager.tagDiscs.length>=e.max||null!=e.min&&K.tagManager.tagDiscs.length<=e.min},q.checkNoNeighbour=function(){var e=K.currentPano.neighbourPanos,t=Object.keys(e).length;return 1==t&&Object.keys(e)[0]==K.currentPano.id||0==t},q.createWallDesign=function(){if(I.a.CADenable&&!Store.metadata.isUploadObj){//!browser.urlHasValue("wall")
- var e=o(306).default,t=e.getFloorJson();if(t&&t.vertex){var i,g;if(isMobile?$('.footer-tmpl.tmpl-menu li[data-name="wallDesign"]').removeClass("hide"):$('.toolBottom .toolLeft li[data-name="wallDesign"]').css("display","block"),null==t.top){var n=new THREE.Box3;S.a.player.model.chunks.forEach((function(e){n.union(e.geometry.boundingBox)})),i=t.top=n.max.y,g=t.bottom=n.min.y}else i=t.top,g=t.bottom;q.mainDesign=e.createDesign({top:i,bottom:g,floorJson:t}),Store.metadata.floorPlanPng||q.mainDesign.CAD.uploadCADImg((function(e,t){t?(q.cadImgVisiCon.$elem.removeClass("unable"),q.savedCADimg=!0,console.log(e),Store.metadata.cadInfo=e.cadInfo,S.a.player.cameraControls.controls.floorplan.createFloorTexture(),console.log("floorPlanPng上传成功")):console.log("floorPlanPng没有保存成功?!")}),!0),q.oriRoomData=e.storeOriRoomForTag(),2==I.a.wallType&&$("#wallSwitchView").on("click",q.mainDesign.switchview.bind(q.mainDesign)),3!=I.a.setSpotType&&($("#roomFloorHeightExam").parent().addClass("hide"),console.log("因Config.setSpotType!=3 去除 地面高度校准")),q.reloadModelAfterSaveWall=function(){var t=C()(A.a.mark((function t(i,o){return A.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return isMobile||!o||!o.onlyWallDesign,S.a.gui.showWaiting(!0,"reload"),S.a.gui.showInfo({title:s.a.get("重新载入模型"),dontInteract:!0}),Store.metadata.floorEditVer=(Store.metadata.floorEditVer||0)+1,S.a.rebuild=!0,K.model.chunks.forEach(function(e){e.parent.remove(e),e.material&&(e.material.dispose(),e.material=null),e.materialInside&&(e.materialInside.dispose(),e.materialInside=null),e.materialOutside&&(e.materialOutside.dispose(),e.materialOutside=null),e.geometry&&(e.geometry.dispose(),e.geometry=null)}.bind(this)),K.model.chunks=[],K.model.meshTextures.forEach((function(e){return e.dispose()})),K.model.meshTextures=[],K.model.floors.list.forEach((function(e){for(var t=0;t<e.collider.children.length;++t)e.collider.children[t].geometry.dispose(),e.collider.children[t].material.dispose();e.collider.children=[],e.reGetCollider()})),i&&(Store.metadata.cadInfo=i.cadInfo),K.cameraControls.controls.floorplan.createFloorTexture(),t.next=14,S.a.loaders.loadModel(null);case 14:return t.next=16,S.a.loaders.loadModelAddition(null);case 16:console.log("重建三维模型!"),K.cameraControls.controls.floorplan.remomveFloorPlane(),K.model.reBuild(),K.emit(J.a.PanoChosen,K.currentPano,K.currentPano),K.model.alpha="panorama"==K.mode?0:1,K.model.skybox.material.uniforms.opacity.value="panorama"==K.mode?1:0,K.currentPano&&(K.currentPano=K.model.panos.index[K.currentPano.id]),S.a.editor.mainDesign.afterReloadModel(),q.oriRoomData.forEach((function(e){e.wallMeshes.forEach((function(e){e.geometry.dispose()}))})),q.oriRoomData=e.storeOriRoomForTag(),S.a.gui.showWaiting(!1,"reload");case 27:case"end":return t.stop()}}),t,this)})));return function(e,i){return t.apply(this,arguments)}}(),q.saveWallDesign=function(e){q.mainDesign.CAD.preservationState();setTimeout((function(){console.log(JSON.stringify(q.mainDesign.CAD.getStateData())),S.a.gui.showWaiting(!0,"uploadCADImg"),q.mainDesign.CAD.uploadCADImg((function(t,i){if(i){R.a.savingInfo.updateCADimg={done:0};var o=R.a.getDataDeal("","updateCADimg",(function(){q.savedCADimg=!0;var i={name_t:"uploadFloorJson",f:function(i){e&&e.done&&e.done(),q.reloadModelAfterSaveWall(t)},dialog:s.a.get("模型保存"),url:I.a.prefixEditProPCApi+"/uploadFloorJson",data:{floor:JSON.stringify(q.mainDesign.CAD.getStateData()),sceneData:JSON.stringify(q.getSavingData({data:{floorPlanPng:t.msg}}))}};R.a.saveFucforPC(i)}),s.a.get("CAD图片上传"));R.a.dealAjax({dataDeal:o,data:t.code,msg:t.msg}),Store.metadata.cadInfo=t.cadInfo}else S.a.gui.showInfo(s.a.get("保存失败")),console.error("cad图上传失败");S.a.gui.showWaiting(!1,"uploadCADImg")}))}),80)},$(".wallDesign .tail button.submit").on("click",q.saveWallDesign.bind(this,{onlyWallDesign:!0})),$('.wallDesign .tail [data-type="revert"]').on("click",(function(){S.a.gui.showAskBox(s.a.get("确定回退?"),s.a.get("将会重置为展示页的状态"),{btns:[{text:s.a.get("确定"),type:"submit",fuc:function(){var e={name_t:"resetUploadFloorJson",dialog:s.a.get("重置"),f:function(){q.reloadModelAfterSaveWall(data,op)},url:I.a.prefixEditProPCApi+"/resetUploadFloorJson",data:{sceneData:JSON.stringify(q.getSavingData())}};R.a.saveFucforPC(e)}},{text:s.a.get("取消"),type:"cancel"}]})}))}else v.a.info("没有找到floorJson墙体数据")}},q.enablePanel=function(){q.enabled||(q.enabled=!0,isMobile&&$("#app footer").css("pointer-events","auto"),$(".toolLeft").removeClass("unable"),$(".toolTop").removeClass("unable"),$(".toolRight").removeClass("unable"))},q.setSize=function(e,t){for(var i in V.a.setPlayerBSize(),q.mainDesign.setMainSize&&q.mainDesign.setMainSize(e,t),q.scroller)q.scroller[i].InitOffset()},q.update=function(){V.a.renderSpotArea()},q.initInfo=function(){var e=Store.metadata;window.isMobile?($("footer .tmpl-information input")[0].value=e.sceneName||"",$("footer .tmpl-information .desc")[0].innerHTML=e.sceneDec||""):($("#pjtName")[0].value=e.sceneName||"",$("#edit2").attr("data-more",e.sceneDec||""),z.default.editor2.txt.html($("#edit2").attr("data-more")||""))},q.bind=function(){if(S.a.sceneRenderer.addComponent(q),q.initInfo(),V.a.init(q,K),window.isMobile)Z.initApp();else{var e=function(e,t,i){this.ul=e,this.funcs=t,null!=i&&this.setMode(i),this.ul.children().on("click",function(e){$(e.target).hasClass("chosen")||this.setMode($(e.target).index())}.bind(this))},t=function(e){if(!e)return!0;var t=!0;switch(e){case"settings":break;case"hotpoint":V.a.exitHotEdit(),$("#autoTour").css("display",""),q.finishSetTagVisible();break;case"screen":q.finishSetEntry(),setTimeout((function(){K.panoVideoRenderer&&"panorama"==K.mode&&K.panoVideoRenderer.onPanoChange(K.currentPano)}),10),S.a.gui.permitTranMode(!0);break;case"information":1==q.modes.psd.getMode()&&4!=$(".toolRight .information .word input")[0].value.length&&(0==$(".toolRight .information .word input")[0].value.length?q.modes.psd.setMode(0):(q.warnLabel.psd.ifWarn(1),t=!1));break;case"lock":case"music":break;case"sign":S.a.gui.permitTranMode(!0);break;case"hotVisible":I.a.keyCon=!0,q.finishSetTagVisible();break;case"panoVisible":I.a.keyCon=!0,q.finishSetPanoVisible(),S.a.gui.permitTranMode(!0);break;case"snapTour":$("#snapTourSwitchView").data("type","webgl").click(),$("body").removeClass("tour-record-select tour-record-nml tour-record-pro"),$(".bottRight").removeClass("hide"),q.vrVisi&&$("nav ._vr").parent().removeClass("hide"),S.a.tagManager.showAllTags(),S.a.guider.scrollUpdate();break;case"texStyle":S.a.gui.permitTranMode(!0);break;case"wallDesign":q.mainDesign.leave(),S.a.gui.changeCadVisible(),$("#webgl").removeClass("editWall"),$(".bottRight").removeClass("hide"),q.vrVisi&&$("nav ._vr").parent().removeClass("hide"),S.a.gui.changeMapVisible();break;case"modelDownload":break;default:v.a.info("未知panel name"),t=!1}return t&&($('.toolRight li[data-name="setLogo"]').find("button").hasClass("cancel")&&$('.toolRight li[data-name="setLogo"]').find("button").click(),$(".toolBottom .toolLeft li").removeClass("active"),$(".toolRight>div").addClass("hide"),q.lastPanel=q.atPanel,q.atPanel=null),t};$(".toolBottom .toolLeft li").click(function(){var e=C()(A.a.mark((function e(t){var i;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i=$(this).data("name"),q.openPanel(i);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()),q.openPanel=function(e){if(q.enterPanel||q.atPanel==e)return!1;!function(e){var i=!0;if(t(q.atPanel)){switch(q.enterPanel=!0,K.tagManager.activeTag&&K.tagManager.dismissActiveTag(),e){case"settings":break;case"hotpoint":$(".toolRight .hotpointDetail").removeClass("hide"),$("#autoTour").css("display","none");break;case"screen":S.a.gui.permitTranMode(!1),K.panoVideoRenderer&&K.panoVideoRenderer.onPanoChange(null),K.FlyToMode("panorama",(function(){q.toSetEntry(),q.enterPanel=!1})),i=!1;break;case"information":S.a.guider.scrollUpdate();break;case"lock":case"music":break;case"sign":setTimeout((function(){q.scroller.floorLogoSize.InitOffset()}),3),S.a.gui.permitTranMode(!1),K.FlyToMode("panorama",(function(){K.lookAtPos(null,null,{speed:.1,time:500,lat:-50}),q.enterPanel=!1})),i=!1;break;case"hotVisible":if(q.checkSpotCount({min:0}))S.a.gui.showAskBox(s.a.get("无法设置热点可视"),s.a.get("当前无热点,请先创建热点再设置"),{btns:[{text:s.a.get("确定"),type:"submit",fuc:function(){t("hotVisible")}}],donClose:!0});else{I.a.keyCon=!1;var o=function(){K.FlyToMode("floorplan",(function(){q.beginSetTagVisible(),q.enterPanel=!1}))};"hotpoint"==q.lastPanel&&"floorplan"!=K.mode?setTimeout(o,10):o(),i=!1}break;case"panoVisible":I.a.keyCon=!1;o=function(){S.a.gui.permitTranMode(!1),"floorplan"!=K.modeTran.split("-")[1]&&(K.flyoutType="beginSetPanoVisible",setTimeout(q.beginSetPanoVisible,300)),K.FlyToMode("floorplan",(function(){q.beginSetPanoVisible(),q.enterPanel=!1}))};"hotpoint"==q.lastPanel&&"floorplan"!=K.mode?setTimeout(o,100):o(),i=!1;break;case"snapTour":for(var g in q.guider.ready||(S.a.gui.showWaiting(!0,"guider.ready"),q.guider.readyDone=function(){a(),S.a.gui.showWaiting(!1,"guider.ready")}),$("body").addClass("tour-record-pro"),S.a.guider.slideUpOrDown(!1),S.a.playGuider.musicPlayer.stop(),$(".bottRight").addClass("hide"),S.a.recordGuider.focus(),$("nav ._vr").parent().addClass("hide"),S.a.player.model.tags){var n=S.a.player.model.tags[g];n.billboard.media.indexOf("outLink")>-1&&"videoPanoFlag"!=n.state&&n.hide()}break;case"texStyle":S.a.gui.permitTranMode(!1),K.FlyToMode("dollhouse",(function(){q.enterPanel=!1})),i=!1;break;case"wallDesign":K.FlyToMode(K.modeTran.split("-")[1],(function(){q.mainDesign.enter(),S.a.gui.changeCadVisible(),q.enterPanel=!1,$("#wallDesignProp").removeClass("hide"),S.a.gui.changeMapVisible(!1),$(".bottRight").addClass("hide"),$("nav ._vr").parent().addClass("hide"),setTimeout((function(){}),3)})),i=!1;break;default:v.a.info("其他panel name:"+e)}var a=function(){$(".toolLeft li[data-name="+e+"]").addClass("active"),$(".toolRight ."+e).removeClass("hide"),q.atPanel=e}.bind(this);a(),i&&(q.enterPanel=!1)}}(e)},q.leavePanel=t,"en"==I.a.lang?$("#QRcode").attr("src","sceneQRcode/"+I.a.projectNum+"_en.png?m="+(new Date).getTime()):$("#QRcode").attr("src","sceneQRcode/"+I.a.projectNum+".png?m="+(new Date).getTime());window.location.href.indexOf("test.4dkankan"),new X({elem:$("#QRupload"),radius:.15,title:"剪裁二维码",done:function(e){Object(k.a)(I.a.prefixEditProPCApi+"/uploadShareLogo",{name:"QRShareLogo.png",needTransfer:!0,file:e.base64Src},{sceneNum:I.a.projectNum},(function(e){S.a.gui.showInfo(s.a.get("logo替换成功!")),"en"==I.a.lang?$("#QRcode").attr("src","sceneQRcode/"+I.a.projectNum+"_en.png?m="+(new Date).getTime()):$("#QRcode").attr("src","sceneQRcode/"+I.a.projectNum+".png?m="+(new Date).getTime()),S.a.gui.showWaiting(!1)}),(function(){S.a.gui.showInfo(s.a.get("logo替换失败!")),S.a.gui.showWaiting(!0)}),{checkCallback:function(e){if(e.indexOf("QRShareLogo.png")>-1)return!0}})}});$("#QRcodeDownload").click((function(){y.default.saveFile($("#QRcode").attr("src"),s.a.get("二维码")+".png")}));var i=location.protocol+"//"+location.hostname+(location.port?":"+location.port:"")+"/showProPC.html?m="+I.a.projectNum+("en"==I.a.lang?"&lang=en":"");$("#copyLink label").attr("data-clipboard-text",i);var g=new ClipboardJS($("#copyLink label")[0]);g.on("success",(function(e){S.a.gui.showInfo(s.a.get("复制成功!"))})),g.on("error",(function(e){S.a.gui.showInfo(s.a.get("复制失败,请直接点击链接以复制展示页面的地址栏"))})),$("#copyLink a").attr("href",i),$("#copyLink a").text(i),window.isMobile;var a=$(".toolRight li[data-name='info']>div");a.eq(0).attr("data-size",Store.metadata.createTime||s.a.get("未记录")),a.eq(1).attr("data-size",Store.metadata.shootCount||"0"),a.eq(2).attr("data-size",3==Store.metadata.cameraType?"六目相机":2==Store.metadata.cameraType?"转台相机":"双目相机"),e.prototype.setMode=function(e){this.ul.children().removeClass("chosen"),this.ul.children().eq(e).addClass("chosen"),this.funcs[e]&&this.funcs[e]()},e.prototype.getMode=function(){return this.ul.find(".chosen").index()};var r=$(".toolRight .information .word input");r.on("input propertychange",(function(){var e=r.val().match(/[a-zA-Z0-9]*/g);r.val(e.join("").slice(0,4))})),l=Store.metadata.sceneKey,c=$(".toolRight .information .MenuOptions"),u=$(".toolRight .information .word input"),d=new e(c,[function(){u.parent().addClass("hide"),q.warnLabel.psd.ifWarn(0)},function(){u.parent().removeClass("hide")}]),l&&""!=l?(u.val(l),d.ul.children()[1].click()):d.setMode(0),q.modes.psd=d,function(){Store.metadata.sceneType=Store.metadata.sceneType||0;var e=$('.toolRight .information li[data-name="type"] .selection')[0],t=[];m.a.SCENETYPE.forEach((function(e){t.push("<i class='typeLogo iconfont "+y.default.getSceneType(e,"class")+"'></i>"+e)}));var i=m.a.SCENETYPE_index[Store.metadata.sceneType][0],o={initOption:s.a.get("请点击选择"),option:"<i class='typeLogo iconfont "+y.default.getSceneType(i,"class")+"'></i>"+i,noCallback:!0};q.selectList.type=new w(t,e,(function(e){var t=$("#j-header-dropdown i.typeLogo");m.a.SCENETYPE_index.forEach((function(e){t.removeClass(e[1])})),t.addClass(y.default.getSceneType(e,"class"))}),o)}(),function(){var e=isMobile?$("header .btn-right"):$("#BottNav .bottRight .bgm"),t=y.default.findBgMusic(s.a.get(Store.metadata.bgMusic)),i=$(".toolRight .music .selection")[0],o=[s.a.get("无")];"en"==I.a.lang&&(m.a.BGM_en_ch={});for(var g=0;g<m.a.BGM_LIST.length;g++)o.push(m.a.BGM_LIST[g].name),"en"==I.a.lang&&(m.a.BGM_en_ch[m.a.BGM_LIST[g].name]=m.a.BGM_LIST[g].ch);var n={initOption:s.a.get("无"),option:t?s.a.get(Store.metadata.bgMusic):s.a.get("无"),noCallback:!0};q.selectList.bgmusic=new w(o,i,(function(t){t==s.a.get("无")?(S.a.playGuider.musicPlayer.stop(),e.removeClass("hide").addClass("hide")):(e.removeClass("hide"),S.a.playGuider.musicPlayer.url(y.default.findBgMusic(t)).play())}),n)}(),function(){var e=$("#midLodoUpload");$('.toolRight li[data-name="setLogo"]').find("button").on("click",(function(){$(this).hasClass("submit")?($(this).removeClass("submit").addClass("cancel").text("退出页面Logo编辑"),$("#gui-loading").css("display","table"),$("#gui-thumb").css("z-index",100),e.removeClass("hide")):($(this).removeClass("cancel").addClass("submit").text("编辑页面Logo"),$("#gui-loading").css("display","none"),$("#gui-thumb").css("z-index",0),e.addClass("hide"))})),new F.a({$elem:$('.switch[data-name="botom-logo-visiable"]'),fuc:function(e){var t=$(".bottom-logo"),i={name_t:"deleLogo",f:function(){e?t.find("i").removeClass("hide"):t.find("i").addClass("hide")},url:I.a.prefixEditProPCApi+"/uploadLogoBottomStatus",data:{sceneNum:I.a.projectNum,status:e?1:0}};R.a.saveFucforPC(i)},state:void 0===Store.metadata.showLogoBottom?1:Store.metadata.showLogoBottom,noInitEvent:!0}),e.find("button.cancel").on("click",(function(){S.a.gui.showAskBox(null,s.a.get("是否删除已上传Logo?"),{btns:[{text:s.a.get("确定"),type:"submit",fuc:function(){var e={name_t:"deleLogo",f:function(){$(".loadingLogo").find(".img").css("background-image","none"),$(".loadingLogo").find(".img i").removeClass("hide")},url:I.a.prefixEditProPCApi+"/deleteOss",data:{filePath:"images/images".concat(I.a.projectNum,"/logo-main.png")}};R.a.saveFucforPC(e)}},{text:s.a.get("放弃"),type:"cancel"}],img:1})}));var t=$("#midLodoUpload").find("button.submit");new X({elem:t.eq(0),radius:0,fileExt:"png",title:"裁剪顶部Logo(方)",aspectRatio:1,containerSize:{width:160,height:160},done:function(e){Object(k.a)(I.a.prefixEditProPCApi+"/uploadPic",{name:"logo-main.png",needTransfer:!0,file:e.base64Src},{toOss:1,sceneNum:I.a.projectNum},(function(){S.a.gui.showWaiting(!1),S.a.gui.showInfo(s.a.get("上传成功"));var t=$(".loadingLogo");t.find("i").removeClass("hide").addClass("hide"),t.find(".img").css({width:"80px",height:"80px","background-image":"url(".concat(e.base64Src,")")})}),(function(){S.a.gui.showWaiting(!1),S.a.gui.showInfo(s.a.get("上传失败"))}))}}),new X({elem:t.eq(1),radius:0,fileExt:"png",title:"裁剪顶部Logo(横)",aspectRatio:2,containerSize:{width:180,height:90},done:function(e){Object(k.a)(I.a.prefixEditProPCApi+"/uploadPic",{name:"logo-main.png",needTransfer:!0,file:e.base64Src},{toOss:1,sceneNum:I.a.projectNum},(function(){S.a.gui.showWaiting(!1),S.a.gui.showInfo(s.a.get("上传成功"));var t=$(".loadingLogo");t.find("i").removeClass("hide").addClass("hide"),t.find(".img").css({width:"160px",height:"80px","background-image":"url(".concat(e.base64Src,")")})}),(function(){S.a.gui.showWaiting(!1),S.a.gui.showInfo(s.a.get("上传失败"))}))}}),new X({elem:t.eq(2),radius:0,fileExt:"png",title:"裁剪底部Logo(方)",aspectRatio:1,containerSize:{width:160,height:160},done:function(e){Object(k.a)(I.a.prefixEditProPCApi+"/uploadPic",{name:"logo-bottom.png",needTransfer:!0,file:e.base64Src},{toOss:1,sceneNum:I.a.projectNum},(function(){S.a.gui.showWaiting(!1),S.a.gui.showInfo(s.a.get("上传成功"));var t=$(".bottom-logo");t.find("i").removeClass("hide").addClass("hide"),t.find(".img").css({"background-image":"url(".concat(e.base64Src,")")})}),(function(){S.a.gui.showWaiting(!1),S.a.gui.showInfo(s.a.get("上传失败"))}))}}),new X({elem:t.eq(3),radius:0,fileExt:"png",title:"裁剪底部Logo(横)",aspectRatio:2,containerSize:{width:180,height:90},done:function(e){Object(k.a)(I.a.prefixEditProPCApi+"/uploadPic",{name:"logo-bottom.png",needTransfer:!0,file:e.base64Src},{toOss:1,sceneNum:I.a.projectNum},(function(){S.a.gui.showWaiting(!1),S.a.gui.showInfo(s.a.get("上传成功"));var t=$(".bottom-logo");t.find("i").removeClass("hide").addClass("hide"),t.find(".img").css({"background-image":"url(".concat(e.base64Src,")")})}),(function(){S.a.gui.showWaiting(!1),S.a.gui.showInfo(s.a.get("上传失败"))}))}})}(),function(){for(var e,t=$(".toolRight .sign .chose li>div"),i=0;i<3;i++)t.eq(i).css("background-image",'url("'+m.a.imgRoot+"floorlogo/"+("en"==I.a.lang?"en/":"")+i+'.png")');var o=["f0","f1","f2","user"].indexOf(Store.metadata.floorLogo);"user"==Store.metadata.floorLogo&&(q.flUserImg="scene/"+m.a.sceneImgRoot+m.a.FloorLogoUser,$(".toolRight .sign .chose li").eq(3).find(">div").css("background-image",'url("scene/'+m.a.sceneImgRoot+m.a.FloorLogoUser+"?m="+Store.metadata.version+'")'),$(".toolRight .sign .chose li").eq(3).addClass("uploaded")),o>-1&&($(".toolRight .sign .chose li.active").removeClass("active"),$(".toolRight .sign .chose li").eq(o).addClass("active")),t.on("click",(function(){var i=$(this).parent("li").index();if(!($(this).parent("li").hasClass("active")&&i<3)){var o=function(){$(".toolRight .sign .chose li.active").removeClass("active"),$(this).parent("li").addClass("active")}.bind(this);i==t.length-1?q.flUserImg?(q.flUserImg instanceof Image?K.model.changeFloorLogo({image:q.flUserImg}):K.model.changeFloorLogo({url:q.flUserImg}),o()):e.importImg():(K.model.changeFloorLogo({url:m.a.imgRoot+"floorlogo/"+("en"==I.a.lang?"en/":"")+i+".png",index:i}),o())}})),e=new X({elem:t.last().find("button"),radius:.5,title:"裁剪地面标志",done:function(e){Object(k.a)(I.a.prefixEditProPCApi+"/uploadPic",{name:"floorLogoImg.png",needTransfer:!0,file:e.base64Src},{sceneNum:I.a.projectNum},(function(){q.flUserImg=new Image,q.flUserImg.src=e.src;var t=$(".toolRight .sign .chose li").last();t.addClass("uploaded"),t.find(">div").css("background-image",'url("'+e.src+'")'),t.find(">div").click(),S.a.gui.showWaiting(!1),S.a.gui.showInfo(s.a.get("上传成功"))}),(function(){S.a.gui.showWaiting(!1),S.a.gui.showInfo(s.a.get("上传失败"))}))}})}(),function(){if(!isMobile){$(document).on("click","div.hotpointDetail .linkBtns button",(function(){var e=$(this),t=$("div.hotpointDetail .link >.text"),i=$("div.hotpointDetail .link >.url"),o=$(".hotpointDetail li.info .itemTitle").eq(2);z.default.linkChange(e,t,i,z.default.editor1,o),$("div.hotpointDetail .linkBtns").addClass("hide")})),$(document).on("click",'div.information li[data-name="description"] button',(function(){var e=$(this),t=$("div.information .link >.text"),i=$("div.information .link >.url"),o=$('.information li[data-name="description"] .itemTitle').eq(1);z.default.linkChange(e,t,i,z.default.editor2,o)}));var e=function(e,t){e.length;var i,o=t.children().length;e.on("blur",(function(e){console.log("blur");for(var g=0;g<o;g++)if(e.relatedTarget==t.children().eq(g))return;i=null,setTimeout((function(){i||t.addClass("hide")}),300)})).on("focus",(function(e){console.log("focus"),i=e.target,t.removeClass("hide")}))};e($("div.hotpointDetail .info .link input"),$("div.hotpointDetail .info .linkBtns")),e($("div.hotpointDetail .outLink .link input"),$("div.hotpointDetail .outLink .outlinkBtns")),q.updateTextCount={HotLabel:function(e){var t=$(".hotpointDetail input").eq(0);z.default.checkLen.project_name(t,$(".hotpointDetail .info .itemTitle").eq(0),15,e)},InfoTitle:function(e){z.default.checkLen.project_name($("#pjtName"),$('.information li[data-name="title"] .itemTitle'),15,e),$(".model-title2").text($("#pjtName").val().trim()),$("#j-header-scenename").text($("#pjtName").val().trim())}},q.updateTextCount.InfoTitle(),$(".hotpointDetail input").eq(0).on("input",(function(){q.updateTextCount.HotLabel(!1)})),$(".hotpointDetail input").eq(0).on("change",(function(){q.updateTextCount.HotLabel(!0)})),$(".hotpointDetail .link input").eq(0).on("input",(function(){z.default.checkLen.project_name_normal($(this),$(".hotpointDetail li.info .itemTitle").eq(2),40)})),$("#pjtName").on("input",(function(e){q.updateTextCount.InfoTitle(!1)})),$("#pjtName").on("change",(function(e){q.updateTextCount.InfoTitle(!0)})),$(".toolRight .information .link input").eq(0).on("input",(function(){z.default.checkLen.project_name_normal($(this),$('.information li[data-name="description"] .itemTitle').eq(1),40)}));var t=function(e){q.markTag&&q.markTag.billboard.changeLabel(e.target.value)};$(".hotpointDetail .info .name input").on("input",t),$(".hotpointDetail .info .name input").on("change",(function(e){e.target.value=e.target.value.trim(),t(e)}))}}()}var l,c,u,d;if(q.createWallDesign(),q.getSavingData=function(e){var t={};t.sceneName=$("#pjtName").val(),t.sceneDec=$("#gui-parent #j-header-scenedesc").html(),t.sceneKey=q.modes.psd.getMode()&&4==r.val().length?r.val():"",t.sceneType=y.default.getSceneType(q.selectList.type.getValue()),t.sceneIndex=$(".toolRight .texStyle .styleList").find(".active").index();var i=$(".toolRight .sign .chose .active").index();t.floorLogoType=3==i?"user":"f"+i,t.floorLogoSize=Math.round(100*K.model.floorLogos[0].scale.x);var o=q.selectList.bgmusic.getValue();return t.bgMusic=o==s.a.get("无")?"noMusic":"en"==I.a.lang?m.a.BGM_en_ch[o]:o,"zhiHouse"==I.a.applicationName||(t.appuserName=Store.metadata.CAMERA_ID),t.entry=K.EntryInfo||"",t.hotFlag=1,S.a.recordGuider.checkModify()&&(t.screencapVoiceType=Store.soundType||"soundsync",t.capData=JSON.stringify(Store.capData),t.frameData=JSON.stringify(Store.frameData),t.playData=JSON.stringify(Store.playData),t.screencapThumb=JSON.stringify(Store.thumbs),t.recordType=Store.recordType),t.panoVisi=q.panoVisi?1:0,t.m2dVisi=q.m2dVisi?1:0,t.m3dVisi=q.m3dVisi?1:0,t.mapVisi=q.mapVisi?1:0,t.vrVisi=q.vrVisi?1:0,t.tourVisi=q.tourVisi?1:0,t.rulerVisi=q.rulerVisi?1:0,t.cadImgVisi=q.cadImgVisi?1:0,t.measureVisi=q.measureVisi?1:0,e&&e.data&&(t=$.extend(t,e.data)),v.a.info(t),t},q.save=function(){var e=C()(A.a.mark((function e(t){var i,o;return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""!==$("#pjtName").val().trim()){e.next=4;break}return q.openPanel("information"),q.warnLabel.sceneTitle.ifWarn(1),e.abrupt("return");case 4:if(1!=q.modes.psd.getMode()||4==r.val().length){e.next=11;break}if(0!=r.val().length){e.next=9;break}q.modes.psd.setMode(0),e.next=11;break;case 9:return q.warnLabel.psd.ifWarn(1),e.abrupt("return");case 11:i=function(e){var t=q.getSavingData({data:e&&e.data});t.entry&&(t.entry=JSON.stringify(t.entry));var i={name_t:"saveAll",f:function(){S.a.recordGuider.setUnModify(),q.entryNeedSave=!1,q.hotJsonChanged=!1,q.gotoPreview({reload:e&&e.reload})},url:I.a.prefixEditProPCApi+"/saveSceneInfo",data:t};R.a.saveFucforPC(i)},o=function(e){$(".waiting").addClass("showloading"),S.a.recordGuider.hasRecordSound?(S.a.recordGuider.soundRecorder.stop(),S.a.recordGuider.stopRecord(),$(".snapTour-edit-toolbar .btn-play").removeClass("unable"),S.a.recordGuider.soundRecorder.on("uploaded",(function(){i(e)}))):i(e)},q.mainDesign.needSave?q.saveWallDesign({done:function(){o()}}):Store.metadata.floorPlanPng||!q.mainDesign.CAD||q.savedCADimg?o():(S.a.gui.showWaiting(!0,"uploadCADImg"),q.mainDesign.CAD.uploadCADImg((function(e,t){if(S.a.gui.showWaiting(!1,"uploadCADImg"),t){R.a.savingInfo.updateCADimg={done:0};var i=R.a.getDataDeal("","updateCADimg",(function(){q.savedCADimg=!0,o({data:{floorPlanPng:e.msg}})}),s.a.get("CAD图片上传"));R.a.dealAjax({dataDeal:i,data:e.code,msg:e.msg})}else S.a.gui.showInfo(s.a.get("保存失败")),console.error("cad图上传失败")})));case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),$(".toolTop #save").on("click",q.save),q.gotoPreview=function(e){var t=function e(t){var i=!1,o=Date.now(),g=0,n=setInterval((function(){i?t instanceof Array?(window.open(t[g++]),g>=t.length&&clearInterval(n)):(window.open(t),clearInterval(n)):(Date.now()-o)/1e3>5&&clearInterval(n)}),1e3);e.open=function(){i=!0}};S.a.gui.showAskBox(s.a.get("保存并发布成功!"),s.a.get("是否立刻前往观看您的场景?"),{btns:[{text:s.a.get("立即前往"),type:"submit",fuc:function(){t(["showProPC.html"+postfix]),t.open(),e&&e.reload&&setTimeout((function(){window.location.reload()}),210)}},{text:s.a.get("暂时不去"),type:"cancel",fuc:function(){e&&e.reload&&window.location.reload()}}],img:1})},q.panoVisi=1==Store.metadata.panoVisi||null==Store.metadata.panoVisi,q.m2dVisi=1==Store.metadata.m2dVisi||null==Store.metadata.m2dVisi,q.m3dVisi=1==Store.metadata.m3dVisi||null==Store.metadata.m3dVisi,q.mapVisi=1==Store.metadata.mapVisi||null==Store.metadata.mapVisi,q.tourVisi=1==Store.metadata.tourVisi||null==Store.metadata.mapVisi,q.vrVisi=1==Store.metadata.vrVisi||null==Store.metadata.mapVisi,q.rulerVisi=1==Store.metadata.rulerVisi||null==Store.metadata.rulerVisi,q.cadImgVisi=1==Store.metadata.cadImgVisi||null==Store.metadata.cadImgVisi,q.measureVisi=Store.metadata.measureVisi?1:0,q.panoVisiCon=new F.a({$elem:$('.switch[data-name="panoVisi"]'),fuc:function(e){q.panoVisi=e,e?($("nav ._roam").parent().removeClass("hide"),S.a.gui.showInfo(s.a.get("漫游视角功能已开启"))):($("nav ._roam").parent().addClass("hide"),S.a.gui.showInfo(s.a.get("漫游视角功能已关闭")))},state:q.panoVisi,noInitEvent:!0}),q.panoVisi||$("nav ._roam").parent().addClass("hide"),q.m2dVisiCon=new F.a({$elem:$('.switch[data-name="m2dVisi"]'),fuc:function(e){q.m2dVisi=e,e?($("nav ._2d").parent().removeClass("hide"),S.a.gui.showInfo(s.a.get("平面视角功能已开启"))):($("nav ._2d").parent().addClass("hide"),S.a.gui.showInfo(s.a.get("平面视角功能已关闭")))},state:q.m2dVisi,noInitEvent:!0}),q.m2dVisi||$("nav ._2d").parent().addClass("hide"),q.m3dVisiCon=new F.a({$elem:$('.switch[data-name="m3dVisi"]'),fuc:function(e){q.m3dVisi=e,e?($("nav ._3d").parent().removeClass("hide"),S.a.gui.showInfo(s.a.get("三维视角功能已开启"))):($("nav ._3d").parent().addClass("hide"),S.a.gui.showInfo(s.a.get("三维视角功能已关闭")))},state:q.m3dVisi,noInitEvent:!0}),q.m3dVisi||$("nav ._3d").parent().addClass("hide"),q.tourVisiCon=new F.a({$elem:$('.switch[data-name="tourVisi"]'),fuc:function(e){q.tourVisi=e,S.a.guider.addScrollImgs(e),e?($("nav ._tour").parent().removeClass("hide"),S.a.gui.showInfo(s.a.get("自动导览功能已开启"))):($("nav ._tour").parent().addClass("hide"),S.a.gui.showInfo(s.a.get("自动导览功能已关闭")))},state:q.tourVisi?Store.playData.length?1:0:q.tourVisi,noInitEvent:!0}),q.tourVisi&&Store.playData.length&&$("nav ._tour").parent().removeClass("hide"),Store.playData&&0!=Store.playData.length||$('.switch[data-name="tourVisi"]').addClass("unable"),q.mapVisiCon=new F.a({$elem:$('.switch[data-name="mapVisi"]'),fuc:function(e){q.mapVisi=e,e?$("#map").attr("visi","1"):$("#map").attr("visi","0"),S.a.gui.changeMapVisible(),S.a.guider&&S.a.guider.playOrStopGuide(!1),e?("panorama"!=K.modeTran.split("-")[1]&&S.a.gui.modeChange.panorama(),S.a.gui.showInfo(s.a.get("小地图功能已开启"))):S.a.gui.showInfo(s.a.get("小地图功能已关闭"))},state:q.mapVisi,noInitEvent:!0}),Store.floorJson||q.mapVisiCon.$elem.addClass("unable"),q.vrVisiCon=new F.a({$elem:$('.switch[data-name="vrVisi"]'),fuc:function(e){q.vrVisi=e,e?S.a.gui.showInfo({title:s.a.get("VR功能已打开"),time:3e3}):S.a.gui.showInfo(s.a.get("VR功能已关闭"));var t=isMobile?$("nav ._vr").parent():$(".bottRight [data-type='vr']");e?t.removeClass("hide"):t.addClass("hide")},state:q.vrVisi,noInitEvent:!0}),q.vrVisi&&$("nav ._vr").parent().removeClass("hide"),q.rulerVisiCon=new F.a({$elem:$('.switch[data-name="rulerVisi"]'),fuc:function(e){q.rulerVisi=e,e?(S.a.gui.showInfo({title:s.a.get("标尺功能已打开"),time:3e3}),S.a.guider&&S.a.guider.playOrStopGuide(!1),K.FlyToMode("panorama",(function(){K.shineRulers(!0)}))):(S.a.gui.showInfo(s.a.get("标尺功能已关闭")),K.shineRulers(!1))},state:q.rulerVisi,noInitEvent:!0}),q.cadImgVisiCon=new F.a({$elem:$('.switch[data-name="cadImgVisi"]'),fuc:function(e){q.cadImgVisi=e,S.a.guider&&S.a.guider.playOrStopGuide(!1),S.a.gui.changeCadVisible(),K.FlyToMode("floorplan",(function(){})),e?S.a.gui.showInfo(s.a.get("俯视图户型功能已开启")):S.a.gui.showInfo(s.a.get("俯视图户型功能已关闭"))},state:q.cadImgVisi,noInitEvent:!0}),Store.metadata.floorPlanPng||q.cadImgVisiCon.$elem.addClass("unable"),q.measureVisiCon=new F.a({$elem:$('.switch[data-name="measureVisi"]'),fuc:function(e){q.measureVisi=e,e?(S.a.gui.showInfo(s.a.get("测距功能已开启")),isMobile?$('nav.left [data-type="measure"]').parent().removeClass("hide"):$('.bottRight [data-type="measure"]').removeClass("hide")):(S.a.gui.showInfo(s.a.get("测距功能已关闭")),isMobile?$('nav.left [data-type="measure"]').parent().addClass("hide"):$('.bottRight [data-type="measure"]').addClass("hide"))},state:q.measureVisi,noInitEvent:!0}),q.measureVisi&&(isMobile?$('nav.left [data-type="measure"]').parent().removeClass("hide"):$('.bottRight [data-type="measure"]').removeClass("hide")),2!=Store.metadata.visions&&q.measureVisiCon.$elem.addClass("unable"),this.scroller.floorLogoSize=new x.a({root:$("#floorLogoSize"),value:null!=Store.metadata.floorLogoSize?Store.metadata.floorLogoSize:100,min:20,max:180,name:"floorLogoSize",unitStr:"%",noValue:!1,onchange:function(e){e/=100;K.model.floorLogos[0].scale.set(e,e,e),K.model.floorLogos[1].scale.set(e,e,e)}}),q.mainDesign.CAD){var h,p,f=q.mainDesign;if(2==I.a.wallType)this.scroller.roomFloorHeight=new x.a((h={root:$("#roomFloorHeight"),value:f.tranHeight(f.bottom,"show"),min:f.tranHeight(-2.6,"show"),max:f.tranHeight(1-1.6,"show"),name:"floorHeight",unitStr:"cm",avoidCrash:!0,onchange:function(e){q.mainDesign.changeHeight("bottom",e,{room:isMobile?f.rooms[f.atRoom]:f.selectRoom})}},n()(h,"avoidCrash",!0),n()(h,"dragEndEvent",(function(){f.updateDelayMesh("moveBoldLine")})),h)),this.scroller.roomCeilHeight=new x.a((p={root:$("#roomCeilHeight"),value:f.tranHeight(f.top,"show"),min:f.tranHeight(1.6-1,"show"),max:f.tranHeight(6.6,"show"),name:"ceilHeight",unitStr:"cm",avoidCrash:!0,onchange:function(e){f.changeHeight("top",e,{room:isMobile?f.rooms[f.atRoom]:f.selectRoom})}},n()(p,"avoidCrash",!0),n()(p,"dragEndEvent",(function(){f.updateDelayMesh("moveBoldLine")})),p));var P=q.mainDesign.defaultValue;this.scroller.objWidth=new x.a({root:$("#objWidth>div").eq(1),value:50,min:100*P.obj.minWidth,max:100*P.obj.maxWidth,name:"objWidth",unitStr:"cm",avoidCrash:!0,onchange:function(e){return q.mainDesign.selectedObj.changeSize(e/100,"Width"),!1},dragEndEvent:function(){f.updateDelayMesh("moveBoldLine")}}),this.scroller.objHeightOrDepth=new x.a({root:$("#objHeightOrDepth>div").eq(1),value:50,min:100*P.obj.minHeight,max:100*(q.mainDesign.top-q.mainDesign.bottom),name:"objHeightOrDepth",unitStr:"cm",avoidCrash:!0,onchange:function(e){return 1==q.mainDesign.selectedObj.changeSize(e/100,"HeightOrDepth")},dragEndEvent:function(){f.updateDelayMesh("moveBoldLine")}})}var T=[];for(var D in window.isMobile?(T.push($(".footer-tmpl input")),T.push($(".footer-tmpl textarea")),T.push($(".footer-tmpl div"))):(T.push($(".editPanel #pjtName")),T.push($("#edit2>div")),T.push($(".editPanel .hotPoint-titleInput")),T.push($("#edit1>div")),T.push($(".toolRight input")),q.scroller.textArea),T.push($(".slider input")),T.forEach(S.a.gui.restrictInput),q.scroller)q.scroller[D].textArea&&S.a.gui.restrictInput(q.scroller[D].textArea);if(function(){if(isMobile)var e=$("footer .tmpl-hotpoint.step-3"),t=e.find("#spot_photo"),i=$('<input id="file_audio" type="file" style="display:none" accept="audio/*"></input>'),o=e.find("#spot_video");else t=$('<input id="file_photo" type="file" style="display:none" accept="image/*"></input>'),i=$('<input id="file_audio" type="file" style="display:none" accept="audio/*"></input>'),o=$('<input id="file_video" type="file" style="display:none" accept="video/*"></input>');var g={photo:10,video:20,audio:5},n={photo:["jpg","png","jpeg","bmp","gif"],audio:["mp3","aac","ogg","wav"],video:["mp4","mov"]};function a(e){v.a.info("名:"+e);var t,i=function(e){return e.indexOf(".")>-1?e.split(".").pop():""}(e);for(var o in v.a.info("后缀:"+i),n)if(n[o].indexOf(i.toLowerCase())>-1){t=o;break}return t||!1}var A=function(e){$(".waiting").removeClass("showloading"),e.value=""};q.inputMedia=function(e){v.a.info("inputMedia文件成功");var t=e.target;if(!window.FileReader)return S.a.gui.showAskBox("",s.a.get("您的浏览器不支持上传文件")),void A(t);if(0!==e.target.files.length){$(".waiting").addClass("showloading");var i,o=e.target.files[0],n="tourSound"==$(e.target).data("type"),r=n?"audio":(i=e.target.id).indexOf("photo")>-1?"photo":i.indexOf("audio")>-1?"audio":i.indexOf("video")>-1?"video":void 0,C=a(o.name),l=q.markTag,c={photo:s.a.get("图片"),video:s.a.get("视频"),audio:s.a.get("音乐")},u=function(e,t){var i,o=e.size/1024/1024;return v.a.info("weight"+o),o>g[t]&&(i=Math.ceil(100*o)/100),i}(o,C);if(C!=r)return S.a.gui.showAskBox("",s.a.get("您选择的不是浏览器支持的")+("en"==I.a.lang?" ":c[r])+s.a.get("文件,请重新选择")),void A(e.target);if(n&&"audio"!=C)return S.a.gui.showAskBox(s.a.get("文件类型错误"),o.name+" "+s.a.get("不是浏览器支持的音频文件")+"。"),void(e.target.value="");if(u)return S.a.gui.showAskBox(s.a.get("文件过大"),c[C]+" "+s.a.get("文件过大")+"("+u+s.a.get("兆")+"),"+s.a.get("不能大于")+" "+g[C]+" "+s.a.get("兆")),void A(e.target);var d=function(){l.billboard.changeMedia(C),S.a.gui.changeMediaPreview(l,C)}.bind(this),h=function(){A(e.target),S.a.gui.showAskBox(s.a.get("文件出错"),s.a.get("无法加载此")+" "+c[C]+("en"==I.a.lang?". ":" ")+s.a.get("文件。 文件可能损坏,或者浏览器不支持,或者后缀与文件不匹配。建议在IE以外的浏览器上传"))};!function(e){v.a.info("开始deal文件");var t=new FileReader;o=e||o,t.readAsDataURL(o),t.onload=function(e){var t=y.default.dataURLtoBlob(e.target.result),i=window.URL.createObjectURL(t);if("photo"==C)EXIF.getData(o,(function(){EXIF.getAllTags(this);var o=EXIF.getTag(this,"Orientation"),g=new Image;g.src=e.target.result,g.onload=function(e){var g=b(e.target,{weight:t.size,maxWeight:524288,maxSize:1480});g.onload=function(){!function(e,t,i){var o=0;if(3==t?o=180:6==t?o=90:8==t&&(o=270),o){var g=new Image,n=Math.max(e.width,e.height),a=document.createElement("canvas");a.width=n,a.height=n;var A=a.getContext("2d");A.clearRect(0,0,n,n),A.save(),A.translate(n/2,n/2),A.rotate(o*Math.PI/180),A.drawImage(e,-e.width/2,-e.height/2,e.width,e.height),A.restore();var r=document.createElement("canvas"),C=r.getContext("2d");if(90==o||270==o){var I=(n-e.width)/2,s=(n-e.height)/2,l=e.height,c=e.width;r.width=e.height,r.height=e.width}else{s=(n-e.width)/2,I=(n-e.height)/2,c=e.height,l=e.width;r.width=e.width,r.height=e.height}var u=A.getImageData(s,I,l,c);C.putImageData(u,0,0,0,0,l,c);var d=r.toDataURL("image/jpeg"),h=y.default.dataURLtoBlob(d),p=window.URL.createObjectURL(h);g.src=p,g.base64Src=d,g.onload=i.bind(this,g)}else i(e)}(g,o,(function(e){l.billboard.deleteMedia("photo");var t=l.billboard.mediaData.photo;t||(t=l.billboard.mediaData.photo={}),t.needSave=!0,t.media=e,d(),$(".waiting").removeClass("showloading")})),window.URL.revokeObjectURL(i)}}.bind(this),g.onerror=h}));else if("video"==C){var g=$('<video controls="controls" x5-playsinline="" webkit-playsinline="true" playsinline="true" controlslist="nodownload"></video>')[0];g.setAttribute("crossOrigin","Anonymous"),$(g).on("contextmenu",(function(){return!1})),$(g).attr("src",i),g.base64Src=e.target.result;var a=!1;isMobile&&setTimeout((function(){A()}),150);var A=function(){if(!a){v.a.info("video.onloadeddata 11"),a=!0,l.billboard.deleteMedia("video");var e=l.billboard.mediaData.video;e||(e=l.billboard.mediaData.video={}),e.needSave=!0,e.file=o,e.media=g,l.fileName.video=o.name,d(),$(".waiting").removeClass("showloading")}};g.addEventListener("loadeddata",(function(e){A()})),g.onerror=function(e){v.a.info("error"),!0,isMobile?setTimeout(A,2e3):h()}}else if("audio"==C){var r=new Howl({src:[i],format:["mp3"]});r.once("load",(function(){if(v.a.info("loaded sound"),r.unload(),n){var t="tourSoundUpload";R.a.savingInfo[t]={done:0};var g=s.a.get("上传语音讲解"),a=function(){$(".toolRight .snapTour .sound .playBox").removeClass("hide"),$(".toolRight .snapTour .sound .playBox .title").text(o.name)};Object(k.a)(I.a.prefixEditProPCApi+"/uploadScreencapVoiceNew",{file:o,name:m.a.guideSoundFile+".mp3"},{sceneNum:I.a.projectNum},(function(){v.a.info(" TourSound saveDone"),R.a.saveCallBack.done(t,a,g)}),R.a.saveCallBack.fail.bind(this,t,g))}else{v.a.info("audio.onloadeddata");var A=new Audio;A.controls="controls",A.src=i,A.base64Src=e.target.result,l.billboard.deleteMedia("audio");var C=l.billboard.mediaData.audio;C||(C=l.billboard.mediaData.audio={}),C.needSave=!0,C.file=o,C.media=A,l.fileName.audio=o.name,d(),$(".waiting").removeClass("showloading")}})),r.once("loaderror",(function(){h.apply(this,arguments),v.a.info("loaderror sound")})),r.on("end",(function(){v.a.info("Finished sound")}))}}}(),e.target.value=""}}.bind(K);if(t.on("change",q.inputMedia),i.on("change",q.inputMedia),o.on("change",q.inputMedia),q.deleteMediaType=function(e,t){!function(e,t){var i=e.billboard.media.indexOf(t);i>-1&&e.billboard.media.splice(i,1),e.billboard.deleteMedia(t),delete e.fileName[t],delete e.fileSrc[t]}(q.markTag,e),S.a.gui.changeMediaPreview(q.markTag,e),t&&t.stopPropagation()},isMobile){var r=new B.a({type:"chose"});$(".tmpl-hotpoint.step-3 .photo .preview").on("click",(function(){var e={};this.classList.contains("hasPhoto")?(e["".concat(s.a.get("更改图片"))]=function(){t.click()},e["".concat(s.a.get("删除图片"))]=function(){q.deleteMediaType("photo")},r.open({ul:e})):t.click()})),$(".tmpl-hotpoint.step-3 .video .preview").on("click",(function(){var e={};this.classList.contains("hasVideo")?(e["".concat(s.a.get("更改视频"))]=function(){o.click()},e["".concat(s.a.get("删除视频"))]=function(){q.deleteMediaType("video")},r.open({ul:e})):o.click()})),$(".tmpl-hotpoint.step-3 .audio .preview").on("click",(function(){var e={};this.classList.contains("hasAudio")?(e["".concat(s.a.get("更改音频"))]=function(){i.click()},e["".concat(s.a.get("删除音频"))]=function(){q.deleteMediaType("audio")},r.open({ul:e})):i.click()}))}else $(".toolRight .hotpointDetail .photo .upload").on("click",(function(){t.click()})),$(".toolRight .hotpointDetail .audio .upload").on("click",(function(){i.click()})),$(".toolRight .hotpointDetail .video .upload").on("click",(function(){o.click()})),$(".hotpointDetail .video .upload .del").on("click",q.deleteMediaType.bind(this,"video")),$(".hotpointDetail .audio .upload .del").on("click",q.deleteMediaType.bind(this,"audio")),$(".hotpointDetail .photo .upload .del").on("click",q.deleteMediaType.bind(this,"photo"));var C=function(){var e=this,t=isMobile?$("footer .tmpl-hotpoint.step-3 .outLink input").val():$("div.hotpointDetail .outLink .link input").val();if(this.checkVal!==t){this.checkVal=t;var i=!1,o=["https://v.qq.com/txp/iframe/player.html","https://open.iqiyi.com/developer/player_js/coopPlayerIndex.html","https://player.youku.com/"];if(t){if(~t.indexOf("<iframe")){i=!0;var g=document.createElement("div");if(g.innerHTML=t,!g.querySelector("iframe"))return S.a.gui.showAskBox(s.a.get("系统提示"),s.a.get("仅支持腾讯、爱奇艺、优酷外链"));~(t=g.querySelector("iframe").getAttribute("src")).indexOf("?")&&(t+="&autoplay=true")}if(t&&t.indexOf&&("http://"==(t=t.trim()).slice(0,7)?t="https://"+t.slice(7):"https://"!=t.slice(0,8)&&(t="https://"+t)),i)return~o.findIndex((function(e){return~t.indexOf(e)}))?n(t):S.a.gui.showAskBox(s.a.get("系统提示"),s.a.get("仅支持腾讯、爱奇艺、优酷外链"));if(~o.findIndex((function(e){return~t.indexOf(e)})))return n(t);$(".waiting").addClass("showloading"),window.__ajaxing=!0,$.ajax({url:I.a.prefixEditProPCApi+"/checkVideoUrl",data:{path:t},headers:{token:window.appLoginToken},method:"POST",success:function(e){if(window.__ajaxing=null,console.log("3s"),$(".waiting").removeClass("showloading"),0!==e.code||!e.msg)return S.a.gui.showAskBox(s.a.get("系统提示"),s.a.get("仅支持腾讯、爱奇艺、优酷外链"));n(e.msg),window.__cbs&&window.__cbs(),window.__cbs=null},error:function(){S.a.gui.showAskBox(s.a.get("系统提示"),s.a.get("保存失败"))}})}}function n(t){var i=q.markTag.billboard;i.deleteMedia("outLink"),i.mediaData.outLink=t,i.changeMedia("outLink"),e.checkVal=null}};$(document).on("click","div.hotpointDetail .outlinkBtns button.submit",C),$("footer .tmpl-hotpoint.step-3 .outLink .title").on("blur",C),I.a.use7niu&&Uploader7niu({browse_button:"mediaUp",container:"mediaUpOut",uploaded:function(e,t){var i=t+$.parseJSON(e.response).key,o=a(i);v.a.info("\n上传的链接是:\n"+i+"\n"),window.upload7niuDone(o,i)},failed:function(e,t,i){var o=a(t.file.name);window.upload7niuError(o)}})}(),function(){if(!isMobile){var e=$(".toolRight .screen .shotImg");if(K.thumbImg=Store.metadata.thumbImg,Store.metadata.thumbImg){var t="scene/"+m.a.sceneImgRoot+m.a.LOADPIC+"?m="+Store.metadata.version;e[0].style["background-image"]='url("'+t+'")',K.EntryInfo=Store.metadata.entry}else e.addClass("blank");e.on("click",(function(){if(K.EntryInfo){var e=K.model.panos.get(K.EntryInfo.pano),t=(new THREE.Quaternion).fromArray(K.EntryInfo.camera.quaternion),i=new THREE.Vector3(0,0,-1).applyQuaternion(t).add(e.position);K.flyToPano({pano:e,lookAtPoint:i})}}))}q.waitSaveEntry={},q.setEntrySnapshot=function(e){if((isMobile||"screen"==q.atPanel)&&!K.flying&&!K.flyRotate){var t={},i=function(i,o){t[i]=o,Object.keys(t).length==R.a.count.screen&&e&&e(t)},o=function(e){return{camera:{quaternion:E.a.toPrecision(e.metadata.camera_quaternion.toArray(),4),zoom:e.metadata.ortho_zoom||-1},mode:e.metadata.camera_mode||0,pano:e.metadata.scan_id||"",lon:e.metadata.lon,lat:e.metadata.lat}}(K.getSnapAngleInfo());q.waitSaveEntry.EntryInfo=o,i("EntryInfo",o);Object(j.a)({tasks:{unFish:[{width:2560,height:1280,name:"big"},{width:1024,height:512,name:"smaller"},{width:128,height:128,name:"weixinShare"}],fish:[{width:1862,height:840,name:"bigFish"}]},snapshotTopview:!0,notHideTags:!0,f:function(e,t){"big"==t?i("thumbBigImg",e):"smaller"==t?(i("thumbSmallImg",e),window.isMobile||(q.waitSaveEntry.base64=e)):"weixinShare"==t?i("smallPic",e):"bigFish"==t&&i("thumbFishBigImg",e)}})}};var i,o=$("#webgl .snapshotGui"),g=function(e,t){0!=t?(e.removeClass("hide"),v.a.info("waitToshow"),setTimeout((function(){e.css("opacity","1")}),10),isMobile||(i.removeClass("hide"),i.text(s.a.get("设置为初始画面"))),q.EntryAvoidVideo()):(e.css("opacity","0"),setTimeout((function(){"0"==e[0].style.opacity&&e.addClass("hide")}),200),!isMobile&&i.addClass("hide"))};if(q.toSetEntry=function(){K.tagManager.hideAllTags(),K.updateRulersVisi(!1),g(o),K.thumbNeedSave=!0},q.EntryAvoidVideo=function(){K.currentPano.hasVideo?i.addClass("unable"):i.removeClass("unable")},window.isMobile)i=$('.tmpl-screen button[type="submit"]');else{var n=function(){window.entryNeedSave=!0,K.EntryInfo=q.waitSaveEntry.EntryInfo;var e=y.default.getBlobSrc(q.waitSaveEntry.base64),t=$(".toolRight .screen .shotImg");t.removeClass("blank"),t.css("background-image",'url("'+e+'")')};(i=$(".toolMid .midBottom .confirmSnap")).on("click",q.setEntrySnapshot.bind(this,(function e(t){$(".waiting").addClass("showloading"),!R.a.savingInfo.screen&&(R.a.savingInfo.screen={done:0});var i=s.a.get("设置");for(var o in t)if("EntryInfo"==o){var g=I.a.prefixEditProPCApi+"/saveInitialPage",a=R.a.getDataDeal(g,"screen",n,i);R.a.savingInfo.screen.waitAjax={url:g,dataDeal:a,data:{sceneNum:I.a.projectNum,initialPoint:JSON.stringify(t.EntryInfo)}}}else Object(k.a)(I.a.prefixEditProPCApi+"/uploadPic",{name:o+".jpg",needTransfer:!0,file:t[o]},{sceneNum:I.a.projectNum},R.a.saveCallBack.done.bind(this,"screen",n,i),R.a.saveCallBack.fail.bind(this,"screen",i),{resaveFuc:e.bind(this,t)})}))),i.on("mouseover",(function(){o.addClass("highLight")})),i.on("mouseout",(function(){o.removeClass("highLight")}))}if(q.finishSetEntry=function(){setTimeout((function(){K.updateRulersVisi()}),1),K.tagManager.showAllTags(),g(o,!1),i.removeClass("unable")},!isMobile){var a=$(".toolMid .midBottom .confirmSnap");a.on("click",(function(){K.setTagVisible?q.saveTagVisibles():K.setPanoVisible&&q.savePanoVisibles()}));var A=function(e){e?(a.text(s.a.get("保存当前设置")),a.removeClass("hide")):(a.addClass("hide"),r.addClass("hide"))};$(".hotpoint.tail button").on("click",(function(){q.checkSpotCount({min:0})?S.a.gui.showAskBox(s.a.get("无法设置热点可视"),s.a.get("当前无热点,请先创建热点再设置"),{btns:[{text:s.a.get("确定"),type:"submit",fuc:function(){}}],donClose:!0}):($(".toolLeft").addClass("unable"),K.FlyToMode("floorplan",(function(){$(".toolLeft").removeClass("unable"),q.beginSetTagVisible(),q.enterPanel=!1})))}))}q.beginSetTagVisible=function(){if(!K.setTagVisible){for(var e in K.model.tags)K.model.tags[e].disc.material.depthTest=!1;K.setTagVisible=!0,K.tagVTemp={},isMobile?$("footer .tmpl-hotVisible .tips").text(s.a.get("点击选择要设置的热点")):(K.reticule.visible=!1,$("#gui-parent .confirmSnap").removeClass("hide"),A(!0),$("#setTagVisible label").off("click",q.beginSetTagVisible),$("#setTagVisible label").on("click",q.finishSetTagVisible),$(".toolRight").addClass("unable")),K.path.currentPanoMarker.mesh.visible=!1,S.a.gui.changeCadVisible()}},q.SetOneTagVisible=function(e){K.tagVsetting!=e&&(K.tagVsetting&&(q.saveLastTagVi(K.tagVsetting),K.tagVsetting.setElemType(K.tagVsetting.style.split("Yellow")[0])),K.tagVsetting=e,K.model.delVisibleLines(),K.model.showFootIcons(K.currentPano),K.model.createTagVisiLines(e,K.tagVTemp),e.setElemType(e.style+"Yellow"),K.model.updateFootIconSize(K.cameraControls.activeControl),isMobile&&$("footer .tmpl-hotVisible .tips").text(s.a.get("点击绿色图标,设置热点在这些位置是否可见")))},q.saveLastTagVi=function(){var e=!1,t=K.tagVTemp[K.tagVsetting.sid]||K.tagVsetting.visiblePanos.slice(0);for(var i in K.model.tagsVLines){var o=K.model.tagsVLines[i];if(o.name.indexOf("new")>-1&&o.visible)t.push(i),e=!0;else if(-1==o.name.indexOf("new")&&!o.visible){var g=t.indexOf(i);if(-1==g){v.a.info("visiblePanos删除error");continue}t.splice(g,1),e=!0}}e&&(K.tagVTemp[K.tagVsetting.sid]=t)},q.pauseSetTagVisible=function(){K.setTagVisible&&K.tagVsetting&&(K.tagVsetting.setElemType(K.tagVsetting.style.split("Yellow")[0]),K.model.delVisibleLines(),K.model.hideFootIcons(),K.tagVTemp={},K.tagVsetting=null)},q.finishSetTagVisible=function(){K.setTagVisible&&(q.pauseSetTagVisible(),K.path.currentPanoMarker.mesh.visible=!0,K.setTagVisible=!1,K.reticule.visible=!0,isMobile||(A(!1),$(".toolRight").removeClass("unable")),S.a.gui.changeCadVisible())},q.saveTagVisibles=function(e){K.tagVsetting&&q.saveLastTagVi(K.tagVsetting);var t=[];for(var i in K.tagVTemp)t.push({sid:i,value:K.tagVTemp[i]});if(window.isMobile)e&&e(t);else{if(0==t.length)return S.a.gui.showInfo(s.a.get("设置成功")),void q.finishSetTagVisible();var o={name_t:"hotVisible",f:q.finishSetTagVisible,url:I.a.prefixEditProPCApi+"/saveHotVisible",dialog:s.a.get("设置"),data:{data:JSON.stringify(t)}},g=R.a.saveFucforPC(o);g.group[0]=function(){for(var e in K.tagVTemp)K.model.tags[e].visiblePanos=K.tagVTemp[e];q.hotJsonChanged=!0,g.done()},g.group[3017]=function(){v.a.info("hot.json不存在或者为空"),g.fail()}}};var r=$(".toolMid .midBottom #midBtns>button").eq(1);q.beginSetPanoVisible=function(){K.setPanoVisible||(K.panoVTemp={},q.SetOnePanoVisible(K.currentPano),S.a.tagManager.hideAllTags(),K.reticule.visible=!1,K.path.currentPanoMarker.mesh.visible=!1,K.setPanoVisible=!0,isMobile||A(!0),S.a.gui.changeCadVisible(),K.model.updateFootIconSize(K.cameraControls.activeControl))},q.SetOnePanoVisible=function(e){K.panoVsetting!=e&&(K.panoVsetting=e,K.model.delVisibleLines(),K.model.showFootIcons(e,!0),K.model.createPanoVisiLines(e,K.panoVTemp),isMobile?$("footer .tmpl-hotVisible .tips").text(s.a.get("点击绿色图标,设置热点在这些位置是否可见")):K.model.panos.list.length>1&&r.removeClass("hide"))},q.saveLastPanoVi=function(){var e=[];for(var t in K.model.panoVLines){var i=K.model.panoVLines[t];i.name.indexOf("new")>-1&&i.visible?e.push({type:"add",id:t}):-1!=i.name.indexOf("new")||i.visible||e.push({type:"sub",id:t})}if(e.length){for(var o=C(K.panoVsetting.id),g=o.seeMarkers,n=o.neighbourUUIDs,a=o.neighbourPanos,A=0;A<e.length;A++){var r,I=C(e[A].id),s=I.seeMarkers,l=I.neighbourUUIDs,c=I.neighbourPanos;if("add"==e[A].type)s.push(K.panoVsetting.id),l.push(K.panoVsetting.id),c[K.panoVsetting.id]=!0,g.push(e[A].id),n.push(e[A].id),a[e[A].id]=!0;else(r=s.indexOf(K.panoVsetting.id))>-1&&s.splice(r,1),(r=l.indexOf(K.panoVsetting.id))>-1&&l.splice(r,1),c[K.panoVsetting.id]=!1,(r=g.indexOf(e[A].id))>-1&&g.splice(r,1),(r=n.indexOf(e[A].id))>-1&&n.splice(r,1),a[e[A].id]=!1;K.panoVTemp[e[A].id]={neighbourPanos:c,seeMarkers:s,neighbourUUIDs:l}}K.panoVTemp[K.panoVsetting.id]={neighbourPanos:a,seeMarkers:g,neighbourUUIDs:n}}},q.pauseSetPanoVisible=function(e){if(K.setPanoVisible){"unsaved"==e?q.saveLastPanoVi():K.panoVTemp={},K.model.delVisibleLines(),K.model.showFootIcons();var t=K.panoVsetting;K.panoVsetting=null,t&&K.model.changeFIconState2(t.footIcon,K.model.checkHasNeighbor(t)),isMobile||r.addClass("hide")}},q.finishSetPanoVisible=function(){K.setPanoVisible&&(K.setPanoVisible=!1,K.model.hideFootIcons(),K.model.delVisibleLines(),S.a.tagManager.showAllTags(),K.path.currentPanoMarker.mesh.visible=!0,K.model.recoverAllState2(),K.reticule.visible=!0,K.panoVsetting=null,K.panoVTemp={},isMobile||A(!1),S.a.gui.changeCadVisible())},isMobile||(q.changeVisiBtnState=function(e){r.attr("function",e?"hide":"show"),r.html(e?s.a.get("隐藏该点位置"):s.a.get("显示该点位置"))},r.on("click",(function(){if("hide"==r.attr("function"))for(var e in K.model.panoVLines)K.model.panoVLines[e].visible&&K.model.dealPanoVisible(e);else{var t=K.model.panos.sortByScore([],[function(e){return-e.position.distanceTo(K.panoVsetting.position)}]),i=0;if(1==t.length)return;for(var o=Math.max(1.5*-t[1].score,4),g=1;g<t.length;g++){if(!(-t[g].score<o)){if(1==i){var n=t[g-1].pano.position.clone().sub(K.panoVsetting.position).setY(0),a=t[g].pano.position.clone().sub(K.panoVsetting.position).setY(0);n.angleTo(a)>Math.PI/2&&(console.log("再加一个 角度"+THREE.Math.radToDeg(n.angleTo(a))),K.model.dealPanoVisible(t[g].pano.id));break}break}if(i>0){var A=K.panoVsetting.position.clone(),C=t[g].pano.position.clone(),I=new THREE.Raycaster(A,C.clone().sub(A).normalize(),0,A.distanceTo(C)).intersectObjects(K.model.chunks);if(I&&I.length)continue}K.model.dealPanoVisible(t[g].pano.id),i++}console.log(t)}}))),q.savePanoVisibles=function(e){K.panoVsetting&&q.saveLastPanoVi(K.panoVsetting);var t=[];for(var i in K.panoVTemp)t.push({panoID:i,visibles:l(K.panoVTemp[i].seeMarkers),visibles3:l(K.panoVTemp[i].neighbourUUIDs)});if(window.isMobile)e&&e(t);else if(0!=t.length){var o={name_t:"panoVisible",f:q.pauseSetPanoVisible,url:I.a.prefixEditProPCApi+"/saveLinkPano",dialog:s.a.get("设置"),data:{data:JSON.stringify(t)}},g=R.a.saveFucforPC(o);g.group[0]=function(){for(var e in K.panoVTemp){var t=K.model.panos.index[e];t.seeMarkers=K.panoVTemp[e].seeMarkers,t.neighbourUUIDs=K.panoVTemp[e].neighbourUUIDs,t.neighbourPanos=K.panoVTemp[e].neighbourPanos}if(K.model.checkHasNeighbor(K.currentPano))K.model.noPanoHasNeighbor=!1;else{var i=K.model.panos.sortByScore([function(e){return K.model.checkHasNeighbor(e)}],[function(e){return-e.position.distanceTo(K.currentPano.position)}]);i&&i.length?(K.currentPano=i[0].pano,K.model.noPanoHasNeighbor=!1):K.model.noPanoHasNeighbor=!0}g.done(),K.model.updateFootIconSize(K.cameraControls.activeControl)}}else S.a.gui.showInfo({result:!1,title:s.a.get("保存成功")})};var C=function(e){var t={};return K.panoVTemp[e]?(t.seeMarkers=K.panoVTemp[e].seeMarkers,t.neighbourUUIDs=K.panoVTemp[e].neighbourUUIDs,t.neighbourPanos=K.panoVTemp[e].neighbourPanos):(t.seeMarkers=K.model.panos.index[e].seeMarkers.slice(0),t.neighbourUUIDs=K.model.panos.index[e].neighbourUUIDs.slice(0),t.neighbourPanos=y.default.CloneObject(K.model.panos.index[e].neighbourPanos)),t},l=function(e){for(var t=[],i=0;i<e.length;i++){var o=K.model.panos.index[e[i]],g=K.model.panos.list.indexOf(o);t.push(g)}return t}}(),1==I.a.setSpotType){var G=function(e){var t=q.markTag;t&&t.markGroup.moveTagPos(e,(function(e){!Q&&t.offScreen2(t.disc,K.camera)&&(Q=!0,K.lookAtPos(e,null,{constantSpeed:!0,speed:.1,fuc:function(){Q=!1}}))}))},W=function(e){},U=o(305).default,Q=!1;window.isMobile?q.tagMoveCtrl=new U($("footer .tmpl-hotpoint.step-2 .slideCtrl")[0],G,W):q.tagMoveCtrl=new U($(".slideCtrl")[0],G,W),q.markMoveCtrl=new N.a({hasBound:!0,useTransform:!0,elem:$("#hotspot .staticSpot"),domParent:$("#player"),beginMoveFuc:function(){K.cameraControls.activeControl.locked=!0,q.markMoveCtrl.elem.addClass("dragging")},moveDoneFuc:function(e){K.cameraControls.activeControl.locked=!1,q.markMoveCtrl.elem.removeClass("dragging")}})}!function(){var e,t,i=M.a.detectWeixin()?51:window.endSecondSet||120;if(isMobile){var o=$(".footer-tmpl.tmpl-snapTour.step-2");e=$("#gui-parent .reciprocal"),t=o.find(".times")}else e=$(".upperLayer .reciprocal"),t=$("#time .times"),$("#time span").eq(1).text(" / "+y.default.getTime(i));window.reciprocal=function(){var i=3;e.removeClass("hide"),t.parent().removeClass("hide"),t.text("00:00"),e.find("span").text(i),S.a.player.model.supportsTiles&&(H.a.zoom.enabled=!1,S.a.player.smoothZoomToDefault(600)),S.a.recordGuider.beforeStart();var o=setInterval((function(){if(0==--i)return clearInterval(o),e.addClass("hide"),void recording();e.find("span").text(i)}),650)},window.reciprocalProfessional=function(t){var i=3;e.removeClass("hide").css("z-index",99999),e.find("span").text(i),S.a.player.model.supportsTiles&&(H.a.zoom.enabled=!1,S.a.player.smoothZoomToDefault(600));var o=setInterval((function(){if(0==--i)return clearInterval(o),e.addClass("hide"),void(t&&t());e.find("span").text(i)}),650)},window.appSendMsgBack=function(e){var t=document.createEvent("MouseEvent");t.initMouseEvent(e,!0,!0,document.defaultView,0,0,0,0,0,!1,!1,!1,!1,0,null),window.dispatchEvent(t)},window.addEventListener("appSoundSaved",(function(){console.log("appSoundSaved"),recording.recorder.resolve()})),window.addEventListener("appSoundFailed",(function(){console.log("appSoundFailed"),recording.recorder.reject()})),window.addEventListener("onResume",(function(){console.log("appMusicPlay"),S.a.playGuider.musicPlayer.resume()})),window.addEventListener("onStop",(function(){console.log("appMusicPause"),S.a.playGuider.musicPlayer.isPlaying&&S.a.playGuider.musicPlayer.pause(!0)})),window.recording=function(){var e=0;recording.recorder=$.Deferred(),I.a.app?Object(L.a)("RecordStart"):q.recordSound?(czg_record.fixStartRecord((function(e){v.a.info("fixStartCallback")})),czg_record.wxRecordEnd((function(e){e.state?(v.a.info(e.msg+",自动停止录音成功"),recording.recorder.resolve()):(v.a.info(e.msg+",自动停止录音失败"),recording.recorder.reject()),$('.tmpl-snapTour.step-2 button[type="submit"]').click()}))):recording.recorder=null,S.a.recordGuider.startRecord();var o=setInterval((function(){++e>=i?$('.tmpl-snapTour.step-2 button[type="submit"]').click():t.text(y.default.getTime(e))}),1e3);recording.finish=function(e){clearInterval(o),t.parent().remove("hide").addClass("hide"),S.a.recordGuider.stopRecord(),e?(S.a.recordGuider.cancelRecord(),I.a.app?Object(L.a)("RecordCancel"):q.recordSound&&czg_record.fixStopRecord()):I.a.app?Object(L.a)("RecordEnd"):q.recordSound&&czg_record.fixStopRecord((function(e){e.state?recording.recorder.resolve():recording.recorder.reject(),v.a.info("停止微信录音"),v.a.info(e)}))}}}(),window.isMobile&&(q.enterHandel={screen:function(){K.panoVideoRenderer&&K.panoVideoRenderer.onPanoChange(null),S.a.gui.permitTranMode(!1),K.FlyToMode("panorama",q.toSetEntry)},sign:function(){S.a.gui.permitTranMode(!1),q.scroller.floorLogoSize.InitOffset();K.FlyToMode("panorama",(function(){K.lookAtPos(null,null,{speed:.1,time:500,lat:-50})}))},music:function(){S.a.gui.permitTranMode(!1),null!=q.dataInEdit.bgmIndex&&(S.a.playGuider.musicPlayer.time(0),S.a.playGuider.musicPlayer.play())},information:function(){$("#BGcover").removeClass("hide"),$(".tmpl-information .ql-editor").html(q.dataInSave.sceneDec)},"hotpoint.step-1":function(e){if(S.a.gui.permitTranMode(!1),K.panoVideoRenderer&&K.panoVideoRenderer.onPanoChange(null),2==I.a.setSpotType||3==I.a.setSpotType)if(q.markTag)V.a.reSetPos();else if(q.reEditHot){S.a.gui.permitTranMode(!1);var t=q.chosenSpot;q.markTag=t,q.markTag.edit=!0,q.tempTagData=t.getTempData(),V.a.updatePanelForTag(),t.snapInfo||(v.a.info("修改旧版或新版热点,模拟"),t.snapInfo={panoId:K.currentPano.id,nodeEnd:t.position.clone()}),V.a.reSetPos()}else K.tagManager.activeTag&&K.tagManager.dismissActiveTag(),V.a.updatePanelForTag(),V.a.addSpot();else{Z.hotstep2Tip.end();K.FlyToMode("panorama",(function(){$("footer .buttons").removeClass("unable");var e,t=$("#hotspot .staticSpot");if(q.reEditHot||q.markTag){if(q.reEditHot&&!q.markTag){var i=q.chosenSpot;q.markTag=i,q.tempTagData=i.getTempData(),V.a.updatePanelForTag()}else v.a.info("返回第一步操作");K.lookAtPos(q.markTag.position,null,{speed:.1,time:500}),e=q.markTag.style,q.tempPosData||(q.tempPosData=q.markTag.getTempData()),q.markTag.markGroup&&q.markTag.markGroup.remove(),q.markTag.remove(),q.markTag=null,v.a.info("删除editor.markTag")}else e="note";q.markMoveCtrl.recover(),t.removeClass("hide"),$('.tmpl-hotpoint .swiper-wrapper>div[data-name="'+e+'"]').click()}))}},"hotpoint.step-2":function(e){if(Z.hotstep2Tip.begin(),q.tagMoveCtrl.setPathWidth(),q.markTag)v.a.info("返回第二步"),q.markTag.billboard.closeImage&&q.markTag.billboard.closeImage(),q.markTag.state="mark",q.markTag.markGroup?q.markTag.markGroup.show():q.markTag.createMarkGroup();else{v.a.info("开始新建热点"),q.setSpotPos=!0;var t=q.markMoveCtrl.reportPos();K.handleInputStart(t.x,t.y,!0),q.createTag(),q.markTag.edit=!0,$("#hotspot .staticSpot").addClass("hide")}},"hotpoint.step-3":function(e){if(Z.hotstep2Tip.end(),$("#BGcover").removeClass("hide"),$(".tmpl-hotpoint.step-3 .warn").addClass("hide"),q.markTag.billboard.closeImage&&q.markTag.billboard.closeImage(),q.markTag){if(v.a.info("进入第三步"),1==I.a.setSpotType){if(q.tempPosData){var t=q.tempPosData,i=q.markTag;i.billboard.changeLabel(t.label),i.billboard.changeDesc(t.description),i.media=t.media,i.recoverFromTemp(t,"builded"),t.media.forEach((function(e){i.billboard.changeMedia(e)})),i.fileSrc=t.fileSrc,i.fileName=t.fileName,q.tempPosData=null}V.a.updatePanelForTag()}}else;},lock:function(){q.dataInEdit.psd.length<4&&$("#app .tmpl-lock .psd input")[q.dataInEdit.psd.length].focus()},hotVisible:function(){S.a.gui.permitTranMode(!1),K.FlyToMode("floorplan",q.beginSetTagVisible)},panoVisible:function(){S.a.gui.permitTranMode(!1),K.FlyToMode("floorplan",q.beginSetPanoVisible)},"snapTour.step-1":function(){if(v.a.info("mobile开启录音权限1 "),q.recordSound=!1,!I.a.app){if(M.a.detectWeixin()){v.a.info("weixin"),$(".waiting").addClass("showloading");try{czg_record.checkStartRecordApi((function(e){$(".waiting").removeClass("showloading"),e?(S.a.gui.showInfo(s.a.get("麦克风开启成功")),q.recordSound=!0,v.a.info("麦克风开启成功")):(S.a.gui.showAskBox(s.a.get("微信麦克风开启失败"),s.a.get("可能您若要开启录音,请于微信的设置—隐私—授权管理中开启。且保证录音设备正常"),{btns:[{text:s.a.get("确定"),type:"submit"}]}),v.a.info("微信麦克风开启失败orz"))}))}catch(e){v.a.info(e)}}else S.a.gui.showInfo({title:s.a.get("当前不支持录音")+"<br>"+s.a.get("可在微信或电脑端录音"),time:2e3});$("nav.left").addClass("hide")}},wallDesign:function(){K.FlyToMode(K.modeTran.split("-")[1],(function(){$("footer").css("overflow","unset"),q.mainDesign.enter(),S.a.gui.changeMapVisible(!1),S.a.gui.changeCadVisible(),$("nav.left").addClass("hide"),setTimeout((function(){}),3)}))},settings:function(){}},q.btnHandel={screen:q.setEntrySnapshot,sign:function(e){e({chose:q.dataInEdit.floorLogo,size:parseInt(100*K.model.floorLogos[0].scale.x)})},information:function(e){""==q.dataInEdit.sceneName.trim()?(Z.jroll.scrollTo(0,0),$(".tmpl-information .word .warn").eq(0).removeClass("hide")):q.psdSwitch.state&&4!=q.dataInEdit.psd.length?0==q.dataInEdit.psd.length?(q.psdSwitch.switchState(0),e()):$(".tmpl-information .lock .warn").removeClass("hide"):e()},"hotpoint.step-1":function(e){v.a.info("热点确定位置"),2==I.a.setSpotType||3==I.a.setSpotType?V.a.confirmPos():q.snapInfo={pano:K.currentPano,quaternion:K.quaternion,style:$("footer .tmpl-hotpoint.step-1 .swiper-slide.active").data("name")}},"hotpoint.step-1-2":function(e){},"hotpoint.step-2":function(e){v.a.info("隐藏热点markGroup"),q.markTag.markGroup.hide(),q.markTag.state="normal",q.markTag.setVisiblePanos(),q.chosenSpot=q.markTag},"hotpoint.step-3":function(e){V.a.saveSpot(e)},lock:function(e){4!=q.dataInEdit.psd.length?S.a.gui.showAskBox(s.a.get("请填写"),s.a.get("密码需要四位数字或字母")):e({psd:q.dataInEdit.psd})},unlockRequest:function(e){e()},music:function(e){e()},delete:function(e){e()},deleteSpot:function(e){e({sid:q.chosenSpot.sid})},hotVisible:q.saveTagVisibles,panoVisible:q.savePanoVisibles,"snapTour.step-1":function(e){for(var t in $("header>*").addClass("unable"),$("#tag-billboards").addClass("noTouch"),S.a.gui.playAudio(null,!1),S.a.playGuider.soundPlayer.stop(),S.a.playGuider.musicPlayer.stop(),reciprocal(),S.a.player.model.tags){var i=S.a.player.model.tags[t];i.billboard.media.indexOf("outLink")>-1&&"videoPanoFlag"!=i.state&&i.hide()}},"snapTour.step-2":function(e){K.flying||K.flyingToTag||e()},wallDesign:function(e){e()},settings:function(e){e()}},q.exitHandel={screen:function(){q.finishSetEntry(),setTimeout((function(){K.panoVideoRenderer&&"panorama"==K.mode&&K.panoVideoRenderer.onPanoChange(K.currentPano)}),10)},information:function(){$("#BGcover").addClass("hide")},sign:function(){if($(".avatar-cropper button[type=button]").click(),q.dataInSave.floorLogo!=q.dataInEdit.floorLogo){var e=["f0","f1","f2","user"].indexOf(q.dataInSave.floorLogo);$(".tmpl-sign .icon-sign").eq(e).click()}q.scroller.floorLogoSize.setValueFromOutside(q.dataInSave.flScale)},music:function(){if((null!=q.dataInEdit.bgmIndex?m.a.BGM_LIST[q.dataInEdit.bgmIndex].name:"noMusic")!=q.dataInSave.bgmName)if("noMusic"!=q.dataInSave.bgmName){for(var e=0;e<m.a.BGM_LIST.length;e++)if(q.dataInSave.bgmName==m.a.BGM_LIST[e].name){$(".tmpl-music li").eq(e).data("reset",!0).click();break}}else $(".tmpl-music .tips .right").click()},"hotpoint.step-1":function(){if(2==I.a.setSpotType||3==I.a.setSpotType)V.a.exitHotEdit();else{if($("#hotspot .staticSpot").addClass("hide"),v.a.info("取消热点"),q.tempTagData){var e,t=q.tempTagData;v.a.info("热点恢复创建"),(e=new O.a(K.model,t.sid,t)).recoverFromTemp(t),e.hide(0),setTimeout((function(){e.show(100)}),50),y.default.destroyNoUseBlob(e)}else y.default.destroyNoUseBlob();q.markTag&&(q.markTag.edit=!1),q.markTag=null,q.tempTagData=null,q.tempPosData=null,q.reEditHot=!1}setTimeout((function(){K.panoVideoRenderer&&"panorama"==K.mode&&K.panoVideoRenderer.onPanoChange(K.currentPano)}),10),v.a.info("退出热点")},"hotpoint.step-2":function(e){"cancel"==e&&q.exitHandel["hotpoint.step-1"]()},"hotpoint.step-1-2":function(e){"cancel"==e&&q.exitHandel["hotpoint.step-1"]()},"hotpoint.step-3":function(e){"cancel"==e&&q.exitHandel["hotpoint.step-1"](),$(".tmpl-hotpoint.step-3 .warn").addClass("hide"),q.tempTagData=null,q.tempPosData=null,$("#BGcover").addClass("hide"),v.a.info("退出热点"),setTimeout((function(){K.panoVideoRenderer&&"panorama"==K.mode&&K.panoVideoRenderer.onPanoChange(K.currentPano)}),10)},deleteSpot:function(){q.chosenSpot.remove()},hotVisible:function(){q.finishSetTagVisible()},panoVisible:function(){q.finishSetPanoVisible()},"snapTour.step-1":function(){setTimeout((function(){K.panoVideoRenderer&&"panorama"==K.mode&&K.panoVideoRenderer.onPanoChange(K.currentPano)}),10)},"snapTour.step-2":function(e){for(var t in $("header>*").removeClass("unable"),"cancel"==e&&recording.finish(!0),$("nav.left").removeClass("hide"),$("#tag-billboards").removeClass("noTouch"),S.a.player.model.tags){var i=S.a.player.model.tags[t];i.billboard.media.indexOf("outLink")>-1&&"videoPanoFlag"!=i.state&&i.show()}setTimeout((function(){K.panoVideoRenderer&&"panorama"==K.mode&&K.panoVideoRenderer.onPanoChange(K.currentPano)}),10)},wallDesign:function(){q.mainDesign.leave(),S.a.gui.changeMapVisible(),S.a.gui.changeCadVisible(),$("nav.left").removeClass("hide")},settings:function(){}},q.changeFloorLogo=function(e){K.model.changeFloorLogo(e),null!=e.index?q.dataInEdit.floorLogo="f"+e.index:q.dataInEdit.floorLogo="user"},$("footer .tmpl-hotpoint.step-3").find(".word input").on("input",(function(e){q.markTag.billboard.changeLabel(e.target.value),V.a.IfLabelBlank(q.markTag)||$(".tmpl-hotpoint.step-3 .warn").addClass("hide")})))},S.a.editor=q},,function(e,t,i){"use strict";(function(e){i(59),i(53),i(29),i(60);var o=i(99),g=i(263),n=i(264),a=i(275),A=i(276),r=i(152),C=i(284);function I(e,t){var i=e.renderer,g=e.wall,n=(e.CAD,new A.a(i,t.deg,g));return n.prohibitWH=t.show,i.models.push(n),i.render(!1),{getLabel:function(){return n},addLabel:function(e){"Number"===o.a.getType(e.deg)&&(n.deg=e.deg)||(n.deg=0),i.render(!1)}}}function s(e,t,i){var o=e.renderer,g=new a.a(t,i);return o.models.push(g),o.render(!1),{setPosition:function(e,t){g.point=e,g.angle=t,o.render(!1)}}}function l(e,t,i){return Object.keys(e).forEach((function(o){t[o]=function(){for(var g=arguments.length,n=new Array(g),a=0;a<g;a++)n[a]=arguments[a];var A=e[o].apply(e,[i].concat(n));delete t[o],Object.keys(A).forEach((function(e){t[e]=A[e]}))}})),e}e.gremote="",t.a=function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=Object(r.a)(t),a=new g.a(e,o.faces.reduce((function(e,t){return e.concat(t)}),[])),A=new n.a(o),c={};return A.top=o.top,A.bottom=o.bottom,a.models.push(A),Object(C.a)(c,A,a),l({setPosition:s,addLabel:I},c,{renderer:a,wall:A,CAD:c}),c.addLabel({deg:0}),c.renderer=a,c.setMap=function(e){A.map=e,a.render()},c.setStreamlining=function(e){!!e!==a.streamlining&&(a.models.forEach((function(t){t.streamlining=e})),a.streamlining=e,a.init(),a.render())},c.setOffset=function(e){var t=e.center,i=e.padding;a.setPadding(i,t),a.init(),a.render()},c.getPadding=function(){return a.getPadding()},c.setStreamlining(i),a.render(),c}}).call(this,i(180))},function(e,t,i){"use strict";i(125);var o=i(25),g=i.n(o),n=i(28),a=i.n(n),A=i(82),r=function(){function e(t,i){g()(this,e),this.point=t,this.angle=i,this.withinW=4,this.abroadW=1,this.lightW=10,this.lightrRdian=.4*Math.PI}return a()(e,[{key:"isScale",value:function(){return!0}},{key:"draw",value:function(e,t){var i=e.transScreenPoint(this.point),o=this.angle-this.lightrRdian/2,g=this.angle+this.lightrRdian/2,n=this.withinW+this.abroadW+this.lightW,a=this.withinW+this.abroadW,r=t.createRadialGradient(i.x,i.y,a,i.x,i.y,n);r.addColorStop(0,"rgba(0,200,175,0.9)"),r.addColorStop(1,"rgba(0,200,175,0.3)"),t.beginPath(),t.fillStyle=r,t.moveTo(i.x,i.y),t.arc(i.x,i.y,n,o,g,!1),t.fill(),t.closePath(),A.a.pointSelect(t,i,a,this.abroadW,"#ffffff","rgba(0,200,175,1)")}}]),e}();t.a=r},function(e,t,i){"use strict";i(106),i(107),i(39),i(75);var o=i(33),g=i.n(o),n=(i(119),i(11)),a=i.n(n),A=(i(59),i(53),i(29),i(60),i(25)),r=i.n(A),C=i(28),I=i.n(C),s=i(47),l=i(82),c=(i(99),i(3));function u(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function d(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?u(Object(i),!0).forEach((function(t){a()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):u(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var h=function(){function e(t,i,o){r()(this,e),this.deg=i,this.padding=30,this.faces=o.faces,this.renderer=t}return I()(e,[{key:"calcFacesArea",value:function(){var e=this;Object.keys(this.faces).map((function(t){return d({},e.calcFaceArea(e.faces[t]),{face:e.faces[t]})})).forEach((function(e){var t=e.area,i=e.point,o=e.face,g=Number(t.toFixed(2));(g!==o.area||s.a.equalPoint(o.textPoint,o.textPoint))&&(o.textPoint=i,o.area=g)}))}},{key:"calcWH",value:function(){var e=this,t=[];Object.keys(this.faces).forEach((function(i){return e.faces[i].forEach((function(e){return t.push(e.points[0])}))}));var i=Math.max.apply(Math,g()(t.map((function(e){return e.x}))))-Math.min.apply(Math,g()(t.map((function(e){return e.x})))),o=Math.max.apply(Math,g()(t.map((function(e){return e.y}))))-Math.min.apply(Math,g()(t.map((function(e){return e.y}))));this.w=Number(i.toFixed(3)),this.h=Number(o.toFixed(3))}},{key:"calcArea",value:function(){var e=this;return Object.keys(this.faces).map((function(t){return d({},e.calcFaceArea(e.faces[t]),{face:e.faces[t]})})).reduce((function(e,t){return e+t.area}),0)}},{key:"calcReferenceRange",value:function(){var e=this,t=[];Object.keys(this.faces).forEach((function(i){return e.faces[i].forEach((function(e){return t.push(e.points[0])}))})),t=t.map((function(t){return e.renderer.transScreenPoint(t)}));var i=s.a.getSection(t),o=i.minx,g=i.maxx,n=i.miny,a=i.maxy,A={left:[{x:o+=-40,y:n+=-40},{x:o,y:a-=-40}],right:[{x:g-=-40,y:n},{x:g,y:a}],top:[{x:o,y:n},{x:g,y:n}],bottom:[{x:o,y:a},{x:g,y:a}]};return Object.keys(A).forEach((function(t){return A[t]=A[t].map((function(t){return e.renderer.transRealPoint(t)}))})),A}},{key:"calcFaceArea",value:function(e){var t=[];e.forEach((function(e){return t.push(e.points[0])}));var i=this.renderer.transScreenPoint(s.a.getCenterOfGravityPoint(t)),o=s.a.faceArea(t);return i.x=i.x*this.renderer.scale+this.renderer.offset.x,i.y=i.y*this.renderer.scale+this.renderer.offset.y,{point:i,area:o}}},{key:"calcSeparate",value:function(){var e=this,t=Object.keys(this.faces).reduce((function(t,i){return t.concat(e.faces[i].map((function(e){return e.points[0]})))}),[]),i=[];t.sort((function(e,t){return e.x-t.x?e.x-t.x:t.y-e.y})),t.forEach((function(e){0===i.length&&i.push(e.y),e.y>i[i.length-1]&&i.push(e.y),e.y<i[0]&&i.unshift(e.y)}));var o=[];t.sort((function(e,t){return t.x-e.x?t.x-e.x:t.y-e.y})),t.forEach((function(e){0===o.length&&o.push(e.y),e.y>o[o.length-1]&&o.push(e.y),e.y<o[0]&&o.unshift(e.y)}));var g=[];t.sort((function(e,t){return e.y-t.y?e.y-t.y:t.x-e.x})),t.forEach((function(e){0===g.length&&g.push(e.x),e.x<g[g.length-1]&&g.push(e.x),e.x>g[0]&&g.unshift(e.x)}));var n=[];return t.sort((function(e,t){return t.y-e.y?t.y-e.y:t.x-e.x})),t.forEach((function(e){0===n.length&&n.push(e.x),e.x>n[n.length-1]&&n.push(e.x),e.x<n[0]&&n.unshift(e.x)})),{maxXparagraph:[o[0],o[o.length-1]],minYparagraph:[g[0],g[g.length-1]]}}},{key:"draw",value:function(e,t){var i=this;if(!this.streamlining){var o=this.calcReferenceRange();if(t.strokeStyle="#ffffff",t.lineWidth=1,t.font="42px '字体','字体','微软雅黑','宋体'",t.textBaseline="center",t.textAlign="center",t.fillStyle="#fff",!this.prohibitWH&&this.faces){this.calcFacesArea();var g=Object.keys(this.faces).map((function(e){return{area:i.faces[e].area,point:i.faces[e].textPoint,face:i.faces[e]}})),n=g.reduce((function(e,t){return e+t.area}),0);g.forEach((function(e){var i=e.area,o=e.point,g=e.face;t.font="42px '字体','字体','微软雅黑','宋体'",o&&(g.showArea&&t.fillText(i+"m²",o.x,o.y+21),g.showName&&t.fillText(g.name,o.x,o.y-21))})),t.textAlign="left";var a=this.renderer.transScreenPoint({x:(o.bottom[0].x+o.bottom[1].x)/2,y:o.bottom[0].y}),A=c.a.get("总面积")+Number(n.toFixed(2))+" m²";t.fillText(A,a.x-21*(A.length+3)/2,a.y+20),t.textAlign="center";var r=this.calcSeparate();Object.keys(r).forEach((function(g){for(var n=2.5*(.015*e.width>5?5:.015*e.width)*2,a=function(e){var a=r[g][e-1],A=r[g][e],C=c.a.get("约")+Math.floor(100*Math.abs(a-A))/100+c.a.get("米");a=~g.indexOf("Xparagraph")?i.renderer.transScreenPoint({x:0,y:a}).y:i.renderer.transScreenPoint({x:a,y:0}).x,A=~g.indexOf("Yparagraph")?i.renderer.transScreenPoint({x:A,y:0}).x:i.renderer.transScreenPoint({x:0,y:A}).y,a*=i.renderer.scale,A*=i.renderer.scale,1!==e&&(a+=2),e!==r[g].length&&(A-=2),{maxXparagraph:function(){var e=i.renderer.transScreenPoint({x:o.right[0].x,y:0}).x;a+=i.renderer.offset.y,A+=i.renderer.offset.y,l.a.lineBoth(t,[{x:e,y:a},{x:e,y:A}],n),l.a.fillTextVertical(t,C,e+25,(a+A+14)/2)},minYparagraph:function(){var e=i.renderer.transScreenPoint({x:0,y:o.top[0].y}).y;a+=i.renderer.offset.x,A+=i.renderer.offset.x,l.a.lineBoth(t,[{x:a,y:e},{x:A,y:e}],n),t.fillText(C,(a+A)/2,e+42-60)}}[g]()},A=1;A<r[g].length;A++)a(A)}))}}}},{key:"getIndex",value:function(){return-1}}]),e}();t.a=h},function(e,t,i){var o=i(298),g=i(299),n=i(270),a=i(300);e.exports=function(e,t){return o(e)||g(e,t)||n(e,t)||a()}},function(e,t,i){"use strict";i(125);var o=i(25),g=i.n(o),n=i(28),a=i.n(n),A=i(66),r=function(){function e(t,i){g()(this,e),this.point=t,this.angle=i,this.withinW=4,this.abroadW=2,this.lightW=8,this.lightrRdian=.4*Math.PI}return a()(e,[{key:"isScale",value:function(){return!0}},{key:"draw",value:function(e,t){var i=e.transScreenPoint(this.point),o=this.angle-this.lightrRdian/2,g=this.angle+this.lightrRdian/2,n=this.withinW+this.abroadW+this.lightW,a=this.withinW+this.abroadW,r=t.createRadialGradient(i.x,i.y,a,i.x,i.y,n);r.addColorStop(0,"rgba(0,200,175,0.9)"),r.addColorStop(1,"rgba(0,200,175,0.3)"),t.beginPath(),t.fillStyle=r,t.moveTo(i.x,i.y),t.arc(i.x,i.y,n/e.scale,o,g,!1),t.fill(),t.closePath(),A.a.pointSelect(t,i,a/e.scale,this.abroadW/e.scale,"#ffffff","rgba(0,200,175,1)")}}]),e}();t.a=r},function(e,t,i){"use strict";i(106),i(107),i(39),i(75);var o=i(33),g=i.n(o),n=(i(119),i(11)),a=i.n(n),A=(i(59),i(53),i(29),i(60),i(25)),r=i.n(A),C=i(28),I=i.n(C),s=i(14),l=i(66),c=i(42),u=i(98),d=i(3);function h(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function p(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?h(Object(i),!0).forEach((function(t){a()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var f=0,m=function(){function e(t,i,o){var g=this;r()(this,e),this.deg=i,this.padding=30,this.faces=o.faces,this.renderer=t,c.a.copy(this,u.a.create("__Label__"+f++)),o.listen("changePosition",this.calcFacesArea.bind(this)),setTimeout((function(){return g.calcFacesArea()}))}return I()(e,[{key:"calcFacesArea",value:function(){var e=this;Object.keys(this.faces).map((function(t){return p({},e.calcFaceArea(e.faces[t]),{face:e.faces[t]})})).forEach((function(t){var i=t.area,o=t.point,g=t.face,n=t.opoint,a=Number(i.toFixed(2));(a!==g.area||s.a.equalPoint(g.cadPoint,g.cadPoint))&&(g.textPoint=n,g.cadPoint=o,g.area=a,e.trigger("changeFaceAttr",g))}))}},{key:"calcWH",value:function(e){var t=this,i=[];Object.keys(this.faces).forEach((function(e){return t.faces[e].forEach((function(e){return i.push(e.points[0])}))}));var o=Math.max.apply(Math,g()(i.map((function(e){return e.x}))))-Math.min.apply(Math,g()(i.map((function(e){return e.x})))),n=Math.max.apply(Math,g()(i.map((function(e){return e.y}))))-Math.min.apply(Math,g()(i.map((function(e){return e.y}))));this.w=Number(o.toFixed(3)),this.h=Number(n.toFixed(3))}},{key:"calcArea",value:function(){var e=this;return Object.keys(this.faces).map((function(t){return p({},e.calcFaceArea(e.faces[t]),{face:e.faces[t]})})).reduce((function(e,t){return e+t.area}),0)}},{key:"calcReferenceRange",value:function(){var e=this,t=[];Object.keys(this.faces).forEach((function(i){return e.faces[i].forEach((function(e){return t.push(e.points[0])}))}));var i=-this.renderer.canvas.width/2+20,o=this.renderer.canvas.width/2-20,g=-this.renderer.canvas.height/2+20,n=this.renderer.canvas.height/2-20,a={left:[{x:i,y:g},{x:i,y:n}],right:[{x:o,y:g},{x:o,y:n}],top:[{x:i,y:g},{x:o,y:g}],bottom:[{x:i,y:n},{x:o,y:n}]};return Object.keys(a).forEach((function(t){return a[t]=a[t].map((function(t){return e.renderer.transRealPoint(t)}))})),a}},{key:"calcFaceArea",value:function(e,t){var i=e.reduce((function(e,t){return e.concat(t.points)}),[]),o=this.renderer.transScreenPoint(s.a.getCenterOfGravityPoint(i)),g=s.a.faceArea(i);return{point:{x:o.x*this.renderer.scale+this.renderer.offset.x,y:o.y*this.renderer.scale+this.renderer.offset.y},area:g,opoint:o}}},{key:"calcSeparate",value:function(){var e=this,t=Object.keys(this.faces).reduce((function(t,i){return t.concat(e.faces[i].map((function(e){return e.points[0]})))}),[]),i=[];t.sort((function(e,t){return e.x-t.x?e.x-t.x:t.y-e.y})),t.forEach((function(e){0===i.length&&i.push(e.y),e.y>i[i.length-1]&&i.push(e.y),e.y<i[0]&&i.unshift(e.y)}));var o=[];t.sort((function(e,t){return t.x-e.x?t.x-e.x:t.y-e.y})),t.forEach((function(e){0===o.length&&o.push(e.y),e.y>o[o.length-1]&&o.push(e.y),e.y<o[0]&&o.unshift(e.y)}));var g=[];t.sort((function(e,t){return e.y-t.y?e.y-t.y:t.x-e.x})),t.forEach((function(e){0===g.length&&g.push(e.x),e.x<g[g.length-1]&&g.push(e.x),e.x>g[0]&&g.unshift(e.x)}));var n=[];return t.sort((function(e,t){return t.y-e.y?t.y-e.y:t.x-e.x})),t.forEach((function(e){0===n.length&&n.push(e.x),e.x>n[n.length-1]&&n.push(e.x),e.x<n[0]&&n.unshift(e.x)})),[i,o,g,n].forEach((function(t){for(var i=1;i<t.length;i++)s.a.lineDistance([e.renderer.transScreenPoint({x:0,y:t[i-1]}),e.renderer.transScreenPoint({x:0,y:t[i]})])<30&&t.splice(i--,1)})),{minXparagraph:i,maxXparagraph:o,minYparagraph:g,maxYparagraph:n}}},{key:"draw",value:function(e,t){var i=this,o=this.calcReferenceRange();if(t.strokeStyle="#ffffff",t.lineWidth=1,t.font="14px '字体','字体','微软雅黑','宋体'",t.textBaseline="center",t.textAlign="center",t.fillStyle="#fff","Number"===c.a.getType(this.deg)){var g=.15*e.width>50?50:.15*e.width,n={x:e.canvas.width/2-15-g,y:-e.canvas.height/2+15},a=this.deg*Math.PI/180,A=.2*g>8?8:.2*g;l.a.compass(t,n,g,a,A)}if(!this.prohibitWH&&this.faces){var r=Object.keys(this.faces).map((function(e){return{area:i.faces[e].area,point:i.faces[e].cadPoint,face:i.faces[e]}})),C=r.reduce((function(e,t){return e+t.area}),0);r.forEach((function(e){var i=e.area,o=e.point,g=e.face;t.font="14px '字体','字体','微软雅黑','宋体'",o&&(g.showArea&&t.fillText(i+"m²",o.x,o.y+8),g.showName&&t.fillText(g.name,o.x,o.y-8))})),t.textAlign="left";var I=d.a.get("总面积")+" "+Number(C.toFixed(2))+" m²";t.fillText(I,e.canvas.width/2-7*I.length-21-10,e.canvas.height/2-28),t.textAlign="center";var s=this.calcSeparate();Object.keys(s).forEach((function(g){for(var n=2*(.015*e.width>5?5:.015*e.width),a=function(e){var a=s[g][e-1],A=s[g][e],r=Math.floor(100*Math.abs(a-A))/100+"m";a=~g.indexOf("Xparagraph")?i.renderer.transScreenPoint({x:0,y:a}).y:i.renderer.transScreenPoint({x:a,y:0}).x,A=~g.indexOf("Yparagraph")?i.renderer.transScreenPoint({x:A,y:0}).x:i.renderer.transScreenPoint({x:0,y:A}).y,a*=i.renderer.scale,A*=i.renderer.scale,1!==e&&(a+=2),e!==s[g].length&&(A-=2),{minXparagraph:function(){var e=i.renderer.transScreenPoint({x:o.left[0].x,y:0}).x;a+=i.renderer.offset.y,A+=i.renderer.offset.y,l.a.lineBoth(t,[{x:e,y:a},{x:e,y:A}],n),l.a.fillTextVertical(t,r,e+8,(a+A+14)/2)},maxXparagraph:function(){var e=i.renderer.transScreenPoint({x:o.right[0].x,y:0}).x;a+=i.renderer.offset.y,A+=i.renderer.offset.y,l.a.lineBoth(t,[{x:e,y:a},{x:e,y:A}],n),l.a.fillTextVertical(t,r,e-12,(a+A+14)/2)},minYparagraph:function(){var e=i.renderer.transScreenPoint({x:0,y:o.top[0].y}).y;a+=i.renderer.offset.x,A+=i.renderer.offset.x,l.a.lineBoth(t,[{x:a,y:e},{x:A,y:e}],n),t.fillText(r,(a+A)/2,e+14)},maxYparagraph:function(){var e=i.renderer.transScreenPoint({x:0,y:o.bottom[0].y}).y;a+=i.renderer.offset.x,A+=i.renderer.offset.x,l.a.lineBoth(t,[{x:a,y:e},{x:A,y:e}],n),t.fillText(r,(a+A)/2,e-14+6)}}[g]()},A=1;A<s[g].length;A++)a(A)}))}}},{key:"getIndex",value:function(){return-1}}]),e}();t.a=m},function(e,t,i){"use strict";i(106),i(107),i(59),i(53),i(29),i(60),i(125);var o=i(11),g=i.n(o),n=i(23),a=i.n(n),A=(i(95),i(40)),r=i.n(A),C=(i(105),i(25)),I=i.n(C),s=i(28),l=i.n(s),c=i(66),u=i(14),d=i(98),h=i(42);function p(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function f(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?p(Object(i),!0).forEach((function(t){g()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}var m=0,v=function(){function e(t){I()(this,e),this.routes=[],this.renderer=t,this.withinW=8,this.abroadW=2,h.a.copy(this,d.a.create("__route__"+m++))}var t,i;return l()(e,[{key:"getIndex",value:function(){return 2}},{key:"getRouteIndex",value:function(e){return this.routes.findIndex((function(t){return t.x===e.x&&t.y===e.y}))}},{key:"push",value:function(e){var t=this.getSection(this.renderer);t.maxx=this.renderer.transRealPoint({x:t.maxx,y:0}).x,t.minx=this.renderer.transRealPoint({x:t.minx,y:0}).x,t.miny=this.renderer.transRealPoint({x:0,y:t.miny}).y,t.maxy=this.renderer.transRealPoint({x:0,y:t.maxy}).y,t.rangn&&(e.x>t.maxx||e.x<t.minx||e.y>t.maxy||e.y<t.miny)&&(e.rangn=!0,e.x=0,e.y=0),this.routes.push(e),this.calcRangePos()}},{key:"calcRangePos",value:function(){var e=this;this.routes.filter((function(e){return e.rangn})).forEach((function(t){var i=e.routes.indexOf(t);1===e.routes.length?(t.x=0,t.y=0):0===i?(t.x=e.routes[1].x+.5,t.y=e.routes[1].y+.5):i===e.routes.length-1?(t.x=e.routes[e.routes.length-2].x-.5,t.y=e.routes[e.routes.length-2].y-.5):(t.x=(e.routes[i-1].x+e.routes[i+1].x)/2,t.y=(e.routes[i-1].y+e.routes[i+1].y)/2)}));var t=0;this.routes.forEach((function(e){e.rangn||(e.showIndex=++t)}))}},{key:"clear",value:function(){this.downModule=null,this.routes=[]}},{key:"delete",value:function(e){if(~e&&this.routes.splice(e,1),this.downModule){var t=this.downModule.indexs.indexOf(e);~t&&(this.downModule.indexs.splice(t,1),this.downModule.indexs.length<=1&&(this.downModule=null))}this.calcRangePos()}},{key:"testing",value:function(e,t){var i=[],o={x:this.withinW+this.abroadW,y:this.withinW+this.abroadW};this.r=Math.abs(o.x)>Math.abs(o.y)?Math.abs(o.y):Math.abs(o.x);for(var g=this.routes.length-1;g>=0;g--){var n=this.routes[g];u.a.pointInSector(t.transScreenPoint(n),0,360,this.r/t.scale,t.transScreenPoint(e))&&i.push(g)}return i}},{key:"testingModule",value:function(e,t){e=t.transScreenPoint(e);var i=this.calcAttr(t.scale),o=i.point,g=i.width,n=(i.height,i.itemWidth),a=i.abroadWidth,A=i.points,r=[{x:o.x-g/2,y:o.y-45/t.scale},{x:o.x+g/2,y:o.y-45/t.scale},{x:o.x+g/2,y:o.y-15/t.scale},{x:o.x-g/2,y:o.y-15/t.scale}];r.map((function(e,t){return[e,r[t+1===r.length?0:t+1]]}));if(!u.a.pointInside(e,r))return-2;for(var C=o.x-g/2+n,I=o.y-3*n,s=0;s<A.length;s++)if(u.a.pointInSector({x:C+s*n,y:I},0,360,a,e))return A[s];return-1}},{key:"_move",value:function(){}},{key:"_hover",value:function(e,t,i){var o=this.testing(e,i);if(0===o.length&&this.downModule){var g=this.testingModule(e,i);-2!==g&&(o=[g])}return o.length>0&&~o[0]}},{key:"isScale",value:function(){return!0}},{key:"_down",value:function(e,t){var i;if(this.downModule){var o=this.testingModule(e,t);-2!==o?i=[o]:delete this.downModule}if(!i&&(i=this.testing(e,t)).length>1)return this.downModule={point:this.routes[i[0]],indexs:i},t.render(!1),1;var g=0===i.length?-1:i[0];return g!==this.active&&this.trigger("activeChange",i[0]),this.active=~g?g:-1,t.render(!1),~g||this.downModule}},{key:"getSection",value:function(e){return{minx:e.section.minx+30,maxx:e.section.maxx-30,miny:e.section.miny+30,maxy:e.section.maxy-30}}},{key:"calcAttr",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=this.withinW+this.abroadW,i=2*t+2,o=this.downModule.indexs,g=(o.length+1)*i,n=10*o.length<40?40:10*o.length,a=this.renderer.transScreenPoint(this.downModule.point);return{width:g/=e,height:n/=e,point:a,points:o,itemWidth:i/=e,abroadWidth:t/=e}}},{key:"drawRoute",value:(i=r()(a.a.mark((function e(t,i,o,g,n){var A,r,C,I,s;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(A=this.withinW+this.abroadW,r=g==this.active?"rgba(245, 255, 0, 1)":"#ffffff",C=o.rangn?"#666666":"rgba(0,200,175,1)",c.a.pointSelect(t,i,A/n.scale,this.abroadW/n.scale,r,C),t.font=8/n.scale+"px '字体','字体','微软雅黑','宋体'",t.textBaseline="top",t.textAlign="center",t.fillStyle=r,!o.rangn){e.next=15;break}return I=12/n.scale,s={x:i.x-I/2,y:i.y-I/2},e.next=13,c.a.faceImage(t,[],{p4:s,p1:{x:s.x,y:s.y+I},p2:{x:s.x+I,y:s.y+I},src:"feiji"});case 13:e.next=16;break;case 15:t.fillText(o.showIndex,i.x,i.y-3/n.scale);case 16:case"end":return e.stop()}}),e,this)}))),function(e,t,o,g,n){return i.apply(this,arguments)})},{key:"draw",value:(t=r()(a.a.mark((function e(t,i){var o,g,n,A,C,I=this;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(o=this.routes.map((function(e){return f({},t.transScreenPoint(e),{rangn:e.rangn})})),g=[],n=0;n<o.length-1;n++)g.push([o[n],o[n+1]]);for(A=0;A<g.length;A++)c.a.lineSelect(i,g[A],"rgba(0,200,175,1)",3/t.scale);C=0;case 6:if(!(C<o.length)){e.next=13;break}return this.routes[C].rangn,e.next=10,this.drawRoute(i,o[C],this.routes[C],C,t);case 10:C++,e.next=6;break;case 13:return e.abrupt("return",r()(a.a.mark((function e(){var o,g,n,A,r,C,s,l,u;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!I.downModule){e.next=18;break}o=I.calcAttr(t.scale),g=o.width,o.height,n=o.point,A=o.points,r=o.itemWidth,c.a.drawBubble(i,n,g,30/t.scale,14/t.scale,t.scale),i.fillStyle="rgba(255,255,255,0.6)",i.strokeStyle="rgba(0,0,0,0)",i.fill(),i.stroke(),C=n.x-g/2+r,s=n.y-1.5*r,l=0;case 10:if(!(l<A.length)){e.next=18;break}if(u=A[l],!I.routes[u]){e.next=15;break}return e.next=15,I.drawRoute(i,{x:C+l*r,y:s},I.routes[u],u,t);case 15:l++,e.next=10;break;case 18:case"end":return e.stop()}}),e)}))));case 14:case"end":return e.stop()}}),e,this)}))),function(e,i){return t.apply(this,arguments)})}]),e}();t.a=v},function(e,t,i){"use strict";var o=i(23),g=i.n(o),n=(i(95),i(40)),a=i.n(n),A=i(25),r=i.n(A),C=i(28),I=i.n(C),s=i(98),l=i(42),c=(i(66),i(14)),u=0,d=function(){function e(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r()(this,e),this.renderer=t,this.show=i,this.width=30,this.height=30,this.seftShow=!0,l.a.copy(this,s.a.create("__scaleplate__"+u++)),this.trigger("update",this.show)}var t;return I()(e,[{key:"getStart",value:function(){return{x:-this.renderer.canvas.width/2+10,y:this.renderer.canvas.height/2-50}}},{key:"testing",value:function(e){var t=this.getStart();return t={x:t.x+this.width/2,y:t.y+this.height/2},c.a.lineDistance([e,t])<this.width/2}},{key:"_hover",value:function(e){return(e=this.renderer.transScreenPoint(e)).x*=this.renderer.scale,e.y*=this.renderer.scale,e.x+=this.renderer.offset.x,e.y+=this.renderer.offset.y,this.testing(e)}},{key:"_down",value:function(e,t){(e=this.renderer.transScreenPoint(e)).x*=this.renderer.scale,e.y*=this.renderer.scale,e.x+=this.renderer.offset.x,e.y+=this.renderer.offset.y,this.testing(e)&&(this.update(),t.render(!1))}},{key:"update",value:function(){this.show=!this.show,this.trigger("update",this.show)}},{key:"draw",value:(t=a()(g.a.mark((function e(t,i){return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.seftShow){e.next=2;break}return e.abrupt("return");case 2:this.getStart();case 3:case"end":return e.stop()}}),e,this)}))),function(e,i){return t.apply(this,arguments)})}]),e}();t.a=d},function(e,t,i){"use strict";i(39),i(60),i(59),i(53),i(29),i(200),i(150),i(151);var o=i(33),g=i.n(o),n=i(14),a=i(46),A=i(42);t.a=function(e,t,i){i.listen("changePosition",(function(t){var o=t.joins?[].concat(g()(t.joins),[t]):[t],n=Object(a.b)(i.faces,t);if(n.length>0){var A=n.reduce((function(e,t){return e.concat([t].concat(g()(t.joins)))}),[]);o=o.concat(A)}o=Array.from(new Set(o));var r=Array.from(new Set(o.map((function(e){return i.getFace(e)}))));e.trigger("wallChange",{lines:o,faces:r})})),i.listen("selectChange",(function(t){var o=t.line,n=t.selected;setTimeout((function(){for(var t=Object.keys(i.faces).reduce((function(e,t){return e.concat(i.faces[t])}),[]),A=[].concat(g()(Object(a.b)(i.faces,o)),[o]),r=!1,C=0;C<A.length;C++)if(2===A[C].selected){r=!0;break}n||r?n&&t.indexOf(o)&&e.trigger("selectLine",o):A.forEach((function(i){t.indexOf(i)&&e.trigger("unSelectLine",i)}))}))})),i.listen("addPoint",(function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];e.trigger.apply(e,["addPoint"].concat(i))})),i.listen("delPoint",(function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];e.trigger.apply(e,["delPoint"].concat(i))})),i.listen("delLine",(function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];e.trigger.apply(e,["delLine"].concat(i))})),i.listen("addLine",(function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];e.trigger.apply(e,["addLine"].concat(i))})),i.listen("updateLine",(function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];e.trigger.apply(e,["updateLine"].concat(i))})),i.listen("lineChangePoint",(function(){for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return e.trigger.apply(e,["lineChangePoint"].concat(i))})),i.listen("selectHorn",(function(t){var i=t.horn,o=t.selected;e.trigger(o?"selectHorn":"unSelectHorn",i)})),i.listen("selectFaceChange",(function(t){var o=t.face,g=t.point,n=t.selected;if(i.prohibitImage){if(2===o.selected&&n||!n&&2!==o.selected)return;e.trigger(n?"floorHoverIn":"floorHoverOut",{face:o})}else n&&g&&e.trigger("positionChange",g)}));var o=null;i.listen("selectFaceChange",(function(t){var o=t.face,g=t.point,n=t.selected;i.prohibitImage?e.trigger(n?"floorHoverIn":"floorHoverOut",{face:o}):n&&g&&e.trigger("positionChange",g)})),e.dispatcher.listen("floorHoverIn",(function(e){e.selected=2,t.render()})),e.dispatcher.listen("floorHoverOut",(function(e){e.selected=0,t.render()})),e.dispatcher.listen("changeFaceAttr",(function(e,g){var n=g.showArea,a=g.showName,r=g.top,C=g.bottom;i.faces[e]&&("Boolean"===A.a.getType(n)&&(i.faces[e].showArea=n),"Boolean"===A.a.getType(a)&&(i.faces[e].showName=a),"Number"===A.a.getType(r)&&(i.faces[e].top=r),"Number"===A.a.getType(C)&&(i.faces[e].bottom=C),t.render(!1),o||(o=setTimeout((function(){return t.trigger("change"),o=null}),1e3)))})),e.dispatcher.listen("changeWallAttr",(function(e){var g=e.top,n=e.bottom;"Number"===A.a.getType(g)&&(i.top=g),"Number"===A.a.getType(n)&&(i.bottom=n),o||(o=setTimeout((function(){return t.trigger("change"),o=null}),1e3))})),e.dispatcher.listen("changeFaceName",(function(e,g){i.faces[e].name=g,o||(o=setTimeout((function(){return t.trigger("change"),o=null}),5e3))})),e.dispatcher.listen("enterFaceName",(function(e,g){i.faces[e].name=g,clearTimeout(o),o=null,t.trigger("change")})),e.dispatcher.listen("delPoint",(function(e){return i.lineHornDel(e)})),e.dispatcher.listen("selectHorn",(function(e){i.horn=e,t.render(!1)})),e.dispatcher.listen("unSelectHorn",(function(e){i.horn=null,t.render(!1)})),e.dispatcher.listen("selectLine",(function(e){[].concat(g()(Object(a.b)(i.faces,e)),[e]).forEach((function(e){return e.selected=2})),t.render(!1)})),e.dispatcher.listen("unSelectLine",(function(e){[].concat(g()(Object(a.b)(i.faces,e)),[e]).forEach((function(e){return e.selected=0})),t.render(!1)})),e.dispatcher.listen("moveLine",(function(e,o,g){var a=g,A=[{x:0,y:0},{x:0,y:0},{selectLines:[{line:e,face:i.getFace(e),dire:n.a.verticalLine(e)}]},t,t.context,!1,!0];A[0][o]=a,i._move.apply(i,A),t.render(!1)})),e.dispatcher.listen("lineOperEnd",(function(e){clearTimeout(o),t.trigger("change"),i._up(null,null,t)}));var r=i.detection.bind(i);i.detection=function(){for(var t,o=Array.from(new Set(Object.keys(i.faces).reduce((function(e,t){return e.concat(i.faces[t])}),[]))),g=0;t=o[g];g++)if(t.__furnitures)for(var a=0;a<t.__furnitures.length;a++){if(!t.__furnitures[a].detection())return t.warning=!0,1;delete t.warning}if(r.apply(void 0,arguments))return!0;for(var A in i.faces)for(var C,I=i.faces[A],s=I.map((function(e){return e.points[0]})),l=e.getFaceCamera(I.id).map((function(e){return{x:e.position.x,y:e.position.z}})),c=0;C=l[c];c++)if(!n.a.pointInside(C,s))return!0}}},function(e,t,i){"use strict";i(106),i(107),i(49),i(69);var o=i(11),g=i.n(o),n=(i(59),i(53),i(29),i(60),i(38),i(80)),a=i.n(n),A=i(34),r=i.n(A),C=i(35),I=i.n(C),s=i(19),l=i.n(s),c=(i(119),i(39),i(25)),u=i.n(c),d=i(28),h=i.n(d),p=i(42);function f(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,o)}return i}function m(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?f(Object(i),!0).forEach((function(t){g()(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):f(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var y=0,b=function(e){r()(o,e);var t,i=(t=o,function(){var e,i=l()(t);if(v()){var o=l()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return I()(this,e)});function o(e){var t;return u()(this,o),y++,(t=i.call(this,"cad_data"+y)).push(e),t}return h()(o,[{key:"getPointIndex",value:function(e,t){return e.find((function(e){return e.x===t.x&&e.y===t.y}))}},{key:"analysis",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,g=arguments.length>3?arguments[3]:void 0,n=arguments.length>4?arguments[4]:void 0,a={vertex:[],wall:[],column:[],door:[],window:[],houseInfo:{},room:[],top:o&&Number(o),bottom:g&&Number(g)};return Object.keys(e).forEach((function(i){var o=e[i],g={points:o.map((function(e){var i={x:Number(e.points[0].x),y:Number(-e.points[0].y),id:e.points[0].id},o={x:Number(e.points[1].x),y:Number(-e.points[1].y),id:e.points[1].id},g=t.getPointIndex(a.vertex,i),n=t.getPointIndex(a.vertex,o);g||(a.vertex.push(i),g=i),n||(a.vertex.push(o),n=o);var A=a.wall.find((function(e){return e.p1===g.id&&e.p2===n.id||e.p2===g.id&&e.p1===n.id}));return A||(A={p1:g.id,p2:n.id,id:e.id},a.wall.push(A)),e.otherobjs.forEach((function(t,i){var o=e.__furnitures[i];if(o){var g=~t.id.indexOf("door")?"door":~t.id.indexOf("window")?"window":~t.id.indexOf("column")?"column":"unf",n=a[g];Object.keys(t).forEach((function(e){"Number"===p.a.getType(t[e])&&(t[e]=Number(t[e]))}));var r=m({},t,{line:A.id,pos:o.points.reduce((function(e,t){return e.concat([Number(t.x),Number(-t.y)])}),[])});delete r.id,delete r.points2d,n.push(r)}})),g.id})),name:o.name,area:o.area,group:o.group,subgroup:o.subgroup,showArea:o.showArea,showName:o.showName,cameras:n[i].map((function(e){return e.id}))};void 0!==o.top&&(g.top=o.top),void 0!==o.bottom&&(g.bottom=o.bottom),a.room.push(g)})),a.houseInfo={w:"Number"===p.a.getType(i.w)&&Number(i.w),h:"Number"===p.a.getType(i.h)&&Number(i.h),area:"Number"===p.a.getType(i.area)&&Number(i.area),deg:"Number"===p.a.getType(i.deg)&&Number(i.deg)},a}},{key:"push",value:function(e){var t=e.faces,i=e.label,g=e.top,n=e.bottom,A=e.cameras,r=this.analysis(t,i,g,n,A);a()(l()(o.prototype),"push",this).call(this,r)}}]),o}(function(){function e(t){u()(this,e),this.length=t+"__length",this.index=t+"__index",this.name=t,this.init()}return h()(e,[{key:"init",value:function(){sessionStorage.setItem(this.length,0)}},{key:"getKey",value:function(e){return this.name+"__"+e}},{key:"getData",value:function(){return sessionStorage.getItem(this.index)}},{key:"getLength",value:function(){return Number(sessionStorage.getItem(this.length))}},{key:"setLength",value:function(e){sessionStorage.setItem(this.length,e)}},{key:"push",value:function(e){var t=this.getLength(),i=this.getKey(this.getLength());sessionStorage.setItem(i,JSON.stringify(e)),this.setLength(t+1)}},{key:"pop",value:function(){var e=this.getLength(),t=this.get(e-1);return this.setLength(e-1),t}},{key:"get",value:function(e){var t=this.getKey(e);return JSON.parse(sessionStorage.getItem(t))}}]),e}());t.a=b},function(e,t,i){"use strict";i(59),i(53),i(29),i(60),i(49),i(69);var o=i(25),g=i.n(o),n=i(28),a=i.n(n),A=i(80),r=i.n(A),C=i(34),I=i.n(C),s=i(35),l=i.n(s),c=i(19),u=i.n(c),d=i(47),h=i(82),p=function(){function e(t,i,o,n){g()(this,e),this.points=i,this.origin=n,this.line=t,this.minMargin=o||.1}return a()(e,[{key:"getIndex",value:function(){return 1}},{key:"detection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.line,i=d.a.lineVector({points:this.points});if(e){var o=d.a.lineVector({points:e});if(o.x*i.x<0||o.y*i.y<0)return!1}return d.a.isContainPoint(this.points[0],t.points,0)&&d.a.isContainPoint(this.points[1],t.points,0)}},{key:"draw",value:function(e,t){}}]),e}();function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var m=function(e){I()(o,e);var t,i=(t=o,function(){var e,i=u()(t);if(f()){var o=u()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return l()(this,e)});function o(e,t,n,a,A,r){var C;return g()(this,o),(C=i.call(this,e,t,n,a,A)).wall=r,C}return a()(o,[{key:"callAttr",value:function(e){var t=d.a.verticalLine({points:this.points}),i=d.a.lineDistance(this.points),o=this.points.concat([{x:this.points[0].x+t[0]*i,y:this.points[0].y+t[1]*i}]),g=d.a.lineAngle([o[1],o[0]])*Math.PI/180,n=d.a.lineAngle([o[2],o[0]])*Math.PI/180,a=n-g;return(a>=Math.PI/2&&a>=Math.PI||a<=-Math.PI/2&&a>=-Math.PI)&&(a=n,n=g,g=a),{points:o,startDeg:g,endDeg:n}}},{key:"draw",value:function(e,t){var i=this;return function(){if(i.streamlining)r()(u()(o.prototype),"draw",i).call(i,e,t);else{var g=i.callAttr(e),n=g.points,a=g.startDeg,A=g.endDeg;n=n.map((function(t){return e.transScreenPoint(t)})),h.a.doorSector(t,n,a,A,d.a.lineDistance([n[1],n[0]]),i.selected?2===i.selected?"rgba(243, 255, 0, 0.5)":"rgba(243, 255, 0, 0.8)":null)}}}}]),o}(p),v=i(277),y=i.n(v);function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var w=function(e){I()(o,e);var t,i=(t=o,function(){var e,i=u()(t);if(b()){var o=u()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return l()(this,e)});function o(e,t,n,a,A,r){var C;return g()(this,o),(C=i.call(this,e,t,n,a,A)).wall=r,C}return a()(o,[{key:"draw",value:function(e,t){var i=this;return function(){if(i.streamlining)r()(u()(o.prototype),"draw",i).call(i,e,t);else{var g=i.points.map((function(t){return e.transScreenPoint(t)})),n=1===i.selected?"rgba(243, 255, 0, 0.5)":2===i.selected?"rgba(243, 255, 0, 0.8)":"#202123",a=d.a.verticalLine({points:g}),A=y()(a,2),C=A[0],I=A[1];h.a.lineSelect(t,g,n,8),h.a.lineSelect(t,g.map((function(e){return{x:e.x-2.8*C,y:e.y-2.8*I}})),"#fff",1.4),h.a.lineSelect(t,g.map((function(e){return{x:e.x+2.8*C,y:e.y+2.8*I}})),"#fff",1.4),h.a.lineSelect(t,g.map((function(e){return{x:e.x,y:e.y}})),"#fff",1.4),i.horn&&h.a.pointSelect(t,e.transScreenPoint(i.horn),12,6)}}}}]),o}(p),x=(i(125),i(99)),E=i(152);function P(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}var T={"-1":[0,1],0:[1,3],1:[3,2],2:[2,0]},D=function(e){I()(o,e);var t,i=(t=o,function(){var e,i=u()(t);if(P()){var o=u()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return l()(this,e)});function o(e,t,n,a,A,r){var C;return g()(this,o),(C=i.call(this,e,t,n,a,A)).face=Object.keys(T).reduce((function(e,t){return e.concat(T[t][0])}),[]).map((function(e){return t[e]})),C.wall=r,C}return a()(o,[{key:"otherDete",value:function(){var e=this.wall.getFace(this.line),t=e.reduce((function(e,t){return e.concat(t.points[0])}),[]),i=d.a.lineVector(this.line),o=[];if(Math.abs(i.x)<Math.abs(i.y)){var g=this.points[3].x-this.points[0].x;o.push({x:this.line.points[0].x+g,y:this.points[0].y},{x:this.line.points[0].x+g,y:this.points[1].y})}else{var n=this.points[3].y-this.points[0].y;o.push({y:this.line.points[0].y+n,x:this.points[0].x},{y:this.line.points[0].y+n,x:this.points[1].x})}var a=d.a.pointInside(o[0],t)||d.a.containPolygonBorder(o[0],t),A=d.a.pointInside(o[1],t)||d.a.containPolygonBorder(o[1],t);if(!a||!A)return!1;for(var r=0;r<e.length;r++)if(e[r]!==this.line&&(d.a.isLineIntersect(e[r].points,[this.points[1],this.points[3]])||d.a.isLineIntersect(e[r].points,[this.points[2],this.points[0]])))return!1;return!0}},{key:"detection",value:function(e){if(!r()(u()(o.prototype),"detection",this).call(this,e,this.line))return!1;for(var t=Object(E.b)(this.wall.faces,this.line),i=0;i<t.length;i++)if(t[i].__furnitures){var g={points:t[i].points};if(g.__furnitures=t[i].__furnitures.filter((function(e){return!(e instanceof o)})),!r()(u()(o.prototype),"detection",this).call(this,e,g))return!1}if(e){var n=d.a.lineVector({points:[e[1],e[3]]}),a=d.a.lineVector({points:[this.points[1],this.points[3]]});if(n.x*a.x<0||n.y*a.y<0)return!1}return this.otherDete()}},{key:"draw",value:function(e,t){var i=this;return function(){if(i.streamlining)r()(u()(o.prototype),"draw",i).call(i,e,t);else{for(var g=i.face.map((function(t){return e.transScreenPoint(t)})),n=[],a=0;a<g.length-1;a++)n.push([g[a],g[a+1]]);if(h.a.faceLine(t,n),1===i.selected?(t.fillStyle="rgba(243, 255, 0, 0.5)",t.fill()):2===i.selected&&(t.fillStyle="rgba(243, 255, 0, 0.8)",t.fill()),"Number"===x.a.getType(i.scalePoint)){var A=T[i.scalePoint].map((function(t){return e.transScreenPoint(i.points[t])}));h.a.lineVertial(t,A)}t.lineWidth=1}}}}]),o}(p);i(264),i(263);function M(e,t,i){var o=[];e.__furnitures=e.__furnitures||[],e.__loaddingModels=e.__loaddingModels||[];for(var g,n=0;g=e.otherobjs[n];n++)if(!~e.__loaddingModels.indexOf(g)){var a=~g.id.indexOf("door")?m:~g.id.indexOf("window")?w:~g.id.indexOf("column")?D:null,A=new a(e,g.points2d,.1,g,t.stackStateIndex,i);if(A.__startMove={x:0,y:0},e.__loaddingModels.push(g),e.__furnitures.push(A),t.models.push(A),a===D){var r=S(t,i,A);-1!==r&&1!==r||o.push(A),r<0&&n--}else o.push(A)}return o}function S(e,t,i){var o=i.line;if(i.detection())return 1;var g,n=Object(E.b)(t.faces,i.line);for(g=0;g<n.length;g++)if(i.line=n[g],i.line.__furnitures||M(i.line,e,t),i.detection())return o.__loaddingModels.splice(o.__loaddingModels.indexOf(i.origin),1),o.__furnitures.splice(o.__furnitures.indexOf(i),1),o.otherobjs.splice(o.otherobjs.indexOf(i.origin),1),i.line.otherobjs.push(i.origin),i.line.__furnitures.push(i),i.line.__loaddingModels.push(i.origin),-1;return g===n.length?(o.__loaddingModels.splice(o.__loaddingModels.indexOf(i.origin),1),o.__furnitures.splice(o.__furnitures.indexOf(i),1),o.otherobjs.splice(o.otherobjs.indexOf(i.origin),1),e.models.splice(e.models.indexOf(i),1),-2):void 0}t.a=function(e,t,i){Object.keys(t.faces).reduce((function(e,i){return e.concat(t.faces[i])}),[]).forEach((function(e){return function(e,t,i,o){o.otherobjs=o.otherobjs||[],M(o,t,i)}(0,i,t,e)})),e.isLoadMeshListen||(e.isLoadMeshListen=!0)}},function(e,t,i){"use strict";i(59),i(53),i(29),i(60),i(38);var o=i(25),g=i.n(o),n=i(28),a=i.n(n),A=i(14),r=i(66),C=i(98),I=i(42),s=0,l=function(){function e(t,i,o,n){g()(this,e),this.point=t,this.faces=i,this.renderer=o,this.show=n,this.w=2,this.update(!1),I.a.copy(this,C.a.create("__Camera__"+s++))}return a()(e,[{key:"isScale",value:function(){return!0}},{key:"update",value:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=Object.keys(this.faces).find((function(t){return A.a.pointInside(e.point,e.faces[t].reduce((function(e,t){return e.concat(t.points)}),[]))})),o=this.face;this.face=i?this.faces[i]:null,t&&o!==this.face&&this.trigger("changeFace",this.face,o)}},{key:"draw",value:function(e,t){var i=this.w/e.scale;this.show&&r.a.arc(t,e.transScreenPoint(this.point),i)}}]),e}();t.a=function(e,t,i,o,g){var n=g.map((function(e){return function(e,t,i,o){var g=new l(e,t.faces,i,o.show);return i.models.push(g),g}({x:e.position.x,y:e.position.z},t,i,o)})),a=function(e,t){return function(){e.forEach((function(e,i){t[i].roomId=e.face?e.face.id:null}))}}(n,g);return n.forEach((function(i,o){t.listen("changeFace",(function(){i.faces=t.faces,i.update(),a()})),i.listen("changeFace",(function(t,i){setTimeout((function(){e.trigger("changeCameraFace",g[o],{newFace:t,oldFace:i})}))}))})),a(),o.listen("update",(function(e){return n.forEach((function(t){return t.show=e}))})),{getFaceCamera:function(e){return g.filter((function(t){return t.roomId===e}))}}}},,,function(e,t,i){var o=i(116),g=i(213),n=i(67),a=i(55).Reflect;e.exports=a&&a.ownKeys||function(e){var t=o.f(n(e)),i=g.f;return i?t.concat(i(e)):t}},function(e,t,i){var o=i(55),g=i(110),n=i(112),a=i(268),A=i(73).f;e.exports=function(e){var t=g.Symbol||(g.Symbol=n?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||A(t,e,{value:a.f(e)})}},function(e,t,i){var o=i(128),g=i(213),n=i(177);e.exports=function(e){var t=o(e),i=g.f;if(i)for(var a,A=i(e),r=n.f,C=0;A.length>C;)r.call(e,a=A[C++])&&t.push(a);return t}},function(e,t,i){var o=i(117),g=i(116).f,n={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==n.call(e)?function(e){try{return g(e)}catch(e){return a.slice()}}(e):g(o(e))}},function(e,t,i){var o=i(269);e.exports=function(e){if(Array.isArray(e))return o(e)}},function(e,t){e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},function(e,t){e.exports=function(){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(e,t,i){"use strict";var o=i(73).f,g=i(123),n=i(132),a=i(94),A=i(133),r=i(195),C=i(176),I=i(209),s=i(149),l=i(70),c=i(179).fastKey,u=i(271),d=l?"_s":"size",h=function(e,t){var i,o=c(t);if("F"!==o)return e._i[o];for(i=e._f;i;i=i.n)if(i.k==t)return i};e.exports={getConstructor:function(e,t,i,C){var I=e((function(e,o){A(e,I,t,"_i"),e._t=t,e._i=g(null),e._f=void 0,e._l=void 0,e[d]=0,null!=o&&r(o,i,e[C],e)}));return n(I.prototype,{clear:function(){for(var e=u(this,t),i=e._i,o=e._f;o;o=o.n)o.r=!0,o.p&&(o.p=o.p.n=void 0),delete i[o.i];e._f=e._l=void 0,e[d]=0},delete:function(e){var i=u(this,t),o=h(i,e);if(o){var g=o.n,n=o.p;delete i._i[o.i],o.r=!0,n&&(n.n=g),g&&(g.p=n),i._f==o&&(i._f=g),i._l==o&&(i._l=n),i[d]--}return!!o},forEach:function(e){u(this,t);for(var i,o=a(e,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(o(i.v,i.k,this);i&&i.r;)i=i.p},has:function(e){return!!h(u(this,t),e)}}),l&&o(I.prototype,"size",{get:function(){return u(this,t)[d]}}),I},def:function(e,t,i){var o,g,n=h(e,t);return n?n.v=i:(e._l=n={i:g=c(t,!0),k:t,v:i,p:o=e._l,n:void 0,r:!1},e._f||(e._f=n),o&&(o.n=n),e[d]++,"F"!==g&&(e._i[g]=n)),e},getEntry:h,setStrong:function(e,t,i){C(e,t,(function(e,i){this._t=u(e,t),this._k=i,this._l=void 0}),(function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?I(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,I(1))}),i?"entries":"values",!i,!0),s(t)}}},function(e,t,i){"use strict";var o=i(55),g=i(58),n=i(84),a=i(132),A=i(179),r=i(195),C=i(133),I=i(68),s=i(65),l=i(148),c=i(122),u=i(178);e.exports=function(e,t,i,d,h,p){var f=o[e],m=f,v=h?"set":"add",y=m&&m.prototype,b={},w=function(e){var t=y[e];n(y,e,"delete"==e||"has"==e?function(e){return!(p&&!I(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return p&&!I(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,i){return t.call(this,0===e?0:e,i),this})};if("function"==typeof m&&(p||y.forEach&&!s((function(){(new m).entries().next()})))){var x=new m,E=x[v](p?{}:-0,1)!=x,P=s((function(){x.has(1)})),T=l((function(e){new m(e)})),D=!p&&s((function(){for(var e=new m,t=5;t--;)e[v](t,t);return!e.has(-0)}));T||((m=t((function(t,i){C(t,m,e);var o=u(new f,t,m);return null!=i&&r(i,h,o[v],o),o}))).prototype=y,y.constructor=m),(P||D)&&(w("delete"),w("has"),h&&w("get")),(D||E)&&w(v),p&&y.clear&&delete y.clear}else m=d.getConstructor(t,e,h,v),a(m.prototype,i),A.NEED=!0;return c(m,e),b[e]=m,g(g.G+g.W+g.F*(m!=f),b),p||d.setStrong(m,e,h),m}},function(e,t,i){var o=i(19);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=o(e)););return e}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var i=[],o=!0,g=!1,n=void 0;try{for(var a,A=e[Symbol.iterator]();!(o=(a=A.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){g=!0,n=e}finally{try{o||null==A.return||A.return()}finally{if(g)throw n}}return i}}},function(e,t){e.exports=function(){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(e,t,i){i(147)("Uint16",2,(function(e){return function(t,i,o){return e(this,t,i,o)}}))},function(e,t,i){"use strict";i.r(t);i(63),i(303),i(192),i(39),i(52);var o=i(1),g=THREE.BoxBufferGeometry,n=THREE.BufferGeometry,a=THREE.Color,A=THREE.CylinderBufferGeometry,r=THREE.DoubleSide,C=THREE.Euler,I=THREE.Float32BufferAttribute,s=THREE.Line,l=THREE.LineBasicMaterial,c=THREE.Matrix4,u=THREE.Mesh,d=THREE.MeshBasicMaterial,h=THREE.Object3D,p=THREE.OctahedronBufferGeometry,f=THREE.PlaneBufferGeometry,m=THREE.Quaternion,v=THREE.Raycaster,y=THREE.SphereBufferGeometry,b=THREE.TorusBufferGeometry,w=THREE.Vector3,x=function(e,t,i){void 0===t&&(console.warn('THREE.TransformControls: The second parameter "domElement" is now mandatory.'),t=document),h.call(this),this.visible=!1,this.domElement=t;var g=new E;this.add(g);var n=new P;this.add(n);var a=this;this.player=i,Z("camera",e),Z("object",void 0),Z("enabled",!0),Z("axis",null),Z("mode","translate"),Z("translationSnap",null),Z("rotationSnap",null),Z("scaleSnap",null),Z("space","world"),Z("size",1),Z("dragging",!1),Z("showX",!0),Z("showY",!0),Z("showZ",!0);var A={type:"change"},r={type:"mouseDown"},C={type:"mouseUp",mode:a.mode},I={type:"objectChange"},s=new v,l=new w,c=new w,u=new m,d={X:new w(1,0,0),Y:new w(0,1,0),Z:new w(0,0,1)},p=new w,f=new w,y=new w,b=new w,x=new w,T=new w,D=0,M=new w,S=new m,R=new w,k=new w,O=new m,L=new m,B=new w,F=new w,j=new m,N=new w,H=new w,z=new m,V=new m,G=new w,W=new w,U=new w,Q=new m,Y=new w;function Z(e,t){var i=t;Object.defineProperty(a,e,{get:function(){return void 0!==i?i:t},set:function(t){i!==t&&(i=t,n[e]=t,g[e]=t,a.dispatchEvent({type:e+"-changed",value:t}),a.dispatchEvent(A))}}),a[e]=t,n[e]=t,g[e]=t}function X(e){a.enabled&&a.pointerHover(a.player.mouse)}function J(e){a.enabled&&(a.pointerHover(a.player.mouse),a.pointerDown(a.player.mouse))}function K(e){a.enabled&&this.dragging&&a.pointerMove(a.player.mouse)}function q(e){a.enabled&&a.pointerUp(a.player.mouse)}Z("worldPosition",H),Z("worldPositionStart",F),Z("worldQuaternion",z),Z("worldQuaternionStart",j),Z("cameraPosition",M),Z("cameraQuaternion",S),Z("pointStart",p),Z("pointEnd",f),Z("rotationAxis",b),Z("rotationAngle",D),Z("eye",W),t.addEventListener("mousedown",J,!1),t.addEventListener("touchstart",J,!1),t.addEventListener("mousemove",X,!1),t.addEventListener("touchmove",X,!1),t.addEventListener("touchmove",K,!1),document.addEventListener("mouseup",q,!1),t.addEventListener("touchend",q,!1),t.addEventListener("touchcancel",q,!1),t.addEventListener("touchleave",q,!1),this.dispose=function(){t.removeEventListener("mousedown",J),t.removeEventListener("touchstart",J),t.removeEventListener("mousemove",X),document.removeEventListener("mousemove",K),t.removeEventListener("touchmove",X),t.removeEventListener("touchmove",K),document.removeEventListener("mouseup",q),t.removeEventListener("touchend",q),t.removeEventListener("touchcancel",q),t.removeEventListener("touchleave",q),this.traverse((function(e){e.geometry&&e.geometry.dispose(),e.material&&e.material.dispose()}))},this.attach=function(e){return this.object=e,this.visible=!0,Config.keyCon=!1,this},this.detach=function(){return this.object=void 0,this.visible=!1,this.axis=null,Config.keyCon=!0,this},this.updateMatrixWorld=function(){void 0!==this.object&&(this.object.updateMatrixWorld(),this.object.parent.matrixWorld.decompose(k,O,B),this.object.matrixWorld.decompose(H,z,G),L.copy(O).inverse(),V.copy(z).inverse()),this.camera.updateMatrixWorld(),this.camera.matrixWorld.decompose(M,S,R),W.copy(M).sub(H).normalize(),h.prototype.updateMatrixWorld.call(this)},this.pointerHover=function(e){if(void 0!==this.object&&!0!==this.dragging&&(void 0===e.button||0===e.button)){s.setFromCamera(e,this.camera);var t=s.intersectObjects(g.picker[this.mode].children,!0)[0]||!1;this.axis=t?t.object.name:null}},this.pointerDown=function(e){if(!(void 0===this.object||!0===this.dragging||void 0!==e.button&&0!==e.button||0!==e.button&&void 0!==e.button||null===this.axis)){s.setFromCamera(e,this.camera);var t=s.intersectObjects([n],!0)[0]||!1;if(t){var i=this.space;if("scale"===this.mode?i="local":"E"!==this.axis&&"XYZE"!==this.axis&&"XYZ"!==this.axis||(i="world"),"local"===i&&"rotate"===this.mode){var o=this.rotationSnap;"X"===this.axis&&o&&(this.object.rotation.x=Math.round(this.object.rotation.x/o)*o),"Y"===this.axis&&o&&(this.object.rotation.y=Math.round(this.object.rotation.y/o)*o),"Z"===this.axis&&o&&(this.object.rotation.z=Math.round(this.object.rotation.z/o)*o)}this.object.updateMatrixWorld(),this.object.parent.updateMatrixWorld(),U.copy(this.object.position),Q.copy(this.object.quaternion),Y.copy(this.object.scale),this.object.matrixWorld.decompose(F,j,N),p.copy(t.point).sub(F),this.player.cameraControls.activeControl&&(this.player.cameraControls.activeControl.enabled=!1)}this.dragging=!0,r.mode=this.mode,this.dispatchEvent(r)}},this.pointerMove=function(e){var t=this.axis,i=this.mode,g=this.object,a=this.space;if("scale"===i?a="local":"E"!==t&&"XYZE"!==t&&"XYZ"!==t||(a="world"),void 0!==g&&null!==t&&!1!==this.dragging&&(void 0===e.button||0===e.button)){s.setFromCamera(e,this.camera);var r=s.intersectObjects([n],!0)[0]||!1;if(!1!==r){if(f.copy(r.point).sub(F),"translate"===i)y.copy(f).sub(p),"local"===a&&"XYZ"!==t&&y.applyQuaternion(V),-1===t.indexOf("X")&&(y.x=0),-1===t.indexOf("Y")&&(y.y=0),-1===t.indexOf("Z")&&(y.z=0),"local"===a&&"XYZ"!==t?y.applyQuaternion(Q).divide(B):y.applyQuaternion(L).divide(B),g.position.copy(y).add(U),this.translationSnap&&("local"===a&&(g.position.applyQuaternion(u.copy(Q).inverse()),-1!==t.search("X")&&(g.position.x=Math.round(g.position.x/this.translationSnap)*this.translationSnap),-1!==t.search("Y")&&(g.position.y=Math.round(g.position.y/this.translationSnap)*this.translationSnap),-1!==t.search("Z")&&(g.position.z=Math.round(g.position.z/this.translationSnap)*this.translationSnap),g.position.applyQuaternion(Q)),"world"===a&&(g.parent&&g.position.add(l.setFromMatrixPosition(g.parent.matrixWorld)),-1!==t.search("X")&&(g.position.x=Math.round(g.position.x/this.translationSnap)*this.translationSnap),-1!==t.search("Y")&&(g.position.y=Math.round(g.position.y/this.translationSnap)*this.translationSnap),-1!==t.search("Z")&&(g.position.z=Math.round(g.position.z/this.translationSnap)*this.translationSnap),g.parent&&g.position.sub(l.setFromMatrixPosition(g.parent.matrixWorld))));else if("scale"===i){if(-1!==t.search("XYZ")){var C=f.length()/p.length();f.dot(p)<0&&(C*=-1),c.set(C,C,C)}else l.copy(p),c.copy(f),l.applyQuaternion(V),c.applyQuaternion(V),c.divide(l),-1===t.search("X")&&(c.x=1),-1===t.search("Y")&&(c.y=1),-1===t.search("Z")&&(c.z=1);g.scale.copy(Y).multiply(c),this.scaleSnap&&(-1!==t.search("X")&&(g.scale.x=Math.round(g.scale.x/this.scaleSnap)*this.scaleSnap||this.scaleSnap),-1!==t.search("Y")&&(g.scale.y=Math.round(g.scale.y/this.scaleSnap)*this.scaleSnap||this.scaleSnap),-1!==t.search("Z")&&(g.scale.z=Math.round(g.scale.z/this.scaleSnap)*this.scaleSnap||this.scaleSnap)),g.width=o.a.overlay.width*g.scale.x,g.height=o.a.overlay.height*g.scale.y,publicObjectSet.editor.mainDesign.updateOverlayPanel(g)}else if("rotate"===i){y.copy(f).sub(p);var h=20/H.distanceTo(l.setFromMatrixPosition(this.camera.matrixWorld));"E"===t?(b.copy(W),D=f.angleTo(p),x.copy(p).normalize(),T.copy(f).normalize(),D*=T.cross(x).dot(W)<0?1:-1):"XYZE"===t?(b.copy(y).cross(W).normalize(),D=y.dot(l.copy(b).cross(this.eye))*h):"X"!==t&&"Y"!==t&&"Z"!==t||(b.copy(d[t]),l.copy(d[t]),"local"===a&&l.applyQuaternion(z),D=y.dot(l.cross(W).normalize())*h),this.rotationSnap&&(D=Math.round(D/this.rotationSnap)*this.rotationSnap),this.rotationAngle=D,"local"===a&&"E"!==t&&"XYZE"!==t?(g.quaternion.copy(Q),g.quaternion.multiply(u.setFromAxisAngle(b,D)).normalize()):(b.applyQuaternion(L),g.quaternion.copy(u.setFromAxisAngle(b,D)),g.quaternion.multiply(Q).normalize())}this.dispatchEvent(A),this.dispatchEvent(I)}}},this.pointerUp=function(e){this.dragging&&null!==this.axis&&(C.mode=this.mode,this.dispatchEvent(C)),this.dragging=!1,void 0===e.button&&(this.axis=null),this.player.cameraControls.activeControl&&(this.player.cameraControls.activeControl.pointerDragOn=!1,this.player.cameraControls.activeControl.enabled=!0)},this.onPointerDown=J,this.onPointerMove=K,this.onPointerUp=q,this.getMode=function(){return a.mode},this.setMode=function(e){a.mode=e},this.setTranslationSnap=function(e){a.translationSnap=e},this.setRotationSnap=function(e){a.rotationSnap=e},this.setScaleSnap=function(e){a.scaleSnap=e},this.setSize=function(e){a.size=e},this.setSpace=function(e){a.space=e},this.update=function(){console.warn("THREE.TransformControls: update function has no more functionality and therefore has been deprecated.")}};x.prototype=Object.assign(Object.create(h.prototype),{constructor:x,isTransformControls:!0});var E=function(){h.call(this),this.type="TransformControlsGizmo";var e=new d({depthTest:!1,depthWrite:!1,transparent:!0,side:r,fog:!1}),t=new l({depthTest:!1,depthWrite:!1,transparent:!0,linewidth:1,fog:!1}),i=e.clone();i.opacity=.15;var o=e.clone();o.opacity=.33;var v=e.clone();v.color.set(16711680);var x=e.clone();x.color.set(65280);var E=e.clone();E.color.set(255);var P=e.clone();P.opacity=.25;var T=P.clone();T.color.set(16776960);var D=P.clone();D.color.set(65535);var M=P.clone();M.color.set(16711935),e.clone().color.set(16776960);var S=t.clone();S.color.set(16711680);var R=t.clone();R.color.set(65280);var k=t.clone();k.color.set(255);var O=t.clone();O.color.set(65535);var L=t.clone();L.color.set(16711935);var B=t.clone();B.color.set(16776960);var F=t.clone();F.color.set(7895160);var j=B.clone();j.opacity=.25;var N=new A(0,.05,.2,12,1,!1),H=new g(.125,.125,.125),z=new n;z.addAttribute("position",new I([0,0,0,1,0,0],3));var V,G=function(e,t){for(var i=new n,o=[],g=0;g<=64*t;++g)o.push(0,Math.cos(g/32*Math.PI)*e,Math.sin(g/32*Math.PI)*e);return i.addAttribute("position",new I(o,3)),i},W={X:[[new u(N,v),[1,0,0],[0,0,-Math.PI/2],null,"fwd"],[new u(N,v),[1,0,0],[0,0,Math.PI/2],null,"bwd"],[new s(z,S)]],Y:[[new u(N,x),[0,1,0],null,null,"fwd"],[new u(N,x),[0,1,0],[Math.PI,0,0],null,"bwd"],[new s(z,R),null,[0,0,Math.PI/2]]],Z:[[new u(N,E),[0,0,1],[Math.PI/2,0,0],null,"fwd"],[new u(N,E),[0,0,1],[-Math.PI/2,0,0],null,"bwd"],[new s(z,k),null,[0,-Math.PI/2,0]]],XYZ:[[new u(new p(.1,0),P.clone()),[0,0,0],[0,0,0]]],XY:[[new u(new f(.295,.295),T.clone()),[.15,.15,0]],[new s(z,B),[.18,.3,0],null,[.125,1,1]],[new s(z,B),[.3,.18,0],[0,0,Math.PI/2],[.125,1,1]]],YZ:[[new u(new f(.295,.295),D.clone()),[0,.15,.15],[0,Math.PI/2,0]],[new s(z,O),[0,.18,.3],[0,0,Math.PI/2],[.125,1,1]],[new s(z,O),[0,.3,.18],[0,-Math.PI/2,0],[.125,1,1]]],XZ:[[new u(new f(.295,.295),M.clone()),[.15,0,.15],[-Math.PI/2,0,0]],[new s(z,L),[.18,0,.3],null,[.125,1,1]],[new s(z,L),[.3,0,.18],[0,-Math.PI/2,0],[.125,1,1]]]},U={X:[[new u(new A(.2,0,1,4,1,!1),i),[.6,0,0],[0,0,-Math.PI/2]]],Y:[[new u(new A(.2,0,1,4,1,!1),i),[0,.6,0]]],Z:[[new u(new A(.2,0,1,4,1,!1),i),[0,0,.6],[Math.PI/2,0,0]]],XYZ:[[new u(new p(.2,0),i)]],XY:[[new u(new f(.4,.4),i),[.2,.2,0]]],YZ:[[new u(new f(.4,.4),i),[0,.2,.2],[0,Math.PI/2,0]]],XZ:[[new u(new f(.4,.4),i),[.2,0,.2],[-Math.PI/2,0,0]]]},Q={START:[[new u(new p(.01,2),o),null,null,null,"helper"]],END:[[new u(new p(.01,2),o),null,null,null,"helper"]],DELTA:[[new s((V=new n,V.addAttribute("position",new I([0,0,0,1,1,1],3)),V),o),null,null,null,"helper"]],X:[[new s(z,o.clone()),[-1e3,0,0],null,[1e6,1,1],"helper"]],Y:[[new s(z,o.clone()),[0,-1e3,0],[0,0,Math.PI/2],[1e6,1,1],"helper"]],Z:[[new s(z,o.clone()),[0,0,-1e3],[0,-Math.PI/2,0],[1e6,1,1],"helper"]]},Y={X:[[new s(G(1,.5),S)],[new u(new p(.04,0),v),[0,0,.99],null,[1,3,1]]],Y:[[new s(G(1,.5),R),null,[0,0,-Math.PI/2]],[new u(new p(.04,0),x),[0,0,.99],null,[3,1,1]]],Z:[[new s(G(1,.5),k),null,[0,Math.PI/2,0]],[new u(new p(.04,0),E),[.99,0,0],null,[1,3,1]]],E:[[new s(G(1.25,1),j),null,[0,Math.PI/2,0]],[new u(new A(.03,0,.15,4,1,!1),j),[1.17,0,0],[0,0,-Math.PI/2],[1,1,.001]],[new u(new A(.03,0,.15,4,1,!1),j),[-1.17,0,0],[0,0,Math.PI/2],[1,1,.001]],[new u(new A(.03,0,.15,4,1,!1),j),[0,-1.17,0],[Math.PI,0,0],[1,1,.001]],[new u(new A(.03,0,.15,4,1,!1),j),[0,1.17,0],[0,0,0],[1,1,.001]]],XYZE:[[new s(G(1,1),F),null,[0,Math.PI/2,0]]]},Z={AXIS:[[new s(z,o.clone()),[-1e3,0,0],null,[1e6,1,1],"helper"]]},X={X:[[new u(new b(1,.1,4,24),i),[0,0,0],[0,-Math.PI/2,-Math.PI/2]]],Y:[[new u(new b(1,.1,4,24),i),[0,0,0],[Math.PI/2,0,0]]],Z:[[new u(new b(1,.1,4,24),i),[0,0,0],[0,0,-Math.PI/2]]],E:[[new u(new b(1.25,.1,2,24),i)]],XYZE:[[new u(new y(.7,10,8),i)]]},J={X:[[new u(H,v),[.8,0,0],[0,0,-Math.PI/2]],[new s(z,S),null,null,[.8,1,1]]],Y:[[new u(H,x),[0,.8,0]],[new s(z,R),null,[0,0,Math.PI/2],[.8,1,1]]],Z:[[new u(H,E),[0,0,.8],[Math.PI/2,0,0]],[new s(z,k),null,[0,-Math.PI/2,0],[.8,1,1]]],XY:[[new u(H,T),[.85,.85,0],null,[2,2,.2]],[new s(z,B),[.855,.98,0],null,[.125,1,1]],[new s(z,B),[.98,.855,0],[0,0,Math.PI/2],[.125,1,1]]],YZ:[[new u(H,D),[0,.85,.85],null,[.2,2,2]],[new s(z,O),[0,.855,.98],[0,0,Math.PI/2],[.125,1,1]],[new s(z,O),[0,.98,.855],[0,-Math.PI/2,0],[.125,1,1]]],XZ:[[new u(H,M),[.85,0,.85],null,[2,.2,2]],[new s(z,L),[.855,0,.98],null,[.125,1,1]],[new s(z,L),[.98,0,.855],[0,-Math.PI/2,0],[.125,1,1]]],XYZX:[[new u(new g(.125,.125,.125),P.clone()),[1.1,0,0]]],XYZY:[[new u(new g(.125,.125,.125),P.clone()),[0,1.1,0]]],XYZZ:[[new u(new g(.125,.125,.125),P.clone()),[0,0,1.1]]]},K={X:[[new u(new A(.2,0,.8,4,1,!1),i),[.5,0,0],[0,0,-Math.PI/2]]],Y:[[new u(new A(.2,0,.8,4,1,!1),i),[0,.5,0]]],Z:[[new u(new A(.2,0,.8,4,1,!1),i),[0,0,.5],[Math.PI/2,0,0]]],XY:[[new u(H,i),[.85,.85,0],null,[3,3,.2]]],YZ:[[new u(H,i),[0,.85,.85],null,[.2,3,3]]],XZ:[[new u(H,i),[.85,0,.85],null,[3,.2,3]]],XYZX:[[new u(new g(.2,.2,.2),i),[1.1,0,0]]],XYZY:[[new u(new g(.2,.2,.2),i),[0,1.1,0]]],XYZZ:[[new u(new g(.2,.2,.2),i),[0,0,1.1]]]},q={X:[[new s(z,o.clone()),[-1e3,0,0],null,[1e6,1,1],"helper"]],Y:[[new s(z,o.clone()),[0,-1e3,0],[0,0,Math.PI/2],[1e6,1,1],"helper"]],Z:[[new s(z,o.clone()),[0,0,-1e3],[0,-Math.PI/2,0],[1e6,1,1],"helper"]]},_=function(e){var t=new h;for(var i in e)for(var o=e[i].length;o--;){var g=e[i][o][0].clone(),n=e[i][o][1],a=e[i][o][2],A=e[i][o][3],r=e[i][o][4];g.name=i,g.tag=r,n&&g.position.set(n[0],n[1],n[2]),a&&g.rotation.set(a[0],a[1],a[2]),A&&g.scale.set(A[0],A[1],A[2]),g.updateMatrix();var C=g.geometry.clone();C.applyMatrix(g.matrix),g.geometry=C,g.renderOrder=1/0,g.position.set(0,0,0),g.rotation.set(0,0,0),g.scale.set(1,1,1),t.add(g)}return t},$=new w(0,0,0),ee=new C,te=new w(0,1,0),ie=new w(0,0,0),oe=new c,ge=new m,ne=new m,ae=new m,Ae=new w(1,0,0),re=new w(0,1,0),Ce=new w(0,0,1);this.gizmo={},this.picker={},this.helper={},this.add(this.gizmo.translate=_(W)),this.add(this.gizmo.rotate=_(Y)),this.add(this.gizmo.scale=_(J)),this.add(this.picker.translate=_(U)),this.add(this.picker.rotate=_(X)),this.add(this.picker.scale=_(K)),this.add(this.helper.translate=_(Q)),this.add(this.helper.rotate=_(Z)),this.add(this.helper.scale=_(q)),this.picker.translate.visible=!1,this.picker.rotate.visible=!1,this.picker.scale.visible=!1,this.updateMatrixWorld=function(){var e=this.space;"scale"===this.mode&&(e="local");var t="local"===e?this.worldQuaternion:ae;this.gizmo.translate.visible="translate"===this.mode,this.gizmo.rotate.visible="rotate"===this.mode,this.gizmo.scale.visible="scale"===this.mode,this.helper.translate.visible="translate"===this.mode,this.helper.rotate.visible="rotate"===this.mode,this.helper.scale.visible="scale"===this.mode;var i=[];i=(i=(i=i.concat(this.picker[this.mode].children)).concat(this.gizmo[this.mode].children)).concat(this.helper[this.mode].children);for(var o=0;o<i.length;o++){var g=i[o];g.visible=!0,g.rotation.set(0,0,0),g.position.copy(this.worldPosition);var n=this.worldPosition.distanceTo(this.cameraPosition);if(g.scale.set(1,1,1).multiplyScalar(n*this.size/7),"helper"!==g.tag){if(g.quaternion.copy(t),"translate"===this.mode||"scale"===this.mode){"X"!==g.name&&"XYZX"!==g.name||Math.abs(te.copy(Ae).applyQuaternion(t).dot(this.eye))>.99&&(g.scale.set(1e-10,1e-10,1e-10),g.visible=!1),"Y"!==g.name&&"XYZY"!==g.name||Math.abs(te.copy(re).applyQuaternion(t).dot(this.eye))>.99&&(g.scale.set(1e-10,1e-10,1e-10),g.visible=!1),"Z"!==g.name&&"XYZZ"!==g.name||Math.abs(te.copy(Ce).applyQuaternion(t).dot(this.eye))>.99&&(g.scale.set(1e-10,1e-10,1e-10),g.visible=!1),"XY"===g.name&&Math.abs(te.copy(Ce).applyQuaternion(t).dot(this.eye))<.2&&(g.scale.set(1e-10,1e-10,1e-10),g.visible=!1),"YZ"===g.name&&Math.abs(te.copy(Ae).applyQuaternion(t).dot(this.eye))<.2&&(g.scale.set(1e-10,1e-10,1e-10),g.visible=!1),"XZ"===g.name&&Math.abs(te.copy(re).applyQuaternion(t).dot(this.eye))<.2&&(g.scale.set(1e-10,1e-10,1e-10),g.visible=!1),-1!==g.name.search("X")&&(te.copy(Ae).applyQuaternion(t).dot(this.eye)<0?"fwd"===g.tag?g.visible=!1:g.scale.x*=-1:"bwd"===g.tag&&(g.visible=!1)),-1!==g.name.search("Y")&&(te.copy(re).applyQuaternion(t).dot(this.eye)<0?"fwd"===g.tag?g.visible=!1:g.scale.y*=-1:"bwd"===g.tag&&(g.visible=!1)),-1!==g.name.search("Z")&&(te.copy(Ce).applyQuaternion(t).dot(this.eye)<0?"fwd"===g.tag?g.visible=!1:g.scale.z*=-1:"bwd"===g.tag&&(g.visible=!1))}else"rotate"===this.mode&&(ne.copy(t),te.copy(this.eye).applyQuaternion(ge.copy(t).inverse()),-1!==g.name.search("E")&&g.quaternion.setFromRotationMatrix(oe.lookAt(this.eye,ie,re)),"X"===g.name&&(ge.setFromAxisAngle(Ae,Math.atan2(-te.y,te.z)),ge.multiplyQuaternions(ne,ge),g.quaternion.copy(ge)),"Y"===g.name&&(ge.setFromAxisAngle(re,Math.atan2(te.x,te.z)),ge.multiplyQuaternions(ne,ge),g.quaternion.copy(ge)),"Z"===g.name&&(ge.setFromAxisAngle(Ce,Math.atan2(te.y,te.x)),ge.multiplyQuaternions(ne,ge),g.quaternion.copy(ge)));g.visible=g.visible&&(-1===g.name.indexOf("X")||this.showX),g.visible=g.visible&&(-1===g.name.indexOf("Y")||this.showY),g.visible=g.visible&&(-1===g.name.indexOf("Z")||this.showZ),g.visible=g.visible&&(-1===g.name.indexOf("E")||this.showX&&this.showY&&this.showZ),g.material._opacity=g.material._opacity||g.material.opacity,g.material._color=g.material._color||g.material.color.clone(),g.material.color.copy(g.material._color),g.material.opacity=g.material._opacity,this.enabled?this.axis&&(g.name===this.axis||this.axis.split("").some((function(e){return g.name===e}))?(g.material.opacity=1,g.material.color.lerp(new a(1,1,1),.5)):(g.material.opacity*=.25,g.material.color.lerp(new a(1,1,1),.5))):(g.material.opacity*=.5,g.material.color.lerp(new a(1,1,1),.5))}else g.visible=!1,"AXIS"===g.name?(g.position.copy(this.worldPositionStart),g.visible=!!this.axis,"X"===this.axis&&(ge.setFromEuler(ee.set(0,0,0)),g.quaternion.copy(t).multiply(ge),Math.abs(te.copy(Ae).applyQuaternion(t).dot(this.eye))>.9&&(g.visible=!1)),"Y"===this.axis&&(ge.setFromEuler(ee.set(0,0,Math.PI/2)),g.quaternion.copy(t).multiply(ge),Math.abs(te.copy(re).applyQuaternion(t).dot(this.eye))>.9&&(g.visible=!1)),"Z"===this.axis&&(ge.setFromEuler(ee.set(0,Math.PI/2,0)),g.quaternion.copy(t).multiply(ge),Math.abs(te.copy(Ce).applyQuaternion(t).dot(this.eye))>.9&&(g.visible=!1)),"XYZE"===this.axis&&(ge.setFromEuler(ee.set(0,Math.PI/2,0)),te.copy(this.rotationAxis),g.quaternion.setFromRotationMatrix(oe.lookAt(ie,te,re)),g.quaternion.multiply(ge),g.visible=this.dragging),"E"===this.axis&&(g.visible=!1)):"START"===g.name?(g.position.copy(this.worldPositionStart),g.visible=this.dragging):"END"===g.name?(g.position.copy(this.worldPosition),g.visible=this.dragging):"DELTA"===g.name?(g.position.copy(this.worldPositionStart),g.quaternion.copy(this.worldQuaternionStart),$.set(1e-10,1e-10,1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1),$.applyQuaternion(this.worldQuaternionStart.clone().inverse()),g.scale.copy($),g.visible=this.dragging):(g.quaternion.copy(t),this.dragging?g.position.copy(this.worldPositionStart):g.position.copy(this.worldPosition),this.axis&&(g.visible=-1!==this.axis.search(g.name)))}h.prototype.updateMatrixWorld.call(this)}};E.prototype=Object.assign(Object.create(h.prototype),{constructor:E,isTransformControlsGizmo:!0});var P=function(){u.call(this,new f(1e5,1e5,2,2),new d({visible:!1,wireframe:!0,side:r,transparent:!0,opacity:.1})),this.type="TransformControlsPlane";var e=new w(1,0,0),t=new w(0,1,0),i=new w(0,0,1),o=new w,g=new w,n=new w,a=new c,A=new m;this.updateMatrixWorld=function(){var r=this.space;switch(this.position.copy(this.worldPosition),"scale"===this.mode&&(r="local"),e.set(1,0,0).applyQuaternion("local"===r?this.worldQuaternion:A),t.set(0,1,0).applyQuaternion("local"===r?this.worldQuaternion:A),i.set(0,0,1).applyQuaternion("local"===r?this.worldQuaternion:A),n.copy(t),this.mode){case"translate":case"scale":switch(this.axis){case"X":n.copy(this.eye).cross(e),g.copy(e).cross(n);break;case"Y":n.copy(this.eye).cross(t),g.copy(t).cross(n);break;case"Z":n.copy(this.eye).cross(i),g.copy(i).cross(n);break;case"XY":g.copy(i);break;case"YZ":g.copy(e);break;case"XZ":n.copy(i),g.copy(t);break;case"XYZ":case"E":g.set(0,0,0)}break;case"rotate":default:g.set(0,0,0)}0===g.length()?this.quaternion.copy(this.cameraQuaternion):(a.lookAt(o.set(0,0,0),g,n),this.quaternion.setFromRotationMatrix(a)),h.prototype.updateMatrixWorld.call(this)}};P.prototype=Object.assign(Object.create(u.prototype),{constructor:P,isTransformControlsPlane:!0}),t.default=x},function(e,t,i){var o=i(58);o(o.S+o.F,"Object",{assign:i(304)})},function(e,t,i){"use strict";var o=i(70),g=i(128),n=i(213),a=i(177),A=i(85),r=i(175),C=Object.assign;e.exports=!C||i(65)((function(){var e={},t={},i=Symbol(),o="abcdefghijklmnopqrst";return e[i]=7,o.split("").forEach((function(e){t[e]=e})),7!=C({},e)[i]||Object.keys(C({},t)).join("")!=o}))?function(e,t){for(var i=A(e),C=arguments.length,I=1,s=n.f,l=a.f;C>I;)for(var c,u=r(arguments[I++]),d=s?g(u).concat(s(u)):g(u),h=d.length,p=0;h>p;)c=d[p++],o&&!l.call(u,c)||(i[c]=u[c]);return i}:C},function(e,t,i){"use strict";i.r(t);i(38);var o=function(e,t,i){this.speed=0,this.path=this.createElement(e),this.controlEvent=t,this.doneEvent=i,this.path.find(".knot").on("mousedown",this.beginMove.bind(this)),this.path.find(".knot").on("touchstart",this.beginMove.bind(this));var o=window.isMobile?$("footer"):$(window);o.on("mousemove",this.move.bind(this)),o.on("touchmove",this.move.bind(this)),$("#player").on("mouseup pointerup",this.moveDone.bind(this)),$(document).on("mouseup pointerup",this.moveDone.bind(this)),o.on("touchend",this.moveDone.bind(this)),o.on("touchcancel",this.moveDone.bind(this))};o.prototype.createElement=function(e){var t=$('<div class="path"><div class="knot"></div></div>');return e.appendChild(t[0]),t},o.prototype.setPathWidth=function(){this.pathWidth||(this.pathWidth=this.path.width(),this.knotWidth=this.path.find(".knot").width(),this.offsetLeft=(this.pathWidth-this.knotWidth)/2)},o.prototype.beginMove=function(e){publicObjectSet.player.cameraControls.controls.panorama.locked=!0;var t=(e=e.originalEvent||e).type.indexOf("touch")>-1;this.moving=!0,this.startX=t?e.changedTouches[0].clientX:e.clientX,this.path.find(".knot").addClass("drag"),this.controlEvent&&this.dealMoveCallBack()},o.prototype.dealMoveCallBack=function(){this.controlEvent(this.speed),this.moving&&setTimeout(this.dealMoveCallBack.bind(this),30)},o.prototype.move=function(e){if(e=e.originalEvent||e,this.moving){var t=e.type.indexOf("touch")>-1?e.changedTouches[0].clientX-this.startX:e.clientX-this.startX;t=Math.min(Math.max(2-this.offsetLeft,t),this.offsetLeft-2),this.path.find(".knot").css("transform","translate("+t+"px,0)"),this.computeSpeed(t)}},o.prototype.computeSpeed=function(e){isMobile?this.speed=15e-5*Math.pow(Math.abs(e),1.3)*(e>0?1:-1):this.speed=2e-4*Math.pow(Math.abs(e),1.3)*(e>0?1:-1)},o.prototype.moveDone=function(){this.moving&&(publicObjectSet.player.cameraControls.controls.panorama.locked=!1,this.moving=!1,this.doneEvent&&this.doneEvent(),this.speed=0,this.path.find(".knot").removeClass("drag"),this.path.find(".knot").css("transform",""))},t.default=o},function(e,t,i){"use strict";i.r(t);i(210),i(211),i(38),i(52),i(124),i(301),i(75),i(63),i(39);var o,g,n,a=i(267),A=i(48),r=i(32),C=i(16),I=i(138),s=i(0),l=i(57),c=i(6),u=i(2),d=i(4),h=i(76),p=i(92),f=i(7),m=i(50),v=i(101),y=i(168),b=i(169),w=i(143),x=i(171),E=i(1),P=i(17),T=i(9),D=i(15),M=i(18),S=i(36),R=i(3),k=s.a.player,O={};g=$.extend(C.a,{convertFromJson:function(e){return"lb8Bk8jb"==u.a.projectNum?new THREE.Vector2(-e.y,-e.x):new THREE.Vector2(e.x,-e.y)},convertToJson:function(e){return"RPjep6G2"==u.a.projectNum?new THREE.Vector2(-e.y,-e.x):new THREE.Vector2(e.x,-e.y)}});var L,B,F,j,N,H,z,V,G,W,U,Q,Y,Z,X,J=(L={line2d:0,line3d:0,ball:0,door:0,window:0,column:0},function(e){return null==L[e]&&(d.a.info("getID没有找到"+e+",先创建一个,记得加上来。^ ^"),L[e]=0),L[e]++}),K=function(e){var t,i,o=e.points[1].x-e.points[0].x,g=e.points[1].y-e.points[0].y;if(0!=g)i=-o*(t=1)/g;else{if(0==o)return console.log("两个点一样"),null;t=-g*(i=1)/o}var n=new THREE.Vector3(t,i,0),a=new THREE.Vector3(o,g,0);return n.cross(a).z>0&&(t*=-1,i*=-1),0!=t&&0!=i?(console.log("出现斜线! "+e.id),null):new THREE.Vector2(t,i).normalize()},q={obj:{margin:.05,maxWidth:3,minWidth:.1,maxHeight:5,minHeight:.05,door:{width:.8,height:2,minWidth:.2,minHeight:.05},window:{width:1,height:1,minWidth:.2},column:{width:.8,depth:.4,minWidth:.1}}},_=function(e,t){if(e.points[0]==t.points[0]&&e.points[1]==t.points[1]||e.points[1]==t.points[0]&&e.points[0]==t.points[1])return!0};function ee(e){this.id=e.id,this.CADroom=e,this.name=e.name,this.showName=e.showName,this.showArea=e.showArea,null!=e.top?this.top=e.top:this.top=n.top,null!=e.bottom?this.bottom=e.bottom:this.bottom=n.bottom,e.bottom=this.bottom,e.top=this.top,this.setRoomTab(),this.createFloorAndCeil(),this.getRoomBound(),this.visible=!0,this.createLabels()}function te(e,t,i){this.id=e.id+"_"+t.id,this.CADline=t,this.line2d=e,this.room=i,this.otherobjs=[],this.childLine3D={},this.create3dLine(),this.buildMesh(),n.wallLines[this.id]=this}function ie(e,t){e.points[0].x==e.points[1].x&&e.points[0].y==e.points[1].y&&console.log("两点重合"),this.id=J("line2d"),this.CADlines=[],this.wallLines=[],this.otherobjs=[],this.addCADLine(e,t),this.normalVec=K(e),n.geometry2Ds[this.id]=this,this.visible=!0}function oe(e,t){this.id="Ball_"+e.id+"_in_"+t.id,this.CADpoint=e,this.room=t,this.ballMesh=this.createBall(),this.visible=!0,this.line3d=this.buildLine3d()}function ge(e,t){this.id=e.id,this.CADpoint=e,this.balls=[],this.addBall(t),n.vertex2Ds[this.id]=this}function ne(e,t,i,o,g,a){this.id=e,this.parentID=t,this.points=[i,o],this.lineMesh,this.type=g,this.buildLineMesh(a),n.geometry3Ds[e]=this}function ae(e){this.CADobj=e,this.id=e.origin.id,e.in3D=this,"door"==this.type||"window"==this.type?e.line.in3D.wallLines.forEach(function(e){e.otherobjs.push(this)}.bind(this)):e.line.wallLine.otherobjs.push(this),this.getPoints(),this.line2d=this.CADobj.line.in3D,this.line2d.otherobjs.push(this),this.faceNormal,this.faceMesh=this.buildFaceMesh(),this.childLine3D=this.buildLine3d(),n[this.type+"s"].push(this),n.allOtherObjs[this.id]=this,this.visible=!0}function Ae(e){this.type="door",ae.call(this,e)}function re(e){this.type="window",ae.call(this,e)}function Ce(e){for(var t in this.type="column",this.CADrooms)if(this.CADrooms[t].indexOf(e.line)>-1){this.roomId=t;break}ae.call(this,e)}function Ie(){this.mouseAtMouseDown=new THREE.Vector2,this.mouseCouldBeClickToMove=!1,this.mouseDown=!1,this.containsMouse=!1,this.mouse=new THREE.Vector3,this.domElement=$("#overlook")[0],this.cameraControls=new I.a,this.cameraControls.init(this.domElement,null,"miniView"),this.cameraControls.activateControls("panorama");var e=this.cameraControls.activeControl;e.limitDownAngel=-89,e.camera.fov=90,e.camera.updateProjectionMatrix(),this.camera=e.camera,this.initEvent()}function se(e){this.top=e.top,this.bottom=e.bottom,this.meshGroup=new THREE.Object3D,k.model.add(this.meshGroup),this.meshGroup.visible=!1,this.meshGroup.name="designMeshGroup",this.roomGroups={},this.initMaterials(O),this.CAD=this.initCAD(e),this.CADrooms=this.CAD.getFace(),this.dollLabels=[],this.planLabels=[],this.vertex2Ds={},this.geometry2Ds={},this.geometry3Ds={},this.wallLines={},this.flplTopLines=[],this.wallMeshes=[],this.boldLines=[],this.ballMeshes=[],this.pullsShowing=[],this.objFaceMeshes=[],this.doors=[],this.windows=[],this.columns=[],this.allOtherObjs={},this.mainView="player",this.dragInfo={},this.optionLabels={},this.panoPicSlider,this.placeIntersectPlane(),this.delayChange={updateWallMeshForObj:[],moveBoldLine:[]},this.useCssRender=!1,this.overlayPlanes=[]}ee.prototype.setRoomTab=function(){var e=$("#roomList .room-preview-rooms .swiper-wrapper"),t=$('<a class="hasHover swiper-slide" data-name="'+this.id+'"><span>'+this.name+"</span></a>");if(isMobile){var i=n.CAD.getFaceCamera(this.id);if(i.length){var o=$("<div></div>"),g=c.a.prefix+"images/images"+u.a.projectNum+"/pan/low/"+i[0].id+".jpg";o.css("background-image",'url("'+g+'")'),t.append(o)}}e.append(t),t.on("click",function(){isMobile&&n.atRoom==this.id?(n.updateRoomPanel(),$('.tmpl-wallDesign .layout[data-type="main"]').addClass("hide"),$(".tmpl-wallDesign .layout#roomProp").removeClass("hide")):("panorama"==k.mode&&n.atRoom==this.id?this.setSelectState(!0):this.gotoCenter(),n.CAD.dispatcher.trigger("floorHoverIn",this.CADroom))}.bind(this))},ee.prototype.gotoCenter=function(e){if(!k.flying){var t,i=n.CAD.getFacePoints(this.id),o=C.a.getCenterOfGravityPoint(i),g=1/0;return n.CAD.getFaceCamera(this.id).forEach((function(e){var i=new THREE.Vector2(e.position.x,e.position.z).distanceTo(o);i<g&&(g=i,t=e)})),isMobile||e&&e.dontSelect||(this.setSelectState(!0),n.CAD.dispatcher.trigger("floorHoverIn",this.CADroom)),t?(k.flyToPano({pano:t},e&&e.func),!0):(s.a.gui.showInfo(R.a.get("此房间没有漫游点,无法进入")),n.updateRoomDisplay({room:this}),!1)}},ee.prototype.reUseWorld=function(e){if(!this["useWorld"+e]){var t="Bottom"==e?"bottom":"top";n.changeHeight(t,n[t],{room:this,dontTranValue:!0}),this.CADroom[t]=null,n.CAD.dispatcher.trigger("changeWallAttr","Bottom"==e?{bottom:null}:{top:null}),this["useWorld"+e]=!0}},ee.prototype.setSelectState=function(e){if(e){if(!isMobile){if(n.selectRoom&&n.selectRoom!=this&&(n.CAD.dispatcher.trigger("floorHoverOut",n.selectRoom.CADroom),n.selectRoom.setSelectState(!1)),n.selectRoom==this)return;n.selectRoom=this,this.highlightFloor?this.warning||console.log("has already highlightFloor??????"):(this.highlightFloor=new THREE.Mesh(this.floorMesh.geometry,O.wallMats.selected2),n.meshGroup.add(this.highlightFloor),this.highlightFloor.position.setY(this.bottom+.001))}n.updateRoomPanel()}else isMobile?$("#roomProp").addClass("hide"):(n.selectRoom=null,$(".toolRight #roomProp").addClass("atRight"),this.warning||this.highlightFloor&&(this.highlightFloor.parent.remove(this.highlightFloor),this.highlightFloor=null))},ee.prototype.changeName=function(e){this.name=e,$("#roomList>div a[data-name="+this.id+"] span").html(this.name),n.CAD.dispatcher.trigger("changeFaceName",this.id,this.name),this.setLabelText()},ee.prototype.createLabels=function(){this.dollLabel=new y.a({sid:this.id,pos:new THREE.Vector3,text:"",clickFun:this.gotoCenter.bind(this),container:$(".rulerAndLabel .dollLabels")}),this.planLabel=new b.a({sid:"pl_"+this.id,pos:new THREE.Vector3,text:"",container:$(".rulerAndLabel .planLabels")}),this.dollLabel.enable=this.planLabel.enable=n.editing,n.dollLabels.push(this.dollLabel),n.planLabels.push(this.planLabel)},ee.prototype.setLabelText=function(e){e&&null!=e.area&&(this.area=e.area),this.dollLabel.changeText(this.showName?this.name:""),this.planLabel.changeText(this.showName&&this.showArea&&this.name.trim()?this.name+"<br>"+R.a.get("约")+this.area+"m²":this.showName&&this.name.trim()?this.name:this.showArea?R.a.get("约")+this.area+"m²":""),this.dollLabel.update(),this.planLabel.update()},ee.prototype.setLabelPos=function(e){var t=this.bottom,i=this.top,o=.8*(t-i)+i;if(e&&e.onlyHeight)this.dollLabel.position.setY(o),this.dollLabel.update();else{if(e&&e.roomCenter&&!isNaN(e.roomCenter.x)&&!isNaN(e.roomCenter.y))a=e.roomCenter;else var g=n.CAD.getFacePoints(this.id),a=C.a.getCenterOfGravityPoint(g);var A=new THREE.Vector3(a.x,o,a.y);this.dollLabel.position.copy(A),this.planLabel.position.copy(A),this.dollLabel.update(),this.planLabel.update()}},ee.prototype.setVisible=function(e,t){(this.CADroom.forEach(function(t){t.in3D.setVisible(e,{room:this})}.bind(this)),t&&t.onlySetBackSide)||(n.CAD.getFacePoints(this.id).forEach(function(t){try{n.vertex2Ds[t.id].getBall(this.id).setVisible(e)}catch(e){console.log(e)}}.bind(this)),this.floorMesh.material=n.judgeWallMat(e),"panorama"!=k.modeTran.split("-")[1]&&"panorama"==k.mode||"panorama"!=k.mode?this.ceilMesh.visible=!1:this.ceilMesh.visible=!0)},ee.prototype.createFloorAndCeil=function(){var e=new THREE.Mesh(this.getFloorGeo(),O.wallMats.panoMat);e.name="floor"+this.id,n.meshGroup.add(e),e.position.y=this.bottom-.001,this.floorMesh=e;var t=new THREE.Mesh(e.geometry,O.wallMats.panoMat);t.name="ceil"+this.id,n.meshGroup.add(t),t.position.y=this.top+.001,this.ceilMesh=t},ee.prototype.getFloorGeo=function(e,t){var i=n.CAD.getFacePoints(this.id),g=o.getShapeGeo(i);g.faces.forEach((function(e){var t=e.b,i=e.c;e.b=i,e.c=t}));var a=new THREE.Matrix4;return a.set(1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1),g.applyMatrix(a),g.computeFaceNormals(),g.computeVertexNormals(),g},ee.prototype.getRoomBound=function(){var e=new THREE.Box2;n.CAD.getFacePoints(this.id).forEach((function(t){e.expandByPoint(t)})),this.modelBound=e},ee.prototype.updateFloor=function(e){this.getRoomBound(),"vertical"!=e?(this.floorMesh.geometry&&this.floorMesh.geometry.dispose(),this.floorMesh.geometry=this.getFloorGeo(e),this.highlightFloor&&(this.highlightFloor.geometry=this.floorMesh.geometry)):(this.floorMesh.position.y=this.bottom-.001,this.highlightFloor&&(this.highlightFloor.position.y=this.bottom+.001))},ee.prototype.updateCeil=function(e){"vertical"!=e?this.ceilMesh.geometry=this.floorMesh.geometry:this.ceilMesh.position.y=this.top+.001},te.prototype.create3dLine=function(){var e=this.CADline.points,t=new THREE.Vector3(e[0].x,this.room.top,e[0].y),i=new THREE.Vector3(e[1].x,this.room.top,e[1].y),o=new THREE.Vector3(e[0].x,this.room.bottom,e[0].y),g=new THREE.Vector3(e[1].x,this.room.bottom,e[1].y);this.childLine3D.top=new ne("3d_"+J("line3d"),this.id,t,i,"wallTop"),this.childLine3D.bottom=new ne("3d_"+J("line3d"),this.id,o,g,"wallBtm")},te.prototype.buildMesh=function(){for(var e in this.childLine3D)"bottom"==e&&(this.boldLine=this.childLine3D[e].buildBoldLine(),n.meshGroup.add(this.boldLine),this.childLine3D[e].buildPullMesh(new THREE.Vector3(0,1,0)));this.buildWallMesh()},te.prototype.setVisible=function(e,t){if(t&&t.autoJudge&&(e=!1,null!=n.atRoom)){var i=n.atRoom;if(this.room.id==i)e=!0;else for(var o=0;o<this.line2d.wallLines.length;o++)if(this.line2d.wallLines[o].room==i){t.isBackSide=!0,t.room=i;break}}for(var g in this.wallMesh||console.log("!!!"),this.wallMesh.material=n.judgeWallMat(e,this),this.wallMesh.renderOrder=e?0:1,this.childLine3D)t&&t.isBackSide&&"panorama"==k.modeTran.split("-")[1]&&"panorama"==k.mode&&("bottom"==g&&this.room.bottom>t.room.bottom||"top"==g&&this.room.top<t.room.top)?this.childLine3D[g].lineMesh.visible=!0:this.childLine3D[g].lineMesh.visible=e,this.childLine3D[g].lineMesh.material=e?"bottom"==g?O.lineMats.defaultBtm:O.lineMats.default:O.lineMats.unVisiTopAndBtm,this.childLine3D[g].boldLine&&(this.childLine3D[g].boldLine.visible=e);t&&t.isBackSide||this.otherobjs.forEach((function(t){"column"==t.type&&t.setVisible(e)})),this.visible=e},te.prototype.buildWallMesh=function(e,t){var i;if(e)i=e;else{var g=this.CADline.points,a=new THREE.Vector3(g[0].x,this.room.top,g[0].y),A=new THREE.Vector3(g[1].x,this.room.top,g[1].y),r=new THREE.Vector3(g[0].x,this.room.bottom,g[0].y),C=new THREE.Vector3(g[1].x,this.room.bottom,g[1].y);i=o.getPlaneGeo(a,A,C,r)}return this.wallMesh?this.wallMesh.geometry=i:(this.wallMesh=new THREE.Mesh(i,O.wallMats.panoMat),this.wallMesh.name="wallMesh_"+this.id,n.meshGroup.add(this.wallMesh),n.wallMeshes.push(this.wallMesh)),this.wallMesh},te.prototype.updateLine3D=function(){var e=this.CADline.points,t=new THREE.Vector3(e[0].x,this.room.top,e[0].y),i=new THREE.Vector3(e[1].x,this.room.top,e[1].y),o=new THREE.Vector3(e[0].x,this.room.bottom,e[0].y),g=new THREE.Vector3(e[1].x,this.room.bottom,e[1].y);this.childLine3D.top.updatePoints(t,i),this.childLine3D.bottom.updatePoints(o,g),this.moveWallLine()},te.prototype.createNoObjWall=function(){var e=this.childLine3D.bottom.points[0],t=this.childLine3D.bottom.points[1],i=this.childLine3D.top.points[0],g=this.childLine3D.top.points[1],n=o.getPlaneGeo(e,t,g,i),a=new THREE.Mesh(n,O.wallMats.default);return a.isNoObjWall=!0,a},te.prototype.moveWallLine=function(){for(var e in this.childLine3D)this.childLine3D[e].moveLineMesh(),"bottom"==e&&(this.childLine3D[e].pullMesh.visible&&this.childLine3D[e].movePullMesh("move"),this.childLine3D[e].moveBoldLine())},te.prototype.dispose=function(){for(var e in this.childLine3D)this.childLine3D[e].dispose();this.wallMesh.geometry.dispose(),this.wallMesh.parent.remove(this.wallMesh);var t=n.wallMeshes.indexOf(this.wallMesh);n.wallMeshes.splice(t,1),(e=this.line2d.wallLines.indexOf(this))>-1&&this.line2d.wallLines.splice(e,1),delete n.wallLines[this.id]},te.prototype.updateWallMeshForObj=(j=[],N=[],H=function(e,t,i){var o=z(e[0],t),g=z(e[1],t);return o<=g?[o,g]:[g,o]},z=function(e,t){return"x"==t?e.x:e.y},V=function(e){return[e,e+3,e+1,e,e+2,e+3]},G=function(e){return[e[0],e[3],e[1],e[0],e[2],e[3]]},W=function(e,t){var i,o,g,n;return"x"==B?(i=e.bound[0],o=e.bound[1],g=n=t):(g=e.bound[0],n=e.bound[1],i=o=t),[[i,F.room.top,g],[o,F.room.top,n],[i,F.room.bottom,g],[o,F.room.bottom,n]]},U=function(e,t){var i=e.belong;if(i.indexStart=j.length/3,i instanceof Ce){for(var o=0;o<8;o++)j.push(i.points[o].x,i.points[o].y,i.points[o].z);j.push(i.points[2].x,i.points[2].y,i.points[2].z),j.push(i.points[3].x,i.points[3].y,i.points[3].z),j.push(i.points[6].x,i.points[6].y,i.points[6].z),j.push(i.points[7].x,i.points[7].y,i.points[7].z);var g=i.indexStart;N=(N=(N=N.concat(G([g+4,g+6,g+0,g+2]))).concat(G([g+7,g+5,g+3,g+1]))).concat(G([g+10,g+11,g+8,g+9]))}else{var n=W(e,t);j.push(n[0][0],n[0][1],n[0][2]),j.push(n[1][0],n[1][1],n[1][2]),j.push(n[0][0],i.points[0].y,n[0][2]),j.push(n[1][0],i.points[0].y,n[1][2]),N=N.concat(V(i.indexStart)),j.push(n[2][0],i.points[2].y,n[2][2]),j.push(n[3][0],i.points[2].y,n[3][2]),j.push(n[2][0],n[2][1],n[2][2]),j.push(n[3][0],n[3][1],n[3][2]),N=N.concat(V(i.indexStart+4))}},Q=function(e,t){return{column:[4,5,0,1],door:[0,1,6,7],window:[0,1,6,7]}[e.type][{leftTop:0,rightTop:1,leftBot:2,rightBot:3}[t]]},Y=function(e,t,i){var o;if(-1==e)o=0==t.length?[i,i+1,i+2,i+3]:[i,(g=t[0].belong).indexStart+Q(g,"leftTop"),i+2,g.indexStart+Q(g,"leftBot")];else if(e==t.length-1){var g;o=[(g=t[e].belong).indexStart+Q(g,"rightTop"),i+1,g.indexStart+Q(g,"rightBot"),i+3]}else{var n=t[e].belong,a=t[e+1].belong;o=[n.indexStart+Q(n,"rightTop"),a.indexStart+Q(a,"leftTop"),n.indexStart+Q(n,"rightBot"),a.indexStart+Q(a,"leftBot")]}N=N.concat(G(o))},function(e){if(0==this.otherobjs.length)return this.wallMesh&&this.wallMesh.geometry&&this.wallMesh.geometry.dispose(),void this.buildWallMesh(null,!0);F=this;var t=this.CADline.points[0],i=this.CADline.points[1];if(t.x==i.x?(B="y",t.y,i.y):t.y==i.y?(B="x",t.x,i.x):d.a.info("斜线???"),e){if(j=this.wallMesh.geometry.attributes.position.array,"wallMoveLeftRight"==e.type||"objsMoved"==e.type){var o=H(this.CADline.points,B),g=this.wallIndexStart;if("y"==B)for(var n=0;n<4;n++)j[3*(g+n)+0]=t.x,j[3*(g+n)+2]=o[n%2];else for(n=0;n<4;n++)j[3*(g+n)+0]=o[n%2],j[3*(g+n)+2]=t.y}if("objsMoved"==e.type)for(var a="x"==e.axis?0:2,A=(n=0,j.length);n<A;n+=3)n>=3*this.wallIndexStart&&n<=3*this.wallIndexStart+11||(j[n+a]+=e.moveLen);if("height"==e.type){var r=this.room.top,C=this.room.bottom;g=3*this.wallIndexStart,j[g+1]=j[g+4]=r,j[g+7]=j[g+10]=C,this.otherobjs.forEach((function(e){j[3*(e.indexStart+Q(e,"leftTop"))+1]=r,j[3*(e.indexStart+Q(e,"rightTop"))+1]=r,j[3*(e.indexStart+Q(e,"leftBot"))+1]=C,j[3*(e.indexStart+Q(e,"rightBot"))+1]=C,"column"==e.type&&(j[3*(e.indexStart+Q(e,"leftTop")+2)+1]=r,j[3*(e.indexStart+Q(e,"rightTop")+2)+1]=r,j[3*(e.indexStart+Q(e,"leftBot")+2)+1]=C,j[3*(e.indexStart+Q(e,"rightBot")+2)+1]=C,j[3*(e.indexStart+10)+1]=r,j[3*(e.indexStart+11)+1]=r,j[3*(e.indexStart+8)+1]=C,j[3*(e.indexStart+9)+1]=C)}))}"moveSingleObj"==e.type&&function(e,t){var i=e.belong,o=i.indexStart;if(i instanceof Ce){for(var g=0;g<8;g++)j[3*(o+g)+0]=i.points[g].x,j[3*(o+g)+1]=i.points[g].y,j[3*(o+g)+2]=i.points[g].z;j[3*(o+8)+0]=i.points[2].x,j[3*(o+8)+1]=i.points[2].y,j[3*(o+8)+2]=i.points[2].z,j[3*(o+9)+0]=i.points[3].x,j[3*(o+9)+1]=i.points[3].y,j[3*(o+9)+2]=i.points[3].z,j[3*(o+10)+0]=i.points[6].x,j[3*(o+10)+1]=i.points[6].y,j[3*(o+10)+2]=i.points[6].z,j[3*(o+11)+0]=i.points[7].x,j[3*(o+11)+1]=i.points[7].y,j[3*(o+11)+2]=i.points[7].z}else{var n=W(e,t);for(j[3*o+0]=n[0][0],j[3*o+1]=n[0][1],j[3*o+2]=n[0][2],j[3*o+3]=n[1][0],j[3*o+4]=n[1][1],j[3*o+5]=n[1][2],g=0;g<4;g++)j[6+3*(o+g)+0]=n[g%2][0],j[6+3*(o+g)+1]=i.points[g].y,j[6+3*(o+g)+2]=n[g%2][2];j[6+3*(o+4)+0]=n[2][0],j[6+3*(o+4)+1]=n[2][1],j[6+3*(o+4)+2]=n[2][2],j[6+3*(o+4)+3]=n[3][0],j[6+3*(o+4)+4]=n[3][1],j[6+3*(o+4)+5]=n[3][2]}}({bound:H(e.obj.CADobj.points,B),belong:e.obj},"x"==B?t.y:t.x),this.wallMesh.geometry.addAttribute("position",new THREE.BufferAttribute(j,3)),function(e){for(var t=e.attributes.normal.array,i=e.attributes.position.array,o=e.index.array,g=[],n=(new THREE.Vector3,0),a=t.length/3;n<a;n++)if(0==t[3*n]&&0==t[3*n+1]&&0==t[3*n+2]){var A=o.indexOf(n),r=3*parseInt(A/3);if(g.indexOf(r)>-1)continue;var C=new THREE.Vector3(i[3*o[r]],i[3*o[r]+1],i[3*o[r]+2]),I=new THREE.Vector3(i[3*o[r+1]],i[3*o[r+1]+1],i[3*o[r+1]+2]),s=new THREE.Vector3(i[3*o[r+2]],i[3*o[r+2]+1],i[3*o[r+2]+2]);if(!C.equals(I)&&!I.equals(s)&&!C.equals(s)){var l=new THREE.Vector3;if(C.x==I.x&&I.x==s.x&&C.x==s.x)l.set(1,0,0);else if(C.y==I.y&&I.y==s.y&&C.y==s.y)l.set(0,1,0);else{if(C.z!=I.z||I.z!=s.z||C.z!=s.z){console.log("无法计算normal "+r);continue}l.set(0,0,1)}t[3*o[r]]=t[3*o[r+1]]=t[3*o[r+2]]=l.x,t[3*o[r]+1]=t[3*o[r+1]+1]=t[3*o[r+2]+1]=l.y,t[3*o[r]+2]=t[3*o[r+1]+2]=t[3*o[r+2]+2]=l.z}g.push(r)}}(this.wallMesh.geometry)}else{o=H(this.CADline.points,B);var I=function(e,t,i){var o=[],g=[];e.forEach((function(e){var i={bound:H(e.CADobj.points,t),belong:e};e instanceof Ce?g.push(i):o.push(i)}));var n=function(e,t){return e.bound[0]-t.bound[0]};return o.sort(n),g.sort(n),[o,g]}(this.otherobjs,B),s=I[0],l=I[1];for(n=0,A=s.length;n<A;n++)U(s[n],"x"==B?t.y:t.x);for(n=0,A=l.length;n<A;n++)U(l[n],"x"==B?t.y:t.x);for(this.wallIndexStart=function(e,t){var i=j.length/3,o=W({bound:e},t);return j.push(o[0][0],o[0][1],o[0][2]),j.push(o[1][0],o[1][1],o[1][2]),j.push(o[2][0],o[2][1],o[2][2]),j.push(o[3][0],o[3][1],o[3][2]),i}(o,"x"==B?t.y:t.x),n=-1,A=s.length;n<A;n++)Y(n,s,this.wallIndexStart);this.wallMesh&&this.wallMesh.geometry&&this.wallMesh.geometry.dispose();var c=new Uint16Array(N),u=new Float32Array(j),h=new THREE.BufferGeometry;h.setIndex(new THREE.BufferAttribute(c,1)),h.addAttribute("position",new THREE.BufferAttribute(u,3)),h.computeVertexNormals(),this.buildWallMesh(h)}j=[],N=[]}),te.prototype.addRuler=function(){new w.a({sid:"ruler_"+this.id,points:this.childLine3D.bottom.points})},ie.prototype.addCADLine=function(e,t){e.in3D=this,e.wallLine=new te(this,e,t),this.wallLines.push(e.wallLine),this.CADlines.push(e),this.clonePoints(),this.otherobjs.forEach((function(t){console.log("wallLine "+e.wallLine.id+" 添加obj "+t.id),"door"!=t.type&&"window"!=t.type||(e.wallLine.otherobjs.push(t),e.wallLine.updateWallMeshForObj())}))},ie.prototype.getWallLine=function(e){for(var t=0;t<this.wallLines.length;t++)if(this.wallLines[t].room.id==e)return this.wallLines[t]},ie.prototype.clonePoints=function(){this.points=[{x:this.CADlines[0].points[0].x,y:this.CADlines[0].points[0].y},{x:this.CADlines[0].points[1].x,y:this.CADlines[0].points[1].y}]},ie.prototype.addToTopLine=function(){var e=this.atRoom&&this.rooms[this.atRoom].CADroom;if(2==this.CADlines.length){for(var t=!1,i=0;i<2;i++)if(e&&e.indexOf(this.CADlines[i])>-1){t=!0;break}if(!t){var o=this.wallLines[0].childLine3D.top.lineMesh;o.visible=!0,o.material=O.lineMats.flplsplitLine,n.flplTopLines.push(o)}}},ie.prototype.setVisible=function(e,t){if(t&&t.autoJudge&&(e=!1,t.room=n.rooms[n.atRoom],t.room))for(var i=0;i<this.wallLines.length;i++)if(this.wallLines[i].room.id==t.room.id){e=!0;break}for(i=0;i<this.wallLines.length;i++)t.room&&this.wallLines[i].room.id==t.room.id?this.wallLines[i].setVisible(e):e?this.wallLines[i].setVisible(!1,{isBackSide:!0,room:t.room}):this.wallLines[i].setVisible(!1);0==e&&"floorplan"==k.mode&&this.addToTopLine(),this.otherobjs.forEach((function(t){"column"==t.type||t.setVisible(!!e)}))},ie.prototype.dispose=function(){console.log("dispose line "+this.id),delete n.geometry2Ds[this.id]},ie.prototype.moveWall=function(e){this.moveObjs(e)},ie.prototype.moveObjs=function(e){if("height"!=e){var t;if(this.CADlines[0].points[0].x==this.CADlines[0].points[1].x)t="x";else{if(this.CADlines[0].points[0].y!=this.CADlines[0].points[1].y)return void d.a.info("moveWithLine出现斜线?无法计算");t="y"}var i=this.CADlines[0].points[0][t]-this.points[0][t];0!=i?(n.dragInfo.state?-1==n.delayChange.updateWallMeshForObj.indexOf(this)&&n.delayChange.updateWallMeshForObj.push(this):this.wallLines.forEach((function(e){e.updateWallMeshForObj({type:"objsMoved",axis:t,moveLen:i})})),this.otherobjs.forEach((function(e){e.moveWithLine()}))):n.dragInfo.state?-1==n.delayChange.updateWallMeshForObj.indexOf(this)&&n.delayChange.updateWallMeshForObj.push(this):this.wallLines.forEach((function(e){e.updateWallMeshForObj({type:"wallMoveLeftRight"})}))}else this.otherobjs.forEach((function(e){"column"==e.type?e.moveWithLine():(e.moveVertical(null,0,"top"),e.moveVertical(null,0,"bottom"))}))},ie.prototype.update3D=function(e){this.wallLines.forEach((function(e){e.updateLine3D()})),this.moveWall(),this.clonePoints()},ie.prototype.getLength=function(){var e=this.CADlines[0].points[0].x-this.CADlines[0].points[1].x,t=this.CADlines[0].points[0].y-this.CADlines[0].points[1].y;return 0==e?Math.abs(t):Math.abs(e)},ie.prototype.createNoObjWall=function(){var e=-1/0,t=1/0;this.wallLines.forEach((function(i){e=Math.max(i.room.top,e),t=Math.min(i.room.bottom,t)}));var i=new THREE.Vector3(this.points[0].x,t,this.points[0].y),g=new THREE.Vector3(this.points[1].x,t,this.points[1].y),n=new THREE.Vector3(this.points[0].x,e,this.points[0].y),a=new THREE.Vector3(this.points[1].x,e,this.points[1].y),A=o.getPlaneGeo(i,g,a,n);return new THREE.Mesh(A,O.wallMats.selected)},oe.prototype.buildLine3d=function(){var e=new THREE.Vector3(this.CADpoint.x,this.room.top,this.CADpoint.y),t=new THREE.Vector3(this.CADpoint.x,this.room.bottom,this.CADpoint.y),i=new ne("3d_"+J("line3d"),this.id,e,t,"vertical");return i.point2dVertical=this,n.meshGroup.add(i.lineMesh),i},oe.prototype.createBall=function(){Z||(Z=new THREE.SphereBufferGeometry(.05,isMobile?5:10,isMobile?5:10));var e=new THREE.Mesh(Z,O.ballMats.default);return e.position.set(this.CADpoint.x,this.room.bottom,this.CADpoint.y),e.name=this.id,n.meshGroup.add(e),n.ballMeshes.push(e),e},oe.prototype.update=function(){this.ballMesh.position.set(this.CADpoint.x,this.room.bottom,this.CADpoint.y);var e=new THREE.Vector3(this.CADpoint.x,this.room.top,this.CADpoint.y),t=new THREE.Vector3(this.CADpoint.x,this.room.bottom,this.CADpoint.y);this.line3d.updatePoints(e,t),this.line3d.moveLineMesh(),this.line3d.moveBoldLine(),this.line3d.movePullMesh()},oe.prototype.setVisible=function(e,t){if(t&&t.autoJudge)if(n.atRoom)if(this.room.id==n.atRoom){if(this.visible)return;e=!0}else e=!1;else e=!1;this.ballMesh.visible=e,this.line3d.lineMesh.visible=e,this.visible=e},oe.prototype.dispose=function(){var e=n.ballMeshes.indexOf(this.ballMesh);n.ballMeshes.splice(e,1),this.ballMesh.parent.remove(this.ballMesh),this.line3d.dispose()},ge.prototype.addBall=function(e){this.balls.push(new oe(this.CADpoint,e))},ge.prototype.addOrDelBall=function(e){var t=[],i=0;this.balls.forEach(function(e,o){-1==n.CAD.getFacePoints(e.room.id).indexOf(this.CADpoint)?(i++,e.dispose()):t.push(e)}.bind(this)),i&&(this.balls=t,console.log("del "+i+" balls from point2d "+this.id)),e&&(this.getBall(e.id)||(this.addBall(e),console.log("add ball to point "+this.id+" at room:"+e.id)))},ge.prototype.getBall=function(e){for(var t=0;t<this.balls.length;t++)if(this.balls[t].id.indexOf(e)>-1)return this.balls[t]},ge.prototype.setVisible=function(e,t){this.balls.forEach((function(i){i.setVisible(e,t)}))},ge.prototype.update=function(){this.balls.forEach((function(e){e.update()}))},ge.prototype.dispose=function(){this.balls.forEach((function(e){e.dispose()})),delete n.vertex2Ds[this.id]},ne.prototype.dispose=function(){n.clickLine==this.lineMesh&&(n.hoverLine=null,n.unselectLine());try{this.lineMesh.geometry.dispose(),this.lineMesh.parent.remove(this.lineMesh)}catch(e){return void console.error(e)}if(this.boldLine){var e=n.boldLines.indexOf(this.boldLine);this.boldLine.geometry.dispose(),this.boldLine.parent.remove(this.boldLine),n.boldLines.splice(e,1)}this.pullMesh&&(this.pullMesh.geometry.dispose(),this.pullMesh.parent.remove(this.pullMesh)),delete n.geometry3Ds[this.id]},ne.prototype.buildPullMesh=function(e){var t=this.points[1].clone().sub(this.points[0]);if(0==t.length()||0!=t.x&&0!=t.y)return console.log("buildPullMesh 两个点重合 先随意创建 "+this.id),this.pullMeshFake=!0,this.pullMesh=new THREE.Mesh,void this.lineMesh.add(this.pullMesh);this.pullMesh&&this.pullMesh.parent.remove(this.pullMesh),this.pullMeshFake=!1;var i=o.getPullGeo();this.pullMesh=new THREE.Mesh(i,O.lineMoveMats.default),this.pullMesh.frustumCulled=!1,this.pullMesh.renderOrder=m.a.pullMesh;var g=new THREE.Vector3(0,1,0),n=new THREE.Vector3(0,0,1),a=g.angleTo(e),A=g.clone().cross(e).normalize();this.pullMesh.quaternion.setFromAxisAngle(A,a);a=n.applyQuaternion(this.pullMesh.quaternion).angleTo(t);var r=(new THREE.Quaternion).setFromAxisAngle(e,a);return this.pullMesh.quaternion.premultiply(r),this.movePullMesh(),this.pullMesh.name="pullMesh_"+this.id,this.pullMesh.visible=!1,this.lineMesh.add(this.pullMesh),this.pullMesh},ne.prototype.setLenRuler=function(e){console.log("setLenRuler:"+e+" , "+this.id),e?(n.ruler&&n.ruler.line3d.setLenRuler(!1),this.ruler=new x.a({points:this.points}),this.ruler.line3d=this,n.ruler=this.ruler,this.ruler.update()):this.ruler?(this.ruler.remove(),this.ruler=n.ruler=null):n.ruler&&n.ruler.line3d.setLenRuler(!1)},ne.prototype.adjustPullAngle=function(e){if(this.pullMesh&&"panorama"==k.mode&&n.editing){if(2==n.floorExamingStep&&n.floorLineB&&this.pullMesh==n.floorLineB.pullMesh)var t=s.a.editor.spotPosInfo.camera.position;else t=s.a.player.position;var i,o,g=this.pullMesh.position,a=Math.asin((t.y-g.y)/t.distanceTo(g)),A=THREE.Math.degToRad(isMobile?30:20),r=this.points[0].clone().sub(this.points[1]);for(var C in r)if(0!=r[C]){i=C,o="x"==C?t.z-g.z>0?1:-1:t.x-g.x>0?-1:1;break}i&&(this.pullMesh.rotation[i]="restore"==e||a>A?0:o*(A-a))}},ne.prototype.movePullMesh=function(e){var t;this.pullMesh&&(e?("move"==e&&(e=this.pullMesh.position),t=C.a.getFootPoint(e,this.points[0],this.points[1])):t=this.points[0].clone().add(this.points[1]).multiplyScalar(.5),this.pullMesh.position.copy(t),"panorama"==k.mode&&(n.updateSize({mesh:this.pullMesh,smooth:"wallBtm"!=this.type}),"wallBtm"==this.type&&this.adjustPullAngle()))},ne.prototype.buildBoldLine=function(e){var t=o.createBoldLine(this.points,{mat:new THREE.MeshBasicMaterial({opacity:ifTest?.1:0,transparent:!0,depthTest:!1,color:"#39a2ff"}),type:"init",standPos:e&&e.standPos});return t.name="boldLine_"+this.id,n.boldLines.push(t),this.boldLine=t,t},ne.prototype.buildLineMesh=function(e){var t=[];return t.push(this.points[0].x,this.points[0].y,this.points[0].z),t.push(this.points[1].x,this.points[1].y,this.points[1].z),"columnBtm"==this.type?this.lineMesh=o.createFatLine(t,{material:O.lineMats.column}):"columnNoPull"==this.type?this.lineMesh=o.createFatLine(t,{material:O.lineMats.columnNoPull}):"window"==this.type||"door"==this.type?this.lineMesh=o.createFatLine(t,{material:O.lineMats.defaultOBj}):"wallBtm"==this.type?this.lineMesh=o.createFatLine(t,{material:O.lineMats.defaultBtm}):this.lineMesh=o.createFatLine(t,{material:O.lineMats.default}),this.lineMesh.name="lineMesh_"+this.id,(e||n.meshGroup).add(this.lineMesh),this.lineMesh},ne.prototype.updatePoints=function(e,t){this.points=[e,t],this.ruler&&(this.ruler.updatePoints(this.points),this.ruler.update())},ne.prototype.moveLineMesh=function(){var e=[];e.push(this.points[0].x,this.points[0].y,this.points[0].z),e.push(this.points[1].x,this.points[1].y,this.points[1].z),o.moveFatLine(this.lineMesh,e)},ne.prototype.moveBoldLine=function(e,t){var i=s.a.editor.scroller;n.dragInfo.state||i.roomFloorHeight&&i.roomFloorHeight.dragStart||i.roomCeilHeight.dragStart||i.objWidth.dragStart||i.objHeightOrDepth.dragStart?-1==n.delayChange.moveBoldLine.indexOf(this)&&n.delayChange.moveBoldLine.push(this):this.boldLine&&o.updateBoldLine(this.boldLine,this.points,e||"move",t)},ae.prototype.getLimit=function(){var e=1/0,t=-1/0;return this.CADobj.line.in3D.wallLines.forEach((function(i){e=Math.min(i.room.top,e),t=Math.max(i.room.bottom,t)})),{top:e,bottom:t}},ae.prototype.getPoints=function(e){var t,i;if("column"==this.type)t=this.CADobj.line.wallLine.room.top,i=this.CADobj.line.wallLine.room.bottom;else if(null==this.CADobj.origin.top){var o=this.getLimit();if("door"==this.type)i=o.bottom,t=Math.min(q.obj.door.height+o.bottom,o.top);else{var g=(o.bottom+o.top)/2,n=o.top-o.bottom,a=Math.min(n,q.obj.window.height);i=g-a/2,t=g+a/2}this.CADobj.origin.bottom=i,this.CADobj.origin.top=t}else t=this.CADobj.origin.top,i=this.CADobj.origin.bottom;var A=new THREE.Vector3(this.CADobj.points[0].x,t,this.CADobj.points[0].y),r=new THREE.Vector3(this.CADobj.points[1].x,t,this.CADobj.points[1].y),C=new THREE.Vector3(this.CADobj.points[0].x,i,this.CADobj.points[0].y),I=new THREE.Vector3(this.CADobj.points[1].x,i,this.CADobj.points[1].y);if("column"==this.type){var s=new THREE.Vector3(this.CADobj.points[2].x,t,this.CADobj.points[2].y),l=new THREE.Vector3(this.CADobj.points[3].x,t,this.CADobj.points[3].y),c=new THREE.Vector3(this.CADobj.points[2].x,i,this.CADobj.points[2].y),u=new THREE.Vector3(this.CADobj.points[3].x,i,this.CADobj.points[3].y);this.points=[C,I,c,u,A,r,s,l]}else this.points=[A,r,C,I];if("moveWithLine"==e){var d,h,p=this.line2d.CADlines[0];if(p.points[0].x==p.points[1].x?(d="x",h="x"):p.points[0].y==p.points[1].y?(d="y",h="z"):console.log("obj getPoints line斜线?"),d&&([A,r,C,I].forEach((function(e){e[h]=p.points[0][d]})),"column"==this.type)){var f=this.getDepth({getAxis:!0});[s,l,c,u].forEach((function(e){e[h]=p.points[0][d]+f}))}}},ae.prototype.buildFaceMesh=function(){var e=this.points[0].clone(),t=this.points[1].clone(),i=this.points[2].clone(),g=this.points[3].clone();return this.faceMesh=o.drawPlane(i,g,t,e,O.wallMats.selected),this.faceMesh.name="faceMesh_"+this.id,this.faceMesh.visible=!1,this.faceMesh.frustumCulled=!1,n.meshGroup.add(this.faceMesh),"column"==this.type?this.faceNormal=new THREE.Vector3(0,1,0):(this.line2d.normalVec||(this.line2d.normalVec=K(this.line2d.CADlines[0])),this.faceNormal=new THREE.Vector3(this.line2d.normalVec.x,0,this.line2d.normalVec.y)),this.faceMesh},ae.prototype.moveVertical=function(e,t,i){var o,g,a=this.getLimit();return a.height=.05,"top"==i?(o=this.points[0].y,(g=null!=e?e+t:o+t)>a.top?g=a.top:g<this.points[2].y+a.height&&(g=this.points[2].y+a.height),this.points[0].y=this.points[1].y=g,this.CADobj.origin.top=g):(o=this.points[2].y,"door"==this.type||(g=null!=e?e+t:o+t)<a.bottom?g=a.bottom:g>this.points[0].y-a.height&&(g=this.points[0].y-a.height),this.points[2].y=this.points[3].y=g,this.CADobj.origin.bottom=g),Math.abs(g-o)>1e-4&&(this.update3D(),n.CAD.dispatcher.trigger("meshChangeSize",this.CADobj,"top"==i?{top:this.CADobj.origin.top}:{bottom:this.CADobj.origin.bottom}),n.selectedObj==this&&s.a.editor.scroller.objHeightOrDepth.setValue(100*this.getHeight(),!0)),o},ae.prototype.buildLine3d=function(){var e={},t=this.points[0].clone(),i=this.points[1].clone(),o=this.points[2].clone(),g=this.points[3].clone();if("column"==this.type){var a=this.points[4].clone(),A=this.points[5].clone(),r=this.points[6].clone(),C=this.points[7].clone(),I="columnNoPull";e.botOut=new ne("3d_"+J("line3d"),this.id,o,g,"columnBtm"),e.botLeft=new ne("3d_"+J("line3d"),this.id,t,o,"columnBtm"),e.botRight=new ne("3d_"+J("line3d"),this.id,i,g,"columnBtm"),e.topOut=new ne("3d_"+J("line3d"),this.id,r,C,I),e.topLeft=new ne("3d_"+J("line3d"),this.id,a,r,I),e.topRight=new ne("3d_"+J("line3d"),this.id,A,C,I),e.sideOutLeft=new ne("3d_"+J("line3d"),this.id,r,o,I),e.sideOutRight=new ne("3d_"+J("line3d"),this.id,C,g,I),e.sideInLeft=new ne("3d_"+J("line3d"),this.id,a,t,I),e.sideInRight=new ne("3d_"+J("line3d"),this.id,A,i,I)}else e.top=new ne("3d_"+J("line3d"),this.id,t,i,this.type),e.left=new ne("3d_"+J("line3d"),this.id,t,o,this.type),e.right=new ne("3d_"+J("line3d"),this.id,i,g,this.type),"window"==this.type&&(e.bottom=new ne("3d_"+J("line3d"),this.id,o,g,this.type));for(var s in e)if(n.meshGroup.add(e[s].buildBoldLine(n)),"columnNoPull"!=e[s].type)e[s].buildPullMesh(this.faceNormal);return e},ae.prototype.update3D=function(e){for(var t in this.getPoints(e),"column"==this.type?(this.childLine3D.botOut.updatePoints(this.points[2],this.points[3]),this.childLine3D.botLeft.updatePoints(this.points[0],this.points[2]),this.childLine3D.botRight.updatePoints(this.points[1],this.points[3]),this.childLine3D.topOut.updatePoints(this.points[6],this.points[7]),this.childLine3D.topLeft.updatePoints(this.points[4],this.points[6]),this.childLine3D.topRight.updatePoints(this.points[5],this.points[7]),this.childLine3D.sideOutLeft.updatePoints(this.points[6],this.points[2]),this.childLine3D.sideOutRight.updatePoints(this.points[7],this.points[3]),this.childLine3D.sideInLeft.updatePoints(this.points[4],this.points[0]),this.childLine3D.sideInRight.updatePoints(this.points[5],this.points[1])):(this.childLine3D.top.updatePoints(this.points[0],this.points[1]),this.childLine3D.bottom&&this.childLine3D.bottom.updatePoints(this.points[2],this.points[3]),this.childLine3D.left.updatePoints(this.points[0],this.points[2]),this.childLine3D.right.updatePoints(this.points[1],this.points[3])),o.movePlane(this.faceMesh,this.points[2],this.points[3],this.points[1],this.points[0]),this.childLine3D)this.childLine3D[t].moveLineMesh(),this.childLine3D[t].movePullMesh(),this.childLine3D[t].moveBoldLine();"moveWithLine"!=e&&("door"==this.type||"window"==this.type?this.CADobj.line.in3D.wallLines.forEach(function(e){e.updateWallMeshForObj({type:"moveSingleObj",obj:this})}.bind(this)):this.CADobj.line.wallLine.updateWallMeshForObj({type:"moveSingleObj",obj:this}))},ae.prototype.moveWithLine=function(){this.update3D("moveWithLine")},ae.prototype.setSelected=function(e){if(e){if(!this.visible)return;for(var t in this.childLine3D)"columnNoPull"==this.childLine3D[t].type?this.childLine3D[t].lineMesh.material=O.lineMats.columnNoPullselected:this.childLine3D[t].lineMesh.material=O.lineMats.selected,this.childLine3D[t].pullMesh&&(this.childLine3D[t].pullMesh.visible=!0,n.updateSize({mesh:this.childLine3D[t].pullMesh,smooth:!0}),n.pullsShowing.push(this.childLine3D[t].pullMesh));this.faceMesh.visible=!0}else{for(var t in this.childLine3D)"columnBtm"==this.childLine3D[t].type?this.childLine3D[t].lineMesh.material=O.lineMats.column:"columnNoPull"==this.childLine3D[t].type?this.childLine3D[t].lineMesh.material=O.lineMats.columnNoPull:this.childLine3D[t].lineMesh.material=O.lineMats.defaultBtm,this.childLine3D[t].pullMesh&&(this.childLine3D[t].pullMesh.visible=!1);this.faceMesh.visible=!1}},ae.prototype.getWidth=function(){var e=this.CADobj.points;return e[0].x==e[1].x?Math.abs(e[0].y-e[1].y):Math.abs(e[0].x-e[1].x)},ae.prototype.getHeight=function(){return this.CADobj.origin.top-this.CADobj.origin.bottom},ae.prototype.changeSize=function(e,t){if("Width"==t){this.getWidth();n.CAD.dispatcher.trigger("meshChangeSize",this.CADobj,{width:e})}else if("HeightOrDepth"==t){if("column"!=this.type){var i=this.getHeight(),o=this.getLimit(),g=o.top-o.bottom;if(e>g&&(e=g),e==i)return;if("window"==this.type){var a,A,r=(this.points[2].y+this.points[0].y)/2;r-e/2<o.bottom?A=(a=o.bottom)+e:a=r+e/2>o.top?(A=o.top)-e:(A=r+e/2)-e,this.CADobj.origin.bottom=a}else A=o.bottom+e;return this.CADobj.origin.top=A,n.CAD.dispatcher.trigger("meshChangeSize",this.CADobj,{top:this.CADobj.origin.top,bottom:this.CADobj.origin.bottom,height:e}),this.update3D(),!0}this.getDepth();n.CAD.dispatcher.trigger("meshChangeSize",this.CADobj,{thickness:e})}},ae.prototype.dispose=function(){for(var e in this.childLine3D)this.childLine3D[e].dispose();this.faceMesh.geometry.dispose(),this.faceMesh.parent.remove(this.faceMesh),delete n.allOtherObjs[this.id];var t=n[this.type+"s"].indexOf(this);n[this.type+"s"].splice(t,1);t=this.line2d.otherobjs.indexOf(this);this.line2d.otherobjs.splice(t,1),this.CADobj.line.in3D.wallLines.forEach(function(e){var t=e.otherobjs.indexOf(this);e.otherobjs.splice(t,1),e.updateWallMeshForObj()}.bind(this))},ae.prototype.setVisible=function(e,t){if(t&&t.autoJudge){var i=t&&t.room||n.CADrooms[n.atRoom];if(e=!1,null!=i)if("column"==this.type){if(i.indexOf(this.CADobj.line)>-1){if(this.visible)return;e=!0}}else for(var o=0;o<this.line2d.CADlines.length;o++){var g=this.line2d.CADlines[o];if(i.indexOf(g)>-1){if(this.visible)return;e=!0}}}for(var o in this.childLine3D)this.childLine3D[o].lineMesh.visible=e,this.childLine3D[o].boldLine&&(this.childLine3D[o].boldLine.visible=e);this.visible=e},Ae.prototype=Object.create(ae.prototype),re.prototype=Object.create(ae.prototype),Ce.prototype=Object.create(ae.prototype),Ce.prototype.getDepth=function(e){var t,i=this.CADobj.points;return t=i[0].x==i[2].x?i[2].y-i[0].y:i[2].x-i[0].x,e&&e.getAxis?t:Math.abs(t)},Ie.prototype.initEvent=function(){this.domElement.addEventListener("pointermove",this.handleInputMove.bind(this)),this.domElement.addEventListener("pointerdown",this.handleInputStart.bind(this)),document.addEventListener("pointerup",this.handleInputEnd.bind(this)),this.domElement.addEventListener("pointerup",this.handleInputEnd.bind(this)),this.domElement.addEventListener("mouseover",this.onMouseOver.bind(this)),this.domElement.addEventListener("mouseout",this.onMouseOut.bind(this))},Ie.prototype.handleInputStart=function(e){this.mouseDown=!0;var t=g.handelPadding(e.clientX,e.clientY,this.domElement);g.convertScreenPositionToNDC(t.x,t.y,this.mouse,this.domElement),g.convertScreenPositionToNDC(t.x,t.y,this.mouseAtMouseDown,this.domElement),this.mouseCouldBeClickToMove=!0,n.handleDragStart(this)},se.prototype.handleDragStart=function(e){"wallDesign"==s.a.editor.atPanel&&("panorama"==k.mode?n.hoverPull?(n.unselectBall(),n.dragLineBegin(e)):n.intersectBallPlane?n.dragBallBegin(null,e):n.clickBall&&n.clickBall==n.hoverBall?n.dragBallBegin("ball",e):n.transformControls&&n.transformControls.onPointerDown():n.transformControls&&n.transformControls.onPointerDown())},Ie.prototype.handleInputMove=function(e){var t=g.handelPadding(e.clientX,e.clientY,this.domElement);g.convertScreenPositionToNDC(t.x,t.y,this.mouse,this.domElement),this.mouseAtMouseDown.distanceTo(this.mouse)>.08&&(this.mouseCouldBeClickToMove=!1),n.handleDragging(this)},se.prototype.handleDragging=function(e){if("wallDesign"==s.a.editor.atPanel&&n.dragInfo.state&&n.dragInfo.atPlayer==e){var t;switch(this.dragInfo.state){case"dragWall":t={meshes:[this.getMoveLenPlane],fuc:"dragWall"};break;case"dragBall":t={meshes:[this.getMoveLenPlane],fuc:"dragBall"};break;case"dragObj":t={meshes:[this.getMoveLenPlane],fuc:"dragObjLine"}}if(t){var i=(e=e||k).getMouseIntersect(null,t.meshes);if(!i)return void d.a.info("!intersect???");this[t.fuc](i.point)}}this.transformControls&&this.transformControls.onPointerMove()},Ie.prototype.handleInputEnd=function(e){this.mouseDown&&(this.mouseDown=!1,n.handleDragEnd()||this.mouseCouldBeClickToMove&&n.handleClickEnd(this))},se.prototype.handleClickEnd=function(e,t,i){if(this.transformControls&&this.transformControls.onPointerUp(),"wallDesign"==s.a.editor.atPanel){if(this.floorExamingStep||(isMobile?($('.tmpl-wallDesign .layout[data-type="main"]').removeClass("hide"),$(".tmpl-wallDesign .layout#roomProp").addClass("hide")):this.selectRoom&&(this.CAD.dispatcher.trigger("floorHoverOut",this.selectRoom.CADroom),this.selectRoom.setSelectState(!1))),this.objCursorType){if(k.flying)return;var o=[],g=this.rooms[this.atRoom];if(!g)return;g.CADroom.forEach((function(e){0==e.wallLine.otherobjs.length?o.push(e.wallLine.wallMesh):o.push(e.wallLine.createNoObjWall())}));var a=new THREE.Raycaster,A=e.camera;A.updateMatrixWorld();var r=e.mouse.clone();r.x+=32/e.domElement.clientWidth;var C=new THREE.Vector3(r.x,r.y,-1).unproject(A),I=new THREE.Vector3(r.x,r.y,1).unproject(A).sub(C).setY(0).normalize();a.set(k.position,I);var l=a.intersectObjects(o);if(l.length>0)if("overlay"==this.objCursorType)n.addPlane(l[0]),n.objCursorType=null;else{var c={x:l[0].point.x,y:l[0].point.z};console.log(c),this.CAD.dispatcher.trigger("regMesh",this.objCursorType,c,{x:k.position.x,y:k.position.z})}else console.log("!!!n.length");return o.forEach((function(e){e.isNoObjWall&&e.geometry.dispose()})),!0}if(this.floorExamingStep)return this.hoverLine?(1==this.floorExamingStep?this.switchFloorLine(this.hoverLine,this.lineHoverPoint):this.floorLineA.movePullMesh(this.lineHoverPoint),!0):void 0;if(this.hoveringPlane)return this.clickOverlay(this.hoveringPlane),!0;if(n.selectLine())return!0;//!0代表不可以走动
- if(isMobile&&n.clickLine)return!1;n.unselectLine(),n.selectObj(null)}},Ie.prototype.onMouseOver=function(e){this.containsMouse=!0,!this.mouseDown||0!==e.which&&0!==e.buttons||(this.mouseDown=!1)},Ie.prototype.onMouseOut=function(e){this.containsMouse=!1},Ie.prototype.getMouseIntersect=function(e,t){return r.a.getMouseIntersect(this.camera,t,e||this.mouse.clone())},se.prototype.checkIntersect=(X=function(e,t,i){var o=e.getMouseIntersect(null,t);if(o)return n[i](o),o;n[i](null)},function(e){var t;if(e=e||k,!this.objCursorType&&"wallDesign"==s.a.editor.atPanel&&!n.dragInfo.state&&("panorama"==k.mode||e instanceof Ie)){if(this.floorExamingStep)return 2==this.floorExamingStep?e==k?(t=X(e,[this.floorLineA.pullMesh],"updateIntersectPull"))||(t=X(e,[this.floorLineA.boldLine],"updateIntersectLine")):(t=X(e,[this.floorLineB.pullMesh],"updateIntersectPull"))||(t=X(e,[this.floorLineB.boldLine],"updateIntersectLine")):t=X(e,n.examFloorBoldLines,"updateIntersectLine"),t;if(!t&&n.selectedObj&&(t=X(e,n.pullsShowing,"updateIntersectPull")),!t&&n.clickLine){var i=n.getLine3dByFatLine(n.clickLine).pullMesh;t=X(e,[i],"updateIntersectPull")}return t||(t=X(e,n.boldLines,"updateIntersectLine")),t?k.reticule.visible=!1:this.objCursorType||(k.reticule.visible=!0),t}}),Ie.prototype.ifMiniViewChanged=function(){var e,t=this.camera;return e=!this.previousState||!(this.mouse.equals(this.previousState.mouse)&&k.mode==this.previousState.mode&&k.zoomLevel==this.previousState.zoomLevel&&t.projectionMatrix.equals(this.previousState.projectionMatrix)&&t.position.equals(this.previousState.position)&&t.quaternion.equals(this.previousState.quaternion)),this.previousState={mouse:this.mouse.clone(),mode:k.mode,zoomLevel:k.zoomLevel,projectionMatrix:t.projectionMatrix.clone(),position:t.position.clone(),quaternion:t.quaternion.clone()},e},Ie.prototype.decideIntersect=function(){this.containsMouse&&!this.mouseDown&&this.ifMiniViewChanged()&&n.checkIntersect(this)},se.prototype.reBuild=function(){$("#roomList .room-preview-rooms .swiper-wrapper").html(""),this.unselectAll(),console.log("reBuild");var e=this.CAD.getAttr();for(var t in null!=e.top&&(this.top=e.top),null!=e.bottom&&(this.bottom=e.bottom,k.model.panos.list.forEach((function(e){e.marker.position.y=n.bottom+.01}))),this.boldLines.forEach((function(e){e.geometry.dispose()})),this.wallMeshes.forEach((function(e){e.geometry.dispose()})),this.geometry3Ds)this.geometry3Ds[t].lineMesh.geometry.dispose(),this.geometry3Ds[t].pullMesh&&this.geometry3Ds[t].pullMesh.geometry&&this.geometry3Ds[t].pullMesh.geometry.dispose();for(var t in this.allOtherObjs)this.allOtherObjs[t].faceMesh.geometry.dispose();for(var t in this.rooms)this.rooms[t].floorMesh.geometry.dispose();this.dollLabels.forEach((function(e){e.remove()})),this.dollLabels=[],this.planLabels.forEach((function(e){e.remove()})),this.planLabels=[],this.meshGroup.parent.remove(this.meshGroup),this.meshGroup=new THREE.Object3D,k.model.add(this.meshGroup),this.meshGroup.name="designMeshGroup",this.vertex2Ds={},this.geometry2Ds={},this.geometry3Ds={},this.wallMeshes=[],this.boldLines=[],this.ballMeshes=[],this.pullsShowing=[],this.objFaceMeshes=[],this.doors=[],this.windows=[],this.columns=[],this.allOtherObjs={},this.buildAll(),this.meshGroup.add(this.getMoveLenPlane),this.updateRoomDisplay({state:"forceToUpdate"}),this.initHouseInfo(),this.updateSkyboxGeo()},se.prototype.initMaterials=function(e){e.lineMats=o.getlineMat(),e.wallMats=o.getwallMat(),e.ballMats=o.getballMat(),e.lineMoveMats=o.getLineMoveMat()},se.prototype.afterReloadModel=function(){O.wallMats.panoMat=k.model.chunks[0].materialInside,O.wallMats.panoMat.polygonOffsetFactor=-.75,O.wallMats.panoMat.polygonOffsetUnits=-4,this.atRoom=null,$("#cad canvas").remove(),this.CAD=this.initCAD({floorJson:Store.floorJson}),this.CADrooms=this.CAD.getFace(),this.reBuild(),this.cadNeedResize=!0,this.leaveMode=null,this.switchview(),this.editing?this.enter():this.meshGroup.visible=!1},se.prototype.addRoomPano=function(e,t){var i=$("#roomList .room-preview-image .swiper-wrapper");if(!(i.find("a[data-name='"+e.id+"']").length>0)){var o=c.a.prefix+"images/images"+u.a.projectNum+"/pan/low/"+e.id+".jpg",g=$('<a class="swiper-slide" data-name='+e.id+'><img src="'+o+'"><span>'+de(e)+"</span>");g.on("click",(function(e){var t=$(e.currentTarget).attr("data-name");k.flyToPano({pano:k.model.panos.get(t)})})),(t&&t==e||k.currentPano==e)&&g.addClass("active"),i.append(g)}},se.prototype.initHouseInfo=function(){for(var e=this.CAD.getLabel(),t=["deg"],i=0;i<t.length;i++){var o,g=t[i];switch(g){case"deg":o="Angle",$(".wallDesign .moveRing").css("transform","rotate("+(e[g]||0)+"deg)")}$('.wallDesign input[data-type="'+o+'"]').val(e[g]||0)}},se.prototype.initEvent=function(){if(isMobile)$("#lineProp button").on("click",(function(){n.unselectLine()})),$("#architecture li").on("click",(function(e){var t=$(e.currentTarget).attr("attr-type"),i=n.getLine3dByFatLine(n.clickLine).pullMesh,o={x:i.position.x,y:i.position.z};n.CAD.dispatcher.trigger("regMesh",t,o,{x:k.position.x,y:k.position.z})})),$('#objProp button[attr-type="del"]').on("click",(function(){var e=n.selectedObj;n.CAD.dispatcher.trigger("delMesh",e.CADobj),n.selectObj(null),e.dispose()})),$('#objProp button[attr-type="done"]').on("click",(function(){n.selectObj(null)})),$(".tmpl-wallDesign .layout#roomProp button").on("click",(function(){$('.tmpl-wallDesign .layout[data-type="main"]').removeClass("hide"),$(".tmpl-wallDesign .layout#roomProp").addClass("hide")}));else{var e=$('.wallDesign .operation [data-type="goLast"]'),t=$('.wallDesign .operation [data-type="goNext"]');e.attr("title",R.a.get("上一步")),t.attr("title",R.a.get("下一步")),e.on("click",(function(){n.CAD.revokeState(),n.reBuild()})),t.on("click",(function(){n.CAD.reductionState(),n.reBuild()})),$("#wallDesignProp a.close").on("click",(function(e){$(e.target).parent().parent().addClass("atRight"),$.contains($("#objProp")[0],e.target)?n.selectObj(null):$.contains($("#roomProp")[0],e.target)?(n.CAD.dispatcher.trigger("floorHoverOut",n.selectRoom.CADroom),n.selectRoom.setSelectState(!1),n.exitFloorHeightExam()):$.contains($("#overlayProp")[0],e.target)&&n.closeOverlayPanel()}));var i=$(".wallDesign .moveRing"),o=function(e){var t=C.a.getOffset("left",i[0])+i.width()/2,o=C.a.getOffset("top",i[0])+i.height()/2,g=new THREE.Vector3(t,o,0),n=new THREE.Vector3(e.clientX,e.clientY,0),a=n.clone().sub(g),A=new THREE.Vector3(0,-1,0),r=a.angleTo(A);r=Math.round(180*r/Math.PI),n.x<g.x&&(r=360-r),i.css("transform","rotate("+r+"deg)"),$('.wallDesign input[data-type="Angle"').val(r),$('.wallDesign input[data-type="Angle"').change()},g=function e(){window.removeEventListener("mousemove",o),window.removeEventListener("mouseup",e)};i.find(".ball").on("mousedown",(function(e){window.addEventListener("mousemove",o),window.addEventListener("mouseup",g)}));$(".wallDesign input").on("change",function(e){var t=parseFloat(e.target.value);if(!isNaN(t)){var o=$(e.target).attr("data-type");"Angle"==o&&(t=Math.clamp(t,0,360)),t=Math.round(t),e.target.value=t;var g={};switch(o){case"Angle":g.deg=t,i.css("transform","rotate("+t+"deg)")}this.CAD.addLabel(g)}}.bind(this)),this.initHouseInfo(),$("#reUseWorldBtm").on("click",(function(){n.selectRoom.reUseWorld("bottom"),$("#reUseWorldBtm").addClass("hide")}))}var a=function(e,t){v.default.checkLen.project_name($("#roomName"),$('#roomProp li[data-name="roomName"] .itemTitle'),15,t),isMobile?n.rooms[n.atRoom].changeName(e.target.value):n.selectRoom.changeName(e.target.value)};$("input#roomName").on("change",(function(e){a(e,!0),n.needSave=!0})),$("input#roomName").on("input",a),$("#objProp button.cancel").on("click",(function(e){n.CAD.dispatcher.trigger("delMesh",n.selectedObj.CADobj);var t=n.selectedObj;n.selectObj(null),t.dispose()})),$("#roomFloorHeightExam button.submit").on("click",function(){this.switchview(),k.FlyToMode("panorama",this.startExamFloorHeight.bind(this,"room"))}.bind(this)),$("#roomFloorHeightExam button.cancel").on("click",this.exitFloorHeightExam.bind(this)),$(".toolMid .midBottom .confirmSnap").on("click",function(){1==this.floorExamingStep?this.examFloorHeightStep2():2==this.floorExamingStep&&this.confirmFloorExam()}.bind(this))},se.prototype.startExamFloorHeight=function(e){if(!this.floorExamingStep&&!k.flying)if(this.atRoom){if("room"!=e)this.rooms[this.atRoom].useWorldBottom,this.examFloorType="world",$("#floorHeightExam button.submit").addClass("hide"),$("#floorHeightExam button.cancel").removeClass("hide");else{if(this.atRoom!=this.selectRoom.id)return void(this.selectRoom.gotoCenter({dontSelect:!0,func:n.startExamFloorHeight.bind(n,"room")})||s.a.gui.showAskBox(R.a.get("当前房间无法进入")));this.examFloorType="room",$("#roomFloorHeightExam button.submit").addClass("hide"),$("#roomFloorHeightExam button.cancel").removeClass("hide")}if($("#wallSwitchView").addClass("hide"),$("#roomList").addClass("hide"),$("#wallDesignProp li[data-name='setting']").addClass("unable"),$(".wallDesign .tail").addClass("unable"),s.a.gui.permitTranMode(!1),!s.a.editor.setSpotPos){k.cameraControls.controls.panorama.insideLookLimitDown=-70,this.unselectAll(),this.meshGroup.visible=!1;var t,i=this.rooms[this.atRoom].CADroom.map((function(e){var t=e.wallLine.boldLine;return t.material.side=THREE.DoubleSide,t})),o=new THREE.Raycaster,g=this.rooms[this.atRoom].bottom;o.set(k.position.clone().setY(g),k.getDirection().setY(0).normalize());var a=o.intersectObjects(i);if(a.length>0){var A=this.geometry3Ds[a[0].object.name.split("boldLine_")[1]];this.selectFloorLine=t=function(e){if(!(e.points[0].distanceTo(e.points[1])<.5))return e;for(var t=[],i=[],o=n.rooms[n.atRoom].CADroom.map((function(e){return e.wallLine.childLine3D.bottom})),g=o.indexOf(e),a=1;a<o.length/2;a++){if(a%2!=0)var A=o[(g+a/2+.5)%o.length];else A=o[(g-a/2+o.length)%o.length];if(t.indexOf(A)>-1){var r=Math.max.apply(null,i),C=i.indexOf(r);return t[C]}if(A.points[0].distanceTo(A.points[1])>=.5)return A;t.push(A)}}(A),this.selectFloorLine.movePullMesh();var r=this.selectFloorLine.pullMesh.position,C=this.CAD.getFaceCamera(this.atRoom).filter(function(e){var t=r.clone().sub(e.position).setY(0);o.set(e.position.clone().setY(g),t.clone().normalize()),o.far=t.length();var n=o.intersectObjects(i);return!n.length||n[0].object==this.selectFloorLine.boldLine}.bind(this));this.examGoodSightPanos=C.map((function(e){return e.id}))}else console.error("没找到");i.forEach((function(e){e.material.side=THREE.FrontSide})),this.floorExamingStep=2,this.examFloorGroup=new THREE.Object3D,k.model.add(this.examFloorGroup),this.floorLineA=new ne("examFloorA_"+t.id,t.parentID,t.points[0].clone(),t.points[1].clone(),t.type,this.examFloorGroup),this.floorLineB=new ne("examFloorB_"+t.id,t.parentID,t.points[0].clone(),t.points[1].clone(),t.type,this.examFloorGroup),[this.floorLineA,this.floorLineB].forEach(function(e){e.buildBoldLine(),e.buildPullMesh(new THREE.Vector3(0,1,0)),e.movePullMesh(this.selectFlootPoint),e.boldLine.fatLine=e.lineMesh,e.pullMesh.visible=!0}.bind(this)),this.examFloorGroup.add(this.floorLineA.boldLine),this.examFloorGroup.add(this.floorLineA.pullMesh),this.examFloorGroup.add(this.floorLineB.boldLine),this.examFloorGroup.add(this.floorLineB.pullMesh),$(".toolMid .midBottom .confirmSnap").text(R.a.get("确定计算地面高度")).removeClass("hide"),$("#addSpot").css("cursor","default"),s.a.gui.showInfo(R.a.get("请将左右分屏中的线条都移动到相同位置,例如墙角边缘")),P.a.editType="designWall",P.a.enterPosView(),this.floorLineB.boldLine.layers.set(S.a.SubScreen),this.floorLineB.lineMesh.layers.set(S.a.SubScreen),this.floorLineB.pullMesh.layers.set(S.a.SubScreen),this.floorLineB.moveBoldLine("move",s.a.editor.spotPosInfo.camera.position),this.floorLineB.adjustPullAngle(),this.updateSize({mesh:this.floorLineB.pullMesh})}}else s.a.gui.showInfo(R.a.get("请先走到一个房间才能设置"))},se.prototype.computeFloorHeight=function(){var e=s.a.editor.spotPosInfo,t=this.geometry3Ds[this.floorLineA.id.split("examFloorA_")[1]],i=t.points[0].clone().add(t.points[1]).multiplyScalar(.5),o={dontRestric:!0};if(this.floorLineA.points[0].z==this.floorLineA.points[1].z)o.A=k.currentPano.position.clone().setX(i.x),o.B=e.panoB.position.clone().setX(i.x),o.p1=this.floorLineA.points[0].clone().setX(i.x),o.p2=this.floorLineB.points[0].clone().setX(i.x);else{if(this.floorLineA.points[0].x!=this.floorLineA.points[1].x)return void console.warn("why?????????");o.A=k.currentPano.position.clone().setZ(i.z),o.B=e.panoB.position.clone().setZ(i.z),o.p1=this.floorLineA.points[0].clone().setZ(i.z),o.p2=this.floorLineB.points[0].clone().setZ(i.z)}var g=e.markSpotA.computeHotPos2(o);return console.log(g),console.log("地面高度:"+g.y),g.y<-2.6?g.y=-2.6:g.y>-.6&&(g.y=-.6),s.a.editor.markTag.rePos(g),g},se.prototype.rePlaceFloorLine=function(){var e,t=s.a.editor.markTag.position;e=this.floorLineA.points[0].z==this.floorLineA.points[1].z?"z":"x",[this.floorLineA,this.floorLineB].forEach(function(i){var o=i.points[0].clone();o.setY(t.y),o[e]=t[e];var g=i.points[1].clone();g.setY(t.y),g[e]=t[e],i.updatePoints(o,g),i.movePullMesh("move"),i.moveLineMesh(),i.moveBoldLine("move",i==this.floorLineB&&s.a.editor.spotPosInfo.camera.position)}.bind(this))},se.prototype.confirmFloorExam=function(){if(2==this.floorExamingStep){var e,t,i=this.wallLines[this.floorLineA.parentID],o=this.computeFloorHeight();console.log("之前 x "+this.floorLineA.points[0].x+" y "+this.floorLineA.points[0].z),console.log("原始 x "+i.CADline.points[0].x+" y "+i.CADline.points[0].y),this.floorLineA.points[0].z==this.floorLineA.points[1].z?(e="y",t=o.z-i.CADline.points[0][e]):(e="x",t=o.x-i.CADline.points[0][e]),"room"==this.examFloorType?this.selectRoom.useWorldBottom=!1:this.rooms[this.atRoom].useWorldBottom||this.rooms[this.atRoom].reUseWorld("Bottom"),console.log("最终地面高度:"+o.y),this.changeHeight("bottom",o.y,{dontTranValue:!0,room:"room"==this.examFloorType&&this.selectRoom}),console.log("移动距离"+t),this.CAD.dispatcher.trigger("moveLine",i.CADline,e,0),this.CAD.dispatcher.trigger("moveLine",i.CADline,e,t),this.CAD.dispatcher.trigger("lineOperEnd",i.CADline),setTimeout((function(){console.log("之后 x "+i.CADline.points[0].x+" y "+i.CADline.points[0].y)}),200),s.a.gui.showInfo(R.a.get("地面高度校准完毕,请继续修改其他墙壁位置")),"room"==this.examFloorType&&$("#reUseWorldBtm").removeClass("hide"),this.exitFloorHeightExam()}},se.prototype.exitFloorHeightExam=function(){if(this.floorExamingStep){k.flyingToTag=!1;var e=s.a.editor;e.markTag&&(e.markTag.markGroup&&(e.markTag.markGroup.remove(),e.markTag.markGroup=null),e.markTag.remove(),e.markTag=null),P.a.exitHotPosEdit(),$(".toolMid .midBottom .confirmSnap").addClass("hide"),$("#wallSwitchView").removeClass("hide"),"room"==this.examFloorType?($("#roomFloorHeightExam button.submit").removeClass("hide"),$("#roomFloorHeightExam button.cancel").addClass("hide")):($("#floorHeightExam button.submit").removeClass("hide"),$("#floorHeightExam button.cancel").addClass("hide")),$("#roomList").removeClass("hide"),$("#addSpot").css("cursor",""),$(".wallDesign .tail").removeClass("unable"),$("#wallDesignProp li[data-name='setting']").removeClass("unable"),s.a.gui.permitTranMode(!0),this.unselectAll(),this.meshGroup.visible=!0,this.hoverPull=null,2==this.floorExamingStep&&(this.floorLineA.dispose(),this.floorLineB.dispose()),k.model.remove(this.examFloorGroup),this.floorLineA=this.floorLineB=this.selectFloorLine=this.examFloorGroup=null,T.a.cancelById(E.a.freeze.wallLineShine),O.lineMats.defaultBtm.uniforms.opacity.value=1,k.cameraControls.controls.panorama.insideLookLimitDown=-50,s.a.editor.setSpotPos=!1,this.floorExamingStep=0,this.updateAllSize()}},se.prototype.initCAD=function(e){var t=this,i=$('<canvas id="wallCanvas"></canvas>');$("#cad").append(i);var o,g,A=Object(a.a)(i[0],e.floorJson,e.historyBtnFuc,k.model.panos.list);o=i[0],g=A,isMobile||document.querySelector("#architecture").addEventListener("click",(function(e){e.stopPropagation();for(var t,i=e.target;i!==this&&!(t=i.getAttribute("attr-type"));)i=i.parentNode;function n(e){i.classList.remove("active"),document.documentElement.style.cursor="inherit",g.enable(),g.trigger("regMeshEnd"),this.removeEventListener("click",n),o.removeEventListener("click",a)}function a(e){g.addMesh(t,{x:e.offsetX+16,y:e.offsetY+16}),this.removeEventListener("click",a)}t&&(this.__actove_dom&&this.__actove_dom.classList.remove("active"),i.classList.add("active"),this.__actove_dom=i,o.style.cursor="url("+gremote+"/pro/images/cad_"+t+".png),auto",g.prohibit(),g.trigger("readyRegMesh",t),document.documentElement.removeEventListener("click",document.documentElement.clickHandle),o.removeEventListener("click",o.clickHandle),document.documentElement.addEventListener("click",n),o.addEventListener("click",a),document.documentElement.clickHandle=n,o.clickHandle=a)})),isMobile||A.hideLabel();var r=$('.wallDesign .operation [data-type="goLast"]'),C=$('.wallDesign .operation [data-type="goNext"]');r.addClass("unable"),C.addClass("unable"),isMobile?$('.tmpl-wallDesign [data-name="wallDesign"] button[type="submit"]').addClass("unable"):$(".wallDesign .tail button.submit").addClass("unable"),this.needSave=!1,A.listen("stateChange",(function(e){var t=e.revoke,i=e.reduction;t?(r.removeClass("unable"),n.needSave=!0,isMobile?$('.tmpl-wallDesign [data-name="wallDesign"] button[type="submit"]').removeClass("unable"):$(".wallDesign .tail button.submit").removeClass("unable")):(r.addClass("unable"),n.needSave=!1,isMobile?$('.tmpl-wallDesign [data-name="wallDesign"] button[type="submit"]').addClass("unable"):$(".wallDesign .tail button.submit").addClass("unable")),i?C.removeClass("unable"):C.addClass("unable")})),this.roomNameVisCon=new p.a({$elem:$('#roomProp .switch[data-name="nameDisplay"]'),fuc:function(e){var t=isMobile?n.rooms[n.atRoom]:n.selectRoom;n.CAD.dispatcher.trigger("changeFaceAttr",t.id,{showName:e}),t.showName=!!e,"dollhouse"!=k.modeTran.split("-")[1]&&(k.flyoutTarget=t.dollLabel.position,s.a.gui.modeChange.dollhouse()),t.setLabelText()}}),this.areaVisCon=new p.a({$elem:$('#roomProp .switch[data-name="areaDisplay"]'),fuc:function(e){var t=isMobile?n.rooms[n.atRoom]:n.selectRoom;n.CAD.dispatcher.trigger("changeFaceAttr",t.id,{showArea:e}),t.showArea=!!e,"floorplan"!=k.modeTran.split("-")[1]&&(k.flyoutType="designWall",s.a.gui.modeChange.floorplan()),t.setLabelText()}}),A.listen("changeCameraFace",(function(e,i){var o=i.newFace,g=i.oldFace;g&&g.id==n.atRoom?$("#roomList .room-preview-image .swiper-wrapper").find('a.swiper-slide[data-name="'+e.id+'"]').remove():o&&(n.atRoom||e!=k.currentPano||n.updateRoomDisplay(),isMobile||o.id==n.atRoom&&n.addRoomPano(e),e.marker.position.y=t.rooms[o.id].bottom+.05);if(!o&&g&&0==n.CAD.getFaceCamera(g.id).length){if(!n.rooms[g.id])return;n.warnRooms([n.rooms[g.id]]),s.a.gui.showInfo(R.a.get("房间相机点数为0"))}})),A.listen("changeFaceAttr",(function(e){var t=e.face,i=e.area,o=e.position,g=(e.name,function(){try{var e=n.rooms[t.id];e.setLabelPos({roomCenter:o}),"panorama"==k.mode&&null!=e.area||e.setLabelText({area:i})}catch(e){console.log(e)}});if(!n.rooms[t.id])return setTimeout(g,100),void console.log("延迟");g()})),A.listen("readyRegMesh",(function(e){var t='url("images/"cad_'+e+'.png"), auto';$("#player").css("cursor",t),$("#overlook").css("cursor",t),n.objCursorType=e,k.reticule.visible=!1})),A.listen("regMeshEnd",(function(e){$("#player").css("cursor",""),$("#overlook").css("cursor",""),$("#wallCanvas").css("cursor",""),n.objCursorType=null,k.reticule.visible=!0})),A.listen("selectHorn",(function(e){try{console.log("selectHorn"+e.id)}catch(e){console.log(e)}n.hoverBall=n.vertex2Ds[e.id],n.selectBall({byCad:!0}),n.unselectLine()})),A.listen("unSelectHorn",(function(e){console.log("unSelectHorn"+e.id),n.hoverLine=null,n.unselectBall({byCad:!0})})),A.listen("addPoint",(function(e){e.origin;for(var t=e.point,i=e.faces,o=new ge(t,n.rooms[i[0].id]),g=1;g<i.length;g++)console.log("将点 "+t.id+" 加入到房间 "+i[g].id),o.addBall(n.rooms[i[g].id]);o.setVisible(null,{autoJudge:!0}),console.log("addPoint "+t.id)})),A.listen("delPoint",(function(e){e.point.forEach((function(e){n.vertex2Ds[e.id].dispose(),console.log("delPoint "+e.id)}))}));var I=function(e,t){if(!t)for(var i in n.rooms)if(n.rooms[i].CADroom.indexOf(e)>-1){t=n.rooms[i];break}t||console.log("addLine !room");var o=n.addCADLine(e,t,"addObj",(function(t){e.__furnitures&&e.__furnitures.forEach((function(e){n.changeCADObjLine(e)})),e.in3D.setVisible(null,{autoJudge:!0})}));console.log("addLine "+e.id+" to line2d: "+o.id+", roomID: "+t.id),console.log("%c增加线的点是["+e.points[0].id+" , "+e.points[1].id+"]","color:#78f"),e.points.forEach((function(e){n.vertex2Ds[e.id]&&(n.vertex2Ds[e.id].addOrDelBall(t),n.vertex2Ds[e.id].setVisible(null,{autoJudge:!0}))}))};return A.listen("addLine",(function(e){var t=e.add,i=e.face;I(t,n.rooms[i.id])})),A.listen("delLine",(function(e){var t=e.del;e.origin;n.delCADLine(t)})),A.listen("updateLine",(function(e){var t=e.del,i=e.add;console.log("updateLine"),t.forEach((function(e){n.delCADLine(e,!0)})),i.forEach((function(e){I(e)}))})),window.consoleRen=function(){setInterval((function(){console.log(s.a.sceneRenderer.renderer.info.memory.geometries)}),70)},A.listen("wallChange",(function(e){var t=e.faces,i=e.lines,o=[];function g(e){-1==o.indexOf(e)&&o.push(e)}i.forEach((function(e){g(e.points[0]),g(e.points[1]);try{e.in3D.update3D()}catch(t){return void console.log("errorDragLine "+e.id)}})),o.forEach((function(e){try{n.vertex2Ds[e.id]?n.vertex2Ds[e.id].update():console.log("notfind point "+e.id)}catch(e){return}})),t.forEach((function(e){try{n.rooms[e.id]?(n.rooms[e.id].updateFloor(),n.rooms[e.id].updateCeil(),"panorama"!=k.mode&&n.rooms[e.id].setLabelPos()):console.log("notfind room"+rooms.id)}catch(e){return}})),n.updateSkyboxGeo(!0)})),isMobile||(A.listen("selectLine",(function(e){if(console.log("cad selectLine "+e.id),!n.atRoom||-1==n.rooms[n.atRoom].CADroom.indexOf(e)){var t=e.wallLine;return n.wallLines[t.id]?(isMobile&&$("#lineProp").removeClass("hide"),n.clickLine=t.childLine3D.bottom.lineMesh,void console.log("selectLine2 :"+n.clickLine.name)):void console.log("已经被删除了 "+t.id)}t=e.wallLine;n.unselectLine({byCad:!0}),n.hoverLine=t.childLine3D.bottom.lineMesh,n.selectLine({byCad:!0}),n.unselectBall(),n.setMoveLine(null)})),A.listen("unSelectLine",(function(e){n.hoverLine=null,n.unselectLine({byCad:!0})}))),A.listen("regMesh",(function(e){if(e.line){var t=n.createObj(e,e.line);e.line.in3D.wallLines.forEach((function(e){e.otherobjs.indexOf(t)>-1&&e.updateWallMeshForObj()})),t.setVisible(null,{autoJudge:!0})}else console.error("mesh.line is null!!! "+e.id)})),A.listen("changedMeshLine",(function(e){console.log("changedMeshLine233"),n.changeCADObjLine(e)})),A.listen("selectMesh",(function(e){console.log("selectMesh "+e.in3D.id),n.selectObj(e.in3D,{byCad:!0})})),A.listen("unSelectMesh",(function(e){console.log("unSelectMesh "+e.in3D.id),n.selectObj(null,{byCad:!0})})),A.listen("meshChange",(function(e){if(n.clickLine){var i=t.getLine3dByFatLine(t.clickLine),o=t.wallLines[i.parentID].line2d;if(e.in3D.line2d==o)return}e.in3D.update3D(),"column"==e.in3D.type?s.a.editor.scroller.objHeightOrDepth.setValue(100*e.in3D.getDepth(),!0):s.a.editor.scroller.objHeightOrDepth.setValue(100*e.in3D.getHeight(),!0),s.a.editor.scroller.objWidth.setValue(100*e.in3D.getWidth(),!0)})),A.listen("floorHoverIn",(function(e){var t=e.face;n.rooms[t.id].setSelectState(!0)})),A.listen("floorHoverOut",(function(e){var t=e.face;n.rooms[t.id].setSelectState(!1)})),A.listen("positionChange",(function(e){var t,i=1/0;k.model.panos.list.forEach((function(o){var g=new THREE.Vector2(o.position.x,o.position.z).distanceTo(e);g<i&&(i=g,t=o)})),k.flyToPano({pano:t})})),A},se.prototype.buildAll=function(){this.rooms=this.getRooms(),this.findLine2d(),this.findPoint2d(),this.findObjs()},se.prototype.getRooms=function(){var e={};for(var t in this.CADrooms)e[t]=new ee(this.CADrooms[t]);return e},se.prototype.addCADLine=function(){function e(e){for(var t in this.geometry2Ds)for(var i=0,o=this.geometry2Ds[t].CADlines.length;i<o;i++){var g=this.geometry2Ds[t].CADlines[i];if(_(g,e))return this.geometry2Ds[t]}}return function(t,i,o,g){var n=e.bind(this)(t);return n?n.addCADLine(t,i):n=new ie(t,i,g),g&&g(n),n}}(),se.prototype.delCADLine=function(e,t){var i=e.in3D;try{var o=i.CADlines.indexOf(e)}catch(e){return void console.error(e)}this.wallLines[e.wallLine.id]?(e.wallLine.dispose(),o>-1?1==i.CADlines.length?i.dispose():(i.CADlines.splice(o,1),i.setVisible(null,{autoJudge:!0})):console.log("notfind??"),console.log("delLine "+e.id+" from line2d: "+i.id),console.log("%c删除线的点是["+e.points[0].id+" , "+e.points[1].id+"]","color:#78f"),e.points.forEach((function(e){n.vertex2Ds[e.id]&&(n.vertex2Ds[e.id].addOrDelBall(),n.vertex2Ds[e.id].setVisible(null,{autoJudge:!0}))}))):console.log("delCADLine 这条wallLine已经不存在 "+e.wallLine.id)},se.prototype.changeCADObjLine=function(e){var t=e.in3D;if((o=e.line).in3D||console.log(1),t.line2d.otherobjs||console.log(21),o.in3D!=t.line2d){var i=t.line2d.otherobjs.indexOf(t);t.line2d.otherobjs.splice(i,1),console.log("删除obj从line2d: "+t.line2d.id),"door"==t.type||"window"==t.type?o.in3D.wallLines.forEach((function(e){console.log("wallLine "+e.id+" 添加obj "+t.id),e.otherobjs.push(t),e.updateWallMeshForObj()})):(o.wallLine.otherobjs.push(t),o.wallLine.updateWallMeshForObj()),o.in3D.otherobjs.push(t),t.line2d=o.in3D,setTimeout((function(){t.update3D("moveWithLine"),console.log("delay moveWithLine")}),100)}var o;t=e.in3D;(o=e.line).in3D||console.log(1),t.line2d.otherobjs||console.log(21)},se.prototype.findLine2d=function(){for(var e in this.CADrooms){this.CADrooms[e].forEach(function(t){this.addCADLine(t,this.rooms[e])}.bind(this))}},se.prototype.findPoint2d=function(){var e=[];for(var t in this.CADrooms){n.CAD.getFacePoints(t).forEach(function(i){e.indexOf(i)>-1?this.vertex2Ds[i.id].addBall(this.rooms[t]):new ge(i,this.rooms[t]),e.push(i)}.bind(this))}},se.prototype.createObj=function(e){return new({door:Ae,window:re,column:Ce}[e.origin.id.split("_")[0]])(e)},se.prototype.findObjs=function(){for(var e in this.geometry2Ds){for(var t=0,i=this.geometry2Ds[e].CADlines.length;t<i;t++){this.geometry2Ds[e].CADlines[t].__furnitures.forEach((function(e){n.createObj(e)}))}this.geometry2Ds[e].otherobjs.length&&this.geometry2Ds[e].wallLines.forEach((function(e){e.otherobjs.length&&e.updateWallMeshForObj()}))}},se.prototype.updateRuler=function(){this.ruler&&this.ruler.update()},se.prototype.placeIntersectPlane=function(e,t){if(this.getMoveLenPlane){this.getMoveLenPlane.position.copy(e);var i=k.getDirection(null,t);this.getMoveLenPlane.lookAt(e.clone().add(i))}else{var o=new THREE.PlaneGeometry(8e3,8e4,1,1);this.getMoveLenPlane=new THREE.Mesh(o,new THREE.MeshBasicMaterial({transparent:!0,wireframe:!0,opacity:0,side:THREE.DoubleSide,depthTest:!1})),this.getMoveLenPlane.lookAt(new THREE.Vector3(0,1,0)),this.getMoveLenPlane.name="getMoveLenPlane",this.meshGroup.add(this.getMoveLenPlane)}};se.prototype.placeBallPlane=function(e){if(this.ballPlaneGroup)if(e){var t={top:"bottom",bottom:"top",left:"right",right:"left"};this.ballPlaneGroup.position.set(e.x,n.bottom,e.y);var i=new THREE.Vector3(0,0,-1),g=this.rooms[this.atRoom],a=searchBefore(g.pointRing,e),A=searchAfter(g.pointRing,e),r=a.clone().sub(e);A.clone().sub(e);for(var C in e.jointInDir)e.jointInDir[C].point==a&&(this.ballPlaneGroup.leftLines=[e.jointInDir[C].line],e.jointInDir[t[C]]&&this.ballPlaneGroup.leftLines.push(e.jointInDir[t[C]].line)),e.jointInDir[C].point==A&&(this.ballPlaneGroup.rightLines=[e.jointInDir[C].line],e.jointInDir[t[C]]&&this.ballPlaneGroup.rightLines.push(e.jointInDir[t[C]].line));var I=(v=i,y=new THREE.Vector3(r.x,0,r.y),b=v.angleTo(y),v.clone().cross(y).y<0&&(b*=-1),b);this.ballPlaneGroup.rotation.y=I,this.ballPlaneGroup.visible=!0,this.ballPlaneGroup.scale.copy(e.ballMesh.scale)}else this.ballPlaneGroup.visible=!1,this.updateIntersectBallPlane(null);else{this.ballPlaneGroup=new THREE.Object3D,this.ballPlaneGroup.name="ballPlaneGroup";var s=o.getUnPosPlaneGeo(),l=new Float32Array([-.18,0,.18,.18,0,.18,.18,0,-.18,-.18,0,-.18]);s.addAttribute("position",new THREE.BufferAttribute(l,3));var c=new THREE.Mesh(s,o.getBallRingMat());c.name="shiningRing",this.ballPlaneGroup.add(c),this.ballPlaneGroup.shiningRing=c;var u=s.clone(),d=new THREE.Matrix4;d.set(1.2,0,0,0,0,1.2,0,0,0,0,1.2,-.6,0,0,0,1),u.applyMatrix(d);var h=new THREE.Mesh(u,O.ballMoveMats.default),p=h.clone(),f=h.clone(),m=h.clone();h.name="left-In",p.name="right-In",f.name="left-Out",m.name="right-Out",this.ballPlaneGroup.leftIn=h,this.ballPlaneGroup.rightIn=p,this.ballPlaneGroup.leftOut=f,this.ballPlaneGroup.rightOut=m,this.ballPlaneGroup.add(h),this.ballPlaneGroup.add(p),this.ballPlaneGroup.add(f),this.ballPlaneGroup.add(m),this.ballPlaneGroup.visible=!1,this.ballPlaneGroup.position.setY(this.bottom),this.meshGroup.add(this.ballPlaneGroup),this.ballPlaneGroup.renderOrder=5,this.ballPlaneGroup.rightIn.rotation.y=Math.PI/2,this.ballPlaneGroup.leftOut.rotation.y=Math.PI,this.ballPlaneGroup.rightOut.rotation.y=Math.PI/2*3}var v,y,b},se.prototype.moveBallPlane=function(){var e=this.clickBall;this.ballPlaneGroup.position.copy(e.pos)},se.prototype.showOptionLabel=function(e,t,i){if(t){if(this.optionLabels[e])this.optionLabels[e].removeClass("hide");else{"addObj"==e?this.optionLabels[e]=$('<div><i data-type="door"></i><i data-type="window"></i><i data-type="column"></i><i data-type="point"></i></div>'):"removeObj"!=e&&"deletePoint"!=e||(this.optionLabels[e]=$('<div><i data-type="delete"></i></div>')),$("#mainLabel").append(this.optionLabels[e]);var o,g=function(){this.unselectLine(),this.showOptionLabel(e,!1)}.bind(this);"addObj"==e?o=function(e){var t=this.getLine3dByFatLine(this.clickLine),i=(this.geometry2Ds[t.parentID],new THREE.Vector2(this.optionLabelPos.x,this.optionLabelPos.z));g();var o=$(e.target).attr("data-type");this.CAD.dispatcher.trigger("regMesh",o,i,{x:k.position.x,y:k.position.z})}.bind(this):"removeObj"==e?o=function(e){this.CAD.dispatcher.trigger("delMesh",this.selectedObj.CADobj);var t=this.selectedObj;this.selectObj(null),t.dispose(),g()}.bind(this):"deletePoint"==e&&(o=function(e){var t=this.selectLine.point2dVertical;this.CAD.dispatcher.trigger("delPoint",t.CADpoint),g()}.bind(this));for(var n=this.optionLabels[e].find("i"),a=0;a<n.length;a++)n[a].addEventListener("click",o)}this.activeLabel=e,this.optionLabelPos=i,this.updateOptionPos()}else this.optionLabels[e]&&this.optionLabels[e].addClass("hide"),this.optionLabelPos=null,this.activeLabel=null},se.prototype.updateOptionPos=function(){var e=o.getPos2d(this.optionLabelPos);e.trueSide?(this.optionLabels[this.activeLabel].removeClass("hide"),this.optionLabels[this.activeLabel].css({left:e.pos.x+"px",top:e.pos.y+"px"}),e.vector.x>0?$(".wallDesignOption").removeClass("right"):$(".wallDesignOption").addClass("right")):this.optionLabels[this.activeLabel].addClass("hide")},se.prototype.getFatlineByBoldLine=function(e){return e?this.floorExamingStep?e.fatLine:this.geometry3Ds[e.name.split("boldLine_")[1]].lineMesh:null},se.prototype.getLine3dByFatLine=function(e){return e?this.geometry3Ds[e.name.split("lineMesh_")[1]]:null},se.prototype.getObjByFatLine=function(e){if(!e)return null;var t=this.getLine3dByFatLine(e);return this.allOtherObjs[t.parentID]},se.prototype.unselectAll=function(){this.hoverLine=null,this.unselectBall(),this.unselectLine(),this.selectObj(null),$("body").css("cursor","")},se.prototype.setCadSthState=function(e,t){},se.prototype.updateIntersectBallPlane=function(e){(e=e?e.object:null)!=this.intersectBallPlane&&(this.intersectBallPlane=e,e?(d.a.info("IntersectBallPlane"),$("body").css("cursor","grab")):(d.a.info("un IntersectBallPlane"),$("body").css("cursor","")))},se.prototype.selectBall=function(e){},se.prototype.unselectBall=function(e){},se.prototype.updateIntersectBall=function(e){if((e=e?e.object:null)!=(this.hoverBall&&this.hoverBall.ballMesh))if(e){var t=e.name;this.hoverBall=this.vertex2Ds[t],this.hoverBall==this.clickBall?$("body").css("cursor","grab"):$("body").css("cursor","pointer")}else this.hoverBall=null,this.clickBall||$("body").css("cursor","")},se.prototype.selectLine=function(e){if(this.hoverLine){var t=this.getLine3dByFatLine(this.hoverLine);if("window"==t.type||"door"==t.type||t.type.indexOf("column")>-1){this.unselectLine();var i=this.allOtherObjs[t.parentID];if(i!=this.selectedObj||isMobile)this.selectObj(i);else{var o=C.a.getFootPoint(this.lineHoverPoint,t.points[0],t.points[1],!0);this.showOptionLabel("removeObj",!0,o)}return!0}if("vertical"!=t.type||isMobile){if(this.clickLine==this.hoverLine&&"dollhouse"!=k.mode){if(isMobile)t.movePullMesh(this.lineHoverPoint);else{o=C.a.getFootPoint(this.lineHoverPoint,t.points[0],t.points[1],!0);this.showOptionLabel("addObj",!0,o,!0)}return!0}if(this.selectObj(null),this.clickLine&&this.unselectLine(),t.pullMeshFake&&t.buildPullMesh(new THREE.Vector3(0,1,0)),t.setLenRuler(!0),e&&e.byCad)t.movePullMesh();else{var g=this.wallLines[t.parentID];this.CAD.dispatcher.trigger("selectLine",g.CADline),t.movePullMesh(this.lineHoverPoint)}if(this.hoverLine.material=O.lineMats.selected,t.pullMesh.visible=!0,this.updateIntersectPull({object:t.pullMesh}),isMobile&&$("#lineProp").removeClass("hide"),this.clickLine=this.hoverLine,this.clickLine)return console.log("clickLine:"+this.clickLine.name+",wallLine"+t.parentID),!0}else{var o=C.a.getFootPoint(this.lineHoverPoint,t.points[0],t.points[1],!0);this.showOptionLabel("deletePoint",!0,o)}}},se.prototype.unselectLine=function(e){if(this.clickLine){var t=this.getLine3dByFatLine(this.clickLine);if(!e||!e.byCad){var i=this.wallLines[t.parentID];this.CAD.dispatcher.trigger("unSelectLine",i.CADline),console.log("unSelectLine "+i.id)}t.setLenRuler(!1),this.hoverPull=null,this.clickLine.children[0].visible=!1,this.clickLine.material=O.lineMats.defaultBtm,this.clickLine=null,this.showOptionLabel("addObj",!1),isMobile&&$("#lineProp").addClass("hide")}},se.prototype.selectObj=function(e,t){e!=this.selectedObj&&(this.selectedObj&&(t&&t.byCad||isMobile||this.CAD.dispatcher.trigger("unSelectMesh",this.selectedObj.CADobj),this.selectedObj.setSelected(!1),this.hoverPull=null,this.showOptionLabel("removeObj",!1),isMobile?$("#objProp").addClass("hide"):$("#objProp").addClass("atRight")),this.selectedObj=e,this.pullsShowing=[],this.selectedObj&&(this.selectedObj.setSelected(!0),t&&t.byCad||this.CAD.dispatcher.trigger("selectMesh",this.selectedObj.CADobj),this.updateObjPanel()))},se.prototype.updateObjPanel=function(){if(isMobile?$("#objProp").removeClass("hide"):$("#objProp").removeClass("atRight"),s.a.editor.scroller.objWidth.changeLimit({max:100*this.selectedObj.line2d.getLength()}),"column"==this.selectedObj.type){isMobile?($("#objWidth .title").text(R.a.get("柱宽度")),$("#objHeightOrDepth .title").text(R.a.get("柱厚度"))):($("#objProp .itemTitle.head span").text(R.a.get("柱属性")),$("#objProp #objHeightOrDepth>div").eq(0).find("span").text(R.a.get("厚度")));var e=100*this.selectedObj.CADobj.calcMaxThickness();s.a.editor.scroller.objHeightOrDepth.changeLimit({max:e}),s.a.editor.scroller.objHeightOrDepth.setValue(100*this.selectedObj.getDepth(),!0)}else{isMobile?"door"==this.selectedObj.type?($("#objWidth .title").text(R.a.get("门宽度")),$("#objHeightOrDepth .title").text(R.a.get("门高度"))):($("#objWidth .title").text(R.a.get("窗宽度")),$("#objHeightOrDepth .title").text(R.a.get("窗高度"))):("door"==this.selectedObj.type?$("#objProp .itemTitle.head span").text(R.a.get("门属性")):$("#objProp .itemTitle.head span").text(R.a.get("窗属性")),$("#objProp #objHeightOrDepth>div").eq(0).find("span").text(R.a.get("高度")));var t=this.selectedObj.getLimit();s.a.editor.scroller.objHeightOrDepth.changeLimit({max:100*(t.top-t.bottom)}),s.a.editor.scroller.objHeightOrDepth.setValue(100*this.selectedObj.getHeight(),!0)}s.a.editor.scroller.objWidth.setValue(100*this.selectedObj.getWidth(),!0),setTimeout(s.a.editor.scroller.objWidth.InitOffset.bind(s.a.editor.scroller.objWidth),200),setTimeout(s.a.editor.scroller.objHeightOrDepth.InitOffset.bind(s.a.editor.scroller.objHeightOrDepth),200)},se.prototype.updateRoomPanel=function(){isMobile?$(".tmpl-wallDesign .layout#roomProp").removeClass("hide"):$("#roomProp").removeClass("atRight");var e=isMobile?n.rooms[n.atRoom]:n.selectRoom;e&&(console.log("更新面板 "+e.id),$("input#roomName").val(e.name),this.roomNameVisCon.switchState(e.CADroom.showName,!0),this.areaVisCon.switchState(e.CADroom.showArea,!0),isMobile?(s.a.editor.scroller.roomFloorHeight.setValue(this.tranHeight(e.bottom,"show"),!0),s.a.editor.scroller.roomCeilHeight.setValue(this.tranHeight(e.top,"show"),!0),setTimeout((function(){s.a.editor.scroller.roomFloorHeight.InitOffset(),s.a.editor.scroller.roomCeilHeight.InitOffset()}),3)):(v.default.checkLen.project_name($("#roomName"),$('#roomProp li[data-name="roomName"] .itemTitle')),s.a.editor.scroller.roomCeilHeight.setValue(this.tranHeight(e.top,"show"),!0),setTimeout(function(){s.a.editor.scroller.roomCeilHeight.InitOffset()}.bind(this),201)))},se.prototype.updateIntersectLine=function(e){e&&(this.lineHoverPoint=e.point);e=e?e.object:null;var t=this.getFatlineByBoldLine(e);t!=this.hoverLine&&(this.hoverLine=t,t?$("body").css("cursor","pointer"):$("body").css("cursor",""))},se.prototype.updateIntersectPull=function(e){(e=e?e.object:null)!=this.hoverPull&&(this.hoverPull=e,this.hoverPull?$("body").css("cursor","grab"):$("body").css("cursor",""))},se.prototype.updateIntersectObjPull=function(e){this.updateIntersectPull(e)},se.prototype.setMoveLine=function(e){e!=this.moveLines&&(this.moveLines=e)};var le,ce,ue;se.prototype.dragBegin=function(e,t){d.a.info("dragBegin"),this.dragInfo={startIntersect:null,curIntersect:null},this.dragInfo.atPlayer=t,2==this.floorExamingStep&&this.dragInfo.atPlayer!=k?(console.log("locked B"),s.a.editor.spotPosInfo.control.locked=!0,this.placeIntersectPlane(e.position,s.a.editor.spotPosInfo.camera)):(this.player&&(this.player.cameraControls.activeControl.locked=!0),this.placeIntersectPlane(e.position,t instanceof Ie?t.camera:null)),k.cameraControls.activeControl.locked=!0,$("body").css("cursor","grabbing")},se.prototype.dragging=function(e,t,i){var o={};if("dragBall"==this.dragInfo.state||"dragWall"==this.dragInfo.state||"column"==this.selectedObj.type)try{o.y=t.position.y}catch(e){console.log(e)}else o.normalVec=this.selectedObj.faceNormal.clone(),o.pullPos=t.position.clone();if(e=function(e,t,i,o){var g=e;if(2==n.floorExamingStep&&n.dragInfo.atPlayer!=k){i=new THREE.Vector2;C.a.convertScreenPositionToNDC(P.a.mouseB.x,P.a.mouseB.y,i,s.a.editor.spotPosInfo.renderer.domElement);var a=new THREE.Vector3(i.x,i.y,-1).unproject(s.a.editor.spotPosInfo.camera)}else i=n.dragInfo.atPlayer.mouse,a=new THREE.Vector3(i.x,i.y,-1).unproject(n.dragInfo.atPlayer.camera);if(null!=t.y){var A=t.y;if(a.y<=g.y)return null;if(a.y==g.y)return void d.a.info("一样??");if(g.y==A)return void d.a.info("一样2??");var r=((p=(a.y-A)/(g.y-A))*g.x-a.x)/(p-1),I=(p*g.z-a.z)/(p-1)}else{var l=t.normalVec,c=t.pullPos;if(0!=l.y)return void d.a.info("N.y != 0");if(a.z==g.z)return void d.a.info("O.z==A.z?");if(0==l.z&&0==l.x){d.a.info("N.z==0 && N.x == 0?");var u=l.x*(g.x-a.x)+l.y*(g.y-a.y)+l.z*(g.z-a.z);if(0==u)return void d.a.info("分母为0?? return;");var h=-(l.x*a.x+l.y*a.y+l.z*a.z-(c.x*l.x+c.y*l.y+c.z*l.z))/u;r=h*(g.x-a.x)+a.x,A=h*(g.y-a.y)+a.y,I=h*(g.z-a.z)+a.z}else if(0==l.x){I=c.z;if(a.y==g.y)return void d.a.info("一样??");if(g.y==A)return void d.a.info("一样2??");r=((p=(a.z-I)/(g.z-I))*g.x-a.x)/(p-1),A=(p*g.y-a.y)/(p-1)}else if(0==l.z){r=c.x;if(a.y==g.y)return void d.a.info("一样??");if(g.y==A)return void d.a.info("一样2??");var p;A=((p=(a.x-r)/(g.x-r))*g.y-a.y)/(p-1),I=(p*g.z-a.z)/(p-1)}}return new THREE.Vector3(r,A,I)}(e,o))if(this.dragInfo.startIntersect){var g=e.clone().sub(this.dragInfo.startIntersect);if("dragBall"==this.dragInfo.state||"dragWall"==this.dragInfo.state){if(2==n.floorExamingStep){var a=this.hoverPull==this.floorLineA.pullMesh?this.floorLineA:this.floorLineB;return g=a.points[0].x==a.points[1].x?new THREE.Vector3(g.x,0,0):new THREE.Vector3(0,0,g.z),void(this.dragFloorStart?(a.updatePoints(this.dragFloorStart[0].clone().add(g),this.dragFloorStart[1].clone().add(g)),a.movePullMesh("move"),a.moveLineMesh(),a.moveBoldLine("move",a==this.floorLineB&&s.a.editor.spotPosInfo.camera.position)):this.dragFloorStart=[a.points[0].clone(),a.points[1].clone()])}if(g=new THREE.Vector2(g.x,g.z),"point"==this.dragInfo.type)this.clickBall.move2D(g);else{if(!this.moveLines)return void console.log("!this.moveLines");this.moveLines.forEach(function(e){var t;t=e.CADline.points[0].y==e.CADline.points[1].y?"y":"x",0!=g[t]&&this.CAD.dispatcher.trigger("moveLine",e.CADline,t,g[t])}.bind(this))}}else{var A=this.dragInfo.moveObjInfo.dragPoints,r=this.dragInfo.moveObjInfo.whichLine;if(r){var I=this.selectedObj.moveVertical(this.dragInfo.startY,g.y,r);this.dragInfo.startY||(this.dragInfo.startY=I)}else this.CAD.dispatcher.trigger("scaleMesh",this.selectedObj.CADobj,new THREE.Vector2(g.x,g.z),A)}}else this.dragInfo.startIntersect=e,console.log("开始移动时")},se.prototype.dragEnd=function(){d.a.info("dragEnd"),this.dragInfo.state="",this.setMoveLine(null),k.cameraControls.activeControl.locked=!1,k.cameraControls.activeControl.pointerDragOn=!1,this.floorExamingStep?(s.a.editor.spotPosInfo.control.locked=!1,s.a.editor.spotPosInfo.control.pointerDragOn=!1,this.computeFloorHeight()):this.player&&(this.player.cameraControls.activeControl.locked=!1,this.player.cameraControls.activeControl.pointerDragOn=!1),this.updateDelayMesh("moveBoldLine"),$("body").css("cursor","")},se.prototype.updateDelayMesh=function(e){"moveBoldLine"==e?setTimeout((function(){n.delayChange.moveBoldLine.forEach((function(e){n.geometry3Ds[e.id]&&e.moveBoldLine()})),n.delayChange.moveBoldLine=[]}),50):"updateWallMeshForObj"==e&&setTimeout((function(){n.delayChange.updateWallMeshForObj.forEach((function(e){n.geometry2Ds[e.id]&&e.wallLines.forEach((function(e){e.updateWallMeshForObj()}))})),n.delayChange.updateWallMeshForObj=[]}),50)},se.prototype.dragBallBegin=function(e,t){this.dragBegin(this.clickBall.ballMesh,t),this.dragInfo.state="dragBall";var i=this.intersectBallPlane;"ball"==e||"shiningRing"==i.name?("ball"==e&&(this.intersectBallPlane=this.ballPlaneGroup.shiningRing),this.dragInfo.type="point"):i.name.indexOf("left")>-1?(this.ballPlaneGroup.leftIn.material=O.ballMoveMats.selected,this.ballPlaneGroup.leftOut.material=O.ballMoveMats.selected,this.setMoveLine(this.ballPlaneGroup.rightLines)):i.name.indexOf("right")>-1&&(this.ballPlaneGroup.rightIn.material=O.ballMoveMats.selected,this.ballPlaneGroup.rightOut.material=O.ballMoveMats.selected,this.setMoveLine(this.ballPlaneGroup.leftLines))},se.prototype.dragBall=function(e){},se.prototype.dragBallEnd=function(){if("dragBall"==this.dragInfo.state){var e=this.intersectBallPlane;e&&(e.name.indexOf("left")>-1?(this.ballPlaneGroup.leftIn.material=O.ballMoveMats.default,this.ballPlaneGroup.leftOut.material=O.ballMoveMats.default):e.name.indexOf("right")>-1&&(this.ballPlaneGroup.rightIn.material=O.ballMoveMats.default,this.ballPlaneGroup.rightOut.material=O.ballMoveMats.default)),this.dragEnd()}},se.prototype.dragLineBegin=function(e){try{var t=this.geometry3Ds[n.hoverPull.name.split("pullMesh_")[1]].type}catch(e){d.a.info(e)}t.indexOf("wall")>-1?(this.dragWallBegin(e),this.showOptionLabel("addObj",!1)):(this.dragObjLineBegin(e),this.showOptionLabel("removeObj",!1))},se.prototype.dragWallBegin=function(e){this.dragBegin(this.hoverPull,e),this.dragInfo.state="dragWall";var t=this.hoverPull.name.split("pullMesh_")[1],i=this.geometry3Ds[t].parentID;this.setMoveLine([this.wallLines[i]]),this.hoverPull.material=O.lineMoveMats.selected},se.prototype.dragWall=function(e){this.dragging(e,this.hoverPull)},se.prototype.dragWallEnd=function(){if("dragWall"==this.dragInfo.state)if(this.dragEnd(),this.hoverPull.material=O.lineMoveMats.default,this.floorExamingStep)this.dragFloorStart=null;else{var e=this.getLine3dByFatLine(this.clickLine),t=this.wallLines[e.parentID];this.CAD.dispatcher.trigger("lineOperEnd",t.CADline),n.updateDelayMesh("updateWallMeshForObj")}},se.prototype.dragObjLineBegin=function(e){this.dragBegin(this.hoverPull,e),this.dragInfo.state="dragObj",this.hoverPull.material=O.lineMoveMats.selected;var t,i,o=this.hoverPull.name.split("pullMesh_")[1],g=this.geometry3Ds[o],n=this.selectedObj.CADobj.points;for(var a in this.selectedObj.childLine3D)if(this.selectedObj.childLine3D[a]==g){"column"==this.selectedObj.type?"botRight"==a?t=[n[1],n[3]]:"botLeft"==a?t=[n[0],n[2]]:"botOut"==a&&(t=[n[2],n[3]]):"left"==a?t=n[0]:"right"==a?t=n[1]:i=a;break}this.dragInfo.moveObjInfo={line3d:g,dragPoints:t,whichLine:i}},se.prototype.dragObjLine=function(e){this.dragging(e,this.hoverPull)},se.prototype.dragObjLineEnd=function(){"dragObj"==this.dragInfo.state&&(this.dragInfo.startY=null,this.CAD.dispatcher.trigger("meshOperEnd",this.selectedObj.CADobj),this.dragEnd(),this.hoverPull.material=O.lineMoveMats.default,this.dragInfo.moveObjLine=null)},se.prototype.handleDragEnd=function(){if(this.transformControls&&this.transformControls.onPointerUp(),"wallDesign"==s.a.editor.atPanel&&this.dragInfo.state)return this.dragBallEnd(),this.dragWallEnd(),this.dragObjLineEnd(),!0},se.prototype.enter=function(){var e=this;if(this.light&&(this.light.visible=!0),this.editing=!0,this.meshGroup.visible=!0,$("#roomList").removeClass("hide"),setTimeout((function(){e.setSlider()}),50),this.setMainSize($("#player").width(),$("#player").height()),O.wallMats.panoMat.side=2,this.updateRoomDisplay({state:k.mode!=this.leaveMode?"forceToUpdate":null}),k.tagManager.hideAllTags(),"panorama"!=k.mode&&(k.model.chunks.forEach((function(e){e.material=e.materialInside})),k.model.alpha=0,k.emit("pano.chosen",k.currentPano,k.currentPano),O.wallMats.panoMat.transparent=!0,O.wallMats.panoMat.polygonOffset=!0,this.updateOutMat(),this.adjustLight()),this.updateSkyboxGeo(!0),k.model.chunks.forEach((function(e){e.visible=!1})),k.model.panos.list.forEach((function(e){e.roomId&&(e.marker.position.y=n.rooms[e.roomId].bottom+.05)})),k.model.adjustfloorLogoHeight({begin:!0}),k.cameraControls.controls.dollhouse.resetRanges(5),isMobile?(this.setFov(!0),k.cameraControls.controls.panorama.insideLookLimitDown=-55):k.cameraControls.controls.panorama.insideLookLimitDown=-50,this.dollLabels.forEach((function(e){e.enable=!0,e.update()})),this.planLabels.forEach((function(e){e.enable=!0,e.update()})),k.defaultRoomLabels.forEach((function(e){e.enable=!1,e.update()})),this.spotLightHelper&&(this.spotLightHelper.visible=!0),!this.wallMeshes[0].visible)for(var t in this.wallMeshes.forEach((function(e){e.visible=!0})),this.rooms)this.rooms[t].floorMesh.visible=!0;k.updateRulersVisi(),isMobile||(this.hideTour=$("#autoTour").hasClass("hide"),this.hideTour||$("#autoTour").addClass("hide"),s.a.guider.slideUpOrDown(!1)),s.a.playGuider.musicPlayer.pause(),k.panoVideoRenderer&&k.panoVideoRenderer.onPanoChange(null)},se.prototype.leave=function(){this.editing=!1,O.wallMats.panoMat.transparent=!1,this.exitFloorHeightExam(),this.unselectAll(),this.updateSkyboxGeo(!1),k.tagManager.showAllTags(),$("#roomList").addClass("hide"),"panorama"!=k.modeTran.split("-")[1]&&(k.model.chunks.forEach((function(e){e.material=e.materialOutside,e.material.side=THREE.FrontSide})),k.model.alpha=1,k.currentPano.exit()),k.model.chunks.forEach((function(e){e.visible=!0})),O.wallMats.panoMat.polygonOffset=!1,this.leaveMode=k.modeTran.split("-")[1],k.cameraControls.controls.dollhouse.resetRanges(),isMobile&&this.setFov(!1),k.cameraControls.controls.panorama.insideLookLimitDown=null,this.switchview(),k.model.panos.list.forEach((function(e){e.marker.position.y=e.floorPosition.y+.01})),k.model.adjustfloorLogoHeight({reback:!0}),this.dollLabels.forEach((function(e){e.enable=!1,e.update()})),this.planLabels.forEach((function(e){e.enable=!1,e.update()})),k.defaultRoomLabels.forEach((function(e){e.enable=!0,e.update()})),this.spotLightHelper&&(this.spotLightHelper.visible=!1),this.light&&(this.light.visible=!1),this.meshGroup.visible=!1,k.updateRulersVisi(),isMobile||this.hideTour||$("#autoTour").removeClass("hide"),k.panoVideoRenderer&&"panorama"==k.mode&&k.panoVideoRenderer.onPanoChange(k.currentPano),k.flyoutType=null},se.prototype.setFov=function(e){if(isMobile){var t=k.cameraControls.cameras.panorama;if(e){var i=window.innerWidth/window.innerHeight,o=Math.max(E.a.insideFOV,E.a.insideFOV/Math.pow(i,.35));t.fov=t.staticFov=o,console.log(o)}else t.staticFov=null,t.fov=E.a.insideFOV}},se.prototype.updateOutMat=function(e){var t=O.wallMats.panoMatOutside,i=O.wallMats.panoMat;t.uniforms.pano0Map.value=i.uniforms.pano0Map.value,t.uniforms.pano0Matrix.value=i.uniforms.pano0Matrix.value,t.uniforms.pano0Position.value=i.uniforms.pano0Position.value,t.uniforms.pano1Map.value=i.uniforms.pano1Map.value,t.uniforms.pano1Matrix.value=i.uniforms.pano1Matrix.value,t.uniforms.pano1Position.value=i.uniforms.pano1Position.value,t.uniforms.progress.value=i.uniforms.progress.value},se.prototype.judgeWallMat=function(e,t){var i;if(i="panorama"==k.modeTran.split("-")[1]&&"panorama"!=k.mode?"beforeFlyIn":"panorama"!=k.modeTran.split("-")[1]&&"panorama"==k.mode?"beforeFlyOut":"panorama"==k.modeTran.split("-")[1]&&"panorama"==k.mode?"atPanorama":"outside",e){if("beforeFlyIn"==i||"beforeFlyOut"==i||"outside"==i){if(t&&2==t.line2d.wallLines.length)for(var o=0;o<2;o++)if(t.line2d.wallLines[o]!=t){t.line2d.wallLines[o].wallMesh.material=O.wallMats.blank1;break}return"beforeFlyIn"==i?f.a.detectIE()?O.wallMats.panoMatOutside:O.wallMats.panoMat:O.wallMats.panoMatOutside}return O.wallMats.panoMat}if("beforeFlyIn"!=i&&"beforeFlyOut"!=i&&"outside"!=i)return O.wallMats.panoMat;if(!t)return O.wallMats.blank1;if(2!=t.line2d.wallLines.length)return O.wallMats.blank1;for(o=0;o<2;o++)if(t.line2d.wallLines[o]!=t)return t.line2d.wallLines[o].wallMesh.material==O.wallMats.blank1?O.wallMats.blank2:O.wallMats.blank1},se.prototype.setflTopLine=function(e){if(e)for(var t in this.geometry2Ds)this.geometry2Ds[t].addToTopLine();else this.flplTopLines.forEach((function(e){e.visible=!1,e.material=O.lineMats.default})),this.flplTopLines=[]},se.prototype.setMainSize=function(e,t){if(this.editing){for(var i in O.lineMats)O.lineMats[i].resolution.set(e,t);this.setFov(!0)}else O.lineMats.border.resolution.set(e,t);this.openOverlay&&this.resizeOverlay()},se.prototype.setMiniSize=function(){var e=this.CAD.renderer.canvas;(this.cadNeedResize||e.clientWidth!=le||e.clientHeight!=ce||ue!=window.devicePixelRatio)&&(le=e.clientWidth,ce=e.clientHeight,e.width=le*window.devicePixelRatio,e.height=ce*window.devicePixelRatio,ue=window.devicePixelRatio,this.CAD.renderer.init(),this.CAD.renderer.render(),this.cadNeedResize=!1)},se.prototype.setSlider=function(){isMobile||(this.panoPicSlider?this.panoPicSlider.update():this.panoPicSlider=new Swiper(".room-preview-image",{slidesPerView:"auto",spaceBetween:6,freeMode:!0,scrollbar:{el:".room-preview-image-scrollbar",draggable:!0,snapOnRelease:!1},mousewheel:{enable:!0}})),this.roomPicSlider?this.roomPicSlider.update():this.roomPicSlider=new Swiper(".room-preview-rooms",{slidesPerView:"auto",spaceBetween:isMobile?8:0,freeMode:!0})},se.prototype.setMiniView=function(){if(!this.miniCanvas){var e=new THREE.WebGLRenderer({antialias:!0});e.setPixelRatio(window.devicePixelRatio),e.setSize(300,300,!1),$("#wallPanel #overlook")[0].appendChild(e.domElement),this.miniCanvas=e.domElement,this.miniRenderer=e}this.player.camera.position.copy(k.cameraControls.cameras.panorama.position)},se.prototype.renderMiniView=function(e){if(this.miniCanvas){var t=k.model;for(var i in O.lineMats)O.lineMats[i].resolution.set(this.miniCanvas.clientWidth,this.miniCanvas.clientHeight);t.skybox.visible;for(var i in this.miniRenderer.render(e,this.player.camera),O.lineMats)O.lineMats[i].resolution.set($("#player").width(),$("#player").height())}},se.prototype.switchview=function(e){if(!isMobile){var t=$("#player"),i=$("#cad"),o=$("#mainDesignSth"),g=$("#webgl .webgl-inside"),n=$(".wallDesign #CADarea");if(e)0==$(e.target).parent().index()&&($.contains(n[0],i[0])?(i.remove(),g.append(i),t.remove(),o.remove(),n.append(t),n.append(o),n.parent().find(".itemTitle span").html(R.a.get("漫游视角")),s.a.gui.permitTranMode(!1),this.mainView="cad"):(i.remove(),n.append(i),t.remove(),o.remove(),$("#gui-parent").before(t),g.append(o),n.parent().find(".itemTitle span").html(R.a.get("CAD视角")),s.a.gui.permitTranMode(!0),this.mainView="player"));else{if("player"==this.mainView)return;"cad"==this.mainView&&(i.remove(),n.append(i),n.parent().find(".itemTitle span").html(R.a.get("CAD视角"))),t.remove(),o.remove(),$("#gui-parent").before(t),g.append(o),s.a.gui.permitTranMode(!0),this.mainView="player"}C.a.handelPadResize=1,this.optionLabelPos&&this.updateOptionPos(),"player"==this.mainView?this.CAD.hideLabel():this.CAD.showLabel()}},se.prototype.updateSkyboxGeo=function(e){var t=k.model.skybox;if(0!=e){var i=new THREE.Box2,o=1/0,g=-1/0;for(var n in this.rooms)i.union(this.rooms[n].modelBound),o=Math.min(o,this.rooms[n].bottom),g=Math.max(g,this.rooms[n].top);i.expandByVector(new THREE.Vector2(.1,.1));var a=g-o,A=i.getCenter();A=new THREE.Vector3(A.x,(g+o)/2,A.y);var r=i.getSize(),C=new THREE.BoxGeometry(r.x,a+.1,r.y)}else{(i=k.model.boundingBox).expandByScalar(.05);A=i.getCenter(),r=i.getSize(),C=new THREE.BoxGeometry(r.x,r.y,r.z)}t.geometry.dispose(),t.geometry=C,t.position.copy(A)},se.prototype.changeHeight=function(e,t,i){i&&i.dontTranValue||(t=this.tranHeight(t)),i&&i.room&&(this.changeOneRoomHeight(i.room,e,t),this.CAD.dispatcher.trigger("changeFaceAttr",i.room.id,"bottom"==e?{bottom:t}:{top:t}),i.room.CADroom.forEach((function(e){e.wallLine.line2d.moveObjs("height")}))),this.updateSkyboxGeo(!0),"bottom"==e&&k.model.adjustfloorLogoHeight(),"panorama"==k.mode&&this.atRoom&&this.rooms[this.atRoom].setVisible(!0,{onlySetBackSide:!0})},se.prototype.changeOneRoomHeight=function(e,t,i){(e[t]=i,e.CADroom[t]=i,e.CADroom.forEach((function(e){e.wallLine.updateLine3D(),e.wallLine.updateWallMeshForObj({type:"height"})})),n.CAD.getFacePoints(e.id).forEach((function(t){n.vertex2Ds[t.id].getBall(e.id).update()})),"bottom"==t)?(n.CAD.getFaceCamera(e.id).forEach((function(e){e.marker.position.y=i+.05})),e.updateFloor("vertical")):e.updateCeil("vertical")},se.prototype.updateSize=function(e){if(2==this.floorExamingStep&&this.floorLineB&&e.mesh==this.floorLineB.pullMesh)var t=s.a.editor.spotPosInfo.camera.position;else t=k.cameraControls.cameras.panorama.position;var i=e.mesh.position.distanceTo(t);if(e.smooth)var o=isMobile?3:4,g=isMobile?.6:1,n=g+(o-g)*THREE.Math.smoothstep(i,.5,30);else n=i/4;e.mesh.scale.set(n,n,n)},se.prototype.updateAllSize=function(e){this.floorExamingStep?1==this.floorExamingStep?this.examFloorBoldLines.forEach((function(e){o.updateBoldLine(e,e.line3d.points,"update")})):s.a.editor.mainDesign.floorLineA.moveBoldLine("update"):(this.rooms[e||this.atRoom].CADroom.forEach((function(e){e.wallLine.childLine3D.bottom.moveBoldLine("update"),e.wallLine.otherobjs.forEach((function(e){for(var t in e.childLine3D)e.childLine3D[t].moveBoldLine("update")}))})),this.clickLine&&this.getLine3dByFatLine(this.clickLine).adjustPullAngle())},se.prototype.restoreAllSize=function(){this.atRoom&&this.rooms[this.atRoom].CADroom.forEach((function(e){e.wallLine.childLine3D.bottom.pullMesh.scale.set(1,1,1),e.wallLine.childLine3D.bottom.adjustPullAngle("restore"),e.wallLine.otherobjs.forEach((function(e){for(var t in e.childLine3D)e.childLine3D[t].pullMesh&&e.childLine3D[t].pullMesh.scale.set(1,1,1)}))}))},se.prototype.adjustShadow=function(e){var t=e.modelBound.getSize(),i=Math.max(t.x,t.y),o=Math.sqrt(i/11);O.wallMats.panoMat.uniforms.minDistance.value=2.5*o,O.wallMats.panoMat.uniforms.maxDistance.value=4*o},se.prototype.adjustLight=function(){n.light.position.copy(k.cameraControls.cameras.dollhouse.position)};var de=function(e){for(var t=(k.model.panos.list.length+"").length,i=k.model.panos.list.indexOf(e)+1,o=(i+"").length,g="";g.length<t-o;)g+="0";return g+i};se.prototype.updateRoomDisplay=function(e){var t=this,i=$("#roomList .room-preview-image .swiper-wrapper");if(e&&e.room)var o=e.room.id;else{var g=e&&null!=e.to?e.to:k.currentPano;o=g.roomId;i.children().removeClass("active"),i.find("a[data-name="+g.id+"]").addClass("active")}if(console.log("toRoom"+o),this.atRoom!=o){var a=this.rooms[o];if($("#roomList .room-preview-rooms a[data-name="+this.atRoom+"]").removeClass("active"),$("#roomList .room-preview-rooms a[data-name="+o+"]").addClass("active"),i.html(""),isMobile?console.warn("非单张全景 或 是手机"):null!=a?this.CAD.getFaceCamera(a.id).forEach((function(e){n.addRoomPano(e,g)})):console.log("当前位置不属于任何一个房间"),this.panoPicSlider&&setTimeout((function(){t.panoPicSlider.update(),t.panoPicSlider.emit("resize")}),50),e&&"forceToUpdate"==e.state);else{if(null!=this.atRoom&&this.rooms[this.atRoom])this.rooms[this.atRoom].setVisible(!1),this.unselectAll();else for(var A in this.rooms)this.rooms[A].setVisible(!1);a&&(a.setVisible(!0),this.adjustShadow(a))}k.model.adjustfloorLogoHeight({room:this.rooms[o]})}if((!e||"beforeFlytopano"!=e.state&&"beforeFlyIn"!=e.state&&"panorama"==k.modeTran.split("-")[1])&&this.updateAllSize(o),e&&"beforeFlytopano"==e.state&&o!=e.from.roomId){var r;if(this.atRoom){var C=new THREE.Raycaster;C.far=k.position.distanceTo(e.to.position),C.set(k.position,e.to.position.clone().sub(k.position).normalize());e:for(var I=0;I<this.rooms[this.atRoom].CADroom.length;I++)for(var s=0;s<this.rooms[this.atRoom].CADroom[I].in3D.otherobjs.length;s++){var l=this.rooms[this.atRoom].CADroom[I].in3D.otherobjs[s];if("door"==l.type){l.faceMesh.visible=!0;var c=C.intersectObjects([l.faceMesh]);if(l.faceMesh.visible=!1,c.length>0){r=!0;break e}}}}if(!r)for(var A in console.log("!goThroughDoor"),this.wallMeshes.forEach((function(e){e.visible=!1})),this.rooms)this.rooms[A].floorMesh.visible=!1}else if(e&&"afterFlytopano"==e.state&&o!=e.from.roomId)for(var A in this.wallMeshes.forEach((function(e){e.visible=!0})),this.rooms)this.rooms[A].floorMesh.visible=!0;else if(e&&"beforeFlyIn"==e.state)o&&this.rooms[o].floorMesh.material!=O.wallMats.panoMat&&this.rooms[o].setVisible(!0);else if(e&&"forceToUpdate"==e.state){for(var A in this.rooms)this.rooms[A].setVisible(!1);o&&this.rooms[o].setVisible(!0)}this.atRoom=o},se.prototype.warnRooms=function(e){var t=function(){if(a/2>=g)return O.wallMats.selected3.opacity=o,e.forEach((function(e){n.selectRoom!=e?(e.highlightFloor.parent.remove(e.highlightFloor),e.highlightFloor=null):e.highlightFloor.material=O.wallMats.selected2,e.warning=!1})),void(this.warning=!1);a++,T.a.start(function(e){a%2==0&&(e=1-e);var t=e*o+(1-e)*i;O.wallMats.selected3.opacity=t}.bind(this),A,t,0,M.a[E.a.transition.blendEasing],"wallLineShine",E.a.freeze.wallLineShine)}.bind(this);if(!this.warning){var i=0,o=O.wallMats.selected3.opacity,g=3,a=0,A=200;e.forEach((function(e){e.highlightFloor?e.highlightFloor.material=O.wallMats.selected3:(e.highlightFloor=new THREE.Mesh(e.floorMesh.geometry,O.wallMats.selected3),n.meshGroup.add(e.highlightFloor),e.highlightFloor.position.setY(e.bottom+.001)),e.highlightFloor.material.opacity=i,e.warning=!0})),this.warning=!0,t()}},se.prototype.warnVoidRooms=function(){for(var e in this.voidRooms=[],this.rooms)0==this.CAD.getFaceCamera(e).length&&this.voidRooms.push(this.rooms[e]);if(this.voidRooms.length)return setTimeout((function(){n.voidRooms.forEach((function(e){n.CAD.dispatcher.trigger("floorHoverIn",e.CADroom)})),n.warnRooms(n.voidRooms)}),100),!0},se.prototype.cancelWarnRooms=function(){this.voidRooms.forEach((function(e){e!=n.selectRoom&&n.CAD.dispatcher.trigger("floorHoverOut",e.CADroom)}))},se.prototype.addRulers=function(){};var he={getlineMat:function(){return{defaultBtm:A.a.createFatLineMat({width:3,color:"#4fffff"}),default:A.a.createFatLineMat({width:isMobile?2:3,color:"#4fffff",opacity:.3}),unVisiTopAndBtm:A.a.createFatLineMat({width:2,color:"#4fffff",opacity:.3}),defaultOBj:A.a.createFatLineMat({width:2,color:"#4fffff"}),selected:A.a.createFatLineMat({width:3,color:"#f0ff00"}),column:A.a.createFatLineMat({width:2,color:"#ffffff"}),columnNoPull:A.a.createFatLineMat({width:2,color:"#ffffff",opacity:.5}),columnNoPullselected:A.a.createFatLineMat({width:2,color:"#f0ff00",opacity:.3}),flplsplitLine:A.a.createFatLineMat({width:1,color:"#434343"}),border:A.a.createFatLineMat({width:isMobile?2:3,color:"#4fffff",opacity:1})}},getwallMat:function(){var e={default:new THREE.MeshBasicMaterial({transparent:!0,depthTest:!1,side:THREE.DoubleSide,color:"#00c8af",opacity:0}),selected:new THREE.MeshBasicMaterial({transparent:!0,depthTest:!1,side:THREE.DoubleSide,color:"#00c8af",opacity:.8}),selected2:new THREE.MeshBasicMaterial({transparent:!0,depthTest:!1,side:THREE.DoubleSide,color:"#00c8af",opacity:.3}),selected3:new THREE.MeshBasicMaterial({transparent:!0,depthTest:!1,side:THREE.DoubleSide,color:"#00c8af",opacity:.5}),blank1:new THREE.MeshPhongMaterial({color:"#464646",side:THREE.DoubleSide,shininess:1,name:"blank1"}),blank2:new THREE.MeshPhongMaterial({color:"#464646",side:THREE.DoubleSide,shininess:1,polygonOffset:!0,polygonOffsetFactor:-.75,polygonOffsetUnits:-4,name:"blank2"}),panoMat:k.model.chunks[0].materialInside,panoMatOutside:new h.a({defines:{checkDistance:""},side:THREE.DoubleSide,transparent:!0,depthTest:!f.a.detectIE(),polygonOffset:!0,polygonOffsetFactor:-.75,polygonOffsetUnits:-4})};return e.panoMatOutside.uniforms.opacity.value=1,e.panoMatOutside.uniforms.modelAlpha.value=0,e.panoMat.polygonOffsetFactor=-.75,e.panoMat.polygonOffsetUnits=-4,e},getballMat:function(){return{default:new THREE.MeshBasicMaterial({transparent:!0,depthTest:!1,color:"#00c8af",opacity:.8}),selected:new THREE.MeshBasicMaterial({transparent:!0,depthTest:!1,color:"#f0ff00",opacity:.8})}},getBallRingMat:function(){return new THREE.MeshBasicMaterial({map:l.a.load(c.a.imgRoot+"point_circle_click.png",null,null,{antialias:!1}),transparent:!0,depthTest:!1})},getBallMoveMat:function(){return{default:new THREE.MeshBasicMaterial({map:l.a.load(c.a.imgRoot+"direction_default.png",null,null,{antialias:!1}),transparent:!0,depthTest:!1}),selected:new THREE.MeshBasicMaterial({map:l.a.load(c.a.imgRoot+"direction_click.png",null,null,{antialias:!1}),transparent:!0,depthTest:!1})}},getLineMoveMat:function(){return{default:new THREE.MeshBasicMaterial({map:l.a.load(c.a.imgRoot+"move_default.png",null,null,{antialias:!1}),transparent:!0,depthTest:!1,side:THREE.DoubleSide}),selected:new THREE.MeshBasicMaterial({map:l.a.load(c.a.imgRoot+"move_click.png",null,null,{antialias:!1}),transparent:!0,depthTest:!1,side:THREE.DoubleSide})}},getUnPosPlaneGeo:function(){var e=new Uint16Array([0,1,2,0,2,3]),t=new Float32Array([0,0,1,0,1,1,0,1]),i=new THREE.BufferGeometry;return i.setIndex(new THREE.BufferAttribute(e,1)),i.addAttribute("uv",new THREE.BufferAttribute(t,2)),function(){return i}}(),getPlaneGeo:function(e,t,i,o){var g=this.getUnPosPlaneGeo().clone(),n=new Float32Array([e.x,e.y,e.z,t.x,t.y,t.z,i.x,i.y,i.z,o.x,o.y,o.z]);return g.addAttribute("position",new THREE.BufferAttribute(n,3)),g.computeVertexNormals(),g.computeBoundingSphere(),g},drawPlane:function(e,t,i,o,g){return new THREE.Mesh(this.getPlaneGeo(e,t,i,o),g)},movePlane:function(e,t,i,o,g){var n=new Float32Array([t.x,t.y,t.z,i.x,i.y,i.z,o.x,o.y,o.z,g.x,g.y,g.z]);e.geometry.addAttribute("position",new THREE.BufferAttribute(n,3))},getPullGeo:function(){var e=isMobile?.3:.2,t=new Float32Array([-e,0,e,e,0,e,e,0,-e,-e,0,-e]),i=o.getUnPosPlaneGeo().clone();return i.addAttribute("position",new THREE.BufferAttribute(t,3)),i},getShapeGeo:function(e){var t=new THREE.Shape;t.moveTo(e[0].x,e[0].y);for(var i=1,o=e.length;i<o;i++)t.lineTo(e[i].x,e[i].y);return new THREE.ShapeGeometry(t)}};function pe(){$("#architecture li").eq(4).removeClass("hide"),$("#overlayProp").removeClass("hide"),$("#architecture li").eq(4).on("click",(function(){n.objCursorType="overlay",$("#player").css("cursor","url(images/cad_window.png), auto")}));var e=new(0,i(302).default)(k.camera,k.domElement,k);setTimeout((function(){n.transformControls=e,n.meshGroup.add(e)}),100);var t=i(10).default;if(n.useCssRender){var g=new THREE.CSS3DRenderer;g.setSize($("#player").width(),$("#player").height()),g.domElement.style.position="absolute",g.domElement.style.top=0,$("#hotspot .overlay")[0].appendChild(g.domElement);var a=new THREE.Scene;se.prototype.renderCssElem=function(){n.shouldRenderCSSElem&&g.render(a,k.camera)}}se.prototype.resizeOverlay=function(e,t){if(this.useCssRender&&this.shouldRenderCSSElem&&this.setSize(e,t),this.openOverlay){var i=this.getOverlayOpenPos(n.openOverlay);n.openOverlay.openPos.copy(i),n.openOverlay.opened&&(this.useCssRender?n.openOverlay.cssObject.position.copy(i):n.openOverlay.position.copy(i))}},se.prototype.hoverOverlay=function(e){if(A&&e)e=(t=e.parent).planeCover;else var t=e;if(e){if(t!=n.hoveringPlane){n.hoveringPlane&&this.hoverOverlay(null);for(var i=e.geometry.vertices,g=new THREE.Object3D,a=[0,1,3,2],r=0;r<4;r++){var C=[i[a[r]].x,i[a[r]].y,i[a[r]].z,i[a[(r+1)%4]%4].x,i[a[(r+1)%4]%4].y,i[a[(r+1)%4]%4].z];g.add(o.createFatLine(C,{material:O.lineMats.border}))}e.add(g),n.hoveringPlane=t,O.lineMats.border.uniforms.opacity.value=0,T.a.cancelById(E.a.freeze.wallLineShine,!0),T.a.start(function(e){O.lineMats.border.uniforms.opacity.value=e}.bind(this),200,null,0,M.a[E.a.transition.blendEasing],"wallLineShine",E.a.freeze.wallLineShine),$("#player").css("cursor","pointer")}}else if(n.hoveringPlane){var I=function(){s.children[0].children.forEach((function(e){e.geometry.dispose()})),s.remove(s.children[0])},s=A?n.hoveringPlane.planeCover:n.hoveringPlane;T.a.cancelById(E.a.freeze.wallLineShine),T.a.start(function(e){O.lineMats.border.uniforms.opacity.value=1-e}.bind(this),200,I,0,M.a[E.a.transition.blendEasing],"wallLineShine",E.a.freeze.wallLineShine,I),n.hoveringPlane=null}},se.prototype.getOverlayOpenPos=function(e){var t=e.width/(.9*$("#player").width()),i=e.height/(.9*$("#player").height()),o=1/Math.max(t,i),g=-e.width*o/$("#player").width(),n=k.cameraControls.activeControl?k.cameraControls.activeControl.camera:k.camera,a=new THREE.Vector3(g,0,-1).unproject(n).clone().sub(k.camera.position),r=k.getDirection(),C=r.angleTo(a),I=e.width/2/Math.tan(C);A&&(I+=e.planeCover.position.length());var s=k.camera.position.clone().add(r.clone().multiplyScalar(I));return this.useCssRender||this.updatePlaneElemStyle(o),s},se.prototype.updatePlaneElemStyle=function(e){this.openOverlay.elem.css({width:this.openOverlay.width*e+"px",height:this.openOverlay.height*e+"px"})};se.prototype.clickOverlay=function(e){if(!this.openOverlay||e){var t=A&&e?e.planeCover:e;if("video"==e.overlayType&&t.material.map.image.play(),this.editing)return $("#overlayProp").removeClass("atRight"),n.updateOverlayPanel(e),void r(e);t.material.depthTest=!1,this.openOverlay=e;var i=$("<div></div>");t.material.map?"video"==e.overlayType?i.append($(t.material.map.image)):(i.css("background-image","url("+t.material.map.image.src+")"),i.css("background-size","100% 100%")):i.css("background","rgba(0, 200, 175, 0.4)"),e.elem=i,e.openPos=n.getOverlayOpenPos(e);var o=new THREE.Mesh;o.position.copy(e.openPos),o.lookAt(k.camera.position);if(this.useCssRender){g.setSize($("#player").width(),$("#player").height()),i.css("width",Math.round(1e3*e.width)+"px"),i.css("height",Math.round(1e3*e.height)+"px"),$("#hotspot .overlay").removeClass("hide");var C=new THREE.CSS3DObject(i[0]);C.position.copy(e.position),C.quaternion.copy(e.quaternion),C.baseScale="scale(0.001)",a.add(C),e.cssObject=C,n.shouldRenderCSSElem=!0,T.a.start((function(t){var i=e.position,o=e.openPos;e.cssObject.position.set(i.x*(1-t)+o.x*t,i.y*(1-t)+o.y*t,i.z*(1-t)+o.z*t)}),500,(function(){e.opened=!0}),0,M.a[E.a.transition.blendEasing],"pos",E.a.freeze.clickOverlay),T.a.start(D.a.quaternion(C.quaternion,o.quaternion,(function(e){})),500,(function(){e.opened=!0}),0,M.a[E.a.transition.blendEasing],"qua",E.a.freeze.clickOverlay)}else e.oriPos=e.position.clone(),e.oriQua=e.quaternion.clone(),i.css({left:"50%",top:"50%",transform:"translate(-50%,-50%)",position:"absolute"}),$("#hotspot .overlay").append(i),T.a.start((function(t){var i=e.oriPos,o=e.openPos;e.position.set(i.x*(1-t)+o.x*t,i.y*(1-t)+o.y*t,i.z*(1-t)+o.z*t)}),500,null,0,M.a[E.a.transition.blendEasing],"pos",E.a.freeze.clickOverlay),T.a.start(D.a.quaternion(e.quaternion,o.quaternion,(function(e){})),500,(function(){e.opened=!0,$("#hotspot .overlay").removeClass("hide"),$("#hotspot .overlay").css("opacity",0),setTimeout((function(){$("#hotspot .overlay").css("opacity",1),e.visible=!1}),100)}),0,M.a[E.a.transition.blendEasing],"qua",E.a.freeze.clickOverlay)}},se.prototype.closeOverlayPanel=function(){n.editPlane=null,r(null)},$("#hotspot .overlay").on("mouseup",(function(){var e=n.openOverlay,t=A?e.planeCover:e;e.opened&&(e.opened=!1,n.useCssRender?(T.a.start((function(t){var i=e.openPos,o=e.position;e.cssObject.position.set(i.x*(1-t)+o.x*t,i.y*(1-t)+o.y*t,i.z*(1-t)+o.z*t)}),200,(function(){a.remove(e.cssObject),n.openOverlay=null,$("#hotspot .overlay").addClass("hide"),n.shouldRenderCSSElem=!1}),0,M.a[E.a.transition.blendEasing],"closeOverlay",E.a.freeze.clickOverlay),T.a.start(D.a.quaternion(e.cssObject.quaternion,e.quaternion,(function(e){})),200,(function(){}),0,M.a[E.a.transition.blendEasing],"closeOverlayQua",E.a.freeze.clickOverlay)):($("#hotspot .overlay").html("").addClass("hide"),"video"==e.overlayType&&setTimeout((function(){t.material.map.image.play()}),100),n.openOverlay.visible=!0,T.a.start((function(t){var i=e.openPos,o=e.oriPos;e.position.set(i.x*(1-t)+o.x*t,i.y*(1-t)+o.y*t,i.z*(1-t)+o.z*t)}),200,(function(){n.openOverlay=null,t.material.depthTest=!0}),0,M.a[E.a.transition.blendEasing],"closeOverlay",E.a.freeze.clickOverlay),T.a.start(D.a.quaternion(e.quaternion,e.oriQua,(function(e){})),200,(function(){}),0,M.a[E.a.transition.blendEasing],"closeOverlayQua",E.a.freeze.clickOverlay)))}));var A=!0;function r(t){t?e.attach(t):e.detach()}se.prototype.addPlane=function(e){var t=e.point,i=new THREE.Mesh(new THREE.PlaneGeometry(E.a.overlay.width,E.a.overlay.height,1,1),new THREE.MeshBasicMaterial({color:"#00c8af",opacity:.4,transparent:!0,polygonOffset:!0,polygonOffsetFactor:-.9,polygonOffsetUnits:-4}));if(i.renderOrder=3,A){var o=new THREE.Mesh(new THREE.BoxGeometry(E.a.overlay.width,E.a.overlay.height,.01),new THREE.MeshBasicMaterial({color:"#eeeeee",transparent:!0,opacity:1}));o.position.set(0,0,.005),o.renderOrder=3;var g=i;g.position.set(0,0,.01),(i=new THREE.Object3D).add(g),i.add(o),i.box=o,i.planeCover=g}i.width=E.a.overlay.width,i.height=E.a.overlay.height,i.position.copy(t),k.getMouseDirection().angleTo(e.face.normal)<Math.PI/2?(i.lookAt(e.face.normal.clone().negate().add(t)),i.position.add(e.face.normal.clone().negate().multiplyScalar(.01))):(i.lookAt(e.face.normal.clone().add(t)),i.position.add(e.face.normal.clone().multiplyScalar(.01))),k.model.add(i),n.overlayPlanes.push(i),n.clickOverlay(i),$("#player").css("cursor","")},se.prototype.updateOverlayPanel=function(e){var t;e&&(n.editPlane=e,A?e.planeCover.material.map&&(t=e.planeCover.material.map.image.src):e.material.map&&(t=e.material.map.image.src));var i=e.width/200,o=e.height/160,g=1/Math.max(i,o),a=Math.round(e.width*g),r=Math.round(e.height*g);$("#overlayUpload .preview").css({"background-image":t?"url("+t+")":"",width:a+"px",height:r+"px"}),$('#overlayUpload .preview [attr-type="height"]').text(C.a.toPrecision(e.width,2)),$('#overlayUpload .preview [attr-type="width"]').text(C.a.toPrecision(e.height,2))},window.addEventListener("keydown",(function(t){var i;if(n.editing){switch(t.which){case 87:i="translate";break;case 69:i="rotate";break;case 82:i="scale"}i&&e.mode!=i&&(e.mode=i)}}));var I=function(e){var t=A?n.editPlane.planeCover:n.editPlane;if(t.material.map){var i=t.material.map.image,o="video"==n.editPlane.overlayType?i.videoWidth:i.width,g="video"==n.editPlane.overlayType?i.videoHeight:i.height;if("suitSize"==e){var a=Math.min(Math.max(o,g)/200,1);if(o>g)var r=a,C=a*g/o;else C=a,r=a*o/g}else if(o/g<n.editPlane.width/n.editPlane.height)r=o/g*n.editPlane.height,C=n.editPlane.height;else C=g/o*n.editPlane.width,r=n.editPlane.width;!function(e,t,i){e.scale.setX(t/E.a.overlay.width),e.scale.setY(i/E.a.overlay.height),e.width=t,e.height=i,n.updateOverlayPanel(e)}(n.editPlane,r,C)}};$("#useImgRatio").on("click",I);var c=$('<input type="file" style="display:none" accept="image/*, video/*"></input>');$("#overlayUpload .preview").on("click",(function(){c.click()})),c.on("change",(function(e){var i=e.target;if(!window.FileReader)return s.a.gui.showAskBox("",R.a.get("您的浏览器不支持上传文件")),void exitUpload(i);if(0!==e.target.files.length){var o=e.target.files[0],g=new FileReader;g.readAsDataURL(o),g.onload=function(e){var i=t.dataURLtoBlob(e.target.result),g=window.URL.createObjectURL(i),a=A?n.editPlane.planeCover:n.editPlane;if("mp4"==function(e){return e.indexOf(".")>-1?e.split(".").pop():""}(o.name)){var r=$('<video controls="controls" autoplay loop x5-playsinline="" webkit-playsinline="true" playsinline="true" controlslist="nodownload"></video>')[0];r.setAttribute("crossOrigin","Anonymous"),$(r).on("contextmenu",(function(){return!1})),$(r).attr("src",g),$(r).css("width","100%"),$(r).css("height","100%"),r.base64Src=e.target.result,a.material.map=new THREE.VideoTexture(r),a.material.map.image.play(),n.editPlane.overlayType="video",$("#overlayUpload .preview").css("background-image","").append($(r)),r.addEventListener("loadeddata",(function(e){I("suitSize")}))}else{var C=new Image;C.src=g,C.base64Src=e.target.result,$("#overlayUpload .preview video").remove(),$("#overlayUpload .preview").css("background-image","url("+C.src+")"),n.openOverlay==n.editPlane&&$(n.openOverlay.cssObject.element).css({"background-image":"url("+C.src+")",opacity:"1"}),a.material.map=l.a.load(C.src,I.bind(this,"suitSize")),n.editPlane.overlayType="image"}a.material.opacity=1,a.material.color=new THREE.Color(1,1,1),a.material.needsUpdate=!0},e.target.value=""}}))}se.prototype.tranHeight=function(e,t){return"show"==t?100*(e+1.6).toFixed(2):e/100-1.6},se.prototype.setLabelPosAndText=function(){for(var e in this.rooms)this.rooms[e].setLabelPos(),this.rooms[e].setLabelText()};var fe={getFloorJson:function(){return Store.floorJson}};fe.createDesign=function(e){var t;return o=$.extend(A.a,r.a,he),(n=new se(e)).initEvent(),f.a.urlHasValue("overlay")&&pe(),n.buildAll(),n.defaultValue=q,(t=new THREE.DirectionalLight(16777215,1)).position.set(1,2,2).normalize(),s.a.sceneRenderer.scene.add(t),n.light=t,n.light.visible=!1,n},fe.storeOriRoomForTag=function(){var e=[],t={};for(var i in n.geometry2Ds)t[i]=n.geometry2Ds[i].createNoObjWall();for(var i in n.rooms){var o={};o.id=i,o.panos=n.CAD.getFaceCamera(i),o.wallMeshes=[],n.rooms[i].CADroom.forEach((function(e){o.wallMeshes.push(t[e.in3D.id])}));var g=new THREE.Mesh(n.rooms[i].floorMesh.geometry.clone(),O.wallMats.selected),a=g.geometry,A=new THREE.Matrix4;A.set(1,0,0,0,0,1,0,n.rooms[i].bottom,0,0,1,0,0,0,0,1),a.applyMatrix(A),o.wallMeshes.push(g),e.push(o)}return e};t.default=fe},,,function(e,t,i){"use strict";i.r(t),function(e){i(49),i(29),i(69);var t,o,g,n,a=i(44),A=i.n(a),r=(i(38),i(23)),C=i.n(r),I=(i(95),i(40)),s=i.n(I),l=i(25),c=i.n(l),u=i(28),d=i.n(u),h=i(34),p=i.n(h),f=i(35),m=i.n(f),v=i(19),y=i.n(v),b=(i(257),i(258),i(246),i(247),i(138),i(248),i(261),i(249),i(250),i(167)),w=(i(260),i(272),i(259),i(0)),x=i(203),E=i(9),P=i(4),T=i(142),D=i(5),M=i(1),S=i(204),R=i(2),k=i(6),O=(i(118),i(7)),L=i(205),B=i(13),F=i(102),j=i(207),N=i(206),H=(i(310),i(3));function z(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function V(){this.dom=document.getElementById("player"),this.object3d=null,this.quickstart=!1,this.sceneRenderer=new x.a,this.position=new THREE.Vector3(15,10,15),this.gui=w.a.gui,this.gui.init(),k.a.sceneImgRoot="images/images"+R.a.projectNum+"/",window.ifTest=O.a.urlHasValue("test")||!1,this.checkLogin()}w.a.playGuider=new j.a(w.a.player),w.a.recordGuider=new(function(e){p()(o,e);var t,i=(t=o,function(){var e,i=y()(t);if(z()){var o=y()(this).constructor;e=Reflect.construct(i,arguments,o)}else e=i.apply(this,arguments);return m()(this,e)});function o(){return c()(this,o),i.call(this,w.a.player)}return d()(o,[{key:"setFragment",value:function(){}},{key:"startRecord",value:function(){this._capData=Store.capData,this._frameData=Store.frameData,this._playData=Store.playData,this._thumbs=Store.thumbs,this.removeData(),this.controlRecord(!0)}},{key:"stopRecord",value:function(){this.controlRecord(!1)}},{key:"cancelRecord",value:function(){this._capData&&(Store.capData=this._capData,Store.frameData=this._frameData,Store.playData=this._playData,Store.thumbs=this._thumbs),this._capData=null,this._frameData=null,this._playData=null,this._thumbs=null}},{key:"startPreview",value:function(){this.__stop=!1,$("nav ._tour i").addClass("icon_suspend");var e=function(t){this.__stop||(this.__stop=!0,$(window).off("touchstart",e),$(window).off("mousedown",e),w.a.playGuider.stop())}.bind(this);$(window).on("touchstart mousedown",e)}},{key:"stopPreview",value:function(){this.__stop=!0,setTimeout((function(){$("nav ._tour i").removeClass("icon_suspend"),$("header,header >*,footer,nav").removeClass("unable"),$("#player,#map").css("pointer-events","")}),300)}}]),o}(N.a)),V.prototype.initBeforeLoad=function(e){this.sceneRenderer.createScene(),this.guider=w.a.guider,this.loaders=new b.a(w.a.player,this.guider)},V.prototype.start=s()(C.a.mark((function e(){var t,i,o,g,n;return C.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,!1,this.initBeforeLoad(!1),t=1e3,w.a.player,i=w.a.modelManager,o=w.a.controls,g=w.a.displayController,this.quickstart&&this.quickEnter(),e.next=11,this.loaders.load(this.guider);case 11:return P.a.info("模型全部加载好了!"),w.a.player.model.build(),w.a.player.model.supportsTiles&&w.a.tileDownloader.start(),o.init(this.dom,i),g.setFadeInSpeed(t),w.a.qualityManager.init(i),w.a.tileDownloader.init(w.a.qualityManager),w.a.panoRenderer.init(this.sceneRenderer,w.a.tileDownloader,w.a.qualityManager),i.init(w.a.tileDownloader,w.a.panoRenderer,w.a.qualityManager),i.addModel(w.a.player.model),this.sceneRenderer.addComponent(E.a),w.a.container=this.dom,w.a.camera=this.sceneRenderer.camera,w.a.sceneRenderer=this.sceneRenderer,window.edit&&w.a.editor.init(),this.initAfterLoad(),this.sceneRenderer.started||this.startSceneRenderer(this.sceneRenderer,this.dom),n=Object(L.a)(this),w.a.player.start(n),w.a.player.model.supportsTiles||new S.a(w.a.player.model,w.a.player).start(),this.quickstart&&(this.sceneRenderer.removeComponent(w.a.quickstartManager),w.a.quickstartManager.destroy(),n.pano.enter()),this.sceneRenderer.once(F.a.AfterRender,function(){this.gui.loadFinish()}.bind(this)),console.log("initInformation"),e.next=36,w.a.loaders.loadGuider();case 36:console.log("guider.init end"),edit&&(w.a.editor.bind(),isMobile||$('.toolLeft li[data-name="information"]').click()),e.next=44;break;case 40:e.prev=40,e.t0=e.catch(0),Sentry.captureException(e.t0),console.error(e.t0);case 44:case"end":return e.stop()}}),e,this,[[0,40]])}))),V.prototype.initAfterLoad=function(){this.sceneRenderer.scene.add(w.a.player.model),this.sceneRenderer.qualityManager=w.a.qualityManager,w.a.player.init(w.a),w.a.player.setScene(this.sceneRenderer.scene),w.a.tagManager.init(w.a.modelManager,w.a.player),w.a.director.init(w.a.player,w.a.modelManager),w.a.displayController.init(null,w.a.player,w.a.modelManager,this.dom),T.a.bindEvents(w.a.player),this.sceneRenderer.addComponent(w.a.tagManager),this.sceneRenderer.addComponent(w.a.player),this.sceneRenderer.addComponent(w.a.panoRenderer),w.a.automation.init(w.a.director,w.a.player.cameraControls,w.a.player,null,w.a.sceneRenderer)},V.prototype.startSceneRenderer=function(e,t){w.a.player.cameraControls.cameras.panorama.fov=M.a.insideFOV,e.start(t)},V.prototype.quickEnter=function(){P.a.warn("Quickstart engaged. Hold on to your knickers.");var e=w.a.controls.controls[D.a.PANORAMA];w.a.quickstartManager=new QuickstartManager(w.a.qualityManager,this.sceneRenderer.scene,this.sceneRenderer.camera,e,this.dom),this.startSceneRenderer(this.sceneRenderer,this.dom,w.a.player.model);w.a.quickstartManager.load(initialData).then(function(){this.sceneRenderer.addComponent(w.a.quickstartManager),this.sceneRenderer.once(F.a.AfterRender,(function(){P.a.warn("First render after quickstart load finished.")}))}.bind(this))},V.prototype.checkLogin=function(){var e=$.Deferred(),t=this;if("zhiHouse"==R.a.applicationName||window.ifTest)return t.start(),e.resolve();var i={url:"api/scene/isLogin",group:{3001:function(){P.a.info("缺少必要参数"),w.a.gui.showAskBox("",H.a.get("登录异常(代号3001)"),{text:H.a.get("确定"),type:"submit",wait:!0})},3004:function(){try{window.appLoginToken="",autoLogin.login2(w.a.gui.showAskBox.bind(this,"",H.a.get("您没有登录,请于主页登录后再编辑"),{btns:[{text:H.a.get("去登录"),type:"submit",wait:!0,fuc:function(){window.open(isMobile?k.a.Mobile_Login:"index.html","blank")}},{text:H.a.get("登录完毕,继续"),type:"cancel",fuc:function(){o()}}],donClose:!0}))}catch(e){console.log(e)}},5014:function(){w.a.gui.showAskBox(H.a.get("您未登录该场景的账户"),H.a.get("请退出后重新登录该场景的账户"),{text:H.a.get("确定"),type:"submit",wait:!0,donClose:!0})},5015:function(){w.a.gui.showAskBox(H.a.get("您未登录该场景的账户"),H.a.get("请退出后重新登录该场景的账户"),{text:H.a.get("确定"),type:"submit",wait:!0,donClose:!0})},5010:function(){w.a.gui.showAskBox("",H.a.get("找不到场景对应相机"),{text:H.a.get("确定"),type:"submit",wait:!0})},5005:function(){w.a.gui.showAskBox("",H.a.get("该场景不存在"),{text:H.a.get("确定"),type:"submit",wait:!0})},"-1":function(){w.a.gui.showAskBox("",H.a.get("异常错误"),{text:H.a.get("确定"),type:"submit",wait:!0})}},other:function(e){Store.CAMERA_ID=e,t.start()},error:function(){window.appLoginToken="",w.a.gui.showAskBox(H.a.get("登录验证出错"),H.a.get("若一直无法登录,请联系客服。"),{btns:[{text:H.a.get("去登录"),type:"submit",wait:!0,fuc:function(){window.open(isMobile?CONSTANT.Mobile_Login:"index.html","blank")}},{text:H.a.get("登录完毕,继续"),type:"cancel",fuc:function(){o()}}],donClose:!0})}},o=function(){if(window.appLoginToken||(window.appLoginToken=localStorage.getItem("token")||""),!window.appLoginToken)return window.appLoginToken="",w.a.gui.showAskBox.bind(this,"",H.a.get("您没有登录,请于主页登录后再编辑"),{btns:[{text:H.a.get("去登录"),type:"submit",wait:!0,fuc:function(){window.open(isMobile?k.a.Mobile_Login:"index.html","blank")}},{text:H.a.get("登录完毕,继续"),type:"cancel",fuc:function(){setTimeout((function(){t.checkLogin()}),500)}}],donClose:!0})();$.ajax({url:"api/scene/isLogin",type:"POST",headers:{token:window.appLoginToken},data:{num:R.a.projectNum},success:function(e){B.a.dealAjax({dataDeal:i,data:e.code})},error:function(e){B.a.dealAjax({dataDeal:i,type:"error"})}})};return o(),e.promise()},t=$(".loadingLogo"),$(".bottom-logo"),(o=new Image).src="".concat(R.a.prefixServerOSS,"images/images").concat(R.a.projectNum,"/logo-main.png?").concat(Date.now()),o.onload=function(){var e=80,i=80;o.width-o.height>5?(e=160,isMobile&&(e=130,i=65)):isMobile&&(e=65,i=65),t.find(".img").css({width:e,height:i,"background-image":"url(".concat(o.src,")")})},o.onerror=function(){t.find(".icon_logo").removeClass("hide")},g=window,n=function(){return V},"function"==typeof define&&i(256)?define(["App"],n):"object"===A()(e)&&e.exports?e.exports=n():g.App=n()}.call(this,i(215)(e))},function(e,t){var i,o=(i=window.navigator.userAgent.toLocaleLowerCase(),{isIOS:/iphone|ipad|ipod/.test(i),isAndroid:/android/.test(i)});function g(e){for(var t=0;e&&e.offsetParent!==document.documentElement;)t+=e.offsetTop,e=e.offsetParent;return t}var n=null;document.documentElement.addEventListener("focusin",(function(e){var t=g(e.target);if(o.isAndroid){var i=window.innerHeight;clearTimeout(n),n=setTimeout((function(){i===window.innerHeight?window.scrollTo({left:0,top:t/2}):window.scrollTo({left:0,top:t-window.innerHeight/2})}),500),window.scrollTo({left:0,top:t-window.innerHeight/2})}else window.scrollTo({left:0,top:t/2})})),document.documentElement.addEventListener("focusout",(function(e){clearTimeout(n),window.scrollTo({left:0,top:0})}))}]);
- //# sourceMappingURL=editApp.js.map
|