if(!Object['hasOwnProperty']('values')){Object['values']=function(c){return Object['keys'](c)['map'](function(d){return c[d];});};}if(!String['prototype']['startsWith']){String['prototype']['startsWith']=function(e,f){f=f||0x0;return this['indexOf'](e,f)===f;};}TDV['EventDispatcher']=function(){this['_handlers']={};};TDV['EventDispatcher']['prototype']['bind']=function(g,h){if(!(g in this['_handlers']))this['_handlers'][g]=[];this['_handlers'][g]['push'](h);};TDV['EventDispatcher']['prototype']['unbind']=function(i,j){if(i in this['_handlers']){var k=this['_handlers'][i]['indexOf'](j);if(k!=-0x1)this['_handlers'][i]['splice'](k,0x1);}};TDV['EventDispatcher']['prototype']['createNewEvent']=function(l){if(typeof Event==='function')return new Event(l);var m=document['createEvent']('Event');m['initEvent'](l,!![],!![]);return m;};TDV['EventDispatcher']['prototype']['dispatchEvent']=function(n){if(n['type']in this['_handlers']){var o=this['_handlers'][n['type']];for(var p=0x0;p0x0)return;}if(w['sourceClassName']=='MediaAudio'||w['sourceClassName']=='Model3DCameraSequence'||this['_isInitialized'])return;this['_isInitialized']=!![];u['unbind']('preloadMediaShow',t,this,!![]);u['unbindOnObjectsOf']('PlayListItem','begin',t,this,!![]);u['unbind']('stateChange',t,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 u=this['player']=TDV['PlayerAPI']['create'](this['_settings']);u['bindOnObject']('rootPlayer','start',v,this,!![]);window['addEventListener']('message',function(B){var C=B['data'];if(C=='pauseTour')C='pause';else if(C=='resumeTour')C='resume';else return;this[C]['apply'](this);}['bind'](this));function v(D){u['unbindOnObject']('rootPlayer','start',v,this,!![]);var E=D['data']['source'];E['get']('data')['tour']=this;var F=window['navigator']['language']||window['navigator']['userLanguage']||'en';var G=E['get']('data')['locales']||{};var H=E['get']('data')['defaultLocale']||F;var I=this['locManager']=new TDV['Tour']['LocaleManager'](E,G,H,this['_settings']['get'](TDV['PlayerSettings']['QUERY_STRING_PARAMETERS']));E['get']('data')['localeManager']=I;var J=function(){var U=E['get']('data');if(!('updateText'in U)){U['updateText']=function(Y){var Z=Y[0x0]['split']('.');if(Z['length']==0x2){var a0=I['trans']['apply'](I,Y);var a1=Y[0x1]||E;if(typeof a1=='string'){var a2=a1['split']('.');a1=E[a2['shift']()];for(var a3=0x0;a30x0&&aa['get']('class')=='Model3D'){E['startMeasurement'](null,a9[0x0]);}break;}}['bind'](this);this['_onBeforeUnload']=function(ab){E['stopTextToSpeech']();};window['addEventListener']('hashchange',this['_onHashChange']);window['addEventListener']('beforeunload',this['_onBeforeUnload']);document['addEventListener']('keyup',this['_onKeyUp']);E['bind']('tourEnded',function(){this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['EVENT_TOUR_ENDED']));},this,!![]);E['bind']('mute_changed',function(){if(this['get']('mute'))this['stopTextToSpeech']();},E,!![]);u['bind']('preloadMediaShow',t,this,!![]);u['bind']('stateChange',t,this,!![]);u['bindOnObjectsOf']('PlayListItem','begin',t,this,!![]);this['dispatchEvent'](this['createNewEvent'](TDV['Tour']['EVENT_TOUR_INITIALIZED']));}};TDV['Tour']['prototype']['pause']=function(){this['_isPaused']=!![];if(!this['_isInitialized'])return;var ac=function(al){var am=al['source'];if(!this['_isPaused'])am['unbind']('stateChange',ac,this);else if(am['get']('state')=='playing'){am['pause']();}};var ad=this['player']['getByClassName']('PlayList');for(var ae=0x0,af=ad['length'];ae0xb4)aF-=0x168;}else{aF=aE['get']('yaw');aG=aE['get']('pitch');}var aM=aB['getPlayListWithItem'](az);if(aM){var aN=function(){aB['setPanoramaCameraWithSpot'](aM,az,aF,aG);};if(!this['_isInitialized']){var aO=function(){az['unbind']('begin',aO,this);aN();};az['bind']('begin',aO,this);}else{aN();}}}}};TDV['Tour']['prototype']['setComponentsVisibilityByTags']=function(aP,aQ,aR){var aS=this['_getRootPlayer']();if(aS!==undefined){var aT=aS['getComponentsByTags'](aP,aR);for(var aU=0x0,aV=aT['length'];aU0x0;};TDV['Tour']['prototype']['_getOrientation']=function(){var bm=this['_getRootPlayer']();if(bm){return bm['get']('orientation');}else if(this['_lockedOrientation']){return this['_lockedOrientation'];}else{return TDV['PlayerAPI']['getOrientation']();}};TDV['Tour']['prototype']['_getParams']=function(bn){var bo={};bn['split']('&')['forEach'](function(bp){var bq=bp['split']('=')[0x0],br=decodeURIComponent(bp['split']('=')[0x1]);bo[bq['toLowerCase']()]=br;});return bo;};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 bs=document['getElementById']('metaViewport');if(bs){var bt=this['_devicesUrl'][this['_device']];var bu=0x1;if(typeof bt=='object'&&this['_orientation']in bt&&this['_orientation']==TDV['PlayerAPI']['ORIENTATION_LANDSCAPE']||this['_device']==TDV['Tour']['DEVICE_GENERAL']){bu=bs['getAttribute']('data-tdv-general-scale')||0.5;}var bv=bs['getAttribute']('content');bv=bv['replace'](/initial-scale=(\d+(\.\d+)?)/,function(bw,bx){return'initial-scale='+bu;});bs['setAttribute']('content',bv);}}};TDV['Tour']['prototype']['_getScriptUrl']=function(){var by=this['_devicesUrl'][this['_device']];if(typeof by=='object'){if(this['_orientation']in by){by=by[this['_orientation']];}}return by;};TDV['Tour']['prototype']['_getDevice']=function(){var bz=TDV['Tour']['DEVICE_GENERAL'];if(!this['_isRemoteSession']&&this['isMobile']()){if(this['isIPad']()&&TDV['Tour']['DEVICE_IPAD']in this['_devicesUrl'])bz=TDV['Tour']['DEVICE_IPAD'];else if(TDV['Tour']['DEVICE_MOBILE']in this['_devicesUrl'])bz=TDV['Tour']['DEVICE_MOBILE'];}return bz;};TDV['Tour']['prototype']['_setMediaFromURL']=function(bA,bB){var bC=this['_getRootPlayer']();var bD=bC['getActivePlayerWithViewer'](bC['getMainViewer']());var bE=bD?bC['getMediaFromPlayer'](bD):undefined;var bF;if('media'in bA){var bG=bA['media'];var bH=Number(bG);bF=isNaN(bH)?this['setMediaByName'](bG):this['setMediaByIndex'](bH-0x1);}else if('media-index'in bA){bF=this['setMediaByIndex'](parseInt(bA['media-index'])-0x1);}else if('media-name'in bA){bF=this['setMediaByName'](decodeURIComponent(bA['media-name']));}if(bF==undefined&&bB!==undefined){bF=this['setMediaByIndex'](0x0);}if(bF!=undefined){var bI=bF['get']('player');var bJ=function(){if('trigger-overlay-name'in bA){this['triggerOverlayByName'](bF['get']('media'),bA['trigger-overlay-name'],bA['trigger-overlay-event']);}if('focus-overlay-name'in bA){this['focusOverlayByName'](bF,bA['focus-overlay-name']);}else if('yaw'in bA||'pitch'in bA){var bN=bC['getPlayListWithItem'](bF);if(bN){switch(bF['get']('class')){case'PanoramaPlayListItem':var bO=parseFloat(bA['yaw'])||undefined;var bP=parseFloat(bA['pitch'])||undefined;var bQ=parseFloat(bA['fov'])||undefined;bC['setPanoramaCameraWithSpot'](bN,bF,bO,bP,bQ);break;case'Model3DPlayListItem':var bR=['yaw','pitch','x','y','z','distance'];var bS={};for(var bT=0x0;bT0x0){cg['set']('objects',ch['concat'](ci));}};if('hide-components-tags'in c3||'hct'in c3)c6['call'](this,this['setComponentsVisibilityByTags'],c3['hide-components-tags']||c3['hct'],![]);if('show-components-tags'in c3||'sct'in c3)c6['call'](this,this['setComponentsVisibilityByTags'],c3['show-components-tags']||c3['sct'],!![]);if('hide-overlays-tags'in c3||'hot'in c3)c6['call'](this,this['setOverlaysVisibilityByTags'],c3['hide-overlays-tags']||c3['hot'],![]);if('show-overlays-tags'in c3||'sot'in c3)c6['call'](this,this['setOverlaysVisibilityByTags'],c3['show-overlays-tags']||c3['sot'],!![]);if('hide-overlays-names'in c3||'hon'in c3)this['setOverlaysVisibilityByName'](decodeURIComponent(c3['hide-overlays-names']||c3['hon'])['split'](','),![]);if('show-overlays-names'in c3||'son'in c3)this['setOverlaysVisibilityByName'](decodeURIComponent(c3['show-overlays-names']||c3['son'])['split'](','),!![]);if('show-object-ids'in c3||'sobjids'in c3)this['setObjectsVisibilityByID'](decodeURIComponent(c3['show-object-ids']||c3['sobjids'])['split'](','),!![]);if('hide-object-ids'in c3||'hobjids'in c3)this['setObjectsVisibilityByID'](decodeURIComponent(c3['hide-object-ids']||c3['hobjids'])['split'](','),![]);if('variant'in c3)this['setModel3DVariant'](decodeURIComponent(c3['variant']));if('measures'in c3)c7['call'](this,decodeURIComponent(c3['measures']['split'](';')));};TDV['Tour']['LocaleManager']=function(cv,cw,cx,cy){TDV['EventDispatcher']['call'](this);this['rootPlayer']=cv;this['locales']={};this['defaultLocale']=cx;this['queryParam']=cy;this['currentLocaleMap']={};this['currentLocaleID']=undefined;for(var cz in cw){this['registerLocale'](cz,cw[cz]);}};TDV['Tour']['LocaleManager']['EVENT_LOCALE_CHANGED']='localeChanged';TDV['Tour']['LocaleManager']['prototype']=new TDV['EventDispatcher']();TDV['Tour']['LocaleManager']['prototype']['registerLocale']=function(cA,cB){var cC=[cA,cA['split']('-')[0x0]];for(var cD=0x0;cD0x2){var cU=typeof arguments[0x2]=='object'?arguments[0x2]:undefined;var cV=arguments;cT=cT['replace'](/\{\{([\w _\-\.]+)\}\}/g,function(cX,cY){if(cS(cY))cY=cV[parseInt(cY)+0x1];else if(cU!==undefined)cY=cU[cY];if(typeof cY=='string')cY=this['currentLocaleMap'][cY]||cY;else if(typeof cY=='function')cY=cY['call'](this['rootPlayer']);return cY!==undefined?cY:'';}['bind'](this));}return cT;};TDV['Tour']['LocaleManager']['prototype']['_parsePropertiesContent']=function(cZ){cZ=cZ['replace'](/(^|\n)#[^\n]*/g,'');var d0={};var d1=cZ['split']('\x0a');for(var d2=0x0,d3=d1['length'];d20x0;};TDV['Tour']['HistoryData']['prototype']['canForward']=function(){return this['pointer']>=0x0&&this['pointer']0x0&&dM['length']>=dO||dw>0x0&&e9['distance']>dw||dP&&ds['testIntersection'](dQ,e9['position']))return;var ea=dC['call'](this,e9['panorama'],e9['yaw']-dH['get']('yaw'),e9['pitch'],e9['width'],e9['height'],e9['anchorX'],e9['anchorY'],e9['opacity'],e9['transparentAreaActive'],e9['image'],dA&&!e9['excludeSurfacePanorama']);var eb=dD['call'](this,e9['panorama'],e9['yaw']-dH['get']('yaw'),e9['backwardYaw'],e9['floorDistance'],!e9['excludeSurfacePanorama']);dM['push'](ea);var ec=dN['findIndex'](function(ef){return ef['get']('panorama')==e9['panorama'];});if(ec!=-0x1)dN['splice'](ec,0x1);dN['push'](eb);var ed=ea['get']('areas')[0x0];if(e9['toolTip'])ed['set']('toolTip',e9['toolTip']);ed['bind']('click',dB['bind'](this,dK,e9['panorama'],ds,!![]),this);eb['bind']('select',dB['bind'](this,dK,e9['panorama'],ds,!![]),this);var ee=e9['actions'];if(ee){dG['call'](this,ea,ee);if('click'in ee)eb['bind']('select',new Function('event',ee['click']),this);}}['bind'](this));dK['set']('overlays',(dK['get']('overlays')||[])['concat'](dM));dK['set']('adjacentPanoramas',dN);var dR=!ds['get']('surfaceSelectionEnabled')||!!dI['excludeSurfaceSelectionModel'];var dS;if(dR){dS=dE['call'](this,dH['get']('x'),dH['get']('y'),dH['get']('z'),dI['width'],dI['height'],dI['anchorX']?dI['anchorX']:0.5,dI['anchorY']?dI['anchorY']:0.5,dI['opacity'],!!dI['transparentAreaActive'],dt['showOnlyHotspotsLineSight'],_getObject(this,dI['image']));dS['set']('id','sprite_'+dH['get']('id'));dS['set']('translationLineColor',dI['translationLineColor']!=null?dI['translationLineColor']:'#ffffff');dS['set']('translationLineOpacity',dI['translationLineOpacity']!=null?dI['translationLineOpacity']:0x1);dS['set']('translationLineVisible',dI['translationLineVisible']!=null?dI['translationLineVisible']:![]);dS['set']('translationLineWidth',dI['translationLineWidth']!=null?dI['translationLineWidth']:0x1);dS['set']('translationLength',dI['translationLength']!=null?dI['translationLength']:dt['showOnlyHotspotsLineSight']&&(dI['translationY']==null||dI['translationY']==0x0)?dI['height']/0x2:undefined);dS['set']('translationX',dI['translationX']!=null?dI['translationX']:0x0);dS['set']('translationY',dI['translationY']!=null&&dI['translationY']!=0x0?dI['translationY']:dt['showOnlyHotspotsLineSight']?0x1:0x0);dS['set']('translationZ',dI['translationZ']!=null?dI['translationZ']:0x0);if(dI['toolTip'])dS['set']('toolTip',dI['toolTip']);dI['sprite']=dS;}else dS=dF['call'](this,dH['get']('x'),dH['get']('y'),dH['get']('z'));if(dI['enabled']!==undefined)dS['set']('enabled',dI['enabled']);dS['get']('data')['location']=dH;var dT=dI['actions'];if(dT){dG['call'](this,dS,dT);}dS['bind']('click',dB['bind'](this,ds,dK,ds,![]),this);dy['push'](dS);}['bind'](this));ds['set']('objects',(ds['get']('objects')||[])['concat'](dy));dt['isInitialized']=!![];function dB(eg,eh,ei,ej){var ek=this['getPlayListsWithMedia'](eg,!![])['filter'](function(er){return this['getMediaFromPlayer'](er['get']('items')[er['get']('selectedIndex')]['get']('player'))==eg;}['bind'](this));if(ek['length']==0x0)return;var el=this['getPlayListItemByMedia'](ek[0x0],eg);var em=el['get']('player')['get']('viewerArea');var en;this['getPlayListsWithMedia'](eh)['forEach'](function(es){var et=this['getPlayListItemByMedia'](es,eh);if(et['get']('player')['get']('viewerArea')==em){if(ej&&el['get']('player')['get']('viewerArea')['get']('translationTransitionEnabled')){eo();et['bind']('begin',eq,this);}es['set']('selectedIndex',es['get']('items')['indexOf'](et));}}['bind'](this));function eo(){en=ei['get']('objects')['filter'](function(eu){var ev=eu['get']('data');return ev&&ev['location']!==undefined;});en['forEach'](function(ew){ew['set']('enabled',![]);});}function ep(){en['forEach'](function(ex){ex['set']('enabled',!![]);});}function eq(ey){ey['source']['unbind']('begin',eq,this);ep();}}function dC(ez,eA,eB,eC,eD,eE,eF,eG,eH,eI,eJ){var eK=_createInstanceFromObj(this,{'class':'HotspotPanoramaOverlay','useHandCursor':!![],'enabledInSurfaceSelection':eJ,'areas':[{'class':'HotspotPanoramaOverlayArea','mapColor':eH?'any':'image'}],'items':[{'class':'FlatHotspotPanoramaOverlayImage','yaw':eA,'pitch':eB,'width':eC,'height':eD,'offsetX':eE*eC,'offsetY':eF*eD,'opacity':eG!=undefined?eG:0x1}]});eK['get']('items')[0x0]['set']('image',eI);return eK;}function dD(eL,eM,eN,eO,eP){return _createInstanceFromObj(this,{'class':'AdjacentPanorama','panorama':'this.'+eL['get']('id'),'backwardYaw':eN,'yaw':eM,'distance':eO,'enabledInSurfaceSelection':eP});}function dE(eQ,eR,eS,eT,eU,eV,eW,eX,eY,eZ,f0){var f1=_createInstanceFromObj(this,{'class':'SpriteModel3DObject','x':eQ,'y':eR,'z':eS,'anchorX':eV,'anchorY':eW,'depthTest':eZ,'transparentAreaActive':eY,'hideBasedOnDistance':!![],'width':eT,'height':eU,'opacity':eX!=undefined?eX:0x1,'data':{}});f1['set']('image',f0);return f1;}function dF(f2,f3,f4){return _createInstanceFromObj(this,{'class':'SurfaceReticleModel3DObject','x':f2,'y':f3,'z':f4,'depthTest':![],'data':{}});}function dG(f5,f6){Object['keys'](f6)['forEach'](function(f7){if(f5['hasEvent'](f7))f5['bind'](f7,new Function('event',f6[f7]),this);}['bind'](this));}}function _findLocationWithPanorama(f8){var f9=this['getByClassName']('Model3D');for(var fa=0x0,fb=f9['length'];fa0x0){var fj=fh[fi];if(fj['get']('viewerArea')!=fg){fh['splice'](fi,0x1);}}return fh;}function _createInstance(fk,fl,fm){var fn=fk['createInstance'](fl);if(fm){fn['set']('id',fm);fk[fm]=fn;}return fn;}function _createInstanceFromObj(fo,fp){return fq(fp);function fq(fr,fs){if(typeof fr=='object'){if('class'in fr){try{fs=_createInstance(fo,fr['class'],fr['id']);}catch(fw){fs=fr;}}else{fs=fr;}}var ft=function(fx,fy){if('set'in fs)fs['set'](fx,fy);else fs[fx]=fy;};for(var fu in fr){var fv=fr[fu];if(typeof fv=='object'&&fv!==null)ft(fu,fq(fv,fs));else if(typeof fv=='string'&&fv['indexOf']('this.')==0x0)ft(fu,fo[fv['replace']('this.','')]);else ft(fu,fv);}return fs;}}TDV['Tour']['Script']=function(){};TDV['Tour']['Script']['assignObjRecursively']=function(fz,fA){for(var fB in fz){var fC=fz[fB];if(typeof fC=='object'&&fC!==null)this['assignObjRecursively'](fz[fB],fA[fB]||(fA[fB]={}));else fA[fB]=fC;}return fA;};TDV['Tour']['Script']['autotriggerAtStart']=function(fD,fE,fF){var fG=function(fH){fE();if(fF==!![])fD['unbind']('change',fG,this);};fD['bind']('change',fG,this);};TDV['Tour']['Script']['changeBackgroundWhilePlay']=function(fI,fJ,fK){var fL=function(){fM['unbind']('stop',fL,this);if(fK==fO['get']('backgroundColor')&&fR==fO['get']('backgroundColorRatios')){fO['set']('backgroundColor',fP);fO['set']('backgroundColorRatios',fQ);}};var fM=fI['get']('items')[fJ];var fN=fM['get']('player');var fO=fN['get']('viewerArea');var fP=fO['get']('backgroundColor');var fQ=fO['get']('backgroundColorRatios');var fR=[0x0];if(fK!=fP||fR!=fQ){fO['set']('backgroundColor',fK);fO['set']('backgroundColorRatios',fR);fM['bind']('stop',fL,this);}};TDV['Tour']['Script']['changeOpacityWhilePlay']=function(fS,fT,fU){var fV=function(){fW['unbind']('stop',fV,this);if(fZ==fY['get']('backgroundOpacity')){fY['set']('opacity',fZ);}};var fW=fS['get']('items')[fT];var fX=fW['get']('player');var fY=fX['get']('viewerArea');var fZ=fY['get']('backgroundOpacity');if(fU!=fZ){fY['set']('backgroundOpacity',fU);fW['bind']('stop',fV,this);}};TDV['Tour']['Script']['changePlayListWithSameSpot']=function(g0,g1){var g2=g0['get']('selectedIndex');if(g2>=0x0&&g1>=0x0&&g2!=g1){var g3=g0['get']('items')[g2];var g4=g0['get']('items')[g1];var g5=g3['get']('player');var g6=g4['get']('player');if((g5['get']('class')=='PanoramaPlayer'||g5['get']('class')=='Video360Player')&&(g6['get']('class')=='PanoramaPlayer'||g6['get']('class')=='Video360Player')){var g7=this['clonePanoramaCamera'](g4['get']('camera'));this['setCameraSameSpotAsMedia'](g7,g3['get']('media'));var g8=g7['get']('initialPosition');if(g8['get']('yaw')==undefined||g8['get']('pitch')==undefined||g8['get']('hfov')==undefined)return;this['startPanoramaWithCamera'](g4['get']('media'),g7);}}};TDV['Tour']['Script']['clone']=function(g9,gb){var gc=this['rootPlayer']['createInstance'](g9['get']('class'));var gd=g9['get']('id');if(gd){var ge=gd+'_'+Math['random']()['toString'](0x24)['substring'](0x2,0xf);gc['set']('id',ge);this[ge]=gc;}for(var gf=0x0;gf0x0){for(var gC=0x0;gC>0x10&0xff,gY>>0x8&0xff,gY&0xff],'finalRGB':[gZ>>0x10&0xff,gZ>>0x8&0xff,gZ&0xff]};gR[gT+gV]=gQ;}else{gU[gV]=gS?gL['get'](gV):gL[gV];if(gV=='yaw'&&gW-gU[gV]>0xb4)gU[gV]=gU[gV]+(gW>gU[gV]?0x168:-0x168);gR[gT+gV]=gQ;}}gQ['set']('duration',(gN||0x0)*0x3e8);gQ['set']('easing',gO||'cubic_in_out');gQ['set']('animationDirection',gP||'normal');gQ['bind']('end',function(){for(var h0 in gU){if(gR[gT+h0]==gQ)delete gR[gT+h0];}this['disposeInstance'](gQ);},this);gQ['bind']('frame',function(){var h1=gQ['getPosition']();for(var h2 in gU){var h3=gU[h2];if(gR[gT+h2]!=gQ)continue;if(typeof h3==='object'&&'color'in h3){var h4=Math['round'](h3['initialRGB'][0x0]+(h3['finalRGB'][0x0]-h3['initialRGB'][0x0])*h1);var h5=Math['round'](h3['initialRGB'][0x1]+(h3['finalRGB'][0x1]-h3['initialRGB'][0x1])*h1);var h6=Math['round'](h3['initialRGB'][0x2]+(h3['finalRGB'][0x2]-h3['initialRGB'][0x2])*h1);h3='#'+((0x1<<0x18)+(h4<<0x10)+(h5<<0x8)+h6)['toString'](0x10)['slice'](0x1);}else{h3=h3+(gM[h2]-h3)*h1;}if(gS)gL['set'](h2,h3);else gL[h2]=h3;}},this);return gQ;};TDV['Tour']['Script']['executeFunctionWhenChange']=function(h7,h8,h9,ha){var hb=undefined;var hc=function(hg){if(hg['data']['previousSelectedIndex']==h8){if(ha)ha['call'](this);if(h9&&hb)hb['unbind']('end',h9,this);h7['unbind']('change',hc,this);}};if(h9){var hd=h7['get']('items')[h8];var he=hd['get']('class');if(he=='PanoramaPlayListItem'||he=='Model3DPlayListItem'){var hf=hd['get']('camera');if(hf!=undefined){hb=hf['get']('initialSequence');if(hb==undefined)hb=hf['get']('idleSequence');}}else{hb=hd['get']('media');}if(hb){hb['bind']('end',h9,this);}}h7['bind']('change',hc,this);};TDV['Tour']['Script']['executeJS']=function(hh){try{eval(hh);}catch(hi){console['log']('Javascript\x20error:\x20'+hi);console['log']('\x20\x20\x20code:\x20'+hh);}};TDV['Tour']['Script']['fixTogglePlayPauseButton']=function(hj){var hk=hj['get']('buttonPlayPause');if(typeof hk!=='undefined'&&hj['get']('state')=='playing'){if(!Array['isArray'](hk))hk=[hk];for(var hl=0x0;hl0x1){hp['sort'](function(hq,hr){var hs=hq['get']('class');var ht=hr['get']('class');if(hs=='Model3DPlayer')return 0x1;else if(ht=='Model3DPlayer')return-0x1;else return 0x0;});}return hp['length']>0x0?hp[0x0]:undefined;};TDV['Tour']['Script']['getActivePlayersWithViewer']=function(hu){var hv=this['getCurrentPlayers']();var hw=hv['length'];var hx=[];while(hw-->0x0){var hy=hv[hw];if(hy['get']('viewerArea')==hu){var hz=hy['get']('class');if(hz=='PanoramaPlayer'&&(hy['get']('panorama')!=undefined||hy['get']('video')!=undefined)||(hz=='VideoPlayer'||hz=='Video360Player')&&hy['get']('video')!=undefined||hz=='PhotoAlbumPlayer'&&hy['get']('photoAlbum')!=undefined||hz=='MapPlayer'&&hy['get']('map')!=undefined||hz=='Model3DPlayer'&&hy['get']('model')!=undefined)hx['push'](hy);}}return hx;};TDV['Tour']['Script']['getCurrentPlayerWithMedia']=function(hA){var hB=undefined;var hC=undefined;switch(hA['get']('class')){case'Panorama':case'LivePanorama':case'HDRPanorama':hB='PanoramaPlayer';hC='panorama';break;case'Video360':hB='PanoramaPlayer';hC='video';break;case'PhotoAlbum':hB='PhotoAlbumPlayer';hC='photoAlbum';break;case'Map':hB='MapPlayer';hC='map';break;case'Video':hB='VideoPlayer';hC='video';break;case'Model3D':hB='Model3DPlayer';hC='media';break;}if(hB!=undefined){var hD=this['getByClassName'](hB);for(var hE=0x0;hE0x1){is['sort'](function(iz,iA){var iB=iz['get']('data')['groupIndex'];var iC=iA['get']('data')['groupIndex'];return iB-iC;});for(var it=0x0,iu=is['length'];it=0x0;--j0){if(j4['indexOf'](j3[j0])==-0x1)j3['splice'](j0,0x1);}}else if(iK=='or'){for(var j0=j4['length']-0x1;j0>=0x0;--j0){var iV=j4[j0];if(j3['indexOf'](iV)==-0x1)j3['push'](iV);}}}}return j3||[];};TDV['Tour']['Script']['getComponentByName']=function(j5){var j6=this['getByClassName']('UIComponent');for(var j7=0x0,j8=j6['length'];j7jf)jf=jh['get']('width');}return jf;}else{return jh['get']('width');}default:return jd['get']('width');}};TDV['Tour']['Script']['getMediaHeight']=function(ji){switch(ji['get']('class')){case'Video360':var jj=ji['get']('video');if(jj instanceof Array){var jk=0x0;for(var jl=0x0;jljk)jk=jm['get']('height');}return jk;}else{return jm['get']('height');}default:return ji['get']('height');}};TDV['Tour']['Script']['getOverlays']=function(jn){switch(jn['get']('class')){case'LivePanorama':case'HDRPanorama':case'Panorama':var jo=jn['get']('overlays')['concat']()||[];var jp=jn['get']('frames');for(var jq=0x0;jq=0x0;--k1){var k2=k0[k1];var k3=k2['get']('player');if(k3!==undefined&&k3['get']('viewerArea')==jV)return!![];}return![];};for(var jY=jW['length']-0x1;jY>=0x0;--jY){if(!jX(jW[jY]))jW['splice'](jY,0x1);}return jW;};TDV['Tour']['Script']['getPlayListWithItem']=function(k4){var k5=this['getByClassName']('PlayList');for(var k6=k5['length']-0x1;k6>=0x0;--k6){var k7=k5[k6];var k8=k7['get']('items');for(var k9=k8['length']-0x1;k9>=0x0;--k9){var ka=k8[k9];if(ka==k4)return k7;}}return undefined;};TDV['Tour']['Script']['getFirstPlayListWithMedia']=function(kb,kc){var kd=this['getPlayListsWithMedia'](kb,kc);return kd['length']>0x0?kd[0x0]:undefined;};TDV['Tour']['Script']['getPlayListItemByMedia']=function(ke,kf){var kg=ke['get']('items');for(var kh=0x0,ki=kg['length'];kh=0x0;--kr){var ks=kq[kr];if(ks['get']('media')!=kn||ko!=undefined&&ks['get']('player')!=ko){kq['splice'](kr,0x1);}}return kq;}else{return[];}};TDV['Tour']['Script']['historyGoBack']=function(kt){var ku=this['get']('data')['history'][kt['get']('id')];if(ku!=undefined){ku['back']();}};TDV['Tour']['Script']['historyGoForward']=function(kv){var kw=this['get']('data')['history'][kv['get']('id')];if(kw!=undefined){kw['forward']();}};TDV['Tour']['Script']['init']=function(){var kx=this['get']('data')['history'];var ky=function(kH){var kI=kH['source'];var kJ=kI['get']('selectedIndex');if(kJ<0x0)return;var kK=kI['get']('id');if(!kx['hasOwnProperty'](kK))kx[kK]=new TDV['Tour']['HistoryData'](kI);kx[kK]['add'](kJ);};var kz=this['getByClassName']('PlayList');for(var kB=0x0,kC=kz['length'];kB=0x0){this['skip3DTransitionOnce'](kN['get']('items')[kO]['get']('player'));}}for(var kB=0x0,kF=kE['length'];kB0x0){var l3=ld['get']('data');if(l3===undefined)continue;var lf=l3['name'];ld['bind']('click',this['sendAnalyticsData']['bind'](this,'Skin','click',lf),this,![]);}}var lg=this['mainPlayList']['get']('items')['concat'](this['getByClassName']('PlayListItem'));var lh={};for(var kW=0x0,kZ=lg['length'];kW0x0){var mv=ms[mt];if(mv['get']('viewerArea')!=mr){ms['splice'](mt,0x1);}}for(mt=0x0;mt=mD){mB-=mF-(mD-m8['get']('actualWidth'));mF=mD-m8['get']('actualWidth');}m8['set']('left',mF);lT();my=mB;};this['bind']('mouseMove',mz,this);this['bind']('mouseUp',function(){this['unbind']('mouseMove',mz,this);},this);},this);lT();};TDV['Tour']['Script']['_initTwinsViewer']=function(mG){function mH(){var n2=mG['get']('actualWidth');mS['get']('children')[0x0]['set']('width',n2);mT['get']('children')[0x0]['set']('width',n2);var n3=mW['get']('left');var n4=typeof n3=='string'?mI(n3):n3;n4+=mW['get']('actualWidth')*0.5;mS['set']('width',mJ(n4));mT['set']('width',mJ(n2-n4));}function mI(n5){return parseFloat(n5['replace']('%',''))/0x64*mG['get']('actualWidth');}function mJ(n6){return n6/mG['get']('actualWidth')*0x64+'%';}function mK(n7){mL(n7['source']);}function mL(n8){var n9=n8==mY?mX:mY;if(mZ&&n8!=mZ||!n8||!n9)return;var na=n9['get']('camera')['get']('initialPosition')['get']('yaw')-n8['get']('camera')['get']('initialPosition')['get']('yaw');n9['setPosition'](n8['get']('yaw')+na,n8['get']('pitch'),n8['get']('roll'),n8['get']('hfov'));}function mM(nb){mZ=nb['source'];}function mN(nc){mO(nc['source']);}function mO(nd){var ne=nd['get']('viewerArea');if(ne==mU){if(mX){mX['get']('camera')['set']('hoverFactor',n0);}mX=nd;mZ=mX;if(mX){n0=mX['get']('camera')['get']('hoverFactor');mX['get']('camera')['set']('hoverFactor',0x0);}}else if(ne==mV){if(mY){mY['get']('camera')['set']('hoverFactor',n1);}mY=nd;mZ=mX;if(mY){n1=mY['get']('camera')['get']('hoverFactor');mY['get']('camera')['set']('hoverFactor',0x0);}}mL(nd);}function mP(nf){var ng=this['getCurrentPlayers']();var nh=ng['length'];while(nh-->0x0){var nj=ng[nh];if(nj['get']('viewerArea')!=nf){ng['splice'](nh,0x1);}}for(nh=0x0;nh0x0&&nl[0x0]['get']('viewMode')=='cardboard';};TDV['Tour']['Script']['isPanorama']=function(nm){return['Panorama','HDRPanorama','LivePanorama','Video360','VideoPanorama']['indexOf'](nm['get']('class'))!=-0x1;};TDV['Tour']['Script']['keepCompVisible']=function(nn,no){var np='keepVisibility_'+nn['get']('id');var nq=this['getKey'](np);if(nq==undefined&&no){this['registerKey'](np,no);}else if(nq!=undefined&&!no){this['unregisterKey'](np);}};TDV['Tour']['Script']['_initItemWithComps']=function(nr,ns,nt,nu,nv,nw,nx,ny){var nz=nr['get']('items')[ns];var nA=nz['get']('media');var nB=nA['get']('loop')==undefined||nA['get']('loop');var nC=ny>0x0;var nD=this['rootPlayer'];var nE=function(nM){var nN=nw?nw['get']('class'):undefined;var nO=undefined;switch(nN){case'FadeInEffect':case'FadeOutEffect':nO=nD['createInstance'](nM?'FadeInEffect':'FadeOutEffect');break;case'SlideInEffect':case'SlideOutEffect':nO=nD['createInstance'](nM?'SlideInEffect':'SlideOutEffect');break;}if(nO){nO['set']('duration',nw['get']('duration'));nO['set']('easing',nw['get']('easing'));if(nN['indexOf']('Slide')!=-0x1)nO['set'](nM?'from':'to',nw['get'](nw['get']('class')=='SlideInEffect'?'from':'to'));}return nO;};var nF=function(){for(var nP=0x0,nQ=nt['length'];nP0x0){this['setComponentVisibility'](nR,!nv,0x0,nE(!nv));}else{var nS='visibility_'+nR['get']('id');if(this['existsKey'](nS)){if(this['getKey'](nS))this['setComponentVisibility'](nR,!![],0x0,nE(!![]));else this['setComponentVisibility'](nR,![],0x0,nE(![]));this['unregisterKey'](nS);}}}nz['unbind']('end',nF,this);if(!nB)nA['unbind']('end',nF,this);};var nG=function(){nz['unbind']('stop',nG,this,!![]);nz['unbind']('stop',nG,this);nz['unbind']('begin',nG,this,!![]);nz['unbind']('begin',nG,this);for(var nT=0x0,nU=nt['length'];nT0x0){var o6=nW+nX+(o5!=undefined?o5['get']('duration'):0x0);nD['setComponentVisibility'](o3,!o4,o6,nE(!o4),o4?'hideEffect':'showEffect',!![]);}};for(var o0=0x0,o1=nt['length'];o00x0){nH('begin',ny,0x0);ny=0x0;}if(nu!=undefined)nH(nu,nx,ny);};TDV['Tour']['Script']['loadFromCurrentMediaPlayList']=function(o7,o8,o9){var oa=o7['get']('selectedIndex');var ob=o7['get']('items')['length'];var oc=(oa+o8)%ob;while(oc<0x0){oc=ob+oc;}if(oa!=oc){if(o9){var od=o7['get']('items')[oc];this['skip3DTransitionOnce'](od['get']('player'));}o7['set']('selectedIndex',oc);}};TDV['Tour']['Script']['mixObject']=function(oe,of){return this['assignObjRecursively'](of,this['copyObjRecursively'](oe));};TDV['Tour']['Script']['downloadFile']=function(og){if((navigator['userAgent']['toLowerCase']()['indexOf']('chrome')>-0x1||navigator['userAgent']['toLowerCase']()['indexOf']('safari')>-0x1)&&!/(iP)/g['test'](navigator['userAgent'])){var oh=document['createElement']('a');oh['href']=og;oh['setAttribute']('target','_blank');if(oh['download']!==undefined){var oi=og['substring'](og['lastIndexOf']('/')+0x1,og['length']);oh['download']=oi;}if(document['createEvent']){var oj=document['createEvent']('MouseEvents');oj['initEvent']('click',!![],!![]);oh['dispatchEvent'](oj);return;}}window['open'](og,'_blank');};TDV['Tour']['Script']['openLink']=function(ok,ol){if(!ok||ok==location['href']){return;}if(!ol)ol='_blank';if(ol=='_top'||ol=='_self'){this['updateDeepLink']({'includeCurrentView':!![],'includeCurrentVisibleHotspots':!![],'includeCurrentMeasureModel3DObjects':!![],'setHash':!![]});}var om=window&&window['process']&&window['process']['versions']&&window['process']['versions']['electron']||navigator&&navigator['userAgent']&&navigator['userAgent']['indexOf']('Electron')>=0x0;if(om&&ol=='_blank'){if(ok['startsWith']('files/')){ok='/'+ok;}if(ok['startsWith']('//')){ok='https:'+ok;}else if(ok['startsWith']('/')){var on=window['location']['href']['split']('/');on['pop']();ok=on['join']('/')+ok;}var oo=ok['split']('.')['pop']()['toLowerCase']();if((['pdf','zip','xls','xlsx']['indexOf'](oo)==-0x1||ok['startsWith']('file://'))&&window['hasOwnProperty']('require')){var op=window['require']('electron')['shell'];op['openExternal'](ok);}else{window['open'](ok,ol);}}else if(om&&(ol=='_top'||ol=='_self')){window['location']=ok;}else{var oq=this['get']('data')['tour'];if(oq['isMobileApp']()&&oq['isIOS']())ok='blank:'+ok;var or=window['open'](ok,ol);or['focus']();}};TDV['Tour']['Script']['startPanoramaWithModel']=function(os,ot){var ou=os['get']('media');var ov=_findLocationWithPanorama['call'](this,ou);if(!ov){ot['call'](this);return;}var ow=ov['get']('model');var ox=os['get']('player')['get']('viewerArea');var oz=this['getActivePlayersWithViewer'](ox);var oB=oz['length']==0x1?oz['find'](function(oI){return this['getMediaFromPlayer'](oI)==ow;}['bind'](this)):undefined;if(oB){ot['call'](this);}else{var oz=_getPlayersWithViewer['call'](this,ox);var oB=oz['find'](function(oJ){return oJ['get']('class')=='Model3DPlayer';});var oC,oD;if(!oB){oB=this['createInstance']('Model3DPlayer');oB['set']('viewerArea',ox);}else{var oE=this['getByClassName']('Model3DPlayListItem');oC=oE['find'](function(oK){return oK['get']('player')==oB;}['bind'](this));}if(!oC){oC=this['createInstance']('Model3DPlayListItem');oC['set']('player',oB);_initModel3DItem['call'](this,oC);}oC['set']('media',ow);var oF=ov['get']('forceModelLoading');ov['set']('forceModelLoading',!![]);var oG=function(){oC['unbind']('begin',oG,this);ot['call'](this);};var oH=function(){os['unbind']('begin',oH,this);ov['set']('forceModelLoading',oF);if(oD)this['disposeInstance'](oD);};os['bind']('begin',oH,this);if(oC['get']('state')=='playing')oG['call'](this);else{oC['bind']('begin',oG,this);oD=this['createInstance']('PlayList');oD['set']('items',[oC]);oD['set']('selectedIndex',0x0);}}};TDV['Tour']['Script']['pauseCurrentPlayers']=function(oL){var oM=this['getCurrentPlayers']();var oN=oM['length'];while(oN-->0x0){var oO=oM[oN];if(oO['get']('state')=='playing'||oO['get']('data')&&oO['get']('data')['playing']||oO['get']('viewerArea')&&oO['get']('viewerArea')['get']('id')==this['getMainViewer']()||oO['get']('camera')&&oO['get']('camera')['get']('idleSequence')&&oO['get']('camera')['get']('timeToIdle')>0x0&&oO['get']('state')=='playing'||oO['get']('class')=='Model3DPlayer'&&oO['get']('model')&&oO['get']('model')['get']('camera')['get']('state')=='playing'){var oP=this['getMediaFromPlayer'](oO);if(oL&&oP&&oP['get']('class')!='Video360'&&'pauseCamera'in oO){oO['pauseCamera']();}else{oO['pause']();}}else{oM['splice'](oN,0x1);}}return oM;};TDV['Tour']['Script']['pauseGlobalAudiosWhilePlayItem']=function(oQ,oR,oS){var oT=function(){if(oQ['get']('selectedIndex')!=oR){this['resumeGlobalAudios']();}};this['pauseGlobalAudios'](oS,!![]);this['executeFunctionWhenChange'](oQ,oR,oT,oT);};TDV['Tour']['Script']['pauseGlobalAudios']=function(oU,oV){this['stopTextToSpeech']();if(window['pausedAudiosLIFO']==undefined)window['pausedAudiosLIFO']=[];var oW=this['getByClassName']('VideoPanoramaOverlay');oW=oW['concat'](this['getByClassName']('QuadVideoPanoramaOverlay'));for(var oY=oW['length']-0x1;oY>=0x0;--oY){var oZ=oW[oY];if(oZ['get']('video')['get']('hasAudio')==![])oW['splice'](oY,0x1);}var p0=this['getByClassName']('Audio')['concat'](oW);var p1={};if(window['currentGlobalAudios']!=undefined)p0=p0['concat'](Object['values'](window['currentGlobalAudios'])['map'](function(p5){if(!p5['allowResume'])p1[p5['audio']['get']('id')]=p5['audio'];return p5['audio'];}));var p2=[];for(var oY=0x0,p3=p0['length'];oY0x0)window['pausedAudiosLIFO']['push'](p2);return p2;};TDV['Tour']['Script']['resumeGlobalAudios']=function(){if(window['pausedAudiosLIFO']==undefined)return;if(window['resumeAudiosBlocked']){if(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 p6=window['pausedAudiosLIFO']['pop']();if(!p6)return;for(var p7=0x0,p8=p6['length'];p7=pd['length']){if(!pe)return;pg=0x0;}ph=pd[pg];pi(ph,!![],pj,!![]);};pj();}};TDV['Tour']['Script']['playGlobalAudioWhilePlayActiveMedia']=function(pk,pl,pm,pn){var po=this['getActiveMediaWithViewer'](this['getMainViewer']());var pp=this['getFirstPlayListWithMedia'](po,!![]);var pq=this['getPlayListItemByMedia'](pp,po);var pr=pp['get']('items')['indexOf'](pq);return this['playGlobalAudioWhilePlay'](pp,pr,pk,pl,pm,pn);};TDV['Tour']['Script']['playGlobalAudioWhilePlay']=function(ps,pt,pu,pv,pw,px){var py=function(pH){if(pH['data']['previousSelectedIndex']==pt){this['stopGlobalAudio'](pu);if(pC){var pI=pB['get']('media');var pJ=pI['get']('audios');pJ['splice'](pJ['indexOf'](pu),0x1);pI['set']('audios',pJ);}ps['unbind']('change',py,this);if(pw)pw();}};var pA=window['currentGlobalAudios'];if(pA&&pu['get']('id')in pA){pu=pA[pu['get']('id')]['audio'];if(pu['get']('state')!='playing'){pu['play']();}return pu;}ps['bind']('change',py,this);var pB=ps['get']('items')[pt];var pC=pB['get']('class')=='PanoramaPlayListItem';if(pC){var pD=pB['get']('media');var pA=(pD['get']('audios')||[])['slice']();if(pu['get']('class')=='MediaAudio'){var pE=this['rootPlayer']['createInstance']('PanoramaAudio');pE['set']('autoplay',![]);pE['set']('audio',pu['get']('audio'));pE['set']('loop',pu['get']('loop'));pE['set']('id',pu['get']('id'));this['cloneBindings'](pu,pE,'start');this['cloneBindings'](pu,pE,'end');this['cloneBindings'](pu,pE,'stateChange');pu=pE;}pA['push'](pu);pD['set']('audios',pA);}var pF=this['playGlobalAudio'](pu,pv,function(){ps['unbind']('change',py,this);if(pw)pw['call'](this);});if(px===!![]){var pG=function(){if(pF['get']('state')=='playing'){this['pauseGlobalAudios']([pF],!![]);}else if(pF['get']('state')=='stopped'){this['resumeGlobalAudios']();pF['unbind']('stateChange',pG,this);}};pF['bind']('stateChange',pG,this);}return pF;};TDV['Tour']['Script']['playGlobalAudio']=function(pK,pL,pM,pN){var pO=function(){pK['unbind']('end',pO,this);this['stopGlobalAudio'](pK);if(pM)pM['call'](this);};pK=this['getGlobalAudio'](pK);var pP=window['currentGlobalAudios'];if(!pP){pP=window['currentGlobalAudios']={};}pP[pK['get']('id')]={'audio':pK,'asBackground':pN||![],'allowResume':pL};if(pK['get']('state')=='playing'){return pK;}if(!pK['get']('loop')){pK['bind']('end',pO,this);}pK['play']();return pK;};TDV['Tour']['Script']['restartTourWithoutInteraction']=function(pQ){var pR=-0x1;this['bind']('userInteraction',pS['bind'](this),this);pS();function pS(){if(pR!=-0x1)clearTimeout(pR);pR=setTimeout(function(){var pT=this['get']('data')['tour'];if(pT){if(this['isCardboardViewMode']())location['reload']();else pT['reload']();}}['bind'](this),pQ*0x3e8);}};TDV['Tour']['Script']['resumePlayers']=function(pU,pV){for(var pW=0x0;pW0x0){var qn=setTimeout(function(){if(window[ql]instanceof Array){var qq=window[ql];var qr=qq['indexOf'](qn);qq['splice'](qr,0x1);if(qq['length']==0x0){delete window[ql];}}else{delete window[ql];}qk();},qf);if(window['hasOwnProperty'](ql)){window[ql]=[window[ql],qn];}else{window[ql]=qn;}}else{qk();}};TDV['Tour']['Script']['setDirectionalPanoramaAudio']=function(qs,qt,qu,qv){qs['set']('yaw',qt);qs['set']('pitch',qu);qs['set']('maximumAngle',qv);};TDV['Tour']['Script']['setLocale']=function(qw){this['stopTextToSpeech']();var qx=this['get']('data')['localeManager'];if(qx)this['get']('data')['localeManager']['setLocale'](qw);else{this['get']('data')['defaultLocale']=qw;this['get']('data')['forceDefaultLocale']=!![];}};TDV['Tour']['Script']['setEndToItemIndex']=function(qy,qz,qA){var qB=function(){if(qy['get']('selectedIndex')==qz){var qC=qy['get']('items')[qA];this['skip3DTransitionOnce'](qC['get']('player'));qy['set']('selectedIndex',qA);}};this['executeFunctionWhenChange'](qy,qz,qB);};TDV['Tour']['Script']['setMapLocation']=function(qD,qE){var qF=function(){qD['unbind']('stop',qF,this);qG['set']('mapPlayer',null);};qD['bind']('stop',qF,this);var qG=qD['get']('player');qG['set']('mapPlayer',qE);};TDV['Tour']['Script']['setMainMediaByIndex']=function(qH){var qI=undefined;if(qH>=0x0&&qH0x0){r2=r5[0x0];r3=this['getPlayListItemIndexByMedia'](r2,qY);}if(!r2)qY=!![];}if(qY===!![]){var ra=this['getActiveMediaWithViewer'](r4);if(ra){r2=this['getFirstPlayListWithMedia'](ra,!![]);var r9=this['getPlayListItemByMedia'](r2,ra);r3=r2['get']('items')['indexOf'](r9);}else{qY=null;}}var rb=[];var rc=function(){var rk=rb['concat']();var rl=![];var rm=function(rp){var rq=rp['source']['get']('state');if(rq=='playing'){if(!rl){rl=!![];this['pauseGlobalAudios'](rb,!![]);}}else if(rq=='stopped'){rk['splice'](rk['indexOf'](rp['source']),0x1);if(rk['length']==0x0){this['resumeGlobalAudios']();}rp['source']['unbind']('stateChange',rm,this);}}['bind'](this);for(var rn=0x0,ro=rb['length'];rn0x0&&sj['get']('movements')[si-0x1]['get']('class')=='TargetPanoramaCameraMovement'){var su=sk['get']('initialPosition');var sv=su['get']('yaw');var sw=su['get']('pitch');var sx=su['get']('hfov');var sy=sj['get']('movements')[si-0x1];var sz=sy['get']('targetYaw');var sA=sy['get']('targetPitch');var sB=sy['get']('targetHfov');if(sz!==undefined)su['set']('yaw',sz);if(sA!==undefined)su['set']('pitch',sA);if(sB!==undefined)su['set']('hfov',sB);var sC=function(sF){su['set']('yaw',sv);su['set']('pitch',sw);su['set']('hfov',sx);se['unbind']('end',sC,this);};se['bind']('end',sC,this);}sj['set']('movementIndex',si);}}if(sc){sb['unbind']('begin',s2,this);sc['unbind']('stateChange',s1,this);for(var sD=0x0;sD0x1)&&(sE==undefined||sE==sb['get']('media'))){s8['set']('selectedIndex',sa);}if(rW!=s8)s8['unbind']('change',s3,this);}else{sf['set']('visible',sg);}s8=undefined;};if(!rY){var s6=rW['get']('selectedIndex');var s7=s6!=-0x1?rW['get']('items')[rW['get']('selectedIndex')]['get']('player'):this['getActivePlayerWithViewer'](this['getMainViewer']());if(s7){rY=this['getMediaFromPlayer'](s7);}}var s8=undefined;if(rY){var s9=this['getPlayListsWithMedia'](rY,!![]);if(s9['indexOf'](rW)!=-0x1){s8=rW;}else if(s9['indexOf'](this['mainPlayList'])!=-0x1){s8=this['mainPlayList'];}else if(s9['length']>0x0){s8=s9[0x0];}}if(!s8){rW['set']('selectedIndex',rX);return;}var sa=s8['get']('selectedIndex');var sb=rW['get']('items')[rX];var sc=sb['get']('player');var sd=this['getMediaFromPlayer'](sc);if(rW['get']('selectedIndex')==rX&&sd==sb['get']('media')||sa==-0x1){return;}if(rW['get']('selectedIndex')==rX&&sd!=sb['get']('media'))rW['set']('selectedIndex',-0x1);var se=s8['get']('items')[sa];var sf=sc['get']('viewerArea');var sg=sf['get']('visible');var sh=sf==se['get']('player')['get']('viewerArea');if(sh){if(rW!=s8){s8['set']('selectedIndex',-0x1);s8['bind']('change',s3,this);}}else{sf['set']('visible',!![]);}var si=-0x1;var sj=undefined;var sk=se['get']('camera');if(sk){sj=sk['get']('initialSequence');if(sj){si=sj['get']('movementIndex');}}rW['set']('selectedIndex',rX);var sl=[];var sm=function(sG){var sH=sc['get'](sG);if(sH==undefined)return;if(Array['isArray'](sH))sl=sl['concat'](sH);else sl['push'](sH);};sm('buttonStop');for(var sn=0x0;sn0x0){sY[t1['get']('id')]=setTimeout(t2['bind'](this,t1),sV);}else{t2['call'](this,t1);}}function t2(t3){var t4=t3['get']('id');var t5=sY[t4];if(t5){clearTimeout(t5);delete t5[t4];}var t6=t3['get']('class')=='PanoramaModel3DLocation'?t3['get']('data')['sprite']:t3;if(!t6)return;var t7=sU=='toggle'?!t6['get']('enabled'):sU;t6['set']('enabled',t7);if(t3['get']('class')=='PanoramaModel3DLocation')t3['get']('data')['enabled']=t7;var t9=t3['get']('data');if(t7&&t9&&'group'in t9){var ta=this['getOverlaysByGroupname'](t9['group']);for(var tb=0x0,tc=ta['length'];tb=0x0&&tD[tC]==ty&&tE['get']('isLoaded')){tF['set']('yaw',tF['get']('yaw')%0x168);var tG=ty['get']('player')['get']('viewerArea');var tH=this['getActiveMediaWithViewer'](tG);if(tH['get']('class')['indexOf']('Panorama')!=-0x1){if(tA!==undefined){tA*=0x3e8;var tI=tG['get']('modelToPanoramaTraslationDuration');var tJ=tG['get']('panoramaToModelTraslationDuration');var tK=()=>{clearTimeout(tL);tx['unbind']('change',tK,this);tG['set']('modelToPanoramaTraslationDuration',tI);tG['set']('panoramaToModelTraslationDuration',tJ);};var tL=setTimeout(tK,tA);tx['bind']('change',tK,this);tG['set']('modelToPanoramaTraslationDuration',tA);tG['set']('panoramaToModelTraslationDuration',tA);}tF['setStoredPosition'](tz);}else{if(tF['get']('state')=='playing')tF['stop']();this['createTween'](tF,tz,tA,tB)['play']();}}else{if(tF['get']('state')=='playing')tF['stop']();this['startModel3DWithCameraSpot'](ty,tz);}};TDV['Tour']['Script']['setModel3DCameraSequence']=function(tM,tN,tO){var tP=tM['get']('selectedIndex');var tQ=tM['get']('items');var tR=tN['get']('media');if(tQ[tP]==tN&&tR['get']('isLoaded')){tO['play']();}else{var tS=tO['get']('movements');var tT={};if(tS['length']>0x0){var tU=tS[0x0];if(tU['get']('class')=='TargetModel3DCameraMovement'){var tV=['x','y','z','yaw','pitch','fov','distance'];for(var tW in tV){tW=tV[tW];var tX=tU['get']('target'+tW['charAt'](0x0)['toUpperCase']()+tW['slice'](0x1));if(tX!==undefined){tT[tW]=tX;}}}}this['startModel3DWithCameraSpot'](tN,tT);var tY=function(){tN['unbind']('begin',tY,this);tO['play']();};tN['bind']('begin',tY,this);}};TDV['Tour']['Script']['setPanoramaCameraWithCurrentSpot']=function(tZ,u0){var u1=this['getActiveMediaWithViewer'](u0||this['getMainViewer']());if(u1!=undefined&&(u1['get']('class')['indexOf']('Panorama')!=-0x1||u1['get']('class')=='Video360')){var u2=tZ['get']('media');var u3=this['clonePanoramaCamera'](tZ['get']('camera'));this['setCameraSameSpotAsMedia'](u3,u1);this['startPanoramaWithCamera'](u2,u3);}};TDV['Tour']['Script']['setPanoramaCameraWithSpot']=function(u4,u5,u6,u7,u8){var u9=u5['get']('media');var ua=u5['get']('player');if(u4['get']('items')[u4['get']('selectedIndex')]==u5||ua['get']('rendererPanorama')==u9){if(u6===undefined)u6=ua['get']('yaw');if(u7===undefined)u7=ua['get']('pitch');if(u8===undefined)u8=ua['get']('hfov');ua['moveTo'](u6,u7,ua['get']('roll'),u8);}else{var ub=this['clonePanoramaCamera'](u5['get']('camera'));var uc=ub['get']('initialPosition');if(u6!==undefined)uc['set']('yaw',u6);if(u7!==undefined)uc['set']('pitch',u7);if(u8!==undefined)uc['set']('hfov',u8);this['startPanoramaWithCamera'](u9,ub);}};TDV['Tour']['Script']['setSurfaceSelectionHotspotMode']=function(ud){var ue=this['getByClassName']('HotspotPanoramaOverlay');var uf=this['getByClassName']('PanoramaPlayer');var ug=ud=='hotspotEnabled';var uh=ud=='circleEnabled';var ui=!!ud;ue['forEach'](function(uj){var uk=uj['get']('data');if(uk&&uk['hasPanoramaAction']==!![])uj['set']('enabledInSurfaceSelection',ug);});uf['forEach'](function(ul){ul['set']('adjacentPanoramaPositionsEnabled',uh);ul['set']('surfaceSelectionEnabled',ui);});this['get']('data')['surfaceSelectionHotspotMode']=ud;};TDV['Tour']['Script']['setValue']=function(um,un,uo){try{if('set'in um)um['set'](un,uo);else um[un]=uo;}catch(up){}};TDV['Tour']['Script']['setStartTimeVideo']=function(uq,ur){var us=this['getPlayListItems'](uq);var ut=[];var uu=function(){for(var uy=0x0;uy=0x0)clearTimeout(uT);uO['bind']('rollOut',uV,this);};var uV=function(){var v0=function(){uS['call'](this,![]);};uO['unbind']('rollOut',uV,this);uT=setTimeout(v0['bind'](this),uQ);};uO['bind']('rollOver',uU,this);}};TDV['Tour']['Script']['setObjectsVisibilityByTags']=function(v1,v2,v3,v4){var v5=this['_getObjectsByTags'](v2,['InnerModel3DObject'],'tags2Objects',v3)['filter'](function(v6){return v1['get']('objects')['indexOf'](v6)!=-0x1;}['bind'](this));this['setObjectsVisibility'](v5,v4);};TDV['Tour']['Script']['setObjectsVisibilityByID']=function(v7,v8,v9){var va=v8['map'](function(vb){return this['getModel3DInnerObject'](v7,vb);}['bind'](this));this['setObjectsVisibility'](va,v9);};TDV['Tour']['Script']['setObjectsVisibility']=function(vc,vd){vc['forEach'](function(ve){if(ve)ve['set']('enabled',vd==='toggle'?!ve['get']('enabled'):vd);}['bind'](this));};TDV['Tour']['Script']['getModel3DInnerObject']=function(vf,vg){var vh=vf['get']('objects');for(var vi=0x0,vj=vh['length'];vivK?vJ:vK;vI+=vy('headerPaddingTop')+vy('headerPaddingBottom');}var vL=vF-vy('bodyPaddingLeft')-vy('bodyPaddingRight')-vy('paddingLeft')-vy('paddingRight');var vM=vG-vI-vH-vy('bodyPaddingTop')-vy('bodyPaddingBottom')-vy('paddingTop')-vy('paddingBottom');var vN=vL/vM;var vO=vB/vC;if(vN>vO){vF=vM*vO+vy('bodyPaddingLeft')+vy('bodyPaddingRight')+vy('paddingLeft')+vy('paddingRight');}else{vG=vL/vO+vI+vH+vy('bodyPaddingTop')+vy('bodyPaddingBottom')+vy('paddingTop')+vy('paddingBottom');}if(vF>vz*vD){vF=vz*vD;}if(vG>vA*vE){vG=vA*vE;}vl['set']('width',vF);vl['set']('height',vG);vl['set']('x',(vz-vy('actualWidth'))*0.5);vl['set']('y',(vA-vy('actualHeight'))*0.5);};if(vq){this['executeFunctionWhenChange'](vn,0x0,vt);}var vv=vm['get']('class');var vw=vv=='Video'||vv=='Video360';vn['set']('selectedIndex',0x0);if(vw){this['bind']('resize',vu,this);vu();vn['get']('items')[0x0]['get']('player')['play']();}else{vl['set']('width',vo);vl['set']('height',vp);}window['resumeAudiosBlocked']=!![];this['getMainViewer']()['set']('toolTipEnabled',![]);var vx=this['pauseCurrentPlayers'](!![]);vl['bind']('close',vs,this);vl['show'](this,!![]);};TDV['Tour']['Script']['showPopupImage']=function(vQ,vR,vS,vT,vU,vV,vW,vX,vY,vZ,w0,w1){var w2=![];var w3=function(){wl['unbind']('loaded',w6,this);wa['call'](this);};var w4=function(){wl['unbind']('click',w4,this);if(wp!=undefined){clearTimeout(wp);}};var w5=function(){setTimeout(wf,0x0);};var w6=function(){this['unbind']('click',w3,this);wk['set']('visible',!![]);wf();wm['set']('visible',!![]);wl['unbind']('loaded',w6,this);wl['bind']('resize',w5,this);wp=setTimeout(w7['bind'](this),0xc8);};var w7=function(){wp=undefined;if(vX){wl['bind']('click',w4,this);w9['call'](this);}wl['bind']('userInteractionStart',wg,this);wl['bind']('userInteractionEnd',wh,this);wl['bind']('backgroundClick',wa,this);if(vR){wl['bind']('click',wd,this);wl['set']('imageCursor','hand');}wm['bind']('click',wa,this);if(w0)w0['call'](this);};var w8=function(){if(vX&&wp){clearTimeout(wp);wp=undefined;}};var w9=function(){if(vX){w8();wp=setTimeout(wa['bind'](this),vX);}};var wa=function(){this['getMainViewer']()['set']('toolTipEnabled',!![]);w2=!![];if(wp)clearTimeout(wp);if(wq)clearTimeout(wq);if(vX)w4();if(vV&&vV['get']('duration')>0x0){vV['bind']('end',wc,this);}else{setTimeout(()=>{wb['call'](this);},0x0);}wl['set']('visible',![]);wm['set']('visible',![]);wk['set']('visible',![]);this['unbind']('click',w3,this);wl['unbind']('backgroundClick',wa,this);wl['unbind']('userInteractionStart',wg,this);wl['unbind']('userInteractionEnd',wh,this,!![]);wl['unbind']('resize',w5,this);if(vR){wl['unbind']('click',wd,this);wl['set']('cursor','default');}wm['unbind']('click',wa,this);this['resumePlayers'](wo,vY==null||vZ);if(vZ){this['resumeGlobalAudios']();}if(vY){this['stopGlobalAudio'](vY);}};var wb=function(){wl['set']('image',null);if(w1)w1['call'](this);};var wc=function(){vV['unbind']('end',wc,this);wb['call'](this);};var wd=function(){wl['set']('image',we()?vQ:vR);};var we=function(){return wl['get']('image')==vR;};var wf=function(){var wr=wl['get']('actualWidth')-wl['get']('imageLeft')-wl['get']('imageWidth')+0xa;var ws=wl['get']('imageTop')+0xa;if(wr<0xa)wr=0xa;if(ws<0xa)ws=0xa;wm['set']('right',wr);wm['set']('top',ws);};var wg=function(){w8();if(wq){clearTimeout(wq);wq=undefined;}else{wm['set']('visible',![]);}};var wh=function(){w9['call'](this);if(!w2){wq=setTimeout(wi,0x12c);}};var wi=function(){wq=undefined;wm['set']('visible',!![]);wf();};var wj=function(wt){var wu=wt['get']('data');if(wu&&'extraLevels'in wu){var wv=this['rootPlayer']['createInstance'](wt['get']('class'));var ww=wu['extraLevels'];for(var wx=0x0;wxxB==_getObject(this,_getObject(this,xF)['get']('data')['panorama'])));if(xC&&!xC['get']('forceModelLoading')){xC['set']('forceModelLoading',!![]);xl['bind']('begin',function xG(){xl['unbind']('begin',xG,this);xC['set']('forceModelLoading',![]);},this);}}};TDV['Tour']['Script']['startPanoramaWithCamera']=function(xH,xI){var xJ=this['getByClassName']('PlayList');if(xJ['length']==0x0)return;var xK=window['currentPanoramasWithCameraChanged']==undefined||!(xH['get']('id')in window['currentPanoramasWithCameraChanged']);var xL=[];for(var xN=0x0,xO=xJ['length'];xN0x0){if(window['currentPanoramasWithCameraChanged']==undefined){window['currentPanoramasWithCameraChanged']={};}var xV=xH['get']('id');window['currentPanoramasWithCameraChanged'][xV]=xL;var xW=function(){if(xV in window['currentPanoramasWithCameraChanged']){delete window['currentPanoramasWithCameraChanged'][xV];}for(var xY=0x0;xY=0x0?this['mainPlayList']['get']('items')[yx]['get']('media'):this['getActiveMediaWithViewer'](this['getMainViewer']());if(yz!=undefined){var yB=yz['get']('data');if(yB&&yB['label']){if(yx>=0x0){var yD=this['mainPlayList']['get']('items')['reduce'](function(yY,yZ){var z0=yZ['get']('media')['get']('data');return z0&&yB['label']==z0['label']?yY+0x1:yY;},0x0);if(yD!=0x1)yy='#media='+(yx+0x1);}if(!yy)yy='#media-name='+encodeURIComponent(yB['label']);}else if(yx>=0x0){yy='#media='+(yx+0x1);}}if(yz){if(yw['includeCurrentView']===!![]){var yE=this['getActivePlayerWithViewer'](this['getMainViewer']());if(yE){switch(yE['get']('class')){case'PanoramaPlayer':var yF=yE['get']('yaw');var yG=yE['get']('pitch');var yH=yE['get']('hfov');if(!isNaN(yF)&&!isNaN(yG))yy+='&yaw='+yF['toFixed'](0x2)+'&pitch='+yG['toFixed'](0x2);if(!isNaN(yH))yy+='&fov='+yH['toFixed'](0x2);break;case'Model3DPlayer':var yI=yE['get']('model');var yJ=yI['get']('camera');var yK=[];yK['push']('yaw='+yJ['get']('yaw')['toFixed'](0x2));yK['push']('pitch='+yJ['get']('pitch')['toFixed'](0x2));yK['push']('x='+yJ['get']('x')['toFixed'](0x5));yK['push']('y='+yJ['get']('y')['toFixed'](0x5));yK['push']('z='+yJ['get']('z')['toFixed'](0x5));if(yJ['get']('class')=='OrbitModel3DCamera')yK['push']('distance='+yJ['get']('distance')['toFixed'](0x5));yy+='&'+yK['join']('&');break;}}}if(yw['includeCurrentVisibleHotspots']===!![]){var yL=this['getOverlays'](yz);var yM=[];var yN=[];for(var yO=0x0,yD=yL['length'];yO0x0)yy+='&son='+yM['join'](',');if(yN['length']>0x0)yy+='&hon='+yN['join'](',');if(yz['get']('class')=='Model3D'){var yT=yz['get']('variant');if(yT)yy+='&variant='+yT;var yU=yz['get']('objects');var yV=[];var yW=[];yU['forEach'](function(z1){if(z1['get']('class')=='InnerModel3DObject')(z1['get']('enabled')?yV:yW)['push'](z1['get']('objectId'));});if(yV['length']>0x0)yy+='&sobjids='+yV['join'](',');if(yW['length']>0x0)yy+='&hobjids='+yW['join'](',');}}if(yw['includeCurrentMeasureModel3DObjects']===!![]&&yz['get']('class')=='Model3D'){var yX=[];yz['get']('objects')['forEach'](function(z2){if(z2['get']('class')=='MeasureModel3DObject'&&z2['get']('mode')!='create'){var z3=[z2['get']('data')['id'],z2['get']('x'),z2['get']('y'),z2['get']('z')];z2['get']('points')['forEach'](function(z4){z3['push'](z4['get']('x'),z4['get']('y'),z4['get']('z'));});if(z3['length']>0x4){yX['push'](z3['join'](','));}}});if(yX['length']>0x0)yy+='&measures='+yX['join']('+');}}if(yy&&yw['setHash']===!![]){location['hash']=yy;}return yy;};TDV['Tour']['Script']['updateMediaLabelFromPlayList']=function(z5,z6,z7){var z8=function(){var za=z5['get']('selectedIndex');if(za>=0x0){var zb=function(){ze['unbind']('begin',zb);zc(za);};var zc=function(zf){var zg=ze['get']('media');var zh=zg['get']('data');var zi=zh!==undefined?zh['description']:undefined;zd(zi);};var zd=function(zj){if(zj!==undefined){z6['set']('html',''+zj+'');}else{z6['set']('html','');}var zk=z6['get']('html');z6['set']('visible',zk!==undefined&&zk);};var ze=z5['get']('items')[za];if(z6['get']('html')){zd('Loading...');ze['bind']('begin',zb);}else{zc(za);}}};var z9=function(){z6['set']('html',undefined);z5['unbind']('change',z8,this);z7['unbind']('stop',z9,this);};if(z7){z7['bind']('stop',z9,this);}z5['bind']('change',z8,this);z8();};TDV['Tour']['Script']['updateVideoCues']=function(zl,zm){var zn=zl['get']('items')[zm];var zo=zn['get']('media');if(zo['get']('cues')['length']==0x0)return;var zp=zn['get']('player');var zq=[];var zr=function(){if(zl['get']('selectedIndex')!=zm){zo['unbind']('cueChange',zs,this);zl['unbind']('change',zr,this);}};var zs=function(zt){var zu=zt['data']['activeCues'];for(var zv=0x0,zw=zq['length'];zvzp['get']('currentTime')||zx['get']('endTime')0x0){zO=this['mixObject'](zO||{},{'theme':{'window':{'width':undefined,'left':zP,'right':zP}}});}}var zQ=this['get']('data')['textToSpeechConfig']['speechOnQuizQuestion']&&!!zN['title'];if(zQ)this['textToSpeech'](zN['title'],zI);zL=zK['showQuestion'](zI,zO);zL['then'](function(zR){if(zQ)this['stopTextToSpeech']();this['resumePlayers'](zM,!![]);}['bind'](this));}return zL;};TDV['Tour']['Script']['quizShowScore']=function(zS){var zT=this['get']('data');var zU=zT['quiz'];if(zU){if(this['get']('isMobile')){zS=zS||{};zS=this['mixObject'](zS,zT[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig']);}return zU['showScore'](zS);}};TDV['Tour']['Script']['quizShowTimeout']=function(zV,zW){var zX=this['get']('data');var zY=zX['quiz'];if(zY){if(this['get']('isMobile')){zW=zW||{};zW=this['mixObject'](zW,zX[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig']);}zY['showTimeout'](zV,zW);}};TDV['Tour']['Script']['stopTextToSpeech']=function(zZ){if(window['speechSynthesis']&&(zZ==undefined||this['t2sLastID']==zZ)){var A0=window['speechSynthesis'];if(A0['speaking']){A0['cancel']();}this['t2sLastID']=undefined;}};TDV['Tour']['Script']['getStateTextToSpeech']=function(A1){return this['t2sLastID']==A1?'playing':'stopped';};TDV['Tour']['Script']['textToSpeech']=function(A2,A3,A4){if(this['get']('mute')){return;}var A5=this['get']('data');var A6=A5['disableTTS']||![];if(A6)return;if(A3!=undefined&&this['t2sLastID']!=A3||A3==undefined){A4=A4||0x0;if(this['t2sLastID']&&A4>this['t2sLastPriority']){return;}var A7=A5['tour'];var A8=A5['textToSpeechConfig'];var A9=A5['localeManager']['currentLocaleID'];if(window['speechSynthesis']){var Aa=window['speechSynthesis'];if(Aa['speaking']){Aa['cancel']();}var Ab=new SpeechSynthesisUtterance(A2);if(A9)Ab['lang']=A9;var Ac;if(A8){Ab['volume']=A8['volume'];Ab['pitch']=A8['pitch'];Ab['rate']=A8['rate'];if(A8['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}Ab['onend']=function(){this['t2sLastID']=null;if(Ac)clearInterval(Ac);if(A8['stopBackgroundAudio'])this['resumeGlobalAudios']();}['bind'](this);if(navigator['userAgent']['indexOf']('Chrome')!=-0x1&&!this['get']('isMobile')){Ac=setInterval(function(){Aa['pause']();Aa['resume']();},0xbb8);}Aa['speak'](Ab);this['t2sLastPriority']=A4;this['t2sLastID']=A3;}else if(A7['isMobileApp']()){if(!A7['isIOS']()){var Ad=function(Ae,Af){var Ag={'command':'tts','type':Ae};if(Af)Ag=this['mixObject'](Ag,Af);android['sendJSON'](JSON['stringify'](Ag));}['bind'](this);android['onTTSEnd']=function(){this['t2sLastID']=null;if(A8['stopBackgroundAudio'])this['resumeGlobalAudios']();android['onTTSEnd']=undefined;}['bind'](this);Ad('stop');if(A8){Ad('init',{'volume':A8['volume'],'pitch':A8['pitch'],'rate':A8['rate'],'language':A9});if(A8['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}Ad('play',{'text':A2,'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(Ah){var Ai=Ah['get']('class');var Aj;if(Ai=='HTMLText'){var Ak=Ah['get']('html');if(Ak){Aj=this['htmlToPlainText'](Ak,{'linkProcess':function(Al,Am){return Am;}});}}else if(Ai=='BaseButton'){Aj=Ah['get']('label');}else if(Ai=='Label'){Aj=Ah['get']('text');}if(Aj){this['textToSpeech'](Aj,Ah['get']('id'));}};TDV['Tour']['Script']['toggleTextToSpeechComponent']=function(An){var Ao=An['get']('id');if(this['getStateTextToSpeech'](Ao)!='playing')this['textToSpeechComponent'](An);else this['stopTextToSpeech'](Ao);};TDV['Tour']['Script']['_initTTSTooltips']=function(){function Ap(Ar){var As=Ar['source'];this['textToSpeech'](As['get']('toolTip'),As['get']('id'),0x1);}function Aq(At){var Au=At['source'];this['stopTextToSpeech'](Au['get']('id'));}setTimeout(function(){var Av=this['getByClassName']('UIComponent');for(var Aw=0x0,Ax=Av['length'];Aw/i);if(AP){AO=AO['substring'](0x0,AP['index']);}const AQ=AO['match'](/]*>/i);if(AQ){AO=AO['substring'](AQ['index']+AQ[0x0]['length'],AO['length']);}AO=AO['replace'](/<(script|style)( [^>]*)*>((?!<\/\1( [^>]*)*>).)*<\/\1>/gi,'');AO=AO['replace'](/<(\/)?((?!h[1-6]( [^>]*)*>)(?!img( [^>]*)*>)(?!a( [^>]*)*>)(?!ul( [^>]*)*>)(?!ol( [^>]*)*>)(?!li( [^>]*)*>)(?!p( [^>]*)*>)(?!div( [^>]*)*>)(?!td( [^>]*)*>)(?!br( [^>]*)*>)[^>\/])[^<>]*>/gi,'');AO=AO['replace'](/]*)>/gi,function(AW,AX){var AY='';var AZ='';var B0=/src="([^"]*)"/i['exec'](AX);var B1=/alt="([^"]*)"/i['exec'](AX);if(B0!==null){AY=B0[0x1];}if(B1!==null){AZ=B1[0x1];}if(typeof AG==='function'){return AG(AY,AZ);}if(AZ===''){return'![image]\x20('+AY+')';}return'!['+AZ+']\x20('+AY+')';});function AR(){return function(B2,B3,B4,B5){var B6=0x0;if(B4&&/start="([0-9]+)"/i['test'](B4)){B6=/start="([0-9]+)"/i['exec'](B4)[0x1]-0x1;}var B7='

'+B5['replace'](/]*>(((?!]*>)(?!<\/li>).)*)<\/li>/gi,function(B8,B9){var Ba=0x0;var Bb=B9['replace'](/(^|(
))(?!

)/gi,function(){if(B3==='o'&&Ba===0x0){B6+=0x1;Ba+=0x1;return''+B6+AE(AL,AK-String(B6)['length']);}return''+AN;});return Bb;})+'

';return B7;};}if(AI==='linebreak'){AO=AO['replace'](/<\/?ul[^>]*>|<\/?ol[^>]*>|<\/?li[^>]*>/gi,'\x0a');}else if(AI==='indention'){while(/<(o|u)l[^>]*>(.*)<\/\1l>/gi['test'](AO)){AO=AO['replace'](/<(o|u)l([^>]*)>(((?!<(o|u)l[^>]*>)(?!<\/(o|u)l>).)*)<\/\1l>/gi,AR());}}if(AH==='linebreak'){AO=AO['replace'](/]*>([^<]*)<\/h\1>/gi,'\x0a$2\x0a');}else if(AH==='underline'){AO=AO['replace'](/]*>(((?!<\/h1>).)*)<\/h1>/gi,function(Bc,Bd){return'\x0a \x0a'+Bd+'\x0a'+AE('=',Bd['length'])+'\x0a \x0a';});AO=AO['replace'](/]*>(((?!<\/h2>).)*)<\/h2>/gi,function(Be,Bf){return'\x0a \x0a'+Bf+'\x0a'+AE('-',Bf['length'])+'\x0a \x0a';});AO=AO['replace'](/]*>(((?!<\/h\1>).)*)<\/h\1>/gi,function(Bg,Bh,Bi){return'\x0a \x0a'+Bi+'\x0a \x0a';});}else if(AH==='hashify'){AO=AO['replace'](/]*>([^<]*)<\/h\1>/gi,function(Bj,Bk,Bl){return'\x0a \x0a'+AE('#',Bk)+'\x20'+Bl+'\x0a \x0a';});}AO=AO['replace'](/]*)*>|]*)*>|<\/p( [^>]*)*>|]*)*>|<\/div( [^>]*)*>|]*)*>|<\/td( [^>]*)*>/gi,'\x0a');AO=AO['replace'](/]*href="([^"]*)"[^>]*>([^<]+)<\/a[^>]*>/gi,function(Bm,Bn,Bo){if(typeof AF==='function'){return AF(Bn,Bo);}return'\x20['+Bo+']\x20('+Bn+')\x20';});AO=AO['replace'](/\n[ \t\f]*/gi,'\x0a');AO=AO['replace'](/\n\n+/gi,'\x0a');if(AM){AO=AO['replace'](/( |\t)+/gi,'\x20');AO=AO['replace'](/ /gi,'\x20');}else{AO=AO['replace'](/( | |\t)+/gi,'\x20');}AO=AO['replace'](/\n +/gi,'\x0a');AO=AO['replace'](/^ +/gi,'');while(AO['indexOf']('\x0a')===0x0){AO=AO['substring'](0x1);}if(AO['length']===0x0||AO['lastIndexOf']('\x0a')!==AO['length']-0x1){AO+='\x0a';}return AO;};TDV['Tour']['Script']['openEmbeddedPDF']=function(Bp,Bq){var Br=!!window['MSInputMethodContext']&&!!document['documentMode'];if(Br){this['openLink'](Bq,'_blank');return;}var Bs=Bp['get']('class');var Bt=!new RegExp('^(?:[a-z]+:)?//','i')['test'](Bq);if(Bt&&Bs=='WebFrame'){var Bu=location['origin']+location['pathname'];Bp['set']('url','lib/pdfjs/web/viewer.html?file='+encodeURIComponent(Bu['substring'](0x0,Bu['lastIndexOf']('/'))+'/'+Bq)+'#0');}else{var Bv=location['origin']==new URL(Bq)['origin'];var Bw=''+'

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

'+'';var Bx=/^((?!chrome|android|crios|ipad|iphone).)*safari/i['test'](navigator['userAgent']);var By=''+''+'!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'+Bq+'\x22,\x20\x22#content\x22,\x20{'+(Bv?'\x22PDFJS_URL\x22:\x20\x22'+new URL('lib/pdfjs/web/viewer.html',document['baseURI'])['href']+'\x22,\x20':'')+'\x22fallbackLink\x22:\x20\x22'+Bw+'\x22,'+'\x22forcePDFJS\x22:\x20'+Bx+'});'+'if(!PDFObject.supportsPDFs\x20&&\x20!'+Bv+'){'+'\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(Bs=='WebFrame'){Bp['set']('url','data:text/html;charset=utf-8,'+encodeURIComponent(''+''+''+''+By+''+''));}else if(Bs=='HTML'){Bp['set']('content','data:text/html;charset=utf-8,'+encodeURIComponent(By));}}};TDV['Tour']['Script']['getKey']=function(Bz){return window[Bz];};TDV['Tour']['Script']['registerKey']=function(BA,BB){window[BA]=BB;};TDV['Tour']['Script']['unregisterKey']=function(BC){delete window[BC];};TDV['Tour']['Script']['existsKey']=function(BD){return BD in window;};function _getCurrentActiveModels(){var BE=this['getByClassName']('Model3DPlayer');var BF=[];for(var BG of BE){var BH=BG['get']('model');var BI=BG['get']('viewerArea');if(BH&&BH['get']('isLoaded')&&BI&&BI['get']('visible'))BF['push'](BH);}return BF;}function _onMeasureClick(BJ){var BK=BJ['source'];var BL=BK['get']('mode');if(BL!='create'){BK['set']('mode',BL=='view'?'edit':'view');console['log'](BK['get']('mode'));}}function _forEachMeasureModel3DObject(BM,BN){if(!BM)BM=_getCurrentActiveModels['call'](this);BM['forEach'](function(BO){BO['get']('objects')['forEach'](function(BP){if(BP['get']('class')=='MeasureModel3DObject')BN(BO,BP);}['bind'](this));}['bind'](this));}function _deleteModel3DObjects(BQ,BR){if(!BQ)BQ=_getCurrentActiveModels['call'](this);BQ['forEach'](function(BS){var BT=BS['get']('objects');var BU=BT['filter'](function(BV){return!BR['call'](this,BV);});if(BU['length']!=BT['length']){BS['set']('objects',BU);BT['forEach'](function(BW){if(BR['call'](this,BW))this['disposeInstance'](BW);}['bind'](this));}}['bind'](this));}function _cloneMeasureModel3DObject(BX){var BY=this['clone'](BX,BX['getAttributeNames']()['filter'](function(BZ){return BZ!='id';}));BY['set']('data',{'id':BX['get']('id')});return BY;}TDV['Tour']['Script']['startMeasurement']=function(C0,C1){if(!C0)C0=_getCurrentActiveModels['call'](this);var C2={},C3={},C4={};C0['forEach'](function(C6){var C7=C6['get']('objects');var C8=C7['findIndex'](function(Cd){return Cd['get']('class')=='MeasureModel3DObject'&&Cd['get']('mode')=='create';});var C9=C8!=-0x1;if(C9){var Ca=C7[C8];if(Ca['get']('points')['length']==0x0){C7['splice'](C8,0x1);this['disposeInstance'](Ca);}else Ca['set']('mode','view');}var Cb=_cloneMeasureModel3DObject['call'](this,C1);this['cloneBindings'](C1,Cb,'modeChange');Cb['set']('mode','create');Cb['bind']('click',_onMeasureClick,this);var Cc=C6['get']('camera');Cb['bind']('modeChange',function Ce(){if(Cb['get']('mode')=='create'){C2[C6['get']('id')]=C6['get']('surfaceSelectionEnabled');C6['set']('surfaceSelectionEnabled',!![]);if(Cc['get']('class')=='FlyOverModel3DCamera'){C3[C6['get']('id')]=Cc['get']('doubleClickAction');Cc['set']('doubleClickAction','none');}}else{Cb['unbind']('modeChange',Ce,this);C6['set']('surfaceSelectionEnabled',C2[C6['get']('id')]);if(Cc['get']('class')=='FlyOverModel3DCamera'){Cc['set']('doubleClickAction',C3[C6['get']('id')]);}C7['forEach'](function(Cf){var Cg=C4[Cf['get']('id')];if(Cg){Cf['set']('rollOverEnabled',Cg['rollOverEnabled']);}});}},this);if(C0['length']>0x0){Cb['bind']('distanceChange',function Ch(){Cb['unbind']('distanceChange',Ch,this);C5['call'](this,C0['filter'](Ci=>Ci!=C6));},this);}C7['forEach'](function(Cj){var Ck=Cj['get']('id');if(Ck){C4[Ck]={'rollOverEnabled':Cj['get']('rollOverEnabled')};Cj['set']('rollOverEnabled',!![]);}});C7=C7['concat']();C7['push'](Cb);C6['set']('objects',C7);}['bind'](this));function C5(Cl){this['stopMeasurement'](Cl);for(var Cm of Cl){var Cn=Cm['get']('id');Cm['set']('surfaceSelectionEnabled',C2[Cn]);if(Cn in C3)Cm['get']('camera')['set']('doubleClickAction',C3[Cn]);}}};TDV['Tour']['Script']['stopMeasurement']=function(Co){_deleteModel3DObjects['call'](this,Co,function(Cp){return Cp['get']('class')=='MeasureModel3DObject'&&Cp['get']('mode')=='create'&&Cp['get']('points')['length']==0x0;});_forEachMeasureModel3DObject['call'](this,Co,function(Cq,Cr){if(Cr['get']('mode')=='create'){Cr['set']('mode','edit');}});};TDV['Tour']['Script']['toggleMeasurement']=function(Cs,Ct){if(!Cs)Cs=_getCurrentActiveModels['call'](this);var Cu=Cs['some'](function(Cv){var Cw=Cv['get']('objects');var Cx=Cw['find'](function(Cy){return Cy['get']('class')=='MeasureModel3DObject'&&Cy['get']('mode')=='create';});return Cx!=null;});if(!Cu)this['startMeasurement'](Cs,Ct);else this['stopMeasurement'](Cs);};TDV['Tour']['Script']['cleanAllMeasurements']=function(Cz){_deleteModel3DObjects['call'](this,Cz,function(CA){return CA['get']('class')=='MeasureModel3DObject';});};TDV['Tour']['Script']['cleanSelectedMeasurements']=function(CB){_deleteModel3DObjects['call'](this,CB,function(CC){return CC['get']('class')=='MeasureModel3DObject'&&CC['get']('mode')=='edit';});};TDV['Tour']['Script']['setMeasurementsVisibility']=function(CD,CE){_forEachMeasureModel3DObject['call'](this,CD,function(CF,CG){CG['set']('enabled',CE);});};TDV['Tour']['Script']['toggleMeasurementsVisibility']=function(CH){_forEachMeasureModel3DObject['call'](this,CH,function(CI,CJ){CJ['set']('enabled',!CJ['get']('enabled'));});};TDV['Tour']['Script']['setMeasurementUnits']=function(CK){_forEachMeasureModel3DObject['call'](this,null,function(CL,CM){CM['set']('units',CK);});}; //# sourceMappingURL=script_v2023.1.12.js.map //Generated with v2023.1.12, Mon Oct 16 2023