diff --git a/build/pannellum.css b/build/pannellum.css deleted file mode 100644 index e29697a..0000000 --- a/build/pannellum.css +++ /dev/null @@ -1,2 +0,0 @@ -/* Pannellum 40ffc37, https://github.com/mpetroff/pannellum */ -.pnlm-container{margin:0;padding:0;overflow:hidden;position:relative;cursor:default;width:100%;height:100%;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;direction:ltr}.pnlm-container,.pnlm-load-button{font-family:Helvetica,"Nimbus Sans L","Liberation Sans",Arial,sans-serif}.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;font-size:20px;color:#fff;cursor:pointer;display:inline-block;border:0;padding:0;line-height:1.4}.pnlm-load-button:hover{background-color:rgba(0,0,0,.8)}.pnlm-load-button:focus{outline:0;box-shadow:0 0 0 1px #fff inset}.pnlm-load-button div{display:table;text-align:center;width:100%}.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,.pnlm-author-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-interaction-msg{display:none;pointer-events:none;background:rgba(0,0,0,0.7);opacity:1;transition:opacity .75s ease-out}.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/build/pannellum.htm b/build/pannellum.htm deleted file mode 100644 index 0853a88..0000000 --- a/build/pannellum.htm +++ /dev/null @@ -1,127 +0,0 @@ - - -Pannellum
\ No newline at end of file diff --git a/build/pannellum.js b/build/pannellum.js deleted file mode 100644 index a002413..0000000 --- a/build/pannellum.js +++ /dev/null @@ -1,120 +0,0 @@ -// Pannellum 40ffc37, https://github.com/mpetroff/pannellum -window.libpannellum=function(C,h,k){function oa(L){function Da(a,d){return 1==a.level&&1!=d.level?-1:1==d.level&&1!=a.level?1:d.timestamp-a.timestamp}function pa(a,d){return a.level!=d.level?a.level-d.level:a.diff-d.diff}function Q(a,d,e,h,m,c,f){this.vertices=a;this.side=d;this.level=e;this.x=h;this.y=m;this.path=c.replace("%s",d).replace("%l",e).replace("%x",h).replace("%y",m);this.parentPath=f}function R(a,d,h,B,m){var c;var f=d.vertices;c=qa(a,f.slice(0,3));var k=qa(a,f.slice(3,6)),y=qa(a,f.slice(6, -9)),f=qa(a,f.slice(9,12)),t=c[0]+k[0]+y[0]+f[0];-4==t||4==t?c=!1:(t=c[1]+k[1]+y[1]+f[1],c=-4==t||4==t?!1:4!=c[2]+k[2]+y[2]+f[2]);if(c){c=d.vertices;k=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];t=Math.sqrt(k*k+y*y+f*f);f=Math.asin(f/t);k=Math.atan2(y,k)-B;k+=k>Math.PI?-2*Math.PI:k<-Math.PI?2*Math.PI:0;k=Math.abs(k);d.diff=Math.acos(Math.sin(h)*Math.sin(f)+Math.cos(h)*Math.cos(f)*Math.cos(k));k=!1;for(y=0;yk&&(c[0]=-1);1h&&(c[1]=-1);1e||1t;t++)0==p[t].width&&(p[t]=a)}}d===k&& -(d="equirectangular");if("equirectangular"!=d&&"cubemap"!=d&&"multires"!=d)throw console.log("Error: invalid image type specified!"),{type:"config error"};D=d;p=G;ga=Ea;ea=M||{};if(e){V&&(a.detachShader(e,V),a.deleteShader(V));W&&(a.detachShader(e,W),a.deleteShader(W));a.bindBuffer(a.ARRAY_BUFFER,null);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,null);e.texture&&a.deleteTexture(e.texture);if(e.nodeCache)for(G=0;Gt;t++)0f;f++)c[4*(e+a.width)+f]=c[4*(e+2*a.width)+f],c[4*(e+a.width*(a.height-2))+f]=c[4*(e+a.width*(a.height-3))+f];for(e=2;ef;f++)c[4*(e*a.width+1)+f]=c[4*(e*a.width+2)+f],c[4*((e+1)*a.width-2)+f]=c[4*((e+1)*a.width-3)+f];for(f=0;4>f;f++)c[4* -(a.width+1)+f]=c[4*(2*a.width+2)+f],c[4*(2*a.width-2)+f]=c[4*(3*a.width-3)+f],c[4*(a.width*(a.height-2)+1)+f]=c[4*(a.width*(a.height-3)+2)+f],c[4*(a.width*(a.height-1)-2)+f]=c[4*(a.width*(a.height-2)-3)+f];for(e=1;ef;f++)c[4*e+f]=c[4*(e+a.width)+f],c[4*(e+a.width*(a.height-1))+f]=c[4*(e+a.width*(a.height-2))+f];for(e=1;ef;f++)c[e*a.width*4+f]=c[4*(e*a.width+1)+f],c[4*((e+1)*a.width-1)+f]=c[4*((e+1)*a.width-2)+f];for(f=0;4>f;f++)c[f]=c[4*(a.width+ -1)+f],c[4*(a.width-1)+f]=c[4*(2*a.width-2)+f],c[a.width*(a.height-1)*4+f]=c[4*(a.width*(a.height-2)+1)+f],c[4*(a.width*a.height-1)+f]=c[4*(a.width*(a.height-1)-2)+f];d.putImageData(b,0,0);R.call(this)};var R=function(){0t;t++)c=new Image,c.crossOrigin=ea.crossOrigin?ea.crossOrigin:"anonymous",c.side=t,c.onload= -m,c.onerror=R,c.src="multires"==D?B.replace("%s",Ja[t])+"."+p.extension:p[t].src;y($)}else{if(!a)throw console.log("Error: no WebGL support detected!"),{type:"no webgl"};"cubemap"==D&&y(u);p.fullpath=p.basePath?p.basePath+p.path:p.path;p.invTileResolution=1/p.tileResolution;G=Oa();Aa=[];for(t=0;6>t;t++)Aa[t]=G.slice(12*t,12*t+12),G=Oa();G=0;if("equirectangular"==D){if(G=a.getParameter(a.MAX_TEXTURE_SIZE),Math.max(p.width/2,p.height)>G)throw console.log("Error: The image is too big; it's "+p.width+ -"px wide, but this device's maximum supported size is "+2*G+"px."),{type:"webgl size error",width:p.width,maxWidth:2*G};}else if("cubemap"==D&&u>a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE))throw console.log("Error: The image is too big; it's "+u+"px wide, but this device's maximum supported size is "+G+"px."),{type:"webgl size error",width:u,maxWidth:G};M!==k&&(u=isNaN(M.horizonPitch)?0:Number(M.horizonPitch),d=isNaN(M.horizonRoll)?0:Number(M.horizonRoll),0!=u||0!=d)&&(fa=[u,d]);u=a.TEXTURE_2D;a.viewport(0, -0,a.drawingBufferWidth,a.drawingBufferHeight);a.getShaderPrecisionFormat&&(d=a.getShaderPrecisionFormat(a.FRAGMENT_SHADER,a.HIGH_FLOAT))&&1>d.precision&&(ta=ta.replace("highp","mediump"));V=a.createShader(a.VERTEX_SHADER);d=l;"multires"==D&&(d=r);a.shaderSource(V,d);a.compileShader(V);W=a.createShader(a.FRAGMENT_SHADER);d=ka;"cubemap"==D?(u=a.TEXTURE_CUBE_MAP,d=ua):"multires"==D&&(d=hb);a.shaderSource(W,d);a.compileShader(W);e=a.createProgram();a.attachShader(e,V);a.attachShader(e,W);a.linkProgram(e); -a.getShaderParameter(V,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(V));a.getShaderParameter(W,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(W));a.getProgramParameter(e,a.LINK_STATUS)||console.log(a.getProgramInfoLog(e));a.useProgram(e);e.drawInProgress=!1;d=M.backgroundColor?M.backgroundColor:[0,0,0];a.clearColor(d[0],d[1],d[2],1);a.clear(a.COLOR_BUFFER_BIT);e.texCoordLocation=a.getAttribLocation(e,"a_texCoord");a.enableVertexAttribArray(e.texCoordLocation);"multires"!=D?(E||(E=a.createBuffer()), -a.bindBuffer(a.ARRAY_BUFFER,E),a.bufferData(a.ARRAY_BUFFER,new Float32Array([-1,1,1,1,1,-1,-1,1,1,-1,-1,-1]),a.STATIC_DRAW),a.vertexAttribPointer(e.texCoordLocation,2,a.FLOAT,!1,0,0),e.aspectRatio=a.getUniformLocation(e,"u_aspectRatio"),a.uniform1f(e.aspectRatio,a.drawingBufferWidth/a.drawingBufferHeight),e.psi=a.getUniformLocation(e,"u_psi"),e.theta=a.getUniformLocation(e,"u_theta"),e.f=a.getUniformLocation(e,"u_f"),e.h=a.getUniformLocation(e,"u_h"),e.v=a.getUniformLocation(e,"u_v"),e.vo=a.getUniformLocation(e, -"u_vo"),e.rot=a.getUniformLocation(e,"u_rot"),a.uniform1f(e.h,B/(2*Math.PI)),a.uniform1f(e.v,m/Math.PI),a.uniform1f(e.vo,c/Math.PI*2),"equirectangular"==D&&(e.backgroundColor=a.getUniformLocation(e,"u_backgroundColor"),a.uniform4fv(e.backgroundColor,d.concat([1]))),e.texture=a.createTexture(),a.bindTexture(u,e.texture),"cubemap"==D?(a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,p[1]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,p[3]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y, -0,a.RGB,a.RGB,a.UNSIGNED_BYTE,p[4]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,p[5]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,p[0]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,p[2])):p.width<=G?(a.uniform1i(a.getUniformLocation(e,"u_splitImage"),0),a.texImage2D(u,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,p)):(a.uniform1i(a.getUniformLocation(e,"u_splitImage"),1),B=h.createElement("canvas"),B.width=p.width/2,B.height=p.height, -B=B.getContext("2d"),B.drawImage(p,0,0),m=B.getImageData(0,0,p.width/2,p.height),a.texImage2D(u,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,m),e.texture2=a.createTexture(),a.activeTexture(a.TEXTURE1),a.bindTexture(u,e.texture2),a.uniform1i(a.getUniformLocation(e,"u_image1"),1),B.drawImage(p,-p.width/2,0),m=B.getImageData(0,0,p.width/2,p.height),a.texImage2D(u,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,m),a.texParameteri(u,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(u,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(u, -a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(u,a.TEXTURE_MAG_FILTER,a.LINEAR),a.activeTexture(a.TEXTURE0)),a.texParameteri(u,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(u,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(u,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(u,a.TEXTURE_MAG_FILTER,a.LINEAR)):(e.vertPosLocation=a.getAttribLocation(e,"a_vertCoord"),a.enableVertexAttribArray(e.vertPosLocation),ha||(ha=a.createBuffer()),Ia||(Ia=a.createBuffer()),aa||(aa=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER, -Ia),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,0,1]),a.STATIC_DRAW),a.vertexAttribPointer(e.texCoordLocation,2,a.FLOAT,!1,0,0),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,aa),a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,0,2,3]),a.STATIC_DRAW),a.bindBuffer(a.ARRAY_BUFFER,ha),a.vertexAttribPointer(e.vertPosLocation,3,a.FLOAT,!1,0,0),e.perspUniform=a.getUniformLocation(e,"u_perspMatrix"),e.cubeUniform=a.getUniformLocation(e,"u_cubeMatrix"),e.level=-1,e.currentNodes=[],e.nodeCache= -[],e.nodeCacheTimestamp=0,e.textureLoads=[]);B=a.getError();if(0!==B)throw console.log("Error: Something went wrong with WebGL!",B),{type:"webgl error"};f()}};this.destroy=function(){L!==k&&(z!==k&&L.contains(z)&&L.removeChild(z),S!==k&&L.contains(S)&&L.removeChild(S));if(a){var e=a.getExtension("WEBGL_lose_context");e&&e.loseContext()}};this.resize=function(){var k=C.devicePixelRatio||1;z.width=z.clientWidth*k;z.height=z.clientHeight*k;a&&(1286==a.getError()&&Ha(),a.viewport(0,0,a.drawingBufferWidth, -a.drawingBufferHeight),"multires"!=D&&a.uniform1f(e.aspectRatio,z.clientWidth/z.clientHeight))};this.resize();this.setPose=function(a,d){a=isNaN(a)?0:Number(a);d=isNaN(d)?0:Number(d);fa=0==a&&0==d?k:[a,d]};this.render=function(h,d,l,r){var m,c=0;r===k&&(r={});r.roll&&(c=r.roll);if(fa!==k){m=fa[0];var f=fa[1],M=h,y=d,t=Math.cos(f)*Math.sin(h)*Math.sin(m)+Math.cos(h)*(Math.cos(m)*Math.cos(d)+Math.sin(f)*Math.sin(m)*Math.sin(d)),E=-Math.sin(h)*Math.sin(f)+Math.cos(h)*Math.cos(f)*Math.sin(d);h=Math.cos(f)* -Math.cos(m)*Math.sin(h)+Math.cos(h)*(-Math.cos(d)*Math.sin(m)+Math.cos(m)*Math.sin(f)*Math.sin(d));h=Math.asin(Math.max(Math.min(h,1),-1));d=Math.atan2(E,t);m=[Math.cos(M)*(Math.sin(f)*Math.sin(m)*Math.cos(y)-Math.cos(m)*Math.sin(y)),Math.cos(M)*Math.cos(f)*Math.cos(y),Math.cos(M)*(Math.cos(m)*Math.sin(f)*Math.cos(y)+Math.sin(y)*Math.sin(m))];f=[-Math.cos(h)*Math.sin(d),Math.cos(h)*Math.cos(d)];f=Math.acos(Math.max(Math.min((m[0]*f[0]+m[1]*f[1])/(Math.sqrt(m[0]*m[0]+m[1]*m[1]+m[2]*m[2])*Math.sqrt(f[0]* -f[0]+f[1]*f[1])),1),-1));0>m[2]&&(f=2*Math.PI-f);c+=f}if(a||"multires"!=D&&"cubemap"!=D){if("multires"!=D)l=2*Math.atan(Math.tan(0.5*l)/(a.drawingBufferWidth/a.drawingBufferHeight)),l=1/Math.tan(0.5*l),a.uniform1f(e.psi,d),a.uniform1f(e.theta,h),a.uniform1f(e.rot,c),a.uniform1f(e.f,l),!0===ga&&"equirectangular"==D&&(a.bindTexture(a.TEXTURE_2D,e.texture),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,p)),a.drawArrays(a.TRIANGLES,0,6);else{m=a.drawingBufferWidth/a.drawingBufferHeight;f=2*Math.atan(Math.tan(l/ -2)*a.drawingBufferHeight/a.drawingBufferWidth);f=1/Math.tan(f/2);m=new Float32Array([f/m,0,0,0,0,f,0,0,0,0,100.1/-99.9,20/-99.9,0,0,-1,0]);for(f=1;fp.tileResolution*Math.pow(2,f-1)*Math.tan(l/2)*0.707;)f++;e.level=f;f=new Float32Array([1,0,0,0,1,0,0,0,1]);f=Fa(f,-c,"z");f=Fa(f,-h,"x");f=Fa(f,d,"y");f=new Float32Array([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(e.perspUniform,!1,ra(m));a.uniformMatrix4fv(e.cubeUniform,!1,ra(f)); -c=new Float32Array([m[0]*f[0],m[0]*f[1],m[0]*f[2],0,m[5]*f[4],m[5]*f[5],m[5]*f[6],0,m[10]*f[8],m[10]*f[9],m[10]*f[10],m[11],-f[8],-f[9],-f[10],0]);e.nodeCache.sort(Da);if(200e.currentNodes.length+50)for(m=e.nodeCache.splice(200,e.nodeCache.length-200),f=0;fm;m++)f=new Q(Aa[m],Ja[m],1,0,0,p.fullpath,null),R(c,f,h,d,l);e.currentNodes.sort(pa);for(h=ba.length-1;0<=h;h--)-1===e.currentNodes.indexOf(ba[h].node)&& -(ba[h].node.textureLoad=!1,ba.splice(h,1));if(0===ba.length)for(h=0;hh;h++)if(c= -S.querySelector(".pnlm-"+l[h]+"face"))c.style.webkitTransform=d+r[l[h]],c.style.transform=d+r[l[h]]};this.isLoading=function(){if(a&&"multires"==D)for(var h=0;h 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}", -hb="varying mediump vec2 v_texCoord;uniform sampler2D u_sampler;void main(void) {gl_FragColor = texture2D(u_sampler, v_texCoord);}";return{renderer:function(h,k,l,r){return new oa(h,k,l,r)}}}(window,document); -window.pannellum=function(C,h,k){function oa(l,r){function ta(){var a=h.createElement("div");a.innerHTML="\x3c!--[if lte IE 9]>a;a++)K.push(new Image),K[a].crossOrigin=b.crossOrigin;n.load.lbox.style.display="block";n.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),K=a;else if(!0===b.dynamic)K=b.panorama;else{if(b.panorama===k){L(b.strings.noPanoramaError);return}K=new Image}if("cubemap"==b.type)for(var q=6,c=function(){q--;0===q&&ka()},d=function(a){var ia=h.createElement("a");ia.href=a.target.src;ia.textContent=ia.href;L(b.strings.fileAccessError.replace("%s",ia.outerHTML))},a=0;ad||65536")+12),f=function(a){var b;0<=e.indexOf(a+'="')?(b=e.substring(e.indexOf(a+'="')+a.length+2),b=b.substring(0,b.indexOf('"'))):0<=e.indexOf(a+">")&&(b=e.substring(e.indexOf(a+">")+a.length+1),b=b.substring(0,b.indexOf("<")));return b!==k?Number(b):null},c=f("GPano:FullPanoWidthPixels"),d=f("GPano:CroppedAreaImageWidthPixels"),l=f("GPano:FullPanoHeightPixels"),m=f("GPano:CroppedAreaImageHeightPixels"),p=f("GPano:CroppedAreaTopPixels"),n=f("GPano:PoseHeadingDegrees"), -r=f("GPano:PosePitchDegrees"),s=f("GPano:PoseRollDegrees"),t=f("GPano:InitialViewPitchDegrees"),u=f("GPano:InitialViewHeadingDegrees"),f=f("GPano:InitialHorizontalFOVDegrees");null!==c&&null!==d&&null!==l&&null!==m&&null!==p&&(0>T.indexOf("haov")&&(b.haov=d/c*360),0>T.indexOf("vaov")&&(b.vaov=m/l*180),0>T.indexOf("vOffset")&&(b.vOffset=-180*((p+m/2)/l-0.5)),null!==n&&0>T.indexOf("northOffset")&&(b.northOffset=n,!1!==b.compass&&(b.compass=!0)),null!==r&&null!==s&&(0>T.indexOf("horizonPitch")&&(b.horizonPitch= -r),0>T.indexOf("horizonRoll")&&(b.horizonRoll=s)),null!=t&&0>T.indexOf("pitch")&&(b.pitch=t),null!=u&&0>T.indexOf("yaw")&&(b.yaw=u),null!=f&&0>T.indexOf("hfov")&&(b.hfov=f))}K.src=C.URL.createObjectURL(a);K.onerror=function(){(function(){return C.fetch?C.fetch(h.location.href).then(function(a){return a.headers.get("Content-Security-Policy")}):null})().then(function(a){a&&a.split(";").find(function(a){if(a=a.match(/img-src(.*)/))return!a[1].includes("blob")})&&(console.log("CSP blocks blobs; reverting to URL."), -K.crossOrigin=b.crossOrigin,K.src=g)})}});q.readAsBinaryString!==k?q.readAsBinaryString(a):q.readAsText(a)}function L(a){a===k&&(a=b.strings.genericWebGLError);n.errorMsg.innerHTML="

"+a+"

";v.load.style.display="none";n.load.box.style.display="none";n.errorMsg.style.display="table";Ta=!0;H=k;N.style.display="none";A("error",a)}function Da(a){n.interactionMsg.style.opacity=1;n.interactionMsg.innerHTML="

"+a+"

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

"+b.strings.loadButtonLabel+"

";n.load.boxp.innerHTML=b.strings.loadingLabel;for(var f in b)if(b.hasOwnProperty(f))switch(f){case "title":n.title.innerHTML=u(b[f]);n.container.style.display="inline";break;case "author":var l=u(b[f]);b.authorURL&&(l=h.createElement("a"),l.href=ja(b.authorURL,!0),b.targetBlank&& -(l.target="_blank",l.rel="noopener"),l.innerHTML=u(b[f]),l=l.outerHTML);n.author.innerHTML=b.strings.bylineLabel.replace("%s",l);n.container.style.display="inline";break;case "fallback":l=h.createElement("a");l.href=ja(b[f],!0);b.targetBlank&&(l.target="_blank",l.rel="noopener");l.textContent="Click here to view this panorama in an alternative viewer.";var m=h.createElement("p");m.textContent="Your browser does not support WebGL.";m.appendChild(h.createElement("br"));m.appendChild(l);n.errorMsg.innerHTML= -"";n.errorMsg.appendChild(m);break;case "hfov":c(Number(b[f]));break;case "autoLoad":!0===b[f]&&w===k&&(n.load.box.style.display="inline",v.load.style.display="none",ta());break;case "showZoomCtrl":v.zoom.style.display=b[f]&&!1!=b.showControls?"block":"none";break;case "showFullscreenCtrl":v.fullscreen.style.display=b[f]&&!1!=b.showControls&&("fullscreen"in h||"mozFullScreen"in h||"webkitIsFullScreen"in h||"msFullscreenElement"in h)?"block":"none";break;case "hotSpotDebug":bb.style.display=b[f]?"block": -"none";break;case "showControls":b[f]||(v.orientation.style.display="none",v.zoom.style.display="none",v.fullscreen.style.display="none");break;case "orientationOnByDefault":b[f]&&Xa()}a&&(d?b.title=d:delete b.title,e?b.author=e:delete b.author)}function Ea(){if(H&&!Ta)if(Ca)h.exitFullscreen?h.exitFullscreen():h.mozCancelFullScreen?h.mozCancelFullScreen():h.webkitCancelFullScreen?h.webkitCancelFullScreen():h.msExitFullscreen&&h.msExitFullscreen();else try{l.requestFullscreen?l.requestFullscreen(): -l.mozRequestFullScreen?l.mozRequestFullScreen():l.msRequestFullscreen?l.msRequestFullscreen():l.webkitRequestFullScreen()}catch(a){}}function B(a){h.fullscreenElement||h.fullscreen||h.mozFullScreen||h.webkitIsFullScreen||h.msFullscreenElement?(v.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),Ca=!0):(v.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),Ca=!1);"resize"!==a&&A("fullscreenchange",Ca);w.resize();c(b.hfov);E()}function m(a){var c=b.minHfov;"multires"== -b.type&&w&&!b.multiResMinHfov&&(c=Math.min(c,w.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&&w&&!isNaN(b.maxPitch-b.minPitch)&&(a=w.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 c(a){b.hfov=m(a);A("zoomchange",b.hfov)}function f(){P={};Z=b.autoRotate? -b.autoRotate:Z;b.autoRotate=!1}function M(){Ta&&(n.load.box.style.display="none",n.errorMsg.style.display="none",Ta=!1,N.style.display="block",A("errorcleared"));H=!1;pa();v.load.style.display="none";n.load.box.style.display="inline";ta()}function y(a,c,e,f,l){H||(l=!0);H=!1;P={};var m,n,p;if(b.sceneFadeDuration&&!l&&(l=w.render(b.pitch*Math.PI/180,b.yaw*Math.PI/180,b.hfov*Math.PI/180,{returnImage:"ImageBitmap"}),l!==k)){m=l.then?h.createElement("canvas"):new Image;m.className="pnlm-fade-img";m.style.transition= -"opacity "+b.sceneFadeDuration/1E3+"s";m.style.width="100%";m.style.height="100%";l.then?l.then(function(b){m.width=b.width;m.height=b.height;m.getContext("2d").drawImage(b,0,0);y(a,c,e,f,!0)}):(m.onload=function(){y(a,c,e,f,!0)},m.src=l);N.appendChild(m);w.fadeImg=m;return}l="same"===c?b.pitch:c;n="same"===e?b.yaw:"sameAzimuth"===e?b.yaw+(b.northOffset||0)-(r.scenes[a].northOffset||0):e;p="same"===f?b.hfov:f;Qa();G(a);x.yaw=x.pitch=x.hfov=0;d();l!==k&&(b.pitch=l);n!==k&&(b.yaw=n);p!==k&&(b.hfov= -p);A("scenechange",a);M()}function t(){C.removeEventListener("deviceorientation",ea);v.orientation.classList.remove("pnlm-orientation-button-active");Y=!1}function Xa(){cb&&("undefined"!==typeof DeviceMotionEvent&&"function"===typeof DeviceMotionEvent.requestPermission?DeviceOrientationEvent.requestPermission().then(function(a){"granted"==a&&(Y=1,C.addEventListener("deviceorientation",ea),v.orientation.classList.add("pnlm-orientation-button-active"))}):(Y=1,C.addEventListener("deviceorientation", -ea),v.orientation.classList.add("pnlm-orientation-button-active")))}function u(a){return r.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 ja(a,b){try{var c=decodeURIComponent(gb(a)).replace(/[^\w:]/g,"").toLowerCase()}catch(d){return"about:blank"}return 0===c.indexOf("javascript:")||0===c.indexOf("vbscript:")? -(console.log("Script URL removed."),"about:blank"):b&&0===c.indexOf("data:")?(console.log("Data URI removed from link."),"about:blank"):a}function gb(a){return a.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,function(a,b){b=b.toLowerCase();return"colon"===b?":":"#"===b.charAt(0)?"x"===b.charAt(1)?String.fromCharCode(parseInt(b.substring(2),16)):String.fromCharCode(+b.substring(1)):""})}function A(a){if(a in U)for(var b=U[a].length;0a?2*a*a:-1+(4-2*a)*a},draggable:!0,dragConfirm:"pitch",disableKeyboardCtrl:!1,crossOrigin:"anonymous",targetBlank:!1,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.",twoTouchActivate:"Use two fingers to pan the panorama.",twoTouchXActivate:"Use two fingers together to yaw the panorama.",twoTouchYActivate:"Use two fingers together to pitch the panorama.",ctrlZoomActivate:"Hold down the Ctrl key while using the mouse wheel to change zoom."}};l="string"===typeof l?h.getElementById(l):l;l.classList.add("pnlm-container");l.tabIndex=0;var I=h.createElement("div");I.className="pnlm-ui";l.appendChild(I);var N=h.createElement("div"); -N.className="pnlm-render-container";l.appendChild(N);var X=h.createElement("div");X.className="pnlm-dragfix";I.appendChild(X);var ca=h.createElement("span");ca.className="pnlm-about-msg";var Na=h.createElement("a");Na.href="https://pannellum.org/";Na.textContent="Pannellum";ca.appendChild(Na);var fb=h.createElement("span");fb.textContent=" 40ffc37";ca.appendChild(fb);I.appendChild(ca);X.addEventListener("contextmenu",Q);var n={},bb=h.createElement("div");bb.className="pnlm-sprite pnlm-hot-spot-debug-indicator"; -I.appendChild(bb);n.container=h.createElement("div");n.container.className="pnlm-panorama-info";n.title=h.createElement("div");n.title.className="pnlm-title-box";n.container.appendChild(n.title);n.author=h.createElement("div");n.author.className="pnlm-author-box";n.container.appendChild(n.author);I.appendChild(n.container);n.load={};n.load.box=h.createElement("div");n.load.box.className="pnlm-load-box";n.load.boxp=h.createElement("p");n.load.box.appendChild(n.load.boxp);n.load.lbox=h.createElement("div"); -n.load.lbox.className="pnlm-lbox";n.load.lbox.innerHTML='
';n.load.box.appendChild(n.load.lbox);n.load.lbar=h.createElement("div");n.load.lbar.className="pnlm-lbar";n.load.lbarFill=h.createElement("div");n.load.lbarFill.className="pnlm-lbar-fill";n.load.lbar.appendChild(n.load.lbarFill);n.load.box.appendChild(n.load.lbar);n.load.msg=h.createElement("p");n.load.msg.className="pnlm-lmsg";n.load.box.appendChild(n.load.msg);I.appendChild(n.load.box);n.errorMsg=h.createElement("div"); -n.errorMsg.className="pnlm-error-msg pnlm-info-box";I.appendChild(n.errorMsg);n.interactionMsg=h.createElement("p");n.interactionMsg.className="pnlm-interaction-msg pnlm-info-box";I.appendChild(n.interactionMsg);var v={};v.container=h.createElement("div");v.container.className="pnlm-controls-container";I.appendChild(v.container);v.load=h.createElement("button");v.load.className="pnlm-load-button";v.load.addEventListener("click",function(){d();M()});I.appendChild(v.load);v.zoom=h.createElement("div"); -v.zoom.className="pnlm-zoom-controls pnlm-controls";v.zoomIn=h.createElement("div");v.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control";v.zoomIn.addEventListener("click",function(){H&&(c(b.hfov-5),E())});v.zoom.appendChild(v.zoomIn);v.zoomOut=h.createElement("div");v.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control";v.zoomOut.addEventListener("click",function(){H&&(c(b.hfov+5),E())});v.zoom.appendChild(v.zoomOut);v.container.appendChild(v.zoom);v.fullscreen=h.createElement("div"); -v.fullscreen.addEventListener("click",Ea);v.fullscreen.className="pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control";(h.fullscreenEnabled||h.mozFullScreenEnabled||h.webkitFullscreenEnabled||h.msFullscreenEnabled)&&v.container.appendChild(v.fullscreen);v.orientation=h.createElement("div");v.orientation.addEventListener("click",function(a){Y?t():Xa()});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 cb=!1;C.DeviceOrientationEvent&&"https:"==location.protocol&&0<=navigator.userAgent.toLowerCase().indexOf("mobi")&&(v.container.appendChild(v.orientation),cb=!0);var Ma=h.createElement("div");Ma.className="pnlm-compass pnlm-controls pnlm-control";I.appendChild(Ma); -r.firstScene?G(r.firstScene):r.default&&r.default.firstScene?G(r.default.firstScene):G(null);d(!0);var na=[],Ba=[];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(H)};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==k?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;E();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+540)%360-180};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==k?1E3:Number(c);a=(a+180)%360-180;c?(180=Math.abs(a-b.hfov))return"function"==typeof e&&e(f),this;(d=d==k?1E3:Number(d))?(P.hfov={startTime:Date.now(),startPosition:b.hfov,endPosition:m(a),duration:d},"function"==typeof e&&setTimeout(function(){e(f)}, -d)):c(a);E();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,h){e=e==k?1E3:Number(e);a!==k&&1E-6