!Object['hasOwnProperty']('values')&&(Object['values']=function(a){return Object['keys'](a)['map'](function(b){return a[b];});});!String['prototype']['startsWith']&&(String['prototype']['startsWith']=function(a,b){return b=b||0x0,this['indexOf'](a,b)===b;});TDV['EventDispatcher']=function(){this['_handlers']={};},TDV['EventDispatcher']['prototype']['bind']=function(a,b){if(!(a in this['_handlers']))this['_handlers'][a]=[];this['_handlers'][a]['push'](b);},TDV['EventDispatcher']['prototype']['unbind']=function(a,b){if(a in this['_handlers']){var c=this['_handlers'][a]['indexOf'](b);if(c!=-0x1)this['_handlers'][a]['splice'](c,0x1);}},TDV['EventDispatcher']['prototype']['createNewEvent']=function(a){if(typeof Event==='function')return new Event(a);var b=document['createEvent']('Event');return b['initEvent'](a,!![],!![]),b;},TDV['EventDispatcher']['prototype']['dispatchEvent']=function(a){if(a['type']in this['_handlers']){var b=this['_handlers'][a['type']];for(var c=0x0;c0x0)return;}if(d['sourceClassName']=='MediaAudio'||d['sourceClassName']=='Model3DCameraSequence'||this['_isInitialized'])return;this['_isInitialized']=!![],b['unbind']('preloadMediaShow',a,this,!![]),b['unbindOnObjectsOf']('PlayListItem','begin',a,this,!![]),b['unbind']('stateChange',a,this,!![]);if(this['_isPaused'])this['pause']();window['parent']['postMessage'](TDV['Tour']['EVENT_TOUR_LOADED'],'*'),this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['EVENT_TOUR_LOADED']));};this['_setup'](),this['_settings']['set'](TDV['PlayerSettings']['SCRIPT_URL'],this['_currentScriptUrl']);var b=this['player']=TDV['PlayerAPI']['create'](this['_settings']);b['bindOnObject']('rootPlayer','start',c,this,!![]),window['addEventListener']('message',function(d){var f=d['data'];if(f=='pauseTour')f='pause';else{if(f=='resumeTour')f='resume';else return;}this[f]['apply'](this);}['bind'](this));function c(d){b['unbindOnObject']('rootPlayer','start',c,this,!![]);var f=d['data']['source'];f['get']('data')['tour']=this;var g=window['location']!==window['parent']['location']||window['frameElement']!==undefined;f['set']('fullscreenFallback',g?'out_of_frame':'none');var h=window['navigator']['language']||window['navigator']['userLanguage']||'en',j=f['get']('data')['locales']||{},k=f['get']('data')['defaultLocale']||h,l=this['locManager']=new TDV['Tour']['LocaleManager'](f,j,k,this['_settings']['get'](TDV['PlayerSettings']['QUERY_STRING_PARAMETERS']));f['get']('data')['localeManager']=l;var m=function(){var w=f['get']('data');!('updateText'in w)&&(w['updateText']=function(A){var B=A[0x0]['split']('.');if(B['length']==0x2){var C=l['trans']['apply'](l,A),D=A[0x1]||f;if(typeof D=='string'){var E=D['split']('.');D=f[E['shift']()];for(var F=0x0;F0x0&&y['get']('class')=='Model3D'&&f['startMeasurement'](null,x[0x0]);break;}}['bind'](this),this['_onBeforeUnload']=function(w){f['stopTextToSpeech']();},window['addEventListener']('hashchange',this['_onHashChange']),window['addEventListener']('beforeunload',this['_onBeforeUnload']),document['addEventListener']('keyup',this['_onKeyUp']),f['bind']('tourEnded',function(){this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['EVENT_TOUR_ENDED']));},this,!![]),f['bind']('mute_changed',function(){if(this['get']('mute'))this['stopTextToSpeech']();},f,!![]),b['bind']('preloadMediaShow',a,this,!![]),b['bind']('stateChange',a,this,!![]),b['bindOnObjectsOf']('PlayListItem','begin',a,this,!![]),this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['EVENT_TOUR_INITIALIZED']));}},TDV['Tour']['prototype']['pause']=function(){this['_isPaused']=!![];if(!this['_isInitialized'])return;var a=function(k){var l=k['source'];if(!this['_isPaused'])l['unbind']('stateChange',a,this);else l['get']('state')=='playing'&&l['pause']();},b=this['player']['getByClassName']('PlayList');for(var c=0x0,d=b['length'];c0xb4)g-=0x168;}else g=f['get']('yaw'),h=f['get']('pitch');var o=c['getPlayListWithItem'](a);if(o){var p=function(){c['setPanoramaCameraWithSpot'](o,a,g,h);};if(!this['_isInitialized']){var q=function(){a['unbind']('begin',q,this),p();};a['bind']('begin',q,this);}else p();}}}},TDV['Tour']['prototype']['setComponentsVisibilityByTags']=function(a,b,c){var d=this['_getRootPlayer']();if(d!==undefined){var e=d['getComponentsByTags'](a,c);for(var f=0x0,g=e['length'];f0x0;},TDV['Tour']['prototype']['_getOrientation']=function(){var a=this['_getRootPlayer']();if(a)return a['get']('orientation');else return this['_lockedOrientation']?this['_lockedOrientation']:TDV['PlayerAPI']['getOrientation']();},TDV['Tour']['prototype']['_getParams']=function(a){var b={};return a['split']('&')['forEach'](function(c){var d=c['split']('=')[0x0],e=decodeURIComponent(c['split']('=')[0x1]);b[d['toLowerCase']()]=e;}),b;},TDV['Tour']['prototype']['_getRootPlayer']=function(){return this['player']!==undefined?this['player']['getById']('rootPlayer'):undefined;},TDV['Tour']['prototype']['_setup']=function(){if(!this['_orientation'])this['_orientation']=this['_getOrientation']();this['_device']=this['_getDevice'](),this['_currentScriptUrl']=this['_getScriptUrl']();if(this['isMobile']()){var a=document['getElementById']('metaViewport');if(a){var b=this['_devicesUrl'][this['_device']],c=0x1;(typeof b=='object'&&this['_orientation']in b&&this['_orientation']==TDV['PlayerAPI']['ORIENTATION_LANDSCAPE']||this['_device']==TDV['Tour']['DEVICE_GENERAL'])&&(c=a['getAttribute']('data-tdv-general-scale')||0.5);var d=a['getAttribute']('content');d=d['replace'](/initial-scale=(\d+(\.\d+)?)/,function(e,f){return'initial-scale='+c;}),a['setAttribute']('content',d);}}},TDV['Tour']['prototype']['_getScriptUrl']=function(){var a=this['_devicesUrl'][this['_device']];return typeof a=='object'&&(this['_orientation']in a&&(a=a[this['_orientation']])),a;},TDV['Tour']['prototype']['_getDevice']=function(){var a=TDV['Tour']['DEVICE_GENERAL'];if(!this['_isRemoteSession']){if(this['isIPad']()&&TDV['Tour']['DEVICE_IPAD']in this['_devicesUrl'])a=TDV['Tour']['DEVICE_IPAD'];else{if(this['isQuest2']()&&TDV['Tour']['DEVICE_QUEST2']in this['_devicesUrl'])a=TDV['Tour']['DEVICE_QUEST2'];else{if(this['isQuest3']()&&TDV['Tour']['DEVICE_QUEST3']in this['_devicesUrl'])a=TDV['Tour']['DEVICE_QUEST3'];else{if(this['isPicoUltra']()&&TDV['Tour']['DEVICE_PICO_ULTRA']in this['_devicesUrl'])a=TDV['Tour']['DEVICE_PICO_ULTRA'];else{if(this['isPico']()&&TDV['Tour']['DEVICE_PICO']in this['_devicesUrl'])a=TDV['Tour']['DEVICE_PICO'];else{if(this['isHTC']()&&TDV['Tour']['DEVICE_HTC']in this['_devicesUrl'])a=TDV['Tour']['DEVICE_HTC'];else{if(this['isMobile']()&&TDV['Tour']['DEVICE_MOBILE']in this['_devicesUrl'])a=TDV['Tour']['DEVICE_MOBILE'];}}}}}}}return a;},TDV['Tour']['prototype']['_setMediaFromURL']=function(a,b){var c=this['_getRootPlayer'](),d=c['getActivePlayerWithViewer'](c['getMainViewer']()),e=d?c['getMediaFromPlayer'](d):undefined,f;if('media'in a){var g=a['media'],h=Number(g);f=isNaN(h)?this['setMediaByName'](g):this['setMediaByIndex'](h-0x1);}else{if('media-index'in a)f=this['setMediaByIndex'](parseInt(a['media-index'])-0x1);else'media-name'in a&&(f=this['setMediaByName'](decodeURIComponent(a['media-name'])));}f==undefined&&b!==undefined&&(f=this['setMediaByIndex'](0x0));if(f!=undefined){var i=f['get']('player'),j=function(){'trigger-overlay-name'in a&&this['triggerOverlayByName'](f['get']('media'),a['trigger-overlay-name'],a['trigger-overlay-event']);if('focus-overlay-name'in a)this['focusOverlayByName'](f,a['focus-overlay-name']);else{if('yaw'in a||'pitch'in a){var n=c['getPlayListWithItem'](f);if(n)switch(f['get']('class')){case'PanoramaPlayListItem':var o=parseFloat(a['yaw'])||undefined,p=parseFloat(a['pitch'])||undefined,q=parseFloat(a['fov'])||undefined;c['setPanoramaCameraWithSpot'](n,f,o,p,q);break;case'Model3DPlayListItem':var r=['yaw','pitch','x','y','z','distance'],s={};for(var t=0x0;t0x0&&h['set']('objects',i['concat'](j));};if('hide-components-tags'in a||'hct'in a)d['call'](this,this['setComponentsVisibilityByTags'],a['hide-components-tags']||a['hct'],![]);if('show-components-tags'in a||'sct'in a)d['call'](this,this['setComponentsVisibilityByTags'],a['show-components-tags']||a['sct'],!![]);if('hide-overlays-tags'in a||'hot'in a)d['call'](this,this['setOverlaysVisibilityByTags'],a['hide-overlays-tags']||a['hot'],![]);if('show-overlays-tags'in a||'sot'in a)d['call'](this,this['setOverlaysVisibilityByTags'],a['show-overlays-tags']||a['sot'],!![]);if('hide-overlays-names'in a||'hon'in a)this['setOverlaysVisibilityByName'](decodeURIComponent(a['hide-overlays-names']||a['hon'])['split'](','),![]);if('show-overlays-names'in a||'son'in a)this['setOverlaysVisibilityByName'](decodeURIComponent(a['show-overlays-names']||a['son'])['split'](','),!![]);if('show-object-ids'in a||'sobjids'in a)this['setObjectsVisibilityByID'](decodeURIComponent(a['show-object-ids']||a['sobjids'])['split'](','),!![]);if('hide-object-ids'in a||'hobjids'in a)this['setObjectsVisibilityByID'](decodeURIComponent(a['hide-object-ids']||a['hobjids'])['split'](','),![]);if('variant'in a)this['setModel3DVariant'](decodeURIComponent(a['variant']));if('measures'in a)e['call'](this,decodeURIComponent(a['measures']['split'](';')));},TDV['Tour']['LocaleManager']=function(a,b,c,d){TDV['EventDispatcher']['call'](this),this['rootPlayer']=a,this['locales']={},this['defaultLocale']=c,this['queryParam']=d,this['currentLocaleMap']={},this['currentLocaleID']=undefined;for(var e in b){this['registerLocale'](e,b[e]);}},TDV['Tour']['LocaleManager']['EVENT_LOCALE_CHANGED']='localeChanged',TDV['Tour']['LocaleManager']['prototype']=new TDV['EventDispatcher'](),TDV['Tour']['LocaleManager']['prototype']['registerLocale']=function(a,b){var c=[a,a['split']('-')[0x0]];for(var d=0x0;d0x2){var d=typeof arguments[0x2]=='object'?arguments[0x2]:undefined,e=arguments;c=c['replace'](/\{\{([\w _\-\.]+)\}\}/g,function(f,g){if(b(g))g=e[parseInt(g)+0x1];else{if(d!==undefined)g=d[g];}if(typeof g=='string')g=this['currentLocaleMap'][g]||g;else{if(typeof g=='function')g=g['call'](this['rootPlayer']);}return g!==undefined?g:'';}['bind'](this));}return c;},TDV['Tour']['LocaleManager']['prototype']['_parsePropertiesContent']=function(a){a=a['replace'](/(^|\n)#[^\n]*/g,'');var b={},c=a['split']('\x0a');for(var d=0x0,e=c['length'];d0x0;},TDV['Tour']['HistoryData']['prototype']['canForward']=function(){return this['pointer']>=0x0&&this['pointer']h['get']('viewerArea')==c)['forEach'](h=>{h['set']('keepModel3DLoadedWithoutLocation',g);}),this['getCurrentPlayers']()['forEach'](function(h){h['get']('class')=='PanoramaPlayer'&&h['get']('viewerArea')==c&&h['set']('model3DPlayer',b);});},this),a['bind']('stop',function(){c['set']('doubleClickAction',e),c['set']('aaEnabled',f);},this);}function _initModel(a){var b=a['get']('data');if(!b)a['set']('data',b={});if(!b['panoramaLocations']||b['isInitialized']||!a['get']('isLoaded'))return;var c=this['get']('data'),d=0xb4/Math['PI'],e=a['get']('worldUnitToMeters')||0x1,f=b['maxDistanceObjectsVisible']||0x0,g=b['panoramaLocations'],h=[],i=c['surfaceSelectionHotspotMode'],j=i=='hotspotEnabled';g['forEach'](function(q){q=_getObject(this,q);var r=q['get']('data'),s=a['getDistanceToFloor']([q['get']('x'),q['get']('y'),q['get']('z')]),t=_getObject(this,r['panorama']),u=g['filter'](function(E){var F=_getObject(this,_getObject(this,E)['get']('data'));return!F['excludeAsHotspotPanorama']&&t!=F['panorama'];}['bind'](this))['map'](function(E){E=_getObject(this,E);var F=E['get']('data'),G=!!F['excludeSurfaceSelectionModel'],H=E['get']('x')-q['get']('x'),I=E['get']('y')-q['get']('y'),J=E['get']('z')-q['get']('z'),K=Math['atan2'](H,-J)*d,L=Math['atan2'](I,Math['sqrt'](H*H+J*J))*d,M=Math['sqrt'](H*H+I*I+J*J),N=a['getDistanceToFloor']([E['get']('x'),E['get']('y'),E['get']('z')]);if(s!==undefined&&N!==undefined)I=N-s;var O=Math['sqrt'](H*H+I*I+J*J);return{'yaw':K,'pitch':L,'width':F['width'],'height':F['height'],'opacity':F['opacity'],'anchorX':F['anchorX']?F['anchorX']:0.5,'anchorY':F['anchorY']?F['anchorY']:0.5,'transparentAreaActive':!!F['transparentAreaActive'],'actions':F['actions'],'position':{'x':E['get']('x'),'y':E['get']('y'),'z':E['get']('z')},'toolTip':F['toolTip'],'image':_getObject(this,F['image']),'distance':M*e,'floorDistance':O*e,'panorama':_getObject(this,F['panorama']),'backwardYaw':K-0xb4-E['get']('yaw'),'excludeSurfacePanorama':G};}['bind'](this));u['sort'](function(E,F){return E['distance']-F['distance'];});var v=[],w=(t['get']('adjacentPanoramas')||[])['concat'](),x=a['get']('maxNearestObjectsVisible'),y=b['showOnlyHotspotsLineSightInPanoramas'],z={'x':q['get']('x'),'y':q['get']('y'),'z':q['get']('z')},A=[];u['forEach'](function(E){if(E['panorama']==t||x>0x0&&v['length']>=x||f>0x0&&E['distance']>f||y&&a['testIntersection'](z,E['position']))return;var F=l['call'](this,E['panorama'],E['yaw']-q['get']('yaw'),E['pitch'],E['width'],E['height'],E['anchorX'],E['anchorY'],E['opacity'],E['transparentAreaActive'],E['image'],j&&!E['excludeSurfacePanorama']),G=m['call'](this,E['panorama'],E['yaw']-q['get']('yaw'),E['backwardYaw'],E['floorDistance'],!E['excludeSurfacePanorama']);v['push'](F);var H=w['findIndex'](function(L){return L['get']('panorama')==E['panorama'];});if(H!=-0x1)w['splice'](H,0x1);w['push'](G);var I=F['get']('areas')[0x0];E['toolTip']&&I['set']('toolTip',E['toolTip']);I['bind']('click',k['bind'](this,t,E['panorama'],a,!![]),this),G['bind']('select',k['bind'](this,t,E['panorama'],a,!![]),this),A['push'](F),A['push'](G);var J=E['actions'];if(J){p['call'](this,F,J),p['call'](this,I,J);var K=F['get']('items')[0x0];p['call'](this,K,J);if('click'in J)G['bind']('select',new Function('event',J['click']),this);}}['bind'](this)),t['set']('overlays',(t['get']('overlays')||[])['concat'](v)),t['set']('adjacentPanoramas',w);var B=!a['get']('surfaceSelectionEnabled')||!!r['excludeSurfaceSelectionModel'],C;if(B){C=n['call'](this,q['get']('x'),q['get']('y'),q['get']('z'),r['width'],r['height'],r['anchorX']?r['anchorX']:0.5,r['anchorY']?r['anchorY']:0.5,r['opacity'],!!r['transparentAreaActive'],b['showOnlyHotspotsLineSight'],_getObject(this,r['image'])),C['set']('id','sprite_'+q['get']('id')),C['set']('translationLineColor',r['translationLineColor']!=null?r['translationLineColor']:'#ffffff'),C['set']('translationLineOpacity',r['translationLineOpacity']!=null?r['translationLineOpacity']:0x1),C['set']('translationLineVisible',r['translationLineVisible']!=null?r['translationLineVisible']:![]),C['set']('translationLineWidth',r['translationLineWidth']!=null?r['translationLineWidth']:0x1),C['set']('translationLength',r['translationLength']!=null?r['translationLength']:b['showOnlyHotspotsLineSight']&&(r['translationY']==null||r['translationY']==0x0)?r['height']/0x2:undefined),C['set']('translationX',r['translationX']!=null?r['translationX']:0x0),C['set']('translationY',r['translationY']!=null&&r['translationY']!=0x0?r['translationY']:b['showOnlyHotspotsLineSight']?0x1:0x0),C['set']('translationZ',r['translationZ']!=null?r['translationZ']:0x0);if(r['toolTip'])C['set']('toolTip',r['toolTip']);}else C=o['call'](this,q['get']('x'),q['get']('y'),q['get']('z'));r['object']=C;if(r['tags']!==undefined)C['get']('data')['tags']=r['tags'];if(r['enabled']!==undefined)C['set']('enabled',r['enabled']);C['get']('data')['location']=q,C['get']('data')['panoramaOverlays']=A;var D=r['actions'];D&&p['call'](this,C,D),C['bind']('click',k['bind'](this,a,t,a,![]),this),h['push'](C);}['bind'](this)),a['set']('objects',(a['get']('objects')||[])['concat'](h)),b['isInitialized']=!![];function k(q,r,s,t){var u=this['getPlayListsWithMedia'](q,!![])['filter'](function(B){return this['getMediaFromPlayer'](B['get']('items')[B['get']('selectedIndex')]['get']('player'))==q;}['bind'](this));if(u['length']==0x0)return;var v=this['getPlayListItemByMedia'](u[0x0],q),w=v['get']('player')['get']('viewerArea'),x;this['getPlayListsWithMedia'](r)['forEach'](function(B){var C=this['getPlayListItemByMedia'](B,r);C['get']('player')['get']('viewerArea')==w&&(t&&v['get']('player')['get']('viewerArea')['get']('translationTransitionEnabled')&&(y(),C['bind']('begin',A,this)),B['set']('selectedIndex',B['get']('items')['indexOf'](C)));}['bind'](this));function y(){x=s['get']('objects')['filter'](function(B){var C=B['get']('data');return C&&C['location']!==undefined;}),x['forEach'](function(B){B['set']('enabled',![]);});}function z(){x['forEach'](function(B){B['set']('enabled',!![]);});}function A(B){B['source']['unbind']('begin',A,this),z();}}function l(q,r,s,t,u,v,w,x,y,z,A){var B=_createInstanceFromObj(this,{'class':'HotspotPanoramaOverlay','useHandCursor':!![],'enabledInSurfaceSelection':A,'areas':[{'class':'HotspotPanoramaOverlayArea','mapColor':y?'any':'image','displayTooltipInTouchScreens':c['displayTooltipInTouchScreens']}],'items':[{'class':'FlatHotspotPanoramaOverlayImage','yaw':r,'pitch':s,'width':t,'height':u,'offsetX':v*t,'offsetY':w*u,'opacity':x!==undefined?x:0x1}]});return B['get']('items')[0x0]['set']('image',z),B;}function m(q,r,s,t,u){return _createInstanceFromObj(this,{'class':'AdjacentPanorama','panorama':'this.'+q['get']('id'),'backwardYaw':s,'yaw':r,'distance':t,'enabledInSurfaceSelection':u});}function n(q,r,s,t,u,v,w,A,B,C,D){var E=_createInstanceFromObj(this,{'class':'SpriteModel3DObject','x':q,'y':r,'z':s,'anchorX':v,'anchorY':w,'depthTest':C,'transparentAreaActive':B,'hideBasedOnDistance':!![],'width':t,'height':u,'opacity':A!=undefined?A:0x1,'data':{}});return E['set']('image',D),E;}function o(q,r,s){return _createInstanceFromObj(this,{'class':'SurfaceReticleModel3DObject','x':q,'y':r,'z':s,'depthTest':![],'data':{}});}function p(q,r){Object['keys'](r)['forEach'](function(s){if(q['hasEvent'](s))q['bind'](s,new Function('event',r[s]),this);}['bind'](this));}}function _findLocationWithPanorama(a){var b=this['getByClassName']('Model3D');for(var c=0x0,d=b['length'];c0x0){var d=b[c];d['get']('viewerArea')!=a&&b['splice'](c,0x1);}return b;}function _createInstance(a,b,c){var d=a['createInstance'](b);return c&&(d['set']('id',c),a[c]=d),d;}function _createInstanceFromObj(a,b){return c(b);function c(d,f){if(typeof d=='object'){if('class'in d)try{f=_createInstance(a,d['class'],d['id']);}catch(j){f=d;}else f=d;}var g=function(k,l){if('set'in f)f['set'](k,l);else f[k]=l;};for(var h in d){var i=d[h];if(typeof i=='object'&&i!==null)g(h,c(i,f));else{if(typeof i=='string'&&i['indexOf']('this.')==0x0)g(h,a[i['replace']('this.','')]);else g(h,i);}}return f;}}TDV['Tour']['Script']=function(){},TDV['Tour']['Script']['assignObjRecursively']=function(a,b){for(var c in a){var d=a[c];if(typeof d=='object'&&d!==null)this['assignObjRecursively'](a[c],b[c]||(b[c]={}));else b[c]=d;}return b;},TDV['Tour']['Script']['autotriggerAtStart']=function(a,b,c){var d=function(e){b();if(c==!![])a['unbind']('change',d,this);};a['bind']('change',d,this);},TDV['Tour']['Script']['changeBackgroundWhilePlay']=function(a,b,c){var d=function(){e['unbind']('stop',d,this),c==g['get']('backgroundColor')&&j==g['get']('backgroundColorRatios')&&(g['set']('backgroundColor',h),g['set']('backgroundColorRatios',i));},e=a['get']('items')[b],f=e['get']('player'),g=f['get']('viewerArea'),h=g['get']('backgroundColor'),i=g['get']('backgroundColorRatios'),j=[0x0];(c!=h||j!=i)&&(g['set']('backgroundColor',c),g['set']('backgroundColorRatios',j),e['bind']('stop',d,this));},TDV['Tour']['Script']['changeOpacityWhilePlay']=function(a,b,c){var d=function(){e['unbind']('stop',d,this),h==g['get']('backgroundOpacity')&&g['set']('opacity',h);},e=a['get']('items')[b],f=e['get']('player'),g=f['get']('viewerArea'),h=g['get']('backgroundOpacity');c!=h&&(g['set']('backgroundOpacity',c),e['bind']('stop',d,this));},TDV['Tour']['Script']['changePlayListWithSameSpot']=function(a,b){var c=a['get']('selectedIndex');if(c>=0x0&&b>=0x0&&c!=b){var d=a['get']('items')[c],e=a['get']('items')[b],f=d['get']('player'),g=e['get']('player');if((f['get']('class')=='PanoramaPlayer'||f['get']('class')=='Video360Player')&&(g['get']('class')=='PanoramaPlayer'||g['get']('class')=='Video360Player')){var h=this['clonePanoramaCamera'](e['get']('camera'));this['setCameraSameSpotAsMedia'](h,d['get']('media'));var i=h['get']('initialPosition');if(i['get']('yaw')==undefined||i['get']('pitch')==undefined||i['get']('hfov')==undefined)return;this['startPanoramaWithCamera'](e['get']('media'),h);}}},TDV['Tour']['Script']['clone']=function(a,b){var c=this['rootPlayer']['createInstance'](a['get']('class')),d=a['get']('id');if(d){var e=d+'_'+Math['random']()['toString'](0x24)['substring'](0x2,0xf);c['set']('id',e),this[e]=c;}for(var f=0x0;f0x0)for(var r=0x0;r>0x10&0xff,n>>0x8&0xff,n&0xff],'finalRGB':[o>>0x10&0xff,o>>0x8&0xff,o&0xff]},g[i+k]=f;}else{j[k]=h?a['get'](k):a[k];if(k=='yaw'&&Math['abs'](l-j[k])>0xb4)j[k]=j[k]+(l>j[k]?0x168:-0x168);g[i+k]=f;}}}return f['set']('duration',(c||0x0)*0x3e8),f['set']('easing',d||'cubic_in_out'),f['set']('animationDirection',e||'normal'),f['bind']('end',function(){for(var p in j){if(g[i+p]==f)delete g[i+p];}this['disposeInstance'](f);},this),f['bind']('frame',function(){var p=f['getPosition']();for(var q in j){var s=j[q];if(g[i+q]!=f)continue;if(typeof s==='object'&&'color'in s){var t=Math['round'](s['initialRGB'][0x0]+(s['finalRGB'][0x0]-s['initialRGB'][0x0])*p),u=Math['round'](s['initialRGB'][0x1]+(s['finalRGB'][0x1]-s['initialRGB'][0x1])*p),w=Math['round'](s['initialRGB'][0x2]+(s['finalRGB'][0x2]-s['initialRGB'][0x2])*p);s='#'+((0x1<<0x18)+(t<<0x10)+(u<<0x8)+w)['toString'](0x10)['slice'](0x1);}else s=s+(b[q]-s)*p;if(h)a['set'](q,s);else a[q]=s;}},this),f;},TDV['Tour']['Script']['executeFunctionWhenChange']=function(a,b,c,d){var e=undefined,f=function(j){if(j['data']['previousSelectedIndex']==b){if(d)d['call'](this);if(c&&e)e['unbind']('end',c,this);a['unbind']('change',f,this);}};if(c){var g=a['get']('items')[b],h=g['get']('class');if(h=='PanoramaPlayListItem'||h=='Model3DPlayListItem'){var i=h=='PanoramaPlayListItem'?g['get']('camera'):g['get']('media')['get']('camera');if(i!=undefined){e=i['get']('initialSequence');if(e==undefined)e=i['get']('idleSequence');}}else e=g['get']('media');e&&e['bind']('end',c,this);}a['bind']('change',f,this);},TDV['Tour']['Script']['executeJS']=function(a){try{eval(a);}catch(b){console['log']('Javascript\x20error:\x20'+b),console['log']('\x20\x20\x20code:\x20'+a);}},TDV['Tour']['Script']['fixTogglePlayPauseButton']=function(a){var b=a['get']('buttonPlayPause');if(typeof b!=='undefined'&&a['get']('state')=='playing'){if(!Array['isArray'](b))b=[b];for(var c=0x0;c0x1&&b['sort'](function(c,d){var e=c['get']('class'),f=d['get']('class');if(e=='Model3DPlayer')return 0x1;else{if(f=='Model3DPlayer')return-0x1;else return 0x0;}}),b['length']>0x0?b[0x0]:undefined;},TDV['Tour']['Script']['getActivePlayersWithViewer']=function(a){var b=this['getCurrentPlayers'](),c=b['length'],d=[];while(c-->0x0){var e=b[c];if(e['get']('viewerArea')==a){var f=e['get']('class');if(f=='PanoramaPlayer'&&(e['get']('panorama')!=undefined||e['get']('video')!=undefined)||(f=='VideoPlayer'||f=='Video360Player')&&e['get']('video')!=undefined||f=='PhotoAlbumPlayer'&&e['get']('photoAlbum')!=undefined||f=='MapPlayer'&&e['get']('map')!=undefined||f=='Model3DPlayer'&&e['get']('model')!=undefined)d['push'](e);}}return d;},TDV['Tour']['Script']['getCurrentPlayerWithMedia']=function(a){var b=undefined,c=undefined;switch(a['get']('class')){case'Panorama':case'LivePanorama':case'HDRPanorama':b='PanoramaPlayer',c='panorama';break;case'Video360':b='PanoramaPlayer',c='video';break;case'PhotoAlbum':b='PhotoAlbumPlayer',c='photoAlbum';break;case'Map':b='MapPlayer',c='map';break;case'Video':b='VideoPlayer',c='video';break;case'Model3D':b='Model3DPlayer',c='media';break;}if(b!=undefined){var d=this['getByClassName'](b);for(var e=0x0;e{if(d['get']('class')=='PanoramaModel3DLocation'){var e=d['get']('data')['object'];return[e]['concat'](e['get']('data')['panoramaOverlays']);}else return[d];});},TDV['Tour']['Script']['getOverlaysByGroupname']=function(a){var b=this['get']('data'),c='groupname2Overlays',d=b[c];if(!d){var e=['HotspotPanoramaOverlay','VideoPanoramaOverlay','QuadVideoPanoramaOverlay','FramePanoramaOverlay','QuadFramePanoramaOverlay'];b[c]=d={};for(var f=0x0;f0x1){b['sort'](function(j,k){var l=j['get']('data')['groupIndex'],m=k['get']('data')['groupIndex'];return l-m;});for(var c=0x0,d=b['length'];c=0x0;--q){if(u['indexOf'](t[q])==-0x1)t['splice'](q,0x1);}else{if(d=='or')for(var q=u['length']-0x1;q>=0x0;--q){var n=u[q];if(t['indexOf'](n)==-0x1)t['push'](n);}}}}return t||[];},TDV['Tour']['Script']['getComponentByName']=function(a){var b=this['getByClassName']('UIComponent');for(var c=0x0,d=b['length'];cc)c=e['get']('width');}return c;}else return e['get']('width');default:return a['get']('width');}},TDV['Tour']['Script']['getMediaHeight']=function(a){switch(a['get']('class')){case'Video360':var b=a['get']('video');if(b instanceof Array){var c=0x0;for(var d=0x0;dc)c=e['get']('height');}return c;}else return e['get']('height');default:return a['get']('height');}},TDV['Tour']['Script']['getOverlays']=function(a){switch(a['get']('class')){case'LivePanorama':case'HDRPanorama':case'Panorama':var b=a['get']('overlays')['concat']()||[],c=a['get']('frames');for(var d=0x0;d=0x0;--g){var h=f[g],k=h['get']('player');if(k!==undefined&&k['get']('viewerArea')==a)return!![];}return![];};for(var d=b['length']-0x1;d>=0x0;--d){if(!c(b[d]))b['splice'](d,0x1);}return b;},TDV['Tour']['Script']['getPlayListWithItem']=function(a){var b=this['getByClassName']('PlayList');for(var c=b['length']-0x1;c>=0x0;--c){var d=b[c],e=d['get']('items');for(var f=e['length']-0x1;f>=0x0;--f){var g=e[f];if(g==a)return d;}}return undefined;},TDV['Tour']['Script']['getFirstPlayListWithMedia']=function(a,b){var c=this['getPlayListsWithMedia'](a,b);return c['length']>0x0?c[0x0]:undefined;},TDV['Tour']['Script']['getPlayListItemByMedia']=function(a,b){var c=a['get']('items');for(var d=0x0,e=c['length'];d=0x0;--e){var f=d[e];(f['get']('media')!=a||b!=undefined&&f['get']('player')!=b)&&d['splice'](e,0x1);}return d;}else return[];},TDV['Tour']['Script']['historyGoBack']=function(a){var b=this['get']('data')['history'][a['get']('id')];b!=undefined&&b['back']();},TDV['Tour']['Script']['historyGoForward']=function(a){var b=this['get']('data')['history'][a['get']('id')];b!=undefined&&b['forward']();},TDV['Tour']['Script']['init']=function(){var a=this['get']('data')['history'],b=function(k){var l=k['source'],m=l['get']('selectedIndex');if(m<0x0)return;var n=l['get']('id');if(!a['hasOwnProperty'](n))a[n]=new TDV['Tour']['HistoryData'](l);a[n]['add'](m);},c=this['getByClassName']('PlayList');for(var d=0x0,e=c['length'];d=0x0&&this['skip3DTransitionOnce'](m['get']('items')[n]['get']('player'));}for(var d=0x0,h=g['length'];d0x0){var f=s['get']('data');if(f===undefined)continue;var u=f['name'];s['bind']('click',this['sendAnalyticsData']['bind'](this,'Skin','click',u),this,![]);}}var v=this['mainPlayList']['get']('items')['concat'](this['getByClassName']('PlayListItem')),w={};for(var b=0x0,d=v['length'];b{K[L]=H['get'](L);}),I['setPosition'](K);}}}function g(y){u=y['source'];}function h(y){k['call'](this,y['source']);}function i(y){var z=y['get']('viewerArea');if(z==p)s&&s['get']('class')=='PanoramaPlayer'&&s['get']('camera')['set']('hoverFactor',v),s=y,u=s,s&&s['get']('class')=='PanoramaPlayer'&&(v=s['get']('camera')['get']('hoverFactor'),s['get']('camera')['set']('hoverFactor',0x0));else z==q&&(t&&t['get']('class')=='PanoramaPlayer'&&t['get']('camera')['set']('hoverFactor',w),t=y,u=t,t&&t['get']('class')=='PanoramaPlayer'&&(w=t['get']('camera')['get']('hoverFactor'),t['get']('camera')['set']('hoverFactor',0x0)));f(y);}function j(y){var z=this['getCurrentPlayers'](),A=z['length'];while(A-->0x0){var B=z[A];B['get']('viewerArea')!=y&&z['splice'](A,0x1);}for(A=0x0;A{return B['player']==y;});z&&(z['media']['get']('class')=='Model3D'&&(z['media']['get']('camera')['unbind']('positionSet',z['updateFn'],this),z['media']['get']('camera')['unbind']('userInteractionStart',z['userInteractionStartFn'],this)),x['splice'](x['indexOf'](z),0x1));var A=this['getMediaFromPlayer'](y);if(!A)return;z={'media':A,'player':y,'updateFn':()=>{f(y);},'userInteractionStartFn'(){u=y;}},x['push'](z),z['media']['get']('class')=='Model3D'&&(z['media']['get']('camera')['bind']('positionSet',z['updateFn'],this),z['media']['get']('camera')['bind']('userInteractionStart',z['userInteractionStartFn'],this)),i(y);}function l(y){i(this['getActivePlayerWithViewer'](y['source'])),f(u);}var m=a['get']('children'),n=m[0x0],o=m[0x1],p=n['get']('children')[0x0],q=o['get']('children')[0x0],r=m[0x2],s,t,u,v,w,x=[];j['call'](this,p),j['call'](this,q),this['bind']('instanceCreation',y=>{var z=y['data']['instance'],A=z['get']('class');(A=='PanoramaPlayer'||A=='Model3DPlayer')&&(z['bind']('preloadMediaShow',h,this),z['bind']('cameraPositionChange',e,this),z['bind']('userInteractionStart',g,this),k['call'](this,z));},this),p['bind']('mouseDown',l,this),q['bind']('mouseDown',l,this),a['bind']('resize',function(){r['set']('left',(a['get']('actualWidth')-r['get']('actualWidth'))*0.5),b();},this),r['bind']('mouseDown',function(y){var z=y['pageX'],A=function(B){var C=B['pageX'],D=z-C,E=a['get']('actualWidth'),F=r['get']('left'),G=(typeof F=='string'?c(F):F)-D;if(G<0x0)C-=G,G=0x0;else G+r['get']('actualWidth')>=E&&(C-=G-(E-r['get']('actualWidth')),G=E-r['get']('actualWidth'));r['set']('left',G),b(),z=C;};this['bind']('mouseMove',A,this),this['bind']('mouseUp',function(){this['unbind']('mouseMove',A,this);},this);},this),b();},TDV['Tour']['Script']['_initTwinsViewer']=function(a){function b(){var z=a['get']('actualWidth');o['get']('children')[0x0]['set']('width',z),p['get']('children')[0x0]['set']('width',z);var A=s['get']('left'),B=typeof A=='string'?c(A):A;B+=s['get']('actualWidth')*0.5,o['set']('width',d(B)),p['set']('width',d(z-B));}function c(z){return parseFloat(z['replace']('%',''))/0x64*a['get']('actualWidth');}function d(z){return z/a['get']('actualWidth')*0x64+'%';}function e(z){f(z['source']);}function f(z){var A=z==u?t:u;if(v&&z!=v||!z||!A)return;var B=z['get']('class'),C=A['get']('class');if(B=='PanoramaPlayer'&&C=='PanoramaPlayer'){var D=z['get']('camera')['get']('initialPosition'),E=A['get']('camera')['get']('initialPosition');if(window['currentPanoramasWithCameraChanged']){var F=window['currentPanoramasWithCameraChanged'][z['get']('panorama')['get']('id')];F&&(D=F[0x0]['camera']['get']('initialPosition'));var G=window['currentPanoramasWithCameraChanged'][A['get']('panorama')['get']('id')];G&&(E=G[0x0]['camera']['get']('initialPosition'));}var H=E['get']('yaw')-D['get']('yaw');A['setPosition'](z['get']('yaw')+H,z['get']('pitch'),z['get']('roll'),z['get']('hfov'));}else{if(B=='Model3DPlayer'&&C=='Model3DPlayer'){var I=z['get']('model')['get']('camera'),J=A['get']('model')['get']('camera'),K=['yaw','pitch','x','y','z','fov','easing'],L={};if(I['get']('class')=='OrbitModel3DCamera'&&J['get']('class')=='OrbitModel3DCamera'||I['get']('class')=='FlyOverModel3DCamera'&&J['get']('class')=='FlyOverModel3DCamera')K['push']('distance');K['forEach'](M=>{L[M]=I['get'](M);}),J['setPosition'](L);}}}function g(z){v=z['source'];}function h(z){v=t;}function i(z){l['call'](this,z['source']);}function j(z){var A=z['get']('viewerArea');if(A==q)t&&t['get']('class')=='PanoramaPlayer'&&t['get']('camera')['set']('hoverFactor',w),t=z,v=t,t&&t['get']('class')=='PanoramaPlayer'&&(w=t['get']('camera')['get']('hoverFactor'),t['get']('camera')['set']('hoverFactor',0x0));else A==r&&(u&&u['get']('class')=='PanoramaPlayer'&&u['get']('camera')['set']('hoverFactor',x),u=z,v=u,u&&u['get']('class')=='PanoramaPlayer'&&(x=u['get']('camera')['get']('hoverFactor'),u['get']('camera')['set']('hoverFactor',0x0)));f(z);}function k(z){var A=this['getCurrentPlayers'](),B=A['length'];while(B-->0x0){var C=A[B];C['get']('viewerArea')!=z&&A['splice'](B,0x1);}for(B=0x0;B{return C['player']==z;});A&&(A['media']['get']('class')=='Model3D'&&(A['media']['get']('camera')['unbind']('positionSet',A['updateFn'],this),A['media']['get']('camera')['unbind']('userInteractionStart',A['userInteractionStartFn'],this)),y['splice'](y['indexOf'](A),0x1));var B=this['getMediaFromPlayer'](z);if(!B)return;A={'media':B,'player':z,'updateFn':()=>{f(z);},'userInteractionStartFn'(){v=z;}},y['push'](A),A['media']['get']('class')=='Model3D'&&(A['media']['get']('camera')['bind']('positionSet',A['updateFn'],this),A['media']['get']('camera')['bind']('userInteractionStart',A['userInteractionStartFn'],this)),j(z);}function m(z){j(this['getActivePlayerWithViewer'](z['source'])),f(v);}var n=a['get']('children'),o=n[0x0],p=n[0x1],q=o['get']('children')[0x0],r=p['get']('children')[0x0],s=n[0x2],t,u,v,w,x,y=[];k['call'](this,q),k['call'](this,r),this['bind']('instanceCreation',z=>{var A=z['data']['instance'];if(A['get']('class')=='PanoramaPlayer'){var B=A;B['bind']('preloadMediaShow',i,this),B['get']('class')=='PanoramaPlayer'&&(B['bind']('cameraPositionChange',e,this),B['bind']('userInteractionStart',g,this)),l['call'](this,B);}},this),q['bind']('mouseDown',m,this),r['bind']('mouseDown',m,this),a['bind']('resize',function(){s['set']('left',(a['get']('actualWidth')-s['get']('actualWidth'))*0.5),b();},this),b();},TDV['Tour']['Script']['isCardboardViewMode']=function(){var a=this['getByClassName']('PanoramaPlayer');return a['length']>0x0&&a[0x0]['get']('viewMode')=='cardboard';},TDV['Tour']['Script']['isPanorama']=function(a){return['Panorama','HDRPanorama','LivePanorama','Video360','VideoPanorama']['indexOf'](a['get']('class'))!=-0x1;},TDV['Tour']['Script']['keepCompVisible']=function(a,b){var c='keepVisibility_'+a['get']('id'),d=this['getKey'](c);if(d==undefined&&b)this['registerKey'](c,b);else d!=undefined&&!b&&this['unregisterKey'](c);},TDV['Tour']['Script']['_initItemWithComps']=function(a,b,c,d,e,f,g,h){var j=a['get']('items')[b],k=j['get']('media'),l=k['get']('loop')==undefined||k['get']('loop'),m=h>0x0,n=this['rootPlayer'],o=function(w){var x=f?f['get']('class'):undefined,y=undefined;switch(x){case'FadeInEffect':case'FadeOutEffect':y=n['createInstance'](w?'FadeInEffect':'FadeOutEffect');break;case'SlideInEffect':case'SlideOutEffect':y=n['createInstance'](w?'SlideInEffect':'SlideOutEffect');break;}if(y){y['set']('duration',f['get']('duration')),y['set']('easing',f['get']('easing'));if(x['indexOf']('Slide')!=-0x1)y['set'](w?'from':'to',f['get'](f['get']('class')=='SlideInEffect'?'from':'to'));}return y;},p=function(){for(var w=0x0,x=c['length'];w0x0)this['setComponentVisibility'](y,!e,0x0,o(!e));else{var z='visibility_'+y['get']('id');if(this['existsKey'](z)){if(this['getKey'](z))this['setComponentVisibility'](y,!![],0x0,o(!![]));else this['setComponentVisibility'](y,![],0x0,o(![]));this['unregisterKey'](z);}}}j['unbind']('end',p,this);if(!l)k['unbind']('end',p,this);},q=function(){j['unbind']('stop',q,this,!![]),j['unbind']('stop',q,this),j['unbind']('begin',q,this,!![]),j['unbind']('begin',q,this);for(var w=0x0,x=c['length'];w0x0){var H=x+y+(G!=undefined?G['get']('duration'):0x0);n['setComponentVisibility'](E,!F,H,o(!F),F?'hideEffect':'showEffect',!![]);}};for(var B=0x0,C=c['length'];B0x0&&(r('begin',h,0x0),h=0x0);if(d!=undefined)r(d,g,h);},TDV['Tour']['Script']['loadFromCurrentMediaPlayList']=function(a,b,c){var d=a['get']('selectedIndex'),e=a['get']('items')['length'],f=(d+b)%e;while(f<0x0){f=e+f;}if(d!=f){if(c){var g=a['get']('items')[f];this['skip3DTransitionOnce'](g['get']('player'));}a['set']('selectedIndex',f);}},TDV['Tour']['Script']['mixObject']=function(a,b){return this['assignObjRecursively'](b,this['copyObjRecursively'](a));},TDV['Tour']['Script']['downloadFile']=function(a){if((navigator['userAgent']['toLowerCase']()['indexOf']('chrome')>-0x1||navigator['userAgent']['toLowerCase']()['indexOf']('safari')>-0x1)&&!/(iP)/g['test'](navigator['userAgent'])){var b=document['createElement']('a');b['href']=a,b['setAttribute']('target','_blank');if(b['download']!==undefined){var c=a['substring'](a['lastIndexOf']('/')+0x1,a['length']);b['download']=c;}if(document['createEvent']){var d=document['createEvent']('MouseEvents');d['initEvent']('click',!![],!![]),b['dispatchEvent'](d);return;}}window['open'](a,'_blank');},TDV['Tour']['Script']['openLink']=function(a,b){if(!a||a==location['href'])return;if(!b)b='_blank';(b=='_top'||b=='_self')&&this['updateDeepLink']({'includeCurrentView':!![],'includeCurrentVisibleHotspots':!![],'includeCurrentMeasureModel3DObjects':!![],'setHash':!![]});var c=window&&window['process']&&window['process']['versions']&&window['process']['versions']['electron']||navigator&&navigator['userAgent']&&navigator['userAgent']['indexOf']('Electron')>=0x0;if(c&&b=='_blank'){a['startsWith']('files/')&&(a='/'+a);if(a['startsWith']('//'))a='https:'+a;else{if(a['startsWith']('/')){var d=window['location']['href']['split']('/');d['pop'](),a=d['join']('/')+a;}}var e=a['split']('.')['pop']()['toLowerCase']();if((['pdf','zip','xls','xlsx']['indexOf'](e)==-0x1||a['startsWith']('file://'))&&window['hasOwnProperty']('require')){var f=window['require']('electron')['shell'];f['openExternal'](a);}else window['open'](a,b);}else{if(c&&(b=='_top'||b=='_self'))window['location']=a;else{var g=this['get']('data')['tour'];if(g['isMobileApp']()&&g['isIOS']())a='blank:'+a;var h=window['open'](a,b);h['focus']();}}},TDV['Tour']['Script']['startPanoramaWithModel']=function(a,b){var c=a['get']('media'),d=_findLocationWithPanorama['call'](this,c);if(!d){b['call'](this);return;}var e=d['get']('model'),f=a['get']('player')['get']('viewerArea'),g=this['getActivePlayersWithViewer'](f),h=g['length']==0x1?g['find'](function(o){return this['getMediaFromPlayer'](o)==e;}['bind'](this)):undefined;if(h)b['call'](this);else{var g=_getPlayersWithViewer['call'](this,f),h=g['find'](function(o){return o['get']('class')=='Model3DPlayer';}),i,j;if(!h)h=this['createInstance']('Model3DPlayer'),h['set']('viewerArea',f);else{var k=this['getByClassName']('Model3DPlayListItem');i=k['find'](function(o){return o['get']('player')==h;}['bind'](this));}!i&&(i=this['createInstance']('Model3DPlayListItem'),i['set']('player',h),_initModel3DItem['call'](this,i));i['set']('media',e);var l=d['get']('forceModelLoading');d['set']('forceModelLoading',!![]);var m=function(){i['unbind']('begin',m,this),b['call'](this);},n=function(){a['unbind']('begin',n,this),d['set']('forceModelLoading',l);if(j)this['disposeInstance'](j);};a['bind']('begin',n,this);if(i['get']('state')=='playing')m['call'](this);else i['bind']('begin',m,this),j=this['createInstance']('PlayList'),j['set']('items',[i]),j['set']('selectedIndex',0x0);}},TDV['Tour']['Script']['pauseCurrentPlayers']=function(a){var b=this['getCurrentPlayers'](),c=b['length'];while(c-->0x0){var d=b[c];if(d['get']('state')=='playing'||d['get']('data')&&d['get']('data')['playing']||d['get']('viewerArea')&&d['get']('viewerArea')['get']('id')==this['getMainViewer']()||d['get']('camera')&&d['get']('camera')['get']('idleSequence')&&d['get']('camera')['get']('timeToIdle')>0x0&&d['get']('state')=='playing'||d['get']('class')=='Model3DPlayer'&&d['get']('model')&&d['get']('model')['get']('camera')['get']('state')=='playing'){var e=this['getMediaFromPlayer'](d);a&&e&&e['get']('class')!='Video360'&&'pauseCamera'in d?d['pauseCamera']():d['pause']();}else b['splice'](c,0x1);}return b;},TDV['Tour']['Script']['pauseGlobalAudiosWhilePlayItem']=function(a,b,c){var d=function(){a['get']('selectedIndex')!=b&&this['resumeGlobalAudios']();};this['pauseGlobalAudios'](c,!![]),this['executeFunctionWhenChange'](a,b,d,d);},TDV['Tour']['Script']['pauseGlobalAudios']=function(b,c){this['stopTextToSpeech']();if(window['pausedAudiosLIFO']==undefined)window['pausedAudiosLIFO']=[];var d=this['getByClassName']('VideoPanoramaOverlay');d=d['concat'](this['getByClassName']('QuadVideoPanoramaOverlay'));for(var e=d['length']-0x1;e>=0x0;--e){var f=d[e];if(f['get']('video')['get']('hasAudio')==![])d['splice'](e,0x1);}var g=this['getByClassName']('Audio')['concat'](d),h={};if(window['currentGlobalAudios']!=undefined)g=g['concat'](Object['values'](window['currentGlobalAudios'])['map'](function(m){if(!m['allowResume'])h[m['audio']['get']('id')]=m['audio'];return m['audio'];}));var j=[];for(var e=0x0,k=g['length'];e0x0)window['pausedAudiosLIFO']['push'](j);return j;},TDV['Tour']['Script']['resumeGlobalAudios']=function(){if(window['pausedAudiosLIFO']==undefined)return;if(window['resumeAudiosBlocked']){window['pausedAudiosLIFO']['length']>0x1&&(window['pausedAudiosLIFO'][window['pausedAudiosLIFO']['length']-0x2]=window['pausedAudiosLIFO'][window['pausedAudiosLIFO']['length']-0x2]['concat'](window['pausedAudiosLIFO'][window['pausedAudiosLIFO']['length']-0x1]),window['pausedAudiosLIFO']['splice'](window['pausedAudiosLIFO']['length']-0x1,0x1));return;}var b=window['pausedAudiosLIFO']['pop']();if(!b)return;for(var c=0x0,d=b['length'];c=a['length']){if(!b)return;d=0x0;}e=a[d],f(e,!![],g,!![]);};g();}},TDV['Tour']['Script']['playGlobalAudioWhilePlayActiveMedia']=function(a,b,c,d){var e=this['getActiveMediaWithViewer'](this['getMainViewer']()),f=this['getFirstPlayListWithMedia'](e,!![]),g=this['getPlayListItemByMedia'](f,e),h=f['get']('items')['indexOf'](g);return this['playGlobalAudioWhilePlay'](f,h,a,b,c,d);},TDV['Tour']['Script']['playGlobalAudioWhilePlay']=function(a,b,c,d,e,f){var g=function(o){if(o['data']['previousSelectedIndex']==b){this['stopGlobalAudio'](c);if(j){var p=i['get']('media'),q=p['get']('audios');q['splice'](q['indexOf'](c),0x1),p['set']('audios',q);}a['unbind']('change',g,this);if(e)e();}},h=window['currentGlobalAudios'];if(h&&c['get']('id')in h)return c=h[c['get']('id')]['audio'],c['get']('state')!='playing'&&c['play'](),c;a['bind']('change',g,this);var i=a['get']('items')[b],j=i['get']('class')=='PanoramaPlayListItem';if(j){var k=i['get']('media'),h=(k['get']('audios')||[])['slice']();if(c['get']('class')=='MediaAudio'){var l=this['rootPlayer']['createInstance']('PanoramaAudio');l['set']('autoplay',![]),l['set']('audio',c['get']('audio')),l['set']('loop',c['get']('loop')),l['set']('id',c['get']('id')),this['cloneBindings'](c,l,'start'),this['cloneBindings'](c,l,'end'),this['cloneBindings'](c,l,'stateChange'),c=l;}h['push'](c),k['set']('audios',h);}var m=this['playGlobalAudio'](c,d,function(){a['unbind']('change',g,this);if(e)e['call'](this);});if(f===!![]){var n=function(){if(m['get']('state')=='playing')this['pauseGlobalAudios']([m],!![]);else m['get']('state')=='stopped'&&(this['resumeGlobalAudios'](),m['unbind']('stateChange',n,this));};m['bind']('stateChange',n,this);}return m;},TDV['Tour']['Script']['playGlobalAudio']=function(a,b,c,d){var e=function(){a['unbind']('end',e,this),this['stopGlobalAudio'](a);if(c)c['call'](this);};a=this['getGlobalAudio'](a);var f=window['currentGlobalAudios'];!f&&(f=window['currentGlobalAudios']={});f[a['get']('id')]={'audio':a,'asBackground':d||![],'allowResume':b};if(a['get']('state')=='playing')return a;return!a['get']('loop')&&a['bind']('end',e,this),a['play'](),a;},TDV['Tour']['Script']['restartTourWithoutInteraction']=function(a){var b=-0x1;this['bind']('userInteraction',c['bind'](this),this),c['call'](this);function c(){if(b!=-0x1)clearTimeout(b);b=setTimeout(function(){var d=this['get']('data')['tour'];if(d){if(this['isCardboardViewMode']())location['reload']();else d['reload']();}}['bind'](this),a*0x3e8);}},TDV['Tour']['Script']['resumePlayers']=function(a,b){for(var c=0x0;c0x0){var k=setTimeout(function(){if(window[j]instanceof Array){var m=window[j],n=m['indexOf'](k);m['splice'](n,0x1),m['length']==0x0&&delete window[j];}else delete window[j];h();},c);window['hasOwnProperty'](j)?window[j]=[window[j],k]:window[j]=k;}else h();},TDV['Tour']['Script']['setDirectionalPanoramaAudio']=function(a,b,c,d){a['set']('yaw',b),a['set']('pitch',c),a['set']('maximumAngle',d);},TDV['Tour']['Script']['setLocale']=function(a){this['stopTextToSpeech']();var b=this['get']('data')['localeManager'];if(b)this['get']('data')['localeManager']['setLocale'](a);else this['get']('data')['defaultLocale']=a,this['get']('data')['forceDefaultLocale']=!![];},TDV['Tour']['Script']['setEndToItemIndex']=function(a,b,c){var d=function(){if(a['get']('selectedIndex')==b){var e=a['get']('items')[c];this['skip3DTransitionOnce'](e['get']('player')),a['set']('selectedIndex',c);}};this['executeFunctionWhenChange'](a,b,d);},TDV['Tour']['Script']['setMapLocation']=function(a,b){var c=function(){a['unbind']('stop',c,this),d['set']('mapPlayer',null);};a['bind']('stop',c,this);var d=a['get']('player');d['set']('mapPlayer',b);},TDV['Tour']['Script']['setMainMediaByIndex']=function(a){var b=undefined;if(a>=0x0&&a0x0&&(g=k[0x0],h=this['getPlayListItemIndexByMedia'](g,c));if(!g)c=!![];}if(c===!![]){var o=this['getActiveMediaWithViewer'](j);if(o){g=this['getFirstPlayListWithMedia'](o,!![]);var n=this['getPlayListItemByMedia'](g,o);h=g['get']('items')['indexOf'](n);}else c=null;}var p=[],q=function(){var y=p['concat'](),z=![],A=function(D){var E=D['source']['get']('state');if(E=='playing')!z&&(z=!![],this['pauseGlobalAudios'](p,!![]));else E=='stopped'&&(y['splice'](y['indexOf'](D['source']),0x1),y['length']==0x0&&this['resumeGlobalAudios'](),D['source']['unbind']('stateChange',A,this));}['bind'](this);for(var B=0x0,C=p['length'];B0x0&&y['get']('movements')[x-0x1]['get']('class')=='TargetPanoramaCameraMovement'){var F=z['get']('initialPosition'),G=F['get']('yaw'),H=F['get']('pitch'),I=F['get']('hfov'),J=y['get']('movements')[x-0x1],K=J['get']('targetYaw'),L=J['get']('targetPitch'),M=J['get']('targetHfov');if(K!==undefined)F['set']('yaw',K);if(L!==undefined)F['set']('pitch',L);if(M!==undefined)F['set']('hfov',M);var N=function(Q){F['set']('yaw',G),F['set']('pitch',H),F['set']('hfov',I),t['unbind']('end',N,this);};t['bind']('end',N,this);}y['set']('movementIndex',x);}}if(r){q['unbind']('begin',g,this),r['unbind']('stateChange',f,this);for(var O=0x0;O0x1)&&(P==undefined||P==q['get']('media'))&&n['set']('selectedIndex',p);if(a!=n)n['unbind']('change',h,this);}else u['set']('visible',v);n=undefined;};if(!c){var l=a['get']('selectedIndex'),m=l!=-0x1?a['get']('items')[a['get']('selectedIndex')]['get']('player'):this['getActivePlayerWithViewer'](this['getMainViewer']());m&&(c=this['getMediaFromPlayer'](m));}var n=undefined;if(c){var o=this['getPlayListsWithMedia'](c,!![]);if(o['indexOf'](a)!=-0x1)n=a;else{if(o['indexOf'](this['mainPlayList'])!=-0x1)n=this['mainPlayList'];else o['length']>0x0&&(n=o[0x0]);}}if(!n){a['set']('selectedIndex',b);return;}var p=n['get']('selectedIndex'),q=a['get']('items')[b],r=q['get']('player'),s=this['getMediaFromPlayer'](r);if(a['get']('selectedIndex')==b&&s==q['get']('media')||p==-0x1)return;if(a['get']('selectedIndex')==b&&s!=q['get']('media'))a['set']('selectedIndex',-0x1);var t=n['get']('items')[p],u=r['get']('viewerArea'),v=u['get']('visible'),w=u==t['get']('player')['get']('viewerArea');w?a!=n&&(n['set']('selectedIndex',-0x1),n['bind']('change',h,this)):u['set']('visible',!![]);var x=-0x1,y=undefined,z=t['get']('camera');z&&(y=z['get']('initialSequence'),y&&(x=y['get']('movementIndex')||-0x1));a['set']('selectedIndex',b);var A=[],B=function(D){var E=r['get'](D);if(E==undefined)return;if(Array['isArray'](E))A=A['concat'](E);else A['push'](E);};B('buttonStop');for(var C=0x0;C0x0?f[j['get']('id')]=setTimeout(k['bind'](this,j),c):k['call'](this,j);}function k(l){if(l['get']('class')=='PanoramaModel3DLocation'){var m=l['get']('data')['object'];k['call'](this,m);var n=m['get']('data')['panoramaOverlays'];for(var o=0x0,p=n['length'];o=0x0&&g[f]==b&&h['get']('isLoaded')){i['set']('yaw',i['get']('yaw')%0x168);var j=b['get']('player')['get']('viewerArea'),k=this['getActiveMediaWithViewer'](j);if(k['get']('class')['indexOf']('Panorama')!=-0x1){if(d!==undefined){d*=0x3e8;var l=j['get']('modelToPanoramaTraslationDuration'),m=j['get']('panoramaToModelTraslationDuration'),n=()=>{clearTimeout(o),a['unbind']('change',n,this),j['set']('modelToPanoramaTraslationDuration',l),j['set']('panoramaToModelTraslationDuration',m);},o=setTimeout(n,d);a['bind']('change',n,this),j['set']('modelToPanoramaTraslationDuration',d),j['set']('panoramaToModelTraslationDuration',d);}i['setStoredPosition'](c);}else{if(i['get']('state')=='playing')i['stop']();this['createTween'](i,c,d,e)['play']();}}else{if(i['get']('state')=='playing')i['stop']();this['startModel3DWithCameraSpot'](b,c);}},TDV['Tour']['Script']['setModel3DCameraSequence']=function(a,b,c){var d=a['get']('selectedIndex'),e=a['get']('items'),f=b['get']('media');if(e[d]==b&&f['get']('isLoaded'))c['play']();else{var g=c['get']('movements'),h={};if(g['length']>0x0){var i=g[0x0];if(i['get']('class')=='TargetModel3DCameraMovement'){var j=['x','y','z','yaw','pitch','fov','distance'];for(var k in j){k=j[k];var l=i['get']('target'+k['charAt'](0x0)['toUpperCase']()+k['slice'](0x1));l!==undefined&&(h[k]=l);}}}this['startModel3DWithCameraSpot'](b,h);var m=function(){b['unbind']('begin',m,this),c['play']();};b['bind']('begin',m,this);}},TDV['Tour']['Script']['setPanoramaCameraWithCurrentSpot']=function(a,b){var c=this['getActiveMediaWithViewer'](b||this['getMainViewer']());if(c!=undefined&&(c['get']('class')['indexOf']('Panorama')!=-0x1||c['get']('class')=='Video360')){var d=a['get']('media'),e=this['clonePanoramaCamera'](a['get']('camera'));this['setCameraSameSpotAsMedia'](e,c),this['startPanoramaWithCamera'](d,e);}},TDV['Tour']['Script']['setPanoramaCameraWithSpot']=function(a,b,c,d,e){var f=b['get']('media'),g=b['get']('player');if(a['get']('items')[a['get']('selectedIndex')]==b||g['get']('rendererPanorama')==f){if(c===undefined)c=g['get']('yaw');if(d===undefined)d=g['get']('pitch');if(e===undefined)e=g['get']('hfov');g['moveTo'](c,d,g['get']('roll'),e);}else{var h=this['clonePanoramaCamera'](b['get']('camera')),i=h['get']('initialPosition');if(c!==undefined)i['set']('yaw',c);if(d!==undefined)i['set']('pitch',d);if(e!==undefined)i['set']('hfov',e);this['startPanoramaWithCamera'](f,h);}},TDV['Tour']['Script']['setSurfaceSelectionHotspotMode']=function(a){var b=this['getByClassName']('HotspotPanoramaOverlay'),c=this['getByClassName']('PanoramaPlayer'),d=a=='hotspotEnabled',e=a=='circleEnabled',f=!!a;b['forEach'](function(g){var h=g['get']('data');if(h&&h['hasPanoramaAction']==!![])g['set']('enabledInSurfaceSelection',d);}),c['forEach'](function(g){g['set']('adjacentPanoramaPositionsEnabled',e),g['set']('surfaceSelectionEnabled',f);}),this['get']('data')['surfaceSelectionHotspotMode']=a;},TDV['Tour']['Script']['setValue']=function(a,b,c){try{if('set'in a)a['set'](b,c);else a[b]=c;}catch(d){}},TDV['Tour']['Script']['setStartTimeVideo']=function(a,b){var c=this['getPlayListItems'](a),d=[],e=function(){for(var j=0x0;j=0x0)clearTimeout(f);a['bind']('rollOut',h,this);},h=function(){var i=function(){e['call'](this,![]);};a['unbind']('rollOut',h,this),f=setTimeout(i['bind'](this),c);};a['bind']('rollOver',g,this);}},TDV['Tour']['Script']['setObjectsVisibilityByTags']=function(a,b,c,d){var e=this['_getObjectsByTags'](b,['InnerModel3DObject'],'tags2Objects',c)['filter'](function(f){return a['get']('objects')['indexOf'](f)!=-0x1;}['bind'](this));this['setObjectsVisibility'](e,d);},TDV['Tour']['Script']['setObjectsVisibilityByID']=function(a,b,c){var d=b['map'](function(e){return this['getModel3DInnerObject'](a,e);}['bind'](this));this['setObjectsVisibility'](d,c);},TDV['Tour']['Script']['setObjectsVisibility']=function(a,b){a['forEach'](function(c){if(c)c['set']('enabled',b==='toggle'?!c['get']('enabled'):b);}['bind'](this));},TDV['Tour']['Script']['getModel3DInnerObject']=function(a,b){var c=a['get']('objects');for(var d=0x0,e=c['length'];dA?z:A,y+=n('headerPaddingTop')+n('headerPaddingBottom');}var B=u-n('bodyPaddingLeft')-n('bodyPaddingRight')-n('paddingLeft')-n('paddingRight'),C=v-y-x-n('bodyPaddingTop')-n('bodyPaddingBottom')-n('paddingTop')-n('paddingBottom'),D=B/C,E=q/r;D>E?u=C*E+n('bodyPaddingLeft')+n('bodyPaddingRight')+n('paddingLeft')+n('paddingRight'):v=B/E+y+x+n('bodyPaddingTop')+n('bodyPaddingBottom')+n('paddingTop')+n('paddingBottom'),u>o*s&&(u=o*s),v>p*t&&(v=p*t),a['set']('width',u),a['set']('height',v),a['set']('x',(o-n('actualWidth'))*0.5),a['set']('y',(p-n('actualHeight'))*0.5);};f&&this['executeFunctionWhenChange'](c,0x0,i);var k=b['get']('class'),l=k=='Video'||k=='Video360';c['set']('selectedIndex',0x0);l?(this['bind']('resize',j,this),j(),c['get']('items')[0x0]['get']('player')['play']()):(a['set']('width',d),a['set']('height',e));window['resumeAudiosBlocked']=!![],this['getMainViewer']()['set']('toolTipEnabled',![]);var m=this['pauseCurrentPlayers'](!![]);a['bind']('close',h,this),a['show'](this,!![]);},TDV['Tour']['Script']['showPopupImage']=function(a,b,c,d,e,f,g,h,i,j,k,l,m){var n=![],o=function(){G['unbind']('loaded',r,this),v['call'](this);},p=function(){G['unbind']('click',p,this),K!=undefined&&clearTimeout(K);},q=function(){setTimeout(A,0x0);},r=function(){this['unbind']('click',o,this),F['set']('visible',!![]),A(),H['set']('visible',!![]),G['unbind']('loaded',r,this),G['bind']('resize',q,this),K=setTimeout(s['bind'](this),0xc8);},s=function(){K=undefined;h&&(G['bind']('click',p,this),u['call'](this));G['bind']('userInteractionStart',B,this),G['bind']('userInteractionEnd',C,this),G['bind']('backgroundClick',v,this);b&&(G['bind']('click',y,this),G['set']('imageCursor','hand'));H['bind']('click',v,this);if(k)k['call'](this);},t=function(){h&&K&&(clearTimeout(K),K=undefined);},u=function(){h&&(t(),K=setTimeout(v['bind'](this),h));},v=function(){this['getMainViewer']()['set']('toolTipEnabled',!![]),n=!![];if(K)clearTimeout(K);if(L)clearTimeout(L);if(h)p();f&&f['get']('duration')>0x0?f['bind']('end',x,this):setTimeout(()=>{w['call'](this);},0x0),G['set']('visible',![]),H['set']('visible',![]),F['set']('visible',![]),this['unbind']('click',o,this),G['unbind']('backgroundClick',v,this),G['unbind']('userInteractionStart',B,this),G['unbind']('userInteractionEnd',C,this,!![]),G['unbind']('resize',q,this),b&&(G['unbind']('click',y,this),G['set']('cursor','default')),H['unbind']('click',v,this),this['resumePlayers'](J,i==null||j),j&&this['resumeGlobalAudios'](),i&&this['stopGlobalAudio'](i);},w=function(){G['set']('image',null);if(l)l['call'](this);},x=function(){f['unbind']('end',x,this),w['call'](this);},y=function(){G['set']('image',z()?a:b);},z=function(){return G['get']('image')==b;},A=function(){var M=G['get']('actualWidth')-G['get']('imageLeft')-G['get']('imageWidth')+0xa,N=G['get']('imageTop')+0xa;if(M<0xa)M=0xa;if(N<0xa)N=0xa;H['set']('right',M),H['set']('top',N);},B=function(){t(),L?(clearTimeout(L),L=undefined):H['set']('visible',![]);},C=function(){u['call'](this),!n&&(L=setTimeout(D,0x12c));},D=function(){L=undefined,H['set']('visible',!![]),A();},E=function(M){var N=M['get']('data');if(N&&'extraLevels'in N){var O=this['rootPlayer']['createInstance'](M['get']('class')),P=N['extraLevels'];for(var Q=0x0;Q=0x0&&kh['get']('showing'))['length'],g=e['length']-f;d(e,a,g),d(e,b,g+0x1),d(e,c,g+0x2),this['set']('children',e);},TDV['Tour']['Script']['showPopupPanoramaOverlay']=function(a,b,c,d,e,f,g,h){var i=this['isCardboardViewMode']();if(a['get']('visible')||!i&&this['zoomImagePopupPanorama']['get']('visible'))return;this['getMainViewer']()['set']('toolTipEnabled',![]);if(!i){var j=this['zoomImagePopupPanorama'],k=a['get']('showDuration'),l=a['get']('hideDuration'),m=this['pauseCurrentPlayers'](f==null||!g),n=a['get']('popupMaxWidth'),o=a['get']('popupMaxHeight'),p=function(){var t=function(){if(!this['isCardboardViewMode']())a['set']('visible',![]);};a['unbind']('showEnd',p,this),a['set']('showDuration',0x1),a['set']('hideDuration',0x1),this['showPopupImage'](c,d,a['get']('popupMaxWidth'),a['get']('popupMaxHeight'),null,null,b,e,f,g,t,q,![]);},q=function(){var t=function(){a['unbind']('hideEnd',t,this);if(h)h();},u=function(){a['unbind']('showEnd',u,this),a['bind']('hideEnd',t,this,!![]),a['set']('visible',![]),a['set']('showDuration',k),a['set']('popupMaxWidth',n),a['set']('popupMaxHeight',o);};this['resumePlayers'](m,f==null||!g),a['set']('hideDuration',l);if(!a['get']('visible')&&l>0x0){var v=j['get']('imageWidth'),w=j['get']('imageHeight');a['bind']('showEnd',u,this,!![]),a['set']('showDuration',0x1),a['set']('popupMaxWidth',v),a['set']('popupMaxHeight',w),a['set']('visible',!![]);}else{a['set']('showDuration',k);if(h)h();}this['getMainViewer']()['set']('toolTipEnabled',!![]);};a['bind']('showEnd',p,this,!![]);}else{var r=function(){this['resumePlayers'](m,f==null||g);g&&this['resumeGlobalAudios']();f&&this['stopGlobalAudio'](f);d&&(a['set']('image',c),a['unbind']('click',s,this));a['unbind']('hideEnd',r,this),this['getMainViewer']()['set']('toolTipEnabled',!![]);if(h)h();},s=function(){a['set']('image',a['get']('image')==c?d:c);},m=this['pauseCurrentPlayers'](f==null||!g);g&&this['pauseGlobalAudios'](null,!![]);f&&this['playGlobalAudio'](f,!![]);if(d)a['bind']('click',s,this);a['bind']('hideEnd',r,this,!![]);}this['updateIndexGlobalZoomImage'](),a['set']('visible',!![]);},TDV['Tour']['Script']['showPopupPanoramaVideoOverlay']=function(a,b,c,d,e){var f=![],g=function(){a['unbind']('showEnd',g),k['bind']('click',i,this),j(),k['set']('visible',!![]);}['bind'](this),h=function(){f=!![];if(!a['get']('loop'))i();}['bind'](this),i=function(){window['resumeAudiosBlocked']=![],this['getMainViewer']()['set']('toolTipEnabled',!![]),a['set']('visible',![]),k['set']('visible',![]),k['unbind']('click',i,this),a['unbind']('end',h,this),a['unbind']('hideEnd',i,this,!![]),this['resumePlayers'](m,!![]);c&&this['resumeGlobalAudios']();if(d)d();if(e&&f)e();}['bind'](this),j=function(){var n=0xa,o=0xa;k['set']('right',n),k['set']('top',o);}['bind'](this);this['getMainViewer']()['set']('toolTipEnabled',![]);var k=this['closeButtonPopupPanorama'];if(b)for(var l in b){k['set'](l,b[l]);}window['resumeAudiosBlocked']=!![];var m=this['pauseCurrentPlayers'](!![]);c&&this['pauseGlobalAudios'](),a['bind']('end',h,this,!![]),a['bind']('showEnd',g,this,!![]),a['bind']('hideEnd',i,this,!![]),a['set']('visible',!![]);},TDV['Tour']['Script']['showWindow']=function(a,b,c){if(a['get']('visible')==!![])return;var d=function(){this['getMainViewer']()['set']('toolTipEnabled',!![]),c&&this['resumeGlobalAudios'](),e(),this['resumePlayers'](h,!c),a['unbind']('close',d,this);},e=function(){a['unbind']('click',e,this),f!=undefined&&clearTimeout(f);},f=undefined;if(b){var g=function(){a['hide']();};a['bind']('click',e,this),f=setTimeout(g,b);}this['getMainViewer']()['set']('toolTipEnabled',![]);c&&this['pauseGlobalAudios'](null,!![]);var h=this['pauseCurrentPlayers'](!c);a['bind']('close',d,this),a['show'](this,!![]);},TDV['Tour']['Script']['startModel3DWithCameraSpot']=function(a,b){var c=a['get']('media'),d=window['currentPanoramasWithCameraChanged']==undefined||!(c['get']('id')in window['currentPanoramasWithCameraChanged']);if(!d)return;var e=c['get']('camera');b=Object['assign']({},b);if(!c['get']('isLoaded')){var f={};for(var g in b){var h='initial'+g['charAt'](0x0)['toUpperCase']()+g['slice'](0x1);f[h]=e['get'](h),b[h]=b[g],e['set'](h,b[h]),delete b[g];}window['currentPanoramasWithCameraChanged']==undefined&&(window['currentPanoramasWithCameraChanged']={});var i=c['get']('id');window['currentPanoramasWithCameraChanged'][i]=[a];var j=function(){i in window['currentPanoramasWithCameraChanged']&&delete window['currentPanoramasWithCameraChanged'][i];a['unbind']('begin',j,this);for(var r in f){e['set'](r,f[r]);}};a['bind']('begin',j,this);}else{for(var g in b){e['set'](g,b[g]);var h='initial'+g['charAt'](0x0)['toUpperCase']()+g['slice'](0x1);e['set'](h,b[g]);}e['setStoredPosition'](b);}var k=a['get']('player'),l=k['get']('viewerArea'),m=this['getActivePlayersWithViewer'](l),n=m['find'](function(r){return this['getMediaFromPlayer'](r)['get']('class')['indexOf']('Panorama')!=-0x1;}['bind'](this)),o=c['get']('data');if(n&&o['panoramaLocations']){var p=this['getMediaFromPlayer'](n),q=_getObject(this,o['panoramaLocations']['find'](r=>p==_getObject(this,_getObject(this,r)['get']('data')['panorama'])));q&&!q['get']('forceModelLoading')&&(q['set']('forceModelLoading',!![]),a['bind']('begin',function r(){a['unbind']('begin',r,this),q['set']('forceModelLoading',![]);},this));}},TDV['Tour']['Script']['startPanoramaWithCamera']=function(a,b){var c=this['getByClassName']('PlayList');if(c['length']==0x0)return;var d=window['currentPanoramasWithCameraChanged']==undefined||!(a['get']('id')in window['currentPanoramasWithCameraChanged']),e=[];for(var f=0x0,g=c['length'];f0x0){window['currentPanoramasWithCameraChanged']==undefined&&(window['currentPanoramasWithCameraChanged']={});var o=a['get']('id');window['currentPanoramasWithCameraChanged'][o]=e;var p=function(){o in window['currentPanoramasWithCameraChanged']&&delete window['currentPanoramasWithCameraChanged'][o];for(var r=0x0;r=0x0?this['mainPlayList']['get']('items')[b]['get']('media'):this['getActiveMediaWithViewer'](this['getMainViewer']());if(d!=undefined){var e=d['get']('data');if(e&&e['label']){if(b>=0x0){var f=this['mainPlayList']['get']('items')['reduce'](function(B,C){var D=C['get']('media')['get']('data');return D&&e['label']==D['label']?B+0x1:B;},0x0);if(f!=0x1)c='#media='+(b+0x1);}if(!c)c='#media-name='+encodeURIComponent(e['label']);}else b>=0x0&&(c='#media='+(b+0x1));}if(d){if(a['includeCurrentView']===!![]){var g=this['getActivePlayerWithViewer'](this['getMainViewer']());if(g)switch(g['get']('class')){case'PanoramaPlayer':var h=g['get']('yaw'),j=g['get']('pitch'),k=g['get']('hfov');if(!isNaN(h)&&!isNaN(j))c+='&yaw='+h['toFixed'](0x2)+'&pitch='+j['toFixed'](0x2);if(!isNaN(k))c+='&fov='+k['toFixed'](0x2);break;case'Model3DPlayer':var l=g['get']('model'),m=l['get']('camera'),n=[];n['push']('yaw='+m['get']('yaw')['toFixed'](0x2)),n['push']('pitch='+m['get']('pitch')['toFixed'](0x2)),n['push']('x='+m['get']('x')['toFixed'](0x5)),n['push']('y='+m['get']('y')['toFixed'](0x5)),n['push']('z='+m['get']('z')['toFixed'](0x5));if(m['get']('class')=='OrbitModel3DCamera')n['push']('distance='+m['get']('distance')['toFixed'](0x5));c+='&'+n['join']('&');break;}}if(a['includeCurrentVisibleHotspots']===!![]){var o=this['getOverlays'](d),p=[],q=[];for(var r=0x0,f=o['length'];r0x0)c+='&son='+p['join'](',');if(q['length']>0x0)c+='&hon='+q['join'](',');if(d['get']('class')=='Model3D'){var w=d['get']('variant');if(w)c+='&variant='+w;var x=d['get']('objects'),y=[],z=[];x['forEach'](function(B){if(B['get']('class')=='InnerModel3DObject')(B['get']('enabled')?y:z)['push'](B['get']('objectId'));});if(y['length']>0x0)c+='&sobjids='+y['join'](',');if(z['length']>0x0)c+='&hobjids='+z['join'](',');}}if(a['includeCurrentMeasureModel3DObjects']===!![]&&d['get']('class')=='Model3D'){var A=[];d['get']('objects')['forEach'](function(B){if(B['get']('class')=='MeasureModel3DObject'&&B['get']('mode')!='create'){var C=[B['get']('data')['id'],B['get']('x'),B['get']('y'),B['get']('z')];B['get']('points')['forEach'](function(D){C['push'](D['get']('x'),D['get']('y'),D['get']('z'));}),C['length']>0x4&&A['push'](C['join'](','));}});if(A['length']>0x0)c+='&measures='+A['join']('+');}}return c&&a['setHash']===!![]&&(location['hash']=c),c;},TDV['Tour']['Script']['updateMediaLabelFromPlayList']=function(a,b,c){var d=function(){var f=a['get']('selectedIndex');if(f>=0x0){var g=function(){j['unbind']('begin',g),h(f);},h=function(k){var l=j['get']('media'),m=l['get']('data'),n=m!==undefined?m['description']:undefined;i(n);},i=function(k){k!==undefined?b['set']('html',''+k+''):b['set']('html','');var l=b['get']('html');b['set']('visible',l!==undefined&&l);},j=a['get']('items')[f];b['get']('html')?(i('Loading...'),j['bind']('begin',g)):h(f);}},e=function(){b['set']('html',undefined),a['unbind']('change',d,this),c['unbind']('stop',e,this);};c&&c['bind']('stop',e,this),a['bind']('change',d,this),d();},TDV['Tour']['Script']['updateVideoCues']=function(a,b){var c=a['get']('items')[b],d=c['get']('media');if(d['get']('cues')['length']==0x0)return;var e=c['get']('player'),f=[],g=function(){a['get']('selectedIndex')!=b&&(d['unbind']('cueChange',h,this),a['unbind']('change',g,this));},h=function(j){var k=e['get']('currentTime'),l=j['data']['activeCues'];for(var m=0x0,n=f['length'];m=o['get']('startTime')&&k0x0&&(g=this['mixObject'](g||{},{'theme':{'window':{'width':undefined,'left':i,'right':i}}}));}var j=this['get']('data')['textToSpeechConfig']['speechOnQuizQuestion']&&!!f['title'];if(j)this['textToSpeech'](f['title'],a);d=c['showQuestion'](a,g),d['then'](function(k){if(j)this['stopTextToSpeech']();this['resumePlayers'](e,!![]);}['bind'](this));}return d;},TDV['Tour']['Script']['quizShowScore']=function(a){var b=this['get']('data'),c=b['quiz'];if(c)return this['get']('isMobile')&&(a=a||{},a=this['mixObject'](a,b[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig'])),c['showScore'](a);},TDV['Tour']['Script']['quizShowTimeout']=function(a,b){var c=this['get']('data'),d=c['quiz'];d&&(this['get']('isMobile')&&(b=b||{},b=this['mixObject'](b,c[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig'])),d['showTimeout'](a,b));},TDV['Tour']['Script']['stopTextToSpeech']=function(a){if(window['speechSynthesis']&&(a==undefined||this['t2sLastID']==a)){var b=window['speechSynthesis'];b['speaking']&&b['cancel'](),this['t2sLastID']=undefined;}},TDV['Tour']['Script']['getStateTextToSpeech']=function(a){return this['t2sLastID']==a?'playing':'stopped';},TDV['Tour']['Script']['textToSpeech']=function(a,b,c){if(this['get']('mute'))return;var d=this['get']('data'),e=d['disableTTS']||![];if(e)return;if(b!=undefined&&this['t2sLastID']!=b||b==undefined){c=c||0x0;if(this['t2sLastID']&&c>this['t2sLastPriority'])return;var f=d['tour'],g=d['textToSpeechConfig'],h=d['localeManager']['currentLocaleID'];if(window['speechSynthesis']){var i=window['speechSynthesis'];i['speaking']&&i['cancel']();var j=new SpeechSynthesisUtterance(a);if(h)j['lang']=h;var k;if(g){j['volume']=g['volume'],j['pitch']=g['pitch'],j['rate']=g['rate'];if(g['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}j['onend']=function(){this['t2sLastID']=null;if(k)clearInterval(k);if(g['stopBackgroundAudio'])this['resumeGlobalAudios']();}['bind'](this),j['onerror']=function(m){console['error']('Text\x20to\x20speech\x20error:\x20',m['error']);}['bind'](this),navigator['userAgent']['indexOf']('Chrome')!=-0x1&&!this['get']('isMobile')&&(k=setInterval(function(){i['pause'](),i['resume']();},0xbb8)),i['speak'](j),this['t2sLastPriority']=c,this['t2sLastID']=b;}else{if(f['isMobileApp']()){if(!f['isIOS']()){var l=function(m,n){var o={'command':'tts','type':m};if(n)o=this['mixObject'](o,n);android['sendJSON'](JSON['stringify'](o));}['bind'](this);android['onTTSEnd']=function(){this['t2sLastID']=null;if(g['stopBackgroundAudio'])this['resumeGlobalAudios']();android['onTTSEnd']=undefined;}['bind'](this),l('stop');if(g){l('init',{'volume':g['volume'],'pitch':g['pitch'],'rate':g['rate'],'language':h});if(g['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}l('play',{'text':a,'androidCallback':'onTTSEnd'});}else console['error']('Text\x20to\x20Speech\x20isn\x27t\x20supported\x20on\x20this\x20browser');}else console['error']('Text\x20to\x20Speech\x20isn\x27t\x20supported\x20on\x20this\x20browser');}}},TDV['Tour']['Script']['textToSpeechComponent']=function(a){var b=a['get']('class'),c;if(b=='HTMLText'){var d=a['get']('html');d&&(c=this['htmlToPlainText'](d,{'linkProcess':function(e,f){return f;}}));}else{if(b=='Button')c=a['get']('label');else b=='Label'&&(c=a['get']('text'));}c&&this['textToSpeech'](c,a['get']('id'));},TDV['Tour']['Script']['toggleTextToSpeechComponent']=function(a){var b=a['get']('id');if(this['getStateTextToSpeech'](b)!='playing')this['textToSpeechComponent'](a);else this['stopTextToSpeech'](b);},TDV['Tour']['Script']['_initTTSTooltips']=function(){function a(c){var d=c['source'];this['textToSpeech'](d['get']('toolTip'),d['get']('id'),0x1);}function b(c){var d=c['source'];this['stopTextToSpeech'](d['get']('id'));}setTimeout(function(){var c=this['getByClassName']('UIComponent');for(var d=0x0,e=c['length'];d/i);n&&(m=m['substring'](0x0,n['index']));const o=m['match'](/]*>/i);o&&(m=m['substring'](o['index']+o[0x0]['length'],m['length']));m=m['replace'](/<(script|style)( [^>]*)*>((?!<\/\1( [^>]*)*>).)*<\/\1>/gi,''),m=m['replace'](/<(\/)?((?!h[1-6]( [^>]*)*>)(?!img( [^>]*)*>)(?!a( [^>]*)*>)(?!ul( [^>]*)*>)(?!ol( [^>]*)*>)(?!li( [^>]*)*>)(?!p( [^>]*)*>)(?!div( [^>]*)*>)(?!td( [^>]*)*>)(?!br( [^>]*)*>)[^>\/])[^<>]*>/gi,''),m=m['replace'](/]*)>/gi,function(q,r){var s='',t='',u=/src="([^"]*)"/i['exec'](r),v=/alt="([^"]*)"/i['exec'](r);u!==null&&(s=u[0x1]);v!==null&&(t=v[0x1]);if(typeof e==='function')return e(s,t);if(t==='')return'![image]\x20('+s+')';return'!['+t+']\x20('+s+')';});function p(){return function(q,r,s,t){var u=0x0;s&&/start="([0-9]+)"/i['test'](s)&&(u=/start="([0-9]+)"/i['exec'](s)[0x1]-0x1);var v='

'+t['replace'](/]*>(((?!]*>)(?!<\/li>).)*)<\/li>/gi,function(w,x){var y=0x0,z=x['replace'](/(^|(
))(?!

)/gi,function(){if(r==='o'&&y===0x0)return u+=0x1,y+=0x1,''+u+c(j,i-String(u)['length']);return''+l;});return z;})+'

';return v;};}if(g==='linebreak')m=m['replace'](/<\/?ul[^>]*>|<\/?ol[^>]*>|<\/?li[^>]*>/gi,'\x0a');else{if(g==='indention')while(/<(o|u)l[^>]*>(.*)<\/\1l>/gi['test'](m)){m=m['replace'](/<(o|u)l([^>]*)>(((?!<(o|u)l[^>]*>)(?!<\/(o|u)l>).)*)<\/\1l>/gi,p());}}if(f==='linebreak')m=m['replace'](/]*>([^<]*)<\/h\1>/gi,'\x0a$2\x0a');else{if(f==='underline')m=m['replace'](/]*>(((?!<\/h1>).)*)<\/h1>/gi,function(q,r){return'\x0a \x0a'+r+'\x0a'+c('=',r['length'])+'\x0a \x0a';}),m=m['replace'](/]*>(((?!<\/h2>).)*)<\/h2>/gi,function(q,r){return'\x0a \x0a'+r+'\x0a'+c('-',r['length'])+'\x0a \x0a';}),m=m['replace'](/]*>(((?!<\/h\1>).)*)<\/h\1>/gi,function(q,r,s){return'\x0a \x0a'+s+'\x0a \x0a';});else f==='hashify'&&(m=m['replace'](/]*>([^<]*)<\/h\1>/gi,function(q,r,s){return'\x0a \x0a'+c('#',r)+'\x20'+s+'\x0a \x0a';}));}m=m['replace'](/]*)*>|]*)*>|<\/p( [^>]*)*>|]*)*>|<\/div( [^>]*)*>|]*)*>|<\/td( [^>]*)*>/gi,'\x0a'),m=m['replace'](/]*href="([^"]*)"[^>]*>([^<]+)<\/a[^>]*>/gi,function(q,r,s){if(typeof d==='function')return d(r,s);return'\x20['+s+']\x20('+r+')\x20';}),m=m['replace'](/\n[ \t\f]*/gi,'\x0a'),m=m['replace'](/\n\n+/gi,'\x0a');k?(m=m['replace'](/( |\t)+/gi,'\x20'),m=m['replace'](/ /gi,'\x20')):m=m['replace'](/( | |\t)+/gi,'\x20');m=m['replace'](/\n +/gi,'\x0a'),m=m['replace'](/^ +/gi,'');while(m['indexOf']('\x0a')===0x0){m=m['substring'](0x1);}return(m['length']===0x0||m['lastIndexOf']('\x0a')!==m['length']-0x1)&&(m+='\x0a'),m;},TDV['Tour']['Script']['openEmbeddedPDF']=function(a,b){var c=!!window['MSInputMethodContext']&&!!document['documentMode'];if(c){this['openLink'](b,'_blank');return;}var d=a['get']('class'),e=!new RegExp('^(?:[a-z]+:)?//','i')['test'](b);if(e&&d=='WebFrame'){var f=location['origin']+location['pathname'];a['set']('url','lib/pdfjs/web/viewer.html?file='+encodeURIComponent(f['substring'](0x0,f['lastIndexOf']('/'))+'/'+b)+'#0');}else{var g=location['origin']==new URL(b)['origin'],h=''+'

This\x20browser\x20does\x20not\x20support\x20inline\x20PDFs.\x20Please\x20download\x20the\x20PDF\x20to\x20view\x20it:\x20Download\x20PDF

'+'',i=/^((?!chrome|android|crios|ipad|iphone).)*safari/i['test'](navigator['userAgent']),j=''+''+'!function(root,factory){\x22function\x22==typeof\x20define&&define.amd?define([],factory):\x22object\x22==typeof\x20module&&module.exports?module.exports=factory():root.PDFObject=factory()}(this,function(){\x22use\x20strict\x22;if(void\x200===window||void\x200===window.navigator||void\x200===window.navigator.userAgent||void\x200===window.navigator.mimeTypes)return!1;let\x20nav=window.navigator,ua=window.navigator.userAgent,isIE=\x22ActiveXObject\x22in\x20window,isModernBrowser=void\x200!==window.Promise,supportsPdfMimeType=void\x200!==nav.mimeTypes[\x22application/pdf\x22],isMobileDevice=void\x200!==nav.platform&&\x22MacIntel\x22===nav.platform&&void\x200!==nav.maxTouchPoints&&nav.maxTouchPoints>1||/Mobi|Tablet|Android|iPad|iPhone/.test(ua),isSafariDesktop=!isMobileDevice&&void\x200!==nav.vendor&&/Apple/.test(nav.vendor)&&/Safari/.test(ua),isFirefoxWithPDFJS=!(isMobileDevice||!/irefox/.test(ua))&&parseInt(ua.split(\x22rv:\x22)[1].split(\x22.\x22)[0],10)>18,createAXO=function(type){var\x20ax;try{ax=new\x20ActiveXObject(type)}catch(e){ax=null}return\x20ax},supportsPDFs=!isMobileDevice&&(isFirefoxWithPDFJS||supportsPdfMimeType||isIE&&!(!createAXO(\x22AcroPDF.PDF\x22)&&!createAXO(\x22PDF.PdfCtrl\x22))),embedError=function(msg,suppressConsole){return\x20suppressConsole||console.log(\x22[PDFObject]\x20\x22+msg),!1},emptyNodeContents=function(node){for(;node.firstChild;)node.removeChild(node.firstChild)},generatePDFJSMarkup=function(targetNode,url,pdfOpenFragment,PDFJS_URL,id,omitInlineStyles){emptyNodeContents(targetNode);let\x20fullURL=PDFJS_URL+\x22?file=\x22+encodeURIComponent(url)+pdfOpenFragment,div=document.createElement(\x22div\x22),iframe=document.createElement(\x22iframe\x22);return\x20iframe.src=fullURL,iframe.className=\x22pdfobject\x22,iframe.type=\x22application/pdf\x22,iframe.frameborder=\x220\x22,id&&(iframe.id=id),omitInlineStyles||(div.style.cssText=\x22position:\x20absolute;\x20top:\x200;\x20right:\x200;\x20bottom:\x200;\x20left:\x200;\x22,iframe.style.cssText=\x22border:\x20none;\x20width:\x20100%;\x20height:\x20100%;\x22,/*targetNode.style.position=\x22relative\x22,*/targetNode.style.overflow=\x22auto\x22),div.appendChild(iframe),targetNode.appendChild(div),targetNode.classList.add(\x22pdfobject-container\x22),targetNode.getElementsByTagName(\x22iframe\x22)[0]},embed=function(url,targetSelector,options){let\x20selector=targetSelector||!1,opt=options||{},id=\x22string\x22==typeof\x20opt.id?opt.id:\x22\x22,page=opt.page||!1,pdfOpenParams=opt.pdfOpenParams||{},fallbackLink=opt.fallbackLink||!0,width=opt.width||\x22100%\x22,height=opt.height||\x22100%\x22,assumptionMode=\x22boolean\x22!=typeof\x20opt.assumptionMode||opt.assumptionMode,forcePDFJS=\x22boolean\x22==typeof\x20opt.forcePDFJS&&opt.forcePDFJS,supportRedirect=\x22boolean\x22==typeof\x20opt.supportRedirect&&opt.supportRedirect,omitInlineStyles=\x22boolean\x22==typeof\x20opt.omitInlineStyles&&opt.omitInlineStyles,suppressConsole=\x22boolean\x22==typeof\x20opt.suppressConsole&&opt.suppressConsole,forceIframe=\x22boolean\x22==typeof\x20opt.forceIframe&&opt.forceIframe,PDFJS_URL=opt.PDFJS_URL||!1,targetNode=function(targetSelector){let\x20targetNode=document.body;return\x22string\x22==typeof\x20targetSelector?targetNode=document.querySelector(targetSelector):void\x200!==window.jQuery&&targetSelector\x20instanceof\x20jQuery&&targetSelector.length?targetNode=targetSelector.get(0):void\x200!==targetSelector.nodeType&&1===targetSelector.nodeType&&(targetNode=targetSelector),targetNode}(selector),fallbackHTML=\x22\x22,pdfOpenFragment=\x22\x22;if(\x22string\x22!=typeof\x20url)return\x20embedError(\x22URL\x20is\x20not\x20valid\x22,suppressConsole);if(!targetNode)return\x20embedError(\x22Target\x20element\x20cannot\x20be\x20determined\x22,suppressConsole);if(page&&(pdfOpenParams.page=page),pdfOpenFragment=function(pdfParams){let\x20prop,string=\x22\x22;if(pdfParams){for(prop\x20in\x20pdfParams)pdfParams.hasOwnProperty(prop)&&(string+=encodeURIComponent(prop)+\x22=\x22+encodeURIComponent(pdfParams[prop])+\x22&\x22);string&&(string=(string=\x22#\x22+string).slice(0,string.length-1))}return\x20string}(pdfOpenParams),forcePDFJS&&PDFJS_URL)return\x20generatePDFJSMarkup(targetNode,url,pdfOpenFragment,PDFJS_URL,id,omitInlineStyles);if(supportsPDFs||assumptionMode&&isModernBrowser&&!isMobileDevice){return\x20function(embedType,targetNode,targetSelector,url,pdfOpenFragment,width,height,id,omitInlineStyles){emptyNodeContents(targetNode);let\x20embed=document.createElement(embedType);if(embed.src=url+pdfOpenFragment,embed.className=\x22pdfobject\x22,embed.type=\x22application/pdf\x22,id&&(embed.id=id),!omitInlineStyles){let\x20style=\x22embed\x22===embedType?\x22overflow:\x20auto;\x22:\x22border:\x20none;\x22;targetSelector&&targetSelector!==document.body?style+=\x22width:\x20\x22+width+\x22;\x20height:\x20\x22+height+\x22;\x22:style+=\x22position:\x20absolute;\x20top:\x200;\x20right:\x200;\x20bottom:\x200;\x20left:\x200;\x20width:\x20100%;\x20height:\x20100%;\x22,embed.style.cssText=style}return\x20targetNode.classList.add(\x22pdfobject-container\x22),targetNode.appendChild(embed),targetNode.getElementsByTagName(embedType)[0]}(forceIframe||supportRedirect&&isSafariDesktop?\x22iframe\x22:\x22embed\x22,targetNode,targetSelector,url,pdfOpenFragment,width,height,id,omitInlineStyles)}return\x20PDFJS_URL?generatePDFJSMarkup(targetNode,url,pdfOpenFragment,PDFJS_URL,id,omitInlineStyles):(fallbackLink&&(fallbackHTML=\x22string\x22==typeof\x20fallbackLink?fallbackLink:\x22

This\x20browser\x20does\x20not\x20support\x20inline\x20PDFs.\x20Please\x20download\x20the\x20PDF\x20to\x20view\x20it:\x20Download\x20PDF

\x22,targetNode.innerHTML=fallbackHTML.replace(/\x5c[url\x5c]/g,url)),embedError(\x22This\x20browser\x20does\x20not\x20support\x20embedded\x20PDFs\x22,suppressConsole))};return{embed:function(a,b,c){return\x20embed(a,b,c)},pdfobjectversion:\x222.2.3\x22,supportsPDFs:supportsPDFs}});'+'if\x20(typeof\x20module\x20===\x20\x22object\x22\x20&&\x20module.exports)\x20{'+'this.PDFObject\x20=\x20module.exports;'+'}'+'PDFObject.embed(\x22'+b+'\x22,\x20\x22#content\x22,\x20{'+(g?'\x22PDFJS_URL\x22:\x20\x22'+new URL('lib/pdfjs/web/viewer.html',document['baseURI'])['href']+'\x22,\x20':'')+'\x22fallbackLink\x22:\x20\x22'+h+'\x22,'+'\x22forcePDFJS\x22:\x20'+i+'});'+'if(!PDFObject.supportsPDFs\x20&&\x20!'+g+'){'+'\x20var\x20iframeTimerId;'+'\x20function\x20startTimer(){'+'\x20\x20\x20\x20iframeTimerId\x20=\x20window.setTimeout(checkIframeLoaded,\x202000);'+'\x20}'+'\x20function\x20checkIframeLoaded(){\x20\x20'+'\x20\x20\x20\x20var\x20iframe\x20=\x20document.getElementById(\x22googleViewer\x22);'+'\x20\x20\x20\x20iframe.src\x20=\x20iframe.src;'+'\x20\x20\x20\x20iframeTimerId\x20=\x20window.setTimeout(checkIframeLoaded,\x202000);'+'\x20}'+'\x20document.getElementById(\x22googleViewer\x22).addEventListener(\x22load\x22,\x20function(){'+'\x20\x20\x20clearInterval(iframeTimerId);\x20'+'\x20});'+'\x20startTimer();'+'}'+'';if(d=='WebFrame')a['set']('url','data:text/html;charset=utf-8,'+encodeURIComponent(''+''+''+''+j+''+''));else d=='HTML'&&a['set']('content','data:text/html;charset=utf-8,'+encodeURIComponent(j));}},TDV['Tour']['Script']['enableVR']=function(){var a=this['getMainViewer'](),b=this['getActivePlayerWithViewer'](a);if(b['get']('class')=='Model3DPlayer'&&!this['get']('vrControllerAvailable'))return;a['set']('viewMode','vr');},TDV['Tour']['Script']['disableVR']=function(){var a=this['getMainViewer']();a['set']('viewMode','standard');},TDV['Tour']['Script']['toggleVR']=function(){var a=this['getMainViewer']();if(a['get']('viewMode')=='standard')this['enableVR']();else this['disableVR']();},TDV['Tour']['Script']['getKey']=function(a){return window[a];},TDV['Tour']['Script']['registerKey']=function(a,b){window[a]=b;},TDV['Tour']['Script']['unregisterKey']=function(a){delete window[a];},TDV['Tour']['Script']['existsKey']=function(a){return a in window;};function _getCurrentActiveModels(){var a=this['getByClassName']('Model3DPlayer'),b=[];for(var c of a){var d=c['get']('model'),e=c['get']('viewerArea');if(d&&d['get']('isLoaded')&&e&&e['get']('visible'))b['push'](d);}return b;}function _onMeasureClick(a){var b=a['source'],c=b['get']('mode');c!='create'&&(b['set']('mode',c=='view'?'edit':'view'),console['log'](b['get']('mode')));}function _forEachMeasureModel3DObject(a,b){if(!a)a=_getCurrentActiveModels['call'](this);a['forEach'](function(c){c['get']('objects')['forEach'](function(d){if(d['get']('class')=='MeasureModel3DObject')b(c,d);}['bind'](this));}['bind'](this));}function _deleteModel3DObjects(a,b){if(!a)a=_getCurrentActiveModels['call'](this);a['forEach'](function(c){var d=c['get']('objects'),e=d['filter'](function(f){return!b['call'](this,f);});e['length']!=d['length']&&(c['set']('objects',e),d['forEach'](function(f){if(b['call'](this,f))this['disposeInstance'](f);}['bind'](this)));}['bind'](this));}function _cloneMeasureModel3DObject(a){var b=this['clone'](a,a['getAttributeNames']()['filter'](function(c){return c!='id';}));return b['set']('data',{'id':a['get']('id')}),b;}TDV['Tour']['Script']['startMeasurement']=function(a,b){if(!a)a=_getCurrentActiveModels['call'](this);var c={},d={},e={};a['forEach'](function(g){var h=g['get']('objects'),i=h['findIndex'](function(n){return n['get']('class')=='MeasureModel3DObject'&&n['get']('mode')=='create';}),j=i!=-0x1;if(j){var k=h[i];if(k['get']('points')['length']==0x0)h['splice'](i,0x1),this['disposeInstance'](k);else k['set']('mode','view');}h['forEach'](function(n){if(n['get']('class')=='MeasureModel3DObject'&&n['get']('mode')=='edit')n['set']('mode','view');}['bind'](this));var l=_cloneMeasureModel3DObject['call'](this,b);this['cloneBindings'](b,l,'modeChange'),l['set']('mode','create'),l['bind']('click',_onMeasureClick,this);var m=g['get']('camera');l['bind']('modeChange',function n(){l['get']('mode')=='create'?(c[g['get']('id')]=g['get']('surfaceSelectionEnabled'),g['set']('surfaceSelectionEnabled',!![]),m['get']('class')=='FlyOverModel3DCamera'&&(d[g['get']('id')]=m['get']('doubleClickAction'),m['set']('doubleClickAction','none'))):(l['unbind']('modeChange',n,this),g['set']('surfaceSelectionEnabled',c[g['get']('id')]),m['get']('class')=='FlyOverModel3DCamera'&&m['set']('doubleClickAction',d[g['get']('id')]),h['forEach'](function(o){var p=e[o['get']('id')];p&&o['set']('rollOverEnabled',p['rollOverEnabled']);}));},this),a['length']>0x0&&l['bind']('distanceChange',function o(){l['unbind']('distanceChange',o,this),f['call'](this,a['filter'](p=>p!=g));},this),h['forEach'](function(p){var q=p['get']('id');q&&(e[q]={'rollOverEnabled':p['get']('rollOverEnabled')},p['set']('rollOverEnabled',!![]));}),h=h['concat'](),h['push'](l),g['set']('objects',h);}['bind'](this));function f(g){this['stopMeasurement'](g);for(var h of g){var i=h['get']('id');h['set']('surfaceSelectionEnabled',c[i]);if(i in d)h['get']('camera')['set']('doubleClickAction',d[i]);}}},TDV['Tour']['Script']['stopMeasurement']=function(a){_deleteModel3DObjects['call'](this,a,function(b){return b['get']('class')=='MeasureModel3DObject'&&b['get']('mode')=='create'&&b['get']('points')['length']==0x0;}),_forEachMeasureModel3DObject['call'](this,a,function(b,c){c['get']('mode')=='create'&&c['set']('mode','edit');});},TDV['Tour']['Script']['toggleMeasurement']=function(a,b){if(!a)a=_getCurrentActiveModels['call'](this);var c=a['some'](function(d){var e=d['get']('objects'),f=e['find'](function(g){return g['get']('class')=='MeasureModel3DObject'&&g['get']('mode')=='create';});return f!=null;});if(!c)this['startMeasurement'](a,b);else this['stopMeasurement'](a);},TDV['Tour']['Script']['cleanAllMeasurements']=function(a){_deleteModel3DObjects['call'](this,a,function(b){return b['get']('class')=='MeasureModel3DObject';});},TDV['Tour']['Script']['cleanSelectedMeasurements']=function(a){_deleteModel3DObjects['call'](this,a,function(b){return b['get']('class')=='MeasureModel3DObject'&&b['get']('mode')=='edit';});},TDV['Tour']['Script']['setMeasurementsVisibility']=function(a,b){_forEachMeasureModel3DObject['call'](this,a,function(c,d){d['set']('enabled',b);});},TDV['Tour']['Script']['toggleMeasurementsVisibility']=function(a){_forEachMeasureModel3DObject['call'](this,a,function(b,c){c['set']('enabled',!c['get']('enabled'));});},TDV['Tour']['Script']['setMeasurementUnits']=function(a){_forEachMeasureModel3DObject['call'](this,null,function(b,c){c['set']('units',a);});}; //# sourceMappingURL=script.js.map //Generated with v2025.1.11, Mon Jun 23 2025 var tour; var devicesUrl = {"mobile":"script_mobile.js","general":"script_general.js"}; (function() { var deviceType = ['general']; var device = TDV.PlayerAPI.device; if(TDV.PlayerAPI.mobile) deviceType.unshift('mobile'); if(device == TDV.PlayerAPI.DEVICE_IPAD) deviceType.unshift('ipad'); else if(device == TDV.PlayerAPI.DEVICE_OCULUS_QUEST_2) deviceType.unshift('quest2'); else if(device == TDV.PlayerAPI.DEVICE_OCULUS_QUEST_3) deviceType.unshift('quest3'); else if(device == TDV.PlayerAPI.DEVICE_PICO_4 || device == TDV.PlayerAPI.DEVICE_PICO_G3 || device == TDV.PlayerAPI.DEVICE_PICO_NEO2 || device == TDV.PlayerAPI.DEVICE_PICO_NEO3) deviceType.unshift('pico'); else if(device == TDV.PlayerAPI.DEVICE_PICO_4_ULTRA) deviceType.unshift('pico_ultra'); else if(device == TDV.PlayerAPI.DEVICE_VIVE_FOCUS || device == TDV.PlayerAPI.DEVICE_PICO_G2) deviceType.unshift('htc'); var url; for(var i=0; i -1; } function getParams(params) { var queryDict = {}; params.split("&").forEach(function(item) {var k = item.split("=")[0], v = decodeURIComponent(item.split("=")[1]);queryDict[k.toLowerCase()] = v}); return queryDict; } document.addEventListener('DOMContentLoaded', onLoad);