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

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

)/gi,function(){if(AR==='o'&&AY===0x0){AU+=0x1;AY+=0x1;return''+AU+As(Az,Ay-String(AU)['length']);}return''+AB;});return AZ;})+'

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

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

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