-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
100 lines (100 loc) · 58.8 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE HTML>
<!-- Pannellum 2.3.2, https://github.com/mpetroff/pannellum -->
<html><head><meta charset=utf-8><meta name=viewport content="width=device-width, initial-scale=1.0"><title>Pannellum</title><style type="text/css">.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}.pnlm-container *{box-sizing:content-box}.pnlm-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: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}.pnlm-container:-webkit-full-screen{height:100%!important;width:100%!important}.pnlm-container:-ms-fullscreen{height:100%!important;width:100%!important}.pnlm-container:fullscreen{height:100%!important;width:100%!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}html{height:100%}body{margin:0;padding:0;overflow:hidden;position:fixed;cursor:default;width:100%;height:100%}</style></head><body><div id=container><noscript><div class=pnlm-info-box><p>Javascript is required to view this panorama.<br>(It could be worse; you could need a plugin.)</p></div></noscript></div><script type="text/javascript">window.libpannellum=function(q,e,h){function H(ba){function T(a,f){return 1==a.level&&1!=f.level?-1:1==f.level&&1!=a.level?1:f.timestamp-a.timestamp}function H(a,f){return a.level!=f.level?a.level-f.level:a.diff-f.diff}function G(a,f,d,e,l,b){this.vertices=a;this.side=f;this.level=d;this.x=e;this.y=l;this.path=b.replace("%s",f).replace("%l",d).replace("%x",e).replace("%y",l)}function ta(a,f,e,l,r){var b;var k=f.vertices;b=ca(a,k.slice(0,3));var t=ca(a,k.slice(3,6)),h=ca(a,k.slice(6,9)),k=ca(a,k.slice(9,
12)),q=b[0]+t[0]+h[0]+k[0];-4==q||4==q?b=!1:(q=b[1]+t[1]+h[1]+k[1],b=-4==q||4==q?!1:4!=b[2]+t[2]+h[2]+k[2]);if(b){b=f.vertices;t=b[0]+b[3]+b[6]+b[9];h=b[1]+b[4]+b[7]+b[10];k=b[2]+b[5]+b[8]+b[11];q=Math.sqrt(t*t+h*h+k*k);k=Math.asin(k/q);t=Math.atan2(h,t)-l;t+=t>Math.PI?-2*Math.PI:t<-Math.PI?2*Math.PI:0;t=Math.abs(t);f.diff=Math.acos(Math.sin(e)*Math.sin(k)+Math.cos(e)*Math.cos(k)*Math.cos(t));t=!1;for(h=0;h<d.nodeCache.length;h++)if(d.nodeCache[h].path==f.path){t=!0;d.nodeCache[h].timestamp=d.nodeCacheTimestamp++;
d.nodeCache[h].diff=f.diff;d.currentNodes.push(d.nodeCache[h]);break}t||(f.timestamp=d.nodeCacheTimestamp++,d.currentNodes.push(f),d.nodeCache.push(f));if(f.level<d.level){var k=s.cubeResolution*Math.pow(2,f.level-s.maxLevel),t=Math.ceil(k*s.invTileResolution)-1,h=k%s.tileResolution*2,A=2*k%s.tileResolution;0===A&&(A=s.tileResolution);0===h&&(h=2*s.tileResolution);q=0.5;if(f.x==t||f.y==t)q=1-s.tileResolution/(s.tileResolution+A);var x=1-q,k=[],v=q,P=q,D=q,K=x,z=x,E=x;if(A<s.tileResolution)if(f.x==
t&&f.y!=t){if(z=P=0.5,"d"==f.side||"u"==f.side)E=D=0.5}else f.x!=t&&f.y==t&&(K=v=0.5,"l"==f.side||"r"==f.side)&&(E=D=0.5);h<=s.tileResolution&&(f.x==t&&(v=0,K=1,"l"==f.side||"r"==f.side)&&(D=0,E=1),f.y==t&&(P=0,z=1,"d"==f.side||"u"==f.side)&&(D=0,E=1));A=[b[0],b[1],b[2],b[0]*v+b[3]*K,b[1]*q+b[4]*x,b[2]*D+b[5]*E,b[0]*v+b[6]*K,b[1]*P+b[7]*z,b[2]*D+b[8]*E,b[0]*q+b[9]*x,b[1]*P+b[10]*z,b[2]*D+b[11]*E];A=new G(A,f.side,f.level+1,2*f.x,2*f.y,s.fullpath);k.push(A);f.x==t&&h<=s.tileResolution||(A=[b[0]*v+
b[3]*K,b[1]*q+b[4]*x,b[2]*D+b[5]*E,b[3],b[4],b[5],b[3]*q+b[6]*x,b[4]*P+b[7]*z,b[5]*D+b[8]*E,b[0]*v+b[6]*K,b[1]*P+b[7]*z,b[2]*D+b[8]*E],A=new G(A,f.side,f.level+1,2*f.x+1,2*f.y,s.fullpath),k.push(A));f.x==t&&h<=s.tileResolution||f.y==t&&h<=s.tileResolution||(A=[b[0]*v+b[6]*K,b[1]*P+b[7]*z,b[2]*D+b[8]*E,b[3]*q+b[6]*x,b[4]*P+b[7]*z,b[5]*D+b[8]*E,b[6],b[7],b[8],b[9]*v+b[6]*K,b[10]*q+b[7]*x,b[11]*D+b[8]*E],A=new G(A,f.side,f.level+1,2*f.x+1,2*f.y+1,s.fullpath),k.push(A));f.y==t&&h<=s.tileResolution||(A=
[b[0]*q+b[9]*x,b[1]*P+b[10]*z,b[2]*D+b[11]*E,b[0]*v+b[6]*K,b[1]*P+b[7]*z,b[2]*D+b[8]*E,b[9]*v+b[6]*K,b[10]*q+b[7]*x,b[11]*D+b[8]*E,b[9],b[10],b[11]],A=new G(A,f.side,f.level+1,2*f.x,2*f.y+1,s.fullpath),k.push(A));for(f=0;f<k.length;f++)ta(a,k[f],e,l,r)}}}function ua(){return[-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,-1,-1,1,1,-1,1,-1,1,1,1,1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1,1,-1,1,-1,-1,1,-1,1,1,-1,1,-1,-1,-1,-1,-1,-1,1,1,1,-1,1,1,1,1,-1,1,1,-1,-1]}function ka(a,f,d){var e=Math.sin(f);f=Math.cos(f);
if("x"==d)return[a[0],f*a[1]+e*a[2],f*a[2]-e*a[1],a[3],f*a[4]+e*a[5],f*a[5]-e*a[4],a[6],f*a[7]+e*a[8],f*a[8]-e*a[7]];if("y"==d)return[f*a[0]-e*a[2],a[1],f*a[2]+e*a[0],f*a[3]-e*a[5],a[4],f*a[5]+e*a[3],f*a[6]-e*a[8],a[7],f*a[8]+e*a[6]];if("z"==d)return[f*a[0]+e*a[1],f*a[1]-e*a[0],a[2],f*a[3]+e*a[4],f*a[4]-e*a[3],a[5],f*a[6]+e*a[7],f*a[7]-e*a[6],a[8]]}function ga(a){return[a[0],a[4],a[8],a[12],a[1],a[5],a[9],a[13],a[2],a[6],a[10],a[14],a[3],a[7],a[11],a[15]]}function va(a){a.textureLoad||(a.textureLoad=
!0,Da(encodeURI(a.path+"."+s.extension),function(f){a.texture=f;a.textureLoaded=!0}))}function ca(a,f){var e=[a[0]*f[0]+a[1]*f[1]+a[2]*f[2],a[4]*f[0]+a[5]*f[1]+a[6]*f[2],a[11]+a[8]*f[0]+a[9]*f[1]+a[10]*f[2],1/(a[12]*f[0]+a[13]*f[1]+a[14]*f[2])],d=e[0]*e[3],h=e[1]*e[3],e=e[2]*e[3],b=[0,0,0];-1>d&&(b[0]=-1);1<d&&(b[0]=1);-1>h&&(b[1]=-1);1<h&&(b[1]=1);if(-1>e||1<e)b[2]=1;return b}var x=e.createElement("canvas");x.style.width=x.style.height="100%";ba.appendChild(x);var d,a,L,M,wa,S,la,da,s,z,ha,C,Z,ma,
W;this.init=function(g,f,q,sa,r,b,k,t){typeof f===h&&(f="equirectangular");z=f;s=g;ha=q;if(d){L&&(a.detachShader(d,L),a.deleteShader(L));M&&(a.detachShader(d,M),a.deleteShader(M));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;g<d.nodeCache.length;g++)a.deleteTexture(d.nodeCache[g].texture);a.deleteProgram(d);d=h}da=h;"cubemap"==z&&0!==(s[0].width&s[0].width-1)&&(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)||
navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 9_/)||navigator.userAgent.match(/Trident.*rv[ :]*11\./))||a||(a=x.getContext("experimental-webgl",{alpha:!1,depth:!1}));if(!a&&("multires"==z&&s.hasOwnProperty("fallbackPath")||"cubemap"==z)&&("WebkitAppearance"in e.documentElement.style||navigator.userAgent.match(/Trident.*rv[ :]*11\./)||-1!==navigator.appVersion.indexOf("MSIE 10"))){S&&ba.removeChild(S);S=e.createElement("div");S.className="pnlm-world";sa=s.basePath?s.basePath+s.fallbackPath:
s.fallbackPath;var ja="frblud".split(""),G=0;r=function(){var a=e.createElement("canvas");a.className="pnlm-face pnlm-"+ja[this.side]+"face";S.appendChild(a);var b=a.getContext("2d");a.style.width=this.width+4+"px";a.style.height=this.height+4+"px";a.width=this.width+4;a.height=this.height+4;b.drawImage(this,2,2);var f=b.getImageData(0,0,a.width,a.height),d=f.data,h,g;for(h=2;h<a.width-2;h++)for(g=0;4>g;g++)d[4*(h+a.width)+g]=d[4*(h+2*a.width)+g],d[4*(h+a.width*(a.height-2))+g]=d[4*(h+a.width*(a.height-
3))+g];for(h=2;h<a.height-2;h++)for(g=0;4>g;g++)d[4*(h*a.width+1)+g]=d[4*(h*a.width+2)+g],d[4*((h+1)*a.width-2)+g]=d[4*((h+1)*a.width-3)+g];for(g=0;4>g;g++)d[4*(a.width+1)+g]=d[4*(2*a.width+2)+g],d[4*(2*a.width-2)+g]=d[4*(3*a.width-3)+g],d[4*(a.width*(a.height-2)+1)+g]=d[4*(a.width*(a.height-3)+2)+g],d[4*(a.width*(a.height-1)-2)+g]=d[4*(a.width*(a.height-2)-3)+g];for(h=1;h<a.width-1;h++)for(g=0;4>g;g++)d[4*h+g]=d[4*(h+a.width)+g],d[4*(h+a.width*(a.height-1))+g]=d[4*(h+a.width*(a.height-2))+g];for(h=
1;h<a.height-1;h++)for(g=0;4>g;g++)d[h*a.width*4+g]=d[4*(h*a.width+1)+g],d[4*((h+1)*a.width-1)+g]=d[4*((h+1)*a.width-2)+g];for(g=0;4>g;g++)d[g]=d[4*(a.width+1)+g],d[4*(a.width-1)+g]=d[4*(2*a.width-2)+g],d[a.width*(a.height-1)*4+g]=d[4*(a.width*(a.height-2)+1)+g],d[4*(a.width*a.height-1)+g]=d[4*(a.width*(a.height-1)-2)+g];b.putImageData(f,0,0);G++;6==G&&(wa=this.width,ba.appendChild(S),k())};for(g=0;6>g;g++)b=new Image,b.crossOrigin="anonymous",b.side=g,b.onload=r,b.src="multires"==z?encodeURI(sa.replace("%s",
ja[g])+"."+s.extension):encodeURI(s[g].src)}else{if(!a)throw console.log("Error: no WebGL support detected!"),{type:"no webgl"};s.fullpath=s.basePath?s.basePath+s.path:s.path;s.invTileResolution=1/s.tileResolution;f=ua();la=[];for(g=0;6>g;g++)la[g]=f.slice(12*g,12*g+12),f=ua();if("equirectangular"==z){if(g=Math.max(s.width,s.height),f=a.getParameter(a.MAX_TEXTURE_SIZE),g>f)throw console.log("Error: The image is too big; it's "+g+"px wide, but this device's maximum supported width is "+f+"px."),{type:"webgl size error",
width:g,maxWidth:f};}else if("cubemap"==z&&(g=s[0].width,f=a.getParameter(a.MAX_CUBE_MAP_TEXTURE_SIZE),g>f))throw console.log("Error: The cube face image is too big; it's "+g+"px wide, but this device's maximum supported width is "+f+"px."),{type:"webgl size error",width:g,maxWidth:f};t===h||t.horizonPitch===h&&t.horizonRoll===h||(da=[t.horizonPitch==h?0:t.horizonPitch,t.horizonRoll==h?0:t.horizonRoll]);g=a.TEXTURE_2D;a.viewport(0,0,x.width,x.height);L=a.createShader(a.VERTEX_SHADER);f=l;"multires"==
z&&(f=v);a.shaderSource(L,f);a.compileShader(L);M=a.createShader(a.FRAGMENT_SHADER);f=Ua;"cubemap"==z?(g=a.TEXTURE_CUBE_MAP,f=Ea):"multires"==z&&(f=na);a.shaderSource(M,f);a.compileShader(M);d=a.createProgram();a.attachShader(d,L);a.attachShader(d,M);a.linkProgram(d);a.getShaderParameter(L,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(L));a.getShaderParameter(M,a.COMPILE_STATUS)||console.log(a.getShaderInfoLog(M));a.getProgramParameter(d,a.LINK_STATUS)||console.log(a.getProgramInfoLog(d));a.useProgram(d);
d.drawInProgress=!1;d.texCoordLocation=a.getAttribLocation(d,"a_texCoord");a.enableVertexAttribArray(d.texCoordLocation);"multires"!=z?(C||(C=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,C),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,x.width/x.height),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,sa/(2*Math.PI)),a.uniform1f(d.v,r/Math.PI),a.uniform1f(d.vo,b/Math.PI*2),"equirectangular"==z&&(d.backgroundColor=a.getUniformLocation(d,"u_backgroundColor"),a.uniform4fv(d.backgroundColor,(t.backgroundColor?t.backgroundColor:[0,0,0]).concat([1]))),d.texture=a.createTexture(),a.bindTexture(g,d.texture),
"cubemap"==z?(a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[1]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_X,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[3]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[4]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Y,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[5]),a.texImage2D(a.TEXTURE_CUBE_MAP_POSITIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[0]),a.texImage2D(a.TEXTURE_CUBE_MAP_NEGATIVE_Z,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s[2])):a.texImage2D(g,
0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s),a.texParameteri(g,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(g,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE),a.texParameteri(g,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(g,a.TEXTURE_MAG_FILTER,a.LINEAR)):(d.vertPosLocation=a.getAttribLocation(d,"a_vertCoord"),a.enableVertexAttribArray(d.vertPosLocation),Z||(Z=a.createBuffer()),ma||(ma=a.createBuffer()),W||(W=a.createBuffer()),a.bindBuffer(a.ARRAY_BUFFER,ma),a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,1,1,
0,1]),a.STATIC_DRAW),a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,W),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);if(0!==a.getError())throw console.log("Error: Something went wrong with WebGL!"),{type:"webgl error"};k()}};this.destroy=function(){ba!==h&&(x!==h&&ba.removeChild(x),S!==h&&ba.removeChild(S));
if(a){var d=a.getExtension("WEBGL_lose_context");d&&d.loseContext()}};this.resize=function(){var g=q.devicePixelRatio||1;x.width=x.clientWidth*g;x.height=x.clientHeight*g;a&&(a.viewport(0,0,x.width,x.height),"multires"!=z&&a.uniform1f(d.aspectRatio,x.width/x.height))};this.resize();this.render=function(g,f,e,l){var r;r=0;l===h&&(l={});l.roll&&(r=l.roll);if(da!==h){var b=da[0],k=da[1],t=g,v=f,C=Math.cos(k)*Math.sin(g)*Math.sin(b)+Math.cos(g)*(Math.cos(b)*Math.cos(f)+Math.sin(k)*Math.sin(b)*Math.sin(f)),
A=-Math.sin(g)*Math.sin(k)+Math.cos(g)*Math.cos(k)*Math.sin(f);g=Math.cos(k)*Math.cos(b)*Math.sin(g)+Math.cos(g)*(-Math.cos(f)*Math.sin(b)+Math.cos(b)*Math.sin(k)*Math.sin(f));g=Math.asin(Math.max(Math.min(g,1),-1));f=Math.atan2(A,C);b=[Math.cos(t)*(Math.sin(k)*Math.sin(b)*Math.cos(v)-Math.cos(b)*Math.sin(v)),Math.cos(t)*Math.cos(k)*Math.cos(v),Math.cos(t)*(Math.cos(b)*Math.sin(k)*Math.cos(v)+Math.sin(v)*Math.sin(b))];k=[-Math.cos(g)*Math.sin(f),Math.cos(g)*Math.cos(f)];k=Math.acos(Math.max(Math.min((b[0]*
k[0]+b[1]*k[1])/(Math.sqrt(b[0]*b[0]+b[1]*b[1]+b[2]*b[2])*Math.sqrt(k[0]*k[0]+k[1]*k[1])),1),-1));0>b[2]&&(k=2*Math.PI-k);r+=k}if(a||"multires"!=z&&"cubemap"!=z){if("multires"!=z)e=2*Math.atan(Math.tan(0.5*e)/(x.width/x.height)),e=1/Math.tan(0.5*e),a.uniform1f(d.psi,f),a.uniform1f(d.theta,g),a.uniform1f(d.rot,r),a.uniform1f(d.f,e),!0===ha&&"equirectangular"==z&&(a.bindTexture(a.TEXTURE_2D,d.texture),a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,s)),a.drawArrays(a.TRIANGLES,0,6);else{b=x.width/
x.height;k=2*Math.atan(Math.tan(e/2)*x.height/x.width);k=1/Math.tan(k/2);b=[k/b,0,0,0,0,k,0,0,0,0,100.1/-99.9,20/-99.9,0,0,-1,0];for(k=1;k<s.maxLevel&&x.width>s.tileResolution*Math.pow(2,k-1)*Math.tan(e/2)*0.707;)k++;d.level=k;k=[1,0,0,0,1,0,0,0,1];k=ka(k,-r,"z");k=ka(k,-g,"x");k=ka(k,f,"y");k=[k[0],k[1],k[2],0,k[3],k[4],k[5],0,k[6],k[7],k[8],0,0,0,0,1];a.uniformMatrix4fv(d.perspUniform,!1,new Float32Array(ga(b)));a.uniformMatrix4fv(d.cubeUniform,!1,new Float32Array(ga(k)));b=[b[0]*k[0],b[0]*k[1],
b[0]*k[2],0,b[5]*k[4],b[5]*k[5],b[5]*k[6],0,b[10]*k[8],b[10]*k[9],b[10]*k[10],b[11],-k[8],-k[9],-k[10],0];d.nodeCache.sort(T);if(200<d.nodeCache.length&&d.nodeCache.length>d.currentNodes.length+50)for(k=d.nodeCache.splice(200,d.nodeCache.length-200),r=0;r<k.length;r++)a.deleteTexture(k[r].texture);d.currentNodes=[];k="fbudlr".split("");for(r=0;6>r;r++)t=new G(la[r],k[r],1,0,0,s.fullpath),ta(b,t,g,f,e);d.currentNodes.sort(H);for(r=0;r<d.currentNodes.length;r++)if(!d.currentNodes[r].texture){setTimeout(va(d.currentNodes[r]),
0);break}if(!d.drawInProgress){d.drawInProgress=!0;for(g=0;g<d.currentNodes.length;g++)d.currentNodes[g].textureLoaded&&(a.bindBuffer(a.ARRAY_BUFFER,Z),a.bufferData(a.ARRAY_BUFFER,new Float32Array(d.currentNodes[g].vertices),a.STATIC_DRAW),a.vertexAttribPointer(d.vertPosLocation,3,a.FLOAT,!1,0,0),a.bindBuffer(a.ARRAY_BUFFER,ma),a.vertexAttribPointer(d.texCoordLocation,2,a.FLOAT,!1,0,0),a.bindTexture(a.TEXTURE_2D,d.currentNodes[g].texture),a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0));d.drawInProgress=
!1}}if(l.returnImage!==h)return x.toDataURL("image/png")}else for(r=wa/2,l={f:"translate3d(-"+(r+2)+"px, -"+(r+2)+"px, -"+r+"px)",b:"translate3d("+(r+2)+"px, -"+(r+2)+"px, "+r+"px) rotateX(180deg) rotateZ(180deg)",u:"translate3d(-"+(r+2)+"px, -"+r+"px, "+(r+2)+"px) rotateX(270deg)",d:"translate3d(-"+(r+2)+"px, "+r+"px, -"+(r+2)+"px) rotateX(90deg)",l:"translate3d(-"+r+"px, -"+(r+2)+"px, "+(r+2)+"px) rotateX(180deg) rotateY(90deg) rotateZ(180deg)",r:"translate3d("+r+"px, -"+(r+2)+"px, -"+(r+2)+"px) rotateY(270deg)"},
e=1/Math.tan(e/2),e=e*x.width/(q.devicePixelRatio||1)/2+"px",g="perspective("+e+") translateZ("+e+") rotateX("+g+"rad) rotateY("+f+"rad) ",f=Object.keys(l),r=0;6>r;r++)e=S.querySelector(".pnlm-"+f[r]+"face").style,e.webkitTransform=g+l[f[r]],e.transform=g+l[f[r]]};this.isLoading=function(){if(a&&"multires"==z)for(var e=0;e<d.currentNodes.length;e++)if(!d.currentNodes[e].textureLoaded)return!0;return!1};this.getCanvas=function(){return x};var Da=function(){function d(){var b=this;this.texture=this.callback=
null;this.image=new Image;this.image.crossOrigin="anonymous";this.image.addEventListener("load",function(){var d=b.image;a.bindTexture(a.TEXTURE_2D,b.texture);a.texImage2D(a.TEXTURE_2D,0,a.RGB,a.RGB,a.UNSIGNED_BYTE,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE);a.bindTexture(a.TEXTURE_2D,null);b.callback(b.texture);
l.length?(d=l.shift(),b.loadTexture(d.src,d.texture,d.callback)):h[e++]=b})}function f(a,b,d){this.src=a;this.texture=b;this.callback=d}var e=4,h={},l=[];d.prototype.loadTexture=function(a,b,d){this.texture=b;this.callback=d;this.image.src=a};for(var b=0;b<e;b++)h[b]=new d;return function(b,d){var g=a.createTexture();e?h[--e].loadTexture(b,g,d):l.push(new f(b,g,d));return g}}()}var l="attribute vec2 a_texCoord;varying vec2 v_texCoord;void main() {gl_Position = vec4(a_texCoord, 0.0, 1.0);v_texCoord = a_texCoord;}",
v="attribute vec3 a_vertCoord;attribute vec2 a_texCoord;uniform mat4 u_cubeMatrix;uniform mat4 u_perspMatrix;varying mediump vec2 v_texCoord;void main(void) {gl_Position = u_perspMatrix * u_cubeMatrix * vec4(a_vertCoord, 1.0);v_texCoord = a_texCoord;}",Ea="precision mediump float;\nuniform float u_aspectRatio;\nuniform float u_psi;\nuniform float u_theta;\nuniform float u_f;\nuniform float u_h;\nuniform float u_v;\nuniform float u_vo;\nuniform float u_rot;\nconst float PI = 3.14159265358979323846264;\nuniform sampler2D u_image;\nuniform samplerCube u_imageCube;\nvarying vec2 v_texCoord;\nuniform vec4 u_backgroundColor;\nvoid main() {\nfloat x = v_texCoord.x * u_aspectRatio;\nfloat y = v_texCoord.y;\nfloat sinrot = sin(u_rot);\nfloat cosrot = cos(u_rot);\nfloat rot_x = x * cosrot - y * sinrot;\nfloat rot_y = x * sinrot + y * cosrot;\nfloat sintheta = sin(u_theta);\nfloat costheta = cos(u_theta);\nfloat a = u_f * costheta - rot_y * sintheta;\nfloat root = sqrt(rot_x * rot_x + a * a);\nfloat lambda = atan(rot_x / root, a / root) + u_psi;\nfloat phi = atan((rot_y * costheta + u_f * sintheta) / root);float cosphi = cos(phi);\ngl_FragColor = textureCube(u_imageCube, vec3(cosphi*sin(lambda), sin(phi), cosphi*cos(lambda)));\n}",
Ua="precision mediump float;\nuniform float u_aspectRatio;\nuniform float u_psi;\nuniform float u_theta;\nuniform float u_f;\nuniform float u_h;\nuniform float u_v;\nuniform float u_vo;\nuniform float u_rot;\nconst float PI = 3.14159265358979323846264;\nuniform sampler2D u_image;\nuniform samplerCube u_imageCube;\nvarying vec2 v_texCoord;\nuniform vec4 u_backgroundColor;\nvoid main() {\nfloat x = v_texCoord.x * u_aspectRatio;\nfloat y = v_texCoord.y;\nfloat sinrot = sin(u_rot);\nfloat cosrot = cos(u_rot);\nfloat rot_x = x * cosrot - y * sinrot;\nfloat rot_y = x * sinrot + y * cosrot;\nfloat sintheta = sin(u_theta);\nfloat costheta = cos(u_theta);\nfloat a = u_f * costheta - rot_y * sintheta;\nfloat root = sqrt(rot_x * rot_x + a * a);\nfloat lambda = atan(rot_x / root, a / root) + u_psi;\nfloat phi = atan((rot_y * costheta + u_f * sintheta) / root);lambda = mod(lambda + PI, PI * 2.0) - PI;\nvec2 coord = vec2(lambda / PI, phi / (PI / 2.0));\nif(coord.x < -u_h || coord.x > u_h || coord.y < -u_v + u_vo || coord.y > u_v + u_vo)\ngl_FragColor = u_backgroundColor;\nelse\ngl_FragColor = texture2D(u_image, vec2((coord.x + u_h) / (u_h * 2.0), (-coord.y + u_v + u_vo) / (u_v * 2.0)));\n}",
na="varying mediump vec2 v_texCoord;uniform sampler2D u_sampler;void main(void) {gl_FragColor = texture2D(u_sampler, v_texCoord);}";return{renderer:function(e,h,l,q){return new H(e,h,l,q)}}}(window,document);window.requestAnimationFrame||(window.requestAnimationFrame=function(){return window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(q,e){window.setTimeout(q,1E3/60)}}());
window.pannellum=function(q,e,h){function H(l,v){function Ea(){var y=e.createElement("div");y.innerHTML="\x3c!--[if lte IE 9]><i></i><![endif]--\x3e";if(1==y.getElementsByTagName("i").length)T();else{xa=c.hfov;ya=c.pitch;var a;if("cubemap"==c.type){N=[];for(y=0;6>y;y++)N.push(new Image),N[y].crossOrigin="anonymous";n.load.lbox.style.display="block";n.load.lbar.style.display="none"}else if("multires"==c.type)y=JSON.parse(JSON.stringify(c.multiRes)),c.basePath&&c.multiRes.basePath&&!/^(?:[a-z]+:)?\/\//i.test(c.multiRes.basePath)?
y.basePath=c.basePath+c.multiRes.basePath:c.multiRes.basePath?y.basePath=c.multiRes.basePath:c.basePath&&(y.basePath=c.basePath),N=y;else if(!0===c.dynamic)N=c.panorama;else{if(c.panorama===h){T("No panorama image was specified.");return}N=new Image}if("cubemap"==c.type)for(var b=6,d=function(){b--;0===b&&na()},f=function(a){var y=e.createElement("a");y.href=a.target.src;y.innerHTML=y.href;T("The file "+y.outerHTML+" could not be accessed.")},y=0;y<N.length;y++)N[y].onload=d,N[y].onerror=f,a=c.cubeMap[y],
c.basePath&&!H(a)&&(a=c.basePath+a),N[y].src=encodeURI(a);else if("multires"==c.type)na();else if(a="",c.basePath&&(a=c.basePath),!0!==c.dynamic){a=H(c.panorama)?c.panorama:a+c.panorama;N.onload=function(){q.URL.revokeObjectURL(this.src);na()};var g=new XMLHttpRequest;g.onloadend=function(){if(200!=g.status){var y=e.createElement("a");y.href=encodeURI(a);y.innerHTML=y.href;T("The file "+y.outerHTML+" could not be accessed.")}ba(this.response);n.load.msg.innerHTML=""};g.onprogress=function(a){if(a.lengthComputable){n.load.lbarFill.style.width=
a.loaded/a.total*100+"%";var y,c;1E6<a.total?(y="MB",c=(a.loaded/1E6).toFixed(2),a=(a.total/1E6).toFixed(2)):1E3<a.total?(y="kB",c=(a.loaded/1E3).toFixed(1),a=(a.total/1E3).toFixed(1)):(y="B",c=a.loaded,a=a.total);n.load.msg.innerHTML=c+" / "+a+" "+y}else n.load.lbox.style.display="block",n.load.lbar.style.display="none"};try{g.open("GET",a,!0)}catch(k){T("There is something wrong with the panorama URL.")}g.responseType="blob";g.setRequestHeader("Accept","image/*,*/*;q=0.9");g.send()}l.classList.add("pnlm-grab");
l.classList.remove("pnlm-grabbing")}}function H(a){return/^(?:[a-z]+:)?\/\//i.test(a)||"/"==a[0]||"blob:"==a.slice(0,5)}function na(){B||(B=new libpannellum.renderer(I));La||(La=!0,F.addEventListener("mousedown",ta,!1),e.addEventListener("mousemove",ka,!1),e.addEventListener("mouseup",ga,!1),c.mouseZoom&&(l.addEventListener("mousewheel",M,!1),l.addEventListener("DOMMouseScroll",M,!1)),l.addEventListener("mozfullscreenchange",Y,!1),l.addEventListener("webkitfullscreenchange",Y,!1),l.addEventListener("msfullscreenchange",
Y,!1),l.addEventListener("fullscreenchange",Y,!1),q.addEventListener("resize",ha,!1),q.addEventListener("orientationchange",ha,!1),l.addEventListener("keydown",wa,!1),l.addEventListener("keyup",la,!1),l.addEventListener("blur",S,!1),e.addEventListener("mouseleave",ga,!1),F.addEventListener("touchstart",va,!1),F.addEventListener("touchmove",ca,!1),F.addEventListener("touchend",x,!1),F.addEventListener("pointerdown",d,!1),F.addEventListener("pointermove",a,!1),F.addEventListener("pointerup",L,!1),F.addEventListener("pointerleave",
L,!1),q.navigator.pointerEnabled&&(l.style.touchAction="none"));g();setTimeout(function(){},500)}function ba(a){var m=new FileReader;m.addEventListener("loadend",function(){var b=m.result;if(navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad).* os 8_/)){var d=b.indexOf("\u00ff\u00c2");(0>d||65536<d)&&T("Due to iOS 8's broken WebGL implementation, only progressive encoded JPEGs work for your device (this panorama uses standard encoding).")}d=b.indexOf("<x:xmpmeta");if(-1<d&&!0!==c.ignoreGPanoXMP){var e=
b.substring(d,b.indexOf("</x:xmpmeta>")+12),f=function(a){var y;0<=e.indexOf(a+'="')?(y=e.substring(e.indexOf(a+'="')+a.length+2),y=y.substring(0,y.indexOf('"'))):0<=e.indexOf(a+">")&&(y=e.substring(e.indexOf(a+">")+a.length+1),y=y.substring(0,y.indexOf("<")));return y!==h?Number(y):null},b=f("GPano:FullPanoWidthPixels"),d=f("GPano:CroppedAreaImageWidthPixels"),g=f("GPano:FullPanoHeightPixels"),k=f("GPano:CroppedAreaImageHeightPixels"),l=f("GPano:CroppedAreaTopPixels"),p=f("GPano:PoseHeadingDegrees"),
n=f("GPano:PosePitchDegrees"),f=f("GPano:PoseRollDegrees");null!==b&&null!==d&&null!==g&&null!==k&&null!==l&&(0>X.indexOf("haov")&&(c.haov=d/b*360),0>X.indexOf("vaov")&&(c.vaov=k/g*180),0>X.indexOf("vOffset")&&(c.vOffset=-180*((l+k/2)/g-0.5)),null!==p&&0>X.indexOf("northOffset")&&(c.northOffset=p,!1!==c.compass&&(c.compass=!0)),null!==n&&null!==f&&(0>X.indexOf("horizonPitch")&&(c.horizonPitch=n),0>X.indexOf("horizonRoll")&&(c.horizonRoll=f)))}N.src=q.URL.createObjectURL(a)});m.readAsBinaryString!==
h?m.readAsBinaryString(a):m.readAsText(a)}function T(a){a===h&&(a="Your browser does not have the necessary WebGL support to display this panorama.");n.errorMsg.innerHTML="<p>"+a+"</p>";u.load.style.display="none";n.load.box.style.display="none";n.errorMsg.style.display="table";Fa=!0;I.style.display="none";oa("error",a)}function ra(a){var c=G(a);$.style.left=c.x+"px";$.style.top=c.y+"px";clearTimeout(ra.t1);clearTimeout(ra.t2);$.style.display="block";$.style.opacity=1;ra.t1=setTimeout(function(){$.style.opacity=
0},2E3);ra.t2=setTimeout(function(){$.style.display="none"},2500);a.preventDefault()}function G(a){var c=l.getBoundingClientRect(),b={};b.x=a.clientX-c.left;b.y=a.clientY-c.top;return b}function ta(a){a.preventDefault();l.focus();if(O){var m=G(a);if(c.hotSpotDebug){var b=ua(a);console.log("Pitch: "+b[0]+", Yaw: "+b[1]+", Center Pitch: "+c.pitch+", Center Yaw: "+c.yaw+", HFOV: "+c.hfov)}Ca();K();c.roll=0;w.hfov=0;ea=!0;Q=Date.now();pa=m.x;qa=m.y;Ga=c.yaw;Ha=c.pitch;l.classList.add("pnlm-grabbing");
l.classList.remove("pnlm-grab");oa("mousedown",a);C()}}function ua(a){var m=G(a);a=B.getCanvas();var b=a.width/(q.devicePixelRatio||1),d=a.height/(q.devicePixelRatio||1);a=m.x/b*2-1;var d=(1-m.y/d*2)*d/b,f=1/Math.tan(c.hfov*Math.PI/360),e=Math.sin(c.pitch*Math.PI/180),g=Math.cos(c.pitch*Math.PI/180),m=f*g-d*e,b=Math.sqrt(a*a+m*m),d=180*Math.atan((d*g+f*e)/b)/Math.PI;a=180*Math.atan2(a/b,m/b)/Math.PI+c.yaw;return[d,a]}function ka(a){if(ea&&O){Q=Date.now();var m=B.getCanvas(),b=m.width/(q.devicePixelRatio||
1),m=m.height/(q.devicePixelRatio||1);a=G(a);var d=180*(Math.atan(pa/b*2-1)-Math.atan(a.x/b*2-1))/Math.PI*c.hfov/90+Ga;w.yaw=(d-c.yaw)%360*0.2;c.yaw=d;b=360*Math.atan(Math.tan(c.hfov/360*Math.PI)*m/b)/Math.PI;b=180*(Math.atan(a.y/m*2-1)-Math.atan(qa/m*2-1))/Math.PI*b/90+Ha;w.pitch=0.2*(b-c.pitch);c.pitch=b}}function ga(a){ea&&(ea=!1,15<Date.now()-Q&&(w.pitch=w.yaw=0),l.classList.add("pnlm-grab"),l.classList.remove("pnlm-grabbing"),Q=Date.now(),oa("mouseup",a))}function va(a){if(O){Ca();K();c.roll=
0;w.hfov=0;var m=G(a.targetTouches[0]);pa=m.x;qa=m.y;2==a.targetTouches.length&&(a=G(a.targetTouches[1]),pa+=0.5*(a.x-m.x),qa+=0.5*(a.y-m.y),za=Math.sqrt((m.x-a.x)*(m.x-a.x)+(m.y-a.y)*(m.y-a.y)));ea=!0;Q=Date.now();Ga=c.yaw;Ha=c.pitch;C()}}function ca(a){a.preventDefault();O&&(Q=Date.now());if(ea&&O){var m=G(a.targetTouches[0]),b=m.x,d=m.y;2==a.targetTouches.length&&-1!=za&&(a=G(a.targetTouches[1]),b+=0.5*(a.x-m.x),d+=0.5*(a.y-m.y),m=Math.sqrt((m.x-a.x)*(m.x-a.x)+(m.y-a.y)*(m.y-a.y)),R(c.hfov+0.1*
(za-m)),za=m);m=c.hfov/360;b=(pa-b)*m+Ga;w.yaw=(b-c.yaw)%360*0.2;c.yaw=b;d=(d-qa)*m+Ha;w.pitch=0.2*(d-c.pitch);c.pitch=d}}function x(){ea=!1;150<Date.now()-Q&&(w.pitch=w.yaw=0);za=-1;Q=Date.now()}function d(a){"touch"==a.pointerType&&(fa.push(a.pointerId),Aa.push({clientX:a.clientX,clientY:a.clientY}),a.targetTouches=Aa,va(a),a.preventDefault())}function a(a){if("touch"==a.pointerType)for(var c=0;c<fa.length;c++)if(a.pointerId==fa[c]){Aa[c]={clientX:a.clientX,clientY:a.clientY};a.targetTouches=Aa;
ca(a);break}}function L(a){if("touch"==a.pointerType){for(var c=!1,b=0;b<fa.length;b++)a.pointerId==fa[b]&&(fa[b]=h),fa[b]&&(c=!0);c||(fa=[],Aa=[],x());a.preventDefault()}}function M(a){a.preventDefault();O&&(Ca(),Q=Date.now(),a.wheelDeltaY?(R(c.hfov-0.05*a.wheelDeltaY),w.hfov=0>a.wheelDelta?1:-1):a.wheelDelta?(R(c.hfov-0.05*a.wheelDelta),w.hfov=0>a.wheelDelta?1:-1):a.detail&&(R(c.hfov+1.5*a.detail),w.hfov=0<a.detail?1:-1),C())}function wa(a){a.preventDefault();Ca();Q=Date.now();K();c.roll=0;var m=
a.keycode;a.which&&(m=a.which);27==m?Ia&&ja():da(m,!0)}function S(){for(var a=0;10>a;a++)p[a]=!1}function la(a){a.preventDefault();var c=a.keycode;a.which&&(c=a.which);da(c,!1)}function da(a,c){var b=!1;switch(a){case 109:case 189:case 17:p[0]!=c&&(b=!0);p[0]=c;break;case 107:case 187:case 16:p[1]!=c&&(b=!0);p[1]=c;break;case 38:p[2]!=c&&(b=!0);p[2]=c;break;case 87:p[6]!=c&&(b=!0);p[6]=c;break;case 40:p[3]!=c&&(b=!0);p[3]=c;break;case 83:p[7]!=c&&(b=!0);p[7]=c;break;case 37:p[4]!=c&&(b=!0);p[4]=c;
break;case 65:p[8]!=c&&(b=!0);p[8]=c;break;case 39:p[5]!=c&&(b=!0);p[5]=c;break;case 68:p[9]!=c&&(b=!0),p[9]=c}b&&c&&(aa="undefined"!==typeof performance&&performance.now()?performance.now():Date.now(),C())}function s(){if(O){var a=!1,m=c.pitch,b=c.yaw,d=c.hfov,f;f="undefined"!==typeof performance&&performance.now()?performance.now():Date.now();aa===h&&(aa=f);var e=(f-aa)*c.hfov/1700,e=Math.min(e,1);p[0]&&!0===c.keyboardZoom&&(R(c.hfov+(0.8*w.hfov+0.5)*e),a=!0);p[1]&&!0===c.keyboardZoom&&(R(c.hfov+
(0.8*w.hfov-0.2)*e),a=!0);if(p[2]||p[6])c.pitch+=(0.8*w.pitch+0.2)*e,a=!0;if(p[3]||p[7])c.pitch+=(0.8*w.pitch-0.2)*e,a=!0;if(p[4]||p[8])c.yaw+=(0.8*w.yaw-0.2)*e,a=!0;if(p[5]||p[9])c.yaw+=(0.8*w.yaw+0.2)*e,a=!0;a&&(Q=Date.now());Date.now();if(c.autoRotate){if(0.001<f-aa){var a=(f-aa)/1E3,g=(w.yaw/a*e-0.2*c.autoRotate)*a,g=(0<-c.autoRotate?1:-1)*Math.min(Math.abs(c.autoRotate*a),Math.abs(g));c.yaw+=g}c.autoRotateStopDelay&&(c.autoRotateStopDelay-=f-aa,0>=c.autoRotateStopDelay&&(c.autoRotateStopDelay=
!1,U=c.autoRotate,c.autoRotate=0))}J.pitch&&(z("pitch"),m=c.pitch);J.yaw&&(z("yaw"),b=c.yaw);J.hfov&&(z("hfov"),d=c.hfov);0<e&&!c.autoRotate&&(p[4]||p[5]||p[8]||p[9]||J.yaw||(c.yaw+=w.yaw*e*0.85),p[2]||p[3]||p[6]||p[7]||J.pitch||(c.pitch+=w.pitch*e*0.85),p[0]||p[1]||J.hfov||R(c.hfov+w.hfov*e*0.85));aa=f;0<e&&(w.yaw=0.8*w.yaw+(c.yaw-b)/e*0.2,w.pitch=0.8*w.pitch+(c.pitch-m)/e*0.2,w.hfov=0.8*w.hfov+(c.hfov-d)/e*0.2,m=c.autoRotate?Math.abs(c.autoRotate):5,w.yaw=Math.min(m,Math.max(w.yaw,-m)),w.pitch=
Math.min(m,Math.max(w.pitch,-m)),w.hfov=Math.min(m,Math.max(w.hfov,-m)));p[0]&&p[0]&&(w.hfov=0);(p[2]||p[6])&&(p[3]||p[7])&&(w.pitch=0);(p[4]||p[8])&&(p[5]||p[9])&&(w.yaw=0)}}function z(a){var m=J[a],b=Math.min(1,Math.max((Date.now()-m.startTime)/1E3/(m.duration/1E3),0)),b=m.startPosition+(0.5>b?2*b*b:-1+(4-2*b)*b)*(m.endPosition-m.startPosition);if(m.endPosition>m.startPosition&&b>=m.endPosition||m.endPosition<m.startPosition&&b<=m.endPosition)b=m.endPosition,w[a]=0,delete J[a];c[a]=b}function ha(){Y()}
function C(){Ma||(Ma=!0,Z())}function Z(){ma();Na&&clearTimeout(Na);if(ea||Ja)requestAnimationFrame(Z);else if(p[0]||p[1]||p[2]||p[3]||p[4]||p[5]||p[6]||p[7]||p[8]||p[9]||c.autoRotate||J.pitch||J.yaw||J.hfov||0.01<Math.abs(w.yaw)||0.01<Math.abs(w.pitch)||0.01<Math.abs(w.hfov))s(),0<=c.autoRotateInactivityDelay&&U&&Date.now()-Q>c.autoRotateInactivityDelay&&!c.autoRotate&&(c.autoRotate=U,Ka.lookAt(ya,h,xa,3E3)),requestAnimationFrame(Z);else if(B&&(B.isLoading()||!0===c.dynamic&&Ta))requestAnimationFrame(Z);
else{Ma=!1;aa=h;var a=c.autoRotateInactivityDelay-(Date.now()-Q);0<a?Na=setTimeout(function(){c.autoRotate=U;Ka.lookAt(ya,h,xa,3E3);C()},a):0<=c.autoRotateInactivityDelay&&U&&(c.autoRotate=U,Ka.lookAt(ya,h,xa,3E3),C())}}function ma(){var a;if(O){180<c.yaw?c.yaw-=360:-180>c.yaw&&(c.yaw+=360);a=c.yaw;var m=c.maxYaw-c.minYaw,d=-180,e=180;360>m&&(d=c.minYaw+c.hfov/2,e=c.maxYaw-c.hfov/2,m<c.hfov&&(d=e=(d+e)/2));c.yaw=Math.max(d,Math.min(e,c.yaw));!1!==c.autoRotate&&a!=c.yaw&&(c.autoRotate*=-1);a=B.getCanvas();
a=2*Math.atan(Math.tan(c.hfov/180*Math.PI*0.5)/(a.width/a.height))/Math.PI*180;m=c.minPitch+a/2;d=c.maxPitch-a/2;c.maxPitch-c.minPitch<a&&(m=d=(m+d)/2);isNaN(m)&&(m=-90);isNaN(d)&&(d=90);c.pitch=Math.max(m,Math.min(d,c.pitch));B.render(c.pitch*Math.PI/180,c.yaw*Math.PI/180,c.hfov*Math.PI/180,{roll:c.roll*Math.PI/180});c.hotSpots.forEach(b);c.compass&&(Ba.style.transform="rotate("+(-c.yaw-c.northOffset)+"deg)",Ba.style.webkitTransform="rotate("+(-c.yaw-c.northOffset)+"deg)")}}function W(a,c,b,d){this.w=
a;this.x=c;this.y=b;this.z=d}function Da(a){var b;b=a.alpha;var d=a.beta;a=a.gamma;d=[d?d*Math.PI/180/2:0,a?a*Math.PI/180/2:0,b?b*Math.PI/180/2:0];b=[Math.cos(d[0]),Math.cos(d[1]),Math.cos(d[2])];d=[Math.sin(d[0]),Math.sin(d[1]),Math.sin(d[2])];b=new W(b[0]*b[1]*b[2]-d[0]*d[1]*d[2],d[0]*b[1]*b[2]-b[0]*d[1]*d[2],b[0]*d[1]*b[2]+d[0]*b[1]*d[2],b[0]*b[1]*d[2]+d[0]*d[1]*b[2]);b=b.multiply(new W(Math.sqrt(0.5),-Math.sqrt(0.5),0,0));d=q.orientation?-q.orientation*Math.PI/180/2:0;b=b.multiply(new W(Math.cos(d),
0,-Math.sin(d),0)).toEulerAngles();c.pitch=b[0]/Math.PI*180;c.roll=-b[1]/Math.PI*180;c.yaw=-b[2]/Math.PI*180+c.northOffset}function g(){try{var a={};c.horizonPitch!==h&&(a.horizonPitch=c.horizonPitch*Math.PI/180);c.horizonRoll!==h&&(a.horizonRoll=c.horizonRoll*Math.PI/180);c.backgroundColor!==h&&(a.backgroundColor=c.backgroundColor);B.init(N,c.type,c.dynamic,c.haov*Math.PI/180,c.vaov*Math.PI/180,c.vOffset*Math.PI/180,f,a);!0!==c.dynamic&&(N=h)}catch(b){if("webgl error"==b.type||"no webgl"==b.type)T();
else if("webgl size error"==b.type)T("This panorama is too big for your device! It's "+b.width+"px wide, but your device only supports images up to "+b.maxWidth+"px wide. Try another device. (If you're the author, try scaling down the image.)");else throw T("Unknown error. Check developer console."),b;}}function f(){if(c.sceneFadeDuration&&B.fadeImg!==h){B.fadeImg.style.opacity=0;var a=B.fadeImg;delete B.fadeImg;setTimeout(function(){I.removeChild(a)},c.sceneFadeDuration)}Ba.style.display=c.compass?
"inline":"none";sa();n.load.box.style.display="none";ia!==h&&(I.removeChild(ia),ia=h);O=!0;oa("load");C()}function Ra(a){a.pitch=Number(a.pitch)||0;a.yaw=Number(a.yaw)||0;var b=e.createElement("div");b.className="pnlm-hotspot-base";b.className=a.cssClass?b.className+(" "+a.cssClass):b.className+(" pnlm-hotspot pnlm-sprite pnlm-"+E(a.type));var d=e.createElement("span");a.text&&(d.innerHTML=E(a.text));var f;if(a.video){f=e.createElement("video");var g=a.video;c.basePath&&!H(g)&&(g=c.basePath+g);f.src=
encodeURI(g);f.controls=!0;f.style.width=a.width+"px";I.appendChild(b);d.appendChild(f)}else if(a.image){g=a.image;c.basePath&&!H(g)&&(g=c.basePath+g);f=e.createElement("a");f.href=encodeURI(a.URL?a.URL:g);f.target="_blank";d.appendChild(f);var h=e.createElement("img");h.src=encodeURI(g);h.style.width=a.width+"px";h.style.paddingTop="5px";I.appendChild(b);f.appendChild(h);d.style.maxWidth="initial"}else a.URL?(f=e.createElement("a"),f.href=encodeURI(a.URL),f.target="_blank",I.appendChild(f),b.style.cursor=
"pointer",d.style.cursor="pointer",f.appendChild(b)):(a.sceneId&&(b.onclick=function(){D(a.sceneId,a.targetPitch,a.targetYaw,a.targetHfov);return!1},b.ontouchend=function(){D(a.sceneId,a.targetPitch,a.targetYaw,a.targetHfov);return!1},b.style.cursor="pointer",d.style.cursor="pointer"),I.appendChild(b));if(a.createTooltipFunc)a.createTooltipFunc(b,a.createTooltipArgs);else if(a.text||a.video||a.image)b.classList.add("pnlm-tooltip"),b.appendChild(d),d.style.width=d.scrollWidth-20+"px",d.style.marginLeft=
-(d.scrollWidth-b.offsetWidth)/2+"px",d.style.marginTop=-d.scrollHeight-12+"px";a.clickHandlerFunc&&(b.addEventListener("click",function(c){a.clickHandlerFunc(c,a.clickHandlerArgs)},"false"),b.style.cursor="pointer",d.style.cursor="pointer");a.div=b}function sa(){Oa||(c.hotSpots?(c.hotSpots=c.hotSpots.sort(function(a,c){return a.pitch<c.pitch}),c.hotSpots.forEach(Ra)):c.hotSpots=[],Oa=!0,c.hotSpots.forEach(b))}function r(){if(c.hotSpots)for(var a=0;a<c.hotSpots.length;a++){for(var b=c.hotSpots[a].div;b.parentNode!=
I;)b=b.parentNode;I.removeChild(b);delete c.hotSpots[a].div}Oa=!1;delete c.hotSpots}function b(a){var b=Math.sin(a.pitch*Math.PI/180),d=Math.cos(a.pitch*Math.PI/180),f=Math.sin(c.pitch*Math.PI/180),e=Math.cos(c.pitch*Math.PI/180),g=Math.cos((-a.yaw+c.yaw)*Math.PI/180),h=b*f+d*g*e;if(90>=a.yaw&&-90<a.yaw&&0>=h||(90<a.yaw||-90>=a.yaw)&&0>=h)a.div.style.visibility="hidden";else{var k=Math.sin((-a.yaw+c.yaw)*Math.PI/180),l=Math.tan(c.hfov*Math.PI/360);a.div.style.visibility="visible";var p=B.getCanvas(),
n=p.width/(q.devicePixelRatio||1),p=p.height/(q.devicePixelRatio||1),b=[-n/l*k*d/h/2,-n/l*(b*e-d*g*f)/h/2],d=Math.sin(c.roll*Math.PI/180),f=Math.cos(c.roll*Math.PI/180),b=[b[0]*f-b[1]*d,b[0]*d+b[1]*f];b[0]+=(n-a.div.offsetWidth)/2;b[1]+=(p-a.div.offsetHeight)/2;n="translate("+b[0]+"px, "+b[1]+"px) translateZ(9999px) rotate("+c.roll+"deg)";a.div.style.webkitTransform=n;a.div.style.MozTransform=n;a.div.style.transform=n}}function k(a){c={};var b,d="haov vaov vOffset northOffset horizonPitch horizonRoll".split(" ");
X=[];for(b in Pa)Pa.hasOwnProperty(b)&&(c[b]=Pa[b]);for(b in v.default)v.default.hasOwnProperty(b)&&(c[b]=v.default[b],0<=d.indexOf(b)&&X.push(b));if(null!==a&&""!==a&&v.scenes&&v.scenes[a]){var f=v.scenes[a];for(b in f)f.hasOwnProperty(b)&&(c[b]=f[b],0<=d.indexOf(b)&&X.push(b));c.scene=a}for(b in v)v.hasOwnProperty(b)&&(c[b]=v[b],0<=d.indexOf(b)&&X.push(b))}function t(){if("preview"in c){var a=c.preview;c.basePath&&(a=c.basePath+a);ia=e.createElement("div");ia.className="pnlm-preview-img";ia.style.backgroundImage=
"url('"+encodeURI(a)+"')";I.appendChild(ia)}c.hasOwnProperty("title")||(n.title.innerHTML="");c.hasOwnProperty("author")||(n.author.innerHTML="");c.hasOwnProperty("title")||c.hasOwnProperty("author")||(n.container.style.display="none");for(var b in c)if(c.hasOwnProperty(b))switch(b){case "title":n.title.innerHTML=E(c[b]);n.container.style.display="inline";break;case "author":n.author.innerHTML="by "+E(c[b]);n.container.style.display="inline";break;case "fallback":n.errorMsg.innerHTML='<p>Your browser does not support WebGL.<br><a href="'+
encodeURI(c[b])+'" target="_blank">Click here to view this panorama in an alternative viewer.</a></p>';break;case "hfov":R(Number(c[b]));break;case "autoLoad":!0===c[b]&&B===h&&(n.load.box.style.display="inline",u.load.style.display="none",Ea());break;case "showZoomCtrl":u.zoom.style.display=c[b]&&!1!=c.showControls?"block":"none";break;case "showFullscreenCtrl":u.fullscreen.style.display=c[b]&&!1!=c.showControls&&("fullscreen"in e||"mozFullScreen"in e||"webkitIsFullScreen"in e||"msFullscreenElement"in
e)?"block":"none";break;case "hotSpotDebug":Qa.style.display=c[b]?"block":"none";break;case "showControls":c[b]||(u.orientation.style.display="none",u.zoom.style.display="none",u.fullscreen.style.display="none");break;case "orientationOnByDefault":c[b]&&Sa()}}function ja(){if(O&&!Fa)if(Ia)e.exitFullscreen?e.exitFullscreen():e.mozCancelFullScreen?e.mozCancelFullScreen():e.webkitCancelFullScreen?e.webkitCancelFullScreen():e.msExitFullscreen&&e.msExitFullscreen();else try{l.requestFullscreen?l.requestFullscreen():
l.mozRequestFullScreen?l.mozRequestFullScreen():l.msRequestFullscreen?l.msRequestFullscreen():l.webkitRequestFullScreen()}catch(a){}}function Y(){e.fullscreen||e.mozFullScreen||e.webkitIsFullScreen||e.msFullscreenElement?(u.fullscreen.classList.add("pnlm-fullscreen-toggle-button-active"),Ia=!0):(u.fullscreen.classList.remove("pnlm-fullscreen-toggle-button-active"),Ia=!1);B.resize();R(c.hfov);C()}function A(a){var b=c.minHfov;"multires"==c.type&&B&&(b=Math.min(b,B.getCanvas().width/(c.multiRes.cubeResolution/
90*0.9)));return b>c.maxHfov?(console.log("HFOV bounds do not make sense (minHfov > maxHfov)."),c.hfov):a<b?b:a>c.maxHfov?c.maxHfov:a}function R(a){c.hfov=A(a)}function Ca(){J={};U=c.autoRotate?c.autoRotate:U;c.autoRotate=!1}function P(){Fa&&(n.load.box.style.display="none",n.errorMsg.style.display="none",Fa=!1,oa("errorcleared"));u.load.style.display="none";n.load.box.style.display="inline";Ea()}function D(a,b,d,f,e){O=!1;J={};var g,l;c.sceneFadeDuration&&!e?(e=new Image,e.className="pnlm-fade-img",
e.style.transition="opacity "+c.sceneFadeDuration/1E3+"s",e.style.width="100%",e.style.height="100%",e.onload=function(){D(a,b,d,f,!0)},g=B.render(c.pitch*Math.PI/180,c.yaw*Math.PI/180,c.hfov*Math.PI/180,{returnImage:!0}),g!==h&&(e.src=g),I.appendChild(e),B.fadeImg=e):(e="same"===b?c.pitch:b,g="same"===d?c.yaw:"sameAzimuth"===d?c.yaw+c.northOffset-v.scenes[a].northOffset:d,l="same"===f?c.hfov:f,r(),k(a),w.yaw=w.pitch=w.hfov=0,t(),e!==h&&(c.pitch=e),g!==h&&(c.yaw=g),l!==h&&(c.hfov=l),oa("scenechange",
a),P())}function K(){q.removeEventListener("deviceorientation",Da);u.orientation.classList.remove("pnlm-orientation-button-active");Ja=!1}function Sa(){Ja=!0;q.addEventListener("deviceorientation",Da);u.orientation.classList.add("pnlm-orientation-button-active");requestAnimationFrame(Z)}function E(a){return String(a).replace(/&/g,"&").replace('"',""").replace("'","'").replace("<","<").replace(">",">").replace("/","/")}function oa(a){if(a in V)for(var b=0;b<V[a].length;b++)V[a][b].apply(null,
[].slice.call(arguments,1))}var Ka=this,c,B,ia,ea=!1,Q=Date.now(),pa=0,qa=0,za=-1,Ga=0,Ha=0,p=Array(10),Ia=!1,O=!1,Fa=!1,La=!1,N,aa,w={yaw:0,pitch:0,hfov:0},Ma=!1,Ja=!1,Na,U=0,xa,ya,J={},V={},X=[],Ta=!1,Oa=!1,Pa={hfov:100,minHfov:50,maxHfov:120,pitch:0,minPitch:h,maxPitch:h,yaw:0,minYaw:-180,maxYaw:180,roll:0,haov:360,vaov:180,vOffset:0,autoRotate:!1,autoRotateInactivityDelay:-1,autoRotateStopDelay:h,type:"equirectangular",northOffset:0,showFullscreenCtrl:!0,dynamic:!1,keyboardZoom:!0,mouseZoom:!0,
showZoomCtrl:!0,autoLoad:!1,showControls:!0,orientationOnByDefault:!1,hotSpotDebug:!1,backgroundColor:[0,0,0]};l="string"===typeof l?e.getElementById(l):l;l.classList.add("pnlm-container");l.tabIndex=0;var I=e.createElement("div");I.className="pnlm-render-container";l.appendChild(I);var F=e.createElement("div");F.className="pnlm-dragfix";l.appendChild(F);var $=e.createElement("span");$.className="pnlm-about-msg";$.innerHTML='<a href="https://pannellum.org/" target="_blank">Pannellum</a> 2.3.2';l.appendChild($);
F.addEventListener("contextmenu",ra);var n={},Qa=e.createElement("div");Qa.className="pnlm-sprite pnlm-hot-spot-debug-indicator";l.appendChild(Qa);n.container=e.createElement("div");n.container.className="pnlm-panorama-info";n.title=e.createElement("div");n.title.className="pnlm-title-box";n.container.appendChild(n.title);n.author=e.createElement("div");n.author.className="pnlm-author-box";n.container.appendChild(n.author);l.appendChild(n.container);n.load={};n.load.box=e.createElement("div");n.load.box.className=
"pnlm-load-box";n.load.box.innerHTML="<p>Loading...</p>";n.load.lbox=e.createElement("div");n.load.lbox.className="pnlm-lbox";n.load.lbox.innerHTML='<div class="pnlm-loading"></div>';n.load.box.appendChild(n.load.lbox);n.load.lbar=e.createElement("div");n.load.lbar.className="pnlm-lbar";n.load.lbarFill=e.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=e.createElement("p");n.load.msg.className="pnlm-lmsg";
n.load.box.appendChild(n.load.msg);l.appendChild(n.load.box);n.errorMsg=e.createElement("div");n.errorMsg.className="pnlm-error-msg pnlm-info-box";l.appendChild(n.errorMsg);var u={};u.container=e.createElement("div");u.container.className="pnlm-controls-container";l.appendChild(u.container);u.load=e.createElement("div");u.load.className="pnlm-load-button";u.load.innerHTML="<p>Click to<br>Load<br>Panorama<p>";u.load.addEventListener("click",P);l.appendChild(u.load);u.zoom=e.createElement("div");u.zoom.className=
"pnlm-zoom-controls pnlm-controls";u.zoomIn=e.createElement("div");u.zoomIn.className="pnlm-zoom-in pnlm-sprite pnlm-control";u.zoomIn.addEventListener("click",function(){O&&(R(c.hfov-5),C())});u.zoom.appendChild(u.zoomIn);u.zoomOut=e.createElement("div");u.zoomOut.className="pnlm-zoom-out pnlm-sprite pnlm-control";u.zoomOut.addEventListener("click",function(){O&&(R(c.hfov+5),C())});u.zoom.appendChild(u.zoomOut);u.container.appendChild(u.zoom);u.fullscreen=e.createElement("div");u.fullscreen.addEventListener("click",
ja);u.fullscreen.className="pnlm-fullscreen-toggle-button pnlm-sprite pnlm-fullscreen-toggle-button-inactive pnlm-controls pnlm-control";(e.fullscreenEnabled||e.mozFullScreenEnabled||e.webkitFullscreenEnabled||e.msFullscreenEnabled)&&u.container.appendChild(u.fullscreen);u.orientation=e.createElement("div");u.orientation.addEventListener("click",function(a){Ja?K():Sa()});u.orientation.addEventListener("mousedown",function(a){a.stopPropagation()});u.orientation.addEventListener("touchstart",function(a){a.stopPropagation()});
u.orientation.addEventListener("pointerdown",function(a){a.stopPropagation()});u.orientation.className="pnlm-orientation-button pnlm-orientation-button-inactive pnlm-sprite pnlm-controls pnlm-control";q.DeviceOrientationEvent&&q.addEventListener("deviceorientation",function(a){q.removeEventListener("deviceorientation",this);a&&null!==a.alpha&&null!==a.beta&&null!==a.gamma&&u.container.appendChild(u.orientation)});var Ba=e.createElement("div");Ba.className="pnlm-compass pnlm-controls pnlm-control";
l.appendChild(Ba);v.firstScene?k(v.firstScene):v.default&&v.default.firstScene?k(v.default.firstScene):k(null);t();var fa=[],Aa=[];W.prototype.multiply=function(a){return new W(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)};W.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.getPitch=function(){return c.pitch};this.setPitch=function(a,b){(b=b==h?1E3:Number(b))?J.pitch={startTime:Date.now(),startPosition:c.pitch,endPosition:a,duration:b}:c.pitch=a;C();return this};this.getPitchBounds=function(){return[c.minPitch,c.maxPitch]};this.setPitchBounds=function(a){c.minPitch=Math.max(-90,Math.min(a[0],90));c.maxPitch=Math.max(-90,Math.min(a[1],90));return this};
this.getYaw=function(){return c.yaw};this.setYaw=function(a,b){for(;180<a;)a-=360;for(;-180>a;)a+=360;(b=b==h?1E3:Number(b))?J.yaw={startTime:Date.now(),startPosition:c.yaw,endPosition:a,duration:b}:c.yaw=a;C();return this};this.getYawBounds=function(){return[c.minYaw,c.maxYaw]};this.setYawBounds=function(a){c.minYaw=Math.max(-180,Math.min(a[0],180));c.maxYaw=Math.max(-180,Math.min(a[1],180));return this};this.getHfov=function(){return c.hfov};this.setHfov=function(a,b){(b=b==h?1E3:Number(b))?J.hfov=
{startTime:Date.now(),startPosition:c.hfov,endPosition:A(a),duration:b}:R(a);C();return this};this.getHfovBounds=function(){return[c.minHfov,c.maxHfov]};this.setHfovBounds=function(a){c.minHfov=Math.max(0,a[0]);c.maxHfov=Math.max(0,a[1]);return this};this.lookAt=function(a,b,c,d){d=d==h?1E3:Number(d);a!==h&&this.setPitch(a,d);b!==h&&this.setYaw(b,d);c!==h&&this.setHfov(c,d);return this};this.getNorthOffset=function(){return c.northOffset};this.setNorthOffset=function(a){c.northOffset=Math.min(360,
Math.max(0,a));C();return this};this.startAutoRotate=function(a){a=a||U||1;c.autoRotate=a;Ka.lookAt(ya,h,xa,3E3);C();return this};this.stopAutoRotate=function(){U=c.autoRotate?c.autoRotate:U;c.autoRotate=!1;c.autoRotateInactivityDelay=-1;return this};this.getRenderer=function(){return B};this.setUpdate=function(a){Ta=!0===a;B===h?na():C();return this};this.mouseEventToCoords=function(a){return ua(a)};this.loadScene=function(a,b,c,d){O&&D(a,b,c,d);return this};this.getScene=function(){return c.scene};
this.addScene=function(a,b){v.scenes[a]=b;return this};this.removeScene=function(a){if(c.scene===a||!v.scenes.hasOwnProperty(a))return!1;delete v.scenes[a];return!0};this.toggleFullscreen=function(){ja();return this};this.getConfig=function(){return c};this.addHotSpot=function(a,d){if(d===h||c.scene==d)Ra(a),c.hotSpots.push(a),b(a);else if(v.scenes.hasOwnProperty(d))v.scenes[d].hotSpots.push(a);else throw"Invalid scene ID!";return this};this.removeHotSpot=function(a){if(!c.hotSpots)return!1;for(var b=
0;b<c.hotSpots.length;b++)if(c.hotSpots[b].hasOwnProperty("id")&&c.hotSpots[b].id===a){for(a=c.hotSpots[b].div;a.parentNode!=I;)a=a.parentNode;I.removeChild(a);delete c.hotSpots[b].div;c.hotSpots.splice(b,1);return!0}return!1};this.on=function(a,b){V[a]=V[a]||[];V[a].push(b);return this};this.off=function(a,b){if(!a)return V={},this;if(b){var c=V[a].indexOf(b);0<=c&&V[a].splice(c,1);V[a].length=0}else delete V[a];return this};this.destroy=function(){B&&B.destroy();La&&(F.removeEventListener("mousedown",
ta,!1),e.removeEventListener("mousemove",ka,!1),e.removeEventListener("mouseup",ga,!1),l.removeEventListener("mousewheel",M,!1),l.removeEventListener("DOMMouseScroll",M,!1),l.removeEventListener("mozfullscreenchange",Y,!1),l.removeEventListener("webkitfullscreenchange",Y,!1),l.removeEventListener("msfullscreenchange",Y,!1),l.removeEventListener("fullscreenchange",Y,!1),q.removeEventListener("resize",ha,!1),q.removeEventListener("orientationchange",ha,!1),l.removeEventListener("keydown",wa,!1),l.removeEventListener("keyup",
la,!1),l.removeEventListener("blur",S,!1),e.removeEventListener("mouseleave",ga,!1),F.removeEventListener("touchstart",va,!1),F.removeEventListener("touchmove",ca,!1),F.removeEventListener("touchend",x,!1),F.removeEventListener("pointerdown",d,!1),F.removeEventListener("pointermove",a,!1),F.removeEventListener("pointerup",L,!1),F.removeEventListener("pointerleave",L,!1));l.innerHTML="";l.classList.remove("pnlm-container");l.classList.remove("pnlm-grab");l.classList.remove("pnlm-grabbing")}}return{viewer:function(e,
h){return new H(e,h)}}}(window,document);function anError(q){var e=document.createElement("div");e.className="pnlm-info-box";e.innerHTML="<p>"+q+"</p>";document.getElementById("container").appendChild(e)}
function parseURLParameters(){var q;0<window.location.hash.length?q=[window.location.hash.slice(1)]:(q=decodeURI(window.location.href).split("?"),q.shift());if(1>q.length)anError("No configuration options were specified.");else{q=q[0].split("&");for(var e={},h=0;h<q.length;h++){var H=q[h].split("=")[0],l=q[h].split("=")[1];if(""!=l)switch(H){case "hfov":case "pitch":case "yaw":case "haov":case "vaov":case "minHfov":case "maxHfov":case "minPitch":case "maxPitch":case "minYaw":case "maxYaw":case "vOffset":case "autoRotate":e[H]=
Number(l);break;case "autoLoad":case "ignoreGPanoXMP":e[H]=JSON.parse(l);break;case "author":case "title":case "firstScene":case "fallback":case "preview":case "panorama":case "config":e[H]=decodeURIComponent(l);break;default:anError("An invalid configuration parameter was specified: "+H);return}}var v;e.config?(v=new XMLHttpRequest,v.onload=function(){if(200!=v.status){var h=document.createElement("a");h.href=e.config;h.innerHTML=h.href;anError("The file "+h.outerHTML+" could not be accessed.")}else{h=
JSON.parse(v.responseText);void 0===h.basePath&&(h.basePath=e.config.substring(0,e.config.lastIndexOf("/")+1));for(var l in h)e.hasOwnProperty(l)||(e[l]=h[l]);"title"in e&&(document.title=e.title);pannellum.viewer("container",e)}},v.open("GET",e.config),v.send()):("title"in e&&(document.title=e.title),pannellum.viewer("container",e))}}
"file:"==window.location.protocol?anError("Due to browser security restrictions, Pannellum can't be run from the local filesystem; some sort of web server must be used."):parseURLParameters();
</script></body></html>