try { (function() { var requirejs,require,define; (function(){function J(d){return ia.call(d)==="[object Function]"}function X(d){return ia.call(d)==="[object Array]"}function Y(d,f,l){for(var j in f)if(!(j in F)&&(!(j in d)||l))d[j]=f[j];return h}function K(d,f,l){d=new Error(f+"\nhttp://requirejs.org/docs/errors.html#"+d);if(l)d.originalError=l;return d}function ja(d,f,l){var j,q,o;for(j=0;o=f[j];j++){o=typeof o==="string"?{name:o}:o;q=o.location;if(l&&(!q||q.indexOf("/")!==0&&q.indexOf(":")===-1))q=l+"/"+(q||o.name);d[o.name]={name:o.name,location:q|| o.name,main:(o.main||"main").replace(ua,"").replace(ka,"")}}}function Z(d,f){if(d.holdReady)d.holdReady(f);else if(f)d.readyWait+=1;else d.ready(true)}function va(d){function f(a){var b,c;for(b=0;c=a[b];b++)if(c==="."){a.splice(b,1);b-=1}else if(c==="..")if(b===1&&(a[2]===".."||a[0]===".."))break;else if(b>0){a.splice(b-1,2);b-=2}}function l(a,b){var c;if(a.charAt(0)===".")if(b){if(r.pkgs[b])b=[b];else{b=b.split("/");b=b.slice(0,b.length-1)}a=b.concat(a.split("/"));f(a);c=r.pkgs[b=a[0]];a=a.join("/"); if(c&&a===b+"/"+c.main)a=b}return a}function j(a,b){var c=a?a.indexOf("!"):-1,e=null,g=b?b.name:null,k=a,n,m;if(c!==-1){e=a.substring(0,c);a=a.substring(c+1,a.length)}if(e)e=l(e,g);if(a){if(e)n=(c=p[e])?c.normalize?c.normalize(a,function(u){return l(u,g)}):l(a,g):"__$p"+g+"@"+a;else n=l(a,g);m=$[n];if(!m){m=h.toModuleUrl?h.toModuleUrl(i,n,b):i.nameToUrl(n,null,b);$[n]=m}}return{prefix:e,name:n,parentMap:b,url:m,originalName:k,fullName:e?e+"!"+n:n}}function q(){var a=true,b=r.priorityWait,c,e;if(b){for(e= 0;c=b[e];e++)if(!v[c]){a=false;break}a&&delete r.priorityWait}return a}function o(a){return function(b){a.exports=b}}function L(a,b,c){return function(){var e=[].concat(wa.call(arguments,0)),g;if(c&&J(g=e[e.length-1]))g.__requireJsBuild=true;e.push(b);return a.apply(null,e)}}function la(a,b){b=L(i.require,a,b);Y(b,{nameToUrl:L(i.nameToUrl,a),toUrl:L(i.toUrl,a),defined:L(i.requireDefined,a),specified:L(i.requireSpecified,a),ready:h.ready,isBrowser:h.isBrowser});if(h.paths)b.paths=h.paths;return b} function xa(a){var b,c,e,g,k,n,m,u=T[a];if(u)for(g=0;c=u[g];g++){b=c.fullName;c=j(c.originalName,c.parentMap);c=c.fullName;e=w[b]||[];k=w[c];if(c!==b){if(b in y){delete y[b];y[c]=true}w[c]=k?k.concat(e):e;delete w[b];for(k=0;k0)){if(r.priorityWait)if(q())C();else return;for(g in v)if(!(g in F)){c=true; if(!v[g])if(b)a+=g+" ";else{e=true;break}}if(c||i.waitCount){if(b&&a){g=K("timeout","Load timeout for modules: "+a);g.requireType="timeout";g.requireModules=a;return h.onError(g)}if(e||i.scriptCount){if((A||qa)&&!da)da=setTimeout(function(){da=0;ca()},50)}else{if(i.waitCount){for(D=0;a=ba[D];D++)pa(a,{});if(ea<5){ea+=1;ca()}}ea=0;h.checkReadyState()}}}}function ra(a,b){var c=b.name,e=b.fullName,g;if(!(e in p||e in v)){G[a]||(G[a]=p[a]);v[e]||(v[e]=false);g=function(k){h.onPluginLoad&&h.onPluginLoad(i, a,c,k);aa({prefix:b.prefix,name:b.name,fullName:b.fullName,callback:function(){return k}});v[e]=true};g.fromText=function(k,n){var m=N;i.loaded[k]=false;i.scriptCount+=1;if(m)N=false;h.exec(n);if(m)N=true;i.completeLoad(k)};G[a].load(c,la(b.parentMap,true),g,r)}}function Ba(a){if(a.prefix&&a.name.indexOf("__$p")===0&&p[a.prefix])a=j(a.originalName,a.parentMap);var b=a.prefix,c=a.fullName,e=i.urlFetched;if(!(y[c]||v[c])){y[c]=true;if(b)if(p[b])ra(b,a);else{if(!O[b]){O[b]=[];(w[b]||(w[b]=[])).push({onDep:function(g){if(g=== b){var k,n=O[b];for(g=0;g0;n--){k=c.slice(0,n).join("/");if(e[k]){c.splice(0,n,e[k]);break}else if(k=g[k]){a=a===k.name?k.location+"/"+k.main:k.location; c.splice(0,n,a);break}}b=c.join("/")+(b||".js");b=(b.charAt(0)==="/"||b.match(/^\w+:/)?"":m.baseUrl)+b}return m.urlArgs?b+((b.indexOf("?")===-1?"?":"&")+m.urlArgs):b}};i.jQueryCheck=U;i.resume=C;return i}function Da(){var d,f,l;if(Q&&Q.readyState==="interactive")return Q;d=document.getElementsByTagName("script");for(f=d.length-1;f>-1&&(l=d[f]);f--)if(l.readyState==="interactive")return Q=l;return null}var Ea=/(\/\*([\s\S]*?)\*\/|\/\/(.*)$)/mg,Fa=/require\(["']([^'"\s]+)["']\)/g,ua=/^\.\//,ka=/\.js$/, ia=Object.prototype.toString,x=Array.prototype,wa=x.slice,Ca=x.splice,A=!!(typeof window!=="undefined"&&navigator&&document),qa=!A&&typeof importScripts!=="undefined",Ga=A&&navigator.platform==="PLAYSTATION 3"?/^complete$/:/^(complete|loaded)$/,sa=typeof opera!=="undefined"&&opera.toString()==="[object Opera]",ya="_r@@",F={},H={},V=[],Q=null,Ha=false,ea=0,N=false,h;x={};var ga,s,I,W,z,R,S,D,ha,ta,E,U,da;if(typeof define==="undefined"){if(typeof requirejs!=="undefined")if(J(requirejs))return;else{x= requirejs;requirejs=undefined}if(typeof require!=="undefined"&&!J(require)){x=require;require=undefined}h=requirejs=function(d,f,l){var j="_",q;if(!X(d)&&typeof d!=="string"){q=d;if(X(f)){d=f;f=l}else d=[]}if(q&&q.context)j=q.context;l=H[j]||(H[j]=va(j));q&&l.configure(q);return l.require(d,f)};if(typeof require==="undefined")require=h;h.toUrl=function(d){return H._.toUrl(d)};h.version="0.25.0";h.isArray=X;h.isFunction=J;h.mixin=Y;h.jsExtRegExp=/^\/|:|\?|\.js$/;s=h.s={contexts:H,skipAsync:{},isPageLoaded:!A, readyCalls:[]};if(h.isAsync=h.isBrowser=A){I=s.head=document.getElementsByTagName("head")[0];if(W=document.getElementsByTagName("base")[0])I=s.head=W.parentNode}h.onError=function(d){throw d;};h.load=function(d,f,l){var j=d.loaded;Ha=false;j[f]||(j[f]=false);d.scriptCount+=1;h.attach(l,d,f);if(d.jQuery&&!d.jQueryIncremented){Z(d.jQuery,true);d.jQueryIncremented=true}};define=h.def=function(d,f,l){var j;if(typeof d!=="string"){l=f;f=d;d=null}if(!h.isArray(f)){l=f;f=[]}if(!d&&!f.length&&h.isFunction(l))if(l.length){l.toString().replace(Ea, "").replace(Fa,function(q,o){f.push(o)});f=(l.length===1?["require"]:["require","exports","module"]).concat(f)}if(N){j=ga||Da();if(!j)return h.onError(K("interactive","No matching script interactive for "+l));d||(d=j.getAttribute("data-requiremodule"));j=H[j.getAttribute("data-requirecontext")]}(j?j.defQueue:V).push([d,f,l])};define.amd={multiversion:true,plugins:true,jQuery:true};h.exec=function(d){return eval(d)};h.execCb=function(d,f,l,j){return f.apply(j,l)};h.onScriptLoad=function(d){var f=d.currentTarget|| d.srcElement,l;if(d.type==="load"||Ga.test(f.readyState)){Q=null;d=f.getAttribute("data-requirecontext");l=f.getAttribute("data-requiremodule");H[d].completeLoad(l);f.detachEvent&&!sa?f.detachEvent("onreadystatechange",h.onScriptLoad):f.removeEventListener("load",h.onScriptLoad,false)}};h.attach=function(d,f,l,j,q){var o;if(A){j=j||h.onScriptLoad;o=f&&f.config&&f.config.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");o.type=q||"text/javascript"; o.charset="utf-8";o.async=!s.skipAsync[d];f&&o.setAttribute("data-requirecontext",f.contextName);o.setAttribute("data-requiremodule",l);if(o.attachEvent&&!sa){N=true;o.attachEvent("onreadystatechange",j)}else o.addEventListener("load",j,false);o.src=d;ga=o;W?I.insertBefore(o,W):I.appendChild(o);ga=null;return o}else if(qa){j=f.loaded;j[l]=false;importScripts(d);f.completeLoad(l)}return null};if(A){z=document.getElementsByTagName("script");for(D=z.length-1;D>-1&&(R=z[D]);D--){if(!I)I=R.parentNode; if(S=R.getAttribute("data-main")){if(!x.baseUrl){z=S.split("/");R=z.pop();z=z.length?z.join("/")+"/":"./";x.baseUrl=z;S=R.replace(ka,"")}x.deps=x.deps?x.deps.concat(S):[S];break}}}s.baseUrl=x.baseUrl;h.pageLoaded=function(){if(!s.isPageLoaded){s.isPageLoaded=true;ha&&clearInterval(ha);if(ta)document.readyState="complete";h.callReady()}};h.checkReadyState=function(){var d=s.contexts,f;for(f in d)if(!(f in F))if(d[f].waitCount)return;s.isDone=true;h.callReady()};h.callReady=function(){var d=s.readyCalls, f,l,j;if(s.isPageLoaded&&s.isDone){if(d.length){s.readyCalls=[];for(f=0;l=d[f];f++)l()}d=s.contexts;for(j in d)if(!(j in F)){f=d[j];if(f.jQueryIncremented){Z(f.jQuery,false);f.jQueryIncremented=false}}}};h.ready=function(d){s.isPageLoaded&&s.isDone?d():s.readyCalls.push(d);return h};if(A){if(document.addEventListener){document.addEventListener("DOMContentLoaded",h.pageLoaded,false);window.addEventListener("load",h.pageLoaded,false);if(!document.readyState){ta=true;document.readyState="loading"}}else if(window.attachEvent){window.attachEvent("onload", h.pageLoaded);if(self===self.top)ha=setInterval(function(){try{if(document.body){document.documentElement.doScroll("left");h.pageLoaded()}}catch(d){}},30)}document.readyState==="complete"&&h.pageLoaded()}h(x);if(h.isAsync&&typeof setTimeout!=="undefined"){E=s.contexts[x.context||"_"];E.requireWait=true;setTimeout(function(){E.requireWait=false;E.takeGlobalQueue();E.jQueryCheck();E.scriptCount||E.resume();h.checkReadyState()},0)}}})();/* jQuery v3.6.0 | (c) OpenJS Foundation and other contributors | jquery.org/license */ !function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"== typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.6.0",S=function(e,t){return new S.fn.init(e, t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+ M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>> 10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\x00"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length, r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1])if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else{if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n, e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r= [];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e? 1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o, le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&& (n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName), d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID= function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1=== n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length|| v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML=""; var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector|| a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1}, j=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e, t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling", first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&& (t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n, r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; function j(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||D,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&& 3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn, D=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i; ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"], tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function je(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function qe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t, "handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var _t,zt=[],Ut=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||S.expando+"_"+wt.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&& (Ut.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ut.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ut,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0=== i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,zt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((_t=E.implementation.createHTMLDocument("").body).innerHTML="
",2===_t.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i= N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t, e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&& (f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect(); else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent; return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Fe(y.pixelPosition,function(e,t){if(t)return t=We(e,n),Pe.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"}, function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}), S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "), function(e,n){S.fn[n]=function(e,t){return 0|=|<=|>=)\s*(\d+)\s*x\s*(\d+)\s*$/)){c=parseInt(f[2]);var l=parseInt(f[3]);switch(f[1]){case "<":var p=function(q,n){return q":p=function(q,n){return q>n};break;case "=":p=function(q,n){return q==n};break;case "<=":p=function(q,n){return q<=n};break;case ">=":p=function(q,n){return q>=n}}return p(screen.width,c)&&p(screen.height,l)||this.mobile&&p(screen.width,l)&&p(screen.height,c)}return!1}if(m(c)){for(f=0;fT;T++){var aa=E[T];if(c(aa)&&(r.isArray(aa)||r.isArguments(aa))){K||(aa=g(aa,K,P));var ba=0,da=aa.length;for(J.length+=da;da>ba;)J[M++]= aa[ba++]}else P||(J[M++]=aa)}return J}function d(E){return function(K,P,T){var J={};return P=q(P,T),r.each(K,function(M,X){X=P(M,X,K);E(J,M,X)}),J}}function c(E){E=W(E);return"number"==typeof E&&0<=E&&R>=E}function f(E){return function(K){return null==K?void 0:K[E]}}function l(E){if(!r.rI(E))return{};if(Q)return Q(E);t.prototype=E;E=new t;return t.prototype=null,E}function p(E,K){return function(P){var T=arguments.length;if(2>T||null==P)return P;for(var J=1;T>J;J++)for(var M=arguments[J],X=E(M),aa= X.length,ba=0;aa>ba;ba++){var da=X[ba];K&&void 0!==P[da]||(P[da]=M[da])}return P}}function q(E,K,P){return null==E?r.identity:r.isFunction(E)?n(E,K,P):r.rI(E)?r.QWa(E):r.Uya(E)}function n(E,K,P){if(void 0===K)return E;switch(null==P?3:P){case 1:return function(T){return E.call(K,T)};case 2:return function(T,J){return E.call(K,T,J)};case 3:return function(T,J,M){return E.call(K,T,J,M)};case 4:return function(T,J,M,X){return E.call(K,T,J,M,X)}}return function(){return E.apply(K,arguments)}}function r(E){return E instanceof r?E:this instanceof r?void(this.bD=E):new r(E)}function t(){}function u(E){return function(K,P,T,J){P=n(P,J,4);var M=!c(K)&&r.keys(K),X=(M||K).length,aa=0arguments.length&&(T=K[M?M[aa]:aa],aa+=E);for(var ba=P,da=T;0<=aa&&X>aa;aa+=E){var ea=M?M[aa]:aa;da=ba(da,K[ea],ea,K)}return da}}function v(E){return function(K,P,T){P=q(P,T);T=W(K);for(var J=0J;J+=E)if(P(K[J],J,K))return J;return-1}}function w(E,K,P){return function(T,J,M){var X=0,aa=W(T);if("number"==typeof M)0M;M+=E)if(T[M]===J)return M;return-1}}function x(E,K){var P=L.length,T=E.constructor;T=r.isFunction(T)&&T.prototype||z;var J="constructor";for(r.has(E,J)&&!r.contains(K,J)&&K.push(J);P--;)J=L[P],J in E&&E[J]!==T[J]&&!r.contains(K,J)&&K.push(J)}var y=this,A=y._,B=Array.prototype,z=Object.prototype,C=B.push,H=B.slice, D=z.toString,I=z.hasOwnProperty,F=Array.isArray,N=Object.keys,S=Function.prototype.bind,Q=Object.create;"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=r),exports._=r):y._=r;r.VERSION="1.8.3";var R=Math.pow(2,53)-1,W=f("length");r.each=r.forEach=function(E,K,P){K=n(K,P);var T;if(c(E))for(P=0,T=E.length;T>P;P++)K(E[P],P,E);else{var J=r.keys(E);P=0;for(T=J.length;T>P;P++)K(E[J[P]],J[P],E)}return E};r.map=function(E,K,P){K=q(K,P);P=!c(E)&&r.keys(E);for(var T= (P||E).length,J=Array(T),M=0;T>M;M++){var X=P?P[M]:M;J[M]=K(E[X],X,E)}return J};r.reduce=u(1);r.reduceRight=u(-1);r.find=r.detect=function(E,K,P){var T;return T=c(E)?r.findIndex(E,K,P):r.GUa(E,K,P),void 0!==T&&-1!==T?E[T]:void 0};r.filter=r.select=function(E,K,P){var T=[];return K=q(K,P),r.each(E,function(J,M,X){K(J,M,X)&&T.push(J)}),T};r.reject=function(E,K,P){return r.filter(E,r.negate(q(K)),P)};r.every=r.all=function(E,K,P){K=q(K,P);P=!c(E)&&r.keys(E);for(var T=(P||E).length,J=0;T>J;J++){var M= P?P[J]:J;if(!K(E[M],M,E))return!1}return!0};r.some=r.any=function(E,K,P){K=q(K,P);P=!c(E)&&r.keys(E);for(var T=(P||E).length,J=0;T>J;J++){var M=P?P[J]:J;if(K(E[M],M,E))return!0}return!1};r.contains=r.includes=r.include=function(E,K,P,T){return c(E)||(E=r.values(E)),("number"!=typeof P||T)&&(P=0),0<=r.indexOf(E,K,P)};r.invoke=function(E,K){var P=H.call(arguments,2),T=r.isFunction(K);return r.map(E,function(J){var M=T?K:J[K];return null==M?M:M.apply(J,P)})};r.pluck=function(E,K){return r.map(E,r.Uya(K))}; r.max=function(E,K,P){var T,J=-1/0,M=-1/0;if(null==K&&null!=E){E=c(E)?E:r.values(E);for(var X=0,aa=E.length;aa>X;X++)P=E[X],P>J&&(J=P)}else K=q(K,P),r.each(E,function(ba,da,ea){T=K(ba,da,ea);(T>M||T===-1/0&&J===-1/0)&&(J=ba,M=T)});return J};r.min=function(E,K,P){var T,J=1/0,M=1/0;if(null==K&&null!=E){E=c(E)?E:r.values(E);for(var X=0,aa=E.length;aa>X;X++)P=E[X],J>P&&(J=P)}else K=q(K,P),r.each(E,function(ba,da,ea){T=K(ba,da,ea);(M>T||1/0===T&&1/0===J)&&(J=ba,M=T)});return J};r.l_a=function(E){for(var K= c(E)?E:r.values(E),P=K.length,T=Array(P),J=0;P>J;J++)E=r.random(0,J),E!==J&&(T[J]=T[E]),T[E]=K[J];return T};r.sample=function(E,K,P){return null==K||P?(c(E)||(E=r.values(E)),E[r.random(E.length-1)]):r.l_a(E).slice(0,Math.max(0,K))};r.sortBy=function(E,K,P){return K=q(K,P),r.pluck(r.map(E,function(T,J,M){return{value:T,index:J,Pua:K(T,J,M)}}).sort(function(T,J){var M=T.Pua,X=J.Pua;if(M!==X){if(M>X||void 0===M)return 1;if(X>M||void 0===X)return-1}return T.index-J.index}),"value")};r.groupBy=d(function(E, K,P){r.has(E,P)?E[P].push(K):E[P]=[K]});d(function(E,K,P){E[P]=K});d(function(E,K,P){r.has(E,P)?E[P]++:E[P]=1});r.toArray=function(E){return E?r.isArray(E)?H.call(E):c(E)?r.map(E,r.identity):r.values(E):[]};r.size=function(E){return null==E?0:c(E)?E.length:r.keys(E).length};r.first=r.head=function(E,K,P){return null==E?void 0:null==K||P?E[0]:r.initial(E,E.length-K)};r.initial=function(E,K,P){return H.call(E,0,Math.max(0,E.length-(null==K||P?1:K)))};r.last=function(E,K,P){return null==E?void 0:null== K||P?E[E.length-1]:r.rest(E,Math.max(0,E.length-K))};r.rest=function(E,K,P){return H.call(E,null==K||P?1:K)};r.compact=function(E){return r.filter(E,r.identity)};r.flatten=function(E,K){return g(E,K,!1)};r.without=function(E){return r.difference(E,H.call(arguments,1))};r.uniq=r.unique=function(E,K,P,T){r.isBoolean(K)||(T=P,P=K,K=!1);null!=P&&(P=q(P,T));T=[];for(var J=[],M=0,X=W(E);X>M;M++){var aa=E[M],ba=P?P(aa,M,E):aa;K?(M&&J===ba||T.push(aa),J=ba):P?r.contains(J,ba)||(J.push(ba),T.push(aa)):r.contains(T, aa)||T.push(aa)}return T};r.union=function(){return r.uniq(g(arguments,!0,!0))};r.intersection=function(E){for(var K=[],P=arguments.length,T=0,J=W(E);J>T;T++){var M=E[T];if(!r.contains(K,M)){for(var X=1;P>X&&r.contains(arguments[X],M);X++);X===P&&K.push(M)}}return K};r.difference=function(E){var K=g(arguments,!0,!0,1);return r.filter(E,function(P){return!r.contains(K,P)})};r.zip=function(){return r.R_a(arguments)};r.R_a=function(E){for(var K=E&&r.max(E,W).length||0,P=Array(K),T=0;K>T;T++)P[T]=r.pluck(E, T);return P};r.object=function(E,K){for(var P={},T=0,J=W(E);J>T;T++)K?P[E[T]]=K[T]:P[E[T][0]]=E[T][1];return P};r.findIndex=v(1);r.HUa=v(-1);r.sortedIndex=function(E,K,P,T){P=q(P,T,1);K=P(K);T=0;for(var J=W(E);J>T;){var M=Math.floor((T+J)/2);P(E[M])J;J++,E+=P)T[J]=E;return T};r.bind=function(E,K){function P(){return b(E, P,K,this,T.concat(H.call(arguments)))}if(S&&E.bind===S)return S.apply(E,H.call(arguments,1));if(!r.isFunction(E))throw new TypeError("Bind must be called on a function");var T=H.call(arguments,2);return P};r.hda=function(E){function K(){for(var T=0,J=P.length,M=Array(J),X=0;J>X;X++)M[X]=P[X]===r?arguments[T++]:P[X];for(;T=P)throw Error("bindAll must be passed function names"); for(K=1;P>K;K++){var T=arguments[K];E[T]=r.bind(E[T],E)}return E};r.memoize=function(E,K){function P(T){var J=P.cache,M=""+(K?K.apply(this,arguments):T);return r.has(J,M)||(J[M]=E.apply(this,arguments)),J[M]}return P.cache={},P};r.delay=function(E,K){var P=H.call(arguments,2);return setTimeout(function(){return E.apply(null,P)},K)};r.defer=r.hda(r.delay,r,1);r.throttle=function(E,K,P){function T(){ba=!1===P.NWa?0:r.now();aa=null;X=E.apply(J,M);aa||(J=M=null)}var J,M,X,aa=null,ba=0;P||(P={});return function(){var da= r.now();ba||!1!==P.NWa||(ba=da);var ea=K-(da-ba);return J=this,M=arguments,0>=ea||ea>K?(aa&&(clearTimeout(aa),aa=null),ba=da,X=E.apply(J,M),aa||(J=M=null)):aa||!1===P.G1a||(aa=setTimeout(T,ea)),X}};r.debounce=function(E,K,P){function T(){var da=r.now()-aa;K>da&&0<=da?J=setTimeout(T,K-da):(J=null,P||(ba=E.apply(X,M),J||(X=M=null)))}var J,M,X,aa,ba;return function(){X=this;M=arguments;aa=r.now();var da=P&&!J;return J||(J=setTimeout(T,K)),da&&(ba=E.apply(X,M),X=M=null),ba}};r.wrap=function(E,K){return r.hda(K, E)};r.negate=function(E){return function(){return!E.apply(this,arguments)}};r.compose=function(){var E=arguments,K=E.length-1;return function(){for(var P=K,T=E[K].apply(this,arguments);P--;)T=E[P].call(this,T);return T}};r.after=function(E,K){return function(){return 1>--E?K.apply(this,arguments):void 0}};r.before=function(E,K){var P;return function(){return 0<--E&&(P=K.apply(this,arguments)),1>=E&&(K=null),P}};r.once=r.hda(r.before,2);var G=!{toString:null}.propertyIsEnumerable("toString"),L="valueOf isPrototypeOf toString propertyIsEnumerable hasOwnProperty toLocaleString".split(" "); r.keys=function(E){if(!r.rI(E))return[];if(N)return N(E);var K=[],P;for(P in E)r.has(E,P)&&K.push(P);return G&&x(E,K),K};r.mba=function(E){if(!r.rI(E))return[];var K=[],P;for(P in E)K.push(P);return G&&x(E,K),K};r.values=function(E){for(var K=r.keys(E),P=K.length,T=Array(P),J=0;P>J;J++)T[J]=E[K[J]];return T};r.invert=function(E){for(var K={},P=r.keys(E),T=0,J=P.length;J>T;T++)K[E[P[T]]]=P[T];return K};r.functions=r.methods=function(E){var K=[],P;for(P in E)r.isFunction(E[P])&&K.push(P);return K.sort()}; r.extend=p(r.mba);r.gva=r.assign=p(r.keys);r.GUa=function(E,K,P){K=q(K,P);var T;P=r.keys(E);for(var J=0,M=P.length;M>J;J++)if(T=P[J],K(E[T],T,E))return T};r.PZ=function(E,K,P){var T,J,M={},X=E;if(null==X)return M;r.isFunction(K)?(J=r.mba(X),T=n(K,P)):(J=g(arguments,!1,!1,1),T=function(ia,fa,ha){return fa in ha},X=Object(X));for(var aa=0,ba=J.length;ba>aa;aa++){var da=J[aa],ea=X[da];T(ea,da,X)&&(M[da]=ea)}return M};r.defaults=p(r.mba,!0);r.create=function(E,K){E=l(E);return K&&r.gva(E,K),E};r.clone= function(E){return r.rI(E)?r.isArray(E)?E.slice():r.extend({},E):E};r.tap=function(E,K){return K(E),E};r.BWa=function(E,K){var P=r.keys(K),T=P.length;if(null==E)return!T;E=Object(E);for(var J=0;T>J;J++){var M=P[J];if(K[M]!==E[M]||!(M in E))return!1}return!0};r.isEqual=function(E,K){return k(E,K)};r.isEmpty=function(E){return null==E?!0:c(E)&&(r.isArray(E)||r.isString(E)||r.isArguments(E))?0===E.length:0===r.keys(E).length};r.isElement=function(E){return!(!E||1!==E.nodeType)};r.isArray=F||function(E){return"[object Array]"=== D.call(E)};r.rI=function(E){var K=typeof E;return"function"===K||"object"===K&&!!E};r.each("Arguments Function String Number Date RegExp Error".split(" "),function(E){r["is"+E]=function(K){return D.call(K)==="[object "+E+"]"}});r.isArguments(arguments)||(r.isArguments=function(E){return r.has(E,"callee")});"function"!=typeof/./&&"object"!=typeof Int8Array&&(r.isFunction=function(E){return"function"==typeof E||!1});r.isFinite=function(E){return isFinite(E)&&!isNaN(parseFloat(E))};r.isNaN=function(E){return r.isNumber(E)&& E!==+E};r.isBoolean=function(E){return!0===E||!1===E||"[object Boolean]"===D.call(E)};r.isNull=function(E){return null===E};r.isUndefined=function(E){return void 0===E};r.has=function(E,K){return null!=E&&I.call(E,K)};r.noConflict=function(){return y._=A,this};r.identity=function(E){return E};r.constant=function(E){return function(){return E}};r.noop=function(){};r.Uya=f;r.QWa=r.matches=function(E){return E=r.gva({},E),function(K){return r.BWa(K,E)}};r.times=function(E,K,P){var T=Array(Math.max(0, E));K=n(K,P,1);for(P=0;E>P;P++)T[P]=K(P);return T};r.random=function(E,K){return null==K&&(K=E,E=0),E+Math.floor(Math.random()*(K-E+1))};r.now=Date.now||function(){return(new Date).getTime()};F={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};var U=r.invert(F);r.escape=m(F);r.unescape=m(U);r.result=function(E,K,P){K=null==E?void 0:E[K];return void 0===K&&(K=P),r.isFunction(K)?K.call(E):K};var O=0;r.uniqueId=function(E){var K=++O+"";return E?E+K:K};r.J_a={evaluate:/<%([\s\S]+?)%>/g, sWa:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var V=/(.)^/,Y={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ca=/\\|'|\r|\n|\u2028|\u2029/g;r.template=function(E,K,P){function T(aa){return X.call(this,aa,r)}!K&&P&&(K=P);K=r.defaults({},K,r.J_a);var J=0,M="__p+='";E.replace(RegExp([(K.escape||V).source,(K.sWa||V).source,(K.evaluate||V).source].join("|")+"|$","g"),function(aa,ba,da,ea,ia){return M+=E.slice(J,ia).replace(ca,h),J=ia+aa.length,ba?M+="'+\n((__t=("+ba+"))==null?'':_.escape(__t))+\n'": da?M+="'+\n((__t=("+da+"))==null?'':__t)+\n'":ea&&(M+="';\n"+ea+"\n__p+='"),aa});M+="';\n";K.WAa||(M="with(obj||{}){\n"+M+"}\n");M="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+M+"return __p;\n";try{var X=new Function(K.WAa||"obj","_",M)}catch(aa){throw aa.source=M,aa;}return T.source="function("+(K.WAa||"obj")+"){\n"+M+"}",T};r.chain=function(E){E=r(E);return E.sFa=!0,E};r.mixin=function(E){r.each(r.functions(E),function(K){var P=r[K]=E[K];r.prototype[K]= function(){var T=[this.bD];return C.apply(T,arguments),e(this,P.apply(r,T))}})};r.mixin(r);r.each("pop push reverse shift sort splice unshift".split(" "),function(E){var K=B[E];r.prototype[E]=function(){var P=this.bD;return K.apply(P,arguments),"shift"!==E&&"splice"!==E||0!==P.length||delete P[0],e(this,P)}});r.each(["concat","join","slice"],function(E){var K=B[E];r.prototype[E]=function(){return e(this,K.apply(this.bD,arguments))}});r.prototype.value=function(){return this.bD};r.prototype.valueOf= r.prototype.toJSON=r.prototype.value;r.prototype.toString=function(){return""+this.bD};"function"==typeof define&&define.j1a&&define("oW",[],function(){return r})}).call(this)}).call(a)})();define("underscore-min",function(){});define("eg",["require","underscore-min"],function(a){a("underscore-min");return window.TDV._.noConflict()}); define("oH",["require","exports"],function(){return{G:function(a){return a+"_change"},He:"default",ub:"mouseDown",jc:"mouseMove",Zb:"mouseUp",ar:"mouseWheel",qa:"click",hm:"doubleClick",Wc:"rollOver",ac:"rollOut",mA:"mouseEnter",bp:"mouseLeave",im:"pointerOver",x0a:"pointerOut",a1:"pointerDown",b1:"pointerUp",Uj:"pointerClick",HBa:"focusIn",IBa:"focusOut",Bw:"gestureStart",K0:"gestureChange",kE:"gestureEnd",NBa:"gestureRotate",lE:"gestureScale",ec:"progress",hE:"close",OPEN:"open",An:"select",kc:"resize", LQ:"changing",pa:"change",ne:"stateChange",Wk:"cueChange",nJ:"preloaded",Z:"loaded",tc:"loadingError",Bn:"start",Kf:"stop",Jw:"play",tE:"pause",gA:"frame",Vc:"ready",Vq:"begin",sb:"end",k0a:"cancel",Vj:"press",jm:"release",gr:"repeatEnd",fp:"scroll",Efa:"movementChange",j0a:"beforeShow",fBa:"beforeHide",INIT:"init",kd:"show",sd:"hide",pJ:"showEnd",hJ:"hideEnd",UBa:"loadingScript",vCa:"processingScript",jE:"enableCookies",cBa:"applicationSet",vE:"userInteraction",Dga:"userInteractionStart",Cga:"userInteractionEnd", q1:"transitionEnd",JCa:"toolTipShow",rga:"toolTipHide",tt:"positionSet",jga:"sizeSet"}});define("cy",["require","exports"],function(){return function(){return function(a,e){void 0===e&&(e=void 0);this.name=a;this.data=e;this.source=void 0}}()}); define("bo",["require"],function(){return[123,34,70,97,100,101,73,110,69,102,102,101,99,116,34,58,32,256,112,114,111,112,101,114,116,105,101,115,270,272,125,44,32,34,112,97,114,101,110,269,271,34,264,266,268,34,286,288,80,104,111,116,111,65,108,98,117,109,80,108,97,121,76,105,115,116,73,116,101,109,284,273,275,277,279,281,283,271,256,109,101,100,105,97,326,34,116,121,277,284,34,304,306,308,310,312,301,287,289,315,121,278,340,342,344,296,347,307,309,311,313,355,357,125,302,289,291,293,295,303,355, 318,320,322,324,352,375,97,110,101,77,111,260,108,51,68,79,98,106,267,374,327,276,278,280,282,340,293,99,387,105,110,103,340,260,102,97,117,108,374,34,115,114,103,98,34,353,359,101,345,293,312,91,108,406,101,291,287,417,419,93,381,34,260,112,116,104,84,282,396,438,101,411,413,374,116,114,117,101,422,343,424,296,98,111,111,108,437,104,101,105,103,104,445,423,345,110,312,98,368,353,119,105,100,441,358,456,471,473,475,288,117,112,90,481,360,288,472,109,474,114,437,487,88,490,457,492,484,496,370,487, 89,500,483,494,485,34,97,116,116,97,99,442,111,80,372,294,409,447,412,414,284,411,108,115,454,288,470,458,460,462,370,110,111,114,109,97,108,499,333,341,482,296,493,495,437,538,540,542,507,545,533,502,510,504,353,552,541,108,489,556,547,558,550,370,115,478,501,256,410,525,415,102,275,522,455,491,34,426,109,91,100,111,117,98,108,531,578,111,294,287,98,516,107,436,369,353,290,292,522,296,69,120,323,114,110,542,386,388,390,392,394,300,370,81,117,259,72,306,115,112,306,520,552,97,541,79,118,278,355,77, 97,112,340,274,398,330,401,333,370,603,373,345,620,622,624,626,116,628,539,630,97,632,634,316,73,541,103,101,66,97,530,437,86,572,111,51,54,48,82,282,588,114,99,573,289,328,399,331,340,115,589,280,116,591,115,85,82,76,508,296,320,114,406,408,353,319,85,114,462,271,451,453,370,591,633,529,695,288,291,114,316,91,669,260,671,673,675,115,677,679,76,101,711,600,353,103,97,406,523,448,526,271,49,581,501,34,549,511,104,666,65,117,337,111,735,576,284,707,531,546,582,459,461,301,645,521,415,719,101,721,674, 676,117,678,101,727,711,437,314,316,597,99,107,665,496,545,640,329,400,332,272,34,597,114,665,778,103,275,117,110,100,67,461,539,68,105,292,268,105,594,713,583,493,91,305,698,122,594,515,108,287,633,330,99,542,730,288,320,101,112,83,745,587,119,807,758,536,353,530,591,268,336,83,323,826,828,111,830,566,757,535,437,112,355,464,259,791,107,793,588,796,798,108,539,82,513,805,786,256,557,512,114,716,121,91,743,114,822,416,101,836,323,100,839,825,87,478,480,845,741,539,871,503,287,329,679,294,874,789, 66,539,260,114,861,337,117,864,756,741,872,848,850,431,879,842,119,83,274,909,807,906,570,840,896,114,898,900,105,902,916,503,437,824,112,853,855,795,797,799,114,801,803,280,806,885,425,809,811,105,813,294,542,817,683,820,108,874,835,395,838,840,827,259,843,79,290,99,105,342,926,559,928,876,955,879,919,897,278,83,945,680,866,917,834,969,837,971,825,958,829,623,812,814,542,727,407,884,787,978,927,570,981,878,880,930,598,932,857,935,861,939,903,866,715,717,872,874,100,769,862,940,994,567,742,996,602, 908,259,985,960,962,964,121,966,569,834,957,911,913,292,259,1030,511,929,1025,119,86,950,990,293,103,993,865,1019,979,823,840,961,516,1028,1038,560,288,849,316,851,100,920,922,259,924,1008,1050,1021,1059,1023,910,959,119,858,539,807,404,859,1058,875,877,956,984,911,66,108,769,923,925,941,548,1070,788,291,1064,278,1076,781,1018,582,1079,1077,645,1072,1041,1043,819,1045,992,104,1057,968,1083,983,930,973,114,1099,1078,935,928,1033,1074,987,945,989,108,991,1047,1112,1092,568,511,789,1054,963,965,1133, 1020,967,1105,1061,909,1041,1126,946,815,1130,1048,904,509,1031,1052,881,883,1132,1101,886,114,888,559,890,278,892,116,874,1060,121,1062,1097,1119,1122,1140,1103,1081,1169,1062,882,479,1158,1049,582,887,872,1164,770,893,437,895,1118,975,122,977,1069,1142,353,895,1002,794,1004,1080,1006,863,807,1010,870,1012,907,1144,852,1192,976,1113,997,1115,1E3,1215,1032,1085,1074,1120,1175,1122,1216,970,1E3,931,1201,934,1080,807,887,1207,91,1176,93,287,1237,1190,1096,1200,856,1231,1077,1140,1234,868,717,1237,1239, 935,953,919,1243,933,1223,1159,345,1248,869,1236,1253,1252,1080,1168,1106,911,831,847,1143,1170,909,72,465,467,469,1019,1185,889,32,891,373,1254,825,1229,1244,1099,1204,111,1068,582,1235,1209,918,825,1275,466,468,1233,1161,1186,1282,1165,1284,1114,1227,972,921,278,1090,1292,905,1094,954,982,1228,1256,1202,800,802,395,805,110,807,584,810,539,1127,947,816,32,818,280,951,1285,841,1074,1087,1089,1066,1091,1259,1093,1197,1155,1338,829,1137,1056,1140,1051,1082,1308,1221,829,1035,915,1352,1094,1178,909, 1350,1139,1344,1134,1177,1268,1339,1088,899,1342,1313,1153,1039,998,1084,112,1298,1277,1301,1162,495,1187,1166,1267,1211,1063,1319,1245,936,1322,804,1017,1183,741,1327,944,1148,948,1333,1044,952,1123,1286,1118,1258,1396,345,1176,1405,1117,1310,114,1193,1195,582,1353,1316,999,1124,829,1408,1152,296,1411,1272,1171,1390,1424,866,1261,1250,1264,32,1240,1296,112,1374,1345,1154,1354,1317,1422,843,1108,1335,1110,1131,1219,1059,1291,964,1324,1451,1443,1421,825,1364,1029,1360,1142,761,604,415,85,73,798,109, 626,384,522,370,764,766,723,725,771,728,876,639,682,642,864,1464,647,296,1475,1477,769,726,1480,833,382,317,319,321,323,325,545,1480,294,903,320,276,340,319,68,447,278,292,100,753,452,101,918,291,445,1508,1510,868,336,1514,708,1198,101,103,734,545,1520,266,1522,1513,706,1515,370,293,1534,787,1531,1511,1523,1535,708,1486,605,288,665,530,616,395,421,1059,1483,785,340,335,337,339,1140,77,336,338,1123,513,1417,1397,809,1505,112,277,100,433,515,330,407,890,355,699,1574,276,112,699,874,315,474,705,1366, 416,451,699,760,370,913,464,292,613,876,615,393,1552,782,1555,684,545,1411,545,575,449,345,35,265,1613,102,1553,1425,288,1427,353,716,901,903,1609,737,32,53,740,1375,1081,541,120,1312,1456,439,441,443,320,751,1610,1544,755,866,832,437,109,406,1633,1462,569,1546,415,607,609,611,108,1598,389,391,1601,618,353,661,97,663,775,384,1657,1600,617,445,783,683,643,1540,662,1567,345,1663,663,1490,770,437,403,405,407,1639,1625,416,418,420,1628,296,1327,429,384,432,32,434,98,600,1651,345,1666,385,387,1599,1659, 1670,437,649,100,623,116,625,627,383,655,631,818,355,1482,641,1556,644,602,762,345,1713,1715,653,1717,716,1719,659,1029,619,621,1712,651,1716,629,1734,704,660,1676,1549,680,1502,1714,340,104,572,1507,115,1509,1532,1512,1524,1516,834,305,844,1540,1755,1521,1758,1641,601,1059,1727,296,1747,1551,300,602,1604,1674,256,276,1055,1365,574,524,1640,32,739,532,1196,1442,337,320,383,679,1456,105,1676,807,1679,101,1681,1794,1272,777,107,80,1453,939,110,1440,714,1249,870,1711,654,1733,657,1720,316,775,121,1804, 1806,571,1808,874,1334,105,679,1810,867,1262,1815,656,1806,406,1167,1593,353,84,104,473,611,105,1129,1497,402,633,1503,340,517,383,663,1754,1756,1542,1539,754,1769,371,1465,345,1467,1469,1471,647,1776,1723,1605,787,275,108,108,658,114,379,313,259,337,407,84,1506,1649,511,964,324,76,97,1587,70,814,87,1276,1300,1140,1327,459,108,1573,32,1897,898,287,429,1277,278,287,49,48,48,287,50,1909,287,51,1913,32,52,1916,53,1916,673,1910,32,55,1916,56,1916,57,1916,562,821,437,1885,1877,100,1879,103,1881,638,1883, 1081,1420,336,1876,1287,1257,1005,1016,1830,1294,503,874,1871,1873,818,1876,1887,1587,443,608,1041,1460,1795,1499,1958,876,1960,116,1107,1403,1150,1182,1617,1141,1442,1954,1874,1945,1118,727,102,116,1648,1589,1353,1977,1956,1499,1172,896,514,111,109,82,1299,1983,1373,1456,355,588,1278,582,1327,1827,951,287,1399,1128,874,1934,1172,1995,1277,1431,1019,1619,823,1377,100,1979,1414,1991,307,1994,1996,1984,1409,1441,511,1987,278,1957,1888,1967,101,1961,911,2015,1102,1225,980,1115,1876,1840,1842,733,108, 1962,1027,1782,1974,1419,2019,2021,898,1939,2027,2052,1315,2054,1989,1118,2013,468,2039,741,2017,34,2031,1875,2062,1414,2064,1969,1214,1941,1933,1499,1041,1270,759,370,2070,1945,1430,1174,1589,1433,870,1251,1436,1253,437,2084,2072,2056,276,1416,1964,1886,2034,108,1968,2049,1781,1461,1985,1094,1934,520,1936,699,2074,1456,1943,2020,1499,2045,494,1843,2048,911,1447,1828,1449,1151,995,1346,2069,461,1955,2032,2096,278,1939,1981,1997,1622,2115,2061,2101,1959,2036,1969,911,1963,2077,2083,2131,1978,2134, 114,2137,2066,1410,2041,2018,2043,1499,2111,1937,2137,2100,109,1172,1939,2099,2148,701,1989,2086,1232,1247,1161,1235,2091,1437,2170,324,1990,306,2024,2155,1426,2157,1457,1944,2152,2057,2026,1998,2169,288,2011,1980,447,116,2184,1618,2186,1934,2119,98,2121,636,120,1380,1894,2108,2129,115,99,1954,780,2147,2210,1442,2212,2214,291,1180,2127,1789,1376,2159,324,2161,699,2023,1993,2164,2181,1992,109,2168,2217,2225,970,2085,792,1230,1099,937,1323,1395,1974,1398,1329,1400,1332,2005,1932,1272,377,2002,741,1820, 2255,2078,324,2203,2121,2208,2256,1629,2260,109,2262,2047,1146,2249,1128,1972,1456,2095,2180,2196,1982,2236,2028,1367,2267,2012,1996,2280,2059,2211,2141,2165,2063,2285,2076,2237,1081,2110,1878,2229,2182,2231,2193,2187,2117,2261,1841,2120,2047,1172,2199,34,2068,2195,2073,2191,2139,2301,2116,2055,1098,2087,2281,2310,2201,1965,2102,2104,911,1147,2273,1046,2223,1418,2060,2226,2268,2305,2204,2270,1034,914,1037,2301,2276,2290,1414,2286,2128,2218,2289,1946,796,2216,2321,1353,2312,898,2230,1994,2192,2294, 2267,1966,108,1823,1454,2246,866,1694,2197,287,307,112,287,698,1277,596,2299,109,953,2289,2269,1844,2271,988,1331,2274,2316,2289,2352,2287,2348,2334,2233,2183,2320,1974,2311,2189,276,2309,2068,2343,2381,2122,1074,2081,1494,34,1934,2124,951,309,466,1325,1895,809,459,2234,287,1646,1936,591,2370,276,1953,2150,1988,2277,2022,2377,2346,2224,1942,2213,2131,780,2328,1331,636,418,1529,2360,370,2202,2336,2121,2080,1140,1644,2443,2171,2241,1244,2389,2347,2238,982,2033,1889,814,2431,1184,1302,1281,571,1194, 436,701,115,2236,1858,1620,2426,2133,2304,2046,1844,2454,2432,2094,2473,2071,2142,2035,2037,1125,2272,2385,2330,1973,2455,1081,1752,260,83,2434,1872,66,117,1992,1809,2406,2283,1118,2136,2197,2058,2491,2361,2102,70,795,1394,2414,1589,42,2267,2403,1172,2461,1314,2288,2334,2403,2478,2332,2129,1934,2362,2326,1222,2395,866,2401,2481,2458,876,1890,294,2400,2186,2252,108,2412,103,2514,2321,1896,2377,2419,478,100,2422,32,2371,2379,2392,2504,276,2137,2507,2479,2450,2428,898,2540,1232,2563,109,2362,2437,815, 2544,2546,2247,809,1166,1906,32,591,1982,2373,1996,2010,2118,2445,2307,2063,2359,2353,2109,2324,1587,71,637,2115,2496,108,780,669,571,590,1677,1693,809,2070,287,542,119,316,115,2425,1872,2151,2564,2319,2173,1589,2534,2613,2427,2165,2172,860,1949,1206,1812,1383,278,2612,2132,2482,2569,2510,1891,1893,2265,2604,427,1901,2376,1898,2578,1904,468,2578,1908,1923,1912,1923,1915,1923,1918,1923,1920,1923,1922,287,1925,1923,1927,1923,1929,1923,1931,1404,2149,2620,2474,2622,2452,1947,1080,2244,2513,1326,943, 2487,815,949,1109,2666,2179,2344,2356,2377,2074,2561,2526,1976,2535,1499,2525,2521,1442,2528,2634,294,839,121,591,2676,427,964,542,1828,287,2665,2584,2475,2306,2382,2146,2050,2107,2590,2129,2343,2228,407,2357,2164,2524,2714,2722,2586,1844,2222,2490,2562,2042,2239,2585,2476,2404,1423,2532,2016,2186,2343,2012,2589,2390,2456,878,1876,2719,1938,1882,2442,2731,2457,2592,2537,814,2566,1104,1198,2499,307,110,2495,1954,85,1940,2088,2175,2627,887,1747,2498,2500,287,73,404,110,2771,2760,93,1238,32,2769,666, 664,2759,594,2773,2775,2777,594,2779,1307,2752,324,2447,1589,2449,2683,2350,1391,1290,1950,2627,1295,2798,2278,2075,1194,1456,2008,1331,2573,2702,585,2577,114,1903,2369,32,2374,468,953,2597,780,2756,2295,2733,2711,2048,951,1705,260,2813,871,594,592,1844,1332,102,964,95,406,571,260,287,2839,116,95,2001,2843,2836,2847,307,95,477,1181,2845,2840,2853,464,2583,2792,2745,2152,2357,2520,2266,1226,2793,2684,278,2154,2737,2040,2567,2805,1414,2190,1277,2688,2694,2030,2691,2794,1269,2448,1271,2876,1065,2315, 2750,288,2402,2726,2735,843,1340,1372,2890,2716,2391,2732,2615,790,2377,2560,2742,2508,2667,2631,2318,2904,2234,2825,2503,2877,276,2880,2867,2683,2529,2144,1509,404,716,1808,2833,933,634,430,287,111,1720,2930,2579,430,45,441,794,467,2707,2835,894,2785,2761,2597,2114,2174,91,1235,2782,530,2789,110,2787,594,2953,2779,2931,1161,2770,2944,2955,2776,2944,2791,370,732,2765,2900,2882,2668,2632,2747,2163,2342,2883,2633,2143,2485,829,2410,2126,2729,2689,2744,2188,2710,2337,1844,2519,2293,2970,2433,2220,114, 2439,1528,2574,2908,2472,2972,2536,108,2538,1969,342,2701,2415,2703,815,2706,32,2708,2517,2894,1970,2681,2386,2891,2302,3003,2530,829,2897,2918,2029,2826,324,1598,1687,415,2665,1616,2367,809,2665,2370,2894,45,594,108,121,1903,2102,3040,110,3042,2709,2670,854,2242,935,2674,2926,3009,585,2810,2679,1402,2681,3049,2403,1041,2914,2868,2863,2483,2103,2144,2383,1330,1149,2489,2140,2392,2623,1100,2321,2089,1263,1266,1265,539,3062,2894,2308,2873,2067,2739,2977,2166,2399,3088,2156,2875,2892,3091,2558,112,3026, 2282,2909,2614,2870,899,2314,1067,2596,2995,2982,1656,291,2998,2275,2977,2747,2947,3020,2317,2152,2906,2899,2743,1081,2893,2734,1041,1358,2341,3020,3126,2828,2991,2808,2976,3002,2753,3069,2980,2896,1371,3101,1975,2986,2303,3105,3143,1986,2977,3063,2713,2106,2164,2362,3005,2866,296,1280,1163,1698,976,2467,2194,2469,2293,2471,3097,3137,2903,2357,3148,2591,324,2693,2919,3168,2910,2827,2989,2598,1407,3094,2185,3096,3021,3121,2197,3157,3102,2683,2403,2206,2728,3075,2902,3147,3107,1343,2993,2915,898,3189, 3144,1081,2775,323,294,1054,113,453,2502,3066,2987,2978,2754,294,1892,1996,2833,2640,1900,461,1902,2935,1905,2816,1786,1916,2649,1914,1916,2653,287,2655,287,2657,1924,1926,1928,1930,539,563,3049,3155,814,258,1646,3042,807,697,1592,3103,2621,2284,2014,3183,2200,3185,2696,2979,2145,1370,1341,3123,3E3,288,311,2500,2762,2131,2975,2766,2949,2768,2960,2783,2953,2963,2957,2780,2951,2784,2772,32,2774,2956,2965,2556,3196,3092,826,2992,3124,2862,3214,3291,3065,2751,3067,3215,3139,3262,2736,2617,2321,2619,3178, 2988,2446,2327,2678,2983,3195,2869,3245,2698,3007,2603,288,1327,2704,429,99,2941,553,2682,2158,3196,2921,608,2923,655,3055,1589,1327,2928,704,2934,2932,2929,384,1903,2936,2938,588,2940,3013,2942,3295,3146,3117,3219,2387,2523,3016,2885,2796,2887,3328,2869,3151,3263,2898,3108,2301,3260,3216,2198,3257,2322,3259,1499,2571,542,2812,3056,1236,373,2643,2818,2820,1837,3253,2669,3330,116,3332,2925,1455,3377,3337,1695,531,3340,3338,3342,2935,384,2937,104,2939,104,2941,384,2630,3104,3316,2807,3319,34,3159,1384, 3161,2466,1616,319,2470,1536,2758,3269,2597,68,843,2999,1279,2767,1262,3282,3278,3285,2788,3288,2959,91,2961,3284,3286,2964,2500,2966,2683,2974,2197,2232,1118,2357,3122,3365,3119,2289,3386,3017,1448,1129,3074,3136,3308,2335,3127,2123,1971,3456,3020,2444,3460,1074,3129,1539,3200,2568,1172,3448,3199,3294,3384,2632,3362,3304,1246,2618,3090,3169,3050,1003,100,3175,3027,3350,2911,3171,2907,2730,3177,3104,2393,1993,3473,1830,2354,3179,3310,3363,3172,2717,3098,2916,3100,3198,3499,2333,3290,1213,3135,2442, 1859,1833,541,67,630,278,1560,787,1672,1484,326,1702,296,82,306,1016,1655,3519,335,716,774,305,307,2258,1846,1603,1868,1778,2408,1499,2802,1832,3537,519,376,1497,1876,1701,1726,1861,361,3550,1638,370,798,111,107,331,1806,3323,2715,681,3542,903,769,1588,2321,3251,1686,2468,703,1588,3167,34,663,111,793,637,1752,99,65,1036,1382,1235,3573,103,2780,3590,3553,1770,3555,1548,2783,1774,269,370,1729,652,3517,1817,1735,1799,1722,784,1869,123,3527,288,3602,1741,1718,3605,1744,121,1799,1747,437,636,112,3539, 378,1499,3608,1673,903,1558,1564,1561,2595,1272,357,3633,3624,367,504,3612,346,3557,1498,380,1474,670,67,3211,1501,1848,1750,545,474,3114,1530,1765,1757,1543,2554,3419,3320,796,1854,1766,3659,1858,3641,1773,1660,269,1867,3609,3543,1538,84,1796,3410,1419,1575,116,3676,335,1215,1859,669,101,119,278,3586,431,1557,101,441,387,903,1169,3526,1726,902,573,918,2749,3611,1620,444,1518,3526,3641,1863,1993,1865,580,1554,3568,685,687,964,690,3023,843,3298,1071,776,598,780,80,275,793,282,115,3487,3190,288,109, 1706,2103,519,1732,656,84,716,115,315,1808,68,1015,3334,1783,736,374,49,3235,1788,2985,1368,3724,778,2436,2636,1382,1303,1283,1189,570,3717,689,282,3064,3370,2068,451,383,1824,1324,3030,3377,2602,796,1580,32,411,260,2848,2499,95,3782,101,2841,110,1826,114,2594,1194,1835,294,278,72,572,3682,3678,1361,3728,292,115,115,2799,3732,3204,437,1791,461,633,3741,3773,2365,110,3746,3389,2366,3493,3567,3729,3805,3134,3801,2129,3268,2760,723,3680,3588,3275,3435,3277,2962,3431,3287,3440,3281,3276,2952,3836,3438, 3280,848,3803,3730,780,2799,2309,3080,2177,2093,3765,98,688,690,2721,2948,3762,1305,3764,1022,3757,779,291,318,633,68,716,103,2998,408,2886,2082,3864,1821,3725,291,3529,2972,801,625,1721,3875,2407,3778,1937,3814,1809,3816,3818,3531,1456,1169,1804,3849,3077,3832,1262,3853,1266,437,820,921,459,291,100,3795,609,3722,788,2944,1820,520,3700,3900,717,3429,3843,3432,3839,3434,3436,2760,3279,3288,1210,3878,3758,291,1275,1024,1086,3142,3492,3755,3929,3897,3932,909,3850,3370,3852,1435,2178,288,118,114,3910, 974,998,1324,1424,1624,415,1612,102,54,1922,3034,2738,3185,3896,3879,2153,3444,3860,1281,3763,3383,3877,3940,3950,3847,3824,3077,3054,3390,3335,2677,2384,3059,2542,2943,2500,1881,3872,591,83,3766,690,3918,870,3920,3437,3922,2778,3840,3834,3842,3997,3838,3999,437,102,111,99,902,3690,97,2495,542,680,3956,284,48,46,1627,3754,2881,1942,769,411,679,675,1335,3990,3953,594,3955,1784,1688,3958,1614,239,3962,2874,2757,3723,3930,3866,3975,3581,3804,3806,3513,3826,2218,3992,282,3825,1456,3828,594,1820,3994, 91,3996,3926,3837,3439,3999,3924,3835,4003,4062,2790,953,4024,516,1800,3693,1828,591,2389,4016,271,4018,54,1692,3733,416,4050,4046,1414,3912,686,3856,3718,282,1968,3388,3894,3391,796,3341,3394,2933,3397,3393,3400,3402,3404,101,1387,4041,3898,2671,1320,1392,938,3980,2547,3982,3072,1401,3985,1190,2944,839,3703,1974,3080,4059,2786,4061,3280,4064,4002,4060,3844,3928,1803,3966,3933,1073,829,3212,3973,4135,1145,2038,3770,2186,1791,1169,1881,461,280,112,262,3991,114,4025,101,83,4030,2574,4077,3660,453,4081, 788,3359,354,3865,3849,2588,3265,3821,4088,3857,282,3443,1982,3895,355,3974,3118,3079,2463,3160,3971,4069,4089,3767,2469,3357,2321,2797,3714,3823,115,2264,3761,3970,3862,3972,4040,3974,3727,4044,3848,3077,2801,2626,1262,2804,823,4084,69,611,2602,3469,446,3750,1759,4163,4191,34,3949,3951,1173,3305,4216,752,296,4035,1613,4037,3089,3185,686,4154,4071,4027,4074,4156,4158,4076,4033,3751,4163,1353,640,4193,3272,4181,2628,3227,4184,3939,3966,3859,3273,3861,1188,4199,3822,4045,4108,3051,1288,1948,1007,4207, 1011,1952,437,4222,111,1836,278,3883,515,110,1794,1608,4242,284,50,4244,1315,4084,2747,4255,3470,353,2144,278,1655,1820,3974,807,4293,3966,4253,3931,114,4136,2741,4170,3938,4134,4299,4136,3194,3969,4183,4198,4106,3974,4136,3808,1419,4084,3720,119,3025,3937,4022,3846,4203,3824,3182,4225,2533,2541,3950,4272,3796,114,1874,4032,4217,4228,1909,55,516,99,4231,3095,4039,4260,3848,4169,3449,4288,4200,4254,1390,4315,1094,4290,610,542,4202,4193,780,4295,3976,3806,291,4298,4042,4136,3071,2250,3019,4349,2310, 3908,3907,921,4223,4275,1793,4048,511,4246,4261,291,4353,2129,3965,4299,4052,2301,4271,4273,1415,4158,3800,3031,284,49,3230,4021,3176,34,2839,114,320,3890,3774,594,3893,3748,3475,834,4285,2297,1880,4122,3266,4345,3977,4109,2800,2625,1140,1951,559,4312,3966,4358,4261,4347,3474,4416,4386,4042,4308,4256,4197,4258,4425,4299,4384,4049,4186,690,4368,2329,1111,2115,4084,2594,2969,4410,532,588,517,1874,4011,4013,3008,787,4160,1787,4451,341,716,1809,3744,1324,4405,3816,913,101,3659,4371,3905,100,4374,3909, 4331,609,4157,877,3954,4144,4233,4317,3070,3311,3983,3313,2301,4381,4204,2904,2073,4321,4400,4172,4090,4363,4419,4440,4380,4362,3943,2673,1393,4409,3035,427,3058,4117,1403,4185,4173,115,3005,3247,1844,3566,866,3590,928,4084,1041,4320,4303,4322,3855,4514,4504,3480,3306,2186,4432,3759,1212,4086,4483,4344,3772,4465,3531,4468,3745,3747,4113,4462,290,1742,97,1881,1657,3814,3743,3531,4408,4546,4460,1909,1923,4462,4497,4187,4501,3756,4107,3941,852,3978,4506,4546,4508,3057,3312,2251,4512,4365,4535,4137,1446, 3462,4446,4490,4362,4564,4577,291,4427,4204,4419,3851,3427,1434,3082,2092,3903,4528,4498,3453,2125,3455,4582,3119,4084,3111,3376,3981,427,2371,2550,2421,531,2417,2024,4069,4235,4026,4073,99,591,4335,4227,288,4229,265,4342,3184,4344,4146,355,4148,414,105,4151,110,1881,117,517,2762,4471,2501,3886,4323,4359,1242,4590,3053,4570,3820,2003,4115,2250,2680,3454,1168,4362,4180,4123,4182,3413,4252,370,4054,110,3916,667,2948,2950,3841,3283,4131,3998,4068,4129,4670,4126,4132,3839,4586,4300,1274,3760,4309,4660, 4311,437,4540,4406,3817,4545,4649,4527,4411,4442,3768,3152,1138,4519,4171,4084,3374,2543,1904,3425,4650,427,2580,116,1239,3379,3227,3382,874,4687,4466,594,4543,1324,4212,1888,591,4215,1643,4165,4562,3719,4486,1074,4585,4305,107,839,1566,2833,1570,1572,1578,316,3780,290,3700,100,1013,588,2602,67,3323,107,65,2675,4279,4336,4452,3989,3788,102,413,529,2213,4640,4626,3662,4608,3581,103,591,3786,4757,2219,4640,4104,4513,4498,3352,1381,2316,4084,3156,3293,1432,4659,2578,2465,4105,4643,4382,4646,4327,3426, 3274,3901,3946,3854,1867,4644,4493,2565,4538,4565,4313,4142,3467,2340,4722,4699,4694,115,4318,3111,4370,4547,4503,2377,4196,4310,4437,3904,4373,111,3908,4223,4480,2245,4635,3677,3895,4503,1096,4047,4447,4806,3005,3912,4534,4567,1389,4787,2624,4266,4422,2803,4269,4730,4578,4388,3020,4834,4680,3934,4728,2724,4490,4178,4426,4812,4537,4788,4038,4023,4806,1939,4814,4684,4816,4597,4187,3005,3218,4775,4607,585,3221,1901,2643,1996,2646,3229,1916,2651,287,3233,1626,1921,1916,2659,287,2661,287,2663,3325,3243, 4522,4831,2460,3318,2833,3322,3012,3014,4843,4828,4856,4531,2396,1225,1859,3676,4721,1799,1801,1479,773,3541,3673,903,275,1075,856,2637,4082,1079,798,795,4919,3809,1859,646,1547,34,4909,768,770,772,1481,1594,429,260,79,2499,298,1602,3523,1777,1008,750,3377,4707,2423,2372,2819,1996,2376,2234,3594,1860,1487,288,4940,1661,1548,111,120,1668,1708,4941,256,1749,3696,1807,1324,4157,1519,3657,1856,1759,570,976,4971,3664,3658,1857,1536,3641,1653,4291,612,3736,1669,1552,3672,3629,409,3871,732,2602,88,798,294, 1871,115,4621,1785,34,3958,4559,48,4761,3371,4344,3393,4434,3749,4622,4461,4416,4155,5001,4034,1614,4625,4163,2068,1646,110,5011,4462,3393,4241,4752,5014,3821,5023,4195,2301,100,4993,4720,101,89,4997,451,461,5E3,2395,4160,5003,1909,265,1909,5007,2068,1635,442,444,4395,1641,4219,4165,5035,1664,4994,591,90,5040,4999,5017,3957,5005,5020,4399,4627,1081,5059,3872,5037,3586,4916,4810,4160,1920,4283,2129,2855,1151,4460,5081,1790,825,5084,4280,738,5086,511,5023,1509,440,2984,4692,288,3393,5066,1611,5019, 1615,5021,4145,5036,2602,1595,278,1800,2742,5079,5092,2492,4682,4459,5090,1786,5114,848,4969,4407,5107,4458,5012,1785,528,530,5057,3876,823,976,3870,5060,5037,5055,3781,542,5129,5070,3267,4165,4155,5028,4622,4560,2908,1859,3614,116,3623,1874,635,2595,4913,4991,1725,3595,4956,34,5150,5152,1818,3619,1746,2783,3622,4987,68,4910,3628,3525,782,5122,110,565,5117,4752,5147,3821,626,4688,544,5178,5146,5120,645,5175,555,5185,1785,5180,4304,2472,515,1808,5177,5126,1625,5193,5098,2130,5196,1324,5190,5199,374, 5201,4400,275,5204,594,5184,5207,4017,5187,353,3570,3250,1591,3574,3164,3576,4975,5195,3531,79,1414,5137,34,88,89,489,4163,1327,5232,90,287,88,90,89,287,89,5240,5243,90,88,287,5247,5242,32,5241,88,1585,1493,1623,5118,91,2780,1974,1235,4963,4910,4933,3327,416,2830,5137,5030,5194,532,4464,4554,1808,5214,4226,5192,5217,5272,3773,4715,110,5206,5277,5200,5279,4463,5281,3531,5198,5285,5208,5187,3641,5263,4931,1492,773,4935,572,262,4958,1671,4943,340,593,1500,4870,428,2818,4609,4950,2375,3222,4953,760,3554, 5160,5303,437,70,3744,3604,5153,1819,4853,778,2364,4409,3524,1724,787,1780,4697,1456,280,335,1792,1470,1456,121,97,1763,4371,1954,3895,964,517,3684,5318,4928,3669,1709,370,5322,513,5150,5324,5164,3620,5167,3650,373,903,2493,680,1541,1533,5225,823,1762,4979,4974,1768,3668,3598,3670,1616,5331,3610,3411,4851,5191,1625,5270,5202,1791,4276,4278,3119,5268,4751,5013,5287,4432,5329,1324,3546,717,5356,1731,4549,5325,121,4296,5328,5175,2010,1797,1140,4930,724,1491,424,370,111,265,530,116,5276,4416,5417,102, 5419,5284,4416,2860,4869,4371,4510,4702,2413,2833,2815,2817,2581,5313,2821,437,5083,5097,4400,1583,116,5349,4389,1403,4606,4114,2639,2549,32,2420,2552,531,2555,928,2830,3776,5309,2839,1872,2857,2847,2842,572,5464,3784,1714,5467,3781,2858,111,2854,1157,5468,2859,2636,4771,437,5342,5344,4462,5346,2148,1859,1814,3739,1743,355,5406,1805,5175,5172,5332,1779,5383,4371,5337,3706,5340,5447,819,3543,1009,2627,3604,3910,4954,4927,415,5353,1552,370,3604,3533,3521,3883,1169,5397,2246,5380,1778,3641,3529,5212, 3532,3520,716,5519,5491,5494,370,5228,98,964,318,5429,3567,4914,685,911,1881,591,4464,5390,5215,4078,4019,5287,1607,5384,3957,5103,5050,2186,5482,5137,5209,3488,370,820,320,2795,5548,5138,529,1642,1019,4220,115,911,2058,4160,56,5287,4273,3891,2051,5085,5141,4925,353,3735,2832,5393,5002,2839,120,336,95,2853,1575,663,3671,5582,1327,5589,5591,2853,820,3534,97,2857,5590,100,5592,5474,5594,3693,214,1168,5348,1973,4160,5560,4082,5572,1339,338,5257,5179,5287,5618,829,3623,2286,4160,1918,57,4080,5582,917, 3641,5538,1300,370,4377,4277,101,5516,5529,97,386,633,335,1547,397,5541,5158,4955,4928,5638,4026,3530,1808,542,5517,716,5644,324,647,370,991,4515,315,292,5359,1735,5495,5381,5558,4490,5613,4053,591,516,1752,1686,5587,5286,5632,1094,2602,5677,699,5653,4015,5118,4018,52,5294,5351,415,5668,3618,668,670,3604,1847,5364,402,3663,3656,1855,5369,1768,353,4009,101,67,745,407,5367,4973,5706,4161,1516,3641,5699,4990,5173,787,5709,5399,870,1475,3648,4784,709,460,4450,4160,5128,5569,846,5131,512,2499,276,3885, 5553,4218,5582,2449,5149,1740,5151,637,5404,5361,4666,4942,3715,545,2542,5449,5292,345,5454,2701,5235,2416,5452,5760,5456,2424,1933,5410,1589,5412,1478,437,5423,5419,5276,5615,5287,5774,3693,5284,5777,5682,2129,5428,2209,5566,5616,5583,288,5431,5757,5045,2815,5007,1327,5435,2579,3381,2861,370,5441,5559,5287,3566,5782,4462,120,5803,5783,2218,5459,1706,5230,5462,462,5762,427,538,3397,5815,5468,5466,2844,5472,2847,2849,5471,2846,5608,5475,140,2856,5825,5830,5785,3383,5376,1550,5378,5515,276,487,5695, 5741,5648,5157,4459,291,107,293,2799,5137,754,5130,2407,5396,5175,5725,91,1806,112,5842,5489,3617,5491,5327,5493,4688,5409,1664,3410,5771,5414,4270,319,105,2602,5137,5734,5854,5874,720,807,1489,5297,5415,602,5674,4490,5841,112,5687,3115,5527,5291,4416,5211,3531,5426,3821,5897,5275,5341,5343,1999,460,4748,2609,121,1881,3798,260,4394,5680,374,2649,5788,3679,4733,5914,345,4735,1523,5817,585,5922,1899,1169,4739,412,530,4742,5121,5861,112,2206,5033,4435,1163,4661,353,5366,69,666,1592,5920,296,3393,4364, 5924,428,430,1697,3210,259,3789,287,5954,5607,2001,5957,1738,3789,5469,1239,589,1828,5956,1436,5966,99,5964,5969,5536,5971,406,5972,5954,279,5968,5978,5826,2499,5961,1518,5963,5960,32,3210,1836,5980,117,5990,5987,5989,294,5986,2499,1585,5906,65,5908,5910,1753,5946,5717,5880,570,1762,5943,571,5679,5742,5947,5952,496,5950,5948,3227,5958,5991,5955,5994,5962,5976,5987,4009,5974,5968,6027,5967,6026,5970,5997,4708,5988,621,5979,406,5984,5979,6023,5985,6025,5983,6036,5990,6039,6046,5996,6023,6047,110,5469, 874,5366,4556,2246,4558,1916,4547,5890,3193,1157,4862,1906,5940,5371,843,6057,4159,5118,2647,5917,1094,104,4007,118,5905,4415,5570,4165,412,2371,5844,1974,5745,4289,3651,5365,572,4212,4215,5368,1767,5717,1517,323,5711,1852,5714,5705,6095,3578,1538,5373,5716,3578,4619,1828,107,6106,6095,5734,6008,843,6092,6112,3666,4982,5693,1703,5863,5404,1616,335,3694,100,1504,2371,3698,4040,6131,371,3917,5650,5366,6133,5572,843,3708,1594,112,1596,1828,3604,70,1733,680,5523,1504,6143,5110,1382,5872,770,287,1475, 672,767,5413,770,1285,292,111,5109,292,6154,1676,4910,6157,670,6159,4910,5510,1771,303,5863,6147,3520,3622,426,1876,5700,1849,545,1977,2499,6118,4981,1525,3494,818,6189,5370,2310,4747,6194,271,6114,5837,101,3599,5379,5305,1606,1752,1898,604,4267,870,1562,472,3552,437,1586,1481,1140,4521,369,1594,4070,4617,4028,2831,1707,6203,5156,5722,574,1497,4378,5809,4462,5431,5878,5139,5735,741,4220,5052,1637,445,4160,5853,5744,1271,4983,608,4985,1656,5169,6203,5515,3548,747,749,5670,5524,6121,296,1562,1559,6256, 805,3536,348,5658,97,5521,2574,6150,340,4698,5271,34,5808,2301,813,1993,258,268,4903,5148,6260,3597,5838,5354,353,5358,6123,5164,4011,6184,3652,787,3735,3700,727,97,633,6198,6096,5584,588,530,2764,6302,6114,6304,3700,3423,119,2574,6094,3659,6309,3494,6188,5704,3665,6190,1760,6192,3636,1764,6102,6119,6191,6196,6110,6308,6237,370,6297,530,4212,609,6302,3667,6285,34,5513,1775,3714,5649,4459,319,4147,535,4150,262,4636,4638,4759,293,5621,4622,6245,6086,4165,541,112,4591,3081,539,44,3321,1676,44,4687,5511, 44,383,121,3441,486,530,72,383,797,769,724,3078,6360,5737,307,461,3676,4450,4520,5221,408,6220,353,1711,6290,5403,5360,5769,5845,6229,3641,6396,5747,5843,1745,5870,3621,5534,114,5536,5151,5169,6268,6258,903,406,1454,542,5892,6005,5386,4400,1631,6421,3020,5094,6231,5639,5350,5159,4928,4963,6415,5663,2102,6416,5306,4894,2700,3410,3321,3011,3324,3348,3326,1826,5448,4703,2833,5312,5765,4952,4614,4686,2922,267,3333,4571,1019,3336,4096,3396,4098,4097,3343,3399,3345,117,3347,5819,5729,353,4007,294,4517, 3249,6218,6392,6456,608,5220,698,1686,370,323,3140,1042,4581,1450,2301,6487,3303,3141,3264,4348,6234,4574,5757,4572,5310,5437,5797,4712,4006,2635,3353,5309,4872,3223,4874,3226,1907,4877,2650,3232,1919,4883,1923,4885,32,4887,32,4889,6446,4891,370,6475,3409,6065,3227,4783,3163,2408,3165,3514,3578,6493,3769,4857,4232,4539,4727,1349,5498,4462,6529,3912,6539,4487,4116,4601,6491,3515,6341,3710,1470,2835,1473,353,3599,390,6294,903,859,259,4472,6535,6327,6322,4926,6176,34,6557,3712,5596,5540,5846,256,578, 3520,5858,6155,679,874,5672,3515,5355,3744,6397,3616,6124,6228,5496,3641,6591,1816,6124,370,262,384,2996,6252,5378,6594,5381,803,465,633,5565,6385,2407,111,3670,73,4804,582,6219,5708,666,6494,5483,4723,2082,5295,6604,6288,288,5163,5669,6606,6259,6432,5512,5377,6628,6342,4065,2760,6564,1482,3730,6339,3661,2069,969,5362,6326,6321,6195,6109,778,6332,5568,6572,3596,6574,1468,3711,6559,6577,6272,1603,3730,336,3881,2631,4530,4111,4823,2833,5431,4653,4600,4655,6665,100,4808,6490,2331,5202,914,3805,6666, 2481,4092,6458,3819,4704,1568,427,3392,3339,4099,531,4101,6469,6471,3349,6486,6544,3721,4798,3846,6677,2362,6483,3252,353,6216,3571,1974,6619,1554,6677,6667,1874,4778,3514,4249,1303,6533,3416,6536,501,3578,2070,2105,5335,2301,2E3,6319,5309,6673,3060,4654,6481,3387,6688,4094,5309,6693,3397,3395,3393,6467,101,4102,3346,3403,3348,3405,6705,6684,100,6717,818,4867,5116,5450,4871,3223,2641,3224,2644,609,6514,2648,4878,6517,2654,6519,2658,3239,2662,3241,6447,2480,2972,4832,6704,645,4045,6685,2972,4318,4525, 6497,4431,6784,6756,2481,3496,109,4833,6791,4516,630,4518,6708,6485,701,2775,5025,4780,4250,1385,1306,6783,6716,6793,2291,1277,3203,4245,6791,3438,5937,6721,4436,1386,6754,5931,6611,6624,5855,6791,6757,278,3291,6815,1094,2070,4318,4729,1776,6677,6831,4779,3821,6550,2486,4488,6553,6681,5443,6828,2535,6804,6064,4683,2578,6067,681,6811,6780,3246,6799,6478,1589,6714,341,6702,4319,3936,4526,5210,2481,3156,4895,3377,4897,6445,4899,6837,6755,4845,5345,2481,6540,6283,3963,4344,5585,6442,809,5861,5572,2423, 4754,6676,6755,6829,1415,3461,3018,3463,6879,2972,3255,2065,6782,3001,2631,6825,6081,5737,6683,5931,6894,6679,6897,4602,4371,6909,336,3472,2197,6549,6864,6836,288,6548,6903,6324,6895,3503,4495,5561,6876,6910,6686,6921,6546,6790,6856,6668,3099,6796,6677,3438,6805,4789,4257,6822,3476,6669,4206,4840,4208,4842,6931,6785,2910,2775,6819,4658,6807,1304,4864,6953,6792,6900,6813,6902,6541,4343,1177,6797,6507,5539,6501,6510,2642,3227,6766,4876,6769,6516,2652,6518,2656,4884,6775,4888,6777,6527,6962,6794,3912, 6529,3203,3412,4782,3162,6724,3418,6329,6916,6678,6864,4701,4810,6936,6893,6869,6440,5125,2575,3010,2705,6874,3242,2253,6962,6881,6384,4328,3964,6848,6964,2429,2234,6832,3505,7022,898,2137,7025,2690,6786,6864,4809,6898,4811,6937,1874,6918,2279,6840,6275,2070,6719,3410,6994,6532,6996,2468,6998,6323,4401,7008,6886,7011,3323,4890,7015,6715,7006,2972,7017,1121,7020,6838,4352,6935,3821,6529,4868,5786,7010,6762,1898,6764,6512,2645,3227,2647,1911,6770,6981,6772,6983,6520,6985,6524,6987,7058,6855,6877,2806, 7030,4502,7037,818,4318,7003,7035,7005,5931,6835,7067,6275,7E3,6894,6948,4421,1589,4423,495,6892,5931,3087,6967,5071,6823,6917,6965,3369,7115,3258,4344,6728,6551,4369,7099,5181,6970,2539,6925,6863,6488,7034,6914,7036,7060,6905,3935,6496,4430,7128,6838,3446,2430,7041,5202,7124,1074,7134,6554,6899,6938,7023,2394,7121,5008,6969,7095,278,6781,7156,2068,7105,6812,1414,2872,7162,3482,2631,7097,4574,7004,5900,7165,2685,7024,7146,4400,5791,6450,3377,5797,4947,5438,4259,7E3,6901,6530,2301,4663,71,794,6390, 1019,6862,7164,6900,3899,4667,2627,3902,3084,7117,7001,3331,6740,4507,6461,809,6743,6465,6464,6747,6749,6470,6751,6472,3406,818,3807,7103,6682,6791,7107,4839,7109,4841,4424,437,2968,4826,7159,4796,974,7178,6930,6926,3297,7131,7E3,6870,6441,4896,6444,7057,5266,5756,7181,6509,5764,2551,2553,5457,3476,6818,6760,6958,6945,6809,7016,6896,3454,7173,7104,7224,4569,4112,4691,942,4509,4574,6674,1336,1933,2788,447,539,771,6437,4642,6810,6755,4524,6866,6789,7142,7137,1874,6906,5736,2407,6834,6864,3912,7293, 7206,2924,6741,6761,91,7211,2931,6695,7214,6698,7217,6700,6962,4139,6926,3128,4803,3115,7027,2871,6919,7240,7021,7153,4797,7168,7064,7288,7096,7294,7131,2070,6839,6720,7136,6824,7125,4445,7151,6547,6858,3248,6274,741,6862,7328,4326,6882,4858,7204,4318,6940,7324,6830,7066,3153,4583,6677,6787,7285,7141,7042,6793,7199,3273,2176,4792,4596,6904,7038,4829,3457,1874,7355,7140,3510,4385,6791,7312,1036,6617,7223,7233,7375,1359,4846,7319,1874,6922,7090,5931,7385,7197,7138,6843,6552,7264,7378,6877,7360,4249, 7362,4594,3947,7386,838,4696,1351,3131,7359,4837,6670,4750,6734,7272,6736,6675,7204,6894,6729,7404,7152,7366,2313,6814,7236,4082,2084,6850,1181,6531,6808,3863,7059,5931,7044,7427,3414,4784,7049,3166,22,6645,7187,6939,7327,7007,6476,6859,7339,5921,6480,2443,6956,7257,6806,7259,7429,2130,6857,3217,7450,7209,5451,7074,3222,6975,3343,6513,3228,6979,3231,7082,3234,6773,3238,2660,3240,2664,7014,2666,3685,2413,3693,323,4963,1823,116,640,1829,6011,3874,5753,6346,256,5552,5566,5046,5005,5006,5105,3259,110, 6602,5574,5689,46,55,5778,6546,5615,46,51,5778,2499,1311,5112,6072,5692,6634,345,7481,1291,7483,275,7485,6709,288,3870,276,6312,2574,4967,1850,5712,1853,6320,4980,4975,3709,6659,6558,1472,6662,6205,1870,6880,4189,6612,3929,2259,1140,3625,3600,1867,1470,4924,6862,2116,5860,2764,6669,7063,4344,626,112,2764,2747,4861,5889,7561,1348,1026,7352,4846,276,2764,4449,7232,6755,5076,6703,7322,4344,6529,6477,7445,696,7447,422,7326,7578,1177,7571,1001,4500,7222,4400,715,2896,7277,292,6707,7281,6474,2755,7240, 7589,4302,7286,7104,7589,4444,2488,7135,5896,7406,4263,2672,7344,1160,4790,4593,3084,3083,873,6738,4093,7208,4705,585,7302,2781,7304,3398,6748,7306,5480,5188,7566,7284,7371,7314,6668,4205,7108,2321,7110,2629,6738,4599,951,7393,4400,6711,6801,6393,5941,6499,7249,7300,7184,6504,5800,602,7603,7396,4904,3185,6992,7422,3411,4781,7047,3415,7436,6537,7438,7383,818,7576,4917,7587,437,7594,119,6943,7265,7233,7557,7200,4791,7399,4793,7430,6917,7662,6806,7398,7619,4595,7203,7634,2764,7290,6239,4165,7560,7562, 4413,103,4657,4416,6842,6545,7569,6915,7266,7407,6949,7227,6951,7229,370,7680,7573,7353,7283,7543,6826,5933,7699,7262,4600,7648,7237,3579,5155,3020,7069,7457,7625,91,6974,6765,4875,7078,6515,7467,4880,6982,3236,6984,7472,6776,7474,6778,3213,4477,7566,7161,7615,6968,6779,2631,7555,7590,7613,4110,7558,7588,7635,4143,7678,6701,6488,7098,7610,7068,7053,7244,7012,7246,1168,7589,4175,4924,4245,7589,7756,7018,6883,7158,7349,6927,4138,7599,1452,7767,4802,7376,7638,4455,868,7577,7757,7116,7770,6622,6788,7357, 5202,7680,6957,4416,7680,7348,6932,7198,7714,7641,5261,7228,7111,7726,3624,7705,4287,5484,2481,7761,7785,7765,1838,3613,5747,6630,3618,3607,6632,1485,6341,5162,5749,6399,6408,5167,3601,84,77,694,7835,6439,3317,7243,6872,7245,6526,7089,6493,7623,6460,7737,7627,6745,2934,6697,3401,6750,7633,7600,7443,7338,7651,7645,7728,7647,7127,6275,7709,6495,3364,7806,4400,3206,4956,3572,7584,6923,6971,7071,6973,6763,7461,7740,7464,7079,32,4398,4879,1917,7746,32,3237,6521,6523,6525,6875,7884,2698,7666,7046,433,7048, 3164,7050,7803,7062,1224,3185,7875,119,7385,6924,7769,7585,608,6500,7458,2814,4710,287,106,902,280,102,3043,5798,5437,6505,7912,7333,7609,7335,6284,7515,296,6575,6661,774,5863,3910,6438,545,6587,6915,5888,6555,7941,6286,6202,5839,353,1892,98,6179,3683,545,6126,305,6128,340,292,578,282,1182,6656,5160,7943,7538,6204,5754,787,5219,6479,6484,700,5223,704,6195,2219,2131,4719,4214,7310,34,795,6566,100,87,464,110,5911,260,6690,345,4220,2842,3693,1172,3212,7477,5882,5363,6185,787,6105,7532,5374,6303,1618, 453,6099,5713,6644,1545,6341,6262,1564,5721,5496,34,7180,5433,6005,2310,4710,5795,2576,7926,7933,6035,7935,5708,453,5858,5727,453,874,4009,1522,294,5913,6427,7510,6236,5568,6007,5708,7863,541,1840,3804,305,1898,2809,7736,5202,517,275,3518,7131,5802,2316,5196,7054,585,5928,1577,1282,5930,336,1581,1571,336,1826,670,5883,670,5171,4662,591,3779,6012,5787,5287,1014,6689,1456,7248,8029,6013,3734,7252,424,5950,4613,1993,4610,5455,4948,2822,4014,5460,7492,5829,5823,8100,5597,3036,2835,5822,3891,5824,5829, 5827,8119,5473,5831,441,5477,5474,5835,874,6083,5740,316,5852,1515,8053,5099,5731,8051,5140,7544,5562,8055,4012,3735,306,5678,7487,3470,1859,65,494,281,3208,99,4619,902,3775,5169,7482,7484,3730,5945,7488,6579,5267,4014,5269,6060,5422,2499,5861,6243,5118,5758,5950,3956,2607,111,2010,3796,5579,5805,7513,5810,1135,5620,6233,4416,590,7637,6005,5691,8184,1081,431,7486,6070,5137,3753,4462,5849,610,876,7500,4752,50,4020,4462,5023,1477,1088,4409,5806,7940,5651,415,7517,320,8160,3805,7522,346,5863,6268,4157, 3210,403,6149,7540,3704,7954,34,5526,3531,5657,5642,8225,453,6430,5515,7946,3643,6183,7847,7963,1563,3522,2321,5699,5562,5642,4295,8223,8251,3635,7786,582,5508,3639,5317,8231,7548,6183,1594,538,119,6406,3566,6663,787,1792,279,8197,6005,5916,6074,2211,2371,8273,8097,8275,5623,8070,5230,8073,7982,7072,91,8285,8078,1572,8179,6419,2048,8283,8030,8285,8033,427,8289,1698,2371,8291,1565,279,4732,323,2833,8300,5926,8179,3207,1824,8182,5179,5550,8193,928,277,6568,7506,8206,7514,8215,6122,6398,5669,5663,6508, 6401,6595,6341,6343,7549,288,5401,6597,656,5404,6293,8244,285,7837,6405,6291,1735,6293,5637,6429,5654,5527,8235,5603,5660,5646,5304,7977,256,6076,2932,1509,414,8247,4462,5482,8361,515,5347,5445,104,8366,8363,8214,5511,345,8233,5656,108,6268,8354,5662,353,2953,7948,7541,3002,2775,692,7846,6861,6480,3575,7984,5707,2194,8387,693,7869,8392,3577,7673,6941,8396,8389,7882,7981,6724,5224,8394,7401,6963,6955,594,8388,8398,7983,8400,8021,8231,3925,806,8240,4549,6264,4945,8163,6402,8022,8246,8424,437,4011,7838, 112,6593,8426,8331,8231,8433,6599,353,3648,5974,6146,6148,8384,7490,589,5871,6169,5885,1190,4813,5411,8450,6161,1802,422,6080,582,6584,5886,3267,598,1798,8455,5772,1296,6164,8442,8449,5870,8085,1620,8329,1974,8461,4006,579,4924,8477,709,3968,5770,8466,5873,7972,4928,8444,6180,5515,3639,6212,117,8243,8011,6089,1850,6197,8013,5716,6200,8332,6636,4989,6345,8164,7650,7980,3252,5487,1738,7961,5640,8345,5696,8009,6295,334,6305,1479,6300,6101,6650,8409,6137,8500,6103,6645,6139,5483,6315,6571,7600,4009,3731, 6733,256,8532,527,6333,7365,8537,6569,8524,8015,7052,8535,262,6654,530,3476,8020,7051,6652,6111,8527,6316,8541,3734,8520,6337,6325,8538,5715,8528,8418,8324,361,8515,1721,8025,5381,5856,4688,5858,5488,8326,3618,5492,6270,874,3700,6379,857,6382,7801,5142,5737,8068,3020,7979,8390,8406,8399,6195,4629,316,4631,6351,4635,4453,104,4639,6356,7990,293,5037,4215,6244,8134,6246,5737,2005,5505,1019,1235,5508,4478,4713,535,6389,7869,370,5835,1795,4332,516,1808,7988,4721,8133,4162,8612,2407,7880,294,262,609,8628, 105,6301,6005,5879,8634,5768,5870,8465,8472,8451,6486,5273,8374,8643,6237,6007,3516,3548,8446,34,8590,4371,1796,8647,8454,8649,8456,8462,8027,8062,4400,102,429,4151,1676,4701,6860,4190,5058,4690,8E3,7731,412,749,5858,362,308,748,805,6175,6657,8023,339,6600,6400,583,8497,1606,8499,6649,7533,6199,6333,7535,1864,7944,8572,3543,8028,2545,5434,8035,7184,8038,486,8393,8593,1592,8595,8409,2212,8108,5813,3377,6472,2857,5463,5833,8112,5468,8121,2851,5830,5441,8126,95,8128,4270,6449,8096,7300,8102,109,8104, 7253,5767,6394,288,65,110,8663,2745,8485,1682,8341,256,292,277,513,8187,7068,6148,8279,4371,2839,1655,8513,5230,315,1638,5950,4402,320,3044,320,2425,4917,4923,2115,8295,8097,1590,1582,5923,8114,427,5926,4737,121,5929,4741,8044,461,4922,5647,4462,118,5875,2602,79,2761,6130,6005,6359,7725,6528,6148,8794,7782,1094,8130,3697,8803,8611,8140,1537,8697,8270,3831,8557,8533,3662,6093,8565,6328,7051,8757,431,116,6117,8820,7534,6341,8477,5584,3693,7965,3696,5844,761,6135,8342,1052,3703,8747,34,84,3113,3693, 8376,1324,8352,5518,6348,635,3340,8355,8659,5610,3006,5110,4044,3583,1828,6281,307,8256,5202,8859,72,6077,5336,8848,116,89,5904,4490,513,5442,2638,585,8713,4951,1698,811,323,8773,2579,594,663,8775,1405,6164,3582,6143,8864,8628,539,4470,6568,7708,8873,80,7952,8148,6341,8850,594,8852,5659,8856,8381,303,4827,6384,8269,256,1199,7407,3979,7269,8880,1328,6844,7273,7089,8918,7763,1391,4057,7202,7621,4662,4901,2889,7605,6682,4198,4053,8934,2616,8587,7157,1241,4333,7592,7731,1191,2345,7666,1353,8927,3485, 1289,7816,5506,7717,7819,8487,1466,7536,6576,437,72,7844,76,1968,8659,7986,2497,2221,6851,5391,2995,4087,2823,291,2997,2441,4371,8969,2598,4383,8946,5617,8976,114,2600,5876,7009,6501,2606,32,2608,2610,6055,116,109,6712,6391,8406,570,8986,3111,8978,8681,4082,3395,8672,6140,3377,8981,2007,2551,293,817,8798,591,2822,2995,4701,9005,6431,8568,288,7974,8912,34,1711,1475,8267,8659,8574,3816,8576,1738,8267,8580,5408,1683,4213,4908,110,86,82,8632,6238,8001,4165,8064,1993,4550,3401,7970,3223,1634,8854,8598, 6350,4633,6352,8602,8604,4641,3358,5737,3787,4938,3387,8680,5137,4398,8796,950,8615,1293,5507,7946,8619,9040,8608,4152,4276,100,3908,9046,8135,4221,8082,1140,5884,8667,1190,8087,1937,8760,6275,5724,6210,718,3647,8043,5881,765,8988,8799,8801,8459,7701,5737,9050,8066,7920,1052,5919,8781,5926,8298,5925,8302,8077,1282,1579,8074,4740,5931,5869,7531,8484,8666,8467,353,5334,7417,5758,5091,8317,6486,8621,4633,8623,701,8627,2513,8630,8320,5118,8804,6907,2407,8607,4214,262,3519,3906,4819,921,9086,8645,8141, 8065,8143,460,441,8162,4371,5388,6232,2301,8583,6380,3648,4403,8942,4220,9151,8631,8813,8633,8140,6474,6567,262,8763,9135,7893,8168,3821,859,9108,9048,5737,8811,6085,8805,8816,5701,7963,8520,6299,8642,8700,8014,3578,1792,6098,7530,8523,8701,8546,8526,9202,6107,8529,5372,8831,8409,4007,8535,9068,8550,7051,8271,4972,6570,6651,8017,9207,8553,3103,8543,8539,8409,8012,9212,8566,7051,9218,902,8549,9216,5567,8551,7365,6193,9241,6108,8699,8564,9225,8702,6655,6310,6336,4332,9229,5719,8570,8132,8835,6127,8838, 8132,5650,9125,3701,1032,8844,1859,318,1667,6627,4965,6578,6229,5382,7711,9185,6423,7731,7491,9185,5003,5555,7496,4628,5088,5053,1638,9178,9047,534,8589,8972,5566,9279,4082,8859,5291,8213,6841,8873,5776,5689,5287,8859,5781,9304,9137,6248,1654,4986,614,4964,4959,8846,8873,6434,5642,8380,8795,8916,341,8873,6426,5499,8873,8875,6623,3821,5482,520,5089,4752,416,8885,5054,6017,5799,5314,6139,279,444,1903,8889,444,4713,8873,5895,9301,418,3693,5421,9350,5595,5899,7874,8873,1890,6078,6492,8902,8904,3475,6626, 9313,8379,8911,6560,6629,306,1324,2897,8217,7519,4008,8161,8089,9274,8026,5578,8313,5269,5623,630,849,3543,4160,1912,8323,8653,9370,9313,8159,7520,9377,7652,7830,1714,652,7832,355,8340,8496,9197,8385,1873,9231,8824,8821,7454,2631,9229,5708,9248,8544,9209,8502,8419,8504,6344,9379,5381,6362,6364,1176,6367,809,8663,663,6370,8652,762,6373,110,6375,8582,6378,9171,8586,8867,9191,2407,6387,2103,9140,8509,6485,8007,765,5264,1493,8659,8592,8405,8718,8416,6195,557,9455,6802,714,108,6143,5643,637,8414,9447, 8286,702,8716,3578,5182,609,9467,8717,5222,6535,8408,8546,6581,5603,8307,2316,678,6227,2515,463,8670,7731,8661,4462,404,260,4341,3377,104,50,54,4020,9497,54,52,894,964,2925,4379,3640,8503,6287,5514,353,9318,5603,8237,8227,8659,8827,8759,6422,5287,541,796,513,539,8314,4622,8644,9180,2892,3706,279,9320,116,8800,85,530,1875,9143,8212,5118,9528,8805,3705,9223,9533,8361,9263,6427,9368,321,4096,6277,9549,5645,9405,7642,2627,9513,3521,9533,4954,7528,545,9205,5710,9228,9246,6645,9234,9249,8545,6727,825,8828, 8830,9235,8825,8959,345,8333,6125,8836,3695,639,8839,3699,5752,8230,8782,2969,8845,8847,9351,5402,3616,9367,9555,9321,8229,3641,9593,5595,8907,5528,8353,9550,437,4677,6640,8517,3696,4045,9413,9530,5676,9588,9416,9203,6645,8555,9221,9579,7942,8961,8706,8506,9275,7424,8413,8397,9468,8407,9471,8401,6755,3438,9475,9460,9469,691,9634,6329,8095,8710,3777,7251,4611,8106,7414,2481,7388,7674,2032,8403,9141,5790,7654,8740,8287,7657,8035,8714,2408,9655,9632,8719,8546,6885,8308,902,6751,307,6891,4119,2500,7192, 588,7194,6618,7883,9411,7384,8984,5789,5288,1809,4927,99,121,4749,280,9201,8678,6908,6791,9652,6677,8006,370,8692,8430,8755,5738,6084,9548,9694,536,3641,8430,370,9604,8909,5643,9607,9611,5702,8823,9250,6096,6201,6203,8707,1623,9070,2301,8195,9165,9660,6015,5984,5607,6048,6020,6042,9732,6053,6032,6028,6048,6030,5971,9738,5967,6044,6035,5981,6021,6041,6045,9747,9745,5961,6052,9753,6050,9750,5992,5996,9745,6586,5343,8899,7377,7179,6077,9763,8368,4638,8319,9764,5561,3516,8241,316,8563,9422,3543,4663, 4056,7686,3919,4669,3430,9609,4673,2781,9783,3921,4004,4068,9675,2760,9154,4475,9156,100,3686,9329,2462,7617,3995,9788,4066,4128,9787,4001,4675,2954,4127,4133,353,7680,75,101,121,115,9691,4557,8173,5901,8113,8287,9821,2370,5273,3744,531,7218,4522,4616,4239,4481,594,4605,407,8990,3821,4663,90,460,109,9240,7361,3833,8420,9809,9785,3790,4E3,9846,3927,4678,4662,2944,5660,7707,4789,4668,9807,9784,4672,9849,4674,9861,9790,9849,3810,9057,5405,355,8435,5566,9542,9149,9792,594,4121,9679,7616,9859,9851,9810, 3923,9806,9882,9848,6376,8027,8871,7190,3914,8076,4057,4125,9847,9862,2958,9885,6639,4676,9897,8081,8008,1589,6158,673,2480,5527,9145,9771,8588,5855,9363,8188,2944,3830,3707,9781,9802,9860,9789,4067,9863,9899,4130,9901,9866,9888,5849,1821,9796,4405,9827,4822,2513,8749,4765,5688,4752,1929,9521,637,1820,9776,866,3623,9944,1081,8797,3687,3689,3587,9090,281,3688,114,8347,6710,8641,8514,4549,5531,5326,4167,291,1E3,1830,4220,6279,109,9910,7990,914,7993,9972,9290,9087,6885,1658,9948,807,7481,8259,370,7950, 8796,5698,5863,9963,9870,9965,9441,9292,2407,4234,4155,9935,1808,4701,9937,9837,6275,8628,621,108,72,70,79,86,8779,9115,7300,8787,9122,4738,9124,8076,5932,8250,5603,8252,4549,6435,8458,4637,104,5064,461,8109,8287,5073,95,4340,969,6689,287,10032,5901,1324,8129,97,9976,9065,2407,429,633,3604,9990,5492,4360,7792,512,268,10005,86,10008,10010,2301,104,5035,10048,9869,10050,4364,10052,587,589,4620,4747,9818,6058,8173,406,6144,6577,6501,9673,9938,4767,1872,4769,9015,3660,5289,323,287,10074,278,964,874,9669, 3377,411,8887,5954,429,342,874,103,121,275,2212,398,3111,5134,3872,699,10043,9707,9876,8601,4754,71,10101,1291,404,491,7397,9845,9900,9896,9928,9850,10121,9852,4005,9854,2500,1820,9857,9800,9881,10125,9883,4063,9925,9808,10126,9791,10128,2760,3915,9893,9919,4058,9803,4671,10123,9864,9922,3845,6528,120,97,10042,9041,8900,9875,370,8597,9991,4566,9993,9912,8304,3681,4825,2301,8045,1465,8048,4371,9779,355,7526,9894,10147,9927,9923,9898,9895,10139,9867,10141,4055,355,6307,10145,10182,10135,9786,10190, 9887,3986,2760,9063,6139,4924,4124,10178,10122,10180,10124,9926,10202,10152,4411,9831,9998,4718,10157,9911,4164,5737,6335,5710,814,1871,10030,6501,10032,10034,5545,3531,10037,3871,95,10039,2790,10111,2258,8483,10119,3428,10201,10183,10181,10236,10191,10184,3420,2760,3988,9938,5150,1830,10200,9921,9804,3433,10137,9865,10203,10111,5660,4248,6958,10133,10205,10237,10204,10138,10240,9888,4663,9044,9798,10177,10249,10148,10203,10150,10250,9853,7653,9399,624,10109,9185,9148,7291,3904,10070,7409,7492,6472, 9118,8288,355,95,9265,7865,3267,2944,9840,1993,9220,10189,10239,10194,10273,10271,10207,3177,4053,9855,3340,10188,9844,10235,10270,10179,9805,10193,9902,5874,3687,10220,7924,91,1792,9523,921,1239,4818,3908,817,8932,10242,594,5660,10176,10299,10312,10206,10251,10315,10123,848,5863,10022,3616,10111,10244,3990,6222,9832,6671,10334,9886,9902,10302,10313,9811,714,100,106,4071,294,8618,8575,10279,9543,288,10100,10102,10117,101,10363,10159,5941,10061,9989,10063,5866,780,9967,8006,6088,9556,9088,10318,1706, 8018,9128,9571,9209,3578,3735,9598,2198,9567,9577,9410,9565,10385,9208,9619,6329,3631,97,5911,10398,9213,10400,8246,827,9010,10394,6195,3700,9538,8639,9144,5703,10410,8409,9974,4819,100,8692,10408,8531,9409,6651,5642,6270,10397,9614,34,7993,699,4588,3805,10430,10412,8638,3521,2513,4732,279,9256,9509,7956,1709,9260,8837,1557,3340,1881,639,291,3520,609,786,91,3200,561,6180,296,5558,302,10458,492,10460,1059,5674,10463,3294,10459,7962,10305,10469,2508,10471,741,8359,6078,125,93,6334,3340,10333,8842,34, 9970,10298,10485,10390,1800,8329,997,101,8556,3523,10453,6126,278,10456,10464,742,10466,289,5533,10481,9587,9266,8560,633,10309,9589,115,8522,10197,3537,6133,9265,6415,9264,9586,2018,116,8513,9038,4688,10452,6148,10455,284,10457,10470,10465,10472,10504,10526,10480,1272,4180,3702,9591,3877,10511,997,653,5494,782,10497,3693,10499,10530,10501,611,10534,10462,287,10552,10503,5444,5349,10474,2479,10476,345,5346,10561,3938,10563,296,10478,301,10506,10522,8513,4717,4055,10546,10496,10528,10550,271,10531, 10475,10533,741,5182,3816,10571,2083,9531,396,10482,633,4248,2967,3693,9063,6270,7967,3693,769,9064,341,115,58,123,120,271,1303,121,10608,503,125,47,10606,58,1923,10610,48,125,5379,10548,10529,10581,10557,10554,5904,10566,4322,10568,10467,8369,10588,3877,10594,731,3693,10361,10587,6186,10600,610,786,10603,10605,5482,10611,4183,5613,10647,495,10613,123,10646,1923,10559,104,10616,10620,3554,10454,10580,32,10582,10562,10584,345,5808,10628,2266,10630,34,1736,10572,6646,686,335,10519,10485,1169,10484, 9589,9970,9843,3611,8149,8688,111,5171,9703,9067,2499,10172,9185,8276,1442,732,8979,9278,5778,3872,9479,9639,9633,8417,7051,1470,51,10702,6713,8391,9457,5375,10444,6253,353,9037,5866,10598,9703,9133,2051,7611,5527,9356,7147,5655,1324,9353,7874,3677,5339,9879,4400,9986,5427,9890,4846,9914,3821,118,10737,7152,9023,9391,6638,9510,9315,7548,6641,6206,1852,9728,9232,9242,8554,10393,10387,10399,5718,10714,5378,9723,685,2054,9552,2164,8685,8242,1499,1701,8422,9596,9319,9715,8436,3610,5525,10727,8908,8378, 10774,10391,437,3519,7821,8578,6085,9563,6296,9199,431,9693,9618,10405,8826,2150,9408,9719,6727,2481,10430,9621,9241,6317,34,10216,8562,6384,10754,6340,8261,9258,1029,10763,1608,8349,9507,9908,10012,9185,9874,10282,7719,9836,9939,5186,9137,5218,9438,8585,9173,10164,10214,2407,9429,8471,1680,8650,5941,10742,4462,430,330,8363,5733,8655,9159,1859,4963,8749,8751,4546,9322,406,260,9553,4371,383,10852,4407,4648,6071,9334,3033,5950,3037,8993,414,4985,323,874,10553,3410,6862,10170,373,10693,5015,406,542, 8767,8030,8769,10076,10320,8772,6035,10884,8044,769,1465,8920,9006,808,427,4007,114,2609,10324,1900,598,10899,10019,1032,10820,5045,9117,5950,10014,8300,9265,10904,288,8092,7299,5026,8137,8654,8052,9159,9812,5739,8812,8097,10822,9109,9708,10380,8010,256,10396,10757,10794,6113,8559,808,9718,8545,10805,9518,8829,10416,10758,8501,8703,10761,10446,3734,9583,7966,782,10521,6134,9588,10540,6133,292,818,10955,9773,10023,10427,10577,8330,10777,8906,10779,9605,3521,10598,370,5320,9703,10915,7624,5202,9727, 9378,6501,6018,9731,6021,5959,9757,5955,9752,5973,9744,9809,9741,5972,10991,10987,9751,9809,9747,6042,6038,9737,9757,9754,6049,5982,9746,9758,5465,11E3,4259,10859,541,3745,10862,2833,10867,542,9311,10871,6215,10918,10044,8260,8696,10381,9223,9622,6474,8445,10804,10936,10958,10499,10369,10943,10934,8558,9252,8822,11026,9530,10959,4156,8819,10417,10755,9623,7955,9722,10949,9261,1850,4378,3571,1272,6138,8802,10485,11031,4403,10508,3579,10637,10964,6646,116,10601,10643,5633,3646,720,6159,8262,3627,9703, 10401,8083,11070,9907,10020,3521,807,9712,10781,10021,1517,279,10878,5181,8259,7547,9774,356,9508,8261,10769,3645,6289,7831,7839,6631,10776,3543,6362,807,8439,5164,3623,7759,1874,9990,7990,9170,10831,6383,8138,9291,10165,7255,8695,866,11105,3606,1797,3476,11107,1140,11121,3618,11107,2443,11119,1019,11127,355,3607,7753,11115,9087,9176,9146,4752,10281,10927,3489,11131,582,11133,6407,1853,7753,11125,1589,11147,121,11129,9812,1036,5858,11153,4011,8690,5160,9401,8132,370,3741,4633,387,10785,9031,8755, 3641,11169,10813,437,9602,8849,10968,9713,9533,9032,8878,2833,8882,9340,9336,8887,859,5713,8891,6486,9362,10632,9361,9594,8870,2932,8872,9594,9328,10744,6573,11082,9597,5661,9369,8222,4549,8659,6362,76,4008,3531,6357,1785,5259,4163,8617,5863,3623,11211,820,1825,1645,3736,11221,11213,5137,11216,5582,11218,4549,4963,11226,11223,1464,280,542,7990,10478,77,10698,7451,889,6854,10656,9096,5202,10570,10169,10326,921,8493,9982,426,7679,10687,8685,5863,8424,1826,10841,5015,6148,11258,4549,8513,8129,10357, 10359,9595,1816,5858,65,11269,1166,3604,6055,6077,2206,9056,10322,679,1881,5322,460,6384,4460,7502,5287,8672,9060,8675,4574,8677,9529,4221,2996,11255,1561,11255,5416,5164,11265,6592,5164,11161,6433,8246,5697,720,11170,11101,9262,4041,6270,11304,6598,5164,10525,3816,874,11139,2020,9043,9045,9977,27,10921,1618,8142,8057,9054,8060,5034,9869,8599,9060,8601,10026,10197,7990,3888,9728,9300,6275,10691,9069,8093,8274,9187,11345,9182,4689,11348,8280,11350,10977,10212,9082,6380,9085,11327,11296,8797,9904,2321, 9091,9131,10631,5446,5391,8722,5586,5461,2837,8117,2850,8730,2499,11377,5833,2853,8734,11381,8127,5479,6752,6473,3948,11262,3821,9098,6950,717,8042,11388,5203,5898,5893,3531,10729,5202,10836,8648,10838,9092,370,11364,9104,9017,6202,9107,10733,9994,3904,8142,4087,8780,7492,10908,8785,9119,8783,5927,9123,103,890,10018,2630,1456,10721,9526,1785,9296,9685,9444,8622,9632,2443,9539,10211,8608,9158,11296,11323,9153,11251,8609,9147,8814,10364,2310,8142,83,8144,9164,10979,3821,9167,6430,9169,10830,6381,10832, 8606,10212,11443,11451,11249,3020,10735,9188,11020,10110,7719,10923,9194,10159,9196,10930,10806,10791,8522,10430,10932,6100,10430,9211,10944,9236,6115,10424,10799,6645,9238,8536,9224,10939,10936,11025,9568,6329,5709,10429,11501,10796,2613,10798,9572,9569,11034,10810,11494,4008,9239,6314,10425,9251,9243,6926,10802,9415,10754,10805,10807,9255,11505,11046,11207,11305,5669,10447,9584,10952,9706,8840,10955,9267,9591,9449,766,8659,11408,8425,4249,9906,6160,1478,2607,2627,11546,6174,9903,765,880,6164,1382, 11551,5885,11549,1262,11558,8667,2966,3641,9030,10341,9700,9943,11089,11313,1557,7733,2321,11155,10294,2500,8376,5710,859,778,477,9617,7693,10120,10260,10264,10262,10253,10304,11481,10391,10319,7737,2775,697,733,384,1899,7969,3788,5073,2845,292,11601,10227,6380,10228,10968,433,121,4277,5475,441,3786,281,1898,2848,102,95,9950,119,10195,594,11578,8808,1098,11580,107,11582,7045,4592,9920,10351,10149,10252,10151,10355,3913,2500,10296,109,10488,10234,9782,10335,10261,10353,10336,10275,11576,2760,11641, 10684,10258,11585,10263,10301,11636,10274,10127,353,11621,9952,3691,9954,9951,9957,3587,1859,10789,8519,10391,11504,11044,10811,9024,10746,10445,8505,10806,10950,903,10487,8537,370,10683,2546,10956,5650,9821,11626,1119,11628,11630,10957,5655,11579,4008,11629,319,3701,10849,11299,9404,11480,6187,11497,10388,6645,2070,11521,6331,11029,6655,5295,6182,3627,10815,5333,9684,1353,11459,5547,9185,4282,10828,7238,7692,7787,11108,6758,7601,9113,7052,7867,6800,11438,3299,7691,7407,7828,8933,11741,7914,7123, 9651,11721,3511,982,7827,11745,1081,7919,8942,1427,4906,68,4907,282,5296,9092,9703,7993,975,590,699,11214,1625,11142,9442,431,1325,1537,7799,114,11176,8172,4752,5631,4547,291,530,2206,74,6614,11768,374,7508,11727,10431,452,3519,517,385,406,5627,5118,3237,4462,1511,539,11331,6139,11333,3020,108,11792,5677,385,97,120,11797,4752,6523,4462,829,3047,10420,11784,11786,5137,11780,4416,6425,9287,11201,8691,5169,8473,9398,1730,11312,4966,8817,6580,11514,115,11654,11523,10936,11495,11643,11035,1539,9418,11677, 9031,11719,397,1670,11140,9527,10847,11296,2070,11110,10052,11445,11325,11137,11328,10806,637,11787,10530,5260,8956,11645,8336,8344,10787,316,3623,287,8337,5490,11873,637,287,6404,10277,11271,8338,11106,637,9888,1934,11865,10581,11867,8616,3833,11870,11882,8267,1799,11875,11871,11530,7833,6369,32,11881,11832,10813,1799,9888,11859,4153,9997,4158,11467,10371,3662,11442,11362,11451,447,299,4924,5320,3476,10973,1589,11922,9181,260,9183,9725,11355,10695,511,11909,9083,11361,8097,11770,11414,11439,10414, 8629,11466,11917,11914,9682,2621,11889,10663,11891,9076,10311,11894,11905,11872,5165,5870,11898,11895,11906,11902,11904,3603,11960,5870,9888,11112,11463,11114,10052,2815,11109,9869,11465,9081,110,9794,4476,11861,11296,11346,9184,9388,11356,6868,2972,3623,11948,11229,7817,11952,6590,11899,11318,1735,11874,32,11876,5864,11878,4949,11962,3615,11994,11128,11886,8129,11157,11228,11950,741,9859,11953,11963,11955,4011,11958,11954,11900,9402,1036,11880,1738,11998,8339,1036,11564,9711,11178,11083,3521,9515, 11460,11571,10640,8758,8809,2129,9522,9084,8866,7582,11117,9544,3680,9533,9535,9537,10438,716,10285,11855,10590,9546,876,9706,8208,9550,262,10856,1456,10490,8355,5858,11203,10782,11205,5836,10929,8518,10937,10430,10941,9576,11489,9578,9721,10762,11049,10448,11534,2715,11536,11702,6589,5357,11993,11884,11995,11573,9777,7836,8231,12013,12003,12088,11901,7841,667,9700,8158,4478,9776,11671,11481,3700,5660,10430,10216,10681,11844,6651,11522,11517,8546,10067,4745,12113,11493,10400,8520,10511,12111,10713, 9419,10747,7539,8357,7667,466,406,10725,4400,1329,2998,11401,12133,2374,406,9349,6275,337,7268,5176,9056,12143,12132,7731,12142,4823,12136,9772,11165,2894,7192,478,10750,5723,10933,11512,8567,10745,9026,3713,12091,7967,3116,7705,7564,3464,3138,6759,8475,7887,7460,4873,6976,7741,6768,7080,6980,7745,7083,7747,7085,7749,6986,7751,6988,2194,2160,12168,9190,7731,3120,2180,7640,7226,9557,8957,7644,7255,3138,7102,9277,4416,3367,3302,7646,4489,7405,3483,7039,2138,8936,11985,3458,6794,2687,6929,4082,2355, 1311,1996,4087,2349,7144,2234,12219,6867,7731,2343,3452,7768,11755,2186,12195,3459,2828,7416,10722,4171,12226,3507,3504,2901,2869,7188,7295,3506,922,2292,7330,12206,2079,7724,11945,2740,11729,10132,7201,7363,7697,9244,2669,7329,10818,2568,12233,4850,12205,3821,2296,2112,407,10131,5202,12237,3478,4580,6913,7939,7174,12212,3099,3498,3314,3300,12269,7710,6730,12211,12217,2806,12225,2334,7781,3445,3507,7093,3028,3484,3052,7156,3945,7688,7364,12190,3170,2377,12295,3512,12244,3509,12298,7028,7317,11734, 3465,2828,5936,9489,8985,2995,7385,3132,3180,7700,9442,5458,2995,7682,12277,2289,4286,8453,12170,12309,7177,12253,12242,3076,8919,11013,9496,7411,4118,2254,3540,1589,10749,2568,2403,7809,12272,3501,2338,7391,7126,7773,6275,1934,12332,1260,7668,7428,4259,12222,3106,7421,12340,6275,12237,7188,12300,2267,12335,2234,12287,3214,2518,7343,10833,2397,2903,12229,12215,12194,12243,7321,12235,3372,3068,7171,6844,7730,5617,2380,3356,7795,7381,7418,3254,7367,3450,12342,8928,7385,12368,3491,12230,12221,3138,10719, 5309,7184,5312,3382,6454,1993,3289,3361,12399,986,7172,7873,12333,2334,7385,12373,12227,7155,12391,4344,12368,1939,3912,1934,11241,5024,9294,10842,1499,4605,7655,8287,8742,8744,5766,112,7219,12265,12431,1993,12375,9002,9020,4574,9022,3366,12356,2712,2405,10052,2011,7351,12291,8980,3451,2697,7189,5938,3413,6723,7671,6726,11710,3150,2894,12325,2977,12289,843,7772,12282,6275,5366,3270,2497,2944,9968,4165,12435,2559,2506,12220,9685,12319,3180,6878,4561,12398,2734,12408,12203,7586,12433,3125,12481,12470, 3912,9644,10894,2548,2418,5453,8099,9649,7753,2911,2505,1982,12245,1884,3373,12322,7667,6959,6854,12368,12437,3138,1E4,12445,6501,7183,9339,5439,12352,3086,4429,7372,2695,3138,7721,8973,2435,291,9105,10002,6691,585,8992,8994,9816,12451,2632,7114,12507,11731,12265,12197,1205,11393,1208,6952,6926,3003,57,12172,6972,10320,7739,7076,6767,7465,12180,7744,7896,12183,7898,7748,4886,7473,7778,12560,12557,7267,10349,7410,8924,7412,7274,3471,12453,2025,2879,12496,3149,3483,12504,3068,7242,12550,7270,585,6873, 12584,12539,3466,12290,9134,7611,3483,12377,2024,2725,12503,11748,2527,12461,108,12363,12388,3355,12609,7800,12383,7169,3495,12541,12379,3351,12192,11413,12397,2334,3408,3912,4663,32,12488,108,12122,11584,10311,11634,10272,11659,10303,11638,12237,12328,11939,2798,12562,1291,9099,4209,3544,2903,7029,8950,6075,9658,9645,5309,12536,7934,7659,823,8986,12531,3068,6063,7426,12460,3309,2270,5812,11373,7300,8725,5472,8727,8111,8118,8732,8731,8735,11383,5829,5478,12668,3186,12338,2024,12455,11739,3146,12213, 12671,3105,2878,468,12523,12508,3483,12651,12043,12308,3147,12597,6833,12478,12625,6865,8190,12405,12312,7176,2024,12286,7368,12403,7154,1993,12700,3291,12704,2509,3261,7856,8921,4762,7626,6463,6746,7628,6466,7630,7215,6699,6753,12519,12620,7636,7877,12542,511,7231,12722,2669,12297,12750,2632,12482,6489,12281,6846,12623,3196,12381,8949,12371,11402,1499,12321,12173,12283,3458,3408,2699,12603,8922,12606,7853,5266,9008,859,9799,12551,10321,2597,9013,1936,10083,8797,2601,9018,3015,12714,7150,12758,12635, 3329,2325,6864,7805,12747,12301,11593,12780,10867,441,2734,3046,3042,3044,1587,12805,6375,2283,12587,12051,6501,6735,12347,3191,12423,12626,11742,12697,3022,7002,12425,12360,12427,3290,12259,9880,12261,12306,12263,12709,12761,12390,12627,3185,2740,7440,11734,12838,7166,3188,12661,7026,12293,12244,12711,12845,12629,7420,12703,12848,12543,3029,406,12354,12372,9003,1403,12459,12292,3104,4774,7886,12355,3029,11811,12622,12793,12247,2806,12728,12202,12676,12462,1357,7313,12753,2044,12540,12762,12267,12264, 12754,12795,6488,12797,12631,2911,12873,12884,12880,12714,12600,3301,7432,6852,7669,7435,7910,7437,6329,12841,12719,1993,12891,12709,12480,3483,12834,8941,12836,4344,12430,12842,7040,12763,4400,12498,2205,12868,12441,4416,12915,12251,12596,12411,12497,2152,12696,2200,8180,9534,290,8226,7990,12237,3408,7070,4924,2548,12175,6511,12177,7891,7743,32,7895,4881,3753,7899,7086,7902,7475,9019,12547,2996,3113,11242,12866,12896,7337,11737,9476,9397,11946,12452,12851,7120,12559,12268,12886,7804,7356,12798,3489, 2398,3292,12918,12759,12871,3507,12311,3315,12973,7913,3481,12837,12713,12239,7937,3073,12825,4496,12469,2459,7849,12772,12733,91,12774,7903,12693,3301,6687,7298,10976,12604,7301,12735,6694,12738,7862,4103,11387,12421,3300,12864,12037,12246,3300,12279,12779,12329,12972,12997,12970,12913,12301,12533,9659,12535,8712,12537,4259,12232,12973,12731,12513,7210,13011,6744,7629,13014,7864,13016,12585,12568,2460,7906,12365,7434,6534,3417,12902,7051,12639,3422,3424,10269,12645,10314,10300,10316,2568,12752,12337, 3105,3447,12495,12928,2053,12636,12986,7871,12210,12402,2669,13023,12791,8879,12412,12875,2895,912,12878,13068,12213,12907,12967,3477,12818,7677,12971,12892,2451,12407,12618,13021,3296,12594,13090,12904,6830,2905,13071,12387,13083,12238,12327,7139,12746,7797,12723,2097,3508,12927,13108,9685,12925,7235,12980,3102,9269,9960,5699,9703,6418,11237,3004,6148,12059,2036,1456,9481,101,10575,4824,10472,8764,8762,11335,10168,7953,11847,11567,1662,8753,11724,9322,710,876,6583,13149,4911,876,11307,6635,12126, 11175,1888,628,6217,11705,12070,1851,8019,11527,11172,989,10843,7976,7489,2302,8847,98,7347,7131,515,98,4515,11733,13095,3360,878,13176,11751,12988,7559,5870,7563,12193,9297,1888,115,6911,12506,13029,4686,13195,6894,12602,8071,13001,7852,13003,13180,13196,6933,12887,12975,8872,13181,13006,6459,12732,10895,12734,898,12736,7860,4100,3344,7863,7216,10293,371,1665,7822,12336,12468,1115,13176,7221,12271,9357,13181,13197,6488,7385,13208,12394,7392,12426,4400,13208,12897,12472,6995,7670,12901,7672,6329, 13208,13202,13183,13199,11191,13181,12414,7656,5311,276,2582,5314,8742,9347,13181,13235,12467,12501,13233,1888,7685,3273,9426,8993,12830,3084,13268,13209,7032,7133,6680,13082,11435,13195,6798,7868,11738,532,13288,7885,12941,5763,12943,7462,3225,7077,12179,9186,12181,12578,7469,7084,6774,12186,7087,12188,7089,2116,13234,12654,5858,12657,13208,13275,4249,13277,7694,873,13017,336,13187,13050,13123,12527,6722,7909,6535,7911,422,13195,7225,12563,7716,4268,7718,12697,13176,13215,11354,7300,7859,13044,13224, 13015,9829,13259,6725,13213,4807,7033,13285,13352,7370,13113,9361,13238,7612,8953,3944,1161,13320,13279,13322,3350,13341,6934,13236,8868,13195,12204,13271,12924,2019,13325,7456,12767,7737,12572,12945,13300,12575,13302,12577,12950,7470,7900,12583,12775,13281,2747,13352,13239,6739,13007,7857,12780,13345,13013,13347,13046,13349,1726,13229,12274,103,10257,8901,13360,7455,12471,6820,3160,12474,13252,12476,6329,2317,10766,13359,13182,12998,13204,13002,12955,10340,8890,9099,13176,13163,2363,11965,13200, 13412,7639,7591,13371,12995,13273,13177,12823,12395,13245,12981,13186,1888,6912,7263,13446,13194,13214,13198,12820,13185,13324,13449,12796,13212,13423,7106,13314,12656,12566,9323,13181,12545,9326,13437,6718,13294,3220,7888,12176,7463,13384,7892,7894,6771,13305,12184,13307,12582,7750,12607,13406,8514,13408,12276,13246,13201,13210,6622,12484,12792,13120,13377,1888,13203,7776,7056,13392,13436,9817,12534,10320,10867,406,11041,4709,4332,10771,1839,13162,383,876,520,10386,12165,545,8508,12965,11022,10745, 5040,11597,511,8686,11072,380,11074,11309,7547,8658,11079,3535,13535,6267,8254,5719,11095,325,8348,11282,6225,1658,11204,8857,9703,8365,876,8367,11334,13546,8371,13135,8360,13553,8372,5181,5613,13557,2301,120,13564,3020,122,13567,4371,121,13570,9364,8022,6414,12066,8857,12085,116,12024,7840,13520,8916,3641,12094,11883,11877,11956,663,6409,9512,13534,12034,994,2894,10709,9E3,9456,9478,9642,7051,13523,10703,11528,9581,6142,698,7480,9272,300,9716,5174,4688,4978,11527,834,4977,3693,10443,8231,4984,4356, 6251,9313,11048,13521,994,9826,3531,9270,10217,4225,5045,4624,5104,5582,3771,13629,1808,13631,5145,11433,5395,5175,10106,5061,10826,5127,11854,11451,4783,65,514,426,10916,10846,10920,11444,4277,1685,8147,9282,1699,10288,10981,1698,1690,9127,10837,4072,11406,353,5073,13647,13631,5025,5581,11816,9287,6242,11913,10823,5941,12526,11722,5124,771,430,13642,5385,8091,13687,4996,10218,5042,5101,4228,5048,4559,5556,4233,5392,8097,11434,1353,9491,4416,13674,5037,5063,13695,529,13697,4623,5068,13636,7663,4539, 13639,1324,13631,12549,13648,1625,10926,13025,13673,13687,6166,13632,4903,13634,9284,13637,5106,5135,2602,13631,13714,9283,5019,13701,13719,10085,13721,430,13677,8183,11816,13687,5039,13712,5043,13633,8173,35,5047,102,5049,9285,1081,4714,13630,13452,9685,13709,5108,6152,292,8204,4622,8207,7708,13720,594,9299,9308,4462,13763,1808,9307,5622,11790,13780,10728,11247,7593,4277,811,9303,8315,13773,3821,1793,811,13782,5146,8316,13750,13737,591,7676,5078,5118,5080,11790,4783,13646,5136,10919,8139,9195,5840, 5934,10717,3865,13261,13627,8756,10968,12140,10726,10724,11399,5902,6492,10731,515,5502,11470,8876,3020,11469,7951,11193,13145,10745,13606,10716,11174,11171,10947,9511,8335,6148,11833,11023,11480,10216,9200,10404,11490,5941,6004,11675,9214,10409,12075,9410,11842,11508,9417,11030,10797,11708,10759,6528,11837,11839,12114,10940,10801,13616,1618,12118,11498,11037,12105,9254,6338,13169,6341,11848,9627,8026,10741,11197,4852,13817,5857,9099,13816,11315,9039,505,11462,9172,11969,11021,2149,13824,2976,5527, 12151,4082,9454,10710,8594,10712,8546,5485,3020,10161,11336,4634,6353,8603,6355,9064,11474,4289,11943,11937,11450,11945,13834,13779,9139,12634,1590,9001,13684,13380,11402,11440,594,10279,8610,9179,11451,13707,9330,13832,13835,11370,4473,814,373,12049,8640,10793,13657,13812,11945,11403,8665,11405,11368,9686,625,6176,9873,13650,11478,11069,765,11071,11570,10965,6633,13146,4549,9981,13966,3549,9775,8915,8229,11639,10142,11477,12260,12644,10134,11658,10338,10254,10160,10375,316,9872,10821,13964,13683, 11651,10186,1819,10144,10310,11645,13062,10337,13064,10339,5562,10891,10877,13144,4473,10284,9540,10864,2835,10288,1169,10291,8076,13227,12639,11056,11644,11633,13985,10352,12647,10354,11650,13980,4055,13999,14022,10146,11646,11587,11648,10261,1565,9483,5309,10910,11425,11427,8791,9103,11544,1974,1475,9868,3884,9964,10163,11111,530,1475,8513,1006,13724,450,13925,13995,14029,110,9917,10442,10350,14024,11635,13987,11590,11663,11668,11665,9905,9955,11664,8693,11479,12070,11485,13168,13856,10406,1559, 10403,12108,10407,9215,14082,10760,12125,11679,9421,7964,11533,8818,8844,3877,10517,14031,10493,10495,273,10622,10662,10664,10567,10666,296,10586,2926,10537,12044,9918,285,10961,3616,11220,11212,5330,13979,12042,9685,11103,3637,7679,10825,1456,10857,9987,12787,3410,6087,14091,10715,6177,4549,83,611,1439,10516,9703,14110,13399,8325,10773,5603,10971,701,11145,741,8481,12077,6637,11761,1478,5265,9453,8716,10703,9667,6538,1664,11988,12010,12364,9801,91,1327,3735,5536,9018,2780,14169,6614,1844,4105,13158, 9580,9420,8334,4929,13155,14157,9703,515,103,10247,11632,14168,6887,292,7993,44,14170,14176,44,4633,259,640,44,11514,1088,115,103,111,14194,14175,710,2816,14195,14209,50,663,2954,594,260,12039,9898,1327,10419,259,14207,14171,454,14198,100,14200,14202,902,14205,14223,14176,3949,14232,14212,14214,14201,4096,14218,8582,14159,13908,13599,9470,10705,2967,869,8721,12999,10834,9488,13934,4400,13942,7683,109,449,4633,429,336,309,9464,10379,14134,7957,288,67,465,1695,103,11173,11955,8446,11172,9943,11174, 3601,5170,13127,13594,256,1088,5023,4378,10397,11087,6275,1631,1796,312,76,312,10880,12033,4371,1631,14292,14284,5639,10397,9767,2301,5023,14290,2569,14293,611,14295,13574,10812,11208,3601,12087,13588,11151,13970,12092,11677,13581,11122,12098,8668,9374,8219,7486,8659,1791,11916,10925,13994,11143,13989,10513,2602,7995,14176,5644,11343,9541,14331,13727,11915,7989,11944,14061,14328,14335,6207,101,9536,2032,11440,9378,13953,11116,14251,13605,14180,10784,859,10205,8659,1828,594,13676,12923,7287,5931,3438, 14366,12674,7382,7233,3438,7812,6954,1978,2775,14371,13497,12598,8412,110,14380,13286,2354,2775,14376,2020,14388,7441,8386,4031,6782,6201,8383,3559,13171,6602,3692,11050,9564,2597,8638,111,10268,10547,10579,4403,10551,1974,12163,6577,10873,1410,6207,1513,14112,12669,1954,10451,14408,10661,14410,10624,10532,10502,10534,10668,10556,14427,14415,10461,10588,8704,6660,7975,11849,5267,3110,11410,2833,12553,108,5908,2611,12330,12957,9021,12959,10894,1353,6732,13295,427,13195,461,7510,8925,1332,5431,12956, 8970,4224,13184,2322,12933,3209,3649,13900,8054,1844,5035,293,13950,10415,14329,13921,14420,12957,12869,13120,8986,12861,8980,8986,7385,12749,13833,12663,13040,427,12666,8037,12692,12512,13474,12515,6453,2554,8746,834,12859,2681,14485,4462,12777,13858,8287,9012,32,2493,7999,9016,14131,8044,14417,6209,12564,91,14413,8044,1036,1808,3564,1828,14122,3321,110,11274,118,4378,10037,12055,356,10019,1859,14413,12157,8519,6298,10792,13852,8825,4163,386,3700,69,3651,4686,13929,10423,11487,13855,13859,8540,13878, 8530,11039,13879,14350,4450,12160,14356,14547,6336,14550,9138,6388,4633,14085,13874,2408,8750,13866,10795,10482,6311,13060,11505,14546,8561,14568,13673,4744,10069,11713,14089,14582,14548,14584,6318,14576,9236,14590,14567,9027,11711,14581,5582,14566,10369,14592,6330,6653,14600,1974,14602,14549,14598,282,3293,14564,14578,13880,9776,14564,14596,14603,5662,14153,11680,9322,11436,4633,13019,4053,13102,12314,6492,13929,13357,13090,459,12969,13090,14625,7821,13408,7823,7810,10054,542,12857,5202,1804,3485, 1799,13597,7195,10711,13600,14246,8458,14570,112,13248,13415,12473,13330,13055,13253,7051,14638,12569,12865,13381,13475,12944,13477,12574,13479,7081,12182,13482,12580,12185,13485,12187,13487,8098,12440,14372,5499,13929,9990,14287,8063,4710,13905,9685,2815,12147,5617,12256,14061,10004,542,14482,8951,12294,13179,13929,13289,12964,13604,1198,12812,13008,8922,12815,4576,4662,12404,10173,3099,13090,8530,11924,2321,11926,4452,14656,13501,7851,7777,13504,2083,14253,3158,13052,12529,9043,9955,12937,2339, 7796,7190,12594,12721,3020,14635,13116,12931,4164,12916,12214,7878,8947,13231,7258,6821,7260,14723,9445,14639,3889,13193,9685,290,13408,12169,14716,12313,13118,14749,14695,2531,11734,14647,12303,8942,12305,7695,7400,14638,13450,7729,13765,1353,14638,13031,12664,13262,6503,9662,12692,14743,12223,12370,12883,5142,12724,2358,13072,1094,14638,9656,14746,12905,2235,12844,1442,14638,7604,14767,14760,328,1664,1566,4746,14588,14479,14574,8155,11928,14384,316,2001,9973,7705,13410,6841,14552,12234,13258,1761, 7149,13355,14631,14656,13243,12359,12485,8868,14825,14829,12757,14386,1315,7403,12241,6275,14789,13358,14742,7119,3912,8625,12898,12366,8081,14131,7990,14665,13257,13456,1095,13439,13375,14824,14656,12745,14634,12382,14858,14761,1937,14641,14824,13930,7907,6960,6946,476,14367,9800,7452,4259,14805,12828,14166,13277,1327,6371,762,9888,2070,7385,5032,13685,2109,13936,263,13923,14814,5624,12483,12824,14835,13246,13929,12500,4416,8045,13899,7300,8176,14512,6380,8620,14656,12558,14827,14755,6389,13178, 11734,14898,12715,14846,14764,13116,14741,5430,6091,265,9273,866,14722,341,14837,12424,13445,12994,7731,14856,1872,843,14602,7990,1631,14700,5683,13464,14520,12657,14845,12436,14703,14913,12466,12611,14862,14756,7380,3130,14685,14656,7385,11431,5336,14933,7568,14861,7874,13929,13067,14923,7316,12917,14792,14800,13105,2913,14951,14756,13374,14954,14288,11811,14645,5443,7705,13491,7731,4707,7433,4661,1859,10893,4357,11259,10687,8659,11471,14981,120,14305,10001,14973,11246,5486,13883,14994,6257,12100, 9313,8659,1684,9095,8030,13664,6017,9730,13667,435,9830,4155,4237,4619,11795,14063,12853,1135,1390,3604,9638,14243,9477,14245,6195,319,11211,6567,11448,4752,13726,12652,8463,5849,7205,11065,3804,11979,11451,10975,14144,7731,626,4391,9982,12101,15052,14569,14756,14799,6766,5858,5635,4259,9565,5230,11420,8287,10911,10018,8290,8080,4817,10021,1561,13576,11084,13922,8797,579,8355,10438,8181,9383,11790,5563,6622,12937,10347,10210,13937,14896,13993,13658,13651,15087,4158,798,447,5137,11789,4462,14771,4264, 12304,13364,935,287,14885,9432,1465,9888,9009,2624,3123,4558,5287,14532,698,383,7552,9681,6608,9960,12707,14357,9812,8750,724,5041,1583,99,70,1844,609,699,14184,8097,11932,11753,10880,13131,10466,7492,10884,10288,10887,8774,4259,6614,1670,14164,11217,9558,13610,15062,10347,15021,591,2206,13090,11010,11227,14520,10850,8750,11011,10040,4006,9189,4680,8475,11344,14646,1390,14649,9631,13524,14161,9620,14007,8047,14009,6547,15168,13690,4243,11790,1631,78,431,3804,9534,3670,115,13723,13787,9490,539,1898, 85,14575,4551,10549,14425,7570,8218,9395,8220,14354,5258,14165,296,5262,12101,15205,9376,15207,3591,15019,4236,4618,591,13771,13643,11790,293,15077,594,8355,15029,13598,15031,9641,14654,6923,15168,9425,15105,32,15107,3773,5511,9888,9979,15053,9313,11830,10431,11473,11296,9193,12056,14355,8656,12069,903,10803,14589,14601,8520,4963,14610,11206,12116,14587,14606,15257,14608,15259,5169,15261,3600,11716,1559,9582,14402,787,119,15197,100,10893,1881,11226,6712,292,15044,10602,1043,6282,114,51,10621,14409, 10500,14047,395,539,15290,10671,12149,2675,10669,6261,513,698,120,52,1616,14433,3734,15303,105,120,87,15278,10633,6132,9264,14100,476,15278,6270,15281,11212,15283,10641,15286,15295,15289,15291,14424,15293,866,15287,8866,15297,14108,1452,10536,14431,9946,15310,15305,15307,10503,11011,15304,15313,704,14418,10674,5595,10597,11063,15284,11066,345,1714,10605,10607,3013,1281,10610,15360,3160,12786,8989,101,271,832,11772,125,124,472,1872,15329,10498,15203,14106,741,15333,15296,15343,10534,14143,8421,15339, 4789,3590,287,2928,8765,15070,10671,15148,5514,10674,1570,6133,5595,5687,11284,15168,10599,15285,10643,14873,15390,430,5932,10660,15376,15331,1019,15380,15328,10671,15384,11773,10674,15129,14102,11064,15355,14731,91,4963,14602,12049,530,2513,15389,4096,15391,15409,3595,15330,14411,10583,14428,741,14430,2360,10671,10673,6701,378,4332,15429,4409,15354,10642,14166,832,15431,410,15408,6534,603,15436,14426,15332,15327,15335,15439,345,15417,49,381,11366,15462,15382,10585,5175,50,15315,11061,5748,1591,15312, 15314,10640,15404,14166,636,15478,8192,15407,11598,15457,14104,15377,4249,15388,32,15487,15392,15336,2408,15349,8845,5711,14473,4963,9486,14317,1557,406,15347,1898,1881,8903,5590,2829,8166,2301,8765,10881,11028,8781,15143,8771,802,11187,6621,2010,115,15035,260,15037,11853,15092,11945,597,15042,1968,769,9387,14340,15531,14346,11930,14486,15514,13704,5287,10229,12144,6005,15137,10819,13781,15195,7423,10968,13791,10827,4561,11418,13663,9120,1513,5950,15067,4741,15069,10913,4372,5564,14696,14332,7660, 4688,13777,13783,6061,5183,15552,14760,5189,15577,3149,5527,5228,898,5230,5237,10288,5237,5239,5241,5243,5245,32,5233,5248,5252,5232,5249,5244,1826,291,338,8795,15230,12966,15394,268,15150,11230,15152,13625,3670,8129,15164,15161,13337,6211,5169,10851,15165,10230,7719,514,5677,15510,13962,15091,13954,14061,13785,13776,15580,14797,13775,5283,15632,2129,10876,15180,13140,13779,15634,15555,5278,11790,9189,13930,4220,14943,15278,15510,15311,876,4457,14973,15243,15073,15245,10839,9530,679,15122,15569,14342, 9704,8131,11432,13725,14341,11939,9310,6250,15503,14266,34,71,460,9938,11987,390,11759,115,14155,5873,14142,11782,11810,120,11785,13181,8167,5287,637,105,9814,14122,6862,11801,11776,8873,9071,15549,5730,407,964,748,14973,15698,11803,8059,15529,11433,15702,6710,11808,11794,2206,11813,13772,4559,5287,4466,11065,12679,11816,3424,7993,11820,15690,6005,1915,15721,15715,464,12439,15718,1785,2651,15702,9601,11758,14176,15682,11829,15659,15675,698,934,947,13172,13128,12765,15507,14877,12277,8986,14450,2440, 14452,1094,14497,9646,14499,12517,14501,12450,14448,14464,3912,8636,12934,97,12936,11970,14518,14475,14894,10370,14061,8981,780,14944,12619,324,14983,15424,14879,14463,8982,12958,15758,3109,12957,14488,12090,5427,14491,8711,4332,5436,14495,1277,3049,14482,14873,12529,12765,14982,14892,15783,109,12439,15785,12323,12957,15194,3377,14444,14446,15788,2599,12860,14451,11430,818,9009,13024,8922,14511,14513,12785,11410,3049,12673,14381,1094,517,14473,14519,15616,14521,9625,7538,14523,8828,1324,14526,9689, 4896,14530,100,14532,5639,14534,367,14537,6556,15842,9027,882,796,14509,9322,4619,1291,9808,3727,6677,7385,15864,10205,13335,12655,14947,13466,15870,15866,7224,14866,11752,9488,6567,790,14882,15424,13321,2780,7400,15876,2953,12614,2300,13833,909,7350,14860,14980,11248,15894,7234,2912,12432,14915,6196,15865,2953,13463,12343,12143,6672,12346,14713,422,4090,14799,15889,9916,7175,12912,14858,4173,13188,4532,3185,1062,15895,8928,2243,12344,12589,6552,14460,6448,1844,8954,12198,11990,13338,8958,9414,15905, 2944,15813,9685,15925,15900,14745,15945,14914,14858,15916,11577,13361,14772,10833,14774,873,7620,894,387,121,12374,14803,1135,15960,13270,15897,7179,15899,7239,11734,4007,306,13105,12969,15769,14361,15877,7065,11744,14E3,2090,12262,10329,3948,14269,10403,14720,1974,14931,459,100,5405,13230,12378,15515,9163,15974,14801,12638,15965,12594,16E3,15992,13318,11655,7687,14775,7689,8669,15882,14627,10169,15977,15890,7713,15927,4647,15909,12345,12590,12816,7884,15973,15883,15980,14032,8931,8044,16014,2944, 7256,14730,4082,15945,15891,5308,8764,15997,15900,12660,13327,14701,16004,15879,13189,1081,15991,15961,3099,14745,16048,13192,13930,14781,4090,14658,14752,13416,94,14661,13351,8409,15951,2760,6942,15754,15968,15882,12213,14745,15972,609,12266,1456,16063,594,14375,7131,16052,14985,16033,14692,16030,10129,14822,10233,15100,15965,14946,15840,14948,16001,14794,14745,4173,14979,14843,15898,16011,12633,8061,16068,16050,15963,1630,387,11238,10052,16048,12699,7131,633,15934,16018,12588,7300,14712,3061,10283, 15941,15952,7814,16017,1203,8955,11892,12200,15984,341,16056,13473,9646,13297,7890,13478,12947,12949,7897,12952,13308,12954,7752,7600,16024,15962,16042,15836,16083,10142,15878,12882,14628,16044,16151,16013,16120,3829,15918,1415,16104,16119,10205,16053,16101,2685,12969,16070,16039,15970,14466,16075,4664,16016,13362,16124,15936,11868,12565,13339,13875,16156,2956,16045,15923,4344,15948,16089,12199,15938,12201,15913,3767,13342,10916,6501,13401,7213,12739,7632,13047,8624,15899,15943,16055,3767,14783,14492, 8881,2818,7658,15802,16161,15866,16080,12570,9097,16148,594,15782,14804,4090,14918,14466,16109,12839,14466,16112,8378,13363,14167,16028,8452,16153,12316,14972,13558,16144,14702,14770,15960,14969,16087,16233,14790,6966,14466,4173,16241,5427,15899,16248,11391,16217,16172,8402,14365,13747,16066,14937,4090,16163,13827,16192,13444,13244,14936,4920,16253,14806,12976,6486,16221,13354,14839,16074,16268,15884,288,15956,15887,16009,16071,15926,3485,7385,16227,13241,16130,13425,13502,4898,13428,16271,16263, 13211,12716,5499,16260,15994,12615,10059,15969,14848,7131,15945,12444,13032,12571,9647,8105,15765,16029,16181,16254,9636,14391,11734,16171,6894,14370,16257,14684,9492,16253,15907,13098,13440,14750,16004,14709,15049,13E3,16117,6737,5562,16324,6849,14394,16317,16253,16320,384,16219,511,16282,15900,15976,16313,15867,7395,15896,16097,7879,16276,15908,16115,8287,16333,7413,11407,14269,10423,15988,14930,14928,9315,16345,6794,16167,16024,16203,16147,16313,6894,7385,15948,16238,16170,16268,14715,6234,16302, 16093,16160,16293,591,14705,11295,15604,6506,16144,16187,15937,16178,15939,16023,16072,16330,13217,2248,16021,15912,16396,15998,13122,14973,16247,16214,14667,8063,16253,15869,16354,16326,14966,4527,14078,15255,15977,10430,474,10897,101,14572,14089,11528,13527,13172,11532,10951,787,11488,11491,10527,15459,10663,2321,16427,14400,15416,1727,15301,10165,10671,2815,1523,10537,10849,15153,14540,8027,14555,12123,8546,14559,14573,10216,12122,14614,9253,101,12110,16459,14593,12072,13873,16425,9414,14813,16453, 11676,13838,14359,14439,14962,9520,11790,14221,15711,15668,15539,15570,5790,572,1747,3486,3817,10817,15046,11945,11967,13898,13732,11449,13940,11945,14886,1465,4011,9818,13952,15538,15628,16482,808,14478,10280,14060,16504,11919,14929,1019,14931,2070,16363,16512,16365,14181,5366,14336,15157,2932,14339,15038,15669,12708,3371,4936,13810,13924,16495,14061,16519,14349,14351,10413,10439,280,15208,16524,16481,15664,14798,13291,13091,13938,16494,14356,4220,8555,16546,11141,16508,13025,1859,9581,10974,513, 13561,582,2516,2443,10213,572,294,105,2839,368,8657,348,364,351,13612,8011,11511,12114,16471,6573,8692,13173,8164,1169,7546,12350,3548,12351,6710,15248,11451,8683,13336,16188,870,8686,16571,109,11260,7829,297,6249,13623,15673,1709,13551,15636,1442,14129,15171,4400,122,16605,4380,762,6616,8623,9365,6226,15674,9533,8686,10678,15505,1608,15541,11800,5944,11457,7737,13666,6020,9733,5962,9735,6034,5965,9739,10990,6033,9743,5975,11008,6040,11007,16642,5977,6037,11007,16645,11002,5995,11004,9755,16647,2001, 8292,13130,13818,866,16620,10963,15338,13292,9594,16657,1019,16659,14147,5533,5719,3548,10024,8748,8151,373,15061,8659,9281,13733,13742,13761,1933,8180,9382,187,16476,14310,11677,16675,6589,121,1874,9559,13538,14281,34,5849,1297,7257,13939,16548,5058,16488,15548,9521,12856,15809,1790,14586,11579,6110,10071,10863,4622,10486,9841,10288,9970,7633,16616,13548,8254,13840,11266,15518,16622,13595,2734,14650,9680,13909,14653,6195,6745,2610,13892,10813,953,14139,10198,11317,656,14138,11864,3537,14178,1772, 14359,370,11653,8695,12104,10437,15777,16575,12119,13602,10420,6568,16463,14859,15927,13876,11709,6329,16751,11941,4970,11043,14556,8720,2830,11674,16768,9720,15857,8705,14438,13885,5381,10836,14823,12858,15543,8662,1676,16492,10833,1327,14909,5712,15566,13956,9129,13958,8486,8039,1505,109,15943,7907,6854,8535,2024,15804,12365,12529,8675,16705,1884,1676,16343,2295,1676,14763,4561,12678,13204,12684,11380,8120,11379,5828,8123,12689,8123,5835,5965,16796,13514,288,11367,15684,16693,3688,98,109,16727, 7340,14652,15032,8720,4084,15229,14651,16729,16839,9668,112,52,16836,7446,16844,15232,6195,745,9817,14995,14345,16504,14850,3020,14255,5202,4764,16849,7583,16851,9479,3578,13152,712,14520,16830,4932,1493,10099,11597,15082,16685,16472,13160,9711,11597,13847,9322,16475,15136,46,8322,13807,3680,11982,5118,8281,16889,7525,16624,11983,15720,15083,5044,13756,13734,13718,1942,15558,5045,8297,15562,14042,8301,11423,16655,338,8294,10906,8173,16907,11421,10289,10016,11426,16910,8079,15566,9223,8306,13204,8309, 15560,8311,6356,9134,7506,13793,12372,9770,5559,13799,8373,6573,9031,15008,1707,16621,13819,11863,120,13822,6424,11811,14691,1353,1631,14694,12497,5455,12032,11724,9946,15074,12031,101,8226,8239,980,16963,1829,12009,15151,1262,16691,4012,16962,8238,6585,1645,406,9359,5336,3677,1881,6616,14250,4245,10739,14998,8903,13836,16038,9360,13831,15827,12221,14575,16913,16957,3410,16971,16996,14038,14058,7446,11423,14015,16909,10912,15565,8129,5739,15188,291,258,11287,16502,16699,10215,406,16951,1094,5023, 16954,16952,12139,5336,15634,14302,15544,15186,406,16987,13946,8208,12131,13944,8208,11811,16978,3366,16994,10881,13888,8097,55,16934,5202,411,17013,5029,11984,8682,17009,15189,17012,5544,3521,14309,16608,12231,10968,17026,9295,5577,17039,543,16611,2295,17063,13797,15644,10842,17063,15573,15556,4416,9930,4476,16551,6358,16553,15040,14574,8293,11200,16702,11790,11723,14973,13129,16913,17030,5614,13778,11824,8561,15090,16698,9978,11811,17083,3020,1696,17047,13798,48,13705,1094,14122,1353,14129,4416, 16610,15004,3320,11835,10535,4469,13619,14573,16764,16537,10211,10938,16762,7051,17119,12050,1808,10441,14594,12076,13843,14093,11682,9585,11535,10507,11055,14097,10522,4121,1512,13818,15458,15411,15437,1019,2516,15416,10505,8845,6818,11098,8434,5164,14274,8343,11882,11163,1736,9512,16960,8910,10783,16573,6580,16723,16470,11510,17122,13867,14622,9421,9322,121,17060,5807,17175,4431,5613,17177,7068,6567,6147,1993,9184,5015,6567,1881,17185,3821,122,17180,11345,2932,17192,17045,17187,111,4833,11063,17057, 4082,15048,13217,1353,10978,13662,10980,15016,16630,10996,16632,10985,9736,10992,6033,9740,16638,6045,10993,16641,6036,6043,17211,5985,10998,16653,11001,9759,17211,5993,17228,17227,4259,3787,17183,6795,7131,5482,17195,4400,17086,17240,12152,17160,9393,13543,11209,13593,11574,5169,3929,9945,1019,9983,13977,13525,16940,17247,13975,13531,16037,16945,11075,9954,5882,11085,10167,15640,4431,13969,14047,5698,9984,13542,316,2255,8263,6395,12023,14314,11999,9690,9953,14281,6596,17281,12025,3691,12028,8351, 12030,716,17142,13979,824,8893,716,8895,15130,8897,10833,1353,14997,11248,11390,7104,16985,16416,17131,14181,1562,666,15536,16602,9273,12104,17086,16771,17167,12120,260,17319,14614,15671,16601,16449,14439,372,97,12770,13051,6959,6723,709,2102,15184,4396,8091,10817,12637,7131,17086,2362,7385,6241,5054,13811,17015,2407,17329,17337,4078,13644,1836,15158,15025,1081,17329,2362,16005,7019,7559,4478,13740,13635,13743,17358,1036,3408,7581,14799,603,13130,5687,17360,16277,8943,7719,17284,8090,16477,1518,16913, 17375,17336,13099,511,5027,7505,13749,4431,4478,10106,4833,17383,6420,17340,12470,17371,16544,795,964,11948,11681,1591,4341,5950,6126,698,6445,1796,329,16913,7779,1836,4334,13179,567,11419,699,5761,16918,7486,2553,14257,4632,9386,1013,17398,13027,17400,13524,14333,5520,17396,108,17385,1587,13682,16504,17359,17386,16327,4082,6711,16057,4460,11726,16058,14660,13251,13331,13056,17335,17431,7444,14799,17442,13027,17199,17355,1647,17357,14049,5389,7279,1587,17361,11730,5188,1836,13090,17373,17384,17430, 3368,3912,17086,17065,6215,12510,16900,9334,17366,16680,17455,876,16005,13634,7494,7495,13735,3185,10161,17438,13164,5566,11938,16526,17329,17365,16902,17362,5072,9869,4011,7598,14330,16541,17080,17474,17397,13546,17331,13327,14873,17334,7660,1836,15608,16393,15425,8195,17314,15153,5509,11224,15724,12535,14524,531,1563,6035,11621,1585,430,17502,16679,17493,4628,17476,3004,13326,11631,17333,6996,709,16321,9333,5394,9309,14313,11959,11955,5751,1748,17114,11488,17320,9222,14088,16772,16577,6657,9581, 16474,17390,5029,17339,13546,2596,16782,10699,16477,10718,13891,14520,13893,1822,13895,5226,15551,13903,11400,1795,14150,1678,13155,463,17306,5202,17304,7179,15797,7182,13034,12667,16211,645,17308,4400,15761,7250,15763,9648,16311,5458,11372,16816,11375,8728,12685,11378,5470,8122,2852,5474,16823,17617,8736,11386,13405,11389,17041,10743,5486,11568,4450,9322,14304,14257,109,11641,8865,8942,1353,16732,9816,9099,17158,874,16567,1898,79,102,9798,5750,12685,7385,16861,12919,17071,9841,17635,17302,2109,17587, 296,8481,13933,16215,17045,11616,3486,17646,9955,5404,1312,15654,13135,17664,17645,17647,5360,12685,6991,8673,1799,8676,14122,4220,17643,17665,17674,1735,9068,2850,8975,17609,11014,8116,17612,16818,2840,12687,11384,8124,6751,12690,11385,12692,14289,17632,17634,17301,17671,876,17684,17667,5164,17687,572,4729,15272,1564,6254,16570,350,16596,16856,17285,8428,6263,14995,370,11274,10358,11276,10341,17164,1457,9622,17171,12127,13174,17479,8877,11208,11090,14312,13922,11975,11910,4071,15088,16711,1785,17499, 15124,14343,9177,16530,17349,5481,17034,8188,10902,3908,17099,8148,17290,8234,17292,97,10049,11063,9322,17296,765,8894,3584,17655,11827,5160,12065,16667,16661,346,6255,17719,9981,9703,10174,12056,12643,14001,14067,12646,14069,11638,10216,13138,3220,9094,3780,8981,11623,110,15188,6482,14066,11586,13986,14004,13988,10330,4664,5491,14031,16006,17787,17803,14025,17790,14028,14071,9403,11366,14075,14072,8693,10025,517,17793,3777,17795,8074,17797,10111,9878,13061,17788,13063,14034,10194,10231,17810,17786, 14023,17813,14068,17805,11590,15063,9011,15560,8788,8790,9126,11224,3700,13138,17189,14844,9916,10590,17832,17841,17789,17843,11638,6143,17718,365,4295,17780,17865,10185,16254,8797,6305,17858,11657,17814,17861,14028,307,10026,17853,16624,8214,12104,14080,13520,16758,10401,16424,17563,6645,10401,14553,13882,14265,10948,17405,12080,3523,10953,9265,17137,10541,492,2144,10957,17857,9264,10958,805,3199,8845,16666,11080,9703,14249,6225,17691,5820,2840,8729,5833,17696,17700,17698,75,8735,8737,14358,16880, 353,9702,16693,17845,9116,15560,10288,14041,16920,14043,17850,11475,6257,1140,8424,15246,15646,16489,10823,16417,685,16767,17560,6097,9566,11486,14573,9570,17951,17734,15274,17897,273,17899,15318,8843,11539,5355,6567,9068,15988,13584,6341,14931,9030,315,9271,15611,16603,13165,903,17956,16758,11503,12159,16576,6120,11094,13517,17315,17172,13979,11392,15840,11395,10890,8046,17268,15655,8050,17348,9087,16791,2321,17660,3662,9493,16523,16712,15014,16918,13666,1699,14517,9161,15709,9055,10169,11416,7131, 17932,7300,15563,5931,17007,14045,11076,9450,15745,11342,16539,17073,11458,17881,13794,11476,15251,17014,9087,17945,17999,11862,9111,9162,8145,9728,5148,17762,8377,16944,9322,8130,15165,99,9604,17175,15114,11790,478,4029,16966,3410,17776,16961,18059,16681,8293,16664,582,18061,17293,5533,9142,8293,16999,1140,18068,16972,18063,10160,4993,699,17773,16684,13708,9869,9533,5858,11777,18075,9990,9561,11256,2024,862,99,11641,18054,6072,15713,10914,9869,5228,12130,4664,11063,866,18088,10063,18070,3662,609, 3910,699,5910,2487,17946,16504,9522,10005,18053,16936,6422,11815,17074,4471,4634,18065,5175,8800,9933,13656,18036,11862,530,18059,12064,12029,8224,16973,8227,10091,383,10005,18095,18120,17027,6498,6758,17706,17084,13779,16980,111,16982,12267,17958,9700,17524,1597,17526,4478,14996,14128,1456,17111,13837,6573,13839,14136,14117,5169,11234,10853,14121,17756,7774,770,1657,15527,18006,13649,17510,16526,15003,11470,18162,14303,3736,15244,1707,437,18164,8905,17894,13844,257,15522,653,10499,10331,17161,8363, 9322,16695,1379,16697,16547,17097,11812,840,16371,15637,2131,5875,4407,10549,12051,17096,11862,15263,16708,778,16710,5230,13780,9822,10077,13639,9828,7308,8136,778,14941,18039,8815,13575,9366,16720,1495,14617,15193,2705,6792,306,5743,16945,4271,3042,5815,17670,14631,10026,1509,8797,16958,11945,1329,373,16194,10320,626,279,716,964,3044,796,8721,277,17798,15199,14257,14039,14032,17815,10136,18273,10140,5584,17998,14471,1618,11447,65,14532,1844,16529,14814,4756,10081,13919,15778,16504,9996,17745,4158, 18282,2047,18285,11296,4663,77,18278,18272,17876,18274,18303,18276,2200,3561,3563,461,14527,4057,3560,3562,4174,18310,9689,2780,18313,18309,3565,8620,10026,18290,15664,5646,117,13892,8492,11717,324,17798,10345,385,18301,17811,17840,17874,17842,17835,13065,14585,6313,9975,17095,18131,18298,15027,14192,10420,17077,17748,17079,16526,4663,10808,2511,18288,11604,10894,10248,14002,9884,18275,10241,10365,10115,10103,277,18295,18284,5877,12464,15743,14224,7990,3956,9044,4223,8768,2783,6016,16918,732,1194, 8774,16190,5790,666,13286,6862,2609,609,541,114,15421,18217,11296,14211,11795,112,6362,1583,407,18324,17080,11628,336,18101,18257,14710,13E3,18260,3772,18263,2579,6380,18266,11396,18355,14999,10523,4768,13919,17873,11589,14003,18340,14005,17807,18333,18357,4758,18359,18425,11637,18363,18305,18365,4401,18423,18359,258,1872,1804,5230,2001,11618,3786,8445,5950,18447,5417,18449,3520,13227,3949,18370,1586,14250,15648,8429,804,14532,1808,10030,5045,477,15861,830,5950,18468,829,596,2965,4006,18441,4640, 18458,18297,15047,447,17088,594,5858,8333,6534,1118,4017,10160,282,107,2371,11241,18401,637,18403,103,18405,16526,10216,7995,4471,108,18351,11769,18353,17750,5292,11253,14520,5598,18477,10083,18270,531,15546,11564,15254,17949,14114,16772,10805,18256,947,1808,17323,13871,10936,17125,8640,2246,11840,11715,6341,16438,357,16429,903,5595,65,13181,14458,323,10709,15450,10602,4521,15410,15202,15412,16728,13599,15308,7991,7984,14419,10053,9692,1566,17930,14103,15292,17145,582,15357,40,41,32,61,62,1333,4272, 15561,15497,951,310,8464,18557,4759,1566,262,17571,15481,15423,11047,12078,1860,16435,15378,16850,18553,10503,4619,666,115,78,8490,10674,319,18582,17466,17645,4746,18595,15403,18585,14251,18549,10623,16436,15030,8286,18554,18594,3805,18597,3683,16442,11678,13626,18554,2842,17466,15475,4146,15865,18601,9168,10578,18589,2321,17566,15497,18623,6232,18557,5595,66,121,18604,18616,15141,15422,15451,15211,2627,18486,15375,18550,18564,16837,16729,18614,8769,18596,18598,8845,3746,320,16883,13979,16885,5787, 46,17105,2129,17737,16886,17044,4496,8278,16896,16892,5005,8282,1518,16891,8205,18675,16899,13755,17484,17503,17470,10905,18271,9282,16917,15066,16909,8310,18064,13130,16926,8284,11425,17004,17937,16922,8303,17267,18695,3377,16928,16911,16681,8312,16932,7501,18666,2218,18144,18664,17449,16939,6657,16941,10716,275,11851,10421,1566,15117,13624,16617,17977,16724,10931,1478,17760,4561,1478,6281,9075,12829,3901,383,14532,2611,11560,717,1796,3591,9347,9594,18734,14188,16230,18738,666,2780,1235,18743,9888, 9306,18174,9357,9594,16948,14937,9302,11198,9355,2115,1478,18760,4082,15417,17480,570,1478,17018,2211,18730,17774,4928,13622,1655,17988,17311,8158,17271,9322,17784,14122,18361,17833,18427,18362,11661,13996,17808,13998,8841,18302,18428,17860,18797,11590,4663,18333,1035,1885,18748,10259,18338,18798,18790,18306,2310,15179,17996,10306,3269,14021,18336,14033,18809,9924,18364,10265,9892,18795,18817,18821,11588,18436,18791,1590,10820,6501,17936,8789,10017,14044,17434,5865,9992,12937,274,18804,18505,14059, 16531,16504,4663,14064,10199,14189,18826,14036,11587,17528,17497,15267,15009,11407,17820,17818,17272,11667,8347,17948,545,13136,14560,16478,10422,17562,17951,18686,17953,14081,17889,14083,338,17888,18871,10949,1559,17892,16425,17958,18538,17134,12082,17136,5650,5595,1657,15511,15653,13703,8756,15325,11067,1315,14021,8250,440,15536,17188,16558,15029,18546,10643,7553,10514,13919,10198,17905,11500,14115,17726,16565,2705,666,14324,15206,14326,17914,10513,4012,9385,591,15135,5566,18715,5031,8723,9116, 18923,17935,18923,44,102,10154,97,16744,9392,1707,9394,15215,14326,369,18691,16428,15804,7182,12314,12386,5356,3781,5578,17677,11076]}); define("ii",["require","eg","oH"],function(a){function e(l){var p=c[l];if(p)return p;if("string"!=typeof l)return c[l]=function(){return l};var q=(p=f.exec(l))&&parseFloat(p[1]);switch(p&&p[4]&&p[4].toLowerCase()){case "vw":return c[l]=function(n){return n*q};case "vh":return c[l]=function(n,r){return r*q};case "vmin":return c[l]=function(n,r,t){return t*q};case "vmax":return c[l]=function(n,r,t,u){return u*q};default:return c[l]=function(){return l}}}function h(l){this.fb=l;this.PH=this.PH.bind(this); this.fb.bind(b.kc,this.hc,this,!0);this.U9=new Map;this.St=[];this.hc()}function m(l,p,q,n){var r={};r.instance=l;r.j_a=p;r.name=q;r.value=n;g.push(r);d||(d=setTimeout(function(){d=null;k()},100))}function k(){d&&(clearTimeout(d),d=null);var l=g;g=[];l.forEach(function(p){h.UX(p.instance,p.j_a,p.name,p.value)})}a("eg");var b=a("oH");h.prototype.hc=function(){this.VSa();this.U9.forEach(function(l){for(var p in l)this.PH(l[p])}.bind(this));this.St.forEach(this.PH)};h.prototype.VSa=function(){var l= this.fb.xb();this.MX=.01*this.fb.Xa();this.GX=.01*l;this.Qta=Math.min(this.MX,this.GX);this.Pta=Math.max(this.MX,this.GX)};h.prototype.PH=function(l){l(this.MX,this.GX,this.Qta,this.Pta)};h.prototype.uTa=function(l){this.St.push(l)};h.prototype.WXa=function(l){l=this.St.indexOf(l);0<=l&&this.St.splice(l,1)};h.prototype.UX=function(l,p,q,n){function r(u,v,w,x){p.call(l,q,t(u,v,w,x))}var t=e(n);(n=this.U9.get(l))||this.U9.set(l,n={});n[q]=r;r(this.MX,this.GX,this.Qta,this.Pta)};h.Xc=new Map;h.get=function(l){var p= h.Xc.get(l);p||(p=new h(l),h.Xc.set(l,p));return p};h.UX=function(l,p,q,n){var r=l.get&&l.get("application")||l.Jb&&l.Jb();r?(k(),h.get(r).UX(l,p,q,n)):m(l,p,q,n)};var g=[],d=null,c={},f=/^\s*((\+|\-)?(\d*\.)?\d+)\s*(vmin|vmax|vw|vh|px|%)?\s*$/i;return h}); define("mj",["require","exports"],function(){return function(){function a(){}a.Aca=function(e){if(this.Wh("crossorigin",!1)||this.$Y(e)){var h=window.location.protocol+"//"+window.location.hostname;window.location.port&&(h+=":"+window.location.port);return e.substring(0,h.length)!=h}return!1};a.nw=function(e,h){if(this.GWa(e))e=window.location.protocol+e;else if(!this.$Y(e)&&!this.rz(e)){if(h)if(0==e.indexOf("/")){var m=h.indexOf("//"),k="";0<=m&&(k=h.substr(0,m+2),h=h.substr(m+2));m=h.indexOf("/"); 0=h?!0:0==e.indexOf("filesystem:")};a.getDirectory=function(e){e=this.nw(e);e=e.split("?")[0];e=e.split("/");1f;f+=1)c[f]=String.fromCharCode(f);var l=256,p=String.fromCharCode(d[0]),q=p;for(f=1;ff;++c)d=g.charCodeAt(c),128>d?p[f>>2]|=d<d?p[f>>2]|=(192|d>>6)<d||57344<=d?p[f>> 2]|=(224|d>>12)<>2]|=(240|d>>18)<>2]|=(128|d>>12&63)<>2]|=(128|d>>6&63)<>2]|=(128|d&63)<> 2]|=h[d&3];this.block=g[16];56<=d&&(this.SY||this.hash(),g[0]=this.block,g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0);g[14]=this.oca<<3|this.gz>>>29;g[15]=this.gz<<3;this.hash()}};a.prototype.hash=function(){var g=this.jP,d=this.kP,c=this.lP,f=this.mP,l=this.nP,p=this.oP,q=this.pP,n=this.qP,r=this.sba,t;for(t=16;64>t;++t){var u=r[t-15];var v=(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3;u=r[t-2];u=(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10;r[t]=r[t-16]+v+r[t-7]+u<<0}var w= d&c;for(t=0;64>t;t+=4){if(this.first){var x=704751109;u=r[0]-210244248;n=u-1521486534<<0;f=u+143694565<<0;this.first=!1}else{v=(g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10);u=(l>>>6|l<<26)^(l>>>11|l<<21)^(l>>>25|l<<7);x=g&d;var y=x^g&c^w;var A=l&p^~l&q;u=n+u+A+k[t]+r[t];v+=y;n=f+u<<0;f=u+v<<0}v=(f>>>2|f<<30)^(f>>>13|f<<19)^(f>>>22|f<<10);u=(n>>>6|n<<26)^(n>>>11|n<<21)^(n>>>25|n<<7);w=f&g;y=w^f&d^x;A=n&l^~n&p;u=q+u+A+k[t+1]+r[t+1];v+=y;q=c+u<<0;c=u+v<<0;v=(c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10); u=(q>>>6|q<<26)^(q>>>11|q<<21)^(q>>>25|q<<7);x=c&f;y=x^c&g^w;A=q&n^~q&l;u=p+u+A+k[t+2]+r[t+2];v+=y;p=d+u<<0;d=u+v<<0;v=(d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10);u=(p>>>6|p<<26)^(p>>>11|p<<21)^(p>>>25|p<<7);w=d&c;y=w^d&f^x;A=p&q^~p&n;u=l+u+A+k[t+3]+r[t+3];v+=y;l=g+u<<0;g=u+v<<0}this.jP=this.jP+g<<0;this.kP=this.kP+d<<0;this.lP=this.lP+c<<0;this.mP=this.mP+f<<0;this.nP=this.nP+l<<0;this.oP=this.oP+p<<0;this.pP=this.pP+q<<0;this.qP=this.qP+n<<0};a.prototype.eWa=function(){this.iva();var g=this.jP, d=this.kP,c=this.lP,f=this.mP,l=this.nP,p=this.oP,q=this.pP,n=this.qP;return e[g>>28&15]+e[g>>24&15]+e[g>>20&15]+e[g>>16&15]+e[g>>12&15]+e[g>>8&15]+e[g>>4&15]+e[g&15]+e[d>>28&15]+e[d>>24&15]+e[d>>20&15]+e[d>>16&15]+e[d>>12&15]+e[d>>8&15]+e[d>>4&15]+e[d&15]+e[c>>28&15]+e[c>>24&15]+e[c>>20&15]+e[c>>16&15]+e[c>>12&15]+e[c>>8&15]+e[c>>4&15]+e[c&15]+e[f>>28&15]+e[f>>24&15]+e[f>>20&15]+e[f>>16&15]+e[f>>12&15]+e[f>>8&15]+e[f>>4&15]+e[f&15]+e[l>>28&15]+e[l>>24&15]+e[l>>20&15]+e[l>>16&15]+e[l>>12&15]+e[l>> 8&15]+e[l>>4&15]+e[l&15]+e[p>>28&15]+e[p>>24&15]+e[p>>20&15]+e[p>>16&15]+e[p>>12&15]+e[p>>8&15]+e[p>>4&15]+e[p&15]+e[q>>28&15]+e[q>>24&15]+e[q>>20&15]+e[q>>16&15]+e[q>>12&15]+e[q>>8&15]+e[q>>4&15]+e[q&15]+e[n>>28&15]+e[n>>24&15]+e[n>>20&15]+e[n>>16&15]+e[n>>12&15]+e[n>>8&15]+e[n>>4&15]+e[n&15]};a.prototype.digest=function(){this.iva();var g=this.jP,d=this.kP,c=this.lP,f=this.mP,l=this.nP,p=this.oP,q=this.pP,n=this.qP;return[g>>24&255,g>>16&255,g>>8&255,g&255,d>>24&255,d>>16&255,d>>8&255,d&255,c>> 24&255,c>>16&255,c>>8&255,c&255,f>>24&255,f>>16&255,f>>8&255,f&255,l>>24&255,l>>16&255,l>>8&255,l&255,p>>24&255,p>>16&255,p>>8&255,p&255,q>>24&255,q>>16&255,q>>8&255,q&255,n>>24&255,n>>16&255,n>>8&255,n&255]};return function(g){return(new a(!0)).update(g).eWa()}}); define("bW",["require","iE"],function(a){function e(){var b=Array.apply(null,Array(1E4)).map((g,d)=>String.fromCharCode(d%256)).join("");return"d9c4539649520e3f4a35e5a3331b0fbdc67958dd64ef65a83a75d545413643dd"==k(b)}function h(b){var g=Array.isArray(b)?"array":null===b?"null":typeof b;switch(g){case "array":return"["+b.map(h).join(",")+"]";case "object":return"{"+Object.keys(b).sort().map(function(d){return h(d)+":"+h(b[d])}).join(",")+"}";case "boolean":return b?"true":"false";case "number":return b.toFixed(3); case "string":return'"'+b.split('"').join('\\"')+'"';case "null":case "undefined":return g;case "function":return"<"+g+">"}return""}function m(b){return b.map(function(g){return String.fromCharCode(g)}).join("")}var k=a("iE");return{validate:function(b){var g=[104,97,115,104],d=b[m(g)];delete b[m(g)];b=m([116,100,118])+h(b);return k(b)==d||!e()}}}); define("lr",["require","exports","lo"],function(a,e,h){function m(){var f=g.length,l=g.splice(0,f);b+=f;for(var p=0;p f)clearTimeout(-1-f);else{var l=f-b;if(0<=l){if(!g[l])throw"invalid async handle: "+f;g[l]=null}}}}}); define("gi",["require","exports","cy","lr","lo"],function(a,e,h,m,k){var b=function(){return function(){}}();return function(){function g(){this.Jc={}}g.prototype.ITa=function(d,c,f){this.Yha(d,c,f,!0,c,!0)};g.prototype.bind=function(d,c,f,l,p){return this.Yha(d,c,f,l,p||c,!1)};g.prototype.Yha=function(d,c,f,l,p,q){if(void 0===d)throw"Event name undefined";if(void 0===c)throw"Event handler undefined";f=f||this;l=l?!0:!1;d in this.Jc||(this.Jc[d]=[]);var n=new b;n.rP=c;n.OVa=p||c;n.context=f;n.Hwa= l;d=this.Jc[d];q?d.unshift(n):d.push(n);return this};g.prototype.unbind=function(d,c,f){d in this.Jc&&(f=f||this,this.Jc[d]=this.Jc[d].filter(function(l){return l.rP!=c||l.context!=f}),0==this.Jc[d].length&&delete this.Jc[d]);return this};g.prototype.Q_a=function(d){d in this.Jc&&delete this.Jc[d]};g.prototype.Jea=function(){this.Jc={}};g.prototype.trigger=function(d,c){void 0===c&&(c=void 0);"string"==typeof d&&(d=new h(d,c));d.name in this.Jc&&(d.source=this,this.ax(d,!0),d.name in this.Jc&&this.bHa(d)); return this};g.prototype.bHa=function(d){g.sS.push({caller:this,event:d});g.P3||(g.P3=!0,m.Az(g.qja))};g.qja=function(){for(var d=(new Date).getTime()+1E3;g.sS.length;){var c=g.sS.shift();g.prototype.ax.call(c.caller,c.event,!1);if((new Date).getTime()>d)break}0this.du;)this.du+=360}return this.du};a.prototype.bVa=function(){void 0===this.Paa&&(this.Paa=m.Es(this.Mka()*Math.PI/180,0));return this.Paa};a.prototype.OTa=function(){return void 0!==this.get("yaw")&&void 0!==this.get("backwardYaw")}; a.prototype.Mka=function(){return this.get("backwardYaw")-180};return a});define("hV",["require","lP","nx"],function(a){var e=a("lP");return a("nx").define("AmbientLight",e,function(){e.call(this)})}); define("ff",["require","lP","nx"],function(a){var e=a("lP");a=a("nx").define("Model3DPostprocessing",e,function(){e.call(this)});a.prototype.nQ=function(h){this.Ph!==h&&(this.Ph=h,this.Zsa())};a.prototype.fw=function(h){this.bG!==h&&(this.bG=h,this.Zsa())};a.prototype.Zsa=function(){this.set("disabled",this.bG&&this.get("disableWhileMoving")||this.Ph&&this.get("disableWhileUserInteracting"))};return a}); define("nF",["require","nx","ff"],function(a){var e=a("nx"),h=a("ff");return e.define("AmbientOcclusionModel3DPostprocessing",h,function(){h.call(this)})});define("kO",["require"],function(){return{T:"stopped",X:"playing",Eb:"paused"}});define("fe",["require","lP","nx"],function(a){var e=a("lP");return a("nx").define("ImageResource",e,function(){e.call(this)})}); define("eq","require lo oH kO nx fe".split(" "),function(a){a("lo");var e=a("oH"),h=a("kO"),m=a("nx"),k=a("fe");a=m.define("AnimatedImageResource",k,function(){k.call(this)});a.prototype.play=a.prototype.play=function(){this.set("state",h.X)};a.prototype.pause=a.prototype.pause=function(){this.set("state",h.Eb)};a.prototype.stop=a.prototype.stop=function(){this.set("state",h.T)};a.prototype.set=function(b,g){switch(b){case "state":(this.get("state")||h.T)==h.T&&g==h.X&&this.trigger(e.Bn)}k.prototype.set.call(this, b,g)};a.prototype.Jj=function(b,g,d){g||(g=1);d||(d=1);return k.prototype.Jj.call(this,b,g*this.get("colCount",1),d*this.get("rowCount",1))};return a});define("ec",["require","nx","ff"],function(a){var e=a("nx"),h=a("ff");return e.define("AntialiasModel3DPostprocessing",h,function(){h.call(this)})}); define("ij",["require","lP","nx"],function(a){var e=a("lP");a=a("nx").define("HotspotMapOverlay",e,function(h){e.call(this);this.OG=void 0===h?!0:h;this.SF=this.lq=this.kq=this.wa=void 0});a.prototype.getItem=function(){if(void 0===this.wa){var h=this.get("image");this.wa=h?h.fY(this.OG):null}return this.wa};a.prototype.Xva=function(){if(void 0===this.kq){var h=this.get("rollOverImage");this.kq=h?h.fY(this.OG):null}return this.kq};a.prototype.Yva=function(){if(void 0===this.lq){var h=this.get("selectedImage"); this.lq=h?h.fY(this.OG):null}return this.lq};a.prototype.nVa=function(){if(void 0===this.SF){this.SF=[];var h=this.getItem();h&&this.SF.push(h);(h=this.Xva())&&this.SF.push(h);(h=this.Yva())&&this.SF.push(h)}return this.SF};return a});define("eP",["require","nx","ij"],function(a){var e=a("nx"),h=a("ij");return e.define("AreaHotspotMapOverlay",h,function(){h.call(this,!0)})});define("og",["require","lP","nx"],function(a){var e=a("lP");return a("nx").define("AudioResource",e,function(){e.call(this)})}); define("cN",["require"],function(){return{kA:"inAdvance",Zea:"delayed"}}); define("bc",["require","exports"],function(){return function(){function a(){}a.jA="grab";a.Zh="grabbing";a.aCa="move";a.Ofa="move-n";a.Pfa="move-ne";a.Ffa="move-e";a.Sfa="move-se";a.Rfa="move-s";a.Tfa="move-sw";a.Ufa="move-w";a.Qfa="move-nw";a.bCa="move-ew";a.dCa="move-ns";a.cCa="move-nesw";a.eCa="move-nwse";a.Hfa="move-fast-n";a.Ifa="move-fast-ne";a.Gfa="move-fast-e";a.Lfa="move-fast-se";a.Kfa="move-fast-s";a.Mfa="move-fast-sw";a.Nfa="move-fast-w";a.Jfa="move-fast-nw";a.df="hand";a.sA="transparent"; a.He="default";a.mt="inherit";return a}()}); define("hn",["require","oH"],function(a){function e(){this.Ki=[]}var h=a("oH");e.prototype.register=function(m){this.uDa(m);this.Ki.push(m);m.get("pressed")&&this.Xqa(m)};e.prototype.unregister=function(m){this.RNa(m)};e.prototype.uDa=function(m){m.bind(h.Vj,this.rna,this,!0)};e.prototype.RNa=function(m){m.unbind(h.Vj,this.rna,this)};e.prototype.rna=function(m){this.Xqa(m.source)};e.prototype.Xqa=function(m){this.Ki.forEach(function(k){k.set("pressed",k==m)})};e.register=function(m,k){this.unregister(m); k=this.di(k);m.L1=k;k.register(m)};e.unregister=function(m){m.L1&&(m.L1.unregister(m),delete m.L1)};e.di=function(m){return this.Ola[m]||(this.Ola[m]=new e)};e.Ola={};return e});define("ed",["require"],function(){return{Ie:"push",Xj:"toggle"}});define("hH",["require"],function(){return{wE:"visible",pfa:"hidden",fp:"scroll"}});define("gJ",["require"],function(){return{He:void 0,U:"over",ob:"pressed",$b:"pressedOver",ca:"selected"}}); define("mQ",["require"],function(){return{Pa:"left",hb:"right",Ge:"center",uc:"top",pc:"bottom",he:"middle"}});define("fB",["require"],function(){return{Wc:"rollOver",ALWAYS:"always"}}); define("v",["require","exports","lo","mj"],function(a,e,h,m){function k(d){return!!(window.location.hash&&0<=window.location.hash.indexOf("device="+d))}var b={};b.Hi=TDV.pb.YQ;b.aE=TDV.pb.U0;b.v1=TDV.pb.Yfa;b.N0a=TDV.pb.Y0;b.vfa=TDV.pb.V0;b.TBa=TDV.pb.Xfa;b.A0a=TDV.pb.X0;b.W0=TDV.pb.W0;b.aJ=TDV.pb.aJ;b.N_=TDV.pb.N_;b.M_=TDV.pb.M_;b.L_=TDV.pb.L_;b.O_=TDV.pb.O_;b.Xh=TDV.pb.Xh;b.GQ=TDV.pb.GQ;b.dm=TDV.pb.dm;b.Uk=TDV.pb.Uk;b.eE=TDV.pb.eE;b.tw=TDV.pb.tw;b.FQ=TDV.pb.FQ;b.Oz=TDV.pb.Oz;b.J_=TDV.pb.J_;b.$I= TDV.pb.$I;b.Wq=TDV.pb.Wq;b.KQ=TDV.pb.KQ;b.K_=TDV.pb.K_;b.YI=TDV.pb.YI;b.HQ=TDV.pb.HQ;b.fE=TDV.pb.fE;b.ZI=TDV.pb.ZI;b.Pz=TDV.pb.Pz;b.Vea=TDV.pb.Vea;b.bt=TDV.pb.bt;b.ct=TDV.pb.ct;b.gE=TDV.pb.gE;b.IQ=TDV.pb.IQ;b.JQ=TDV.pb.JQ;b.P_=TDV.pb.P_;b.S_=TDV.pb.S_;b.iE=TDV.pb.iE;b.T_=TDV.pb.T_;b.U_=TDV.pb.U_;b.Fx=function(d){d="force_"+d;if(m.cj("debug")&&m.cj(d))return m.getQueryParameter(d)};b.kIa=b.Fx("os");b.fe=function(){return b.kIa||TDV.pb.fe};b.fIa=b.Fx("browser");b.browser=function(){return b.fIa||TDV.pb.browser}; b.gIa=b.Fx("browser_type");b.LH=function(){return b.gIa||TDV.pb.LH};b.gka=b.Fx("browser_subtype");b.hd=function(){return b.gka?b.gka:TDV.pb.hd};b.hIa=b.Fx("browser_version");b.zua=function(){return b.hIa||TDV.pb.zua};b.jIa=b.Fx("device");b.jz=function(){return b.jIa||TDV.pb.jz};b.jb=function(){return TDV.pb.mobile};b.THa=function(){for(var d=navigator.userAgent.toLowerCase(),c=["SM-G960","SM-G965"],f=0;fnavigator.userAgent.indexOf("; wv")?!1:!0;b.iIa=!!b.Fx("chromewebview");b.Iua=function(){return b.iIa||b.vFa}; b.Rf=function(){return b.hd()==b.Wq||b.hd()==b.KQ||b.hd()==b.ct||b.hd()==b.gE||b.hd()==b.bt};b.cZ=function(){return b.yP()||b.CWa()||b.KWa()||b.EWa()};b.bZ=function(){return b.hd()==b.ct};b.Xaa=void 0;b.ZAa=function(){if(void 0===b.Xaa){var d=void 0;b.tI()&&(window.location.hash.split("&").forEach(function(c){"app-version"==c.split("=")[0]&&(d=c.split("=")[1])}),d&&(d=parseInt(d)));d=d||0;b.Xaa=d}return b.Xaa};b.tI=function(){return b.eZ()||b.bZ()};b.eZ=function(){return b.hd()==b.gE};b.t1a=function(){return k("picog2")}; b.s1a=function(){return k("piconeo2")};b.CWa=function(){return k("piconeo3")};b.EWa=function(){return k("picoxr")};b.KWa=function(){return k("vivefocus")};b.yP=function(){return k("oculusquest")||k("other")?!0:b.hd()==b.Wq&&0<=navigator.userAgent.indexOf("Quest 2")};b.HWa=function(){return b.hd()==b.Wq&&0<=navigator.userAgent.indexOf("Quest")&&0>navigator.userAgent.indexOf("Quest 2")};b.p1a=function(){return b.hd()==b.Wq&&0>navigator.userAgent.indexOf("Quest")};b.Pwa=function(){return b.Rf()&&b.ZO()}; b.oC=void 0;b.MXa=function(){void 0===b.oC&&(b.oC=parseInt(m.getQueryParameter("sts")),isNaN(b.oC)&&(b.Rf()&&!b.THa?b.oC=512:b.jb()&&b.fe()==b.Hi?b.oC=512:b.oC=b.jb()?256:1024));return b.oC};b.vOa=function(){if(b.browser()==b.dm||b.browser()==b.Xh)try{var d=/Version\/([0-9]+\.[0-9]+)/i.exec(navigator.userAgent);if(d)return parseFloat(d[1])}catch(c){}}();b.VP=function(){return b.vOa};b.uKa=function(){try{var d=parseFloat((""+(/CPU.*OS ([0-9_]{1,5})|(CPU like).*AppleWebKit.*Mobile/i.exec(navigator.userAgent)|| [0,""])[1]).replace("undefined","3_2").replace("_",".").replace("_",""))||!1}catch(c){}d||(d=b.VP());return d}();b.yD=function(){return b.uKa};b.VDa=function(){if(b.fe()==b.aE)try{var d=/Android ([0-9]+\.?[0-9]*)/i.exec(navigator.userAgent);if(d)return parseFloat(d[1])}catch(c){}}();b.FTa=function(){return b.VDa};b.ula=function(){var d={fwa:"unknown",txa:1},c=document.createElement("canvas");if(c&&(c=c.getContext("webgl")||c.getContext("experimental-webgl"))){var f=c.getExtension("WEBGL_debug_renderer_info"); f&&(d.fwa=c.getParameter(f.UNMASKED_RENDERER_WEBGL));d.maxTextureSize=c.getParameter(c.MAX_TEXTURE_SIZE);if(f=c.getExtension("EXT_texture_filter_anisotropic")||c.getExtension("MOZ_EXT_texture_filter_anisotropic")||c.getExtension("WEBKIT_EXT_texture_filter_anisotropic"))d.txa=c.getParameter(f.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}return d}();b.ewa=function(){return b.ula};b.XDa=function(){var d=b.ula.fwa.match(/Apple\s+(.+)\s+GPU/);return d?d[1].toUpperCase():"unknown"}();b.k1a=function(){return b.XDa}; b.eLa=b.jz()==b.iE?!0:!1;b.Sv=function(){return b.eLa};b.xba=function(){return b.browser()==b.dm&&14<=b.VP()};var g=!1;try{g="true"==window.localStorage.getItem("tdvp_video_drift_2")}catch(d){}b.uwa=function(){return g};b.NZa=function(){g=!0;try{window.localStorage.setItem("tdvp_video_drift_2","true")}catch(d){}};b.lLa="ontouchstart"in window||"undefined"!==typeof window.PointerEvent&&"undefined"!==typeof navigator.maxTouchPoints&&0a.indexOf("#")&&(a+="#"),a+="&tdvflipx");return a},JUa:function(a,e,h){var m=document.createElement("canvas");m.width=e;m.height=h;h=m.getContext("2d");h.translate(e,0);h.scale(-1,1);h.drawImage(a,0,0);a.src=m.toDataURL()}}}); define("I",["require","exports"],function(){return function(){function a(e,h,m,k,b,g){this.queue=e;this.url=h;this.priority=m;this.time=k;this.t_a=b;this.PTa=g}a.prototype.loaded=function(){this.queue.fQ(this.url);this.queue.remove(this)};a.prototype.cancel=function(){this.queue.remove(this)};return a}()}); define("iq","require exports v mj lr I".split(" "),function(a,e,h,m,k,b){var g=h.hd()===h.Pz,d=!(m.cj("debug")&&m.Wh("disable-cache"));return function(){function c(){}c.add=function(f,l,p,q){f=new b(this,f,l,(new Date).getTime(),p,q);this.dv.push(f);this.ea();return f};c.B_a=function(f){this.gH.push(f);this.ea()};c.A_a=function(f){f=this.gH.indexOf(f);0<=f&&this.gH.splice(f,1);this.ea()};c.g0a=function(f){var l;return g?!0:d?null!==(l=this.pma[f])&&void 0!==l?l:!1:!1};c.fQ=function(f){g||d&&(this.pma[f]= !0)};c.ea=function(){this.Eaa||(this.Eaa=k.Az(c.cSa.bind(this)))};c.cSa=function(){this.Eaa=null;for(var f=this.COa(),l=0,p=this.Zx;lp&&pl&&p.splice(l, p.length-l);return p};return e}); define("eG",["require","jquery.mod","pd","gz"],function(a){function e(){this.gV=this.iV=this.jV=this.hV=this.mp=this.op=this.pp=this.np=0;this.CM=this.Ep=!0;this.Taa=this.U5=0;this.va=!0;this.hN=document.createElement("div");this.hN.setAttribute("tdvlayer","content");this.Lqa=h(this.hN);k.css(this.hN,{position:"absolute"});this.ZJ=document.createElement("div");this.i3=h(this.ZJ);k.css(this.ZJ,{position:"absolute"});this.Lqa.append(this.i3)}var h=a("jquery.mod"),m=a("pd"),k=a("gz");e.prototype.append= function(b){this.i3.append(b)};e.prototype.prepend=function(b){this.i3.prepend(b)};e.prototype.YX=function(b){this.ZJ.appendChild(b)};e.prototype.$ya=function(b){this.ZJ.removeChild(b)};e.prototype.Ac=function(){return this.Lqa};e.prototype.fI=function(){return this.hN};e.prototype.TYa=function(b){this.U5!=b&&(this.U5=b,this.va=!0)};e.prototype.g_a=function(b){this.Taa!=b&&(this.Taa=b,this.va=!0)};e.prototype.gI=function(){return this.hV+this.np};e.prototype.lI=function(){return this.jV+this.pp}; e.prototype.jI=function(){return this.iV+this.op};e.prototype.cI=function(){return this.gV+this.mp};e.prototype.JI=function(b){this.CM!=b&&(this.CM=b,this.va=!0)};e.prototype.tZa=function(b){this.hV!=b&&(this.hV=b,this.va=!0)};e.prototype.vZa=function(b){this.jV!=b&&(this.jV=b,this.va=!0)};e.prototype.uZa=function(b){this.iV!=b&&(this.iV=b,this.va=!0)};e.prototype.sZa=function(b){this.gV!=b&&(this.gV=b,this.va=!0)};e.prototype.Gda=function(b){this.np!=b&&(this.np=b,this.va=!0)};e.prototype.Kda=function(b){this.pp!= b&&(this.pp=b,this.va=!0)};e.prototype.Hda=function(b){this.op!=b&&(this.op=b,this.va=!0)};e.prototype.Fda=function(b){this.mp!=b&&(this.mp=b,this.va=!0)};e.prototype.Kza=function(b){this.Ep!=b&&(this.Ep=b,this.va=!0)};e.prototype.Vg=function(){this.va&&(this.ea(),this.va=!1)};e.prototype.ea=function(){k.css(this.hN,{overflow:this.CM?"visible":"hidden","z-index":this.Ep?m.iBa:m.hBa,left:this.gI()+"px",top:this.lI()+"px",right:this.jI()+"px",bottom:this.cI()+"px",cursor:"inherit"});k.css(this.ZJ,{left:-this.U5+ "px",top:-this.Taa+"px",right:this.CM?0:"initial",bottom:this.CM?0:"initial",cursor:"inherit"})};return e}); define("jT","require eg jquery.mod lo pd gz".split(" "),function(a){function e(){this.ua=this.ia=this.Ka=this.Ha=void 0;this.Ot=this.Nt=this.Qt=this.Pt=0;this.Ib=!1;this.T5=0;this.Saa=4;this.D2=6;this.e$=0;this.wc="#000000";this.wb=1;this.bc=document.createElement("div");this.bc.setAttribute("tdvlayer","shadow");this.na=h(this.bc);k.css(this.bc,{position:"absolute",left:0,top:0,right:0,bottom:"0"});this.va=!1}a("eg");var h=a("jquery.mod");a("lo");var m=a("pd"),k=a("gz");e.prototype.Ac=function(){return this.na}; e.prototype.fI=function(){return this.bc};e.prototype.Ida=function(b){this.Pt!=b&&(this.Pt=b,this.va=!0)};e.prototype.Jda=function(b){this.Qt!=b&&(this.Qt=b,this.va=!0)};e.prototype.Dda=function(b){this.Nt!=b&&(this.Nt=b,this.va=!0)};e.prototype.Eda=function(b){this.Ot!=b&&(this.Ot=b,this.va=!0)};e.prototype.fj=function(b){this.wb!=b&&(this.wb=b,this.va=!0)};e.prototype.Pk=function(){return this.wb};e.prototype.wf=function(b){this.Ib!=b&&(this.Ib=b,this.va=!0)};e.prototype.SYa=function(b){this.T5!= b&&(this.T5=b,this.va=!0)};e.prototype.f_a=function(b){this.Saa!=b&&(this.Saa=b,this.va=!0)};e.prototype.uYa=function(b){this.D2!=b&&(this.D2=b,this.va=!0)};e.prototype.PZa=function(b){this.e$!=b&&(this.e$=b,this.va=!0)};e.prototype.setColor=function(b){this.wc!=b&&(this.wc=b,this.va=!0)};e.prototype.Vg=function(){this.va&&(this.ea(),this.va=!1)};e.prototype.ea=function(){var b=this.T5+"px "+this.Saa+"px "+this.D2+"px "+this.e$+"px "+this.wc;this.bc.style.display=this.Ib?"block":"none";this.bc.style.boxShadow= b;this.bc.style["-webkit-box-shadow"]=b;this.bc.style["-moz-box-shadow"]=b;this.bc.style.borderTopLeftRadius=this.Pt+"px";this.bc.style.borderTopRightRadius=this.Qt+"px";this.bc.style.borderBottomLeftRadius=this.Nt+"px";this.bc.style.borderBottomRightRadius=this.Ot+"px";this.bc.style.filter="alpha(opacity="+Math.round(100*this.wb)+")";this.bc.style["-ms-filter"]="alpha(opacity="+Math.round(100*this.wb)+")";this.bc.style.opacity=this.wb;this.bc.style.zIndex=m.ACa};return e}); define("mV","require jquery.mod eg lo lP bc oH gs eG jT pd cy gz v".split(" "),function(a){var e=a("jquery.mod");a("eg");var h=a("lo"),m=a("lP"),k=a("bc"),b=a("oH"),g=a("gs"),d=a("eG"),c=a("jT"),f=a("pd"),l=a("cy"),p=a("gz");a("v");var q=h.extend(m,function(){m.call(this);this.EF=q.EF++;this.h3=this.ie=this.a8=this.BM=this.W9=this.na=this.bc=null;this.Nsa=this.Ula=!1;this.ka=this.fb=null;this.ua=this.ia=this.Ju=this.Iu=0;this.Qx=this.Ib=!1;this.Ila=!0;this.zL=this.AL=this.pl=this.ql=0;this.wb=1;this.Bh= k.He;this.set("inView",!1);this.set("toolTip",void 0);this.HC(!0);this.L9(!0)});q.prototype.Be=function(n){this.TA=n};q.prototype.toString=function(){return"["+this.na.attr("tdvclass")+"::"+this.EF+"]"};q.prototype.log=function(n){h.log(n+" "+this.toString()+" "+(new Date).getTime().toString())};q.prototype.Jb=function(){return this.fb};q.prototype.ds=function(n){(this.fb=n)&&this.h6();this.qH();this.trigger(b.cBa)};q.prototype.Ac=function(){this.na=e(this.Cr());this.Ac=function(){return this.na}; return this.na};q.prototype.Vza=function(n){(n=n||this.TA)?this.bc.setAttribute("tdvclass",n):this.bc.removeAttribute("tdvclass")};q.prototype.kYa=function(){this.Vza()};q.prototype.Cr=function(){this.bc=document.createElement("div");this.bc.setAttribute("id",this.EF);this.TA&&this.bc.setAttribute("tdvclass",this.TA);p.css(this.bc,{margin:0,padding:0,position:"absolute",overflow:"visible",display:"block"});this.Cr=function(){return this.bc};return this.bc};q.prototype.gl=function(){this.W9=new c; this.gl=function(){return this.W9};return this.W9};q.prototype.Qc=function(){this.ie=new g;this.Qc=function(){return this.ie};return this.ie};q.prototype.zF=function(){this.BM=document.createElement("div");this.BM.setAttribute("tdvlayer","overShadow");p.css(this.BM,{position:"absolute",left:0,top:0,cursor:"inherit"});this.zF=function(){return this.BM};return this.BM};q.prototype.n5=function(){this.a8=e(this.zF());this.n5=function(){return this.a8};return this.a8};q.prototype.Bb=function(){this.h3= new d;this.Bb=function(){return this.h3};return this.h3};q.prototype.getParent=function(){return this.ka};q.prototype.Xa=function(){return this.ia};q.prototype.xb=function(){return this.ua};q.prototype.QVa=function(){return void 0!==this.ia&&void 0!==this.ua};q.prototype.rf=function(){return this.ia-this.Bb().gI()-this.Bb().jI()};q.prototype.qf=function(){return this.ua-this.Bb().lI()-this.Bb().cI()};q.prototype.Rl=function(){return this.Bb().gI()};q.prototype.Gs=function(){return this.Bb().lI()}; q.prototype.Fs=function(){return this.Bb().jI()};q.prototype.dI=function(){return this.Bb().cI()};q.prototype.wf=function(n){this.Ib!=n&&(this.Ib=n,this.le(),this.ka&&(this.ka.Vb(),this.ka.Hd()),this.qH())};q.prototype.qH=function(){var n=!1;this.fb&&this.Ib&&0 this.pF&&(this.ql=this.pF);!isNaN(this.qF)&&this.plthis.oF&&(this.pl=this.oF)};q.prototype.Ab=function(){if(!this.Nsa){this.Nsa=!0;var n=this.Cr(),r=this.zF();n.appendChild(this.gl().fI());n.appendChild(r);r.appendChild(this.Qc().fI());r.appendChild(this.Bb().fI())}};q.prototype.X_a=function(){this.DSa();var n=this.Ls(),r=this.Ks(),t=this.Js(),u=this.Ov();return n!=this.QLa||r!=this.PLa||t!=this.MLa||u!=this.LLa||this.Um!=this.OLa||this.Tm!=this.NLa? (this.QLa=n,this.PLa=r,this.MLa=t,this.LLa=u,this.OLa=this.Um,this.NLa=this.Tm,!0):!1};q.prototype.Va=function(){this.Rk()};q.prototype.am=function(){};q.prototype.xza=function(n,r,t,u){if(this.Ha!=n||this.Ka!=r||this.ia!=t||this.ua!=u)this.Ha=n,this.Ka=r,this.ia=t,this.ua=u,this.Qc().setSize(this.ia,this.ua),this.Hd(),this.Rk(),this.trigger(new l(b.kc))};q.prototype.Vg=function(){var n=this.Cr(),r=this.zF();this.Ib?(r.style.width=this.ia+"px",r.style.height=this.ua+"px",n.style.left=this.Ha+this.Iu+ "px",n.style.top=this.Ka+this.Ju+"px",n.style.width=this.ia+"px",n.style.height=this.ua+"px",n.style.visibility="inherit",n.style.overflow="visible",n.style.cursor=this.fb&&this.fb.L3.vva(this.Bh),0===r.clientWidth&&0!==this.ia&&(n.style.width=0,n.style.width=this.ia+"px")):(n.style.visibility="hidden",n.style.width=0,n.style.height=0,n.style.overflow="hidden",r.style.width=0,r.style.height=0);this.gl().Vg();this.Qc().Vg();this.Bb().Vg();!this.Ula&&this.fb&&(this.Ula=!0,this.fb.Tra?this.i6():this.fb.bind(b.Bn, this.i6,this,!0))};q.prototype.i6=function(){this.trigger(b.INIT)};q.prototype.BVa=function(n){n=n.Ac().offset();var r=this.Ac().offset(),t={};t.left=r.left-n.left;t.top=r.top-n.top;this.fb&&(t.left/=this.fb.uy,t.top/=this.fb.uy);return t};q.EF=0;return q}); define("S","require eg lo oH cy gJ mV".split(" "),function(a){var e=a("eg"),h=a("lo"),m=a("oH"),k=a("cy"),b=a("gJ"),g=a("mV"),d=h.extend(g,function(){this.m={};this.cv=this.ika=void 0;this.Cy={};this.eka=!0;this.Ura={};g.call(this);this.cHa();this.nb();this.Be("UICustomizable");this.le()});d.vc={visible:!0,includeInLayout:!0,state:void 0,left:void 0,right:void 0,top:void 0,bottom:void 0,centerX:void 0,centerY:void 0,width:void 0,height:void 0,minWidth:void 0,minHeight:void 0,maxWidth:void 0,maxHeight:void 0, actualWidth:void 0,actualHeight:void 0,paddingLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,opacity:1,borderRadius:0,borderTopRadius:void 0,borderBottomRadius:void 0,borderLeftRadius:void 0,borderRightRadius:void 0,borderTopLeftRadius:void 0,borderTopRightRadius:void 0,borderBottomLeftRadius:void 0,borderBottomRightRadius:void 0,borderSize:0,borderLeftSize:void 0,borderTopSize:void 0,borderRightSize:void 0,borderBottomSize:void 0,borderColor:void 0,borderLeftColor:void 0,borderTopColor:void 0, borderRightColor:void 0,borderBottomColor:void 0,shadow:!1,shadowHorizontalLength:0,shadowVerticalLength:3,shadowBlurRadius:6,shadowSpread:0,shadowColor:"#000000",shadowOpacity:void 0,backgroundOpacity:1,backgroundColor:void 0,backgroundColorRatios:void 0,backgroundColorDirection:void 0,backgroundImageUrl:void 0,hideEffect:void 0,showEffect:void 0};d.prototype.cHa=function(){this.Ura[b.$b]=b.ob};d.prototype.nb=function(){this.Ln(d.vc)};d.prototype.Ln=function(c){for(var f in c){var l=c[f],p=l&&l.length; p&&"string"!=typeof l?1==p?this.h(f,l[0]):2==p?this.u(f,l[0],l[1]):3==p&&this.u(f,l[0],l[1],l[2]):this.h(f,l)}};d.prototype.h=function(c,f){this.m[c]={i:!0,d:f}};d.prototype.IJa=function(){var c=[],f;for(f in this.m)c.push(f);return c};d.prototype.u=function(c,f,l,p){this.Cy[f]||(this.Cy[f]={});this.h(c,p);this.Cy[f][l]=c};d.prototype.YG=function(c,f){if(f)this.ika=c;else if(void 0!=this.ika)return;if(this.cv!=c){if(f=this.Cy[this.cv])for(var l in f)(this.m[l]||(this.m[l]={})).i=!0;this.cv=c;if(f= this.Cy[this.cv])for(l in f)(this.m[l]||(this.m[l]={})).i=!0;this.le()}};d.prototype.ja=function(c){if(e(c).isString())this.set(c,void 0);else{var f=c;for(c in f)this.set(c,f[c])}};d.prototype.set=function(c,f){var l=this.m[c];l?(void 0==f&&(f=l.d),e.isEqual(this.get(c),f)||("state"==c&&this.YG(f,!0),g.prototype.set.call(this,c,f),l.i=!0,this.le())):g.prototype.set.call(this,c,f)};d.prototype.get=function(c,f){switch(c){case "actualWidth":return this.Xa();case "actualHeight":return this.xb();default:var l= g.prototype.get.call(this,c);void 0===l&&((c=this.m[c])&&(l=c.d),void 0===l&&(l=f));return l}};d.prototype.Eha=function(){for(var c="paddingLeft paddingTop paddingRight paddingBottom borderRadius borderTopRadius borderBottomRadius borderLeftRadius borderRightRadius borderTopLeftRadius borderTopRightRadius borderBottomLeftRadius borderBottomRightRadius borderSize borderLeftSize borderTopSize borderRightSize borderBottomSize".split(" "),f=0;fr&&this.gX()}};p.prototype.iRa= function(n){this.RC&&(this.Bsa(this.RC),n&&this.Csa(this.RC),this.gX())};p.prototype.gX=function(){this.RC&&(this.unbind(k.ac,this.usa,this),this.RC=void 0)};p.prototype.usa=function(){this.gX()};p.prototype.T4=function(n){this.kF(["gesturechange","gestureend"]);n.preventDefault();n.stopImmediatePropagation();this.O8(n)};p.prototype.O8=function(n){var r=this.f5(n);this.DG=r;this.vRa(r.scale,r.rotation,r.coordinates);this.ka&&this.ka.O8(n)};p.prototype.mka=function(n){n.preventDefault();n.stopImmediatePropagation(); this.M8(n)};p.prototype.M8=function(n){var r=this.f5(n,this.DG),t=r.rotation-this.DG.rotation,u=r.scale/this.DG.scale;this.DG=r;this.Cc*=u;for(this.Ck+=t;180this.Ck;)this.Ck+=360;this.rRa(this.Cc,this.Ck,r.coordinates);0!=t&&this.tRa(this.Ck);1!=u&&this.uRa(this.Cc);this.gX();this.ka&&this.ka.M8(n)};p.prototype.oka=function(n){this.lK(["gesturechange","gestureend"]);n.preventDefault();n.stopImmediatePropagation();this.N8(n)};p.prototype.N8=function(n){var r=this.f5(n); this.sRa(this.Cc,this.Ck,r.coordinates);this.ka&&this.ka.N8(n)};p.prototype.f7=function(n){this.kF(["mouseup"]);n.stopImmediatePropagation();this.Rpa(n,!0);q&&this.zLa(n.ctrlKey)};p.prototype.Rpa=function(n,r){var t=this.uB(n);r&&this.OFa(t);this.Esa(t,n);this.ka&&this.ka.Rpa(n,r&&this.get("propagateClick"))};p.prototype.j7=function(n){n.preventDefault();n.stopImmediatePropagation();this.Jb().MD(this);this.Spa(n)};p.prototype.Spa=function(n){var r=this.uB(n);this.NFa(r);this.Fsa(r,n);this.ka&&this.ka.Spa(n)}; p.prototype.qU=function(n){this.lK(["mouseup"]);n.preventDefault();n.stopImmediatePropagation();this.Tpa(n,this.Yla());this.Mla()};p.prototype.Tpa=function(n,r){var t=this.uB(n);this.Gsa(t);this.MFa(r);this.ka&&this.ka.Tpa(n,r)};p.prototype.OFa=function(n){this.bind(k.ac,this.Lia,this,!0);this.XA=n};p.prototype.NFa=function(n){this.XA&&this.Eka(this.XA,n)>p.dDa&&this.W2()};p.prototype.MFa=function(n){this.XA&&(this.Bsa(this.XA),n&&this.Csa(this.XA),this.W2())};p.prototype.W2=function(){this.XA&&(this.unbind(k.ac, this.Lia,this),this.XA=void 0)};p.prototype.Lia=function(){this.W2()};p.prototype.Oma=function(n){this.fb.Nma&&(n.preventDefault(),n.stopImmediatePropagation(),this.Upa(n))};p.prototype.sia=function(){return!1};p.prototype.Upa=function(n){var r=this.uB(n),t=this.rJa(n);this.ka&&!this.sia(t.delta)&&this.ka.Upa(n);this.yRa(r,t,n)};p.prototype.uB=function(n){return this.$S(n.pageX,n.pageY)};p.prototype.rJa=function(n){n=window.event||n.originalEvent||n;var r={};r.delta=Math.max(-1,Math.min(1,n.wheelDelta|| -n.detail));r.iY=n.wheelDelta?.01*n.wheelDelta:r.delta;return r};p.prototype.BF=function(n){var r=this.d5(n);if(void 0===r){var t=void 0!==n.pageX?this.$S(n.pageX,n.pageY):this.$S(n.originalEvent.pageX,n.originalEvent.pageY);t.touches=[t]}else 0==r.length?t=this.ENa:(t={x:0,y:0,pageX:0,pageY:0,xz:0,yz:0,touches:[]},Array.from(r).forEach(function(u){u||(u=r[0]);u=this.$S(u.pageX,u.pageY);t.x+=u.x;t.y+=u.y;t.pageX+=u.pageX;t.pageY+=u.pageY;t.xz+=u.xz;t.yz+=u.yz;t.touches.push(u)}.bind(this)),t.x/=r.length, t.y/=r.length,t.pageX/=r.length,t.pageY/=r.length,t.xz/=r.length,t.yz/=r.length);return this.ENa=t};p.prototype.Zla=function(n){if((n=this.d5(n))&&1b&&(b=this.KB,l=!0),l&&(b=Math.max(1,Math.floor((q+n)/(b+n))),b=(q-(b-1)*n)/b);else b=this.zu;b=Math.max(1,b);var r=Math.max(1,Math.floor(.001+(q+n)/(b+n)));l=r*b;var t=r*(b+n)-n,u=0;if(q>=t)switch(this.kl){case h.hb:u=q-t;break;case h.Ge:u=Math.round(.5*(q-t));break;default:u=0}q=[];t=[];for(var v= 0;vn&&(n=this.fL,l=!0),l&&(n=Math.max(1,Math.floor((u+v)/(n+v))),n=(u-(n-1)*v)/n);else n=this.yu;l=Math.max(1,Math.ceil(p/r));g=l*n;p=l*(n+v)-v;var w=0;if(u>=p)switch(this.Ol){case h.pc:w=u-p; break;case h.he:w=Math.round(.5*(u-p))}p=[];u=[];for(d=0;du?(q.width=u,g-=q.width,b=!0):(l+=n.Um,f.push(q))}p=f}while(b);for(d=0;d=f)switch(this.kl){case h.hb:d-=f;break;case h.Ge:d=Math.round(.5*(d-f));break;default:d=0}else d=0;for(p=0;p=q.height)switch(this.Ol){case h.pc:q.y=c-q.height;break;case h.he:q.y=Math.round(.5*(c-q.height));break;default:q.y=0}else q.y=0;q.x=d;d+=q.width+g}else q.x=0,q.y=0};return a}); define("db",["require","lo","mQ","ce","dE"],function(a){var e=a("lo"),h=a("mQ"),m=a("ce"),k=a("dE");a=e.extend(m,function(){m.call(this)});a.prototype.measure=function(){for(var b=new k,g=this.cT(),d=0;du?(q.height=u,g-=q.height,b=!0):(l+=n.Tm,f.push(q))}p=f}while(b);for(d=0;d d&&(d=q.width),l++)}f+=g*(l-1);if(c>=f)switch(this.Ol){case h.pc:c-=f;break;case h.he:c=Math.round(.5*(c-f));break;default:c=0}else c=0;for(p=0;pt)throw"Can't set index. This is not a child of this container";var u=this.Ld.slice();u.splice(t,1);u.splice(r,0,n);if(!h.isEqual(this.Ld,u)&&(this.Ld=u,!h(this.sp).contains(n))){r=this.Vba(n);n.Ac().detach();u=t=null;for(var v=r-1;0<=v&&!t;v--)h(this.sp).contains(this.Ld[v])||(t=this.Ld[v]);for(v= r+1;vthis.Za?this.Za=0:this.Za>b&&(this.Za=b)};e.Dg="horizontal";e.uh="vertical";return e});define("jN",["require","lo","lW"],function(a){var e=a("lo"),h=a("lW");return e.extend(h,function(m){h.call(this,h.Dg,m)})});define("er",["require","lo","lW"],function(a){var e=a("lo"),h=a("lW");return e.extend(h,function(m){h.call(this,h.uh,m)})}); define("hd","require exports oH cy gi mj".split(" "),function(a,e,h,m,k,b){return new (function(g){function d(){var c=g.call(this)||this;c.visible=!0;c.Cb=!1;c.D_=!1;c.visible=!0;c.Cb=!1;c.D_=!1;c.Vya=b.getQueryParameter("redirect-when-hidden")||"";c.SXa=b.Wh("reload-when-hidden",!1);document.addEventListener("visibilitychange",c.onChange.bind(c),!1);c.onChange();return c}Z(d,g);d.prototype.c_=function(c){if(this.Cb=c)this.D_=!1;this.onChange()};d.prototype.pea=function(c){this.D_=c;this.onChange()}; d.prototype.onChange=function(){var c=this.Cb?!this.D_:!document.hidden;this.visible!=c&&((this.visible=c)&&this.wXa(),this.trigger(new m(h.pa)))};d.prototype.wXa=function(){this.Vya?window.location.href=this.Vya:this.SXa&&window.location.reload()};return d}(k))}); define("mv",["require","exports","mj"],function(a,e,h){a={};a.dJ=h.Wh("debug",!1);a.PBa=h.cj("hqhls");a.Tea=h.Wh("audiocontext",!0);a.H0a=h.Wh("testhash",!1);a.GBa=h.Wh("exitvronblur",!1);a.qBa=h.Wh("download",!0);a.NCa=h.Wh("updatewhilehidden",!1);return a}); define("bg",["require","exports","lo","hd","mv"],function(a,e,h,m,k){var b=window.requestAnimationFrame.bind(window),g=window.cancelAnimationFrame.bind(window),d=function(){function f(){}f.requestFrame=function(l,p,q){for(var n=0;nq?q:100:1;f.De=l;for(l=0;l=p?0:p>=q?1:p/q;.5>p?p=Math.pow(2*p,d):(p=1-Math.pow(1-(2*p-1),d),p+=1);return f+.5*(l-f)*p}};c.Qca=k(d);return c}function h(d){var c={Rba:function(f,l,p,q){return f+(l-f)*(1-Math.pow(1-(0>=p?0:p>=q?1:p/q),d))}};c.Qca=k(d);return c}function m(d){var c={Rba:function(f,l,p,q){return f+(l-f)*Math.pow(0>=p?0:p>=q?1:p/q,d)}};c.Qca=k(d);return c}function k(d){return function(c,f,l){c=Math.abs(f-c);return 1>c/l?0:1/(1- Math.pow((c-l)/c,1/d))}}function b(d,c,f){this.bk=null;switch(d){case "quad_in":this.bk=m(2);break;case "quad_out":this.bk=h(2);break;case "quad_in_out":this.bk=e(2);break;case "cubic_in":this.bk=m(3);break;case "cubic_out":this.bk=h(3);break;case "cubic_in_out":this.bk=e(3);break;case "quart_in":this.bk=m(4);break;case "quart_out":this.bk=h(4);break;case "quart_in_out":this.bk=e(4);break;case "quint_in":this.bk=m(5);break;case "quint_out":this.bk=h(5);break;case "quint_in_out":this.bk=e(5);break; default:this.bk=m(1)}this.eu=c.slice();this.Ed=0;this.qb=this.Ex(c,f);this.S3={};for(d=0;d=this.qb};b.prototype.bj=function(){return this.qb};b.prototype.Qk=function(){return this.Ed/this.qb};b.prototype.getTime=function(){return this.Ed}; b.prototype.setTime=function(d){this.Ed=Math.min(Math.max(0,d),this.qb);for(d=0;dthis.Nd?this.RR()&&(v=Math.min(t,this.Gb-this.vg)):tthis.jd?this.PR()&&(t=Math.min(u,this.Tb-this.Xf)):uthis.jd+this.Xf&&y>=u&&y=t+this.Xf&&xv+this.Xf&&(v=x-this.Xf)}this.HN(this.Nd,v)}};r.prototype.SR=function(){return this.qia()&&0this.Nd+this.vg&&y>=u&&y=t+this.vg&&xv+this.vg&&(v=x-this.vg)}this.HN(v,this.jd)}};r.prototype.QR=function(){return this.pia()&&0t&&this.jdthis.Nd||this.Nd>this.Gb-this.vg)&&(this.rl=!1),this.sl&&(this.jd=this.Hy.cb("vScrollPosition"),0>this.jd||this.jd>this.Tb-this.Xf)&&(this.sl=!1),this.Cv(),p.requestFrame(this.Z1,this)):(this.sl=this.rl=!1,this.Hy=null,this.qs())};r.prototype.Cv=function(t){if(t){if(!this.Kx)switch(this.B("horizontalAlign")){case b.hb:this.Nd= this.Gb-this.vg;break;case b.Ge:this.Nd=(this.Gb-this.vg)/2;break;default:this.Nd=0}if(!this.ts)switch(this.B("verticalAlign")){case b.pc:this.jd=this.Tb-this.Xf;break;case b.he:this.jd=(this.Tb-this.Xf)/2;break;default:this.jd=0}}this.Nd=Math.max(0,Math.min(this.Gb-this.vg,this.Nd));this.jd=Math.max(0,Math.min(this.Tb-this.Xf,this.jd));this.Mn().setPosition(this.Nd);this.Nn().setPosition(this.jd);this.Bb().TYa(this.Nd);this.Bb().g_a(this.jd);this.Rk();if(this.Jpa!=this.Nd||this.Kpa!=this.jd)void 0!== this.Jpa&&void 0!==this.Kpa&&this.trigger(new k(m.fp)),this.Jpa=this.Nd,this.Kpa=this.jd};r.prototype.qs=function(){var t=this.get("scrollBarVisible")==d.ALWAYS?!0:this.Rn?this.rl||this.sl||this.m6:this.rl||this.sl||this.t6;this.Mn().wf(this.Kx&&t);this.Nn().wf(this.ts&&t);this.Rk()};r.prototype.Ab=function(){c.prototype.Ab.call(this);this.WFa||(this.WFa=!0,this.Rn?this.bind(m.ub,this.Tia,this):(this.bind(m.ub,this.VFa,this),this.bind(m.Wc,this.ZFa,this),this.bind(m.ac,this.YFa,this),this.bind(m.ar, this.XFa,this)))};r.prototype.Va=function(){this.I("overflow")&&(this.b8=this.B("overflow"),this.P("overflow"),this.Hd());this.I("scrollBarColor")&&(this.Mn().setColor(this.B("scrollBarColor")),this.Nn().setColor(this.B("scrollBarColor")),this.P("scrollBarColor"));this.I("scrollBarWidth")&&(this.Mn().oQ(this.B("scrollBarWidth")),this.Nn().oQ(this.B("scrollBarWidth")),this.P("scrollBarWidth"));if(this.I("scrollBarMargin")||this.I("scrollBarVerticalMargin")||this.I("scrollBarHorizontalMargin")){var t= this.B("scrollBarHorizontalMargin","scrollBarMargin"),u=this.B("scrollBarVerticalMargin","scrollBarMargin");this.Mn().Hza(t);this.Mn().Yza(u);this.Nn().Hza(t);this.Nn().Yza(u);this.P("scrollBarMargin");this.P("scrollBarVerticalMargin");this.P("scrollBarHorizontalMargin")}this.I("scrollBarOpacity")&&(this.Mn().fj(this.B("scrollBarOpacity")),this.Nn().fj(this.B("scrollBarOpacity")),this.P("scrollBarOpacity"));c.prototype.Va.call(this)};r.prototype.am=function(){c.prototype.am.call(this);this.aSa(); this.wSa();this.uSa();this.qs();this.Rk()};r.prototype.aSa=function(){for(var t=0,u=0,v=0,w=0,x=this.Kb(),y=0;ythis.Xia||0>this.Yia||this.Gb>this.vg|| this.Tb>this.Xf;if(this.b8==g.fp){this.Kx=this.vg"));break;default:l["line-height"]="normal",this.Ym.text(this.B("text")), this.Ym.html(this.Ym.html().split(" ").join(" "))}this.P("direction");this.P("text");setTimeout(function(){this.Vb();this.Hd()}.bind(this),0)}if(this.I("fontFamily")){var p=this.B("fontFamily");m(p).isString()||(p="");l.fontFamily=c.Jv(p);this.P("fontFamily");this.Vb();this.Hd()}this.I("fontSize")&&(p=this.B("fontSize"),m(p).isNumber()?p+="px":m(p).isString()||(p=""),l.fontSize=p,this.P("fontSize"),this.Vb(),this.Hd());this.I("fontColor")&&(p=this.B("fontColor"),m(p).isString()||(p=""),l.color= p,this.P("fontColor"));if(this.I("fontWeight")){p=this.B("fontWeight");switch(p){case "bold":case "bolder":case "lighter":case "100":case "200":case "300":case "400":case "500":case "600":case "700":case "800":case "900":case "normal":break;default:p="normal"}l.fontWeight=p;this.P("fontWeight");this.Vb();this.Hd()}if(this.I("fontStyle")){p=this.B("fontStyle");switch(p){case "italic":case "normal":break;default:p="normal"}l.fontStyle=p;this.P("fontStyle");this.Vb();this.Hd()}if(this.I("textDecoration")){p= this.B("textDecoration");switch(p){case "underline":case "overline":case "line-through":case "none":break;default:p="none"}l.textDecoration=p;this.P("textDecoration");this.Vb();this.Hd()}this.I("horizontalAlign")&&(this.Hd(),this.P("horizontalAlign"));this.I("verticalAlign")&&(this.Hd(),this.P("verticalAlign"));p=["textShadowColor","textShadowHorizontalLength","textShadowVerticalLength","textShadowBlurRadius","textShadowOpacity"];if(m(p).any(function(n){return this.I(n)},this)){var q={};m(p).each(function(n){q[n]= this.B(n);this.P(n)},this);l["-moz-text-shadow"]=l["-webkit-text-shadow"]=l["text-shadow"]=[q.textShadowHorizontalLength+"px",q.textShadowVerticalLength+"px",q.textShadowBlurRadius+"px","rgba("+parseInt("0x"+q.textShadowColor.substr(1,2))+", "+parseInt("0x"+q.textShadowColor.substr(3,2))+", "+parseInt("0x"+q.textShadowColor.substr(5,2))+", "+q.textShadowOpacity+")"].join(" ");p=0==q.textShadowVerticalLength&&0==this.B("textShadowHorizontalLength")?135:45*Math.round(4*Math.atan2(q.textShadowHorizontalLength, -q.textShadowVerticalLength)/Math.PI);l.filter="progid:DXImageTransform.Microsoft.Shadow(color=#"+("00"+(255*q.textShadowOpacity).toString(16)).slice(-2)+q.textShadowColor.substr(1,6)+",direction="+p+")";this.Bb().JI((0this.uo.indexOf(f)?(this.A="playing",this.uo.push(f),this.Le=0,this.qb=Math.max(this.get("duration", 1E3),1),this.gg=new b(this.get("easing","linear"),[new g("pos",0,1)],this.qb),this.gg.setTime(this.Le),this.aH(),this.ov(),this.QM()):this.A="playing")};c.prototype.reverse=function(f){f||(f=d);this.FWa(f)||("stopped"==this.A||0>this.uo.indexOf(f)?(this.A="playingReverse",this.uo.push(f),this.Le=this.qb=Math.max(this.get("duration",1E3),0),this.gg=new b(this.get("easing","linear"),[new g("pos",0,1)],this.qb),this.gg.setTime(this.Le),this.aH(),this.ov(),this.QM()):this.A="playingReverse")};c.prototype.stop= function(){"stopped"!=this.A&&(this.A="stopped",0!==this.Le&&(this.Le=0,this.gg.setTime(this.Le),this.ov(),this.QM()))};c.prototype.end=function(){"stopped"!=this.A&&(this.Le=this.qb,this.gg.setTime(this.Le),this.ov(),this.QM())};c.prototype.cancel=function(){this.A="stopped";this.Le=0;this.uo=[]};c.prototype.sI=function(f){return"playing"==this.A&&0<=this.uo.indexOf(f)};c.prototype.FWa=function(f){return"playingReverse"==this.A&&0<=this.uo.indexOf(f)};c.prototype.yj=function(f){"stopped"!=this.A&& (this.Le="playing"==this.A?Math.min(this.qb,this.Le+f):Math.max(0,this.Le-f),this.gg.setTime(this.Le),this.ov(),this.QM())};c.prototype.Qk=function(){return this.gg&&this.gg.cb("pos")||0};c.prototype.Ax=function(f){if(this.uo)for(var l=0;l=this.Le?(this.Le=0,this.$G(),this.uo=[],"stopped"!=this.A&&(this.A="stopped",this.get("loop")&&this.play())):"playing"==this.A&&this.Le>=this.qb?(this.Le=this.qb,this.ZG(),this.uo=[],"stopped"!=this.A&&(this.A="stopped","alternate"==this.get("animationDirection")?this.reverse():this.get("loop")&&this.play())):"stopped"!=this.A&&k.requestFrame(this.yj,this)};c.DBa="start";c.e0="frame";c.Qj="end";c.BBa="reverseStart";c.ht="reverseEnd";return c}); define("gG",["require","oH","es"],function(a){var e=a("oH"),h=a("es");return{IHa:function(){this.ck=this.Je=null;this.bind(e.kd,this.Vja,this,!0);this.bind(e.sd,this.Qja,this,!0);this.bind(e.Wc,this.Sja,this,!0);this.bind(e.ac,this.Rja,this,!0);this.bind(e.G("effect"),this.Oja,this,!0);this.bind(e.G("rollOverEffect"),this.Tja,this,!0);this.gB=!1},X0a:function(){this.unbind(e.kd,this.Vja,this,!0);this.unbind(e.sd,this.Qja,this,!0);this.unbind(e.Wc,this.Sja,this,!0);this.unbind(e.ac,this.Rja,this,!0); this.unbind(e.G("effect"),this.Oja,this,!0);this.unbind(e.G("rollOverEffect"),this.Tja,this,!0)},Vja:function(){this.Je&&this.Je.play()},Qja:function(){this.Je&&this.Je.stop();this.ck&&this.ck.stop();this.gB=!1},Sja:function(){this.gB||(this.gB=!0,this.ck&&(this.Je&&this.Je.get("loop")&&0this.J2;)this.md.pop().cancel();if(t){var v=this.bl,w=function(){t.call(u||window,v.sf(),v.rd(),v.ee())};this.bl.dj()?w():this.bl.bind(b.Z,w)}};e.prototype.clear=function(){this.md.forEach(function(r){r.cancel()});this.bl=null};a=k.extend(l,function(r){l.call(this);this.Be("Image");this.J2=r||1;this.Iaa=!1;this.kl=c.Pa;this.iT=!1;this.Ol=c.uc;this.FX=!1;this.Df=f.NONE;this.u9= !1;this.pG=this.qG=0;this.Z5=this.Y7=!1;this.Tb=this.Gb=0;this.Vt=!1;this.be=this.ll=this.Wb=this.rT=this.qT=null;this.bind(b.kc,this.yKa,this);this.bind(b.kd,this.zKa,this)});a.prototype.m5=function(){this.be=new e(this.J2);this.m5=function(){return this.be};return this.be};a.prototype.nb=function(){l.prototype.nb.call(this);this.h("horizontalAlign",c.Pa);this.h("verticalAlign",c.uc);this.h("scaleMode",f.NONE)};a.prototype.set=function(r,t){"url"==r&&this.get("url")!=t&&(this.Iaa=!0,this.le());l.prototype.set.call(this, r,t)};a.prototype.HI=function(r){this.kl!=r&&(this.kl=r,this.iT=!0,this.le())};a.prototype.OI=function(r){this.Ol!=r&&(this.Ol=r,this.FX=!0,this.le())};a.prototype.Gz=function(r){this.Df!=r&&(this.Df=r,this.u9=!0,this.le(),this.Vb())};a.prototype.yKa=function(){this.Vt=!0;this.le()};a.prototype.zKa=function(){this.zta()};var n={position:"static",cursor:"inherit",display:"inline",verticalAlign:"top",visibility:"hidden","pointer-events":"none","user-select":"none","-ms-user-select":"none","-moz-user-select":"none", "-webkit-user-select":"none","touch-callout":"none","-webkit-touch-callout":"none"};d.browser()==d.Uk&&d.jb()&&(n.transform="translate3d(0,0,0)");a.prototype.Nha=function(r,t,u){this.qG=t?t:0;this.pG=u?u:0;this.Wb&&(this.Wb.remove(),this.Wb=null);if(this.ll=r)this.Wb=m(this.ll),p.css(this.ll,n),this.qT.append(this.Wb);this.Y7=this.Z5=!0;this.le();this.Vb();this.Wb&&this.trigger(b.Z)};a.prototype.Ab=function(){l.prototype.Ab.call(this);this.qT||(this.rT=document.createElement("div"),this.qT=m(this.rT), p.css(this.rT,{position:"static",overflow:"hidden",cursor:"inherit"}),this.Bb().append(this.qT))};a.prototype.Hu=function(){this.ql=this.qG+this.Rl()+this.Fs();this.pl=this.pG+this.Gs()+this.dI();this.yma=0==this.qG&&0==this.pG?0:this.qG/this.pG;this.zL=this.AL=0};a.prototype.Va=function(){this.I("scaleMode")&&(this.Gz(this.B("scaleMode")),this.P("scaleMode"));this.I("horizontalAlign")&&(this.HI(this.B("horizontalAlign")),this.P("horizontalAlign"));this.I("verticalAlign")&&(this.OI(this.B("verticalAlign")), this.P("verticalAlign"));this.Eha()&&(this.Vt=!0);l.prototype.Va.call(this);this.zta();if(this.QVa()){var r=!1;if(this.u9||this.Y7||this.Vt){var t=this.rf(),u=this.qf(),v=this.qG,w=this.pG,x;if(0==v||0==w)var y=x=0;else switch(this.Df){case f.NONE:x=v;y=w;break;case f.Aw:x=t;y=u;break;case f.rh:v*u>w*t?(x=t,y=w*t/v):(x=v*u/w,y=u);break;case f.Xq:v*u>w*t?(x=v*u/w,y=u):(x=t,y=w*t/v);break;case f.Zo:x=t;y=w*t/v;break;case f.Tj:x=v*u/w,y=u}if(this.Gb!=x||this.Tb!=y)this.Gb=x,this.Tb=y,r=!0;this.Y7=this.u9= !1}if(r||this.Vt||this.Z5)this.FX=this.iT=!0,this.ll&&p.css(this.ll,{width:this.Gb+"px",height:this.Tb+"px",visibility:"inherit"}),p.css(this.rT,{width:this.rf()+"px",height:this.qf()+"px","border-top-left-radius":this.eT(this.DIa(),this.Aka(),this.yka())+"px","border-top-right-radius":this.eT(this.EIa(),this.Aka(),this.zka())+"px","border-bottom-left-radius":this.eT(this.BIa(),this.xka(),this.yka())+"px","border-bottom-right-radius":this.eT(this.CIa(),this.xka(),this.zka())+"px"}),this.Vb(),this.Z5= this.Vt=!1;if(this.iT&&this.ll){switch(this.kl){case c.Pa:p.css(this.ll,{"margin-left":0,"margin-right":this.rf()-this.Gb+"px"});break;case c.hb:p.css(this.ll,{"margin-left":this.rf()-this.Gb+"px","margin-right":0});break;case c.Ge:p.css(this.ll,{"margin-left":Math.floor(.5*(this.rf()-this.Gb))+"px","margin-right":Math.ceil(.5*(this.rf()-this.Gb))+"px"})}this.iT=!1}if(this.FX&&this.ll){switch(this.Ol){case c.uc:p.css(this.ll,{"margin-top":0,"margin-bottom":this.qf()-this.Tb+"px"});break;case c.pc:p.css(this.ll, {"margin-top":this.qf()-this.Tb+"px","margin-bottom":0});break;case c.he:p.css(this.ll,{"margin-top":Math.floor(.5*(this.qf()-this.Tb))+"px","margin-bottom":Math.ceil(.5*(this.qf()-this.Tb))+"px"})}this.FX=!1}}};a.prototype.zta=function(){if(this.Iaa){var r=this.get("url");r?this.m5().load(r,this.Nha,this):(this.m5().clear(),this.Nha(null,0,0));this.Iaa=!1}};a.prototype.eT=function(r,t,u){if(!r)return 0;var v=0;t&&(v=Math.max(v,t));u&&(v=Math.max(v,u));return Math.max(0,r-v)};return a}); define("fO","require lo md gJ lN mw".split(" "),function(a){var e=a("lo"),h=a("md"),m=a("gJ"),k=a("lN"),b=a("mw");a=e.extend(k,function(){k.call(this)});a.prototype.nb=function(){k.prototype.nb.call(this);this.h("iconURL");this.u("rollOverIconURL",m.U,"iconURL");this.u("pressedIconURL",m.ob,"iconURL");this.u("pressedRollOverIconURL",m.$b,"iconURL")};a.prototype.t3=function(){var g=new b(3);g.set("scaleMode",h.rh);return g};a.prototype.Va=function(){if(this.I("iconURL")){var g=this.B("iconURL");this.fi.set("url", g);this.fi.set("visible",g?!0:!1);this.P("iconURL")}k.prototype.Va.call(this)};return a});define("fN",["require","nx","fO"],function(a){var e=a("nx"),h=a("fO");return e.define("Button",h,function(){h.call(this)})});define("hY",["require","lP","nx"],function(a){var e=a("lP");return a("nx").define("CapPanoramaOverlay",e,function(){e.call(this)})});define("hN",["require","nx","hY"],function(a){var e=a("nx"),h=a("hY");return e.define("CeilingCapPanoramaOverlay",h,function(){h.call(this)})}); define("k",["require","nx","iy"],function(a){var e=a("nx"),h=a("iy");return e.define("ChildModel3DObject",h,function(){h.call(this)})}); define("cx","require eg jquery.mod lo oH cy e".split(" "),function(a){a("eg");var e=a("jquery.mod"),h=a("lo"),m=a("oH"),k=a("cy"),b=a("e");a=h.extend(b,function(){b.call(this);this.Be("Canvas");this.m4=!0;this.O=null;this.bind(m.kc,this.rFa,this)});a.prototype.rFa=function(){this.WY()};a.prototype.WY=function(){this.m4=!0;this.Rk()};a.prototype.Ab=function(){b.prototype.Ab.call(this);this.O||(this.O=e(""),this.O.css({position:"absolute",left:0,top:0,cursor:"inherit"}),this.Bb().append(this.O))}; a.prototype.Va=function(){this.Eha()&&this.WY();b.prototype.Va.call(this)};a.prototype.Vg=function(){if(this.m4){this.m4=!1;var g=this.O.get(0);g.width=this.rf();g.height=this.qf();this.V_a()}b.prototype.Vg.call(this)};a.prototype.aVa=function(){return this.O.get(0).width};a.prototype.$Ua=function(){return this.O.get(0).height};a.prototype.ZUa=function(){return this.O.get(0).getContext("2d")};a.prototype.V_a=function(){this.trigger(new k(m.pa))};return a}); define("jW","require lo oH gJ lN cx".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("gJ"),k=a("lN"),b=a("cx");a=e.extend(k,function(){k.call(this)});a.prototype.am=function(){k.prototype.am.call(this)};a.prototype.nb=function(){k.prototype.nb.call(this);this.h("iconColor");this.u("rollOverIconColor",m.U,"iconColor");this.u("pressedIconColor",m.ob,"iconColor");this.u("pressedRollOverIconColor",m.$b,"iconColor")};a.prototype.t3=function(){var g=new b;g.bind(h.pa,this.OAa,this,!0);return g};a.prototype.Va= function(){this.I("iconColor")&&(this.fi.WY(),this.P("iconColor"));k.prototype.Va.call(this)};a.prototype.dJa=function(){return this.B("iconColor")};a.prototype.eJa=function(){return this.fi.ZUa()};a.prototype.gJa=function(){return this.fi.aVa()};a.prototype.fJa=function(){return this.fi.$Ua()};a.prototype.OAa=function(){};return a}); define("fX",["require","lo","jW","mQ","gJ"],function(a){var e=a("lo"),h=a("jW"),m=a("mQ"),k=a("gJ");a=e.extend(h,function(){h.call(this);this.ja({horizontalAlign:m.Ge,verticalAlign:m.he})});a.prototype.nb=function(){h.prototype.nb.call(this);this.h("iconLineWidth");this.u("rollOverIconLineWidth",k.U,"iconLineWidth");this.u("pressedIconLineWidth",k.ob,"iconLineWidth");this.u("pressedRollOverIconLineWidth",k.$b,"iconLineWidth")};a.prototype.nJa=function(){return this.B("iconLineWidth")};a.prototype.Va= function(){this.I("iconLineWidth")&&(this.fi.WY(),this.P("iconLineWidth"));h.prototype.Va.call(this)};a.prototype.OAa=function(){var b=this.eJa(),g=this.dJa(),d=this.gJa(),c=this.fJa(),f=this.nJa();b.clearRect(0,0,d,c);b.lineWidth=f||1;b.strokeStyle=g||"#000000";b.beginPath();b.moveTo(0,0);b.lineTo(d,c);b.moveTo(0,c);b.lineTo(d,0);b.closePath();b.stroke()};return a});define("ji",["require","nx","fX"],function(a){var e=a("nx"),h=a("fX");return e.define("CloseButton",h,function(){h.call(this)})}); define("jY",["require","lP","nx"],function(a){var e=a("lP");return a("nx").define("CookiesPolicy",e,function(){e.call(this)})});define("lO",["require","lr","nx","oc"],function(a){var e=a("lr"),h=a("nx"),m=a("oc");a=h.define("Container",m,function(){m.call(this)});a.prototype.scrollTo=function(k,b){m.prototype.scrollTo.call(this,k,b)};a.prototype.scrollIntoView=function(k){e.Az(function(){m.prototype.scrollIntoView.call(this,k)}.bind(this))};return a}); define("lw",["require","lP","nx"],function(a){var e=a("lP"),h=a("nx");a=h.define("PanoramaFrame",e,function(){e.call(this);this.la=null});a.prototype.get=function(m,k){switch(m){case "overlays":return this.o5();case "hfov":case "vfov":case "pitch":case "flipImageHorizontally":case "minFaceSize":if(this.la)return this.la.get(m,k)}return e.prototype.get.call(this,m,k)};a.prototype.o5=function(){var m=e.prototype.get.call(this,"overlays");m||(m=[]);return this.b$(m)};a.prototype.b$=function(m){if(void 0=== this.bH||this.ST!=m){var k=function(g){return h.Na("PopupPanoramaOverlay",g)},b=function(g){return h.Na("LensFlarePanoramaOverlay",g)};this.ST=m;this.bH=[].concat(m.filter(function(g){return!(k(g)||b(g))}),m.filter(b),m.filter(k))}return this.bH};a.prototype.GTa=function(m){this.la=m};a.prototype.pz=function(){return this.la};a.prototype.Tl=function(){return!1};return a});define("op",["require","nx","lw"],function(a){var e=a("nx"),h=a("lw");return e.define("CubicPanoramaFrame",h,function(){h.call(this)})}); define("il",["require"],function(){return{"bg-bg":{mute:"\u0417\u0430\u0433\u043b\u0443\u0448\u0430\u0432\u0430\u043d\u0435","cardboard-v1":"\u0410\u043a\u043e \u043d\u0435 \u0441\u0442\u0435 \u0441\u0438\u0433\u0443\u0440\u043d\u0438 \u043a\u043e\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043d\u0430 Cardboard \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0442\u0435, \u0438\u0437\u0431\u0435\u0440\u0435\u0442\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b \u043d\u0430 \u0445\u043e\u0442\u0441\u043f\u043e\u0442 \u043f\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043d\u0435. \u0421\u043b\u0435\u0434 \u0442\u043e\u0432\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0449\u0435 \u043f\u043e\u0433\u043b\u0435\u0434\u043d\u0435\u0442\u0435 \u0445\u043e\u0442\u0441\u043f\u043e\u0442\u0430 \u0438 \u0449\u0435 \u0438\u0437\u0447\u0430\u043a\u0430\u0442\u0435, \u0434\u043e\u043a\u0430\u0442\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u0442\u043e \u0441\u0435 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u0430.", "download-tour":"\u0418\u0437\u0442\u0435\u0433\u043b\u044f\u043d\u0435 \u043d\u0430 \u0442\u0443\u0440\u0430 \u0437\u0430 \u0432\u044a\u0437\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0436\u0434\u0430\u043d\u0435 \u043e\u0444\u043b\u0430\u0439\u043d","change-to-drag-and-release":"\u041f\u0440\u043e\u043c\u0435\u043d\u0435\u0442\u0435 \u0440\u0435\u0436\u0438\u043c\u0430 \u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u041f\u043b\u044a\u0437\u0433\u0430\u043d\u0435 \u0438 \u041f\u0443\u0441\u043a\u0430\u043d\u0435", accept:"\u041f\u0440\u0438\u0435\u043c\u0435\u0442\u0435",cancel:"\u041e\u0442\u043a\u0430\u0437","storage-not-provided-bookmark":"\u041f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0442\u043e \u0441\u044a\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0435 \u043e\u0442\u043a\u0430\u0437\u0430\u043d\u043e. \u041e\u043f\u0438\u0442\u0430\u0439\u0442\u0435 \u0434\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u0435 \u0442\u0430\u0437\u0438 \u0443\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0432 \u043e\u0442\u043c\u0435\u0442\u043a\u0438 \u0438 \u0434\u0430 \u044f \u043f\u0440\u0435\u0437\u0430\u0440\u0435\u0434\u0438\u0442\u0435.", "dont-display-again":"\u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u0432\u0430\u0439 \u0442\u0430\u0437\u0438 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0442\u043d\u043e\u0432\u043e","web-server-required":"\u0422\u043e\u0437\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u0435\u043b\u0435\u043d \u0442\u0443\u0440 \u043d\u0435 \u043c\u043e\u0436\u0435 \u0434\u0430 \u0431\u044a\u0434\u0435 \u043f\u0443\u0441\u043d\u0430\u0442 \u043e\u0442 \u043b\u043e\u043a\u0430\u043b\u043d\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e. \u041c\u043e\u043b\u044f, \u043a\u0430\u0447\u0435\u0442\u0435 \u0433\u043e \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438 \u043e\u043f\u0438\u0442\u0430\u0439\u0442\u0435 \u043e\u0442\u043d\u043e\u0432\u043e.\n\u0410\u043a\u043e \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u0442\u0435, \u0438\u0437\u0442\u0435\u0433\u043b\u0435\u0442\u0435 htm \u0444\u0430\u0439\u043b\u0430 (\u0438\u043b\u0438 \u0446\u044f\u043b\u0430\u0442\u0430 \u043f\u0430\u043f\u043a\u0430 \u043d\u0430 \u0442\u0443\u0440\u0430) \u0432\u044a\u0440\u0445\u0443 \u0438\u043a\u043e\u043d\u0430\u0442\u0430 \u043d\u0430 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u0442\u043e TourViewer.", download:"\u0418\u0437\u0442\u0435\u0433\u043b\u044f\u043d\u0435","change-to-click-and-move":"\u041f\u0440\u043e\u043c\u0435\u043d\u0435\u0442\u0435 \u0440\u0435\u0436\u0438\u043c\u0430 \u043d\u0430 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043d\u0430 \u041a\u043b\u0438\u043a\u0432\u0430\u043d\u0435 \u0438 \u041f\u0440\u0435\u043c\u0435\u0441\u0442\u0432\u0430\u043d\u0435",yes:"\u0434\u0430","delete-downloaded":"\u0418\u0437\u0442\u0440\u0438\u0432\u0430\u043d\u0435","use-safari-for-vr":"\u041f\u0440\u0435\u043f\u043e\u0440\u044a\u0447\u0432\u0430\u043c\u0435 Safari, \u0437\u0430 \u0434\u0430 \u0440\u0430\u0437\u0433\u043b\u0435\u0434\u0430\u0442\u0435 \u0442\u043e\u0437\u0438 \u0442\u0443\u0440 \u0432 \u0440\u0435\u0436\u0438\u043c VR", "exit-fullscreen":"\u0418\u0437\u043b\u0435\u0437\u0442\u0435 \u043e\u0442 \u0446\u044f\u043b \u0435\u043a\u0440\u0430\u043d",no:"\u043d\u0435","download-failed":"\u0418\u0437\u0442\u0435\u0433\u043b\u044f\u043d\u0435\u0442\u043e \u0441\u0435 \u043f\u0440\u043e\u0432\u0430\u043b\u0438","giroscope-disabled-http":"\u0418\u043c\u0430\u0442\u0435 \u0434\u043e\u0441\u0442\u044a\u043f \u0434\u043e \u0442\u0430\u0437\u0438 \u0443\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0447\u0440\u0435\u0437 http, \u0442\u0430\u043a\u0430 \u0447\u0435 \u0434\u043e\u0441\u0442\u044a\u043f\u044a\u0442 \u0434\u043e \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435\u0442\u043e \u0438 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f\u0442\u0430 \u043d\u0430 \u0432\u0430\u0448\u0435\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0438 \u0440\u0435\u0436\u0438\u043c\u044a\u0442 VR \u0441\u0430 \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d\u0438, \u043c\u043e\u043b\u044f, \u043e\u0442\u0432\u043e\u0440\u0435\u0442\u0435 \u0433\u043e \u0447\u0440\u0435\u0437 https, \u0437\u0430 \u0434\u0430 \u0433\u0438 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u0442\u0435.", "cookies-notice":"\u0422\u0430\u0437\u0438 \u0443\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430 \u0431\u0438\u0441\u043a\u0432\u0438\u0442\u043a\u0438 \u0437\u0430 \u0441\u044a\u0431\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0434\u0430\u043d\u043d\u0438 \u0437\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u043d\u0435\u0442\u043e. \u0417\u0430 \u043f\u043e\u0432\u0435\u0447\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f, \u043c\u043e\u043b\u044f, \u043f\u043e\u0441\u0435\u0442\u0435\u0442\u0435 \u041f\u0440\u0430\u0432\u0438\u043b\u0430\u0442\u0430 \u0437\u0430 \u0431\u0438\u0441\u043a\u0432\u0438\u0442\u043a\u0438\u0442\u0435 .", "use-cardboard":"\u0418\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0439 Cardboard","launch-default-browser":"\u0421\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u043d\u0435 \u0432 \u0431\u0440\u0430\u0443\u0437\u044a\u0440\u0430 \u043f\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043d\u0435","rotate-device":"\u041c\u043e\u043b\u044f \u0437\u0430\u0432\u044a\u0440\u0442\u0435\u0442\u0435 \u0432\u0430\u0448\u0435\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e", "exit-vr":"\u0418\u0437\u043b\u0438\u0437\u0430\u043d\u0435 \u043e\u0442 \u0440\u0435\u0436\u0438\u043c VR","storage-not-provided-launch-from-desktop":"\u041c\u043e\u043b\u044f, \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u0439\u0442\u0435 \u043e\u0431\u0438\u043a\u043e\u043b\u043a\u0430\u0442\u0430 \u043e\u0442 \u0438\u043a\u043e\u043d\u0430\u0442\u0430 \u043d\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0430, \u0437\u0430 \u0434\u0430 \u044f \u0438\u0437\u0442\u0435\u0433\u043b\u0438\u0442\u0435.", "disable-measure":"Stop measuring",downloading:"\u0418\u0437\u0442\u0435\u0433\u043b\u044f\u043d\u0435","cardboard-v2":"\u0410\u043a\u043e \u0438\u043c\u0430\u0442\u0435 \u043e\u0447\u0438\u043b\u0430 Cardboard v2, \u043a\u043e\u0438\u0442\u043e \u0440\u0430\u0437\u043f\u043e\u043b\u0430\u0433\u0430\u0442 \u0441 \u0431\u0443\u0442\u043e\u043d, \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0430 \u043f\u043e\u0433\u043b\u0435\u0434\u043d\u0435\u0442\u0435 \u0445\u043e\u0442\u0441\u043f\u043e\u0442\u0430 \u0438 \u0434\u0430 \u043d\u0430\u0442\u0438\u0441\u043d\u0435\u0442\u0435 \u0431\u0443\u0442\u043e\u043d\u0430, \u0437\u0430 \u0434\u0430 \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435\u0442\u043e \u043c\u0443.", "enable-video-audio-prompt":"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e \u0438 \u0430\u0443\u0434\u0438\u043e?",reject:"\u041e\u0442\u0445\u0432\u044a\u0440\u043b\u0435\u0442\u0435",downloaded:"\u0422\u043e\u0437\u0438 \u0442\u0443\u0440 \u0435 \u0438\u0437\u0442\u0435\u0433\u043b\u0435\u043d \u0437\u0430 \u0432\u044a\u0437\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0436\u0434\u0430\u043d\u0435 \u043e\u0444\u043b\u0430\u0439\u043d.","samsung-internet-vr-app-info":"\u0410\u043a\u043e \u0438\u043c\u0430\u0442\u0435 \u043e\u0447\u0438\u043b\u0430 Gear VR, \u0441\u044a\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0438 \u0441 \u0442\u043e\u0432\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0438 \u0441\u0442\u0435 \u0438\u043d\u0441\u0442\u0430\u043b\u0438\u0440\u0430\u043b\u0438 Samsung Internet for VR, \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0430 \u0433\u0438 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0442\u0435 \u0438 \u0437\u0430 \u043f\u0440\u0435\u0433\u043b\u0435\u0434 \u043d\u0430 \u0442\u043e\u0432\u0430 \u0441\u044a\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0435 \u0432\u044a\u0432 VR. \u0422\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u0438\u0442\u0435 Samsung Internet \u0431\u0440\u0430\u0443\u0437\u044a\u0440 \u043f\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043d\u0435.", "samsung-internet-vr-info":"\u0410\u043a\u043e \u0438\u043c\u0430\u0442\u0435 \u043e\u0447\u0438\u043b\u0430 Gear VR, \u0441\u044a\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0438 \u0441 \u0442\u043e\u0432\u0430 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e, \u0438 \u0441\u0442\u0435 \u0438\u043d\u0441\u0442\u0430\u043b\u0438\u0440\u0430\u043b\u0438 Samsung Internet for VR, \u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u0430 \u0433\u0438 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0442\u0435 \u0438 \u0437\u0430 \u043f\u0440\u0435\u0433\u043b\u0435\u0434 \u043d\u0430 \u0442\u043e\u0432\u0430 \u0441\u044a\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0435 \u0432\u044a\u0432 VR. \u0421\u0435\u0433\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u0442\u0440\u044f\u0431\u0432\u0430 \u0434\u0430 \u0441\u043b\u043e\u0436\u0438\u0442\u0435 \u043c\u043e\u0431\u0438\u043b\u043d\u0438\u044f \u0441\u0438 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0432 \u043e\u0447\u0438\u043b\u0430\u0442\u0430 \u0437\u0430 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u043d\u0430 \u0440\u0435\u0430\u043b\u043d\u043e\u0441\u0442.", "enable-video-prompt":"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0432\u0438\u0434\u0435\u043e?","giroscope-disabled-safari-request-permission":["\u0414\u043e\u0441\u0442\u044a\u043f\u044a\u0442 \u0437\u0430 \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435 \u0438 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043d\u0430 \u0432\u0430\u0448\u0435\u0442\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0438 \u0440\u0435\u0436\u0438\u043c\u044a\u0442 VR \u0441\u0430 \u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d\u0438 \u0437\u0430 \u0442\u043e\u0437\u0438 \u0441\u0430\u0439\u0442.", "\u0417\u0430 \u0434\u0430 \u0432\u0438\u0434\u0438\u0442\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043d\u043e \u0442\u0430\u0437\u0438 \u0443\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430, \u043c\u043e\u043b\u044f, \u043a\u043b\u0438\u043a\u043d\u0435\u0442\u0435 \u0432\u044a\u0440\u0445\u0443 \u043f\u0440\u043e\u0434\u044a\u043b\u0436\u0438 \u0438 \u043f\u0440\u0438\u0435\u043c\u0435\u0442\u0435 \u0438\u0441\u043a\u0430\u043d\u0435\u0442\u043e \u0437\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435."], "storage-not-provided-launch-from-homescreen":"\u041c\u043e\u043b\u044f, \u0440\u0435\u0441\u0442\u0430\u0440\u0442\u0438\u0440\u0430\u0439\u0442\u0435 \u043e\u0431\u0438\u043a\u043e\u043b\u043a\u0430\u0442\u0430 \u043e\u0442 \u0438\u043a\u043e\u043d\u0430\u0442\u0430 \u043d\u0430 \u043d\u0430\u0447\u0430\u043b\u043d\u0438\u044f \u0435\u043a\u0440\u0430\u043d, \u0437\u0430 \u0434\u0430 \u044f \u0438\u0437\u0442\u0435\u0433\u043b\u0438\u0442\u0435.","enter-fullscreen":"\u0412\u043b\u0435\u0437\u0442\u0435 \u0432 \u0446\u044f\u043b \u0435\u043a\u0440\u0430\u043d", "use-cardboard-v2":"\u0418\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0439 Cardboard v2",unmute:"\u041f\u0443\u0441\u043a\u0430\u043d\u0435 \u0437\u0432\u0443\u043a","enter-vr":"\u0412\u043b\u0435\u0437 \u0432\u044a\u0432 VR \u0441\u044a\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0435","enable-measure":"Start measuring","use-cardboard-info":"\u041c\u043e\u0436\u0435\u0442\u0435 \u0434\u0430 \u0438\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0442\u0435 \u0432\u0441\u044f\u043a\u0430\u043a\u0432\u0438 \u0441\u044a\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0438 Google Cardboard \u043e\u0447\u0438\u043b\u0430, \u0437\u0430 \u0434\u0430 \u0432\u0438\u0434\u0438\u0442\u0435 \u0442\u043e\u0432\u0430 \u0441\u044a\u0434\u044a\u0440\u0436\u0430\u043d\u0438\u0435 \u0432\u044a\u0432 VR.", "refresh-downloaded":"\u041e\u0431\u043d\u043e\u0432\u044f\u0432\u0430\u043d\u0435","use-default-cardboard":"\u0418\u0437\u043f\u043e\u043b\u0437\u0432\u0430\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e \u043f\u043e\u0434\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u043d\u0435","enable-audio-prompt":"\u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0430\u043d\u0435 \u043d\u0430 \u0430\u0443\u0434\u0438\u043e?"},"fi-fi":{mute:"Poista \u00e4\u00e4ni k\u00e4yt\u00f6st\u00e4","cardboard-v1":"Mik\u00e4li et ole varma, mit\u00e4 Cardboard-versiota k\u00e4yt\u00e4t, valitse oletusarvoinen hotspot-hallinta. T\u00e4m\u00e4n j\u00e4lkeen katsomalla hotspotia, toiminto k\u00e4ynnistyy.", "download-tour":"Lataa t\u00e4m\u00e4 sis\u00e4lt\u00f6 offline-toistoa varten","change-to-drag-and-release":"Muuta ohjaustilaa vet\u00e4m\u00e4ll\u00e4 ja vapauttamalla",accept:"Hyv\u00e4ksy",download:"Lataa","storage-not-provided-bookmark":"Tallennus ep\u00e4onnistui. Kokeile lis\u00e4t\u00e4 t\u00e4m\u00e4 verkkosivu kirjanmerkkeihin ja suorita lataus uudelleen.","dont-display-again":"\u00c4l\u00e4 n\u00e4yt\u00e4 t\u00e4t\u00e4 ilmoitusta uudelleen","web-server-required":"T\u00e4t\u00e4 sis\u00e4lt\u00f6\u00e4 ei voi toistaa paikalliselta asemalta. Lataa sis\u00e4lt\u00f6 internet-palvelimelle ja yrit\u00e4 uudelleen.\nVoit my\u00f6s vet\u00e4\u00e4 htm-tiedoston (tai koko kansion) TourViewer-sovelluskuvakkeen p\u00e4\u00e4lle.", cancel:"Sulje","change-to-click-and-move":"Muuta ohjaustilaa klikkaamalla ja siirt\u00e4m\u00e4ll\u00e4",yes:"Kyll\u00e4","delete-downloaded":"Poista","use-safari-for-vr":"Suosittelemme Safari-selainta t\u00e4m\u00e4n sis\u00e4ll\u00f6n katseluun VR-tilassa.","exit-fullscreen":"Sulje koko n\u00e4yt\u00f6n n\u00e4kym\u00e4",no:"Ei","download-failed":"Lataus ep\u00e4onnistui","giroscope-disabled-http":"K\u00e4yt\u00e4t t\u00e4t\u00e4 verkkosivua http:n kautta, joten laitteesi liiketunnistimet sek\u00e4 VR-tila on poistettu k\u00e4yt\u00f6st\u00e4. Ota ne k\u00e4ytt\u00f6\u00f6n siirtym\u00e4ll\u00e4 sivulle https:n kautta.", "cookies-notice":"T\u00e4m\u00e4 verkkosivu k\u00e4ytt\u00e4\u00e4 ev\u00e4steit\u00e4 k\u00e4ytt\u00f6tilastojen ker\u00e4\u00e4miseen. Lis\u00e4tietoja ev\u00e4stek\u00e4yt\u00e4nn\u00f6st\u00e4.","use-cardboard":"K\u00e4yt\u00e4 Cardboardia","launch-default-browser":"K\u00e4ynnist\u00e4 oletusselaimessa","rotate-device":"K\u00e4\u00e4nn\u00e4 laitettasi","exit-vr":"Poistu VR-tilasta",reject:"Hylk\u00e4\u00e4","disable-measure":"Lopeta mittaaminen",downloading:"Ladataan","cardboard-v2":"Mik\u00e4li sinulla on Cardboard v2 -virtuaalilasit, joissa on painike, voit katsoa hotspotia ja aktivoida sen painamalla painiketta.", "enable-video-audio-prompt":"Otetaanko \u00e4\u00e4ni ja video k\u00e4ytt\u00f6\u00f6n?","storage-not-provided-launch-from-desktop":"Uudelleenk\u00e4ynnist\u00e4 t\u00e4m\u00e4 sis\u00e4lt\u00f6 ty\u00f6p\u00f6yd\u00e4n kuvakkeesta aloittaaksesi lataamisen.",downloaded:"T\u00e4m\u00e4 sis\u00e4lt\u00f6 on ladattu offline-toistoa varten","samsung-internet-vr-app-info":"Mik\u00e4li sinulla on t\u00e4m\u00e4n laitteen kanssa yhteensopivat Gear VR -virtuaalilasit ja olet asentanut Samsung Internet for VR:n, voit k\u00e4ytt\u00e4\u00e4 virtuaalilaseja t\u00e4m\u00e4n sis\u00e4ll\u00f6n katseluun VR-tilassa. Sinun on lis\u00e4ksi m\u00e4\u00e4ritett\u00e4v\u00e4 Samsung Internet oletusselaimeksi.", "samsung-internet-vr-info":"Mik\u00e4li sinulla on t\u00e4m\u00e4n laitteen kanssa yhteensopivat Gear VR -virtuaalilasit ja olet asentanut Samsung Internet for VR:n, voit k\u00e4ytt\u00e4\u00e4 virtuaalilaseja t\u00e4m\u00e4n sis\u00e4ll\u00f6n katseluun VR-tilassa. Aseta \u00e4lypuhelin virtuaalilaseihin aloittaaksesi.","enable-video-prompt":"Otetaanko video k\u00e4ytt\u00f6\u00f6n?","giroscope-disabled-safari-request-permission":["Laitteesi liiketunnistimen k\u00e4ytt\u00f6oikeus ja VR-tila on poistettu k\u00e4yt\u00f6st\u00e4 t\u00e4ll\u00e4 sivustolla.", "N\u00e4hd\u00e4ksesi t\u00e4m\u00e4n verkkosivun oikein, valitse jatka ja hyv\u00e4ksy lupapyynt\u00f6 pyydett\u00e4ess\u00e4."],"storage-not-provided-launch-from-homescreen":"Uudelleenk\u00e4ynnist\u00e4 t\u00e4m\u00e4 sis\u00e4lt\u00f6 kotin\u00e4yt\u00f6n kuvakkeesta aloittaaksesi lataamisen","enter-fullscreen":"Avaa koko n\u00e4yt\u00f6n n\u00e4kym\u00e4","use-cardboard-v2":"K\u00e4yt\u00e4 Cardboard v2:sta",unmute:"Ota \u00e4\u00e4ni k\u00e4ytt\u00f6\u00f6n","enter-vr":"Siirry VR-tilaan","enable-measure":"Aloita mittaaminen", "use-cardboard-info":"Voit k\u00e4ytt\u00e4\u00e4 mit\u00e4 tahansa yhteensopivia Google Cardboard -virtuaalilaseja katsellaksesi t\u00e4t\u00e4 sis\u00e4lt\u00f6\u00e4 VR-tilassa.","refresh-downloaded":"P\u00e4ivit\u00e4","use-default-cardboard":"K\u00e4yt\u00e4 oletuksena","enable-audio-prompt":"Otetaanko \u00e4\u00e4ni k\u00e4ytt\u00f6\u00f6n?"},"sk-sk":{mute:"St\u00ed\u0161i\u0165","cardboard-v1":"Ak ste si nie ist\u00ed, ktor\u00fa verziu Cardboardu pou\u017e\u00edvate, vyberte si predvolen\u00e9 ovl\u00e1danie hotspotu. Potom sa jednoducho pozriete na hotspot a po\u010dkajte, k\u00fdm sa akcia nespust\u00ed.", "download-tour":"Stiahnu\u0165 prehliadku na hranie v offline re\u017eime","change-to-drag-and-release":"Zmeni\u0165 re\u017eim ovl\u00e1dania na Presun\u00fa\u0165 a Uvo\u013eni\u0165",accept:"s\u00fahlasi\u0165",cancel:"Zru\u0161i\u0165","storage-not-provided-bookmark":"Trval\u00e9 \u00falo\u017eisko odmietnut\u00e9. Sk\u00faste si t\u00fato webov\u00fa str\u00e1nku ulo\u017ei\u0165 a na\u010d\u00edta\u0165 ju znova.","dont-display-again":"Tieto inform\u00e1cie u\u017e nezobrazova\u0165","web-server-required":"T\u00e1to virtu\u00e1lna prehliadka sa ned\u00e1 prehra\u0165 z lok\u00e1lneho disku. Nahrajte ju na internet a sk\u00faste to znova.\nAk chcete, potiahnite s\u00fabor htm (alebo cel\u00fd prie\u010dinok prehliadky) na ikonu aplik\u00e1cie TourViewer.", download:"Stiahnu\u0165","change-to-click-and-move":"Zmeni\u0165 re\u017eim ovl\u00e1dania na Klikn\u00fa\u0165 a Presun\u00fa\u0165",yes:"\u00e1no","delete-downloaded":"Zmaza\u0165","use-safari-for-vr":"Odpor\u00fa\u010dame pou\u017e\u00edva\u0165 Safari prehliada\u010d pre t\u00fato prehliadku v re\u017eime VR","exit-fullscreen":"Ukon\u010di\u0165 cel\u00fa obrazovku",no:"nie","download-failed":"S\u0165ahovanie zlyhalo","giroscope-disabled-http":"Na t\u00fato webov\u00fa str\u00e1nku pristupujete cez http protokol, preto pr\u00edstup k pohybu a orient\u00e1cii v\u00e1\u0161ho zariadenia a re\u017eim VR s\u00fa deaktivovan\u00e9. Ak ich chcete povoli\u0165, nav\u0161t\u00edvte str\u00e1nku cez https.", "cookies-notice":"T\u00e1to webov\u00e1 str\u00e1nka pou\u017e\u00edva s\u00fabory cookie na zhroma\u017e\u010fovanie \u0161tatist\u00edk pou\u017e\u00edvania. \u010eal\u0161ie inform\u00e1cie n\u00e1jdete v pravidl\u00e1ch pou\u017e\u00edvania s\u00faborov cookie .","use-cardboard":"Pou\u017eite Cardboard okuliare.","launch-default-browser":"Spusti\u0165 v predvolenom prehliada\u010di","rotate-device":"Oto\u010dte svoje zariadenie","exit-vr":"Ukon\u010denie VR","storage-not-provided-launch-from-desktop":"Znovu na\u010d\u00edtajte prehliadku pomocou desktop ikony pre jej stiahnite.", "disable-measure":"Ukon\u010di\u0165 meranie",downloading:"S\u0165ahovanie","cardboard-v2":"Ak m\u00e1te n\u00e1hlavn\u00fa s\u00fapravu Cardboard v2, ktor\u00e1 je dod\u00e1van\u00e1 s tla\u010didlom, m\u00f4\u017eete sa pozrie\u0165 na hotspot a stla\u010den\u00edm tla\u010didla spusti\u0165 akciu.","enable-video-audio-prompt":"Povoli\u0165 video a zvuk?",reject:"Odmietnu\u0165",downloaded:"T\u00e1to prehliadka je stiahnut\u00e1 na hranie v offline re\u017eime.","samsung-internet-vr-app-info":"Ak m\u00e1te Gear VR sl\u00fachadl\u00e1\u00e1 kompatibiln\u00e9 s t\u00fdmto zariaden\u00edm a m\u00e1te nain\u0161talovan\u00fd program Samsung Internet pre VR, m\u00f4\u017eete ho tie\u017e pou\u017ei\u0165 na prezeranie tohto obsahu vo VR. Mus\u00edte si nastavi\u0165 Samsung Internet ako predvolen\u00fd prehliada\u010d.", "samsung-internet-vr-info":"Ak m\u00e1te Gear VR sl\u00fachadl\u00e1 kompatibiln\u00e9 s t\u00fdmto zariaden\u00edm a m\u00e1te nain\u0161talovan\u00fd program Samsung Internet pre VR, m\u00f4\u017eete ho tie\u017e pou\u017ei\u0165 na prezeranie tohto obsahu vo VR. Sta\u010d\u00ed teraz vlo\u017ei\u0165 mobiln\u00fd telef\u00f3n do n\u00e1hlavnej s\u00fapravy.","enable-video-prompt":"Povoli\u0165 video?","giroscope-disabled-safari-request-permission":["Pre t\u00fato str\u00e1nku s\u00fa pr\u00edstup k pohybu a orient\u00e1cii v\u00e1\u0161ho zariadenia a re\u017eim VR deaktivovan\u00e9.", "Aby ste korektne videli t\u00fato webov\u00fa str\u00e1nku, pros\u00edm kliknite pokra\u010dova\u0165 a akceptujte po\u017eadovan\u00e9 povolenie."],"storage-not-provided-launch-from-homescreen":"Znovu na\u010d\u00edtajte prehliadku pomocou ikony na ploche pre jej stiahnite.","enter-fullscreen":"Prejs\u0165 na cel\u00fa obrazovku","use-cardboard-v2":"Pou\u017eite Cardboard v2",unmute:"Zapn\u00fa\u0165 zvuk","enter-vr":"Vlo\u017ei\u0165 VR obsah","enable-measure":"Za\u010da\u0165 meranie","use-cardboard-info":"Na zobrazenie tohto obsahu vo VR m\u00f4\u017eete pou\u017ei\u0165 \u013eubovo\u013en\u00fa kompatibiln\u00fa n\u00e1hlavn\u00fa s\u00fapravu Google Cardboard.", "refresh-downloaded":"Obnovi\u0165","use-default-cardboard":"Pou\u017ei\u0165 predvolen\u00e9","enable-audio-prompt":"Povoli\u0165 zvuk?"},"uk-ua":{mute:"\u0412\u0438\u043c\u043a\u043d\u0443\u0442\u0438 \u0437\u0432\u0443\u043a","cardboard-v1":"\u042f\u043a\u0449\u043e \u0432\u0438 \u043d\u0435 \u0432\u043f\u0435\u0432\u043d\u0435\u043d\u0456, \u044f\u043a\u0443 \u0432\u0435\u0440\u0441\u0456\u044e Cardboard \u0432\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u0435, \u0432\u0438\u0431\u0435\u0440\u0456\u0442\u044c \u0442\u043e\u0447\u043a\u0443 \u0434\u043e\u0441\u0442\u0443\u043f\u0443 \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c. \u041f\u043e\u0442\u0456\u043c \u0432\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u0438\u0432\u0438\u0442\u0435\u0441\u044f \u043d\u0430 \u0442\u043e\u0447\u043a\u0443 \u0442\u0430 \u043f\u043e\u0447\u0435\u043a\u0430\u0439\u0442\u0435, \u0434\u043e\u043a\u0438 \u0434\u0456\u044f \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\u0441\u044f.", "download-tour":"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0442\u0435 \u0442\u0443\u0440 \u0434\u043b\u044f \u0432\u0456\u0434\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0432 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u043c\u0443 \u0440\u0435\u0436\u0438\u043c\u0456","change-to-drag-and-release":"\u0417\u043c\u0456\u043d\u0456\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u043d\u0430 \u041f\u0435\u0440\u0435\u0442\u044f\u0433\u043d\u0456\u0442\u044c \u0456 \u0432\u0456\u0434\u043f\u0443\u0441\u0442\u0456\u0442\u044c", accept:"\u041f\u0440\u0438\u0439\u043c\u0456\u0442\u044c",cancel:"\u0412\u0456\u0434\u043c\u0456\u043d\u0438\u0442\u0438","storage-not-provided-bookmark":"\u041f\u043e\u0441\u0442\u0456\u0439\u043d\u0435 \u0437\u0431\u0435\u0440\u0456\u0433\u0430\u043d\u043d\u044f \u0437\u0430\u0431\u043e\u0440\u043e\u043d\u0435\u043d\u043e. \u0421\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0434\u043e\u0434\u0430\u0442\u0438 \u0446\u044e \u0432\u0435\u0431-\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443 \u0432 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438 \u0442\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438 \u0457\u0457.", "dont-display-again":"\u041d\u0435 \u043f\u043e\u043a\u0430\u0437\u0443\u0439\u0442\u0435 \u0446\u044e \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u044e \u0437\u043d\u043e\u0432\u0443","web-server-required":"\u0426\u0435\u0439 \u0432\u0456\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u0438\u0439 \u0442\u0443\u0440 \u043d\u0435 \u043c\u043e\u0436\u043d\u0430 \u0432\u0456\u0434\u0442\u0432\u043e\u0440\u0438\u0442\u0438 \u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430. \u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0442\u0435 \u0439\u043e\u0433\u043e \u0432 \u0406\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0456 \u043f\u043e\u0432\u0442\u043e\u0440\u0456\u0442\u044c \u0441\u043f\u0440\u043e\u0431\u0443.\n\u042f\u043a\u0449\u043e \u0431\u0430\u0436\u0430\u0454\u0442\u0435, \u043f\u0435\u0440\u0435\u0442\u044f\u0433\u043d\u0456\u0442\u044c \u0444\u0430\u0439\u043b htm (\u0430\u0431\u043e \u0432\u0441\u044e \u043f\u0430\u043f\u043a\u0443 \u0442\u0443\u0440\u0443) \u043d\u0430 \u043f\u0456\u043a\u0442\u043e\u0433\u0440\u0430\u043c\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u0438 TourViewer.", download:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438","change-to-click-and-move":"\u0417\u043c\u0456\u043d\u0456\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u043d\u0430 \u041a\u043b\u0430\u0446\u043d\u0456\u0442\u044c \u0456 \u043f\u0435\u0440\u0435\u043c\u0456\u0441\u0442\u0456\u0442\u044c",yes:"\u0442\u0430\u043a","delete-downloaded":"\u0412\u0438\u0434\u0430\u043b\u0438\u0442\u0438","use-safari-for-vr":"\u041c\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0454\u043c\u043e Safari \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443 \u0446\u044c\u043e\u0433\u043e \u0442\u0443\u0440\u0443 \u0432 \u0440\u0435\u0436\u0438\u043c\u0456 VR", "exit-fullscreen":"\u0412\u0438\u0439\u0442\u0438 \u0437 \u043f\u043e\u0432\u043d\u043e\u0435\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0443",no:"\u043d\u0456","download-failed":"\u041d\u0435 \u0432\u0434\u0430\u043b\u043e\u0441\u044f \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438","giroscope-disabled-http":"\u0412\u0438 \u043e\u0442\u0440\u0438\u043c\u0443\u0454\u0442\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u0446\u0456\u0454\u0457 \u0432\u0435\u0431-\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 http, \u0442\u043e\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u0440\u0443\u0445\u0443 \u0442\u0430 \u043e\u0440\u0456\u0454\u043d\u0442\u0430\u0446\u0456\u0457 \u0432\u0430\u0448\u043e\u0433\u043e \u043f\u0440\u0438\u0441\u0442\u0440\u043e\u044e \u0442\u0430 \u0440\u0435\u0436\u0438\u043c VR \u0432\u0438\u043c\u043a\u043d\u0435\u043d\u043e. \u0429\u043e\u0431 \u0443\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u0457\u0445, \u043f\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044c \u0434\u043e \u043d\u0438\u0445 \u0447\u0435\u0440\u0435\u0437 https.", "cookies-notice":"\u0426\u044f \u0432\u0435\u0431-\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454 \u0444\u0430\u0439\u043b\u0438 cookie \u0434\u043b\u044f \u0437\u0431\u043e\u0440\u0443 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f. \u0414\u043b\u044f \u043e\u0442\u0440\u0438\u043c\u0430\u043d\u043d\u044f \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u043e\u0457 \u0456\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0456\u0457 \u0432\u0456\u0434\u0432\u0456\u0434\u0430\u0439\u0442\u0435 \u041f\u043e\u043b\u0456\u0442\u0438\u043a\u0443 \u0449\u043e\u0434\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u0430\u043d\u043d\u044f \u0444\u0430\u0439\u043b\u0456\u0432 cookie.", "use-cardboard":"\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 Cardboard","launch-default-browser":"\u0417\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0456 \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","rotate-device":"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u043f\u043e\u0432\u0435\u0440\u043d\u0456\u0442\u044c \u0441\u0432\u0456\u0439 \u043f\u0440\u0438\u0441\u0442\u0440\u0456\u0439", "exit-vr":"\u0412\u0438\u0439\u0434\u0456\u0442\u044c \u0456\u0437 VR","storage-not-provided-launch-from-desktop":"\u0429\u043e\u0431 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438, \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u043e\u0433\u043b\u044f\u0434 \u0456\u0437 \u0437\u043d\u0430\u0447\u043a\u0430 \u043d\u0430 \u0440\u043e\u0431\u043e\u0447\u043e\u043c\u0443 \u0441\u0442\u043e\u043b\u0456.","disable-measure":"\u041f\u0440\u0438\u043f\u0438\u043d\u0456\u0442\u044c \u0432\u0438\u043c\u0456\u0440\u044e\u0432\u0430\u043d\u043d\u044f", downloading:"\u0417\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f","cardboard-v2":"\u042f\u043a\u0449\u043e \u0443 \u0432\u0430\u0441 \u0454 \u0433\u0430\u0440\u043d\u0456\u0442\u0443\u0440\u0430 Cardboard v2, \u044f\u043a\u0430 \u043f\u043e\u0441\u0442\u0430\u0447\u0430\u0454\u0442\u044c\u0441\u044f \u0437 \u043a\u043d\u043e\u043f\u043a\u043e\u044e, \u0432\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0434\u0438\u0432\u0438\u0442\u0438\u0441\u044f \u043d\u0430 \u0442\u043e\u0447\u043a\u0443 \u0442\u0430 \u043d\u0430\u0442\u0438\u0441\u043d\u0443\u0442\u0438 \u043a\u043d\u043e\u043f\u043a\u0443, \u0449\u043e\u0431 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0438 \u0457\u0457.", "enable-video-audio-prompt":"\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u0432\u0456\u0434\u0435\u043e \u0442\u0430 \u0430\u0443\u0434\u0456\u043e?",reject:"\u0412\u0456\u0434\u0445\u0438\u043b\u0438\u0442\u0438",downloaded:"\u0426\u0435\u0439 \u0442\u0443\u0440 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043e \u0434\u043b\u044f \u0432\u0456\u0434\u0442\u0432\u043e\u0440\u0435\u043d\u043d\u044f \u0432 \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u043c\u0443 \u0440\u0435\u0436\u0438\u043c\u0456.", "samsung-internet-vr-app-info":"\u042f\u043a\u0449\u043e \u0443 \u0432\u0430\u0441 \u0454 \u0433\u0430\u0440\u043d\u0456\u0442\u0443\u0440\u0430 Gear VR, \u0441\u0443\u043c\u0456\u0441\u043d\u0430 \u0437 \u0446\u0438\u043c \u043f\u0440\u0438\u0441\u0442\u0440\u043e\u0454\u043c, \u0456 \u0432\u0438 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 Samsung Internet \u0434\u043b\u044f VR, \u0432\u0438 \u0442\u0430\u043a\u043e\u0436 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0457\u0457 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443 \u0446\u044c\u043e\u0433\u043e \u0432\u043c\u0456\u0441\u0442\u0443 \u0443 VR, \u0432\u0430\u043c \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0437\u0440\u043e\u0431\u0438\u0442\u0438 Samsung Internet \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c.", "samsung-internet-vr-info":"\u042f\u043a\u0449\u043e \u0443 \u0432\u0430\u0441 \u0454 \u0433\u0430\u0440\u043d\u0456\u0442\u0443\u0440\u0430 Gear VR, \u0441\u0443\u043c\u0456\u0441\u043d\u0430 \u0437 \u0446\u0438\u043c \u043f\u0440\u0438\u0441\u0442\u0440\u043e\u0454\u043c, \u0456 \u0432\u0438 \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 Samsung Internet \u0434\u043b\u044f \u0432\u0456\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0457 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0456, \u0432\u0438 \u0442\u0430\u043a\u043e\u0436 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0457\u0457 \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443 \u0446\u044c\u043e\u0433\u043e \u0432\u043c\u0456\u0441\u0442\u0443 \u0443 VR, \u0432\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0440\u0430\u0437 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u043f\u0456\u0434\u2019\u0454\u0434\u043d\u0430\u0442\u0438 \u043c\u043e\u0431\u0456\u043b\u044c\u043d\u0438\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u0434\u043e \u0433\u0430\u0440\u043d\u0456\u0442\u0443\u0440\u0438.", "enable-video-prompt":"\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u0432\u0456\u0434\u0435\u043e?","giroscope-disabled-safari-request-permission":["\u0414\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u0440\u0443\u0445\u0443 \u0442\u0430 \u043e\u0440\u0456\u0454\u043d\u0442\u0430\u0446\u0456\u0457 \u0432\u0430\u0448\u043e\u0433\u043e \u043f\u0440\u0438\u0441\u0442\u0440\u043e\u044e, \u0430 \u0442\u0430\u043a\u043e\u0436 \u0440\u0435\u0436\u0438\u043c VR \u0432\u0438\u043c\u043a\u043d\u0435\u043d\u043e \u0434\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0443.", "\u0429\u043e\u0431 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u043d\u0443\u0442\u0438 \u0446\u044e \u0432\u0435\u0431-\u0441\u0442\u043e\u0440\u0456\u043d\u043a\u0443, \u043d\u0430\u0442\u0438\u0441\u043d\u0456\u0442\u044c \u00ab\u041f\u0440\u043e\u0434\u043e\u0432\u0436\u0438\u0442\u0438\u00bb \u0442\u0430 \u043f\u0440\u0438\u0439\u043c\u0456\u0442\u044c \u0437\u0430\u043f\u0438\u0442 \u043d\u0430 \u0434\u043e\u0437\u0432\u0456\u043b, \u044f\u043a\u0449\u043e \u0437\u2019\u044f\u0432\u0438\u0442\u044c\u0441\u044f \u0437\u0430\u043f\u0438\u0442."], "storage-not-provided-launch-from-homescreen":"\u0411\u0443\u0434\u044c \u043b\u0430\u0441\u043a\u0430, \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u0442\u0443\u0440 \u0437\u0456 \u0437\u043d\u0430\u0447\u043a\u0430 \u0433\u043e\u043b\u043e\u0432\u043d\u043e\u0433\u043e \u0435\u043a\u0440\u0430\u043d\u0430, \u0449\u043e\u0431 \u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0438\u0442\u0438.","enter-fullscreen":"\u041f\u0435\u0440\u0435\u0439\u0434\u0456\u0442\u044c \u0443 \u043f\u043e\u0432\u043d\u043e\u0435\u043a\u0440\u0430\u043d\u043d\u0438\u0439 \u0440\u0435\u0436\u0438\u043c", "use-cardboard-v2":"\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 Cardboard v2",unmute:"\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u0437\u0432\u0443\u043a","enter-vr":"\u041e\u0431\u0435\u0440\u0456\u0442\u044c \u0432\u043c\u0456\u0441\u0442 VR","enable-measure":"\u041f\u043e\u0447\u043d\u0456\u0442\u044c \u0432\u0438\u043c\u0456\u0440\u044e\u0432\u0430\u0442\u0438","use-cardboard-info":"\u0412\u0438 \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0431\u0443\u0434\u044c-\u044f\u043a\u0443 \u0441\u0443\u043c\u0456\u0441\u043d\u0443 \u0433\u0430\u0440\u043d\u0456\u0442\u0443\u0440\u0443 Google Cardboard \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0433\u043b\u044f\u0434\u0443 \u0446\u044c\u043e\u0433\u043e \u0432\u043c\u0456\u0441\u0442\u0443 \u0443 VR.", "refresh-downloaded":"\u041e\u043d\u043e\u0432\u0438\u0442\u0438","use-default-cardboard":"\u0412\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 \u0437\u0430 \u0437\u0430\u043c\u043e\u0432\u0447\u0443\u0432\u0430\u043d\u043d\u044f\u043c","enable-audio-prompt":"\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 \u0430\u0443\u0434\u0456\u043e?"},"en-us":{mute:"Mute","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.", "download-tour":"Download Tour for offline playing","change-to-drag-and-release":"Change control mode to Drag and Release",accept:"Accept",cancel:"Cancel","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.", download:"Download","change-to-click-and-move":"Change control mode to Click and Move",yes:"yes","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Exit fullscreen",no:"no","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.","cookies-notice":"This web page uses cookies to collect usage statistics. For more information, please visit the Cookie Policy.", "use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please rotate your device","exit-vr":"Exit VR","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"Enable video and audio?", reject:"Reject",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"Enable video?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Enter fullscreen","use-cardboard-v2":"Use Cardboard v2",unmute:"Unmute","enter-vr":"Enter VR content", "enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"Enable audio?"},"sv-se":{mute:"Inaktivera ljud","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing", "change-to-drag-and-release":"\u00c4ndra kontrolll\u00e4ge f\u00f6r att dra och sl\u00e4ppa",accept:"Acceptera",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.", cancel:"Cancel","change-to-click-and-move":"\u00c4ndra kontrolll\u00e4ge f\u00f6r att klicka och flytta",yes:"ja","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Avsluta fullsk\u00e4rmen",no:"Nej","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.","cookies-notice":"Denna webbsida anv\u00e4nder cookies f\u00f6r att samla in anv\u00e4ndningsstatistik. F\u00f6r mer information, bes\u00f6k Cookie Policy.", "use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please rotate your device","exit-vr":"Exit VR",reject:"Avvisa","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"Aktivera ljud och video?","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.", downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"Aktivera video?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Ange fullsk\u00e4rm","use-cardboard-v2":"Use Cardboard v2",unmute:"Aktivera ljud","enter-vr":"Enter VR content", "enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"Aktivera ljud?"},"id-id":{mute:"Mute","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing", "change-to-drag-and-release":"Change control mode to Drag and Release",accept:"Menerima",cancel:"Cancel","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",download:"Download", "change-to-click-and-move":"Change control mode to Click and Move",yes:"yes","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Exit fullscreen",no:"no","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.","cookies-notice":"Halaman web ini menggunakan cookie untuk mengumpulkan statistik penggunaan. Untuk informasi lebih lanjut, silakan kunjungi Kebijakan Cookie.", "use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please rotate your device","exit-vr":"Exit VR","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"Enable video and audio?", reject:"Menolak",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"Enable video?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Enter fullscreen","use-cardboard-v2":"Use Cardboard v2",unmute:"Unmute","enter-vr":"Enter VR content", "enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"Enable audio?"},"pt-br":{mute:"Desativar som","cardboard-v1":"Se voc\u00ea n\u00e3o tiver certeza de qual vers\u00e3o do Cardboard est\u00e1 usando, selecione o controle de ponto de acesso padr\u00e3o. Voc\u00ea simplesmente olha para um ponto de acesso e espera at\u00e9 que a a\u00e7\u00e3o seja acionada.", "download-tour":"Download do Tour para reprodu\u00e7\u00e3o offline","change-to-drag-and-release":"Alterar controle para arrastar e soltar",accept:"Aceitar",cancel:"Cancelar","storage-not-provided-bookmark":"Armazenamento persistente negado. Tente marcar esta p\u00e1gina da Web e recarreg\u00e1-la.","dont-display-again":"N\u00e3o exibir essas informa\u00e7\u00f5es novamente","web-server-required":"Este passeio virtual n\u00e3o pode ser reproduzido a partir de uma unidade local. Envie-o para a Internet e tente novamente.\nSe preferir, arraste o arquivo htm (ou toda a pasta do tour) para o \u00edcone do aplicativo TourViewer.", download:"Download","change-to-click-and-move":"Alterar controle para clicar e mover",yes:"sim","delete-downloaded":"Apagar","use-safari-for-vr":"Recomendamos o Safari para ver este passeio no modo VR","exit-fullscreen":"Sair tela cheia",no:"n\u00e3o","download-failed":"Falha no Download","giroscope-disabled-http":"Voc\u00ea est\u00e1 acessando esta p\u00e1gina da Web por meio do http, para que o acesso \u00e0 orienta\u00e7\u00e3o e movimento do dispositivo e o modo VR sejam desativados, acesse-o atrav\u00e9s de https para ativ\u00e1-los.", "cookies-notice":"Esta p\u00e1gina da web usa cookies para coletar estat\u00edsticas de uso. Para obter mais informa\u00e7\u00f5es, visite a Pol\u00edtica de cookies.","use-cardboard":"Use Cardboard","launch-default-browser":"Iniciar no navegador padr\u00e3o","rotate-device":"Por favor, gire seu dispositivo","exit-vr":"Sair do VR","storage-not-provided-launch-from-desktop":"Por favor, reinicie o tour no \u00edcone da \u00e1rea de trabalho para fazer o download.","disable-measure":"Stop measuring", downloading:"Baixando","cardboard-v2":"Se voc\u00ea tiver um fone de ouvido Cardboard v2, que vem com um bot\u00e3o, poder\u00e1 observar um ponto de acesso e pressionar o bot\u00e3o para acionar sua a\u00e7\u00e3o.","enable-video-audio-prompt":"Ativar \u00e1udio e v\u00eddeo?",reject:"Rejeitar",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"Se voc\u00ea possui um fone de ouvido Gear VR compat\u00edvel com este dispositivo e instalou o Samsung Internet for VR, tamb\u00e9m pode us\u00e1-lo para visualizar esse conte\u00fado em VR. Voc\u00ea precisa tornar o Samsung Internet o seu padr\u00e3o. browser.", "samsung-internet-vr-info":"Se voc\u00ea possui um fone de ouvido Gear VR compat\u00edvel com este dispositivo e instalou o Samsung Internet for VR, tamb\u00e9m pode us\u00e1-lo para visualizar esse conte\u00fado em VR. Basta colocar o celular no fone de ouvido agora.","enable-video-prompt":"Ativar v\u00eddeo?","giroscope-disabled-safari-request-permission":["O acesso a movimento e orienta\u00e7\u00e3o do dispositivo e o modo VR est\u00e3o desativados para este site.","Para ver corretamente esta p\u00e1gina da web, clique em continuar e aceite a solicita\u00e7\u00e3o de permiss\u00e3o, se solicitado."], "storage-not-provided-launch-from-homescreen":"Reinicie o tour no \u00edcone da tela inicial para fazer o download.","enter-fullscreen":"Entrar tela cheia","use-cardboard-v2":"Use Cardboard v2",unmute:"Ativar som","enter-vr":"Inserir conte\u00fado VR","enable-measure":"Start measuring","use-cardboard-info":"Voc\u00ea pode usar qualquer fone de ouvido compat\u00edvel do Google Cardboard para visualizar este conte\u00fado em VR","refresh-downloaded":"Atualizar","use-default-cardboard":"Use o padr\u00e3o", "enable-audio-prompt":"Ativar \u00e1udio?"},"it-it":{mute:"Disabilita audio","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing","change-to-drag-and-release":"Cambia la modalit\u00e0 di controllo per trascinare e rilasciare",accept:"Accettare",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.", "dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",cancel:"Cancel","change-to-click-and-move":"Cambia la modalit\u00e0 di controllo per fare clic e spostare",yes:"s\u00ec","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode", "exit-fullscreen":"Esci dalla modalit\u00e0 schermo intero",no:"no","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.","cookies-notice":"Questa pagina web utilizza i cookie per raccogliere statistiche sull'utilizzo. Per ulteriori informazioni, visita la Cookie Policy.","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser", "rotate-device":"Please rotate your device","exit-vr":"Exit VR",reject:"Rifiutare","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"Abilita audio e video?","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.",downloaded:"This tour is downloaded for offline playing.", "samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.","enable-video-prompt":"Abilita il video?", "giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Entra a schermo intero","use-cardboard-v2":"Use Cardboard v2",unmute:"Abilita audio","enter-vr":"Enter VR content","enable-measure":"Start measuring", "use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"Abilita l'audio?"},"zh-tw":{mute:"\u975c\u97f3","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"\u4e0b\u8f09\u865b\u64ec\u5c0e\u89bd\uff0c\u4ee5\u9032\u884c\u96e2\u7dda\u64ad\u653e", "change-to-drag-and-release":"\u5c07\u63a7\u5236\u6a21\u5f0f\u66f4\u6539\u70ba\u201c\u62d6\u653e\u6a21\u5f0f\u201c",accept:"\u63a5\u53d7",cancel:"\u53d6\u6d88","storage-not-provided-bookmark":"\u88dd\u7f6e\u5167\u6c38\u4e45\u5b58\u5132\u88ab\u62d2\u7d55\u3002\u8acb\u5617\u8a66\u5c07\u6b64\u7db2\u9801\u65b0\u589e\u70ba\u66f8\u7c64\uff0c\u4e26\u91cd\u65b0\u8f09\u5165\u3002","dont-display-again":"\u4e0d\u518d\u986f\u793a\u672c\u8a0a\u606f","web-server-required":"\u672c\u865b\u64ec\u5c0e\u89bd\u7121\u6cd5\u5728\u672c\u5730\u96fb\u8166\u4e0a\u64ad\u653e\u3002 \u8acb\u5c07\u5176\u4e0a\u50b3\u5230\u7db2\u969b\u7db2\u8def\u4f3a\u670d\u5668\uff0c\u7136\u5f8c\u91cd\u8a66\u3002\n\u5982\u679c\u9700\u8981\u672c\u5730\u9810\u89bd\uff0c\u8acb\u5c07htm\u6a94\u6848\uff08\u6216\u865b\u64ec\u5c0e\u89bd\u7684\u6574\u500b\u8cc7\u6599\u593e\uff09\u62d6\u653e\u5230TourViewer\u61c9\u7528\u7a0b\u793a\u7684\u5716\u793a\u4e0a\u3002", download:"\u4e0b\u8f09","change-to-click-and-move":"\u5c07\u63a7\u5236\u6a21\u5f0f\u66f4\u6539\u70ba\u201c\u9ede\u64ca\u4e26\u79fb\u52d5\u201d",yes:"\u662f","delete-downloaded":"\u522a\u9664","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"\u9000\u51fa\u5168\u87a2\u5e55",no:"\u5426","download-failed":"\u4e0b\u8f09\u5931\u6557","giroscope-disabled-http":"\u60a8\u6b63\u5728\u901a\u904ehttp(\u672a\u52a0\u5bc6)\u700f\u89bd\u672c\u7db2\u9801\uff0c\u56e0\u6b64\u8a2d\u5099\u7684\u904b\u52d5\u548c\u65b9\u5411\u53d6\u7528\u6b0a\u9650\uff0c\u4ee5\u53caVR\u6a21\u5f0f\u5747\u5df2\u7981\u7528\uff0c\u8acb\u53e6\u901a\u904ehttps(\u52a0\u5bc6)\u7db2\u5740\u5c0d\u5176\u9032\u884c\u555f\u7528\u3002", "cookies-notice":"\u8a72\u7db2\u9801\u4f7f\u7528cookie\u4f86\u6536\u96c6\u4f7f\u7528\u60c5\u6cc1\u7d71\u8a08\u4fe1\u606f\u3002 \u6709\u95dc\u66f4\u591a\u4fe1\u606f\uff0c\u8acb\u8a2a\u554f Cookie\u653f\u7b56\u3002","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please rotate your device","exit-vr":"Exit VR","storage-not-provided-launch-from-desktop":"\u8acb\u5f9e\u684c\u9762\u9ede\u64ca\u5716\u793a\uff0c\u91cd\u65b0\u555f\u52d5\u865b\u64ec\u5c0e\u89bd\uff0c\u4ee5\u9032\u884c\u4e0b\u8f09\u3002", "disable-measure":"Stop measuring",downloading:"\u6b63\u5728\u4e0b\u8f09","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"\u5141\u8a31\u5f71\u7247\u53ca\u8072\u97f3\u64ad\u653e?",reject:"\u62d2\u7d55",downloaded:"\u865b\u64ec\u5c0e\u89bd\u5df2\u4e0b\u8f09\uff0c\u53ef\u9032\u884c\u96e2\u7dda\u64ad\u653e\u3002","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.", "samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.","enable-video-prompt":"\u5141\u8a31\u5f71\u7247\u64ad\u653e?","giroscope-disabled-safari-request-permission":["\u8a72\u7db2\u7ad9\u5df2\u7981\u7528\u60a8\u8a2d\u5099\u7684\u904b\u52d5\u548c\u65b9\u5411\u53d6\u7528\u6b0a\u9650\uff0cVR\u6a21\u5f0f\u4e5f\u88ab\u7981\u7528\u3002", "\u8981\u6b63\u78ba\u67e5\u770b\u672c\u7db2\u9801\uff0c\u8acb\u55ae\u64ca\u7e7c\u7e8c\uff0c\u4e26\u5728\u51fa\u73fe\u63d0\u793a\u6642\u63a5\u53d7\u8a31\u53ef\u8acb\u6c42\u3002"],"storage-not-provided-launch-from-homescreen":"\u8acb\u4e3b\u9801\u9762\u87a2\u5e55\u9ede\u64ca\u5716\u793a\uff0c\u91cd\u65b0\u555f\u52d5\u865b\u64ec\u5c0e\u89bd\uff0c\u4ee5\u9032\u884c\u4e0b\u8f09\u3002","enter-fullscreen":"\u9032\u5165\u5168\u87a2\u5e55","use-cardboard-v2":"Use Cardboard v2",unmute:"\u53d6\u6d88\u975c\u97f3", "enter-vr":"Enter VR content","enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"\u91cd\u65b0\u6574\u7406","use-default-cardboard":"Use Default","enable-audio-prompt":"\u5141\u8a31\u8072\u97f3\u64ad\u653e?"},"nb-no":{mute:"Skru av lyd","cardboard-v1":"Hvis du ikke er sikker, hvilken Cardboard versjon du bruker, velger du standard hotspot-kontrollen. Du vil da bare se p\u00e5 et hotspot og vente til handlingen utl\u00f8ses.", "download-tour":"Last ned visningen, s\u00e5 den kan bli sett uten internett","change-to-drag-and-release":"Endre kontrollmodus til Trekk og Slipp",accept:"Aksepterer",cancel:"Avbryt","storage-not-provided-bookmark":"Vedvarende lagring nektet. Pr\u00f8v \u00e5 bokmerke denne nettsiden og laste den inn p\u00e5 nytt.","dont-display-again":"Ikke vis denne informasjonen igjen","web-server-required":"Denne virtuelle visningen kan ikke spilles av lokalt. Vennligst last den opp til internett, og fors\u00f8k igjen.\ndersom du prefererer det, kan du dra htm filen (eller hele mappen som inneholder visningen) over 'TourViewer' appen.", download:"Last ned","change-to-click-and-move":"Endre kontrollmodus til Klikk og Flytt",yes:"Ja","delete-downloaded":"Slett","use-safari-for-vr":"Vi anbefaler Safari for \u00e5 se p\u00e5 venne visningen i VR modus","exit-fullscreen":"G\u00e5 ut av full skjerm",no:"Nei","download-failed":"Nedlastning feilet","giroscope-disabled-http":"Du er koblet til denne nettsiden via http. Dermed er enhetens bevegelses- og orienteringstilgang og VR-modus deaktivert. Koble til via https for \u00e5 aktivere denne.", "cookies-notice":"Denne websiden bruker informasjonskapsler for \u00e5 samle inn bruksstatistikk. For mer informasjon, bes\u00f8k retningslinjer for informasjonskapsler.","use-cardboard":"Bruk Cardboard","launch-default-browser":"\u00c5pne i standard nettleser","rotate-device":"Vennligst roter enheten","exit-vr":"G\u00e5 ut av VR","storage-not-provided-launch-from-desktop":"Start turen p\u00e5 nytt fra skrivebordsikonet for \u00e5 laste ned.","disable-measure":"Stop measuring",downloading:"Laster ned", "cardboard-v2":"Dersom du har Cardboard versjon 2, hvilket kommer med en knapp, kan du kikke p\u00e5 en klikkbar ting i visningen, og bruke knappen for \u00e5 bruke disse tingene, p\u00e5 samme m\u00e5te som p\u00e5 en laptop eller telefon.","enable-video-audio-prompt":"Aktivere video og lyd?",reject:"Avvis",downloaded:"Denne visningen er lastet ned, s\u00e5 den kan bli sett uten internett.","samsung-internet-vr-app-info":"Hvis du har et Gear VR-headset som er kompatibelt med denne enheten og har installert Samsung Internet for VR, kan du ogs\u00e5 bruke det til \u00e5 se dette innholdet i VR, du m\u00e5 ogs\u00e5 gj\u00f8re Samsung Internet til standard nettleser.", "samsung-internet-vr-info":"Hvis du har et Gear VR-headset som er kompatibelt med denne enheten, og du har installert Samsung Internet for VR, kan du ogs\u00e5 bruke det til \u00e5 se dette innholdet i VR, du trenger bare \u00e5 sette mobiltelefonen p\u00e5 headsettet n\u00e5.","enable-video-prompt":"Aktivere video?","giroscope-disabled-safari-request-permission":["Din enhet sin bevegelses- og orienterings tilgang, samt VR modus er deaktivert for denne nettsiden.","For \u00e5 se denne siden korrekt, vennligst klikk p\u00e5 fortsett og godta tillatelsesforesp\u00f8rselen hvis du blir bedt om dette."], "storage-not-provided-launch-from-homescreen":"Start turen p\u00e5 nytt fra startskjermikonet for \u00e5 laste ned.","enter-fullscreen":"G\u00e5 til full skjerm","use-cardboard-v2":"Bruk Cardboard Versjon 2",unmute:"Skru p\u00e5 lyd","enter-vr":"\u00c5pne VR Modus","enable-measure":"Start measuring","use-cardboard-info":"Du kan bruke hvilke some helst Google Cardboard kompatible headsett for \u00e5 se denne visningen i VR.","refresh-downloaded":"Last inn p\u00e5 nytt","use-default-cardboard":"Bruk Standard", "enable-audio-prompt":"Aktivere audio?"},"pt-pt":{mute:"Desativar som","cardboard-v1":"Se voc\u00ea n\u00e3o tiver certeza de qual vers\u00e3o do Cardboard est\u00e1 usando, selecione o controle de ponto de acesso padr\u00e3o. Voc\u00ea simplesmente olha para um ponto de acesso e espera at\u00e9 que a a\u00e7\u00e3o seja acionada.","download-tour":"Download do Tour para reprodu\u00e7\u00e3o offline","change-to-drag-and-release":"Alterar controle para arrastar e soltar",accept:"Aceitar",cancel:"Cancelar", "storage-not-provided-bookmark":"Armazenamento persistente negado. Tente marcar esta p\u00e1gina da Web e recarreg\u00e1-la.","dont-display-again":"N\u00e3o exibir essas informa\u00e7\u00f5es novamente","web-server-required":"Este passeio virtual n\u00e3o pode ser reproduzido a partir de uma unidade local. Envie-o para a Internet e tente novamente.\nSe preferir, arraste o arquivo htm (ou toda a pasta do tour) para o \u00edcone do aplicativo TourViewer.",download:"Download","change-to-click-and-move":"Alterar controle para clicar e mover", yes:"sim","delete-downloaded":"Apagar","use-safari-for-vr":"Recomendamos o Safari para ver este passeio no modo VR","exit-fullscreen":"Sair tela cheia",no:"n\u00e3o","download-failed":"Falha no Download","giroscope-disabled-http":"Voc\u00ea est\u00e1 acessando esta p\u00e1gina da Web por meio do http, para que o acesso \u00e0 orienta\u00e7\u00e3o e movimento do dispositivo e o modo VR sejam desativados, acesse-o atrav\u00e9s de https para ativ\u00e1-los.","cookies-notice":"Esta p\u00e1gina da web usa cookies para coletar estat\u00edsticas de uso. Para obter mais informa\u00e7\u00f5es, visite a Pol\u00edtica de cookies.", "use-cardboard":"Use Cardboard","launch-default-browser":"Iniciar no navegador padr\u00e3o","rotate-device":"Por favor, gire seu dispositivo","exit-vr":"Sair do VR","storage-not-provided-launch-from-desktop":"Por favor, reinicie o tour no \u00edcone da \u00e1rea de trabalho para fazer o download.","disable-measure":"Stop measuring",downloading:"Baixando","cardboard-v2":"Se voc\u00ea tiver um fone de ouvido Cardboard v2, que vem com um bot\u00e3o, poder\u00e1 observar um ponto de acesso e pressionar o bot\u00e3o para acionar sua a\u00e7\u00e3o.", "enable-video-audio-prompt":"Ativar \u00e1udio e v\u00eddeo?",reject:"Rejeitar",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"Se voc\u00ea possui um fone de ouvido Gear VR compat\u00edvel com este dispositivo e instalou o Samsung Internet for VR, tamb\u00e9m pode us\u00e1-lo para visualizar esse conte\u00fado em VR. Voc\u00ea precisa tornar o Samsung Internet o seu padr\u00e3o. browser.","samsung-internet-vr-info":"Se voc\u00ea possui um fone de ouvido Gear VR compat\u00edvel com este dispositivo e instalou o Samsung Internet for VR, tamb\u00e9m pode us\u00e1-lo para visualizar esse conte\u00fado em VR. Basta colocar o celular no fone de ouvido agora.", "enable-video-prompt":"Ativar v\u00eddeo?","giroscope-disabled-safari-request-permission":["O acesso a movimento e orienta\u00e7\u00e3o do dispositivo e o modo VR est\u00e3o desativados para este site.","Para ver corretamente esta p\u00e1gina da web, clique em continuar e aceite a solicita\u00e7\u00e3o de permiss\u00e3o, se solicitado."],"storage-not-provided-launch-from-homescreen":"Reinicie o tour no \u00edcone da tela inicial para fazer o download.","enter-fullscreen":"Entrar tela cheia","use-cardboard-v2":"Use Cardboard v2", unmute:"Ativar som","enter-vr":"Inserir conte\u00fado VR","enable-measure":"Start measuring","use-cardboard-info":"Voc\u00ea pode usar qualquer fone de ouvido compat\u00edvel do Google Cardboard para visualizar este conte\u00fado em VR","refresh-downloaded":"Atualizar","use-default-cardboard":"Use o padr\u00e3o","enable-audio-prompt":"Ativar \u00e1udio?"},"hr-hr":{mute:"nijem","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.", "download-tour":"Download Tour for offline playing","change-to-drag-and-release":"Promijenite na\u010din upravljanja u povla\u010denje i otpu\u0161tanje",accept:"Prihvatiti",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.", cancel:"Cancel","change-to-click-and-move":"Promijenite na\u010din upravljanja na Klik i Premjesti",yes:"Da","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Iza\u0111ite s punog zaslona",no:"Ne","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.","cookies-notice":"Ova web stranica koristi kola\u010di\u0107e za prikupljanje statistike upotrebe. Za vi\u0161e informacija posjetite Pravila o kola\u010di\u0107ima.", "use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please rotate your device","exit-vr":"Exit VR",reject:"Odbiti","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"Omogu\u0107iti videozapis i zvuk?","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.", downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"Omogu\u0107ite videozapis?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Unesite cijeli zaslon","use-cardboard-v2":"Use Cardboard v2",unmute:"Uklju\u010di mikrofon", "enter-vr":"Enter VR content","enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"\u017delite li omogu\u0107iti zvuk?"},"ja-jp":{mute:"\u30df\u30e5\u30fc\u30c8","cardboard-v1":"\u4f7f\u7528\u3057\u3066\u3044\u308bCardboard\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u308f\u304b\u3089\u306a\u3044\u5834\u5408\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30db\u30c3\u30c8\u30b9\u30dd\u30c3\u30c8\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u9078\u629e\u3057\u307e\u3059\u3002\u6b21\u306b\u3001\u30db\u30c3\u30c8\u30b9\u30dd\u30c3\u30c8\u3092\u6ce8\u8996\u3057\u3001\u30a2\u30af\u30b7\u30e7\u30f3\u304c\u52d5\u4f5c\u3059\u308b\u307e\u3067\u5f85\u6a5f\u3057\u307e\u3059\u3002\uff08\u4e00\u90e8\u52d5\u4f5c\u3057\u306a\u3044\u30a2\u30af\u30b7\u30e7\u30f3\u6709\u308a\uff09", "download-tour":"\u30aa\u30d5\u30e9\u30a4\u30f3\u518d\u751f\u7528\u30c4\u30a2\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b","change-to-drag-and-release":"\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30e2\u30fc\u30c9\u3092\u30c9\u30e9\u30c3\u30b0\uff06\u30ea\u30ea\u30fc\u30b9\u306b\u5909\u66f4",accept:"\u53d7\u3051\u5165\u308c\u308b",cancel:"\u30ad\u30e3\u30f3\u30bb\u30eb","storage-not-provided-bookmark":"\u6c38\u7d9a\u7684\u306a\u4fdd\u5b58\u304c\u62d2\u5426\u3055\u308c\u305f\u3002\u3053\u306eWeb\u30da\u30fc\u30b8\u3092\u30d6\u30c3\u30af\u30de\u30fc\u30af\u3057\u3001\u66f4\u65b0\u3057\u3066\u304f\u3060\u3055\u3044", "dont-display-again":"\u4eca\u5f8c\u3053\u306e\u60c5\u5831\u3092\u8868\u793a\u3057\u306a\u3044","web-server-required":"\u3053\u306e\u30d0\u30fc\u30c1\u30e3\u30eb\u30c4\u30a2\u30fc\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30c9\u30e9\u30a4\u30d6\u304b\u3089\u518d\u751f\u3067\u304d\u307e\u305b\u3093\u3002\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306b\u63a5\u7d9a\u3057\u3001\u3082\u3046\u4e00\u5ea6\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3092\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\n\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001htm\u30d5\u30a1\u30a4\u30eb\uff08\u307e\u305f\u306f\u30c4\u30a2\u30fc\u306e\u30d5\u30a9\u30eb\u30c0\u30fc\u5168\u4f53\uff09\u3092\u300eTourViewer\u300f\u30a2\u30d7\u30ea\u306e\u30a2\u30a4\u30b3\u30f3\u306b\u30c9\u30e9\u30c3\u30b0\u3057\u307e\u3059", download:"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9","change-to-click-and-move":"\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u30e2\u30fc\u30c9\u3092\u30af\u30ea\u30c3\u30af\uff06\u30e0\u30fc\u30d6\u306b\u5909\u66f4",yes:"\u306f\u3044","delete-downloaded":"\u524a\u9664","use-safari-for-vr":"\u3053\u306e\u30c4\u30a2\u30fc\u3092VR\u30d3\u30e5\u30fc\u3067\u8868\u793a\u3059\u308b\u306b\u306f\u3001Safari\u30d6\u30e9\u30a6\u30b6\u306e\u5229\u7528\u3092\u304a\u52e7\u3081\u3057\u307e\u3059","exit-fullscreen":"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3\u3092\u7d42\u4e86\u3059\u308b", no:"\u3044\u3044\u3048","download-failed":"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u5931\u6557\u3057\u307e\u3057\u305f","giroscope-disabled-http":"\u3053\u306eWeb\u30da\u30fc\u30b8\u306b\u300ehttp\u300f\u7d4c\u7531\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u3054\u5229\u7528\u7aef\u672b\u306e\u30e2\u30fc\u30b7\u30e7\u30f3\u3068\u753b\u9762\u306e\u5411\u304d\u3078\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u305a\u3001VR\u30e2\u30fc\u30c9\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u300ehttps\u300f\u7d4c\u7531\u3067\u30a2\u30af\u30bb\u30b9\u3057\u6709\u52b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044", "cookies-notice":"\u3053\u306e\u30a6\u30a7\u30d6\u30b5\u30a4\u30c8\u306fCookie\u3092\u4f7f\u7528\u3057\u3066\u4f7f\u7528\u7d71\u8a08\u3092\u53ce\u96c6\u3057\u307e\u3059\u3002 \u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3001Cookie\u30dd\u30ea\u30b7\u30fc\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002","use-cardboard":"Cardboard\u5229\u7528","launch-default-browser":"\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u8d77\u52d5","rotate-device":"\u7aef\u672b\u3092\u56de\u8ee2\u3055\u305b\u3066\u304f\u3060\u3055\u3044", "exit-vr":"VR\u30d3\u30e5\u30fc \u7d42\u4e86","storage-not-provided-launch-from-desktop":"\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u306e\u30a2\u30a4\u30b3\u30f3\u304b\u3089\u30c4\u30a2\u30fc\u3092\u518d\u8d77\u52d5\u3057\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044","disable-measure":"Stop measuring",downloading:"\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u4e2d","cardboard-v2":"\u30dc\u30bf\u30f3\u304c\u4ed8\u5c5e\u3057\u3066\u3044\u308bCardboard v2\u30d8\u30c3\u30c9\u30bb\u30c3\u30c8\u3092\u304a\u6301\u3061\u306e\u5834\u5408\u306f\u3053\u3061\u3089\u3002", "enable-video-audio-prompt":"\u30d3\u30c7\u30aa\u3068\u97f3\u58f0\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u304b\uff1f",reject:"\u62d2\u5426\u3059\u308b",downloaded:"\u3053\u306e\u30c4\u30a2\u30fc\u306f\u3001\u30aa\u30d5\u30e9\u30a4\u30f3\u3067\u518d\u751f\u3059\u308b\u305f\u3081\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3092\u3059\u308b","samsung-internet-vr-app-info":"\u3053\u306e\u7aef\u672b\u3068\u4e92\u63db\u6027\u306e\u3042\u308bVR\u30d8\u30c3\u30c9\u30bb\u30c3\u30c8\u6a5f\u5668\u3092\u304a\u6301\u3061\u3067\u3001VR\u7528\u306e\u300eSamsung Internet\u300f\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u5834\u5408\u3002VR\u30d3\u30e5\u30fc\u3067\u3053\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u969b\u3001\u300eSamsung Internet\u300f\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30d6\u30e9\u30a6\u30b6\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059", "samsung-internet-vr-info":"\u3053\u306e\u7aef\u672b\u3068\u4e92\u63db\u6027\u306e\u3042\u308bVR\u30d8\u30c3\u30c9\u30bb\u30c3\u30c8\u6a5f\u5668\u3092\u304a\u6301\u3061\u3067\u3001VR\u7528\u306e\u300eSamsung Internet\u300f\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u308b\u5834\u5408\u3002VR\u30d3\u30e5\u30fc\u3067\u3053\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u8868\u793a\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002\u305d\u306e\u969b\u3001\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u3092\u30d8\u30c3\u30c9\u30bb\u30c3\u30c8\u306b\u88c5\u7740\u3059\u308b\u3060\u3051\u3067\u3059", "enable-video-prompt":"\u30d3\u30c7\u30aa\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u304b\uff1f","giroscope-disabled-safari-request-permission":["\u3054\u5229\u7528\u7aef\u672b\u306e\u30e2\u30fc\u30b7\u30e7\u30f3\u3068\u753b\u9762\u306e\u5411\u304d\u3078\u30a2\u30af\u30bb\u30b9\u304c\u3067\u304d\u305a\u3001VR\u30e2\u30fc\u30c9\u304c\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002","\u3053\u306eWeb\u30da\u30fc\u30b8\u3092\u6b63\u3057\u304f\u8868\u793a\u3059\u308b\u306b\u306f\u3001\u300eOK\u300f\u3092\u30af\u30ea\u30c3\u30af\u3057\u300e\u8a31\u53ef\u300f\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u53d7\u3051\u5165\u308c\u3066\u304f\u3060\u3055\u3044"], "storage-not-provided-launch-from-homescreen":"\u30db\u30fc\u30e0\u753b\u9762\u306e\u30a2\u30a4\u30b3\u30f3\u304b\u3089\u30c4\u30a2\u30fc\u3092\u518d\u8d77\u52d5\u3057\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044","enter-fullscreen":"\u30d5\u30eb\u30b9\u30af\u30ea\u30fc\u30f3\u3067\u5165\u529b\u3059\u308b","use-cardboard-v2":"Cardboard v2\u5229\u7528",unmute:"\u30df\u30e5\u30fc\u30c8\u89e3\u9664","enter-vr":"VR\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u5165\u529b","enable-measure":"Start measuring", "use-cardboard-info":"\u3053\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092VR\u30d3\u30e5\u30fc\u3067\u8868\u793a\u3059\u308b\u306b\u306f\u3001\u4e92\u63db\u6027\u306e\u3042\u308b\u4efb\u610f\u306eGoogle Cardboard\u30d8\u30c3\u30c9\u30bb\u30c3\u30c8\u3092\u5229\u7528\u3067\u304d\u307e\u3059","refresh-downloaded":"\u66f4\u65b0","use-default-cardboard":"\u30c7\u30d5\u30a9\u30eb\u30c8\u5229\u7528","enable-audio-prompt":"\u97f3\u58f0\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u304b\uff1f"},"zh-cn":{mute:"\u9759\u97f3", "cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"\u4e0b\u8f7d\u5168\u666f\u6f2b\u6e38\uff0c\u4ee5\u8fdb\u884c\u79bb\u7ebf\u64ad\u653e","change-to-drag-and-release":"\u5c06\u63a7\u5236\u6a21\u5f0f\u66f4\u6539\u4e3a\u201c\u62d6\u653e\u201d",accept:"\u63a5\u53d7",cancel:"\u53d6\u6d88","storage-not-provided-bookmark":"\u88c5\u7f6e\u5185\u6c38\u4e45\u5b58\u50a8\u88ab\u62d2\u7edd\u3002\u5c1d\u8bd5\u5c06\u6b64\u7f51\u9875\u6dfb\u52a0\u4e3a\u4e66\u7b7e\uff0c \u5e76\u91cd\u65b0\u52a0\u8f7d\u3002", "dont-display-again":"\u4e0d\u518d\u663e\u793a\u6b64\u4fe1\u606f","web-server-required":"\u6b64\u5168\u666f\u6f2b\u6e38\u65e0\u6cd5\u4ece\u672c\u5730\u9a71\u52a8\u5668\u4e0a\u64ad\u653e\u3002 \u8bf7\u5c06\u5176\u4e0a\u4f20\u5230\u4e92\u8054\u7f51\u670d\u52a1\u5668\uff0c\u7136\u540e\u91cd\u8bd5\u3002\n\u5982\u679c\u9700\u8981\u672c\u5730\u9884\u89c8\uff0c\u53ef\u4ee5\u5c06htm\u6587\u4ef6\uff08\u6216\u5168\u666f\u6f2b\u6e38\u7684\u6574\u4e2a\u6587\u4ef6\u5939\uff09\u62d6\u5230TourViewer\u5e94\u7528\u7a0b\u5e8f\u7684\u56fe\u6807\u4e0a\u3002", download:"\u4e0b\u8f7d","change-to-click-and-move":"\u5c06\u63a7\u5236\u6a21\u5f0f\u66f4\u6539\u4e3a\u201c\u5355\u51fb\u5e76\u79fb\u52a8\u201d",yes:"\u662f","delete-downloaded":"\u5220\u9664","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"\u9000\u51fa\u5168\u5c4f",no:"\u5426","download-failed":"\u4e0b\u8f7d\u5931\u8d25","giroscope-disabled-http":"\u60a8\u6b63\u5728\u901a\u8fc7http(\u672a\u52a0\u5bc6)\u8bbf\u95ee\u6b64\u7f51\u9875\uff0c\u56e0\u6b64\u8bbe\u5907\u7684\u8fd0\u52a8\u548c\u65b9\u5411\u8bbf\u95ee\u6743\u9650\u4ee5\u53caVR\u6a21\u5f0f\u5747\u5df2\u7981\u7528\uff0c\u8bf7\u901a\u8fc7https(\u52a0\u5bc6)\u5bf9\u5176\u8fdb\u884c\u542f\u7528\u3002", "cookies-notice":"\u8be5\u7f51\u9875\u4f7f\u7528cookie\u6765\u6536\u96c6\u4f7f\u7528\u60c5\u51b5\u7edf\u8ba1\u4fe1\u606f\u3002 \u6709\u5173\u66f4\u591a\u4fe1\u606f\uff0c\u8bf7\u8bbf\u95eeCookie\u653f\u7b56\u3002","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please rotate your device","exit-vr":"Exit VR","storage-not-provided-launch-from-desktop":"\u8bf7\u4ece\u684c\u9762\u70b9\u51fb\u56fe\u6807\uff0c\u91cd\u65b0\u542f\u52a8\u5168\u666f\u6f2b\u6e38\uff0c\u4ee5\u8fdb\u884c\u4e0b\u8f7d\u3002", "disable-measure":"Stop measuring",downloading:"\u6b63\u5728\u4e0b\u8f7d","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"\u542f\u7528\u89c6\u9891\u548c\u97f3\u9891\uff1f",reject:"\u62d2\u7edd",downloaded:"\u6b64\u5168\u666f\u6f2b\u6e38\u5df2\u4e0b\u8f7d\uff0c\u53ef\u8fdb\u884c\u79bb\u7ebf\u64ad\u653e\u3002","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.", "samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.","enable-video-prompt":"\u542f\u7528\u89c6\u9891\uff1f","giroscope-disabled-safari-request-permission":["\u8be5\u7ad9\u70b9\u5df2\u7981\u7528\u8bbe\u5907\u7684\u8fd0\u52a8\u548c\u65b9\u5411\u8bbf\u95ee\u6743\u9650\uff0cVR\u6a21\u5f0f\u4e5f\u88ab\u7981\u7528\u3002", "\u8981\u6b63\u786e\u67e5\u770b\u6b64\u7f51\u9875\uff0c\u8bf7\u5355\u51fb\u7ee7\u7eed\uff0c\u5e76\u5728\u51fa\u73b0\u63d0\u793a\u65f6\u63a5\u53d7\u8bb8\u53ef\u8bf7\u6c42"],"storage-not-provided-launch-from-homescreen":"\u8bf7\u4ece\u4e3b\u5c4f\u5e55\u70b9\u51fb\u56fe\u6807\uff0c\u91cd\u65b0\u542f\u52a8\u5168\u666f\u6f2b\u6e38\uff0c\u4ee5\u8fdb\u884c\u4e0b\u8f7d\u3002","enter-fullscreen":"\u8fdb\u5165\u5168\u5c4f","use-cardboard-v2":"Use Cardboard v2",unmute:"\u53d6\u6d88\u9759\u97f3","enter-vr":"Enter VR content", "enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"\u5237\u65b0","use-default-cardboard":"Use Default","enable-audio-prompt":"\u542f\u7528\u97f3\u9891\uff1f"},"nl-nl":{mute:"Schakel audio uit","cardboard-v1":"Als u niet weet wat voor versie van Cardboard u gebruikt, selecteer dan de default hotspot control. Dan zult u moeten wachten op een hotspot tot er een bepaald actie is gestart.","download-tour":"Download Tour voor offline afspelen", "change-to-drag-and-release":"Verander de besturingsmodus om te slepen en los te laten",accept:"Aanvaarden",download:"Download","storage-not-provided-bookmark":"Aanhoudende inhoud geweigerd. Probeer deze pagina als bookmark op te slaan en te verversen.","dont-display-again":"Niet meer laten zien","web-server-required":"Deze virtuele tour kan niet worden afgespeeld vanaf een lokale schijf. Upload dit alstublieft op het internet. Je kan ook de htm bestand slepen naar het icoon van de TourViewer app.", cancel:"Annuleren","change-to-click-and-move":"Verander de bedieningsmodus om te klikken en te verplaatsen",yes:"Ja","delete-downloaded":"Verwijderen","use-safari-for-vr":"We raden aan om in Safari deze tour te bekijken in VR mode","exit-fullscreen":"Volledig scherm verlaten",no:"Nee","download-failed":"Download mislukt","giroscope-disabled-http":"Jij betreedt deze pagina door http, dus uw toestel's motion en orientation access en VR modus zijn uitgeschakeld. Betreed deze pagina door https om ze weer aan te schakelen.", "cookies-notice":"Deze webpagina maakt gebruik van cookies om gebruiksstatistieken te verzamelen. Raadpleeg het Cookiebeleid voor meer informatie.","use-cardboard":"Gebruik Cardboard","launch-default-browser":"Start op in standaard browser","rotate-device":"Draai uw toestel om, alstublieft","exit-vr":"VR verlaten",reject:"Weigeren","disable-measure":"Stop meten",downloading:"Downloaden","cardboard-v2":"Als u een Cardboard v2 headset heeft, wat met een knop komt, kunt u wachten op een hotspot en een op een knop drukken om een actie te starten.", "enable-video-audio-prompt":"Audio en video inschakelen?","storage-not-provided-launch-from-desktop":"Start de tour alstublieft opnieuw up vanaf het bureaublad om te kunnen downloaden.",downloaded:"Deze tour is gedownload voor offline afspelen.","samsung-internet-vr-app-info":"Als u een Gear VR headset heeft dat werkt met dit toestel en u Samsung Internet voor VR heeft ge\u00efnstalleerd, kunt u dit ook bekijken in VR. U moet alleen Samsung Internet instellen als uw standaard browser.","samsung-internet-vr-info":"Als u een Gear VR headset heeft dat werkt met dit toestel en u Samsung Internet voor VR heeft ge\u00efnstalleerd, kunt u dit ook bekijken in VR, u moet alleen uw mobiele toestel op uw headset zetten.", "enable-video-prompt":"Video inschakelen?","giroscope-disabled-safari-request-permission":["Uw toestel's motion en orientation access en VR modus zijn uitgeschakeld voor deze site..","Om deze pagina goed te kunnen zien, druk op doorgaan en geef toestemming als dat gevraagd wordt."],"storage-not-provided-launch-from-homescreen":"Start de tour alstublieft opnieuw up vanaf het homescherm om te kunnen downloaden.","enter-fullscreen":"Volledig scherm inschakelen","use-cardboard-v2":"Gebruik Cardboard v2", unmute:"Schakel audio in","enter-vr":"Voer VR inhoud in","enable-measure":"Begin meten","use-cardboard-info":"U kunt elk werkend Google Cardboard headset gebruiken om dit te bekijken.","refresh-downloaded":"Verversen","use-default-cardboard":"Standaard gebruiken","enable-audio-prompt":"Audio inschakelen?"},"hu-hu":{mute:"N\u00e9m\u00edt\u00e1s","cardboard-v1":"Ha nem vagy biztos benne, hogy milyen VR eszk\u00f6zt haszn\u00e1lsz, akkor v\u00e1laszd az alap\u00e9rtelmezettet \u00e9s az egyes hotspot-ok megtekint\u00e9s\u00e9hez csak tartsd ott a jel\u00f6l\u0151t.", "download-tour":"T\u00fara let\u00f6lt\u00e9se offline megtekint\u00e9shez","change-to-drag-and-release":"Ir\u00e1ny\u00edt\u00e1s \u00e1t\u00e1ll\u00edt\u00e1sa: megfog \u00e9s mozgat m\u00f3dra",accept:"Elfogad",cancel:"M\u00e9gsem","storage-not-provided-bookmark":"Pr\u00f3b\u00e1lja meg az oldalt megjel\u00f6lni \u00e9s \u00fajrat\u00f6lteni!","dont-display-again":"Ne mutasd \u00fajra","web-server-required":"Ez a t\u00fara nem j\u00e1tszat\u00f3 le helyi futtat\u00e1ssal, k\u00e9rlek t\u00f6lsd fel az internetre \u00e9s pr\u00f3b\u00e1ld meg \u00fajra\nM\u00e1sik megold\u00e1s, ha a Tourviewer applik\u00e1ci\u00f3ra h\u00fazod a t\u00fara f\u00e1jlt, vagy az azt tartalmaz\u00f3 t\u00fara mapp\u00e1t.", download:"Let\u00f6lt\u00e9s","change-to-click-and-move":"Ir\u00e1ny\u00edt\u00e1s \u00e1t\u00e1ll\u00edt\u00e1sa kattint \u00e9s k\u00f6rben\u00e9z m\u00f3dra",yes:"igen","delete-downloaded":"T\u00f6rl\u00e9s","use-safari-for-vr":"Azt javasoljuk, hogy haszn\u00e1lj Safari b\u00f6ng\u00e9sz\u0151t a VR n\u00e9zet megtekint\u00e9s\u00e9hez","exit-fullscreen":"Kil\u00e9p\u00e9s a teljesk\u00e9perny\u0151 m\u00f3db\u00f3l",no:"nem","download-failed":"Let\u00f6lt\u00e9s sikertelen","giroscope-disabled-http":"Az oldalt https el\u0151taggal sz\u00fcks\u00e9ges megnyitnod ahhoz, hogy a k\u00e9sz\u00fcl\u00e9ked mozg\u00e1s\u00e1t \u00e9rz\u00e9kelni tudja.", "cookies-notice":"Ez a weboldal s\u00fctiket haszn\u00e1l a haszn\u00e1lati statisztik\u00e1k gy\u0171jt\u00e9s\u00e9hez. Tov\u00e1bbi inform\u00e1ci\u00f3\u00e9rt l\u00e1togasson el a s\u00fctikre vonatkoz\u00f3 ir\u00e1nyelvekbe.","use-cardboard":"Cardboard haszn\u00e1lata","launch-default-browser":"Futtat\u00e1s az alap\u00e9rtelmezett b\u00f6ng\u00e9sz\u0151ben","rotate-device":"Forgasd el a telefont!","exit-vr":"Kil\u00e9p\u00e9s a VR m\u00f3db\u00f3l","storage-not-provided-launch-from-desktop":"K\u00e9rlek ind\u00edtsd \u00fajra az oldalt az asztalon tal\u00e1lhat\u00f3 iconra kattintva.", "disable-measure":"Stop measuring",downloading:"Let\u00f6lt\u00e9s","cardboard-v2":"Ha Cardboard 2.0 t\u00edpus\u00fa eszk\u00f6zt haszn\u00e1lsz, akkor a kapcsol\u00f3kkal ir\u00e1ny\u00edthatod a t\u00far\u00e1t, kattinthatsz az egyes hotspotokra","enable-video-audio-prompt":"Hang \u00e9s vide\u00f3 enged\u00e9lyez\u00e9se",reject:"Elutas\u00edt",downloaded:"Let\u00f6ltve offline megtekint\u00e9shez","samsung-internet-vr-app-info":"Ha Samsung Gear VR szem\u00fcveget szeretn\u00e9l haszn\u00e1lni, akkor nyisd meg a Samsung internetb\u00f6ng\u00e9sz\u0151ben a t\u00far\u00e1t.", "samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.","enable-video-prompt":"Vide\u00f3 enged\u00e9lyez\u00e9se","giroscope-disabled-safari-request-permission":["A megjelen\u00edt\u0151 eszk\u00f6z\u00f6d nem adott hozz\u00e1f\u00e9r\u00e9st a mozg\u00e1s \u00e9rz\u00e9kel\u00e9s\u00e9hez ezen az oldalon.","Ahhoz hogy megfelel\u0151en l\u00e1sd az oldalt k\u00e9rlek enged\u00e9lyezd a hozz\u00e1f\u00e9r\u00e9st."], "storage-not-provided-launch-from-homescreen":"Ind\u00edtsd \u00fajra a t\u00far\u00e1t a home ikonra kattintva.","enter-fullscreen":"Teljesk\u00e9perny\u0151","use-cardboard-v2":"Cardboard 2.0 haszn\u00e1lata",unmute:"N\u00e9m\u00edt\u00e1s kikapcsol\u00e1sa","enter-vr":"VR tartalom megtekint\u00e9se","enable-measure":"Start measuring","use-cardboard-info":"Haszn\u00e1lhatsz b\u00e1rmilyen google cardboard-ot ahhoz, hogy VR m\u00f3dban l\u00e1sd a t\u00far\u00e1t.","refresh-downloaded":"Friss\u00edt\u00e9s", "use-default-cardboard":"Alap\u00e9rtelmezett haszn\u00e1lata","enable-audio-prompt":"Hang enged\u00e9lyez\u00e9se"},"ar-ar":{mute:"\u062a\u0639\u0637\u064a\u0644 \u0627\u0644\u0635\u0648\u062a","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing","change-to-drag-and-release":"\u062a\u063a\u064a\u064a\u0631 \u0648\u0636\u0639 \u0627\u0644\u062a\u062d\u0643\u0645 \u0644\u0644\u0633\u062d\u0628 \u0648\u0627\u0644\u0625\u0641\u0631\u0627\u062c", accept:"\u0642\u0628\u0648\u0644",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",cancel:"Cancel","change-to-click-and-move":"\u062a\u063a\u064a\u064a\u0631 \u0648\u0636\u0639 \u0627\u0644\u062a\u062d\u0643\u0645 \u0644\u0644\u0646\u0642\u0631 \u0648\u0627\u0644\u062a\u062d\u0631\u0643", yes:"\u0646\u0639\u0645 \u0641\u0639\u0644\u0627","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"\u0627\u0644\u062e\u0631\u0648\u062c \u0645\u0646 \u0648\u0636\u0639 \u0645\u0644\u0626 \u0644\u0644\u0634\u0627\u0634\u0629",no:"\u0644\u0627","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.", "cookies-notice":"\u062a\u0633\u062a\u062e\u062f\u0645 \u0635\u0641\u062d\u0629 \u0627\u0644\u0648\u064a\u0628 \u0647\u0630\u0647 \u0645\u0644\u0641\u0627\u062a \u062a\u0639\u0631\u064a\u0641 \u0627\u0644\u0627\u0631\u062a\u0628\u0627\u0637 \u0644\u062c\u0645\u0639 \u0625\u062d\u0635\u0627\u0626\u064a\u0627\u062a \u0627\u0644\u0627\u0633\u062a\u062e\u062f\u0627\u0645. \u0644\u0645\u0632\u064a\u062f \u0645\u0646 \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062a \u060c \u064a\u0631\u062c\u0649 \u0632\u064a\u0627\u0631\u0629 \u0633\u064a\u0627\u0633\u0629 \u0645\u0644\u0641\u0627\u062a \u062a\u0639\u0631\u064a\u0641 \u0627\u0644\u0627\u0631\u062a\u0628\u0627\u0637 .", "use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please rotate your device","exit-vr":"Exit VR",reject:"\u064a\u0631\u0641\u0636","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"\u062a\u0645\u0643\u064a\u0646 \u0627\u0644\u0635\u0648\u062a \u0648\u0627\u0644\u0641\u064a\u062f\u064a\u0648\u061f", "storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"\u062a\u0645\u0643\u064a\u0646 \u0627\u0644\u0641\u064a\u062f\u064a\u0648\u061f","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"\u0623\u062f\u062e\u0644 \u0645\u0644\u0621 \u0627\u0644\u0634\u0627\u0634\u0629", "use-cardboard-v2":"Use Cardboard v2",unmute:"\u062a\u0645\u0643\u064a\u0646 \u0627\u0644\u0635\u0648\u062a","enter-vr":"Enter VR content","enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"\u062a\u0645\u0643\u064a\u0646 \u0627\u0644\u0635\u0648\u062a\u061f"},"ca-es":{mute:"Silenciar","cardboard-v1":"Si no esteu segurs de quina versi\u00f3 de cartr\u00f3 utilitzeu, seleccioneu el control de punt d'acc\u00e9s per defecte. Despr\u00e9s, simplement veureu un punt d'acc\u00e9s i espereu fins que s'activi l'acci\u00f3.", "download-tour":"Descarregueu la visita virtual per a jugar fora de l\u00ednia","change-to-drag-and-release":"Canvieu el mode de control a Arrossegar i deixeu anar",accept:"Accepta",cancel:"Cancel\u00b7lar","storage-not-provided-bookmark":"S'ha denegat l'emmagatzematge persistent. Proveu de marcar aquesta p\u00e0gina web i torneu-la a carregar.","dont-display-again":"No tornis a mostrar aquesta informaci\u00f3","web-server-required":"Aquesta visita virtual no es pot reproduir des d'una unitat local. Carregueu-lo a Internet i torneu-ho a provar.\nSi ho preferiu, arrossegueu el fitxer htm (o tota la carpeta de la visita virtual) a la icona de l'aplicaci\u00f3 TourViewer.", download:"Descarregar","change-to-click-and-move":"Canvieu el mode de control a Fer clic i desplaceu",yes:"s\u00ed","delete-downloaded":"Suprimeix","use-safari-for-vr":"Recomanem Safari per a visualitzar aquesta visita virtual en mode VR","exit-fullscreen":"Surt de pantalla completa",no:"no","download-failed":"Error de desc\u00e0rrega","giroscope-disabled-http":"Accediu a aquesta p\u00e0gina web a trav\u00e9s de http de manera que el moviment i l\u2019orientaci\u00f3 del dispositiu i el mode VR estan desactivats, accediu-hi mitjan\u00e7ant https per habilitar-les.", "cookies-notice":"Aquesta p\u00e0gina web utilitza cookies per recopilar estad\u00edstiques d\u2019\u00fas. Per obtenir m\u00e9s informaci\u00f3, visiteu la Pol\u00edtica de cookies.","use-cardboard":"Utilitzeu Cardboard","launch-default-browser":"Inicieu el navegador per defecte","rotate-device":"Gireu el dispositiu","exit-vr":"Surt de VR","storage-not-provided-launch-from-desktop":"Torneu a iniciar la visita virtual des de la icona de l'escriptori per a descarregar-la.","disable-measure":"Stop measuring", downloading:"Baixant","cardboard-v2":"Si teniu unes Cardboard v2, que venen amb un bot\u00f3, podeu mirar cap a un punt de vista i pr\u00e9mer el bot\u00f3 per activar-lo.","enable-video-audio-prompt":"Habilitar v\u00eddeo i \u00e0udio?",reject:"Rebutjar",downloaded:"Aquesta visita virtual es descarrega per a reproduir-la fora de l\u00ednia.","samsung-internet-vr-app-info":"Si teniu un auricular Gear VR compatible amb aquest dispositiu i heu instal\u00b7lat Samsung Internet per a VR, tamb\u00e9 podeu utilitzar-lo per visualitzar aquest contingut en VR, heu de fer que Samsung Internet sigui el vostre navegador predeterminat.", "samsung-internet-vr-info":"Si teniu un auricular Gear VR compatible amb aquest dispositiu i heu instal\u00b7lat Samsung Internet per a VR, tamb\u00e9 podeu utilitzar-lo per visualitzar aquest contingut en VR, nom\u00e9s heu de posar el tel\u00e8fon m\u00f2bil als auriculars.","enable-video-prompt":"Activar v\u00eddeo?","giroscope-disabled-safari-request-permission":["Aquest lloc web est\u00e0 desactivat en el moviment i en la direcci\u00f3 o en mode VR del dispositiu.","Per veure correctament aquesta p\u00e0gina web, feu clic a Continuar i accepteu la sol\u00b7licitud de perm\u00eds si se us demana."], "storage-not-provided-launch-from-homescreen":"Torneu a iniciar la visita virtual des de la icona de la pantalla inicial.","enter-fullscreen":"Entra a pantalla completa","use-cardboard-v2":"Utilitzeu Cardboard v2",unmute:"No activa","enter-vr":"Introdu\u00efu contingut de VR","enable-measure":"Start measuring","use-cardboard-info":"Podeu utilitzar qualsevol auricular de Google Cardboard compatible per a visualitzar aquest contingut en VR.","refresh-downloaded":"Actualitzaci\u00f3","use-default-cardboard":"\u00das per defecte", "enable-audio-prompt":"Activar \u00e0udio?"},"ru-ru":{mute:"\u0411\u0435\u0437 \u0437\u0432\u0443\u043a\u0430","cardboard-v1":"\u0415\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0443\u0432\u0435\u0440\u0435\u043d\u044b, \u043a\u0430\u043a\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e Cardboard \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0445\u043e\u0442\u0441\u043f\u043e\u0442 \u043a\u0430\u043a \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0417\u0430\u0442\u0435\u043c \u0432\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0445\u043e\u0442\u0441\u043f\u043e\u0442 \u0438 \u0434\u043e\u0436\u0434\u0438\u0442\u0435\u0441\u044c, \u043f\u043e\u043a\u0430 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435.", "download-tour":"\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u0442\u0443\u0440 \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f","change-to-drag-and-release":"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0440\u0435\u0436\u0438\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u043f\u0435\u0440\u0435\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u043d\u0438\u0435", accept:"\u041f\u0440\u0438\u043d\u044f\u0442\u044c",download:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c","storage-not-provided-bookmark":"\u0412 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043e\u0442\u043a\u0430\u0437\u0430\u043d\u043e. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u0443 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0432 \u0437\u0430\u043a\u043b\u0430\u0434\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0435\u0435.", "dont-display-again":"\u0411\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u044d\u0442\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e","web-server-required":"\u042d\u0442\u043e\u0442 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0442\u0443\u0440 \u043d\u0435\u043b\u044c\u0437\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430. \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0435\u0433\u043e \u0432 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442 \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0439\u0442\u0435 \u0435\u0449\u0435 \u0440\u0430\u0437.\n\u0415\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435, \u043f\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 htm-\u0444\u0430\u0439\u043b (\u0438\u043b\u0438 \u0432\u0441\u044e \u043f\u0430\u043f\u043a\u0443 \u0442\u0443\u0440\u0430) \u043d\u0430 \u0437\u043d\u0430\u0447\u043e\u043a \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f TourViewer.", cancel:"\u041e\u0442\u043c\u0435\u043d\u0430","change-to-click-and-move":"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0440\u0435\u0436\u0438\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 \u043d\u0430\u0436\u0430\u043d\u0438\u0435 \u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u0435",yes:"\u0434\u0430","delete-downloaded":"\u0423\u0434\u0430\u043b\u0438\u0442\u044c","use-safari-for-vr":"\u041c\u044b \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c Safari \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u044d\u0442\u043e\u0433\u043e \u0442\u0443\u0440\u0430 \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 VR.", "exit-fullscreen":"\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430",no:"\u043d\u0435\u0442","download-failed":"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438","giroscope-disabled-http":"\u0412\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u044d\u0442\u043e\u0439 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0447\u0435\u0440\u0435\u0437 http, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044e \u0438 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u0440\u0435\u0436\u0438\u043c VR \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u043e\u0439\u0434\u0438\u0442\u0435 \u043d\u0430 \u043d\u0435\u0433\u043e \u0447\u0435\u0440\u0435\u0437 https, \u0447\u0442\u043e\u0431\u044b \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0438\u0445.", "cookies-notice":"\u042d\u0442\u0430 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0444\u0430\u0439\u043b\u044b cookie \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0441\u043c. \u041f\u043e\u043b\u0438\u0442\u0438\u043a\u0430 \u0432 \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 cookie.", "use-cardboard":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Cardboard","launch-default-browser":"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","rotate-device":"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0432\u0435\u0440\u043d\u0438\u0442\u0435 \u0432\u0430\u0448\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e", "exit-vr":"\u0412\u044b\u0439\u0442\u0438 \u0438\u0437 VR",reject:"\u041e\u0442\u043a\u043b\u043e\u043d\u0438\u0442\u044c","disable-measure":"\u041f\u0440\u0435\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f",downloading:"\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435","cardboard-v2":"\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0433\u0430\u0440\u043d\u0438\u0442\u0443\u0440\u0430 Cardboard v2 \u0441 \u043a\u043d\u043e\u043f\u043a\u043e\u0439, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u0437\u0433\u043b\u044f\u043d\u0443\u0442\u044c \u043d\u0430 \u0445\u043e\u0442\u0441\u043f\u043e\u0442 \u0438 \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443, \u0447\u0442\u043e\u0431\u044b \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0435\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435.", "enable-video-audio-prompt":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u0438 \u0430\u0443\u0434\u0438\u043e?","storage-not-provided-launch-from-desktop":"\u0427\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c, \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0442\u0443\u0440 \u0441\u043e \u0437\u043d\u0430\u0447\u043a\u0430 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u0441\u0442\u043e\u043b\u0435..", downloaded:"\u042d\u0442\u043e\u0442 \u0442\u0443\u0440 \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f.","samsung-internet-vr-app-info":"\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0433\u0430\u0440\u043d\u0438\u0442\u0443\u0440\u0430 Gear VR, \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0430\u044f \u0441 \u044d\u0442\u0438\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c, \u0438 \u0432\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 Samsung Internet \u0434\u043b\u044f VR, \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0432 VR, \u0432\u0430\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c Samsung Internet \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u043e\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.", "samsung-internet-vr-info":"\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0433\u0430\u0440\u043d\u0438\u0442\u0443\u0440\u0430 Gear VR, \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0430\u044f \u0441 \u044d\u0442\u0438\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c, \u0438 \u0432\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 Samsung Internet \u0434\u043b\u044f VR, \u0432\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0432 VR, \u0432\u0430\u043c \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0434\u0435\u0442\u044c \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0442\u0435\u043b\u0435\u0444\u043e\u043d \u043d\u0430 \u0433\u0430\u0440\u043d\u0438\u0442\u0443\u0440\u0443 \u0441\u0435\u0439\u0447\u0430\u0441.", "enable-video-prompt":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0432\u0438\u0434\u0435\u043e?","giroscope-disabled-safari-request-permission":["\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0434\u0432\u0438\u0436\u0435\u043d\u0438\u044e \u0438 \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0432\u0430\u0448\u0435\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0440\u0435\u0436\u0438\u043c VR \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430.", "\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u044d\u0442\u0443 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u00ab\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c\u00bb \u0438 \u043f\u0440\u0438\u043c\u0438\u0442\u0435 \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u0435\u0441\u043b\u0438 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u043e."], "storage-not-provided-launch-from-homescreen":"\u0427\u0442\u043e\u0431\u044b \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c, \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u0442\u0443\u0440 \u0441\u043e \u0437\u043d\u0430\u0447\u043a\u0430 \u043d\u0430 \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435.","enter-fullscreen":"\u0412\u043e\u0439\u0442\u0438 \u0432 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c", "use-cardboard-v2":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Cardboard v2",unmute:"\u0421\u043e \u0437\u0432\u0443\u043a\u043e\u043c","enter-vr":"\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c VR \u043a\u043e\u043d\u0442\u0435\u043d\u0442","enable-measure":"\u041d\u0430\u0447\u0430\u0442\u044c \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f","use-cardboard-info":"\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u0443\u044e \u0433\u0430\u0440\u043d\u0438\u0442\u0443\u0440\u0443 Google Cardboard \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0432 VR.", "refresh-downloaded":"\u041e\u0431\u043d\u043e\u0432\u0438\u0442\u044c","use-default-cardboard":"\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e","enable-audio-prompt":"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0430\u0443\u0434\u0438\u043e?"},"nn-no":{mute:"Skru av lyd","cardboard-v1":"Hvis du ikke er sikker, hvilken Cardboard versjon du bruker, velger du standard hotspot-kontrollen. Du vil da bare se p\u00e5 et hotspot og vente til handlingen utl\u00f8ses.", "download-tour":"Last ned visningen, s\u00e5 den kan bli sett uten internett","change-to-drag-and-release":"Endre kontrollmodus til Trekk og Slipp",accept:"Aksepterer",cancel:"Avbryt","storage-not-provided-bookmark":"Vedvarende lagring nektet. Pr\u00f8v \u00e5 bokmerke denne nettsiden og laste den inn p\u00e5 nytt.","dont-display-again":"Ikke vis denne informasjonen igjen","web-server-required":"Denne virtuelle visningen kan ikke spilles av lokalt. Vennligst last den opp til internett, og fors\u00f8k igjen.\ndersom du prefererer det, kan du dra htm filen (eller hele mappen som inneholder visningen) over 'TourViewer' appen.", download:"Last ned","change-to-click-and-move":"Endre kontrollmodus til Klikk og Flytt",yes:"Ja","delete-downloaded":"Slett","use-safari-for-vr":"Vi anbefaler Safari for \u00e5 se p\u00e5 venne visningen i VR modus","exit-fullscreen":"G\u00e5 ut av full skjerm",no:"Nei","download-failed":"Nedlastning feilet","giroscope-disabled-http":"Du er koblet til denne nettsiden via http. Dermed er enhetens bevegelses- og orienteringstilgang og VR-modus deaktivert. Koble til via https for \u00e5 aktivere denne.", "cookies-notice":"Denne websiden bruker informasjonskapsler for \u00e5 samle inn bruksstatistikk. For mer informasjon, bes\u00f8k retningslinjer for informasjonskapsler.","use-cardboard":"Bruk Cardboard","launch-default-browser":"\u00c5pne i standard nettleser","rotate-device":"Vennligst roter enheten","exit-vr":"G\u00e5 ut av VR","storage-not-provided-launch-from-desktop":"Start turen p\u00e5 nytt fra skrivebordsikonet for \u00e5 laste ned.","disable-measure":"Stop measuring",downloading:"Laster ned", "cardboard-v2":"Dersom du har Cardboard versjon 2, hvilket kommer med en knapp, kan du kikke p\u00e5 en klikkbar ting i visningen, og bruke knappen for \u00e5 bruke disse tingene, p\u00e5 samme m\u00e5te som p\u00e5 en laptop eller telefon.","enable-video-audio-prompt":"Aktivere video og lyd?",reject:"Avvis",downloaded:"Denne visningen er lastet ned, s\u00e5 den kan bli sett uten internett.","samsung-internet-vr-app-info":"Hvis du har et Gear VR-headset som er kompatibelt med denne enheten og har installert Samsung Internet for VR, kan du ogs\u00e5 bruke det til \u00e5 se dette innholdet i VR, du m\u00e5 ogs\u00e5 gj\u00f8re Samsung Internet til standard nettleser.", "samsung-internet-vr-info":"Hvis du har et Gear VR-headset som er kompatibelt med denne enheten, og du har installert Samsung Internet for VR, kan du ogs\u00e5 bruke det til \u00e5 se dette innholdet i VR, du trenger bare \u00e5 sette mobiltelefonen p\u00e5 headsettet n\u00e5.","enable-video-prompt":"Aktivere video?","giroscope-disabled-safari-request-permission":["Din enhet sin bevegelses- og orienterings tilgang, samt VR modus er deaktivert for denne nettsiden.","For \u00e5 se denne siden korrekt, vennligst klikk p\u00e5 fortsett og godta tillatelsesforesp\u00f8rselen hvis du blir bedt om dette."], "storage-not-provided-launch-from-homescreen":"Start turen p\u00e5 nytt fra startskjermikonet for \u00e5 laste ned.","enter-fullscreen":"G\u00e5 til full skjerm","use-cardboard-v2":"Bruk Cardboard Versjon 2",unmute:"Skru p\u00e5 lyd","enter-vr":"\u00c5pne VR Modus","enable-measure":"Start measuring","use-cardboard-info":"Du kan bruke hvilke some helst Google Cardboard kompatible headsett for \u00e5 se denne visningen i VR.","refresh-downloaded":"Last inn p\u00e5 nytt","use-default-cardboard":"Bruk Standard", "enable-audio-prompt":"Aktivere audio?"},"es-es":{mute:"Silenciar","cardboard-v1":"Si no esta seguro de que versi\u00f3n de Cardboard debe usar escoja la selecci\u00f3n de hotspot por defecto. Solo tendr\u00e1 que apuntar al hotspot y esperar para que se ejecute la acci\u00f3n.","download-tour":"Descargar el tour para reproducirlo sin conexi\u00f3n","change-to-drag-and-release":"Cambiar el modo de control a arrastrar y soltar",accept:"Aceptar","use-cardboard-v2":"Usar Cardboard v2","storage-not-provided-bookmark":"Almacenamiento persistente denagado. Intente a\u00f1adir la p\u00e1gina a los marcadores y recargarla.", "dont-display-again":"No volver a mostrar esta informaci\u00f3n","web-server-required":"Este tour virtual no puede reproducirse desde una unidad local. Por favor s\u00fabalo a internet y pruebe de nuevo.\nSi lo prefiere puede arrastrar el archivo html o la carpeta con el tour sobre el icono de la aplicaci\u00f3n Tour Viewer de su escritorio.",download:"Descargar","change-to-click-and-move":"Cambiar el modo de control a pulsar y mover",yes:"si","delete-downloaded":"Borrar","use-safari-for-vr":"Recomendamos Safari para ver este tour en modo VR", "exit-fullscreen":"Salir de pantalla completa",no:"no","download-failed":"La descarga ha fallado","giroscope-disabled-http":"Est\u00e1 accediendo a esta p\u00e1gina web por http por lo que el acceso al movimiento y la orientaci\u00f3n del dispositivo est\u00e1 deshabilitado, por favor acceda por https.","cookies-notice":"Esta p\u00e1gina usa cookies para recolectar estad\u00edsticas de uso. Para m\u00e1s informaci\u00f3n, visite la Pol\u00edtica de Cookies.","use-cardboard":"Usar Cardboard", "launch-default-browser":"Lanzar en el navegador por defecto","rotate-device":"Por favor, gire el dispositivo","exit-vr":"Salir de VR","storage-not-provided-launch-from-desktop":"Por favor lance el tour desde el escritorio para descargarlo.","disable-measure":"Stop measuring",cancel:"Cancel",downloading:"Descargando","cardboard-v2":"Si tiene unas gafas Cardboard v2, que vienen con un bot\u00f3n, puede apuntar al hotspot y pulsar el bot\u00f3n para que se ejecute su acci\u00f3n.","enable-video-audio-prompt":"\u00bfActivar v\u00eddeo y audio?", reject:"Rechazar",downloaded:"Este tour esta descargado para reproducirlo sin conexi\u00f3n.","samsung-internet-vr-app-info":"Si tiene unas gafas Gear VR compatibles con este dispositivo y tiene instalado Samsung Internet for VR puede usarlo para ver este contenido en VR, necesita hacer Samsung Internet su navegador por defecto.","samsung-internet-vr-info":"Si tiene unas gafas Gear VR compatibles con este dispositivo y tiene instalado Samsung Internet for VR puede usarlo para ver este contenido en VR, solo tiene que poner ahora el dispositivo en las gafas.", "enable-video-prompt":"\u00bfActivar v\u00eddeo?","giroscope-disabled-safari-request-permission":["El acceso al movimiento y la orientaci\u00f3n del dispositivo est\u00e1 deshabiltado para este sitio.","Para ver correctamente la p\u00e1gina por favor pulse Continuar y acepte la petici\u00f3n de permiso si se muestra."],"storage-not-provided-launch-from-homescreen":"Por favor lance el tour desde el icono de la pantalla de inicio para descargarlo.","enter-fullscreen":"Mostrar en pantalla completa", unmute:"Habilitar sonido","enter-vr":"Entrar al contenido VR","enable-measure":"Start measuring","use-cardboard-info":"Puede usar unas gafas compatibles con Google Cardboard para ver este contenido en VR.","refresh-downloaded":"Actualizar","use-default-cardboard":"Usar versi\u00f3n por defecto","enable-audio-prompt":"\u00bfActivar audio?"},"el-gr":{mute:"\u0391\u03c0\u03b5\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03b9\u03ae\u03c3\u03c4\u03b5 \u03c4\u03bf\u03bd \u03ae\u03c7\u03bf","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.", "download-tour":"Download Tour for offline playing","change-to-drag-and-release":"\u0391\u03bb\u03bb\u03ac\u03be\u03c4\u03b5 \u03c4\u03b7 \u03bb\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1 \u03b5\u03bb\u03ad\u03b3\u03c7\u03bf\u03c5 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03c3\u03cd\u03c1\u03b5\u03c4\u03b5 \u03ba\u03b1\u03b9 \u03bd\u03b1 \u03b1\u03c0\u03b5\u03bb\u03b5\u03c5\u03b8\u03b5\u03c1\u03ce\u03c3\u03b5\u03c4\u03b5",accept:"\u0391\u03c0\u03bf\u03b4\u03ad\u03c7\u03bf\u03bc\u03b1\u03b9",download:"Download", "storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",cancel:"Cancel","change-to-click-and-move":"\u0391\u03bb\u03bb\u03ac\u03be\u03c4\u03b5 \u03c4\u03b7 \u03bb\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1 \u03b5\u03bb\u03ad\u03b3\u03c7\u03bf\u03c5 \u03b3\u03b9\u03b1 \u03bd\u03b1 \u03ba\u03ac\u03bd\u03b5\u03c4\u03b5 \u03ba\u03bb\u03b9\u03ba \u03ba\u03b1\u03b9 \u03bd\u03b1 \u03bc\u03b5\u03c4\u03b1\u03ba\u03b9\u03bd\u03b7\u03b8\u03b5\u03af\u03c4\u03b5", yes:"\u039d\u03b1\u03af","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"\u0388\u03be\u03bf\u03b4\u03bf\u03c2 \u03b1\u03c0\u03cc \u03c4\u03b7\u03bd \u03c0\u03bb\u03ae\u03c1\u03b7 \u03bf\u03b8\u03cc\u03bd\u03b7",no:"\u03cc\u03c7\u03b9","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.", "cookies-notice":"\u0391\u03c5\u03c4\u03ae \u03b7 \u03b9\u03c3\u03c4\u03bf\u03c3\u03b5\u03bb\u03af\u03b4\u03b1 \u03c7\u03c1\u03b7\u03c3\u03b9\u03bc\u03bf\u03c0\u03bf\u03b9\u03b5\u03af cookie \u03b3\u03b9\u03b1 \u03c4\u03b7 \u03c3\u03c5\u03bb\u03bb\u03bf\u03b3\u03ae \u03c3\u03c4\u03b1\u03c4\u03b9\u03c3\u03c4\u03b9\u03ba\u03ce\u03bd \u03c3\u03c4\u03bf\u03b9\u03c7\u03b5\u03af\u03c9\u03bd \u03c7\u03c1\u03ae\u03c3\u03b7\u03c2. \u0393\u03b9\u03b1 \u03c0\u03b5\u03c1\u03b9\u03c3\u03c3\u03cc\u03c4\u03b5\u03c1\u03b5\u03c2 \u03c0\u03bb\u03b7\u03c1\u03bf\u03c6\u03bf\u03c1\u03af\u03b5\u03c2, \u03b5\u03c0\u03b9\u03c3\u03ba\u03b5\u03c6\u03b8\u03b5\u03af\u03c4\u03b5 \u03c4\u03b7\u03bd \u03a0\u03bf\u03bb\u03b9\u03c4\u03b9\u03ba\u03ae cookie .", "use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please rotate your device","exit-vr":"Exit VR",reject:"\u0391\u03c0\u03bf\u03c1\u03c1\u03af\u03c0\u03c4\u03c9","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"\u0395\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03ae\u03c7\u03bf\u03c5 \u03ba\u03b1\u03b9 \u03b2\u03af\u03bd\u03c4\u03b5\u03bf;", "storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"\u0395\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03b2\u03af\u03bd\u03c4\u03b5\u03bf;","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"\u0395\u03b9\u03c3\u03ac\u03b3\u03b5\u03c4\u03b5 \u03c4\u03b7\u03bd \u03c0\u03bb\u03ae\u03c1\u03b7 \u03bf\u03b8\u03cc\u03bd\u03b7", "use-cardboard-v2":"Use Cardboard v2",unmute:"\u0395\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03ae\u03c7\u03bf\u03c5","enter-vr":"Enter VR content","enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"\u0395\u03bd\u03b5\u03c1\u03b3\u03bf\u03c0\u03bf\u03af\u03b7\u03c3\u03b7 \u03ae\u03c7\u03bf\u03c5;"}, "da-dk":{mute:"Deaktiver lyd","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.","download-tour":"Download Tour for offline playing","change-to-drag-and-release":"Skift kontroltilstand for at tr\u00e6kke og slippe",accept:"Acceptere",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again", "web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.",cancel:"Cancel","change-to-click-and-move":"Skift kontroltilstand for at klikke og flytte",yes:"Ja","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Afslut fuldsk\u00e6rm",no:"ingen","download-failed":"Download failed", "giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.","cookies-notice":"Denne webside bruger cookies til at indsamle brugsstatistikker. For mere information, se venligst Cookiepolitik .","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please rotate your device","exit-vr":"Exit VR",reject:"Afvise","disable-measure":"Stop measuring", downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.","enable-video-audio-prompt":"Aktiv\u00e9r lyd og video?","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.", "samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.","enable-video-prompt":"Aktiv\u00e9r video?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."], "storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Indtast fuldsk\u00e6rm","use-cardboard-v2":"Use Cardboard v2",unmute:"Aktiv\u00e9r lyd","enter-vr":"Enter VR content","enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"Aktiv\u00e9r lyd?"},"pl-pl":{mute:"Wycisz", "cardboard-v1":"Je\u015bli nie masz pewno\u015bci, kt\u00f3rej wersji Cardboard u\u017cywasz, wybierz domy\u015blne sterowanie hotspotem. Nast\u0119pnie skieruj wzrok na hotspot i poczekaj na uruchomienie ich dzia\u0142ania.","download-tour":"Pobierz spacer do odtwarzania w trybie offline","change-to-drag-and-release":"Zmie\u0144 tryb na Przeci\u0105gnij i Upu\u015b\u0107",accept:"Zaakceptowa\u0107",cancel:"Anuluj","storage-not-provided-bookmark":"Odmowa zapisu w pami\u0119ci sta\u0142ej. Spr\u00f3buj doda\u0107 stron\u0119 do zak\u0142adek i za\u0142aduj j\u0105 ponownie.", "dont-display-again":"Nie wy\u015bwietlaj tego ponownie","web-server-required":"Nie mo\u017cna odtworzy\u0107 tego spaceru z dysku lokalnego. Prze\u015blij go do internetu i spr\u00f3buj ponownie.\nMo\u017cesz te\u017c przeci\u0105gn\u0105\u0107 plik htm (lub ca\u0142y folder spaceru) na ikon\u0119 aplikacji TourViewer.",download:"Pobierz","change-to-click-and-move":"Zmie\u0144 tryb na to Kliknij i Przenie\u015b",yes:"tak","delete-downloaded":"Usu\u0144","use-safari-for-vr":"Zalecamy Safari, jako przegl\u0105dark\u0119 spacer\u00f3w w trybie VR", "exit-fullscreen":"Wyjd\u017a z trybu pe\u0142nego ekranu",no:"nie","download-failed":"Pobieranie nie powiod\u0142o si\u0119","giroscope-disabled-http":"To jest dost\u0119p za po\u015brednictwem protoko\u0142u http, wi\u0119c dost\u0119p do ruchu i orientacji oraz tryb VR s\u0105 wy\u0142\u0105czone. Prze\u0142\u0105cz si\u0119\u00a0na protok\u00f3\u0142 https, aby je w\u0142\u0105czy\u0107.","cookies-notice":"Ta strona u\u017cywa plik\u00f3w cookie do zbierania statystyk u\u017cytkowania. Aby uzyska\u0107 wi\u0119cej informacji, odwied\u017a Zasady dotycz\u0105ce plik\u00f3w cookie.", "use-cardboard":"U\u017cyj Cardboard","launch-default-browser":"Uruchom w domy\u015blnej przegl\u0105darce","rotate-device":"Obr\u00f3\u0107 urz\u0105dzenie","exit-vr":"Wyjd\u017a z VR","storage-not-provided-launch-from-desktop":"Aby pobra\u0107, uruchom ponownie spacer klikaj\u0105c ikon\u0119 pulpitu.","disable-measure":"Stop measuring",downloading:"Pobieranie","cardboard-v2":"Je\u015bli masz okulary Cardboard v2, kt\u00f3re maj\u0105 przycisk, mo\u017cesz spojrze\u0107 na hotspot i nacisn\u0105\u0107 przycisk, aby uruchomi\u0107 ich dzia\u0142anie.", "enable-video-audio-prompt":"W\u0142\u0105czy\u0107 video i d\u017awi\u0119k?",reject:"Odrzuca\u0107",downloaded:"Spacer jest pobierany do odtwarzania w trybie offline.","samsung-internet-vr-app-info":"Je\u015bli masz okulary zgodne z Gear VR i zainstalowa\u0142e\u015b Samsung Internet for VR, mo\u017cesz je u\u017cy\u0107 do przegl\u0105dania zawarto\u015bci w VR. Musisz w tym przypadku ustawi\u0107 Samsung Internet jako domy\u015bln\u0105 przegl\u0105dark\u0119.","samsung-internet-vr-info":"Je\u015bli masz okulary Gear VR i zainstalowa\u0142e\u015b Samsung Internet for VR, to mo\u017cesz u\u017cy\u0107 ich do przegl\u0105dania zawarto\u015bci w VR. Umie\u015b\u0107 teraz telefon w okularach Gear VR.", "enable-video-prompt":"W\u0142\u0105czy\u0107 video?","giroscope-disabled-safari-request-permission":["Dost\u0119p do funkcji ruchu i orientacji oraz tryb VR s\u0105 wy\u0142\u0105czone dla tej strony.","Aby poprawnie wy\u015bwietli\u0107 stron\u0119, kliknij kontynuuj i zaakceptuj wszystkie zgody."],"storage-not-provided-launch-from-homescreen":"Aby pobra\u0107, uruchom ponownie spacer klikaj\u0105c ikon\u0119 strony g\u0142\u00f3wnej.","enter-fullscreen":"Uruchom pe\u0142ny ekran","use-cardboard-v2":"U\u017cyj Cardboard v2", unmute:"Wy\u0142\u0105cz Wycisz","enter-vr":"Wejd\u017a do VR","enable-measure":"Start measuring","use-cardboard-info":"Do wy\u015bwietlania w VR mo\u017cesz u\u017cy\u0107 oklular\u00f3w zgodnych z Google Cardboard.","refresh-downloaded":"Od\u015bwie\u017c","use-default-cardboard":"U\u017cyj Domy\u015blnych","enable-audio-prompt":"W\u0142\u0105czy\u0107 d\u017awi\u0119k?"},"fr-fr":{mute:"Couper le son","cardboard-v1":"Si vous n'\u00eates pas s\u00fbr de la version de votre Cardboard, s\u00e9lectionnez le contr\u00f4le de hotspot par d\u00e9faut. Ensuite, vous n'aurez qu'\u00e0 fixer un hotspot du regard et attendre que l'action se d\u00e9clenche.", "download-tour":"T\u00e9l\u00e9charger la visite pour jouer hors ligne","change-to-drag-and-release":"Changer le mode de contr\u00f4le en glisser-d\u00e9poser",accept:"Accepter",cancel:"Annuler","storage-not-provided-bookmark":"Stockage persistant refus\u00e9. Essayez de mettre cette page Web en signet et de la recharger.","dont-display-again":"Ne plus afficher ces informations","web-server-required":"Cette visite virtuelle ne peut pas \u00eatre lue \u00e0 partir d'un lecteur local. Veuillez la t\u00e9l\u00e9charger sur Internet et r\u00e9essayer.\nSi vous pr\u00e9f\u00e9rez, faites glisser le fichier htm (ou l'int\u00e9gralit\u00e9 du dossier de la visite) sur l'ic\u00f4ne de l'application TourViewer.", download:"T\u00e9l\u00e9charger","change-to-click-and-move":"Changer le mode de contr\u00f4le pour cliquer et d\u00e9placer",yes:"Oui","delete-downloaded":"Supprimer","use-safari-for-vr":"Nous recommandons Safari pour visionner cette visite en mode VR","exit-fullscreen":"Quitter le mode plein \u00e9cran",no:"Non","download-failed":"\u00c9chec du t\u00e9l\u00e9chargement","giroscope-disabled-http":"Vous acc\u00e9dez \u00e0 cette page Web via http, donc l'acc\u00e8s au mouvement et \u00e0 l'orientation de votre appareil et le mode VR sont d\u00e9sactiv\u00e9s, veuillez y acc\u00e9der via https pour les activer.", "cookies-notice":"Cette page Web utilise des cookies pour collecter des statistiques d'utilisation. Pour plus d'informations, veuillez consulter la Politique en mati\u00e8re de cookies.","use-cardboard":"Utiliser le Cardboard","launch-default-browser":"Lancer dans le navigateur par d\u00e9faut","rotate-device":"Veuillez faire pivoter votre appareil","exit-vr":"Quitter la r\u00e9alit\u00e9 virtuelle","storage-not-provided-launch-from-desktop":"Veuillez relancer la visite \u00e0 partir de l'ic\u00f4ne du bureau pour t\u00e9l\u00e9charger.", "disable-measure":"Arr\u00eatez de mesurer",downloading:"T\u00e9l\u00e9chargement","cardboard-v2":"Si vous disposez d'un casque Cardboard v2, qui est \u00e9quip\u00e9 d'un bouton, vous pouvez fixer un hotspot du regard et appuyer sur le bouton pour d\u00e9clencher son action.","enable-video-audio-prompt":"Activer la vid\u00e9o et l'audio?",reject:"Rejeter",downloaded:"Cette visite est t\u00e9l\u00e9charg\u00e9e pour jouer hors ligne.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.", "samsung-internet-vr-info":"Si vous disposez d'un casque Gear VR compatible avec cet appareil et que vous avez install\u00e9 Samsung Internet pour VR, vous pouvez \u00e9galement l'utiliser pour visualiser ce contenu en r\u00e9alit\u00e9 virtuelle. Il vous suffit de placer maintenant le t\u00e9l\u00e9phone mobile sur le casque.","enable-video-prompt":"Activer la vid\u00e9o?","giroscope-disabled-safari-request-permission":["L'acc\u00e8s au mouvement et \u00e0 l'orientation de votre appareil et le mode VR sont d\u00e9sactiv\u00e9s pour ce site.", "Pour voir correctement cette page Web, veuillez cliquer sur Continuer et accepter la demande d'autorisation si vous y \u00eates invit\u00e9."],"storage-not-provided-launch-from-homescreen":"Veuillez relancer la visite \u00e0 partir de l'ic\u00f4ne de l'\u00e9cran d'accueil pour t\u00e9l\u00e9charger.","enter-fullscreen":"Passer en mode plein \u00e9cran","use-cardboard-v2":"Utiliser le Cardboard v2",unmute:"R\u00e9tablir le son","enter-vr":"Entrez le contenu VR","enable-measure":"Commencer \u00e0 mesurer", "use-cardboard-info":"Vous pouvez utiliser n'importe quel casque Google Cardboard compatible pour visualiser ce contenu en r\u00e9alit\u00e9 virtuelle.","refresh-downloaded":"Rafra\u00eechir","use-default-cardboard":"Utiliser par d\u00e9faut","enable-audio-prompt":"Activer le son?"},"de-de":{mute:"Deaktiviere Audio","cardboard-v1":"Wenn Sie sich nicht sicher sind, welche Cardboard-Version Sie verwenden, w\u00e4hlen Sie die Standard-Hotspot-Steuerung. Sie schauen dann einfach auf einen Hotspot und warten, bis die jeweilige Aktion ausgel\u00f6st wird.", "download-tour":"Tour zum Offline-Abspielen herunterladen","giroscope-disabled-safari-request-permission":["Der Bewegungs- und Orientierungszugriff, sowie VR Modus Ihres Ger\u00e4ts ist f\u00fcr diese Seite deaktiviert.","Um diese Webseite korrekt anzuzeigen, klicken Sie auf Weiter und akzeptieren Sie die Erlaubnisanfrage, wenn Sie dazu aufgefordert werden."],accept:"Akzeptieren",download:"Download",downloading:"Downloading","dont-display-again":"Diese Info nicht mehr anzeigen","web-server-required":"Diese Virtual Tour kann nicht von einem lokalen Laufwerk abgespielt werden. Laden Sie Ihre Tour ins Internet und versuchen Sie es erneut.\nAlternativ, ziehen Sie die htm Datei (oder den ganzen Tour Ordner) auf das Icon der Tour Viewer App, um die Tour direkt lokal abzuspielen.", cancel:"Abbrechen","change-to-click-and-move":"\u00c4ndern Sie den Steuerungsmodus, um zu klicken und zu drehen",yes:"ja","delete-downloaded":"L\u00f6schen","use-safari-for-vr":"Wir empfehlen Safari, um diese Tour im VR-Modus zu sehen","exit-fullscreen":"Vollbild verlassen",no:"nein","storage-not-provided-bookmark":"Dauerhafte Speicherung verweigert. Versuchen Sie, diese Seite als Lesezeichen zu speichern und erneut zu laden.","download-failed":"Download fehlgeschlagen","giroscope-disabled-http":"Der Bewegungs- und Ausrichtungsszugriff Ihres Ger\u00e4ts ist f\u00fcr diese Webseite deaktiviert. Greifen Sie bitte \u00fcber https darauf zu.", "cookies-notice":"Diese Webseite verwendet Cookies, um Nutzungsstatistiken zu sammeln. Weitere Informationen finden Sie in der Cookie-Richtlinie.","use-cardboard":"Cardboard verwenden","launch-default-browser":"Im Standardbrowser starten","rotate-device":"Bitte drehen Sie Ihr Ger\u00e4t","exit-vr":"VR verlassen",reject:"Ablehnen","disable-measure":"Messung beenden","change-to-drag-and-release":"\u00c4ndern Sie den Steuerungsmodus zu Ziehen und Loslassen","cardboard-v2":"Wenn Sie ein Cardboard v2-Headset haben, das mit einer Taste ausgestattet ist, k\u00f6nnen Sie auf einen Hotspot blicken und die Taste dr\u00fccken, um dessen Aktion auszul\u00f6sen.", "enable-video-audio-prompt":"Video und Audio aktivieren?","storage-not-provided-launch-from-desktop":"Bitte starten Sie die Tour erneut \u00fcber das Desktop-Symbol, um sie herunterzuladen.",downloaded:"Diese Tour ist zum Offline-Abspielen heruntergeladen.","samsung-internet-vr-app-info":"Wenn Sie ein Gear VR-Headset haben, das mit diesem Ger\u00e4t kompatibel ist, und Sie Samsung Internet f\u00fcr VR installiert haben, k\u00f6nnen Sie es auch verwenden, um diese Inhalte in VR anzusehen. Machen Sie dazu Samsung Internet zu Ihrem Standardbrowser.", "samsung-internet-vr-info":"Wenn Sie ein Gear VR-Headset haben, das mit diesem Ger\u00e4t kompatibel ist, und Sie Samsung Internet f\u00fcr VR installiert haben, k\u00f6nnen Sie es auch verwenden, um diese Inhalte in VR zu sehen. Setzen Sie dazu nun das Mobiltelefon auf das Headset.","enable-video-prompt":"Video aktivieren?","storage-not-provided-launch-from-homescreen":"Bitte starten Sie die Tour erneut \u00fcber das Symbol auf dem Startbildschirm, um sie herunterzuladen.","enter-fullscreen":"Vollbildmodus aktivieren", "use-cardboard-v2":"Cardboard v2 verwenden",unmute:"Audio aktivieren","enter-vr":"VR Inhalt eingeben","enable-measure":"Messung beginnen","use-cardboard-info":"Sie k\u00f6nnen jedes kompatible Google Cardboard-Headset verwenden, um diese Inhalte in VR zu sehen.","refresh-downloaded":"Aktualisieren","use-default-cardboard":"Standard verwenden","enable-audio-prompt":"Audio aktivieren?"},"tr-tr":{mute:"Sesi devre d\u0131s\u0131 b\u0131rakmak","cardboard-v1":"If you are not sure, which Cardboard version you're using, select the default hotspot control. You'll then simply gaze at a hotspot and wait until the action is triggered.", "download-tour":"Download Tour for offline playing","change-to-drag-and-release":"S\u00fcr\u00fckleyip b\u0131rakmak i\u00e7in kontrol modunu de\u011fi\u015ftirin",accept:"Kabul etmek",download:"Download","storage-not-provided-bookmark":"Persistent storage denied. Try bookmarking this webpage and reloading it.","dont-display-again":"Don't display this info again","web-server-required":"This virtual tour cannot be played from a local drive. Please upload it to the internet and try again.\nIf you prefer, drag the htm file (or the entire folder of the tour) onto the icon of the TourViewer app.", cancel:"Cancel","change-to-click-and-move":"T\u0131klamak ve ta\u015f\u0131mak i\u00e7in kontrol modunu de\u011fi\u015ftirin",yes:"evet","delete-downloaded":"Delete","use-safari-for-vr":"We recommend Safari to view this tour in VR mode","exit-fullscreen":"Tam ekrandan \u00e7\u0131k",no:"hay\u0131r","download-failed":"Download failed","giroscope-disabled-http":"You are accessing this webpage through http so your device's motion and orientation access and VR mode are disabled, please access it through https to enable them.", "cookies-notice":"Bu web sayfas\u0131, kullan\u0131m istatistiklerini toplamak i\u00e7in tan\u0131mlama bilgileri kullan\u0131r. Daha fazla bilgi i\u00e7in l\u00fctfen \u00c7erez Politikas\u0131n\u0131 ziyaret edin.","use-cardboard":"Use Cardboard","launch-default-browser":"Launch in default browser","rotate-device":"Please rotate your device","exit-vr":"Exit VR",reject:"Reddet","disable-measure":"Stop measuring",downloading:"Downloading","cardboard-v2":"If you have a Cardboard v2 headset, which comes with a button, you can gaze at a hotspot and press the button to trigger its action.", "enable-video-audio-prompt":"Ses ve video etkinle\u015ftirilsin mi?","storage-not-provided-launch-from-desktop":"Please relaunch the tour from the desktop icon to download.",downloaded:"This tour is downloaded for offline playing.","samsung-internet-vr-app-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you need to make Samsung Internet your default browser.","samsung-internet-vr-info":"If you have a Gear VR headset compatible with this device and you have installed Samsung Internet for VR you can also use it to view this content in VR, you just need to put the mobile phone on the headset now.", "enable-video-prompt":"Video aktif edilsin mi?","giroscope-disabled-safari-request-permission":["Your device's motion and orientation access and VR mode are disabled for this site.","To properly see this webpage, please click continue and accept the permission request if prompted."],"storage-not-provided-launch-from-homescreen":"Please relaunch the tour from the home screen icon to download.","enter-fullscreen":"Tam ekran yap","use-cardboard-v2":"Use Cardboard v2",unmute:"Sesi etkinle\u015ftir","enter-vr":"Enter VR content", "enable-measure":"Start measuring","use-cardboard-info":"You can use any compatible Google Cardboard headset to view this content in VR.","refresh-downloaded":"Refresh","use-default-cardboard":"Use Default","enable-audio-prompt":"Ses aktif edilsin mi?"}}}); define("oF",["require","lo","il","mj"],function(a){function e(f){return m[c][f]||m.en[f]||f}var h=a("lo"),m=a("il"),k=a("mj"),b;for(b in m)m[b.substr(0,2)]=m[b];m.en["giroscope-disabled-safari-toggle-on"]='
Your device\'s motion and orientation access and VR mode are disabled for this site.
\n
To properly see this webpage, please enable it:
\n
    \n
  • Access you device\'s settings: "Settings > Safari > Privacy & Security" and toggle on: "Motion & Orientation Access".
  • \n
  • Refresh the browser.
  • \n
';m["zh-hk"]= m["zh-mo"]=m["zh-tw"];m.no=m.nn;var g=function(){var f=window.navigator,l=["language","browserLanguage","systemLanguage","userLanguage"],p,q,n=[];(p=k.getQueryParameter("language"))&&n.push(p.toLowerCase());var r=f.languages;if(Array.isArray(r))for(p=0;pd&&this.Cra();this.Dx?(this.Dx.gain.value=d,this.S.volume=1):this.S.volume=d;this.S.muted=0==d}};e.prototype.Hx=function(){var d=this.S.currentSrc||this.S.children.length&&this.S.children[0].src||"";k.rz(d)&&(d=void 0);return d};return e});define("oe",["require"],function(){return{Cn:"video",dBa:"audio"}}); define("nb","require lo oH kO hT cy gi v mj iq hd".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("kO"),k=a("hT"),b=a("cy"),g=a("gi"),d=a("v"),c=a("mj"),f=a("iq"),l=a("hd"),p=e.extend(g,function(q){g.call(this);this.S=q;this.WB=this.WB.bind(this);this.Ku=this.Ku.bind(this);this.tl=this.tl.bind(this);this.aC=this.aC.bind(this);this.zj=this.zj.bind(this);this.wl=this.wl.bind(this);this.mi=this.mi.bind(this);this.Or=this.Or.bind(this);this.lO=this.lO.bind(this);this.S.addEventListener("ended",this.tl, !0);this.S.addEventListener("pause",this.wl,!1);this.S.addEventListener("stalled",this.wl,!1);this.S.addEventListener("waiting",this.wl,!1);this.S.addEventListener("canplay",this.WB,!0);this.S.addEventListener("canplaythrough",this.Ku,!1);this.S.addEventListener("loadedmetadata",this.zj,!0);this.S.addEventListener("play",this.mi,!1);this.S.addEventListener("playing",this.Or,!1);this.S.addEventListener("error",this.aC,!1);this.h4=!1;this.A=m.T;this.wG=this.Th=null;l.bind(h.pa,this.fTa,this)});p.prototype.clear= function(){this.S&&(this.S.removeEventListener("ended",this.tl,!0),this.S.removeEventListener("pause",this.wl,!1),this.S.removeEventListener("stalled",this.wl,!1),this.S.removeEventListener("waiting",this.wl,!1),this.S.removeEventListener("canplay",this.WB,!0),this.S.removeEventListener("canplaythrough",this.Ku,!1),this.S.removeEventListener("loadedmetadata",this.zj,!0),this.S.removeEventListener("play",this.mi,!1),this.S.removeEventListener("error",this.aC,!1),this.S=null)};p.prototype.play=function(){this.S.log("PlaybackController", "play");this.wG=m.X;this.VM()};p.prototype.stop=function(){this.S.log("PlaybackController","stop");this.wG=m.T;this.VM()};p.prototype.getState=function(){return this.Th||this.A};p.prototype.wD=function(){return this.S.readyState==this.S.HAVE_NOTHING||this.S.readyState==this.S.HAVE_METADATA||0===this.S.currentTime?!1:!0};p.prototype.VM=function(){!this.Th&&this.wG&&(this.Th=this.wG,this.wG=null,this.Th==m.X?this.i$():this.h$())};p.prototype.fTa=function(){if(l.visible)this.S.log("PlaybackController", "visibile changed to true, setting state to "+this.A),this.Th=this.A,this.Th==m.X?this.i$():this.h$();else if(!this.S.paused){this.S.log("PlaybackController","paused by visibile changed to false");var q=this.S.pause();q&&q["catch"](this.aC)}};p.prototype.Hx=function(){return this.S.currentSrc||this.S.children.length&&this.S.children[0].src||""};p.prototype.i$=function(){var q=this.Hx();this.pW(q&&!c.rz(q));this.wR=d.browser()==d.Xh;this.S.paused?(this.S.log("PlaybackController","startPlaying calling play"), this.S.muted=!0,this.S.log("PlaybackController","this._media.play()"),(q=this.S.play())&&q["catch"](this.aC)):(this.S.log("PlaybackController","startPlaying already playing"),this.mi())};p.prototype.Or=function(){this.S.log("PlaybackController","onPlaying event received. Visible: "+l.visible)};p.prototype.mi=function(){this.Th==m.X?(this.S.log("PlaybackController","onPlay event received when waiting to play"),this.Th=null,this.A=m.X,this.trigger(new b(p.z0)),this.VM()):this.S.log("PlaybackController", "onPlay event received. Visible: "+l.visible)};p.prototype.h$=function(){this.pW(!1);this.wR=!1;if(this.S.paused)this.S.log("PlaybackController","startPausing already paused"),this.wl();else{this.S.log("PlaybackController","startPausing calling pause");var q=this.S.pause();q&&q["catch"](this.aC)}};p.prototype.wl=function(){this.Th==m.T?(this.S.log("PlaybackController","onPause event received when waiting to stop"),this.Th=null,this.A=m.T,this.VM()):l.visible?(this.S.log("PlaybackController","onPause event received without calling to pause"), (this.A==m.X&&!this.Th||this.Th==m.X)&&!this.S.hasAttribute("loop")&&!isNaN(this.S.duration)&&this.S.currentTime==this.S.duration&&0=this.S.HAVE_ENOUGH_DATA&&void 0!==this.cG){this.S.log("TimeController","updateCurrentTime when can play through set time to: "+this.cG);try{this.S.currentTime=this.cG}catch(d){}this.cG=void 0}};g.prototype.Ye=function(){this.trigger(new h(g.Jf))}; g.prototype.$U=function(){if(k.xba()&&!k.uwa()&&!this.S.paused&&this.S.readyState>=this.S.HAVE_ENOUGH_DATA){var d=(new Date).getTime();this.TT||(this.TT=d);this.K6&&500this.FJ){this.FJ=void 0;try{this.S.currentTime-=.01}catch(c){}}this.Ye()};g.prototype.P9=function(d){!!this.PC!=d&&(this.PC?(clearInterval(this.PC),this.PC=null):this.PC=setInterval(this.Ye,16))};g.prototype.Hx=function(){return this.S.currentSrc|| this.S.children.length&&this.S.children[0].src||""};g.Jf="time update";g.Ei="duration update";return g}); define("lH","require jquery.mod lo fS v mj".split(" "),function(a){function e(){}a("jquery.mod");var h=a("lo"),m=a("fS"),k=a("v");a=a("mj");e.Yaa=!1;e.d_a=function(){e.Yaa=!0};e.jKa=function(){window.MediaSource=window.MediaSource||window.O0a;return window.MediaSource&&"function"===typeof window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')};e.vKa=function(){if(k.browser()==k.Xh){var d=k.yD();if(10<=d&&11>d||11.3<=d)return!0}return!1}; e.kKa=function(){return k.browser()==k.dm||k.browser()==k.Xh?!0:!1};var b;e.Dua=function(d){try{return b||(b=document.createElement("audio")),!!b.canPlayType(d).replace(/^no$/,"")}catch(c){}return!1};var g;e.QH=function(d){try{return g||(g=document.createElement("video"),g.setAttribute("webkit-playsinline","true"),g.setAttribute("playsinline","true")),!!g.canPlayType(d).replace(/^no$/,"")}catch(c){}return!1};e.KTa=function(){return k.browser()==k.Xh?15<=k.yD()||m?!0:!1:!0};e.lKa=function(){try{if(document.createElement("canvas").getContext("webgl"))return!0}catch(d){}try{if(document.createElement("canvas").getContext("experimental-webgl"))return!0}catch(d){}return!1}; e.wAa=function(d,c,f,l){if(k.fe()==k.Hi)if(!f||30=d&&1584>=c)return!0}else{if(4096>=d&&2048>=c)return!0}else if(k.yP()&&!k.tI())if("h264"==l){if(4400>=d&&4400>=c||6200>=d&&3100>=c)return!0}else{if(5760>=d&&5760>=c||8192>=d&&4096>=c)return!0}else if(k.HWa()&&!k.tI())if(!f||30=d&&2880>=c||4096>=d&&2048>=c)return!0}else{if(4096>=d&&4096>=c||5760>=d&&2880>=c||2880>=d&&5760>=c)return!0}else if(k.yP()&&k.bZ()){if("h264"==l&&(5760>=d&&5760>=c||7680>=d&&3840>=c)||3840>=d&&2160>=c)return!0}else if(k.eZ())if("h264"== l){if(5760>=d&&5760>=c||7680>=d&&3840>=c)return!0}else{if(4400>=d&&2200>=c)return!0}else if(k.jb()){if(3840>=d&&2160>=c)return!0}else if(4096>=d&&2048>=c)return!0;return!1};e.MTa=function(){return k.eZ()||k.yP()&&k.hd()==k.Wq||!k.jb()&&e.Yaa&&k.browser()==k.Uk?!0:!1};e.vAa=function(d){return e.wAa(d.get("width"),d.get("height"),d.get("framerate"),d.get("codec"))};e.LTa=function(){return e.Yaa?!0:!1};e.NTa=function(){return k.yP()||k.eZ()||!k.Rf()?!0:!1};e.K_a=function(d,c){return e.wAa(d,c,30)};e.log= function(){h.log("webgl: "+e.Ys);h.log("html5 audio: "+e.Cwa);h.log("html5 video: "+e.Fwa)};e.OQa=function(){return["webgl:"+e.Ys,"html5audio:"+e.Cwa,"html5video:"+e.Fwa].join(" ")};e.Ewa=e.Dua('audio/ogg; codecs="vorbis"');e.Dwa=e.Dua("audio/mpeg");e.Cwa=e.Ewa||e.Dwa;e.rca=e.QH('video/ogg; codecs="theora"');e.QH('video/mp4; codecs="avc1.42E01E"');e.sca=e.QH('video/webm; codecs="vp8, vorbis"');e.gWa=e.QH('video/mp4; codecs="hev1"');e.TY=e.QH("video/mp4");e.hWa=e.QH("video/quicktime");e.Gwa=e.vKa(); e.owa=e.kKa();e.UVa=e.owa||e.TY&&e.jKa();e.Fwa=e.rca||e.TY||e.sca;e.Ys=e.lKa();a.cj("debug")&&a.cj("capabilities")&&e.log();e.summary=e.OQa();return e}); define("cv",["require","mj"],function(a){function e(){this.XT=this.N6=null;this.St=[];this.Zx=!1;this.Tx=void 0}var h=a("mj");e.prototype.initialize=function(m,k){this.N6=h.nw(m);this.XT=k;this.ea()};e.prototype.load=function(m,k){var b={};b.call=m;b.context=k||window;this.St.push(b);this.Tx||(this.Tx=this.Zka());this.ea()};e.prototype.dj=function(){return void 0!==this.Tx};e.prototype.ea=function(){0u.indexOf(v.item())&&v.LUa()});this.zc(0"),this.O.css({position:"absolute",left:0, top:0}),this.Bb().append(this.O))};b.prototype.Va=function(){var g=!1;this.I("color")&&(g=!0,this.P("color"));this.I("direction")&&(g=!0,this.P("direction"));this.Vt&&(g=!0,this.Vt=!1);if(g){g=this.rf();var d=this.qf(),c=this.B("color"),f=this.B("direction"),l=[.5*g,0,g];f=f==b.V_?[d,0,0]:[0,d,d];var p=this.O.get(0);p.width=g;p.height=d;p=p.getContext("2d");p.clearRect(0,0,g,d);p.beginPath();p.moveTo(l[0],f[0]);p.lineTo(l[1],f[1]);p.lineTo(l[2],f[2]);p.fillStyle=c;p.fill()}k.prototype.Va.call(this)}; b.V_="down";b.o0a="up";return b}); define("hA","require lo cy mQ bc oH d gJ oc oZ iQ".split(" "),function(a){var e=a("lo"),h=a("cy"),m=a("mQ"),k=a("bc"),b=a("oH"),g=a("d"),d=a("gJ"),c=a("oc"),f=a("oZ"),l=a("iQ");a=e.extend(c,function(){c.call(this);this.Be("DropDownButton");this.Qw=this.Ta=null;this.G6=!0;this.set("autoRolledOver",!0);this.set("autoPressed",!0);this.set("childrenInteractionEnabled",!1);this.set("contentOpaque",!0);this.set("cursor",k.df);this.bind(b.qa,this.n4,this)});a.prototype.nb=function(){c.prototype.nb.call(this); this.h("arrowColor","#000000");this.h("arrowBeforeLabel");this.h("arrowWidth",9);this.h("arrowHeight",5);this.h("arrowGap",5);this.h("shadow",!1);this.h("layout",g.Dg);this.h("verticalAlign",m.he);this.h("borderRadius",5);this.h("borderColor","#AAAAAA");this.h("borderSize",1);this.h("backgroundColor",["#FAFAFA","#E5E5E5"]);this.h("backgroundColorRatios",[0,1]);this.h("backgroundColorDirection","vertical");this.h("paddingLeft",5);this.h("paddingTop",5);this.h("paddingRight",5);this.h("paddingBottom", 5);this.h("fontFamily");this.h("fontSize");this.h("fontColor","#555555");this.h("fontWeight");this.h("fontStyle");this.h("textDecoration");this.h("textShadowColor");this.h("textShadowHorizontalLength");this.h("textShadowVerticalLength");this.h("textShadowBlurRadius");this.h("textShadowOpacity");this.u("rollOverBorderColor",d.U,"borderColor");this.u("rollOverArrowColor",d.U,"arrowColor");this.u("rollOverBackgroundColor",d.U,"backgroundColor");this.u("rollOverBackgroundColorRatios",d.U,"backgroundColorRatios"); this.u("rollOverShadow",d.U,"shadow");this.u("pressedBorderColor",d.ob,"borderColor");this.u("pressedArrowColor",d.ob,"arrowColor");this.u("pressedBackgroundColor",d.ob,"backgroundColor");this.u("pressedBackgroundColorRatios",d.ob,"backgroundColorRatios");this.u("pressedShadow",d.ob,"shadow");this.u("pressedRollOverBorderColor",d.$b,"borderColor");this.u("pressedRollOverArrowColor",d.$b,"arrowColor");this.u("pressedRollOverBackgroundColor",d.$b,"backgroundColor");this.u("pressedRollOverBackgroundColorRatios", d.$b,"backgroundColorRatios");this.u("pressedRollOverShadow",d.$b,"shadow");this.u("pressedBorderColor",d.ca,"borderColor");this.u("pressedArrowColor",d.ca,"arrowColor");this.u("pressedBackgroundColor",d.ca,"backgroundColor");this.u("pressedBackgroundColorRatios",d.ca,"backgroundColorRatios");this.u("pressedShadow",d.ca,"shadow")};a.prototype.set=function(p,q){"label"==p&&this.get("label")!=q&&(this.G6=!0,this.le());c.prototype.set.call(this,p,q)};a.prototype.Ab=function(){c.prototype.Ab.call(this); this.Ta||(this.Ta=new l,this.Ta.set("width","100%"),this.Wa(this.Ta));this.Qw||(this.Qw=new f,this.Qw.set("direction",f.V_),this.Wa(this.Qw))};a.prototype.n4=function(){this.open();this.trigger(new h(b.OPEN))};a.prototype.open=function(){this.unbind(b.qa,this.n4,this);this.sN(!0)};a.prototype.close=function(){this.bind(b.qa,this.n4,this);this.sN(!1)};a.prototype.Va=function(){if(this.G6){var p=this.get("label");this.Ta.set("text",p);this.G6=!1}this.lc("horizontalAlign fontFamily fontSize fontColor fontWeight fontStyle textDecoration textShadowColor textShadowHorizontalLength textShadowVerticalLength textShadowBlurRadius textShadowOpacity".split(" "), {},[this.Ta],!0,!0);this.I("arrowGap")&&(this.set("gap",this.B("arrowGap")),this.P("arrowGap"));this.I("arrowColor")&&(this.Qw.set("color",this.B("arrowColor")),this.P("arrowColor"));this.I("arrowBeforeLabel")&&(1==this.B("arrowBeforeLabel")?this.pn(this.Qw,0):this.pn(this.Ta,0),this.P("arrowBeforeLabel"));this.I("arrowWidth")&&(this.Qw.set("width",this.B("arrowWidth")),this.P("arrowWidth"));this.I("arrowHeight")&&(this.Qw.set("height",this.B("arrowHeight")),this.P("arrowHeight"));c.prototype.Va.call(this)}; return a});define("hp",["require","eg","lo","oc","d"],function(a){var e=a("eg"),h=a("lo"),m=a("oc");a=a("d");var k=h.extend(m,function(){m.call(this)});k.vc={layout:a.uh};e.defaults(k.vc,m.vc);k.prototype.nb=function(){this.Ln(k.vc)};return k}); define("lv","require lo cy mQ bc hH oH oc hp iQ".split(" "),function(a){var e=a("lo"),h=a("cy"),m=a("mQ"),k=a("bc"),b=a("hH"),g=a("oH"),d=a("oc"),c=a("hp"),f=a("iQ");a=e.extend(d,function(){d.call(this);this.Be("DropDownPopup");this.Zd=null;this.GR=!1;this.vb=null;this.mL=[];this.Qy=!0});a.prototype.open=function(l){this.Zd=l;this.GR=!0;this.Jb().pn(this,this.Jb().Kb().length-1);this.set("overIndex",-1);this.set("visible",!0);this.bind(g.ub,this.Od,this);this.Jb().bind(g.Zb,this.Kr,this);this.Jb().bind(g.kc, this.hc,this)};a.prototype.close=function(){this.Zd=null;this.GR=!0;this.set("visible",!1);this.vb.set("overflow",b.wE);this.vb.set("contentOpaque",!0);this.unbind(g.ub,this.Od,this);this.Jb().unbind(g.Zb,this.Kr,this);this.Jb().bind(g.kc,this.hc,this)};a.prototype.Ab=function(){d.prototype.Ab.call(this);this.vb||(this.vb=new c,this.vb.set("overflow",b.wE),this.vb.bind(g.kc,this.hc,this),this.vb.bind(g.fp,this.Gy,this),this.Wa(this.vb))};a.prototype.hc=function(){this.lta()};a.prototype.Od=function(){this.v9= !1};a.prototype.Gy=function(){this.v9=!0};a.prototype.Kr=function(){-1!=this.get("overIndex")||this.v9&&this.Rn||this.trigger(new h(g.hE));this.v9=!1};a.prototype.hMa=function(l){this.set("overIndex",this.l5(l.source))};a.prototype.iMa=function(l){l=this.l5(l.source);this.get("overIndex")==l&&this.set("overIndex",-1)};a.prototype.gMa=function(l){l=this.l5(l.source);this.set("overIndex",l);this.set("selectedIndex",l);this.trigger(new h(g.An))};a.prototype.l5=function(l){for(var p=0;p=w?(this.Qy=!0,this.vb.set("top",p.top+n+r),this.vb.set("maxHeight",v)):(this.Qy=!1,this.vb.set("top",p.top-w+r),this.vb.set("maxHeight",w)),this.vb.set("overflow",b.fp));n=x==m.Ge?p.left+Math.round(.5*(q-t)):x==m.hb?p.left+q-t:p.left;0>n?n=p.left:p.left+ t>l.Xa()&&(n=p.left+q-t);this.vb.set("left",n);this.Tsa()}};a.prototype.Tsa=function(){var l=this.B("popUpBorderRadius");this.vb.ja({borderTopRadius:this.Qy?0:l,borderBottomRadius:this.Qy?l:0});for(var p=this.vb.Kb(),q=0;q=f.length&&(c=-1);this.set("selectedIndex",c);this.Aj.set("items",this.B("items"));this.Aj.set("selectedIndex",this.B("selectedIndex"));this.P("items");this.P("selectedIndex");this.yo&&(this.yo=!1,this.trigger(new h(m.pa)))}d&&(d=this.B("label"),d||(c=this.B("selectedIndex"), d=0>c?this.B("prompt"):this.B("items")[c]),this.Zd.set("label",d));this.Kra&&(this.Aj.set("minWidth",this.Zd.Xa()),this.Aj.set("buttonWidth",this.Zd.Xa()));this.lc("fontFamily fontSize fontColor fontWeight fontStyle textDecoration horizontalAlign textShadowColor textShadowHorizontalLength textShadowVerticalLength textShadowBlurRadius textShadowOpacity".split(" "),{},[this.Zd,this.Aj],!0,!0);this.lc("popUpBorderRadius popUpGap popUpPaddingBottom popUpPaddingLeft popUpPaddingRight popUpPaddingTop popUpBackgroundColor popUpBackgroundOpacity rollOverPopUpBackgroundColor selectedPopUpBackgroundColor popUpFontColor rollOverPopUpFontColor selectedPopUpFontColor popUpShadow popUpShadowBlurRadius popUpShadowColor popUpShadowHorizontalLength popUpShadowOpacity popUpShadowSpread popUpShadowVerticalLength".split(" "), {},[this.Aj],!0,!0);this.lc("arrowBeforeLabel arrowWidth arrowHeight arrowColor rollOverArrowColor pressedArrowColor pressedRollOverArrowColor arrowGap shadow shadowBlurRadius shadowColor shadowHorizontalLength shadowOpacity shadowSpread shadowVerticalLength borderRadius borderTopRadius borderBottomRadius borderLeftRadius borderRightRadius borderTopLeftRadius borderTopRightRadius borderBottomLeftRadius borderBottomRightRadius borderSize borderLeftSize borderTopSize borderRightSize borderBottomSize borderColor borderLeftColor borderTopColor borderRightColor borderBottomColor rollOverBorderColor pressedBorderColor pressedRollOverBorderColor backgroundColor backgroundColorRatios backgroundColorDirection backgroundOpacity rollOverBackgroundColor rollOverBackgroundColorRatios rollOverShadow pressedBackgroundColor pressedBackgroundColorRatios pressedShadow pressedRollOverBackgroundColor pressedRollOverBackgroundColorRatios pressedRollOverShadow paddingLeft paddingTop paddingRight paddingBottom".split(" "), {},[this.Zd],!0,!0);k.prototype.Va.call(this)};return a}); define("fF",["require","y","oH","nx","oR"],function(a){var e=a("y"),h=a("oH"),m=a("nx"),k=a("oR");a=m.define("DropDown",k,function(){k.call(this);this.od=null;this.fma=[];this.bind(h.pa,this.bMa,this)});a.prototype.set=function(b,g){if("playList"==b){if(this.od)for(this.od.unbind("change",this.Ru,this);this.fma.length;)this.fma.shift().Iz();(this.od=g)?(e.Xs(this.od,"items.label",this.qX,this),e.Xs(this.od,"items.media.label",this.qX,this),this.qX(),this.od.bind("change",this.Ru,this),this.Ru()): this.qX()}k.prototype.set.call(this,b,g)};a.prototype.qX=function(){this.od?this.set("items",this.od.get("items").map(function(b){return b.get("label")||b.get("media")&&b.get("media").get("label")})):this.set("items",[])};a.prototype.Ru=function(){this.set("selectedIndex",this.od.get("selectedIndex"))};a.prototype.bMa=function(){this.od&&this.od.set("selectedIndex",this.get("selectedIndex"))};return a}); define("do",["require","lP","nx"],function(a){var e=a("lP");a=a("nx").define("DustPanoramaOverlay",e,function(){e.call(this)});a.prototype.get=function(h,m){"startState"==h&&void 0===m&&(m=this.get("initialState"));return e.prototype.get.call(this,h,m)};return a}); define("bB",["require","nx","es"],function(a){var e=a("nx"),h=a("es");a=e.define("Effect",h,function(){h.call(this)});a.prototype.cancel=function(){return h.prototype.cancel.apply(this,arguments)};a.prototype.getPosition=function(){return h.prototype.Qk.apply(this,arguments)};a.prototype.play=function(){return h.prototype.play.apply(this,arguments)};a.prototype.reverse=function(){return h.prototype.reverse.apply(this,arguments)};a.prototype.stop=function(){return h.prototype.stop.apply(this,arguments)}; return a});define("jK",["require","nx","iy"],function(a){var e=a("nx"),h=a("iy");return e.define("ExternalModel3DObject",h,function(){h.call(this)})}); define("bn",["require","lo","es"],function(a){var e=a("lo"),h=a("es");a=e.extend(h,function(){h.call(this);this.V1=this.T1=null});a.prototype.aH=function(){h.prototype.aH.call(this);this.T1=[];this.V1=[];this.Ax(function(m){this.T1.push(this.get("alphaFrom",m.Pk()));this.V1.push(this.get("alphaTo",m.Pk()))});this.SV()};a.prototype.ov=function(){h.prototype.ov.call(this);this.SV()};a.prototype.SV=function(){this.Ax(function(m,k){var b=this.T1[k];k=b+(this.V1[k]-b)*this.Qk();!(0this.ai.indexOf(b.source)&&(this.ai.push(b.source),1==this.ai.length&&this.oG())};a.prototype.nna=function(b){b=this.ai.indexOf(b.source);0<=b&&(this.ai.splice(b,1),0==this.ai.length&&this.Om())};a.prototype.oG=function(){var b=this.get("effect"),g=this.get("rollOverEffect");g&&(b&&0this.items.indexOf(n)&&(this.items.push(n),n.xI(this.priority),n.Tca(1))}.bind(this))};h.prototype.aYa=function(q){var n=this.items;this.items=[];n.forEach(function(r){0>q.indexOf(r)?this.items.push(r):(r.xI(-this.priority),r.Tca(-1))}.bind(this))};h.prototype.TXa=function(){this.items.forEach(function(q){q.xI(-this.priority); q.Tca(-1)}.bind(this));this.items=[];this.priority=0};h.prototype.xI=function(q){this.priority+=q;this.items.forEach(function(n){n.xI(q)})};e.ae=[];e.cqa=[];e.lIa=0;e.gua=function(q,n){this.OV(q).BTa(n.map(function(r){return this.wa(r)}.bind(this)));this.IW();this.ea()};e.eYa=function(q,n){this.OV(q).aYa(n.map(function(r){return this.wa(r)}.bind(this)));this.IW();this.ea()};e.UXa=function(q){this.OV(q).TXa();this.IW();this.ea()};e.uZ=function(q,n){this.OV(q).xI(n);this.IW();this.ea()};e.IW=function(){this.ae.sort(function(q, n){return n.priority-q.priority})};e.ea=function(q){if(this.enabled()&&(q||!this.rs))if(q){this.rs&&clearTimeout(this.rs);this.rs=null;q=this.jJa();var n=this.kJa();m(q).difference(n).forEach(function(r){r.stop()});m(n).difference(q).forEach(function(r){r.start()})}else this.rs=setTimeout(function(){this.rs=null;this.ea(!0)}.bind(this),1E3)};e.rs=null;e.jJa=function(){return this.ae.filter(function(q){return q.status==p.cR})};e.kJa=function(){for(var q=this.lJa(),n=[],r=0;rthis.get("hfov"))return!0}return h.prototype.get.call(this,m,k)};a.prototype.set=function(m,k){switch(m){case "cardboardMenu":this.set("vrMenu",k)}h.prototype.set.call(this,m,k)};a.prototype.o5=function(){var m= h.prototype.get.call(this,"overlays");m||(m=[]);return this.b$(m)};a.prototype.b$=function(m){if(void 0===this.bH||this.ST!=m){var k=function(g){return e.Na("PopupPanoramaOverlay",g)},b=function(g){return e.Na("LensFlarePanoramaOverlay",g)};this.ST=m;this.bH=[].concat(m.filter(function(g){return!(k(g)||b(g))}),m.filter(b),m.filter(k))}return this.bH};a.prototype.wwa=function(){return 0m.indexOf(h.lr)&&e.prototype.get.call(this,"grayscale")&&(m=m.concat([h.lr])),m}return e.prototype.get.call(this,m,k)};h.prototype.vwa=function(m){return 0<=this.get("tags").indexOf(m)};h.lr="preload";h.dR="mobile";h.pga="ipadpro";h.eR="mobilevr";h.m1= "mobilevr2gen";h.n1="ondemand";return h}); define("ga",["require","lZ","v","mj"],function(a){var e=a("lZ"),h=a("v"),m=a("mj");return{Gq:function(k){return this.Jj(k,"load")},rD:function(k){return this.Jj(k,"preload")},nI:function(k){return this.Gq(k)!=this.rD(k)},Jj:function(k,b){k=k.get("levels")||[];var g=this.vIa(k);g=this.FJa(b,g);k=this.ZHa(k,b);(b=this.dla(k,g[0],g[1],this.DJa(b)))||(b=this.dla(k,g[0],g[1],void 0));return b},ZHa:function(k,b){"preload"==b?k=this.zK(k,e.lr):"load"==b&&(k=this.YHa(k,e.lr));h.Sv()&&(k=this.zK(k,e.pga)); h.cZ()&&(k=this.zK(k,e.m1));h.Rf()&&(k=this.zK(k,e.eR));h.jb()&&(k=this.zK(k,e.dR));return k},vIa:function(k){if(0==k.length)return 1;k.sort(function(b,g){return g.get("width")-b.get("width")});return k[0].get("width")/k[0].get("height")},FJa:function(k,b){if("preload"==k)return[0,0];k=1E4;this.eIa()||(h.Rf()?k=2048:h.Sv()?k=2048:h.jb()&&(k=1024));return 1>b?[k*b,k]:[k,k/b]},DJa:function(k){if("load"==k)return!1},eIa:function(){return h.Sv()&&m.Wh("recent_ipad_use_max_res",!1)},zK:function(k,b){var g= k.filter(function(d){return d.vwa(b)});0==g.length&&(g=k);return g},YHa:function(k,b){var g=k.filter(function(d){return!d.vwa(b)});0==g.length&&(g=k);return g},dla:function(k,b,g,d){function c(f){return Math.abs(f.get("width")*f.get("height")-b*g)}k=k.filter(function(f){return void 0!==d&&d!=f.get("grayscale",!1)?!1:!0});if(0==k.length)return null;k.sort(function(f,l){return c(f)-c(l)});return k[0]}}}); define("L",["require","lP","nx","ga"],function(a){var e=a("lP"),h=a("nx"),m=a("ga");a=h.define("HotspotMapOverlayImageBase",e,function(){e.call(this)});a.prototype.Gq=function(){return this.get("image")?m.Gq(this.get("image")):null};a.prototype.rD=function(){return this.get("image")?m.rD(this.get("image")):null};return a});define("lp",["require","lo","cy"],function(a){var e=a("lo"),h=a("cy");return e.extend(h,function(m,k){h.call(this,m);this.Sg=k})}); define("cq",["require","lo","lP","oH","lp"],function(a){var e=a("lo"),h=a("lP"),m=a("oH"),k=a("lp");a=e.extend(h,function(){h.call(this);this.pO=[];this.Yf=void 0;this.A="initial"});a.prototype.Os=function(){return this.pO};a.prototype.MI=function(b){this.pO!=b&&(this.pO=b,this.Xx=this.Yf=void 0)};a.prototype.lZa=function(b){this.Yf!==b&&(this.A="loading",this.Yf=b,this.trigger(new k(m.ec,this.Yf)))};a.prototype.fQ=function(){"loaded"!==this.A&&(this.A="loaded",this.trigger(m.Z))};a.prototype.LYa= function(){"loaded"!==this.A&&(this.A="error",this.trigger(m.tc))};return a});define("dk",["require","lo","cq"],function(a){var e=a("lo"),h=a("cq");a=e.extend(h,function(m){h.call(this);this.Ce=m;this.v=void 0});a.prototype.getType=function(){return this.Ce};a.prototype.$Va=function(m){return void 0!==this.v&&this.v===m.v};a.zga="map";a.Aga="overlay";return a}); define("jP",["require","lo","dk"],function(a){var e=a("lo"),h=a("dk");a=e.extend(h,function(m,k,b){h.call(this,h.Aga);this.gNa=m;this.Ha=k;this.Ka=b});a.prototype.getX=function(){return this.Ha};a.prototype.getY=function(){return this.Ka};a.yga="image";a.wga="fov";return a}); define("lT",["require","lo","jP"],function(a){var e=a("lo"),h=a("jP");a=e.extend(h,function(m,k,b,g,d,c,f,l,p,q,n,r){h.call(this,h.yga,b,g);this.v=m;this.Fd=k;this.Eqa=d;this.Iu=c;this.Ju=f;this.ia=l;this.ua=p;this.Df=q;this.kl=n;this.Ol=r;this.pO=[k]});a.prototype.wi=function(){return this.Fd};a.prototype.rd=function(){return this.ia};a.prototype.ee=function(){return this.ua};return a}); define("he",["require","nx","L","ga","lT"],function(a){var e=a("nx"),h=a("L"),m=a("ga"),k=a("lT");a=e.define("HotspotMapOverlayImage",h,function(){h.call(this);this.Eu=void 0});a.prototype.getItem=function(){return this.Kj()};a.prototype.Kj=function(){void 0===this.Eu&&(this.Eu=this.fY());return this.Eu};a.prototype.fY=function(b){var g=this.get("image");return g?(g=m.Gq(g),new k(this,g.get("url"),this.get("x"),this.get("y"),b,this.get("offsetX"),this.get("offsetY"),this.get("width"),this.get("height"), this.get("scaleMode"),this.get("horizontalAlign"),this.get("verticalAlign"))):null};return a});define("O",["require","nx","L"],function(a){var e=a("nx"),h=a("L");return e.define("HotspotMapOverlayMap",h,function(){h.call(this)})}); define("gg",["require","lP","oH","nx","kk"],function(a){var e=a("lP"),h=a("oH"),m=a("nx"),k=a("kk");a=m.define("HotspotPanoramaOverlayImageBase",e,function(){e.call(this);this.dd=void 0});a.prototype.get=function(b,g){switch(b){case "playbackPositions":return void 0===this.dd&&(this.dd=k.jca(this)),this.dd}return e.prototype.get.call(this,b,g)};a.prototype.set=function(b,g){var d=!1;switch(b){case "distance":case "hfov":case "vfov":case "pitch":case "rotationX":case "rotationY":case "roll":case "yaw":case "opacity":case "playbackPositions":this.dd= void 0,d=!0}e.prototype.set.call(this,b,g);d&&"playbackPositions"!=b&&this.trigger(h.G("playbackPositions"))};return a});define("lD",["require","nx","gg"],function(a){var e=a("nx"),h=a("gg");return e.define("HotspotPanoramaOverlayImage",h,function(){h.call(this)})});define("Y",["require","nx","gg"],function(a){var e=a("nx"),h=a("gg");return e.define("HotspotPanoramaOverlayMap",h,function(){h.call(this)})}); define("lq",["require"],function(){function a(l){var p={};l=l.split(",");for(var q=0;q\s]+))?)*)\s*(\/?)>/,h=/^<\/([-A-Za-z0-9_]+:?[-A-Za-z0-9_]*)[^>]*>/,m=/([-A-Za-z0-9_]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,k=a("area,base,basefont,br,col,frame,hr,img,input,isindex,link,meta,param,embed"),b=a("address,applet,blockquote,button,center,dd,del,dir,div,dl,dt,fieldset,form,frameset,hr,iframe,ins,isindex,li,map,menu,noframes,noscript,object,ol,p,pre,script,table,tbody,td,tfoot,th,thead,tr,ul"), g=a("a,abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),d=a("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),c=a("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),f=a("script,style");return function(l,p){function q(w,x,y,A){x=x.toLowerCase();if(b[x])for(;r.last()&&g[r.last()];)n("",r.last());d[x]&& r.last()==x&&n("",x);(A=k[x]||!!A)||r.push(x);if(p.start){var B=[];y.replace(m,function(z,C,H,D,I){z=H?H:D?D:I?I:c[C]?C:"";B.push({name:C,value:z,Oba:z.replace(/(^|[^\\])"/g,'$1\\"')})});p.start&&p.start(x,B,A)}}function n(w,x){if(x)for(x=x.toLowerCase(),w=r.length-1;0<=w&&r[w]!=x;w--);else w=0;if(0<=w){for(x=r.length-1;x>=w;x--)p.end&&p.end(r[x]);r.length=w}}var r=[],t=l;for(r.last=function(){return this[this.length-1]};l;){var u=!0;if(r.last()&&f[r.last()])l=l.replace(new RegExp("(.*?)]*>"),function(w,x){x=x.replace(/\x3c!--(.*?)--\x3e/g,"$1").replace(/v?l:l.substring(0,v),l=0> v?"":l.substring(v),p.JO&&p.JO(u))}if(l==t)throw"Parse Error: "+l;t=l}n()}}); define("fs","require jquery.mod eg lo oH cy gi v lq".split(" "),function(a){var e=a("jquery.mod");a("eg");var h=a("lo"),m=a("oH"),k=a("cy"),b=a("gi"),g=a("v"),d=a("lq"),c=h.extend(b,function(f){b.call(this);this.yf=e(f);this.gN=[];this.tx=null});c.prototype.rWa=function(f){f&&0<=f.toLowerCase().indexOf("");t.attr(x);l.append(t);u?p=t:(l=t,p=null)}},JO:function(r){n?n.content+=r:l.append(r)},end:function(r){"script"==r?(q.push(n),n=null):(p=l,l=l.parent())}});this.gN=q;this.ZT()};c.prototype.EKa=function(f){function l(){q++;return p+ q}this.yf.empty();var p="fragment_"+h.QXa(6)+"_",q=0,n=l(),r=[n],t=void 0,u=[],v=null,w="";new d(f,{start:function(A,B,z){if("script"==A){z=void 0;for(A=0;A",r.push(H),t=void 0)}},JO:function(A){v? v.content+=A:w+=A},end:function(A){"script"==A?(u.push(v),v=null):(t=r[r.length-1],r.pop())}});this.yf.get(0).innerHTML=w;this.yf.addClass(n);for(f=0;fl.nDa?this.kN(l.cDa):q>l.mDa&&this.kN(l.bDa))};l.prototype.rOa=function(){this.Lra=(new Date).getTime()};l.prototype.kN=function(q){this.SA==l.m0a&&this.rOa();this.SA!=q&&(this.SA!=l.iR&&l.Cia[this.SA].unbind(k.He,this.tna,this),this.SA=q,this.SA!=l.iR&&l.Cia[this.SA].bind(k.He,this.tna,this,!0))};l.prototype.Z3=function(q){var n=this.nj.style,r;for(r in q)n[r]=q[r]};var p=/[^\d]((\d*\.)?\d+)\s*(vmin|vmax|vw|vh)/i; l.iR="stopped";l.cDa="slow";l.bDa="normal";l.Mga="fast";l.nDa=3E4;l.mDa=5E3;l.Cia={slow:new a(2E3,!0),normal:new a(500,!0),fast:new a(100,!0)};return l});define("ke",["require","ln","nx"],function(a){var e=a("ln");return a("nx").define("HTML",e,function(){e.call(this)})});define("b",["require","eg","lo","oc","d"],function(a){var e=a("eg"),h=a("lo"),m=a("oc");a=a("d");var k=h.extend(m,function(){m.call(this)});k.vc={layout:a.EQ};e.defaults(k.vc,m.vc);k.prototype.nb=function(){this.Ln(k.vc)};return k}); define("iJ",["require","lo","hH","b","ln"],function(a){var e=a("lo"),h=a("hH"),m=a("b"),k=a("ln");a=e.extend(m,function(){m.call(this);this.Nx=null;this.set("contentOpaque",!0)});a.prototype.nb=function(){m.prototype.nb.call(this);this.h("overflow",h.fp);this.h("html")};a.prototype.Ab=function(){m.prototype.Ab.call(this);null==this.Nx&&(this.Nx=new k,this.Nx.ja({left:0}),this.Wa(this.Nx))};a.prototype.Va=function(){this.I("html")&&(this.Nx.set("content",this.B("html")),this.P("html"));this.lc(["paddingLeft", "paddingTop","paddingRight","paddingBottom"],{},[this.Nx],!0,!0);this.lc(["cursor"],{},[this.Nx],!0,!1);m.prototype.Va.call(this);this.Nx.set("width",this.F5()?void 0:"100%")};return a});define("bx",["require","iJ","nx"],function(a){var e=a("iJ");return a("nx").define("HTMLText",e,function(){e.call(this)})}); define("ka","require jquery.mod lo oH cy mj hn bc md gJ ed mw".split(" "),function(a){function e(r,t,u){return function(v){var w="mouse"==t?this.uB(v):this.BF(v);this.Xla(w)?r.call(this,v):"release"==u?r.call(this,v):this.mIa(w,v)}}var h=a("jquery.mod"),m=a("lo"),k=a("oH"),b=a("cy"),g=a("mj"),d=a("hn"),c=a("bc"),f=a("md"),l=a("gJ"),p=a("ed"),q=a("mw"),n=g.cj("debug");a=m.extend(q,function(){this.Be("Button");q.call(this,3);this.set("autoRolledOver",!0);this.set("autoPressed",!0);this.set("cursor", c.df);this.set("scaleMode",f.rh);this.Y2=document.createElement("canvas");this.Y2.width=1;this.Y2.height=1;this.Z2=this.Y2.getContext("2d");this.Z2.globalCompositeOperation="copy";this.K4=!1;this.bind(k.ac,this.wKa,this)});a.prototype.nb=function(){q.prototype.nb.call(this);this.h("buttonGroup");this.h("mode",p.Ie);this.h("pressed");this.h("iconURL");this.h("transparencyActive");this.u("rollOverOpacity",l.U,"opacity");this.u("rollOverIconURL",l.U,"iconURL");this.u("pressedOpacity",l.ob,"opacity"); this.u("pressedIconURL",l.ob,"iconURL");this.u("pressedRollOverOpacity",l.$b,"opacity");this.u("pressedRollOverIconURL",l.$b,"iconURL")};a.prototype.T4=e(q.prototype.T4,"touch","capture");a.prototype.mka=e(q.prototype.rIa,"touch");a.prototype.oka=e(q.prototype.rIa,"touch","release");a.prototype.H$=e(q.prototype.H$,"touch","capture");a.prototype.G$=e(q.prototype.G$,"touch");a.prototype.Ry=e(q.prototype.Ry,"touch","release");a.prototype.f7=e(q.prototype.f7,"mouse","capture");a.prototype.j7=function(r){var t= this.uB(r);if(this.Xla(t)||this.K4)q.prototype.j7.call(this,r),q.prototype.set.call(this,"cursor",this.pja);else{this.K4=!0;if(t=this.Ska(t))h(t).trigger(this.Mia(r)),r.preventDefault(),r.stopImmediatePropagation();"pointer"==this.Lka(t)?q.prototype.set.call(this,"cursor",c.df):q.prototype.set.call(this,"cursor",c.He);this.K4=!1}};a.prototype.wKa=function(){q.prototype.set.call(this,"cursor",this.pja)};a.prototype.qU=e(q.prototype.qU,"mouse","release");a.prototype.Xla=function(r){if(!this.Wb)return!1; if(this.get("transparencyActive"))return!0;var t=this.fb?this.fb.uy:1,u=this.Wb.offset(),v=(r.xz-u.left)/t,w=this.Wb.width();r=(r.yz-u.top)/t;t=this.Wb.height();if(0<=v&&0<=r&&vthis.OA.indexOf(c)&&c.set("state",d.ob)}.bind(this))};return a}); define("gn","require eg lo oH cy gJ bc b e np nK".split(" "),function(a){var e=a("eg"),h=a("lo"),m=a("oH"),k=a("cy"),b=a("gJ"),g=a("bc"),d=a("b"),c=a("e");a("np");a("nK");var f=h.extend(d,function(){d.call(this);this.Be("PlaybackBar");this.Dl=this.Yf=null;this.Og=[];this.DV=!1;this.w8=this.mC=void 0;this.m$=!1});f.vc={cursor:g.df,overflow:"visible",height:20,position:0,duration:100,steps:void 0,selectedStep:void 0,backgroundColor:"#000000",barBackgroundColor:"#FFFFFF",barBackgroundColorDirection:void 0, barBackgroundColorRatios:void 0,barBorderColor:void 0,barBorderRadius:void 0,barBorderSize:void 0,barOpacity:void 0,liveDragging:void 0,playheadBackgroundColor:"#FFFFFF",playheadBackgroundColorDirection:void 0,playheadBackgroundColorRatios:void 0,playheadBorderColor:void 0,playheadBorderRadius:void 0,playheadBorderSize:void 0,playheadOpacity:void 0,playheadWidth:5,playheadHeight:30,playheadShadow:!0,playheadShadowBlurRadius:3,playheadShadowColor:"#000000",playheadShadowHorizontalLength:0,playheadShadowOpacity:void 0, playheadShadowSpread:0,playheadShadowVerticalLength:3,stepBackgroundColor:"#FFFFFF",stepBackgroundColorDirection:void 0,stepBackgroundColorRatios:void 0,stepBorderColor:void 0,stepBorderRadius:6,stepBorderSize:0,stepOpacity:1,stepWidth:12,stepHeight:12,stepShadow:!0,stepShadowBlurRadius:6,stepShadowColor:"#000000",stepShadowHorizontalLength:0,stepShadowOpacity:void 0,stepShadowSpread:0,stepShadowVerticalLength:0,selectedStepBackgroundColor:"#3399FF",selectedStepBackgroundColorDirection:void 0,selectedStepBackgroundColorRatios:void 0, selectedStepBorderColor:"#ffffff",selectedStepBorderRadius:10,selectedStepBorderSize:2,selectedStepOpacity:1,selectedStepWidth:20,selectedStepHeight:20,selectedStepShadow:!0,selectedStepShadowBlurRadius:3,selectedStepShadowColor:"#000000",selectedStepShadowHorizontalLength:0,selectedStepShadowOpacity:void 0,selectedStepShadowSpread:0,selectedStepShadowVerticalLength:0};e.defaults(f.vc,d.vc);f.prototype.nb=function(){this.Ln(f.vc)};f.prototype.Ab=function(){d.prototype.Ab.call(this);this.Yf&&this.Dl|| this.bind(m.kc,this.sNa,this,!0);null==this.Yf&&(this.Yf=new c,this.Yf.ja({left:"0",height:"100%",cursor:g.df}),this.Wa(this.Yf));null==this.Dl&&(this.Dl=new c,this.Dl.ja({left:"0",cursor:g.df}),this.Dl.bind(m.kc,this.vNa,this,!0),this.Dl.bind(m.ub,this.tNa,this,!0),this.Jb().bind(m.jc,this.Cpa,this,!0),this.bind(m.qa,this.qNa,this,!0),this.Dl.bind(m.Zb,this.uNa,this,!0),this.Wa(this.Dl));var p=this.get("steps")||0;if(this.Og.length!=p){for(;this.Og.length>p;)this.eHa(this.Og.pop());for(;this.Og.length< p;)this.Og.push(this.WGa());this.lc(f.iha,f.H1,this.Og,!1,!0);this.tta();this.yaa();this.pn(this.Dl,this.Kb().length-1)}};f.prototype.WGa=function(){var p=new l;p.ja({cursor:g.df});p.bind(m.qa,this.Vra,this,!0);p.bind(m.kc,this.Wra,this,!0);this.Wa(p);return p};f.prototype.eHa=function(p){p.unbind(m.qa,this.Vra,this,!0);p.unbind(m.kc,this.Wra,this,!0);this.removeChild(p)};f.prototype.Va=function(){var p=!1;if(this.I("position")||this.I("duration"))this.P("position"),this.P("duration"),p=!0;this.I("selectedStep")&& (this.P("selectedStep"),this.tta());this.I("steps")&&(this.P("steps"),this.tP());this.lc(f.A1,f.vJ,[this.Yf],!0,!0);this.lc(f.jDa,f.eha,[this.Dl],!0,!0);this.lc(f.iha,f.H1,this.Og,!0,!0);d.prototype.Va.call(this);p&&this.wX()};f.prototype.tta=function(){var p=this.get("selectedStep");this.Og.forEach(function(q,n){q.mQ(n===p)});this.Dl.set("visible",void 0===p)};f.prototype.wX=function(){var p=this.Xa(),q=this.Dl.Xa(),n=this.Dl.xb(),r=this.Ex(),t=this.Ap(),u=t*p/r;p=Math.round((this.DV?this.mC:t)* p/r-.5*q);p=Math.max(0,Math.min(p,this.rf()-q));q=Math.round(.5*this.qf()-.5*n);this.Dl.ja({left:p,top:q});this.Yf.set("width",Math.round(u))};f.prototype.vNa=function(){this.wX()};f.prototype.tNa=function(p){this.DV=!0;this.w8=p.pageX;this.mC=this.B("position")};f.prototype.Cpa=function(p){if(this.DV){var q=p.pageX-this.w8;this.w8=p.pageX;p=this.Xa();var n=this.Ex();this.mC=Math.max(0,Math.min(n,this.mC+n*q/p));this.wX();this.get("liveDragging")&&(this.set("position",this.mC),this.trigger(new k(m.pa)))}}; f.prototype.uNa=function(p){this.Cpa(p);this.DV=!1;this.get("liveDragging")||(this.set("position",this.mC),this.trigger(new k(m.pa)));this.mC=void 0};f.prototype.qNa=function(p){if(!this.m$){var q=this.Xa(),n=this.Ex();this.set("position",n*p.x/q);this.trigger(new k(m.pa))}};f.prototype.Wra=function(){this.yaa()};f.prototype.sNa=function(){this.yaa();this.wX()};f.prototype.yaa=function(){for(var p=this.Xa(),q=this.xb(),n=this.Ha,r=this.getParent().Xa()-(n+p),t=0,u=this.Og.length;tthis.C_*g.oBa&&this.Bba()};g.prototype.QZa=function(){this.SI=window.setTimeout(this.v_a.bind(this),g.pBa)};g.prototype.Bba=function(){this.SI&&(clearTimeout(this.SI),this.SI=null)};g.prototype.hUa=function(){this.vi=document.createElement("div");this.vi.setAttribute("tdvclass","Button");this.vi.style.position="absolute";this.vi.style.width=this.vi.style.height= Math.round(2*g.Xea*this.C_)+"px";this.vi.style.borderRadius="50%";this.vi.style.backgroundColor="rgba(255, 255, 255, 0.5)";this.vi.style.transform="translate(-50%, -50%)";this.vi.style.zIndex="1000";this.vi.style.left=this.Uca+"px";this.vi.style.top=this.Vca+"px";this.parentElement.appendChild(this.vi);this.Tk=document.createElement("div");this.Tk.setAttribute("tdvclass","Button");this.Tk.style.position="absolute";this.Tk.style.width=this.Tk.style.height=Math.round(2*g.uCa*this.C_)+"px";this.Tk.style.borderRadius= "50%";this.Tk.style.backgroundColor="rgba(255, 255, 255, 0.5)";this.Tk.style.transform="translate(-50%, -50%)";this.Tk.style.zIndex="1000";this.vi.appendChild(this.Tk)};g.prototype.TAa=function(){var d=this.Wca-this.Uca,c=this.Xca-this.Vca;if(0==d&&0==c)this.yZ=this.xZ=0;else{var f=Math.atan2(-c,d);d=Math.min(Math.sqrt(d*d+c*c)/(this.C_*g.Xea),g.XBa);this.xZ=Math.cos(f)*d;this.yZ=Math.sin(f)*d}this.Tk.style.left=(50+50*this.xZ).toFixed(2)+"%";this.Tk.style.top=(50-50*this.yZ).toFixed(2)+"%";this.trigger(h.pa)}; g.prototype.uUa=function(){var d,c;null===(d=this.Tk.parentNode)||void 0===d?void 0:d.removeChild(this.Tk);this.Tk=null;null===(c=this.vi.parentNode)||void 0===c?void 0:c.removeChild(this.vi);this.vi=null};g.prototype.v_a=function(){this.SI=null;this.start()};g.prototype.ETa=function(){this.te.bind(h.ub,this.dya,this,!0);this.te.bind(h.jc,this.eya,this,!0);this.te.bind(h.Zb,this.CZ,this,!0);this.te.bind(h.kc,this.eda,this,!0);this.te.bind(h.Bw,this.Wxa,this,!0);this.eda()};g.prototype.fYa=function(){this.te.unbind(h.ub, this.dya,this);this.te.unbind(h.jc,this.eya,this);this.te.unbind(h.Zb,this.CZ,this);this.te.unbind(h.kc,this.eda,this);this.te.unbind(h.Bw,this.Wxa,this)};g.oBa=k.jb()?5:.5;g.pBa=k.jb()?300:600;g.Xea=k.jb()?10:6.6;g.uCa=k.jb()?5:3.3;g.XBa=6;return g}(m)}); define("bz","require eg lo oH kO cy nx jD gn A fP v ed bc cN gJ oc e".split(" "),function(a){var e=a("eg"),h=a("lo"),m=a("oH"),k=a("kO"),b=a("cy"),g=a("nx"),d=a("jD"),c=a("gn"),f=a("A"),l=a("fP"),p=a("v"),q=a("ed"),n=a("bc"),r=a("cN"),t=a("gJ"),u=a("oc"),v=a("e"),w=g.define("ViewerArea",u,function(){u.call(this);this.set("childrenInteractionEnabled",!0);this.set("contentOpaque",!0);this.set("creationPolicy",r.kA);this.set("subtitlesEnabled",!0);this.set("checkToolTipOcclusion",!0);this.set("isKeyboardTarget", !1);this.jL=this.Sn=this.zr=this.Qd=this.KS=this.Mh=null;this.t8=this.Tr=!1;this.oi=k.T;this.lm=this.$j=null;this.Qn=!1;this.m9=[];this.bind(w.dga,this.CMa,this,!0);this.bind(w.cga,this.BMa,this,!0);this.bind(m.ub,this.xoa,this);this.bind(m.ub,this.xoa,this);this.bind(m.Wc,this.XMa,this);this.bind(m.ac,this.WMa,this);this.bind(m.kd,this.cV,this,!0);this.bind(m.sd,this.UMa,this,!0);this.ME=new d(this,"buttonPause",q.Xj);this.ME.bind(m.qa,this.gC,this);this.ME.set("state",t.He);this.NE=new d(this,"buttonPlay", q.Xj);this.NE.bind(m.qa,this.hC,this);this.NE.set("state",t.He);this.MA=new d(this,"buttonPlayPause",q.Xj);this.MA.bind(m.qa,this.yMa,this);this.MA.set("state",t.He);this.PE=new d(this,"buttonStop",q.Xj);this.PE.bind(m.qa,this.qy,this);this.PE.set("state",t.ob);this.cFa=new d(this,"buttonRestart",q.Ie);this.cFa.bind(m.qa,this.ny,this);this.LR=new d(this,"buttonToggleSubtitles",q.Xj);this.LR.bind(m.Vj,function(){this.set("subtitlesEnabled",!0)},this,!0);this.LR.bind(m.jm,function(){this.set("subtitlesEnabled", !1)},this,!0);this.bind(m.G("subtitlesEnabled"),function(){this.LR.set("pressed",this.get("subtitlesEnabled"))},this);this.LR.set("pressed",this.get("subtitlesEnabled"));this.RKa=h.Ko(this.YSa,this);this.bind(m.hm,this.TMa,this,!0);this.bind(w.aR,this.VMa,this,!0)});w.prototype.play=function(){this.hC()};w.prototype.pause=function(){this.gC()};w.prototype.stop=function(){this.qy()};w.prototype.restart=function(){this.ny()};w.vc={progressBackgroundColor:void 0,progressBackgroundColorDirection:void 0, progressBackgroundColorRatios:void 0,progressBackgroundOpacity:void 0,progressBarBackgroundColor:void 0,progressBarBackgroundColorDirection:void 0,progressBarBackgroundColorRatios:void 0,progressBarBorderColor:void 0,progressBarBorderRadius:void 0,progressBarBorderSize:void 0,progressBarOpacity:void 0,progressBorderColor:void 0,progressBorderRadius:void 0,progressBorderSize:void 0,progressBottom:0,progressHeight:20,progressLeft:0,progressOpacity:void 0,progressPercent:0,progressRight:0,progressVisible:!1, externalPlaybackBar:void 0,externalProgressBar:void 0,playbackBarBackgroundColor:void 0,playbackBarBackgroundColorDirection:void 0,playbackBarBackgroundOpacity:void 0,playbackBarBorderColor:void 0,playbackBarBorderRadius:void 0,playbackBarBorderSize:void 0,playbackBarBottom:10,playbackBarHeight:void 0,playbackBarWidth:void 0,playbackBarLeft:void 0,playbackBarOpacity:void 0,playbackBarRight:void 0,playbackBarLiveDragging:void 0,playbackBarDuration:100,playbackBarPosition:0,playbackBarRollOverDisplay:!1, plabackBarSteps:void 0,plabackBarSelectedStep:void 0,playbackBarVisible:!1,playbackBarProgressBackgroundColor:void 0,playbackBarProgressBackgroundColorDirection:void 0,playbackBarProgressBackgroundColorRatios:void 0,playbackBarProgressBorderColor:void 0,playbackBarProgressBorderRadius:void 0,playbackBarProgressBorderSize:void 0,playbackBarProgressOpacity:void 0,playbackBarHeadBackgroundColor:void 0,playbackBarHeadBackgroundColorDirection:void 0,playbackBarHeadBackgroundColorRatios:void 0,playbackBarHeadBorderColor:void 0, playbackBarHeadBorderRadius:void 0,playbackBarHeadBorderSize:void 0,playbackBarHeadOpacity:void 0,playbackBarHeadWidth:void 0,playbackBarHeadHeight:void 0,playbackBarHeadShadow:void 0,playbackBarHeadShadowBlurRadius:void 0,playbackBarHeadShadowColor:void 0,playbackBarHeadShadowHorizontalLength:void 0,playbackBarHeadShadowOpacity:void 0,playbackBarHeadShadowSpread:void 0,playbackBarHeadShadowVerticalLength:void 0,playbackBarStepBackgroundColor:void 0,playbackBarStepBackgroundColorDirection:void 0, playbackBarStepBackgroundColorRatios:void 0,playbackBarStepBorderColor:void 0,playbackBarStepBorderRadius:void 0,playbackBarStepBorderSize:void 0,playbackBarStepOpacity:void 0,playbackBarStepWidth:void 0,playbackBarStepHeight:void 0,playbackBarStepShadow:void 0,playbackBarStepShadowBlurRadius:void 0,playbackBarStepShadowColor:void 0,playbackBarStepShadowHorizontalLength:void 0,playbackBarStepShadowOpacity:void 0,playbackBarStepShadowSpread:void 0,playbackBarStepShadowVerticalLength:void 0,playbackBarStepSelectedBackgroundColor:void 0, playbackBarStepSelectedBackgroundColorDirection:void 0,playbackBarStepSelectedBackgroundColorRatios:void 0,playbackBarStepSelectedBorderColor:void 0,playbackBarStepSelectedBorderRadius:void 0,playbackBarStepSelectedBorderSize:void 0,playbackBarStepSelectedOpacity:void 0,playbackBarStepSelectedWidth:void 0,playbackBarStepSelectedHeight:void 0,playbackBarStepSelectedShadow:void 0,playbackBarStepSelectedShadowBlurRadius:void 0,playbackBarStepSelectedShadowColor:void 0,playbackBarStepSelectedShadowHorizontalLength:void 0, playbackBarStepSelectedShadowOpacity:void 0,playbackBarStepSelectedShadowSpread:void 0,playbackBarStepSelectedShadowVerticalLength:void 0,subtitlesBackgroundColor:"#000000",subtitlesBackgroundOpacity:1,subtitlesBorderColor:void 0,subtitlesBorderSize:0,subtitlesBottom:"10%",subtitlesFontFamily:void 0,subtitlesFontColor:"#ffffff",subtitlesFontSize:"12px",subtitlesFontStyle:void 0,subtitlesFontWeight:void 0,subtitlesGap:10,subtitlesHorizontalAlign:"center",subtitlesOpacity:1,subtitlesPaddingTop:5,subtitlesPaddingBottom:5, subtitlesPaddingLeft:5,subtitlesPaddingRight:5,subtitlesShadow:!1,subtitlesShadowBlurRadius:void 0,subtitlesShadowHorizontalLength:0,subtitlesShadowVerticalLength:0,subtitlesShadowColor:"#000000",subtitlesShadowOpacity:0,subtitlesTextDecoration:void 0,subtitlesTextShadowBlurRadius:void 0,subtitlesTextShadowColor:"#000000",subtitlesTextShadowHorizontalLength:0,subtitlesTextShadowOpacity:0,subtitlesTextShadowVerticalLength:0,subtitlesTop:void 0,subtitlesVerticalAlign:"bottom",transitionDuration:500, blendingTransitionDuration:void 0,disolveTransitionDuration:void 0,translationTransitionDuration:void 0,translationTransitionEnabled:!0,toolTipEnabled:!0};e.defaults(w.vc,u.vc);w.prototype.set=function(x,y){"playbackState"==x&&(y=this.oi,this.get(x)!=y&&(this.t8=!0,this.RKa()));switch(x){case "toolTipEnabled":this.set("toolTipDisabled",!1===y);break;case "cardboardPointerDistance":this.set("vrPointerDistance",y);break;case "cardboardPointerColor":this.set("vrPointerColor",y);break;case "cardboardPointerSelectionColor":this.set("vrPointerSelectionColor", y);break;case "cardboardPointerSelectionTime":this.set("vrPointerSelectionTime",y);break;case "playbackBarVisible":case "playbackBarRollOverDisplay":this.kO()}u.prototype.set.call(this,x,y)};w.prototype.nb=function(){this.Ln(w.vc)};w.prototype.Ab=function(){u.prototype.Ab.call(this);null==this.Sn&&(this.Sn=new v,this.Sn.set("width","100%"),this.Sn.set("height","100%"),this.Sn.set("toolTipDisabled",!0),this.Sn.set("interactionEnabled",!1),this.Sn.set("content"),this.Wa(this.Sn),h.defer(function(){this.Sn.set("cursor", n.mt)}.bind(this)),this.jL=new l(this,this.Sn.Bb().fI()),this.jL.nc(!1));null==this.Mh&&(this.Mh=new f,this.Wa(this.Mh));null==this.Qd&&(this.Qd=new c,this.Qd.bind(m.pa,this.q8,this,!0),this.Wa(this.Qd),this.kO())};w.prototype.jVa=function(){return this.Qd};w.prototype.am=function(){u.prototype.am.call(this);for(var x=[],y=this.m9.length-1;0<=y;y--)x.push(this.m9[y].j);this.Sn&&x.push(this.Sn);this.Qd&&x.push(this.Qd);this.Mh&&x.push(this.Mh);var A=this.Kb();x=x.filter(function(B){return 0<=A.indexOf(B)}); A=A.filter(function(B){return-1==x.indexOf(B)}).concat(x);A.forEach(function(B,z){B&&this.Vba(B)!=z&&this.pn(B,z)}.bind(this))};w.prototype.Va=function(){this.I("externalProgressBar")&&((this.KS=this.B("externalProgressBar"))?this.removeChild(this.Mh):this.Wa(this.Mh),this.P("externalProgressBar"),e(w.gha).each(function(y){this.JC(y)},this));this.lc(w.fDa,w.Wga,[this.Mh],!0,!0);var x=[this.Mh];this.KS&&x.push(this.KS);this.lc(w.gha,w.hha,x,!0,!0);this.I("externalPlaybackBar")&&(this.zr&&this.zr.unbind(m.pa, this.q8,this,!0),(this.zr=this.B("externalPlaybackBar"))?this.removeChild(this.Qd):this.Wa(this.Qd),this.kO(),this.zr&&this.zr.bind(m.pa,this.q8,this,!0),this.P("externalPlaybackBar"),e(w.cha).each(function(y){this.JC(y)},this));this.lc(w.eDa,w.Vga,[this.Qd],!0,!0);x=[this.Qd];this.zr&&x.push(this.zr);this.lc(w.cha,w.dha,x,!0,!0);u.prototype.Va.call(this)};w.prototype.YSa=function(){this.t8&&(this.t8=!1,this.ME.set("state",this.oi==k.Eb?t.ob:t.He),this.NE.set("state",this.oi==k.X||this.oi==k.Eb?t.ob: t.He),this.MA.set("state",this.oi==k.X?t.ob:t.He),this.PE.set("state",this.oi==k.T?t.ob:t.He))};w.prototype.zc=function(x){this.oi=x;this.set("playbackState",x)};w.prototype.cV=function(){w.rk(this)};w.prototype.UMa=function(){w.lk(this)};w.prototype.gC=function(){this.oi==k.Eb?this.uk():this.Xp()};w.prototype.hC=function(){this.uk()};w.prototype.yMa=function(){this.oi==k.X?this.Xp():this.uk()};w.prototype.qy=function(){this.ro()};w.prototype.ny=function(){this.ro();this.uk()};w.prototype.TMa=function(){if(!this.$j|| !this.$j.Fua())switch(this.get("doubleClickAction")){case "toggle_fullscreen":var x=this.Jb().Qi;x&&x.zg()&&x.toggle()}};w.prototype.VMa=function(x){this.m9=x.data.players;this.Hd()};w.prototype.uk=function(){this.lm&&this.lm.play()};w.prototype.Xp=function(){this.lm&&this.lm.pause()};w.prototype.ro=function(){this.lm&&this.lm.stop()};w.prototype.CMa=function(x){this.Uqa(x.data.player)};w.prototype.BMa=function(x){this.$j==x.data.player&&this.Uqa(null)};w.prototype.xoa=function(){w.Rq(this)};w.prototype.XMa= function(){this.Qn=!0;this.kO()};w.prototype.WMa=function(){this.Qn=!1;this.kO()};w.prototype.kO=function(){this.Qd&&this.Qd.set("visible",this.get("playbackBarVisible")&&(this.Qn||!this.get("playbackBarRollOverDisplay")||p.v_()))};w.prototype.Uqa=function(x){this.$j!=x&&(this.set("playbackBarVisible",!1),this.$j&&this.$j.Rq(!1),this.lm&&this.lm.unbind(m.G("state"),this.N1,this),this.CNa=this.$j,(this.$j=x)&&this.$j.Rq(!!this.LF),(this.lm=this.$j&&this.$j.lFa?this.$j:null)&&this.lm.bind(m.G("state"), this.N1,this,!0),this.N1())};w.prototype.Rq=function(x){this.LF=x;this.set("isKeyboardTarget",x);this.$j&&this.$j.Rq(!!this.LF)};w.prototype.f0a=function(){return!this.CNa};w.prototype.N1=function(){this.lm?this.zc(this.lm.get("state")):this.zc(k.T)};w.prototype.q8=function(){var x=(this.zr?this.zr:this.Qd).get("position");this.trigger(new b(w.A0,{position:x}))};w.Wga={progressBackgroundColor:"backgroundColor",progressBackgroundColorDirection:"backgroundColorDirection",progressBackgroundColorRatios:"backgroundColorRatios", progressBackgroundOpacity:"backgroundOpacity",progressBarBackgroundColor:"barBackgroundColor",progressBarBackgroundColorDirection:"barBackgroundColorDirection",progressBarBackgroundColorRatios:"barBackgroundColorRatios",progressBarBorderColor:"barBorderColor",progressBarBorderRadius:"barBorderRadius",progressBarBorderSize:"barBorderSize",progressBarOpacity:"barOpacity",progressBorderColor:"borderColor",progressBorderRadius:"borderRadius",progressBorderSize:"borderSize",progressHeight:"height",progressOpacity:"opacity", progressBottom:"bottom",progressLeft:"left",progressRight:"right"};w.fDa=e(w.Wga).keys();w.hha={progressPercent:"percent",progressVisible:"visible"};w.gha=e(w.hha).keys();w.Vga={playbackBarBackgroundColor:"backgroundColor",playbackBarBackgroundColorDirection:"backgroundColorDirection",playbackBarBackgroundOpacity:"backgroundOpacity",playbackBarBorderColor:"borderColor",playbackBarBorderRadius:"borderRadius",playbackBarBorderSize:"borderSize",playbackBarBottom:"bottom",playbackBarHeight:"height",playbackBarWidth:"width", playbackBarLeft:"left",playbackBarOpacity:"opacity",playbackBarRight:"right",playbackBarLiveDragging:"liveDragging",playbackBarProgressBackgroundColor:"barBackgroundColor",playbackBarProgressBackgroundColorDirection:"barBackgroundColorDirection",playbackBarProgressBackgroundColorRatios:"barBackgroundColorRatios",playbackBarProgressBorderColor:"barBorderColor",playbackBarProgressBorderRadius:"barBorderRadius",playbackBarProgressBorderSize:"barBorderSize",playbackBarProgressOpacity:"barOpacity",playbackBarHeadBackgroundColor:"playheadBackgroundColor", playbackBarHeadBackgroundColorDirection:"playheadBackgroundColorDirection",playbackBarHeadBackgroundColorRatios:"playheadBackgroundColorRatios",playbackBarHeadBorderColor:"playheadBorderColor",playbackBarHeadBorderRadius:"playheadBorderRadius",playbackBarHeadBorderSize:"playheadBorderSize",playbackBarHeadOpacity:"playheadOpacity",playbackBarHeadWidth:"playheadWidth",playbackBarHeadHeight:"playheadHeight",playbackBarHeadShadow:"playheadShadow",playbackBarHeadShadowBlurRadius:"playheadShadowBlurRadius", playbackBarHeadShadowColor:"playheadShadowColor",playbackBarHeadShadowHorizontalLength:"playheadShadowHorizontalLength",playbackBarHeadShadowOpacity:"playheadShadowOpacity",playbackBarHeadShadowSpread:"playheadShadowSpread",playbackBarHeadShadowVerticalLength:"playheadShadowVerticalLength",playbackBarStepBackgroundColor:"stepBackgroundColor",playbackBarStepBackgroundColorDirection:"stepBackgroundColorDirection",playbackBarStepBackgroundColorRatios:"stepBackgroundColorRatios",playbackBarStepBorderColor:"stepBorderColor", playbackBarStepBorderRadius:"stepBorderRadius",playbackBarStepBorderSize:"stepBorderSize",playbackBarStepOpacity:"stepOpacity",playbackBarStepWidth:"stepWidth",playbackBarStepHeight:"stepHeight",playbackBarStepShadow:"stepShadow",playbackBarStepShadowBlurRadius:"stepShadowBlurRadius",playbackBarStepShadowColor:"stepShadowColor",playbackBarStepShadowHorizontalLength:"stepShadowHorizontalLength",playbackBarStepShadowOpacity:"stepShadowOpacity",playbackBarStepShadowSpread:"stepShadowSpread",playbackBarStepShadowVerticalLength:"stepShadowVerticalLength", playbackBarSelectedStepBackgroundColor:"selectedStepBackgroundColor",playbackBarSelectedStepBackgroundColorDirection:"selectedStepBackgroundColorDirection",playbackBarSelectedStepBackgroundColorRatios:"selectedStepBackgroundColorRatios",playbackBarSelectedStepBorderColor:"selectedStepBorderColor",playbackBarSelectedStepBorderRadius:"selectedStepBorderRadius",playbackBarSelectedStepBorderSize:"selectedStepBorderSize",playbackBarSelectedStepOpacity:"selectedStepOpacity",playbackBarSelectedStepWidth:"selectedStepWidth", playbackBarSelectedStepHeight:"selectedStepHeight",playbackBarSelectedStepShadow:"selectedStepShadow",playbackBarSelectedStepShadowBlurRadius:"selectedStepShadowBlurRadius",playbackBarSelectedStepShadowColor:"selectedStepShadowColor",playbackBarSelectedStepShadowHorizontalLength:"selectedStepShadowHorizontalLength",playbackBarSelectedStepShadowOpacity:"selectedStepShadowOpacity",playbackBarSelectedStepShadowSpread:"selectedStepShadowSpread",playbackBarSelectedStepShadowVerticalLength:"selectedStepShadowVerticalLength"}; w.eDa=e(w.Vga).keys();w.dha={playbackBarDuration:"duration",playbackBarPosition:"position",playbackBarSteps:"steps",playbackBarSelectedStep:"selectedStep",playbackBarVisible:"visible"};w.cha=e(w.dha).keys();w.aR="requestByPlayer";w.dga="playerShow";w.cga="playerHide";w.A0="playbackBarPositionChange";w.MB=null;w.Rq=function(x){w.MB!=x&&(w.MB&&w.MB.Rq(!1),w.MB=x,w.MB&&w.MB.Rq(!0))};w.Zy=[];w.rk=function(x){var y=w.Zy.indexOf(x);-1g.data.players.indexOf(this)&&this.eH()};b.prototype.KM=function(){};b.prototype.eH=function(){};b.prototype.CL=function(g){this.trigger(new m(b.Wg,{media:g}));this.zN=this.ay;this.zN.trigger(new m(k.dga,{player:this}))};b.prototype.BL=function(g){this.trigger(new m(b.fm,{media:g}));this.zN&&(this.zN.trigger(new m(k.cga,{player:this})),this.zN=null)};return b}); define("jU",["require"],function(){return{Qz:"constrained",KBa:"free_drag",s0a:"free_drag_and_rotation",i1:"sync_with_field_of_view"}}); define("kz",["require","lo","jU","md"],function(a){function e(){this.va=!0;this.Ka=this.Ha=.5;this.bd=0;this.ib=1;this.Df=m.rh;this.Km=h.Qz;this.X6=this.a7=1;this.ze=this.Ae=this.mm=this.nm=100;this.Xm=e.wA}a("lo");var h=a("jU"),m=a("md");e.prototype.rwa=function(){return this.Xm!==e.wA};e.prototype.qwa=function(){return this.Xm&e.yE?!0:!1};e.prototype.swa=function(){return this.Xm&e.zE?!0:!1};e.prototype.twa=function(){return this.Xm&e.AA?!0:!1};e.prototype.pwa=function(){return this.Xm&e.vA?!0: !1};e.prototype.getX=function(){this.bn();return this.Ha};e.prototype.getY=function(){this.bn();return this.Ka};e.prototype.Iq=function(){this.bn();return this.ib};e.prototype.aI=function(){this.bn();return this.bd};e.prototype.setConfiguration=function(k,b,g,d,c){this.Ae=k;this.ze=b;this.Df=g;this.a7=d;this.X6=c;this.Ka=this.Ha=.5;this.bd=0;this.ib=d;this.va=!0};e.prototype.setPosition=function(k,b,g,d){this.Ha=k;this.Ka=b;this.bd=g;this.ib=d;this.va=!0};e.prototype.Sq=function(k){this.Km=k;this.va= !0};e.prototype.setSize=function(k,b){this.nm=k;this.mm=b;this.va=!0};e.prototype.bn=function(){if(this.va){this.va=!1;var k=e.wA;this.ib>this.X6?(this.ib=this.X6,k|=e.gDa):this.ibthis.ze*this.nm?(b=this.Ae*this.mm/this.ze,g=this.mm):(b=this.nm,g=this.ze* this.nm/this.Ae);break;default:case m.rh:this.Ae*this.mm>this.ze*this.nm?(b=this.nm,g=this.ze*this.nm/this.Ae):(b=this.Ae*this.mm/this.ze,g=this.mm)}b*=this.ib;g*=this.ib;var d=Math.min(.5*this.nm/b,.5);b=Math.max(1-.5*this.nm/b,.5);var c=Math.min(.5*this.mm/g,.5);g=Math.max(1-.5*this.mm/g,.5)}else d=0,b=1,c=0,g=1;this.Hab&&(this.Ha=b,k|=e.zE);this.Kag&&(this.Ka=g,k|=e.vA);this.Km!=h.Qz&&this.Km!=h.KBa||0==this.bd||(this.bd=0,k|=e.lDa); this.Xm=k}};e.wA=0;e.yE=1;e.zE=2;e.AA=4;e.vA=8;e.hDa=16;e.gDa=32;e.lDa=64;return e}); define("gm",["require"],function(){function a(){this.tK=.1;this.qS=this.z3=this.C3=this.B3=this.J3=this.y3=this.H3=this.G3=this.DO=this.kba=this.CA=this.Y1=this.BO=this.hba=this.zO=this.fba=0}a.prototype.a_=function(e){this.tK=e};a.prototype.Rza=function(e,h,m,k,b,g,d,c){this.fba=e;this.hba=h;this.Y1=m;this.kba=k;this.zO+=b;this.BO+=g;this.CA+=d;this.DO+=c};a.prototype.af=function(){return 0!=this.G3||0!=this.H3||0!=this.y3||0!=this.J3||0!=this.fba||0!=this.hba||0!=this.Y1||0!=this.kba||0!=this.zO|| 0!=this.BO||0!=this.CA||0!=this.DO};a.prototype.zb=function(e){e=1E3/e;this.B3=this.ES(this.G3/e,this.fba/e+this.zO,this.tK);this.C3=this.ES(this.H3/e,this.hba/e+this.BO,this.tK);this.z3=this.ES(this.y3/e,this.Y1/e+this.CA,this.tK);this.qS=this.ES(this.J3/e,this.kba/e+this.DO,this.tK);this.G3=this.B3*e;this.H3=this.C3*e;this.y3=this.z3*e;this.J3=this.qS*e;this.DO=this.CA=this.BO=this.zO=0};a.prototype.ES=function(e,h,m){return 0==h?this.gg(e,h,m):h};a.prototype.gg=function(e,h,m){e=(h-e)*(1-m);.01> Math.abs(e)&&(e=0);return h-e};return a}); define("gr","require lo oH cy gi md".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("cy"),k=a("gi");a("md");var b=e.extend(k,function(){k.call(this);this.sK=7;this.sU=this.s6=!1;this.uU=void 0;this.bd=0;this.ib=1;this.ze=this.Ae=100;this.PT=1;this.y8=!0;this.z8=!1;this.rTa=!0;this.jba=!1;this.ab=null});b.prototype.YP=function(g){this.sK=g};b.prototype.Jd=function(g,d,c,f){this.bd=g;this.ib=d;this.Ae=c;this.ze=f};b.prototype.FZa=function(g){this.y8=g;this.vW(this.y8&&!!this.ab)};b.prototype.Oq= function(g){this.ab!=g&&(this.vW(!1),this.T9(!1),this.Ql(),this.ab=g,this.vW(this.y8&&!!this.ab),this.T9(this.rTa&&!!this.ab))};b.prototype.Ql=function(){this.vW(!1);this.T9(!1);this.ab=null};b.prototype.vW=function(g){this.z8!=g&&((this.z8=g)?this.KEa():this.JRa())};b.prototype.T9=function(g){this.jba!=g&&((this.jba=g)?this.LEa():this.KRa())};b.prototype.KEa=function(){this.ab.bind(h.ub,this.Od,this,!0);this.ab.bind(h.jc,this.vj,this,!0);this.ab.bind(h.Zb,this.wj,this,!0)};b.prototype.JRa=function(){this.ab.unbind(h.ub, this.Od,this);this.ab.unbind(h.jc,this.vj,this);this.ab.unbind(h.Zb,this.wj,this)};b.prototype.LEa=function(){this.ab.bind(h.ar,this.UB,this,!0);this.ab.bind(h.lE,this.rB,this,!0)};b.prototype.KRa=function(){this.ab.unbind(h.ar,this.UB,this);this.ab.unbind(h.lE,this.rB,this)};b.prototype.Od=function(g){this.tQa(g)};b.prototype.vj=function(g){this.kta(g)};b.prototype.wj=function(){this.u4()};b.prototype.UB=function(g){this.Gaa(g)};b.prototype.rB=function(g){this.Haa(g)};b.prototype.tQa=function(g){this.s6= !0;this.sU=!1;this.uU=g;this.kta(g)};b.prototype.kta=function(g){if(this.s6){var d=g.pageX-this.uU.pageX,c=g.pageY-this.uU.pageY;this.sU||(Math.sqrt(d*d+c*c)>this.sK?this.sU=!0:d=c=0);this.sU&&(this.uU=g);g=this.bd*Math.PI/180;this.trigger(new m(b.Uo,{xDelta:-((d*Math.cos(g)+c*Math.sin(g))/this.Ae),yDelta:-((c*Math.cos(g)-d*Math.sin(g))/this.ze)}))}};b.prototype.u4=function(){this.s6=!1};b.prototype.Haa=function(g){if(this.PT!=g.scale){this.u4();var d=this.PT;this.PT=g.scale;this.trigger(new m(b.Yo, {zoomDelta:this.ib*this.PT/d-this.ib}))}};b.prototype.Gaa=function(g){0!=g.delta&&(this.u4(),this.trigger(new m(b.Yo,{zoomDelta:this.ib*g.iY*.1})))};b.Uo="position change";b.Yo="zoom change";b.E0a="vieport navigation";b.D0a="relative navigation";b.C0a="relative exponential navigation";b.B0a="dragging";return b});define("jC",["require"],function(){return{c1:"rotateClockwise",d1:"rotateCounterClockwise",Dt:"zoomIn",Et:"zoomOut",Kf:"stop"}}); define("nu","require lo cy gi md gm gr jC oH".split(" "),function(a){var e=a("lo"),h=a("cy"),m=a("gi"),k=a("md"),b=a("gm"),g=a("gr"),d=a("jC");a("oH");var c=e.extend(m,function(f,l){m.call(this);this.j=f;this.ga=l;this.Fr=this.NV=this.W=!1;this.Ka=this.Ha=.5;this.bd=0;this.ib=1;this.ze=this.Ae=100;this.Df=k.Qz;this.cc=new b;this.lb=new g;this.j.Rn?(this.lb.YP(c.I1),this.cc.a_(c.J1)):(this.lb.YP(0),this.cc.a_(1));this.lb.bind(g.Uo,this.oMa,this,!0);this.lb.bind(g.Yo,this.jy,this,!0)});c.prototype.clear= function(){this.lb.unbind(g.Uo,this.C1a,this,!0);this.lb.unbind(g.Yo,this.jy,this,!0);this.lb.Ql();this.j=this.ga=this.cc=this.lb=null};c.prototype.Pj=function(f){switch(f){case d.c1:this.Kc(0,0,+c.D1,0,0,0,0,0);break;case d.d1:this.Kc(0,0,-c.D1,0,0,0,0,0);break;case d.Dt:this.Kc(0,0,0,+c.wJ,0,0,0,0);break;case d.Et:this.Kc(0,0,0,-c.wJ,0,0,0,0);break;case d.Kf:this.Kc(0,0,0,0,0,0,0,0)}};c.prototype.setPosition=function(f,l,p,q,n,r){this.Ha=f;this.Ka=l;this.bd=p;this.ib=q;this.Ae=n;this.ze=r;this.lb.Jd(this.bd, this.ib,this.Ae,this.ze)};c.prototype.af=function(){return this.W&&this.cc.af()};c.prototype.zb=function(f){this.cc.zb(f);this.ga.setPosition(this.Ha+this.cc.B3,this.Ka+this.cc.C3,this.bd+this.cc.z3,this.ib+this.cc.qS);this.Ha=this.ga.getX();this.Ka=this.ga.getY();this.bd=this.ga.aI();this.ib=this.ga.Iq()};c.prototype.bQ=function(f){this.Fr=f;this.lb.FZa(!this.Fr)};c.prototype.nc=function(f){(this.W=f)?this.lb.Oq(this.j.getParent()):this.lb.Ql()};c.prototype.oMa=function(f){this.Kc(0,0,0,0,f.data.xDelta, f.data.yDelta,0,0)};c.prototype.jy=function(f){this.Kc(0,0,0,0,0,0,0,f.data.zoomDelta)};c.prototype.Kc=function(f,l,p,q,n,r,t,u){this.cc.Rza(f,l,p,q,n,r,t,u);this.Oh()};c.prototype.Oh=function(){this.trigger(new h(c.qh))};c.qh="position change request";c.I1=7;c.J1=.2;c.wJ=.5;c.D1=30;return c}); define("mJ","require lo cy gi oj bF gm gr jC oH".split(" "),function(a){var e=a("lo"),h=a("cy"),m=a("gi"),k=a("oj"),b=a("bF"),g=a("gm"),d=a("gr"),c=a("jC");a("oH");var f=e.extend(m,function(l,p){m.call(this);this.j=l;this.ga=p;this.W=!1;this.Ka=this.Ha=.5;this.bd=0;this.ib=1;this.ze=this.Ae=100;this.V=null;this.p4=!0;this.Sc=null;this.mV=0;this.ms=this.Gk=this.vv=void 0;this.cc=new g;this.lb=new d;this.j.Rn?(this.lb.YP(f.I1),this.cc.a_(f.J1)):(this.lb.YP(0),this.cc.a_(1));this.lb.bind(d.Yo,this.jy, this,!0)});f.prototype.mZa=function(l,p){this.Ae=l;this.ze=p;this.sH()};f.prototype.gw=function(l){this.Sc!=l&&(this.Sc=l,this.mV=void 0,this.sH())};f.prototype.rn=function(l,p){this.Sc==l&&(this.mV=p,this.sH())};f.prototype.sH=function(){if(this.Sc&&void 0!=this.mV){var l=this.Sc.get("x",0)/this.Ae;var p=this.Sc.get("y",0)/this.ze;var q=-(this.mV+this.Sc.get("angle",0))}else q=p=l=void 0;this.ms!=q&&(this.ms=q,this.Oh());if(this.vv!=l||this.Gk!=p)this.vv=l,this.Gk=p,this.QKa(),this.Oh()};f.prototype.QKa= function(){this.p4=!0;this.Oh()};f.prototype.SC=function(){if(this.p4||this.V&&this.V.Re())if(this.p4=!1,this.V=null,void 0!=this.vv&&void 0!=this.Gk&&void 0!=this.ms){for(var l=this.ms-this.bd;180l;)l+=360;this.Ha!=this.vv||this.Ka!=this.Gk?this.V=new k("quad_in_out",[new b("x",this.Ha,this.vv,1),new b("y",this.Ka,this.Gk,1),new b("angleDif",l,l,360)],500):this.ms!=this.bd&&(this.V=new k("quad_in_out",[new b("x",this.Ha,this.Ha,1),new b("y",this.Ka,this.Ka,1),new b("angleDif", l,0,360)],500))}};f.prototype.clear=function(){this.lb.unbind(d.Yo,this.jy,this,!0);this.lb.Ql();this.j=this.ga=this.V=this.cc=this.lb=null};f.prototype.Pj=function(l){switch(l){case c.Dt:this.Kc(+f.wJ,0);break;case c.Et:this.Kc(-f.wJ,0);break;case c.Kf:this.Kc(0,0)}};f.prototype.setPosition=function(l,p,q,n,r,t){this.Ha=l;this.Ka=p;this.bd=q;this.ib=n;this.lb.Jd(this.bd,this.ib,r,t)};f.prototype.af=function(){return this.W&&(this.V||this.cc.af()||void 0!=this.vv&&this.Ha!=this.vv||void 0!=this.Gk&& this.Ka!=this.Gk||void 0!=this.ms&&this.bd!=this.ms)?!0:!1};f.prototype.zb=function(l){this.SC();this.V?(this.V.zb(l),this.Ha=this.V.cb("x"),this.Ka=this.V.cb("y"),this.bd=this.ms-this.V.cb("angleDif")):(void 0!=this.vv&&(this.Ha=this.vv),void 0!=this.Gk&&(this.Ka=this.Gk),void 0!=this.ms&&(this.bd=this.ms));this.cc.zb(l);this.ga.setPosition(this.Ha,this.Ka,this.bd,this.ib+this.cc.qS);this.Ha=this.ga.getX();this.Ka=this.ga.getY();this.bd=this.ga.aI();this.ib=this.ga.Iq()};f.prototype.nc=function(l){(this.W= l)?(this.lb.Oq(this.j.getParent()),this.sH()):this.lb.Ql()};f.prototype.jy=function(l){this.Kc(0,l.data.zoomDelta)};f.prototype.Kc=function(l,p){this.cc.Rza(0,0,0,l,0,0,0,p);this.Oh()};f.prototype.Oh=function(){this.trigger(new h(f.qh))};f.qh="position change request";f.I1=7;f.J1=.2;f.wJ=.5;f.D1=30;return f}); define("nR","require lo cy gi jU md kz nu mJ oH".split(" "),function(a){var e=a("lo"),h=a("cy"),m=a("gi"),k=a("jU"),b=a("md"),g=a("kz"),d=a("nu"),c=a("mJ"),f=a("oH"),l=e.extend(m,function(p){m.call(this);this.j=p;this.j.bind(f.kc,this.hc,this);this.Km=k.Qz;this.Sc=null;this.Ka=this.Ha=.5;this.bd=0;this.ib=1;this.Qa=null;this.dW=this.cW=this.xs=this.ws=!1;this.Zm=!0;this.W=!1;this.ga=new g;this.ga.Sq(this.Km);this.Ub=new d(this.j,this.ga);this.Ub.bind(d.qh,this.Rp,this,!0);this.ui=new c(this.j,this.ga); this.ui.bind(c.qh,this.Rp,this,!0);this.PV()});l.prototype.clear=function(){this.Ub.unbind(d.qh,this.Rp,this);this.Ub.clear();this.Ub=null;this.ui.unbind(c.qh,this.Rp,this);this.ui.clear();this.Qa=this.ga=this.ui=null;this.j.unbind(f.kc,this.hc,this);this.j=null};l.prototype.stop=function(){this.ce=this.Qa=null;this.W=!1;this.Ub.nc(!1);this.ui.nc(!1);this.lv(0,0,0)};l.prototype.start=function(p){var q=p.Qa,n=q.get("width",100),r=q.get("height",100),t=q.get("scaleMode",b.rh),u=q.get("minimumZoomFactor", 1),v=q.get("maximumZoomFactor",1),w=q.get("initialZoomFactor",1);this.Qa=q;this.W=!0;this.ce=p.getItem();this.lv(0,0,0);this.ui.mZa(n,r);this.ga.setConfiguration(n,r,t,u,v);this.ga.setPosition(.5,.5,0,w);this.j.cQ(this.ce,this.ga.getX(),this.ga.getY(),this.ga.aI(),this.ga.Iq());this.PV()};l.prototype.Pj=function(p){this.Ub.Pj(p);this.ui.Pj(p)};l.prototype.Sq=function(p){this.Km!=p&&(this.Km=p,this.ga.Sq(p),this.PV())};l.prototype.gw=function(p){this.Sc!=p&&(this.Sc=p,this.ui.gw(p),this.PV())};l.prototype.bQ= function(p){this.Ub&&this.Ub.bQ(p)};l.prototype.rn=function(p,q,n,r){this.ui.rn(p,q,n,r)};l.prototype.Yv=function(p){this.W&&(this.ui.af()?(this.ui.zb(p),this.Hl(this.ui.Ha,this.ui.Ka,this.ui.bd,this.ui.ib),this.Ma()):this.Ub.af()?(this.Ub.zb(p),this.Hl(this.Ub.Ha,this.Ub.Ka,this.Ub.bd,this.Ub.ib),this.Ma()):this.lv(0,0,0))};l.prototype.wd=function(){if(this.ce){var p=this.j.fP(this.ce),q=this.j.gP(this.ce),n=this.j.FY(this.ce),r=this.j.Jva(this.ce),t=this.j.eP(this.ce),u=this.j.dP(this.ce),v=p-this.Ha, w=q-this.Ka,x=r-this.ib;this.Ha=p;this.Ka=q;this.bd=n;this.ib=r;this.lv(v,w,x);this.ui.setPosition(p,q,n,r,t,u);this.Ub.setPosition(p,q,n,r,t,u)}};l.prototype.PV=function(){this.Km==k.i1&&null!=this.Sc&&this.Sc.get("map")==this.Qa?(this.Ub.nc(!1),this.ui.nc(!0)):(this.Ub.nc(!0),this.ui.nc(!1))};l.prototype.Rp=function(){this.Ma()};l.prototype.hc=function(){this.ga.setSize(this.j.Xa(),this.j.xb());this.Ma()};l.prototype.Ma=function(){this.trigger(new h(l.Db))};l.prototype.Hl=function(p,q,n,r){this.j.cQ(this.ce, p,q,n,r)};l.prototype.lv=function(p,q,n){p=!1;this.xs!=0>n&&(this.xs=!this.xs,p=!0);this.ws!=0this.CA&&(this.dW=!this.dW,p=!0);this.Zm!=(0==n)&&(this.Zm=!this.Zm,p=!0);p&&this.trigger(new h(l.Rj,{rotatingClockwise:this.cW,rotatingCounterClockwise:this.dW,zoomingIn:this.ws,zoomingOut:this.xs,stopped:this.Zm}))};l.Db="request frame";l.Rj="movement change";return l}); define("jG","require lo cy gi md kz".split(" "),function(a){var e=a("lo"),h=a("cy"),m=a("gi"),k=a("md"),b=a("kz"),g=e.extend(m,function(d,c){m.call(this);this.M=d;this.j=c;this.ga=new b;this.wg=[];this.oa=g.vh;this.xp=this.lj=this.dl=null;this.Pg=this.M.get("transitionDuration");this.yg=void 0});g.prototype.Sq=function(d){this.ga.Sq(d)};g.prototype.RO=function(d){d.vP()&&this.U2();this.wg.push(d);this.SU()};g.prototype.hide=function(){this.U2();this.wg.push(null);this.SU()};g.prototype.clear=function(){this.oa= g.vh;this.U2();this.SNa();this.a9();this.j=null};g.prototype.wd=function(d){this.oa==g.vh||this.oa!=g.En&&this.oa!=g.Nw||(this.yg+=d,d=Math.min(1,this.yg/this.Pg),this.oa==g.En?this.j.Qq(this.xp,d):this.j.Qq(this.uS,1-d),this.ygd.length;)d="0"+d;return d};return e}); define("kS","require eg lo oH cy gi nz mk bc oj bF".split(" "),function(a){var e=a("eg"),h=a("lo"),m=a("oH"),k=a("cy"),b=a("gi"),g=a("nz"),d=a("mk"),c=a("bc"),f=a("oj"),l=a("bF"),p=h.extend(b,function(q,n,r){b.call(this);this.j=q;this.Qa=n;this.dc=r;this.wa=this.dc.getItem();this.kq=this.dc.Xva();this.lq=this.dc.Yva();this.xu=this.Qn=void 0;this.M=this.j.getParent();this.M.bind(m.jc,this.kf,this);this.M.bind(m.ac,this.eM,this);this.M.bind(m.ub,this.mk,this);this.M.bind(m.Zb,this.Xn,this);this.M.bind(m.qa, this.Nr,this);r.bind(m.G("selected"),this.Roa,this);r.bind(m.G("enabled"),this.Op,this);this.aU=new d(this.j,this.Qa,this.dc,this.dc.get("map",null));this.cU=new d(this.j,this.Qa,this.dc,this.dc.get("rollOverMap",this.dc.get("map",null)));this.dU=new d(this.j,this.Qa,this.dc,this.dc.get("selectedMap",this.dc.get("rollOverMap",this.dc.get("map",null))));this.mT=new d(this.j,this.Qa,this.dc,this.dc.get("image",null));this.nT=new d(this.j,this.Qa,this.dc,this.dc.get("rollOverImage",this.dc.get("image", null)));this.oT=new d(this.j,this.Qa,this.dc,this.dc.get("selectedImage",this.dc.get("rollOverImage",this.dc.get("image",null))));this.Zc=this.Yc=void 0;this.mH=null;this.Jt=[];this.rr=[];this.VJ=[];this.xh={};this.uma=[];this.su=!1;this.ss=this.dc.get("useHandCursor");this.V=null;this.dH=void 0;this.nW=this.aW=this.IT=0;q=this.dc.get("areas",[]);for(n=0;nn.indexOf(t)&&n.push(t)}return n};p.prototype.N$=function(q,n){if(q)for(var r= 0;rf&&m.log("Unloading item not loaded");this.ae.splice(f,1);this.ZNa(d,c)};e.prototype.sf= function(d,c){return this.md[d].sf(c)};e.prototype.CDa=function(d,c){this.$x.push(d);d=d.Os();for(var f=0,l=d.length;f");this.O=this.na.get(0);this.xa=this.O.getContext("2d")}var h=a("jquery.mod");a=a("v");e.prototype.getItem=function(){return this.wa};e.prototype.VO=function(m){return this.wa==m?this:null};e.prototype.oY=function(m){return this.wa==m?[this]:[]};e.prototype.Uh=function(){this.ka&& this.ka.vba(this)};e.prototype.uf=function(m){this.zPa(m)};e.prototype.hra=function(m){this.qL!=m&&(this.qL=m,this.ka&&this.ka.YY())};e.prototype.zPa=function(m){this.wb!=m&&(this.wb=m,this.XY())};e.prototype.wW=function(m){this.Ck!=m&&(this.Ck=m,this.XY())};e.prototype.tN=function(m,k){if(this.ia!=m||this.ua!=k)this.ia=m,this.ua=k,this.UY()};e.prototype.Hl=function(m,k){if(this.Cu!=m||this.qq!=k)this.Cu=m,this.qq=k,this.XY()};e.prototype.XY=function(){this.ka&&this.ka.VY()};e.prototype.le=function(){this.CT= !0};e.prototype.Va=function(){this.CT&&(this.CT=!1,this.Qg())};e.prototype.Qg=function(){};e.prototype.UY=function(){this.AT=!0;this.XY()};e.prototype.w_=function(){if(this.AT){this.AT=!1;if(this.O.width!=this.ia||this.O.height!=this.ua)this.O.width=Math.round(this.ia),this.O.height=Math.round(this.ua);this.xa.clearRect(0,0,this.O.width,this.O.height);this.lg()}};e.prototype.lg=function(){};e.prototype.yUa=function(m){if(0this.Tb*this.td?this.Ad/this.Tb:this.td/this.Gb;break;default:this.mf=this.Gb*this.Ad>this.Tb*this.td?this.td/this.Gb:this.Ad/ this.Tb}this.PM=!0}if(this.PM){this.PM=!1;var f=this.Xa(),l=this.xb(),p=Math.cos(this.bd*Math.PI/180),q=Math.sin(this.bd*Math.PI/180);this.Hl(.5*this.td-this.$r*f+(this.$r-this.Ha)*p*f-(this.bs-this.Ka)*q*l,.5*this.Ad-this.bs*l+(this.bs-this.Ka)*p*l+(this.$r-this.Ha)*q*f);this.wW(this.bd);this.tN(f,l);for(f=0;fm)k.Sa=2*Math.atan2(h.x,h.w),k.bf= Math.PI/2,k.pitch=0;else{var b=h.x*h.x,g=h.z*h.z;k.Sa=-Math.atan2(2*h.y*h.w-2*h.x*h.z,1-2*h.y*h.y-2*g);k.bf=-Math.asin(2*m);k.pitch=Math.atan2(2*h.x*h.w-2*h.y*h.z,1-2*b-2*g);k.pitch=Math.min(Math.PI/2,Math.max(-Math.PI/2,k.pitch))}k.Sa*=e;k.pitch*=e;k.bf*=-e;return k},Sa:function(h){var m=h.x*h.y+h.z*h.w;return.499m?2*Math.atan2(h.x,h.w)*e:-Math.atan2(2*h.y*h.w-2*h.x*h.z,1-2*h.y*h.y-2*h.z*h.z)*e}}}); define("nG",["require"],function(){var a={};a.degToRad=Math.PI/180;a.radToDeg=180/Math.PI;a.Vector2=function(e,h){this.x=e||0;this.y=h||0};a.Vector2.prototype={constructor:a.Vector2,set:function(e,h){this.x=e;this.y=h;return this},copy:function(e){this.x=e.x;this.y=e.y;return this},subVectors:function(e,h){this.x=e.x-h.x;this.y=e.y-h.y;return this}};a.Vector3=function(e,h,m){this.x=e||0;this.y=h||0;this.z=m||0};a.Vector3.prototype={constructor:a.Vector3,set:function(e,h,m){this.x=e;this.y=h;this.z= m;return this},copy:function(e){this.x=e.x;this.y=e.y;this.z=e.z;return this},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},normalize:function(){var e=this.length();0!==e?this.multiplyScalar(1/e):this.z=this.y=this.x=0;return this},multiplyScalar:function(e){this.x*=e;this.y*=e;this.z*=e},applyQuaternion:function(e){var h=this.x,m=this.y,k=this.z,b=e.x,g=e.y,d=e.z;e=e.w;var c=e*h+g*k-d*m,f=e*m+d*h-b*k,l=e*k+b*m-g*h;h=-b*h-g*m-d*k;this.x=c*e+h*-b+f*-d-l*-g;this.y=f* e+h*-g+l*-b-c*-d;this.z=l*e+h*-d+c*-g-f*-b;return this},dot:function(e){return this.x*e.x+this.y*e.y+this.z*e.z},crossVectors:function(e,h){var m=e.x,k=e.y;e=e.z;var b=h.x,g=h.y;h=h.z;this.x=k*h-e*g;this.y=e*b-m*h;this.z=m*g-k*b;return this}};a.Quaternion=function(e,h,m,k){this.x=e||0;this.y=h||0;this.z=m||0;this.w=void 0!==k?k:1};a.Quaternion.prototype={constructor:a.Quaternion,set:function(e,h,m,k){this.x=e;this.y=h;this.z=m;this.w=k;return this},copy:function(e){this.x=e.x;this.y=e.y;this.z=e.z; this.w=e.w;return this},Fza:function(e,h,m){var k=Math.cos(e/2),b=Math.cos(h/2),g=Math.cos(m/2);e=Math.sin(e/2);h=Math.sin(h/2);m=Math.sin(m/2);this.x=e*b*g+k*h*m;this.y=k*h*g-e*b*m;this.z=k*b*m-e*h*g;this.w=k*b*g+e*h*m;return this},setFromAxisAngle:function(e,h){h/=2;var m=Math.sin(h);this.x=e.x*m;this.y=e.y*m;this.z=e.z*m;this.w=Math.cos(h);return this},multiply:function(e){return this.multiplyQuaternions(this,e)},multiplyQuaternions:function(e,h){var m=e.x,k=e.y,b=e.z;e=e.w;var g=h.x,d=h.y,c=h.z; h=h.w;this.x=m*h+e*g+k*c-b*d;this.y=k*h+e*d+b*g-m*c;this.z=b*h+e*c+m*d-k*g;this.w=e*h-m*g-k*d-b*c;return this},inverse:function(){this.x*=-1;this.y*=-1;this.z*=-1;this.normalize();return this},normalize:function(){var e=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w);0===e?(this.z=this.y=this.x=0,this.w=1):(e=1/e,this.x*=e,this.y*=e,this.z*=e,this.w*=e);return this},slerp:function(e,h){if(0===h)return this;if(1===h)return this.copy(e);var m=this.x,k=this.y,b=this.z,g=this.w,d=g* e.w+m*e.x+k*e.y+b*e.z;0>d?(this.w=-e.w,this.x=-e.x,this.y=-e.y,this.z=-e.z,d=-d):this.copy(e);if(1<=d)return this.w=g,this.x=m,this.y=k,this.z=b,this;e=Math.acos(d);var c=Math.sqrt(1-d*d);if(.001>Math.abs(c))return this.w=.5*(g+this.w),this.x=.5*(m+this.x),this.y=.5*(k+this.y),this.z=.5*(b+this.z),this;d=Math.sin((1-h)*e)/c;h=Math.sin(h*e)/c;this.w=g*d+this.w*h;this.x=m*d+this.x*h;this.y=k*d+this.y*h;this.z=b*d+this.z*h;return this},setFromUnitVectors:function(){var e,h;return function(m,k){void 0=== e&&(e=new a.Vector3);h=m.dot(k)+1;1E-6>h?(h=0,Math.abs(m.x)>Math.abs(m.z)?e.set(-m.y,m.x,0):e.set(0,-m.z,m.y)):e.crossVectors(m,k);this.x=e.x;this.y=e.y;this.z=e.z;this.w=h;this.normalize();return this}}()};return a}); define("fo",["require","oH","cy","gi","nG"],function(a){function e(){f||(f=!0,n=new c.Vector3(0,0,1),r=new c.Quaternion,t=new c.Quaternion(-Math.sqrt(.5),0,0,Math.sqrt(.5)),u=new c.Quaternion,m(),window.addEventListener("orientationchange",m,!1),window.addEventListener("deviceorientation",k,!1),h())}function h(){if(v&&void 0!==p&&void 0!==q){v=!1;var y=c.degToRad*q;u.Fza(c.degToRad*p.beta,c.degToRad*p.alpha,-(c.degToRad*p.gamma));u.multiply(t);u.multiply(r.setFromAxisAngle(n,-y));w||(x++,5<=x&&(w= !0,l.trigger(new g(b.Vc))));l.trigger(new g(b.pa))}}function m(){q=window.orientation||0;v=!0;h()}function k(y){p=y;v=!0;h()}var b=a("oH"),g=a("cy"),d=a("gi"),c=a("nG"),f=!1,l=new d,p,q,n,r,t,u,v,w=!1,x=0;e.prototype.Hq=function(){h();return u};e.prototype.bind=function(){l.bind.apply(l,arguments)};e.prototype.unbind=function(){l.unbind.apply(l,arguments)};e.prototype.stop=function(){window.removeEventListener("orientationchange",m,!1);window.removeEventListener("deviceorientation",k,!1)};return e}); define("iP","require oH cy gi v nG".split(" "),function(a){function e(q){this.LWa=q;this.Eba=new k;this.hY=new k;this.pda=new k;this.mD=new f.Quaternion;this.oda=new f.Quaternion;this.Yta=new f.Quaternion;this.Uwa=!1;this.lY=new f.Vector3;this.Oca=new f.Vector3;this.MVa=new f.Quaternion}function h(){this.deviceId="webvr-polyfill:fused";this.Cxa=!1;this.Bxa=0;this.EO=new f.Vector3;this.PY=new f.Vector3;this.filter=new e(.98);this.KXa=new m(.04);this.qI=p.qI();this.kn=p.kn();p.Wba();this.Fca=p.vWa(); this.nY=new f.Quaternion;p.kn()?this.nY.setFromAxisAngle(new f.Vector3(1,0,0),Math.PI/2):this.nY.setFromAxisAngle(new f.Vector3(1,0,0),-Math.PI/2);this.ZY=new f.Quaternion;this.WI=new f.Quaternion;this.vya=new f.Quaternion;this.vya.setFromAxisAngle(new f.Vector3(0,0,1),-window.orientation*Math.PI/180);this.Uza();p.Rwa()&&this.nY.multiply(this.ZY);this.Vs=new f.Quaternion;this.qI=p.qI();this.kn=p.kn();this.uWa=66<=p.Wba();this.ED=this.ED.bind(this);this.IP=this.IP.bind(this);this.HP=this.HP.bind(this); screen&&screen.orientation&&screen.orientation.addEventListener?screen.orientation.addEventListener("change",this.ED):window.addEventListener("orientationchange",this.ED);this.Fca?window.addEventListener("deviceorientation",this.IP):window.addEventListener("devicemotion",this.HP)}function m(q){this.LXa=q;this.RZ=new f.Quaternion;this.CI=null;this.Rua=new f.Quaternion;this.KP=new f.Quaternion}function k(q,n){this.set(q,n)}var b=a("oH"),g=a("cy"),d=a("gi"),c=a("v"),f=a("nG"),l=new d;e.prototype.tTa= function(q,n){this.Eba.set(q,n)};e.prototype.yTa=function(q,n){this.hY.set(q,n);p.IWa(n-this.pda.u_)&&this.mYa();this.pda.copy(this.hY)};e.prototype.mYa=function(){if(this.Uwa){var q=this.NVa(this.hY.sample,this.hY.u_-this.pda.u_);this.MVa.multiply(q);this.mD.copy(this.oda);this.mD.multiply(q);q=new f.Quaternion;q.copy(this.mD);q.inverse();this.lY.set(0,0,-1);this.lY.applyQuaternion(q);this.lY.normalize();this.Oca.copy(this.Eba.sample);this.Oca.normalize();q=new f.Quaternion;q.setFromUnitVectors(this.lY, this.Oca);q.inverse();var n=new f.Quaternion;n.copy(this.mD);n.multiply(q);this.mD.slerp(n,1-this.LWa);this.oda.copy(this.mD)}else this.Yta=this.sTa(this.Eba.sample),this.oda.copy(this.Yta),this.Uwa=!0};e.prototype.Hq=function(){return this.mD};e.prototype.sTa=function(q){var n=new f.Vector3;n.copy(q);n.normalize();q=new f.Quaternion;q.setFromUnitVectors(new f.Vector3(0,0,-1),n);q.inverse();return q};e.prototype.NVa=function(q,n){var r=new f.Quaternion,t=new f.Vector3;t.copy(q);t.normalize();r.setFromAxisAngle(t, q.length()*n);return r};h.prototype.stop=function(){screen&&screen.orientation&&screen.orientation.addEventListener&&screen.orientation.removeEventListener("change",this.ED);window.removeEventListener("orientationchange",this.ED);window.removeEventListener("deviceorientation",this.IP);window.removeEventListener("devicemotion",this.HP)};h.prototype.Qk=function(){return null};h.prototype.Hq=function(){var q=void 0;if(this.Fca&&this.tS){this.Tua=this.Tua||function(){var r=(new f.Quaternion).setFromAxisAngle(new f.Vector3(0, 0,-1),0),t=new f.Quaternion;"landscape-secondary"==this.lW?t.setFromAxisAngle(new f.Vector3(0,1,0),Math.PI/-2):t.setFromAxisAngle(new f.Vector3(0,1,0),Math.PI/2);return r.multiply(t)}();this.Sua=this.Sua||function(){var r=new f.Quaternion;r.setFromAxisAngle(new f.Vector3(1,0,0),-Math.PI/2);return r}();q=this.tS;var n=new f.Quaternion;n.copy(q);n.multiply(this.Sua);n.multiply(this.Vs);n.multiply(this.WI);n.multiplyQuaternions(this.Tua,n);this.I1a&&(n.x=0,n.z=0,n.normalize());this.LZ[0]=n.x;this.LZ[1]= n.y;this.LZ[2]=n.z;this.LZ[3]=n.w;return this.LZ}q=this.filter.Hq();q=this.KXa.zVa(q,this.PY,this.CI);n=new f.Quaternion;n.copy(this.nY);n.multiply(this.Vs);n.multiply(q);n.multiply(this.WI);return n};h.prototype.resetPose=function(){this.Vs.copy(this.filter.Hq());this.Vs.x=0;this.Vs.y=0;this.Vs.z*=-1;this.Vs.normalize();p.Rwa()&&this.Vs.multiply(this.ZY);this.Vs.multiply(this.vya)};h.prototype.IP=function(q){this.tS=this.tS||new f.Quaternion;var n=q.alpha,r=q.beta;q=q.gamma;n=(n||0)*Math.PI/180; r=(r||0)*Math.PI/180;q=(q||0)*Math.PI/180;this.tS.Fza(r,n,-q)};h.prototype.HP=function(q){var n=q.rotationRate;if(n){var r=q.accelerationIncludingGravity;q=q.timeStamp/1E3;this.qI&&(q/=1E3);var t=q-this.CI;t<=p.Afa||t>p.xfa?this.CI=q:(this.EO.set(-r.x,-r.y,-r.z),this.PY.set(n.alpha,n.beta,n.gamma),(this.kn||this.qI||this.uWa)&&this.PY.multiplyScalar(Math.PI/180),this.filter.tTa(this.EO,q),this.filter.yTa(this.PY,q),this.CI=q,this.Cxa||(this.Bxa++,5<=this.Bxa&&(this.Cxa=!0,l.trigger(new g(b.Vc)))), this.lW!=this.wva()&&this.ED(),l.trigger(new g(b.pa)))}else this.Fca=!0,window.addEventListener("deviceorientation",this.IP),window.removeEventListener("devicemotion",this.HP)};h.prototype.bind=function(){l.bind.apply(l,arguments)};h.prototype.unbind=function(){l.unbind.apply(l,arguments)};h.prototype.ED=function(){this.Uza();l.trigger(new g(b.pa))};h.prototype.Uza=function(){this.WI.set(0,0,0,1);this.lW=this.wva();switch(this.lW){case "landscape-primary":this.WI.setFromAxisAngle(new f.Vector3(0, 0,1),-Math.PI/2);break;case "landscape-secondary":this.WI.setFromAxisAngle(new f.Vector3(0,0,1),Math.PI/2)}this.ZY.copy(this.WI);this.ZY.inverse()};h.prototype.wva=function(){var q=screen.orientation&&screen.orientation.type;if(!q)switch(window.orientation){case 0:q="portrait-primary";break;case 90:q="landscape-primary";break;case -90:q="landscape-secondary";break;case 180:q="portrait-secondary"}"landscape-primary"==q&&(4.9this.EO.z?q=this.lW||q:0p.xfa?!1:!0}};p.kn=function(){var q=/iPad|iPhone|iPod/.test(navigator.platform);return function(){return q}}();p.v1a=function(){var q=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);return function(){return q}}();p.qI=function(){var q=-1!==navigator.userAgent.indexOf("Firefox")&&-1!==navigator.userAgent.indexOf("Android");return function(){return q}}();p.Wba=function(){var q=navigator.userAgent.match(/.*Chrome\/([0-9]+)/),n=q?parseInt(q[1],10):null;return function(){return n}}();p.vWa= function(){var q=!1;if(65===p.Wba()){var n=navigator.userAgent.match(/.*Chrome\/([0-9\.]*)/);if(n){n=n[1].split(".");var r=n[3];q=3325===parseInt(n[2],10)&&148>parseInt(r,10)}}else"getVRDisplays"in navigator&&c.browser()==c.Uk&&c.ZO()&&c.hd()==c.JQ&&(q=!0);return function(){return q}}();p.Rwa=function(){return 90==window.orientation||-90==window.orientation};return h}); define("hF","require lo oH cy gi nt v fo iP mj".split(" "),function(a){function e(){function w(){q=!0;l.trigger(new m(h.pa))}function x(){var H;!C||!y&&B?B&&(H=A):H=z;n!=H&&(n&&(n.unbind(h.pa,w),n.stop()),n=H)&&(n.bind(h.pa,w,this,!0),w())}var y=g.fe()==g.Hi||f.cj("debug")&&"deviceorientation"==f.getQueryParameter("sensor"),A=new c,B=!1;A.bind(h.Vc,function(){B=!0;x()},this,!0);var z=new d,C=!1;z.bind(h.Vc,function(){C=!0;x()},this,!0)}a("lo");var h=a("oH"),m=a("cy"),k=a("gi"),b=a("nt"),g=a("v"), d=a("fo"),c=a("iP"),f=a("mj"),l=new k,p={},q=!1,n,r=[],t=!1,u=!1;p.uda=function(w){w&&r.push(w);if(!p.disabled)for(;r.length;)r.pop()();else if(g.fe()==g.Hi&&window.DeviceMotionEvent&&DeviceMotionEvent.requestPermission){DeviceOrientationEvent.requestPermission().then(function(y){"granted"===y&&(u=!0,x())})["catch"](function(){});DeviceMotionEvent.requestPermission().then(function(y){"granted"===y&&(t=!0,x())})["catch"](function(){});var x=function(){if(p.disabled&&t&&u)for(p.disabled=!1,e();r.length;)r.pop()()}; x()}};p.bind=function(w,x){l.bind(h.pa,w,x)};p.unbind=function(w,x){l.unbind(h.pa,w,x)};p.xXa=function(){return q};p.Hq=function(){q=!1;if(n){var w=n.Hq();w=b.Eea(w);return{yaw:w.Sa,pitch:w.pitch,roll:w.bf}}return{yaw:0,pitch:0,roll:0}};if(g.fe()==g.v1||g.fe()==g.vfa)p.zg=!1,p.disabled=!1;else if(g.fe()==g.aE&&g.browser()==g.Uk&&"https:"!=window.location.protocol&&"localhost"!=window.location.hostname)p.zg=!0,p.disabled=!0;else if(g.fe()==g.Hi)if(p.zg=!0,p.disabled=!0,window.DeviceMotionEvent&&DeviceMotionEvent.requestPermission)p.uda(); else{var v=function(){window.removeEventListener("deviceorientation",v,!1);p.disabled=!1;e()};window.addEventListener("deviceorientation",v,!1)}else p.zg=void 0!=window.DeviceMotionEvent,p.disabled=!1;p.zg&&!p.disabled&&e();return p});define("mD",["require"],function(){return{G0a:"single",FRONT:"front",Pa:"left",BACK:"back",hb:"right",uc:"top",pc:"bottom"}}); define("gU",["require","mD"],function(a){a=a("mD");var e={},h=Math.PI/180,m=new THREE.Matrix4;new THREE.Matrix4;var k=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];e.If=Math.pow(10,3);e.R_=.5*e.If;e.BCa=e.If;e.qga=[a.FRONT,a.hb,a.BACK,a.Pa,a.uc,a.pc];e.Nua=function(b,g){for(var d=e.If,c=e.R_,f=b*g,l=this.Xt(),p=[],q=0,n=6*f;q=v||(t=d.origin.x+d.direction.x*v-l.x,u=d.origin.y+ d.direction.y*v-l.y,l=d.origin.z+d.direction.z*v-l.z,d=(g*t+f*u+n*l)/(g*g+f*f+n*n),l=(p*t+r*u+q*l)/(p*p+r*r+q*q),g=b.faceVertexUvs[0][0][0],f=b.faceVertexUvs[0][1][2],b=b.faceVertexUvs[0][0][1],0>d||1l||1=w))){u=c.origin.x+c.direction.x*w-l.x;v=c.origin.y+c.direction.y*w-l.y;c=c.origin.z+c.direction.z*w-l.z;if(0!=(l=t*d-p*n))d=(v*d-u*n)/l,n=(v*p-u*t)/-l;else if(0!=(l=q*d-p*r))d=(v*d-u*n)/l,n=(v*p-u*t)/-l;else if(0!=(l=q*n-t*r))d=(c*n-v*r)/l,n=(c*t-v*q)/-l;else return;if(!(0> n||1d||1b;b++){f=k[(b+3)%4];l=k[b];var q=k[(b+1)%4];if(0>=l.z)p[d++]=l;else{if(0>=f.z){var n=k[c++],r=f.z/(f.z-l.z);n.x=f.x+(l.x-f.x)*r;n.y=f.y+(l.y-f.y)*r;n.z=-1E-5;p[d++]=n}0>=q.z&&(n=k[c++],r=l.z/(l.z-q.z),n.x=l.x+(q.x-l.x)*r,n.y=l.y+(q.y-l.y)*r,n.z=-1E-5,p[d++]=n)}}if(2d.x&&-1>c.x&&-1>f.x||1d.y&&-1>c.y&&-1>f.y))return!0}return!1};e.Oua=function(b,g,d,c,f,l,p,q,n){var r=b*h,t=.5*-r+.5*Math.PI,u=g*h,v=.5*(Math.PI-u)-d*h,w=.5*e.BCa,x=64/Math.PI,y=Math.max(2,Math.ceil(r/c*x));x=Math.max(2,Math.ceil(u/f*x));for(var A=c*y,B=f*x,z=this.Xt(),C=0,H=[],D=0;D<=B;D++){for(var I=[],F=v+D*u/B,N=0;N<=A;N++){var S=-(t+N*r/A);z.vertices.push(new THREE.Vector3(-w*Math.cos(S)*Math.sin(F),+w*Math.cos(F), +w*Math.sin(S)*Math.sin(F)));I.push(C++)}H.push(I)}for(t=r=0;t',w='',x='',y='',A='';b.jb()?(t+=" margin:0 1vmin; min-width:20vmin; padding:2.2vmin 4vmin; font-size:3.6vmin; font-weight:bold; min-width:30vmin;",p+=" font-size:3.6vmin; line-height:4.3vmin;",q+=" margin:5vmin 0;",n+=" margin:5vmin 0;",r+=" margin:3vmin 0;", u+=" height:4vmin; margin:0 1vmin 0 0; width:4vmin;"):t+=" font-size:19px; padding:17px 34px;";q+=p;e.prototype.s3=function(){this.jj||(this.jj=h("
"),this.jj.css({position:"fixed","z-index":d.SBa,left:0,top:0,margin:0,padding:0,height:"100%",width:"100%","background-color":"rgba(255, 255, 255, 0.99)"}),this.jj.html(this.$Fa),h(this.jj).find("button").on("click",function(R){this.XLa(h(R.currentTarget).attr("id"))}.bind(this)))};e.prototype.F9=function(R,W){var G={},L;for(L in W)G[L]=R.css(L); this.q$.push({$el:R,css:G});R.css(W)};e.prototype.sOa=function(){for(;this.q$.length;){var R=this.q$.pop();R.$el.css(R.css)}};e.prototype.show=function(R,W,G){R||(R=function(){});W||(W=function(){});if(this.yN){var L=this.iS;this.iS=function(){L();R()};var U=this.TR;this.TR=function(){U();W()}}else{this.s3();this.iS=R;this.TR=W;var O=this.TIa();if(void 0===O){this.yN=!0;var V=this;O=f.fullscreenElement()||document.body;O=h(O);!0!==G?O.children().each(function(){V.F9(h(this),{visibility:"hidden"})}): (this.F9(O,{overflow:"hidden"}),O.children().each(function(){V.F9(h(this),{position:"absolute","z-index":0})}));O.append(this.jj)}else this.yN=!1,O?this.iS():this.TR()}};e.prototype.hide=function(){this.yN&&(this.yN=!1,this.jj.detach(),this.sOa())};e.prototype.TIa=function(){var R=l.getItem(this.Jka());if("true"==R)return!0;if("false"==R)return!1};e.prototype.$qa=function(R){l.setItem(this.Jka(),R?"true":"false")};e.prototype.Jka=function(){return this.kTa+"DontDisplay:"+window.location.pathname}; e.prototype.XLa=function(R){var W=h("#tdvvriw_dontdisplay").is(":checked");this.hide();"tdvvriw_continue"==R?(this.iS(),W&&this.$qa(!0)):"tdvvriw_cancel"==R&&(this.TR(),W&&this.$qa(!1))};a=m.extend(e,function(){var R=['
\n
',v,'
'+k("use-cardboard-info")+"
",'
","
",'
',"
",'
','
'+k("samsung-internet-vr-app-info")+"
",'
","
",y,"
\n
",'
','","
"].join("\n");e.call(this,"ChromeAppInfoWindow",R)});var B=m.extend(e,function(){var R=['
\n
',v,'
'+k("use-cardboard-info")+"
",'
',"
",'
',"
",'
', '
'+k("samsung-internet-vr-info")+"
","
",y,"
\n
",'
','","
"].join("\n");e.call(this,"SamsungInternetInfoWindow",R)}),z=m.extend(e,function(){e.call(this,"SamsungInternetForGearVRInfoWindow", ['
\n
',y,'
This content requires access to the WebVR API.
To enable WebVR open the "More" menu you\'ll find above this window and then click on the "Labs" item.
','
',"
\n
"].join("\n"))}),C=m.extend(e,function(){var R= ['
','
','
","
"].join("\n");e.call(this,"ExternalVRDisplayVRInfoWindow",R)});C.prototype.s3=function(){e.prototype.s3.call(this);!0===g.Wh("vrv")&& this.jj.css({background:"none"})};var H=m.extend(e,function(){var R=b.browser()==b.Xh?"https:"!=window.location.protocol?"
"+k("giroscope-disabled-http")+"
":window.DeviceMotionEvent.requestPermission?k("giroscope-disabled-safari-request-permission").map(function(W){return"
"+W+"
"}).join("\n"):k("giroscope-disabled-safari-toggle-on"):"
"+k("giroscope-disabled-http")+"
";R=['
\n
', '
',R,"
",'
',"
\n
",'
','","
"].join("\n");e.call(this,"GiroscopeDisabledInfoWindow",R)}),D=m.extend(e,function(){var R=['
\n
', v,'
'+k("use-cardboard-info")+'
","
",'
',"
",y,'
It looks like this device is compatible with Gear VR. If you have a Gear VR headset you can view this content using the Carmel Web Browser (by Oculus).
','
',"
\n
"].join("\n");e.call(this,"CarmelInstallationPromptVRInfoWindow", R)}),I=m.extend(e,function(){var R=['
\n
',v,'
'+k("cardboard-v1")+"
",'
","
",'
',"
",'
'+k("cardboard-v2")+"
",'
",x,"
\n
",'
','","
"].join("\n");e.call(this,"CardboardV2InfoWindow",R)}),F=m.extend(e,function(){var R=['
', '
','
","
"].join("\n");e.call(this,"EnterVRInfoWindow",R)}),N=m.extend(e,function(){e.call(this,"PreparingVRInfoWindow",['
','
Preparing VR...
',"
"].join("\n"))}), S=m.extend(e,function(){var R=['
',w,'
\n
',A,'
'+k("use-safari-for-vr")+"
",'
',"
",'
','","
"].join("\n");e.call(this,"UseSafariVRInfoWindow",R)});m=m.extend(e,function(){var R=['
','','
\n
\n
', '','
'+k("rotate-device")+"
","
\n
"].join("\n");e.call(this,"RotateVRInfoWindow",R)});var Q={};Q.yCa=new B;Q.F0a=new z;Q.kfa=new C;Q.l0a=new D;Q.p0a=new F;Q.z0a=new N;Q.Ega=new S;Q.oJ=new m;Q.ofa=new H;Q.gBa=new a;Q.Q_=new I;return Q}); define("dd",["require"],function(){return{Vk:"Cardboard",YCa:"WebVR",ZCa:"WebXR"}}); define("ht","require lH v ia mj bg".split(" "),function(a){var e=a("lH"),h=a("v"),m=a("ia"),k=a("mj");a("bg");var b={JWa:function(f){return this.uI(f)||this.Ywa(f)?!0:!1},At:function(){var f=h.MXa();b.At=function(){return f};return f},Ywa:function(f){return"string"==typeof f&&m.is(f,m.Cn)?!0:!1},q1a:function(f){return this.Cca(f)||this.Dca(f)?!0:!1},Dca:function(f){return"string"==typeof f&&(m.is(f,m.QBa)||m.rz(f,m.RBa))?!0:!1},uI:function(f){return!!f&&!!f.tagName&&"VIDEO"==f.tagName},sz:function(f){return"string"== typeof f&&m.is(f,m.HLS)||this.uI(f)&&m.is(f.currentSrc,m.HLS)?!0:!1},Tl:function(f){return"string"==typeof f&&m.is(f,m.Cn)||this.uI(f)&&m.is(f.currentSrc,m.Cn)?!0:!1},Cca:function(f){return!!f&&!!f.tagName&&"IMG"==f.tagName},Mwa:function(f){return!!f&&!!f.tagName&&"CANVAS"==f.tagName},Tva:function(f){return Math.pow(2,Math.round(Math.log(f)/Math.LN2))},Wwa:function(f){return 0!==f&&0===(f&f-1)},Owa:function(){return h.browser()==h.dm},AWa:function(){return h.browser()==h.tw},kn:function(){return h.fe()== h.Hi}},g=h.fe()==h.aE&&!h.Rf()&&11>h.FTa();b.YAa=function(f){if(c)return!0;if(h.xba()&&15.1>h.VP())if(15<=h.VP()){if(h.uwa())return!0}else if(b.sz(f))return!0;if(b.AWa())return!0;if(b.kn()){if(h.jz()==h.iE&&15<=h.yD())return!1;if(b.sz(f)){if(!e.Gwa||14<=h.yD()&&14.6>h.yD())return!0}else if(12>h.yD()||f&&f.videoWidth&&f.videoHeight&&262144>=f.videoWidth*f.videoHeight)return!0}return g&&f&&.2>f.currentTime?!0:!1};b.zwa=function(){return b.Owa()||b.kn()};b.ywa=function(){return b.kn()&&e.Gwa&&11>h.yD()}; var d=!1;b.Kwa=function(){d=!1};b.tWa=function(){return d};b.zYa=function(){d=!0};var c=k.cj("vic");b.IXa=function(){b.kn()&&(c=!0)};b.Wva=function(f){return{alpha:!0,depth:!0,stencil:!0,antialias:e.NTa()?f||!1:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:"default",failIfMajorPerformanceCaveat:!1,xrCompatible:!b.Owa()}};b.Dba=function(f,l){l=b.Wva(l);return f.getContext("webgl",l)||f.getContext("experimental-webgl",l)};b.qUa=function(f){var l=b.Wva(!0);return f.getContext("webgl2", l)};b.getPixelRatio=function(){if(h.jb()){var f=0,l=0;try{f=window.top.innerWidth,l=window.top.innerHeight}catch(q){if(h.fe()==h.aE&&1this.io.indexOf(p)&&this.io.push(p)};a.prototype.WZ=function(p){this.io.splice(this.io.indexOf(p),1);this.sD()==p&&this.$f()};a.prototype.g_=function(p){var q=this.io.indexOf(p);0>q||q==this.io.length-1||(this.io.splice(q, 1),this.io.splice(this.io.length,0,p))};a.prototype.EJa=function(){return 0").css({position:"fixed",bottom:0,left:0,height:"100vh",width:"100vw"}),d=k("
"),c=null,f=null,l=null,p=[],q=null;m.request=function(n){if(n!==c){m.cancel();c=n;var r=b.fullscreenElement()||document.body;f=k(n);l=k(r);d.insertAfter(f);f.appendTo(g);l.children().each(function(){h(k(this),{visibility:"hidden"})});h(f,{position:"absolute",left:0,top:0,width:"100%",height:"100%"});r==document.body?h(g,{position:"fixed",left:0,top:"",right:"",bottom:0,height:"100vh",width:"100vw",margin:0, padding:0}):h(g,{position:"absolute",left:0,top:0,right:"",bottom:"",width:"100%",height:"100%",margin:0,padding:0});g.appendTo(l);e();q=setInterval(e,300)}};m.cancel=function(){if(c){g.detach();f.insertBefore(d);for(d.detach();p.length;){var n=p.pop();n.$el.css(n.css)}l=f=c=null;p=[];clearInterval(q)}};m.enabled=function(n){return c==n};return m}); define("lh","require lo oH cy gi oF cc".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("cy"),k=a("gi"),b=a("oF");a=a("cc");var g=['
','','
\n
\n
'].join("\n"),d=g+['','
'+ b("rotate-device")+"
"].join("\n")+"
\n
",c=g+['','
Please, swipe up to
enter Fullscreen Mode
'].join("\n")+"
\n
";e=e.extend(k,function(){k.call(this);this.xl=this.$g=this.Kn=this.nL=this.oL=this.I6=this.J6=void 0; this.vT=!1;this.Gy=this.x8=this.H6=this.yf=null;this.lka=[];this.i6=this.iq=!1;this.hc=this.hc.bind(this)});e.prototype.request=function(){this.iq||(this.iq=!0,this.r3(),window.addEventListener("resize",this.hc),document.body.appendChild(this.yf),document.body.appendChild(this.Gy),this.MQa=document.documentElement.style.overflow,this.LQa=document.body.style.overflow,document.documentElement.style.overflow="auto",document.body.style.overflow="auto",this.sM())};e.prototype.cancel=function(){this.iq&& (this.iq=!1,window.removeEventListener("resize",this.hc),document.body.style.overflow=this.LQa,document.documentElement.style.overflow=this.MQa,document.body.removeChild(this.yf),document.body.removeChild(this.Gy),this.dra(!1))};e.prototype.enabled=function(){return this.vT};e.prototype.r3=function(){this.yf||(this.yf=this.mS({position:"fixed",top:0,left:0,zIndex:9999998},!0),this.yf.id="tdvminuictr",this.x8=this.mS({position:"fixed",backgroundColor:"#fff",top:0,left:0,textAlign:"center"},!0,d),this.yf.appendChild(this.x8), this.H6=this.mS({position:"fixed",backgroundColor:"#fff",top:0,left:0,textAlign:"center"},!0,c),this.yf.appendChild(this.H6),this.Gy=this.mS({position:"absolute",top:0,left:0,right:0,height:"999999999vmax",zIndex:9999999},!1),this.Gy.id="tdvminuiscrl",this.Gy.addEventListener("touchend",this.hc))};e.prototype.mS=function(f,l,p){var q=document.createElement("div");this.lN(q,f);void 0!==p&&this.sPa(q,p);l&&this.lka.push(q);return q};e.prototype.hc=function(){[0,250,1E3,2E3].forEach(function(f){setTimeout(this.O7.bind(this), f)}.bind(this))};e.prototype.O7=function(){this.Kn==window.innerWidth&&this.$g==window.innerHeight||this.sM()};e.prototype.sM=function(){this.Kn=window.innerWidth;this.$g=window.innerHeight;this.xl=this.Kn>this.$g?"landscape":"portrait";if("landscape"==this.xl){this.J6&&this.I6&&this.iLa(this.J6,this.I6)&&(!this.oL&&!this.nL||this.jLa(this.oL,this.nL))&&(this.oL=this.Kn,this.nL=this.$g);this.dLa()&&(this.oL=this.Kn,this.nL=this.$g);this.J6=this.Kn;this.I6=this.$g;var f=this.oL==this.Kn&&this.nL== this.$g}else f=!1;this.lka.forEach(function(n){n.style.height=this.$g+"px";n.style.width=this.Kn+"px"}.bind(this));var l=this.iq&&"portrait"==this.xl,p=this.iq&&"landscape"==this.xl&&!f,q=this.iq&&"landscape"==this.xl;this.lN(this.yf,{display:l||p?"block":"none"});this.lN(this.x8,{display:l?"block":"none"});this.lN(this.H6,{display:p?"block":"none"});this.lN(this.Gy,{display:q?"block":"none",right:p?0:"99.9%"});this.dra(f)};e.prototype.dra=function(f){null!=this.qW&&(clearTimeout(this.qW),this.qW= null);this.vT!=f&&(this.qW=setTimeout(function(){this.qW=null;(this.vT=f)?this.trigger(new m(h.Vq)):this.trigger(new m(h.sb));this.trigger(new m(h.pa))}.bind(this),f?1E3:0))};e.prototype.dLa=function(){var f=window.innerWidth,l=window.innerHeight,p=Infinity;[[480,320],[960,640],[1136,640],[1334,750],[1920,1080],[2001,1125],[2048,1536],[2172,1125],[2208,1242],[2732,2048],[2436,1125]].forEach(function(q){p=Math.min(p,Math.abs(100-100*f*q[1]/(l*q[0])))});return 1>=p?!0:!1};e.prototype.iLa=function(f, l){return f*window.innerHeight>l*window.innerWidth};e.prototype.jLa=function(f,l){return f*window.innerHeight>=l*window.innerWidth};e.prototype.lN=function(f,l){for(var p in l)f.style[p]=l[p]};e.prototype.sPa=function(f,l){f.innerHTML=l};return new e}); define("oM",["require"],function(){if("wakeLock"in navigator){var a=null;var e={enable:function(){null===a&&navigator.wakeLock.request("screen").then(function(h){a=h})},disable:function(){null!==a&&(a.release(),a=null)}}}else e={enable:function(){},disable:function(){}};return e}); define("kr",["require","jquery.mod","oF","cc"],function(a){function e(){this.jj=null;this.W=!1;this.hc=this.hc.bind(this);this.$g=this.Kn=this.xl=void 0}var h=a("jquery.mod"),m=a("oF"),k=a("cc");e.prototype.Xt=function(){this.jj||(this.jj=h("
"),this.jj.css({position:"fixed","z-index":1E6,left:0,top:0,margin:0,padding:0,height:"100%",width:"100%","background-color":"rgba(255, 255, 255, 0.99)"}),this.jj.html(['
','','
\n
\n
','','
'+m("rotate-device")+"
","
\n
"].join("\n")))};e.prototype.show=function(b){this.W||(this.W=!0,this.Xt(), h(b).append(this.jj),h(window).on("resize",this.hc),this.sM())};e.prototype.hide=function(){this.W&&(this.W=!1,h(window).off("resize",this.hc),this.jj.detach())};e.prototype.hc=function(){[0,250,1E3,2E3].forEach(function(b){setTimeout(this.O7.bind(this),b)}.bind(this))};e.prototype.O7=function(){this.Kn==window.innerWidth&&this.$g==window.innerHeight||this.sM()};e.prototype.sM=function(){this.Kn=window.innerWidth;this.$g=window.innerHeight;this.xl=this.Kn>this.$g?"landscape":"portrait";this.jj.toggle("landscape"!= this.xl)};return new e}); define("kN","require lo oH cy gU lH v hF iL cv dd hg e bg mZ t lh oM kr".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("cy"),k=a("gU"),b=a("lH"),g=a("v"),d=a("hF"),c=a("iL"),f=a("cv"),l=a("dd"),p=a("hg"),q=a("e"),n=a("bg"),r=a("mZ"),t=a("t"),u=a("lh"),v=a("oM"),w=a("kr"),x=e.extend(p,function(){p.call(this);this.Bj=this.Ng=this.Sh=this.eN=this.Du=this.Kk=this.Gd=null;this.Ce=l.Vk;this.requestFrame=this.requestFrame.bind(this)});x.prototype.initialize=function(B){if(this.$K()){var z=function(H){if(this.Gd= H.length?H[0]:null)this.Gd.depthNear=.1,this.Gd.depthFar=2*k.If,this.Kk="VRFrameData"in window?new VRFrameData:null,window.addEventListener("vrdisplaypresentchange",this.D8.bind(this),!1),u.bind(h.sb,this.$f.bind(this));B(!!this.Gd)}.bind(this),C=window.WebVRConfig||(window.WebVRConfig={});C.BUFFER_SCALE=x.NH;C.ALWAYS_APPEND_POLYFILL_DISPLAY=!0;C.LOCK_ORIENTATION=!1;f.Hga.load(function(){navigator.getVRDisplays().then(z)["catch"](function(){z([])})}.bind(this))}else B(!1)};x.prototype.Nk=function(){this.isPresenting()|| this.Ng||this.KC(function(){this.Y9(function(){this.x9(function(){this.isPresenting()||this.Ng||(this.Ng=this.w9(),this.V9(),this.Gd.requestPresent([{source:this.Ng.canvas}]).then(function(){this.Bj=this.Ng;this.Ng=null;g.hd()!=g.YI&&w.show(r.fullscreenElement());this.HG();this.yO()}.bind(this))["catch"](function(){this.Ng=null;this.PN()}.bind(this)))}.bind(this))}.bind(this))}.bind(this))};x.prototype.$f=function(){this.isPresenting()&&this.Gd.exitPresent()};x.prototype.requestFrame=function(B){return this.Gd.requestAnimationFrame(function(z){var C= this.HG();C&&this.cD();B(z);C&&this.Gd.submitFrame()}.bind(this))};x.prototype.isPresenting=function(){return!!this.Gd&&this.Gd.isPresenting};x.prototype.sD=function(){return this.Bj};x.prototype.getType=function(){return this.Ce};x.prototype.D8=function(){this.isPresenting()?n.h_(this.requestFrame,this.Gd.cancelAnimationFrame.bind(this.Gd)):(n.yda(),(this.Bj||this.Ng)&&this.PN());this.trigger(new m(h.pa))};x.prototype.$K=function(){return d.zg&&b.Ys&&g.jb()&&g.jz()!=g.iE};x.prototype.KC=function(B){d.disabled? c.ofa.show(function(){d.uda(function(){this.KC(B)}.bind(this))}):r.enabled()||!q.wP()?(r.$f(),this.WV(function(){this.KC(B)}.bind(this))):B()};x.prototype.V9=function(){t.request(this.Ng.canvas);g.hd()==g.ZI?this.wha():v.enable();g.hd()==g.YI&&u.request()};x.prototype.HG=function(){this.Gd.getFrameData(this.Kk);if(!this.Kk.pose||!this.Kk.pose.orientation)return!1;this.Du=this.Gd.getEyeParameters("left");this.eN=this.Gd.getEyeParameters("right");var B=this.Gd.getLayers();return(this.Sh=B&&B.length&& B[0]||null)?!0:!1};x.prototype.yO=function(){this.xe.YO=null;this.xe.Eo=2*this.Du.renderWidth;this.xe.hn=this.Du.renderHeight;this.xe.sY=1};x.prototype.cD=function(){var B=this.Kk.pose;this.Cd.orientation.fromArray(B&&B.orientation||y);this.Cd.position.fromArray(B&&B.position||A);this.eba()};x.prototype.eba=function(){this.Si.position.fromArray(this.Du.offset);this.Si.orientation.fromArray(y);this.Si.projectionMatrix.fromArray(this.Kk.leftProjectionMatrix);this.Si.viewport.x=Math.round(this.xe.Eo* this.Sh.leftBounds[0]);this.Si.viewport.y=Math.round(this.xe.hn*this.Sh.leftBounds[1]);this.Si.viewport.width=Math.round(this.xe.Eo*this.Sh.leftBounds[2]);this.Si.viewport.height=Math.round(this.xe.hn*this.Sh.leftBounds[3]);this.Xi.position.fromArray(this.eN.offset);this.Xi.orientation.fromArray(y);this.Xi.projectionMatrix.fromArray(this.Kk.rightProjectionMatrix);this.Xi.viewport.x=Math.round(this.xe.Eo*this.Sh.rightBounds[0]);this.Xi.viewport.y=Math.round(this.xe.hn*this.Sh.rightBounds[1]);this.Xi.viewport.width= Math.round(this.xe.Eo*this.Sh.rightBounds[2]);this.Xi.viewport.height=Math.round(this.xe.hn*this.Sh.rightBounds[3])};x.prototype.PN=function(){this.d9();this.Bj=this.Ng=null;u.cancel();t.cancel();v.disable();w.hide()};x.NH=Math.min(1,1280/(Math.max(screen.width,screen.height)*window.devicePixelRatio));var y=[0,0,0,1],A=[0,0,0];return x}); define("iT","require lo cy oH v dd hg gU e bg t".split(" "),function(a){var e=a("lo"),h=a("cy"),m=a("oH"),k=a("v"),b=a("dd"),g=a("hg"),d=a("gU"),c=a("e"),f=a("bg"),l=a("t");a=e.extend(g,function(){g.call(this);this.Bj=this.Ng=this.Sh=this.eN=this.Du=this.Kk=this.Gd=null;this.requestFrame=this.requestFrame.bind(this)});a.prototype.initialize=function(t){if(this.$K()){var u=function(v){if(this.Gd=v.length?v[0]:null)this.Gd.depthNear=.1,this.Gd.depthFar=2*d.If,this.Kk="VRFrameData"in window?new VRFrameData: null,window.addEventListener("vrdisplaypresentchange",this.D8.bind(this),!1),window.addEventListener("vrdisplayactivate",this.Hpa.bind(this)),window.addEventListener("vrdisplaydeactivate",this.$f.bind(this));t(!!this.Gd)}.bind(this);navigator.getVRDisplays().then(u)["catch"](function(){u([])})}else t(!1)};a.prototype.Nk=function(t){this.isPresenting()||this.Ng||this.KC(t,function(){this.Y9(function(){this.x9(function(){this.isPresenting()||this.Ng||this.Hpa()}.bind(this))}.bind(this))}.bind(this))}; a.prototype.$f=function(){this.isPresenting()&&this.Gd.exitPresent()};a.prototype.requestFrame=function(t){return this.Gd.requestAnimationFrame(function(u){var v=this.HG();v&&this.cD();t(u);v&&this.Gd.submitFrame()}.bind(this))};a.prototype.isPresenting=function(){return!!this.Gd&&this.Gd.isPresenting};a.prototype.sD=function(){return this.Bj};a.prototype.getType=function(){return b.YCa};a.prototype.$K=function(){return"getVRDisplays"in navigator&&!window.WebVRConfig};a.prototype.D8=function(){this.isPresenting()? (f.h_(this.requestFrame,this.Gd.cancelAnimationFrame.bind(this.Gd)),this.HG()&&this.cD()):(f.yda(),(this.Bj||this.Ng)&&this.PN());this.trigger(new h(m.pa))};a.prototype.KC=function(t,u){t||c.wP()?u():this.WV(function(){u()})};a.prototype.Hpa=function(){this.Ng=this.w9();this.V9();this.Gd.requestPresent([{source:this.Ng.canvas,attributes:{foveationLevel:3}}]).then(function(){this.Bj=this.Ng;this.Ng=null;this.HG()&&this.cD()}.bind(this))["catch"](function(){this.Ng=null;this.PN()}.bind(this))};a.prototype.V9= function(){l.request(this.Ng.canvas)};a.prototype.HG=function(){this.Gd.getFrameData(this.Kk);if(!this.Kk.pose||!this.Kk.pose.orientation)return!1;this.Du=this.Gd.getEyeParameters("left");this.eN=this.Gd.getEyeParameters("right");var t=this.Gd.getLayers();return(this.Sh=t&&t.length&&t[0]||null)?!0:!1};a.prototype.cD=function(){this.yO();var t=this.Kk.pose;this.Cd.orientation.fromArray(t&&t.orientation||p);this.Cd.position.fromArray(t&&t.position||q);this.eba()};a.prototype.yO=function(){this.xe.YO= null;this.xe.Eo=2*this.Du.renderWidth;this.xe.hn=this.Du.renderHeight;this.xe.sY=k.Rf()?2048/this.xe.hn:1};a.prototype.eba=function(){this.Si.position.fromArray(this.Du.offset);this.Si.orientation.fromArray(p);this.Si.projectionMatrix.fromArray(this.Kk.leftProjectionMatrix);var t=this.Sh.leftBounds&&4==this.Sh.leftBounds.length?this.Sh.leftBounds:n;this.Si.viewport.x=Math.round(this.xe.Eo*t[0]);this.Si.viewport.y=Math.round(this.xe.hn*t[1]);this.Si.viewport.width=Math.round(this.xe.Eo*t[2]);this.Si.viewport.height= Math.round(this.xe.hn*t[3]);this.Xi.position.fromArray(this.eN.offset);this.Xi.orientation.fromArray(p);this.Xi.projectionMatrix.fromArray(this.Kk.rightProjectionMatrix);t=this.Sh.rightBounds&&4==this.Sh.rightBounds.length?this.Sh.rightBounds:r;this.Xi.viewport.x=Math.round(this.xe.Eo*t[0]);this.Xi.viewport.y=Math.round(this.xe.hn*t[1]);this.Xi.viewport.width=Math.round(this.xe.Eo*t[2]);this.Xi.viewport.height=Math.round(this.xe.hn*t[3])};a.prototype.PN=function(){this.Bj=this.Ng=null;l.cancel()}; var p=[0,0,0,1],q=[0,0,0],n=[0,0,.5,1],r=[.5,0,.5,1];return a}); define("kB","require lo cy oH v mv dd hg gU e bg t lU hd".split(" "),function(a){var e=a("lo"),h=a("cy"),m=a("oH"),k=a("v"),b=a("mv"),g=a("dd"),d=a("hg"),c=a("gU"),f=a("e"),l=a("bg"),p=a("t"),q=a("lU"),n=a("hd"),r=e.extend(d,function(){d.call(this);this.dD=this.AO=this.aj=this.Bj=null;this.WG="stopped";this.requestFrame=this.requestFrame.bind(this);this.B9=this.B9.bind(this);this.C9=this.C9.bind(this);this.D9=this.D9.bind(this);this.Yy=!1;q.wait(function(){setTimeout(function(){this.Yy=!0}.bind(this), 10)}.bind(this))});r.prototype.initialize=function(v){if(this.$K())this.bRa().then(function(w){w?v(!0):v(!1)})["catch"](function(){v(!1)});else v(!1)};r.prototype.Nk=function(){"stopped"==this.WG&&this.KC(function(){this.Y9(function(){this.x9(function(){setTimeout(function(){this.DQa()}.bind(this),200)}.bind(this))}.bind(this))}.bind(this))};r.prototype.DQa=function(){"stopped"==this.WG&&(this.WG="starting",this.trigger(new h(m.pa)),l.aea(!0),navigator.xr.requestSession("immersive-vr").then(function(v){this.aj= v;this.aj.addEventListener("end",this.B9);this.aj.addEventListener("select",this.C9);this.aj.addEventListener("visibilitychange",this.D9);return this.aj.requestReferenceSpace("local")}.bind(this)).then(function(v){this.AO=v;this.Bj=this.w9();return this.Bj.makeXRCompatible()}.bind(this)).then(function(){k.jb()&&p.request(this.Bj.canvas);var v=XRWebGLLayer.getNativeFramebufferScaleFactor(this.aj);v=Math.max(v,1);v=k.Pwa()?1*v:k.tI()||k.hd()==k.bt?1*v:k.Rf()?1.4222222222*v:k.jb()?v*r.NH:void 0;var w= {antialias:!1};v&&(w.framebufferScaleFactor=v);this.dD=new XRWebGLLayer(this.aj,this.Bj,w);this.aj.updateRenderState({baseLayer:this.dD,depthNear:.1,depthFar:2*c.If});this.yO();this.WG="started";l.h_(this.requestFrame,this.aj.cancelAnimationFrame.bind(this.aj));l.aea(!1)}.bind(this))["catch"](function(){l.aea(!1);this.Sqa();this.trigger(new h(m.pa))}.bind(this)))};r.prototype.$f=function(){this.isPresenting()&&this.aj.end()};r.prototype.requestFrame=function(v){return this.aj.requestAnimationFrame(function(w, x){this.gba=x;this.cD();v(w)}.bind(this))};r.prototype.isPresenting=function(){return"stopped"!=this.WG};r.prototype.getType=function(){return g.ZCa};r.prototype.sD=function(){return this.Bj};r.prototype.$K=function(){return"xr"in navigator};r.prototype.bRa=function(){return"isSessionSupported"in navigator.xr?navigator.xr.isSessionSupported("immersive-vr"):"supportsSession"in navigator.xr?navigator.xr.supportsSession("immersive-vr"):Promise.reject()};r.prototype.KC=function(v){k.tI()?v():k.hd()== k.Wq?this.Yy?v():f.wP()?setTimeout(v,10):this.WV(function(){setTimeout(v,10)}):f.wP()?v():this.WV(function(){v()})};r.prototype.B9=function(){l.yda();this.Sqa();this.trigger(new h(m.pa))};r.prototype.C9=function(){this.trigger(new h(m.An))};r.prototype.D9=function(){n.pea(!this.aj||"visible"!=this.aj.visibilityState);b.GBa&&"visible"!=this.aj.visibilityState&&this.$f()};r.prototype.Sqa=function(){this.dD=this.AO=this.aj=this.Bj=null;this.WG="stopped";p.cancel()};r.prototype.yO=function(){this.xe.YO= this.dD.framebuffer;this.xe.Eo=this.dD.framebufferWidth;this.xe.hn=(k.hd()==k.Wq?2:1)*this.dD.framebufferHeight;this.xe.sY=1};r.prototype.cD=function(){var v=this.gba.getViewerPose(this.AO);if(v){var w=v&&v.transform.orientation||t;this.Cd.orientation.set(w.x,w.y,w.z,w.w);w=v&&v.transform.position||u;this.Cd.position.set(w.x,w.y,w.z);v=this.gba.getViewerPose(this.AO.getOffsetReferenceSpace(v.transform));for(var x=0;xv.indexOf(y)&&v.push(y)};w.WZ=function(y){y=v.indexOf(y);-1==y||v.splice(y,1)};w.g_=function(){};w.EZa=function(y){f.NH=y;r.NH=y};w.wVa=function(){return f.NH};w.getType=function(){return null};w.NY=function(){return null};w.log=function(){w.zg()?w.getType()?h.log("VR: "+w.getType()):h.log("VR: not ready"):h.log("VR: not available");h.log("gyroscope: "+d.zg)};var x="cardboard"==c.getQueryParameter("vr_mode")?[f]: g.Pwa()?[r,n]:g.browser()==g.Uk?[r,n,f]:g.bZ()&&1>g.ZAa()?[n,r]:g.tI()||g.hd()==g.bt?[r,n]:[n,r,f];w.initialize=function(y){var A=setTimeout(function(){A=null;y()},250);e(x,function(B){B?(b.d_a(),B.bind(m.pa,function(){w.trigger(m.pa)},w,!0),B.bind(m.An,function(){w.trigger(m.An)},w,!0),w.zg=function(){return!0},w.GY=function(){return B.GY()},w.Is=function(){return B.Is()},w.isPresenting=function(){return B.isPresenting()},w.Nk=function(){B.Nk()},w.$f=function(){B.$f()},w.sD=function(){return B.sD()}, w.GH=function(z){B.GH(z)},w.WZ=function(z){B.WZ(z)},w.g_=function(z){B.g_(z)},w.getType=function(){return B.getType()},w.NY=function(){return B.NY()},v.forEach(function(z){B.GH(z)}),-1<[g.ct,g.gE].indexOf(g.hd())?function(){function z(){D++;H=setTimeout(C,1E3*D)}function C(){H=null;5");this.na.css({position:"absolute",left:0,top:0,right:0,bottom:0,"z-index":0,"pointer-events":"none","background-color":"#ffffff"});this.na.hide()}var h=a("jquery.mod"),m=a("v");e.prototype.Ac=function(){return this.na};e.prototype.trigger=function(){m.browser()!=m.Xh&&this.na.fadeIn(100).fadeOut(100)};return e}); define("lX",["require","exports"],function(){return function(){function a(e,h){this.R=e;this.tag=h||"Entity";this.id=this.tag+"_"+a.YWa++;this.dn={};this.SP={};this.wea=0}a.prototype.getComponent=function(e){return this.dn[e.id]};a.prototype.J=function(e,h){void 0===h&&(h=!1);var m=this.dn[e.id];m?this.R.VTa(this,e):h&&(m=this.H(e));return m};a.prototype.H=function(e){if(e.id in this.dn)return this.dn[e.id];e.dZ&&this.wea++;var h=this.dn[e.id]=new e;this.R.wTa(this,e);return h};a.prototype.ma=function(e){var h; void 0===h&&(h=!1);e.id in this.dn&&(e.dZ&&this.wea--,h?this.dn[e.id].clear():this.SP[e.id]=this.dn[e.id],delete this.dn[e.id],this.R.bza(this,e,h))};a.prototype.YTa=function(){for(var e in this.SP)this.SP[e].clear(),delete this.SP[e]};a.prototype.VXa=function(){for(var e in this.dn){var h=this.dn[e].constructor;h.dZ||(this.SP[e]=this.dn[e],delete this.dn[e],this.R.bza(this,h,!1))}};a.YWa=0;return a}()});define("ca",["require"],function(){function a(){this.id=a.p7++;this.C=[]}a.p7=0;return a}); define("kI",["require"],function(){function a(e,h){this.id=a.p7++;this.name=h;this.C=e.C;this.de=e.C.slice();this.Ua=[];this.pg=[]}a.prototype.WTa=function(){!this.de.length||(this.de=[]);!this.Ua.length||(this.Ua=[]);!this.pg.length||(this.pg=[])};a.p7=0;return a}); define("bp",["require","ca","kI"],function(a){function e(){this.cWa={};this.K={};this.JD={};this.XH={};this.Kv={};this.ID={};this.NO={};this.HD={}}function h(d){return"string"==typeof d?d:d.id}function m(d,c){0>d.indexOf(c)&&d.push(c);return d}function k(d,c){c=d.indexOf(c);0<=c&&d.splice(c,1);return d}var b=a("ca"),g=a("kI");e.prototype.ra=function(d){this.NO[d.id]={};this.NO[d.not]={}};e.prototype.mUa=function(d,c){d=this.JJa(d);c=new g(d,c);this.JD[d.id].push(c);return c};e.prototype.JJa=function(d){var c= this.KJa(d);if(c=this.cWa[c])return c;c=new b;this.K[c.id]=c;d=d.map(h);this.HD[c.id]={};for(var f=0;fthis.qb)this.m.get("loop")?this.m.set("currentTime",k%this.qb):(this.Hb=!0,this.m.trigger(h.sb),this.m.set("state",m.T));else{for(var b=this.Zk||0;k>this.Pw[b].end;)b++;for(;kb;g--)d=this.cg[g],c=this.DA[g],d.set("currentTime", 0),c.stop();this.Zk=b}else c=this.DA[this.Zk],kd;this.cg[this.Zk].set("currentTime",b?2*d-k:k);this.cg[this.Zk].set("currentDirection",b?"backward":"forward");this.m.set("currentTime",this.wh.time);this.Aa()}};return e}); define("oz",["require","oH","kO"],function(a){function e(k,b,g,d,c){this.m=k;this.cd=b;this.cg=g;this.ak=d;this.Aa=c;this.H7=this.H7.bind(this);this.B7=this.B7.bind(this);this.zW()}var h=a("oH"),m=a("kO");e.prototype.dispose=function(){this.cX();this.Aa=this.ak=this.cg=this.cd=this.m=null};e.prototype.getAnimations=function(){return this.cg};e.prototype.aP=function(){return this.ak};e.prototype.frame=function(k){0c||(d.splice(c,1),b.remove(g))}};k.Kea=function(b){var g=b.userData.tea;if(g){var d=.99*-b.far;g.forEach(function(c){c.position.z=d})}};k.bua=function(b,g){var d=b.userData.rea||(b.userData.rea=[]);0<=d.indexOf(g)||(d.push(g),b.add(g),this.MAa(b))};k.Yya=function(b,g){var d= b.userData.rea;if(d){var c=d.indexOf(g);0>c||(d.splice(c,1),b.remove(g))}};k.MAa=function(b){var g=b.userData.rea;if(g){var d=.99*b.far;g.forEach(function(c){c.scale.x=c.scale.y=c.scale.z=d})}};k.iI=function(b){if((b=this.yb(b))&&b.parent){var g=this.hI(b);if(g){var d=this.Ns(g);if(d)return b.matrixWorld.decompose(this.objectPosition,this.ZWa,this.EP),this.objectPosition.applyMatrix4(d.matrixWorldInverse),this.EP.setFromMatrixScale(b.parent.matrixWorld),2*Math.abs(this.objectPosition.z)*Math.tan(d.fov* this.uE/2)/(this.kI(g)*Math.max(this.EP.x,this.EP.y,this.EP.z))}}};k.lz=function(b,g){if(b.userData.id===g)return b;var d=null;if(b.children)for(var c=0;c=w;A-=y)B=r(A,v[A],v[A+1],B);B&&c(B,B.next)&&(t(B),B=B.next);return B}function e(v,w){if(!v)return v;w||(w=v);do{var x=!1;if(v.mAa||!c(v,v.next)&&0!==d(v.prev,v,v.next))v=v.next;else{t(v);v=w=v.prev;if(v===v.next)break;x=!0}}while(x||v!==w);return w}function h(v,w,x,y,A,B,z){if(v){if(!z&&B){var C=v,H=C;do 0=== H.z&&(H.z=b(H.x,H.y,y,A,B)),H.Nq=H.prev,H=H.Xl=H.next;while(H!==C);H.Nq.Xl=null;H.Nq=null;C=H;var D,I,F,N,S=1;do{H=C;var Q=C=null;for(I=0;H;){I++;var R=H;for(D=F=0;DF?I>S?I:S:F>S?F:S,V=D>W?D>G?D:G:W>G?W:G;for(N=N.next;N!==Q;){if(N.x>=L&&N.x<=O&&N.y>=U&&N.y<=V&&g(I,D,F,W,S,G,N.x,N.y)&&0<=d(N.prev,N,N.next)){Q=!1;break a}N=N.next}Q=!0}}if(Q)w.push(H.Bg/x|0),w.push(v.Bg/x|0),w.push(R.Bg/x|0),t(v),C=v=R.next;else if(v=R,v===C){if(z)if(1===z){v=e(v);z=w;C=x;H=v;do R=H.prev,Q=H.next.next,!c(R,Q)&&f(R,H,H.next,Q)&&q(R,Q)&&q(Q,R)&&(z.push(R.Bg/C|0),z.push(H.Bg/C|0),z.push(Q.Bg/C|0),t(H),t(H.next),H=v=Q),H=H.next;while(H!==v);v=e(H); h(v,w,x,y,A,B,2)}else{if(2===z)a:{z=v;do{for(C=z.next.next;C!==z.prev;){if(H=z.Bg!==C.Bg){H=z;R=C;if(Q=H.next.Bg!==R.Bg&&H.prev.Bg!==R.Bg){b:{Q=H;do{if(Q.Bg!==H.Bg&&Q.next.Bg!==H.Bg&&Q.Bg!==R.Bg&&Q.next.Bg!==R.Bg&&f(Q,Q.next,H,R)){Q=!0;break b}Q=Q.next}while(Q!==H);Q=!1}Q=!Q}if(Q){if(Q=q(H,R)&&q(R,H)){Q=H;I=!1;F=(H.x+R.x)/2;S=(H.y+R.y)/2;do Q.y>S!==Q.next.y>S&&Q.next.y!==Q.y&&F<(Q.next.x-Q.x)*(S-Q.y)/(Q.next.y-Q.y)+Q.x&&(I=!I),Q=Q.next;while(Q!==H);Q=I}Q=Q&&(d(H.prev,H,R.prev)||d(H,R.prev,R))||c(H, R)&&0C?z>H?z:H:C>H?C:H,R=D>I?D>F?D:F:I>F?I:F,W=b(N,S,w,x,y);w=b(Q,R,w,x,y);x=v.Nq;for(v=v.Xl;x&&x.z>=W&&v&&v.z<=w;){if(x.x>=N&&x.x<=Q&&x.y>=S&&x.y<=R&& x!==A&&x!==B&&g(z,D,C,I,H,F,x.x,x.y)&&0<=d(x.prev,x,x.next))return!1;x=x.Nq;if(v.x>=N&&v.x<=Q&&v.y>=S&&v.y<=R&&v!==A&&v!==B&&g(z,D,C,I,H,F,v.x,v.y)&&0<=d(v.prev,v,v.next))return!1;v=v.Xl}for(;x&&x.z>=W;){if(x.x>=N&&x.x<=Q&&x.y>=S&&x.y<=R&&x!==A&&x!==B&&g(z,D,C,I,H,F,x.x,x.y)&&0<=d(x.prev,x,x.next))return!1;x=x.Nq}for(;v&&v.z<=w;){if(v.x>=N&&v.x<=Q&&v.y>=S&&v.y<=R&&v!==A&&v!==B&&g(z,D,C,I,H,F,v.x,v.y)&&0<=d(v.prev,v,v.next))return!1;v=v.Xl}return!0}function k(v,w){return v.x-w.x}function b(v,w,x,y, A){v=(v-x)*A|0;w=(w-y)*A|0;v=(v|v<<8)&16711935;v=(v|v<<4)&252645135;v=(v|v<<2)&858993459;w=(w|w<<8)&16711935;w=(w|w<<4)&252645135;w=(w|w<<2)&858993459;return(v|v<<1)&1431655765|((w|w<<1)&1431655765)<<1}function g(v,w,x,y,A,B,z,C){return(A-z)*(w-C)>=(v-z)*(B-C)&&(v-z)*(y-C)>=(x-z)*(w-C)&&(x-z)*(B-C)>=(A-z)*(y-C)}function d(v,w,x){return(w.y-v.y)*(x.x-w.x)-(w.x-v.x)*(x.y-w.y)}function c(v,w){return v.x===w.x&&v.y===w.y}function f(v,w,x,y){var A=p(d(v,w,x)),B=p(d(v,w,y)),z=p(d(x,y,v)),C=p(d(x,y,w)); return A!==B&&z!==C||0===A&&l(v,x,w)||0===B&&l(v,y,w)||0===z&&l(x,v,y)||0===C&&l(x,w,y)?!0:!1}function l(v,w,x){return w.x<=Math.max(v.x,x.x)&&w.x>=Math.min(v.x,x.x)&&w.y<=Math.max(v.y,x.y)&&w.y>=Math.min(v.y,x.y)}function p(v){return 0v?-1:0}function q(v,w){return 0>d(v.prev,v,v.next)?0<=d(v,w,v.next)&&0<=d(v,v.prev,w):0>d(v,w,v.prev)||0>d(v,v.next,w)}function n(v,w){var x=new u(v.Bg,v.x,v.y),y=new u(w.Bg,w.x,w.y),A=v.next,B=w.prev;v.next=w;w.prev=v;x.next=A;A.prev=x;y.next=x;x.prev=y;B.next= y;y.prev=B;return y}function r(v,w,x,y){v=new u(v,w,x);y?(v.next=y.next,v.prev=y,y.next.prev=v,y.next=v):(v.prev=v,v.next=v);return v}function t(v){v.next.prev=v.prev;v.prev.next=v.next;v.Nq&&(v.Nq.Xl=v.Xl);v.Xl&&(v.Xl.Nq=v.Nq)}function u(v,w,x){this.Bg=v;this.x=w;this.y=x;this.next=this.prev=null;this.z=0;this.Xl=this.Nq=null;this.mAa=!1}return function(v,w,x){x=x||2;var y=w&&w.length,A=y?w[0]*x:v.length,B=a(v,0,A,x,!0),z=[];if(!B||B.next===B.prev)return z;var C;if(y){var H=B;var D=x;B=[];var I; y=0;for(I=w.length;y=I.next.y&&I.next.y!==I.y&&(Q=I.x+(N-I.y)*(I.next.x-I.x)/(I.next.y-I.y),Q<=F&&Q>S&&(S=Q,D=I.x= I.x&&I.x>=W&&F!==I.x&&g(ND.x)&&(U=I.x===D.x)){U=D;var O=I;U=0>d(U.prev,U,O.prev)&&0>d(O.next,U,U.next)}U&&(D=I,L=Q)}I=I.next}while(I!==R)}else D=null}D&&(w=n(D,w),e(w,w.next),H=e(D,D.next))}B=H}if(v.length>80*x){var V=C=v[0];var Y=y=v[1];for(H=x;HC&&(C=w),D>y&&(y=D);C=Math.max(C-V,y-Y);C=0!==C?32767/C:0}h(B,z,x,V,Y,C,0);return z}}); define("nE",["require","exports"],function(){return function(){function a(){}a.rVa=function(e){return e.userData.FD||e.material};a.dz=function(e,h){if(e.material!=h&&e.userData.FD!=h){var m=e.userData.CP;this.zda(e);e.material=h;m&&this.Mba(e);e.needsUpdate=!0}};a.Mba=function(e){e.userData.CP||(e.userData.CP=!0,e.userData.FD=e.material,e.material=this.bUa(e.material))};a.zda=function(e){e.userData.CP&&(this.vUa(e.material),e.material=e.userData.FD,delete e.userData.FD,delete e.userData.CP)};a.U_a= function(e){if(e.userData.CP){var h=e.userData.FD;e=e.material;e.side=h.side;e.depthTest=h.depthTest;e.map&&h.map&&(e.map.encoding=h.map.encoding);e.emissiveMap&&h.emissiveMap&&(e.emissiveMap.encoding=h.emissiveMap.encoding)}};a.bUa=function(e){return Array.isArray(e)?e.map(function(h){return h.clone()}):e?e.clone():e};a.vUa=function(e){Array.isArray(e)?e.forEach(function(h){h.dispose()}):e&&e.dispose()};return a}()}); define("o","require lo oH fa ly fA cm nE".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("fa"),k=a("ly"),b=a("fA"),g=a("cm"),d=a("nE");a=e.extend(k,function(){k.apply(this,arguments);this.se=this.se.bind(this);this.Fe=this.Fe.bind(this);this.Uc=this.Uc.bind(this);this.x_=this.x_.bind(this)});a.prototype.yd=function(){this.mua.C.length&&this.mua.C.slice().forEach(this.se);this.lua.Ua.length&&this.T_a(this.lua.Ua.slice());this.areas.Ua.length&&this.areas.Ua.slice().forEach(this.Fe);this.nua.C.length&& this.nua.C.slice().forEach(this.Uc);this.oua.C.length&&this.oua.C.slice().forEach(this.Uc)};a.prototype.se=function(F){F.H(b.sw);this.Fe(F)};a.prototype.Fe=function(F){this.W_a(F);this.QAa(F)};a.prototype.T_a=function(F){var N=[];F.forEach(function(S){S.getComponent(b.Nz).$X.forEach(function(Q){-1===N.indexOf(Q)&&N.push(Q)})});N.forEach(this.x_)};a.prototype.W_a=function(F){this.Y_a(F);this.x_(F)};a.prototype.Y_a=function(F){var N=F.getComponent(b.cm),S=N&&N.C||[],Q=(N=F.getComponent(b.sw))&&N.C|| [];Q.forEach(function(R){if(-1===S.indexOf(R)){var W=R.getComponent(b.Nz).$X.filter(function(G){return G!==G});0==W.length?R.ma(b.Nz):R.J(b.Nz).$X=W}});S.forEach(function(R){-1===Q.indexOf(R)&&R.J(b.Nz,!0).$X.push(F)})};var c=new THREE.Matrix4,f=[];a.prototype.x_=function(F){var N=F.getComponent(b.cm);for(N=N&&N.C||[];f.lengthF.length)return[];var N=F[0];for(var S=Number.NEGATIVE_INFINITY,Q=1;Q=S)return[];r.set(N,W);S=Number.NEGATIVE_INFINITY;for(Q=0;Q=S)return[];l.setFromCoplanarPoints(N,W,G);for(Q=0;Q.5*Math.PI&&(S=Math.PI-S);if(S>y)return[]}q.copy(F[1]).sub(F[0]).normalize();n.copy(l.normal).cross(q).normalize();N=[];for(Q= 0;Qd.indexOf(g)&&d.push(g);g.getComponent(k.yn).bP=this.PUa(g)};a.prototype.r_=function(g){var d=this.aY.get(g.R),c=d.indexOf(g);0<=c&&d.splice(c,1);this.Lxa["delete"](g);g.ma(k.dt)}; a.prototype.kea=function(g){g.H(k.vw).position=new THREE.Vector3;this.Kxa.set(g,b.yb(g));var d=this.GO.get(g.R);d||this.GO.set(g.R,d=[]);0>d.indexOf(g)&&d.push(g)};a.prototype.q_=function(g){var d=this.GO.get(g.R),c=d.indexOf(g);0<=c&&d.splice(c,1);this.Kxa["delete"](g);g.ma(k.vw)};return a}); define("kP",["require","exports"],function(){return function(){function a(){}a.Sl=function(e,h,m){return this.hD(e,h,m)};a.Tq=function(e,h,m){return this.hD(e,m,h)};a.hD=function(e,h,m){return 2*Math.atan(m*Math.tan(e*this.uE*.5)/h)*this.MCa};a.MCa=180/Math.PI;a.uE=Math.PI/180;return a}()}); define("hS","require lo ly fA kP cm".split(" "),function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("kP"),b=a("cm");a=e.extend(h,function(){h.apply(this,arguments);this.mea=this.mea.bind(this);this.nea=this.nea.bind(this);this.y_=this.y_.bind(this);this.z_=this.z_.bind(this);this.zea=this.zea.bind(this);this.Aea=this.Aea.bind(this)});a.prototype.yd=function(){this.wya.C.length&&this.wya.C.slice().forEach(this.mea);this.zya.C.length&&this.zya.C.slice().forEach(this.nea);this.GD.Ua.length&&this.GD.Ua.slice().forEach(this.y_); this.Ss.Ua.length&&this.Ss.Ua.slice().forEach(this.z_);this.xya.C.length&&this.xya.C.slice().forEach(this.zea);this.Aya.C.length&&this.Aya.C.slice().forEach(this.Aea)};a.prototype.mea=function(l){var p=l.J(m.OrthographicCamera),q=l.H(m.Iw);l.H(m.Object3D).Bc=q.camera=p.camera=new THREE.OrthographicCamera;this.y_(l)};a.prototype.nea=function(l){var p=l.J(m.PerspectiveCamera),q=l.H(m.dr);q.boundingBox=new THREE.Box3;q.NZ=!0;l.H(m.Object3D).Bc=q.camera=p.camera=new THREE.PerspectiveCamera;this.z_(l)}; a.prototype.y_=function(l){var p=l.getComponent(m.OrthographicCamera);l=l.getComponent(m.Iw);l.width=p.width;l.height=p.height;l=l.camera;l.left=-.5*p.width;l.right=.5*p.width;l.top=.5*p.height;l.bottom=-.5*p.height;l.updateProjectionMatrix()};a.prototype.z_=function(l){var p=l.getComponent(m.PerspectiveCamera);l=l.getComponent(m.dr);l.width=p.width;l.height=p.height;l.fov=p.fov;l.near=p.near;l.far=p.far;l=l.camera;l.aspect=p.width/p.height;l.fov=p.width>p.height?k.Sl(p.fov,p.width,p.height):p.fov; l.near=p.near;l.far=p.far;b.Kea(l);l.updateProjectionMatrix()};a.prototype.zea=function(l){var p=l.getComponent(m.Iw);p.camera.parent&&p.camera.parent.remove(p.camera);p.camera=null;l.ma(m.Iw);l.ma(m.Object3D)};a.prototype.Aea=function(l){var p=l.getComponent(m.dr);p.camera.parent&&p.camera.parent.remove(p.camera);p.camera=null;l.ma(m.dr);l.ma(m.Object3D)};a.K={};a.K.wya=[m.OrthographicCamera,m.Iw.not];a.K.xya=[m.OrthographicCamera.not,m.Iw];a.K.zya=[m.PerspectiveCamera,m.dr.not];a.K.Aya=[m.PerspectiveCamera.not, m.dr];a.K.GD=[m.OrthographicCamera,m.Iw];a.K.Ss=[m.PerspectiveCamera,m.dr];a.dE=e.extend(h,function(){h.apply(this,arguments);this.ida=this.ida.bind(this)});a.dE.prototype.yd=function(){this.Ss.C.length&&this.Ss.C.slice().forEach(this.ida)};a.dE.prototype.ida=function(l){var p=l.getComponent(m.PerspectiveCamera);if(p.pua){var q=l.getComponent(m.dr),n=q.scene||b.Mj(l),r=q.camera;if(n&&r){var t=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY,v=!1;q.NZ&&(q.boundingBox=this.b3(n,q.boundingBox),q.NZ= !1,v=!0);n=q.boundingBox;n=[[n.min.x,n.max.x],[n.min.y,n.max.y],[n.min.z,n.max.z]];for(var w=0;2>w;w++)for(var x=0;2>x;x++)for(var y=0;2>y;y++)f.set(n[0][w],n[1][x],n[2][y]).applyMatrix4(r.matrixWorldInverse),-f.z>u&&(u=-f.z),-f.zd||Math.abs(p.far-u)>d)r.far=q.far=p.far=u,r.near=q.near=p.near=t,b.Kea(r),b.MAa(r),r.updateProjectionMatrix();v||q.uba||(q.uba=setTimeout(function(){q.uba= null;q.NZ=!0;l.R&&l.R.$a()},g))}}};a.dE.prototype.b3=function(l,p){p||(p=new THREE.Box3);p.makeEmpty();l.traverse(function(q){if(q.geometry&&!q.isSprite&&(!q.material||q.material.visible)){q.updateWorldMatrix(!1,!1);var n=q.geometry;null===n.boundingBox&&n.computeBoundingBox();c.copy(n.boundingBox);c.applyMatrix4(q.matrixWorld);p.union(c)}});return p};var g=500,d=1E-4,c=new THREE.Box3,f=new THREE.Vector3;a.dE.K={};a.dE.K.Ss=[m.PerspectiveCamera,m.dr];return a}); define("bm",["require","exports"],function(){var a={Yj:38,Di:40,hb:39,Pa:37,lga:32,wn:65,gR:90,Ct:87,yt:83,et:68,Q:81,E:69,efa:27,sa:{}};a.sa.Yj="ArrowUp";a.sa.Di="ArrowDown";a.sa.hb="ArrowRight";a.sa.Pa="ArrowLeft";a.sa.wn="KeyA";a.sa.gR="KeyZ";a.sa.Ct="KeyW";a.sa.yt="KeyS";a.sa.et="KeyD";a.sa.Q="KeyQ";a.sa.E="KeyE";a.sa.efa="Escape";a.sa.lga="Space";return a}); define("lb",["require"],function(){return{U0a:function(){},V0a:function(){},ET:function(){return this.$e&&this.$e.Xwa()||this.m&&!this.m.get("keyboardEnabled")?!0:!1},Pn:function(){return this.$e&&this.$e.Xwa()||this.m&&(!this.m.get("mouseEnabled")||this.m.get("mouseDisabled"))?!0:!1},Tla:function(){return this.m&&this.m.get("doubleClickDisabled")?!0:!1},Mna:function(){this.MF()||this.nu||this.Hta()},Lna:function(){this.MF()||this.nu||this.Gta()},lG:function(){this.Vla()||this.Hta()},kG:function(){this.Vla()|| this.Gta()},Hta:function(){this.$e&&this.$e.Jz();this.m&&this.m.set("userInteracting",!0)},Gta:function(){this.$e&&this.$e.Pea();this.m&&this.m.set("userInteracting",!1)}}}); define("fq",["require","exports","cm","three.mod"],function(a,e,h,m){return function(){function k(b){this.matrixWorld=new m.Matrix4;this.Yca=!1;this.timeout=null;this.Y=b}k.prototype.cea=function(b){if(this.TI!=b||"moving"!=this.propertyName)this.TI&&this.TI.set(this.propertyName,!1),this.TI=b,this.propertyName="moving",this.TI&&this.TI.set(this.propertyName,this.Yca)};k.prototype.Mea=function(){var b=h.yb(this.Y),g=!!b&&!b.matrixWorld.equals(this.matrixWorld);g&&this.matrixWorld.copy(b.matrixWorld); this.fw(g);this.timeout&&(clearTimeout(this.timeout),this.timeout=null);g&&(this.timeout=setTimeout(function(){this.timeout=null;this.fw(!1)}.bind(this),k.fCa))};k.prototype.eb=function(){this.fw(!1);this.timeout&&clearTimeout(this.timeout)};k.prototype.fw=function(b){this.Yca!=b&&(this.Yca=b,this.TI.set(this.propertyName,b))};k.fCa=100;return k}()}); define("nW",["require"],function(){function a(h){this.m=h;this.Ux=!0}function e(h,m,k){if(isNaN(h))throw"invalid value";void 0!==m&&hk&&(h=k);return h}a.prototype.jZa=function(){this.Ux=!1};a.prototype.Pda=function(h){this.m.set("fov",this.Ux?e(h,this.m.get("minFov",.1),this.m.get("maxFov",180)):h)};a.prototype.tn=function(h){var m=this.m,k=m.set;if(this.Ux){var b=this.m.get("minYaw"),g=this.m.get("maxYaw");if(void 0!==b)if(180=h;)h+=360;hh)h=-180;else{for(;180g&&(h=g)}}for(;-180>h;)h+=360;for(;180<=h;)h-=360;k.call(m,"yaw",h)};a.prototype.hw=function(h){this.m.set("pitch",this.Ux?e(h,this.m.get("minPitch",-90),this.m.get("maxPitch",90)):h)};a.prototype.setX=function(h){this.m.set("x",this.Ux?e(h,this.m.get("minX"),this.m.get("maxX")):h)};a.prototype.setY=function(h){this.m.set("y",this.Ux?e(h,this.m.get("minY"),this.m.get("maxY")):h)};a.prototype.setZ=function(h){this.m.set("z",this.Ux?e(h,this.m.get("minZ"), this.m.get("maxZ")):h)};a.prototype.OD=function(h){this.m.set("distance",this.Ux?e(h,this.m.get("minDistance"),this.m.get("maxDistance")):h)};a.prototype.zi=function(h){this.m.set("easing",h)};return a}); define("dM","require oH kO nx fA nW oj bF".split(" "),function(a){function e(f,l,p){this.o=f;this.m=l;this.Oa=p;this.za=new g(this.m);this.za.jZa();this.yC=0;this.sk=this.Jm=void 0;this.Sm=!1;this.sW(0);this.C4=this.MS=this.B4=this.LS=this.A=void 0;this.zc(m.T);this.Oa.bind(h.G("state"),this.Bf,this,!0);this.Oa.bind(h.G("movementIndex"),this.eC,this,!0)}var h=a("oH"),m=a("kO"),k=a("nx"),b=a("fA"),g=a("nW"),d=a("oj"),c=a("bF");e.prototype.Jz=function(){this.Oa.get("mandatory")||(this.dS(),this.Oa.get("restartMovementOnUserInteraction")? this.A==m.X&&(this.KN(),this.zc(m.Eb,!0)):this.A==m.X&&this.zc(m.T))};e.prototype.Pea=function(){this.A==m.Eb&&this.Sm&&this.Oa.get("restartMovementOnUserInteraction")&&this.j$()};e.prototype.frame=function(f){this.A==m.X&&(this.V.zb(f),this.hSa(),this.za.setX(this.V.cb("x")),this.za.setY(this.V.cb("y")),this.za.setZ(this.V.cb("z")),this.za.tn(this.V.cb("yaw")),this.za.hw(this.V.cb("pitch")),this.za.OD(this.V.cb("distance")),this.za.Pda(this.V.cb("fov")),this.za.zi(0),f=this.Oa.get("movements")[this.Jm], f.set("position",this.V.Qk()),f.trigger(h.gA),this.V.Re()&&(f.trigger(h.sb),this.sW((this.Jm+1)%this.Oa.get("movements").length,!0),0==this.Jm&&(this.yC++,this.Oa.trigger(h.gr),this.yC==this.Oa.get("repeat")&&(this.hqa(),this.zc(m.T),this.Oa.trigger(h.sb)))))};e.prototype.hSa=function(){var f=void 0!==this.LS&&void 0!==this.B4,l=void 0!==this.MS&&void 0!==this.C4;if(f||l){var p=this.o.getComponent(b.kb).Y;if(p){var q=this.V.getTime(),n=this.V.bj();p=p.J(b.MQ,!0);f=f&&qf?(p.color=this.C4,p.opacity=l):(p.color=this.B4,p.opacity=f):(p.color="#000000",p.opacity=0)}}};e.prototype.hqa=function(){var f=this.o.getComponent(b.kb);(f=f&&f.Y)&&f.ma(b.MQ)};e.prototype.dispose=function(){this.dS();this.Oa.unbind(h.G("state"),this.Bf,this,!0);this.Oa.unbind(h.G("movementIndex"),this.eC,this,!0);this.zc(m.T)};e.prototype.Bf=function(){var f=this.Oa.get("state");this.A!=f&&(f==m.Eb&&this.A==m.T?this.Oa.set("state",m.T):this.zc(f))};e.prototype.zc= function(f,l){this.A!=f&&(this.A=f,this.A==m.X?(this.dS(),this.Sm=!1,this.mx(),this.bS()):this.A==m.Eb?(this.Sm=!!l,this.KN()):this.A==m.T&&(this.Sm=!1,this.dS(),this.yC=0,f=this.V.getTime(),l=this.V.bj(),0=n?this.Ak(y,n-360,n):this.Ak(y,n,n+360);break; default:y=this.Ak(y,n-180,n+180)}}else k.Na("DistanceModel3DCameraMovement",f)&&(v=l+f.get("xDelta",0),w=p+f.get("yDelta",0),x=q+f.get("zDelta",0),y=n+f.get("yawDelta",0),A=r+f.get("pitchDelta",0),B=u+f.get("fovDelta",0),z=t+f.get("distanceDelta",0));this.V=new d(f.get("easing"),[new c("x",l,v,f.get("xSpeed")),new c("y",p,w,f.get("ySpeed")),new c("z",q,x,f.get("zSpeed")),new c("yaw",n,y,f.get("yawSpeed")),new c("pitch",r,A,f.get("pitchSpeed")),new c("fov",u,B,f.get("fovSpeed")),new c("distance",t, z,f.get("distanceSpeed"))],f.get("duration"));this.LS=f.get("fadeFromDuration");this.B4=f.get("fadeFromColor");this.MS=f.get("fadeToDuration");this.C4=f.get("fadeToColor")};e.prototype.bS=function(){this.sk=void 0};e.prototype.KN=function(){if(this.V){this.sk=void 0;var f=this.V&&this.V.Yba("yaw");f&&(f.to>f.from?this.sk="right":f.top;)f-=p-l;return f};return e}); define("kg","require ky oH kO dM cm".split(" "),function(a){function e(d,c){this.o=d;this.m=c;this.py=this.py.bind(this);this.Bf=this.Bf.bind(this);this.Fh=this.qj=null;this.cs=[];this.rg=null;this.Ph=!1;this.Wt=new Map;h.fa(this.m,["initialSequence","idleSequence","sequences.movements"],this.py,!0);h.fa(this.m,["state"],this.Bf,!0);this.gq=!1}var h=a("ky"),m=a("oH"),k=a("kO"),b=a("dM"),g=a("cm");e.prototype.Xwa=function(){return!!this.rg&&this.rg.get("mandatory")};e.prototype.Jz=function(){this.Ph= !0;this.Fk();this.rg&&this.Wt.get(this.rg).Jz()};e.prototype.Pea=function(){this.Ph=!1;this.rg&&this.Wt.get(this.rg).Pea();!this.Fh||this.rg&&this.rg!=this.Fh||this.mq()};e.prototype.mq=function(){this.Ph||this.yB||!this.Fh||this.rg||!this.m.get("timeToIdle")||(this.yB=setTimeout(function(){this.yB=null;this.TL()}.bind(this),this.m.get("timeToIdle")))};e.prototype.Fk=function(){this.yB&&(clearTimeout(this.yB),this.yB=null)};e.prototype.TL=function(){this.Fh&&this.Fh.set("state",k.X)};e.prototype.frame= function(d){if(!this.gq){var c=g.Mj(this.o),f=0;c&&c.traverse(function(l){(l.isMesh||l.isSprite)&&f++});if(0c.indexOf(l)&&this.iF(l)}.bind(this));var f=this.cs;this.cs=c;this.cs.forEach(function(l){0>f.indexOf(l)&&this.u3(l)}.bind(this));this.rg||!this.Fh||this.yB||this.mq()};e.prototype.s9=function(d){var c=d&&d.get("movements");return c&&0!=c.length?d:null};e.prototype.Voa=function(d){d=d.source;var c=d.get("state");c==k.X?(this.Fk(),c=this.rg,this.rg=d,c&&c!=this.rg&&c.set("state",k.T),this.m.set("state",k.X),this.o.R.$a()):c==k.Eb?d==this.rg&& this.m.set("state",k.Eb):c==k.T&&d==this.rg&&(this.m.set("state",k.T),this.rg=null,d!=this.Fh&&this.mq())};e.prototype.u3=function(d){if(this.Wt.has(d))this.Wt.get(d);else{d.set("state",k.T);d.bind(m.G("state"),this.Voa,this,!0);var c=new b(this.o,this.m,d);this.Wt.set(d,c)}};e.prototype.iF=function(d){this.Wt.has(d)&&(d.set("state",k.T),d.unbind(m.G("state"),this.Voa,this,!0),this.Wt.get(d).dispose(),this.Wt["delete"](d))};return e}); define("oS",["require"],function(){return{D6:function(a){this.MT=this.MT.bind(this);this.NT=this.NT.bind(this);this.aK=this.Zi=!1;this.Of={};for(var e=0;eb.indexOf(d)&&b.push(d)})});return b}; k.prototype.qq=function(){for(var b,g=this.Xc.length-1;0<=g&&void 0===b;g--)b=this.Xc[g].top();return b};k.get=function(b){var g=this.Qa.get(b);g||this.Qa.set(b,g=new k(b));return g};k.clear=function(b){this.Qa["delete"](b)};k.Qa=new Map;return k}();return a}); define("jq",["require","exports","oH","gi"],function(a,e,h,m){return function(k){function b(g){var d=k.call(this)||this;if(g instanceof HTMLElement)d.wZ=g;else if("function"===typeof g.Ac)d.wZ=g.Ac().get(0);else if(g.length&&g.get)d.wZ=g.get(0);else throw Error("invalid element");d.FZ=d.FZ.bind(d);document.addEventListener("pointerlockchange",d.FZ.bind(d),!1);return d}Z(b,k);b.prototype.dispose=function(){document.removeEventListener("pointerlockchange",this.FZ)};b.prototype.lock=function(){if(!this.Fo())return this.wZ.requestPointerLock()}; b.prototype.unlock=function(){this.Fo()&&document.exitPointerLock()};b.prototype.Fo=function(){return document.pointerLockElement===this.wZ};b.prototype.FZ=function(){this.trigger(h.pa)};b.Fo=function(){return null!==document.pointerLockElement};return b}(m)}); define("hU",["require","oH","jF","jq"],function(a){function e(g,d){var c=d.x-g.x;g=d.y-g.y;return Math.sqrt(c*c+g*g)}var h=a("oH"),m=a("jF"),k=a("jq"),b=180/Math.PI;return{h7:function(){this.rU=this.GL=this.nu=this.Kr=!1;this.IV=this.pe=null;this.xT=new m;this.HL=null;this.qMa=this.FLa.bind(this)},i7:function(){this.rW(null);this.xT.dispose()},Hma:function(g){this.so(g);if(!this.Pn||!this.Pn()){var d=this.KF();this.Kr||(this.Kr=!0,d||this.lG&&this.lG());this.GL=!g.originalEvent||!g.originalEvent.buttons|| 0===(g.originalEvent.buttons&2);this.IV=g;this.mk&&this.mk(g.x,g.y);this.OU&&this.OU(g.x,g.y)}},KF:function(){return this.Kr||this.nu||this.rU},MF:function(){return this.Kr},$0a:function(){return this.nu},a1a:function(){return this.GL},b1a:function(){return this.rU},Jma:function(g){this.so(g);this.kf&&this.kf(g.x,g.y);if(this.Kr||this.YF.Fo()){var d=void 0!==g.movementX?g.movementX:g.x-this.IV.x,c=void 0!==g.movementY?g.movementY:g.y-this.IV.y;this.YF.Fo()&&(d*=-1,c*=-1);this.IV=g;this.NU&&this.NU(d, c,g.x,g.y)}},oU:function(g){this.Kr&&(g&&this.so(g),this.GL=this.Kr=!1,this.Xn&&this.Xn(this.Yc,this.Zc),this.dC&&this.dC(),this.KF()||this.kG&&this.kG())},Dma:function(g){this.Pn&&this.Pn()||(this.so(g),this.Nr&&this.Nr(g.x,g.y))},Ema:function(g){this.Pn&&this.Pn()||this.Tla&&this.Tla()||(this.so(g),this.jG&&this.jG(g.x,g.y))},Kma:function(g){this.so(g);if(!this.Pn||!this.Pn()){g=g.iY/10;var d=this.KF();this.HL||(this.rU=!0,this.rMa&&this.rMa(),d||this.lG&&this.lG());this.PU&&this.PU(g);this.HL&& clearTimeout(this.HL);this.HL=setTimeout(this.qMa,100)}},FLa:function(){this.HL=null;this.pMa&&this.pMa();this.rU=!1;this.KF()||this.kG&&this.kG()},Gma:function(g){if(!(this.Pn&&this.Pn()||2>g.touches.length)){var d=this.KF();this.nu||(this.nu=!0,this.GLa(g.touches),d||this.lG&&this.lG());this.Dna&&this.Dna();this.oU()}},Fma:function(g){this.Pn&&this.Pn()||2>g.touches.length||!this.nu||(this.Lma(g.touches),this.D7&&this.D7(this.mRa,this.nRa,this.J$,this.oRa),this.Cna&&this.Cna(this.f6,this.g6,this.XN, this.YN,1,this.J$,this.XK,this.I$,this.e6,this.WN))},g7:function(){this.nu&&(this.nu=!1,this.E7&&this.E7());this.KF()||this.kG&&this.kG()},GLa:function(g){this.e6=this.g6=this.f6=this.XK=this.J$=this.YN=this.XN=this.I$=this.WN=void 0;this.VN=g;this.Lma(g)},Lma:function(g){e(g[0],this.VN[0])+e(g[1],this.VN[1])>e(g[0],this.VN[1])+e(g[1],this.VN[0])&&(g=[g[1],g[0]]);var d=g[0];var c=g[1];d=Math.atan2(-(c.y-d.y),c.x-d.x)*b;c=e(g[0],g[1]);var f=(g[0].x+g[1].x)/2,l=(g[0].y+g[1].y)/2;this.J$=void 0!==this.XK? c/this.XK:1;this.oRa=void 0!==this.WN?d-this.WN:0;this.WN=d;this.I$=c;this.mRa=void 0!==this.XN?f-this.XN:0;this.nRa=void 0!==this.YN?l-this.YN:0;this.XN=f;this.YN=l;void 0!==this.f6||(this.f6=this.XN);void 0!==this.g6||(this.g6=this.YN);void 0!==this.e6||(this.e6=this.WN);void 0!==this.XK||(this.XK=this.I$);this.VN=g},Ima:function(){},OHa:function(){this.oU();this.g7()},IK:function(){return this.pe?this.pe.Xa():100},tB:function(){return this.pe?this.pe.xb():100},pu:function(){return this.pe?Math.max(this.pe.Xa(), this.pe.xb()):100},rW:function(g){this.pe!=g&&(this.pe&&(this.pe.unbind(h.ub,this.Hma,this,!0),this.pe.unbind(h.jc,this.Jma,this,!0),this.pe.unbind(h.Zb,this.oU,this,!0),this.pe.unbind(h.qa,this.Dma,this,!0),this.pe.unbind(h.hm,this.Ema,this,!0),this.pe.unbind(h.ar,this.Kma,this,!0),this.pe.unbind(h.K0,this.Fma,this,!0),this.pe.unbind(h.Bw,this.Gma,this,!0),this.pe.unbind(h.kE,this.g7,this,!0),this.YF.unbind(h.pa,this.Ima,this,!0),this.YF.dispose(),this.YF=null),this.pe=g,this.xT.Oq(this.pe),this.pe&& (this.pe.bind(h.ub,this.Hma,this,!0),this.pe.bind(h.jc,this.Jma,this,!0),this.pe.bind(h.Zb,this.oU,this,!0),this.pe.bind(h.qa,this.Dma,this,!0),this.pe.bind(h.hm,this.Ema,this,!0),this.pe.bind(h.ar,this.Kma,this,!0),this.pe.bind(h.K0,this.Fma,this,!0),this.pe.bind(h.Bw,this.Gma,this,!0),this.pe.bind(h.kE,this.g7,this,!0),this.YF=new k(this.pe),this.YF.bind(h.pa,this.Ima,this,!0)))},pU:function(g){g.x=-1+2*g.x/this.IK();g.y=1-2*g.y/this.tB();return g},so:function(g){this.Yc=g.x;this.Zc=g.y;this.ZF= g.pageX;this.$F=g.pageY},sC:function(g){this.xT.push(g)},FV:function(g){this.xT.pop(g)}}}); define("kn",["require","oH"],function(a){var e=a("oH");return{yOa:function(){this.kW=!1;this.lo=null;this.LB=this.PF=0;this.CC=!1;this.Jqa(!0)},zOa:function(){this.Jqa(!1);this.vra(null)},Jqa:function(h){this.kW!=h&&((this.kW=h)||this.jW())},vra:function(h){this.lo!=h&&(this.jW(),this.lo&&(this.lo.unbind(e.Bn,this.Kqa,this,!0),this.lo.unbind(e.Kf,this.jW,this,!0),this.lo.unbind(e.pa,this.Iqa,this,!0),this.LB=this.PF=0),this.lo=h)&&(this.lo.bind(e.Bn,this.Kqa,this,!0),this.lo.bind(e.Kf,this.jW,this, !0),this.lo.bind(e.pa,this.Iqa,this,!0))},Kqa:function(){!this.CC&&this.kW&&(this.CC=!0,this.Qoa&&this.Qoa())},Iqa:function(){this.CC&&(this.PF=this.lo.getX(),this.LB=this.lo.getY(),this.Ooa&&this.Ooa())},jW:function(){this.CC&&(this.CC=!1,this.LB=this.PF=0,this.Poa&&this.Poa())},c1a:function(){return this.CC}}}); define("dL","require lo oH bm cm fA lb fq nW kg oS hU kn bc oj bF".split(" "),function(a){function e(O){this.pK=!1;this.f4=0;this.Gja=!1;this.Hja=O}function h(O){this.o=O;this.Kp=new f(O);this.D6(y);this.h7();this.yOa();this.fH=.025;this.ik=.25;this.lU=this.mU=this.nU=this.XS=0;this.za=this.$e=null;this.OR=this.iX=!1;this.UT=1;this.AC=null;this.sC(t.jA);this.QF={};[b.sa.Yj,b.sa.Di,b.sa.Pa,b.sa.hb].forEach(function(V){this.QF[V]=new e(300)}.bind(this));[b.sa.wn,b.sa.yt,b.sa.et,b.sa.Ct,b.sa.Q,b.sa.E].forEach(function(V){this.QF[V]= new e(300)}.bind(this));this.update()}var m=a("lo"),k=a("oH"),b=a("bm"),g=a("cm"),d=a("fA"),c=a("lb"),f=a("fq"),l=a("nW"),p=a("kg"),q=a("oS"),n=a("hU"),r=a("kn"),t=a("bc"),u=a("oj"),v=a("bF");m.ZX(h,[c,q,n,r,Screen]);h.prototype.update=function(){var O=this.o.getComponent(d.hA);this.Il(O&&O.Yb);this.Kp.cea(O&&O.Yb);var V=(!O.TH||-1==L.indexOf(this.o.R))&&O.enabled;this.rW(O&&(V?O.ng:null));this.lL(!!O&&V&&O.uz);this.vra(!!O&&V&&O.lza);V||this.dC();V&&O.uz||(this.Gm=this.Fm=this.gk=this.sj=this.hk= 0)};h.prototype.frame=function(O,V){var Y=!1;!Y&&this.$e&&(Y=this.$e.frame(O,V));!Y&&this.Ch&&(Y=this.YDa(O));Y||this.kSa(O);this.USa();this.WRa();this.Kp.Mea();this.CC&&this.o.R.$a();this.AC=null};var w=1E3/3600*8/1.7;h.prototype.kSa=function(O){O/=1E3;var V=this.Zi?.2:1,Y=this.UT*w;Y*=this.m.get("translationSpeed")*V;var ca=this.m.get("rotationSpeed")*V;V=this.lU;var E=this.mU,K=this.nU,P=this.XS;this.lU=this.mU=this.nU=this.XS=0;var T=(V*V+E*E)/x;T=1.05*V||(this.Ch=new u("cubic_in_out",[new v("x",N.x,S.x),new v("y",N.y,S.y),new v("z",N.z,S.z)],1500),this.o.R.$a())}}};h.prototype.YDa=function(O){if(!this.Ch)return!1;this.Ch.zb(O);this.za.setX(this.Ch.cb("x"));this.za.setY(this.Ch.cb("y"));this.za.setZ(this.Ch.cb("z"));this.za.zi(0);this.Ch.Re()&&(this.Ch=null);this.o.R.$a();return!0};var x=2500;h.prototype.NU=function(O,V){this.ci&&(this.lU+=O,this.mU+=V,this.o.R.$a())};h.prototype.dC= function(){this.ci=!1;this.FV(t.Zh);this.o.R.$a()};h.prototype.PU=function(O){this.nU+=O;this.o.R.$a()};h.prototype.D7=function(O,V){this.XS+=V;this.o.R.$a()};h.prototype.Qoa=function(){this.OHa();this.sC(t.Zh)};h.prototype.Ooa=function(){this.o.R.$a()};h.prototype.Poa=function(){this.FV(t.Zh)};h.prototype.Il=function(O){this.m!=O&&(this.m&&(this.$e&&(this.$e.dispose(),this.$e=null),this.za=null,A.forEach(function(V){this.m.unbind(k.G(V),this.U7,this,!0)}.bind(this)),B.forEach(function(V){this.m.unbind(k.G(V), this.v7,this,!0)}.bind(this)),this.m.set("userInteracting",!1)),this.m=O)&&(this.za=new l(this.m),this.YK(),A.forEach(function(V){this.m.bind(k.G(V),this.U7,this,!0)}.bind(this)),this.U7(),B.forEach(function(V){this.m.bind(k.G(V),this.v7,this,!0)}.bind(this)),this.v7(),this.$e=new p(this.o,this.m),this.m.set("userInteracting",!1))};h.prototype.YK=function(){this.m&&(this.m.set("fov",this.m.get("initialFov")),this.m.set("x",this.m.get("initialX")),this.m.set("y",this.m.get("initialY")),this.m.set("z", this.m.get("initialZ")),this.m.set("yaw",this.m.get("initialYaw")),this.m.set("pitch",this.m.get("initialPitch")))};h.prototype.U7=function(){this.iX||(this.iX=!0,this.o.R.$a())};h.prototype.USa=function(){if(this.iX&&this.o&&this.m){this.iX=!1;var O=this.o.J(d.ya,!0);O.translationX=this.m.get("x");O.translationY=this.m.get("y");O.cf=this.m.get("z");O.re=-this.m.get("yaw");O.Se=this.m.get("pitch");O.Te=0;O.bg="YXZ";O.positionX=0;O.positionY=0;O.positionZ=0;O.easing=this.m.get("easing")}};h.prototype.v7= function(){this.OR||(this.OR=!0,this.o.R.$a())};h.prototype.WRa=function(){this.OR&&this.o&&this.m&&(this.OR=!1,this.o.J(d.PerspectiveCamera,!0).fov=this.m.get("fov"))};h.prototype.oK=function(O){if(this.rHa===O.x&&this.sHa===O.y&&this.tHa===O.z)return this.qHa;I.far=Infinity;I.ray.origin.copy(O);I.ray.direction.copy(D);var V=I.intersectObjects(this.w5(),!1);if(0===V.length)return Infinity;V=V[0].distance;this.rHa=O.x;this.sHa=O.y;this.tHa=O.z;return this.qHa=V};h.prototype.Pla=function(O,V){I.far= O.distanceTo(V);I.ray.origin.copy(O);I.ray.direction.copy(V).sub(O).normalize();return 0L.indexOf(V.R)&&L.push(V.R)})};var U=new Map;h.rZa=function(O){U.clear();O.forEach(function(V){U.has(V.R)||U.set(V.R,[]);U.get(V.R).push(V)})};e.prototype.hXa=function(){this.pK||(this.pK=!0,this.Gja=Date.now()-this.f4J&&(J+=360);return J}function m(){return(new Date).getTime()}var k=a("lo"),b=a("oH"),g=a("bm");a("kP");var d=a("cm"),c=a("fA"),f=a("lb"),l=a("fq"),p=a("nW"),q=a("kg"),n=a("oS"),r=a("hU"),t=a("bc"),u=a("oj"),v=a("bF");k.ZX(e,[f,n,r]);e.prototype.update=function(){var J=this.o.getComponent(c.iA);this.Il(J&&J.Yb);this.Kp.cea(J&&J.Yb);var M=(!J.TH||-1==T.indexOf(this.o.R))&&J.enabled;this.rW(J&&(M?J.ng:null));this.lL(!!J&&M&&J.uz);M||this.dC();M&&J.uz||(this.Gm=this.Fm=this.gk=this.sj=this.hk= 0)};e.prototype.frame=function(J,M){this.$e&&this.$e.frame(J,M)&&this.jq();this.Ch&&(this.Ch.zb(J),this.za.setX(this.Ch.cb("x")),this.za.setY(this.Ch.cb("y")),this.za.setZ(this.Ch.cb("z")),this.za.OD(this.Ch.cb("distance")),this.za.zi(0),this.Ch.Re()&&(this.Ch=null));this.sg&&(this.sg=Math.max(0,this.sg-J/this.c6),this.za.setX(this.m.get("x")+this.EB*this.sg),this.za.setY(this.m.get("y")+this.FB*this.sg),this.za.setZ(this.m.get("z")+this.GB*this.sg),this.za.tn(this.m.get("yaw")+this.CB*this.sg),this.za.hw(this.m.get("pitch")+ this.BB*this.sg),this.za.zi(0),this.o.R.$a(),0==this.sg&&this.XM());if(this.Gm||this.Fm||this.gk||this.sj||this.hk)M=J/1E3,this.l7(this.gk*M,this.sj*M,this.hk*M,this.Gm*M,this.Fm*M);if(this.Rc==w&&void 0!==this.Gk&&!this.sj&&this.m.get("keepHeight")&&void 0!==this.QK&&Math.abs(this.Gk-this.m.get("y"))>O){this.CF=Math.max(this.CF-J,0);M=this.m.get("y");var X=this.Gk-M;this.za.setY(M+Math.min(J*this.QK,Math.abs(X))*(0.02*this.tB(),fa=10>Math.min(Math.abs(fa),180-Math.abs(fa),Math.abs(ha),180-Math.abs(ha)),ea=.2>ea/this.pu(),(J||M)&&(fa||ea)?(this.Rc=H,this.yQa()):!X&&!J||fa&&ea||(this.Rc=C,this.AQa())):this.Rc==C?this.LSa(ba,da,fa,ha):this.Rc==H&&this.JSa(M,aa,ba,da)};e.prototype.E7=function(){this.Pi= null;this.Rc==C&&this.Pra();this.Rc=w;this.pka=m();this.X8();this.Jla();this.o.R.$a()};e.prototype.jG=function(J,M){if("zoom"==this.m.get("doubleClickAction")){var X=d.Mj(this.o),aa=d.yb(this.o);aa&&X&&(E.set(J,M),this.pU(E),J=this.ZK(E,aa),0!=J.length&&(this.jq(),this.VA(),J=J[0].point,D.setFromMatrixPosition(aa.matrixWorld),this.Ch=new u("quad_in_out",[new v("x",D.x,.5*(J.x+D.x)),new v("y",D.y,.5*(J.y+D.y)),new v("z",D.z,.5*(J.z+D.z)),new v("distance",0,0)],500)))}};e.prototype.qJa=function(){return this.GL? this.Zi?y:x:this.MF()?this.Zi?z:A:w};e.prototype.mQa=function(J,M){this.KG();this.VA();this.eEa(J,M);this.m.get("keepHeight")&&this.WW();this.o.R.$a()};e.prototype.eSa=function(J,M,X,aa){var ba=d.yb(this.o);ba&&(D.setFromMatrixPosition(ba.matrixWorld),this.Pi?(I.set(X,aa,0),this.pU(I),I.unproject(ba),J=this.Pi.x-D.x,M=this.Pi.z-D.z,-2O&&(J.translationY=this.m.get("y"),this.Rc!=w||this.gk||this.sj||this.hk||this.Gm||this.Fm||this.Ch||this.sg||this.jq());J.cf=this.m.get("z");J.re=-this.m.get("yaw");J.Se=this.m.get("pitch");J.Te=0;J.bg="YXZ";J.positionX=0;J.positionY=0;J.positionZ=this.m.get("distance");J.easing=this.m.get("easing");(void 0!==this.m.get("minHeight")||this.m.get("keepHeight"))&&this.vta()}};e.prototype.tq=function(){this.o&&this.m&& (this.o.J(c.PerspectiveCamera,!0).fov=this.m.get("fov"))};e.prototype.l7=function(J,M,X,aa,ba){var da=this.o.getComponent(c.ya);da&&(V.makeRotationFromEuler(K.set(0,da.re*L,0,da.bg)),Y.set(J,M,X).applyMatrix4(V).multiplyScalar(this.OC),void 0!==this.Nh&&(this.Nh+=Y.y,this.XM()),this.za.setX(this.m.get("x")+Y.x),this.za.setY(this.m.get("y")+Y.y),this.za.setZ(this.m.get("z")+Y.z),this.za.tn(this.m.get("yaw")+aa),this.za.hw(this.m.get("pitch")+ba),this.za.zi(this.ik))};e.prototype.qPa=function(J){var M= this.o.getComponent(c.ya);M&&(V.makeRotationFromEuler(K.set(M.Se*L,M.re*L,M.Te*L,M.bg)),J.set(0,0,1).applyMatrix4(V))};e.prototype.KG=function(){this.zx=m();this.Oi=1;this.hu=this.iu=this.ku=this.ju=this.gu=0;this.sg=this.EB=this.FB=this.GB=this.CB=this.BB=void 0};e.prototype.pH=function(J,M,X,aa,ba){var da=m();this.Oi=da-this.zx;this.zx=da;this.hu=J;this.iu=M;this.ku=X;this.ju=aa;this.gu=ba};e.prototype.Pra=function(){this.Oi&&(this.EB=this.hu/this.Oi,this.FB=this.iu/this.Oi,this.GB=this.ku/this.Oi, this.CB=this.ju/this.Oi,this.BB=this.gu/this.Oi,this.sg=1)};e.prototype.ita=function(){void 0!==this.m.get("minHeight")&&(void 0===this.Nh&&this.WW(),void 0!==this.Nh&&this.NhT.indexOf(M.R)&&T.push(M.R)})};return e}); define("hM","require lo oH bm fA lb fq nW kg oS hU bc".split(" "),function(a){function e(A){this.o=A;this.D6(v);this.h7();this.Kp=new d(A);this.Ck=new THREE.Matrix4;this.fH=.05;this.ik=.25;this.gk=this.sj=this.hk=this.Gm=this.Fm=0;this.EB=this.FB=this.GB=this.CB=this.BB=this.zx=this.Oi=this.hu=this.iu=this.ku=this.ju=this.gu=void 0;this.c6=1E3;this.Aqa=720;this.ysa=4;this.gma=720;this.F6=2;this.za=this.$e=null;this.sC(q.jA);this.update()}var h=a("lo"),m=a("oH"),k=a("bm"),b=a("fA"),g=a("lb"),d=a("fq"), c=a("nW"),f=a("kg"),l=a("oS"),p=a("hU"),q=a("bc");h.ZX(e,[g,l,p]);e.prototype.update=function(){var A=this.o.getComponent(b.oA);this.Il(A&&A.Yb);this.Kp.cea(A&&A.Yb);var B=(!A.TH||-1==y.indexOf(this.o.R))&&A.enabled;this.rW(A&&(B?A.ng:null));this.lL(!!A&&B&&A.uz);B||this.dC();B&&A.uz||(this.Gm=this.Fm=this.gk=this.sj=this.hk=0)};e.prototype.frame=function(A,B){this.$e&&this.$e.frame(A,B);this.sg&&(this.sg=Math.max(0,this.sg-A/this.c6),this.za.setX(this.m.get("x")+this.EB*this.sg),this.za.setY(this.m.get("y")+ this.FB*this.sg),this.za.setZ(this.m.get("z")+this.GB*this.sg),this.za.tn(this.m.get("yaw")+this.CB*this.sg),this.za.hw(this.m.get("pitch")+this.BB*this.sg),this.o.R.$a());if(this.Gm||this.Fm||this.gk||this.sj||this.hk)A/=1E3,this.l7(this.gk*A,this.sj*A,this.hk*A,this.Gm*A,this.Fm*A);this.Kp.Mea()};e.prototype.$L=function(){this.jaa()};e.prototype.jaa=function(){this.Gm=this.Fm=this.hk=this.sj=this.gk=0;var A=this.Of[k.sa.wn]?1:this.Of[k.sa.et]?-1:0,B=this.Of[k.sa.Ct]?1:this.Of[k.sa.yt]?-1:0,z=this.Of[k.sa.Q]? 1:this.Of[k.sa.E]?-1:0,C=this.Of[k.sa.Yj]?1:this.Of[k.sa.Di]?-1:0,H=this.Of[k.sa.Pa]?1:this.Of[k.sa.hb]?-1:0;if(A||B||z||C||H){var D=this.Zi?.2:1;A&&(this.gk=-A*D*this.F6*this.m.get("translationSpeed"));z&&(this.sj=-z*D*this.F6*this.m.get("translationSpeed"));B&&(this.hk=-B*D*this.F6*this.m.get("translationSpeed"));H&&(this.Gm=H*D*this.gma*this.m.get("rotationSpeed"));C&&(this.Fm=-C*D*this.gma*this.m.get("rotationSpeed"));this.o.R.$a()}};e.prototype.OU=function(){this.sC(q.Zh);this.ci=!0;this.zx= (new Date).getTime();this.Oi=1;this.hu=this.iu=this.ku=this.ju=this.gu=0;this.sg=this.EB=this.FB=this.GB=this.CB=this.BB=void 0;this.o.R.$a()};e.prototype.NU=function(A,B){if(this.ci){var z=(A*A+B*B)/2500;z=1y.indexOf(B.R)&&y.push(B.R)})};return e}); define("ha","require lo ly fA dL bY hM".split(" "),function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("dL"),b=a("bY"),g=a("hM");a=e.extend(h,function(){h.apply(this,arguments)});a.prototype.yd=function(d,c){(this.$ca.de.length||this.$ca.pg.length)&&k.rZa(this.$ca.C);this.ova.C.length&&this.ova.C.slice().forEach(b.Ob);this.XO.Ua.length&&this.XO.Ua.slice().forEach(b.update);this.XO.C.length&&this.XO.C.slice().forEach(function(f){b.frame(f,d,c)});this.pva.C.length&&this.pva.C.slice().forEach(b.eb);this.jva.C.length&& this.jva.C.slice().forEach(k.Ob);this.WO.Ua.length&&this.WO.Ua.slice().forEach(k.update);this.WO.C.length&&this.WO.C.slice().forEach(function(f){k.frame(f,d,c)});this.kva.C.length&&this.kva.C.slice().forEach(k.eb);this.sya.C.length&&this.sya.C.slice().forEach(g.Ob);this.JP.Ua.length&&this.JP.Ua.slice().forEach(g.update);this.JP.C.length&&this.JP.C.slice().forEach(function(f){g.frame(f,d,c)});this.tya.C.length&&this.tya.C.slice().forEach(g.eb);if(this.TO.de.length||this.TO.pg.length)k.XP(this.TO.C), this.WO.C.slice().forEach(k.update),b.XP(this.TO.C),this.XO.C.slice().forEach(b.update),g.XP(this.TO.C),this.JP.C.slice().forEach(g.update)};a.K={};a.K.TO=[m.yw];a.K.$ca=[m.lJ];a.K.jva=[m.hA,m.jt.not];a.K.WO=[m.hA,m.jt];a.K.kva=[m.hA.not,m.jt];a.K.ova=[m.iA,m.lt.not];a.K.XO=[m.iA,m.lt];a.K.pva=[m.iA.not,m.lt];a.K.sya=[m.oA,m.st.not];a.K.JP=[m.oA,m.st];a.K.tya=[m.oA.not,m.st];return a}); define("iI",["require","fA"],function(a){function e(m){this.o=m;this.Nra=this.ha=null;this.ua=this.ia=void 0;this.update()}var h=a("fA");e.prototype.update=function(){var m=this.o.getComponent(h.Yh),k=m.source&&m.source.width||0,b=m.source&&m.source.height||0;!this.ha||!!this.ha.w1a==m.isSprite&&this.ia==k&&this.ua==b||(this.ha.map.dispose(),this.ha.dispose(),this.ha=null);this.ia=k;this.ua=b;this.ha||(m.isSprite?(this.ha=new THREE.SpriteMaterial,this.ha.sizeAttenuation=!1):this.ha=new THREE.MeshBasicMaterial, this.ha.map=new THREE.Texture,this.ha.transparent=!0,this.o.H(h.Material).material=this.ha);this.ha.map.image!=m.source&&(this.ha.map.image=m.source,this.ha.map.needsUpdate=!0);this.Nra!=m.qQ&&(this.Nra=m.qQ,this.ha.map.needsUpdate=!0);this.ha.opacity=m.opacity||0;this.ha.depthTest=!!m.depthTest;this.ha.visible=0p.copy(l).sub(B.min).dot(B.direction)&&l.copy(B.min),l.applyMatrix4(q.copy(C.parent.matrixWorld).invert()),A=A.J(m.ya),n.multiply(q.makeTranslation(A.translationX,A.translationY,A.cf).invert()),n.multiply(q.makeRotationFromEuler(r.set(A.Se*u,A.re*u,A.Te*u,A.bg)).invert()),l.applyMatrix4(q), A.positionX=l.x,A.positionY=l.y,A.positionZ=l.z)}}};e.prototype.ara=function(x){this.rK!=x&&(this.rK=x,this.je&&(this.rK?this.je.push(b.Zh):this.je.pop(b.Zh)))};e.prototype.sJa=function(x,y,A,B,z){t.copy(x).sub(A);A=y.dot(B);var C=B.dot(B),H=y.dot(y);B=t.dot(B);var D=t.dot(y);z.copy(x);x=A*A-C*H;0!=x&&z.addScaledVector(y,(C*D-B*A)/x)};e.prototype.ZS=function(){var x=k.yb(this.pi);return x&&x.isCamera?x:(x=k.hI(x))&&k.Ns(x)};var g=new THREE.Vector3,d=new THREE.Vector3,c=new THREE.Vector3,f=new THREE.Vector3, l=new THREE.Vector3,p=new THREE.Vector3,q=new THREE.Matrix4,n=new THREE.Matrix4,r=new THREE.Euler,t=new THREE.Vector3,u=Math.PI/180;e.prototype.dispose=function(){this.ara(!1);this.nN(null);this.mN(null);this.o=null};e.oea=function(x){x.H(m.vt).manager=new e(x)};e.Bea=function(x){var y=x.getComponent(m.vt);y.manager.dispose();y.manager=null;x.ma(m.vt)};e.Nea=function(x){x.getComponent(m.vt).manager.update()};e.frame=function(x){x.getComponent(m.vt).manager.frame()};var v=new Map,w=new Map;e.ZZa=function(x){x.H(m.xw); x.H(m.yw);e.NAa(x)};e.NAa=function(x){var y=k.yb(x);w.set(x,y);var A=v.get(x.R);A||v.set(x.R,A=[]);y&&(y=A,0>y.indexOf(x)&&y.push(x))};e.qAa=function(x){var y=v.get(x.R),A=y.indexOf(x);0<=A&&y.splice(A,1);w["delete"](x);x.ma(m.xw);x.ma(m.yw)};return e}); define("kV",["require","lo","ly","fA","ea"],function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("ea");a=e.extend(h,function(){h.apply(this,arguments)});a.prototype.yd=function(){this.NP.C.length&&this.NP.C.slice().forEach(k.oea);this.Mq.Ua.length&&this.Mq.Ua.slice().forEach(k.Nea);this.Mq.C.length&&this.Mq.C.slice().forEach(k.frame);this.OP.C.length&&this.OP.C.slice().forEach(k.Bea);this.Wua.C.length&&this.Wua.C.slice().forEach(k.ZZa);this.Vua.C.length&&this.Vua.C.slice().forEach(k.NAa);this.Yua.C.length&& this.Yua.C.slice().forEach(k.qAa);this.Zua.C.length&&this.Zua.C.slice().forEach(k.qAa)};a.K={};a.K.NP=[m.ef,m.vt.not];a.K.Mq=[m.ef,m.vt];a.K.OP=[m.ef.not,m.vt];a.K.Wua=[m.Object3D,m.Ro,m.xw.not];a.K.Vua=[m.Object3D,m.Ro,m.xw];a.K.Yua=[m.Object3D.not,m.xw];a.K.Zua=[m.Ro.not,m.xw];return a}); define("kL",["require","fA","cm"],function(a){function e(w){this.o=w;this.C8=!1}var h=a("fA"),m=a("cm");e.prototype.update=function(){this.C8=!1};e.prototype.frame=function(){this.pf()};e.prototype.pf=function(){if(!this.C8&&(this.Fa=this.Fa||m.Mj(this.o))){var w=m.yb(this.o),x=w&&w.parent;if(x&&x.matrixWorld){var y=[];this.Fa.traverse(function(C){C.isSprite||C.isLine||C==w||y.push(C)});var A=this.o.J(h.kt);l.set(A.x,A.y,A.z).applyMatrix4(x.matrixWorld);f.ray.origin.set(l.x,l.y,l.z);f.ray.direction.set(0, -1,0);var B=f.intersectObjects(y,!1);if(0!=B.length){var z=B[0];g.copy(x.matrixWorld).invert();B=this.o.J(h.ya,!0);d.setFromMatrixPosition(x.matrixWorld);k.copy(z.object.matrixWorld);c.setFromMatrixPosition(k);b.copy(k).invert();!A.sP&&z.face&&z.face.normal?n.copy(z.face.normal).applyMatrix4(k).sub(c).add(d):n.copy(d).add(r);n.applyMatrix4(g).normalize();u.setFromUnitVectors(q,n);t.setFromQuaternion(u,B.bg);B.Se=t.x*v;B.re=t.y*v;B.Te=t.z*v;l.copy(z.point).applyMatrix4(g);B.translationX=l.x;B.translationY= l.y;B.cf=l.z;p.setFromMatrixScale(g);x=Math.max(p.x,p.y,p.z);B.positionX=0;B.positionY=0;B.positionZ=x*A.distance;this.C8=!0}}}};e.prototype.dispose=function(){};var k=new THREE.Matrix4,b=new THREE.Matrix4,g=new THREE.Matrix4,d=new THREE.Vector3,c=new THREE.Vector3,f=new THREE.Raycaster,l=new THREE.Vector3,p=new THREE.Vector3;new THREE.Matrix4;new THREE.Matrix4;var q=new THREE.Vector3(0,0,1),n=new THREE.Vector3,r=new THREE.Vector3(0,1,0),t=new THREE.Euler,u=new THREE.Quaternion,v=180/Math.PI;e.Ob= function(w){w.H(h.Yq).manager=new e(w)};e.eb=function(w){var x=w.getComponent(h.Yq);x.manager.dispose();x.manager=null;w.ma(h.Yq)};e.frame=function(w){w.getComponent(h.Yq).manager.frame()};e.update=function(w){w.getComponent(h.Yq).manager.update()};return e}); define("hI",["require","lo","ly","fA","kL"],function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("kL");a=e.extend(h,function(){h.apply(this,arguments)});a.prototype.yd=function(){this.lva.C.length&&this.lva.C.slice().forEach(k.Ob);this.pY.Ua.length&&this.pY.C.slice().forEach(k.update);this.pY.C.length&&this.pY.C.slice().forEach(k.frame);this.mva.C.length&&this.mva.C.slice().forEach(k.eb);this.nva.C.length&&this.nva.C.slice().forEach(k.eb)};a.K={};a.K.lva=[m.Object3D,m.kt,m.Yq.not];a.K.pY=[m.Object3D, m.kt,m.Yq];a.K.mva=[m.Object3D.not,m.Yq];a.K.nva=[m.kt.not,m.Yq];return a});define("gk",["require","fA"],function(a){var e=a("fA");return{Ob:function(h){var m=h.H(e.mE),k=h.H(e.Object3D);h.H(e.ya);h=h.J(e.Group);k.Bc=m.group=h.group=new THREE.Group},eb:function(h){h.getComponent(e.mE).group=null;h.ma(e.mE);h.ma(e.Object3D)}}}); define("lt",["require","lo","ly","fA","gk"],function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("gk");a=e.extend(h,function(){h.apply(this,arguments)});a.prototype.yd=function(){this.hwa.C.length&&this.hwa.C.slice().forEach(k.Ob);this.iwa.C.length&&this.iwa.C.slice().forEach(k.eb)};a.K={};a.K.hwa=[m.Group,m.mE.not];a.K.iwa=[m.Group.not,m.mE];return a}); define("bf","require lo oH kO cy gi bg".split(" "),function(a){function e(l,p,q,n){this.uca=l;this.src=l.src;this.YZ=p;this.MO=q;this.tY=n;this.frameWidth=this.uca.width/this.MO;this.frameHeight=this.uca.height/this.YZ}var h=a("lo"),m=a("oH"),k=a("kO");a("cy");var b=a("gi"),g=a("bg");a=h.extend(b,function(l,p,q,n,r,t,u){b.call(this);this.Am=r;this.fh=new e(l,p,q,r);this.oqa=t;this.Qda(n);this.D4=u;this.O=document.createElement("canvas");this.O.width=this.fh.frameWidth;this.O.height=this.fh.frameHeight; this.xa=this.O.getContext("2d");this.xa.globalCompositeOperation="copy";this.A=k.T;this.TV=this.um=0;this.x3=void 0;this.Eh=d.request(this.fh);this.Eh.bind(m.pa,this.oj,this,!0);this.oj()});a.prototype.Qda=function(l){if(this.Le!==l){var p=this.UN;this.Le=l;this.UN=this.Le*this.fh.tY;this.E4=this.UN-.1*this.Le;void 0!==p&&(this.um=this.um/p*this.UN)}};a.prototype.Dza=function(l){this.D4!==l&&(this.D4=l,this.oj())};a.prototype.Jd=function(l){if(this.A!=l){if(l==k.Eb){if(this.A!=k.X)return}else l== k.X?this.A==k.T&&(this.um=this.TV=0,this.oj()):l!=k.T||0==this.um&&0!=this.TV||(this.um=this.E4,this.oj());this.A=l;g.requestFrame(this.yj,this);this.trigger(m.ne)}};a.prototype.getState=function(){return this.A};a.prototype.yj=function(l){this.A==k.X&&(this.um=Math.min(this.um+l,this.Eh.Eh.length*this.Le),this.um>=this.UN&&(this.TV++,this.oqa&&this.TV==this.oqa?(this.Jd(k.T),this.um=this.E4,this.trigger(m.sb)):(this.um%=this.UN,this.trigger(m.gr))),this.oj(),this.A==k.X&&g.requestFrame(this.yj,this))}; a.prototype.clear=function(){this.Jd(k.T);this.O.width=this.O.height=0;this.O=null;d.release(this.fh);this.fh=null};a.prototype.og=function(){return this.O};a.prototype.oj=function(){var l=this.D4&&this.um>=this.E4?0:Math.floor(this.um/this.Le);this.x3!=l&&lg?(n.ow=g/n.width, n.zQ=p==h.Pa?0:p==h.hb?1-n.ow:.5*(1-n.ow),n.width=g):(n.zQ=0,n.ow=1);n.height>d?(n.pw=d/n.height,n.DQ=q==h.uc?1-n.pw:q==h.pc?0:.5*(1-n.pw),n.height=d):(n.DQ=0,n.pw=1);return n},gca:function(g,d,c,f,l,p,q,n){d||(d=e.Sl(g,c,f));l||(l=m.Aw);p||(p=4096/360);var r={};switch(l){case m.Aw:r.Ee=g;r.Uq=d;break;case m.NONE:r.Ee=2*Math.atan2(.5*c,45*p)*k;r.Uq=e.Sl(r.Ee,c,f);break;case m.rh:r.Ee=Math.min(e.Tq(d,c,f),g);r.Uq=Math.min(e.Sl(g,c,f),d);break;case m.Xq:r.Ee=Math.max(e.Tq(d,c,f),g);r.Uq=Math.max(e.Sl(g, c,f),d);break;case m.Zo:r.Ee=g;r.Uq=e.Sl(g,c,f);break;case m.Tj:r.Ee=e.Tq(d,c,f),r.Uq=d}r.Ee>g?(r.ow=Math.tan(.5*g*b)*c/Math.tan(.5*r.Ee*b)/c,r.zQ=q==h.Pa?0:q==h.hb?1-r.ow:.5*(1-r.ow),r.Ee=g):(r.zQ=0,r.ow=1);r.Uq>d?(r.pw=Math.tan(.5*d*b)*f/Math.tan(.5*r.Uq*b)/f,r.DQ=n==h.uc?1-r.pw:n==h.pc?0:.5*(1-r.pw),r.Uq=d):(r.DQ=0,r.pw=1);return r}}}); define("jR","require ky oH cy nx cq ll eD eH fA oj bF jv".split(" "),function(a){function e(v){this.o=v;this.EC=this.EC.bind(this);this.Aa=this.Aa.bind(this);this.Ej=this.Ej.bind(this);v=v.getComponent(l.gm);this.Lg=v.Go;this.ve=v.Ea;this.m=v.Yb;this.we=v.tca;this.gLa=v.isSprite;this.Zf=!1;this.wm=this.Ya=null;this.lu=0;this.Z9=this.Q3=this.wb=this.lF=this.W=void 0;h.fa(this.m,r,this.EC,!1);h.fa(this.we,t,this.EC,!1);h.fa(this.m,u,this.Ej,!1);this.EC()}var h=a("ky"),m=a("oH"),k=a("cy"),b=a("nx"), g=a("cq"),d=a("ll"),c=a("eD"),f=a("eH"),l=a("fA"),p=a("oj"),q=a("bF"),n=a("jv"),r=["height","scaleMode","width"],t=["levels.url","levels.width","levels.height"],u="depthTest enabled encoding hidden side opacity".split(" ");e.prototype.frame=function(v){this.wm&&(this.wm.zb(v),this.lu=this.wm.cb("alpha"),this.paa(),this.wm.Re()&&(this.wm=null),this.o.R.$a());this.Zf&&(this.Zf=!1)};e.prototype.EC=function(){var v=this.we&&this.we.get("levels")||[];v=v.filter(function(D){return!!D.get("url")});var w= 1,x=1;b.Na("AnimatedImageResource",this.we)&&(w=this.we.get("rowCount"),x=this.we.get("colCount"));var y=null;if(0I.get("width")&&I.get("width")/x>=H.width&&I.get("height")/w>=H.height?I:D})}this.oN(y)};e.prototype.oN=function(v){this.Ya!= v&&(this.Ya&&(this.nHa(),this.W3(),this.vS(),this.yp(),this.Zf=!1),this.Ya=v)&&(this.rp(),this.Zt(),this.fK(),this.Zf=!1,this.Aa())};e.prototype.fK=function(){this.vd||(this.vd=new g,this.vd.MI([this.Ya.get("url")]),this.vd.bind(m.Z,this.nd,this,!0),this.vd.bind(m.ec,this.Wna,this,!0),this.vd.bind(m.tc,this.Pf,this,!0),this.Wr=this.o.getComponent(l.gm).priority,d.ln(this.vd,this.Wr))};e.prototype.yp=function(){this.vd&&(this.vd.unbind(m.Z,this.nd,this,!0),this.vd.unbind(m.ec,this.Wna,this,!0),this.vd.unbind(m.tc, this.Pf,this,!0),d.gj(this.vd,this.Wr),this.vd=null)};e.prototype.nd=function(){this.XGa();this.Q$(new k(m.Z))};e.prototype.Wna=function(v){this.Q$(new k(m.ec,{percent:v.Sg}))};e.prototype.Pf=function(){this.Q$(new k(m.tc))};e.prototype.Q$=function(v){this.Lg&&this.Lg.trigger(v)};e.prototype.Aa=function(){this.Zf||(this.Zf=!0,this.o.R.$a())};e.prototype.rp=function(){this.tb=new THREE.Texture;this.tb.image=f.zva();this.tb.generateMipmaps=!0;this.tb.minFilter=THREE.LinearMipMapLinearFilter};e.prototype.vS= function(){this.tb&&(this.tb.dispose(),this.tb=null)};e.prototype.Zt=function(){this.gLa?(this.ha=new THREE.SpriteMaterial({map:this.tb}),this.ha.sizeAttenuation=!0):this.ha=new THREE.MeshBasicMaterial({map:this.tb});this.ha.transparent=!0;this.ha.needsUpdate=!0;this.o.H(l.Material).material=this.ha;this.Oha(0);this.o.J(l.$h,!0);this.Ej(!0)};e.prototype.Ej=function(v){var w=this.m.get("enabled")&&!this.m.get("hidden")&&!!this.vo,x=this.W!==w;if(x||v){this.W=w;w=this.lu;var y=this.W?1:0,A=this.m.get("hidden")? 0:200;this.wm=w!==y?new p("linear",[new q("alpha",w,y,void 0)],Math.abs(w-y)*A):null;this.paa()}w=this.m.get("encoding");if(this.lF!==w||v)this.lF=w,this.RSa();w=this.m.get("depthTest");if(this.Q3!==w||v)this.Q3=w,this.qSa();w=this.m.get("opacity");if(this.wb!==w||v)this.wb=w,this.paa();w=this.m.get("side");if(this.Z9!==w||v)this.Z9=w,this.rSa();x&&this.ve&&this.ve.trigger(this.W?m.kd:m.sd)};e.prototype.RSa=function(){if(this.ha&&(this.ha.map||this.ha.emissiveMap)){var v="srgb"==this.lF?THREE.sRGBEncoding: THREE.LinearEncoding;this.ha.map&&(this.ha.map.encoding=v);this.ha.emissiveMap&&(this.ha.emissiveMap.encoding=v);this.ha.needsUpdate=!0}this.o.J(l.$h,!0);this.Aa()};e.prototype.qSa=function(){this.ha&&(this.ha.depthTest=this.Q3);this.o.J(l.$h,!0);this.Aa()};e.prototype.paa=function(){this.ha&&this.Oha((this.wb||0)*this.lu);this.vo&&this.vo.wf(0A;A++)for(var B=0;2>B;B++)for(var z=0;2>z;z++)l.set(0==A?r.min.x:r.max.x,0==B?r.min.y:r.max.y,0==z?r.min.z:r.max.z).applyMatrix4(n.matrixWorldInverse),l.xu&&(u=l.x), l.y>v&&(v=l.y),l.yy&&(y=-l.z),-l.zr?!0:n.transparent;if(d.material.opacity!==r||d.material.visible!==t||d.material.transparent!== u)g.Mba(d),d.material.opacity=r,d.material.transparent=u,d.material.visible=t,d.material.needsUpdate=!0}void 0!==n.envMapIntensity&&(n=n.envMapIntensity*(void 0===f?1:f),d.material.envMapIntensity!==n&&(g.Mba(d),d.material.envMapIntensity=n,d.material.needsUpdate=!0));g.U_a(d)}var v=this.sIa(l);(null==d.material.map?[]:Array.isArray(d.material.map)?d.material.map:[d.material.map]).forEach(function(w){w.anisotropy!==v&&(w.anisotropy=v,w.needsUpdate=!0)})}d.isMesh&&(void 0!==p&&d.castShadow!==p&&(d.castShadow= p),void 0!==q&&d.receiveShadow!==q&&(d.receiveShadow=q));d.children&&d.children.forEach(function(w){w.userData.nWa=c;w.userData.mWa=f;w.userData.kWa=l;w.userData.lWa=p;w.userData.oWa=q;this.KV(w)}.bind(this))};a.prototype.sIa=function(d){return 1+Math.round((d||0)*(b.Bva().capabilities.getMaxAnisotropy()-1))};a.prototype.Bka=function(d){var c=d.userData.rya;d=d.userData.nWa;if(void 0!==d||void 0!==c)if(c=(void 0!==d?d:1)*(void 0!==c?c:1),1!==c)return c};a.prototype.HIa=function(d){var c=d.userData.envMapIntensity; d=d.userData.mWa;if(void 0!==d||void 0!==c)if(c=(void 0!==d?d:1)*(void 0!==c?c:1),1!==c)return c};a.prototype.FIa=function(d){var c=d.userData.FO;if(void 0!==c)return c;d=d.userData.kWa;if(void 0!==d)return d};a.prototype.GIa=function(d){var c=d.userData.castShadow;if(void 0!==c)return c;d=d.userData.lWa;if(void 0!==d)return d};a.prototype.IIa=function(d){var c=d.userData.receiveShadow;if(void 0!==c)return c;d=d.userData.oWa;if(void 0!==d)return d};a.prototype.Vd=function(d,c){var f=this.Bka(d);void 0!== f&&(f=0=.98*f||!l.object.visible)return!1;l=Array.isArray(l.object.material)&&l.face?l.object.material[l.face.materialIndex]:l.object.material; return!l||l.visible}).length};e.prototype.YUa=function(d){m.ray.origin.copy(d);m.ray.direction.copy(b);d=this.KK();var c=h.intersect(m,d);if(0u.indexOf(w)&&u.push(w)}var u=[];t(r.material);t(r.userData.FD);if(r.userData.Kz)for(var v in r.userData.Kz)t(r.userData.Kz[v]); u.forEach(function(w){w.dispose();Object.keys(w).forEach(function(x){(x=w[x])&&"object"===typeof x&&"minFilter"in x&&x.dispose()})});r.geometry&&r.geometry.userData.yua&&r.geometry.disposeBoundsTree();r.geometry&&r.geometry.dispose()}),this.Ba=null,this.ei.ma(p.Object3D));this.be&&(this.aOa(),this.be.dispose(),this.be=null);this.ve&&(this.ye.DI(this.ve),this.si.DI(this.ve),this.ye=this.ve=null);this.m&&(this.m.set("geometryQuery",null),this.m.set("objectQuery",null),this.m.set("isLoaded",!1),this.m= null)};return e}); define("jS","require ky lP oH gi fA cm".split(" "),function(a){function e(t,u,v){this.Ga=t;this.jF=u;this.D=v;this.lf=this.lf.bind(this);this.vl=this.vl.bind(this);this.El=1;this.W=!1;this.Hha=new Map;this.eh=[];this.Zg=this.Ga.R.ad("DraggingPositionContainer");this.Zg.H(b.Group);this.Zg.H(b.ya);this.eh.push(this.Zg);this.Hc=null;this.FA=[this.Vta=this.l3("x"),this.Wta=this.l3("y"),this.Xta=this.l3("z")];this.FA.forEach(function(w){this.Ky(w,function(x){x.opacity=.5;x.depthTest=!1});w.H(b.kb).Y=this.Zg}.bind(this)); h.fa(this.D,n,this.lf,!0);h.fa(this.D,r,this.vl,!0)}var h=a("ky");a("lP");var m=a("oH"),k=a("gi"),b=a("fA"),g=a("cm");e.prototype.dispose=function(){h.ba(this.D,n,this.lf);h.ba(this.D,r,this.vl);var t=this.Ga.R;this.eh.forEach(function(u){t.Qe(u)});this.D=this.Ga=this.FA=this.o=this.eh=null};e.prototype.frame=function(){if(this.W)if(this.pN(g.iI(this.Zg)||1),this.Hc){var t=this.jF.getComponent(b.ya);this.D.set("x",t.positionX);this.D.set("y",t.positionY);this.D.set("z",t.positionZ)}else this.ZRa()}; var d=new THREE.Vector3,c=new THREE.Vector3,f=new THREE.Euler,l=new THREE.Quaternion,p=new THREE.Matrix4,q=180/Math.PI;e.prototype.l3=function(t){var u=this.Ga.R.ad("DraggingArrow");this.eh.push(u);u.H(b.Group);var v=u.J(b.ya,!0);"x"===t?v.Te=-90:"z"==t&&(u.J(b.ya,!0).Se=90);t=this.Ga.R.ad("DraggingArrowCylinder");this.eh.push(t);t.H(b.Mesh).renderOrder=1;t.H(b.Geometry).geometry=new THREE.CylinderGeometry(.05,.05,.85,16,1,!0);t.H(b.Fc);t.H(b.kb).Y=u;t.J(b.ya,!0).positionY=-.075;v=this.Ga.R.ad("DraggingArrowCone"); this.eh.push(v);v.H(b.Mesh).renderOrder=1;v.H(b.Geometry).geometry=new THREE.ConeGeometry(.05,.15,16,1,!0);v.H(b.Fc);v.H(b.kb).Y=u;v.J(b.ya,!0).positionY=.425;this.Hha.set(u,[t,v]);return u};e.prototype.pN=function(t){this.El!=t&&(this.El=t,this.lf())};e.prototype.lf=function(){var t=this.D.get("draggableArrowLength")*this.El;this.Ky(this.Vta,function(v){v.color=this.D.get("draggableXControlsColor")}.bind(this));var u=this.Vta.J(b.ya,!0);u.scale=t;u.translationX=t/2;this.Ky(this.Wta,function(v){v.color= this.D.get("draggableYControlsColor")}.bind(this));u=this.Wta.J(b.ya,!0);u.scale=t;u.translationY=t/2;this.Ky(this.Xta,function(v){v.color=this.D.get("draggableZControlsColor")}.bind(this));u=this.Xta.J(b.ya,!0);u.scale=t;u.cf=t/2};e.prototype.ZRa=function(){var t=g.yb(this.jF);t&&(p.copy(t.matrixWorld).invert().decompose(d,l,c),t=this.Zg.getComponent(b.ya),f.setFromQuaternion(l,t.bg),f.x*=q,f.y*=q,f.z*=q,t.Se!=f.x||t.re!=f.y||t.Te!=f.z)&&(t=this.Zg.J(b.ya),t.Se=f.x,t.re=f.y,t.Te=f.z)};e.prototype.vl= function(){var t=this.D.get("positionDraggable");this.W!=t&&((this.W=t)?(this.Zg.H(b.kb).Y=this.jF,this.FA.forEach(function(u){u=u.H(b.ld);u.aw=!0;u.Iv=!0;u.Ea=new k;u.Ea.bind(m.Wc,this.oG,this,!0);u.Ea.bind(m.ac,this.Om,this,!0);u.Ea.bind(m.ub,this.mk,this,!0);u.Ea.bind(m.Zb,this.Xn,this,!0)}.bind(this))):(this.Zg.ma(b.kb),this.FA.forEach(function(u){u.ma(b.ld)})))};e.prototype.oG=function(t){(t=this.fl(t))&&t!=this.Hc&&this.Ky(t,function(u){u.opacity=1})};e.prototype.Om=function(t){(t=this.fl(t))&& t!=this.Hc&&this.Ky(t,function(u){u.opacity=.5})};e.prototype.mk=function(t){t=this.fl(t);this.My(t)};e.prototype.Xn=function(t){t=this.fl(t);t==this.Hc&&(this.My(null),-1!=this.FA.indexOf(t)&&this.D.trigger(m.tt))};e.prototype.Ky=function(t,u){this.Hha.get(t).forEach(function(v){u(v.J(b.Fc))}.bind(this))};e.prototype.fl=function(t){t=this.FA.map(function(u){return u.getComponent(b.ld).Ea}).indexOf(t.source);return-1==t?null:this.FA[t]};e.prototype.My=function(t){this.Hc&&(this.Ky(this.Hc,function(v){v.opacity= .5}),this.jF.ma(b.Ro));if(this.Hc=t){this.Ky(this.Hc,function(v){v.opacity=1});t=g.getWorldPosition(this.jF);var u=g.getWorldPosition(this.Hc);this.jF.H(b.Ro).direction=u.sub(t)}};var n=["draggableArrowLength","draggableXControlsColor","draggableYControlsColor","draggableZControlsColor"],r=["positionDraggable"];return e}); define("n","require ky oH gi fA cm".split(" "),function(a){function e(n,r,t){this.Ga=n;this.o=r;this.D=t;this.nk=this.nk.bind(this);this.lf=this.lf.bind(this);this.vl=this.vl.bind(this);this.Hc=null;this.W=!1;this.MV=[1,1,1,1,1,1];this.eh=[];this.fg=[this.AH=this.qp(),this.zH=this.qp(),this.CH=this.qp(),this.BH=this.qp(),this.EH=this.qp(),this.DH=this.qp()];this.fg.forEach(function(u){u=u.J(b.Fc);u.opacity=.5;u.depthTest=!1}.bind(this));h.fa(this.D,l,this.lf,!0);h.fa(this.D,p,this.nk,!0);h.fa(this.D, q,this.vl,!0)}var h=a("ky"),m=a("oH"),k=a("gi"),b=a("fA"),g=a("cm");e.prototype.frame=function(){if(this.W&&(this.BPa(this.fg.map(function(H){return g.iI(H)||1})),this.Hc)){var n=g.yb(this.o),r=g.yb(this.xF(this.Hc));if(n&&r){c.copy(n.matrixWorld).invert();d.setFromMatrixPosition(r.matrixWorld).applyMatrix4(c);n=this.D.get("x");r=this.D.get("y");var t=this.D.get("z"),u=this.D.get("width"),v=this.D.get("height"),w=this.D.get("depth"),x=0,y=0,A=0,B=0,z=0,C=0;switch(this.Hc){case this.AH:B=d.x-.5*u; x=.5*B;break;case this.zH:B=-d.x-.5*u;x=.5*-B;break;case this.CH:z=d.y-.5*v;y=.5*z;break;case this.BH:z=-d.y-.5*v;y=.5*-z;break;case this.EH:C=d.z-.5*w;A=.5*C;break;case this.DH:C=-d.z-.5*w,A=.5*-C}this.D.set("x",n+x);this.D.set("width",u+B);this.D.set("y",r+y);this.D.set("height",v+z);this.D.set("z",t+A);this.D.set("depth",w+C)}}};var d=new THREE.Vector3,c=new THREE.Matrix4;e.prototype.qp=function(){var n=this.Ga.R.ad("DraggingSphere");this.eh.push(n);n.H(b.Mesh).renderOrder=2;n.H(b.Geometry).geometry= new THREE.SphereGeometry;n.H(b.Fc);return n};e.prototype.lf=function(){this.AH.J(b.Fc).color=this.D.get("draggableXControlsColor");this.zH.J(b.Fc).color=this.D.get("draggableXControlsColor");this.CH.J(b.Fc).color=this.D.get("draggableYControlsColor");this.BH.J(b.Fc).color=this.D.get("draggableYControlsColor");this.EH.J(b.Fc).color=this.D.get("draggableZControlsColor");this.DH.J(b.Fc).color=this.D.get("draggableZControlsColor");var n=this.D.get("draggableSphereRadius");this.fg.forEach(function(r,t){r.J(b.ya, !0).scale=n*this.MV[t]}.bind(this))};e.prototype.nk=function(){this.AH.J(b.ya,!0).positionX=this.D.get("width")/2;this.zH.J(b.ya,!0).positionX=-this.D.get("width")/2;this.CH.J(b.ya,!0).positionY=this.D.get("height")/2;this.BH.J(b.ya,!0).positionY=-this.D.get("height")/2;this.EH.J(b.ya,!0).positionZ=this.D.get("depth")/2;this.DH.J(b.ya,!0).positionZ=-this.D.get("depth")/2};e.prototype.vl=function(){var n=this.D.get("sizeDraggable");this.W!=n&&(this.W=n,this.fg.forEach(function(r){n?(r.H(b.kb).Y=this.o, this.fg.forEach(function(t){t=t.H(b.ld);t.aw=!0;t.Iv=!0;t.Ea=new k;t.Ea.bind(m.Wc,this.dG,this,!0);t.Ea.bind(m.ac,this.A7,this,!0);t.Ea.bind(m.ub,this.y7,this,!0);t.Ea.bind(m.Zb,this.z7,this,!0)}.bind(this))):(r.ma(b.kb),this.fg.forEach(function(t){t.ma(b.ld)}.bind(this)))}.bind(this)))};e.prototype.BPa=function(n){for(var r=!1,t=0;t=this.Xb.position||this.Xb.mw&&1<=this.Xb.position?!1:!0;m.update(this.ha,this.Xb);this.o.R.$a()};var g=new THREE.MeshBasicMaterial;e.prototype.dispose=function(){b.yb(this.ei).visible=!0;this.cd&&this.cd.traverse(function(c){c.material==this.ha&& (c.material=g)}.bind(this));this.AN&&(b.Yya(this.AN.parent,this.AN),this.AN=null);this.ha&&(this.Xb.Bi.dispose(),this.Xb.Ci.dispose(),this.Xb.texture.dispose(),this.Xb=null,this.ha.dispose(),this.ha=null);h.ba(this.D,d,this.Ou);this.o&&this.o.R.Qe(this.o);this.D=this.o=this.Ga=null};var d="sourceX sourceY sourceZ sourceYaw sourceFaces targetX targetY targetZ targetYaw targetFaces position".split(" ");return e}); define("cH","require ky oH gi fA cm".split(" "),function(a){function e(w,x,y){this.Ga=w;this.o=x;this.D=y;this.mG=this.mG.bind(this);this.lf=this.lf.bind(this);this.vl=this.vl.bind(this);this.Hc=null;this.W=!1;this.El=1;this.Zg=this.Ga.R.ad("DraggingSize2DContainer");this.Zg.H(b.Group);this.Zg.H(b.ya);this.fg=[this.T6=this.qp(),this.M6=this.qp(),this.r9=this.qp(),this.W8=this.qp()];this.fg.forEach(function(A){A.H(b.ya);A=A.J(b.Fc);A.color="#ffffff";A.opacity=.5;A.depthTest=!1}.bind(this));this.ur= this.m3();this.eh=[this.Zg,this.ur].concat(this.fg);[this.ur].concat(this.fg).forEach(function(A){A.H(b.kb).Y=this.Zg}.bind(this));h.fa(this.D,u,this.mG,!0);h.fa(this.D,t,this.lf,!0);h.fa(this.D,v,this.vl,!0)}var h=a("ky"),m=a("oH"),k=a("gi"),b=a("fA"),g=a("cm"),d=new THREE.Matrix4,c=new THREE.Vector3,f=new THREE.Vector3,l=new THREE.Quaternion,p=new THREE.Vector3,q=new THREE.Vector3,n=new THREE.Euler,r=180/Math.PI;e.prototype.frame=function(){if(this.W){var w=g.yb(this.Zg),x=w&&g.hI(w),y=x&&g.Ns(x); if(y){if(this.Hc){var A=g.MY(x);x=g.kI(x);g.getWorldPosition(this.o,q).project(y);q.x=(q.x+1)*A*.5;q.y=(1-q.y)*x*.5;g.getWorldPosition(this.Hc,p).project(y);p.x=(p.x+1)*A*.5;p.y=(1-p.y)*x*.5;A=this.D.get("anchorX");x=this.D.get("anchorY");var B,z,C=q.x-p.x,H=p.y-q.y,D=-C,I=-H;this.M6===this.Hc&&(0x)?C>H?B=C/A:z=H/(1-x):this.W8===this.Hc&&(1>A||1>x)?D>H?B=D/(1-A):z=H/(1-x):this.T6===this.Hc&&(0I?B=C/A:z=I/x:this.r9===this.Hc&&(1>A||0I?B=D/(1-A):z=I/x);void 0!==z&&void 0=== B?B=z*this.Jha:void 0!==B&&void 0===z&&(z=B/this.Jha);void 0!==B&&void 0!==z&&(A=this.D.get("sizeAttenuation")?this.El:1,console.log("sizeAttenuationScale",A),this.D.set("width",this.ia=B*A),this.D.set("height",this.ua=z*A))}B=this.Zg.getComponent(b.ya);d.copy(w.parent.matrixWorld).invert().multiply(y.matrixWorld).decompose(c,l,f);n.setFromQuaternion(l,B.bg);n.x*=r;n.y*=r;n.z*=r;if(B.Se!=n.x||B.re!=n.y||B.Te!=n.z)B=this.Zg.J(b.ya),B.Se=n.x,B.re=n.y,B.Te=n.z;this.pN(g.iI(this.Zg)||1)}}};e.prototype.TRa= function(w,x){null!=this.Z$&&clearTimeout(this.Z$);this.Z$=setTimeout(function(){this.Z$=null;if(this.ia!==w||this.ua!==x)this.ia=w,this.ua=x,this.Jha=this.ia/this.ua}.bind(this),100)};e.prototype.qp=function(){var w=this.Ga.R.ad("DraggingSphere");w.H(b.Mesh).renderOrder=2;w.H(b.Geometry).geometry=new THREE.SphereGeometry;w.H(b.Fc);return w};e.prototype.m3=function(){var w=this.Ga.R.ad("BoxBorder");w.H(b.Line);w.H(b.Geometry).geometry=this.VGa();var x=w.H(b.Xg);x.color="#0000ff";x.depthTest=!1;x.width= 1;return w};e.prototype.VGa=function(){var w=[new THREE.Vector3(-.5,-.5,0),new THREE.Vector3(.5,-.5,0),new THREE.Vector3(.5,-.5,0),new THREE.Vector3(.5,.5,0),new THREE.Vector3(.5,.5,0),new THREE.Vector3(-.5,.5,0),new THREE.Vector3(-.5,.5,0),new THREE.Vector3(-.5,-.5,0)];return(new THREE.BufferGeometry).setFromPoints(w)};e.prototype.lf=function(){var w=this.ur.J(b.Xg);w.color=this.D.get("draggableLineColor");w.opacity=this.D.get("draggableLineOpacity");w.width=this.D.get("draggableLineWidth");this.fg.forEach(function(x){x.J(b.Fc).color= this.D.get("draggableSphereColor");x.J(b.ya).scale=this.D.get("draggableSphereRadius")*this.El}.bind(this))};e.prototype.pN=function(w){this.El!=w&&(this.El=w,this.mG(),this.lf())};e.prototype.mG=function(){var w=this.D.get("anchorX"),x=this.D.get("anchorY"),y=this.D.get("width"),A=this.D.get("height"),B=this.D.get("sizeAttenuation")?1:this.El,z=this.T6.J(b.ya,!0);z.positionX=-w*y*B;z.positionY=x*A*B;z=this.r9.J(b.ya,!0);z.positionX=(1-w)*y*B;z.positionY=x*A*B;z=this.M6.J(b.ya,!0);z.positionX=-w* y*B;z.positionY=(x-1)*A*B;z=this.W8.J(b.ya,!0);z.positionX=(1-w)*y*B;z.positionY=(x-1)*A*B;z=this.ur.J(b.ya,!0);z.positionX=(.5-w)*y*B;z.positionY=(x-.5)*A*B;z.Gf=y*B;z.Tf=A*B;this.TRa(y,A)};e.prototype.vl=function(){var w=this.D.get("sizeDraggable");this.W!=w&&((this.W=w)?(this.Zg.H(b.kb).Y=this.o,this.fg.forEach(function(x){x=x.H(b.ld);x.aw=!0;x.Iv=!0;x.Ea=new k;x.Ea.bind(m.Wc,this.dG,this,!0);x.Ea.bind(m.ac,this.A7,this,!0);x.Ea.bind(m.ub,this.y7,this,!0);x.Ea.bind(m.Zb,this.z7,this,!0)}.bind(this))): (this.Zg.ma(b.kb),this.fg.forEach(function(x){x.ma(b.ld)}.bind(this))))};e.prototype.dG=function(w){(w=this.fl(w))&&w!=this.Hc&&(w.J(b.Fc).opacity=1)};e.prototype.A7=function(w){(w=this.fl(w))&&w!=this.Hc&&(w.J(b.Fc).opacity=.5)};e.prototype.y7=function(w){w=this.fl(w);this.My(w)};e.prototype.z7=function(w){(w=this.fl(w))&&w==this.Hc&&(this.My(null),this.mG(),(w=-1!=this.fg.indexOf(w))&&this.D.trigger(m.tt),w&&this.D.trigger(m.jga))};e.prototype.fl=function(w){w=this.fg.map(function(x){return x.getComponent(b.ld).Ea}).indexOf(w.source); if(-1==w)return null;w=this.fg[w];return this.aLa(w)?w:null};e.prototype.aLa=function(w){var x=this.D.get("anchorX"),y=this.D.get("anchorY");return this.M6===w&&(0x||0y)||this.r9===w&&(1>x||1>y)?!0:!1};e.prototype.My=function(w){this.Hc&&(this.Hc.J(b.Fc).opacity=.5,this.xF(this.Hc).ma(b.Ro));if(this.Hc=w){this.Hc.J(b.Fc).opacity=1;var x=this.xF(this.Hc).H(b.Ro),y=g.getWorldPosition(this.o);w=g.getWorldPosition(w);w=(new THREE.Vector3).copy(w).sub(y); var A=Math.min(w.length(),10*this.El);y=(new THREE.Vector3).copy(y).add(c.copy(w).setLength(A));x.direction=w;x.min=y}};e.prototype.xF=function(w){return-1!=this.fg.indexOf(w)?w:null};e.prototype.dispose=function(){h.ba(this.D,u,this.mG);h.ba(this.D,t,this.lf);h.ba(this.D,v,this.vl);var w=this.Ga.R;this.eh.forEach(function(x){w.Qe(x)});this.D=this.Ga=this.fg=this.o=this.eh=null};var t=["draggableLineColor","draggableLineOpacity","draggableLineWidth","draggableSphereColor","draggableSphereRadius"], u="anchorX anchorY height sizeAttenuation x y z width".split(" "),v=["sizeDraggable"];return e}); define("hZ","require ky hT fA jS cH cm".split(" "),function(a){function e(v,w,x,y,A){this.Ga=v;this.ye=x;this.si=y;this.D=A;this.nk=this.nk.bind(this);this.hM=this.hM.bind(this);this.lf=this.lf.bind(this);this.QU=this.QU.bind(this);this.Lg=this.ye.hz(1);this.D.get("preload")&&this.si.FH(this.Lg);this.o=this.Ga.R.ad("SpriteContainer");this.o.H(k.Group);v=this.o.H(k.kb);v.Y=this.Ga;v.id=this.D.get("parentId");this.aO=this.Ga.R.ad("TranslationSpriteContainer");this.aO.H(k.Group);this.aO.H(k.kb).Y=this.o; this.hs=this.Ga.R.ad("Sprite");this.hs.H(k.kb).Y=this.aO;v=this.hs.H(k.gm);v.Yb=this.D;v.tca=this.D.get("image");v.Ea=this.D;v.Go=this.Lg;v.isSprite=!0;v.priority=this.D.get("preload")?m.lA:m.Bfa;this.hs.H(k.Sprite).renderOrder=2;this.hs.H(k.ld).Ea=this.D;this.hs.H(k.uw);this.hs.H(k.fJ).object=this.D;this.O6=!1;this.El=1E-4;this.Wx=this.o.R.ad("TranslationLine");this.Wx.H(k.Line).renderOrder=1;this.Wx.H(k.Xg);this.eB=new b(this.Ga,this.o,this.D);this.j4=new g(this.Ga,this.aO,this.D);h.fa(this.D,n, this.nk,!0);h.fa(this.D,t,this.hM,!0);h.fa(this.D,u,this.lf,!0);h.fa(this.D,r,this.QU,!0)}var h=a("ky"),m=a("hT"),k=a("fA"),b=a("jS"),g=a("cH"),d=a("cm");e.prototype.frame=function(){this.eB.frame();this.j4.frame();this.pN(d.iI(this.o)||1E-4)};e.prototype.nk=function(){this.o.H(k.kb).id!=this.D.get("parentId")&&(this.o.J(k.kb).id=this.D.get("parentId"));var v=this.o.J(k.ya,!0);v.positionX=this.D.get("x");v.positionY=this.D.get("y");v.positionZ=this.D.get("z")};e.prototype.pN=function(v){this.El!= v&&(this.El=v,this.hM())};e.prototype.hM=function(){var v=this.aO.J(k.ya,!0),w=this.D.get("translationLength");l.set(this.D.get("translationX"),this.D.get("translationY"),this.D.get("translationZ"));void 0!==w&&l.setLength(w*this.El);v.translationX=l.x;v.translationY=l.y;v.cf=l.z;w=this.Wx.J(k.ya,!0);l.set(v.translationX,v.translationY,v.cf);w.scale=l.length();c.setFromUnitVectors(p,l.normalize());f.setFromQuaternion(c,w.bg);f.x*=q;f.y*=q;f.z*=q;w.Se=f.x;w.re=f.y;w.Te=f.z;this.eta()};var c=new THREE.Quaternion, f=new THREE.Euler,l=new THREE.Vector3,p=new THREE.Vector3(0,0,1),q=180/Math.PI;e.prototype.lf=function(){var v=this.hs.J(k.ld,!0);v.Qo=this.D.get("useHandCursor");v.yQ=this.D.get("transparentAreaActive");v.Iv=this.D.get("clickEnabled");v.aw=this.D.get("rollOverEnabled");v=this.Wx.J(k.Xg);v.color=this.D.get("translationLineColor");v.depthTest=this.D.get("depthTest");v.opacity=this.D.get("hidden")?0:this.D.get("translationLineOpacity");v.width=this.D.get("translationLineWidth");this.eta()};e.prototype.QU= function(){var v=this.hs.J(k.Sprite,!0);v.HH=this.D.get("anchorX");v.IH=this.D.get("anchorY");v.width=this.D.get("width");v.height=this.D.get("height");v.scale=this.D.get("scale");v.sizeAttenuation=this.D.get("sizeAttenuation")};e.prototype.eta=function(){var v=this.D.get("translationLineVisible")&&0b.indexOf(d))&&this.dOa(d)}.bind(this)),b.forEach(function(d){(g||0>this.xj.indexOf(d))&&this.JDa(d)}.bind(this)),this.xj=b};e.prototype.JDa=function(b){this.xU.set(b, k.create(this.o,this.ei,this.ye,this.si,b))};e.prototype.dOa=function(b){var g=this.xU.get(b);g&&g.dispose();this.xU["delete"](b)};return e}); define("kf",["require","oH","fA"],function(a){function e(g,d){this.o=g;this.ei=d;this.Ti=this.Ba=this.m=null;this.dV=new Map;this.Il(this.o.getComponent(m.sh).Yb);this.update()}var h=a("oH"),m=a("fA");e.prototype.update=function(){var g=this.ei.getComponent(m.Object3D);g=g&&g.Bc;this.Ba!=g&&(this.Ba=g,this.GA())};e.prototype.Il=function(g){this.m&&k.forEach(function(d){this.m.unbind(h.G(d),this.GA,this,!1)}.bind(this));if(this.m=g)k.forEach(function(d){this.m.bind(h.G(d),this.GA,this,!1)}.bind(this)), this.GA()};e.prototype.GA=function(){this.lra(this.m.get("model"));if(this.Ba){var g=this.m.get("bakedTextures");this.Ba.traverse(function(d){d.isMesh&&(g?this.aGa(d):this.vqa(d))}.bind(this));this.o.R.$a()}};e.prototype.aGa=function(g){!g.material||g.material.isMeshBasicMaterial||this.dV.get(g)||(this.dV.set(g,g.material),g.material=(new THREE.MeshBasicMaterial).copy(g.material))};e.prototype.vqa=function(g){var d=g.material,c=this.dV.get(g);d&&c&&(this.dV["delete"](g),g.material=c)};e.prototype.lra= function(g){this.Ti!=g&&(this.Ti&&b.forEach(function(d){this.Ti.unbind(h.G(d),this.m2,this,!1)}.bind(this)),this.Ti=g)&&(b.forEach(function(d){this.Ti.bind(h.G(d),this.m2,this,!1)}.bind(this)),this.m2())};e.prototype.m2=function(){var g=this.ei.J(m.ya,!0);g.positionX=this.Ti.get("positionX");g.positionY=this.Ti.get("positionY");g.positionZ=this.Ti.get("positionZ");g.bg=this.Ti.get("rotationOrder");g.Se=this.Ti.get("rotationX");g.re=this.Ti.get("rotationY");g.Te=this.Ti.get("rotationZ");g.scale=this.Ti.get("scale"); g.translationX=this.Ti.get("translationX");g.translationY=this.Ti.get("translationY");g.cf=this.Ti.get("translationZ")};e.prototype.dispose=function(){this.Ba&&(this.Ba.traverse(function(g){g.isMesh&&this.vqa(g)}.bind(this)),this.Ba=null);this.lra(null);this.Il(null)};var k=["bakedTextures","model"],b="positionX positionY positionZ rotationOrder rotationX rotationY rotationZ scale translationX translationY translationZ".split(" ");return e}); define("bQ","require oH cy pa fA lc eB kR kf".split(" "),function(a){function e(l){this.o=l;this.o.H(b.Group);l=this.o.getComponent(b.sh);this.ei=l.OO;this.si=new k(l.Oya);this.ye=new k(l.Go);this.ve=l.Ea;this.be=new d(this.o,this.ei,this.ye,this.si);this.xj=new c(this.o,this.ei,this.ye,this.si);this.Ke=new g(this.o);this.m=new f(this.o,this.ei)}var h=a("oH"),m=a("cy"),k=a("pa"),b=a("fA"),g=a("lc"),d=a("eB"),c=a("kR"),f=a("kf");e.prototype.update=function(){this.be.update();this.xj.update();this.m.update(); this.Ke.update()};e.prototype.frame=function(){this.be.frame();this.xj.frame();this.Ke.frame();this.ve.trigger(new m(h.gA))};e.prototype.dispose=function(){this.Ke&&(this.Ke.dispose(),this.Ke=null);this.be&&(this.be.dispose(),this.be=null);this.xj&&(this.xj.dispose(),this.xj=null);this.m&&(this.m.dispose(),this.m=null);this.ye&&(this.ye.dispose(),this.ye=null);this.ve=this.ei=null};e.Ob=function(l){l.H(b.qt).manager=new e(l)};e.eb=function(l){var p=l.getComponent(b.qt);p.manager.dispose();p.manager= null;l.ma(b.qt)};e.update=function(l){l.getComponent(b.qt).manager.update()};e.frame=function(l){l.getComponent(b.qt).manager.frame()};return e}); define("kU",["require","lo","ly","fA","bQ"],function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("bQ");a=e.extend(h,function(){h.apply(this,arguments)});a.prototype.yd=function(){this.zxa.C.length&&this.zxa.C.slice().forEach(k.Ob);this.tZ.Ua.length&&this.tZ.Ua.slice().forEach(k.update);this.tZ.C.length&&this.tZ.C.slice().forEach(k.frame);this.Axa.C.length&&this.Axa.C.slice().forEach(k.eb)};a.K={};a.K.zxa=[m.sh,m.qt.not];a.K.tZ=[m.sh,m.qt];a.K.Axa=[m.sh.not,m.qt];return a}); define("ch",["require","fA","cm"],function(a){function e(k){this.o=k;this.cd=null}var h=a("fA"),m=a("cm");e.prototype.frame=function(){if(!this.cd){var k=this.o.getComponent(h.sE),b=m.yb(k.container);if(this.cd=b&&k.id&&m.lz(b,k.id)||null)this.o.H(h.Object3D).Bc=this.cd,this.o.R.$a()}};e.prototype.update=function(){this.cd&&(this.o.ma(h.Object3D),this.cd=null)};e.prototype.dispose=function(){this.cd&&(this.o.ma(h.Object3D),this.cd=null)};e.Ob=function(k){k.H(h.rt).manager=new e(k)};e.eb=function(k){var b= k.getComponent(h.rt);b.manager.dispose();b.manager=null;k.ma(h.rt)};e.frame=function(k){k.getComponent(h.rt).manager.frame()};e.update=function(k){k.getComponent(h.rt).manager.update()};return e}); define("hb",["require","lo","ly","fA","ch"],function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("ch");a=e.extend(h,function(){h.apply(this,arguments)});a.prototype.yd=function(){this.Nxa.C.length&&this.Nxa.C.slice().forEach(k.Ob);this.zZ.Ua.length&&this.zZ.Ua.slice().forEach(k.update);this.zZ.C.length&&this.zZ.C.slice().forEach(k.frame);this.Oxa.C.length&&this.Oxa.C.slice().forEach(k.eb)};a.K={};a.K.Nxa=[m.sE,m.rt.not];a.K.zZ=[m.sE,m.rt];a.K.Oxa=[m.sE.not,m.rt];return a}); define("nO",["require","fA","nE"],function(a){function e(k){this.o=k;this.qB=new THREE.PlaneGeometry;this.zma=this.o.H(h.Object3D).Bc=new THREE.Mesh(this.qB);this.update()}var h=a("fA"),m=a("nE");e.prototype.update=function(){var k=this.o.getComponent(h.Material).material;k&&m.dz(this.zma,k);this.zma.renderOrder=this.o.getComponent(h.Plane).renderOrder};e.prototype.dispose=function(){this.qB.dispose();this.qB=null};e.Ob=function(k){k.H(h.ut).manager=new e(k)};e.eb=function(k){var b=k.getComponent(h.ut); b.manager.dispose();b.manager=null;k.ma(h.ut);k.ma(h.Object3D)};e.update=function(k){k.getComponent(h.ut).manager.update()};return e}); define("gW",["require","lo","ly","fA","nO"],function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("nO");a=e.extend(h,function(){h.apply(this,arguments)});a.prototype.yd=function(){this.MP.C.length&&this.MP.C.slice().forEach(k.Ob);this.planes.Ua.length&&this.planes.Ua.slice().forEach(k.update);this.Hya.C.length&&this.Hya.C.slice().forEach(k.eb);this.Iya.C.length&&this.Iya.C.slice().forEach(k.eb)};a.K={};a.K.MP=[m.Material,m.Plane,m.ut.not];a.K.planes=[m.Plane,m.Material,m.ut];a.K.Hya=[m.Plane.not,m.ut]; a.K.Iya=[m.Material.not,m.ut];return a}); define("hK",["require","fA","cm"],function(a){var e=a("fA"),h=a("cm");return{Ob:function(m){var k=m.getComponent(e.kb),b=h.yb(k.Y);if(b){var g=m.H(e.cr);g.parent=b;k.id&&(b=b&&h.lz(b,k.id));g.id=k.id;g.xd=h.yb(m);g.attach=k.attach;b&&g.xd&&(g.attach?b.attach(g.xd):b.add(g.xd))}},update:function(m){var k=m.getComponent(e.kb),b=m.getComponent(e.cr),g=h.yb(k.Y),d=h.yb(m);if(b.parent!=g||b.xd!=d||k.id!=b.id||k.attach!=b.attach||d&&g&&!d.parent)b=m.J(e.cr),b.xd&&b.xd.parent&&(k.Y.J(e.Object3D),b.xd.parent.remove(b.xd)), b.parent=g,k.id&&(g=g&&h.lz(g,k.id)),b.id=k.id,b.xd=d,b.attach=k.attach,g&&b.xd&&(b.attach?g.attach(b.xd):g.add(b.xd),(k=m.getComponent(e.ya))&&h.gQ(m,k))},eb:function(m){var k=m.getComponent(e.cr);k.xd&&k.xd.parent&&k.xd.parent.remove(k.xd);k.parent=null;k.xd=null;k.id=void 0;m.ma(e.cr)}}}); define("mG",["require","lo","ly","fA","hK"],function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("hK");a=e.extend(h,function(){h.apply(this,arguments)});a.prototype.yd=function(){this.FP.C.length&&this.FP.C.slice().forEach(k.Ob);this.Jq.C.length&&this.Jq.C.slice().forEach(k.update);this.Jq.Ua.length&&this.Jq.Ua.slice().forEach(k.update);this.Jq.de.length&&this.Jq.de.slice().forEach(k.update);this.Gua.C.length&&this.Gua.C.slice().forEach(k.eb);this.Hua.C.length&&this.Hua.C.slice().forEach(k.eb)};a.K= {};a.K.FP=[m.Object3D,m.kb,m.cr.not];a.K.Jq=[m.Object3D,m.kb,m.cr];a.K.Gua=[m.Object3D.not,m.kb,m.cr];a.K.Hua=[m.kb.not,m.cr];return a}); define("df",["require","lo","ly","fA","cm"],function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("cm");a=e.extend(h,function(){h.apply(this,arguments);this.se=this.se.bind(this);this.Uc=this.Uc.bind(this);this.kD=this.kD.bind(this)});a.prototype.yd=function(){this.Dya.C.length&&this.Dya.C.slice().forEach(this.se);this.Cya.C.length&&this.Cya.C.slice().forEach(this.kD);this.Eya.C.length&&this.Eya.C.slice().forEach(this.Uc);this.Fya.C.length&&this.Fya.C.slice().forEach(this.Uc)};a.prototype.se=function(d){d.H(m.pA)}; a.prototype.Uc=function(d){d.ma(m.pA)};var b=new THREE.Matrix4,g=new THREE.Vector3;a.prototype.kD=function(d){var c=d.getComponent(m.ij),f=d.getComponent(m.ya);if(f){var l=d.getComponent(m.Object3D).Bc;if(l&&l.parent){var p=d.getComponent(m.Lf),q=1E-7;p&&(q=k.iI(d)||q);b.copy(l.parent.matrixWorld).invert();g.setFromMatrixScale(b);l=Math.max(g.x,g.y,g.z);p&&p.Gv&&(q/=l,l=1);p=c.scale*l;void 0!==c.vz&&(p=Math.min(c.vz*q,p));void 0!==c.wz&&(p=Math.max(c.wz*q,p));if(f.scale!=p||f.Gf!=c.Gf||f.Tf!=c.Tf|| f.nh!=c.nh)f=d.J(m.ya),f.scale=p,f.Gf=c.Gf,f.Tf=c.Tf,f.nh=c.nh}}};a.K={};a.K.Dya=[m.Object3D,m.ij,m.pA.not];a.K.Cya=[m.Object3D,m.ij,m.pA];a.K.Eya=[m.Object3D.not,m.pA];a.K.Fya=[m.ij.not,m.pA];return a}); define("dO",["require","oH","fA","cm"],function(a){function e(u){this.o=u;this.NL=new THREE.Vector3;this.Za=new THREE.Vector3;this.d6=this.$c=this.K$=!1;this.Epa=[];this.update()}var h=a("oH"),m=a("fA"),k=a("cm");e.prototype.update=function(){this.Z7=this.o.getComponent(m.Wj).Y};e.prototype.frame=function(){this.mta();this.Ev()};e.prototype.mta=function(){var u=t.filter(function(w){return w.R==this.o.R}.bind(this)),v=this.Epa;v.filter(function(w){return-1==u.indexOf(w)}).forEach(this.hOa.bind(this)); u.filter(function(w){return-1==v.indexOf(w)}).forEach(this.NDa.bind(this));this.Epa=u};e.prototype.NDa=function(u){(u=u.getComponent(m.ef))&&u.Ea.bind(h.jc,this.kf,this,!0);u&&u.Ea.bind(h.ac,this.Om,this,!0)};e.prototype.hOa=function(u){(u=u.getComponent(m.ef))&&u.Ea.unbind(h.jc,this.kf,this);u&&u.Ea.unbind(h.ac,this.Om,this)};e.prototype.kf=function(u){if(this.Z7&&k.lz(k.yb(this.Z7),u.data.objectId)&&"mesh"==u.data.type){var v=this.$c;this.$c=!0;var w=k.yb(this.o);if((w=w&&w.parent)&&w.matrixWorld){var x= this.o.getComponent(m.Wj);x&&(g.setFromMatrixPosition(w.matrixWorld),d.copy(w.matrixWorld).invert(),c.fromArray(u.data.objectMatrixWorld),b.setFromMatrixPosition(c),f.copy(c).invert(),x.rotate?u.data.normal?this.NL.copy(u.data.normal).applyMatrix4(c).sub(b).add(g):this.NL.copy(u.data.cameraPosition):this.NL.copy(q),this.NL.applyMatrix4(d).normalize(),this.Za.copy(u.data.position).applyMatrix4(d),this.K$=!0,this.o.R.$a(),v||(u=(x=this.o.getComponent(m.Wj))&&x.Ea)&&u.trigger(h.Wc))}}else this.Om()}; var b=new THREE.Vector3,g=new THREE.Vector3,d=new THREE.Matrix4,c=new THREE.Matrix4,f=new THREE.Matrix4;e.prototype.Om=function(){if(this.$c){this.$c=!1;this.o.R.$a();var u=this.o.getComponent(m.Wj);(u=u&&u.Ea)&&u.trigger(h.ac)}};e.prototype.Ev=function(){if(this.K$||this.$c){this.K$=!1;var u=this.o.J(m.ya,!0);u.positionX=0;u.positionY=0;u.positionZ=0;l.setFromUnitVectors(p,this.NL);n.setFromQuaternion(l,u.bg);u.Se=n.x*r;u.re=n.y*r;u.Te=n.z*r;u.translationX=this.Za.x;u.translationY=this.Za.y;u.cf= this.Za.z;u.easing=this.d6?.4:0;this.d6||(k.gQ(this.o,u),this.d6=!0)}};var l=new THREE.Quaternion,p=new THREE.Vector3(0,0,1),q=new THREE.Vector3(0,1,0),n=new THREE.Euler,r=180/Math.PI;e.prototype.dispose=function(){this.Z7=null;this.mta()};e.CZa=function(u){t=u};var t=[];e.Ob=function(u){u.H(m.er).manager=new e(u)};e.eb=function(u){var v=u.getComponent(m.er);v.manager.dispose();v.manager=null;u.ma(m.er)};e.frame=function(u){u.getComponent(m.er).manager.frame()};e.update=function(u){u.getComponent(m.er).manager.update()}; return e}); define("is",["require","lo","ly","fA","dO"],function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("dO");a=e.extend(h,function(){h.apply(this,arguments)});a.prototype.yd=function(){k.CZa(this.Mq.C);this.Jya.C.length&&this.Jya.C.slice().forEach(k.Ob);this.QZ.Ua.length&&this.QZ.C.slice().forEach(k.update);this.QZ.C.length&&this.QZ.C.slice().forEach(k.frame);this.Kya.C.length&&this.Kya.C.slice().forEach(k.eb);this.Lya.C.length&&this.Lya.C.slice().forEach(k.eb)};a.K={};a.K.Mq=[m.ef];a.K.Jya=[m.Object3D,m.Wj, m.er.not];a.K.QZ=[m.Object3D,m.Wj,m.er];a.K.Kya=[m.Object3D.not,m.er];a.K.Lya=[m.Wj.not,m.er];return a}); define("me","require lo ly fA Z cm".split(" "),function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("Z"),b=a("cm");a=e.extend(h,function(){h.apply(this,arguments);this.se=this.se.bind(this);this.Uc=this.Uc.bind(this);this.Fe=this.Fe.bind(this)});a.prototype.yd=function(){this.Qya.C.length&&this.Qya.C.slice().forEach(this.se);this.Pya.Ua.length&&this.Pya.Ua.slice().forEach(this.Fe);this.Rya.C.length&&this.Rya.C.slice().forEach(this.Uc);this.Sya.C.length&&this.Sya.C.slice().forEach(this.Uc)};a.prototype.se= function(d){var c=d.getComponent(m.fr),f=(c=c&&c.RI)&&b.yb(c),l=b.Mj(c);if(f&&l){var p=d.H(m.xt);p.RI=c;p.wI=new k.em;p.material=this.Zt(p.wI);p.Bc=this.PFa(f,p.material);p.QI=this.TGa(p.material);p.encoding=b.iP(l);this.ODa(c,p.QI);d.H(m.Object3D).Bc=p.Bc;this.Fe(d)}};a.prototype.Zt=function(d){d=k.create(d);d.polygonOffset=!0;d.polygonOffsetUnits=1;d.polygonOffsetFactor=-10;d.needsUpdate=!0;return d};a.prototype.PFa=function(d,c){var f=new Map;d.traverse(function(r){if(r.material&&r.userData){var t= {};r.material&&(t.material=r.material,r.material=c);r.userData&&(t.userData=r.userData,r.userData={});f.set(r,t)}}.bind(this));var l=d.clone();f.forEach(function(r,t){r.material&&(t.material=r.material);r.userData&&(t.userData=r.userData)});for(d=[[d,l]];d.length;){var p=d.shift(),q=p[0];p=p[1];q.ge&&(p.ge=q.ge);for(var n=0;n=f.position||f.mw&&1<=f.position?!1:!0;k.update(d.material,f)};var g=new THREE.MeshBasicMaterial;a.prototype.Uc=function(d){var c=d.getComponent(m.xt);b.yb(c.RI).visible=!0;c.Bc&&c.Bc.traverse(function(f){f.material==c.material&&(f.material=g)});c.QI&&(b.Yya(c.QI.parent,c.QI),c.QI=null);c.material&&(c.wI.Bi.dispose(),c.wI.Ci.dispose(),c.wI=null,c.material.dispose(),c.material=null);d.ma(m.xt);d.ma(m.Object3D)}; a.K={};a.K.Qya=[m.fr,m.xt.not];a.K.Pya=[m.fr,m.Object3D,m.xt];a.K.Rya=[m.fr.not,m.xt];a.K.Sya=[m.Object3D.not,m.xt];return a});define("gc",["require","ht"],function(a){return a("ht")}); define("eM",["require","fA","oj","bF"],function(a){function e(b){this.o=b;this.enabled=!1;this.wm=null;this.lu=0;this.passes=[];this.xi=this.yi=!1;this.Ue=null;this.ua=this.ia=100}var h=a("fA"),m=a("oj"),k=a("bF");e.prototype.dispose=function(){this.Ue&&(this.Ue.saoRenderTarget.dispose(),this.Ue.blurIntermediateRenderTarget.dispose(),this.Ue.beautyRenderTarget.dispose(),this.Ue.normalRenderTarget.dispose(),this.Ue.depthRenderTarget.dispose(),this.Ue.depthMaterial.dispose(),this.Ue.normalMaterial.dispose(), this.Ue.saoMaterial.dispose(),this.Ue.vBlurMaterial.dispose(),this.Ue.hBlurMaterial.dispose(),this.Ue.materialCopy.dispose(),this.Ue.depthCopy.dispose(),this.Ue=null)};e.prototype.update=function(b,g,d,c,f){var l=this.o.getComponent(h.cE),p=!!l;if(this.yi=this.enabled!=p)(this.enabled=p)?(!this.Ue&&b&&g&&(this.Ue=new THREE.SAOPass(b,g,!1,!0)),this.wm=new m("linear",[new k("alpha",0,1,void 0)],l.$ua),this.lu=0,this.passes=[this.Ue],this.xi=!0):(this.passes=[],this.xi=!1);this.enabled&&(this.wm&&(this.wm.zb(f), this.lu=this.wm.cb("alpha"),1==this.lu&&(this.wm=null),this.o.R.$a()),null!==l.output&&(this.Ue.params.output=l.output),this.Ue.params.saoBias=l.bias/l.scale,this.Ue.params.saoIntensity=this.lu*l.intensity,this.Ue.params.saoScale=l.scale,this.Ue.params.saoKernelRadius=l.Zwa,this.Ue.params.saoMinResolution=l.xxa/1E3,this.Ue.params.saoBlur=0 0.0)\n {\n vec3 rgb = (color * opacity + texel.rgb * texel.a * (1.0 - opacity)) / composedAlpha;\n gl_FragColor = vec4(rgb, composedAlpha);\n }\n else\n {\n gl_FragColor = texel;\n }\n}"}; return e}); define("fW",["require","fA"],function(a){function e(m){this.o=m;this.enabled=!1;this.wm=null;this.lu=0;this.passes=[];this.xi=this.yi=!1;this.Ui=null;this.G8=new THREE.Matrix4;this.I8=new THREE.Matrix4;this.F8=new THREE.Vector3}var h=a("fA");e.prototype.dispose=function(){this.Ui&&(this.Ui.dispose(),this.Ui=null)};e.prototype.update=function(m,k){var b=this.o.getComponent(h.jJ),g=!!b;if(this.yi=this.enabled!=g)(this.enabled=g)?(!this.Ui&&m&&k&&(this.Ui=new THREE.MotionBlurPass,this.Ui.needsSwap=!0, this.G8.copy(k.matrixWorldInverse),this.I8.copy(k.projectionMatrix),this.F8.copy(k.position)),this.passes=[this.Ui],this.xi=!0):(this.passes=[],this.xi=!1);this.enabled&&(this.Ui.uniforms.inverseProjectionMatrix.value.copy(k.projectionMatrix).invert(),this.Ui.uniforms.near.value=k.near,this.Ui.uniforms.far.value=k.far,this.Ui.uniforms.depthLimit.value=.99,this.Ui.uniforms.clipToWorldMatrix.value.copy(k.matrixWorld).multiply(this.Ui.uniforms.inverseProjectionMatrix.value),this.Ui.uniforms.previousWorldToClipMatrix.value.copy(this.I8).multiply(this.G8), this.Ui.uniforms.cameraMove.value.copy(k.position).sub(this.F8),this.Ui.uniforms.velocityFactor.value=b.intensity,this.Ui.uniforms.samples.value=b.hza);this.G8.copy(k.matrixWorldInverse);this.I8.copy(k.projectionMatrix);this.F8.copy(k.position)};return e}); define("eF",["require","nz","fA"],function(a){function e(m){this.o=m;this.enabled=!0;this.passes=[];this.Zca=this.xi=this.yi=!1;this.MW=void 0;this.Ah=this.jg=this.Ek=null}a("nz");var h=a("fA");e.prototype.dispose=function(){this.Ek&&(this.Ek.dispose(),this.Ek=null);this.jg&&(this.jg=null);this.Ah&&(this.Ah.material.dispose(),this.Ah=null)};e.prototype.update=function(m,k,b,g,d,c){d=this.o.getComponent(h.Mz);c=!!d&&d.lAa&&c;if(this.yi=this.MW!==c)(this.MW=c)?(this.Ek||(this.Ek=new THREE.SSAARenderPass(m, k),this.Ek.sampleLevel=d.uQ,this.Ek.needsSwap=!0,this.Ek.clear=!0,this.Ek.clearColor=65793,this.Ek.clearAlpha=0),this.Ah||(this.Ah=new THREE.ShaderPass(THREE.CopyShader),this.Ah.needsSwap=!0),this.passes=[this.Ek,this.Ah],this.Zca=this.xi=!0):(this.jg||(this.jg=new THREE.RenderPass,this.jg.clear=!0,this.jg.clearColor=65793,this.jg.clearAlpha=0),this.passes=[this.jg],this.Zca=this.xi=!1);this.MW?(this.Ek.scene=m,this.Ek.camera=k,this.Ek.sampleLevel=d.uQ,this.Ah.uniforms.opacity.value=Math.pow(2,Math.round(5< d.uQ?5:d.uQ)),this.Ek.setSize(b,g)):(this.jg.scene=m,this.jg.camera=k,this.jg.setSize(b,g))};return e}); define("nr",["require","nz","fA"],function(a){function e(b){this.o=b;this.enabled=!1;this.passes=[];this.xi=this.yi=!1;this.zq=null;this.wc=void 0}var h=a("nz"),m=a("fA");e.prototype.dispose=function(){this.zq&&(this.zq.material.dispose(),this.zq=null)};e.prototype.update=function(){var b=this.o.getComponent(m.xE),g=!!b;if(this.yi=this.enabled!=g)(this.enabled=g)?(this.zq||(this.zq=new THREE.ShaderPass(k),this.zq.needsSwap=!0),this.passes=[this.zq],this.xi=!0):(this.passes=[],this.xi=!1);this.enabled&& (this.zq.uniforms.innerRadius.value=b.Iwa,this.zq.uniforms.outerRadius.value=b.yya,this.zq.uniforms.opacity.value=b.opacity,this.wc!==b.color&&(this.wc=b.color,this.zq.uniforms.color.value=new THREE.Color(h.YD(this.wc))))};var k={uniforms:{tDiffuse:{value:null},innerRadius:{value:.5},outerRadius:{value:.5},opacity:{value:.5},color:{value:new THREE.Color(0)}},vertexShader:"varying vec2 vUv;\nvoid main() {\n vUv = uv;\n gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}", fragmentShader:"uniform float innerRadius;\nuniform float outerRadius;\nuniform float opacity;\nuniform vec3 color;\nuniform sampler2D tDiffuse;\nvarying vec2 vUv;\nvoid main() {\n vec4 texel = texture2D(tDiffuse, vUv);\n vec2 uv = vUv - vec2(0.5, 0.5);\n float radius = sqrt(dot(uv, uv)) * 1.4142135623730951;\n float coef = clamp((radius - innerRadius) / (outerRadius - innerRadius), 0.0, 1.0);\n float alpha = opacity * coef;\n float composedAlpha = alpha + texel.a * (1.0 - alpha);\n if (composedAlpha > 0.0)\n {\n vec3 rgb = (color * alpha + texel.rgb * texel.a * (1.0 - alpha)) / composedAlpha;\n gl_FragColor = vec4(rgb, composedAlpha);\n }\n else\n {\n gl_FragColor = texel;\n }\n}"}; return e}); define("gN","require eM r ow fW eF nr cm".split(" "),function(a){function e(f){this.pd=f;this.Fa=this.Ca=this.Nf=null;this.ua=this.ia=void 0;this.Ah=this.Br=this.j=this.JG=null;this.GS=[new g(f),new h(f),new b(f),new d(f),new m(f),new k(f)];this.wU=!1}var h=a("eM"),m=a("r"),k=a("ow"),b=a("fW"),g=a("eF"),d=a("nr"),c=a("cm");e.prototype.dispose=function(){this.j&&(this.j.domElement.style.backgroundColor=void 0);for(;this.GS.length;)this.GS.pop().dispose();this.xja();this.Br&&(this.Br.material.dispose(),this.Br= null);this.Ah&&(this.Ah.material.dispose(),this.Ah=null)};e.prototype.setSize=function(f,l){if(this.ia!=f||this.ua!=l)this.ia=f,this.ua=l,this.Nf&&this.Nf.setSize(this.ia,this.ua),this.j&&this.j.setSize(this.ia,this.ua)};e.prototype.KI=function(f){this.Fa=f};e.prototype.setCamera=function(f){this.Ca=f};e.prototype.setRenderTarget=function(f){this.JG!=f&&(this.JG=f,this.Nf&&(this.Nf.reset(f||void 0),this.Nf.renderToScreen=!f))};e.prototype.GZa=function(f){this.j!=f&&(this.j=f,this.j.setSize(this.ia, this.ua),this.xja())};e.prototype.render=function(f){this.bQa();this.gSa(f);this.j.domElement.style.backgroundColor=this.wU?"#000000":void 0;this.Nf.render()};e.prototype.bQa=function(){this.Nf||(this.Nf=new THREE.EffectComposer(this.j,this.JG||void 0),this.Nf.renderToScreen=!this.JG,this.Nf.setSize(this.ia,this.ua))};e.prototype.gSa=function(f){var l=!1,p=!1;this.wU=!1;this.GS.forEach(function(n){n.update(this.Fa,this.Ca,this.ia,this.ua,f,this.Nf.renderToScreen);l||(l=n.yi);p||(p=n.xi);this.wU|| (this.wU=n.Zca)}.bind(this));p=p&&this.j.outputEncoding==THREE.sRGBEncoding&&this.Nf.renderToScreen;c.LZa(this.Fa,p);p&&!this.Br?(this.Br=new THREE.ShaderPass(THREE.GammaCorrectionShader),l=this.Br.needsSwap=!0):this.Br&&(this.Br.enabled=p);this.Nf.renderToScreen||this.Ah?this.Ah&&(this.Ah.enabled=!this.Nf.renderToScreen):(this.Ah=new THREE.ShaderPass(THREE.CopyShader),l=this.Ah.needsSwap=!0);if(l){var q=[];this.GS.forEach(function(n){q=q.concat(n.passes)});this.Br&&q.push(this.Br);for(this.Ah&&q.push(this.Ah);0< this.Nf.passes.length;)this.Nf.removePass(this.Nf.passes[this.Nf.passes.length-1]);q.forEach(function(n){this.Nf.addPass(n)}.bind(this))}};e.prototype.xja=function(){this.Nf&&(this.Nf.renderTarget1!=this.JG&&this.Nf.renderTarget1.dispose(),this.Nf.renderTarget2!=this.JG&&this.Nf.renderTarget2.dispose(),this.Nf=null)};return e}); define("dc","require oH v fA cm gN".split(" "),function(a){function e(d){this.bw=d;this.opacity=0;this.height=this.width=void 0;this.renderTarget=null;this.Fa=void 0;this.Gqa=!1;this.Fqa=!0;this.Ca=void 0;this.wC=!1;this.eV=void 0;this.sc=new g(d);this.update()}var h=a("oH"),m=a("v"),k=a("fA"),b=a("cm"),g=a("gN");e.prototype.update=function(){var d=this.bw.getComponent(k.Scene);this.opacity=d&&d.opacity||0;this.Gqa=d?d.locked:!1;this.Fqa=d?d.enabled:!0;var c=d&&d.scene;this.Fa!=c&&(this.Fa=c,this.wC= !0,this.sc.KI(this.Fa));var f=(c=(c=d&&d.ke)&&(c.getComponent(k.OrthographicCamera)||c.getComponent(k.PerspectiveCamera)))&&c.width,l=c&&c.height;if(this.width!=f||this.height!=l)this.width=f,this.height=l,this.wC=!0,this.sc.setSize(this.width,this.height);d=d&&"srgb"==d.outputEncoding?THREE.sRGBEncoding:THREE.LinearEncoding;this.eV!=d&&(this.eV=d,this.wC=!0,b.KZa(this.Fa,d));d=c&&c.camera;this.Ca!=d&&(this.Ca=d,this.wC=!0,this.sc.setCamera(this.Ca));this.Fa&&(b.JZa(this.Fa,this.Ca),b.MZa(this.Fa, this.width,this.height));return this};e.prototype.render=function(d,c,f){(c||this.wC||!this.Gqa)&&this.Fqa&&(window.stats&&window.stats.begin(),c?(d.setRenderTarget(null),this.wC=!0):(this.renderTarget||(this.renderTarget=new THREE.WebGLRenderTarget(window.innerWidth,window.innerHeight,{minFilter:THREE.LinearFilter,magFilter:THREE.LinearFilter,format:THREE.RGBAFormat,type:THREE.HalfFloatType,samples:d.capabilities.isWebGL2?m.jb()?2:8:0}),this.renderTarget.depthTexture=new THREE.DepthTexture),d.setRenderTarget(this.renderTarget), this.renderTarget.texture.encoding=this.eV,this.wC=!1),d.outputEncoding=this.eV,this.sc.setRenderTarget(c?null:this.renderTarget),this.sc.GZa(d),this.sc.render(f),(d=this.bw.getComponent(k.Scene))&&d.Ea&&d.Ea.trigger(h.gA),window.stats&&window.stats.end())};e.prototype.isVisible=function(){return this.Fa&&this.Ca&&0f.indexOf(q)}).forEach(function(q){q.dispose()});this.hv=f;var l=this.hv.filter(function(q){return q.isVisible()});if(0\n}"});d.transparent=!0;return d};e.Ob=function(d){d.H(m.hr).manager= new e(d)};e.eb=function(d){var c=d.getComponent(m.hr);c.manager.dispose();c.manager=null;d.ma(m.hr)};e.update=function(d){d.getComponent(m.hr).manager.update()};e.frame=function(d,c,f){d.getComponent(m.hr).manager.frame(c,f)};return e}); define("lu",["require","lo","ly","fA","fG"],function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("fG");a=e.extend(h,function(){h.apply(this,arguments)});a.prototype.yd=function(b,g){this.dza.C.length&&this.dza.C.slice().forEach(k.Ob);this.XZ.C.length&&this.XZ.C.slice().forEach(function(d){k.frame(d,b,g)});this.eza.C.length&&this.eza.C.slice().forEach(k.eb)};a.K={};a.K.dza=[m.th,m.hr.not];a.K.eza=[m.th.not,m.hr];a.K.XZ=[m.th,m.hr];return a}); define("jO","require lo oH gi dk cm hT ll".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("gi"),k=a("dk"),b=a("cm"),g=a("hT"),d=a("ll");a=e.extend(m,function(f,l){m.call(this);this.Fd=f;this.Fa=l;this.wa=new k;this.wa.MI([this.Fd]);this.wa.bind(h.Z,this.nd,this,!1);this.wa.bind(h.tc,this.Pf,this,!1);this.Lc=null;this.wb=0;d.ln(this.wa,g.lA)});a.prototype.fj=function(f){this.wb!==f&&(this.wb=f,this.Lc&&(this.Lc.material.opacity=this.wb,this.Lc.material.visible=0f.indexOf(n)?(q.cancel(),l.push(q)):p.push(n)});f.forEach(function(q){0>p.indexOf(q)&&l.shift().load(q)})};e.prototype.naa=function(){var f=0;this.ye.Jua(); this.md.forEach(function(l){l.wi()&&!l.dj()&&(this.ye.FH(l),f++)}.bind(this));0==f&&this.Lg&&this.Lg.trigger(h.Z)};e.prototype.dispose=function(){this.md.forEach(function(f){f.cancel();f.unbind(h.Z,this.nd,this,!0);f.unbind(h.tc,this.Pf,this,!0)}.bind(this));this.o&&(this.V3(),this.xx(),this.o=null)};e.prototype.nd=function(){this.ea();this.naa()};e.prototype.ea=function(){if(this.Fa&&this.j){if(this.iB){var f=this.$ka(this.iB);f&&this.fEa(f)}else this.V3();this.Lt?this.xx():this.HA?(f=this.$ka(this.HA))&& this.Lha(f):this.Uw?this.Lha(void 0,this.Uw):this.xx();this.Ata();this.o.R.$a()}};e.prototype.$ka=function(f){for(var l=0;lMath.round(f.rd()/f.ee())?this.tGa(f,l):this.oGa(f,l)};e.prototype.tGa=function(f,l){var p=new THREE.Texture;p.image=f.sf();p.encoding=d.iP(this.Fa);p.mapping=THREE.EquirectangularReflectionMapping;p.needsUpdate=!0;return l?(f=new THREE.PMREMGenerator(this.j), p=f.fromEquirectangular(p).texture,f.dispose(),p):p};e.prototype.Lha=function(f,l){if(this.Fa){if(f){var p=f&&f.wi()||void 0;if(p==this.SG)return;this.xx();d.i_(this.Fa,this.rp(f,!1));this.SG=p;this.QG=void 0}l&&l!=this.QG&&(this.xx(),d.i_(this.Fa,"transparent"==l?null:new THREE.Color(k.YD(l))),this.QG=l,this.SG=void 0)}};e.prototype.xx=function(){this.Fa&&(this.QG||this.SG)&&(this.SG&&(this.Fa.background.dispose(),d.i_(this.Fa,null),this.SG=void 0),this.QG&&(d.i_(this.Fa,null),this.QG=void 0))}; e.prototype.fEa=function(f){if(this.Fa){var l=f&&f.wi()||void 0;l!=this.iW&&(this.V3(),this.Fa.environment=this.rp(f,!0),this.iW=l)}};e.prototype.V3=function(){this.Fa&&this.iW&&(this.Fa.environment.dispose(),this.Fa.environment=null,this.iW=void 0)};e.prototype.oGa=function(f,l){for(var p=Array(6),q=f.rd()/6,n=f.ee(),r=0;6>r;r++){var t=document.createElement("canvas");t.width=q;t.height=n;t.getContext("2d").drawImage(f.sf(),r*q,0,q,n,0,0,q,n);p[r]=t}f=new THREE.CubeTexture;f.images=[p[1],p[3],p[4], p[5],p[0],p[2]];f.encoding=d.iP(this.Fa);f.needsUpdate=!0;return l?(l=new THREE.PMREMGenerator(this.j),p=l.fromCubemap(f).texture,l.dispose(),p):f};e.prototype.Pf=function(){this.o.getComponent(g.Scene).scene.environment=null;this.o.R.$a()};e.nqa=new Map;e.dea=function(f,l){e.nqa.set(f,l||[])};e.CVa=function(f,l){f=e.nqa.get(f)||[];for(var p=0;pd?d=f==THREE.RepeatWrapping?c+d%c:f==THREE.MirroredRepeatWrapping?0== Math.floor(Math.abs(d/c))%2?Math.abs(d%c):c-1+d%c:0:d>=c&&(d=f==THREE.RepeatWrapping?d%c:f==THREE.MirroredRepeatWrapping?1==Math.floor(d/c)%2?c-1-d%c:d%c:c-1);return d}function m(d,c,f){try{if(d instanceof CanvasRenderingContext2D)return d.getImageData(c,f,1,1).data;if(d.tagName&&"CANVAS"==d.tagName)return d.$Ka?[0,0,0,0]:d.getContext("2d").getImageData(c,f,1,1).data;b.drawImage(d,c,f,1,1,0,0,1,1);return b.getImageData(0,0,1,1).data}catch(l){return[0,0,0,0]}}var k=a("v");e.prototype.transparent=function(d, c){return e.transparent(this.xa,Math.round(d*this.Cc),Math.round(c*this.Cc))};e.prototype.kw=function(d,c){return e.kw(this.xa,Math.round(d*this.Cc),Math.round(c*this.Cc))};e.prototype.info=function(d,c){return e.info(this.xa,Math.round(d*this.Cc),Math.round(c*this.Cc))};e.prototype.dispose=function(){this.O!=this.xg&&(this.O.width=this.O.height=0);this.xg=this.O=this.xa=null};e.N_a=function(d,c,f){if(!d.image||!d.image.width||!d.image.height)return!0;c=h(Math.round(c*d.image.width),d.image.width, d.wrapS);f=h(Math.round((1-f)*d.image.height),d.image.height,d.wrapT);return!e.transparent(d.image,c,f)};e.transparent=function(d,c,f){return!e.kw(d,c,f)};e.kw=function(d,c,f){return!d.tagName||d.tagName&&"VIDEO"==d.tagName?!0:0 c;c++)d[c]="0"+c.toString(16);for(;256>c;c++)d[c]=c.toString(16);return d}();return e}); define("ok","require oH eA fA cm gR bc".split(" "),function(a){function e(z){this.pi=z;this.TG=this.mu=this.je=this.Hg=null;this.ML=void 0;this.su=!1;this.update()}function h(z,C,H,D){this.Y=z;this.Bc=C;this.point=H;this.normal=D}function m(z){return{x:z.x,y:z.y,z:z.z}}function k(z,C,H,D){var I=C.R,F=z.get(I);F||z.set(I,F=[]);z=F.indexOf(C);H&&0>z?F.push(C):!H&&0<=z&&F.splice(z,1);D.delete(I)}var b=a("oH"),g=a("eA"),d=a("fA"),c=a("cm"),f=a("gR"),l=a("bc");e.prototype.update=function(){var z=this.pi.getComponent(d.ef); z.Bya=this;this.nN(z&&z.enabled?z.Pba:null);this.mN(z&&z.enabled?z.Fba:null)};e.prototype.frame=function(){this.GFa();this.jv(n)};e.prototype.nN=function(z){this.Hg!=z&&(this.Hg&&(this.Hg.unbind(b.jc,this.kf,this,!0),this.Hg.unbind(b.qa,this.Nr,this,!0),this.Hg.unbind(b.hm,this.jG,this,!0),this.Hg.unbind(b.ub,this.mk,this,!0),this.Hg.unbind(b.Zb,this.Xn,this,!0)),this.Hg=z)&&(this.Hg.bind(b.jc,this.kf,this,!0),this.Hg.bind(b.qa,this.Nr,this,!0),this.Hg.bind(b.hm,this.jG,this,!0),this.Hg.bind(b.ub, this.mk,this,!0),this.Hg.bind(b.Zb,this.Xn,this,!0))};e.prototype.mN=function(z){this.je!=z&&(this.je&&this.su&&this.je.pop(l.df),(this.je=z)&&this.su&&this.je.push(l.df))};e.prototype.kf=function(z){this.so(z);this.MF&&-1==u.indexOf(this.pi.R)?this.jv(n):this.jv(q)};e.prototype.Nr=function(z){this.so(z);(z=this.X4())&&this.nX(b.qa,z)};e.prototype.jG=function(z){this.so(z);(z=this.X4())&&this.nX(b.hm,z)};e.prototype.mk=function(z){this.MF=!0;this.so(z);if(z=this.X4())this.w4=z.Y,this.y4=z.Y.getComponent(d.ld).Ea, this.nX(b.ub,z)};e.prototype.Xn=function(z){this.MF=!1;this.so(z);if(this.w4)var C=(C=this.w4.getComponent(d.ld))&&C.Ea;!C&&this.y4&&(C=this.y4);this.y4=this.w4=null;C&&(z=this.vka(),C.trigger(b.Zb,z),C=this.pi.getComponent(d.ef),C.Ea&&C.Ea.trigger(b.Zb,z))};e.prototype.so=function(z){this.Yc=z.x;this.Zc=z.y;this.ZF=z.pageX;this.$F=z.pageY};e.prototype.jv=function(z){var C=(new Date).getTime()+z;this.ML&&C>=this.ML||(this.ML=C,clearTimeout(this.TG),this.TG=setTimeout(function(){this.TG=null;this.ML= void 0;this.IMa()}.bind(this),z))};e.prototype.IMa=function(){var z=this.NJa();this.bra(z&&z.Y);z&&this.nX(b.jc,z)};e.prototype.PZ=function(z,C,H){var D=this.Yc,I=this.Zc,F=this.ZF,N=this.$F;this.$F=this.ZF=this.Zc=this.Yc=void 0;z=this.h5(z,[]);C=this.a5(z,C,H);var S;C&&(S=this.lla(C));this.Yc=D;this.Zc=I;this.ZF=F;this.$F=N;return S};e.prototype.NJa=function(){var z=this.pi.getComponent(d.ef);if(!z)return null;var C=this.MJa();return this.a5(C,z.origin,z.direction)||null};e.prototype.X4=function(){var z= this.pi.getComponent(d.ef);if(!z)return null;var C=this.MIa();return this.a5(C,z.origin,z.direction)||null};e.prototype.bra=function(z){if(this.mu!=z){if(null!=this.mu!=(null!=z)){var C=this.pi.getComponent(d.ef);C&&C.Ea&&C.Ea.trigger(z?b.Wc:b.ac)}this.mu&&this.Hsa(this.mu,b.ac);(this.mu=z)&&this.Hsa(this.mu,b.Wc);z=this.mu&&this.mu.getComponent(d.ld);z=!!z&&z.Qo;this.su!=z&&(this.su=z,this.je&&(this.su?this.je.push(l.df):this.je.pop(l.df)))}};e.prototype.a5=function(z,C,H){var D=Array.from(z.keys()); C=this.NKa(D,C,H);for(H=0;Hu.indexOf(C.R)&&u.push(C.R)})};var v=new Map,w=new Map,x=new Map,y=new Map,A=new Map,B=new Map;return e}); define("nq",["require","lo","ly","fA","ok"],function(a){var e=a("lo"),h=a("ly"),m=a("fA"),k=a("ok");a=e.extend(h,function(){h.apply(this,arguments)});a.prototype.yd=function(){this.NP.C.length&&this.NP.C.slice().forEach(k.oea);this.Mq.Ua.length&&this.Mq.Ua.slice().forEach(k.Nea);this.Mq.C.length&&this.Mq.C.slice().forEach(k.frame);this.OP.C.length&&this.OP.C.slice().forEach(k.Bea);this.qza.C.length&&this.qza.C.slice().forEach(k.c_a);this.pza.C.length&&this.pza.Ua.slice().forEach(k.UAa);this.rza.C.length&& this.rza.C.slice().forEach(k.tAa);this.sza.C.length&&this.sza.C.slice().forEach(k.tAa);this.Hxa.C.length&&this.Hxa.C.slice().forEach(k.a_a);this.Gxa.C.length&&this.Gxa.Ua.slice().forEach(k.RAa);this.Ixa.C.length&&this.Ixa.C.slice().forEach(k.sAa);this.Jxa.C.length&&this.Jxa.C.slice().forEach(k.sAa);(this.kda.de.length||this.kda.pg.length)&&k.DZa(this.kda.C)};a.K={};a.K.kda=[m.Wj];a.K.NP=[m.ef,m.wt.not];a.K.Mq=[m.ef,m.wt];a.K.OP=[m.ef.not,m.wt];a.K.qza=[m.Object3D,m.ld,m.qA.not];a.K.pza=[m.Object3D, m.ld,m.qA];a.K.rza=[m.Object3D.not,m.qA];a.K.sza=[m.ld.not,m.qA];a.K.Hxa=[m.Object3D,m.ep,m.nA.not];a.K.Gxa=[m.Object3D,m.ep,m.nA];a.K.Ixa=[m.Object3D.not,m.nA];a.K.Jxa=[m.ep.not,m.nA];return a}); define("jm",["require","nz","fA"],function(a){function e(k){this.o=k;this.ha=null;this.update()}var h=a("nz"),m=a("fA");e.prototype.update=function(){this.ha||(this.ha=new THREE.MeshBasicMaterial,this.ha.transparent=!0,this.o.H(m.Material).material=this.ha);var k=this.o.getComponent(m.Fc);this.ha.color=new THREE.Color(h.YD(k.color||"#ffffff"));this.ha.opacity=k.opacity||0;this.ha.depthTest=!!k.depthTest;this.ha.side=k.doubleSided?THREE.DoubleSide:THREE.FrontSide;this.ha.visible=0p+180;)l-=360;return h(l,p,q)}function h(l,p,q){if(!q)return p;l=(p-l)*(1-q);1E-5>Math.abs(l)&&(l=0);return p-l}var m=a("lo"),k=a("oH"),b=a("cy"),g=a("ly"),d=a("fA"),c=a("cm");a=m.extend(g,function(){g.apply(this,arguments);this.se=this.se.bind(this);this.Fe=this.Fe.bind(this);this.Uc=this.Uc.bind(this)});a.prototype.yd=function(l,p){this.FP.C.length&&this.FP.C.slice().forEach(this.se);this.Jq.de.length&& this.Jq.de.slice().forEach(function(q){this.Fe(q,l,p)}.bind(this));this.Jq.Ua.length&&this.Jq.Ua.slice().forEach(function(q){this.Fe(q,l,p)}.bind(this));this.Sxa.C.length&&this.Sxa.C.slice().forEach(function(q){this.Fe(q,l,p)}.bind(this));this.cva.C.length&&this.cva.C.slice().forEach(this.Uc);this.dva.C.length&&this.dva.C.slice().forEach(this.Uc)};a.prototype.se=function(l){var p=l.getComponent(d.ya),q=l.H(d.Lf);q.positionX=p.positionX;q.positionY=p.positionY;q.positionZ=p.positionZ;q.Se=p.Se;q.re= p.re;q.Te=p.Te;q.bg=p.bg;q.scale=p.scale;q.Gf=p.Gf;q.Tf=p.Tf;q.nh=p.nh;q.translationX=p.translationX;q.translationY=p.translationY;q.cf=p.cf;this.updateMatrixWorld(l)};a.prototype.Fe=function(l){var p=l.getComponent(d.ya),q=l.getComponent(d.Lf),n=p.easing||0;n?l.getComponent(d.tA)||l.H(d.tA):l.ma(d.tA);var r=null;p.Gv!==q.Gv&&(r||(r=l.J(d.Lf)),r.Gv=p.Gv);p.positionX!==q.positionX&&(r||(r=l.J(d.Lf)),r.positionX=h(r.positionX,p.positionX,n));p.positionY!==q.positionY&&(r||(r=l.J(d.Lf)),r.positionY= h(r.positionY,p.positionY,n));p.positionZ!==q.positionZ&&(r||(r=l.J(d.Lf)),r.positionZ=h(r.positionZ,p.positionZ,n));p.Se!==q.Se&&(r||(r=l.J(d.Lf)),r.Se=e(r.Se,p.Se,n));p.re!==q.re&&(r||(r=l.J(d.Lf)),r.re=e(r.re,p.re,n));p.Te!==q.Te&&(r||(r=l.J(d.Lf)),r.Te=e(r.Te,p.Te,n));p.scale!==q.scale&&(r||(r=l.J(d.Lf)),r.scale=p.scale);p.Gf!==q.Gf&&(r||(r=l.J(d.Lf)),r.Gf=p.Gf);p.Tf!==q.Tf&&(r||(r=l.J(d.Lf)),r.Tf=p.Tf);p.nh!==q.nh&&(r||(r=l.J(d.Lf)),r.nh=p.nh);p.translationX!==q.translationX&&(r||(r=l.J(d.Lf)), r.translationX=h(r.translationX,p.translationX,n));p.translationY!==q.translationY&&(r||(r=l.J(d.Lf)),r.translationY=h(r.translationY,p.translationY,n));p.cf!==q.cf&&(r||(r=l.J(d.Lf)),r.cf=h(r.cf,p.cf,n));r?this.updateMatrixWorld(l):l.ma(d.tA)};var f=new THREE.Vector3;a.prototype.updateMatrixWorld=function(l){c.gQ(l,l.getComponent(d.Lf));var p=l.getComponent(d.ya).Ea;p&&(c.getWorldPosition(l,f),l={position:{}},l.position.x=f.x,l.position.y=f.y,l.position.z=f.z,p.trigger(new b(k.tt,l)))};a.prototype.Uc= function(l){l.ma(d.Lf);l.ma(d.tA)};a.K={};a.K.Jq=[d.Object3D,d.ya,d.Lf];a.K.FP=[d.Object3D,d.ya,d.Lf.not];a.K.Sxa=[d.Object3D,d.ya,d.Lf,d.tA];a.K.cva=[d.Object3D.not,d.ya,d.Lf];a.K.dva=[d.ya.not,d.Lf];return a}); define("gQ",["require"],function(){function a(h,m,k){this.Fd=h;this.rsa=m;this.fB=k||e}var e=function(){var h=document.createElement("canvas");h.width=h.height=256;h.getContext("2d").clearRect(0,0,h.width,h.height);return h}();a.prototype.isEmpty=function(){return this.fB==e};a.prototype.isEqual=function(h,m){return this.Fd==h.Fd&&Math.abs(this.rsa-h.rsa)<(m||0)&&this.fB==h.fB};return a}); define("de",["require","lH","v","ia"],function(a){function e(c){return k.vAa(c)}function h(c,f){if(!f)return!0;var l=c.get("url"),p=c.get("srcObject");c=c.get("type")||"";switch(f){case "srcObj":return!!p;case "webm":return g.is(l,g.XCa)||m(c,"webm");case "h265":return g.is(l,g.OBa)||(g.is(l,g.Vfa)||g.is(l,g.Dfa)||!l)&&(m(c,"hev1")||m(c,"h265")||m(c,"heic"))?!0:!1;case "mp4":return g.is(l,g.Vfa)||m(c,"mp4");case "hls":return g.is(l,g.HLS)||m(c,"x-mpegurl");case "ogv":return g.is(l,g.iCa)||m(c,"ogg"); case "mov":return g.is(l,g.Dfa)||m(c,"quicktime");default:return!1}}function m(c,f){return 0<=(c||"").toLowerCase().indexOf(f)}var k=a("lH"),b=a("v"),g=a("ia"),d={LVa:function(c){return d.select(c.get("levels"))},JVa:function(c){return d.select(c.get("levels"))},select:function(c){c||(c=[]);c=c.slice();var f=[];f.push({type:"srcObj",Oo:!0});k.UVa&&f.push({type:"hls",Oo:!1});k.gWa&&f.push({type:"h265",Oo:!0});k.sca&&f.push({type:"webm",Oo:!0});k.TY&&f.push({type:"mp4",Oo:!0});k.hWa&&f.push({type:"mov", Oo:!0});k.rca&&f.push({type:"ogv",Oo:!0});f.push({type:"mp4",Oo:!0});f.push({type:"webm",Oo:!0});f.push({type:"mp4",Oo:!1});f.push({type:"webm",Oo:!1});for(var l=b.jb()?800:5E3,p=0;p=Math.abs(x-this.VR)};w.prototype.R2=function(){this.RE&&(this.VR=void 0,this.RE=!1,f.browser()!=f.dm&&(this.O.width=0,this.O.height=0,this.O=null))};w.prototype.Lm=function(){this.qb=this.Rb.bj();this.O$()};w.prototype.Ye=function(){this.qb!=this.Rb.bj()&&this.Lm();this.Uf=this.Rb.getCurrentTime(); f.fe()==f.Hi&&0this.qb-.15&&!this.DT()&&!this.ml?this.CS():f.browser()==f.Uk&&0this.qb-.05&&!this.DT()&&this.ml&&this.CS();this.cO()};w.prototype.ki=function(){this.pr=this.Rb.$O().map(function(x){for(var y=null,A=0;Au*n?(v=r,q=t*r/u):(q=n,v=u*n/t);break;default:t*r>u*n?(q=n,v=u*n/t):(v=r,q=t*r/u)}switch(p.Awa){case d.Pa:n=.5*-n;break;case d.hb:n=.5*n-q;break;default:n=.5*-q}switch(p.verticalAlign){case d.uc:r=.5*r-v;break;case d.pc:r=.5*-r;break;default:r=.5*-v}t=p.zIndex- f.YBa;k.set(p.geometry,n,r,0,0,0,q,0,0,1,0,v,0,1,0);l.J(m.ya,!0).positionZ=t;l.R.$a()};f.YBa=100;f.K={};f.K.MP=[m.Mw,m.Bt.not];f.K.planes=[m.Mw,m.Bt,m.Zj];f.K.Gya=[m.Mw.not,m.Bt];return f}); define("iB","require mX o mR hS ha ik kV hI lt mx iM oJ or fM eS hx f kU hb gW mG df is me lu eU nq io kZ ez kp ev oy ft".split(" "),function(a){var e=a("mX"),h=a("o"),m=a("mR"),k=a("hS"),b=a("ha"),g=a("ik"),d=a("kV"),c=a("hI"),f=a("lt"),l=a("mx"),p=a("iM"),q=a("oJ"),n=a("or"),r=a("fM"),t=a("eS"),u=a("hx"),v=a("f"),w=a("kU"),x=a("hb"),y=a("gW"),A=a("mG"),B=a("df"),z=a("is"),C=a("me"),H=a("lu"),D=a("eU"),I=a("nq"),F=a("io"),N=a("kZ"),S=a("ez"),Q=a("kp"),R=a("ev"),W=a("oy");a=a("ft");var G={};G.Animation= e;G.cm=h;G.uw=m;G.Camera=k;G.kBa=b;G.Yh=g;G.yw=d;G.kt=c;G.Group=f;G.gm=l;G.Xg=p;G.Light=q;G.Line=n;G.Zq=r;G.$h=t;G.pt=u;G.Mesh=v;G.sh=w;G.lCa=x;G.kb=A;G.Plane=y;G.ij=B;G.Wj=z;G.fr=C;G.th=H;G.Scene=D;G.Selection=I;G.Fc=F;G.Sphere=N;G.Sprite=S;G.ya=Q;G.Dn=R;G.Zj=W;G.Mw=a;return G}); define("nL",["require","v"],function(a){var e=a("v");return{EAa:function(h,m){m||(m="screenshot.jpg");a:{try{var k=h.toDataURL("image/jpeg");break a}catch(c){}k=void 0}if(!k)return!1;var b=k;h=document.createElement("a");if("string"===typeof h.download)document.body.appendChild(h),h.download=m,h.href=b,h.click(),document.body.removeChild(h);else if(e.browser()==e.tw){h=window.navigator;k=h.msSaveOrOpenBlob;b=atob(b.split(",")[1]);for(var g=[],d=0;dn)&&(this.BC.splice(n,1),n=this.j.J(c.th))&&(n.WP=this.BC.slice())};a.prototype.b_=function(n){this.$y.b_(n)};a.prototype.OZa=function(){if(1!=this.LC){this.LC=!0;var n=this.j.J(c.th);n&&(n.shadowMap=this.LC)}};a.prototype.nc=function(n){this.$y.nc(n)};a.prototype.LD=function(){this.AK.trigger(); this.$y.update();return l.EAa(this.j.getComponent(c.th).canvas)};a.prototype.zba=function(){this.$y.update();return this.j.getComponent(c.th).canvas.toDataURL("image/png")};a.prototype.rk=function(){this.eQa()};a.prototype.lk=function(){this.YQa()};a.prototype.eQa=function(){var n=this.j.getComponent(c.th);if(!n&&(n=this.j.H(c.th),n.WH=document.createElement("div"),this.Bb().YX(n.WH),n.WP=this.BC.slice(),n.antialias=!0,n.shadowMap=this.LC,this.mc.get(p)&&this.nTa)){this.xO=document.createElement("div"); for(var r in q)this.xO.style[r]=q[r];this.Bb().YX(this.xO)}};a.prototype.YQa=function(){var n=this.j.getComponent(c.th);n&&(this.Bb().$ya(n.WH),this.xO&&this.Bb().$ya(this.xO),this.xO=null,this.j.ma(c.th))};var p=e([119,97,116,101,114,109,97,114,107]),q={};q[e([104,101,105,103,104,116])]=e([49,48,48,37]);q[e([119,105,100,116,104])]=e([49,48,48,37]);q[e([112,111,115,105,116,105,111,110])]=e([97,98,115,111,108,117,116,101]);q[e([116,111,112])]=0;q[e([108,101,102,116])]=0;q[e([98,97,99,107,103,114,111, 117,110,100,73,109,97,103,101])]=e([117,114,108,40,34])+b.WCa+e([34,41]);q[e([98,97,99,107,103,114,111,117,110,100,80,111,115,105,116,105,111,110])]=e([99,101,110,116,101,114]);q[e([98,97,99,107,103,114,111,117,110,100,83,105,122,101])]=e([99,111,110,116,97,105,110]);q[e([112,111,105,110,116,101,114,69,118,101,110,116,115])]=e([110,111,110,101]);q[e([98,97,99,107,103,114,111,117,110,100,82,101,112,101,97,116])]=e([110,111,45,114,101,112,101,97,116]);q[e([111,112,97,99,105,116,121])]=.5;return a}); define("eL",["require","ky","oH","nx","fA"],function(a){function e(c,f,l){this.j=c;this.da=f;this.Li=l;this.M=this.j.M;this.Ca=null;this.Xe=this.Xe.bind(this);this.j.bind(m.kc,this.hc,this,!0);this.da.bind(m.G("camera"),this.zU,this,!0);this.M.bind(m.G("isKeyboardTarget"),this.F7,this,!0);this.zU();this.F7();this.hc()}var h=a("ky"),m=a("oH"),k=a("nx"),b=a("fA");e.prototype.nc=function(c){for(var f in d){var l=this.Li.J(d[f]);l&&(l.enabled=c)}};e.prototype.dispose=function(){this.Ca&&(this.S9(!1), h.ba(this.Ca,g,this.Xe),this.Ca=null);this.da.unbind(m.G("camera"),this.zU,this,!0);this.da=null;this.M.unbind(m.G("isKeyboardTarget"),this.F7,this,!0);this.M=null;this.j.unbind(m.kc,this.hc,this,!0);this.Li=this.j=null};e.prototype.zU=function(){var c,f;for(f in d){var l=d[f];this.da.get("camera")&&k.Na(f,this.da.get("camera"))?c=this.Li.J(l,!0):this.Li.ma(l)}c&&(c.Yb=this.da.get("camera"),c.ng=this.j.getParent(),c.lza=this.M.jL,c.uz=this.M.get("isKeyboardTarget"))};e.prototype.F7=function(){var c= this.da.get("camera"),f,l;for(l in d){var p=d[l];c&&k.Na(l,c)&&(f=this.Li.J(p,!0))}f&&(f.uz=this.M.get("isKeyboardTarget"));this.Ca!=c&&(this.Ca&&(this.S9(!1),h.ba(this.Ca,g,this.Xe)),(this.Ca=c)&&h.fa(this.Ca,g,this.Xe,!0))};e.prototype.Xe=function(){var c=this.Li.J(b.PerspectiveCamera,!0);c.pua=this.Ca.get("autoNearFar");c.qua=this.Ca.get("autoNearFarTolerance");c.near=this.Ca.get("near");c.far=this.Ca.get("far");this.S9(this.Ca.get("userInteracting"))};e.prototype.hc=function(){var c=this.Li.J(b.PerspectiveCamera, !0);c.width=this.j.rf();c.height=this.j.qf()};e.prototype.S9=function(c){this.Ph!=c&&(this.Ph=c,this.Ca&&this.Ca.trigger(this.Ph?m.Dga:m.Cga))};var g=["autoNearFar","autoNearFarTolerance","near","far","userInteracting"],d={OrbitModel3DCamera:b.oA,FirstPersonModel3DCamera:b.hA,FlyOverModel3DCamera:b.iA};return e}); define("nI",["require","exports","ky"],function(a,e,h){return function(){function m(){this.GP=this.GP.bind(this);this.TZ=this.object=null;this.elements=[];this.UO=new Map;this.Nya=this.pg=this.de=this.filter=null}m.prototype.qea=function(k,b){this.dispose();this.object=k;this.TZ=b;h.fa(this.object,[this.TZ],this.GP,!0)};m.prototype.GP=function(k){k=k||[];this.filter&&(k=k.filter(this.filter));var b=this.elements,g=this.elements=k;b.forEach(function(d,c){var f=g.indexOf(d);if(-1==f){var l=this.UO.get(d); this.UO["delete"](d);this.pg&&this.pg(d,l)}else f!=c&&(l=this.UO.get(d),this.Nya&&(c=this.Nya(d,f,l,c),c!=l&&this.UO.set(d,c)))}.bind(this));g.forEach(function(d,c){-1==b.indexOf(d)&&this.de&&(c=this.de(d,c),this.UO.set(d,c))}.bind(this))};m.prototype.dispose=function(){this.object&&(h.ba(this.object,[this.TZ],this.GP),this.GP([]),this.TZ=this.object=null)};return m}()}); define("le",["require","exports","fA","nI"],function(a,e,h,m){return function(){function k(b,g){this.model=b;this.me=g;this.Hca=new Map;this.mZ=new m;this.mZ.de=this.jXa.bind(this);this.mZ.pg=this.kXa.bind(this);this.mZ.qea(this.model,"lights")}k.prototype.dispose=function(){this.mZ.dispose()};k.prototype.jXa=function(b){var g=this.me.R.ad("Light"),d=g.H(h.Light);d.Yb=b;d.target=this.me;this.Hca.set(b,g)};k.prototype.kXa=function(b){var g=this.Hca.get(b);this.Hca["delete"](b);this.me.R.Qe(g)};return k}()}); define("fJ",["require","exports","nx"],function(a,e,h){return function(){function m(){}m.Xv=function(k,b){m.SX[k]=b};m.PVa=function(k){for(var b in m.SX)if(h.Na(b,k))return!0;return!1};m.gUa=function(k,b,g,d,c){for(var f in m.SX)if(h.Na(f,k))return new m.SX[f](k,b,g,d,c);return null};m.SX={};return m}()}); define("pb",["require","exports","nI","fJ"],function(a,e,h,m){return function(){function k(b,g,d,c,f){this.lYa=b;this.model=g;this.me=d;this.Rca=c;this.renderer=f;this.filter=this.filter.bind(this);this.de=this.de.bind(this);this.pg=this.pg.bind(this);this.DD=new h;this.DD.filter=this.filter;this.DD.de=this.de;this.DD.pg=this.pg;this.DD.qea(this.model,"objects")}k.prototype.filter=function(b){return m.PVa(b)?!0:!1};k.prototype.de=function(b){return m.gUa(b,this.lYa,this.me,this.Rca,this.renderer)}; k.prototype.pg=function(b,g){g.dispose()};k.prototype.dispose=function(){this.DD.dispose()};return k}()}); define("iV",["require","exports","oH","nx"],function(a,e,h,m){return function(){function k(b,g){this.FL=b.FL;this.da=g;this.xj=[];this.FL.bind(h.G("spritesEnabled"),this.Yoa,this,!0);this.da.bind(h.G("objects"),this.fC,this,!0);this.ea()}k.prototype.dispose=function(){this.FL.unbind(h.G("spritesEnabled"),this.Yoa,this);this.da.unbind(h.G("objects"),this.fC,this);this.xj.forEach(function(b){b.Sda(!1)});this.xj=[]};k.prototype.Yoa=function(){this.ea()};k.prototype.fC=function(){this.ea()};k.prototype.ea= function(){var b=[];!1===this.FL.get("spritesEnabled")&&b.push("SpriteModel3DObject");var g=this.da.get("objects");this.xj.forEach(function(d){-1==g.indexOf(d)&&d.Sda(!1)});this.xj=g;this.xj.forEach(function(d){var c=b.some(function(f){return m.Na(f,d)});d.Sda(c)})};return k}()}); define("br",["require","exports","ky"],function(a,e,h){var m=["camera","objects","postprocessing"],k=["userInteracting","moving"];return function(){function b(g){this.model=g;this.camera=null;this.Io=[];this.bda=this.bda.bind(this);this.AZ=this.AZ.bind(this);h.fa(this.model,m,this.bda,!0)}b.prototype.dispose=function(){this.hQ([])};b.prototype.bda=function(){this.setCamera(this.model.get("camera"));this.hQ([].concat(this.model.get("objects"),this.model.get("postprocessing")))};b.prototype.setCamera= function(g){this.camera!==g&&(this.camera&&h.ba(this.camera,k,this.AZ),(this.camera=g)&&h.fa(this.camera,k,this.AZ,!0))};b.prototype.AZ=function(){this.SAa()};b.prototype.hQ=function(g){this.Io!=g&&(g||(g=[]),this.Io&&this.Io.forEach(function(d){-1==g.indexOf(d)&&(d.nQ&&d.nQ(!1),d.fw&&d.fw(!1))}.bind(this)),this.Io=g,this.SAa())};b.prototype.SAa=function(){if(this.Io&&this.camera){var g=this.camera.get("userInteracting"),d=this.camera.get("moving");this.Io.forEach(function(c){c.nQ&&c.nQ(g);c.fw&& c.fw(d)}.bind(this))}};return b}()}); define("ni","require exports ky fA pb iV br".split(" "),function(a,e,h,m,k,b,g){var d=["variant"];return function(){function c(f,l,p,q){this.object=f;this.model=l;this.fda=p;this.renderer=q;this.KZ=this.KZ.bind(this);this.Y=this.fda.R.ad("Model");f=this.Y.H(m.sh);this.OO=f.OO=this.fda.R.ad("ModelContent");this.OO.H(m.kb).Y=this.Y;f.Ea=this.object;this.object.get("preload")&&(f.Oya=this.model.LY().hz());f.Go=this.model.HY().hz();f.Sca=this.object.get("model");f.Yb=this.object;f=this.Y.H(m.ld);f.Ea= this.object;f.Iv=!0;f.aw=!0;this.Y.H(m.kb).Y=this.fda;this.Y.H(m.ya);h.fa(this.object,d,this.KZ,!0);this.DD=new k(this.model,this.object,this.Y,this.OO,this.renderer);this.s_a=new b(this.renderer,this.object);this.c0a=new g(this.model)}c.prototype.Hs=function(){return this.Y};c.prototype.dispose=function(){h.ba(this.object,d,this.KZ);this.Y.R.Qe(this.OO);this.Y.R.Qe(this.Y);this.DD.dispose();this.s_a.dispose();this.c0a.dispose()};c.prototype.KZ=function(){var f=this.object.get("variant");f?this.Y.J(m.pt, !0).name=f:this.Y.ma(m.pt)};return c}()}); define("dT","require exports ky oH hT fA three.mod".split(" "),function(a,e,h,m,k,b,g){var d=["collidable"],c=["image"],f=["color","depthTest","opacity","width"],l=["parentId"],p=["maxWorldToPixelScale","minWorldToPixelScale","scale"],q="x y z normalX normalY normalZ upX upY upZ width height attachToParent".split(" "),n=new g.Matrix4,r=new g.Vector3,t=new g.Vector3,u=new g.Vector3,v=new g.Euler,w=180/Math.PI,x="x y z positionX positionY positionZ rotationX rotationY rotationZ scale translationX translationY translationZ attachToParent".split(" "),y= ["clickEnabled","rollOverEnabled","transparentAreaActive","useHandCursor"],A=["castShadow","receiveShadow"],B=["color","depthTest","hidden","opacity"],z=["video"],C=["hidden","enabled","opacity"];return{cJ:function(H){return function(D){function I(){return null!==D&&D.apply(this,arguments)||this}Z(I,D);I.prototype.fd=function(){D.prototype.fd.call(this);h.fa(this.object,d,this.Uxa||(this.Uxa=this.aXa.bind(this)),!0)};I.prototype.gd=function(){h.ba(this.object,d,this.Uxa);D.prototype.gd.call(this)}; I.prototype.aXa=function(){this.object.get("collidable")?this.Y.ma(b.lJ):this.Y.H(b.lJ)};return I}(H)},gm:function(H){return function(D){function I(){return null!==D&&D.apply(this,arguments)||this}Z(I,D);I.prototype.fd=function(){D.prototype.fd.call(this);this.Go=this.model.HY().hz();this.object.get("preload")&&this.model.LY().FH(this.Go);var F=this.Y.H(b.gm);F.Yb=this.object;F.Ea=this.object;F.isSprite=!1;F.priority=this.object.get("preload")?k.lA:k.Bfa;F.Go=this.Go;h.fa(this.object,c,this.Xxa|| (this.Xxa=this.gXa.bind(this)),!0)};I.prototype.gd=function(){this.model.HY().DI(this.Go);this.model.LY().DI(this.Go);h.ba(this.object,c,this.Xxa);D.prototype.gd.call(this)};I.prototype.gXa=function(){this.Y.J(b.gm).tca=this.object.get("image")};return I}(H)},Xg:function(H){return function(D){function I(){return null!==D&&D.apply(this,arguments)||this}Z(I,D);I.prototype.fd=function(){D.prototype.fd.call(this);this.Y.H(b.Xg);h.fa(this.object,f,this.Yxa||(this.Yxa=this.lXa.bind(this)),!0)};I.prototype.gd= function(){h.ba(this.object,f,this.Yxa);D.prototype.gd.call(this)};I.prototype.lXa=function(){var F=this.Y.J(b.Xg);F.color=this.object.get("color");F.opacity=this.object.get("opacity");F.depthTest=this.object.get("depthTest");F.width=this.object.get("width")};return I}(H)},Plane:function(H){return function(D){function I(){return null!==D&&D.apply(this,arguments)||this}Z(I,D);I.prototype.fd=function(){D.prototype.fd.call(this);this.Y.H(b.Plane);this.Y.H(b.ya);h.fa(this.object,q,this.jya||(this.jya= this.oXa.bind(this)),!0)};I.prototype.gd=function(){h.ba(this.object,q,this.jya);D.prototype.gd.call(this)};I.prototype.oXa=function(){r.set(0,0,0);u.set(this.object.get("upX",0),this.object.get("upY",1),this.object.get("upZ",0));t.set(this.object.get("normalX",0),this.object.get("normalY",0),this.object.get("normalZ",1)).multiplyScalar(-1);n.lookAt(r,t,u);v.setFromRotationMatrix(n);var F=this.Y.J(b.ya);F.Gv=this.object.get("attachToParent");F.translationX=this.object.get("x",0);F.translationY=this.object.get("y", 0);F.cf=this.object.get("z",0);F.Gf=this.object.get("width",1);F.Tf=this.object.get("height",1);F.Se=v.x*w;F.re=v.y*w;F.Te=v.z*w;F.positionX=0;F.positionY=0;F.positionZ=0};return I}(H)},kb:function(H){return function(D){function I(){return null!==D&&D.apply(this,arguments)||this}Z(I,D);I.prototype.fd=function(){D.prototype.fd.call(this);this.Y.H(b.kb).Y=this.me;h.fa(this.object,l,this.hya||(this.hya=this.mXa.bind(this)),!0)};I.prototype.gd=function(){h.ba(this.object,l,this.hya);D.prototype.gd.call(this)}; I.prototype.mXa=function(){this.Y.J(b.kb).id=this.object.get("parentId")};return I}(H)},wCa:function(H){return function(D){function I(){return null!==D&&D.apply(this,arguments)||this}Z(I,D);I.prototype.fd=function(){D.prototype.fd.call(this);h.fa(this.object,p,this.iya||(this.iya=this.nXa.bind(this)),!0)};I.prototype.gd=function(){h.ba(this.object,p,this.iya);D.prototype.gd.call(this)};I.prototype.nXa=function(){var F=this.object.get("maxWorldToPixelScale"),N=this.object.get("minWorldToPixelScale"); if(void 0!==F||void 0!==N){var S=this.Y.J(b.ij,!0);S.vz=F;S.wz=N;S.Gf=S.Tf=S.nh=this.object.get("scale")}else null===(S=this.Y)||void 0===S?void 0:S.ma(b.ij)};return I}(H)},gga:function(H){return function(D){function I(){return null!==D&&D.apply(this,arguments)||this}Z(I,D);I.prototype.fd=function(){D.prototype.fd.call(this);this.Y.H(b.ya);h.fa(this.object,x,this.kya||(this.kya=this.pXa.bind(this)),!0)};I.prototype.gd=function(){h.ba(this.object,x,this.kya);D.prototype.gd.call(this)};I.prototype.pXa= function(){var F=this.Y.J(b.ya);F.Gv=this.object.get("attachToParent");F.positionX=this.object.get("x",this.object.get("positionX",0));F.positionY=this.object.get("y",this.object.get("positionY",0));F.positionZ=this.object.get("z",this.object.get("positionZ",0));F.bg=this.object.get("rotationOrder","XYZ");F.Se=this.object.get("rotationX",0);F.re=this.object.get("rotationY",0);F.Te=this.object.get("rotationZ",0);F.scale=this.object.get("scale",1);F.translationX=this.object.get("translationX",0);F.translationY= this.object.get("translationY",0);F.cf=this.object.get("translationZ",0)};return I}(H)},ld:function(H){return function(D){function I(){return null!==D&&D.apply(this,arguments)||this}Z(I,D);I.prototype.fd=function(){D.prototype.fd.call(this);h.fa(this.object,y,this.mya||(this.mya=this.rXa.bind(this)),!0)};I.prototype.gd=function(){h.ba(this.object,y,this.mya);D.prototype.gd.call(this)};I.prototype.rXa=function(){var F=this.object.get("clickEnabled"),N=this.object.get("rollOverEnabled");if(!1!==F&& !1!==N)this.Y.ma(b.ep);else{var S=this.Y.H(b.ep);S.Hea=!1===F;S.Iea=!1===N}!1===F&&!1===N?this.Y.ma(b.ld):(S=this.Y.J(b.ld,!0),S.Qo=this.object.get("useHandCursor"),S.yQ=this.object.get("transparentAreaActive"),S.Ea=this.object,S.Iv=!!F,S.aw=!!N)};return I}(H)},j1:function(H){return function(D){function I(){return null!==D&&D.apply(this,arguments)||this}Z(I,D);I.prototype.fd=function(){D.prototype.fd.call(this);h.fa(this.object,A,this.nya||(this.nya=this.sXa.bind(this)),!0)};I.prototype.gd=function(){h.ba(this.object, A,this.nya);D.prototype.gd.call(this)};I.prototype.sXa=function(){var F=this.Y.J(b.$h,!0);F.castShadow=this.object.get("castShadow");F.receiveShadow=this.object.get("receiveShadow")};return I}(H)},Fc:function(H){return function(D){function I(){return null!==D&&D.apply(this,arguments)||this}Z(I,D);I.prototype.fd=function(){D.prototype.fd.call(this);this.Y.H(b.Fc);this.visible=!1;h.fa(this.object,B,this.oya||(this.oya=this.tXa.bind(this)),!0)};I.prototype.gd=function(){h.ba(this.object,B,this.oya); this.wf(!1);D.prototype.gd.call(this)};I.prototype.tXa=function(){var F=this.Y.J(b.Fc);F.color=this.object.get("color");F.opacity=this.object.get("hidden")?0:this.object.get("opacity");F.depthTest=this.object.get("depthTest");this.wf(0b.indexOf(this.Rs)&&this.HZ(this.Rs),this.Io=b,this.Io.forEach(function(g){g.bind(m.Wc,this.gya,this,!0);g.bind(m.ac,this.fya,this,!0)}.bind(this)))};k.prototype.gya=function(b){b= b.source;this.lya(b,b.get("toolTip"))};k.prototype.fya=function(b){this.HZ(b.source)};k.prototype.cya=function(){this.lya(this.model,this.model.get("toolTip"))};k.prototype.bya=function(){this.HZ(this.model)};k.prototype.HZ=function(b){this.Rs==b&&(this.Rs=null,this.Xza(""))};k.prototype.lya=function(b,g){this.Rs!=b&&(this.Rs=b,this.Xza(g||""))};k.prototype.Xza=function(b){this.Hz!=b&&(this.Hz=b,this.te.set("toolTip",this.Hz))};return k}()}); define("lM",["require"],function(){function a(e){this.wc=this.Dr(e.get("surfaceReticleColor"));this.kv=this.Dr(e.get("surfaceReticleSelectionColor"));this.wb=e.get("surfaceReticleOpacity");this.EOa=e.get("surfaceReticleSelectionOpacity");this.yh=this.xf=128;this.bNa=.456;this.cNa=.088;this.CKa=.18;this.O=document.createElement("canvas");this.O.width=this.xf;this.O.height=this.yh;this.xa=this.O.getContext("2d");this.xa.fillStyle="red";this.xa.imageSmoothingEnabled=!0;this.xa.fillRect(0,0,this.xf,this.yh); this.$c=this.Tt=!1;this.RF=this.fV=void 0;this.EA=0}a.prototype.Y4=function(){return this.Bk(NaN*this.kv[0]+NaN*this.wc[0],NaN*this.kv[1]+NaN*this.wc[1])};a.prototype.Dr=function(e){e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]};a.prototype.Bk=function(e,h){return"rgba("+e.join(",")+", "+h+")"};a.prototype.setPosition=function(e){this.Za!=e&&(this.Za=e,this.va=!0)};a.prototype.rd=function(){return this.xf};a.prototype.ee=function(){return this.yh}; a.prototype.og=function(){return this.O};a.prototype.update=function(){if(!this.va)return!1;this.va=!1;this.xa.clearRect(0,0,this.xf,this.yh);var e=[this.kv[0]*this.Za+(1-this.Za)*this.wc[0],this.kv[1]*this.Za+(1-this.Za)*this.wc[1],this.kv[2]*this.Za+(1-this.Za)*this.wc[2]],h=this.EOa*this.Za+(1-this.Za)*this.wb;this.xa.strokeStyle=this.Bk(e,h);this.xa.fillStyle=this.Bk(e,h*this.Za);this.xa.beginPath();this.xa.lineWidth=this.xf*this.cNa;this.xa.arc(.5*this.xf,.5*this.xf,this.xf*this.bNa,0,2*Math.PI, !1);this.xa.stroke();this.xa.beginPath();this.xa.arc(.5*this.xf,.5*this.xf,this.xf*this.CKa,0,2*Math.PI,!1);this.xa.fill();return!0};return a});define("hl",["require","lM"],function(a){return a("lM")}); define("iw","require ky oH gi hl v fA".split(" "),function(a){function e(l,p,q){this.da=l;this.Ga=p;this.j=q;this.M=this.j.M;this.Mu=this.Mu.bind(this);this.Su=this.Su.bind(this);this.$c=void 0;this.da.bind(m.G("surfaceSelectionEnabled"),this.t4,this,!0);this.t4()}var h=a("ky"),m=a("oH"),k=a("gi"),b=a("hl"),g=a("v"),d=a("fA");e.prototype.t4=function(){var l=this.da.get("surfaceSelectionEnabled");!!this.o!=l&&(l?this.hB():this.vp())};e.prototype.hB=function(){if(!this.o){this.o=this.Ga.R.ad("PointerReticle"); this.o.H(d.Plane).renderOrder=2;this.o.H(d.Wj).Y=this.Ga;this.o.H(d.ep);this.o.H(d.kb).Y=this.Ga;var l=this.o.H(d.yn);l.Ea=new k;l.Ea.bind(m.pa,this.QL,this,!0);h.fa(this.da,c,this.Mu,!0);this.ls=new b(this.M);this.ls.setPosition(0);this.ls.update();l=this.o.H(d.Yh);l.source=this.ls.og();l.depthTest=!1;h.fa(this.da,f,this.Su,!0);this.ve=null;this.IC(!1)}};e.prototype.vp=function(){this.o&&(this.ve&&(this.ve.trigger(m.ac),this.ve=null),h.ba(this.da,f,this.Su),this.rN(null),this.o.getComponent(d.yn).Ea.unbind(m.pa, this.QL,this,!0),this.Ga.R.Qe(this.o),this.ls=this.o=null,h.ba(this.da,c,this.Mu))};e.prototype.Mu=function(){var l=this.o.J(d.ij,!0);l.Gf=l.Tf=2;l.scale=this.da.get("surfaceReticleRadius");l.vz=this.da.get("surfaceReticleMaxRadius");l.wz=this.da.get("surfaceReticleMinRadius")};e.prototype.QL=function(l){l=this.Qka(l.data.beacons);var p=this.wka(l);0==p&&(l=null);this.MOa(l);this.cPa(p)};e.prototype.Su=function(){this.rN(this.da&&this.da.get("pointer"))};e.prototype.rN=function(l){this.Rd!==l&&(this.Rd&& (this.Rd.unbind(m.qa,this.Nr,this,!0),this.Rd.unbind(m.jc,this.kf,this,!0),this.Rd.unbind(m.ac,this.Om,this,!0)),this.Rd=l)&&(this.Rd.bind(m.qa,this.Nr,this,!0),this.Rd.bind(m.jc,this.kf,this,!0),this.Rd.bind(m.ac,this.Om,this,!0))};e.prototype.Nr=function(l){var p=null;if(g.jb()){var q=this.o.getComponent(d.yn);q&&q.bP&&l.data.position&&(l=q.bP((new THREE.Vector3).copy(l.data.position)),l=this.Qka(l),0!=this.wka(l)&&(p=this.V4(l)))}else p=this.ve;p&&p.trigger(m.qa)};e.prototype.kf=function(){this.IC(!0)}; e.prototype.Om=function(){this.IC(!1)};e.prototype.IC=function(l){this.$c!==l&&(this.$c=l,this.o.J(d.Yh).opacity=!g.jb()&&this.$c?1:0)};e.prototype.MOa=function(l){l=this.V4(l);this.ve!=l&&(this.ve&&this.ve.trigger(m.ac),(this.ve=l)&&this.ve.trigger(m.Wc))};e.prototype.Qka=function(l){if(!l)return null;for(var p=0;p=f),c++):l.Tda(!1)}.bind(this))};e.prototype.zIa=function(d){d=(d=d.entity.getComponent(b.fJ))&&d.object;d.get&&void 0!==d.get("hideBasedOnDistance")||(d=null);return d};e.prototype.dispose=function(){h.ba(this.da, g,this.MU);this.W&&(this.W=!1,this.vp())};var g=["maxNearestObjectsVisible"];return e}); define("fC","require lo ky oH gi fA".split(" "),function(a){var e=a("lo"),h=a("ky"),m=a("oH"),k=a("gi"),b=a("fA");a=e.extend(k,function(d,c){k.call(this);this.ud=d;this.Ga=c;this.Cf=this.Cf.bind(this);this.o=null;this.Jk=0;this.Ib=!1;this.NM=[];this.ud.bind(m.G("areaOpacity"),this.ooa,this);this.oH()});a.prototype.f_=function(d){this.NM.forEach(function(c){c.unbind(m.kd,this.Vd,this,!0);c.unbind(m.sd,this.Vd,this,!0)}.bind(this));this.NM=d;this.NM.forEach(function(c){c.bind(m.kd,this.Vd,this,!0); c.bind(m.sd,this.Vd,this,!0)}.bind(this));this.Qsa();this.Vd()};a.prototype.dispose=function(){this.ud.unbind(m.G("areaOpacity"),this.ooa,this);this.wv()};a.prototype.Hs=function(){return this.o};a.prototype.isVisible=function(){return this.Ib};a.prototype.ooa=function(){this.oH();this.zo()};a.prototype.oH=function(){0this.hh.length||this.ri&&2>this.hh.length?u="create":this.gOa(this.ri);break;case "edit":"create"==u?"single"===this.D.get("type")&&0u&&0this.Gp.length;)this.HGa();for(var u=!0,v=0;vthis.vG.size?this.NB[this.vG.size]:this.GGa();this.vG.set(u,v);return v};e.prototype.k5=function(u){return this.vG.get(u)};e.prototype.oHa=function(){for(;this.NB.length>this.vG.size;)this.lHa()};e.prototype.lHa=function(){0!=this.NB.length&&this.NB.pop().dispose()};e.prototype.bGa=function(){this.Yg||(this.Yg=new b(this.D,this.Ga))};e.prototype.jHa=function(){this.Yg&&(this.Yg.dispose(),this.Yg=null)};e.prototype.pX=function(){this.D.set("draggingPoint", !!this.ri)};var l=["points"],p=["mode"],q=["type"],n=["displayAreaLabel","displayDistanceLabel","displayPartialDistanceLabel"],r=["area"],t=["pointer"];return e}); define("eJ",["require","exports","fA","ni","dT"],function(a,e,h,m,k){a=function(b){function g(d,c,f,l,p){d=b.call(this,d,c,f,p)||this;d.me=f;d.Y.H(h.uw);d.Y.H(h.fJ).object=d.object;d.fd();return d}Z(g,b);g.prototype.fd=function(){};g.prototype.gd=function(){};g.prototype.dispose=function(){this.gd();b.prototype.dispose.call(this)};return g}(m);a=k.ld(a);a=k.Gga(a);a=k.cJ(a);a=k.j1(a);a=k.kb(a);a=k.wCa(a);return a=k.gga(a)}); define("cE",["require","exports","ky","dT"],function(a,e,h,m){a=function(){function k(b,g,d,c,f){this.object=b;this.model=g;this.me=d;this.renderer=f;this.ag=this.ag.bind(this);this.enabled=!1;this.Y=null;h.fa(this.object,["enabled"],this.ag,!0)}k.prototype.fd=function(){};k.prototype.gd=function(){};k.prototype.dispose=function(){this.disable();h.ba(this.object,["enabled"],this.ag)};k.prototype.ag=function(){this.object.get("enabled")?this.enable():this.disable()};k.prototype.enable=function(){this.enabled|| (this.enabled=!0,this.Y=this.me.R.ad("ImagePlane"),this.fd())};k.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.gd(),this.Y.R.Qe(this.Y),this.Y=null)};return k}();a=m.ld(a);a=m.cJ(a);a=m.gm(a);a=m.kb(a);return a=m.Plane(a)}); define("cF",["require","exports","ky","fA","dT"],function(a,e,h,m,k){var b=["objectId"];a=function(){function g(d,c,f,l,p){this.object=d;this.model=c;this.me=f;this.renderer=p;this.Y=this.me.R.ad("InnerObject");this.Ou=this.Ou.bind(this);h.fa(this.object,b,this.Ou,!0);this.fd()}g.prototype.fd=function(){};g.prototype.gd=function(){};g.prototype.Ou=function(){var d=this.Y.J(m.sE,!0);d.id=this.object.get("objectId");d.container=this.me};g.prototype.dispose=function(){this.gd();h.ba(this.object,b,this.Ou); this.me.R.Qe(this.Y);this.Y=null};return g}();a=k.ld(a);a=k.cJ(a);a=k.j1(a);return a=k.Gga(a)}); define("nk","require exports ky fA dT three.mod".split(" "),function(a,e,h,m,k,b){var g=["x","y","z"],d=["targetX","targetY","targetZ"];a=function(){function c(f,l,p,q,n){this.object=f;this.model=l;this.me=p;this.renderer=n;this.ag=this.ag.bind(this);this.EZ=this.EZ.bind(this);this.JZ=this.JZ.bind(this);this.enabled=!1;this.Y=null;h.fa(this.object,["enabled"],this.ag,!0)}c.prototype.fd=function(){};c.prototype.gd=function(){};c.prototype.dispose=function(){this.disable();h.ba(this.object,["enabled"], this.ag)};c.prototype.ag=function(){this.object.get("enabled")?this.enable():this.disable()};c.prototype.enable=function(){this.enabled||(this.enabled=!0,this.Y=this.me.R.ad("Line"),this.Y.H(m.ya),this.Y.H(m.Line),this.Y.H(m.Zq).position=new b.Vector3,h.fa(this.object,g,this.EZ,!0),h.fa(this.object,d,this.JZ,!0),this.fd())};c.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.gd(),h.ba(this.object,g,this.EZ),h.ba(this.object,d,this.JZ),this.Y.R.Qe(this.Y),this.Y=null)};c.prototype.EZ= function(){var f=this.Y.J(m.ya);f.translationX=this.object.get("x",0);f.translationY=this.object.get("y",0);f.cf=this.object.get("z",0)};c.prototype.JZ=function(){var f=this.Y.J(m.Zq);f.position.x=this.object.get("targetX");f.position.y=this.object.get("targetY");f.position.z=this.object.get("targetZ")};return c}();a=k.ld(a);a=k.Xg(a);return a=k.kb(a)}); define("fg",["require","exports","ky","fA","dT"],function(a,e,h,m,k){var b=["radius","maxRadius","minRadius"];a=function(){function g(d,c,f,l,p){this.object=d;this.model=c;this.me=f;this.renderer=p;this.ag=this.ag.bind(this);this.IZ=this.IZ.bind(this);this.enabled=!1;this.Y=null;h.fa(this.object,["enabled"],this.ag,!0)}g.prototype.fd=function(){};g.prototype.gd=function(){};g.prototype.dispose=function(){this.disable();h.ba(this.object,["enabled"],this.ag)};g.prototype.ag=function(){this.object.get("enabled")? this.enable():this.disable()};g.prototype.enable=function(){this.enabled||(this.enabled=!0,this.Y=this.me.R.ad("Sphere"),this.Y.H(m.Sphere),this.Y.H(m.ij),h.fa(this.object,b,this.IZ,!0),this.fd())};g.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.gd(),h.ba(this.object,b,this.IZ),this.Y.R.Qe(this.Y),this.Y=null)};g.prototype.IZ=function(){var d=this.Y.J(m.ij);d.Gf=d.Tf=d.nh=1;d.scale=this.object.get("radius");d.vz=this.object.get("maxRadius");d.wz=this.object.get("minRadius")};return g}(); a=k.ld(a);a=k.cJ(a);a=k.Fc(a);a=k.kb(a);return a=k.gga(a)}); define("nQ",["require","exports","ky","fA","dT"],function(a,e,h,m,k){var b="sourceFaces sourceX sourceY sourceYaw sourceZ targetFaces targetX targetY targetYaw targetZ position".split(" ");a=function(){function g(d,c,f,l,p){this.object=d;this.model=c;this.me=f;this.Rca=l;this.renderer=p;this.ag=this.ag.bind(this);this.GZ=this.GZ.bind(this);this.enabled=!1;this.Y=null;h.fa(this.object,["enabled"],this.ag,!0)}g.prototype.fd=function(){};g.prototype.gd=function(){};g.prototype.dispose=function(){this.disable(); h.ba(this.object,["enabled"],this.ag)};g.prototype.ag=function(){this.object.get("enabled")?this.enable():this.disable()};g.prototype.enable=function(){if(!this.enabled){this.enabled=!0;this.Y=this.me.R.ad("ProjectedMaterial");this.Y.H(m.fr);var d=this.Y.H(m.kb);d.Y=this.me;d.attach=!0;h.fa(this.object,b,this.GZ,!0);this.fd()}};g.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.gd(),h.ba(this.object,b,this.GZ),this.Y.R.Qe(this.Y),this.Y=null)};g.prototype.GZ=function(){var d=this.Y.J(m.fr); d.RI=this.Rca;d.rQ=this.object.get("sourceX")||0;d.sQ=this.object.get("sourceY")||0;d.tQ=this.object.get("sourceZ")||0;d.q_a=this.object.get("sourceYaw")||0;d.m_=this.object.get("sourceFaces");d.targetX=this.object.get("targetX")||0;d.targetY=this.object.get("targetY")||0;d.wQ=this.object.get("targetZ")||0;d.G_a=this.object.get("targetYaw")||0;d.p_=this.object.get("targetFaces");d.position=this.object.get("position")||0};return g}();return k.kb(a)}); define("kq",["require","ky","oH","hl","fA"],function(a){function e(f,l,p,q,n){this.D=f;this.da=l;this.Ga=p;this.j=n;this.M=this.j.M;this.Op=this.Op.bind(this);this.Mu=this.Mu.bind(this);this.Mm=this.Mm.bind(this);this.Cf=this.Cf.bind(this);this.c7=this.Ga.getComponent(b.sh).Go;this.c7.bind(m.Z,this.Nu,this,!1);this.d7=this.Bma=!1;this.ls=new k(this.M);this.ls.setPosition(0);this.ls.update();this.o=null;h.fa(this.D,["enabled"],this.Op,!0)}var h=a("ky"),m=a("oH"),k=a("hl"),b=a("fA");e.prototype.Op= function(){this.D.get("enabled")?this.hB():this.vp()};e.prototype.hB=function(){if(!this.o){this.o=this.Ga.R.ad("Reticle");var f=this.o.H(b.kb);f.Y=this.Ga;f.id=this.D.get("parentId");this.o.H(b.Plane).renderOrder=2;this.o.H(b.Yh).source=this.ls.og();this.o.H(b.uw);f=this.o.H(b.fJ);f.C_a=this.D;f.object=this.D;h.fa(this.da,c,this.Mu,!0);h.fa(this.D,g,this.Mm,!0);h.fa(this.D,d,this.Cf,!0)}};e.prototype.vp=function(){this.o&&(this.Ga.R.Qe(this.o),this.o=null,h.ba(this.da,c,this.Mu),h.ba(this.D,g,this.Mm), h.ba(this.D,d,this.Cf))};e.prototype.Mu=function(){var f=this.o.J(b.ij,!0);f.Gf=f.Tf=2;f.scale=this.da.get("surfaceReticleRadius");f.vz=this.da.get("surfaceReticleMaxRadius");f.wz=this.da.get("surfaceReticleMinRadius");this.jta()};e.prototype.Mm=function(){var f=this.o.J(b.kt,!0);f.x=this.D.get("x");f.y=this.D.get("y");f.z=this.D.get("z");f.distance=this.D.get("distance");f.sP=this.D.get("horizontal")};e.prototype.Cf=function(){var f=this.o.J(b.ld,!0);f.Qo=this.D.get("useHandCursor");f.yQ=this.D.get("transparentAreaActive"); f.Ea=this.D;f=this.o.J(b.Yh);f.opacity=this.D.get("opacity");f.hidden=this.D.get("hidden");f.depthTest=this.D.get("depthTest")};e.prototype.Nu=function(){this.Bma=!0;this.jta()};e.prototype.jta=function(){var f=this.Bma&&.5this.a2;)this.EA-=this.a2;this.tFa(this.EA/this.a2);this.RF=a.LQ;return!0};a.prototype.Lja=function(e){this.oj(this.Fja+this.oo,0,this.xv,this.DW,0,2*Math.PI);this.oj(this.Fja,0,this.xv,e,0,2*Math.PI)};a.prototype.EHa=function(e){this.oj(this.ZR-.5*(this.al+this.oo),this.al+this.oo,this.DW,this.xv,0,2*Math.PI);this.oj(this.ZR-.5*this.al,this.al,this.yFa,this.xv, 0,2*Math.PI);this.oj(this.ZR-.5*this.al,this.al,this.zFa,this.xv,.5*Math.PI,(.5+2*e)*Math.PI)};a.prototype.zHa=function(e,h){this.oj(this.Dia-.5*(this.al+this.oo),this.al+this.oo,this.DW,this.xv,0,2*Math.PI);this.oj(this.Dia-.5*this.al,this.al,this.wFa,this.xv,0,2*Math.PI);e=(.5+2*e)*Math.PI;for(h=(.5+2*h)*Math.PI;he){var h=e/.25;e=.5*h}else.5>e?(h=(e-.25)/.25,e=.5+h,h=1+.5*h):.75>e?(h=(e-.5)/.25,e=.5+.5*h,h=.5+h):(e=h=(e-.75)/ .25,h=.5+.5*h);this.zHa(e,h)};a.prototype.fNa=function(e){this.TE();this.EHa(e)};a.tfa="initial";a.LQ="changing";a.U="over";return a}()}); define("eW","require exports three.mod ky oH lK jF fA bc bg".split(" "),function(a,e,h,m,k,b,g,d,c,f){var l=new h.Vector3(0,0,0),p=new h.Vector3(0,0,-1);a=function(){function n(r,t,u,v,w){this.renderer=r;this.Ys=t;this.model=u;this.me=v;this.ke=w;this.CQ=this.CQ.bind(this);this.Zv=this.Zv.bind(this);this.Hv=this.Hv.bind(this);this.te=this.renderer.M;this.ng=this.renderer.getParent();this.Ts=this.model.get("application").gn("Model3DPointer");this.Ob()}n.prototype.nc=function(r){var t=this.ke.J(d.ef); t&&(t.enabled=r)};n.prototype.dispose=function(){this.eb()};n.prototype.Ob=function(){this.GI=new b(this.te);this.MUa=new q(this.ng,this.GI);this.Rv=new g;this.Rv.FYa(this.MUa);var r=this.ke.H(d.ef);r.origin=l;r.direction=p;r.Pba=this.ng;r.Fba=this.Rv;r.Ea=this.Ts;this.te.set("toolTipCentered",!0);this.model.set("pointer",this.Ts);this.YZa();this.b_a();this.Rv.push(c.sA);f.requestFrame(this.CQ)};n.prototype.eb=function(){this.Rv.pop(c.sA);this.H_a();this.I_a();this.te.set("toolTipCentered",!1);this.te.set("toolTipCenteredOffsetY", void 0);this.model.set("pointer",void 0);this.ke.ma(d.ef);this.Rv.dispose();f.RTa(this.CQ)};n.prototype.b_a=function(){this.mn=this.me.R.ad("GazeReticle");this.mn.H(d.kb).Y=this.ke;this.mn.H(d.Plane).renderOrder=2;this.mn.H(d.lJ);var r=this.mn.H(d.Yh);r.source=this.GI.og();r.depthTest=!1;this.mn.H(d.ya).cf=-1;this.renderer.bind(k.kc,this.Zv,this,!0);this.Zv();this.nba(this.ke.getComponent(d.ef),this.Ts)};n.prototype.nba=function(r,t){t.set("originX",r.origin.x);t.set("originY",r.origin.y);t.set("originZ", r.origin.z);t.set("directionX",r.direction.x);t.set("directionY",r.direction.y);t.set("directionZ",r.direction.z)};n.prototype.I_a=function(){this.mn&&(this.mn.R.Qe(this.mn),this.mn=null)};n.prototype.a0a=function(){if(this.mn){var r=this.mn.J(d.ij,!0);r.Gf=r.Tf=2;var t=Math.min(this.te.Xa(),this.te.xb())/100;r.wz=r.vz=Math.round(5*t);this.te.set("toolTipCenteredOffsetY",2*t)}};n.prototype.CQ=function(r){this.mn&&this.GI.update(r)&&(this.mn.J(d.Yh).qQ=(new Date).getTime());f.requestFrame(this.CQ)}; n.prototype.Zv=function(){this.a0a()};n.prototype.YZa=function(){m.eD(this.model,"camera",this.Hv,!0)};n.prototype.H_a=function(){m.ba(this.model,"camera",this.Hv);this.Bza(!0)};n.prototype.Hv=function(){this.Bza(!1)};n.prototype.Bza=function(r){var t=this.ke.J(d.hA);t&&(t.TH=r);(t=this.ke.J(d.iA))&&(t.TH=r);(t=this.ke.J(d.oA))&&(t.TH=r)};return n}();var q=function(){function n(r,t){this.ng=r;this.GI=t}n.prototype.Mda=function(r,t){-1v?u:g.Tq(u,t,v))*f/2))).normalize();return r};p.prototype.PZ=function(q, n){var r=this.ke.getComponent(d.ef);if(r&&r.Bya)return r.Bya.PZ([this.me],c,this.Pva(q,n,l))};return p}()}); define("mr","require exports ky oH hE eW oo".split(" "),function(a,e,h,m,k,b,g){return function(){function d(c,f,l,p,q){this.renderer=c;this.Ys=f;this.model=l;this.me=p;this.ke=q;this.enabled=!0;this.Hv=this.Hv.bind(this);this.Ob()}d.prototype.nc=function(c){var f;this.enabled=c;null===(f=this.SH)||void 0===f?void 0:f.nc(this.enabled)};d.prototype.dispose=function(){this.eb()};d.prototype.Ob=function(){h.fa(this.model,"camera",this.Hv,!0)};d.prototype.eb=function(){h.ba(this.model,"camera",this.Hv); this.Ws("none");this.rAa()};d.prototype.Hv=function(){"FirstPersonModel3DCamera"==this.model.get("camera").get("class")?this.$Za():(this.rAa(),this.Ws("mouse"))};d.prototype.$Za=function(){this.YH||(this.YH=new k(this.renderer,this.Ys,this.model,this.me,this.ke),this.YH.bind(m.pa,this.Vxa,this,!0),this.Vxa())};d.prototype.rAa=function(){var c;this.YH&&(null===(c=this.YH)||void 0===c?void 0:c.dispose(),this.YH=void 0)};d.prototype.Vxa=function(){var c;switch(null===(c=this.YH)||void 0===c?void 0:c.getType()){case k.J0:this.Ws("gaze"); break;default:this.Ws("mouse")}};d.prototype.Ws=function(c){var f;if(this.type!==c){this.SH&&this.SH.dispose();this.type=c;switch(this.type){case "mouse":this.SH=new g(this.renderer,this.Ys,this.model,this.me,this.ke);break;case "gaze":this.SH=new b(this.renderer,this.Ys,this.model,this.me,this.ke);break;default:this.SH=void 0}null===(f=this.SH)||void 0===f?void 0:f.nc(this.enabled)}};return d}()}); define("kx",["require","ky","fA"],function(a){function e(b,g){this.sc=b;this.pd=g;this.W=!1;this.Xe=this.Xe.bind(this);h.fa(this.sc,k,this.Xe,!0)}var h=a("ky"),m=a("fA");e.prototype.Xe=function(){var b=this.sc.get("enabled")&&!this.sc.get("disabled");this.W!=b&&(this.W&&this.pd.ma(m.cE),(this.W=b)&&this.pd.H(m.cE));this.W&&(b=this.pd.J(m.cE),b.$ua=this.sc.get("easingDuration"),b.bias=this.sc.get("bias"),b.intensity=this.sc.get("intensity"),b.scale=this.sc.get("scale"),b.Zwa=this.sc.get("kernelRadius"), b.xxa=this.sc.get("minResolution"),b.tba=this.sc.get("blurRadius"),b.output="ao"==this.sc.get("output")?THREE.SAOPass.OUTPUT.SAO:THREE.SAOPass.OUTPUT.Default)};e.prototype.dispose=function(){this.pd.ma(m.cE);this.pd=null;h.ba(this.sc,k,this.Xe)};var k="disabled enabled bias easingDuration intensity scale kernelRadius minResolution blurRadius output".split(" ");return e}); define("D",["require","ky","fA"],function(a){function e(b,g){this.sc=b;this.pd=g;this.W=!1;this.Xe=this.Xe.bind(this);h.fa(this.sc,k,this.Xe,!0)}var h=a("ky"),m=a("fA");e.prototype.Xe=function(){var b=this.sc.get("enabled")&&!this.sc.get("disabled");this.W!=b&&(this.W&&this.pd.ma(m.Mz),(this.W=b)&&this.pd.H(m.Mz));this.W&&(b=this.pd.J(m.Mz),b.tva="fxaa"==this.sc.get("mode"),b.lAa="ssaa"==this.sc.get("mode"),b.uQ=this.sc.get("ssaaSampleLevel"))};e.prototype.dispose=function(){this.pd.ma(m.Mz);this.pd= null;h.ba(this.sc,k,this.Xe)};var k=["disabled","enabled","mode","ssaaSampleLevel"];return e}); define("kG",["require","ky","fA"],function(a){function e(b,g){this.sc=b;this.pd=g;this.W=!1;this.Xe=this.Xe.bind(this);h.fa(this.sc,k,this.Xe,!0)}var h=a("ky"),m=a("fA");e.prototype.Xe=function(){var b=this.sc.get("enabled")&&!this.sc.get("disabled");this.W!=b&&(this.W&&this.pd.ma(m.jJ),(this.W=b)&&this.pd.H(m.jJ));this.W&&(b=this.pd.J(m.jJ),b.hza=this.sc.get("samples"),b.intensity=this.sc.get("intensity"))};e.prototype.dispose=function(){this.pd.ma(m.jJ);this.pd=null;h.ba(this.sc,k,this.Xe)};var k= ["disabled","enabled","samples","intensity"];return e}); define("gI",["require","ky","fA"],function(a){function e(b,g){this.sc=b;this.pd=g;this.Xe=this.Xe.bind(this);h.fa(this.sc,k,this.Xe,!0)}var h=a("ky"),m=a("fA");e.prototype.Xe=function(){var b=this.sc.get("enabled")&&!this.sc.get("disabled");this.W!=b&&(this.W&&this.pd.ma(m.xE),(this.W=b)&&this.pd.H(m.xE));this.W&&(b=this.pd.J(m.xE),b.Iwa=this.sc.get("innerRadius"),b.yya=this.sc.get("outerRadius"),b.color=this.sc.get("color"),b.opacity=this.sc.get("opacity"))};e.prototype.dispose=function(){this.pd.ma(m.xE); this.pd=null;h.ba(this.sc,k,this.Xe)};var k="enabled disabled opacity color innerRadius outerRadius".split(" ");return e}); define("l","require exports nI kx D kG gI nx".split(" "),function(a,e,h,m,k,b,g,d){return function(){function c(f,l){this.model=f;this.bw=l;this.filter=this.filter.bind(this);this.de=this.de.bind(this);this.pg=this.pg.bind(this);this.QP=new h;this.QP.filter=this.filter;this.QP.de=this.de;this.QP.pg=this.pg;this.QP.qea(this.model,"postprocessing")}c.prototype.filter=function(f){return d.Na("AmbientOcclusionModel3DPostprocessing",f)||d.Na("AntialiasModel3DPostprocessing",f)||d.Na("MotionBlurModel3DPostprocessing", f)||d.Na("VignetteModel3DPostprocessing",f)};c.prototype.de=function(f){return d.Na("AmbientOcclusionModel3DPostprocessing",f)?new m(f,this.bw):d.Na("AntialiasModel3DPostprocessing",f)?new k(f,this.bw):d.Na("MotionBlurModel3DPostprocessing",f)?new b(f,this.bw):d.Na("VignetteModel3DPostprocessing",f)?new g(f,this.bw):null};c.prototype.pg=function(f,l){l.dispose()};c.prototype.dispose=function(){this.QP.dispose()};return c}()}); define("nH","require oH pa fA cm eL le jz gD iw la gK mr l".split(" "),function(a){function e(r,t,u){this.j=r;this.Wd=t;this.da=u;this.M=this.j.M;this.da.xda();this.pd=this.Wd.ad("Scene");r=this.pd.H(m.Scene);r.Nba=this.da.HY().FH(this.da.LY().hz(.1));r.Ea=this.da;this.Ama=new d(this.da,this.da,this.pd,this.j);this.Ga=this.Ama.Hs();r.ke=this.Li=this.Wd.ad("PerspectiveCamera");this.Li.H(m.kb).Y=this.pd;this.oia=new b(this.j,this.da,this.Li);this.qLa=new g(this.da,this.Ga);this.Dpa=new p(this.j,this.Wd, this.da,this.Ga,this.Li);n.forEach(function(v){this.da.bind(h.G(v),this.J7,this,!0)}.bind(this));this.ANa=new q(this.da,this.pd);this.Wd.fua(this.pd);this.ILa=new l(this.da,this.Ga,this.Li);this.QQa=new f(this.da,this.Ga,this.j);this.hRa=new c(this.j,this.da);this.J7()}var h=a("oH");a("pa");var m=a("fA"),k=a("cm"),b=a("eL"),g=a("le"),d=a("jz"),c=a("gD"),f=a("iw"),l=a("la");a("gK");var p=a("mr"),q=a("l");e.prototype.QD=function(r){this.pd.J(m.Scene).locked=r};e.prototype.nc=function(r){this.pd.J(m.Scene).enabled= r;this.Dpa.nc(r);this.oia.nc(r)};e.prototype.dispose=function(){n.forEach(function(r){this.da.unbind(h.G(r),this.J7,this,!0)}.bind(this));this.da.unbind(h.G("camera"),this.zU,this,!0);this.Ama.dispose();this.oia.dispose();this.qLa.dispose();this.Dpa.dispose();this.ANa.dispose();this.QQa.dispose();this.ILa.dispose();this.hRa.dispose();this.Wd.dYa(this.pd);this.Wd.Qe(this.pd);this.Wd.Qe(this.Li)};e.prototype.uVa=function(){return this.Ga?k.iI(this.Ga):void 0};e.prototype.J7=function(){var r=this.pd.J(m.Scene); r.opacity=this.da.get("opacity");r.eva=this.da.get("environmentURL");r.oba=this.da.get("backgroundImageURL");r.rua=this.da.get("backgroundPanoramaURL");r.backgroundColor=this.da.get("backgroundColor");r.outputEncoding=this.da.get("encoding");r=this.da.get("environmentIntensity");var t=this.da.get("anisotropicFilteringLevel");if(1!=r||0!=t){var u=this.pd.J(m.$h,!0);u.envMapIntensity=r;u.FO=t}else this.pd.ma(m.$h)};var n="anisotropicFilteringLevel environmentURL backgroundImageURL backgroundPanoramaURL backgroundColor opacity encoding environmentIntensity".split(" "); return e}); define("lj","require lo gj nH bc d oc".split(" "),function(a){var e=a("lo"),h=a("gj"),m=a("nH"),k=a("bc"),b=a("d"),g=a("oc");a=e.extend(g,function(d,c,f){g.call(this);this.mc=d;this.M=c;this.FL=f;this.Be("Renderer");this.set("toolTipDisabled",!0);this.set("cursor",k.mt);this.set("layout",b.EQ);this.Wd=null;this.XF=[];this.PG=new Map});a.prototype.Ab=function(){g.prototype.Ab.call(this);null==this.Wd&&(this.Wd=new h(this.mc,!0),this.Wd.ja({left:0,top:0,right:0,bottom:0,cursor:k.mt,toolTipDisabled:!0}),this.Wd.OZa(), this.Wa(this.Wd),this.XF.forEach(this.Ara.bind(this)))};a.prototype.XVa=function(d){return 0<=this.XF.indexOf(d)};a.prototype.eua=function(d){0<=this.XF.indexOf(d)||(this.XF.push(d),this.Wd&&this.Ara(d))};a.prototype.tda=function(d){var c=this.XF.indexOf(d);0>c||(this.XF.splice(c,1),this.Wd&&this.ksa(d))};a.prototype.Yda=function(d,c){(d=this.PG.get(d))&&d.QD(c)};a.prototype.Oza=function(d,c){(d=this.PG.get(d))&&d.nc(c)};a.prototype.hP=function(d){return(d=this.PG.get(d))?d.uVa():void 0};a.prototype.LD= function(){return this.Wd&&this.Wd.LD()};a.prototype.zba=function(){return this.Wd&&this.Wd.zba()};a.prototype.Ara=function(d){this.ksa(d);this.PG.set(d,new m(this,this.Wd,d))};a.prototype.ksa=function(d){var c=this.PG.get(d);c&&(this.PG["delete"](d),c.dispose())};return a}); define("bH","require lo oH cy nx jD it dU lj ed".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("cy"),k=a("nx"),b=a("jD"),g=a("it"),d=a("dU"),c=a("lj"),f=a("ed"),l=k.define("Model3DPlayer",g,function(){g.call(this,"model");this.wp=this.jU=this.Rh=!1;this.L=this.j=null;this.qb=this.Ed=0;this.$d=e.Ko(this.Qg,this);this.G2=new b(this,"buttonToggleSprites",f.Xj);this.G2.bind(h.Vj,function(){this.set("spritesEnabled",!0)},this);this.G2.bind(h.jm,function(){this.set("spritesEnabled",!1)},this);this.G2.set("pressed", this.get("spritesEnabled"))});l.prototype.play=function(){this.hC()};l.prototype.pause=function(){this.gC()};l.prototype.stop=function(){this.qy()};l.prototype.restart=function(){this.ny()};l.prototype.getModelPixelScale=function(){return this.pJa()};l.prototype.captureToDataURL=function(){return this.j&&this.j.zba()};l.prototype.saveScreenshot=function(){return this.j&&this.j.LD()};l.prototype.set=function(p,q){if(this.get(p)!=q){switch(p){case "model":this.jU=!0;this.set("requesterPlayer",null); this.$d();break;case "viewerArea":this.Rh=!0;this.$d();break;case "displayPlaybackBar":this.wp=!0,this.$d()}g.prototype.set.call(this,p,q)}};l.prototype.get=function(p,q){switch(p){case "currentTime":return this.L&&this.L.getTime()||0}return g.prototype.get.call(this,p,q)};l.prototype.Qg=function(){this.Rh&&(this.Rh=!1,this.cu(),this.get("viewerArea")&&this.$t(),this.vN(this.get("viewerArea")),this.jU=!0);var p=!1;if(this.j&&(this.jU||this.QW)){var q=this.get("model");if(q&&!this.j.Jb()){this.$d(); return}this.jU=!1;this.qb=this.Ed=0;p=!0;q?(this.EI(this.get("requesterPlayer")?[this.get("requesterPlayer"),this]:[this]),this.L.pZa(q)):this.L.cw()}this.wp&&(this.wp=!1,p=!0);p&&this.Dv()};l.prototype.eH=function(){this.set("model",null)};l.prototype.$t=function(){var p=this.get("application"),q=this.get("viewerArea");this.j=new c(p,q,this);this.j.ja({left:0,top:0,bottom:0,right:0});q.Wa(this.j);this.L=new d(q,this.j);this.L.bind(d.Wz,this.ul,this);this.L.bind(d.Vz,this.iy,this);this.L.bind(d.Xz, this.dM,this);this.L.bind(d.q0,this.loa,this,!0);this.L.bind(d.Ec,this.We,this);this.Ly(!0)};l.prototype.cu=function(){this.j&&(this.L.unbind(d.Wz,this.ul,this),this.L.unbind(d.Vz,this.iy,this),this.L.unbind(d.Xz,this.dM,this),this.L.unbind(d.q0,this.loa,this,!0),this.L.unbind(d.Ec,this.We,this),this.L.clear(),this.j.getParent().removeChild(this.j),this.j=null,this.Ly(!1))};l.prototype.We=function(p){this.zc(p.data.state)};l.prototype.ul=function(p){var q=this.get("viewerArea");this.Qd=q&&q.Qd;this.CL(p.data.model); this.Dv()};l.prototype.dM=function(p){this.trigger(new m(l.xBa,{model:p.data.model}))};l.prototype.iy=function(p){this.Qd=null;this.BL(p.data.model)};l.prototype.loa=function(p){this.Ed=p.data.time;this.qb=p.data.duration;this.Dv()};l.prototype.KM=function(p){this.DC(p.data.position)};l.prototype.uk=function(){this.L&&this.L.play()};l.prototype.ro=function(){this.L&&this.L.stop()};l.prototype.Xp=function(){this.L&&this.L.pause()};l.prototype.DC=function(p){this.L&&this.L.setTime(p)};l.prototype.pJa= function(){return this.L&&this.L.hP()};l.prototype.Dv=function(){if(this.j){var p=this.j.getParent();0Math.abs(r)?0:r,this.ab.Xa())),this.xma*this.NC);q=q.y-this.ko.y;n.call(this,r,-e(h(10,m(3>Math.abs(q)?0:q,this.ab.xb())),this.wma*this.NC))};p.prototype.MSa=function(q){this.vaa(-e(m(q.x-this.ko.x,this.ab.Xa()),this.La*this.i4),+e(m(q.y-this.ko.y,this.ab.Xa()),this.La*this.i4));this.ko=q};p.prototype.v4=function(){if(this.cL)switch(this.cL=!1,this.eW){case c.Rz:this.sta(0,0)}};p.prototype.sta=function(q,n){var r=new f(p.it);r.rw=q;r.Vv=n;this.trigger(r)};p.prototype.vaa=function(q, n){var r=new f(p.it);r.XI=q;r.zI=n;this.trigger(r)};p.prototype.Haa=function(q){if(this.Cc!=q.scale){this.v4();var n=this.Cc;this.Cc=q.scale;q=new l(p.Yo);q.pca=this.La*n/this.Cc-this.La;this.trigger(q)}};p.prototype.Gaa=function(q){if(0!=q.delta){this.v4();var n=new l(p.Yo);n.pca=this.La*-q.delta*this.vB/100;this.trigger(n)}};p.prototype.k$=function(q){var n=null!=this.KE;this.Zra();if(q&&(n||!this.Ph)){var r=this;this.KE=setTimeout(function(){r.KE=null;r.IS()},q)}this.Ph||(this.Ph=!0,this.trigger(new g(p.Gi)))}; p.prototype.IS=function(){this.Zra();this.Ph&&(this.Ph=!1,this.trigger(new g(p.Fi)))};p.prototype.Zra=function(){null!=this.KE&&(clearTimeout(this.KE),this.KE=null)};p.it="rotation change";p.Yo="zoom change";p.Gi="user interaction start";p.Fi="user interaction end";return p}); define("dw",["require","v"],function(a){function e(){this.fH=m.jb()?.066:.1;this.HLa=.5;this.nQa=m.jb()?.066:.1;this.qTa=.1;this.OW=this.UW=!1;this.reset()}function h(k,b,g){k=(b-k)*(1-g);.01>Math.abs(k)&&(k=0);return b-k}var m=a("v");e.prototype.reset=function(){this.mja=this.A3=this.aF=this.sx=this.iK=this.E3=this.D3=this.I3=this.DF=this.vB=this.$V=this.bW=this.$p=this.IM=this.vs=this.CO=0};e.prototype.eea=function(k,b,g,d,c,f,l,p,q){return this.CO!=k||(this.IM=b)||this.bW!=g||0!=d||0!=c||this.OW!= l||this.Rma!=p||this.UW!=q?(this.CO=k,this.IM=b,this.bW=g,this.vs+=d,this.$p+=c,this.$V+=f,this.OW=l,this.Rma=p,this.UW=q,!0):!1};e.prototype.i_a=function(k,b){return this.vB!=k||0!=b?(this.vB=k,this.DF+=b,!0):!1};e.prototype.af=function(){return 0!=this.I3||0!=this.D3||0!=this.E3||0!=this.iK||0!=this.CO||0!=this.IM||0!=this.bW||0!=this.vB||0!=this.vs||0!=this.$p||0!=this.DF};e.prototype.zb=function(k){k=1E3/k;var b=this.I3/k,g=this.CO/k+this.vs;this.vs=0;var d=this.D3/k,c=this.IM/k+this.$p;this.$p= 0;var f=this.E3/k,l=this.bW/k+this.$V;this.$V=0;var p=this.vB+this.DF*k;this.DF=0;var q=0==g&&0==c&&0==l,n=0==b&&0==d&&0==f;this.OW&&n&&!q||this.UW&&q&&!n||this.Rma&&!q&&!n?(q=q?this.fH:n?this.nQa:this.HLa,this.sx=h(b,g,q),this.aF=h(d,c,q),this.A3=h(f,l,q)):(this.sx=g,this.aF=c,this.A3=l);b=0==this.iK;g=0==p;this.iK=this.OW&&b&&!g||this.UW&&g&&!b?h(this.iK,p,this.qTa):p;this.I3=this.sx*k;this.D3=this.aF*k;this.E3=this.A3*k;this.mja=this.iK/k};return e}); define("cZ","require jquery.mod lo e fn dw bg oH".split(" "),function(a){var e=a("jquery.mod"),h=a("lo"),m=a("e"),k=a("fn"),b=a("dw"),g=a("bg"),d=a("oH");a=h.extend(m,function(){m.call(this);this.Be("Renderer");this.O=e("");this.O.css({position:"absolute",left:0,top:0});this.Bb().append(this.O);this.Ox=null;this.Da=this.HF=this.FF=this.GF=0;this.wk=!1;this.wNa=150;this.UK=0;this.Cm=null;this.bind(d.kc,this.hc,this,!0);this.lb=new k;this.lb.D1a(720);this.lb.YP(0);this.lb.Dz("drag_rotation"); this.lb.PD(360);this.lb.bind(k.it,this.JMa,this);this.cc=new b});a.prototype.XYa=function(c,f,l){this.Ox=c;this.GF=f;this.FF=l;this.HF=Math.floor(this.Ox.length*this.Da/360);this.o9();this.lb.Oq(this);this.Ma()};a.prototype.XTa=function(){this.Ox=null;this.Fk();this.o9();this.lb.Ql()};a.prototype.play=function(){this.wk=!0;this.Ma()};a.prototype.JMa=function(c){this.Fk();this.cc.eea(c.rw,c.Vv,0,c.XI,c.zI,0,!1,!0);this.Ma()};a.prototype.TL=function(){this.play()};a.prototype.yj=function(c){this.Ox&& (this.cc.af()?(this.wk=!1,this.cc.zb(c),this.Cha(this.cc.sx),this.Ma()):this.wk?(this.Cha(this.wNa*c/1E3),this.Ma()):this.JF()||this.mq())};a.prototype.tn=function(c){for(this.Da=c;0>this.Da;)this.Da+=360;for(;360<=this.Da;)this.Da-=360;this.mSa()};a.prototype.mSa=function(){if(this.Ox){var c=Math.floor(this.Ox.length*this.Da/360);this.HF!=c&&(this.HF=c,this.bqa())}};a.prototype.Cha=function(c){this.tn(this.Da+c)};a.prototype.hc=function(){this.o9()};a.prototype.o9=function(){var c=this.O.get(0); if(0==this.GF||0==this.FF)c.width=0,c.height=0;else{var f=this.rf(),l=this.qf();l*this.GF>f*this.FF?(c.width=f,c.height=this.FF*f/this.GF):(c.height=l,c.width=this.GF*l/this.FF);this.O.css({left:Math.round(.5*(f-c.width))+"px",top:Math.round(.5*(l-c.height))+"px"});this.bqa()}};a.prototype.bqa=function(){if(this.Ox){var c=this.O.get(0);c.getContext("2d").drawImage(this.Ox[this.HF],0,0,this.GF,this.FF,0,0,c.width,c.height)}};a.prototype.JF=function(){return this.Cm?!0:!1};a.prototype.mq=function(){this.Fk(); if(0c.indexOf(f)?g.push(f):d.push(f)});g.forEach(function(f){f.nD().Jd(h.T)});this.kp=d;this.E5=!1};e.prototype.start=function(b){this.end(b);this.kp=this.ela(b);this.E5=0c&&(c+=m);return g[c*k|0]}function e(c){c%=m;0>c&&(c+=m);return b[c*k|0]}function h(){this.identity()}h.prototype.identity=function(){this.m11=1;this.m21=this.m13=this.m12=0;this.m22=1;this.m32=this.m31=this.m23=0;this.m33=1;this.tz=this.ph=this.oh=0};h.prototype.clone=function(){var c=new h;c.m11=this.m11;c.m12=this.m12;c.m13=this.m13;c.m21=this.m21;c.m22=this.m22;c.m23=this.m23;c.m31=this.m31;c.m32=this.m32;c.m33=this.m33;c.oh=this.oh;c.ph= this.ph;c.tz=this.tz;return c};h.prototype.concat=function(c){var f=this.m11,l=this.m12,p=this.m13,q=this.m21,n=this.m22,r=this.m23,t=this.m31,u=this.m32,v=this.m33,w=this.oh,x=this.ph,y=this.tz;this.m11=f*c.m11+l*c.m21+p*c.m31;this.m12=f*c.m12+l*c.m22+p*c.m32;this.m13=f*c.m13+l*c.m23+p*c.m33;this.m21=q*c.m11+n*c.m21+r*c.m31;this.m22=q*c.m12+n*c.m22+r*c.m32;this.m23=q*c.m13+n*c.m23+r*c.m33;this.m31=t*c.m11+u*c.m21+v*c.m31;this.m32=t*c.m12+u*c.m22+v*c.m32;this.m33=t*c.m13+u*c.m23+v*c.m33;this.oh=w* c.m11+x*c.m21+y*c.m31+c.oh;this.ph=w*c.m12+x*c.m22+y*c.m32+c.ph;this.tz=w*c.m13+x*c.m23+y*c.m33+c.tz};h.prototype.translate=function(c,f,l){this.oh+=c;this.ph+=f;this.tz+=l};h.prototype.scale=function(c,f,l){this.m11*=c;this.m12*=f;this.m13*=l;this.m21*=c;this.m22*=f;this.m23*=l;this.m31*=c;this.m32*=f;this.m33*=l;this.oh*=c;this.ph*=f;this.tz*=l};h.prototype.rotateX=function(c){var f=a(c);c=e(c);var l=this.m12*f+this.m13*c,p=this.m22*c-this.m23*f,q=this.m22*f+this.m23*c,n=this.m32*c-this.m33*f,r= this.m32*f+this.m33*c,t=this.ph*c-this.tz*f,u=this.ph*f+this.tz*c;this.m12=this.m12*c-this.m13*f;this.m13=l;this.m22=p;this.m23=q;this.m32=n;this.m33=r;this.ph=t;this.tz=u};h.prototype.rotateY=function(c){var f=a(c);c=e(c);var l=-this.m11*f+this.m13*c,p=this.m21*c+this.m23*f,q=-this.m21*f+this.m23*c,n=this.m31*c+this.m33*f,r=-this.m31*f+this.m33*c,t=this.oh*c+this.tz*f,u=-this.oh*f+this.tz*c;this.m11=this.m11*c+this.m13*f;this.m13=l;this.m21=p;this.m23=q;this.m31=n;this.m33=r;this.oh=t;this.tz=u}; h.prototype.rotateZ=function(c){var f=a(c);c=e(c);var l=this.m11*f+this.m12*c,p=this.m21*c-this.m22*f,q=this.m21*f+this.m22*c,n=this.m31*c-this.m32*f,r=this.m31*f+this.m32*c,t=this.oh*c-this.ph*f,u=this.oh*f+this.ph*c;this.m11=this.m11*c-this.m12*f;this.m12=l;this.m21=p;this.m22=q;this.m31=n;this.m32=r;this.oh=t;this.ph=u};h.prototype.rotate=function(c,f,l){this.rotateX(c);this.rotateY(f);this.rotateZ(l)};h.prototype.invert=function(){var c=this.WUa();if(0==c)return!1;var f=this.clone();this.m11= (f.m22*f.m33-f.m23*f.m32)/c;this.m12=(f.m13*f.m32-f.m12*f.m33)/c;this.m13=(f.m12*f.m23-f.m13*f.m22)/c;this.m21=(f.m23*f.m31-f.m21*f.m33)/c;this.m22=(f.m11*f.m33-f.m13*f.m31)/c;this.m23=(f.m13*f.m21-f.m11*f.m23)/c;this.m31=(f.m21*f.m32-f.m22*f.m31)/c;this.m32=(f.m12*f.m31-f.m11*f.m32)/c;this.m33=(f.m11*f.m22-f.m12*f.m21)/c;this.oh=-(f.oh*this.m11+f.ph*this.m21+f.tz*this.m31);this.ph=-(f.oh*this.m12+f.ph*this.m22+f.tz*this.m32);this.tz=-(f.oh*this.m13+f.ph*this.m23+f.tz*this.m33);return!0};h.prototype.WUa= function(){return this.m11*(this.m22*this.m33-this.m23*this.m32)+this.m12*(this.m23*this.m31-this.m21*this.m33)+this.m13*(this.m21*this.m32-this.m22*this.m31)};h.prototype.JH=function(c){var f=c.x*this.m12+c.y*this.m22+c.z*this.m32+this.ph,l=c.x*this.m13+c.y*this.m23+c.z*this.m33+this.tz;c.x=c.x*this.m11+c.y*this.m21+c.z*this.m31+this.oh;c.y=f;c.z=l};for(var m=2*Math.PI,k=18E4/m,b=new Float32Array(180001),g=new Float32Array(180001),d=0;18E4>d;d++)b[d]=Math.cos(d/k),g[d]=Math.sin(d/k);b[18E4]=b[0]; g[18E4]=g[0];return h});define("dC",["require"],function(){return{$s:0,Pa:1,hb:2}}); define("bZ",["require","nx","lH"],function(a){var e=a("nx"),h=a("lH"),m={get:function(k){return k.pDa||(k.pDa=this.$Ha(k))},$Ha:function(k){if(e.Na("CubicPanoramaFrame",k))return k.get("stereoCube")?m.Kw:k.get("cube")?m.ot:m.Yk;if(e.Na("SphericPanoramaFrame",k)){var b=k.get("stereoSphere"),g=k.get("sphere"),d=k.get("hfov");k=k.get("vfov");var c=359.9U[0]||void 0!==U[1]&&O.get("height")>U[1]?!1:!0})}function c(){return z.Sv()?[w.pga]:z.cZ()?z.hd()==z.ct||z.hd()==z.bt?[w.eR,w.m1]:[w.m1,w.eR]:z.Rf()?[w.eR]:z.jb()?[w.dR]:[]}function f(G){G.sort(function(L,U){return L.get("width")-U.get("width")});return G}function l(G,L){function U(O){return Math.abs(O.get("width")*O.get("height")-L[0]*L[1])}G.sort(function(O,V){return U(O)-U(V)});return G.length&&G[0]||null}function p(G,L,U){G=G.filter(function(O){return 0>O.get("tags").indexOf(L)}); return G.length?G:void 0!==U?U:[]}function q(G,L,U){G=G.filter(function(O){return 0<=O.get("tags").indexOf(L)});return G.length?G:void 0!==U?U:[]}function n(G,L,U){switch(U){case A.Kw:case A.ot:case A.Yk:return G;case A.ap:case A.ir:return G*L.get("hfov",180)/90;case A.gp:return G*L.get("hfov",180)*2/90}}function r(G,L){switch(L){case A.Kw:return G.get("stereoCube").get("levels");case A.ot:return G.get("cube").get("levels");case A.Yk:return G.get("front").get("levels");case A.ap:return G.get("sphere").get("levels"); case A.gp:case A.ir:return G.get("stereoSphere").get("levels")}}function t(G,L){var U=r(G,L),O=G.get("minFaceSize");if(O){var V=n(O,G,L);G=U.filter(function(Y){return Y.get("height")>=V});0L.indexOf(O)&&L.push(O)}return L}var v=a("nx"),w=a("lZ"),x=a("dC"),y=a("mD"),A=a("bZ"),B=a("jv");a("lH");var z=a("v");a("ia");var C=a("mj"),H=a("md"),D=a("ku"),I=a("od"),F={Ova:function(G){G=G.get("frames");if(0==G.length)return 1; var L=G[0];G=A.get(L)==A.ap&&L.Tl()?(G=I.Jj(L.get("sphere")))?[G]:[]:A.get(L)!=A.gp&&A.get(L)!=A.ir||!L.Tl()?F.cca(L,!1):(G=I.Jj(L.get("stereoSphere")))?[G]:[];return Math.max.apply(Math,G.map(function(U){return F.vVa(L,U)}).concat([1]))},vVa:function(G,L){L=F.Zba(G,L,y.FRONT);L=L.get("width");var U=G.pz().get("hfov",360);switch(A.get(G)){case A.Kw:return L/1080;case A.ot:return L/540;case A.Yk:return L/90;case A.ap:return L/U;case A.gp:return L/U;case A.ir:return L/(2*U)}},vca:function(G,L){G=F.jn(G, L);return 6>=G.length&&G.every(function(U){return D.s_(U)})},mda:function(G,L){return F.jn(G,L).every(function(U){return D.s_(U)})},jn:function(G,L,U){if(!G)return[];U||(U=!1);if(v.Na("Panorama",G))return U=G.get("flipImageHorizontally",!1),u([].concat(Array.prototype.concat.apply([],G.get("frames").map(function(J){return F.jn(J,L,U)})),Array.prototype.concat.apply([],G.get("overlays").map(function(J){return F.jn(J,L,U)}))));if(v.Na("PanoramaFrame",G)){var O=Array.prototype.concat.apply([],G.get("overlays").map(function(J){return F.jn(J, L,U)}));if(A.get(G)==A.ap&&G.Tl())return F.jn(I.Jj(G.get("sphere")),L).concat(O);if((A.get(G)==A.gp||A.get(G)==A.ir)&&G.Tl())return F.jn(I.Jj(G.get("stereoSphere")),L).concat(O);var V=F.cca(G,L)[0];U=G.get("flipImageHorizontally",!1);if(A.get(G)==A.Yk){var Y=[y.FRONT,y.Pa,y.BACK,y.hb,y.uc,y.pc];return Array.prototype.concat.apply([],Y.map(function(J){return(J=F.Zba(G,V,J))?F.jn(J,L,U):[]})).concat(O)}return F.jn(V,L,U).concat(O)}if(v.Na("Video360ResourceLevel",G))return(O=G.get("posterURL"))?[O]: [];if(v.Na("HotspotPanoramaOverlay",G))return G.get("projected")?Array.prototype.concat.apply([],G.get("items").map(function(J){return F.jn(J,L,U)})):[];if(v.Na("FlatHotspotPanoramaOverlayImage",G)||v.Na("HotspotPanoramaOverlayImage",G))return O=G.get("image").get("levels"),V=O[0],F.jn(V,L,U),Array.prototype.concat.apply([],O.map(function(J){return F.jn(J,L,U)}));if(v.Na("TiledImageResourceLevel",G)){var ca=[];O=Math.round(G.get("width")/G.get("height"));if(1==O)var E=A.Yk;else if(12==O)E=A.w0a;else if(6== O)E=A.ot;else return[];var K=12==O?[x.hb,x.Pa]:[x.$s];Y=[y.hb,y.Pa,y.uc,y.pc,y.FRONT,y.BACK];var P=G.get("colCount",O)/O,T=G.get("rowCount",1);K.forEach(function(J){Y.forEach(function(M){for(var X=0;Xc;)q-=2*c;r=Math.max(Math.min(r,t),u);t=e.wA;n>f?t|=e.AA:n<-f&&(t|=e.vA);n=Math.max(Math.min(n,.5*c),.5*-c);var A=2*Math.atan(Math.tan(.5*r)/y);if(A>=w)r=2*Math.atan(Math.tan(.5*w)*y),n=x,t=t|e.AA|e.vA;else{var B=Math.min(.5*w+x,.5*c);w=Math.max(.5*-w+x,.5*-c);x=!this.iC&&B>=.495*c?.5*c:B-.5*A;w=!this.iC&&w<=.495*-c?.5*-c:w+.5*A;n>x?(n=x,t|=e.AA):ny&&(y+=2*c),w=.5*v-.5*y,A=.5*-v+.5*y,y>v?(q=0,r=Math.max(u,r*v/y),t=t|e.yE|e.zE):q>w?(q=w,t|=e.zE):qMath.abs(g)&&(g=0);return d-g};a.prototype.zC=function(g,d){for(;g+180d;)g-=360;return g};a.prototype.XB=function(){this.W&&this.yo()};a.prototype.yo=function(){this.trigger(new m(h.pa))};return a});define("ek",["require"],function(){return{pE:"left",qE:"right",oE:"down",rE:"up",iga:"rotate10x",Iga:"zoom2x",X:"playing",Dt:"zoomIn",Et:"zoomOut",Kf:"stop"}}); define("fr","require lo bm cy gi ek".split(" "),function(a){var e=a("lo"),h=a("bm"),m=a("cy"),k=a("gi"),b=a("ek"),g=e.extend(k,function(c){k.call(this);this.j=c;this.W=!1;this.gi={};this.EN=null;this.Zi=this.DN=!1;this.KT=this.KT.bind(this);this.Bu=this.Bu.bind(this);this.yc=this.j.yc;document.addEventListener("keydown",this.KT);document.addEventListener("keyup",this.Bu)});g.prototype.clear=function(){this.W=!1;this.yc=this.j=null;document.removeEventListener("keydown",this.KT);document.removeEventListener("keyup", this.Bu)};g.prototype.nc=function(c){this.W!=c&&(this.W=c)&&this.rX()};var d=[h.Yj,h.Di,h.Pa,h.hb,h.wn,h.gR];g.prototype.KT=function(c){var f=c.which,l=!1;!this.gi[f]&&0<=d.indexOf(f)&&(this.EN||this.DN||(this.EN=setTimeout(this.NMa.bind(this),100)),l=this.gi[f]=!0);this.Zi!=c.shiftKey&&(this.Zi=c.shiftKey,l=!0);l&&this.rX()};g.prototype.NMa=function(){this.DN=!0;this.rX()};g.prototype.Bu=function(c){var f=c.which,l=!1;if(f in this.gi){delete this.gi[f];l=!1;for(f in this.gi)this.gi[f]&&(l=!0);l|| (this.EN&&clearTimeout(this.EN),this.EN=null,this.DN=!1);l=!0}this.Zi!=c.shiftKey&&(this.Zi=c.shiftKey,l=!0);l&&this.rX()};g.prototype.rX=function(){if(this.W){var c=this.yc.get("arrowKeysAction");if("none"!=c){c="rotate"==c;var f=[];this.gi[h.wn]?f.push(b.Dt):this.gi[h.gR]&&f.push(b.Et);this.DN&&(this.gi[h.wn]||this.gi[h.gR])&&f.push(b.Iga);this.gi[h.Pa]?f.push(b.pE):this.gi[h.hb]&&f.push(b.qE);if(c||this.Zi)this.gi[h.Yj]?f.push(b.rE):this.gi[h.Di]&&f.push(b.oE);this.DN&&(this.gi[h.Pa]||this.gi[h.hb]|| this.gi[h.Yj]||this.gi[h.Di])&&f.push(b.iga);0==f.length&&f.push(b.Kf);this.trigger(new m(g.r0,{Exa:f}))}}};g.r0="movementsChange";return g}); define("mF",["require"],function(){function a(){this.BA=!0;this.reset()}function e(h,m,k){h=(m-h)*(1-k);.01>Math.abs(h)&&(h=0);return m-h}a.prototype.reset=function(){this.BA&&(this.BA=!1,this.$W=this.aX=this.tv=this.$m=this.bF=this.eF=this.cF=this.ux=void 0)};a.prototype.moveTo=function(h,m,k,b,g){this.$m=h;this.tv=m;this.aX=k;this.$W=b;this.b6=g;this.BA=!0};a.prototype.setPosition=function(h,m,k,b){this.ux=h;this.cF=m;this.eF=k;this.bF=b};a.prototype.Fq=function(){return this.ux};a.prototype.Eq= function(){return this.cF};a.prototype.nz=function(){return this.eF};a.prototype.pD=function(){return this.bF};a.prototype.af=function(){return this.BA};a.prototype.zb=function(){if(this.BA)if(this.b6)this.ux=this.$m,this.cF=this.tv,this.eF=this.aX,this.bF=this.$W,this.BA=!1;else{for(var h=this.ux,m=this.$m-180,k=this.$m+180;hk;)h-=k-m;this.ux=h;this.ux=e(this.ux,this.$m,.5);this.cF=e(this.cF,this.tv,.5);this.eF=e(this.eF,this.aX,.5);this.bF=e(this.bF,this.$W,.5);this.ux==this.$m&& this.cF==this.tv&&this.eF==this.aX&&this.bF==this.$W&&(this.BA=!1)}};return a}); define("cu",["require","nt","mj","bv"],function(a){function e(){this.W=!1;this.ed=this.gb=this.Da=0;this.QT=void 0}var h=a("nt"),m=a("mj"),k=a("bv");e.prototype.nc=function(d){this.W!=d&&(this.W=d,this.QT=void 0)};e.prototype.setPosition=function(d,c,f){this.Da=d;this.gb=c;this.ed=f};e.prototype.Fq=function(){return this.Da};e.prototype.Eq=function(){return this.gb};e.prototype.nz=function(){return this.ed};e.prototype.af=function(){return!0};e.prototype.zb=function(){var d=h.Eea(k.Is().orientation); this.Da+=void 0===this.QT?0:d.Sa-this.QT;this.QT=d.Sa;this.gb=d.pitch;this.ed=d.bf;this.gb=void 0===g?d.pitch:g;this.ed=void 0===b?d.bf:b};var b=m.cj("debug")?m.DY("force_vr_roll"):void 0,g=m.cj("debug")?m.DY("force_vr_pitch"):void 0;return e}); define("g","require eg lo oH cy gi cD hy fr dw fn mF cu ek bv bc".split(" "),function(a){var e=a("eg"),h=a("lo"),m=a("oH"),k=a("cy"),b=a("gi"),g=a("cD"),d=a("hy"),c=a("fr"),f=a("dw"),l=a("fn"),p=a("mF"),q=a("cu"),n=a("ek"),r=a("bv"),t=a("bc"),u=h.extend(b,function(v,w,x){b.call(this);this.j=v;this.yc=this.j.yc;this.ga=w;this.Gc=x;this.By=this.Jx=this.NK=this.NV=this.W=!1;this.cc=new f;this.nq=new p;this.ed=this.gb=this.Da=0;this.La=90;this.NC=1;this.Bh=void 0;this.s2=this.IJ=5;this.Yy=!1;this.lb= new l;this.lb.bind(l.it,this.fM,this,!0);this.lb.bind(l.Yo,this.jy,this,!0);this.lb.bind(l.Gi,this.Up,this,!0);this.lb.bind(l.Fi,this.Tp,this,!0);this.il=new d;this.il.bind(m.pa,this.Ena,this);this.Ix=!1;this.Em=new c(this.j);this.Em.bind(c.r0,this.Pna,this,!0);this.us=new q;r.bind(m.pa,this.Zn,this,!0);this.Zn()});u.prototype.clear=function(){this.lb.unbind(l.it,this.fM,this,!0);this.lb.unbind(l.Yo,this.jy,this,!0);this.lb.unbind(l.Gi,this.Up,this,!0);this.lb.unbind(l.Fi,this.Tp,this,!0);this.lb.Ql(); this.lb=null;this.il.unbind(m.pa,this.Ena,this);this.il=null;this.Em.unbind(c.r0,this.Pna,this,!0);this.Em.clear();this.Em=null;r.unbind(m.pa,this.Zn,this,!0);this.Gc=this.ga=this.cc=null;this.aS();this.j=this.yc=null};u.prototype.setCamera=function(v){this.cc.reset();this.nq.reset();this.lb.setCamera(v);this.IJ=v.get("automaticRotationSpeed");this.s2=v.get("automaticZoomSpeed")};u.prototype.Pj=function(v){function w(z){return e(v).contains(z)}e.isArray(v)||(v=[v]);var x=0,y=0,A=0,B=!1;w(n.Kf)||(w(n.pE)? x=-this.IJ:w(n.qE)&&(x=+this.IJ),w(n.oE)?y=-this.IJ:w(n.rE)&&(y=+this.IJ),w(n.Dt)?A=-this.s2:w(n.Et)&&(A=+this.s2),w(n.X)&&(B=!0),w(n.Iga)&&(A*=2),w(n.iga)&&(x*=10,y*=10),x*=this.NC,y*=this.NC);this.Kc(x,y,0,A,0,0,0,0,B,!0,!0,!0)};u.prototype.setPosition=function(v,w,x,y){this.Da=v;this.gb=w;this.ed=x;this.La=y;this.NC=this.La/90;this.il.setPosition(this.Da,this.gb,this.ed);this.us.setPosition(this.Da,this.gb,this.ed);this.lb.PD(this.La);this.nq.setPosition(this.Da,this.gb,this.ed,this.La)};u.prototype.moveTo= function(v,w,x,y,A){this.nq.moveTo(v,w,x,this.Gc.rva(y),A);this.NV=!1;this.cc.reset();this.Oh()};u.prototype.fea=function(v,w,x){this.Kc(0,0,0,0,v,w,x,0,!1,!1,!1)};u.prototype.af=function(){return this.W&&(this.By||this.B_())?!0:!1};u.prototype.$Ta=function(){this.By=this.Yy=!1};u.prototype.B_=function(){return this.W?this.Yy?!0:this.us.W?this.us.af()||this.cc.af():this.il.W?this.Ix?!0:this.il.af()||this.cc.af():this.cc.af()||this.nq.af():!1};u.prototype.zb=function(v){this.Yy=!1;this.cc.zb(v);this.By= !1;var w=this.La;if(this.us.W){this.us.zb(v);v=this.us.Fq()+this.cc.sx;var x=this.us.Eq();var y=this.us.nz()}else this.nq.af()?(this.nq.zb(v),v=this.nq.Fq(),x=this.nq.Eq(),y=this.nq.nz(),w=this.nq.pD()):(this.il.W?(this.Ix=!1,this.il.zb(v),v=this.il.Fq()+this.cc.sx,x=this.il.Eq(),this.NK&&(x+=this.cc.aF),y=this.il.nz()):(v=this.Da+this.cc.sx,x=this.gb+this.cc.aF,y=0),w+=this.cc.mja);this.Gc.Mo(w);this.ga.setPosition(v,x,y,this.Gc.Ag(),this.Gc.Lv());this.Da=this.ga.Tc();this.gb=this.ga.Oc();this.ed= this.ga.Qf();this.La=this.ga.Nv();if(this.NV&&this.ga.rwa()){w=this.cc.CO;if(this.ga.qwa()||this.ga.swa())w=-w;v=this.cc.IM;if(this.ga.twa()||this.ga.pwa())v=-v;this.Kc(w,v,0,0,0,0,0,0,!0,!1,!1,!0)}};u.prototype.Fq=function(){return this.Da};u.prototype.Eq=function(){return this.gb};u.prototype.nz=function(){return this.ed};u.prototype.pD=function(){return this.La};u.prototype.nc=function(v){this.W!=v&&((this.W=v)?(this.Jy(this.lb.TB==g.ft?t.jA:void 0),this.lb.Oq(this.j.getParent()),this.Oh()):(this.aS(), this.lb.Ql()),this.oaa())};u.prototype.$P=function(v){this.Jx!=v&&(this.Jx=v,this.oaa(),this.Ix=!0)};u.prototype.Cz=function(v){this.Em.nc(v)};u.prototype.oaa=function(){this.il.nc(this.W&&this.Jx&&!r.isPresenting());this.us.nc(this.W&&r.isPresenting())};u.prototype.Ena=function(){this.Oh()};u.prototype.aQ=function(v){this.NK=v;this.il.e_a(this.NK)};u.prototype.Dz=function(v){this.lb.Dz(v);this.Jy(this.lb.TB==g.ft?t.jA:void 0)};u.prototype.UD=function(v){this.lb.UD(v)};u.prototype.Zn=function(){this.oaa(); this.Oh()};u.prototype.fM=function(v){var w=!this.us.W&&(!this.il.W||this.NK);if(this.lb.TB==g.Rz){var x=void 0;if(0!=v.rw||0!=v.Vv){var y=25A?x=y?t.Gfa:t.Ffa:22.5<=A&&67.5>A?x=y?t.Ifa:t.Pfa:67.5<=A&&112.5>A?x=y?t.Hfa:t.Ofa:112.5<=A&&157.5>A?x=y?t.Jfa:t.Qfa:157.5<=A||-157.5>A?x=y?t.Nfa:t.Ufa:-157.5<=A&&-112.5>A?x=y?t.Mfa:t.Tfa:-112.5<=A&&-67.5>A?x=y?t.Kfa:t.Rfa:-67.5<=A&&-22.5>A&&(x=y?t.Lfa:t.Sfa)}this.Jy(x);this.Kc(v.rw, v.Vv,0,0,v.XI,v.zI,0,0,!1,!1,!1,w)}else this.Kc(v.rw,v.Vv,0,0,v.XI,v.zI,0,0,!1,!1,w,w)};u.prototype.jy=function(v){this.Kc(0,0,0,v.fWa,0,0,0,v.pca,!1,!0,!1,!0)};u.prototype.Kc=function(v,w,x,y,A,B,z,C,H,D,I,F){var N=!1;this.yc.get("rotationEnabled")&&(N=this.cc.eea(v,w,x,A,B,z,D,I,F)||N);this.yc.get("zoomEnabled")&&(N=this.cc.i_a(y,C)||N);N&&(this.nq.reset(),this.NV=H,this.Oh())};u.prototype.Oh=function(){this.By=!0;this.trigger(new k(u.qh))};u.prototype.Up=function(){this.Yy=!0;this.trigger(new k(u.Gi)); this.lb.TB==g.ft&&this.Jy(t.Zh)};u.prototype.Tp=function(){this.trigger(new k(u.Fi));this.lb.TB==g.ft&&this.Jy(t.jA)};u.prototype.Pna=function(v){this.Pj(v.data.Exa);0>v.data.Exa.indexOf(n.Kf)&&this.j.Jb().trigger(new k(m.vE,{pQ:v}))};u.prototype.Jy=function(v){this.Bh!=v&&this.W&&(this.Bh&&this.j.AI(this.Bh),(this.Bh=v)&&this.j.UZ(this.Bh))};u.prototype.aS=function(){this.Bh&&(this.j.AI(this.Bh),this.Bh=void 0)};u.qh="position change request";u.Gi="user interaction start";u.Fi="user interaction end"; return u});define("mN",["require","lP","nx"],function(a){var e=a("lP");return a("nx").define("TargetRotationalCameraMovement",e,function(){e.call(this)})}); define("P","require lo oH kO cy gi nx gM mN oj bF".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("kO"),k=a("cy"),b=a("gi"),g=a("nx");a("gM");a("mN");var d=a("oj"),c=a("bF"),f=e.extend(b,function(l,p,q){b.call(this);this.j=l;this.ga=p;this.Gc=q;this.LG=this.Oa=null;this.Bl=this.Sm=!1;this.sk=void 0;this.aG=[];this.yC=0;this.V=null;this.gb=this.Da=0;this.La=90});f.prototype.clear=function(){this.end();this.ga=this.j=null};f.prototype.start=function(l){this.MPa(l);this.nNa();this.Bl=!1;this.bS(); this.Sm=!1;this.Oh();this.Dj()};f.prototype.end=function(){null!=this.Oa&&(this.Kia(),this.Sm=this.Bl=!1,this.V=null,this.Dj())};f.prototype.EXa=function(){this.Oa&&this.Oa.get("restartMovementOnUserInteraction")?this.Sm||(this.KN(),this.o$(),this.V=null,this.Sm=!0,this.Dj()):(this.V=null,this.pause())};f.prototype.HXa=function(){this.Sm&&(this.Sm=!1,this.ema()||this.j$())};f.prototype.MPa=function(l){this.Kia();this.Oa=l;this.Oa.bind(h.Jw,this.Toa,this,!0);this.Oa.bind(h.tE,this.Soa,this,!0);this.Oa.bind(h.G("movementIndex"), this.eC,this,!0);this.aG=this.Oa.get("movements",[])};f.prototype.Kia=function(){this.o$();null!=this.Oa&&(this.Oa.unbind(h.Jw,this.Toa,this),this.Oa.unbind(h.tE,this.Soa,this),this.Oa.unbind(h.G("movementIndex"),this.eC,this),this.Oa.set("movementIndex",-1),this.Oa=null,this.aG=[])};f.prototype.Lj=function(){return this.Oa?this.Bl?m.Eb:m.X:m.T};f.prototype.setPosition=function(l,p,q,n){this.Da=l;this.gb=p;this.La=n};f.prototype.af=function(){return!this.Oa||!this.V||this.Bl||this.Sm||this.ema()? !1:!0};f.prototype.zb=function(l){if(this.af()){this.V.zb(l);l=this.V.cb("hfov");if(this.Gc.Twa()){var p=this.V.Yba("hfov");p.from=this.Gc.eY(p.from);p.to=this.Gc.eY(p.to);l=this.Gc.eY(l)}this.ga.setPosition(this.V.cb("yaw"),this.V.cb("pitch"),0,l,this.Gc.Lv());this.Da=this.ga.Tc();this.gb=this.ga.Oc();this.La=this.ga.Nv();this.V.Re()&&this.sMa()}};f.prototype.Fq=function(){return this.Da};f.prototype.Eq=function(){return this.gb};f.prototype.pD=function(){return this.La};f.prototype.play=function(){this.Bl&& (this.Bl=!1,this.V||this.eC(),this.bS(),this.Oh(),this.Dj())};f.prototype.pause=function(){this.Bl||(this.Bl=!0,this.KN(),this.Dj())};f.prototype.Toa=function(){this.play()};f.prototype.Soa=function(){this.pause()};f.prototype.nNa=function(){this.yC=0;var l=this.Oa.get("movementIndex",-1);-1==l&&(l=0);this.AV(l)};f.prototype.pNa=function(){this.yC++;var l=this.Oa.get("repeat",1);0=q?this.Ak(t,q-360,q):this.Ak(t,q,q+360);break;default:t=this.Ak(t,q-180,q+180)}}else g.Na("DistanceRotationalCameraMovement",l)&&(t=q+l.get("yawDelta",0),this.ga.iC&&(t=Math.min(Math.max(-180,t),180)),u=n+l.get("pitchDelta",0),p=r+l.get("hfovDelta",0),this.ga.setPosition(t,u,0,p,this.Gc.Lv()),this.ga.iC&&(t=this.ga.Tc())); u=this.ga.Oc();p=this.ga.Nv();return new d(l.get("easing"),[new c("yaw",q,t,l.get("yawSpeed")),new c("pitch",n,u,l.get("pitchSpeed")),new c("hfov",r,p,l.get("hfovSpeed"))],l.get("duration"))};f.prototype.bS=function(){this.sk=void 0};f.prototype.KN=function(){if(this.V){this.sk=void 0;var l=this.V&&this.V.Yba("yaw");l&&(l.to>l.from?this.sk="right":l.toq;)l-=q-p;return l};f.prototype.Oh=function(){this.trigger(new k(f.qh))};f.prototype.DRa=function(){this.trigger(new k(f.E0))};f.prototype.Dj=function(){this.trigger(new k(f.Ec))};f.qh="position change request";f.E0="sequence end";f.Ec="playback state change";return f}); define("bs","require eg lo oH cy gi ip hf g P ek bv kO".split(" "),function(a){a("eg");var e=a("lo"),h=a("oH"),m=a("cy"),k=a("gi"),b=a("ip"),g=a("hf"),d=a("g"),c=a("P"),f=a("ek"),l=a("bv"),p=a("kO"),q=e.extend(k,function(n,r){k.call(this);this.j=n;this.j.bind(h.kc,this.hc,this);l.bind(h.pa,this.Zn,this,!0);this.Gc=r;this.q9=!1;this.La=this.ed=this.gb=this.Da=void 0;this.xs=this.ws=this.IL=this.LL=this.KL=this.JL=!1;this.Zm=!0;this.DF=this.$p=0;this.W=!1;this.Cm=null;this.UK=5E3;this.qj=this.Fh=null; this.cs=[];this.oi=this.Sw=p.T;this.ga=new b(n);this.Ub=new d(this.j,this.ga,this.Gc);this.Ub.bind(d.qh,this.Rp,this,!0);this.Ub.bind(d.Gi,this.Up,this,!0);this.Ub.bind(d.Fi,this.Tp,this,!0);this.Bm=new g(this.j,this.ga,this.Gc);this.Bm.bind(g.qh,this.Rp,this,!0);this.Ze=new c(this.j,this.ga,this.Gc);this.Ze.bind(c.qh,this.Rp,this,!0);this.Ze.bind(c.E0,this.oy,this,!0);this.Ze.bind(c.Ec,this.Uoa,this,!0)});q.prototype.clear=function(){this.Fk();this.Ub.unbind(d.qh,this.Rp,this);this.Ub.unbind(d.Gi, this.Up,this,!0);this.Ub.unbind(d.Fi,this.Tp,this,!0);this.Ub.clear();this.Ub=null;this.Bm.unbind(g.qh,this.Rp,this,!0);this.Bm.clear();this.Bm=null;this.Ze.unbind(c.qh,this.Rp,this);this.Ze.unbind(c.E0,this.oy,this);this.Ze.unbind(c.Ec,this.Uoa,this);this.Ze.clear();this.ga=this.Ze=null;this.j.unbind(h.kc,this.hc,this);l.unbind(h.pa,this.Zn,this,!0);this.j=null;this.Ca&&(this.Ca.unbind(h.G("sequences"),this.py,this,!0),this.Ca=null);this.xW([])};q.prototype.end=function(){this.Sw=p.T;this.Fk();this.Ub.nc(!1); this.Bm.nc(!1);this.Ze.end();this.W=!1;this.lv(0,0,0);this.qj=this.Fh=null;this.Ca&&(this.Ca.unbind(h.G("sequences"),this.py,this,!0),this.Ca=null);this.xW([]);this.UC()};q.prototype.start=function(n,r){this.Sw=p.X;this.W=!0;this.lv(0,0,0);this.qN(n);this.bPa(r);this.aqa();this.PW(this.qj);this.Bm.nc(!0);this.UC()};q.prototype.Lj=function(){return this.oi};q.prototype.play=function(n){this.Sw=p.X;this.Ze.Lj()==p.Eb?this.Ze.play():this.Ze.Lj()==p.T&&(!n&&this.qj?this.PW(this.qj):this.JF()||this.mq()); this.UC()};q.prototype.resume=function(){this.Sw==p.Eb&&(this.Ub.$Ta(),this.play(!0))};q.prototype.pause=function(){this.Ub.Pj(f.Kf);this.Sw==p.X&&(this.Sw=p.Eb,this.Ze.Lj()==p.X?(this.Ze.pause(),this.UC()):this.JF()&&this.Fk())};q.prototype.stop=function(){this.Sw=p.T;this.Ze.Lj()!=p.T&&this.Ze.end();this.Ub.Pj(f.Kf);this.UC();this.JF()&&this.Fk()};q.prototype.moveTo=function(n,r,t,u,v){this.Ub.moveTo(n,r,t,u,v)};q.prototype.xW=function(n){this.cs.forEach(function(r){r.unbind(h.Jw,this.Qqa,this, !0)}.bind(this));this.cs=n;this.cs.forEach(function(r){r.bind(h.Jw,this.Qqa,this,!0)}.bind(this))};q.prototype.Zn=function(){this.ga.c_(l.isPresenting())};q.prototype.Pj=function(n){this.Ub.Pj(n)};q.prototype.fea=function(n,r,t){this.Ub.fea(n,r,t)};q.prototype.$P=function(n){this.Jx!=n&&(this.Jx=n,this.Ub.$P(this.Jx),this.Ma())};q.prototype.aQ=function(n){this.Ub.aQ(n)};q.prototype.Dz=function(n){this.Ub.Dz(n)};q.prototype.UD=function(n){this.Ub.UD(n)};q.prototype.Cz=function(n){this.Ub.Cz(n)};q.prototype.Yv= function(n){this.W&&(this.Ub.af()||l.isPresenting()||this.Jx&&(this.Ub.W||!this.Ub.NK)?(this.Ub.B_()&&this.Ze.EXa(),this.Ub.zb(n),this.Hl(this.Ub.Fq(),this.Ub.Eq(),this.Ub.nz(),this.Ub.pD()),this.Ma()):this.Ze.Sm?(this.Ze.HXa(),this.Ma()):this.Ze.af()?(this.Ze.zb(n),this.Hl(this.Ze.Fq(),this.Ze.Eq(),0,this.Ze.pD()),this.Ma()):this.Bm.af()?(this.Bm.zb(n),this.Hl(this.Bm.Fq(),this.Bm.Eq(),0,this.Bm.pD()),this.Ma()):this.q9?(this.q9=!1,this.Gc.Mo(this.j.Ag()),this.ga.setPosition(this.j.Tc(),this.j.Oc(), this.j.Qf(),this.Gc.Ag(),this.Gc.Lv()),this.Hl(this.ga.Tc(),this.ga.Oc(),this.ga.Qf(),this.ga.Nv()),this.Ma()):(this.lv(0,0,0),this.Sw==p.X&&this.Ze.Lj()!=p.X&&(this.JF()||this.mq())))};q.prototype.wd=function(){this.BSa();this.aqa()};q.prototype.BSa=function(){var n=this.j.Tc()-this.Da||0,r=this.j.Oc()-this.gb||0;this.j.Qf();this.lv(n,r,this.j.Ag()-this.La||0)};q.prototype.aqa=function(){this.Da=this.j.Tc();this.gb=this.j.Oc();this.ed=this.j.Qf();this.La=this.j.Ag();this.Ub.setPosition(this.Da,this.gb, this.ed,this.La);this.Ze.setPosition(this.Da,this.gb,this.ed,this.La);this.Bm.setPosition(this.Da,this.gb,this.ed,this.La)};q.prototype.qN=function(n){this.ga.Ai(n)};q.prototype.bPa=function(n){this.Ca=n;this.UK=n.get("timeToIdle",5E3);this.Fh=n.get("idleSequence");this.qj=n.get("initialSequence");this.Ub.setCamera(n);this.Bm.setCamera(n);n.bind(h.G("sequences"),this.py,this,!0);this.xW(n.get("sequences",[]))};q.prototype.py=function(){this.xW(this.Ca.get("sequences",[]))};q.prototype.Qqa=function(n){this.PW(n.source)}; q.prototype.Rp=function(){this.Fk();this.Ma()};q.prototype.Up=function(){this.trigger(new m(q.Gi))};q.prototype.Tp=function(){this.trigger(new m(q.Fi))};q.prototype.PW=function(n){n?(this.Ub.nc(!n.get("mandatory",!1)),this.Ze.start(n)):this.oy()};q.prototype.oy=function(){this.Ub.nc(!0);this.mq()};q.prototype.Uoa=function(){this.UC()};q.prototype.hc=function(){this.q9=!0;this.Ma()};q.prototype.JF=function(){return null!=this.Cm};q.prototype.mq=function(){this.Fk();var n=this;this.Cm=setTimeout(function(){n.Cm= null;n.TL()},this.UK)};q.prototype.Fk=function(){this.Cm&&(clearTimeout(this.Cm),this.Cm=null)};q.prototype.TL=function(){this.PW(this.Fh)};q.prototype.Ma=function(){this.trigger(new m(q.Db))};q.prototype.Hl=function(n,r,t,u){this.j.setPosition(n,r,t,u)};q.prototype.lv=function(n,r,t){var u=!1,v=.001>Math.abs(n)&&.001>Math.abs(r)&&.001>Math.abs(t);v||this.Jx?(u=1!=this.Zm,this.xs=this.ws=this.IL=this.LL=this.KL=this.JL=!1,this.Zm=!0):(this.JL!=-.001>n&&(this.JL=!this.JL,u=!0),this.KL!=.001r&&(this.IL=!this.IL,u=!0),this.LL!=.001t&&(this.ws=!this.ws,u=!0),this.xs!=.001l;)f-=360;return f};e.prototype.Qua=function(){return e.Yea};e.Yea=TDV.fga.mBa;var d=k.cj("debug")?k.DY("force_vr_roll"):void 0,c=k.cj("debug")?k.DY("force_vr_pitch"):void 0;return e}); define("pe",["require","gF","lE","v","bv"],function(a){function e(g,d,c,f,l){this.j=g;this.Nj=d;g=this.j.M;this.xQ=g.get("transitionMode","blending");d=g.get("transitionDuration",500);this.tKa(c,f)&&(this.xQ=e.TQ,d=1500);this.KH=g.get("blendingTransitionDuration",d);this.IUa=g.get("firstTransitionDuration",d);this.Uua=g.get("disolveTransitionDuration",d);this.FAa=g.get("translationTransitionDuration",1E3);g.get("translationTransitionSpeed");this.GAa=g.get("translationTransitionEnabled",!0);this.uya= g.get("originTransitionDuration",3E3);this.F_=1E3;this.UWa=g.get("modelToPanoramaTraslationDuration",1500);this.BXa=g.get("panoramaToModelTraslationDuration",1E3);this.Ug=c;this.m_a=!c||c.zca();this.n_a=!c||c.Lwa();this.Dc=f;this.oAa=!f||f.zca();this.xea=!f||f.Lwa();this.D_a=!!f&&this.w6(f);d=(this.VD=l)&&l.get("initialPosition")||new h;this.Cg=new h;this.Cg.set("yaw",d.get("yaw",0));this.Cg.set("pitch",d.get("pitch"));this.Cg.set("hfov",d.get("hfov"));this.Ff=new m;this.Ff.set("yaw",this.Cg.get("yaw")); this.Ff.set("pitch",this.Cg.get("pitch"));this.Ff.set("hfov",this.Cg.get("hfov"));this.Ff.set("stereographicFactor",0);this.Do=[];if(!c){this.Do=l&&l.get("displayMovements")||[];for(d=this.Do.length-1;0<=d;d--)this.Ff.set("yaw",this.Ff.get("yaw",this.Do[d].get("targetYaw"))),this.Ff.set("pitch",this.Ff.get("pitch",this.Do[d].get("targetPitch"))),this.Ff.set("hfov",this.Ff.get("hfov",this.Do[d].get("targethfov"))),this.Ff.set("stereographicFactor",this.Ff.get("stereographicFactor",this.Do[d].get("stereographicFactor"))); l=l&&l.get("displayOriginPosition")||this.Cg;this.Ff.set("yaw",l.get("yaw"));this.Ff.set("pitch",l.get("pitch"));this.Ff.set("hfov",l.get("hfov"));this.Ff.set("stereographicFactor",l.get("stereographicFactor"))}this.UI=this.xQ==e.xn&&this.GAa&&this.oAa&&this.YJa(c,f)||null;var p=this.xQ==e.xn&&this.Dc&&this.oAa&&this.Nj&&this.Dc.get("modelLocations")||[];l=this.xQ==e.xn&&this.Ug&&this.m_a&&this.Nj&&this.Ug.get("modelLocations")||[];var q=[];l.forEach(function(r){p.forEach(function(t){r.get("model")== t.get("model")&&q.push([r,t])})});var n=this.Nj&&this.Nj.get("model");this.oc=this.ic=null;1=g.HAVE_CURRENT_DATA&&b.MKa.drawImage(g,0,0,d,c);b.image=b.Dp}else b.image=g;b.Jr&&b.image!=b.Jr&&(k.jY(b.Jr),delete b.Jr);b.needsUpdate=!0;(b=k.mca(b))&&b.isShaderMaterial&&(b.needsUpdate=!0);h.Kwa()},OUa:function(b){b?h.Dca(b)?b=e.sf(b,!1):h.Ywa(b)?b=this.eI():!h.uI(b)||b.readyState>=b.HAVE_CURRENT_DATA&&0 0.0)"," color.rgb /= color.a;"]));if(g.fz){var l=b.image.width||b.image.videoWidth,p=b.image.height||b.image.videoHeight,q=.5*Math.min(l,p)*g.fz;d.uniforms.blendingLimit={type:"v2",value:new THREE.Vector2(q/l,q/p)};c=c.concat(["uniform vec2 blendingLimit;"]);f=f.concat(" float xCoef = 0.0;, float yCoef = 0.0;, if (vUV.x < blendingLimit.x) {, xCoef = 1.0 - (vUV.x / blendingLimit.x);, xCoef = xCoef * xCoef;, } else if ((1.0 - vUV.x) < blendingLimit.x) {, xCoef = 1.0 - ((1.0 - vUV.x) / blendingLimit.x);, xCoef = xCoef * xCoef;, }, if (vUV.y < blendingLimit.y) {, yCoef = 1.0 - (vUV.y / blendingLimit.y);, yCoef = yCoef * yCoef;, } else if ((1.0 - vUV.y) < blendingLimit.y) {, yCoef = 1.0 - ((1.0 - vUV.y) / blendingLimit.y);, yCoef = yCoef * yCoef;, }, alpha = alpha * (1.0 - sqrt(xCoef + yCoef));".split(","))}g.ys&& (d.uniforms.chromaColor={type:"v3",value:new THREE.Vector3(parseInt(g.ys.substr(1,2),16)/255,parseInt(g.ys.substr(3,2),16)/255,parseInt(g.ys.substr(5,2),16)/255)},d.uniforms.chromaThreshold={type:"f",value:g.LO},d.uniforms.chromaSmoothing={type:"f",value:g.KO},c=c.concat(["uniform vec3 chromaColor;","uniform float chromaThreshold;","uniform float chromaSmoothing;"]),f=f.concat(" float maskY = 0.2989 * chromaColor.r + 0.5866 * chromaColor.g + 0.1145 * chromaColor.b;{ float maskCr = 0.7132 * (chromaColor.r - maskY);{ float maskCb = 0.5647 * (chromaColor.b - maskY);{ float Y = 0.2989 * color.r + 0.5866 * color.g + 0.1145 * color.b;{ float Cr = 0.7132 * (color.r - Y);{ float Cb = 0.5647 * (color.b - Y);{ float chromaBlendValue = smoothstep(chromaThreshold, chromaThreshold + chromaSmoothing, distance(vec2(Cr, Cb), vec2(maskCr, maskCb)));{ alpha = alpha * chromaBlendValue;".split("{"))); f=f.concat(["\tgl_FragColor = vec4(color"+(g.uP?".bgr":".rgb")+", alpha);"]);b.format=THREE.RGBAFormat;d.fragmentShader=[].concat(c,["void main() {"],f,["}"]).join("\n")}else d.fragmentShader="uniform sampler2D texture;\nvarying vec2 vUV;\nvoid main() {\n\tgl_FragColor = texture2D(texture, vUV);\n}";b=new THREE.ShaderMaterial(d);this.GA(b);return b},dispose:function(b){Array.isArray(b)||(b=[b]);b.forEach(function(g){var d=k.eca(g);d&&m.dispose(d);g.dispose()})},GA:function(b){b.side=THREE.FrontSide; b.transparent=!0;b.depthTest=!1;b.needsUpdate=!0;b.userData={};b.userData.oxa={};m.TZa(k.eca(b),b)},Wda:function(b,g){b.userData.oxa.Ho=g},Mva:function(b){return b.userData.oxa.Ho}};e.prototype.iYa=function(){return this.AQ||this.uP||this.fz||this.ys||this.premultipliedAlpha};e.prototype.isEqual=function(b){return this.AQ===b.AQ&&this.uP===b.uP&&this.fz===b.fz&&this.ys===b.ys&&this.LO===b.LO&&this.KO===b.KO&&this.premultipliedAlpha===b.premultipliedAlpha&&this.side===b.side};k.em=e;return k}); define("ep",["require","gU","ct"],function(a){function e(b){return Array.isArray(b)?b:b?[b]:[]}var h=a("gU"),m=a("ct"),k={create:function(b,g){var d=new THREE.Mesh(b,g);d.overdraw=!1;d.matrixAutoUpdate=!1;d.userData.Uv={};d.userData.Uv.attributes={};e(g).forEach(function(c){m.Wda(c,d)});return d},Lua:function(b){var g=new THREE.Group;k.forEach(b,function(d){g.add(d)});return g},nZa:function(b,g){e(g).forEach(function(d){m.Wda(d,null)});m.dispose(b.material);b.material=g;e(g).forEach(function(d){m.Wda(d, b)})},oz:function(b){return e(b.material)},pVa:function(b,g){if(b.layers.mask&g.layers.mask){var d=k.oz(b);return h.oVa(b.geometry,g,b.matrixWorld).map(function(c){return d[c]})}return[]},Rda:function(b,g){b.geometry=g},lVa:function(b,g){var d=[];k.Hj(b,function(c){var f=k.oz(c);g.forEach(function(l){var p=h.kVa(c.geometry,c.matrixWorld,l);if(p){var q=m.eca(f[p.materialIndex]);l=q.image;l==q.Jr&&(l=q.Jr.Ra);q=Math.round(p.JAa*l.width-.5);q=0>q?0:q>l.width-1?l.width-1:q;p=Math.round((1-p.VAa)*l.height- .5);p=0>p?0:p>l.height-1?l.height-1:p;d.push({x:q,y:p,source:l})}})});return d},KI:function(b,g){k.forEach(b,function(d){g?g.add(d):d.parent&&d.parent.remove(d)})},Lz:"panoramaId",bE:"panoramaFrameId",H_:"panoramaOverlayId",G_:"levelIndex",setAttribute:function(b,g,d){k.Hj(b,function(c){c.userData.Uv.attributes[g]=d})},getAttribute:function(b,g){return b.userData.Uv.attributes[g]},hva:function(b,g,d){for(var c=[],f=0,l=b.length;fR?(Q=I,R=L):L>=w&&L.75*w?A.push(Q):A.push(W):(W&&0>A.indexOf(W)&&A.push(W),Q&&0>A.indexOf(Q)&&A.push(Q))}}w=[];for(x=0;xw.indexOf(z)&&w.push(z);A=w;a:{w=this.CE; x=A;for(z=0;zx.indexOf(w[z])){w=!1;break a}for(z=0;zw.indexOf(x[z])){w=!1;break a}w=!0}w=!w;this.CE=A;H=0;for(D=y.length;HN.indexOf(L)&&N.push(L)}}W=0;for(G=N.length;WI.Lq.indexOf(L)&&x.push(L);W=0;for(G=F.length;Wy.indexOf(L)?L.userData.Po.XD.unload():b(L)?this.K9(L,!1):C.push(L);this.Yx=C;W=Math.max(r.uxa(),Math.round(1.25*x.length))-w.length;if(this.Yx.length>W)for(this.Yx.sort(function(U,O){return h(U).$wa-h(O).$wa}),C=this.Yx.splice(0,this.Yx.length-W),W=0,G=C.length;Ww.indexOf(L)&&(L=L.userData.Po.XD,L.unbind(d.Z,this.y$,this,!0),L.unbind(d.tc,this.z$,this,!0),L.STa());C=this.UF;this.UF=w;H=this.UF.slice();W=0;for(G=H.length;WC.indexOf(L)&&(L=L.userData.Po.XD,L.bind(d.Z, this.y$,this,!0),L.bind(d.tc,this.z$,this,!0),L.load())};r.prototype.y$=function(w){this.psa(w.source);this.trigger(d.Z)};r.prototype.z$=function(w){this.psa(w.source)};r.prototype.psa=function(w){w.unbind(d.Z,this.y$,this,!0);w.unbind(d.tc,this.z$,this,!0);var x=w.material(),y=this.UF,A=y.indexOf(x);0<=A&&y.splice(A,1);this.Yx.push(x);this.K9(x,!0);w=w.Ho();0<=h(w).Lq.indexOf(x)&&this.l2(w,h(w).$v);this.hta()};r.prototype.l2=function(w,x){var y=h(w).$v;y=y?y.length:void 0;var A=h(w).Lq;A=A?A.length: void 0;h(w).$v=x;h(w).Lq=x.filter(b);f.fQ(w,0==h(w).Lq.length&&(h(w).Lca||r.O0)==r.$o);x=(x=h(w).$v)?x.length:void 0;var B=h(w).Lq;B=B?B.length:void 0;A===B&&y===x||w.dispatchEvent({type:d.ec,Sg:x?100-100*B/x:100});A!==B&&0===B&&w.dispatchEvent({type:d.Z})};r.prototype.K9=function(w,x){if(x!=w.visible){var y=l.Mva(w),A=p.getAttribute(y,p.Lz),B=p.getAttribute(y,p.G_);if(void 0===A||void 0===B)w.visible=x;else{var z=q.Ok(this.A.qg).filter(e);A=p.mY(z,p.Lz,A);B=p.mY(A,p.G_,B);var C=p.oz(y).indexOf(w); w=B.map(function(H){return p.oz(H)[C]});for(y=0;ythis.Fp.indexOf(h)&&this.Fp.push(h);if("object"===typeof h&&null!==h){var k=h[this.vL];if(!k){k=this.vL;for(var b=[],g=0;8>g;g++)b.push(Math.floor(16*Math.random()).toString(16));k=h[k]=b.join("")}}else k=h;this.LT[k]=m;this.length=this.Fp.length};a.prototype.get=function(h){return this.LT["object"===typeof h&&null!== h?h[this.vL]:h]};a.prototype.WVa=function(h){return 0<=this.Fp.indexOf(h)};a.prototype.remove=function(h){var m=this.Fp.indexOf(h);0>m||(this.Fp.splice(m,1),"object"===typeof h&&null!==h?(m=h[this.vL],delete h[this.vL]):m=h,delete this.LT[m],this.length=this.Fp.length)};a.prototype.forEach=function(h){this.Fp.slice().forEach(function(m){h(m,this.get(m))}.bind(this))};a.prototype.dispose=function(){for(;this.Fp.length;)this.remove(this.Fp.pop());this.Fp=this.LT=null};return a}); define("ob",["require","lo","gi","z"],function(a){function e(){this.lD=[]}var h=a("lo"),m=a("gi"),k=a("z");a=h.extend(m,function(b){m.call(this);this.gf=b;this.Xc=[];this.vu=new k;this.wO=[];this.o4=[];this.eG=this.eG.bind(this)});a.prototype.vf=function(b){this.Xc.forEach(function(g){if(g.removeEventListener)g.removeEventListener(this.gf,this.eG);else if(g.unbind)g.unbind(this.gf,this.eG,this,!0);else throw"invalid instance type";}.bind(this));this.Xc=b.slice();this.Xc.forEach(function(g){if(g.addEventListener)g.addEventListener(this.gf, this.eG);else if(g.bind)g.bind(this.gf,this.eG,this,!0);else throw"invalid instance type";this.vu.WVa(g)||this.vu.set(g,new e)}.bind(this));this.aaa()};a.prototype.dispose=function(){this.vf([]);this.Xc=null;this.vu.dispose();this.o4=this.wO=this.vu=null};a.prototype.bm=function(b){this.wO.push(b);this.aaa();return this};a.prototype.Jo=function(b){this.o4.push(b);return this};a.prototype.Ds=function(b){this.Xc.forEach(function(g){b(g,this.vu.get(g).lD)}.bind(this))};a.prototype.Ul=function(b){b=this.vu.get(b).lD; return 0==b.length?null:b[b.length-1]};a.prototype.eG=function(b){var g=b.target||b.source;if(g=this.vu&&this.vu.get(g))g.lD.push(b),this.o4.forEach(function(d){d(b,this)}.bind(this)),this.aaa()};a.prototype.aaa=function(){if(0!=this.Xc.length){for(var b=0;bc;)g-=c-d;return g}var h=a("lo"),m=a("eN"),k=a("oj"),b=a("bF");a=h.extend(m,function(g,d,c,f){m.call(this,g,d,c,f);this.V=null;this.Hb=!1;this.Jm=0});a.prototype.Rg=function(){return this.Hb};a.prototype.mh=function(g){this.Hb||(this.V||(this.V=this.Jmthis.F.Do.length&&(this.Pb.eQ(!0),this.Hb=!0)))};a.prototype.rGa=function(){var g=e(this.j.Tc(),-180,180),d=this.j.Oc();this.j.Qf();var c=this.j.Ag(),f=this.j.A.$l,l=this.F.Cg.get("hfov");l={Sa:this.F.Cg.get("yaw"),pitch:this.F.Cg.get("pitch",d),bf:this.j.Qf(),Ee:l?this.Pb.iD(l):c,$l:0};this.Pb.nYa(this.F.Dc,l);l.Sa=e(l.Sa,g-180,g+180);var p=.5=c?e(g,c,c+360):e(g,c-360,c);break;default:g=e(g,c-180,c+180)}return new k(d.get("easing"),[new b("yaw",c,g,d.get("yawSpeed")),new b("pitch",f,r,d.get("pitchSpeed")),new b("hfov",l,n,d.get("hfovSpeed")),new b("stereographicFactor",p,q,d.get("stereographicFactorSpeed"))],d.get("duration"))};return a}); define("fR",["require","lo","eN","oj","bF"],function(a){var e=a("lo"),h=a("eN"),m=a("oj"),k=a("bF");a=e.extend(h,function(b,g,d,c){h.call(this,b,g,d,c);this.V=null;this.Hb=!1});a.prototype.Rg=function(){return this.Hb};a.prototype.mh=function(b){if(!this.Hb){if(!this.V){var g=this.j.Oc(),d=this.j.Ag(),c=this.j.A.$l,f=this.F.Ff.get("stereographicFactor",0),l=Math.abs(c-f),p=0this.j.xb()?this.j.ZH():this.j.$H());this.da.bind(h.gA,this.mMa,this,!0)}};return a});define("hQ",["require","lo","ma","pe"],function(a){var e=a("lo"),h=a("ma"),m=a("pe");a=e.extend(h,function(k,b,g,d){h.call(this,k,b,g,d)});a.prototype.Vi=function(){this.F.Dc&&(this.F.mode==m.s1||this.F.mode==m.u1?this.F.Dc.set("minFaceSize",1024):this.F.Dc.set("minFaceSize",void 0))};return a}); define("hj",["require","lo","ma"],function(a){var e=a("lo"),h=a("ma");a=e.extend(h,function(m,k,b,g){h.call(this,m,k,b,g)});a.prototype.Vi=function(){this.Pb.Ai(this.F.Dc);var m=this.F.xea?this.F.Ff.get("stereographicFactor",0):0;this.Pb.TD(m);this.Pb.iw(this.F.Ff.get("yaw"),this.F.Ff.get("pitch",this.j.Oc()));(m=this.F.Ff.get("hfov"))||this.F.Ug||(m=this.Pb.Qua());m&&(m=this.Pb.iD(m),this.Pb.Mo(m),this.Pb.eQ(!this.F.xea))};return a}); define("gl",["require","lo","ma"],function(a){var e=a("lo"),h=a("ma");a=e.extend(h,function(m,k,b,g){h.call(this,m,k,b,g)});a.prototype.Vi=function(){this.Pb.Ai(this.F.Dc);var m=this.Pb.ZZ(this.F.Dc,this.j.Ag());this.Pb.Mo(m);this.Pb.iw(this.j.Tc()+this.F.UI.Ava(),this.j.Oc())};a.prototype.AD=function(){return!0};return a}); define("ou",["require","lo","eN","oj","bF"],function(a){var e=a("lo"),h=a("eN"),m=a("oj"),k=a("bF");a=e.extend(h,function(b,g,d,c){h.call(this,b,g,d,c);this.V=null;this.Hb=!1});a.prototype.Rg=function(){return this.Hb};a.prototype.mh=function(b){if(!this.Hb){if(!this.V){var g=this.j.Ag(),d=this.Pb.ZZ(this.F.Dc,g),c=!this.F.Cb()&&.01=1-.5*this.pv*this.pv/this.oR?this.pv=Math.sqrt(2*(1-this.Za)*this.oR):this.pvthis.j.xb()?this.j.ZH():this.j.$H());this.Dd=new k;this.Dd.set("targetX",c.x);this.Dd.set("targetY",c.y);this.Dd.set("targetZ",c.z);this.Dd.set("targetYaw",c.yaw);this.Dd.set("targetPitch", c.pitch);this.Dd.set("targetFov",c.fov);this.Dd.set("targetDistance",c.distance);this.Dd.set("duration",this.F.BXa);this.Dd.set("easing","quad_in_out");this.Dd.bind(h.gA,this.K7,this,!0);this.Oa=new m;this.Oa.set("movements",[this.Dd]);this.Oa.set("mandatory",!0);this.Oa.set("internal",!0);this.Oa.bind(h.sb,this.oy,this,!0);d.set("sequences",d.get("sequences").concat([this.Oa]));this.Oa.play();this.xN();this.s$=(new THREE.Vector3).set(c.x,c.y,c.z);this.BN=(new THREE.Vector3).set(this.F.ic.get("x"), this.F.ic.get("y"),this.F.ic.get("z"))}};var g=new THREE.Vector3;a.prototype.K7=function(){var d=this.F.ic.get("model").get("camera");d=g.set(d.get("x"),d.get("y"),d.get("z")).distanceTo(this.BN)/this.BN.distanceTo(this.s$);var c=Math.max(.01,Math.min(.99,(d-0)/.33));this.j.lQ(0d);this.F.Wv.set("position",c)};a.prototype.oy=function(){var d=this.F.ic.get("model").get("camera");d.set("sequences",d.get("sequences").filter(function(c){return c!=this.Oa}.bind(this)));this.Hb=!0;this.cN()};a.prototype.xN= function(){var d=this.F.ic.get("model");this.TM=d.get("postprocessing");this.UM=d.get("surfaceSelectionEnabled");d.set("postprocessing",!1);d.set("surfaceSelectionEnabled",!1)};a.prototype.cN=function(){var d=this.F.ic.get("model"),c=this.TM,f=this.UM;setTimeout(function(){d.set("postprocessing",c);d.set("surfaceSelectionEnabled",f)},30)};return a}); define("if","require lo oH nx gO fl dN eN".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("nx"),k=a("gO"),b=a("fl"),g=a("dN"),d=a("eN");a=e.extend(d,function(p,q,n,r){d.call(this,p,q,n,r);this.Hb=!1;this.NEa=0;this.OEa=1;this.DM=[];this.EL=[];this.DM.push(this.zra.bind(this))});a.prototype.Rg=function(){return this.Hb};a.prototype.mh=function(){if(this.F.Nj.get("model")!=this.F.oc.get("model"))this.koa();else{var p=this.DM;for(this.DM=[];0this.j.xb()?this.j.ZH():this.j.$H());this.Dd= new b;this.Dd.set("targetX",this.F.oc.get("x"));this.Dd.set("targetY",this.F.oc.get("y"));this.Dd.set("targetZ",this.F.oc.get("z"));if(this.F.VD.get("keepInitialPositionOnTranslation")){var q=this.F.Cg.get("yaw")+this.F.oc.get("yaw"),n=this.F.Cg.get("pitch"),r=this.F.Cg.get("hfov");this.Dd.set("targetYaw",q);void 0!==n&&this.Dd.set("targetPitch",n);void 0!==r&&this.Dd.set("targetFov",r)}this.Dd.set("duration",1500);this.Dd.set("easing","cubic_in_out");this.Dd.bind(h.gA,this.nMa,this,!0);this.Oa=new k; this.Oa.set("movements",[this.Dd]);this.Oa.set("mandatory",!0);this.Oa.set("internal",!0);this.Oa.bind(h.sb,this.koa,this,!0);p.set("sequences",p.get("sequences").concat([this.Oa]));this.Oa.play()};a.prototype.zra=function(){if(this.j.tf(this.F.Dc).get("ready")){var p=this.F.ic,q=this.F.oc,n=p.get("model"),r=n.get("objects").find(function(u){return m.Na("ProjectedMaterialModel3DObject",u)}),t=!r;r||(r=new g);this.F.Wv=r;r.set("sourceX",p.get("x"));r.set("sourceY",p.get("y"));r.set("sourceZ",p.get("z")); r.set("sourceYaw",p.get("yaw"));r.set("targetX",q.get("x"));r.set("targetY",q.get("y"));r.set("targetZ",q.get("z"));r.set("targetYaw",q.get("yaw"));p=this.j.tf(this.F.Ug);q=this.j.tf(this.F.Dc);p.set("alpha",1);q.set("alpha",.01);r.set("sourceFaces",this.j.IO(this.F.bAa,r.get("sourceFaces")));p.set("alpha",.01);q.set("alpha",1);r.set("targetFaces",this.j.IO(this.F.pAa,r.get("targetFaces")));p.set("alpha",1);q.set("alpha",.01);r.set("position",0);t&&n.set("objects",n.get("objects").concat([this.F.Wv])); this.EQa()}else this.DM.push(this.zra.bind(this))};a.prototype.qKa=function(){this.j.tf(this.F.Ug).set("alpha",0);this.tja()};a.prototype.tja=function(){(this.Fpa=void 0===this.Fpa?10:this.Fpa-1)?this.DM.push(this.tja.bind(this)):this.j.lQ(!0)};a.prototype.JHa=function(){this.j.lQ(!1)};var c=new THREE.Vector3,f=new THREE.Vector3,l=new THREE.Vector3;a.prototype.$Ja=function(){var p=this.F.ic;c.set(p.get("x"),p.get("y"),p.get("z"));var q=this.F.oc;f.set(q.get("x"),q.get("y"),q.get("z"));p=p.get("model").get("camera"); l.set(p.get("x"),p.get("y"),p.get("z"));return l.distanceTo(c)/f.distanceTo(c)};a.prototype.pta=function(){var p=this.$Ja();p=Math.max(0,Math.min(1,(p-this.NEa)/this.OEa));this.F.Wv.set("position",p);1>p&&this.EL.push(this.pta.bind(this))};a.prototype.koa=function(){var p=this.F.ic.get("model").get("camera");p.set("sequences",p.get("sequences").filter(function(q){return q!=this.Oa}.bind(this)));this.JHa();this.cN();this.Hb=!0};a.prototype.xN=function(){var p=this.F.ic.get("model"),q=this.F.Nj;this.TM= p.get("postprocessing");this.UM=p.get("surfaceSelectionEnabled");this.DNa=q.get("spritesEnabled");p.set("postprocessing",!1);p.set("surfaceSelectionEnabled",!1);q.set("spritesEnabled",!1)};a.prototype.cN=function(){var p=this.F.ic.get("model"),q=this.F.Nj,n=this.TM,r=this.UM,t=this.DNa;setTimeout(function(){p.set("postprocessing",n);p.set("surfaceSelectionEnabled",r);q.set("spritesEnabled",t)},500)};return a}); define("lk","require lo oH gO fl eN kP".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("gO"),k=a("fl"),b=a("eN"),g=a("kP");a=e.extend(b,function(c,f,l,p){b.call(this,c,f,l,p);this.Hb=!1});a.prototype.Rg=function(){return this.Hb};a.prototype.mh=function(){if(!this.Oa){var c=this.F.oc.get("model").get("camera");c.z_a();var f=Math.abs(c.get("pitch")-this.j.Oc()),l=30c);this.F.Wv.set("position",f)};a.prototype.oy=function(){var c=this.F.oc.get("model").get("camera");c.set("sequences",c.get("sequences").filter(function(f){return f!=this.Oa}.bind(this)));this.Hb=!0;this.cN()};a.prototype.xN=function(){var c=this.F.oc.get("model");this.TM=c.get("postprocessing");this.UM=c.get("surfaceSelectionEnabled");c.set("postprocessing",!1); c.set("surfaceSelectionEnabled",!1)};a.prototype.cN=function(){var c=this.F.oc.get("model"),f=this.TM,l=this.UM;setTimeout(function(){c.set("postprocessing",f);c.set("surfaceSelectionEnabled",l)},30)};return a});define("iS",["require","lo","ma"],function(a){var e=a("lo"),h=a("ma");a=e.extend(h,function(m,k,b,g,d){h.call(this,m,k,b,g);this.kFa=d});a.prototype.Vi=function(){this.kFa.call(this.L)};return a}); define("gf",["require","lo","eN"],function(a){var e=a("lo"),h=a("eN");a=e.extend(h,function(m,k,b,g){h.call(this,m,k,b,g)});a.prototype.Rg=function(){var m=this.j.Jb(),k=m&&m.uH;m=m&&m.WF;return!!k&&!k.get("visible")&&!!m&&!m.get("visible")};return a}); define("N",["require","lo","eN"],function(a){var e=a("lo"),h=a("eN"),m=e.extend(h,function(k,b,g,d){h.call(this,k,b,g,d);this.fv=null});m.prototype.Rg=function(){this.fv||(this.fv=this.F.Dc&&this.j.tf(this.F.Dc));return this.fv&&this.fv.get("ready")};m.prototype.AD=function(){return!0};m.Wfa=e.extend(m,function(k,b,g,d){m.call(this,k,b,g,d)});m.Wfa.prototype.AD=function(){return!1};m.Zfa=e.extend(m,function(k,b,g,d){m.call(this,k,b,g,d)});m.Zfa.prototype.Rg=function(){this.fv||(this.fv=this.F.Dc&& this.j.tf(this.F.Dc));return this.fv&&(this.fv.get("ready")||this.fv.mda())};return m}); define("nJ",["require","lo","bm","cy","gi"],function(a){var e=a("lo"),h=a("bm"),m=a("cy"),k=a("gi"),b=e.extend(k,function(g){k.call(this);this.j=g;this.W=!1;this.Bu=this.Bu.bind(this);this.yc=this.j.yc});b.prototype.clear=function(){this.yc=this.j=null};b.prototype.nc=function(g){this.W!=g&&(this.W&&document.removeEventListener("keyup",this.Bu),(this.W=g)&&document.addEventListener("keyup",this.Bu))};b.prototype.Bu=function(g){"translate"==this.yc.get("arrowKeysAction")&&(g.which!=h.Di||g.shiftKey? g.which!=h.Yj||g.shiftKey||this.trigger(new m(b.t0)):this.trigger(new m(b.s0)))};b.t0="moveForward";b.s0="moveBackward";return b}); define("oQ","require cy gi gL pe lQ cQ lG kK lB nX hG fh lF bJ nD ci fR ex iR s dp pc kQ hQ hj gl ou fH dP mf bw gC if lk iS gf N nJ lo".split(" "),function(a){var e=a("cy"),h=a("gi"),m=a("gL"),k=a("pe"),b=a("lQ"),g=a("cQ"),d=a("lG"),c=a("kK"),f=a("lB"),l=a("nX"),p=a("hG"),q=a("fh"),n=a("lF"),r=a("bJ"),t=a("nD"),u=a("ci"),v=a("fR"),w=a("ex"),x=a("iR"),y=a("s"),A=a("dp"),B=a("pc"),z=a("kQ"),C=a("hQ"),H=a("hj"),D=a("gl"),I=a("ou"),F=a("fH"),N=a("dP"),S=a("mf"),Q=a("bw"),R=a("gC"),W=a("if"),G=a("lk"), L=a("iS"),U=a("gf"),O=a("N");a("nJ");var V=a("lo").extend(h,function(Y,ca,E){h.call(this);this.M=Y;this.j=ca;this.Gc=E;this.Pb=this.ey=null;this.wja=this.wr=this.HM=this.Wu=void 0;this.F=null;this.Og=[]});V.prototype.Xda=function(Y){this.ey=Y};V.prototype.clear=function(){this.g9(this.wr);this.F&&this.g9(this.F.Dc);this.HM=this.Wu=void 0;this.ga=this.Gc=this.j=this.M=this.F=null};V.prototype.start=function(Y,ca){!this.F&&Y==this.wr||this.F&&Y==this.F.Dc?this.HM=this.Wu=void 0:(this.Wu=Y,this.HM=ca, 0==this.Og.length&&this.SW())};V.prototype.hide=function(){this.Wu=null;!this.F&&this.wr&&this.SW()};V.prototype.XUa=function(){return this.F&&this.F.Dc};V.prototype.SW=function(){this.F=new k(this.j,this.ey,this.wr,this.Wu,this.HM);this.Pb=new m(this.j,this.Gc,this.F);this.HM=this.Wu=void 0;this.ta(C);this.ta(f);switch(this.F.mode){case k.mfa:this.Fb(this.zv);this.ta(r);this.Fb(this.yv);this.ta(w);this.Fb(this.rq);break;case k.lfa:this.ta(S);this.Fb(this.Uy);this.ta(O);this.ta(p);this.ta(H);this.Fb(this.ns); this.ta(q);this.ta(U);this.ta(u);this.Fb(this.Ty);break;case k.TQ:this.F.Cb()?(this.ta(S),this.Fb(this.Uy),this.Fb(this.zv),this.ta(t),this.Fb(this.yv),this.ta(w),this.Fb(this.rq),this.ta(O),this.ta(y),this.Fb(this.ns),this.Fb(this.Ty),this.ta(n)):(this.ta(S),this.Fb(this.Uy),this.Fb(this.zv),this.ta(r),this.Fb(this.yv),this.ta(w),this.Fb(this.rq),this.ta(O),this.ta(p),this.ta(H),this.Fb(this.ns),this.ta(q),this.ta(U),this.ta(u),this.Fb(this.Ty));break;case k.tga:this.ta(S);this.Fb(this.Uy);this.Fb(this.zv); this.Fb(this.yv);this.F.Cb()?(this.ta(D),this.Fb(this.ns),this.ta(Q),this.ta(w),this.Fb(this.rq)):(this.ta(F),this.Fb(this.ns),this.ta(Q),this.ta(w),this.Fb(this.rq),this.ta(I),this.ta(p),this.ta(U));this.Fb(this.Ty);break;case k.xn:this.ta(S);this.Fb(this.Uy);this.ta(O);this.F.Cb()?(this.Fb(this.zv),this.Fb(this.yv),this.ta(y),this.Fb(this.ns),this.ta(b),this.ta(w),this.Fb(this.rq)):(this.Fb(this.zv),this.Fb(this.yv),this.ta(v),this.Fb(this.ns),this.ta(b),this.ta(w),this.Fb(this.rq),this.ta(p),this.ta(U), this.ta(u));this.Fb(this.Ty);break;case k.s1:this.ta(S);this.Fb(this.Uy);this.ta(l);this.ta(O);this.ta(g.Bga);this.ta(A);this.ta(G);this.Fb(this.ns);this.ta(q);this.ta(x);this.ta(d);this.ta(p);this.ta(U);this.Fb(this.Ty);break;case k.vga:this.ta(l);this.ta(g.oga);this.ta(c);this.ta(z);this.Fb(this.zv);this.ta(r);this.Fb(this.yv);this.ta(w);this.Fb(this.rq);this.ta(R);this.ta(x);this.ta(N);break;case k.u1:this.Fb(this.Uy);this.ta(l);this.ta(c);this.Fb(this.zv);this.Fb(this.yv);this.ta(O.Zfa);this.ta(W); this.ta(w);this.Fb(this.rq);this.ta(O.Wfa);this.ta(B);this.Fb(this.ns);this.ta(q);this.ta(x);this.ta(d);this.ta(p);this.ta(U);this.Fb(this.Ty);break;case k.uga:this.Fb(this.Uy),this.ta(l),this.ta(g.oga),this.ta(c),this.ta(z),this.ta(O),this.Fb(this.zv),this.ta(r),this.Fb(this.yv),this.ta(w),this.Fb(this.rq),this.ta(R),this.ta(x),this.ta(g.Bga),this.ta(A),this.ta(G),this.Fb(this.ns),this.ta(q),this.ta(x),this.ta(d),this.Fb(this.Ty)}this.Fb(this.FRa);this.Ma()};V.prototype.L$=function(){this.wr=this.F.Dc; this.wja=this.F.VD;this.F=this.Pb=null;void 0===this.Wu?this.wr?this.pRa(this.wr,this.wja):this.qRa():this.SW()};window.dUa=!0;window.eUa=!0;document.addEventListener("keydown",function(Y){67==Y.which&&(window.dUa=window.eUa=!0)});V.prototype.Yv=function(Y){for(;this.Og.length;){var ca=this.Og[0];if(void 0!==this.Wu&&this.Wu!==this.wr&&ca.AD()){this.g9(this.F.Dc);this.Og=[];this.SW();break}else if(ca.mh(Y),this.Ma(),this.Pb.Yv(Y),ca.Rg())this.Og.shift(),0==this.Og.length&&this.L$();else break}};document.addEventListener("keydown", function(){(new Date).getTime()});document.addEventListener("keyup",function(){(new Date).getTime()});V.prototype.wd=function(){};V.prototype.ta=function(Y){this.Og.push(new Y(this,this.Pb,this.j,this.F))};V.prototype.Fb=function(Y){this.Og.push(new L(this,this.Pb,this.j,this.F,Y))};V.prototype.g9=function(Y){Y&&(Y=this.j.tf(Y))&&(this.j.remove(Y),this.rq())};V.prototype.Uy=function(){this.trigger(new e(V.D0,{panorama:this.F.Dc}))};V.prototype.rq=function(){this.trigger(new e(V.u0,{panorama:this.F? this.F.Ug:this.wr,nextPanorama:this.F?this.F.Dc:null}))};V.prototype.zv=function(){this.trigger(new e(V.Zz,{panorama:this.F.Ug}))};V.prototype.yv=function(){this.trigger(new e(V.Yz,{panorama:this.F.Ug,nextPanorama:this.F.Dc}))};V.prototype.Ty=function(){this.trigger(new e(V.$z,{panorama:this.F.Dc,camera:this.F.VD}))};V.prototype.FRa=function(){this.trigger(new e(V.Xo))};V.prototype.ns=function(){this.trigger(new e(V.aA,{panorama:this.F.Dc,camera:this.F.VD}))};V.prototype.pRa=function(Y,ca){this.trigger(new e(V.a0, {panorama:Y,camera:ca}))};V.prototype.qRa=function(){this.trigger(new e(V.b0))};V.prototype.Ma=function(){this.trigger(new e(V.Db))};V.Db="request frame";V.D0="request load";V.u0="panorama removed";V.a0="all pending panoramas displayed";V.b0="all pending panoramas hidden";V.Yz="panorama end";V.aA="panorama start";V.$z="panorama show";V.Zz="panorama hide";V.Xo="transition end";return V}); define("lf",["require","lo","cy","gi"],function(a){var e=a("lo"),h=a("cy"),m=a("gi"),k=e.extend(m,function(b){m.call(this);this.j=b});k.prototype.clear=function(){this.end();this.j=null};k.prototype.oI=function(b){for(var g=this.aT(b),d=b.EY(),c=0;cq-n?r=n:.99y?1:0;for(B=0;Bv?u+p:u-p:v>this.Fu&&v>x&&(u=Bb?d:1;d=g>b?1:1-d;for(var f=0;fl&&p.Uh(),p.set("alpha",l))}this.sq();this.IB||this.Ma()}};a.prototype.Lj=function(){return this.FT?this.IB?m.Eb:m.X:m.T};a.prototype.Dj=function(){k.prototype.Dj.call(this,this.Lj())};a.prototype.sq=function(){k.prototype.sq.call(this,this.Ed,this.qb,this.qsa(this.Ed),this.qsa(this.qb),this.Am+1,0===this.Ika()? this.wF():void 0)};return a});define("bM",["require","lo","lf"],function(a){var e=a("lo"),h=a("lf");return e.extend(h,function(m){h.call(this,m)})}); define("mq",["require","lo","oH","kO","lf"],function(a){var e=a("lo"),h=a("oH"),m=a("kO"),k=a("lf");a=e.extend(k,function(b){k.call(this,b);this.jf=!1});a.prototype.oI=function(){};a.prototype.start=function(b){this.end();this.la=b;this.la.set("mute",this.jf);this.la.get("autoplay")&&this.la.set("state",m.X);this.Gt()};a.prototype.getTime=function(){return this.la?this.la.get("currentTime"):0};a.prototype.Lj=function(){return this.la?this.la.get("state"):m.T};a.prototype.play=function(){this.la&& this.la.set("state",m.X)};a.prototype.pause=function(){this.la&&this.la.set("state",m.Eb)};a.prototype.o_=function(){this.la&&this.la.set("state",m.Eb)};a.prototype.stop=function(){this.la&&this.la.set("state",m.T)};a.prototype.end=function(){this.la&&(this.ev(),this.la=null)};a.prototype.SD=function(b){this.la&&this.la.set("state",m.X);this.la&&this.la.set("currentTime",b)};a.prototype.Hf=function(b){this.jf=b;this.la&&this.la.set("mute",this.jf)};a.prototype.Gt=function(){this.la.bind(h.G("currentTime"), this.Ye,this,!0);this.la.bind(h.G("duration"),this.Lm,this,!0);this.la.bind(h.G("state"),this.Bf,this,!0);this.la.get("state")!=m.T&&this.Dj()};a.prototype.ev=function(){this.la.unbind(h.G("currentTime"),this.Ye,this,!0);this.la.unbind(h.G("duration"),this.Lm,this,!0);this.la.unbind(h.G("state"),this.Bf,this,!0)};a.prototype.Bf=function(){this.Dj()};a.prototype.Ye=function(){this.sq()};a.prototype.Lm=function(){this.sq()};a.prototype.sq=function(){this.la&&k.prototype.sq.call(this,this.la.get("currentTime"), this.la.get("duration"))};return a}); define("x","require lo kO cy gi nx lf bq eo bM mq".split(" "),function(a){var e=a("lo");a("kO");var h=a("cy"),m=a("gi"),k=a("nx"),b=a("lf"),g=a("bq"),d=a("eo"),c=a("bM"),f=a("mq"),l=e.extend(m,function(p){m.call(this);this.j=p;this.P6=this.lS(d);this.I5=this.lS(g);this.HX=this.lS(f);this.g$=this.lS(c);this.Md=null});l.prototype.clear=function(){this.$R(this.P6);this.P6=null;this.$R(this.I5);this.I5=null;this.$R(this.HX);this.HX=null;this.$R(this.g$);this.j=this.Md=this.g$=null};l.prototype.lS=function(p){p= new p(this.j);p.bind(b.Db,this.Me,this,!0);p.bind(b.hj,this.Sp,this,!0);p.bind(b.Ec,this.We,this,!0);return p};l.prototype.$R=function(p){p.unbind(b.Db,this.Me,this);p.unbind(b.hj,this.Sp,this);p.unbind(b.Ec,this.We,this);p.clear()};l.prototype.u6=function(p,q){return k.Na(q,p)};l.prototype.Dka=function(p){return this.u6(p,"HDRPanorama")?this.I5:this.u6(p,"LivePanorama")?this.P6:this.u6(p,"VideoPanorama")?this.HX:this.g$};l.prototype.oI=function(p){(this.Md=this.Dka(p))&&this.Md.oI(p)};l.prototype.start= function(p){this.Me();(this.Md=this.Dka(p))&&this.Md.start(p)};l.prototype.Lj=function(){if(this.Md)return this.Md.Lj()};l.prototype.getTime=function(){return this.Md?this.Md.getTime():0};l.prototype.play=function(){this.Md&&this.Md.play()};l.prototype.pause=function(){this.Md&&this.Md.pause()};l.prototype.yI=function(){this.Md&&this.Md.yI()};l.prototype.FI=function(){this.Md&&this.Md.FI()};l.prototype.o_=function(){this.Md&&this.Md.o_()};l.prototype.stop=function(){this.Md&&this.Md.stop();this.trigger(new h(l.hj, {duration:0,time:0,steps:void 0,selectedStep:void 0}))};l.prototype.end=function(){this.Md&&(this.Md.end(),this.Md=null)};l.prototype.SD=function(p){this.Md&&this.Md.SD(p)};l.prototype.Bz=function(p){this.Md&&this.Md.Bz(p)};l.prototype.Jz=function(){this.Md&&this.Md.Jz()};l.prototype.wd=function(p){this.Md&&this.Md.wd(p)};l.prototype.Hf=function(p){this.HX.Hf(p)};l.prototype.Me=function(){this.trigger(new h(l.Db))};l.prototype.Sp=function(p){this.trigger(new h(l.hj,p.data))};l.prototype.We=function(p){this.trigger(new h(l.Ec, p.data))};l.Db="request frame";l.vBa="frame display";l.wBa="frame hide";l.hj="time change";l.Ec="playback state change";return l}); define("ms",["require","lo","oH","gi","lp"],function(a){var e=a("lo"),h=a("oH"),m=a("gi"),k=a("lp");a=e.extend(m,function(b){m.call(this);this.j=b;this.ih=this.la=null});a.prototype.start=function(b){this.la=b;this.ih=this.j.tf(this.la);this.ih.bind(h.Z,this.nd,this,!0);this.ih.bind(h.ec,this.Tu,this,!0);this.ih.get("ready")?this.trigger(h.Vc,{panorama:this.la}):this.ih.bind(h.Vc,this.nG,this,!0);this.ih.set("loadingActive",!0)};a.prototype.stop=function(){this.la=null;this.ih&&(this.ih.unbind(h.Vc, this.nG,this),this.ih.unbind(h.Z,this.nd,this),this.ih.unbind(h.ec,this.Tu,this),this.ih.set("loadingActive",!1),this.ih=null,this.trigger(h.Kf))};a.prototype.clear=function(){this.stop()};a.prototype.nG=function(){this.ih.unbind(h.Vc,this.nG,this);this.trigger(h.Vc,{panorama:this.la})};a.prototype.nd=function(){this.ih.unbind(h.Vc,this.nG,this);this.ih.unbind(h.Z,this.nd,this);this.ih.unbind(h.ec,this.Tu,this);this.ih=null;this.trigger(h.Z,{panorama:this.la});this.la=null;this.trigger(h.Kf)};a.prototype.Tu= function(b){this.trigger(new k(h.ec,b.Sg))};return a}); define("jQ","require lo oH cy gi R".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("cy"),k=a("gi"),b=a("R"),g=e.extend(k,function(d){k.call(this);this.j=d;this.Hp=this.la=this.hi=null;this.gb=this.Da=0;this.La=.5*Math.PI});g.prototype.clear=function(){this.stop();this.jqa();this.hi=this.j=null};g.prototype.Vda=function(d){this.hi!=d&&(this.jqa(),this.cS(),this.hi=d,this.xha(),this.IDa())};g.prototype.IDa=function(){this.hi&&this.hi.bind(h.G("map"),this.coa,this,!1)};g.prototype.jqa=function(){this.hi&& this.hi.unbind(h.G("map"),this.coa,this,!1)};g.prototype.stop=function(){this.cS();this.la=null};g.prototype.wd=function(){this.Da=this.j.Tc();this.gb=this.j.Oc();this.La=this.j.Ag();this.hi&&this.Hp&&this.hi.rn(this.Hp,this.Da,this.gb,this.La)};g.prototype.coa=function(){this.la&&(this.cS(),(this.Hp=this.Oqa(this.la,this.hi.get("map",null),!1))&&this.Jra())};g.prototype.display=function(d){this.la!=d&&(this.cS(),this.la=d,this.xha())};g.prototype.hide=function(d){this.la==d&&this.stop()};g.prototype.cS= function(){this.Hp&&(this.oKa(),this.Hp=null)};g.prototype.xha=function(){this.hi&&this.la&&(this.Hp=this.Oqa(this.la,this.hi.get("map",null),!0))&&this.Jra()};g.prototype.Oqa=function(d,c,f){d=d.get("mapLocations",[]);for(var l=0;l").join("\n").split("\n").map(m).join("
");this.dY=!1}function h(p){this.M=p;this.hO=b.throttle(this.hO.bind(this),100);this.iO=b.throttle(this.iO.bind(this),100);this.na=document.createElement("div");this.na.style.position="absolute";this.na.style.left= 0;this.na.style.top=0;this.na.style.right=0;this.na.style.bottom=0;this.na.style.zIndex=1;this.na.style.cursor="inherit";this.na.style.display="none";this.w1=k(this.na);this.zl=document.createElement("div");this.zl.style.position="absolute";this.zl.style.left=0;this.zl.style.right=0;this.zl.style.zIndex=1;this.zl.style.cursor="inherit";this.na.appendChild(this.zl);this.Oy=null;this.hH=[];this.Jh=[];this.g8={};this.wH=d.pc;this.M.bind(g.G("subtitlesEnabled"),this.oH,this);h.aga.forEach(function(q){this.M.bind(g.G(q), this.hO,this)}.bind(this));h.bga.forEach(function(q){this.M.bind(g.G(q),this.iO,this)}.bind(this));this.oH();this.hO();this.iO()}function m(p){l.innerHTML=p;return l.innerText}var k=a("jquery.mod"),b=a("eg"),g=a("oH"),d=a("mQ"),c=a("bg"),f=a("hs");h.prototype.clear=function(){this.jea(null);this.M&&(this.M.unbind(g.G("subtitlesEnabled"),this.oH,this),h.aga.forEach(function(p){this.M.unbind(g.G(p),this.hO,this)}.bind(this)),h.bga.forEach(function(p){this.M.unbind(g.G(p),this.iO,this)}.bind(this)), this.M=null)};h.prototype.Ac=function(){return this.w1};h.prototype.jea=function(p){this.Oy!=p&&(this.Oy&&this.Oy.unbind(g.G("activeSubtitles"),this.r7,this,!0),(this.Oy=p)&&this.Oy.bind(g.G("activeSubtitles"),this.r7,this,!0),this.r7())};h.prototype.r7=function(){this.UPa(this.Oy&&this.Oy.get("activeSubtitles")||[])};h.prototype.oH=function(){this.W=this.M.get("subtitlesEnabled");this.zaa()};h.prototype.hO=function(){this.wH=this.GK("subtitlesVerticalAlign",[d.uc,d.he,d.pc],d.pc);this.zl.style["text-align"]= this.GK("subtitlesHorizontalAlign",[d.Pa,d.hb,d.Ge],d.Ge);this.zl.style.bottom=this.wH==d.pc?this.fk("subtitlesBottom",0):"";this.zl.style.top=this.wH==d.uc?this.fk("subtitlesTop",0):this.wH==d.he?"50%":"";this.zl.style.transform=this.wH==d.he?"translate(0, -50%)":"";this.zaa()};h.prototype.iO=function(){var p={};p["background-color"]=this.v5("subtitlesBackgroundColor","subtitlesBackgroundOpacity");p.border=[this.fk("subtitlesBorderSize"),"solid",this.di("subtitlesBorderColor")].join(" ");p["box-shadow"]= this.di("subtitlesShadow",!1)?[this.fk("subtitlesShadowHorizontalLength"),this.fk("subtitlesShadowVerticalLength"),this.fk("subtitlesShadowBlurRadius"),this.v5("subtitlesShadowColor","subtitlesShadowOpacity","#000000",0)].join(" "):"";p.display="inline-block";p["font-family"]=f.Jv(this.di("subtitlesFontFamily"));p["font-size"]=this.fk("subtitlesFontSize");p.color=this.di("subtitlesFontColor");p["font-weight"]=this.GK("subtitlesFontWeight","bold bolder lighter 100 200 300 400 500 600 700 800 900 normal".split(" "), "normal");p["font-style"]=this.GK("subtitlesFontStyle",["italic","normal"],"normal");p["margin-bottom"]=this.fk("subtitlesGap");p.opacity=this.di("subtitlesOpacity");p["padding-top"]=this.fk("subtitlesPaddingTop");p["padding-bottom"]=this.fk("subtitlesPaddingBottom");p["padding-left"]=this.fk("subtitlesPaddingLeft");p["padding-right"]=this.fk("subtitlesPaddingRight");p.position="relative";p["text-align"]=this.GK("subtitlesHorizontalAlign",["left","right","center"],"center");p["text-decoration"]=this.di("subtitlesTextDecoration", ["underline","overline","line-through","none"],"none");p["text-shadow"]=[this.fk("subtitlesTextShadowHorizontalLength"),this.fk("subtitlesTextShadowVerticalLength"),this.fk("subtitlesTextShadowBlurRadius"),this.v5("subtitlesTextShadowColor","subtitlesTextShadowOpacity","#000000",0)].join(" ");this.g8=p;this.sEa()};h.prototype.UPa=function(p){this.hH=p;this.zaa()};h.prototype.zaa=function(){for(var p=this.W?this.hH:[],q=this.Jh.length-1;0<=q;q--){var n=this.Jh[q];if(0<=p.indexOf(n.vea))break;this.zl.removeChild(n.element)}for(var r= [],t=!1;0<=q;q--)n=this.Jh[q],!n.dY&&0>p.indexOf(n.vea)&&(n.dY=!0,n.element.style.visibility="hidden",t=!0),r.splice(0,0,n);t&&c.requestFrame(this.Oia,this);this.Jh=r;var u=this.Jh.filter(function(v){return!v.dY}).map(function(v){return v.vea});p.filter(function(v){return 0>u.indexOf(v)}).forEach(function(v){v=new e(v);this.Pha(v);this.wH==d.pc&&0=r.element.clientHeight)p-=r.element.clientHeight,this.zl.removeChild(r.element),this.Jh.splice(n,1),n--;else{r.element.style.height=r.element.clientHeight-p+"px";break}}q&&c.requestFrame(this.Oia,this)};h.prototype.sEa=function(){this.Jh.forEach(this.Pha.bind(this))};h.prototype.Pha=function(p){for(var q in this.g8)p.Cea.style[q]=this.g8[q]}; h.prototype.di=function(p,q){return this.M.get(p,q)};h.prototype.fk=function(p,q){p=this.M.get(p,q);isNaN(p)||(p=Math.round(p)+"px");return p};h.prototype.GK=function(p,q,n){p=this.M.get(p);return 0>q.indexOf(p)?n:p};h.prototype.v5=function(p,q,n,r){p=this.M.get(p,n);q=this.M.get(q,r);return"rgba("+parseInt("0x"+p.substr(1,2))+", "+parseInt("0x"+p.substr(3,2))+", "+parseInt("0x"+p.substr(5,2))+", "+q+")"};h.aga=["subtitlesHorizontalAlign","subtitlesVerticalAlign","subtitlesTop","subtitlesBottom"]; h.bga="subtitlesBackgroundColor subtitlesBackgroundOpacity subtitlesBorderColor subtitlesBorderSize subtitlesFontFamily subtitlesFontColor subtitlesFontSize subtitlesFontStyle subtitlesFontWeight subtitlesGap subtitlesOpacity subtitlesPaddingTop subtitlesPaddingBottom subtitlesPaddingLeft subtitlesPaddingRight subtitlesShadow subtitlesShadowBlurRadius subtitlesShadowHorizontalLength subtitlesShadowVerticalLength subtitlesShadowColor subtitlesTextDecoration subtitlesTextShadowBlurRadius subtitlesTextShadowColor subtitlesTextShadowHorizontalLength subtitlesTextShadowOpacity subtitlesTextShadowVerticalLength".split(" "); var l=document.createElement("div");return h});define("eK",["require","lo","oH","dA"],function(a){var e=a("lo"),h=a("oH"),m=a("dA");a=e.extend(m,function(k,b){m.call(this,k);this.yc=b;this.yc.bind(h.G("panorama"),this.L7,this);this.L7()});a.prototype.clear=function(){this.yc&&(this.yc.unbind(h.G("panorama"),this.L7,this),this.yc=null);m.prototype.clear.call(this)};a.prototype.L7=function(){this.jea(this.yc.get("panorama"))};return a}); define("oD",["require"],function(){function a(h,m){this.j=h;this.IG=m;this.jg=new THREE.CustomRenderPass(m);this.jg.renderToScreen=!1;this.gW=new THREE.SavePass;this.gW.enabled=!0;this.Ww=new THREE.ShaderPass(THREE.BlendShader,"tDiffuse1");this.Ww.uniforms.tDiffuse2.value=this.gW.renderTarget.texture;this.Ww.uniforms.mixRatio.value=.8;this.Ww.renderToScreen=!0;this.Ww.enabled=!0;this.jpa=new THREE.ShaderPass(THREE.CopyShader);this.jpa.renderToScreen=!0;this.sm=new THREE.EffectComposer(h);this.sm.addPass(this.jg); this.sm.addPass(this.Ww);this.sm.addPass(this.gW);this.sm.addPass(this.jpa);this.ix=this.jx=void 0}var e=new THREE.Vector2;a.prototype.destroy=function(){this.sm=this.Ww=this.gW=this.jg=this.IG=this.j=null};a.prototype.start=function(){this.Ww.uniforms.mixRatio.value=0;this.O4=3};a.prototype.render=function(h,m){this.j.getSize(e);if(this.jx!==e.width||this.ix!==e.height)this.jx=e.width,this.ix=e.height,this.sm.setSize(this.jx,this.ix);this.jg.scene=h;this.jg.camera=m;0\nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}\n";p.side=THREE.BackSide;p.depthWrite=!1;p.transparent=!0;p.depthTest=!1;p.needsUpdate=!0;var n=new THREE.Mesh(new THREE.SphereGeometry(5,64,64),p);n.overdraw=!1;n.matrixAutoUpdate=!1;n.renderOrder=1E3;var r=new THREE.Matrix4;this.TD=function(u){l=u};this.setSize=function(u,v){c== u&&f==v||g.setSize(c=u,f=v)};this.rd=function(){return c};this.ee=function(){return f};this.start=function(u){u.add(n);u.add(q);u.traverse(function(v){v.layers.test(q.layers)&&(v.userData.Gca=v.layers.mask,v.layers.mask=q.layers.mask)});q.visible=!0;n.visible=!0;m.Lda(u,[d]);g.setClearColor(16777215,1);g.setPixelRatio(k.getPixelRatio());c&&f&&g.setSize(c,f)};this.stop=function(u){g.setClearColor(0,0);u.traverse(function(v){void 0!==v.userData.Gca&&(v.layers.mask=v.userData.Gca,delete v.userData.Gca)}); q.visible=!1;n.visible=!1;u.remove(n);u.remove(q)};this.fov=function(){return d.fov};this.BQ=function(){0");this.na.css({position:"absolute",left:0,top:0,right:0,bottom:0,"z-index":0,cursor:"inherit"});this.Ca=new THREE.PerspectiveCamera(90,16/9,.1,2*f.If);this.Ca.layers.enable(g.Pa);this.pS=new THREE.PerspectiveCamera;this.Fa=new THREE.Scene;this.kja=new THREE.Scene;this.lja=new THREE.Scene;this.Fa.add(this.Ca);this.au=this.px=this.j=null;this.PB=0;this.Yu=this.dg=this.f$=this.Zaa=null;this.Tma= this.w3=!1}var h=a("jquery.mod"),m=a("mv"),k=a("kP"),b=a("nt"),g=a("dC"),d=a("kW"),c=a("bi"),f=a("gU"),l=a("ht"),p=a("bv");e.prototype.Mj=function(){return this.Fa};e.prototype.mz=function(){return this.pS};e.prototype.RUa=function(){return this.dg.fov(this.Ca)};e.prototype.getPixelRatio=function(){return this.j.getPixelRatio()};e.prototype.Ac=function(){return this.na};e.prototype.UUa=function(){return this.j?this.j.domElement.width:this.na.width()};e.prototype.TUa=function(){return this.j?this.j.domElement.height: this.na.height()};e.prototype.og=function(){return this.j.domElement};e.prototype.update=function(u){this.FSa(u);this.fSa(u);this.tq(u);this.CSa(u)};var q=[new THREE.Vector3(0,1,0),new THREE.Vector3(0,1,0),new THREE.Vector3(0,0,-1),new THREE.Vector3(0,0,1),new THREE.Vector3(0,1,0),new THREE.Vector3(0,1,0)],n=[new THREE.Vector3(1,0,0),new THREE.Vector3(-1,0,0),new THREE.Vector3(0,1,0),new THREE.Vector3(0,-1,0),new THREE.Vector3(0,0,1),new THREE.Vector3(0,0,-1)];e.prototype.IO=function(u){var v=this.dg, w=this.dg.rd(),x=this.dg.ee();v.stop();this.j.setPixelRatio(1);this.j.setSize(u,u);var y=new THREE.PerspectiveCamera(90,1,this.Ca.near,this.Ca.far);y.layers=this.Ca.layers;y.visible=!0;this.Fa.add(y);for(var A=[],B=0;6>B;B++){var z=document.createElement("canvas");z.width=z.height=u;var C=z.getContext("2d");y.up.copy(q[B]);y.lookAt(n[B]);y.updateProjectionMatrix();y.updateMatrixWorld();this.j.clear();this.j.render(this.Fa,y);C.save();C.scale(-1,1);C.drawImage(this.j.domElement,0,0,-u,u);C.restore(); A.push(z)}this.Fa.remove(y);this.dg=v;this.dg.start(this.Fa);this.dg.setSize(w,x);this.$M();return A};e.prototype.render=function(){this.$M()};e.prototype.FSa=function(u){u.enabled&&(this.PB=(new Date).getTime(),this.j||this.dQa(u),u.Cb&&p.getType()==p.uA.Vk&&(this.Tma=!0),p.g_(this.j.getContext()));if(this.w3=u.enabled&&!u.Cb)this.px.setSize(u.width,u.height),this.au.setSize(u.width,u.height)};e.prototype.dQa=function(u){if(!this.j&&u.enabled){for(;r.length>=t;)r.sort(function(x,y){return x.PB-y.PB}), r[0].CFa();r.push(this);var v=this.Ac().get(0);this.px=new THREE.CSS3DRenderer;this.px.domElement.style.position="absolute";this.px.domElement.style.zIndex=0;v.appendChild(this.px.domElement);var w={precision:"mediump",alpha:!0};1==r.length&&u.Cb?(u=p.sD(),w.context=u,w.canvas=u.canvas):(w.canvas=document.createElement("canvas"),w.context=l.Dba(w.canvas,u.RX));this.j=new THREE.WebGLRenderer(w);this.j.debug.checkShaderErrors=m.dJ;this.j.domElement.style.position="absolute";this.j.domElement.style.zIndex= 1;this.j.domElement.style.pointerEvents="none";this.j.setClearColor(0,0);v.appendChild(this.j.domElement);this.au=new THREE.CSS3DRenderer;this.au.domElement.style.position="absolute";this.au.domElement.style.zIndex=2;this.au.domElement.style.pointerEvents="none";v.appendChild(this.au.domElement);this.Yu=new d(this.j,function(x,y,A,B,z){this.Tma&&this.j.resetState();this.dg.render(y,B,z)}.bind(this));this.f$=new c.gCa(this.j,this.Ca);this.Xra=new c.ICa(this.j,this.Ca);this.Zaa=new c.TCa(this.j,this.Ca); p.GH(this.j.getContext())}};e.prototype.CFa=function(){if(this.j){r.splice(r.indexOf(this),1);this.dg=this.f$=this.Zaa=null;this.Yu.destroy();this.Yu=null;p.WZ(this.j.getContext());var u=this.Ac().get(0);u.removeChild(this.au.domElement);this.au=null;u.removeChild(this.j.domElement);this.j.dispose();this.j=null;u.removeChild(this.px.domElement);this.px=null}};e.prototype.tq=function(u){this.Ca.quaternion.copy(b.sva(u.Sa,u.pitch,u.bf));this.Ca.fov=k.Sl(u.Ee,u.width,u.height);this.Ca.aspect=u.width/ u.height;this.Ca.updateProjectionMatrix();this.Ca.updateMatrixWorld();this.dg&&this.dg.BQ();this.dg&&this.pS.copy(this.dg.camera());this.pS.updateProjectionMatrix();this.pS.updateMatrixWorld();!0===this.Fa.Mca&&this.Fa.updateMatrixWorld()};e.prototype.fSa=function(u){var v=u.Cb?this.Zaa:0u;)u+=360;t=(t-u)/w;return t=-.1>n||.1Math.abs(n)&&(n=0);return r-n}var m=a("lo"),k=a("ky"),b=a("oH"),g=a("nx"),d=a("jt"),c=a("mK"),f=a("ob"),l=a("nh"),p=a("eA"),q=a("lp");a=m.extend(d,function(n){d.call(this);this.v=n;this.kk.push(this.v);this.Wf=this.Wf.bind(this);this.Ce=g.Na("CeilingCapPanoramaOverlay", this.v)?"ceiling":"tripod";this.set("tag","Cap");this.set("pitch","tripod"==this.Ce?-90:90);this.$c=!1;this.qC=this.J8=this.Vr=void 0;this.zNa="tripod"==this.Ce?1:-1;this.kj=this.yk=this.Kg=null});a.prototype.Mb=function(){d.prototype.Mb.call(this);this.Kg=(new f(b.Z)).bm(this.Mp.bind(this));this.yk=(new f(b.ec)).Jo(this.$B.bind(this));k.fa(this.v,"angle distance hfov image.levels.url inertia rotate".split(" "),this.Wf,!0)};a.prototype.Qb=function(){this.kj&&this.kj.dispose();this.kj=null;this.Kg.dispose(); this.yk.dispose();k.ba(this.v,"angle distance hfov image.levels.url inertia rotate".split(" "),this.Wf);d.prototype.Qb.call(this)};a.prototype.Wf=function(){this.set("angle",this.v.get("angle"));this.set("distance",this.v.get("distance"));this.set("hfov",this.v.get("hfov"));var n=l.VUa(this.v,this.get("panoramaPixelsPerDegree"));this.set("imageURL",n&&n.get("url"));this.set("imageWidth",n&&n.get("width"));this.set("imageHeight",n&&n.get("height"));this.set("inertia",this.v.get("inertia"));this.set("rotate", this.v.get("rotate"))};a.prototype.In=function(){var n=d.prototype.In.call(this);this.Kg.vf(n);this.yk.vf(n);return n};a.prototype.ea=function(n){this.haa();this.rH(n);d.prototype.ea.call(this,n)};a.prototype.haa=function(){this.N("imageURL")&&this.get("imageURL")&&(this.set("textureSource",new c(this.get("imageURL"))),this.set("contentWidth",this.get("imageWidth")),this.set("contentHeight",this.get("imageHeight")))};a.prototype.Mp=function(){this.kj&&this.kj.dispose();this.kj=new p(this.get("textureSource").sf()); this.trigger(b.Vc);this.trigger(b.Z)};a.prototype.$B=function(n,r){var t=0;r.Ds(function(u){(u=r.Ul(u))&&(t+=u.Sg)});this.trigger(new q(b.ec,t/r.Xc.length))};a.prototype.rH=function(n){this.set("rendererYaw",n.Sa);if(this.N("angle","inertia","rotate")||(this.get("rotate")||this.get("inertia"))&&this.N("rendererYaw")){var r=this.get("angle"),t=this.get("rotate"),u=this.get("inertia"),v=this.zNa*n.Sa;t&&(r+=v);var w=0,x=r-v;void 0!==this.Vr&&(u&&(t?(w=e(v,this.qC,r,this.Vr,this.J8,n.De),r=this.Vr+w* n.De):(w=e(v,this.qC,x,this.Lpa,this.J8,n.De),x=this.Lpa+w*n.De,r=x+v)),this.Vr!=r&&this.Aa());this.Lpa=x;this.Vr=r;this.J8=w;this.qC=v;this.set("rotationZ",-r)}};a.prototype.sn=function(n){if(n.gf==b.im){var r=!n.Mk()&&this.pq(n);r&&(n.az(this.v),this.v.get("useHandCursor")&&n.bz(this.v),n.Lk(this.get("distance")));this.$c!=r&&(this.$c=r,this.v.trigger(this.$c?b.Wc:b.ac),n.Qs()&&this.v.trigger(this.$c?b.mA:b.bp))}else n.gf==b.Uj&&!n.Mk()&&this.pq(n)&&(1 l);var p=360*Math.random(),q=Math.sin(p*g)*Math.sin(l*g)*f,n=-Math.cos(l*g)*f;f*=Math.cos(p*g)*Math.sin(l*g);c.userData.bBa=n*this.xy;c.userData.iua.makeTranslation(q,n,f);c.userData.Ada.makeRotationY(p*g);c.userData.Ada.multiply(d.makeRotationX(-l*g))};a.prototype.ea=function(c){k.prototype.ea.call(this,c);this.XRa(c);this.aba=c.qg;this.aba!=(this.hg&&this.hg.parent)?(this.S2(),this.aba&&this.eja()):this.N("index")&&this.Sha();this.xSa(c)};a.prototype.XRa=function(c){c=c.Cb&&b.getType()==b.uA.Vk; c!=this.Gla&&(this.Gla=c)&&setTimeout(function(){this.hg&&this.aN()}.bind(this),0)};a.prototype.xSa=function(c){if(this.hg){this.N("composedTranslationX","composedTranslationY","composedTranslationZ")&&(this.Fta=0!=this.get("composedTranslationX")||0!=this.get("composedTranslationY")||0!=this.get("composedTranslationZ"),this.kh.makeTranslation(-this.get("composedTranslationX")*this.Hr,this.get("composedTranslationY")*this.Hr,this.get("composedTranslationZ")*this.Hr));var f=this.EV==m.X,l=this.hg.children, p=l.length,q=f?Math.round(p*c.De/this.NW):0;if(0this.Ip){if(0this.Ip-this.EJ&&(r*=(this.Ip-n.userData.y)/this.EJ);n.material.opacity=r*this.FM;this.Fta?(n.matrix.copy(this.kh),n.matrix.multiply(n.userData.BI)):n.matrix.copy(n.userData.BI);n.matrix.multiply(n.userData.Ada);n.matrixWorldNeedsUpdate=!0}this.Aa()}}};a.prototype.Sha=function(){if(this.hg)for(var c=this.get("index"),f=0;fthis.QA.z&&(this.QA.applyMatrix4(p.projectionMatrix), q=.5*this.QA.x,n=.5*this.QA.y);var r=this.get("rendererHeightZ");this.UG.makeTranslation(q*r*p.aspect,n*r,0)}p=!0}this.N("roll")&&(this.Yi.makeRotationZ(this.get("roll")*c),p=!0);if(f.Vh&&(l||this.N("rendererHeight","inVR","rendererHeightZ","width","height","contentWidth","contentHeight","scale","scaleMode","horizontalAlign","verticalAlign","flipHorizontally","offsetX","offsetY"))){l=f.Cb?1024:f.height;p=this.get("scale")*this.get("rendererHeightZ")/l*(f.Cb?2:1);var t=this.get("width");n=this.get("height"); var u=this.get("offsetX");r=this.get("offsetY");var v=this.get("contentWidth"),w=this.get("contentHeight");q=(this.get("flipHorizontally")?-1:1)*p;var x=this.get("scaleMode");f=this.get("horizontalAlign")||g.Ge;l=this.get("verticalAlign")||g.he;x=k.CY(t,n,v,w,x,f,l);v=q*t;w=p*n;this.NJ.makeScale(v,w,1);t=q*(.5*t-u);n=p*(r-.5*n);this.bia.makeTranslation(t,n,0);q*=x.width;p*=x.height;this.$J.makeScale(q,p,1);this.Zia.makeTranslation((f==g.Pa?.5*-(v-q):f==g.hb?.5*(v-q):0)+t,(l==g.uc?.5*(w-p):l==g.pc? .5*-(w-p):0)+n,0);p=!0}p&&(this.zh.copy(this.QE),this.zh.multiply(this.vm),this.zh.multiply(this.UG),this.zh.multiply(this.Yi),this.Yw.copy(this.zh),this.Yw.multiply(this.bia),this.Yw.multiply(this.NJ),this.zh.multiply(this.Zia),this.zh.multiply(this.$J),f=m.Ok(this.get("meshGroup")),m.Dq(f[0],this.Yw),m.Dq(f[1],this.zh))}}}); define("gd",["require","oH","kO"],function(a){function e(k,b){this.zd=k;this.rc=b;this.Ib=!1;this.P1();this.S1();this.bC()}var h=a("oH"),m=a("kO");e.prototype.clear=function(){this.Y8();this.e9();this.zd.set("state",m.T);this.rc=this.zd=null};e.prototype.wf=function(k){this.Ib!=k&&(this.Ib=k,this.ps())};e.prototype.bC=function(){this.rc.Jd(this.zd.get("state"))};e.prototype.XL=function(){this.ps()};e.prototype.ZL=function(){this.rc.Qda(this.zd.get("frameDuration"))};e.prototype.YL=function(){this.rc.Dza("first"== this.zd.get("finalFrame"))};e.prototype.VL=function(){this.zd.trigger(h.gr)};e.prototype.UL=function(){this.zd.trigger(h.sb)};e.prototype.WL=function(){this.zd.set("state",this.rc.getState())};e.prototype.ps=function(){this.zd.get("autoplay")&&this.rc.Jd(this.Ib?m.X:m.T)};e.prototype.P1=function(){this.zd.bind(h.G("state"),this.bC,this,!0);this.zd.bind(h.G("autoplay"),this.XL,this,!0);this.zd.bind(h.G("frameDuration"),this.ZL,this,!0);this.zd.bind(h.G("finalFrame"),this.YL,this,!0)};e.prototype.Y8= function(){this.zd.unbind(h.G("state"),this.bC,this,!0);this.zd.unbind(h.G("autoplay"),this.XL,this,!0);this.zd.unbind(h.G("frameDuration"),this.ZL,this,!0);this.zd.unbind(h.G("finalFrame"),this.YL,this,!0)};e.prototype.S1=function(){this.rc.bind(h.gr,this.VL,this,!0);this.rc.bind(h.sb,this.UL,this,!0);this.rc.bind(h.ne,this.WL,this,!0)};e.prototype.e9=function(){this.rc.unbind(h.gr,this.VL,this,!0);this.rc.unbind(h.sb,this.UL,this,!0);this.rc.unbind(h.ne,this.WL,this,!0)};return e}); define("gV","require ky oH kO hT nx ct ep gd fd ko eA bf".split(" "),function(a){var e=a("ky"),h=a("oH"),m=a("kO"),k=a("hT"),b=a("nx"),g=a("ct"),d=a("ep"),c=a("gd"),f=a("fd"),l=a("ko"),p=a("eA"),q=a("bf");return{aB:function(){this.set("visible",!1);this.set("inView",!1);this.set("blending",0);this.set("chromaColor",void 0);this.set("chromaThreshold",0);this.set("chromaSmoothing",0);this.set("premultipliedAlpha",!1);this.set("projected",!1);this.set("image",null);this.set("level",null);this.set("levelURL", null);this.set("state",null);this.set("visibleOnStop",!0);this.set("side",void 0);this.EU=this.EU.bind(this);this.HU=this.HU.bind(this);this.kj=this.Ra=this.Hn=this.rc=null},Ej:function(){this.haa();this.dO();this.ESa()},haa:function(){if(this.N("level")){var n=this.get("level");this.set("levelURL",n&&n.get("url"))}this.N("image","level","levelURL","projected")&&(this.Hia(),this.Ra=this.get("image"),this.Ya=this.get("level"),this.set("textureSource",new f(this.Ra&&this.Ya.get("url"))),this.set("premultipliedAlpha", this.Ra&&this.Ya.get("premultipliedAlpha")),this.QDa(),this.Ra?(this.ADa(),this.DDa()):(this.trigger(h.Vc),this.trigger(h.Z)))},dO:function(){if(this.N("blending","chromaColor","chromaThreshold","chromaSmoothing","premultipliedAlpha","side")){var n=new g.em;n.fz=this.get("blending");n.ys=this.get("chromaColor");n.LO=this.get("chromaThreshold");n.KO=this.get("chromaSmoothing");n.premultipliedAlpha=this.get("premultipliedAlpha");n.side=this.get("side");this.set("materialConfig",n)}},ESa:function(){if(this.N("meshGroup", "projected","visible")){var n=this.get("projected")&&this.get("visible")?k.Z0:k.mJ;d.Ok(this.get("meshGroup")).forEach(function(r){l.RD(r,n)}.bind(this))}},Ml:function(){this.N("visible","composedAlpha","image","state","visibleOnStop")&&this.set("inView",this.get("visible")&&0 g.BY(this.i5(q).color,p)}.bind(this)):!1}.bind(this))},Wqa:function(c,f,l){this.ai.forEach(function(q){if(0>c.indexOf(q)){var n=d.get(q)-1;d.set(q,n);0==n&&(q.trigger(k.ac,{center:l}),f&&q.trigger(k.bp))}});var p=this.ai;this.ai=c;this.ai.forEach(function(q){if(0>p.indexOf(q)){var n=(d.get(q)||0)+1;d.set(q,n);1==n&&(q.trigger(k.Wc,{center:l}),f&&q.trigger(k.mA))}})},Nb:function(c,f){for(var l="",p=c.length-1;0<=p&&""==l;p--){var q=c[p];if(!f||q.get("displayTooltipInTouchScreens")&&!1!==this.Ba.M.get("displayTooltipInTouchScreens"))l= q.get("toolTip","")}return l},Py:function(c){if(c){c=this.get("yaw")-this.Ey;var f=this.get("pitch")-this.Dy;return Math.sqrt(c*c+f*f)}return 0},ss:function(c){for(var f=this.Mx.get("useHandCursor"),l=c.length-1;0<=l&&void 0===f;l--)f=c[l].get("useHandCursor");return!!f}}}); define("nw",["require","v","cB"],function(a){function e(){this.Lh=void 0;this.HF=this.lC=0;this.va=!0;this.eS=this.E$=this.Q4=void 0;this.Ib=!1}var h=a("v"),m=a("cB"),k=Math.PI/180,b=h.browser()==h.Xh?[-.5,0]:[0,0];e.prototype.Fz=function(g){this.Lh!=g&&(this.Lh=g,this.va=!0)};e.prototype.Ez=function(g){if(gthis.lC+b[1])this.lC=g,this.va=!0};e.prototype.get=function(g,d){void 0!==d||(d=!0);this.va&&(this.ea(),this.va=!1);var c=this.Q4.get(g)||0;g=(this.E$.get(g)||0)-c;d&&(180g&&(g+=360));return c+g*this.eS};e.prototype.fca=function(){this.va&&(this.ea(),this.va=!1);for(var g=this.Q4.get("vertices"),d=this.E$.get("vertices"),c=[],f=0;fp&&(p+=360);var q=g[f].get("pitch")||0,n=(d[f].get("pitch")||0)-q;c.push(new m(l+p*this.eS,q+n*this.eS))}g=this.pL&&this.pL.length==c.length;for(f=0;fthis.lC){if(0==g){d=g;break}--g}else{if(g==c){d=g;break}g+=1}}this.Q4=this.Lh[g];this.E$=this.Lh[d];g=l- f;this.eS=0l.indexOf(n)&&l.push(n)})};return a}); define("cC",["require","ky","nw"],function(a){var e=a("ky"),h=a("nw");return{Jn:function(){this.set("playbackPositions",null);this.set("scaleMode",void 0);this.set("distance",void 0);this.Pd=this.Pd.bind(this);this.mb=new h},bo:function(){e.fa(this.v,"horizontalAlign verticalAlign scale scaleMode distance playbackPositions".split(" "),this.Pd,!0)},eo:function(){e.ba(this.v,"horizontalAlign verticalAlign scale scaleMode distance playbackPositions".split(" "),this.Pd)},Pd:function(){this.set("horizontalAlign", this.v.get("horizontalAlign"));this.set("verticalAlign",this.v.get("verticalAlign"));this.set("scaleMode",this.v.get("scaleMode"));this.set("distance",this.v.get("distance"));this.set("scale",this.v.get("scale"));this.set("playbackPositions",this.v.get("playbackPositions"))},pf:function(){this.N("playbackPositions","currentTime")&&(this.mb.Fz(this.get("playbackPositions")),this.mb.Ez(this.get("currentTime")),this.set("yaw",this.mb.get("yaw")),this.set("pitch",this.mb.get("pitch")),this.set("roll", this.mb.get("roll")),this.set("rotationX",this.mb.get("rotationX")),this.set("rotationY",this.mb.get("rotationY")),this.set("hfov",this.mb.get("hfov")),this.set("vfov",this.mb.get("vfov")),this.set("alpha",this.mb.Pk()))}}}); define("eV","require lo ky oH ep c nV gV oE cC nh".split(" "),function(a){var e=a("lo"),h=a("ky"),m=a("oH"),k=a("ep"),b=a("c"),g=a("nV"),d=a("gV"),c=a("oE"),f=a("cC"),l=a("nh"),p=0;a=e.extend(b,g,d,c,f,function(q){b.call(this);this.set("tag","HotspotImage");this.set("id","hs_image_"+p++);this.set("side",THREE.DoubleSide);this.v=q;this.kk.push(this.v);this.Wf=this.Wf.bind(this)});a.prototype.Mb=function(){b.prototype.Mb.call(this);h.fa(this.v,["image.levels"],this.Wf,!0)};a.prototype.Qb=function(){h.ba(this.v, ["image.levels"],this.Wf);b.prototype.Qb.call(this)};a.prototype.Wf=function(){this.set("image",this.v.get("image"));this.set("level",l.iVa(this.v,this.get("panoramaPixelsPerDegree")))};a.prototype.ea=function(q){this.TC();b.prototype.ea.call(this,q);this.N("inView")&&this.v.trigger(this.get("inView")?m.kd:m.sd)};a.prototype.TC=function(){if(this.N("meshGroup","panoramaId","id")){var q=this.get("meshGroup");q&&q.children.forEach(function(n){k.setAttribute(n,k.Lz,this.get("panoramaId"));k.setAttribute(n, k.H_,this.get("id"))}.bind(this))}};return a}); define("bu",["require","fc","a"],function(a){function e(k,b,g){this.Sf=k||new h(0,0,0);this.ej=b||new h(1,0,0);this.zz=g||new h(0,1,0)}var h=a("fc"),m=a("a");e.prototype.clone=function(){return new e(this.Sf.clone(),this.ej.clone(),this.zz.clone())};e.prototype.apply=function(k){k.JH(this.Sf);k.JH(this.ej);k.JH(this.zz)};e.prototype.intersection=function(k,b){var g=m.kz(k.Sf,k.ej),d=m.kz(this.Sf,k.Sf),c=m.kz(this.Sf,this.ej);c.gY(m.kz(this.Sf,this.zz));g=g.jD(c);if(!(0==g||b&&0>g))return b=-c.jD(d)/ g,new h(k.Sf.x+(k.ej.x-k.Sf.x)*b,k.Sf.y+(k.ej.y-k.Sf.y)*b,k.Sf.z+(k.ej.z-k.Sf.z)*b)};e.prototype.SZ=function(k,b){var g=m.kz(this.Sf,this.ej),d=m.kz(this.Sf,this.zz);k=m.kz(this.Sf,k);var c=g.dca(),f=d.dca();return b?new h(k.jD(g)/(c*c),k.jD(d)/(f*f),0):new h(k.jD(g)/c,k.jD(d)/f,0)};return e}); define("dD","require kP ib di fc bu fm md".split(" "),function(a){var e=a("kP"),h=a("ib"),m=a("di"),k=a("fc"),b=a("bu"),g=a("fm"),d=a("md"),c=Math.PI/180,f=180/Math.PI,l=new g,p=new h,q=new b,n=new k;return{get:function(r,t,u,v,w,x,y,A){r*=c;t*=c;t=new k(Math.sin(-r)*Math.cos(t),Math.sin(t),Math.cos(-r)*Math.cos(t));l.identity();l.rotateY(u*c);l.rotateZ(w*c);l.rotateX(v*c);t.apply(l);return 0k;k++)b=45*Math.PI/180+2*Math.PI*k/6,m=d+Math.cos(b)*f,b=c+Math.sin(b)*f,0==k?l.moveTo(m,b):l.lineTo(m,b);l.closePath();l.fill()};e.bJ="circle";e.VQ="hexagon";return e}); define("nj","require lo ky oH dD iW dj jL gH fd".split(" "),function(a){var e=a("lo"),h=a("ky"),m=a("oH"),k=a("dD"),b=a("iW"),g=a("dj"),d=a("jL"),c=a("gH"),f=a("fd");a=e.extend(b,function(p){b.call(this);this.v=p;this.kk.push(this.v);this.Wf=this.Wf.bind(this);this.set("tag","LensFlare");this.set("translationAlpha",0);this.h2=this.cGa();this.Ef=this.ZGa();this.Tg(this.h2.concat([this.Ef]))});a.prototype.Mb=function(){b.prototype.Mb.call(this);this.trigger(m.Vc);this.trigger(m.Z);h.fa(this.v,["yaw", "pitch","bleaching","bleachingDistance"],this.Wf,!0)};a.prototype.Qb=function(){h.ba(this.v,["yaw","pitch","bleaching","bleachingDistance"],this.Wf);b.prototype.Qb.call(this)};a.prototype.Wf=function(){this.set("yaw",this.v.get("yaw"));this.set("pitch",this.v.get("pitch"));this.set("bleaching",this.v.get("bleaching"));this.set("bleachingDistance",this.v.get("bleachingDistance"))};a.prototype.ea=function(p){b.prototype.ea.call(this,p);this.set("rendererYaw",p.Sa);this.set("rendererPitch",p.pitch); this.set("rendererRoll",p.bf);this.set("rendererCameraFOV",p.Vh);this.set("rendererWidth",p.width);this.set("rendererHeight",p.height);this.set("inVR",p.Cb);if(this.N("composedTranslationX","composedTranslationY","composedTranslationZ")){var q=this.get("composedTranslationX"),n=this.get("composedTranslationY"),r=this.get("composedTranslationZ");this.set("translationAlpha",Math.max(0,1-10*Math.sqrt(q*q+n*n+r*r)))}if(this.N("rendererYaw","rendererPitch","rendererRoll","rendererCameraFOV","rendererWidth", "rendererHeight","inVR","yaw","pitch","translationAlpha","composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")){var t=p.Sa+this.get("composedDeltaYaw"),u=p.pitch+this.get("composedDeltaPitch"),v=p.bf+this.get("composedDeltaRoll");q=this.get("translationAlpha");r=n=0;if(!p.Cb&&(t=k.get(this.get("yaw"),this.get("pitch"),t,u,v,p.Vh,p.width,p.height))){var w=.5*p.width;var x=.5*p.height;var y=t.x;var A=t.y;w=2*(w-y);x=2*(x-A);r=Math.sqrt(w*w+x*x);t=Math.min(p.width,p.height);n=Math.max(0,Math.min(.7, 1-r/Math.sqrt(p.width*p.width,p.height*p.height)))*q;p=this.get("bleaching");r=1-Math.max(0,Math.min(1,r/(t*this.get("bleachingDistance"))));r=p*r*q}for(p=0;p=this.yL&&(f=0,c+=this.OF,d=0);l.left=c;l.top=d;l.xAa=c+.5*this.OF;l.yAa=d+.5*this.NF;l.width=this.OF;l.height=this.NF;f+=1;d+=this.NF}.bind(this));this.xf=Math.ceil(this.ae.length/this.yL)*this.OF;this.yh=Math.min(this.yL,this.ae.length)*this.NF};e.prototype.update=function(){for(var b=!1,g=0;g=this.ae.length&&(d=-1));return d};e.prototype.$da=function(b){this.kpa=b};e.prototype.hea=function(b){this.nf=b};e.prototype.clear=function(){this.ae=this.O=this.xa=this.vb=null};return e}); define("by","require lo ky oH jt dg fd oj bF bv".split(" "),function(a){function e(n,r,t){n=(r-n)*(1-t);1E-5>Math.abs(n)&&(n=0);return r-n}var h=a("lo"),m=a("ky"),k=a("oH"),b=a("jt"),g=a("dg"),d=a("fd"),c=a("oj"),f=a("bF"),l=a("bv");a=h.extend(b,function(n){b.call(this);this.vb=n;this.Np=this.Np.bind(this);this.ao=this.O=null;this.tv=this.$m=this.K8=this.av=void 0;this.wia=20;this.eg=null;this.wb=this.vb.get("opacity",.5);this.AM=this.vb.get("rollOverOpacity",this.wb);this.BLa=1;this.DLa=.66;this.set("tag", "MenuButton");this.set("visible",!1);this.set("over",!1);this.set("centerDistance",void 0)});a.prototype.Mb=function(){b.prototype.Mb.call(this);m.fa(this.vb,["label"],this.Np,!0)};a.prototype.Qb=function(){m.ba(this.vb,["label"],this.Np);b.prototype.Qb.call(this)};a.prototype.Np=function(){this.O=null};a.prototype.ea=function(n){this.uq(n);this.lg(n);this.SC(n);this.pf(n);this.Vd(n);b.prototype.ea.call(this,n)};a.prototype.uq=function(n){n.Cb&&!this.ao&&l.getType()==l.uA.Vk&&this.Tg([this.ao=new b])}; a.prototype.lg=function(){this.get("visible")&&(this.O||(this.get("textureSource")||this.set("textureSource",new d),this.O=new g(this.vb,[this.vb]),this.get("textureSource").Zl(this.O.og()),this.set("contentWidth",this.O.rd()),this.set("contentHeight",this.O.ee()),this.set("hfov",2*Math.atan2(.5*this.O.rd(),300)*q),this.set("distance",this.vb.get("distance"))),this.O.update()&&(this.get("textureSource").update(),this.Aa()),this.N("over")&&this.O.$da(this.get("over")?0:-1))};a.prototype.SC=function(n){this.N("visible")&& (this.eg=new c("linear",[new f("displayCoef",this.get("visible")?0:1,this.get("visible")?1:0,void 0)],300));this.eg&&(this.eg.Re()?this.eg=null:this.eg.zb(n.De))};a.prototype.pf=function(n){if(this.get("visible")||this.eg){this.$m=n.Sa;this.tv=Math.min(90,Math.max(-90,this.wia+this.wia-n.pitch));if(this.N("visible")&&this.get("visible"))this.set("yaw",n.Sa),this.set("pitch",n.pitch);else{for(;this.$m+180this.av;)this.av+=360;var r=(this.$m-this.av)/n.De,t=(this.tv- this.K8)/n.De,u=Math.atan2(t,r);t=Math.sqrt(t*t+r*r);t=Math.min(t,10*p);r=Math.cos(u)*t;u=Math.sin(u)*t;this.set("yaw",e(this.get("yaw"),this.$m+r,.02));this.set("pitch",e(this.get("pitch"),this.tv+u,.02))}this.av=this.$m;this.K8=this.tv;u=this.get("yaw")-n.Sa;n=this.get("pitch")-n.pitch;this.set("centerDistance",Math.sqrt(u*u+n*n))}};a.prototype.Vd=function(){if(!this.get("visible")&&!this.eg)this.set("alpha",0);else if(this.N("over","centerDistance")||this.eg){var n=this.get("over")?this.AM:this.wb, r=this.DLa,t=this.get("centerDistance")/this.get("hfov");1>t&&(r+=(1-t)*(this.BLa-r),n+=(1-t)*(this.AM-n));this.eg&&(n*=this.eg.cb("displayCoef"),r*=this.eg.cb("displayCoef"));this.set("alpha",n);this.set("scale",r)}};a.prototype.sn=function(n){if(n.gf==k.im){var r=!1;this.get("visible")&&!n.Mk()&&(r=0this.get("overIndex")?this.wb:this.AM;this.set("alpha",p*this.eg.cb("alpha"));this.set("scale",this.eg.cb("scale"));this.set("yaw",this.eg.cb("yaw")); this.set("pitch",this.eg.cb("pitch"))}else this.N("overIndex")&&(p=0>this.get("overIndex")?this.wb:this.AM,this.set("alpha",p))};a.prototype.sn=function(p){if(p.gf==m.im){var q=-1;if(!p.Mk()){var n=this.ou(p.fq).filter(function(r){return r.source==this.O.og()}.bind(this));0this.vy.indexOf(d.source)&&(this.vy.push(d.source),1==this.vy.length&&this.Jia())};a.prototype.spa=function(d){d=this.vy.indexOf(d.source);0<=d&&(this.vy.splice(d,1),0==this.vy.length&&this.APa())};a.prototype.rpa=function(d){var c=d.source;d=d.data.item;d.get("children",[]).length?(this.lqa(this.Kb().indexOf(c)+1),this.zha(d)):this.Nia()};a.prototype.Nia=function(){this.set("visible",!1);this.lqa(0);this.Jia();this.trigger(h.hE)};a.prototype.Jia=function(){this.rG&& (clearTimeout(this.rG),this.rG=null)};a.prototype.APa=function(){this.rG||(this.rG=setTimeout(function(){this.rG=null;this.Nia()}.bind(this),b))};var b=3E3,g=1;return a}); define("gb","require lo oH iW by ir".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("iW"),k=a("by"),b=a("ir");a=e.extend(m,function(g){m.call(this);this.v=g;this.kk.push(this.v);this.set("tag","Menu");this.set("visible",!1);this.Zd=new k(this.v);this.Zd.bind(h.qa,this.SEa,this,!1);this.Jh=new b(this.v);this.Jh.bind(h.hE,this.hNa,this,!1);this.Tg([this.Zd,this.Jh])});a.prototype.Mb=function(){m.prototype.Mb.call(this);this.trigger(h.Vc);this.trigger(h.Z)};a.prototype.ea=function(g){this.set("visible", g.Cb);this.N("visible")&&(this.Zd.set("visible",this.get("visible")),this.Jh.set("visible",!1));m.prototype.ea.call(this,g)};a.prototype.SEa=function(){this.Zd.set("visible",!1);this.Jh.set("visible",!0)};a.prototype.hNa=function(){this.Zd.set("visible",this.get("visible"))};return a}); define("ld","require lo oH jt fd ob lp".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("jt"),k=a("fd"),b=a("ob"),g=a("lp");a=e.extend(m,function(){m.call(this);this.set("tag","CustomPlane");this.set("source",null);this.set("sourceUpdated",!1);this.Sd=this.Kg=null});a.prototype.Mb=function(){this.Kg=(new b(h.Z)).bm(this.Mp.bind(this));this.Sd=(new b(h.Z)).Jo(this.Tu.bind(this));m.prototype.Mb.call(this)};a.prototype.Qb=function(){this.Kg.dispose();this.Sd.dispose();m.prototype.Qb.call(this)};a.prototype.ea= function(d){if(this.N("source","sourceUpdated","useMipmapping","anisotropy")){var c=this.get("textureSource");c||this.set("textureSource",c=new k);this.N("source")&&c.Zl(this.get("source"));this.N("sourceUpdated")&&(c.update(),this.set("sourceUpdated",!1));this.N("useMipmapping")&&c.A_(this.get("useMipmapping"),this.get("anisotropy"))}m.prototype.ea.call(this,d);this.N("meshGroup")&&(d=(d=this.get("meshGroup"))&&d.children||[],d.length&&(this.Kg.vf(d),this.Sd.vf(d)))};a.prototype.Mp=function(){this.trigger(h.Vc); this.trigger(h.Z)};a.prototype.Tu=function(d,c){var f=0;c.Ds(function(l){(l=c.Ul(l))&&(f+=l.Sg)});this.trigger(new g(h.ec,f/c.Xc.length))};return a}); define("hc","require lo ky oH gU iW ld lM di bu".split(" "),function(a){function e(n,r,t){this.MZ=n;this.MZ.bind(k.G("distanceToFloor"),this.ea,this,!1);this.Gj=r;this.Gj.bind(k.G("yaw"),this.ea,this,!1);this.Gj.bind(k.G("distance"),this.ea,this,!1);this.Gj.bind(k.G("enabled"),this.ea,this,!1);this.Gj.bind(k.G("enabledInSurfaceSelection"),this.ea,this,!1);this.Za=null;this.Yl=new d;this.Yl.set("hfov",20);this.Yl.set("vfov",20);this.Yl.set("pitch",-90);this.Yl.set("useMipmapping",!0);this.Yl.set("anisotropy", 16);this.Yl.set("source",t.og());this.Yl.set("contentWidth",t.rd());this.Yl.set("contentHeight",t.ee());this.ea()}var h=a("lo"),m=a("ky"),k=a("oH"),b=a("gU"),g=a("iW"),d=a("ld"),c=a("lM"),f=a("di"),l=a("bu");a=h.extend(g,function(n){g.call(this);this.BU=this.BU.bind(this);this.Mr=this.Mr.bind(this);this.yU=this.yU.bind(this);this.set("tag","SurfaceSelector");this.set("reticleVisible",!1);this.set("enabled",!1);this.la=n;this.sR=[];this.BK=new l;this.Cj=new f;this.Td=new d;this.Td.set("useMipmapping", !0);this.Td.set("anisotropy",16);this.Td.set("hfov",20);this.Td.set("vfov",20);this.Td.set("pitch",-90);this.set("reticleCoef",1);this.Tg([this.Td])});a.prototype.Mb=function(){this.KGa();g.prototype.Mb.call(this);m.fa(this.la,["distanceToFloor"],this.BU,!0);m.fa(this.la,["adjacentPanoramas"],this.Mr,!0);m.fa(this.Ba.yc,["adjacentPanoramaPositionsEnabled"],this.yU,!0);this.trigger(k.Vc);this.trigger(k.Z)};a.prototype.Qb=function(){g.prototype.Qb.call(this);m.ba(this.la,["distanceToFloor"],this.BU); m.ba(this.la,["adjacentPanoramas"],this.Mr);m.ba(this.Ba.yc,["adjacentPanoramaPositionsEnabled"],this.yU);this.Vqa([])};a.prototype.BU=function(){var n=this.la.get("distanceToFloor");this.Td.set("distance",n);n=b.qD(n);var r=b.hca(n,90),t=b.ica(n,90);this.BK.Sf.set(.5*-r,-n,.5*-t);this.BK.ej.set(.5*r,-n,.5*-t);this.BK.zz.set(.5*-r,-n,.5*t);this.wqa=n/b.Mv()};a.prototype.Mr=function(){this.Vqa(this.la.get("adjacentPanoramas",[]))};a.prototype.yU=function(){this.Mr()};a.prototype.Vqa=function(n){this.sR.forEach(function(r){r.clear()}); this.sR=n.map(function(r){return new e(this.la,r,this.B8)}.bind(this));n=[];this.Ba.yc.get("adjacentPanoramaPositionsEnabled")&&(n=n.concat(this.sR.map(function(r){return r.Yl})));n=n.concat([this.Td]);this.Tg(n)};a.prototype.ea=function(n){g.prototype.ea.call(this,n);this.set("enabled",n.vQ);this.Faa();this.Xy(n)};a.prototype.Faa=function(){this.N("enabled","reticleVisible","composedTranslationX","composedTranslationY","composedTranslationZ","composedDeltaYaw","composedDeltaPitch","composedDeltaRoll")&& (this.Td.set("alpha",this.get("reticleVisible")?1:0),this.set("alpha",!this.get("enabled")||this.get("composedTranslationX")||this.get("composedTranslationY")||this.get("composedTranslationZ")||this.get("composedDeltaYaw")||this.get("composedDeltaPitch")||this.get("composedDeltaRoll")?0:1),this.Vsa())};a.prototype.KGa=function(){this.MG=new c(this.Ba.M);this.MG.setPosition(this.get("reticleCoef"));this.Td.set("source",this.MG.og());this.Td.set("contentWidth",this.MG.rd());this.Td.set("contentHeight", this.MG.ee());this.B8=new c(this.Ba.M);this.B8.setPosition(0);this.B8.update(1)};a.prototype.Xy=function(n){this.N("reticleCoef")&&this.MG.setPosition(this.get("reticleCoef"));this.Td.set("sourceUpdated",this.MG.update(n.De))};a.prototype.sn=function(n){if(!this.get("enabled")||0==n.fq.length||n.Mk()||n.zXa())this.set("reticleVisible",!1);else{var r=n.fq[0];this.Cj.Sf.set(r.origin.x,r.origin.y,r.origin.z);this.Cj.ej.set(r.origin.x+r.direction.x,r.origin.y+r.direction.y,r.origin.z+r.direction.z);if(r= this.BK.intersection(this.Cj,!0)){var t=this.BK.SZ(r,!0),u=2*(.5-t.x);t=2*(.5-t.y);var v=p*Math.atan2(-u,t),w=-90+p*Math.atan2(Math.sqrt(u*u+t*t),1);if(-75>w||-1u?1:0);this.Za={Sa:n,pitch:u};u=b.qD(t)/b.Mv();this.iH={x:-Math.sin(n*q)*r/t*u,y:-Math.cos(n*q)*r/t*u};this.Yl.set("translationX",this.iH.x);this.Yl.set("translationZ",this.iH.y);this.Yl.set("distance",t)}else this.iH=this.Za=null,this.Yl.set("alpha",0)};var p=180/Math.PI,q=Math.PI/180;return a}); define("X","require lo ky oH lp iW jt hc ob nh jo bv".split(" "),function(a){var e=a("lo"),h=a("ky"),m=a("oH"),k=a("lp"),b=a("iW"),g=a("jt"),d=a("hc"),c=a("ob"),f=a("nh"),l=a("jo"),p=a("bv"),q=0;a=e.extend(b,function(t){b.call(this);this.v=t;this.kk.push(this.v);this.YB=this.YB.bind(this);this.Vf=this.Vf.bind(this);this.Mr=this.Mr.bind(this);this.hp(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","Panorama");this.set("loadingActive",!1);this.set("blendingActive",!0);this.set("currentTime", 0);this.set("adjacentPanoramas",[]);this.set("preloadEnabled",!0);this.set("backgroundPreloadEnabled",!0);this.set("surfaceSelectionEnabled",!1);this.set("id","panorama_"+q++);this.set("ready",!1);this.HV=[];this.ho=this.Sd=this.Af=null;this.Eh=new n;this.Qpa=new r;this.PQa=new d(this.v);this.$n=new r;this.Tg([this.Eh,this.Qpa,this.PQa,this.$n])});a.prototype.Mb=function(){this.Af=(new c(m.Z)).bm(this.Mp.bind(this));this.Sd=(new c(m.ec)).Jo(this.$B.bind(this));this.ho=(new c(m.Vc)).bm(this.cMa.bind(this)); b.prototype.Mb.call(this);this.get("blendingActive")&&this.Ba.set("globalBlendingActive",this.Ba.get("globalBlendingActive")+1);h.fa(this.v,["currentTime"],this.YB,!0);h.fa(this.v,["frames","overlays","vrMenu","flipImageHorizontally"],this.Vf,!0);h.fa(this.v,["adjacentPanoramas"],this.Mr,!0)};a.prototype.Qb=function(){this.Af.dispose();this.Sd.dispose();this.ho.dispose();this.get("blendingActive")&&this.Ba.set("globalBlendingActive",this.Ba.get("globalBlendingActive")-1);b.prototype.Qb.call(this); h.ba(this.v,["currentTime"],this.YB);h.ba(this.v,["frames","overlays","vrMenu","flipImageHorizontally"],this.Vf);h.ba(this.v,["adjacentPanoramas"],this.Mr);this.n$()};a.prototype.Vf=function(){function t(B,z,C){B=y.indexOf(B);return 0>B?C:w[B].get(z,C)}function u(B){return t(B,"projected",!1)}var v=this.Ba.Pv(this.v.get("frames"));v.forEach(function(B){B.set("panoramaId",this.get("id"));B.set("flipHorizontally",this.v.get("flipImageHorizontally"))}.bind(this));var w=this.v.get("overlays"),x=this.Ba.Pv(w), y=x.slice(),A=x.filter(u).filter(function(B){return t(B,"enabled",!0)});this.v.get("vrMenu")&&x.push(this.Ba.Pv(this.v.get("vrMenu")));x.forEach(function(B){B.set("panoramaId",this.get("id"))}.bind(this));this.Af.vf(v.concat(x));this.Sd.vf(v.concat(x));this.ho.vf(v.concat(A));this.Qpa.Tg(x.filter(u));this.Eh.Tg(v);this.$n.Tg(x.filter(function(B){return!u(B)}));this.set("panoramaPixelsPerDegree",f.Ova(this.v));this.bta()};a.prototype.YB=function(){this.set("currentTime",this.v.get("currentTime",0))}; a.prototype.Mr=function(){this.set("adjacentPanoramas",this.v.get("adjacentPanoramas",[]))};a.prototype.Mp=function(){this.Fj();this.trigger(m.Z)};a.prototype.cMa=function(){this.Fj();this.set("ready",!0);this.trigger(m.Vc)};a.prototype.$B=function(){this.Fj()};a.prototype.Fj=function(){var t=0;this.Sd.Ds(function(u){var v=0,w;this.Af.Ul(u)?v=100:(w=this.Sd.Ul(u))&&(v=w.Sg);t+=v}.bind(this));this.trigger(new k(m.ec,t/this.Sd.Xc.length))};a.prototype.ea=function(t){t.Cb&&!this.ao&&p.getType()==p.uA.Vk&& this.Tg([this.ao=new g].concat(this.Kb()));var u=this.get("blendingActive");this.set("blendingActive",1>this.get("alpha"));u!=this.get("blendingActive")&&this.Ba.set("globalBlendingActive",this.Ba.get("globalBlendingActive")+(this.get("blendingActive")?1:-1));this.set("backgroundPreloadEnabled",!1!==this.Ba.mc.get("backgroundPreloadEnabled"));this.set("preloadEnabled",t.RP);this.N("adjacentPanoramas","loadingActive","preloadEnabled","backgroundPreloadEnabled")&&(this.get("loadingActive")&&this.get("backgroundPreloadEnabled")? this.vQa():this.n$());this.N("index")&&this.bta();b.prototype.ea.call(this,t)};a.prototype.vca=function(){return f.vca(this.v,this.get("preloadEnabled"))};a.prototype.mda=function(){return f.mda(this.v,this.get("preloadEnabled"))};a.prototype.vQa=function(){this.n$();this.HV=this.get("adjacentPanoramas").map(function(t){t=t.get("panorama");return[t,f.jn(t,this.get("preloadEnabled"))]}.bind(this));this.HV.forEach(function(t){l.gua(t[0],t[1]);l.uZ(t[0],1)})};a.prototype.n$=function(){this.HV.forEach(function(t){l.uZ(t[0], -1);l.eYa(t[0],t[1])});this.HV=[]};a.prototype.bta=function(){var t=this.get("index");this.Eh.Kb().forEach(function(u,v,w){u.set("panoramaIndex",t);u.set("frameIndex",v);u.set("frameCount",w.length)})};var n=e.extend(b,function(){b.call(this);this.hp(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("loadingActive",!1);this.set("currentTime",0);this.set("tag","Group")});n.prototype.ea=function(t){this.Kb().forEach(function(u,v,w){u.set("frontFrame",w[w.length-1])});b.prototype.ea.call(this, t)};var r=e.extend(b,function(){b.call(this);this.hp(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("loadingActive",!1);this.set("currentTime",0);this.set("tag","Group")});return a}); define("jk",["require","lo","fy","ep"],function(a){var e=a("lo"),h=a("fy"),m=a("ep"),k=0;a=e.extend(h,function(){h.call(this);this.set("tag","PanoramaFrame");this.set("panoramaIndex",0);this.set("frameIndex",0);this.set("frameCount",1);this.set("id","frame_"+k++)});a.prototype.ea=function(b){h.prototype.ea.call(this,b);this.TC()};a.prototype.XC=function(){if(this.N("panoramaIndex","frameIndex","frameCount","meshGroup")){var b=this.get("meshGroup");if(b){var g=this.get("panoramaIndex"),d=this.get("frameIndex"), c=this.get("frameCount"),f=b.children.length;b.children.forEach(function(l,p){m.l_(l,g+(p+d/c)/f)}.bind(this))}}};a.prototype.TC=function(){if(this.N("meshGroup","panoramaId","id")){var b=this.get("meshGroup");b&&b.children.forEach(function(g,d){m.setAttribute(g,m.Lz,this.get("panoramaId"));m.setAttribute(g,m.G_,d);m.setAttribute(g,m.bE,this.get("id"))}.bind(this))}};return a}); define("nP","require lo ky oH hT iW jk ob nh fv ko lp".split(" "),function(a){var e=a("lo"),h=a("ky"),m=a("oH"),k=a("hT"),b=a("iW"),g=a("jk"),d=a("ob"),c=a("nh"),f=a("fv"),l=a("ko"),p=a("lp");a=e.extend(g,function(n){g.call(this);this.set("tag","ImagePanoramaFrame");this.Gpa=!0;this.v=n;this.kk.push(this.v);this.yk=this.Kg=this.ho=null;this.Q6=[];this.Vf=this.Vf.bind(this);this.hp(["loadingActive","currentTime","panoramaId","panoramaPixelsPerDegree"]);this.Tg([this.$n=new q])});a.prototype.Mb=function(){this.ho= new d(m.Z);this.Kg=new d(m.Z);this.yk=new d(m.ec);g.prototype.Mb.call(this);h.fa(this.v,["overlays"],this.Vf,!0)};a.prototype.Qb=function(){this.ho.dispose();this.Kg.dispose();this.yk.dispose();h.ba(this.v,["overlays"],this.Vf);g.prototype.Qb.call(this)};a.prototype.Vf=function(){this.$n.Tg(this.Ba.Pv(this.v.get("overlays")));this.Psa()};a.prototype.Psa=function(){this.Kg.vf([].concat(this.Q6,this.$n.Kb()));this.yk.vf([].concat(this.Q6,this.$n.Kb()))};a.prototype.In=function(){var n=[],r=[],t=[]; c.cca(this.v,this.Gpa).forEach(function(u,v){var w=f.jUa(this.v,u);c.DWa(u)?(0==v&&(n=n.concat(w),r=r.concat(w)),l.ew(w,0==v?l.$q:l.WQ),l.dw(w,0==v?l.$o:l.O0)):(0==v&&(n=n.concat(w)),r=r.concat(w),l.ew(w,l.$q),l.dw(w,l.$o));l.RD(w,0==v?k.Z0:k.Xk);l.kQ(w,v);t=t.concat(w)}.bind(this));this.ho.vf(n);this.Q6=r;this.Psa();this.Kg.bm(this.Mp.bind(this));this.ho.bm(this.EMa.bind(this));this.yk.Jo(this.$B.bind(this));this.trigger(new p(m.ec,0));return t};a.prototype.EMa=function(){this.trigger(m.Vc)};a.prototype.Mp= function(){this.trigger(m.Z)};a.prototype.ea=function(n){this.Gpa=n.RP;this.vSa();g.prototype.ea.call(this,n)};a.prototype.vSa=function(){var n=this.get("frontFrame");if(this.N("frontFrame")||n&&n.N("alpha"))n=n&&n!=this?1-n.get("alpha"):1,this.$n.set("alpha",n)};a.prototype.$B=function(){var n=0;this.yk.Ds(function(r){var t=0,u;this.Kg.Ul(r)?t=100:(u=this.yk.Ul(r))&&(t=u.Sg);n+=t}.bind(this));this.trigger(new p(m.ec,n/this.yk.Xc.length))};var q=e.extend(b,function(){b.call(this);this.hp(["loadingActive", "panoramaId","panoramaPixelsPerDegree"]);this.set("loadingActive",!1);this.set("tag","Group")});return a}); define("gy","require lo oH jt mK ob lp".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("jt"),k=a("mK"),b=a("ob"),g=a("lp");a=e.extend(m,function(){m.call(this);this.set("tag","ImagePlane");this.set("url",null);this.Sd=this.Af=null});a.prototype.Mb=function(){this.Af=(new b(h.Z)).bm(this.Mp.bind(this));this.Sd=(new b(h.ec)).Jo(this.Tu.bind(this));m.prototype.Mb.call(this)};a.prototype.Qb=function(){this.Af.dispose();this.Sd.dispose();m.prototype.Qb.call(this)};a.prototype.ea=function(d){if(this.N("url")){var c= this.get("url");c=c?new k(c):null;this.set("textureSource",c)}m.prototype.ea.call(this,d);this.N("meshGroup")&&(d=(d=this.get("meshGroup"))&&d.children||[],d.length&&(this.Af.vf(d),this.Sd.vf(d)))};a.prototype.Mp=function(){this.trigger(h.Vc);this.trigger(h.Z)};a.prototype.Tu=function(d,c){var f=0;c.Ds(function(l){(l=c.Ul(l))&&(f+=l.Sg)});this.trigger(new g(h.ec,f/c.Xc.length))};return a}); define("mo","require eg oH cy kO od".split(" "),function(a){function e(c,f){this.Nc=c;this.aa=f;this.wk=!1;this.Mi=[];this.tm=this.$E=void 0;this.ue=[];this.B2();this.q3();this.RW();this.Bf()}function h(c,f,l){this.time=c;this.cue=f;this.action=l}var m=a("eg"),k=a("oH"),b=a("cy"),g=a("kO"),d=a("od");e.prototype.clear=function(){this.TJ();this.Mi=[];this.W$();this.aa=this.Nc=null};e.prototype.B2=function(){this.aa.bind(d.Jf,this.Ye,this,!0);this.aa.bind(k.ne,this.Bf,this,!0);this.aa.bind(k.sb,this.ty, this,!0)};e.prototype.W$=function(){this.aa.unbind(d.Jf,this.Ye,this,!0);this.aa.unbind(k.ne,this.Bf,this,!0);this.aa.unbind(k.sb,this.ty,this,!0)};e.prototype.Bf=function(){var c=this.aa.getState()!=g.T;this.wk!=c&&((this.wk=c)?this.RW():this.TJ())};e.prototype.ty=function(){this.$C()};e.prototype.Ye=function(){this.$C()};e.prototype.RW=function(){this.tm=this.$E=0};e.prototype.$C=function(){if(this.aa&&this.wk){var c=this.ue.slice(),f=this.aa.getCurrentTime(),l=f-this.$E;0>l&&(this.ue=[],this.tm= 0);l=0<=l&&2>l;this.$E=f;var p;for(p=this.tm;pf);p++);for(;this.tmH-this.jma))){this.jma=H;H=this.v.pz();var D=H.get("state");D==k.X?H.set("state",k.Eb):D==k.Eb&&H.set("state",k.X)}};a.prototype.ySa=function(H){if(this.p8){if(this.Bl!=(this.aa.getState()==k.Eb))if(this.Bl=!this.Bl, this.uja){var D=this.vk.get("alpha"),I=this.Bl?1:0;this.Xu=new x("linear",[new y("playAlpha",D,I),new y("playScale",H.Cb?1.5:1,H.Cb?1.5:1),new y("pauseAlpha",0,0),new y("pauseScale",1,1)],Math.abs(I-D)*A);this.vk.Uh()}else this.Xu=new x("linear",this.Bl?[new y("playAlpha",0,0),new y("playScale",1,1),new y("pauseAlpha",0,2),new y("pauseScale",.5,1.5)]:[new y("playAlpha",0,2),new y("playScale",.5,1.5),new y("pauseAlpha",0,0),new y("pauseScale",1,1)],B),this.vk.Uh(),this.Rm.Uh();this.Xu&&(this.Xu.zb(H.De), D=this.Xu.cb("playAlpha"),this.vk.set("alpha",1>D?D:2-D),this.vk.set("scale",this.Xu.cb("playScale")),D=this.Xu.cb("pauseAlpha"),this.Rm.set("alpha",1>D?D:2-D),this.Rm.set("scale",this.Xu.cb("pauseScale")),this.Aa(),this.Xu.Re()&&(this.Xu=null));0C;)C+=360;return C+H}var h=a("lo"),m=a("ky"),k=a("oH"),b=a("kO");a("ht");var g=a("iW"),d=a("dj"),c=a("ld"),f=a("gy"),l=a("lL"),p=a("nw"),q=a("ob"),n=a("nh"),r=a("eA"),t=a("kP"),u=a("S"),v=a("lp"),w=a("oj"),x=a("bF"),y=a("od"),A=Math.PI/180;a=h.extend(g,function(C){g.call(this);this.v=C;this.kk.push(this.v);this.Vf=this.Vf.bind(this);this.YU=this.YU.bind(this); this.hp(["loadingActive","currentTime","panoramaPixelsPerDegree"]);this.set("tag","Popup");this.set("inVR",!1);this.set("enabledInStandard",!0);this.set("interactionEnabled",!0);this.set("loadingActive",!1);this.set("frameEmpty",!0);this.set("state",b.T);this.set("itemVisible","none");this.set("visible",!1);this.set("visiblePosition",0);this.set("alpha",0);this.set("over",!1);this.set("gazeOver",!1);this.set("video",null);this.set("image",null);this.ie=this.rb=this.Ra=this.Sd=this.Af=null;this.mb= new p;this.Kt=this.Rx=this.Pl=this.Qh=this.aa=null});a.prototype.Mb=function(){this.Af=(new q(k.Z)).bm(this.VB.bind(this));this.Sd=(new q(k.ec)).Jo(this.ZB.bind(this));g.prototype.Mb.call(this);this.dGa();this.appendChild(this.ie);m.fa(this.v,B,this.Vf,!0);m.eD(this.v,z,this.YU,!0)};var B="playbackPositions popupDistance popupMaxHeight popupMaxWidth image.levels.url video state".split(" "),z=["visible"];a.prototype.Qb=function(){this.Af.dispose();this.Sd.dispose();m.ba(this.v,B,this.Vf);m.ba(this.v, z,this.YU);this.cB();this.yx();this.xx();g.prototype.Qb.call(this)};a.prototype.Vf=function(){var C=n.xVa(this.v,this.get("panoramaPixelsPerDegree"));this.set("imageURL",C&&C.get("url"));this.set("imageWidth",C&&C.get("width"));this.set("imageHeight",C&&C.get("height"));this.set("video",this.v.get("video"));this.set("state",this.v.get("state"));this.set("popupDistance",this.v.get("popupDistance"));this.set("popupMaxWidth",this.v.get("popupMaxWidth"));this.set("popupMaxHeight",this.v.get("popupMaxHeight")); this.set("playbackPositions",this.v.get("playbackPositions"))};a.prototype.YU=function(){this.set("visible",this.v.get("visible"))};a.prototype.ea=function(C){this.Ey=C.Sa;this.Dy=C.pitch;this.uq(C);this.zSa();this.oO(C);this.Vd(C);this.nSa(C);this.URa(C);g.prototype.ea.call(this,C)};a.prototype.zSa=function(){this.N("playbackPositions","currentTime")&&(this.mb.Fz(this.get("playbackPositions")),this.mb.Ez(this.get("currentTime")),this.set("sourceYaw",this.mb.get("yaw")),this.set("sourcePitch",this.mb.get("pitch")), this.set("sourceRotationX",this.mb.get("rotationX")),this.set("sourceRotationY",this.mb.get("rotationY")),this.set("sourceRotationZ",this.mb.get("rotationZ")),this.set("sourceHFOV",this.mb.get("hfov")))};a.prototype.uq=function(){if(this.N("video","imageURL")){var C=[this.ie];this.N("imageURL")&&(this.eK(),this.Ra&&C.push(this.Ra),this.jN("itemVisible"));this.N("video")&&(this.gK(),this.rb&&C.push(this.rb),this.jN("itemVisible"));this.Af.vf(C);this.Sd.vf(C);this.Tg(C)}};a.prototype.oO=function(){if(this.aa){var C= this.aa.AY();this.set("frameEmpty",!!C&&C.isEmpty());!this.Qh||C&&!this.Qh.isEqual(C)?(this.Qh=C,this.rb.set("source",this.Qh.fB),this.rb.set("sourceUpdated",!0),this.Aa()):this.aa.getState()==b.X&&this.Aa()}else this.set("frameEmpty",!1)};a.prototype.Vd=function(C){this.set("inVR",C.Cb);this.set("hotspotsEnabled",C.xD);this.set("rendererYaw",C.Sa);this.set("rendererPitch",C.pitch);this.set("rendererRoll",C.bf);this.set("rendererWidth",C.cY);this.set("rendererHeight",C.HO);this.set("rendererHFOV", C.Ee);if(this.N("visible")){var H=this.get("visiblePosition"),D=this.get("visible")?1:0,I=Math.max(1,this.v.get(this.get("visible")?"showDuration":"hideDuration")*Math.abs(D-H)),F=this.v.get(this.get("visible")?"showEasing":"hideEasing");H!=D&&(this.Pl=new w(F,[new x("position",H,D)],I));this.get("visible")||this.aa&&this.aa.Jd(b.T)}this.Pl&&(this.Pl.Re()?(this.Pl=null,this.get("visible")?(this.v.trigger(k.pJ),this.v.get("autoplay")&&this.aa&&this.aa.Jd(b.X)):setTimeout(function(){this.v&&this.v.trigger(k.hJ)}.bind(this), 0)):this.Pl.zb(C.De),this.Pl&&(this.set("visiblePosition",this.Pl.cb("position")),this.Aa()));H=!1;if(H=C.Cb?this.N("visible","itemVisible"):this.N("rendererYaw","rendererPitch","rendererRoll","rendererWidth","rendererHeight","rendererHFOV","itemVisible","popupMaxWidth","popupMaxHeight","sourceHFOV"))this.set("targetImageScale",this.ola(this.Ra,C)),this.set("targetVideoScale",this.ola(this.rb,C)),this.set("targetYaw",e(this.get("rendererYaw"),this.get("sourceYaw"))),this.set("targetPitch",this.get("rendererPitch")), this.set("targetRotationZ",e(C.Cb?0:this.get("rendererRoll"),this.get("sourceRotationZ")));if(H||this.N("visiblePosition","targetScale","targetYaw","targetPitch","targetRoll","popupDistance","hfov")){D=this.get("visiblePosition");var N=this.get("targetYaw")*D+this.get("sourceYaw")*(1-D),S=this.get("targetPitch")*D+this.get("sourcePitch")*(1-D),Q=this.get("sourceRotationX")*(1-D),R=this.get("sourceRotationY")*(1-D),W=this.get("targetRotationZ")*D+this.get("sourceRotationZ")*(1-D);C=Math.min(1,2*D); var G=this.get("popupDistance"),L=this.get("sourceHFOV");H=this.get("targetImageScale")*D+(1-D);D=this.get("targetVideoScale")*D+(1-D);this.set("alpha",C);this.Ra&&this.Ra.set("scale",H);this.rb&&this.rb.set("scale",D);[].concat(this.rb?[this.rb]:[],this.Ra?[this.Ra]:[]).forEach(function(U){U.set("yaw",N);U.set("pitch",S);U.set("rotationX",Q);U.set("rotationY",R);U.set("rotationZ",W);U.set("distance",G);U.set("hfov",L)})}};a.prototype.nSa=function(C){if(this.N("frameEmpty","state","imageURL","video")){var H= "none";!this.rb||this.Ra&&(this.get("frameEmpty")||this.get("state")==b.T)?this.Ra&&(H="image"):H="video";this.set("itemVisible",H)}if(this.N("itemVisible")){"video"!=this.get("itemVisible")&&this.aa&&this.aa.Jd(b.T);H=this.Ra?this.Ra.get("alpha"):0;var D=this.rb?this.rb.get("alpha"):0,I="image"==this.get("itemVisible")?1:0,F="video"==this.get("itemVisible")?1:0,N="video"==this.get("itemVisible")?1:200*Math.max(Math.abs(I-H),Math.abs(F-D));this.Rx=new w("linear",[new x("imageAlpha",H,I),new x("videoAlpha", D,F)],N)}this.Rx&&(this.Rx.Re()?this.Rx=null:this.Rx.zb(C.De),this.Rx&&(this.Ra&&this.Ra.set("alpha",this.Rx.cb("imageAlpha")),this.rb&&this.rb.set("alpha",this.Rx.cb("videoAlpha")),this.Aa()))};a.prototype.URa=function(C){this.N("gazeOver","inVR","visible")&&(this.Gia(),this.get("inVR")&&this.v.get("lookAwayToHide")&&!this.get("gazeOver")&&this.get("visible")&&this.sQa());C.Cb&&this.v.get("darkenBackground")&&this.v.get("lookAwayToHide")?(this.N("visible")&&this.get("visible")&&(this.ie.set("alpha", .8),this.Kt=null),this.N("gazeOver")&&(this.Kt=new w(this.get("gazeOver")?"linear":"quad_in",[new x("alpha",this.ie.get("alpha"),this.get("gazeOver")?.8:0)],this.get("gazeOver")?300:this.v.get("lookAwayToHideTime")))):(this.Kt=null,this.ie.set("alpha",C.Cb&&this.v.get("darkenBackground")?.8:0));this.Kt&&(this.Kt.Re()?this.Kt=null:this.Kt.zb(C.De),this.Kt&&(this.ie.set("alpha",this.Kt.cb("alpha")),this.Aa()))};a.prototype.sQa=function(){this.Gia();this.$T=setTimeout(function(){this.$T=null;this.v.set("visible", !1)}.bind(this),this.v.get("lookAwayToHideTime"))};a.prototype.Gia=function(){this.$T&&(clearTimeout(this.$T),this.$T=null)};a.prototype.ola=function(C,H){if(!C)return 1;var D=this.get("popupMaxWidth","100%"),I=u.Lo(D),F=C.get("contentWidth"),N=C.get("contentHeight"),S=this.get("popupMaxHeight","100%"),Q=u.Lo(S);if(this.get("inVR")){var R=C=.5*this.get("rendererWidth"),W=Math.min(H.Vh,80);H=t.hD(W,C,R);var G=this.get("sourceHFOV");D=Math.min(Math.tan(H*(void 0!==I?I/100:D/C)*.5*A)/Math.tan(.5*G*A), Math.tan(W*(void 0!==Q?Q/100:S/R)*.5*A)/Math.tan(.5*t.hD(G,F,N)*A))}else C=this.get("rendererWidth"),R=this.get("rendererHeight"),D=F*Math.min((void 0!==I?C*I/100:D)/F,(void 0!==Q?R*Q/100:S)/N),H=this.get("rendererHFOV"),G=this.get("sourceHFOV"),D=Math.tan(.5*H*A)*D/C/Math.tan(.5*G*A);return D};a.prototype.eK=function(){this.cB();this.get("imageURL")&&(this.Ra=new f,this.Ra.set("url",this.get("imageURL")),this.Ra.set("contentWidth",this.get("imageWidth")),this.Ra.set("contentHeight",this.get("imageHeight")), this.Ra.set("alpha",0))};a.prototype.cB=function(){this.Ra&&(this.Ra.remove(),this.Ra=null)};a.prototype.gK=function(){this.yx();if(this.get("video")){this.rb=new c;var C=y.Jj(this.get("video"));this.rb.set("contentWidth",C.get("width"));this.rb.set("contentHeight",C.get("height"));this.rb.set("alpha",0);this.aa=new y(this.Ba.mc,this.get("video"));this.Ja=new l(this.Ba.mc,this.v,this.aa);this.Gt()}};a.prototype.yx=function(){this.rb&&(this.ev(),this.Ja.clear(),this.Ja=null,this.aa.clear(),this.Qh= this.aa=null,this.rb.remove(),this.rb=null)};a.prototype.dGa=function(){this.xx();this.ie=new d("#000000")};a.prototype.xx=function(){this.ie&&(this.ie.remove(),this.ie=null)};a.prototype.VB=function(){this.trigger(k.Vc);this.trigger(k.Z)};a.prototype.ZB=function(C,H){var D=0;H.Ds(function(I){var F=0,N;this.Af.Ul(I)?F=100:(N=this.Sd.Ul(I))&&(F=N.Sg);D+=F}.bind(this));this.trigger(new v(k.ec,D/H.Xc.length))};a.prototype.Bf=function(){this.Aa()};a.prototype.Ye=function(){this.Aa()};a.prototype.ty=function(){this.v.trigger(k.sb)}; a.prototype.Gt=function(){this.aa.bind(y.Jf,this.Ye,this,!0);this.aa.bind(k.ne,this.Bf,this,!0);this.aa.bind(k.sb,this.ty,this,!0)};a.prototype.ev=function(){this.aa.unbind(y.Jf,this.Ye,this,!0);this.aa.unbind(k.ne,this.Bf,this,!0);this.aa.unbind(k.sb,this.ty,this,!0)};a.prototype.sn=function(C){C.gf==k.im?(!C.Mk()&&this.get("visible")?(C.Pq(this.v),this.set("over",this.pq(C)),this.set("gazeOver",this.$Qa(C))):this.set("over",!1),this.get("over")&&(C.az(this.v),C.Qs()&&C.bz(this.v),C.Lk(this.get("popupDistance"))), this.N("over")&&(this.v.trigger(this.get("over")?k.Wc:k.ac),C.Qs()&&this.v.trigger(this.get("over")?k.mA:k.bp))):C.gf==k.Uj&&!C.Mk()&&this.get("visible")&&(C.Pq(this.v),C.Lk(this.get("popupDistance")),this.pq(C)?C.wWa()||this.v.trigger(k.qa):this.v.set("visible",!1))};a.prototype.pq=function(C){return this.nsa(C.fq)};a.prototype.$Qa=function(C){C=C.EK;return!!C&&this.nsa([C])};a.prototype.nsa=function(C){if(this.get("visible")){C=("video"==this.get("itemVisible")?this.rb:this.Ra).ou(C);for(var H= 0;H");this.na.css({"pointer-events":"none",position:"absolute","z-index":b.KCa,"text-align":"center",display:"none"});this.ie=h("");this.ie.css({position:"absolute",left:0,top:0,right:0,bottom:0});this.na.append(this.ie);this.dX=h("");this.dX.css({position:"relative"});this.na.append(this.dX);this.$i=this.zT= this.Eg=null;this.Vu=this.Uu=void 0;this.wu=!1;this.wsa=void 0}var h=a("jquery.mod"),m=a("eg"),k=a("oH");a("v");var b=a("pd"),g=a("hs"),d={toolTip:void 0,toolTipBackgroundColor:"#F6F6F6",toolTipBackgroundOpacity:1,toolTipBorderColor:"#767676",toolTipBorderRadius:3,toolTipBorderSize:1,toolTipCentered:!1,toolTipCenteredOffsetY:void 0,toolTipFontFamily:"Segoe UI",toolTipFontSize:12,toolTipFontColor:"#606060",toolTipFontWeight:"normal",toolTipFontStyle:"normal",toolTipHorizontalAlign:"center",toolTipOpacity:1, toolTipPaddingBottom:2,toolTipPaddingLeft:4,toolTipPaddingTop:2,toolTipPaddingRight:4,toolTipShadowBlurRadius:3,toolTipShadowColor:"#333333",toolTipShadowHorizontalLength:3,toolTipShadowOpacity:1,toolTipShadowSpread:0,toolTipShadowVerticalLength:3,toolTipTextShadowBlurRadius:3,toolTipTextShadowColor:"#000000",toolTipTextShadowHorizontalLength:0,toolTipTextShadowOpacity:0,toolTipTextShadowVerticalLength:0,toolTipDisplayTime:600};e.prototype.Ac=function(){return this.na};e.prototype.MD=function(c){if(!this.vsa){for(;c&& c.get("toolTipDisabled");)c=c.getParent();this.hide();this.Eg&&m(m(d).keys()).each(function(f){this.Eg.unbind(k.G(f),this.M7,this)},this);if(this.Eg=c)m(m(d).keys()).each(function(f){this.Eg.bind(k.G(f),this.M7,this)},this),this.M7()}};e.prototype.k_a=function(c,f){this.Eg=c;this.wsa=f;this.HT()||(this.wu?this.Ira():this.IN())};e.prototype.Gra=function(c,f,l){this.wu&&this.Eg.trigger(k.rga);this.RRa(c);this.dX.html(this.UJa(f));this.yia=l;this.pf();this.Eg.trigger(k.JCa);this.wu=!0;this.na.css("display", "inline");(l||c.get("checkToolTipOcclusion"))&&this.jQa(c)};e.prototype.pf=function(){var c=this.Ap(),f=c.x;c=c.y;var l=this.na.outerWidth(),p=this.na.outerHeight();if(this.yia){f-=.5*this.na.width();var q=this.Eg.get("toolTipCenteredOffsetY");c=void 0===q?c-.5*this.na.height():0n.length;)n="0"+n;return n}(255*f("toolTipTextShadowOpacity"))+p.substr(1,6)+",direction="+q+")";this.dX.css(l)};e.prototype.XKa=function(c,f,l){f=document.elementsFromPoint(f,l);c=c.Ac()[0]; l=this.fb.Ac()[0];for(var p=0;p"+l+"
"})};e.prototype.PHa=function(c){e.jha.nodeValue=c;return e.fha.innerHTML};e.nBa=d;e.fha=document.createElement("pre");e.jha=document.createTextNode("");e.fha.appendChild(e.jha);return e}); define("cP",["require","bk","bR","hs"],function(a){function e(b,g){this.M=b;this.Ll=g;this.aQa()}var h=a("bk"),m=a("bR"),k=a("hs");e.prototype.og=function(){return this.O};e.prototype.rd=function(){return this.O.width};e.prototype.ee=function(){return this.O.height};e.prototype.aQa=function(){this.O=document.createElement("canvas");var b=this.Ll.split("\n"),g=this.Jg("toolTipBackgroundColor"),d=this.Jg("toolTipBackgroundOpacity"),c=this.Jg("toolTipBorderRadius"),f=this.Jg("toolTipBorderColor"),l= this.Jg("toolTipBorderSize");this.Jg("toolTipDisplayTime");var p=this.Jg("toolTipFontFamily"),q=this.Jg("toolTipFontSize"),n=this.Jg("toolTipFontColor"),r=this.Jg("toolTipFontWeight"),t=this.Jg("toolTipFontStyle"),u=this.Jg("toolTipPaddingBottom"),v=this.Jg("toolTipPaddingLeft"),w=this.Jg("toolTipPaddingTop"),x=this.Jg("toolTipPaddingRight"),y=this.Jg("toolTipOpacity"),A=this.Jg("toolTipTextShadowBlurRadius"),B=this.Jg("toolTipTextShadowColor"),z=this.Jg("toolTipTextShadowHorizontalLength"),C=this.Jg("toolTipTextShadowVerticalLength"), H=this.Jg("toolTipTextShadowOpacity"),D=new m.l1;D.fontFamily=p;D.fontSize=q+(isNaN(q)?"":"px");D.fontWeight=r;D.fontStyle=t;var I=b.map(function(G){return m(G,D,Q)}),F=0,N=0;I.forEach(function(G){F=Math.max(G.width,F);N+=G.height});var S=1k)&&(this.wS=k)};e.prototype.VX=function(k,b){if(""==this.Nb||this.Py>b)this.Nb=k,this.Py=b}; e.prototype.Hz=function(){return this.Nb};e.prototype.Pq=function(k){this.uia=h(k)};e.prototype.Mk=function(){return 0l.indexOf(f[p])){f=!1;break a}for(p=0;pf.indexOf(l[p])){f=!1;break a}f=!0}f||(this.IC(!1),this.yl=c.yl,this.yl.length&&this.IC(!0,c.Qo()))};a.prototype.fPa=function(c){this.Tt!=c&&(this.Tt=c,this.Td.set("changing",this.Tt),this.gaa(),this.Daa())}; a.prototype.IC=function(c,f){this.$c!=c&&(this.$c=c,this.Td.set("over",this.$c&&f),this.gaa(),this.Daa())};a.prototype.nv=function(c){this.xo!=c&&(this.xo=c,this.Nb.set("text",this.xo),this.Nb.set("alpha",this.xo?1:0),this.xo&&this.Nb.Uh())};a.prototype.Dk=function(c){this.j.KY().sort(function(f,l){return l.get("index")-f.get("index")}).forEach(function(f){f.sn(c)}.bind(this))};a.prototype.ek=function(c){this.Cj=this.Uka();return new b(this,this.Cj?[this.Cj]:[],this.Cj,c)};a.prototype.Daa=function(){!this.$c|| this.Tt||void 0===this.z9?this.p$():this.$c&&!this.iN&&this.CQa()};a.prototype.gaa=function(){this.$c||this.Tt||void 0===this.yla?(this.Td.set("alpha",1),this.dsa()):1!=this.Td.get("alpha")||this.SK||this.pQa()};a.prototype.p$=function(){this.iN&&(clearInterval(this.iN),this.iN=null)};a.prototype.CQa=function(){this.Td.set("overProgress",0);this.lpa=(new Date).getTime();this.iN=setInterval(this.LMa.bind(this),100)};a.prototype.LMa=function(){var c=(new Date).getTime()-this.lpa;c>=this.z9?(this.p$(), this.UJ()):this.Td.set("overProgress",c/this.z9)};a.prototype.dsa=function(){this.SK&&(clearInterval(this.SK),this.SK=null)};a.prototype.pQa=function(){this.xla=(new Date).getTime();this.SK=setInterval(this.fMa.bind(this),10)};a.prototype.fMa=function(){var c=this.yla-((new Date).getTime()-this.xla);this.Td.set("alpha",Math.max(.01,Math.min(1,c/500)));0>=c&&this.dsa()};return a}); define("kC","require lo gU ct ep fd h nz".split(" "),function(a){var e=a("lo"),h=a("gU"),m=a("ct"),k=a("ep"),b=a("fd"),g=a("h"),d=a("nz"),c=new THREE.Matrix4,f=Math.PI/180;a=e.extend(g,function(){g.call(this);this.set("tag","Laser");this.set("matrix",null);this.set("over",!1);this.set("pressed",!1);this.set("intersectionDistance",0);this.set("visible",!1);this.set("attachToCamera",!1);this.set("dotVisible",!0);this.T8=this.WM=this.Xr=this.S8=null;new THREE.Matrix4;this.U8=new THREE.Matrix4;this.U8.multiply(c.makeRotationX(-90* f));this.U8.multiply(c.makeTranslation(0,.5*l,0));this.BS=this.AS=this.zS=this.fu=this.c4=null;new THREE.Matrix4;this.d4=new THREE.Matrix4;this.bK=this.yS=this.b4=null;new THREE.Matrix4;this.$A=[new THREE.Matrix4,new THREE.Matrix4,new THREE.Matrix4];this.$A[0].multiply(c.makeRotationX(-90*f));this.$A[0].multiply(c.makeTranslation(0,.5*-q,0));this.$A[1].multiply(c.makeRotationX(-90*f));this.$A[1].multiply(c.makeTranslation(0,.5*-q,.5*-p));this.$A[2].multiply(c.makeRotationX(-90*f));this.$A[2].multiply(c.makeTranslation(0, .5*-q,-p))});a.prototype.ea=function(n){g.prototype.ea.call(this,n);this.Faa();this.Xy()};a.prototype.Faa=function(){this.N("visible")&&(this.get("meshGroup").visible=this.get("visible"));this.N("dotVisible")&&k.uf([this.AS,this.yS],this.get("dotVisible")?1:0)};a.prototype.Xy=function(){this.N("over","pressed")&&(this.$sa(),this.rta())};var l=.35,p=.012,q=.1;a.prototype.In=function(){this.yS=k.create(new THREE.SphereGeometry(2.3,32,32),this.pGa());this.AS=k.create(new THREE.SphereGeometry(2,32,32), this.qGa());this.T8=k.create(new THREE.CylinderGeometry(.003,.003,l,8),this.RGa());this.XE=[];this.XE.push(k.create(new THREE.CylinderGeometry(p,p,q,32),this.p3()));this.XE.push(k.create(new THREE.BoxGeometry(2*p,q,p),this.p3()));this.XE.push(k.create(new THREE.CylinderGeometry(p,p,q,32),this.p3()));return[this.yS,this.AS,this.T8].concat(this.XE)};a.prototype.pGa=function(){if(null==this.b4){var n=document.createElement("canvas");n.width=n.height=256;var r=n.getContext("2d"),t=new b;t.Zl(n);this.b4= m.iz(t.texture(),new m.em);r.fillStyle="rgba(0, 0, 0, 0.75)";r.clearRect(0,0,n.width,n.height);r.fillRect(0,0,n.width,n.height)}return this.b4};a.prototype.qGa=function(){null==this.c4&&(this.fu=document.createElement("canvas"),this.fu.width=this.fu.height=256,this.zS=this.fu.getContext("2d"),this.BS=new b,this.BS.Zl(this.fu),this.c4=m.iz(this.BS.texture(),new m.em),this.$sa());return this.c4};a.prototype.$sa=function(){this.zS.fillStyle=this.Y4();this.zS.clearRect(0,0,this.fu.width,this.fu.height); this.zS.fillRect(0,0,this.fu.width,this.fu.height);this.BS.update()};a.prototype.RGa=function(){null==this.S8&&(this.Xr=document.createElement("canvas"),this.Xr.width=this.Xr.height=256,this.WM=this.Xr.getContext("2d"),this.V8=new b,this.V8.Zl(this.Xr),this.S8=m.iz(this.V8.texture(),new m.em),this.rta());return[this.S8]};a.prototype.rta=function(){var n=d.LP(this.Y4()).join(", "),r=this.WM.createLinearGradient(0,0,0,this.Xr.height);r.addColorStop(0,"rgba("+n+", 0)");r.addColorStop(.5,"rgba("+n+", 1)"); r.addColorStop(1,"rgba("+n+", 1)");this.WM.fillStyle=r;this.WM.clearRect(0,0,this.Xr.width,this.Xr.height);this.WM.fillRect(0,0,this.Xr.width,this.Xr.height);this.V8.update()};a.prototype.p3=function(){if(null==this.bK){var n=document.createElement("canvas");n.width=n.height=256;var r=n.getContext("2d"),t=new b;t.Zl(n);this.bK=m.iz(t.texture(),new m.em);r.fillStyle="rgba(64, 64, 64, 1)";r.clearRect(0,0,n.width,n.height);r.fillRect(0,0,n.width,n.height)}return[this.bK,this.bK,this.bK]};a.prototype.vq= function(){var n=!1,r=!1,t=!1;if(this.N("intersectionDistance")){r=(r=this.get("intersectionDistance"))?h.qD(r):h.Mv();var u=r/h.Mv();this.d4.makeTranslation(0,0,-r);this.d4.multiply(c.makeScale(u,u,u));r=!0}this.N("matrix")&&(t=r=n=!0);r&&(c.identity(),(r=this.get("matrix"))&&c.multiply(r),c.multiply(this.d4),k.Dq(this.AS,c),k.Dq(this.yS,c));n&&(c.identity(),(r=this.get("matrix"))&&c.multiply(r),c.multiply(this.U8),k.Dq(this.T8,c));if(t)for(r=this.get("matrix"),n=0;nu.indexOf(t[v])){t=!1;break a}for(v=0;vt.indexOf(u[v])){t=!1;break a}t=!0}t||!r.Qo()&&!this.tj.get("over")||(this.yl=r.yl,f.nZ());this.tj.set("over", r.Qo());this.tj.set("intersectionDistance",r.wS);this.tj.set("dotVisible",!r.rUa())};a.prototype.nv=function(r){this.xo!=r&&(this.xo&&this.j.remove(this.Nb),this.xo=r)&&(this.Nb=new g(this.xo),this.Nb.set("text",this.xo),this.Nb.set("matrix",null),this.Nb.set("matrix",this.el),this.j.add(this.Nb))};a.prototype.Dk=function(r){this.j.KY().sort(function(t,u){return u.get("index")-t.get("index")}).forEach(function(t){t.sn(r)}.bind(this))};a.prototype.ek=function(r){this.Cj=m.fVa(this.el,this.Cj);return new d(this, [this.Cj],this.Uka(),r)};return a}); define("iY","require lo oH cj V fi nU bc".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("cj"),k=a("V"),b=a("fi"),g=a("nU"),d=a("bc");a=e.extend(g,function(c){g.call(this,g.tJ,c);this.j.M.bind(h.jc,this.vj,this,!0);this.j.M.bind(h.bp,this.Cma,this,!0);this.j.M.bind(h.ac,this.uOa,this,!0);this.j.M.bind(h.ub,this.Od,this,!0);this.j.M.bind(h.Zb,this.wj,this,!0);this.Vu=this.Uu=this.$u=this.Vm=this.Zc=this.Yc=void 0;this.Cj=this.A=null;this.ss=!1;this.Nb=""});a.prototype.clear=function(){this.j.M.unbind(h.jc, this.vj,this,!0);this.j.M.unbind(h.bp,this.Cma,this,!0);this.j.M.unbind(h.ub,this.Od,this,!0);this.j.M.unbind(h.Zb,this.wj,this,!0);this.ss&&(this.j.AI(d.df),this.ss=!1);this.nv("")};a.prototype.update=function(c){this.A=c;this.qaa()};a.prototype.Qva=function(){return{x:this.Yc,y:this.Zc,pageX:this.Uu,pageY:this.Vu}};a.prototype.vj=function(c){this.Yc=c.x;this.Zc=c.y;this.Uu=c.pageX;this.Vu=c.pageY;this.vX()};a.prototype.Cma=function(){this.Vu=this.Uu=this.Zc=this.Yc=void 0;this.vX()};a.prototype.uOa= function(){this.Vu=this.Uu=this.Zc=this.Yc=void 0;this.vX()};a.prototype.Od=function(c){this.Yc=this.Vm=c.x;this.Zc=this.$u=c.y;this.Uu=c.pageX;this.Vu=c.pageY;this.Dk(this.ek(h.a1))};a.prototype.wj=function(c){this.Yc=c.x;this.Zc=c.y;this.Uu=c.pageX;this.Vu=c.pageY;this.Dk(this.ek(h.b1));this.v6(this.Vm,this.$u,this.Yc,this.Zc)&&this.Dk(this.ek(h.Uj))};a.prototype.qaa=function(){this.wq||(this.wq=setTimeout(function(){this.wq=null;this.Ik()}.bind(this),300))};a.prototype.vX=function(){this.wq&&(clearTimeout(this.wq), this.wq=null);this.Ik()};a.prototype.Ik=function(){var c=this.ek(h.im);this.Dk(c);this.nv(c.Hz());this.ss!=c.Qo()&&(this.ss&&this.j.AI(d.df),(this.ss=c.Qo())&&this.j.UZ(d.df))};a.prototype.nv=function(c){this.Nb!=c&&(this.Nb=c,this.j.M.set("toolTip",this.Nb))};a.prototype.Dk=function(c){this.j.KY().sort(function(f,l){return l.get("index")-f.get("index")}).forEach(function(f){f.sn(c)}.bind(this))};a.prototype.ek=function(c){return new b(this,this.fT(),null,c)};a.prototype.fT=function(){if(void 0!== this.Yc&&void 0!==this.Zc&&this.A.qg){var c=k.mz(this.A.qg);if(c)return this.Cj=m.Rva(c,this.Yc,this.Zc,this.A.width,this.A.height,this.Cj),[this.Cj]}return[]};a.prototype.v6=function(c,f,l,p){c=l-c;f=p-f;return 5>=Math.sqrt(c*c+f*f)};return a}); define("gw","require lo oH cj V fi nU".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("cj"),k=a("V"),b=a("fi"),g=a("nU");a=e.extend(g,function(c){g.call(this,g.uJ,c);this.M=this.j.M;this.M.bind(h.ub,this.Od,this,!0);this.M.bind(h.Zb,this.wj,this,!0);this.M.bind(h.G("touchOverAreaScale"),this.T7,this,!0);this.$u=this.Vm=this.Zc=this.Yc=void 0;this.xia=this.A=null;this.T7();this.xNa=Array(d.length);this.Nb="";this.Ik=this.Ik.bind(this)});a.prototype.clear=function(){this.M.unbind(h.ub,this.Od,this, !0);this.M.unbind(h.Zb,this.wj,this,!0);this.M.unbind(h.G("touchOverAreaScale"),this.T7,this,!0);this.nv("")};a.prototype.update=function(c){this.A=c;this.qaa()};a.prototype.Od=function(c){this.Yc=this.Vm=c.x;this.Zc=this.$u=c.y;this.Dk(this.ek(h.a1))};a.prototype.wj=function(c){this.Yc=c.x;this.Zc=c.y;this.Dk(this.ek(h.b1));this.v6(this.Vm,this.$u,this.Yc,this.Zc)&&this.Dk(this.ek(h.Uj))};a.prototype.qaa=function(){this.wq||(this.wq=setTimeout(this.Ik,300))};a.prototype.vX=function(){this.wq&&(clearTimeout(this.wq), this.wq=null);this.Ik()};a.prototype.Ik=function(){this.wq=null;var c=this.ek(h.im);this.Dk(c);this.nv(c.Hz())};a.prototype.nv=function(c){if(this.Nb!=c&&(this.Nb=c,c=this.j.M,c.set("toolTip",this.Nb),!c.get("toolTipDisabled"))){var f=c.Jb().Nb;this.Nb?f.k_a(c,this.Nb):f.hide()}};a.prototype.Dk=function(c){this.j.KY().sort(function(f,l){return l.get("index")-f.get("index")}).forEach(function(f){f.sn(c)}.bind(this))};a.prototype.ek=function(c){var f=c==h.im?this.fT(.5*this.A.width,.5*this.A.height, this.via,this.xia):this.fT(this.Yc,this.Zc,d,this.xNa);return new b(this,f,null,c)};a.prototype.fT=function(c,f,l,p){var q=this.A.qg&&k.mz(this.A.qg);if(q){var n=this.A.width,r=this.A.height,t=Math.min(n,r)/100;l.forEach(function(u,v){p[v]=m.Rva(q,c+u[0]*t,f+u[1]*t,n,r,p[v])});return p}return[]};a.prototype.v6=function(c,f,l,p){c=l-c;f=p-f;return Math.sqrt(c*c+f*f)<=4*Math.round(1*Math.min(window.screen.width,window.screen.height)/100)};a.prototype.T7=function(){this.via=this.KIa(this.M.get("touchOverAreaScale")); this.xia=Array(this.via.length)};a.prototype.KIa=function(c){var f=[],l=Math.min(50,Math.ceil(5*c)),p=Math.min(50,Math.ceil(30*c));c=Math.min(50,Math.ceil(15*c));for(var q=-l;q<=l;q++)for(var n=-l;n<=l;n++){var r=Math.sqrt(n*n+q*q);r<=l&&f.push([n,q,r])}for(n=-p;n<-l;n++)f.push([n,0,Math.sqrt(n*n)]);for(n=l+1;n<=p;n++)f.push([n,0,Math.sqrt(n*n)]);for(q=-c;q<-l;q++)f.push([0,q,Math.sqrt(q*q)]);for(q=l+1;q<=c;q++)f.push([0,q,Math.sqrt(q*q)]);f.sort(function(t,u){return t[2]-u[2]});return f.map(function(t){return[t[0], t[1]]})};var d=function(){for(var c=[],f=0;5>f;f++)for(var l=-2+4*f/4,p=0;5>p;p++){var q=-2+4*p/4,n=Math.sqrt(q*q+l*l);2>=n&&c.push([q,l,n])}c.sort(function(r,t){return r[2]-t[2]});return c.map(function(r){return[r[0],r[1]]})}();return a}); define("hk","require cI el iY nU gw".split(" "),function(a){var e=a("cI"),h=a("el"),m=a("iY"),k=a("nU"),b=a("gw");return{create:function(g,d){switch(g){case k.fR:return new e(d,!0);case k.xga:return new e(d,!1);case k.sJ:return new h(d);case k.tJ:return new m(d);case k.uJ:return new b(d)}}}}); define("pg",["require","bc"],function(a){function e(m){this.Mc=m;this.Oe=[]}var h=a("bc");e.prototype.push=function(m){this.Oe.push(m);this.ea()};e.prototype.pop=function(m){for(var k=this.Oe.length-1;0<=k;k--)if(this.Oe[k]==m){this.Oe.splice(k,1);this.ea();break}};e.prototype.clear=function(){0w;)u-=w-v;t=t.pitch;return p<=u&&u<=q&&n<=t&&t<=r}.bind(this));if(0==c.length)return null;c.sort(function(t,u){t=this.Ap(t);u=this.Ap(u);return(d-t.Sa)*(d-t.Sa)+(f-t.pitch)*(f-t.pitch)-((d-u.Sa)*(d-u.Sa)+(f-u.pitch)*(f-u.pitch))}.bind(this));return c[0]};a.prototype.Ap=function(d){var c=d.get("yaw"); d=d.get("distance");if(void 0===c||void 0===d)return null;var f=this.la.get("distanceToFloor");return{Sa:c,pitch:-90+Math.atan2(d,f)*g}};var g=180/Math.PI;return a}); define("lJ","require lo oH cy gi ne bs oQ x ms jQ fI dr iD dD".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("cy"),k=a("gi"),b=a("ne"),g=a("bs"),d=a("oQ"),c=a("x"),f=a("ms"),l=a("jQ"),p=a("fI"),q=a("dr"),n=a("iD"),r=a("dD"),t=e.extend(k,function(u,v){k.call(this);this.M=u;this.j=v;this.j.set("visible",!1);this.Gc=new q;this.kg=new p(this.j);this.oe=new f(this.j);this.Lb=new d(this.M,this.j,this.Gc);this.bb=new g(this.j,this.Gc);this.zf=new c(this.j);this.Gu=new l(this.j);this.Kd=new b(this.j); this.kX=new n(this.j);this.kg.bind(p.Vo,this.ly,this,!0);this.kg.bind(p.Wo,this.my,this,!0);this.oe.bind(h.Vc,this.Xna,this,!0);this.oe.bind(h.Kf,this.aM,this,!0);this.oe.bind(h.ec,this.li,this,!0);this.Lb.bind(d.Db,this.Me,this,!0);this.Lb.bind(d.D0,this.Yna,this,!0);this.Lb.bind(d.u0,this.qoa,this,!0);this.Lb.bind(d.a0,this.ena,this,!0);this.Lb.bind(d.b0,this.fna,this,!0);this.Lb.bind(d.aA,this.jM,this,!0);this.Lb.bind(d.Zz,this.ky,this,!0);this.Lb.bind(d.$z,this.Qu,this,!0);this.Lb.bind(d.Yz,this.iM, this,!0);this.Lb.bind(d.Xo,this.sy,this,!0);this.bb.bind(g.Db,this.Me,this,!0);this.bb.bind(g.Rj,this.Pp,this);this.bb.bind(g.Uo,this.Mm,this);this.bb.bind(g.Ec,this.We,this,!0);this.bb.bind(g.Gi,this.Up,this,!0);this.bb.bind(g.Fi,this.Tp,this,!0);this.zf.bind(c.Db,this.Me,this,!0);this.zf.bind(c.hj,this.Sp,this,!0);this.zf.bind(c.Ec,this.We,this,!0);this.Gu.bind(l.Sj,this.eoa,this,!0)});t.prototype.clear=function(){this.oe.clear();this.kg.clear();this.bb.clear();this.Lb.clear();this.zf.clear();this.Gu.clear(); this.Kd.clear();this.oe.unbind(h.Vc,this.Xna,this);this.oe.unbind(h.Kf,this.aM,this);this.oe.unbind(h.ec,this.li,this);this.kg.unbind(p.Vo,this.ly,this);this.kg.unbind(p.Wo,this.my,this);this.Lb.unbind(d.Db,this.Me,this);this.Lb.unbind(d.D0,this.Yna,this);this.Lb.unbind(d.u0,this.qoa,this);this.Lb.unbind(d.a0,this.ena,this);this.Lb.unbind(d.b0,this.fna,this);this.Lb.unbind(d.aA,this.jM,this);this.Lb.unbind(d.Zz,this.ky,this);this.Lb.unbind(d.$z,this.Qu,this);this.Lb.unbind(d.Yz,this.iM,this);this.Lb.unbind(d.Xo, this.sy,this);this.bb.unbind(g.FBa,this.Me,this);this.bb.unbind(g.Rj,this.Pp,this);this.bb.unbind(g.Uo,this.Mm,this);this.bb.unbind(g.Ec,this.We,this,!0);this.bb.unbind(g.Gi,this.Up,this);this.bb.unbind(g.Fi,this.Tp,this);this.zf.unbind(c.Db,this.Me,this);this.zf.unbind(c.hj,this.Sp,this);this.zf.unbind(c.Ec,this.We,this);this.Gu.unbind(l.Sj,this.eoa,this);this.M=this.j=this.kX=this.Kd=this.Gu=this.zf=this.Lb=this.bb=this.kg=this.oe=null};t.prototype.Vda=function(u){this.Gu.Vda(u)};t.prototype.Xda= function(u){this.Lb.Xda(u)};t.prototype.Ai=function(u,v,w){this.j.set("visible",!0);this.zf.o_();u.set("currentTime",w);this.Lb.start(u,v)};t.prototype.pz=function(){return this.oe.la||this.Lb.XUa()||this.Lb.wr};t.prototype.cw=function(){this.oe.stop();this.zf.end();this.bb.end();this.Lb.hide();this.Gu.stop();this.Kd.end();this.kX.end()};t.prototype.FI=function(){this.bb.resume();this.zf.FI()};t.prototype.yI=function(){this.bb.pause();this.zf.yI()};t.prototype.play=function(){this.bb.play();this.Kd.play(); this.zf.play()};t.prototype.pause=function(){this.bb.pause();this.Kd.pause();this.zf.pause()};t.prototype.stop=function(){this.bb.stop();this.Kd.stop();this.zf.stop()};t.prototype.Cz=function(u){this.bb.Cz(u);this.kX.Cz(u)};t.prototype.getTime=function(){return this.zf.getTime()};t.prototype.moveTo=function(u,v,w,x,y){this.bb.moveTo(u,v,w,x,y)};t.prototype.Tc=function(){return this.j?this.j.Tc():void 0};t.prototype.Oc=function(){return this.j?this.j.Oc():void 0};t.prototype.Qf=function(){return this.j? this.j.Qf():void 0};t.prototype.Ag=function(){return this.j?this.Gc.mVa(this.j.Ag()):void 0};t.prototype.ZH=function(){return this.j?this.j.ZH():void 0};t.prototype.$H=function(){return this.j?this.j.$H():void 0};t.prototype.We=function(){var u=this.zf.Lj()||this.bb.Lj();this.trigger(new m(t.Ec,{state:u}))};t.prototype.Pj=function(u){this.bb.Pj(u)};t.prototype.$P=function(u){this.bb.$P(u)};t.prototype.Dz=function(u){this.bb.Dz(u)};t.prototype.aQ=function(u){this.bb.aQ(u)};t.prototype.Hf=function(u){this.zf.Hf(u)}; t.prototype.UD=function(u){this.bb.UD(u)};t.prototype.lca=function(u,v){return(u=r.get(u,v,this.j.Tc(),this.j.Oc(),this.j.Qf(),this.j.Ag(),this.j.Xa(),this.j.xb()))?{x:u.x,y:u.y}:null};t.prototype.sVa=function(u,v){return(u=r.d0a(u,v,this.j))?{yaw:u.Sa,pitch:u.pitch}:null};t.prototype.LD=function(){this.j.LD()};t.prototype.Yna=function(u){this.oe.start(u.data.panorama)};t.prototype.li=function(u){this.j.$Z(!0);this.trigger(new m(t.gt,{percent:u.Sg}))};t.prototype.Xna=function(u){this.zf.end();this.kX.Ai(u.data.panorama)}; t.prototype.aM=function(){this.j.$Z(!1);this.trigger(new m(t.Sz))};t.prototype.Me=function(){this.kg.requestFrame()};t.prototype.ly=function(u){u=u.data.frameTime;this.Gc.setSize(this.j.Xa(),this.j.xb());this.Lb.Yv(u);this.bb.Yv(u)};t.prototype.my=function(u){u=u.data.frameTime;this.Lb.wd(u);this.bb.wd(u);this.zf.wd(u);this.Gu.wd(u);this.Kd.wd(u)};t.prototype.jM=function(u){this.Gu.display(u.data.panorama);this.zf.oI(u.data.panorama);this.trigger(new m(t.aA,{panorama:u.data.panorama}))};t.prototype.qoa= function(u){this.Gu.hide(u.data.panorama)};t.prototype.ena=function(u){this.zf.start(u.data.panorama);this.Kd.start(u.data.panorama)};t.prototype.fna=function(){this.zf.end();this.j.set("visible",!1)};t.prototype.iM=function(u){this.bb.end();this.Kd.end(u.data.nextPanorama);this.trigger(new m(t.Yz,{panorama:u.data.panorama}))};t.prototype.Qu=function(u){this.bb.start(u.data.panorama,u.data.camera);this.trigger(new m(t.$z,{panorama:u.data.panorama}))};t.prototype.ky=function(u){this.trigger(new m(t.Zz, {panorama:u.data.panorama}))};t.prototype.eoa=function(u){this.bb.fea(u.data.yawDelta,0)};t.prototype.Pp=function(u){this.trigger(new m(t.Rj,u.data))};t.prototype.Mm=function(u){this.trigger(new m(t.Uo,u.data))};t.prototype.sy=function(u){this.trigger(new m(t.Xo,u.data))};t.prototype.Up=function(){this.zf.Jz();this.trigger(new m(t.Gi))};t.prototype.Tp=function(){this.trigger(new m(t.Fi))};t.prototype.Eza=function(u){this.zf.SD(u)};t.prototype.Bz=function(u){this.zf.Bz(u)};t.prototype.Sp=function(u){this.trigger(new m(t.hj, u.data))};t.gt="loadingProgress";t.Sz="loadingEnd";t.Rj="movementChange";t.Uo="positionChange";t.aA="panoramaStart";t.Yz="panoramaEnd";t.$z="panoramaShow";t.Zz="panoramaHide";t.Ec="playbackStateChange";t.Gi="userInteractionStart";t.Fi="userInteractionEnd";t.hj="timeChange";t.Xo="transitionEnd";return t}); define("om","require lo oH cy kO cD nx jD it hm lJ ek lY hF iL bv ed gJ".split(" "),function(a){var e=a("lo"),h=a("oH"),m=a("cy"),k=a("kO"),b=a("cD"),g=a("nx"),d=a("jD"),c=a("it"),f=a("hm"),l=a("lJ"),p=a("ek"),q=a("lY"),n=a("hF"),r=a("iL"),t=a("bv"),u=a("ed"),v=a("gJ"),w=g.define("PanoramaPlayer",c,function(){c.call(this,"panorama");c.prototype.set.call(this,"rotationEnabled",!0);c.prototype.set.call(this,"zoomEnabled",!0);c.prototype.set.call(this,"surfaceSelectionEnabled",!1);c.prototype.set.call(this, "surfaceSelectionHorizontalAngle",90);c.prototype.set.call(this,"surfaceSelectionVerticalAngle",180);c.prototype.set.call(this,"adjacentPanoramaPositionsEnabled",!1);c.prototype.set.call(this,"fxaaEnabled",!1);c.prototype.set.call(this,"aaEnabled",!1);this.r$=this.V5=this.Ix=this.iU=this.bU=this.K2=this.wy=this.Rh=this.d2=!1;this.x5=!0;this.wp=this.LF=this.jS=!1;this.TS=this.P4=this.Ed=this.qb=0;this.s8=this.u8=void 0;this.m7=!0;this.oi=k.T;this.L=this.j=null;this.Qma={};for(var x in w.Ft)this.Qma[x]= this.MGa(x);this.IR=new d(this,"buttonToggleGyroscope",u.Xj);this.IR.bind(h.Vj,function(){this.set("gyroscopeEnabled",!0)},this);this.IR.bind(h.jm,function(){this.set("gyroscopeEnabled",!1)},this);this.IR.set("pressed",this.get("gyroscopeEnabled")&&n.zg);this.REa=new d(this,"buttonCardboardView",u.Ie);this.REa.bind(h.qa,function(){this.set("viewMode",w.Ow)},this,!0);this.gFa=new d(this,"buttonVRView",u.Ie);this.gFa.bind(h.qa,function(){this.set("viewMode",w.Ow)},this,!0);t.bind(h.pa,function(){this.Lsa("viewMode"); this.trigger(w.EBa)},this,!0);this.JR=new d(this,"buttonToggleHotspots",u.Xj);this.JR.bind(h.Vj,function(){this.set("hotspotsEnabled",!0)},this);this.JR.bind(h.jm,function(){this.set("hotspotsEnabled",!1)},this);this.JR.set("pressed",this.get("hotspotsEnabled"));this.MR=new d(this,"buttonToggleSurfaceSelection",u.Xj);this.MR.bind(h.Vj,function(){this.set("surfaceSelectionEnabled",!0)},this);this.MR.bind(h.jm,function(){this.set("surfaceSelectionEnabled",!1)},this);this.MR.set("pressed",this.get("surfaceSelectionEnabled")); this.eFa=new d(this,"buttonScreenshot",u.Ie);this.eFa.bind(h.qa,this.Dqa,this,!0);this.$d=e.Ko(this.Qg,this)});w.tBa="cameraPositionChange";w.gt="loadingProgress";w.ABa="preloadMediaShow";w.EBa="viewModeChange";w.prototype.moveLeft=function(){this.Kc(p.pE)};w.prototype.moveRight=function(){this.Kc(p.qE)};w.prototype.moveUp=function(){this.Kc(p.rE)};w.prototype.moveDown=function(){this.Kc(p.oE)};w.prototype.playLeft=function(){this.Kc([p.pE,p.X])};w.prototype.playRight=function(){this.Kc([p.qE,p.X])}; w.prototype.playUp=function(){this.Kc([p.rE,p.X])};w.prototype.playDown=function(){this.Kc([p.oE,p.X])};w.prototype.play=function(){this.uk()};w.prototype.pause=function(){this.Xp()};w.prototype.stop=function(){this.qy()};w.prototype.seek=function(x){this.DC(x)};w.prototype.setFramePlaybackPosition=function(x){this.oPa(x)};w.prototype.setFrameTransitionPosition=function(x){this.pPa(x)};w.prototype.restart=function(){this.ny()};w.prototype.zoomIn=function(){this.Kc(p.Dt)};w.prototype.zoomOut=function(){this.Kc(p.Et)}; w.prototype.resumeCamera=function(){this.tOa()};w.prototype.pauseCamera=function(){this.kNa()};w.prototype.moveTo=function(x,y,A,B){this.Pma(x,y,A,B,!1)};w.prototype.setPosition=function(x,y,A,B){this.Pma(x,y,A,B,!0)};w.prototype.getScreenPosition=function(x,y){return this.PJa(x,y)};w.prototype.getPanoramaPosition=function(x,y){return this.xJa(x,y)};w.prototype.saveScreenshot=function(){return this.Dqa()};w.prototype.get=function(x,y){switch(x){case "currentTime":return this.L&&this.L.getTime()|| 0;case "viewMode":return t.isPresenting()?w.Ow:w.K1;case "video":x="panorama";break;case "rendererPanorama":return this.L&&this.L.pz()}if(!y)switch(x){case "mouseControlMode":y=b.Cfa;break;case "touchControlMode":y=b.sga}return c.prototype.get.call(this,x,y)};w.prototype.set=function(x,y){if(this.get(x)!=y){switch(x){case "application":this.d2=!0;this.$d();break;case "startTime":this.wy=!0;this.$d();break;case "video":case "panorama":x="panorama";this.wy=!0;this.$d();break;case "camera":this.K2=!0; this.$d();break;case "viewerArea":this.Rh=!0;this.$d();break;case "displayPlaybackBar":case "hdrPanoramaDisplayPlaybackBarSteps":case "livePanoramaDisplayPlaybackBarSteps":case "buttonPlay":case "buttonPlayPause":this.wp=!0;this.$d();break;case "mapPlayer":this.bU=!0;this.$d();break;case "model3DPlayer":this.iU=!0;this.$d();break;case "gyroscopeEnabled":this.Ix=!0;this.$d();break;case "gyroscopeVerticalDraggingEnabled":this.x5=!0;this.$d();break;case "viewMode":"vr"==y&&(y=w.Ow);y!=w.Ow||t.isPresenting()? y!=w.Ow&&t.isPresenting()&&t.$f():t.Nk();y=t.isPresenting()?w.Ow:w.K1;break;case "hotspotsEnabled":this.V5=!0;this.$d();break;case "mouseControlMode":case "touchControlMode":this.jS=!0;this.$d();break;case "surfaceSelectionEnabled":this.r$=!0,this.$d()}c.prototype.set.call(this,x,y)}};w.prototype.Rq=function(x){this.LF=x;this.L&&this.L.Cz(this.LF)};w.prototype.Fua=function(){return"inherit"!=this.get("doubleClickAction")};w.prototype.C2=function(x){c.prototype.C2.call(this,x);x.bind(h.hm,this.Nta, this,!0)};w.prototype.X$=function(x){c.prototype.X$.call(this,x);x.unbind(h.hm,this.Nta,this,!0)};w.prototype.Nta=function(){switch(this.get("doubleClickAction")){case "toggle_fullscreen":var x=this.get("application").Qi;x&&x.zg()&&x.toggle()}};w.prototype.MGa=function(x){var y=w.Ft[x];x=new d(this,x,u.Ie);x.bind(h.ub,function(){this.Kc(y.movement)},this);y.stopOnRelease&&x.bind(h.Zb,function(){this.Kc(p.Kf)},this);return x};w.prototype.Qg=function(){if(this.Rh||this.d2)this.Rh=this.d2=!1,this.jS= this.Ix=this.iU=this.bU=!0,this.cu(),this.get("viewerArea")&&this.get("application")&&this.$t(),this.vN(this.get("viewerArea"));var x=!1;if(this.j){this.bU&&(this.bU=!1,this.L.Vda(this.get("mapPlayer")));this.iU&&(this.iU=!1,this.L.Xda(this.get("model3DPlayer")));this.jS&&(this.jS=!1,this.L.Dz(this.get("mouseControlMode")),this.L.UD(this.get("touchControlMode")));if(this.wy||this.K2)this.TS=this.P4=this.qb=this.Ed=0,this.s8=this.u8=void 0,x=!0,this.K2=this.wy=!1,this.get("panorama")?this.L.Ai(this.get("panorama"), this.get("camera",new f),this.get("startTime")):(this.L.cw(),this.m7=!0,this.oi=k.T,this.zc(k.T));this.x5&&(this.x5=!1,this.L.aQ(this.get("gyroscopeVerticalDraggingEnabled",!0)));if(this.Ix){this.Ix=!1;var y=this.get("gyroscopeEnabled")&&n.zg;y&&n.disabled&&(y=!1,r.ofa.show(function(){n.uda(function(){this.set("gyroscopeEnabled",!0)}.bind(this))}.bind(this)));this.set("gyroscopeEnabled",y);this.L.$P(y);this.IR.set("pressed",y)}this.V5&&(this.V5=!1,this.JR.set("pressed",this.get("hotspotsEnabled"))); this.wp&&(this.wp=!1,x=!0);this.r$&&(this.r$=!1,this.MR.set("pressed",this.get("surfaceSelectionEnabled")));x&&this.Dv()}};w.prototype.eH=function(){this.set("panorama",null)};w.prototype.$t=function(){var x=this.get("viewerArea"),y=this.get("application");this.j=new q(y,x,this);this.j.ja({left:0,top:0,bottom:0,right:0});x.Wa(this.j);this.L=new l(x,this.j);this.L.bind(l.Rj,this.Pp,this);this.L.bind(l.Uo,this.sna,this);this.L.bind(l.gt,this.li,this);this.L.bind(l.Sz,this.iG,this);this.L.bind(l.$z, this.Qu,this,!0);this.L.bind(l.Zz,this.ky,this,!0);this.L.bind(l.aA,this.jM,this,!0);this.L.bind(l.Yz,this.iM,this,!0);this.L.bind(l.Ec,this.We,this);this.L.bind(l.Gi,this.Up,this);this.L.bind(l.Fi,this.Tp,this);this.L.bind(l.hj,this.Sp,this);this.L.bind(l.Xo,this.sy,this,!0);this.get("application").bind(h.G("mute"),this.gM,this);this.get("application").get("mute",!1)&&this.L.Hf(!0);this.L&&this.L.Cz(this.LF);t.bind(h.pa,this.Zn,this,!0);this.j3();this.Ly(!0)};w.prototype.cu=function(){this.j&&(this.L.unbind(l.Rj, this.Pp,this),this.L.unbind(l.Uo,this.sna,this),this.L.unbind(l.gt,this.li,this),this.L.unbind(l.Sz,this.iG,this),this.L.unbind(l.$z,this.Qu,this,!0),this.L.unbind(l.Zz,this.ky,this,!0),this.L.unbind(l.aA,this.jM,this,!0),this.L.unbind(l.Yz,this.iM,this,!0),this.L.unbind(l.Ec,this.We,this),this.L.unbind(l.Gi,this.Up,this),this.L.unbind(l.Fi,this.Tp,this),this.L.unbind(l.hj,this.Sp,this),this.L.unbind(l.Xo,this.sy,this),this.L.clear(),this.L=null,this.get("application").unbind(h.G("mute"),this.gM, this),this.j.getParent().removeChild(this.j),this.j=null,t.unbind(h.pa,this.Zn,this,!0),this.Ly(!1))};w.prototype.gM=function(){this.j&&this.L.Hf(this.get("application").get("mute",!1))};w.prototype.We=function(x){this.oi=x.data.state;this.mg()};w.prototype.mg=function(){this.zc(this.m7||t.isPresenting()?this.oi:k.X)};w.prototype.Up=function(){this.trigger(new m(h.Dga))};w.prototype.Tp=function(){this.trigger(new m(h.Cga))};w.prototype.jM=function(x){this.trigger(new m(w.ABa,{panorama:x.data.panorama}))}; w.prototype.iM=function(){};w.prototype.Qu=function(x){this.j3();this.CL(x.data.panorama)};w.prototype.ky=function(x){this.BL(x.data.panorama)};w.prototype.Pp=function(x){for(var y in w.Ft)this.Qma[y].set("state",x.data[w.Ft[y].pressedOn]?v.ob:v.He);this.m7=x.data.stopped;this.mg();this.trigger(new m(h.Efa,x.data))};w.prototype.sna=function(x){this.j3();this.trigger(new m(w.tBa,x.data))};w.prototype.j3=function(){this.L&&(this.set("yaw",this.L.Tc()),this.set("pitch",this.L.Oc()),this.set("roll",this.L.Qf()), this.set("hfov",this.L.Ag()),this.set("actualHFOV",this.L.ZH()),this.set("actualVFOV",this.L.$H()))};w.prototype.li=function(x){this.j.getParent().ja({progressPercent:x.data.percent,progressVisible:!0});this.trigger(new m(w.gt,x.data))};w.prototype.iG=function(){this.j.getParent().set("progressVisible",!1)};w.prototype.sy=function(){this.trigger(h.q1)};w.prototype.Zn=function(){this.set("viewMode",t.isPresenting()?w.Ow:w.K1);this.mg()};w.prototype.Pma=function(x,y,A,B,z){this.L&&this.L.moveTo(x,y, A,B,z)};w.prototype.Kc=function(x){this.L&&this.L.Pj(x)};w.prototype.uk=function(){this.L.play()};w.prototype.ro=function(){this.L.stop()};w.prototype.Xp=function(){this.L.pause()};w.prototype.DC=function(x){this.L&&(this.Hka()?this.L.Bz(x):this.L.Eza(x))};w.prototype.oPa=function(x){this.L&&this.L.Eza(x)};w.prototype.pPa=function(x){this.L&&this.L.Bz(x)};w.prototype.kNa=function(){this.L&&this.L.yI()};w.prototype.tOa=function(){this.L&&this.L.FI()};w.prototype.PJa=function(x,y){if(this.L)return this.L.lca(x, y)};w.prototype.xJa=function(x,y){if(this.L)return this.L.sVa(x,y)};w.prototype.Dqa=function(){this.L&&this.L.LD()};w.prototype.KM=function(x){this.DC(x.data.position)};w.prototype.Sp=function(x){this.Ed=x.data.time;this.qb=x.data.duration;this.P4=x.data.transitionPosition;this.TS=x.data.transitionLength;this.u8=x.data.steps;this.s8=x.data.selectedStep;this.Dv()};w.prototype.Dv=function(){var x=this.j.getParent(),y=!1;if(this.QIa()){var A=this.Hka(),B=this.zJa();A?0this.ib&&(this.ib=1);var m=Math.min(.5/this.ib,.5),k=Math.max(1-.5/this.ib,.5);this.Hak&&(this.Ha=k);m=Math.min(.5/this.ib,.5);k=Math.max(1-.5/this.ib,.5);this.Kak&&(this.Ka=k)}};return e}); define("bC",["require"],function(){function a(e,h){this.j=e;this.ga=h;this.Ka=this.Ha=.5;this.ib=1;this.XV=!1}a.prototype.start=function(){this.Ka=this.Ha=.5;this.ib=1;this.XV=!0};a.prototype.clear=function(){this.ga=this.j=null};a.prototype.setPosition=function(e,h,m){this.Ha=e;this.Ka=h;this.ib=m};a.prototype.af=function(){return this.XV};a.prototype.zb=function(){this.XV=!1};return a}); define("hJ",["require","lP","nx"],function(a){var e=a("lP");return a("nx").define("PhotoCameraPosition",e,function(h,m,k){e.call(this);void 0!=h&&this.set("x",h);void 0!=m&&this.set("y",m);void 0!=k&&this.set("zoomFactor",k)})}); define("i","require lo bC hJ oj bF".split(" "),function(a){var e=a("lo"),h=a("bC"),m=a("hJ"),k=a("oj"),b=a("bF");a=e.extend(h,function(g,d){h.call(this,g,d);this.V=null});a.prototype.start=function(g){var d=g.get("initialPosition",new m(.5,.5,1)),c=g.get("targetPosition",new m(.5,.5,1)),f=g.get("duration",1E3);0==f?(this.Ha=d.get("x"),this.Ka=d.get("y"),this.ib=d.get("zoomFactor")):this.V=new k(g.get("easing","linear"),[new b("x",d.get("x",.5),c.get("x",.5)),new b("y",d.get("y",.5),c.get("y",.5)), new b("zoom",d.get("zoomFactor",1),c.get("zoomFactor",1))],f);this.zb(0)};a.prototype.clear=function(){this.V=null;h.prototype.clear.call(this)};a.prototype.af=function(){return null!=this.V};a.prototype.zb=function(g){this.V&&(this.V.zb(g),this.ga.setPosition(this.V.cb("x"),this.V.cb("y"),this.V.cb("zoom")),this.Ha=this.ga.getX(),this.Ka=this.ga.getY(),this.ib=this.ga.Iq(),this.V.Re()&&(this.V=null))};return a}); define("cK","require lo cy gi nx kO md bK bC i oH".split(" "),function(a){var e=a("lo"),h=a("cy"),m=a("gi"),k=a("nx"),b=a("kO"),g=a("md"),d=a("bK"),c=a("bC"),f=a("i"),l=a("oH"),p=e.extend(m,function(q,n){m.call(this);this.j=q;this.Ud=n;this.j.bind(l.kc,this.hc,this);this.A=b.T;this.Cl=this.zV=this.Ca=this.wa=null;this.ga=new d});p.prototype.clear=function(){this.end();this.ga=null;this.j.unbind(l.kc,this.hc,this);this.j=null};p.prototype.end=function(q){if(this.wa==q||"undefined"==typeof q)this.sja(), this.Ca=this.zV=this.wa=null};p.prototype.start=function(q){if(this.wa!=q){this.end(this.wa);var n=q.get("media"),r=q.get("camera"),t=n.get("width",100),u=n.get("height",100),v=r?r.get("scaleMode",g.rh):g.rh;this.wa=q;this.Ca=r;this.zV=n;n.Kj();this.W=!0;this.ga.setConfiguration(t,u,v);this.OGa(r);this.Ma()}};p.prototype.stop=function(){this.A!=b.T&&(this.A=b.T,this.Cl&&(this.Cl.start(this.Ca),this.Ma()))};p.prototype.play=function(){if(this.A==b.T||this.A==b.Eb)this.A=b.X,this.Ma()};p.prototype.pause= function(){this.A==b.X&&(this.A=b.Eb)};p.prototype.Yv=function(q){this.Cl&&this.Cl.af()&&(this.A==b.X&&(this.Cl.zb(q),this.Ma()),this.Hl(this.Cl.Ha,this.Cl.Ka,this.Cl.ib))};p.prototype.OGa=function(q){this.sja();k.Na("MovementPhotoCamera",q)?this.Cl=new f(this.j,this.ga):this.Cl=new c(this.j,this.ga);this.Cl.start(q)};p.prototype.sja=function(){this.Cl&&(this.Cl.clear(),this.Cl=null)};p.prototype.hc=function(){this.ga.setSize(this.j.Xa(),this.j.xb());this.Ma()};p.prototype.Ma=function(){this.trigger(new h(p.Db))}; p.prototype.Hl=function(q,n,r){this.Ud.setPosition(this.wa,q,n,r)};p.Db="request frame";return p}); define("hX","require eg lo cy gi oH hT md".split(" "),function(a){var e=a("eg"),h=a("lo"),m=a("cy"),k=a("gi"),b=a("oH");a("hT");var g=a("md"),d=h.extend(k,function(f,l){k.call(this);this.FN=[];this.M=f;this.j=l});d.prototype.preload=function(f){this.Gx(f).preload();return this};d.prototype.uf=function(f,l){this.Gx(f).uf(l);return this};d.prototype.qn=function(f,l){this.Gx(f).qn(l);return this};d.prototype.setPosition=function(f,l,p,q){this.Gx(f).setPosition(l,p,q);return this};d.prototype.Uh=function(f){this.Gx(f).Uh()}; d.prototype.stop=function(){this.Nja(function(f){f.clear()});this.FN=[]};d.prototype.clear=function(){this.stop();this.j=this.M=this.FN=null};d.prototype.wd=function(){this.Nja(function(f){f.update()})};d.prototype.Gx=function(f){var l=this.aIa(f);l||(l=new c(f,this.j),l.bind(c.hga,this.pLa,this),l.bind(c.ega,this.oLa,this),this.FN.push(l));return l};d.prototype.Nja=function(f){e(this.FN).each(f,this)};d.prototype.aIa=function(f){return e(this.FN).find(function(l){return l.getItem()==f})};d.prototype.pLa= function(){this.Ma()};d.prototype.oLa=function(f){this.trigger(new m(d.y0,{item:f.source.getItem()}))};d.prototype.Ma=function(){this.trigger(new m(d.Db))};d.Db="request frame";d.y0="photo preload end";var c=h.extend(k,function(f,l){k.call(this);this.wa=f;this.j=l;this.Df=(l=f.get("camera"))?l.get("scaleMode",g.rh):g.rh;this.Wi=f.get("media").Kj();this.Wi.bind(b.Z,this.nd,this);this.Wi.bind(b.tc,this.Pf,this);this.oa=c.DJ;this.Ka=this.Ha=.5;this.ib=1;this.Gn=0;this.LE=!1;this.ug=0;this.va=!1});c.prototype.getItem= function(){return this.wa};c.prototype.preload=function(){this.oa==c.DJ?this.GV():this.Isa()};c.prototype.uf=function(f){this.Gn!=f&&(this.Gn=f,this.Ve())};c.prototype.qn=function(f){this.ug!=f&&(this.ug=f,this.Ve())};c.prototype.setPosition=function(f,l,p){if(this.Ha!=f||this.Ka!=l||this.ib!=p)this.Ha=f,this.Ka=l,this.ib=p,this.Ve()};c.prototype.Uh=function(){this.LE||(this.LE=!0,this.Ve())};c.prototype.clear=function(){this.oa==c.kR&&this.dqa();this.oa!=c.AJ&&this.oa!=c.CJ&&this.oa!=c.BJ||this.Vy(); this.Wi.unbind(b.Z,this.nd);this.Wi.unbind(b.tc,this.Pf);this.Wi=null};c.prototype.update=function(){this.va&&(this.va=!1,-1this.ug&&0=f?1:this.$N/f,this.oa==c.lR?this.iSa(f):this.oa==c.mR?this.jSa(f):this.ZN==d.xn?this.VRa(f):this.PSa(f),1>f?this.Ma():this.Bx())};c.prototype.iSa=function(f){this.Ud.uf(this.dh.item,f).qn(this.dh.item,0)};c.prototype.jSa=function(f){this.Ud.uf(this.Mf.item,1-f).qn(this.Mf.item,0)};c.prototype.VRa=function(f){this.Ud.uf(this.dh.item,Math.min(1,2*f)).qn(this.dh.item,0);this.Ud.uf(this.Mf.item, Math.min(1,2*(1-f))).qn(this.Mf.item,0)};c.prototype.PSa=function(f){var l=this.Mf.cn!=this.dh.cn||this.Mf.indexthis.LW?(n="quad_out",r=this.hU):(n="quad_in_out",r=-.5>this.ug?this.hU:.5this.ug?this.jo:0");var d={position:"absolute",left:"0",top:"0",width:this.td+ "px",height:this.Ad+"px",overflow:"hidden","-webkit-transform":"translateZ(0)"};d["-moz-transform-origin"]=d["-webkit-transform-origin"]=d["transform-origin"]="0 0 0";d["-ms-transform-origin"]="0 0";this.hR.css(d);this.z1=h(b.sf(this.wa.wi(),!0));d={display:"block",position:"absolute",left:"0",top:"0",width:this.Gb+"px",height:this.Tb+"px"};d["-moz-transform-origin"]=d["-webkit-transform-origin"]=d["transform-origin"]="0 0 0";d["-ms-transform-origin"]="0 0";this.z1.css(d);this.hR.append(this.z1)}; e.prototype.Ac=function(){return this.hR};e.prototype.getItem=function(){return this.wa};e.prototype.getX=function(){return this.Ha};e.prototype.getY=function(){return this.Ka};e.prototype.Iq=function(){return this.ib};e.prototype.Xa=function(){return Math.round(this.Gb*this.ib*this.mf)};e.prototype.xb=function(){return Math.round(this.Tb*this.ib*this.mf)};e.prototype.uf=function(d){this.Gn!=d&&(this.Gn=d,this.va=!0)};e.prototype.zY=function(){return this.Gn};e.prototype.Gz=function(d){this.Df!=d&& (this.Df=d,this.va=!0)};e.prototype.ND=function(d,c){if(this.td!=d||this.Ad!=c)this.td=d,this.Ad=c,this.va=!0};e.prototype.setPosition=function(d,c,f){if(this.Ha!=d||this.Ka!=c||this.ib!=f)this.Ha=d,this.Ka=c,this.ib=f,this.va=!0};e.prototype.qn=function(d){this.ug!=d&&(this.ug=d,this.va=!0)};e.prototype.KYa=function(d){this.iba!=d&&(this.iba=d,this.va=!0)};e.prototype.render=function(){if(this.va){this.va=!1;switch(this.Df){case k.NONE:this.mf=1;break;case k.Zo:this.mf=this.td/this.Gb;break;case k.Tj:this.mf= this.Ad/this.Tb;break;case k.Xq:this.mf=this.Gb*this.Ad>this.Tb*this.td?this.Ad/this.Tb:this.td/this.Gb;break;default:this.mf=this.Gb*this.Ad>this.Tb*this.td?this.td/this.Gb:this.Ad/this.Tb}var d=this.ib*this.mf,c=.5*this.td-this.Ha*this.Gb*d,f=.5*this.Ad-this.Ka*this.Tb*d,l=this.td*this.ug,p=function(n,r){return Math.round(n*Math.pow(10,r))*Math.pow(10,-r)},q={};q.width=p(this.td,0)+"px";q.height=p(this.Ad,0)+"px";q.transform=this.Eta?"translate3d("+p(l,2)+"px, 0px, 0px)":"translate("+p(l,2)+"px, 0px)"; q["-moz-transform"]=q["-webkit-transform"]=q["-ms-transform"]=q.transform;q["z-index"]=this.iba;0==this.Gn?q.display="none":(q.display="block",1==this.Gn?(q.filter=q["-ms-filter"]="",q.opacity=""):(q.filter=q["-ms-filter"]="alpha(opacity="+Math.round(100*this.Gn)+")",q.opacity=this.Gn));l=[];this.Eta?(l.push("translate3d("+p(c,2)+"px, "+p(f,2)+"px, 0px)"),l.push("scale3d("+d+", "+d+", "+d+")"),this.NS&&(l.push("translate3d("+this.Gb+"px, 0, 0)"),l.push("scale3d(-1, 1, 1)"))):(l.push("translate("+ p(c,2)+"px, "+p(f,2)+"px)"),l.push("scale("+d+", "+d+")"),this.NS&&(l.push("translate("+this.Gb+"px, 0)"),l.push("scale(-1, 1)")));d={};d["-moz-transform"]=d["-webkit-transform"]=d["-ms-transform"]=d.transform=l.join(" ");m.isEqual(this.Wja,q)||(this.Wja=q,this.hR.css(q));m.isEqual(this.Fla,d)||(this.Fla=d,this.z1.css(d))}};return e}); define("hW","require jquery.mod eg lo oH hT ll hB bc e".split(" "),function(a){var e=a("jquery.mod"),h=a("eg"),m=a("lo"),k=a("oH"),b=a("hT"),g=a("ll"),d=a("hB"),c=a("bc"),f=a("e");a=m.extend(f,function(){f.call(this);this.Be("Renderer");this.set("toolTipDisabled",!0);this.set("cursor",c.mt);this.bind(k.kc,this.hc,this,!0);this.bind(k.kd,this.rk,this,!0);this.bind(k.sd,this.lk,this,!0);this.xC=!1;this.qc=[];this.GW=this.Fv=!1;this.m8=e("
");this.m8.css({position:"absolute",left:0,top:0,right:0, bottom:0,overflow:"hidden","-webkit-transform":"translateZ(0)"});this.Bb().append(this.m8)});a.prototype.ln=function(l){g.ln(l,b.Xk)};a.prototype.gj=function(l){g.gj(l,b.Xk)};a.prototype.Qwa=function(l){return g.t_(l)};a.prototype.lba=function(l){l=new d(l,this);l.ND(this.Xa(),this.xb());l.setPosition(.5,.5,0,1);this.m8.append(l.Ac());this.qc.push(l);this.Fv=!0};a.prototype.removeItem=function(l){if(l=this.zp(l))this.qc=h.without(this.qc,l),l.Ac().detach(),this.Fv=!0};a.prototype.wba=function(l){if(l= this.zp(l))this.qc=h.without(this.qc,l),this.qc.push(l),this.Fv=!0};a.prototype.iZa=function(l,p){this.zp(l).Gz(p)};a.prototype.Qq=function(l,p){this.zp(l).uf(p)};a.prototype.fZa=function(l,p){this.zp(l).qn(p)};a.prototype.cQ=function(l,p,q,n){this.zp(l).setPosition(p,q,n)};a.prototype.fP=function(l){return this.zp(l).getX()};a.prototype.gP=function(l){return this.zp(l).getY()};a.prototype.Jva=function(l){return this.zp(l).Iq()};a.prototype.eP=function(l){return this.zp(l).Xa()};a.prototype.dP=function(l){return this.zp(l).xb()}; a.prototype.render=function(){if(this.xC){this.GSa();this.iQa();for(var l=0;lv.Xa(),y=Math.min(v.Xa(),v.xb())/100;v=function(A){return Math.round(A*y)};this.ja({gap:w?v(4.63):20,paddingLeft:w?v(4.63): 20,paddingRight:w?v(4.63):20,paddingTop:w?v(4.63):14,paddingBottom:w?v(4.63):14,layout:w&&x?l.uh:l.Dg});this.Ll&&this.Ll.ja({fontSize:w?v(3.15):14,textAlign:w&&x?"center":"left"});this.$w&&this.$w.ja({gap:w?0:13});this.IA&&this.IA.ja({borderRadius:w?v(4.63):15,fontSize:w?v(3.15):14,height:w?v(9.26):30,paddingLeft:w?v(6):20,paddingRight:w?v(6):20});this.OE&&this.OE.ja({borderRadius:w?v(4.63):15,fontSize:w?v(3.15):14,height:w?v(9.26):30,paddingLeft:w?v(6):20,paddingRight:w?v(6):20});this.Hd()}};a.prototype.$ia= function(){var v=m.toArray(this.mc.get("cookiesPolicy"));this.OM!=v&&(this.OM=v,this.BOa())};a.prototype.BOa=function(){if(0==this.OM.length)this.M9(null);else{var v=this.OM[0];0==m.toArray(v.get("geographicArea")).length?this.M9(v):this.$Ia(function(w){for(var x=null,y=0;y=C?y(C):w==navigator.webkitPersistentStorage|| w==navigator.persistentStorage?(console.log("requestQuota:",C),w.requestQuota(C,function(){console.log("Granted bytes:",C);y(C)},function(H){console.log("Not granted bytes:",C,H);A("not enough free space granted")})):(console.log("Not enough temporary free space."),A("not enough free space granted"))},function(B){console.log("Query quota error:",B);B&&B.message&&(B=B.message);A("not enough free space granted: "+B)})}):Promise.reject("unknown free space")}function m(){return(navigator.storage&&navigator.storage.persist? navigator.storage.persist():Promise.resolve(!1)).then(function(w){console.log("Persistence granted:",w);return w?navigator.webkitPersistentStorage||navigator.persistentStorage:navigator.webkitTemporaryStorage||navigator.temporaryStorage})}function k(){return navigator.storage&&navigator.storage.persisted?navigator.storage.persisted():Promise.resolve(!1)}function b(){return v?Promise.resolve(v):Promise.reject("files uninitialized, no space was requested")}function g(w){w.length&&"/"==w[0]&&(w=w.substr(1)); return w.split("/").filter(function(x){return""!=x})}function d(w){return new Promise(function(x,y){w.remove(function(){x()},function(A){y("can't remove entry"+(A&&A.message?": "+A.message:"")+".")})})}function c(w){return f(w).then(function(x){return Promise.all(x.map(function(y){return y.isDirectory?c(y):d(y)}))}).then(function(){return d(w).then(function(){return Promise.resolve()},function(){return Promise.resolve()})})}function f(w){return new Promise(function(x,y){w.createReader().readEntries(function(A){x(A)}, function(){y("can't list directory")})})}function l(w,x,y){return new Promise(function(A,B){w.getDirectory(x,y,function(z){A(z)},function(){B("can't get directory entry: "+x)})})}function p(w,x){return new Promise(function(y,A){l(w,x,{create:!1}).then(function(B){y(B)})["catch"](function(){l(w,x,{create:!0}).then(function(B){y(B)})["catch"](function(B){console.log("Can't create directory entry: "+x,B);A("can't create directory entry: "+x)})})})}function q(w,x){return 0==x.length?w:p(w,x[0]).then(function(y){return q(y, x.slice(1))})}function n(w,x){return 0==x.length?w:l(w,x[0]).then(function(y){return n(y,x.slice(1))})}function r(w,x,y){return new Promise(function(A,B){w.getFile(x,y,function(z){A(z)},function(){B("can't get file entry: "+x)})})}function t(w){return new Promise(function(x,y){w.createWriter(function(A){x(A)},function(){y("can't create File for writing")})})}function u(w){var x=w.lastIndexOf(".");switch((0>x?"":w.substr(x)).toLowerCase()){case ".bmp":return"image/bmp";case ".eot":return"application/vnd.ms-fontobject"; case ".gif":return"image/gif";case ".glb":return"model/gltf-binary";case ".htm":case ".html":return"text/html";case ".jpeg":case ".jpg":return"image/jpeg";case ".js":return"text/javascript";case ".json":return"application/json";case ".m3u8":return"application/vnd.apple.mpegurl";case ".m4a":return"audio/mp4";case ".m4v":return"video/mp4";case ".mp3":return"audio/mpeg";case ".mp4":return"video/mp4";case ".ogg":return"audio/ogg";case ".ogv":return"video/ogg";case ".otf":return"font/otf";case ".png":return"image/png"; case ".svg":return"image/svg+xml";case ".tif":return"image/tiff";case ".tiff":return"image/tiff";case ".ts":return"video/vnd.dlna.mpeg-tts";case ".ttf":return"application/font-sfnt";case ".tts":return"video/vnd.dlna.mpeg-tts";case ".txt":return"text/plain";case ".webm":return"video/webm";case ".woff":return"font/x-woff";case ".woff2":return"font/woff2";case ".xml":return"text/xml";default:return"application/octet-stream"}}var v=null;return{OZ:function(){return k()},toURL:function(w,x){return a(w).then(function(y){y= new window.URL(y);var A=x?"persistent":"temporary",B=y.pathname.split("/").map(encodeURIComponent).join("/");return"filesystem:"+y.origin+"/"+A+B})},hYa:function(w){return m().then(function(x){return h(x,w)}).then(function(x){return e(x)}).then(function(x){v=x})},YXa:function(w){w=g(w);var x=w[w.length-1],y=w.slice(0,-1);return b().then(function(A){return n(A.root,y)}).then(function(A){return r(A,x,{create:!0})},function(){return Promise.resolve(null)}).then(function(A){return A&&d(A)})},aza:function(w, x){var y=g(w);return e(1024,x).then(function(A){return n(A.root,y)}).then(function(A){return c(A)},function(){return Promise.resolve()})},aBa:function(w,x,y){var A=g(w),B=A[A.length-1],z=A.slice(0,-1);return b().then(function(C){return q(C.root,z)}).then(function(C){return r(C,B,{create:!1}).then(function(H){return Promise.resolve(H)},function(){return r(C,B,{create:!0})})}).then(function(C){return t(C)}).then(function(C){C.seek(C.length);return new Promise(function(H,D){C.onwriteend=function(){H()}; C.onerror=function(I){console.log("Error writing file:",w,I);D("error writing file: "+w)};C.write(new Blob([x],{type:y||u(B)}))})})}}}); define("cw",["require","mb","mj","v"],function(a){function e(c,f){this.Yr=c;this.bx=!1;this.fo=null;this.Tu=f||function(){}}function h(c){return 1048576<=c.ZD}var m=a("mb"),k=a("mj"),b=a("v").Rf()?3:5;a={File:function(c,f){this.url=c;this.ZD=f;this.UP=this.OH=0}};var g=a.Files=function(c,f,l,p){this.nia=this.BEa=c;this.Sr=f.slice();this.cka=[];var q=0;this.Sr.sort(function(n,r){return n.ZD-r.ZD});this.Sr.forEach(function(n){q+=n.ZD});this.tsa=q;this.dB=[];this.NR=void 0;this.Ar=[];this.N2=!1;this.Yf= l||function(){};this.uK=p||function(){}};g.prototype.As=function(){return this.AFa().then(function(){return this.BFa()}.bind(this))};g.prototype.AFa=function(){return self.caches["delete"](this.nia)};g.prototype.BFa=function(){var c=(new window.URL(this.BEa)).pathname;return m.aza(c,!1).then(function(){return m.aza(c,!0)})};g.prototype.requestStorage=function(){return m.hYa(Math.round(1.1*this.tsa+10485760)).then(function(){return m.OZ()})};g.prototype.download=function(){this.N2=!1;this.NR=0;this.As().then(function(){this.qK()}.bind(this))["catch"](function(c){console.log("error cleaning storage", c);m.OZ().then(function(f){this.uK(!1,f)}.bind(this))}.bind(this))};g.prototype.cancelDownload=function(){this.N2=!0;this.Ar.forEach(function(c){c.cancel()});this.As()};g.prototype.qK=function(){if(!(this.N2||this.Ar.length>=b))if(0=this.cka.length;m.OZ().then(function(q){this.uK(p,q)}.bind(this))}};g.prototype.Kja=function(c,f,l){l?(this.dB.splice(this.dB.indexOf(c),1),this.Ar.splice(this.Ar.indexOf(f),1),this.NR+=c.ZD,this.Fj(),this.qK()): (c.OH=0,c.UP+=1,this.Fj(),20<=c.UP?(console.log("Error downloading file: "+c.url+" after "+c.UP+" retries."),this.Wla(c.url)?(this.cka.push(c),this.Ar.splice(this.Ar.indexOf(f),1),this.qK()):(this.cancelDownload(),m.OZ().then(function(p){this.uK(!1,p)}.bind(this)))):(console.log("Error downloading file: "+c.url+" attempt "+c.UP+" of 20. Will retry in 2000ms."),setTimeout(function(){this.dB.splice(this.dB.indexOf(c),1);this.Ar.splice(this.Ar.indexOf(f),1);h(c)?this.Sr.push(c):this.Sr.splice(0,0,c); this.qK()}.bind(this),2E3)))};g.prototype.IQa=function(c,f){return this.KQa(c,f).then(function(){if(this.ZSa(c))return this.JQa(c,f)}.bind(this))};g.prototype.JQa=function(c,f){f=f.clone();return 200!=f.status?Promise.reject("response status: "+f.status):self.caches.open(this.nia).then(function(l){return l.put(c,f)})};g.prototype.KQa=function(c,f){f=f.clone();if(200!=f.status)return Promise.reject("response status: "+f.status);var l=(new window.URL(c)).pathname;return l.lastIndexOf("/")==l.length- 1?Promise.resolve():new Promise(function(p,q){function n(){x.read().then(function(y){var A=y.value,B=[];if(A){for(;10485760<=A.length+w;){var z=A.slice(0,10485760-w);v.push(z);B.push(r(v));v=[];w=0;A=A.slice(z.length,A.length)}0c.indexOf("loading/")};g.prototype.ZSa=function(c){var f=(new window.URL(c)).pathname;return 0<=f.indexOf("files/")||0<=f.indexOf("pdfjs/")?!0:this.Wla(c)?!1:!0};g.prototype.Fj=function(){var c=this.NR;this.dB.forEach(function(f){c+=f.OH});this.Yf(100*c/this.tsa)};e.prototype.fetch=function(){return fetch(this.Yr).then(function(c){if(this.bx)return c.body.getReader().cancel(),Promise.reject("cancel requested before server responded."); if(!c.ok)return Promise.resolve(c);var f=c.headers.get("content-length"),l=void 0,p=0;null!==f&&(l=parseInt(f,10));this.fo=c.body.getReader();var q=!1,n=function(u){this.bx?u.close():q=!0}.bind(this),r=function(u){return this.fo.read().then(function(v){var w=v.value;w&&(p+=w.byteLength,u.enqueue(w));v.done&&(l=p,t(u));this.Tu({ZD:l,OH:p})}.bind(this))["catch"](function(v){console.log("Error reading response",v);u.error(v)}.bind(this))}.bind(this),t=function(u){q&&(u.close(),q=!1,this.fo=null)}.bind(this); return new Response(new ReadableStream({start:function(u){return n(u)},pull:function(u){return r(u)},cancel:function(){t()}}))}.bind(this))};e.prototype.cancel=function(){this.bx=!0;this.fo&&this.fo.cancel()};a.As=function(c){return(new g(c,[])).As()};return a}); define("eR","require lo jquery.mod oH gi v cw mb mv mj lp ds".split(" "),function(a){function e(u){n=u}var h=a("lo"),m=a("jquery.mod"),k=a("oH"),b=a("gi"),g=a("v"),d=a("cw"),c=a("mb"),f=a("mv"),l=a("mj"),p=a("lp"),q=a("ds"),n=null;window.addEventListener("beforeinstallprompt",e);var r=h.extend(b,function(u){b.call(this);this.mc=u;this.A="initial";this.A9=this.AW=this.rj=null;this.gq=!1;this.nB=null;this.EX=void 0;this.bB=n;this.VT=r.axa();this.L6=l.cj("vr");this.bB||this.VT||(window.removeEventListener("beforeinstallprompt", e),window.addEventListener("beforeinstallprompt",this.WLa.bind(this)));this.VT||window.addEventListener("appinstalled",this.WDa.bind(this))});r.prototype.iea=function(u){this.AW=u;this.qm=l.nw(this.AW.get(TDV.PlayerSettings.BASE_DIR_URL)||l.getDirectory(this.AW.get(TDV.PlayerSettings.SELECTED_SCRIPT_URL)));"/"!=this.qm[this.qm.length-1]&&(this.qm+="/");this.rj=new t(this.qm);this.EX=this.$pa=u.get(TDV.PlayerSettings.QUERY_STRING_PARAMETERS);this.rKa=l.parse(l.getDirectory(window.location.href)).pathname; this.WHa=l.cz(l.nw("files.json",this.qm),this.$pa);u=TDV.pb.cwa();this.A9=l.cz(this.AW.get(TDV.PlayerSettings.SERVICE_WORKER_URL),"swv="+u.MAJOR+"."+u.MINOR);this.rj=new t(this.qm);this.rj.bind(k.Z,this.aRa,this,!0);this.rj.load()};r.prototype.pI=function(){return this.rj.state==t.eJ};r.prototype.Cua=function(){return"can_install"==this.A&&!this.L6};r.prototype.Eua=function(){return this.pI()&&this.EX!=this.rj.version&&!this.L6};r.prototype.Bua=function(){return this.rj.state!=t.$ea&&!this.L6};r.prototype.Jwa= function(){"can_install"==this.A&&(this.bB?(this.bB.userChoice.then(function(u){"accepted"!=u.outcome&&this.zc("unavailable")}.bind(this)),this.bB.prompt().then(function(){this.bB=null}.bind(this))):this.g4())};r.prototype.cancel=function(){"downloading"==this.A&&(this.nB&&(this.nB.cancelDownload(),this.nB=null),this.rj.As(),this.zc("unavailable"))};r.prototype.As=function(){d.As(this.qm);this.rj.As()};r.prototype.aRa=function(){!0!==this.mc.get("downloadEnabled")?this.zc("unavailable"):!0!==f.qBa? this.zc("unavailable"):g.browser()!=g.Uk||g.hd()==g.Pz||g.hd()==g.fE?this.zc("unavailable"):this.A9?"serviceWorker"in navigator?this.pI()&&!this.Eua()?this.zc("unavailable"):navigator.onLine?this.QNa():this.zc("unavailable"):this.zc("unavailable"):this.zc("unavailable")};r.prototype.zc=function(u){this.A!=u&&(this.A=u,u=0<=["can_install","unavailable"].indexOf(this.A),this.gq!=u&&(this.gq=u)&&this.trigger(k.Vc))};r.prototype.QNa=function(){this.zc("registering_sw");navigator.serviceWorker.register(this.A9, {scope:this.rKa}).then(function(){this.Rqa(!0)}.bind(this))["catch"](function(){this.Rqa(!1)}.bind(this))};r.prototype.Rqa=function(u){u?g.Rf()?this.zc("can_install"):this.VT&&this.rj.state==t.W_?(this.zc("can_install"),this.g4()):this.bB?this.zc("can_install"):(this.zc("sw_registered"),setTimeout(function(){"sw_registered"==this.A&&this.zc("can_install")}.bind(this),3E3)):this.zc("unavailable")};r.prototype.WLa=function(u){this.bB=u;"sw_registered"==this.A&&this.zc("can_install")};r.prototype.WDa= function(){"sw_registered"==this.A&&this.zc("can_install");this.g4()};r.prototype.g4=function(){this.zc("downloading");this.trigger(k.Vq);this.Ksa(0);this.sLa()};r.prototype.sLa=function(){var u=l.cz(this.WHa,"nc="+(new Date).getTime());m.getJSON(u,function(v){if("downloading"==this.A){var w=[],x;for(x in v){var y=v[x].tags;if(y){Array.isArray(y)||(y=[y]);for(var A=0;Aw.indexOf(y[A])&&w.push(y[A])}}var B=[];0<=w.indexOf("mobilevr2gen")&&g.cZ()?B.push("mobilevr2gen"):0<=w.indexOf("mobilevr")&& g.Rf()?B.push("mobilevr"):0<=w.indexOf("mobile")&&g.jb()?B.push("mobile"):0<=w.indexOf("desktop")&&!g.jb()&&B.push("desktop");w=[];for(x in v)if(!(-1t.text.length?(this.xB.set("visible",!1),this.Ta.set("text",t.text),this.Ta.set("visible",!0)):(this.Ta.set("visible",!1),this.xB.set("html",this.aJa(t.text)),this.xB.set("visible",!0)),this.Ji.set("visible",t.Co?!0:!1),this.set("visible",!0)):this.set("visible",!1)}};a.prototype.aJa= function(t){return"
'+t+"
"};a.prototype.vR=function(t){var u=this.qla();u&&(u=this.oJa(u.text),this.cOa(u),m(u).each(function(v){v.Co&&v.Co.call(this,t)},this))};a.prototype.HNa=function(t){this.Jp.push(t);this.tX()};a.prototype.oJa=function(t){return m(this.Jp).filter(function(u){return u.text==t})};a.prototype.cOa=function(t){this.Jp=m(this.Jp).filter(function(u){return!m(t).contains(u)}); this.tX()};a.prototype.kqa=function(t){this.Jp.splice(t,1);t==this.Jp.length&&this.tX()};a.prototype.qla=function(){return 0Math.abs(v-t)+Math.abs(w-u))&&f.forEach(function(S){S(F)});t=u=v=w=void 0},N)}F.preventDefault();F.stopImmediatePropagation()},!0);var t,u,v,w;document.addEventListener("mousedown",function(F){v=t=F.screenX;w=u=F.screenY},!0);document.addEventListener("mousemove", function(F){v=F.screenX;w=F.screenY},!0);var x=1;m=m.extend(g,function(F,N){g.call(this);this.fb=F;this.iJa=N;this.AU=this.AU.bind(this);this.Od=this.Od.bind(this);this.B6=!1;this.y6=this.y6.bind(this);this.z6=this.z6.bind(this);this.x6=this.x6.bind(this);this.A6=this.A6.bind(this);this.na=document.createElement("div");this.na.style.setProperty("z-index",x,I[D]);for(var S in I[y])this.na.style.setProperty(S,I[y][S],I[D]);f.push(this.AU)});m.prototype.clear=function(){this.nLa()&&this.O5();this.na= null;f.splice(f.indexOf(this.AU),1)};m.prototype.AU=function(F){var N=this.iJa();if(0!=N.length){this.na.replaceChildren();this.B6=!1;var S=0;N.forEach(function(Q){var R=document.createElement("div");if(Q){R.textContent=Q;for(var W in I[B])R.style.setProperty(W,I[B][W],I[D]);var G=S;S++;R.addEventListener(n,function(L){this.y6(L,G)}.bind(this));R.addEventListener(q,function(L){this.z6(L,G)}.bind(this));R.addEventListener(l,function(L){this.x6(L,G)}.bind(this));R.addEventListener(p,function(L){this.A6(L, G)}.bind(this))}else for(W in I[z])R.style.setProperty(W,I[z][W],I[D]);for(W in I[A])R.style.setProperty(W,I[A][W],I[D]);this.na.appendChild(R)}.bind(this));(c.fullscreenElement()||document.body).appendChild(this.na);this.na.style.setProperty("display","block",I[D]);N=F.pageX;F=F.pageY;N+this.na.clientWidth>document.body.clientWidth-5&&(N=document.body.clientWidth-this.na.clientWidth-5);F+this.na.clientHeight>document.body.clientHeight-5&&(F=document.body.clientHeight-this.na.clientHeight-5);this.na.style.setProperty("left", N+"px",I[D]);this.na.style.setProperty("top",F+"px",I[D]);this.fb.bind(k.ub,this.Od,this);document.addEventListener("mousedown",this.Od);this.pTa=setInterval(this.oTa.bind(this),200)}};m.prototype.nLa=function(){return!!this.na&&!!this.na.parentNode};m.prototype.O5=function(){clearInterval(this.pTa);this.na.parentNode.removeChild(this.na);document.removeEventListener("mousedown",this.Od);this.fb.unbind(k.ub,this.Od,this);this.na.style.setProperty("display","none",I[D])};m.prototype.oTa=function(){this.na.contains(document.elementFromPoint(this.na.offsetLeft+ .5*this.na.clientWidth,this.na.offsetTop+.5*this.na.clientHeight))||this.na.style.setProperty("z-index",x*=10,I[D])};m.prototype.Od=function(){this.O5()};m.prototype.x6=function(F){this.B6=!0;F.preventDefault();F.stopImmediatePropagation()};m.prototype.A6=function(F,N){this.B6&&(this.O5(),F.preventDefault(),F.stopImmediatePropagation(),this.trigger(new b(k.An,{index:N})))};m.prototype.y6=function(F){for(var N in I[C])F.currentTarget.style.setProperty(N,I[C][N],I[D])};m.prototype.z6=function(F){for(var N in I[H])F.currentTarget.style.setProperty(N, I[H][N],I[D])};var y="0",A="1",B="2",z="3",C="4",H="5",D="6",I=function(F){return JSON.parse(F.map(function(N){return String.fromCharCode(N)}).join(""))}([123,34,48,34,58,123,34,98,111,114,100,101,114,34,58,34,49,112,120,32,115,111,108,105,100,32,35,98,98,98,34,44,34,98,111,114,100,101,114,45,114,97,100,105,117,115,34,58,34,51,112,120,34,44,34,112,111,115,105,116,105,111,110,34,58,34,97,98,115,111,108,117,116,101,34,44,34,100,105,115,112,108,97,121,34,58,34,110,111,110,101,34,44,34,98,97,99,107,103, 114,111,117,110,100,45,99,111,108,111,114,34,58,34,35,101,53,101,53,101,53,34,44,34,111,112,97,99,105,116,121,34,58,49,44,34,112,97,100,100,105,110,103,34,58,48,44,34,109,97,114,103,105,110,34,58,48,44,34,112,111,105,110,116,101,114,45,101,118,101,110,116,115,34,58,34,97,108,108,34,44,34,116,101,120,116,45,97,108,105,103,110,34,58,34,108,101,102,116,34,44,34,98,111,120,45,115,104,97,100,111,119,34,58,34,49,112,120,32,49,112,120,32,51,112,120,32,114,103,98,97,40,48,44,32,48,44,32,48,44,32,48,46,50, 41,34,125,44,34,49,34,58,123,34,102,111,110,116,45,102,97,109,105,108,121,34,58,34,65,114,105,97,108,34,44,34,102,111,110,116,45,115,105,122,101,34,58,34,49,51,112,120,34,44,34,99,111,108,111,114,34,58,34,35,48,48,48,48,48,48,34,44,34,111,112,97,99,105,116,121,34,58,49,44,34,100,105,115,112,108,97,121,34,58,34,98,108,111,99,107,34,44,34,112,111,105,110,116,101,114,45,101,118,101,110,116,115,34,58,34,97,108,108,34,125,44,34,50,34,58,123,34,99,117,114,115,111,114,34,58,34,112,111,105,110,116,101,114, 34,44,34,98,111,114,100,101,114,45,114,97,100,105,117,115,34,58,34,51,112,120,34,44,34,112,97,100,100,105,110,103,34,58,34,55,112,120,32,50,48,112,120,34,44,34,119,104,105,116,101,45,115,112,97,99,101,34,58,34,110,111,119,114,97,112,34,125,44,34,51,34,58,123,34,109,97,114,103,105,110,34,58,34,55,112,120,32,53,112,120,34,44,34,98,111,114,100,101,114,45,116,111,112,34,58,34,49,112,120,32,115,111,108,105,100,32,35,97,97,97,34,44,34,98,111,114,100,101,114,45,98,111,116,116,111,109,34,58,34,49,112,120, 32,115,111,108,105,100,32,35,102,102,102,34,125,44,34,52,34,58,123,34,99,111,108,111,114,34,58,34,35,102,102,102,102,102,102,34,44,34,98,97,99,107,103,114,111,117,110,100,45,99,111,108,111,114,34,58,34,114,103,98,97,40,48,44,32,48,44,32,48,44,32,48,46,55,41,34,125,44,34,53,34,58,123,34,99,111,108,111,114,34,58,34,35,48,48,48,48,48,48,34,44,34,98,97,99,107,103,114,111,117,110,100,45,99,111,108,111,114,34,58,34,34,125,44,34,54,34,58,34,105,109,112,111,114,116,97,110,116,34,125]);return m}); define("mn",["require","mj","bc","cc"],function(a){function e(b){this.fb=b;this.js={};this.js[m.aCa]="move";this.js[m.bCa]="ew-resize";this.js[m.dCa]="ns-resize";this.js[m.cCa]="nesw-resize";this.js[m.eCa]="nwse-resize";this.js[m.df]="pointer";this.js[m.mt]="inherit";this.js[m.He]="default";this.ah={};this.ah[m.jA]="grab.cur";this.ah[m.Zh]="grabbing.cur";this.ah[m.Ofa]="N.cur";this.ah[m.Pfa]="NE.cur";this.ah[m.Ffa]="E.cur";this.ah[m.Sfa]="SE.cur";this.ah[m.Rfa]="S.cur";this.ah[m.Tfa]="SW.cur";this.ah[m.Ufa]= "W.cur";this.ah[m.Qfa]="NW.cur";this.ah[m.Hfa]="FN.cur";this.ah[m.Ifa]="FNE.cur";this.ah[m.Gfa]="FE.cur";this.ah[m.Lfa]="FSE.cur";this.ah[m.Kfa]="FS.cur";this.ah[m.Mfa]="FSW.cur";this.ah[m.Nfa]="FW.cur";this.ah[m.Jfa]="FNW.cur";this.i2={};this.i2[m.sA]=k.sA;this.mia={}}var h=a("mj"),m=a("bc"),k=a("cc");e.prototype.vva=function(b){return this.hLa(b)?this.nla(b):this.YKa(b)?this.OIa(b):this.TKa(b)?this.wIa(b):this.nla(m.He)};e.prototype.hFa=function(b){if(!(b in this.mia)){var g=new Image;g.src=this.Gka(b); this.mia[b]=g}};e.prototype.hLa=function(b){return b in this.js};e.prototype.nla=function(b){return this.js[b]};e.prototype.YKa=function(b){return this.ah[b]};e.prototype.OIa=function(b){this.hFa(b);return"url("+this.Gka(b)+"), default"};e.prototype.Gka=function(b){return h.nw(this.fb.get("settings").get(TDV.PlayerSettings.CURSORS_DIR_URL))+"/"+this.ah[b]};e.prototype.TKa=function(b){return b in this.i2};e.prototype.wIa=function(b){return"url("+this.i2[b]+"), auto"};return e}); define("cs",["require","eg"],function(a){function e(){this.bv={};this.cq=[];this.cK=0}var h=a("eg");e.prototype.push=function(m,k){void 0==this.bv[k]?(this.bv[k]=[m],this.cq.push(k),this.cq.sort(function(b,g){return b-g}),this.cK++):(k=this.bv[k],h(k).contains(m)||(k.push(m),this.cK++))};e.prototype.xva=function(){return this.cK};e.prototype.isEmpty=function(){return 0==this.cq.length};e.prototype.Mya=function(){if(!this.isEmpty()){var m=this.cq[0],k=this.bv[m].pop();0==this.bv[m].length&&(delete this.bv[m], this.cq=this.cq.slice(1));this.cK--;return k}};e.prototype.lda=function(){if(!this.isEmpty()){var m=this.cq[this.cq.length-1],k=this.bv[m].pop();0==this.bv[m].length&&(delete this.bv[m],this.cq=this.cq.slice(0,this.cq.length-1));this.cK--;return k}};return e}); define("iH","require eg lo gz cs bg lr".split(" "),function(a){function e(){this.yy=!1;this.xpa=void 0;this.W=!0;this.bV=this.bV.bind(this);this.WR=new m;this.LV=new m;this.HW=new m;this.WT=new m;this.a4=new m;k.requestFrame(this.yj,this)}a("eg");a("lo");var h=a("gz"),m=a("cs"),k=a("bg"),b=a("lr");e.prototype.clear=function(){this.W=!1};e.prototype.tP=function(g){this.WR.push(g,this.yF(g));this.jv()};e.prototype.le=function(g){this.LV.push(g,this.yF(g));this.jv()};e.prototype.Vb=function(g){this.HW.push(g, this.yF(g));this.jv()};e.prototype.Hd=function(g){this.WT.push(g,this.yF(g));this.jv()};e.prototype.Rk=function(g){this.a4.push(g,this.yF(g));this.jv()};e.prototype.ea=function(){this.$Ra();this.QSa();this.bSa()};e.prototype.$Ra=function(){do{for(;!this.WR.isEmpty();)this.WR.lda().Ab();this.LV.isEmpty()||this.LV.lda().Va()}while(!this.LV.isEmpty()||!this.WR.isEmpty())};e.prototype.QSa=function(){for(;!this.HW.isEmpty()||!this.WT.isEmpty();)this.yX(),this.laa()};e.prototype.yX=function(){for(;!this.HW.isEmpty();){var g= this.HW.lda();if(g.X_a()){var d=g.getParent();d?(d.Vb(),d.Hd()):g.xza(0,0,g.Ls(),g.Ks())}}};e.prototype.laa=function(){for(;!this.WT.isEmpty();)this.WT.Mya().am()};e.prototype.bSa=function(){for(;!this.a4.isEmpty();)this.a4.Mya().Vg();h.process()};e.prototype.jv=function(){this.yy||(this.yy=!0,this.xpa=(new Date).getTime()+500,b.Az(this.bV))};e.prototype.bV=function(){this.yy=!1;this.W&&this.ea()};e.prototype.yF=function(g){return(g=g.getParent())?this.yF(g)+1:0};e.prototype.yj=function(){this.yy&& (new Date).getTime()>=this.xpa&&this.bV();k.requestFrame(this.yj,this)};return e}); define("hu","require jquery.mod eg lo oH oc jd mn bk iH mZ v".split(" "),function(a){var e=a("jquery.mod"),h=a("eg"),m=a("lo"),k=a("oH"),b=a("oc"),g=a("jd"),d=a("mn"),c=a("bk"),f=a("iH"),l=a("mZ"),p=a("v");a=m.extend(b,function(q,n){this.EE=new f;b.call(this);this.ds(this);this.Be("Application");this.yf=e(q);this.Maa=n;this.yf.css({overflow:"hidden","user-select":"none","-ms-user-select":"none","-moz-user-select":"none","-webkit-user-select":"none","-ms-touch-action":"none","touch-action":"none", visibility:"visible","-webkit-tap-highlight-color":"rgba(255, 255, 255, 0)"});this.rv=e(document.createElement("div"));this.rv.css({position:"absolute",left:0,top:0,right:0,bottom:0,width:"auto",height:"auto",margin:0});this.yf.append(this.rv);this.rv.append(this.Ac());this.gsa=this.rv.get(0);this.Ad=this.td=void 0;this.PKa=10;this.uFa=500;this.bN=null;this.L3=new d(this);this.Nb=new c(this);this.na.append(this.Nb.Ac());this.hS=new g(this,this.Cka.bind(this));this.hS.bind(k.An,this.lh(this.una),this, !0);this.Nma=!0;this.set("contentOpaque",!0);this.ZA=null;this.XJ=[];this.kF(["globalmousemove"]);this.CEa();this.KX=this.LX=0;this.uy=1;try{this.LX=window.top.innerWidth,this.KX=window.top.innerHeight,this.H5=!0}catch(r){this.H5=!1}this.Bta();this.Qi=new l(q);this.Qi.bind(k.pa,function(){this.R4(this.Qi.enabled())},this)});a.prototype.start=function(){this.Tra||(this.Tra=!0,this.trigger(k.Bn))};a.prototype.Bta=function(){this.H5&&!l.enabled()&&(this.LX=window.top.innerWidth,this.KX=window.top.innerHeight)}; a.prototype.clear=function(){this.MD(null);this.esa();this.LHa();this.EE.clear();this.yf&&(this.Ac().remove(),this.rv.remove(),this.yf=null);this.L3=null;this.Qi.Jea();this.Qi=null;this.hS&&(this.hS.clear(),this.hS=null)};a.prototype.qZa=function(q){this.Nma=q};a.prototype.R4=function(q){q?this.Yqa():this.FFa()};a.prototype.Hu=function(){this.AL=this.ql=this.rv.width();this.zL=this.pl=this.rv.height()};a.prototype.MD=function(q){if(this.ZA!=q){null!=this.ZA&&this.ZA.xRa();this.ZA=q;for(var n=[];null!= q;)n=[q].concat(n),q=q.getParent();q=this.XJ.length-1;for(var r=!0;0<=q&&r;q--)h(n).contains(this.XJ[q])?r=!1:this.XJ.pop().ARa();for(q=0;qq?n:q)/(this.LX>this.KX?this.LX:this.KX),t=Math.round(n/r),u=Math.round(q/r);this.uy=r;n= {left:Math.round(.5*(n-t))+"px",top:Math.round(.5*(q-u))+"px",right:"auto",bottom:"auto",width:t+"px",height:u+"px",transform:"scale("+[r,r].join(", ")+")",position:"absolute"}}else n={position:"absolute",left:0,top:0,right:"auto",bottom:"auto",width:document.body.clientWidth+"px",height:document.body.clientHeight+"px"},this.uy=1;this.rv.css(n)};a.prototype.FFa=function(){this.rv.css({position:"abolute",left:0,top:0,right:0,bottom:0,width:"auto",height:"auto",transform:""});this.uy=1};a.prototype.wQa= function(){this.esa();var q=this;this.bN=setTimeout(function(){q.bN=null;q.Vb()},this.PKa)};a.prototype.esa=function(){this.bN&&(this.bN=null,clearTimeout(this.bN))};a.prototype.dKa=function(){this.Bia()};a.prototype.c5=function(){return h(b.prototype.c5.call(this)).defaults({globaltouchmove:[{target:e(document),name:"touchmove",handler:this.lh(this.eKa)}],globalmousemove:[{target:e(document),name:"mousemove",handler:this.lh(this.tla)},{target:e(window),name:"mouseout",handler:this.lh(this.tla)}], globalresize:[{target:e(window),name:"resize",handler:this.lh(this.dKa)}]})};return a}); define("gx","require jquery.mod pd cc mZ oH gi oF v".split(" "),function(a){function e(){n=TDV.pb.Hq();var v=q||n;p!=v&&(p=v,l.trigger(g.pa));v=!!q&&n!=q&&f.jb();r!=v&&(t||(t=h("
"),t.css({position:"fixed","z-index":m.JBa,left:0,top:0,margin:0,padding:0,height:"100%",width:"100%","background-color":"rgba(255, 255, 255, 0.99)"}),t.html(['
\n
','','
'+c("rotate-device")+"
","
\n
"].join("\n")),u=t.find("img")),r&&t.detach(),(r=v)&&(b.enabled()?h(b.fullscreenElement()):h("body")).append(t));r&&u.css("transform",p==l.tCa?"translate(-11%, 0) rotate(-90deg)":"none")}var h=a("jquery.mod"),m=a("pd"),k=a("cc"),b=a("mZ"),g=a("oH"),d=a("gi"),c=a("oF"),f=a("v"),l=new d;l.t0a=TDV.pb.S0; l.tCa=TDV.pb.T0;l.QD=function(v){q!=v&&(q=v,e())};l.Kva=function(){return q};l.get=function(){return p};var p=void 0,q=void 0,n=void 0,r=!1,t=null,u=null;window.addEventListener("resize",function(){e();setTimeout(e,500)},!0);try{window.screen.orientation.addEventListener("change",e)}catch(v){window.addEventListener("orientationchange",e,!1)}e();return l}); define("iC","require lo eg oH cy cD nx mW oF jD H kA nm dQ lY ny lH v hF eR cv jo mj bv ed hu oc db mZ bE gx lU ds".split(" "),function(a){var e=a("lo"),h=a("eg"),m=a("oH"),k=a("cy"),b=a("cD"),g=a("nx"),d=a("mW"),c=a("oF"),f=a("jD"),l=a("H"),p=a("kA"),q=a("nm"),n=a("dQ");a("lY");var r=a("ny"),t=a("lH"),u=a("v"),v=a("hF"),w=a("eR"),x=a("cv"),y=a("jo"),A=a("mj"),B=a("bv"),z=a("ed"),C=a("hu"),H=a("oc"),D=a("db"),I=a("mZ"),F=a("bE"),N=a("gx"),S=a("lU"),Q=a("ds"),R=g.define("Player",C,function(){C.apply(this, arguments);this.ig=new w(this);this.Ija=new p(this,this.ig);this.tr=new H;this.tr.ja({backgroundOpacity:0,visible:!0,width:"100%",height:"100%"});this.WF=new q;this.uH=new n;this.kS=new l(this);var L=new D;L.k_(0);this.dQ(L);this.wf(!0);this.bind(m.G("settings"),this.MMa,this,!0);this.EX=TDV.pb.cwa();N.bind(m.pa,this.wMa,this,!0);F.M_a();this.YEa=new f(this,"buttonMute",z.Ie);this.YEa.bind(m.qa,this.moa,this,!0);this.fFa=new f(this,"buttonUnmute",z.Ie);this.fFa.bind(m.qa,this.apa,this,!0);this.KR= new f(this,"buttonToggleMute",z.Xj);this.KR.bind(m.Vj,this.moa,this,!0);this.KR.bind(m.jm,this.apa,this,!0);this.bind(m.G("mute"),this.tMa,this);this.KR.set("pressed",this.get("mute"));this.WEa=new f(this,"buttonEnterFullscreen",z.Ie);this.WEa.bind(m.qa,this.Ana,this,!0);this.XEa=new f(this,"buttonExitFullscreen",z.Ie);this.XEa.bind(m.qa,this.Bna,this,!0);this.HR=new f(this,"buttonToggleFullscreen",z.Xj);this.HR.bind(m.Vj,this.Ana,this,!0);this.HR.bind(m.jm,this.Bna,this,!0);this.HR.set("pressed", this.get("fullscreenEnabled"));this.bind(m.G("fullscreenEnabled"),this.dMa,this,!0);this.set("fullscreenEnabled",this.Qi.enabled());this.set("defaultMenu",["fullscreen","mute","rotation"]);this.bind(m.Bn,this.PMa,this,!0);[m.ub,m.Zb,m.ar,m.Bw,m.kE].forEach(function(U){this.bind(U,function(O){this.trigger(new k(m.vE,{pQ:O}))},this,!0)}.bind(this));["keydown","keyup"].forEach(function(U){document.addEventListener(U,function(O){this.trigger(new k(m.vE,{pQ:O}))}.bind(this))}.bind(this));B.bind(m.pa,function(){B.isPresenting()? N.QD():N.QD(C.prototype.get.call(this,"lockedOrientation"))},this);this.Qi.bind(m.pa,function(){var U=N.Kva();N.QD();N.QD(U)},this)});R.zBa="orientationChange";R.prototype.logCapabilities=function(){this.ALa()};R.prototype.activateAudio=function(L){this.qDa(L)};R.prototype.R4=function(L){C.prototype.R4.apply(this,arguments);this.set("fullscreenEnabled",L)};R.prototype.nb=function(){C.prototype.nb.call(this);this.h("mute",!1);this.h("fullscreenEnabled",!1)};R.prototype.Ab=function(){C.prototype.Ab.call(this); this.Ija.getParent()!=this&&this.Wa(this.Ija);this.tr.getParent()!=this&&(this.Wa(this.tr),this.tr.Wa(this.kS),this.tr.Wa(this.WF),this.tr.Wa(this.uH))};R.prototype.wOa=function(L){var U=[];this.WF&&U.push(this.WF);this.uH&&U.push(this.uH);this.kS&&U.push(this.kS);for(var O=!0,V=0;V<=U.length&&O;V++)O=L.indexOf(U[V]),O=L.length-(U.length-V)==O;return O?L:L.filter(function(Y){return 0>U.indexOf(Y)}).concat(U)};R.prototype.Va=function(){this.Zpa||(this.Zpa=h.difference(this.IJa(),"backgroundOpacity visible includeInLayout state left right top bottom centerX centerY width height minWidth minHeight maxWidth maxHeight actualWidth actualHeight paddingLeft paddingTop paddingRight paddingBottom".split(" "))); this.lc(this.Zpa,{},[this.tr],!0,!0);C.prototype.Va.call(this);!0===this.f1a&&this.e1a()};R.prototype.set=function(L,U){switch(L){case "children":this.tr.set(L,this.wOa(U));return;case "creationPolicy":this.tr.set(L,U);return;case "fullscreenAvailable":case "gyroscopeAvailable":case "cardboardAvailable":case "isMobile":case "orientation":case "surfaceSelectionAvailable":case "touchEnabled":case "touchDevice":case "vrAvailable":U=this.get(L);break;case "fullscreenEnabled":U=this.Qi.zg()&&U;break;case "fullscreenFallback":I.Oda(U); break;case "lockedOrientation":u.Rf()&&(U=void 0);N.QD(U);break;case "installAvailable":U=this.ig.ready();break;case "mouseWheelEnabled":this.qZa(A.Wh("mousewheelenabled",U));break;case "backgroundPreloadEnabled":this.LOa(U);break;case "vrPolyfillScale":B.EZa(U);break;case "desktopMipmappingEnabled":r.HYa(U);break;case "mobileMipmappingEnabled":r.oZa(U)}C.prototype.set.call(this,L,U)};R.prototype.get=function(L,U){switch(L){case "children":case "creationPolicy":return this.tr.get(L,U);case "touchEnabled":return this.Rn; case "touchDevice":return u.Fea();case "isMobile":return u.jb();case "orientation":return N.get();case "lockedOrientation":return N.Kva();case "gyroscopeAvailable":return v.zg;case "cardboardAvailable":case "vrAvailable":return B.zg();case "fullscreenAvailable":return this.Qi.zg();case "vrPolyfillScale":return B.wVa();case "installAvailable":return this.ig.ready();case "surfaceSelectionAvailable":return!0;case "pageScale":return this.uy;case G:return this.Maa?C.prototype.get.apply(this,arguments): !0;default:return C.prototype.get.apply(this,arguments)}};R.prototype.moa=function(){this.set("mute",!0)};R.prototype.apa=function(){this.set("mute",!1)};R.prototype.tMa=function(){this.KR.set("pressed",this.get("mute"))};R.prototype.Ana=function(){this.set("fullscreenEnabled",!0)};R.prototype.Bna=function(){this.set("fullscreenEnabled",!1)};R.prototype.dMa=function(){this.get("fullscreenEnabled")?this.Qi.Nk():this.Qi.$f();this.HR.set("pressed",this.get("fullscreenEnabled"));this.set("fullscreenEnabled", this.Qi.enabled())};R.prototype.MMa=function(){var L=this.get("settings");L&&(x.initialize(L),y.iea(L),THREE.eBa=L.get(TDV.PlayerSettings.Uea),THREE.rBa=L.get(TDV.PlayerSettings.afa),this.ig.iea(L))};R.prototype.LOa=function(L){y.enabled(L)};R.prototype.Cka=function(){var L=[];this.WE=[];(this.get("menu")||[]).forEach(function(V){var Y=V.get("label");L.push(V.get("label"));Y&&this.WE.push(function(){V.trigger("click")})}.bind(this));var U=this.get("defaultMenu",[]);if(0<=U.indexOf("rotation")){var O= this.Ij("PanoramaPlayer");O.length&&(L.push(O[0].get("mouseControlMode")==b.Rz?c("change-to-drag-and-release"):c("change-to-click-and-move")),this.WE.push(this.gRa.bind(this)))}0<=U.indexOf("fullscreen")&&this.Qi.zg()&&(L.push(this.Qi.enabled()?c("exit-fullscreen"):c("enter-fullscreen")),this.WE.push(this.eRa.bind(this)));0<=U.indexOf("mute")&&(L.push(this.get("mute")?c("unmute"):c("mute")),this.WE.push(this.fRa.bind(this)));U=[].concat(d.name?[d.name]:[],"false"!=d.tUa?d.BP?["v:"+d.BP+"."+d.DP]: ["v:"+d.DP]:[]).join(" ");""!=U&&(0q.length){for(r=q.length;rp.length){for(r=p.length;rl&&(this.ue=[],this.tm=0);l=0<=l&&2>l;this.$E=f;var p;for(p=this.tm;pf);p++);for(;this.tmthis.cKa(f)?2:void 0);this.jO()};a.prototype.cza=function(f){f=this.JX.indexOf(f);0>f||(this.JX.splice(f,1),this.Wd&&this.kHa(this.uO[f]))};a.prototype.kHa=function(f){var l=this.uO.indexOf(f);0>l||(this.uO.splice(l,1),this.Wd.Qe(f),this.jO())};a.prototype.bea=function(f){this.BV=f;this.jO()};a.prototype.jO=function(){this.dc&&this.dc.bea(this.BV&&0this.Ed);this.zc(c)};a.prototype.Pm=function(c){var f=this.get("viewerArea");(this.Qd=f&&f.Qd)&&this.Qd.bind(h.qa,this.hpa,this,!0);this.r8=!1;this.CL(c.data.video)};a.prototype.Vp=function(c){this.Qd&&this.Qd.unbind(h.qa,this.hpa,this,!0);this.Qd=null;this.BL(c.data.video)}; a.prototype.zM=function(c){this.Ed=c.data.time;this.qb=c.data.duration;this.Dv()};a.prototype.gpa=function(){if(this.r8)this.r8=!1;else switch(this.get("clickAction")){case "play_pause":this.get("state")!=b.X?this.L.play():this.L.pause()}};a.prototype.hpa=function(){this.r8=!0};a.prototype.KM=function(c){this.DC(c.data.position)};a.prototype.uk=function(){this.L.play()};a.prototype.ro=function(){this.L.stop()};a.prototype.Xp=function(){this.L.pause()};a.prototype.DC=function(c){this.L&&this.L.setTime(c)}; a.prototype.Dv=function(){if(this.j){var c=this.j.getParent();0
"),this.Xd.css({position:"absolute",left:0,top:0,width:"100%",height:"100%"}),this.Bb().append(this.Xd));this.xc||(this.xc=e(""),this.xc.css({position:"absolute",left:0,top:0}),this.xc.attr("allowfullscreen","true"),this.xc.attr("allow","fullscreen; accelerometer; gyroscope; magnetometer; vr; autoplay; camera; microphone; display-capture; xr-spatial-tracking"), this.Xd.append(this.xc));this.jB||(this.jB=e("
"),this.jB.css({"text-shadow":"0 0 5px rgba(255,255,255,0.5)",display:"none",color:"#000000","font-weight":"300","font-family":"Tahoma, Geneva, sans-serif","font-size":k.jb()?"5vmin":"20px",position:"absolute",top:"50%",left:"50%","text-align":"center",transform:"translate(-50%, -50%)",width:"90%"}),this.Xd.append(this.jB))};a.prototype.Va=function(){if(this.I("url")){var c=this.B("url");c&&this.Qx?this.cra(c):(!c||this.get("unloadWhenHidden"))&& this.cra("");this.P("url")}this.I("insetBorder")&&(this.B("insetBorder")?this.xc.attr("frameborder","1"):this.xc.attr("frameborder","0"),this.P("insetBorder"));this.I("scrollEnabled")&&(this.B("scrollEnabled")?(this.xc.attr("scrolling","auto"),this.Xd.css({overflow:"auto","-webkit-overflow-scrolling":"touch"})):(this.xc.attr("scrolling","no"),this.Xd.css({overflow:"hidden","-webkit-overflow-scrolling":"auto"})),this.P("scrollEnabled"));g.prototype.Va.call(this)};a.prototype.Vg=function(){this.xc&& d.css(this.xc.get(0),{width:this.ia+"px",height:this.ua+"px"});g.prototype.Vg.call(this)};a.prototype.refresh=function(){this.B("url")&&this.Qx&&(this.R5(),this.hx(),this.U$(),this.xc.attr("src",""),setTimeout(function(){this.Qra();this.$ha();this.xc.attr("src",this.B("url"))}.bind(this),30))};a.prototype.cra=function(c){this.xc.attr("src")!=c&&(this.R5(),c?(this.Qra(),this.$ha()):(this.hx(),this.U$()),this.xc.attr("src",c))};a.prototype.G7=function(){this.tL=null;this.bLa()&&this.fQa()};a.prototype.JU= function(){this.R5();this.hx();this.U$()};a.prototype.$ha=function(){this.xc.on("load",this.JU)};a.prototype.U$=function(){this.xc.off("load",this.JU)};a.prototype.hx=function(){this.tL&&(clearTimeout(this.tL),this.tL=null)};a.prototype.Qra=function(){this.hx();this.tL=setTimeout(this.G7.bind(this),3E3)};a.prototype.bLa=function(){if("https:"==window.location.protocol){var c=this.xc.attr("src");if("https:"!=b.parse(c).protocol)return!0}return!1};a.prototype.fQa=function(){this.jB.text("A secure web page served over HTTPS can not display insecure content served over HTTP."); this.jB.show()};a.prototype.R5=function(){this.jB.hide()};return a});define("cn",["require","dJ","nx"],function(a){var e=a("dJ");a=a("nx").define("WebFrame",e,function(){e.call(this)});a.prototype.refresh=function(){e.prototype.refresh.call(this)};return a});define("lI",["require","eg","lo","oc","d"],function(a){var e=a("eg"),h=a("lo"),m=a("oc");a=a("d");var k=h.extend(m,function(){m.call(this)});k.vc={layout:a.Dg};e.defaults(k.vc,m.vc);k.prototype.nb=function(){this.Ln(k.vc)};return k}); define("mu","require eg lo oH cy mQ d oc lI hp fX e np nK iQ".split(" "),function(a){var e=a("eg"),h=a("lo"),m=a("oH"),k=a("cy"),b=a("mQ"),g=a("d"),d=a("oc"),c=a("lI"),f=a("hp"),l=a("fX");a("e");a("np");a("nK");var p=a("iQ"),q=h.extend(f,function(){f.call(this);this.Be("Window");this.Xw=this.UE=this.SN=this.jl=null;this.E2=new d;this.uF=null;this.K5=this.J5=0;this.LC=this.Era=!1;this.cba=this.dba=void 0;for(var n in q.P0a)this.JC(n);this.bind(m.kc,this.lTa,this);this.bind(m.hJ,this.jTa,this);this.bind(m.pJ, this.mTa,this);this.bind(m.qa,this.iTa,this);this.DX=0;this.Ef=new d;this.Ef.ja({visible:!1,includeInLayout:!1,layout:"absolute",height:"100%",width:"100%",backgroundOpacity:0,contentOpaque:!1});this.Ef.bind(m.kc,this.Ita,this);this.Ef.bind(m.pJ,this.dTa,this);this.Ef.bind(m.hJ,this.cTa,this);this.Ef.bind(m.qa,this.bTa,this);this.Ef.Wa(this)});q.prototype.set=function(n,r){switch(n){case "maxWidth":this.dba=r;this.sX();break;case "maxHeight":this.cba=r;this.sX();break;case "children":this.E2.set(n, r);break;case "shadow":this.Era=r;this.Dta();break;default:f.prototype.set.call(this,n,r)}};q.prototype.show=function(n,r){this.sX(n);this.set("visible",!1);this.Ef.set("visible",!1);this.yEa();r&&this.UTa();r=n.get("children");n.set("children",r.concat([this.Ef]));var t=this;e.defer(function(){t.Ef.set("visible",!0)})};q.prototype.yEa=function(){var n=this.B("modal"),r=this.B("veilShowEffect"),t=this.B("veilHideEffect");n&&r?this.Ef.set("showEffect",r):this.Ef.set("showEffect",null);n&&t?this.Ef.set("hideEffect", t):this.Ef.set("hideEffect",null)};q.prototype.hide=function(){this.get("visible")&&this.trigger(m.fBa);this.DX=0;this.yW(!1);this.set("visible",!1)};q.prototype.UTa=function(){this.set("centerX",0);this.set("centerY",0)};q.prototype.get=function(n,r){return"children"==n?this.E2.get(n,r):f.prototype.get.call(this,n,r)};q.Uga={headerBackgroundOpacity:"backgroundOpacity",headerBackgroundColor:"backgroundColor",headerBackgroundColorRatios:"backgroundColorRatios",headerBackgroundColorDirection:"backgroundColorDirection", headerBorderSize:"borderSize",headerBorderLeftSize:"borderLeftSize",headerBorderTopSize:"borderTopSize",headerBorderRightSize:"borderRightSize",headerBorderBottomSize:"borderBottomSize",headerBorderColor:"borderColor",headerBorderLeftColor:"borderLeftColor",headerBorderTopColor:"borderTopColor",headerBorderRightColor:"borderRightColor",headerBorderBottomColor:"borderBottomColor",headerHeight:"height",headerPaddingLeft:"paddingLeft",headerPaddingTop:"paddingTop",headerPaddingRight:"paddingRight",headerPaddingBottom:"paddingBottom", headerVerticalAlign:"verticalAlign"};q.Tga=e(q.Uga).keys();q.C1={borderRadius:"borderTopRadius",borderTopRadius:"borderTopRadius",borderLeftRadius:"borderTopLeftRadius",borderRightRadius:"borderTopRightRadius",borderTopLeftRadius:"borderTopLeftRadius",borderTopRightRadius:"borderTopRightRadius"};q.B1="borderLeftRadius borderRightRadius borderTopLeftRadius borderTopRightRadius borderTopRadius borderRadius".split(" ");q.lha={title:"text",titleFontFamily:"fontFamily",titleFontSize:"fontSize",titleFontColor:"fontColor", titleFontWeight:"fontWeight",titleFontStyle:"fontStyle",titleHorizontalAlign:"horizontalAlign",titlePaddingLeft:"paddingLeft",titlePaddingTop:"paddingTop",titlePaddingRight:"paddingRight",titlePaddingBottom:"paddingBottom",titleTextDecoration:"textDecoration",titleTextShadowColor:"textShadowColor",titleTextShadowHorizontalLength:"textShadowHorizontalLength",titleTextShadowVerticalLength:"textShadowVerticalLength",titleTextShadowBlurRadius:"textShadowBlurRadius",titleTextShadowOpacity:"textShadowOpacity"}; q.kha=e(q.lha).keys();q.Oga={closeButtonBackgroundColor:"backgroundColor",closeButtonBackgroundColorDirection:"backgroundColorDirection",closeButtonBackgroundColorRatios:"backgroundColorRatios",closeButtonBackgroundOpacity:"backgroundOpacity",closeButtonBorderColor:"borderColor",closeButtonBorderRadius:"borderRadius",closeButtonBorderSize:"borderSize",closeButtonHeight:"height",closeButtonIconColor:"iconColor",closeButtonIconHeight:"iconHeight",closeButtonIconLineWidth:"iconLineWidth",closeButtonIconWidth:"iconWidth", closeButtonOpacity:"opacity",closeButtonWidth:"width",closeButtonPaddingBottom:"paddingBottom",closeButtonPaddingLeft:"paddingLeft",closeButtonPaddingRight:"paddingRight",closeButtonPaddingTop:"paddingTop",closeButtonRollOverBackgroundColor:"rollOverBackgroundColor",closeButtonRollOverBackgroundColorDirection:"rollOverBackgroundColorDirection",closeButtonRollOverBackgroundColorRatios:"rollOverBackgroundColorRatios",closeButtonRollOverBackgroundOpacity:"rollOverBackgroundOpacity",closeButtonRollOverBorderColor:"rollOverBorderColor", closeButtonRollOverBorderSize:"rollOverBorderSize",closeButtonRollOverIconColor:"rollOverIconColor",closeButtonRollOverIconLineWidth:"rollOverIconLineWidth",closeButtonRollOverOpacity:"rollOverOpacity",closeButtonPressedBackgroundColor:"pressedBackgroundColor",closeButtonPressedBackgroundColorDirection:"pressedBackgroundColorDirection",closeButtonPressedBackgroundColorRatios:"pressedBackgroundColorRatios",closeButtonPressedBackgroundOpacity:"pressedBackgroundOpacity",closeButtonPressedBorderColor:"pressedBorderColor", closeButtonPressedBorderSize:"pressedBorderSize",closeButtonPressedIconColor:"pressedIconColor",closeButtonPressedIconLineWidth:"pressedIconLineWidth",closeButtonPressedOpacity:"pressedOpacity"};q.Nga=e(q.Oga).keys();q.Qga={footerBackgroundOpacity:"backgroundOpacity",footerBackgroundColor:"backgroundColor",footerBackgroundColorRatios:"backgroundColorRatios",footerBackgroundColorDirection:"backgroundColorDirection",footerBorderSize:"borderSize",footerBorderLeftSize:"borderLeftSize",footerBorderTopSize:"borderTopSize", footerBorderRightSize:"borderRightSize",footerBorderBottomSize:"borderBottomSize",footerBorderColor:"borderColor",footerBorderLeftColor:"borderLeftColor",footerBorderTopColor:"borderTopColor",footerBorderRightColor:"borderRightColor",footerBorderBottomColor:"borderBottomColor",footerHeight:"height"};q.Pga=e(q.Qga).keys();q.Sga={borderRadius:"borderBottomRadius",borderBottomRadius:"borderBottomRadius",borderLeftRadius:"borderBottomLeftRadius",borderRightRadius:"borderBottomRightRadius",borderBottomLeftRadius:"borderBottomLeftRadius", borderBottomRightRadius:"borderBottomRightRadius"};q.Rga="borderLeftRadius borderRightRadius borderBottomLeftRadius borderBottomRightRadius borderBottomRadius borderRadius".split(" ");q.Kga={bodyBackgroundOpacity:"backgroundOpacity",bodyBackgroundColor:"backgroundColor",bodyBackgroundColorRatios:"backgroundColorRatios",bodyBackgroundColorDirection:"backgroundColorDirection",bodyBorderSize:"borderSize",bodyBorderLeftSize:"borderLeftSize",bodyBorderTopSize:"borderTopSize",bodyBorderRightSize:"borderRightSize", bodyBorderBottomSize:"borderBottomSize",bodyBorderColor:"borderColor",bodyBorderLeftColor:"borderLeftColor",bodyBorderTopColor:"borderTopColor",bodyBorderRightColor:"borderRightColor",bodyBorderBottomColor:"borderBottomColor",bodyPaddingLeft:"paddingLeft",bodyPaddingTop:"paddingTop",bodyPaddingRight:"paddingRight",bodyPaddingBottom:"paddingBottom",overflow:"overflow",scrollBarColor:"scrollBarColor",scrollBarWidth:"scrollBarWidth",scrollBarMargin:"scrollBarMargin",scrollBarHorizontalMargin:"scrollBarHorizontalMargin", scrollBarVerticalMargin:"scrollBarVerticalMargin",scrollBarOpacity:"scrollBarOpacity",gap:"gap"};q.Jga=e(q.Kga).keys();q.Lga={layout:"layout",horizontalAlign:"horizontalAlign",verticalAlign:"verticalAlign"};q.aDa=e(q.Lga).keys();q.nha={veilOpacity:"backgroundOpacity",veilColor:"backgroundColor",veilColorRatios:"backgroundColorRatios",veilColorDirection:"backgroundColorDirection"};q.mha=e(q.nha).keys();q.vc=function(){var n={modal:!1,visible:!1,centerX:0,centerY:0,veilShowEffect:void 0,veilHideEffect:void 0}; e.defaults(n,d.vc);for(var r=[].concat(q.Tga,q.kha,q.Nga,q.Jga,q.Pga,q.mha),t=0;tn&&this.set("centerX",t-(r-n));n=this.Ef.xb();r=this.xb();t=this.get("centerY");r=.5*n+t-.5*r;u=this.jl.Gs();v=this.jl.xb();w=Math.min(v,5);n=n-u-w;u=-(u+v-w);r< u?this.set("centerY",t+(u-r)):r>n&&this.set("centerY",t-(r-n))};q.prototype.Va=function(){this.lc(q.Tga,q.Uga,[this.jl],!0,!0);this.lc(q.B1,q.C1,[this.jl],!0,!1);0===this.get("headerHeight")?this.lc(q.B1,q.C1,[this.Xw],!0,!1):this.lc(q.B1,q.C1,[this.jl],!0,!1);this.lc(q.kha,q.lha,[this.SN],!0,!0);this.lc(q.Nga,q.Oga,[this.UE],!0,!0);this.lc(q.Jga,q.Kga,[this.Xw],!0,!0);this.lc(q.aDa,q.Lga,[this.Xw],!0,!1);this.lc(q.Pga,q.Qga,[this.uF],!0,!0);0===this.get("footerHeight")?this.lc(q.Rga,q.Sga,[this.Xw], !0,!1):this.lc(q.Rga,q.Sga,[this.uF],!0,!1);this.B("modal")?(this.lc(q.mha,q.nha,[this.Ef],!0,!0),this.Ef.set("contentOpaque",!0)):(this.Ef.set("backgroundOpacity",0),this.Ef.set("contentOpaque",!1));this.ja({layout:g.uh,horizontalAlign:b.Ge,verticalAlign:b.he});f.prototype.Va.call(this);this.Tn.k_(0)};return q});define("eh",["require","mu","nx"],function(a){var e=a("mu");a=a("nx").define("Window",e,function(){e.call(this)});a.prototype.show=a.prototype.show;a.prototype.hide=a.prototype.hide;return a}); define("mU","require jquery.mod eg ky oH hT cy gi bg oj bF ku md v lo".split(" "),function(a){function e(v){this.source=v;this.width=this.source.get("width");this.height=this.source.get("height");this.url=this.source.get("url");this.mI=this.source.get("grayscale");this.Tv=new q(g.Xk)}var h=a("jquery.mod"),m=a("eg"),k=a("ky"),b=a("oH"),g=a("hT"),d=a("cy"),c=a("gi"),f=a("bg"),l=a("oj"),p=a("bF"),q=a("ku"),n=a("md"),r=a("v"),t=a("lo"),u=t.extend(c,function(){c.call(this);this.IU=this.IU.bind(this);this.Fg= null;this.we=[];this.Hm=[];this.Tb=this.Gb=this.Ad=this.td=100;this.mf=1;this.gx=this.ex=.5;this.Cc=1;this.mj=this.Ri=null;this.uV=!1;this.v3={};this.ZE={};this.ZE.low={};this.ZE.hight={};r.LH()==r.aJ&&(this.ZE.low.transform="translateZ(0)",this.ZE.hight.transform="");this.W=!1;this.Bh="inherit";this.na=h("
").css({position:"absolute",left:0,top:0,right:0,bottom:0,overflow:"hidden"});this.TK=null;this.Ve=t.Ko(this.ea,this)});u.prototype.Ac=function(){return this.na};u.prototype.Gz=function(v){this.Df!= v&&(this.Df=v,this.p2(1),this.Ve())};u.prototype.Mda=function(v){this.Bh!=v&&(this.Bh=v,this.mj&&this.mj.css("cursor",this.Bh),this.Ri&&this.Ri.css("cursor",this.Bh))};u.prototype.VYa=function(v){this.we!=v&&(this.we&&k.ba(this.we,["levels.url"],this.IU),(this.we=v)&&k.fa(this.we,["levels.url"],this.IU,!0))};u.prototype.IU=function(){this.T2();this.Fg=null;this.Ri&&(this.Ri.detach(),this.Ri=null);this.mj&&(this.mj.detach(),this.mj=null);this.gg&&(this.gg=null);this.T2();this.uV=!1;m(this.Hm).each(function(w){w.Tv.cancel(); w.Tv.unbind(b.Z,this.kma,this)},this);var v=(this.we&&this.we.get("levels")||[]).filter(function(w){return w.get("url")});this.Hm=m(v).map(function(w){w=new e(w);w.Tv.bind(b.Z,this.kma,this);return w},this);(v=this.mJa())?(this.Gb=v.width,this.Tb=v.height):this.Tb=this.Gb=100;this.gx=this.ex=.5;this.p2(1);this.Ve()};u.prototype.ND=function(v,w){if(this.td!=v||this.Ad!=w)this.td=v,this.Ad=w,this.Ve()};u.prototype.GYa=function(v,w){if(this.oja!=v||this.nja!=w)this.oja=v,this.nja=w,this.Ve()};u.prototype.nc= function(v){this.W!=v&&(this.W=v,this.Ve())};u.prototype.move=function(v,w){var x=this.mf*this.Cc;this.ex+=v/(this.Gb*x);this.gx+=w/(this.Tb*x);this.VV()};u.prototype.tD=function(){return this.Cc};u.prototype.setScale=function(v){this.p2(Math.max(1,Math.min(1/this.mf,v)));this.Fg&&this.Fg.widththis.Tb*this.td?this.Ad/this.Tb:this.td/this.Gb;break;case n.jBa:v=Math.min(this.oja/this.Gb,this.nja/this.Tb);break;default:v=this.Gb*this.Ad>this.Tb* this.td?this.td/this.Gb:this.Ad/this.Tb}this.tEa(v)};u.prototype.kma=function(){this.Ve()};u.prototype.iHa=function(v){this.mj&&(this.J9(this.mj,1),this.Ri&&this.Ri.detach(),this.Ri=this.mj);this.mj=this.BGa(v);this.J9(this.mj,0);this.na.append(this.mj);this.gg=this.sGa();this.v3={}};u.prototype.tJa=function(){return this.Fg?this.AIa(this.Cc*this.mf*this.Gb):this.SJa()};u.prototype.ira=function(v){m(this.Hm).each(function(w){w==v?w.Tv.wi()!=w.url&&w.Tv.load(w.url):w.Tv.dj()||w.Tv.cancel()})};u.prototype.mJa= function(){return m(this.Hm).reduce(function(v,w){v||(v=w);if(w.width>v.width||w.width==v.width&&!w.mI&&v.mI)v=w;return v},null)};u.prototype.SJa=function(){return m(this.Hm).reduce(function(v,w){v||(v=w);if(w.width=v&&w.width=v&&x.widthw.width||!x.mI&&w.mI)w=x;return w},null)};u.prototype.BGa=function(v){v=h(v.Tv.sf(!0)); v.css({position:"absolute",cursor:this.Bh,"pointer-events":"none"});return v};u.prototype.sGa=function(){return new l("linear",[new p("alpha",0,1)],200)};u.prototype.VV=function(){f.requestFrame(function(v){this.$M(v,"low")},this)};u.prototype.aca=function(){return this.Gb*this.Cc*this.mf};u.prototype.$ba=function(){return this.Tb*this.Cc*this.mf};u.prototype.Eva=function(){var v=this.aca();return v>this.td?Math.max(this.td-v,Math.min(0,.5*this.td-v*this.ex)):.5*(this.td-v)};u.prototype.Fva=function(){var v= this.$ba();return v>this.Ad?Math.max(this.Ad-v,Math.min(0,.5*this.Ad-v*this.gx)):.5*(this.Ad-v)};u.prototype.$M=function(v,w){w=w||"low";var x=this.aca(),y=this.Eva(),A=this.$ba(),B=this.Fva();this.ex=(.5*this.td-y)/x;this.gx=(.5*this.Ad-B)/A;x={left:Math.round(y)+"px",top:Math.round(B)+"px",width:Math.round(x)+"px",height:Math.round(A)+"px",display:"block"};for(var z in this.ZE[w])x[z]=this.ZE[w][z];this.v3!=x&&(this.Ri&&this.Ri.css(x),this.mj&&this.mj.css(x),this.v3=x);this.T2();this.gg?(this.gg.zb(v), this.J9(this.mj,this.gg.cb("alpha")),this.gg.Re()&&(this.gg=null,this.Ri&&this.Ri.detach(),this.Ri=this.mj,this.mj=null),this.VV()):"low"==w&&this.qQa();!this.gg&&this.uV&&(this.uV=!1,this.trigger(new d(b.Z)))};u.prototype.J9=function(v,w){v.css({opacity:w,filter:"alpha(opacity="+Math.round(100*w)+")","-ms-filter":"alpha(opacity="+Math.round(100*w)+")"})};u.prototype.T2=function(){null!=this.TK&&(clearTimeout(this.TK),this.TK=null)};u.prototype.qQa=function(){var v=this;this.TK=setTimeout(function(){v.TK= null;v.$M(50,"hight")},50)};u.prototype.p2=function(v){this.Cc!=v&&(this.Cc=v,this.CRa())};u.prototype.tEa=function(v){this.mf!=v&&(this.mf=v)};u.prototype.CRa=function(){this.trigger(new d(u.RQ,{scale:this.Cc}))};u.RQ="scaleChange";return u}); define("kj","require jquery.mod oH cy mU lo e S".split(" "),function(a){a("jquery.mod");var e=a("oH"),h=a("cy"),m=a("mU"),k=a("lo"),b=a("e"),g=a("S"),d=k.extend(b,function(){b.call(this);this.Be("ZoomImage");this.$u=this.Vm=void 0;this.xk=!1;this.Ipa=void 0;this.Lla=this.Cc;this.rO=null;this.j=new m;this.j.bind(e.Z,this.FMa,this);this.j.bind(m.RQ,this.GMa,this);this.Bb().append(this.j.Ac());this.bind(e.kc,this.hc,this,!0);this.bind(e.kd,this.rk,this,!0);this.bind(e.sd,this.lk,this,!0);this.bind(e.ub, this.Od,this,!0);this.bind(e.jc,this.vj,this,!0);this.bind(e.Zb,this.wj,this,!0);this.bind(e.ar,this.UB,this,!0);this.bind(e.lE,this.rB,this,!0)});d.prototype.set=function(c,f){switch(c){case "scale":this.j.setScale(f);f=this.j.tD();break;case "imageLeft":case "imageTop":case "imageWidth":case "imageHeight":return}b.prototype.set.call(this,c,f)};d.prototype.get=function(c,f){switch(c){case "scale":return this.j.tD();case "imageLeft":return this.j.Eva();case "imageTop":return this.j.Fva();case "imageWidth":return this.j.aca(); case "imageHeight":return this.j.$ba()}return b.prototype.get.call(this,c,f)};d.prototype.nb=function(){b.prototype.nb.call(this);this.h("image");this.h("scaleMode");this.h("customHeight");this.h("customWidth");this.h("imageCursor");this.h("imageLeft");this.h("imageTop");this.h("imageWidth");this.h("imageHeight")};d.prototype.Va=function(){this.I("scaleMode")&&(this.j.Gz(this.B("scaleMode")),this.P("scaleMode"));this.I("image")&&(this.j.VYa(this.B("image")),this.P("image"),this.Lla=this.Cc);if(this.I("customHeight")|| this.I("customWidth"))this.P("customHeight"),this.P("customWidth"),this.hc();this.I("imageCursor")&&(this.P("imageCursor"),this.j.Mda(this.fb.L3.vva(this.get("imageCursor"))));b.prototype.Va.call(this)};d.prototype.hc=function(){var c=this.Xa(),f=this.xb(),l=this.get("customWidth","100%"),p=g.Lo(l);l=void 0!==p?c*p/100:l;p=this.get("customHeight","100%");var q=g.Lo(p);this.j.GYa(l,void 0!==q?f*q/100:p);this.j.ND(c,f)};d.prototype.rk=function(){this.j.nc(!0)};d.prototype.lk=function(){this.j.nc(!1)}; d.prototype.Od=function(c){this.Vm=c.x;this.$u=c.y;this.xk=!0;this.Ipa=this.j.Vwa(c)};d.prototype.vj=function(c){this.xk&&(this.Kaa(),this.j.move(-(c.x-this.Vm),-(c.y-this.$u)),this.Vm=c.x,this.$u=c.y)};d.prototype.wj=function(c){this.xk=!1;this.Ipa||this.j.Vwa(c)||this.trigger(new h(d.sBa))};d.prototype.UB=function(c){this.Kaa();this.j.setScale((1+c.delta/20)*this.j.tD())};d.prototype.rB=function(c){this.Kaa();this.j.setScale(c.scale/this.Lla)};d.prototype.FMa=function(){this.trigger(new h(e.Z))}; d.prototype.GMa=function(){b.prototype.set.call(this,"scale",this.j.tD());this.trigger(new h(d.RQ))};d.prototype.Kaa=function(){this.rO?(clearTimeout(this.rO),this.rO=null):this.trigger(new h(d.Gi));this.rO=setTimeout(function(){this.rO=null;this.trigger(new h(d.Fi))}.bind(this),300)};d.sBa="backgroundClick";d.RQ="scaleChange";d.Gi="userInteractionStart";d.Fi="userInteractionEnd";return d});define("nM",["require","kj","nx"],function(a){var e=a("kj");return a("nx").define("ZoomImage",e,function(){e.call(this)})}); define("iZ","require nx jj hV nF eq ec eP og jB jl ge fN hN k ji jY lO op hi ie kT gM fF do bB jK nB jE kF my fz q jf dV eb ox mM cT jJ ng ij lV he O cL u lD gg Y ke bx bl nf oa iX fe lZ lA jb bL cG oh jr nc kX R pi fY E en iO fD be fV fk gO iy bH oX ph ff jM ml iv p dH kw mm ix ee eZ pf hm kM eX mp bN lw iu bj oV gh om cA cB ls oG ju gA kc gT lC no hJ km kD oY ey iC nl eO ih T oI dN gt bG iK fu ba kl eT mA lE fj gF eQ ck im nN mc fw on bt nS gP fl gu dm mN co hP mL jZ hr bX jn dy bO jV jw ov fL gY cf hO li gv eu hv du bz cn eh nM".split(" "), function(a){a("nx");a("jj");a("hV");a("nF");a("eq");a("ec");a("eP");a("og");a("jB");a("jl");a("ge");a("fN");a("hN");a("k");a("ji");a("jY");a("lO");a("op");a("hi");a("ie");a("kT");a("gM");a("fF");a("do");a("bB");a("jK");a("nB");a("jE");a("kF");a("my");a("fz");a("q");a("jf");a("dV");a("eb");a("ox");a("mM");a("cT");a("jJ");a("ng");a("ij");a("lV");a("he");a("O");a("cL");a("u");a("lD");a("gg");a("Y");a("ke");a("bx");a("bl");a("nf");a("oa");a("iX");a("fe");a("lZ");a("lA");a("jb");a("bL");a("cG");a("oh"); a("jr");a("nc");a("kX");a("R");a("pi");a("fY");a("E");a("en");a("iO");a("fD");a("be");a("fV");a("fk");a("gO");a("iy");a("bH");a("oX");a("ph");a("ff");a("jM");a("ml");a("iv");a("p");a("dH");a("kw");a("mm");a("ix");a("ee");a("eZ");a("pf");a("hm");a("kM");a("eX");a("mp");a("bN");a("lw");a("iu");a("bj");a("oV");a("gh");a("om");a("cA");a("cB");a("ls");a("oG");a("ju");a("gA");a("kc");a("gT");a("lC");a("no");a("hJ");a("km");a("kD");a("oY");a("ey");a("iC");a("nl");a("eO");a("ih");a("T");a("oI");a("dN");a("gt"); a("bG");a("iK");a("fu");a("ba");a("kl");a("eT");a("mA");a("lE");a("fj");a("gF");a("eQ");a("ck");a("im");a("nN");a("mc");a("fw");a("on");a("bt");a("nS");a("gP");a("fl");a("gu");a("dm");a("mN");a("co");a("hP");a("mL");a("jZ");a("hr");a("bX");a("jn");a("dy");a("bO");a("jV");a("jw");a("ov");a("fL");a("gY");a("cf");a("hO");a("li");a("gv");a("eu");a("hv");a("du");a("bz");a("cn");a("eh");a("nM");return!0}); define("go","require eg jquery.mod lo nx bW iZ mj".split(" "),function(a){function e(n,r){this.type=n;this.stack=r}function h(){}var m=a("eg"),k=a("jquery.mod"),b=a("lo"),g=a("nx"),d=a("bW");a("iZ");a("mj");h.prototype.CXa=function(n,r,t,u){this.x4=[];this.Fy=this.GG(n);this.DB=void 0;this.Fy.zs.Iva()?(this.Maa=d.validate(n),this.DB=this.ska(this.Fy,c.TYPE),this.EGa(this.DB,this.Fy,r,t,u),this.oEa(this.Fy),this.mEa(this.Fy,this.DB),this.pEa(this.DB,this.Fy),this.HEa(this.DB,this.Fy)):this.Fn("Invalid root class", []);return 0==this.x4.length};h.prototype.Jb=function(){return this.Fy.instance};h.prototype.GG=function(n,r){r=r||[];return m(n).isArray()?this.KNa(n,r):k.isPlainObject(n)&&n["class"]?this.NNa(n,r):k.isPlainObject(n)?this.LNa(n,r):m(n).isFunction()?this.MNa(n,r):this.ONa(n,r)};h.prototype.KNa=function(n,r){for(var t=[],u=0;u> ")+": "+n)};e.prototype.Kb=function(){return[]};e.prototype.Ps=function(){};var c=b.extend(e,function(n,r,t,u,v,w){e.call(this,c.TYPE,n);this.zs=r;this.id=t;this.attributes=u;this.lD=v;this.scripts=w;this.instance=null});c.prototype.Kb=function(){var n=this.zs.Sva(),r=[],t=m(this.attributes).clone();if(n)for(var u=0;uv||(t={},this.oS.splice(v,1),u.Jea(),u.dispose&&u.dispose())};e.prototype.gla=function(){for(var u=this.Al.x4,v=["Errors parsing script file:"],w=0;w>8&255]+Pe[t>>16&255]+Pe[t>>24&255]+"-"+Pe[255&e]+Pe[e>>8&255]+"-"+Pe[e>>16&15|64]+Pe[e>>24&255]+"-"+Pe[63&n|128]+Pe[n>>8&255]+"-"+Pe[n>>16&255]+Pe[n>>24&255]+Pe[255&i]+Pe[i>>8&255]+Pe[i>>16&255]+Pe[i>>24&255]).toLowerCase()}function Ne(t,e,n){return Math.max(e,Math.min(n,t))}function Oe(t,e){return(t%e+e)%e}function ze(t,e,n){return(1-n)*t+n*e}function Be(t){return 0==(t&t-1)&&0!==t}function Fe(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}function ke(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}function Ge(t,e){switch(e.constructor){case Float32Array:return t;case Uint16Array:return t/65535;case Uint8Array:return t/255;case Int16Array:return Math.max(t/32767,-1);case Int8Array:return Math.max(t/127,-1);default:throw new Error("Invalid component type.");}}function Ve(t,e){switch(e.constructor){case Float32Array:return t;case Uint16Array:return Math.round(65535*t);case Uint8Array:return Math.round(255*t);case Int16Array:return Math.round(32767*t);case Int8Array:return Math.round(127*t);default:throw new Error("Invalid component type.");}}const He={DEG2RAD:Ie,RAD2DEG:De,generateUUID:Ue,clamp:Ne,euclideanModulo:Oe,mapLinear:function(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)},inverseLerp:function(t,e,n){return t!==e?(n-t)/(e-t):0},lerp:ze,damp:function(t,e,n,i){return ze(t,e,1-Math.exp(-n*i))},pingpong:function(t,e=1){return e-Math.abs(Oe(t,2*e)-e)},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},seededRandom:function(t){void 0!==t&&(Re=t);let e=Re+=1831565813;return e=Math.imul(e^e>>>15,1|e),e^=e+Math.imul(e^e>>>7,61|e),((e^e>>>14)>>>0)/4294967296},degToRad:function(t){return t*Ie},radToDeg:function(t){return t*De},isPowerOfTwo:Be,ceilPowerOfTwo:Fe,floorPowerOfTwo:ke,setQuaternionFromProperEuler:function(t,e,n,i,r){const s=Math.cos,a=Math.sin,o=s(n/2),l=a(n/2),c=s((e+i)/2),h=a((e+i)/2),u=s((e-i)/2),d=a((e-i)/2),p=s((i-e)/2),m=a((i-e)/2);switch(r){case"XYX":t.set(o*h,l*u,l*d,o*c);break;case"YZY":t.set(l*d,o*h,l*u,o*c);break;case"ZXZ":t.set(l*u,l*d,o*h,o*c);break;case"XZX":t.set(o*h,l*m,l*p,o*c);break;case"YXY":t.set(l*p,o*h,l*m,o*c);break;case"ZYZ":t.set(l*m,l*p,o*h,o*c);break;default:console.warn("THREE.MathUtils: .setQuaternionFromProperEuler() encountered an unknown order: "+r);}},normalize:Ve,denormalize:Ge};class We{constructor(t=0,e=0){We.prototype.isVector2=!0,this.x=t,this.y=e}get width(){return this.x}set width(t){this.x=t}get height(){return this.y}set height(t){this.y=t}set(t,e){return this.x=t,this.y=e,this}setScalar(t){return this.x=t,this.y=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t);}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t);}}clone(){return new this.constructor(this.x,this.y)}copy(t){return this.x=t.x,this.y=t.y,this}add(t){return this.x+=t.x,this.y+=t.y,this}addScalar(t){return this.x+=t,this.y+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this}subScalar(t){return this.x-=t,this.y-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this}multiply(t){return this.x*=t.x,this.y*=t.y,this}multiplyScalar(t){return this.x*=t,this.y*=t,this}divide(t){return this.x/=t.x,this.y/=t.y,this}divideScalar(t){return this.multiplyScalar(1/t)}applyMatrix3(t){const e=this.x,n=this.y,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6],this.y=i[1]*e+i[4]*n+i[7],this}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this}negate(){return this.x=-this.x,this.y=-this.y,this}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-this.y*t.x}lengthSq(){return this.x*this.x+this.y*this.y}length(){return Math.sqrt(this.x*this.x+this.y*this.y)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)}normalize(){return this.divideScalar(this.length()||1)}angle(){return Math.atan2(-this.y,-this.x)+Math.PI}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(Ne(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y;return e*e+n*n}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this}equals(t){return t.x===this.x&&t.y===this.y}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this}rotateAround(t,e){const n=Math.cos(e),i=Math.sin(e),r=this.x-t.x,s=this.y-t.y;return this.x=r*n-s*i+t.x,this.y=r*i+s*n+t.y,this}random(){return this.x=Math.random(),this.y=Math.random(),this}*[Symbol.iterator](){yield this.x,yield this.y}}class je{constructor(){je.prototype.isMatrix3=!0,this.elements=[1,0,0,0,1,0,0,0,1]}set(t,e,n,i,r,s,a,o,l){const c=this.elements;return c[0]=t,c[1]=i,c[2]=a,c[3]=e,c[4]=r,c[5]=o,c[6]=n,c[7]=s,c[8]=l,this}identity(){return this.set(1,0,0,0,1,0,0,0,1),this}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this}extractBasis(t,e,n){return t.setFromMatrix3Column(this,0),e.setFromMatrix3Column(this,1),n.setFromMatrix3Column(this,2),this}setFromMatrix4(t){const e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,i=e.elements,r=this.elements,s=n[0],a=n[3],o=n[6],l=n[1],c=n[4],h=n[7],u=n[2],d=n[5],p=n[8],m=i[0],f=i[3],g=i[6],v=i[1],_=i[4],x=i[7],y=i[2],M=i[5],S=i[8];return r[0]=s*m+a*v+o*y,r[3]=s*f+a*_+o*M,r[6]=s*g+a*x+o*S,r[1]=l*m+c*v+h*y,r[4]=l*f+c*_+h*M,r[7]=l*g+c*x+h*S,r[2]=u*m+d*v+p*y,r[5]=u*f+d*_+p*M,r[8]=u*g+d*x+p*S,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8];return e*s*c-e*a*l-n*r*c+n*a*o+i*r*l-i*s*o}invert(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8],h=c*s-a*l,u=a*o-c*r,d=l*r-s*o,p=e*h+n*u+i*d;if(0===p)return this.set(0,0,0,0,0,0,0,0,0);const m=1/p;return t[0]=h*m,t[1]=(i*l-c*n)*m,t[2]=(a*n-i*s)*m,t[3]=u*m,t[4]=(c*e-i*o)*m,t[5]=(i*r-a*e)*m,t[6]=d*m,t[7]=(n*o-l*e)*m,t[8]=(s*e-n*r)*m,this}transpose(){let t;const e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this}getNormalMatrix(t){return this.setFromMatrix4(t).invert().transpose()}transposeIntoArray(t){const e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this}setUvTransform(t,e,n,i,r,s,a){const o=Math.cos(r),l=Math.sin(r);return this.set(n*o,n*l,-n*(o*s+l*a)+s+t,-i*l,i*o,-i*(-l*s+o*a)+a+e,0,0,1),this}scale(t,e){return this.premultiply(qe.makeScale(t,e)),this}rotate(t){return this.premultiply(qe.makeRotation(-t)),this}translate(t,e){return this.premultiply(qe.makeTranslation(t,e)),this}makeTranslation(t,e){return this.set(1,0,t,0,1,e,0,0,1),this}makeRotation(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,n,e,0,0,0,1),this}makeScale(t,e){return this.set(t,0,0,0,e,0,0,0,1),this}equals(t){const e=this.elements,n=t.elements;for(let t=0;t<9;t++)if(e[t]!==n[t])return!1;return!0}fromArray(t,e=0){for(let n=0;n<9;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}clone(){return new this.constructor().fromArray(this.elements)}}const qe=new je;function Xe(t){for(let e=t.length-1;e>=0;--e)if(t[e]>=65535)return!0;return!1}const Ye={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:Uint8ClampedArray,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function Ze(t,e){return new Ye[t](e)}function Je(t){return document.createElementNS("http://www.w3.org/1999/xhtml",t)}function Ke(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}function $e(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}const Qe=new je().fromArray([.8224621,.0331941,.0170827,.177538,.9668058,.0723974,-1e-7,1e-7,.9105199]),tn=new je().fromArray([1.2249401,-.0420569,-.0196376,-.2249404,1.0420571,-.0786361,1e-7,0,1.0982735]);const en={[be]:t=>t,[Se]:t=>t.convertSRGBToLinear(),[we]:function(t){return t.convertSRGBToLinear().applyMatrix3(tn)}},nn={[be]:t=>t,[Se]:t=>t.convertLinearToSRGB(),[we]:function(t){return t.applyMatrix3(Qe).convertLinearToSRGB()}},rn={enabled:!1,get legacyMode(){return console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),!this.enabled},set legacyMode(t){console.warn("THREE.ColorManagement: .legacyMode=false renamed to .enabled=true in r150."),this.enabled=!t},get workingColorSpace(){return be},set workingColorSpace(t){console.warn("THREE.ColorManagement: .workingColorSpace is readonly.")},convert:function(t,e,n){if(!1===this.enabled||e===n||!e||!n)return t;const i=en[e],r=nn[n];if(void 0===i||void 0===r)throw new Error(`Unsupported color space conversion, "${e}" to "${n}".`);return r(i(t))},fromWorkingColorSpace:function(t,e){return this.convert(t,this.workingColorSpace,e)},toWorkingColorSpace:function(t,e){return this.convert(t,e,this.workingColorSpace)}};let sn;class an{static getDataURL(t){if(/^data:/i.test(t.src))return t.src;if("undefined"==typeof HTMLCanvasElement)return t.src;let e;if(t instanceof HTMLCanvasElement)e=t;else{void 0===sn&&(sn=Je("canvas")),sn.width=t.width,sn.height=t.height;const n=sn.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=sn}return e.width>2048||e.height>2048?(console.warn("THREE.ImageUtils.getDataURL: Image converted to jpg for performance reasons",t),e.toDataURL("image/jpeg",.6)):e.toDataURL("image/png")}static sRGBToLinear(t){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const e=Je("canvas");e.width=t.width,e.height=t.height;const n=e.getContext("2d");n.drawImage(t,0,0,t.width,t.height);const i=n.getImageData(0,0,t.width,t.height),r=i.data;for(let t=0;t0&&(n.userData=this.userData),e||(t.textures[this.uuid]=n),n}dispose(){this.dispatchEvent({type:"dispose"})}transformUv(t){if(this.mapping!==J)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case nt:t.x=t.x-Math.floor(t.x);break;case it:t.x=t.x<0?0:1;break;case rt:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x);}if(t.y<0||t.y>1)switch(this.wrapT){case nt:t.y=t.y-Math.floor(t.y);break;case it:t.y=t.y<0?0:1;break;case rt:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y);}return this.flipY&&(t.y=1-t.y),t}set needsUpdate(t){!0===t&&(this.version++,this.source.needsUpdate=!0)}}hn.DEFAULT_IMAGE=null,hn.DEFAULT_MAPPING=J,hn.DEFAULT_ANISOTROPY=1;class un{constructor(t=0,e=0,n=0,i=1){un.prototype.isVector4=!0,this.x=t,this.y=e,this.z=n,this.w=i}get width(){return this.z}set width(t){this.z=t}get height(){return this.w}set height(t){this.w=t}set(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this.w=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setW(t){return this.w=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t);}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t);}}clone(){return new this.constructor(this.x,this.y,this.z,this.w)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this.w*=t.w,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this}applyMatrix4(t){const e=this.x,n=this.y,i=this.z,r=this.w,s=t.elements;return this.x=s[0]*e+s[4]*n+s[8]*i+s[12]*r,this.y=s[1]*e+s[5]*n+s[9]*i+s[13]*r,this.z=s[2]*e+s[6]*n+s[10]*i+s[14]*r,this.w=s[3]*e+s[7]*n+s[11]*i+s[15]*r,this}divideScalar(t){return this.multiplyScalar(1/t)}setAxisAngleFromQuaternion(t){this.w=2*Math.acos(t.w);const e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this}setAxisAngleFromRotationMatrix(t){let e,n,i,r;const s=.01,a=.1,o=t.elements,l=o[0],c=o[4],h=o[8],u=o[1],d=o[5],p=o[9],m=o[2],f=o[6],g=o[10];if(Math.abs(c-u)o&&t>v?tv?o=0?1:-1,i=1-e*e;if(i>Number.EPSILON){const r=Math.sqrt(i),s=Math.atan2(r,e*n);t=Math.sin(t*s)/r,a=Math.sin(a*s)/r}const r=a*n;if(o=o*t+u*r,l=l*t+d*r,c=c*t+p*r,h=h*t+m*r,t===1-a){const t=1/Math.sqrt(o*o+l*l+c*c+h*h);o*=t,l*=t,c*=t,h*=t}}t[e]=o,t[e+1]=l,t[e+2]=c,t[e+3]=h}static multiplyQuaternionsFlat(t,e,n,i,r,s){const a=n[i],o=n[i+1],l=n[i+2],c=n[i+3],h=r[s],u=r[s+1],d=r[s+2],p=r[s+3];return t[e]=a*p+c*h+o*d-l*u,t[e+1]=o*p+c*u+l*h-a*d,t[e+2]=l*p+c*d+a*u-o*h,t[e+3]=c*p-a*h-o*u-l*d,t}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get w(){return this._w}set w(t){this._w=t,this._onChangeCallback()}set(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._w=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._w)}copy(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this._onChangeCallback(),this}setFromEuler(t,e){const n=t._x,i=t._y,r=t._z,s=t._order,a=Math.cos,o=Math.sin,l=a(n/2),c=a(i/2),h=a(r/2),u=o(n/2),d=o(i/2),p=o(r/2);switch(s){case"XYZ":this._x=u*c*h+l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h-u*d*p;break;case"YXZ":this._x=u*c*h+l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h+u*d*p;break;case"ZXY":this._x=u*c*h-l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h-u*d*p;break;case"ZYX":this._x=u*c*h-l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h+u*d*p;break;case"YZX":this._x=u*c*h+l*d*p,this._y=l*d*h+u*c*p,this._z=l*c*p-u*d*h,this._w=l*c*h-u*d*p;break;case"XZY":this._x=u*c*h-l*d*p,this._y=l*d*h-u*c*p,this._z=l*c*p+u*d*h,this._w=l*c*h+u*d*p;break;default:console.warn("THREE.Quaternion: .setFromEuler() encountered an unknown order: "+s);}return!1!==e&&this._onChangeCallback(),this}setFromAxisAngle(t,e){const n=e/2,i=Math.sin(n);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(n),this._onChangeCallback(),this}setFromRotationMatrix(t){const e=t.elements,n=e[0],i=e[4],r=e[8],s=e[1],a=e[5],o=e[9],l=e[2],c=e[6],h=e[10],u=n+a+h;if(u>0){const t=.5/Math.sqrt(u+1);this._w=.25/t,this._x=(c-o)*t,this._y=(r-l)*t,this._z=(s-i)*t}else if(n>a&&n>h){const t=2*Math.sqrt(1+n-a-h);this._w=(c-o)/t,this._x=.25*t,this._y=(i+s)/t,this._z=(r+l)/t}else if(a>h){const t=2*Math.sqrt(1+a-n-h);this._w=(r-l)/t,this._x=(i+s)/t,this._y=.25*t,this._z=(o+c)/t}else{const t=2*Math.sqrt(1+h-n-a);this._w=(s-i)/t,this._x=(r+l)/t,this._y=(o+c)/t,this._z=.25*t}return this._onChangeCallback(),this}setFromUnitVectors(t,e){let n=t.dot(e)+1;return nMath.abs(t.z)?(this._x=-t.y,this._y=t.x,this._z=0,this._w=n):(this._x=0,this._y=-t.z,this._z=t.y,this._w=n)):(this._x=t.y*e.z-t.z*e.y,this._y=t.z*e.x-t.x*e.z,this._z=t.x*e.y-t.y*e.x,this._w=n),this.normalize()}angleTo(t){return 2*Math.acos(Math.abs(Ne(this.dot(t),-1,1)))}rotateTowards(t,e){const n=this.angleTo(t);if(0===n)return this;const i=Math.min(1,e/n);return this.slerp(t,i),this}identity(){return this.set(0,0,0,1)}invert(){return this.conjugate()}conjugate(){return this._x*=-1,this._y*=-1,this._z*=-1,this._onChangeCallback(),this}dot(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w}lengthSq(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w}length(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)}normalize(){let t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this._onChangeCallback(),this}multiply(t){return this.multiplyQuaternions(this,t)}premultiply(t){return this.multiplyQuaternions(t,this)}multiplyQuaternions(t,e){const n=t._x,i=t._y,r=t._z,s=t._w,a=e._x,o=e._y,l=e._z,c=e._w;return this._x=n*c+s*a+i*l-r*o,this._y=i*c+s*o+r*a-n*l,this._z=r*c+s*l+n*o-i*a,this._w=s*c-n*a-i*o-r*l,this._onChangeCallback(),this}slerp(t,e){if(0===e)return this;if(1===e)return this.copy(t);const n=this._x,i=this._y,r=this._z,s=this._w;let a=s*t._w+n*t._x+i*t._y+r*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=s,this._x=n,this._y=i,this._z=r,this;const o=1-a*a;if(o<=Number.EPSILON){const t=1-e;return this._w=t*s+e*this._w,this._x=t*n+e*this._x,this._y=t*i+e*this._y,this._z=t*r+e*this._z,this.normalize(),this._onChangeCallback(),this}const l=Math.sqrt(o),c=Math.atan2(l,a),h=Math.sin((1-e)*c)/l,u=Math.sin(e*c)/l;return this._w=s*h+this._w*u,this._x=n*h+this._x*u,this._y=i*h+this._y*u,this._z=r*h+this._z*u,this._onChangeCallback(),this}slerpQuaternions(t,e,n){return this.copy(t).slerp(e,n)}random(){const t=Math.random(),e=Math.sqrt(1-t),n=Math.sqrt(t),i=2*Math.PI*Math.random(),r=2*Math.PI*Math.random();return this.set(e*Math.cos(i),n*Math.sin(r),n*Math.cos(r),e*Math.sin(i))}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w}fromArray(t,e=0){return this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t}fromBufferAttribute(t,e){return this._x=t.getX(e),this._y=t.getY(e),this._z=t.getZ(e),this._w=t.getW(e),this}toJSON(){return this.toArray()}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._w}}class gn{constructor(t=0,e=0,n=0){gn.prototype.isVector3=!0,this.x=t,this.y=e,this.z=n}set(t,e,n){return void 0===n&&(n=this.z),this.x=t,this.y=e,this.z=n,this}setScalar(t){return this.x=t,this.y=t,this.z=t,this}setX(t){return this.x=t,this}setY(t){return this.y=t,this}setZ(t){return this.z=t,this}setComponent(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t);}return this}getComponent(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t);}}clone(){return new this.constructor(this.x,this.y,this.z)}copy(t){return this.x=t.x,this.y=t.y,this.z=t.z,this}add(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z,this}addScalar(t){return this.x+=t,this.y+=t,this.z+=t,this}addVectors(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this}addScaledVector(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this}sub(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z,this}subScalar(t){return this.x-=t,this.y-=t,this.z-=t,this}subVectors(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this}multiply(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z,this}multiplyScalar(t){return this.x*=t,this.y*=t,this.z*=t,this}multiplyVectors(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this}applyEuler(t){return this.applyQuaternion(_n.setFromEuler(t))}applyAxisAngle(t,e){return this.applyQuaternion(_n.setFromAxisAngle(t,e))}applyMatrix3(t){const e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6]*i,this.y=r[1]*e+r[4]*n+r[7]*i,this.z=r[2]*e+r[5]*n+r[8]*i,this}applyNormalMatrix(t){return this.applyMatrix3(t).normalize()}applyMatrix4(t){const e=this.x,n=this.y,i=this.z,r=t.elements,s=1/(r[3]*e+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*e+r[4]*n+r[8]*i+r[12])*s,this.y=(r[1]*e+r[5]*n+r[9]*i+r[13])*s,this.z=(r[2]*e+r[6]*n+r[10]*i+r[14])*s,this}applyQuaternion(t){const e=this.x,n=this.y,i=this.z,r=t.x,s=t.y,a=t.z,o=t.w,l=o*e+s*i-a*n,c=o*n+a*e-r*i,h=o*i+r*n-s*e,u=-r*e-s*n-a*i;return this.x=l*o+u*-r+c*-a-h*-s,this.y=c*o+u*-s+h*-r-l*-a,this.z=h*o+u*-a+l*-s-c*-r,this}project(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)}unproject(t){return this.applyMatrix4(t.projectionMatrixInverse).applyMatrix4(t.matrixWorld)}transformDirection(t){const e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[4]*n+r[8]*i,this.y=r[1]*e+r[5]*n+r[9]*i,this.z=r[2]*e+r[6]*n+r[10]*i,this.normalize()}divide(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this}divideScalar(t){return this.multiplyScalar(1/t)}min(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this}max(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this}clamp(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this}clampScalar(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this.z=Math.max(t,Math.min(e,this.z)),this}clampLength(t,e){const n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))}floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this}ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this}round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this}roundToZero(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this}negate(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this}dot(t){return this.x*t.x+this.y*t.y+this.z*t.z}lengthSq(){return this.x*this.x+this.y*this.y+this.z*this.z}length(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)}manhattanLength(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)}normalize(){return this.divideScalar(this.length()||1)}setLength(t){return this.normalize().multiplyScalar(t)}lerp(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this}lerpVectors(t,e,n){return this.x=t.x+(e.x-t.x)*n,this.y=t.y+(e.y-t.y)*n,this.z=t.z+(e.z-t.z)*n,this}cross(t){return this.crossVectors(this,t)}crossVectors(t,e){const n=t.x,i=t.y,r=t.z,s=e.x,a=e.y,o=e.z;return this.x=i*o-r*a,this.y=r*s-n*o,this.z=n*a-i*s,this}projectOnVector(t){const e=t.lengthSq();if(0===e)return this.set(0,0,0);const n=t.dot(this)/e;return this.copy(t).multiplyScalar(n)}projectOnPlane(t){return vn.copy(this).projectOnVector(t),this.sub(vn)}reflect(t){return this.sub(vn.copy(t).multiplyScalar(2*this.dot(t)))}angleTo(t){const e=Math.sqrt(this.lengthSq()*t.lengthSq());if(0===e)return Math.PI/2;const n=this.dot(t)/e;return Math.acos(Ne(n,-1,1))}distanceTo(t){return Math.sqrt(this.distanceToSquared(t))}distanceToSquared(t){const e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return e*e+n*n+i*i}manhattanDistanceTo(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)}setFromSpherical(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)}setFromSphericalCoords(t,e,n){const i=Math.sin(e)*t;return this.x=i*Math.sin(n),this.y=Math.cos(e)*t,this.z=i*Math.cos(n),this}setFromCylindrical(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)}setFromCylindricalCoords(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this}setFromMatrixPosition(t){const e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this}setFromMatrixScale(t){const e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=i,this}setFromMatrixColumn(t,e){return this.fromArray(t.elements,4*e)}setFromMatrix3Column(t,e){return this.fromArray(t.elements,3*e)}setFromEuler(t){return this.x=t._x,this.y=t._y,this.z=t._z,this}setFromColor(t){return this.x=t.r,this.y=t.g,this.z=t.b,this}equals(t){return t.x===this.x&&t.y===this.y&&t.z===this.z}fromArray(t,e=0){return this.x=t[e],this.y=t[e+1],this.z=t[e+2],this}toArray(t=[],e=0){return t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t}fromBufferAttribute(t,e){return this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}random(){return this.x=Math.random(),this.y=Math.random(),this.z=Math.random(),this}randomDirection(){const t=2*(Math.random()-.5),e=Math.random()*Math.PI*2,n=Math.sqrt(1-t**2);return this.x=n*Math.cos(e),this.y=n*Math.sin(e),this.z=t,this}*[Symbol.iterator](){yield this.x,yield this.y,yield this.z}}const vn=new gn,_n=new fn;class xn{constructor(t=new gn(1/0,1/0,1/0),e=new gn(-1/0,-1/0,-1/0)){this.isBox3=!0,this.min=t,this.max=e}set(t,e){return this.min.copy(t),this.max.copy(e),this}setFromArray(t){this.makeEmpty();for(let e=0,n=t.length;ethis.max.x||t.ythis.max.y||t.zthis.max.z)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))}intersectsBox(t){return!(t.max.xthis.max.x||t.max.ythis.max.y||t.max.zthis.max.z)}intersectsSphere(t){return this.clampPoint(t.center,Mn),Mn.distanceToSquared(t.center)<=t.radius*t.radius}intersectsPlane(t){let e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant}intersectsTriangle(t){if(this.isEmpty())return!1;this.getCenter(Ln),Pn.subVectors(this.max,Ln),bn.subVectors(t.a,Ln),wn.subVectors(t.b,Ln),Tn.subVectors(t.c,Ln),En.subVectors(wn,bn),An.subVectors(Tn,wn),Cn.subVectors(bn,Tn);let e=[0,-En.z,En.y,0,-An.z,An.y,0,-Cn.z,Cn.y,En.z,0,-En.x,An.z,0,-An.x,Cn.z,0,-Cn.x,-En.y,En.x,0,-An.y,An.x,0,-Cn.y,Cn.x,0];return!!Dn(e,bn,wn,Tn,Pn)&&(e=[1,0,0,0,1,0,0,0,1],!!Dn(e,bn,wn,Tn,Pn)&&(Rn.crossVectors(En,An),e=[Rn.x,Rn.y,Rn.z],Dn(e,bn,wn,Tn,Pn)))}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,Mn).distanceTo(t)}getBoundingSphere(t){return this.isEmpty()?t.makeEmpty():(this.getCenter(t.center),t.radius=.5*this.getSize(Mn).length()),t}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}applyMatrix4(t){return this.isEmpty()||(yn[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),yn[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),yn[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),yn[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),yn[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),yn[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),yn[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),yn[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(yn)),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}const yn=[new gn,new gn,new gn,new gn,new gn,new gn,new gn,new gn],Mn=new gn,Sn=new xn,bn=new gn,wn=new gn,Tn=new gn,En=new gn,An=new gn,Cn=new gn,Ln=new gn,Pn=new gn,Rn=new gn,In=new gn;function Dn(t,e,n,i,r){for(let s=0,a=t.length-3;s<=a;s+=3){In.fromArray(t,s);const a=r.x*Math.abs(In.x)+r.y*Math.abs(In.y)+r.z*Math.abs(In.z),o=e.dot(In),l=n.dot(In),c=i.dot(In);if(Math.max(-Math.max(o,l,c),Math.min(o,l,c))>a)return!1}return!0}const Un=new xn,Nn=new gn,On=new gn;class zn{constructor(t=new gn,e=-1){this.center=t,this.radius=e}set(t,e){return this.center.copy(t),this.radius=e,this}setFromPoints(t,e){const n=this.center;void 0!==e?n.copy(e):Un.setFromPoints(t).getCenter(n);let i=0;for(let e=0,r=t.length;ethis.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e}getBoundingBox(t){return this.isEmpty()?(t.makeEmpty(),t):(t.set(this.center,this.center),t.expandByScalar(this.radius),t)}applyMatrix4(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this}translate(t){return this.center.add(t),this}expandByPoint(t){if(this.isEmpty())return this.center.copy(t),this.radius=0,this;Nn.subVectors(t,this.center);const e=Nn.lengthSq();if(e>this.radius*this.radius){const t=Math.sqrt(e),n=.5*(t-this.radius);this.center.addScaledVector(Nn,n/t),this.radius+=n}return this}union(t){return t.isEmpty()?this:this.isEmpty()?(this.copy(t),this):(!0===this.center.equals(t.center)?this.radius=Math.max(this.radius,t.radius):(On.subVectors(t.center,this.center).setLength(t.radius),this.expandByPoint(Nn.copy(t.center).add(On)),this.expandByPoint(Nn.copy(t.center).sub(On))),this)}equals(t){return t.center.equals(this.center)&&t.radius===this.radius}clone(){return new this.constructor().copy(this)}}const Bn=new gn,Fn=new gn,kn=new gn,Gn=new gn,Vn=new gn,Hn=new gn,Wn=new gn;class jn{constructor(t=new gn,e=new gn(0,0,-1)){this.origin=t,this.direction=e}set(t,e){return this.origin.copy(t),this.direction.copy(e),this}copy(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this}at(t,e){return e.copy(this.origin).addScaledVector(this.direction,t)}lookAt(t){return this.direction.copy(t).sub(this.origin).normalize(),this}recast(t){return this.origin.copy(this.at(t,Bn)),this}closestPointToPoint(t,e){e.subVectors(t,this.origin);const n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.origin).addScaledVector(this.direction,n)}distanceToPoint(t){return Math.sqrt(this.distanceSqToPoint(t))}distanceSqToPoint(t){const e=Bn.subVectors(t,this.origin).dot(this.direction);return e<0?this.origin.distanceToSquared(t):(Bn.copy(this.origin).addScaledVector(this.direction,e),Bn.distanceToSquared(t))}distanceSqToSegment(t,e,n,i){Fn.copy(t).add(e).multiplyScalar(.5),kn.copy(e).sub(t).normalize(),Gn.copy(this.origin).sub(Fn);const r=.5*t.distanceTo(e),s=-this.direction.dot(kn),a=Gn.dot(this.direction),o=-Gn.dot(kn),l=Gn.lengthSq(),c=Math.abs(1-s*s);let h,u,d,p;if(c>0){if(h=s*o-a,u=s*a-o,p=r*c,h>=0){if(u>=-p){if(u<=p){const t=1/c;h*=t,u*=t,d=h*(h+s*u+2*a)+u*(s*h+u+2*o)+l}else u=r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;}else u=-r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;}else u<=-p?(h=Math.max(0,-(-s*r+a)),u=h>0?-r:Math.min(Math.max(-r,-o),r),d=-h*h+u*(u+2*o)+l):u<=p?(h=0,u=Math.min(Math.max(-r,-o),r),d=u*(u+2*o)+l):(h=Math.max(0,-(s*r+a)),u=h>0?r:Math.min(Math.max(-r,-o),r),d=-h*h+u*(u+2*o)+l);}else u=s>0?-r:r,h=Math.max(0,-(s*u+a)),d=-h*h+u*(u+2*o)+l;return n&&n.copy(this.origin).addScaledVector(this.direction,h),i&&i.copy(Fn).addScaledVector(kn,u),d}intersectSphere(t,e){Bn.subVectors(t.center,this.origin);const n=Bn.dot(this.direction),i=Bn.dot(Bn)-n*n,r=t.radius*t.radius;if(i>r)return null;const s=Math.sqrt(r-i),a=n-s,o=n+s;return o<0?null:a<0?this.at(o,e):this.at(a,e)}intersectsSphere(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius}distanceToPlane(t){const e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;const n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null}intersectPlane(t,e){const n=this.distanceToPlane(t);return null===n?null:this.at(n,e)}intersectsPlane(t){const e=t.distanceToPoint(this.origin);if(0===e)return!0;return t.normal.dot(this.direction)*e<0}intersectBox(t,e){let n,i,r,s,a,o;const l=1/this.direction.x,c=1/this.direction.y,h=1/this.direction.z,u=this.origin;return l>=0?(n=(t.min.x-u.x)*l,i=(t.max.x-u.x)*l):(n=(t.max.x-u.x)*l,i=(t.min.x-u.x)*l),c>=0?(r=(t.min.y-u.y)*c,s=(t.max.y-u.y)*c):(r=(t.max.y-u.y)*c,s=(t.min.y-u.y)*c),n>s||r>i?null:((r>n||isNaN(n))&&(n=r),(s=0?(a=(t.min.z-u.z)*h,o=(t.max.z-u.z)*h):(a=(t.max.z-u.z)*h,o=(t.min.z-u.z)*h),n>o||a>i?null:((a>n||n!=n)&&(n=a),(o=0?n:i,e)))}intersectsBox(t){return null!==this.intersectBox(t,Bn)}intersectTriangle(t,e,n,i,r){Vn.subVectors(e,t),Hn.subVectors(n,t),Wn.crossVectors(Vn,Hn);let s,a=this.direction.dot(Wn);if(a>0){if(i)return null;s=1}else{if(!(a<0))return null;s=-1,a=-a}Gn.subVectors(this.origin,t);const o=s*this.direction.dot(Hn.crossVectors(Gn,Hn));if(o<0)return null;const l=s*this.direction.dot(Vn.cross(Gn));if(l<0)return null;if(o+l>a)return null;const c=-s*Gn.dot(Wn);return c<0?null:this.at(c/a,r)}applyMatrix4(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this}equals(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}clone(){return new this.constructor().copy(this)}}class qn{constructor(){qn.prototype.isMatrix4=!0,this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}set(t,e,n,i,r,s,a,o,l,c,h,u,d,p,m,f){const g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=i,g[1]=r,g[5]=s,g[9]=a,g[13]=o,g[2]=l,g[6]=c,g[10]=h,g[14]=u,g[3]=d,g[7]=p,g[11]=m,g[15]=f,this}identity(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this}clone(){return new qn().fromArray(this.elements)}copy(t){const e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this}copyPosition(t){const e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this}setFromMatrix3(t){const e=t.elements;return this.set(e[0],e[3],e[6],0,e[1],e[4],e[7],0,e[2],e[5],e[8],0,0,0,0,1),this}extractBasis(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this}makeBasis(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this}extractRotation(t){const e=this.elements,n=t.elements,i=1/Xn.setFromMatrixColumn(t,0).length(),r=1/Xn.setFromMatrixColumn(t,1).length(),s=1/Xn.setFromMatrixColumn(t,2).length();return e[0]=n[0]*i,e[1]=n[1]*i,e[2]=n[2]*i,e[3]=0,e[4]=n[4]*r,e[5]=n[5]*r,e[6]=n[6]*r,e[7]=0,e[8]=n[8]*s,e[9]=n[9]*s,e[10]=n[10]*s,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromEuler(t){const e=this.elements,n=t.x,i=t.y,r=t.z,s=Math.cos(n),a=Math.sin(n),o=Math.cos(i),l=Math.sin(i),c=Math.cos(r),h=Math.sin(r);if("XYZ"===t.order){const t=s*c,n=s*h,i=a*c,r=a*h;e[0]=o*c,e[4]=-o*h,e[8]=l,e[1]=n+i*l,e[5]=t-r*l,e[9]=-a*o,e[2]=r-t*l,e[6]=i+n*l,e[10]=s*o}else if("YXZ"===t.order){const t=o*c,n=o*h,i=l*c,r=l*h;e[0]=t+r*a,e[4]=i*a-n,e[8]=s*l,e[1]=s*h,e[5]=s*c,e[9]=-a,e[2]=n*a-i,e[6]=r+t*a,e[10]=s*o}else if("ZXY"===t.order){const t=o*c,n=o*h,i=l*c,r=l*h;e[0]=t-r*a,e[4]=-s*h,e[8]=i+n*a,e[1]=n+i*a,e[5]=s*c,e[9]=r-t*a,e[2]=-s*l,e[6]=a,e[10]=s*o}else if("ZYX"===t.order){const t=s*c,n=s*h,i=a*c,r=a*h;e[0]=o*c,e[4]=i*l-n,e[8]=t*l+r,e[1]=o*h,e[5]=r*l+t,e[9]=n*l-i,e[2]=-l,e[6]=a*o,e[10]=s*o}else if("YZX"===t.order){const t=s*o,n=s*l,i=a*o,r=a*l;e[0]=o*c,e[4]=r-t*h,e[8]=i*h+n,e[1]=h,e[5]=s*c,e[9]=-a*c,e[2]=-l*c,e[6]=n*h+i,e[10]=t-r*h}else if("XZY"===t.order){const t=s*o,n=s*l,i=a*o,r=a*l;e[0]=o*c,e[4]=-h,e[8]=l*c,e[1]=t*h+r,e[5]=s*c,e[9]=n*h-i,e[2]=i*h-n,e[6]=a*c,e[10]=r*h+t}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}makeRotationFromQuaternion(t){return this.compose(Zn,t,Jn)}lookAt(t,e,n){const i=this.elements;return Qn.subVectors(t,e),0===Qn.lengthSq()&&(Qn.z=1),Qn.normalize(),Kn.crossVectors(n,Qn),0===Kn.lengthSq()&&(1===Math.abs(n.z)?Qn.x+=1e-4:Qn.z+=1e-4,Qn.normalize(),Kn.crossVectors(n,Qn)),Kn.normalize(),$n.crossVectors(Qn,Kn),i[0]=Kn.x,i[4]=$n.x,i[8]=Qn.x,i[1]=Kn.y,i[5]=$n.y,i[9]=Qn.y,i[2]=Kn.z,i[6]=$n.z,i[10]=Qn.z,this}multiply(t){return this.multiplyMatrices(this,t)}premultiply(t){return this.multiplyMatrices(t,this)}multiplyMatrices(t,e){const n=t.elements,i=e.elements,r=this.elements,s=n[0],a=n[4],o=n[8],l=n[12],c=n[1],h=n[5],u=n[9],d=n[13],p=n[2],m=n[6],f=n[10],g=n[14],v=n[3],_=n[7],x=n[11],y=n[15],M=i[0],S=i[4],b=i[8],w=i[12],T=i[1],E=i[5],A=i[9],C=i[13],L=i[2],P=i[6],R=i[10],I=i[14],D=i[3],U=i[7],N=i[11],O=i[15];return r[0]=s*M+a*T+o*L+l*D,r[4]=s*S+a*E+o*P+l*U,r[8]=s*b+a*A+o*R+l*N,r[12]=s*w+a*C+o*I+l*O,r[1]=c*M+h*T+u*L+d*D,r[5]=c*S+h*E+u*P+d*U,r[9]=c*b+h*A+u*R+d*N,r[13]=c*w+h*C+u*I+d*O,r[2]=p*M+m*T+f*L+g*D,r[6]=p*S+m*E+f*P+g*U,r[10]=p*b+m*A+f*R+g*N,r[14]=p*w+m*C+f*I+g*O,r[3]=v*M+_*T+x*L+y*D,r[7]=v*S+_*E+x*P+y*U,r[11]=v*b+_*A+x*R+y*N,r[15]=v*w+_*C+x*I+y*O,this}multiplyScalar(t){const e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this}determinant(){const t=this.elements,e=t[0],n=t[4],i=t[8],r=t[12],s=t[1],a=t[5],o=t[9],l=t[13],c=t[2],h=t[6],u=t[10],d=t[14];return t[3]*(+r*o*h-i*l*h-r*a*u+n*l*u+i*a*d-n*o*d)+t[7]*(+e*o*d-e*l*u+r*s*u-i*s*d+i*l*c-r*o*c)+t[11]*(+e*l*h-e*a*d-r*s*h+n*s*d+r*a*c-n*l*c)+t[15]*(-i*a*c-e*o*h+e*a*u+i*s*h-n*s*u+n*o*c)}transpose(){const t=this.elements;let e;return e=t[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this}setPosition(t,e,n){const i=this.elements;return t.isVector3?(i[12]=t.x,i[13]=t.y,i[14]=t.z):(i[12]=t,i[13]=e,i[14]=n),this}invert(){const t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],s=t[4],a=t[5],o=t[6],l=t[7],c=t[8],h=t[9],u=t[10],d=t[11],p=t[12],m=t[13],f=t[14],g=t[15],v=h*f*l-m*u*l+m*o*d-a*f*d-h*o*g+a*u*g,_=p*u*l-c*f*l-p*o*d+s*f*d+c*o*g-s*u*g,x=c*m*l-p*h*l+p*a*d-s*m*d-c*a*g+s*h*g,y=p*h*o-c*m*o-p*a*u+s*m*u+c*a*f-s*h*f,M=e*v+n*_+i*x+r*y;if(0===M)return this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);const S=1/M;return t[0]=v*S,t[1]=(m*u*r-h*f*r-m*i*d+n*f*d+h*i*g-n*u*g)*S,t[2]=(a*f*r-m*o*r+m*i*l-n*f*l-a*i*g+n*o*g)*S,t[3]=(h*o*r-a*u*r-h*i*l+n*u*l+a*i*d-n*o*d)*S,t[4]=_*S,t[5]=(c*f*r-p*u*r+p*i*d-e*f*d-c*i*g+e*u*g)*S,t[6]=(p*o*r-s*f*r-p*i*l+e*f*l+s*i*g-e*o*g)*S,t[7]=(s*u*r-c*o*r+c*i*l-e*u*l-s*i*d+e*o*d)*S,t[8]=x*S,t[9]=(p*h*r-c*m*r-p*n*d+e*m*d+c*n*g-e*h*g)*S,t[10]=(s*m*r-p*a*r+p*n*l-e*m*l-s*n*g+e*a*g)*S,t[11]=(c*a*r-s*h*r-c*n*l+e*h*l+s*n*d-e*a*d)*S,t[12]=y*S,t[13]=(c*m*i-p*h*i+p*n*u-e*m*u-c*n*f+e*h*f)*S,t[14]=(p*a*i-s*m*i-p*n*o+e*m*o+s*n*f-e*a*f)*S,t[15]=(s*h*i-c*a*i+c*n*o-e*h*o-s*n*u+e*a*u)*S,this}scale(t){const e=this.elements,n=t.x,i=t.y,r=t.z;return e[0]*=n,e[4]*=i,e[8]*=r,e[1]*=n,e[5]*=i,e[9]*=r,e[2]*=n,e[6]*=i,e[10]*=r,e[3]*=n,e[7]*=i,e[11]*=r,this}getMaxScaleOnAxis(){const t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],i=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,i))}makeTranslation(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this}makeRotationX(t){const e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this}makeRotationY(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this}makeRotationZ(t){const e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this}makeRotationAxis(t,e){const n=Math.cos(e),i=Math.sin(e),r=1-n,s=t.x,a=t.y,o=t.z,l=r*s,c=r*a;return this.set(l*s+n,l*a-i*o,l*o+i*a,0,l*a+i*o,c*a+n,c*o-i*s,0,l*o-i*a,c*o+i*s,r*o*o+n,0,0,0,0,1),this}makeScale(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this}makeShear(t,e,n,i,r,s){return this.set(1,n,r,0,t,1,s,0,e,i,1,0,0,0,0,1),this}compose(t,e,n){const i=this.elements,r=e._x,s=e._y,a=e._z,o=e._w,l=r+r,c=s+s,h=a+a,u=r*l,d=r*c,p=r*h,m=s*c,f=s*h,g=a*h,v=o*l,_=o*c,x=o*h,y=n.x,M=n.y,S=n.z;return i[0]=(1-(m+g))*y,i[1]=(d+x)*y,i[2]=(p-_)*y,i[3]=0,i[4]=(d-x)*M,i[5]=(1-(u+g))*M,i[6]=(f+v)*M,i[7]=0,i[8]=(p+_)*S,i[9]=(f-v)*S,i[10]=(1-(u+m))*S,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this}decompose(t,e,n){const i=this.elements;let r=Xn.set(i[0],i[1],i[2]).length();const s=Xn.set(i[4],i[5],i[6]).length(),a=Xn.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),t.x=i[12],t.y=i[13],t.z=i[14],Yn.copy(this);const o=1/r,l=1/s,c=1/a;return Yn.elements[0]*=o,Yn.elements[1]*=o,Yn.elements[2]*=o,Yn.elements[4]*=l,Yn.elements[5]*=l,Yn.elements[6]*=l,Yn.elements[8]*=c,Yn.elements[9]*=c,Yn.elements[10]*=c,e.setFromRotationMatrix(Yn),n.x=r,n.y=s,n.z=a,this}makePerspective(t,e,n,i,r,s){const a=this.elements,o=2*r/(e-t),l=2*r/(n-i),c=(e+t)/(e-t),h=(n+i)/(n-i),u=-(s+r)/(s-r),d=-2*s*r/(s-r);return a[0]=o,a[4]=0,a[8]=c,a[12]=0,a[1]=0,a[5]=l,a[9]=h,a[13]=0,a[2]=0,a[6]=0,a[10]=u,a[14]=d,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this}makeOrthographic(t,e,n,i,r,s){const a=this.elements,o=1/(e-t),l=1/(n-i),c=1/(s-r),h=(e+t)*o,u=(n+i)*l,d=(s+r)*c;return a[0]=2*o,a[4]=0,a[8]=0,a[12]=-h,a[1]=0,a[5]=2*l,a[9]=0,a[13]=-u,a[2]=0,a[6]=0,a[10]=-2*c,a[14]=-d,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this}equals(t){const e=this.elements,n=t.elements;for(let t=0;t<16;t++)if(e[t]!==n[t])return!1;return!0}fromArray(t,e=0){for(let n=0;n<16;n++)this.elements[n]=t[n+e];return this}toArray(t=[],e=0){const n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}}const Xn=new gn,Yn=new qn,Zn=new gn(0,0,0),Jn=new gn(1,1,1),Kn=new gn,$n=new gn,Qn=new gn,ti=new qn,ei=new fn;class ni{constructor(t=0,e=0,n=0,i=ni.DEFAULT_ORDER){this.isEuler=!0,this._x=t,this._y=e,this._z=n,this._order=i}get x(){return this._x}set x(t){this._x=t,this._onChangeCallback()}get y(){return this._y}set y(t){this._y=t,this._onChangeCallback()}get z(){return this._z}set z(t){this._z=t,this._onChangeCallback()}get order(){return this._order}set order(t){this._order=t,this._onChangeCallback()}set(t,e,n,i=this._order){return this._x=t,this._y=e,this._z=n,this._order=i,this._onChangeCallback(),this}clone(){return new this.constructor(this._x,this._y,this._z,this._order)}copy(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this._onChangeCallback(),this}setFromRotationMatrix(t,e=this._order,n=!0){const i=t.elements,r=i[0],s=i[4],a=i[8],o=i[1],l=i[5],c=i[9],h=i[2],u=i[6],d=i[10];switch(e){case"XYZ":this._y=Math.asin(Ne(a,-1,1)),Math.abs(a)<.9999999?(this._x=Math.atan2(-c,d),this._z=Math.atan2(-s,r)):(this._x=Math.atan2(u,l),this._z=0);break;case"YXZ":this._x=Math.asin(-Ne(c,-1,1)),Math.abs(c)<.9999999?(this._y=Math.atan2(a,d),this._z=Math.atan2(o,l)):(this._y=Math.atan2(-h,r),this._z=0);break;case"ZXY":this._x=Math.asin(Ne(u,-1,1)),Math.abs(u)<.9999999?(this._y=Math.atan2(-h,d),this._z=Math.atan2(-s,l)):(this._y=0,this._z=Math.atan2(o,r));break;case"ZYX":this._y=Math.asin(-Ne(h,-1,1)),Math.abs(h)<.9999999?(this._x=Math.atan2(u,d),this._z=Math.atan2(o,r)):(this._x=0,this._z=Math.atan2(-s,l));break;case"YZX":this._z=Math.asin(Ne(o,-1,1)),Math.abs(o)<.9999999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-h,r)):(this._x=0,this._y=Math.atan2(a,d));break;case"XZY":this._z=Math.asin(-Ne(s,-1,1)),Math.abs(s)<.9999999?(this._x=Math.atan2(u,l),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-c,d),this._y=0);break;default:console.warn("THREE.Euler: .setFromRotationMatrix() encountered an unknown order: "+e);}return this._order=e,!0===n&&this._onChangeCallback(),this}setFromQuaternion(t,e,n){return ti.makeRotationFromQuaternion(t),this.setFromRotationMatrix(ti,e,n)}setFromVector3(t,e=this._order){return this.set(t.x,t.y,t.z,e)}reorder(t){return ei.setFromEuler(this),this.setFromQuaternion(ei,t)}equals(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order}fromArray(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this._onChangeCallback(),this}toArray(t=[],e=0){return t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t}_onChange(t){return this._onChangeCallback=t,this}_onChangeCallback(){}*[Symbol.iterator](){yield this._x,yield this._y,yield this._z,yield this._order}}ni.DEFAULT_ORDER="XYZ";class ii{constructor(){this.mask=1}set(t){this.mask=(1<>>0}enable(t){this.mask|=1<1){for(let t=0;t1){for(let t=0;t0&&(n=n.concat(r))}return n}getWorldPosition(t){return this.updateWorldMatrix(!0,!1),t.setFromMatrixPosition(this.matrixWorld)}getWorldQuaternion(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ci,t,hi),t}getWorldScale(t){return this.updateWorldMatrix(!0,!1),this.matrixWorld.decompose(ci,ui,t),t}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()}raycast(){}traverse(t){t(this);const e=this.children;for(let n=0,i=e.length;n0&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),i.up=this.up.toArray(),!1===this.matrixAutoUpdate&&(i.matrixAutoUpdate=!1),this.isInstancedMesh&&(i.type="InstancedMesh",i.count=this.count,i.instanceMatrix=this.instanceMatrix.toJSON(),null!==this.instanceColor&&(i.instanceColor=this.instanceColor.toJSON())),this.isScene)this.background&&(this.background.isColor?i.background=this.background.toJSON():this.background.isTexture&&(i.background=this.background.toJSON(t).uuid)),this.environment&&this.environment.isTexture&&!0!==this.environment.isRenderTargetTexture&&(i.environment=this.environment.toJSON(t).uuid);else if(this.isMesh||this.isLine||this.isPoints){i.geometry=r(t.geometries,this.geometry);const e=this.geometry.parameters;if(void 0!==e&&void 0!==e.shapes){const n=e.shapes;if(Array.isArray(n))for(let e=0,i=n.length;e0){i.children=[];for(let e=0;e0){i.animations=[];for(let e=0;e0&&(n.geometries=e),i.length>0&&(n.materials=i),r.length>0&&(n.textures=r),a.length>0&&(n.images=a),o.length>0&&(n.shapes=o),l.length>0&&(n.skeletons=l),c.length>0&&(n.animations=c),h.length>0&&(n.nodes=h)}return n.object=i,n;function s(t){const e=[];for(const n in t){const i=t[n];delete i.metadata,e.push(i)}return e}}clone(t){return new this.constructor().copy(this,t)}copy(t,e=!0){if(this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.rotation.order=t.rotation.order,this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.matrixWorldAutoUpdate=t.matrixWorldAutoUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(let e=0;e0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}static getBarycoord(t,e,n,i,r){_i.subVectors(i,e),xi.subVectors(n,e),yi.subVectors(t,e);const s=_i.dot(_i),a=_i.dot(xi),o=_i.dot(yi),l=xi.dot(xi),c=xi.dot(yi),h=s*l-a*a;if(0===h)return r.set(-2,-1,-1);const u=1/h,d=(l*o-a*c)*u,p=(s*c-a*o)*u;return r.set(1-d-p,p,d)}static containsPoint(t,e,n,i){return this.getBarycoord(t,e,n,i,Mi),Mi.x>=0&&Mi.y>=0&&Mi.x+Mi.y<=1}static getUV(t,e,n,i,r,s,a,o){return!1===Ci&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Ci=!0),this.getInterpolation(t,e,n,i,r,s,a,o)}static getInterpolation(t,e,n,i,r,s,a,o){return this.getBarycoord(t,e,n,i,Mi),o.setScalar(0),o.addScaledVector(r,Mi.x),o.addScaledVector(s,Mi.y),o.addScaledVector(a,Mi.z),o}static isFrontFacing(t,e,n,i){return _i.subVectors(n,e),xi.subVectors(t,e),_i.cross(xi).dot(i)<0}set(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this}setFromPointsAndIndices(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this}setFromAttributeAndIndices(t,e,n,i){return this.a.fromBufferAttribute(t,e),this.b.fromBufferAttribute(t,n),this.c.fromBufferAttribute(t,i),this}clone(){return new this.constructor().copy(this)}copy(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this}getArea(){return _i.subVectors(this.c,this.b),xi.subVectors(this.a,this.b),.5*_i.cross(xi).length()}getMidpoint(t){return t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)}getNormal(t){return Li.getNormal(this.a,this.b,this.c,t)}getPlane(t){return t.setFromCoplanarPoints(this.a,this.b,this.c)}getBarycoord(t,e){return Li.getBarycoord(t,this.a,this.b,this.c,e)}getUV(t,e,n,i,r){return!1===Ci&&(console.warn("THREE.Triangle.getUV() has been renamed to THREE.Triangle.getInterpolation()."),Ci=!0),Li.getInterpolation(t,this.a,this.b,this.c,e,n,i,r)}getInterpolation(t,e,n,i,r){return Li.getInterpolation(t,this.a,this.b,this.c,e,n,i,r)}containsPoint(t){return Li.containsPoint(t,this.a,this.b,this.c)}isFrontFacing(t){return Li.isFrontFacing(this.a,this.b,this.c,t)}intersectsBox(t){return t.intersectsTriangle(this)}closestPointToPoint(t,e){const n=this.a,i=this.b,r=this.c;let s,a;Si.subVectors(i,n),bi.subVectors(r,n),Ti.subVectors(t,n);const o=Si.dot(Ti),l=bi.dot(Ti);if(o<=0&&l<=0)return e.copy(n);Ei.subVectors(t,i);const c=Si.dot(Ei),h=bi.dot(Ei);if(c>=0&&h<=c)return e.copy(i);const u=o*h-c*l;if(u<=0&&o>=0&&c<=0)return s=o/(o-c),e.copy(n).addScaledVector(Si,s);Ai.subVectors(t,r);const d=Si.dot(Ai),p=bi.dot(Ai);if(p>=0&&d<=p)return e.copy(r);const m=d*l-o*p;if(m<=0&&l>=0&&p<=0)return a=l/(l-p),e.copy(n).addScaledVector(bi,a);const f=c*p-d*h;if(f<=0&&h-c>=0&&d-p>=0)return wi.subVectors(r,i),a=(h-c)/(h-c+(d-p)),e.copy(i).addScaledVector(wi,a);const g=1/(f+m+u);return s=m*g,a=u*g,e.copy(n).addScaledVector(Si,s).addScaledVector(bi,a)}equals(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}let Pi=0;class Ri extends Le{constructor(){super(),this.isMaterial=!0,Object.defineProperty(this,"id",{value:Pi++}),this.uuid=Ue(),this.name="",this.type="Material",this.blending=d,this.side=l,this.vertexColors=!1,this.opacity=1,this.transparent=!1,this.blendSrc=E,this.blendDst=A,this.blendEquation=v,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=O,this.depthTest=!0,this.depthWrite=!0,this.stencilWriteMask=255,this.stencilFunc=519,this.stencilRef=0,this.stencilFuncMask=255,this.stencilFail=Te,this.stencilZFail=Te,this.stencilZPass=Te,this.stencilWrite=!1,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaToCoverage=!1,this.premultipliedAlpha=!1,this.forceSinglePass=!1,this.visible=!0,this.toneMapped=!0,this.userData={},this.version=0,this._alphaTest=0}get alphaTest(){return this._alphaTest}set alphaTest(t){this._alphaTest>0!=t>0&&this.version++,this._alphaTest=t}onBuild(){}onBeforeRender(){}onBeforeCompile(){}customProgramCacheKey(){return this.onBeforeCompile.toString()}setValues(t){if(void 0!==t)for(const e in t){const n=t[e];if(void 0===n){console.warn(`THREE.Material: parameter '${e}' has value of undefined.`);continue}const i=this[e];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[e]=n:console.warn(`THREE.Material: '${e}' is not a property of THREE.${this.type}.`)}}toJSON(t){const e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});const n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function i(t){const e=[];for(const n in t){const i=t[n];delete i.metadata,e.push(i)}return e}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),void 0!==this.sheen&&(n.sheen=this.sheen),this.sheenColor&&this.sheenColor.isColor&&(n.sheenColor=this.sheenColor.getHex()),void 0!==this.sheenRoughness&&(n.sheenRoughness=this.sheenRoughness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),this.emissiveIntensity&&1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.specularIntensity&&(n.specularIntensity=this.specularIntensity),this.specularColor&&this.specularColor.isColor&&(n.specularColor=this.specularColor.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearcoat&&(n.clearcoat=this.clearcoat),void 0!==this.clearcoatRoughness&&(n.clearcoatRoughness=this.clearcoatRoughness),this.clearcoatMap&&this.clearcoatMap.isTexture&&(n.clearcoatMap=this.clearcoatMap.toJSON(t).uuid),this.clearcoatRoughnessMap&&this.clearcoatRoughnessMap.isTexture&&(n.clearcoatRoughnessMap=this.clearcoatRoughnessMap.toJSON(t).uuid),this.clearcoatNormalMap&&this.clearcoatNormalMap.isTexture&&(n.clearcoatNormalMap=this.clearcoatNormalMap.toJSON(t).uuid,n.clearcoatNormalScale=this.clearcoatNormalScale.toArray()),void 0!==this.iridescence&&(n.iridescence=this.iridescence),void 0!==this.iridescenceIOR&&(n.iridescenceIOR=this.iridescenceIOR),void 0!==this.iridescenceThicknessRange&&(n.iridescenceThicknessRange=this.iridescenceThicknessRange),this.iridescenceMap&&this.iridescenceMap.isTexture&&(n.iridescenceMap=this.iridescenceMap.toJSON(t).uuid),this.iridescenceThicknessMap&&this.iridescenceThicknessMap.isTexture&&(n.iridescenceThicknessMap=this.iridescenceThicknessMap.toJSON(t).uuid),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.matcap&&this.matcap.isTexture&&(n.matcap=this.matcap.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid,n.lightMapIntensity=this.lightMapIntensity),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.specularIntensityMap&&this.specularIntensityMap.isTexture&&(n.specularIntensityMap=this.specularIntensityMap.toJSON(t).uuid),this.specularColorMap&&this.specularColorMap.isTexture&&(n.specularColorMap=this.specularColorMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,void 0!==this.combine&&(n.combine=this.combine)),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity),void 0!==this.reflectivity&&(n.reflectivity=this.reflectivity),void 0!==this.refractionRatio&&(n.refractionRatio=this.refractionRatio),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.transmission&&(n.transmission=this.transmission),this.transmissionMap&&this.transmissionMap.isTexture&&(n.transmissionMap=this.transmissionMap.toJSON(t).uuid),void 0!==this.thickness&&(n.thickness=this.thickness),this.thicknessMap&&this.thicknessMap.isTexture&&(n.thicknessMap=this.thicknessMap.toJSON(t).uuid),void 0!==this.attenuationDistance&&this.attenuationDistance!==1/0&&(n.attenuationDistance=this.attenuationDistance),void 0!==this.attenuationColor&&(n.attenuationColor=this.attenuationColor.getHex()),void 0!==this.size&&(n.size=this.size),null!==this.shadowSide&&(n.shadowSide=this.shadowSide),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==d&&(n.blending=this.blending),this.side!==l&&(n.side=this.side),this.vertexColors&&(n.vertexColors=!0),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,n.colorWrite=this.colorWrite,n.stencilWrite=this.stencilWrite,n.stencilWriteMask=this.stencilWriteMask,n.stencilFunc=this.stencilFunc,n.stencilRef=this.stencilRef,n.stencilFuncMask=this.stencilFuncMask,n.stencilFail=this.stencilFail,n.stencilZFail=this.stencilZFail,n.stencilZPass=this.stencilZPass,void 0!==this.rotation&&0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),void 0!==this.linewidth&&1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.alphaToCoverage&&(n.alphaToCoverage=this.alphaToCoverage),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.forceSinglePass&&(n.forceSinglePass=this.forceSinglePass),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.flatShading&&(n.flatShading=this.flatShading),!1===this.visible&&(n.visible=!1),!1===this.toneMapped&&(n.toneMapped=!1),!1===this.fog&&(n.fog=!1),Object.keys(this.userData).length>0&&(n.userData=this.userData),e){const e=i(t.textures),r=i(t.images);e.length>0&&(n.textures=e),r.length>0&&(n.images=r)}return n}clone(){return new this.constructor().copy(this)}copy(t){this.name=t.name,this.blending=t.blending,this.side=t.side,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.stencilWriteMask=t.stencilWriteMask,this.stencilFunc=t.stencilFunc,this.stencilRef=t.stencilRef,this.stencilFuncMask=t.stencilFuncMask,this.stencilFail=t.stencilFail,this.stencilZFail=t.stencilZFail,this.stencilZPass=t.stencilZPass,this.stencilWrite=t.stencilWrite;const e=t.clippingPlanes;let n=null;if(null!==e){const t=e.length;n=new Array(t);for(let i=0;i!==t;++i)n[i]=e[i].clone()}return this.clippingPlanes=n,this.clipIntersection=t.clipIntersection,this.clipShadows=t.clipShadows,this.shadowSide=t.shadowSide,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.alphaToCoverage=t.alphaToCoverage,this.premultipliedAlpha=t.premultipliedAlpha,this.forceSinglePass=t.forceSinglePass,this.visible=t.visible,this.toneMapped=t.toneMapped,this.userData=JSON.parse(JSON.stringify(t.userData)),this}dispose(){this.dispatchEvent({type:"dispose"})}set needsUpdate(t){!0===t&&this.version++}}const Ii={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},Di={h:0,s:0,l:0},Ui={h:0,s:0,l:0};function Ni(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}class Oi{constructor(t,e,n){return this.isColor=!0,this.r=1,this.g=1,this.b=1,void 0===e&&void 0===n?this.set(t):this.setRGB(t,e,n)}set(t){return t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t),this}setScalar(t){return this.r=t,this.g=t,this.b=t,this}setHex(t,e=Se){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,rn.toWorkingColorSpace(this,e),this}setRGB(t,e,n,i=rn.workingColorSpace){return this.r=t,this.g=e,this.b=n,rn.toWorkingColorSpace(this,i),this}setHSL(t,e,n,i=rn.workingColorSpace){if(t=Oe(t,1),e=Ne(e,0,1),n=Ne(n,0,1),0===e)this.r=this.g=this.b=n;else{const i=n<=.5?n*(1+e):n+e-n*e,r=2*n-i;this.r=Ni(r,i,t+1/3),this.g=Ni(r,i,t),this.b=Ni(r,i,t-1/3)}return rn.toWorkingColorSpace(this,i),this}setStyle(t,e=Se){function n(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}let i;if(i=/^(\w+)\(([^\)]*)\)/.exec(t)){let r;const s=i[1],a=i[2];switch(s){case"rgb":case"rgba":if(r=/^\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(255,parseInt(r[1],10))/255,this.g=Math.min(255,parseInt(r[2],10))/255,this.b=Math.min(255,parseInt(r[3],10))/255,rn.toWorkingColorSpace(this,e),n(r[4]),this;if(r=/^\s*(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a))return this.r=Math.min(100,parseInt(r[1],10))/100,this.g=Math.min(100,parseInt(r[2],10))/100,this.b=Math.min(100,parseInt(r[3],10))/100,rn.toWorkingColorSpace(this,e),n(r[4]),this;break;case"hsl":case"hsla":if(r=/^\s*(\d*\.?\d+)\s*,\s*(\d*\.?\d+)\%\s*,\s*(\d*\.?\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec(a)){const t=parseFloat(r[1])/360,i=parseFloat(r[2])/100,s=parseFloat(r[3])/100;return n(r[4]),this.setHSL(t,i,s,e)}break;default:console.warn("THREE.Color: Unknown color model "+t);}}else if(i=/^\#([A-Fa-f\d]+)$/.exec(t)){const n=i[1],r=n.length;if(3===r)return this.setRGB(parseInt(n.charAt(0),16)/15,parseInt(n.charAt(1),16)/15,parseInt(n.charAt(2),16)/15,e);if(6===r)return this.setHex(parseInt(n,16),e);console.warn("THREE.Color: Invalid hex color "+t)}else if(t&&t.length>0)return this.setColorName(t,e);return this}setColorName(t,e=Se){const n=Ii[t.toLowerCase()];return void 0!==n?this.setHex(n,e):console.warn("THREE.Color: Unknown color "+t),this}clone(){return new this.constructor(this.r,this.g,this.b)}copy(t){return this.r=t.r,this.g=t.g,this.b=t.b,this}copySRGBToLinear(t){return this.r=Ke(t.r),this.g=Ke(t.g),this.b=Ke(t.b),this}copyLinearToSRGB(t){return this.r=$e(t.r),this.g=$e(t.g),this.b=$e(t.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}getHex(t=Se){return rn.fromWorkingColorSpace(zi.copy(this),t),Ne(255*zi.r,0,255)<<16^Ne(255*zi.g,0,255)<<8^Ne(255*zi.b,0,255)<<0}getHexString(t=Se){return("000000"+this.getHex(t).toString(16)).slice(-6)}getHSL(t,e=rn.workingColorSpace){rn.fromWorkingColorSpace(zi.copy(this),e);const n=zi.r,i=zi.g,r=zi.b,s=Math.max(n,i,r),a=Math.min(n,i,r);let o,l;const c=(a+s)/2;if(a===s)o=0,l=0;else{const t=s-a;switch(l=c<=.5?t/(s+a):t/(2-s-a),s){case n:o=(i-r)/t+(i>-e-14,i[256|t]=1024>>-e-14|32768,r[t]=-e-1,r[256|t]=-e-1):e<=15?(i[t]=e+15<<10,i[256|t]=e+15<<10|32768,r[t]=13,r[256|t]=13):e<128?(i[t]=31744,i[256|t]=64512,r[t]=24,r[256|t]=24):(i[t]=31744,i[256|t]=64512,r[t]=13,r[256|t]=13)}const s=new Uint32Array(2048),a=new Uint32Array(64),o=new Uint32Array(64);for(let t=1;t<1024;++t){let e=t<<13,n=0;for(;0==(8388608&e);)e<<=1,n-=8388608;e&=-8388609,n+=947912704,s[t]=e|n}for(let t=1024;t<2048;++t)s[t]=939524096+(t-1024<<13);for(let t=1;t<31;++t)a[t]=t<<23;a[31]=1199570944,a[32]=2147483648;for(let t=33;t<63;++t)a[t]=2147483648+(t-32<<23);a[63]=3347054592;for(let t=1;t<64;++t)32!==t&&(o[t]=1024);return{floatView:e,uint32View:n,baseTable:i,shiftTable:r,mantissaTable:s,exponentTable:a,offsetTable:o}}function Gi(t){Math.abs(t)>65504&&console.warn("THREE.DataUtils.toHalfFloat(): Value out of range."),t=Ne(t,-65504,65504),Fi.floatView[0]=t;const e=Fi.uint32View[0],n=e>>23&511;return Fi.baseTable[n]+((8388607&e)>>Fi.shiftTable[n])}function Vi(t){const e=t>>10;return Fi.uint32View[0]=Fi.mantissaTable[Fi.offsetTable[e]+(1023&t)]+Fi.exponentTable[e],Fi.floatView[0]}const Hi={toHalfFloat:Gi,fromHalfFloat:Vi},Wi=new gn,ji=new We;class qi{constructor(t,e,n=!1){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.isBufferAttribute=!0,this.name="",this.array=t,this.itemSize=e,this.count=void 0!==t?t.length/e:0,this.normalized=n,this.usage=Ee,this.updateRange={offset:0,count:-1},this.version=0}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}setUsage(t){return this.usage=t,this}copy(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.usage=t.usage,this}copyAt(t,e,n){t*=this.itemSize,n*=e.itemSize;for(let i=0,r=this.itemSize;i0&&(t.userData=this.userData),void 0!==this.parameters){const e=this.parameters;for(const n in e)void 0!==e[n]&&(t[n]=e[n]);return t}t.data={attributes:{}};const e=this.index;null!==e&&(t.data.index={type:e.array.constructor.name,array:Array.prototype.slice.call(e.array)});const n=this.attributes;for(const e in n){const i=n[e];t.data.attributes[e]=i.toJSON(t.data)}const i={};let r=!1;for(const e in this.morphAttributes){const n=this.morphAttributes[e],s=[];for(let e=0,i=n.length;e0&&(i[e]=s,r=!0)}r&&(t.data.morphAttributes=i,t.data.morphTargetsRelative=this.morphTargetsRelative);const s=this.groups;s.length>0&&(t.data.groups=JSON.parse(JSON.stringify(s)));const a=this.boundingSphere;return null!==a&&(t.data.boundingSphere={center:a.center.toArray(),radius:a.radius}),t}clone(){return new this.constructor().copy(this)}copy(t){this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null;const e={};this.name=t.name;const n=t.index;null!==n&&this.setIndex(n.clone(e));const i=t.attributes;for(const t in i){const n=i[t];this.setAttribute(t,n.clone(e))}const r=t.morphAttributes;for(const t in r){const n=[],i=r[t];for(let t=0,r=i.length;t0){const n=t[e[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=n.length;t(t.far-t.near)**2)return}if(rr.copy(r).invert(),sr.copy(t.ray).applyMatrix4(rr),null!==n.boundingBox&&!1===sr.intersectsBox(n.boundingBox))return;let s;const a=n.index,o=n.attributes.position,l=n.attributes.uv,c=n.attributes.uv2,h=n.attributes.normal,u=n.groups,d=n.drawRange;if(null!==a){if(Array.isArray(i))for(let n=0,r=u.length;nn.far?null:{distance:u,point:yr.clone(),object:t}}(t,e,n,i,lr,cr,hr,xr);if(d){r&&(pr.fromBufferAttribute(r,o),mr.fromBufferAttribute(r,h),fr.fromBufferAttribute(r,u),d.uv=Li.getInterpolation(xr,lr,cr,hr,pr,mr,fr,new We)),s&&(pr.fromBufferAttribute(s,o),mr.fromBufferAttribute(s,h),fr.fromBufferAttribute(s,u),d.uv2=Li.getInterpolation(xr,lr,cr,hr,pr,mr,fr,new We)),a&&(gr.fromBufferAttribute(a,o),vr.fromBufferAttribute(a,h),_r.fromBufferAttribute(a,u),d.normal=Li.getInterpolation(xr,lr,cr,hr,gr,vr,_r,new gn),d.normal.dot(i.direction)>0&&d.normal.multiplyScalar(-1));const t={a:o,b:h,c:u,normal:new gn,materialIndex:0};Li.getNormal(lr,cr,hr,t.normal),d.face=t}return d}class br extends ir{constructor(t=1,e=1,n=1,i=1,r=1,s=1){super(),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:s};const a=this;i=Math.floor(i),r=Math.floor(r),s=Math.floor(s);const o=[],l=[],c=[],h=[];let u=0,d=0;function p(t,e,n,i,r,s,p,m,f,g,v){const _=s/f,x=p/g,y=s/2,M=p/2,S=m/2,b=f+1,w=g+1;let T=0,E=0;const A=new gn;for(let s=0;s0?1:-1,c.push(A.x,A.y,A.z),h.push(o/f),h.push(1-s/g),T+=1}}for(let t=0;t0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader;const n={};for(const t in this.extensions)!0===this.extensions[t]&&(n[t]=!0);return Object.keys(n).length>0&&(e.extensions=n),e}}class Lr extends vi{constructor(){super(),this.isCamera=!0,this.type="Camera",this.matrixWorldInverse=new qn,this.projectionMatrix=new qn,this.projectionMatrixInverse=new qn}copy(t,e){return super.copy(t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this}getWorldDirection(t){this.updateWorldMatrix(!0,!1);const e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()}updateMatrixWorld(t){super.updateMatrixWorld(t),this.matrixWorldInverse.copy(this.matrixWorld).invert()}updateWorldMatrix(t,e){super.updateWorldMatrix(t,e),this.matrixWorldInverse.copy(this.matrixWorld).invert()}clone(){return new this.constructor().copy(this)}}class Pr extends Lr{constructor(t=50,e=1,n=.1,i=2e3){super(),this.isPerspectiveCamera=!0,this.type="PerspectiveCamera",this.fov=t,this.zoom=1,this.near=n,this.far=i,this.focus=10,this.aspect=e,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this}setFocalLength(t){const e=.5*this.getFilmHeight()/t;this.fov=2*De*Math.atan(e),this.updateProjectionMatrix()}getFocalLength(){const t=Math.tan(.5*Ie*this.fov);return .5*this.getFilmHeight()/t}getEffectiveFOV(){return 2*De*Math.atan(Math.tan(.5*Ie*this.fov)/this.zoom)}getFilmWidth(){return this.filmGauge*Math.min(this.aspect,1)}getFilmHeight(){return this.filmGauge/Math.max(this.aspect,1)}setViewOffset(t,e,n,i,r,s){this.aspect=t/e,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=this.near;let e=t*Math.tan(.5*Ie*this.fov)/this.zoom,n=2*e,i=this.aspect*n,r=-.5*i;const s=this.view;if(null!==this.view&&this.view.enabled){const t=s.fullWidth,a=s.fullHeight;r+=s.offsetX*i/t,e-=s.offsetY*n/a,i*=s.width/t,n*=s.height/a}const a=this.filmOffset;0!==a&&(r+=t*a/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,e,e-n,t,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,null!==this.view&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}}const Rr=-90;class Ir extends vi{constructor(t,e,n){super(),this.type="CubeCamera",this.renderTarget=n;const i=new Pr(Rr,1,t,e);i.layers=this.layers,i.up.set(0,1,0),i.lookAt(1,0,0),this.add(i);const r=new Pr(Rr,1,t,e);r.layers=this.layers,r.up.set(0,1,0),r.lookAt(-1,0,0),this.add(r);const s=new Pr(Rr,1,t,e);s.layers=this.layers,s.up.set(0,0,-1),s.lookAt(0,1,0),this.add(s);const a=new Pr(Rr,1,t,e);a.layers=this.layers,a.up.set(0,0,1),a.lookAt(0,-1,0),this.add(a);const o=new Pr(Rr,1,t,e);o.layers=this.layers,o.up.set(0,1,0),o.lookAt(0,0,1),this.add(o);const l=new Pr(Rr,1,t,e);l.layers=this.layers,l.up.set(0,1,0),l.lookAt(0,0,-1),this.add(l)}update(t,e){null===this.parent&&this.updateMatrixWorld();const n=this.renderTarget,[i,r,s,a,o,l]=this.children,c=t.getRenderTarget(),h=t.toneMapping,u=t.xr.enabled;t.toneMapping=W,t.xr.enabled=!1;const d=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,t.setRenderTarget(n,0),t.render(e,i),t.setRenderTarget(n,1),t.render(e,r),t.setRenderTarget(n,2),t.render(e,s),t.setRenderTarget(n,3),t.render(e,a),t.setRenderTarget(n,4),t.render(e,o),n.texture.generateMipmaps=d,t.setRenderTarget(n,5),t.render(e,l),t.setRenderTarget(c),t.toneMapping=h,t.xr.enabled=u,n.texture.needsPMREMUpdate=!0}}class Dr extends hn{constructor(t,e,n,i,r,s,a,o,l,c){super(t=void 0!==t?t:[],e=void 0!==e?e:K,n,i,r,s,a,o,l,c),this.isCubeTexture=!0,this.flipY=!1}get images(){return this.image}set images(t){this.image=t}}class Ur extends dn{constructor(t=1,e={}){super(t,t,e),this.isWebGLCubeRenderTarget=!0;const n={width:t,height:t,depth:1},i=[n,n,n,n,n,n];this.texture=new Dr(i,e.mapping,e.wrapS,e.wrapT,e.magFilter,e.minFilter,e.format,e.type,e.anisotropy,e.encoding),this.texture.isRenderTargetTexture=!0,this.texture.generateMipmaps=void 0!==e.generateMipmaps&&e.generateMipmaps,this.texture.minFilter=void 0!==e.minFilter?e.minFilter:lt}fromEquirectangularTexture(t,e){this.texture.type=e.type,this.texture.encoding=e.encoding,this.texture.generateMipmaps=e.generateMipmaps,this.texture.minFilter=e.minFilter,this.texture.magFilter=e.magFilter;const n={uniforms:{tEquirect:{value:null}},vertexShader:"\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\tvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\n\t\t\t\t\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n\n\t\t\t\t}\n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvWorldDirection = transformDirection( position, modelMatrix );\n\n\t\t\t\t\t#include \n\t\t\t\t\t#include \n\n\t\t\t\t}\n\t\t\t",fragmentShader:"\n\n\t\t\t\tuniform sampler2D tEquirect;\n\n\t\t\t\tvarying vec3 vWorldDirection;\n\n\t\t\t\t#include \n\n\t\t\t\tvoid main() {\n\n\t\t\t\t\tvec3 direction = normalize( vWorldDirection );\n\n\t\t\t\t\tvec2 sampleUV = equirectUv( direction );\n\n\t\t\t\t\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\n\t\t\t\t}\n\t\t\t"},i=new br(5,5,5),r=new Cr({name:"CubemapFromEquirect",uniforms:wr(n.uniforms),vertexShader:n.vertexShader,fragmentShader:n.fragmentShader,side:c,blending:u});r.uniforms.tEquirect.value=e;const s=new Mr(i,r),a=e.minFilter;e.minFilter===ht&&(e.minFilter=lt);return new Ir(1,10,this).update(t,s),e.minFilter=a,s.geometry.dispose(),s.material.dispose(),this}clear(t,e,n,i){const r=t.getRenderTarget();for(let r=0;r<6;r++)t.setRenderTarget(this,r),t.clear(e,n,i);t.setRenderTarget(r)}}const Nr=new gn,Or=new gn,zr=new je;class Br{constructor(t=new gn(1,0,0),e=0){this.isPlane=!0,this.normal=t,this.constant=e}set(t,e){return this.normal.copy(t),this.constant=e,this}setComponents(t,e,n,i){return this.normal.set(t,e,n),this.constant=i,this}setFromNormalAndCoplanarPoint(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this}setFromCoplanarPoints(t,e,n){const i=Nr.subVectors(n,e).cross(Or.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(i,t),this}copy(t){return this.normal.copy(t.normal),this.constant=t.constant,this}normalize(){const t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this}negate(){return this.constant*=-1,this.normal.negate(),this}distanceToPoint(t){return this.normal.dot(t)+this.constant}distanceToSphere(t){return this.distanceToPoint(t.center)-t.radius}projectPoint(t,e){return e.copy(t).addScaledVector(this.normal,-this.distanceToPoint(t))}intersectLine(t,e){const n=t.delta(Nr),i=this.normal.dot(n);if(0===i)return 0===this.distanceToPoint(t.start)?e.copy(t.start):null;const r=-(t.start.dot(this.normal)+this.constant)/i;return r<0||r>1?null:e.copy(t.start).addScaledVector(n,r)}intersectsLine(t){const e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0}intersectsBox(t){return t.intersectsPlane(this)}intersectsSphere(t){return t.intersectsPlane(this)}coplanarPoint(t){return t.copy(this.normal).multiplyScalar(-this.constant)}applyMatrix4(t,e){const n=e||zr.getNormalMatrix(t),i=this.coplanarPoint(Nr).applyMatrix4(t),r=this.normal.applyMatrix3(n).normalize();return this.constant=-i.dot(r),this}translate(t){return this.constant-=t.dot(this.normal),this}equals(t){return t.normal.equals(this.normal)&&t.constant===this.constant}clone(){return new this.constructor().copy(this)}}const Fr=new zn,kr=new gn;class Gr{constructor(t=new Br,e=new Br,n=new Br,i=new Br,r=new Br,s=new Br){this.planes=[t,e,n,i,r,s]}set(t,e,n,i,r,s){const a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(n),a[3].copy(i),a[4].copy(r),a[5].copy(s),this}copy(t){const e=this.planes;for(let n=0;n<6;n++)e[n].copy(t.planes[n]);return this}setFromProjectionMatrix(t){const e=this.planes,n=t.elements,i=n[0],r=n[1],s=n[2],a=n[3],o=n[4],l=n[5],c=n[6],h=n[7],u=n[8],d=n[9],p=n[10],m=n[11],f=n[12],g=n[13],v=n[14],_=n[15];return e[0].setComponents(a-i,h-o,m-u,_-f).normalize(),e[1].setComponents(a+i,h+o,m+u,_+f).normalize(),e[2].setComponents(a+r,h+l,m+d,_+g).normalize(),e[3].setComponents(a-r,h-l,m-d,_-g).normalize(),e[4].setComponents(a-s,h-c,m-p,_-v).normalize(),e[5].setComponents(a+s,h+c,m+p,_+v).normalize(),this}intersectsObject(t){if(void 0!==t.boundingSphere)null===t.boundingSphere&&t.computeBoundingSphere(),Fr.copy(t.boundingSphere).applyMatrix4(t.matrixWorld);else{const e=t.geometry;null===e.boundingSphere&&e.computeBoundingSphere(),Fr.copy(e.boundingSphere).applyMatrix4(t.matrixWorld)}return this.intersectsSphere(Fr)}intersectsSprite(t){return Fr.center.set(0,0,0),Fr.radius=.7071067811865476,Fr.applyMatrix4(t.matrixWorld),this.intersectsSphere(Fr)}intersectsSphere(t){const e=this.planes,n=t.center,i=-t.radius;for(let t=0;t<6;t++){if(e[t].distanceToPoint(n)0?t.max.x:t.min.x,kr.y=i.normal.y>0?t.max.y:t.min.y,kr.z=i.normal.z>0?t.max.z:t.min.z,i.distanceToPoint(kr)<0)return!1}return!0}containsPoint(t){const e=this.planes;for(let n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}clone(){return new this.constructor().copy(this)}}function Vr(){let t=null,e=!1,n=null,i=null;function r(e,s){n(e,s),i=t.requestAnimationFrame(r)}return{start:function(){!0!==e&&null!==n&&(i=t.requestAnimationFrame(r),e=!0)},stop:function(){t.cancelAnimationFrame(i),e=!1},setAnimationLoop:function(t){n=t},setContext:function(e){t=e}}}function Hr(t,e){const n=e.isWebGL2,i=new WeakMap;return{get:function(t){return t.isInterleavedBufferAttribute&&(t=t.data),i.get(t)},remove:function(e){e.isInterleavedBufferAttribute&&(e=e.data);const n=i.get(e);n&&(t.deleteBuffer(n.buffer),i.delete(e))},update:function(e,r){if(e.isGLBufferAttribute){const t=i.get(e);return void((!t||t.version 0\n\tvec4 plane;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vClipPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#pragma unroll_loop_end\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vClipPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvarying vec3 vClipPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0\n\tvClipPosition = - mvPosition.xyz;\n#endif",color_fragment:"#if defined( USE_COLOR_ALPHA )\n\tdiffuseColor *= vColor;\n#elif defined( USE_COLOR )\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR )\n\tvarying vec3 vColor;\n#endif",color_pars_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvarying vec4 vColor;\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvarying vec3 vColor;\n#endif",color_vertex:"#if defined( USE_COLOR_ALPHA )\n\tvColor = vec4( 1.0 );\n#elif defined( USE_COLOR ) || defined( USE_INSTANCING_COLOR )\n\tvColor = vec3( 1.0 );\n#endif\n#ifdef USE_COLOR\n\tvColor *= color;\n#endif\n#ifdef USE_INSTANCING_COLOR\n\tvColor.xyz *= instanceColor.xyz;\n#endif",common:"#define PI 3.141592653589793\n#define PI2 6.283185307179586\n#define PI_HALF 1.5707963267948966\n#define RECIPROCAL_PI 0.3183098861837907\n#define RECIPROCAL_PI2 0.15915494309189535\n#define EPSILON 1e-6\n#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\n#define whiteComplement( a ) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nvec3 pow2( const in vec3 x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat max3( const in vec3 v ) { return max( max( v.x, v.y ), v.z ); }\nfloat average( const in vec3 v ) { return dot( v, vec3( 0.3333333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract( sin( sn ) * c );\n}\n#ifdef HIGH_PRECISION\n\tfloat precisionSafeLength( vec3 v ) { return length( v ); }\n#else\n\tfloat precisionSafeLength( vec3 v ) {\n\t\tfloat maxComponent = max3( abs( v ) );\n\t\treturn length( v / maxComponent ) * maxComponent;\n\t}\n#endif\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal;\n#endif\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nmat3 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat luminance( const in vec3 rgb ) {\n\tconst vec3 weights = vec3( 0.2126729, 0.7151522, 0.0721750 );\n\treturn dot( weights, rgb );\n}\nbool isPerspectiveMatrix( mat4 m ) {\n\treturn m[ 2 ][ 3 ] == - 1.0;\n}\nvec2 equirectUv( in vec3 dir ) {\n\tfloat u = atan( dir.z, dir.x ) * RECIPROCAL_PI2 + 0.5;\n\tfloat v = asin( clamp( dir.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\treturn vec2( u, v );\n}\nvec3 BRDF_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n}\nfloat F_Schlick( const in float f0, const in float f90, const in float dotVH ) {\n\tfloat fresnel = exp2( ( - 5.55473 * dotVH - 6.98316 ) * dotVH );\n\treturn f0 * ( 1.0 - fresnel ) + ( f90 * fresnel );\n} // validated",cube_uv_reflection_fragment:"#ifdef ENVMAP_TYPE_CUBE_UV\n\t#define cubeUV_minMipLevel 4.0\n\t#define cubeUV_minTileSize 16.0\n\tfloat getFace( vec3 direction ) {\n\t\tvec3 absDirection = abs( direction );\n\t\tfloat face = - 1.0;\n\t\tif ( absDirection.x > absDirection.z ) {\n\t\t\tif ( absDirection.x > absDirection.y )\n\t\t\t\tface = direction.x > 0.0 ? 0.0 : 3.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t} else {\n\t\t\tif ( absDirection.z > absDirection.y )\n\t\t\t\tface = direction.z > 0.0 ? 2.0 : 5.0;\n\t\t\telse\n\t\t\t\tface = direction.y > 0.0 ? 1.0 : 4.0;\n\t\t}\n\t\treturn face;\n\t}\n\tvec2 getUV( vec3 direction, float face ) {\n\t\tvec2 uv;\n\t\tif ( face == 0.0 ) {\n\t\t\tuv = vec2( direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 1.0 ) {\n\t\t\tuv = vec2( - direction.x, - direction.z ) / abs( direction.y );\n\t\t} else if ( face == 2.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.y ) / abs( direction.z );\n\t\t} else if ( face == 3.0 ) {\n\t\t\tuv = vec2( - direction.z, direction.y ) / abs( direction.x );\n\t\t} else if ( face == 4.0 ) {\n\t\t\tuv = vec2( - direction.x, direction.z ) / abs( direction.y );\n\t\t} else {\n\t\t\tuv = vec2( direction.x, direction.y ) / abs( direction.z );\n\t\t}\n\t\treturn 0.5 * ( uv + 1.0 );\n\t}\n\tvec3 bilinearCubeUV( sampler2D envMap, vec3 direction, float mipInt ) {\n\t\tfloat face = getFace( direction );\n\t\tfloat filterInt = max( cubeUV_minMipLevel - mipInt, 0.0 );\n\t\tmipInt = max( mipInt, cubeUV_minMipLevel );\n\t\tfloat faceSize = exp2( mipInt );\n\t\thighp vec2 uv = getUV( direction, face ) * ( faceSize - 2.0 ) + 1.0;\n\t\tif ( face > 2.0 ) {\n\t\t\tuv.y += faceSize;\n\t\t\tface -= 3.0;\n\t\t}\n\t\tuv.x += face * faceSize;\n\t\tuv.x += filterInt * 3.0 * cubeUV_minTileSize;\n\t\tuv.y += 4.0 * ( exp2( CUBEUV_MAX_MIP ) - faceSize );\n\t\tuv.x *= CUBEUV_TEXEL_WIDTH;\n\t\tuv.y *= CUBEUV_TEXEL_HEIGHT;\n\t\t#ifdef texture2DGradEXT\n\t\t\treturn texture2DGradEXT( envMap, uv, vec2( 0.0 ), vec2( 0.0 ) ).rgb;\n\t\t#else\n\t\t\treturn texture2D( envMap, uv ).rgb;\n\t\t#endif\n\t}\n\t#define cubeUV_r0 1.0\n\t#define cubeUV_v0 0.339\n\t#define cubeUV_m0 - 2.0\n\t#define cubeUV_r1 0.8\n\t#define cubeUV_v1 0.276\n\t#define cubeUV_m1 - 1.0\n\t#define cubeUV_r4 0.4\n\t#define cubeUV_v4 0.046\n\t#define cubeUV_m4 2.0\n\t#define cubeUV_r5 0.305\n\t#define cubeUV_v5 0.016\n\t#define cubeUV_m5 3.0\n\t#define cubeUV_r6 0.21\n\t#define cubeUV_v6 0.0038\n\t#define cubeUV_m6 4.0\n\tfloat roughnessToMip( float roughness ) {\n\t\tfloat mip = 0.0;\n\t\tif ( roughness >= cubeUV_r1 ) {\n\t\t\tmip = ( cubeUV_r0 - roughness ) * ( cubeUV_m1 - cubeUV_m0 ) / ( cubeUV_r0 - cubeUV_r1 ) + cubeUV_m0;\n\t\t} else if ( roughness >= cubeUV_r4 ) {\n\t\t\tmip = ( cubeUV_r1 - roughness ) * ( cubeUV_m4 - cubeUV_m1 ) / ( cubeUV_r1 - cubeUV_r4 ) + cubeUV_m1;\n\t\t} else if ( roughness >= cubeUV_r5 ) {\n\t\t\tmip = ( cubeUV_r4 - roughness ) * ( cubeUV_m5 - cubeUV_m4 ) / ( cubeUV_r4 - cubeUV_r5 ) + cubeUV_m4;\n\t\t} else if ( roughness >= cubeUV_r6 ) {\n\t\t\tmip = ( cubeUV_r5 - roughness ) * ( cubeUV_m6 - cubeUV_m5 ) / ( cubeUV_r5 - cubeUV_r6 ) + cubeUV_m5;\n\t\t} else {\n\t\t\tmip = - 2.0 * log2( 1.16 * roughness );\t\t}\n\t\treturn mip;\n\t}\n\tvec4 textureCubeUV( sampler2D envMap, vec3 sampleDir, float roughness ) {\n\t\tfloat mip = clamp( roughnessToMip( roughness ), cubeUV_m0, CUBEUV_MAX_MIP );\n\t\tfloat mipF = fract( mip );\n\t\tfloat mipInt = floor( mip );\n\t\tvec3 color0 = bilinearCubeUV( envMap, sampleDir, mipInt );\n\t\tif ( mipF == 0.0 ) {\n\t\t\treturn vec4( color0, 1.0 );\n\t\t} else {\n\t\t\tvec3 color1 = bilinearCubeUV( envMap, sampleDir, mipInt + 1.0 );\n\t\t\treturn vec4( mix( color0, color1, mipF ), 1.0 );\n\t\t}\n\t}\n#endif",defaultnormal_vertex:"vec3 transformedNormal = objectNormal;\n#ifdef USE_INSTANCING\n\tmat3 m = mat3( instanceMatrix );\n\ttransformedNormal /= vec3( dot( m[ 0 ], m[ 0 ] ), dot( m[ 1 ], m[ 1 ] ), dot( m[ 2 ], m[ 2 ] ) );\n\ttransformedNormal = m * transformedNormal;\n#endif\ntransformedNormal = normalMatrix * transformedNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = ( modelViewMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, vDisplacementMapUv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vEmissiveMapUv );\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",encodings_pars_fragment:"vec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.a );\n}",envmap_fragment:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvec3 cameraToFrag;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToFrag = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToFrag = normalize( vWorldPosition - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToFrag, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToFrag, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif",envmap_common_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float envMapIntensity;\n\tuniform float flipEnvMap;\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\t\n#endif",envmap_pars_fragment:"#ifdef USE_ENVMAP\n\tuniform float reflectivity;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\tvarying vec3 vWorldPosition;\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( LAMBERT )\n\t\t#define ENV_WORLDPOS\n\t#endif\n\t#ifdef ENV_WORLDPOS\n\t\t\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif",envmap_physical_pars_fragment:"#if defined( USE_ENVMAP )\n\tvec3 getIBLIrradiance( const in vec3 normal ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, worldNormal, 1.0 );\n\t\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n\tvec3 getIBLRadiance( const in vec3 viewDir, const in vec3 normal, const in float roughness ) {\n\t\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 reflectVec = reflect( - viewDir, normal );\n\t\t\treflectVec = normalize( mix( reflectVec, normal, roughness * roughness) );\n\t\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\t\tvec4 envMapColor = textureCubeUV( envMap, reflectVec, roughness );\n\t\t\treturn envMapColor.rgb * envMapIntensity;\n\t\t#else\n\t\t\treturn vec3( 0.0 );\n\t\t#endif\n\t}\n#endif",envmap_vertex:"#ifdef USE_ENVMAP\n\t#ifdef ENV_WORLDPOS\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex;\n\t\tif ( isOrthographic ) {\n\t\t\tcameraToVertex = normalize( vec3( - viewMatrix[ 0 ][ 2 ], - viewMatrix[ 1 ][ 2 ], - viewMatrix[ 2 ][ 2 ] ) );\n\t\t} else {\n\t\t\tcameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\t}\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif",fog_vertex:"#ifdef USE_FOG\n\tvFogDepth = - mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float vFogDepth;\n#endif",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = 1.0 - exp( - fogDensity * fogDensity * vFogDepth * vFogDepth );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, vFogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float vFogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif",gradientmap_pars_fragment:"#ifdef USE_GRADIENTMAP\n\tuniform sampler2D gradientMap;\n#endif\nvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\tfloat dotNL = dot( normal, lightDirection );\n\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t#ifdef USE_GRADIENTMAP\n\t\treturn vec3( texture2D( gradientMap, coord ).r );\n\t#else\n\t\tvec2 fw = fwidth( coord ) * 0.5;\n\t\treturn mix( vec3( 0.7 ), vec3( 1.0 ), smoothstep( 0.7 - fw.x, 0.7 + fw.x, coord.x ) );\n\t#endif\n}",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\treflectedLight.indirectDiffuse += lightMapIrradiance;\n#endif",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_fragment:"LambertMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularStrength = specularStrength;",lights_lambert_pars_fragment:"varying vec3 vViewPosition;\nstruct LambertMaterial {\n\tvec3 diffuseColor;\n\tfloat specularStrength;\n};\nvoid RE_Direct_Lambert( const in IncidentLight directLight, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Lambert( const in vec3 irradiance, const in GeometricContext geometry, const in LambertMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Lambert\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Lambert",lights_pars_begin:"uniform bool receiveShadow;\nuniform vec3 ambientLightColor;\nuniform vec3 lightProbe[ 9 ];\nvec3 shGetIrradianceAt( in vec3 normal, in vec3 shCoefficients[ 9 ] ) {\n\tfloat x = normal.x, y = normal.y, z = normal.z;\n\tvec3 result = shCoefficients[ 0 ] * 0.886227;\n\tresult += shCoefficients[ 1 ] * 2.0 * 0.511664 * y;\n\tresult += shCoefficients[ 2 ] * 2.0 * 0.511664 * z;\n\tresult += shCoefficients[ 3 ] * 2.0 * 0.511664 * x;\n\tresult += shCoefficients[ 4 ] * 2.0 * 0.429043 * x * y;\n\tresult += shCoefficients[ 5 ] * 2.0 * 0.429043 * y * z;\n\tresult += shCoefficients[ 6 ] * ( 0.743125 * z * z - 0.247708 );\n\tresult += shCoefficients[ 7 ] * 2.0 * 0.429043 * x * z;\n\tresult += shCoefficients[ 8 ] * 0.429043 * ( x * x - y * y );\n\treturn result;\n}\nvec3 getLightProbeIrradiance( const in vec3 lightProbe[ 9 ], const in vec3 normal ) {\n\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\tvec3 irradiance = shGetIrradianceAt( worldNormal, lightProbe );\n\treturn irradiance;\n}\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\treturn irradiance;\n}\nfloat getDistanceAttenuation( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t#if defined ( LEGACY_LIGHTS )\n\t\tif ( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\t\treturn pow( saturate( - lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t\t}\n\t\treturn 1.0;\n\t#else\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tif ( cutoffDistance > 0.0 ) {\n\t\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t}\n\t\treturn distanceFalloff;\n\t#endif\n}\nfloat getSpotAttenuation( const in float coneCosine, const in float penumbraCosine, const in float angleCosine ) {\n\treturn smoothstep( coneCosine, penumbraCosine, angleCosine );\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalLightInfo( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tlight.color = directionalLight.color;\n\t\tlight.direction = directionalLight.direction;\n\t\tlight.visible = true;\n\t}\n#endif\n#if NUM_POINT_LIGHTS > 0\n\tstruct PointLight {\n\t\tvec3 position;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointLightInfo( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tlight.color = pointLight.color;\n\t\tlight.color *= getDistanceAttenuation( lightDistance, pointLight.distance, pointLight.decay );\n\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tstruct SpotLight {\n\t\tvec3 position;\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tfloat distance;\n\t\tfloat decay;\n\t\tfloat coneCos;\n\t\tfloat penumbraCos;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotLightInfo( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight light ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tlight.direction = normalize( lVector );\n\t\tfloat angleCos = dot( light.direction, spotLight.direction );\n\t\tfloat spotAttenuation = getSpotAttenuation( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\tif ( spotAttenuation > 0.0 ) {\n\t\t\tfloat lightDistance = length( lVector );\n\t\t\tlight.color = spotLight.color * spotAttenuation;\n\t\t\tlight.color *= getDistanceAttenuation( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tlight.visible = ( light.color != vec3( 0.0 ) );\n\t\t} else {\n\t\t\tlight.color = vec3( 0.0 );\n\t\t\tlight.visible = false;\n\t\t}\n\t}\n#endif\n#if NUM_RECT_AREA_LIGHTS > 0\n\tstruct RectAreaLight {\n\t\tvec3 color;\n\t\tvec3 position;\n\t\tvec3 halfWidth;\n\t\tvec3 halfHeight;\n\t};\n\tuniform sampler2D ltc_1;\tuniform sampler2D ltc_2;\n\tuniform RectAreaLight rectAreaLights[ NUM_RECT_AREA_LIGHTS ];\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tstruct HemisphereLight {\n\t\tvec3 direction;\n\t\tvec3 skyColor;\n\t\tvec3 groundColor;\n\t};\n\tuniform HemisphereLight hemisphereLights[ NUM_HEMI_LIGHTS ];\n\tvec3 getHemisphereLightIrradiance( const in HemisphereLight hemiLight, const in vec3 normal ) {\n\t\tfloat dotNL = dot( normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\treturn irradiance;\n\t}\n#endif",lights_toon_fragment:"ToonMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;",lights_toon_pars_fragment:"varying vec3 vViewPosition;\nstruct ToonMaterial {\n\tvec3 diffuseColor;\n};\nvoid RE_Direct_Toon( const in IncidentLight directLight, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Toon( const in vec3 irradiance, const in GeometricContext geometry, const in ToonMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Toon\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Toon",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",lights_phong_pars_fragment:"varying vec3 vViewPosition;\nstruct BlinnPhongMaterial {\n\tvec3 diffuseColor;\n\tvec3 specularColor;\n\tfloat specularShininess;\n\tfloat specularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_BlinnPhong( directLight.direction, geometry.viewDir, geometry.normal, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nvec3 dxy = max( abs( dFdx( geometryNormal ) ), abs( dFdy( geometryNormal ) ) );\nfloat geometryRoughness = max( max( dxy.x, dxy.y ), dxy.z );\nmaterial.roughness = max( roughnessFactor, 0.0525 );material.roughness += geometryRoughness;\nmaterial.roughness = min( material.roughness, 1.0 );\n#ifdef IOR\n\tmaterial.ior = ior;\n\t#ifdef USE_SPECULAR\n\t\tfloat specularIntensityFactor = specularIntensity;\n\t\tvec3 specularColorFactor = specularColor;\n\t\t#ifdef USE_SPECULAR_COLORMAP\n\t\t\tspecularColorFactor *= texture2D( specularColorMap, vSpecularColorMapUv ).rgb;\n\t\t#endif\n\t\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\t\tspecularIntensityFactor *= texture2D( specularIntensityMap, vSpecularIntensityMapUv ).a;\n\t\t#endif\n\t\tmaterial.specularF90 = mix( specularIntensityFactor, 1.0, metalnessFactor );\n\t#else\n\t\tfloat specularIntensityFactor = 1.0;\n\t\tvec3 specularColorFactor = vec3( 1.0 );\n\t\tmaterial.specularF90 = 1.0;\n\t#endif\n\tmaterial.specularColor = mix( min( pow2( ( material.ior - 1.0 ) / ( material.ior + 1.0 ) ) * specularColorFactor, vec3( 1.0 ) ) * specularIntensityFactor, diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.specularF90 = 1.0;\n#endif\n#ifdef USE_CLEARCOAT\n\tmaterial.clearcoat = clearcoat;\n\tmaterial.clearcoatRoughness = clearcoatRoughness;\n\tmaterial.clearcoatF0 = vec3( 0.04 );\n\tmaterial.clearcoatF90 = 1.0;\n\t#ifdef USE_CLEARCOATMAP\n\t\tmaterial.clearcoat *= texture2D( clearcoatMap, vClearcoatMapUv ).x;\n\t#endif\n\t#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\t\tmaterial.clearcoatRoughness *= texture2D( clearcoatRoughnessMap, vClearcoatRoughnessMapUv ).y;\n\t#endif\n\tmaterial.clearcoat = saturate( material.clearcoat );\tmaterial.clearcoatRoughness = max( material.clearcoatRoughness, 0.0525 );\n\tmaterial.clearcoatRoughness += geometryRoughness;\n\tmaterial.clearcoatRoughness = min( material.clearcoatRoughness, 1.0 );\n#endif\n#ifdef USE_IRIDESCENCE\n\tmaterial.iridescence = iridescence;\n\tmaterial.iridescenceIOR = iridescenceIOR;\n\t#ifdef USE_IRIDESCENCEMAP\n\t\tmaterial.iridescence *= texture2D( iridescenceMap, vIridescenceMapUv ).r;\n\t#endif\n\t#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\t\tmaterial.iridescenceThickness = (iridescenceThicknessMaximum - iridescenceThicknessMinimum) * texture2D( iridescenceThicknessMap, vIridescenceThicknessMapUv ).g + iridescenceThicknessMinimum;\n\t#else\n\t\tmaterial.iridescenceThickness = iridescenceThicknessMaximum;\n\t#endif\n#endif\n#ifdef USE_SHEEN\n\tmaterial.sheenColor = sheenColor;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tmaterial.sheenColor *= texture2D( sheenColorMap, vSheenColorMapUv ).rgb;\n\t#endif\n\tmaterial.sheenRoughness = clamp( sheenRoughness, 0.07, 1.0 );\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tmaterial.sheenRoughness *= texture2D( sheenRoughnessMap, vSheenRoughnessMapUv ).a;\n\t#endif\n#endif",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3 diffuseColor;\n\tfloat roughness;\n\tvec3 specularColor;\n\tfloat specularF90;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat clearcoat;\n\t\tfloat clearcoatRoughness;\n\t\tvec3 clearcoatF0;\n\t\tfloat clearcoatF90;\n\t#endif\n\t#ifdef USE_IRIDESCENCE\n\t\tfloat iridescence;\n\t\tfloat iridescenceIOR;\n\t\tfloat iridescenceThickness;\n\t\tvec3 iridescenceFresnel;\n\t\tvec3 iridescenceF0;\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tvec3 sheenColor;\n\t\tfloat sheenRoughness;\n\t#endif\n\t#ifdef IOR\n\t\tfloat ior;\n\t#endif\n\t#ifdef USE_TRANSMISSION\n\t\tfloat transmission;\n\t\tfloat transmissionAlpha;\n\t\tfloat thickness;\n\t\tfloat attenuationDistance;\n\t\tvec3 attenuationColor;\n\t#endif\n};\nvec3 clearcoatSpecular = vec3( 0.0 );\nvec3 sheenSpecular = vec3( 0.0 );\nvec3 Schlick_to_F0( const in vec3 f, const in float f90, const in float dotVH ) {\n float x = clamp( 1.0 - dotVH, 0.0, 1.0 );\n float x2 = x * x;\n float x5 = clamp( x * x2 * x2, 0.0, 0.9999 );\n return ( f - vec3( f90 ) * x5 ) / ( 1.0 - x5 );\n}\nfloat V_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\n#ifdef USE_CLEARCOAT\n\tvec3 BRDF_GGX_Clearcoat( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material) {\n\t\tvec3 f0 = material.clearcoatF0;\n\t\tfloat f90 = material.clearcoatF90;\n\t\tfloat roughness = material.clearcoatRoughness;\n\t\tfloat alpha = pow2( roughness );\n\t\tvec3 halfDir = normalize( lightDir + viewDir );\n\t\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\t\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\t\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\t\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\t\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\t\tfloat D = D_GGX( alpha, dotNH );\n\t\treturn F * ( V * D );\n\t}\n#endif\nvec3 BRDF_GGX( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, const in PhysicalMaterial material ) {\n\tvec3 f0 = material.specularColor;\n\tfloat f90 = material.specularF90;\n\tfloat roughness = material.roughness;\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat dotVH = saturate( dot( viewDir, halfDir ) );\n\tvec3 F = F_Schlick( f0, f90, dotVH );\n\t#ifdef USE_IRIDESCENCE\n\t\tF = mix( F, material.iridescenceFresnel, material.iridescence );\n\t#endif\n\tfloat V = V_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( V * D );\n}\nvec2 LTC_Uv( const in vec3 N, const in vec3 V, const in float roughness ) {\n\tconst float LUT_SIZE = 64.0;\n\tconst float LUT_SCALE = ( LUT_SIZE - 1.0 ) / LUT_SIZE;\n\tconst float LUT_BIAS = 0.5 / LUT_SIZE;\n\tfloat dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\n\tuv = uv * LUT_SCALE + LUT_BIAS;\n\treturn uv;\n}\nfloat LTC_ClippedSphereFormFactor( const in vec3 f ) {\n\tfloat l = length( f );\n\treturn max( ( l * l + f.z ) / ( l + 1.0 ), 0.0 );\n}\nvec3 LTC_EdgeVectorFormFactor( const in vec3 v1, const in vec3 v2 ) {\n\tfloat x = dot( v1, v2 );\n\tfloat y = abs( x );\n\tfloat a = 0.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - v;\n\treturn cross( v1, v2 ) * theta_sintheta;\n}\nvec3 LTC_Evaluate( const in vec3 N, const in vec3 V, const in vec3 P, const in mat3 mInv, const in vec3 rectCoords[ 4 ] ) {\n\tvec3 v1 = rectCoords[ 1 ] - rectCoords[ 0 ];\n\tvec3 v2 = rectCoords[ 3 ] - rectCoords[ 0 ];\n\tvec3 lightNormal = cross( v1, v2 );\n\tif( dot( lightNormal, P - rectCoords[ 0 ] ) < 0.0 ) return vec3( 0.0 );\n\tvec3 T1, T2;\n\tT1 = normalize( V - N * dot( V, N ) );\n\tT2 = - cross( N, T1 );\n\tmat3 mat = mInv * transposeMat3( mat3( T1, T2, N ) );\n\tvec3 coords[ 4 ];\n\tcoords[ 0 ] = mat * ( rectCoords[ 0 ] - P );\n\tcoords[ 1 ] = mat * ( rectCoords[ 1 ] - P );\n\tcoords[ 2 ] = mat * ( rectCoords[ 2 ] - P );\n\tcoords[ 3 ] = mat * ( rectCoords[ 3 ] - P );\n\tcoords[ 0 ] = normalize( coords[ 0 ] );\n\tcoords[ 1 ] = normalize( coords[ 1 ] );\n\tcoords[ 2 ] = normalize( coords[ 2 ] );\n\tcoords[ 3 ] = normalize( coords[ 3 ] );\n\tvec3 vectorFormFactor = vec3( 0.0 );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 0 ], coords[ 1 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 1 ], coords[ 2 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 2 ], coords[ 3 ] );\n\tvectorFormFactor += LTC_EdgeVectorFormFactor( coords[ 3 ], coords[ 0 ] );\n\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( result );\n}\n#if defined( USE_SHEEN )\nfloat D_Charlie( float roughness, float dotNH ) {\n\tfloat alpha = pow2( roughness );\n\tfloat invAlpha = 1.0 / alpha;\n\tfloat cos2h = dotNH * dotNH;\n\tfloat sin2h = max( 1.0 - cos2h, 0.0078125 );\n\treturn ( 2.0 + invAlpha ) * pow( sin2h, invAlpha * 0.5 ) / ( 2.0 * PI );\n}\nfloat V_Neubelt( float dotNV, float dotNL ) {\n\treturn saturate( 1.0 / ( 4.0 * ( dotNL + dotNV - dotNL * dotNV ) ) );\n}\nvec3 BRDF_Sheen( const in vec3 lightDir, const in vec3 viewDir, const in vec3 normal, vec3 sheenColor, const in float sheenRoughness ) {\n\tvec3 halfDir = normalize( lightDir + viewDir );\n\tfloat dotNL = saturate( dot( normal, lightDir ) );\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat dotNH = saturate( dot( normal, halfDir ) );\n\tfloat D = D_Charlie( sheenRoughness, dotNH );\n\tfloat V = V_Neubelt( dotNV, dotNL );\n\treturn sheenColor * ( D * V );\n}\n#endif\nfloat IBLSheenBRDF( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tfloat r2 = roughness * roughness;\n\tfloat a = roughness < 0.25 ? -339.2 * r2 + 161.4 * roughness - 25.9 : -8.48 * r2 + 14.3 * roughness - 9.95;\n\tfloat b = roughness < 0.25 ? 44.0 * r2 - 23.7 * roughness + 3.26 : 1.97 * r2 - 3.27 * roughness + 0.72;\n\tfloat DG = exp( a * dotNV + b ) + ( roughness < 0.25 ? 0.0 : 0.1 * ( roughness - 0.25 ) );\n\treturn saturate( DG * RECIPROCAL_PI );\n}\nvec2 DFGApprox( const in vec3 normal, const in vec3 viewDir, const in float roughness ) {\n\tfloat dotNV = saturate( dot( normal, viewDir ) );\n\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 fab = vec2( - 1.04, 1.04 ) * a004 + r.zw;\n\treturn fab;\n}\nvec3 EnvironmentBRDF( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness ) {\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\treturn specularColor * fab.x + specularF90 * fab.y;\n}\n#ifdef USE_IRIDESCENCE\nvoid computeMultiscatteringIridescence( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float iridescence, const in vec3 iridescenceF0, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#else\nvoid computeMultiscattering( const in vec3 normal, const in vec3 viewDir, const in vec3 specularColor, const in float specularF90, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n#endif\n\tvec2 fab = DFGApprox( normal, viewDir, roughness );\n\t#ifdef USE_IRIDESCENCE\n\t\tvec3 Fr = mix( specularColor, iridescenceF0, iridescence );\n\t#else\n\t\tvec3 Fr = specularColor;\n\t#endif\n\tvec3 FssEss = Fr * fab.x + specularF90 * fab.y;\n\tfloat Ess = fab.x + fab.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = Fr + ( 1.0 - Fr ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;\n\t\tvec3 lightPos = rectAreaLight.position;\n\t\tvec3 halfWidth = rectAreaLight.halfWidth;\n\t\tvec3 halfHeight = rectAreaLight.halfHeight;\n\t\tvec3 lightColor = rectAreaLight.color;\n\t\tfloat roughness = material.roughness;\n\t\tvec3 rectCoords[ 4 ];\n\t\trectCoords[ 0 ] = lightPos + halfWidth - halfHeight;\t\trectCoords[ 1 ] = lightPos - halfWidth - halfHeight;\n\t\trectCoords[ 2 ] = lightPos - halfWidth + halfHeight;\n\t\trectCoords[ 3 ] = lightPos + halfWidth + halfHeight;\n\t\tvec2 uv = LTC_Uv( normal, viewDir, roughness );\n\t\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3( 0, 1, 0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), rectCoords );\n\t}\n#endif\nvoid RE_Direct_Physical( const in IncidentLight directLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\tvec3 irradiance = dotNL * directLight.color;\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNLcc = saturate( dot( geometry.clearcoatNormal, directLight.direction ) );\n\t\tvec3 ccIrradiance = dotNLcc * directLight.color;\n\t\tclearcoatSpecular += ccIrradiance * BRDF_GGX_Clearcoat( directLight.direction, geometry.viewDir, geometry.clearcoatNormal, material );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * BRDF_Sheen( directLight.direction, geometry.viewDir, geometry.normal, material.sheenColor, material.sheenRoughness );\n\t#endif\n\treflectedLight.directSpecular += irradiance * BRDF_GGX( directLight.direction, geometry.viewDir, geometry.normal, material );\n\treflectedLight.directDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectDiffuse_Physical( const in vec3 irradiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, const in vec3 clearcoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight) {\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatSpecular += clearcoatRadiance * EnvironmentBRDF( geometry.clearcoatNormal, geometry.viewDir, material.clearcoatF0, material.clearcoatF90, material.clearcoatRoughness );\n\t#endif\n\t#ifdef USE_SHEEN\n\t\tsheenSpecular += irradiance * material.sheenColor * IBLSheenBRDF( geometry.normal, geometry.viewDir, material.sheenRoughness );\n\t#endif\n\tvec3 singleScattering = vec3( 0.0 );\n\tvec3 multiScattering = vec3( 0.0 );\n\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t#ifdef USE_IRIDESCENCE\n\t\tcomputeMultiscatteringIridescence( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.iridescence, material.iridescenceFresnel, material.roughness, singleScattering, multiScattering );\n\t#else\n\t\tcomputeMultiscattering( geometry.normal, geometry.viewDir, material.specularColor, material.specularF90, material.roughness, singleScattering, multiScattering );\n\t#endif\n\tvec3 totalScattering = singleScattering + multiScattering;\n\tvec3 diffuse = material.diffuseColor * ( 1.0 - max( max( totalScattering.r, totalScattering.g ), totalScattering.b ) );\n\treflectedLight.indirectSpecular += radiance * singleScattering;\n\treflectedLight.indirectSpecular += multiScattering * cosineWeightedIrradiance;\n\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}",lights_fragment_begin:"\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = ( isOrthographic ) ? vec3( 0, 0, 1 ) : normalize( vViewPosition );\n#ifdef USE_CLEARCOAT\n\tgeometry.clearcoatNormal = clearcoatNormal;\n#endif\n#ifdef USE_IRIDESCENCE\n\tfloat dotNVi = saturate( dot( normal, geometry.viewDir ) );\n\tif ( material.iridescenceThickness == 0.0 ) {\n\t\tmaterial.iridescence = 0.0;\n\t} else {\n\t\tmaterial.iridescence = saturate( material.iridescence );\n\t}\n\tif ( material.iridescence > 0.0 ) {\n\t\tmaterial.iridescenceFresnel = evalIridescence( 1.0, material.iridescenceIOR, dotNVi, material.iridescenceThickness, material.specularColor );\n\t\tmaterial.iridescenceF0 = Schlick_to_F0( material.iridescenceFresnel, 1.0, dotNVi );\n\t}\n#endif\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointLightInfo( pointLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_POINT_LIGHT_SHADOWS )\n\t\tpointLightShadow = pointLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getPointShadow( pointShadowMap[ i ], pointLightShadow.shadowMapSize, pointLightShadow.shadowBias, pointLightShadow.shadowRadius, vPointShadowCoord[ i ], pointLightShadow.shadowCameraNear, pointLightShadow.shadowCameraFar ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tvec4 spotColor;\n\tvec3 spotLightCoord;\n\tbool inSpotLightMap;\n\t#if defined( USE_SHADOWMAP ) && NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotLightInfo( spotLight, geometry, directLight );\n\t\t#if ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#define SPOT_LIGHT_MAP_INDEX UNROLLED_LOOP_INDEX\n\t\t#elif ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t#define SPOT_LIGHT_MAP_INDEX NUM_SPOT_LIGHT_MAPS\n\t\t#else\n\t\t#define SPOT_LIGHT_MAP_INDEX ( UNROLLED_LOOP_INDEX - NUM_SPOT_LIGHT_SHADOWS + NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS )\n\t\t#endif\n\t\t#if ( SPOT_LIGHT_MAP_INDEX < NUM_SPOT_LIGHT_MAPS )\n\t\t\tspotLightCoord = vSpotLightCoord[ i ].xyz / vSpotLightCoord[ i ].w;\n\t\t\tinSpotLightMap = all( lessThan( abs( spotLightCoord * 2. - 1. ), vec3( 1.0 ) ) );\n\t\t\tspotColor = texture2D( spotLightMap[ SPOT_LIGHT_MAP_INDEX ], spotLightCoord.xy );\n\t\t\tdirectLight.color = inSpotLightMap ? directLight.color * spotColor.rgb : directLight.color;\n\t\t#endif\n\t\t#undef SPOT_LIGHT_MAP_INDEX\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\tspotLightShadow = spotLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( spotShadowMap[ i ], spotLightShadow.shadowMapSize, spotLightShadow.shadowBias, spotLightShadow.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\t#if defined( USE_SHADOWMAP ) && NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLightShadow;\n\t#endif\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalLightInfo( directionalLight, geometry, directLight );\n\t\t#if defined( USE_SHADOWMAP ) && ( UNROLLED_LOOP_INDEX < NUM_DIR_LIGHT_SHADOWS )\n\t\tdirectionalLightShadow = directionalLightShadows[ i ];\n\t\tdirectLight.color *= ( directLight.visible && receiveShadow ) ? getShadow( directionalShadowMap[ i ], directionalLightShadow.shadowMapSize, directionalLightShadow.shadowBias, directionalLightShadow.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if ( NUM_RECT_AREA_LIGHTS > 0 ) && defined( RE_Direct_RectArea )\n\tRectAreaLight rectAreaLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_RECT_AREA_LIGHTS; i ++ ) {\n\t\trectAreaLight = rectAreaLights[ i ];\n\t\tRE_Direct_RectArea( rectAreaLight, geometry, material, reflectedLight );\n\t}\n\t#pragma unroll_loop_end\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 iblIrradiance = vec3( 0.0 );\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\tirradiance += getLightProbeIrradiance( lightProbe, geometry.normal );\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry.normal );\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearcoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\tvec3 lightMapIrradiance = lightMapTexel.rgb * lightMapIntensity;\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( STANDARD ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tiblIrradiance += getIBLIrradiance( geometry.normal );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getIBLRadiance( geometry.viewDir, geometry.normal, material.roughness );\n\t#ifdef USE_CLEARCOAT\n\t\tclearcoatRadiance += getIBLRadiance( geometry.viewDir, geometry.clearcoatNormal, material.clearcoatRoughness );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, iblIrradiance, clearcoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = vIsPerspective == 0.0 ? gl_FragCoord.z : log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n\tvarying float vIsPerspective;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t\tvarying float vIsPerspective;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t\tvIsPerspective = float( isPerspectiveMatrix( projectionMatrix ) );\n\t#else\n\t\tif ( isPerspectiveMatrix( projectionMatrix ) ) {\n\t\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\t\tgl_Position.z *= gl_Position.w;\n\t\t}\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 sampledDiffuseColor = texture2D( map, vMapUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\tsampledDiffuseColor = vec4( mix( pow( sampledDiffuseColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), sampledDiffuseColor.rgb * 0.0773993808, vec3( lessThanEqual( sampledDiffuseColor.rgb, vec3( 0.04045 ) ) ) ), sampledDiffuseColor.w );\n\t#endif\n\tdiffuseColor *= sampledDiffuseColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t#if defined( USE_POINTS_UV )\n\t\tvec2 uv = vUv;\n\t#else\n\t\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tdiffuseColor *= texture2D( map, uv );\n#endif\n#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, uv ).g;\n#endif",map_particle_pars_fragment:"#if defined( USE_POINTS_UV )\n\tvarying vec2 vUv;\n#else\n\t#if defined( USE_MAP ) || defined( USE_ALPHAMAP )\n\t\tuniform mat3 uvTransform;\n\t#endif\n#endif\n#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vMetalnessMapUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphcolor_vertex:"#if defined( USE_MORPHCOLORS ) && defined( MORPHTARGETS_TEXTURE )\n\tvColor *= morphTargetBaseInfluence;\n\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t#if defined( USE_COLOR_ALPHA )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ) * morphTargetInfluences[ i ];\n\t\t#elif defined( USE_COLOR )\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) vColor += getMorph( gl_VertexID, i, 2 ).rgb * morphTargetInfluences[ i ];\n\t\t#endif\n\t}\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) objectNormal += getMorph( gl_VertexID, i, 1 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\tobjectNormal += morphNormal0 * morphTargetInfluences[ 0 ];\n\t\tobjectNormal += morphNormal1 * morphTargetInfluences[ 1 ];\n\t\tobjectNormal += morphNormal2 * morphTargetInfluences[ 2 ];\n\t\tobjectNormal += morphNormal3 * morphTargetInfluences[ 3 ];\n\t#endif\n#endif",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\tuniform float morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tuniform float morphTargetInfluences[ MORPHTARGETS_COUNT ];\n\t\tuniform sampler2DArray morphTargetsTexture;\n\t\tuniform ivec2 morphTargetsTextureSize;\n\t\tvec4 getMorph( const in int vertexIndex, const in int morphTargetIndex, const in int offset ) {\n\t\t\tint texelIndex = vertexIndex * MORPHTARGETS_TEXTURE_STRIDE + offset;\n\t\t\tint y = texelIndex / morphTargetsTextureSize.x;\n\t\t\tint x = texelIndex - y * morphTargetsTextureSize.x;\n\t\t\tivec3 morphUV = ivec3( x, y, morphTargetIndex );\n\t\t\treturn texelFetch( morphTargetsTexture, morphUV, 0 );\n\t\t}\n\t#else\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\tuniform float morphTargetInfluences[ 8 ];\n\t\t#else\n\t\t\tuniform float morphTargetInfluences[ 4 ];\n\t\t#endif\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed *= morphTargetBaseInfluence;\n\t#ifdef MORPHTARGETS_TEXTURE\n\t\tfor ( int i = 0; i < MORPHTARGETS_COUNT; i ++ ) {\n\t\t\tif ( morphTargetInfluences[ i ] != 0.0 ) transformed += getMorph( gl_VertexID, i, 0 ).xyz * morphTargetInfluences[ i ];\n\t\t}\n\t#else\n\t\ttransformed += morphTarget0 * morphTargetInfluences[ 0 ];\n\t\ttransformed += morphTarget1 * morphTargetInfluences[ 1 ];\n\t\ttransformed += morphTarget2 * morphTargetInfluences[ 2 ];\n\t\ttransformed += morphTarget3 * morphTargetInfluences[ 3 ];\n\t\t#ifndef USE_MORPHNORMALS\n\t\t\ttransformed += morphTarget4 * morphTargetInfluences[ 4 ];\n\t\t\ttransformed += morphTarget5 * morphTargetInfluences[ 5 ];\n\t\t\ttransformed += morphTarget6 * morphTargetInfluences[ 6 ];\n\t\t\ttransformed += morphTarget7 * morphTargetInfluences[ 7 ];\n\t\t#endif\n\t#endif\n#endif",normal_fragment_begin:"float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;\n#ifdef FLAT_SHADED\n\tvec3 fdx = dFdx( vViewPosition );\n\tvec3 fdy = dFdy( vViewPosition );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_NORMALMAP_TANGENTSPACE\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn = getTangentFrame( - vViewPosition, normal, vNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn[0] *= faceDirection;\n\t\ttbn[1] *= faceDirection;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\t#ifdef USE_TANGENT\n\t\tmat3 tbn2 = mat3( normalize( vTangent ), normalize( vBitangent ), normal );\n\t#else\n\t\tmat3 tbn2 = getTangentFrame( - vViewPosition, normal, vClearcoatNormalMapUv );\n\t#endif\n\t#if defined( DOUBLE_SIDED ) && ! defined( FLAT_SHADED )\n\t\ttbn2[0] *= faceDirection;\n\t\ttbn2[1] *= faceDirection;\n\t#endif\n#endif\nvec3 geometryNormal = normal;",normal_fragment_maps:"#ifdef USE_NORMALMAP_OBJECTSPACE\n\tnormal = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\t#ifdef FLIP_SIDED\n\t\tnormal = - normal;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * faceDirection;\n\t#endif\n\tnormal = normalize( normalMatrix * normal );\n#elif defined( USE_NORMALMAP_TANGENTSPACE )\n\tvec3 mapN = texture2D( normalMap, vNormalMapUv ).xyz * 2.0 - 1.0;\n\tmapN.xy *= normalScale;\n\tnormal = normalize( tbn * mapN );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( - vViewPosition, normal, dHdxy_fwd(), faceDirection );\n#endif",normal_pars_fragment:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_pars_vertex:"#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\n#endif",normal_vertex:"#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n#endif\n#ifdef USE_NORMALMAP_OBJECTSPACE\n\tuniform mat3 normalMatrix;\n#endif\n#if ! defined ( USE_TANGENT ) && ( defined ( USE_NORMALMAP_TANGENTSPACE ) || defined ( USE_CLEARCOAT_NORMALMAP ) )\n\tmat3 getTangentFrame( vec3 eye_pos, vec3 surf_norm, vec2 uv ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( uv.st );\n\t\tvec2 st1 = dFdy( uv.st );\n\t\tvec3 N = surf_norm;\n\t\tvec3 q1perp = cross( q1, N );\n\t\tvec3 q0perp = cross( N, q0 );\n\t\tvec3 T = q1perp * st0.x + q0perp * st1.x;\n\t\tvec3 B = q1perp * st0.y + q0perp * st1.y;\n\t\tfloat det = max( dot( T, T ), dot( B, B ) );\n\t\tfloat scale = ( det == 0.0 ) ? 0.0 : inversesqrt( det );\n\t\treturn mat3( T * scale, B * scale, N );\n\t}\n#endif",clearcoat_normal_fragment_begin:"#ifdef USE_CLEARCOAT\n\tvec3 clearcoatNormal = geometryNormal;\n#endif",clearcoat_normal_fragment_maps:"#ifdef USE_CLEARCOAT_NORMALMAP\n\tvec3 clearcoatMapN = texture2D( clearcoatNormalMap, vClearcoatNormalMapUv ).xyz * 2.0 - 1.0;\n\tclearcoatMapN.xy *= clearcoatNormalScale;\n\tclearcoatNormal = normalize( tbn2 * clearcoatMapN );\n#endif",clearcoat_pars_fragment:"#ifdef USE_CLEARCOATMAP\n\tuniform sampler2D clearcoatMap;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform sampler2D clearcoatNormalMap;\n\tuniform vec2 clearcoatNormalScale;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform sampler2D clearcoatRoughnessMap;\n#endif",iridescence_pars_fragment:"#ifdef USE_IRIDESCENCEMAP\n\tuniform sampler2D iridescenceMap;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform sampler2D iridescenceThicknessMap;\n#endif",output_fragment:"#ifdef OPAQUE\ndiffuseColor.a = 1.0;\n#endif\n#ifdef USE_TRANSMISSION\ndiffuseColor.a *= material.transmissionAlpha + 0.1;\n#endif\ngl_FragColor = vec4( outgoingLight, diffuseColor.a );",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\n}\nconst float PackUpscale = 256. / 255.;const float UnpackDownscale = 255. / 256.;\nconst vec3 PackFactors = vec3( 256. * 256. * 256., 256. * 256., 256. );\nconst vec4 UnpackFactors = UnpackDownscale / vec4( PackFactors, 1. );\nconst float ShiftRight8 = 1. / 256.;\nvec4 packDepthToRGBA( const in float v ) {\n\tvec4 r = vec4( fract( v * PackFactors ), v );\n\tr.yzw -= r.xyz * ShiftRight8;\treturn r * PackUpscale;\n}\nfloat unpackRGBAToDepth( const in vec4 v ) {\n\treturn dot( v, UnpackFactors );\n}\nvec2 packDepthToRG( in highp float v ) {\n\treturn packDepthToRGBA( v ).yx;\n}\nfloat unpackRGToDepth( const in highp vec2 v ) {\n\treturn unpackRGBAToDepth( vec4( v.xy, 0.0, 0.0 ) );\n}\nvec4 pack2HalfToRGBA( vec2 v ) {\n\tvec4 r = vec4( v.x, fract( v.x * 255.0 ), v.y, fract( v.y * 255.0 ) );\n\treturn vec4( r.x - r.y / 255.0, r.y, r.z - r.w / 255.0, r.w );\n}\nvec2 unpackRGBATo2Half( vec4 v ) {\n\treturn vec2( v.x + ( v.y / 255.0 ), v.z + ( v.w / 255.0 ) );\n}\nfloat viewZToOrthographicDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( viewZ + near ) / ( near - far );\n}\nfloat orthographicDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn depth * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n\treturn ( ( near + viewZ ) * far ) / ( ( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float depth, const in float near, const in float far ) {\n\treturn ( near * far ) / ( ( far - near ) * depth - far );\n}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = vec4( transformed, 1.0 );\n#ifdef USE_INSTANCING\n\tmvPosition = instanceMatrix * mvPosition;\n#endif\nmvPosition = modelViewMatrix * mvPosition;\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#ifdef DITHERING\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",dithering_pars_fragment:"#ifdef DITHERING\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vRoughnessMapUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#if NUM_SPOT_LIGHT_MAPS > 0\n\tuniform sampler2D spotLightMap[ NUM_SPOT_LIGHT_MAPS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHT_SHADOWS ];\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tvec2 texture2DDistribution( sampler2D shadow, vec2 uv ) {\n\t\treturn unpackRGBATo2Half( texture2D( shadow, uv ) );\n\t}\n\tfloat VSMShadow (sampler2D shadow, vec2 uv, float compare ){\n\t\tfloat occlusion = 1.0;\n\t\tvec2 distribution = texture2DDistribution( shadow, uv );\n\t\tfloat hard_shadow = step( compare , distribution.x );\n\t\tif (hard_shadow != 1.0 ) {\n\t\t\tfloat distance = compare - distribution.x ;\n\t\t\tfloat variance = max( 0.00000, distribution.y * distribution.y );\n\t\t\tfloat softness_probability = variance / (variance + distance * distance );\t\t\tsoftness_probability = clamp( ( softness_probability - 0.3 ) / ( 0.95 - 0.3 ), 0.0, 1.0 );\t\t\tocclusion = clamp( max( hard_shadow, softness_probability ), 0.0, 1.0 );\n\t\t}\n\t\treturn occlusion;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbool inFrustum = shadowCoord.x >= 0.0 && shadowCoord.x <= 1.0 && shadowCoord.y >= 0.0 && shadowCoord.y <= 1.0;\n\t\tbool frustumTest = inFrustum && shadowCoord.z <= 1.0;\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tfloat dx2 = dx0 / 2.0;\n\t\t\tfloat dy2 = dy0 / 2.0;\n\t\t\tfloat dx3 = dx1 / 2.0;\n\t\t\tfloat dy3 = dy1 / 2.0;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy2 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx2, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx3, dy3 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 17.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx = texelSize.x;\n\t\t\tfloat dy = texelSize.y;\n\t\t\tvec2 uv = shadowCoord.xy;\n\t\t\tvec2 f = fract( uv * shadowMapSize + 0.5 );\n\t\t\tuv -= f * texelSize;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, uv, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( dx, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + vec2( 0.0, dy ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, uv + texelSize, shadowCoord.z ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 0.0 ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( -dx, dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, dy ), shadowCoord.z ),\n\t\t\t\t\t f.x ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( 0.0, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 0.0, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( texture2DCompare( shadowMap, uv + vec2( dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t f.y ) +\n\t\t\t\tmix( mix( texture2DCompare( shadowMap, uv + vec2( -dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, -dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t mix( texture2DCompare( shadowMap, uv + vec2( -dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t texture2DCompare( shadowMap, uv + vec2( 2.0 * dx, 2.0 * dy ), shadowCoord.z ),\n\t\t\t\t\t\t f.x ),\n\t\t\t\t\t f.y )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_VSM )\n\t\t\tshadow = VSMShadow( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT ) || defined( SHADOWMAP_TYPE_VSM )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif",shadowmap_pars_vertex:"#if NUM_SPOT_LIGHT_COORDS > 0\n\tuniform mat4 spotLightMatrix[ NUM_SPOT_LIGHT_COORDS ];\n\tvarying vec4 vSpotLightCoord[ NUM_SPOT_LIGHT_COORDS ];\n#endif\n#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHT_SHADOWS ];\n\t\tstruct DirectionalLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform DirectionalLightShadow directionalLightShadows[ NUM_DIR_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\t\tstruct SpotLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t};\n\t\tuniform SpotLightShadow spotLightShadows[ NUM_SPOT_LIGHT_SHADOWS ];\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHT_SHADOWS ];\n\t\tstruct PointLightShadow {\n\t\t\tfloat shadowBias;\n\t\t\tfloat shadowNormalBias;\n\t\t\tfloat shadowRadius;\n\t\t\tvec2 shadowMapSize;\n\t\t\tfloat shadowCameraNear;\n\t\t\tfloat shadowCameraFar;\n\t\t};\n\t\tuniform PointLightShadow pointLightShadows[ NUM_POINT_LIGHT_SHADOWS ];\n\t#endif\n#endif",shadowmap_vertex:"#if ( defined( USE_SHADOWMAP ) && ( NUM_DIR_LIGHT_SHADOWS > 0 || NUM_POINT_LIGHT_SHADOWS > 0 ) ) || ( NUM_SPOT_LIGHT_COORDS > 0 )\n\tvec3 shadowWorldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\tvec4 shadowWorldPosition;\n#endif\n#if defined( USE_SHADOWMAP )\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * directionalLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\t\t#pragma unroll_loop_start\n\t\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\t\tshadowWorldPosition = worldPosition + vec4( shadowWorldNormal * pointLightShadows[ i ].shadowNormalBias, 0 );\n\t\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * shadowWorldPosition;\n\t\t}\n\t\t#pragma unroll_loop_end\n\t#endif\n#endif\n#if NUM_SPOT_LIGHT_COORDS > 0\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_COORDS; i ++ ) {\n\t\tshadowWorldPosition = worldPosition;\n\t\t#if ( defined( USE_SHADOWMAP ) && UNROLLED_LOOP_INDEX < NUM_SPOT_LIGHT_SHADOWS )\n\t\t\tshadowWorldPosition.xyz += shadowWorldNormal * spotLightShadows[ i ].shadowNormalBias;\n\t\t#endif\n\t\tvSpotLightCoord[ i ] = spotLightMatrix[ i ] * shadowWorldPosition;\n\t}\n\t#pragma unroll_loop_end\n#endif",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHT_SHADOWS > 0\n\tDirectionalLightShadow directionalLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_DIR_LIGHT_SHADOWS; i ++ ) {\n\t\tdirectionalLight = directionalLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_SPOT_LIGHT_SHADOWS > 0\n\tSpotLightShadow spotLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_SPOT_LIGHT_SHADOWS; i ++ ) {\n\t\tspotLight = spotLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotLightCoord[ i ] ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#if NUM_POINT_LIGHT_SHADOWS > 0\n\tPointLightShadow pointLight;\n\t#pragma unroll_loop_start\n\tfor ( int i = 0; i < NUM_POINT_LIGHT_SHADOWS; i ++ ) {\n\t\tpointLight = pointLightShadows[ i ];\n\t\tshadow *= receiveShadow ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ], pointLight.shadowCameraNear, pointLight.shadowCameraFar ) : 1.0;\n\t}\n\t#pragma unroll_loop_end\n\t#endif\n\t#endif\n\treturn shadow;\n}",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\tuniform highp sampler2D boneTexture;\n\tuniform int boneTextureSize;\n\tmat4 getBoneMatrix( const in float i ) {\n\t\tfloat j = i * 4.0;\n\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\ty = dy * ( y + 0.5 );\n\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\treturn bone;\n\t}\n#endif",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vSpecularMapUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n#define saturate( a ) clamp( a, 0.0, 1.0 )\n#endif\nuniform float toneMappingExposure;\nvec3 LinearToneMapping( vec3 color ) {\n\treturn toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( color / ( vec3( 1.0 ) + color ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\tcolor = max( vec3( 0.0 ), color - 0.004 );\n\treturn pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\nvec3 RRTAndODTFit( vec3 v ) {\n\tvec3 a = v * ( v + 0.0245786 ) - 0.000090537;\n\tvec3 b = v * ( 0.983729 * v + 0.4329510 ) + 0.238081;\n\treturn a / b;\n}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tconst mat3 ACESInputMat = mat3(\n\t\tvec3( 0.59719, 0.07600, 0.02840 ),\t\tvec3( 0.35458, 0.90834, 0.13383 ),\n\t\tvec3( 0.04823, 0.01566, 0.83777 )\n\t);\n\tconst mat3 ACESOutputMat = mat3(\n\t\tvec3( 1.60475, -0.10208, -0.00327 ),\t\tvec3( -0.53108, 1.10813, -0.07276 ),\n\t\tvec3( -0.07367, -0.00605, 1.07602 )\n\t);\n\tcolor *= toneMappingExposure / 0.6;\n\tcolor = ACESInputMat * color;\n\tcolor = RRTAndODTFit( color );\n\tcolor = ACESOutputMat * color;\n\treturn saturate( color );\n}\nvec3 CustomToneMapping( vec3 color ) { return color; }",transmission_fragment:"#ifdef USE_TRANSMISSION\n\tmaterial.transmission = transmission;\n\tmaterial.transmissionAlpha = 1.0;\n\tmaterial.thickness = thickness;\n\tmaterial.attenuationDistance = attenuationDistance;\n\tmaterial.attenuationColor = attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tmaterial.transmission *= texture2D( transmissionMap, vTransmissionMapUv ).r;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tmaterial.thickness *= texture2D( thicknessMap, vThicknessMapUv ).g;\n\t#endif\n\tvec3 pos = vWorldPosition;\n\tvec3 v = normalize( cameraPosition - pos );\n\tvec3 n = inverseTransformDirection( normal, viewMatrix );\n\tvec4 transmission = getIBLVolumeRefraction(\n\t\tn, v, material.roughness, material.diffuseColor, material.specularColor, material.specularF90,\n\t\tpos, modelMatrix, viewMatrix, projectionMatrix, material.ior, material.thickness,\n\t\tmaterial.attenuationColor, material.attenuationDistance );\n\tmaterial.transmissionAlpha = mix( material.transmissionAlpha, transmission.a, material.transmission );\n\ttotalDiffuse = mix( totalDiffuse, transmission.rgb, material.transmission );\n#endif",transmission_pars_fragment:"#ifdef USE_TRANSMISSION\n\tuniform float transmission;\n\tuniform float thickness;\n\tuniform float attenuationDistance;\n\tuniform vec3 attenuationColor;\n\t#ifdef USE_TRANSMISSIONMAP\n\t\tuniform sampler2D transmissionMap;\n\t#endif\n\t#ifdef USE_THICKNESSMAP\n\t\tuniform sampler2D thicknessMap;\n\t#endif\n\tuniform vec2 transmissionSamplerSize;\n\tuniform sampler2D transmissionSamplerMap;\n\tuniform mat4 modelMatrix;\n\tuniform mat4 projectionMatrix;\n\tvarying vec3 vWorldPosition;\n\tfloat w0( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - a + 3.0 ) - 3.0 ) + 1.0 );\n\t}\n\tfloat w1( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * ( 3.0 * a - 6.0 ) + 4.0 );\n\t}\n\tfloat w2( float a ){\n\t\treturn ( 1.0 / 6.0 ) * ( a * ( a * ( - 3.0 * a + 3.0 ) + 3.0 ) + 1.0 );\n\t}\n\tfloat w3( float a ) {\n\t\treturn ( 1.0 / 6.0 ) * ( a * a * a );\n\t}\n\tfloat g0( float a ) {\n\t\treturn w0( a ) + w1( a );\n\t}\n\tfloat g1( float a ) {\n\t\treturn w2( a ) + w3( a );\n\t}\n\tfloat h0( float a ) {\n\t\treturn - 1.0 + w1( a ) / ( w0( a ) + w1( a ) );\n\t}\n\tfloat h1( float a ) {\n\t\treturn 1.0 + w3( a ) / ( w2( a ) + w3( a ) );\n\t}\n\tvec4 bicubic( sampler2D tex, vec2 uv, vec4 texelSize, vec2 fullSize, float lod ) {\n\t\tuv = uv * texelSize.zw + 0.5;\n\t\tvec2 iuv = floor( uv );\n\t\tvec2 fuv = fract( uv );\n\t\tfloat g0x = g0( fuv.x );\n\t\tfloat g1x = g1( fuv.x );\n\t\tfloat h0x = h0( fuv.x );\n\t\tfloat h1x = h1( fuv.x );\n\t\tfloat h0y = h0( fuv.y );\n\t\tfloat h1y = h1( fuv.y );\n\t\tvec2 p0 = ( vec2( iuv.x + h0x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p1 = ( vec2( iuv.x + h1x, iuv.y + h0y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p2 = ( vec2( iuv.x + h0x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\tvec2 p3 = ( vec2( iuv.x + h1x, iuv.y + h1y ) - 0.5 ) * texelSize.xy;\n\t\t\n\t\tvec2 lodFudge = pow( 1.95, lod ) / fullSize;\n\t\treturn g0( fuv.y ) * ( g0x * textureLod( tex, p0, lod ) + g1x * textureLod( tex, p1, lod ) ) +\n\t\t\tg1( fuv.y ) * ( g0x * textureLod( tex, p2, lod ) + g1x * textureLod( tex, p3, lod ) );\n\t}\n\tvec4 textureBicubic( sampler2D sampler, vec2 uv, float lod ) {\n\t\tvec2 fLodSize = vec2( textureSize( sampler, int( lod ) ) );\n\t\tvec2 cLodSize = vec2( textureSize( sampler, int( lod + 1.0 ) ) );\n\t\tvec2 fLodSizeInv = 1.0 / fLodSize;\n\t\tvec2 cLodSizeInv = 1.0 / cLodSize;\n\t\tvec2 fullSize = vec2( textureSize( sampler, 0 ) );\n\t\tvec4 fSample = bicubic( sampler, uv, vec4( fLodSizeInv, fLodSize ), fullSize, floor( lod ) );\n\t\tvec4 cSample = bicubic( sampler, uv, vec4( cLodSizeInv, cLodSize ), fullSize, ceil( lod ) );\n\t\treturn mix( fSample, cSample, fract( lod ) );\n\t}\n\tvec3 getVolumeTransmissionRay( const in vec3 n, const in vec3 v, const in float thickness, const in float ior, const in mat4 modelMatrix ) {\n\t\tvec3 refractionVector = refract( - v, normalize( n ), 1.0 / ior );\n\t\tvec3 modelScale;\n\t\tmodelScale.x = length( vec3( modelMatrix[ 0 ].xyz ) );\n\t\tmodelScale.y = length( vec3( modelMatrix[ 1 ].xyz ) );\n\t\tmodelScale.z = length( vec3( modelMatrix[ 2 ].xyz ) );\n\t\treturn normalize( refractionVector ) * thickness * modelScale;\n\t}\n\tfloat applyIorToRoughness( const in float roughness, const in float ior ) {\n\t\treturn roughness * clamp( ior * 2.0 - 2.0, 0.0, 1.0 );\n\t}\n\tvec4 getTransmissionSample( const in vec2 fragCoord, const in float roughness, const in float ior ) {\n\t\tfloat lod = log2( transmissionSamplerSize.x ) * applyIorToRoughness( roughness, ior );\n\t\treturn textureBicubic( transmissionSamplerMap, fragCoord.xy, lod );\n\t}\n\tvec3 applyVolumeAttenuation( const in vec3 radiance, const in float transmissionDistance, const in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tif ( isinf( attenuationDistance ) ) {\n\t\t\treturn radiance;\n\t\t} else {\n\t\t\tvec3 attenuationCoefficient = -log( attenuationColor ) / attenuationDistance;\n\t\t\tvec3 transmittance = exp( - attenuationCoefficient * transmissionDistance );\t\t\treturn transmittance * radiance;\n\t\t}\n\t}\n\tvec4 getIBLVolumeRefraction( const in vec3 n, const in vec3 v, const in float roughness, const in vec3 diffuseColor,\n\t\tconst in vec3 specularColor, const in float specularF90, const in vec3 position, const in mat4 modelMatrix,\n\t\tconst in mat4 viewMatrix, const in mat4 projMatrix, const in float ior, const in float thickness,\n\t\tconst in vec3 attenuationColor, const in float attenuationDistance ) {\n\t\tvec3 transmissionRay = getVolumeTransmissionRay( n, v, thickness, ior, modelMatrix );\n\t\tvec3 refractedRayExit = position + transmissionRay;\n\t\tvec4 ndcPos = projMatrix * viewMatrix * vec4( refractedRayExit, 1.0 );\n\t\tvec2 refractionCoords = ndcPos.xy / ndcPos.w;\n\t\trefractionCoords += 1.0;\n\t\trefractionCoords /= 2.0;\n\t\tvec4 transmittedLight = getTransmissionSample( refractionCoords, roughness, ior );\n\t\tvec3 attenuatedColor = applyVolumeAttenuation( transmittedLight.rgb, length( transmissionRay ), attenuationColor, attenuationDistance );\n\t\tvec3 F = EnvironmentBRDF( n, v, specularColor, specularF90, roughness );\n\t\treturn vec4( ( 1.0 - F ) * attenuatedColor * diffuseColor, transmittedLight.a );\n\t}\n#endif",uv_pars_fragment:"#ifdef USE_UV\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_MAP\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_pars_vertex:"#ifdef USE_UV\n\tvarying vec2 vUv;\n#endif\n#ifdef USE_UV2\n\tattribute vec2 uv2;\n#endif\n#ifdef USE_MAP\n\tuniform mat3 mapTransform;\n\tvarying vec2 vMapUv;\n#endif\n#ifdef USE_ALPHAMAP\n\tuniform mat3 alphaMapTransform;\n\tvarying vec2 vAlphaMapUv;\n#endif\n#ifdef USE_LIGHTMAP\n\tuniform mat3 lightMapTransform;\n\tvarying vec2 vLightMapUv;\n#endif\n#ifdef USE_AOMAP\n\tuniform mat3 aoMapTransform;\n\tvarying vec2 vAoMapUv;\n#endif\n#ifdef USE_BUMPMAP\n\tuniform mat3 bumpMapTransform;\n\tvarying vec2 vBumpMapUv;\n#endif\n#ifdef USE_NORMALMAP\n\tuniform mat3 normalMapTransform;\n\tvarying vec2 vNormalMapUv;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tuniform mat3 displacementMapTransform;\n\tvarying vec2 vDisplacementMapUv;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tuniform mat3 emissiveMapTransform;\n\tvarying vec2 vEmissiveMapUv;\n#endif\n#ifdef USE_METALNESSMAP\n\tuniform mat3 metalnessMapTransform;\n\tvarying vec2 vMetalnessMapUv;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tuniform mat3 roughnessMapTransform;\n\tvarying vec2 vRoughnessMapUv;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tuniform mat3 clearcoatMapTransform;\n\tvarying vec2 vClearcoatMapUv;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tuniform mat3 clearcoatNormalMapTransform;\n\tvarying vec2 vClearcoatNormalMapUv;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tuniform mat3 clearcoatRoughnessMapTransform;\n\tvarying vec2 vClearcoatRoughnessMapUv;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tuniform mat3 sheenColorMapTransform;\n\tvarying vec2 vSheenColorMapUv;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tuniform mat3 sheenRoughnessMapTransform;\n\tvarying vec2 vSheenRoughnessMapUv;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tuniform mat3 iridescenceMapTransform;\n\tvarying vec2 vIridescenceMapUv;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tuniform mat3 iridescenceThicknessMapTransform;\n\tvarying vec2 vIridescenceThicknessMapUv;\n#endif\n#ifdef USE_SPECULARMAP\n\tuniform mat3 specularMapTransform;\n\tvarying vec2 vSpecularMapUv;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tuniform mat3 specularColorMapTransform;\n\tvarying vec2 vSpecularColorMapUv;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tuniform mat3 specularIntensityMapTransform;\n\tvarying vec2 vSpecularIntensityMapUv;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tuniform mat3 transmissionMapTransform;\n\tvarying vec2 vTransmissionMapUv;\n#endif\n#ifdef USE_THICKNESSMAP\n\tuniform mat3 thicknessMapTransform;\n\tvarying vec2 vThicknessMapUv;\n#endif",uv_vertex:"#ifdef USE_UV\n\tvUv = vec3( uv, 1 ).xy;\n#endif\n#ifdef USE_MAP\n\tvMapUv = ( mapTransform * vec3( MAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ALPHAMAP\n\tvAlphaMapUv = ( alphaMapTransform * vec3( ALPHAMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_LIGHTMAP\n\tvLightMapUv = ( lightMapTransform * vec3( LIGHTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_AOMAP\n\tvAoMapUv = ( aoMapTransform * vec3( AOMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_BUMPMAP\n\tvBumpMapUv = ( bumpMapTransform * vec3( BUMPMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_NORMALMAP\n\tvNormalMapUv = ( normalMapTransform * vec3( NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_DISPLACEMENTMAP\n\tvDisplacementMapUv = ( displacementMapTransform * vec3( DISPLACEMENTMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_EMISSIVEMAP\n\tvEmissiveMapUv = ( emissiveMapTransform * vec3( EMISSIVEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_METALNESSMAP\n\tvMetalnessMapUv = ( metalnessMapTransform * vec3( METALNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_ROUGHNESSMAP\n\tvRoughnessMapUv = ( roughnessMapTransform * vec3( ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOATMAP\n\tvClearcoatMapUv = ( clearcoatMapTransform * vec3( CLEARCOATMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_NORMALMAP\n\tvClearcoatNormalMapUv = ( clearcoatNormalMapTransform * vec3( CLEARCOAT_NORMALMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_CLEARCOAT_ROUGHNESSMAP\n\tvClearcoatRoughnessMapUv = ( clearcoatRoughnessMapTransform * vec3( CLEARCOAT_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCEMAP\n\tvIridescenceMapUv = ( iridescenceMapTransform * vec3( IRIDESCENCEMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_IRIDESCENCE_THICKNESSMAP\n\tvIridescenceThicknessMapUv = ( iridescenceThicknessMapTransform * vec3( IRIDESCENCE_THICKNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_COLORMAP\n\tvSheenColorMapUv = ( sheenColorMapTransform * vec3( SHEEN_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SHEEN_ROUGHNESSMAP\n\tvSheenRoughnessMapUv = ( sheenRoughnessMapTransform * vec3( SHEEN_ROUGHNESSMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULARMAP\n\tvSpecularMapUv = ( specularMapTransform * vec3( SPECULARMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_COLORMAP\n\tvSpecularColorMapUv = ( specularColorMapTransform * vec3( SPECULAR_COLORMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_SPECULAR_INTENSITYMAP\n\tvSpecularIntensityMapUv = ( specularIntensityMapTransform * vec3( SPECULAR_INTENSITYMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_TRANSMISSIONMAP\n\tvTransmissionMapUv = ( transmissionMapTransform * vec3( TRANSMISSIONMAP_UV, 1 ) ).xy;\n#endif\n#ifdef USE_THICKNESSMAP\n\tvThicknessMapUv = ( thicknessMapTransform * vec3( THICKNESSMAP_UV, 1 ) ).xy;\n#endif",worldpos_vertex:"#if defined( USE_ENVMAP ) || defined( DISTANCE ) || defined ( USE_SHADOWMAP ) || defined ( USE_TRANSMISSION ) || NUM_SPOT_LIGHT_COORDS > 0\n\tvec4 worldPosition = vec4( transformed, 1.0 );\n\t#ifdef USE_INSTANCING\n\t\tworldPosition = instanceMatrix * worldPosition;\n\t#endif\n\tworldPosition = modelMatrix * worldPosition;\n#endif",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",background_frag:"uniform sampler2D t2D;\nuniform float backgroundIntensity;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\t#ifdef DECODE_VIDEO_TEXTURE\n\t\ttexColor = vec4( mix( pow( texColor.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), texColor.rgb * 0.0773993808, vec3( lessThanEqual( texColor.rgb, vec3( 0.04045 ) ) ) ), texColor.w );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",backgroundCube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",backgroundCube_frag:"#ifdef ENVMAP_TYPE_CUBE\n\tuniform samplerCube envMap;\n#elif defined( ENVMAP_TYPE_CUBE_UV )\n\tuniform sampler2D envMap;\n#endif\nuniform float flipEnvMap;\nuniform float backgroundBlurriness;\nuniform float backgroundIntensity;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 texColor = textureCube( envMap, vec3( flipEnvMap * vWorldDirection.x, vWorldDirection.yz ) );\n\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec4 texColor = textureCubeUV( envMap, vWorldDirection, backgroundBlurriness );\n\t#else\n\t\tvec4 texColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t#endif\n\ttexColor.rgb *= backgroundIntensity;\n\tgl_FragColor = texColor;\n\t#include \n\t#include \n}",cube_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n\tgl_Position.z = gl_Position.w;\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = texColor;\n\tgl_FragColor.a *= opacity;\n\t#include \n\t#include \n}",depth_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvHighPrecisionZW = gl_Position.zw;\n}",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvarying vec2 vHighPrecisionZW;\nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\tfloat fragCoordZ = 0.5 * vHighPrecisionZW[0] / vHighPrecisionZW[1] + 0.5;\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - fragCoordZ ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( fragCoordZ );\n\t#endif\n}",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvWorldPosition = worldPosition.xyz;\n}",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main () {\n\t#include \n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include \n\t#include \n\t#include \n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include \n\t#include \n}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include \nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\n\tvec2 sampleUV = equirectUv( direction );\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include \n\t#include \n}",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\tvLineDistance = scale * lineDistance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_vert:"#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#if defined ( USE_ENVMAP ) || defined ( USE_SKINNING )\n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t\t#include \n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\tvec4 lightMapTexel = texture2D( lightMap, vLightMapUv );\n\t\treflectedLight.indirectDiffuse += lightMapTexel.rgb * lightMapIntensity * RECIPROCAL_PI;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include \n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshlambert_frag:"#define LAMBERT\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t#else\n\t\tvec4 matcapColor = vec4( vec3( mix( 0.2, 0.8, uv.y ) ), 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshnormal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",meshnormal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP_TANGENTSPACE )\n\tvarying vec3 vViewPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n\t#ifdef OPAQUE\n\t\tgl_FragColor.a = 1.0;\n\t#endif\n}",meshphong_vert:"#define PHONG\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphong_frag:"#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshphysical_vert:"#define STANDARD\nvarying vec3 vViewPosition;\n#ifdef USE_TRANSMISSION\n\tvarying vec3 vWorldPosition;\n#endif\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n#ifdef USE_TRANSMISSION\n\tvWorldPosition = worldPosition.xyz;\n#endif\n}",meshphysical_frag:"#define STANDARD\n#ifdef PHYSICAL\n\t#define IOR\n\t#define USE_SPECULAR\n#endif\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifdef IOR\n\tuniform float ior;\n#endif\n#ifdef USE_SPECULAR\n\tuniform float specularIntensity;\n\tuniform vec3 specularColor;\n\t#ifdef USE_SPECULAR_COLORMAP\n\t\tuniform sampler2D specularColorMap;\n\t#endif\n\t#ifdef USE_SPECULAR_INTENSITYMAP\n\t\tuniform sampler2D specularIntensityMap;\n\t#endif\n#endif\n#ifdef USE_CLEARCOAT\n\tuniform float clearcoat;\n\tuniform float clearcoatRoughness;\n#endif\n#ifdef USE_IRIDESCENCE\n\tuniform float iridescence;\n\tuniform float iridescenceIOR;\n\tuniform float iridescenceThicknessMinimum;\n\tuniform float iridescenceThicknessMaximum;\n#endif\n#ifdef USE_SHEEN\n\tuniform vec3 sheenColor;\n\tuniform float sheenRoughness;\n\t#ifdef USE_SHEEN_COLORMAP\n\t\tuniform sampler2D sheenColorMap;\n\t#endif\n\t#ifdef USE_SHEEN_ROUGHNESSMAP\n\t\tuniform sampler2D sheenRoughnessMap;\n\t#endif\n#endif\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 totalDiffuse = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse;\n\tvec3 totalSpecular = reflectedLight.directSpecular + reflectedLight.indirectSpecular;\n\t#include \n\tvec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;\n\t#ifdef USE_SHEEN\n\t\tfloat sheenEnergyComp = 1.0 - 0.157 * max3( material.sheenColor );\n\t\toutgoingLight = outgoingLight * sheenEnergyComp + sheenSpecular;\n\t#endif\n\t#ifdef USE_CLEARCOAT\n\t\tfloat dotNVcc = saturate( dot( geometry.clearcoatNormal, geometry.viewDir ) );\n\t\tvec3 Fcc = F_Schlick( material.clearcoatF0, material.clearcoatF90, dotNVcc );\n\t\toutgoingLight = outgoingLight * ( 1.0 - material.clearcoat * Fcc ) + clearcoatSpecular * material.clearcoat;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",meshtoon_vert:"#define TOON\nvarying vec3 vViewPosition;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvViewPosition = - mvPosition.xyz;\n\t#include \n\t#include \n\t#include \n}",meshtoon_frag:"#define TOON\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\tvec3 totalEmissiveRadiance = emissive;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",points_vert:"uniform float size;\nuniform float scale;\n#include \n#include \n#include \n#include \n#include \n#include \n#ifdef USE_POINTS_UV\n\tvarying vec2 vUv;\n\tuniform mat3 uvTransform;\n#endif\nvoid main() {\n\t#ifdef USE_POINTS_UV\n\t\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include \n\t#include \n\t#include \n\t#include \n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_vert:"#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n\t#include \n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include \n\t#include \n\t#include \n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = isPerspectiveMatrix( projectionMatrix );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include \n\t#include \n\t#include \n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n#include \nvoid main() {\n\t#include \n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include \n\t#include \n\t#include \n\t#include \n\toutgoingLight = diffuseColor.rgb;\n\t#include \n\t#include \n\t#include \n\t#include \n}"},qr={common:{diffuse:{value:new Oi(16777215)},opacity:{value:1},map:{value:null},mapTransform:{value:new je},alphaMap:{value:null},alphaMapTransform:{value:new je},alphaTest:{value:0}},specularmap:{specularMap:{value:null},specularMapTransform:{value:new je}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},ior:{value:1.5},refractionRatio:{value:.98}},aomap:{aoMap:{value:null},aoMapIntensity:{value:1},aoMapTransform:{value:new je}},lightmap:{lightMap:{value:null},lightMapIntensity:{value:1},lightMapTransform:{value:new je}},bumpmap:{bumpMap:{value:null},bumpMapTransform:{value:new je},bumpScale:{value:1}},normalmap:{normalMap:{value:null},normalMapTransform:{value:new je},normalScale:{value:new We(1,1)}},displacementmap:{displacementMap:{value:null},displacementMapTransform:{value:new je},displacementScale:{value:1},displacementBias:{value:0}},emissivemap:{emissiveMap:{value:null},emissiveMapTransform:{value:new je}},metalnessmap:{metalnessMap:{value:null},metalnessMapTransform:{value:new je}},roughnessmap:{roughnessMap:{value:null},roughnessMapTransform:{value:new je}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new Oi(16777215)}},lights:{ambientLightColor:{value:[]},lightProbe:{value:[]},directionalLights:{value:[],properties:{direction:{},color:{}}},directionalLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},directionalShadowMap:{value:[]},directionalShadowMatrix:{value:[]},spotLights:{value:[],properties:{color:{},position:{},direction:{},distance:{},coneCos:{},penumbraCos:{},decay:{}}},spotLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{}}},spotLightMap:{value:[]},spotShadowMap:{value:[]},spotLightMatrix:{value:[]},pointLights:{value:[],properties:{color:{},position:{},decay:{},distance:{}}},pointLightShadows:{value:[],properties:{shadowBias:{},shadowNormalBias:{},shadowRadius:{},shadowMapSize:{},shadowCameraNear:{},shadowCameraFar:{}}},pointShadowMap:{value:[]},pointShadowMatrix:{value:[]},hemisphereLights:{value:[],properties:{direction:{},skyColor:{},groundColor:{}}},rectAreaLights:{value:[],properties:{color:{},position:{},width:{},height:{}}},ltc_1:{value:null},ltc_2:{value:null}},points:{diffuse:{value:new Oi(16777215)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},alphaMap:{value:null},alphaTest:{value:0},uvTransform:{value:new je}},sprite:{diffuse:{value:new Oi(16777215)},opacity:{value:1},center:{value:new We(.5,.5)},rotation:{value:0},map:{value:null},mapTransform:{value:new je},alphaMap:{value:null},alphaTest:{value:0}}},Xr={basic:{uniforms:Tr([qr.common,qr.specularmap,qr.envmap,qr.aomap,qr.lightmap,qr.fog]),vertexShader:jr.meshbasic_vert,fragmentShader:jr.meshbasic_frag},lambert:{uniforms:Tr([qr.common,qr.specularmap,qr.envmap,qr.aomap,qr.lightmap,qr.emissivemap,qr.bumpmap,qr.normalmap,qr.displacementmap,qr.fog,qr.lights,{emissive:{value:new Oi(0)}}]),vertexShader:jr.meshlambert_vert,fragmentShader:jr.meshlambert_frag},phong:{uniforms:Tr([qr.common,qr.specularmap,qr.envmap,qr.aomap,qr.lightmap,qr.emissivemap,qr.bumpmap,qr.normalmap,qr.displacementmap,qr.fog,qr.lights,{emissive:{value:new Oi(0)},specular:{value:new Oi(1118481)},shininess:{value:30}}]),vertexShader:jr.meshphong_vert,fragmentShader:jr.meshphong_frag},standard:{uniforms:Tr([qr.common,qr.envmap,qr.aomap,qr.lightmap,qr.emissivemap,qr.bumpmap,qr.normalmap,qr.displacementmap,qr.roughnessmap,qr.metalnessmap,qr.fog,qr.lights,{emissive:{value:new Oi(0)},roughness:{value:1},metalness:{value:0},envMapIntensity:{value:1}}]),vertexShader:jr.meshphysical_vert,fragmentShader:jr.meshphysical_frag},toon:{uniforms:Tr([qr.common,qr.aomap,qr.lightmap,qr.emissivemap,qr.bumpmap,qr.normalmap,qr.displacementmap,qr.gradientmap,qr.fog,qr.lights,{emissive:{value:new Oi(0)}}]),vertexShader:jr.meshtoon_vert,fragmentShader:jr.meshtoon_frag},matcap:{uniforms:Tr([qr.common,qr.bumpmap,qr.normalmap,qr.displacementmap,qr.fog,{matcap:{value:null}}]),vertexShader:jr.meshmatcap_vert,fragmentShader:jr.meshmatcap_frag},points:{uniforms:Tr([qr.points,qr.fog]),vertexShader:jr.points_vert,fragmentShader:jr.points_frag},dashed:{uniforms:Tr([qr.common,qr.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:jr.linedashed_vert,fragmentShader:jr.linedashed_frag},depth:{uniforms:Tr([qr.common,qr.displacementmap]),vertexShader:jr.depth_vert,fragmentShader:jr.depth_frag},normal:{uniforms:Tr([qr.common,qr.bumpmap,qr.normalmap,qr.displacementmap,{opacity:{value:1}}]),vertexShader:jr.meshnormal_vert,fragmentShader:jr.meshnormal_frag},sprite:{uniforms:Tr([qr.sprite,qr.fog]),vertexShader:jr.sprite_vert,fragmentShader:jr.sprite_frag},background:{uniforms:{uvTransform:{value:new je},t2D:{value:null},backgroundIntensity:{value:1}},vertexShader:jr.background_vert,fragmentShader:jr.background_frag},backgroundCube:{uniforms:{envMap:{value:null},flipEnvMap:{value:-1},backgroundBlurriness:{value:0},backgroundIntensity:{value:1}},vertexShader:jr.backgroundCube_vert,fragmentShader:jr.backgroundCube_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:jr.cube_vert,fragmentShader:jr.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:jr.equirect_vert,fragmentShader:jr.equirect_frag},distanceRGBA:{uniforms:Tr([qr.common,qr.displacementmap,{referencePosition:{value:new gn},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:jr.distanceRGBA_vert,fragmentShader:jr.distanceRGBA_frag},shadow:{uniforms:Tr([qr.lights,qr.fog,{color:{value:new Oi(0)},opacity:{value:1}}]),vertexShader:jr.shadow_vert,fragmentShader:jr.shadow_frag}};Xr.physical={uniforms:Tr([Xr.standard.uniforms,{clearcoat:{value:0},clearcoatMap:{value:null},clearcoatMapTransform:{value:new je},clearcoatNormalMap:{value:null},clearcoatNormalMapTransform:{value:new je},clearcoatNormalScale:{value:new We(1,1)},clearcoatRoughness:{value:0},clearcoatRoughnessMap:{value:null},clearcoatRoughnessMapTransform:{value:new je},iridescence:{value:0},iridescenceMap:{value:null},iridescenceMapTransform:{value:new je},iridescenceIOR:{value:1.3},iridescenceThicknessMinimum:{value:100},iridescenceThicknessMaximum:{value:400},iridescenceThicknessMap:{value:null},iridescenceThicknessMapTransform:{value:new je},sheen:{value:0},sheenColor:{value:new Oi(0)},sheenColorMap:{value:null},sheenColorMapTransform:{value:new je},sheenRoughness:{value:1},sheenRoughnessMap:{value:null},sheenRoughnessMapTransform:{value:new je},transmission:{value:0},transmissionMap:{value:null},transmissionMapTransform:{value:new je},transmissionSamplerSize:{value:new We},transmissionSamplerMap:{value:null},thickness:{value:0},thicknessMap:{value:null},thicknessMapTransform:{value:new je},attenuationDistance:{value:0},attenuationColor:{value:new Oi(0)},specularColor:{value:new Oi(1,1,1)},specularColorMap:{value:null},specularColorMapTransform:{value:new je},specularIntensity:{value:1},specularIntensityMap:{value:null},specularIntensityMapTransform:{value:new je}}]),vertexShader:jr.meshphysical_vert,fragmentShader:jr.meshphysical_frag};const Yr={r:0,b:0,g:0};function Zr(t,e,n,i,r,s,a){const o=new Oi(0);let h,u,d=!0===s?0:1,p=null,m=0,f=null;function g(e,n){e.getRGB(Yr,Er(t)),i.buffers.color.setClear(Yr.r,Yr.g,Yr.b,n,a)}return{getClearColor:function(){return o},setClearColor:function(t,e=1){o.set(t),d=e,g(o,d)},getClearAlpha:function(){return d},setClearAlpha:function(t){d=t,g(o,d)},render:function(i,s){let a=!1,v=!0===s.isScene?s.background:null;if(v&&v.isTexture){v=(s.backgroundBlurriness>0?n:e).get(v)}const _=t.xr,x=_.getSession&&_.getSession();x&&"additive"===x.environmentBlendMode&&(v=null),null===v?g(o,d):v&&v.isColor&&(g(v,1),a=!0),(t.autoClear||a)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),v&&(v.isCubeTexture||v.mapping===et)?(void 0===u&&(u=new Mr(new br(1,1,1),new Cr({name:"BackgroundCubeMaterial",uniforms:wr(Xr.backgroundCube.uniforms),vertexShader:Xr.backgroundCube.vertexShader,fragmentShader:Xr.backgroundCube.fragmentShader,side:c,depthTest:!1,depthWrite:!1,fog:!1})),u.geometry.deleteAttribute("normal"),u.geometry.deleteAttribute("uv"),u.onBeforeRender=function(t,e,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(u.material,"envMap",{get:function(){return this.uniforms.envMap.value}}),r.update(u)),u.material.uniforms.envMap.value=v,u.material.uniforms.flipEnvMap.value=v.isCubeTexture&&!1===v.isRenderTargetTexture?-1:1,u.material.uniforms.backgroundBlurriness.value=s.backgroundBlurriness,u.material.uniforms.backgroundIntensity.value=s.backgroundIntensity,u.material.toneMapped=v.encoding!==_e,p===v&&m===v.version&&f===t.toneMapping||(u.material.needsUpdate=!0,p=v,m=v.version,f=t.toneMapping),u.layers.enableAll(),i.unshift(u,u.geometry,u.material,0,0,null)):v&&v.isTexture&&(void 0===h&&(h=new Mr(new Wr(2,2),new Cr({name:"BackgroundMaterial",uniforms:wr(Xr.background.uniforms),vertexShader:Xr.background.vertexShader,fragmentShader:Xr.background.fragmentShader,side:l,depthTest:!1,depthWrite:!1,fog:!1})),h.geometry.deleteAttribute("normal"),Object.defineProperty(h.material,"map",{get:function(){return this.uniforms.t2D.value}}),r.update(h)),h.material.uniforms.t2D.value=v,h.material.uniforms.backgroundIntensity.value=s.backgroundIntensity,h.material.toneMapped=v.encoding!==_e,!0===v.matrixAutoUpdate&&v.updateMatrix(),h.material.uniforms.uvTransform.value.copy(v.matrix),p===v&&m===v.version&&f===t.toneMapping||(h.material.needsUpdate=!0,p=v,m=v.version,f=t.toneMapping),h.layers.enableAll(),i.unshift(h,h.geometry,h.material,0,0,null))}}}function Jr(t,e,n,i){const r=t.getParameter(34921),s=i.isWebGL2?null:e.get("OES_vertex_array_object"),a=i.isWebGL2||null!==s,o={},l=p(null);let c=l,h=!1;function u(e){return i.isWebGL2?t.bindVertexArray(e):s.bindVertexArrayOES(e)}function d(e){return i.isWebGL2?t.deleteVertexArray(e):s.deleteVertexArrayOES(e)}function p(t){const e=[],n=[],i=[];for(let t=0;t=0){const n=r[e];let i=s[e];if(void 0===i&&("instanceMatrix"===e&&t.instanceMatrix&&(i=t.instanceMatrix),"instanceColor"===e&&t.instanceColor&&(i=t.instanceColor)),void 0===n)return!0;if(n.attribute!==i)return!0;if(i&&n.data!==i.data)return!0;a++}}return c.attributesNum!==a||c.index!==i}(r,x,d,y),M&&function(t,e,n,i){const r={},s=e.attributes;let a=0;const o=n.getAttributes();for(const e in o){if(o[e].location>=0){let n=s[e];void 0===n&&("instanceMatrix"===e&&t.instanceMatrix&&(n=t.instanceMatrix),"instanceColor"===e&&t.instanceColor&&(n=t.instanceColor));const i={};i.attribute=n,n&&n.data&&(i.data=n.data),r[e]=i,a++}}c.attributes=r,c.attributesNum=a,c.index=i}(r,x,d,y)}else{const t=!0===l.wireframe;c.geometry===x.id&&c.program===d.id&&c.wireframe===t||(c.geometry=x.id,c.program=d.id,c.wireframe=t,M=!0)}null!==y&&n.update(y,34963),(M||h)&&(h=!1,function(r,s,a,o){if(!1===i.isWebGL2&&(r.isInstancedMesh||o.isInstancedBufferGeometry)&&null===e.get("ANGLE_instanced_arrays"))return;m();const l=o.attributes,c=a.getAttributes(),h=s.defaultAttributeValues;for(const e in c){const i=c[e];if(i.location>=0){let s=l[e];if(void 0===s&&("instanceMatrix"===e&&r.instanceMatrix&&(s=r.instanceMatrix),"instanceColor"===e&&r.instanceColor&&(s=r.instanceColor)),void 0!==s){const e=s.normalized,a=s.itemSize,l=n.get(s);if(void 0===l)continue;const c=l.buffer,h=l.type,u=l.bytesPerElement;if(s.isInterleavedBufferAttribute){const n=s.data,l=n.stride,d=s.offset;if(n.isInstancedInterleavedBuffer){for(let t=0;t0&&t.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(35633,36337).precision>0&&t.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}const s="undefined"!=typeof WebGL2RenderingContext&&"WebGL2RenderingContext"===t.constructor.name;let a=void 0!==n.precision?n.precision:"highp";const o=r(a);o!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",o,"instead."),a=o);const l=s||e.has("WEBGL_draw_buffers"),c=!0===n.logarithmicDepthBuffer,h=t.getParameter(34930),u=t.getParameter(35660),d=t.getParameter(3379),p=t.getParameter(34076),m=t.getParameter(34921),f=t.getParameter(36347),g=t.getParameter(36348),v=t.getParameter(36349),_=u>0,x=s||e.has("OES_texture_float");return{isWebGL2:s,drawBuffers:l,getMaxAnisotropy:function(){if(void 0!==i)return i;if(!0===e.has("EXT_texture_filter_anisotropic")){const n=e.get("EXT_texture_filter_anisotropic");i=t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT)}else i=0;return i},getMaxPrecision:r,precision:a,logarithmicDepthBuffer:c,maxTextures:h,maxVertexTextures:u,maxTextureSize:d,maxCubemapSize:p,maxAttributes:m,maxVertexUniforms:f,maxVaryings:g,maxFragmentUniforms:v,vertexTextures:_,floatFragmentTextures:x,floatVertexTextures:_&&x,maxSamples:s?t.getParameter(36183):0}}function Qr(t){const e=this;let n=null,i=0,r=!1,s=!1;const a=new Br,o=new je,l={value:null,needsUpdate:!1};function c(t,n,i,r){const s=null!==t?t.length:0;let c=null;if(0!==s){if(c=l.value,!0!==r||null===c){const e=i+4*s,r=n.matrixWorldInverse;o.getNormalMatrix(r),(null===c||c.length0);e.numPlanes=i,e.numIntersection=0}();else{const t=s?0:i,e=4*t;let r=m.clippingState||null;l.value=r,r=c(u,o,e,h);for(let t=0;t!==e;++t)r[t]=n[t];m.clippingState=r,this.numIntersection=d?this.numPlanes:0,this.numPlanes+=t}}}function ts(t){let e=new WeakMap;function n(t,e){return e===Q?t.mapping=K:e===tt&&(t.mapping=$),t}function i(t){const n=t.target;n.removeEventListener("dispose",i);const r=e.get(n);void 0!==r&&(e.delete(n),r.dispose())}return{get:function(r){if(r&&r.isTexture&&!1===r.isRenderTargetTexture){const s=r.mapping;if(s===Q||s===tt){if(e.has(r)){return n(e.get(r).texture,r.mapping)}{const s=r.image;if(s&&s.height>0){const a=new Ur(s.height/2);return a.fromEquirectangularTexture(t,r),e.set(r,a),r.addEventListener("dispose",i),n(a.texture,r.mapping)}return null}}}return r},dispose:function(){e=new WeakMap}}}class es extends Lr{constructor(t=-1,e=1,n=1,i=-1,r=.1,s=2e3){super(),this.isOrthographicCamera=!0,this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=n,this.bottom=i,this.near=r,this.far=s,this.updateProjectionMatrix()}copy(t,e){return super.copy(t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this}setViewOffset(t,e,n,i,r,s){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=s,this.updateProjectionMatrix()}clearViewOffset(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()}updateProjectionMatrix(){const t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2;let r=n-t,s=n+t,a=i+e,o=i-e;if(null!==this.view&&this.view.enabled){const t=(this.right-this.left)/this.view.fullWidth/this.zoom,e=(this.top-this.bottom)/this.view.fullHeight/this.zoom;r+=t*this.view.offsetX,s=r+t*this.view.width,a-=e*this.view.offsetY,o=a-e*this.view.height}this.projectionMatrix.makeOrthographic(r,s,a,o,this.near,this.far),this.projectionMatrixInverse.copy(this.projectionMatrix).invert()}toJSON(t){const e=super.toJSON(t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,null!==this.view&&(e.object.view=Object.assign({},this.view)),e}}const ns=4,is=[.125,.215,.35,.446,.526,.582],rs=20,ss=new es,as=new Oi;let os=null;const ls=(1+Math.sqrt(5))/2,cs=1/ls,hs=[new gn(1,1,1),new gn(-1,1,1),new gn(1,1,-1),new gn(-1,1,-1),new gn(0,ls,cs),new gn(0,ls,-cs),new gn(cs,0,ls),new gn(-cs,0,ls),new gn(ls,cs,0),new gn(-ls,cs,0)];class us{constructor(t){this._renderer=t,this._pingPongRenderTarget=null,this._lodMax=0,this._cubeSize=0,this._lodPlanes=[],this._sizeLods=[],this._sigmas=[],this._blurMaterial=null,this._cubemapMaterial=null,this._equirectMaterial=null,this._compileMaterial(this._blurMaterial)}fromScene(t,e=0,n=.1,i=100){os=this._renderer.getRenderTarget(),this._setSize(256);const r=this._allocateTargets();return r.depthBuffer=!0,this._sceneToCubeUV(t,n,i,r),e>0&&this._blur(r,0,0,e),this._applyPMREM(r),this._cleanup(r),r}fromEquirectangular(t,e=null){return this._fromTexture(t,e)}fromCubemap(t,e=null){return this._fromTexture(t,e)}compileCubemapShader(){null===this._cubemapMaterial&&(this._cubemapMaterial=fs(),this._compileMaterial(this._cubemapMaterial))}compileEquirectangularShader(){null===this._equirectMaterial&&(this._equirectMaterial=ms(),this._compileMaterial(this._equirectMaterial))}dispose(){this._dispose(),null!==this._cubemapMaterial&&this._cubemapMaterial.dispose(),null!==this._equirectMaterial&&this._equirectMaterial.dispose()}_setSize(t){this._lodMax=Math.floor(Math.log2(t)),this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){null!==this._blurMaterial&&this._blurMaterial.dispose(),null!==this._pingPongRenderTarget&&this._pingPongRenderTarget.dispose();for(let t=0;tt-ns?o=is[a-t+ns-1]:0===a&&(o=0),i.push(o);const l=1/(s-2),c=-l,h=1+l,u=[c,c,h,c,h,h,c,c,h,h,c,h],d=6,p=6,m=3,f=2,g=1,v=new Float32Array(m*p*d),_=new Float32Array(f*p*d),x=new Float32Array(g*p*d);for(let t=0;t2?0:-1,i=[e,n,0,e+2/3,n,0,e+2/3,n+1,0,e,n,0,e+2/3,n+1,0,e,n+1,0];v.set(i,m*p*t),_.set(u,f*p*t);const r=[t,t,t,t,t,t];x.set(r,g*p*t)}const y=new ir;y.setAttribute("position",new qi(v,m)),y.setAttribute("uv",new qi(_,f)),y.setAttribute("faceIndex",new qi(x,g)),e.push(y),r>ns&&r--}return{lodPlanes:e,sizeLods:n,sigmas:i}}(i)),this._blurMaterial=function(t,e,n){const i=new Float32Array(rs),r=new gn(0,1,0),s=new Cr({name:"SphericalGaussianBlur",defines:{n:rs,CUBEUV_TEXEL_WIDTH:1/e,CUBEUV_TEXEL_HEIGHT:1/n,CUBEUV_MAX_MIP:`${t}.0`},uniforms:{envMap:{value:null},samples:{value:1},weights:{value:i},latitudinal:{value:!1},dTheta:{value:0},mipInt:{value:0},poleAxis:{value:r}},vertexShader:gs(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\t\t\tuniform int samples;\n\t\t\tuniform float weights[ n ];\n\t\t\tuniform bool latitudinal;\n\t\t\tuniform float dTheta;\n\t\t\tuniform float mipInt;\n\t\t\tuniform vec3 poleAxis;\n\n\t\t\t#define ENVMAP_TYPE_CUBE_UV\n\t\t\t#include \n\n\t\t\tvec3 getSample( float theta, vec3 axis ) {\n\n\t\t\t\tfloat cosTheta = cos( theta );\n\t\t\t\t// Rodrigues' axis-angle rotation\n\t\t\t\tvec3 sampleDirection = vOutputDirection * cosTheta\n\t\t\t\t\t+ cross( axis, vOutputDirection ) * sin( theta )\n\t\t\t\t\t+ axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta );\n\n\t\t\t\treturn bilinearCubeUV( envMap, sampleDirection, mipInt );\n\n\t\t\t}\n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection );\n\n\t\t\t\tif ( all( equal( axis, vec3( 0.0 ) ) ) ) {\n\n\t\t\t\t\taxis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x );\n\n\t\t\t\t}\n\n\t\t\t\taxis = normalize( axis );\n\n\t\t\t\tgl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 );\n\t\t\t\tgl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis );\n\n\t\t\t\tfor ( int i = 1; i < n; i++ ) {\n\n\t\t\t\t\tif ( i >= samples ) {\n\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\n\t\t\t\t\tfloat theta = dTheta * float( i );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis );\n\t\t\t\t\tgl_FragColor.rgb += weights[ i ] * getSample( theta, axis );\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t",blending:u,depthTest:!1,depthWrite:!1});return s}(i,t,e)}return i}_compileMaterial(t){const e=new Mr(this._lodPlanes[0],t);this._renderer.compile(e,ss)}_sceneToCubeUV(t,e,n,i){const r=new Pr(90,1,e,n),s=[1,-1,1,1,1,1],a=[1,1,1,-1,-1,-1],o=this._renderer,l=o.autoClear,h=o.toneMapping;o.getClearColor(as),o.toneMapping=W,o.autoClear=!1;const u=new Bi({name:"PMREM.Background",side:c,depthWrite:!1,depthTest:!1}),d=new Mr(new br(),u);let p=!1;const m=t.background;m?m.isColor&&(u.color.copy(m),t.background=null,p=!0):(u.color.copy(as),p=!0);for(let e=0;e<6;e++){const n=e%3;0===n?(r.up.set(0,s[e],0),r.lookAt(a[e],0,0)):1===n?(r.up.set(0,0,s[e]),r.lookAt(0,a[e],0)):(r.up.set(0,s[e],0),r.lookAt(0,0,a[e]));const l=this._cubeSize;ps(i,n*l,e>2?l:0,l,l),o.setRenderTarget(i),p&&o.render(d,r),o.render(t,r)}d.geometry.dispose(),d.material.dispose(),o.toneMapping=h,o.autoClear=l,t.background=m}_textureToCubeUV(t,e){const n=this._renderer,i=t.mapping===K||t.mapping===$;i?(null===this._cubemapMaterial&&(this._cubemapMaterial=fs()),this._cubemapMaterial.uniforms.flipEnvMap.value=!1===t.isRenderTargetTexture?-1:1):null===this._equirectMaterial&&(this._equirectMaterial=ms());const r=i?this._cubemapMaterial:this._equirectMaterial,s=new Mr(this._lodPlanes[0],r);r.uniforms.envMap.value=t;const a=this._cubeSize;ps(e,0,0,3*a,2*a),n.setRenderTarget(e),n.render(s,ss)}_applyPMREM(t){const e=this._renderer,n=e.autoClear;e.autoClear=!1;for(let e=1;ers&&console.warn(`sigmaRadians, ${r}, is too large and will clip, as it requested ${m} samples when the maximum is set to ${rs}`);const f=[];let g=0;for(let t=0;tv-ns?i-v+ns:0),4*(this._cubeSize-_),3*_,2*_),o.setRenderTarget(e),o.render(c,ss)}}function ds(t,e,n){const i=new dn(t,e,n);return i.texture.mapping=et,i.texture.name="PMREM.cubeUv",i.scissorTest=!0,i}function ps(t,e,n,i,r){t.viewport.set(e,n,i,r),t.scissor.set(e,n,i,r)}function ms(){return new Cr({name:"EquirectangularToCubeUV",uniforms:{envMap:{value:null}},vertexShader:gs(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform sampler2D envMap;\n\n\t\t\t#include \n\n\t\t\tvoid main() {\n\n\t\t\t\tvec3 outputDirection = normalize( vOutputDirection );\n\t\t\t\tvec2 uv = equirectUv( outputDirection );\n\n\t\t\t\tgl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 );\n\n\t\t\t}\n\t\t",blending:u,depthTest:!1,depthWrite:!1})}function fs(){return new Cr({name:"CubemapToCubeUV",uniforms:{envMap:{value:null},flipEnvMap:{value:-1}},vertexShader:gs(),fragmentShader:"\n\n\t\t\tprecision mediump float;\n\t\t\tprecision mediump int;\n\n\t\t\tuniform float flipEnvMap;\n\n\t\t\tvarying vec3 vOutputDirection;\n\n\t\t\tuniform samplerCube envMap;\n\n\t\t\tvoid main() {\n\n\t\t\t\tgl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) );\n\n\t\t\t}\n\t\t",blending:u,depthTest:!1,depthWrite:!1})}function gs(){return"\n\n\t\tprecision mediump float;\n\t\tprecision mediump int;\n\n\t\tattribute float faceIndex;\n\n\t\tvarying vec3 vOutputDirection;\n\n\t\t// RH coordinate system; PMREM face-indexing convention\n\t\tvec3 getDirection( vec2 uv, float face ) {\n\n\t\t\tuv = 2.0 * uv - 1.0;\n\n\t\t\tvec3 direction = vec3( uv, 1.0 );\n\n\t\t\tif ( face == 0.0 ) {\n\n\t\t\t\tdirection = direction.zyx; // ( 1, v, u ) pos x\n\n\t\t\t} else if ( face == 1.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xz *= -1.0; // ( -u, 1, -v ) pos y\n\n\t\t\t} else if ( face == 2.0 ) {\n\n\t\t\t\tdirection.x *= -1.0; // ( -u, v, 1 ) pos z\n\n\t\t\t} else if ( face == 3.0 ) {\n\n\t\t\t\tdirection = direction.zyx;\n\t\t\t\tdirection.xz *= -1.0; // ( -1, v, -u ) neg x\n\n\t\t\t} else if ( face == 4.0 ) {\n\n\t\t\t\tdirection = direction.xzy;\n\t\t\t\tdirection.xy *= -1.0; // ( -u, -1, v ) neg y\n\n\t\t\t} else if ( face == 5.0 ) {\n\n\t\t\t\tdirection.z *= -1.0; // ( u, v, -1 ) neg z\n\n\t\t\t}\n\n\t\t\treturn direction;\n\n\t\t}\n\n\t\tvoid main() {\n\n\t\t\tvOutputDirection = getDirection( uv, faceIndex );\n\t\t\tgl_Position = vec4( position, 1.0 );\n\n\t\t}\n\t"}function vs(t){let e=new WeakMap,n=null;function i(t){const n=t.target;n.removeEventListener("dispose",i);const r=e.get(n);void 0!==r&&(e.delete(n),r.dispose())}return{get:function(r){if(r&&r.isTexture){const s=r.mapping,a=s===Q||s===tt,o=s===K||s===$;if(a||o){if(r.isRenderTargetTexture&&!0===r.needsPMREMUpdate){r.needsPMREMUpdate=!1;let i=e.get(r);return null===n&&(n=new us(t)),i=a?n.fromEquirectangular(r,i):n.fromCubemap(r,i),e.set(r,i),i.texture}if(e.has(r))return e.get(r).texture;{const s=r.image;if(a&&s&&s.height>0||o&&s&&function(t){let e=0;const n=6;for(let i=0;ie.maxTextureSize&&(T=Math.ceil(w/e.maxTextureSize),w=e.maxTextureSize);const E=new Float32Array(w*T*4*p),A=new pn(E,w,T,p);A.type=vt,A.needsUpdate=!0;const C=4*b;for(let P=0;P0)return t;const r=e*n;let s=Ps[r];if(void 0===s&&(s=new Float32Array(r),Ps[r]=s),0!==e){i.toArray(s,0);for(let i=1,r=0;i!==e;++i)r+=n,t[i].toArray(s,r)}return s}function Os(t,e){if(t.length!==e.length)return!1;for(let n=0,i=t.length;n":" "} ${r}: ${n[t]}`)}return i.join("\n")}(t.getShaderSource(e),i)}return r}function Da(t,e){const n=function(t){switch(t){case ve:return["Linear","( value )"];case _e:return["sRGB","( value )"];default:return console.warn("THREE.WebGLProgram: Unsupported encoding:",t),["Linear","( value )"];}}(e);return"vec4 "+t+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function Ua(t,e){let n;switch(e){case j:n="Linear";break;case q:n="Reinhard";break;case X:n="OptimizedCineon";break;case Y:n="ACESFilmic";break;case Z:n="Custom";break;default:console.warn("THREE.WebGLProgram: Unsupported toneMapping:",e),n="Linear";}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function Na(t){return""!==t}function Oa(t,e){const n=e.numSpotLightShadows+e.numSpotLightMaps-e.numSpotLightShadowsWithMaps;return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_SPOT_LIGHT_MAPS/g,e.numSpotLightMaps).replace(/NUM_SPOT_LIGHT_COORDS/g,n).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights).replace(/NUM_DIR_LIGHT_SHADOWS/g,e.numDirLightShadows).replace(/NUM_SPOT_LIGHT_SHADOWS_WITH_MAPS/g,e.numSpotLightShadowsWithMaps).replace(/NUM_SPOT_LIGHT_SHADOWS/g,e.numSpotLightShadows).replace(/NUM_POINT_LIGHT_SHADOWS/g,e.numPointLightShadows)}function za(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}const Ba=/^[ \t]*#include +<([\w\d./]+)>/gm;function Fa(t){return t.replace(Ba,ka)}function ka(t,e){const n=jr[e];if(void 0===n)throw new Error("Can not resolve #include <"+e+">");return Fa(n)}const Ga=/#pragma unroll_loop_start\s+for\s*\(\s*int\s+i\s*=\s*(\d+)\s*;\s*i\s*<\s*(\d+)\s*;\s*i\s*\+\+\s*\)\s*{([\s\S]+?)}\s+#pragma unroll_loop_end/g;function Va(t){return t.replace(Ga,Ha)}function Ha(t,e,n,i){let r="";for(let t=parseInt(e);t0&&(x+="\n"),y=[g,v].filter(Na).join("\n"),y.length>0&&(y+="\n")):(x=[Wa(n),"#define SHADER_NAME "+n.shaderName,v,n.instancing?"#define USE_INSTANCING":"",n.instancingColor?"#define USE_INSTANCING_COLOR":"",n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+p:"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.displacementMap?"#define USE_DISPLACEMENTMAP":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.mapUv?"#define MAP_UV "+n.mapUv:"",n.alphaMapUv?"#define ALPHAMAP_UV "+n.alphaMapUv:"",n.lightMapUv?"#define LIGHTMAP_UV "+n.lightMapUv:"",n.aoMapUv?"#define AOMAP_UV "+n.aoMapUv:"",n.emissiveMapUv?"#define EMISSIVEMAP_UV "+n.emissiveMapUv:"",n.bumpMapUv?"#define BUMPMAP_UV "+n.bumpMapUv:"",n.normalMapUv?"#define NORMALMAP_UV "+n.normalMapUv:"",n.displacementMapUv?"#define DISPLACEMENTMAP_UV "+n.displacementMapUv:"",n.metalnessMapUv?"#define METALNESSMAP_UV "+n.metalnessMapUv:"",n.roughnessMapUv?"#define ROUGHNESSMAP_UV "+n.roughnessMapUv:"",n.clearcoatMapUv?"#define CLEARCOATMAP_UV "+n.clearcoatMapUv:"",n.clearcoatNormalMapUv?"#define CLEARCOAT_NORMALMAP_UV "+n.clearcoatNormalMapUv:"",n.clearcoatRoughnessMapUv?"#define CLEARCOAT_ROUGHNESSMAP_UV "+n.clearcoatRoughnessMapUv:"",n.iridescenceMapUv?"#define IRIDESCENCEMAP_UV "+n.iridescenceMapUv:"",n.iridescenceThicknessMapUv?"#define IRIDESCENCE_THICKNESSMAP_UV "+n.iridescenceThicknessMapUv:"",n.sheenColorMapUv?"#define SHEEN_COLORMAP_UV "+n.sheenColorMapUv:"",n.sheenRoughnessMapUv?"#define SHEEN_ROUGHNESSMAP_UV "+n.sheenRoughnessMapUv:"",n.specularMapUv?"#define SPECULARMAP_UV "+n.specularMapUv:"",n.specularColorMapUv?"#define SPECULAR_COLORMAP_UV "+n.specularColorMapUv:"",n.specularIntensityMapUv?"#define SPECULAR_INTENSITYMAP_UV "+n.specularIntensityMapUv:"",n.transmissionMapUv?"#define TRANSMISSIONMAP_UV "+n.transmissionMapUv:"",n.thicknessMapUv?"#define THICKNESSMAP_UV "+n.thicknessMapUv:"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs2?"#define USE_UV2":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.flatShading?"#define FLAT_SHADED":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.morphNormals&&!1===n.flatShading?"#define USE_MORPHNORMALS":"",n.morphColors&&n.isWebGL2?"#define USE_MORPHCOLORS":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE":"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_TEXTURE_STRIDE "+n.morphTextureStride:"",n.morphTargetsCount>0&&n.isWebGL2?"#define MORPHTARGETS_COUNT "+n.morphTargetsCount:"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+u:"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;","#ifdef USE_INSTANCING","\tattribute mat4 instanceMatrix;","#endif","#ifdef USE_INSTANCING_COLOR","\tattribute vec3 instanceColor;","#endif","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_TANGENT","\tattribute vec4 tangent;","#endif","#if defined( USE_COLOR_ALPHA )","\tattribute vec4 color;","#elif defined( USE_COLOR )","\tattribute vec3 color;","#endif","#if ( defined( USE_MORPHTARGETS ) && ! defined( MORPHTARGETS_TEXTURE ) )","\tattribute vec3 morphTarget0;","\tattribute vec3 morphTarget1;","\tattribute vec3 morphTarget2;","\tattribute vec3 morphTarget3;","\t#ifdef USE_MORPHNORMALS","\t\tattribute vec3 morphNormal0;","\t\tattribute vec3 morphNormal1;","\t\tattribute vec3 morphNormal2;","\t\tattribute vec3 morphNormal3;","\t#else","\t\tattribute vec3 morphTarget4;","\t\tattribute vec3 morphTarget5;","\t\tattribute vec3 morphTarget6;","\t\tattribute vec3 morphTarget7;","\t#endif","#endif","#ifdef USE_SKINNING","\tattribute vec4 skinIndex;","\tattribute vec4 skinWeight;","#endif","\n"].filter(Na).join("\n"),y=[g,Wa(n),"#define SHADER_NAME "+n.shaderName,v,n.useFog&&n.fog?"#define USE_FOG":"",n.useFog&&n.fogExp2?"#define FOG_EXP2":"",n.map?"#define USE_MAP":"",n.matcap?"#define USE_MATCAP":"",n.envMap?"#define USE_ENVMAP":"",n.envMap?"#define "+d:"",n.envMap?"#define "+p:"",n.envMap?"#define "+m:"",f?"#define CUBEUV_TEXEL_WIDTH "+f.texelWidth:"",f?"#define CUBEUV_TEXEL_HEIGHT "+f.texelHeight:"",f?"#define CUBEUV_MAX_MIP "+f.maxMip+".0":"",n.lightMap?"#define USE_LIGHTMAP":"",n.aoMap?"#define USE_AOMAP":"",n.bumpMap?"#define USE_BUMPMAP":"",n.normalMap?"#define USE_NORMALMAP":"",n.normalMapObjectSpace?"#define USE_NORMALMAP_OBJECTSPACE":"",n.normalMapTangentSpace?"#define USE_NORMALMAP_TANGENTSPACE":"",n.emissiveMap?"#define USE_EMISSIVEMAP":"",n.clearcoat?"#define USE_CLEARCOAT":"",n.clearcoatMap?"#define USE_CLEARCOATMAP":"",n.clearcoatRoughnessMap?"#define USE_CLEARCOAT_ROUGHNESSMAP":"",n.clearcoatNormalMap?"#define USE_CLEARCOAT_NORMALMAP":"",n.iridescence?"#define USE_IRIDESCENCE":"",n.iridescenceMap?"#define USE_IRIDESCENCEMAP":"",n.iridescenceThicknessMap?"#define USE_IRIDESCENCE_THICKNESSMAP":"",n.specularMap?"#define USE_SPECULARMAP":"",n.specularColorMap?"#define USE_SPECULAR_COLORMAP":"",n.specularIntensityMap?"#define USE_SPECULAR_INTENSITYMAP":"",n.roughnessMap?"#define USE_ROUGHNESSMAP":"",n.metalnessMap?"#define USE_METALNESSMAP":"",n.alphaMap?"#define USE_ALPHAMAP":"",n.alphaTest?"#define USE_ALPHATEST":"",n.sheen?"#define USE_SHEEN":"",n.sheenColorMap?"#define USE_SHEEN_COLORMAP":"",n.sheenRoughnessMap?"#define USE_SHEEN_ROUGHNESSMAP":"",n.transmission?"#define USE_TRANSMISSION":"",n.transmissionMap?"#define USE_TRANSMISSIONMAP":"",n.thicknessMap?"#define USE_THICKNESSMAP":"",n.decodeVideoTexture?"#define DECODE_VIDEO_TEXTURE":"",n.vertexTangents?"#define USE_TANGENT":"",n.vertexColors||n.instancingColor?"#define USE_COLOR":"",n.vertexAlphas?"#define USE_COLOR_ALPHA":"",n.vertexUvs2?"#define USE_UV2":"",n.pointsUvs?"#define USE_POINTS_UV":"",n.gradientMap?"#define USE_GRADIENTMAP":"",n.flatShading?"#define FLAT_SHADED":"",n.doubleSided?"#define DOUBLE_SIDED":"",n.flipSided?"#define FLIP_SIDED":"",n.shadowMapEnabled?"#define USE_SHADOWMAP":"",n.shadowMapEnabled?"#define "+u:"",n.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",n.useLegacyLights?"#define LEGACY_LIGHTS":"",n.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",n.logarithmicDepthBuffer&&n.rendererExtensionFragDepth?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;","uniform bool isOrthographic;",n.toneMapping!==W?"#define TONE_MAPPING":"",n.toneMapping!==W?jr.tonemapping_pars_fragment:"",n.toneMapping!==W?Ua("toneMapping",n.toneMapping):"",n.dithering?"#define DITHERING":"",n.opaque?"#define OPAQUE":"",jr.encodings_pars_fragment,Da("linearToOutputTexel",n.outputEncoding),n.useDepthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Na).join("\n")),c=Fa(c),c=Oa(c,n),c=za(c,n),h=Fa(h),h=Oa(h,n),h=za(h,n),c=Va(c),h=Va(h),n.isWebGL2&&!0!==n.isRawShaderMaterial&&(M="#version 300 es\n",x=["precision mediump sampler2DArray;","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+x,y=["#define varying in",n.glslVersion===Ae?"":"layout(location = 0) out highp vec4 pc_fragColor;",n.glslVersion===Ae?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+y);const S=M+y+h,b=Pa(r,35633,M+x+c),w=Pa(r,35632,S);if(r.attachShader(_,b),r.attachShader(_,w),void 0!==n.index0AttributeName?r.bindAttribLocation(_,0,n.index0AttributeName):!0===n.morphTargets&&r.bindAttribLocation(_,0,"position"),r.linkProgram(_),t.debug.checkShaderErrors){const e=r.getProgramInfoLog(_).trim(),n=r.getShaderInfoLog(b).trim(),i=r.getShaderInfoLog(w).trim();let s=!0,a=!0;if(!1===r.getProgramParameter(_,35714)){if(s=!1,"function"==typeof t.debug.onShaderError)t.debug.onShaderError(r,_,b,w);else{const t=Ia(r,b,"vertex"),n=Ia(r,w,"fragment");console.error("THREE.WebGLProgram: Shader Error "+r.getError()+" - VALIDATE_STATUS "+r.getProgramParameter(_,35715)+"\n\nProgram Info Log: "+e+"\n"+t+"\n"+n)}}else""!==e?console.warn("THREE.WebGLProgram: Program Info Log:",e):""!==n&&""!==i||(a=!1);a&&(this.diagnostics={runnable:s,programLog:e,vertexShader:{log:n,prefix:x},fragmentShader:{log:i,prefix:y}})}let T,E;return r.deleteShader(b),r.deleteShader(w),this.getUniforms=function(){return void 0===T&&(T=new La(r,_)),T},this.getAttributes=function(){return void 0===E&&(E=function(t,e){const n={},i=t.getProgramParameter(e,35721);for(let r=0;r0,Z=s.iridescence>0,J=s.sheen>0,K=s.transmission>0,$=Y&&!!s.clearcoatMap,Q=Y&&!!s.clearcoatNormalMap,tt=Y&&!!s.clearcoatRoughnessMap,nt=Z&&!!s.iridescenceMap,it=Z&&!!s.iridescenceThicknessMap,rt=J&&!!s.sheenColorMap,st=J&&!!s.sheenRoughnessMap,at=!!s.specularMap,ot=!!s.specularColorMap,lt=!!s.specularIntensityMap,ct=K&&!!s.transmissionMap,ht=K&&!!s.thicknessMap,ut=!!s.gradientMap,dt=!!s.alphaMap,pt=s.alphaTest>0,mt=!!s.extensions,ft=!!S.attributes.uv2;return{isWebGL2:p,shaderID:E,shaderName:s.type,vertexShader:L,fragmentShader:P,defines:s.defines,customVertexShaderID:R,customFragmentShaderID:I,isRawShaderMaterial:!0===s.isRawShaderMaterial,glslVersion:s.glslVersion,precision:g,instancing:N,instancingColor:N&&null!==y.instanceColor,supportsVertexTextures:f,outputEncoding:null===U?t.outputEncoding:!0===U.isXRRenderTarget?U.texture.encoding:ve,map:O,matcap:z,envMap:B,envMapMode:B&&w.mapping,envMapCubeUVHeight:T,aoMap:F,lightMap:k,bumpMap:G,normalMap:V,displacementMap:f&&H,emissiveMap:j,normalMapObjectSpace:V&&s.normalMapType===Me,normalMapTangentSpace:V&&s.normalMapType===ye,decodeVideoTexture:O&&!0===s.map.isVideoTexture&&s.map.encoding===_e,metalnessMap:q,roughnessMap:X,clearcoat:Y,clearcoatMap:$,clearcoatNormalMap:Q,clearcoatRoughnessMap:tt,iridescence:Z,iridescenceMap:nt,iridescenceThicknessMap:it,sheen:J,sheenColorMap:rt,sheenRoughnessMap:st,specularMap:at,specularColorMap:ot,specularIntensityMap:lt,transmission:K,transmissionMap:ct,thicknessMap:ht,gradientMap:ut,opaque:!1===s.transparent&&s.blending===d,alphaMap:dt,alphaTest:pt,combine:s.combine,mapUv:O&&_(s.map.channel),aoMapUv:F&&_(s.aoMap.channel),lightMapUv:k&&_(s.lightMap.channel),bumpMapUv:G&&_(s.bumpMap.channel),normalMapUv:V&&_(s.normalMap.channel),displacementMapUv:H&&_(s.displacementMap.channel),emissiveMapUv:j&&_(s.emissiveMap.channel),metalnessMapUv:q&&_(s.metalnessMap.channel),roughnessMapUv:X&&_(s.roughnessMap.channel),clearcoatMapUv:$&&_(s.clearcoatMap.channel),clearcoatNormalMapUv:Q&&_(s.clearcoatNormalMap.channel),clearcoatRoughnessMapUv:tt&&_(s.clearcoatRoughnessMap.channel),iridescenceMapUv:nt&&_(s.iridescenceMap.channel),iridescenceThicknessMapUv:it&&_(s.iridescenceThicknessMap.channel),sheenColorMapUv:rt&&_(s.sheenColorMap.channel),sheenRoughnessMapUv:st&&_(s.sheenRoughnessMap.channel),specularMapUv:at&&_(s.specularMap.channel),specularColorMapUv:ot&&_(s.specularColorMap.channel),specularIntensityMapUv:lt&&_(s.specularIntensityMap.channel),transmissionMapUv:ct&&_(s.transmissionMap.channel),thicknessMapUv:ht&&_(s.thicknessMap.channel),alphaMapUv:dt&&_(s.alphaMap.channel),vertexTangents:V&&!!S.attributes.tangent,vertexColors:s.vertexColors,vertexAlphas:!0===s.vertexColors&&!!S.attributes.color&&4===S.attributes.color.itemSize,vertexUvs2:ft,pointsUvs:!0===y.isPoints&&!!S.attributes.uv&&(O||dt),fog:!!M,useFog:!0===s.fog,fogExp2:M&&M.isFogExp2,flatShading:!0===s.flatShading,sizeAttenuation:!0===s.sizeAttenuation,logarithmicDepthBuffer:m,skinning:!0===y.isSkinnedMesh,morphTargets:void 0!==S.morphAttributes.position,morphNormals:void 0!==S.morphAttributes.normal,morphColors:void 0!==S.morphAttributes.color,morphTargetsCount:C,morphTextureStride:D,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numSpotLightMaps:o.spotLightMap.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numDirLightShadows:o.directionalShadowMap.length,numPointLightShadows:o.pointShadowMap.length,numSpotLightShadows:o.spotShadowMap.length,numSpotLightShadowsWithMaps:o.numSpotLightShadowsWithMaps,numClippingPlanes:a.numPlanes,numClipIntersection:a.numIntersection,dithering:s.dithering,shadowMapEnabled:t.shadowMap.enabled&&u.length>0,shadowMapType:t.shadowMap.type,toneMapping:s.toneMapped?t.toneMapping:W,useLegacyLights:t.useLegacyLights,premultipliedAlpha:s.premultipliedAlpha,doubleSided:s.side===h,flipSided:s.side===c,useDepthPacking:s.depthPacking>=0,depthPacking:s.depthPacking||0,index0AttributeName:s.index0AttributeName,extensionDerivatives:mt&&!0===s.extensions.derivatives,extensionFragDepth:mt&&!0===s.extensions.fragDepth,extensionDrawBuffers:mt&&!0===s.extensions.drawBuffers,extensionShaderTextureLOD:mt&&!0===s.extensions.shaderTextureLOD,rendererExtensionFragDepth:p||i.has("EXT_frag_depth"),rendererExtensionDrawBuffers:p||i.has("WEBGL_draw_buffers"),rendererExtensionShaderTextureLod:p||i.has("EXT_shader_texture_lod"),customProgramCacheKey:s.customProgramCacheKey()}},getProgramCacheKey:function(e){const n=[];if(e.shaderID?n.push(e.shaderID):(n.push(e.customVertexShaderID),n.push(e.customFragmentShaderID)),void 0!==e.defines)for(const t in e.defines)n.push(t),n.push(e.defines[t]);return!1===e.isRawShaderMaterial&&(!function(t,e){t.push(e.precision),t.push(e.outputEncoding),t.push(e.envMapMode),t.push(e.envMapCubeUVHeight),t.push(e.mapUv),t.push(e.alphaMapUv),t.push(e.lightMapUv),t.push(e.aoMapUv),t.push(e.bumpMapUv),t.push(e.normalMapUv),t.push(e.displacementMapUv),t.push(e.emissiveMapUv),t.push(e.metalnessMapUv),t.push(e.roughnessMapUv),t.push(e.clearcoatMapUv),t.push(e.clearcoatNormalMapUv),t.push(e.clearcoatRoughnessMapUv),t.push(e.iridescenceMapUv),t.push(e.iridescenceThicknessMapUv),t.push(e.sheenColorMapUv),t.push(e.sheenRoughnessMapUv),t.push(e.specularMapUv),t.push(e.specularColorMapUv),t.push(e.specularIntensityMapUv),t.push(e.transmissionMapUv),t.push(e.thicknessMapUv),t.push(e.combine),t.push(e.fogExp2),t.push(e.sizeAttenuation),t.push(e.morphTargetsCount),t.push(e.morphAttributeCount),t.push(e.numDirLights),t.push(e.numPointLights),t.push(e.numSpotLights),t.push(e.numSpotLightMaps),t.push(e.numHemiLights),t.push(e.numRectAreaLights),t.push(e.numDirLightShadows),t.push(e.numPointLightShadows),t.push(e.numSpotLightShadows),t.push(e.numSpotLightShadowsWithMaps),t.push(e.shadowMapType),t.push(e.toneMapping),t.push(e.numClippingPlanes),t.push(e.numClipIntersection),t.push(e.depthPacking)}(n,e),function(t,e){o.disableAll(),e.isWebGL2&&o.enable(0);e.supportsVertexTextures&&o.enable(1);e.instancing&&o.enable(2);e.instancingColor&&o.enable(3);e.matcap&&o.enable(4);e.envMap&&o.enable(5);e.normalMapObjectSpace&&o.enable(6);e.normalMapTangentSpace&&o.enable(7);e.clearcoat&&o.enable(8);e.iridescence&&o.enable(9);e.alphaTest&&o.enable(10);e.vertexColors&&o.enable(11);e.vertexAlphas&&o.enable(12);e.vertexUvs2&&o.enable(13);e.vertexTangents&&o.enable(14);t.push(o.mask),o.disableAll(),e.fog&&o.enable(0);e.useFog&&o.enable(1);e.flatShading&&o.enable(2);e.logarithmicDepthBuffer&&o.enable(3);e.skinning&&o.enable(4);e.morphTargets&&o.enable(5);e.morphNormals&&o.enable(6);e.morphColors&&o.enable(7);e.premultipliedAlpha&&o.enable(8);e.shadowMapEnabled&&o.enable(9);e.useLegacyLights&&o.enable(10);e.doubleSided&&o.enable(11);e.flipSided&&o.enable(12);e.useDepthPacking&&o.enable(13);e.dithering&&o.enable(14);e.transmission&&o.enable(15);e.sheen&&o.enable(16);e.decodeVideoTexture&&o.enable(17);e.opaque&&o.enable(18);e.pointsUvs&&o.enable(19);t.push(o.mask)}(n,e),n.push(t.outputEncoding)),n.push(e.customProgramCacheKey),n.join()},getUniforms:function(t){const e=v[t.type];let n;if(e){const t=Xr[e];n=Ar.clone(t.uniforms)}else n=t.uniforms;return n},acquireProgram:function(e,n){let i;for(let t=0,e=u.length;t0?i.push(h):!0===a.transparent?r.push(h):n.push(h)},unshift:function(t,e,a,o,l,c){const h=s(t,e,a,o,l,c);a.transmission>0?i.unshift(h):!0===a.transparent?r.unshift(h):n.unshift(h)},finish:function(){for(let n=e,i=t.length;n1&&n.sort(t||Ka),i.length>1&&i.sort(e||$a),r.length>1&&r.sort(e||$a)}}}function to(){let t=new WeakMap;return{get:function(e,n){const i=t.get(e);let r;return void 0===i?(r=new Qa,t.set(e,[r])):n>=i.length?(r=new Qa,i.push(r)):r=i[n],r},dispose:function(){t=new WeakMap}}}function eo(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":n={direction:new gn,color:new Oi};break;case"SpotLight":n={position:new gn,direction:new gn,color:new Oi,distance:0,coneCos:0,penumbraCos:0,decay:0};break;case"PointLight":n={position:new gn,color:new Oi,distance:0,decay:0};break;case"HemisphereLight":n={direction:new gn,skyColor:new Oi,groundColor:new Oi};break;case"RectAreaLight":n={color:new Oi,position:new gn,halfWidth:new gn,halfHeight:new gn};}return t[e.id]=n,n}}}let no=0;function io(t,e){return(e.castShadow?2:0)-(t.castShadow?2:0)+(e.map?1:0)-(t.map?1:0)}function ro(t,e){const n=new eo,i=function(){const t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];let n;switch(e.type){case"DirectionalLight":case"SpotLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new We};break;case"PointLight":n={shadowBias:0,shadowNormalBias:0,shadowRadius:1,shadowMapSize:new We,shadowCameraNear:1,shadowCameraFar:1e3};}return t[e.id]=n,n}}}(),r={version:0,hash:{directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,numDirectionalShadows:-1,numPointShadows:-1,numSpotShadows:-1,numSpotMaps:-1},ambient:[0,0,0],probe:[],directional:[],directionalShadow:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotLightMap:[],spotShadow:[],spotShadowMap:[],spotLightMatrix:[],rectArea:[],rectAreaLTC1:null,rectAreaLTC2:null,point:[],pointShadow:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],numSpotLightShadowsWithMaps:0};for(let t=0;t<9;t++)r.probe.push(new gn);const s=new gn,a=new qn,o=new qn;return{setup:function(s,a){let o=0,l=0,c=0;for(let t=0;t<9;t++)r.probe[t].set(0,0,0);let h=0,u=0,d=0,p=0,m=0,f=0,g=0,v=0,_=0,x=0;s.sort(io);const y=!0===a?Math.PI:1;for(let t=0,e=s.length;t0&&(e.isWebGL2||!0===t.has("OES_texture_float_linear")?(r.rectAreaLTC1=qr.LTC_FLOAT_1,r.rectAreaLTC2=qr.LTC_FLOAT_2):!0===t.has("OES_texture_half_float_linear")?(r.rectAreaLTC1=qr.LTC_HALF_1,r.rectAreaLTC2=qr.LTC_HALF_2):console.error("THREE.WebGLRenderer: Unable to use RectAreaLight. Missing WebGL extensions.")),r.ambient[0]=o,r.ambient[1]=l,r.ambient[2]=c;const M=r.hash;M.directionalLength===h&&M.pointLength===u&&M.spotLength===d&&M.rectAreaLength===p&&M.hemiLength===m&&M.numDirectionalShadows===f&&M.numPointShadows===g&&M.numSpotShadows===v&&M.numSpotMaps===_||(r.directional.length=h,r.spot.length=d,r.rectArea.length=p,r.point.length=u,r.hemi.length=m,r.directionalShadow.length=f,r.directionalShadowMap.length=f,r.pointShadow.length=g,r.pointShadowMap.length=g,r.spotShadow.length=v,r.spotShadowMap.length=v,r.directionalShadowMatrix.length=f,r.pointShadowMatrix.length=g,r.spotLightMatrix.length=v+_-x,r.spotLightMap.length=_,r.numSpotLightShadowsWithMaps=x,M.directionalLength=h,M.pointLength=u,M.spotLength=d,M.rectAreaLength=p,M.hemiLength=m,M.numDirectionalShadows=f,M.numPointShadows=g,M.numSpotShadows=v,M.numSpotMaps=_,r.version=no++)},setupView:function(t,e){let n=0,i=0,l=0,c=0,h=0;const u=e.matrixWorldInverse;for(let e=0,d=t.length;e=s.length?(a=new so(t,e),s.push(a)):a=s[r],a},dispose:function(){n=new WeakMap}}}class oo extends Ri{constructor(t){super(),this.isMeshDepthMaterial=!0,this.type="MeshDepthMaterial",this.depthPacking=3200,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.setValues(t)}copy(t){return super.copy(t),this.depthPacking=t.depthPacking,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this}}class lo extends Ri{constructor(t){super(),this.isMeshDistanceMaterial=!0,this.type="MeshDistanceMaterial",this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.setValues(t)}copy(t){return super.copy(t),this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this}}const co="void main() {\n\tgl_Position = vec4( position, 1.0 );\n}",ho="uniform sampler2D shadow_pass;\nuniform vec2 resolution;\nuniform float radius;\n#include \nvoid main() {\n\tconst float samples = float( VSM_SAMPLES );\n\tfloat mean = 0.0;\n\tfloat squared_mean = 0.0;\n\tfloat uvStride = samples <= 1.0 ? 0.0 : 2.0 / ( samples - 1.0 );\n\tfloat uvStart = samples <= 1.0 ? 0.0 : - 1.0;\n\tfor ( float i = 0.0; i < samples; i ++ ) {\n\t\tfloat uvOffset = uvStart + i * uvStride;\n\t\t#ifdef HORIZONTAL_PASS\n\t\t\tvec2 distribution = unpackRGBATo2Half( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( uvOffset, 0.0 ) * radius ) / resolution ) );\n\t\t\tmean += distribution.x;\n\t\t\tsquared_mean += distribution.y * distribution.y + distribution.x * distribution.x;\n\t\t#else\n\t\t\tfloat depth = unpackRGBAToDepth( texture2D( shadow_pass, ( gl_FragCoord.xy + vec2( 0.0, uvOffset ) * radius ) / resolution ) );\n\t\t\tmean += depth;\n\t\t\tsquared_mean += depth * depth;\n\t\t#endif\n\t}\n\tmean = mean / samples;\n\tsquared_mean = squared_mean / samples;\n\tfloat std_dev = sqrt( squared_mean - mean * mean );\n\tgl_FragColor = pack2HalfToRGBA( vec2( mean, std_dev ) );\n}";function uo(t,e,n){let i=new Gr;const r=new We,a=new We,d=new un,p=new oo({depthPacking:xe}),m=new lo,f={},g=n.maxTextureSize,v={[l]:c,[c]:l,[h]:h},_=new Cr({defines:{VSM_SAMPLES:8},uniforms:{shadow_pass:{value:null},resolution:{value:new We},radius:{value:4}},vertexShader:co,fragmentShader:ho}),x=_.clone();x.defines.HORIZONTAL_PASS=1;const y=new ir;y.setAttribute("position",new qi(new Float32Array([-1,-1,.5,3,-1,.5,-1,3,.5]),3));const M=new Mr(y,_),S=this;function b(n,i){const s=e.update(M);_.defines.VSM_SAMPLES!==n.blurSamples&&(_.defines.VSM_SAMPLES=n.blurSamples,x.defines.VSM_SAMPLES=n.blurSamples,_.needsUpdate=!0,x.needsUpdate=!0),null===n.mapPass&&(n.mapPass=new dn(r.x,r.y)),_.uniforms.shadow_pass.value=n.map.texture,_.uniforms.resolution.value=n.mapSize,_.uniforms.radius.value=n.radius,t.setRenderTarget(n.mapPass),t.clear(),t.renderBufferDirect(i,null,s,_,M,null),x.uniforms.shadow_pass.value=n.mapPass.texture,x.uniforms.resolution.value=n.mapSize,x.uniforms.radius.value=n.radius,t.setRenderTarget(n.map),t.clear(),t.renderBufferDirect(i,null,s,x,M,null)}function w(e,n,i,r){let s=null;const a=!0===i.isPointLight?e.customDistanceMaterial:e.customDepthMaterial;if(void 0!==a)s=a;else if(s=!0===i.isPointLight?m:p,t.localClippingEnabled&&!0===n.clipShadows&&Array.isArray(n.clippingPlanes)&&0!==n.clippingPlanes.length||n.displacementMap&&0!==n.displacementScale||n.alphaMap&&n.alphaTest>0||n.map&&n.alphaTest>0){const t=s.uuid,e=n.uuid;let i=f[t];void 0===i&&(i={},f[t]=i);let r=i[e];void 0===r&&(r=s.clone(),i[e]=r),s=r}if(s.visible=n.visible,s.wireframe=n.wireframe,s.side=r===o?null!==n.shadowSide?n.shadowSide:n.side:null!==n.shadowSide?n.shadowSide:v[n.side],s.alphaMap=n.alphaMap,s.alphaTest=n.alphaTest,s.map=n.map,s.clipShadows=n.clipShadows,s.clippingPlanes=n.clippingPlanes,s.clipIntersection=n.clipIntersection,s.displacementMap=n.displacementMap,s.displacementScale=n.displacementScale,s.displacementBias=n.displacementBias,s.wireframeLinewidth=n.wireframeLinewidth,s.linewidth=n.linewidth,!0===i.isPointLight&&!0===s.isMeshDistanceMaterial){t.properties.get(s).light=i}return s}function T(n,r,s,a,l){if(!1===n.visible)return;if(n.layers.test(r.layers)&&(n.isMesh||n.isLine||n.isPoints)&&(n.castShadow||n.receiveShadow&&l===o)&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(s.matrixWorldInverse,n.matrixWorld);const i=e.update(n),r=n.material;if(Array.isArray(r)){const e=i.groups;for(let o=0,c=e.length;og||r.y>g)&&(r.x>g&&(a.x=Math.floor(g/u.x),r.x=a.x*u.x,h.mapSize.x=a.x),r.y>g&&(a.y=Math.floor(g/u.y),r.y=a.y*u.y,h.mapSize.y=a.y)),null===h.map){const t=this.type!==o?{minFilter:st,magFilter:st}:{};h.map=new dn(r.x,r.y,t),h.map.texture.name=c.name+".shadowMap",h.camera.updateProjectionMatrix()}t.setRenderTarget(h.map),t.clear();const m=h.getViewportCount();for(let t=0;t=1):-1!==dt.indexOf("OpenGL ES")&&(ut=parseFloat(/^OpenGL ES (\d)/.exec(dt)[1]),ht=ut>=2);let pt=null,mt={};const ft=t.getParameter(3088),gt=t.getParameter(2978),vt=new un().fromArray(ft),_t=new un().fromArray(gt);function xt(e,n,i){const r=new Uint8Array(4),s=t.createTexture();t.bindTexture(e,s),t.texParameteri(e,10241,9728),t.texParameteri(e,10240,9728);for(let e=0;ei||t.height>i)&&(r=i/Math.max(t.width,t.height)),r<1||!0===e){if("undefined"!=typeof HTMLImageElement&&t instanceof HTMLImageElement||"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement||"undefined"!=typeof ImageBitmap&&t instanceof ImageBitmap){const i=e?ke:Math.floor,s=i(r*t.width),a=i(r*t.height);void 0===f&&(f=_(s,a));const o=n?_(s,a):f;o.width=s,o.height=a;return o.getContext("2d").drawImage(t,0,0,s,a),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+t.width+"x"+t.height+") to ("+s+"x"+a+")."),o}return"data"in t&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+t.width+"x"+t.height+")."),t}return t}function y(t){return Be(t.width)&&Be(t.height)}function M(t,e){return t.generateMipmaps&&e&&t.minFilter!==st&&t.minFilter!==lt}function S(e){t.generateMipmap(e)}function b(n,i,r,s,a=!1){if(!1===o)return i;if(null!==n){if(void 0!==t[n])return t[n];console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '"+n+"'")}let l=i;return 6403===i&&(5126===r&&(l=33326),5131===r&&(l=33325),5121===r&&(l=33321)),33319===i&&(5126===r&&(l=33328),5131===r&&(l=33327),5121===r&&(l=33323)),6408===i&&(5126===r&&(l=34836),5131===r&&(l=34842),5121===r&&(l=s===_e&&!1===a?35907:32856),32819===r&&(l=32854),32820===r&&(l=32855)),33325!==l&&33326!==l&&33327!==l&&33328!==l&&34842!==l&&34836!==l||e.get("EXT_color_buffer_float"),l}function w(t,e,n){return!0===M(t,n)||t.isFramebufferTexture&&t.minFilter!==st&&t.minFilter!==lt?Math.log2(Math.max(e.width,e.height))+1:void 0!==t.mipmaps&&t.mipmaps.length>0?t.mipmaps.length:t.isCompressedTexture&&Array.isArray(t.image)?e.mipmaps.length:1}function T(t){return t===st||t===at||t===ot?9728:9729}function E(t){const e=t.target;e.removeEventListener("dispose",E),function(t){const e=i.get(t);if(void 0===e.__webglInit)return;const n=t.source,r=g.get(n);if(r){const i=r[e.__cacheKey];i.usedTimes--,0===i.usedTimes&&C(t),0===Object.keys(r).length&&g.delete(n)}i.remove(t)}(e),e.isVideoTexture&&m.delete(e)}function A(e){const n=e.target;n.removeEventListener("dispose",A),function(e){const n=e.texture,r=i.get(e),s=i.get(n);void 0!==s.__webglTexture&&(t.deleteTexture(s.__webglTexture),a.memory.textures--);e.depthTexture&&e.depthTexture.dispose();if(e.isWebGLCubeRenderTarget)for(let e=0;e<6;e++)t.deleteFramebuffer(r.__webglFramebuffer[e]),r.__webglDepthbuffer&&t.deleteRenderbuffer(r.__webglDepthbuffer[e]);else{if(t.deleteFramebuffer(r.__webglFramebuffer),r.__webglDepthbuffer&&t.deleteRenderbuffer(r.__webglDepthbuffer),r.__webglMultisampledFramebuffer&&t.deleteFramebuffer(r.__webglMultisampledFramebuffer),r.__webglColorRenderbuffer)for(let e=0;e0&&r.__version!==t.version){const n=t.image;if(null===n)console.warn("THREE.WebGLRenderer: Texture marked for update but no image data found.");else{if(!1!==n.complete)return void N(r,t,e);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.bindTexture(3553,r.__webglTexture,33984+e)}const R={[nt]:10497,[it]:33071,[rt]:33648},I={[st]:9728,[at]:9984,[ot]:9986,[lt]:9729,[ct]:9985,[ht]:9987};function D(n,s,a){if(a?(t.texParameteri(n,10242,R[s.wrapS]),t.texParameteri(n,10243,R[s.wrapT]),32879!==n&&35866!==n||t.texParameteri(n,32882,R[s.wrapR]),t.texParameteri(n,10240,I[s.magFilter]),t.texParameteri(n,10241,I[s.minFilter])):(t.texParameteri(n,10242,33071),t.texParameteri(n,10243,33071),32879!==n&&35866!==n||t.texParameteri(n,32882,33071),s.wrapS===it&&s.wrapT===it||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(n,10240,T(s.magFilter)),t.texParameteri(n,10241,T(s.minFilter)),s.minFilter!==st&&s.minFilter!==lt&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),!0===e.has("EXT_texture_filter_anisotropic")){const a=e.get("EXT_texture_filter_anisotropic");if(s.magFilter===st)return;if(s.minFilter!==ot&&s.minFilter!==ht)return;if(s.type===vt&&!1===e.has("OES_texture_float_linear"))return;if(!1===o&&s.type===_t&&!1===e.has("OES_texture_half_float_linear"))return;(s.anisotropy>1||i.get(s).__currentAnisotropy)&&(t.texParameterf(n,a.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(s.anisotropy,r.getMaxAnisotropy())),i.get(s).__currentAnisotropy=s.anisotropy)}}function U(e,n){let i=!1;void 0===e.__webglInit&&(e.__webglInit=!0,n.addEventListener("dispose",E));const r=n.source;let s=g.get(r);void 0===s&&(s={},g.set(r,s));const o=function(t){const e=[];return e.push(t.wrapS),e.push(t.wrapT),e.push(t.wrapR||0),e.push(t.magFilter),e.push(t.minFilter),e.push(t.anisotropy),e.push(t.internalFormat),e.push(t.format),e.push(t.type),e.push(t.generateMipmaps),e.push(t.premultiplyAlpha),e.push(t.flipY),e.push(t.unpackAlignment),e.push(t.encoding),e.join()}(n);if(o!==e.__cacheKey){void 0===s[o]&&(s[o]={texture:t.createTexture(),usedTimes:0},a.memory.textures++,i=!0),s[o].usedTimes++;const r=s[e.__cacheKey];void 0!==r&&(s[e.__cacheKey].usedTimes--,0===r.usedTimes&&C(n)),e.__cacheKey=o,e.__webglTexture=s[o].texture}return i}function N(e,r,a){let l=3553;(r.isDataArrayTexture||r.isCompressedArrayTexture)&&(l=35866),r.isData3DTexture&&(l=32879);const c=U(e,r),u=r.source;n.bindTexture(l,e.__webglTexture,33984+a);const d=i.get(u);if(u.version!==d.__version||!0===c){n.activeTexture(33984+a),t.pixelStorei(37440,r.flipY),t.pixelStorei(37441,r.premultiplyAlpha),t.pixelStorei(3317,r.unpackAlignment),t.pixelStorei(37443,0);const e=function(t){return!o&&(t.wrapS!==it||t.wrapT!==it||t.minFilter!==st&&t.minFilter!==lt)}(r)&&!1===y(r.image);let i=x(r.image,e,!1,h);i=G(r,i);const p=y(i)||o,m=s.convert(r.format,r.encoding);let f,g=s.convert(r.type),v=b(r.internalFormat,m,g,r.encoding,r.isVideoTexture);D(l,r,p);const _=r.mipmaps,T=o&&!0!==r.isVideoTexture,E=void 0===d.__version||!0===c,A=w(r,i,p);if(r.isDepthTexture)v=6402,o?v=r.type===vt?36012:r.type===gt?33190:r.type===Mt?35056:33189:r.type===vt&&console.error("WebGLRenderer: Floating point depth texture requires WebGL2."),r.format===Et&&6402===v&&r.type!==mt&&r.type!==gt&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),r.type=gt,g=s.convert(r.type)),r.format===At&&6402===v&&(v=34041,r.type!==Mt&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),r.type=Mt,g=s.convert(r.type))),E&&(T?n.texStorage2D(3553,1,v,i.width,i.height):n.texImage2D(3553,0,v,i.width,i.height,0,m,g,null));else if(r.isDataTexture){if(_.length>0&&p){T&&E&&n.texStorage2D(3553,A,v,_[0].width,_[0].height);for(let t=0,e=_.length;t>=1,e>>=1}}else if(_.length>0&&p){T&&E&&n.texStorage2D(3553,A,v,_[0].width,_[0].height);for(let t=0,e=_.length;t=34069&&l<=34074)&&t.framebufferTexture2D(36160,o,l,i.get(a).__webglTexture,0),n.bindFramebuffer(36160,null)}function z(e,n,i){if(t.bindRenderbuffer(36161,e),n.depthBuffer&&!n.stencilBuffer){let r=33189;if(i||k(n)){const e=n.depthTexture;e&&e.isDepthTexture&&(e.type===vt?r=36012:e.type===gt&&(r=33190));const i=F(n);k(n)?d.renderbufferStorageMultisampleEXT(36161,i,r,n.width,n.height):t.renderbufferStorageMultisample(36161,i,r,n.width,n.height)}else t.renderbufferStorage(36161,r,n.width,n.height);t.framebufferRenderbuffer(36160,36096,36161,e)}else if(n.depthBuffer&&n.stencilBuffer){const r=F(n);i&&!1===k(n)?t.renderbufferStorageMultisample(36161,r,35056,n.width,n.height):k(n)?d.renderbufferStorageMultisampleEXT(36161,r,35056,n.width,n.height):t.renderbufferStorage(36161,34041,n.width,n.height),t.framebufferRenderbuffer(36160,33306,36161,e)}else{const e=!0===n.isWebGLMultipleRenderTargets?n.texture:[n.texture];for(let r=0;r0&&!0===e.has("WEBGL_multisampled_render_to_texture")&&!1!==n.__useRenderToTexture}function G(t,n){const i=t.encoding,r=t.format,s=t.type;return!0===t.isCompressedTexture||!0===t.isVideoTexture||t.format===Ce||i!==ve&&(i===_e?!1===o?!0===e.has("EXT_sRGB")&&r===bt?(t.format=Ce,t.minFilter=lt,t.generateMipmaps=!1):n=an.sRGBToLinear(n):r===bt&&s===ut||console.warn("THREE.WebGLTextures: sRGB encoded textures have to use RGBAFormat and UnsignedByteType."):console.error("THREE.WebGLTextures: Unsupported texture encoding:",i)),n}this.allocateTextureUnit=function(){const t=L;return t>=l&&console.warn("THREE.WebGLTextures: Trying to use "+t+" texture units while this GPU supports only "+l),L+=1,t},this.resetTextureUnits=function(){L=0},this.setTexture2D=P,this.setTexture2DArray=function(t,e){const r=i.get(t);t.version>0&&r.__version!==t.version?N(r,t,e):n.bindTexture(35866,r.__webglTexture,33984+e)},this.setTexture3D=function(t,e){const r=i.get(t);t.version>0&&r.__version!==t.version?N(r,t,e):n.bindTexture(32879,r.__webglTexture,33984+e)},this.setTextureCube=function(e,r){const a=i.get(e);e.version>0&&a.__version!==e.version?function(e,r,a){if(6!==r.image.length)return;const l=U(e,r),h=r.source;n.bindTexture(34067,e.__webglTexture,33984+a);const u=i.get(h);if(h.version!==u.__version||!0===l){n.activeTexture(33984+a),t.pixelStorei(37440,r.flipY),t.pixelStorei(37441,r.premultiplyAlpha),t.pixelStorei(3317,r.unpackAlignment),t.pixelStorei(37443,0);const e=r.isCompressedTexture||r.image[0].isCompressedTexture,i=r.image[0]&&r.image[0].isDataTexture,d=[];for(let t=0;t<6;t++)d[t]=e||i?i?r.image[t].image:r.image[t]:x(r.image[t],!1,!0,c),d[t]=G(r,d[t]);const p=d[0],m=y(p)||o,f=s.convert(r.format,r.encoding),g=s.convert(r.type),v=b(r.internalFormat,f,g,r.encoding),_=o&&!0!==r.isVideoTexture,T=void 0===u.__version||!0===l;let E,A=w(r,p,m);if(D(34067,r,m),e){_&&T&&n.texStorage2D(34067,A,v,p.width,p.height);for(let t=0;t<6;t++){E=d[t].mipmaps;for(let e=0;e0&&A++,n.texStorage2D(34067,A,v,d[0].width,d[0].height));for(let t=0;t<6;t++)if(i){_?n.texSubImage2D(34069+t,0,0,0,d[t].width,d[t].height,f,g,d[t].data):n.texImage2D(34069+t,0,v,d[t].width,d[t].height,0,f,g,d[t].data);for(let e=0;e0&&!1===k(e)){const i=d?l:[l];c.__webglMultisampledFramebuffer=t.createFramebuffer(),c.__webglColorRenderbuffer=[],n.bindFramebuffer(36160,c.__webglMultisampledFramebuffer);for(let n=0;n0&&!1===k(e)){const r=e.isWebGLMultipleRenderTargets?e.texture:[e.texture],s=e.width,a=e.height;let o=16384;const l=[],c=e.stencilBuffer?33306:36096,h=i.get(e),u=!0===e.isWebGLMultipleRenderTargets;if(u)for(let e=0;eo+c?(l.inputState.pinching=!1,this.dispatchEvent({type:"pinchend",handedness:t.handedness,target:this})):!l.inputState.pinching&&a<=o-c&&(l.inputState.pinching=!0,this.dispatchEvent({type:"pinchstart",handedness:t.handedness,target:this}))}else null!==o&&t.gripSpace&&(r=e.getPose(t.gripSpace,n),null!==r&&(o.matrix.fromArray(r.transform.matrix),o.matrix.decompose(o.position,o.rotation,o.scale),r.linearVelocity?(o.hasLinearVelocity=!0,o.linearVelocity.copy(r.linearVelocity)):o.hasLinearVelocity=!1,r.angularVelocity?(o.hasAngularVelocity=!0,o.angularVelocity.copy(r.angularVelocity)):o.hasAngularVelocity=!1));null!==a&&(i=e.getPose(t.targetRaySpace,n),null===i&&null!==r&&(i=r),null!==i&&(a.matrix.fromArray(i.transform.matrix),a.matrix.decompose(a.position,a.rotation,a.scale),i.linearVelocity?(a.hasLinearVelocity=!0,a.linearVelocity.copy(i.linearVelocity)):a.hasLinearVelocity=!1,i.angularVelocity?(a.hasAngularVelocity=!0,a.angularVelocity.copy(i.angularVelocity)):a.hasAngularVelocity=!1,this.dispatchEvent(_o)))}return null!==a&&(a.visible=null!==i),null!==o&&(o.visible=null!==r),null!==l&&(l.visible=null!==s),this}_getHandJoint(t,e){if(void 0===t.joints[e.jointName]){const n=new vo;n.matrixAutoUpdate=!1,n.visible=!1,t.joints[e.jointName]=n,t.add(n)}return t.joints[e.jointName]}}class yo extends hn{constructor(t,e,n,i,r,s,a,o,l,c){if((c=void 0!==c?c:Et)!==Et&&c!==At)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&c===Et&&(n=gt),void 0===n&&c===At&&(n=Mt),super(null,i,r,s,a,o,c,n,l),this.isDepthTexture=!0,this.image={width:t,height:e},this.magFilter=void 0!==a?a:st,this.minFilter=void 0!==o?o:st,this.flipY=!1,this.generateMipmaps=!1}}class Mo extends Le{constructor(t,e){super();const n=this;let i=null,r=1,s=null,a="local-floor",o=1,l=null,c=null,h=null,u=null,d=null,p=null;const m=e.getContextAttributes();let f=null,g=null;const v=[],_=[],x=new Set,y=new Map,M=new Pr;M.layers.enable(1),M.viewport=new un;const S=new Pr;S.layers.enable(2),S.viewport=new un;const b=[M,S],w=new go;w.layers.enable(1),w.layers.enable(2);let T=null,E=null;function A(t){const e=_.indexOf(t.inputSource);if(-1===e)return;const n=v[e];void 0!==n&&n.dispatchEvent({type:t.type,data:t.inputSource})}function C(){i.removeEventListener("select",A),i.removeEventListener("selectstart",A),i.removeEventListener("selectend",A),i.removeEventListener("squeeze",A),i.removeEventListener("squeezestart",A),i.removeEventListener("squeezeend",A),i.removeEventListener("end",C),i.removeEventListener("inputsourceschange",L);for(let t=0;t=0&&(_[i]=null,v[i].disconnect(n))}for(let e=0;e=_.length){_.push(n),i=t;break}if(null===_[t]){_[t]=n,i=t;break}}if(-1===i)break}const r=v[i];r&&r.connect(n)}}this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(t){let e=v[t];return void 0===e&&(e=new xo,v[t]=e),e.getTargetRaySpace()},this.getControllerGrip=function(t){let e=v[t];return void 0===e&&(e=new xo,v[t]=e),e.getGripSpace()},this.getHand=function(t){let e=v[t];return void 0===e&&(e=new xo,v[t]=e),e.getHandSpace()},this.setFramebufferScaleFactor=function(t){r=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(t){a=t,!0===n.isPresenting&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return l||s},this.setReferenceSpace=function(t){l=t},this.getBaseLayer=function(){return null!==u?u:d},this.getBinding=function(){return h},this.getFrame=function(){return p},this.getSession=function(){return i},this.setSession=async function(c){if(i=c,null!==i){if(f=t.getRenderTarget(),i.addEventListener("select",A),i.addEventListener("selectstart",A),i.addEventListener("selectend",A),i.addEventListener("squeeze",A),i.addEventListener("squeezestart",A),i.addEventListener("squeezeend",A),i.addEventListener("end",C),i.addEventListener("inputsourceschange",L),!0!==m.xrCompatible&&(await e.makeXRCompatible()),void 0===i.renderState.layers||!1===t.capabilities.isWebGL2){const n={antialias:void 0!==i.renderState.layers||m.antialias,alpha:m.alpha,depth:m.depth,stencil:m.stencil,framebufferScaleFactor:r};d=new XRWebGLLayer(i,e,n),i.updateRenderState({baseLayer:d}),g=new dn(d.framebufferWidth,d.framebufferHeight,{format:bt,type:ut,encoding:t.outputEncoding,stencilBuffer:m.stencil})}else{let n=null,s=null,a=null;m.depth&&(a=m.stencil?35056:33190,n=m.stencil?At:Et,s=m.stencil?Mt:gt);const o={colorFormat:32856,depthFormat:a,scaleFactor:r};h=new XRWebGLBinding(i,e),u=h.createProjectionLayer(o),i.updateRenderState({layers:[u]}),g=new dn(u.textureWidth,u.textureHeight,{format:bt,type:ut,depthTexture:new yo(u.textureWidth,u.textureHeight,s,void 0,void 0,void 0,void 0,void 0,void 0,n),stencilBuffer:m.stencil,encoding:t.outputEncoding,samples:m.antialias?4:0});t.properties.get(g).__ignoreDepthValues=u.ignoreDepthValues}g.isXRRenderTarget=!0,this.setFoveation(o),l=null,s=await i.requestReferenceSpace(a),U.setContext(i),U.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}};const P=new gn,R=new gn;function I(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.copy(t.matrixWorld).invert()}this.updateCamera=function(t){if(null===i)return;w.near=S.near=M.near=t.near,w.far=S.far=M.far=t.far,T===w.near&&E===w.far||(i.updateRenderState({depthNear:w.near,depthFar:w.far}),T=w.near,E=w.far);const e=t.parent,n=w.cameras;I(w,e);for(let t=0;te&&(y.set(t,t.lastChangedTime),n.dispatchEvent({type:"planechanged",data:t}))}else x.add(t),y.set(t,i.lastChangedTime),n.dispatchEvent({type:"planeadded",data:t})}p=null}),this.setAnimationLoop=function(t){D=t},this.dispose=function(){}}}function So(t,e){function n(t,e){!0===t.matrixAutoUpdate&&t.updateMatrix(),e.value.copy(t.matrix)}function i(i,r){i.opacity.value=r.opacity,r.color&&i.diffuse.value.copy(r.color),r.emissive&&i.emissive.value.copy(r.emissive).multiplyScalar(r.emissiveIntensity),r.map&&(i.map.value=r.map,n(r.map,i.mapTransform)),r.alphaMap&&(i.alphaMap.value=r.alphaMap,n(r.alphaMap,i.alphaMapTransform)),r.bumpMap&&(i.bumpMap.value=r.bumpMap,n(r.bumpMap,i.bumpMapTransform),i.bumpScale.value=r.bumpScale,r.side===c&&(i.bumpScale.value*=-1)),r.normalMap&&(i.normalMap.value=r.normalMap,n(r.normalMap,i.normalMapTransform),i.normalScale.value.copy(r.normalScale),r.side===c&&i.normalScale.value.negate()),r.displacementMap&&(i.displacementMap.value=r.displacementMap,n(r.displacementMap,i.displacementMapTransform),i.displacementScale.value=r.displacementScale,i.displacementBias.value=r.displacementBias),r.emissiveMap&&(i.emissiveMap.value=r.emissiveMap,n(r.emissiveMap,i.emissiveMapTransform)),r.specularMap&&(i.specularMap.value=r.specularMap,n(r.specularMap,i.specularMapTransform)),r.alphaTest>0&&(i.alphaTest.value=r.alphaTest);const s=e.get(r).envMap;if(s&&(i.envMap.value=s,i.flipEnvMap.value=s.isCubeTexture&&!1===s.isRenderTargetTexture?-1:1,i.reflectivity.value=r.reflectivity,i.ior.value=r.ior,i.refractionRatio.value=r.refractionRatio),r.lightMap){i.lightMap.value=r.lightMap;const e=!0===t.useLegacyLights?Math.PI:1;i.lightMapIntensity.value=r.lightMapIntensity*e,n(r.lightMap,i.lightMapTransform)}r.aoMap&&(i.aoMap.value=r.aoMap,i.aoMapIntensity.value=r.aoMapIntensity,n(r.aoMap,i.aoMapTransform))}return{refreshFogUniforms:function(e,n){n.color.getRGB(e.fogColor.value,Er(t)),n.isFog?(e.fogNear.value=n.near,e.fogFar.value=n.far):n.isFogExp2&&(e.fogDensity.value=n.density)},refreshMaterialUniforms:function(t,r,s,a,o){r.isMeshBasicMaterial||r.isMeshLambertMaterial?i(t,r):r.isMeshToonMaterial?(i(t,r),function(t,e){e.gradientMap&&(t.gradientMap.value=e.gradientMap)}(t,r)):r.isMeshPhongMaterial?(i(t,r),function(t,e){t.specular.value.copy(e.specular),t.shininess.value=Math.max(e.shininess,1e-4)}(t,r)):r.isMeshStandardMaterial?(i(t,r),function(t,i){t.metalness.value=i.metalness,i.metalnessMap&&(t.metalnessMap.value=i.metalnessMap,n(i.metalnessMap,t.metalnessMapTransform));t.roughness.value=i.roughness,i.roughnessMap&&(t.roughnessMap.value=i.roughnessMap,n(i.roughnessMap,t.roughnessMapTransform));const r=e.get(i).envMap;r&&(t.envMapIntensity.value=i.envMapIntensity)}(t,r),r.isMeshPhysicalMaterial&&function(t,e,i){t.ior.value=e.ior,e.sheen>0&&(t.sheenColor.value.copy(e.sheenColor).multiplyScalar(e.sheen),t.sheenRoughness.value=e.sheenRoughness,e.sheenColorMap&&(t.sheenColorMap.value=e.sheenColorMap,n(e.sheenColorMap,t.sheenColorMapTransform)),e.sheenRoughnessMap&&(t.sheenRoughnessMap.value=e.sheenRoughnessMap,n(e.sheenRoughnessMap,t.sheenRoughnessMapTransform)));e.clearcoat>0&&(t.clearcoat.value=e.clearcoat,t.clearcoatRoughness.value=e.clearcoatRoughness,e.clearcoatMap&&(t.clearcoatMap.value=e.clearcoatMap,n(e.clearcoatMap,t.clearcoatMapTransform)),e.clearcoatRoughnessMap&&(t.clearcoatRoughnessMap.value=e.clearcoatRoughnessMap,n(e.clearcoatRoughnessMap,t.clearcoatRoughnessMapTransform)),e.clearcoatNormalMap&&(t.clearcoatNormalMap.value=e.clearcoatNormalMap,n(e.clearcoatNormalMap,t.clearcoatNormalMapTransform),t.clearcoatNormalScale.value.copy(e.clearcoatNormalScale),e.side===c&&t.clearcoatNormalScale.value.negate()));e.iridescence>0&&(t.iridescence.value=e.iridescence,t.iridescenceIOR.value=e.iridescenceIOR,t.iridescenceThicknessMinimum.value=e.iridescenceThicknessRange[0],t.iridescenceThicknessMaximum.value=e.iridescenceThicknessRange[1],e.iridescenceMap&&(t.iridescenceMap.value=e.iridescenceMap,n(e.iridescenceMap,t.iridescenceMapTransform)),e.iridescenceThicknessMap&&(t.iridescenceThicknessMap.value=e.iridescenceThicknessMap,n(e.iridescenceThicknessMap,t.iridescenceThicknessMapTransform)));e.transmission>0&&(t.transmission.value=e.transmission,t.transmissionSamplerMap.value=i.texture,t.transmissionSamplerSize.value.set(i.width,i.height),e.transmissionMap&&(t.transmissionMap.value=e.transmissionMap,n(e.transmissionMap,t.transmissionMapTransform)),t.thickness.value=e.thickness,e.thicknessMap&&(t.thicknessMap.value=e.thicknessMap,n(e.thicknessMap,t.thicknessMapTransform)),t.attenuationDistance.value=e.attenuationDistance,t.attenuationColor.value.copy(e.attenuationColor));t.specularIntensity.value=e.specularIntensity,t.specularColor.value.copy(e.specularColor),e.specularColorMap&&(t.specularColorMap.value=e.specularColorMap,n(e.specularColorMap,t.specularColorMapTransform));e.specularIntensityMap&&(t.specularIntensityMap.value=e.specularIntensityMap,n(e.specularIntensityMap,t.specularIntensityMapTransform))}(t,r,o)):r.isMeshMatcapMaterial?(i(t,r),function(t,e){e.matcap&&(t.matcap.value=e.matcap)}(t,r)):r.isMeshDepthMaterial?i(t,r):r.isMeshDistanceMaterial?(i(t,r),function(t,n){const i=e.get(n).light;t.referencePosition.value.setFromMatrixPosition(i.matrixWorld),t.nearDistance.value=i.shadow.camera.near,t.farDistance.value=i.shadow.camera.far}(t,r)):r.isMeshNormalMaterial?i(t,r):r.isLineBasicMaterial?(function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,e.map&&(t.map.value=e.map,n(e.map,t.mapTransform))}(t,r),r.isLineDashedMaterial&&function(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}(t,r)):r.isPointsMaterial?function(t,e,i,r){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.size.value=e.size*i,t.scale.value=.5*r,e.map&&(t.map.value=e.map,n(e.map,t.uvTransform));e.alphaMap&&(t.alphaMap.value=e.alphaMap);e.alphaTest>0&&(t.alphaTest.value=e.alphaTest)}(t,r,s,a):r.isSpriteMaterial?function(t,e){t.diffuse.value.copy(e.color),t.opacity.value=e.opacity,t.rotation.value=e.rotation,e.map&&(t.map.value=e.map,n(e.map,t.mapTransform));e.alphaMap&&(t.alphaMap.value=e.alphaMap);e.alphaTest>0&&(t.alphaTest.value=e.alphaTest)}(t,r):r.isShadowMaterial?(t.color.value.copy(r.color),t.opacity.value=r.opacity):r.isShaderMaterial&&(r.uniformsNeedUpdate=!1)}}}function bo(t,e,n,i){let r={},s={},a=[];const o=n.isWebGL2?t.getParameter(35375):0;function l(t,e,n){const i=t.value;if(void 0===n[e]){if("number"==typeof i)n[e]=i;else{const t=Array.isArray(i)?i:[i],r=[];for(let e=0;e0){r=n%i;0!==r&&i-r-a.boundary<0&&(n+=i-r,s.__offset=n)}n+=a.storage}r=n%i,r>0&&(n+=i-r);t.__size=n,t.__cache={}}(n),d=function(e){const n=function(){for(let t=0;t0&&function(t,e,n,i){if(null===G){const t=Y.isWebGL2;G=new dn(1024,1024,{generateMipmaps:!0,type:X.has("EXT_color_buffer_half_float")?_t:ut,minFilter:ht,samples:t&&!0===o?4:0})}const r=y.getRenderTarget();y.setRenderTarget(G),y.clear();const s=y.toneMapping;y.toneMapping=W,Ot(t,n,i),$.updateMultisampleRenderTarget(G),$.updateRenderTargetMipmap(G);let a=!1;for(let t=0,r=e.length;t0&&Ot(r,e,n),s.length>0&&Ot(s,e,n),a.length>0&&Ot(a,e,n),Z.buffers.depth.setTest(!0),Z.buffers.depth.setMask(!0),Z.buffers.color.setMask(!0),Z.setPolygonOffset(!1)}function Ot(t,e,n){const i=!0===e.isScene?e.overrideMaterial:null;for(let r=0,s=t.length;r0?x[x.length-1]:null,_.pop(),g=_.length>0?_[_.length-1]:null},this.getActiveCubeFace=function(){return S},this.getActiveMipmapLevel=function(){return b},this.getRenderTarget=function(){return w},this.setRenderTargetTextures=function(t,e,n){K.get(t.texture).__webglTexture=e,K.get(t.depthTexture).__webglTexture=n;const i=K.get(t);i.__hasExternalTextures=!0,i.__hasExternalTextures&&(i.__autoAllocateDepthBuffer=void 0===n,i.__autoAllocateDepthBuffer||!0===X.has("WEBGL_multisampled_render_to_texture")&&(console.warn("THREE.WebGLRenderer: Render-to-texture extension was disabled because an external texture was provided"),i.__useRenderToTexture=!1))},this.setRenderTargetFramebuffer=function(t,e){const n=K.get(t);n.__webglFramebuffer=e,n.__useDefaultFramebuffer=void 0===e},this.setRenderTarget=function(t,e=0,n=0){w=t,S=e,b=n;let i=!0,r=null,s=!1,a=!1;if(t){const n=K.get(t);void 0!==n.__useDefaultFramebuffer?(Z.bindFramebuffer(36160,null),i=!1):void 0===n.__webglFramebuffer?$.setupRenderTarget(t):n.__hasExternalTextures&&$.rebindTextures(t,K.get(t.texture).__webglTexture,K.get(t.depthTexture).__webglTexture);const o=t.texture;(o.isData3DTexture||o.isDataArrayTexture||o.isCompressedArrayTexture)&&(a=!0);const l=K.get(t).__webglFramebuffer;t.isWebGLCubeRenderTarget?(r=l[e],s=!0):r=Y.isWebGL2&&t.samples>0&&!1===$.useMultisampledRTT(t)?K.get(t).__webglMultisampledFramebuffer:l,A.copy(t.viewport),C.copy(t.scissor),L=t.scissorTest}else A.copy(N).multiplyScalar(I).floor(),C.copy(O).multiplyScalar(I).floor(),L=z;if(Z.bindFramebuffer(36160,r)&&Y.drawBuffers&&i&&Z.drawBuffers(t,r),Z.viewport(A),Z.scissor(C),Z.setScissorTest(L),s){const i=K.get(t.texture);Mt.framebufferTexture2D(36160,36064,34069+e,i.__webglTexture,n)}else if(a){const i=K.get(t.texture),r=e||0;Mt.framebufferTextureLayer(36160,36064,i.__webglTexture,n||0,r)}T=-1},this.readRenderTargetPixels=function(t,e,n,i,r,s,a){if(!t||!t.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let o=K.get(t).__webglFramebuffer;if(t.isWebGLCubeRenderTarget&&void 0!==a&&(o=o[a]),o){Z.bindFramebuffer(36160,o);try{const a=t.texture,o=a.format,l=a.type;if(o!==bt&>.convert(o)!==Mt.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");const c=l===_t&&(X.has("EXT_color_buffer_half_float")||Y.isWebGL2&&X.has("EXT_color_buffer_float"));if(!(l===ut||gt.convert(l)===Mt.getParameter(35738)||l===vt&&(Y.isWebGL2||X.has("OES_texture_float")||X.has("WEBGL_color_buffer_float"))||c))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");e>=0&&e<=t.width-i&&n>=0&&n<=t.height-r&&Mt.readPixels(e,n,i,r,gt.convert(o),gt.convert(l),s)}finally{const t=null!==w?K.get(w).__webglFramebuffer:null;Z.bindFramebuffer(36160,t)}}},this.copyFramebufferToTexture=function(t,e,n=0){const i=Math.pow(2,-n),r=Math.floor(e.image.width*i),s=Math.floor(e.image.height*i);$.setTexture2D(e,0),Mt.copyTexSubImage2D(3553,n,0,0,t.x,t.y,r,s),Z.unbindTexture()},this.copyTextureToTexture=function(t,e,n,i=0){const r=e.image.width,s=e.image.height,a=gt.convert(n.format),o=gt.convert(n.type);$.setTexture2D(n,0),Mt.pixelStorei(37440,n.flipY),Mt.pixelStorei(37441,n.premultiplyAlpha),Mt.pixelStorei(3317,n.unpackAlignment),e.isDataTexture?Mt.texSubImage2D(3553,i,t.x,t.y,r,s,a,o,e.image.data):e.isCompressedTexture?Mt.compressedTexSubImage2D(3553,i,t.x,t.y,e.mipmaps[0].width,e.mipmaps[0].height,a,e.mipmaps[0].data):Mt.texSubImage2D(3553,i,t.x,t.y,a,o,e.image),0===i&&n.generateMipmaps&&Mt.generateMipmap(3553),Z.unbindTexture()},this.copyTextureToTexture3D=function(t,e,n,i,r=0){if(y.isWebGL1Renderer)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: can only be used with WebGL2.");const s=t.max.x-t.min.x+1,a=t.max.y-t.min.y+1,o=t.max.z-t.min.z+1,l=gt.convert(i.format),c=gt.convert(i.type);let h;if(i.isData3DTexture)$.setTexture3D(i,0),h=32879;else{if(!i.isDataArrayTexture)return void console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: only supports THREE.DataTexture3D and THREE.DataTexture2DArray.");$.setTexture2DArray(i,0),h=35866}Mt.pixelStorei(37440,i.flipY),Mt.pixelStorei(37441,i.premultiplyAlpha),Mt.pixelStorei(3317,i.unpackAlignment);const u=Mt.getParameter(3314),d=Mt.getParameter(32878),p=Mt.getParameter(3316),m=Mt.getParameter(3315),f=Mt.getParameter(32877),g=n.isCompressedTexture?n.mipmaps[0]:n.image;Mt.pixelStorei(3314,g.width),Mt.pixelStorei(32878,g.height),Mt.pixelStorei(3316,t.min.x),Mt.pixelStorei(3315,t.min.y),Mt.pixelStorei(32877,t.min.z),n.isDataTexture||n.isData3DTexture?Mt.texSubImage3D(h,r,e.x,e.y,e.z,s,a,o,l,c,g.data):n.isCompressedArrayTexture?(console.warn("THREE.WebGLRenderer.copyTextureToTexture3D: untested support for compressed srcTexture."),Mt.compressedTexSubImage3D(h,r,e.x,e.y,e.z,s,a,o,l,g.data)):Mt.texSubImage3D(h,r,e.x,e.y,e.z,s,a,o,l,c,g),Mt.pixelStorei(3314,u),Mt.pixelStorei(32878,d),Mt.pixelStorei(3316,p),Mt.pixelStorei(3315,m),Mt.pixelStorei(32877,f),0===r&&i.generateMipmaps&&Mt.generateMipmap(h),Z.unbindTexture()},this.initTexture=function(t){t.isCubeTexture?$.setTextureCube(t,0):t.isData3DTexture?$.setTexture3D(t,0):t.isDataArrayTexture||t.isCompressedArrayTexture?$.setTexture2DArray(t,0):$.setTexture2D(t,0),Z.unbindTexture()},this.resetState=function(){S=0,b=0,w=null,Z.reset(),xt.reset()},"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}get physicallyCorrectLights(){return console.warn("THREE.WebGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),!this.useLegacyLights}set physicallyCorrectLights(t){console.warn("THREE.WebGLRenderer: the property .physicallyCorrectLights has been removed. Set renderer.useLegacyLights instead."),this.useLegacyLights=!t}}class Eo extends To{}Eo.prototype.isWebGL1Renderer=!0;class Ao{constructor(t,e=25e-5){this.isFogExp2=!0,this.name="",this.color=new Oi(t),this.density=e}clone(){return new Ao(this.color,this.density)}toJSON(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}class Co{constructor(t,e=1,n=1e3){this.isFog=!0,this.name="",this.color=new Oi(t),this.near=e,this.far=n}clone(){return new Co(this.color,this.near,this.far)}toJSON(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}class Lo extends vi{constructor(){super(),this.isScene=!0,this.type="Scene",this.background=null,this.environment=null,this.fog=null,this.backgroundBlurriness=0,this.backgroundIntensity=1,this.overrideMaterial=null,"undefined"!=typeof __THREE_DEVTOOLS__&&__THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe",{detail:this}))}copy(t,e){return super.copy(t,e),null!==t.background&&(this.background=t.background.clone()),null!==t.environment&&(this.environment=t.environment.clone()),null!==t.fog&&(this.fog=t.fog.clone()),this.backgroundBlurriness=t.backgroundBlurriness,this.backgroundIntensity=t.backgroundIntensity,null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.matrixAutoUpdate=t.matrixAutoUpdate,this}toJSON(t){const e=super.toJSON(t);return null!==this.fog&&(e.object.fog=this.fog.toJSON()),this.backgroundBlurriness>0&&(e.object.backgroundBlurriness=this.backgroundBlurriness),1!==this.backgroundIntensity&&(e.object.backgroundIntensity=this.backgroundIntensity),e}get autoUpdate(){return console.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."),this.matrixWorldAutoUpdate}set autoUpdate(t){console.warn("THREE.Scene: autoUpdate was renamed to matrixWorldAutoUpdate in r144."),this.matrixWorldAutoUpdate=t}}class Po{constructor(t,e){this.isInterleavedBuffer=!0,this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.usage=Ee,this.updateRange={offset:0,count:-1},this.version=0,this.uuid=Ue()}onUploadCallback(){}set needsUpdate(t){!0===t&&this.version++}setUsage(t){return this.usage=t,this}copy(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.usage=t.usage,this}copyAt(t,e,n){t*=this.stride,n*=e.stride;for(let i=0,r=this.stride;it.far||e.push({distance:o,point:No.clone(),uv:Li.getInterpolation(No,Go,Vo,Ho,Wo,jo,qo,new We),face:null,object:this})}copy(t,e){return super.copy(t,e),void 0!==t.center&&this.center.copy(t.center),this.material=t.material,this}}function Yo(t,e,n,i,r,s){Bo.subVectors(t,n).addScalar(.5).multiply(i),void 0!==r?(Fo.x=s*Bo.x-r*Bo.y,Fo.y=r*Bo.x+s*Bo.y):Fo.copy(Bo),t.copy(e),t.x+=Fo.x,t.y+=Fo.y,t.applyMatrix4(ko)}const Zo=new gn,Jo=new gn;class Ko extends vi{constructor(){super(),this._currentLevel=0,this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]},isLOD:{value:!0}}),this.autoUpdate=!0}copy(t){super.copy(t,!1);const e=t.levels;for(let t=0,n=e.length;t0){let n,i;for(n=1,i=e.length;n0){Zo.setFromMatrixPosition(this.matrixWorld);const n=t.ray.origin.distanceTo(Zo);this.getObjectForDistance(n).raycast(t,e)}}update(t){const e=this.levels;if(e.length>1){Zo.setFromMatrixPosition(t.matrixWorld),Jo.setFromMatrixPosition(this.matrixWorld);const n=Zo.distanceTo(Jo)/t.zoom;let i,r;for(e[0].object.visible=!0,i=1,r=e.length;i=t))break;e[i-1].object.visible=!1,e[i].object.visible=!0}for(this._currentLevel=i-1;io)continue;u.applyMatrix4(this.matrixWorld);const s=t.ray.origin.distanceTo(u);st.far||e.push({distance:s,point:h.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}else{for(let n=Math.max(0,s.start),i=Math.min(m.count,s.start+s.count)-1;no)continue;u.applyMatrix4(this.matrixWorld);const i=t.ray.origin.distanceTo(u);it.far||e.push({distance:i,point:h.clone().applyMatrix4(this.matrixWorld),index:n,face:null,faceIndex:null,object:this})}}}updateMorphTargets(){const t=this.geometry.morphAttributes,e=Object.keys(t);if(e.length>0){const n=t[e[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=n.length;t0){const n=t[e[0]];if(void 0!==n){this.morphTargetInfluences=[],this.morphTargetDictionary={};for(let t=0,e=n.length;tr.far)return;s.push({distance:l,distanceToRay:Math.sqrt(o),point:n,index:e,face:null,object:a})}}class zl extends hn{constructor(t,e,n,i,r,s,a,o,l,c,h,u){super(null,s,a,o,l,c,i,r,h,u),this.isCompressedTexture=!0,this.image={width:e,height:n},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}}class Bl{constructor(){this.type="Curve",this.arcLengthDivisions=200}getPoint(){return console.warn("THREE.Curve: .getPoint() not implemented."),null}getPointAt(t,e){const n=this.getUtoTmapping(t);return this.getPoint(n,e)}getPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPoint(n/t));return e}getSpacedPoints(t=5){const e=[];for(let n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e}getLength(){const t=this.getLengths();return t[t.length-1]}getLengths(t=this.arcLengthDivisions){if(this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;const e=[];let n,i=this.getPoint(0),r=0;e.push(0);for(let s=1;s<=t;s++)n=this.getPoint(s/t),r+=n.distanceTo(i),e.push(r),i=n;return this.cacheArcLengths=e,e}updateArcLengths(){this.needsUpdate=!0,this.getLengths()}getUtoTmapping(t,e){const n=this.getLengths();let i=0;const r=n.length;let s;s=e||t*n[r-1];let a,o=0,l=r-1;for(;o<=l;)if(i=Math.floor(o+(l-o)/2),a=n[i]-s,a<0)o=i+1;else{if(!(a>0)){l=i;break}l=i-1}if(i=l,n[i]===s)return i/(r-1);const c=n[i];return(i+(s-c)/(n[i+1]-c))/(r-1)}getTangent(t,e){const n=1e-4;let i=t-n,r=t+n;i<0&&(i=0),r>1&&(r=1);const s=this.getPoint(i),a=this.getPoint(r),o=e||(s.isVector2?new We:new gn);return o.copy(a).sub(s).normalize(),o}getTangentAt(t,e){const n=this.getUtoTmapping(t);return this.getTangent(n,e)}computeFrenetFrames(t,e){const n=new gn,i=[],r=[],s=[],a=new gn,o=new qn;for(let e=0;e<=t;e++){const n=e/t;i[e]=this.getTangentAt(n,new gn)}r[0]=new gn,s[0]=new gn;let l=Number.MAX_VALUE;const c=Math.abs(i[0].x),h=Math.abs(i[0].y),u=Math.abs(i[0].z);c<=l&&(l=c,n.set(1,0,0)),h<=l&&(l=h,n.set(0,1,0)),u<=l&&n.set(0,0,1),a.crossVectors(i[0],n).normalize(),r[0].crossVectors(i[0],a),s[0].crossVectors(i[0],r[0]);for(let e=1;e<=t;e++){if(r[e]=r[e-1].clone(),s[e]=s[e-1].clone(),a.crossVectors(i[e-1],i[e]),a.length()>Number.EPSILON){a.normalize();const t=Math.acos(Ne(i[e-1].dot(i[e]),-1,1));r[e].applyMatrix4(o.makeRotationAxis(a,t))}s[e].crossVectors(i[e],r[e])}if(!0===e){let e=Math.acos(Ne(r[0].dot(r[t]),-1,1));e/=t,i[0].dot(a.crossVectors(r[0],r[t]))>0&&(e=-e);for(let n=1;n<=t;n++)r[n].applyMatrix4(o.makeRotationAxis(i[n],e*n)),s[n].crossVectors(i[n],r[n])}return{tangents:i,normals:r,binormals:s}}clone(){return new this.constructor().copy(this)}copy(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}toJSON(){const t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t}fromJSON(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}class Fl extends Bl{constructor(t=0,e=0,n=1,i=1,r=0,s=2*Math.PI,a=!1,o=0){super(),this.isEllipseCurve=!0,this.type="EllipseCurve",this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=s,this.aClockwise=a,this.aRotation=o}getPoint(t,e){const n=e||new We,i=2*Math.PI;let r=this.aEndAngle-this.aStartAngle;const s=Math.abs(r)i;)r-=i;r0?0:(Math.floor(Math.abs(l)/r)+1)*r:0===c&&l===r-1&&(l=r-2,c=1),this.closed||l>0?a=i[(l-1)%r]:(Vl.subVectors(i[0],i[1]).add(i[0]),a=Vl);const h=i[l%r],u=i[(l+1)%r];if(this.closed||l+2i.length-2?i.length-1:s+1],h=i[s>i.length-3?i.length-1:s+2];return n.set(Xl(a,o.x,l.x,c.x,h.x),Xl(a,o.y,l.y,c.y,h.y)),n}copy(t){super.copy(t),this.points=[];for(let e=0,n=t.points.length;e=n){const t=i[r]-n,s=this.curves[r],a=s.getLength(),o=0===a?0:1-t/a;return s.getPointAt(o,e)}r++}return null}getLength(){const t=this.getCurveLengths();return t[t.length-1]}updateArcLengths(){this.needsUpdate=!0,this.cacheLengths=null,this.getCurveLengths()}getCurveLengths(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;const t=[];let e=0;for(let n=0,i=this.curves.length;n1&&!e[e.length-1].equals(e[0])&&e.push(e[0]),e}copy(t){super.copy(t),this.curves=[];for(let e=0,n=t.curves.length;e0){const t=l.getPoint(0);t.equals(this.currentPoint)||this.lineTo(t.x,t.y)}this.curves.push(l);const c=l.getPoint(1);return this.currentPoint.copy(c),this}copy(t){return super.copy(t),this.currentPoint.copy(t.currentPoint),this}toJSON(){const t=super.toJSON();return t.currentPoint=this.currentPoint.toArray(),t}fromJSON(t){return super.fromJSON(t),this.currentPoint.fromArray(t.currentPoint),this}}class ac extends ir{constructor(t=[new We(0,-.5),new We(.5,0),new We(0,.5)],e=12,n=0,i=2*Math.PI){super(),this.type="LatheGeometry",this.parameters={points:t,segments:e,phiStart:n,phiLength:i},e=Math.floor(e),i=Ne(i,0,2*Math.PI);const r=[],s=[],a=[],o=[],l=[],c=1/e,h=new gn,u=new We,d=new gn,p=new gn,m=new gn;let f=0,g=0;for(let e=0;e<=t.length-1;e++)switch(e){case 0:f=t[e+1].x-t[e].x,g=t[e+1].y-t[e].y,d.x=1*g,d.y=-f,d.z=0*g,m.copy(d),d.normalize(),o.push(d.x,d.y,d.z);break;case t.length-1:o.push(m.x,m.y,m.z);break;default:f=t[e+1].x-t[e].x,g=t[e+1].y-t[e].y,d.x=1*g,d.y=-f,d.z=0*g,p.copy(d),d.x+=m.x,d.y+=m.y,d.z+=m.z,d.normalize(),o.push(d.x,d.y,d.z),m.copy(p);}for(let r=0;r<=e;r++){const d=n+r*c*i,p=Math.sin(d),m=Math.cos(d);for(let n=0;n<=t.length-1;n++){h.x=t[n].x*p,h.y=t[n].y,h.z=t[n].x*m,s.push(h.x,h.y,h.z),u.x=r/e,u.y=n/(t.length-1),a.push(u.x,u.y);const i=o[3*n+0]*p,c=o[3*n+1],d=o[3*n+0]*m;l.push(i,c,d)}}for(let n=0;n0&&v(!0),e>0&&v(!1)),this.setIndex(c),this.setAttribute("position",new Zi(h,3)),this.setAttribute("normal",new Zi(u,3)),this.setAttribute("uv",new Zi(d,2))}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new cc(t.radiusTop,t.radiusBottom,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}class hc extends cc{constructor(t=1,e=1,n=32,i=1,r=!1,s=0,a=2*Math.PI){super(0,t,e,n,i,r,s,a),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:s,thetaLength:a}}static fromJSON(t){return new hc(t.radius,t.height,t.radialSegments,t.heightSegments,t.openEnded,t.thetaStart,t.thetaLength)}}class uc extends ir{constructor(t=[],e=[],n=1,i=0){super(),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:n,detail:i};const r=[],s=[];function a(t,e,n,i){const r=i+1,s=[];for(let i=0;i<=r;i++){s[i]=[];const a=t.clone().lerp(n,i/r),o=e.clone().lerp(n,i/r),l=r-i;for(let t=0;t<=l;t++)s[i][t]=0===t&&i===r?a:a.clone().lerp(o,t/l)}for(let t=0;t.9&&a<.1&&(e<.2&&(s[t+0]+=1),n<.2&&(s[t+2]+=1),i<.2&&(s[t+4]+=1))}}()}(),this.setAttribute("position",new Zi(r,3)),this.setAttribute("normal",new Zi(r.slice(),3)),this.setAttribute("uv",new Zi(s,2)),0===i?this.computeVertexNormals():this.normalizeNormals()}copy(t){return super.copy(t),this.parameters=Object.assign({},t.parameters),this}static fromJSON(t){return new uc(t.vertices,t.indices,t.radius,t.details)}}class dc extends uc{constructor(t=1,e=0){const n=(1+Math.sqrt(5))/2,i=1/n;super([-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-i,-n,0,-i,n,0,i,-n,0,i,n,-i,-n,0,-i,n,0,i,-n,0,i,n,0,-n,0,-i,n,0,-i,-n,0,i,n,0,i],[3,11,7,3,7,15,3,15,13,7,19,17,7,17,6,7,6,15,17,4,8,17,8,10,17,10,6,8,0,16,8,16,2,8,2,10,0,12,1,0,1,18,0,18,16,6,10,2,6,2,13,6,13,15,2,16,18,2,18,3,2,3,13,18,1,9,18,9,11,18,11,3,4,14,12,4,12,0,4,0,8,11,9,5,11,5,19,11,19,7,19,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9],t,e),this.type="DodecahedronGeometry",this.parameters={radius:t,detail:e}}static fromJSON(t){return new dc(t.radius,t.detail)}}const pc=new gn,mc=new gn,fc=new gn,gc=new Li;class vc extends ir{constructor(t=null,e=1){if(super(),this.type="EdgesGeometry",this.parameters={geometry:t,thresholdAngle:e},null!==t){const n=4,i=Math.pow(10,n),r=Math.cos(Ie*e),s=t.getIndex(),a=t.getAttribute("position"),o=s?s.count:a.count,l=[0,0,0],c=["a","b","c"],h=new Array(3),u={},d=[];for(let t=0;t80*n){o=c=t[0],l=h=t[1];for(let e=n;ec&&(c=u),d>h&&(h=d);p=Math.max(c-o,h-l),p=0!==p?32767/p:0}return Sc(s,a,n,o,l,p,0),a};function yc(t,e,n,i,r){let s,a;if(r===function(t,e,n,i){let r=0;for(let s=e,a=n-i;s0)for(s=e;s=e;s-=i)a=Gc(s,t[s],t[s+1],a);return a&&Nc(a,a.next)&&(Vc(a),a=a.next),a}function Mc(t,e){if(!t)return t;e||(e=t);let n,i=t;do{if(n=!1,i.steiner||!Nc(i,i.next)&&0!==Uc(i.prev,i,i.next))i=i.next;else{if(Vc(i),i=e=i.prev,i===i.next)break;n=!0}}while(n||i!==e);return e}function Sc(t,e,n,i,r,s,a){if(!t)return;!a&&s&&function(t,e,n,i){let r=t;do{0===r.z&&(r.z=Pc(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){let e,n,i,r,s,a,o,l,c=1;do{for(n=t,t=null,s=null,a=0;n;){for(a++,i=n,o=0,e=0;e0||l>0&&i;)0!==o&&(0===l||!i||n.z<=i.z)?(r=n,n=n.nextZ,o--):(r=i,i=i.nextZ,l--),s?s.nextZ=r:t=r,r.prevZ=s,s=r;n=i}s.nextZ=null,c*=2}while(a>1)}(r)}(t,i,r,s);let o,l,c=t;for(;t.prev!==t.next;)if(o=t.prev,l=t.next,s?wc(t,i,r,s):bc(t))e.push(o.i/n|0),e.push(t.i/n|0),e.push(l.i/n|0),Vc(t),t=l.next,c=l.next;else if((t=l)===c){a?1===a?Sc(t=Tc(Mc(t),e,n),e,n,i,r,s,2):2===a&&Ec(t,e,n,i,r,s):Sc(Mc(t),e,n,i,r,s,1);break}}function bc(t){const e=t.prev,n=t,i=t.next;if(Uc(e,n,i)>=0)return!1;const r=e.x,s=n.x,a=i.x,o=e.y,l=n.y,c=i.y,h=rs?r>a?r:a:s>a?s:a,p=o>l?o>c?o:c:l>c?l:c;let m=i.next;for(;m!==e;){if(m.x>=h&&m.x<=d&&m.y>=u&&m.y<=p&&Ic(r,o,s,l,a,c,m.x,m.y)&&Uc(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function wc(t,e,n,i){const r=t.prev,s=t,a=t.next;if(Uc(r,s,a)>=0)return!1;const o=r.x,l=s.x,c=a.x,h=r.y,u=s.y,d=a.y,p=ol?o>c?o:c:l>c?l:c,g=h>u?h>d?h:d:u>d?u:d,v=Pc(p,m,e,n,i),_=Pc(f,g,e,n,i);let x=t.prevZ,y=t.nextZ;for(;x&&x.z>=v&&y&&y.z<=_;){if(x.x>=p&&x.x<=f&&x.y>=m&&x.y<=g&&x!==r&&x!==a&&Ic(o,h,l,u,c,d,x.x,x.y)&&Uc(x.prev,x,x.next)>=0)return!1;if(x=x.prevZ,y.x>=p&&y.x<=f&&y.y>=m&&y.y<=g&&y!==r&&y!==a&&Ic(o,h,l,u,c,d,y.x,y.y)&&Uc(y.prev,y,y.next)>=0)return!1;y=y.nextZ}for(;x&&x.z>=v;){if(x.x>=p&&x.x<=f&&x.y>=m&&x.y<=g&&x!==r&&x!==a&&Ic(o,h,l,u,c,d,x.x,x.y)&&Uc(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;y&&y.z<=_;){if(y.x>=p&&y.x<=f&&y.y>=m&&y.y<=g&&y!==r&&y!==a&&Ic(o,h,l,u,c,d,y.x,y.y)&&Uc(y.prev,y,y.next)>=0)return!1;y=y.nextZ}return!0}function Tc(t,e,n){let i=t;do{const r=i.prev,s=i.next.next;!Nc(r,s)&&Oc(r,i,i.next,s)&&Fc(r,s)&&Fc(s,r)&&(e.push(r.i/n|0),e.push(i.i/n|0),e.push(s.i/n|0),Vc(i),Vc(i.next),i=t=s),i=i.next}while(i!==t);return Mc(i)}function Ec(t,e,n,i,r,s){let a=t;do{let t=a.next.next;for(;t!==a.prev;){if(a.i!==t.i&&Dc(a,t)){let o=kc(a,t);return a=Mc(a,a.next),o=Mc(o,o.next),Sc(a,e,n,i,r,s,0),void Sc(o,e,n,i,r,s,0)}t=t.next}a=a.next}while(a!==t)}function Ac(t,e){return t.x-e.x}function Cc(t,e){const n=function(t,e){let n,i=e,r=-1/0;const s=t.x,a=t.y;do{if(a<=i.y&&a>=i.next.y&&i.next.y!==i.y){const t=i.x+(a-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(t<=s&&t>r&&(r=t,n=i.x=i.x&&i.x>=l&&s!==i.x&&Ic(an.x||i.x===n.x&&Lc(n,i)))&&(n=i,u=h)),i=i.next}while(i!==o);return n}(t,e);if(!n)return e;const i=kc(n,t);return Mc(i,i.next),Mc(n,n.next)}function Lc(t,e){return Uc(t.prev,t,e.prev)<0&&Uc(e.next,t,t.next)<0}function Pc(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-n)*r|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-i)*r|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function Rc(t){let e=t,n=t;do{(e.x=(t-a)*(s-o)&&(t-a)*(i-o)>=(n-a)*(e-o)&&(n-a)*(s-o)>=(r-a)*(i-o)}function Dc(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){let n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&Oc(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(Fc(t,e)&&Fc(e,t)&&function(t,e){let n=t,i=!1;const r=(t.x+e.x)/2,s=(t.y+e.y)/2;do{n.y>s!=n.next.y>s&&n.next.y!==n.y&&r<(n.next.x-n.x)*(s-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}(t,e)&&(Uc(t.prev,t,e.prev)||Uc(t,e.prev,e))||Nc(t,e)&&Uc(t.prev,t,t.next)>0&&Uc(e.prev,e,e.next)>0)}function Uc(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Nc(t,e){return t.x===e.x&&t.y===e.y}function Oc(t,e,n,i){const r=Bc(Uc(t,e,n)),s=Bc(Uc(t,e,i)),a=Bc(Uc(n,i,t)),o=Bc(Uc(n,i,e));return r!==s&&a!==o||!(0!==r||!zc(t,n,e))||!(0!==s||!zc(t,i,e))||!(0!==a||!zc(n,t,i))||!(0!==o||!zc(n,e,i))}function zc(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function Bc(t){return t>0?1:t<0?-1:0}function Fc(t,e){return Uc(t.prev,t,t.next)<0?Uc(t,e,t.next)>=0&&Uc(t,t.prev,e)>=0:Uc(t,e,t.prev)<0||Uc(t,t.next,e)<0}function kc(t,e){const n=new Hc(t.i,t.x,t.y),i=new Hc(e.i,e.x,e.y),r=t.next,s=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,s.next=i,i.prev=s,i}function Gc(t,e,n,i){const r=new Hc(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function Vc(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function Hc(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}class Wc{static area(t){const e=t.length;let n=0;for(let i=e-1,r=0;r2&&t[e-1].equals(t[0])&&t.pop()}function qc(t,e){for(let n=0;nNumber.EPSILON){const u=Math.sqrt(h),d=Math.sqrt(l*l+c*c),p=e.x-o/u,m=e.y+a/u,f=((n.x-c/d-p)*c-(n.y+l/d-m)*l)/(a*c-o*l);i=p+a*f-t.x,r=m+o*f-t.y;const g=i*i+r*r;if(g<=2)return new We(i,r);s=Math.sqrt(g/2)}else{let t=!1;a>Number.EPSILON?l>Number.EPSILON&&(t=!0):a<-Number.EPSILON?l<-Number.EPSILON&&(t=!0):Math.sign(o)===Math.sign(c)&&(t=!0),t?(i=-o,r=a,s=Math.sqrt(h)):(i=a,r=o,s=Math.sqrt(h/2))}return new We(i/s,r/s)}const R=[];for(let t=0,e=E.length,n=e-1,i=t+1;t=0;t--){const e=t/p,n=h*Math.cos(e*Math.PI/2),i=u*Math.sin(e*Math.PI/2)+d;for(let t=0,e=E.length;t=0;){const i=n;let r=n-1;r<0&&(r=t.length-1);for(let t=0,n=o+2*p;t0)&&d.push(e,r,l),(t!==n-1||o0!=t>0&&this.version++,this._sheen=t}get clearcoat(){return this._clearcoat}set clearcoat(t){this._clearcoat>0!=t>0&&this.version++,this._clearcoat=t}get iridescence(){return this._iridescence}set iridescence(t){this._iridescence>0!=t>0&&this.version++,this._iridescence=t}get transmission(){return this._transmission}set transmission(t){this._transmission>0!=t>0&&this.version++,this._transmission=t}copy(t){return super.copy(t),this.defines={STANDARD:"",PHYSICAL:""},this.clearcoat=t.clearcoat,this.clearcoatMap=t.clearcoatMap,this.clearcoatRoughness=t.clearcoatRoughness,this.clearcoatRoughnessMap=t.clearcoatRoughnessMap,this.clearcoatNormalMap=t.clearcoatNormalMap,this.clearcoatNormalScale.copy(t.clearcoatNormalScale),this.ior=t.ior,this.iridescence=t.iridescence,this.iridescenceMap=t.iridescenceMap,this.iridescenceIOR=t.iridescenceIOR,this.iridescenceThicknessRange=[...t.iridescenceThicknessRange],this.iridescenceThicknessMap=t.iridescenceThicknessMap,this.sheen=t.sheen,this.sheenColor.copy(t.sheenColor),this.sheenColorMap=t.sheenColorMap,this.sheenRoughness=t.sheenRoughness,this.sheenRoughnessMap=t.sheenRoughnessMap,this.transmission=t.transmission,this.transmissionMap=t.transmissionMap,this.thickness=t.thickness,this.thicknessMap=t.thicknessMap,this.attenuationDistance=t.attenuationDistance,this.attenuationColor.copy(t.attenuationColor),this.specularIntensity=t.specularIntensity,this.specularIntensityMap=t.specularIntensityMap,this.specularColor.copy(t.specularColor),this.specularColorMap=t.specularColorMap,this}}class uh extends Ri{constructor(t){super(),this.isMeshPhongMaterial=!0,this.type="MeshPhongMaterial",this.color=new Oi(16777215),this.specular=new Oi(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Oi(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ye,this.normalScale=new We(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=G,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.flatShading=t.flatShading,this.fog=t.fog,this}}class dh extends Ri{constructor(t){super(),this.isMeshToonMaterial=!0,this.defines={TOON:""},this.type="MeshToonMaterial",this.color=new Oi(16777215),this.map=null,this.gradientMap=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Oi(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ye,this.normalScale=new We(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.gradientMap=t.gradientMap,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.fog=t.fog,this}}class ph extends Ri{constructor(t){super(),this.isMeshNormalMaterial=!0,this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ye,this.normalScale=new We(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.flatShading=!1,this.setValues(t)}copy(t){return super.copy(t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.flatShading=t.flatShading,this}}class mh extends Ri{constructor(t){super(),this.isMeshLambertMaterial=!0,this.type="MeshLambertMaterial",this.color=new Oi(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new Oi(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ye,this.normalScale=new We(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=G,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.flatShading=!1,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.flatShading=t.flatShading,this.fog=t.fog,this}}class fh extends Ri{constructor(t){super(),this.isMeshMatcapMaterial=!0,this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new Oi(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=ye,this.normalScale=new We(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.flatShading=!1,this.fog=!0,this.setValues(t)}copy(t){return super.copy(t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.flatShading=t.flatShading,this.fog=t.fog,this}}class gh extends xl{constructor(t){super(),this.isLineDashedMaterial=!0,this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}copy(t){return super.copy(t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this}}function vh(t,e,n){return xh(t)?new t.constructor(t.subarray(e,void 0!==n?n:t.length)):t.slice(e,n)}function _h(t,e,n){return!t||!n&&t.constructor===e?t:"number"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)}function xh(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function yh(t){const e=t.length,n=new Array(e);for(let t=0;t!==e;++t)n[t]=t;return n.sort(function(e,n){return t[e]-t[n]}),n}function Mh(t,e,n){const i=t.length,r=new t.constructor(i);for(let s=0,a=0;a!==i;++s){const i=n[s]*e;for(let n=0;n!==e;++n)r[a++]=t[i+n]}return r}function Sh(t,e,n,i){let r=1,s=t[0];for(;void 0!==s&&void 0===s[i];)s=t[r++];if(void 0===s)return;let a=s[i];if(void 0!==a)if(Array.isArray(a))do{a=s[i],void 0!==a&&(e.push(s.time),n.push.apply(n,a)),s=t[r++]}while(void 0!==s);else if(void 0!==a.toArray)do{a=s[i],void 0!==a&&(e.push(s.time),a.toArray(n,n.length)),s=t[r++]}while(void 0!==s);else do{a=s[i],void 0!==a&&(e.push(s.time),n.push(a)),s=t[r++]}while(void 0!==s)}const bh={arraySlice:vh,convertArray:_h,isTypedArray:xh,getKeyframeOrder:yh,sortedArray:Mh,flattenJSON:Sh,subclip:function(t,e,n,i,r=30){const s=t.clone();s.name=e;const a=[];for(let t=0;t=i)){l.push(e.times[t]);for(let n=0;ns.tracks[t].times[0]&&(o=s.tracks[t].times[0]);for(let t=0;t=i.times[u]){const t=u*l+o,e=t+l-o;d=vh(i.values,t,e)}else{const t=i.createInterpolant(),e=o,n=l-o;t.evaluate(s),d=vh(t.resultBuffer,e,n)}if("quaternion"===r){new fn().fromArray(d).normalize().conjugate().toArray(d)}const p=a.times.length;for(let t=0;t=r)break t;{const a=e[1];t=r)break e}s=n,n=0}}for(;n>>1;te;)--s;if(++s,0!==r||s!==i){r>=s&&(s=Math.max(s,1),r=s-1);const t=this.getValueSize();this.times=vh(n,r,s),this.values=vh(this.values,r*t,s*t)}return this}validate(){let t=!0;const e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);const n=this.times,i=this.values,r=n.length;0===r&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);let s=null;for(let e=0;e!==r;e++){const i=n[e];if("number"==typeof i&&isNaN(i)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,e,i),t=!1;break}if(null!==s&&s>i){console.error("THREE.KeyframeTrack: Out of order keys.",this,e,i,s),t=!1;break}s=i}if(void 0!==i&&xh(i))for(let e=0,n=i.length;e!==n;++e){const n=i[e];if(isNaN(n)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,e,n),t=!1;break}}return t}optimize(){const t=vh(this.times),e=vh(this.values),n=this.getValueSize(),i=this.getInterpolation()===ue,r=t.length-1;let s=1;for(let a=1;a0){t[s]=t[r];for(let t=r*n,i=s*n,a=0;a!==n;++a)e[i+a]=e[t+a];++s}return s!==t.length?(this.times=vh(t,0,s),this.values=vh(e,0,s*n)):(this.times=t,this.values=e),this}clone(){const t=vh(this.times,0),e=vh(this.values,0),n=new(0,this.constructor)(this.name,t,e);return n.createInterpolant=this.createInterpolant,n}}Ch.prototype.TimeBufferType=Float32Array,Ch.prototype.ValueBufferType=Float32Array,Ch.prototype.DefaultInterpolation=he;class Lh extends Ch{}Lh.prototype.ValueTypeName="bool",Lh.prototype.ValueBufferType=Array,Lh.prototype.DefaultInterpolation=ce,Lh.prototype.InterpolantFactoryMethodLinear=void 0,Lh.prototype.InterpolantFactoryMethodSmooth=void 0;class Ph extends Ch{}Ph.prototype.ValueTypeName="color";class Rh extends Ch{}Rh.prototype.ValueTypeName="number";class Ih extends wh{constructor(t,e,n,i){super(t,e,n,i)}interpolate_(t,e,n,i){const r=this.resultBuffer,s=this.sampleValues,a=this.valueSize,o=(n-e)/(i-e);let l=t*a;for(let t=l+a;l!==t;l+=4)fn.slerpFlat(r,0,s,l-a,s,l,o);return r}}class Dh extends Ch{InterpolantFactoryMethodLinear(t){return new Ih(this.times,this.values,this.getValueSize(),t)}}Dh.prototype.ValueTypeName="quaternion",Dh.prototype.DefaultInterpolation=he,Dh.prototype.InterpolantFactoryMethodSmooth=void 0;class Uh extends Ch{}Uh.prototype.ValueTypeName="string",Uh.prototype.ValueBufferType=Array,Uh.prototype.DefaultInterpolation=ce,Uh.prototype.InterpolantFactoryMethodLinear=void 0,Uh.prototype.InterpolantFactoryMethodSmooth=void 0;class Nh extends Ch{}Nh.prototype.ValueTypeName="vector";class Oh{constructor(t,e=-1,n,i=2500){this.name=t,this.tracks=n,this.duration=e,this.blendMode=i,this.uuid=Ue(),this.duration<0&&this.resetDuration()}static parse(t){const e=[],n=t.tracks,i=1/(t.fps||1);for(let t=0,r=n.length;t!==r;++t)e.push(zh(n[t]).scale(i));const r=new this(t.name,t.duration,e,t.blendMode);return r.uuid=t.uuid,r}static toJSON(t){const e=[],n=t.tracks,i={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid,blendMode:t.blendMode};for(let t=0,i=n.length;t!==i;++t)e.push(Ch.toJSON(n[t]));return i}static CreateFromMorphTargetSequence(t,e,n,i){const r=e.length,s=[];for(let t=0;t1){const t=s[1];let e=i[t];e||(i[t]=e=[]),e.push(n)}}const s=[];for(const t in i)s.push(this.CreateFromMorphTargetSequence(t,i[t],e,n));return s}static parseAnimation(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;const n=function(t,e,n,i,r){if(0!==n.length){const s=[],a=[];Sh(n,s,a,i),0!==s.length&&r.push(new t(e,s,a))}},i=[],r=t.name||"default",s=t.fps||30,a=t.blendMode;let o=t.length||-1;const l=t.hierarchy||[];for(let t=0;t{e&&e(r),this.manager.itemEnd(t)},0),r;if(void 0!==Vh[t])return void Vh[t].push({onLoad:e,onProgress:n,onError:i});Vh[t]=[],Vh[t].push({onLoad:e,onProgress:n,onError:i});const s=new Request(t,{headers:new Headers(this.requestHeader),credentials:this.withCredentials?"include":"same-origin"}),a=this.mimeType,o=this.responseType;fetch(s).then(e=>{if(200===e.status||0===e.status){if(0===e.status&&console.warn("THREE.FileLoader: HTTP Status 0 received."),"undefined"==typeof ReadableStream||void 0===e.body||void 0===e.body.getReader)return e;const n=Vh[t],i=e.body.getReader(),r=e.headers.get("Content-Length")||e.headers.get("X-File-Size"),s=r?parseInt(r):0,a=0!==s;let o=0;const l=new ReadableStream({start(t){!function e(){i.read().then(({done:i,value:r})=>{if(i)t.close();else{o+=r.byteLength;const i=new ProgressEvent("progress",{lengthComputable:a,loaded:o,total:s});for(let t=0,e=n.length;t{switch(o){case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();case"document":return t.text().then(t=>new DOMParser().parseFromString(t,a));case"json":return t.json();default:if(void 0===a)return t.text();{const e=/charset="?([^;"\s]*)"?/i.exec(a),n=e&&e[1]?e[1].toLowerCase():void 0,i=new TextDecoder(n);return t.arrayBuffer().then(t=>i.decode(t))}}}).then(e=>{Bh.add(t,e);const n=Vh[t];delete Vh[t];for(let t=0,i=n.length;t{const n=Vh[t];if(void 0===n)throw this.manager.itemError(t),e;delete Vh[t];for(let t=0,i=n.length;t{this.manager.itemEnd(t)}),this.manager.itemStart(t)}setResponseType(t){return this.responseType=t,this}setMimeType(t){return this.mimeType=t,this}}class jh extends Gh{constructor(t){super(t)}load(t,e,n,i){void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);const r=this,s=Bh.get(t);if(void 0!==s)return r.manager.itemStart(t),setTimeout(function(){e&&e(s),r.manager.itemEnd(t)},0),s;const a=Je("img");function o(){c(),Bh.add(t,this),e&&e(this),r.manager.itemEnd(t)}function l(e){c(),i&&i(e),r.manager.itemError(t),r.manager.itemEnd(t)}function c(){a.removeEventListener("load",o,!1),a.removeEventListener("error",l,!1)}return a.addEventListener("load",o,!1),a.addEventListener("error",l,!1),"data:"!==t.slice(0,5)&&void 0!==this.crossOrigin&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(t),a.src=t,a}}class qh extends vi{constructor(t,e=1){super(),this.isLight=!0,this.type="Light",this.color=new Oi(t),this.intensity=e}dispose(){}copy(t,e){return super.copy(t,e),this.color.copy(t.color),this.intensity=t.intensity,this}toJSON(t){const e=super.toJSON(t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}class Xh extends qh{constructor(t,e,n){super(t,n),this.isHemisphereLight=!0,this.type="HemisphereLight",this.position.copy(vi.DEFAULT_UP),this.updateMatrix(),this.groundColor=new Oi(e)}copy(t,e){return super.copy(t,e),this.groundColor.copy(t.groundColor),this}}const Yh=new qn,Zh=new gn,Jh=new gn;class Kh{constructor(t){this.camera=t,this.bias=0,this.normalBias=0,this.radius=1,this.blurSamples=8,this.mapSize=new We(512,512),this.map=null,this.mapPass=null,this.matrix=new qn,this.autoUpdate=!0,this.needsUpdate=!1,this._frustum=new Gr,this._frameExtents=new We(1,1),this._viewportCount=1,this._viewports=[new un(0,0,1,1)]}getViewportCount(){return this._viewportCount}getFrustum(){return this._frustum}updateMatrices(t){const e=this.camera,n=this.matrix;Zh.setFromMatrixPosition(t.matrixWorld),e.position.copy(Zh),Jh.setFromMatrixPosition(t.target.matrixWorld),e.lookAt(Jh),e.updateMatrixWorld(),Yh.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),this._frustum.setFromProjectionMatrix(Yh),n.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),n.multiply(Yh)}getViewport(t){return this._viewports[t]}getFrameExtents(){return this._frameExtents}dispose(){this.map&&this.map.dispose(),this.mapPass&&this.mapPass.dispose()}copy(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this}clone(){return new this.constructor().copy(this)}toJSON(){const t={};return 0!==this.bias&&(t.bias=this.bias),0!==this.normalBias&&(t.normalBias=this.normalBias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}class $h extends Kh{constructor(){super(new Pr(50,1,.5,500)),this.isSpotLightShadow=!0,this.focus=1}updateMatrices(t){const e=this.camera,n=2*De*t.angle*this.focus,i=this.mapSize.width/this.mapSize.height,r=t.distance||e.far;n===e.fov&&i===e.aspect&&r===e.far||(e.fov=n,e.aspect=i,e.far=r,e.updateProjectionMatrix()),super.updateMatrices(t)}copy(t){return super.copy(t),this.focus=t.focus,this}}class Qh extends qh{constructor(t,e,n=0,i=Math.PI/3,r=0,s=2){super(t,e),this.isSpotLight=!0,this.type="SpotLight",this.position.copy(vi.DEFAULT_UP),this.updateMatrix(),this.target=new vi,this.distance=n,this.angle=i,this.penumbra=r,this.decay=s,this.map=null,this.shadow=new $h}get power(){return this.intensity*Math.PI}set power(t){this.intensity=t/Math.PI}dispose(){this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}const tu=new qn,eu=new gn,nu=new gn;class iu extends Kh{constructor(){super(new Pr(90,1,.5,500)),this.isPointLightShadow=!0,this._frameExtents=new We(4,2),this._viewportCount=6,this._viewports=[new un(2,1,1,1),new un(0,1,1,1),new un(3,1,1,1),new un(1,1,1,1),new un(3,0,1,1),new un(1,0,1,1)],this._cubeDirections=[new gn(1,0,0),new gn(-1,0,0),new gn(0,0,1),new gn(0,0,-1),new gn(0,1,0),new gn(0,-1,0)],this._cubeUps=[new gn(0,1,0),new gn(0,1,0),new gn(0,1,0),new gn(0,1,0),new gn(0,0,1),new gn(0,0,-1)]}updateMatrices(t,e=0){const n=this.camera,i=this.matrix,r=t.distance||n.far;r!==n.far&&(n.far=r,n.updateProjectionMatrix()),eu.setFromMatrixPosition(t.matrixWorld),n.position.copy(eu),nu.copy(n.position),nu.add(this._cubeDirections[e]),n.up.copy(this._cubeUps[e]),n.lookAt(nu),n.updateMatrixWorld(),i.makeTranslation(-eu.x,-eu.y,-eu.z),tu.multiplyMatrices(n.projectionMatrix,n.matrixWorldInverse),this._frustum.setFromProjectionMatrix(tu)}}class ru extends qh{constructor(t,e,n=0,i=2){super(t,e),this.isPointLight=!0,this.type="PointLight",this.distance=n,this.decay=i,this.shadow=new iu}get power(){return 4*this.intensity*Math.PI}set power(t){this.intensity=t/(4*Math.PI)}dispose(){this.shadow.dispose()}copy(t,e){return super.copy(t,e),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}class su extends Kh{constructor(){super(new es(-5,5,5,-5,.5,500)),this.isDirectionalLightShadow=!0}}class au extends qh{constructor(t,e){super(t,e),this.isDirectionalLight=!0,this.type="DirectionalLight",this.position.copy(vi.DEFAULT_UP),this.updateMatrix(),this.target=new vi,this.shadow=new su}dispose(){this.shadow.dispose()}copy(t){return super.copy(t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}class ou extends qh{constructor(t,e){super(t,e),this.isAmbientLight=!0,this.type="AmbientLight"}}class lu extends qh{constructor(t,e,n=10,i=10){super(t,e),this.isRectAreaLight=!0,this.type="RectAreaLight",this.width=n,this.height=i}get power(){return this.intensity*this.width*this.height*Math.PI}set power(t){this.intensity=t/(this.width*this.height*Math.PI)}copy(t){return super.copy(t),this.width=t.width,this.height=t.height,this}toJSON(t){const e=super.toJSON(t);return e.object.width=this.width,e.object.height=this.height,e}}class cu{constructor(){this.isSphericalHarmonics3=!0,this.coefficients=[];for(let t=0;t<9;t++)this.coefficients.push(new gn)}set(t){for(let e=0;e<9;e++)this.coefficients[e].copy(t[e]);return this}zero(){for(let t=0;t<9;t++)this.coefficients[t].set(0,0,0);return this}getAt(t,e){const n=t.x,i=t.y,r=t.z,s=this.coefficients;return e.copy(s[0]).multiplyScalar(.282095),e.addScaledVector(s[1],.488603*i),e.addScaledVector(s[2],.488603*r),e.addScaledVector(s[3],.488603*n),e.addScaledVector(s[4],n*i*1.092548),e.addScaledVector(s[5],i*r*1.092548),e.addScaledVector(s[6],.315392*(3*r*r-1)),e.addScaledVector(s[7],n*r*1.092548),e.addScaledVector(s[8],.546274*(n*n-i*i)),e}getIrradianceAt(t,e){const n=t.x,i=t.y,r=t.z,s=this.coefficients;return e.copy(s[0]).multiplyScalar(.886227),e.addScaledVector(s[1],1.023328*i),e.addScaledVector(s[2],1.023328*r),e.addScaledVector(s[3],1.023328*n),e.addScaledVector(s[4],.858086*n*i),e.addScaledVector(s[5],.858086*i*r),e.addScaledVector(s[6],.743125*r*r-.247708),e.addScaledVector(s[7],.858086*n*r),e.addScaledVector(s[8],.429043*(n*n-i*i)),e}add(t){for(let e=0;e<9;e++)this.coefficients[e].add(t.coefficients[e]);return this}addScaledSH(t,e){for(let n=0;n<9;n++)this.coefficients[n].addScaledVector(t.coefficients[n],e);return this}scale(t){for(let e=0;e<9;e++)this.coefficients[e].multiplyScalar(t);return this}lerp(t,e){for(let n=0;n<9;n++)this.coefficients[n].lerp(t.coefficients[n],e);return this}equals(t){for(let e=0;e<9;e++)if(!this.coefficients[e].equals(t.coefficients[e]))return!1;return!0}copy(t){return this.set(t.coefficients)}clone(){return new this.constructor().copy(this)}fromArray(t,e=0){const n=this.coefficients;for(let i=0;i<9;i++)n[i].fromArray(t,e+3*i);return this}toArray(t=[],e=0){const n=this.coefficients;for(let i=0;i<9;i++)n[i].toArray(t,e+3*i);return t}static getBasisAt(t,e){const n=t.x,i=t.y,r=t.z;e[0]=.282095,e[1]=.488603*i,e[2]=.488603*r,e[3]=.488603*n,e[4]=1.092548*n*i,e[5]=1.092548*i*r,e[6]=.315392*(3*r*r-1),e[7]=1.092548*n*r,e[8]=.546274*(n*n-i*i)}}class hu extends qh{constructor(t=new cu,e=1){super(void 0,e),this.isLightProbe=!0,this.sh=t}copy(t){return super.copy(t),this.sh.copy(t.sh),this}fromJSON(t){return this.intensity=t.intensity,this.sh.fromArray(t.sh),this}toJSON(t){const e=super.toJSON(t);return e.object.sh=this.sh.toArray(),e}}class uu extends Gh{constructor(t){super(t),this.textures={}}load(t,e,n,i){const r=this,s=new Wh(r.manager);s.setPath(r.path),s.setRequestHeader(r.requestHeader),s.setWithCredentials(r.withCredentials),s.load(t,function(n){try{e(r.parse(JSON.parse(n)))}catch(e){i?i(e):console.error(e),r.manager.itemError(t)}},n,i)}parse(t){const e=this.textures;function n(t){return void 0===e[t]&&console.warn("THREE.MaterialLoader: Undefined texture",t),e[t]}const i=uu.createMaterialFromType(t.type);if(void 0!==t.uuid&&(i.uuid=t.uuid),void 0!==t.name&&(i.name=t.name),void 0!==t.color&&void 0!==i.color&&i.color.setHex(t.color),void 0!==t.roughness&&(i.roughness=t.roughness),void 0!==t.metalness&&(i.metalness=t.metalness),void 0!==t.sheen&&(i.sheen=t.sheen),void 0!==t.sheenColor&&(i.sheenColor=new Oi().setHex(t.sheenColor)),void 0!==t.sheenRoughness&&(i.sheenRoughness=t.sheenRoughness),void 0!==t.emissive&&void 0!==i.emissive&&i.emissive.setHex(t.emissive),void 0!==t.specular&&void 0!==i.specular&&i.specular.setHex(t.specular),void 0!==t.specularIntensity&&(i.specularIntensity=t.specularIntensity),void 0!==t.specularColor&&void 0!==i.specularColor&&i.specularColor.setHex(t.specularColor),void 0!==t.shininess&&(i.shininess=t.shininess),void 0!==t.clearcoat&&(i.clearcoat=t.clearcoat),void 0!==t.clearcoatRoughness&&(i.clearcoatRoughness=t.clearcoatRoughness),void 0!==t.iridescence&&(i.iridescence=t.iridescence),void 0!==t.iridescenceIOR&&(i.iridescenceIOR=t.iridescenceIOR),void 0!==t.iridescenceThicknessRange&&(i.iridescenceThicknessRange=t.iridescenceThicknessRange),void 0!==t.transmission&&(i.transmission=t.transmission),void 0!==t.thickness&&(i.thickness=t.thickness),void 0!==t.attenuationDistance&&(i.attenuationDistance=t.attenuationDistance),void 0!==t.attenuationColor&&void 0!==i.attenuationColor&&i.attenuationColor.setHex(t.attenuationColor),void 0!==t.fog&&(i.fog=t.fog),void 0!==t.flatShading&&(i.flatShading=t.flatShading),void 0!==t.blending&&(i.blending=t.blending),void 0!==t.combine&&(i.combine=t.combine),void 0!==t.side&&(i.side=t.side),void 0!==t.shadowSide&&(i.shadowSide=t.shadowSide),void 0!==t.opacity&&(i.opacity=t.opacity),void 0!==t.transparent&&(i.transparent=t.transparent),void 0!==t.alphaTest&&(i.alphaTest=t.alphaTest),void 0!==t.depthTest&&(i.depthTest=t.depthTest),void 0!==t.depthWrite&&(i.depthWrite=t.depthWrite),void 0!==t.colorWrite&&(i.colorWrite=t.colorWrite),void 0!==t.stencilWrite&&(i.stencilWrite=t.stencilWrite),void 0!==t.stencilWriteMask&&(i.stencilWriteMask=t.stencilWriteMask),void 0!==t.stencilFunc&&(i.stencilFunc=t.stencilFunc),void 0!==t.stencilRef&&(i.stencilRef=t.stencilRef),void 0!==t.stencilFuncMask&&(i.stencilFuncMask=t.stencilFuncMask),void 0!==t.stencilFail&&(i.stencilFail=t.stencilFail),void 0!==t.stencilZFail&&(i.stencilZFail=t.stencilZFail),void 0!==t.stencilZPass&&(i.stencilZPass=t.stencilZPass),void 0!==t.wireframe&&(i.wireframe=t.wireframe),void 0!==t.wireframeLinewidth&&(i.wireframeLinewidth=t.wireframeLinewidth),void 0!==t.wireframeLinecap&&(i.wireframeLinecap=t.wireframeLinecap),void 0!==t.wireframeLinejoin&&(i.wireframeLinejoin=t.wireframeLinejoin),void 0!==t.rotation&&(i.rotation=t.rotation),1!==t.linewidth&&(i.linewidth=t.linewidth),void 0!==t.dashSize&&(i.dashSize=t.dashSize),void 0!==t.gapSize&&(i.gapSize=t.gapSize),void 0!==t.scale&&(i.scale=t.scale),void 0!==t.polygonOffset&&(i.polygonOffset=t.polygonOffset),void 0!==t.polygonOffsetFactor&&(i.polygonOffsetFactor=t.polygonOffsetFactor),void 0!==t.polygonOffsetUnits&&(i.polygonOffsetUnits=t.polygonOffsetUnits),void 0!==t.dithering&&(i.dithering=t.dithering),void 0!==t.alphaToCoverage&&(i.alphaToCoverage=t.alphaToCoverage),void 0!==t.premultipliedAlpha&&(i.premultipliedAlpha=t.premultipliedAlpha),void 0!==t.forceSinglePass&&(i.forceSinglePass=t.forceSinglePass),void 0!==t.visible&&(i.visible=t.visible),void 0!==t.toneMapped&&(i.toneMapped=t.toneMapped),void 0!==t.userData&&(i.userData=t.userData),void 0!==t.vertexColors&&("number"==typeof t.vertexColors?i.vertexColors=t.vertexColors>0:i.vertexColors=t.vertexColors),void 0!==t.uniforms)for(const e in t.uniforms){const r=t.uniforms[e];switch(i.uniforms[e]={},r.type){case"t":i.uniforms[e].value=n(r.value);break;case"c":i.uniforms[e].value=new Oi().setHex(r.value);break;case"v2":i.uniforms[e].value=new We().fromArray(r.value);break;case"v3":i.uniforms[e].value=new gn().fromArray(r.value);break;case"v4":i.uniforms[e].value=new un().fromArray(r.value);break;case"m3":i.uniforms[e].value=new je().fromArray(r.value);break;case"m4":i.uniforms[e].value=new qn().fromArray(r.value);break;default:i.uniforms[e].value=r.value;}}if(void 0!==t.defines&&(i.defines=t.defines),void 0!==t.vertexShader&&(i.vertexShader=t.vertexShader),void 0!==t.fragmentShader&&(i.fragmentShader=t.fragmentShader),void 0!==t.glslVersion&&(i.glslVersion=t.glslVersion),void 0!==t.extensions)for(const e in t.extensions)i.extensions[e]=t.extensions[e];if(void 0!==t.size&&(i.size=t.size),void 0!==t.sizeAttenuation&&(i.sizeAttenuation=t.sizeAttenuation),void 0!==t.map&&(i.map=n(t.map)),void 0!==t.matcap&&(i.matcap=n(t.matcap)),void 0!==t.alphaMap&&(i.alphaMap=n(t.alphaMap)),void 0!==t.bumpMap&&(i.bumpMap=n(t.bumpMap)),void 0!==t.bumpScale&&(i.bumpScale=t.bumpScale),void 0!==t.normalMap&&(i.normalMap=n(t.normalMap)),void 0!==t.normalMapType&&(i.normalMapType=t.normalMapType),void 0!==t.normalScale){let e=t.normalScale;!1===Array.isArray(e)&&(e=[e,e]),i.normalScale=new We().fromArray(e)}return void 0!==t.displacementMap&&(i.displacementMap=n(t.displacementMap)),void 0!==t.displacementScale&&(i.displacementScale=t.displacementScale),void 0!==t.displacementBias&&(i.displacementBias=t.displacementBias),void 0!==t.roughnessMap&&(i.roughnessMap=n(t.roughnessMap)),void 0!==t.metalnessMap&&(i.metalnessMap=n(t.metalnessMap)),void 0!==t.emissiveMap&&(i.emissiveMap=n(t.emissiveMap)),void 0!==t.emissiveIntensity&&(i.emissiveIntensity=t.emissiveIntensity),void 0!==t.specularMap&&(i.specularMap=n(t.specularMap)),void 0!==t.specularIntensityMap&&(i.specularIntensityMap=n(t.specularIntensityMap)),void 0!==t.specularColorMap&&(i.specularColorMap=n(t.specularColorMap)),void 0!==t.envMap&&(i.envMap=n(t.envMap)),void 0!==t.envMapIntensity&&(i.envMapIntensity=t.envMapIntensity),void 0!==t.reflectivity&&(i.reflectivity=t.reflectivity),void 0!==t.refractionRatio&&(i.refractionRatio=t.refractionRatio),void 0!==t.lightMap&&(i.lightMap=n(t.lightMap)),void 0!==t.lightMapIntensity&&(i.lightMapIntensity=t.lightMapIntensity),void 0!==t.aoMap&&(i.aoMap=n(t.aoMap)),void 0!==t.aoMapIntensity&&(i.aoMapIntensity=t.aoMapIntensity),void 0!==t.gradientMap&&(i.gradientMap=n(t.gradientMap)),void 0!==t.clearcoatMap&&(i.clearcoatMap=n(t.clearcoatMap)),void 0!==t.clearcoatRoughnessMap&&(i.clearcoatRoughnessMap=n(t.clearcoatRoughnessMap)),void 0!==t.clearcoatNormalMap&&(i.clearcoatNormalMap=n(t.clearcoatNormalMap)),void 0!==t.clearcoatNormalScale&&(i.clearcoatNormalScale=new We().fromArray(t.clearcoatNormalScale)),void 0!==t.iridescenceMap&&(i.iridescenceMap=n(t.iridescenceMap)),void 0!==t.iridescenceThicknessMap&&(i.iridescenceThicknessMap=n(t.iridescenceThicknessMap)),void 0!==t.transmissionMap&&(i.transmissionMap=n(t.transmissionMap)),void 0!==t.thicknessMap&&(i.thicknessMap=n(t.thicknessMap)),void 0!==t.sheenColorMap&&(i.sheenColorMap=n(t.sheenColorMap)),void 0!==t.sheenRoughnessMap&&(i.sheenRoughnessMap=n(t.sheenRoughnessMap)),i}setTextures(t){return this.textures=t,this}static createMaterialFromType(t){return new{ShadowMaterial:oh,SpriteMaterial:Do,RawShaderMaterial:lh,ShaderMaterial:Cr,PointsMaterial:Pl,MeshPhysicalMaterial:hh,MeshStandardMaterial:ch,MeshPhongMaterial:uh,MeshToonMaterial:dh,MeshNormalMaterial:ph,MeshLambertMaterial:mh,MeshDepthMaterial:oo,MeshDistanceMaterial:lo,MeshBasicMaterial:Bi,MeshMatcapMaterial:fh,LineDashedMaterial:gh,LineBasicMaterial:xl,Material:Ri}[t]}}class du{static decodeText(t){if("undefined"!=typeof TextDecoder)return new TextDecoder().decode(t);let e="";for(let n=0,i=t.length;n0){this.source.connect(this.filters[0]);for(let t=1,e=this.filters.length;t0){this.source.disconnect(this.filters[0]);for(let t=1,e=this.filters.length;t0&&this._mixBufferRegionAdditive(n,i,this._addIndex*e,1,e);for(let t=e,r=e+e;t!==r;++t)if(n[t]!==n[t+e]){a.setValue(n,i);break}}saveOriginalState(){const t=this.binding,e=this.buffer,n=this.valueSize,i=n*this._origIndex;t.getValue(e,i);for(let t=n,r=i;t!==r;++t)e[t]=e[i+t%n];this._setIdentity(),this.cumulativeWeight=0,this.cumulativeWeightAdditive=0}restoreOriginalState(){const t=3*this.valueSize;this.binding.setValue(this.buffer,t)}_setAdditiveIdentityNumeric(){const t=this._addIndex*this.valueSize,e=t+this.valueSize;for(let n=t;n=.5)for(let i=0;i!==r;++i)t[e+i]=t[n+i]}_slerp(t,e,n,i){fn.slerpFlat(t,e,t,e,t,n,i)}_slerpAdditive(t,e,n,i,r){const s=this._workIndex*r;fn.multiplyQuaternionsFlat(t,s,t,e,t,n),fn.slerpFlat(t,e,t,e,t,s,i)}_lerp(t,e,n,i,r){const s=1-i;for(let a=0;a!==r;++a){const r=e+a;t[r]=t[r]*s+t[n+a]*i}}_lerpAdditive(t,e,n,i,r){for(let s=0;s!==r;++s){const r=e+s;t[r]=t[r]+t[n+s]*i}}}const Nu="\\[\\]\\.:\\/",Ou=new RegExp("["+Nu+"]","g"),zu="[^"+Nu+"]",Bu="[^"+Nu.replace("\\.","")+"]",Fu=new RegExp("^"+/((?:WC+[\/:])*)/.source.replace("WC",zu)+/(WCOD+)?/.source.replace("WCOD",Bu)+/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",zu)+/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",zu)+"$"),ku=["material","materials","bones","map"];class Gu{constructor(t,e,n){this.path=e,this.parsedPath=n||Gu.parseTrackName(e),this.node=Gu.findNode(t,this.parsedPath.nodeName),this.rootNode=t,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}static create(t,e,n){return t&&t.isAnimationObjectGroup?new Gu.Composite(t,e,n):new Gu(t,e,n)}static sanitizeNodeName(t){return t.replace(/\s/g,"_").replace(Ou,"")}static parseTrackName(t){const e=Fu.exec(t);if(null===e)throw new Error("PropertyBinding: Cannot parse trackName: "+t);const n={nodeName:e[2],objectName:e[3],objectIndex:e[4],propertyName:e[5],propertyIndex:e[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==i&&-1!==i){const t=n.nodeName.substring(i+1);-1!==ku.indexOf(t)&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=t)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return n}static findNode(t,e){if(void 0===e||""===e||"."===e||-1===e||e===t.name||e===t.uuid)return t;if(t.skeleton){const n=t.skeleton.getBoneByName(e);if(void 0!==n)return n}if(t.children){const n=function(t){for(let i=0;i0){const t=this._interpolants,e=this._propertyBindings;if(this.blendMode===ge)for(let n=0,i=t.length;n!==i;++n)t[n].evaluate(s),e[n].accumulateAdditive(a);else for(let n=0,r=t.length;n!==r;++n)t[n].evaluate(s),e[n].accumulate(i,a)}}_updateWeight(t){let e=0;if(this.enabled){e=this.weight;const n=this._weightInterpolant;if(null!==n){const i=n.evaluate(t)[0];e*=i,t>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=e,e}_updateTimeScale(t){let e=0;if(!this.paused){e=this.timeScale;const n=this._timeScaleInterpolant;if(null!==n){e*=n.evaluate(t)[0],t>n.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e)}}return this._effectiveTimeScale=e,e}_updateTime(t){const e=this._clip.duration,n=this.loop;let i=this.time+t,r=this._loopCount;const s=2202===n;if(0===t)return-1===r?i:s&&1==(1&r)?e-i:i;if(2200===n){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));t:{if(i>=e)i=e;else{if(!(i<0)){this.time=i;break t}i=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:t<0?-1:1})}}else{if(-1===r&&(t>=0?(r=0,this._setEndings(!0,0===this.repetitions,s)):this._setEndings(0===this.repetitions,!0,s)),i>=e||i<0){const n=Math.floor(i/e);i-=e*n,r+=Math.abs(n);const a=this.repetitions-r;if(a<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,i=t>0?e:0,this.time=i,this._mixer.dispatchEvent({type:"finished",action:this,direction:t>0?1:-1});else{if(1===a){const e=t<0;this._setEndings(e,!e,s)}else this._setEndings(!1,!1,s);this._loopCount=r,this.time=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:n})}}else this.time=i;if(s&&1==(1&r))return e-i}return i}_setEndings(t,e,n){const i=this._interpolantSettings;n?(i.endingStart=pe,i.endingEnd=pe):(i.endingStart=t?this.zeroSlopeAtStart?pe:de:me,i.endingEnd=e?this.zeroSlopeAtEnd?pe:de:me)}_scheduleFading(t,e,n){const i=this._mixer,r=i.time;let s=this._weightInterpolant;null===s&&(s=i._lendControlInterpolant(),this._weightInterpolant=s);const a=s.parameterPositions,o=s.sampleValues;return a[0]=r,o[0]=e,a[1]=r+t,o[1]=n,this}}const Hu=new Float32Array(1);class Wu{constructor(t){this.value=t}clone(){return new Wu(void 0===this.value.clone?this.value:this.value.clone())}}let ju=0;function qu(t,e){return t.distance-e.distance}function Xu(t,e,n,i){if(t.layers.test(e.layers)&&t.raycast(e,n),!0===i){const i=t.children;for(let t=0,r=i.length;t=0;--e)t[e].stop();return this}update(t){t*=this.timeScale;const e=this._actions,n=this._nActiveActions,i=this.time+=t,r=Math.sign(t),s=this._accuIndex^=1;for(let a=0;a!==n;++a){e[a]._update(i,t,r,s)}const a=this._bindings,o=this._nActiveBindings;for(let t=0;t!==o;++t)a[t].apply(s);return this}setTime(t){this.time=0;for(let t=0;t=r){const s=r++,c=t[s];e[c.uuid]=l,t[l]=c,e[o]=s,t[s]=a;for(let t=0,e=i;t!==e;++t){const e=n[t],i=e[s],r=e[l];e[l]=i,e[s]=r}}}this.nCachedObjects_=r}uncache(){const t=this._objects,e=this._indicesByUUID,n=this._bindings,i=n.length;let r=this.nCachedObjects_,s=t.length;for(let a=0,o=arguments.length;a!==o;++a){const o=arguments[a].uuid,l=e[o];if(void 0!==l)if(delete e[o],l0&&(e[a.uuid]=l),t[l]=a,t.pop();for(let t=0,e=i;t!==e;++t){const e=n[t];e[l]=e[r],e.pop()}}}this.nCachedObjects_=r}subscribe_(t,e){const n=this._bindingsIndicesByPath;let i=n[t];const r=this._bindings;if(void 0!==i)return r[i];const s=this._paths,a=this._parsedPaths,o=this._objects,l=o.length,c=this.nCachedObjects_,h=new Array(l);i=r.length,n[t]=i,s.push(t),a.push(e),r.push(h);for(let n=c,i=o.length;n!==i;++n){const i=o[n];h[n]=new Gu(i,t,e)}return h}unsubscribe_(t){const e=this._bindingsIndicesByPath,n=e[t];if(void 0!==n){const i=this._paths,r=this._parsedPaths,s=this._bindings,a=s.length-1,o=s[a];e[t[a]]=n,s[n]=o,s.pop(),r[n]=r[a],r.pop(),i[n]=i[a],i.pop()}}},t.AnimationUtils=bh,t.ArcCurve=kl,t.ArrayCamera=go,t.ArrowHelper=class extends vi{constructor(t=new gn(0,0,1),e=new gn(0,0,0),n=1,i=16776960,r=.2*n,s=.2*r){super(),this.type="ArrowHelper",void 0===pd&&(pd=new ir,pd.setAttribute("position",new Zi([0,0,0,0,1,0],3)),md=new cc(0,.5,1,5,1),md.translate(0,-.5,0)),this.position.copy(e),this.line=new Tl(pd,new xl({color:i,toneMapped:!1})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new Mr(md,new Bi({color:i,toneMapped:!1})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(n,r,s)}setDirection(t){if(t.y>.99999)this.quaternion.set(0,0,0,1);else if(t.y<-.99999)this.quaternion.set(1,0,0,0);else{dd.set(t.z,0,-t.x).normalize();const e=Math.acos(t.y);this.quaternion.setFromAxisAngle(dd,e)}}setLength(t,e=.2*t,n=.2*e){this.line.scale.set(1,Math.max(1e-4,t-e),1),this.line.updateMatrix(),this.cone.scale.set(n,e,n),this.cone.position.y=t,this.cone.updateMatrix()}setColor(t){this.line.material.color.set(t),this.cone.material.color.set(t)}copy(t){return super.copy(t,!1),this.line.copy(t.line),this.cone.copy(t.cone),this}dispose(){this.line.geometry.dispose(),this.line.material.dispose(),this.cone.geometry.dispose(),this.cone.material.dispose()}},t.Audio=Lu,t.AudioAnalyser=class{constructor(t,e=2048){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=e,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}getFrequencyData(){return this.analyser.getByteFrequencyData(this.data),this.data}getAverageFrequency(){let t=0;const e=this.getFrequencyData();for(let n=0;nthis.max.x||t.ythis.max.y)}containsBox(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y}getParameter(t,e){return e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))}intersectsBox(t){return!(t.max.xthis.max.x||t.max.ythis.max.y)}clampPoint(t,e){return e.copy(t).clamp(this.min,this.max)}distanceToPoint(t){return this.clampPoint(t,Yu).distanceTo(t)}intersect(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this}union(t){return this.min.min(t.min),this.max.max(t.max),this}translate(t){return this.min.add(t),this.max.add(t),this}equals(t){return t.min.equals(this.min)&&t.max.equals(this.max)}},t.Box3=xn,t.Box3Helper=class extends Cl{constructor(t,e=16776960){const n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),i=new ir;i.setIndex(new qi(n,1)),i.setAttribute("position",new Zi([1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],3)),super(i,new xl({color:e,toneMapped:!1})),this.box=t,this.type="Box3Helper",this.geometry.computeBoundingSphere()}updateMatrixWorld(t){const e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),super.updateMatrixWorld(t))}dispose(){this.geometry.dispose(),this.material.dispose()}},t.BoxBufferGeometry=class extends br{constructor(t,e,n,i,r,s){console.warn("THREE.BoxBufferGeometry has been renamed to THREE.BoxGeometry."),super(t,e,n,i,r,s)}},t.BoxGeometry=br,t.BoxHelper=class extends Cl{constructor(t,e=16776960){const n=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),i=new Float32Array(24),r=new ir;r.setIndex(new qi(n,1)),r.setAttribute("position",new qi(i,3)),super(r,new xl({color:e,toneMapped:!1})),this.object=t,this.type="BoxHelper",this.matrixAutoUpdate=!1,this.update()}update(t){if(void 0!==t&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),void 0!==this.object&&ud.setFromObject(this.object),ud.isEmpty())return;const e=ud.min,n=ud.max,i=this.geometry.attributes.position,r=i.array;r[0]=n.x,r[1]=n.y,r[2]=n.z,r[3]=e.x,r[4]=n.y,r[5]=n.z,r[6]=e.x,r[7]=e.y,r[8]=n.z,r[9]=n.x,r[10]=e.y,r[11]=n.z,r[12]=n.x,r[13]=n.y,r[14]=e.z,r[15]=e.x,r[16]=n.y,r[17]=e.z,r[18]=e.x,r[19]=e.y,r[20]=e.z,r[21]=n.x,r[22]=e.y,r[23]=e.z,i.needsUpdate=!0,this.geometry.computeBoundingSphere()}setFromObject(t){return this.object=t,this.update(),this}copy(t,e){return super.copy(t,e),this.object=t.object,this}dispose(){this.geometry.dispose(),this.material.dispose()}},t.BufferAttribute=qi,t.BufferGeometry=ir,t.BufferGeometryLoader=mu,t.ByteType=dt,t.Cache=Bh,t.Camera=Lr,t.CameraHelper=class extends Cl{constructor(t){const e=new ir,n=new xl({color:16777215,vertexColors:!0,toneMapped:!1}),i=[],r=[],s={};function a(t,e){o(t),o(e)}function o(t){i.push(0,0,0),r.push(0,0,0),void 0===s[t]&&(s[t]=[]),s[t].push(i.length/3-1)}a("n1","n2"),a("n2","n4"),a("n4","n3"),a("n3","n1"),a("f1","f2"),a("f2","f4"),a("f4","f3"),a("f3","f1"),a("n1","f1"),a("n2","f2"),a("n3","f3"),a("n4","f4"),a("p","n1"),a("p","n2"),a("p","n3"),a("p","n4"),a("u1","u2"),a("u2","u3"),a("u3","u1"),a("c","t"),a("p","c"),a("cn1","cn2"),a("cn3","cn4"),a("cf1","cf2"),a("cf3","cf4"),e.setAttribute("position",new Zi(i,3)),e.setAttribute("color",new Zi(r,3)),super(e,n),this.type="CameraHelper",this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=s,this.update();const l=new Oi(16755200),c=new Oi(16711680),h=new Oi(43775),u=new Oi(16777215),d=new Oi(3355443);this.setColors(l,c,h,u,d)}setColors(t,e,n,i,r){const s=this.geometry.getAttribute("color");s.setXYZ(0,t.r,t.g,t.b),s.setXYZ(1,t.r,t.g,t.b),s.setXYZ(2,t.r,t.g,t.b),s.setXYZ(3,t.r,t.g,t.b),s.setXYZ(4,t.r,t.g,t.b),s.setXYZ(5,t.r,t.g,t.b),s.setXYZ(6,t.r,t.g,t.b),s.setXYZ(7,t.r,t.g,t.b),s.setXYZ(8,t.r,t.g,t.b),s.setXYZ(9,t.r,t.g,t.b),s.setXYZ(10,t.r,t.g,t.b),s.setXYZ(11,t.r,t.g,t.b),s.setXYZ(12,t.r,t.g,t.b),s.setXYZ(13,t.r,t.g,t.b),s.setXYZ(14,t.r,t.g,t.b),s.setXYZ(15,t.r,t.g,t.b),s.setXYZ(16,t.r,t.g,t.b),s.setXYZ(17,t.r,t.g,t.b),s.setXYZ(18,t.r,t.g,t.b),s.setXYZ(19,t.r,t.g,t.b),s.setXYZ(20,t.r,t.g,t.b),s.setXYZ(21,t.r,t.g,t.b),s.setXYZ(22,t.r,t.g,t.b),s.setXYZ(23,t.r,t.g,t.b),s.setXYZ(24,e.r,e.g,e.b),s.setXYZ(25,e.r,e.g,e.b),s.setXYZ(26,e.r,e.g,e.b),s.setXYZ(27,e.r,e.g,e.b),s.setXYZ(28,e.r,e.g,e.b),s.setXYZ(29,e.r,e.g,e.b),s.setXYZ(30,e.r,e.g,e.b),s.setXYZ(31,e.r,e.g,e.b),s.setXYZ(32,n.r,n.g,n.b),s.setXYZ(33,n.r,n.g,n.b),s.setXYZ(34,n.r,n.g,n.b),s.setXYZ(35,n.r,n.g,n.b),s.setXYZ(36,n.r,n.g,n.b),s.setXYZ(37,n.r,n.g,n.b),s.setXYZ(38,i.r,i.g,i.b),s.setXYZ(39,i.r,i.g,i.b),s.setXYZ(40,r.r,r.g,r.b),s.setXYZ(41,r.r,r.g,r.b),s.setXYZ(42,r.r,r.g,r.b),s.setXYZ(43,r.r,r.g,r.b),s.setXYZ(44,r.r,r.g,r.b),s.setXYZ(45,r.r,r.g,r.b),s.setXYZ(46,r.r,r.g,r.b),s.setXYZ(47,r.r,r.g,r.b),s.setXYZ(48,r.r,r.g,r.b),s.setXYZ(49,r.r,r.g,r.b),s.needsUpdate=!0}update(){const t=this.geometry,e=this.pointMap;cd.projectionMatrixInverse.copy(this.camera.projectionMatrixInverse),hd("c",e,t,cd,0,0,-1),hd("t",e,t,cd,0,0,1),hd("n1",e,t,cd,-1,-1,-1),hd("n2",e,t,cd,1,-1,-1),hd("n3",e,t,cd,-1,1,-1),hd("n4",e,t,cd,1,1,-1),hd("f1",e,t,cd,-1,-1,1),hd("f2",e,t,cd,1,-1,1),hd("f3",e,t,cd,-1,1,1),hd("f4",e,t,cd,1,1,1),hd("u1",e,t,cd,.7,1.1,-1),hd("u2",e,t,cd,-.7,1.1,-1),hd("u3",e,t,cd,0,2,-1),hd("cf1",e,t,cd,-1,0,1),hd("cf2",e,t,cd,1,0,1),hd("cf3",e,t,cd,0,-1,1),hd("cf4",e,t,cd,0,1,1),hd("cn1",e,t,cd,-1,0,-1),hd("cn2",e,t,cd,1,0,-1),hd("cn3",e,t,cd,0,-1,-1),hd("cn4",e,t,cd,0,1,-1),t.getAttribute("position").needsUpdate=!0}dispose(){this.geometry.dispose(),this.material.dispose()}},t.CanvasTexture=class extends hn{constructor(t,e,n,i,r,s,a,o,l){super(t,e,n,i,r,s,a,o,l),this.isCanvasTexture=!0,this.needsUpdate=!0}},t.CapsuleBufferGeometry=class extends oc{constructor(t,e,n,i){console.warn("THREE.CapsuleBufferGeometry has been renamed to THREE.CapsuleGeometry."),super(t,e,n,i)}},t.CapsuleGeometry=oc,t.CatmullRomCurve3=ql,t.CineonToneMapping=X,t.CircleBufferGeometry=class extends lc{constructor(t,e,n,i){console.warn("THREE.CircleBufferGeometry has been renamed to THREE.CircleGeometry."),super(t,e,n,i)}},t.CircleGeometry=lc,t.ClampToEdgeWrapping=it,t.Clock=bu,t.Color=Oi,t.ColorKeyframeTrack=Ph,t.ColorManagement=rn,t.CompressedArrayTexture=class extends zl{constructor(t,e,n,i,r,s){super(t,e,n,r,s),this.isCompressedArrayTexture=!0,this.image.depth=i,this.wrapR=it}},t.CompressedTexture=zl,t.CompressedTextureLoader=class extends Gh{constructor(t){super(t)}load(t,e,n,i){const r=this,s=[],a=new zl,o=new Wh(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(r.withCredentials);let l=0;function c(c){o.load(t[c],function(t){const n=r.parse(t,!0);s[c]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},l+=1,6===l&&(1===n.mipmapCount&&(a.minFilter=lt),a.image=s,a.format=n.format,a.needsUpdate=!0,e&&e(a))},n,i)}if(Array.isArray(t))for(let e=0,n=t.length;e0){const n=new Fh(e);r=new jh(n),r.setCrossOrigin(this.crossOrigin);for(let e=0,n=t.length;e0){i=new jh(this.manager),i.setCrossOrigin(this.crossOrigin);for(let e=0,i=t.length;e1)for(let n=0;nNumber.EPSILON){if(l<0&&(n=e[s],o=-o,a=e[r],l=-l),t.ya.y)continue;if(t.y===n.y){if(t.x===n.x)return!0}else{const e=l*(t.x-n.x)-o*(t.y-n.y);if(0===e)return!0;if(e<0)continue;i=!i}}else{if(t.y!==n.y)continue;if(a.x<=t.x&&t.x<=n.x||n.x<=t.x&&t.x<=a.x)return!0}}return i}const n=Wc.isClockWise,i=this.subPaths;if(0===i.length)return[];let r,s,a;const o=[];if(1===i.length)return s=i[0],a=new _c,a.curves=s.curves,o.push(a),o;let l=!n(i[0].getPoints());l=t?!l:l;const c=[],h=[];let u,d,p=[],m=0;h[m]=void 0,p[m]=[];for(let e=0,a=i.length;e1){let t=!1,n=0;for(let t=0,e=h.length;t0&&!1===t&&(p=c)}for(let t=0,e=h.length;t=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}},t.WebGL1Renderer=Eo,t.WebGL3DRenderTarget=class extends dn{constructor(t=1,e=1,n=1){super(t,e),this.isWebGL3DRenderTarget=!0,this.depth=n,this.texture=new mn(null,t,e,n),this.texture.isRenderTargetTexture=!0}},t.WebGLArrayRenderTarget=class extends dn{constructor(t=1,e=1,n=1){super(t,e),this.isWebGLArrayRenderTarget=!0,this.depth=n,this.texture=new pn(null,t,e,n),this.texture.isRenderTargetTexture=!0}},t.WebGLCubeRenderTarget=Ur,t.WebGLMultipleRenderTargets=class extends dn{constructor(t=1,e=1,n=1,i={}){super(t,e,i),this.isWebGLMultipleRenderTargets=!0;const r=this.texture;this.texture=[];for(let t=0;tsplitDist){splitDist=dist;splitDimIdx=i}}return splitDimIdx}function copyBounds(source,target){target.set(source)}function unionBounds(a,b,target){let aVal,bVal;for(let d=0;d<3;d++){const d3=d+3;aVal=a[d];bVal=b[d];target[d]=aValbVal?aVal:bVal}}function expandByTriangleBounds(startIndex,triangleBounds,bounds){for(let d=0;d<3;d++){const tCenter=triangleBounds[startIndex+2*d];const tHalf=triangleBounds[startIndex+2*d+1];const tMin=tCenter-tHalf;const tMax=tCenter+tHalf;if(tMinbounds[d+3]){bounds[d+3]=tMax}}}function computeSurfaceArea(bounds){const d0=bounds[3]-bounds[0];const d1=bounds[4]-bounds[1];const d2=bounds[5]-bounds[2];return 2*(d0*d1+d1*d2+d2*d0)}function ensureIndex(geo,options){if(!geo.index){const vertexCount=geo.attributes.position.count;const BufferConstructor=options.useSharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;let index;if(vertexCount>65535){index=new Uint32Array(new BufferConstructor(4*vertexCount))}else{index=new Uint16Array(new BufferConstructor(2*vertexCount))}geo.setIndex(new three.BufferAttribute(index,1));for(let i=0;ia-b);for(let i=0;imaxx)maxx=rx;if(includeCentroid&&cxcmaxx)cmaxx=cx;const cy=triangleBounds[i+2];const hy=triangleBounds[i+3];const ly=cy-hy;const ry=cy+hy;if(lymaxy)maxy=ry;if(includeCentroid&&cycmaxy)cmaxy=cy;const cz=triangleBounds[i+4];const hz=triangleBounds[i+5];const lz=cz-hz;const rz=cz+hz;if(lzmaxz)maxz=rz;if(includeCentroid&&czcmaxz)cmaxz=cz}target[0]=minx;target[1]=miny;target[2]=minz;target[3]=maxx;target[4]=maxy;target[5]=maxz;if(includeCentroid){centroidTarget[0]=cminx;centroidTarget[1]=cminy;centroidTarget[2]=cminz;centroidTarget[3]=cmaxx;centroidTarget[4]=cmaxy;centroidTarget[5]=cmaxz}}function getCentroidBounds(triangleBounds,offset,count,centroidTarget){let cminx=Infinity;let cminy=Infinity;let cminz=Infinity;let cmaxx=-Infinity;let cmaxy=-Infinity;let cmaxz=-Infinity;for(let i=offset*6,end=(offset+count)*6;icmaxx)cmaxx=cx;const cy=triangleBounds[i+2];if(cycmaxy)cmaxy=cy;const cz=triangleBounds[i+4];if(czcmaxz)cmaxz=cz}centroidTarget[0]=cminx;centroidTarget[1]=cminy;centroidTarget[2]=cminz;centroidTarget[3]=cmaxx;centroidTarget[4]=cmaxy;centroidTarget[5]=cmaxz}function partition(index,triangleBounds,offset,count,split){let left=offset;let right=offset+count-1;const pos=split.pos;const axisOffset=split.axis*2;while(true){while(left<=right&&triangleBounds[left*6+axisOffset]=pos){right--}if(lefta.candidate-b.candidate;const sahBins=new Array(BIN_COUNT).fill().map(()=>{return{count:0,bounds:new Float32Array(6),rightCacheBounds:new Float32Array(6),leftCacheBounds:new Float32Array(6),candidate:0}});const leftBounds=new Float32Array(6);function getOptimalSplit(nodeBoundingData,centroidBoundingData,triangleBounds,offset,count,strategy){let axis=-1;let pos=0;if(strategy===CENTER){axis=getLongestEdgeIndex(centroidBoundingData);if(axis!==-1){pos=(centroidBoundingData[axis]+centroidBoundingData[axis+3])/2}}else if(strategy===AVERAGE){axis=getLongestEdgeIndex(nodeBoundingData);if(axis!==-1){pos=getAverage(triangleBounds,offset,count,axis)}}else if(strategy===SAH){const rootSurfaceArea=computeSurfaceArea(nodeBoundingData);let bestCost=TRIANGLE_INTERSECT_COST*count;const cStart=offset*6;const cEnd=(offset+count)*6;for(let a=0;a<3;a++){const axisLeft=centroidBoundingData[a];const axisRight=centroidBoundingData[a+3];const axisLength=axisRight-axisLeft;const binWidth=axisLength/BIN_COUNT;if(count=bin.candidate){expandByTriangleBounds(c,triangleBounds,bin.rightCacheBounds)}else{expandByTriangleBounds(c,triangleBounds,bin.leftCacheBounds);bin.count++}}}for(let bi=0;bi=BIN_COUNT)binIndex=BIN_COUNT-1;const bin=sahBins[binIndex];bin.count++;expandByTriangleBounds(c,triangleBounds,bin.bounds)}const lastBin=sahBins[BIN_COUNT-1];copyBounds(lastBin.bounds,lastBin.rightCacheBounds);for(let i=BIN_COUNT-2;i>=0;i--){const bin=sahBins[i];const nextBin=sahBins[i+1];unionBounds(bin.bounds,nextBin.rightCacheBounds,bin.rightCacheBounds)}let leftCount=0;for(let i=0;imax)max=b;if(c>max)max=c;const halfExtents=(max-min)/2;const el2=el*2;triangleBounds[tri6+el2+0]=min+halfExtents;triangleBounds[tri6+el2+1]=halfExtents+(Math.abs(min)+halfExtents)*FLOAT32_EPSILON;if(minfullBounds[el+3])fullBounds[el+3]=max}}return triangleBounds}function buildTree(geo,options){function triggerProgress(trianglesProcessed){if(onProgress){onProgress(trianglesProcessed/totalTriangles)}}function splitNode(node,offset,count,centroidBoundingData=null,depth=0){if(!reachedMaxDepth&&depth>=maxDepth){reachedMaxDepth=true;if(verbose){console.warn(`MeshBVH: Max depth of ${maxDepth} reached when generating BVH. Consider increasing maxDepth.`);console.warn(geo)}}if(count<=maxLeafTris||depth>=maxDepth){triggerProgress(offset+count);node.offset=offset;node.count=count;return node}const split=getOptimalSplit(node.boundingData,centroidBoundingData,triangleBounds,offset,count,strategy);if(split.axis===-1){triggerProgress(offset+count);node.offset=offset;node.count=count;return node}const splitOffset=partition(indexArray,triangleBounds,offset,count,split);if(splitOffset===offset||splitOffset===offset+count){triggerProgress(offset+count);node.offset=offset;node.count=count}else{node.splitAxis=split.axis;const left=new MeshBVHNode;const lstart=offset;const lcount=splitOffset-offset;node.left=left;left.boundingData=new Float32Array(6);getBounds(triangleBounds,lstart,lcount,left.boundingData,cacheCentroidBoundingData);splitNode(left,lstart,lcount,cacheCentroidBoundingData,depth+1);const right=new MeshBVHNode;const rstart=splitOffset;const rcount=count-lcount;node.right=right;right.boundingData=new Float32Array(6);getBounds(triangleBounds,rstart,rcount,right.boundingData,cacheCentroidBoundingData);splitNode(right,rstart,rcount,cacheCentroidBoundingData,depth+1)}return node}ensureIndex(geo,options);const fullBounds=new Float32Array(6);const cacheCentroidBoundingData=new Float32Array(6);const triangleBounds=computeTriangleBounds(geo,fullBounds);const indexArray=geo.index.array;const maxDepth=options.maxDepth;const verbose=options.verbose;const maxLeafTris=options.maxLeafTris;const strategy=options.strategy;const onProgress=options.onProgress;const totalTriangles=geo.index.count/3;let reachedMaxDepth=false;const roots=[];const ranges=getRootIndexRanges(geo);if(ranges.length===1){const range=ranges[0];const root=new MeshBVHNode;root.boundingData=fullBounds;getCentroidBounds(triangleBounds,range.offset,range.count,cacheCentroidBoundingData);splitNode(root,range.offset,range.count,cacheCentroidBoundingData);roots.push(root)}else{for(let range of ranges){const root=new MeshBVHNode;root.boundingData=new Float32Array(6);getBounds(triangleBounds,range.offset,range.count,root.boundingData,cacheCentroidBoundingData);splitNode(root,range.offset,range.count,cacheCentroidBoundingData);roots.push(root)}}return roots}function buildPackedTree(geo,options){const roots=buildTree(geo,options);let float32Array;let uint32Array;let uint16Array;const packedRoots=[];const BufferConstructor=options.useSharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;for(let i=0;iMath.pow(2,32)){throw new Error("MeshBVH: Cannot store child pointer greater than 32 bits.")}uint32Array[stride4Offset+6]=nextUnusedPointer/4;nextUnusedPointer=populateBuffer(nextUnusedPointer,right);uint32Array[stride4Offset+7]=splitAxis;return nextUnusedPointer}}}class SeparatingAxisBounds{constructor(){this.min=Infinity;this.max=-Infinity}setFromPointsField(points,field){let min=Infinity;let max=-Infinity;for(let i=0,l=points.length;imax?val:max}this.min=min;this.max=max}setFromPoints(axis,points){let min=Infinity;let max=-Infinity;for(let i=0,l=points.length;imax?val:max}this.min=min;this.max=max}isSeparated(other){return this.min>other.max||other.min>this.max}}SeparatingAxisBounds.prototype.setFromBox=function(){const p=new three.Vector3;return function setFromBox(axis,box){const boxMin=box.min;const boxMax=box.max;let min=Infinity;let max=-Infinity;for(let x=0;x<=1;x++){for(let y=0;y<=1;y++){for(let z=0;z<=1;z++){p.x=boxMin.x*x+boxMax.x*(1-x);p.y=boxMin.y*y+boxMax.y*(1-y);p.z=boxMin.z*z+boxMax.z*(1-z);const val=axis.dot(p);min=Math.min(val,min);max=Math.max(val,max)}}}this.min=min;this.max=max}}();const areIntersecting=function(){const cacheSatBounds=new SeparatingAxisBounds;return function areIntersecting(shape1,shape2){const points1=shape1.points;const satAxes1=shape1.satAxes;const satBounds1=shape1.satBounds;const points2=shape2.points;const satAxes2=shape2.satAxes;const satBounds2=shape2.satBounds;for(let i=0;i<3;i++){const sb=satBounds1[i];const sa=satAxes1[i];cacheSatBounds.setFromPoints(sa,points2);if(sb.isSeparated(cacheSatBounds))return false}for(let i=0;i<3;i++){const sb=satBounds2[i];const sa=satAxes2[i];cacheSatBounds.setFromPoints(sa,points1);if(sb.isSeparated(cacheSatBounds))return false}}}();const closestPointLineToLine=function(){const dir1=new three.Vector3;const dir2=new three.Vector3;const v02=new three.Vector3;return function closestPointLineToLine(l1,l2,result){const v0=l1.start;const v10=dir1;const v2=l2.start;const v32=dir2;v02.subVectors(v0,v2);dir1.subVectors(l1.end,l1.start);dir2.subVectors(l2.end,l2.start);const d0232=v02.dot(v32);const d3210=v32.dot(v10);const d3232=v32.dot(v32);const d0210=v02.dot(v10);const d1010=v10.dot(v10);const denom=d1010*d3232-d3210*d3210;let d,d2;if(denom!==0){d=(d0232*d3210-d0210*d3232)/denom}else{d=0}d2=(d0232+d*d3210)/d3232;result.x=d;result.y=d2}}();const closestPointsSegmentToSegment=function(){const paramResult=new three.Vector2;const temp1=new three.Vector3;const temp2=new three.Vector3;return function closestPointsSegmentToSegment(l1,l2,target1,target2){closestPointLineToLine(l1,l2,paramResult);let d=paramResult.x;let d2=paramResult.y;if(d>=0&&d<=1&&d2>=0&&d2<=1){l1.at(d,target1);l2.at(d2,target2);return}else if(d>=0&&d<=1){if(d2<0){l2.at(0,target2)}else{l2.at(1,target2)}l1.closestPointToPoint(target2,true,target1);return}else if(d2>=0&&d2<=1){if(d<0){l1.at(0,target1)}else{l1.at(1,target1)}l2.closestPointToPoint(target1,true,target2);return}else{let p;if(d<0){p=l1.start}else{p=l1.end}let p2;if(d2<0){p2=l2.start}else{p2=l2.end}const closestPoint=temp1;const closestPoint2=temp2;l1.closestPointToPoint(p2,true,temp1);l2.closestPointToPoint(p,true,temp2);if(closestPoint.distanceToSquared(p2)<=closestPoint2.distanceToSquared(p)){target1.copy(closestPoint);target2.copy(p2);return}else{target1.copy(p);target2.copy(closestPoint2);return}}}}();const sphereIntersectTriangle=function(){const closestPointTemp=new three.Vector3;const projectedPointTemp=new three.Vector3;const planeTemp=new three.Plane;const lineTemp=new three.Line3;return function sphereIntersectTriangle(sphere,triangle){const{radius,center}=sphere;const{a,b,c}=triangle;lineTemp.start=a;lineTemp.end=b;const closestPoint1=lineTemp.closestPointToPoint(center,true,closestPointTemp);if(closestPoint1.distanceTo(center)<=radius)return true;lineTemp.start=a;lineTemp.end=c;const closestPoint2=lineTemp.closestPointToPoint(center,true,closestPointTemp);if(closestPoint2.distanceTo(center)<=radius)return true;lineTemp.start=b;lineTemp.end=c;const closestPoint3=lineTemp.closestPointToPoint(center,true,closestPointTemp);if(closestPoint3.distanceTo(center)<=radius)return true;const plane=triangle.getPlane(planeTemp);const dp=Math.abs(plane.distanceToPoint(center));if(dp<=radius){const pp=plane.projectPoint(center,projectedPointTemp);const cp=triangle.containsPoint(pp);if(cp)return true}return false}}();const DIST_EPSILON=1e-15;function isNearZero(value){return Math.abs(value)new three.Vector3);this.satBounds=new Array(4).fill().map(()=>new SeparatingAxisBounds);this.points=[this.a,this.b,this.c];this.sphere=new three.Sphere;this.plane=new three.Plane;this.needsUpdate=true}intersectsSphere(sphere){return sphereIntersectTriangle(sphere,this)}update(){const a=this.a;const b=this.b;const c=this.c;const points=this.points;const satAxes=this.satAxes;const satBounds=this.satBounds;const axis0=satAxes[0];const sab0=satBounds[0];this.getNormal(axis0);sab0.setFromPoints(axis0,points);const axis1=satAxes[1];const sab1=satBounds[1];axis1.subVectors(a,b);sab1.setFromPoints(axis1,points);const axis2=satAxes[2];const sab2=satBounds[2];axis2.subVectors(b,c);sab2.setFromPoints(axis2,points);const axis3=satAxes[3];const sab3=satBounds[3];axis3.subVectors(c,a);sab3.setFromPoints(axis3,points);this.sphere.setFromPoints(this.points);this.plane.setFromNormalAndCoplanarPoint(axis0,a);this.needsUpdate=false}}ExtendedTriangle.prototype.closestPointToSegment=function(){const point1=new three.Vector3;const point2=new three.Vector3;const edge=new three.Line3;return function distanceToSegment(segment,target1=null,target2=null){const{start,end}=segment;const points=this.points;let distSq;let closestDistanceSq=Infinity;for(let i=0;i<3;i++){const nexti=(i+1)%3;edge.start.copy(points[i]);edge.end.copy(points[nexti]);closestPointsSegmentToSegment(edge,segment,point1,point2);distSq=point1.distanceToSquared(point2);if(distSq1-1e-10){const satBounds1=this.satBounds;const satAxes1=this.satAxes;arr2[0]=other.a;arr2[1]=other.b;arr2[2]=other.c;for(let i=0;i<4;i++){const sb=satBounds1[i];const sa=satAxes1[i];cachedSatBounds.setFromPoints(sa,arr2);if(sb.isSeparated(cachedSatBounds))return false}const satBounds2=other.satBounds;const satAxes2=other.satAxes;arr1[0]=this.a;arr1[1]=this.b;arr1[2]=this.c;for(let i=0;i<4;i++){const sb=satBounds2[i];const sa=satAxes2[i];cachedSatBounds.setFromPoints(sa,arr1);if(sb.isSeparated(cachedSatBounds))return false}for(let i=0;i<4;i++){const sa1=satAxes1[i];for(let i2=0;i2<4;i2++){const sa2=satAxes2[i2];cachedAxis.crossVectors(sa1,sa2);cachedSatBounds.setFromPoints(cachedAxis,arr1);cachedSatBounds2.setFromPoints(cachedAxis,arr2);if(cachedSatBounds.isSeparated(cachedSatBounds2))return false}}if(target){if(!suppressLog){console.warn("ExtendedTriangle.intersectsTriangle: Triangles are coplanar which does not support an output edge. Setting edge to 0, 0, 0.")}target.start.set(0,0,0);target.end.set(0,0,0)}return true}else{const points1=this.points;let found1=false;let count1=0;for(let i=0;i<3;i++){const p=points1[i];const pNext=points1[(i+1)%3];edge.start.copy(p);edge.end.copy(pNext);edge.delta(dir1);const targetPoint=found1?edge1.start:edge1.end;const startIntersects=isNearZero(plane2.distanceToPoint(p));if(isNearZero(plane2.normal.dot(dir1))&&startIntersects){edge1.copy(edge);count1=2;break}const doesIntersect=plane2.intersectLine(edge,targetPoint)||startIntersects;if(doesIntersect&&!isNearZero(targetPoint.distanceTo(pNext))){count1++;if(found1){break}found1=true}}if(count1===1&&other.containsPoint(edge1.end)){if(target){target.start.copy(edge1.end);target.end.copy(edge1.end)}return true}else if(count1!==2){return false}const points2=other.points;let found2=false;let count2=0;for(let i=0;i<3;i++){const p=points2[i];const pNext=points2[(i+1)%3];edge.start.copy(p);edge.end.copy(pNext);edge.delta(dir2);const targetPoint=found2?edge2.start:edge2.end;const startIntersects=isNearZero(plane1.distanceToPoint(p));if(isNearZero(plane1.normal.dot(dir2))&&startIntersects){edge2.copy(edge);count2=2;break}const doesIntersect=plane1.intersectLine(edge,targetPoint)||startIntersects;if(doesIntersect&&!isNearZero(targetPoint.distanceTo(pNext))){count2++;if(found2){break}found2=true}}if(count2===1&&this.containsPoint(edge2.end)){if(target){target.start.copy(edge2.end);target.end.copy(edge2.end)}return true}else if(count2!==2){return false}edge1.delta(dir1);edge2.delta(dir2);if(dir1.dot(dir2)<0){let tmp=edge2.start;edge2.start=edge2.end;edge2.end=tmp}const s1=edge1.start.dot(dir1);const e1=edge1.end.dot(dir1);const s2=edge2.start.dot(dir1);const e2=edge2.end.dot(dir1);const separated1=e10){target.start.copy(edge1.start)}else{target.start.copy(edge2.start)}tempDir.subVectors(edge1.end,edge2.end);if(tempDir.dot(dir1)<0){target.end.copy(edge1.end)}else{target.end.copy(edge2.end)}}return true}}}();ExtendedTriangle.prototype.distanceToPoint=function(){const target=new three.Vector3;return function distanceToPoint(point){this.closestPointToPoint(point,target);return point.distanceTo(target)}}();ExtendedTriangle.prototype.distanceToTriangle=function(){const point=new three.Vector3;const point2=new three.Vector3;const cornerFields=["a","b","c"];const line1=new three.Line3;const line2=new three.Line3;return function distanceToTriangle(other,target1=null,target2=null){const lineTarget=target1||target2?line1:null;if(this.intersectsTriangle(other,lineTarget)){if(target1||target2){if(target1)lineTarget.getCenter(target1);if(target2)lineTarget.getCenter(target2)}return 0}let closestDistanceSq=Infinity;for(let i=0;i<3;i++){let dist;const field=cornerFields[i];const otherVec=other[field];this.closestPointToPoint(otherVec,point);dist=otherVec.distanceToSquared(point);if(distnew three.Vector3);this.satAxes=new Array(3).fill().map(()=>new three.Vector3);this.satBounds=new Array(3).fill().map(()=>new SeparatingAxisBounds);this.alignedSatBounds=new Array(3).fill().map(()=>new SeparatingAxisBounds);this.needsUpdate=false;if(min)this.min.copy(min);if(max)this.max.copy(max);if(matrix)this.matrix.copy(matrix)}set(min,max,matrix){this.min.copy(min);this.max.copy(max);this.matrix.copy(matrix);this.needsUpdate=true}copy(other){this.min.copy(other.min);this.max.copy(other.max);this.matrix.copy(other.matrix);this.needsUpdate=true}}OrientedBox.prototype.update=function(){return function update(){const matrix=this.matrix;const min=this.min;const max=this.max;const points=this.points;for(let x=0;x<=1;x++){for(let y=0;y<=1;y++){for(let z=0;z<=1;z++){const i=(1<<0)*x|(1<<1)*y|(1<<2)*z;const v=points[i];v.x=x?max.x:min.x;v.y=y?max.y:min.y;v.z=z?max.z:min.z;v.applyMatrix4(matrix)}}}const satBounds=this.satBounds;const satAxes=this.satAxes;const minVec=points[0];for(let i=0;i<3;i++){const axis=satAxes[i];const sb=satBounds[i];const index=1<new three.Line3);const segments2=new Array(12).fill().map(()=>new three.Line3);const point1=new three.Vector3;const point2=new three.Vector3;return function distanceToBox(box,threshold=0,target1=null,target2=null){if(this.needsUpdate){this.update()}if(this.intersectsBox(box)){if(target1||target2){box.getCenter(point2);this.closestPointToPoint(point2,point1);box.closestPointToPoint(point1,point2);if(target1)target1.copy(point1);if(target2)target2.copy(point2)}return 0}const threshold2=threshold*threshold;const min=box.min;const max=box.max;const points=this.points;let closestDistanceSq=Infinity;for(let i=0;i<8;i++){const p=points[i];point2.copy(p).clamp(min,max);const dist=p.distanceToSquared(point2);if(dist0){intersection.normal.multiplyScalar(-1)}}const face={a:a,b:b,c:c,normal:new three.Vector3,materialIndex:0};three.Triangle.getNormal(_vA,_vB,_vC,face.normal);intersection.face=face;intersection.faceIndex=a}return intersection}function intersectTri(geo,side,ray,tri,intersections){const triOffset=tri*3;const a=geo.index.getX(triOffset);const b=geo.index.getX(triOffset+1);const c=geo.index.getX(triOffset+2);const{position,normal,uv,uv1}=geo.attributes;const intersection=checkBufferGeometryIntersection(ray,position,normal,uv,uv1,a,b,c,side);if(intersection){intersection.faceIndex=tri;if(intersections)intersections.push(intersection);return intersection}return null}function intersectTris(geo,side,ray,offset,count,intersections){for(let i=offset,end=offset+count;iraycaster.far){return null}else{return hit}}function setTriangle(tri,i,index,pos){const ta=tri.a;const tb=tri.b;const tc=tri.c;let i0=i;let i1=i+1;let i2=i+2;if(index){i0=index.getX(i);i1=index.getX(i+1);i2=index.getX(i+2)}ta.x=pos.getX(i0);ta.y=pos.getY(i0);ta.z=pos.getZ(i0);tb.x=pos.getX(i1);tb.y=pos.getY(i1);tb.z=pos.getZ(i1);tc.x=pos.getX(i2);tc.y=pos.getY(i2);tc.z=pos.getZ(i2)}function iterateOverTriangles(offset,count,geometry,intersectsTriangleFunc,contained,depth,triangle){const index=geometry.index;const pos=geometry.attributes.position;for(let i=offset,l=count+offset;i=start&&firstVertexIndex=0;let c1,c2;if(leftToRight){c1=LEFT_NODE(nodeIndex32);c2=RIGHT_NODE(nodeIndex32,uint32Array)}else{c1=RIGHT_NODE(nodeIndex32,uint32Array);c2=LEFT_NODE(nodeIndex32)}const c1Intersection=intersectRay(c1,float32Array,ray,boxIntersection);const c1Result=c1Intersection?raycastFirst(c1,geometry,side,ray):null;if(c1Result){const point=c1Result.point[xyzAxis];const isOutside=leftToRight?point<=float32Array[c2+splitAxis]:point>=float32Array[c2+splitAxis+3];if(isOutside){return c1Result}}const c2Intersection=intersectRay(c2,float32Array,ray,boxIntersection);const c2Result=c2Intersection?raycastFirst(c2,geometry,side,ray):null;if(c1Result&&c2Result){return c1Result.distance<=c2Result.distance?c1Result:c2Result}else{return c1Result||c2Result||null}}}const shapecast=function(){let _box1,_box2;const boxStack=[];const boxPool=new PrimitivePool(()=>new three.Box3);return function shapecast(...args){_box1=boxPool.getPrimitive();_box2=boxPool.getPrimitive();boxStack.push(_box1,_box2);const result=shapecastTraverse(...args);boxPool.releasePrimitive(_box1);boxPool.releasePrimitive(_box2);boxStack.pop();boxStack.pop();const length=boxStack.length;if(length>0){_box2=boxStack[length-1];_box1=boxStack[length-2]}return result};function shapecastTraverse(nodeIndex32,geometry,intersectsBoundsFunc,intersectsRangeFunc,nodeScoreFunc=null,nodeIndexByteOffset=0,depth=0){function getLeftOffset(nodeIndex32){let nodeIndex16=nodeIndex32*2,uint16Array=_uint16Array,uint32Array=_uint32Array;while(!IS_LEAF(nodeIndex16,uint16Array)){nodeIndex32=LEFT_NODE(nodeIndex32);nodeIndex16=nodeIndex32*2}return OFFSET(nodeIndex32,uint32Array)}function getRightEndOffset(nodeIndex32){let nodeIndex16=nodeIndex32*2,uint16Array=_uint16Array,uint32Array=_uint32Array;while(!IS_LEAF(nodeIndex16,uint16Array)){nodeIndex32=RIGHT_NODE(nodeIndex32,uint32Array);nodeIndex16=nodeIndex32*2}return OFFSET(nodeIndex32,uint32Array)+COUNT(nodeIndex16,uint16Array)}let nodeIndex16=nodeIndex32*2,float32Array=_float32Array,uint16Array=_uint16Array,uint32Array=_uint32Array;const isLeaf=IS_LEAF(nodeIndex16,uint16Array);if(isLeaf){const offset=OFFSET(nodeIndex32,uint32Array);const count=COUNT(nodeIndex16,uint16Array);arrayToBox(BOUNDING_DATA_INDEX(nodeIndex32),float32Array,_box1);return intersectsRangeFunc(offset,count,false,depth,nodeIndexByteOffset+nodeIndex32,_box1)}else{const left=LEFT_NODE(nodeIndex32);const right=RIGHT_NODE(nodeIndex32,uint32Array);let c1=left;let c2=right;let score1,score2;let box1,box2;if(nodeScoreFunc){box1=_box1;box2=_box2;arrayToBox(BOUNDING_DATA_INDEX(c1),float32Array,box1);arrayToBox(BOUNDING_DATA_INDEX(c2),float32Array,box2);score1=nodeScoreFunc(box1);score2=nodeScoreFunc(box2);if(score2obb2.intersectsBox(box),intersectsTriangle:tri=>{tri.a.applyMatrix4(geometryToBvh);tri.b.applyMatrix4(geometryToBvh);tri.c.applyMatrix4(geometryToBvh);tri.needsUpdate=true;for(let i=offset*3,l=(count+offset)*3;inew ExtendedTriangle);class MeshBVH{static serialize(bvh,options={}){if(options.isBufferGeometry){console.warn("MeshBVH.serialize: The arguments for the function have changed. See documentation for new signature.");return MeshBVH.serialize(arguments[0],{cloneBuffers:arguments[2]===undefined?true:arguments[2]})}options={cloneBuffers:true,...options};const geometry=bvh.geometry;const rootData=bvh._roots;const indexAttribute=geometry.getIndex();let result;if(options.cloneBuffers){result={roots:rootData.map(root=>root.slice()),index:indexAttribute.array.slice()}}else{result={roots:rootData,index:indexAttribute.array}}return result}static deserialize(data,geometry,options={}){if(typeof options==="boolean"){console.warn("MeshBVH.deserialize: The arguments for the function have changed. See documentation for new signature.");return MeshBVH.deserialize(arguments[0],arguments[1],{setIndex:arguments[2]===undefined?true:arguments[2]})}options={setIndex:true,...options};const{index,roots}=data;const bvh=new MeshBVH(geometry,{...options,[SKIP_GENERATION]:true});bvh._roots=roots;if(options.setIndex){const indexAttribute=geometry.getIndex();if(indexAttribute===null){const newIndex=new three.BufferAttribute(data.index,1,false);geometry.setIndex(newIndex)}else if(indexAttribute.array!==index){indexAttribute.array.set(index);indexAttribute.needsUpdate=true}}return bvh}constructor(geometry,options={}){if(!geometry.isBufferGeometry){throw new Error("MeshBVH: Only BufferGeometries are supported.")}else if(geometry.index&&geometry.index.isInterleavedBufferAttribute){throw new Error("MeshBVH: InterleavedBufferAttribute is not supported for the index attribute.")}options=Object.assign({strategy:CENTER,maxDepth:40,maxLeafTris:10,verbose:true,useSharedArrayBuffer:false,setBoundingBox:true,onProgress:null,[SKIP_GENERATION]:false},options);if(options.useSharedArrayBuffer&&typeof SharedArrayBuffer==="undefined"){throw new Error("MeshBVH: SharedArrayBuffer is not available.")}this._roots=null;if(!options[SKIP_GENERATION]){this._roots=buildPackedTree(geometry,options);if(!geometry.boundingBox&&options.setBoundingBox){geometry.boundingBox=this.getBoundingBox(new three.Box3)}}this.geometry=geometry}refit(nodeIndices=null){if(nodeIndices&&Array.isArray(nodeIndices)){nodeIndices=new Set(nodeIndices)}const geometry=this.geometry;const indexArr=geometry.index.array;const posAttr=geometry.attributes.position;let buffer,uint32Array,uint16Array,float32Array;let byteOffset=0;const roots=this._roots;for(let i=0,l=roots.length;imaxx)maxx=x;if(ymaxy)maxy=y;if(zmaxz)maxz=z}if(float32Array[node32Index+0]!==minx||float32Array[node32Index+1]!==miny||float32Array[node32Index+2]!==minz||float32Array[node32Index+3]!==maxx||float32Array[node32Index+4]!==maxy||float32Array[node32Index+5]!==maxz){float32Array[node32Index+0]=minx;float32Array[node32Index+1]=miny;float32Array[node32Index+2]=minz;float32Array[node32Index+3]=maxx;float32Array[node32Index+4]=maxy;float32Array[node32Index+5]=maxz;return true}else{return false}}else{const left=node32Index+8;const right=uint32Array[node32Index+6];const offsetLeft=left+byteOffset;const offsetRight=right+byteOffset;let forceChildren=force;let includesLeft=false;let includesRight=false;if(nodeIndices){if(!forceChildren){includesLeft=nodeIndices.has(offsetLeft);includesRight=nodeIndices.has(offsetRight);forceChildren=!includesLeft&&!includesRight}}else{includesLeft=true;includesRight=true}const traverseLeft=forceChildren||includesLeft;const traverseRight=forceChildren||includesRight;let leftChange=false;if(traverseLeft){leftChange=_traverse(left,byteOffset,forceChildren)}let rightChange=false;if(traverseRight){rightChange=_traverse(right,byteOffset,forceChildren)}const didChange=leftChange||rightChange;if(didChange){for(let i=0;i<3;i++){const lefti=left+i;const righti=right+i;const minLeftValue=float32Array[lefti];const maxLeftValue=float32Array[lefti+3];const minRightValue=float32Array[righti];const maxRightValue=float32Array[righti+3];float32Array[node32Index+i]=minLeftValuemaxRightValue?maxLeftValue:maxRightValue}}return didChange}}}traverse(callback,rootIndex=0){const buffer=this._roots[rootIndex];const uint32Array=new Uint32Array(buffer);const uint16Array=new Uint16Array(buffer);_traverse(0);function _traverse(node32Index,depth=0){const node16Index=node32Index*2;const isLeaf=uint16Array[node16Index+15]===IS_LEAFNODE_FLAG;if(isLeaf){const offset=uint32Array[node32Index+6];const count=uint16Array[node16Index+14];callback(depth,isLeaf,new Float32Array(buffer,node32Index*4,6),offset,count)}else{const left=node32Index+BYTES_PER_NODE/4;const right=uint32Array[node32Index+6];const splitAxis=uint32Array[node32Index+7];const stopTraversal=callback(depth,isLeaf,new Float32Array(buffer,node32Index*4,6),splitAxis);if(!stopTraversal){_traverse(left,depth+1);_traverse(right,depth+1)}}}}raycast(ray,materialOrSide=three.FrontSide){const roots=this._roots;const geometry=this.geometry;const intersects=[];const isMaterial=materialOrSide.isMaterial;const isArrayMaterial=Array.isArray(materialOrSide);const groups=geometry.groups;const side=isMaterial?materialOrSide.side:materialOrSide;for(let i=0,l=roots.length;i{const i3=index*3;return originalTriangleFunc(tri,i3,i3+1,i3+2,contained,depth)}}callbacks={boundsTraverseOrder:_orderNodesFunc,intersectsBounds:callbacks,intersectsTriangle:_intersectsTriangleFunc,intersectsRange:null};console.warn("MeshBVH: Shapecast function signature has changed and now takes an object of callbacks as a second argument. See docs for new signature.")}const triangle=trianglePool.getPrimitive();let{boundsTraverseOrder,intersectsBounds,intersectsRange,intersectsTriangle}=callbacks;if(intersectsRange&&intersectsTriangle){const originalIntersectsRange=intersectsRange;intersectsRange=(offset,count,contained,depth,nodeIndex)=>{if(!originalIntersectsRange(offset,count,contained,depth,nodeIndex)){return iterateOverTriangles(offset,count,geometry,intersectsTriangle,contained,depth,triangle)}return true}}else if(!intersectsRange){if(intersectsTriangle){intersectsRange=(offset,count,contained,depth)=>{return iterateOverTriangles(offset,count,geometry,intersectsTriangle,contained,depth,triangle)}}else{intersectsRange=(offset,count,contained)=>{return contained}}}let result=false;let byteOffset=0;for(const root of this._roots){setBuffer(root);result=shapecast(0,geometry,intersectsBounds,intersectsRange,boundsTraverseOrder,byteOffset);clearBuffer();if(result){break}byteOffset+=root.byteLength}trianglePool.releasePrimitive(triangle);return result}bvhcast(otherBvh,matrixToLocal,callbacks){let{intersectsRanges,intersectsTriangles}=callbacks;const indexAttr=this.geometry.index;const positionAttr=this.geometry.attributes.position;const otherIndexAttr=otherBvh.geometry.index;const otherPositionAttr=otherBvh.geometry.attributes.position;tempMatrix.copy(matrixToLocal).invert();const triangle=trianglePool.getPrimitive();const triangle2=trianglePool.getPrimitive();if(intersectsTriangles){function iterateOverDoubleTriangles(offset1,count1,offset2,count2,depth1,index1,depth2,index2){for(let i2=offset2,l2=offset2+count2;i2aabb2.intersectsBox(box),intersectsRange:(offset1,count1,contained,depth1,nodeIndex1,box)=>{aabb.copy(box);aabb.applyMatrix4(tempMatrix);return otherBvh.shapecast({intersectsBounds:box=>aabb.intersectsBox(box),intersectsRange:(offset2,count2,contained,depth2,nodeIndex2)=>{return intersectsRanges(offset1,count1,offset2,count2,depth1,nodeIndex1,depth2,nodeIndex2)}})}});trianglePool.releasePrimitive(triangle);trianglePool.releasePrimitive(triangle2);return result}intersectsBox(box,boxToMesh){obb.set(box.min,box.max,boxToMesh);obb.needsUpdate=true;return this.shapecast({intersectsBounds:box=>obb.intersectsBox(box),intersectsTriangle:tri=>obb.intersectsTriangle(tri)})}intersectsSphere(sphere){return this.shapecast({intersectsBounds:box=>sphere.intersectsBox(box),intersectsTriangle:tri=>tri.intersectsSphere(sphere)})}closestPointToGeometry(otherGeometry,geometryToBvh,target1={},target2={},minThreshold=0,maxThreshold=Infinity){if(!otherGeometry.boundingBox){otherGeometry.computeBoundingBox()}obb.set(otherGeometry.boundingBox.min,otherGeometry.boundingBox.max,geometryToBvh);obb.needsUpdate=true;const geometry=this.geometry;const pos=geometry.attributes.position;const index=geometry.index;const otherPos=otherGeometry.attributes.position;const otherIndex=otherGeometry.index;const triangle=trianglePool.getPrimitive();const triangle2=trianglePool.getPrimitive();let tempTarget1=temp1;let tempTargetDest1=temp2;let tempTarget2=null;let tempTargetDest2=null;if(target2){tempTarget2=temp3;tempTargetDest2=temp4}let closestDistance=Infinity;let closestDistanceTriIndex=null;let closestDistanceOtherTriIndex=null;tempMatrix.copy(geometryToBvh).invert();obb2.matrix.copy(tempMatrix);this.shapecast({boundsTraverseOrder:box=>{return obb.distanceToBox(box)},intersectsBounds:(box,isLeaf,score)=>{if(score{if(otherGeometry.boundsTree){return otherGeometry.boundsTree.shapecast({boundsTraverseOrder:box=>{return obb2.distanceToBox(box)},intersectsBounds:(box,isLeaf,score)=>{return score{for(let i2=otherOffset*3,l2=(otherOffset+otherCount)*3;i2{temp.copy(point).clamp(box.min,box.max);return temp.distanceToSquared(point)},intersectsBounds:(box,isLeaf,score)=>{return score{tri.closestPointToPoint(point,temp);const distSq=point.distanceToSquared(temp);if(distSq{arrayToBox(0,new Float32Array(buffer),tempBox);target.union(tempBox)});return target}}const boundingBox=new three.Box3;class MeshBVHRootVisualizer extends three.Object3D{get isMesh(){return!this.displayEdges}get isLineSegments(){return this.displayEdges}get isLine(){return this.displayEdges}constructor(mesh,material,depth=10,group=0){super();this.material=material;this.geometry=new three.BufferGeometry;this.name="MeshBVHRootVisualizer";this.depth=depth;this.displayParents=false;this.mesh=mesh;this.displayEdges=true;this._group=group}raycast(){}update(){const geometry=this.geometry;const boundsTree=this.mesh.geometry.boundsTree;const group=this._group;geometry.dispose();this.visible=false;if(boundsTree){const targetDepth=this.depth-1;const displayParents=this.displayParents;let boundsCount=0;boundsTree.traverse((depth,isLeaf)=>{if(depth===targetDepth||isLeaf){boundsCount++;return true}else if(displayParents){boundsCount++}},group);let posIndex=0;const positionArray=new Float32Array(8*3*boundsCount);boundsTree.traverse((depth,isLeaf,boundingData)=>{const terminate=depth===targetDepth||isLeaf;if(terminate||displayParents){arrayToBox(0,boundingData,boundingBox);const{min,max}=boundingBox;for(let x=-1;x<=1;x+=2){const xVal=x<0?min.x:max.x;for(let y=-1;y<=1;y+=2){const yVal=y<0?min.y:max.y;for(let z=-1;z<=1;z+=2){const zVal=z<0?min.z:max.z;positionArray[posIndex+0]=xVal;positionArray[posIndex+1]=yVal;positionArray[posIndex+2]=zVal;posIndex+=3}}}return terminate}},group);let indexArray;let indices;if(this.displayEdges){indices=new Uint8Array([0,4,1,5,2,6,3,7,0,2,1,3,4,6,5,7,0,1,2,3,4,5,6,7])}else{indices=new Uint8Array([0,1,2,2,1,3,4,6,5,6,7,5,1,4,5,0,4,1,2,3,6,3,7,6,0,2,4,2,6,4,1,5,3,3,5,7])}if(positionArray.length>65535){indexArray=new Uint32Array(indices.length*boundsCount)}else{indexArray=new Uint16Array(indices.length*boundsCount)}const indexLength=indices.length;for(let i=0;itotalRoots){const root=this._roots.pop();root.geometry.dispose();this.remove(root)}for(let i=0;i=this._roots.length){const root=new MeshBVHRootVisualizer(this.mesh,this.edgeMaterial,this.depth,i);this.add(root);this._roots.push(root)}const root=this._roots[i];root.depth=this.depth;root.mesh=this.mesh;root.displayParents=this.displayParents;root.displayEdges=this.displayEdges;root.material=this.displayEdges?this.edgeMaterial:this.meshMaterial;root.update()}}updateMatrixWorld(...args){this.position.copy(this.mesh.position);this.rotation.copy(this.mesh.rotation);this.scale.copy(this.mesh.scale);super.updateMatrixWorld(...args)}copy(source){this.depth=source.depth;this.mesh=source.mesh}clone(){return new MeshBVHVisualizer(this.mesh,this.depth)}dispose(){this.edgeMaterial.dispose();this.meshMaterial.dispose();const children=this.children;for(let i=0,l=children.length;i{const l0=boundingData[0+3]-boundingData[0];const l1=boundingData[1+3]-boundingData[1];const l2=boundingData[2+3]-boundingData[2];const surfaceArea=2*(l0*l1+l1*l2+l2*l0);result.nodeCount++;if(isLeaf){result.leafNodeCount++;result.depth.min=Math.min(depth,result.depth.min);result.depth.max=Math.max(depth,result.depth.max);result.tris.min=Math.min(count,result.tris.min);result.tris.max=Math.max(count,result.tris.max);result.surfaceAreaScore+=surfaceArea*TRIANGLE_INTERSECT_COST*count}else{result.splits[offsetOrSplit]++;result.surfaceAreaScore+=surfaceArea*TRAVERSAL_COST}},group);if(result.tris.min===Infinity){result.tris.min=0;result.tris.max=0}if(result.depth.min===Infinity){result.depth.min=0;result.depth.max=0}return result}function getBVHExtremes(bvh){return bvh._roots.map((root,i)=>getRootExtremes(bvh,i))}function estimateMemoryInBytes(obj){const traversed=new Set;const stack=[obj];let bytes=0;while(stack.length){const curr=stack.pop();if(traversed.has(curr)){continue}traversed.add(curr);for(let key in curr){if(!curr.hasOwnProperty(key)){continue}bytes+=getPrimitiveSize(key);const value=curr[key];if(value&&(typeof value==="object"||typeof value==="function")){if(isTypedArray(value)){bytes+=value.byteLength}else if(value instanceof ArrayBuffer){bytes+=value.byteLength}else{stack.push(value)}}else{bytes+=getPrimitiveSize(value)}}}return bytes}function validateBounds(bvh){const geometry=bvh.geometry;const depthStack=[];const index=geometry.index;const position=geometry.getAttribute("position");let passes=true;bvh.traverse((depth,isLeaf,boundingData,offset,count)=>{const info={depth,isLeaf,boundingData,offset,count};depthStack[depth]=info;arrayToBox(0,boundingData,_box1);const parent=depthStack[depth-1];if(isLeaf){for(let i=offset*3,l=(offset+count)*3;i{const info={bounds:arrayToBox(0,boundingData,new three.Box3)};if(isLeaf){info.count=count;info.offset=offset}else{info.left=null;info.right=null}depthStack[depth]=info;const parent=depthStack[depth-1];if(parent){if(parent.left===null){parent.left=info}else{parent.right=info}}});return depthStack[0]}const ray=new three.Ray;const tmpInverseMatrix=new three.Matrix4;const origMeshRaycastFunc=three.Mesh.prototype.raycast;function acceleratedRaycast(raycaster,intersects){if(this.geometry.boundsTree){if(this.material===undefined)return;tmpInverseMatrix.copy(this.matrixWorld).invert();ray.copy(raycaster.ray).applyMatrix4(tmpInverseMatrix);const bvh=this.geometry.boundsTree;if(raycaster.firstHitOnly===true){const hit=convertRaycastIntersect(bvh.raycastFirst(ray,this.material),this,raycaster);if(hit){intersects.push(hit)}}else{const hits=bvh.raycast(ray,this.material);for(let i=0,l=hits.length;i=2){dataArray[ii+1]=attr.getY(i)/normalizeValue}if(itemSize>=3){dataArray[ii+2]=attr.getZ(i)/normalizeValue;if(finalStride===4){dataArray[ii+3]=1}}if(itemSize>=4){dataArray[ii+3]=attr.getW(i)/normalizeValue}}attr.normalized=originalNormalized;this.internalFormat=internalFormat;this.format=format;this.type=type;this.image.width=dimension;this.image.height=dimension;this.image.data=dataArray;this.needsUpdate=true;this.dispose();attr.itemSize=originalItemSize;attr.count=originalCount}}class UIntVertexAttributeTexture extends VertexAttributeTexture{constructor(){super();this._forcedType=three.UnsignedIntType}}class IntVertexAttributeTexture extends VertexAttributeTexture{constructor(){super();this._forcedType=three.IntType}}class FloatVertexAttributeTexture extends VertexAttributeTexture{constructor(){super();this._forcedType=three.FloatType}}function bvhToTextures(bvh,boundsTexture,contentsTexture){const roots=bvh._roots;if(roots.length!==1){throw new Error("MeshBVHUniformStruct: Multi-root BVHs not supported.")}const root=roots[0];const uint16Array=new Uint16Array(root);const uint32Array=new Uint32Array(root);const float32Array=new Float32Array(root);const nodeCount=root.byteLength/BYTES_PER_NODE;const boundsDimension=2*Math.ceil(Math.sqrt(nodeCount/2));const boundsArray=new Float32Array(4*boundsDimension*boundsDimension);const contentsDimension=Math.ceil(Math.sqrt(nodeCount));const contentsArray=new Uint32Array(2*contentsDimension*contentsDimension);for(let i=0;i= dist ? dist : INFINITY; } bool intersectsTriangle( vec3 rayOrigin, vec3 rayDirection, vec3 a, vec3 b, vec3 c, out vec3 barycoord, out vec3 norm, out float dist, out float side ) { // https://stackoverflow.com/questions/42740765/intersection-between-line-and-triangle-in-3d vec3 edge1 = b - a; vec3 edge2 = c - a; norm = cross( edge1, edge2 ); float det = - dot( rayDirection, norm ); float invdet = 1.0 / det; vec3 AO = rayOrigin - a; vec3 DAO = cross( AO, rayDirection ); vec4 uvt; uvt.x = dot( edge2, DAO ) * invdet; uvt.y = - dot( edge1, DAO ) * invdet; uvt.z = dot( AO, norm ) * invdet; uvt.w = 1.0 - uvt.x - uvt.y; // set the hit information barycoord = uvt.wxy; // arranged in A, B, C order dist = uvt.z; side = sign( det ); norm = side * normalize( norm ); // add an epsilon to avoid misses between triangles uvt += vec4( TRI_INTERSECT_EPSILON ); return all( greaterThanEqual( uvt, vec4( 0.0 ) ) ); } bool intersectTriangles( BVH bvh, vec3 rayOrigin, vec3 rayDirection, uint offset, uint count, inout float minDistance, // output variables out uvec4 faceIndices, out vec3 faceNormal, out vec3 barycoord, out float side, out float dist ) { bool found = false; vec3 localBarycoord, localNormal; float localDist, localSide; for ( uint i = offset, l = offset + count; i < l; i ++ ) { uvec3 indices = uTexelFetch1D( bvh.index, i ).xyz; vec3 a = texelFetch1D( bvh.position, indices.x ).rgb; vec3 b = texelFetch1D( bvh.position, indices.y ).rgb; vec3 c = texelFetch1D( bvh.position, indices.z ).rgb; if ( intersectsTriangle( rayOrigin, rayDirection, a, b, c, localBarycoord, localNormal, localDist, localSide ) && localDist < minDistance ) { found = true; minDistance = localDist; faceIndices = uvec4( indices.xyz, i ); faceNormal = localNormal; side = localSide; barycoord = localBarycoord; dist = localDist; } } return found; } float intersectsBVHNodeBounds( vec3 rayOrigin, vec3 rayDirection, BVH bvh, uint currNodeIndex ) { vec3 boundsMin = texelFetch1D( bvh.bvhBounds, currNodeIndex * 2u + 0u ).xyz; vec3 boundsMax = texelFetch1D( bvh.bvhBounds, currNodeIndex * 2u + 1u ).xyz; return intersectsBounds( rayOrigin, rayDirection, boundsMin, boundsMax ); } bool bvhIntersectFirstHit( BVH bvh, vec3 rayOrigin, vec3 rayDirection, // output variables out uvec4 faceIndices, out vec3 faceNormal, out vec3 barycoord, out float side, out float dist ) { // stack needs to be twice as long as the deepest tree we expect because // we push both the left and right child onto the stack every traversal int ptr = 0; uint stack[ 60 ]; stack[ 0 ] = 0u; float triangleDistance = 1e20; bool found = false; while ( ptr > - 1 && ptr < 60 ) { uint currNodeIndex = stack[ ptr ]; ptr --; // check if we intersect the current bounds float boundsHitDistance = intersectsBVHNodeBounds( rayOrigin, rayDirection, bvh, currNodeIndex ); if ( boundsHitDistance == INFINITY || boundsHitDistance > triangleDistance ) { continue; } uvec2 boundsInfo = uTexelFetch1D( bvh.bvhContents, currNodeIndex ).xy; bool isLeaf = bool( boundsInfo.x & 0xffff0000u ); if ( isLeaf ) { uint count = boundsInfo.x & 0x0000ffffu; uint offset = boundsInfo.y; found = intersectTriangles( bvh, rayOrigin, rayDirection, offset, count, triangleDistance, faceIndices, faceNormal, barycoord, side, dist ) || found; } else { uint leftIndex = currNodeIndex + 1u; uint splitAxis = boundsInfo.x & 0x0000ffffu; uint rightIndex = boundsInfo.y; bool leftToRight = rayDirection[ splitAxis ] >= 0.0; uint c1 = leftToRight ? leftIndex : rightIndex; uint c2 = leftToRight ? rightIndex : leftIndex; // set c2 in the stack so we traverse it later. We need to keep track of a pointer in // the stack while we traverse. The second pointer added is the one that will be // traversed first ptr ++; stack[ ptr ] = c2; ptr ++; stack[ ptr ] = c1; } } return found; } `;const shaderDistanceFunction=` float dot2( in vec3 v ) { return dot( v, v ); } // https://www.shadertoy.com/view/ttfGWl vec3 closestPointToTriangle( vec3 p, vec3 v0, vec3 v1, vec3 v2, out vec3 barycoord ) { vec3 v10 = v1 - v0; vec3 v21 = v2 - v1; vec3 v02 = v0 - v2; vec3 p0 = p - v0; vec3 p1 = p - v1; vec3 p2 = p - v2; vec3 nor = cross( v10, v02 ); // method 2, in barycentric space vec3 q = cross( nor, p0 ); float d = 1.0 / dot2( nor ); float u = d * dot( q, v02 ); float v = d * dot( q, v10 ); float w = 1.0 - u - v; if( u < 0.0 ) { w = clamp( dot( p2, v02 ) / dot2( v02 ), 0.0, 1.0 ); u = 0.0; v = 1.0 - w; } else if( v < 0.0 ) { u = clamp( dot( p0, v10 ) / dot2( v10 ), 0.0, 1.0 ); v = 0.0; w = 1.0 - u; } else if( w < 0.0 ) { v = clamp( dot( p1, v21 ) / dot2( v21 ), 0.0, 1.0 ); w = 0.0; u = 1.0-v; } barycoord = vec3( u, v, w ); return u * v1 + v * v2 + w * v0; } float distanceToTriangles( BVH bvh, vec3 point, uint offset, uint count, float closestDistanceSquared, out uvec4 faceIndices, out vec3 faceNormal, out vec3 barycoord, out float side, out vec3 outPoint ) { bool found = false; uvec3 localIndices; vec3 localBarycoord; vec3 localNormal; for ( uint i = offset, l = offset + count; i < l; i ++ ) { uvec3 indices = uTexelFetch1D( bvh.index, i ).xyz; vec3 a = texelFetch1D( bvh.position, indices.x ).rgb; vec3 b = texelFetch1D( bvh.position, indices.y ).rgb; vec3 c = texelFetch1D( bvh.position, indices.z ).rgb; // get the closest point and barycoord vec3 closestPoint = closestPointToTriangle( point, a, b, c, localBarycoord ); vec3 delta = point - closestPoint; float sqDist = dot2( delta ); if ( sqDist < closestDistanceSquared ) { // set the output results closestDistanceSquared = sqDist; faceIndices = uvec4( indices.xyz, i ); faceNormal = normalize( cross( a - b, b - c ) ); barycoord = localBarycoord; outPoint = closestPoint; side = sign( dot( faceNormal, delta ) ); } } return closestDistanceSquared; } float distanceSqToBounds( vec3 point, vec3 boundsMin, vec3 boundsMax ) { vec3 clampedPoint = clamp( point, boundsMin, boundsMax ); vec3 delta = point - clampedPoint; return dot( delta, delta ); } float distanceSqToBVHNodeBoundsPoint( vec3 point, BVH bvh, uint currNodeIndex ) { vec3 boundsMin = texelFetch1D( bvh.bvhBounds, currNodeIndex * 2u + 0u ).xyz; vec3 boundsMax = texelFetch1D( bvh.bvhBounds, currNodeIndex * 2u + 1u ).xyz; return distanceSqToBounds( point, boundsMin, boundsMax ); } float bvhClosestPointToPoint( BVH bvh, vec3 point, // output variables out uvec4 faceIndices, out vec3 faceNormal, out vec3 barycoord, out float side, out vec3 outPoint ) { // stack needs to be twice as long as the deepest tree we expect because // we push both the left and right child onto the stack every traversal int ptr = 0; uint stack[ 60 ]; stack[ 0 ] = 0u; float closestDistanceSquared = pow( 100000.0, 2.0 ); bool found = false; while ( ptr > - 1 && ptr < 60 ) { uint currNodeIndex = stack[ ptr ]; ptr --; // check if we intersect the current bounds float boundsHitDistance = distanceSqToBVHNodeBoundsPoint( point, bvh, currNodeIndex ); if ( boundsHitDistance > closestDistanceSquared ) { continue; } uvec2 boundsInfo = uTexelFetch1D( bvh.bvhContents, currNodeIndex ).xy; bool isLeaf = bool( boundsInfo.x & 0xffff0000u ); if ( isLeaf ) { uint count = boundsInfo.x & 0x0000ffffu; uint offset = boundsInfo.y; closestDistanceSquared = distanceToTriangles( bvh, point, offset, count, closestDistanceSquared, // outputs faceIndices, faceNormal, barycoord, side, outPoint ); } else { uint leftIndex = currNodeIndex + 1u; uint splitAxis = boundsInfo.x & 0x0000ffffu; uint rightIndex = boundsInfo.y; bool leftToRight = distanceSqToBVHNodeBoundsPoint( point, bvh, leftIndex ) < distanceSqToBVHNodeBoundsPoint( point, bvh, rightIndex );//rayDirection[ splitAxis ] >= 0.0; uint c1 = leftToRight ? leftIndex : rightIndex; uint c2 = leftToRight ? rightIndex : leftIndex; // set c2 in the stack so we traverse it later. We need to keep track of a pointer in // the stack while we traverse. The second pointer added is the one that will be // traversed first ptr ++; stack[ ptr ] = c2; ptr ++; stack[ ptr ] = c1; } } return sqrt( closestDistanceSquared ); } `;const _positionVector=new three.Vector3;const _normalVector=new three.Vector3;const _tangentVector=new three.Vector3;const _tangentVector4=new three.Vector4;const _morphVector=new three.Vector3;const _temp=new three.Vector3;const _skinIndex=new three.Vector4;const _skinWeight=new three.Vector4;const _matrix=new three.Matrix4;const _boneMatrix=new three.Matrix4;function validateAttributes(attr1,attr2){if(!attr1&&!attr2){return}const sameCount=attr1.count===attr2.count;const sameNormalized=attr1.normalized===attr2.normalized;const sameType=attr1.array.constructor===attr2.array.constructor;const sameItemSize=attr1.itemSize===attr2.itemSize;if(!sameCount||!sameNormalized||!sameType||!sameItemSize){throw new Error}}function createAttributeClone(attr,countOverride=null){const cons=attr.array.constructor;const normalized=attr.normalized;const itemSize=attr.itemSize;const count=countOverride===null?attr.count:countOverride;return new three.BufferAttribute(new cons(itemSize*count),itemSize,normalized)}function copyAttributeContents(attr,target,targetOffset=0){if(attr.isInterleavedBufferAttribute){const itemSize=attr.itemSize;for(let i=0,l=attr.count;i=2)target.setY(io,attr.getY(i));if(itemSize>=3)target.setZ(io,attr.getZ(i));if(itemSize>=4)target.setW(io,attr.getW(i))}}else{const array=target.array;const cons=array.constructor;const byteOffset=array.BYTES_PER_ELEMENT*attr.itemSize*targetOffset;const temp=new cons(array.buffer,byteOffset,attr.array.length);temp.set(attr.array)}}function addScaledMatrix(target,matrix,scale){const targetArray=target.elements;const matrixArray=matrix.elements;for(let i=0,l=matrixArray.length;i{object.traverseVisible(c=>{if(c.isMesh){finalMeshes.push(c)}})});this.meshes=finalMeshes;this.useGroups=true;this.applyWorldTransforms=true;this.attributes=["position","normal","color","tangent","uv","uv2"];this._intermediateGeometry=new Array(finalMeshes.length).fill().map(()=>new three.BufferGeometry);this._diffMap=new WeakMap}getMaterials(){const materials=[];this.meshes.forEach(mesh=>{if(Array.isArray(mesh.material)){materials.push(...mesh.material)}else{materials.push(mesh.material)}});return materials}generate(targetGeometry=new three.BufferGeometry){let skipAttributes=[];const{meshes,useGroups,_intermediateGeometry,_diffMap}=this;for(let i=0,l=meshes.length;i96?ch-97:ch>64?ch-39:ch+4}var write=0;for(var i=0;i0){return decodeWorker(count,size,source,decoders[mode],filters[filter])}return ready.then(function(){var target=new Uint8Array(count*size);decode(instance.exports[decoders[mode]],target,count,size,source,instance.exports[filters[filter]]);return target})}}}();(function(t,e){e(t.THREE=t.THREE||{})})(this,function(THREE){var Color=THREE.Color,Vector3=THREE.Vector3;class Face3{constructor(a,b,c,normal,color,materialIndex=0){this.a=a;this.b=b;this.c=c;this.normal=normal&&normal.isVector3?normal:new Vector3;this.vertexNormals=Array.isArray(normal)?normal:[];this.color=color&&color.isColor?color:new Color;this.vertexColors=Array.isArray(color)?color:[];this.materialIndex=materialIndex}clone(){return new this.constructor().copy(this)}copy(source){this.a=source.a;this.b=source.b;this.c=source.c;this.normal.copy(source.normal);this.color.copy(source.color);this.materialIndex=source.materialIndex;for(let i=0,il=source.vertexNormals.length;i0){for(let i=0;i0){this.normalsNeedUpdate=true}}computeFlatVertexNormals(){this.computeFaceNormals();for(let f=0,fl=this.faces.length;f0){this.normalsNeedUpdate=true}}computeMorphNormals(){for(let f=0,fl=this.faces.length;f=0;i--){const idx=faceIndicesToRemove[i];this.faces.splice(idx,1);for(let j=0,jl=this.faceVertexUvs.length;j0;const hasFaceVertexNormal=face.vertexNormals.length>0;const hasFaceColor=face.color.r!==1||face.color.g!==1||face.color.b!==1;const hasFaceVertexColor=face.vertexColors.length>0;let faceType=0;faceType=setBit(faceType,0,0);faceType=setBit(faceType,1,hasMaterial);faceType=setBit(faceType,2,hasFaceUv);faceType=setBit(faceType,3,hasFaceVertexUv);faceType=setBit(faceType,4,hasFaceNormal);faceType=setBit(faceType,5,hasFaceVertexNormal);faceType=setBit(faceType,6,hasFaceColor);faceType=setBit(faceType,7,hasFaceVertexColor);faces.push(faceType);faces.push(face.a,face.b,face.c);faces.push(face.materialIndex);if(hasFaceVertexUv){const faceVertexUvs=this.faceVertexUvs[0][i];faces.push(getUvIndex(faceVertexUvs[0]),getUvIndex(faceVertexUvs[1]),getUvIndex(faceVertexUvs[2]))}if(hasFaceNormal){faces.push(getNormalIndex(face.normal))}if(hasFaceVertexNormal){const vertexNormals=face.vertexNormals;faces.push(getNormalIndex(vertexNormals[0]),getNormalIndex(vertexNormals[1]),getNormalIndex(vertexNormals[2]))}if(hasFaceColor){faces.push(getColorIndex(face.color))}if(hasFaceVertexColor){const vertexColors=face.vertexColors;faces.push(getColorIndex(vertexColors[0]),getColorIndex(vertexColors[1]),getColorIndex(vertexColors[2]))}}function setBit(value,position,enabled){return enabled?value|1<0)data.data.colors=colors;if(uvs.length>0)data.data.uvs=[uvs];data.data.faces=faces;return data}clone(){return new Geometry().copy(this)}copy(source){this.vertices=[];this.colors=[];this.faces=[];this.faceVertexUvs=[[]];this.morphTargets=[];this.morphNormals=[];this.skinWeights=[];this.skinIndices=[];this.lineDistances=[];this.boundingBox=null;this.boundingSphere=null;this.name=source.name;const vertices=source.vertices;for(let i=0,il=vertices.length;i0){const normals=new Float32Array(geometry.normals.length*3);buffergeometry.setAttribute("normal",copyVector3sArray(new BufferAttribute(normals,3),geometry.normals))}if(geometry.colors.length>0){const colors=new Float32Array(geometry.colors.length*3);buffergeometry.setAttribute("color",copyColorsArray(new BufferAttribute(colors,3),geometry.colors))}if(geometry.uvs.length>0){const uvs=new Float32Array(geometry.uvs.length*2);buffergeometry.setAttribute("uv",copyVector2sArray(new BufferAttribute(uvs,2),geometry.uvs))}if(geometry.uvs2.length>0){const uvs2=new Float32Array(geometry.uvs2.length*2);buffergeometry.setAttribute("uv2",copyVector2sArray(new BufferAttribute(uvs2,2),geometry.uvs2))}buffergeometry.groups=geometry.groups;for(const name in geometry.morphTargets){const array=[];const morphTargets=geometry.morphTargets[name];for(let i=0,l=morphTargets.length;i0){const skinIndices=new Float32BufferAttribute(geometry.skinIndices.length*4,4);buffergeometry.setAttribute("skinIndex",copyVector4sArray(skinIndices,geometry.skinIndices))}if(geometry.skinWeights.length>0){const skinWeights=new Float32BufferAttribute(geometry.skinWeights.length*4,4);buffergeometry.setAttribute("skinWeight",copyVector4sArray(skinWeights,geometry.skinWeights))}if(geometry.boundingSphere!==null){buffergeometry.boundingSphere=geometry.boundingSphere.clone()}if(geometry.boundingBox!==null){buffergeometry.boundingBox=geometry.boundingBox.clone()}return buffergeometry}computeTangents(){console.error("THREE.Geometry: .computeTangents() has been removed.")}computeLineDistances(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")}applyMatrix(matrix){console.warn("THREE.Geometry: .applyMatrix() has been renamed to .applyMatrix4().");return this.applyMatrix4(matrix)}dispose(){this.dispatchEvent({type:"dispose"})}static createBufferGeometryFromObject(object){let buffergeometry=new BufferGeometry;const geometry=object.geometry;if(object.isPoints||object.isLine){const positions=new Float32BufferAttribute(geometry.vertices.length*3,3);const colors=new Float32BufferAttribute(geometry.colors.length*3,3);buffergeometry.setAttribute("position",copyVector3sArray(positions,geometry.vertices));buffergeometry.setAttribute("color",copyColorsArray(colors,geometry.colors));if(geometry.lineDistances&&geometry.lineDistances.length===geometry.vertices.length){const lineDistances=new Float32BufferAttribute(geometry.lineDistances.length,1);buffergeometry.setAttribute("lineDistance",lineDistances.copyArray(geometry.lineDistances))}if(geometry.boundingSphere!==null){buffergeometry.boundingSphere=geometry.boundingSphere.clone()}if(geometry.boundingBox!==null){buffergeometry.boundingBox=geometry.boundingBox.clone()}}else if(object.isMesh){buffergeometry=geometry.toBufferGeometry()}return buffergeometry}}Geometry.prototype.isGeometry=true;class DirectGeometry{constructor(){this.vertices=[];this.normals=[];this.colors=[];this.uvs=[];this.uvs2=[];this.groups=[];this.morphTargets={};this.skinWeights=[];this.skinIndices=[];this.boundingBox=null;this.boundingSphere=null;this.verticesNeedUpdate=false;this.normalsNeedUpdate=false;this.colorsNeedUpdate=false;this.uvsNeedUpdate=false;this.groupsNeedUpdate=false}computeGroups(geometry){const groups=[];let group,i;let materialIndex=undefined;const faces=geometry.faces;for(i=0;i0;const hasFaceVertexUv2=faceVertexUvs[1]&&faceVertexUvs[1].length>0;const morphTargets=geometry.morphTargets;const morphTargetsLength=morphTargets.length;let morphTargetsPosition;if(morphTargetsLength>0){morphTargetsPosition=[];for(let i=0;i0){morphTargetsNormal=[];for(let i=0;i0&&faces.length===0){console.error("THREE.DirectGeometry: Faceless geometries are not supported.")}for(let i=0;i2){dstArray[j++]=attribute.getZ(i)}}return dstArray}if(attribute.array instanceof Float32Array){return attribute.array}return new Float32Array(attribute.array)}const _geometry=geometry.index?geometry.toNonIndexed():geometry;const tangents=MikkTSpace.generateTangents(getAttributeArray(_geometry.attributes.position),getAttributeArray(_geometry.attributes.normal),getAttributeArray(_geometry.attributes.uv));if(negateSign){for(let i=3;i=2){newAttribute.setY(i,attribute.getY(i))}if(itemSize>=3){newAttribute.setZ(i,attribute.getZ(i))}if(itemSize>=4){newAttribute.setW(i,attribute.getW(i))}}return newAttribute}function deinterleaveGeometry(geometry){const attributes=geometry.attributes;const morphTargets=geometry.morphTargets;const attrMap=new Map;for(const key in attributes){const attr=attributes[key];if(attr.isInterleavedBufferAttribute){if(!attrMap.has(attr)){attrMap.set(attr,deinterleaveAttribute(attr))}attributes[key]=attrMap.get(attr)}}for(const key in morphTargets){const attr=morphTargets[key];if(attr.isInterleavedBufferAttribute){if(!attrMap.has(attr)){attrMap.set(attr,deinterleaveAttribute(attr))}morphTargets[key]=attrMap.get(attr)}}}function estimateBytesUsed(geometry){let mem=0;for(const name in geometry.attributes){const attr=geometry.getAttribute(name);mem+=attr.count*attr.itemSize*attr.array.BYTES_PER_ELEMENT}const indices=geometry.getIndex();mem+=indices?indices.count*indices.itemSize*indices.array.BYTES_PER_ELEMENT:0;return mem}function mergeVertices(geometry,tolerance=1e-4){tolerance=Math.max(tolerance,Number.EPSILON);const hashToIndex={};const indices=geometry.getIndex();const positions=geometry.getAttribute("position");const vertexCount=indices?indices.count:positions.count;let nextIndex=0;const attributeNames=Object.keys(geometry.attributes);const tmpAttributes={};const tmpMorphAttributes={};const newIndices=[];const getters=["getX","getY","getZ","getW"];const setters=["setX","setY","setZ","setW"];for(let i=0,l=attributeNames.length;i{if(a.materialIndex!==b.materialIndex)return a.materialIndex-b.materialIndex;return a.start-b.start});if(geometry.getIndex()===null){const positionAttribute=geometry.getAttribute("position");const indices=[];for(let i=0;icreaseDot){tempNorm2.add(otherNorm)}}tempNorm2.normalize();normAttr.setXYZ(i3+n,tempNorm2.x,tempNorm2.y,tempNorm2.z)}}resultGeometry.setAttribute("normal",normAttr);return resultGeometry}function mergeBufferGeometries(geometries,useGroups=false){console.warn("THREE.BufferGeometryUtils: mergeBufferGeometries() has been renamed to mergeGeometries().");return mergeGeometries(geometries,useGroups)}function mergeBufferAttributes(attributes){console.warn("THREE.BufferGeometryUtils: mergeBufferAttributes() has been renamed to mergeAttributes().");return mergeAttributes(attributes)}var BufferGeometryUtils={computeMikkTSpaceTangents,deepCloneAttribute,deinterleaveAttribute,deinterleaveGeometry,mergeGeometries,mergeBufferGeometries,mergeAttributes,mergeBufferAttributes,interleaveAttributes,estimateBytesUsed,mergeVertices,toTrianglesDrawMode,computeMorphedAttributes,mergeGroups,toCreasedNormals};THREE.BufferGeometryUtils=BufferGeometryUtils})();(function(){class WorkerPool{constructor(pool=4){this.pool=pool;this.queue=[];this.workers=[];this.workersResolve=[];this.workerStatus=0}_initWorker(workerId){if(!this.workers[workerId]){const worker=this.workerCreator();worker.addEventListener("message",this._onMessage.bind(this,workerId));this.workers[workerId]=worker}}_getIdleWorker(){for(let i=0;i{const workerId=this._getIdleWorker();if(workerId!==-1){this._initWorker(workerId);this.workerStatus|=1<worker.terminate());this.workersResolve.length=0;this.workers.length=0;this.queue.length=0;this.workerStatus=0}}THREE.WorkerPool=WorkerPool})();(function(){const t=0,e=1,n=2,i=3,s=0,a=0,r=2,o=0,l=1,f=160,U=161,c=162,h=163,_=0,p=1,g=0,y=1,x=2,u=3,b=4,d=5,m=6,w=7,D=8,B=9,L=10,A=11,k=12,v=13,S=14,I=15,O=16,T=17,V=18,E=0,F=1,P=2,C=3,z=4,M=5,W=6,N=7,H=8,K=9,X=10,j=11,R=0,Y=1,q=2,G=13,J=14,Q=15,Z=128,$=64,tt=32,et=16,nt=0,it=1,st=2,at=3,rt=4,ot=5,lt=6,ft=7,Ut=8,ct=9,ht=10,_t=13,pt=14,gt=15,yt=16,xt=17,ut=20,bt=21,dt=22,mt=23,wt=24,Dt=27,Bt=28,Lt=29,At=30,kt=31,vt=34,St=35,It=36,Ot=37,Tt=38,Vt=41,Et=42,Ft=43,Pt=44,Ct=45,zt=48,Mt=49,Wt=50,Nt=58,Ht=59,Kt=62,Xt=63,jt=64,Rt=65,Yt=68,qt=69,Gt=70,Jt=71,Qt=74,Zt=75,$t=76,te=77,ee=78,ne=81,ie=82,se=83,ae=84,re=85,oe=88,le=89,fe=90,Ue=91,ce=92,he=95,_e=96,pe=97,ge=98,ye=99,xe=100,ue=101,be=102,de=103,me=104,we=105,De=106,Be=107,Le=108,Ae=109,ke=110,ve=111,Se=112,Ie=113,Oe=114,Te=115,Ve=116,Ee=117,Fe=118,Pe=119,Ce=120,ze=121,Me=122,We=123,Ne=124,He=125,Ke=126,Xe=127,je=128,Re=129,Ye=130,qe=131,Ge=132,Je=133,Qe=134,Ze=135,$e=136,tn=137,en=138,nn=139,sn=140,an=141,rn=142,on=143,ln=144,fn=145,Un=146,cn=147,hn=148,_n=149,pn=150,gn=151,yn=152,xn=153,un=154,bn=155,dn=156,mn=157,wn=158,Dn=159,Bn=160,Ln=161,An=162,kn=163,vn=164,Sn=165,In=166,On=167,Tn=168,Vn=169,En=170,Fn=171,Pn=172,Cn=173,zn=174,Mn=175,Wn=176,Nn=177,Hn=178,Kn=179,Xn=180,jn=181,Rn=182,Yn=183,qn=184,Gn=1000156007,Jn=1000156008,Qn=1000156009,Zn=1000156010,$n=1000156011,ti=1000156017,ei=1000156018,ni=1000156019,ii=1000156020,si=1000156021,ai=1000054e3,ri=1000054001,oi=1000054002,li=1000054003,fi=1000054004,Ui=1000054005,ci=1000054006,hi=1000054007,_i=1000066e3,pi=1000066001,gi=1000066002,yi=1000066003,xi=1000066004,ui=1000066005,bi=1000066006,di=1000066007,mi=1000066008,wi=1000066009,Di=1000066010,Bi=1000066011,Li=1000066012,Ai=1000066013,ki=100034e4,vi=1000340001;class Si{constructor(){this.vkFormat=0,this.typeSize=1,this.pixelWidth=0,this.pixelHeight=0,this.pixelDepth=0,this.layerCount=0,this.faceCount=1,this.supercompressionScheme=0,this.levels=[],this.dataFormatDescriptor=[{vendorId:0,descriptorType:0,descriptorBlockSize:0,versionNumber:2,colorModel:0,colorPrimaries:1,transferFunction:2,flags:0,texelBlockDimension:[0,0,0,0],bytesPlane:[0,0,0,0,0,0,0,0],samples:[]}],this.keyValue={},this.globalData=null}}class Ii{constructor(t,e,n,i){this._dataView=new DataView(t.buffer,t.byteOffset+e,n),this._littleEndian=i,this._offset=0}_nextUint8(){const t=this._dataView.getUint8(this._offset);return this._offset+=1,t}_nextUint16(){const t=this._dataView.getUint16(this._offset,this._littleEndian);return this._offset+=2,t}_nextUint32(){const t=this._dataView.getUint32(this._offset,this._littleEndian);return this._offset+=4,t}_nextUint64(){const t=this._dataView.getUint32(this._offset,this._littleEndian)+2**32*this._dataView.getUint32(this._offset+4,this._littleEndian);return this._offset+=8,t}_nextInt32(){const t=this._dataView.getInt32(this._offset,this._littleEndian);return this._offset+=4,t}_skip(t){return this._offset+=t,this}_scan(t,e=0){const n=this._offset;let i=0;for(;this._dataView.getUint8(this._offset)!==e&&i0?c+a.byteLength:0;h%8&&(h+=8-h%8);const _=[],p=new DataView(new ArrayBuffer(3*t.levels.length*8));let g=(h||c+a.byteLength)+n.byteLength;for(let e=0;e0?h:0),!0),x.setBigUint64(60,BigInt(n.byteLength),!0),new Uint8Array(Fi([new Uint8Array(Ti).buffer,y,p.buffer,o,a,h>0?new ArrayBuffer(h-(c+a.byteLength)):new ArrayBuffer(0),n,..._]))}var KTXParse=THREE.KTXParse={};KTXParse.KHR_DF_CHANNEL_RGBSDA_ALPHA=Q,KTXParse.KHR_DF_CHANNEL_RGBSDA_BLUE=q,KTXParse.KHR_DF_CHANNEL_RGBSDA_DEPTH=J,KTXParse.KHR_DF_CHANNEL_RGBSDA_GREEN=Y,KTXParse.KHR_DF_CHANNEL_RGBSDA_RED=R,KTXParse.KHR_DF_CHANNEL_RGBSDA_STENCIL=G,KTXParse.KHR_DF_FLAG_ALPHA_PREMULTIPLIED=p,KTXParse.KHR_DF_FLAG_ALPHA_STRAIGHT=_,KTXParse.KHR_DF_KHR_DESCRIPTORTYPE_BASICFORMAT=s,KTXParse.KHR_DF_MODEL_ASTC=c,KTXParse.KHR_DF_MODEL_ETC1=f,KTXParse.KHR_DF_MODEL_ETC1S=h,KTXParse.KHR_DF_MODEL_ETC2=U,KTXParse.KHR_DF_MODEL_RGBSDA=l,KTXParse.KHR_DF_MODEL_UNSPECIFIED=o,KTXParse.KHR_DF_PRIMARIES_ACES=W,KTXParse.KHR_DF_PRIMARIES_ACESCC=N,KTXParse.KHR_DF_PRIMARIES_ADOBERGB=j,KTXParse.KHR_DF_PRIMARIES_BT2020=z,KTXParse.KHR_DF_PRIMARIES_BT601_EBU=P,KTXParse.KHR_DF_PRIMARIES_BT601_SMPTE=C,KTXParse.KHR_DF_PRIMARIES_BT709=F,KTXParse.KHR_DF_PRIMARIES_CIEXYZ=M,KTXParse.KHR_DF_PRIMARIES_DISPLAYP3=X,KTXParse.KHR_DF_PRIMARIES_NTSC1953=H,KTXParse.KHR_DF_PRIMARIES_PAL525=K,KTXParse.KHR_DF_PRIMARIES_UNSPECIFIED=E,KTXParse.KHR_DF_SAMPLE_DATATYPE_EXPONENT=tt,KTXParse.KHR_DF_SAMPLE_DATATYPE_FLOAT=Z,KTXParse.KHR_DF_SAMPLE_DATATYPE_LINEAR=et,KTXParse.KHR_DF_SAMPLE_DATATYPE_SIGNED=$,KTXParse.KHR_DF_TRANSFER_ACESCC=O,KTXParse.KHR_DF_TRANSFER_ACESCCT=T,KTXParse.KHR_DF_TRANSFER_ADOBERGB=V,KTXParse.KHR_DF_TRANSFER_BT1886=w,KTXParse.KHR_DF_TRANSFER_DCIP3=k,KTXParse.KHR_DF_TRANSFER_HLG_EOTF=B,KTXParse.KHR_DF_TRANSFER_HLG_OETF=D,KTXParse.KHR_DF_TRANSFER_ITU=u,KTXParse.KHR_DF_TRANSFER_LINEAR=y,KTXParse.KHR_DF_TRANSFER_NTSC=b,KTXParse.KHR_DF_TRANSFER_PAL625_EOTF=S,KTXParse.KHR_DF_TRANSFER_PAL_OETF=v,KTXParse.KHR_DF_TRANSFER_PQ_EOTF=L,KTXParse.KHR_DF_TRANSFER_PQ_OETF=A,KTXParse.KHR_DF_TRANSFER_SLOG=d,KTXParse.KHR_DF_TRANSFER_SLOG2=m,KTXParse.KHR_DF_TRANSFER_SRGB=x,KTXParse.KHR_DF_TRANSFER_ST240=I,KTXParse.KHR_DF_TRANSFER_UNSPECIFIED=g,KTXParse.KHR_DF_VENDORID_KHRONOS=a,KTXParse.KHR_DF_VERSION=r,KTXParse.KHR_SUPERCOMPRESSION_BASISLZ=e,KTXParse.KHR_SUPERCOMPRESSION_NONE=t,KTXParse.KHR_SUPERCOMPRESSION_ZLIB=i,KTXParse.KHR_SUPERCOMPRESSION_ZSTD=n,KTXParse.KTX2Container=Si,KTXParse.VK_FORMAT_A1R5G5B5_UNORM_PACK16=Ut,KTXParse.VK_FORMAT_A2B10G10R10_SINT_PACK32=qt,KTXParse.VK_FORMAT_A2B10G10R10_SNORM_PACK32=Rt,KTXParse.VK_FORMAT_A2B10G10R10_UINT_PACK32=Yt,KTXParse.VK_FORMAT_A2B10G10R10_UNORM_PACK32=jt,KTXParse.VK_FORMAT_A2R10G10B10_SINT_PACK32=Xt,KTXParse.VK_FORMAT_A2R10G10B10_SNORM_PACK32=Ht,KTXParse.VK_FORMAT_A2R10G10B10_UINT_PACK32=Kt,KTXParse.VK_FORMAT_A2R10G10B10_UNORM_PACK32=Nt,KTXParse.VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT=vi,KTXParse.VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT=ki,KTXParse.VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT=Bi,KTXParse.VK_FORMAT_ASTC_10x10_SRGB_BLOCK=Xn,KTXParse.VK_FORMAT_ASTC_10x10_UNORM_BLOCK=Kn,KTXParse.VK_FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT=mi,KTXParse.VK_FORMAT_ASTC_10x5_SRGB_BLOCK=zn,KTXParse.VK_FORMAT_ASTC_10x5_UNORM_BLOCK=Cn,KTXParse.VK_FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT=wi,KTXParse.VK_FORMAT_ASTC_10x6_SRGB_BLOCK=Wn,KTXParse.VK_FORMAT_ASTC_10x6_UNORM_BLOCK=Mn,KTXParse.VK_FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT=Di,KTXParse.VK_FORMAT_ASTC_10x8_SRGB_BLOCK=Hn,KTXParse.VK_FORMAT_ASTC_10x8_UNORM_BLOCK=Nn,KTXParse.VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT=Li,KTXParse.VK_FORMAT_ASTC_12x10_SRGB_BLOCK=Rn,KTXParse.VK_FORMAT_ASTC_12x10_UNORM_BLOCK=jn,KTXParse.VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT=Ai,KTXParse.VK_FORMAT_ASTC_12x12_SRGB_BLOCK=qn,KTXParse.VK_FORMAT_ASTC_12x12_UNORM_BLOCK=Yn,KTXParse.VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT=_i,KTXParse.VK_FORMAT_ASTC_4x4_SRGB_BLOCK=wn,KTXParse.VK_FORMAT_ASTC_4x4_UNORM_BLOCK=mn,KTXParse.VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT=pi,KTXParse.VK_FORMAT_ASTC_5x4_SRGB_BLOCK=Bn,KTXParse.VK_FORMAT_ASTC_5x4_UNORM_BLOCK=Dn,KTXParse.VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT=gi,KTXParse.VK_FORMAT_ASTC_5x5_SRGB_BLOCK=An,KTXParse.VK_FORMAT_ASTC_5x5_UNORM_BLOCK=Ln,KTXParse.VK_FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT=yi,KTXParse.VK_FORMAT_ASTC_6x5_SRGB_BLOCK=vn,KTXParse.VK_FORMAT_ASTC_6x5_UNORM_BLOCK=kn,KTXParse.VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT=xi,KTXParse.VK_FORMAT_ASTC_6x6_SRGB_BLOCK=In,KTXParse.VK_FORMAT_ASTC_6x6_UNORM_BLOCK=Sn,KTXParse.VK_FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT=ui,KTXParse.VK_FORMAT_ASTC_8x5_SRGB_BLOCK=Tn,KTXParse.VK_FORMAT_ASTC_8x5_UNORM_BLOCK=On,KTXParse.VK_FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT=bi,KTXParse.VK_FORMAT_ASTC_8x6_SRGB_BLOCK=En,KTXParse.VK_FORMAT_ASTC_8x6_UNORM_BLOCK=Vn,KTXParse.VK_FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT=di,KTXParse.VK_FORMAT_ASTC_8x8_SRGB_BLOCK=Pn,KTXParse.VK_FORMAT_ASTC_8x8_UNORM_BLOCK=Fn,KTXParse.VK_FORMAT_B10G11R11_UFLOAT_PACK32=Me,KTXParse.VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16=$n,KTXParse.VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16=si,KTXParse.VK_FORMAT_B4G4R4A4_UNORM_PACK16=at,KTXParse.VK_FORMAT_B5G5R5A1_UNORM_PACK16=ft,KTXParse.VK_FORMAT_B5G6R5_UNORM_PACK16=ot,KTXParse.VK_FORMAT_B8G8R8A8_SINT=Mt,KTXParse.VK_FORMAT_B8G8R8A8_SNORM=Ct,KTXParse.VK_FORMAT_B8G8R8A8_SRGB=Wt,KTXParse.VK_FORMAT_B8G8R8A8_UINT=zt,KTXParse.VK_FORMAT_B8G8R8A8_UNORM=Pt,KTXParse.VK_FORMAT_B8G8R8_SINT=St,KTXParse.VK_FORMAT_B8G8R8_SNORM=kt,KTXParse.VK_FORMAT_B8G8R8_SRGB=It,KTXParse.VK_FORMAT_B8G8R8_UINT=vt,KTXParse.VK_FORMAT_B8G8R8_UNORM=At,KTXParse.VK_FORMAT_BC1_RGBA_SRGB_BLOCK=Qe,KTXParse.VK_FORMAT_BC1_RGBA_UNORM_BLOCK=Je,KTXParse.VK_FORMAT_BC1_RGB_SRGB_BLOCK=Ge,KTXParse.VK_FORMAT_BC1_RGB_UNORM_BLOCK=qe,KTXParse.VK_FORMAT_BC2_SRGB_BLOCK=$e,KTXParse.VK_FORMAT_BC2_UNORM_BLOCK=Ze,KTXParse.VK_FORMAT_BC3_SRGB_BLOCK=en,KTXParse.VK_FORMAT_BC3_UNORM_BLOCK=tn,KTXParse.VK_FORMAT_BC4_SNORM_BLOCK=sn,KTXParse.VK_FORMAT_BC4_UNORM_BLOCK=nn,KTXParse.VK_FORMAT_BC5_SNORM_BLOCK=rn,KTXParse.VK_FORMAT_BC5_UNORM_BLOCK=an,KTXParse.VK_FORMAT_BC6H_SFLOAT_BLOCK=ln,KTXParse.VK_FORMAT_BC6H_UFLOAT_BLOCK=on,KTXParse.VK_FORMAT_BC7_SRGB_BLOCK=Un,KTXParse.VK_FORMAT_BC7_UNORM_BLOCK=fn,KTXParse.VK_FORMAT_D16_UNORM=Ne,KTXParse.VK_FORMAT_D16_UNORM_S8_UINT=je,KTXParse.VK_FORMAT_D24_UNORM_S8_UINT=Re,KTXParse.VK_FORMAT_D32_SFLOAT=Ke,KTXParse.VK_FORMAT_D32_SFLOAT_S8_UINT=Ye,KTXParse.VK_FORMAT_E5B9G9R9_UFLOAT_PACK32=We,KTXParse.VK_FORMAT_EAC_R11G11_SNORM_BLOCK=dn,KTXParse.VK_FORMAT_EAC_R11G11_UNORM_BLOCK=bn,KTXParse.VK_FORMAT_EAC_R11_SNORM_BLOCK=un,KTXParse.VK_FORMAT_EAC_R11_UNORM_BLOCK=xn,KTXParse.VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK=pn,KTXParse.VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK=_n,KTXParse.VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK=yn,KTXParse.VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK=gn,KTXParse.VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK=hn,KTXParse.VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK=cn,KTXParse.VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16=Zn,KTXParse.VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16=ii,KTXParse.VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG=fi,KTXParse.VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG=ai,KTXParse.VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG=Ui,KTXParse.VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG=ri,KTXParse.VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG=ci,KTXParse.VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG=oi,KTXParse.VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG=hi,KTXParse.VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG=li,KTXParse.VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16=Qn,KTXParse.VK_FORMAT_R10X6G10X6_UNORM_2PACK16=Jn,KTXParse.VK_FORMAT_R10X6_UNORM_PACK16=Gn,KTXParse.VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16=ni,KTXParse.VK_FORMAT_R12X4G12X4_UNORM_2PACK16=ei,KTXParse.VK_FORMAT_R12X4_UNORM_PACK16=ti,KTXParse.VK_FORMAT_R16G16B16A16_SFLOAT=pe,KTXParse.VK_FORMAT_R16G16B16A16_SINT=_e,KTXParse.VK_FORMAT_R16G16B16A16_SNORM=ce,KTXParse.VK_FORMAT_R16G16B16A16_UINT=he,KTXParse.VK_FORMAT_R16G16B16A16_UNORM=Ue,KTXParse.VK_FORMAT_R16G16B16_SFLOAT=fe,KTXParse.VK_FORMAT_R16G16B16_SINT=le,KTXParse.VK_FORMAT_R16G16B16_SNORM=re,KTXParse.VK_FORMAT_R16G16B16_UINT=oe,KTXParse.VK_FORMAT_R16G16B16_UNORM=ae,KTXParse.VK_FORMAT_R16G16_SFLOAT=se,KTXParse.VK_FORMAT_R16G16_SINT=ie,KTXParse.VK_FORMAT_R16G16_SNORM=ee,KTXParse.VK_FORMAT_R16G16_UINT=ne,KTXParse.VK_FORMAT_R16G16_UNORM=te,KTXParse.VK_FORMAT_R16_SFLOAT=$t,KTXParse.VK_FORMAT_R16_SINT=Zt,KTXParse.VK_FORMAT_R16_SNORM=Jt,KTXParse.VK_FORMAT_R16_UINT=Qt,KTXParse.VK_FORMAT_R16_UNORM=Gt,KTXParse.VK_FORMAT_R32G32B32A32_SFLOAT=Ae,KTXParse.VK_FORMAT_R32G32B32A32_SINT=Le,KTXParse.VK_FORMAT_R32G32B32A32_UINT=Be,KTXParse.VK_FORMAT_R32G32B32_SFLOAT=De,KTXParse.VK_FORMAT_R32G32B32_SINT=we,KTXParse.VK_FORMAT_R32G32B32_UINT=me,KTXParse.VK_FORMAT_R32G32_SFLOAT=de,KTXParse.VK_FORMAT_R32G32_SINT=be,KTXParse.VK_FORMAT_R32G32_UINT=ue,KTXParse.VK_FORMAT_R32_SFLOAT=xe,KTXParse.VK_FORMAT_R32_SINT=ye,KTXParse.VK_FORMAT_R32_UINT=ge,KTXParse.VK_FORMAT_R4G4B4A4_UNORM_PACK16=st,KTXParse.VK_FORMAT_R4G4_UNORM_PACK8=it,KTXParse.VK_FORMAT_R5G5B5A1_UNORM_PACK16=lt,KTXParse.VK_FORMAT_R5G6B5_UNORM_PACK16=rt,KTXParse.VK_FORMAT_R64G64B64A64_SFLOAT=ze,KTXParse.VK_FORMAT_R64G64B64A64_SINT=Ce,KTXParse.VK_FORMAT_R64G64B64A64_UINT=Pe,KTXParse.VK_FORMAT_R64G64B64_SFLOAT=Fe,KTXParse.VK_FORMAT_R64G64B64_SINT=Ee,KTXParse.VK_FORMAT_R64G64B64_UINT=Ve,KTXParse.VK_FORMAT_R64G64_SFLOAT=Te,KTXParse.VK_FORMAT_R64G64_SINT=Oe,KTXParse.VK_FORMAT_R64G64_UINT=Ie,KTXParse.VK_FORMAT_R64_SFLOAT=Se,KTXParse.VK_FORMAT_R64_SINT=ve,KTXParse.VK_FORMAT_R64_UINT=ke,KTXParse.VK_FORMAT_R8G8B8A8_SINT=Et,KTXParse.VK_FORMAT_R8G8B8A8_SNORM=Tt,KTXParse.VK_FORMAT_R8G8B8A8_SRGB=Ft,KTXParse.VK_FORMAT_R8G8B8A8_UINT=Vt,KTXParse.VK_FORMAT_R8G8B8A8_UNORM=Ot,KTXParse.VK_FORMAT_R8G8B8_SINT=Bt,KTXParse.VK_FORMAT_R8G8B8_SNORM=wt,KTXParse.VK_FORMAT_R8G8B8_SRGB=Lt,KTXParse.VK_FORMAT_R8G8B8_UINT=Dt,KTXParse.VK_FORMAT_R8G8B8_UNORM=mt,KTXParse.VK_FORMAT_R8G8_SINT=bt,KTXParse.VK_FORMAT_R8G8_SNORM=xt,KTXParse.VK_FORMAT_R8G8_SRGB=dt,KTXParse.VK_FORMAT_R8G8_UINT=ut,KTXParse.VK_FORMAT_R8G8_UNORM=yt,KTXParse.VK_FORMAT_R8_SINT=pt,KTXParse.VK_FORMAT_R8_SNORM=ht,KTXParse.VK_FORMAT_R8_SRGB=gt,KTXParse.VK_FORMAT_R8_UINT=_t,KTXParse.VK_FORMAT_R8_UNORM=ct,KTXParse.VK_FORMAT_S8_UINT=Xe,KTXParse.VK_FORMAT_UNDEFINED=nt,KTXParse.VK_FORMAT_X8_D24_UNORM_PACK32=He,KTXParse.read=Pi,KTXParse.write=Mi})();(function(){var CompressedTexture=THREE.CompressedTexture,Data3DTexture=THREE.Data3DTexture,DataTexture=THREE.DataTexture,FileLoader=THREE.FileLoader,FloatType=THREE.FloatType,HalfFloatType=THREE.HalfFloatType,LinearEncoding=THREE.LinearEncoding,LinearFilter=THREE.LinearFilter,LinearMipmapLinearFilter=THREE.LinearMipmapLinearFilter,Loader=THREE.Loader,RedFormat=THREE.RedFormat,RGB_ETC1_Format=THREE.RGB_ETC1_Format,RGB_ETC2_Format=THREE.RGB_ETC2_Format,RGB_PVRTC_4BPPV1_Format=THREE.RGB_PVRTC_4BPPV1_Format,RGB_S3TC_DXT1_Format=THREE.RGB_S3TC_DXT1_Format,RGBA_ASTC_4x4_Format=THREE.RGBA_ASTC_4x4_Format,RGBA_BPTC_Format=THREE.RGBA_BPTC_Format,RGBA_ETC2_EAC_Format=THREE.RGBA_ETC2_EAC_Format,RGBA_PVRTC_4BPPV1_Format=THREE.RGBA_PVRTC_4BPPV1_Format,RGBA_S3TC_DXT5_Format=THREE.RGBA_S3TC_DXT5_Format,RGBAFormat=THREE.RGBAFormat,RGFormat=THREE.RGFormat,sRGBEncoding=THREE.sRGBEncoding,UnsignedByteType=THREE.UnsignedByteType,WorkerPool=THREE.WorkerPool;var read=THREE.KTXParse.read,KHR_DF_FLAG_ALPHA_PREMULTIPLIED=THREE.KTXParse.KHR_DF_FLAG_ALPHA_PREMULTIPLIED,KHR_DF_TRANSFER_SRGB=THREE.KTXParse.KHR_DF_TRANSFER_SRGB,KHR_SUPERCOMPRESSION_NONE=THREE.KTXParse.KHR_SUPERCOMPRESSION_NONE,KHR_SUPERCOMPRESSION_ZSTD=THREE.KTXParse.KHR_SUPERCOMPRESSION_ZSTD,VK_FORMAT_UNDEFINED=THREE.KTXParse.VK_FORMAT_UNDEFINED,VK_FORMAT_R16_SFLOAT=THREE.KTXParse.VK_FORMAT_R16_SFLOAT,VK_FORMAT_R16G16_SFLOAT=THREE.KTXParse.VK_FORMAT_R16G16_SFLOAT,VK_FORMAT_R16G16B16A16_SFLOAT=THREE.KTXParse.VK_FORMAT_R16G16B16A16_SFLOAT,VK_FORMAT_R32_SFLOAT=THREE.KTXParse.VK_FORMAT_R32_SFLOAT,VK_FORMAT_R32G32_SFLOAT=THREE.KTXParse.VK_FORMAT_R32G32_SFLOAT,VK_FORMAT_R32G32B32A32_SFLOAT=THREE.KTXParse.VK_FORMAT_R32G32B32A32_SFLOAT,VK_FORMAT_R8_SRGB=THREE.KTXParse.VK_FORMAT_R8_SRGB,VK_FORMAT_R8_UNORM=THREE.KTXParse.VK_FORMAT_R8_UNORM,VK_FORMAT_R8G8_SRGB=THREE.KTXParse.VK_FORMAT_R8G8_SRGB,VK_FORMAT_R8G8_UNORM=THREE.KTXParse.VK_FORMAT_R8G8_UNORM,VK_FORMAT_R8G8B8A8_SRGB=THREE.KTXParse.VK_FORMAT_R8G8B8A8_SRGB,VK_FORMAT_R8G8B8A8_UNORM=THREE.KTXParse.VK_FORMAT_R8G8B8A8_UNORM;var ZSTDDecoder=THREE.ZSTDDecoder;const _taskCache=new WeakMap;let _activeLoaders=0;let _zstd;class KTX2Loader extends Loader{constructor(manager){super(manager);this.transcoderPath="";this.transcoderBinary=null;this.transcoderPending=null;this.workerPool=new WorkerPool;this.workerSourceURL="";this.workerConfig=null;if(typeof MSC_TRANSCODER!=="undefined"){console.warn("THREE.KTX2Loader: Please update to latest \"basis_transcoder\"."+" \"msc_basis_transcoder\" is no longer supported in three.js r125+.")}}setTranscoderPath(path){this.transcoderPath=path;return this}setWorkerLimit(num){this.workerPool.setWorkerLimit(num);return this}detectSupport(renderer){this.workerConfig={astcSupported:renderer.extensions.has("WEBGL_compressed_texture_astc"),etc1Supported:renderer.extensions.has("WEBGL_compressed_texture_etc1"),etc2Supported:renderer.extensions.has("WEBGL_compressed_texture_etc"),dxtSupported:renderer.extensions.has("WEBGL_compressed_texture_s3tc"),bptcSupported:renderer.extensions.has("EXT_texture_compression_bptc"),pvrtcSupported:renderer.extensions.has("WEBGL_compressed_texture_pvrtc")||renderer.extensions.has("WEBKIT_WEBGL_compressed_texture_pvrtc")};if(renderer.capabilities.isWebGL2){this.workerConfig.etc1Supported=false}return this}init(){if(!this.transcoderPending){const jsLoader=new FileLoader(this.manager);jsLoader.setPath(this.transcoderPath);jsLoader.setWithCredentials(this.withCredentials);const jsContent=jsLoader.loadAsync("basis_transcoder.js");const binaryLoader=new FileLoader(this.manager);binaryLoader.setPath(this.transcoderPath);binaryLoader.setResponseType("arraybuffer");binaryLoader.setWithCredentials(this.withCredentials);const binaryContent=binaryLoader.loadAsync("basis_transcoder.wasm");this.transcoderPending=Promise.all([jsContent,binaryContent]).then(([jsContent,binaryContent])=>{const fn=KTX2Loader.BasisWorker.toString();const body=["/* constants */","let _EngineFormat = "+JSON.stringify(KTX2Loader.EngineFormat),"let _TranscoderFormat = "+JSON.stringify(KTX2Loader.TranscoderFormat),"let _BasisFormat = "+JSON.stringify(KTX2Loader.BasisFormat),"/* basis_transcoder.js */",jsContent,"/* worker */",fn.substring(fn.indexOf("{")+1,fn.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([body]));this.transcoderBinary=binaryContent;this.workerPool.setWorkerCreator(()=>{const worker=new Worker(this.workerSourceURL);const transcoderBinary=this.transcoderBinary.slice(0);worker.postMessage({type:"init",config:this.workerConfig,transcoderBinary},[transcoderBinary]);return worker})});if(_activeLoaders>0){console.warn("THREE.KTX2Loader: Multiple active KTX2 loaders may cause performance issues."+" Use a single KTX2Loader instance, or call .dispose() on old instances.")}_activeLoaders++}return this.transcoderPending}load(url,onLoad,onProgress,onError){if(this.workerConfig===null){throw new Error("THREE.KTX2Loader: Missing initialization with `.detectSupport( renderer )`.")}const loader=new FileLoader(this.manager);loader.setResponseType("arraybuffer");loader.setWithCredentials(this.withCredentials);loader.load(url,buffer=>{if(_taskCache.has(buffer)){const cachedTask=_taskCache.get(buffer);return cachedTask.promise.then(onLoad).catch(onError)}this._createTexture(buffer).then(texture=>onLoad?onLoad(texture):null).catch(onError)},onProgress,onError)}_createTextureFrom(transcodeResult){const{mipmaps,width,height,format,type,error,dfdTransferFn,dfdFlags}=transcodeResult;if(type==="error")return Promise.reject(error);const texture=new CompressedTexture(mipmaps,width,height,format,UnsignedByteType);texture.minFilter=mipmaps.length===1?LinearFilter:LinearMipmapLinearFilter;texture.magFilter=LinearFilter;texture.generateMipmaps=false;texture.needsUpdate=true;texture.encoding=dfdTransferFn===KHR_DF_TRANSFER_SRGB?sRGBEncoding:LinearEncoding;texture.premultiplyAlpha=!!(dfdFlags&KHR_DF_FLAG_ALPHA_PREMULTIPLIED);return texture}_createTexture(buffer,config={}){const container=read(new Uint8Array(buffer));if(container.vkFormat!==VK_FORMAT_UNDEFINED){return createDataTexture(container)}const taskConfig=config;const texturePending=this.init().then(()=>{return this.workerPool.postMessage({type:"transcode",buffer,taskConfig:taskConfig},[buffer])}).then(e=>this._createTextureFrom(e.data));_taskCache.set(buffer,{promise:texturePending});return texturePending}dispose(){this.workerPool.dispose();if(this.workerSourceURL)URL.revokeObjectURL(this.workerSourceURL);_activeLoaders--;return this}}KTX2Loader.BasisFormat={ETC1S:0,UASTC_4x4:1};KTX2Loader.TranscoderFormat={ETC1:0,ETC2:1,BC1:2,BC3:3,BC4:4,BC5:5,BC7_M6_OPAQUE_ONLY:6,BC7_M5:7,PVRTC1_4_RGB:8,PVRTC1_4_RGBA:9,ASTC_4x4:10,ATC_RGB:11,ATC_RGBA_INTERPOLATED_ALPHA:12,RGBA32:13,RGB565:14,BGR565:15,RGBA4444:16};KTX2Loader.EngineFormat={RGBAFormat:RGBAFormat,RGBA_ASTC_4x4_Format:RGBA_ASTC_4x4_Format,RGBA_BPTC_Format:RGBA_BPTC_Format,RGBA_ETC2_EAC_Format:RGBA_ETC2_EAC_Format,RGBA_PVRTC_4BPPV1_Format:RGBA_PVRTC_4BPPV1_Format,RGBA_S3TC_DXT5_Format:RGBA_S3TC_DXT5_Format,RGB_ETC1_Format:RGB_ETC1_Format,RGB_ETC2_Format:RGB_ETC2_Format,RGB_PVRTC_4BPPV1_Format:RGB_PVRTC_4BPPV1_Format,RGB_S3TC_DXT1_Format:RGB_S3TC_DXT1_Format};KTX2Loader.BasisWorker=function(){let config;let transcoderPending;let BasisModule;const EngineFormat=_EngineFormat;const TranscoderFormat=_TranscoderFormat;const BasisFormat=_BasisFormat;self.addEventListener("message",function(e){const message=e.data;switch(message.type){case"init":config=message.config;init(message.transcoderBinary);break;case"transcode":transcoderPending.then(()=>{try{const{width,height,hasAlpha,mipmaps,format,dfdTransferFn,dfdFlags}=transcode(message.buffer);const buffers=[];for(let i=0;i{BasisModule={wasmBinary,onRuntimeInitialized:resolve};BASIS(BasisModule)}).then(()=>{BasisModule.initializeBasis();if(BasisModule.KTX2File===undefined){console.warn("THREE.KTX2Loader: Please update Basis Universal transcoder.")}})}function transcode(buffer){const ktx2File=new BasisModule.KTX2File(new Uint8Array(buffer));function cleanup(){ktx2File.close();ktx2File.delete()}if(!ktx2File.isValid()){cleanup();throw new Error("THREE.KTX2Loader:\tInvalid or unsupported .ktx2 file")}const basisFormat=ktx2File.isUASTC()?BasisFormat.UASTC_4x4:BasisFormat.ETC1S;const width=ktx2File.getWidth();const height=ktx2File.getHeight();const levels=ktx2File.getLevels();const hasAlpha=ktx2File.getHasAlpha();const dfdTransferFn=ktx2File.getDFDTransferFunc();const dfdFlags=ktx2File.getDFDFlags();const{transcoderFormat,engineFormat}=getTranscoderFormat(basisFormat,width,height,hasAlpha);if(!width||!height||!levels){cleanup();throw new Error("THREE.KTX2Loader:\tInvalid texture")}if(!ktx2File.startTranscoding()){cleanup();throw new Error("THREE.KTX2Loader: .startTranscoding failed")}const mipmaps=[];for(let mip=0;mip{const zstd=new ZSTDDecoder;await zstd.init();resolve(zstd)})}levelData=(await _zstd).decode(level.levelData,level.uncompressedByteLength)}else{throw new Error("THREE.KTX2Loader: Unsupported supercompressionScheme.")}if(TYPE_MAP[vkFormat]===FloatType){view=new Float32Array(levelData.buffer,levelData.byteOffset,levelData.byteLength/Float32Array.BYTES_PER_ELEMENT)}else if(TYPE_MAP[vkFormat]===HalfFloatType){view=new Uint16Array(levelData.buffer,levelData.byteOffset,levelData.byteLength/Uint16Array.BYTES_PER_ELEMENT)}else{view=levelData}const texture=pixelDepth===0?new DataTexture(view,pixelWidth,pixelHeight):new Data3DTexture(view,pixelWidth,pixelHeight,pixelDepth);texture.type=TYPE_MAP[vkFormat];texture.format=FORMAT_MAP[vkFormat];texture.encoding=ENCODING_MAP[vkFormat]||LinearEncoding;texture.needsUpdate=true;return Promise.resolve(texture)}THREE.KTX2Loader=KTX2Loader})();(function(){let A,I,B;const g={env:{emscripten_notify_memory_growth:function(A){B=new Uint8Array(I.exports.memory.buffer)}}};class Q{init(){return A||(A="undefined"!=typeof fetch?fetch("data:application/wasm;base64,"+C).then(A=>A.arrayBuffer()).then(A=>WebAssembly.instantiate(A,g)).then(this._init):WebAssembly.instantiate(Buffer.from(C,"base64"),g).then(this._init),A)}_init(A){I=A.instance,g.env.emscripten_notify_memory_growth(0)}decode(A,g=0){if(!I)throw new Error("ZSTDDecoder: Await .init() before decoding.");const Q=A.byteLength,C=I.exports.malloc(Q);B.set(A,C),g=g||Number(I.exports.ZSTD_findDecompressedSize(C,Q));const E=I.exports.malloc(g),i=I.exports.ZSTD_decompress(E,g,C,Q),D=B.slice(E,E+i);return I.exports.free(C),I.exports.free(E),D}}const C="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IAMNACAEQQNxBEADQCACRQ0FIAAgAkF/aiICaiIDIAEgAmotAAA6AAAgA0EDcQ0ACwsgAkEDTQ0AA0AgACACQXxqIgJqIAEgAmooAgA2AgAgAkEDSw0ACwsgAkUNAgNAIAAgAkF/aiICaiABIAJqLQAAOgAAIAINAAsMAgsgAkEDTQ0AIAIhBANAIAMgASgCADYCACABQQRqIQEgA0EEaiEDIARBfGoiBEEDSw0ACyACQQNxIQILIAJFDQADQCADIAEtAAA6AAAgA0EBaiEDIAFBAWohASACQX9qIgINAAsLIAAL8wICAn8BfgJAIAJFDQAgACACaiIDQX9qIAE6AAAgACABOgAAIAJBA0kNACADQX5qIAE6AAAgACABOgABIANBfWogAToAACAAIAE6AAIgAkEHSQ0AIANBfGogAToAACAAIAE6AAMgAkEJSQ0AIABBACAAa0EDcSIEaiIDIAFB/wFxQYGChAhsIgE2AgAgAyACIARrQXxxIgRqIgJBfGogATYCACAEQQlJDQAgAyABNgIIIAMgATYCBCACQXhqIAE2AgAgAkF0aiABNgIAIARBGUkNACADIAE2AhggAyABNgIUIAMgATYCECADIAE2AgwgAkFwaiABNgIAIAJBbGogATYCACACQWhqIAE2AgAgAkFkaiABNgIAIAQgA0EEcUEYciIEayICQSBJDQAgAa0iBUIghiAFhCEFIAMgBGohAQNAIAEgBTcDGCABIAU3AxAgASAFNwMIIAEgBTcDACABQSBqIQEgAkFgaiICQR9LDQALCyAACy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAIajYCACADCy8BAn8gACgCBCAAKAIAQQJ0aiICLQACIQMgACACLwEAIAEgAi0AAxAFajYCACADCx8AIAAgASACKAIEEAg2AgAgARAEGiAAIAJBCGo2AgQLCAAgAGdBH3MLugUBDX8jAEEQayIKJAACfyAEQQNNBEAgCkEANgIMIApBDGogAyAEEAsaIAAgASACIApBDGpBBBAVIgBBbCAAEAMbIAAgACAESxsMAQsgAEEAIAEoAgBBAXRBAmoQECENQVQgAygAACIGQQ9xIgBBCksNABogAiAAQQVqNgIAIAMgBGoiAkF8aiEMIAJBeWohDiACQXtqIRAgAEEGaiELQQQhBSAGQQR2IQRBICAAdCIAQQFyIQkgASgCACEPQQAhAiADIQYCQANAIAlBAkggAiAPS3JFBEAgAiEHAkAgCARAA0AgBEH//wNxQf//A0YEQCAHQRhqIQcgBiAQSQR/IAZBAmoiBigAACAFdgUgBUEQaiEFIARBEHYLIQQMAQsLA0AgBEEDcSIIQQNGBEAgBUECaiEFIARBAnYhBCAHQQNqIQcMAQsLIAcgCGoiByAPSw0EIAVBAmohBQNAIAIgB0kEQCANIAJBAXRqQQA7AQAgAkEBaiECDAELCyAGIA5LQQAgBiAFQQN1aiIHIAxLG0UEQCAHKAAAIAVBB3EiBXYhBAwCCyAEQQJ2IQQLIAYhBwsCfyALQX9qIAQgAEF/anEiBiAAQQF0QX9qIgggCWsiEUkNABogBCAIcSIEQQAgESAEIABIG2shBiALCyEIIA0gAkEBdGogBkF/aiIEOwEAIAlBASAGayAEIAZBAUgbayEJA0AgCSAASARAIABBAXUhACALQX9qIQsMAQsLAn8gByAOS0EAIAcgBSAIaiIFQQN1aiIGIAxLG0UEQCAFQQdxDAELIAUgDCIGIAdrQQN0awshBSACQQFqIQIgBEUhCCAGKAAAIAVBH3F2IQQMAQsLQWwgCUEBRyAFQSBKcg0BGiABIAJBf2o2AgAgBiAFQQdqQQN1aiADawwBC0FQCyEAIApBEGokACAACwkAQQFBBSAAGwsMACAAIAEoAAA2AAALqgMBCn8jAEHwAGsiCiQAIAJBAWohDiAAQQhqIQtBgIAEIAVBf2p0QRB1IQxBACECQQEhBkEBIAV0IglBf2oiDyEIA0AgAiAORkUEQAJAIAEgAkEBdCINai8BACIHQf//A0YEQCALIAhBA3RqIAI2AgQgCEF/aiEIQQEhBwwBCyAGQQAgDCAHQRB0QRB1ShshBgsgCiANaiAHOwEAIAJBAWohAgwBCwsgACAFNgIEIAAgBjYCACAJQQN2IAlBAXZqQQNqIQxBACEAQQAhBkEAIQIDQCAGIA5GBEADQAJAIAAgCUYNACAKIAsgAEEDdGoiASgCBCIGQQF0aiICIAIvAQAiAkEBajsBACABIAUgAhAUayIIOgADIAEgAiAIQf8BcXQgCWs7AQAgASAEIAZBAnQiAmooAgA6AAIgASACIANqKAIANgIEIABBAWohAAwBCwsFIAEgBkEBdGouAQAhDUEAIQcDQCAHIA1ORQRAIAsgAkEDdGogBjYCBANAIAIgDGogD3EiAiAISw0ACyAHQQFqIQcMAQsLIAZBAWohBgwBCwsgCkHwAGokAAsjAEIAIAEQCSAAhUKHla+vmLbem55/fkLj3MqV/M7y9YV/fAsQACAAQn43AwggACABNgIACyQBAX8gAARAIAEoAgQiAgRAIAEoAgggACACEQEADwsgABAmCwsfACAAIAEgAi8BABAINgIAIAEQBBogACACQQRqNgIEC0oBAX9BoCAoAgAiASAAaiIAQX9MBEBBiCBBMDYCAEF/DwsCQCAAPwBBEHRNDQAgABBmDQBBiCBBMDYCAEF/DwtBoCAgADYCACABC9cBAQh/Qbp/IQoCQCACKAIEIgggAigCACIJaiIOIAEgAGtLDQBBbCEKIAkgBCADKAIAIgtrSw0AIAAgCWoiBCACKAIIIgxrIQ0gACABQWBqIg8gCyAJQQAQKSADIAkgC2o2AgACQAJAIAwgBCAFa00EQCANIQUMAQsgDCAEIAZrSw0CIAcgDSAFayIAaiIBIAhqIAdNBEAgBCABIAgQDxoMAgsgBCABQQAgAGsQDyEBIAIgACAIaiIINgIEIAEgAGshBAsgBCAPIAUgCEEBECkLIA4hCgsgCgubAgEBfyMAQYABayINJAAgDSADNgJ8AkAgAkEDSwRAQX8hCQwBCwJAAkACQAJAIAJBAWsOAwADAgELIAZFBEBBuH8hCQwEC0FsIQkgBS0AACICIANLDQMgACAHIAJBAnQiAmooAgAgAiAIaigCABA7IAEgADYCAEEBIQkMAwsgASAJNgIAQQAhCQwCCyAKRQRAQWwhCQwCC0EAIQkgC0UgDEEZSHINAUEIIAR0QQhqIQBBACECA0AgAiAATw0CIAJBQGshAgwAAAsAC0FsIQkgDSANQfwAaiANQfgAaiAFIAYQFSICEAMNACANKAJ4IgMgBEsNACAAIA0gDSgCfCAHIAggAxAYIAEgADYCACACIQkLIA1BgAFqJAAgCQsLACAAIAEgAhALGgsQACAALwAAIAAtAAJBEHRyCy8AAn9BuH8gAUEISQ0AGkFyIAAoAAQiAEF3Sw0AGkG4fyAAQQhqIgAgACABSxsLCwkAIAAgATsAAAsDAAELigYBBX8gACAAKAIAIgVBfnE2AgBBACAAIAVBAXZqQYQgKAIAIgQgAEYbIQECQAJAIAAoAgQiAkUNACACKAIAIgNBAXENACACQQhqIgUgA0EBdkF4aiIDQQggA0EISxtnQR9zQQJ0QYAfaiIDKAIARgRAIAMgAigCDDYCAAsgAigCCCIDBEAgAyACKAIMNgIECyACKAIMIgMEQCADIAIoAgg2AgALIAIgAigCACAAKAIAQX5xajYCAEGEICEAAkACQCABRQ0AIAEgAjYCBCABKAIAIgNBAXENASADQQF2QXhqIgNBCCADQQhLG2dBH3NBAnRBgB9qIgMoAgAgAUEIakYEQCADIAEoAgw2AgALIAEoAggiAwRAIAMgASgCDDYCBAsgASgCDCIDBEAgAyABKAIINgIAQYQgKAIAIQQLIAIgAigCACABKAIAQX5xajYCACABIARGDQAgASABKAIAQQF2akEEaiEACyAAIAI2AgALIAIoAgBBAXZBeGoiAEEIIABBCEsbZ0Efc0ECdEGAH2oiASgCACEAIAEgBTYCACACIAA2AgwgAkEANgIIIABFDQEgACAFNgIADwsCQCABRQ0AIAEoAgAiAkEBcQ0AIAJBAXZBeGoiAkEIIAJBCEsbZ0Efc0ECdEGAH2oiAigCACABQQhqRgRAIAIgASgCDDYCAAsgASgCCCICBEAgAiABKAIMNgIECyABKAIMIgIEQCACIAEoAgg2AgBBhCAoAgAhBAsgACAAKAIAIAEoAgBBfnFqIgI2AgACQCABIARHBEAgASABKAIAQQF2aiAANgIEIAAoAgAhAgwBC0GEICAANgIACyACQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgIoAgAhASACIABBCGoiAjYCACAAIAE2AgwgAEEANgIIIAFFDQEgASACNgIADwsgBUEBdkF4aiIBQQggAUEISxtnQR9zQQJ0QYAfaiICKAIAIQEgAiAAQQhqIgI2AgAgACABNgIMIABBADYCCCABRQ0AIAEgAjYCAAsLDgAgAARAIABBeGoQJQsLgAIBA38CQCAAQQ9qQXhxQYQgKAIAKAIAQQF2ayICEB1Bf0YNAAJAQYQgKAIAIgAoAgAiAUEBcQ0AIAFBAXZBeGoiAUEIIAFBCEsbZ0Efc0ECdEGAH2oiASgCACAAQQhqRgRAIAEgACgCDDYCAAsgACgCCCIBBEAgASAAKAIMNgIECyAAKAIMIgFFDQAgASAAKAIINgIAC0EBIQEgACAAKAIAIAJBAXRqIgI2AgAgAkEBcQ0AIAJBAXZBeGoiAkEIIAJBCEsbZ0Efc0ECdEGAH2oiAygCACECIAMgAEEIaiIDNgIAIAAgAjYCDCAAQQA2AgggAkUNACACIAM2AgALIAELtwIBA38CQAJAIABBASAAGyICEDgiAA0AAkACQEGEICgCACIARQ0AIAAoAgAiA0EBcQ0AIAAgA0EBcjYCACADQQF2QXhqIgFBCCABQQhLG2dBH3NBAnRBgB9qIgEoAgAgAEEIakYEQCABIAAoAgw2AgALIAAoAggiAQRAIAEgACgCDDYCBAsgACgCDCIBBEAgASAAKAIINgIACyACECchAkEAIQFBhCAoAgAhACACDQEgACAAKAIAQX5xNgIAQQAPCyACQQ9qQXhxIgMQHSICQX9GDQIgAkEHakF4cSIAIAJHBEAgACACaxAdQX9GDQMLAkBBhCAoAgAiAUUEQEGAICAANgIADAELIAAgATYCBAtBhCAgADYCACAAIANBAXRBAXI2AgAMAQsgAEUNAQsgAEEIaiEBCyABC7kDAQJ/IAAgA2ohBQJAIANBB0wEQANAIAAgBU8NAiAAIAItAAA6AAAgAEEBaiEAIAJBAWohAgwAAAsACyAEQQFGBEACQCAAIAJrIgZBB00EQCAAIAItAAA6AAAgACACLQABOgABIAAgAi0AAjoAAiAAIAItAAM6AAMgAEEEaiACIAZBAnQiBkHAHmooAgBqIgIQFyACIAZB4B5qKAIAayECDAELIAAgAhAMCyACQQhqIQIgAEEIaiEACwJAAkACQAJAIAUgAU0EQCAAIANqIQEgBEEBRyAAIAJrQQ9Kcg0BA0AgACACEAwgAkEIaiECIABBCGoiACABSQ0ACwwFCyAAIAFLBEAgACEBDAQLIARBAUcgACACa0EPSnINASAAIQMgAiEEA0AgAyAEEAwgBEEIaiEEIANBCGoiAyABSQ0ACwwCCwNAIAAgAhAHIAJBEGohAiAAQRBqIgAgAUkNAAsMAwsgACEDIAIhBANAIAMgBBAHIARBEGohBCADQRBqIgMgAUkNAAsLIAIgASAAa2ohAgsDQCABIAVPDQEgASACLQAAOgAAIAFBAWohASACQQFqIQIMAAALAAsLQQECfyAAIAAoArjgASIDNgLE4AEgACgCvOABIQQgACABNgK84AEgACABIAJqNgK44AEgACABIAQgA2tqNgLA4AELpgEBAX8gACAAKALs4QEQFjYCyOABIABCADcD+OABIABCADcDuOABIABBwOABakIANwMAIABBqNAAaiIBQYyAgOAANgIAIABBADYCmOIBIABCADcDiOEBIABCAzcDgOEBIABBrNABakHgEikCADcCACAAQbTQAWpB6BIoAgA2AgAgACABNgIMIAAgAEGYIGo2AgggACAAQaAwajYCBCAAIABBEGo2AgALYQEBf0G4fyEDAkAgAUEDSQ0AIAIgABAhIgFBA3YiADYCCCACIAFBAXE2AgQgAiABQQF2QQNxIgM2AgACQCADQX9qIgFBAksNAAJAIAFBAWsOAgEAAgtBbA8LIAAhAwsgAwsMACAAIAEgAkEAEC4LiAQCA38CfiADEBYhBCAAQQBBKBAQIQAgBCACSwRAIAQPCyABRQRAQX8PCwJAAkAgA0EBRg0AIAEoAAAiBkGo6r5pRg0AQXYhAyAGQXBxQdDUtMIBRw0BQQghAyACQQhJDQEgAEEAQSgQECEAIAEoAAQhASAAQQE2AhQgACABrTcDAEEADwsgASACIAMQLyIDIAJLDQAgACADNgIYQXIhAyABIARqIgVBf2otAAAiAkEIcQ0AIAJBIHEiBkUEQEFwIQMgBS0AACIFQacBSw0BIAVBB3GtQgEgBUEDdkEKaq2GIgdCA4h+IAd8IQggBEEBaiEECyACQQZ2IQMgAkECdiEFAkAgAkEDcUF/aiICQQJLBEBBACECDAELAkACQAJAIAJBAWsOAgECAAsgASAEai0AACECIARBAWohBAwCCyABIARqLwAAIQIgBEECaiEEDAELIAEgBGooAAAhAiAEQQRqIQQLIAVBAXEhBQJ+AkACQAJAIANBf2oiA0ECTQRAIANBAWsOAgIDAQtCfyAGRQ0DGiABIARqMQAADAMLIAEgBGovAACtQoACfAwCCyABIARqKAAArQwBCyABIARqKQAACyEHIAAgBTYCICAAIAI2AhwgACAHNwMAQQAhAyAAQQA2AhQgACAHIAggBhsiBzcDCCAAIAdCgIAIIAdCgIAIVBs+AhALIAMLWwEBf0G4fyEDIAIQFiICIAFNBH8gACACakF/ai0AACIAQQNxQQJ0QaAeaigC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C0Egak8NAQsgByAHKQNoNwMQIAcgBykDYDcDCCAEIA0gB0EIaiAHQdwAaiAPIA4gESAQEB4hCwwBCyACIARqIQggBCAKEAcgAkERTwRAIARBEGohAgNAIAIgCkEQaiIKEAcgAkEQaiICIAhJDQALCyAIIAlrIQIgByATNgJcIAkgCCAOa0sEQCAJIAggEWtLBEBBbCELDAILIBAgAiAOayICaiIKIANqIBBNBEAgCCAKIAMQDxoMAgsgCCAKQQAgAmsQDyEIIAcgAiADaiIDNgJkIAggAmshCCAOIQILIAlBEE8EQCADIAhqIQMDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALDAELAkAgCUEHTQRAIAggAi0AADoAACAIIAItAAE6AAEgCCACLQACOgACIAggAi0AAzoAAyAIQQRqIAIgCUECdCIDQcAeaigCAGoiAhAXIAIgA0HgHmooAgBrIQIgBygCZCEDDAELIAggAhAMCyADQQlJDQAgAyAIaiEDIAhBCGoiCCACQQhqIgJrQQ9MBEADQCAIIAIQDCACQQhqIQIgCEEIaiIIIANJDQAMAgALAAsDQCAIIAIQByACQRBqIQIgCEEQaiIIIANJDQALCyAHQRhqEAQaIAsgDCALEAMiAhshDCAEIAQgC2ogAhshBCAFQX9qIgUNAAsgDBADDQFBbCEMIAdBGGoQBEECSQ0BQQAhCANAIAhBA0cEQCAAIAhBAnQiAmpBrNABaiACIAdqKAJENgIAIAhBAWohCAwBCwsgBygCXCEIC0G6fyEMIA8gCGsiACANIARrSw0AIAQEfyAEIAggABALIABqBUEACyABayEMCyAHQfAAaiQAIAwLkRcCFn8FfiMAQdABayIHJAAgByAAKALw4QEiCDYCvAEgASACaiESIAggACgCgOIBaiETAkACQCAFRQRAIAEhAwwBCyAAKALE4AEhESAAKALA4AEhFSAAKAK84AEhDyAAQQE2AozhAUEAIQgDQCAIQQNHBEAgByAIQQJ0IgJqIAAgAmpBrNABaigCADYCVCAIQQFqIQgMAQsLIAcgETYCZCAHIA82AmAgByABIA9rNgJoQWwhECAHQShqIAMgBBAGEAMNASAFQQQgBUEESBshFyAHQTxqIAdBKGogACgCABATIAdBxABqIAdBKGogACgCCBATIAdBzABqIAdB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IAdB0AFqJAAgEAslACAAQgA3AgAgAEEAOwEIIABBADoACyAAIAE2AgwgACACOgAKC7QFAQN/IwBBMGsiBCQAIABB/wFqIgVBfWohBgJAIAMvAQIEQCAEQRhqIAEgAhAGIgIQAw0BIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahASOgAAIAMgBEEIaiAEQRhqEBI6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0FIAEgBEEQaiAEQRhqEBI6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBSABIARBCGogBEEYahASOgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEjoAACABIAJqIABrIQIMAwsgAyAEQRBqIARBGGoQEjoAAiADIARBCGogBEEYahASOgADIANBBGohAwwAAAsACyAEQRhqIAEgAhAGIgIQAw0AIARBEGogBEEYaiADEBwgBEEIaiAEQRhqIAMQHCAAIQMDQAJAIARBGGoQBCADIAZPckUEQCADIARBEGogBEEYahAROgAAIAMgBEEIaiAEQRhqEBE6AAEgBEEYahAERQ0BIANBAmohAwsgBUF+aiEFAn8DQEG6fyECIAMiASAFSw0EIAEgBEEQaiAEQRhqEBE6AAAgAUEBaiEDIARBGGoQBEEDRgRAQQIhAiAEQQhqDAILIAMgBUsNBCABIARBCGogBEEYahAROgABIAFBAmohA0EDIQIgBEEYahAEQQNHDQALIARBEGoLIQUgAyAFIARBGGoQEToAACABIAJqIABrIQIMAgsgAyAEQRBqIARBGGoQEToAAiADIARBCGogBEEYahAROgADIANBBGohAwwAAAsACyAEQTBqJAAgAgtpAQF/An8CQAJAIAJBB00NACABKAAAQbfIwuF+Rw0AIAAgASgABDYCmOIBQWIgAEEQaiABIAIQPiIDEAMNAhogAEKBgICAEDcDiOEBIAAgASADaiACIANrECoMAQsgACABIAIQKgtBAAsLrQMBBn8jAEGAAWsiAyQAQWIhCAJAIAJBCUkNACAAQZjQAGogAUEIaiIEIAJBeGogAEGY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wOABCwutAgIEfwF+IwBBQGoiBCQAAkACQCACQQhJDQAgASgAAEFwcUHQ1LTCAUcNACABIAIQIiEBIABCADcDCCAAQQA2AgQgACABNgIADAELIARBGGogASACEC0iAxADBEAgACADEBoMAQsgAwRAIABBuH8QGgwBCyACIAQoAjAiA2shAiABIANqIQMDQAJAIAAgAyACIARBCGoQLCIFEAMEfyAFBSACIAVBA2oiBU8NAUG4fwsQGgwCCyAGQQFqIQYgAiAFayECIAMgBWohAyAEKAIMRQ0ACyAEKAI4BEAgAkEDTQRAIABBuH8QGgwCCyADQQRqIQMLIAQoAighAiAEKQMYIQcgAEEANgIEIAAgAyABazYCACAAIAIgBmytIAcgB0J/URs3AwgLIARBQGskAAslAQF/IwBBEGsiAiQAIAIgACABEFEgAigCACEAIAJBEGokACAAC30BBH8jAEGQBGsiBCQAIARB/wE2AggCQCAEQRBqIARBCGogBEEMaiABIAIQFSIGEAMEQCAGIQUMAQtBVCEFIAQoAgwiB0EGSw0AIAMgBEEQaiAEKAIIIAcQQSIFEAMNACAAIAEgBmogAiAGayADEDwhBQsgBEGQBGokACAFC4cBAgJ/An5BABAWIQMCQANAIAEgA08EQAJAIAAoAABBcHFB0NS0wgFGBEAgACABECIiAhADRQ0BQn4PCyAAIAEQVSIEQn1WDQMgBCAFfCIFIARUIQJCfiEEIAINAyAAIAEQUiICEAMNAwsgASACayEBIAAgAmohAAwBCwtCfiAFIAEbIQQLIAQLPwIBfwF+IwBBMGsiAiQAAn5CfiACQQhqIAAgARAtDQAaQgAgAigCHEEBRg0AGiACKQMICyEDIAJBMGokACADC40BAQJ/IwBBMGsiASQAAkAgAEUNACAAKAKI4gENACABIABB/OEBaigCADYCKCABIAApAvThATcDICAAEDAgACgCqOIBIQIgASABKAIoNgIYIAEgASkDIDcDECACIAFBEGoQGyAAQQA2AqjiASABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALKgECfyMAQRBrIgAkACAAQQA2AgggAEIANwMAIAAQWCEBIABBEGokACABC4cBAQN/IwBBEGsiAiQAAkAgACgCAEUgACgCBEVzDQAgAiAAKAIINgIIIAIgACkCADcDAAJ/IAIoAgAiAQRAIAIoAghBqOMJIAERBQAMAQtBqOMJECgLIgFFDQAgASAAKQIANwL04QEgAUH84QFqIAAoAgg2AgAgARBZIAEhAwsgAkEQaiQAIAMLywEBAn8jAEEgayIBJAAgAEGBgIDAADYCtOIBIABBADYCiOIBIABBADYC7OEBIABCADcDkOIBIABBADYCpOMJIABBADYC3OIBIABCADcCzOIBIABBADYCvOIBIABBADYCxOABIABCADcCnOIBIABBpOIBakIANwIAIABBrOIBakEANgIAIAFCADcCECABQgA3AhggASABKQMYNwMIIAEgASkDEDcDACABKAIIQQh2QQFxIQIgAEEANgLg4gEgACACNgKM4gEgAUEgaiQAC3YBA38jAEEwayIBJAAgAARAIAEgAEHE0AFqIgIoAgA2AiggASAAKQK80AE3AyAgACgCACEDIAEgAigCADYCGCABIAApArzQATcDECADIAFBEGoQGyABIAEoAig2AgggASABKQMgNwMAIAAgARAbCyABQTBqJAALzAEBAX8gACABKAK00AE2ApjiASAAIAEoAgQiAjYCwOABIAAgAjYCvOABIAAgAiABKAIIaiICNgK44AEgACACNgLE4AEgASgCuNABBEAgAEKBgICAEDcDiOEBIAAgAUGk0ABqNgIMIAAgAUGUIGo2AgggACABQZwwajYCBCAAIAFBDGo2AgAgAEGs0AFqIAFBqNABaigCADYCACAAQbDQAWogAUGs0AFqKAIANgIAIABBtNABaiABQbDQAWooAgA2AgAPCyAAQgA3A4jhAQs7ACACRQRAQbp/DwsgBEUEQEFsDwsgAiAEEGAEQCAAIAEgAiADIAQgBRBhDwsgACABIAIgAyAEIAUQZQtGAQF/IwBBEGsiBSQAIAVBCGogBBAOAn8gBS0ACQRAIAAgASACIAMgBBAyDAELIAAgASACIAMgBBA0CyEAIAVBEGokACAACzQAIAAgAyAEIAUQNiIFEAMEQCAFDwsgBSAESQR/IAEgAiADIAVqIAQgBWsgABA1BUG4fwsLRgEBfyMAQRBrIgUkACAFQQhqIAQQDgJ/IAUtAAkEQCAAIAEgAiADIAQQYgwBCyAAIAEgAiADIAQQNQshACAFQRBqJAAgAAtZAQF/QQ8hAiABIABJBEAgAUEE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";THREE.ZSTDDecoder=Q})();(function(){var BufferAttribute=THREE.BufferAttribute,BufferGeometry=THREE.BufferGeometry,Color=THREE.Color,FileLoader=THREE.FileLoader,Loader=THREE.Loader,LinearSRGBColorSpace=THREE.LinearSRGBColorSpace,SRGBColorSpace=THREE.SRGBColorSpace;const _taskCache=new WeakMap;class DRACOLoader extends Loader{constructor(manager){super(manager);this.decoderPath="";this.decoderConfig={};this.decoderBinary=null;this.decoderPending=null;this.workerLimit=4;this.workerPool=[];this.workerNextTaskID=1;this.workerSourceURL="";this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"};this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(path){this.decoderPath=path;return this}setDecoderConfig(config){this.decoderConfig=config;return this}setWorkerLimit(workerLimit){this.workerLimit=workerLimit;return this}load(url,onLoad,onProgress,onError){const loader=new FileLoader(this.manager);loader.setPath(this.path);loader.setResponseType("arraybuffer");loader.setRequestHeader(this.requestHeader);loader.setWithCredentials(this.withCredentials);loader.load(url,buffer=>{this.parse(buffer,onLoad,onError)},onProgress,onError)}parse(buffer,onLoad,onError){this.decodeDracoFile(buffer,onLoad,null,null,SRGBColorSpace).catch(onError)}decodeDracoFile(buffer,callback,attributeIDs,attributeTypes,vertexColorSpace=LinearSRGBColorSpace){const taskConfig={attributeIDs:attributeIDs||this.defaultAttributeIDs,attributeTypes:attributeTypes||this.defaultAttributeTypes,useUniqueIDs:!!attributeIDs,vertexColorSpace:vertexColorSpace};return this.decodeGeometry(buffer,taskConfig).then(callback)}decodeGeometry(buffer,taskConfig){const taskKey=JSON.stringify(taskConfig);if(_taskCache.has(buffer)){const cachedTask=_taskCache.get(buffer);if(cachedTask.key===taskKey){return cachedTask.promise}else if(buffer.byteLength===0){throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different "+"settings. Buffer has already been transferred.")}}let worker;const taskID=this.workerNextTaskID++;const taskCost=buffer.byteLength;const geometryPending=this._getWorker(taskID,taskCost).then(_worker=>{worker=_worker;return new Promise((resolve,reject)=>{worker._callbacks[taskID]={resolve,reject};worker.postMessage({type:"decode",id:taskID,taskConfig,buffer},[buffer])})}).then(message=>this._createGeometry(message.geometry));geometryPending.catch(()=>true).then(()=>{if(worker&&taskID){this._releaseTask(worker,taskID)}});_taskCache.set(buffer,{key:taskKey,promise:geometryPending});return geometryPending}_createGeometry(geometryData){const geometry=new BufferGeometry;if(geometryData.index){geometry.setIndex(new BufferAttribute(geometryData.index.array,1))}for(let i=0;i{loader.load(url,resolve,undefined,reject)})}preload(){this._initDecoder();return this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const useJS=typeof WebAssembly!=="object"||this.decoderConfig.type==="js";const librariesPending=[];if(useJS){librariesPending.push(this._loadLibrary("draco_decoder.js","text"))}else{librariesPending.push(this._loadLibrary("draco_wasm_wrapper.js","text"));librariesPending.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))}this.decoderPending=Promise.all(librariesPending).then(libraries=>{const jsContent=libraries[0];if(!useJS){this.decoderConfig.wasmBinary=libraries[1]}const fn=DRACOWorker.toString();const body=["/* draco decoder */",jsContent,"","/* worker */",fn.substring(fn.indexOf("{")+1,fn.lastIndexOf("}"))].join("\n");this.workerSourceURL=URL.createObjectURL(new Blob([body]))});return this.decoderPending}_getWorker(taskID,taskCost){return this._initDecoder().then(()=>{if(this.workerPool.lengthb._taskLoad?-1:1})}const worker=this.workerPool[this.workerPool.length-1];worker._taskCosts[taskID]=taskCost;worker._taskLoad+=taskCost;return worker})}_releaseTask(worker,taskID){worker._taskLoad-=worker._taskCosts[taskID];delete worker._callbacks[taskID];delete worker._taskCosts[taskID]}debug(){console.log("Task load: ",this.workerPool.map(worker=>worker._taskLoad))}dispose(){for(let i=0;i{const draco=module.draco;const decoder=new draco.Decoder;try{const geometry=decodeGeometry(draco,decoder,new Int8Array(buffer),taskConfig);const buffers=geometry.attributes.map(attr=>attr.array.buffer);if(geometry.index)buffers.push(geometry.index.array.buffer);self.postMessage({type:"decode",id:message.id,geometry},buffers)}catch(error){console.error(error);self.postMessage({type:"error",id:message.id,error:error.message})}finally{draco.destroy(decoder)}});break;}};function decodeGeometry(draco,decoder,array,taskConfig){const attributeIDs=taskConfig.attributeIDs;const attributeTypes=taskConfig.attributeTypes;let dracoGeometry;let decodingStatus;const geometryType=decoder.GetEncodedGeometryType(array);if(geometryType===draco.TRIANGULAR_MESH){dracoGeometry=new draco.Mesh;decodingStatus=decoder.DecodeArrayToMesh(array,array.byteLength,dracoGeometry)}else if(geometryType===draco.POINT_CLOUD){dracoGeometry=new draco.PointCloud;decodingStatus=decoder.DecodeArrayToPointCloud(array,array.byteLength,dracoGeometry)}else{throw new Error("THREE.DRACOLoader: Unexpected geometry type.")}if(!decodingStatus.ok()||dracoGeometry.ptr===0){throw new Error("THREE.DRACOLoader: Decoding failed: "+decodingStatus.error_msg())}const geometry={index:null,attributes:[]};for(const attributeName in attributeIDs){const attributeType=self[attributeTypes[attributeName]];let attribute;let attributeID;if(taskConfig.useUniqueIDs){attributeID=attributeIDs[attributeName];attribute=decoder.GetAttributeByUniqueId(dracoGeometry,attributeID)}else{attributeID=decoder.GetAttributeId(dracoGeometry,draco[attributeIDs[attributeName]]);if(attributeID===-1)continue;attribute=decoder.GetAttribute(dracoGeometry,attributeID)}const attributeResult=decodeAttribute(draco,decoder,dracoGeometry,attributeName,attributeType,attribute);if(attributeName==="color"){attributeResult.vertexColorSpace=taskConfig.vertexColorSpace}geometry.attributes.push(attributeResult)}if(geometryType===draco.TRIANGULAR_MESH){geometry.index=decodeIndex(draco,decoder,dracoGeometry)}draco.destroy(dracoGeometry);return geometry}function decodeIndex(draco,decoder,dracoGeometry){const numFaces=dracoGeometry.num_faces();const numIndices=numFaces*3;const byteLength=numIndices*4;const ptr=draco._malloc(byteLength);decoder.GetTrianglesUInt32Array(dracoGeometry,byteLength,ptr);const index=new Uint32Array(draco.HEAPF32.buffer,ptr,numIndices).slice();draco._free(ptr);return{array:index,itemSize:1}}function decodeAttribute(draco,decoder,dracoGeometry,attributeName,attributeType,attribute){const numComponents=attribute.num_components();const numPoints=dracoGeometry.num_points();const numValues=numPoints*numComponents;const byteLength=numValues*attributeType.BYTES_PER_ELEMENT;const dataType=getDracoDataType(draco,attributeType);const ptr=draco._malloc(byteLength);decoder.GetAttributeDataArrayForAllPoints(dracoGeometry,attribute,dataType,byteLength,ptr);const array=new attributeType(draco.HEAPF32.buffer,ptr,numValues).slice();draco._free(ptr);return{name:attributeName,array:array,itemSize:numComponents}}function getDracoDataType(draco,attributeType){switch(attributeType){case Float32Array:return draco.DT_FLOAT32;case Int8Array:return draco.DT_INT8;case Int16Array:return draco.DT_INT16;case Int32Array:return draco.DT_INT32;case Uint8Array:return draco.DT_UINT8;case Uint16Array:return draco.DT_UINT16;case Uint32Array:return draco.DT_UINT32;}}}THREE.DRACOLoader=DRACOLoader})();(function(e){var modifiedJSON={};modifiedJSON.parse=function(data){json=JSON.parse(data);json.nodes&&json.nodes.forEach((node,index)=>{(node.extras||(node.extras={})).id=index.toString()});return json};e(modifiedJSON)})(function(JSON){(function(){var AnimationClip=THREE.AnimationClip,Bone=THREE.Bone,Box3=THREE.Box3,BufferAttribute=THREE.BufferAttribute,BufferGeometry=THREE.BufferGeometry,ClampToEdgeWrapping=THREE.ClampToEdgeWrapping,Color=THREE.Color,DirectionalLight=THREE.DirectionalLight,DoubleSide=THREE.DoubleSide,FileLoader=THREE.FileLoader,FrontSide=THREE.FrontSide,Group=THREE.Group,ImageBitmapLoader=THREE.ImageBitmapLoader,InstancedMesh=THREE.InstancedMesh,InterleavedBuffer=THREE.InterleavedBuffer,InterleavedBufferAttribute=THREE.InterleavedBufferAttribute,Interpolant=THREE.Interpolant,InterpolateDiscrete=THREE.InterpolateDiscrete,InterpolateLinear=THREE.InterpolateLinear,Line=THREE.Line,LineBasicMaterial=THREE.LineBasicMaterial,LineLoop=THREE.LineLoop,LineSegments=THREE.LineSegments,LinearFilter=THREE.LinearFilter,LinearMipmapLinearFilter=THREE.LinearMipmapLinearFilter,LinearMipmapNearestFilter=THREE.LinearMipmapNearestFilter,Loader=THREE.Loader,LoaderUtils=THREE.LoaderUtils,Material=THREE.Material,MathUtils=THREE.MathUtils,Matrix4=THREE.Matrix4,Mesh=THREE.Mesh,MeshBasicMaterial=THREE.MeshBasicMaterial,MeshPhysicalMaterial=THREE.MeshPhysicalMaterial,MeshStandardMaterial=THREE.MeshStandardMaterial,MirroredRepeatWrapping=THREE.MirroredRepeatWrapping,NearestFilter=THREE.NearestFilter,NearestMipmapLinearFilter=THREE.NearestMipmapLinearFilter,NearestMipmapNearestFilter=THREE.NearestMipmapNearestFilter,NumberKeyframeTrack=THREE.NumberKeyframeTrack,Object3D=THREE.Object3D,OrthographicCamera=THREE.OrthographicCamera,PerspectiveCamera=THREE.PerspectiveCamera,PointLight=THREE.PointLight,Points=THREE.Points,PointsMaterial=THREE.PointsMaterial,PropertyBinding=THREE.PropertyBinding,Quaternion=THREE.Quaternion,QuaternionKeyframeTrack=THREE.QuaternionKeyframeTrack,RepeatWrapping=THREE.RepeatWrapping,Skeleton=THREE.Skeleton,SkinnedMesh=THREE.SkinnedMesh,Sphere=THREE.Sphere,SpotLight=THREE.SpotLight,Texture=THREE.Texture,TextureLoader=THREE.TextureLoader,TriangleFanDrawMode=THREE.TriangleFanDrawMode,TriangleStripDrawMode=THREE.TriangleStripDrawMode,Vector2=THREE.Vector2,Vector3=THREE.Vector3,VectorKeyframeTrack=THREE.VectorKeyframeTrack,sRGBEncoding=THREE.sRGBEncoding;var toTrianglesDrawMode=THREE.BufferGeometryUtils.toTrianglesDrawMode;class GLTFLoader extends Loader{constructor(manager){super(manager);this.dracoLoader=null;this.ktx2Loader=null;this.meshoptDecoder=null;this.pluginCallbacks=[];this.register(function(parser){return new GLTFMaterialsClearcoatExtension(parser)});this.register(function(parser){return new GLTFTextureBasisUExtension(parser)});this.register(function(parser){return new GLTFTextureWebPExtension(parser)});this.register(function(parser){return new GLTFTextureAVIFExtension(parser)});this.register(function(parser){return new GLTFMaterialsSheenExtension(parser)});this.register(function(parser){return new GLTFMaterialsTransmissionExtension(parser)});this.register(function(parser){return new GLTFMaterialsVolumeExtension(parser)});this.register(function(parser){return new GLTFMaterialsIorExtension(parser)});this.register(function(parser){return new GLTFMaterialsEmissiveStrengthExtension(parser)});this.register(function(parser){return new GLTFMaterialsSpecularExtension(parser)});this.register(function(parser){return new GLTFMaterialsIridescenceExtension(parser)});this.register(function(parser){return new GLTFLightsExtension(parser)});this.register(function(parser){return new GLTFMeshoptCompression(parser)});this.register(function(parser){return new GLTFMeshGpuInstancing(parser)})}load(url,onLoad,onProgress,onError){const scope=this;let resourcePath;if(this.resourcePath!==""){resourcePath=this.resourcePath}else if(this.path!==""){resourcePath=this.path}else{resourcePath=LoaderUtils.extractUrlBase(url)}this.manager.itemStart(url);const _onError=function(e){if(onError){onError(e)}else{console.error(e)}scope.manager.itemError(url);scope.manager.itemEnd(url)};const loader=new FileLoader(this.manager);loader.setPath(this.path);loader.setResponseType("arraybuffer");loader.setRequestHeader(this.requestHeader);loader.setWithCredentials(this.withCredentials);loader.load(url,function(data){try{scope.parse(data,resourcePath,function(gltf){onLoad(gltf);scope.manager.itemEnd(url)},_onError)}catch(e){_onError(e)}},onProgress,_onError)}setDRACOLoader(dracoLoader){this.dracoLoader=dracoLoader;return this}setDDSLoader(){throw new Error("THREE.GLTFLoader: \"MSFT_texture_dds\" no longer supported. Please update to \"KHR_texture_basisu\".")}setKTX2Loader(ktx2Loader){this.ktx2Loader=ktx2Loader;return this}setMeshoptDecoder(meshoptDecoder){this.meshoptDecoder=meshoptDecoder;return this}register(callback){if(this.pluginCallbacks.indexOf(callback)===-1){this.pluginCallbacks.push(callback)}return this}unregister(callback){if(this.pluginCallbacks.indexOf(callback)!==-1){this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(callback),1)}return this}parse(data,path,onLoad,onError){let json;const extensions={};const plugins={};const textDecoder=new TextDecoder;if(typeof data==="string"){json=JSON.parse(data)}else if(data instanceof ArrayBuffer){const magic=textDecoder.decode(new Uint8Array(data,0,4));if(magic===BINARY_EXTENSION_HEADER_MAGIC){try{extensions[EXTENSIONS.KHR_BINARY_GLTF]=new GLTFBinaryExtension(data)}catch(error){if(onError)onError(error);return}json=JSON.parse(extensions[EXTENSIONS.KHR_BINARY_GLTF].content)}else{json=JSON.parse(textDecoder.decode(data))}}else{json=data}if(json.asset===undefined||json.asset.version[0]<2){if(onError)onError(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));return}const parser=new GLTFParser(json,{path:path||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});parser.fileLoader.setRequestHeader(this.requestHeader);for(let i=0;i=0&&plugins[extensionName]===undefined){console.warn("THREE.GLTFLoader: Unknown extension \""+extensionName+"\".")}}}}parser.setExtensions(extensions);parser.setPlugins(plugins);parser.parse(onLoad,onError)}parseAsync(data,path){const scope=this;return new Promise(function(resolve,reject){scope.parse(data,path,resolve,reject)})}}function GLTFRegistry(){let objects={};return{get:function(key){return objects[key]},add:function(key,object){objects[key]=object},remove:function(key){delete objects[key]},removeAll:function(){objects={}}}}const EXTENSIONS={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class GLTFLightsExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.KHR_LIGHTS_PUNCTUAL;this.cache={refs:{},uses:{}}}_markDefs(){const parser=this.parser;const nodeDefs=this.parser.json.nodes||[];for(let nodeIndex=0,nodeLength=nodeDefs.length;nodeIndex=0){throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures")}else{return null}}return parser.loadTextureImage(textureIndex,extension.source,loader)}}class GLTFTextureWebPExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.EXT_TEXTURE_WEBP;this.isSupported=null}loadTexture(textureIndex){const name=this.name;const parser=this.parser;const json=parser.json;const textureDef=json.textures[textureIndex];if(!textureDef.extensions||!textureDef.extensions[name]){return null}const extension=textureDef.extensions[name];const source=json.images[extension.source];let loader=parser.textureLoader;if(source.uri){const handler=parser.options.manager.getHandler(source.uri);if(handler!==null)loader=handler}return this.detectSupport().then(function(isSupported){if(isSupported)return parser.loadTextureImage(textureIndex,extension.source,loader);if(json.extensionsRequired&&json.extensionsRequired.indexOf(name)>=0){throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.")}return parser.loadTexture(textureIndex)})}detectSupport(){if(!this.isSupported){this.isSupported=new Promise(function(resolve){const image=new Image;image.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA";image.onload=image.onerror=function(){resolve(image.height===1)}})}return this.isSupported}}class GLTFTextureAVIFExtension{constructor(parser){this.parser=parser;this.name=EXTENSIONS.EXT_TEXTURE_AVIF;this.isSupported=null}loadTexture(textureIndex){const name=this.name;const parser=this.parser;const json=parser.json;const textureDef=json.textures[textureIndex];if(!textureDef.extensions||!textureDef.extensions[name]){return null}const extension=textureDef.extensions[name];const source=json.images[extension.source];let loader=parser.textureLoader;if(source.uri){const handler=parser.options.manager.getHandler(source.uri);if(handler!==null)loader=handler}return this.detectSupport().then(function(isSupported){if(isSupported)return parser.loadTextureImage(textureIndex,extension.source,loader);if(json.extensionsRequired&&json.extensionsRequired.indexOf(name)>=0){throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.")}return parser.loadTexture(textureIndex)})}detectSupport(){if(!this.isSupported){this.isSupported=new Promise(function(resolve){const image=new Image;image.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=";image.onload=image.onerror=function(){resolve(image.height===1)}})}return this.isSupported}}class GLTFMeshoptCompression{constructor(parser){this.name=EXTENSIONS.EXT_MESHOPT_COMPRESSION;this.parser=parser}loadBufferView(index){const json=this.parser.json;const bufferView=json.bufferViews[index];if(bufferView.extensions&&bufferView.extensions[this.name]){const extensionDef=bufferView.extensions[this.name];const buffer=this.parser.getDependency("buffer",extensionDef.buffer);const decoder=this.parser.options.meshoptDecoder;if(!decoder||!decoder.supported){if(json.extensionsRequired&&json.extensionsRequired.indexOf(this.name)>=0){throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files")}else{return null}}return buffer.then(function(res){const byteOffset=extensionDef.byteOffset||0;const byteLength=extensionDef.byteLength||0;const count=extensionDef.count;const stride=extensionDef.byteStride;const source=new Uint8Array(res,byteOffset,byteLength);if(decoder.decodeGltfBufferAsync){return decoder.decodeGltfBufferAsync(count,stride,source,extensionDef.mode,extensionDef.filter).then(function(res){return res.buffer})}else{return decoder.ready.then(function(){const result=new ArrayBuffer(count*stride);decoder.decodeGltfBuffer(new Uint8Array(result),count,stride,source,extensionDef.mode,extensionDef.filter);return result})}})}else{return null}}}class GLTFMeshGpuInstancing{constructor(parser){this.name=EXTENSIONS.EXT_MESH_GPU_INSTANCING;this.parser=parser}createNodeMesh(nodeIndex){const json=this.parser.json;const nodeDef=json.nodes[nodeIndex];if(!nodeDef.extensions||!nodeDef.extensions[this.name]||nodeDef.mesh===undefined){return null}const meshDef=json.meshes[nodeDef.mesh];for(const primitive of meshDef.primitives){if(primitive.mode!==WEBGL_CONSTANTS.TRIANGLES&&primitive.mode!==WEBGL_CONSTANTS.TRIANGLE_STRIP&&primitive.mode!==WEBGL_CONSTANTS.TRIANGLE_FAN&&primitive.mode!==undefined){return null}}const extensionDef=nodeDef.extensions[this.name];const attributesDef=extensionDef.attributes;const pending=[];const attributes={};for(const key in attributesDef){pending.push(this.parser.getDependency("accessor",attributesDef[key]).then(accessor=>{attributes[key]=accessor;return attributes[key]}))}if(pending.length<1){return null}pending.push(this.parser.createNodeMesh(nodeIndex));return Promise.all(pending).then(results=>{const nodeObject=results.pop();const meshes=nodeObject.isGroup?nodeObject.children:[nodeObject];const count=results[0].count;const instancedMeshes=[];for(const mesh of meshes){const m=new Matrix4;const p=new Vector3;const q=new Quaternion;const s=new Vector3(1,1,1);const instancedMesh=new InstancedMesh(mesh.geometry,mesh.material,count);for(let i=0;i0||uri.search(/^data\:image\/jpeg/)===0)return"image/jpeg";if(uri.search(/\.webp($|\?)/i)>0||uri.search(/^data\:image\/webp/)===0)return"image/webp";return"image/png"}const _identityMatrix=new Matrix4;class GLTFParser{constructor(json={},options={}){this.json=json;this.extensions={};this.plugins={};this.options=options;this.cache=new GLTFRegistry;this.associations=new Map;this.primitiveCache={};this.nodeCache={};this.meshCache={refs:{},uses:{}};this.cameraCache={refs:{},uses:{}};this.lightCache={refs:{},uses:{}};this.sourceCache={};this.textureCache={};this.nodeNamesUsed={};let isSafari=false;let isFirefox=false;let firefoxVersion=-1;if(typeof navigator!=="undefined"){isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===true;isFirefox=navigator.userAgent.indexOf("Firefox")>-1;firefoxVersion=isFirefox?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1}if(typeof createImageBitmap==="undefined"||isSafari||isFirefox&&firefoxVersion<98){this.textureLoader=new TextureLoader(this.options.manager)}else{this.textureLoader=new ImageBitmapLoader(this.options.manager)}this.textureLoader.setCrossOrigin(this.options.crossOrigin);this.textureLoader.setRequestHeader(this.options.requestHeader);this.fileLoader=new FileLoader(this.options.manager);this.fileLoader.setResponseType("arraybuffer");if(this.options.crossOrigin==="use-credentials"){this.fileLoader.setWithCredentials(true)}}setExtensions(extensions){this.extensions=extensions}setPlugins(plugins){this.plugins=plugins}parse(onLoad,onError){const parser=this;const json=this.json;const extensions=this.extensions;this.cache.removeAll();this.nodeCache={};this._invokeAll(function(ext){return ext._markDefs&&ext._markDefs()});Promise.all(this._invokeAll(function(ext){return ext.beforeRoot&&ext.beforeRoot()})).then(function(){return Promise.all([parser.getDependencies("scene"),parser.getDependencies("animation"),parser.getDependencies("camera")])}).then(function(dependencies){const result={scene:dependencies[0][json.scene||0],scenes:dependencies[0],animations:dependencies[1],cameras:dependencies[2],asset:json.asset,parser:parser,userData:{}};addUnknownExtensionsToUserData(extensions,result,json);assignExtrasToUserData(result,json);Promise.all(parser._invokeAll(function(ext){return ext.afterRoot&&ext.afterRoot(result)})).then(function(){onLoad(result)})}).catch(onError)}_markDefs(){const nodeDefs=this.json.nodes||[];const skinDefs=this.json.skins||[];const meshDefs=this.json.meshes||[];for(let skinIndex=0,skinLength=skinDefs.length;skinIndex{const mappings=this.associations.get(original);if(mappings!=null){this.associations.set(clone,mappings)}for(const[i,child]of original.children.entries()){updateMappings(child,clone.children[i])}};updateMappings(object,ref);ref.name+="_instance_"+cache.uses[index]++;return ref}_invokeOne(func){const extensions=Object.values(this.plugins);extensions.push(this);for(let i=0;i=2)bufferAttribute.setY(index,sparseValues[i*itemSize+1]);if(itemSize>=3)bufferAttribute.setZ(index,sparseValues[i*itemSize+2]);if(itemSize>=4)bufferAttribute.setW(index,sparseValues[i*itemSize+3]);if(itemSize>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return bufferAttribute})}loadTexture(textureIndex){const json=this.json;const options=this.options;const textureDef=json.textures[textureIndex];const sourceIndex=textureDef.source;const sourceDef=json.images[sourceIndex];let loader=this.textureLoader;if(sourceDef.uri){const handler=options.manager.getHandler(sourceDef.uri);if(handler!==null)loader=handler}return this.loadTextureImage(textureIndex,sourceIndex,loader)}loadTextureImage(textureIndex,sourceIndex,loader){const parser=this;const json=this.json;const textureDef=json.textures[textureIndex];const sourceDef=json.images[sourceIndex];const cacheKey=(sourceDef.uri||sourceDef.bufferView)+":"+textureDef.sampler;if(this.textureCache[cacheKey]){return this.textureCache[cacheKey]}const promise=this.loadImageSource(sourceIndex,loader).then(function(texture){texture.flipY=false;texture.name=textureDef.name||sourceDef.name||"";if(texture.name===""&&typeof sourceDef.uri==="string"&&sourceDef.uri.startsWith("data:image/")===false){texture.name=sourceDef.uri}const samplers=json.samplers||{};const sampler=samplers[textureDef.sampler]||{};texture.magFilter=WEBGL_FILTERS[sampler.magFilter]||LinearFilter;texture.minFilter=WEBGL_FILTERS[sampler.minFilter]||LinearMipmapLinearFilter;texture.wrapS=WEBGL_WRAPPINGS[sampler.wrapS]||RepeatWrapping;texture.wrapT=WEBGL_WRAPPINGS[sampler.wrapT]||RepeatWrapping;parser.associations.set(texture,{textures:textureIndex});return texture}).catch(function(){return null});this.textureCache[cacheKey]=promise;return promise}loadImageSource(sourceIndex,loader){const parser=this;const json=this.json;const options=this.options;if(this.sourceCache[sourceIndex]!==undefined){return this.sourceCache[sourceIndex].then(texture=>texture.clone())}const sourceDef=json.images[sourceIndex];const URL=self.URL||self.webkitURL;let sourceURI=sourceDef.uri||"";let isObjectURL=false;if(sourceDef.bufferView!==undefined){sourceURI=parser.getDependency("bufferView",sourceDef.bufferView).then(function(bufferView){isObjectURL=true;const blob=new Blob([bufferView],{type:sourceDef.mimeType});sourceURI=URL.createObjectURL(blob);return sourceURI})}else if(sourceDef.uri===undefined){throw new Error("THREE.GLTFLoader: Image "+sourceIndex+" is missing URI and bufferView")}const promise=Promise.resolve(sourceURI).then(function(sourceURI){return new Promise(function(resolve,reject){let onLoad=resolve;if(loader.isImageBitmapLoader===true){onLoad=function(imageBitmap){const texture=new Texture(imageBitmap);texture.needsUpdate=true;resolve(texture)}}loader.load(LoaderUtils.resolveURL(sourceURI,options.path),onLoad,undefined,reject)})}).then(function(texture){if(isObjectURL===true){URL.revokeObjectURL(sourceURI)}texture.userData.mimeType=sourceDef.mimeType||getImageURIMimeType(sourceDef.uri);return texture}).catch(function(error){console.error("THREE.GLTFLoader: Couldn't load texture",sourceURI);throw error});this.sourceCache[sourceIndex]=promise;return promise}assignTexture(materialParams,mapName,mapDef,encoding){const parser=this;return this.getDependency("texture",mapDef.index).then(function(texture){if(!texture)return null;if(mapDef.texCoord!==undefined&&mapDef.texCoord>0){texture=texture.clone();texture.channel=mapDef.texCoord}if(parser.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM]){const transform=mapDef.extensions!==undefined?mapDef.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM]:undefined;if(transform){const gltfReference=parser.associations.get(texture);texture=parser.extensions[EXTENSIONS.KHR_TEXTURE_TRANSFORM].extendTexture(texture,transform);parser.associations.set(texture,gltfReference)}}if(encoding!==undefined){texture.encoding=encoding}materialParams[mapName]=texture;return texture})}assignFinalMaterial(mesh){const geometry=mesh.geometry;let material=mesh.material;const useDerivativeTangents=geometry.attributes.tangent===undefined;const useVertexColors=geometry.attributes.color!==undefined;const useFlatShading=geometry.attributes.normal===undefined;if(mesh.isPoints){const cacheKey="PointsMaterial:"+material.uuid;let pointsMaterial=this.cache.get(cacheKey);if(!pointsMaterial){pointsMaterial=new PointsMaterial;Material.prototype.copy.call(pointsMaterial,material);pointsMaterial.color.copy(material.color);pointsMaterial.map=material.map;pointsMaterial.sizeAttenuation=false;this.cache.add(cacheKey,pointsMaterial)}material=pointsMaterial}else if(mesh.isLine){const cacheKey="LineBasicMaterial:"+material.uuid;let lineMaterial=this.cache.get(cacheKey);if(!lineMaterial){lineMaterial=new LineBasicMaterial;Material.prototype.copy.call(lineMaterial,material);lineMaterial.color.copy(material.color);lineMaterial.map=material.map;this.cache.add(cacheKey,lineMaterial)}material=lineMaterial}if(useDerivativeTangents||useVertexColors||useFlatShading){let cacheKey="ClonedMaterial:"+material.uuid+":";if(useDerivativeTangents)cacheKey+="derivative-tangents:";if(useVertexColors)cacheKey+="vertex-colors:";if(useFlatShading)cacheKey+="flat-shading:";let cachedMaterial=this.cache.get(cacheKey);if(!cachedMaterial){cachedMaterial=material.clone();if(useVertexColors)cachedMaterial.vertexColors=true;if(useFlatShading)cachedMaterial.flatShading=true;if(useDerivativeTangents){if(cachedMaterial.normalScale)cachedMaterial.normalScale.y*=-1;if(cachedMaterial.clearcoatNormalScale)cachedMaterial.clearcoatNormalScale.y*=-1}this.cache.add(cacheKey,cachedMaterial);this.associations.set(cachedMaterial,this.associations.get(material))}material=cachedMaterial}mesh.material=material}getMaterialType(){return MeshStandardMaterial}loadMaterial(materialIndex){const parser=this;const json=this.json;const extensions=this.extensions;const materialDef=json.materials[materialIndex];let materialType;const materialParams={};const materialExtensions=materialDef.extensions||{};const pending=[];if(materialExtensions[EXTENSIONS.KHR_MATERIALS_UNLIT]){const kmuExtension=extensions[EXTENSIONS.KHR_MATERIALS_UNLIT];materialType=kmuExtension.getMaterialType();pending.push(kmuExtension.extendParams(materialParams,materialDef,parser))}else{const metallicRoughness=materialDef.pbrMetallicRoughness||{};materialParams.color=new Color(1,1,1);materialParams.opacity=1;if(Array.isArray(metallicRoughness.baseColorFactor)){const array=metallicRoughness.baseColorFactor;materialParams.color.fromArray(array);materialParams.opacity=array[3]}if(metallicRoughness.baseColorTexture!==undefined){pending.push(parser.assignTexture(materialParams,"map",metallicRoughness.baseColorTexture,sRGBEncoding))}materialParams.metalness=metallicRoughness.metallicFactor!==undefined?metallicRoughness.metallicFactor:1;materialParams.roughness=metallicRoughness.roughnessFactor!==undefined?metallicRoughness.roughnessFactor:1;if(metallicRoughness.metallicRoughnessTexture!==undefined){pending.push(parser.assignTexture(materialParams,"metalnessMap",metallicRoughness.metallicRoughnessTexture));pending.push(parser.assignTexture(materialParams,"roughnessMap",metallicRoughness.metallicRoughnessTexture))}materialType=this._invokeOne(function(ext){return ext.getMaterialType&&ext.getMaterialType(materialIndex)});pending.push(Promise.all(this._invokeAll(function(ext){return ext.extendMaterialParams&&ext.extendMaterialParams(materialIndex,materialParams)})))}if(materialDef.doubleSided===true){materialParams.side=DoubleSide}const alphaMode=materialDef.alphaMode||ALPHA_MODES.OPAQUE;if(alphaMode===ALPHA_MODES.BLEND){materialParams.transparent=true;materialParams.depthWrite=false}else{materialParams.transparent=false;if(alphaMode===ALPHA_MODES.MASK){materialParams.alphaTest=materialDef.alphaCutoff!==undefined?materialDef.alphaCutoff:0.5}}if(materialDef.normalTexture!==undefined&&materialType!==MeshBasicMaterial){pending.push(parser.assignTexture(materialParams,"normalMap",materialDef.normalTexture));materialParams.normalScale=new Vector2(1,1);if(materialDef.normalTexture.scale!==undefined){const scale=materialDef.normalTexture.scale;materialParams.normalScale.set(scale,scale)}}if(materialDef.occlusionTexture!==undefined&&materialType!==MeshBasicMaterial){pending.push(parser.assignTexture(materialParams,"aoMap",materialDef.occlusionTexture));if(materialDef.occlusionTexture.strength!==undefined){materialParams.aoMapIntensity=materialDef.occlusionTexture.strength}}if(materialDef.emissiveFactor!==undefined&&materialType!==MeshBasicMaterial){materialParams.emissive=new Color().fromArray(materialDef.emissiveFactor)}if(materialDef.emissiveTexture!==undefined&&materialType!==MeshBasicMaterial){pending.push(parser.assignTexture(materialParams,"emissiveMap",materialDef.emissiveTexture,sRGBEncoding))}return Promise.all(pending).then(function(){const material=new materialType(materialParams);if(materialDef.name)material.name=materialDef.name;assignExtrasToUserData(material,materialDef);parser.associations.set(material,{materials:materialIndex});if(materialDef.extensions)addUnknownExtensionsToUserData(extensions,material,materialDef);return material})}createUniqueName(originalName){const sanitizedName=PropertyBinding.sanitizeNodeName(originalName||"");let name=sanitizedName;for(let i=1;this.nodeNamesUsed[name];++i){name=sanitizedName+"_"+i}this.nodeNamesUsed[name]=true;return name}loadGeometries(primitives){const parser=this;const extensions=this.extensions;const cache=this.primitiveCache;function createDracoPrimitive(primitive){return extensions[EXTENSIONS.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(primitive,parser).then(function(geometry){return addPrimitiveAttributes(geometry,primitive,parser)})}const pending=[];for(let i=0,il=primitives.length;i0){updateMorphTargets(mesh,meshDef)}mesh.name=parser.createUniqueName(meshDef.name||"mesh_"+meshIndex);assignExtrasToUserData(mesh,meshDef);if(primitive.extensions)addUnknownExtensionsToUserData(extensions,mesh,primitive);parser.assignFinalMaterial(mesh);meshes.push(mesh)}for(let i=0,il=meshes.length;i1){node=new Group}else if(objects.length===1){node=objects[0]}else{node=new Object3D}if(node!==objects[0]){for(let i=0,il=objects.length;i{const reducedAssociations=new Map;for(const[key,value]of parser.associations){if(key instanceof Material||key instanceof Texture){reducedAssociations.set(key,value)}}node.traverse(node=>{const mappings=parser.associations.get(node);if(mappings!=null){reducedAssociations.set(node,mappings)}});return reducedAssociations};parser.associations=reduceAssociations(scene);return scene})}}function computeBounds(geometry,primitiveDef,parser){const attributes=primitiveDef.attributes;const box=new Box3;if(attributes.POSITION!==undefined){const accessor=parser.json.accessors[attributes.POSITION];const min=accessor.min;const max=accessor.max;if(min!==undefined&&max!==undefined){box.set(new Vector3(min[0],min[1],min[2]),new Vector3(max[0],max[1],max[2]));if(accessor.normalized){const boxScale=getNormalizedComponentScale(WEBGL_COMPONENT_TYPES[accessor.componentType]);box.min.multiplyScalar(boxScale);box.max.multiplyScalar(boxScale)}}else{console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");return}}else{return}const targets=primitiveDef.targets;if(targets!==undefined){const maxDisplacement=new Vector3;const vector=new Vector3;for(let i=0,il=targets.length;i1)x+=1;if(p.y<-1)y-=1;else if(p.y>1)y+=1;max=Math.max(p.x*camera.aspect,p.y,max);min=Math.min(p.x*camera.aspect,p.y,min)});this.isVisible=this.isDrawable&&Math.abs(x)deviceMin}}CSS3DObject.prototype.isCSS3DObject=true;THREE.CSS3DObject=CSS3DObject;class CSS3DQuad extends Object3D{constructor(element){super();this.contentWidth=100;this.contentHeight=100;this.vertices=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.projectedVertices=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.containerElement=document.createElement("div");this.containerElement.style.position="absolute";this.containerElement.style.pointerEvents="none";this.containerElement.style.overflow="hidden";this.element=element||document.createElement("div");this.containerElement.appendChild(this.element);this.element.style.position="absolute";this.element.style.pointerEvents="none"}copy(source,recursive){super.copy(source,recursive);for(var i=0;i<4;i++)this.vertices[i].copy(source.vertices[i]);return this}projectVertices(camera){if(this.matrixWorldNeedsUpdate)this.updateMatrixWorld();projectVertices(this,camera);var pv=this.projectedVertices;this.isDrawable=pv[0].z<0&&pv[1].z<0&&pv[2].z<0&&pv[3].z<0;var x=0,y=0;var max=0,min=0;pv.forEach(function(p){if(p.x<-1)x-=1;else if(p.x>1)x+=1;if(p.y<-1)y-=1;else if(p.y>1)y+=1;max=Math.max(p.x*camera.aspect,p.y,max);min=Math.min(p.x*camera.aspect,p.y,min)});this.isVisible=this.isDrawable&&Math.abs(x)deviceMin}}CSS3DQuad.prototype.isCSS3DQuad=true;THREE.CSS3DQuad=CSS3DQuad;class CSS3DRectangle extends CSS3DQuad{constructor(element){super(element)}updateVertices(){this.vertices[0].set(-this.contentWidth*0.5,+this.contentHeight*0.5,0);this.vertices[1].set(+this.contentWidth*0.5,+this.contentHeight*0.5,0);this.vertices[2].set(+this.contentWidth*0.5,-this.contentHeight*0.5,0);this.vertices[3].set(-this.contentWidth*0.5,-this.contentHeight*0.5,0)}}CSS3DRectangle.prototype.isCSS3DRectangle=true;THREE.CSS3DRectangle=CSS3DRectangle;var _matrix=new THREE.Matrix4;class CSS3DRenderer{constructor(){var _this=this;var _width,_height;var _widthHalf,_heightHalf;var _fov;var _cameraStyle;var cache={objects:new WeakMap};var domElement=document.createElement("div");domElement.style.overflow="hidden";this.domElement=domElement;this.getSize=function(){return{width:_width,height:_height}};this.render=function(scene,camera){_fov=camera.projectionMatrix.elements[5]*_heightHalf;if(scene.matrixWorldAutoUpdate===true)scene.updateMatrixWorld();_cameraStyle="translateZ("+_fov+"px)"+getCameraCSSMatrix(camera.matrixWorldInverse)+"translate("+_widthHalf+"px,"+_heightHalf+"px)";renderObject(scene,scene,camera)};this.setSize=function(width,height){_width=width;_height=height;_widthHalf=_width/2;_heightHalf=_height/2;domElement.style.width=_width+"px";domElement.style.height=_height+"px"};function renderObject(object,scene,camera){if(object.isCSS3DObject||object.isCSS3DQuad){object.onBeforeRender(_this,scene,camera);var cachedObject=cache.objects.get(object)||{};var cacheChanged=false;if(object.isVisible){if(object.isCSS3DQuad){var pv=object.projectedVertices;var x0=(1+pv[0].x)*0.5*_width,y0=(1-pv[0].y)*0.5*_height,x1=(1+pv[1].x)*0.5*_width,y1=(1-pv[1].y)*0.5*_height,x2=(1+pv[2].x)*0.5*_width,y2=(1-pv[2].y)*0.5*_height,x3=(1+pv[3].x)*0.5*_width,y3=(1-pv[3].y)*0.5*_height;createQuadMatrix(object.contentWidth,object.contentHeight,x0,y0,x1,y1,x3,y3,x2,y2,_matrix.elements);var elementStyle=getQuadCSSMatrix(_matrix);if(cachedObject.elementStyle!=elementStyle){cachedObject.elementStyle=object.element.style.transform=elementStyle;cacheChanged=true}if(cachedObject.width!==_width||cachedObject.height!==_height){object.containerElement.style.width=(cachedObject.width=_width)+"px";object.containerElement.style.height=(cachedObject.height=_height)+"px";cacheChanged=true}}else{var elementStyle=getObjectCSSMatrix(object.matrixWorld);if(cachedObject.cameraFov!==_fov){object.containerElement.style.perspective=(cachedObject.cameraFov=_fov)+"px";cacheChanged=true}if(cachedObject.width!==_width||cachedObject.height!==_height){object.cameraElement.style.width=object.containerElement.style.width=(cachedObject.width=_width)+"px";object.cameraElement.style.height=object.containerElement.style.height=(cachedObject.height=_height)+"px";cacheChanged=true}if(cachedObject.cameraStyle!==_cameraStyle){cachedObject.cameraStyle=object.cameraElement.style.transform=_cameraStyle;cacheChanged=true}if(cachedObject.elementStyle!==elementStyle){cachedObject.elementStyle=object.element.style.transform=elementStyle;cacheChanged=true}}object.containerElement.style.left="0"}else{object.containerElement.style.left=_width+"px"}if(cacheChanged)cache.objects.set(object,cachedObject);object.containerElement.style.display=object.visible?"":"none";if(object.containerElement.parentNode!==domElement)domElement.appendChild(object.containerElement);object.onAfterRender(_this,scene,camera)}for(var i=0,l=object.children.length;i-1e-10?0:value}function getCameraCSSMatrix(matrix){var elements=matrix.elements;return"matrix3d("+epsilon(elements[0])+","+epsilon(-elements[1])+","+epsilon(elements[2])+","+epsilon(elements[3])+","+epsilon(elements[4])+","+epsilon(-elements[5])+","+epsilon(elements[6])+","+epsilon(elements[7])+","+epsilon(elements[8])+","+epsilon(-elements[9])+","+epsilon(elements[10])+","+epsilon(elements[11])+","+epsilon(elements[12])+","+epsilon(-elements[13])+","+epsilon(elements[14])+","+epsilon(elements[15])+")"}function getObjectCSSMatrix(matrix){var elements=matrix.elements;var matrix3d="matrix3d("+epsilon(elements[0])+","+epsilon(elements[1])+","+epsilon(elements[2])+","+epsilon(elements[3])+","+epsilon(-elements[4])+","+epsilon(-elements[5])+","+epsilon(-elements[6])+","+epsilon(-elements[7])+","+epsilon(elements[8])+","+epsilon(elements[9])+","+epsilon(elements[10])+","+epsilon(elements[11])+","+epsilon(elements[12])+","+epsilon(elements[13])+","+epsilon(elements[14])+","+epsilon(elements[15])+")";return"translate(-50%,-50%)"+matrix3d}function getQuadCSSMatrix(matrix){var elements=matrix.elements;var matrix3d="matrix3d("+epsilon(elements[0])+","+epsilon(elements[1])+","+epsilon(elements[2])+","+epsilon(elements[3])+","+epsilon(elements[4])+","+epsilon(elements[5])+","+epsilon(elements[6])+","+epsilon(elements[7])+","+epsilon(elements[8])+","+epsilon(elements[9])+","+epsilon(elements[10])+","+epsilon(elements[11])+","+epsilon(elements[12])+","+epsilon(elements[13])+","+epsilon(elements[14])+","+epsilon(elements[15])+")";return matrix3d}}};THREE.CSS3DRenderer=CSS3DRenderer;function projectVertices(object,camera){for(var index=0;index0){this._blur(cubeUVRenderTarget,0,0,sigma)}this._applyPMREM(cubeUVRenderTarget);this._cleanup(cubeUVRenderTarget);return cubeUVRenderTarget}fromEquirectangular(equirectangular,renderTarget=null){return this._fromTexture(equirectangular,renderTarget)}fromCubemap(cubemap,renderTarget=null){return this._fromTexture(cubemap,renderTarget)}compileCubemapShader(){if(this._cubemapMaterial===null){this._cubemapMaterial=_getCubemapMaterial();this._compileMaterial(this._cubemapMaterial)}}compileEquirectangularShader(){if(this._equirectMaterial===null){this._equirectMaterial=_getEquirectMaterial();this._compileMaterial(this._equirectMaterial)}}dispose(){this._dispose();if(this._cubemapMaterial!==null)this._cubemapMaterial.dispose();if(this._equirectMaterial!==null)this._equirectMaterial.dispose()}_setSize(cubeSize){this._lodMax=Math.floor(Math.log2(cubeSize));this._cubeSize=Math.pow(2,this._lodMax)}_dispose(){if(this._blurMaterial!==null)this._blurMaterial.dispose();if(this._pingPongRenderTarget!==null)this._pingPongRenderTarget.dispose();for(let i=0;i2?size:0,size,size);renderer.setRenderTarget(cubeUVRenderTarget);if(useSolidColor){renderer.render(backgroundBox,cubeCamera)}renderer.render(scene,cubeCamera)}backgroundBox.geometry.dispose();backgroundBox.material.dispose();renderer.toneMapping=toneMapping;renderer.autoClear=originalAutoClear;scene.background=background}_textureToCubeUV(texture,cubeUVRenderTarget){const renderer=this._renderer;const isCubeTexture=texture.mapping===CubeReflectionMapping||texture.mapping===CubeRefractionMapping;if(isCubeTexture){if(this._cubemapMaterial===null){this._cubemapMaterial=_getCubemapMaterial()}this._cubemapMaterial.uniforms.flipEnvMap.value=texture.isRenderTargetTexture===false?-1:1}else{if(this._equirectMaterial===null){this._equirectMaterial=_getEquirectMaterial()}}const material=isCubeTexture?this._cubemapMaterial:this._equirectMaterial;const mesh=new Mesh(this._lodPlanes[0],material);const uniforms=material.uniforms;uniforms["envMap"].value=texture;const size=this._cubeSize;_setViewport(cubeUVRenderTarget,0,0,3*size,2*size);renderer.setRenderTarget(cubeUVRenderTarget);renderer.render(mesh,_flatCamera)}_applyPMREM(cubeUVRenderTarget){const renderer=this._renderer;const autoClear=renderer.autoClear;renderer.autoClear=false;for(let i=1;iMAX_SAMPLES){console.warn(`sigmaRadians, ${sigmaRadians}, is too large and will clip, as it requested ${samples} samples when the maximum is set to ${MAX_SAMPLES}`)}const weights=[];let sum=0;for(let i=0;i_lodMax-LOD_MIN?lodOut-_lodMax+LOD_MIN:0);const y=4*(this._cubeSize-outputSize);_setViewport(targetOut,x,y,3*outputSize,2*outputSize);renderer.setRenderTarget(targetOut);renderer.render(blurMesh,_flatCamera)}}function _createPlanes(lodMax){const lodPlanes=[];const sizeLods=[];const sigmas=[];let lod=lodMax;const totalLods=lodMax-LOD_MIN+1+EXTRA_LOD_SIGMA.length;for(let i=0;ilodMax-LOD_MIN){sigma=EXTRA_LOD_SIGMA[i-lodMax+LOD_MIN-1]}else if(i===0){sigma=0}sigmas.push(sigma);const texelSize=1/(sizeLod-2);const min=-texelSize;const max=1+texelSize;const uv1=[min,min,max,min,max,max,min,min,max,max,min,max];const cubeFaces=6;const vertices=6;const positionSize=3;const uvSize=2;const faceIndexSize=1;const position=new Float32Array(positionSize*vertices*cubeFaces);const uv=new Float32Array(uvSize*vertices*cubeFaces);const faceIndex=new Float32Array(faceIndexSize*vertices*cubeFaces);for(let face=0;face2?0:-1;const coordinates=[x,y,0,x+2/3,y,0,x+2/3,y+1,0,x,y,0,x+2/3,y+1,0,x,y+1,0];position.set(coordinates,positionSize*vertices*face);uv.set(uv1,uvSize*vertices*face);const fill=[face,face,face,face,face,face];faceIndex.set(fill,faceIndexSize*vertices*face)}const planes=new BufferGeometry;planes.setAttribute("position",new BufferAttribute(position,positionSize));planes.setAttribute("uv",new BufferAttribute(uv,uvSize));planes.setAttribute("faceIndex",new BufferAttribute(faceIndex,faceIndexSize));lodPlanes.push(planes);if(lod>LOD_MIN){lod--}}return{lodPlanes,sizeLods,sigmas}}function _createRenderTarget(width,height,params){const cubeUVRenderTarget=new WebGLRenderTarget(width,height,params);cubeUVRenderTarget.texture.mapping=CubeUVReflectionMapping;cubeUVRenderTarget.texture.name="PMREM.cubeUv";cubeUVRenderTarget.scissorTest=true;return cubeUVRenderTarget}function _setViewport(target,x,y,width,height){target.viewport.set(x,y,width,height);target.scissor.set(x,y,width,height)}function _getBlurShader(lodMax,width,height){const weights=new Float32Array(MAX_SAMPLES);const poleAxis=new Vector3(0,1,0);const shaderMaterial=new ShaderMaterial({name:"SphericalGaussianBlur",defines:{"n":MAX_SAMPLES,"CUBEUV_TEXEL_WIDTH":1/width,"CUBEUV_TEXEL_HEIGHT":1/height,"CUBEUV_MAX_MIP":`${lodMax}.0`},uniforms:{"envMap":{value:null},"samples":{value:1},"weights":{value:weights},"latitudinal":{value:false},"dTheta":{value:0},"mipInt":{value:0},"poleAxis":{value:poleAxis}},vertexShader:_getCommonVertexShader(),fragmentShader:` precision mediump float; precision mediump int; varying vec3 vOutputDirection; uniform sampler2D envMap; uniform int samples; uniform float weights[ n ]; uniform bool latitudinal; uniform float dTheta; uniform float mipInt; uniform vec3 poleAxis; #define ENVMAP_TYPE_CUBE_UV #include vec3 getSample( float theta, vec3 axis ) { float cosTheta = cos( theta ); // Rodrigues' axis-angle rotation vec3 sampleDirection = vOutputDirection * cosTheta + cross( axis, vOutputDirection ) * sin( theta ) + axis * dot( axis, vOutputDirection ) * ( 1.0 - cosTheta ); return bilinearCubeUV( envMap, sampleDirection, mipInt ); } void main() { vec3 axis = latitudinal ? poleAxis : cross( poleAxis, vOutputDirection ); if ( all( equal( axis, vec3( 0.0 ) ) ) ) { axis = vec3( vOutputDirection.z, 0.0, - vOutputDirection.x ); } axis = normalize( axis ); gl_FragColor = vec4( 0.0, 0.0, 0.0, 1.0 ); gl_FragColor.rgb += weights[ 0 ] * getSample( 0.0, axis ); for ( int i = 1; i < n; i++ ) { if ( i >= samples ) { break; } float theta = dTheta * float( i ); gl_FragColor.rgb += weights[ i ] * getSample( -1.0 * theta, axis ); gl_FragColor.rgb += weights[ i ] * getSample( theta, axis ); } } `,blending:NoBlending,depthTest:false,depthWrite:false});return shaderMaterial}function _getEquirectMaterial(){return new ShaderMaterial({name:"EquirectangularToCubeUV",uniforms:{"envMap":{value:null}},vertexShader:_getCommonVertexShader(),fragmentShader:` precision mediump float; precision mediump int; varying vec3 vOutputDirection; uniform sampler2D envMap; #include void main() { vec3 outputDirection = normalize( vOutputDirection ); vec2 uv = equirectUv( outputDirection ); gl_FragColor = vec4( texture2D ( envMap, uv ).rgb, 1.0 ); } `,blending:NoBlending,depthTest:false,depthWrite:false})}function _getCubemapMaterial(){return new ShaderMaterial({name:"CubemapToCubeUV",uniforms:{"envMap":{value:null},"flipEnvMap":{value:-1}},vertexShader:_getCommonVertexShader(),fragmentShader:` precision mediump float; precision mediump int; uniform float flipEnvMap; varying vec3 vOutputDirection; uniform samplerCube envMap; void main() { gl_FragColor = textureCube( envMap, vec3( flipEnvMap * vOutputDirection.x, vOutputDirection.yz ) ); } `,blending:NoBlending,depthTest:false,depthWrite:false})}function _getCommonVertexShader(){return` precision mediump float; precision mediump int; attribute float faceIndex; varying vec3 vOutputDirection; // RH coordinate system; PMREM face-indexing convention vec3 getDirection( vec2 uv, float face ) { uv = 2.0 * uv - 1.0; vec3 direction = vec3( uv, 1.0 ); if ( face == 0.0 ) { direction = direction.zyx; // ( 1, v, u ) pos x } else if ( face == 1.0 ) { direction = direction.xzy; direction.xz *= -1.0; // ( -u, 1, -v ) pos y } else if ( face == 2.0 ) { direction.x *= -1.0; // ( -u, v, 1 ) pos z } else if ( face == 3.0 ) { direction = direction.zyx; direction.xz *= -1.0; // ( -1, v, -u ) neg x } else if ( face == 4.0 ) { direction = direction.xzy; direction.xy *= -1.0; // ( -u, -1, v ) neg y } else if ( face == 5.0 ) { direction.z *= -1.0; // ( u, v, -1 ) neg z } return direction; } void main() { vOutputDirection = getDirection( uv, faceIndex ); gl_Position = vec4( position, 1.0 ); } `}THREE.PMREMGenerator=PMREMGenerator});(function(t,e){e(t,t.THREE=t.THREE||{})})(this,function(globalThis,THREE){const $5OpyM$Spherical=THREE.Spherical;const $5OpyM$Vector3=THREE.Vector3;const $5OpyM$MathUtils=THREE.MathUtils;const $5OpyM$Sphere=THREE.Sphere;const $5OpyM$Group=THREE.Group;const $5OpyM$PointsMaterial=THREE.PointsMaterial;const $5OpyM$MeshStandardMaterial=THREE.MeshStandardMaterial;const $5OpyM$Box3Helper=THREE.Box3Helper;const $5OpyM$Color=THREE.Color;const $5OpyM$Matrix4=THREE.Matrix4;const $5OpyM$LoadingManager=THREE.LoadingManager;const $5OpyM$Vector2=THREE.Vector2;const $5OpyM$Frustum=THREE.Frustum;const $5OpyM$DefaultLoadingManager=THREE.DefaultLoadingManager;const $5OpyM$BufferGeometry=THREE.BufferGeometry;const $5OpyM$BufferAttribute=THREE.BufferAttribute;const $5OpyM$Points=THREE.Points;const $5OpyM$Quaternion=THREE.Quaternion;const $5OpyM$InstancedMesh=THREE.InstancedMesh;const $5OpyM$Ray=THREE.Ray;const $5OpyM$Box3=THREE.Box3;const $5OpyM$LineBasicMaterial=THREE.LineBasicMaterial;const $5OpyM$LineSegments=THREE.LineSegments;const $5OpyM$BoxGeometry=THREE.BoxGeometry;const $5OpyM$EdgesGeometry=THREE.EdgesGeometry;const $5OpyM$Mesh=THREE.Mesh;const $5OpyM$Euler=THREE.Euler;const $5OpyM$GLTFLoader=THREE.GLTFLoader;var $parcel$global=typeof globalThis!=="undefined"?globalThis:typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:{};var $parcel$modules={};var $parcel$inits={};var parcelRequire=$parcel$global["parcelRequire5fa1"];if(parcelRequire==null){parcelRequire=function(id){if(id in $parcel$modules){return $parcel$modules[id].exports}if(id in $parcel$inits){var init=$parcel$inits[id];delete $parcel$inits[id];var module={id:id,exports:{}};$parcel$modules[id]=module;init.call(module.exports,module,module.exports);return module.exports}var err=new Error("Cannot find module '"+id+"'");err.code="MODULE_NOT_FOUND";throw err};parcelRequire.register=function register(id,init){$parcel$inits[id]=init};$parcel$global["parcelRequire5fa1"]=parcelRequire}parcelRequire.register("1hGdn",function(module,exports){"use strict";Object.defineProperty(module.exports,"__esModule",{value:true});module.exports.latitudeToSphericalPhi=$0ef81fee344e2f3b$var$latitudeToSphericalPhi;module.exports.sphericalPhiToLatitude=$0ef81fee344e2f3b$var$sphericalPhiToLatitude;module.exports.swapToGeoFrame=$0ef81fee344e2f3b$var$swapToGeoFrame;module.exports.swapToThreeFrame=$0ef81fee344e2f3b$var$swapToThreeFrame;module.exports.toLatLonString=$0ef81fee344e2f3b$var$toLatLonString;const $0ef81fee344e2f3b$var$_spherical=new $5OpyM$Spherical;const $0ef81fee344e2f3b$var$_vec=new $5OpyM$Vector3;const $0ef81fee344e2f3b$var$_geoResults={};function $0ef81fee344e2f3b$var$swapToGeoFrame(target){const{x:x,y:y,z:z}=target;target.x=z;target.y=x;target.z=y}function $0ef81fee344e2f3b$var$swapToThreeFrame(target){const{x:x,y:y,z:z}=target;target.z=x;target.x=y;target.y=z}function $0ef81fee344e2f3b$var$sphericalPhiToLatitude(phi){return-(phi-Math.PI/2)}function $0ef81fee344e2f3b$var$latitudeToSphericalPhi(latitude){return-latitude+Math.PI/2}function $0ef81fee344e2f3b$var$correctGeoCoordWrap(lat,lon,target={}){$0ef81fee344e2f3b$var$_spherical.theta=lon;$0ef81fee344e2f3b$var$_spherical.phi=$0ef81fee344e2f3b$var$latitudeToSphericalPhi(lat);$0ef81fee344e2f3b$var$_vec.setFromSpherical($0ef81fee344e2f3b$var$_spherical);$0ef81fee344e2f3b$var$_spherical.setFromVector3($0ef81fee344e2f3b$var$_vec);target.lat=$0ef81fee344e2f3b$var$sphericalPhiToLatitude($0ef81fee344e2f3b$var$_spherical.phi);target.lon=$0ef81fee344e2f3b$var$_spherical.theta;return target}function $0ef81fee344e2f3b$var$toHoursMinutesSecondsString(value,pos="E",neg="W"){const direction=value<0?neg:pos;value=Math.abs(value);const hours=~~value;const minDec=(value-hours)*60;const minutes=~~minDec;const secDec=(minDec-minutes)*60;const seconds=~~secDec;return`${hours}° ${minutes}' ${seconds}" ${direction}`}function $0ef81fee344e2f3b$var$toLatLonString(lat,lon,decimalFormat=false){const result=$0ef81fee344e2f3b$var$correctGeoCoordWrap(lat,lon,$0ef81fee344e2f3b$var$_geoResults);let latString,lonString;if(decimalFormat){latString=`${($5OpyM$MathUtils.RAD2DEG*result.lat).toFixed(4)}°`;lonString=`${($5OpyM$MathUtils.RAD2DEG*result.lon).toFixed(4)}°`}else{latString=$0ef81fee344e2f3b$var$toHoursMinutesSecondsString($5OpyM$MathUtils.RAD2DEG*result.lat,"N","S");lonString=$0ef81fee344e2f3b$var$toHoursMinutesSecondsString($5OpyM$MathUtils.RAD2DEG*result.lon,"E","W")}return`${latString} ${lonString}`}});var $cf838c15c8b009ba$exports={};"use strict";Object.defineProperty($cf838c15c8b009ba$exports,"__esModule",{value:true});var $cf838c15c8b009ba$var$_exportNames={DebugTilesRenderer:true,NONE:true,SCREEN_ERROR:true,GEOMETRIC_ERROR:true,DISTANCE:true,DEPTH:true,RELATIVE_DEPTH:true,IS_LEAF:true,RANDOM_COLOR:true,RANDOM_NODE_COLOR:true,CUSTOM_COLOR:true,TilesRenderer:true,B3DMLoader:true,PNTSLoader:true,I3DMLoader:true,CMPTLoader:true,GLTFCesiumRTCExtension:true,GLTFExtensionLoader:true,EllipsoidRegionHelper:true,EllipsoidRegionLineHelper:true,SphereHelper:true,Ellipsoid:true,EllipsoidRegion:true,GeoUtils:true,TilesRendererBase:true,LoaderBase:true,B3DMLoaderBase:true,I3DMLoaderBase:true,PNTSLoaderBase:true,CMPTLoaderBase:true,LRUCache:true,PriorityQueue:true};Object.defineProperty($cf838c15c8b009ba$exports,"B3DMLoader",{enumerable:true,get:function(){return $0aa3d1def57e98b1$exports.B3DMLoader}});Object.defineProperty($cf838c15c8b009ba$exports,"B3DMLoaderBase",{enumerable:true,get:function(){return $f5d9b5dde53306bf$exports.B3DMLoaderBase}});Object.defineProperty($cf838c15c8b009ba$exports,"CMPTLoader",{enumerable:true,get:function(){return $54879e9a7dc345e0$exports.CMPTLoader}});Object.defineProperty($cf838c15c8b009ba$exports,"CMPTLoaderBase",{enumerable:true,get:function(){return $cb66a16334732244$exports.CMPTLoaderBase}});Object.defineProperty($cf838c15c8b009ba$exports,"CUSTOM_COLOR",{enumerable:true,get:function(){return $1909f04f34bd6630$exports.CUSTOM_COLOR}});Object.defineProperty($cf838c15c8b009ba$exports,"DEPTH",{enumerable:true,get:function(){return $1909f04f34bd6630$exports.DEPTH}});Object.defineProperty($cf838c15c8b009ba$exports,"DISTANCE",{enumerable:true,get:function(){return $1909f04f34bd6630$exports.DISTANCE}});Object.defineProperty($cf838c15c8b009ba$exports,"DebugTilesRenderer",{enumerable:true,get:function(){return $1909f04f34bd6630$exports.DebugTilesRenderer}});Object.defineProperty($cf838c15c8b009ba$exports,"Ellipsoid",{enumerable:true,get:function(){return $9160f8f2e0578e98$exports.Ellipsoid}});Object.defineProperty($cf838c15c8b009ba$exports,"EllipsoidRegion",{enumerable:true,get:function(){return $aa7b3b269f245cbe$exports.EllipsoidRegion}});Object.defineProperty($cf838c15c8b009ba$exports,"EllipsoidRegionHelper",{enumerable:true,get:function(){return $3b9225051b507460$exports.EllipsoidRegionHelper}});Object.defineProperty($cf838c15c8b009ba$exports,"EllipsoidRegionLineHelper",{enumerable:true,get:function(){return $3b9225051b507460$exports.EllipsoidRegionLineHelper}});Object.defineProperty($cf838c15c8b009ba$exports,"GEOMETRIC_ERROR",{enumerable:true,get:function(){return $1909f04f34bd6630$exports.GEOMETRIC_ERROR}});Object.defineProperty($cf838c15c8b009ba$exports,"GLTFCesiumRTCExtension",{enumerable:true,get:function(){return $44c3bffa5e49f297$exports.GLTFCesiumRTCExtension}});Object.defineProperty($cf838c15c8b009ba$exports,"GLTFExtensionLoader",{enumerable:true,get:function(){return $29ced67d26e5c4e2$exports.GLTFExtensionLoader}});$cf838c15c8b009ba$exports.GeoUtils=void 0;Object.defineProperty($cf838c15c8b009ba$exports,"I3DMLoader",{enumerable:true,get:function(){return $0bc85483bdeca322$exports.I3DMLoader}});Object.defineProperty($cf838c15c8b009ba$exports,"I3DMLoaderBase",{enumerable:true,get:function(){return $bcb352fb74bed4a5$exports.I3DMLoaderBase}});Object.defineProperty($cf838c15c8b009ba$exports,"IS_LEAF",{enumerable:true,get:function(){return $1909f04f34bd6630$exports.IS_LEAF}});Object.defineProperty($cf838c15c8b009ba$exports,"LRUCache",{enumerable:true,get:function(){return $e0d7a242557dc8e6$exports.LRUCache}});Object.defineProperty($cf838c15c8b009ba$exports,"LoaderBase",{enumerable:true,get:function(){return $e6b785bba9ea128d$exports.LoaderBase}});Object.defineProperty($cf838c15c8b009ba$exports,"NONE",{enumerable:true,get:function(){return $1909f04f34bd6630$exports.NONE}});Object.defineProperty($cf838c15c8b009ba$exports,"PNTSLoader",{enumerable:true,get:function(){return $1ddd6ca16eb224df$exports.PNTSLoader}});Object.defineProperty($cf838c15c8b009ba$exports,"PNTSLoaderBase",{enumerable:true,get:function(){return $d408eda5a179398a$exports.PNTSLoaderBase}});Object.defineProperty($cf838c15c8b009ba$exports,"PriorityQueue",{enumerable:true,get:function(){return $096d2234d1235002$exports.PriorityQueue}});Object.defineProperty($cf838c15c8b009ba$exports,"RANDOM_COLOR",{enumerable:true,get:function(){return $1909f04f34bd6630$exports.RANDOM_COLOR}});Object.defineProperty($cf838c15c8b009ba$exports,"RANDOM_NODE_COLOR",{enumerable:true,get:function(){return $1909f04f34bd6630$exports.RANDOM_NODE_COLOR}});Object.defineProperty($cf838c15c8b009ba$exports,"RELATIVE_DEPTH",{enumerable:true,get:function(){return $1909f04f34bd6630$exports.RELATIVE_DEPTH}});Object.defineProperty($cf838c15c8b009ba$exports,"SCREEN_ERROR",{enumerable:true,get:function(){return $1909f04f34bd6630$exports.SCREEN_ERROR}});Object.defineProperty($cf838c15c8b009ba$exports,"SphereHelper",{enumerable:true,get:function(){return $1cb839fa4db014d3$exports.SphereHelper}});Object.defineProperty($cf838c15c8b009ba$exports,"TilesRenderer",{enumerable:true,get:function(){return $06d26e8e9f5361d3$exports.TilesRenderer}});Object.defineProperty($cf838c15c8b009ba$exports,"TilesRendererBase",{enumerable:true,get:function(){return $5a6f7a997885dc30$exports.TilesRendererBase}});var $1909f04f34bd6630$exports={};"use strict";Object.defineProperty($1909f04f34bd6630$exports,"__esModule",{value:true});$1909f04f34bd6630$exports.SCREEN_ERROR=$1909f04f34bd6630$exports.RELATIVE_DEPTH=$1909f04f34bd6630$exports.RANDOM_NODE_COLOR=$1909f04f34bd6630$exports.RANDOM_COLOR=$1909f04f34bd6630$exports.NONE=$1909f04f34bd6630$exports.IS_LEAF=$1909f04f34bd6630$exports.GEOMETRIC_ERROR=$1909f04f34bd6630$exports.DebugTilesRenderer=$1909f04f34bd6630$exports.DISTANCE=$1909f04f34bd6630$exports.DEPTH=$1909f04f34bd6630$exports.CUSTOM_COLOR=void 0;var $3a66585ec6f85053$exports={};"use strict";Object.defineProperty($3a66585ec6f85053$exports,"__esModule",{value:true});$3a66585ec6f85053$exports.getIndexedRandomColor=$3a66585ec6f85053$var$getIndexedRandomColor;const $3a66585ec6f85053$var$colors={};function $3a66585ec6f85053$var$getIndexedRandomColor(index){if(!$3a66585ec6f85053$var$colors[index]){const h=Math.random();const s=0.5+Math.random()*0.5;const l=0.375+Math.random()*0.25;$3a66585ec6f85053$var$colors[index]=new $5OpyM$Color().setHSL(h,s,l)}return $3a66585ec6f85053$var$colors[index]}var $06d26e8e9f5361d3$exports={};"use strict";Object.defineProperty($06d26e8e9f5361d3$exports,"__esModule",{value:true});$06d26e8e9f5361d3$exports.TilesRenderer=void 0;var $5a6f7a997885dc30$exports={};"use strict";Object.defineProperty($5a6f7a997885dc30$exports,"__esModule",{value:true});$5a6f7a997885dc30$exports.TilesRendererBase=void 0;var $7ff9fb142d83939f$exports={};"use strict";Object.defineProperty($7ff9fb142d83939f$exports,"__esModule",{value:true});$7ff9fb142d83939f$exports.getUrlExtension=$7ff9fb142d83939f$var$getUrlExtension;function $7ff9fb142d83939f$var$getUrlExtension(url){let parsedUrl;try{parsedUrl=new URL(url,"http://fakehost.com/")}catch(_){return null}const filename=parsedUrl.pathname.split("/").pop();const dotIndex=filename.lastIndexOf(".");if(dotIndex===-1||dotIndex===filename.length-1)return null;const extension=filename.substring(dotIndex+1);return extension}var $e0d7a242557dc8e6$exports={};"use strict";Object.defineProperty($e0d7a242557dc8e6$exports,"__esModule",{value:true});$e0d7a242557dc8e6$exports.LRUCache=void 0;function $e0d7a242557dc8e6$var$enqueueMicrotask(callback){Promise.resolve().then(callback)}class $e0d7a242557dc8e6$var$LRUCache{constructor(){this.maxSize=800;this.minSize=600;this.unloadPercent=0.05;this.itemSet=new Map;this.itemList=[];this.usedSet=new Set;this.callbacks=new Map;this.unloadPriorityCallback=null;const itemSet=this.itemSet;this.defaultPriorityCallback=item=>itemSet.get(item)}isFull(){return this.itemSet.size>=this.maxSize}add(item,removeCb){const itemSet=this.itemSet;if(itemSet.has(item))return false;if(this.isFull())return false;const usedSet=this.usedSet;const itemList=this.itemList;const callbacks=this.callbacks;itemList.push(item);usedSet.add(item);itemSet.set(item,Date.now());callbacks.set(item,removeCb);return true}remove(item){const usedSet=this.usedSet;const itemSet=this.itemSet;const itemList=this.itemList;const callbacks=this.callbacks;if(itemSet.has(item)){callbacks.get(item)(item);const index=itemList.indexOf(item);itemList.splice(index,1);usedSet.delete(item);itemSet.delete(item);callbacks.delete(item);return true}return false}markUsed(item){const itemSet=this.itemSet;const usedSet=this.usedSet;if(itemSet.has(item)&&!usedSet.has(item)){itemSet.set(item,Date.now());usedSet.add(item)}}markAllUnused(){this.usedSet.clear()}unloadUnusedContent(){const unloadPercent=this.unloadPercent;const targetSize=this.minSize;const itemList=this.itemList;const itemSet=this.itemSet;const usedSet=this.usedSet;const callbacks=this.callbacks;const unused=itemList.length-usedSet.size;const excess=itemList.length-targetSize;const unloadPriorityCallback=this.unloadPriorityCallback||this.defaultPriorityCallback;if(excess>0&&unused>0){itemList.sort((a,b)=>{const usedA=usedSet.has(a);const usedB=usedSet.has(b);if(usedA&&usedB)return 0;else if(!usedA&&!usedB)return unloadPriorityCallback(b)-unloadPriorityCallback(a);else return usedA?1:-1});const unusedExcess=Math.min(excess,unused);const maxUnload=Math.max(targetSize*unloadPercent,unusedExcess*unloadPercent);let nodesToUnload=Math.min(maxUnload,unused);nodesToUnload=Math.ceil(nodesToUnload);const removedItems=itemList.splice(0,nodesToUnload);for(let i=0,l=removedItems.length;i{this.scheduled=false;this.unloadUnusedContent();if(markAllUnused)this.markAllUnused()})}}}$e0d7a242557dc8e6$exports.LRUCache=$e0d7a242557dc8e6$var$LRUCache;var $096d2234d1235002$exports={};"use strict";Object.defineProperty($096d2234d1235002$exports,"__esModule",{value:true});$096d2234d1235002$exports.PriorityQueue=void 0;class $096d2234d1235002$var$PriorityQueue{constructor(){this.maxJobs=6;this.items=[];this.callbacks=new Map;this.currJobs=0;this.scheduled=false;this.autoUpdate=true;this.priorityCallback=()=>{throw new Error("PriorityQueue: PriorityCallback function not defined.")};this.schedulingCallback=func=>{requestAnimationFrame(func)};this._runjobs=()=>{this.tryRunJobs();this.scheduled=false}}sort(){const priorityCallback=this.priorityCallback;const items=this.items;items.sort(priorityCallback)}add(item,callback){return new Promise((resolve,reject)=>{const prCallback=(...args)=>callback(...args).then(resolve).catch(reject);const items=this.items;const callbacks=this.callbacks;items.push(item);callbacks.set(item,prCallback);if(this.autoUpdate)this.scheduleJobRun()})}remove(item){const items=this.items;const callbacks=this.callbacks;const index=items.indexOf(item);if(index!==-1){items.splice(index,1);callbacks.delete(item)}}tryRunJobs(){this.sort();const items=this.items;const callbacks=this.callbacks;const maxJobs=this.maxJobs;let currJobs=this.currJobs;while(maxJobs>currJobs&&items.length>0){currJobs++;const item=items.pop();const callback=callbacks.get(item);callbacks.delete(item);callback(item).then(()=>{this.currJobs--;if(this.autoUpdate)this.scheduleJobRun()}).catch(()=>{this.currJobs--;if(this.autoUpdate)this.scheduleJobRun()})}this.currJobs=currJobs}scheduleJobRun(){if(!this.scheduled){this.schedulingCallback(this._runjobs);this.scheduled=true}}}$096d2234d1235002$exports.PriorityQueue=$096d2234d1235002$var$PriorityQueue;var $cd531a5f1c18e9cc$exports={};"use strict";Object.defineProperty($cd531a5f1c18e9cc$exports,"__esModule",{value:true});$cd531a5f1c18e9cc$exports.determineFrustumSet=$cd531a5f1c18e9cc$var$determineFrustumSet;$cd531a5f1c18e9cc$exports.markUsedSetLeaves=$cd531a5f1c18e9cc$var$markUsedSetLeaves;$cd531a5f1c18e9cc$exports.skipTraversal=$cd531a5f1c18e9cc$var$skipTraversal;$cd531a5f1c18e9cc$exports.toggleTiles=$cd531a5f1c18e9cc$var$toggleTiles;$cd531a5f1c18e9cc$exports.traverseSet=$cd531a5f1c18e9cc$var$traverseSet;var $002d29a772485791$exports={};"use strict";Object.defineProperty($002d29a772485791$exports,"__esModule",{value:true});$002d29a772485791$exports.WGS84_RADIUS=$002d29a772485791$exports.WGS84_HEIGHT=$002d29a772485791$exports.WGS84_FLATTENING=$002d29a772485791$exports.UNLOADED=$002d29a772485791$exports.PARSING=$002d29a772485791$exports.LOADING=$002d29a772485791$exports.LOADED=$002d29a772485791$exports.FAILED=void 0;const $002d29a772485791$var$UNLOADED=0;$002d29a772485791$exports.UNLOADED=$002d29a772485791$var$UNLOADED;const $002d29a772485791$var$LOADING=1;$002d29a772485791$exports.LOADING=$002d29a772485791$var$LOADING;const $002d29a772485791$var$PARSING=2;$002d29a772485791$exports.PARSING=$002d29a772485791$var$PARSING;const $002d29a772485791$var$LOADED=3;$002d29a772485791$exports.LOADED=$002d29a772485791$var$LOADED;const $002d29a772485791$var$FAILED=4;$002d29a772485791$exports.FAILED=$002d29a772485791$var$FAILED;const $002d29a772485791$var$WGS84_RADIUS=6378137;$002d29a772485791$exports.WGS84_RADIUS=$002d29a772485791$var$WGS84_RADIUS;const $002d29a772485791$var$WGS84_FLATTENING=1/298.257223563;$002d29a772485791$exports.WGS84_FLATTENING=$002d29a772485791$var$WGS84_FLATTENING;const $002d29a772485791$var$WGS84_HEIGHT=-($002d29a772485791$var$WGS84_FLATTENING*$002d29a772485791$var$WGS84_RADIUS-$002d29a772485791$var$WGS84_RADIUS);$002d29a772485791$exports.WGS84_HEIGHT=$002d29a772485791$var$WGS84_HEIGHT;function $cd531a5f1c18e9cc$var$isDownloadFinished(value){return value===$002d29a772485791$exports.LOADED||value===$002d29a772485791$exports.FAILED}function $cd531a5f1c18e9cc$var$isUsedThisFrame(tile,frameCount){return tile.__lastFrameVisited===frameCount&&tile.__used}function $cd531a5f1c18e9cc$var$resetFrameState(tile,frameCount){if(tile.__lastFrameVisited!==frameCount){tile.__lastFrameVisited=frameCount;tile.__used=false;tile.__inFrustum=false;tile.__isLeaf=false;tile.__visible=false;tile.__active=false;tile.__error=Infinity;tile.__distanceFromCamera=Infinity;tile.__childrenWereVisible=false;tile.__allChildrenLoaded=false}}function $cd531a5f1c18e9cc$var$recursivelyMarkUsed(tile,frameCount,lruCache,renderer){renderer.ensureChildrenArePreprocessed(tile);$cd531a5f1c18e9cc$var$resetFrameState(tile,frameCount);tile.__used=true;lruCache.markUsed(tile);if(tile.__contentEmpty){const children=tile.children;for(let i=0,l=children.length;i0&&tile.__depth+1>=maxDepth)return true}let anyChildrenUsed=false;const children=tile.children;for(let i=0,l=children.length;i{if(a.__depth!==b.__depth)return a.__depth>b.__depth?-1:1;else if(a.__inFrustum!==b.__inFrustum)return a.__inFrustum?1:-1;else if(a.__used!==b.__used)return a.__used?1:-1;else if(a.__error!==b.__error)return a.__error>b.__error?1:-1;else if(a.__distanceFromCamera!==b.__distanceFromCamera)return a.__distanceFromCamera>b.__distanceFromCamera?-1:1;return 0};const $5a6f7a997885dc30$var$lruPriorityCallback=tile=>1/(tile.__depthFromRenderedParent+1);class $5a6f7a997885dc30$var$TilesRendererBase{get rootTileSet(){const tileSet=this.tileSets[this.rootURL];if(!tileSet||tileSet instanceof Promise)return null;else return tileSet}get root(){const tileSet=this.rootTileSet;return tileSet?tileSet.root:null}constructor(url){this.tileSets={};this.rootURL=url;this.fetchOptions={};this.preprocessURL=null;const lruCache=new $e0d7a242557dc8e6$exports.LRUCache;lruCache.unloadPriorityCallback=$5a6f7a997885dc30$var$lruPriorityCallback;const downloadQueue=new $096d2234d1235002$exports.PriorityQueue;downloadQueue.maxJobs=4;downloadQueue.priorityCallback=$5a6f7a997885dc30$var$priorityCallback;const parseQueue=new $096d2234d1235002$exports.PriorityQueue;parseQueue.maxJobs=1;parseQueue.priorityCallback=$5a6f7a997885dc30$var$priorityCallback;this.lruCache=lruCache;this.downloadQueue=downloadQueue;this.parseQueue=parseQueue;this.stats={parsing:0,downloading:0,failed:0,inFrustum:0,used:0,active:0,visible:0};this.frameCount=0;this.errorTarget=6;this.errorThreshold=Infinity;this.loadSiblings=true;this.displayActiveTiles=false;this.maxDepth=Infinity;this.stopAtEmptyTiles=true}traverse(beforecb,aftercb){const tileSets=this.tileSets;const rootTileSet=tileSets[this.rootURL];if(!rootTileSet||!rootTileSet.root)return;(0,$cd531a5f1c18e9cc$exports.traverseSet)(rootTileSet.root,(tile,...args)=>{this.ensureChildrenArePreprocessed(tile);return beforecb?beforecb(tile,...args):false},aftercb)}update(){const stats=this.stats;const lruCache=this.lruCache;const tileSets=this.tileSets;const rootTileSet=tileSets[this.rootURL];if(!(this.rootURL in tileSets)){this.loadRootTileSet(this.rootURL);return}else if(!rootTileSet||!rootTileSet.root)return;const root=rootTileSet.root;stats.inFrustum=0,stats.used=0,stats.active=0,stats.visible=0,this.frameCount++;(0,$cd531a5f1c18e9cc$exports.determineFrustumSet)(root,this);(0,$cd531a5f1c18e9cc$exports.markUsedSetLeaves)(root,this);(0,$cd531a5f1c18e9cc$exports.skipTraversal)(root,this);(0,$cd531a5f1c18e9cc$exports.toggleTiles)(root,this);lruCache.scheduleUnload()}parseTile(buffer,tile,extension){return null}disposeTile(tile){}preprocessNode(tile,tileSetDir,parentTile=null){if(tile.content){if(!("uri"in tile.content)&&"url"in tile.content){tile.content.uri=tile.content.url;delete tile.content.url}if(tile.content.uri)tile.content.uri=new URL(tile.content.uri,tileSetDir+"/").toString();if(tile.content.boundingVolume&&!("box"in tile.content.boundingVolume||"sphere"in tile.content.boundingVolume||"region"in tile.content.boundingVolume))delete tile.content.boundingVolume}tile.parent=parentTile;tile.children=tile.children||[];const uri=tile.content&&tile.content.uri;if(uri){const extension=(0,$7ff9fb142d83939f$exports.getUrlExtension)(tile.content.uri);const isExternalTileSet=Boolean(extension&&extension.toLowerCase()==="json");tile.__externalTileSet=isExternalTileSet;tile.__contentEmpty=isExternalTileSet}else{tile.__externalTileSet=false;tile.__contentEmpty=true}tile.__distanceFromCamera=Infinity;tile.__error=Infinity;tile.__inFrustum=false;tile.__isLeaf=false;tile.__usedLastFrame=false;tile.__used=false;tile.__wasSetVisible=false;tile.__visible=false;tile.__childrenWereVisible=false;tile.__allChildrenLoaded=false;tile.__wasSetActive=false;tile.__active=false;tile.__loadingState=$002d29a772485791$exports.UNLOADED;tile.__loadIndex=0;tile.__loadAbort=null;tile.__depthFromRenderedParent=-1;if(parentTile===null){tile.__depth=0;tile.refine=tile.refine||"REPLACE"}else{tile.__depth=parentTile.__depth+1;tile.refine=tile.refine||parentTile.refine}tile.__basePath=tileSetDir}setTileActive(tile,state){}setTileVisible(tile,state){}calculateError(tile){return 0}tileInView(tile){return true}ensureChildrenArePreprocessed(tile){const children=tile.children;for(let i=0,l=children.length;i{if(tile.__loadingState===$002d29a772485791$exports.FAILED)tile.__loadingState=$002d29a772485791$exports.UNLOADED});stats.failed=0}fetchTileSet(url,fetchOptions,parent=null){return fetch(url,fetchOptions).then(res=>{if(res.ok)return res.json();else throw new Error(`TilesRenderer: Failed to load tileset "${url}" with status ${res.status} : ${res.statusText}`)}).then(json=>{const version=json.asset.version;console.assert(version==="1.0"||version==="0.0","asset.version is expected to be a string of \"1.0\" or \"0.0\"");let basePath=url.replace(/\/[^\/]*\/?$/,"");basePath=new URL(basePath,window.location.href).toString();this.preprocessNode(json.root,basePath,parent);return json})}loadRootTileSet(url){const tileSets=this.tileSets;if(!(url in tileSets)){const pr=this.fetchTileSet(this.preprocessURL?this.preprocessURL(url):url,this.fetchOptions).then(json=>{tileSets[url]=json});pr.catch(err=>{console.error(err);tileSets[url]=err});tileSets[url]=pr;return pr}else if(tileSets[url]instanceof Error)return Promise.reject(tileSets[url]);else return Promise.resolve(tileSets[url])}requestTileContents(tile){if(tile.__loadingState!==$002d29a772485791$exports.UNLOADED)return;const stats=this.stats;const lruCache=this.lruCache;const downloadQueue=this.downloadQueue;const parseQueue=this.parseQueue;const isExternalTileSet=tile.__externalTileSet;lruCache.add(tile,t=>{if(t.__loadingState===$002d29a772485791$exports.LOADING){t.__loadAbort.abort();t.__loadAbort=null}else if(isExternalTileSet)t.children.length=0;else this.disposeTile(t);if(t.__loadingState===$002d29a772485791$exports.LOADING)stats.downloading--;else if(t.__loadingState===$002d29a772485791$exports.PARSING)stats.parsing--;t.__loadingState=$002d29a772485791$exports.UNLOADED;t.__loadIndex++;parseQueue.remove(t);downloadQueue.remove(t)});tile.__loadIndex++;const loadIndex=tile.__loadIndex;const controller=new AbortController;const signal=controller.signal;stats.downloading++;tile.__loadAbort=controller;tile.__loadingState=$002d29a772485791$exports.LOADING;const errorCallback=e=>{if(tile.__loadIndex!==loadIndex)return;if(e.name!=="AbortError"){parseQueue.remove(tile);downloadQueue.remove(tile);if(tile.__loadingState===$002d29a772485791$exports.PARSING)stats.parsing--;else if(tile.__loadingState===$002d29a772485791$exports.LOADING)stats.downloading--;stats.failed++;console.error(`TilesRenderer : Failed to load tile at url "${tile.content.uri}".`);console.error(e);tile.__loadingState=$002d29a772485791$exports.FAILED}else lruCache.remove(tile)};if(isExternalTileSet)downloadQueue.add(tile,tileCb=>{if(tileCb.__loadIndex!==loadIndex)return Promise.resolve();const uri=this.preprocessURL?this.preprocessURL(tileCb.content.uri):tileCb.content.uri;return this.fetchTileSet(uri,Object.assign({signal:signal},this.fetchOptions),tileCb)}).then(json=>{if(tile.__loadIndex!==loadIndex)return;stats.downloading--;tile.__loadAbort=null;tile.__loadingState=$002d29a772485791$exports.LOADED;tile.children.push(json.root)}).catch(errorCallback);else downloadQueue.add(tile,downloadTile=>{if(downloadTile.__loadIndex!==loadIndex)return Promise.resolve();const uri=this.preprocessURL?this.preprocessURL(downloadTile.content.uri):downloadTile.content.uri;return fetch(uri,Object.assign({signal:signal},this.fetchOptions))}).then(res=>{if(tile.__loadIndex!==loadIndex)return;if(res.ok)return res.arrayBuffer();else throw new Error(`Failed to load model with error code ${res.status}`)}).then(buffer=>{if(tile.__loadIndex!==loadIndex)return;stats.downloading--;stats.parsing++;tile.__loadAbort=null;tile.__loadingState=$002d29a772485791$exports.PARSING;return parseQueue.add(tile,parseTile=>{if(parseTile.__loadIndex!==loadIndex)return Promise.resolve();const uri=parseTile.content.uri;const extension=(0,$7ff9fb142d83939f$exports.getUrlExtension)(uri);return this.parseTile(buffer,parseTile,extension)})}).then(()=>{if(tile.__loadIndex!==loadIndex)return;stats.parsing--;tile.__loadingState=$002d29a772485791$exports.LOADED;if(tile.__wasSetVisible)this.setTileVisible(tile,true);if(tile.__wasSetActive)this.setTileActive(tile,true)}).catch(errorCallback)}dispose(){const lruCache=this.lruCache;const toRemove=[];this.traverse(t=>{toRemove.push(t);return false});for(let i=0,l=toRemove.length;ibinOffset+binLength)throw new Error("FeatureTable: Feature data read outside binary body length.");return data}}getBuffer(byteOffset,byteLength){const{buffer:buffer,binOffset:binOffset}=this;return buffer.slice(binOffset+byteOffset,binOffset+byteOffset+byteLength)}}$5bfd2e53a5ab8bef$exports.FeatureTable=$5bfd2e53a5ab8bef$var$FeatureTable;class $5bfd2e53a5ab8bef$var$BatchTable extends $5bfd2e53a5ab8bef$var$FeatureTable{constructor(buffer,batchSize,start,headerLength,binLength){super(buffer,start,headerLength,binLength);this.batchSize=batchSize}getData(key,componentType=null,type=null){return super.getData(key,this.batchSize,componentType,type)}}$5bfd2e53a5ab8bef$exports.BatchTable=$5bfd2e53a5ab8bef$var$BatchTable;var $e6b785bba9ea128d$exports={};"use strict";Object.defineProperty($e6b785bba9ea128d$exports,"__esModule",{value:true});$e6b785bba9ea128d$exports.LoaderBase=void 0;class $e6b785bba9ea128d$var$LoaderBase{constructor(){this.fetchOptions={};this.workingPath=""}load(url){return fetch(url,this.fetchOptions).then(res=>{if(!res.ok)throw new Error(`Failed to load file "${url}" with status ${res.status} : ${res.statusText}`);return res.arrayBuffer()}).then(buffer=>{if(this.workingPath==="")this.workingPath=this.workingPathForURL(url);return this.parse(buffer)})}resolveExternalURL(url){if(/^[^\\/]/.test(url))return this.workingPath+"/"+url;else return url}workingPathForURL(url){const splits=url.split(/[\\/]/g);splits.pop();const workingPath=splits.join("/");return workingPath+"/"}parse(buffer){throw new Error("LoaderBase: Parse not implemented.")}}$e6b785bba9ea128d$exports.LoaderBase=$e6b785bba9ea128d$var$LoaderBase;var $9e3e194659cc5776$exports={};"use strict";Object.defineProperty($9e3e194659cc5776$exports,"__esModule",{value:true});$9e3e194659cc5776$exports.readMagicBytes=$9e3e194659cc5776$var$readMagicBytes;function $9e3e194659cc5776$var$readMagicBytes(bufferOrDataView){let view;if(bufferOrDataView instanceof DataView)view=bufferOrDataView;else view=new DataView(bufferOrDataView);if(String.fromCharCode(view.getUint8(0))==="{")return null;let magicBytes="";for(let i=0;i<4;i++)magicBytes+=String.fromCharCode(view.getUint8(i));return magicBytes}class $f5d9b5dde53306bf$var$B3DMLoaderBase extends $e6b785bba9ea128d$exports.LoaderBase{parse(buffer){const dataView=new DataView(buffer);const magic=(0,$9e3e194659cc5776$exports.readMagicBytes)(dataView);console.assert(magic==="b3dm");const version=dataView.getUint32(4,true);console.assert(version===1);const byteLength=dataView.getUint32(8,true);console.assert(byteLength===buffer.byteLength);const featureTableJSONByteLength=dataView.getUint32(12,true);const featureTableBinaryByteLength=dataView.getUint32(16,true);const batchTableJSONByteLength=dataView.getUint32(20,true);const batchTableBinaryByteLength=dataView.getUint32(24,true);const featureTableStart=28;const featureTableBuffer=buffer.slice(featureTableStart,featureTableStart+featureTableJSONByteLength+featureTableBinaryByteLength);const featureTable=new $5bfd2e53a5ab8bef$exports.FeatureTable(featureTableBuffer,0,featureTableJSONByteLength,featureTableBinaryByteLength);const batchTableStart=featureTableStart+featureTableJSONByteLength+featureTableBinaryByteLength;const batchTableBuffer=buffer.slice(batchTableStart,batchTableStart+batchTableJSONByteLength+batchTableBinaryByteLength);const batchTable=new $5bfd2e53a5ab8bef$exports.BatchTable(batchTableBuffer,featureTable.getData("BATCH_LENGTH"),0,batchTableJSONByteLength,batchTableBinaryByteLength);const glbStart=batchTableStart+batchTableJSONByteLength+batchTableBinaryByteLength;const glbBytes=new Uint8Array(buffer,glbStart,byteLength-glbStart);return{version:version,featureTable:featureTable,batchTable:batchTable,glbBytes:glbBytes}}}$f5d9b5dde53306bf$exports.B3DMLoaderBase=$f5d9b5dde53306bf$var$B3DMLoaderBase;class $0aa3d1def57e98b1$var$B3DMLoader extends $f5d9b5dde53306bf$exports.B3DMLoaderBase{constructor(manager=$5OpyM$DefaultLoadingManager){super();this.manager=manager;this.adjustmentTransform=new $5OpyM$Matrix4}parse(buffer){const b3dm=super.parse(buffer);const gltfBuffer=b3dm.glbBytes.slice().buffer;return new Promise((resolve,reject)=>{const manager=this.manager;const fetchOptions=this.fetchOptions;const loader=manager.getHandler("path.gltf")||new $5OpyM$GLTFLoader(manager);if(fetchOptions.credentials==="include"&&fetchOptions.mode==="cors")loader.setCrossOrigin("use-credentials");if("credentials"in fetchOptions)loader.setWithCredentials(fetchOptions.credentials==="include");if(fetchOptions.headers)loader.setRequestHeader(fetchOptions.headers);let workingPath=this.workingPath;if(!/[\\/]$/.test(workingPath)&&workingPath.length)workingPath+="/";const adjustmentTransform=this.adjustmentTransform;loader.parse(gltfBuffer,workingPath,model=>{const{batchTable:batchTable,featureTable:featureTable}=b3dm;const{scene:scene}=model;const rtcCenter=featureTable.getData("RTC_CENTER");if(rtcCenter){scene.position.x+=rtcCenter[0];scene.position.y+=rtcCenter[1];scene.position.z+=rtcCenter[2]}model.scene.updateMatrix();model.scene.matrix.multiply(adjustmentTransform);model.scene.matrix.decompose(model.scene.position,model.scene.quaternion,model.scene.scale);model.batchTable=batchTable;model.featureTable=featureTable;scene.batchTable=batchTable;scene.featureTable=featureTable;resolve(model)},reject)})}}$0aa3d1def57e98b1$exports.B3DMLoader=$0aa3d1def57e98b1$var$B3DMLoader;var $1ddd6ca16eb224df$exports={};"use strict";Object.defineProperty($1ddd6ca16eb224df$exports,"__esModule",{value:true});$1ddd6ca16eb224df$exports.PNTSLoader=void 0;var $d408eda5a179398a$exports={};"use strict";Object.defineProperty($d408eda5a179398a$exports,"__esModule",{value:true});$d408eda5a179398a$exports.PNTSLoaderBase=void 0;class $d408eda5a179398a$var$PNTSLoaderBase extends $e6b785bba9ea128d$exports.LoaderBase{parse(buffer){const dataView=new DataView(buffer);const magic=(0,$9e3e194659cc5776$exports.readMagicBytes)(dataView);console.assert(magic==="pnts");const version=dataView.getUint32(4,true);console.assert(version===1);const byteLength=dataView.getUint32(8,true);console.assert(byteLength===buffer.byteLength);const featureTableJSONByteLength=dataView.getUint32(12,true);const featureTableBinaryByteLength=dataView.getUint32(16,true);const batchTableJSONByteLength=dataView.getUint32(20,true);const batchTableBinaryByteLength=dataView.getUint32(24,true);const featureTableStart=28;const featureTableBuffer=buffer.slice(featureTableStart,featureTableStart+featureTableJSONByteLength+featureTableBinaryByteLength);const featureTable=new $5bfd2e53a5ab8bef$exports.FeatureTable(featureTableBuffer,0,featureTableJSONByteLength,featureTableBinaryByteLength);const batchTableStart=featureTableStart+featureTableJSONByteLength+featureTableBinaryByteLength;const batchTableBuffer=buffer.slice(batchTableStart,batchTableStart+batchTableJSONByteLength+batchTableBinaryByteLength);const batchTable=new $5bfd2e53a5ab8bef$exports.BatchTable(batchTableBuffer,featureTable.getData("BATCH_LENGTH")||featureTable.getData("POINTS_LENGTH"),0,batchTableJSONByteLength,batchTableBinaryByteLength);return Promise.resolve({version:version,featureTable:featureTable,batchTable:batchTable})}}$d408eda5a179398a$exports.PNTSLoaderBase=$d408eda5a179398a$var$PNTSLoaderBase;const $1ddd6ca16eb224df$var$DRACO_ATTRIBUTE_MAP={RGB:"color",POSITION:"position"};class $1ddd6ca16eb224df$var$PNTSLoader extends $d408eda5a179398a$exports.PNTSLoaderBase{constructor(manager=$5OpyM$DefaultLoadingManager){super();this.manager=manager}parse(buffer){return super.parse(buffer).then(async result=>{const{featureTable:featureTable}=result;const material=new $5OpyM$PointsMaterial;const extensions=featureTable.header.extensions;const translationOffset=new $5OpyM$Vector3;let geometry;if(extensions&&extensions["3DTILES_draco_point_compression"]){const{byteOffset:byteOffset,byteLength:byteLength,properties:properties}=extensions["3DTILES_draco_point_compression"];const dracoLoader=this.manager.getHandler("draco.drc");if(dracoLoader==null)throw new Error("PNTSLoader: dracoLoader not available.");const attributeIDs={};for(const key in properties)if(key in $1ddd6ca16eb224df$var$DRACO_ATTRIBUTE_MAP&&key in properties){const mappedKey=$1ddd6ca16eb224df$var$DRACO_ATTRIBUTE_MAP[key];attributeIDs[mappedKey]=properties[key]}const taskConfig={attributeIDs:attributeIDs,attributeTypes:{position:"Float32Array",color:"Uint8Array"},useUniqueIDs:true};const buffer=featureTable.getBuffer(byteOffset,byteLength);geometry=await dracoLoader.decodeGeometry(buffer,taskConfig);if(geometry.attributes.color)material.vertexColors=true}else{const POINTS_LENGTH=featureTable.getData("POINTS_LENGTH");const POSITION=featureTable.getData("POSITION",POINTS_LENGTH,"FLOAT","VEC3");const RGB=featureTable.getData("RGB",POINTS_LENGTH,"UNSIGNED_BYTE","VEC3");const POSITION_QUANTIZED=featureTable.getData("POSITION_QUANTIZED",POINTS_LENGTH,"UNSIGNED_SHORT","VEC3");const QUANTIZED_VOLUME_SCALE=featureTable.getData("QUANTIZED_VOLUME_SCALE",POINTS_LENGTH,"FLOAT","VEC3");const QUANTIZED_VOLUME_OFFSET=featureTable.getData("QUANTIZED_VOLUME_OFFSET",POINTS_LENGTH,"FLOAT","VEC3");geometry=new $5OpyM$BufferGeometry;if(POSITION_QUANTIZED){const decodedPositions=new Float32Array(POINTS_LENGTH*3);for(let i=0;i{if(feature in featureTable.header)console.warn(`PNTSLoader: Unsupported FeatureTable feature "${feature}" detected.`)});const object=new $5OpyM$Points(geometry,material);object.position.copy(translationOffset);result.scene=object;result.scene.featureTable=featureTable;const rtcCenter=featureTable.getData("RTC_CENTER");if(rtcCenter){result.scene.position.x+=rtcCenter[0];result.scene.position.y+=rtcCenter[1];result.scene.position.z+=rtcCenter[2]}return result})}}$1ddd6ca16eb224df$exports.PNTSLoader=$1ddd6ca16eb224df$var$PNTSLoader;var $0bc85483bdeca322$exports={};"use strict";Object.defineProperty($0bc85483bdeca322$exports,"__esModule",{value:true});$0bc85483bdeca322$exports.I3DMLoader=void 0;var $bcb352fb74bed4a5$exports={};"use strict";Object.defineProperty($bcb352fb74bed4a5$exports,"__esModule",{value:true});$bcb352fb74bed4a5$exports.I3DMLoaderBase=void 0;class $bcb352fb74bed4a5$var$I3DMLoaderBase extends $e6b785bba9ea128d$exports.LoaderBase{parse(buffer){const dataView=new DataView(buffer);const magic=(0,$9e3e194659cc5776$exports.readMagicBytes)(dataView);console.assert(magic==="i3dm");const version=dataView.getUint32(4,true);console.assert(version===1);const byteLength=dataView.getUint32(8,true);console.assert(byteLength===buffer.byteLength);const featureTableJSONByteLength=dataView.getUint32(12,true);const featureTableBinaryByteLength=dataView.getUint32(16,true);const batchTableJSONByteLength=dataView.getUint32(20,true);const batchTableBinaryByteLength=dataView.getUint32(24,true);const gltfFormat=dataView.getUint32(28,true);const featureTableStart=32;const featureTableBuffer=buffer.slice(featureTableStart,featureTableStart+featureTableJSONByteLength+featureTableBinaryByteLength);const featureTable=new $5bfd2e53a5ab8bef$exports.FeatureTable(featureTableBuffer,0,featureTableJSONByteLength,featureTableBinaryByteLength);const batchTableStart=featureTableStart+featureTableJSONByteLength+featureTableBinaryByteLength;const batchTableBuffer=buffer.slice(batchTableStart,batchTableStart+batchTableJSONByteLength+batchTableBinaryByteLength);const batchTable=new $5bfd2e53a5ab8bef$exports.BatchTable(batchTableBuffer,featureTable.getData("INSTANCES_LENGTH"),0,batchTableJSONByteLength,batchTableBinaryByteLength);const glbStart=batchTableStart+batchTableJSONByteLength+batchTableBinaryByteLength;const bodyBytes=new Uint8Array(buffer,glbStart,byteLength-glbStart);let glbBytes=null;let promise=null;if(gltfFormat){glbBytes=bodyBytes;promise=Promise.resolve()}else{const externalUri=this.resolveExternalURL((0,$5d480c6739d4b949$exports.arrayToString)(bodyBytes));promise=fetch(externalUri,this.fetchOptions).then(res=>{if(!res.ok)throw new Error(`I3DMLoaderBase : Failed to load file "${externalUri}" with status ${res.status} : ${res.statusText}`);return res.arrayBuffer()}).then(buffer=>{glbBytes=new Uint8Array(buffer)})}return promise.then(()=>{return{version:version,featureTable:featureTable,batchTable:batchTable,glbBytes:glbBytes}})}}$bcb352fb74bed4a5$exports.I3DMLoaderBase=$bcb352fb74bed4a5$var$I3DMLoaderBase;const $0bc85483bdeca322$var$tempFwd=new $5OpyM$Vector3;const $0bc85483bdeca322$var$tempUp=new $5OpyM$Vector3;const $0bc85483bdeca322$var$tempRight=new $5OpyM$Vector3;const $0bc85483bdeca322$var$tempPos=new $5OpyM$Vector3;const $0bc85483bdeca322$var$tempQuat=new $5OpyM$Quaternion;const $0bc85483bdeca322$var$tempSca=new $5OpyM$Vector3;const $0bc85483bdeca322$var$tempMat=new $5OpyM$Matrix4;class $0bc85483bdeca322$var$I3DMLoader extends $bcb352fb74bed4a5$exports.I3DMLoaderBase{constructor(manager=$5OpyM$DefaultLoadingManager){super();this.manager=manager;this.adjustmentTransform=new $5OpyM$Matrix4}resolveExternalURL(url){return this.manager.resolveURL(super.resolveExternalURL(url))}parse(buffer){return super.parse(buffer).then(i3dm=>{const{featureTable:featureTable,batchTable:batchTable}=i3dm;const gltfBuffer=i3dm.glbBytes.slice().buffer;return new Promise((resolve,reject)=>{const fetchOptions=this.fetchOptions;const manager=this.manager;const loader=manager.getHandler("path.gltf")||new $5OpyM$GLTFLoader(manager);if(fetchOptions.credentials==="include"&&fetchOptions.mode==="cors")loader.setCrossOrigin("use-credentials");if("credentials"in fetchOptions)loader.setWithCredentials(fetchOptions.credentials==="include");if(fetchOptions.headers)loader.setRequestHeader(fetchOptions.headers);let workingPath=this.workingPath;if(!/[\\/]$/.test(workingPath))workingPath+="/";const adjustmentTransform=this.adjustmentTransform;loader.parse(gltfBuffer,workingPath,model=>{const INSTANCES_LENGTH=featureTable.getData("INSTANCES_LENGTH");const POSITION=featureTable.getData("POSITION",INSTANCES_LENGTH,"FLOAT","VEC3");const NORMAL_UP=featureTable.getData("NORMAL_UP",INSTANCES_LENGTH,"FLOAT","VEC3");const NORMAL_RIGHT=featureTable.getData("NORMAL_RIGHT",INSTANCES_LENGTH,"FLOAT","VEC3");const SCALE_NON_UNIFORM=featureTable.getData("SCALE_NON_UNIFORM",INSTANCES_LENGTH,"FLOAT","VEC3");const SCALE=featureTable.getData("SCALE",INSTANCES_LENGTH,"FLOAT","SCALAR");["RTC_CENTER","QUANTIZED_VOLUME_OFFSET","QUANTIZED_VOLUME_SCALE","EAST_NORTH_UP","POSITION_QUANTIZED","NORMAL_UP_OCT32P","NORMAL_RIGHT_OCT32P"].forEach(feature=>{if(feature in featureTable.header)console.warn(`I3DMLoader: Unsupported FeatureTable feature "${feature}" detected.`)});const instanceMap=new Map;const instances=[];model.scene.traverse(child=>{if(child.isMesh){const{geometry:geometry,material:material}=child;const instancedMesh=new $5OpyM$InstancedMesh(geometry,material,INSTANCES_LENGTH);instancedMesh.position.copy(child.position);instancedMesh.rotation.copy(child.rotation);instancedMesh.scale.copy(child.scale);instances.push(instancedMesh);instanceMap.set(child,instancedMesh)}});const averageVector=new $5OpyM$Vector3;for(let i=0;i{const parent=mesh.parent;if(parent){parent.remove(mesh);parent.add(instancedMesh);instancedMesh.updateMatrixWorld();instancedMesh.position.copy(averageVector).applyMatrix4(instancedMesh.matrixWorld)}});for(let i=0;i{const group=new $5OpyM$Group;results.forEach(result=>{group.add(result.scene)});return{tiles:results,scene:group}})}}$54879e9a7dc345e0$exports.CMPTLoader=$54879e9a7dc345e0$var$CMPTLoader;var $29ced67d26e5c4e2$exports={};"use strict";Object.defineProperty($29ced67d26e5c4e2$exports,"__esModule",{value:true});$29ced67d26e5c4e2$exports.GLTFExtensionLoader=void 0;var $44c3bffa5e49f297$exports={};"use strict";Object.defineProperty($44c3bffa5e49f297$exports,"__esModule",{value:true});$44c3bffa5e49f297$exports.GLTFCesiumRTCExtension=void 0;class $44c3bffa5e49f297$var$GLTFCesiumRTCExtension{constructor(){this.name="CESIUM_RTC"}afterRoot(res){if(res.parser.json.extensions&&res.parser.json.extensions.CESIUM_RTC){const{center:center}=res.parser.json.extensions.CESIUM_RTC;if(center){res.scene.position.x+=center[0];res.scene.position.y+=center[1];res.scene.position.z+=center[2]}}}}$44c3bffa5e49f297$exports.GLTFCesiumRTCExtension=$44c3bffa5e49f297$var$GLTFCesiumRTCExtension;class $29ced67d26e5c4e2$var$GLTFExtensionLoader extends $e6b785bba9ea128d$exports.LoaderBase{constructor(manager=$5OpyM$DefaultLoadingManager){super();this.manager=manager}parse(buffer){return new Promise((resolve,reject)=>{const manager=this.manager;const fetchOptions=this.fetchOptions;let loader=manager.getHandler("path.gltf")||manager.getHandler("path.glb");if(!loader){loader=new $5OpyM$GLTFLoader(manager);loader.register(()=>new $44c3bffa5e49f297$exports.GLTFCesiumRTCExtension);if(fetchOptions.credentials==="include"&&fetchOptions.mode==="cors")loader.setCrossOrigin("use-credentials");if("credentials"in fetchOptions)loader.setWithCredentials(fetchOptions.credentials==="include");if(fetchOptions.headers)loader.setRequestHeader(fetchOptions.headers)}let resourcePath=loader.resourcePath||loader.path||this.workingPath;if(!/[\\/]$/.test(resourcePath)&&resourcePath.length)resourcePath+="/";loader.parse(buffer,resourcePath,model=>{resolve(model)},reject)})}}$29ced67d26e5c4e2$exports.GLTFExtensionLoader=$29ced67d26e5c4e2$var$GLTFExtensionLoader;var $3fcce8a4f74b2abc$exports={};"use strict";Object.defineProperty($3fcce8a4f74b2abc$exports,"__esModule",{value:true});$3fcce8a4f74b2abc$exports.TilesGroup=void 0;const $3fcce8a4f74b2abc$var$tempMat=new $5OpyM$Matrix4;class $3fcce8a4f74b2abc$var$TilesGroup extends $5OpyM$Group{constructor(tilesRenderer){super();this.name="TilesRenderer.TilesGroup";this.tilesRenderer=tilesRenderer}raycast(raycaster,intersects){if(this.tilesRenderer.optimizeRaycast)this.tilesRenderer.raycast(raycaster,intersects)}updateMatrixWorld(force){if(this.matrixAutoUpdate)this.updateMatrix();if(this.matrixWorldNeedsUpdate||force){if(this.parent===null)$3fcce8a4f74b2abc$var$tempMat.copy(this.matrix);else $3fcce8a4f74b2abc$var$tempMat.multiplyMatrices(this.parent.matrixWorld,this.matrix);this.matrixWorldNeedsUpdate=false;const elA=$3fcce8a4f74b2abc$var$tempMat.elements;const elB=this.matrixWorld.elements;let isDifferent=false;for(let i=0;i<16;i++){const itemA=elA[i];const itemB=elB[i];const diff=Math.abs(itemA-itemB);if(diff>Number.EPSILON){isDifferent=true;break}}if(isDifferent){this.matrixWorld.copy($3fcce8a4f74b2abc$var$tempMat);const children=this.children;for(let i=0,l=children.length;i{Object.getPrototypeOf(c).raycast.call(c,raycaster,intersects)})}function $c1ac95a1e8efcc86$var$intersectTileSceneFirstHist(scene,raycaster){$c1ac95a1e8efcc86$var$intersectTileScene(scene,raycaster,$c1ac95a1e8efcc86$var$_hitArray);$c1ac95a1e8efcc86$var$_hitArray.sort($c1ac95a1e8efcc86$var$distanceSort);const hit=$c1ac95a1e8efcc86$var$_hitArray[0]||null;$c1ac95a1e8efcc86$var$_hitArray.length=0;return hit}function $c1ac95a1e8efcc86$var$raycastTraverseFirstHit(renderer,tile,raycaster,localRay=null){const{group:group,activeTiles:activeTiles}=renderer;renderer.ensureChildrenArePreprocessed(tile);if(localRay===null){localRay=$c1ac95a1e8efcc86$var$_localRay;$c1ac95a1e8efcc86$var$_mat.copy(group.matrixWorld).invert();localRay.copy(raycaster.ray).applyMatrix4($c1ac95a1e8efcc86$var$_mat)}const array=[];const children=tile.children;for(let i=0,l=children.length;ibestHitDistSq)break;const hit=$c1ac95a1e8efcc86$var$raycastTraverseFirstHit(renderer,tile,raycaster,localRay);if(hit){const hitDistSq=hit.distance*hit.distance;if(hitDistSqnew $5OpyM$Vector3)}update(){const{points:points,inverseTransform:inverseTransform,transform:transform,box:box}=this;inverseTransform.copy(transform).invert();const{min:min,max:max}=box;let index=0;for(let x=-1;x<=1;x+=2){for(let y=-1;y<=1;y+=2)for(let z=-1;z<=1;z+=2){points[index].set(x<0?min.x:max.x,y<0?min.y:max.y,z<0?min.z:max.z).applyMatrix4(transform);index++}}}intersectsFrustum(frustum){const{points:points}=this;const{planes:planes}=frustum;for(let i=0;i<6;i++){const plane=planes[i];let maxDistance=-Infinity;for(let j=0;j<8;j++){const v=points[j];const dist=plane.distanceToPoint(v);maxDistance=maxDistanceMath.PI/4){multiplier=-1;latPrime=lat-1e-7}const norm=this.getCartographicToNormal(lat,lon,$9160f8f2e0578e98$var$_vec).normalize();const normPrime=this.getCartographicToNormal(latPrime,lon,$9160f8f2e0578e98$var$_vec2).normalize();westTarget.crossVectors(norm,normPrime).normalize().multiplyScalar(multiplier);return target.crossVectors(westTarget,norm).normalize()}getCartographicToPosition(lat,lon,height,target){this.getCartographicToNormal(lat,lon,$9160f8f2e0578e98$var$_norm);const radius=this.radius;$9160f8f2e0578e98$var$_vec.copy($9160f8f2e0578e98$var$_norm);$9160f8f2e0578e98$var$_vec.x*=radius.x**2;$9160f8f2e0578e98$var$_vec.y*=radius.y**2;$9160f8f2e0578e98$var$_vec.z*=radius.z**2;const gamma=Math.sqrt($9160f8f2e0578e98$var$_norm.dot($9160f8f2e0578e98$var$_vec));$9160f8f2e0578e98$var$_vec.divideScalar(gamma);return target.copy($9160f8f2e0578e98$var$_vec).addScaledVector($9160f8f2e0578e98$var$_norm,height)}getPositionToCartographic(pos,target){this.getPositionToSurfacePoint(pos,$9160f8f2e0578e98$var$_vec);this.getPositionToNormal(pos,$9160f8f2e0578e98$var$_norm);const heightDelta=$9160f8f2e0578e98$var$_vec2.subVectors(pos,$9160f8f2e0578e98$var$_vec);target.lon=Math.atan2($9160f8f2e0578e98$var$_norm.y,$9160f8f2e0578e98$var$_norm.x);target.lat=Math.asin($9160f8f2e0578e98$var$_norm.z);target.height=Math.sign(heightDelta.dot(pos))*heightDelta.length();return target}getCartographicToNormal(lat,lon,target){$9160f8f2e0578e98$var$_spherical.set(1,(0,$1hGdn.latitudeToSphericalPhi)(lat),lon);target.setFromSpherical($9160f8f2e0578e98$var$_spherical).normalize();(0,$1hGdn.swapToGeoFrame)(target);return target}getPositionToNormal(pos,target){const radius=this.radius;target.copy(pos);target.x/=radius.x**2;target.y/=radius.y**2;target.z/=radius.z**2;target.normalize();return target}getPositionToSurfacePoint(pos,target){const radius=this.radius;const invRadiusSqX=1/radius.x**2;const invRadiusSqY=1/radius.y**2;const invRadiusSqZ=1/radius.z**2;const x2=pos.x*pos.x*invRadiusSqX;const y2=pos.y*pos.y*invRadiusSqY;const z2=pos.z*pos.z*invRadiusSqZ;const squaredNorm=x2+y2+z2;const ratio=Math.sqrt(1/squaredNorm);const intersection=$9160f8f2e0578e98$var$_vec.copy(pos).multiplyScalar(ratio);if(squaredNorm<$9160f8f2e0578e98$var$CENTER_EPS)return!isFinite(ratio)?null:target.copy(intersection);const gradient=$9160f8f2e0578e98$var$_vec2.set(intersection.x*invRadiusSqX*2,intersection.y*invRadiusSqY*2,intersection.z*invRadiusSqZ*2);let lambda=(1-ratio)*pos.length()/(0.5*gradient.length());let correction=0;let func,denominator;let xMultiplier,yMultiplier,zMultiplier;let xMultiplier2,yMultiplier2,zMultiplier2;let xMultiplier3,yMultiplier3,zMultiplier3;do{lambda-=correction;xMultiplier=1/(1+lambda*invRadiusSqX);yMultiplier=1/(1+lambda*invRadiusSqY);zMultiplier=1/(1+lambda*invRadiusSqZ);xMultiplier2=xMultiplier*xMultiplier;yMultiplier2=yMultiplier*yMultiplier;zMultiplier2=zMultiplier*zMultiplier;xMultiplier3=xMultiplier2*xMultiplier;yMultiplier3=yMultiplier2*yMultiplier;zMultiplier3=zMultiplier2*zMultiplier;func=x2*xMultiplier2+y2*yMultiplier2+z2*zMultiplier2-1;denominator=x2*xMultiplier3*invRadiusSqX+y2*yMultiplier3*invRadiusSqY+z2*zMultiplier3*invRadiusSqZ;const derivative=-2*denominator;correction=func/derivative}while(Math.abs(func)>$9160f8f2e0578e98$var$EPSILON12);return target.set(pos.x*xMultiplier,pos.y*yMultiplier,pos.z*zMultiplier)}}$9160f8f2e0578e98$exports.Ellipsoid=$9160f8f2e0578e98$var$Ellipsoid;const $aa7b3b269f245cbe$var$PI=Math.PI;const $aa7b3b269f245cbe$var$HALF_PI=$aa7b3b269f245cbe$var$PI/2;const $aa7b3b269f245cbe$var$_orthoX=new $5OpyM$Vector3;const $aa7b3b269f245cbe$var$_orthoY=new $5OpyM$Vector3;const $aa7b3b269f245cbe$var$_orthoZ=new $5OpyM$Vector3;const $aa7b3b269f245cbe$var$_invMatrix=new $5OpyM$Matrix4;let $aa7b3b269f245cbe$var$_poolIndex=0;const $aa7b3b269f245cbe$var$_pointsPool=[];function $aa7b3b269f245cbe$var$getVector(usePool=false){if(!usePool)return new $5OpyM$Vector3;if(!$aa7b3b269f245cbe$var$_pointsPool[$aa7b3b269f245cbe$var$_poolIndex])$aa7b3b269f245cbe$var$_pointsPool[$aa7b3b269f245cbe$var$_poolIndex]=new $5OpyM$Vector3;$aa7b3b269f245cbe$var$_poolIndex++;return $aa7b3b269f245cbe$var$_pointsPool[$aa7b3b269f245cbe$var$_poolIndex-1]}function $aa7b3b269f245cbe$var$resetPool(){$aa7b3b269f245cbe$var$_poolIndex=0}class $aa7b3b269f245cbe$var$EllipsoidRegion extends $9160f8f2e0578e98$exports.Ellipsoid{constructor(x,y,z,latStart=-$aa7b3b269f245cbe$var$HALF_PI,latEnd=$aa7b3b269f245cbe$var$HALF_PI,lonStart=0,lonEnd=2*$aa7b3b269f245cbe$var$PI,heightStart=0,heightEnd=0){super(x,y,z);this.latStart=latStart;this.latEnd=latEnd;this.lonStart=lonStart;this.lonEnd=lonEnd;this.heightStart=heightStart;this.heightEnd=heightEnd}_getPoints(usePool=false){const{latStart:latStart,latEnd:latEnd,lonStart:lonStart,lonEnd:lonEnd,heightStart:heightStart,heightEnd:heightEnd}=this;const midLat=$5OpyM$MathUtils.mapLinear(0.5,0,1,latStart,latEnd);const midLon=$5OpyM$MathUtils.mapLinear(0.5,0,1,lonStart,lonEnd);const lonOffset=Math.floor(lonStart/$aa7b3b269f245cbe$var$HALF_PI)*$aa7b3b269f245cbe$var$HALF_PI;const latlon=[[-$aa7b3b269f245cbe$var$PI/2,0],[$aa7b3b269f245cbe$var$PI/2,0],[0,lonOffset],[0,lonOffset+$aa7b3b269f245cbe$var$PI/2],[0,lonOffset+$aa7b3b269f245cbe$var$PI],[0,lonOffset+3*$aa7b3b269f245cbe$var$PI/2],[latStart,lonEnd],[latEnd,lonEnd],[latStart,lonStart],[latEnd,lonStart],[0,lonStart],[0,lonEnd],[midLat,midLon],[latStart,midLon],[latEnd,midLon],[midLat,lonStart],[midLat,lonEnd]];const target=[];const total=latlon.length;for(let z=0;z<=1;z++){const height=$5OpyM$MathUtils.mapLinear(z,0,1,heightStart,heightEnd);for(let i=0,l=total;i=latStart&&lat<=latEnd&&lon>=lonStart&&lon<=lonEnd){const v=$aa7b3b269f245cbe$var$getVector(usePool);target.push(v);this.getCartographicToPosition(lat,lon,height,v)}}}return target}getBoundingBox(box,matrix){$aa7b3b269f245cbe$var$resetPool();const{latStart:latStart,latEnd:latEnd,lonStart:lonStart,lonEnd:lonEnd}=this;const latRange=latEnd-latStart;if(latRange<$aa7b3b269f245cbe$var$PI/2){const midLat=$5OpyM$MathUtils.mapLinear(0.5,0,1,latStart,latEnd);const midLon=$5OpyM$MathUtils.mapLinear(0.5,0,1,lonStart,lonEnd);this.getCartographicToNormal(midLat,midLon,$aa7b3b269f245cbe$var$_orthoZ);$aa7b3b269f245cbe$var$_orthoY.set(0,0,1);$aa7b3b269f245cbe$var$_orthoX.crossVectors($aa7b3b269f245cbe$var$_orthoY,$aa7b3b269f245cbe$var$_orthoZ);$aa7b3b269f245cbe$var$_orthoY.crossVectors($aa7b3b269f245cbe$var$_orthoX,$aa7b3b269f245cbe$var$_orthoZ);matrix.makeBasis($aa7b3b269f245cbe$var$_orthoX,$aa7b3b269f245cbe$var$_orthoY,$aa7b3b269f245cbe$var$_orthoZ)}else{$aa7b3b269f245cbe$var$_orthoX.set(1,0,0);$aa7b3b269f245cbe$var$_orthoY.set(0,1,0);$aa7b3b269f245cbe$var$_orthoZ.set(0,0,1);matrix.makeBasis($aa7b3b269f245cbe$var$_orthoX,$aa7b3b269f245cbe$var$_orthoY,$aa7b3b269f245cbe$var$_orthoZ)}$aa7b3b269f245cbe$var$_invMatrix.copy(matrix).invert();const points=this._getPoints(true);for(let i=0,l=points.length;iobbDistance?sphereDistance:obbDistance}intersectsFrustum(frustum){const obb=this.obb||this.regionObb;const sphere=this.sphere;if(sphere&&!frustum.intersectsSphere(sphere))return false;if(obb&&!obb.intersectsFrustum(frustum))return false;return Boolean(sphere||obb)}getOBB(targetBox,targetMatrix){const obb=this.obb||this.regionObb;if(obb){targetBox.copy(obb.box);targetMatrix.copy(obb.transform)}else{this.getAABB(targetBox);targetMatrix.identity()}}getAABB(target){if(this.sphere)this.sphere.getBoundingBox(target);else{const obb=this.obb||this.regionObb;target.copy(obb.box).applyMatrix4(obb.transform)}}getSphere(target){if(this.sphere)target.copy(this.sphere);else if(this.region)this.region.getBoundingSphere(target);else{const obb=this.obb||this.regionObb;obb.box.getBoundingSphere(target);target.applyMatrix4(obb.transform)}}setObbData(data,transform){const obb=new $9e13f7da58b2928b$exports.OBB;$163be4c04da1c269$var$_vecX.set(data[3],data[4],data[5]);$163be4c04da1c269$var$_vecY.set(data[6],data[7],data[8]);$163be4c04da1c269$var$_vecZ.set(data[9],data[10],data[11]);const scaleX=$163be4c04da1c269$var$_vecX.length();const scaleY=$163be4c04da1c269$var$_vecY.length();const scaleZ=$163be4c04da1c269$var$_vecZ.length();$163be4c04da1c269$var$_vecX.normalize();$163be4c04da1c269$var$_vecY.normalize();$163be4c04da1c269$var$_vecZ.normalize();if(scaleX===0)$163be4c04da1c269$var$_vecX.crossVectors($163be4c04da1c269$var$_vecY,$163be4c04da1c269$var$_vecZ);if(scaleY===0)$163be4c04da1c269$var$_vecY.crossVectors($163be4c04da1c269$var$_vecX,$163be4c04da1c269$var$_vecZ);if(scaleZ===0)$163be4c04da1c269$var$_vecZ.crossVectors($163be4c04da1c269$var$_vecX,$163be4c04da1c269$var$_vecY);obb.transform.set($163be4c04da1c269$var$_vecX.x,$163be4c04da1c269$var$_vecY.x,$163be4c04da1c269$var$_vecZ.x,data[0],$163be4c04da1c269$var$_vecX.y,$163be4c04da1c269$var$_vecY.y,$163be4c04da1c269$var$_vecZ.y,data[1],$163be4c04da1c269$var$_vecX.z,$163be4c04da1c269$var$_vecY.z,$163be4c04da1c269$var$_vecZ.z,data[2],0,0,0,1).premultiply(transform);obb.box.min.set(-scaleX,-scaleY,-scaleZ);obb.box.max.set(scaleX,scaleY,scaleZ);obb.update();this.obb=obb}setSphereData(x,y,z,radius,transform){const sphere=new $5OpyM$Sphere;sphere.center.set(x,y,z);sphere.radius=radius;sphere.applyMatrix4(transform);this.sphere=sphere}setRegionData(west,south,east,north,minHeight,maxHeight){const region=new $aa7b3b269f245cbe$exports.EllipsoidRegion($002d29a772485791$exports.WGS84_RADIUS,$002d29a772485791$exports.WGS84_RADIUS,$002d29a772485791$exports.WGS84_HEIGHT,south,north,west,east,minHeight,maxHeight);const obb=new $9e13f7da58b2928b$exports.OBB;region.getBoundingBox(obb.box,obb.transform);obb.update();this.region=region;this.regionObb=obb}}$163be4c04da1c269$exports.TileBoundingVolume=$163be4c04da1c269$var$TileBoundingVolume;const $06d26e8e9f5361d3$var$INITIAL_FRUSTUM_CULLED=Symbol("INITIAL_FRUSTUM_CULLED");const $06d26e8e9f5361d3$var$tempMat=new $5OpyM$Matrix4;const $06d26e8e9f5361d3$var$tempMat2=new $5OpyM$Matrix4;const $06d26e8e9f5361d3$var$tempVector=new $5OpyM$Vector3;const $06d26e8e9f5361d3$var$X_AXIS=new $5OpyM$Vector3(1,0,0);const $06d26e8e9f5361d3$var$Y_AXIS=new $5OpyM$Vector3(0,1,0);function $06d26e8e9f5361d3$var$updateFrustumCulled(object,toInitialValue){object.traverse(c=>{c.frustumCulled=c[$06d26e8e9f5361d3$var$INITIAL_FRUSTUM_CULLED]&&toInitialValue})}class $06d26e8e9f5361d3$var$TilesRenderer extends $5a6f7a997885dc30$exports.TilesRendererBase{get autoDisableRendererCulling(){return this._autoDisableRendererCulling}set autoDisableRendererCulling(value){if(this._autoDisableRendererCulling!==value){super._autoDisableRendererCulling=value;this.forEachLoadedModel(scene=>{$06d26e8e9f5361d3$var$updateFrustumCulled(scene,!value)})}}constructor(...args){super(...args);this.group=new $3fcce8a4f74b2abc$exports.TilesGroup(this);this.cameras=[];this.cameraMap=new Map;this.cameraInfo=[];this.activeTiles=new Set;this.visibleTiles=new Set;this._autoDisableRendererCulling=true;this.optimizeRaycast=true;this.onLoadTileSet=null;this.onLoadModel=null;this.onDisposeModel=null;this.onTileVisibilityChange=null;const manager=new $5OpyM$LoadingManager;manager.setURLModifier(url=>{if(this.preprocessURL)return this.preprocessURL(url);else return url});this.manager=manager;const tilesRenderer=this;this._overridenRaycast=function(raycaster,intersects){if(!tilesRenderer.optimizeRaycast)Object.getPrototypeOf(this).raycast.call(this,raycaster,intersects)}}getBounds(target){if(!this.root)return false;const boundingVolume=this.root.cached.boundingVolume;if(boundingVolume){boundingVolume.getAABB(target);return true}else return true}getOrientedBounds(targetBox,targetMatrix){if(!this.root)return false;const boundingVolume=this.root.cached.boundingVolume;if(boundingVolume){boundingVolume.getOBB(targetBox,targetMatrix);return true}else return true}getBoundingSphere(target){if(!this.root)return false;const boundingVolume=this.root.cached.boundingVolume;if(boundingVolume){boundingVolume.getSphere(target);return true}else return false}forEachLoadedModel(callback){this.traverse(tile=>{const scene=tile.cached.scene;if(scene)callback(scene,tile)})}raycast(raycaster,intersects){if(!this.root)return;if(raycaster.firstHitOnly){const hit=(0,$c1ac95a1e8efcc86$exports.raycastTraverseFirstHit)(this,this.root,raycaster);if(hit)intersects.push(hit)}else(0,$c1ac95a1e8efcc86$exports.raycastTraverse)(this,this.root,raycaster,intersects)}hasCamera(camera){return this.cameraMap.has(camera)}setCamera(camera){const cameras=this.cameras;const cameraMap=this.cameraMap;if(!cameraMap.has(camera)){cameraMap.set(camera,new $5OpyM$Vector2);cameras.push(camera);return true}return false}setResolution(camera,xOrVec,y){const cameraMap=this.cameraMap;if(!cameraMap.has(camera))return false;if(xOrVec instanceof $5OpyM$Vector2)cameraMap.get(camera).copy(xOrVec);else cameraMap.get(camera).set(xOrVec,y);return true}setResolutionFromRenderer(camera,renderer){const cameraMap=this.cameraMap;if(!cameraMap.has(camera))return false;const resolution=cameraMap.get(camera);renderer.getSize(resolution);resolution.multiplyScalar(renderer.getPixelRatio());return true}deleteCamera(camera){const cameras=this.cameras;const cameraMap=this.cameraMap;if(cameraMap.has(camera)){const index=cameras.indexOf(camera);cameras.splice(index,1);cameraMap.delete(camera);return true}return false}fetchTileSet(url,...rest){const pr=super.fetchTileSet(url,...rest);pr.then(json=>{if(this.onLoadTileSet)Promise.resolve().then(()=>{this.onLoadTileSet(json,url)})});return pr}update(){const group=this.group;const cameras=this.cameras;const cameraMap=this.cameraMap;const cameraInfo=this.cameraInfo;if(cameras.length===0){console.warn("TilesRenderer: no cameras defined. Cannot update 3d tiles.");return}while(cameraInfo.length>cameras.length)cameraInfo.pop();while(cameraInfo.length1e-6)console.warn("ThreeTilesRenderer : Non uniform scale used for tile which may cause issues when calculating screen space error.");for(let i=0,l=cameraInfo.length;ires.scene);break}case"gltf":case"glb":const loader=new $29ced67d26e5c4e2$exports.GLTFExtensionLoader(manager);loader.workingPath=workingPath;loader.fetchOptions=fetchOptions;promise=loader.parse(buffer);break;default:console.warn(`TilesRenderer: Content type "${fileType}" not supported.`);promise=Promise.resolve(null);break;}return promise.then(result=>{let scene;let metadata;if(result.isObject3D){scene=result;metadata=null}else{scene=result.scene;metadata=result}if(tile._loadIndex!==loadIndex)return;scene.updateMatrix();if(fileType==="glb"||fileType==="gltf")scene.matrix.multiply(upAdjustment);scene.matrix.premultiply(cachedTransform);scene.matrix.decompose(scene.position,scene.quaternion,scene.scale);scene.traverse(c=>{c[$06d26e8e9f5361d3$var$INITIAL_FRUSTUM_CULLED]=c.frustumCulled});$06d26e8e9f5361d3$var$updateFrustumCulled(scene,!this.autoDisableRendererCulling);scene.traverse(c=>{c.raycast=this._overridenRaycast});const materials=[];const geometry=[];const textures=[];scene.traverse(c=>{if(c.geometry)geometry.push(c.geometry);if(c.material){const material=c.material;materials.push(c.material);for(const key in material){const value=material[key];if(value&&value.isTexture)textures.push(value)}}});cached.materials=materials;cached.geometry=geometry;cached.textures=textures;cached.scene=scene;cached.metadata=metadata;if(this.onLoadModel)this.onLoadModel(scene,tile)})}disposeTile(tile){const cached=tile.cached;if(cached.scene){const materials=cached.materials;const geometry=cached.geometry;const textures=cached.textures;const parent=cached.scene.parent;for(let i=0,l=geometry.length;i0.1){if($3b9225051b507460$var$_pos.z>0)$3b9225051b507460$var$_norm2.multiplyScalar(-1);normal.setXYZ(i,...$3b9225051b507460$var$_norm2)}}return geometry}class $3b9225051b507460$var$EllipsoidRegionLineHelper extends $5OpyM$LineSegments{constructor(ellipsoidRegion=new $aa7b3b269f245cbe$exports.EllipsoidRegion,color=16776960){super();this.ellipsoidRegion=ellipsoidRegion;this.material.color.set(color);this.update()}update(){const geometry=$3b9225051b507460$var$getRegionGeometry(this.ellipsoidRegion);this.geometry.dispose();this.geometry=new $5OpyM$EdgesGeometry(geometry,80)}dispose(){this.geometry.dispose();this.material.dispose()}}$3b9225051b507460$exports.EllipsoidRegionLineHelper=$3b9225051b507460$var$EllipsoidRegionLineHelper;class $3b9225051b507460$var$EllipsoidRegionHelper extends $5OpyM$Mesh{constructor(ellipsoidRegion=new $aa7b3b269f245cbe$exports.EllipsoidRegion,color=16776960){super();this.ellipsoidRegion=ellipsoidRegion;this.material.color.set(color);this.update()}update(){this.geometry.dispose();const geometry=$3b9225051b507460$var$getRegionGeometry(this.ellipsoidRegion);const{lonStart:lonStart,lonEnd:lonEnd}=this;if(lonEnd-lonStart>=2*Math.PI){geometry.groups.splice(2,2);this.geometry=$3b9225051b507460$var$toGroupGeometry(geometry)}else this.geometry=geometry}dispose(){this.geometry.dispose();this.material.dispose()}}$3b9225051b507460$exports.EllipsoidRegionHelper=$3b9225051b507460$var$EllipsoidRegionHelper;const $1909f04f34bd6630$var$ORIGINAL_MATERIAL=Symbol("ORIGINAL_MATERIAL");const $1909f04f34bd6630$var$HAS_RANDOM_COLOR=Symbol("HAS_RANDOM_COLOR");const $1909f04f34bd6630$var$HAS_RANDOM_NODE_COLOR=Symbol("HAS_RANDOM_NODE_COLOR");function $1909f04f34bd6630$var$emptyRaycast(){}const $1909f04f34bd6630$var$NONE=0;$1909f04f34bd6630$exports.NONE=$1909f04f34bd6630$var$NONE;const $1909f04f34bd6630$var$SCREEN_ERROR=1;$1909f04f34bd6630$exports.SCREEN_ERROR=$1909f04f34bd6630$var$SCREEN_ERROR;const $1909f04f34bd6630$var$GEOMETRIC_ERROR=2;$1909f04f34bd6630$exports.GEOMETRIC_ERROR=$1909f04f34bd6630$var$GEOMETRIC_ERROR;const $1909f04f34bd6630$var$DISTANCE=3;$1909f04f34bd6630$exports.DISTANCE=$1909f04f34bd6630$var$DISTANCE;const $1909f04f34bd6630$var$DEPTH=4;$1909f04f34bd6630$exports.DEPTH=$1909f04f34bd6630$var$DEPTH;const $1909f04f34bd6630$var$RELATIVE_DEPTH=5;$1909f04f34bd6630$exports.RELATIVE_DEPTH=$1909f04f34bd6630$var$RELATIVE_DEPTH;const $1909f04f34bd6630$var$IS_LEAF=6;$1909f04f34bd6630$exports.IS_LEAF=$1909f04f34bd6630$var$IS_LEAF;const $1909f04f34bd6630$var$RANDOM_COLOR=7;$1909f04f34bd6630$exports.RANDOM_COLOR=$1909f04f34bd6630$var$RANDOM_COLOR;const $1909f04f34bd6630$var$RANDOM_NODE_COLOR=8;$1909f04f34bd6630$exports.RANDOM_NODE_COLOR=$1909f04f34bd6630$var$RANDOM_NODE_COLOR;const $1909f04f34bd6630$var$CUSTOM_COLOR=9;$1909f04f34bd6630$exports.CUSTOM_COLOR=$1909f04f34bd6630$var$CUSTOM_COLOR;const $1909f04f34bd6630$var$_sphere=new $5OpyM$Sphere;class $1909f04f34bd6630$var$DebugTilesRenderer extends $06d26e8e9f5361d3$exports.TilesRenderer{constructor(...args){super(...args);const tilesGroup=this.group;const boxGroup=new $5OpyM$Group;boxGroup.name="DebugTilesRenderer.boxGroup";tilesGroup.add(boxGroup);const sphereGroup=new $5OpyM$Group;sphereGroup.name="DebugTilesRenderer.sphereGroup";tilesGroup.add(sphereGroup);const regionGroup=new $5OpyM$Group;regionGroup.name="DebugTilesRenderer.regionGroup";tilesGroup.add(regionGroup);this.displayBoxBounds=false;this.displaySphereBounds=false;this.displayRegionBounds=false;this.colorMode=$1909f04f34bd6630$var$NONE;this.customColorCallback=null;this.boxGroup=boxGroup;this.sphereGroup=sphereGroup;this.regionGroup=regionGroup;this.maxDebugDepth=-1;this.maxDebugDistance=-1;this.maxDebugError=-1;this.getDebugColor=(value,target)=>{target.setRGB(value,value,value)};this.extremeDebugDepth=-1;this.extremeDebugError=-1}initExtremes(){let maxDepth=-1;this.traverse(tile=>{maxDepth=Math.max(maxDepth,tile.__depth)});let maxError=-1;this.traverse(tile=>{maxError=Math.max(maxError,tile.geometricError)});this.extremeDebugDepth=maxDepth;this.extremeDebugError=maxError}fetchTileSet(...args){const pr=super.fetchTileSet(...args);pr.then(()=>{Promise.resolve().then(()=>{this.initExtremes()})}).catch(()=>{});return pr}getTileInformationFromActiveObject(object){let targetTile=null;const activeTiles=this.activeTiles;activeTiles.forEach(tile=>{if(targetTile)return true;const scene=tile.cached.scene;if(scene)scene.traverse(c=>{if(c===object)targetTile=tile})});if(targetTile)return{distanceToCamera:targetTile.__distanceFromCamera,geometricError:targetTile.geometricError,screenSpaceError:targetTile.__error,depth:targetTile.__depth,isLeaf:targetTile.__isLeaf};else return null}update(){super.update();if(!this.root)return;this.boxGroup.visible=this.displayBoxBounds;this.sphereGroup.visible=this.displaySphereBounds;this.regionGroup.visible=this.displayRegionBounds;let maxDepth=-1;if(this.maxDebugDepth===-1)maxDepth=this.extremeDebugDepth;else maxDepth=this.maxDebugDepth;let maxError=-1;if(this.maxDebugError===-1)maxError=this.extremeDebugError;else maxError=this.maxDebugError;let maxDistance=-1;if(this.maxDebugDistance===-1){this.root.cached.boundingVolume.getSphere($1909f04f34bd6630$var$_sphere);maxDistance=$1909f04f34bd6630$var$_sphere.radius}else maxDistance=this.maxDebugDistance;const errorTarget=this.errorTarget;const colorMode=this.colorMode;const visibleTiles=this.visibleTiles;visibleTiles.forEach(tile=>{const scene=tile.cached.scene;let h,s,l;if(colorMode===$1909f04f34bd6630$var$RANDOM_COLOR){h=Math.random();s=0.5+Math.random()*0.5;l=0.375+Math.random()*0.25}scene.traverse(c=>{if(colorMode===$1909f04f34bd6630$var$RANDOM_NODE_COLOR){h=Math.random();s=0.5+Math.random()*0.5;l=0.375+Math.random()*0.25}const currMaterial=c.material;if(currMaterial){const originalMaterial=c[$1909f04f34bd6630$var$ORIGINAL_MATERIAL];if(colorMode===$1909f04f34bd6630$var$NONE&&currMaterial!==originalMaterial){c.material.dispose();c.material=c[$1909f04f34bd6630$var$ORIGINAL_MATERIAL]}else if(colorMode!==$1909f04f34bd6630$var$NONE&&currMaterial===originalMaterial){if(c.isPoints){const pointsMaterial=new $5OpyM$PointsMaterial;pointsMaterial.size=originalMaterial.size;pointsMaterial.sizeAttenuation=originalMaterial.sizeAttenuation;c.material=pointsMaterial}else{c.material=new $5OpyM$MeshStandardMaterial;c.material.flatShading=true}}if(colorMode!==$1909f04f34bd6630$var$RANDOM_COLOR)delete c.material[$1909f04f34bd6630$var$HAS_RANDOM_COLOR];if(colorMode!==$1909f04f34bd6630$var$RANDOM_NODE_COLOR)delete c.material[$1909f04f34bd6630$var$HAS_RANDOM_NODE_COLOR];switch(colorMode){case $1909f04f34bd6630$var$DEPTH:{const val=tile.__depth/maxDepth;this.getDebugColor(val,c.material.color);break}case $1909f04f34bd6630$var$RELATIVE_DEPTH:{const val=tile.__depthFromRenderedParent/maxDepth;this.getDebugColor(val,c.material.color);break}case $1909f04f34bd6630$var$SCREEN_ERROR:{const val=tile.__error/errorTarget;if(val>1)c.material.color.setRGB(1,0,0);else this.getDebugColor(val,c.material.color);break}case $1909f04f34bd6630$var$GEOMETRIC_ERROR:{const val=Math.min(tile.geometricError/maxError,1);this.getDebugColor(val,c.material.color);break}case $1909f04f34bd6630$var$DISTANCE:{const val=Math.min(tile.__distanceFromCamera/maxDistance,1);this.getDebugColor(val,c.material.color);break}case $1909f04f34bd6630$var$IS_LEAF:if(!tile.children||tile.children.length===0)this.getDebugColor(1,c.material.color);else this.getDebugColor(0,c.material.color);break;case $1909f04f34bd6630$var$RANDOM_NODE_COLOR:if(!c.material[$1909f04f34bd6630$var$HAS_RANDOM_NODE_COLOR]){c.material.color.setHSL(h,s,l);c.material[$1909f04f34bd6630$var$HAS_RANDOM_NODE_COLOR]=true}break;case $1909f04f34bd6630$var$RANDOM_COLOR:if(!c.material[$1909f04f34bd6630$var$HAS_RANDOM_COLOR]){c.material.color.setHSL(h,s,l);c.material[$1909f04f34bd6630$var$HAS_RANDOM_COLOR]=true}break;case $1909f04f34bd6630$var$CUSTOM_COLOR:if(this.customColorCallback)this.customColorCallback(tile,c);else console.warn("DebugTilesRenderer: customColorCallback not defined");break;}}})})}setTileVisible(tile,visible){super.setTileVisible(tile,visible);const cached=tile.cached;const sphereGroup=this.sphereGroup;const boxGroup=this.boxGroup;const regionGroup=this.regionGroup;const boxHelperGroup=cached.boxHelperGroup;const sphereHelper=cached.sphereHelper;const regionHelper=cached.regionHelper;if(!visible){if(boxHelperGroup)boxGroup.remove(boxHelperGroup);if(sphereHelper)sphereGroup.remove(sphereHelper);if(regionHelper)regionGroup.remove(regionHelper)}else{if(boxHelperGroup){boxGroup.add(boxHelperGroup);boxHelperGroup.updateMatrixWorld(true)}if(sphereHelper){sphereGroup.add(sphereHelper);sphereHelper.updateMatrixWorld(true)}if(regionHelper){regionGroup.add(regionHelper);regionHelper.updateMatrixWorld(true)}}}parseTile(buffer,tile,extension){return super.parseTile(buffer,tile,extension).then(()=>{const cached=tile.cached;const scene=cached.scene;if(scene){const{sphere:sphere,obb:obb,region:region}=cached.boundingVolume;if(obb){const boxHelperGroup=new $5OpyM$Group;boxHelperGroup.name="DebugTilesRenderer.boxHelperGroup";boxHelperGroup.matrix.copy(obb.transform);boxHelperGroup.matrixAutoUpdate=false;const boxHelper=new $5OpyM$Box3Helper(obb.box,(0,$3a66585ec6f85053$exports.getIndexedRandomColor)(tile.__depth));boxHelper.raycast=$1909f04f34bd6630$var$emptyRaycast;boxHelperGroup.add(boxHelper);cached.boxHelperGroup=boxHelperGroup;if(this.visibleTiles.has(tile)&&this.displayBoxBounds){this.boxGroup.add(boxHelperGroup);boxHelperGroup.updateMatrixWorld(true)}}if(sphere){const sphereHelper=new $1cb839fa4db014d3$exports.SphereHelper(sphere,(0,$3a66585ec6f85053$exports.getIndexedRandomColor)(tile.__depth));sphereHelper.raycast=$1909f04f34bd6630$var$emptyRaycast;cached.sphereHelper=sphereHelper;if(this.visibleTiles.has(tile)&&this.displaySphereBounds){this.sphereGroup.add(sphereHelper);sphereHelper.updateMatrixWorld(true)}}if(region){const regionHelper=new $3b9225051b507460$exports.EllipsoidRegionLineHelper(region,(0,$3a66585ec6f85053$exports.getIndexedRandomColor)(tile.__depth));regionHelper.raycast=$1909f04f34bd6630$var$emptyRaycast;const sphere=new $5OpyM$Sphere;region.getBoundingSphere(sphere);regionHelper.position.copy(sphere.center);sphere.center.multiplyScalar(-1);regionHelper.geometry.translate(...sphere.center);cached.regionHelper=regionHelper;if(this.visibleTiles.has(tile)&&this.displayRegionBounds){this.regionGroup.add(regionHelper);regionHelper.updateMatrixWorld(true)}}scene.traverse(c=>{const material=c.material;if(material)c[$1909f04f34bd6630$var$ORIGINAL_MATERIAL]=material})}})}disposeTile(tile){super.disposeTile(tile);const cached=tile.cached;if(cached.boxHelperGroup){cached.boxHelperGroup.children[0].geometry.dispose();delete cached.boxHelperGroup}if(cached.sphereHelper){cached.sphereHelper.geometry.dispose();delete cached.sphereHelper}}}$1909f04f34bd6630$exports.DebugTilesRenderer=$1909f04f34bd6630$var$DebugTilesRenderer;var $cf838c15c8b009ba$var$_GeoUtils=$cf838c15c8b009ba$var$_interopRequireWildcard(parcelRequire("1hGdn"));$cf838c15c8b009ba$exports.GeoUtils=$cf838c15c8b009ba$var$_GeoUtils;var $74a95d3099be71d6$exports={};"use strict";Object.defineProperty($74a95d3099be71d6$exports,"__esModule",{value:true});$74a95d3099be71d6$exports.WGS84_ELLIPSOID=void 0;const $74a95d3099be71d6$var$WGS84_ELLIPSOID=new $9160f8f2e0578e98$exports.Ellipsoid($002d29a772485791$exports.WGS84_RADIUS,$002d29a772485791$exports.WGS84_RADIUS,$002d29a772485791$exports.WGS84_HEIGHT);$74a95d3099be71d6$exports.WGS84_ELLIPSOID=$74a95d3099be71d6$var$WGS84_ELLIPSOID;Object.keys($74a95d3099be71d6$exports).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call($cf838c15c8b009ba$var$_exportNames,key))return;if(key in $cf838c15c8b009ba$exports&&$cf838c15c8b009ba$exports[key]===$74a95d3099be71d6$exports[key])return;Object.defineProperty($cf838c15c8b009ba$exports,key,{enumerable:true,get:function(){return $74a95d3099be71d6$exports[key]}})});var $e41589f0d6e8ce27$exports={};"use strict";Object.defineProperty($e41589f0d6e8ce27$exports,"__esModule",{value:true});$e41589f0d6e8ce27$exports.GoogleTilesRenderer=$e41589f0d6e8ce27$exports.DebugGoogleTilesRenderer=void 0;var $f462b5e10a0d334c$exports={};"use strict";Object.defineProperty($f462b5e10a0d334c$exports,"__esModule",{value:true});$f462b5e10a0d334c$exports.GoogleMapsTilesCredits=void 0;class $f462b5e10a0d334c$var$GoogleMapsTilesCredits{constructor(){this.creditsCount={}}_adjustCredits(line,add){const creditsCount=this.creditsCount;const tokens=line.split(/;/g);for(let i=0,l=tokens.length;iclass extends base{get ellipsoid(){return $74a95d3099be71d6$exports.WGS84_ELLIPSOID}constructor(apiKey,baseUrl=$e41589f0d6e8ce27$var$TILE_URL){super(new URL(`${baseUrl}?key=${apiKey}`).toString());this._credits=new $f462b5e10a0d334c$exports.GoogleMapsTilesCredits;this.fetchOptions.mode="cors";this.parseQueue.maxJobs=10;this.downloadQueue.maxJobs=30;this.lruCache.minSize=3000;this.lruCache.maxSize=5000;this.errorTarget=20;this.onLoadTileSet=tileset=>{let session;this.traverse(tile=>{if(tile.content&&tile.content.uri){session=new URL(tile.content.uri).searchParams.get("session");return true}return false});this.preprocessURL=uri=>{uri=new URL(uri);if(/^http/.test(uri.protocol)){uri.searchParams.append("session",session);uri.searchParams.append("key",apiKey)}return uri.toString()};this.onLoadTileSet=null};this.onTileVisibilityChange=(scene,tile,visible)=>{const copyright=tile.cached.metadata.asset.copyright||"";if(visible)this._credits.addCredits(copyright);else this._credits.removeCredits(copyright)}}getCreditsString(){return this._credits.toString()}setLatLonToYUp(lat,lon){const{ellipsoid:ellipsoid,group:group}=this;$e41589f0d6e8ce27$var$_euler.set(Math.PI/2,Math.PI/2,0);$e41589f0d6e8ce27$var$_mat.makeRotationFromEuler($e41589f0d6e8ce27$var$_euler);ellipsoid.constructLatLonFrame(lat,lon,group.matrix).multiply($e41589f0d6e8ce27$var$_mat).invert().decompose(group.position,group.quaternion,group.scale)}};const $e41589f0d6e8ce27$var$GoogleTilesRenderer=$e41589f0d6e8ce27$var$GoogleTilesRendererMixin($06d26e8e9f5361d3$exports.TilesRenderer);$e41589f0d6e8ce27$exports.GoogleTilesRenderer=$e41589f0d6e8ce27$var$GoogleTilesRenderer;const $e41589f0d6e8ce27$var$DebugGoogleTilesRenderer=$e41589f0d6e8ce27$var$GoogleTilesRendererMixin($1909f04f34bd6630$exports.DebugTilesRenderer);$e41589f0d6e8ce27$exports.DebugGoogleTilesRenderer=$e41589f0d6e8ce27$var$DebugGoogleTilesRenderer;Object.keys($e41589f0d6e8ce27$exports).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call($cf838c15c8b009ba$var$_exportNames,key))return;if(key in $cf838c15c8b009ba$exports&&$cf838c15c8b009ba$exports[key]===$e41589f0d6e8ce27$exports[key])return;Object.defineProperty($cf838c15c8b009ba$exports,key,{enumerable:true,get:function(){return $e41589f0d6e8ce27$exports[key]}})});var $3b72713b91ab2ada$exports={};"use strict";Object.defineProperty($3b72713b91ab2ada$exports,"__esModule",{value:true});$3b72713b91ab2ada$exports.DebugCesiumIonTilesRenderer=$3b72713b91ab2ada$exports.CesiumIonTilesRenderer=void 0;const $3b72713b91ab2ada$var$UNLOADED=0;const $3b72713b91ab2ada$var$LOADING=1;const $3b72713b91ab2ada$var$LOADED=2;const $3b72713b91ab2ada$var$FAILED=3;const $3b72713b91ab2ada$var$CesiumIonTilesRendererMixin=base=>class extends base{constructor(ionAssetId,ionAccessToken){super();this._tokenState=$3b72713b91ab2ada$var$UNLOADED;this._ionAccessToken=ionAccessToken;this._ionAssetId=ionAssetId;this._tileSetVersion=-1;this.preprocessURL=uri=>{uri=new URL(uri);if(/^http/.test(uri.protocol)&&this._tileSetVersion!=-1)uri.searchParams.append("v",this._tileSetVersion);return uri.toString()}}update(){const state=this._tokenState;if(state===$3b72713b91ab2ada$var$UNLOADED){this._tokenState=$3b72713b91ab2ada$var$LOADING;const url=new URL(`https://api.cesium.com/v1/assets/${this._ionAssetId}/endpoint`);url.searchParams.append("access_token",this._ionAccessToken);fetch(url,{mode:"cors"}).then(res=>{if(res.ok)return res.json();else return Promise.reject(`${res.status} : ${res.statusText}`)}).then(json=>{this._tokenState=$3b72713b91ab2ada$var$LOADED;const url=new URL(json.url);this._tileSetVersion=url.searchParams.get("v");this.rootURL=url;this.fetchOptions.headers=this.fetchOptions.headers||{};this.fetchOptions.headers.Authorization=`Bearer ${json.accessToken}`}).catch(()=>{this._tokenState=$3b72713b91ab2ada$var$FAILED})}else if(state===$3b72713b91ab2ada$var$LOADED)super.update()}};const $3b72713b91ab2ada$var$CesiumIonTilesRenderer=$3b72713b91ab2ada$var$CesiumIonTilesRendererMixin($06d26e8e9f5361d3$exports.TilesRenderer);$3b72713b91ab2ada$exports.CesiumIonTilesRenderer=$3b72713b91ab2ada$var$CesiumIonTilesRenderer;const $3b72713b91ab2ada$var$DebugCesiumIonTilesRenderer=$3b72713b91ab2ada$var$CesiumIonTilesRendererMixin($1909f04f34bd6630$exports.DebugTilesRenderer);$3b72713b91ab2ada$exports.DebugCesiumIonTilesRenderer=$3b72713b91ab2ada$var$DebugCesiumIonTilesRenderer;Object.keys($3b72713b91ab2ada$exports).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call($cf838c15c8b009ba$var$_exportNames,key))return;if(key in $cf838c15c8b009ba$exports&&$cf838c15c8b009ba$exports[key]===$3b72713b91ab2ada$exports[key])return;Object.defineProperty($cf838c15c8b009ba$exports,key,{enumerable:true,get:function(){return $3b72713b91ab2ada$exports[key]}})});Object.keys($002d29a772485791$exports).forEach(function(key){if(key==="default"||key==="__esModule")return;if(Object.prototype.hasOwnProperty.call($cf838c15c8b009ba$var$_exportNames,key))return;if(key in $cf838c15c8b009ba$exports&&$cf838c15c8b009ba$exports[key]===$002d29a772485791$exports[key])return;Object.defineProperty($cf838c15c8b009ba$exports,key,{enumerable:true,get:function(){return $002d29a772485791$exports[key]}})});function $cf838c15c8b009ba$var$_getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=="function")return null;var cacheBabelInterop=new WeakMap;var cacheNodeInterop=new WeakMap;return($cf838c15c8b009ba$var$_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop})(nodeInterop)}function $cf838c15c8b009ba$var$_interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule)return obj;if(obj===null||typeof obj!=="object"&&typeof obj!=="function")return{default:obj};var cache=$cf838c15c8b009ba$var$_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj))return cache.get(obj);var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj)if(key!=="default"&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set))Object.defineProperty(newObj,key,desc);else newObj[key]=obj[key]}newObj.default=obj;if(cache)cache.set(obj,newObj);return newObj}THREE.TDTiles=$cf838c15c8b009ba$exports});(function(){const DepthLimitedBlurShader={defines:{"KERNEL_RADIUS":4,"DEPTH_PACKING":1,"PERSPECTIVE_CAMERA":1},uniforms:{"tDiffuse":{value:null},"size":{value:new THREE.Vector2(512,512)},"sampleUvOffsets":{value:[new THREE.Vector2(0,0)]},"sampleWeights":{value:[1]},"tDepth":{value:null},"cameraNear":{value:10},"cameraFar":{value:1000},"depthCutoff":{value:10}},vertexShader:` #include uniform vec2 size; varying vec2 vUv; varying vec2 vInvSize; void main() { vUv = uv; vInvSize = 1.0 / size; gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); }`,fragmentShader:` #include #include uniform sampler2D tDiffuse; uniform sampler2D tDepth; uniform float cameraNear; uniform float cameraFar; uniform float depthCutoff; uniform vec2 sampleUvOffsets[ KERNEL_RADIUS + 1 ]; uniform float sampleWeights[ KERNEL_RADIUS + 1 ]; varying vec2 vUv; varying vec2 vInvSize; float getDepth( const in vec2 screenPosition ) { #if DEPTH_PACKING == 1 return unpackRGBAToDepth( texture2D( tDepth, screenPosition ) ); #else return texture2D( tDepth, screenPosition ).x; #endif } float getViewZ( const in float depth ) { #if PERSPECTIVE_CAMERA == 1 return perspectiveDepthToViewZ( depth, cameraNear, cameraFar ); #else return orthographicDepthToViewZ( depth, cameraNear, cameraFar ); #endif } void main() { float depth = getDepth( vUv ); if( depth >= ( 1.0 - EPSILON ) ) { discard; } float centerViewZ = -getViewZ( depth ); bool rBreak = false, lBreak = false; float weightSum = sampleWeights[0]; vec4 diffuseSum = texture2D( tDiffuse, vUv ) * weightSum; for( int i = 1; i <= KERNEL_RADIUS; i ++ ) { float sampleWeight = sampleWeights[i]; vec2 sampleUvOffset = sampleUvOffsets[i] * vInvSize; vec2 sampleUv = vUv + sampleUvOffset; float viewZ = -getViewZ( getDepth( sampleUv ) ); if( abs( viewZ - centerViewZ ) > depthCutoff ) rBreak = true; if( ! rBreak ) { diffuseSum += texture2D( tDiffuse, sampleUv ) * sampleWeight; weightSum += sampleWeight; } sampleUv = vUv - sampleUvOffset; viewZ = -getViewZ( getDepth( sampleUv ) ); if( abs( viewZ - centerViewZ ) > depthCutoff ) lBreak = true; if( ! lBreak ) { diffuseSum += texture2D( tDiffuse, sampleUv ) * sampleWeight; weightSum += sampleWeight; } } gl_FragColor = diffuseSum / weightSum; }`};const BlurShaderUtils={createSampleWeights:function(kernelRadius,stdDev){const weights=[];for(let i=0;i<=kernelRadius;i++){weights.push(gaussian(i,stdDev))}return weights},createSampleOffsets:function(kernelRadius,uvIncrement){const offsets=[];for(let i=0;i<=kernelRadius;i++){offsets.push(uvIncrement.clone().multiplyScalar(i))}return offsets},configure:function(material,kernelRadius,stdDev,uvIncrement){material.defines["KERNEL_RADIUS"]=kernelRadius;material.uniforms["sampleUvOffsets"].value=BlurShaderUtils.createSampleOffsets(kernelRadius,uvIncrement);material.uniforms["sampleWeights"].value=BlurShaderUtils.createSampleWeights(kernelRadius,stdDev);material.needsUpdate=true}};function gaussian(x,stdDev){return Math.exp(-(x*x)/(2*(stdDev*stdDev)))/(Math.sqrt(2*Math.PI)*stdDev)}THREE.BlurShaderUtils=BlurShaderUtils;THREE.DepthLimitedBlurShader=DepthLimitedBlurShader})();(function(){class EffectComposer{constructor(renderer,renderTarget){this.renderer=renderer;if(renderTarget===undefined){const size=renderer.getSize(new THREE.Vector2);this._pixelRatio=renderer.getPixelRatio();this._width=size.width;this._height=size.height;renderTarget=new THREE.WebGLRenderTarget(this._width*this._pixelRatio,this._height*this._pixelRatio);renderTarget.texture.name="EffectComposer.rt1"}else{this._pixelRatio=1;this._width=renderTarget.width;this._height=renderTarget.height}this.renderTarget1=renderTarget;this.renderTarget2=renderTarget.clone();this.renderTarget2.texture.name="EffectComposer.rt2";this.writeBuffer=this.renderTarget1;this.readBuffer=this.renderTarget2;this.renderToScreen=true;this.passes=[];if(THREE.CopyShader===undefined){console.error("THREE.EffectComposer relies on THREE.CopyShader")}if(THREE.ShaderPass===undefined){console.error("THREE.EffectComposer relies on THREE.ShaderPass")}this.copyPass=new THREE.ShaderPass(THREE.CopyShader);this.clock=new THREE.Clock}swapBuffers(){const tmp=this.readBuffer;this.readBuffer=this.writeBuffer;this.writeBuffer=tmp}addPass(pass){this.passes.push(pass);pass.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}insertPass(pass,index){this.passes.splice(index,0,pass);pass.setSize(this._width*this._pixelRatio,this._height*this._pixelRatio)}removePass(pass){const index=this.passes.indexOf(pass);if(index!==-1){this.passes.splice(index,1)}}isLastEnabledPass(passIndex){for(let i=passIndex+1;i 0.; // . 1 . // 0 0 0 // . 1 . // 45 deg edge detection and corners of objects, aka V/H contrast is too similar if( abs( relativeVContrast ) < .3 ) { // locate the edge vec2 dirToEdge; dirToEdge.x = contrastE > contrastW ? 1. : -1.; dirToEdge.y = contrastS > contrastN ? 1. : -1.; // . 2 . . 1 . // 1 0 2 ~= 0 0 1 // . 1 . . 0 . // tap 2 pixels and see which ones are "outside" the edge, to // determine if the edge is vertical or horizontal vec4 rgbaAlongH = FxaaTexOff(tex, posM, vec2( dirToEdge.x, -dirToEdge.y ), fxaaQualityRcpFrame.xy); float matchAlongH = contrast( rgbaM, rgbaAlongH ); // . 1 . // 0 0 1 // . 0 H vec4 rgbaAlongV = FxaaTexOff(tex, posM, vec2( -dirToEdge.x, dirToEdge.y ), fxaaQualityRcpFrame.xy); float matchAlongV = contrast( rgbaM, rgbaAlongV ); // V 1 . // 0 0 1 // . 0 . relativeVContrast = matchAlongV - matchAlongH; relativeVContrast *= fxaaQualityinvEdgeThreshold; if( abs( relativeVContrast ) < .3 ) { // 45 deg edge // 1 1 . // 0 0 1 // . 0 1 // do a simple blur return mix( rgbaM, (rgbaN + rgbaS + rgbaE + rgbaW) * .25, .4 ); } horzSpan = relativeVContrast > 0.; } if(!horzSpan) rgbaN = rgbaW; if(!horzSpan) rgbaS = rgbaE; // . 0 . 1 // 1 0 1 -> 0 // . 0 . 1 bool pairN = contrast( rgbaM, rgbaN ) > contrast( rgbaM, rgbaS ); if(!pairN) rgbaN = rgbaS; vec2 offNP; offNP.x = (!horzSpan) ? 0.0 : fxaaQualityRcpFrame.x; offNP.y = ( horzSpan) ? 0.0 : fxaaQualityRcpFrame.y; bool doneN = false; bool doneP = false; float nDist = 0.; float pDist = 0.; vec2 posN = posM; vec2 posP = posM; int iterationsUsed = 0; int iterationsUsedN = 0; int iterationsUsedP = 0; for( int i = 0; i < NUM_SAMPLES; i++ ) { iterationsUsed = i; float increment = float(i + 1); if(!doneN) { nDist += increment; posN = posM + offNP * nDist; vec4 rgbaEndN = FxaaTexTop(tex, posN.xy); doneN = contrast( rgbaEndN, rgbaM ) > contrast( rgbaEndN, rgbaN ); iterationsUsedN = i; } if(!doneP) { pDist += increment; posP = posM - offNP * pDist; vec4 rgbaEndP = FxaaTexTop(tex, posP.xy); doneP = contrast( rgbaEndP, rgbaM ) > contrast( rgbaEndP, rgbaN ); iterationsUsedP = i; } if(doneN || doneP) break; } if ( !doneP && !doneN ) return rgbaM; // failed to find end of edge float dist = min( doneN ? float( iterationsUsedN ) / float( NUM_SAMPLES - 1 ) : 1., doneP ? float( iterationsUsedP ) / float( NUM_SAMPLES - 1 ) : 1. ); // hacky way of reduces blurriness of mostly diagonal edges // but reduces AA quality dist = pow(dist, .5); dist = 1. - dist; return mix( rgbaM, rgbaN, dist * .5 ); } void main() { const float edgeDetectionQuality = .2; const float invEdgeDetectionQuality = 1. / edgeDetectionQuality; gl_FragColor = FxaaPixelShader( vUv, tDiffuse, resolution, edgeDetectionQuality, // [0,1] contrast needed, otherwise early discard invEdgeDetectionQuality ); } `};THREE.FXAAShader=FXAAShader})();(function(){const GammaCorrectionShader={uniforms:{"tDiffuse":{value:null}},vertexShader:` varying vec2 vUv; void main() { vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); }`,fragmentShader:` uniform sampler2D tDiffuse; varying vec2 vUv; void main() { vec4 tex = texture2D( tDiffuse, vUv ); gl_FragColor = LinearTosRGB( tex ); }`};THREE.GammaCorrectionShader=GammaCorrectionShader})();(function(require){class CustomRenderPass extends THREE.Pass{constructor(renderCallback){super();this.renderCallback=renderCallback;this.scene=null;this.camera=null;this.clear=true;this.clearDepth=false;this.needsSwap=false}render(renderer,writeBuffer,readBuffer,delta,maskActive){var oldAutoClear=renderer.autoClear;renderer.autoClear=false;this.renderCallback(renderer,this.scene,this.camera,this.renderToScreen?null:readBuffer,this.clear);renderer.autoClear=oldAutoClear}}THREE.CustomRenderPass=CustomRenderPass})();(function(){class MaskPass extends THREE.Pass{constructor(scene,camera){super();this.scene=scene;this.camera=camera;this.clear=true;this.needsSwap=false;this.inverse=false}render(renderer,writeBuffer,readBuffer){const context=renderer.getContext();const state=renderer.state;state.buffers.color.setMask(false);state.buffers.depth.setMask(false);state.buffers.color.setLocked(true);state.buffers.depth.setLocked(true);let writeValue,clearValue;if(this.inverse){writeValue=0;clearValue=1}else{writeValue=1;clearValue=0}state.buffers.stencil.setTest(true);state.buffers.stencil.setOp(context.REPLACE,context.REPLACE,context.REPLACE);state.buffers.stencil.setFunc(context.ALWAYS,writeValue,4294967295);state.buffers.stencil.setClear(clearValue);state.buffers.stencil.setLocked(true);renderer.setRenderTarget(readBuffer);if(this.clear)renderer.clear();renderer.render(this.scene,this.camera);renderer.setRenderTarget(writeBuffer);if(this.clear)renderer.clear();renderer.render(this.scene,this.camera);state.buffers.color.setLocked(false);state.buffers.depth.setLocked(false);state.buffers.stencil.setLocked(false);state.buffers.stencil.setFunc(context.EQUAL,1,4294967295);state.buffers.stencil.setOp(context.KEEP,context.KEEP,context.KEEP);state.buffers.stencil.setLocked(true)}}class ClearMaskPass extends THREE.Pass{constructor(){super();this.needsSwap=false}render(renderer){renderer.state.buffers.stencil.setLocked(false);renderer.state.buffers.stencil.setTest(false)}}THREE.ClearMaskPass=ClearMaskPass;THREE.MaskPass=MaskPass})();(function(){var vertexShader=["varying vec2 vUv;","void main() {"," gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );"," vUv = uv;","}"].join("\n");var fragmentShader=["varying vec2 vUv;","uniform sampler2D tDepth;","uniform sampler2D tColor;","uniform mat4 inverseProjectionMatrix;","uniform float near;","uniform float far;","uniform float depthLimit;","uniform mat4 clipToWorldMatrix;","uniform mat4 previousWorldToClipMatrix;","uniform vec3 cameraMove; ","uniform float velocityFactor;","uniform float delta;","uniform int samples;","void main() {"," float zOverW = texture2D(tDepth, vUv).x;"," vec4 clipPosition = vec4(vUv.x * 2. - 1., vUv.y * 2. - 1., zOverW * 2. - 1., 1.);"," vec4 cameraSpacePosition = inverseProjectionMatrix * clipPosition;"," cameraSpacePosition /= cameraSpacePosition.w;"," float depth = -(cameraSpacePosition.z - near) / (far - near);"," if (depth > depthLimit)"," {"," gl_FragColor = texture2D(tColor, vUv);"," return;"," }"," vec4 worldPosition = clipToWorldMatrix * clipPosition;"," worldPosition /= worldPosition.w;"," vec4 previousClipPosition = worldPosition;"," previousClipPosition.xyz -= cameraMove * ("," 1. - smoothstep(.3, 1., clamp(length(clipPosition.xy), 0., 1.))"," );"," previousClipPosition = previousWorldToClipMatrix * previousClipPosition;"," previousClipPosition /= previousClipPosition.w;"," vec2 velocity = velocityFactor * (clipPosition - previousClipPosition).xy / delta * 16.67;"," vec4 finalColor = vec4(0.);"," vec2 offset = vec2(0.);"," float weight = 0.;"," for(int i = 0; i < samples; i++) {"," offset = velocity * (float(i) / (float(samples) - 1.) - .5);"," vec4 c = texture2D(tColor, vUv + offset);"," finalColor += c;"," }"," finalColor /= float(samples);"," gl_FragColor = vec4(finalColor.rgb, 1.);","}"].join("\n");var uniforms={"tDepth":{type:"t",value:null},"tColor":{type:"t",value:null},"velocityFactor":{type:"f",value:1},"delta":{type:"f",value:16.67},"samples":{type:"i",value:20},"inverseProjectionMatrix":{type:"m4",value:new THREE.Matrix4},"clipToWorldMatrix":{type:"m4",value:new THREE.Matrix4},"previousWorldToClipMatrix":{type:"m4",value:new THREE.Matrix4},"cameraMove":{type:"v3",value:new THREE.Vector3},"near":{type:"f",value:1},"far":{type:"f",value:1000},"depthLimit":{type:"f",value:0.99}};class MotionBlurPass extends THREE.Pass{constructor(){super();this.uniforms=THREE.UniformsUtils.clone(uniforms);this.material=new THREE.ShaderMaterial({defines:{},uniforms:this.uniforms,vertexShader:vertexShader,fragmentShader:fragmentShader});this.fsQuad=new THREE.FullScreenQuad(this.material)}render(renderer,writeBuffer,readBuffer,deltaTime,maskActive){this.uniforms["tColor"].value=readBuffer.texture;this.uniforms["tDepth"].value=readBuffer.depthTexture;this.fsQuad.material=this.material;if(this.renderToScreen){renderer.setRenderTarget(null);this.fsQuad.render(renderer)}else{renderer.setRenderTarget(writeBuffer);if(this.clear)renderer.clear(renderer.autoClearColor,renderer.autoClearDepth,renderer.autoClearStencil);this.fsQuad.render(renderer)}}dispose(){this.fsQuad.dispose();this.material.dispose()}};THREE.MotionBlurPass=MotionBlurPass})();(function(){class RenderPass extends THREE.Pass{constructor(scene,camera,overrideMaterial,clearColor,clearAlpha){super();this.scene=scene;this.camera=camera;this.overrideMaterial=overrideMaterial;this.clearColor=clearColor;this.clearAlpha=clearAlpha!==undefined?clearAlpha:0;this.clear=true;this.clearDepth=false;this.needsSwap=false;this._oldClearColor=new THREE.Color}render(renderer,writeBuffer,readBuffer){const oldAutoClear=renderer.autoClear;renderer.autoClear=false;let oldClearAlpha,oldOverrideMaterial;if(this.overrideMaterial!==undefined){oldOverrideMaterial=this.scene.overrideMaterial;this.scene.overrideMaterial=this.overrideMaterial}if(this.clearColor){renderer.getClearColor(this._oldClearColor);oldClearAlpha=renderer.getClearAlpha();renderer.setClearColor(this.clearColor,this.clearAlpha)}if(this.clearDepth){renderer.clearDepth()}renderer.setRenderTarget(this.renderToScreen?null:readBuffer);if(this.clear)renderer.clear(renderer.autoClearColor,renderer.autoClearDepth,renderer.autoClearStencil);renderer.render(this.scene,this.camera);if(this.clearColor){renderer.setClearColor(this._oldClearColor,oldClearAlpha)}if(this.overrideMaterial!==undefined){this.scene.overrideMaterial=oldOverrideMaterial}renderer.autoClear=oldAutoClear}}THREE.RenderPass=RenderPass})();(function(){class SAOPass extends THREE.Pass{constructor(scene,camera,useDepthTexture=false,useNormals=false,resolution=new THREE.Vector2(256,256)){super();this.scene=scene;this.camera=camera;this.clear=true;this.needsSwap=false;this.supportsDepthTextureExtension=useDepthTexture;this.supportsNormalTexture=useNormals;this.originalClearColor=new THREE.Color;this._oldClearColor=new THREE.Color;this.oldClearAlpha=1;this.params={output:0,saoBias:0.5,saoIntensity:0.18,saoScale:1,saoKernelRadius:100,saoMinResolution:0,saoBlur:true,saoBlurRadius:8,saoBlurStdDev:4,saoBlurDepthCutoff:0.01};this.resolution=new THREE.Vector2(resolution.x,resolution.y);this.saoRenderTarget=new THREE.WebGLRenderTarget(this.resolution.x,this.resolution.y);this.blurIntermediateRenderTarget=this.saoRenderTarget.clone();this.beautyRenderTarget=this.saoRenderTarget.clone();this.normalRenderTarget=new THREE.WebGLRenderTarget(this.resolution.x,this.resolution.y,{minFilter:THREE.NearestFilter,magFilter:THREE.NearestFilter});this.depthRenderTarget=this.normalRenderTarget.clone();let depthTexture;if(this.supportsDepthTextureExtension){depthTexture=new THREE.DepthTexture;depthTexture.type=THREE.UnsignedShortType;this.beautyRenderTarget.depthTexture=depthTexture;this.beautyRenderTarget.depthBuffer=true}this.depthMaterial=new THREE.MeshDepthMaterial;this.depthMaterial.depthPacking=THREE.RGBADepthPacking;this.depthMaterial.blending=THREE.NoBlending;this.normalMaterial=new THREE.MeshNormalMaterial;this.normalMaterial.blending=THREE.NoBlending;if(THREE.SAOShader===undefined){console.error("THREE.SAOPass relies on THREE.SAOShader")}this.saoMaterial=new THREE.ShaderMaterial({defines:Object.assign({},THREE.SAOShader.defines),fragmentShader:THREE.SAOShader.fragmentShader,vertexShader:THREE.SAOShader.vertexShader,uniforms:THREE.UniformsUtils.clone(THREE.SAOShader.uniforms)});this.saoMaterial.extensions.derivatives=true;this.saoMaterial.defines["DEPTH_PACKING"]=this.supportsDepthTextureExtension?0:1;this.saoMaterial.defines["NORMAL_TEXTURE"]=this.supportsNormalTexture?1:0;this.saoMaterial.defines["PERSPECTIVE_CAMERA"]=this.camera.isPerspectiveCamera?1:0;this.saoMaterial.uniforms["tDepth"].value=this.supportsDepthTextureExtension?depthTexture:this.depthRenderTarget.texture;this.saoMaterial.uniforms["tNormal"].value=this.normalRenderTarget.texture;this.saoMaterial.uniforms["size"].value.set(this.resolution.x,this.resolution.y);this.saoMaterial.uniforms["cameraInverseProjectionMatrix"].value.copy(this.camera.projectionMatrixInverse);this.saoMaterial.uniforms["cameraProjectionMatrix"].value=this.camera.projectionMatrix;this.saoMaterial.blending=THREE.NoBlending;if(THREE.DepthLimitedBlurShader===undefined){console.error("THREE.SAOPass relies on THREE.DepthLimitedBlurShader")}this.vBlurMaterial=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.clone(THREE.DepthLimitedBlurShader.uniforms),defines:Object.assign({},THREE.DepthLimitedBlurShader.defines),vertexShader:THREE.DepthLimitedBlurShader.vertexShader,fragmentShader:THREE.DepthLimitedBlurShader.fragmentShader});this.vBlurMaterial.defines["DEPTH_PACKING"]=this.supportsDepthTextureExtension?0:1;this.vBlurMaterial.defines["PERSPECTIVE_CAMERA"]=this.camera.isPerspectiveCamera?1:0;this.vBlurMaterial.uniforms["tDiffuse"].value=this.saoRenderTarget.texture;this.vBlurMaterial.uniforms["tDepth"].value=this.supportsDepthTextureExtension?depthTexture:this.depthRenderTarget.texture;this.vBlurMaterial.uniforms["size"].value.set(this.resolution.x,this.resolution.y);this.vBlurMaterial.blending=THREE.NoBlending;this.hBlurMaterial=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.clone(THREE.DepthLimitedBlurShader.uniforms),defines:Object.assign({},THREE.DepthLimitedBlurShader.defines),vertexShader:THREE.DepthLimitedBlurShader.vertexShader,fragmentShader:THREE.DepthLimitedBlurShader.fragmentShader});this.hBlurMaterial.defines["DEPTH_PACKING"]=this.supportsDepthTextureExtension?0:1;this.hBlurMaterial.defines["PERSPECTIVE_CAMERA"]=this.camera.isPerspectiveCamera?1:0;this.hBlurMaterial.uniforms["tDiffuse"].value=this.blurIntermediateRenderTarget.texture;this.hBlurMaterial.uniforms["tDepth"].value=this.supportsDepthTextureExtension?depthTexture:this.depthRenderTarget.texture;this.hBlurMaterial.uniforms["size"].value.set(this.resolution.x,this.resolution.y);this.hBlurMaterial.blending=THREE.NoBlending;if(THREE.CopyShader===undefined){console.error("THREE.SAOPass relies on THREE.CopyShader")}this.materialCopy=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.clone(THREE.CopyShader.uniforms),vertexShader:THREE.CopyShader.vertexShader,fragmentShader:THREE.CopyShader.fragmentShader,blending:THREE.NoBlending});this.materialCopy.transparent=true;this.materialCopy.depthTest=false;this.materialCopy.depthWrite=false;this.materialCopy.blending=THREE.CustomBlending;this.materialCopy.blendSrc=THREE.DstColorFactor;this.materialCopy.blendDst=THREE.ZeroFactor;this.materialCopy.blendEquation=THREE.AddEquation;this.materialCopy.blendSrcAlpha=THREE.DstAlphaFactor;this.materialCopy.blendDstAlpha=THREE.ZeroFactor;this.materialCopy.blendEquationAlpha=THREE.AddEquation;if(THREE.UnpackDepthRGBAShader===undefined){console.error("THREE.SAOPass relies on THREE.UnpackDepthRGBAShader")}this.depthCopy=new THREE.ShaderMaterial({uniforms:THREE.UniformsUtils.clone(THREE.UnpackDepthRGBAShader.uniforms),vertexShader:THREE.UnpackDepthRGBAShader.vertexShader,fragmentShader:THREE.UnpackDepthRGBAShader.fragmentShader,blending:THREE.NoBlending});this.fsQuad=new THREE.FullScreenQuad(null)}render(renderer,writeBuffer,readBuffer){if(this.renderToScreen){this.materialCopy.blending=THREE.NoBlending;this.materialCopy.uniforms["tDiffuse"].value=readBuffer.texture;this.materialCopy.needsUpdate=true;this.renderPass(renderer,this.materialCopy,null)}if(this.params.output===1){return}renderer.getClearColor(this._oldClearColor);this.oldClearAlpha=renderer.getClearAlpha();const oldAutoClear=renderer.autoClear;renderer.autoClear=false;renderer.setRenderTarget(this.depthRenderTarget);renderer.clear();this.saoMaterial.uniforms["bias"].value=this.params.saoBias;this.saoMaterial.uniforms["intensity"].value=this.params.saoIntensity;this.saoMaterial.uniforms["scale"].value=this.params.saoScale;this.saoMaterial.uniforms["kernelRadius"].value=this.params.saoKernelRadius;this.saoMaterial.uniforms["minResolution"].value=this.params.saoMinResolution;this.saoMaterial.uniforms["cameraNear"].value=this.camera.near;this.saoMaterial.uniforms["cameraFar"].value=this.camera.far;const depthCutoff=this.params.saoBlurDepthCutoff*(this.camera.far-this.camera.near);this.vBlurMaterial.uniforms["depthCutoff"].value=depthCutoff;this.hBlurMaterial.uniforms["depthCutoff"].value=depthCutoff;this.vBlurMaterial.uniforms["cameraNear"].value=this.camera.near;this.vBlurMaterial.uniforms["cameraFar"].value=this.camera.far;this.hBlurMaterial.uniforms["cameraNear"].value=this.camera.near;this.hBlurMaterial.uniforms["cameraFar"].value=this.camera.far;this.params.saoBlurRadius=Math.floor(this.params.saoBlurRadius);if(this.prevStdDev!==this.params.saoBlurStdDev||this.prevNumSamples!==this.params.saoBlurRadius){THREE.BlurShaderUtils.configure(this.vBlurMaterial,this.params.saoBlurRadius,this.params.saoBlurStdDev,new THREE.Vector2(0,1));THREE.BlurShaderUtils.configure(this.hBlurMaterial,this.params.saoBlurRadius,this.params.saoBlurStdDev,new THREE.Vector2(1,0));this.prevStdDev=this.params.saoBlurStdDev;this.prevNumSamples=this.params.saoBlurRadius}renderer.setClearColor(0);renderer.setRenderTarget(this.beautyRenderTarget);renderer.clear();renderer.render(this.scene,this.camera);if(!this.supportsDepthTextureExtension){this.renderOverride(renderer,this.depthMaterial,this.depthRenderTarget,0,1)}if(this.supportsNormalTexture){this.renderOverride(renderer,this.normalMaterial,this.normalRenderTarget,7829503,1)}this.renderPass(renderer,this.saoMaterial,this.saoRenderTarget,16777215,1);if(this.params.saoBlur){this.renderPass(renderer,this.vBlurMaterial,this.blurIntermediateRenderTarget,16777215,1);this.renderPass(renderer,this.hBlurMaterial,this.saoRenderTarget,16777215,1)}let outputMaterial=this.materialCopy;if(this.params.output===3){if(this.supportsDepthTextureExtension){this.materialCopy.uniforms["tDiffuse"].value=this.beautyRenderTarget.depthTexture;this.materialCopy.needsUpdate=true}else{this.depthCopy.uniforms["tDiffuse"].value=this.depthRenderTarget.texture;this.depthCopy.needsUpdate=true;outputMaterial=this.depthCopy}}else if(this.params.output===4){this.materialCopy.uniforms["tDiffuse"].value=this.normalRenderTarget.texture;this.materialCopy.needsUpdate=true}else{this.materialCopy.uniforms["tDiffuse"].value=this.saoRenderTarget.texture;this.materialCopy.needsUpdate=true}if(this.params.output===0){outputMaterial.blending=THREE.CustomBlending}else{outputMaterial.blending=THREE.NoBlending}this.renderPass(renderer,outputMaterial,this.renderToScreen?null:readBuffer);renderer.setClearColor(this._oldClearColor,this.oldClearAlpha);renderer.autoClear=oldAutoClear}renderPass(renderer,passMaterial,renderTarget,clearColor,clearAlpha){renderer.getClearColor(this.originalClearColor);const originalClearAlpha=renderer.getClearAlpha();const originalAutoClear=renderer.autoClear;renderer.setRenderTarget(renderTarget);renderer.autoClear=false;if(clearColor!==undefined&&clearColor!==null){renderer.setClearColor(clearColor);renderer.setClearAlpha(clearAlpha||0);renderer.clear()}this.fsQuad.material=passMaterial;this.fsQuad.render(renderer);renderer.autoClear=originalAutoClear;renderer.setClearColor(this.originalClearColor);renderer.setClearAlpha(originalClearAlpha)}renderOverride(renderer,overrideMaterial,renderTarget,clearColor,clearAlpha){renderer.getClearColor(this.originalClearColor);const originalClearAlpha=renderer.getClearAlpha();const originalAutoClear=renderer.autoClear;renderer.setRenderTarget(renderTarget);renderer.autoClear=false;clearColor=overrideMaterial.clearColor||clearColor;clearAlpha=overrideMaterial.clearAlpha||clearAlpha;if(clearColor!==undefined&&clearColor!==null){renderer.setClearColor(clearColor);renderer.setClearAlpha(clearAlpha||0);renderer.clear()}this.scene.overrideMaterial=overrideMaterial;renderer.render(this.scene,this.camera);this.scene.overrideMaterial=null;renderer.autoClear=originalAutoClear;renderer.setClearColor(this.originalClearColor);renderer.setClearAlpha(originalClearAlpha)}setSize(width,height){this.beautyRenderTarget.setSize(width,height);this.saoRenderTarget.setSize(width,height);this.blurIntermediateRenderTarget.setSize(width,height);this.normalRenderTarget.setSize(width,height);this.depthRenderTarget.setSize(width,height);this.saoMaterial.uniforms["size"].value.set(width,height);this.saoMaterial.uniforms["cameraInverseProjectionMatrix"].value.copy(this.camera.projectionMatrixInverse);this.saoMaterial.uniforms["cameraProjectionMatrix"].value=this.camera.projectionMatrix;this.saoMaterial.needsUpdate=true;this.vBlurMaterial.uniforms["size"].value.set(width,height);this.vBlurMaterial.needsUpdate=true;this.hBlurMaterial.uniforms["size"].value.set(width,height);this.hBlurMaterial.needsUpdate=true}}SAOPass.OUTPUT={"Beauty":1,"Default":0,"SAO":2,"Depth":3,"Normal":4};THREE.SAOPass=SAOPass})();(function(){const SAOShader={defines:{"NUM_SAMPLES":7,"NUM_RINGS":4,"NORMAL_TEXTURE":0,"DIFFUSE_TEXTURE":0,"DEPTH_PACKING":1,"PERSPECTIVE_CAMERA":1},uniforms:{"tDepth":{value:null},"tDiffuse":{value:null},"tNormal":{value:null},"size":{value:new THREE.Vector2(512,512)},"cameraNear":{value:1},"cameraFar":{value:100},"cameraProjectionMatrix":{value:new THREE.Matrix4},"cameraInverseProjectionMatrix":{value:new THREE.Matrix4},"scale":{value:1},"intensity":{value:0.1},"bias":{value:0.5},"minResolution":{value:0},"kernelRadius":{value:100},"randomSeed":{value:0}},vertexShader:` varying vec2 vUv; void main() { vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); }`,fragmentShader:` #include varying vec2 vUv; #if DIFFUSE_TEXTURE == 1 uniform sampler2D tDiffuse; #endif uniform sampler2D tDepth; #if NORMAL_TEXTURE == 1 uniform sampler2D tNormal; #endif uniform float cameraNear; uniform float cameraFar; uniform mat4 cameraProjectionMatrix; uniform mat4 cameraInverseProjectionMatrix; uniform float scale; uniform float intensity; uniform float bias; uniform float kernelRadius; uniform float minResolution; uniform vec2 size; uniform float randomSeed; // RGBA depth #include vec4 getDefaultColor( const in vec2 screenPosition ) { #if DIFFUSE_TEXTURE == 1 return texture2D( tDiffuse, vUv ); #else return vec4( 1.0 ); #endif } float getDepth( const in vec2 screenPosition ) { #if DEPTH_PACKING == 1 return unpackRGBAToDepth( texture2D( tDepth, screenPosition ) ); #else return texture2D( tDepth, screenPosition ).x; #endif } float getViewZ( const in float depth ) { #if PERSPECTIVE_CAMERA == 1 return perspectiveDepthToViewZ( depth, cameraNear, cameraFar ); #else return orthographicDepthToViewZ( depth, cameraNear, cameraFar ); #endif } vec3 getViewPosition( const in vec2 screenPosition, const in float depth, const in float viewZ ) { float clipW = cameraProjectionMatrix[2][3] * viewZ + cameraProjectionMatrix[3][3]; vec4 clipPosition = vec4( ( vec3( screenPosition, depth ) - 0.5 ) * 2.0, 1.0 ); clipPosition *= clipW; // unprojection. return ( cameraInverseProjectionMatrix * clipPosition ).xyz; } vec3 getViewNormal( const in vec3 viewPosition, const in vec2 screenPosition ) { #if NORMAL_TEXTURE == 1 return unpackRGBToNormal( texture2D( tNormal, screenPosition ).xyz ); #else return normalize( cross( dFdx( viewPosition ), dFdy( viewPosition ) ) ); #endif } float scaleDividedByCameraFar; float minResolutionMultipliedByCameraFar; float getOcclusion( const in vec3 centerViewPosition, const in vec3 centerViewNormal, const in vec3 sampleViewPosition ) { vec3 viewDelta = sampleViewPosition - centerViewPosition; float viewDistance = length( viewDelta ); float scaledScreenDistance = scaleDividedByCameraFar * viewDistance; return max(0.0, (dot(centerViewNormal, viewDelta) - minResolutionMultipliedByCameraFar) / scaledScreenDistance - bias) / (1.0 + pow2( scaledScreenDistance ) ); } // moving costly divides into consts const float ANGLE_STEP = PI2 * float( NUM_RINGS ) / float( NUM_SAMPLES ); const float INV_NUM_SAMPLES = 1.0 / float( NUM_SAMPLES ); float getAmbientOcclusion( const in vec3 centerViewPosition ) { // precompute some variables require in getOcclusion. scaleDividedByCameraFar = scale / cameraFar; minResolutionMultipliedByCameraFar = minResolution * cameraFar; vec3 centerViewNormal = getViewNormal( centerViewPosition, vUv ); // jsfiddle that shows sample pattern: https://jsfiddle.net/a16ff1p7/ float angle = rand( vUv + randomSeed ) * PI2; vec2 radius = vec2( kernelRadius * INV_NUM_SAMPLES ) / size; vec2 radiusStep = radius; float occlusionSum = 0.0; float weightSum = 0.0; for( int i = 0; i < NUM_SAMPLES; i ++ ) { vec2 sampleUv = vUv + vec2( cos( angle ), sin( angle ) ) * radius; radius += radiusStep; angle += ANGLE_STEP; float sampleDepth = getDepth( sampleUv ); if( sampleDepth >= ( 1.0 - EPSILON ) ) { continue; } float sampleViewZ = getViewZ( sampleDepth ); vec3 sampleViewPosition = getViewPosition( sampleUv, sampleDepth, sampleViewZ ); occlusionSum += getOcclusion( centerViewPosition, centerViewNormal, sampleViewPosition ); weightSum += 1.0; } if( weightSum == 0.0 ) discard; return occlusionSum * ( intensity / weightSum ); } void main() { float centerDepth = getDepth( vUv ); if( centerDepth >= ( 1.0 - EPSILON ) ) { discard; } float centerViewZ = getViewZ( centerDepth ); vec3 viewPosition = getViewPosition( vUv, centerDepth, centerViewZ ); float ambientOcclusion = getAmbientOcclusion( viewPosition ); gl_FragColor = getDefaultColor( vUv ); gl_FragColor.xyz *= 1.0 - ambientOcclusion; }`};THREE.SAOShader=SAOShader})();(function(){class SavePass extends THREE.Pass{constructor(renderTarget){super();if(THREE.CopyShader===undefined)console.error("THREE.SavePass relies on THREE.CopyShader");const shader=THREE.CopyShader;this.textureID="tDiffuse";this.uniforms=THREE.UniformsUtils.clone(shader.uniforms);this.material=new THREE.ShaderMaterial({uniforms:this.uniforms,vertexShader:shader.vertexShader,fragmentShader:shader.fragmentShader});this.renderTarget=renderTarget;if(this.renderTarget===undefined){this.renderTarget=new THREE.WebGLRenderTarget(window.innerWidth,window.innerHeight);this.renderTarget.texture.name="SavePass.rt"}this.needsSwap=false;this.fsQuad=new THREE.FullScreenQuad(this.material)}render(renderer,writeBuffer,readBuffer){if(this.uniforms[this.textureID]){this.uniforms[this.textureID].value=readBuffer.texture}renderer.setRenderTarget(this.renderTarget);if(this.clear)renderer.clear();this.fsQuad.render(renderer)}}THREE.SavePass=SavePass})();(function(){class ShaderPass extends THREE.Pass{constructor(shader,textureID){super();this.textureID=textureID!==undefined?textureID:"tDiffuse";if(shader instanceof THREE.ShaderMaterial){this.uniforms=shader.uniforms;this.material=shader}else if(shader){this.uniforms=THREE.UniformsUtils.clone(shader.uniforms);this.material=new THREE.ShaderMaterial({defines:Object.assign({},shader.defines),uniforms:this.uniforms,vertexShader:shader.vertexShader,fragmentShader:shader.fragmentShader})}this.fsQuad=new THREE.FullScreenQuad(this.material)}render(renderer,writeBuffer,readBuffer){if(this.uniforms[this.textureID]){this.uniforms[this.textureID].value=readBuffer.texture}this.fsQuad.material=this.material;if(this.renderToScreen){renderer.setRenderTarget(null);this.fsQuad.render(renderer)}else{renderer.setRenderTarget(writeBuffer);if(this.clear)renderer.clear(renderer.autoClearColor,renderer.autoClearDepth,renderer.autoClearStencil);this.fsQuad.render(renderer)}}}THREE.ShaderPass=ShaderPass})();(function(){class SMAAPass extends THREE.Pass{constructor(width,height){super();this.edgesRT=new THREE.WebGLRenderTarget(width,height,{depthBuffer:false});this.edgesRT.texture.name="SMAAPass.edges";this.weightsRT=new THREE.WebGLRenderTarget(width,height,{depthBuffer:false});this.weightsRT.texture.name="SMAAPass.weights";const scope=this;const areaTextureImage=new Image;areaTextureImage.src=this.getAreaTexture();areaTextureImage.onload=function(){scope.areaTexture.needsUpdate=true};this.areaTexture=new THREE.Texture;this.areaTexture.name="SMAAPass.area";this.areaTexture.image=areaTextureImage;this.areaTexture.minFilter=THREE.LinearFilter;this.areaTexture.generateMipmaps=false;this.areaTexture.flipY=false;const searchTextureImage=new Image;searchTextureImage.src=this.getSearchTexture();searchTextureImage.onload=function(){scope.searchTexture.needsUpdate=true};this.searchTexture=new THREE.Texture;this.searchTexture.name="SMAAPass.search";this.searchTexture.image=searchTextureImage;this.searchTexture.magFilter=THREE.NearestFilter;this.searchTexture.minFilter=THREE.NearestFilter;this.searchTexture.generateMipmaps=false;this.searchTexture.flipY=false;if(THREE.SMAAEdgesShader===undefined){console.error("THREE.SMAAPass relies on SMAAShader")}this.uniformsEdges=THREE.UniformsUtils.clone(THREE.SMAAEdgesShader.uniforms);this.uniformsEdges["resolution"].value.set(1/width,1/height);this.materialEdges=new THREE.ShaderMaterial({defines:Object.assign({},THREE.SMAAEdgesShader.defines),uniforms:this.uniformsEdges,vertexShader:THREE.SMAAEdgesShader.vertexShader,fragmentShader:THREE.SMAAEdgesShader.fragmentShader});this.uniformsWeights=THREE.UniformsUtils.clone(THREE.SMAAWeightsShader.uniforms);this.uniformsWeights["resolution"].value.set(1/width,1/height);this.uniformsWeights["tDiffuse"].value=this.edgesRT.texture;this.uniformsWeights["tArea"].value=this.areaTexture;this.uniformsWeights["tSearch"].value=this.searchTexture;this.materialWeights=new THREE.ShaderMaterial({defines:Object.assign({},THREE.SMAAWeightsShader.defines),uniforms:this.uniformsWeights,vertexShader:THREE.SMAAWeightsShader.vertexShader,fragmentShader:THREE.SMAAWeightsShader.fragmentShader});this.uniformsBlend=THREE.UniformsUtils.clone(THREE.SMAABlendShader.uniforms);this.uniformsBlend["resolution"].value.set(1/width,1/height);this.uniformsBlend["tDiffuse"].value=this.weightsRT.texture;this.materialBlend=new THREE.ShaderMaterial({uniforms:this.uniformsBlend,vertexShader:THREE.SMAABlendShader.vertexShader,fragmentShader:THREE.SMAABlendShader.fragmentShader});this.needsSwap=false;this.fsQuad=new THREE.FullScreenQuad(null)}render(renderer,writeBuffer,readBuffer){this.uniformsEdges["tDiffuse"].value=readBuffer.texture;this.fsQuad.material=this.materialEdges;renderer.setRenderTarget(this.edgesRT);if(this.clear)renderer.clear();this.fsQuad.render(renderer);this.fsQuad.material=this.materialWeights;renderer.setRenderTarget(this.weightsRT);if(this.clear)renderer.clear();this.fsQuad.render(renderer);this.uniformsBlend["tColor"].value=readBuffer.texture;this.fsQuad.material=this.materialBlend;if(this.renderToScreen){renderer.setRenderTarget(null);this.fsQuad.render(renderer)}else{renderer.setRenderTarget(writeBuffer);if(this.clear)renderer.clear();this.fsQuad.render(renderer)}}setSize(width,height){this.edgesRT.setSize(width,height);this.weightsRT.setSize(width,height);this.materialEdges.uniforms["resolution"].value.set(1/width,1/height);this.materialWeights.uniforms["resolution"].value.set(1/width,1/height);this.materialBlend.uniforms["resolution"].value.set(1/width,1/height)}getAreaTexture(){return"data:image/png;base64,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"}getSearchTexture(){return"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEIAAAAhCAAAAABIXyLAAAAAOElEQVRIx2NgGAWjYBSMglEwEICREYRgFBZBqDCSLA2MGPUIVQETE9iNUAqLR5gIeoQKRgwXjwAAGn4AtaFeYLEAAAAASUVORK5CYII="}}THREE.SMAAPass=SMAAPass})();(function(){const SMAAEdgesShader={defines:{"SMAA_THRESHOLD":"0.1"},uniforms:{"tDiffuse":{value:null},"resolution":{value:new THREE.Vector2(1/1024,1/512)}},vertexShader:` uniform vec2 resolution; varying vec2 vUv; varying vec4 vOffset[ 3 ]; void SMAAEdgeDetectionVS( vec2 texcoord ) { vOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -1.0, 0.0, 0.0, 1.0 ); // WebGL port note: Changed sign in W component vOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4( 1.0, 0.0, 0.0, -1.0 ); // WebGL port note: Changed sign in W component vOffset[ 2 ] = texcoord.xyxy + resolution.xyxy * vec4( -2.0, 0.0, 0.0, 2.0 ); // WebGL port note: Changed sign in W component } void main() { vUv = uv; SMAAEdgeDetectionVS( vUv ); gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); }`,fragmentShader:` uniform sampler2D tDiffuse; varying vec2 vUv; varying vec4 vOffset[ 3 ]; vec4 SMAAColorEdgeDetectionPS( vec2 texcoord, vec4 offset[3], sampler2D colorTex ) { vec2 threshold = vec2( SMAA_THRESHOLD, SMAA_THRESHOLD ); // Calculate color deltas: vec4 delta; vec3 C = texture2D( colorTex, texcoord ).rgb; vec3 Cleft = texture2D( colorTex, offset[0].xy ).rgb; vec3 t = abs( C - Cleft ); delta.x = max( max( t.r, t.g ), t.b ); vec3 Ctop = texture2D( colorTex, offset[0].zw ).rgb; t = abs( C - Ctop ); delta.y = max( max( t.r, t.g ), t.b ); // We do the usual threshold: vec2 edges = step( threshold, delta.xy ); // Then discard if there is no edge: if ( dot( edges, vec2( 1.0, 1.0 ) ) == 0.0 ) discard; // Calculate right and bottom deltas: vec3 Cright = texture2D( colorTex, offset[1].xy ).rgb; t = abs( C - Cright ); delta.z = max( max( t.r, t.g ), t.b ); vec3 Cbottom = texture2D( colorTex, offset[1].zw ).rgb; t = abs( C - Cbottom ); delta.w = max( max( t.r, t.g ), t.b ); // Calculate the maximum delta in the direct neighborhood: float maxDelta = max( max( max( delta.x, delta.y ), delta.z ), delta.w ); // Calculate left-left and top-top deltas: vec3 Cleftleft = texture2D( colorTex, offset[2].xy ).rgb; t = abs( C - Cleftleft ); delta.z = max( max( t.r, t.g ), t.b ); vec3 Ctoptop = texture2D( colorTex, offset[2].zw ).rgb; t = abs( C - Ctoptop ); delta.w = max( max( t.r, t.g ), t.b ); // Calculate the final maximum delta: maxDelta = max( max( maxDelta, delta.z ), delta.w ); // Local contrast adaptation in action: edges.xy *= step( 0.5 * maxDelta, delta.xy ); return vec4( edges, 0.0, 0.0 ); } void main() { gl_FragColor = SMAAColorEdgeDetectionPS( vUv, vOffset, tDiffuse ); }`};const SMAAWeightsShader={defines:{"SMAA_MAX_SEARCH_STEPS":"8","SMAA_AREATEX_MAX_DISTANCE":"16","SMAA_AREATEX_PIXEL_SIZE":"( 1.0 / vec2( 160.0, 560.0 ) )","SMAA_AREATEX_SUBTEX_SIZE":"( 1.0 / 7.0 )"},uniforms:{"tDiffuse":{value:null},"tArea":{value:null},"tSearch":{value:null},"resolution":{value:new THREE.Vector2(1/1024,1/512)}},vertexShader:` uniform vec2 resolution; varying vec2 vUv; varying vec4 vOffset[ 3 ]; varying vec2 vPixcoord; void SMAABlendingWeightCalculationVS( vec2 texcoord ) { vPixcoord = texcoord / resolution; // We will use these offsets for the searches later on (see @PSEUDO_GATHER4): vOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -0.25, 0.125, 1.25, 0.125 ); // WebGL port note: Changed sign in Y and W components vOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4( -0.125, 0.25, -0.125, -1.25 ); // WebGL port note: Changed sign in Y and W components // And these for the searches, they indicate the ends of the loops: vOffset[ 2 ] = vec4( vOffset[ 0 ].xz, vOffset[ 1 ].yw ) + vec4( -2.0, 2.0, -2.0, 2.0 ) * resolution.xxyy * float( SMAA_MAX_SEARCH_STEPS ); } void main() { vUv = uv; SMAABlendingWeightCalculationVS( vUv ); gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); }`,fragmentShader:` #define SMAASampleLevelZeroOffset( tex, coord, offset ) texture2D( tex, coord + float( offset ) * resolution, 0.0 ) uniform sampler2D tDiffuse; uniform sampler2D tArea; uniform sampler2D tSearch; uniform vec2 resolution; varying vec2 vUv; varying vec4 vOffset[3]; varying vec2 vPixcoord; #if __VERSION__ == 100 vec2 round( vec2 x ) { return sign( x ) * floor( abs( x ) + 0.5 ); } #endif float SMAASearchLength( sampler2D searchTex, vec2 e, float bias, float scale ) { // Not required if searchTex accesses are set to point: // float2 SEARCH_TEX_PIXEL_SIZE = 1.0 / float2(66.0, 33.0); // e = float2(bias, 0.0) + 0.5 * SEARCH_TEX_PIXEL_SIZE + // e * float2(scale, 1.0) * float2(64.0, 32.0) * SEARCH_TEX_PIXEL_SIZE; e.r = bias + e.r * scale; return 255.0 * texture2D( searchTex, e, 0.0 ).r; } float SMAASearchXLeft( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) { /** * @PSEUDO_GATHER4 * This texcoord has been offset by (-0.25, -0.125) in the vertex shader to * sample between edge, thus fetching four edges in a row. * Sampling with different offsets in each direction allows to disambiguate * which edges are active from the four fetched ones. */ vec2 e = vec2( 0.0, 1.0 ); for ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for e = texture2D( edgesTex, texcoord, 0.0 ).rg; texcoord -= vec2( 2.0, 0.0 ) * resolution; if ( ! ( texcoord.x > end && e.g > 0.8281 && e.r == 0.0 ) ) break; } // We correct the previous (-0.25, -0.125) offset we applied: texcoord.x += 0.25 * resolution.x; // The searches are bias by 1, so adjust the coords accordingly: texcoord.x += resolution.x; // Disambiguate the length added by the last step: texcoord.x += 2.0 * resolution.x; // Undo last step texcoord.x -= resolution.x * SMAASearchLength(searchTex, e, 0.0, 0.5); return texcoord.x; } float SMAASearchXRight( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) { vec2 e = vec2( 0.0, 1.0 ); for ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for e = texture2D( edgesTex, texcoord, 0.0 ).rg; texcoord += vec2( 2.0, 0.0 ) * resolution; if ( ! ( texcoord.x < end && e.g > 0.8281 && e.r == 0.0 ) ) break; } texcoord.x -= 0.25 * resolution.x; texcoord.x -= resolution.x; texcoord.x -= 2.0 * resolution.x; texcoord.x += resolution.x * SMAASearchLength( searchTex, e, 0.5, 0.5 ); return texcoord.x; } float SMAASearchYUp( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) { vec2 e = vec2( 1.0, 0.0 ); for ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for e = texture2D( edgesTex, texcoord, 0.0 ).rg; texcoord += vec2( 0.0, 2.0 ) * resolution; // WebGL port note: Changed sign if ( ! ( texcoord.y > end && e.r > 0.8281 && e.g == 0.0 ) ) break; } texcoord.y -= 0.25 * resolution.y; // WebGL port note: Changed sign texcoord.y -= resolution.y; // WebGL port note: Changed sign texcoord.y -= 2.0 * resolution.y; // WebGL port note: Changed sign texcoord.y += resolution.y * SMAASearchLength( searchTex, e.gr, 0.0, 0.5 ); // WebGL port note: Changed sign return texcoord.y; } float SMAASearchYDown( sampler2D edgesTex, sampler2D searchTex, vec2 texcoord, float end ) { vec2 e = vec2( 1.0, 0.0 ); for ( int i = 0; i < SMAA_MAX_SEARCH_STEPS; i ++ ) { // WebGL port note: Changed while to for e = texture2D( edgesTex, texcoord, 0.0 ).rg; texcoord -= vec2( 0.0, 2.0 ) * resolution; // WebGL port note: Changed sign if ( ! ( texcoord.y < end && e.r > 0.8281 && e.g == 0.0 ) ) break; } texcoord.y += 0.25 * resolution.y; // WebGL port note: Changed sign texcoord.y += resolution.y; // WebGL port note: Changed sign texcoord.y += 2.0 * resolution.y; // WebGL port note: Changed sign texcoord.y -= resolution.y * SMAASearchLength( searchTex, e.gr, 0.5, 0.5 ); // WebGL port note: Changed sign return texcoord.y; } vec2 SMAAArea( sampler2D areaTex, vec2 dist, float e1, float e2, float offset ) { // Rounding prevents precision errors of bilinear filtering: vec2 texcoord = float( SMAA_AREATEX_MAX_DISTANCE ) * round( 4.0 * vec2( e1, e2 ) ) + dist; // We do a scale and bias for mapping to texel space: texcoord = SMAA_AREATEX_PIXEL_SIZE * texcoord + ( 0.5 * SMAA_AREATEX_PIXEL_SIZE ); // Move to proper place, according to the subpixel offset: texcoord.y += SMAA_AREATEX_SUBTEX_SIZE * offset; return texture2D( areaTex, texcoord, 0.0 ).rg; } vec4 SMAABlendingWeightCalculationPS( vec2 texcoord, vec2 pixcoord, vec4 offset[ 3 ], sampler2D edgesTex, sampler2D areaTex, sampler2D searchTex, ivec4 subsampleIndices ) { vec4 weights = vec4( 0.0, 0.0, 0.0, 0.0 ); vec2 e = texture2D( edgesTex, texcoord ).rg; if ( e.g > 0.0 ) { // Edge at north vec2 d; // Find the distance to the left: vec2 coords; coords.x = SMAASearchXLeft( edgesTex, searchTex, offset[ 0 ].xy, offset[ 2 ].x ); coords.y = offset[ 1 ].y; // offset[1].y = texcoord.y - 0.25 * resolution.y (@CROSSING_OFFSET) d.x = coords.x; // Now fetch the left crossing edges, two at a time using bilinear // filtering. Sampling at -0.25 (see @CROSSING_OFFSET) enables to // discern what value each edge has: float e1 = texture2D( edgesTex, coords, 0.0 ).r; // Find the distance to the right: coords.x = SMAASearchXRight( edgesTex, searchTex, offset[ 0 ].zw, offset[ 2 ].y ); d.y = coords.x; // We want the distances to be in pixel units (doing this here allow to // better interleave arithmetic and memory accesses): d = d / resolution.x - pixcoord.x; // SMAAArea below needs a sqrt, as the areas texture is compressed // quadratically: vec2 sqrt_d = sqrt( abs( d ) ); // Fetch the right crossing edges: coords.y -= 1.0 * resolution.y; // WebGL port note: Added float e2 = SMAASampleLevelZeroOffset( edgesTex, coords, ivec2( 1, 0 ) ).r; // Ok, we know how this pattern looks like, now it is time for getting // the actual area: weights.rg = SMAAArea( areaTex, sqrt_d, e1, e2, float( subsampleIndices.y ) ); } if ( e.r > 0.0 ) { // Edge at west vec2 d; // Find the distance to the top: vec2 coords; coords.y = SMAASearchYUp( edgesTex, searchTex, offset[ 1 ].xy, offset[ 2 ].z ); coords.x = offset[ 0 ].x; // offset[1].x = texcoord.x - 0.25 * resolution.x; d.x = coords.y; // Fetch the top crossing edges: float e1 = texture2D( edgesTex, coords, 0.0 ).g; // Find the distance to the bottom: coords.y = SMAASearchYDown( edgesTex, searchTex, offset[ 1 ].zw, offset[ 2 ].w ); d.y = coords.y; // We want the distances to be in pixel units: d = d / resolution.y - pixcoord.y; // SMAAArea below needs a sqrt, as the areas texture is compressed // quadratically: vec2 sqrt_d = sqrt( abs( d ) ); // Fetch the bottom crossing edges: coords.y -= 1.0 * resolution.y; // WebGL port note: Added float e2 = SMAASampleLevelZeroOffset( edgesTex, coords, ivec2( 0, 1 ) ).g; // Get the area for this direction: weights.ba = SMAAArea( areaTex, sqrt_d, e1, e2, float( subsampleIndices.x ) ); } return weights; } void main() { gl_FragColor = SMAABlendingWeightCalculationPS( vUv, vPixcoord, vOffset, tDiffuse, tArea, tSearch, ivec4( 0.0 ) ); }`};const SMAABlendShader={uniforms:{"tDiffuse":{value:null},"tColor":{value:null},"resolution":{value:new THREE.Vector2(1/1024,1/512)}},vertexShader:` uniform vec2 resolution; varying vec2 vUv; varying vec4 vOffset[ 2 ]; void SMAANeighborhoodBlendingVS( vec2 texcoord ) { vOffset[ 0 ] = texcoord.xyxy + resolution.xyxy * vec4( -1.0, 0.0, 0.0, 1.0 ); // WebGL port note: Changed sign in W component vOffset[ 1 ] = texcoord.xyxy + resolution.xyxy * vec4( 1.0, 0.0, 0.0, -1.0 ); // WebGL port note: Changed sign in W component } void main() { vUv = uv; SMAANeighborhoodBlendingVS( vUv ); gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 ); }`,fragmentShader:` uniform sampler2D tDiffuse; uniform sampler2D tColor; uniform vec2 resolution; varying vec2 vUv; varying vec4 vOffset[ 2 ]; vec4 SMAANeighborhoodBlendingPS( vec2 texcoord, vec4 offset[ 2 ], sampler2D colorTex, sampler2D blendTex ) { // Fetch the blending weights for current pixel: vec4 a; a.xz = texture2D( blendTex, texcoord ).xz; a.y = texture2D( blendTex, offset[ 1 ].zw ).g; a.w = texture2D( blendTex, offset[ 1 ].xy ).a; // Is there any blending weight with a value greater than 0.0? if ( dot(a, vec4( 1.0, 1.0, 1.0, 1.0 )) < 1e-5 ) { return texture2D( colorTex, texcoord, 0.0 ); } else { // Up to 4 lines can be crossing a pixel (one through each edge). We // favor blending by choosing the line with the maximum weight for each // direction: vec2 offset; offset.x = a.a > a.b ? a.a : -a.b; // left vs. right offset.y = a.g > a.r ? -a.g : a.r; // top vs. bottom // WebGL port note: Changed signs // Then we go in the direction that has the maximum weight: if ( abs( offset.x ) > abs( offset.y )) { // horizontal vs. vertical offset.y = 0.0; } else { offset.x = 0.0; } // Fetch the opposite color and lerp by hand: vec4 C = texture2D( colorTex, texcoord, 0.0 ); texcoord += sign( offset ) * resolution; vec4 Cop = texture2D( colorTex, texcoord, 0.0 ); float s = abs( offset.x ) > abs( offset.y ) ? abs( offset.x ) : abs( offset.y ); // WebGL port note: Added gamma correction C.xyz = pow(C.xyz, vec3(2.2)); Cop.xyz = pow(Cop.xyz, vec3(2.2)); vec4 mixed = mix(C, Cop, s); mixed.xyz = pow(mixed.xyz, vec3(1.0 / 2.2)); return mixed; } } void main() { gl_FragColor = SMAANeighborhoodBlendingPS( vUv, vOffset, tColor, tDiffuse ); }`};THREE.SMAABlendShader=SMAABlendShader;THREE.SMAAEdgesShader=SMAAEdgesShader;THREE.SMAAWeightsShader=SMAAWeightsShader})();(function(){class SSAARenderPass extends THREE.Pass{constructor(scene,camera,clearColor,clearAlpha){super();this.scene=scene;this.camera=camera;this.sampleLevel=4;this.unbiased=true;this.clearColor=clearColor!==undefined?clearColor:0;this.clearAlpha=clearAlpha!==undefined?clearAlpha:0;this._oldClearColor=new THREE.Color;if(THREE.CopyShader===undefined)console.error("THREE.SSAARenderPass relies on THREE.CopyShader");const copyShader=THREE.CopyShader;this.copyUniforms=THREE.UniformsUtils.clone(copyShader.uniforms);this.copyMaterial=new THREE.ShaderMaterial({uniforms:this.copyUniforms,vertexShader:copyShader.vertexShader,fragmentShader:copyShader.fragmentShader,transparent:true,blending:THREE.AdditiveBlending,depthTest:false,depthWrite:false});this.fsQuad=new THREE.FullScreenQuad(this.copyMaterial)}dispose(){if(this.sampleRenderTarget){this.sampleRenderTarget.dispose();this.sampleRenderTarget=null}}setSize(width,height){if(this.sampleRenderTarget)this.sampleRenderTarget.setSize(width,height)}render(renderer,writeBuffer,readBuffer){if(!this.sampleRenderTarget){this.sampleRenderTarget=new THREE.WebGLRenderTarget(readBuffer.width,readBuffer.height);this.sampleRenderTarget.texture.name="SSAARenderPass.sample"}const jitterOffsets=_JitterVectors[Math.max(0,Math.min(this.sampleLevel,5))];const autoClear=renderer.autoClear;renderer.autoClear=false;renderer.getClearColor(this._oldClearColor);const oldClearAlpha=renderer.getClearAlpha();const baseSampleWeight=1/jitterOffsets.length;const roundingRange=1/32;this.copyUniforms["tDiffuse"].value=this.sampleRenderTarget.texture;const viewOffset={fullWidth:readBuffer.width,fullHeight:readBuffer.height,offsetX:0,offsetY:0,width:readBuffer.width,height:readBuffer.height};const originalViewOffset=Object.assign({},this.camera.view);if(originalViewOffset.enabled)Object.assign(viewOffset,originalViewOffset);for(let i=0;i void main() { float depth = 1.0 - unpackRGBAToDepth( texture2D( tDiffuse, vUv ) ); gl_FragColor = vec4( vec3( depth ), opacity ); }`};THREE.UnpackDepthRGBAShader=UnpackDepthRGBAShader})(); })(); } catch (e) { console.log(e.message, e.stack); throw e; };