diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a18622..07e4327 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ ## Changelog +### v0.5.0 - 2019/07/19 + +- Update dependency `pannellum` to `v2.5.2` + ### v0.4.8 - 2019/05/29 - Limit pitch within -90 and 90. diff --git a/lib/pannellum/pannellum.css b/lib/pannellum/pannellum.css deleted file mode 100644 index 455d036..0000000 --- a/lib/pannellum/pannellum.css +++ /dev/null @@ -1,2 +0,0 @@ -/* Pannellum 2.4.1, https://github.com/mpetroff/pannellum */ -.pnlm-container{margin:0;padding:0;overflow:hidden;position:relative;cursor:default;width:100%;height:100%;font-family:Helvetica,"Nimbus Sans L","Liberation Sans",Arial,sans-serif;background:#f4f4f4 url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2267%22%20height%3D%22100%22%20viewBox%3D%220%200%2067%20100%22%3E%0A%3Cpath%20stroke%3D%22%23ccc%22%20fill%3D%22none%22%20d%3D%22M33.5%2C50%2C0%2C63%2C33.5%2C75%2C67%2C63%2C33.5%2C50m-33.5-50%2C67%2C25m-0.5%2C0%2C0%2C75m-66.5-75%2C67-25m-33.5%2C75%2C0%2C25m0-100%2C0%2C50%22%2F%3E%0A%3C%2Fsvg%3E%0A') repeat;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none;outline:0;line-height:1.4;contain:content;touch-action:none}.pnlm-container *{box-sizing:content-box}.pnlm-ui{position:absolute;width:100%;height:100%;z-index:1}.pnlm-grab{cursor:grab;cursor:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A') 12 8,default}.pnlm-grabbing{cursor:grabbing;cursor:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s5.07-5.29%203.77-6.74c-1.31-1.45-2.53%200.14-2.53%200.14s2.74-3.29%200.535-4.06c-2.2-0.769-2.52%201.3-2.52%201.3s0.81-2.13-1.12-2.13-1.52%201.77-1.52%201.77-0.261-1.59-1.87-1.12c-1.61%200.468-0.874%202.17-0.874%202.17s-0.651-1.55-2-0.445c-1.35%201.11-0.68%202.25-0.365%203.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A') 12 8,default}.pnlm-sprite{background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2226%22%20height%3D%22208%22%3E%0A%3Ccircle%20fill-opacity%3D%22.78%22%20cy%3D%22117%22%20cx%3D%2213%22%20r%3D%2211%22%20fill%3D%22%23fff%22%2F%3E%0A%3Ccircle%20fill-opacity%3D%22.78%22%20cy%3D%22143%22%20cx%3D%2213%22%20r%3D%2211%22%20fill%3D%22%23fff%22%2F%3E%0A%3Ccircle%20cy%3D%22169%22%20cx%3D%2213%22%20r%3D%227%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%2F%3E%0A%3Ccircle%20cy%3D%22195%22%20cx%3D%2213%22%20r%3D%227%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%2F%3E%0A%3Ccircle%20cx%3D%2213%22%20cy%3D%22195%22%20r%3D%222.5%22%2F%3E%0A%3Cpath%20d%3D%22m5%2083v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-5%205v6h6v-6zm-5%205v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z%22%2F%3E%0A%3Cpath%20d%3D%22m13%20110a7%207%200%200%200%20-7%207%207%207%200%200%200%207%207%207%207%200%200%200%207%20-7%207%207%200%200%200%20-7%20-7zm-1%203h2v2h-2zm0%203h2v5h-2z%22%2F%3E%0A%3Cpath%20d%3D%22m5%2057v6h2v-4h4v-2zm10%200v2h4v4h2v-6zm-10%2010v6h6v-2h-4v-4zm14%200v4h-4v2h6v-6z%22%2F%3E%0A%3Cpath%20d%3D%22m17%2038v2h-8v-2z%22%2F%3E%0A%3Cpath%20d%3D%22m12%209v3h-3v2h3v3h2v-3h3v-2h-3v-3z%22%2F%3E%0A%3Cpath%20d%3D%22m13%20136-6.125%206.125h4.375v7.875h3.5v-7.875h4.375z%22%2F%3E%0A%3Cpath%20d%3D%22m10.428%20173.33v-5.77l5-2.89v5.77zm1-1.73%203-1.73-3.001-1.74z%22%2F%3E%0A%3C%2Fsvg%3E%0A')}.pnlm-container:-moz-full-screen{height:100%!important;width:100%!important;position:static!important}.pnlm-container:-webkit-full-screen{height:100%!important;width:100%!important;position:static!important}.pnlm-container:-ms-fullscreen{height:100%!important;width:100%!important;position:static!important}.pnlm-container:fullscreen{height:100%!important;width:100%!important;position:static!important}.pnlm-render-container{cursor:inherit;position:absolute;height:100%;width:100%}.pnlm-controls{margin-top:4px;background-color:#fff;border:1px solid #999;border-color:rgba(0,0,0,0.4);border-radius:3px;cursor:pointer;z-index:2;-webkit-transform:translateZ(9999px);transform:translateZ(9999px)}.pnlm-control:hover{background-color:#f8f8f8}.pnlm-controls-container{position:absolute;top:0;left:4px;z-index:1}.pnlm-zoom-controls{width:26px;height:52px}.pnlm-zoom-in{width:100%;height:50%;position:absolute;top:0;border-radius:3px 3px 0 0}.pnlm-zoom-out{width:100%;height:50%;position:absolute;bottom:0;background-position:0 -26px;border-top:1px solid #ddd;border-top-color:rgba(0,0,0,0.10);border-radius:0 0 3px 3px}.pnlm-fullscreen-toggle-button,.pnlm-orientation-button,.pnlm-hot-spot-debug-indicator{width:26px;height:26px}.pnlm-hot-spot-debug-indicator{position:absolute;top:50%;left:50%;width:26px;height:26px;margin:-13px 0 0 -13px;background-color:rgba(255,255,255,0.5);border-radius:13px;display:none}.pnlm-orientation-button-inactive{background-position:0 -156px}.pnlm-orientation-button-active{background-position:0 -182px}.pnlm-fullscreen-toggle-button-inactive{background-position:0 -52px}.pnlm-fullscreen-toggle-button-active{background-position:0 -78px}.pnlm-panorama-info{position:absolute;bottom:4px;background-color:rgba(0,0,0,0.7);border-radius:0 3px 3px 0;padding-right:10px;color:#fff;text-align:left;display:none;z-index:2;-webkit-transform:translateZ(9999px);transform:translateZ(9999px)}.pnlm-title-box{position:relative;font-size:20px;display:table;padding-left:5px;margin-bottom:3px}.pnlm-author-box{position:relative;font-size:12px;display:table;padding-left:5px}.pnlm-load-box{position:absolute;top:50%;left:50%;width:200px;height:150px;margin:-75px 0 0 -100px;background-color:rgba(0,0,0,0.7);border-radius:3px;text-align:center;font-size:20px;display:none;color:#fff}.pnlm-load-box p{margin:20px 0}.pnlm-lbox{position:absolute;top:50%;left:50%;width:20px;height:20px;margin:-10px 0 0 -10px;display:none}.pnlm-loading{animation-duration:1.5s;-webkit-animation-duration:1.5s;animation-name:pnlm-mv;-webkit-animation-name:pnlm-mv;animation-iteration-count:infinite;-webkit-animation-iteration-count:infinite;animation-timing-function:linear;-webkit-animation-timing-function:linear;height:10px;width:10px;background-color:#fff;position:relative}@keyframes pnlm-mv{from{left:0;top:0}25%{left:10px;top:0}50%{left:10px;top:10px}75%{left:0;top:10px}to{left:0;top:0}}@-webkit-keyframes pnlm-mv{from{left:0;top:0}25%{left:10px;top:0}50%{left:10px;top:10px}75%{left:0;top:10px}to{left:0;top:0}}.pnlm-load-button{position:absolute;top:50%;left:50%;width:200px;height:100px;margin:-50px 0 0 -100px;background-color:rgba(0,0,0,.7);border-radius:3px;text-align:center;font-size:20px;display:table;color:#fff;cursor:pointer}.pnlm-load-button:hover{background-color:rgba(0,0,0,.8)}.pnlm-load-button p{display:table-cell;vertical-align:middle}.pnlm-info-box{font-size:15px;position:absolute;top:50%;left:50%;width:200px;height:150px;margin:-75px 0 0 -100px;background-color:#000;border-radius:3px;display:table;text-align:center;color:#fff;table-layout:fixed}.pnlm-info-box a{color:#fff;word-wrap:break-word;overflow-wrap:break-word}.pnlm-info-box p{display:table-cell;vertical-align:middle;padding:0 5px 0 5px}.pnlm-error-msg{display:none}.pnlm-about-msg{font-size:11px;line-height:11px;color:#fff;padding:5px 8px 5px 8px;background:rgba(0,0,0,0.7);border-radius:3px;position:absolute;top:50px;left:50px;display:none;opacity:0;-moz-transition:opacity .3s ease-in-out;-webkit-transition:opacity .3s ease-in-out;-o-transition:opacity .3s ease-in-out;-ms-transition:opacity .3s ease-in-out;transition:opacity .3s ease-in-out;z-index:1}.pnlm-about-msg a:link,.pnlm-about-msg a:visited{color:#fff}.pnlm-about-msg a:hover,.pnlm-about-msg a:active{color:#eee}.pnlm-hotspot-base{position:absolute;visibility:hidden;cursor:default;vertical-align:middle;top:0;z-index:1}.pnlm-hotspot{height:26px;width:26px;border-radius:13px}.pnlm-hotspot:hover{background-color:rgba(255,255,255,0.2)}.pnlm-hotspot.pnlm-info{background-position:0 -104px}.pnlm-hotspot.pnlm-scene{background-position:0 -130px}div.pnlm-tooltip span{visibility:hidden;position:absolute;border-radius:3px;background-color:rgba(0,0,0,0.7);color:#fff;text-align:center;max-width:200px;padding:5px 10px;margin-left:-220px;cursor:default}div.pnlm-tooltip:hover span{visibility:visible}div.pnlm-tooltip:hover span:after{content:'';position:absolute;width:0;height:0;border-width:10px;border-style:solid;border-color:rgba(0,0,0,0.7) transparent transparent transparent;bottom:-20px;left:-10px;margin:0 50%}.pnlm-compass{position:absolute;width:50px;height:50px;right:4px;bottom:4px;border-radius:25px;background-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2250%22%20width%3D%2250%22%3E%0A%3Cpath%20d%3D%22m24.5078%206-3.2578%2018h7.5l-3.25781-18h-0.984376zm-3.2578%2020%203.2578%2018h0.9844l3.2578-18h-7.5zm1.19531%200.9941h5.10938l-2.5547%2014.1075-2.5547-14.1075z%22%2F%3E%0A%3C%2Fsvg%3E%0A');cursor:default;display:none}.pnlm-world{position:absolute;left:50%;top:50%}.pnlm-face{position:absolute;-webkit-transform-origin:0 0;transform-origin:0 0}.pnlm-dragfix,.pnlm-preview-img{position:absolute;height:100%;width:100%}.pnlm-preview-img{background-size:cover;background-position:center}.pnlm-lbar{width:150px;margin:0 auto;border:#fff 1px solid;height:6px}.pnlm-lbar-fill{background:#fff;height:100%;width:0}.pnlm-lmsg{font-size:12px}.pnlm-fade-img{position:absolute;top:0;left:0}.pnlm-pointer{cursor:pointer} \ No newline at end of file diff --git a/lib/pannellum/pannellum.htm b/lib/pannellum/pannellum.htm deleted file mode 100644 index c0ea550..0000000 --- a/lib/pannellum/pannellum.htm +++ /dev/null @@ -1,114 +0,0 @@ - - -Pannellum
\ No newline at end of file diff --git a/lib/pannellum/pannellum.js b/lib/pannellum/pannellum.js deleted file mode 100644 index 9d5ae59..0000000 --- a/lib/pannellum/pannellum.js +++ /dev/null @@ -1,108 +0,0 @@ -// Pannellum 2.4.1, https://github.com/mpetroff/pannellum -window.libpannellum=function(D,g,p){function ja(Z){function R(a,e){return 1==a.level&&1!=e.level?-1:1==e.level&&1!=a.level?1:e.timestamp-a.timestamp}function na(a,e){return a.level!=e.level?a.level-e.level:a.diff-e.diff}function M(a,e,d,g,m,c){this.vertices=a;this.side=e;this.level=d;this.x=g;this.y=m;this.path=c.replace("%s",e).replace("%l",d).replace("%x",g).replace("%y",m)}function La(a,e,g,p,m){var c;var f=e.vertices;c=oa(a,f.slice(0,3));var u=oa(a,f.slice(3,6)),y=oa(a,f.slice(6,9)),f=oa(a,f.slice(9, -12)),n=c[0]+u[0]+y[0]+f[0];-4==n||4==n?c=!1:(n=c[1]+u[1]+y[1]+f[1],c=-4==n||4==n?!1:4!=c[2]+u[2]+y[2]+f[2]);if(c){c=e.vertices;u=c[0]+c[3]+c[6]+c[9];y=c[1]+c[4]+c[7]+c[10];f=c[2]+c[5]+c[8]+c[11];n=Math.sqrt(u*u+y*y+f*f);f=Math.asin(f/n);u=Math.atan2(y,u)-p;u+=u>Math.PI?-2*Math.PI:u<-Math.PI?2*Math.PI:0;u=Math.abs(u);e.diff=Math.acos(Math.sin(g)*Math.sin(f)+Math.cos(g)*Math.cos(f)*Math.cos(u));u=!1;for(y=0;yg&&(c[0]=-1);1m&&(c[1]=-1);1d||1n;n++)0==l[n].width&&(l[n]=a)}}e===p&&(e="equirectangular");if("equirectangular"!=e&&"cubemap"!=e&&"multires"!=e)throw console.log("Error: invalid image type specified!"), -{type:"config error"};x=e;l=G;ka=Qa;qa=u||{};if(d){U&&(a.detachShader(d,U),a.deleteShader(U));V&&(a.detachShader(d,V),a.deleteShader(V));a.bindBuffer(a.ARRAY_BUFFER,null);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,null);d.texture&&a.deleteTexture(d.texture);if(d.nodeCache)for(G=0;Gn;n++)0f;f++)d[4*(b+a.width)+f]=d[4*(b+2*a.width)+f],d[4*(b+a.width*(a.height-2))+f]=d[4*(b+a.width*(a.height-3))+f];for(b=2;bf;f++)d[4*(b*a.width+1)+f]=d[4*(b*a.width+2)+f],d[4*((b+1)*a.width-2)+f]=d[4*((b+1)*a.width-3)+f];for(f=0;4>f;f++)d[4*(a.width+1)+f]=d[4*(2*a.width+2)+f],d[4*(2*a.width-2)+f]=d[4*(3*a.width-3)+f],d[4*(a.width*(a.height-2)+1)+f]=d[4* -(a.width*(a.height-3)+2)+f],d[4*(a.width*(a.height-1)-2)+f]=d[4*(a.width*(a.height-2)-3)+f];for(b=1;bf;f++)d[4*b+f]=d[4*(b+a.width)+f],d[4*(b+a.width*(a.height-1))+f]=d[4*(b+a.width*(a.height-2))+f];for(b=1;bf;f++)d[b*a.width*4+f]=d[4*(b*a.width+1)+f],d[4*((b+1)*a.width-1)+f]=d[4*((b+1)*a.width-2)+f];for(f=0;4>f;f++)d[f]=d[4*(a.width+1)+f],d[4*(a.width-1)+f]=d[4*(2*a.width-2)+f],d[a.width*(a.height-1)*4+f]=d[4*(a.width*(a.height-2)+1)+f],d[4*(a.width* -a.height-1)+f]=d[4*(a.width*(a.height-1)-2)+f];c.putImageData(e,0,0);E.call(this)};var E=function(){0n;n++)c=new Image,c.crossOrigin=qa.crossOrigin?qa.crossOrigin:"anonymous",c.side=n,c.onload=m,c.onerror=E,c.src="multires"==x?encodeURI(I.replace("%s",M[n])+"."+l.extension):encodeURI(l[n].src);y($)}else{if(!a)throw console.log("Error: no WebGL support detected!"), -{type:"no webgl"};"cubemap"==x&&y(C);l.fullpath=l.basePath?l.basePath+l.path:l.path;l.invTileResolution=1/l.tileResolution;G=Ma();xa=[];for(n=0;6>n;n++)xa[n]=G.slice(12*n,12*n+12),G=Ma();G=0;if("equirectangular"==x){if(G=a.getParameter(a.MAX_TEXTURE_SIZE),Math.max(l.width/2,l.height)>G)throw console.log("Error: The image is too big; it's "+l.width+"px wide, but this device's maximum supported size is "+2*G+"px."),{type:"webgl size error",width:l.width,maxWidth:2*G};}else if("cubemap"==x&&C>a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE))throw console.log("Error: The image is too big; it's "+ -width+"px wide, but this device's maximum supported size is "+G+"px."),{type:"webgl size error",width:width,maxWidth:G};u===p||u.horizonPitch===p&&u.horizonRoll===p||(ea=[u.horizonPitch==p?0:u.horizonPitch,u.horizonRoll==p?0:u.horizonRoll]);C=a.TEXTURE_2D;a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight);a.getShaderPrecisionFormat&&(e=a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_FLOAT))&&1>e.precision&&(ra=ra.replace("highp","mediump"));U=a.createShader(a.VERTEX_SHADER);e=s;"multires"== -x&&(e=k);a.shaderSource(U,e);a.compileShader(U);V=a.createShader(a.FRAGMENT_SHADER);e=sa;"cubemap"==x?(C=a.TEXTURE_CUBE_MAP,e=bb):"multires"==x&&(e=ta);a.shaderSource(V,e);a.compileShader(V);d=a.createProgram();a.attachShader(d,U);a.attachShader(d,V);a.linkProgram(d);a.getShaderParameter(U,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(U));a.getShaderParameter(V,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(V));a.getProgramParameter(d,a.LINK_STATUS)||console.log(a.getProgramInfoLog(d));a.useProgram(d); -d.drawInProgress=!1;e=u.backgroundColor?u.backgroundColor:[0,0,0];a.clearColor(e[0],e[1],e[2],1);a.clear(a.COLOR_BUFFER_BIT);d.texCoordLocation=a.getAttribLocation(d,"a_texCoord");a.enableVertexAttribArray(d.texCoordLocation);"multires"!=x?(F||(F=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,F),a.bufferData(a.ARRAY_BUFFER,new Float32Array([-1,1,1,1,1,-1,-1,1,1,-1,-1,-1]),a.STATIC_DRAW),a.vertexAttribPointer(d.texCoordLocation,2,a.FLOAT,!1,0,0),d.aspectRatio=a.getUniformLocation(d,"u_aspectRatio"), -a.uniform1f(d.aspectRatio,a.drawingBufferWidth/a.drawingBufferHeight),d.psi=a.getUniformLocation(d,"u_psi"),d.theta=a.getUniformLocation(d,"u_theta"),d.f=a.getUniformLocation(d,"u_f"),d.h=a.getUniformLocation(d,"u_h"),d.v=a.getUniformLocation(d,"u_v"),d.vo=a.getUniformLocation(d,"u_vo"),d.rot=a.getUniformLocation(d,"u_rot"),a.uniform1f(d.h,I/(2*Math.PI)),a.uniform1f(d.v,m/Math.PI),a.uniform1f(d.vo,c/Math.PI*2),"equirectangular"==x&&(d.backgroundColor=a.getUniformLocation(d,"u_backgroundColor"),a.uniform4fv(d.backgroundColor, -e.concat([1]))),d.texture=a.createTexture(),a.bindTexture(C,d.texture),"cubemap"==x?(a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l[1]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l[3]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l[4]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l[5]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l[0]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z, -0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l[2])):l.width<=G?(a.uniform1i(a.getUniformLocation(d,"u_splitImage"),0),a.texImage2D(C,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l)):(a.uniform1i(a.getUniformLocation(d,"u_splitImage"),1),I=g.createElement("canvas"),I.width=l.width,I.height=l.height,I=I.getContext("2d"),I.drawImage(l,0,0),m=I.getImageData(0,0,l.width/2,l.height),a.texImage2D(C,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,m),d.texture2=a.createTexture(),a.activeTexture(a.TEXTURE1),a.bindTexture(C,d.texture2),a.uniform1i(a.getUniformLocation(d, -"u_image1"),1),m=I.getImageData(l.width/2,0,l.width/2,l.height),a.texImage2D(C,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,m),a.texParameteri(C,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(C,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(C,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(C,a.TEXTURE_MAG_FILTER,a.LINEAR),a.activeTexture(a.TEXTURE0)),a.texParameteri(C,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(C,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(C,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(C, -a.TEXTURE_MAG_FILTER,a.LINEAR)):(d.vertPosLocation=a.getAttribLocation(d,"a_vertCoord"),a.enableVertexAttribArray(d.vertPosLocation),fa||(fa=a.createBuffer()),ya||(ya=a.createBuffer()),aa||(aa=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,ya),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),a.STATIC_DRAW),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,aa),a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),a.STATIC_DRAW),d.perspUniform=a.getUniformLocation(d,"u_perspMatrix"),d.cubeUniform= -a.getUniformLocation(d,"u_cubeMatrix"),d.level=-1,d.currentNodes=[],d.nodeCache=[],d.nodeCacheTimestamp=0);I=a.getError();if(0!==I)throw console.log("Error: Something went wrong with WebGL!",I),{type:"webgl error"};f()}};this.destroy=function(){Z!==p&&(z!==p&&Z.contains(z)&&Z.removeChild(z),S!==p&&Z.contains(S)&&Z.removeChild(S));if(a){var d=a.getExtension("WEBGL_lose_context");d&&d.loseContext()}};this.resize=function(){var g=D.devicePixelRatio||1;z.width=z.clientWidth*g;z.height=z.clientHeight* -g;a&&(1286==a.getError()&&Ha(),a.viewport(0,0,a.drawingBufferWidth,a.drawingBufferHeight),"multires"!=x&&a.uniform1f(d.aspectRatio,z.clientWidth/z.clientHeight))};this.resize();this.setPose=function(a,d){ea=[a,d]};this.render=function(g,e,k,s){var m;m=0;s===p&&(s={});s.roll&&(m=s.roll);if(ea!==p){var c=ea[0],f=ea[1],u=g,y=e,n=Math.cos(f)*Math.sin(g)*Math.sin(c)+Math.cos(g)*(Math.cos(c)*Math.cos(e)+Math.sin(f)*Math.sin(c)*Math.sin(e)),D=-Math.sin(g)*Math.sin(f)+Math.cos(g)*Math.cos(f)*Math.sin(e); -g=Math.cos(f)*Math.cos(c)*Math.sin(g)+Math.cos(g)*(-Math.cos(e)*Math.sin(c)+Math.cos(c)*Math.sin(f)*Math.sin(e));g=Math.asin(Math.max(Math.min(g,1),-1));e=Math.atan2(D,n);c=[Math.cos(u)*(Math.sin(f)*Math.sin(c)*Math.cos(y)-Math.cos(c)*Math.sin(y)),Math.cos(u)*Math.cos(f)*Math.cos(y),Math.cos(u)*(Math.cos(c)*Math.sin(f)*Math.cos(y)+Math.sin(y)*Math.sin(c))];f=[-Math.cos(g)*Math.sin(e),Math.cos(g)*Math.cos(e)];f=Math.acos(Math.max(Math.min((c[0]*f[0]+c[1]*f[1])/(Math.sqrt(c[0]*c[0]+c[1]*c[1]+c[2]*c[2])* -Math.sqrt(f[0]*f[0]+f[1]*f[1])),1),-1));0>c[2]&&(f=2*Math.PI-f);m+=f}if(a||"multires"!=x&&"cubemap"!=x){if("multires"!=x)k=2*Math.atan(Math.tan(0.5*k)/(a.drawingBufferWidth/a.drawingBufferHeight)),k=1/Math.tan(0.5*k),a.uniform1f(d.psi,e),a.uniform1f(d.theta,g),a.uniform1f(d.rot,m),a.uniform1f(d.f,k),!0===ka&&"equirectangular"==x&&(a.bindTexture(a.TEXTURE_2D,d.texture),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,l)),a.drawArrays(a.TRIANGLES,0,6);else{c=a.drawingBufferWidth/a.drawingBufferHeight; -f=2*Math.atan(Math.tan(k/2)*a.drawingBufferHeight/a.drawingBufferWidth);f=1/Math.tan(f/2);c=[f/c,0,0,0,0,f,0,0,0,0,100.1/-99.9,20/-99.9,0,0,-1,0];for(f=1;fl.tileResolution*Math.pow(2,f-1)*Math.tan(k/2)*0.707;)f++;d.level=f;f=[1,0,0,0,1,0,0,0,1];f=pa(f,-m,"z");f=pa(f,-g,"x");f=pa(f,e,"y");f=[f[0],f[1],f[2],0,f[3],f[4],f[5],0,f[6],f[7],f[8],0,0,0,0,1];a.uniformMatrix4fv(d.perspUniform,!1,new Float32Array(Ga(c)));a.uniformMatrix4fv(d.cubeUniform,!1,new Float32Array(Ga(f))); -c=[c[0]*f[0],c[0]*f[1],c[0]*f[2],0,c[5]*f[4],c[5]*f[5],c[5]*f[6],0,c[10]*f[8],c[10]*f[9],c[10]*f[10],c[11],-f[8],-f[9],-f[10],0];d.nodeCache.sort(R);if(200d.currentNodes.length+50)for(f=d.nodeCache.splice(200,d.nodeCache.length-200),m=0;mm;m++)u=new M(xa[m],f[m],1,0,0,l.fullpath),La(c,u,g,e,k);d.currentNodes.sort(na);for(m=ba.length-1;0<=m;m--)-1===d.currentNodes.indexOf(ba[m].node)&& -(ba[m].node.textureLoad=!1,ba.splice(m,1));if(0===ba.length)for(m=0;mm;m++)if(k=S.querySelector(".pnlm-"+e[m]+"face"))k.style.webkitTransform=g+s[e[m]],k.style.transform=g+s[e[m]]};this.isLoading= -function(){if(a&&"multires"==x)for(var g=0;g u_h || coord.y < -u_v + u_vo || coord.y > u_v + u_vo)\ngl_FragColor = u_backgroundColor;\nelse {\nif(u_splitImage) {\nif(coord.x < 0.0)\ngl_FragColor = texture2D(u_image0, vec2((coord.x + u_h) / u_h, (-coord.y + u_v + u_vo) / (u_v * 2.0)));\nelse\ngl_FragColor = texture2D(u_image1, vec2((coord.x + u_h) / u_h - 1.0, (-coord.y + u_v + u_vo) / (u_v * 2.0)));\n} else {\ngl_FragColor = texture2D(u_image0, vec2((coord.x + u_h) / (u_h * 2.0), (-coord.y + u_v + u_vo) / (u_v * 2.0)));\n}\n}\n}", -ta="varying mediump vec2 v_texCoord;uniform sampler2D u_sampler;void main(void) {gl_FragColor = texture2D(u_sampler, v_texCoord);}";return{renderer:function(g,k,p,s){return new ja(g,k,p,s)}}}(window,document);window.requestAnimationFrame||(window.requestAnimationFrame=function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(D,g){window.setTimeout(D,1E3/60)}}()); -window.pannellum=function(D,g,p){function ja(s,k){function ra(a){D.removeEventListener("deviceorientation",ra);a&&null!==a.alpha&&null!==a.beta&&null!==a.gamma?(v.container.appendChild(v.orientation),ua=!0,Za&&E()):ua=!1}function ja(){var a=g.createElement("div");a.innerHTML="\x3c!--[if lte IE 9]>a;a++)Q.push(new Image),Q[a].crossOrigin=b.crossOrigin;r.load.lbox.style.display= -"block";r.load.lbar.style.display="none"}else if("multires"==b.type)a=JSON.parse(JSON.stringify(b.multiRes)),b.basePath&&b.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(b.multiRes.basePath)?a.basePath=b.basePath+b.multiRes.basePath:b.multiRes.basePath?a.basePath=b.multiRes.basePath:b.basePath&&(a.basePath=b.basePath),Q=a;else if(!0===b.dynamic)Q=b.panorama;else{if(b.panorama===p){R(b.strings.noPanoramaError);return}Q=new Image}if("cubemap"==b.type)for(var q=6,c=function(){q--;0===q&&ta()},d=function(a){var ha= -g.createElement("a");ha.href=a.target.src;ha.textContent=ha.href;R(b.strings.fileAccessError.replace("%s",ha.outerHTML))},a=0;ac||65536")+12),e=function(a){var b;0<=d.indexOf(a+'="')?(b= -d.substring(d.indexOf(a+'="')+a.length+2),b=b.substring(0,b.indexOf('"'))):0<=d.indexOf(a+">")&&(b=d.substring(d.indexOf(a+">")+a.length+1),b=b.substring(0,b.indexOf("<")));return b!==p?Number(b):null},q=e("GPano:FullPanoWidthPixels"),c=e("GPano:CroppedAreaImageWidthPixels"),f=e("GPano:FullPanoHeightPixels"),g=e("GPano:CroppedAreaImageHeightPixels"),k=e("GPano:CroppedAreaTopPixels"),m=e("GPano:PoseHeadingDegrees"),l=e("GPano:PosePitchDegrees"),e=e("GPano:PoseRollDegrees");null!==q&&null!==c&&null!== -f&&null!==g&&null!==k&&(0>ca.indexOf("haov")&&(b.haov=c/q*360),0>ca.indexOf("vaov")&&(b.vaov=g/f*180),0>ca.indexOf("vOffset")&&(b.vOffset=-180*((k+g/2)/f-0.5)),null!==m&&0>ca.indexOf("northOffset")&&(b.northOffset=m,!1!==b.compass&&(b.compass=!0)),null!==l&&null!==e&&(0>ca.indexOf("horizonPitch")&&(b.horizonPitch=l),0>ca.indexOf("horizonRoll")&&(b.horizonRoll=e)))}Q.src=D.URL.createObjectURL(a)});h.readAsBinaryString!==p?h.readAsBinaryString(a):h.readAsText(a)}function R(a){a===p&&(a=b.strings.genericWebGLError); -r.errorMsg.innerHTML="

"+a+"

";v.load.style.display="none";r.load.box.style.display="none";r.errorMsg.style.display="table";Na=!0;N.style.display="none";B("error",a)}function na(a){var b=M(a);ia.style.left=b.x+"px";ia.style.top=b.y+"px";clearTimeout(na.t1);clearTimeout(na.t2);ia.style.display="block";ia.style.opacity=1;na.t1=setTimeout(function(){ia.style.opacity=0},2E3);na.t2=setTimeout(function(){ia.style.display="none"},2500);a.preventDefault()}function M(a){var b=s.getBoundingClientRect(), -q={};q.x=(a.clientX||a.pageX)-b.left;q.y=(a.clientY||a.pageY)-b.top;return q}function La(a){a.preventDefault();s.focus();if(L&&b.draggable){var h=M(a);if(b.hotSpotDebug){var q=pa(a);console.log("Pitch: "+q[0]+", Yaw: "+q[1]+", Center Pitch: "+b.pitch+", Center Yaw: "+b.yaw+", HFOV: "+b.hfov)}Ea();Fa();b.roll=0;w.hfov=0;la=!0;O=Date.now();Aa=h.x;Ba=h.y;Oa=b.yaw;Pa=b.pitch;H.classList.add("pnlm-grabbing");H.classList.remove("pnlm-grab");B("mousedown",a);F()}}function Ma(a){b.minHfov===b.hfov?ga.setHfov(za, -1E3):(a=pa(a),ga.lookAt(a[0],a[1],b.minHfov,1E3))}function pa(a){var h=M(a);a=A.getCanvas();var q=a.clientWidth,c=a.clientHeight;a=h.x/q*2-1;var c=(1-h.y/c*2)*c/q,d=1/Math.tan(b.hfov*Math.PI/360),e=Math.sin(b.pitch*Math.PI/180),f=Math.cos(b.pitch*Math.PI/180),h=d*f-c*e,q=Math.sqrt(a*a+h*h),c=180*Math.atan((c*f+d*e)/q)/Math.PI;a=180*Math.atan2(a/q,h/q)/Math.PI+b.yaw;-180>a&&(a+=360);180a.wheelDelta?1:-1):a.wheelDelta?(n(b.hfov-0.05*a.wheelDelta),w.hfov=0>a.wheelDelta?1:-1):a.detail&&(n(b.hfov+1.5*a.detail), -w.hfov=0b.capturedKeyNumbers.indexOf(h)||(a.preventDefault(),27==h?Da&&f():ea(h,!0))}function S(){for(var a=0;10>a;a++)t[a]=!1}function xa(a){var h=a.which||a.keycode;0>b.capturedKeyNumbers.indexOf(h)||(a.preventDefault(),ea(h,!1))}function ea(a,b){var q=!1;switch(a){case 109:case 189:case 17:case 173:t[0]!=b&&(q=!0);t[0]=b;break;case 107:case 187:case 16:case 61:t[1]!=b&&(q=!0);t[1]=b;break;case 38:t[2]!= -b&&(q=!0);t[2]=b;break;case 87:t[6]!=b&&(q=!0);t[6]=b;break;case 40:t[3]!=b&&(q=!0);t[3]=b;break;case 83:t[7]!=b&&(q=!0);t[7]=b;break;case 37:t[4]!=b&&(q=!0);t[4]=b;break;case 65:t[8]!=b&&(q=!0);t[8]=b;break;case 39:t[5]!=b&&(q=!0);t[5]=b;break;case 68:t[9]!=b&&(q=!0),t[9]=b}q&&b&&(da="undefined"!==typeof performance&&performance.now()?performance.now():Date.now(),F())}function l(){if(L){var a=!1,h=b.pitch,q=b.yaw,c=b.hfov,d;d="undefined"!==typeof performance&&performance.now()?performance.now(): -Date.now();da===p&&(da=d);var e=(d-da)*b.hfov/1700,e=Math.min(e,1);t[0]&&!0===b.keyboardZoom&&(n(b.hfov+(0.8*w.hfov+0.5)*e),a=!0);t[1]&&!0===b.keyboardZoom&&(n(b.hfov+(0.8*w.hfov-0.2)*e),a=!0);if(t[2]||t[6])b.pitch+=(0.8*w.pitch+0.2)*e,a=!0;if(t[3]||t[7])b.pitch+=(0.8*w.pitch-0.2)*e,a=!0;if(t[4]||t[8])b.yaw+=(0.8*w.yaw-0.2)*e,a=!0;if(t[5]||t[9])b.yaw+=(0.8*w.yaw+0.2)*e,a=!0;a&&(O=Date.now());Date.now();if(b.autoRotate){if(0.001=b.autoRotateStopDelay&&(b.autoRotateStopDelay=!1,X=b.autoRotate,b.autoRotate=0))}P.pitch&&(x("pitch"),h=b.pitch);P.yaw&&(x("yaw"),q=b.yaw);P.hfov&&(x("hfov"),c=b.hfov);0h.startPosition&&c>=h.endPosition||h.endPositionb.autoRotateInactivityDelay&&!b.autoRotate&&(b.autoRotate=X,ga.lookAt(Ia,p,za,3E3)),requestAnimationFrame(fa);else if(A&&(A.isLoading()||!0===b.dynamic&&Va))requestAnimationFrame(fa);else{B("animatefinished",{pitch:ga.getPitch(),yaw:ga.getYaw(),hfov:ga.getHfov()});Ta=!1;da=p;var a=b.autoRotateInactivityDelay-(Date.now()-O);0b.haov?Math.min(Math.cos((b.pitch-d)/180*Math.PI),Math.cos((b.pitch+d)/180*Math.PI)):h=d*(1-Math.min(Math.cos((b.pitch-c)/180*Math.PI),Math.cos((b.pitch+c)/180*Math.PI)))}var d=b.maxYaw-b.minYaw,c=-180,e=180;360>d&&(c=b.minYaw+b.hfov/2+h,e=b.maxYaw-b.hfov/2-h,db.yaw&&(b.yaw+=360);!1!==b.autoRotate&&a!=b.yaw&&da!==p&&(b.autoRotate*=-1);c=A.getCanvas();a=2*Math.atan(Math.tan(b.hfov/180*Math.PI*0.5)/(c.width/c.height))/Math.PI*180;h=b.minPitch+a/2;d=b.maxPitch-a/2;b.maxPitch-b.minPitchY?Y+=1:10===Y?($a=h[2]/Math.PI*180+b.yaw,Y=!0,requestAnimationFrame(fa)):(b.pitch=h[0]/Math.PI*180,b.roll=-h[1]/Math.PI*180,b.yaw=-h[2]/Math.PI*180+$a)}function ba(){try{var a={};b.horizonPitch!==p&&(a.horizonPitch=b.horizonPitch*Math.PI/180);b.horizonRoll!==p&&(a.horizonRoll=b.horizonRoll*Math.PI/180);b.backgroundColor!== -p&&(a.backgroundColor=b.backgroundColor);A.init(Q,b.type,b.dynamic,b.haov*Math.PI/180,b.vaov*Math.PI/180,b.vOffset*Math.PI/180,ab,a);!0!==b.dynamic&&(Q=p)}catch(h){if("webgl error"==h.type||"no webgl"==h.type)R();else if("webgl size error"==h.type)R(b.strings.textureSizeError.replace("%s",h.width).replace("%s",h.maxWidth));else throw R(b.strings.unknownError),h;}}function ab(){if(b.sceneFadeDuration&&A.fadeImg!==p){A.fadeImg.style.opacity=0;var a=A.fadeImg;delete A.fadeImg;setTimeout(function(){N.removeChild(a); -B("scenechangefadedone")},b.sceneFadeDuration)}Ka.style.display=b.compass?"inline":"none";e();r.load.box.style.display="none";va!==p&&(N.removeChild(va),va=p);L=!0;B("load");F()}function G(a){a.pitch=Number(a.pitch)||0;a.yaw=Number(a.yaw)||0;var h=g.createElement("div");h.className="pnlm-hotspot-base";h.className=a.cssClass?h.className+(" "+a.cssClass):h.className+(" pnlm-hotspot pnlm-sprite pnlm-"+J(a.type));var c=g.createElement("span");a.text&&(c.innerHTML=J(a.text));var d;if(a.video){d=g.createElement("video"); -var e=a.video;b.basePath&&!sa(e)&&(e=b.basePath+e);d.src=K(e);d.controls=!0;d.style.width=a.width+"px";N.appendChild(h);c.appendChild(d)}else if(a.image){e=a.image;b.basePath&&!sa(e)&&(e=b.basePath+e);d=g.createElement("a");d.href=K(a.URL?a.URL:e);d.target="_blank";c.appendChild(d);var f=g.createElement("img");f.src=K(e);f.style.width=a.width+"px";f.style.paddingTop="5px";N.appendChild(h);d.appendChild(f);c.style.maxWidth="initial"}else if(a.URL){d=g.createElement("a");d.href=K(a.URL);if(a.attributes)for(e in a.attributes)d.setAttribute(e, -a.attributes[e]);else d.target="_blank";N.appendChild(d);h.className+=" pnlm-pointer";c.className+=" pnlm-pointer";d.appendChild(h)}else a.sceneId&&(h.onclick=h.ontouchend=function(){h.clicked||(h.clicked=!0,Ra(a.sceneId,a.targetPitch,a.targetYaw,a.targetHfov));return!1},h.className+=" pnlm-pointer",c.className+=" pnlm-pointer"),N.appendChild(h);if(a.createTooltipFunc)a.createTooltipFunc(h,a.createTooltipArgs);else if(a.text||a.video||a.image)h.classList.add("pnlm-tooltip"),h.appendChild(c),c.style.width= -c.scrollWidth-20+"px",c.style.marginLeft=-(c.scrollWidth-h.offsetWidth)/2+"px",c.style.marginTop=-c.scrollHeight-12+"px";a.clickHandlerFunc&&(h.addEventListener("click",function(b){a.clickHandlerFunc(b,a.clickHandlerArgs)},"false"),h.className+=" pnlm-pointer",c.className+=" pnlm-pointer");a.div=h}function e(){Wa||(b.hotSpots?(b.hotSpots=b.hotSpots.sort(function(a,b){return a.pitch=a.yaw&&-90=k||(90=a.yaw)&&0>=k)a.div.style.visibility="hidden";else{var m=Math.sin((-a.yaw+b.yaw)*Math.PI/180),l=Math.tan(b.hfov*Math.PI/ -360);a.div.style.visibility="visible";var n=A.getCanvas(),p=n.clientWidth,n=n.clientHeight,c=[-p/l*m*d/k/2,-p/l*(c*f-d*g*e)/k/2],d=Math.sin(b.roll*Math.PI/180),e=Math.cos(b.roll*Math.PI/180),c=[c[0]*e-c[1]*d,c[0]*d+c[1]*e];c[0]+=(p-a.div.offsetWidth)/2;c[1]+=(n-a.div.offsetHeight)/2;p="translate("+c[0]+"px, "+c[1]+"px) translateZ(9999px) rotate("+b.roll+"deg)";a.div.style.webkitTransform=p;a.div.style.MozTransform=p;a.div.style.transform=p}}function m(a){b={};var c,d,e="haov vaov vOffset northOffset horizonPitch horizonRoll".split(" "); -ca=[];for(c in Xa)Xa.hasOwnProperty(c)&&(b[c]=Xa[c]);for(c in k.default)if(k.default.hasOwnProperty(c))if("strings"==c)for(d in k.default.strings)k.default.strings.hasOwnProperty(d)&&(b.strings[d]=J(k.default.strings[d]));else b[c]=k.default[c],0<=e.indexOf(c)&&ca.push(c);if(null!==a&&""!==a&&k.scenes&&k.scenes[a]){var f=k.scenes[a];for(c in f)if(f.hasOwnProperty(c))if("strings"==c)for(d in f.strings)f.strings.hasOwnProperty(d)&&(b.strings[d]=J(f.strings[d]));else b[c]=f[c],0<=e.indexOf(c)&&ca.push(c); -b.scene=a}for(c in k)if(k.hasOwnProperty(c))if("strings"==c)for(d in k.strings)k.strings.hasOwnProperty(d)&&(b.strings[d]=J(k.strings[d]));else b[c]=k[c],0<=e.indexOf(c)&&ca.push(c)}function c(a){if((a=a?a:!1)&&"preview"in b){var c=b.preview;b.basePath&&!sa(c)&&(c=b.basePath+c);va=g.createElement("div");va.className="pnlm-preview-img";va.style.backgroundImage="url('"+K(c).replace(/"/g,"%22").replace(/'/g,"%27")+"')";N.appendChild(va)}var c=b.title,d=b.author;a&&("previewTitle"in b&&(b.title=b.previewTitle), -"previewAuthor"in b&&(b.author=b.previewAuthor));b.hasOwnProperty("title")||(r.title.innerHTML="");b.hasOwnProperty("author")||(r.author.innerHTML="");b.hasOwnProperty("title")||b.hasOwnProperty("author")||(r.container.style.display="none");v.load.innerHTML="

"+b.strings.loadButtonLabel+"

";r.load.boxp.innerHTML=b.strings.loadingLabel;for(var e in b)if(b.hasOwnProperty(e))switch(e){case "title":r.title.innerHTML=J(b[e]);r.container.style.display="inline";break;case "author":r.author.innerHTML= -b.strings.bylineLabel.replace("%s",J(b[e]));r.container.style.display="inline";break;case "fallback":var f=g.createElement("a");f.href=K(b[e]);f.target="_blank";f.textContent="Click here to view this panorama in an alternative viewer.";var k=g.createElement("p");k.textContent="Your browser does not support WebGL.";k.appendChild(g.createElement("br"));k.appendChild(f);r.errorMsg.innerHTML="";r.errorMsg.appendChild(k);break;case "hfov":n(Number(b[e]));break;case "autoLoad":!0===b[e]&&A===p&&(r.load.box.style.display= -"inline",v.load.style.display="none",ja());break;case "showZoomCtrl":v.zoom.style.display=b[e]&&!1!=b.showControls?"block":"none";break;case "showFullscreenCtrl":v.fullscreen.style.display=b[e]&&!1!=b.showControls&&("fullscreen"in g||"mozFullScreen"in g||"webkitIsFullScreen"in g||"msFullscreenElement"in g)?"block":"none";break;case "hotSpotDebug":Ya.style.display=b[e]?"block":"none";break;case "showControls":b[e]||(v.orientation.style.display="none",v.zoom.style.display="none",v.fullscreen.style.display= -"none");break;case "orientationOnByDefault":b[e]&&(ua===p?Za=!0:!0===ua&&E())}a&&(c?b.title=c:delete b.title,d?b.author=d:delete b.author)}function f(){if(L&&!Na)if(Da)g.exitFullscreen?g.exitFullscreen():g.mozCancelFullScreen?g.mozCancelFullScreen():g.webkitCancelFullScreen?g.webkitCancelFullScreen():g.msExitFullscreen&&g.msExitFullscreen();else try{s.requestFullscreen?s.requestFullscreen():s.mozRequestFullScreen?s.mozRequestFullScreen():s.msRequestFullscreen?s.msRequestFullscreen():s.webkitRequestFullScreen()}catch(a){}} -function u(a){g.fullscreenElement||g.fullscreen||g.mozFullScreen||g.webkitIsFullScreen||g.msFullscreenElement?(v.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),Da=!0):(v.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),Da=!1);"resize"!==a&&B("fullscreenchange",Da);A.resize();n(b.hfov);F()}function y(a){var c=b.minHfov;"multires"==b.type&&A&&b.multiResMinHfov&&(c=Math.min(c,A.getCanvas().width/(b.multiRes.cubeResolution/90*0.9)));if(c>b.maxHfov)return console.log("HFOV bounds do not make sense (minHfov > maxHfov)."), -b.hfov;var d=b.hfov,d=ab.maxHfov?b.maxHfov:a;b.avoidShowingBackground&&A&&(a=A.getCanvas(),d=Math.min(d,360*Math.atan(Math.tan((b.maxPitch-b.minPitch)/360*Math.PI)/a.height*a.width)/Math.PI));return d}function n(a){b.hfov=y(a);B("zoomchange",b.hfov)}function Ea(){P={};X=b.autoRotate?b.autoRotate:X;b.autoRotate=!1}function C(){Na&&(r.load.box.style.display="none",r.errorMsg.style.display="none",Na=!1,B("errorcleared"));L=!1;v.load.style.display="none";r.load.box.style.display="inline";ja()} -function Ra(a,d,e,f,g){L=!1;P={};var l,n;if(b.sceneFadeDuration&&!g&&(l=A.render(b.pitch*Math.PI/180,b.yaw*Math.PI/180,b.hfov*Math.PI/180,{returnImage:!0}),l!==p)){g=new Image;g.className="pnlm-fade-img";g.style.transition="opacity "+b.sceneFadeDuration/1E3+"s";g.style.width="100%";g.style.height="100%";g.onload=function(){Ra(a,d,e,f,!0)};g.src=l;N.appendChild(g);A.fadeImg=g;return}g="same"===d?b.pitch:d;l="same"===e?b.yaw:"sameAzimuth"===e?b.yaw+(b.northOffset||0)-(k.scenes[a].northOffset||0):e; -n="same"===f?b.hfov:f;Qa();m(a);w.yaw=w.pitch=w.hfov=0;c();g!==p&&(b.pitch=g);l!==p&&(b.yaw=l);n!==p&&(b.hfov=n);B("scenechange",a);C();Va=!0===b.dynamicUpdate;b.dynamic&&(Q=b.panorama,ta())}function Fa(){D.removeEventListener("deviceorientation",qa);v.orientation.classList.remove("pnlm-orientation-button-active");Y=!1}function E(){Y=1;D.addEventListener("deviceorientation",qa);v.orientation.classList.add("pnlm-orientation-button-active")}function J(a){return k.escapeHTML?String(a).split(/&/g).join("&").split('"').join(""").split("'").join("'").split("<").join("<").split(">").join(">").split("/").join("/").split("\n").join("
"): -String(a).split("\n").join("
")}function K(a){return 0===a.trim().toLowerCase().indexOf("javascript:")?"about:blank":a}function B(a){if(a in T)for(var b=T[a].length;0a?2*a*a:-1+(4-2*a)*a},draggable:!0,disableKeyboardCtrl:!1, -crossOrigin:"anonymous",touchPanSpeedCoeffFactor:1,capturedKeyNumbers:[16,17,27,37,38,39,40,61,65,68,83,87,107,109,173,187,189],friction:0.15,strings:{loadButtonLabel:"Click to
Load
Panorama",loadingLabel:"Loading...",bylineLabel:"by %s",noPanoramaError:"No panorama image was specified.",fileAccessError:"The file %s could not be accessed.",malformedURLError:"There is something wrong with the panorama URL.",iOS8WebGLError:"Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).", -genericWebGLError:"Your browser does not have the necessary WebGL support to display this panorama.",textureSizeError:"This panorama is too big for your device! It's %spx wide, but your device only supports images up to %spx wide. Try another device. (If you're the author, try scaling down the image.)",unknownError:"Unknown error. Check developer console."}};s="string"===typeof s?g.getElementById(s):s;s.classList.add("pnlm-container");s.tabIndex=0;var H=g.createElement("div");H.className="pnlm-ui"; -s.appendChild(H);var N=g.createElement("div");N.className="pnlm-render-container";s.appendChild(N);var W=g.createElement("div");W.className="pnlm-dragfix";H.appendChild(W);var ia=g.createElement("span");ia.className="pnlm-about-msg";ia.innerHTML='Pannellum 2.4.1';H.appendChild(ia);W.addEventListener("contextmenu",na);var r={},Ya=g.createElement("div");Ya.className="pnlm-sprite pnlm-hot-spot-debug-indicator";H.appendChild(Ya);r.container=g.createElement("div"); -r.container.className="pnlm-panorama-info";r.title=g.createElement("div");r.title.className="pnlm-title-box";r.container.appendChild(r.title);r.author=g.createElement("div");r.author.className="pnlm-author-box";r.container.appendChild(r.author);H.appendChild(r.container);r.load={};r.load.box=g.createElement("div");r.load.box.className="pnlm-load-box";r.load.boxp=g.createElement("p");r.load.box.appendChild(r.load.boxp);r.load.lbox=g.createElement("div");r.load.lbox.className="pnlm-lbox";r.load.lbox.innerHTML= -'
';r.load.box.appendChild(r.load.lbox);r.load.lbar=g.createElement("div");r.load.lbar.className="pnlm-lbar";r.load.lbarFill=g.createElement("div");r.load.lbarFill.className="pnlm-lbar-fill";r.load.lbar.appendChild(r.load.lbarFill);r.load.box.appendChild(r.load.lbar);r.load.msg=g.createElement("p");r.load.msg.className="pnlm-lmsg";r.load.box.appendChild(r.load.msg);H.appendChild(r.load.box);r.errorMsg=g.createElement("div");r.errorMsg.className="pnlm-error-msg pnlm-info-box"; -H.appendChild(r.errorMsg);var v={};v.container=g.createElement("div");v.container.className="pnlm-controls-container";H.appendChild(v.container);v.load=g.createElement("div");v.load.className="pnlm-load-button";v.load.addEventListener("click",function(){c();C()});H.appendChild(v.load);v.zoom=g.createElement("div");v.zoom.className="pnlm-zoom-controls pnlm-controls";v.zoomIn=g.createElement("div");v.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control";v.zoomIn.addEventListener("click",function(){L&& -(n(b.hfov-5),F())});v.zoom.appendChild(v.zoomIn);v.zoomOut=g.createElement("div");v.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control";v.zoomOut.addEventListener("click",function(){L&&(n(b.hfov+5),F())});v.zoom.appendChild(v.zoomOut);v.container.appendChild(v.zoom);v.fullscreen=g.createElement("div");v.fullscreen.addEventListener("click",f);v.fullscreen.className="pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control";(g.fullscreenEnabled|| -g.mozFullScreenEnabled||g.webkitFullscreenEnabled||g.msFullscreenEnabled)&&v.container.appendChild(v.fullscreen);v.orientation=g.createElement("div");v.orientation.addEventListener("click",function(a){Y?Fa():E()});v.orientation.addEventListener("mousedown",function(a){a.stopPropagation()});v.orientation.addEventListener("touchstart",function(a){a.stopPropagation()});v.orientation.addEventListener("pointerdown",function(a){a.stopPropagation()});v.orientation.className="pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control"; -var ua,Za=!1;D.DeviceOrientationEvent?D.addEventListener("deviceorientation",ra):ua=!1;var Ka=g.createElement("div");Ka.className="pnlm-compass pnlm-controls pnlm-control";H.appendChild(Ka);k.firstScene?m(k.firstScene):k.default&&k.default.firstScene?m(k.default.firstScene):m(null);c(!0);var ma=[],Ca=[];aa.prototype.multiply=function(a){return new aa(this.w*a.w-this.x*a.x-this.y*a.y-this.z*a.z,this.x*a.w+this.w*a.x+this.y*a.z-this.z*a.y,this.y*a.w+this.w*a.y+this.z*a.x-this.x*a.z,this.z*a.w+this.w* -a.z+this.x*a.y-this.y*a.x)};aa.prototype.toEulerAngles=function(){var a=Math.atan2(2*(this.w*this.x+this.y*this.z),1-2*(this.x*this.x+this.y*this.y)),b=Math.asin(2*(this.w*this.y-this.z*this.x)),c=Math.atan2(2*(this.w*this.z+this.x*this.y),1-2*(this.y*this.y+this.z*this.z));return[a,b,c]};this.isLoaded=function(){return Boolean(L)};this.getPitch=function(){return b.pitch};this.setPitch=function(a,c,d,e){O=Date.now();if(1E-6>=Math.abs(a-b.pitch))return"function"==typeof d&&d(e),this;(c=c==p?1E3:Number(c))? -(P.pitch={startTime:Date.now(),startPosition:b.pitch,endPosition:a,duration:c},"function"==typeof d&&setTimeout(function(){d(e)},c)):b.pitch=a;F();return this};this.getPitchBounds=function(){return[b.minPitch,b.maxPitch]};this.setPitchBounds=function(a){b.minPitch=Math.max(-90,Math.min(a[0],90));b.maxPitch=Math.max(-90,Math.min(a[1],90));return this};this.getYaw=function(){return b.yaw};this.setYaw=function(a,c,d,e){O=Date.now();if(1E-6>=Math.abs(a-b.yaw))return"function"==typeof d&&d(e),this;c=c== -p?1E3:Number(c);a=(a+180)%360-180;c?(180= -Math.abs(a-b.hfov))return"function"==typeof d&&d(e),this;(c=c==p?1E3:Number(c))?(P.hfov={startTime:Date.now(),startPosition:b.hfov,endPosition:y(a),duration:c},"function"==typeof d&&setTimeout(function(){d(e)},c)):n(a);F();return this};this.getHfovBounds=function(){return[b.minHfov,b.maxHfov]};this.setHfovBounds=function(a){b.minHfov=Math.max(0,a[0]);b.maxHfov=Math.max(0,a[1]);return this};this.lookAt=function(a,c,d,e,f,g){e=e==p?1E3:Number(e);a!==p&&1E-6