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){var bB=this['_getRootPlayer']();var bC=bB['getActivePlayerWithViewer'](bB['getMainViewer']());var bD=bC?bB['getMediaFromPlayer'](bC):undefined;var bE;if('media'in bA){var bF=bA['media'];var bG=Number(bF);bE=isNaN(bG)?this['setMediaByName'](bF):this['setMediaByIndex'](bG-0x1);}else if('media-index'in bA){bE=this['setMediaByIndex'](parseInt(bA['media-index'])-0x1);}else if('media-name'in bA){bE=this['setMediaByName'](decodeURIComponent(bA['media-name']));}if(bE==undefined){bE=this['setMediaByIndex'](0x0);}if(bE!=undefined){var bH=bE['get']('player');var bI=function(){if('trigger-overlay-name'in bA){this['triggerOverlayByName'](bE['get']('media'),bA['trigger-overlay-name'],bA['trigger-overlay-event']);}if('focus-overlay-name'in bA){this['focusOverlayByName'](bE,bA['focus-overlay-name']);}else if('yaw'in bA||'pitch'in bA){var bM=bB['getPlayListWithItem'](bE);if(bM){switch(bE['get']('class')){case'PanoramaPlayListItem':var bN=parseFloat(bA['yaw'])||undefined;var bO=parseFloat(bA['pitch'])||undefined;bB['setPanoramaCameraWithSpot'](bM,bE,bN,bO);break;case'Model3DPlayListItem':var bP=['yaw','pitch','x','y','z','distance'];var bQ={};for(var bR=0x0;bR0x0){ce['set']('objects',cf['concat'](cg));}};if('hide-components-tags'in c1||'hct'in c1)c4['call'](this,this['setComponentsVisibilityByTags'],c1['hide-components-tags']||c1['hct'],![]);if('show-components-tags'in c1||'sct'in c1)c4['call'](this,this['setComponentsVisibilityByTags'],c1['show-components-tags']||c1['sct'],!![]);if('hide-overlays-tags'in c1||'hot'in c1)c4['call'](this,this['setOverlaysVisibilityByTags'],c1['hide-overlays-tags']||c1['hot'],![]);if('show-overlays-tags'in c1||'sot'in c1)c4['call'](this,this['setOverlaysVisibilityByTags'],c1['show-overlays-tags']||c1['sot'],!![]);if('hide-overlays-names'in c1||'hon'in c1)this['setOverlaysVisibilityByName'](decodeURIComponent(c1['hide-overlays-names']||c1['hon'])['split'](','),![]);if('show-overlays-names'in c1||'son'in c1)this['setOverlaysVisibilityByName'](decodeURIComponent(c1['show-overlays-names']||c1['son'])['split'](','),!![]);if('show-object-ids'in c1||'sobjids'in c1)this['setObjectsVisibilityByID'](decodeURIComponent(c1['show-object-ids']||c1['sobjids'])['split'](','),!![]);if('hide-object-ids'in c1||'hobjids'in c1)this['setObjectsVisibilityByID'](decodeURIComponent(c1['hide-object-ids']||c1['hobjids'])['split'](','),![]);if('variant'in c1)this['setModel3DVariant'](decodeURIComponent(c1['variant']));if('measures'in c1)c5['call'](this,decodeURIComponent(c1['measures']['split'](';')));};TDV['Tour']['LocaleManager']=function(ct,cu,cv,cw){TDV['EventDispatcher']['call'](this);this['rootPlayer']=ct;this['locales']={};this['defaultLocale']=cv;this['queryParam']=cw;this['currentLocaleMap']={};this['currentLocaleID']=undefined;for(var cx in cu){this['registerLocale'](cx,cu[cx]);}};TDV['Tour']['LocaleManager']['EVENT_LOCALE_CHANGED']='localeChanged';TDV['Tour']['LocaleManager']['prototype']=new TDV['EventDispatcher']();TDV['Tour']['LocaleManager']['prototype']['registerLocale']=function(cy,cz){var cA=[cy,cy['split']('-')[0x0]];for(var cB=0x0;cB0x2){var cS=typeof arguments[0x2]=='object'?arguments[0x2]:undefined;var cT=arguments;cR=cR['replace'](/\{\{([\w _\-\.]+)\}\}/g,function(cV,cW){if(cQ(cW))cW=cT[parseInt(cW)+0x1];else if(cS!==undefined)cW=cS[cW];if(typeof cW=='string')cW=this['currentLocaleMap'][cW]||cW;else if(typeof cW=='function')cW=cW['call'](this['rootPlayer']);return cW!==undefined?cW:'';}['bind'](this));}return cR;};TDV['Tour']['LocaleManager']['prototype']['_parsePropertiesContent']=function(cX){cX=cX['replace'](/(^|\n)#[^\n]*/g,'');var cY={};var cZ=cX['split']('\x0a');for(var d0=0x0,d1=cZ['length'];d00x0;};TDV['Tour']['HistoryData']['prototype']['canForward']=function(){return this['pointer']>=0x0&&this['pointer']0x0&&dK['length']>=dM||du>0x0&&e7['distance']>du||dN&&dq['testIntersection'](dO,e7['position']))return;var e8=dA['call'](this,e7['panorama'],e7['yaw']-dF['get']('yaw'),e7['pitch'],e7['width'],e7['height'],e7['anchorX'],e7['anchorY'],e7['opacity'],e7['transparentAreaActive'],e7['image'],dy&&!e7['excludeSurfacePanorama']);var e9=dB['call'](this,e7['panorama'],e7['yaw']-dF['get']('yaw'),e7['backwardYaw'],e7['floorDistance'],!e7['excludeSurfacePanorama']);dK['push'](e8);var ea=dL['findIndex'](function(ed){return ed['get']('panorama')==e7['panorama'];});if(ea!=-0x1)dL['splice'](ea,0x1);dL['push'](e9);var eb=e8['get']('areas')[0x0];if(e7['toolTip'])eb['set']('toolTip',e7['toolTip']);eb['bind']('click',dz['bind'](this,dI,e7['panorama'],dq,!![]),this);e9['bind']('select',dz['bind'](this,dI,e7['panorama'],dq,!![]),this);var ec=e7['actions'];if(ec){dE['call'](this,e8,ec);if('click'in ec)e9['bind']('select',new Function('event',ec['click']),this);}}['bind'](this));dI['set']('overlays',(dI['get']('overlays')||[])['concat'](dK));dI['set']('adjacentPanoramas',dL);var dP=!dq['get']('surfaceSelectionEnabled')||!!dG['excludeSurfaceSelectionModel'];var dQ;if(dP){dQ=dC['call'](this,dF['get']('x'),dF['get']('y'),dF['get']('z'),dG['width'],dG['height'],dG['anchorX']?dG['anchorX']:0.5,dG['anchorY']?dG['anchorY']:0.5,dG['opacity'],!!dG['transparentAreaActive'],dr['showOnlyHotspotsLineSight'],_getObject(this,dG['image']));dQ['set']('id','sprite_'+dF['get']('id'));dQ['set']('translationLineColor',dG['translationLineColor']!=null?dG['translationLineColor']:'#ffffff');dQ['set']('translationLineOpacity',dG['translationLineOpacity']!=null?dG['translationLineOpacity']:0x1);dQ['set']('translationLineVisible',dG['translationLineVisible']!=null?dG['translationLineVisible']:![]);dQ['set']('translationLineWidth',dG['translationLineWidth']!=null?dG['translationLineWidth']:0x1);dQ['set']('translationLength',dG['translationLength']!=null?dG['translationLength']:dr['showOnlyHotspotsLineSight']&&(dG['translationY']==null||dG['translationY']==0x0)?dG['height']/0x2:undefined);dQ['set']('translationX',dG['translationX']!=null?dG['translationX']:0x0);dQ['set']('translationY',dG['translationY']!=null&&dG['translationY']!=0x0?dG['translationY']:dr['showOnlyHotspotsLineSight']?0x1:0x0);dQ['set']('translationZ',dG['translationZ']!=null?dG['translationZ']:0x0);if(dG['toolTip'])dQ['set']('toolTip',dG['toolTip']);dG['sprite']=dQ;}else dQ=dD['call'](this,dF['get']('x'),dF['get']('y'),dF['get']('z'));if(dG['enabled']!==undefined)dQ['set']('enabled',dG['enabled']);dQ['get']('data')['location']=dF;var dR=dG['actions'];if(dR){dE['call'](this,dQ,dR);}dQ['bind']('click',dz['bind'](this,dq,dI,dq,![]),this);dw['push'](dQ);}['bind'](this));dq['set']('objects',(dq['get']('objects')||[])['concat'](dw));dr['isInitialized']=!![];function dz(ee,ef,eg,eh){var ei=this['getPlayListsWithMedia'](ee,!![])['filter'](function(ep){return this['getMediaFromPlayer'](ep['get']('items')[ep['get']('selectedIndex')]['get']('player'))==ee;}['bind'](this));if(ei['length']==0x0)return;var ej=this['getPlayListItemByMedia'](ei[0x0],ee);var ek=ej['get']('player')['get']('viewerArea');var el;this['getPlayListsWithMedia'](ef)['forEach'](function(eq){var er=this['getPlayListItemByMedia'](eq,ef);if(er['get']('player')['get']('viewerArea')==ek){if(eh&&ej['get']('player')['get']('viewerArea')['get']('translationTransitionEnabled')){em();er['bind']('begin',eo,this);}eq['set']('selectedIndex',eq['get']('items')['indexOf'](er));}}['bind'](this));function em(){el=eg['get']('objects')['filter'](function(es){var et=es['get']('data');return et&&et['location']!==undefined;});el['forEach'](function(eu){eu['set']('enabled',![]);});}function en(){el['forEach'](function(ev){ev['set']('enabled',!![]);});}function eo(ew){ew['source']['unbind']('begin',eo,this);en();}}function dA(ex,ey,ez,eA,eB,eC,eD,eE,eF,eG,eH){var eI=_createInstanceFromObj(this,{'class':'HotspotPanoramaOverlay','useHandCursor':!![],'enabledInSurfaceSelection':eH,'areas':[{'class':'HotspotPanoramaOverlayArea','mapColor':eF?'any':'image'}],'items':[{'class':'FlatHotspotPanoramaOverlayImage','yaw':ey,'pitch':ez,'width':eA,'height':eB,'offsetX':eC*eA,'offsetY':eD*eB,'opacity':eE!=undefined?eE:0x1}]});eI['get']('items')[0x0]['set']('image',eG);return eI;}function dB(eJ,eK,eL,eM,eN){return _createInstanceFromObj(this,{'class':'AdjacentPanorama','panorama':'this.'+eJ['get']('id'),'backwardYaw':eL,'yaw':eK,'distance':eM,'enabledInSurfaceSelection':eN});}function dC(eO,eP,eQ,eR,eS,eT,eU,eV,eW,eX,eY){var eZ=_createInstanceFromObj(this,{'class':'SpriteModel3DObject','x':eO,'y':eP,'z':eQ,'anchorX':eT,'anchorY':eU,'depthTest':eX,'transparentAreaActive':eW,'hideBasedOnDistance':!![],'width':eR,'height':eS,'opacity':eV!=undefined?eV:0x1,'data':{}});eZ['set']('image',eY);return eZ;}function dD(f0,f1,f2){return _createInstanceFromObj(this,{'class':'SurfaceReticleModel3DObject','x':f0,'y':f1,'z':f2,'depthTest':![],'data':{}});}function dE(f3,f4){Object['keys'](f4)['forEach'](function(f5){if(f3['hasEvent'](f5))f3['bind'](f5,new Function('event',f4[f5]),this);}['bind'](this));}}function _findLocationWithPanorama(f6){var f7=this['getByClassName']('Model3D');for(var f8=0x0,f9=f7['length'];f80x0){var fh=ff[fg];if(fh['get']('viewerArea')!=fe){ff['splice'](fg,0x1);}}return ff;}function _createInstance(fi,fj,fk){var fl=fi['createInstance'](fj);if(fk){fl['set']('id',fk);fi[fk]=fl;}return fl;}function _createInstanceFromObj(fm,fn){return fo(fn);function fo(fp,fq){if(typeof fp=='object'){if('class'in fp){try{fq=_createInstance(fm,fp['class'],fp['id']);}catch(fu){fq=fp;}}else{fq=fp;}}var fr=function(fv,fw){if('set'in fq)fq['set'](fv,fw);else fq[fv]=fw;};for(var fs in fp){var ft=fp[fs];if(typeof ft=='object'&&ft!==null)fr(fs,fo(ft,fq));else if(typeof ft=='string'&&ft['indexOf']('this.')==0x0)fr(fs,fm[ft['replace']('this.','')]);else fr(fs,ft);}return fq;}}TDV['Tour']['Script']=function(){};TDV['Tour']['Script']['assignObjRecursively']=function(fx,fy){for(var fz in fx){var fA=fx[fz];if(typeof fA=='object'&&fA!==null)this['assignObjRecursively'](fx[fz],fy[fz]||(fy[fz]={}));else fy[fz]=fA;}return fy;};TDV['Tour']['Script']['autotriggerAtStart']=function(fB,fC,fD){var fE=function(fF){fC();if(fD==!![])fB['unbind']('change',fE,this);};fB['bind']('change',fE,this);};TDV['Tour']['Script']['changeBackgroundWhilePlay']=function(fG,fH,fI){var fJ=function(){fK['unbind']('stop',fJ,this);if(fI==fM['get']('backgroundColor')&&fP==fM['get']('backgroundColorRatios')){fM['set']('backgroundColor',fN);fM['set']('backgroundColorRatios',fO);}};var fK=fG['get']('items')[fH];var fL=fK['get']('player');var fM=fL['get']('viewerArea');var fN=fM['get']('backgroundColor');var fO=fM['get']('backgroundColorRatios');var fP=[0x0];if(fI!=fN||fP!=fO){fM['set']('backgroundColor',fI);fM['set']('backgroundColorRatios',fP);fK['bind']('stop',fJ,this);}};TDV['Tour']['Script']['changeOpacityWhilePlay']=function(fQ,fR,fS){var fT=function(){fU['unbind']('stop',fT,this);if(fX==fW['get']('backgroundOpacity')){fW['set']('opacity',fX);}};var fU=fQ['get']('items')[fR];var fV=fU['get']('player');var fW=fV['get']('viewerArea');var fX=fW['get']('backgroundOpacity');if(fS!=fX){fW['set']('backgroundOpacity',fS);fU['bind']('stop',fT,this);}};TDV['Tour']['Script']['changePlayListWithSameSpot']=function(fY,fZ){var g0=fY['get']('selectedIndex');if(g0>=0x0&&fZ>=0x0&&g0!=fZ){var g1=fY['get']('items')[g0];var g2=fY['get']('items')[fZ];var g3=g1['get']('player');var g4=g2['get']('player');if((g3['get']('class')=='PanoramaPlayer'||g3['get']('class')=='Video360Player')&&(g4['get']('class')=='PanoramaPlayer'||g4['get']('class')=='Video360Player')){var g5=this['clonePanoramaCamera'](g2['get']('camera'));this['setCameraSameSpotAsMedia'](g5,g1['get']('media'));var g6=g5['get']('initialPosition');if(g6['get']('yaw')==undefined||g6['get']('pitch')==undefined||g6['get']('hfov')==undefined)return;this['startPanoramaWithCamera'](g2['get']('media'),g5);}}};TDV['Tour']['Script']['clone']=function(g7,g8){var g9=this['rootPlayer']['createInstance'](g7['get']('class'));var gb=g7['get']('id');if(gb){var gc=gb+'_'+Math['random']()['toString'](0x24)['substring'](0x2,0xf);g9['set']('id',gc);this[gc]=g9;}for(var gd=0x0;gd0x0){for(var gA=0x0;gA>0x10&0xff,gW>>0x8&0xff,gW&0xff],'finalRGB':[gX>>0x10&0xff,gX>>0x8&0xff,gX&0xff]};gP[gR+gT]=gO;}else{gS[gT]=gQ?gJ['get'](gT):gJ[gT];gP[gR+gT]=gO;}}gO['set']('duration',(gL||0x0)*0x3e8);gO['set']('easing',gM||'cubic_in_out');gO['set']('animationDirection',gN||'normal');gO['bind']('end',function(){for(var gY in gS){if(gP[gR+gY]==gO)delete gP[gR+gY];}this['disposeInstance'](gO);},this);gO['bind']('frame',function(){var gZ=gO['getPosition']();for(var h0 in gS){var h1=gS[h0];if(gP[gR+h0]!=gO)continue;if(typeof h1==='object'&&'color'in h1){var h2=Math['round'](h1['initialRGB'][0x0]+(h1['finalRGB'][0x0]-h1['initialRGB'][0x0])*gZ);var h3=Math['round'](h1['initialRGB'][0x1]+(h1['finalRGB'][0x1]-h1['initialRGB'][0x1])*gZ);var h4=Math['round'](h1['initialRGB'][0x2]+(h1['finalRGB'][0x2]-h1['initialRGB'][0x2])*gZ);h1='#'+((0x1<<0x18)+(h2<<0x10)+(h3<<0x8)+h4)['toString'](0x10)['slice'](0x1);}else{h1=h1+(gK[h0]-h1)*gZ;}if(gQ)gJ['set'](h0,h1);else gJ[h0]=h1;}},this);return gO;};TDV['Tour']['Script']['executeFunctionWhenChange']=function(h5,h6,h7,h8){var h9=undefined;var ha=function(he){if(he['data']['previousSelectedIndex']==h6){if(h8)h8['call'](this);if(h7&&h9)h9['unbind']('end',h7,this);h5['unbind']('change',ha,this);}};if(h7){var hb=h5['get']('items')[h6];var hc=hb['get']('class');if(hc=='PanoramaPlayListItem'||hc=='Model3DPlayListItem'){var hd=hb['get']('camera');if(hd!=undefined){h9=hd['get']('initialSequence');if(h9==undefined)h9=hd['get']('idleSequence');}}else{h9=hb['get']('media');}if(h9){h9['bind']('end',h7,this);}}h5['bind']('change',ha,this);};TDV['Tour']['Script']['executeJS']=function(hf){try{eval(hf);}catch(hg){console['log']('Javascript\x20error:\x20'+hg);console['log']('\x20\x20\x20code:\x20'+hf);}};TDV['Tour']['Script']['fixTogglePlayPauseButton']=function(hh){var hi=hh['get']('buttonPlayPause');if(typeof hi!=='undefined'&&hh['get']('state')=='playing'){if(!Array['isArray'](hi))hi=[hi];for(var hj=0x0;hj0x1){hn['sort'](function(ho,hp){var hq=ho['get']('class');var hr=hp['get']('class');if(hq=='Model3DPlayer')return 0x1;else if(hr=='Model3DPlayer')return-0x1;else return 0x0;});}return hn['length']>0x0?hn[0x0]:undefined;};TDV['Tour']['Script']['getActivePlayersWithViewer']=function(hs){var ht=this['getCurrentPlayers']();var hu=ht['length'];var hv=[];while(hu-->0x0){var hw=ht[hu];if(hw['get']('viewerArea')==hs){var hx=hw['get']('class');if(hx=='PanoramaPlayer'&&(hw['get']('panorama')!=undefined||hw['get']('video')!=undefined)||(hx=='VideoPlayer'||hx=='Video360Player')&&hw['get']('video')!=undefined||hx=='PhotoAlbumPlayer'&&hw['get']('photoAlbum')!=undefined||hx=='MapPlayer'&&hw['get']('map')!=undefined||hx=='Model3DPlayer'&&hw['get']('model')!=undefined)hv['push'](hw);}}return hv;};TDV['Tour']['Script']['getCurrentPlayerWithMedia']=function(hy){var hz=undefined;var hA=undefined;switch(hy['get']('class')){case'Panorama':case'LivePanorama':case'HDRPanorama':hz='PanoramaPlayer';hA='panorama';break;case'Video360':hz='PanoramaPlayer';hA='video';break;case'PhotoAlbum':hz='PhotoAlbumPlayer';hA='photoAlbum';break;case'Map':hz='MapPlayer';hA='map';break;case'Video':hz='VideoPlayer';hA='video';break;case'Model3D':hz='Model3DPlayer';hA='media';break;}if(hz!=undefined){var hB=this['getByClassName'](hz);for(var hC=0x0;hC0x1){iq['sort'](function(ix,iy){var iz=ix['get']('data')['groupIndex'];var iA=iy['get']('data')['groupIndex'];return iz-iA;});for(var ir=0x0,is=iq['length'];ir=0x0;--iY){if(j2['indexOf'](j1[iY])==-0x1)j1['splice'](iY,0x1);}}else if(iI=='or'){for(var iY=j2['length']-0x1;iY>=0x0;--iY){var iT=j2[iY];if(j1['indexOf'](iT)==-0x1)j1['push'](iT);}}}}return j1||[];};TDV['Tour']['Script']['getComponentByName']=function(j3){var j4=this['getByClassName']('UIComponent');for(var j5=0x0,j6=j4['length'];j5jd)jd=jf['get']('width');}return jd;}else{return jf['get']('width');}default:return jb['get']('width');}};TDV['Tour']['Script']['getMediaHeight']=function(jg){switch(jg['get']('class')){case'Video360':var jh=jg['get']('video');if(jh instanceof Array){var ji=0x0;for(var jj=0x0;jjji)ji=jk['get']('height');}return ji;}else{return jk['get']('height');}default:return jg['get']('height');}};TDV['Tour']['Script']['getOverlays']=function(jl){switch(jl['get']('class')){case'LivePanorama':case'HDRPanorama':case'Panorama':var jm=jl['get']('overlays')['concat']()||[];var jn=jl['get']('frames');for(var jo=0x0;jo=0x0;--jZ){var k0=jY[jZ];var k1=k0['get']('player');if(k1!==undefined&&k1['get']('viewerArea')==jT)return!![];}return![];};for(var jW=jU['length']-0x1;jW>=0x0;--jW){if(!jV(jU[jW]))jU['splice'](jW,0x1);}return jU;};TDV['Tour']['Script']['getPlayListWithItem']=function(k2){var k3=this['getByClassName']('PlayList');for(var k4=k3['length']-0x1;k4>=0x0;--k4){var k5=k3[k4];var k6=k5['get']('items');for(var k7=k6['length']-0x1;k7>=0x0;--k7){var k8=k6[k7];if(k8==k2)return k5;}}return undefined;};TDV['Tour']['Script']['getFirstPlayListWithMedia']=function(k9,ka){var kb=this['getPlayListsWithMedia'](k9,ka);return kb['length']>0x0?kb[0x0]:undefined;};TDV['Tour']['Script']['getPlayListItemByMedia']=function(kc,kd){var ke=kc['get']('items');for(var kf=0x0,kg=ke['length'];kf=0x0;--kp){var kq=ko[kp];if(kq['get']('media')!=kl||km!=undefined&&kq['get']('player')!=km){ko['splice'](kp,0x1);}}return ko;}else{return[];}};TDV['Tour']['Script']['historyGoBack']=function(kr){var ks=this['get']('data')['history'][kr['get']('id')];if(ks!=undefined){ks['back']();}};TDV['Tour']['Script']['historyGoForward']=function(kt){var ku=this['get']('data')['history'][kt['get']('id')];if(ku!=undefined){ku['forward']();}};TDV['Tour']['Script']['init']=function(){var kv=this['get']('data')['history'];var kw=function(kF){var kG=kF['source'];var kH=kG['get']('selectedIndex');if(kH<0x0)return;var kI=kG['get']('id');if(!kv['hasOwnProperty'](kI))kv[kI]=new TDV['Tour']['HistoryData'](kG);kv[kI]['add'](kH);};var kx=this['getByClassName']('PlayList');for(var kz=0x0,kA=kx['length'];kz=0x0){this['skip3DTransitionOnce'](kL['get']('items')[kM]['get']('player'));}}for(var kz=0x0,kD=kC['length'];kz0x0){var lc=la['get']('data')['name'];la['bind']('click',this['sendAnalyticsData']['bind'](this,'Skin','click',lc),this,![]);}}var ld=this['mainPlayList']['get']('items')['concat'](this['getByClassName']('PlayListItem'));var le={};for(var kU=0x0,kX=ld['length'];kU0x0){var ms=mp[mq];if(ms['get']('viewerArea')!=mo){mp['splice'](mq,0x1);}}for(mq=0x0;mq=mA){my-=mC-(mA-m5['get']('actualWidth'));mC=mA-m5['get']('actualWidth');}m5['set']('left',mC);lQ();mv=my;};this['bind']('mouseMove',mw,this);this['bind']('mouseUp',function(){this['unbind']('mouseMove',mw,this);},this);},this);lQ();};TDV['Tour']['Script']['_initTwinsViewer']=function(mD){function mE(){var mZ=mD['get']('actualWidth');mP['get']('children')[0x0]['set']('width',mZ);mQ['get']('children')[0x0]['set']('width',mZ);var n0=mT['get']('left');var n1=typeof n0=='string'?mF(n0):n0;n1+=mT['get']('actualWidth')*0.5;mP['set']('width',mG(n1));mQ['set']('width',mG(mZ-n1));}function mF(n2){return parseFloat(n2['replace']('%',''))/0x64*mD['get']('actualWidth');}function mG(n3){return n3/mD['get']('actualWidth')*0x64+'%';}function mH(n4){mI(n4['source']);}function mI(n5){var n6=n5==mV?mU:mV;if(mW&&n5!=mW||!n5||!n6)return;var n7=n6['get']('camera')['get']('initialPosition')['get']('yaw')-n5['get']('camera')['get']('initialPosition')['get']('yaw');n6['setPosition'](n5['get']('yaw')+n7,n5['get']('pitch'),n5['get']('roll'),n5['get']('hfov'));}function mJ(n8){mW=n8['source'];}function mK(n9){mL(n9['source']);}function mL(na){var nb=na['get']('viewerArea');if(nb==mR){if(mU){mU['get']('camera')['set']('hoverFactor',mX);}mU=na;mW=mU;if(mU){mX=mU['get']('camera')['get']('hoverFactor');mU['get']('camera')['set']('hoverFactor',0x0);}}else if(nb==mS){if(mV){mV['get']('camera')['set']('hoverFactor',mY);}mV=na;mW=mU;if(mV){mY=mV['get']('camera')['get']('hoverFactor');mV['get']('camera')['set']('hoverFactor',0x0);}}mI(na);}function mM(nc){var nd=this['getCurrentPlayers']();var ne=nd['length'];while(ne-->0x0){var ng=nd[ne];if(ng['get']('viewerArea')!=nc){nd['splice'](ne,0x1);}}for(ne=0x0;ne0x0&&ni[0x0]['get']('viewMode')=='cardboard';};TDV['Tour']['Script']['isPanorama']=function(nj){return['Panorama','HDRPanorama','LivePanorama','Video360','VideoPanorama']['indexOf'](nj['get']('class'))!=-0x1;};TDV['Tour']['Script']['keepCompVisible']=function(nk,nl){var nm='keepVisibility_'+nk['get']('id');var nn=this['getKey'](nm);if(nn==undefined&&nl){this['registerKey'](nm,nl);}else if(nn!=undefined&&!nl){this['unregisterKey'](nm);}};TDV['Tour']['Script']['_initItemWithComps']=function(no,np,nq,nr,ns,nt,nu,nv){var nw=no['get']('items')[np];var nx=nw['get']('media');var ny=nx['get']('loop')==undefined||nx['get']('loop');var nz=nv>0x0;var nA=this['rootPlayer'];var nB=function(nJ){var nK=nt?nt['get']('class'):undefined;var nL=undefined;switch(nK){case'FadeInEffect':case'FadeOutEffect':nL=nA['createInstance'](nJ?'FadeInEffect':'FadeOutEffect');break;case'SlideInEffect':case'SlideOutEffect':nL=nA['createInstance'](nJ?'SlideInEffect':'SlideOutEffect');break;}if(nL){nL['set']('duration',nt['get']('duration'));nL['set']('easing',nt['get']('easing'));if(nK['indexOf']('Slide')!=-0x1)nL['set'](nJ?'from':'to',nt['get'](nt['get']('class')=='SlideInEffect'?'from':'to'));}return nL;};var nC=function(){for(var nM=0x0,nN=nq['length'];nM0x0){this['setComponentVisibility'](nO,!ns,0x0,nB(!ns));}else{var nP='visibility_'+nO['get']('id');if(this['existsKey'](nP)){if(this['getKey'](nP))this['setComponentVisibility'](nO,!![],0x0,nB(!![]));else this['setComponentVisibility'](nO,![],0x0,nB(![]));this['unregisterKey'](nP);}}}nw['unbind']('end',nC,this);if(!ny)nx['unbind']('end',nC,this);};var nD=function(){nw['unbind']('stop',nD,this,!![]);nw['unbind']('stop',nD,this);nw['unbind']('begin',nD,this,!![]);nw['unbind']('begin',nD,this);for(var nQ=0x0,nR=nq['length'];nQ0x0){var o3=nT+nU+(o2!=undefined?o2['get']('duration'):0x0);nA['setComponentVisibility'](o0,!o1,o3,nB(!o1),o1?'hideEffect':'showEffect',!![]);}};for(var nX=0x0,nY=nq['length'];nX0x0){nE('begin',nv,0x0);nv=0x0;}if(nr!=undefined)nE(nr,nu,nv);};TDV['Tour']['Script']['loadFromCurrentMediaPlayList']=function(o4,o5,o6){var o7=o4['get']('selectedIndex');var o8=o4['get']('items')['length'];var o9=(o7+o5)%o8;while(o9<0x0){o9=o8+o9;}if(o7!=o9){if(o6){var oa=o4['get']('items')[o9];this['skip3DTransitionOnce'](oa['get']('player'));}o4['set']('selectedIndex',o9);}};TDV['Tour']['Script']['mixObject']=function(ob,oc){return this['assignObjRecursively'](oc,this['copyObjRecursively'](ob));};TDV['Tour']['Script']['downloadFile']=function(od){if((navigator['userAgent']['toLowerCase']()['indexOf']('chrome')>-0x1||navigator['userAgent']['toLowerCase']()['indexOf']('safari')>-0x1)&&!/(iP)/g['test'](navigator['userAgent'])){var oe=document['createElement']('a');oe['href']=od;oe['setAttribute']('target','_blank');if(oe['download']!==undefined){var of=od['substring'](od['lastIndexOf']('/')+0x1,od['length']);oe['download']=of;}if(document['createEvent']){var og=document['createEvent']('MouseEvents');og['initEvent']('click',!![],!![]);oe['dispatchEvent'](og);return;}}window['open'](od,'_blank');};TDV['Tour']['Script']['openLink']=function(oh,oi){if(!oh||oh==location['href']){return;}if(!oi)oi='_blank';if(oi=='_top'||oi=='_self'){this['updateDeepLink']({'includeCurrentView':!![],'includeCurrentVisibleHotspots':!![],'includeCurrentMeasureModel3DObjects':!![],'setHash':!![]});}var oj=window&&window['process']&&window['process']['versions']&&window['process']['versions']['electron']||navigator&&navigator['userAgent']&&navigator['userAgent']['indexOf']('Electron')>=0x0;if(oj&&oi=='_blank'){if(oh['startsWith']('files/')){oh='/'+oh;}if(oh['startsWith']('//')){oh='https:'+oh;}else if(oh['startsWith']('/')){var ok=window['location']['href']['split']('/');ok['pop']();oh=ok['join']('/')+oh;}var ol=oh['split']('.')['pop']()['toLowerCase']();if((['pdf','zip','xls','xlsx']['indexOf'](ol)==-0x1||oh['startsWith']('file://'))&&window['hasOwnProperty']('require')){var om=window['require']('electron')['shell'];om['openExternal'](oh);}else{window['open'](oh,oi);}}else if(oj&&(oi=='_top'||oi=='_self')){window['location']=oh;}else{var on=this['get']('data')['tour'];if(on['isMobileApp']()&&on['isIOS']())oh='blank:'+oh;var oo=window['open'](oh,oi);oo['focus']();}};TDV['Tour']['Script']['startPanoramaWithModel']=function(op,oq){var or=op['get']('media');var os=_findLocationWithPanorama['call'](this,or);if(!os){oq['call'](this);return;}var ot=os['get']('model');var ou=op['get']('player')['get']('viewerArea');var ow=this['getActivePlayersWithViewer'](ou);var oy=ow['length']==0x1?ow['find'](function(oF){return this['getMediaFromPlayer'](oF)==ot;}['bind'](this)):undefined;if(oy){oq['call'](this);}else{var ow=_getPlayersWithViewer['call'](this,ou);var oy=ow['find'](function(oG){return oG['get']('class')=='Model3DPlayer';});var oz,oA;if(!oy){oy=this['createInstance']('Model3DPlayer');oy['set']('viewerArea',ou);}else{var oB=this['getByClassName']('Model3DPlayListItem');oz=oB['find'](function(oH){return oH['get']('player')==oy;}['bind'](this));}if(!oz){oz=this['createInstance']('Model3DPlayListItem');oz['set']('player',oy);_initModel3DItem['call'](this,oz);}oz['set']('media',ot);var oC=os['get']('forceModelLoading');os['set']('forceModelLoading',!![]);var oD=function(){oz['unbind']('begin',oD,this);oq['call'](this);};var oE=function(){op['unbind']('begin',oE,this);os['set']('forceModelLoading',oC);if(oA)this['disposeInstance'](oA);};op['bind']('begin',oE,this);if(oz['get']('state')=='playing')oD['call'](this);else{oz['bind']('begin',oD,this);oA=this['createInstance']('PlayList');oA['set']('items',[oz]);oA['set']('selectedIndex',0x0);}}};TDV['Tour']['Script']['pauseCurrentPlayers']=function(oI){var oJ=this['getCurrentPlayers']();var oK=oJ['length'];while(oK-->0x0){var oL=oJ[oK];if(oL['get']('state')=='playing'||oL['get']('data')&&oL['get']('data')['playing']||oL['get']('viewerArea')&&oL['get']('viewerArea')['get']('id')==this['getMainViewer']()||oL['get']('camera')&&oL['get']('camera')['get']('idleSequence')&&oL['get']('camera')['get']('timeToIdle')>0x0&&oL['get']('state')=='playing'||oL['get']('class')=='Model3DPlayer'&&oL['get']('model')&&oL['get']('model')['get']('camera')['get']('state')=='playing'){var oM=this['getMediaFromPlayer'](oL);if(oI&&oM&&oM['get']('class')!='Video360'&&'pauseCamera'in oL){oL['pauseCamera']();}else{oL['pause']();}}else{oJ['splice'](oK,0x1);}}return oJ;};TDV['Tour']['Script']['pauseGlobalAudiosWhilePlayItem']=function(oN,oO,oP){var oQ=function(){if(oN['get']('selectedIndex')!=oO){this['resumeGlobalAudios']();}};this['pauseGlobalAudios'](oP,!![]);this['executeFunctionWhenChange'](oN,oO,oQ,oQ);};TDV['Tour']['Script']['pauseGlobalAudios']=function(oR,oS){this['stopTextToSpeech']();if(window['pausedAudiosLIFO']==undefined)window['pausedAudiosLIFO']=[];var oT=this['getByClassName']('VideoPanoramaOverlay');oT=oT['concat'](this['getByClassName']('QuadVideoPanoramaOverlay'));for(var oV=oT['length']-0x1;oV>=0x0;--oV){var oW=oT[oV];if(oW['get']('video')['get']('hasAudio')==![])oT['splice'](oV,0x1);}var oX=this['getByClassName']('Audio')['concat'](oT);var oY={};if(window['currentGlobalAudios']!=undefined)oX=oX['concat'](Object['values'](window['currentGlobalAudios'])['map'](function(p2){if(!p2['allowResume'])oY[p2['audio']['get']('id')]=p2['audio'];return p2['audio'];}));var oZ=[];for(var oV=0x0,p0=oX['length'];oV0x0)window['pausedAudiosLIFO']['push'](oZ);return oZ;};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 p3=window['pausedAudiosLIFO']['pop']();if(!p3)return;for(var p4=0x0,p5=p3['length'];p4=pa['length']){if(!pb)return;pd=0x0;}pe=pa[pd];pf(pe,!![],pg,!![]);};pg();}};TDV['Tour']['Script']['playGlobalAudioWhilePlayActiveMedia']=function(ph,pi,pj,pk){var pl=this['getActiveMediaWithViewer'](this['getMainViewer']());var pm=this['getFirstPlayListWithMedia'](pl,!![]);var pn=this['getPlayListItemByMedia'](pm,pl);var po=pm['get']('items')['indexOf'](pn);return this['playGlobalAudioWhilePlay'](pm,po,ph,pi,pj,pk);};TDV['Tour']['Script']['playGlobalAudioWhilePlay']=function(pp,pq,pr,ps,pt,pu){var pv=function(pE){if(pE['data']['previousSelectedIndex']==pq){this['stopGlobalAudio'](pr);if(pz){var pF=py['get']('media');var pG=pF['get']('audios');pG['splice'](pG['indexOf'](pr),0x1);pF['set']('audios',pG);}pp['unbind']('change',pv,this);if(pt)pt();}};var px=window['currentGlobalAudios'];if(px&&pr['get']('id')in px){pr=px[pr['get']('id')]['audio'];if(pr['get']('state')!='playing'){pr['play']();}return pr;}pp['bind']('change',pv,this);var py=pp['get']('items')[pq];var pz=py['get']('class')=='PanoramaPlayListItem';if(pz){var pA=py['get']('media');var px=(pA['get']('audios')||[])['slice']();if(pr['get']('class')=='MediaAudio'){var pB=this['rootPlayer']['createInstance']('PanoramaAudio');pB['set']('autoplay',![]);pB['set']('audio',pr['get']('audio'));pB['set']('loop',pr['get']('loop'));pB['set']('id',pr['get']('id'));this['cloneBindings'](pr,pB,'start');this['cloneBindings'](pr,pB,'end');this['cloneBindings'](pr,pB,'stateChange');pr=pB;}px['push'](pr);pA['set']('audios',px);}var pC=this['playGlobalAudio'](pr,ps,function(){pp['unbind']('change',pv,this);if(pt)pt['call'](this);});if(pu===!![]){var pD=function(){if(pC['get']('state')=='playing'){this['pauseGlobalAudios']([pC],!![]);}else if(pC['get']('state')=='stopped'){this['resumeGlobalAudios']();pC['unbind']('stateChange',pD,this);}};pC['bind']('stateChange',pD,this);}return pC;};TDV['Tour']['Script']['playGlobalAudio']=function(pH,pI,pJ,pK){var pL=function(){pH['unbind']('end',pL,this);this['stopGlobalAudio'](pH);if(pJ)pJ['call'](this);};pH=this['getGlobalAudio'](pH);var pM=window['currentGlobalAudios'];if(!pM){pM=window['currentGlobalAudios']={};}pM[pH['get']('id')]={'audio':pH,'asBackground':pK||![],'allowResume':pI};if(pH['get']('state')=='playing'){return pH;}if(!pH['get']('loop')){pH['bind']('end',pL,this);}pH['play']();return pH;};TDV['Tour']['Script']['restartTourWithoutInteraction']=function(pN){var pO=-0x1;this['bind']('userInteraction',pP['bind'](this),this);pP();function pP(){if(pO!=-0x1)clearTimeout(pO);pO=setTimeout(function(){var pQ=this['get']('data')['tour'];if(pQ){if(this['isCardboardViewMode']())location['reload']();else pQ['reload']();}}['bind'](this),pN*0x3e8);}};TDV['Tour']['Script']['resumePlayers']=function(pR,pS){for(var pT=0x0;pT0x0){var qk=setTimeout(function(){if(window[qi]instanceof Array){var qn=window[qi];var qo=qn['indexOf'](qk);qn['splice'](qo,0x1);if(qn['length']==0x0){delete window[qi];}}else{delete window[qi];}qh();},qc);if(window['hasOwnProperty'](qi)){window[qi]=[window[qi],qk];}else{window[qi]=qk;}}else{qh();}};TDV['Tour']['Script']['setDirectionalPanoramaAudio']=function(qp,qq,qr,qs){qp['set']('yaw',qq);qp['set']('pitch',qr);qp['set']('maximumAngle',qs);};TDV['Tour']['Script']['setLocale']=function(qt){this['stopTextToSpeech']();var qu=this['get']('data')['localeManager'];if(qu)this['get']('data')['localeManager']['setLocale'](qt);else{this['get']('data')['defaultLocale']=qt;this['get']('data')['forceDefaultLocale']=!![];}};TDV['Tour']['Script']['setEndToItemIndex']=function(qv,qw,qx){var qy=function(){if(qv['get']('selectedIndex')==qw){var qz=qv['get']('items')[qx];this['skip3DTransitionOnce'](qz['get']('player'));qv['set']('selectedIndex',qx);}};this['executeFunctionWhenChange'](qv,qw,qy);};TDV['Tour']['Script']['setMapLocation']=function(qA,qB){var qC=function(){qA['unbind']('stop',qC,this);qD['set']('mapPlayer',null);};qA['bind']('stop',qC,this);var qD=qA['get']('player');qD['set']('mapPlayer',qB);};TDV['Tour']['Script']['setMainMediaByIndex']=function(qE){var qF=undefined;if(qE>=0x0&&qE0x0){qZ=r2[0x0];r0=this['getPlayListItemIndexByMedia'](qZ,qV);}if(!qZ)qV=!![];}if(qV===!![]){var r7=this['getActiveMediaWithViewer'](r1);if(r7){qZ=this['getFirstPlayListWithMedia'](r7,!![]);var r6=this['getPlayListItemByMedia'](qZ,r7);r0=qZ['get']('items')['indexOf'](r6);}else{qV=null;}}var r8=[];var r9=function(){var rh=r8['concat']();var ri=![];var rj=function(rm){var rn=rm['source']['get']('state');if(rn=='playing'){if(!ri){ri=!![];this['pauseGlobalAudios'](r8,!![]);}}else if(rn=='stopped'){rh['splice'](rh['indexOf'](rm['source']),0x1);if(rh['length']==0x0){this['resumeGlobalAudios']();}rm['source']['unbind']('stateChange',rj,this);}}['bind'](this);for(var rk=0x0,rl=r8['length'];rk0x0&&sg['get']('movements')[sf-0x1]['get']('class')=='TargetPanoramaCameraMovement'){var sr=sh['get']('initialPosition');var ss=sr['get']('yaw');var st=sr['get']('pitch');var su=sr['get']('hfov');var sv=sg['get']('movements')[sf-0x1];var sw=sv['get']('targetYaw');var sx=sv['get']('targetPitch');var sy=sv['get']('targetHfov');if(sw!==undefined)sr['set']('yaw',sw);if(sx!==undefined)sr['set']('pitch',sx);if(sy!==undefined)sr['set']('hfov',sy);var sz=function(sC){sr['set']('yaw',ss);sr['set']('pitch',st);sr['set']('hfov',su);sb['unbind']('end',sz,this);};sb['bind']('end',sz,this);}sg['set']('movementIndex',sf);}}if(s9){s8['unbind']('begin',rZ,this);s9['unbind']('stateChange',rY,this);for(var sA=0x0;sA0x1)&&(sB==undefined||sB==s8['get']('media'))){s5['set']('selectedIndex',s7);}if(rT!=s5)s5['unbind']('change',s0,this);}else{sc['set']('visible',sd);}s5=undefined;};if(!rV){var s3=rT['get']('selectedIndex');var s4=s3!=-0x1?rT['get']('items')[rT['get']('selectedIndex')]['get']('player'):this['getActivePlayerWithViewer'](this['getMainViewer']());if(s4){rV=this['getMediaFromPlayer'](s4);}}var s5=undefined;if(rV){var s6=this['getPlayListsWithMedia'](rV,!![]);if(s6['indexOf'](rT)!=-0x1){s5=rT;}else if(s6['indexOf'](this['mainPlayList'])!=-0x1){s5=this['mainPlayList'];}else if(s6['length']>0x0){s5=s6[0x0];}}if(!s5){rT['set']('selectedIndex',rU);return;}var s7=s5['get']('selectedIndex');var s8=rT['get']('items')[rU];var s9=s8['get']('player');var sa=this['getMediaFromPlayer'](s9);if(rT['get']('selectedIndex')==rU&&sa==s8['get']('media')||s7==-0x1){return;}if(rT['get']('selectedIndex')==rU&&sa!=s8['get']('media'))rT['set']('selectedIndex',-0x1);var sb=s5['get']('items')[s7];var sc=s9['get']('viewerArea');var sd=sc['get']('visible');var se=sc==sb['get']('player')['get']('viewerArea');if(se){if(rT!=s5){s5['set']('selectedIndex',-0x1);s5['bind']('change',s0,this);}}else{sc['set']('visible',!![]);}var sf=-0x1;var sg=undefined;var sh=sb['get']('camera');if(sh){sg=sh['get']('initialSequence');if(sg){sf=sg['get']('movementIndex');}}rT['set']('selectedIndex',rU);var si=[];var sj=function(sD){var sE=s9['get'](sD);if(sE==undefined)return;if(Array['isArray'](sE))si=si['concat'](sE);else si['push'](sE);};sj('buttonStop');for(var sk=0x0;sk0x0){sV[sY['get']('id')]=setTimeout(sZ['bind'](this,sY),sS);}else{sZ['call'](this,sY);}}function sZ(t0){var t1=t0['get']('id');var t2=sV[t1];if(t2){clearTimeout(t2);delete t2[t1];}var t3=t0['get']('class')=='PanoramaModel3DLocation'?t0['get']('data')['sprite']:t0;var t4=sR=='toggle'?!t3['get']('enabled'):sR;t3['set']('enabled',t4);if(t0['get']('class')=='PanoramaModel3DLocation')t0['get']('data')['enabled']=t4;var t6=t0['get']('data');if(t4&&t6&&'group'in t6){var t7=this['getOverlaysByGroupname'](t6['group']);for(var t8=0x0,t9=t7['length'];t8=0x0&&tA[tz]==tv&&tB['get']('isLoaded')){tC['set']('yaw',tC['get']('yaw')%0x168);this['createTween'](tC,tw,tx,ty)['play']();}else{this['startModel3DWithCameraSpot'](tv,tw);}};TDV['Tour']['Script']['setModel3DCameraSequence']=function(tD,tE,tF){var tG=tD['get']('selectedIndex');var tH=tD['get']('items');var tI=tE['get']('media');if(tH[tG]==tE&&tI['get']('isLoaded')){tF['play']();}else{var tJ=tF['get']('movements');var tK={};if(tJ['length']>0x0){var tL=tJ[0x0];if(tL['get']('class')=='TargetModel3DCameraMovement'){var tM=['x','y','z','yaw','pitch','fov','distance'];for(var tN in tM){tN=tM[tN];var tO=tL['get']('target'+tN['charAt'](0x0)['toUpperCase']()+tN['slice'](0x1));if(tO!==undefined){tK[tN]=tO;}}}}this['startModel3DWithCameraSpot'](tE,tK);var tP=function(){tE['unbind']('begin',tP,this);tF['play']();};tE['bind']('begin',tP,this);}};TDV['Tour']['Script']['setPanoramaCameraWithCurrentSpot']=function(tQ,tR){var tS=this['getActiveMediaWithViewer'](tR||this['getMainViewer']());if(tS!=undefined&&(tS['get']('class')['indexOf']('Panorama')!=-0x1||tS['get']('class')=='Video360')){var tT=tQ['get']('media');var tU=this['clonePanoramaCamera'](tQ['get']('camera'));this['setCameraSameSpotAsMedia'](tU,tS);this['startPanoramaWithCamera'](tT,tU);}};TDV['Tour']['Script']['setPanoramaCameraWithSpot']=function(tV,tW,tX,tY,tZ){var u0=tV['get']('selectedIndex');var u1=tV['get']('items');var u2=tW['get']('player');if(u1[u0]==tW||u2['get']('rendererPanorama')==tW['get']('media')){if(tX===undefined)tX=u2['get']('yaw');if(tY===undefined)tY=u2['get']('pitch');if(tZ===undefined)tZ=u2['get']('hfov');u2['moveTo'](tX,tY,u2['get']('roll'),tZ);}else{var u3=tW['get']('media');var u4=this['clonePanoramaCamera'](tW['get']('camera'));var u5=u4['get']('initialPosition');if(tX!==undefined)u5['set']('yaw',tX);if(tY!==undefined)u5['set']('pitch',tY);if(tZ!==undefined)u5['set']('hfov',tZ);this['startPanoramaWithCamera'](u3,u4);}};TDV['Tour']['Script']['setSurfaceSelectionHotspotMode']=function(u6){var u7=this['getByClassName']('HotspotPanoramaOverlay');var u8=this['getByClassName']('PanoramaPlayer');var u9=u6=='hotspotEnabled';var ua=u6=='circleEnabled';var ub=!!u6;u7['forEach'](function(uc){var ud=uc['get']('data');if(ud&&ud['hasPanoramaAction']==!![])uc['set']('enabledInSurfaceSelection',u9);});u8['forEach'](function(ue){ue['set']('adjacentPanoramaPositionsEnabled',ua);ue['set']('surfaceSelectionEnabled',ub);});this['get']('data')['surfaceSelectionHotspotMode']=u6;};TDV['Tour']['Script']['setValue']=function(uf,ug,uh){try{if('set'in uf)uf['set'](ug,uh);else uf[ug]=uh;}catch(ui){}};TDV['Tour']['Script']['setStartTimeVideo']=function(uj,uk){var ul=this['getPlayListItems'](uj);var um=[];var un=function(){for(var ur=0x0;ur=0x0)clearTimeout(uM);uH['bind']('rollOut',uO,this);};var uO=function(){var uT=function(){uL['call'](this,![]);};uH['unbind']('rollOut',uO,this);uM=setTimeout(uT['bind'](this),uJ);};uH['bind']('rollOver',uN,this);}};TDV['Tour']['Script']['setObjectsVisibilityByTags']=function(uU,uV,uW,uX){var uY=this['_getObjectsByTags'](uV,['InnerModel3DObject'],'tags2Objects',uW)['filter'](function(uZ){return uU['get']('objects')['indexOf'](uZ)!=-0x1;}['bind'](this));this['setObjectsVisibility'](uY,uX);};TDV['Tour']['Script']['setObjectsVisibilityByID']=function(v0,v1,v2){var v3=v1['map'](function(v4){return this['getModel3DInnerObject'](v0,v4);}['bind'](this));this['setObjectsVisibility'](v3,v2);};TDV['Tour']['Script']['setObjectsVisibility']=function(v5,v6){v5['forEach'](function(v7){if(v7)v7['set']('enabled',v6==='toggle'?!v7['get']('enabled'):v6);}['bind'](this));};TDV['Tour']['Script']['getModel3DInnerObject']=function(v8,v9){var va=v8['get']('objects');for(var vb=0x0,vc=va['length'];vbvD?vC:vD;vB+=vr('headerPaddingTop')+vr('headerPaddingBottom');}var vE=vy-vr('bodyPaddingLeft')-vr('bodyPaddingRight')-vr('paddingLeft')-vr('paddingRight');var vF=vz-vB-vA-vr('bodyPaddingTop')-vr('bodyPaddingBottom')-vr('paddingTop')-vr('paddingBottom');var vG=vE/vF;var vH=vu/vv;if(vG>vH){vy=vF*vH+vr('bodyPaddingLeft')+vr('bodyPaddingRight')+vr('paddingLeft')+vr('paddingRight');}else{vz=vE/vH+vB+vA+vr('bodyPaddingTop')+vr('bodyPaddingBottom')+vr('paddingTop')+vr('paddingBottom');}if(vy>vs*vw){vy=vs*vw;}if(vz>vt*vx){vz=vt*vx;}ve['set']('width',vy);ve['set']('height',vz);ve['set']('x',(vs-vr('actualWidth'))*0.5);ve['set']('y',(vt-vr('actualHeight'))*0.5);};if(vj){this['executeFunctionWhenChange'](vg,0x0,vm);}var vo=vf['get']('class');var vp=vo=='Video'||vo=='Video360';vg['set']('selectedIndex',0x0);if(vp){this['bind']('resize',vn,this);vn();vg['get']('items')[0x0]['get']('player')['play']();}else{ve['set']('width',vh);ve['set']('height',vi);}window['resumeAudiosBlocked']=!![];this['getMainViewer']()['set']('toolTipEnabled',![]);var vq=this['pauseCurrentPlayers'](!![]);ve['bind']('close',vl,this);ve['show'](this,!![]);};TDV['Tour']['Script']['showPopupImage']=function(vJ,vK,vL,vM,vN,vO,vP,vQ,vR,vS,vT,vU){var vV=![];var vW=function(){wd['unbind']('loaded',vZ,this);w3['call'](this);};var vX=function(){wd['unbind']('click',vX,this);if(wh!=undefined){clearTimeout(wh);}};var vY=function(){setTimeout(w7,0x0);};var vZ=function(){this['unbind']('click',vW,this);wc['set']('visible',!![]);w7();we['set']('visible',!![]);wd['unbind']('loaded',vZ,this);wd['bind']('resize',vY,this);wh=setTimeout(w0['bind'](this),0xc8);};var w0=function(){wh=undefined;if(vQ){wd['bind']('click',vX,this);w2['call'](this);}wd['bind']('userInteractionStart',w8,this);wd['bind']('userInteractionEnd',w9,this);wd['bind']('backgroundClick',w3,this);if(vK){wd['bind']('click',w5,this);wd['set']('imageCursor','hand');}we['bind']('click',w3,this);if(vT)vT['call'](this);};var w1=function(){if(vQ&&wh){clearTimeout(wh);wh=undefined;}};var w2=function(){if(vQ){w1();wh=setTimeout(w3['bind'](this),vQ);}};var w3=function(){this['getMainViewer']()['set']('toolTipEnabled',!![]);vV=!![];if(wh)clearTimeout(wh);if(wi)clearTimeout(wi);if(vQ)vX();if(vU)vU['call'](this);wd['set']('visible',![]);if(vO&&vO['get']('duration')>0x0){vO['bind']('end',w4,this);}else{wd['set']('image',null);}we['set']('visible',![]);wc['set']('visible',![]);this['unbind']('click',vW,this);wd['unbind']('backgroundClick',w3,this);wd['unbind']('userInteractionStart',w8,this);wd['unbind']('userInteractionEnd',w9,this,!![]);wd['unbind']('resize',vY,this);if(vK){wd['unbind']('click',w5,this);wd['set']('cursor','default');}we['unbind']('click',w3,this);this['resumePlayers'](wg,vR==null||vS);if(vS){this['resumeGlobalAudios']();}if(vR){this['stopGlobalAudio'](vR);}};var w4=function(){wd['set']('image',null);vO['unbind']('end',w4,this);};var w5=function(){wd['set']('image',w6()?vJ:vK);};var w6=function(){return wd['get']('image')==vK;};var w7=function(){var wj=wd['get']('actualWidth')-wd['get']('imageLeft')-wd['get']('imageWidth')+0xa;var wk=wd['get']('imageTop')+0xa;if(wj<0xa)wj=0xa;if(wk<0xa)wk=0xa;we['set']('right',wj);we['set']('top',wk);};var w8=function(){w1();if(wi){clearTimeout(wi);wi=undefined;}else{we['set']('visible',![]);}};var w9=function(){w2['call'](this);if(!vV){wi=setTimeout(wa,0x12c);}};var wa=function(){wi=undefined;we['set']('visible',!![]);w7();};var wb=function(wl){var wm=wl['get']('data');if(wm&&'extraLevels'in wm){var wn=this['rootPlayer']['createInstance'](wl['get']('class'));var wo=wm['extraLevels'];for(var wp=0x0;wpxt==_getObject(this,_getObject(this,xx)['get']('data')['panorama'])));if(xu&&!xu['get']('forceModelLoading')){xu['set']('forceModelLoading',!![]);xd['bind']('begin',function xy(){xd['unbind']('begin',xy,this);xu['set']('forceModelLoading',![]);},this);}}};TDV['Tour']['Script']['startPanoramaWithCamera']=function(xz,xA){var xB=this['getByClassName']('PlayList');if(xB['length']==0x0)return;var xC=window['currentPanoramasWithCameraChanged']==undefined||!(xz['get']('id')in window['currentPanoramasWithCameraChanged']);var xD=[];for(var xF=0x0,xG=xB['length'];xF0x0){if(window['currentPanoramasWithCameraChanged']==undefined){window['currentPanoramasWithCameraChanged']={};}var xN=xz['get']('id');window['currentPanoramasWithCameraChanged'][xN]=xD;var xO=function(){if(xN in window['currentPanoramasWithCameraChanged']){delete window['currentPanoramasWithCameraChanged'][xN];}for(var xQ=0x0;xQ=0x0?this['mainPlayList']['get']('items')[yp]['get']('media'):this['getActiveMediaWithViewer'](this['getMainViewer']());if(yr!=undefined){var yt=yr['get']('data');if(yt&&yt['label']){yq='#media-name='+encodeURIComponent(yt['label']);}else if(yp>=0x0){yq='#media='+(yp+0x1);}}if(yr){if(yo['includeCurrentView']===!![]){var yu=this['getActivePlayerWithViewer'](this['getMainViewer']());if(yu){switch(yu['get']('class')){case'PanoramaPlayer':var yv=yu['get']('yaw');var yw=yu['get']('pitch');if(!isNaN(yv)&&!isNaN(yw))yq+='&yaw='+yv['toFixed'](0x2)+'&pitch='+yw['toFixed'](0x2);break;case'Model3DPlayer':var yx=yu['get']('model');var yy=yx['get']('camera');var yz=[];yz['push']('yaw='+yy['get']('yaw')['toFixed'](0x2));yz['push']('pitch='+yy['get']('pitch')['toFixed'](0x2));yz['push']('x='+yy['get']('x')['toFixed'](0x5));yz['push']('y='+yy['get']('y')['toFixed'](0x5));yz['push']('z='+yy['get']('z')['toFixed'](0x5));if(yy['get']('class')=='OrbitModel3DCamera')yz['push']('distance='+yy['get']('distance')['toFixed'](0x5));yq+='&'+yz['join']('&');break;}}}if(yo['includeCurrentVisibleHotspots']===!![]){var yA=this['getOverlays'](yr);var yB=[];var yC=[];for(var yD=0x0,yE=yA['length'];yD0x0)yq+='&son='+yB['join'](',');if(yC['length']>0x0)yq+='&hon='+yC['join'](',');if(yr['get']('class')=='Model3D'){var yJ=yr['get']('variant');if(yJ)yq+='&variant='+yJ;var yK=yr['get']('objects');var yL=[];var yM=[];yK['forEach'](function(yO){if(yO['get']('class')=='InnerModel3DObject')(yO['get']('enabled')?yL:yM)['push'](yO['get']('objectId'));});if(yL['length']>0x0)yq+='&sobjids='+yL['join'](',');if(yM['length']>0x0)yq+='&hobjids='+yM['join'](',');}}if(yo['includeCurrentMeasureModel3DObjects']===!![]&&yr['get']('class')=='Model3D'){var yN=[];yr['get']('objects')['forEach'](function(yP){if(yP['get']('class')=='MeasureModel3DObject'&&yP['get']('mode')!='create'){var yQ=[yP['get']('data')['id'],yP['get']('x'),yP['get']('y'),yP['get']('z')];yP['get']('points')['forEach'](function(yR){yQ['push'](yR['get']('x'),yR['get']('y'),yR['get']('z'));});if(yQ['length']>0x4){yN['push'](yQ['join'](','));}}});if(yN['length']>0x0)yq+='&measures='+yN['join']('+');}}if(yq&&yo['setHash']===!![]){location['hash']=yq;}return yq;};TDV['Tour']['Script']['updateMediaLabelFromPlayList']=function(yS,yT,yU){var yV=function(){var yX=yS['get']('selectedIndex');if(yX>=0x0){var yY=function(){z1['unbind']('begin',yY);yZ(yX);};var yZ=function(z2){var z3=z1['get']('media');var z4=z3['get']('data');var z5=z4!==undefined?z4['description']:undefined;z0(z5);};var z0=function(z6){if(z6!==undefined){yT['set']('html',''+z6+'');}else{yT['set']('html','');}var z7=yT['get']('html');yT['set']('visible',z7!==undefined&&z7);};var z1=yS['get']('items')[yX];if(yT['get']('html')){z0('Loading...');z1['bind']('begin',yY);}else{yZ(yX);}}};var yW=function(){yT['set']('html',undefined);yS['unbind']('change',yV,this);yU['unbind']('stop',yW,this);};if(yU){yU['bind']('stop',yW,this);}yS['bind']('change',yV,this);yV();};TDV['Tour']['Script']['updateVideoCues']=function(z8,z9){var za=z8['get']('items')[z9];var zb=za['get']('media');if(zb['get']('cues')['length']==0x0)return;var zc=za['get']('player');var zd=[];var ze=function(){if(z8['get']('selectedIndex')!=z9){zb['unbind']('cueChange',zf,this);z8['unbind']('change',ze,this);}};var zf=function(zg){var zh=zg['data']['activeCues'];for(var zi=0x0,zj=zd['length'];zizc['get']('currentTime')||zk['get']('endTime')0x0){zB=this['mixObject'](zB||{},{'theme':{'window':{'width':undefined,'left':zC,'right':zC}}});}}var zD=this['get']('data')['textToSpeechConfig']['speechOnQuizQuestion']&&!!zA['title'];if(zD)this['textToSpeech'](zA['title'],zv);zy=zx['showQuestion'](zv,zB);zy['then'](function(zE){if(zD)this['stopTextToSpeech']();this['resumePlayers'](zz,!![]);}['bind'](this));}return zy;};TDV['Tour']['Script']['quizShowScore']=function(zF){var zG=this['get']('data');var zH=zG['quiz'];if(zH){if(this['get']('isMobile')){zF=zF||{};zF=this['mixObject'](zF,zG[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig']);}return zH['showScore'](zF);}};TDV['Tour']['Script']['quizShowTimeout']=function(zI,zJ){var zK=this['get']('data');var zL=zK['quiz'];if(zL){if(this['get']('isMobile')){zJ=zJ||{};zJ=this['mixObject'](zJ,zK[this['get']('orientation')=='portrait'?'scorePortraitConfig':'scoreLandscapeConfig']);}zL['showTimeout'](zI,zJ);}};TDV['Tour']['Script']['stopTextToSpeech']=function(zM){if(window['speechSynthesis']&&(zM==undefined||this['t2sLastID']==zM)){var zN=window['speechSynthesis'];if(zN['speaking']){zN['cancel']();}this['t2sLastID']=undefined;}};TDV['Tour']['Script']['getStateTextToSpeech']=function(zO){return this['t2sLastID']==zO?'playing':'stopped';};TDV['Tour']['Script']['textToSpeech']=function(zP,zQ,zR){if(this['get']('mute')){return;}var zS=this['get']('data');var zT=zS['disableTTS']||![];if(zT)return;if(zQ!=undefined&&this['t2sLastID']!=zQ||zQ==undefined){zR=zR||0x0;if(this['t2sLastID']&&zR>this['t2sLastPriority']){return;}var zU=zS['tour'];var zV=zS['textToSpeechConfig'];var zW=zS['localeManager']['currentLocaleID'];if(window['speechSynthesis']){var zX=window['speechSynthesis'];if(zX['speaking']){zX['cancel']();}var zY=new SpeechSynthesisUtterance(zP);if(zW)zY['lang']=zW;var zZ;if(zV){zY['volume']=zV['volume'];zY['pitch']=zV['pitch'];zY['rate']=zV['rate'];if(zV['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}zY['onend']=function(){this['t2sLastID']=null;if(zZ)clearInterval(zZ);if(zV['stopBackgroundAudio'])this['resumeGlobalAudios']();}['bind'](this);if(navigator['userAgent']['indexOf']('Chrome')!=-0x1&&!this['get']('isMobile')){zZ=setInterval(function(){zX['pause']();zX['resume']();},0xbb8);}zX['speak'](zY);this['t2sLastPriority']=zR;this['t2sLastID']=zQ;}else if(zU['isMobileApp']()){if(!zU['isIOS']()){var A0=function(A1,A2){var A3={'command':'tts','type':A1};if(A2)A3=this['mixObject'](A3,A2);android['sendJSON'](JSON['stringify'](A3));}['bind'](this);android['onTTSEnd']=function(){this['t2sLastID']=null;if(zV['stopBackgroundAudio'])this['resumeGlobalAudios']();android['onTTSEnd']=undefined;}['bind'](this);A0('stop');if(zV){A0('init',{'volume':zV['volume'],'pitch':zV['pitch'],'rate':zV['rate'],'language':zW});if(zV['stopBackgroundAudio'])this['pauseGlobalAudios'](null,!![]);}A0('play',{'text':zP,'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(A4){var A5=A4['get']('class');var A6;if(A5=='HTMLText'){var A7=A4['get']('html');if(A7){A6=this['htmlToPlainText'](A7,{'linkProcess':function(A8,A9){return A9;}});}}else if(A5=='BaseButton'){A6=A4['get']('label');}else if(A5=='Label'){A6=A4['get']('text');}if(A6){this['textToSpeech'](A6,A4['get']('id'));}};TDV['Tour']['Script']['toggleTextToSpeechComponent']=function(Aa){var Ab=Aa['get']('id');if(this['getStateTextToSpeech'](Ab)!='playing')this['textToSpeechComponent'](Aa);else this['stopTextToSpeech'](Ab);};TDV['Tour']['Script']['_initTTSTooltips']=function(){function Ac(Ae){var Af=Ae['source'];this['textToSpeech'](Af['get']('toolTip'),Af['get']('id'),0x1);}function Ad(Ag){var Ah=Ag['source'];this['stopTextToSpeech'](Ah['get']('id'));}setTimeout(function(){var Ai=this['getByClassName']('UIComponent');for(var Aj=0x0,Ak=Ai['length'];Aj/i);if(AC){AB=AB['substring'](0x0,AC['index']);}const AD=AB['match'](/]*>/i);if(AD){AB=AB['substring'](AD['index']+AD[0x0]['length'],AB['length']);}AB=AB['replace'](/<(script|style)( [^>]*)*>((?!<\/\1( [^>]*)*>).)*<\/\1>/gi,'');AB=AB['replace'](/<(\/)?((?!h[1-6]( [^>]*)*>)(?!img( [^>]*)*>)(?!a( [^>]*)*>)(?!ul( [^>]*)*>)(?!ol( [^>]*)*>)(?!li( [^>]*)*>)(?!p( [^>]*)*>)(?!div( [^>]*)*>)(?!td( [^>]*)*>)(?!br( [^>]*)*>)[^>\/])[^<>]*>/gi,'');AB=AB['replace'](/]*)>/gi,function(AJ,AK){var AL='';var AM='';var AN=/src="([^"]*)"/i['exec'](AK);var AO=/alt="([^"]*)"/i['exec'](AK);if(AN!==null){AL=AN[0x1];}if(AO!==null){AM=AO[0x1];}if(typeof At==='function'){return At(AL,AM);}if(AM===''){return'![image]\x20('+AL+')';}return'!['+AM+']\x20('+AL+')';});function AE(){return function(AP,AQ,AR,AS){var AT=0x0;if(AR&&/start="([0-9]+)"/i['test'](AR)){AT=/start="([0-9]+)"/i['exec'](AR)[0x1]-0x1;}var AU='

'+AS['replace'](/]*>(((?!]*>)(?!<\/li>).)*)<\/li>/gi,function(AV,AW){var AX=0x0;var AY=AW['replace'](/(^|(
))(?!

)/gi,function(){if(AQ==='o'&&AX===0x0){AT+=0x1;AX+=0x1;return''+AT+Ar(Ay,Ax-String(AT)['length']);}return''+AA;});return AY;})+'

';return AU;};}if(Av==='linebreak'){AB=AB['replace'](/<\/?ul[^>]*>|<\/?ol[^>]*>|<\/?li[^>]*>/gi,'\x0a');}else if(Av==='indention'){while(/<(o|u)l[^>]*>(.*)<\/\1l>/gi['test'](AB)){AB=AB['replace'](/<(o|u)l([^>]*)>(((?!<(o|u)l[^>]*>)(?!<\/(o|u)l>).)*)<\/\1l>/gi,AE());}}if(Au==='linebreak'){AB=AB['replace'](/]*>([^<]*)<\/h\1>/gi,'\x0a$2\x0a');}else if(Au==='underline'){AB=AB['replace'](/]*>(((?!<\/h1>).)*)<\/h1>/gi,function(AZ,B0){return'\x0a \x0a'+B0+'\x0a'+Ar('=',B0['length'])+'\x0a \x0a';});AB=AB['replace'](/]*>(((?!<\/h2>).)*)<\/h2>/gi,function(B1,B2){return'\x0a \x0a'+B2+'\x0a'+Ar('-',B2['length'])+'\x0a \x0a';});AB=AB['replace'](/]*>(((?!<\/h\1>).)*)<\/h\1>/gi,function(B3,B4,B5){return'\x0a \x0a'+B5+'\x0a \x0a';});}else if(Au==='hashify'){AB=AB['replace'](/]*>([^<]*)<\/h\1>/gi,function(B6,B7,B8){return'\x0a \x0a'+Ar('#',B7)+'\x20'+B8+'\x0a \x0a';});}AB=AB['replace'](/]*)*>|]*)*>|<\/p( [^>]*)*>|]*)*>|<\/div( [^>]*)*>|]*)*>|<\/td( [^>]*)*>/gi,'\x0a');AB=AB['replace'](/]*href="([^"]*)"[^>]*>([^<]+)<\/a[^>]*>/gi,function(B9,Ba,Bb){if(typeof As==='function'){return As(Ba,Bb);}return'\x20['+Bb+']\x20('+Ba+')\x20';});AB=AB['replace'](/\n[ \t\f]*/gi,'\x0a');AB=AB['replace'](/\n\n+/gi,'\x0a');if(Az){AB=AB['replace'](/( |\t)+/gi,'\x20');AB=AB['replace'](/ /gi,'\x20');}else{AB=AB['replace'](/( | |\t)+/gi,'\x20');}AB=AB['replace'](/\n +/gi,'\x0a');AB=AB['replace'](/^ +/gi,'');while(AB['indexOf']('\x0a')===0x0){AB=AB['substring'](0x1);}if(AB['length']===0x0||AB['lastIndexOf']('\x0a')!==AB['length']-0x1){AB+='\x0a';}return AB;};TDV['Tour']['Script']['openEmbeddedPDF']=function(Bc,Bd){var Be=!!window['MSInputMethodContext']&&!!document['documentMode'];if(Be){this['openLink'](Bd,'_blank');return;}var Bf=Bc['get']('class');var Bg=!new RegExp('^(?:[a-z]+:)?//','i')['test'](Bd);if(Bg&&Bf=='WebFrame'){var Bh=location['origin']+location['pathname'];Bc['set']('url','lib/pdfjs/web/viewer.html?file='+encodeURIComponent(Bh['substring'](0x0,Bh['lastIndexOf']('/'))+'/'+Bd)+'#0');}else{var Bi=location['origin']==new URL(Bd)['origin'];var Bj=''+'

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

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