!function i(r,o,a){function s(e,t){if(!o[e]){if(!r[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(l)return l(e,!0);throw(t=new Error("Cannot find module '"+e+"'")).code="MODULE_NOT_FOUND",t}n=o[e]={exports:{}},r[e][0].call(n.exports,function(t){return s(r[e][1][t]||t)},n,n.exports,i,r,o,a)}return o[e].exports}for(var l="function"==typeof require&&require,t=0;t<a.length;t++)s(a[t]);return s}({1:[function(t,e,n){var i={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==i.call(t)}},{}],2:[function(S,a,t){!function(o){!function(){a.exports=t;var x=S("./errors"),n=S("./exitPromise.js"),e=S("./IndexCore.js"),i=S("./store.js"),r=o.env.RESET_APP_DATA_TIMER&&parseInt(o.env.RESET_APP_DATA_TIMER,10)||12e4;function t(e,t,n){var i=S("debug")("algoliasearch"),r=S("./clone.js"),o=S("isarray"),a=S("./map.js"),s="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==n._allowEmptyCredentials&&!e)throw new x.AlgoliaSearchError("Please provide an application ID. "+s);if(!0!==n._allowEmptyCredentials&&!t)throw new x.AlgoliaSearchError("Please provide an API key. "+s);this.applicationID=e,this.apiKey=t,this.hosts={read:[],write:[]},this._timeouts=(n=n||{}).timeouts||{connect:1e3,read:2e3,write:3e4},n.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=n.timeout);s=n.protocol||"https:";if(/:$/.test(s)||(s+=":"),"http:"!==s&&"https:"!==s)throw new x.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+n.protocol+"`)");this._checkAppIdData(),n.hosts?o(n.hosts)?(this.hosts.read=r(n.hosts),this.hosts.write=r(n.hosts)):(this.hosts.read=r(n.hosts.read),this.hosts.write=r(n.hosts.write)):(t=a(this._shuffleResult,function(t){return e+"-"+t+".algolianet.com"}),o=(!1===n.dsn?"":"-dsn")+".algolia.net",this.hosts.read=[this.applicationID+o].concat(t),this.hosts.write=[this.applicationID+".algolia.net"].concat(t)),this.hosts.read=a(this.hosts.read,l(s)),this.hosts.write=a(this.hosts.write,l(s)),this.extraHeaders={},this.cache=n._cache||{},this._ua=n._ua,this._useCache=!(void 0!==n._useCache&&!n._cache)||n._useCache,this._useRequestCache=this._useCache&&n._useRequestCache,this._useFallback=void 0===n.useFallback||n.useFallback,this._setTimeout=n._setTimeout,i("init done, %j",this)}function l(e){return function(t){return e+"//"+t.toLowerCase()}}function w(t){var e;return void 0===Array.prototype.toJSON?JSON.stringify(t):(e=Array.prototype.toJSON,delete Array.prototype.toJSON,t=JSON.stringify(t),Array.prototype.toJSON=e,t)}function T(t){var e,n,i={};for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(n="x-algolia-api-key"===e||"x-algolia-application-id"===e?"**hidden for security purposes**":t[e],i[e]=n);return i}t.prototype.initIndex=function(t){return new e(this,t)},t.prototype.setExtraHeader=function(t,e){this.extraHeaders[t.toLowerCase()]=e},t.prototype.getExtraHeader=function(t){return this.extraHeaders[t.toLowerCase()]},t.prototype.unsetExtraHeader=function(t){delete this.extraHeaders[t.toLowerCase()]},t.prototype.addAlgoliaAgent=function(t){t="; "+t;-1===this._ua.indexOf(t)&&(this._ua+=t)},t.prototype._jsonRequest=function(i){this._checkAppIdData();var l,c,t,u=S("debug")("algoliasearch:"+i.url),h=i.additionalUA||"",d=i.cache,p=this,f=0,m=!1,g=p._useFallback&&p._request.fallback&&i.fallback,v=500<this.apiKey.length&&void 0!==i.body&&(void 0!==i.body.params||void 0!==i.body.requests)?(i.body.apiKey=this.apiKey,this._computeRequestHeaders({additionalUA:h,withApiKey:!1,headers:i.headers})):this._computeRequestHeaders({additionalUA:h,headers:i.headers}),y=(void 0!==i.body&&(l=w(i.body)),u("request start"),[]);function _(n,r){p._checkAppIdData();var o,t,e,a=new Date;return p._useCache&&!p._useRequestCache&&(c=i.url),p._useCache&&!p._useRequestCache&&l&&(c+="_body_"+r.body),b(!p._useRequestCache,d,c)?(u("serving response from cache"),t=d[c],p._promise.resolve({body:JSON.parse(t),responseText:t})):f>=p.hosts[i.hostType].length?!g||m?(u("could not get any response"),p._promise.reject(new x.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+p.applicationID,{debugData:y}))):(u("switching to fallback"),f=0,r.method=i.fallback.method,r.url=i.fallback.url,r.jsonBody=i.fallback.body,r.jsonBody&&(r.body=w(r.jsonBody)),v=p._computeRequestHeaders({additionalUA:h,headers:i.headers}),r.timeouts=p._getTimeoutsForRequest(i.hostType),p._setHostIndexByType(0,i.hostType),m=!0,_(p._request.fallback,r)):(t=(o=p._getHostByType(i.hostType))+r.url,e={body:r.body,jsonBody:r.jsonBody,method:r.method,headers:v,timeouts:r.timeouts,debug:u,forceAuthHeaders:r.forceAuthHeaders},u("method: %s, url: %s, headers: %j, timeouts: %d",e.method,t,e.headers,e.timeouts),n===p._request.fallback&&u("using fallback"),n.call(p,t,e).then(function(t){var e=t&&t.body&&t.body.message&&t.body.status||t.statusCode||t&&t.body&&200,n=(u("received response: statusCode: %s, computed statusCode: %d, headers: %j",t.statusCode,e,t.headers),2===Math.floor(e/100)),i=new Date;if(y.push({currentHost:o,headers:T(v),content:l||null,contentLength:void 0!==l?l.length:null,method:r.method,timeouts:r.timeouts,url:r.url,startTime:a,endTime:i,duration:i-a,statusCode:e}),n)return p._useCache&&!p._useRequestCache&&d&&(d[c]=t.responseText),{responseText:t.responseText,body:t.body};if(4!==Math.floor(e/100))return f+=1,s();u("unrecoverable error");i=new x.AlgoliaSearchError(t.body&&t.body.message,{debugData:y,statusCode:e});return p._promise.reject(i)},function(t){u("error: %s, stack: %s",t.message,t.stack);var e=new Date;y.push({currentHost:o,headers:T(v),content:l||null,contentLength:void 0!==l?l.length:null,method:r.method,timeouts:r.timeouts,url:r.url,startTime:a,endTime:e,duration:e-a}),t instanceof x.AlgoliaSearchError||(t=new x.Unknown(t&&t.message,t));if(f+=1,t instanceof x.Unknown||t instanceof x.UnparsableJSON||f>=p.hosts[i.hostType].length&&(m||!g))return t.debugData=y,p._promise.reject(t);if(t instanceof x.RequestTimeout)return u("retrying request with higher timeout"),p._incrementHostIndex(i.hostType),p._incrementTimeoutMultipler(),r.timeouts=p._getTimeoutsForRequest(i.hostType),_(n,r);return s()}));function s(){return u("retrying request"),p._incrementHostIndex(i.hostType),_(n,r)}}function b(t,e,n){return p._useCache&&t&&e&&void 0!==e[n]}function e(t,e){if(b(p._useRequestCache,d,c)&&t.catch(function(){delete d[c]}),"function"!=typeof i.callback)return t.then(e);t.then(function(t){n(function(){i.callback(null,e(t))},p._setTimeout||setTimeout)},function(t){n(function(){i.callback(t)},p._setTimeout||setTimeout)})}return p._useCache&&p._useRequestCache&&(c=i.url),p._useCache&&p._useRequestCache&&l&&(c+="_body_"+l),b(p._useRequestCache,d,c)?(u("serving request from cache"),e("function"!=typeof(t=d[c]).then?p._promise.resolve({responseText:t}):t,function(t){return JSON.parse(t.responseText)})):(t=_(p._request,{url:i.url,method:i.method,body:l,jsonBody:i.body,timeouts:p._getTimeoutsForRequest(i.hostType),forceAuthHeaders:i.forceAuthHeaders}),p._useCache&&p._useRequestCache&&d&&(d[c]=t),e(t,function(t){return t.body}))},t.prototype._getSearchParams=function(t,e){if(null!=t)for(var n in t)null!==n&&void 0!==t[n]&&t.hasOwnProperty(n)&&(e=(e+=""===e?"":"&")+n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(t[n])?w(t[n]):t[n]));return e},t.prototype._computeRequestHeaders=function(t){var e=S("foreach"),n={"x-algolia-agent":t.additionalUA?this._ua+"; "+t.additionalUA:this._ua,"x-algolia-application-id":this.applicationID};return!1!==t.withApiKey&&(n["x-algolia-api-key"]=this.apiKey),this.userToken&&(n["x-algolia-usertoken"]=this.userToken),this.securityTags&&(n["x-algolia-tagfilters"]=this.securityTags),e(this.extraHeaders,function(t,e){n[e]=t}),t.headers&&e(t.headers,function(t,e){n[e]=t}),n},t.prototype.search=function(t,e,n){var i=S("isarray"),r=S("./map.js");if(!i(t))throw new Error("Usage: client.search(arrayOfQueries[, callback])");"function"==typeof e?(n=e,e={}):void 0===e&&(e={});var o=this,i={requests:r(t,function(t){var e="";return void 0!==t.query&&(e+="query="+encodeURIComponent(t.query)),{indexName:t.indexName,params:o._getSearchParams(t.params,e)}})},t=r(i.requests,function(t,e){return e+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(t.indexName)+"?"+t.params)}).join("&");return void 0!==e.strategy&&(i.strategy=e.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:i,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:t}},callback:n})},t.prototype.searchForFacetValues=function(t){var o,e=S("isarray"),n=S("./map.js"),a="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(e(t))return(o=this)._promise.all(n(t,function(t){var e,n,i,r;if(t&&void 0!==t.indexName&&void 0!==t.params.facetName&&void 0!==t.params.facetQuery)return r=S("./clone.js"),i=S("./omit.js"),e=t.indexName,n=(t=t.params).facetName,i=i(r(t),function(t){return"facetName"===t}),r=o._getSearchParams(i,""),o._jsonRequest({cache:o.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/facets/"+encodeURIComponent(n)+"/query",hostType:"read",body:{params:r}});throw new Error(a)}));throw new Error(a)},t.prototype.setSecurityTags=function(t){if("[object Array]"===Object.prototype.toString.call(t)){for(var e=[],n=0;n<t.length;++n)if("[object Array]"===Object.prototype.toString.call(t[n])){for(var i=[],r=0;r<t[n].length;++r)i.push(t[n][r]);e.push("("+i.join(",")+")")}else e.push(t[n]);t=e.join(",")}this.securityTags=t},t.prototype.setUserToken=function(t){this.userToken=t},t.prototype.clearCache=function(){this.cache={}},t.prototype.setRequestTimeout=function(t){t&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=t)},t.prototype.setTimeouts=function(t){this._timeouts=t},t.prototype.getTimeouts=function(){return this._timeouts},t.prototype._getAppIdData=function(){var t=i.get(this.applicationID);return null!==t&&this._cacheAppIdData(t),t},t.prototype._setAppIdData=function(t){return t.lastChange=(new Date).getTime(),this._cacheAppIdData(t),i.set(this.applicationID,t)},t.prototype._checkAppIdData=function(){var t=this._getAppIdData(),e=(new Date).getTime();return null===t||e-t.lastChange>r?this._resetInitialAppIdData(t):t},t.prototype._resetInitialAppIdData=function(t){t=t||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||function(t){var e,n,i=t.length;for(;0!==i;)n=Math.floor(Math.random()*i),e=t[--i],t[i]=t[n],t[n]=e;return t}([1,2,3]),this._setAppIdData(t)},t.prototype._cacheAppIdData=function(t){this._hostIndexes=t.hostIndexes,this._timeoutMultiplier=t.timeoutMultiplier,this._shuffleResult=t.shuffleResult},t.prototype._partialAppIdDataUpdate=function(t){var e=S("foreach"),n=this._getAppIdData();return e(t,function(t,e){n[e]=t}),this._setAppIdData(n)},t.prototype._getHostByType=function(t){return this.hosts[t][this._getHostIndexByType(t)]},t.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},t.prototype._getHostIndexByType=function(t){return this._hostIndexes[t]},t.prototype._setHostIndexByType=function(t,e){var n=S("./clone")(this._hostIndexes);return n[e]=t,this._partialAppIdDataUpdate({hostIndexes:n}),t},t.prototype._incrementHostIndex=function(t){return this._setHostIndexByType((this._getHostIndexByType(t)+1)%this.hosts[t].length,t)},t.prototype._incrementTimeoutMultipler=function(){var t=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:t})},t.prototype._getTimeoutsForRequest=function(t){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[t]*this._timeoutMultiplier}}}.call(this)}.call(this,S("_process"))},{"./IndexCore.js":3,"./clone":9,"./clone.js":9,"./errors":12,"./exitPromise.js":13,"./map.js":14,"./omit.js":16,"./store.js":18,_process:561,debug:378,foreach:384,isarray:1}],3:[function(a,t,e){var n=a("./buildSearchMethod.js"),i=a("./deprecate.js"),r=a("./deprecatedMessage.js");function o(t,e){this.indexName=e,this.as=t,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}(t.exports=o).prototype.clearCache=function(){this.cache={}},o.prototype.search=n("query"),o.prototype.similarSearch=i(n("similarQuery"),r("index.similarSearch(query[, callback])","index.search({ similarQuery: query }[, callback])")),o.prototype.browse=function(t,e,n){var i,r,o=a("./merge.js"),o=(0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(n=arguments[i=0],t=void 0):"number"==typeof arguments[0]?(i=arguments[0],"number"==typeof arguments[1]?r=arguments[1]:"function"==typeof arguments[1]&&(n=arguments[1],r=void 0),e=t=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(n=arguments[1]),e=arguments[0],t=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(n=arguments[1],e=void 0),e=o({},e||{},{page:i,hitsPerPage:r,query:t}),this.as._getSearchParams(e,""));return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{params:o},hostType:"read",callback:n})},o.prototype.browseFrom=function(t,e){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:t},hostType:"read",callback:e})},o.prototype.searchForFacetValues=function(t,e){var n=a("./clone.js"),i=a("./omit.js");if(void 0===t.facetName||void 0===t.facetQuery)throw new Error("Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])");var r=t.facetName,i=i(n(t),function(t){return"facetName"===t}),n=this.as._getSearchParams(i,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(r)+"/query",hostType:"read",body:{params:n},callback:e})},o.prototype.searchFacet=i(function(t,e){return this.searchForFacetValues(t,e)},r("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),o.prototype._search=function(t,e,n,i){return this.as._jsonRequest({cache:this.cache,method:"POST",url:e||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:t},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:t}},callback:n,additionalUA:i})},o.prototype.getObject=function(t,e,n){1!==arguments.length&&"function"!=typeof e||(n=e,e=void 0);var i="";if(void 0!==e)for(var i="?attributes=",r=0;r<e.length;++r)0!==r&&(i+=","),i+=e[r];return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(t)+i,hostType:"read",callback:n})},o.prototype.getObjects=function(t,e,n){var i,r=a("isarray"),o=a("./map.js");if(r(t))return i=this,1!==arguments.length&&"function"!=typeof e||(n=e,e=void 0),r={requests:o(t,function(t){t={indexName:i.indexName,objectID:t};return e&&(t.attributesToRetrieve=e.join(",")),t})},this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:r,callback:n});throw new Error("Usage: index.getObjects(arrayOfObjectIDs[, callback])")},o.prototype.as=null,o.prototype.indexName=null,o.prototype.typeAheadArgs=null,o.prototype.typeAheadValueOption=null},{"./buildSearchMethod.js":8,"./clone.js":9,"./deprecate.js":10,"./deprecatedMessage.js":11,"./map.js":14,"./merge.js":15,"./omit.js":16,isarray:1}],4:[function(t,e,n){"use strict";var i=t("../../AlgoliaSearchCore.js"),t=t("../createAlgoliasearch.js");e.exports=t(i,"Browser (lite)")},{"../../AlgoliaSearchCore.js":2,"../createAlgoliasearch.js":5}],5:[function(u,t,e){!function(c){!function(){"use strict";var s=u("global"),l=s.Promise||u("es6-promise").Promise;t.exports=function(t,e){var n=u("inherits"),h=u("../errors"),d=u("./inline-headers"),r=u("./jsonp-request"),i=u("../places.js");function o(t,e,n){return(n=u("../clone.js")(n||{}))._ua=n._ua||o.ua,new a(t,e,n)}e=e||"","debug"===c.env.NODE_ENV&&u("debug").enable("algoliasearch*"),o.version=u("../version.js"),o.ua="Algolia for JavaScript ("+o.version+"); "+e,o.initPlaces=i(o),s.__algolia={debug:u("debug"),algoliasearch:o};var p={hasXMLHttpRequest:"XMLHttpRequest"in s,hasXDomainRequest:"XDomainRequest"in s};function a(){t.apply(this,arguments)}return p.hasXMLHttpRequest&&(p.cors="withCredentials"in new XMLHttpRequest),n(a,t),(a.prototype._request=function(c,u){return new l(function(t,n){var e,i,r,o,a;function s(){r=!0,i.abort(),n(new h.RequestTimeout)}function l(){o=!0,clearTimeout(a),a=setTimeout(s,u.timeouts.complete)}p.cors||p.hasXDomainRequest?(c=d(c,u.headers),e=u.body,i=new(p.cors?XMLHttpRequest:XDomainRequest),o=!1,a=setTimeout(s,u.timeouts.connect),i.onprogress=function(){o||l()},"onreadystatechange"in i&&(i.onreadystatechange=function(){!o&&1<i.readyState&&l()}),i.onload=function(){if(!r){var e;clearTimeout(a);try{e={body:JSON.parse(i.responseText),responseText:i.responseText,statusCode:i.status,headers:i.getAllResponseHeaders&&i.getAllResponseHeaders()||{}}}catch(t){e=new h.UnparsableJSON({more:i.responseText})}(e instanceof h.UnparsableJSON?n:t)(e)}},i.onerror=function(t){r||(clearTimeout(a),n(new h.Network({more:t})))},i instanceof XMLHttpRequest?(i.open(u.method,c,!0),u.forceAuthHeaders&&(i.setRequestHeader("x-algolia-application-id",u.headers["x-algolia-application-id"]),i.setRequestHeader("x-algolia-api-key",u.headers["x-algolia-api-key"]))):i.open(u.method,c),p.cors&&(e&&("POST"===u.method?i.setRequestHeader("content-type","application/x-www-form-urlencoded"):i.setRequestHeader("content-type","application/json")),i.setRequestHeader("accept","application/json")),e?i.send(e):i.send()):n(new h.Network("CORS not supported"))})}).fallback=function(t,e){return t=d(t,e.headers),new l(function(n,i){r(t,e,function(t,e){t?i(t):n(e)})})},a.prototype._promise={reject:function(t){return l.reject(t)},resolve:function(t){return l.resolve(t)},delay:function(e){return new l(function(t){setTimeout(t,e)})},all:function(t){return l.all(t)}},o}}.call(this)}.call(this,u("_process"))},{"../clone.js":9,"../errors":12,"../places.js":17,"../version.js":19,"./inline-headers":6,"./jsonp-request":7,_process:561,debug:378,"es6-promise":381,global:385,inherits:420}],6:[function(t,e,n){"use strict";e.exports=function(t,e){/\?/.test(t)?t+="&":t+="?";return t+i(e)};var i=t("querystring-es3/encode")},{"querystring-es3/encode":563}],7:[function(t,e,n){"use strict";e.exports=function(t,e,n){var i,r,o,a,s,l,c;function u(){e.debug("JSONP: success"),l||r||(l=!0,i)||(e.debug("JSONP: Fail. Script loaded but did not call the callback"),h(),n(new d.JSONPScriptFail))}function h(){clearTimeout(c),a.onload=null,a.onreadystatechange=null,a.onerror=null,o.removeChild(a)}"GET"!==e.method?n(new Error("Method "+e.method+" "+t+" is not supported by JSONP.")):(e.debug("JSONP: start"),r=i=!1,p+=1,o=document.getElementsByTagName("head")[0],a=document.createElement("script"),s="algoliaJSONP_"+p,l=!1,window[s]=function(t){try{delete window[s],delete window[s+"_loaded"]}catch(t){window[s]=window[s+"_loaded"]=void 0}r?e.debug("JSONP: Late answer, ignoring"):(i=!0,h(),n(null,{body:t,responseText:JSON.stringify(t)}))},t+="&callback="+s,e.jsonBody&&e.jsonBody.params&&(t+="&"+e.jsonBody.params),c=setTimeout(function(){e.debug("JSONP: Script timeout"),r=!0,h(),n(new d.RequestTimeout)},e.timeouts.complete),a.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||u()},a.onload=u,a.onerror=function(){e.debug("JSONP: Script error"),l||r||(h(),n(new d.JSONPScriptError))},a.async=!0,a.defer=!0,a.src=t,o.appendChild(a))};var d=t("../errors"),p=0},{"../errors":12}],8:[function(t,e,n){e.exports=function(o,a){return function(t,e,n){if("function"==typeof t&&"object"==typeof e||"object"==typeof n)throw new s.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof t?(n=t,t=""):1!==arguments.length&&"function"!=typeof e||(n=e,e=void 0),"object"==typeof t&&null!==t?(e=t,t=void 0):null==t&&(t="");var i,r="";return void 0!==t&&(r+=o+"="+encodeURIComponent(t)),void 0!==e&&(e.additionalUA&&(i=e.additionalUA,delete e.additionalUA),r=this.as._getSearchParams(e,r)),this._search(r,a,n,i)}};var s=t("./errors.js")},{"./errors.js":12}],9:[function(t,e,n){e.exports=function(t){return JSON.parse(JSON.stringify(t))}},{}],10:[function(t,e,n){e.exports=function(t,e){var n=!1;return function(){return n||(console.warn(e),n=!0),t.apply(this,arguments)}}},{}],11:[function(t,e,n){e.exports=function(t,e){var n=t.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+t+"` was replaced by `"+e+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+n}},{}],12:[function(r,t,e){"use strict";var i=r("inherits");function o(t,e){var n=r("foreach"),i=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):i.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=t||"Unknown error",e&&n(e,function(t,e){i[e]=t})}function n(e,n){function t(){var t=Array.prototype.slice.call(arguments,0);"string"!=typeof t[0]&&t.unshift(n),o.apply(this,t),this.name="AlgoliaSearch"+e+"Error"}return i(t,o),t}i(o,Error),t.exports={AlgoliaSearchError:o,UnparsableJSON:n("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:n("RequestTimeout","Request timed out before getting a response"),Network:n("Network","Network issue, see err.more for details"),JSONPScriptFail:n("JSONPScriptFail","<script> was loaded but did not call our provided callback"),ValidUntilNotFound:n("ValidUntilNotFound","The SecuredAPIKey does not have a validUntil parameter."),JSONPScriptError:n("JSONPScriptError","<script> unable to load due to an `error` event on it"),ObjectNotFound:n("ObjectNotFound","Object not found"),Unknown:n("Unknown","Unknown error occured")}},{foreach:384,inherits:420}],13:[function(t,e,n){e.exports=function(t,e){e(t,0)}},{}],14:[function(t,e,n){var o=t("foreach");e.exports=function(n,i){var r=[];return o(n,function(t,e){r.push(i(t,e,n))}),r}},{foreach:384}],15:[function(t,e,n){var r=t("foreach");e.exports=function n(i){var t=Array.prototype.slice.call(arguments);return r(t,function(t){for(var e in t)t.hasOwnProperty(e)&&("object"==typeof i[e]&&"object"==typeof t[e]?i[e]=n({},i[e],t[e]):void 0!==t[e]&&(i[e]=t[e]))}),i}},{foreach:384}],16:[function(o,t,e){t.exports=function(e,n){var t=o("object-keys"),i=o("foreach"),r={};return i(t(e),function(t){!0!==n(t)&&(r[t]=e[t])}),r}},{foreach:384,"object-keys":426}],17:[function(o,t,e){t.exports=function(r){return function(t,e,n){var i=o("./clone.js");(n=n&&i(n)||{}).hosts=n.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof t&&void 0!==t||(n._allowEmptyCredentials=!(e=t=""));i=r(t,e,n).initIndex("places");return i.search=s("query","/1/places/query"),i.reverse=function(t,e){t=a.encode(t);return this.as._jsonRequest({method:"GET",url:"/1/places/reverse?"+t,hostType:"read",callback:e})},i.getObject=function(t,e){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(t),hostType:"read",callback:e})},i}};var a=o("querystring-es3"),s=o("./buildSearchMethod.js")},{"./buildSearchMethod.js":8,"./clone.js":9,"querystring-es3":564}],18:[function(c,u,t){!function(l){!function(){var n,i=c("debug")("algoliasearch:src/hostIndexState.js"),r="algoliasearch-client-js",o={state:{},set:function(t,e){return this.state[t]=e,this.state[t]},get:function(t){return this.state[t]||null}},t={set:function(e,t){o.set(e,t);try{var n=JSON.parse(l.localStorage[r]);return n[e]=t,l.localStorage[r]=JSON.stringify(n),n[e]}catch(t){return a(e,t)}},get:function(e){try{return JSON.parse(l.localStorage[r])[e]||null}catch(t){return a(e,t)}}};function a(t,e){i("localStorage failed with",e);try{l.localStorage.removeItem(r)}catch(t){}return(n=o).get(t)}function e(t,e){return 1===arguments.length?n.get(t):n.set(t,e)}function s(){try{return"localStorage"in l&&null!==l.localStorage?(l.localStorage[r]||l.localStorage.setItem(r,JSON.stringify({})),!0):!1}catch(t){return!1}}n=s()?t:o,u.exports={get:e,set:e,supportsLocalStorage:s}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{debug:378}],19:[function(t,e,n){"use strict";e.exports="3.35.1"},{}],20:[function(t,z,e){!function(B,N,U){!function(){!function(){var t,g={};function v(){}function r(t){return t}function e(t){return!!t}function n(t){return!t}var i="object"==typeof self&&self.self===self&&self||"object"==typeof N&&N.global===N&&N||this;function u(t){return function(){if(null===t)throw new Error("Callback was already called.");t.apply(this,arguments),t=null}}function y(t){return function(){null!==t&&(t.apply(this,arguments),t=null)}}null!=i&&(t=i.async),g.noConflict=function(){return i.async=t,g};var I=Object.prototype.toString,_=Array.isArray||function(t){return"[object Array]"===I.call(t)};function a(t){return _(t)||"number"==typeof t.length&&0<=t.length&&t.length%1==0}function b(t,e){for(var n=-1,i=t.length;++n<i;)e(t[n],n,t)}function s(t,e){for(var n=-1,i=t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function o(t){return s(Array(t),function(t,e){return e})}function x(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var w=Object.keys||function(t){var e,n=[];for(e in t)t.hasOwnProperty(e)&&n.push(e);return n};function h(t){var e,n,i=-1;return a(t)?(e=t.length,function(){return++i<e?i:null}):(n=w(t),e=n.length,function(){return++i<e?n[i]:null})}function T(i,r){return r=null==r?i.length-1:+r,function(){for(var t=Math.max(arguments.length-r,0),e=Array(t),n=0;n<t;n++)e[n]=arguments[n+r];switch(r){case 0:return i.call(this,e);case 1:return i.call(this,arguments[0],e)}}}function l(i){return function(t,e,n){return i(t,n)}}var c="function"==typeof U&&U,d=c?function(t){c(t)}:function(t){setTimeout(t,0)};function p(c){return function(n,i,r){r=y(r||v);var o=h(n=n||[]);if(c<=0)return r(null);var a=!1,s=0,l=!1;!function e(){if(a&&s<=0)return r(null);for(;s<c&&!l;){var t=o();if(null===t)return a=!0,void(s<=0&&r(null));s+=1,i(n[t],t,u(function(t){--s,t?(r(t),l=!0):e()}))}}()}}function f(i){return function(t,e,n){return i(g.eachOf,t,e,n)}}function m(r){return function(t,e,n,i){return r(p(e),t,n,i)}}function S(i){return function(t,e,n){return i(g.eachOfSeries,t,e,n)}}function C(t,e,r,n){n=y(n||v);var o=a(e=e||[])?[]:{};t(e,function(t,n,i){r(t,function(t,e){o[n]=e,i(t)})},function(t){n(t,o)})}function E(t,e,r,n){var o=[];t(e,function(e,n,i){r(e,function(t){t&&o.push({index:n,value:e}),i()})},function(){n(s(o.sort(function(t,e){return t.index-e.index}),function(t){return t.value}))})}function M(t,e,n,i){E(t,e,function(t,e){n(t,function(t){e(!t)})},i)}function P(a,s,l){return function(t,e,i,r){function n(){r&&r(l(!1,void 0))}function o(e,t,n){if(!r)return n();i(e,function(t){r&&s(t)&&(r(l(!0,e)),r=i=!1),n()})}3<arguments.length?a(t,e,o,n):(r=i,i=e,a(t,o,n))}}function k(t,e){return e}function A(t,e,n){n=n||v;var r=a(e)?[]:{};t(e,function(t,n,i){t(T(function(t,e){e.length<=1&&(e=e[0]),r[n]=e,i(t)}))},function(t){n(t,r)})}function O(t,e,i,n){var r=[];t(e,function(t,e,n){i(t,function(t,e){r=r.concat(e||[]),n(t)})},function(t){n(t,r)})}function R(n,t,e){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");function i(e,t,n,i){if(null!=i&&"function"!=typeof i)throw new Error("task callback must be a function");if(e.started=!0,0===(t=_(t)?t:[t]).length&&e.idle())return g.setImmediate(function(){e.drain()});b(t,function(t){t={data:t,callback:i||v};n?e.tasks.unshift(t):e.tasks.push(t),e.tasks.length===e.concurrency&&e.saturated()}),g.setImmediate(e.process)}var r=0,o=[],a={tasks:[],concurrency:t,payload:e,saturated:v,empty:v,drain:v,started:!1,paused:!1,push:function(t,e){i(a,t,!1,e)},kill:function(){a.drain=v,a.tasks=[]},unshift:function(t,e){i(a,t,!0,e)},process:function(){for(;!a.paused&&r<a.concurrency&&a.tasks.length;){var t=a.payload?a.tasks.splice(0,a.payload):a.tasks.splice(0,a.tasks.length),e=s(t,function(t){return t.data}),t=(0===a.tasks.length&&a.empty(),r+=1,o.push(t[0]),u(function(e,n){return function(){--r;var i=!1,t=arguments;b(n,function(n){b(o,function(t,e){t!==n||i||(o.splice(e,1),i=!0)}),n.callback.apply(n,t)}),e.tasks.length+r===0&&e.drain(),e.process()}}(a,t)));n(e,t)}},length:function(){return a.tasks.length},running:function(){return r},workersList:function(){return o},idle:function(){return a.tasks.length+r===0},pause:function(){a.paused=!0},resume:function(){if(!1!==a.paused){a.paused=!1;for(var t=Math.min(a.concurrency,a.tasks.length),e=1;e<=t;e++)g.setImmediate(a.process)}}};return a}function L(n){return T(function(t,e){t.apply(null,e.concat([T(function(t,e){"object"==typeof console&&(t?console.error&&console.error(t):console[n]&&b(e,function(t){console[n](t)}))})]))})}function D(i){return function(t,e,n){i(o(t),e,n)}}function F(o){return T(function(e,t){var n=T(function(i){var r=this,t=i.pop();return o(e,function(t,e,n){t.apply(r,i.concat([n]))},t)});return t.length?n.apply(this,t):n})}function j(i){return T(function(t){var e=t.pop(),n=(t.push(function(){var t=arguments;n?g.setImmediate(function(){e.apply(null,t)}):e.apply(null,t)}),!0);i.apply(this,t),n=!1})}"object"==typeof B&&"function"==typeof B.nextTick?g.nextTick=B.nextTick:g.nextTick=d,g.setImmediate=c?d:g.nextTick,g.forEach=g.each=function(t,e,n){return g.eachOf(t,l(e),n)},g.forEachSeries=g.eachSeries=function(t,e,n){return g.eachOfSeries(t,l(e),n)},g.forEachLimit=g.eachLimit=function(t,e,n,i){return p(e)(t,l(n),i)},g.forEachOf=g.eachOf=function(t,e,n){n=y(n||v);for(var i,r=h(t=t||[]),o=0;null!=(i=r());)o+=1,e(t[i],i,u(a));function a(t){o--,t?n(t):null===i&&o<=0&&n(null)}0===o&&n(null)},g.forEachOfSeries=g.eachOfSeries=function(t,i,r){r=y(r||v);var o=h(t=t||[]),a=o();!function e(){var n=!0;if(null===a)return r(null);i(t[a],a,u(function(t){if(t)r(t);else{if(null===(a=o()))return r(null);n?g.setImmediate(e):e()}})),n=!1}()},g.forEachOfLimit=g.eachOfLimit=function(t,e,n,i){p(e)(t,n,i)},g.map=f(C),g.mapSeries=S(C),g.mapLimit=m(C),g.inject=g.foldl=g.reduce=function(t,i,r,e){g.eachOfSeries(t,function(t,e,n){r(i,t,function(t,e){i=e,n(t)})},function(t){e(t,i)})},g.foldr=g.reduceRight=function(t,e,n,i){t=s(t,r).reverse();g.reduce(t,e,n,i)},g.transform=function(t,i,r,e){3===arguments.length&&(e=r,r=i,i=_(t)?[]:{}),g.eachOf(t,function(t,e,n){r(i,t,e,n)},function(t){e(t,i)})},g.select=g.filter=f(E),g.selectLimit=g.filterLimit=m(E),g.selectSeries=g.filterSeries=S(E),g.reject=f(M),g.rejectLimit=m(M),g.rejectSeries=S(M),g.any=g.some=P(g.eachOf,e,r),g.someLimit=P(g.eachOfLimit,e,r),g.all=g.every=P(g.eachOf,n,n),g.everyLimit=P(g.eachOfLimit,n,n),g.detect=P(g.eachOf,r,k),g.detectSeries=P(g.eachOfSeries,r,k),g.detectLimit=P(g.eachOfLimit,r,k),g.sortBy=function(t,e,n){function i(t,e){t=t.criteria,e=e.criteria;return t<e?-1:e<t?1:0}g.map(t,function(n,i){e(n,function(t,e){t?i(t):i(null,{value:n,criteria:e})})},function(t,e){if(t)return n(t);n(null,s(e.sort(i),function(t){return t.value}))})},g.auto=function(s,l,c){"function"==typeof arguments[1]&&(c=l,l=null),c=y(c||v);var t=w(s),e=t.length;if(!e)return c(null);l=l||e;var u={},h=0,d=!1,n=[];function p(t){n.unshift(t)}function f(t){t=x(n,t);0<=t&&n.splice(t,1)}function m(){e--,b(n.slice(0),function(t){t()})}p(function(){e||c(null,u)}),b(t,function(o){if(!d){for(var t,e=_(s[o])?s[o]:[s[o]],n=T(function(t,e){var n,i,r;h--,e.length<=1&&(e=e[0]),t?(n={},r=function(t,e){n[e]=t},b(w(i=u),function(t){r(i[t],t)}),n[o]=e,d=!0,c(t,n)):(u[o]=e,g.setImmediate(m))}),a=e.slice(0,e.length-1),i=a.length;i--;){if(!(t=s[a[i]]))throw new Error("Has nonexistent dependency in "+a.join(", "));if(_(t)&&0<=x(t,o))throw new Error("Has cyclic dependencies")}r()?(h++,e[e.length-1](n,u)):p(function t(){r()&&(h++,f(t),e[e.length-1](n,u))})}function r(){return h<l&&(i=function(t,e){return t&&u.hasOwnProperty(e)},r=!0,b(a,function(t,e,n){r=i(r,t,e,n)}),r)&&!u.hasOwnProperty(o);var i,r}})},g.retry=function(t,e,n){var i=[],r={times:5,interval:0};var o=arguments.length;if(o<1||3<o)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");if(o<=2&&"function"==typeof t&&(n=e,e=t),"function"!=typeof t){var o=r,a=t;if("number"==typeof a)o.times=parseInt(a,10)||5;else{if("object"!=typeof a)throw new Error("Unsupported argument type for 'times': "+typeof a);o.times=parseInt(a.times,10)||5,o.interval=parseInt(a.interval,10)||0}}function s(n,e){for(;r.times;){var t=!--r.times;i.push(function(t,i){return function(n){t(function(t,e){n(!t||i,{err:t,result:e})},e)}}(r.task,t)),!t&&0<r.interval&&i.push(function(e){return function(t){setTimeout(function(){t(null)},e)}}(r.interval))}g.series(i,function(t,e){e=e[e.length-1],(n||r.callback)(e.err,e.result)})}return r.callback=n,r.task=e,r.callback?s():s},g.waterfall=function(t,r){return r=y(r||v),_(t)?t.length?void function n(i){return T(function(t,e){t?r.apply(null,[t].concat(e)):((t=i.next())?e.push(n(t)):e.push(r),j(i).apply(null,e))})}(g.iterator(t))():r():(t=new Error("First argument to waterfall must be an array of functions"),r(t))},g.parallel=function(t,e){A(g.eachOf,t,e)},g.parallelLimit=function(t,e,n){A(p(e),t,n)},g.series=function(t,e){A(g.eachOfSeries,t,e)},g.iterator=function(i){return function t(e){function n(){return i.length&&i[e].apply(null,arguments),n.next()}return n.next=function(){return e<i.length-1?t(e+1):null},n}(0)},g.apply=T(function(e,n){return T(function(t){return e.apply(null,n.concat(t))})}),g.concat=f(O),g.concatSeries=S(O),g.whilst=function(n,i,r){var o;r=r||v,n()?(o=T(function(t,e){t?r(t):n.apply(this,e)?i(o):r.apply(null,[null].concat(e))}),i(o)):r(null)},g.doWhilst=function(t,e,n){var i=0;return g.whilst(function(){return++i<=1||e.apply(this,arguments)},t,n)},g.until=function(t,e,n){return g.whilst(function(){return!t.apply(this,arguments)},e,n)},g.doUntil=function(t,e,n){return g.doWhilst(t,function(){return!e.apply(this,arguments)},n)},g.during=function(n,i,r){r=r||v;var o=T(function(t,e){t?r(t):(e.push(a),n.apply(this,e))}),a=function(t,e){t?r(t):e?i(o):r(null)};n(a)},g.doDuring=function(t,e,n){var i=0;g.during(function(t){i++<1?t(null,!0):e.apply(this,arguments)},t,n)},g.queue=function(n,t){return R(function(t,e){n(t[0],e)},t,1)},g.priorityQueue=function(t,e){function r(t,e){return t.priority-e.priority}function i(e,t,n,i){if(null!=i&&"function"!=typeof i)throw new Error("task callback must be a function");if(e.started=!0,0===(t=_(t)?t:[t]).length)return g.setImmediate(function(){e.drain()});b(t,function(t){t={data:t,priority:n,callback:"function"==typeof i?i:v};e.tasks.splice(function(t,e,n){for(var i=-1,r=t.length-1;i<r;){var o=i+(r-i+1>>>1);0<=n(e,t[o])?i=o:r=o-1}return i}(e.tasks,t,r)+1,0,t),e.tasks.length===e.concurrency&&e.saturated(),g.setImmediate(e.process)})}var o=g.queue(t,e);return o.push=function(t,e,n){i(o,t,e,n)},delete o.unshift,o},g.cargo=function(t,e){return R(t,1,e)},g.log=L("log"),g.dir=L("dir"),g.memoize=function(n,i){var o={},a={},s=Object.prototype.hasOwnProperty,t=(i=i||r,T(function(t){var e=t.pop(),r=i.apply(null,t);s.call(o,r)?g.setImmediate(function(){e.apply(null,o[r])}):s.call(a,r)?a[r].push(e):(a[r]=[e],n.apply(null,t.concat([T(function(t){o[r]=t;var e=a[r];delete a[r];for(var n=0,i=e.length;n<i;n++)e[n].apply(null,t)})])))}));return t.memo=o,t.unmemoized=n,t},g.unmemoize=function(t){return function(){return(t.unmemoized||t).apply(null,arguments)}},g.times=D(g.map),g.timesSeries=D(g.mapSeries),g.timesLimit=function(t,e,n,i){return g.mapLimit(o(t),e,n,i)},g.seq=function(){var e=arguments;return T(function(t){var i=this,n=t[t.length-1];"function"==typeof n?t.pop():n=v,g.reduce(e,t,function(t,e,n){e.apply(i,t.concat([T(function(t,e){n(t,e)})]))},function(t,e){n.apply(i,[t].concat(e))})})},g.compose=function(){return g.seq.apply(null,Array.prototype.reverse.call(arguments))},g.applyEach=F(g.eachOf),g.applyEachSeries=F(g.eachOfSeries),g.forever=function(t,e){var n=u(e||v),i=j(t);!function t(e){if(e)return n(e);i(t)}()},g.ensureAsync=j,g.constant=T(function(t){var e=[null].concat(t);return function(t){return t.apply(this,e)}}),g.wrapSync=g.asyncify=function(r){return T(function(t){var e,n,i=t.pop();try{e=r.apply(this,t)}catch(t){return i(t)}("function"==(n=typeof(t=e))||"object"==n&&t)&&"function"==typeof e.then?e.then(function(t){i(null,t)}).catch(function(t){i(t.message?t:new Error(t))}):i(null,e)})},"object"==typeof z&&z.exports?z.exports=g:"function"==typeof define&&define.amd?define([],function(){return g}):i.async=g}()}.call(this)}.call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("timers").setImmediate)},{_process:561,timers:575}],21:[function(t,e,n){"use strict";e.exports=t("./src/standalone/")},{"./src/standalone/":36}],22:[function(t,e,n){"use strict";var t=t("../common/utils.js"),i={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"},defaultClasses:{root:"algolia-autocomplete",prefix:"aa",noPrefix:!1,dropdownMenu:"dropdown-menu",input:"input",hint:"hint",suggestions:"suggestions",suggestion:"suggestion",cursor:"cursor",dataset:"dataset",empty:"empty"},appendTo:{wrapper:{position:"absolute",zIndex:"100",display:"none"},input:{},inputWithNoHint:{},dropdown:{display:"block"}}};t.isMsie()&&t.mixin(i.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),t.isMsie()&&t.isMsie()<=7&&t.mixin(i.input,{marginTop:"-1px"}),e.exports=i},{"../common/utils.js":32}],23:[function(t,e,n){"use strict";var s="aaDataset",l="aaValue",c="aaDatum",u=t("../common/utils.js"),h=t("../common/dom.js"),d=t("./html.js"),r=t("./css.js"),t=t("./event_emitter.js");function i(t){(t=t||{}).templates=t.templates||{},t.source||u.error("missing source"),t.name&&!/^[_a-zA-Z0-9-]+$/.test(t.name)&&u.error("invalid dataset name: "+t.name),this.query=null,this._isEmpty=!0,this.highlight=!!t.highlight,this.name=void 0===t.name||null===t.name?u.getUniqueId():t.name,this.source=t.source,this.displayFn=(e=(e=t.display||t.displayKey)||"value",u.isFunction(e)?e:function(t){return t[e]}),this.debounce=t.debounce,this.cache=!1!==t.cache,this.templates=(i=t.templates,n=this.displayFn,{empty:i.empty&&u.templatify(i.empty),header:i.header&&u.templatify(i.header),footer:i.footer&&u.templatify(i.footer),suggestion:i.suggestion||function(t){return"<p>"+n(t)+"</p>"}}),this.css=u.mixin({},r,t.appendTo?r.appendTo:{}),this.cssClasses=t.cssClasses=u.mixin({},r.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix||u.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix);var e,n,i=u.className(this.cssClasses.prefix,this.cssClasses.dataset);this.$el=t.$menu&&0<t.$menu.find(i+"-"+this.name).length?h.element(t.$menu.find(i+"-"+this.name)[0]):h.element(d.dataset.replace("%CLASS%",this.name).replace("%PREFIX%",this.cssClasses.prefix).replace("%DATASET%",this.cssClasses.dataset)),this.$menu=t.$menu,this.clearCachedSuggestions()}i.extractDatasetName=function(t){return h.element(t).data(s)},i.extractValue=function(t){return h.element(t).data(l)},i.extractDatum=function(t){t=h.element(t).data(c);return t="string"==typeof t?JSON.parse(t):t},u.mixin(i.prototype,t,{_render:function(e,r){if(this.$el){var n,o=this,t=[].slice.call(arguments,2);if(this.$el.empty(),n=r&&r.length,this._isEmpty=!n,!n&&this.templates.empty)this.$el.html(function(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!0}].concat(t),o.templates.empty.apply(this,t)}.apply(this,t)).prepend(o.templates.header?i.apply(this,t):null).append(o.templates.footer?a.apply(this,t):null);else if(n)this.$el.html(function(){var t,n=[].slice.call(arguments,0),i=this,e=d.suggestions.replace("%PREFIX%",this.cssClasses.prefix).replace("%SUGGESTIONS%",this.cssClasses.suggestions);return e=h.element(e).css(this.css.suggestions),t=u.map(r,function(t){var e=d.suggestion.replace("%PREFIX%",i.cssClasses.prefix).replace("%SUGGESTION%",i.cssClasses.suggestion);return(e=h.element(e).attr({role:"option",id:["option",Math.floor(1e8*Math.random())].join("-")}).append(o.templates.suggestion.apply(this,[t].concat(n)))).data(s,o.name),e.data(l,o.displayFn(t)||void 0),e.data(c,JSON.stringify(t)),e.children().each(function(){h.element(this).css(i.css.suggestionChild)}),e}),e.append.apply(e,t),e}.apply(this,t)).prepend(o.templates.header?i.apply(this,t):null).append(o.templates.footer?a.apply(this,t):null);else if(r&&!Array.isArray(r))throw new TypeError("suggestions must be an array");this.$menu&&this.$menu.addClass(this.cssClasses.prefix+(n?"with":"without")+"-"+this.name).removeClass(this.cssClasses.prefix+(n?"without":"with")+"-"+this.name),this.trigger("rendered",e)}function i(){var t=[].slice.call(arguments,0),t=[{query:e,isEmpty:!n}].concat(t);return o.templates.header.apply(this,t)}function a(){var t=[].slice.call(arguments,0),t=[{query:e,isEmpty:!n}].concat(t);return o.templates.footer.apply(this,t)}},getRoot:function(){return this.$el},update:function(n){function t(t){var e;this.canceled||n!==this.query||(e=[].slice.call(arguments,1),this.cacheSuggestions(n,t,e),this._render.apply(this,[n,t].concat(e)))}var e,i;this.query=n,this.canceled=!1,this.shouldFetchFromCache(n)?t.apply(this,[this.cachedSuggestions].concat(this.cachedRenderExtraArgs)):(i=function(){e.canceled||e.source(n,t.bind(e))},(e=this).debounce?(clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(function(){e.debounceTimeout=null,i()},this.debounce)):i())},cacheSuggestions:function(t,e,n){this.cachedQuery=t,this.cachedSuggestions=e,this.cachedRenderExtraArgs=n},shouldFetchFromCache:function(t){return this.cache&&this.cachedQuery===t&&this.cachedSuggestions&&this.cachedSuggestions.length},clearCachedSuggestions:function(){delete this.cachedQuery,delete this.cachedSuggestions,delete this.cachedRenderExtraArgs},cancel:function(){this.canceled=!0},clear:function(){this.$el&&(this.cancel(),this.$el.empty(),this.trigger("rendered",""))},isEmpty:function(){return this._isEmpty},destroy:function(){this.clearCachedSuggestions(),this.$el=null}}),e.exports=i},{"../common/dom.js":30,"../common/utils.js":32,"./css.js":22,"./event_emitter.js":26,"./html.js":27}],24:[function(t,e,n){"use strict";var s=t("../common/utils.js"),l=t("../common/dom.js"),i=t("./event_emitter.js"),r=t("./dataset.js"),c=t("./css.js");function u(i){var t,e,n,r=this,o=((i=i||{}).menu||s.error("menu is required"),s.isArray(i.datasets)||s.isObject(i.datasets)||s.error("1 or more datasets required"),i.datasets||s.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,this.minLength=i.minLength||0,this.templates={},this.appendTo=i.appendTo||!1,this.css=s.mixin({},c,i.appendTo?c.appendTo:{}),this.cssClasses=i.cssClasses=s.mixin({},c.defaultClasses,i.cssClasses||{}),this.cssClasses.prefix=i.cssClasses.formattedPrefix||s.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),t=s.bind(this._onSuggestionClick,this),e=s.bind(this._onSuggestionMouseEnter,this),n=s.bind(this._onSuggestionMouseLeave,this),s.className(this.cssClasses.prefix,this.cssClasses.suggestion)),a=(this.$menu=l.element(i.menu).on("mouseenter.aa",o,e).on("mouseleave.aa",o,n).on("click.aa",o,t),this.$container=i.appendTo?i.wrapper:this.$menu,i.templates&&i.templates.header&&(this.templates.header=s.templatify(i.templates.header),this.$menu.prepend(this.templates.header())),i.templates&&i.templates.empty&&(this.templates.empty=s.templatify(i.templates.empty),this.$empty=l.element('<div class="'+s.className(this.cssClasses.prefix,this.cssClasses.empty,!0)+'"></div>'),this.$menu.append(this.$empty),this.$empty.hide()),this.datasets=s.map(i.datasets,function(t){return e=r.$menu,n=i.cssClasses,new u.Dataset(s.mixin({$menu:e,cssClasses:n},t));var e,n}),s.each(this.datasets,function(t){var e=t.getRoot();e&&0===e.parent().length&&r.$menu.append(e),t.onSync("rendered",r._onRendered,r)}),i.templates&&i.templates.footer&&(this.templates.footer=s.templatify(i.templates.footer),this.$menu.append(this.templates.footer())),this);l.element(window).resize(function(){a._redraw()})}s.mixin(u.prototype,i,{_onSuggestionClick:function(t){this.trigger("suggestionClicked",l.element(t.currentTarget))},_onSuggestionMouseEnter:function(t){var e,n=l.element(t.currentTarget);n.hasClass(s.className(this.cssClasses.prefix,this.cssClasses.cursor,!0))||(this._removeCursor(),e=this,setTimeout(function(){e._setCursor(n,!1)},0))},_onSuggestionMouseLeave:function(t){if(t.relatedTarget&&0<l.element(t.relatedTarget).closest("."+s.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).length)return;this._removeCursor(),this.trigger("cursorRemoved")},_onRendered:function(t,e){var n;this.isEmpty=s.every(this.datasets,function(t){return t.isEmpty()}),this.isEmpty?(e.length>=this.minLength&&this.trigger("empty"),this.$empty?e.length<this.minLength?this._hide():(n=this.templates.empty({query:this.datasets[0]&&this.datasets[0].query}),this.$empty.html(n),this.$empty.show(),this._show()):!s.any(this.datasets,function(t){return t.templates&&t.templates.empty})||e.length<this.minLength?this._hide():this._show()):this.isOpen&&(this.$empty&&(this.$empty.empty(),this.$empty.hide()),e.length>=this.minLength?this._show():this._hide()),this.trigger("datasetRendered")},_hide:function(){this.$container.hide()},_show:function(){this.$container.css("display","block"),this._redraw(),this.trigger("shown")},_redraw:function(){this.isOpen&&this.appendTo&&this.trigger("redrawn")},_getSuggestions:function(){return this.$menu.find(s.className(this.cssClasses.prefix,this.cssClasses.suggestion))},_getCursor:function(){return this.$menu.find(s.className(this.cssClasses.prefix,this.cssClasses.cursor)).first()},_setCursor:function(t,e){t.first().addClass(s.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).attr("aria-selected","true"),this.trigger("cursorMoved",e)},_removeCursor:function(){this._getCursor().removeClass(s.className(this.cssClasses.prefix,this.cssClasses.cursor,!0)).removeAttr("aria-selected")},_moveCursor:function(t){var e,n;this.isOpen&&(n=this._getCursor(),e=this._getSuggestions(),this._removeCursor(),-1===(n=((n=e.index(n)+t)+1)%(e.length+1)-1)?this.trigger("cursorRemoved"):(n<-1&&(n=e.length-1),this._setCursor(t=e.eq(n),!0),this._ensureVisible(t)))},_ensureVisible:function(t){var e=t.position().top,t=e+t.height()+parseInt(t.css("margin-top"),10)+parseInt(t.css("margin-bottom"),10),n=this.$menu.scrollTop(),i=this.$menu.height()+parseInt(this.$menu.css("padding-top"),10)+parseInt(this.$menu.css("padding-bottom"),10);e<0?this.$menu.scrollTop(n+e):i<t&&this.$menu.scrollTop(n+(t-i))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,this.isEmpty||this._show(),this.trigger("opened"))},setLanguageDirection:function(t){this.$menu.css("ltr"===t?this.css.ltr:this.css.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(t){var e=null;return e=t.length?{raw:r.extractDatum(t),value:r.extractValue(t),datasetName:r.extractDatasetName(t)}:e},getCurrentCursor:function(){return this._getCursor().first()},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},cursorTopSuggestion:function(){this._setCursor(this._getSuggestions().first(),!1)},update:function(e){s.each(this.datasets,function(t){t.update(e)})},empty:function(){s.each(this.datasets,function(t){t.clear()}),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){this.$menu.off(".aa"),this.$menu=null,s.each(this.datasets,function(t){t.destroy()})}}),u.Dataset=r,e.exports=u},{"../common/dom.js":30,"../common/utils.js":32,"./css.js":22,"./dataset.js":23,"./event_emitter.js":26}],25:[function(t,e,n){"use strict";var r=t("../common/utils.js"),i=t("../common/dom.js");function o(t){t&&t.el||r.error("EventBus initialized without el"),this.$el=i.element(t.el)}r.mixin(o.prototype,{trigger:function(t,e,n,i){t=r.Event("autocomplete:"+t);return this.$el.trigger(t,[e,n,i]),t}}),e.exports=o},{"../common/dom.js":30,"../common/utils.js":32}],26:[function(t,e,n){"use strict";var o=t("immediate"),s=/\s+/;function i(t,e,n,i){var r,o,a;if(n)for(e=e.split(s),n=i?(a=i,(o=n).bind?o.bind(a):function(){o.apply(a,[].slice.call(arguments,0))}):n,this._callbacks=this._callbacks||{};r=e.shift();)this._callbacks[r]=this._callbacks[r]||{sync:[],async:[]},this._callbacks[r][t].push(n);return this}function a(i,r,o){return function(){for(var t,e=0,n=i.length;!t&&e<n;e+=1)t=!1===i[e].apply(r,o);return!t}}e.exports={onSync:function(t,e,n){return i.call(this,"sync",t,e,n)},onAsync:function(t,e,n){return i.call(this,"async",t,e,n)},off:function(t){var e;if(this._callbacks)for(t=t.split(s);e=t.shift();)delete this._callbacks[e];return this},trigger:function(t){var e,n,i,r;if(this._callbacks)for(t=t.split(s),n=[].slice.call(arguments,1);(r=t.shift())&&(e=this._callbacks[r]);)i=a(e.sync,this,[r].concat(n)),r=a(e.async,this,[r].concat(n)),i()&&o(r);return this}}},{immediate:414}],27:[function(t,e,n){"use strict";e.exports={wrapper:'<span class="%ROOT%"></span>',dropdown:'<span class="%PREFIX%%DROPDOWN_MENU%"></span>',dataset:'<div class="%PREFIX%%DATASET%-%CLASS%"></div>',suggestions:'<span class="%PREFIX%%SUGGESTIONS%"></span>',suggestion:'<div class="%PREFIX%%SUGGESTION%"></div>'}},{}],28:[function(t,e,n){"use strict";var a={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},s=t("../common/utils.js"),l=t("../common/dom.js"),t=t("./event_emitter.js");function i(t){var e,n,i,r,o=this;(t=t||{}).input||s.error("input is missing"),e=s.bind(this._onBlur,this),n=s.bind(this._onFocus,this),i=s.bind(this._onKeydown,this),r=s.bind(this._onInput,this),this.$hint=l.element(t.hint),this.$input=l.element(t.input).on("blur.aa",e).on("focus.aa",n).on("keydown.aa",i),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=s.noop),s.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",function(t){a[t.which||t.keyCode]||s.defer(s.bind(o._onInput,o,t))}):this.$input.on("input.aa",r),this.query=this.$input.val(),this.$overflowHelper=(t=this.$input,l.element('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t))}function o(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}i.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},s.mixin(i.prototype,t,{_onBlur:function(){this.resetInputValue(),this.$input.removeAttr("aria-activedescendant"),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var e=a[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var n,i,r;switch(t){case"tab":i=this.getHint(),r=this.getInputValue(),n=i&&i!==r&&!o(e);break;case"up":case"down":n=!o(e);break;default:n=!1}n&&e.preventDefault()},_shouldTrigger:function(t,e){t="tab"!==t||!o(e);return t},_checkInputValue:function(){var t,e,n=this.getInputValue();t=n,e=this.query,e=!(!(t=i.normalizeQuery(t)===i.normalizeQuery(e))||!this.query)&&this.query.length!==n.length,this.query=n,t?e&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){void 0===t&&(t=this.query),this.$input.val(t),e?this.clearHint():this._checkInputValue()},expand:function(){this.$input.attr("aria-expanded","true")},collapse:function(){this.$input.attr("aria-expanded","false")},setActiveDescendant:function(t){this.$input.attr("aria-activedescendant",t)},removeActiveDescendant:function(){this.$input.removeAttr("aria-activedescendant")},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t=this.getInputValue(),e=this.getHint(),e=t!==e&&0===e.indexOf(t);""!==t&&e&&!this.hasOverflow()||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t=this.$input.val().length,e=this.$input[0].selectionStart;return s.isNumber(e)?e===t:!document.selection||((e=document.selection.createRange()).moveStart("character",-t),t===e.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input=this.$overflowHelper=null}}),e.exports=i},{"../common/dom.js":30,"../common/utils.js":32,"./event_emitter.js":26}],29:[function(t,e,n){"use strict";var o="aaAttrs",a=t("../common/utils.js"),s=t("../common/dom.js"),r=t("./event_bus.js"),i=t("./input.js"),l=t("./dropdown.js"),c=t("./html.js"),u=t("./css.js");function h(t){if((t=t||{}).input||a.error("missing input"),this.isActivated=!1,this.debug=!!t.debug,this.autoselect=!!t.autoselect,this.autoselectOnBlur=!!t.autoselectOnBlur,this.openOnFocus=!!t.openOnFocus,this.minLength=a.isNumber(t.minLength)?t.minLength:1,this.autoWidth=void 0===t.autoWidth||!!t.autoWidth,this.clearOnSelected=!!t.clearOnSelected,this.tabAutocomplete=void 0===t.tabAutocomplete||!!t.tabAutocomplete,t.hint=!!t.hint,t.hint&&t.appendTo)throw new Error("[autocomplete.js] hint and appendTo options can't be used at the same time");this.css=t.css=a.mixin({},u,t.appendTo?u.appendTo:{}),this.cssClasses=t.cssClasses=a.mixin({},u.defaultClasses,t.cssClasses||{}),this.cssClasses.prefix=t.cssClasses.formattedPrefix=a.formatPrefix(this.cssClasses.prefix,this.cssClasses.noPrefix),this.listboxId=t.listboxId=[this.cssClasses.root,"listbox",a.getUniqueId()].join("-");var e=function(t){var e,n,i;e=s.element(t.input),n=s.element(c.wrapper.replace("%ROOT%",t.cssClasses.root)).css(t.css.wrapper),t.appendTo||"block"!==e.css("display")||"table"!==e.parent().css("display")||n.css("display","table-cell");var r=c.dropdown.replace("%PREFIX%",t.cssClasses.prefix).replace("%DROPDOWN_MENU%",t.cssClasses.dropdownMenu);r=s.element(r).css(t.css.dropdown).attr({role:"listbox",id:t.listboxId}),t.templates&&t.templates.dropdownMenu&&r.html(a.templatify(t.templates.dropdownMenu)());(i=e.clone().css(t.css.hint).css(function(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}(e))).val("").addClass(a.className(t.cssClasses.prefix,t.cssClasses.hint,!0)).removeAttr("id name placeholder required").prop("readonly",!0).attr({"aria-hidden":"true",autocomplete:"off",spellcheck:"false",tabindex:-1}),i.removeData&&i.removeData();e.data(o,{"aria-autocomplete":e.attr("aria-autocomplete"),"aria-expanded":e.attr("aria-expanded"),"aria-owns":e.attr("aria-owns"),autocomplete:e.attr("autocomplete"),dir:e.attr("dir"),role:e.attr("role"),spellcheck:e.attr("spellcheck"),style:e.attr("style"),type:e.attr("type")}),e.addClass(a.className(t.cssClasses.prefix,t.cssClasses.input,!0)).attr({autocomplete:"off",spellcheck:!1,role:"combobox","aria-autocomplete":t.datasets&&t.datasets[0]&&t.datasets[0].displayKey?"both":"list","aria-expanded":"false","aria-label":t.ariaLabel,"aria-owns":t.listboxId}).css(t.hint?t.css.input:t.css.inputWithNoHint);try{e.attr("dir")||e.attr("dir","auto")}catch(t){}return(n=t.appendTo?n.appendTo(s.element(t.appendTo).eq(0)).eq(0):e.wrap(n).parent()).prepend(t.hint?i:null).append(r),{wrapper:n,input:e,hint:i,menu:r}}(t),n=(this.$node=e.wrapper,this.$input=e.input),i=e.menu,e=e.hint;t.dropdownMenuContainer&&s.element(t.dropdownMenuContainer).css("position","relative").append(i.css("top","0")),n.on("blur.aa",function(t){var e=document.activeElement;a.isMsie()&&(i[0]===e||i[0].contains(e))&&(t.preventDefault(),t.stopImmediatePropagation(),a.defer(function(){n.focus()}))}),i.on("mousedown.aa",function(t){t.preventDefault()}),this.eventBus=t.eventBus||new r({el:n}),this.dropdown=new h.Dropdown({appendTo:t.appendTo,wrapper:this.$node,menu:i,datasets:t.datasets,templates:t.templates,cssClasses:t.cssClasses,minLength:this.minLength}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onSync("empty",this._onEmpty,this).onSync("redrawn",this._onRedrawn,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new h.Input({input:n,hint:e}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._bindKeyboardShortcuts(t),this._setLanguageDirection()}a.mixin(h.prototype,{_bindKeyboardShortcuts:function(t){var i,r;t.keyboardShortcuts&&(i=this.$input,r=[],a.each(t.keyboardShortcuts,function(t){"string"==typeof t&&(t=t.toUpperCase().charCodeAt(0)),r.push(t)}),s.element(document).keydown(function(t){var e=t.target||t.srcElement,n=e.tagName;e.isContentEditable||"INPUT"===n||"SELECT"===n||"TEXTAREA"===n||(e=t.which||t.keyCode,-1!==r.indexOf(e)&&(i.focus(),t.stopPropagation(),t.preventDefault()))}))},_onSuggestionClicked:function(t,e){(e=this.dropdown.getDatumForSuggestion(e))&&this._select(e,{selectionMethod:"click"})},_onCursorMoved:function(t,e){var n=this.dropdown.getDatumForCursor(),i=this.dropdown.getCurrentCursor().attr("id");this.input.setActiveDescendant(i),n&&(e&&this.input.setInputValue(n.value,!0),this.eventBus.trigger("cursorchanged",n.raw,n.datasetName))},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint(),this.eventBus.trigger("cursorremoved")},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.input.expand(),this.eventBus.trigger("opened")},_onEmpty:function(){this.eventBus.trigger("empty")},_onRedrawn:function(){this.$node.css("top","0px"),this.$node.css("left","0px");var t=this.$input[0].getBoundingClientRect(),e=(this.autoWidth&&this.$node.css("width",t.width+"px"),this.$node[0].getBoundingClientRect()),n=t.bottom-e.top,n=(this.$node.css("top",n+"px"),t.left-e.left);this.$node.css("left",n+"px"),this.eventBus.trigger("redrawn")},_onShown:function(){this.eventBus.trigger("shown"),this.autoselect&&this.dropdown.cursorTopSuggestion()},_onClosed:function(){this.input.clearHint(),this.input.removeActiveDescendant(),this.input.collapse(),this.eventBus.trigger("closed")},_onFocused:function(){var t;this.isActivated=!0,this.openOnFocus&&((t=this.input.getQuery()).length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open())},_onBlurred:function(){var t=this.dropdown.getDatumForCursor(),e=this.dropdown.getDatumForTopSuggestion(),n={selectionMethod:"blur"};this.debug||(this.autoselectOnBlur&&t?this._select(t,n):this.autoselectOnBlur&&e?this._select(e,n):(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()))},_onEnterKeyed:function(t,e){var n=this.dropdown.getDatumForCursor(),i=this.dropdown.getDatumForTopSuggestion(),r={selectionMethod:"enterKey"};n?(this._select(n,r),e.preventDefault()):this.autoselect&&i&&(this._select(i,r),e.preventDefault())},_onTabKeyed:function(t,e){var n;this.tabAutocomplete?(n=this.dropdown.getDatumForCursor())?(this._select(n,{selectionMethod:"tabKey"}),e.preventDefault()):this._autocomplete(!0):this.dropdown.close()},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t=this.input.getLanguageDirection();this.dir!==t&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,e,n=this.dropdown.getDatumForTopSuggestion();n&&this.dropdown.isVisible()&&!this.input.hasOverflow()&&(t=this.input.getInputValue(),e=i.normalizeQuery(t),e=a.escapeRegExChars(e),e=new RegExp("^(?:"+e+")(.+$)","i").exec(n.value))?this.input.setHint(t+e[1]):this.input.clearHint()},_autocomplete:function(t){var e=this.input.getHint(),n=this.input.getQuery(),t=t||this.input.isCursorAtEnd();e&&n!==e&&t&&((n=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(n.value),this.eventBus.trigger("autocompleted",n.raw,n.datasetName))},_select:function(t,e){void 0!==t.value&&this.input.setQuery(t.value),this.clearOnSelected?this.setVal(""):this.input.setInputValue(t.value,!0),this._setLanguageDirection(),!1===this.eventBus.trigger("selected",t.raw,t.datasetName,e).isDefaultPrevented()&&(this.dropdown.close(),a.defer(a.bind(this.dropdown.empty,this.dropdown)))},open:function(){var t;this.isActivated||((t=this.input.getInputValue()).length>=this.minLength?this.dropdown.update(t):this.dropdown.empty()),this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=a.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy();var t=this.$node,e=this.cssClasses,n=t.find(a.className(e.prefix,e.input));a.each(n.data(o),function(t,e){void 0===t?n.removeAttr(e):n.attr(e,t)}),n.detach().removeClass(a.className(e.prefix,e.input,!0)).insertAfter(t),n.removeData&&n.removeData(o),t.remove(),this.$node=null},getWrapper:function(){return this.dropdown.$container[0]}}),h.Dropdown=l,h.Input=i,h.sources=t("../sources/index.js"),e.exports=h},{"../common/dom.js":30,"../common/utils.js":32,"../sources/index.js":34,"./css.js":22,"./dropdown.js":24,"./event_bus.js":25,"./html.js":27,"./input.js":28}],30:[function(t,e,n){"use strict";e.exports={element:null}},{}],31:[function(t,e,n){"use strict";e.exports=function(t){t=t.match(/Algolia for JavaScript \((\d+\.)(\d+\.)(\d+)\)/)||t.match(/Algolia for vanilla JavaScript (\d+\.)(\d+\.)(\d+)/);if(t)return[t[1],t[2],t[3]]}},{}],32:[function(t,e,n){"use strict";var i,r=t("./dom.js");function a(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}e.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(t){if(void 0===t&&(t=navigator.userAgent),/(msie|trident)/i.test(t)){t=t.match(/(msie |rv:)(\d+(.\d+)?)/i);if(t)return t[2]}return!1},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(t){return"number"==typeof t},toStr:function(t){return null==t?"":t+""},cloneDeep:function(t){var n=this.mixin({},t),i=this;return this.each(n,function(t,e){t&&(i.isArray(t)?n[e]=[].concat(t):i.isObject(t)&&(n[e]=i.cloneDeep(t)))}),n},error:function(t){throw new Error(t)},every:function(n,i){var r=!0;return n?(this.each(n,function(t,e){r=r&&i.call(null,t,e,n)&&r}),!!r):r},any:function(n,i){var r=!1;return n&&this.each(n,function(t,e){if(i.call(null,t,e,n))return!(r=!0)}),r},getUniqueId:(i=0,function(){return i++}),templatify:function(t){var e;return this.isFunction(t)?t:"SCRIPT"===(e=r.element(t)).prop("tagName")?function(){return e.text()}:function(){return String(t)}},defer:function(t){setTimeout(t,0)},noop:function(){},formatPrefix:function(t,e){return e?"":t+"-"},className:function(t,e,n){return(n?"":".")+t+e},escapeHighlightedString:function(t,e,n){e=e||"<em>";var i=document.createElement("div"),r=(i.appendChild(document.createTextNode(e)),n=n||"</em>",document.createElement("div")),o=(r.appendChild(document.createTextNode(n)),document.createElement("div"));return o.appendChild(document.createTextNode(t)),o.innerHTML.replace(RegExp(a(i.innerHTML),"g"),e).replace(RegExp(a(r.innerHTML),"g"),n)}}},{"./dom.js":30}],33:[function(t,e,n){"use strict";var r=t("../common/utils.js"),o=t("../../version.js"),a=t("../common/parseAlgoliaClientVersion.js");e.exports=function(e,i){var t=a(e.as._ua);return t&&3<=t[0]&&20<t[1]&&((i=i||{}).additionalUA="autocomplete.js "+o),function(t,n){e.search(t,i,function(t,e){t?r.error(t.message):n(e.hits,e)})}}},{"../../version.js":37,"../common/parseAlgoliaClientVersion.js":31,"../common/utils.js":32}],34:[function(t,e,n){"use strict";e.exports={hits:t("./hits.js"),popularIn:t("./popularIn.js")}},{"./hits.js":33,"./popularIn.js":35}],35:[function(t,e,n){"use strict";var u=t("../common/utils.js"),h=t("../../version.js"),d=t("../common/parseAlgoliaClientVersion.js");e.exports=function(e,n,i,s){var l,c,t=d(e.as._ua);return t&&3<=t[0]&&20<t[1]&&((n=n||{}).additionalUA="autocomplete.js "+h),i.source?(l=u.isFunction(i.source)?i.source:function(t){return t[i.source]},i.index?(c=i.index,s=s||{},function(t,a){e.search(t,n,function(t,r){var o,e;t?u.error(t.message):0<r.hits.length?(o=r.hits[0],delete(t=u.mixin({hitsPerPage:0},i)).source,delete t.index,(e=d(c.as._ua))&&3<=e[0]&&20<e[1]&&(n.additionalUA="autocomplete.js "+h),c.search(l(o),t,function(t,e){if(t)u.error(t.message);else{var i=[];s.includeAll&&(t=s.allTitle||"All departments",i.push(u.mixin({facet:{value:t,count:e.nbHits}},u.cloneDeep(o)))),u.each(e.facets,function(t,n){u.each(t,function(t,e){i.push(u.mixin({facet:{facet:n,value:e,count:t}},u.cloneDeep(o)))})});for(var n=1;n<r.hits.length;++n)i.push(r.hits[n]);a(i,r)}})):a([])})}):u.error("Missing 'index' key")):u.error("Missing 'source' key")}},{"../../version.js":37,"../common/parseAlgoliaClientVersion.js":31,"../common/utils.js":32}],36:[function(t,e,n){"use strict";var s=t("../../zepto.js"),i=(t("../common/dom.js").element=s,t("../common/utils.js")),l=(i.isArray=s.isArray,i.isFunction=s.isFunction,i.isObject=s.isPlainObject,i.bind=s.proxy,i.each=function(t,n){s.each(t,function(t,e){return n(e,t)})},i.map=s.map,i.mixin=s.extend,i.Event=s.Event,"aaAutocomplete"),c=t("../autocomplete/typeahead.js"),u=t("../autocomplete/event_bus.js");function r(t,r,o,a){o=i.isArray(o)?o:[].slice.call(arguments,2);var e=s(t).each(function(t,e){var n=s(e),i=new u({el:n}),i=a||new c({input:n,eventBus:i,dropdownMenuContainer:r.dropdownMenuContainer,hint:void 0===r.hint||!!r.hint,minLength:r.minLength,autoselect:r.autoselect,autoselectOnBlur:r.autoselectOnBlur,tabAutocomplete:r.tabAutocomplete,openOnFocus:r.openOnFocus,templates:r.templates,debug:r.debug,clearOnSelected:r.clearOnSelected,cssClasses:r.cssClasses,datasets:o,keyboardShortcuts:r.keyboardShortcuts,appendTo:r.appendTo,autoWidth:r.autoWidth,ariaLabel:r.ariaLabel||e.getAttribute("aria-label")});n.data(l,i)});return e.autocomplete={},i.each(["open","close","getVal","setVal","destroy","getWrapper"],function(r){e.autocomplete[r]=function(){var n,i=arguments;return e.each(function(t,e){e=s(e).data(l);n=e[r].apply(e,i)}),n}}),e}r.sources=c.sources,r.escapeHighlightedString=i.escapeHighlightedString;var o="autocomplete"in window,a=window.autocomplete;r.noConflict=function(){return o?window.autocomplete=a:delete window.autocomplete,r},e.exports=r},{"../../zepto.js":38,"../autocomplete/event_bus.js":25,"../autocomplete/typeahead.js":29,"../common/dom.js":30,"../common/utils.js":32}],37:[function(t,e,n){e.exports="0.37.1"},{}],38:[function(j,t,I){function u(t){return t._zid||(t._zid=n++)}function a(t,e,n,i){var r;return(e=h(e)).ns&&(r=F(e.ns)),(w[u(t)]||[]).filter(function(t){return t&&(!e.e||t.e==e.e)&&(!e.ns||r.test(t.ns))&&(!n||u(t.fn)===u(n))&&(!i||t.sel==i)})}function h(t){t=(""+t).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function F(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function d(t,e){return t.del&&!i&&t.e in s||!!e}function p(t){return T[t]||i&&s[t]||t}function c(r,t,e,o,a,s,l){var n=u(r),c=w[n]||(w[n]=[]);t.split(/\s/).forEach(function(t){if("ready"==t)return v(document).ready(e);var n=h(t),i=(n.fn=e,n.sel=a,n.e in T&&(e=function(t){var e=t.relatedTarget;if(!e||e!==this&&!v.contains(this,e))return n.fn.apply(this,arguments)}),(n.del=s)||e);n.proxy=function(t){if(!(t=m(t)).isImmediatePropagationStopped()){try{var e=Object.getOwnPropertyDescriptor(t,"data");e&&!e.writable||(t.data=o)}catch(t){}e=i.apply(r,t._args==y?[t]:[t].concat(t._args));return!1===e&&(t.preventDefault(),t.stopPropagation()),e}},n.i=c.length,c.push(n),"addEventListener"in r&&r.addEventListener(p(n.e),n.proxy,d(n,l))})}function f(e,t,n,i,r){var o=u(e);(t||"").split(/\s/).forEach(function(t){a(e,t,n,i).forEach(function(t){delete w[o][t.i],"removeEventListener"in e&&e.removeEventListener(p(t.e),t.proxy,d(t,r))})})}function m(i,r){if(r||!i.isDefaultPrevented){r=r||i,v.each(E,function(t,e){var n=r[t];i[t]=function(){return this[e]=l,n&&n.apply(r,arguments)},i[e]=S});try{i.timeStamp||(i.timeStamp=Date.now())}catch(t){}(r.defaultPrevented!==y?r.defaultPrevented:"returnValue"in r?!1===r.returnValue:r.getPreventDefault&&r.getPreventDefault())&&(i.isDefaultPrevented=l)}return i}function g(t){var e,n={originalEvent:t};for(e in t)C.test(e)||t[e]===y||(n[e]=t[e]);return m(n,t)}function B(t,e){var n=t[L],n=n&&A[n];if(void 0===e)return n||r(t);if(n){if(e in n)return n[e];var i=R(e);if(i in n)return n[i]}return O.call(k(t),e)}function r(t,e,n){var i=t[L]||(t[L]=++k.uuid),i=A[i]||(A[i]=N(t));return void 0!==e&&(i[R(e)]=n),i}function N(t){var n={};return k.each(t.attributes||D,function(t,e){0==e.name.indexOf("data-")&&(n[R(e.name.replace("data-",""))]=k.zepto.deserializeValue(e.value))}),n}var e,X,v,n,y,_,b,x,w,o,i,s,T,l,S,C,E,M,P,k,A,O,R,L,D;e=window,t.exports=(X=e,e=function(){var l,a,c,i,s,n,r=[],I=r.concat,o=r.filter,u=r.slice,h=X.document,d={},e={},F={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},p=/^\s*<(\w+|!)[^>]*>/,B=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,N=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,f=/^(?:body|html)$/i,U=/([A-Z])/g,z=["val","css","html","text","data","width","height","offset"],t=h.createElement("table"),m=h.createElement("tr"),g={tr:h.createElement("tbody"),tbody:t,thead:t,tfoot:t,td:m,th:m,"*":h.createElement("div")},V=/complete|loaded|interactive/,G=/^[\w-]*$/,v={},H=v.toString,y={},_=h.createElement("div"),b={tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},x=Array.isArray||function(t){return t instanceof Array};function w(t){return null==t?String(t):v[H.call(t)]||"object"}function T(t){return"function"==w(t)}function S(t){return null!=t&&t==t.window}function C(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function E(t){return"object"==w(t)}function M(t){return E(t)&&!S(t)&&Object.getPrototypeOf(t)==Object.prototype}function P(t){var e=!!t&&"length"in t&&t.length,n=c.type(t);return"function"!=n&&!S(t)&&("array"==n||0===e||"number"==typeof e&&0<e&&e-1 in t)}function k(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function A(t){return t in e?e[t]:e[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function O(t,e){return"number"!=typeof e||F[k(t)]?e:e+"px"}function W(t){return"children"in t?u.call(t.children):c.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function $(t,e){for(var n=t?t.length:0,i=0;i<n;i++)this[i]=t[i];this.length=n,this.selector=e||""}function R(t,e){return null==e?c(t):c(t).filter(e)}function L(t,e,n,i){return T(e)?e.call(t,n,i):e}function D(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function j(t,e){var n=t.className||"",i=n&&n.baseVal!==l;if(e===l)return i?n.baseVal:n;i?n.baseVal=e:t.className=e}function q(e){try{return e&&("true"==e||"false"!=e&&("null"==e?null:+e+""==e?+e:/^[\[\{]/.test(e)?c.parseJSON(e):e))}catch(t){return e}}return y.matches=function(t,e){var n,i;return!(!e||!t||1!==t.nodeType)&&((n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector)?n.call(t,e):((i=!(n=t.parentNode))&&(n=_).appendChild(t),n=~y.qsa(n,e).indexOf(t),i&&_.removeChild(t),n))},s=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},n=function(n){return o.call(n,function(t,e){return n.indexOf(t)==e})},y.fragment=function(t,e,n){var i,r,o;return(i=B.test(t)?c(h.createElement(RegExp.$1)):i)||(t.replace&&(t=t.replace(N,"<$1></$2>")),e===l&&(e=p.test(t)&&RegExp.$1),(o=g[e=e in g?e:"*"]).innerHTML=""+t,i=c.each(u.call(o.childNodes),function(){o.removeChild(this)})),M(n)&&(r=c(i),c.each(n,function(t,e){-1<z.indexOf(t)?r[t](e):r.attr(t,e)})),i},y.Z=function(t,e){return new $(t,e)},y.isZ=function(t){return t instanceof y.Z},y.init=function(t,e){var n,i;if(!t)return y.Z();if("string"==typeof t)if("<"==(t=t.trim())[0]&&p.test(t))n=y.fragment(t,RegExp.$1,e),t=null;else{if(e!==l)return c(e).find(t);n=y.qsa(h,t)}else{if(T(t))return c(h).ready(t);if(y.isZ(t))return t;if(x(t))i=t,n=o.call(i,function(t){return null!=t});else if(E(t))n=[t],t=null;else if(p.test(t))n=y.fragment(t.trim(),RegExp.$1,e),t=null;else{if(e!==l)return c(e).find(t);n=y.qsa(h,t)}}return y.Z(n,t)},(c=function(t,e){return y.init(t,e)}).extend=function(e){var n,t=u.call(arguments,1);return"boolean"==typeof e&&(n=e,e=t.shift()),t.forEach(function(t){!function t(e,n,i){for(a in n)i&&(M(n[a])||x(n[a]))?(M(n[a])&&!M(e[a])&&(e[a]={}),x(n[a])&&!x(e[a])&&(e[a]=[]),t(e[a],n[a],i)):n[a]!==l&&(e[a]=n[a])}(e,t,n)}),e},y.qsa=function(t,e){var n,i="#"==e[0],r=!i&&"."==e[0],o=i||r?e.slice(1):e,a=G.test(o);return t.getElementById&&a&&i?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:u.call(a&&!i&&t.getElementsByClassName?r?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},c.contains=h.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e=e&&e.parentNode;)if(e===t)return!0;return!1},c.type=w,c.isFunction=T,c.isWindow=S,c.isArray=x,c.isPlainObject=M,c.isEmptyObject=function(t){for(var e in t)return!1;return!0},c.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},c.inArray=function(t,e,n){return r.indexOf.call(e,t,n)},c.camelCase=s,c.trim=function(t){return null==t?"":String.prototype.trim.call(t)},c.uuid=0,c.support={},c.expr={},c.noop=function(){},c.map=function(t,e){var n,i,r,o,a=[];if(P(t))for(i=0;i<t.length;i++)null!=(n=e(t[i],i))&&a.push(n);else for(r in t)null!=(n=e(t[r],r))&&a.push(n);return 0<(o=a).length?c.fn.concat.apply([],o):o},c.each=function(t,e){var n,i;if(P(t)){for(n=0;n<t.length;n++)if(!1===e.call(t[n],n,t[n]))return t}else for(i in t)if(!1===e.call(t[i],i,t[i]))return t;return t},c.grep=function(t,e){return o.call(t,e)},X.JSON&&(c.parseJSON=JSON.parse),c.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){v["[object "+e+"]"]=e.toLowerCase()}),c.fn={constructor:y.Z,length:0,forEach:r.forEach,reduce:r.reduce,push:r.push,sort:r.sort,splice:r.splice,indexOf:r.indexOf,concat:function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=y.isZ(t=arguments[n])?t.toArray():t;return I.apply(y.isZ(this)?this.toArray():this,e)},map:function(n){return c(c.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return c(u.apply(this,arguments))},ready:function(t){return V.test(h.readyState)&&h.body?t(c):h.addEventListener("DOMContentLoaded",function(){t(c)},!1),this},get:function(t){return t===l?u.call(this):this[0<=t?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(n){return r.every.call(this,function(t,e){return!1!==n.call(t,e,t)}),this},filter:function(e){return T(e)?this.not(this.not(e)):c(o.call(this,function(t){return y.matches(t,e)}))},add:function(t,e){return c(n(this.concat(c(t,e))))},is:function(t){return 0<this.length&&y.matches(this[0],t)},not:function(e){var n,i=[];return T(e)&&e.call!==l?this.each(function(t){e.call(this,t)||i.push(this)}):(n="string"==typeof e?this.filter(e):P(e)&&T(e.item)?u.call(e):c(e),this.forEach(function(t){n.indexOf(t)<0&&i.push(t)})),c(i)},has:function(t){return this.filter(function(){return E(t)?c.contains(this,t):c(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!E(t)?t:c(t)},last:function(){var t=this[this.length-1];return t&&!E(t)?t:c(t)},find:function(t){var n=this,e=t?"object"==typeof t?c(t).filter(function(){var e=this;return r.some.call(n,function(t){return c.contains(t,e)})}):1==this.length?c(y.qsa(this[0],t)):this.map(function(){return y.qsa(this,t)}):c();return e},closest:function(n,i){var r=[],o="object"==typeof n&&c(n);return this.each(function(t,e){for(;e&&!(o?0<=o.indexOf(e):y.matches(e,n));)e=e!==i&&!C(e)&&e.parentNode;e&&r.indexOf(e)<0&&r.push(e)}),c(r)},parents:function(t){for(var e=[],n=this;0<n.length;)n=c.map(n,function(t){if((t=t.parentNode)&&!C(t)&&e.indexOf(t)<0)return e.push(t),t});return R(e,t)},parent:function(t){return R(n(this.pluck("parentNode")),t)},children:function(t){return R(this.map(function(){return W(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||u.call(this.childNodes)})},siblings:function(t){return R(this.map(function(t,e){return o.call(W(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(e){return c.map(this,function(t){return t[e]})},show:function(){return this.each(function(){var t,e,n;"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=(t=this.nodeName,d[t]||(e=h.createElement(t),h.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),d[t]=n="none"==n?"block":n),d[t]))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(e){var n,i,r=T(e);return this[0]&&!r&&(n=c(e).get(0),i=n.parentNode||1<this.length),this.each(function(t){c(this).wrapAll(r?e.call(this,t):i?n.cloneNode(!0):n)})},wrapAll:function(t){if(this[0]){var e;for(c(this[0]).before(t=c(t));(e=t.children()).length;)t=e.first();c(t).append(this)}return this},wrapInner:function(i){var r=T(i);return this.each(function(t){var e=c(this),n=e.contents(),t=r?i.call(this,t):i;n.length?n.wrapAll(t):e.append(t)})},unwrap:function(){return this.parent().each(function(){c(this).replaceWith(c(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(e){return this.each(function(){var t=c(this);(e===l?"none"==t.css("display"):e)?t.show():t.hide()})},prev:function(t){return c(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return c(this.pluck("nextElementSibling")).filter(t||"*")},html:function(n){return 0 in arguments?this.each(function(t){var e=this.innerHTML;c(this).empty().append(L(this,n,t,e))}):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each(function(t){t=L(this,e,t,this.textContent);this.textContent=null==t?"":""+t}):0 in this?this.pluck("textContent").join(""):null},attr:function(e,n){var t;return"string"!=typeof e||1 in arguments?this.each(function(t){if(1===this.nodeType)if(E(e))for(a in e)D(this,a,e[a]);else D(this,e,L(this,n,t,this.getAttribute(e)))}):0 in this&&1==this[0].nodeType&&null!=(t=this[0].getAttribute(e))?t:l},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){D(this,t)},this)})},prop:function(e,n){return e=b[e]||e,1 in arguments?this.each(function(t){this[e]=L(this,n,t,this[e])}):this[0]&&this[0][e]},removeProp:function(t){return t=b[t]||t,this.each(function(){delete this[t]})},data:function(t,e){var n="data-"+t.replace(U,"-$1").toLowerCase(),n=1 in arguments?this.attr(n,e):this.attr(n);return null!==n?q(n):l},val:function(e){return 0 in arguments?(null==e&&(e=""),this.each(function(t){this.value=L(this,e,t,this.value)})):this[0]&&(this[0].multiple?c(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(i){var t;return i?this.each(function(t){var e=c(this),t=L(this,i,t,e.offset()),n=e.offsetParent().offset(),t={top:t.top-n.top,left:t.left-n.left};"static"==e.css("position")&&(t.position="relative"),e.css(t)}):this.length?h.documentElement===this[0]||c.contains(h.documentElement,this[0])?{left:(t=this[0].getBoundingClientRect()).left+X.pageXOffset,top:t.top+X.pageYOffset,width:Math.round(t.width),height:Math.round(t.height)}:{top:0,left:0}:null},css:function(t,e){if(arguments.length<2){var n,i,r=this[0];if("string"==typeof t)return r?r.style[s(t)]||getComputedStyle(r,"").getPropertyValue(t):void 0;if(x(t))return r?(n={},i=getComputedStyle(r,""),c.each(t,function(t,e){n[e]=r.style[s(e)]||i.getPropertyValue(e)}),n):void 0}var o="";if("string"==w(t))e||0===e?o=k(t)+":"+O(t,e):this.each(function(){this.style.removeProperty(k(t))});else for(a in t)t[a]||0===t[a]?o+=k(a)+":"+O(a,t[a])+";":this.each(function(){this.style.removeProperty(k(a))});return this.each(function(){this.style.cssText+=";"+o})},index:function(t){return t?this.indexOf(c(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&r.some.call(this,function(t){return this.test(j(t))},A(t))},addClass:function(n){return n?this.each(function(t){var e;"className"in this&&(i=[],e=j(this),L(this,n,t,e).split(/\s+/g).forEach(function(t){c(this).hasClass(t)||i.push(t)},this),i.length)&&j(this,e+(e?" ":"")+i.join(" "))}):this},removeClass:function(e){return this.each(function(t){if("className"in this){if(e===l)return j(this,"");i=j(this),L(this,e,t,i).split(/\s+/g).forEach(function(t){i=i.replace(A(t)," ")}),j(this,i.trim())}})},toggleClass:function(n,i){return n?this.each(function(t){var e=c(this);L(this,n,t,j(this)).split(/\s+/g).forEach(function(t){(i===l?!e.hasClass(t):i)?e.addClass(t):e.removeClass(t)})}):this},scrollTop:function(t){var e;if(this.length)return e="scrollTop"in this[0],t===l?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})},scrollLeft:function(t){var e;if(this.length)return e="scrollLeft"in this[0],t===l?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})},position:function(){var t,e,n,i;if(this.length)return t=this[0],e=this.offsetParent(),n=this.offset(),i=f.test(e[0].nodeName)?{top:0,left:0}:e.offset(),n.top-=parseFloat(c(t).css("margin-top"))||0,n.left-=parseFloat(c(t).css("margin-left"))||0,i.top+=parseFloat(c(e[0]).css("border-top-width"))||0,i.left+=parseFloat(c(e[0]).css("border-left-width"))||0,{top:n.top-i.top,left:n.left-i.left}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||h.body;t&&!f.test(t.nodeName)&&"static"==c(t).css("position");)t=t.offsetParent;return t})}},c.fn.detach=c.fn.remove,["width","height"].forEach(function(i){var r=i.replace(/./,function(t){return t[0].toUpperCase()});c.fn[i]=function(e){var t,n=this[0];return e===l?S(n)?n["inner"+r]:C(n)?n.documentElement["scroll"+r]:(t=this.offset())&&t[i]:this.each(function(t){(n=c(this)).css(i,L(this,e,t,n[i]()))})}}),["after","prepend","before","append"].forEach(function(e,a){var s=a%2;c.fn[e]=function(){var n,i,r=c.map(arguments,function(t){var e=[];return"array"==(n=w(t))?(t.forEach(function(t){return t.nodeType!==l?e.push(t):c.zepto.isZ(t)?e=e.concat(t.get()):void(e=e.concat(y.fragment(t)))}),e):"object"==n||null==t?t:y.fragment(t)}),o=1<this.length;return r.length<1?this:this.each(function(t,e){i=s?e:e.parentNode,e=0==a?e.nextSibling:1==a?e.firstChild:2==a?e:null;var n=c.contains(h.documentElement,i);r.forEach(function(t){if(o)t=t.cloneNode(!0);else if(!i)return c(t).remove();i.insertBefore(t,e),n&&function t(e,n){n(e);for(var i=0,r=e.childNodes.length;i<r;i++)t(e.childNodes[i],n)}(t,function(t){var e;null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src||(e=t.ownerDocument?t.ownerDocument.defaultView:X).eval.call(e,t.innerHTML)})})})},c.fn[s?e+"To":"insert"+(a?"Before":"After")]=function(t){return c(t)[e](this),this}}),y.Z.prototype=$.prototype=c.fn,y.uniq=n,y.deserializeValue=q,c.zepto=y,c}(),v=e,n=1,_=Array.prototype.slice,b=v.isFunction,x=function(t){return"string"==typeof t},w={},o={},i="onfocusin"in X,s={focus:"focusin",blur:"focusout"},T={mouseenter:"mouseover",mouseleave:"mouseout"},o.click=o.mousedown=o.mouseup=o.mousemove="MouseEvents",v.event={add:c,remove:f},v.proxy=function(t,e){var n,i=2 in arguments&&_.call(arguments,2);if(b(t))return(n=function(){return t.apply(e,i?i.concat(_.call(arguments)):arguments)})._zid=u(t),n;if(x(e))return i?(i.unshift(t[e],t),v.proxy.apply(null,i)):v.proxy(t[e],t);throw new TypeError("expected function")},v.fn.bind=function(t,e,n){return this.on(t,e,n)},v.fn.unbind=function(t,e){return this.off(t,e)},v.fn.one=function(t,e,n,i){return this.on(t,e,n,i,1)},l=function(){return!0},S=function(){return!1},C=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,E={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"},v.fn.delegate=function(t,e,n){return this.on(e,t,n)},v.fn.undelegate=function(t,e,n){return this.off(e,t,n)},v.fn.live=function(t,e){return v(document.body).delegate(this.selector,t,e),this},v.fn.die=function(t,e){return v(document.body).undelegate(this.selector,t,e),this},v.fn.on=function(e,r,n,o,a){var s,l,i=this;return e&&!x(e)?(v.each(e,function(t,e){i.on(t,r,n,e,a)}),i):(x(r)||b(o)||!1===o||(o=n,n=r,r=y),o!==y&&!1!==n||(o=n,n=y),!1===o&&(o=S),i.each(function(t,i){a&&(s=function(t){return f(i,t.type,o),o.apply(this,arguments)}),c(i,e,o,n,r,(l=r?function(t){var e,n=v(t.target).closest(r,i).get(0);if(n&&n!==i)return e=v.extend(g(t),{currentTarget:n,liveFired:i}),(s||o).apply(n,[e].concat(_.call(arguments,1)))}:l)||s)}))},v.fn.off=function(t,n,e){var i=this;return t&&!x(t)?(v.each(t,function(t,e){i.off(t,n,e)}),i):(x(n)||b(e)||!1===e||(e=n,n=y),!1===e&&(e=S),i.each(function(){f(this,t,e,n)}))},v.fn.trigger=function(t,e){return(t=x(t)||v.isPlainObject(t)?v.Event(t):m(t))._args=e,this.each(function(){t.type in s&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):v(this).triggerHandler(t,e)})},v.fn.triggerHandler=function(n,i){var r,o;return this.each(function(t,e){(r=g(x(n)?v.Event(n):n))._args=i,r.target=e,v.each(a(e,n.type||n),function(t,e){if(o=e.proxy(r),r.isImmediatePropagationStopped())return!1})}),o},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(e){v.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}}),v.Event=function(t,e){x(t)||(t=(e=t).type);var n=document.createEvent(o[t]||"Events"),i=!0;if(e)for(var r in e)"bubbles"==r?i=!!e[r]:n[r]=e[r];return n.initEvent(t,i,!0),m(n)},M=[],e.fn.remove=function(){return this.each(function(){this.parentNode&&("IMG"===this.tagName&&(M.push(this),this.src="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",P&&clearTimeout(P),P=setTimeout(function(){M=[]},6e4)),this.parentNode.removeChild(this))})},A={},O=(k=e).fn.data,R=k.camelCase,L=k.expando="Zepto"+ +new Date,D=[],k.fn.data=function(e,t){return void 0===t?k.isPlainObject(e)?this.each(function(t,n){k.each(e,function(t,e){r(n,t,e)})}):0 in this?B(this[0],e):void 0:this.each(function(){r(this,e,t)})},k.data=function(t,e,n){return k(t).data(e,n)},k.hasData=function(t){t=t[L],t=t&&A[t];return!!t&&!k.isEmptyObject(t)},k.fn.removeData=function(n){return"string"==typeof n&&(n=n.split(/\s+/)),this.each(function(){var t=this[L],e=t&&A[t];e&&k.each(n||e,function(t){delete e[n?R(this):t]})})},["remove","empty"].forEach(function(e){var n=k.fn[e];k.fn[e]=function(){var t=this.find("*");return(t="remove"===e?t.add(this):t).removeData(),n.call(this)}}),e)},{}],39:[function(n,t,e){!function(t){!function(){"use strict";if(n("core-js/shim"),n("regenerator-runtime/runtime"),n("core-js/fn/regexp/escape"),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;function e(t,e,n){t[e]||Object.defineProperty(t,e,{writable:!0,configurable:!0,value:n})}e(String.prototype,"padLeft","".padStart),e(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&e(Array,t,Function.call.bind([][t]))})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"core-js/fn/regexp/escape":47,"core-js/shim":375,"regenerator-runtime/runtime":40}],40:[function(t,P,e){!function(t){!function(){!function(t){"use strict";var l,c,u,h,d,p,e,n,i=Object.prototype,f=i.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag",r="object"==typeof P,m=t.regeneratorRuntime;function g(t,e,n,i){var r,o,a,s,e=e&&e.prototype instanceof y?e:y,e=Object.create(e.prototype),i=new C(i||[]);return e._invoke=(r=t,o=n,a=i,s=c,function(t,e){if(s===h)throw new Error("Generator is already running");if(s===d){if("throw"===t)throw e;return M()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var i=e.iterator[n.method];if(i===l){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=l,t(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}i=v(i,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;i=i.arg;if(!i)return n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p;{if(!i.done)return i;n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=l)}n.delegate=null;return p}(n,a);if(n){if(n===p)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(s===c)throw s=d,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s=h;n=v(r,o,a);if("normal"===n.type){if(s=a.done?d:u,n.arg!==p)return{value:n.arg,done:a.done}}else"throw"===n.type&&(s=d,a.method="throw",a.arg=n.arg)}}),e}function v(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function y(){}function _(){}function b(){}function x(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function w(o){function a(t,e,n,i){var r,t=v(o[t],o,e);if("throw"!==t.type)return(e=(r=t.arg).value)&&"object"==typeof e&&f.call(e,"__await")?Promise.resolve(e.__await).then(function(t){a("next",t,n,i)},function(t){a("throw",t,n,i)}):Promise.resolve(e).then(function(t){r.value=t,n(r)},i);i(t.arg)}var e;"object"==typeof t.process&&t.process.domain&&(a=t.process.domain.bind(a)),this._invoke=function(n,i){function t(){return new Promise(function(t,e){a(n,i,t,e)})}return e=e?e.then(t,t):t()}}function T(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function E(e){if(e){var n,t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(f.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=l,t.done=!0,t}).next=t}return{next:M}}function M(){return{value:l,done:!0}}m?r&&(P.exports=m):((m=t.regeneratorRuntime=r?P.exports:{}).wrap=g,c="suspendedStart",u="suspendedYield",h="executing",d="completed",p={},(r={})[o]=function(){return this},e=(e=Object.getPrototypeOf)&&e(e(E([]))),e&&e!==i&&f.call(e,o)&&(r=e),n=b.prototype=y.prototype=Object.create(r),(_.prototype=n.constructor=b).constructor=_,b[s]=_.displayName="GeneratorFunction",m.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===_||"GeneratorFunction"===(t.displayName||t.name))},m.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,s in t||(t[s]="GeneratorFunction")),t.prototype=Object.create(n),t},m.awrap=function(t){return{__await:t}},x(w.prototype),w.prototype[a]=function(){return this},m.AsyncIterator=w,m.async=function(t,e,n,i){var r=new w(g(t,e,n,i));return m.isGeneratorFunction(e)?r:r.next().then(function(t){return t.done?t.value:r.next()})},x(n),n[s]="Generator",n[o]=function(){return this},n.toString=function(){return"[object Generator]"},m.keys=function(n){var t,i=[];for(t in n)i.push(t);return i.reverse(),function t(){for(;i.length;){var e=i.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},m.values=E,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=l,this.done=!1,this.delegate=null,this.method="next",this.arg=l,this.tryEntries.forEach(S),!t)for(var e in this)"t"===e.charAt(0)&&f.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=l)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var i=this;function t(t,e){return o.type="throw",o.arg=n,i.next=t,e&&(i.method="next",i.arg=l),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e],o=r.completion;if("root"===r.tryLoc)return t("end");if(r.tryLoc<=this.prev){var a=f.call(r,"catchLoc"),s=f.call(r,"finallyLoc");if(a&&s){if(this.prev<r.catchLoc)return t(r.catchLoc,!0);if(this.prev<r.finallyLoc)return t(r.finallyLoc)}else if(a){if(this.prev<r.catchLoc)return t(r.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return t(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&f.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}var o=(r=r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc?null:r)?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,p):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),p}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,i,r=this.tryEntries[e];if(r.tryLoc===t)return"throw"===(n=r.completion).type&&(i=n.arg,S(r)),i}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=l),p}})}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],41:[function(t,e,n){var i,r;i=this,r=function(t,e){"use strict";var n=t.ChildViewContainer;return t.ChildViewContainer=function(i){function t(t){this._views={},this._indexByModel={},this._indexByCustom={},this._updateLength(),i.each(t,this.add,this)}i.extend(t.prototype,{add:function(t,e){var n=t.cid;return(this._views[n]=t).model&&(this._indexByModel[t.model.cid]=n),e&&(this._indexByCustom[e]=n),this._updateLength(),this},findByModel:function(t){return this.findByModelCid(t.cid)},findByModelCid:function(t){t=this._indexByModel[t];return this.findByCid(t)},findByCustom:function(t){t=this._indexByCustom[t];return this.findByCid(t)},findByIndex:function(t){return i.values(this._views)[t]},findByCid:function(t){return this._views[t]},remove:function(t){var n=t.cid;return t.model&&delete this._indexByModel[t.model.cid],i.any(this._indexByCustom,function(t,e){if(t===n)return delete this._indexByCustom[e],!0},this),delete this._views[n],this._updateLength(),this},call:function(t){this.apply(t,i.tail(arguments))},apply:function(e,n){i.each(this._views,function(t){i.isFunction(t[e])&&t[e].apply(t,n||[])})},_updateLength:function(){this.length=i.size(this._views)}});return i.each(["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck","reduce"],function(e){t.prototype[e]=function(){var t=[i.values(this._views)].concat(i.toArray(arguments));return i[e].apply(i,t)}}),t}(e),t.ChildViewContainer.VERSION="0.1.11",t.ChildViewContainer.noConflict=function(){return t.ChildViewContainer=n,this},t.ChildViewContainer},"function"==typeof define&&define.amd?define(["backbone","underscore"],r):void 0!==n?(n=t("backbone"),t=t("underscore"),e.exports=r(n,t)):r(i.Backbone,i._)},{backbone:44,underscore:576}],42:[function(t,e,n){var i,r,o;i=this,r=function(t,o,l){"use strict";var a,s,e=t.Marionette,n=t.Mn,c=o.Marionette={VERSION:"2.4.4",noConflict:function(){return t.Marionette=e,t.Mn=n,this}},i=(c.Deferred=o.$.Deferred,c.FEATURES={},c.isEnabled=function(t){return!!c.FEATURES[t]},c.extend=o.Model.extend,c.isNodeAttached=function(t){return o.$.contains(document.documentElement,t)},c.mergeOptions=function(t,e){t&&l.extend(this,l.pick(t,e))},c.getOption=function(t,e){if(t&&e)return(t.options&&void 0!==t.options[e]?t.options:t)[e]},c.proxyGetOption=function(t){return c.getOption(this,t)},c._getValue=function(t,e,n){return t=l.isFunction(t)?n?t.apply(e,n):t.call(e):t},c.normalizeMethods=function(t){return l.reduce(t,function(t,e,n){return(e=l.isFunction(e)?e:this[e])&&(t[n]=e),t},{},this)},c.normalizeUIString=function(t,e){return t.replace(/@ui\.[a-zA-Z_$0-9]*/g,function(t){return e[t.slice(4)]})},c.normalizeUIKeys=function(t,i){return l.reduce(t,function(t,e,n){return t[c.normalizeUIString(n,i)]=e,t},{})},c.normalizeUIValues=function(e,i,r){return l.each(e,function(n,t){l.isString(n)?e[t]=c.normalizeUIString(n,i):l.isObject(n)&&l.isArray(r)&&(l.extend(n,c.normalizeUIValues(l.pick(n,r),i)),l.each(r,function(t){var e=n[t];l.isString(e)&&(n[t]=c.normalizeUIString(e,i))}))}),e},c.actAsCollection=function(t,n){l.each(["forEach","each","map","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","toArray","first","initial","rest","last","without","isEmpty","pluck"],function(e){t[e]=function(){var t=[l.values(l.result(this,n))].concat(l.toArray(arguments));return l[e].apply(l,t)}})},c.deprecate=function(t,e){l.isObject(t)&&(t=t.prev+" is going to be removed in the future. Please use "+t.next+" instead."+(t.url?" See: "+t.url:"")),void 0!==e&&e||i._cache[t]||(i._warn("Deprecation warning: "+t),i._cache[t]=!0)});function u(t,e,n){return n.toUpperCase()}function r(n,i,r,t){t=t.split(/\s+/);l.each(t,function(t){var e=n[t];if(!e)throw new s.Error('Method "'+t+'" was configured as an event handler, but does not exist.');n.listenTo(i,r,e)})}function h(t,e,n,i){t.listenTo(e,n,i)}function d(e,n,i,t){t=t.split(/\s+/);l.each(t,function(t){t=e[t];e.stopListening(n,i,t)})}function p(t,e,n,i){t.stopListening(e,n,i)}function f(n,i,t,r,o){if(i&&t){if(!l.isObject(t))throw new s.Error({message:"Bindings must be an object or function.",url:"marionette.functions.html#marionettebindentityevents"});t=s._getValue(t,n),l.each(t,function(t,e){(l.isFunction(t)?r:o)(n,i,e,t)})}}i._warn="undefined"!=typeof console&&(console.warn||console.log)||function(){},i._cache={},c._triggerMethod=(a=/(^|:)(\w)/gi,function(t,e,n){var i,r=arguments.length<3,o=t["on"+(e=r?(n=e)[0]:e).replace(a,u)];return l.isFunction(o)&&(i=o.apply(t,r?l.rest(n):n)),l.isFunction(t.trigger)&&(1<r+n.length?t.trigger.apply(t,r?n:[e].concat(l.drop(n,0))):t.trigger(e)),i}),c.triggerMethod=function(t){return c._triggerMethod(this,arguments)},c.triggerMethodOn=function(t){return(l.isFunction(t.triggerMethod)?t:c).triggerMethod.apply(t,l.rest(arguments))},c.MonitorDOMRefresh=function(t){function e(){t._isShown&&t._isRendered&&c.isNodeAttached(t.el)&&c.triggerMethodOn(t,"dom:refresh",t)}t._isDomRefreshMonitored||(t._isDomRefreshMonitored=!0,t.on({show:function(){t._isShown=!0,e()},render:function(){t._isRendered=!0,e()}}))},(s=c).bindEntityEvents=function(t,e,n){f(t,e,n,h,r)},s.unbindEntityEvents=function(t,e,n){f(t,e,n,p,d)},s.proxyBindEntityEvents=function(t,e){return s.bindEntityEvents(this,t,e)},s.proxyUnbindEntityEvents=function(t,e){return s.unbindEntityEvents(this,t,e)};var m,g,v,y,_=["description","fileName","lineNumber","name","message","number"];function b(t,e){return g.isObject(t.behaviors)?(e=b.parseBehaviors(t,e||g.result(t,"behaviors")),b.wrap(t,e,g.keys(y)),e):{}}function x(t,e){this._view=t,this._behaviors=e,this._triggers={}}function w(t){return t._uiBindings||t.ui}return c.Error=c.extend.call(Error,{urlRoot:"http://marionettejs.com/docs/v"+c.VERSION+"/",constructor:function(t,e){l.isObject(t)?t=(e=t).message:e=e||{};t=Error.call(this,t);l.extend(this,l.pick(t,_),l.pick(e,_)),this.captureStackTrace(),e.url&&(this.url=this.urlRoot+e.url)},captureStackTrace:function(){Error.captureStackTrace&&Error.captureStackTrace(this,c.Error)},toString:function(){return this.name+": "+this.message+(this.url?" See: "+this.url:"")}}),c.Error.extend=c.extend,c.Callbacks=function(){this._deferred=c.Deferred(),this._callbacks=[]},l.extend(c.Callbacks.prototype,{add:function(e,n){var t=l.result(this._deferred,"promise");this._callbacks.push({cb:e,ctx:n}),t.then(function(t){n&&(t.context=n),e.call(t.context,t.options)})},run:function(t,e){this._deferred.resolve({options:t,context:e})},reset:function(){var t=this._callbacks;this._deferred=c.Deferred(),this._callbacks=[],l.each(t,function(t){this.add(t.cb,t.ctx)},this)}}),c.Controller=function(t){this.options=t||{},l.isFunction(this.initialize)&&this.initialize(this.options)},c.Controller.extend=c.extend,l.extend(c.Controller.prototype,o.Events,{destroy:function(){return c._triggerMethod(this,"before:destroy",arguments),c._triggerMethod(this,"destroy",arguments),this.stopListening(),this.off(),this},triggerMethod:c.triggerMethod,mergeOptions:c.mergeOptions,getOption:c.proxyGetOption}),c.Object=function(t){this.options=l.extend({},l.result(this,"options"),t),this.initialize.apply(this,arguments)},c.Object.extend=c.extend,l.extend(c.Object.prototype,o.Events,{initialize:function(){},destroy:function(t){return this.triggerMethod("before:destroy",t=t||{}),this.triggerMethod("destroy",t),this.stopListening(),this},triggerMethod:c.triggerMethod,mergeOptions:c.mergeOptions,getOption:c.proxyGetOption,bindEntityEvents:c.proxyBindEntityEvents,unbindEntityEvents:c.proxyUnbindEntityEvents}),c.Region=c.Object.extend({constructor:function(t){if(this.options=t||{},this.el=this.getOption("el"),this.el=this.el instanceof o.$?this.el[0]:this.el,!this.el)throw new c.Error({name:"NoElError",message:'An "el" must be specified for a region.'});this.$el=this.getEl(this.el),c.Object.call(this,t)},show:function(t,e){var n,i,r,o;if(this._ensureElement())return this._ensureViewIsIntact(t),c.MonitorDOMRefresh(t),r=t!==this.currentView,i=!!(o=e||{}).preventDestroy,n=!!o.forceShow,i=r&&!i,r=r||n,(n=!!this.currentView)&&this.triggerMethod("before:swapOut",this.currentView,this,e),this.currentView&&delete this.currentView._parent,i?this.empty():n&&r&&this.currentView.off("destroy",this.empty,this),r&&(t.once("destroy",this.empty,this),(t._parent=this)._renderView(t),n&&this.triggerMethod("before:swap",t,this,e),this.triggerMethod("before:show",t,this,e),c.triggerMethodOn(t,"before:show",t,this,e),n&&this.triggerMethod("swapOut",this.currentView,this,e),i=c.isNodeAttached(this.el),r=[],o=l.extend({triggerBeforeAttach:this.triggerBeforeAttach,triggerAttach:this.triggerAttach},o),i&&o.triggerBeforeAttach&&(r=this._displayedViews(t),this._triggerAttach(r,"before:")),this.attachHtml(t),this.currentView=t,i&&o.triggerAttach&&(r=this._displayedViews(t),this._triggerAttach(r)),n&&this.triggerMethod("swap",t,this,e),this.triggerMethod("show",t,this,e),c.triggerMethodOn(t,"show",t,this,e)),this},triggerBeforeAttach:!0,triggerAttach:!0,_triggerAttach:function(t,e){var n=(e||"")+"attach";l.each(t,function(t){c.triggerMethodOn(t,n,t,this)},this)},_displayedViews:function(t){return l.union([t],l.result(t,"_getNestedViews")||[])},_renderView:function(t){t.supportsRenderLifecycle||c.triggerMethodOn(t,"before:render",t),t.render(),t.supportsRenderLifecycle||c.triggerMethodOn(t,"render",t)},_ensureElement:function(){if(l.isObject(this.el)||(this.$el=this.getEl(this.el),this.el=this.$el[0]),this.$el&&0!==this.$el.length)return!0;if(this.getOption("allowMissingEl"))return!1;throw new c.Error('An "el" '+this.$el.selector+" must exist in DOM")},_ensureViewIsIntact:function(t){if(!t)throw new c.Error({name:"ViewNotValid",message:"The view passed is undefined and therefore invalid. You must pass a view instance to show."});if(t.isDestroyed)throw new c.Error({name:"ViewDestroyedError",message:'View (cid: "'+t.cid+'") has already been destroyed and cannot be used.'})},getEl:function(t){return o.$(t,c._getValue(this.options.parentEl,this))},attachHtml:function(t){this.$el.contents().detach(),this.el.appendChild(t.el)},empty:function(t){var e=this.currentView,t=!!(t||{}).preventDestroy;return e&&(e.off("destroy",this.empty,this),this.triggerMethod("before:empty",e),t||this._destroyView(),this.triggerMethod("empty",e),delete this.currentView,t)&&this.$el.contents().detach(),this},_destroyView:function(){var t=this.currentView;t.isDestroyed||(t.supportsDestroyLifecycle||c.triggerMethodOn(t,"before:destroy",t),t.destroy?t.destroy():(t.remove(),t.isDestroyed=!0),t.supportsDestroyLifecycle)||c.triggerMethodOn(t,"destroy",t)},attachView:function(t){return this.currentView&&delete this.currentView._parent,(t._parent=this).currentView=t,this},hasView:function(){return!!this.currentView},reset:function(){return this.empty(),this.$el&&(this.el=this.$el.selector),delete this.$el,this}},{buildRegion:function(t,e){if(l.isString(t))return this._buildRegionFromSelector(t,e);if(t.selector||t.el||t.regionClass)return this._buildRegionFromObject(t,e);if(l.isFunction(t))return this._buildRegionFromRegionClass(t);throw new c.Error({message:"Improper region configuration type.",url:"marionette.region.html#region-configuration-types"})},_buildRegionFromSelector:function(t,e){return new e({el:t})},_buildRegionFromObject:function(t,e){var e=t.regionClass||e,n=l.omit(t,"selector","regionClass");return t.selector&&!n.el&&(n.el=t.selector),new e(n)},_buildRegionFromRegionClass:function(t){return new t}}),c.RegionManager=c.Controller.extend({constructor:function(t){this._regions={},this.length=0,c.Controller.call(this,t),this.addRegions(this.getOption("regions"))},addRegions:function(t,i){return t=c._getValue(t,this,arguments),l.reduce(t,function(t,e,n){return(e=l.isString(e)?{selector:e}:e).selector&&(e=l.defaults({},e,i)),t[n]=this.addRegion(n,e),t},{},this)},addRegion:function(t,e){e=e instanceof c.Region?e:c.Region.buildRegion(e,c.Region);return this.triggerMethod("before:add:region",t,e),(e._parent=this)._store(t,e),this.triggerMethod("add:region",t,e),e},get:function(t){return this._regions[t]},getRegions:function(){return l.clone(this._regions)},removeRegion:function(t){var e=this._regions[t];return this._remove(t,e),e},removeRegions:function(){var t=this.getRegions();return l.each(this._regions,function(t,e){this._remove(e,t)},this),t},emptyRegions:function(){var t=this.getRegions();return l.invoke(t,"empty"),t},destroy:function(){return this.removeRegions(),c.Controller.prototype.destroy.apply(this,arguments)},_store:function(t,e){this._regions[t]||this.length++,this._regions[t]=e},_remove:function(t,e){this.triggerMethod("before:remove:region",t,e),e.empty(),e.stopListening(),delete e._parent,delete this._regions[t],this.length--,this.triggerMethod("remove:region",t,e)}}),c.actAsCollection(c.RegionManager.prototype,"_regions"),c.TemplateCache=function(t){this.templateId=t},l.extend(c.TemplateCache,{templateCaches:{},get:function(t,e){var n=this.templateCaches[t];return n||(n=new c.TemplateCache(t),this.templateCaches[t]=n),n.load(e)},clear:function(){var t,e=l.toArray(arguments),n=e.length;if(0<n)for(t=0;t<n;t++)delete this.templateCaches[e[t]];else this.templateCaches={}}}),l.extend(c.TemplateCache.prototype,{load:function(t){var e;return this.compiledTemplate||(e=this.loadTemplate(this.templateId,t),this.compiledTemplate=this.compileTemplate(e,t)),this.compiledTemplate},loadTemplate:function(t,e){var n=o.$(t);if(n.length)return n.html();throw new c.Error({name:"NoTemplateError",message:'Could not find template: "'+t+'"'})},compileTemplate:function(t,e){return l.template(t,e)}}),c.Renderer={render:function(t,e){if(t)return(l.isFunction(t)?t:c.TemplateCache.get(t))(e);throw new c.Error({name:"TemplateNotFoundError",message:"Cannot render the template since its false, null or undefined."})}},c.View=o.View.extend({isDestroyed:!1,supportsRenderLifecycle:!0,supportsDestroyLifecycle:!0,constructor:function(t){this.render=l.bind(this.render,this),t=c._getValue(t,this),this.options=l.extend({},l.result(this,"options"),t),this._behaviors=c.Behaviors(this),o.View.call(this,this.options),c.MonitorDOMRefresh(this)},getTemplate:function(){return this.getOption("template")},serializeModel:function(t){return t.toJSON.apply(t,l.rest(arguments))},mixinTemplateHelpers:function(t){t=t||{};var e=this.getOption("templateHelpers"),e=c._getValue(e,this);return l.extend(t,e)},normalizeUIKeys:function(t){var e=l.result(this,"_uiBindings");return c.normalizeUIKeys(t,e||l.result(this,"ui"))},normalizeUIValues:function(t,e){var n=l.result(this,"ui"),i=l.result(this,"_uiBindings");return c.normalizeUIValues(t,i||n,e)},configureTriggers:function(){var t;if(this.triggers)return t=this.normalizeUIKeys(l.result(this,"triggers")),l.reduce(t,function(t,e,n){return t[n]=this._buildViewTrigger(e),t},{},this)},delegateEvents:function(t){return this._delegateDOMEvents(t),this.bindEntityEvents(this.model,this.getOption("modelEvents")),this.bindEntityEvents(this.collection,this.getOption("collectionEvents")),l.each(this._behaviors,function(t){t.bindEntityEvents(this.model,t.getOption("modelEvents")),t.bindEntityEvents(this.collection,t.getOption("collectionEvents"))},this),this},_delegateDOMEvents:function(t){var e=c._getValue(t||this.events,this),e=this.normalizeUIKeys(e),t=(l.isUndefined(t)&&(this.events=e),{}),n=l.result(this,"behaviorEvents")||{},i=this.configureTriggers(),r=l.result(this,"behaviorTriggers")||{};l.extend(t,n,e,i,r),o.View.prototype.delegateEvents.call(this,t)},undelegateEvents:function(){return o.View.prototype.undelegateEvents.apply(this,arguments),this.unbindEntityEvents(this.model,this.getOption("modelEvents")),this.unbindEntityEvents(this.collection,this.getOption("collectionEvents")),l.each(this._behaviors,function(t){t.unbindEntityEvents(this.model,t.getOption("modelEvents")),t.unbindEntityEvents(this.collection,t.getOption("collectionEvents"))},this),this},_ensureViewIsIntact:function(){if(this.isDestroyed)throw new c.Error({name:"ViewDestroyedError",message:'View (cid: "'+this.cid+'") has already been destroyed and cannot be used.'})},destroy:function(){var t;return this.isDestroyed||(t=l.toArray(arguments),this.triggerMethod.apply(this,["before:destroy"].concat(t)),this.isDestroyed=!0,this.triggerMethod.apply(this,["destroy"].concat(t)),this.unbindUIElements(),this.isRendered=!1,this.remove(),l.invoke(this._behaviors,"destroy",t)),this},bindUIElements:function(){this._bindUIElements(),l.invoke(this._behaviors,this._bindUIElements)},_bindUIElements:function(){var t;this.ui&&(this._uiBindings||(this._uiBindings=this.ui),t=l.result(this,"_uiBindings"),this.ui={},l.each(t,function(t,e){this.ui[e]=this.$(t)},this))},unbindUIElements:function(){this._unbindUIElements(),l.invoke(this._behaviors,this._unbindUIElements)},_unbindUIElements:function(){this.ui&&this._uiBindings&&(l.each(this.ui,function(t,e){delete this.ui[e]},this),this.ui=this._uiBindings,delete this._uiBindings)},_buildViewTrigger:function(t){var e=l.defaults({},t,{preventDefault:!0,stopPropagation:!0}),n=l.isObject(t)?e.event:t;return function(t){t&&(t.preventDefault&&e.preventDefault&&t.preventDefault(),t.stopPropagation)&&e.stopPropagation&&t.stopPropagation();t={view:this,model:this.model,collection:this.collection};this.triggerMethod(n,t)}},setElement:function(){var t=o.View.prototype.setElement.apply(this,arguments);return l.invoke(this._behaviors,"proxyViewProperties",this),t},triggerMethod:function(){var t=c._triggerMethod(this,arguments);return this._triggerEventOnBehaviors(arguments),this._triggerEventOnParentLayout(arguments[0],l.rest(arguments)),t},_triggerEventOnBehaviors:function(t){for(var e=c._triggerMethod,n=this._behaviors,i=0,r=n&&n.length;i<r;i++)e(n[i],t)},_triggerEventOnParentLayout:function(t,e){var n,i=this._parentLayoutView();i&&(n=c.getOption(i,"childViewEventPrefix")+":"+t,e=[this].concat(e),c._triggerMethod(i,n,e),n=c.getOption(i,"childEvents"),n=c._getValue(n,i),n=i.normalizeMethods(n))&&l.isFunction(n[t])&&n[t].apply(i,e)},_getImmediateChildren:function(){return[]},_getNestedViews:function(){var t=this._getImmediateChildren();return t.length?l.reduce(t,function(t,e){return e._getNestedViews?t.concat(e._getNestedViews()):t},t):t},_parentLayoutView:function(){for(var t=this._parent;t;){if(t instanceof c.LayoutView)return t;t=t._parent}},normalizeMethods:c.normalizeMethods,mergeOptions:c.mergeOptions,getOption:c.proxyGetOption,bindEntityEvents:c.proxyBindEntityEvents,unbindEntityEvents:c.proxyUnbindEntityEvents}),c.ItemView=c.View.extend({constructor:function(){c.View.apply(this,arguments)},serializeData:function(){var t;return this.model||this.collection?(t=[this.model||this.collection],arguments.length&&t.push.apply(t,arguments),this.model?this.serializeModel.apply(this,t):{items:this.serializeCollection.apply(this,t)}):{}},serializeCollection:function(t){return t.toJSON.apply(t,l.rest(arguments))},render:function(){return this._ensureViewIsIntact(),this.triggerMethod("before:render",this),this._renderTemplate(),this.isRendered=!0,this.bindUIElements(),this.triggerMethod("render",this),this},_renderTemplate:function(){var t,e=this.getTemplate();if(!1!==e){if(e)return t=this.mixinTemplateHelpers(this.serializeData()),e=c.Renderer.render(e,t,this),this.attachElContent(e),this;throw new c.Error({name:"UndefinedTemplateError",message:"Cannot render the template since it is null or undefined."})}},attachElContent:function(t){return this.$el.html(t),this}}),c.CollectionView=c.View.extend({childViewEventPrefix:"childview",sort:!0,constructor:function(t){this.once("render",this._initialEvents),this._initChildViewStorage(),c.View.apply(this,arguments),this.on({"before:show":this._onBeforeShowCalled,show:this._onShowCalled,"before:attach":this._onBeforeAttachCalled,attach:this._onAttachCalled}),this.initRenderBuffer()},initRenderBuffer:function(){this._bufferedChildren=[]},startBuffering:function(){this.initRenderBuffer(),this.isBuffering=!0},endBuffering:function(){var t,e=this._isShown&&c.isNodeAttached(this.el);this.isBuffering=!1,this._isShown&&this._triggerMethodMany(this._bufferedChildren,this,"before:show"),e&&this._triggerBeforeAttach&&(t=this._getNestedViews(),this._triggerMethodMany(t,this,"before:attach")),this.attachBuffer(this,this._createBuffer()),e&&this._triggerAttach&&(t=this._getNestedViews(),this._triggerMethodMany(t,this,"attach")),this._isShown&&this._triggerMethodMany(this._bufferedChildren,this,"show"),this.initRenderBuffer()},_triggerMethodMany:function(t,e,n){var i=l.drop(arguments,3);l.each(t,function(t){c.triggerMethodOn.apply(t,[t,n,t,e].concat(i))})},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this._onCollectionAdd),this.listenTo(this.collection,"remove",this._onCollectionRemove),this.listenTo(this.collection,"reset",this.render),this.getOption("sort"))&&this.listenTo(this.collection,"sort",this._sortViews)},_onCollectionAdd:function(t,e,n){n=void 0!==n.at&&(n.index||e.indexOf(t));!this.getOption("filter")&&!1!==n||(n=l.indexOf(this._filteredSortedModels(n),t)),this._shouldAddChild(t,n)&&(this.destroyEmptyView(),e=this.getChildView(t),this.addChild(t,e,n))},_onCollectionRemove:function(t){t=this.children.findByModel(t);this.removeChildView(t),this.checkEmpty()},_onBeforeShowCalled:function(){this._triggerBeforeAttach=this._triggerAttach=!1,this.children.each(function(t){c.triggerMethodOn(t,"before:show",t)})},_onShowCalled:function(){this.children.each(function(t){c.triggerMethodOn(t,"show",t)})},_onBeforeAttachCalled:function(){this._triggerBeforeAttach=!0},_onAttachCalled:function(){this._triggerAttach=!0},render:function(){return this._ensureViewIsIntact(),this.triggerMethod("before:render",this),this._renderChildren(),this.isRendered=!0,this.triggerMethod("render",this),this},reorder:function(){var e,n=this.children,t=this._filteredSortedModels();l.some(t,function(t){return!n.findByModel(t)})?this.render():(e=l.map(t,function(t,e){t=n.findByModel(t);return t._index=e,t.el}),t=n.filter(function(t){return!l.contains(e,t.el)}),this.triggerMethod("before:reorder"),this._appendReorderedChildren(e),l.each(t,this.removeChildView,this),this.checkEmpty(),this.triggerMethod("reorder"))},resortView:function(){c.getOption(this,"reorderOnSort")?this.reorder():this.render()},_sortViews:function(){var t=this._filteredSortedModels();l.find(t,function(t,e){t=this.children.findByModel(t);return!t||t._index!==e},this)&&this.resortView()},_emptyViewIndex:-1,_appendReorderedChildren:function(t){this.$el.append(t)},_renderChildren:function(){this.destroyEmptyView(),this.destroyChildren({checkEmpty:!1}),(this.isEmpty(this.collection)||(this.triggerMethod("before:render:collection",this),this.startBuffering(),this.showCollection(),this.endBuffering(),this.triggerMethod("render:collection",this),this.children.isEmpty()&&this.getOption("filter")))&&this.showEmptyView()},showCollection:function(){var n,t=this._filteredSortedModels();l.each(t,function(t,e){n=this.getChildView(t),this.addChild(t,n,e)},this)},_filteredSortedModels:function(t){var e,n=this.getViewComparator(),i=this.collection.models;return t=Math.min(Math.max(t,0),i.length-1),n&&(t&&(e=i[t],i=i.slice(0,t).concat(i.slice(t+1))),i=this._sortModelsBy(i,n),e)&&i.splice(t,0,e),i=this.getOption("filter")?l.filter(i,function(t,e){return this._shouldAddChild(t,e)},this):i},_sortModelsBy:function(t,e){return"string"==typeof e?l.sortBy(t,function(t){return t.get(e)},this):1===e.length?l.sortBy(t,e,this):t.sort(l.bind(e,this))},showEmptyView:function(){var t,e=this.getEmptyView();e&&!this._showingEmptyView&&(this.triggerMethod("before:render:empty"),this._showingEmptyView=!0,t=new o.Model,this.addEmptyView(t,e),this.triggerMethod("render:empty"))},destroyEmptyView:function(){this._showingEmptyView&&(this.triggerMethod("before:remove:empty"),this.destroyChildren(),delete this._showingEmptyView,this.triggerMethod("remove:empty"))},getEmptyView:function(){return this.getOption("emptyView")},addEmptyView:function(t,e){var n,i=this._isShown&&!this.isBuffering&&c.isNodeAttached(this.el),r=this.getOption("emptyViewOptions")||this.getOption("childViewOptions"),o=(l.isFunction(r)&&(r=r.call(this,t,this._emptyViewIndex)),this.buildChildView(t,e,r));(o._parent=this).proxyChildEvents(o),o.once("render",function(){this._isShown&&c.triggerMethodOn(o,"before:show",o),i&&this._triggerBeforeAttach&&(n=this._getViewAndNested(o),this._triggerMethodMany(n,this,"before:attach"))},this),this.children.add(o),this.renderChildView(o,this._emptyViewIndex),i&&this._triggerAttach&&(n=this._getViewAndNested(o),this._triggerMethodMany(n,this,"attach")),this._isShown&&c.triggerMethodOn(o,"show",o)},getChildView:function(t){var e=this.getOption("childView");if(e)return e;throw new c.Error({name:"NoChildViewError",message:'A "childView" must be specified'})},addChild:function(t,e,n){var i=this.getOption("childViewOptions"),i=c._getValue(i,this,[t,n]),t=this.buildChildView(t,e,i);return this._updateIndices(t,!0,n),this.triggerMethod("before:add:child",t),this._addChildView(t,n),this.triggerMethod("add:child",t),t._parent=this,t},_updateIndices:function(e,n,t){this.getOption("sort")&&(n&&(e._index=t),this.children.each(function(t){t._index>=e._index&&(t._index+=n?1:-1)}))},_addChildView:function(t,e){var n,i=this._isShown&&!this.isBuffering&&c.isNodeAttached(this.el);this.proxyChildEvents(t),t.once("render",function(){this._isShown&&!this.isBuffering&&c.triggerMethodOn(t,"before:show",t),i&&this._triggerBeforeAttach&&(n=this._getViewAndNested(t),this._triggerMethodMany(n,this,"before:attach"))},this),this.children.add(t),this.renderChildView(t,e),i&&this._triggerAttach&&(n=this._getViewAndNested(t),this._triggerMethodMany(n,this,"attach")),this._isShown&&!this.isBuffering&&c.triggerMethodOn(t,"show",t)},renderChildView:function(t,e){return t.supportsRenderLifecycle||c.triggerMethodOn(t,"before:render",t),t.render(),t.supportsRenderLifecycle||c.triggerMethodOn(t,"render",t),this.attachHtml(this,t,e),t},buildChildView:function(t,e,n){e=new e(l.extend({model:t},n));return c.MonitorDOMRefresh(e),e},removeChildView:function(t){return t&&(this.triggerMethod("before:remove:child",t),t.supportsDestroyLifecycle||c.triggerMethodOn(t,"before:destroy",t),t.destroy?t.destroy():t.remove(),t.supportsDestroyLifecycle||c.triggerMethodOn(t,"destroy",t),delete t._parent,this.stopListening(t),this.children.remove(t),this.triggerMethod("remove:child",t),this._updateIndices(t,!1)),t},isEmpty:function(){return!this.collection||0===this.collection.length},checkEmpty:function(){this.isEmpty(this.collection)&&this.showEmptyView()},attachBuffer:function(t,e){t.$el.append(e)},_createBuffer:function(){var e=document.createDocumentFragment();return l.each(this._bufferedChildren,function(t){e.appendChild(t.el)}),e},attachHtml:function(t,e,n){t.isBuffering?t._bufferedChildren.splice(n,0,e):t._insertBefore(e,n)||t._insertAfter(e)},_insertBefore:function(t,e){var n;return!!(n=this.getOption("sort")&&e<this.children.length-1?this.children.find(function(t){return t._index===e+1}):n)&&(n.$el.before(t.el),!0)},_insertAfter:function(t){this.$el.append(t.el)},_initChildViewStorage:function(){this.children=new o.ChildViewContainer},destroy:function(){return this.isDestroyed?this:(this.triggerMethod("before:destroy:collection"),this.destroyChildren({checkEmpty:!1}),this.triggerMethod("destroy:collection"),c.View.prototype.destroy.apply(this,arguments))},destroyChildren:function(t){var t=t||{},e=!0,n=this.children.map(l.identity);return l.isUndefined(t.checkEmpty)||(e=t.checkEmpty),this.children.each(this.removeChildView,this),e&&this.checkEmpty(),n},_shouldAddChild:function(t,e){var n=this.getOption("filter");return!l.isFunction(n)||n.call(this,t,e,this.collection)},proxyChildEvents:function(i){var r=this.getOption("childViewEventPrefix");this.listenTo(i,"all",function(){var t=l.toArray(arguments),e=t[0],n=this.normalizeMethods(l.result(this,"childEvents"));t[0]=r+":"+e,t.splice(1,0,i),void 0!==n&&l.isFunction(n[e])&&n[e].apply(this,t.slice(1)),this.triggerMethod.apply(this,t)})},_getImmediateChildren:function(){return l.values(this.children._views)},_getViewAndNested:function(t){return[t].concat(l.result(t,"_getNestedViews")||[])},getViewComparator:function(){return this.getOption("viewComparator")}}),c.CompositeView=c.CollectionView.extend({constructor:function(){c.CollectionView.apply(this,arguments)},_initialEvents:function(){this.collection&&(this.listenTo(this.collection,"add",this._onCollectionAdd),this.listenTo(this.collection,"remove",this._onCollectionRemove),this.listenTo(this.collection,"reset",this._renderChildren),this.getOption("sort"))&&this.listenTo(this.collection,"sort",this._sortViews)},getChildView:function(t){return this.getOption("childView")||this.constructor},serializeData:function(){var t={};return t=this.model?l.partial(this.serializeModel,this.model).apply(this,arguments):t},render:function(){return this._ensureViewIsIntact(),this._isRendering=!0,this.resetChildViewContainer(),this.triggerMethod("before:render",this),this._renderTemplate(),this._renderChildren(),this._isRendering=!1,this.isRendered=!0,this.triggerMethod("render",this),this},_renderChildren:function(){(this.isRendered||this._isRendering)&&c.CollectionView.prototype._renderChildren.call(this)},_renderTemplate:function(){var t=this.serializeData(),e=(t=this.mixinTemplateHelpers(t),this.triggerMethod("before:render:template"),this.getTemplate()),e=c.Renderer.render(e,t,this);this.attachElContent(e),this.bindUIElements(),this.triggerMethod("render:template")},attachElContent:function(t){return this.$el.html(t),this},attachBuffer:function(t,e){this.getChildViewContainer(t).append(e)},_insertAfter:function(t){this.getChildViewContainer(this,t).append(t.el)},_appendReorderedChildren:function(t){this.getChildViewContainer(this).append(t)},getChildViewContainer:function(t,e){if(t.$childViewContainer)return t.$childViewContainer;var n=c.getOption(t,"childViewContainer");if(n){var i,n=c._getValue(n,t);if((i="@"===n.charAt(0)&&t.ui?t.ui[n.substr(4)]:t.$(n)).length<=0)throw new c.Error({name:"ChildViewContainerMissingError",message:'The specified "childViewContainer" was not found: '+t.childViewContainer})}else i=t.$el;return t.$childViewContainer=i},resetChildViewContainer:function(){this.$childViewContainer&&(this.$childViewContainer=void 0)}}),c.LayoutView=c.ItemView.extend({regionClass:c.Region,options:{destroyImmediate:!1},childViewEventPrefix:"childview",constructor:function(t){t=t||{},this._firstRender=!0,this._initializeRegions(t),c.ItemView.call(this,t)},render:function(){return this._ensureViewIsIntact(),this._firstRender?this._firstRender=!1:this._reInitializeRegions(),c.ItemView.prototype.render.apply(this,arguments)},destroy:function(){return this.isDestroyed?this:(!0===this.getOption("destroyImmediate")&&this.$el.remove(),this.regionManager.destroy(),c.ItemView.prototype.destroy.apply(this,arguments))},showChildView:function(t,e,n){t=this.getRegion(t);return t.show.apply(t,l.rest(arguments))},getChildView:function(t){return this.getRegion(t).currentView},addRegion:function(t,e){var n={};return n[t]=e,this._buildRegions(n)[t]},addRegions:function(t){return this.regions=l.extend({},this.regions,t),this._buildRegions(t)},removeRegion:function(t){return delete this.regions[t],this.regionManager.removeRegion(t)},getRegion:function(t){return this.regionManager.get(t)},getRegions:function(){return this.regionManager.getRegions()},_buildRegions:function(t){var e={regionClass:this.getOption("regionClass"),parentEl:l.partial(l.result,this,"el")};return this.regionManager.addRegions(t,e)},_initializeRegions:function(t){this._initRegionManager(),e=c._getValue(this.regions,this,[t])||{};var e,n=this.getOption.call(t,"regions"),n=c._getValue(n,this,[t]);l.extend(e,n),e=this.normalizeUIValues(e,["selector","el"]),this.addRegions(e)},_reInitializeRegions:function(){this.regionManager.invoke("reset")},getRegionManager:function(){return new c.RegionManager},_initRegionManager:function(){this.regionManager=this.getRegionManager(),(this.regionManager._parent=this).listenTo(this.regionManager,"before:add:region",function(t){this.triggerMethod("before:add:region",t)}),this.listenTo(this.regionManager,"add:region",function(t,e){this[t]=e,this.triggerMethod("add:region",t,e)}),this.listenTo(this.regionManager,"before:remove:region",function(t){this.triggerMethod("before:remove:region",t)}),this.listenTo(this.regionManager,"remove:region",function(t,e){delete this[t],this.triggerMethod("remove:region",t,e)})},_getImmediateChildren:function(){return l.chain(this.regionManager.getRegions()).pluck("currentView").compact().value()}}),c.Behavior=c.Object.extend({constructor:function(t,e){this.view=e,this.defaults=l.result(this,"defaults")||{},this.options=l.extend({},this.defaults,t),this.ui=l.extend({},l.result(e,"ui"),l.result(this,"ui")),c.Object.apply(this,arguments)},$:function(){return this.view.$.apply(this.view,arguments)},destroy:function(){return this.stopListening(),this},proxyViewProperties:function(t){this.$el=t.$el,this.el=t.el}}),c.Behaviors=(m=c,v=/^(\S+)\s*(.*)$/,y={behaviorTriggers:function(t,e){return new x(this,e).buildBehaviorTriggers()},behaviorEvents:function(t,e){var a={};return g.each(e,function(n,i){var r={},t=g.clone(g.result(n,"events"))||{},t=m.normalizeUIKeys(t,w(n)),o=0;g.each(t,function(t,e){e=e.match(v),e=e[1]+"."+[this.cid,i,o++," "].join("")+e[2],t=g.isFunction(t)?t:n[t];r[e]=g.bind(t,n)},this),a=g.extend(a,r)},this),a}},(g=l).extend(b,{behaviorsLookup:function(){throw new m.Error({message:"You must define where your behaviors are stored.",url:"marionette.behaviors.html#behaviorslookup"})},getBehaviorClass:function(t,e){return t.behaviorClass||m._getValue(b.behaviorsLookup,this,[t,e])[e]},parseBehaviors:function(n,t){return g.chain(t).map(function(t,e){e=new(b.getBehaviorClass(t,e))(t,n),t=b.parseBehaviors(n,g.result(e,"behaviors"));return[e].concat(t)}).flatten().value()},wrap:function(e,n,t){g.each(t,function(t){e[t]=g.partial(y[t],e[t],n)})}}),g.extend(x.prototype,{buildBehaviorTriggers:function(){return g.each(this._behaviors,this._buildTriggerHandlersForBehavior,this),this._triggers},_buildTriggerHandlersForBehavior:function(t,e){var n=g.clone(g.result(t,"triggers"))||{},n=m.normalizeUIKeys(n,w(t));g.each(n,g.bind(this._setHandlerForBehavior,this,t,e))},_setHandlerForBehavior:function(t,e,n,i){i=i.replace(/^\S+/,function(t){return t+".behaviortriggers"+e});this._triggers[i]=this._view._buildViewTrigger(n)}}),b),c.AppRouter=o.Router.extend({constructor:function(t){this.options=t||{},o.Router.apply(this,arguments);var t=this.getOption("appRoutes"),e=this._getController();this.processAppRoutes(e,t),this.on("route",this._processOnRoute,this)},appRoute:function(t,e){var n=this._getController();this._addAppRoute(n,t,e)},_processOnRoute:function(t,e){var n;l.isFunction(this.onRoute)&&(n=l.invert(this.getOption("appRoutes"))[t],this.onRoute(t,n,e))},processAppRoutes:function(e,n){var t;n&&(t=l.keys(n).reverse(),l.each(t,function(t){this._addAppRoute(e,t,n[t])},this))},_getController:function(){return this.getOption("controller")},_addAppRoute:function(t,e,n){var i=t[n];if(!i)throw new c.Error('Method "'+n+'" was not found on the controller');this.route(e,n,l.bind(i,t))},mergeOptions:c.mergeOptions,getOption:c.proxyGetOption,triggerMethod:c.triggerMethod,bindEntityEvents:c.proxyBindEntityEvents,unbindEntityEvents:c.proxyUnbindEntityEvents}),c.Application=c.Object.extend({constructor:function(t){this._initializeRegions(t),this._initCallbacks=new c.Callbacks,this.submodules={},l.extend(this,t),this._initChannel(),c.Object.apply(this,arguments)},execute:function(){this.commands.execute.apply(this.commands,arguments)},request:function(){return this.reqres.request.apply(this.reqres,arguments)},addInitializer:function(t){this._initCallbacks.add(t)},start:function(t){this.triggerMethod("before:start",t),this._initCallbacks.run(t,this),this.triggerMethod("start",t)},addRegions:function(t){return this._regionManager.addRegions(t)},emptyRegions:function(){return this._regionManager.emptyRegions()},removeRegion:function(t){return this._regionManager.removeRegion(t)},getRegion:function(t){return this._regionManager.get(t)},getRegions:function(){return this._regionManager.getRegions()},module:function(t,e){var e=c.Module.getClass(e),n=l.toArray(arguments);return n.unshift(this),e.create.apply(e,n)},getRegionManager:function(){return new c.RegionManager},_initializeRegions:function(t){var e=l.isFunction(this.regions)?this.regions(t):this.regions||{},n=(this._initRegionManager(),c.getOption(t,"regions"));return l.isFunction(n)&&(n=n.call(this,t)),l.extend(e,n),this.addRegions(e),this},_initRegionManager:function(){this._regionManager=this.getRegionManager(),(this._regionManager._parent=this).listenTo(this._regionManager,"before:add:region",function(){c._triggerMethod(this,"before:add:region",arguments)}),this.listenTo(this._regionManager,"add:region",function(t,e){this[t]=e,c._triggerMethod(this,"add:region",arguments)}),this.listenTo(this._regionManager,"before:remove:region",function(){c._triggerMethod(this,"before:remove:region",arguments)}),this.listenTo(this._regionManager,"remove:region",function(t){delete this[t],c._triggerMethod(this,"remove:region",arguments)})},_initChannel:function(){this.channelName=l.result(this,"channelName")||"global",this.channel=l.result(this,"channel")||o.Wreqr.radio.channel(this.channelName),this.vent=l.result(this,"vent")||this.channel.vent,this.commands=l.result(this,"commands")||this.channel.commands,this.reqres=l.result(this,"reqres")||this.channel.reqres}}),c.Module=function(t,e,n){this.moduleName=t,this.options=l.extend({},this.options,n),this.initialize=n.initialize||this.initialize,this.submodules={},this._setupInitializersAndFinalizers(),this.app=e,l.isFunction(this.initialize)&&this.initialize(t,e,this.options)},c.Module.extend=c.extend,l.extend(c.Module.prototype,o.Events,{startWithParent:!0,initialize:function(){},addInitializer:function(t){this._initializerCallbacks.add(t)},addFinalizer:function(t){this._finalizerCallbacks.add(t)},start:function(e){this._isInitialized||(l.each(this.submodules,function(t){t.startWithParent&&t.start(e)}),this.triggerMethod("before:start",e),this._initializerCallbacks.run(e,this),this._isInitialized=!0,this.triggerMethod("start",e))},stop:function(){this._isInitialized&&(this._isInitialized=!1,this.triggerMethod("before:stop"),l.invoke(this.submodules,"stop"),this._finalizerCallbacks.run(void 0,this),this._initializerCallbacks.reset(),this._finalizerCallbacks.reset(),this.triggerMethod("stop"))},addDefinition:function(t,e){this._runModuleDefinition(t,e)},_runModuleDefinition:function(t,e){t&&(e=l.flatten([this,this.app,o,c,o.$,l,e]),t.apply(this,e))},_setupInitializersAndFinalizers:function(){this._initializerCallbacks=new c.Callbacks,this._finalizerCallbacks=new c.Callbacks},triggerMethod:c.triggerMethod}),l.extend(c.Module,{create:function(i,t,r){var o=i,a=l.drop(arguments,3),e=(t=t.split(".")).length,s=[];return s[e-1]=r,l.each(t,function(t,e){var n=o;o=this._getModule(n,t,i,r),this._addModuleDefinition(n,o,s[e],a)},this),o},_getModule:function(t,e,n,i,r){var o=l.extend({},i),i=this.getClass(i),a=t[e];return a||(a=new i(e,n,o),t[e]=a,t.submodules[e]=a),a},getClass:function(t){var e=c.Module;return t?t.prototype instanceof e?t:t.moduleClass||e:e},_addModuleDefinition:function(t,e,n,i){var r=this._getDefine(n),n=this._getStartWithParent(n,e);r&&e.addDefinition(r,i),this._addStartWithParent(t,e,n)},_getStartWithParent:function(t,e){var n;return l.isFunction(t)&&t.prototype instanceof c.Module?(n=e.constructor.prototype.startWithParent,!!l.isUndefined(n)||n):!l.isObject(t)||(n=t.startWithParent,!!l.isUndefined(n))||n},_getDefine:function(t){return!l.isFunction(t)||t.prototype instanceof c.Module?l.isObject(t)?t.define:null:t},_addStartWithParent:function(t,e,n){e.startWithParent=e.startWithParent&&n,e.startWithParent&&!e.startWithParentIsConfigured&&(e.startWithParentIsConfigured=!0,t.addInitializer(function(t){e.startWithParent&&e.start(t)}))}}),c},"function"==typeof define&&define.amd?define(["backbone","underscore","backbone.wreqr","backbone.babysitter"],function(t,e){return i.Marionette=i.Mn=r(i,t,e)}):void 0!==n?(n=t("backbone"),o=t("underscore"),t("backbone.wreqr"),t("backbone.babysitter"),e.exports=r(i,n,o)):i.Marionette=i.Mn=r(i,i.Backbone,i._)},{backbone:44,"backbone.babysitter":41,"backbone.wreqr":43,underscore:576}],43:[function(t,e,n){var i,r;i=this,r=function(e,o){"use strict";var i,n,r,a,t,s,l,c,u,h,d=e.Wreqr,p=e.Wreqr={};function f(t){this.options=t,this._wreqrHandlers={},i.isFunction(this.initialize)&&this.initialize(t)}function m(t){this.options=t,this._commands={},o.isFunction(this.initialize)&&this.initialize(t)}function g(){}function v(t){this.vent=new e.Wreqr.EventAggregator,this.reqres=new e.Wreqr.RequestResponse,this.commands=new e.Wreqr.Commands,this.channelName=t}function y(){this._channels={},this.vent={},this.commands={},this.reqres={},this._proxyMethods()}return e.Wreqr.VERSION="1.4.0",e.Wreqr.noConflict=function(){return e.Wreqr=d,this},p.Handlers=(i=o,f.extend=(s=e).Model.extend,i.extend(f.prototype,s.Events,{setHandlers:function(t){i.each(t,i.bind(function(t,e){var n=null;i.isObject(t)&&!i.isFunction(t)&&(n=t.context,t=t.callback),this.setHandler(e,t,n)},this))},setHandler:function(t,e,n){this._wreqrHandlers[t]={callback:e,context:n},this.trigger("handler:add",t,e,n)},hasHandler:function(t){return!!this._wreqrHandlers[t]},getHandler:function(t){var e=this._wreqrHandlers[t];if(e)return function(){return e.callback.apply(e.context,arguments)}},removeHandler:function(t){delete this._wreqrHandlers[t]},removeAllHandlers:function(){this._wreqrHandlers={}}}),f),p.CommandStorage=(o.extend(m.prototype,e.Events,{getCommands:function(t){var e=this._commands[t];return e||(this._commands[t]=e={command:t,instances:[]}),e},addCommand:function(t,e){this.getCommands(t).instances.push(e)},clearCommands:function(t){this.getCommands(t).instances=[]}}),m),p.Commands=(r=o,(n=p).Handlers.extend({storageType:n.CommandStorage,constructor:function(t){this.options=t||{},this._initializeStorage(this.options),this.on("handler:add",this._executeCommands,this),n.Handlers.prototype.constructor.apply(this,arguments)},execute:function(t){t=arguments[0];var e=r.rest(arguments);this.hasHandler(t)?this.getHandler(t).apply(this,e):this.storage.addCommand(t,e)},_executeCommands:function(t,e,n){var i=this.storage.getCommands(t);r.each(i.instances,function(t){e.apply(n,t)}),this.storage.clearCommands(t)},_initializeStorage:function(t){t=t.storageType||this.storageType,t=r.isFunction(t)?new t:t;this.storage=t}})),p.RequestResponse=(a=o,p.Handlers.extend({request:function(t){if(this.hasHandler(t))return this.getHandler(t).apply(this,a.rest(arguments))}})),p.EventAggregator=(s=o,g.extend=(t=e).Model.extend,s.extend(g.prototype,t.Events),g),p.Channel=(o.extend(v.prototype,{reset:function(){return this.vent.off(),this.vent.stopListening(),this.reqres.removeAllHandlers(),this.commands.removeAllHandlers(),this},connectEvents:function(t,e){return this._connect("vent",t,e),this},connectCommands:function(t,e){return this._connect("commands",t,e),this},connectRequests:function(t,e){return this._connect("reqres",t,e),this},_connect:function(n,t,i){var r;t&&(i=i||this,r="vent"===n?"on":"setHandler",o.each(t,o.bind(function(t,e){this[n][r](e,o.bind(t,i))},this)))}}),v),p.radio=(l=p,(c=o).extend(y.prototype,{channel:function(t){if(t)return this._getChannel(t);throw new Error("Channel must receive a name")},_getChannel:function(t){var e=this._channels[t];return e||(e=new l.Channel(t),this._channels[t]=e),e},_proxyMethods:function(){c.each(["vent","commands","reqres"],c.bind(function(e){c.each(u[e],c.bind(function(t){this[e][t]=h(this,e,t)},this))},this))}}),u={vent:["on","off","trigger","once","stopListening","listenTo","listenToOnce"],commands:["execute","setHandler","setHandlers","removeHandler","removeAllHandlers"],reqres:["request","setHandler","setHandlers","removeHandler","removeAllHandlers"]},h=function(e,n,i){return function(t){t=e._getChannel(t)[n];return t[i].apply(t,c.rest(arguments))}},new y),e.Wreqr},"function"==typeof define&&define.amd?define(["backbone","underscore"],r):void 0!==n?(n=t("backbone"),t=t("underscore"),e.exports=r(n,t)):r(i.Backbone,i._)},{backbone:44,underscore:576}],44:[function(o,t,a){!function(n){!function(){function i(t,s,_,e){function n(n,t,i){_.each(t,function(t,e){_[e]&&(n.prototype[e]=function(t,i,r){switch(t){case 1:return function(){return _[i](this[r])};case 2:return function(t){return _[i](this[r],t)};case 3:return function(t,e){return _[i](this[r],a(t,this),e)};case 4:return function(t,e,n){return _[i](this[r],a(t,this),e,n)};default:return function(){var t=o.call(arguments);return t.unshift(this[r]),_[i].apply(_,t)}}}(t,e,i))})}function b(t,e,n){n=Math.min(Math.max(n,0),t.length);for(var i=Array(t.length-n),r=e.length,o=0;o<i.length;o++)i[o]=t[o+n];for(o=0;o<r;o++)t[o+n]=e[o];for(o=0;o<i.length;o++)t[o+r+n]=i[o]}var i=t.Backbone,o=Array.prototype.slice,a=(s.VERSION="1.2.3",s.$=e,s.noConflict=function(){return t.Backbone=i,this},s.emulateHTTP=!1,s.emulateJSON=!1,function(e,t){var n;return _.isFunction(e)?e:_.isObject(e)&&!t._isModel(e)?(n=_.matches(e),function(t){return n(t.attributes)}):_.isString(e)?function(t){return t.get(e)}:e}),e=s.Events={},l=/\s+/,c=function(t,e,n,i,r){var o,a=0;if(n&&"object"==typeof n){void 0!==i&&"context"in r&&void 0===r.context&&(r.context=i);for(o=_.keys(n);a<o.length;a++)e=c(t,e,o[a],n[o[a]],r)}else if(n&&l.test(n))for(o=n.split(l);a<o.length;a++)e=t(e,o[a],i,r);else e=t(e,n,i,r);return e},u=(e.on=function(t,e,n){return u(this,t,e,n)},function(t,e,n,i,r){return t._events=c(h,t._events||{},e,n,{context:i,ctx:t,listening:r}),r&&((t._listeners||(t._listeners={}))[r.id]=r),t}),h=(e.listenTo=function(t,e,n){var i,r,o,a;return t&&(i=t._listenId||(t._listenId=_.uniqueId("l")),(a=(r=this._listeningTo||(this._listeningTo={}))[i])||(o=this._listenId||(this._listenId=_.uniqueId("l")),a=r[i]={obj:t,objId:i,id:o,listeningTo:r,count:0}),u(t,e,n,this,a)),this},function(t,e,n,i){var r,o;return n&&(e=t[e]||(t[e]=[]),r=i.context,o=i.ctx,(i=i.listening)&&i.count++,e.push({callback:n,context:r,ctx:r||o,listening:i})),t}),r=(e.off=function(t,e,n){return this._events&&(this._events=c(r,this._events,t,e,{context:n,listeners:this._listeners})),this},e.stopListening=function(t,e,n){var i=this._listeningTo;if(i){for(var r=t?[t._listenId]:_.keys(i),o=0;o<r.length;o++){var a=i[r[o]];if(!a)break;a.obj.off(e,n,this)}_.isEmpty(i)&&(this._listeningTo=void 0)}return this},function(t,e,n,i){if(t){var r,o=0,a=i.context,s=i.listeners;if(e||n||a){for(var l=e?[e]:_.keys(t);o<l.length;o++){var c=t[e=l[o]];if(!c)break;for(var u=[],h=0;h<c.length;h++){var d=c[h];n&&n!==d.callback&&n!==d.callback._callback||a&&a!==d.context?u.push(d):(r=d.listening)&&0==--r.count&&(delete s[r.id],delete r.listeningTo[r.objId])}u.length?t[e]=u:delete t[e]}return _.size(t)?t:void 0}for(var p=_.keys(s);o<p.length;o++)delete s[(r=s[p[o]]).id],delete r.listeningTo[r.objId]}}),d=(e.once=function(t,e,n){t=c(d,{},t,e,_.bind(this.off,this));return this.on(t,void 0,n)},e.listenToOnce=function(t,e,n){e=c(d,{},e,n,_.bind(this.stopListening,this,t));return this.listenTo(t,e)},function(t,e,n,i){var r;return n&&((r=t[e]=_.once(function(){i(e,r),n.apply(this,arguments)}))._callback=n),t}),p=(e.trigger=function(t){if(this._events){for(var e=Math.max(0,arguments.length-1),n=Array(e),i=0;i<e;i++)n[i]=arguments[i+1];c(p,this._events,t,void 0,n)}return this},function(t,e,n,i){var r,o;return t&&(r=t[e],o=t.all,r&&(o=o&&o.slice()),r&&f(r,i),o)&&f(o,[e].concat(i)),t}),f=function(t,e){var n,i=-1,r=t.length,o=e[0],a=e[1],s=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,a);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,a,s);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e);return}},m=(e.bind=e.on,e.unbind=e.off,_.extend(s,e),s.Model=function(t,e){var n=t||{};e=e||{},this.cid=_.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(n=this.parse(n,e)||{}),n=_.defaults({},n,_.result(this,"defaults")),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)}),g=(_.extend(m.prototype,e,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",initialize:function(){},toJSON:function(t){return _.clone(this.attributes)},sync:function(){return s.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return _.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!_.iteratee(t,this)(this.attributes)},set:function(t,e,n){if(null!=t){var i;if("object"==typeof t?(i=t,n=e):(i={})[t]=e,!this._validate(i,n=n||{}))return!1;var r,o=n.unset,t=n.silent,a=[],s=this._changing,l=(this._changing=!0,s||(this._previousAttributes=_.clone(this.attributes),this.changed={}),this.attributes),c=this.changed,u=this._previousAttributes;for(r in i)e=i[r],_.isEqual(l[r],e)||a.push(r),_.isEqual(u[r],e)?delete c[r]:c[r]=e,o?delete l[r]:l[r]=e;if(this.id=this.get(this.idAttribute),!t){a.length&&(this._pending=n);for(var h=0;h<a.length;h++)this.trigger("change:"+a[h],this,l[a[h]],n)}if(!s){if(!t)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);this._pending=!1,this._changing=!1}}return this},unset:function(t,e){return this.set(t,void 0,_.extend({},e,{unset:!0}))},clear:function(t){var e,n={};for(e in this.attributes)n[e]=void 0;return this.set(n,_.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!_.isEmpty(this.changed):_.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&_.clone(this.changed);var e,n=this._changing?this._previousAttributes:this.attributes,i={};for(e in t){var r=t[e];_.isEqual(n[e],r)||(i[e]=r)}return!!_.size(i)&&i},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return _.clone(this._previousAttributes)},fetch:function(n){n=_.extend({parse:!0},n);var i=this,r=n.success;return n.success=function(t){var e=n.parse?i.parse(t,n):t;if(!i.set(e,n))return!1;r&&r.call(n.context,i,t,n),i.trigger("sync",i,t,n)},j(this,n),this.sync("read",this,n)},save:function(t,e,n){null==t||"object"==typeof t?(i=t,n=e):(i={})[t]=e;var i,r=(n=_.extend({validate:!0,parse:!0},n)).wait;if(i&&!r){if(!this.set(i,n))return!1}else if(!this._validate(i,n))return!1;var o=this,a=n.success,s=this.attributes,t=(n.success=function(t){o.attributes=s;var e=n.parse?o.parse(t,n):t;if((e=r?_.extend({},i,e):e)&&!o.set(e,n))return!1;a&&a.call(n.context,o,t,n),o.trigger("sync",o,t,n)},j(this,n),i&&r&&(this.attributes=_.extend({},s,i)),this.isNew()?"create":n.patch?"patch":"update"),e=("patch"!=t||n.attrs||(n.attrs=i),this.sync(t,this,n));return this.attributes=s,e},destroy:function(e){e=e?_.clone(e):{};function n(){i.stopListening(),i.trigger("destroy",i,i.collection,e)}var i=this,r=e.success,o=e.wait,t=!(e.success=function(t){o&&n(),r&&r.call(e.context,i,t,e),i.isNew()||i.trigger("sync",i,t,e)});return this.isNew()?_.defer(e.success):(j(this,e),t=this.sync("delete",this,e)),o||n(),t},url:function(){var t,e=_.result(this,"urlRoot")||_.result(this.collection,"url")||D();return this.isNew()?e:(t=this.get(this.idAttribute),e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t))},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},_.defaults({validate:!0},t))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=_.extend({},this.attributes,t);t=this.validationError=this.validate(t,e)||null;return!t||(this.trigger("invalid",this,t,_.extend(e,{validationError:t})),!1)}}),n(m,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"),s.Collection=function(t,e){(e=e||{}).model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,_.extend({silent:!0},e))}),x={add:!0,remove:!0,merge:!0},v={add:!0,remove:!1},y=(_.extend(g.prototype,e,{model:m,initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return s.sync.apply(this,arguments)},add:function(t,e){return this.set(t,_.extend({merge:!1},e,v))},remove:function(t,e){e=_.extend({},e);var n=!_.isArray(t),t=(t=n?[t]:_.clone(t),this._removeModels(t,e));return!e.silent&&t&&this.trigger("update",this,e),n?t[0]:t},set:function(t,e){if(null!=t){(e=_.defaults({},e,x)).parse&&!this._isModel(t)&&(t=this.parse(t,e));for(var n=!_.isArray(t),i=(t=n?[t]:t.slice(),e.at),r=((i=null!=i?+i:i)<0&&(i+=this.length+1),[]),o=[],a=[],s={},l=e.add,c=e.merge,u=e.remove,h=!1,d=this.comparator&&null==i&&!1!==e.sort,p=_.isString(this.comparator)?this.comparator:null,f=0;f<t.length;f++){var m,g=t[f],v=this.get(g);v?(c&&g!==v&&(m=this._isModel(g)?g.attributes:g,e.parse&&(m=v.parse(m,e)),v.set(m,e),d)&&!h&&(h=v.hasChanged(p)),s[v.cid]||(s[v.cid]=!0,r.push(v)),t[f]=v):l&&(g=t[f]=this._prepareModel(g,e))&&(o.push(g),this._addReference(g,e),s[g.cid]=!0,r.push(g))}if(u){for(f=0;f<this.length;f++)s[(g=this.models[f]).cid]||a.push(g);a.length&&this._removeModels(a,e)}var y=!1;if(r.length&&(!d&&l&&u)?(y=this.length!=r.length||_.some(this.models,function(t,e){return t!==r[e]}),this.models.length=0,b(this.models,r,0),this.length=this.models.length):o.length&&(d&&(h=!0),b(this.models,o,null==i?this.length:i),this.length=this.models.length),h&&this.sort({silent:!0}),!e.silent){for(f=0;f<o.length;f++)null!=i&&(e.index=i+f),(g=o[f]).trigger("add",g,this,e);(h||y)&&this.trigger("sort",this,e),(o.length||a.length)&&this.trigger("update",this,e)}return n?t[0]:t}},reset:function(t,e){e=e?_.clone(e):{};for(var n=0;n<this.models.length;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,_.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,_.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,_.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return o.apply(this.models,arguments)},get:function(t){var e;if(null!=t)return e=this.modelId(this._isModel(t)?t.attributes:t),this._byId[t]||this._byId[e]||this._byId[t.cid]},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t=t||{};var n=e.length;return _.isFunction(e)&&(e=_.bind(e,this)),1===n||_.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return _.invoke(this.models,"get",t)},fetch:function(n){var i=(n=_.extend({parse:!0},n)).success,r=this;return n.success=function(t){var e=n.reset?"reset":"set";r[e](t,n),i&&i.call(n.context,r,t,n),r.trigger("sync",r,t,n)},j(this,n),this.sync("read",this,n)},create:function(t,e){var i=(e=e?_.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;i||this.add(t,e);var r=this,o=e.success;return e.success=function(t,e,n){i&&r.add(t,n),o&&o.call(n.context,t,e,n)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t){return t[this.model.prototype.idAttribute||"id"]},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){return this._isModel(t)?(t.collection||(t.collection=this),t):(t=new((e=e?_.clone(e):{}).collection=this).model(t,e)).validationError?(this.trigger("invalid",this,t.validationError,e),!1):t},_removeModels:function(t,e){for(var n=[],i=0;i<t.length;i++){var r,o=this.get(t[i]);o&&(r=this.indexOf(o),this.models.splice(r,1),this.length--,e.silent||(e.index=r,o.trigger("remove",o,this,e)),n.push(o),this._removeReference(o,e))}return!!n.length&&n},_isModel:function(t){return t instanceof m},_addReference:function(t,e){this._byId[t.cid]=t;var n=this.modelId(t.attributes);null!=n&&(this._byId[n]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var n=this.modelId(t.attributes);null!=n&&delete this._byId[n],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,n,i){var r,o;("add"!==t&&"remove"!==t||n===this)&&("destroy"===t&&this.remove(e,i),"change"===t&&(r=this.modelId(e.previousAttributes()))!==(o=this.modelId(e.attributes))&&(null!=r&&delete this._byId[r],null!=o)&&(this._byId[o]=e),this.trigger.apply(this,arguments))}}),n(g,{forEach:3,each:3,map:3,collect:3,reduce:4,foldl:4,inject:4,reduceRight:4,foldr:4,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3},"models"),s.View=function(t){this.cid=_.uniqueId("view"),_.extend(this,_.pick(t,T)),this._ensureElement(),this.initialize.apply(this,arguments)}),w=/^(\S+)\s*(.*)$/,T=["model","collection","el","id","attributes","className","tagName","events"],S=(_.extend(y.prototype,e,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof s.$?t:s.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t=t||_.result(this,"events"))for(var e in this.undelegateEvents(),t){var n=t[e];(n=_.isFunction(n)?n:this[n])&&(e=e.match(w),this.delegate(e[1],e[2],_.bind(n,this)))}return this},delegate:function(t,e,n){return this.$el.on(t+".delegateEvents"+this.cid,e,n),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,n){return this.$el.off(t+".delegateEvents"+this.cid,e,n),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){var t;this.el?this.setElement(_.result(this,"el")):(t=_.extend({},_.result(this,"attributes")),this.id&&(t.id=_.result(this,"id")),this.className&&(t.class=_.result(this,"className")),this.setElement(this._createElement(_.result(this,"tagName"))),this._setAttributes(t))},_setAttributes:function(t){this.$el.attr(t)}}),s.sync=function(t,e,i){var n,r=S[t],o=(_.defaults(i=i||{},{emulateHTTP:s.emulateHTTP,emulateJSON:s.emulateJSON}),{type:r,dataType:"json"}),a=(i.url||(o.url=_.result(e,"url")||D()),null!=i.data||!e||"create"!==t&&"update"!==t&&"patch"!==t||(o.contentType="application/json",o.data=JSON.stringify(i.attrs||e.toJSON(i))),i.emulateJSON&&(o.contentType="application/x-www-form-urlencoded",o.data=o.data?{model:o.data}:{}),!i.emulateHTTP||"PUT"!==r&&"DELETE"!==r&&"PATCH"!==r||(o.type="POST",i.emulateJSON&&(o.data._method=r),n=i.beforeSend,i.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",r),n)return n.apply(this,arguments)}),"GET"===o.type||i.emulateJSON||(o.processData=!1),i.error),t=(i.error=function(t,e,n){i.textStatus=e,i.errorThrown=n,a&&a.call(i.context,t,e,n)},i.xhr=s.ajax(_.extend(o,i)));return e.trigger("request",e,t,i),t},{create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"}),C=(s.ajax=function(){return s.$.ajax.apply(s.$,arguments)},s.Router=function(t){(t=t||{}).routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)}),E=/\((.*?)\)/g,M=/(\(\?)?:\w+/g,P=/\*\w+/g,k=/[\-{}\[\]+?.,\\\^$|#\s]/g,A=(_.extend(C.prototype,e,{initialize:function(){},route:function(e,n,i){_.isRegExp(e)||(e=this._routeToRegExp(e)),_.isFunction(n)&&(i=n,n=""),i=i||this[n];var r=this;return s.history.route(e,function(t){t=r._extractParameters(e,t);!1!==r.execute(i,t,n)&&(r.trigger.apply(r,["route:"+n].concat(t)),r.trigger("route",n,t),s.history.trigger("route",r,n,t))}),this},execute:function(t,e,n){t&&t.apply(this,e)},navigate:function(t,e){return s.history.navigate(t,e),this},_bindRoutes:function(){if(this.routes){this.routes=_.result(this,"routes");for(var t,e=_.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(k,"\\$&").replace(E,"(?:$1)?").replace(M,function(t,e){return e?t:"([^/?]+)"}).replace(P,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return _.map(n,function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null})}}),s.History=function(){this.handlers=[],this.checkUrl=_.bind(this.checkUrl,this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)}),O=/^[#\/]|\s+$/g,R=/^\/+|\/+$/g,L=/#.*$/,D=(A.started=!1,_.extend(A.prototype,e,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){t=(t||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return(t=null==t?this._usePushState||!this._wantsHashChange?this.getPath():this.getHash():t).replace(O,"")},start:function(t){if(A.started)throw new Error("Backbone.history has already been started");if(A.started=!0,this.options=_.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||7<document.documentMode),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(R,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return t=this.root.slice(0,-1)||"/",this.location.replace(t+"#"+this.getPath()),!0;this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}this._hasHashChange||!this._wantsHashChange||this._usePushState||(this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1,(t=(t=document.body).insertBefore(this.iframe,t.firstChild).contentWindow).document.open(),t.document.close(),t.location.hash="#"+this.fragment);t=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?t("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),A.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if((e=e===this.fragment&&this.iframe?this.getHash(this.iframe.contentWindow):e)===this.fragment)return!1;this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(e){return!!this.matchRoot()&&(e=this.fragment=this.getFragment(e),_.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(t,e){if(!A.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var n=this.root,n=(n=""!==t&&"?"!==t.charAt(0)?n:n.slice(0,-1)||"/")+t;if(t=this.decodeFragment(t.replace(L,"")),this.fragment!==t){if(this.fragment=t,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)&&(n=this.iframe.contentWindow,e.replace||(n.document.open(),n.document.close()),this._updateHash(n.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,n){n?(n=t.href.replace(/(javascript:|#).*$/,""),t.replace(n+"#"+e)):t.hash="#"+e}}),s.history=new A,m.extend=g.extend=C.extend=y.extend=A.extend=function(t,e){function n(){this.constructor=r}var i=this,r=t&&_.has(t,"constructor")?t.constructor:function(){return i.apply(this,arguments)};_.extend(r,i,e);return n.prototype=i.prototype,r.prototype=new n,t&&_.extend(r.prototype,t),r.__super__=i.prototype,r},function(){throw new Error('A "url" property or function must be specified')}),j=function(e,n){var i=n.error;n.error=function(t){i&&i.call(n.context,e,t,n),e.trigger("error",e,t,n)}};return s}var r="object"==typeof self&&self.self==self&&self||"object"==typeof n&&n.global==n&&n;if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(t,e,n){r.Backbone=i(r,n,t,e)});else if(void 0!==a){var t,e=o("underscore");try{t=o("jquery")}catch(t){}i(r,a,e,t)}else r.Backbone=i(r,{},r._,r.jQuery||r.Zepto||r.ender||r.$)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{jquery:422,underscore:576}],45:[function(t,e,n){},{}],46:[function(t,e,n){function i(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function l(t){return"function"==typeof t}function c(t){return"object"==typeof t&&null!==t}function u(t){return void 0===t}((e.exports=i).EventEmitter=i).prototype._events=void 0,i.prototype._maxListeners=void 0,i.defaultMaxListeners=10,i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},i.prototype.emit=function(t){var e,n,i,r,o,a,s;if((this._events||(this._events={}),"error"===t)&&(!this._events.error||c(this._events.error)&&!this._events.error.length))throw(s=arguments[1])instanceof Error?s:((a=new Error('Uncaught, unspecified "error" event. ('+s+")")).context=s,a);if(u(e=this._events[t]))return!1;if(l(e))switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),e.apply(this,i)}else if(c(e))for(i=Array.prototype.slice.call(arguments,1),n=(o=e.slice()).length,r=0;r<n;r++)o[r].apply(this,i);return!0},i.prototype.on=i.prototype.addListener=function(t,e){if(l(e))return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,l(e.listener)?e.listener:e),this._events[t]?c(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,c(this._events[t])&&!this._events[t].warned&&(e=u(this._maxListeners)?i.defaultMaxListeners:this._maxListeners)&&0<e&&this._events[t].length>e&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace)&&console.trace(),this;throw TypeError("listener must be a function")},i.prototype.once=function(t,e){var n;if(l(e))return n=!1,i.listener=e,this.on(t,i),this;throw TypeError("listener must be a function");function i(){this.removeListener(t,i),n||(n=!0,e.apply(this,arguments))}},i.prototype.removeListener=function(t,e){var n,i,r,o;if(!l(e))throw TypeError("listener must be a function");if(this._events&&this._events[t])if(r=(n=this._events[t]).length,i=-1,n===e||l(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(c(n)){for(o=r;0<o--;)if(n[o]===e||n[o].listener&&n[o].listener===e){i=o;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},i.prototype.removeAllListeners=function(t){var e,n;if(this._events)if(this._events.removeListener)if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);this.removeAllListeners("removeListener"),this._events={}}else{if(l(n=this._events[t]))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);delete this._events[t]}else 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t];return this},i.prototype.listeners=function(t){t=this._events&&this._events[t]?l(this._events[t])?[this._events[t]]:this._events[t].slice():[];return t},i.prototype.listenerCount=function(t){if(this._events){t=this._events[t];if(l(t))return 1;if(t)return t.length}return 0},i.listenerCount=function(t,e){return t.listenerCount(e)}},{}],47:[function(t,e,n){t("../../modules/core.regexp.escape"),e.exports=t("../../modules/_core").RegExp.escape},{"../../modules/_core":69,"../../modules/core.regexp.escape":177}],48:[function(t,e,n){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],49:[function(t,e,n){var i=t("./_cof");e.exports=function(t,e){if("number"!=typeof t&&"Number"!=i(t))throw TypeError(e);return+t}},{"./_cof":64}],50:[function(t,e,n){var i=t("./_wks")("unscopables"),r=Array.prototype;null==r[i]&&t("./_hide")(r,i,{}),e.exports=function(t){r[i][t]=!0}},{"./_hide":89,"./_wks":175}],51:[function(t,e,n){"use strict";var i=t("./_string-at")(!0);e.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},{"./_string-at":152}],52:[function(t,e,n){e.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},{}],53:[function(t,e,n){var i=t("./_is-object");e.exports=function(t){if(i(t))return t;throw TypeError(t+" is not an object!")}},{"./_is-object":98}],54:[function(t,e,n){"use strict";var l=t("./_to-object"),c=t("./_to-absolute-index"),u=t("./_to-length");e.exports=[].copyWithin||function(t,e){var n=l(this),i=u(n.length),r=c(t,i),o=c(e,i),t=2<arguments.length?arguments[2]:void 0,a=Math.min((void 0===t?i:c(t,i))-o,i-r),s=1;for(o<r&&r<o+a&&(s=-1,o+=a-1,r+=a-1);0<a--;)o in n?n[r]=n[o]:delete n[r],r+=s,o+=s;return n}},{"./_to-absolute-index":160,"./_to-length":164,"./_to-object":165}],55:[function(t,e,n){"use strict";var a=t("./_to-object"),s=t("./_to-absolute-index"),l=t("./_to-length");e.exports=function(t){for(var e=a(this),n=l(e.length),i=arguments.length,r=s(1<i?arguments[1]:void 0,n),i=2<i?arguments[2]:void 0,o=void 0===i?n:s(i,n);r<o;)e[r++]=t;return e}},{"./_to-absolute-index":160,"./_to-length":164,"./_to-object":165}],56:[function(t,e,n){var i=t("./_for-of");e.exports=function(t,e){var n=[];return i(t,!1,n.push,n,e),n}},{"./_for-of":85}],57:[function(t,e,n){var l=t("./_to-iobject"),c=t("./_to-length"),u=t("./_to-absolute-index");e.exports=function(s){return function(t,e,n){var i,r=l(t),o=c(r.length),a=u(n,o);if(s&&e!=e){for(;a<o;)if((i=r[a++])!=i)return!0}else for(;a<o;a++)if((s||a in r)&&r[a]===e)return s||a||0;return!s&&-1}}},{"./_to-absolute-index":160,"./_to-iobject":163,"./_to-length":164}],58:[function(t,e,n){var _=t("./_ctx"),b=t("./_iobject"),x=t("./_to-object"),w=t("./_to-length"),i=t("./_array-species-create");e.exports=function(h,t){var d=1==h,p=2==h,f=3==h,m=4==h,g=6==h,v=5==h||g,y=t||i;return function(t,e,n){for(var i,r,o=x(t),a=b(o),s=_(e,n,3),l=w(a.length),c=0,u=d?y(t,l):p?y(t,0):void 0;c<l;c++)if((v||c in a)&&(r=s(i=a[c],c,o),h))if(d)u[c]=r;else if(r)switch(h){case 3:return!0;case 5:return i;case 6:return c;case 2:u.push(i)}else if(m)return!1;return g?-1:f||m?m:u}}},{"./_array-species-create":61,"./_ctx":71,"./_iobject":94,"./_to-length":164,"./_to-object":165}],59:[function(t,e,n){var u=t("./_a-function"),h=t("./_to-object"),d=t("./_iobject"),p=t("./_to-length");e.exports=function(t,e,n,i,r){u(e);var o=h(t),a=d(o),s=p(o.length),l=r?s-1:0,c=r?-1:1;if(n<2)for(;;){if(l in a){i=a[l],l+=c;break}if(l+=c,r?l<0:s<=l)throw TypeError("Reduce of empty array with no initial value")}for(;r?0<=l:l<s;l+=c)l in a&&(i=e(i,a[l],l,o));return i}},{"./_a-function":48,"./_iobject":94,"./_to-length":164,"./_to-object":165}],60:[function(t,e,n){var i=t("./_is-object"),r=t("./_is-array"),o=t("./_wks")("species");e.exports=function(t){var e;return void 0===(e=r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),i(e))&&null===(e=e[o])?void 0:e)?Array:e}},{"./_is-array":96,"./_is-object":98,"./_wks":175}],61:[function(t,e,n){var i=t("./_array-species-constructor");e.exports=function(t,e){return new(i(t))(e)}},{"./_array-species-constructor":60}],62:[function(t,e,n){"use strict";var i=t("./_a-function"),r=t("./_is-object"),u=t("./_invoke"),h=[].slice,d={};e.exports=Function.bind||function(a){var s=i(this),l=h.call(arguments,1),c=function(){var t=l.concat(h.call(arguments));if(this instanceof c){var e=s,n=t.length,i=t;if(!(n in d)){for(var r=[],o=0;o<n;o++)r[o]="a["+o+"]";d[n]=Function("F,a","return new F("+r.join(",")+")")}return d[n](e,i)}return u(s,t,a)};return r(s.prototype)&&(c.prototype=s.prototype),c}},{"./_a-function":48,"./_invoke":93,"./_is-object":98}],63:[function(t,e,n){var i=t("./_cof"),r=t("./_wks")("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,e){try{return t[e]}catch(t){}}(t=Object(t),r))?e:o?i(t):"Object"==(e=i(t))&&"function"==typeof t.callee?"Arguments":e}},{"./_cof":64,"./_wks":175}],64:[function(t,e,n){var i={}.toString;e.exports=function(t){return i.call(t).slice(8,-1)}},{}],65:[function(t,e,n){"use strict";function a(t,e){var n,i=f(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n}var s=t("./_object-dp").f,l=t("./_object-create"),c=t("./_redefine-all"),u=t("./_ctx"),h=t("./_an-instance"),d=t("./_for-of"),i=t("./_iter-define"),r=t("./_iter-step"),o=t("./_set-species"),p=t("./_descriptors"),f=t("./_meta").fastKey,m=t("./_validate-collection"),g=p?"_s":"size";e.exports={getConstructor:function(t,r,n,i){var o=t(function(t,e){h(t,o,r,"_i"),t._t=r,t._i=l(null),t._f=void 0,t._l=void 0,t[g]=0,null!=e&&d(e,n,t[i],t)});return c(o.prototype,{clear:function(){for(var t=m(this,r),e=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete e[n.i];t._f=t._l=void 0,t[g]=0},delete:function(t){var e,n,i=m(this,r),t=a(i,t);return t&&(e=t.n,n=t.p,delete i._i[t.i],t.r=!0,n&&(n.n=e),e&&(e.p=n),i._f==t&&(i._f=e),i._l==t&&(i._l=n),i[g]--),!!t},forEach:function(t){m(this,r);for(var e,n=u(t,1<arguments.length?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!a(m(this,r),t)}}),p&&s(o.prototype,"size",{get:function(){return m(this,r)[g]}}),o},def:function(t,e,n){var i,r=a(t,e);return r?r.v=n:(t._l=r={i:i=f(e,!0),k:e,v:n,p:e=t._l,n:void 0,r:!1},t._f||(t._f=r),e&&(e.n=r),t[g]++,"F"!==i&&(t._i[i]=r)),t},getEntry:a,setStrong:function(t,n,e){i(t,n,function(t,e){this._t=m(t,n),this._k=e,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?r(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,r(1))},e?"entries":"values",!e,!0),o(n)}}},{"./_an-instance":52,"./_ctx":71,"./_descriptors":75,"./_for-of":85,"./_iter-define":102,"./_iter-step":104,"./_meta":112,"./_object-create":117,"./_object-dp":118,"./_redefine-all":137,"./_set-species":146,"./_validate-collection":172}],66:[function(t,e,n){var i=t("./_classof"),r=t("./_array-from-iterable");e.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},{"./_array-from-iterable":56,"./_classof":63}],67:[function(t,e,n){"use strict";function a(t){return t._l||(t._l=new i)}function i(){this.a=[]}function r(t,e){return m(t.a,function(t){return t[0]===e})}var s=t("./_redefine-all"),l=t("./_meta").getWeak,o=t("./_an-object"),c=t("./_is-object"),u=t("./_an-instance"),h=t("./_for-of"),d=t("./_array-methods"),p=t("./_has"),f=t("./_validate-collection"),m=d(5),g=d(6),v=0;i.prototype={get:function(t){t=r(this,t);if(t)return t[1]},has:function(t){return!!r(this,t)},set:function(t,e){var n=r(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(e){var t=g(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(t,n,i,r){var o=t(function(t,e){u(t,o,n,"_i"),t._t=n,t._i=v++,t._l=void 0,null!=e&&h(e,i,t[r],t)});return s(o.prototype,{delete:function(t){var e;return!!c(t)&&(!0===(e=l(t))?a(f(this,n)).delete(t):e&&p(e,this._i)&&delete e[this._i])},has:function(t){var e;return!!c(t)&&(!0===(e=l(t))?a(f(this,n)).has(t):e&&p(e,this._i))}}),o},def:function(t,e,n){var i=l(o(e),!0);return!0===i?a(t).set(e,n):i[t._i]=n,t},ufstore:a}},{"./_an-instance":52,"./_an-object":53,"./_array-methods":58,"./_for-of":85,"./_has":88,"./_is-object":98,"./_meta":112,"./_redefine-all":137,"./_validate-collection":172}],68:[function(t,e,n){"use strict";var v=t("./_global"),y=t("./_export"),_=t("./_redefine"),b=t("./_redefine-all"),x=t("./_meta"),w=t("./_for-of"),T=t("./_an-instance"),S=t("./_is-object"),C=t("./_fails"),E=t("./_iter-detect"),M=t("./_set-to-string-tag"),P=t("./_inherit-if-required");e.exports=function(n,t,e,i,r,o){function a(t){var n=m[t];_(m,t,"delete"==t?function(t){return!(o&&!S(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!S(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return o&&!S(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})}var s,l,c,u,h,d=v[n],p=d,f=r?"set":"add",m=p&&p.prototype,g={};return"function"==typeof p&&(o||m.forEach&&!C(function(){(new p).entries().next()}))?(l=(s=new p)[f](o?{}:-0,1)!=s,c=C(function(){s.has(1)}),u=E(function(t){new p(t)}),h=!o&&C(function(){for(var t=new p,e=5;e--;)t[f](e,e);return!t.has(-0)}),u||(((p=t(function(t,e){T(t,p,n);t=P(new d,t,p);return null!=e&&w(e,r,t[f],t),t})).prototype=m).constructor=p),(c||h)&&(a("delete"),a("has"),r)&&a("get"),(h||l)&&a(f),o&&m.clear&&delete m.clear):(p=i.getConstructor(t,n,r,f),b(p.prototype,e),x.NEED=!0),M(p,n),g[n]=p,y(y.G+y.W+y.F*(p!=d),g),o||i.setStrong(p,n,r),p}},{"./_an-instance":52,"./_export":79,"./_fails":81,"./_for-of":85,"./_global":87,"./_inherit-if-required":92,"./_is-object":98,"./_iter-detect":103,"./_meta":112,"./_redefine":138,"./_redefine-all":137,"./_set-to-string-tag":147}],69:[function(t,e,n){e=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},{}],70:[function(t,e,n){"use strict";var i=t("./_object-dp"),r=t("./_property-desc");e.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},{"./_object-dp":118,"./_property-desc":136}],71:[function(t,e,n){var o=t("./_a-function");e.exports=function(i,r,t){if(o(i),void 0===r)return i;switch(t){case 1:return function(t){return i.call(r,t)};case 2:return function(t,e){return i.call(r,t,e)};case 3:return function(t,e,n){return i.call(r,t,e,n)}}return function(){return i.apply(r,arguments)}}},{"./_a-function":48}],72:[function(t,e,n){"use strict";function i(t){return 9<t?t:"0"+t}var t=t("./_fails"),r=Date.prototype.getTime,o=Date.prototype.toISOString;e.exports=t(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!t(function(){o.call(new Date(NaN))})?function(){var t,e,n;if(isFinite(r.call(this)))return t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),(n=t<0?"-":9999<t?"+":"")+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+i(this.getUTCMonth()+1)+"-"+i(this.getUTCDate())+"T"+i(this.getUTCHours())+":"+i(this.getUTCMinutes())+":"+i(this.getUTCSeconds())+"."+(99<e?e:"0"+i(e))+"Z";throw RangeError("Invalid time value")}:o},{"./_fails":81}],73:[function(t,e,n){"use strict";var i=t("./_an-object"),r=t("./_to-primitive");e.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return r(i(this),"number"!=t)}},{"./_an-object":53,"./_to-primitive":166}],74:[function(t,e,n){e.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},{}],75:[function(t,e,n){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":81}],76:[function(t,e,n){var i=t("./_is-object"),r=t("./_global").document,o=i(r)&&i(r.createElement);e.exports=function(t){return o?r.createElement(t):{}}},{"./_global":87,"./_is-object":98}],77:[function(t,e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],78:[function(t,e,n){var s=t("./_object-keys"),l=t("./_object-gops"),c=t("./_object-pie");e.exports=function(t){var e=s(t),n=l.f;if(n)for(var i,r=n(t),o=c.f,a=0;r.length>a;)o.call(t,i=r[a++])&&e.push(i);return e}},{"./_object-gops":124,"./_object-keys":127,"./_object-pie":128}],79:[function(t,e,n){function p(t,e,n){var i,r,o,a=t&p.F,s=t&p.G,l=t&p.P,c=t&p.B,u=s?f:t&p.S?f[e]||(f[e]={}):(f[e]||{})[_],h=s?m:m[e]||(m[e]={}),d=h[_]||(h[_]={});for(i in n=s?e:n)r=((o=!a&&u&&void 0!==u[i])?u:n)[i],o=c&&o?y(r,f):l&&"function"==typeof r?y(Function.call,r):r,u&&v(u,i,r,t&p.U),h[i]!=r&&g(h,i,o),l&&d[i]!=r&&(d[i]=r)}var f=t("./_global"),m=t("./_core"),g=t("./_hide"),v=t("./_redefine"),y=t("./_ctx"),_="prototype";f.core=m,p.F=1,p.G=2,p.S=4,p.P=8,p.B=16,p.W=32,p.U=64,p.R=128,e.exports=p},{"./_core":69,"./_ctx":71,"./_global":87,"./_hide":89,"./_redefine":138}],80:[function(t,e,n){var i=t("./_wks")("match");e.exports=function(e){var n=/./;try{"/./"[e](n)}catch(t){try{return n[i]=!1,!"/./"[e](n)}catch(t){}}return!0}},{"./_wks":175}],81:[function(t,e,n){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],82:[function(t,e,n){"use strict";t("./es6.regexp.exec");var i,l=t("./_redefine"),c=t("./_hide"),u=t("./_fails"),h=t("./_defined"),d=t("./_wks"),p=t("./_regexp-exec"),f=d("species"),m=!u(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),g=(i=(t=/(?:)/).exec,t.exec=function(){return i.apply(this,arguments)},2===(t="ab".split(t)).length&&"a"===t[0]&&"b"===t[1]);e.exports=function(n,t,e){var o,i,r=d(n),a=!u(function(){var t={};return t[r]=function(){return 7},7!=""[n](t)}),s=a?!u(function(){var t=!1,e=/a/;return e.exec=function(){return t=!0,null},"split"===n&&(e.constructor={},e.constructor[f]=function(){return e}),e[r](""),!t}):void 0;a&&s&&("replace"!==n||m)&&("split"!==n||g)||(o=/./[r],e=(s=e(h,r,""[n],function(t,e,n,i,r){return e.exec===p?a&&!r?{done:!0,value:o.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}))[0],i=s[1],l(String.prototype,n,e),c(RegExp.prototype,r,2==t?function(t,e){return i.call(t,this,e)}:function(t){return i.call(t,this)}))}},{"./_defined":74,"./_fails":81,"./_hide":89,"./_redefine":138,"./_regexp-exec":140,"./_wks":175,"./es6.regexp.exec":272}],83:[function(t,e,n){"use strict";var i=t("./_an-object");e.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{"./_an-object":53}],84:[function(t,e,n){"use strict";var f=t("./_is-array"),m=t("./_is-object"),g=t("./_to-length"),v=t("./_ctx"),y=t("./_wks")("isConcatSpreadable");e.exports=function t(e,n,i,r,o,a,s,l){for(var c,u,h=o,d=0,p=!!s&&v(s,l,3);d<r;){if(d in i){if(c=p?p(i[d],d,n):i[d],u=!1,(u=m(c)?void 0!==(u=c[y])?!!u:f(c):u)&&0<a)h=t(e,n,c,g(c.length),h,a-1)-1;else{if(9007199254740991<=h)throw TypeError();e[h]=c}h++}d++}return h}},{"./_ctx":71,"./_is-array":96,"./_is-object":98,"./_to-length":164,"./_wks":175}],85:[function(t,e,n){var h=t("./_ctx"),d=t("./_iter-call"),p=t("./_is-array-iter"),f=t("./_an-object"),m=t("./_to-length"),g=t("./core.get-iterator-method"),v={},y={};(n=e.exports=function(t,e,n,i,r){var o,a,s,l,r=r?function(){return t}:g(t),c=h(n,i,e?2:1),u=0;if("function"!=typeof r)throw TypeError(t+" is not iterable!");if(p(r)){for(o=m(t.length);u<o;u++)if((l=e?c(f(a=t[u])[0],a[1]):c(t[u]))===v||l===y)return l}else for(s=r.call(t);!(a=s.next()).done;)if((l=d(s,c,a.value,e))===v||l===y)return l}).BREAK=v,n.RETURN=y},{"./_an-object":53,"./_ctx":71,"./_is-array-iter":95,"./_iter-call":100,"./_to-length":164,"./core.get-iterator-method":176}],86:[function(t,e,n){e.exports=t("./_shared")("native-function-to-string",Function.toString)},{"./_shared":149}],87:[function(t,e,n){e=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},{}],88:[function(t,e,n){var i={}.hasOwnProperty;e.exports=function(t,e){return i.call(t,e)}},{}],89:[function(t,e,n){var i=t("./_object-dp"),r=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},{"./_descriptors":75,"./_object-dp":118,"./_property-desc":136}],90:[function(t,e,n){t=t("./_global").document;e.exports=t&&t.documentElement},{"./_global":87}],91:[function(t,e,n){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":75,"./_dom-create":76,"./_fails":81}],92:[function(t,e,n){var i=t("./_is-object"),r=t("./_set-proto").set;e.exports=function(t,e,n){var e=e.constructor;return e!==n&&"function"==typeof e&&(e=e.prototype)!==n.prototype&&i(e)&&r&&r(t,e),t}},{"./_is-object":98,"./_set-proto":145}],93:[function(t,e,n){e.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},{}],94:[function(t,e,n){var i=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},{"./_cof":64}],95:[function(t,e,n){var i=t("./_iterators"),r=t("./_wks")("iterator"),o=Array.prototype;e.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},{"./_iterators":105,"./_wks":175}],96:[function(t,e,n){var i=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==i(t)}},{"./_cof":64}],97:[function(t,e,n){var i=t("./_is-object"),r=Math.floor;e.exports=function(t){return!i(t)&&isFinite(t)&&r(t)===t}},{"./_is-object":98}],98:[function(t,e,n){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],99:[function(t,e,n){var i=t("./_is-object"),r=t("./_cof"),o=t("./_wks")("match");e.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},{"./_cof":64,"./_is-object":98,"./_wks":175}],100:[function(t,e,n){var r=t("./_an-object");e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){i=e.return;throw void 0!==i&&r(i.call(e)),t}}},{"./_an-object":53}],101:[function(t,e,n){"use strict";var i=t("./_object-create"),r=t("./_property-desc"),o=t("./_set-to-string-tag"),a={};t("./_hide")(a,t("./_wks")("iterator"),function(){return this}),e.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},{"./_hide":89,"./_object-create":117,"./_property-desc":136,"./_set-to-string-tag":147,"./_wks":175}],102:[function(t,e,n){"use strict";function v(){return this}var y=t("./_library"),_=t("./_export"),b=t("./_redefine"),x=t("./_hide"),w=t("./_iterators"),T=t("./_iter-create"),S=t("./_set-to-string-tag"),C=t("./_object-gpo"),E=t("./_wks")("iterator"),M=!([].keys&&"next"in[].keys()),P="values";e.exports=function(t,e,n,i,r,o,a){T(n,e,i);function s(t){if(!M&&t in d)return d[t];switch(t){case"keys":case P:return function(){return new n(this,t)}}return function(){return new n(this,t)}}var l,c,i=e+" Iterator",u=r==P,h=!1,d=t.prototype,p=d[E]||d["@@iterator"]||r&&d[r],f=p||s(r),m=r?u?s("entries"):f:void 0,g="Array"==e&&d.entries||p;if(g&&(g=C(g.call(new t)))!==Object.prototype&&g.next&&(S(g,i,!0),y||"function"==typeof g[E]||x(g,E,v)),u&&p&&p.name!==P&&(h=!0,f=function(){return p.call(this)}),y&&!a||!M&&!h&&d[E]||x(d,E,f),w[e]=f,w[i]=v,r)if(l={values:u?f:s(P),keys:o?f:s("keys"),entries:m},a)for(c in l)c in d||b(d,c,l[c]);else _(_.P+_.F*(M||h),e,l);return l}},{"./_export":79,"./_hide":89,"./_iter-create":101,"./_iterators":105,"./_library":106,"./_object-gpo":125,"./_redefine":138,"./_set-to-string-tag":147,"./_wks":175}],103:[function(t,e,n){var o=t("./_wks")("iterator"),a=!1;try{var i=[7][o]();i.return=function(){a=!0},Array.from(i,function(){throw 2})}catch(t){}e.exports=function(t,e){if(!e&&!a)return!1;var n=!1;try{var i=[7],r=i[o]();r.next=function(){return{done:n=!0}},i[o]=function(){return r},t(i)}catch(t){}return n}},{"./_wks":175}],104:[function(t,e,n){e.exports=function(t,e){return{value:e,done:!!t}}},{}],105:[function(t,e,n){e.exports={}},{}],106:[function(t,e,n){e.exports=!1},{}],107:[function(t,e,n){var i=Math.expm1;e.exports=!i||22025.465794806718<i(10)||i(10)<22025.465794806718||-2e-17!=i(-2e-17)?function(t){return 0==(t=+t)?t:-1e-6<t&&t<1e-6?t+t*t/2:Math.exp(t)-1}:i},{}],108:[function(t,e,n){var i=t("./_math-sign"),t=Math.pow,r=t(2,-52),o=t(2,-23),a=t(2,127)*(2-o),s=t(2,-126);e.exports=Math.fround||function(t){var e,n=Math.abs(t),t=i(t);return n<s?t*(n/s/o+1/r-1/r)*s*o:a<(e=(e=(1+o/r)*n)-(e-n))||e!=e?t*(1/0):t*e}},{"./_math-sign":111}],109:[function(t,e,n){e.exports=Math.log1p||function(t){return-1e-8<(t=+t)&&t<1e-8?t-t*t/2:Math.log(1+t)}},{}],110:[function(t,e,n){e.exports=Math.scale||function(t,e,n,i,r){return 0===arguments.length||t!=t||e!=e||n!=n||i!=i||r!=r?NaN:t===1/0||t===-1/0?t:(t-e)*(r-i)/(n-e)+i}},{}],111:[function(t,e,n){e.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},{}],112:[function(t,e,n){function i(t){s(t,r,{value:{i:"O"+ ++l,w:{}}})}var r=t("./_uid")("meta"),o=t("./_is-object"),a=t("./_has"),s=t("./_object-dp").f,l=0,c=Object.isExtensible||function(){return!0},u=!t("./_fails")(function(){return c(Object.preventExtensions({}))}),h=e.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,r)){if(!c(t))return"F";if(!e)return"E";i(t)}return t[r].i},getWeak:function(t,e){if(!a(t,r)){if(!c(t))return!0;if(!e)return!1;i(t)}return t[r].w},onFreeze:function(t){return u&&h.NEED&&c(t)&&!a(t,r)&&i(t),t}}},{"./_fails":81,"./_has":88,"./_is-object":98,"./_object-dp":118,"./_uid":170}],113:[function(t,e,n){function r(t,e,n){var i=s.get(t);if(!i){if(!n)return;s.set(t,i=new o)}if(!(t=i.get(e))){if(!n)return;i.set(e,t=new o)}return t}var o=t("./es6.map"),i=t("./_export"),a=t("./_shared")("metadata"),s=a.store||(a.store=new(t("./es6.weak-map")));e.exports={store:s,map:r,has:function(t,e,n){e=r(e,n,!1);return void 0!==e&&e.has(t)},get:function(t,e,n){e=r(e,n,!1);return void 0===e?void 0:e.get(t)},set:function(t,e,n,i){r(n,i,!0).set(t,e)},keys:function(t,e){var t=r(t,e,!1),n=[];return t&&t.forEach(function(t,e){n.push(e)}),n},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){i(i.S,"Reflect",t)}}},{"./_export":79,"./_shared":149,"./es6.map":207,"./es6.weak-map":314}],114:[function(t,e,n){var s=t("./_global"),l=t("./_task").set,c=s.MutationObserver||s.WebKitMutationObserver,u=s.process,h=s.Promise,d="process"==t("./_cof")(u);e.exports=function(){function t(){var t,e;for(d&&(t=u.domain)&&t.exit();n;){e=n.fn,n=n.next;try{e()}catch(t){throw n?r():i=void 0,t}}i=void 0,t&&t.enter()}var n,i,e,r,o,a;return r=d?function(){u.nextTick(t)}:!c||s.navigator&&s.navigator.standalone?h&&h.resolve?(e=h.resolve(void 0),function(){e.then(t)}):function(){l.call(s,t)}:(o=!0,a=document.createTextNode(""),new c(t).observe(a,{characterData:!0}),function(){a.data=o=!o}),function(t){t={fn:t,next:void 0};i&&(i.next=t),n||(n=t,r()),i=t}}},{"./_cof":64,"./_global":87,"./_task":159}],115:[function(t,e,n){"use strict";var r=t("./_a-function");function i(t){var n,i;this.promise=new t(function(t,e){if(void 0!==n||void 0!==i)throw TypeError("Bad Promise constructor");n=t,i=e}),this.resolve=r(n),this.reject=r(i)}e.exports.f=function(t){return new i(t)}},{"./_a-function":48}],116:[function(t,e,n){"use strict";var d=t("./_descriptors"),p=t("./_object-keys"),f=t("./_object-gops"),m=t("./_object-pie"),g=t("./_to-object"),v=t("./_iobject"),r=Object.assign;e.exports=!r||t("./_fails")(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=r({},t)[n]||Object.keys(r({},e)).join("")!=i})?function(t,e){for(var n=g(t),i=arguments.length,r=1,o=f.f,a=m.f;r<i;)for(var s,l=v(arguments[r++]),c=o?p(l).concat(o(l)):p(l),u=c.length,h=0;h<u;)s=c[h++],d&&!a.call(l,s)||(n[s]=l[s]);return n}:r},{"./_descriptors":75,"./_fails":81,"./_iobject":94,"./_object-gops":124,"./_object-keys":127,"./_object-pie":128,"./_to-object":165}],117:[function(n,t,e){function i(){}var r=n("./_an-object"),o=n("./_object-dps"),a=n("./_enum-bug-keys"),s=n("./_shared-key")("IE_PROTO"),l="prototype",c=function(){var t=n("./_dom-create")("iframe"),e=a.length;for(t.style.display="none",n("./_html").appendChild(t),t.src="javascript:",(t=t.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;e--;)delete c[l][a[e]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(i[l]=r(t),n=new i,i[l]=null,n[s]=t):n=c(),void 0===e?n:o(n,e)}},{"./_an-object":53,"./_dom-create":76,"./_enum-bug-keys":77,"./_html":90,"./_object-dps":119,"./_shared-key":148}],118:[function(t,e,n){var i=t("./_an-object"),r=t("./_ie8-dom-define"),o=t("./_to-primitive"),a=Object.defineProperty;n.f=t("./_descriptors")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},{"./_an-object":53,"./_descriptors":75,"./_ie8-dom-define":91,"./_to-primitive":166}],119:[function(t,e,n){var a=t("./_object-dp"),s=t("./_an-object"),l=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){s(t);for(var n,i=l(e),r=i.length,o=0;o<r;)a.f(t,n=i[o++],e[n]);return t}},{"./_an-object":53,"./_descriptors":75,"./_object-dp":118,"./_object-keys":127}],120:[function(e,t,n){"use strict";t.exports=e("./_library")||!e("./_fails")(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete e("./_global")[t]})},{"./_fails":81,"./_global":87,"./_library":106}],121:[function(t,e,n){var i=t("./_object-pie"),r=t("./_property-desc"),o=t("./_to-iobject"),a=t("./_to-primitive"),s=t("./_has"),l=t("./_ie8-dom-define"),c=Object.getOwnPropertyDescriptor;n.f=t("./_descriptors")?c:function(t,e){if(t=o(t),e=a(e,!0),l)try{return c(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},{"./_descriptors":75,"./_has":88,"./_ie8-dom-define":91,"./_object-pie":128,"./_property-desc":136,"./_to-iobject":163,"./_to-primitive":166}],122:[function(t,e,n){var i=t("./_to-iobject"),r=t("./_object-gopn").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(t){if(!a||"[object Window]"!=o.call(t))return r(i(t));try{return r(t)}catch(t){return a.slice()}}},{"./_object-gopn":123,"./_to-iobject":163}],123:[function(t,e,n){var i=t("./_object-keys-internal"),r=t("./_enum-bug-keys").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},{"./_enum-bug-keys":77,"./_object-keys-internal":126}],124:[function(t,e,n){n.f=Object.getOwnPropertySymbols},{}],125:[function(t,e,n){var i=t("./_has"),r=t("./_to-object"),o=t("./_shared-key")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},{"./_has":88,"./_shared-key":148,"./_to-object":165}],126:[function(t,e,n){var a=t("./_has"),s=t("./_to-iobject"),l=t("./_array-includes")(!1),c=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var n,i=s(t),r=0,o=[];for(n in i)n!=c&&a(i,n)&&o.push(n);for(;e.length>r;)!a(i,n=e[r++])||~l(o,n)||o.push(n);return o}},{"./_array-includes":57,"./_has":88,"./_shared-key":148,"./_to-iobject":163}],127:[function(t,e,n){var i=t("./_object-keys-internal"),r=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return i(t,r)}},{"./_enum-bug-keys":77,"./_object-keys-internal":126}],128:[function(t,e,n){n.f={}.propertyIsEnumerable},{}],129:[function(t,e,n){var r=t("./_export"),o=t("./_core"),a=t("./_fails");e.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],i={};i[t]=e(n),r(r.S+r.F*a(function(){n(1)}),"Object",i)}},{"./_core":69,"./_export":79,"./_fails":81}],130:[function(t,e,n){var l=t("./_descriptors"),c=t("./_object-keys"),u=t("./_to-iobject"),h=t("./_object-pie").f;e.exports=function(s){return function(t){for(var e,n=u(t),i=c(n),r=i.length,o=0,a=[];o<r;)e=i[o++],l&&!h.call(n,e)||a.push(s?[e,n[e]]:n[e]);return a}}},{"./_descriptors":75,"./_object-keys":127,"./_object-pie":128,"./_to-iobject":163}],131:[function(t,e,n){var i=t("./_object-gopn"),r=t("./_object-gops"),o=t("./_an-object"),t=t("./_global").Reflect;e.exports=t&&t.ownKeys||function(t){var e=i.f(o(t)),n=r.f;return n?e.concat(n(t)):e}},{"./_an-object":53,"./_global":87,"./_object-gopn":123,"./_object-gops":124}],132:[function(t,e,n){var i=t("./_global").parseFloat,r=t("./_string-trim").trim;e.exports=1/i(t("./_string-ws")+"-0")!=-1/0?function(t){var t=r(String(t),3),e=i(t);return 0===e&&"-"==t.charAt(0)?-0:e}:i},{"./_global":87,"./_string-trim":157,"./_string-ws":158}],133:[function(t,e,n){var i=t("./_global").parseInt,r=t("./_string-trim").trim,t=t("./_string-ws"),o=/^[-+]?0[xX]/;e.exports=8!==i(t+"08")||22!==i(t+"0x16")?function(t,e){t=r(String(t),3);return i(t,e>>>0||(o.test(t)?16:10))}:i},{"./_global":87,"./_string-trim":157,"./_string-ws":158}],134:[function(t,e,n){e.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},{}],135:[function(t,e,n){var i=t("./_an-object"),r=t("./_is-object"),o=t("./_new-promise-capability");e.exports=function(t,e){return i(t),r(e)&&e.constructor===t?e:((0,(t=o.f(t)).resolve)(e),t.promise)}},{"./_an-object":53,"./_is-object":98,"./_new-promise-capability":115}],136:[function(t,e,n){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],137:[function(t,e,n){var r=t("./_redefine");e.exports=function(t,e,n){for(var i in e)r(t,i,e[i],n);return t}},{"./_redefine":138}],138:[function(t,e,n){var o=t("./_global"),a=t("./_hide"),s=t("./_has"),l=t("./_uid")("src"),i=t("./_function-to-string"),c=(""+i).split("toString");t("./_core").inspectSource=function(t){return i.call(t)},(e.exports=function(t,e,n,i){var r="function"==typeof n;r&&!s(n,"name")&&a(n,"name",e),t[e]!==n&&(r&&!s(n,l)&&a(n,l,t[e]?""+t[e]:c.join(String(e))),t===o?t[e]=n:i?t[e]?t[e]=n:a(t,e,n):(delete t[e],a(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[l]||i.call(this)})},{"./_core":69,"./_function-to-string":86,"./_global":87,"./_has":88,"./_hide":89,"./_uid":170}],139:[function(t,e,n){"use strict";var i=t("./_classof"),r=RegExp.prototype.exec;e.exports=function(t,e){var n=t.exec;if("function"==typeof n){n=n.call(t,e);if("object"!=typeof n)throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},{"./_classof":63}],140:[function(t,e,n){"use strict";var i,r,o=t("./_flags"),a=RegExp.prototype.exec,s=String.prototype.replace,t=a,l="lastIndex",c=(i=/a/,r=/b*/g,a.call(i,"a"),a.call(r,"a"),0!==i[l]||0!==r[l]),u=void 0!==/()??/.exec("")[1];e.exports=t=c||u?function(t){var e,n,i,r;return u&&(n=new RegExp("^"+this.source+"$(?!\\s)",o.call(this))),c&&(e=this[l]),i=a.call(this,t),c&&i&&(this[l]=this.global?i.index+i[0].length:e),u&&i&&1<i.length&&s.call(i[0],n,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)}),i}:t},{"./_flags":83}],141:[function(t,e,n){e.exports=function(e,n){var i=n===Object(n)?function(t){return n[t]}:n;return function(t){return String(t).replace(e,i)}}},{}],142:[function(t,e,n){e.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},{}],143:[function(t,e,n){"use strict";var i=t("./_export"),a=t("./_a-function"),s=t("./_ctx"),l=t("./_for-of");e.exports=function(t){i(i.S,t,{from:function(t){var e,n,i,r,o=arguments[1];return a(this),(e=void 0!==o)&&a(o),null==t?new this:(n=[],e?(i=0,r=s(o,arguments[2],2),l(t,!1,function(t){n.push(r(t,i++))})):l(t,!1,n.push,n),new this(n))}})}},{"./_a-function":48,"./_ctx":71,"./_export":79,"./_for-of":85}],144:[function(t,e,n){"use strict";var i=t("./_export");e.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},{"./_export":79}],145:[function(e,t,n){function r(t,e){if(o(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")}var i=e("./_is-object"),o=e("./_an-object");t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{(i=e("./_ctx")(Function.call,e("./_object-gopd").f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return r(t,e),n?t.__proto__=e:i(t,e),t}}({},!1):void 0),check:r}},{"./_an-object":53,"./_ctx":71,"./_is-object":98,"./_object-gopd":121}],146:[function(t,e,n){"use strict";var i=t("./_global"),r=t("./_object-dp"),o=t("./_descriptors"),a=t("./_wks")("species");e.exports=function(t){t=i[t];o&&t&&!t[a]&&r.f(t,a,{configurable:!0,get:function(){return this}})}},{"./_descriptors":75,"./_global":87,"./_object-dp":118,"./_wks":175}],147:[function(t,e,n){var i=t("./_object-dp").f,r=t("./_has"),o=t("./_wks")("toStringTag");e.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},{"./_has":88,"./_object-dp":118,"./_wks":175}],148:[function(t,e,n){var i=t("./_shared")("keys"),r=t("./_uid");e.exports=function(t){return i[t]||(i[t]=r(t))}},{"./_shared":149,"./_uid":170}],149:[function(t,e,n){var i=t("./_core"),r=t("./_global"),o="__core-js_shared__",a=r[o]||(r[o]={});(e.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:t("./_library")?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},{"./_core":69,"./_global":87,"./_library":106}],150:[function(t,e,n){var i=t("./_an-object"),r=t("./_a-function"),o=t("./_wks")("species");e.exports=function(t,e){var t=i(t).constructor;return void 0===t||null==(t=i(t)[o])?e:r(t)}},{"./_a-function":48,"./_an-object":53,"./_wks":175}],151:[function(t,e,n){"use strict";var i=t("./_fails");e.exports=function(t,e){return!!t&&i(function(){e?t.call(null,function(){},1):t.call(null)})}},{"./_fails":81}],152:[function(t,e,n){var o=t("./_to-integer"),a=t("./_defined");e.exports=function(r){return function(t,e){var n,t=String(a(t)),e=o(e),i=t.length;return e<0||i<=e?r?"":void 0:(n=t.charCodeAt(e))<55296||56319<n||e+1===i||(i=t.charCodeAt(e+1))<56320||57343<i?r?t.charAt(e):n:r?t.slice(e,e+2):i-56320+(n-55296<<10)+65536}}},{"./_defined":74,"./_to-integer":162}],153:[function(t,e,n){var i=t("./_is-regexp"),r=t("./_defined");e.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},{"./_defined":74,"./_is-regexp":99}],154:[function(t,e,n){function i(t,e,n,i){var t=String(a(t)),r="<"+e;return""!==n&&(r+=" "+n+'="'+String(i).replace(s,"&quot;")+'"'),r+">"+t+"</"+e+">"}var r=t("./_export"),o=t("./_fails"),a=t("./_defined"),s=/"/g;e.exports=function(e,t){var n={};n[e]=t(i),r(r.P+r.F*o(function(){var t=""[e]('"');return t!==t.toLowerCase()||3<t.split('"').length}),"String",n)}},{"./_defined":74,"./_export":79,"./_fails":81}],155:[function(t,e,n){var o=t("./_to-length"),a=t("./_string-repeat"),s=t("./_defined");e.exports=function(t,e,n,i){var t=String(s(t)),r=t.length,n=void 0===n?" ":String(n),e=o(e);return e<=r||""==n?t:(e=e-r,(r=a.call(n,Math.ceil(e/n.length))).length>e&&(r=r.slice(0,e)),i?r+t:t+r)}},{"./_defined":74,"./_string-repeat":156,"./_to-length":164}],156:[function(t,e,n){"use strict";var r=t("./_to-integer"),o=t("./_defined");e.exports=function(t){var e=String(o(this)),n="",i=r(t);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;0<i;(i>>>=1)&&(e+=e))1&i&&(n+=e);return n}},{"./_defined":74,"./_to-integer":162}],157:[function(t,e,n){function i(t,e,n){var i={},r=a(function(){return!!s[t]()||"​"!="​"[t]()}),e=i[t]=r?e(u):s[t];n&&(i[n]=e),o(o.P+o.F*r,"String",i)}var o=t("./_export"),r=t("./_defined"),a=t("./_fails"),s=t("./_string-ws"),t="["+s+"]",l=RegExp("^"+t+t+"*"),c=RegExp(t+t+"*$"),u=i.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),t=2&e?t.replace(c,""):t};e.exports=i},{"./_defined":74,"./_export":79,"./_fails":81,"./_string-ws":158}],158:[function(t,e,n){e.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},{}],159:[function(t,e,n){function i(){var t,e=+this;v.hasOwnProperty(e)&&(t=v[e],delete v[e],t())}function r(t){i.call(t.data)}var o,a=t("./_ctx"),s=t("./_invoke"),l=t("./_html"),c=t("./_dom-create"),u=t("./_global"),h=u.process,d=u.setImmediate,p=u.clearImmediate,f=u.MessageChannel,m=u.Dispatch,g=0,v={},y="onreadystatechange";d&&p||(d=function(t){for(var e=[],n=1;n<arguments.length;)e.push(arguments[n++]);return v[++g]=function(){s("function"==typeof t?t:Function(t),e)},o(g),g},p=function(t){delete v[t]},"process"==t("./_cof")(h)?o=function(t){h.nextTick(a(i,t,1))}:m&&m.now?o=function(t){m.now(a(i,t,1))}:f?(f=(t=new f).port2,t.port1.onmessage=r,o=a(f.postMessage,f,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(o=function(t){u.postMessage(t+"","*")},u.addEventListener("message",r,!1)):o=y in c("script")?function(t){l.appendChild(c("script"))[y]=function(){l.removeChild(this),i.call(t)}}:function(t){setTimeout(a(i,t,1),0)}),e.exports={set:d,clear:p}},{"./_cof":64,"./_ctx":71,"./_dom-create":76,"./_global":87,"./_html":90,"./_invoke":93}],160:[function(t,e,n){var i=t("./_to-integer"),r=Math.max,o=Math.min;e.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},{"./_to-integer":162}],161:[function(t,e,n){var i=t("./_to-integer"),r=t("./_to-length");e.exports=function(t){if(void 0===t)return 0;var t=i(t),e=r(t);if(t!==e)throw RangeError("Wrong length!");return e}},{"./_to-integer":162,"./_to-length":164}],162:[function(t,e,n){var i=Math.ceil,r=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(0<t?r:i)(t)}},{}],163:[function(t,e,n){var i=t("./_iobject"),r=t("./_defined");e.exports=function(t){return i(r(t))}},{"./_defined":74,"./_iobject":94}],164:[function(t,e,n){var i=t("./_to-integer"),r=Math.min;e.exports=function(t){return 0<t?r(i(t),9007199254740991):0}},{"./_to-integer":162}],165:[function(t,e,n){var i=t("./_defined");e.exports=function(t){return Object(i(t))}},{"./_defined":74}],166:[function(t,e,n){var r=t("./_is-object");e.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t))||"function"==typeof(n=t.valueOf)&&!r(i=n.call(t))||!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":98}],167:[function(t,I,F){"use strict";var p,f,m,g,v,B,N,U,y,e,z,_,V,G,H,i,W,b,$,q,X,Y,x,Z,J,K,n,r,Q,tt,et,nt,it,rt,w,ot,T,at,o,st,lt,ct,S,C,ut,ht,dt,pt,ft,mt,gt,vt,yt,_t,bt,xt,wt,Tt,St,Ct,Et,Mt,E,a,M,P,Pt,k,s,A,kt,O,At,Ot,Rt,R,l,h,Lt,L,c,Dt,jt,It,Ft,Bt,Nt,Ut,D,zt,u,d,j;t("./_descriptors")?(p=t("./_library"),f=t("./_global"),m=t("./_fails"),g=t("./_export"),v=t("./_typed"),s=t("./_typed-buffer"),B=t("./_ctx"),N=t("./_an-instance"),U=t("./_property-desc"),y=t("./_hide"),e=t("./_redefine-all"),z=t("./_to-integer"),_=t("./_to-length"),V=t("./_to-index"),G=t("./_to-absolute-index"),H=t("./_to-primitive"),i=t("./_has"),W=t("./_classof"),b=t("./_is-object"),$=t("./_to-object"),q=t("./_is-array-iter"),X=t("./_object-create"),Y=t("./_object-gpo"),x=t("./_object-gopn").f,Z=t("./core.get-iterator-method"),J=t("./_uid"),K=t("./_wks"),n=t("./_array-methods"),c=t("./_array-includes"),r=t("./_species-constructor"),u=t("./es6.array.iterator"),Q=t("./_iterators"),tt=t("./_iter-detect"),et=t("./_set-species"),nt=t("./_array-fill"),it=t("./_array-copy-within"),rt=t("./_object-dp"),t=t("./_object-gopd"),w=rt.f,ot=t.f,T=f.RangeError,at=f.TypeError,o=f.Uint8Array,lt="Shared"+(st="ArrayBuffer"),ct="BYTES_PER_ELEMENT",S="prototype",d=Array[S],C=s.ArrayBuffer,ut=s.DataView,ht=n(0),dt=n(2),pt=n(3),ft=n(4),mt=n(5),gt=n(6),vt=c(!0),yt=c(!1),_t=u.values,bt=u.keys,xt=u.entries,wt=d.lastIndexOf,Tt=d.reduce,St=d.reduceRight,Ct=d.join,Et=d.sort,Mt=d.slice,E=d.toString,a=d.toLocaleString,M=K("iterator"),P=K("toStringTag"),Pt=J("typed_constructor"),k=J("def_constructor"),s=v.CONSTR,A=v.TYPED,kt=v.VIEW,O="Wrong length!",At=n(1,function(t,e){return h(r(t,t[k]),e)}),Ot=m(function(){return 1===new o(new Uint16Array([1]).buffer)[0]}),Rt=!!o&&!!o[S].set&&m(function(){new o(1).set({})}),R=function(t,e){t=z(t);if(t<0||t%e)throw T("Wrong offset!");return t},l=function(t){if(b(t)&&A in t)return t;throw at(t+" is not a typed array!")},h=function(t,e){if(b(t)&&Pt in t)return new t(e);throw at("It is not a typed array constructor!")},Lt=function(t,e){return L(r(t,t[k]),e)},L=function(t,e){for(var n=0,i=e.length,r=h(t,i);n<i;)r[n]=e[n++];return r},c=function(t,e,n){w(t,e,{get:function(){return this._d[n]}})},Dt=function(t){var e,n,i,r,o,a,s=$(t),t=arguments.length,l=1<t?arguments[1]:void 0,c=void 0!==l,u=Z(s);if(null!=u&&!q(u)){for(a=u.call(s),i=[],e=0;!(o=a.next()).done;e++)i.push(o.value);s=i}for(c&&2<t&&(l=B(l,arguments[2],2)),e=0,n=_(s.length),r=h(this,n);e<n;e++)r[e]=c?l(s[e],e):s[e];return r},jt=function(){for(var t=0,e=arguments.length,n=h(this,e);t<e;)n[t]=arguments[t++];return n},It=!!o&&m(function(){a.call(new o(1))}),Ft=function(){return a.apply(It?Mt.call(l(this)):l(this),arguments)},Bt={copyWithin:function(t,e){return it.call(l(this),t,e,2<arguments.length?arguments[2]:void 0)},every:function(t){return ft(l(this),t,1<arguments.length?arguments[1]:void 0)},fill:function(t){return nt.apply(l(this),arguments)},filter:function(t){return Lt(this,dt(l(this),t,1<arguments.length?arguments[1]:void 0))},find:function(t){return mt(l(this),t,1<arguments.length?arguments[1]:void 0)},findIndex:function(t){return gt(l(this),t,1<arguments.length?arguments[1]:void 0)},forEach:function(t){ht(l(this),t,1<arguments.length?arguments[1]:void 0)},indexOf:function(t){return yt(l(this),t,1<arguments.length?arguments[1]:void 0)},includes:function(t){return vt(l(this),t,1<arguments.length?arguments[1]:void 0)},join:function(t){return Ct.apply(l(this),arguments)},lastIndexOf:function(t){return wt.apply(l(this),arguments)},map:function(t){return At(l(this),t,1<arguments.length?arguments[1]:void 0)},reduce:function(t){return Tt.apply(l(this),arguments)},reduceRight:function(t){return St.apply(l(this),arguments)},reverse:function(){for(var t,e=l(this).length,n=Math.floor(e/2),i=0;i<n;)t=this[i],this[i++]=this[--e],this[e]=t;return this},some:function(t){return pt(l(this),t,1<arguments.length?arguments[1]:void 0)},sort:function(t){return Et.call(l(this),t)},subarray:function(t,e){var n=l(this),i=n.length,t=G(t,i);return new(r(n,n[k]))(n.buffer,n.byteOffset+t*n.BYTES_PER_ELEMENT,_((void 0===e?i:G(e,i))-t))}},Nt=function(t,e){return Lt(this,Mt.call(l(this),t,e))},Ut=function(t){l(this);var e=R(arguments[1],1),n=this.length,i=$(t),r=_(i.length),o=0;if(n<r+e)throw T(O);for(;o<r;)this[e+o]=i[o++]},D={entries:function(){return xt.call(l(this))},keys:function(){return bt.call(l(this))},values:function(){return _t.call(l(this))}},zt=function(t,e){return b(t)&&t[A]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},u=function(t,e){return zt(t,e=H(e,!0))?U(2,t[e]):ot(t,e)},d=function(t,e,n){return!(zt(t,e=H(e,!0))&&b(n)&&i(n,"value"))||i(n,"get")||i(n,"set")||n.configurable||i(n,"writable")&&!n.writable||i(n,"enumerable")&&!n.enumerable?w(t,e,n):(t[e]=n.value,t)},s||(t.f=u,rt.f=d),g(g.S+g.F*!s,"Object",{getOwnPropertyDescriptor:u,defineProperty:d}),m(function(){E.call({})})&&(E=a=function(){return Ct.call(this)}),j=e({},Bt),e(j,D),y(j,M,D.values),e(j,{slice:Nt,set:Ut,constructor:function(){},toString:E,toLocaleString:Ft}),c(j,"buffer","b"),c(j,"byteOffset","o"),c(j,"byteLength","l"),c(j,"length","e"),w(j,P,{get:function(){return this[A]}}),I.exports=function(t,c,e,r){function u(t,i){w(t,i,{get:function(){var t=this,e=i;return(t=t._d).v[n](e*c+t.o,Ot)},set:function(t){var e=this,n=i;e=e._d,r&&(t=(t=Math.round(t))<0?0:255<t?255:255&t),e.v[o](n*c+e.o,t,Ot)},enumerable:!0})}var h=t+((r=!!r)?"Clamped":"")+"Array",n="get"+t,o="set"+t,d=f[h],a=d||{},t=d&&Y(d),i=!d||!v.ABV,s={},l=d&&d[S],i=(i?(d=e(function(t,e,n,i){N(t,d,h,"_d");var r,o,a=0,s=0;if(b(e)){if(!(e instanceof C||(l=W(e))==st||l==lt))return A in e?L(d,e):Dt.call(d,e);var l=e,s=R(n,c),n=e.byteLength;if(void 0===i){if(n%c)throw T(O);if((r=n-s)<0)throw T(O)}else if(n<(r=_(i)*c)+s)throw T(O);o=r/c}else o=V(e),l=new C(r=o*c);for(y(t,"_d",{b:l,o:s,l:r,e:o,v:new ut(l)});a<o;)u(t,a++)}),l=d[S]=X(j),y(l,"constructor",d)):m(function(){d(1)})&&m(function(){new d(-1)})&&tt(function(t){new d,new d(null),new d(1.5),new d(t)},!0)||(d=e(function(t,e,n,i){return N(t,d,h),b(e)?e instanceof C||(t=W(e))==st||t==lt?void 0!==i?new a(e,R(n,c),i):void 0!==n?new a(e,R(n,c)):new a(e):A in e?L(d,e):Dt.call(d,e):new a(V(e))}),ht(t!==Function.prototype?x(a).concat(x(t)):x(a),function(t){t in d||y(d,t,a[t])}),d[S]=l,p)||(l.constructor=d),l[M]),e=!!i&&("values"==i.name||null==i.name),t=D.values;y(d,Pt,!0),y(l,A,h),y(l,kt,!0),y(l,k,d),(r?new d(1)[P]==h:P in l)||w(l,P,{get:function(){return h}}),s[h]=d,g(g.G+g.W+g.F*(d!=a),s),g(g.S,h,{BYTES_PER_ELEMENT:c}),g(g.S+g.F*m(function(){a.of.call(d,1)}),h,{from:Dt,of:jt}),ct in l||y(l,ct,c),g(g.P,h,Bt),et(h),g(g.P+g.F*Rt,h,{set:Ut}),g(g.P+g.F*!e,h,D),p||l.toString==E||(l.toString=E),g(g.P+g.F*m(function(){new d(1).slice()}),h,{slice:Nt}),g(g.P+g.F*(m(function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()})||!m(function(){l.toLocaleString.call([1,2])})),h,{toLocaleString:Ft}),Q[h]=e?i:t,p||e||y(l,M,t)}):I.exports=function(){}},{"./_an-instance":52,"./_array-copy-within":54,"./_array-fill":55,"./_array-includes":57,"./_array-methods":58,"./_classof":63,"./_ctx":71,"./_descriptors":75,"./_export":79,"./_fails":81,"./_global":87,"./_has":88,"./_hide":89,"./_is-array-iter":95,"./_is-object":98,"./_iter-detect":103,"./_iterators":105,"./_library":106,"./_object-create":117,"./_object-dp":118,"./_object-gopd":121,"./_object-gopn":123,"./_object-gpo":125,"./_property-desc":136,"./_redefine-all":137,"./_set-species":146,"./_species-constructor":150,"./_to-absolute-index":160,"./_to-index":161,"./_to-integer":162,"./_to-length":164,"./_to-object":165,"./_to-primitive":166,"./_typed":169,"./_typed-buffer":168,"./_uid":170,"./_wks":175,"./core.get-iterator-method":176,"./es6.array.iterator":188}],168:[function(t,I,e){"use strict";var n=t("./_global"),i=t("./_descriptors"),F=t("./_library"),r=t("./_typed"),o=t("./_hide"),a=t("./_redefine-all"),s=t("./_fails"),l=t("./_an-instance"),B=t("./_to-integer"),N=t("./_to-length"),u=t("./_to-index"),c=t("./_object-gopn").f,U=t("./_object-dp").f,z=t("./_array-fill"),t=t("./_set-to-string-tag"),h="ArrayBuffer",d="DataView",p="prototype",f="Wrong index!",m=n[h],g=n[d],v=n.Math,y=n.RangeError,_=n.Infinity,b=m,V=v.abs,x=v.pow,G=v.floor,H=v.log,W=v.LN2,n="byteLength",v="byteOffset",w=i?"_b":"buffer",T=i?"_l":n,S=i?"_o":v;function C(t,e,n){var i,r,o,a=new Array(n),s=8*n-e-1,n=(1<<s)-1,l=n>>1,c=23===e?x(2,-24)-x(2,-77):0,u=0,h=t<0||0===t&&1/t<0?1:0;for((t=V(t))!=t||t===_?(r=t!=t?1:0,i=n):(i=G(H(t)/W),t*(o=x(2,-i))<1&&(i--,o*=2),2<=(t+=1<=i+l?c/o:c*x(2,1-l))*o&&(i++,o/=2),n<=i+l?(r=0,i=n):1<=i+l?(r=(t*o-1)*x(2,e),i+=l):(r=t*x(2,l-1)*x(2,e),i=0));8<=e;a[u++]=255&r,r/=256,e-=8);for(i=i<<e|r,s+=e;0<s;a[u++]=255&i,i/=256,s-=8);return a[--u]|=128*h,a}function E(t,e,n){var i,r=8*n-e-1,o=(1<<r)-1,a=o>>1,s=r-7,l=n-1,r=t[l--],c=127&r;for(r>>=7;0<s;c=256*c+t[l],l--,s-=8);for(i=c&(1<<-s)-1,c>>=-s,s+=e;0<s;i=256*i+t[l],l--,s-=8);if(0===c)c=1-a;else{if(c===o)return i?NaN:r?-_:_;i+=x(2,e),c-=a}return(r?-1:1)*i*x(2,c-e)}function M(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function P(t){return[255&t]}function k(t){return[255&t,t>>8&255]}function A(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function $(t){return C(t,52,8)}function q(t){return C(t,23,4)}function O(t,e,n){U(t[p],e,{get:function(){return this[n]}})}function R(t,e,n,i){n=u(+n);if(n+e>t[T])throw y(f);var r=t[w]._b,n=n+t[S],t=r.slice(n,n+e);return i?t:t.reverse()}function L(t,e,n,i,r,o){n=u(+n);if(n+e>t[T])throw y(f);for(var a=t[w]._b,s=n+t[S],l=i(+r),c=0;c<e;c++)a[s+c]=l[o?c:e-c-1]}if(r.ABV){if(!s(function(){m(1)})||!s(function(){new m(-1)})||s(function(){return new m,new m(1.5),new m(NaN),m.name!=h})){for(var D,s=(m=function(t){return l(this,m),new b(u(t))})[p]=b[p],j=c(b),X=0;j.length>X;)(D=j[X++])in m||o(m,D,b[D]);F||(s.constructor=m)}var c=new g(new m(2)),Y=g[p].setInt8;c.setInt8(0,2147483648),c.setInt8(1,2147483649),!c.getInt8(0)&&c.getInt8(1)||a(g[p],{setInt8:function(t,e){Y.call(this,t,e<<24>>24)},setUint8:function(t,e){Y.call(this,t,e<<24>>24)}},!0)}else m=function(t){l(this,m,h);t=u(t);this._b=z.call(new Array(t),0),this[T]=t},g=function(t,e,n){l(this,g,d),l(t,m,d);var i=t[T],e=B(e);if(e<0||i<e)throw y("Wrong offset!");if(i<e+(n=void 0===n?i-e:N(n)))throw y("Wrong length!");this[w]=t,this[S]=e,this[T]=n},i&&(O(m,n,"_l"),O(g,"buffer","_b"),O(g,n,"_l"),O(g,v,"_o")),a(g[p],{getInt8:function(t){return R(this,1,t)[0]<<24>>24},getUint8:function(t){return R(this,1,t)[0]},getInt16:function(t){t=R(this,2,t,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(t){t=R(this,2,t,arguments[1]);return t[1]<<8|t[0]},getInt32:function(t){return M(R(this,4,t,arguments[1]))},getUint32:function(t){return M(R(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return E(R(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return E(R(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){L(this,1,t,P,e)},setUint8:function(t,e){L(this,1,t,P,e)},setInt16:function(t,e){L(this,2,t,k,e,arguments[2])},setUint16:function(t,e){L(this,2,t,k,e,arguments[2])},setInt32:function(t,e){L(this,4,t,A,e,arguments[2])},setUint32:function(t,e){L(this,4,t,A,e,arguments[2])},setFloat32:function(t,e){L(this,4,t,q,e,arguments[2])},setFloat64:function(t,e){L(this,8,t,$,e,arguments[2])}});t(m,h),t(g,d),o(g[p],r.VIEW,!0),e[h]=m,e[d]=g},{"./_an-instance":52,"./_array-fill":55,"./_descriptors":75,"./_fails":81,"./_global":87,"./_hide":89,"./_library":106,"./_object-dp":118,"./_object-gopn":123,"./_redefine-all":137,"./_set-to-string-tag":147,"./_to-index":161,"./_to-integer":162,"./_to-length":164,"./_typed":169}],169:[function(t,e,n){for(var i,r=t("./_global"),o=t("./_hide"),t=t("./_uid"),a=t("typed_array"),s=t("view"),t=!(!r.ArrayBuffer||!r.DataView),l=t,c=0,u="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");c<9;)(i=r[u[c++]])?(o(i.prototype,a,!0),o(i.prototype,s,!0)):l=!1;e.exports={ABV:t,CONSTR:l,TYPED:a,VIEW:s}},{"./_global":87,"./_hide":89,"./_uid":170}],170:[function(t,e,n){var i=0,r=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+r).toString(36))}},{}],171:[function(t,e,n){t=t("./_global").navigator;e.exports=t&&t.userAgent||""},{"./_global":87}],172:[function(t,e,n){var i=t("./_is-object");e.exports=function(t,e){if(i(t)&&t._t===e)return t;throw TypeError("Incompatible receiver, "+e+" required!")}},{"./_is-object":98}],173:[function(t,e,n){var i=t("./_global"),r=t("./_core"),o=t("./_library"),a=t("./_wks-ext"),s=t("./_object-dp").f;e.exports=function(t){var e=r.Symbol||(r.Symbol=!o&&i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},{"./_core":69,"./_global":87,"./_library":106,"./_object-dp":118,"./_wks-ext":174}],174:[function(t,e,n){n.f=t("./_wks")},{"./_wks":175}],175:[function(t,e,n){var i=t("./_shared")("wks"),r=t("./_uid"),o=t("./_global").Symbol,a="function"==typeof o;(e.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},{"./_global":87,"./_shared":149,"./_uid":170}],176:[function(t,e,n){var i=t("./_classof"),r=t("./_wks")("iterator"),o=t("./_iterators");e.exports=t("./_core").getIteratorMethod=function(t){if(null!=t)return t[r]||t["@@iterator"]||o[i(t)]}},{"./_classof":63,"./_core":69,"./_iterators":105,"./_wks":175}],177:[function(t,e,n){var i=t("./_export"),r=t("./_replacer")(/[\\^$*+?.()|[\]{}]/g,"\\$&");i(i.S,"RegExp",{escape:function(t){return r(t)}})},{"./_export":79,"./_replacer":141}],178:[function(t,e,n){var i=t("./_export");i(i.P,"Array",{copyWithin:t("./_array-copy-within")}),t("./_add-to-unscopables")("copyWithin")},{"./_add-to-unscopables":50,"./_array-copy-within":54,"./_export":79}],179:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_array-methods")(4);i(i.P+i.F*!t("./_strict-method")([].every,!0),"Array",{every:function(t){return r(this,t,arguments[1])}})},{"./_array-methods":58,"./_export":79,"./_strict-method":151}],180:[function(t,e,n){var i=t("./_export");i(i.P,"Array",{fill:t("./_array-fill")}),t("./_add-to-unscopables")("fill")},{"./_add-to-unscopables":50,"./_array-fill":55,"./_export":79}],181:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_array-methods")(2);i(i.P+i.F*!t("./_strict-method")([].filter,!0),"Array",{filter:function(t){return r(this,t,arguments[1])}})},{"./_array-methods":58,"./_export":79,"./_strict-method":151}],182:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_array-methods")(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),i(i.P+i.F*a,"Array",{findIndex:function(t){return r(this,t,1<arguments.length?arguments[1]:void 0)}}),t("./_add-to-unscopables")(o)},{"./_add-to-unscopables":50,"./_array-methods":58,"./_export":79}],183:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_array-methods")(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),i(i.P+i.F*o,"Array",{find:function(t){return r(this,t,1<arguments.length?arguments[1]:void 0)}}),t("./_add-to-unscopables")("find")},{"./_add-to-unscopables":50,"./_array-methods":58,"./_export":79}],184:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_array-methods")(0),t=t("./_strict-method")([].forEach,!0);i(i.P+i.F*!t,"Array",{forEach:function(t){return r(this,t,arguments[1])}})},{"./_array-methods":58,"./_export":79,"./_strict-method":151}],185:[function(t,e,n){"use strict";var h=t("./_ctx"),i=t("./_export"),d=t("./_to-object"),p=t("./_iter-call"),f=t("./_is-array-iter"),m=t("./_to-length"),g=t("./_create-property"),v=t("./core.get-iterator-method");i(i.S+i.F*!t("./_iter-detect")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,i,r,o=d(t),t="function"==typeof this?this:Array,a=arguments.length,s=1<a?arguments[1]:void 0,l=void 0!==s,c=0,u=v(o);if(l&&(s=h(s,2<a?arguments[2]:void 0,2)),null==u||t==Array&&f(u))for(n=new t(e=m(o.length));c<e;c++)g(n,c,l?s(o[c],c):o[c]);else for(r=u.call(o),n=new t;!(i=r.next()).done;c++)g(n,c,l?p(r,s,[i.value,c],!0):i.value);return n.length=c,n}})},{"./_create-property":70,"./_ctx":71,"./_export":79,"./_is-array-iter":95,"./_iter-call":100,"./_iter-detect":103,"./_to-length":164,"./_to-object":165,"./core.get-iterator-method":176}],186:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_array-includes")(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(a||!t("./_strict-method")(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:r(this,t,arguments[1])}})},{"./_array-includes":57,"./_export":79,"./_strict-method":151}],187:[function(t,e,n){var i=t("./_export");i(i.S,"Array",{isArray:t("./_is-array")})},{"./_export":79,"./_is-array":96}],188:[function(t,e,n){"use strict";var i=t("./_add-to-unscopables"),r=t("./_iter-step"),o=t("./_iterators"),a=t("./_to-iobject");e.exports=t("./_iter-define")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},{"./_add-to-unscopables":50,"./_iter-define":102,"./_iter-step":104,"./_iterators":105,"./_to-iobject":163}],189:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_to-iobject"),o=[].join;i(i.P+i.F*(t("./_iobject")!=Object||!t("./_strict-method")(o)),"Array",{join:function(t){return o.call(r(this),void 0===t?",":t)}})},{"./_export":79,"./_iobject":94,"./_strict-method":151,"./_to-iobject":163}],190:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_to-iobject"),o=t("./_to-integer"),a=t("./_to-length"),s=[].lastIndexOf,l=!!s&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(l||!t("./_strict-method")(s)),"Array",{lastIndexOf:function(t){if(l)return s.apply(this,arguments)||0;var e=r(this),n=a(e.length),i=n-1;for((i=1<arguments.length?Math.min(i,o(arguments[1])):i)<0&&(i=n+i);0<=i;i--)if(i in e&&e[i]===t)return i||0;return-1}})},{"./_export":79,"./_strict-method":151,"./_to-integer":162,"./_to-iobject":163,"./_to-length":164}],191:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_array-methods")(1);i(i.P+i.F*!t("./_strict-method")([].map,!0),"Array",{map:function(t){return r(this,t,arguments[1])}})},{"./_array-methods":58,"./_export":79,"./_strict-method":151}],192:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_create-property");i(i.S+i.F*t("./_fails")(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);t<e;)r(n,t,arguments[t++]);return n.length=e,n}})},{"./_create-property":70,"./_export":79,"./_fails":81}],193:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_array-reduce");i(i.P+i.F*!t("./_strict-method")([].reduceRight,!0),"Array",{reduceRight:function(t){return r(this,t,arguments.length,arguments[1],!0)}})},{"./_array-reduce":59,"./_export":79,"./_strict-method":151}],194:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_array-reduce");i(i.P+i.F*!t("./_strict-method")([].reduce,!0),"Array",{reduce:function(t){return r(this,t,arguments.length,arguments[1],!1)}})},{"./_array-reduce":59,"./_export":79,"./_strict-method":151}],195:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_html"),l=t("./_cof"),c=t("./_to-absolute-index"),u=t("./_to-length"),h=[].slice;i(i.P+i.F*t("./_fails")(function(){r&&h.call(r)}),"Array",{slice:function(t,e){var n=u(this.length),i=l(this);if(e=void 0===e?n:e,"Array"==i)return h.call(this,t,e);for(var r=c(t,n),t=c(e,n),o=u(t-r),a=new Array(o),s=0;s<o;s++)a[s]="String"==i?this.charAt(r+s):this[r+s];return a}})},{"./_cof":64,"./_export":79,"./_fails":81,"./_html":90,"./_to-absolute-index":160,"./_to-length":164}],196:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_array-methods")(3);i(i.P+i.F*!t("./_strict-method")([].some,!0),"Array",{some:function(t){return r(this,t,arguments[1])}})},{"./_array-methods":58,"./_export":79,"./_strict-method":151}],197:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_a-function"),o=t("./_to-object"),a=t("./_fails"),s=[].sort,l=[1,2,3];i(i.P+i.F*(a(function(){l.sort(void 0)})||!a(function(){l.sort(null)})||!t("./_strict-method")(s)),"Array",{sort:function(t){return void 0===t?s.call(o(this)):s.call(o(this),r(t))}})},{"./_a-function":48,"./_export":79,"./_fails":81,"./_strict-method":151,"./_to-object":165}],198:[function(t,e,n){t("./_set-species")("Array")},{"./_set-species":146}],199:[function(t,e,n){t=t("./_export");t(t.S,"Date",{now:function(){return(new Date).getTime()}})},{"./_export":79}],200:[function(t,e,n){var i=t("./_export"),t=t("./_date-to-iso-string");i(i.P+i.F*(Date.prototype.toISOString!==t),"Date",{toISOString:t})},{"./_date-to-iso-string":72,"./_export":79}],201:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_to-object"),o=t("./_to-primitive");i(i.P+i.F*t("./_fails")(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=r(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},{"./_export":79,"./_fails":81,"./_to-object":165,"./_to-primitive":166}],202:[function(t,e,n){var i=t("./_wks")("toPrimitive"),r=Date.prototype;i in r||t("./_hide")(r,i,t("./_date-to-primitive"))},{"./_date-to-primitive":73,"./_hide":89,"./_wks":175}],203:[function(t,e,n){var i=Date.prototype,r="Invalid Date",o=i.toString,a=i.getTime;new Date(NaN)+""!=r&&t("./_redefine")(i,"toString",function(){var t=a.call(this);return t==t?o.call(this):r})},{"./_redefine":138}],204:[function(t,e,n){var i=t("./_export");i(i.P,"Function",{bind:t("./_bind")})},{"./_bind":62,"./_export":79}],205:[function(t,e,n){"use strict";var i=t("./_is-object"),r=t("./_object-gpo"),o=t("./_wks")("hasInstance"),a=Function.prototype;o in a||t("./_object-dp").f(a,o,{value:function(t){if("function"==typeof this&&i(t)){if(!i(this.prototype))return t instanceof this;for(;t=r(t);)if(this.prototype===t)return!0}return!1}})},{"./_is-object":98,"./_object-dp":118,"./_object-gpo":125,"./_wks":175}],206:[function(t,e,n){var i=t("./_object-dp").f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||t("./_descriptors")&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},{"./_descriptors":75,"./_object-dp":118}],207:[function(t,e,n){"use strict";var i=t("./_collection-strong"),r=t("./_validate-collection");e.exports=t("./_collection")("Map",function(t){return function(){return t(this,0<arguments.length?arguments[0]:void 0)}},{get:function(t){t=i.getEntry(r(this,"Map"),t);return t&&t.v},set:function(t,e){return i.def(r(this,"Map"),0===t?0:t,e)}},i,!0)},{"./_collection":68,"./_collection-strong":65,"./_validate-collection":172}],208:[function(t,e,n){var i=t("./_export"),r=t("./_math-log1p"),o=Math.sqrt,t=Math.acosh;i(i.S+i.F*!(t&&710==Math.floor(t(Number.MAX_VALUE))&&t(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:94906265.62425156<t?Math.log(t)+Math.LN2:r(t-1+o(t-1)*o(t+1))}})},{"./_export":79,"./_math-log1p":109}],209:[function(t,e,n){var t=t("./_export"),i=Math.asinh;t(t.S+t.F*!(i&&0<1/i(0)),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},{"./_export":79}],210:[function(t,e,n){var t=t("./_export"),i=Math.atanh;t(t.S+t.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},{"./_export":79}],211:[function(t,e,n){var i=t("./_export"),r=t("./_math-sign");i(i.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},{"./_export":79,"./_math-sign":111}],212:[function(t,e,n){t=t("./_export");t(t.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{"./_export":79}],213:[function(t,e,n){var t=t("./_export"),i=Math.exp;t(t.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},{"./_export":79}],214:[function(t,e,n){var i=t("./_export"),t=t("./_math-expm1");i(i.S+i.F*(t!=Math.expm1),"Math",{expm1:t})},{"./_export":79,"./_math-expm1":107}],215:[function(t,e,n){var i=t("./_export");i(i.S,"Math",{fround:t("./_math-fround")})},{"./_export":79,"./_math-fround":108}],216:[function(t,e,n){var t=t("./_export"),l=Math.abs;t(t.S,"Math",{hypot:function(t,e){for(var n,i,r=0,o=0,a=arguments.length,s=0;o<a;)s<(n=l(arguments[o++]))?(r=r*(i=s/n)*i+1,s=n):r+=0<n?(i=n/s)*i:n;return s===1/0?1/0:s*Math.sqrt(r)}})},{"./_export":79}],217:[function(t,e,n){var i=t("./_export"),r=Math.imul;i(i.S+i.F*t("./_fails")(function(){return-5!=r(4294967295,5)||2!=r.length}),"Math",{imul:function(t,e){var t=+t,e=+e,n=65535&t,i=65535&e;return 0|n*i+((65535&t>>>16)*i+n*(65535&e>>>16)<<16>>>0)}})},{"./_export":79,"./_fails":81}],218:[function(t,e,n){t=t("./_export");t(t.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},{"./_export":79}],219:[function(t,e,n){var i=t("./_export");i(i.S,"Math",{log1p:t("./_math-log1p")})},{"./_export":79,"./_math-log1p":109}],220:[function(t,e,n){t=t("./_export");t(t.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},{"./_export":79}],221:[function(t,e,n){var i=t("./_export");i(i.S,"Math",{sign:t("./_math-sign")})},{"./_export":79,"./_math-sign":111}],222:[function(t,e,n){var i=t("./_export"),r=t("./_math-expm1"),o=Math.exp;i(i.S+i.F*t("./_fails")(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(r(t)-r(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},{"./_export":79,"./_fails":81,"./_math-expm1":107}],223:[function(t,e,n){var i=t("./_export"),r=t("./_math-expm1"),o=Math.exp;i(i.S,"Math",{tanh:function(t){var e=r(t=+t),n=r(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},{"./_export":79,"./_math-expm1":107}],224:[function(t,e,n){t=t("./_export");t(t.S,"Math",{trunc:function(t){return(0<t?Math.floor:Math.ceil)(t)}})},{"./_export":79}],225:[function(t,e,n){"use strict";function i(t){if("string"==typeof(e=c(t,!1))&&2<e.length){var e,n,i,r,t=(e=y?e.trim():p(e,3)).charCodeAt(0);if(43===t||45===t){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var o,a=e.slice(2),s=0,l=a.length;s<l;s++)if((o=a.charCodeAt(s))<48||r<o)return NaN;return parseInt(a,i)}}return+e}var r=t("./_global"),o=t("./_has"),a=t("./_cof"),s=t("./_inherit-if-required"),c=t("./_to-primitive"),l=t("./_fails"),u=t("./_object-gopn").f,h=t("./_object-gopd").f,d=t("./_object-dp").f,p=t("./_string-trim").trim,f="Number",m=b=r[f],g=b.prototype,v=a(t("./_object-create")(g))==f,y="trim"in String.prototype;if(!b(" 0o1")||!b("0b1")||b("+0x1")){for(var _,b=function(t){var t=arguments.length<1?0:t,e=this;return e instanceof b&&(v?l(function(){g.valueOf.call(e)}):a(e)!=f)?s(new m(i(t)),e,b):i(t)},x=t("./_descriptors")?u(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;x.length>w;w++)o(m,_=x[w])&&!o(b,_)&&d(b,_,h(m,_));(b.prototype=g).constructor=b,t("./_redefine")(r,f,b)}},{"./_cof":64,"./_descriptors":75,"./_fails":81,"./_global":87,"./_has":88,"./_inherit-if-required":92,"./_object-create":117,"./_object-dp":118,"./_object-gopd":121,"./_object-gopn":123,"./_redefine":138,"./_string-trim":157,"./_to-primitive":166}],226:[function(t,e,n){t=t("./_export");t(t.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./_export":79}],227:[function(t,e,n){var i=t("./_export"),r=t("./_global").isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},{"./_export":79,"./_global":87}],228:[function(t,e,n){var i=t("./_export");i(i.S,"Number",{isInteger:t("./_is-integer")})},{"./_export":79,"./_is-integer":97}],229:[function(t,e,n){t=t("./_export");t(t.S,"Number",{isNaN:function(t){return t!=t}})},{"./_export":79}],230:[function(t,e,n){var i=t("./_export"),r=t("./_is-integer"),o=Math.abs;i(i.S,"Number",{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},{"./_export":79,"./_is-integer":97}],231:[function(t,e,n){t=t("./_export");t(t.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./_export":79}],232:[function(t,e,n){t=t("./_export");t(t.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./_export":79}],233:[function(t,e,n){var i=t("./_export"),t=t("./_parse-float");i(i.S+i.F*(Number.parseFloat!=t),"Number",{parseFloat:t})},{"./_export":79,"./_parse-float":132}],234:[function(t,e,n){var i=t("./_export"),t=t("./_parse-int");i(i.S+i.F*(Number.parseInt!=t),"Number",{parseInt:t})},{"./_export":79,"./_parse-int":133}],235:[function(t,e,n){"use strict";function a(t,e){for(var n=-1,i=e;++n<6;)p[n]=(i+=t*p[n])%1e7,i=o(i/1e7)}function s(t){for(var e=6,n=0;0<=--e;)p[e]=o((n+=p[e])/t),n=n%t*1e7}function l(){for(var t,e=6,n="";0<=--e;)""===n&&0!==e&&0===p[e]||(t=String(p[e]),n=""===n?t:n+d.call("0",7-t.length)+t);return n}function c(t,e,n){return 0===e?n:e%2==1?c(t,e-1,n*t):c(t*t,e/2,n)}var i=t("./_export"),u=t("./_to-integer"),h=t("./_a-number-value"),d=t("./_string-repeat"),r=1..toFixed,o=Math.floor,p=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!";i(i.P+i.F*(!!r&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==0xde0b6b3a7640080.toFixed(0))||!t("./_fails")(function(){r.call({})})),"Number",{toFixed:function(t){var e,n,i=h(this,f),t=u(t),r="",o="0";if(t<0||20<t)throw RangeError(f);if(i!=i)return"NaN";if(i<=-1e21||1e21<=i)return String(i);if(i<0&&(r="-",i=-i),1e-21<i)if(i=(e=function(t){for(var e=0,n=t;4096<=n;)e+=12,n/=4096;for(;2<=n;)e+=1,n/=2;return e}(i*c(2,69,1))-69)<0?i*c(2,-e,1):i/c(2,e,1),i*=4503599627370496,0<(e=52-e)){for(a(0,i),n=t;7<=n;)a(1e7,0),n-=7;for(a(c(10,n,1),0),n=e-1;23<=n;)s(1<<23),n-=23;s(1<<n),a(1,1),s(2),o=l()}else a(0,i),a(1<<-e,0),o=l()+d.call("0",t);return o=0<t?r+((i=o.length)<=t?"0."+d.call("0",t-i)+o:o.slice(0,i-t)+"."+o.slice(i-t)):r+o}})},{"./_a-number-value":49,"./_export":79,"./_fails":81,"./_string-repeat":156,"./_to-integer":162}],236:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_fails"),o=t("./_a-number-value"),a=1..toPrecision;i(i.P+i.F*(r(function(){return"1"!==a.call(1,void 0)})||!r(function(){a.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},{"./_a-number-value":49,"./_export":79,"./_fails":81}],237:[function(t,e,n){var i=t("./_export");i(i.S+i.F,"Object",{assign:t("./_object-assign")})},{"./_export":79,"./_object-assign":116}],238:[function(t,e,n){var i=t("./_export");i(i.S,"Object",{create:t("./_object-create")})},{"./_export":79,"./_object-create":117}],239:[function(t,e,n){var i=t("./_export");i(i.S+i.F*!t("./_descriptors"),"Object",{defineProperties:t("./_object-dps")})},{"./_descriptors":75,"./_export":79,"./_object-dps":119}],240:[function(t,e,n){var i=t("./_export");i(i.S+i.F*!t("./_descriptors"),"Object",{defineProperty:t("./_object-dp").f})},{"./_descriptors":75,"./_export":79,"./_object-dp":118}],241:[function(t,e,n){var i=t("./_is-object"),r=t("./_meta").onFreeze;t("./_object-sap")("freeze",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},{"./_is-object":98,"./_meta":112,"./_object-sap":129}],242:[function(t,e,n){var i=t("./_to-iobject"),r=t("./_object-gopd").f;t("./_object-sap")("getOwnPropertyDescriptor",function(){return function(t,e){return r(i(t),e)}})},{"./_object-gopd":121,"./_object-sap":129,"./_to-iobject":163}],243:[function(t,e,n){t("./_object-sap")("getOwnPropertyNames",function(){return t("./_object-gopn-ext").f})},{"./_object-gopn-ext":122,"./_object-sap":129}],244:[function(t,e,n){var i=t("./_to-object"),r=t("./_object-gpo");t("./_object-sap")("getPrototypeOf",function(){return function(t){return r(i(t))}})},{"./_object-gpo":125,"./_object-sap":129,"./_to-object":165}],245:[function(t,e,n){var i=t("./_is-object");t("./_object-sap")("isExtensible",function(e){return function(t){return!!i(t)&&(!e||e(t))}})},{"./_is-object":98,"./_object-sap":129}],246:[function(t,e,n){var i=t("./_is-object");t("./_object-sap")("isFrozen",function(e){return function(t){return!i(t)||!!e&&e(t)}})},{"./_is-object":98,"./_object-sap":129}],247:[function(t,e,n){var i=t("./_is-object");t("./_object-sap")("isSealed",function(e){return function(t){return!i(t)||!!e&&e(t)}})},{"./_is-object":98,"./_object-sap":129}],248:[function(t,e,n){var i=t("./_export");i(i.S,"Object",{is:t("./_same-value")})},{"./_export":79,"./_same-value":142}],249:[function(t,e,n){var i=t("./_to-object"),r=t("./_object-keys");t("./_object-sap")("keys",function(){return function(t){return r(i(t))}})},{"./_object-keys":127,"./_object-sap":129,"./_to-object":165}],250:[function(t,e,n){var i=t("./_is-object"),r=t("./_meta").onFreeze;t("./_object-sap")("preventExtensions",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},{"./_is-object":98,"./_meta":112,"./_object-sap":129}],251:[function(t,e,n){var i=t("./_is-object"),r=t("./_meta").onFreeze;t("./_object-sap")("seal",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},{"./_is-object":98,"./_meta":112,"./_object-sap":129}],252:[function(t,e,n){var i=t("./_export");i(i.S,"Object",{setPrototypeOf:t("./_set-proto").set})},{"./_export":79,"./_set-proto":145}],253:[function(t,e,n){"use strict";var i=t("./_classof"),r={};r[t("./_wks")("toStringTag")]="z",r+""!="[object z]"&&t("./_redefine")(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},{"./_classof":63,"./_redefine":138,"./_wks":175}],254:[function(t,e,n){var i=t("./_export"),t=t("./_parse-float");i(i.G+i.F*(parseFloat!=t),{parseFloat:t})},{"./_export":79,"./_parse-float":132}],255:[function(t,e,n){var i=t("./_export"),t=t("./_parse-int");i(i.G+i.F*(parseInt!=t),{parseInt:t})},{"./_export":79,"./_parse-int":133}],256:[function(n,j,I){"use strict";function i(){}var e,r,o,a,s=n("./_library"),d=n("./_global"),l=n("./_ctx"),t=n("./_classof"),c=n("./_export"),u=n("./_is-object"),h=n("./_a-function"),p=n("./_an-instance"),f=n("./_for-of"),m=n("./_species-constructor"),g=n("./_task").set,v=n("./_microtask")(),y=n("./_new-promise-capability"),_=n("./_perform"),b=n("./_user-agent"),x=n("./_promise-resolve"),w="Promise",T=d.TypeError,S=d.process,C=S&&S.versions,E=C&&C.v8||"",M=d[w],P="process"==t(S),k=r=y.f,C=!!function(){try{var t=M.resolve(1),e=(t.constructor={})[n("./_wks")("species")]=function(t){t(i,i)};return(P||"function"==typeof PromiseRejectionEvent)&&t.then(i)instanceof e&&0!==E.indexOf("6.6")&&-1===b.indexOf("Chrome/66")}catch(t){}}(),A=function(t){var e;return!(!u(t)||"function"!=typeof(e=t.then))&&e},O=function(h,n){var i;h._n||(h._n=!0,i=h._c,v(function(){for(var r,c=h._v,u=1==h._s,t=0,e=function(t){var e,n,i,r,o=u?t.ok:t.fail,a=t.resolve,s=t.reject,l=t.domain;try{o?(u||(2==h._h&&(r=h,g.call(d,function(){var t;P?S.emit("rejectionHandled",r):(t=d.onrejectionhandled)&&t({promise:r,reason:r._v})})),h._h=1),!0===o?e=c:(l&&l.enter(),e=o(c),l&&(l.exit(),i=!0)),e===t.promise?s(T("Promise-chain cycle")):(n=A(e))?n.call(e,a,s):a(e)):s(c)}catch(t){l&&!i&&l.exit(),s(t)}};i.length>t;)e(i[t++]);h._c=[],h._n=!1,n&&!h._h&&(r=h,g.call(d,function(){var t,e,n=r._v,i=R(r);if(i&&(t=_(function(){P?S.emit("unhandledRejection",n,r):(e=d.onunhandledrejection)?e({promise:r,reason:n}):(e=d.console)&&e.error&&e.error("Unhandled promise rejection",n)}),r._h=P||R(r)?2:1),r._a=void 0,i&&t.e)throw t.v}))}))},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),O(e,!0))},D=function(t){var n,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw T("Promise can't be resolved itself");(n=A(t))?v(function(){var e={_w:i,_d:!1};try{n.call(t,l(D,e,1),l(L,e,1))}catch(t){L.call(e,t)}}):(i._v=t,i._s=1,O(i,!1))}catch(t){L.call({_w:i,_d:!1},t)}}};C||(M=function(t){p(this,M,w,"_h"),h(t),e.call(this);try{t(l(D,this,1),l(L,this,1))}catch(t){L.call(this,t)}},(e=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("./_redefine-all")(M.prototype,{then:function(t,e){var n=k(m(this,M));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=P?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&O(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new e;this.promise=t,this.resolve=l(D,t,1),this.reject=l(L,t,1)},y.f=k=function(t){return t===M||t===a?new o:r(t)}),c(c.G+c.W+c.F*!C,{Promise:M}),n("./_set-to-string-tag")(M,w),n("./_set-species")(w),a=n("./_core")[w],c(c.S+c.F*!C,w,{reject:function(t){var e=k(this);return(0,e.reject)(t),e.promise}}),c(c.S+c.F*(s||!C),w,{resolve:function(t){return x(s&&this===a?M:this,t)}}),c(c.S+c.F*!(C&&n("./_iter-detect")(function(t){M.all(t).catch(i)})),w,{all:function(t){var a=this,e=k(a),s=e.resolve,l=e.reject,n=_(function(){var i=[],r=0,o=1;f(t,!1,function(t){var e=r++,n=!1;i.push(void 0),o++,a.resolve(t).then(function(t){n||(n=!0,i[e]=t,--o)||s(i)},l)}),--o||s(i)});return n.e&&l(n.v),e.promise},race:function(t){var e=this,n=k(e),i=n.reject,r=_(function(){f(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},{"./_a-function":48,"./_an-instance":52,"./_classof":63,"./_core":69,"./_ctx":71,"./_export":79,"./_for-of":85,"./_global":87,"./_is-object":98,"./_iter-detect":103,"./_library":106,"./_microtask":114,"./_new-promise-capability":115,"./_perform":134,"./_promise-resolve":135,"./_redefine-all":137,"./_set-species":146,"./_set-to-string-tag":147,"./_species-constructor":150,"./_task":159,"./_user-agent":171,"./_wks":175}],257:[function(t,e,n){var i=t("./_export"),r=t("./_a-function"),o=t("./_an-object"),a=(t("./_global").Reflect||{}).apply,s=Function.apply;i(i.S+i.F*!t("./_fails")(function(){a(function(){})}),"Reflect",{apply:function(t,e,n){t=r(t),n=o(n);return a?a(t,e,n):s.call(t,e,n)}})},{"./_a-function":48,"./_an-object":53,"./_export":79,"./_fails":81,"./_global":87}],258:[function(t,e,n){var i=t("./_export"),r=t("./_object-create"),o=t("./_a-function"),a=t("./_an-object"),s=t("./_is-object"),l=t("./_fails"),c=t("./_bind"),u=(t("./_global").Reflect||{}).construct,h=l(function(){function t(){}return!(u(function(){},[],t)instanceof t)}),d=!l(function(){u(function(){})});i(i.S+i.F*(h||d),"Reflect",{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(d&&!h)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(c.apply(t,i))}i=n.prototype,n=r(s(i)?i:Object.prototype),i=Function.apply.call(t,n,e);return s(i)?i:n}})},{"./_a-function":48,"./_an-object":53,"./_bind":62,"./_export":79,"./_fails":81,"./_global":87,"./_is-object":98,"./_object-create":117}],259:[function(t,e,n){var i=t("./_object-dp"),r=t("./_export"),o=t("./_an-object"),a=t("./_to-primitive");r(r.S+r.F*t("./_fails")(function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=a(e,!0),o(n);try{return i.f(t,e,n),!0}catch(t){return!1}}})},{"./_an-object":53,"./_export":79,"./_fails":81,"./_object-dp":118,"./_to-primitive":166}],260:[function(t,e,n){var i=t("./_export"),r=t("./_object-gopd").f,o=t("./_an-object");i(i.S,"Reflect",{deleteProperty:function(t,e){var n=r(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},{"./_an-object":53,"./_export":79,"./_object-gopd":121}],261:[function(t,e,n){"use strict";function i(t){this._t=o(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)}var r=t("./_export"),o=t("./_an-object");t("./_iter-create")(i,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),r(r.S,"Reflect",{enumerate:function(t){return new i(t)}})},{"./_an-object":53,"./_export":79,"./_iter-create":101}],262:[function(t,e,n){var i=t("./_object-gopd"),r=t("./_export"),o=t("./_an-object");r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return i.f(o(t),e)}})},{"./_an-object":53,"./_export":79,"./_object-gopd":121}],263:[function(t,e,n){var i=t("./_export"),r=t("./_object-gpo"),o=t("./_an-object");i(i.S,"Reflect",{getPrototypeOf:function(t){return r(o(t))}})},{"./_an-object":53,"./_export":79,"./_object-gpo":125}],264:[function(t,e,n){var o=t("./_object-gopd"),a=t("./_object-gpo"),s=t("./_has"),i=t("./_export"),l=t("./_is-object"),c=t("./_an-object");i(i.S,"Reflect",{get:function t(e,n){var i,r=arguments.length<3?e:arguments[2];return c(e)===r?e[n]:(i=o.f(e,n))?s(i,"value")?i.value:void 0!==i.get?i.get.call(r):void 0:l(i=a(e))?t(i,n,r):void 0}})},{"./_an-object":53,"./_export":79,"./_has":88,"./_is-object":98,"./_object-gopd":121,"./_object-gpo":125}],265:[function(t,e,n){t=t("./_export");t(t.S,"Reflect",{has:function(t,e){return e in t}})},{"./_export":79}],266:[function(t,e,n){var i=t("./_export"),r=t("./_an-object"),o=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(t){return r(t),!o||o(t)}})},{"./_an-object":53,"./_export":79}],267:[function(t,e,n){var i=t("./_export");i(i.S,"Reflect",{ownKeys:t("./_own-keys")})},{"./_export":79,"./_own-keys":131}],268:[function(t,e,n){var i=t("./_export"),r=t("./_an-object"),o=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(t){r(t);try{return o&&o(t),!0}catch(t){return!1}}})},{"./_an-object":53,"./_export":79}],269:[function(t,e,n){var i=t("./_export"),r=t("./_set-proto");r&&i(i.S,"Reflect",{setPrototypeOf:function(t,e){r.check(t,e);try{return r.set(t,e),!0}catch(t){return!1}}})},{"./_export":79,"./_set-proto":145}],270:[function(t,e,n){var s=t("./_object-dp"),l=t("./_object-gopd"),c=t("./_object-gpo"),u=t("./_has"),i=t("./_export"),h=t("./_property-desc"),d=t("./_an-object"),p=t("./_is-object");i(i.S,"Reflect",{set:function t(e,n,i){var r,o=arguments.length<4?e:arguments[3],a=l.f(d(e),n);if(!a){if(p(r=c(e)))return t(r,n,i,o);a=h(0)}if(u(a,"value")){if(!1===a.writable||!p(o))return!1;if(r=l.f(o,n)){if(r.get||r.set||!1===r.writable)return!1;r.value=i,s.f(o,n,r)}else s.f(o,n,h(0,i));return!0}return void 0!==a.set&&(a.set.call(o,i),!0)}})},{"./_an-object":53,"./_export":79,"./_has":88,"./_is-object":98,"./_object-dp":118,"./_object-gopd":121,"./_object-gpo":125,"./_property-desc":136}],271:[function(t,e,n){var i=t("./_global"),o=t("./_inherit-if-required"),r=t("./_object-dp").f,a=t("./_object-gopn").f,s=t("./_is-regexp"),l=t("./_flags"),c=f=i.RegExp,u=f.prototype,h=/a/g,d=/a/g,p=new f(h)!==h;if(t("./_descriptors")&&(!p||t("./_fails")(function(){return d[t("./_wks")("match")]=!1,f(h)!=h||f(d)==d||"/a/i"!=f(h,"i")}))){for(var f=function(t,e){var n=this instanceof f,i=s(t),r=void 0===e;return!n&&i&&t.constructor===f&&r?t:o(p?new c(i&&!r?t.source:t,e):c((i=t instanceof f)?t.source:t,i&&r?l.call(t):e),n?this:u,f)},m=a(c),g=0;m.length>g;)!function(e){e in f||r(f,e,{configurable:!0,get:function(){return c[e]},set:function(t){c[e]=t}})}(m[g++]);(u.constructor=f).prototype=u,t("./_redefine")(i,"RegExp",f)}t("./_set-species")("RegExp")},{"./_descriptors":75,"./_fails":81,"./_flags":83,"./_global":87,"./_inherit-if-required":92,"./_is-regexp":99,"./_object-dp":118,"./_object-gopn":123,"./_redefine":138,"./_set-species":146,"./_wks":175}],272:[function(t,e,n){"use strict";var i=t("./_regexp-exec");t("./_export")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},{"./_export":79,"./_regexp-exec":140}],273:[function(t,e,n){t("./_descriptors")&&"g"!=/./g.flags&&t("./_object-dp").f(RegExp.prototype,"flags",{configurable:!0,get:t("./_flags")})},{"./_descriptors":75,"./_flags":83,"./_object-dp":118}],274:[function(t,e,n){"use strict";var u=t("./_an-object"),h=t("./_to-length"),d=t("./_advance-string-index"),p=t("./_regexp-exec-abstract");t("./_fix-re-wks")("match",1,function(i,r,l,c){return[function(t){var e=i(this),n=null==t?void 0:t[r];return void 0!==n?n.call(t,e):new RegExp(t)[r](String(e))},function(t){var e=c(l,t,this);if(e.done)return e.value;var n=u(t),i=String(this);if(!n.global)return p(n,i);for(var r=n.unicode,o=[],a=n.lastIndex=0;null!==(s=p(n,i));){var s=String(s[0]);""===(o[a]=s)&&(n.lastIndex=d(i,h(n.lastIndex),r)),a++}return 0===a?null:o}]})},{"./_advance-string-index":51,"./_an-object":53,"./_fix-re-wks":82,"./_regexp-exec-abstract":139,"./_to-length":164}],275:[function(t,e,n){"use strict";var w=t("./_an-object"),T=t("./_to-object"),S=t("./_to-length"),C=t("./_to-integer"),E=t("./_advance-string-index"),M=t("./_regexp-exec-abstract"),P=Math.max,k=Math.min,A=Math.floor,O=/\$([$&`']|\d\d?|<[^>]*>)/g,R=/\$([$&`']|\d\d?)/g;t("./_fix-re-wks")("replace",2,function(r,o,b,x){return[function(t,e){var n=r(this),i=null==t?void 0:t[o];return void 0!==i?i.call(t,n,e):b.call(String(n),t,e)},function(t,e){var n=x(b,t,this,e);if(n.done)return n.value;for(var i,r=w(t),o=String(this),a="function"==typeof e,s=(a||(e=String(e)),r.global),l=(s&&(i=r.unicode,r.lastIndex=0),[]);null!==(p=M(r,o))&&(l.push(p),s);)""===String(p[0])&&(r.lastIndex=E(o,S(r.lastIndex),i));for(var c,u="",h=0,d=0;d<l.length;d++){for(var p=l[d],f=String(p[0]),m=P(k(C(p.index),o.length),0),g=[],v=1;v<p.length;v++)g.push(void 0===(c=p[v])?c:String(c));var y=p.groups,_=a?(_=[f].concat(g,m,o),void 0!==y&&_.push(y),String(e.apply(void 0,_))):function(o,a,s,l,c,t){var u=s+o.length,h=l.length,e=R;void 0!==c&&(c=T(c),e=O);return b.call(t,e,function(t,e){var n;switch(e.charAt(0)){case"$":return"$";case"&":return o;case"`":return a.slice(0,s);case"'":return a.slice(u);case"<":n=c[e.slice(1,-1)];break;default:var i,r=+e;if(0==r)return t;if(h<r)return 0!==(i=A(r/10))&&i<=h?void 0===l[i-1]?e.charAt(1):l[i-1]+e.charAt(1):t;n=l[r-1]}return void 0===n?"":n})}(f,o,m,g,y,e);h<=m&&(u+=o.slice(h,m)+_,h=m+f.length)}return u+o.slice(h)}]})},{"./_advance-string-index":51,"./_an-object":53,"./_fix-re-wks":82,"./_regexp-exec-abstract":139,"./_to-integer":162,"./_to-length":164,"./_to-object":165}],276:[function(t,e,n){"use strict";var s=t("./_an-object"),l=t("./_same-value"),c=t("./_regexp-exec-abstract");t("./_fix-re-wks")("search",1,function(i,r,o,a){return[function(t){var e=i(this),n=null==t?void 0:t[r];return void 0!==n?n.call(t,e):new RegExp(t)[r](String(e))},function(t){var e,n=a(o,t,this);return n.done?n.value:(n=s(t),t=String(this),e=n.lastIndex,l(e,0)||(n.lastIndex=0),t=c(n,t),l(n.lastIndex,e)||(n.lastIndex=e),null===t?-1:t.index)}]})},{"./_an-object":53,"./_fix-re-wks":82,"./_regexp-exec-abstract":139,"./_same-value":142}],277:[function(t,e,n){"use strict";var h=t("./_is-regexp"),v=t("./_an-object"),y=t("./_species-constructor"),_=t("./_advance-string-index"),b=t("./_to-length"),x=t("./_regexp-exec-abstract"),d=t("./_regexp-exec"),i=t("./_fails"),w=Math.min,p=[].push,a="split",T="length",S="lastIndex",C=4294967295,E=!i(function(){RegExp(C,"y")});t("./_fix-re-wks")("split",2,function(r,o,f,m){var g="c"=="abbc"[a](/(b)*/)[1]||4!="test"[a](/(?:)/,-1)[T]||2!="ab"[a](/(?:ab)*/)[T]||4!="."[a](/(.?)(.?)/)[T]||1<"."[a](/()()/)[T]||""[a](/.?/)[T]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!h(t))return f.call(n,t,e);for(var i,r,o,a=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,c=void 0===e?C:e>>>0,u=new RegExp(t.source,s+"g");(i=d.call(u,n))&&!(l<(r=u[S])&&(a.push(n.slice(l,i.index)),1<i[T]&&i.index<n[T]&&p.apply(a,i.slice(1)),o=i[0][T],l=r,c<=a[T]));)u[S]===i.index&&u[S]++;return l===n[T]?!o&&u.test("")||a.push(""):a.push(n.slice(l)),c<a[T]?a.slice(0,c):a}:"0"[a](void 0,0)[T]?function(t,e){return void 0===t&&0===e?[]:f.call(this,t,e)}:f;return[function(t,e){var n=r(this),i=null==t?void 0:t[o];return void 0!==i?i.call(t,n,e):g.call(String(n),t,e)},function(t,e){var n=m(g,t,this,e,g!==f);if(n.done)return n.value;var n=v(t),i=String(this),t=y(n,RegExp),r=n.unicode,o=(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.unicode?"u":"")+(E?"y":"g"),a=new t(E?n:"^(?:"+n.source+")",o),s=void 0===e?C:e>>>0;if(0==s)return[];if(0===i.length)return null===x(a,i)?[i]:[];for(var l=0,c=0,u=[];c<i.length;){a.lastIndex=E?c:0;var h,d=x(a,E?i:i.slice(c));if(null===d||(h=w(b(a.lastIndex+(E?0:c)),i.length))===l)c=_(i,c,r);else{if(u.push(i.slice(l,c)),u.length===s)return u;for(var p=1;p<=d.length-1;p++)if(u.push(d[p]),u.length===s)return u;c=l=h}}return u.push(i.slice(l)),u}]})},{"./_advance-string-index":51,"./_an-object":53,"./_fails":81,"./_fix-re-wks":82,"./_is-regexp":99,"./_regexp-exec":140,"./_regexp-exec-abstract":139,"./_species-constructor":150,"./_to-length":164}],278:[function(e,t,n){"use strict";e("./es6.regexp.flags");function i(t){e("./_redefine")(RegExp.prototype,s,t,!0)}var r=e("./_an-object"),o=e("./_flags"),a=e("./_descriptors"),s="toString",l=/./[s];e("./_fails")(function(){return"/a/b"!=l.call({source:"a",flags:"b"})})?i(function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)}):l.name!=s&&i(function(){return l.call(this)})},{"./_an-object":53,"./_descriptors":75,"./_fails":81,"./_flags":83,"./_redefine":138,"./es6.regexp.flags":273}],279:[function(t,e,n){"use strict";var i=t("./_collection-strong"),r=t("./_validate-collection");e.exports=t("./_collection")("Set",function(t){return function(){return t(this,0<arguments.length?arguments[0]:void 0)}},{add:function(t){return i.def(r(this,"Set"),t=0===t?0:t,t)}},i)},{"./_collection":68,"./_collection-strong":65,"./_validate-collection":172}],280:[function(t,e,n){"use strict";t("./_string-html")("anchor",function(e){return function(t){return e(this,"a","name",t)}})},{"./_string-html":154}],281:[function(t,e,n){"use strict";t("./_string-html")("big",function(t){return function(){return t(this,"big","","")}})},{"./_string-html":154}],282:[function(t,e,n){"use strict";t("./_string-html")("blink",function(t){return function(){return t(this,"blink","","")}})},{"./_string-html":154}],283:[function(t,e,n){"use strict";t("./_string-html")("bold",function(t){return function(){return t(this,"b","","")}})},{"./_string-html":154}],284:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_string-at")(!1);i(i.P,"String",{codePointAt:function(t){return r(this,t)}})},{"./_export":79,"./_string-at":152}],285:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_to-length"),o=t("./_string-context"),a="endsWith",s=""[a];i(i.P+i.F*t("./_fails-is-regexp")(a),"String",{endsWith:function(t){var e=o(this,t,a),n=1<arguments.length?arguments[1]:void 0,i=r(e.length),n=void 0===n?i:Math.min(r(n),i),i=String(t);return s?s.call(e,i,n):e.slice(n-i.length,n)===i}})},{"./_export":79,"./_fails-is-regexp":80,"./_string-context":153,"./_to-length":164}],286:[function(t,e,n){"use strict";t("./_string-html")("fixed",function(t){return function(){return t(this,"tt","","")}})},{"./_string-html":154}],287:[function(t,e,n){"use strict";t("./_string-html")("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},{"./_string-html":154}],288:[function(t,e,n){"use strict";t("./_string-html")("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},{"./_string-html":154}],289:[function(t,e,n){var i=t("./_export"),o=t("./_to-absolute-index"),a=String.fromCharCode,t=String.fromCodePoint;i(i.S+i.F*(!!t&&1!=t.length),"String",{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,r=0;r<i;){if(e=+arguments[r++],o(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?a(e):a(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},{"./_export":79,"./_to-absolute-index":160}],290:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_string-context");i(i.P+i.F*t("./_fails-is-regexp")("includes"),"String",{includes:function(t){return!!~r(this,t,"includes").indexOf(t,1<arguments.length?arguments[1]:void 0)}})},{"./_export":79,"./_fails-is-regexp":80,"./_string-context":153}],291:[function(t,e,n){"use strict";t("./_string-html")("italics",function(t){return function(){return t(this,"i","","")}})},{"./_string-html":154}],292:[function(t,e,n){"use strict";var i=t("./_string-at")(!0);t("./_iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t=this._t,e=this._i;return e>=t.length?{value:void 0,done:!0}:(t=i(t,e),this._i+=t.length,{value:t,done:!1})})},{"./_iter-define":102,"./_string-at":152}],293:[function(t,e,n){"use strict";t("./_string-html")("link",function(e){return function(t){return e(this,"a","href",t)}})},{"./_string-html":154}],294:[function(t,e,n){var i=t("./_export"),a=t("./_to-iobject"),s=t("./_to-length");i(i.S,"String",{raw:function(t){for(var e=a(t.raw),n=s(e.length),i=arguments.length,r=[],o=0;o<n;)r.push(String(e[o++])),o<i&&r.push(String(arguments[o]));return r.join("")}})},{"./_export":79,"./_to-iobject":163,"./_to-length":164}],295:[function(t,e,n){var i=t("./_export");i(i.P,"String",{repeat:t("./_string-repeat")})},{"./_export":79,"./_string-repeat":156}],296:[function(t,e,n){"use strict";t("./_string-html")("small",function(t){return function(){return t(this,"small","","")}})},{"./_string-html":154}],297:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_to-length"),o=t("./_string-context"),a="startsWith",s=""[a];i(i.P+i.F*t("./_fails-is-regexp")(a),"String",{startsWith:function(t){var e=o(this,t,a),n=r(Math.min(1<arguments.length?arguments[1]:void 0,e.length)),t=String(t);return s?s.call(e,t,n):e.slice(n,n+t.length)===t}})},{"./_export":79,"./_fails-is-regexp":80,"./_string-context":153,"./_to-length":164}],298:[function(t,e,n){"use strict";t("./_string-html")("strike",function(t){return function(){return t(this,"strike","","")}})},{"./_string-html":154}],299:[function(t,e,n){"use strict";t("./_string-html")("sub",function(t){return function(){return t(this,"sub","","")}})},{"./_string-html":154}],300:[function(t,e,n){"use strict";t("./_string-html")("sup",function(t){return function(){return t(this,"sup","","")}})},{"./_string-html":154}],301:[function(t,e,n){"use strict";t("./_string-trim")("trim",function(t){return function(){return t(this,3)}})},{"./_string-trim":157}],302:[function(t,I,F){"use strict";function i(t){var e=P[t]=_(w[C]);return e._k=t,e}function n(t,e){m(t);for(var n,i=G(e=g(e)),r=0,o=i.length;r<o;)j(t,n=i[r++],e[n]);return t}function e(t){var e=tt.call(this,t=v(t,!0));return!(this===A&&l(P,t)&&!l(k,t))&&(!(e||!l(this,t)||!l(P,t)||l(this,E)&&this[E][t])||e)}function r(t,e){var n;if(t=g(t),e=v(e,!0),t!==A||!l(P,e)||l(k,e))return!(n=J(t,e))||!l(P,e)||l(t,E)&&t[E][e]||(n.enumerable=!0),n}function o(t){for(var e,n=K(g(t)),i=[],r=0;n.length>r;)l(P,e=n[r++])||e==E||e==N||i.push(e);return i}function a(t){for(var e,n=t===A,i=K(n?k:g(t)),r=[],o=0;i.length>o;)!l(P,e=i[o++])||n&&!l(A,e)||r.push(P[e]);return r}var s=t("./_global"),l=t("./_has"),c=t("./_descriptors"),u=t("./_export"),B=t("./_redefine"),N=t("./_meta").KEY,h=t("./_fails"),d=t("./_shared"),p=t("./_set-to-string-tag"),U=t("./_uid"),f=t("./_wks"),z=t("./_wks-ext"),V=t("./_wks-define"),G=t("./_enum-keys"),H=t("./_is-array"),m=t("./_an-object"),W=t("./_is-object"),$=t("./_to-object"),g=t("./_to-iobject"),v=t("./_to-primitive"),y=t("./_property-desc"),_=t("./_object-create"),q=t("./_object-gopn-ext"),X=t("./_object-gopd"),b=t("./_object-gops"),Y=t("./_object-dp"),Z=t("./_object-keys"),J=X.f,x=Y.f,K=q.f,w=s.Symbol,T=s.JSON,S=T&&T.stringify,C="prototype",E=f("_hidden"),Q=f("toPrimitive"),tt={}.propertyIsEnumerable,M=d("symbol-registry"),P=d("symbols"),k=d("op-symbols"),A=Object[C],d="function"==typeof w&&!!b.f,O=s.QObject,R=!O||!O[C]||!O[C].findChild,L=c&&h(function(){return 7!=_(x({},"a",{get:function(){return x(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=J(A,e);i&&delete A[e],x(t,e,n),i&&t!==A&&x(A,e,i)}:x,D=d&&"symbol"==typeof w.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof w},j=function(t,e,n){return t===A&&j(k,e,n),m(t),e=v(e,!0),m(n),(l(P,e)?(n.enumerable?(l(t,E)&&t[E][e]&&(t[E][e]=!1),n=_(n,{enumerable:y(0,!1)})):(l(t,E)||x(t,E,y(1,{})),t[E][e]=!0),L):x)(t,e,n)};d||(B((w=function(){if(this instanceof w)throw TypeError("Symbol is not a constructor!");var e=U(0<arguments.length?arguments[0]:void 0),n=function(t){this===A&&n.call(k,t),l(this,E)&&l(this[E],e)&&(this[E][e]=!1),L(this,e,y(1,t))};return c&&R&&L(A,e,{configurable:!0,set:n}),i(e)})[C],"toString",function(){return this._k}),X.f=r,Y.f=j,t("./_object-gopn").f=q.f=o,t("./_object-pie").f=e,b.f=a,c&&!t("./_library")&&B(A,"propertyIsEnumerable",e,!0),z.f=function(t){return i(f(t))}),u(u.G+u.W+u.F*!d,{Symbol:w});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;et.length>nt;)f(et[nt++]);for(var it=Z(f.store),rt=0;it.length>rt;)V(it[rt++]);u(u.S+u.F*!d,"Symbol",{for:function(t){return l(M,t+="")?M[t]:M[t]=w(t)},keyFor:function(t){if(!D(t))throw TypeError(t+" is not a symbol!");for(var e in M)if(M[e]===t)return e},useSetter:function(){R=!0},useSimple:function(){R=!1}}),u(u.S+u.F*!d,"Object",{create:function(t,e){return void 0===e?_(t):n(_(t),e)},defineProperty:j,defineProperties:n,getOwnPropertyDescriptor:r,getOwnPropertyNames:o,getOwnPropertySymbols:a});O=h(function(){b.f(1)});u(u.S+u.F*O,"Object",{getOwnPropertySymbols:function(t){return b.f($(t))}}),T&&u(u.S+u.F*(!d||h(function(){var t=w();return"[null]"!=S([t])||"{}"!=S({a:t})||"{}"!=S(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;r<arguments.length;)i.push(arguments[r++]);if(n=e=i[1],(W(e)||void 0!==t)&&!D(t))return H(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!D(e))return e}),i[1]=e,S.apply(T,i)}}),w[C][Q]||t("./_hide")(w[C],Q,w[C].valueOf),p(w,"Symbol"),p(Math,"Math",!0),p(s.JSON,"JSON",!0)},{"./_an-object":53,"./_descriptors":75,"./_enum-keys":78,"./_export":79,"./_fails":81,"./_global":87,"./_has":88,"./_hide":89,"./_is-array":96,"./_is-object":98,"./_library":106,"./_meta":112,"./_object-create":117,"./_object-dp":118,"./_object-gopd":121,"./_object-gopn":123,"./_object-gopn-ext":122,"./_object-gops":124,"./_object-keys":127,"./_object-pie":128,"./_property-desc":136,"./_redefine":138,"./_set-to-string-tag":147,"./_shared":149,"./_to-iobject":163,"./_to-object":165,"./_to-primitive":166,"./_uid":170,"./_wks":175,"./_wks-define":173,"./_wks-ext":174}],303:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_typed"),o=t("./_typed-buffer"),l=t("./_an-object"),c=t("./_to-absolute-index"),u=t("./_to-length"),a=t("./_is-object"),s=t("./_global").ArrayBuffer,h=t("./_species-constructor"),d=o.ArrayBuffer,p=o.DataView,f=r.ABV&&s.isView,m=d.prototype.slice,g=r.VIEW,o="ArrayBuffer";i(i.G+i.W+i.F*(s!==d),{ArrayBuffer:d}),i(i.S+i.F*!r.CONSTR,o,{isView:function(t){return f&&f(t)||a(t)&&g in t}}),i(i.P+i.U+i.F*t("./_fails")(function(){return!new d(2).slice(1,void 0).byteLength}),o,{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(l(this),t);for(var n=l(this).byteLength,i=c(t,n),r=c(void 0===e?n:e,n),t=new(h(this,d))(u(r-i)),o=new p(this),a=new p(t),s=0;i<r;)a.setUint8(s++,o.getUint8(i++));return t}}),t("./_set-species")(o)},{"./_an-object":53,"./_export":79,"./_fails":81,"./_global":87,"./_is-object":98,"./_set-species":146,"./_species-constructor":150,"./_to-absolute-index":160,"./_to-length":164,"./_typed":169,"./_typed-buffer":168}],304:[function(t,e,n){var i=t("./_export");i(i.G+i.W+i.F*!t("./_typed").ABV,{DataView:t("./_typed-buffer").DataView})},{"./_export":79,"./_typed":169,"./_typed-buffer":168}],305:[function(t,e,n){t("./_typed-array")("Float32",4,function(i){return function(t,e,n){return i(this,t,e,n)}})},{"./_typed-array":167}],306:[function(t,e,n){t("./_typed-array")("Float64",8,function(i){return function(t,e,n){return i(this,t,e,n)}})},{"./_typed-array":167}],307:[function(t,e,n){t("./_typed-array")("Int16",2,function(i){return function(t,e,n){return i(this,t,e,n)}})},{"./_typed-array":167}],308:[function(t,e,n){t("./_typed-array")("Int32",4,function(i){return function(t,e,n){return i(this,t,e,n)}})},{"./_typed-array":167}],309:[function(t,e,n){t("./_typed-array")("Int8",1,function(i){return function(t,e,n){return i(this,t,e,n)}})},{"./_typed-array":167}],310:[function(t,e,n){t("./_typed-array")("Uint16",2,function(i){return function(t,e,n){return i(this,t,e,n)}})},{"./_typed-array":167}],311:[function(t,e,n){t("./_typed-array")("Uint32",4,function(i){return function(t,e,n){return i(this,t,e,n)}})},{"./_typed-array":167}],312:[function(t,e,n){t("./_typed-array")("Uint8",1,function(i){return function(t,e,n){return i(this,t,e,n)}})},{"./_typed-array":167}],313:[function(t,e,n){t("./_typed-array")("Uint8",1,function(i){return function(t,e,n){return i(this,t,e,n)}},!0)},{"./_typed-array":167}],314:[function(t,e,n){"use strict";function i(t){return function(){return t(this,0<arguments.length?arguments[0]:void 0)}}var o,r=t("./_global"),a=t("./_array-methods")(0),s=t("./_redefine"),l=t("./_meta"),c=t("./_object-assign"),u=t("./_collection-weak"),h=t("./_is-object"),d=t("./_validate-collection"),p=t("./_validate-collection"),r=!r.ActiveXObject&&"ActiveXObject"in r,f="WeakMap",m=l.getWeak,g=Object.isExtensible,v=u.ufstore,y={get:function(t){var e;if(h(t))return!0===(e=m(t))?v(d(this,f)).get(t):e?e[this._i]:void 0},set:function(t,e){return u.def(d(this,f),t,e)}},_=e.exports=t("./_collection")(f,i,y,u,!0,!0);p&&r&&(c((o=u.getConstructor(i,f)).prototype,y),l.NEED=!0,a(["delete","has","get","set"],function(i){var t=_.prototype,r=t[i];s(t,i,function(t,e){var n;return h(t)&&!g(t)?(this._f||(this._f=new o),n=this._f[i](t,e),"set"==i?this:n):r.call(this,t,e)})}))},{"./_array-methods":58,"./_collection":68,"./_collection-weak":67,"./_global":87,"./_is-object":98,"./_meta":112,"./_object-assign":116,"./_redefine":138,"./_validate-collection":172}],315:[function(t,e,n){"use strict";var i=t("./_collection-weak"),r=t("./_validate-collection");t("./_collection")("WeakSet",function(t){return function(){return t(this,0<arguments.length?arguments[0]:void 0)}},{add:function(t){return i.def(r(this,"WeakSet"),t,!0)}},i,!1,!0)},{"./_collection":68,"./_collection-weak":67,"./_validate-collection":172}],316:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_flatten-into-array"),o=t("./_to-object"),a=t("./_to-length"),s=t("./_a-function"),l=t("./_array-species-create");i(i.P,"Array",{flatMap:function(t){var e,n,i=o(this);return s(t),e=a(i.length),n=l(i,0),r(n,i,i,e,0,1,t,arguments[1]),n}}),t("./_add-to-unscopables")("flatMap")},{"./_a-function":48,"./_add-to-unscopables":50,"./_array-species-create":61,"./_export":79,"./_flatten-into-array":84,"./_to-length":164,"./_to-object":165}],317:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_flatten-into-array"),o=t("./_to-object"),a=t("./_to-length"),s=t("./_to-integer"),l=t("./_array-species-create");i(i.P,"Array",{flatten:function(){var t=arguments[0],e=o(this),n=a(e.length),i=l(e,0);return r(i,e,e,n,0,void 0===t?1:s(t)),i}}),t("./_add-to-unscopables")("flatten")},{"./_add-to-unscopables":50,"./_array-species-create":61,"./_export":79,"./_flatten-into-array":84,"./_to-integer":162,"./_to-length":164,"./_to-object":165}],318:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_array-includes")(!0);i(i.P,"Array",{includes:function(t){return r(this,t,1<arguments.length?arguments[1]:void 0)}}),t("./_add-to-unscopables")("includes")},{"./_add-to-unscopables":50,"./_array-includes":57,"./_export":79}],319:[function(t,e,n){var i=t("./_export"),r=t("./_microtask")(),o=t("./_global").process,a="process"==t("./_cof")(o);i(i.G,{asap:function(t){var e=a&&o.domain;r(e?e.bind(t):t)}})},{"./_cof":64,"./_export":79,"./_global":87,"./_microtask":114}],320:[function(t,e,n){var i=t("./_export"),r=t("./_cof");i(i.S,"Error",{isError:function(t){return"Error"===r(t)}})},{"./_cof":64,"./_export":79}],321:[function(t,e,n){var i=t("./_export");i(i.G,{global:t("./_global")})},{"./_export":79,"./_global":87}],322:[function(t,e,n){t("./_set-collection-from")("Map")},{"./_set-collection-from":143}],323:[function(t,e,n){t("./_set-collection-of")("Map")},{"./_set-collection-of":144}],324:[function(t,e,n){var i=t("./_export");i(i.P+i.R,"Map",{toJSON:t("./_collection-to-json")("Map")})},{"./_collection-to-json":66,"./_export":79}],325:[function(t,e,n){t=t("./_export");t(t.S,"Math",{clamp:function(t,e,n){return Math.min(n,Math.max(e,t))}})},{"./_export":79}],326:[function(t,e,n){t=t("./_export");t(t.S,"Math",{DEG_PER_RAD:Math.PI/180})},{"./_export":79}],327:[function(t,e,n){var t=t("./_export"),i=180/Math.PI;t(t.S,"Math",{degrees:function(t){return t*i}})},{"./_export":79}],328:[function(t,e,n){var i=t("./_export"),o=t("./_math-scale"),a=t("./_math-fround");i(i.S,"Math",{fscale:function(t,e,n,i,r){return a(o(t,e,n,i,r))}})},{"./_export":79,"./_math-fround":108,"./_math-scale":110}],329:[function(t,e,n){t=t("./_export");t(t.S,"Math",{iaddh:function(t,e,n,i){t>>>=0,n>>>=0;return(e>>>0)+(i>>>0)+((t&n|(t|n)&~(t+n>>>0))>>>31)|0}})},{"./_export":79}],330:[function(t,e,n){t=t("./_export");t(t.S,"Math",{imulh:function(t,e){var t=+t,e=+e,n=65535&t,i=65535&e,t=t>>16,e=e>>16,i=(t*i>>>0)+(n*i>>>16);return t*e+(i>>16)+((n*e>>>0)+(65535&i)>>16)}})},{"./_export":79}],331:[function(t,e,n){t=t("./_export");t(t.S,"Math",{isubh:function(t,e,n,i){t>>>=0,n>>>=0;return(e>>>0)-(i>>>0)-((~t&n|~(t^n)&t-n>>>0)>>>31)|0}})},{"./_export":79}],332:[function(t,e,n){t=t("./_export");t(t.S,"Math",{RAD_PER_DEG:180/Math.PI})},{"./_export":79}],333:[function(t,e,n){var t=t("./_export"),i=Math.PI/180;t(t.S,"Math",{radians:function(t){return t*i}})},{"./_export":79}],334:[function(t,e,n){var i=t("./_export");i(i.S,"Math",{scale:t("./_math-scale")})},{"./_export":79,"./_math-scale":110}],335:[function(t,e,n){t=t("./_export");t(t.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:0<t}})},{"./_export":79}],336:[function(t,e,n){t=t("./_export");t(t.S,"Math",{umulh:function(t,e){var t=+t,e=+e,n=65535&t,i=65535&e,t=t>>>16,e=e>>>16,i=(t*i>>>0)+(n*i>>>16);return t*e+(i>>>16)+((n*e>>>0)+(65535&i)>>>16)}})},{"./_export":79}],337:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_to-object"),o=t("./_a-function"),a=t("./_object-dp");t("./_descriptors")&&i(i.P+t("./_object-forced-pam"),"Object",{__defineGetter__:function(t,e){a.f(r(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},{"./_a-function":48,"./_descriptors":75,"./_export":79,"./_object-dp":118,"./_object-forced-pam":120,"./_to-object":165}],338:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_to-object"),o=t("./_a-function"),a=t("./_object-dp");t("./_descriptors")&&i(i.P+t("./_object-forced-pam"),"Object",{__defineSetter__:function(t,e){a.f(r(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},{"./_a-function":48,"./_descriptors":75,"./_export":79,"./_object-dp":118,"./_object-forced-pam":120,"./_to-object":165}],339:[function(t,e,n){var i=t("./_export"),r=t("./_object-to-array")(!0);i(i.S,"Object",{entries:function(t){return r(t)}})},{"./_export":79,"./_object-to-array":130}],340:[function(t,e,n){var i=t("./_export"),l=t("./_own-keys"),c=t("./_to-iobject"),u=t("./_object-gopd"),h=t("./_create-property");i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=c(t),r=u.f,o=l(i),a={},s=0;o.length>s;)void 0!==(n=r(i,e=o[s++]))&&h(a,e,n);return a}})},{"./_create-property":70,"./_export":79,"./_object-gopd":121,"./_own-keys":131,"./_to-iobject":163}],341:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_to-object"),o=t("./_to-primitive"),a=t("./_object-gpo"),s=t("./_object-gopd").f;t("./_descriptors")&&i(i.P+t("./_object-forced-pam"),"Object",{__lookupGetter__:function(t){var e,n=r(this),i=o(t,!0);do{if(e=s(n,i))return e.get}while(n=a(n))}})},{"./_descriptors":75,"./_export":79,"./_object-forced-pam":120,"./_object-gopd":121,"./_object-gpo":125,"./_to-object":165,"./_to-primitive":166}],342:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_to-object"),o=t("./_to-primitive"),a=t("./_object-gpo"),s=t("./_object-gopd").f;t("./_descriptors")&&i(i.P+t("./_object-forced-pam"),"Object",{__lookupSetter__:function(t){var e,n=r(this),i=o(t,!0);do{if(e=s(n,i))return e.set}while(n=a(n))}})},{"./_descriptors":75,"./_export":79,"./_object-forced-pam":120,"./_object-gopd":121,"./_object-gpo":125,"./_to-object":165,"./_to-primitive":166}],343:[function(t,e,n){var i=t("./_export"),r=t("./_object-to-array")(!1);i(i.S,"Object",{values:function(t){return r(t)}})},{"./_export":79,"./_object-to-array":130}],344:[function(t,e,n){"use strict";function r(t){return null==t?void 0:p(t)}function o(t){var e=t._c;e&&(t._c=void 0,e())}function a(t){return void 0===t._o}function s(t){a(t)||(t._o=void 0,o(t))}function i(e,t){f(e),this._c=void 0,this._o=e,e=new b(this);try{var n=t(e),i=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){i.unsubscribe()}:p(n),this._c=n)}catch(t){return void e.error(t)}a(this)&&o(this)}var l=t("./_export"),c=t("./_global"),u=t("./_core"),h=t("./_microtask")(),d=t("./_wks")("observable"),p=t("./_a-function"),f=t("./_an-object"),m=t("./_an-instance"),g=t("./_redefine-all"),v=t("./_hide"),y=t("./_for-of"),_=y.RETURN,b=(i.prototype=g({},{unsubscribe:function(){s(this)}}),function(t){this._s=t}),x=(b.prototype=g({},{next:function(t){var e=this._s;if(!a(e)){var n=e._o;try{var i=r(n.next);if(i)return i.call(n,t)}catch(t){try{s(e)}finally{throw t}}}},error:function(t){var e=this._s;if(a(e))throw t;var n=e._o;e._o=void 0;try{var i=r(n.error);if(!i)throw t;t=i.call(n,t)}catch(t){try{o(e)}finally{throw t}}return o(e),t},complete:function(t){var e=this._s;if(!a(e)){var n=e._o;e._o=void 0;try{var i=r(n.complete);t=i?i.call(n,t):void 0}catch(t){try{o(e)}finally{throw t}}return o(e),t}}}),function(t){m(this,x,"Observable","_f")._f=p(t)});g(x.prototype,{subscribe:function(t){return new i(t,this._f)},forEach:function(i){var r=this;return new(u.Promise||c.Promise)(function(t,e){p(i);var n=r.subscribe({next:function(t){try{return i(t)}catch(t){e(t),n.unsubscribe()}},error:e,complete:t})})}}),g(x,{from:function(t){var e,n="function"==typeof this?this:x,i=r(f(t)[d]);return i?(e=f(i.call(t))).constructor===n?e:new n(function(t){return e.subscribe(t)}):new n(function(e){var n=!1;return h(function(){if(!n){try{if(y(t,!1,function(t){if(e.next(t),n)return _})===_)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,i=new Array(e);t<e;)i[t]=arguments[t++];return new("function"==typeof this?this:x)(function(e){var n=!1;return h(function(){if(!n){for(var t=0;t<i.length;++t)if(e.next(i[t]),n)return;e.complete()}}),function(){n=!0}})}}),v(x.prototype,d,function(){return this}),l(l.G,{Observable:x}),t("./_set-species")("Observable")},{"./_a-function":48,"./_an-instance":52,"./_an-object":53,"./_core":69,"./_export":79,"./_for-of":85,"./_global":87,"./_hide":89,"./_microtask":114,"./_redefine-all":137,"./_set-species":146,"./_wks":175}],345:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_core"),o=t("./_global"),a=t("./_species-constructor"),s=t("./_promise-resolve");i(i.P+i.R,"Promise",{finally:function(e){var n=a(this,r.Promise||o.Promise),t="function"==typeof e;return this.then(t?function(t){return s(n,e()).then(function(){return t})}:e,t?function(t){return s(n,e()).then(function(){throw t})}:e)}})},{"./_core":69,"./_export":79,"./_global":87,"./_promise-resolve":135,"./_species-constructor":150}],346:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_new-promise-capability"),o=t("./_perform");i(i.S,"Promise",{try:function(t){var e=r.f(this),t=o(t);return(t.e?e.reject:e.resolve)(t.v),e.promise}})},{"./_export":79,"./_new-promise-capability":115,"./_perform":134}],347:[function(t,e,n){var i=t("./_metadata"),r=t("./_an-object"),o=i.key,a=i.set;i.exp({defineMetadata:function(t,e,n,i){a(t,e,r(n),o(i))}})},{"./_an-object":53,"./_metadata":113}],348:[function(t,e,n){var i=t("./_metadata"),r=t("./_an-object"),o=i.key,a=i.map,s=i.store;i.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:o(arguments[2]),i=a(r(e),n,!1);return!(void 0===i||!i.delete(t))&&(!!i.size||((i=s.get(e)).delete(n),!!i.size)||s.delete(e))}})},{"./_an-object":53,"./_metadata":113}],349:[function(t,e,n){function i(t,e){var n=c(t,e);return null!==(t=l(t))&&(t=i(t,e)).length?n.length?o(new r(n.concat(t))):t:n}var r=t("./es6.set"),o=t("./_array-from-iterable"),a=t("./_metadata"),s=t("./_an-object"),l=t("./_object-gpo"),c=a.keys,u=a.key;a.exp({getMetadataKeys:function(t){return i(s(t),arguments.length<2?void 0:u(arguments[1]))}})},{"./_an-object":53,"./_array-from-iterable":56,"./_metadata":113,"./_object-gpo":125,"./es6.set":279}],350:[function(t,e,n){function i(t,e,n){return s(t,e,n)?l(t,e,n):null!==(e=a(e))?i(t,e,n):void 0}var r=t("./_metadata"),o=t("./_an-object"),a=t("./_object-gpo"),s=r.has,l=r.get,c=r.key;r.exp({getMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:c(arguments[2]))}})},{"./_an-object":53,"./_metadata":113,"./_object-gpo":125}],351:[function(t,e,n){var i=t("./_metadata"),r=t("./_an-object"),o=i.keys,a=i.key;i.exp({getOwnMetadataKeys:function(t){return o(r(t),arguments.length<2?void 0:a(arguments[1]))}})},{"./_an-object":53,"./_metadata":113}],352:[function(t,e,n){var i=t("./_metadata"),r=t("./_an-object"),o=i.get,a=i.key;i.exp({getOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:a(arguments[2]))}})},{"./_an-object":53,"./_metadata":113}],353:[function(t,e,n){function i(t,e,n){return!!s(t,e,n)||null!==(e=a(e))&&i(t,e,n)}var r=t("./_metadata"),o=t("./_an-object"),a=t("./_object-gpo"),s=r.has,l=r.key;r.exp({hasMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:l(arguments[2]))}})},{"./_an-object":53,"./_metadata":113,"./_object-gpo":125}],354:[function(t,e,n){var i=t("./_metadata"),r=t("./_an-object"),o=i.has,a=i.key;i.exp({hasOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:a(arguments[2]))}})},{"./_an-object":53,"./_metadata":113}],355:[function(t,e,n){var i=t("./_metadata"),r=t("./_an-object"),o=t("./_a-function"),a=i.key,s=i.set;i.exp({metadata:function(n,i){return function(t,e){s(n,i,(void 0!==e?r:o)(t),a(e))}}})},{"./_a-function":48,"./_an-object":53,"./_metadata":113}],356:[function(t,e,n){t("./_set-collection-from")("Set")},{"./_set-collection-from":143}],357:[function(t,e,n){t("./_set-collection-of")("Set")},{"./_set-collection-of":144}],358:[function(t,e,n){var i=t("./_export");i(i.P+i.R,"Set",{toJSON:t("./_collection-to-json")("Set")})},{"./_collection-to-json":66,"./_export":79}],359:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_string-at")(!0),t=t("./_fails")(function(){return"𠮷"!=="𠮷".at(0)});i(i.P+i.F*t,"String",{at:function(t){return r(this,t)}})},{"./_export":79,"./_fails":81,"./_string-at":152}],360:[function(t,e,n){"use strict";function i(t,e){this._r=t,this._s=e}var r=t("./_export"),o=t("./_defined"),a=t("./_to-length"),s=t("./_is-regexp"),l=t("./_flags"),c=RegExp.prototype;t("./_iter-create")(i,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),r(r.P,"String",{matchAll:function(t){var e,n;if(o(this),s(t))return e=String(this),n="flags"in c?String(t.flags):l.call(t),(n=new RegExp(t.source,~n.indexOf("g")?n:"g"+n)).lastIndex=a(t.lastIndex),new i(n,e);throw TypeError(t+" is not a regexp!")}})},{"./_defined":74,"./_export":79,"./_flags":83,"./_is-regexp":99,"./_iter-create":101,"./_to-length":164}],361:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_string-pad"),t=t("./_user-agent"),t=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(t);i(i.P+i.F*t,"String",{padEnd:function(t){return r(this,t,1<arguments.length?arguments[1]:void 0,!1)}})},{"./_export":79,"./_string-pad":155,"./_user-agent":171}],362:[function(t,e,n){"use strict";var i=t("./_export"),r=t("./_string-pad"),t=t("./_user-agent"),t=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(t);i(i.P+i.F*t,"String",{padStart:function(t){return r(this,t,1<arguments.length?arguments[1]:void 0,!0)}})},{"./_export":79,"./_string-pad":155,"./_user-agent":171}],363:[function(t,e,n){"use strict";t("./_string-trim")("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},{"./_string-trim":157}],364:[function(t,e,n){"use strict";t("./_string-trim")("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},{"./_string-trim":157}],365:[function(t,e,n){t("./_wks-define")("asyncIterator")},{"./_wks-define":173}],366:[function(t,e,n){t("./_wks-define")("observable")},{"./_wks-define":173}],367:[function(t,e,n){var i=t("./_export");i(i.S,"System",{global:t("./_global")})},{"./_export":79,"./_global":87}],368:[function(t,e,n){t("./_set-collection-from")("WeakMap")},{"./_set-collection-from":143}],369:[function(t,e,n){t("./_set-collection-of")("WeakMap")},{"./_set-collection-of":144}],370:[function(t,e,n){t("./_set-collection-from")("WeakSet")},{"./_set-collection-from":143}],371:[function(t,e,n){t("./_set-collection-of")("WeakSet")},{"./_set-collection-of":144}],372:[function(t,e,n){for(var i=t("./es6.array.iterator"),r=t("./_object-keys"),o=t("./_redefine"),a=t("./_global"),s=t("./_hide"),l=t("./_iterators"),t=t("./_wks"),c=t("iterator"),u=t("toStringTag"),h=l.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(d),f=0;f<p.length;f++){var m,g=p[f],v=d[g],y=a[g],_=y&&y.prototype;if(_&&(_[c]||s(_,c,h),_[u]||s(_,u,g),l[g]=h,v))for(m in i)_[m]||o(_,m,i[m],!0)}},{"./_global":87,"./_hide":89,"./_iterators":105,"./_object-keys":127,"./_redefine":138,"./_wks":175,"./es6.array.iterator":188}],373:[function(t,e,n){var i=t("./_export"),t=t("./_task");i(i.G+i.B,{setImmediate:t.set,clearImmediate:t.clear})},{"./_export":79,"./_task":159}],374:[function(t,e,n){function i(r){return function(t,e){var n=2<arguments.length,i=n&&a.call(arguments,2);return r(n?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,e)}}var r=t("./_global"),o=t("./_export"),t=t("./_user-agent"),a=[].slice,t=/MSIE .\./.test(t);o(o.G+o.B+o.F*t,{setTimeout:i(r.setTimeout),setInterval:i(r.setInterval)})},{"./_export":79,"./_global":87,"./_user-agent":171}],375:[function(t,e,n){t("./modules/es6.symbol"),t("./modules/es6.object.create"),t("./modules/es6.object.define-property"),t("./modules/es6.object.define-properties"),t("./modules/es6.object.get-own-property-descriptor"),t("./modules/es6.object.get-prototype-of"),t("./modules/es6.object.keys"),t("./modules/es6.object.get-own-property-names"),t("./modules/es6.object.freeze"),t("./modules/es6.object.seal"),t("./modules/es6.object.prevent-extensions"),t("./modules/es6.object.is-frozen"),t("./modules/es6.object.is-sealed"),t("./modules/es6.object.is-extensible"),t("./modules/es6.object.assign"),t("./modules/es6.object.is"),t("./modules/es6.object.set-prototype-of"),t("./modules/es6.object.to-string"),t("./modules/es6.function.bind"),t("./modules/es6.function.name"),t("./modules/es6.function.has-instance"),t("./modules/es6.parse-int"),t("./modules/es6.parse-float"),t("./modules/es6.number.constructor"),t("./modules/es6.number.to-fixed"),t("./modules/es6.number.to-precision"),t("./modules/es6.number.epsilon"),t("./modules/es6.number.is-finite"),t("./modules/es6.number.is-integer"),t("./modules/es6.number.is-nan"),t("./modules/es6.number.is-safe-integer"),t("./modules/es6.number.max-safe-integer"),t("./modules/es6.number.min-safe-integer"),t("./modules/es6.number.parse-float"),t("./modules/es6.number.parse-int"),t("./modules/es6.math.acosh"),t("./modules/es6.math.asinh"),t("./modules/es6.math.atanh"),t("./modules/es6.math.cbrt"),t("./modules/es6.math.clz32"),t("./modules/es6.math.cosh"),t("./modules/es6.math.expm1"),t("./modules/es6.math.fround"),t("./modules/es6.math.hypot"),t("./modules/es6.math.imul"),t("./modules/es6.math.log10"),t("./modules/es6.math.log1p"),t("./modules/es6.math.log2"),t("./modules/es6.math.sign"),t("./modules/es6.math.sinh"),t("./modules/es6.math.tanh"),t("./modules/es6.math.trunc"),t("./modules/es6.string.from-code-point"),t("./modules/es6.string.raw"),t("./modules/es6.string.trim"),t("./modules/es6.string.iterator"),t("./modules/es6.string.code-point-at"),t("./modules/es6.string.ends-with"),t("./modules/es6.string.includes"),t("./modules/es6.string.repeat"),t("./modules/es6.string.starts-with"),t("./modules/es6.string.anchor"),t("./modules/es6.string.big"),t("./modules/es6.string.blink"),t("./modules/es6.string.bold"),t("./modules/es6.string.fixed"),t("./modules/es6.string.fontcolor"),t("./modules/es6.string.fontsize"),t("./modules/es6.string.italics"),t("./modules/es6.string.link"),t("./modules/es6.string.small"),t("./modules/es6.string.strike"),t("./modules/es6.string.sub"),t("./modules/es6.string.sup"),t("./modules/es6.date.now"),t("./modules/es6.date.to-json"),t("./modules/es6.date.to-iso-string"),t("./modules/es6.date.to-string"),t("./modules/es6.date.to-primitive"),t("./modules/es6.array.is-array"),t("./modules/es6.array.from"),t("./modules/es6.array.of"),t("./modules/es6.array.join"),t("./modules/es6.array.slice"),t("./modules/es6.array.sort"),t("./modules/es6.array.for-each"),t("./modules/es6.array.map"),t("./modules/es6.array.filter"),t("./modules/es6.array.some"),t("./modules/es6.array.every"),t("./modules/es6.array.reduce"),t("./modules/es6.array.reduce-right"),t("./modules/es6.array.index-of"),t("./modules/es6.array.last-index-of"),t("./modules/es6.array.copy-within"),t("./modules/es6.array.fill"),t("./modules/es6.array.find"),t("./modules/es6.array.find-index"),t("./modules/es6.array.species"),t("./modules/es6.array.iterator"),t("./modules/es6.regexp.constructor"),t("./modules/es6.regexp.exec"),t("./modules/es6.regexp.to-string"),t("./modules/es6.regexp.flags"),t("./modules/es6.regexp.match"),t("./modules/es6.regexp.replace"),t("./modules/es6.regexp.search"),t("./modules/es6.regexp.split"),t("./modules/es6.promise"),t("./modules/es6.map"),t("./modules/es6.set"),t("./modules/es6.weak-map"),t("./modules/es6.weak-set"),t("./modules/es6.typed.array-buffer"),t("./modules/es6.typed.data-view"),t("./modules/es6.typed.int8-array"),t("./modules/es6.typed.uint8-array"),t("./modules/es6.typed.uint8-clamped-array"),t("./modules/es6.typed.int16-array"),t("./modules/es6.typed.uint16-array"),t("./modules/es6.typed.int32-array"),t("./modules/es6.typed.uint32-array"),t("./modules/es6.typed.float32-array"),t("./modules/es6.typed.float64-array"),t("./modules/es6.reflect.apply"),t("./modules/es6.reflect.construct"),t("./modules/es6.reflect.define-property"),t("./modules/es6.reflect.delete-property"),t("./modules/es6.reflect.enumerate"),t("./modules/es6.reflect.get"),t("./modules/es6.reflect.get-own-property-descriptor"),t("./modules/es6.reflect.get-prototype-of"),t("./modules/es6.reflect.has"),t("./modules/es6.reflect.is-extensible"),t("./modules/es6.reflect.own-keys"),t("./modules/es6.reflect.prevent-extensions"),t("./modules/es6.reflect.set"),t("./modules/es6.reflect.set-prototype-of"),t("./modules/es7.array.includes"),t("./modules/es7.array.flat-map"),t("./modules/es7.array.flatten"),t("./modules/es7.string.at"),t("./modules/es7.string.pad-start"),t("./modules/es7.string.pad-end"),t("./modules/es7.string.trim-left"),t("./modules/es7.string.trim-right"),t("./modules/es7.string.match-all"),t("./modules/es7.symbol.async-iterator"),t("./modules/es7.symbol.observable"),t("./modules/es7.object.get-own-property-descriptors"),t("./modules/es7.object.values"),t("./modules/es7.object.entries"),t("./modules/es7.object.define-getter"),t("./modules/es7.object.define-setter"),t("./modules/es7.object.lookup-getter"),t("./modules/es7.object.lookup-setter"),t("./modules/es7.map.to-json"),t("./modules/es7.set.to-json"),t("./modules/es7.map.of"),t("./modules/es7.set.of"),t("./modules/es7.weak-map.of"),t("./modules/es7.weak-set.of"),t("./modules/es7.map.from"),t("./modules/es7.set.from"),t("./modules/es7.weak-map.from"),t("./modules/es7.weak-set.from"),t("./modules/es7.global"),t("./modules/es7.system.global"),t("./modules/es7.error.is-error"),t("./modules/es7.math.clamp"),t("./modules/es7.math.deg-per-rad"),t("./modules/es7.math.degrees"),t("./modules/es7.math.fscale"),t("./modules/es7.math.iaddh"),t("./modules/es7.math.isubh"),t("./modules/es7.math.imulh"),t("./modules/es7.math.rad-per-deg"),t("./modules/es7.math.radians"),t("./modules/es7.math.scale"),t("./modules/es7.math.umulh"),t("./modules/es7.math.signbit"),t("./modules/es7.promise.finally"),t("./modules/es7.promise.try"),t("./modules/es7.reflect.define-metadata"),t("./modules/es7.reflect.delete-metadata"),t("./modules/es7.reflect.get-metadata"),t("./modules/es7.reflect.get-metadata-keys"),t("./modules/es7.reflect.get-own-metadata"),t("./modules/es7.reflect.get-own-metadata-keys"),t("./modules/es7.reflect.has-metadata"),t("./modules/es7.reflect.has-own-metadata"),t("./modules/es7.reflect.metadata"),t("./modules/es7.asap"),t("./modules/es7.observable"),t("./modules/web.timers"),t("./modules/web.immediate"),t("./modules/web.dom.iterable"),e.exports=t("./modules/_core")},{"./modules/_core":69,"./modules/es6.array.copy-within":178,"./modules/es6.array.every":179,"./modules/es6.array.fill":180,"./modules/es6.array.filter":181,"./modules/es6.array.find":183,"./modules/es6.array.find-index":182,"./modules/es6.array.for-each":184,"./modules/es6.array.from":185,"./modules/es6.array.index-of":186,"./modules/es6.array.is-array":187,"./modules/es6.array.iterator":188,"./modules/es6.array.join":189,"./modules/es6.array.last-index-of":190,"./modules/es6.array.map":191,"./modules/es6.array.of":192,"./modules/es6.array.reduce":194,"./modules/es6.array.reduce-right":193,"./modules/es6.array.slice":195,"./modules/es6.array.some":196,"./modules/es6.array.sort":197,"./modules/es6.array.species":198,"./modules/es6.date.now":199,"./modules/es6.date.to-iso-string":200,"./modules/es6.date.to-json":201,"./modules/es6.date.to-primitive":202,"./modules/es6.date.to-string":203,"./modules/es6.function.bind":204,"./modules/es6.function.has-instance":205,"./modules/es6.function.name":206,"./modules/es6.map":207,"./modules/es6.math.acosh":208,"./modules/es6.math.asinh":209,"./modules/es6.math.atanh":210,"./modules/es6.math.cbrt":211,"./modules/es6.math.clz32":212,"./modules/es6.math.cosh":213,"./modules/es6.math.expm1":214,"./modules/es6.math.fround":215,"./modules/es6.math.hypot":216,"./modules/es6.math.imul":217,"./modules/es6.math.log10":218,"./modules/es6.math.log1p":219,"./modules/es6.math.log2":220,"./modules/es6.math.sign":221,"./modules/es6.math.sinh":222,"./modules/es6.math.tanh":223,"./modules/es6.math.trunc":224,"./modules/es6.number.constructor":225,"./modules/es6.number.epsilon":226,"./modules/es6.number.is-finite":227,"./modules/es6.number.is-integer":228,"./modules/es6.number.is-nan":229,"./modules/es6.number.is-safe-integer":230,"./modules/es6.number.max-safe-integer":231,"./modules/es6.number.min-safe-integer":232,"./modules/es6.number.parse-float":233,"./modules/es6.number.parse-int":234,"./modules/es6.number.to-fixed":235,"./modules/es6.number.to-precision":236,"./modules/es6.object.assign":237,"./modules/es6.object.create":238,"./modules/es6.object.define-properties":239,"./modules/es6.object.define-property":240,"./modules/es6.object.freeze":241,"./modules/es6.object.get-own-property-descriptor":242,"./modules/es6.object.get-own-property-names":243,"./modules/es6.object.get-prototype-of":244,"./modules/es6.object.is":248,"./modules/es6.object.is-extensible":245,"./modules/es6.object.is-frozen":246,"./modules/es6.object.is-sealed":247,"./modules/es6.object.keys":249,"./modules/es6.object.prevent-extensions":250,"./modules/es6.object.seal":251,"./modules/es6.object.set-prototype-of":252,"./modules/es6.object.to-string":253,"./modules/es6.parse-float":254,"./modules/es6.parse-int":255,"./modules/es6.promise":256,"./modules/es6.reflect.apply":257,"./modules/es6.reflect.construct":258,"./modules/es6.reflect.define-property":259,"./modules/es6.reflect.delete-property":260,"./modules/es6.reflect.enumerate":261,"./modules/es6.reflect.get":264,"./modules/es6.reflect.get-own-property-descriptor":262,"./modules/es6.reflect.get-prototype-of":263,"./modules/es6.reflect.has":265,"./modules/es6.reflect.is-extensible":266,"./modules/es6.reflect.own-keys":267,"./modules/es6.reflect.prevent-extensions":268,"./modules/es6.reflect.set":270,"./modules/es6.reflect.set-prototype-of":269,"./modules/es6.regexp.constructor":271,"./modules/es6.regexp.exec":272,"./modules/es6.regexp.flags":273,"./modules/es6.regexp.match":274,"./modules/es6.regexp.replace":275,"./modules/es6.regexp.search":276,"./modules/es6.regexp.split":277,"./modules/es6.regexp.to-string":278,"./modules/es6.set":279,"./modules/es6.string.anchor":280,"./modules/es6.string.big":281,"./modules/es6.string.blink":282,"./modules/es6.string.bold":283,"./modules/es6.string.code-point-at":284,"./modules/es6.string.ends-with":285,"./modules/es6.string.fixed":286,"./modules/es6.string.fontcolor":287,"./modules/es6.string.fontsize":288,"./modules/es6.string.from-code-point":289,"./modules/es6.string.includes":290,"./modules/es6.string.italics":291,"./modules/es6.string.iterator":292,"./modules/es6.string.link":293,"./modules/es6.string.raw":294,"./modules/es6.string.repeat":295,"./modules/es6.string.small":296,"./modules/es6.string.starts-with":297,"./modules/es6.string.strike":298,"./modules/es6.string.sub":299,"./modules/es6.string.sup":300,"./modules/es6.string.trim":301,"./modules/es6.symbol":302,"./modules/es6.typed.array-buffer":303,"./modules/es6.typed.data-view":304,"./modules/es6.typed.float32-array":305,"./modules/es6.typed.float64-array":306,"./modules/es6.typed.int16-array":307,"./modules/es6.typed.int32-array":308,"./modules/es6.typed.int8-array":309,"./modules/es6.typed.uint16-array":310,"./modules/es6.typed.uint32-array":311,"./modules/es6.typed.uint8-array":312,"./modules/es6.typed.uint8-clamped-array":313,"./modules/es6.weak-map":314,"./modules/es6.weak-set":315,"./modules/es7.array.flat-map":316,"./modules/es7.array.flatten":317,"./modules/es7.array.includes":318,"./modules/es7.asap":319,"./modules/es7.error.is-error":320,"./modules/es7.global":321,"./modules/es7.map.from":322,"./modules/es7.map.of":323,"./modules/es7.map.to-json":324,"./modules/es7.math.clamp":325,"./modules/es7.math.deg-per-rad":326,"./modules/es7.math.degrees":327,"./modules/es7.math.fscale":328,"./modules/es7.math.iaddh":329,"./modules/es7.math.imulh":330,"./modules/es7.math.isubh":331,"./modules/es7.math.rad-per-deg":332,"./modules/es7.math.radians":333,"./modules/es7.math.scale":334,"./modules/es7.math.signbit":335,"./modules/es7.math.umulh":336,"./modules/es7.object.define-getter":337,"./modules/es7.object.define-setter":338,"./modules/es7.object.entries":339,"./modules/es7.object.get-own-property-descriptors":340,"./modules/es7.object.lookup-getter":341,"./modules/es7.object.lookup-setter":342,"./modules/es7.object.values":343,"./modules/es7.observable":344,"./modules/es7.promise.finally":345,"./modules/es7.promise.try":346,"./modules/es7.reflect.define-metadata":347,"./modules/es7.reflect.delete-metadata":348,"./modules/es7.reflect.get-metadata":350,"./modules/es7.reflect.get-metadata-keys":349,"./modules/es7.reflect.get-own-metadata":352,"./modules/es7.reflect.get-own-metadata-keys":351,"./modules/es7.reflect.has-metadata":353,"./modules/es7.reflect.has-own-metadata":354,"./modules/es7.reflect.metadata":355,"./modules/es7.set.from":356,"./modules/es7.set.of":357,"./modules/es7.set.to-json":358,"./modules/es7.string.at":359,"./modules/es7.string.match-all":360,"./modules/es7.string.pad-end":361,"./modules/es7.string.pad-start":362,"./modules/es7.string.trim-left":363,"./modules/es7.string.trim-right":364,"./modules/es7.symbol.async-iterator":365,"./modules/es7.symbol.observable":366,"./modules/es7.system.global":367,"./modules/es7.weak-map.from":368,"./modules/es7.weak-map.of":369,"./modules/es7.weak-set.from":370,"./modules/es7.weak-set.of":371,"./modules/web.dom.iterable":372,"./modules/web.immediate":373,"./modules/web.timers":374}],376:[function(t,e,n){try{var i=new window.CustomEvent("test");if(i.preventDefault(),!0!==i.defaultPrevented)throw new Error("Could not prevent default")}catch(t){function r(t,e){var n,i;return e=e||{bubbles:!1,cancelable:!1,detail:void 0},(n=document.createEvent("CustomEvent")).initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i=n.preventDefault,n.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented=!0}},n}r.prototype=window.Event.prototype,window.CustomEvent=r}},{}],377:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n,i=arguments[e];for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},P=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,i=[],r=!0,e=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(i.push(a.value),!n||i.length!==n);r=!0);}catch(t){e=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(e)throw o}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")},d=(n.default=function(s,l){var c=[],u=[];return function(){if(s&&s instanceof HTMLElement&&"SELECT"===s.tagName.toUpperCase())c.push(s);else if(s&&"string"==typeof s)for(var t=document.querySelectorAll(s),e=0,n=t.length;e<n;++e)t[e]instanceof HTMLElement&&"SELECT"===t[e].tagName.toUpperCase()&&c.push(t[e]);else if(s&&s.length)for(var i=0,r=s.length;i<r;++i)s[i]instanceof HTMLElement&&"SELECT"===s[i].tagName.toUpperCase()&&c.push(s[i]);for(var o=0,a=c.length;o<a;++o)u.push(function(t,u){var e="customSelect",i=!1,n="",h=t,o=void 0,r=void 0,a=void 0,s=void 0,d=void 0,t=void 0,l=void 0,c="";function p(t){a&&a.classList.remove(u.hasFocusClass),void 0!==t?((a=t).classList.add(u.hasFocusClass),i&&(t.offsetTop<t.offsetParent.scrollTop||t.offsetTop>t.offsetParent.scrollTop+t.offsetParent.clientHeight-t.clientHeight)&&t.dispatchEvent(new CustomEvent("custom-select:focus-outside-panel",{bubbles:!0}))):a=void 0}function f(t){s&&(s.classList.remove(u.isSelectedClass),s.removeAttribute("id"),r.removeAttribute("aria-activedescendant")),void 0!==t?(t.classList.add(u.isSelectedClass),t.setAttribute("id",e+"-"+n+"-selectedOption"),r.setAttribute("aria-activedescendant",e+"-"+n+"-selectedOption"),s=t,r.children[0].textContent=s.customSelectOriginalOption.text):(s=void 0,r.children[0].textContent=""),p(t)}function m(t){var e=[].indexOf.call(h.options,a.customSelectOriginalOption);h.options[e+t]&&p(h.options[e+t].customSelectCstOption)}function g(t){t||void 0===t?((t=document.querySelector("."+e+"."+u.isOpenClass))&&(t.customSelect.open=!1),o.classList.add(u.isOpenClass),o.classList.add(u.isOpenClass),r.setAttribute("aria-expanded","true"),s&&(d.scrollTop=s.offsetTop),o.dispatchEvent(new CustomEvent("custom-select:open")),i=!0):(o.classList.remove(u.isOpenClass),r.setAttribute("aria-expanded","false"),i=!1,p(s),o.dispatchEvent(new CustomEvent("custom-select:close")))}function v(t){t.target===r||r.contains(t.target)?i?g(!1):g():t.target.classList&&t.target.classList.contains(u.optionClass)&&d.contains(t.target)?(f(t.target),g(!(s.customSelectOriginalOption.selected=!0)),h.dispatchEvent(new CustomEvent("change"))):t.target===h?r!==document.activeElement&&h!==document.activeElement&&r.focus():i&&!o.contains(t.target)&&g(!1)}function y(t){t.target.classList&&t.target.classList.contains(u.optionClass)&&p(t.target)}function _(t){if(i)switch(t.keyCode){case 13:case 32:f(a),s.customSelectOriginalOption.selected=!0,h.dispatchEvent(new CustomEvent("change")),g(!1);break;case 27:g(!1);break;case 38:m(-1);break;case 40:m(1);break;default:if(48<=t.keyCode&&t.keyCode<=90){l&&clearTimeout(l),l=setTimeout(function(){c=""},1500),c+=String.fromCharCode(t.keyCode);for(var e=0,n=h.options.length;e<n;e++)if(h.options[e].text.toUpperCase().substr(0,c.length)===c){p(h.options[e].customSelectCstOption);break}}}else 40!==t.keyCode&&38!==t.keyCode&&32!==t.keyCode||g()}function b(){var t=h.selectedIndex;f(-1===t?void 0:h.options[t].customSelectCstOption)}function x(t){var e=t.currentTarget,t=t.target;t.offsetTop<e.scrollTop?e.scrollTop=t.offsetTop:e.scrollTop=t.offsetTop+t.clientHeight-e.clientHeight}function w(){document.addEventListener("click",v),d.addEventListener("mouseover",y),d.addEventListener("custom-select:focus-outside-panel",x),h.addEventListener("change",b),o.addEventListener("keydown",_)}function T(){document.removeEventListener("click",v),d.removeEventListener("mouseover",y),d.removeEventListener("custom-select:focus-outside-panel",x),h.removeEventListener("change",b),o.removeEventListener("keydown",_)}function S(t){var e=t,n=[];if(void 0===e.length)throw new TypeError("Invalid Argument");for(var i=0,r=e.length;i<r;i++)if(e[i]instanceof HTMLElement&&"OPTGROUP"===e[i].tagName.toUpperCase()){for(var o=document.createElement("div"),a=(o.classList.add(u.optgroupClass),o.setAttribute("data-label",e[i].label),o.customSelectOriginalOptgroup=e[i],e[i].customSelectCstOptgroup=o,S(e[i].children)),s=0,l=a.length;s<l;s++)o.appendChild(a[s]);n.push(o)}else{if(!(e[i]instanceof HTMLElement&&"OPTION"===e[i].tagName.toUpperCase()))throw new TypeError("Invalid Argument");var c=document.createElement("div");c.classList.add(u.optionClass),c.textContent=e[i].text,c.setAttribute("data-value",e[i].value),c.setAttribute("role","option"),c.customSelectOriginalOption=e[i],e[i].customSelectCstOption=c,e[i].selected&&f(c),n.push(c)}return n}function C(t,e,n){var i=void 0;if(void 0===n||n===h)i=d;else{if(!(n instanceof HTMLElement&&"OPTGROUP"===n.tagName.toUpperCase()&&h.contains(n)))throw new TypeError("Invalid Argument");i=n.customSelectCstOptgroup}var r=t instanceof HTMLElement?[t]:t;if(e)for(var o=0,a=r.length;o<a;o++)(i===d?h:i.customSelectOriginalOptgroup).appendChild(r[o]);for(var s=S(r),l=0,c=s.length;l<c;l++)i.appendChild(s[l]);return r}(o=document.createElement("div")).classList.add(u.containerClass,e),(r=document.createElement("span")).className=u.openerClass,r.setAttribute("role","combobox"),r.setAttribute("aria-autocomplete","list"),r.setAttribute("aria-expanded","false"),r.innerHTML="<span>\n   "+(-1!==h.selectedIndex?h.options[h.selectedIndex].text:"")+"\n   </span>",d=document.createElement("div");for(var E="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",M=0;M<5;M++)n+=E.charAt(Math.floor(Math.random()*E.length));d.id=e+"-"+n+"-panel",d.className=u.panelClass,d.setAttribute("role","listbox"),r.setAttribute("aria-owns",d.id),C(h.children,!1),o.appendChild(r),h.parentNode.replaceChild(o,h),o.appendChild(h),o.appendChild(d),document.querySelector('label[for="'+h.id+'"]')?t=document.querySelector('label[for="'+h.id+'"]'):"LABEL"===o.parentNode.tagName.toUpperCase()&&(t=o.parentNode);void 0!==t&&(t.setAttribute("id",e+"-"+n+"-label"),r.setAttribute("aria-labelledby",e+"-"+n+"-label"));h.disabled?o.classList.add(u.isDisabledClass):(r.setAttribute("tabindex","0"),h.setAttribute("tabindex","-1"),w());return o.customSelect={get pluginOptions(){return u},get open(){return i},set open(t){g(t)},get disabled(){return h.disabled},set disabled(t){(t=t)&&!h.disabled?(o.classList.add(u.isDisabledClass),h.disabled=!0,r.removeAttribute("tabindex"),o.dispatchEvent(new CustomEvent("custom-select:disabled")),T()):!t&&h.disabled&&(o.classList.remove(u.isDisabledClass),h.disabled=!1,r.setAttribute("tabindex","0"),o.dispatchEvent(new CustomEvent("custom-select:enabled")),w())},get value(){return h.value},set value(t){(h.querySelector("option[value='"+t+"']")||P(h.options,1)[0]).selected=!0,f(h.options[h.selectedIndex].customSelectCstOption)},append:function(t,e){return C(t,!0,e)},insertBefore:function(t,e){var n=void 0;if(e instanceof HTMLElement&&"OPTION"===e.tagName.toUpperCase()&&h.contains(e))n=e.customSelectCstOption;else{if(!(e instanceof HTMLElement&&"OPTGROUP"===e.tagName.toUpperCase()&&h.contains(e)))throw new TypeError("Invalid Argument");n=e.customSelectCstOptgroup}var i=S(t.length?t:[t]);return n.parentNode.insertBefore(i[0],n),e.parentNode.insertBefore(t.length?t[0]:t,e)},remove:function(t){var e=void 0;if(t instanceof HTMLElement&&"OPTION"===t.tagName.toUpperCase()&&h.contains(t))e=t.customSelectCstOption;else{if(!(t instanceof HTMLElement&&"OPTGROUP"===t.tagName.toUpperCase()&&h.contains(t)))throw new TypeError("Invalid Argument");e=t.customSelectCstOptgroup}return e.parentNode.removeChild(e),e=t.parentNode.removeChild(t),b(),e},empty:function(){for(var t=[];h.children.length;)d.removeChild(d.children[0]),t.push(h.removeChild(h.children[0]));return f(),t},destroy:function(){for(var t=0,e=h.options.length;t<e;t++)delete h.options[t].customSelectCstOption;for(var n=h.getElementsByTagName("optgroup"),i=0,r=n.length;i<r;i++)delete n.customSelectCstOptgroup;return T(),o.parentNode.replaceChild(h,o)},opener:r,select:h,panel:d,container:o},h.customSelect=o.customSelect,o.customSelect}(c[o],h({},d,l)));return u}()},t("custom-event-polyfill"),{containerClass:"custom-select-container",openerClass:"custom-select-opener",panelClass:"custom-select-panel",optionClass:"custom-select-option",optgroupClass:"custom-select-optgroup",isSelectedClass:"is-selected",hasFocusClass:"has-focus",isDisabledClass:"is-disabled",isOpenClass:"is-open"})},{"custom-event-polyfill":376}],378:[function(n,i,r){!function(e){!function(){function t(){var t;try{t=r.storage.debug}catch(t){}return t=!t&&void 0!==e&&"env"in e?e.env.DEBUG:t}(r=i.exports=n("./debug")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(t){var e,n,i=this.useColors;t[0]=(i?"%c":"")+this.namespace+(i?" %c":" ")+t[0]+(i?"%c ":" ")+"+"+r.humanize(this.diff),i&&(i="color: "+this.color,t.splice(1,0,i,"color: inherit"),t[n=e=0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(e++,"%c"===t)&&(n=e)}),t.splice(n,0,i))},r.save=function(t){try{null==t?r.storage.removeItem("debug"):r.storage.debug=t}catch(t){}},r.load=t,r.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},r.enable(t())}.call(this)}.call(this,n("_process"))},{"./debug":379,_process:561}],379:[function(t,e,s){var l;function n(t){function a(){if(a.enabled){for(var i=a,t=+new Date,e=t-(l||t),r=(i.diff=e,i.prev=l,i.curr=t,l=t,new Array(arguments.length)),n=0;n<r.length;n++)r[n]=arguments[n];r[0]=s.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var o=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,function(t,e){var n;return"%%"!==t&&(o++,"function"==typeof(e=s.formatters[e]))&&(n=r[o],t=e.call(i,n),r.splice(o,1),o--),t}),s.formatArgs.call(i,r),(a.log||s.log||console.log.bind(console)).apply(i,r)}}return a.namespace=t,a.enabled=s.enabled(t),a.useColors=s.useColors(),a.color=function(t){var e,n=0;for(e in t)n=(n<<5)-n+t.charCodeAt(e),n|=0;return s.colors[Math.abs(n)%s.colors.length]}(t),"function"==typeof s.init&&s.init(a),a}(s=e.exports=n.debug=n.default=n).coerce=function(t){return t instanceof Error?t.stack||t.message:t},s.disable=function(){s.enable("")},s.enable=function(t){s.save(t),s.names=[],s.skips=[];for(var e=("string"==typeof t?t:"").split(/[\s,]+/),n=e.length,i=0;i<n;i++)e[i]&&("-"===(t=e[i].replace(/\*/g,".*?"))[0]?s.skips.push(new RegExp("^"+t.substr(1)+"$")):s.names.push(new RegExp("^"+t+"$")))},s.enabled=function(t){var e,n;for(e=0,n=s.skips.length;e<n;e++)if(s.skips[e].test(t))return!1;for(e=0,n=s.names.length;e<n;e++)if(s.names[e].test(t))return!0;return!1},s.humanize=t("ms"),s.names=[],s.skips=[],s.formatters={}},{ms:423}],380:[function(t,e,n){"use strict";function i(t,e,n){n=n||2;var i,r,o,a,s,l=e&&e.length,c=l?e[0]*n:t.length,u=m(t,0,c,n,!0),h=[];if(u&&u.next!==u.prev){if(l&&(u=function(t,e,n,i){var r,o,a,s,l=[];for(r=0,o=e.length;r<o;r++)s=e[r]*i,a=r<o-1?e[r+1]*i:t.length,(s=m(t,s,a,i,!1))===s.next&&(s.steiner=!0),l.push(function(t){var e=t,n=t;for(;(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next,e!==t;);return n}(s));for(l.sort(g),r=0;r<l.length;r++)n=function(t,e){var n=function(t,e){var n,i=e,r=t.x,o=t.y,a=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&a<s&&(a=s,n=i.x<i.next.x?i:i.next,s===r))return n}}while(i=i.next,i!==e);if(!n)return null;var l,c=n,u=n.x,h=n.y,d=1/0;i=n;for(;r>=i.x&&i.x>=u&&r!==i.x&&P(o<h?r:a,o,u,h,o<h?a:r,o,i.x,i.y)&&(l=Math.abs(o-i.y)/(r-i.x),R(i,t))&&(l<d||l===d&&(i.x>n.x||i.x===n.x&&function(t,e){return k(t.prev,t,e.prev)<0&&k(e.next,t,t.next)<0}(n,i)))&&(n=i,d=l),i=i.next,i!==c;);return n}(t,e);return n?(C(t=L(n,t),t.next),C(n,n.next)):e}(l[r],n);return n}(t,e,u,n)),t.length>80*n){for(var d=i=t[0],p=r=t[1],f=n;f<c;f+=n)(o=t[f])<d&&(d=o),(a=t[f+1])<p&&(p=a),i<o&&(i=o),r<a&&(r=a);s=0!==(s=Math.max(i-d,r-p))?32767/s:0}E(u,h,n,d,p,s,0)}return h}function m(t,e,n,i,r){var o,a;if(r===0<v(t,e,n,i))for(o=e;o<n;o+=i)a=s(o,t[o],t[o+1],a);else for(o=n-i;e<=o;o-=i)a=s(o,t[o],t[o+1],a);return a&&A(a,a.next)&&(D(a),a=a.next),a}function C(t,e){if(!t)return t;e=e||t;var n,i=t;do{if(n=!1,i.steiner||!A(i,i.next)&&0!==k(i.prev,i,i.next))i=i.next;else{if(D(i),(i=e=i.prev)===i.next)break;n=!0}}while(n||i!==e);return e}function E(t,e,n,i,r,o,a){if(t){if(!a&&o){for(var s=t,l=i,c=r,u=o,h=s;0===h.z&&(h.z=M(h.x,h.y,l,c,u)),h.prevZ=h.prev,h.nextZ=h.next,(h=h.next)!==s;);h.prevZ.nextZ=null,h.prevZ=null;var d,p,f,m,g,v,y,_,b=h,x=1;do{for(p=b,g=b=null,v=0;p;){for(v++,f=p,d=y=0;d<x&&(y++,f=f.nextZ);d++);for(_=x;0<y||0<_&&f;)0!==y&&(0===_||!f||p.z<=f.z)?(p=(m=p).nextZ,y--):(f=(m=f).nextZ,_--),g?g.nextZ=m:b=m,m.prevZ=g,g=m;p=f}}while(g.nextZ=null,x*=2,1<v)}for(var w,T,S=t;t.prev!==t.next;)if(w=t.prev,T=t.next,o?function(t,e,n,i){var r=t.prev,o=t,a=t.next;if(0<=k(r,o,a))return;var s=r.x,l=o.x,c=a.x,u=r.y,h=o.y,d=a.y,p=s<l?s<c?s:c:l<c?l:c,f=u<h?u<d?u:d:h<d?h:d,m=l<s?c<s?s:c:c<l?l:c,g=h<u?d<u?u:d:d<h?h:d,v=M(p,f,e,n,i),y=M(m,g,e,n,i),_=t.prevZ,b=t.nextZ;for(;_&&_.z>=v&&b&&b.z<=y;){if(_.x>=p&&_.x<=m&&_.y>=f&&_.y<=g&&_!==r&&_!==a&&P(s,u,l,h,c,d,_.x,_.y)&&0<=k(_.prev,_,_.next))return;if(_=_.prevZ,b.x>=p&&b.x<=m&&b.y>=f&&b.y<=g&&b!==r&&b!==a&&P(s,u,l,h,c,d,b.x,b.y)&&0<=k(b.prev,b,b.next))return;b=b.nextZ}for(;_&&_.z>=v;){if(_.x>=p&&_.x<=m&&_.y>=f&&_.y<=g&&_!==r&&_!==a&&P(s,u,l,h,c,d,_.x,_.y)&&0<=k(_.prev,_,_.next))return;_=_.prevZ}for(;b&&b.z<=y;){if(b.x>=p&&b.x<=m&&b.y>=f&&b.y<=g&&b!==r&&b!==a&&P(s,u,l,h,c,d,b.x,b.y)&&0<=k(b.prev,b,b.next))return;b=b.nextZ}return 1}(t,i,r,o):function(t){var e=t.prev,n=t,t=t.next;if(0<=k(e,n,t))return;var i=e.x,r=n.x,o=t.x,a=e.y,s=n.y,l=t.y,c=i<r?i<o?i:o:r<o?r:o,u=a<s?a<l?a:l:s<l?s:l,h=r<i?o<i?i:o:o<r?r:o,d=s<a?l<a?a:l:l<s?s:l,p=t.next;for(;p!==e;){if(p.x>=c&&p.x<=h&&p.y>=u&&p.y<=d&&P(i,a,r,s,o,l,p.x,p.y)&&0<=k(p.prev,p,p.next))return;p=p.next}return 1}(t))e.push(w.i/n|0),e.push(t.i/n|0),e.push(T.i/n|0),D(t),t=T.next,S=T.next;else if((t=T)===S){a?1===a?E(t=function(t,e,n){var i=t;do{var r=i.prev,o=i.next.next}while(!A(r,o)&&O(r,i,i.next,o)&&R(r,o)&&R(o,r)&&(e.push(r.i/n|0),e.push(i.i/n|0),e.push(o.i/n|0),D(i),D(i.next),i=t=o),i=i.next,i!==t);return C(i)}(C(t),e,n),e,n,i,r,o,2):2===a&&function(t,e,n,i,r,o){var a=t;do{for(var s,l=a.next.next;l!==a.prev;){if(a.i!==l.i&&function(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&O(n,n.next,t,e))return 1}while(n=n.next,n!==t);return}(t,e)&&(R(t,e)&&R(e,t)&&function(t,e){var n=t,i=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;for(;n.y>o!=n.next.y>o&&n.next.y!==n.y&&r<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next,n!==t;);return i}(t,e)&&(k(t.prev,t,e.prev)||k(t,e.prev,e))||A(t,e)&&0<k(t.prev,t,t.next)&&0<k(e.prev,e,e.next))}(a,l))return s=L(a,l),a=C(a,a.next),s=C(s,s.next),E(a,e,n,i,r,o,0),E(s,e,n,i,r,o,0);l=l.next}}while(a=a.next,a!==t)}(t,e,n,i,r,o):E(C(t),e,n,i,r,o,1);break}}}function g(t,e){return t.x-e.x}function M(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 P(t,e,n,i,r,o,a,s){return(t-a)*(o-s)<=(r-a)*(e-s)&&(n-a)*(e-s)<=(t-a)*(i-s)&&(r-a)*(i-s)<=(n-a)*(o-s)}function k(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function A(t,e){return t.x===e.x&&t.y===e.y}function O(t,e,n,i){var r=c(k(t,e,n)),o=c(k(t,e,i)),a=c(k(n,i,t)),s=c(k(n,i,e));return r!==o&&a!==s||0===r&&l(t,n,e)||0===o&&l(t,i,e)||0===a&&l(n,t,i)||!(0!==s||!l(n,e,i))}function l(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 c(t){return 0<t?1:t<0?-1:0}function R(t,e){return k(t.prev,t,t.next)<0?0<=k(t,e,t.next)&&0<=k(t,t.prev,e):k(t,e,t.prev)<0||k(t,t.next,e)<0}function L(t,e){var n=new a(t.i,t.x,t.y),i=new a(e.i,e.x,e.y),r=t.next,o=e.prev;return(t.next=e).prev=t,(n.next=r).prev=n,(i.next=n).prev=i,(o.next=i).prev=o,i}function s(t,e,n,i){t=new a(t,e,n);return i?(t.next=i.next,(t.prev=i).next.prev=t,i.next=t):(t.prev=t).next=t,t}function D(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 a(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}function v(t,e,n,i){for(var r=0,o=e,a=n-i;o<n;o+=i)r+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return r}e.exports=i,(e.exports.default=i).deviation=function(t,e,n,i){var r=e&&e.length,o=r?e[0]*n:t.length,a=Math.abs(v(t,0,o,n));if(r)for(var s=0,l=e.length;s<l;s++){var c=e[s]*n,u=s<l-1?e[s+1]*n:t.length;a-=Math.abs(v(t,c,u,n))}for(var h=0,s=0;s<i.length;s+=3){var d=i[s]*n,p=i[s+1]*n,f=i[s+2]*n;h+=Math.abs((t[d]-t[f])*(t[1+p]-t[1+d])-(t[d]-t[p])*(t[1+f]-t[1+d]))}return 0===a&&0===h?0:Math.abs((h-a)/a)},i.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},i=0,r=0;r<t.length;r++){for(var o=0;o<t[r].length;o++)for(var a=0;a<e;a++)n.vertices.push(t[r][o][a]);0<r&&(i+=t[r-1].length,n.holes.push(i))}return n}},{}],381:[function(V,n,i){!function(U,z){!function(){var t,e;t=this,e=function(){"use strict";function l(t){return"function"==typeof t}var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=0,e=void 0,r=void 0,a=function(t,e){h[i]=t,h[i+1]=e,2===(i+=2)&&(r?r(d):I())};var t="undefined"!=typeof window?window:void 0,o=t||{},o=o.MutationObserver||o.WebKitMutationObserver,s="undefined"==typeof self&&void 0!==U&&"[object process]"==={}.toString.call(U),c="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function u(){var t=setTimeout;return function(){return t(d,1)}}var h=new Array(1e3);function d(){for(var t=0;t<i;t+=2)(0,h[t])(h[t+1]),h[t]=void 0,h[t+1]=void 0;i=0}function p(){try{var t=Function("return this")().require("vertx");return void 0!==(e=t.runOnLoop||t.runOnContext)?function(){e(d)}:u()}catch(t){return u()}}var f,m,g,I=void 0;function v(t,e){var n,i=this,r=new this.constructor(b),o=(void 0===r[_]&&R(r),i._state);return o?(n=arguments[o-1],a(function(){return A(o,r,n,i._result)})):P(i,r,t,e),r}function y(t){var e;return t&&"object"==typeof t&&t.constructor===this?t:(C(e=new this(b),t),e)}var I=s?function(){return U.nextTick(d)}:o?(m=0,s=new o(d),g=document.createTextNode(""),s.observe(g,{characterData:!0}),function(){g.data=m=++m%2}):c?((f=new MessageChannel).port1.onmessage=d,function(){return f.port2.postMessage(0)}):(void 0===t&&"function"==typeof V?p:u)(),_=Math.random().toString(36).substring(2);function b(){}var x=void 0,w=1,T=2;function F(t,i,r){a(function(e){var n=!1,t=function(t,e,n,i){try{t.call(e,n,i)}catch(t){return t}}(r,i,function(t){n||(n=!0,(i!==t?C:E)(e,t))},function(t){n||(n=!0,M(e,t))},e._label);!n&&t&&(n=!0,M(e,t))},t)}function S(t,e,n){var i,r;e.constructor===t.constructor&&n===v&&e.constructor.resolve===y?(i=t,(r=e)._state===w?E(i,r._result):r._state===T?M(i,r._result):P(r,void 0,function(t){return C(i,t)},function(t){return M(i,t)})):void 0!==n&&l(n)?F(t,e,n):E(t,e)}function C(e,t){if(e===t)M(e,new TypeError("You cannot resolve a promise with itself"));else if(n=typeof t,null===t||"object"!=n&&"function"!=n)E(e,t);else{n=void 0;try{n=t.then}catch(t){return void M(e,t)}S(e,t,n)}var n}function B(t){t._onerror&&t._onerror(t._result),k(t)}function E(t,e){t._state===x&&(t._result=e,t._state=w,0!==t._subscribers.length)&&a(k,t)}function M(t,e){t._state===x&&(t._state=T,t._result=e,a(B,t))}function P(t,e,n,i){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=e,r[o+w]=n,r[o+T]=i,0===o&&t._state&&a(k,t)}function k(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var i,r=void 0,o=t._result,a=0;a<e.length;a+=3)i=e[a],r=e[a+n],i?A(n,i,r,o):r(o);t._subscribers.length=0}}function A(t,e,n,i){var r=l(n),o=void 0,a=void 0,s=!0;if(r){try{o=n(i)}catch(t){s=!1,a=t}if(e===o)return void M(e,new TypeError("A promises callback cannot return that same promise."))}else o=i;e._state===x&&(r&&s?C(e,o):!1===s?M(e,a):t===w?E(e,o):t===T&&M(e,o))}var O=0;function R(t){t[_]=O++,t._state=void 0,t._result=void 0,t._subscribers=[]}L.prototype._enumerate=function(t){for(var e=0;this._state===x&&e<t.length;e++)this._eachEntry(t[e],e)},L.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,i=n.resolve;if(i===y){var r,o=void 0,a=void 0,s=!1;try{o=e.then}catch(t){s=!0,a=t}o===v&&e._state!==x?this._settledAt(e._state,t,e._result):"function"!=typeof o?(this._remaining--,this._result[t]=e):n===D?(r=new n(b),s?M(r,a):S(r,e,o),this._willSettleAt(r,t)):this._willSettleAt(new n(function(t){return t(e)}),t)}else this._willSettleAt(i(e),t)},L.prototype._settledAt=function(t,e,n){var i=this.promise;i._state===x&&(this._remaining--,t===T?M(i,n):this._result[e]=n),0===this._remaining&&E(i,this._result)},L.prototype._willSettleAt=function(t,e){var n=this;P(t,void 0,function(t){return n._settledAt(w,e,t)},function(t){return n._settledAt(T,e,t)})};var N=L;function L(t,e){this._instanceConstructor=t,this.promise=new t(b),this.promise[_]||R(this.promise),n(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0!==this.length&&(this.length=this.length||0,this._enumerate(e),0!==this._remaining)||E(this.promise,this._result)):M(this.promise,new Error("Array Methods must be provided an Array"))}j.prototype.catch=function(t){return this.then(null,t)},j.prototype.finally=function(e){var n=this.constructor;return l(e)?this.then(function(t){return n.resolve(e()).then(function(){return t})},function(t){return n.resolve(e()).then(function(){throw t})}):this.then(e,e)};var D=j;function j(t){if(this[_]=O++,this._result=this._state=void 0,this._subscribers=[],b!==t){if("function"!=typeof t)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof j))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");var e=this;try{t(function(t){C(e,t)},function(t){M(e,t)})}catch(t){M(e,t)}}}return D.prototype.then=v,D.all=function(t){return new N(this,t).promise},D.race=function(r){var o=this;return n(r)?new o(function(t,e){for(var n=r.length,i=0;i<n;i++)o.resolve(r[i]).then(t,e)}):new o(function(t,e){return e(new TypeError("You must pass an array to race."))})},D.resolve=y,D.reject=function(t){var e=new this(b);return M(e,t),e},D._setScheduler=function(t){r=t},D._setAsap=function(t){a=t},D._asap=a,D.polyfill=function(){var t=void 0;if(void 0!==z)t=z;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===n&&!e.cast)return}t.Promise=D},D.Promise=D},"object"==typeof i&&void 0!==n?n.exports=e():"function"==typeof define&&define.amd?define(e):t.ES6Promise=e()}.call(this)}.call(this,V("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:561}],382:[function(t,e,n){"use strict";var i=Object.prototype.hasOwnProperty,p="function"!=typeof Object.create&&"~";function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(){}o.prototype._events=void 0,o.prototype.eventNames=function(){var t,e=this._events,n=[];if(!e)return n;for(t in e)i.call(e,t)&&n.push(p?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},o.prototype.listeners=function(t,e){var n=this._events&&this._events[p?p+t:t];if(e)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var i=0,r=n.length,o=new Array(r);i<r;i++)o[i]=n[i].fn;return o},o.prototype.emit=function(t,e,n,i,r,o){var a=p?p+t:t;if(!this._events||!this._events[a])return!1;var s,l=this._events[a],c=arguments.length;if("function"==typeof l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,i),!0;case 5:return l.fn.call(l.context,e,n,i,r),!0;case 6:return l.fn.call(l.context,e,n,i,r,o),!0}for(d=1,s=new Array(c-1);d<c;d++)s[d-1]=arguments[d];l.fn.apply(l.context,s)}else for(var u,h=l.length,d=0;d<h;d++)switch(l[d].once&&this.removeListener(t,l[d].fn,void 0,!0),c){case 1:l[d].fn.call(l[d].context);break;case 2:l[d].fn.call(l[d].context,e);break;case 3:l[d].fn.call(l[d].context,e,n);break;default:if(!s)for(u=1,s=new Array(c-1);u<c;u++)s[u-1]=arguments[u];l[d].fn.apply(l[d].context,s)}return!0},o.prototype.on=function(t,e,n){e=new r(e,n||this),n=p?p+t:t;return this._events||(this._events=p?{}:Object.create(null)),this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],e]:this._events[n].push(e):this._events[n]=e,this},o.prototype.once=function(t,e,n){e=new r(e,n||this,!0),n=p?p+t:t;return this._events||(this._events=p?{}:Object.create(null)),this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],e]:this._events[n].push(e):this._events[n]=e,this},o.prototype.removeListener=function(t,e,n,i){t=p?p+t:t;if(this._events&&this._events[t]){var r=this._events[t],o=[];if(e)if(r.fn)(r.fn!==e||i&&!r.once||n&&r.context!==n)&&o.push(r);else for(var a=0,s=r.length;a<s;a++)(r[a].fn!==e||i&&!r[a].once||n&&r[a].context!==n)&&o.push(r[a]);o.length?this._events[t]=1===o.length?o[0]:o:delete this._events[t]}return this},o.prototype.removeAllListeners=function(t){return this._events&&(t?delete this._events[p?p+t:t]:this._events=p?{}:Object.create(null)),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=p,void 0!==e&&(e.exports=o)},{}],383:[function(t,e,n){!function(){"use strict";function a(r,t){var e;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=r,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!a.notNeeded(r)){for(var n=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],i=0,o=n.length;i<o;i++)this[n[i]]=function(t,e){return function(){return t.apply(e,arguments)}}(this[n[i]],this);s&&(r.addEventListener("mouseover",this.onMouse,!0),r.addEventListener("mousedown",this.onMouse,!0),r.addEventListener("mouseup",this.onMouse,!0)),r.addEventListener("click",this.onClick,!0),r.addEventListener("touchstart",this.onTouchStart,!1),r.addEventListener("touchmove",this.onTouchMove,!1),r.addEventListener("touchend",this.onTouchEnd,!1),r.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(r.removeEventListener=function(t,e,n){var i=Node.prototype.removeEventListener;"click"===t?i.call(r,t,e.hijacked||e,n):i.call(r,t,e,n)},r.addEventListener=function(t,e,n){var i=Node.prototype.addEventListener;"click"===t?i.call(r,t,e.hijacked||(e.hijacked=function(t){t.propagationStopped||e(t)}),n):i.call(r,t,e,n)}),"function"==typeof r.onclick&&(e=r.onclick,r.addEventListener("click",function(t){e(t)},!1),r.onclick=null)}}var t=0<=navigator.userAgent.indexOf("Windows Phone"),s=0<navigator.userAgent.indexOf("Android")&&!t,o=/iP(ad|hone|od)/.test(navigator.userAgent)&&!t,l=o&&/OS 4_\d(_\d)?/.test(navigator.userAgent),c=o&&/OS [6-7]_\d/.test(navigator.userAgent),i=0<navigator.userAgent.indexOf("BB10");a.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(o&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},a.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!s;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},a.prototype.sendClick=function(t,e){var n;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),e=e.changedTouches[0],(n=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(t),!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,t.dispatchEvent(n)},a.prototype.determineEventType=function(t){return s&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},a.prototype.focus=function(t){var e;o&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},a.prototype.updateScrollParent=function(t){var e,n=t.fastClickScrollParent;if(!n||!n.contains(t)){e=t;do{if(e.scrollHeight>e.offsetHeight){n=e,t.fastClickScrollParent=e;break}}while(e=e.parentElement)}n&&(n.fastClickLastScrollTop=n.scrollTop)},a.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},a.prototype.onTouchStart=function(t){var e,n,i;if(!(1<t.targetTouches.length)){if(e=this.getTargetElementFromEventTarget(t.target),n=t.targetTouches[0],o){if((i=window.getSelection()).rangeCount&&!i.isCollapsed)return!0;if(!l){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(e)}}this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=n.pageX,this.touchStartY=n.pageY,t.timeStamp-this.lastClickTime<this.tapDelay&&t.preventDefault()}return!0},a.prototype.touchHasMoved=function(t){var t=t.changedTouches[0],e=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>e||Math.abs(t.pageY-this.touchStartY)>e},a.prototype.onTouchMove=function(t){return this.trackingClick&&(this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0},a.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},a.prototype.onTouchEnd=function(t){var e,n,i,r=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0;if(t.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,e=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,c&&(i=t.changedTouches[0],(r=document.elementFromPoint(i.pageX-window.pageXOffset,i.pageY-window.pageYOffset)||r).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(i=r.tagName.toLowerCase())){if(n=this.findControl(r)){if(this.focus(r),s)return!1;r=n}}else if(this.needsFocus(r))return 100<t.timeStamp-e||o&&window.top!==window&&"input"===i?this.targetElement=null:(this.focus(r),this.sendClick(r,t),o&&"select"===i||(this.targetElement=null,t.preventDefault())),!1;return!(!o||l||!(n=r.fastClickScrollParent)||n.fastClickLastScrollTop===n.scrollTop)||(this.needsClick(r)||(t.preventDefault(),this.sendClick(r,t)),!1)},a.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},a.prototype.onMouse=function(t){return!this.targetElement||!(!t.forwardedTouchEvent&&t.cancelable&&(!this.needsClick(this.targetElement)||this.cancelNextClick)&&(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),1))},a.prototype.onClick=function(t){return this.trackingClick?(this.targetElement=null,!(this.trackingClick=!1)):"submit"===t.target.type&&0===t.detail||((t=this.onMouse(t))||(this.targetElement=null),t)},a.prototype.destroy=function(){var t=this.layer;s&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},a.notNeeded=function(t){var e,n;if(void 0===window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!s)return!0;if(e=document.querySelector("meta[name=viewport]")){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(31<n&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(i&&10<=(n=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]&&3<=n[2]&&(e=document.querySelector("meta[name=viewport]"))){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||!!(27<=+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]&&(e=document.querySelector("meta[name=viewport]"))&&(-1!==e.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||"none"===t.style.touchAction||"manipulation"===t.style.touchAction},a.attach=function(t,e){return new a(t,e)},"function"==typeof define&&"object"==typeof define.amd&&define.amd?define(function(){return a}):void 0!==e&&e.exports?(e.exports=a.attach,e.exports.FastClick=a):window.FastClick=a}()},{}],384:[function(t,e,n){var a=Object.prototype.hasOwnProperty,s=Object.prototype.toString;e.exports=function(t,e,n){if("[object Function]"!==s.call(e))throw new TypeError("iterator must be a function");var i=t.length;if(i===+i)for(var r=0;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)a.call(t,o)&&e.call(n,t[o],o,t)}},{}],385:[function(t,n,e){!function(e){!function(){var t="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};n.exports=t}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],386:[function(n,i,t){!function(e){!function(){"use strict";var Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},te=void 0!==i&&i.exports&&void 0!==e?e:window;function t(){return(te.GreenSockGlobals||te).CSSPlugin}(te._gsQueue||(te._gsQueue=[])).push(function(){te._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(a,A){function O(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=O.prototype.setRatio}function s(t,e){return e.toUpperCase()}function l(t,e){return I.createElementNS?I.createElementNS(e||"http://www.w3.org/1999/xhtml",t):I.createElement(t)}function c(t){return it.test("string"==typeof t?t:(t.currentStyle||t.style).filter||"")?parseFloat(RegExp.$1)/100:1}function g(t){te.console&&console.log(t)}function w(t,e){var n,i,r=(e=e||F).style;if(void 0!==r[t])return t;for(t=t.charAt(0).toUpperCase()+t.substr(1),n=["O","Moz","ms","Ms","Webkit"],i=5;-1<--i&&void 0===r[n[i]+t];);return 0<=i?(vt="-"+(yt=3===i?"ms":n[i]).toLowerCase()+"-",yt+t):null}function d(t,e){var n,i,r={};if(e=e||m(t,null))if(n=e.length)for(;-1<--n;)-1!==(i=e[n]).indexOf("-transform")&&Ut!==i||(r[i.replace(lt,s)]=e.getPropertyValue(i));else for(n in e)-1!==n.indexOf("Transform")&&H!==n||(r[n]=e[n]);else if(e=t.currentStyle||t.style)for(n in e)"string"==typeof n&&void 0===r[n]&&(r[n.replace(lt,s)]=e[n]);return B||(r.opacity=c(t)),t=Xt(t,e,!1),r.rotation=t.rotation,r.skewX=t.skewX,r.scaleX=t.scaleX,r.scaleY=t.scaleY,r.x=t.x,r.y=t.y,W&&(r.z=t.z,r.rotationX=t.rotationX,r.rotationY=t.rotationY,r.scaleZ=t.scaleZ),r.filters&&delete r.filters,r}function v(t,e,n,i,r){var o,a,s,l={},c=t.style;for(a in n)"cssText"===a||"length"!==a&&isNaN(a)&&(e[a]!==(o=n[a])||r&&r[a])&&-1===a.indexOf("Origin")&&("number"==typeof o||"string"==typeof o)&&(l[a]="auto"!==o||"left"!==a&&"top"!==a?""!==o&&"auto"!==o&&"none"!==o||"string"!=typeof e[a]||""===e[a].replace(et,"")?o:0:_t(t,a),void 0!==c[a])&&(s=new Et(c,a,c[a],s));if(i)for(a in i)"className"!==a&&(l[a]=i[a]);return{difs:l,firstMPT:s}}function S(t,e){if("contain"===t||"auto"===t||"auto auto"===t)return t+" ";var n,i=(t=null!=t&&""!==t?t:"0 0").split(" "),r=-1!==t.indexOf("left")?"0%":-1!==t.indexOf("right")?"100%":i[0],o=-1!==t.indexOf("top")?"0%":-1!==t.indexOf("bottom")?"100%":i[1];if(3<i.length&&!e){for(i=t.split(", ").join(",").split(","),t=[],n=0;n<i.length;n++)t.push(S(i[n]));return t.join(",")}return null==o?o="center"===r?"50%":"0":"center"===o&&(o="50%"),t=(r="center"===r||isNaN(parseFloat(r))&&-1===(r+"").indexOf("=")?"50%":r)+" "+o+(2<i.length?" "+i[2]:""),e&&(e.oxp=-1!==r.indexOf("%"),e.oyp=-1!==o.indexOf("%"),e.oxr="="===r.charAt(1),e.oyr="="===o.charAt(1),e.ox=parseFloat(r.replace(et,"")),e.oy=parseFloat(o.replace(et,"")),e.v=t),e||t}function E(t,e){return"string"==typeof(t="function"==typeof t?t(R,k):t)&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2)):parseFloat(t)-parseFloat(e)||0}function C(t,e){return null==(t="function"==typeof t?t(R,k):t)?e:"string"==typeof t&&"="===t.charAt(1)?parseInt(t.charAt(0)+"1",10)*parseFloat(t.substr(2))+e:parseFloat(t)||0}function M(t,e,n,i){var r,o;return r=(r=null==(t="function"==typeof t?t(R,k):t)?e:"number"==typeof t?t:(r=t.split("_"),o=((o="="===t.charAt(1))?parseInt(t.charAt(0)+"1",10)*parseFloat(r[0].substr(2)):parseFloat(r[0]))*(-1===t.indexOf("rad")?1:j)-(o?0:e),r.length&&(i&&(i[n]=e+o),-1!==t.indexOf("short")&&(o%=360)!==o%180&&(o=o<0?o+360:o-360),-1!==t.indexOf("_cw")&&o<0?o=(o+3599999999640)%360-360*(o/360|0):-1!==t.indexOf("ccw")&&0<o&&(o=(o-3599999999640)%360-360*(o/360|0))),e+o))<1e-6&&-1e-6<r?0:r}function h(t,e,n){return 255*(6*(t=t<0?t+1:1<t?t-1:t)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)+.5|0}function y(t,e){var n,i,r,o=t.match(U)||[],a=0,s="";if(!o.length)return t;for(n=0;n<o.length;n++)i=o[n],a+=(r=t.substr(a,t.indexOf(i,a)-a)).length+i.length,3===(i=Tt(i,e)).length&&i.push(1),s+=r+(e?"hsla("+i[0]+","+i[1]+"%,"+i[2]+"%,"+i[3]:"rgba("+i.join(","))+")";return s+t.substr(a)}var p,$,P,_,q,b,X,Y,Z,x,k,R,J=te._gsDefine.globals,f={},t=O.prototype=new a("css"),K=((t.constructor=O).version="1.20.5",O.API=2,O.defaultTransformPerspective=0,O.defaultSkewType="compensated",O.defaultSmoothOrigin=!0,O.suffixMap={top:t="px",right:t,bottom:t,left:t,width:t,height:t,fontSize:t,padding:t,margin:t,perspective:t,lineHeight:""},/(?:\-|\.|\b)(\d|\.|e\-)+/g),Q=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,tt=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,et=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,nt=/(?:\d|\-|\+|=|#|\.)*/g,it=/opacity *= *([^)]*)/i,rt=/opacity:([^;]*)/i,ot=/alpha\(opacity *=.+?\)/i,at=/^(rgb|hsl)/,st=/([A-Z])/g,lt=/-([a-z])/gi,ct=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,ut=/(?:Left|Right|Width)/i,ht=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,dt=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,L=/,(?=[^\)]*(?:\(|$))/gi,pt=/[\s,\(]/i,D=Math.PI/180,j=180/Math.PI,ft={},mt={style:{}},I=te.document||{createElement:function(){return mt}},F=l("div"),gt=l("img"),e=O._internals={_specialProps:f},n=(te.navigator||{}).userAgent||"",B=(r=n.indexOf("Android"),i=l("a"),X=-1!==n.indexOf("Safari")&&-1===n.indexOf("Chrome")&&(-1===r||3<parseFloat(n.substr(r+8,2))),Z=X&&parseFloat(n.substr(n.indexOf("Version/")+8,2))<6,Y=-1!==n.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(n)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(n))&&(x=parseFloat(RegExp.$1)),!!i&&(i.style.cssText="top:1px;opacity:.55;",/^0.55/.test(i.style.opacity))),vt="",yt="",m=("undefined"!=typeof window?window:I.defaultView||{getComputedStyle:function(){}}).getComputedStyle,N=O.getStyle=function(t,e,n,i,r){var o;return B||"opacity"!==e?(!i&&t.style[e]?o=t.style[e]:(n=n||m(t))?o=n[e]||n.getPropertyValue(e)||n.getPropertyValue(e.replace(st,"-$1").toLowerCase()):t.currentStyle&&(o=t.currentStyle[e]),null==r||o&&"none"!==o&&"auto"!==o&&"auto auto"!==o?o:r):c(t)},T=e.convertToPixels=function(t,e,n,i,r){if("px"===i||!i&&"lineHeight"!==e)return n;if("auto"===i||!n)return 0;var o,a,s,l=ut.test(e),c=t,u=F.style,h=n<0,d=1===n;if(h&&(n=-n),d&&(n*=100),"lineHeight"!==e||i)if("%"===i&&-1!==e.indexOf("border"))o=n/100*(l?t.clientWidth:t.clientHeight);else{if(u.cssText="border:0 solid red;position:"+N(t,"position")+";line-height:0;","%"!==i&&c.appendChild&&"v"!==i.charAt(0)&&"rem"!==i)u[l?"borderLeftWidth":"borderTopWidth"]=n+i;else{if(c=t.parentNode||I.body,-1!==N(c,"display").indexOf("flex")&&(u.position="absolute"),a=c._gsCache,s=A.ticker.frame,a&&l&&a.time===s)return a.width*n/100;u[l?"width":"height"]=n+i}c.appendChild(F),o=parseFloat(F[l?"offsetWidth":"offsetHeight"]),c.removeChild(F),l&&"%"===i&&!1!==O.cacheWidths&&((a=c._gsCache=c._gsCache||{}).time=s,a.width=o/n*100),0!==o||r||(o=T(t,e,n,i,!0))}else a=m(t).lineHeight,t.style.lineHeight=n,o=parseFloat(m(t).lineHeight),t.style.lineHeight=a;return d&&(o/=100),h?-o:o},_t=e.calculateOffset=function(t,e,n){var i;return"absolute"!==N(t,"position",n)?0:(n=N(t,"margin"+(i="left"===e?"Left":"Top"),n),t["offset"+i]-(T(t,e,parseFloat(n),n.replace(nt,""))||0))},bt={width:["Left","Right"],height:["Top","Bottom"]},xt=["marginLeft","marginRight","marginTop","marginBottom"],wt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Tt=O.parseColor=function(t,e){var n,i,r,o,a,s,l,c;if(t)if("number"==typeof t)n=[t>>16,t>>8&255,255&t];else{if(","===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1)),wt[t])n=wt[t];else if("#"===t.charAt(0))4===t.length&&(t="#"+(i=t.charAt(1))+i+(r=t.charAt(2))+r+(o=t.charAt(3))+o),n=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t];else if("hsl"===t.substr(0,3))if(n=c=t.match(K),e){if(-1!==t.indexOf("="))return t.match(Q)}else a=Number(n[0])%360/360,s=Number(n[1])/100,i=2*(l=Number(n[2])/100)-(r=l<=.5?l*(s+1):l+s-l*s),3<n.length&&(n[3]=Number(n[3])),n[0]=h(a+1/3,i,r),n[1]=h(a,i,r),n[2]=h(a-1/3,i,r);else n=t.match(K)||wt.transparent;n[0]=Number(n[0]),n[1]=Number(n[1]),n[2]=Number(n[2]),3<n.length&&(n[3]=Number(n[3]))}else n=wt.black;return e&&!c&&(i=n[0]/255,r=n[1]/255,o=n[2]/255,l=((t=Math.max(i,r,o))+(e=Math.min(i,r,o)))/2,t===e?a=s=0:(c=t-e,s=.5<l?c/(2-t-e):c/(t+e),a=t===i?(r-o)/c+(r<o?6:0):t===r?(o-i)/c+2:(i-r)/c+4,a*=60),n[0]=a+.5|0,n[1]=100*s+.5|0,n[2]=100*l+.5|0),n},U="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(t in wt)U+="|"+t+"\\b";U=new RegExp(U+")","gi"),O.colorStringFilter=function(t){var e=t[0]+" "+t[1];U.test(e)&&(e=-1!==e.indexOf("hsl(")||-1!==e.indexOf("hsla("),t[0]=y(t[0],e),t[1]=y(t[1],e)),U.lastIndex=0},A.defaultStringFilter||(A.defaultStringFilter=O.colorStringFilter);function St(t,e,o,a){var s,l,c,u,h,d,p,f;return null==t?function(t){return t}:(s=e?(t.match(U)||[""])[0]:"",l=t.split(s).join("").match(tt)||[],c=t.substr(0,t.indexOf(l[0])),u=")"===t.charAt(t.length-1)?")":"",h=-1!==t.indexOf(" ")?" ":",",d=l.length,p=0<d?l[0].replace(K,""):"",d?f=e?function(t){var e,n,i,r;if("number"==typeof t)t+=p;else if(a&&L.test(t)){for(r=t.replace(L,"|").split("|"),i=0;i<r.length;i++)r[i]=f(r[i]);return r.join(",")}if(e=(t.match(U)||[s])[0],i=(n=t.split(e).join("").match(tt)||[]).length,d>i--)for(;++i<d;)n[i]=o?n[(i-1)/2|0]:l[i];return c+n.join(h)+h+e+u+(-1!==t.indexOf("inset")?" inset":"")}:function(t){var e,n,i;if("number"==typeof t)t+=p;else if(a&&L.test(t)){for(n=t.replace(L,"|").split("|"),i=0;i<n.length;i++)n[i]=f(n[i]);return n.join(",")}if(i=(e=t.match(tt)||[]).length,d>i--)for(;++i<d;)e[i]=o?e[(i-1)/2|0]:l[i];return c+e.join(h)+u}:function(t){return t})}function Ct(c){return c=c.split(","),function(t,e,n,i,r,o,a){var s,l=(e+"").split(" ");for(a={},s=0;s<4;s++)a[c[s]]=l[s]=l[s]||l[(s-1)/2>>0];return i.parse(t,a,r,o)}}function Et(t,e,n,i,r){this.t=t,this.p=e,this.v=n,this.r=r,i&&((i._prev=this)._next=i)}e._setPluginRatio=function(t){this.plugin.setRatio(t);for(var e,n,i,r,o,a=this.data,s=a.proxy,l=a.firstMPT;l;)e=s[l.v],l.r?e=l.r(e):e<1e-6&&-1e-6<e&&(e=0),l.t[l.p]=e,l=l._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,s.rotation,this.t,this._tween):s.rotation),1===t||0===t)for(l=a.firstMPT,o=1===t?"e":"b";l;){if((n=l.t).type){if(1===n.type){for(r=n.xs0+n.s+n.xs1,i=1;i<n.l;i++)r+=n["xn"+i]+n["xs"+(i+1)];n[o]=r}}else n[o]=n.s+n.xs0;l=l._next}},e._parseToProxy=function(t,e,n,i,r,o){var a,s,l,c,u=i,h={},d={},p=n._transform,f=ft;for(n._transform=null,ft=e,i=t=n.parse(t,e,i,r),ft=f,o&&(n._transform=p,u)&&(u._prev=null,u._prev)&&(u._prev._next=null);i&&i!==u;){if(i.type<=1&&(d[s=i.p]=i.s+i.c,h[s]=i.s,o||(c=new Et(i,"s",s,c,i.r),i.c=0),1===i.type))for(a=i.l;0<--a;)d[s=i.p+"_"+(l="xn"+a)]=i.data[l],h[s]=i[l],o||(c=new Et(i,l,s,c,i.rxp[l]));i=i._next}return{proxy:h,end:d,firstMPT:c,pt:t}};function Mt(t,e,n,i,r,o){return(t=new z(t,e,n,i-n,r,-1,o)).b=n,t.e=t.xs0=i,t}var z=e.CSSPropTween=function(t,e,n,i,r,o,a,s,l,c,u){this.t=t,this.p=e,this.s=n,this.c=i,this.n=a||e,t instanceof z||_.push(this.n),this.r=s&&("function"==typeof s?s:Math.round),this.type=o||0,l&&(this.pr=l,p=!0),this.b=void 0===c?n:c,this.e=void 0===u?n+i:u,r&&((this._next=r)._prev=this)},Pt=O.parseComplex=function(t,e,n,i,r,o,a,s,l,c){n=n||o||"","function"==typeof i&&(i=i(R,k)),a=new z(t,e,0,0,a,c?2:1,null,!1,s,n,i),i+="",r&&U.test(i+n)&&(O.colorStringFilter(i=[n,i]),n=i[0],i=i[1]);var u,h,d,p,f,m,g,v,y,_,b,x,w=n.split(", ").join(",").split(" "),T=i.split(", ").join(",").split(" "),S=w.length,C=!1!==q;for(-1===i.indexOf(",")&&-1===n.indexOf(",")||(T=(-1!==(i+n).indexOf("rgb")||-1!==(i+n).indexOf("hsl")?(w=w.join(" ").replace(L,", ").split(" "),T.join(" ").replace(L,", ")):(w=w.join(" ").split(",").join(", ").split(" "),T.join(" ").split(",").join(", "))).split(" "),S=w.length),S!==T.length&&(S=(w=(o||"").split(" ")).length),a.plugin=l,a.setRatio=c,u=U.lastIndex=0;u<S;u++)if(p=w[u],f=T[u]+"",(x=parseFloat(p))||0===x)a.appendXtra("",x,E(f,x),f.replace(Q,""),C&&-1!==f.indexOf("px")&&Math.round,!0);else if(r&&U.test(p))b=")"+((b=f.indexOf(")")+1)?f.substr(b):""),x=-1!==f.indexOf("hsl")&&B,y=f,p=Tt(p,x),f=Tt(f,x),(v=6<p.length+f.length)&&!B&&0===f[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(T[u]).join("transparent")):(B||(v=!1),x?a.appendXtra(y.substr(0,y.indexOf("hsl"))+(v?"hsla(":"hsl("),p[0],E(f[0],p[0]),",",!1,!0).appendXtra("",p[1],E(f[1],p[1]),"%,",!1).appendXtra("",p[2],E(f[2],p[2]),v?"%,":"%"+b,!1):a.appendXtra(y.substr(0,y.indexOf("rgb"))+(v?"rgba(":"rgb("),p[0],f[0]-p[0],",",Math.round,!0).appendXtra("",p[1],f[1]-p[1],",",Math.round).appendXtra("",p[2],f[2]-p[2],v?",":b,Math.round),v&&(p=p.length<4?1:p[3],a.appendXtra("",p,(f.length<4?1:f[3])-p,b,!1))),U.lastIndex=0;else if(m=p.match(K)){if(!(g=f.match(Q))||g.length!==m.length)return a;for(h=d=0;h<m.length;h++)_=m[h],y=p.indexOf(_,d),a.appendXtra(p.substr(d,y-d),Number(_),E(g[h],_),"",C&&"px"===p.substr(y+_.length,2)&&Math.round,0===h),d=y+_.length;a["xs"+a.l]+=p.substr(d)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+f:f;if(-1!==i.indexOf("=")&&a.data){for(b=a.xs0+a.data.s,u=1;u<a.l;u++)b+=a["xs"+u]+a.data["xn"+u];a.e=b+a["xs"+u]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},V=9;for((t=z.prototype).l=t.pr=0;0<--V;)t["xn"+V]=0,t["xs"+V]="";t.xs0="",t._next=t._prev=t.xfirst=t.data=t.plugin=t.setRatio=t.rxp=null,t.appendXtra=function(t,e,n,i,r,o){var a=this,s=a.l;return a["xs"+s]+=o&&(s||a["xs"+s])?" "+t:t||"",n||0===s||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=i||"",0<s?(a.data["xn"+s]=e+n,a.rxp["xn"+s]=r,a["xn"+s]=e,a.plugin||(a.xfirst=new z(a,"xn"+s,e,n,a.xfirst||a,0,a.n,r,a.pr),a.xfirst.xs0=0)):(a.data={s:e+n},a.rxp={},a.s=e,a.c=n,a.r=r)):a["xs"+s]+=e+(i||""),a};function kt(t,e){this.p=(e=e||{}).prefix&&w(t)||t,(f[t]=f[this.p]=this).format=e.formatter||St(e.defaultValue,e.color,e.collapsible,e.multi),e.parser&&(this.parse=e.parser),this.clrs=e.color,this.multi=e.multi,this.keyword=e.keyword,this.dflt=e.defaultValue,this.pr=e.priority||0}function At(t,e,n){var i,r=I.createElementNS("http://www.w3.org/2000/svg",t),o=/([a-z])([A-Z])/g;for(i in n)r.setAttributeNS(null,i.replace(o,"$1-$2").toLowerCase(),n[i]);return e.appendChild(r),r}function Ot(t,e,n,i,r,o){var a,s,l,c,u,h,d,p,f,m,g,v,y=t._gsTransform,_=Rt(t,!0);y&&(g=y.xOrigin,v=y.yOrigin),(!i||(a=i.split(" ")).length<2)&&(0===(u=t.getBBox()).x&&0===u.y&&u.width+u.height===0&&(u={x:parseFloat(t.hasAttribute("x")?t.getAttribute("x"):t.hasAttribute("cx")?t.getAttribute("cx"):0)||0,y:parseFloat(t.hasAttribute("y")?t.getAttribute("y"):t.hasAttribute("cy")?t.getAttribute("cy"):0)||0,width:0,height:0}),a=[(-1!==(e=S(e).split(" "))[0].indexOf("%")?parseFloat(e[0])/100*u.width:parseFloat(e[0]))+u.x,(-1!==e[1].indexOf("%")?parseFloat(e[1])/100*u.height:parseFloat(e[1]))+u.y]),n.xOrigin=e=parseFloat(a[0]),n.yOrigin=c=parseFloat(a[1]),i&&_!==qt&&(i=_[0],u=_[1],h=_[2],d=_[3],p=_[4],f=_[5],m=i*d-u*h)&&(l=e*(-u/m)+c*(i/m)-(i*f-u*p)/m,e=n.xOrigin=a[0]=s=e*(d/m)+c*(-h/m)+(h*f-d*p)/m,c=n.yOrigin=a[1]=l),y&&(o&&(n.xOffset=y.xOffset,n.yOffset=y.yOffset,y=n),r||!1!==r&&!1!==O.defaultSmoothOrigin?(y.xOffset+=(s=e-g)*_[0]+(l=c-v)*_[2]-s,y.yOffset+=s*_[1]+l*_[3]-l):y.xOffset=y.yOffset=0),o||t.setAttribute("data-svg-origin",a.join(" "))}function Rt(t,e){var n,i,r,o,a,s,l=t._gsTransform||new Vt,c=t.style;if(H?i=N(t,Ut,null,!0):t.currentStyle&&(i=(i=t.currentStyle.filter.match(ht))&&4===i.length?[i[0].substr(4),Number(i[2].substr(4)),Number(i[1].substr(4)),i[3].substr(4),l.x||0,l.y||0].join(","):""),n=!i||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,!H||!(s=!m(t)||"none"===m(t).display)&&t.parentNode||(s&&(o=c.display,c.display="block"),t.parentNode||(a=1,u.appendChild(t)),n=!(i=N(t,Ut,null,!0))||"none"===i||"matrix(1, 0, 0, 1, 0, 0)"===i,o?c.display=o:s&&Zt(c,"display"),a&&u.removeChild(t)),(l.svg||t.getCTM&&$t(t))&&(n&&-1!==(c[H]+"").indexOf("matrix")&&(i=c[H],n=0),r=t.getAttribute("transform"),n)&&r&&(i="matrix("+(r=t.transform.baseVal.consolidate().matrix).a+","+r.b+","+r.c+","+r.d+","+r.e+","+r.f+")",n=0),n)return qt;for(r=(i||"").match(K)||[],V=r.length;-1<--V;)o=Number(r[V]),r[V]=(a=o-(o|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+o:o;return e&&6<r.length?[r[0],r[1],r[4],r[5],r[12],r[13]]:r}function Lt(t){var e,n,i=this.data,r=(a=-i.rotation*D)+i.skewX*D,o=(Math.cos(a)*i.scaleX*1e5|0)/1e5,a=(Math.sin(a)*i.scaleX*1e5|0)/1e5,s=(Math.sin(r)*-i.scaleY*1e5|0)/1e5,r=(Math.cos(r)*i.scaleY*1e5|0)/1e5,l=this.t.style,c=this.t.currentStyle;if(c){n=a,a=-s,s=-n,e=c.filter,l.filter="";var u=this.t.offsetWidth,h=this.t.offsetHeight,d="absolute"!==c.position,p="progid:DXImageTransform.Microsoft.Matrix(M11="+o+", M12="+a+", M21="+s+", M22="+r,f=i.x+u*i.xPercent/100,m=i.y+h*i.yPercent/100;if(null!=i.ox&&(f+=(_=(i.oxp?u*i.ox*.01:i.ox)-u/2)-(_*o+(b=(i.oyp?h*i.oy*.01:i.oy)-h/2)*a),m+=b-(_*s+b*r)),p+=d?", Dx="+((_=u/2)-(_*o+(b=h/2)*a)+f)+", Dy="+(b-(_*s+b*r)+m)+")":", sizingMethod='auto expand')",-1!==e.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=e.replace(dt,p):l.filter=p+" "+e,0!==t&&1!==t||1!=o||0!=a||0!=s||1!=r||d&&-1===p.indexOf("Dx=0, Dy=0")||it.test(e)&&100!==parseFloat(RegExp.$1)||-1===e.indexOf(e.indexOf("Alpha"))&&l.removeAttribute("filter"),!d){var g,v,y=x<8?1:-1,_=i.ieOffsetX||0,b=i.ieOffsetY||0;for(i.ieOffsetX=Math.round((u-((o<0?-o:o)*u+(a<0?-a:a)*h))/2+f),i.ieOffsetY=Math.round((h-((r<0?-r:r)*h+(s<0?-s:s)*u))/2+m),V=0;V<4;V++)v=(n=-1!==(v=c[g=xt[V]]).indexOf("px")?parseFloat(v):T(this.t,g,parseFloat(v),v.replace(nt,""))||0)!==i[g]?V<2?-i.ieOffsetX:-i.ieOffsetY:V<2?_-i.ieOffsetX:b-i.ieOffsetY,l[g]=(i[g]=Math.round(n-v*(0===V||2===V?1:y)))+"px"}}}function Dt(t){var e,n=this.t,i=n.filter||N(this.data,"filter")||"",t=this.s+this.c*t|0;(e=100==t?-1===i.indexOf("atrix(")&&-1===i.indexOf("radient(")&&-1===i.indexOf("oader(")?(n.removeAttribute("filter"),!N(this.data,"filter")):(n.filter=i.replace(ot,""),!0):e)||(this.xn1&&(n.filter=i=i||"alpha(opacity="+t+")"),-1===i.indexOf("pacity")?0==t&&this.xn1||(n.filter=i+" alpha(opacity="+t+")"):n.filter=i.replace(it,"opacity="+t))}function jt(t){if(this.t._gsClassPT=this,1===t||0===t){this.t.setAttribute("class",0===t?this.b:this.e);for(var e=this.data,n=this.t.style;e;)e.v?n[e.p]=e.v:Zt(n,e.p),e=e._next;1===t&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)}function It(t){if((1===t||0===t)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var e,n,i,r,o=this.t.style,a=f.transform.parse;if("all"===this.e)r=!(o.cssText="");else for(i=(e=this.e.split(" ").join("").split(",")).length;-1<--i;)n=e[i],f[n]&&(f[n].parse===a?r=!0:n="transformOrigin"===n?zt:f[n].p),Zt(o,n);r&&(Zt(o,H),t=this.t._gsTransform)&&(t.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform)}}var G,i,Ft,r,o=e._registerComplexSpecialProp=function(t,e,n){"object"!==(void 0===e?"undefined":Qt(e))&&(e={parser:n});var i,r=t.split(","),o=e.defaultValue;for(n=n||[o],i=0;i<r.length;i++)e.prefix=0===i&&e.prefix,e.defaultValue=n[i]||o,new kt(r[i],e)},Bt=e._registerPluginProp=function(t){var l;f[t]||(l=t.charAt(0).toUpperCase()+t.substr(1)+"Plugin",o(t,{parser:function(t,e,n,i,r,o,a){var s=J.com.greensock.plugins[l];return s?(s._cssRegister(),f[n].parse(t,e,n,i,r,o,a)):(g("Error: "+l+" js file not loaded."),r)}}))},Nt=((t=kt.prototype).parseComplex=function(t,e,n,i,r,o){var a,s,l,c,u,h,d=this.keyword;if(this.multi&&(L.test(n)||L.test(e)?(s=e.replace(L,"|").split("|"),l=n.replace(L,"|").split("|")):d&&(s=[e],l=[n])),l){for(c=(l.length>s.length?l:s).length,a=0;a<c;a++)e=s[a]=s[a]||this.dflt,n=l[a]=l[a]||this.dflt,d&&(u=e.indexOf(d))!==(h=n.indexOf(d))&&(-1===h?s[a]=s[a].split(d).join(""):-1===u&&(s[a]+=" "+d));e=s.join(", "),n=l.join(", ")}return Pt(t,this.p,e,n,this.clrs,this.dflt,i,this.pr,r,o)},t.parse=function(t,e,n,i,r,o,a){return this.parseComplex(t.style,this.format(N(t,this.p,P,!1,this.dflt)),this.format(e),r,o)},O.registerSpecialProp=function(t,s,l){o(t,{parser:function(t,e,n,i,r,o,a){r=new z(t,n,0,0,r,2,n,!1,l);return r.plugin=o,r.setRatio=s(t,e,i._tween,n),r},priority:l})},O.useSVGTransformAttr=!0,"scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(",")),H=w("transform"),Ut=vt+"transform",zt=w("transformOrigin"),W=null!==w("perspective"),Vt=e.Transform=function(){this.perspective=parseFloat(O.defaultTransformPerspective)||0,this.force3D=!1!==O.defaultForce3D&&W&&(O.defaultForce3D||"auto")},Gt=te.SVGElement,u=I.documentElement||{},Ht=(r=x||/Android/i.test(n)&&!te.chrome,I.createElementNS&&!r&&(i=At("svg",u),Ft=(n=At("rect",i,{width:100,height:50,x:100})).getBoundingClientRect().width,n.style[zt]="50% 50%",n.style[H]="scaleX(0.5)",r=Ft===n.getBoundingClientRect().width&&!(Y&&W),u.removeChild(i)),r),Wt=function t(e){var n,i=l("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,o=this.nextSibling,a=this.style.cssText;if(u.appendChild(i),i.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=t}catch(t){}else this._originalGetBBox&&(n=this._originalGetBBox());return o?r.insertBefore(this,o):r.appendChild(this),u.removeChild(i),this.style.cssText=a,n},$t=function(t){return!(!Gt||!t.getCTM||t.parentNode&&!t.ownerSVGElement||!function(e){try{return e.getBBox()}catch(t){return Wt.call(e,!0)}}(t))},qt=[1,0,0,1,0,0],Xt=e.getTransform=function(t,e,n,i){if(t._gsTransform&&n&&!i)return t._gsTransform;var r,o,a,s,l,c,u,h,d,p,f,m,g,v,y,_,b,x,w,T,S,C,E=n&&t._gsTransform||new Vt,M=E.scaleX<0,P=W&&(parseFloat(N(t,zt,e,!1,"0 0 0").split(" ")[2])||E.zOrigin)||0,k=parseFloat(O.defaultTransformPerspective)||0;if(E.svg=!(!t.getCTM||!$t(t)),E.svg&&(Ot(t,N(t,zt,e,!1,"50% 50%")+"",E,t.getAttribute("data-svg-origin")),G=O.useSVGTransformAttr||Ht),(e=Rt(t))!==qt)for(r in 16===e.length?(o=e[0],a=e[1],s=e[2],w=e[3],l=e[4],c=e[5],u=e[6],x=e[7],h=e[8],d=e[9],p=e[10],f=e[12],m=e[13],g=e[14],v=e[11],y=Math.atan2(u,p),E.zOrigin&&(f=h*(g=-E.zOrigin)-e[12],m=d*g-e[13],g=p*g+E.zOrigin-e[14]),E.rotationX=y*j,y&&(C=l*(T=Math.cos(-y))+h*(S=Math.sin(-y)),_=c*T+d*S,b=u*T+p*S,h=l*-S+h*T,d=c*-S+d*T,p=u*-S+p*T,v=x*-S+v*T,l=C,c=_,u=b),y=Math.atan2(-s,p),E.rotationY=y*j,y&&(_=a*(T=Math.cos(-y))-d*(S=Math.sin(-y)),b=s*T-p*S,d=a*S+d*T,p=s*S+p*T,v=w*S+v*T,o=C=o*T-h*S,a=_,s=b),y=Math.atan2(a,o),E.rotation=y*j,y&&(C=o*(T=Math.cos(y))+a*(S=Math.sin(y)),_=l*T+c*S,b=h*T+d*S,a=a*T-o*S,c=c*T-l*S,d=d*T-h*S,o=C,l=_,h=b),E.rotationX&&359.9<Math.abs(E.rotationX)+Math.abs(E.rotation)&&(E.rotationX=E.rotation=0,E.rotationY=180-E.rotationY),y=Math.atan2(l,c),E.scaleX=(1e5*Math.sqrt(o*o+a*a+s*s)+.5|0)/1e5,E.scaleY=(1e5*Math.sqrt(c*c+u*u)+.5|0)/1e5,E.scaleZ=(1e5*Math.sqrt(h*h+d*d+p*p)+.5|0)/1e5,o/=E.scaleX,l/=E.scaleY,a/=E.scaleX,c/=E.scaleY,2e-5<Math.abs(y)?(E.skewX=y*j,l=0,"simple"!==E.skewType&&(E.scaleY*=1/Math.cos(y))):E.skewX=0,E.perspective=v?1/(v<0?-v:v):0,E.x=f,E.y=m,E.z=g,E.svg&&(E.x-=E.xOrigin-(E.xOrigin*o-E.yOrigin*l),E.y-=E.yOrigin-(E.yOrigin*a-E.xOrigin*c))):W&&!i&&e.length&&E.x===e[4]&&E.y===e[5]&&(E.rotationX||E.rotationY)||(w=(x=6<=e.length)?e[0]:1,T=e[1]||0,S=e[2]||0,C=x?e[3]:1,E.x=e[4]||0,E.y=e[5]||0,_=Math.sqrt(w*w+T*T),b=Math.sqrt(C*C+S*S),s=w||T?Math.atan2(T,w)*j:E.rotation||0,u=S||C?Math.atan2(S,C)*j+s:E.skewX||0,E.scaleX=_,E.scaleY=b,E.rotation=s,E.skewX=u,W&&(E.rotationX=E.rotationY=E.z=0,E.perspective=k,E.scaleZ=1),E.svg&&(E.x-=E.xOrigin-(E.xOrigin*w+E.yOrigin*S),E.y-=E.yOrigin-(E.xOrigin*T+E.yOrigin*C))),90<Math.abs(E.skewX)&&Math.abs(E.skewX)<270&&(M?(E.scaleX*=-1,E.skewX+=E.rotation<=0?180:-180,E.rotation+=E.rotation<=0?180:-180):(E.scaleY*=-1,E.skewX+=E.skewX<=0?180:-180)),E.zOrigin=P,E)E[r]<2e-5&&-2e-5<E[r]&&(E[r]=0);return n&&(t._gsTransform=E).svg&&(G&&t.style[H]?A.delayedCall(.001,function(){Zt(t.style,H)}):!G&&t.getAttribute("transform")&&A.delayedCall(.001,function(){t.removeAttribute("transform")})),E},Yt=e.set3DTransformRatio=e.setTransformRatio=function(t){var e,n,i,r,o,a,s,l,c,u,h,d,p,f,m,g,v=this.data,y=this.t.style,_=v.rotation,b=v.rotationX,x=v.rotationY,w=v.scaleX,T=v.scaleY,S=v.scaleZ,C=v.x,E=v.y,M=v.z,P=v.svg,k=v.perspective,A=v.force3D,O=v.skewY,R=v.skewX;if(O&&(R+=O,_+=O),((1!==t&&0!==t||"auto"!==A||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&A||M||k||x||b||1!==S)&&(!G||!P)&&W){if(Y&&(w<(p=1e-4)&&-p<w&&(w=S=2e-5),T<p&&-p<T&&(T=S=2e-5),!k||v.z||v.rotationX||v.rotationY||(k=0)),_||R)_*=D,g=n=Math.cos(_),m=o=Math.sin(_),R&&(_-=R*D,g=Math.cos(_),m=Math.sin(_),"simple"===v.skewType)&&(e=Math.tan((R-O)*D),g*=e=Math.sqrt(1+e*e),m*=e,v.skewY)&&(e=Math.tan(O*D),n*=e=Math.sqrt(1+e*e),o*=e),i=-m,a=g;else{if(!(x||b||1!==S||k||P))return void(y[H]=(v.xPercent||v.yPercent?"translate("+v.xPercent+"%,"+v.yPercent+"%) translate3d(":"translate3d(")+C+"px,"+E+"px,"+M+"px)"+(1!==w||1!==T?" scale("+w+","+T+")":""));n=a=1,i=o=0}t=1,r=s=l=c=u=A=0,h=k?-1/k:0,d=v.zOrigin,p=1e-6,(_=x*D)&&(g=Math.cos(_),u=h*(l=-(m=Math.sin(_))),r=n*m,s=o*m,h*=t=g,n*=g,o*=g),(_=b*D)&&(e=i*(g=Math.cos(_))+r*(m=Math.sin(_)),f=a*g+s*m,c=t*m,A=h*m,r=i*-m+r*g,s=a*-m+s*g,t*=g,h*=g,i=e,a=f),1!==S&&(r*=S,s*=S,t*=S,h*=S),1!==T&&(i*=T,a*=T,c*=T,A*=T),1!==w&&(n*=w,o*=w,l*=w,u*=w),(d||P)&&(d&&(C+=r*-d,E+=s*-d,M+=t*-d+d),P&&(C+=v.xOrigin-(v.xOrigin*n+v.yOrigin*i)+v.xOffset,E+=v.yOrigin-(v.xOrigin*o+v.yOrigin*a)+v.yOffset),C<p&&-p<C&&(C="0"),E<p&&-p<E&&(E="0"),M<p)&&-p<M&&(M=0),m=(m=v.xPercent||v.yPercent?"translate("+v.xPercent+"%,"+v.yPercent+"%) matrix3d(":"matrix3d(")+((n<p&&-p<n?"0":n)+","+(o<p&&-p<o?"0":o)+","+(l<p&&-p<l?"0":l))+(","+(u<p&&-p<u?"0":u)+","+(i<p&&-p<i?"0":i)+","+(a<p&&-p<a?"0":a)),b||x||1!==S?m=m+","+(c<p&&-p<c?"0":c)+","+(A<p&&-p<A?"0":A)+","+(r<p&&-p<r?"0":r)+","+(s<p&&-p<s?"0":s)+","+(t<p&&-p<t?"0":t)+","+(h<p&&-p<h?"0":h)+",":m+=",0,0,0,0,1,0,",y[H]=m+=C+","+E+","+M+","+(k?1+-M/k:1)+")"}else _||R||P?(_*=D,g=R*D,n=Math.cos(_)*w,o=Math.sin(_)*w,i=Math.sin(_-g)*-T,a=Math.cos(_-g)*T,g&&"simple"===v.skewType&&(e=Math.tan(g-O*D),i*=e=Math.sqrt(1+e*e),a*=e,O)&&(e=Math.tan(O*D),n*=e=Math.sqrt(1+e*e),o*=e),P&&(C+=v.xOrigin-(v.xOrigin*n+v.yOrigin*i)+v.xOffset,E+=v.yOrigin-(v.xOrigin*o+v.yOrigin*a)+v.yOffset,G&&(v.xPercent||v.yPercent)&&(p=this.t.getBBox(),C+=.01*v.xPercent*p.width,E+=.01*v.yPercent*p.height),C<(p=1e-6)&&-p<C&&(C=0),E<p)&&-p<E&&(E=0),m=(1e5*n|0)/1e5+","+(1e5*o|0)/1e5+","+(1e5*i|0)/1e5+","+(1e5*a|0)/1e5+","+C+","+E+")",P&&G?this.t.setAttribute("transform","matrix("+m):y[H]=(v.xPercent||v.yPercent?"translate("+v.xPercent+"%,"+v.yPercent+"%) matrix(":"matrix(")+m):y[H]=(v.xPercent||v.yPercent?"translate("+v.xPercent+"%,"+v.yPercent+"%) matrix(":"matrix(")+w+",0,0,"+T+","+C+","+E+")"},Zt=((t=Vt.prototype).x=t.y=t.z=t.skewX=t.skewY=t.rotation=t.rotationX=t.rotationY=t.zOrigin=t.xPercent=t.yPercent=t.xOffset=t.yOffset=0,t.scaleX=t.scaleY=t.scaleZ=1,o("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(t,e,n,i,r,o,a){if(i._lastParsedTransform!==a){var s,l,c,u,h,d,p,f,m,g=(i._lastParsedTransform=a).scale&&"function"==typeof a.scale?a.scale:0,e=("function"==typeof a[n]&&(s=a[n],a[n]=e),g&&(a.scale=g(R,t)),t._gsTransform),v=t.style,y=Nt.length,_=a,b={},x="transformOrigin",w=Xt(t,P,!0,_.parseTransform),T=_.transform&&("function"==typeof _.transform?_.transform(R,k):_.transform);if(w.skewType=_.skewType||w.skewType||O.defaultSkewType,i._transform=w,T&&"string"==typeof T&&H)(c=F.style)[H]=T,c.display="block",c.position="absolute",-1!==T.indexOf("%")&&(c.width=N(t,"width"),c.height=N(t,"height")),I.body.appendChild(F),l=Xt(F,null,!1),"simple"===w.skewType&&(l.scaleY*=Math.cos(l.skewX*D)),w.svg&&(d=w.xOrigin,p=w.yOrigin,l.x-=w.xOffset,l.y-=w.yOffset,(_.transformOrigin||_.svgOrigin)&&(T={},Ot(t,S(_.transformOrigin),T,_.svgOrigin,_.smoothOrigin,!0),d=T.xOrigin,p=T.yOrigin,l.x-=T.xOffset-w.xOffset,l.y-=T.yOffset-w.yOffset),d||p)&&(f=Rt(F,!0),l.x-=d-(d*f[0]+p*f[2]),l.y-=p-(d*f[1]+p*f[3])),I.body.removeChild(F),l.perspective||(l.perspective=w.perspective),null!=_.xPercent&&(l.xPercent=C(_.xPercent,w.xPercent)),null!=_.yPercent&&(l.yPercent=C(_.yPercent,w.yPercent));else if("object"===(void 0===_?"undefined":Qt(_))){if(l={scaleX:C(null!=_.scaleX?_.scaleX:_.scale,w.scaleX),scaleY:C(null!=_.scaleY?_.scaleY:_.scale,w.scaleY),scaleZ:C(_.scaleZ,w.scaleZ),x:C(_.x,w.x),y:C(_.y,w.y),z:C(_.z,w.z),xPercent:C(_.xPercent,w.xPercent),yPercent:C(_.yPercent,w.yPercent),perspective:C(_.transformPerspective,w.perspective)},null!=(h=_.directionalRotation))if("object"===(void 0===h?"undefined":Qt(h)))for(c in h)_[c]=h[c];else _.rotation=h;"string"==typeof _.x&&-1!==_.x.indexOf("%")&&(l.x=0,l.xPercent=C(_.x,w.xPercent)),"string"==typeof _.y&&-1!==_.y.indexOf("%")&&(l.y=0,l.yPercent=C(_.y,w.yPercent)),l.rotation=M("rotation"in _?_.rotation:"shortRotation"in _?_.shortRotation+"_short":"rotationZ"in _?_.rotationZ:w.rotation,w.rotation,"rotation",b),W&&(l.rotationX=M("rotationX"in _?_.rotationX:"shortRotationX"in _?_.shortRotationX+"_short":w.rotationX||0,w.rotationX,"rotationX",b),l.rotationY=M("rotationY"in _?_.rotationY:"shortRotationY"in _?_.shortRotationY+"_short":w.rotationY||0,w.rotationY,"rotationY",b)),l.skewX=M(_.skewX,w.skewX),l.skewY=M(_.skewY,w.skewY)}for(W&&null!=_.force3D&&(w.force3D=_.force3D,u=!0),(f=w.force3D||w.z||w.rotationX||w.rotationY||l.z||l.rotationX||l.rotationY||l.perspective)||null==_.scale||(l.scaleZ=1);-1<--y;)(1e-6<(T=l[m=Nt[y]]-w[m])||T<-1e-6||null!=_[m]||null!=ft[m])&&(u=!0,r=new z(w,m,w[m],T,r),m in b&&(r.e=b[m]),r.xs0=0,r.plugin=o,i._overwriteProps.push(r.n));T=_.transformOrigin,w.svg&&(T||_.svgOrigin)&&(d=w.xOffset,p=w.yOffset,Ot(t,S(T),l,_.svgOrigin,_.smoothOrigin),r=Mt(w,"xOrigin",(e?w:l).xOrigin,l.xOrigin,r,x),r=Mt(w,"yOrigin",(e?w:l).yOrigin,l.yOrigin,r,x),d===w.xOffset&&p===w.yOffset||(r=Mt(w,"xOffset",e?d:w.xOffset,w.xOffset,r,x),r=Mt(w,"yOffset",e?p:w.yOffset,w.yOffset,r,x)),T="0px 0px"),(T||W&&f&&w.zOrigin)&&(H?(u=!0,m=zt,T=(T||N(t,m,P,!1,"50% 50%"))+"",(r=new z(v,m,0,0,r,-1,x)).b=v[m],r.plugin=o,W?(c=w.zOrigin,T=T.split(" "),w.zOrigin=(2<T.length&&(0===c||"0px"!==T[2])?parseFloat(T[2]):c)||0,r.xs0=r.e=T[0]+" "+(T[1]||"50%")+" 0px",(r=new z(w,"zOrigin",0,0,r,-1,r.n)).b=c,r.xs0=r.e=w.zOrigin):r.xs0=r.e=T):S(T+"",w)),u&&(i._transformType=w.svg&&G||!f&&3!==this._transformType?2:3),s&&(a[n]=s),g&&(a.scale=g)}return r},prefix:!0}),o("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),o("borderRadius",{defaultValue:"0px",parser:function(t,e,n,i,r,o){e=this.format(e);for(var a,s,l,c,u,h,d,p,f,m,g=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],v=t.style,y=parseFloat(t.offsetWidth),_=parseFloat(t.offsetHeight),b=e.split(" "),x=0;x<g.length;x++)this.p.indexOf("border")&&(g[x]=w(g[x])),-1!==(l=s=N(t,g[x],P,!1,"0px")).indexOf(" ")&&(l=(s=l.split(" "))[0],s=s[1]),c=a=b[x],f=parseFloat(l),m=l.substr((f+"").length),(h=""===(h=(d="="===c.charAt(1))?(u=parseInt(c.charAt(0)+"1",10),c=c.substr(2),u*=parseFloat(c),c.substr((u+"").length-(u<0?1:0))||""):(u=parseFloat(c),c.substr((u+"").length)))?$[n]||m:h)!==m&&(p=T(t,"borderLeft",f,m),f=T(t,"borderTop",f,m),s="%"===h?(l=p/y*100+"%",f/_*100+"%"):"em"===h?(l=p/(m=T(t,"borderLeft",1,"em"))+"em",f/m+"em"):(l=p+"px",f+"px"),d)&&(c=parseFloat(l)+u+h,a=parseFloat(s)+u+h),r=Pt(v,g[x],l+" "+s,c+" "+a,!1,"0px",r);return r},prefix:!0,formatter:St("0px 0px 0px 0px",!1,!0)}),o("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(t,e,n,i,r,o){return Pt(t.style,n,this.format(N(t,n,P,!1,"0px 0px")),this.format(e),!1,"0px",r)},prefix:!0,formatter:St("0px 0px",!1,!0)}),o("backgroundPosition",{defaultValue:"0 0",parser:function(t,e,n,i,r,o){var a,s,l,c,u,h="background-position",d=P||m(t,null),p=this.format((d?x?d.getPropertyValue(h+"-x")+" "+d.getPropertyValue(h+"-y"):d.getPropertyValue(h):t.currentStyle.backgroundPositionX+" "+t.currentStyle.backgroundPositionY)||"0 0"),d=this.format(e);if(-1!==p.indexOf("%")!=(-1!==d.indexOf("%"))&&d.split(",").length<2&&(h=N(t,"backgroundImage").replace(ct,""))&&"none"!==h){for(a=p.split(" "),s=d.split(" "),gt.setAttribute("src",h),l=2;-1<--l;)(c=-1!==(p=a[l]).indexOf("%"))!=(-1!==s[l].indexOf("%"))&&(u=0===l?t.offsetWidth-gt.width:t.offsetHeight-gt.height,a[l]=c?parseFloat(p)/100*u+"px":parseFloat(p)/u*100+"%");p=a.join(" ")}return this.parseComplex(t.style,p,d,r,o)},formatter:S}),o("backgroundSize",{defaultValue:"0 0",formatter:function(t){return"co"===(t+="").substr(0,2)?t:S(-1===t.indexOf(" ")?t+" "+t:t)}}),o("perspective",{defaultValue:"0px",prefix:!0}),o("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),o("transformStyle",{prefix:!0}),o("backfaceVisibility",{prefix:!0}),o("userSelect",{prefix:!0}),o("margin",{parser:Ct("marginTop,marginRight,marginBottom,marginLeft")}),o("padding",{parser:Ct("paddingTop,paddingRight,paddingBottom,paddingLeft")}),o("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(t,e,n,i,r,o){var a,s;return e=x<9?(a=t.currentStyle,s=x<8?" ":",",a="rect("+a.clipTop+s+a.clipRight+s+a.clipBottom+s+a.clipLeft+")",this.format(e).split(",").join(s)):(a=this.format(N(t,this.p,P,!1,this.dflt)),this.format(e)),this.parseComplex(t.style,a,e,r,o)}}),o("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),o("autoRound,strictUnits",{parser:function(t,e,n,i,r){return r}}),o("border",{defaultValue:"0px solid #000",parser:function(t,e,n,i,r,o){var a=N(t,"borderTopWidth",P,!1,"0px"),e=this.format(e).split(" "),s=e[0].replace(nt,"");return"px"!==s&&(a=parseFloat(a)/T(t,"borderTopWidth",1,s)+s),this.parseComplex(t.style,this.format(a+" "+N(t,"borderTopStyle",P,!1,"solid")+" "+N(t,"borderTopColor",P,!1,"#000")),e.join(" "),r,o)},color:!0,formatter:function(t){var e=t.split(" ");return e[0]+" "+(e[1]||"solid")+" "+(t.match(U)||["#000"])[0]}}),o("borderWidth",{parser:Ct("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),o("float,cssFloat,styleFloat",{parser:function(t,e,n,i,r,o){var t=t.style,a="cssFloat"in t?"cssFloat":"styleFloat";return new z(t,a,0,0,r,-1,n,!1,0,t[a],e)}}),o("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(t,e,n,i,r,o){var a=parseFloat(N(t,"opacity",P,!1,"1")),s=t.style,l="autoAlpha"===n;return"string"==typeof e&&"="===e.charAt(1)&&(e=("-"===e.charAt(0)?-1:1)*parseFloat(e.substr(2))+a),l&&1===a&&"hidden"===N(t,"visibility",P)&&0!==e&&(a=0),B?r=new z(s,"opacity",a,e-a,r):((r=new z(s,"opacity",100*a,100*(e-a),r)).xn1=l?1:0,s.zoom=1,r.type=2,r.b="alpha(opacity="+r.s+")",r.e="alpha(opacity="+(r.s+r.c)+")",r.data=t,r.plugin=o,r.setRatio=Dt),l&&((r=new z(s,"visibility",0,0,r,-1,null,!1,0,0!==a?"inherit":"hidden",0===e?"hidden":"inherit")).xs0="inherit",i._overwriteProps.push(r.n),i._overwriteProps.push(n)),r}}),function(t,e){e&&(t.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),t.removeProperty(e.replace(st,"-$1").toLowerCase())):t.removeAttribute(e))});o("className",{parser:function(t,e,n,i,r,o,a){var s,l,c,u=t.getAttribute("class")||"",h=t.style.cssText;if((r=i._classNamePT=new z(t,n,0,0,r,2)).setRatio=jt,r.pr=-11,p=!0,r.b=u,n=d(t,P),s=t._gsClassPT){for(l={},c=s.data;c;)l[c.p]=1,c=c._next;s.setRatio(1)}return(t._gsClassPT=r).e="="!==e.charAt(1)?e:u.replace(new RegExp("(?:\\s|^)"+e.substr(2)+"(?![\\w-])"),"")+("+"===e.charAt(0)?" "+e.substr(2):""),t.setAttribute("class",r.e),s=v(t,n,d(t),a,l),t.setAttribute("class",u),r.data=s.firstMPT,t.style.cssText=h,r=r.xfirst=i.parse(t,s.difs,r,o)}});for(o("clearProps",{parser:function(t,e,n,i,r){return(r=new z(t,n,0,0,r,2)).setRatio=It,r.e=e,r.pr=-10,r.data=i._tween,p=!0,r}}),t="bezier,throwProps,physicsProps,physics2D".split(","),V=t.length;V--;)Bt(t[V]);(t=O.prototype)._firstPT=t._lastParsedTransform=t._transform=null,t._onInitTween=function(t,e,n,i){if(!t.nodeType)return!1;this._target=k=t,this._tween=n,this._vars=e,R=i,q=e.autoRound,p=!1,$=e.suffixMap||O.suffixMap,P=m(t,""),_=this._overwriteProps;var r,o,a,s,l,c,i=t.style;if(!b||""!==i.zIndex||"auto"!==(c=N(t,"zIndex",P))&&""!==c||this._addLazySet(i,"zIndex",0),"string"==typeof e&&(a=i.cssText,c=d(t,P),i.cssText=a+";"+e,c=v(t,c,d(t)).difs,!B&&rt.test(e)&&(c.opacity=parseFloat(RegExp.$1)),e=c,i.cssText=a),e.className?this._firstPT=r=f.className.parse(t,e.className,"className",this,null,null,e):this._firstPT=r=this.parse(t,e,null),this._transformType){for(c=3===this._transformType,H?X&&(b=!0,""!==i.zIndex||"auto"!==(e=N(t,"zIndex",P))&&""!==e||this._addLazySet(i,"zIndex",0),Z)&&this._addLazySet(i,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(c?"visible":"hidden")):i.zoom=1,o=r;o&&o._next;)o=o._next;e=new z(t,"transform",0,0,null,2),this._linkCSSP(e,null,o),e.setRatio=H?Yt:Lt,e.data=this._transform||Xt(t,P,!0),e.tween=n,e.pr=-1,_.pop()}if(p){for(;r;){for(l=r._next,o=a;o&&o.pr>r.pr;)o=o._next;(r._prev=o?o._prev:s)?r._prev._next=r:a=r,(r._next=o)?o._prev=r:s=r,r=l}this._firstPT=a}return!0},t.parse=function(t,e,n,i){var r,o,a,s,l,c,u,h,d=t.style;for(r in e){if("function"==typeof(l=e[r])&&(l=l(R,k)),s=f[r])n=s.parse(t,l,r,this,n,i,e);else{if("--"===r.substr(0,2)){this._tween._propLookup[r]=this._addTween.call(this._tween,t.style,"setProperty",m(t).getPropertyValue(r)+"",l+"",r,!1,r);continue}s=N(t,r,P)+"",u="string"==typeof l,"color"===r||"fill"===r||"stroke"===r||-1!==r.indexOf("Color")||u&&at.test(l)?(u||(l=(3<(l=Tt(l)).length?"rgba(":"rgb(")+l.join(",")+")"),n=Pt(d,r,s,l,!0,"transparent",n,0,i)):u&&pt.test(l)?n=Pt(d,r,s,l,!0,null,n,0,i):(c=(o=parseFloat(s))||0===o?s.substr((o+"").length):"",""!==s&&"auto"!==s||(c="width"===r||"height"===r?(o=function(t,e,n){if("svg"===(t.nodeName+"").toLowerCase())return(n||m(t))[e]||0;if(t.getCTM&&$t(t))return t.getBBox()[e]||0;var i=parseFloat("width"===e?t.offsetWidth:t.offsetHeight),r=bt[e],o=r.length;for(n=n||m(t,null);-1<--o;)i=(i-=parseFloat(N(t,"padding"+r[o],n,!0))||0)-(parseFloat(N(t,"border"+r[o]+"Width",n,!0))||0);return i}(t,r,P),"px"):"left"===r||"top"===r?(o=_t(t,r,P),"px"):(o="opacity"!==r?0:1,"")),""===(u=(h=u&&"="===l.charAt(1))?(a=parseInt(l.charAt(0)+"1",10),l=l.substr(2),a*=parseFloat(l),l.replace(nt,"")):(a=parseFloat(l),u?l.replace(nt,""):""))&&(u=r in $?$[r]:c),l=a||0===a?(h?a+o:a)+u:e[r],c===u||""===u&&"lineHeight"!==r||(a||0===a)&&o&&(o=T(t,r,o,c),"%"===u?(o/=T(t,r,100,"%")/100,!0!==e.strictUnits&&(s=o+"%")):"em"===u||"rem"===u||"vw"===u||"vh"===u?o/=T(t,r,1,u):"px"!==u&&(a=T(t,r,a,u),u="px"),h)&&(a||0===a)&&(l=a+o+u),h&&(a+=o),!o&&0!==o||!a&&0!==a?void 0!==d[r]&&(l||l+""!="NaN"&&null!=l)?(n=new z(d,r,a||o||0,0,n,-1,r,!1,0,s,l)).xs0="none"!==l||"display"!==r&&-1===r.indexOf("Style")?l:s:g("invalid "+r+" tween value: "+e[r]):(n=new z(d,r,o,a-o,n,0,r,!1!==q&&("px"===u||"zIndex"===r),0,s,l)).xs0=u)}i&&n&&!n.plugin&&(n.plugin=i)}return n},t.setRatio=function(t){var e,n,i,r=this._firstPT;if(1!==t||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(t||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;r;){if(e=r.c*t+r.s,r.r?e=r.r(e):e<1e-6&&-1e-6<e&&(e=0),r.type)if(1===r.type)if(2===(i=r.l))r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2;else if(3===i)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3;else if(4===i)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4;else if(5===i)r.t[r.p]=r.xs0+e+r.xs1+r.xn1+r.xs2+r.xn2+r.xs3+r.xn3+r.xs4+r.xn4+r.xs5;else{for(n=r.xs0+e+r.xs1,i=1;i<r.l;i++)n+=r["xn"+i]+r["xs"+(i+1)];r.t[r.p]=n}else-1===r.type?r.t[r.p]=r.xs0:r.setRatio&&r.setRatio(t);else r.t[r.p]=e+r.xs0;r=r._next}else for(;r;)2!==r.type?r.t[r.p]=r.b:r.setRatio(t),r=r._next;else for(;r;){if(2!==r.type)if(r.r&&-1!==r.type)if(e=r.r(r.s+r.c),r.type){if(1===r.type){for(i=r.l,n=r.xs0+e+r.xs1,i=1;i<r.l;i++)n+=r["xn"+i]+r["xs"+(i+1)];r.t[r.p]=n}}else r.t[r.p]=e+r.xs0;else r.t[r.p]=r.e;else r.setRatio(t);r=r._next}},t._enableTransforms=function(t){this._transform=this._transform||Xt(this._target,P,!0),this._transformType=this._transform.svg&&G||!t&&3!==this._transformType?2:3};function Jt(t){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)}function Kt(t,e,n){var i,r,o,a;if(t.slice)for(r=t.length;-1<--r;)Kt(t[r],e,n);else for(r=(i=t.childNodes).length;-1<--r;)a=(o=i[r]).type,o.style&&(e.push(d(o)),n)&&n.push(o),1!==a&&9!==a&&11!==a||!o.childNodes.length||Kt(o,e,n)}t._addLazySet=function(t,e,n){t=this._firstPT=new z(t,e,0,0,this._firstPT,2);t.e=n,t.setRatio=Jt,t.data=this},t._linkCSSP=function(t,e,n,i){return t&&(e&&(e._prev=t),t._next&&(t._next._prev=t._prev),t._prev?t._prev._next=t._next:this._firstPT===t&&(this._firstPT=t._next,i=!0),n?n._next=t:i||null!==this._firstPT||(this._firstPT=t),t._next=e,t._prev=n),t},t._mod=function(t){for(var e=this._firstPT;e;)"function"==typeof t[e.p]&&(e.r=t[e.p]),e=e._next},t._kill=function(t){var e,n,i,r=t;if(t.autoAlpha||t.alpha){for(n in r={},t)r[n]=t[n];r.opacity=1,r.autoAlpha&&(r.visibility=1)}for(t.className&&(e=this._classNamePT)&&((i=e.xfirst)&&i._prev?this._linkCSSP(i._prev,e._next,i._prev._prev):i===this._firstPT&&(this._firstPT=e._next),e._next&&this._linkCSSP(e._next,e._next._next,i._prev),this._classNamePT=null),e=this._firstPT;e;)e.plugin&&e.plugin!==n&&e.plugin._kill&&(e.plugin._kill(t),n=e.plugin),e=e._next;return a.prototype._kill.call(this,r)};return O.cascadeTo=function(t,e,n){var i,r,o,a,s=A.to(t,e,n),l=[s],c=[],u=[],h=[],d=A._internals.reservedProps;for(t=s._targets||s.target,Kt(t,c,h),s.render(e,!0,!0),Kt(t,u),s.render(0,!0,!0),s._enabled(!0),i=h.length;-1<--i;)if((r=v(h[i],c[i],u[i])).firstMPT){for(o in r=r.difs,n)d[o]&&(r[o]=n[o]);for(o in a={},r)a[o]=c[i][o];l.push(A.fromTo(h[i],e,a,r))}return l},a.activate([O]),O},!0)}),te._gsDefine&&te._gsQueue.pop()(),void 0!==i&&i.exports?(n("./src/uncompressed/TweenLite"),i.exports=t()):"function"==typeof define&&define.amd&&define(["gsap/TweenLite"],t)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./src/uncompressed/TweenLite":387}],387:[function(t,ot,e){!function(rt){!function(){"use strict";var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m=void 0!==ot&&ot.exports&&void 0!==rt?rt:window,d="TweenLite",f={},g=m.document,v=m.GreenSockGlobals=m.GreenSockGlobals||m;if(v.TweenLite)v.TweenLite;else{var y,e,I,h=Y("com.greensock"),_=1e-10,b=(e=Object.prototype.toString,I=e.call([]),function(t){return null!=t&&(t instanceof Array||"object"===(void 0===t?"undefined":p(t))&&!!t.push&&e.call(t)===I)}),x={},i=m._gsDefine=function(t,e,n,i){return new K(t,e,n,i)},w=h._class=function(t,e,n){return e=e||function(){},i(t,[],function(){return e},n),e},F=(i.globals=v,[0,0,1,1]),T=w("easing.Ease",function(t,e,n,i){this._func=t,this._type=n||0,this._power=i||0,this._params=e?F.concat(e):F},!0),S=T.map={},t=T.register=function(t,e,n,i){for(var r,o,a,s,l=e.split(","),c=l.length,u=(n||"easeIn,easeOut,easeInOut").split(",");-1<--c;)for(o=l[c],r=i?w("easing."+o,null,!0):h.easing[o]||{},a=u.length;-1<--a;)s=u[a],S[o+"."+s]=S[s+o]=r[s]=t.getRatio?t:t[s]||new t},n=T.prototype;for(n._calcEnd=!1,n.getRatio=function(t){var e,n,i;return this._func?(this._params[0]=t,this._func.apply(null,this._params)):(i=1===(e=this._type)?1-t:2===e?t:t<.5?2*t:2*(1-t),1===(n=this._power)?i*=i:2===n?i*=i*i:3===n?i*=i*i*i:4===n&&(i*=i*i*i*i),1===e?1-i:2===e?i:t<.5?i/2:1-i/2)},o=(r=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--o;)n=r[o]+",Power"+o,t(new T(null,null,1,o),n,"easeOut",!0),t(new T(null,null,2,o),n,"easeIn"+(0===o?",easeNone":"")),t(new T(null,null,3,o),n,"easeInOut");S.linear=h.easing.Linear.easeIn,S.swing=h.easing.Quad.easeInOut;for(var r,B=w("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this}),C=((n=B.prototype).addEventListener=function(t,e,n,i,r){r=r||0;var o,a,s=this._listeners[t],l=0;for(this!==k||y||k.wake(),null==s&&(this._listeners[t]=s=[]),a=s.length;-1<--a;)(o=s[a]).c===e&&o.s===n?s.splice(a,1):0===l&&o.pr<r&&(l=a+1);s.splice(l,0,{c:e,s:n,up:i,pr:r})},n.removeEventListener=function(t,e){var n,i=this._listeners[t];if(i)for(n=i.length;-1<--n;)if(i[n].c===e)return void i.splice(n,1)},n.dispatchEvent=function(t){var e,n,i,r=this._listeners[t];if(r)for(1<(e=r.length)&&(r=r.slice(0)),n=this._eventTarget;-1<--e;)(i=r[e])&&(i.up?i.c.call(i.s||n,{type:t,target:n}):i.c.call(i.s||n))},m.requestAnimationFrame),E=m.cancelAnimationFrame,M=Date.now||function(){return(new Date).getTime()},P=M(),o=(r=["ms","moz","webkit","o"]).length;-1<--o&&!C;)C=m[r[o]+"RequestAnimationFrame"],E=m[r[o]+"CancelAnimationFrame"]||m[r[o]+"CancelRequestAnimationFrame"];w("Ticker",function(t,e){function i(t){var e,n=M()-P;h<n&&(u+=n-d),P+=n,c.time=(P-u)/1e3,n=c.time-l,(!r||0<n||!0===t)&&(c.frame++,l+=n+(s<=n?.004:s-n),e=!0),!0!==t&&(a=o(i)),e&&c.dispatchEvent(p)}var r,o,a,s,l,c=this,u=M(),n=!(!1===e||!C)&&"auto",h=500,d=33,p="tick";B.call(c),c.time=c.frame=0,c.tick=function(){i(!0)},c.lagSmoothing=function(t,e){if(!arguments.length)return h<1e10;h=t||1e10,d=Math.min(e,h,0)},c.sleep=function(){null!=a&&((n&&E?E:clearTimeout)(a),o=J,a=null,c===k)&&(y=!1)},c.wake=function(t){null!==a?c.sleep():t?u+=-P+(P=M()):10<c.frame&&(P=M()-h+5),o=0===r?J:n&&C?C:function(t){return setTimeout(t,1e3*(l-c.time)+1|0)},c===k&&(y=!0),i(2)},c.fps=function(t){if(!arguments.length)return r;s=1/((r=t)||60),l=this.time+s,c.wake()},c.useRAF=function(t){if(!arguments.length)return n;c.sleep(),n=t,c.fps(r)},c.fps(t),setTimeout(function(){"auto"===n&&c.frame<5&&"hidden"!==(g||{}).visibilityState&&c.useRAF(!1)},1500)}),(n=h.Ticker.prototype=new h.events.EventDispatcher).constructor=h.Ticker;var s=w("core.Animation",function(t,e){this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,u&&(y||k.wake(),(t=this.vars.useFrames?c:u).add(this,t._time),this.vars.paused)&&this.paused(!0)}),k=s.ticker=new h.Ticker,a=((n=s.prototype)._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1,function t(){y&&2e3<M()-P&&("hidden"!==(g||{}).visibilityState||!k.lagSmoothing())&&k.wake();var e=setTimeout(t,2e3);e.unref&&e.unref()}(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},n.render=function(t,e,n){},n.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},n.isActive=function(){var t=this._timeline,e=this._startTime;return!t||!this._gc&&!this._paused&&t.isActive()&&(t=t.rawTime(!0))>=e&&t<e+this.totalDuration()/this._timeScale-1e-7},n._enabled=function(t,e){return y||k.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(t,e){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapSelfInParams=function(t){for(var e=t.length,n=t.concat();-1<--e;)"{self}"===t[e]&&(n[e]=this);return n},n._callback=function(t){var e=this.vars,n=e[t],i=e[t+"Params"],r=e[t+"Scope"]||e.callbackScope||this;switch(i?i.length:0){case 0:n.call(r);break;case 1:n.call(r,i[0]);break;case 2:n.call(r,i[0],i[1]);break;default:n.apply(r,i)}},n.eventCallback=function(t,e,n,i){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=b(n)&&-1!==n.join("").indexOf("{self}")?this._swapSelfInParams(n):n,r[t+"Scope"]=i),"onUpdate"===t&&(this._onUpdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},n.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},n.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},n.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},n.totalTime=function(t,e,n){if(y||k.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!n&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var i=this._totalDuration,r=this._timeline;if(i<t&&!n&&(t=i),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?i-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(O.length&&L(),this.render(t,e,!1),O.length&&L())}return this},n.progress=n.totalProgress=function(t,e){var n=this.duration();return arguments.length?this.totalTime(n*t,e):n?this._time/n:this.ratio},n.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline)&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay),this):this._startTime},n.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},n.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,n;for(t=t||_,this._timeline&&this._timeline.smoothChildTiming&&(n=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=n-(n-this._startTime)*this._timeScale/t),this._timeScale=t,n=this.timeline;n&&n.timeline;)n._dirty=!0,n.totalDuration(),n=n.timeline;return this},n.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},n.paused=function(t){var e,n,i;return arguments.length?(e=this._timeline,t!=this._paused&&e&&(y||t||k.wake(),i=(n=e.rawTime())-this._pauseTime,!t&&e.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?n:null,this._paused=t,this._active=this.isActive(),!t)&&0!=i&&this._initted&&this.duration()&&(n=e.smoothChildTiming?this._totalTime:(n-this._startTime)/this._timeScale,this.render(n,n===this._totalTime,!0)),this._gc&&!t&&this._enabled(!0,!1),this):this._paused},w("core.SimpleTimeline",function(t){s.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0})),A=((n=a.prototype=new s).constructor=a,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortChildren=!1,n.add=n.insert=function(t,e,n,i){var r,o;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(o=t._startTime;r&&r._startTime>o;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},n._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline)&&this._uncache(!0),this},n.render=function(t,e,n){var i,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)i=r._next,(r._active||t>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,n):r.render((t-r._startTime)*r._timeScale,e,n)),r=i},n.rawTime=function(){return y||k.wake(),this._totalTime},w("TweenLite",function(t,e,n){if(s.call(this,e,n),this.render=A.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"==typeof t&&A.selector(t)||t;var i,r,o,n=t.jquery||t.length&&t!==m&&t[0]&&(t[0]===m||t[0].nodeType&&t[0].style&&!t.nodeType),a=this.vars.overwrite;if(this._overwrite=a=null==a?W[A.defaultOverwrite]:"number"==typeof a?a>>0:W[a],(n||t instanceof Array||t.push&&b(t))&&"number"!=typeof t[0])for(this._targets=o=Z(t),this._propLookup=[],this._siblings=[],i=0;i<o.length;i++)(r=o[i])?"string"==typeof r?"string"==typeof(r=o[i--]=A.selector(r))&&o.splice(i+1,1):r.length&&r!==m&&r[0]&&(r[0]===m||r[0].nodeType&&r[0].style&&!r.nodeType)?(o.splice(i--,1),this._targets=o=o.concat(Z(r))):(this._siblings[i]=D(r,this,!1),1===a&&1<this._siblings[i].length&&q(r,this,null,1,this._siblings[i])):o.splice(i--,1);else this._propLookup={},this._siblings=D(t,this,!1),1===a&&1<this._siblings.length&&q(t,this,null,1,this._siblings);(this.vars.immediateRender||0===e&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-_,this.render(Math.min(0,-this._delay)))},!0)),O=((n=A.prototype=new s).constructor=A,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,A.version="1.20.5",A.defaultEase=n._ease=new T(null,null,1,1),A.defaultOverwrite="auto",A.ticker=k,A.autoSleep=120,A.lagSmoothing=function(t,e){k.lagSmoothing(t,e)},A.selector=m.$||m.jQuery||function(t){var e=m.$||m.jQuery;return e?(A.selector=e)(t):(g=g||m.document)?g.querySelectorAll?g.querySelectorAll(t):g.getElementById("#"===t.charAt(0)?t.substr(1):t):t},[]),N={},U=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,z=/[\+-]=-?[\.\d]/,V=A._internals={isArray:b,isSelector:Q,lazyTweens:O,blobDif:et},R=A._plugins={},l=V.tweenLookup={},G=0,H=V.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},W={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},c=s._rootFramesTimeline=new a,u=s._rootTimeline=new a,$=30,L=V.lazyRender=function(){var t,e=O.length;for(N={};-1<--e;)(t=O[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);O.length=0},D=(u._startTime=k.time,c._startTime=k.frame,u._active=c._active=!0,setTimeout(L,1),s._updateRoot=A.render=function(){var t,e,n;if(O.length&&L(),u.render((k.time-u._startTime)*u._timeScale,!1,!1),c.render((k.frame-c._startTime)*c._timeScale,!1,!1),O.length&&L(),k.frame>=$){for(n in $=k.frame+(parseInt(A.autoSleep,10)||120),l){for(t=(e=l[n].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete l[n]}if((!(n=u._first)||n._paused)&&A.autoSleep&&!c._first&&1===k._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||k.sleep()}}},k.addEventListener("tick",s._updateRoot),function(t,e,n){var i,r,o=t._gsTweenID;if(l[o||(t._gsTweenID=o="t"+G++)]||(l[o]={target:t,tweens:[]}),e&&((i=l[o].tweens)[r=i.length]=e,n))for(;-1<--r;)i[r]===e&&i.splice(r,1);return l[o].tweens}),q=function(t,e,n,i,r){var o,a,s;if(1===i||4<=i){for(s=r.length,p=0;p<s;p++)if((a=r[p])!==e)a._gc||a._kill(null,t,e)&&(o=!0);else if(5===i)break}else{for(var l,c=e._startTime+_,u=[],h=0,d=0===e._duration,p=r.length;-1<--p;)(a=r[p])===e||a._gc||a._paused||(a._timeline!==e._timeline?(l=l||X(e,0,d),0===X(a,l,d)&&(u[h++]=a)):a._startTime<=c&&a._startTime+a.totalDuration()/a._timeScale>c&&((d||!a._initted)&&c-a._startTime<=2e-10||(u[h++]=a)));for(p=h;-1<--p;)a=u[p],2===i&&a._kill(n,t,e)&&(o=!0),(2!==i||!a._firstPT&&a._initted)&&(2===i||it(a,e))&&a._enabled(!1,!1)&&(o=!0)}return o},X=function(t,e,n){for(var i=t._timeline,r=i._timeScale,o=t._startTime;i._timeline;){if(o+=i._startTime,r*=i._timeScale,i._paused)return-100;i=i._timeline}return e<(o/=r)?o-e:n&&o===e||!t._initted&&o-e<2e-10?_:(o+=t.totalDuration()/t._timeScale/r)>e+_?0:o-e-_},j=(n._init=function(){var t,e,n,i,r,o,a=this.vars,s=this._overwrittenProps,l=this._duration,c=!!a.immediateRender,u=a.ease;if(a.startAt){for(i in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={},a.startAt)r[i]=a.startAt[i];if(r.data="isStart",r.overwrite=!1,r.immediateRender=!0,r.lazy=c&&!1!==a.lazy,r.startAt=r.delay=null,r.onUpdate=a.onUpdate,r.onUpdateParams=a.onUpdateParams,r.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=A.to(this.target||{},0,r),c)if(0<this._time)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(i in 0!==this._time&&(c=!1),n={},a)H[i]&&"autoCSS"!==i||(n[i]=a[i]);if(n.overwrite=0,n.data="isFromStart",n.lazy=c&&!1!==a.lazy,n.immediateRender=c,this._startAt=A.to(this.target,0,n),c){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof T?u:"function"==typeof u?new T(u,a.easeParams):S[u]||A.defaultEase:A.defaultEase,a.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,t=0;t<o;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],s?s[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,s,0);if(e&&A._onPluginEvent("_onInitAllProps",this),!s||this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1),a.runBackwards)for(n=this._firstPT;n;)n.s+=n.c,n.c=-n.c,n=n._next;this._onUpdate=a.onUpdate,this._initted=!0},n._initProps=function(t,e,n,i,r){var o,a,s,l,c,u;if(null==t)return!1;if(N[t._gsTweenID]&&L(),!this.vars.css&&t.style&&t!==m&&t.nodeType&&R.css&&!1!==this.vars.autoCSS){var h,d=this.vars,p=t,f={};for(h in d)H[h]||h in p&&"transform"!==h&&"x"!==h&&"y"!==h&&"width"!==h&&"height"!==h&&"className"!==h&&"border"!==h||!(!R[h]||R[h]&&R[h]._autoCSS)||(f[h]=d[h],delete d[h]);d.css=f}for(o in this.vars)if(u=this.vars[o],H[o])u&&(u instanceof Array||u.push&&b(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[o]=u=this._swapSelfInParams(u,this));else if(R[o]&&(l=new R[o])._onInitTween(t,this.vars[o],this,r)){for(this._firstPT=c={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:o,pg:1,pr:l._priority,m:0},a=l._overwriteProps.length;-1<--a;)e[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(s=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),c._next&&(c._next._prev=c)}else e[o]=nt.call(this,t,o,"get",u,o,0,null,this.vars.stringFilter,r);return i&&this._kill(i,t)?this._initProps(t,e,n,i,r):1<this._overwrite&&this._firstPT&&1<n.length&&q(t,this,e,this._overwrite,n)?(this._kill(e,t),this._initProps(t,e,n,i,r)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(N[t._gsTweenID]=!0),s)},n.render=function(t,e,n){var i,r,o,a,s,l,c,u=this._time,h=this._duration,d=this._rawPrevTime;if(h-1e-7<=t&&0<=t?(this._totalTime=this._time=h,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(i=!0,r="onComplete",n=n||this._timeline.autoRemoveChildren),0!==h||!this._initted&&this.vars.lazy&&!n||(this._startTime===this._timeline._duration&&(t=0),(d<0||t<=0&&-1e-7<=t||d===_&&"isPause"!==this.data)&&d!==t&&(n=!0,_<d)&&(r="onReverseComplete"),this._rawPrevTime=a=!e||t||d===t?t:_)):t<1e-7?(this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==u||0===h&&0<d)&&(r="onReverseComplete",i=this._reversed),t<0&&(this._active=!1,0!==h||!this._initted&&this.vars.lazy&&!n||(0<=d&&(d!==_||"isPause"!==this.data)&&(n=!0),this._rawPrevTime=a=!e||t||d===t?t:_)),(!this._initted||this._startAt&&this._startAt.progress())&&(n=!0)):(this._totalTime=this._time=t,this._easeType?(s=t/h,(1===(l=this._easeType)||3===l&&.5<=s)&&(s=1-s),3===l&&(s*=2),1===(c=this._easePower)?s*=s:2===c?s*=s*s:3===c?s*=s*s*s:4===c&&(s*=s*s*s*s),this.ratio=1===l?1-s:2===l?s:t/h<.5?s/2:1-s/2):this.ratio=this._ease.getRatio(t/h)),this._time!==u||n){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=u,this._rawPrevTime=d,O.push(this),void(this._lazy=[t,e]);this._time&&!i?this.ratio=this._ease.getRatio(this._time/h):i&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==u&&0<=t&&(this._active=!0),0===u&&(this._startAt&&(0<=t?this._startAt.render(t,!0,n):r=r||"_dummyGS"),!this.vars.onStart||0===this._time&&0!==h||e||this._callback("onStart")),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,n),e||(this._time!==u||i||n)&&this._callback("onUpdate")),!r||this._gc&&!n||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,n),i&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===h&&this._rawPrevTime===_&&a!==_&&(this._rawPrevTime=0))}},n._kill=function(t,e,n){if(null==(t="all"===t?null:t)&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:A.selector(e)||e;var i,r,o,a,s,l,c,u,h,d=n&&this._time&&n._startTime===this._startTime&&this._timeline===n._timeline;if((b(e)||Q(e))&&"number"!=typeof e[0])for(i=e.length;-1<--i;)this._kill(t,e[i],n)&&(l=!0);else{if(this._targets){for(i=this._targets.length;-1<--i;)if(e===this._targets[i]){s=this._propLookup[i]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[i]=t?this._overwrittenProps[i]||{}:"all";break}}else{if(e!==this.target)return!1;s=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(s){if(c=t||s,u=t!==r&&"all"!==r&&t!==s&&("object"!==(void 0===t?"undefined":p(t))||!t._tempKill),n&&(A.onOverwrite||this.vars.onOverwrite)){for(o in c)s[o]&&(h=h||[]).push(o);if((h||!t)&&!it(this,n,e,h))return!1}for(o in c)(a=s[o])&&(d&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(c)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete s[o]),u&&(r[o]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},n.invalidate=function(){return this._notifyPluginsOfEnabled&&A._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],s.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-_,this.render(Math.min(0,-this._delay))),this},n._enabled=function(t,e){if(y||k.wake(),t&&this._gc){var n,i=this._targets;if(i)for(n=i.length;-1<--n;)this._siblings[n]=D(i[n],this,!0);else this._siblings=D(this.target,this,!0)}return s.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&A._onPluginEvent(t?"_onEnable":"_onDisable",this)},A.to=function(t,e,n){return new A(t,e,n)},A.from=function(t,e,n){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,new A(t,e,n)},A.fromTo=function(t,e,n,i){return i.startAt=n,i.immediateRender=0!=i.immediateRender&&0!=n.immediateRender,new A(t,e,i)},A.delayedCall=function(t,e,n,i,r){return new A(e,0,{delay:t,onComplete:e,onCompleteParams:n,callbackScope:i,onReverseComplete:e,onReverseCompleteParams:n,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},A.set=function(t,e){return new A(t,0,e)},A.getTweensOf=function(t,e){if(null==t)return[];var n,i,r,o;if(t="string"==typeof t&&A.selector(t)||t,(b(t)||Q(t))&&"number"!=typeof t[0]){for(n=t.length,i=[];-1<--n;)i=i.concat(A.getTweensOf(t[n],e));for(n=i.length;-1<--n;)for(o=i[n],r=n;-1<--r;)o===i[r]&&i.splice(n,1)}else if(t._gsTweenID)for(n=(i=D(t).concat()).length;-1<--n;)(i[n]._gc||e&&!i[n].isActive())&&i.splice(n,1);return i||[]},A.killTweensOf=A.killDelayedCallsTo=function(t,e,n){"object"===(void 0===e?"undefined":p(e))&&(n=e,e=!1);for(var i=A.getTweensOf(t,e),r=i.length;-1<--r;)i[r]._kill(n,t)},w("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=j.prototype},!0));if(n=j.prototype,j.version="1.19.0",j.API=2,n._firstPT=null,n._addTween=nt,n.setRatio=tt,n._kill=function(t){var e,n=this._overwriteProps,i=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=n.length;-1<--e;)null!=t[n[e]]&&n.splice(e,1);for(;i;)null!=t[i.n]&&(i._next&&(i._next._prev=i._prev),i._prev?(i._prev._next=i._next,i._prev=null):this._firstPT===i&&(this._firstPT=i._next)),i=i._next;return!1},n._mod=n._roundProps=function(t){for(var e,n=this._firstPT;n;)(e=t[this._propName]||null!=n.n&&t[n.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===n.f?n.t._applyPT.m=e:n.m=e),n=n._next},A._onPluginEvent=function(t,e){var n,i,r,o,a,s=e._firstPT;if("_onInitAllProps"===t){for(;s;){for(a=s._next,i=r;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:o)?s._prev._next=s:r=s,(s._next=i)?i._prev=s:o=s,s=a}s=e._firstPT=r}for(;s;)s.pg&&"function"==typeof s.t[t]&&s.t[t]()&&(n=!0),s=s._next;return n},j.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===j.API&&(R[(new t[e])._propName]=t[e]);return!0},i.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,n=t.propName,i=t.priority||0,r=t.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=w("plugins."+n.charAt(0).toUpperCase()+n.substr(1)+"Plugin",function(){j.call(this,n,i),this._overwriteProps=r||[]},!0===t.global),s=a.prototype=new j(n);for(e in(s.constructor=a).API=t.API,o)"function"==typeof t[e]&&(s[o[e]]=t[e]);return a.version=t.version,j.activate([a]),a},r=m._gsQueue){for(o=0;o<r.length;o++)r[o]();for(n in x)x[n].func||m.console.log("GSAP encountered missing dependency: "+n)}y=!1}function Y(t){for(var e=t.split("."),n=v,i=0;i<e.length;i++)n[e[i]]=n=n[e[i]]||{};return n}function Z(t){for(var e=[],n=t.length,i=0;i!==n;e.push(t[i++]));return e}function J(){}function K(s,l,c,u){this.sc=x[s]?x[s].sc:[],(x[s]=this).gsClass=null,this.func=c;var h=[];this.check=function(t){for(var e,n,i,r,o=l.length,a=o;-1<--o;)(e=x[l[o]]||new K(l[o],[])).gsClass?(h[o]=e.gsClass,a--):t&&e.sc.push(this);if(0===a&&c){if(i=(n=("com.greensock."+s).split(".")).pop(),r=Y(n.join("."))[i]=this.gsClass=c.apply(c,h),u)if(v[i]=f[i]=r,void 0!==ot&&ot.exports)if(s===d)for(o in ot.exports=f[d]=r,f)r[o]=f[o];else f[d]&&(f[d][i]=r);else"function"==typeof define&&define.amd&&define((m.GreenSockAMDPath?m.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],function(){return r});for(o=0;o<this.sc.length;o++)this.sc[o].check()}},this.check(!0)}function Q(t){return t&&t.length&&t!==m&&t[0]&&(t[0]===m||t[0].nodeType&&t[0].style&&!t.nodeType)}function tt(t){for(var e,n=this._firstPT;n;)e=n.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:n.c*t+n.s,n.m?e=n.m.call(this._tween,e,this._target||n.t,this._tween):e<1e-6&&-1e-6<e&&!n.blob&&(e=0),n.f?n.fp?n.t[n.p](n.fp,e):n.t[n.p](e):n.t[n.p]=e,n=n._next}function et(t,e,n,i){var r,o,a,s,l,c,u=[],h=0,d="",p=0;for(u.start=t,u.end=e,t=u[0]=t+"",e=u[1]=e+"",n&&(n(u),t=u[0],e=u[1]),u.length=0,r=t.match(U)||[],o=e.match(U)||[],i&&(i._next=null,i.blob=1,u._firstPT=u._applyPT=i),s=o.length,a=0;a<s;a++)c=o[a],d+=(l=e.substr(h,e.indexOf(c,h)-h))||!a?l:",",h+=l.length,p?p=(p+1)%5:"rgba("===l.substr(-5)&&(p=1),c===r[a]||r.length<=a?d+=c:(d&&(u.push(d),d=""),l=parseFloat(r[a]),u.push(l),u._firstPT={_next:u._firstPT,t:u,p:u.length-1,s:l,c:("="===c.charAt(1)?parseInt(c.charAt(0)+"1",10)*parseFloat(c.substr(2)):parseFloat(c)-l)||0,f:0,m:p&&p<4?Math.round:0}),h+=c.length;return(d+=e.substr(h))&&u.push(d),u.setRatio=tt,z.test(e)&&(u.end=null),u}function nt(t,e,n,i,r,o,a,s,l){"function"==typeof i&&(i=i(l||0,t));var c="function"!==(l=p(t[e]))?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),n="get"!==n?n:c?a?t[c](a):t[c]():t[e],c="string"==typeof i&&"="===i.charAt(1),t={t:t,p:e,s:n,f:"function"===l,pg:0,n:r||e,m:o?"function"==typeof o?o:Math.round:0,pr:0,c:c?parseInt(i.charAt(0)+"1",10)*parseFloat(i.substr(2)):parseFloat(i)-n||0};if("number"==typeof n&&("number"==typeof i||c)||(a||isNaN(n)||!c&&isNaN(i)||"boolean"==typeof n||"boolean"==typeof i?(t.fp=a,t={t:et(n,c?parseFloat(t.s)+t.c+(t.s+"").replace(/[0-9\-\.]/g,""):i,s||A.defaultStringFilter,t),p:"setRatio",s:0,c:1,f:2,pg:0,n:r||e,pr:0,m:0}):(t.s=parseFloat(n),c||(t.c=parseFloat(i)-t.s||0))),t.c)return(t._next=this._firstPT)&&(t._next._prev=t),this._firstPT=t}function it(t,e,n,i){var r,o,a=t.vars.onOverwrite;return a&&(r=a(t,e,n,i)),(a=A.onOverwrite)&&(o=a(t,e,n,i)),!1!==r&&!1!==o}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],388:[function(i,r,t){!function(e){!function(){"use strict";var n=void 0!==r&&r.exports&&void 0!==e?e:window;function t(){return(n.GreenSockGlobals||n).TimelineLite}(n._gsQueue||(n._gsQueue=[])).push(function(){n._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(u,h,d){function p(t){h.call(this,t),this._labels={},this.autoRemoveChildren=!0===this.vars.autoRemoveChildren,this.smoothChildTiming=!0===this.vars.smoothChildTiming,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var e,n,i=this.vars;for(n in i)e=i[n],y(e)&&-1!==e.join("").indexOf("{self}")&&(i[n]=this._swapSelfInParams(e));y(i.tweens)&&this.add(i.tweens,0,i.align,i.stagger)}function f(t){var e,n={};for(e in t)n[e]=t[e];return n}function m(t,e,n){var i,r,o=t.cycle;for(i in o)r=o[i],t[i]="function"==typeof r?r(n,e[n]):r[n%r.length];delete t.cycle}function g(t){for(var e=[],n=t.length,i=0;i!==n;e.push(t[i++]));return e}var t=d._internals,e=p._internals={},v=t.isSelector,y=t.isArray,_=t.lazyTweens,b=t.lazyRender,a=n._gsDefine.globals,r=e.pauseCallback=function(){},t=p.prototype=new h;return p.version="1.20.5",t.constructor=p,t.kill()._gc=t._forcingPlayhead=t._hasPause=!1,t.to=function(t,e,n,i){var r=n.repeat&&a.TweenMax||d;return e?this.add(new r(t,e,n),i):this.set(t,n,i)},t.from=function(t,e,n,i){return this.add((n.repeat&&a.TweenMax||d).from(t,e,n),i)},t.fromTo=function(t,e,n,i,r){var o=i.repeat&&a.TweenMax||d;return e?this.add(o.fromTo(t,e,n,i),r):this.set(t,i,r)},t.staggerTo=function(t,e,n,i,r,o,a,s){var l,c,u=new p({onComplete:o,onCompleteParams:a,callbackScope:s,smoothChildTiming:this.smoothChildTiming}),h=n.cycle;for("string"==typeof t&&(t=d.selector(t)||t),v(t=t||[])&&(t=g(t)),(i=i||0)<0&&((t=g(t)).reverse(),i*=-1),c=0;c<t.length;c++)(l=f(n)).startAt&&(l.startAt=f(l.startAt),l.startAt.cycle)&&m(l.startAt,t,c),h&&(m(l,t,c),null!=l.duration)&&(e=l.duration,delete l.duration),u.to(t[c],e,l,c*i);return this.add(u,r)},t.staggerFrom=function(t,e,n,i,r,o,a,s){return n.immediateRender=0!=n.immediateRender,n.runBackwards=!0,this.staggerTo(t,e,n,i,r,o,a,s)},t.staggerFromTo=function(t,e,n,i,r,o,a,s,l){return i.startAt=n,i.immediateRender=0!=i.immediateRender&&0!=n.immediateRender,this.staggerTo(t,e,i,r,o,a,s,l)},t.call=function(t,e,n,i){return this.add(d.delayedCall(0,t,e,n),i)},t.set=function(t,e,n){return n=this._parseTimeOrLabel(n,0,!0),null==e.immediateRender&&(e.immediateRender=n===this._time&&!this._paused),this.add(new d(t,0,e),n)},p.exportRoot=function(t,e){null==(t=t||{}).smoothChildTiming&&(t.smoothChildTiming=!0);var n,i,r,o,a=new p(t),t=a._timeline;for(null==e&&(e=!0),t._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=t._time,r=t._first;r;)o=r._next,e&&r instanceof d&&r.target===r.vars.onComplete||((i=r._startTime-r._delay)<0&&(n=1),a.add(r,i)),r=o;return t.add(a,0),n&&a.totalDuration(),a},t.add=function(t,e,n,i){var r,o,a,s,l,c;if("number"!=typeof e&&(e=this._parseTimeOrLabel(e,0,!0,t)),!(t instanceof u)){if(t instanceof Array||t&&t.push&&y(t)){for(n=n||"normal",i=i||0,r=e,o=t.length,a=0;a<o;a++)y(s=t[a])&&(s=new p({tweens:s})),this.add(s,r),"string"!=typeof s&&"function"!=typeof s&&("sequence"===n?r=s._startTime+s.totalDuration()/s._timeScale:"start"===n&&(s._startTime-=s.delay())),r+=i;return this._uncache(!0)}if("string"==typeof t)return this.addLabel(t,e);if("function"!=typeof t)throw"Cannot add "+t+" into the timeline; it is not a tween, timeline, function, or string.";t=d.delayedCall(0,t)}if(h.prototype.add.call(this,t,e),t._time&&t.render((this.rawTime()-t._startTime)*t._timeScale,!1,!1),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(c=(l=this).rawTime()>t._startTime;l._timeline;)c&&l._timeline.smoothChildTiming?l.totalTime(l._totalTime,!0):l._gc&&l._enabled(!0,!1),l=l._timeline;return this},t.remove=function(t){var e;if(t instanceof u)return this._remove(t,!1),e=t._timeline=t.vars.useFrames?u._rootFramesTimeline:u._rootTimeline,t._startTime=(t._paused?t._pauseTime:e._time)-(t._reversed?t.totalDuration()-t._totalTime:t._totalTime)/t._timeScale,this;if(t instanceof Array||t&&t.push&&y(t)){for(var n=t.length;-1<--n;)this.remove(t[n]);return this}return"string"==typeof t?this.removeLabel(t):this.kill(null,t)},t._remove=function(t,e){return h.prototype._remove.call(this,t,e),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},t.append=function(t,e){return this.add(t,this._parseTimeOrLabel(null,e,!0,t))},t.insert=t.insertMultiple=function(t,e,n,i){return this.add(t,e||0,n,i)},t.appendMultiple=function(t,e,n,i){return this.add(t,this._parseTimeOrLabel(null,e,!0,t),n,i)},t.addLabel=function(t,e){return this._labels[t]=this._parseTimeOrLabel(e),this},t.addPause=function(t,e,n,i){n=d.delayedCall(0,r,n,i||this);return n.vars.onComplete=n.vars.onReverseComplete=e,n.data="isPause",this._hasPause=!0,this.add(n,t)},t.removeLabel=function(t){return delete this._labels[t],this},t.getLabelTime=function(t){return null!=this._labels[t]?this._labels[t]:-1},t._parseTimeOrLabel=function(t,e,n,i){var r,o;if(i instanceof u&&i.timeline===this)this.remove(i);else if(i&&(i instanceof Array||i.push&&y(i)))for(o=i.length;-1<--o;)i[o]instanceof u&&i[o].timeline===this&&this.remove(i[o]);if(r="number"!=typeof t||e?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof e)return this._parseTimeOrLabel(e,n&&"number"==typeof t&&null==this._labels[e]?t-r:0,n);if(e=e||0,"string"!=typeof t||!isNaN(t)&&null==this._labels[t])null==t&&(t=r);else{if(-1===(o=t.indexOf("=")))return null==this._labels[t]?n?this._labels[t]=r+e:e:this._labels[t]+e;e=parseInt(t.charAt(o-1)+"1",10)*Number(t.substr(o+1)),t=1<o?this._parseTimeOrLabel(t.substr(0,o-1),0,n):r}return Number(t)+e},t.seek=function(t,e){return this.totalTime("number"==typeof t?t:this._parseTimeOrLabel(t),!1!==e)},t.stop=function(){return this.paused(!0)},t.gotoAndPlay=function(t,e){return this.play(t,e)},t.gotoAndStop=function(t,e){return this.pause(t,e)},t.render=function(t,e,n){this._gc&&this._enabled(!0,!1);var i,r,o,a,s,l,c,u=this._time,h=this._dirty?this.totalDuration():this._totalDuration,d=this._startTime,p=this._timeScale,f=this._paused;if(u!==this._time&&(t+=this._time-u),h-1e-7<=t&&0<=t)this._totalTime=this._time=h,this._reversed||this._hasPausedChild()||(r=!0,a="onComplete",s=!!this._timeline.autoRemoveChildren,0===this._duration&&(t<=0&&-1e-7<=t||this._rawPrevTime<0||1e-10===this._rawPrevTime)&&this._rawPrevTime!==t&&this._first&&(s=!0,1e-10<this._rawPrevTime)&&(a="onReverseComplete")),this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-10,t=h+1e-4;else if(t<1e-7)if(((this._totalTime=this._time=0)!==u||0===this._duration&&1e-10!==this._rawPrevTime&&(0<this._rawPrevTime||t<0&&0<=this._rawPrevTime))&&(a="onReverseComplete",r=this._reversed),t<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(s=r=!0,a="onReverseComplete"):0<=this._rawPrevTime&&this._first&&(s=!0),this._rawPrevTime=t;else{if(this._rawPrevTime=this._duration||!e||t||this._rawPrevTime===t?t:1e-10,0===t&&r)for(i=this._first;i&&0===i._startTime;)i._duration||(r=!1),i=i._next;t=0,this._initted||(s=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!e){if(u<=t)for(i=this._first;i&&i._startTime<=t&&!l;)i._duration||"isPause"!==i.data||i.ratio||0===i._startTime&&0===this._rawPrevTime||(l=i),i=i._next;else for(i=this._last;i&&i._startTime>=t&&!l;)i._duration||"isPause"===i.data&&0<i._rawPrevTime&&(l=i),i=i._prev;l&&(this._time=t=l._startTime,this._totalTime=t+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=t}if(this._time!==u&&this._first||n||s||l){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==u&&0<t&&(this._active=!0),0!==u||!this.vars.onStart||0===this._time&&this._duration||e||this._callback("onStart"),u<=(c=this._time))for(i=this._first;i&&(o=i._next,c===this._time)&&(!this._paused||f);)(i._active||i._startTime<=c&&!i._paused&&!i._gc)&&(l===i&&this.pause(),i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(t-i._startTime)*i._timeScale,e,n):i.render((t-i._startTime)*i._timeScale,e,n)),i=o;else for(i=this._last;i&&(o=i._prev,c===this._time)&&(!this._paused||f);){if(i._active||i._startTime<=u&&!i._paused&&!i._gc){if(l===i){for(l=i._prev;l&&l.endTime()>this._time;)l.render(l._reversed?l.totalDuration()-(t-l._startTime)*l._timeScale:(t-l._startTime)*l._timeScale,e,n),l=l._prev;l=null,this.pause()}i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(t-i._startTime)*i._timeScale,e,n):i.render((t-i._startTime)*i._timeScale,e,n)}i=o}!this._onUpdate||e||(_.length&&b(),this._callback("onUpdate")),!a||this._gc||d!==this._startTime&&p===this._timeScale||(0===this._time||h>=this.totalDuration())&&(r&&(_.length&&b(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e)&&this.vars[a]&&this._callback(a)}},t._hasPausedChild=function(){for(var t=this._first;t;){if(t._paused||t instanceof p&&t._hasPausedChild())return!0;t=t._next}return!1},t.getChildren=function(t,e,n,i){i=i||-9999999999;for(var r=[],o=this._first,a=0;o;)o._startTime<i||(o instanceof d?!1!==e&&(r[a++]=o):(!1!==n&&(r[a++]=o),!1!==t&&(a=(r=r.concat(o.getChildren(!0,e,n))).length))),o=o._next;return r},t.getTweensOf=function(t,e){var n,i,r=this._gc,o=[],a=0;for(r&&this._enabled(!0,!0),i=(n=d.getTweensOf(t)).length;-1<--i;)(n[i].timeline===this||e&&this._contains(n[i]))&&(o[a++]=n[i]);return r&&this._enabled(!1,!0),o},t.recent=function(){return this._recent},t._contains=function(t){for(var e=t.timeline;e;){if(e===this)return!0;e=e.timeline}return!1},t.shiftChildren=function(t,e,n){n=n||0;for(var i,r=this._first,o=this._labels;r;)r._startTime>=n&&(r._startTime+=t),r=r._next;if(e)for(i in o)o[i]>=n&&(o[i]+=t);return this._uncache(!0)},t._kill=function(t,e){if(!t&&!e)return this._enabled(!1,!1);for(var n=e?this.getTweensOf(e):this.getChildren(!0,!0,!1),i=n.length,r=!1;-1<--i;)n[i]._kill(t,e)&&(r=!0);return r},t.clear=function(t){var e=this.getChildren(!1,!0,!0),n=e.length;for(this._time=this._totalTime=0;-1<--n;)e[n]._enabled(!1,!1);return!1!==t&&(this._labels={}),this._uncache(!0)},t.invalidate=function(){for(var t=this._first;t;)t.invalidate(),t=t._next;return u.prototype.invalidate.call(this)},t._enabled=function(t,e){if(t===this._gc)for(var n=this._first;n;)n._enabled(t,!0),n=n._next;return h.prototype._enabled.call(this,t,e)},t.totalTime=function(t,e,n){this._forcingPlayhead=!0;var i=u.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,i},t.duration=function(t){return arguments.length?(0!==this.duration()&&0!==t&&this.timeScale(this._duration/t),this):(this._dirty&&this.totalDuration(),this._duration)},t.totalDuration=function(t){if(arguments.length)return t&&this.totalDuration()?this.timeScale(this._totalDuration/t):this;if(this._dirty){for(var e,n,i=0,r=this._last,o=999999999999;r;)e=r._prev,r._dirty&&r.totalDuration(),r._startTime>o&&this._sortChildren&&!r._paused&&!this._calculatingDuration?(this._calculatingDuration=1,this.add(r,r._startTime-r._delay),this._calculatingDuration=0):o=r._startTime,r._startTime<0&&!r._paused&&(i-=r._startTime,this._timeline.smoothChildTiming&&(this._startTime+=r._startTime/this._timeScale,this._time-=r._startTime,this._totalTime-=r._startTime,this._rawPrevTime-=r._startTime),this.shiftChildren(-r._startTime,!1,-9999999999),o=0),i<(n=r._startTime+r._totalDuration/r._timeScale)&&(i=n),r=e;this._duration=this._totalDuration=i,this._dirty=!1}return this._totalDuration},t.paused=function(t){if(!t)for(var e=this._first,n=this._time;e;)e._startTime===n&&"isPause"===e.data&&(e._rawPrevTime=0),e=e._next;return u.prototype.paused.apply(this,arguments)},t.usesFrames=function(){for(var t=this._timeline;t._timeline;)t=t._timeline;return t===u._rootFramesTimeline},t.rawTime=function(t){return t&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(t)-this._startTime)*this._timeScale},p},!0)}),n._gsDefine&&n._gsQueue.pop()(),void 0!==r&&r.exports?(i("./TweenLite.js"),r.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./TweenLite.js":387}],389:[function(t,ot,e){!function(rt){!function(){"use strict";var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m=void 0!==ot&&ot.exports&&void 0!==rt?rt:window,d="TweenLite",f={},g=m.document,v=m.GreenSockGlobals=m.GreenSockGlobals||m;if(v.TweenLite)v.TweenLite;else{var y,e,I,h=Y("com.greensock"),_=1e-10,b=(e=Object.prototype.toString,I=e.call([]),function(t){return null!=t&&(t instanceof Array||"object"===(void 0===t?"undefined":p(t))&&!!t.push&&e.call(t)===I)}),x={},i=m._gsDefine=function(t,e,n,i){return new K(t,e,n,i)},w=h._class=function(t,e,n){return e=e||function(){},i(t,[],function(){return e},n),e},F=(i.globals=v,[0,0,1,1]),T=w("easing.Ease",function(t,e,n,i){this._func=t,this._type=n||0,this._power=i||0,this._params=e?F.concat(e):F},!0),S=T.map={},t=T.register=function(t,e,n,i){for(var r,o,a,s,l=e.split(","),c=l.length,u=(n||"easeIn,easeOut,easeInOut").split(",");-1<--c;)for(o=l[c],r=i?w("easing."+o,null,!0):h.easing[o]||{},a=u.length;-1<--a;)s=u[a],S[o+"."+s]=S[s+o]=r[s]=t.getRatio?t:t[s]||new t},n=T.prototype;for(n._calcEnd=!1,n.getRatio=function(t){var e,n,i;return this._func?(this._params[0]=t,this._func.apply(null,this._params)):(i=1===(e=this._type)?1-t:2===e?t:t<.5?2*t:2*(1-t),1===(n=this._power)?i*=i:2===n?i*=i*i:3===n?i*=i*i*i:4===n&&(i*=i*i*i*i),1===e?1-i:2===e?i:t<.5?i/2:1-i/2)},o=(r=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--o;)n=r[o]+",Power"+o,t(new T(null,null,1,o),n,"easeOut",!0),t(new T(null,null,2,o),n,"easeIn"+(0===o?",easeNone":"")),t(new T(null,null,3,o),n,"easeInOut");S.linear=h.easing.Linear.easeIn,S.swing=h.easing.Quad.easeInOut;for(var r,B=w("events.EventDispatcher",function(t){this._listeners={},this._eventTarget=t||this}),C=((n=B.prototype).addEventListener=function(t,e,n,i,r){r=r||0;var o,a,s=this._listeners[t],l=0;for(this!==k||y||k.wake(),null==s&&(this._listeners[t]=s=[]),a=s.length;-1<--a;)(o=s[a]).c===e&&o.s===n?s.splice(a,1):0===l&&o.pr<r&&(l=a+1);s.splice(l,0,{c:e,s:n,up:i,pr:r})},n.removeEventListener=function(t,e){var n,i=this._listeners[t];if(i)for(n=i.length;-1<--n;)if(i[n].c===e)return void i.splice(n,1)},n.dispatchEvent=function(t){var e,n,i,r=this._listeners[t];if(r)for(1<(e=r.length)&&(r=r.slice(0)),n=this._eventTarget;-1<--e;)(i=r[e])&&(i.up?i.c.call(i.s||n,{type:t,target:n}):i.c.call(i.s||n))},m.requestAnimationFrame),E=m.cancelAnimationFrame,M=Date.now||function(){return(new Date).getTime()},P=M(),o=(r=["ms","moz","webkit","o"]).length;-1<--o&&!C;)C=m[r[o]+"RequestAnimationFrame"],E=m[r[o]+"CancelAnimationFrame"]||m[r[o]+"CancelRequestAnimationFrame"];w("Ticker",function(t,e){function i(t){var e,n=M()-P;h<n&&(u+=n-d),P+=n,c.time=(P-u)/1e3,n=c.time-l,(!r||0<n||!0===t)&&(c.frame++,l+=n+(s<=n?.004:s-n),e=!0),!0!==t&&(a=o(i)),e&&c.dispatchEvent(p)}var r,o,a,s,l,c=this,u=M(),n=!(!1===e||!C)&&"auto",h=500,d=33,p="tick";B.call(c),c.time=c.frame=0,c.tick=function(){i(!0)},c.lagSmoothing=function(t,e){if(!arguments.length)return h<1e10;h=t||1e10,d=Math.min(e,h,0)},c.sleep=function(){null!=a&&((n&&E?E:clearTimeout)(a),o=J,a=null,c===k)&&(y=!1)},c.wake=function(t){null!==a?c.sleep():t?u+=-P+(P=M()):10<c.frame&&(P=M()-h+5),o=0===r?J:n&&C?C:function(t){return setTimeout(t,1e3*(l-c.time)+1|0)},c===k&&(y=!0),i(2)},c.fps=function(t){if(!arguments.length)return r;s=1/((r=t)||60),l=this.time+s,c.wake()},c.useRAF=function(t){if(!arguments.length)return n;c.sleep(),n=t,c.fps(r)},c.fps(t),setTimeout(function(){"auto"===n&&c.frame<5&&"hidden"!==(g||{}).visibilityState&&c.useRAF(!1)},1500)}),(n=h.Ticker.prototype=new h.events.EventDispatcher).constructor=h.Ticker;var s=w("core.Animation",function(t,e){this.vars=e=e||{},this._duration=this._totalDuration=t||0,this._delay=Number(e.delay)||0,this._timeScale=1,this._active=!0===e.immediateRender,this.data=e.data,this._reversed=!0===e.reversed,u&&(y||k.wake(),(t=this.vars.useFrames?c:u).add(this,t._time),this.vars.paused)&&this.paused(!0)}),k=s.ticker=new h.Ticker,a=((n=s.prototype)._dirty=n._gc=n._initted=n._paused=!1,n._totalTime=n._time=0,n._rawPrevTime=-1,n._next=n._last=n._onUpdate=n._timeline=n.timeline=null,n._paused=!1,function t(){y&&2e3<M()-P&&("hidden"!==(g||{}).visibilityState||!k.lagSmoothing())&&k.wake();var e=setTimeout(t,2e3);e.unref&&e.unref()}(),n.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},n.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},n.resume=function(t,e){return null!=t&&this.seek(t,e),this.paused(!1)},n.seek=function(t,e){return this.totalTime(Number(t),!1!==e)},n.restart=function(t,e){return this.reversed(!1).paused(!1).totalTime(t?-this._delay:0,!1!==e,!0)},n.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},n.render=function(t,e,n){},n.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},n.isActive=function(){var t=this._timeline,e=this._startTime;return!t||!this._gc&&!this._paused&&t.isActive()&&(t=t.rawTime(!0))>=e&&t<e+this.totalDuration()/this._timeScale-1e-7},n._enabled=function(t,e){return y||k.wake(),this._gc=!t,this._active=this.isActive(),!0!==e&&(t&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!t&&this.timeline&&this._timeline._remove(this,!0)),!1},n._kill=function(t,e){return this._enabled(!1,!1)},n.kill=function(t,e){return this._kill(t,e),this},n._uncache=function(t){for(var e=t?this:this.timeline;e;)e._dirty=!0,e=e.timeline;return this},n._swapSelfInParams=function(t){for(var e=t.length,n=t.concat();-1<--e;)"{self}"===t[e]&&(n[e]=this);return n},n._callback=function(t){var e=this.vars,n=e[t],i=e[t+"Params"],r=e[t+"Scope"]||e.callbackScope||this;switch(i?i.length:0){case 0:n.call(r);break;case 1:n.call(r,i[0]);break;case 2:n.call(r,i[0],i[1]);break;default:n.apply(r,i)}},n.eventCallback=function(t,e,n,i){if("on"===(t||"").substr(0,2)){var r=this.vars;if(1===arguments.length)return r[t];null==e?delete r[t]:(r[t]=e,r[t+"Params"]=b(n)&&-1!==n.join("").indexOf("{self}")?this._swapSelfInParams(n):n,r[t+"Scope"]=i),"onUpdate"===t&&(this._onUpdate=e)}return this},n.delay=function(t){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+t-this._delay),this._delay=t,this):this._delay},n.duration=function(t){return arguments.length?(this._duration=this._totalDuration=t,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==t&&this.totalTime(this._totalTime*(t/this._duration),!0),this):(this._dirty=!1,this._duration)},n.totalDuration=function(t){return this._dirty=!1,arguments.length?this.duration(t):this._totalDuration},n.time=function(t,e){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(t>this._duration?this._duration:t,e)):this._time},n.totalTime=function(t,e,n){if(y||k.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(t<0&&!n&&(t+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var i=this._totalDuration,r=this._timeline;if(i<t&&!n&&(t=i),this._startTime=(this._paused?this._pauseTime:r._time)-(this._reversed?i-t:t)/this._timeScale,r._dirty||this._uncache(!1),r._timeline)for(;r._timeline;)r._timeline._time!==(r._startTime+r._totalTime)/r._timeScale&&r.totalTime(r._totalTime,!0),r=r._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===t&&0!==this._duration||(O.length&&L(),this.render(t,e,!1),O.length&&L())}return this},n.progress=n.totalProgress=function(t,e){var n=this.duration();return arguments.length?this.totalTime(n*t,e):n?this._time/n:this.ratio},n.startTime=function(t){return arguments.length?(t!==this._startTime&&(this._startTime=t,this.timeline)&&this.timeline._sortChildren&&this.timeline.add(this,t-this._delay),this):this._startTime},n.endTime=function(t){return this._startTime+(0!=t?this.totalDuration():this.duration())/this._timeScale},n.timeScale=function(t){if(!arguments.length)return this._timeScale;var e,n;for(t=t||_,this._timeline&&this._timeline.smoothChildTiming&&(n=(e=this._pauseTime)||0===e?e:this._timeline.totalTime(),this._startTime=n-(n-this._startTime)*this._timeScale/t),this._timeScale=t,n=this.timeline;n&&n.timeline;)n._dirty=!0,n.totalDuration(),n=n.timeline;return this},n.reversed=function(t){return arguments.length?(t!=this._reversed&&(this._reversed=t,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},n.paused=function(t){var e,n,i;return arguments.length?(e=this._timeline,t!=this._paused&&e&&(y||t||k.wake(),i=(n=e.rawTime())-this._pauseTime,!t&&e.smoothChildTiming&&(this._startTime+=i,this._uncache(!1)),this._pauseTime=t?n:null,this._paused=t,this._active=this.isActive(),!t)&&0!=i&&this._initted&&this.duration()&&(n=e.smoothChildTiming?this._totalTime:(n-this._startTime)/this._timeScale,this.render(n,n===this._totalTime,!0)),this._gc&&!t&&this._enabled(!0,!1),this):this._paused},w("core.SimpleTimeline",function(t){s.call(this,0,t),this.autoRemoveChildren=this.smoothChildTiming=!0})),A=((n=a.prototype=new s).constructor=a,n.kill()._gc=!1,n._first=n._last=n._recent=null,n._sortChildren=!1,n.add=n.insert=function(t,e,n,i){var r,o;if(t._startTime=Number(e||0)+t._delay,t._paused&&this!==t._timeline&&(t._pauseTime=this.rawTime()-(t._timeline.rawTime()-t._pauseTime)),t.timeline&&t.timeline._remove(t,!0),t.timeline=t._timeline=this,t._gc&&t._enabled(!0,!0),r=this._last,this._sortChildren)for(o=t._startTime;r&&r._startTime>o;)r=r._prev;return r?(t._next=r._next,r._next=t):(t._next=this._first,this._first=t),t._next?t._next._prev=t:this._last=t,t._prev=r,this._recent=t,this._timeline&&this._uncache(!0),this},n._remove=function(t,e){return t.timeline===this&&(e||t._enabled(!1,!0),t._prev?t._prev._next=t._next:this._first===t&&(this._first=t._next),t._next?t._next._prev=t._prev:this._last===t&&(this._last=t._prev),t._next=t._prev=t.timeline=null,t===this._recent&&(this._recent=this._last),this._timeline)&&this._uncache(!0),this},n.render=function(t,e,n){var i,r=this._first;for(this._totalTime=this._time=this._rawPrevTime=t;r;)i=r._next,(r._active||t>=r._startTime&&!r._paused&&!r._gc)&&(r._reversed?r.render((r._dirty?r.totalDuration():r._totalDuration)-(t-r._startTime)*r._timeScale,e,n):r.render((t-r._startTime)*r._timeScale,e,n)),r=i},n.rawTime=function(){return y||k.wake(),this._totalTime},w("TweenLite",function(t,e,n){if(s.call(this,e,n),this.render=A.prototype.render,null==t)throw"Cannot tween a null target.";this.target=t="string"==typeof t&&A.selector(t)||t;var i,r,o,n=t.jquery||t.length&&t!==m&&t[0]&&(t[0]===m||t[0].nodeType&&t[0].style&&!t.nodeType),a=this.vars.overwrite;if(this._overwrite=a=null==a?W[A.defaultOverwrite]:"number"==typeof a?a>>0:W[a],(n||t instanceof Array||t.push&&b(t))&&"number"!=typeof t[0])for(this._targets=o=Z(t),this._propLookup=[],this._siblings=[],i=0;i<o.length;i++)(r=o[i])?"string"==typeof r?"string"==typeof(r=o[i--]=A.selector(r))&&o.splice(i+1,1):r.length&&r!==m&&r[0]&&(r[0]===m||r[0].nodeType&&r[0].style&&!r.nodeType)?(o.splice(i--,1),this._targets=o=o.concat(Z(r))):(this._siblings[i]=D(r,this,!1),1===a&&1<this._siblings[i].length&&q(r,this,null,1,this._siblings[i])):o.splice(i--,1);else this._propLookup={},this._siblings=D(t,this,!1),1===a&&1<this._siblings.length&&q(t,this,null,1,this._siblings);(this.vars.immediateRender||0===e&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-_,this.render(Math.min(0,-this._delay)))},!0)),O=((n=A.prototype=new s).constructor=A,n.kill()._gc=!1,n.ratio=0,n._firstPT=n._targets=n._overwrittenProps=n._startAt=null,n._notifyPluginsOfEnabled=n._lazy=!1,A.version="1.20.5",A.defaultEase=n._ease=new T(null,null,1,1),A.defaultOverwrite="auto",A.ticker=k,A.autoSleep=120,A.lagSmoothing=function(t,e){k.lagSmoothing(t,e)},A.selector=m.$||m.jQuery||function(t){var e=m.$||m.jQuery;return e?(A.selector=e)(t):(g=g||m.document)?g.querySelectorAll?g.querySelectorAll(t):g.getElementById("#"===t.charAt(0)?t.substr(1):t):t},[]),N={},U=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,z=/[\+-]=-?[\.\d]/,V=A._internals={isArray:b,isSelector:Q,lazyTweens:O,blobDif:et},R=A._plugins={},l=V.tweenLookup={},G=0,H=V.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1},W={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},c=s._rootFramesTimeline=new a,u=s._rootTimeline=new a,$=30,L=V.lazyRender=function(){var t,e=O.length;for(N={};-1<--e;)(t=O[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);O.length=0},D=(u._startTime=k.time,c._startTime=k.frame,u._active=c._active=!0,setTimeout(L,1),s._updateRoot=A.render=function(){var t,e,n;if(O.length&&L(),u.render((k.time-u._startTime)*u._timeScale,!1,!1),c.render((k.frame-c._startTime)*c._timeScale,!1,!1),O.length&&L(),k.frame>=$){for(n in $=k.frame+(parseInt(A.autoSleep,10)||120),l){for(t=(e=l[n].tweens).length;-1<--t;)e[t]._gc&&e.splice(t,1);0===e.length&&delete l[n]}if((!(n=u._first)||n._paused)&&A.autoSleep&&!c._first&&1===k._listeners.tick.length){for(;n&&n._paused;)n=n._next;n||k.sleep()}}},k.addEventListener("tick",s._updateRoot),function(t,e,n){var i,r,o=t._gsTweenID;if(l[o||(t._gsTweenID=o="t"+G++)]||(l[o]={target:t,tweens:[]}),e&&((i=l[o].tweens)[r=i.length]=e,n))for(;-1<--r;)i[r]===e&&i.splice(r,1);return l[o].tweens}),q=function(t,e,n,i,r){var o,a,s;if(1===i||4<=i){for(s=r.length,p=0;p<s;p++)if((a=r[p])!==e)a._gc||a._kill(null,t,e)&&(o=!0);else if(5===i)break}else{for(var l,c=e._startTime+_,u=[],h=0,d=0===e._duration,p=r.length;-1<--p;)(a=r[p])===e||a._gc||a._paused||(a._timeline!==e._timeline?(l=l||X(e,0,d),0===X(a,l,d)&&(u[h++]=a)):a._startTime<=c&&a._startTime+a.totalDuration()/a._timeScale>c&&((d||!a._initted)&&c-a._startTime<=2e-10||(u[h++]=a)));for(p=h;-1<--p;)a=u[p],2===i&&a._kill(n,t,e)&&(o=!0),(2!==i||!a._firstPT&&a._initted)&&(2===i||it(a,e))&&a._enabled(!1,!1)&&(o=!0)}return o},X=function(t,e,n){for(var i=t._timeline,r=i._timeScale,o=t._startTime;i._timeline;){if(o+=i._startTime,r*=i._timeScale,i._paused)return-100;i=i._timeline}return e<(o/=r)?o-e:n&&o===e||!t._initted&&o-e<2e-10?_:(o+=t.totalDuration()/t._timeScale/r)>e+_?0:o-e-_},j=(n._init=function(){var t,e,n,i,r,o,a=this.vars,s=this._overwrittenProps,l=this._duration,c=!!a.immediateRender,u=a.ease;if(a.startAt){for(i in this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),r={},a.startAt)r[i]=a.startAt[i];if(r.data="isStart",r.overwrite=!1,r.immediateRender=!0,r.lazy=c&&!1!==a.lazy,r.startAt=r.delay=null,r.onUpdate=a.onUpdate,r.onUpdateParams=a.onUpdateParams,r.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=A.to(this.target||{},0,r),c)if(0<this._time)this._startAt=null;else if(0!==l)return}else if(a.runBackwards&&0!==l)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{for(i in 0!==this._time&&(c=!1),n={},a)H[i]&&"autoCSS"!==i||(n[i]=a[i]);if(n.overwrite=0,n.data="isFromStart",n.lazy=c&&!1!==a.lazy,n.immediateRender=c,this._startAt=A.to(this.target,0,n),c){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=u=u?u instanceof T?u:"function"==typeof u?new T(u,a.easeParams):S[u]||A.defaultEase:A.defaultEase,a.easeParams instanceof Array&&u.config&&(this._ease=u.config.apply(u,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,t=0;t<o;t++)this._initProps(this._targets[t],this._propLookup[t]={},this._siblings[t],s?s[t]:null,t)&&(e=!0);else e=this._initProps(this.target,this._propLookup,this._siblings,s,0);if(e&&A._onPluginEvent("_onInitAllProps",this),!s||this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1),a.runBackwards)for(n=this._firstPT;n;)n.s+=n.c,n.c=-n.c,n=n._next;this._onUpdate=a.onUpdate,this._initted=!0},n._initProps=function(t,e,n,i,r){var o,a,s,l,c,u;if(null==t)return!1;if(N[t._gsTweenID]&&L(),!this.vars.css&&t.style&&t!==m&&t.nodeType&&R.css&&!1!==this.vars.autoCSS){var h,d=this.vars,p=t,f={};for(h in d)H[h]||h in p&&"transform"!==h&&"x"!==h&&"y"!==h&&"width"!==h&&"height"!==h&&"className"!==h&&"border"!==h||!(!R[h]||R[h]&&R[h]._autoCSS)||(f[h]=d[h],delete d[h]);d.css=f}for(o in this.vars)if(u=this.vars[o],H[o])u&&(u instanceof Array||u.push&&b(u))&&-1!==u.join("").indexOf("{self}")&&(this.vars[o]=u=this._swapSelfInParams(u,this));else if(R[o]&&(l=new R[o])._onInitTween(t,this.vars[o],this,r)){for(this._firstPT=c={_next:this._firstPT,t:l,p:"setRatio",s:0,c:1,f:1,n:o,pg:1,pr:l._priority,m:0},a=l._overwriteProps.length;-1<--a;)e[l._overwriteProps[a]]=this._firstPT;(l._priority||l._onInitAllProps)&&(s=!0),(l._onDisable||l._onEnable)&&(this._notifyPluginsOfEnabled=!0),c._next&&(c._next._prev=c)}else e[o]=nt.call(this,t,o,"get",u,o,0,null,this.vars.stringFilter,r);return i&&this._kill(i,t)?this._initProps(t,e,n,i,r):1<this._overwrite&&this._firstPT&&1<n.length&&q(t,this,e,this._overwrite,n)?(this._kill(e,t),this._initProps(t,e,n,i,r)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(N[t._gsTweenID]=!0),s)},n.render=function(t,e,n){var i,r,o,a,s,l,c,u=this._time,h=this._duration,d=this._rawPrevTime;if(h-1e-7<=t&&0<=t?(this._totalTime=this._time=h,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(i=!0,r="onComplete",n=n||this._timeline.autoRemoveChildren),0!==h||!this._initted&&this.vars.lazy&&!n||(this._startTime===this._timeline._duration&&(t=0),(d<0||t<=0&&-1e-7<=t||d===_&&"isPause"!==this.data)&&d!==t&&(n=!0,_<d)&&(r="onReverseComplete"),this._rawPrevTime=a=!e||t||d===t?t:_)):t<1e-7?(this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==u||0===h&&0<d)&&(r="onReverseComplete",i=this._reversed),t<0&&(this._active=!1,0!==h||!this._initted&&this.vars.lazy&&!n||(0<=d&&(d!==_||"isPause"!==this.data)&&(n=!0),this._rawPrevTime=a=!e||t||d===t?t:_)),(!this._initted||this._startAt&&this._startAt.progress())&&(n=!0)):(this._totalTime=this._time=t,this._easeType?(s=t/h,(1===(l=this._easeType)||3===l&&.5<=s)&&(s=1-s),3===l&&(s*=2),1===(c=this._easePower)?s*=s:2===c?s*=s*s:3===c?s*=s*s*s:4===c&&(s*=s*s*s*s),this.ratio=1===l?1-s:2===l?s:t/h<.5?s/2:1-s/2):this.ratio=this._ease.getRatio(t/h)),this._time!==u||n){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!n&&this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=u,this._rawPrevTime=d,O.push(this),void(this._lazy=[t,e]);this._time&&!i?this.ratio=this._ease.getRatio(this._time/h):i&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(!1!==this._lazy&&(this._lazy=!1),this._active||!this._paused&&this._time!==u&&0<=t&&(this._active=!0),0===u&&(this._startAt&&(0<=t?this._startAt.render(t,!0,n):r=r||"_dummyGS"),!this.vars.onStart||0===this._time&&0!==h||e||this._callback("onStart")),o=this._firstPT;o;)o.f?o.t[o.p](o.c*this.ratio+o.s):o.t[o.p]=o.c*this.ratio+o.s,o=o._next;this._onUpdate&&(t<0&&this._startAt&&-1e-4!==t&&this._startAt.render(t,!0,n),e||(this._time!==u||i||n)&&this._callback("onUpdate")),!r||this._gc&&!n||(t<0&&this._startAt&&!this._onUpdate&&-1e-4!==t&&this._startAt.render(t,!0,n),i&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!e&&this.vars[r]&&this._callback(r),0===h&&this._rawPrevTime===_&&a!==_&&(this._rawPrevTime=0))}},n._kill=function(t,e,n){if(null==(t="all"===t?null:t)&&(null==e||e===this.target))return this._lazy=!1,this._enabled(!1,!1);e="string"!=typeof e?e||this._targets||this.target:A.selector(e)||e;var i,r,o,a,s,l,c,u,h,d=n&&this._time&&n._startTime===this._startTime&&this._timeline===n._timeline;if((b(e)||Q(e))&&"number"!=typeof e[0])for(i=e.length;-1<--i;)this._kill(t,e[i],n)&&(l=!0);else{if(this._targets){for(i=this._targets.length;-1<--i;)if(e===this._targets[i]){s=this._propLookup[i]||{},this._overwrittenProps=this._overwrittenProps||[],r=this._overwrittenProps[i]=t?this._overwrittenProps[i]||{}:"all";break}}else{if(e!==this.target)return!1;s=this._propLookup,r=this._overwrittenProps=t?this._overwrittenProps||{}:"all"}if(s){if(c=t||s,u=t!==r&&"all"!==r&&t!==s&&("object"!==(void 0===t?"undefined":p(t))||!t._tempKill),n&&(A.onOverwrite||this.vars.onOverwrite)){for(o in c)s[o]&&(h=h||[]).push(o);if((h||!t)&&!it(this,n,e,h))return!1}for(o in c)(a=s[o])&&(d&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,l=!0),a.pg&&a.t._kill(c)&&(l=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete s[o]),u&&(r[o]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return l},n.invalidate=function(){return this._notifyPluginsOfEnabled&&A._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],s.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-_,this.render(Math.min(0,-this._delay))),this},n._enabled=function(t,e){if(y||k.wake(),t&&this._gc){var n,i=this._targets;if(i)for(n=i.length;-1<--n;)this._siblings[n]=D(i[n],this,!0);else this._siblings=D(this.target,this,!0)}return s.prototype._enabled.call(this,t,e),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&A._onPluginEvent(t?"_onEnable":"_onDisable",this)},A.to=function(t,e,n){return new A(t,e,n)},A.from=function(t,e,n){return n.runBackwards=!0,n.immediateRender=0!=n.immediateRender,new A(t,e,n)},A.fromTo=function(t,e,n,i){return i.startAt=n,i.immediateRender=0!=i.immediateRender&&0!=n.immediateRender,new A(t,e,i)},A.delayedCall=function(t,e,n,i,r){return new A(e,0,{delay:t,onComplete:e,onCompleteParams:n,callbackScope:i,onReverseComplete:e,onReverseCompleteParams:n,immediateRender:!1,lazy:!1,useFrames:r,overwrite:0})},A.set=function(t,e){return new A(t,0,e)},A.getTweensOf=function(t,e){if(null==t)return[];var n,i,r,o;if(t="string"==typeof t&&A.selector(t)||t,(b(t)||Q(t))&&"number"!=typeof t[0]){for(n=t.length,i=[];-1<--n;)i=i.concat(A.getTweensOf(t[n],e));for(n=i.length;-1<--n;)for(o=i[n],r=n;-1<--r;)o===i[r]&&i.splice(n,1)}else if(t._gsTweenID)for(n=(i=D(t).concat()).length;-1<--n;)(i[n]._gc||e&&!i[n].isActive())&&i.splice(n,1);return i||[]},A.killTweensOf=A.killDelayedCallsTo=function(t,e,n){"object"===(void 0===e?"undefined":p(e))&&(n=e,e=!1);for(var i=A.getTweensOf(t,e),r=i.length;-1<--r;)i[r]._kill(n,t)},w("plugins.TweenPlugin",function(t,e){this._overwriteProps=(t||"").split(","),this._propName=this._overwriteProps[0],this._priority=e||0,this._super=j.prototype},!0));if(n=j.prototype,j.version="1.19.0",j.API=2,n._firstPT=null,n._addTween=nt,n.setRatio=tt,n._kill=function(t){var e,n=this._overwriteProps,i=this._firstPT;if(null!=t[this._propName])this._overwriteProps=[];else for(e=n.length;-1<--e;)null!=t[n[e]]&&n.splice(e,1);for(;i;)null!=t[i.n]&&(i._next&&(i._next._prev=i._prev),i._prev?(i._prev._next=i._next,i._prev=null):this._firstPT===i&&(this._firstPT=i._next)),i=i._next;return!1},n._mod=n._roundProps=function(t){for(var e,n=this._firstPT;n;)(e=t[this._propName]||null!=n.n&&t[n.n.split(this._propName+"_").join("")])&&"function"==typeof e&&(2===n.f?n.t._applyPT.m=e:n.m=e),n=n._next},A._onPluginEvent=function(t,e){var n,i,r,o,a,s=e._firstPT;if("_onInitAllProps"===t){for(;s;){for(a=s._next,i=r;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:o)?s._prev._next=s:r=s,(s._next=i)?i._prev=s:o=s,s=a}s=e._firstPT=r}for(;s;)s.pg&&"function"==typeof s.t[t]&&s.t[t]()&&(n=!0),s=s._next;return n},j.activate=function(t){for(var e=t.length;-1<--e;)t[e].API===j.API&&(R[(new t[e])._propName]=t[e]);return!0},i.plugin=function(t){if(!(t&&t.propName&&t.init&&t.API))throw"illegal plugin definition.";var e,n=t.propName,i=t.priority||0,r=t.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=w("plugins."+n.charAt(0).toUpperCase()+n.substr(1)+"Plugin",function(){j.call(this,n,i),this._overwriteProps=r||[]},!0===t.global),s=a.prototype=new j(n);for(e in(s.constructor=a).API=t.API,o)"function"==typeof t[e]&&(s[o[e]]=t[e]);return a.version=t.version,j.activate([a]),a},r=m._gsQueue){for(o=0;o<r.length;o++)r[o]();for(n in x)x[n].func||m.console.log("GSAP encountered missing dependency: "+n)}y=!1}function Y(t){for(var e=t.split("."),n=v,i=0;i<e.length;i++)n[e[i]]=n=n[e[i]]||{};return n}function Z(t){for(var e=[],n=t.length,i=0;i!==n;e.push(t[i++]));return e}function J(){}function K(s,l,c,u){this.sc=x[s]?x[s].sc:[],(x[s]=this).gsClass=null,this.func=c;var h=[];this.check=function(t){for(var e,n,i,r,o=l.length,a=o;-1<--o;)(e=x[l[o]]||new K(l[o],[])).gsClass?(h[o]=e.gsClass,a--):t&&e.sc.push(this);if(0===a&&c){if(i=(n=("com.greensock."+s).split(".")).pop(),r=Y(n.join("."))[i]=this.gsClass=c.apply(c,h),u)if(v[i]=f[i]=r,void 0!==ot&&ot.exports)if(s===d)for(o in ot.exports=f[d]=r,f)r[o]=f[o];else f[d]&&(f[d][i]=r);else"function"==typeof define&&define.amd&&define((m.GreenSockAMDPath?m.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],function(){return r});for(o=0;o<this.sc.length;o++)this.sc[o].check()}},this.check(!0)}function Q(t){return t&&t.length&&t!==m&&t[0]&&(t[0]===m||t[0].nodeType&&t[0].style&&!t.nodeType)}function tt(t){for(var e,n=this._firstPT;n;)e=n.blob?1===t&&null!=this.end?this.end:t?this.join(""):this.start:n.c*t+n.s,n.m?e=n.m.call(this._tween,e,this._target||n.t,this._tween):e<1e-6&&-1e-6<e&&!n.blob&&(e=0),n.f?n.fp?n.t[n.p](n.fp,e):n.t[n.p](e):n.t[n.p]=e,n=n._next}function et(t,e,n,i){var r,o,a,s,l,c,u=[],h=0,d="",p=0;for(u.start=t,u.end=e,t=u[0]=t+"",e=u[1]=e+"",n&&(n(u),t=u[0],e=u[1]),u.length=0,r=t.match(U)||[],o=e.match(U)||[],i&&(i._next=null,i.blob=1,u._firstPT=u._applyPT=i),s=o.length,a=0;a<s;a++)c=o[a],d+=(l=e.substr(h,e.indexOf(c,h)-h))||!a?l:",",h+=l.length,p?p=(p+1)%5:"rgba("===l.substr(-5)&&(p=1),c===r[a]||r.length<=a?d+=c:(d&&(u.push(d),d=""),l=parseFloat(r[a]),u.push(l),u._firstPT={_next:u._firstPT,t:u,p:u.length-1,s:l,c:("="===c.charAt(1)?parseInt(c.charAt(0)+"1",10)*parseFloat(c.substr(2)):parseFloat(c)-l)||0,f:0,m:p&&p<4?Math.round:0}),h+=c.length;return(d+=e.substr(h))&&u.push(d),u.setRatio=tt,z.test(e)&&(u.end=null),u}function nt(t,e,n,i,r,o,a,s,l){"function"==typeof i&&(i=i(l||0,t));var c="function"!==(l=p(t[e]))?"":e.indexOf("set")||"function"!=typeof t["get"+e.substr(3)]?e:"get"+e.substr(3),n="get"!==n?n:c?a?t[c](a):t[c]():t[e],c="string"==typeof i&&"="===i.charAt(1),t={t:t,p:e,s:n,f:"function"===l,pg:0,n:r||e,m:o?"function"==typeof o?o:Math.round:0,pr:0,c:c?parseInt(i.charAt(0)+"1",10)*parseFloat(i.substr(2)):parseFloat(i)-n||0};if("number"==typeof n&&("number"==typeof i||c)||(a||isNaN(n)||!c&&isNaN(i)||"boolean"==typeof n||"boolean"==typeof i?(t.fp=a,t={t:et(n,c?parseFloat(t.s)+t.c+(t.s+"").replace(/[0-9\-\.]/g,""):i,s||A.defaultStringFilter,t),p:"setRatio",s:0,c:1,f:2,pg:0,n:r||e,pr:0,m:0}):(t.s=parseFloat(n),c||(t.c=parseFloat(i)-t.s||0))),t.c)return(t._next=this._firstPT)&&(t._next._prev=t),this._firstPT=t}function it(t,e,n,i){var r,o,a=t.vars.onOverwrite;return a&&(r=a(t,e,n,i)),(a=A.onOverwrite)&&(o=a(t,e,n,i)),!1!==r&&!1!==o}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],390:[function(t,n,e){!function(t){!function(){"use strict";var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e=void 0!==n&&n.exports&&void 0!==t?t:window;(e._gsQueue||(e._gsQueue=[])).push(function(){var t=e._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(t,e,n){return this._tween=n,!0}}),t=t.prototype;t._onInitAllProps=function(){var t,e,n,i,r=this._tween,o=r.vars.roundProps,a={},s=r._propLookup.roundProps;if("object"!==(void 0===o?"undefined":u(o))||o.push)for(n=(o="string"==typeof o?o.split(","):o).length;-1<--n;)a[o[n]]=Math.round;else for(i in o)a[i]=function(e){var n=e<1?Math.pow(10,(e+"").length-2):1;return function(t){return(Math.round(t/e)*e*n|0)/n}}(o[i]);for(i in a)for(t=r._firstPT;t;){if(e=t._next,t.pg)t.t._mod(a);else if(t.n===i)if(2===t.f&&t.t)for(var l=t.t._firstPT,c=a[i];l;)l.f||l.blob||(l.m=c||Math.round),l=l._next;else this._add(t.t,i,t.s,t.c,a[i]),e&&(e._prev=t._prev),t._prev?t._prev._next=e:r._firstPT===t&&(r._firstPT=e),t._next=t._prev=null,r._propLookup[i]=s;t=e}return!1},t._add=function(t,e,n,i,r){this._addTween(t,e,n,n+i,e,r||Math.round),this._overwriteProps.push(e)}}),e._gsDefine&&e._gsQueue.pop()()}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],391:[function(n,i,t){!function(e){!function(){"use strict";var ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$=void 0!==i&&i.exports&&void 0!==e?e:window;function t(){return($.GreenSockGlobals||$).Draggable}($._gsQueue||($._gsQueue=[])).push(function(){$._gsDefine("utils.Draggable",["events.EventDispatcher","TweenLite","plugins.CSSPlugin"],function(Gt,bt,Ht){function s(t){return Ct.createElementNS?Ct.createElementNS("http://www.w3.org/1999/xhtml",t):Ct.createElement(t)}function Wt(t){for(var e=Ot.length;-1<--e;)Ot[e]===t&&Ot.splice(e,1);bt.to(M,0,{overwrite:"all",delay:15,onComplete:M,data:"_draggable"})}function y(){return null!=window.pageYOffset?window.pageYOffset:null!=Ct.scrollTop?Ct.scrollTop:Et.scrollTop||Ct.body.scrollTop||0}function _(){return null!=window.pageXOffset?window.pageXOffset:null!=Ct.scrollLeft?Ct.scrollLeft:Et.scrollLeft||Ct.body.scrollLeft||0}function $t(t,e){Ut(t,"scroll",e),jt(t.parentNode)||$t(t.parentNode,e)}function qt(t,e){zt(t,"scroll",e),jt(t.parentNode)||qt(t.parentNode,e)}function xt(t){var e=jt(t),n=P(t,"x"),i=P(t,"y");e?t=Dt:xt(t.parentNode),t._gsMaxScrollX=n,t._gsMaxScrollY=i,t._gsScrollX=t.scrollLeft||0,t._gsScrollY=t.scrollTop||0}function Xt(t,e){return t=t||window.event,o.pageX=t.clientX+Ct.body.scrollLeft+Et.scrollLeft,o.pageY=t.clientY+Ct.body.scrollTop+Et.scrollTop,e&&(t.returnValue=!1),o}function h(t,e,n,i,r){var o,a,s,l,c;return"px"!==i&&i?"auto"!==i&&n?(o=A.test(e),a=t,s=u.style,(l=n<0)&&(n=-n),"%"===i&&-1!==e.indexOf("border")?c=n/100*(o?t.clientWidth:t.clientHeight):(s.cssText="border:0 solid red;position:"+Bt(t,"position",!0)+";line-height:0;","%"!==i&&a.appendChild?s[o?"borderLeftWidth":"borderTopWidth"]=n+i:(a=t.parentNode||Ct.body,s[o?"width":"height"]=n+i),a.appendChild(u),c=parseFloat(u[o?"offsetWidth":"offsetHeight"]),a.removeChild(u),0!==c||r||(c=h(t,e,n,i,!0))),l?-c:c):0:n}function wt(t,e,n){var i=t.vars,r=i[n],o=t._listeners[e];"function"==typeof r&&r.apply(i[n+"Scope"]||i.callbackScope||t,i[n+"Params"]||[t.pointerEvent]),o&&t.dispatchEvent(e)}function Yt(t,e){var n=It(t);return n?G(n,e):void 0!==t.left?(n=Nt(e),{left:t.left-n.x,top:t.top-n.y,width:t.width,height:t.height}):{left:e=t.min||t.minX||t.minRotation||0,top:n=t.min||t.minY||0,width:(t.max||t.maxX||t.maxRotation||0)-e,height:(t.max||t.maxY||0)-n}}function T(){var t,e,n,i,r,o,a;Ct.createElementNS?(t=s("div"),e=Ct.createElementNS("http://www.w3.org/2000/svg","svg"),o=s("div"),n=t.style,i=Ct.body||Et,r="flex"===Bt(i,"display",!0),Ct.body&&w&&(n.position="absolute",i.appendChild(o),o.appendChild(t),a=t.offsetParent,o.style[w]="rotate(1deg)",E=t.offsetParent===a,o.style.position="absolute",n.height="10px",a=t.offsetTop,o.style.border="5px solid red",C=a!==t.offsetTop,i.removeChild(o)),n=e.style,e.setAttributeNS(null,"width","400px"),e.setAttributeNS(null,"height","400px"),e.setAttributeNS(null,"viewBox","0 0 400 400"),n.display="block",n.boxSizing="border-box",n.border="0px solid red",n.transform="none",t.style.cssText="width:100px;height:100px;overflow:scroll;-ms-overflow-style:none;",i.appendChild(t),t.appendChild(e),o=(a=e.createSVGPoint().matrixTransform(e.getScreenCTM())).y,t.scrollTop=100,a.x=a.y=0,a=a.matrixTransform(e.getScreenCTM()),m=o-a.y<100.1?0:o-a.y-150,t.removeChild(e),i.removeChild(t),i.appendChild(e),r&&(i.style.display="block"),o=e.getScreenCTM().e,n.border="50px solid red",a=e.getScreenCTM(),f=0===o&&0===a.e&&0===a.f&&1===a.a?(x=1,!0):(x=o!==a.e?1:0,1!==a.a),r&&(i.style.display="flex"),i.removeChild(e)):(x=0,f=!1)}function b(t){if(!t.getBoundingClientRect||!t.parentNode||!w)return{offsetTop:0,offsetLeft:0,scaleX:1,scaleY:1,offsetParent:Et};if(!1!==p.cacheSVGData&&t._dCache&&t._dCache.lastUpdate===bt.ticker.frame)return t._dCache;var e,n,i,r,o,a,s,l,c,u,h=t,d=S(t);if(d.lastUpdate=bt.ticker.frame,t.getBBox&&!d.isSVGRoot){for(h=t.parentNode,e=t.getBBox();h&&"svg"!==(h.nodeName+"").toLowerCase();)h=h.parentNode;u=b(h),d.offsetTop=e.y*u.scaleY,d.offsetLeft=e.x*u.scaleX,d.scaleX=u.scaleX,d.scaleY=u.scaleY,d.offsetParent=h||Et}else{for((i=d.offsetParent)===Ct.body&&(i=Et),z.length=U.length=0;h&&("matrix(1, 0, 0, 1, 0, 0)"!==(r=Bt(h,w,!0))&&"none"!==r&&"translate3d(0px, 0px, 0px)"!==r&&(z.push(h),U.push(h.style[w]),h.style[w]="none"),h!==i);)h=h.parentNode;for(n=i.getBoundingClientRect(),r=t.getScreenCTM(),a=t.createSVGPoint().matrixTransform(r),d.scaleX=Math.sqrt(r.a*r.a+r.b*r.b),d.scaleY=Math.sqrt(r.d*r.d+r.c*r.c),void 0===x&&T(),d.borderBox&&!f&&t.getAttribute("width")&&(u=v(t)||{},s=parseFloat(u.borderLeftWidth)+parseFloat(u.borderRightWidth)||0,l=parseFloat(u.borderTopWidth)+parseFloat(u.borderBottomWidth)||0,c=parseFloat(u.width)||0,u=parseFloat(u.height)||0,d.scaleX*=(c-s)/c,d.scaleY*=(u-l)/u),m?(e=t.getBoundingClientRect(),d.offsetLeft=e.left-n.left,d.offsetTop=e.top-n.top):(d.offsetLeft=a.x-n.left,d.offsetTop=a.y-n.top),d.offsetParent=i,o=z.length;-1<--o;)z[o].style[w]=U[o]}return d}function S(t){if(!1!==p.cacheSVGData&&t._dCache&&t._dCache.lastUpdate===bt.ticker.frame)return t._dCache;var e,n=t._dCache=t._dCache||{},i=v(t),r=t.getBBox&&fe(t),o="svg"===(t.nodeName+"").toLowerCase();if(n.isSVG=r,n.isSVGRoot=o,n.borderBox="border-box"===i.boxSizing,n.computedStyle=i,o)(e=t.parentNode||Et).insertBefore(u,t),n.offsetParent=u.offsetParent||Et,e.removeChild(u);else if(r){for(e=t.parentNode;e&&"svg"!==(e.nodeName+"").toLowerCase();)e=e.parentNode;n.offsetParent=e}else n.offsetParent=t.offsetParent;return n}function g(t,e,n){var i=t.x*e[0]+t.y*e[2]+e[4],e=t.x*e[1]+t.y*e[3]+e[5];return t.x=i*n[0]+e*n[2]+n[4],t.y=i*n[1]+e*n[3]+n[5],t}function a(t){return!!(t&&t.length&&t[0]&&(t[0].nodeType&&t[0].style&&!t.nodeType||t[0].length&&t[0][0]))}function Zt(t){te=t.touches&&ce<t.touches.length,Ut(t.target,"touchend",H)}function Jt(r,o,t,e,a,n){var i,s,l,c={};if(o)if(1!==a&&o instanceof Array){if(c.end=i=[],l=o.length,"object"===ye(o[0]))for(s=0;s<l;s++)i[s]=de(o[s],a);else for(s=0;s<l;s++)i[s]=o[s]*a;t+=1.1,e-=1.1}else c.end="function"==typeof o?function(t){var e,n,i=o.call(r,t);if(1!==a)if("object"===(void 0===i?"undefined":ye(i))){for(n in e={},i)e[n]=i[n]*a;i=e}else i*=a;return i}:o;return!t&&0!==t||(c.max=t),!e&&0!==e||(c.min=e),n&&(c.velocity=0),c}function Kt(t){var e;return!(!t||!t.getAttribute||"BODY"===t.nodeName)&&(!("true"!==(e=t.getAttribute("data-clickable"))&&("false"===e||!t.onclick&&!d.test(t.nodeName+"")&&"true"!==t.getAttribute("contentEditable")))||Kt(t.parentNode))}function Tt(t,e){for(var n,i=t.length;-1<--i;)(n=t[i]).ondragstart=n.onselectstart=e?null:c,Ft(n,"userSelect",e?"text":"none")}function Qt(r,o){r=It(r),o=o||{};var a,s,l,t,c,u,h=Ct.createElement("div"),d=h.style,e=r.firstChild,p=0,f=0,m=r.scrollTop,g=r.scrollLeft,v=r.scrollWidth,y=r.scrollHeight,_=0,b=0,x=0;L&&!1!==o.force3D?(c="translate3d(",u="px,0px)"):w&&(c="translate(",u="px)"),this.scrollTop=function(t,e){if(!arguments.length)return-this.top();this.top(-t,e)},this.scrollLeft=function(t,e){if(!arguments.length)return-this.left();this.left(-t,e)},this.left=function(t,e){if(!arguments.length)return-(r.scrollLeft+f);var n=r.scrollLeft-g,i=f;(2<n||n<-2)&&!e?(g=r.scrollLeft,bt.killTweensOf(this,!0,{left:1,scrollLeft:1}),this.left(-g),o.onKill&&o.onKill()):((t=-t)<0?(f=t-.5|0,t=0):b<t?(f=t-b|0,t=b):f=0,(f||i)&&(c?this._suspendTransforms||(d[w]=c+-f+"px,"+-p+u):d.left=-f+"px",0<=f+_)&&(d.paddingRight=f+_+"px"),r.scrollLeft=0|t,g=r.scrollLeft)},this.top=function(t,e){if(!arguments.length)return-(r.scrollTop+p);var n=r.scrollTop-m,i=p;(2<n||n<-2)&&!e?(m=r.scrollTop,bt.killTweensOf(this,!0,{top:1,scrollTop:1}),this.top(-m),o.onKill&&o.onKill()):((t=-t)<0?(p=t-.5|0,t=0):x<t?(p=t-x|0,t=x):p=0,(p||i)&&(c?this._suspendTransforms||(d[w]=c+-f+"px,"+-p+u):d.top=-p+"px"),r.scrollTop=0|t,m=r.scrollTop)},this.maxScrollTop=function(){return x},this.maxScrollLeft=function(){return b},this.disable=function(){for(e=h.firstChild;e;)t=e.nextSibling,r.appendChild(e),e=t;r===h.parentNode&&r.removeChild(h)},this.enable=function(){if((e=r.firstChild)!==h){for(;e;)t=e.nextSibling,h.appendChild(e),e=t;r.appendChild(h),this.calibrate()}},this.calibrate=function(t){var e,n,i=r.clientWidth===a;m=r.scrollTop,g=r.scrollLeft,(!i||r.clientHeight!==s||h.offsetHeight!==l||v!==r.scrollWidth||y!==r.scrollHeight||t)&&((p||f)&&(e=this.left(),n=this.top(),this.left(-r.scrollLeft),this.top(-r.scrollTop)),(!i||t)&&(d.display="block",d.width="auto",d.paddingRight="0px",_=Math.max(0,r.scrollWidth-r.clientWidth))&&(_+=Bt(r,"paddingLeft")+(W?Bt(r,"paddingRight"):0)),d.display="inline-block",d.position="relative",d.overflow="visible",d.verticalAlign="top",d.width="100%",d.paddingRight=_+"px",W&&(d.paddingBottom=Bt(r,"paddingBottom",!0)),kt&&(d.zoom="1"),a=r.clientWidth,s=r.clientHeight,v=r.scrollWidth,y=r.scrollHeight,b=r.scrollWidth-a,x=r.scrollHeight-s,l=h.offsetHeight,d.display="block",e||n)&&(this.left(e),this.top(n))},this.content=h,this.element=r,this._suspendTransforms=!1,this.enable()}var te,St,x,f,m,C,E,t,e,r,ee={css:{},data:"_draggable"},ne={css:{},data:"_draggable"},ie={css:{},data:"_draggable"},re={css:{}},oe=$._gsDefine.globals,o={},l={style:{}},Ct=$.document||{createElement:function(){return l}},Et=Ct.documentElement||{},u=s("div"),ae=[],c=function(){return!1},se=180/Math.PI,Mt=999999999999999,Pt=Date.now||function(){return(new Date).getTime()},kt=!(Ct.addEventListener||!Ct.all),At=Ct.createElement("div"),Ot=[],Rt={},le=0,d=/^(?:a|input|textarea|button|select)$/i,ce=0,ue=$.navigator&&-1!==$.navigator.userAgent.toLowerCase().indexOf("android"),he=0,Lt={},Dt={},de=function(t,e){var n,i={};if(e)for(n in t)i[n]=t[n]*e;else for(n in t)i[n]=t[n];return i},pe=function(){for(var t=Ot.length;-1<--t;)Ot[t]()},M=function(){Ot.length||bt.ticker.removeEventListener("tick",pe)},jt=function(t){return!(t&&t!==Et&&t!==Ct&&t!==Ct.body&&t!==window&&t.nodeType&&t.parentNode)},P=function(t,e){var e="x"===e?"Width":"Height",n="scroll"+e,i="client"+e,r=Ct.body;return Math.max(0,jt(t)?Math.max(Et[n],r[n])-(window["inner"+e]||Et[i]||r[i]):t[n]-t[i])},It=function(t){return t&&((t=(t="string"==typeof t?bt.selector(t):t).length&&t!==window&&t[0]&&t[0].style&&!t.nodeType?t[0]:t)===window||t.nodeType&&t.style?t:null)},k=function(t,e){var n,i,r,o=t.style;if(void 0===o[e]){for(r=["O","Moz","ms","Ms","Webkit"],i=5,n=e.charAt(0).toUpperCase()+e.substr(1);-1<--i&&void 0===o[r[i]+n];);if(i<0)return"";e=(3===i?"ms":r[i])+n}return e},Ft=function(t,e,n){var i=t.style;i&&(void 0===i[e]&&(e=k(t,e)),null==n?i.removeProperty?i.removeProperty(e.replace(/([A-Z])/g,"-$1").toLowerCase()):i.removeAttribute(e):void 0!==i[e]&&(i[e]=n))},v=Ct.defaultView?Ct.defaultView.getComputedStyle:c,A=/(?:Left|Right|Width)/i,O=/(?:\d|\-|\+|=|#|\.)*/g,R=function(t,e){var n,i;return"absolute"!==Bt(t,"position",!0)?0:(i=Bt(t,"margin"+(n="left"===e?"Left":"Top"),!0),t["offset"+n]-(h(t,e,parseFloat(i),(i+"").replace(O,""))||0))},Bt=function(t,e,n){var i,r=(t._gsTransform||{})[e];return r||0===r||(t.style[e]?r=t.style[e]:(i=v(t))?r=(r=i.getPropertyValue(e.replace(/([A-Z])/g,"-$1").toLowerCase()))||i.length?r:i[e]:t.currentStyle&&(r=t.currentStyle[e]),"auto"!==r||"top"!==e&&"left"!==e||(r=R(t,e)),n)?r:parseFloat(r)||0},L=""!==k(u,"perspective"),D=k(u,"transformOrigin").replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),w=k(u,"transform"),j=w.replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),I={},F={},B=$.SVGElement,fe=function(t){return!!(B&&"function"==typeof t.getBBox&&t.getCTM&&(!t.parentNode||t.parentNode.getBBox&&t.parentNode.getCTM))},N=(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(navigator.userAgent))&&parseFloat(RegExp.$1)<11,U=[],z=[],Nt=function(t,e){var n,i,r;return e=e||{},t&&t!==Et&&t.parentNode&&t!==window?(n=v(t),r=(n=D&&n?n.getPropertyValue(D):"50% 50%").split(" "),i=-1!==n.indexOf("left")?"0%":-1!==n.indexOf("right")?"100%":r[0],"center"!==(r=-1!==n.indexOf("top")?"0%":-1!==n.indexOf("bottom")?"100%":r[1])&&null!=r||(r="50%"),"center"!==i&&!isNaN(parseFloat(i))||(i="50%"),t.getBBox&&fe(t)?(t._gsTransform||(bt.set(t,{x:"+=0",overwrite:!1}),void 0===t._gsTransform.xOrigin&&console.log("Draggable requires at least GSAP 1.17.0")),n=t.getBBox(),e.x=t._gsTransform.xOrigin-n.x,e.y=t._gsTransform.yOrigin-n.y):(t.getBBox&&-1!==(i+r).indexOf("%")&&(t={offsetWidth:(t=t.getBBox()).width,offsetHeight:t.height}),e.x=-1!==i.indexOf("%")?t.offsetWidth*parseFloat(i)/100:parseFloat(i),e.y=-1!==r.indexOf("%")?t.offsetHeight*parseFloat(r)/100:parseFloat(r)),e):{x:0,y:0}},V=function t(e,n,i,r,o){var a,s,l,c,u,h,d,p,f,m,g,v;return e!==window&&e&&e.style&&e.parentNode?(a=e._dCache||S(e),l=(s=e.parentNode)._dCache||S(s),c=a.computedStyle,u=(a.isSVG?l:s).offsetParent,v=a.isSVG&&-1!==(e.style[w]+"").indexOf("matrix")?e.style[w]:c?c.getPropertyValue(j):e.currentStyle?e.currentStyle[w]:"1,0,0,1,0,0",6<(v=((v=e.getBBox&&-1!==(e.getAttribute("transform")+"").indexOf("matrix")?e.getAttribute("transform"):v)+"").match(/(?:\-|\.|\b)(\d|\.|e\-)+/g)||[1,0,0,1,0,0]).length&&(v=[v[0],v[1],v[4],v[5],v[12],v[13]]),r?v[4]=v[5]=0:a.isSVG&&(r=e._gsTransform)&&(r.xOrigin||r.yOrigin)&&(v[0]=parseFloat(v[0]),v[1]=parseFloat(v[1]),v[2]=parseFloat(v[2]),v[3]=parseFloat(v[3]),v[4]=parseFloat(v[4])-(r.xOrigin-(r.xOrigin*v[0]+r.yOrigin*v[2])),v[5]=parseFloat(v[5])-(r.yOrigin-(r.xOrigin*v[1]+r.yOrigin*v[3]))),n&&(void 0===x&&T(),r=a.isSVG||a.isSVGRoot?b(e):e,a.isSVG?(f=e.getBBox(),g=l.isSVGRoot?{x:0,y:0}:s.getBBox(),r={offsetLeft:f.x-g.x,offsetTop:f.y-g.y,offsetParent:a.offsetParent}):a.isSVGRoot?(f=parseInt(c.borderTopWidth,10)||0,g=parseInt(c.borderLeftWidth,10)||0,m=(v[0]-x)*g+v[2]*f,g=v[1]*g+(v[3]-x)*f,f=n.x,h=n.y,d=f-(f*v[0]+h*v[2]),p=h-(f*v[1]+h*v[3]),v[4]=parseFloat(v[4])+d,v[5]=parseFloat(v[5])+p,n.x-=d,n.y-=p,f=r.scaleX,h=r.scaleY,o||(n.x*=f,n.y*=h),v[0]*=f,v[1]*=h,v[2]*=f,v[3]*=h,N||(n.x+=m,n.y+=g),u===Ct.body&&r.offsetParent===Et&&(u=Et)):!C&&e.offsetParent&&(n.x+=parseInt(Bt(e.offsetParent,"borderLeftWidth"),10)||0,n.y+=parseInt(Bt(e.offsetParent,"borderTopWidth"),10)||0),d=s===Et||s===Ct.body,v[4]=Number(v[4])+n.x+(r.offsetLeft||0)-i.x-(!d&&s.scrollLeft||0),v[5]=Number(v[5])+n.y+(r.offsetTop||0)-i.y-(!d&&s.scrollTop||0),s&&"fixed"===Bt(e,"position",c)&&(v[4]+=_(),v[5]+=y()),!s||s===Et||u!==r.offsetParent||l.isSVG||E&&"100100"!==t(s).join("")||(r=l.isSVGRoot?b(s):s,v[4]-=r.offsetLeft||0,v[5]-=r.offsetTop||0,C)||!l.offsetParent||a.isSVG||a.isSVGRoot||(v[4]-=parseInt(Bt(l.offsetParent,"borderLeftWidth"),10)||0,v[5]-=parseInt(Bt(l.offsetParent,"borderTopWidth"),10)||0)),v):[1,0,0,1,0,0]},me=function(t,e){if(!t||t===window||!t.parentNode)return[1,0,0,1,0,0];for(var n,i,r,o,a,s,l,c=Nt(t,I),u=Nt(t.parentNode,F),h=V(t,c,u,!1,!e);(t=t.parentNode)&&t.parentNode&&t!==Et;)c=u,u=Nt(t.parentNode,c===I?F:I),l=V(t,c,u),n=h[0],i=h[1],r=h[2],o=h[3],a=h[4],s=h[5],h[0]=n*l[0]+i*l[2],h[1]=n*l[1]+i*l[3],h[2]=r*l[0]+o*l[2],h[3]=r*l[1]+o*l[3],h[4]=a*l[0]+s*l[2]+l[4],h[5]=a*l[1]+s*l[3]+l[5];return e&&(n=h[0],i=h[1],r=h[2],o=h[3],a=h[4],s=h[5],h[0]=o/(e=n*o-i*r),h[1]=-i/e,h[2]=-r/e,h[3]=n/e,h[4]=(r*s-o*a)/e,h[5]=-(n*s-i*a)/e),h},G=function(t,e,n){if(!(t=It(t)))return null;e=It(e);var i,r,o,a,s,l,c,u,h,d,p,f,m=t.getBBox&&fe(t);if(t===window)o=y(),r=(i=_())+(Et.clientWidth||t.innerWidth||Ct.body.clientWidth||0),a=o+((t.innerHeight||0)-20<Et.clientHeight?Et.clientHeight:t.innerHeight||Ct.body.clientHeight||0);else{if(void 0===e||e===window)return t.getBoundingClientRect();i=-(l=Nt(t)).x,o=-l.y,m=m?(s=(l=t.getBBox()).width,l.height):"svg"!==(t.nodeName+"").toLowerCase()&&t.offsetWidth?(s=t.offsetWidth,t.offsetHeight):(p=v(t),s=parseFloat(p.width),parseFloat(p.height)),r=i+s,a=o+m,"svg"!==t.nodeName.toLowerCase()||kt||(f=(l=b(t)).computedStyle||{},d=(t.getAttribute("viewBox")||"0 0").split(" "),h=parseFloat(d[0]),d=parseFloat(d[1]),c=parseFloat(f.borderLeftWidth)||0,u=parseFloat(f.borderTopWidth)||0,r-=s-(s-c)/l.scaleX-h,a-=m-(m-u)/l.scaleY-d,i-=c/l.scaleX-h,o-=u/l.scaleY-d,p&&(r+=(parseFloat(f.borderRightWidth)+c)/l.scaleX,a+=(u+parseFloat(f.borderBottomWidth))/l.scaleY))}return t===e?{left:i,top:o,width:r-i,height:a-o}:(s=me(t),m=me(e,!0),h=g({x:i,y:o},s,m),d=g({x:r,y:o},s,m),p=g({x:r,y:a},s,m),c=g({x:i,y:a},s,m),i=Math.min(h.x,d.x,p.x,c.x),o=Math.min(h.y,d.y,p.y,c.y),Lt.x=Lt.y=0,n&&Nt(e,Lt),{left:i+Lt.x,top:o+Lt.y,width:Math.max(h.x,d.x,p.x,c.x)-i,height:Math.max(h.y,d.y,p.y,c.y)-o})},ge="ontouchstart"in Et&&"orientation"in window,ve=function(t){for(var e=t.split(","),n=(void 0!==u.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==u.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":t).split(","),i={},r=4;-1<--r;)i[e[r]]=n[r],i[n[r]]=e[r];return i}("touchstart,touchmove,touchend,touchcancel"),Ut=function(t,e,n,i){var r;t.addEventListener?(r=ve[e],t.addEventListener(r||e,n,i=i||{passive:!1}),r&&e!==r&&t.addEventListener(e,n,i)):t.attachEvent&&t.attachEvent("on"+e,n)},zt=function(t,e,n){var i;t.removeEventListener?(i=ve[e],t.removeEventListener(i||e,n),i&&e!==i&&t.removeEventListener(e,n)):t.detachEvent&&t.detachEvent("on"+e,n)},H=function t(e){te=e.touches&&ce<e.touches.length,zt(e.target,"touchend",t)},W=(t=Ct.createElement("div"),n=Ct.createElement("div"),e=n.style,r=Ct.body||u,e.display="inline-block",e.position="relative",t.style.cssText=n.innerHTML="width:90px; height:40px; padding:10px; overflow:auto; visibility: hidden",t.appendChild(n),r.appendChild(t),e=n.offsetHeight+18>t.scrollHeight,r.removeChild(t),e),p=function i(p,u){Gt.call(this,p),p=It(p),St=St||oe.com.greensock.plugins.ThrowPropsPlugin,this.vars=u=de(u||{}),this.target=p,this.x=this.y=this.rotation=0,this.dragResistance=parseFloat(u.dragResistance)||0,this.edgeResistance=isNaN(u.edgeResistance)?1:parseFloat(u.edgeResistance)||0,this.lockAxis=u.lockAxis,this.autoScroll=u.autoScroll||0,this.lockedAxis=null,this.allowEventDefault=!!u.allowEventDefault;function r(t){if(!(D.isPressed&&t.which<2))return t.preventDefault(),t.stopPropagation(),!1;D.endDrag()}function o(t,e){var n;if(G&&!D.isPressed&&t&&("mousedown"!==t.type&&"pointerdown"!==t.type||e||!(Pt()-F<30)||!ve[D.pointerEvent.type]))if(Z=mt(),D.pointerEvent=t,ve[t.type]?(S=-1!==t.type.indexOf("touch")?t.currentTarget||t.target:Ct,Ut(S,"touchend",a),Ut(S,"touchmove",U),Ut(S,"touchcancel",a),Ut(Ct,"touchstart",Zt)):(S=null,Ut(Ct,"mousemove",U)),P=null,Ut(Ct,"mouseup",a),t&&t.target&&Ut(t.target,"mouseup",a),Y=lt.call(D,t.target)&&!u.dragClickables&&!e)Ut(t.target,"change",a),wt(D,"press","onPress"),Tt(j,!0);else{if(M=!(!S||O===R||!1===D.vars.allowNativeTouchScrolling||D.vars.allowContextMenu&&t&&(t.ctrlKey||2<t.which))&&(O?"y":"x"),kt?t=Xt(t,!0):M||D.allowEventDefault||(t.preventDefault(),t.preventManipulation&&t.preventManipulation()),t.changedTouches?(t=q=t.changedTouches[0],b=t.identifier):t.pointerId?b=t.pointerId:q=b=null,ce++,!function(t){Ot.push(t),1===Ot.length&&bt.ticker.addEventListener("tick",pe,this,!1,1)}(B),c=D.pointerY=t.pageY,l=D.pointerX=t.pageX,(M||D.autoScroll)&&xt(p.parentNode),!p.parentNode||!D.autoScroll||f||A||!p.parentNode._gsMaxScrollX||At.parentNode||p.getBBox||(At.style.width=p.parentNode.scrollWidth+"px",p.parentNode.appendChild(At)),ft(),D.tween&&D.tween.kill(),D.isThrowing=!1,bt.killTweensOf(f||p,!0,nt),f&&bt.killTweensOf(p,!0,{scrollTo:1}),D.tween=D.lockedAxis=null,!u.zIndexBoost&&(A||f||!1===u.zIndexBoost)||(p.style.zIndex=i.zIndex++),D.isPressed=!0,H=!(!u.onDrag&&!D._listeners.drag),!A)for(n=j.length;-1<--n;)Ft(j[n],"cursor",u.cursor||"move");wt(D,"press","onPress")}}function z(t){var e,n;t&&D.isDragging&&!f&&(e=(t=t.target||t.srcElement||p.parentNode).scrollLeft-t._gsScrollX,n=t.scrollTop-t._gsScrollY,e||n)&&(C?(l-=e*C[0]+n*C[2],c-=n*C[3]+e*C[1]):(l-=e,c-=n),t._gsScrollX+=e,t._gsScrollY+=n,_t(D.pointerX,D.pointerY))}function V(t){var e=(n=Pt())-F<40,n=n-it<40,i=e&&K===F,r=!!t.preventDefault,o=D.pointerEvent&&D.pointerEvent.defaultPrevented,a=e&&Q===F,s=t.isTrusted||null==t.isTrusted&&e&&i;r&&(i||n&&!1!==D.vars.suppressClickOnDrag)&&t.stopImmediatePropagation(),!e||D.pointerEvent&&D.pointerEvent.defaultPrevented||i&&s===a?(D.isPressed||n||e)&&(r?s&&t.detail&&e&&!o||(t.preventDefault(),t.preventManipulation&&t.preventManipulation()):t.returnValue=!1):(s&&i&&(Q=F),K=F)}function n(t){return C?{x:t.x*C[0]+t.y*C[2]+C[4],y:t.x*C[1]+t.y*C[3]+C[5]}:{x:t.x,y:t.y}}var G,f,l,c,h,d,m,H,g,v,y,_,W,$,q,b,X,x,s,w,T,Y,S,C,Z,E,M,P,J,K,Q,t=(u.type||(kt?"top,left":"x,y")).toLowerCase(),k=-1!==t.indexOf("x")||-1!==t.indexOf("y"),A=-1!==t.indexOf("rotation"),tt=A?"rotation":k?"x":"left",et=k?"y":"top",O=-1!==t.indexOf("x")||-1!==t.indexOf("left")||"scroll"===t,R=-1!==t.indexOf("y")||-1!==t.indexOf("top")||"scroll"===t,L=u.minimumMovement||2,D=this,j=function(t){if(!(t="string"==typeof t?bt.selector(t):t)||t.nodeType)return[t];for(var e=[],n=t.length,i=0;i!==n;e.push(t[i++]));return e}(u.trigger||u.handle||p),nt={},it=0,I=!1,rt=u.autoScrollMarginTop||40,ot=u.autoScrollMarginRight||40,at=u.autoScrollMarginBottom||40,st=u.autoScrollMarginLeft||40,lt=u.clickableTest||Kt,F=0,B=function(t){if(D.autoScroll&&D.isDragging&&(I||x)){var e,n,i,r,o,a,s,l,c=p,u=15*D.autoScroll;for(I=!1,Dt.scrollTop=null!=window.pageYOffset?window.pageYOffset:(null!=Et.scrollTop?Et:Ct.body).scrollTop,Dt.scrollLeft=null!=window.pageXOffset?window.pageXOffset:(null!=Et.scrollLeft?Et:Ct.body).scrollLeft,r=D.pointerX-Dt.scrollLeft,o=D.pointerY-Dt.scrollTop;c&&!n;)e=(n=jt(c.parentNode))?Dt:c.parentNode,i=n?{bottom:Math.max(Et.clientHeight,window.innerHeight||0),right:Math.max(Et.clientWidth,window.innerWidth||0),left:0,top:0}:e.getBoundingClientRect(),a=s=0,R&&((l=e._gsMaxScrollY-e.scrollTop)<0?s=l:o>i.bottom-at&&l?(I=!0,s=Math.min(l,u*(1-Math.max(0,i.bottom-o)/at)|0)):o<i.top+rt&&e.scrollTop&&(I=!0,s=-Math.min(e.scrollTop,u*(1-Math.max(0,o-i.top)/rt)|0)),s)&&(e.scrollTop+=s),O&&((l=e._gsMaxScrollX-e.scrollLeft)<0?a=l:r>i.right-ot&&l?(I=!0,a=Math.min(l,u*(1-Math.max(0,i.right-r)/ot)|0)):r<i.left+st&&e.scrollLeft&&(I=!0,a=-Math.min(e.scrollLeft,u*(1-Math.max(0,r-i.left)/st)|0)),a)&&(e.scrollLeft+=a),n&&(a||s)&&(window.scrollTo(e.scrollLeft,e.scrollTop),_t(D.pointerX+a,D.pointerY+s)),c=e}var h,d;x&&((h=D.x)<1e-6&&-1e-6<h&&(h=0),(d=D.y)<1e-6&&-1e-6<d&&(d=0),A?(D.deltaX=h-E.data.rotation,E.data.rotation=D.rotation=h,E.setRatio(1)):f?(R&&(D.deltaY=d-f.top(),f.top(d)),O&&(D.deltaX=h-f.left(),f.left(h))):k?(R&&(D.deltaY=d-E.data.y,E.data.y=d),O&&(D.deltaX=h-E.data.x,E.data.x=h),E.setRatio(1)):(R&&(D.deltaY=d-parseFloat(p.style.top||0),p.style.top=d+"px"),O&&(D.deltaY=h-parseFloat(p.style.left||0),p.style.left=h+"px")),!H||t||J||(J=!0,wt(D,"drag","onDrag"),J=!1)),x=!1},N=function(t,e){var n,i=D.x,r=D.y;p._gsTransform||!k&&!A||bt.set(p,{x:"+=0",overwrite:!1,data:"_draggable"}),k?(D.y=p._gsTransform.y,D.x=p._gsTransform.x):A?D.x=D.rotation=p._gsTransform.rotation:f?(D.y=f.top(),D.x=f.left()):(D.y=parseInt(p.style.top,10)||0,D.x=parseInt(p.style.left,10)||0),(s||w||T)&&!e&&(D.isDragging||D.isThrowing)&&(T&&(Lt.x=D.x,Lt.y=D.y,(n=T(Lt)).x!==D.x&&(D.x=n.x,x=!0),n.y!==D.y)&&(D.y=n.y,x=!0),s&&(n=s(D.x))!==D.x&&(D.x=n,A&&(D.rotation=n),x=!0),w)&&((n=w(D.y))!==D.y&&(D.y=n),x=!0),x&&B(!0),t||(D.deltaX=D.x-i,D.deltaY=D.y-r,wt(D,"throwupdate","onThrowUpdate"))},ct=function(){var t,e;m=!1,f?(f.calibrate(),D.minX=v=-f.maxScrollLeft(),D.minY=_=-f.maxScrollTop(),D.maxX=g=D.maxY=y=0,m=!0):u.bounds&&(t=Yt(u.bounds,p.parentNode),A?(D.minX=v=t.left,D.maxX=g=t.left+t.width,D.minY=_=D.maxY=y=0):void 0!==u.bounds.maxX||void 0!==u.bounds.maxY?(t=u.bounds,D.minX=v=t.minX,D.minY=_=t.minY,D.maxX=g=t.maxX,D.maxY=y=t.maxY):(e=Yt(p,p.parentNode),D.minX=v=Bt(p,tt)+t.left-e.left,D.minY=_=Bt(p,et)+t.top-e.top,D.maxX=g=v+(t.width-e.width),D.maxY=y=_+(t.height-e.height)),g<v&&(D.minX=g,D.maxX=g=v,v=D.minX),y<_&&(D.minY=y,D.maxY=y=_,_=D.minY),A&&(D.minRotation=v,D.maxRotation=g),m=!0),u.liveSnap&&(e=(t=!0===u.liveSnap?u.snap||{}:u.liveSnap)instanceof Array||"function"==typeof t,A?(s=vt(e?t:t.rotation,v,g,1),w=null):t.points?T=yt(e?t:t.points,v,g,_,y,t.radius,f?-1:1):(O&&(s=vt(e?t:t.x||t.left||t.scrollLeft,v,g,f?-1:1)),R&&(w=vt(e?t:t.y||t.top||t.scrollTop,_,y,f?-1:1))))},ut=function(){D.isThrowing=!1,wt(D,"throwcomplete","onThrowComplete")},ht=function(){D.isThrowing=!1},dt=function(t,e){var n,i;t&&St?(!0===t&&(i=(n=u.snap||u.liveSnap||{})instanceof Array||"function"==typeof n,t={resistance:(u.throwResistance||u.resistance||1e3)/(A?10:1)},A?t.rotation=Jt(D,i?n:n.rotation,g,v,1,e):(O&&(t[tt]=Jt(D,i?n:n.points||n.x||n.left||n.scrollLeft,g,v,f?-1:1,e||"x"===D.lockedAxis)),R&&(t[et]=Jt(D,i?n:n.points||n.y||n.top||n.scrollTop,y,_,f?-1:1,e||"y"===D.lockedAxis)),(n.points||n instanceof Array&&"object"===ye(n[0]))&&(t.linkedProps=tt+","+et,t.radius=n.radius))),D.isThrowing=!0,i=isNaN(u.overshootTolerance)?1===u.edgeResistance?0:1-D.edgeResistance+.2:u.overshootTolerance,D.tween=e=St.to(f||p,{throwProps:t,data:"_draggable",ease:u.ease||oe.Power3.easeOut,onComplete:ut,onOverwrite:ht,onUpdate:u.fastMode?wt:N,onUpdateParams:u.fastMode?[D,"onthrowupdate","onThrowUpdate"]:n&&n.radius?[!1,!0]:ae},isNaN(u.maxDuration)?2:u.maxDuration,isNaN(u.minDuration)?0===i||"object"===(void 0===t?"undefined":ye(t))&&1e3<t.resistance?0:.5:u.minDuration,i),u.fastMode||(f&&(f._suspendTransforms=!0),e.render(e.duration(),!0,!0),N(!0,!0),D.endX=D.x,D.endY=D.y,A&&(D.endRotation=D.x),e.play(0),N(!0,!0),f&&(f._suspendTransforms=!1))):m&&D.applyBounds()},pt=function(t){var e,n,i,r,o,a=C||[1,0,0,1,0,0];C=me(p.parentNode,!0),t&&D.isPressed&&a.join(",")!==C.join(",")&&(t=a[0],o=a[1],e=a[2],n=a[3],i=a[4],a=a[5],t=l*(-o/(r=t*n-o*e))+c*(t/r)+-(t*a-o*i)/r,c=(o=l*(n/r)+c*(-e/r)+(e*a-n*i)/r)*C[1]+t*C[3]+C[5],l=o*C[0]+t*C[2]+C[4]),C[1]||C[2]||1!=C[0]||1!=C[3]||0!=C[4]||0!=C[5]||(C=null)},ft=function(){var t,e,n,i,r,o,a,s=1-D.edgeResistance;pt(!1),C&&(l=D.pointerX*C[0]+D.pointerY*C[2]+C[4],c=D.pointerX*C[1]+D.pointerY*C[3]+C[5]),x&&(_t(D.pointerX,D.pointerY),B(!0)),f?(ct(),d=f.top(),h=f.left()):(mt()?(N(!0,!0),ct()):D.applyBounds(),A?(X=D.rotationOrigin=(e={x:0,y:0},t=It(t=p),r=me(t,!1,r),o=e.x,a=e.y,n&&(Nt(t,e),o-=e.x,a-=e.y),(i=!0===i?e:i||{}).x=o*r[0]+a*r[2]+r[4],i.y=o*r[1]+a*r[3]+r[5],i),N(!0,!0),h=D.x,d=D.y=Math.atan2(X.y-D.pointerY,D.pointerX-X.x)*se):(p.parentNode&&p.parentNode.scrollTop,p.parentNode&&p.parentNode.scrollLeft,d=Bt(p,et),h=Bt(p,tt))),m&&s&&(g<h?h=g+(h-g)/s:h<v&&(h=v-(v-h)/s),A||(y<d?d=y+(d-y)/s:d<_&&(d=_-(_-d)/s))),D.startX=h,D.startY=d},mt=function(){return D.tween&&D.tween.isActive()},gt=function(){!At.parentNode||mt()||D.isDragging||At.parentNode.removeChild(At)},vt=function(a,s,l,n){return"function"==typeof a?function(t){var e=D.isPressed?1-D.edgeResistance:1;return a.call(D,l<t?l+(t-l)*e:t<s?s+(t-s)*e:t)*n}:a instanceof Array?function(t){for(var e,n,i=a.length,r=0,o=Mt;-1<--i;)(n=(n=(e=a[i])-t)<0?-n:n)<o&&s<=e&&e<=l&&(r=i,o=n);return a[r]}:isNaN(a)?function(t){return t}:function(){return a*n}},yt=function(a,o,s,l,c,u,h){return u=u&&u<Mt?u*u:Mt,"function"==typeof a?function(t){var e,n=D.isPressed?1-D.edgeResistance:1,i=t.x,r=t.y;return t.x=i=s<i?s+(i-s)*n:i<o?o+(i-o)*n:i,t.y=r=c<r?c+(r-c)*n:r<l?l+(r-l)*n:r,(n=a.call(D,t))!==t&&(t.x=n.x,t.y=n.y),1!==h&&(t.x*=h,t.y*=h),u<Mt&&(n=t.x-i,e=t.y-r,u<n*n+e*e)&&(t.x=i,t.y=r),t}:a instanceof Array?function(t){for(var e,n,i=a.length,r=0,o=Mt;-1<--i;)(n=(e=(n=a[i]).x-t.x)*e+(e=n.y-t.y)*e)<o&&(r=i,o=n);return o<=u?a[r]:t}:function(t){return t}},U=function(t){var e,n,i,r,o=t;if(G&&!te&&D.isPressed&&t){if(e=(D.pointerEvent=t).changedTouches){if((t=e[0])!==q&&t.identifier!==b){for(n=e.length;-1<--n&&(t=e[n]).identifier!==b;);if(n<0)return}}else if(t.pointerId&&b&&t.pointerId!==b)return;if(kt)t=Xt(t,!0);else{if(S&&M&&!P&&(i=t.pageX,r=t.pageY,C&&(n=i*C[0]+r*C[2]+C[4],r=i*C[1]+r*C[3]+C[5],i=n),(i=Math.abs(i-l))!==(r=Math.abs(r-c))&&(L<i||L<r)||ue&&M===P)&&(P=r<i&&O?"x":"y",!1!==D.vars.lockAxisOnTouchScroll&&(D.lockedAxis="x"===P?"y":"x","function"==typeof D.vars.onLockAxis)&&D.vars.onLockAxis.call(D,o),ue)&&M===P)return void a(o);D.allowEventDefault||M&&(!P||M===P)||!1===o.cancelable||(o.preventDefault(),o.preventManipulation&&o.preventManipulation())}D.autoScroll&&(I=!0),_t(t.pageX,t.pageY)}},_t=function(t,e){var n,i,r,o=1-D.dragResistance,a=1-D.edgeResistance;D.pointerX=t,D.pointerY=e,A?(n=Math.atan2(X.y-e,t-X.x)*se,180<(i=D.y-n)?(d-=360,D.y=n):i<-180&&(d+=360,D.y=n),i=D.x!==h||Math.abs(d-n)>L?(D.y=n,h+(d-n)*o):h):(C&&(r=t*C[0]+e*C[2]+C[4],e=t*C[1]+e*C[3]+C[5],t=r),(e=e-c)<L&&-L<e&&(e=0),(t=t-l)<L&&-L<t&&(t=0),(D.lockAxis||D.lockedAxis)&&(t||e)&&((r=D.lockedAxis)||(D.lockedAxis=r=O&&Math.abs(t)>Math.abs(e)?"y":R?"x":null,r&&"function"==typeof D.vars.onLockAxis&&D.vars.onLockAxis.call(D,D.pointerEvent)),"y"===r?e=0:"x"===r&&(t=0)),i=h+t*o,n=d+e*o),(s||w||T)&&(D.x!==i||D.y!==n&&!A)?(T&&(Lt.x=i,Lt.y=n,i=(r=T(Lt)).x,n=r.y),s&&(i=s(i)),w&&(n=w(n))):m&&(g<i?i=g+(i-g)*a:i<v&&(i=v+(i-v)*a),A||(y<n?n=y+(n-y)*a:n<_&&(n=_+(n-_)*a))),A||C||(i=Math.round(i),n=Math.round(n)),D.x===i&&(D.y===n||A)||(A?(D.endRotation=D.x=D.endX=i,x=!0):(R&&(D.y=D.endY=n,x=!0),O&&(D.x=D.endX=i,x=!0)),D.isDragging)||!D.isPressed||(D.isDragging=!0,wt(D,"dragstart","onDragStart"))},a=function t(e,n){if(G&&D.isPressed&&(!e||null==b||n||!(e.pointerId&&e.pointerId!==b||e.changedTouches&&!function(t,e){for(var n=t.length;-1<--n;)if(t[n].identifier===e)return!0;return!1}(e.changedTouches,b)))){D.isPressed=!1;var i,r,o,a,n=e,s=D.isDragging,l=D.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which),c=bt.delayedCall(.001,gt);if(S?(zt(S,"touchend",t),zt(S,"touchmove",U),zt(S,"touchcancel",t),zt(Ct,"touchstart",Zt)):zt(Ct,"mousemove",U),zt(Ct,"mouseup",t),e&&e.target&&zt(e.target,"mouseup",t),x=!1,!Y||l){if(Wt(B),!A)for(r=j.length;-1<--r;)Ft(j[r],"cursor",u.cursor||"move");if(s&&(it=he=Pt(),D.isDragging=!1),ce--,e){if((i=(e=kt?Xt(e,!1):e).changedTouches)&&(e=i[0])!==q&&e.identifier!==b){for(r=i.length;-1<--r&&(e=i[r]).identifier!==b;);if(r<0)return}D.pointerEvent=n,D.pointerX=e.pageX,D.pointerY=e.pageY}return l&&n?(n.preventDefault(),n.preventManipulation&&n.preventManipulation(),wt(D,"release","onRelease")):n&&!s?(Z&&(u.snap||u.bounds)&&dt(u.throwProps),wt(D,"release","onRelease"),ue&&"touchmove"===n.type||-1!==n.type.indexOf("cancel")||(wt(D,"click","onClick"),Pt()-F<300&&wt(D,"doubleclick","onDoubleClick"),a=n.target||n.srcElement||p,F=Pt(),ue)||n.defaultPrevented||bt.delayedCall(1e-5,function(){F!==K&&D.enabled()&&!D.isPressed&&(a.click?a.click():Ct.createEvent&&((o=Ct.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,window,1,D.pointerEvent.screenX,D.pointerEvent.screenY,D.pointerX,D.pointerY,!1,!1,!1,!1,0,null),a.dispatchEvent(o)))})):(dt(u.throwProps),kt||D.allowEventDefault||!n||!u.dragClickables&&lt.call(D,n.target)||!s||M&&(!P||M!==P)||!1===n.cancelable||(n.preventDefault(),n.preventManipulation&&n.preventManipulation()),wt(D,"release","onRelease")),mt()&&c.duration(D.tween.duration()),s&&wt(D,"dragend","onDragEnd"),!0}e&&(zt(e.target,"change",t),D.pointerEvent=n),Tt(j,!1),wt(D,"release","onRelease"),wt(D,"click","onClick"),Y=!1}},e=i.get(this.target);e&&e.kill(),this.startDrag=function(t,e){o(t||D.pointerEvent,!0),e&&!D.hitTest(t||D.pointerEvent)&&(e=Vt(t||D.pointerEvent),t=Vt(p),e=n({x:e.left+e.width/2,y:e.top+e.height/2}),t=n({x:t.left+t.width/2,y:t.top+t.height/2}),l-=e.x-t.x,c-=e.y-t.y),D.isDragging||(D.isDragging=!0,wt(D,"dragstart","onDragStart"))},this.drag=U,this.endDrag=function(t){a(t||D.pointerEvent,!0)},this.timeSinceDrag=function(){return D.isDragging?0:(Pt()-it)/1e3},this.timeSinceClick=function(){return(Pt()-F)/1e3},this.hitTest=function(t,e){return i.hitTest(D.target,t,e)},this.getDirection=function(t,e){var n,i,r="velocity"===t&&St?t:"object"!==(void 0===t?"undefined":ye(t))||A?"start":"element";return"element"===r&&(n=Vt(D.target),i=Vt(t)),t="start"===r?D.x-h:"velocity"===r?St.getVelocity(this.target,tt):n.left+n.width/2-(i.left+i.width/2),A?t<0?"counter-clockwise":"clockwise":(e=e||2,r="start"===r?D.y-d:"velocity"===r?St.getVelocity(this.target,et):n.top+n.height/2-(i.top+i.height/2),i=(n=Math.abs(t/r))<1/e?"":t<0?"left":"right",n<e&&(""!==i&&(i+="-"),i+=r<0?"up":"down"),i)},this.applyBounds=function(t){var e,n,i,r,o;if(t&&u.bounds!==t)return u.bounds=t,D.update(!0);if(N(!0),ct(),m){if(t=D.x,e=D.y,g<t?t=g:t<v&&(t=v),y<e?e=y:e<_&&(e=_),(D.x!==t||D.y!==e)&&(n=!0,D.x=D.endX=t,A?D.endRotation=t:D.y=D.endY=e,B(x=!0),D.autoScroll)&&!D.isDragging)for(xt(p.parentNode),i=p,Dt.scrollTop=null!=window.pageYOffset?window.pageYOffset:(null!=Et.scrollTop?Et:Ct.body).scrollTop,Dt.scrollLeft=null!=window.pageXOffset?window.pageXOffset:(null!=Et.scrollLeft?Et:Ct.body).scrollLeft;i&&!o;)r=(o=jt(i.parentNode))?Dt:i.parentNode,R&&r.scrollTop>r._gsMaxScrollY&&(r.scrollTop=r._gsMaxScrollY),O&&r.scrollLeft>r._gsMaxScrollX&&(r.scrollLeft=r._gsMaxScrollX),i=r;D.isThrowing&&(n||D.endX>g||D.endX<v||D.endY>y||D.endY<_)&&dt(u.throwProps,n)}return D},this.update=function(t,e,n){var i=D.x,r=D.y;return pt(!e),t?D.applyBounds():(x&&n&&B(!0),N(!0)),e&&(_t(D.pointerX,D.pointerY),x)&&B(!0),D.isPressed&&!e&&(O&&.01<Math.abs(i-D.x)||R&&.01<Math.abs(r-D.y)&&!A)&&ft(),D.autoScroll&&(xt(p.parentNode),I=D.isDragging,B(!0)),D.autoScroll&&(qt(p,z),$t(p,z)),D},this.enable=function(t){var e,n;if("soft"!==t){for(e=j.length;-1<--e;)n=j[e],Ut(n,"mousedown",o),Ut(n,"touchstart",o),Ut(n,"click",V,!0),A||Ft(n,"cursor",u.cursor||"move"),Ft(n,"touchCallout","none"),Ft(n,"touchAction",O===R?"none":O?"pan-y":"pan-x"),fe(n)&&Ft(n.ownerSVGElement||n,"touchAction",O===R?"none":O?"pan-y":"pan-x"),this.vars.allowContextMenu||Ut(n,"contextmenu",r);Tt(j,!1)}return $t(p,z),G=!0,St&&"soft"!==t&&St.track(f||p,k?"x,y":A?"rotation":"top,left"),f&&f.enable(),p._gsDragID=t="d"+le++,Rt[t]=this,f&&(f.element._gsDragID=t),bt.set(p,{x:"+=0",overwrite:!1,data:"_draggable"}),E={t:p,data:kt?$:p._gsTransform,tween:{},setRatio:kt?function(){bt.set(p,W)}:Ht._internals.setTransformRatio||Ht._internals.set3DTransformRatio},ft(),D.update(!0),D},this.disable=function(t){var e,n,i=D.isDragging;if(!A)for(e=j.length;-1<--e;)Ft(j[e],"cursor",null);if("soft"!==t){for(e=j.length;-1<--e;)n=j[e],Ft(n,"touchCallout",null),Ft(n,"touchAction",null),zt(n,"mousedown",o),zt(n,"touchstart",o),zt(n,"click",V),zt(n,"contextmenu",r);Tt(j,!0),S&&(zt(S,"touchcancel",a),zt(S,"touchend",a),zt(S,"touchmove",U)),zt(Ct,"mouseup",a),zt(Ct,"mousemove",U)}return qt(p,z),G=!1,St&&"soft"!==t&&St.untrack(f||p,k?"x,y":A?"rotation":"top,left"),f&&f.disable(),Wt(B),D.isDragging=D.isPressed=Y=!1,i&&wt(D,"dragend","onDragEnd"),D},this.enabled=function(t,e){return arguments.length?t?D.enable(e):D.disable(e):G},this.kill=function(){return D.isThrowing=!1,bt.killTweensOf(f||p,!0,nt),D.disable(),delete Rt[p._gsDragID],D},-1!==t.indexOf("scroll")&&(f=this.scrollProxy=new Qt(p,function(t,e){for(var n in e)void 0===t[n]&&(t[n]=e[n]);return t}({onKill:function(){D.isPressed&&a(null)}},u)),p.style.overflowY=R&&!ge?"auto":"hidden",p.style.overflowX=O&&!ge?"auto":"hidden",p=f.content),!1!==u.force3D&&bt.set(p,{force3D:!0}),A?nt.rotation=1:(O&&(nt[tt]=1),R&&(nt[et]=1)),A?($=(W=re).css,W.overwrite=!1):k&&($=(W=O&&R?ee:O?ne:ie).css,W.overwrite=!1),this.enable()},n=p.prototype=new Gt,i=(n.constructor=p,n.pointerX=n.pointerY=n.startX=n.startY=n.deltaX=n.deltaY=0,n.isDragging=n.isPressed=!1,p.version="0.16.3",p.zIndex=1e3,Ut(Ct,"touchcancel",function(){}),Ut(Ct,"contextmenu",function(t){for(var e in Rt)Rt[e].isPressed&&Rt[e].endDrag()}),p.create=function(t,e){for(var n=(t="string"==typeof t?bt.selector(t):t)&&0!==t.length?a(t)?function(t){for(var e,n,i=[],r=t.length,o=0;o<r;o++)if(e=t[o],a(e))for(n=e.length,n=0;n<e.length;n++)i.push(e[n]);else e&&0!==e.length&&i.push(e);return i}(t):[t]:[],i=n.length;-1<--i;)n[i]=new p(n[i],e);return n},p.get=function(t){return Rt[(It(t)||{})._gsDragID]},p.timeSinceDrag=function(){return(Pt()-he)/1e3},{}),Vt=function(t,e){return t===window?(i.left=i.top=0,i.width=i.right=Et.clientWidth||t.innerWidth||Ct.body.clientWidth||0,i.height=i.bottom=(t.innerHeight||0)-20<Et.clientHeight?Et.clientHeight:t.innerHeight||Ct.body.clientHeight||0,i):((t=t.pageX!==e?{left:t.pageX-_(),top:t.pageY-y(),right:t.pageX-_()+1,bottom:t.pageY-y()+1}:t.nodeType||t.left===e||t.top===e?kt?function(t){for(var e=0,n=0,i=(t=It(t)).offsetWidth,r=t.offsetHeight;t;)e+=t.offsetTop,n+=t.offsetLeft,t=t.offsetParent;return{top:e,left:n,width:i,height:r}}(t):It(t).getBoundingClientRect():t).right===e&&t.width!==e?(t.right=t.left+t.width,t.bottom=t.top+t.height):t.width===e&&(t={width:t.right-t.left,height:t.bottom-t.top,right:t.right,left:t.left,bottom:t.bottom,top:t.top}),t)};return p.hitTest=function(t,e,n){var i,r;return t!==e&&(t=Vt(t),(r=(e=Vt(e)).left>t.right||e.right<t.left||e.top>t.bottom||e.bottom<t.top)||!n?!r:(r=-1!==(n+"").indexOf("%"),n=parseFloat(n)||0,(i={left:Math.max(t.left,e.left),top:Math.max(t.top,e.top)}).width=Math.min(t.right,e.right)-i.left,i.height=Math.min(t.bottom,e.bottom)-i.top,!(i.width<0||i.height<0)&&(r?(r=i.width*i.height)>=t.width*t.height*(n*=.01)||r>=e.width*e.height*n:n<i.width&&n<i.height)))},At.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;",p},!0)}),$._gsDefine&&$._gsQueue.pop()(),void 0!==i&&i.exports?(n("../TweenLite.js"),n("../plugins/CSSPlugin.js"),i.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite","CSSPlugin"],t)}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../TweenLite.js":387,"../plugins/CSSPlugin.js":386}],392:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}n.__esModule=!0;var o=r(t("./handlebars/base")),a=i(t("./handlebars/safe-string")),s=i(t("./handlebars/exception")),l=r(t("./handlebars/utils")),c=r(t("./handlebars/runtime")),t=i(t("./handlebars/no-conflict"));function u(){var e=new o.HandlebarsEnvironment;return l.extend(e,o),e.SafeString=a.default,e.Exception=s.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var h=u();h.create=u,t.default(h),h.default=h,n.default=h,e.exports=n.default},{"./handlebars/base":393,"./handlebars/exception":396,"./handlebars/no-conflict":409,"./handlebars/runtime":410,"./handlebars/safe-string":411,"./handlebars/utils":412}],393:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0,n.HandlebarsEnvironment=h;var r=t("./utils"),o=i(t("./exception")),a=t("./helpers"),s=t("./decorators"),l=i(t("./logger")),c=t("./internal/proto-access"),u=(n.VERSION="4.7.7",n.COMPILER_REVISION=8,n.LAST_COMPATIBLE_COMPILER_REVISION=7,n.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"},"[object Object]");function h(t,e,n){this.helpers=t||{},this.partials=e||{},this.decorators=n||{},a.registerDefaultHelpers(this),s.registerDefaultDecorators(this)}h.prototype={constructor:h,logger:l.default,log:l.default.log,registerHelper:function(t,e){if(r.toString.call(t)===u){if(e)throw new o.default("Arg not supported with multiple helpers");r.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){if(r.toString.call(t)===u)r.extend(this.partials,t);else{if(void 0===e)throw new o.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=e}},unregisterPartial:function(t){delete this.partials[t]},registerDecorator:function(t,e){if(r.toString.call(t)===u){if(e)throw new o.default("Arg not supported with multiple decorators");r.extend(this.decorators,t)}else this.decorators[t]=e},unregisterDecorator:function(t){delete this.decorators[t]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};t=l.default.log;n.log=t,n.createFrame=r.createFrame,n.logger=l.default},{"./decorators":394,"./exception":396,"./helpers":397,"./internal/proto-access":406,"./logger":408,"./utils":412}],394:[function(t,e,n){"use strict";n.__esModule=!0,n.registerDefaultDecorators=function(t){i.default(t)};var n=t("./decorators/inline"),i=(t=n)&&t.__esModule?t:{default:t}},{"./decorators/inline":395}],395:[function(t,e,n){"use strict";n.__esModule=!0;var a=t("../utils");n.default=function(t){t.registerDecorator("inline",function(i,r,o,t){var e=i;return r.partials||(r.partials={},e=function(t,e){var n=o.partials,t=(o.partials=a.extend({},n,r.partials),i(t,e));return o.partials=n,t}),r.partials[t.args[0]]=t.fn,e})},e.exports=n.default},{"../utils":412}],396:[function(t,e,n){"use strict";n.__esModule=!0;var l=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function c(t,e){for(var e=e&&e.loc,n=void 0,i=void 0,r=void 0,o=void 0,a=(e&&(n=e.start.line,i=e.end.line,r=e.start.column,o=e.end.column,t+=" - "+n+":"+r),Error.prototype.constructor.call(this,t)),s=0;s<l.length;s++)this[l[s]]=a[l[s]];Error.captureStackTrace&&Error.captureStackTrace(this,c);try{e&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:r,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:o,enumerable:!0})):(this.column=r,this.endColumn=o))}catch(t){}}c.prototype=new Error,n.default=c,e.exports=n.default},{}],397:[function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}n.__esModule=!0,n.registerDefaultHelpers=function(t){r.default(t),o.default(t),a.default(t),s.default(t),l.default(t),c.default(t),u.default(t)},n.moveHelperToHooks=function(t,e,n){t.helpers[e]&&(t.hooks[e]=t.helpers[e],n||delete t.helpers[e])};var r=i(t("./helpers/block-helper-missing")),o=i(t("./helpers/each")),a=i(t("./helpers/helper-missing")),s=i(t("./helpers/if")),l=i(t("./helpers/log")),c=i(t("./helpers/lookup")),u=i(t("./helpers/with"))},{"./helpers/block-helper-missing":398,"./helpers/each":399,"./helpers/helper-missing":400,"./helpers/if":401,"./helpers/log":402,"./helpers/lookup":403,"./helpers/with":404}],398:[function(t,e,n){"use strict";n.__esModule=!0;var o=t("../utils");n.default=function(r){r.registerHelper("blockHelperMissing",function(t,e){var n=e.inverse,i=e.fn;return!0===t?i(this):!1===t||null==t?n(this):o.isArray(t)?0<t.length?(e.ids&&(e.ids=[e.name]),r.helpers.each(t,e)):n(this):(e.data&&e.ids&&((n=o.createFrame(e.data)).contextPath=o.appendContextPath(e.data.contextPath,e.name),e={data:n}),i(t,e))})},e.exports=n.default},{"../utils":412}],399:[function(e,n,i){!function(g){!function(){"use strict";i.__esModule=!0;var f=e("../utils"),t=e("../exception"),m=(t=t)&&t.__esModule?t:{default:t};i.default=function(t){t.registerHelper("each",function(i,t){if(!t)throw new m.default("Must pass iterator to #each");var e,r=t.fn,n=t.inverse,o=0,a="",s=void 0,l=void 0;function c(t,e,n){s&&(s.key=t,s.index=e,s.first=0===e,s.last=!!n,l)&&(s.contextPath=l+t),a+=r(i[t],{data:s,blockParams:f.blockParams([i[t],t],[l+t,null])})}if(t.data&&t.ids&&(l=f.appendContextPath(t.data.contextPath,t.ids[0])+"."),f.isFunction(i)&&(i=i.call(this)),t.data&&(s=f.createFrame(t.data)),i&&"object"==typeof i)if(f.isArray(i))for(var u=i.length;o<u;o++)o in i&&c(o,o,o===i.length-1);else if(g.Symbol&&i[g.Symbol.iterator]){for(var h=[],d=i[g.Symbol.iterator](),p=d.next();!p.done;p=d.next())h.push(p.value);for(u=(i=h).length;o<u;o++)c(o,o,o===i.length-1)}else e=void 0,Object.keys(i).forEach(function(t){void 0!==e&&c(e,o-1),e=t,o++}),void 0!==e&&c(e,o-1,!0);return a=0===o?n(this):a})},n.exports=i.default}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../exception":396,"../utils":412}],400:[function(t,e,n){"use strict";n.__esModule=!0;var t=t("../exception"),i=(t=t)&&t.__esModule?t:{default:t};n.default=function(t){t.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=n.default},{"../exception":396}],401:[function(t,e,n){"use strict";n.__esModule=!0;var i=t("../utils"),t=t("../exception"),r=(t=t)&&t.__esModule?t:{default:t};n.default=function(n){n.registerHelper("if",function(t,e){if(2!=arguments.length)throw new r.default("#if requires exactly one argument");return i.isFunction(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||i.isEmpty(t)?e.inverse(this):e.fn(this)}),n.registerHelper("unless",function(t,e){if(2!=arguments.length)throw new r.default("#unless requires exactly one argument");return n.helpers.if.call(this,t,{fn:e.inverse,inverse:e.fn,hash:e.hash})})},e.exports=n.default},{"../exception":396,"../utils":412}],402:[function(t,e,n){"use strict";n.__esModule=!0,n.default=function(r){r.registerHelper("log",function(){for(var t=[void 0],e=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)t.push(arguments[n]);var i=1;null!=e.hash.level?i=e.hash.level:e.data&&null!=e.data.level&&(i=e.data.level),t[0]=i,r.log.apply(r,t)})},e.exports=n.default},{}],403:[function(t,e,n){"use strict";n.__esModule=!0,n.default=function(t){t.registerHelper("lookup",function(t,e,n){return t&&n.lookupProperty(t,e)})},e.exports=n.default},{}],404:[function(t,e,n){"use strict";n.__esModule=!0;var r=t("../utils"),t=t("../exception"),o=(t=t)&&t.__esModule?t:{default:t};n.default=function(t){t.registerHelper("with",function(t,e){if(2!=arguments.length)throw new o.default("#with requires exactly one argument");r.isFunction(t)&&(t=t.call(this));var n,i=e.fn;return r.isEmpty(t)?e.inverse(this):(n=e.data,e.data&&e.ids&&((n=r.createFrame(e.data)).contextPath=r.appendContextPath(e.data.contextPath,e.ids[0])),i(t,{data:n,blockParams:r.blockParams([t],[n&&n.contextPath])}))})},e.exports=n.default},{"../exception":396,"../utils":412}],405:[function(t,e,n){"use strict";n.__esModule=!0,n.createNewLookupObject=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return i.extend.apply(void 0,[Object.create(null)].concat(e))};var i=t("../utils")},{"../utils":412}],406:[function(t,e,n){"use strict";n.__esModule=!0,n.createProtoAccessControl=function(t){var e=Object.create(null),n=(e.constructor=!1,e.__defineGetter__=!1,e.__defineSetter__=!1,e.__lookupGetter__=!1,Object.create(null));return n.__proto__=!1,{properties:{whitelist:i.createNewLookupObject(n,t.allowedProtoProperties),defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:i.createNewLookupObject(e,t.allowedProtoMethods),defaultValue:t.allowProtoMethodsByDefault}}},n.resultIsAllowed=function(t,e,n){return a("function"==typeof t?e.methods:e.properties,n)},n.resetLoggedProperties=function(){Object.keys(o).forEach(function(t){delete o[t]})};var i=t("./create-new-lookup-object"),r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("../logger")),o=Object.create(null);function a(t,e){return void 0!==t.whitelist[e]?!0===t.whitelist[e]:void 0!==t.defaultValue?t.defaultValue:(!0!==o[t=e]&&(o[t]=!0,r.log("error",'Handlebars: Access has been denied to resolve the property "'+t+'" because it is not an "own property" of its parent.\nYou can add a runtime option to disable the check or this warning:\nSee https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details')),!1)}},{"../logger":408,"./create-new-lookup-object":405}],407:[function(t,e,n){"use strict";n.__esModule=!0,n.wrapHelper=function(e,n){if("function"!=typeof e)return e;return function(){var t=arguments[arguments.length-1];return arguments[arguments.length-1]=n(t),e.apply(this,arguments)}}},{}],408:[function(t,e,n){"use strict";n.__esModule=!0;var i=t("./utils"),r={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(t){var e;return t="string"==typeof t?0<=(e=i.indexOf(r.methodMap,t.toLowerCase()))?e:parseInt(t,10):t},log:function(t){if(t=r.lookupLevel(t),"undefined"!=typeof console&&r.lookupLevel(r.level)<=t){t=r.methodMap[t];console[t]||(t="log");for(var e=arguments.length,n=Array(1<e?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];console[t].apply(console,n)}}};n.default=r,e.exports=n.default},{"./utils":412}],409:[function(t,e,n){!function(i){!function(){"use strict";n.__esModule=!0,n.default=function(t){var e=void 0!==i?i:window,n=e.Handlebars;t.noConflict=function(){return e.Handlebars===t&&(e.Handlebars=n),t}},e.exports=n.default}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],410:[function(t,e,n){"use strict";n.__esModule=!0,n.checkRevision=function(t){var e=t&&t[0]||1,n=d.COMPILER_REVISION;if(!(e>=d.LAST_COMPATIBLE_COMPILER_REVISION&&e<=d.COMPILER_REVISION))throw e<d.LAST_COMPATIBLE_COMPILER_REVISION?(n=d.REVISION_CHANGES[n],e=d.REVISION_CHANGES[e],new h.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+e+").")):new h.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")},n.template=function(l,c){if(!c)throw new h.default("No environment passed to template");if(!l||!l.main)throw new h.default("Unknown template object: "+typeof l);l.main.decorator=l.main_d,c.VM.checkRevision(l.compiler);var n=l.compiler&&7===l.compiler[0];var a={strict:function(t,e,n){if(t&&e in t)return a.lookupProperty(t,e);throw new h.default('"'+e+'" not defined in '+t,{loc:n})},lookupProperty:function(t,e){var n=t[e];return null==n||Object.prototype.hasOwnProperty.call(t,e)||f.resultIsAllowed(n,a.protoAccessControl,e)?n:void 0},lookup:function(t,e){for(var n=t.length,i=0;i<n;i++)if(null!=(t[i]&&a.lookupProperty(t[i],e)))return t[i][e]},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:u.escapeExpression,invokePartial:function(t,e,n){n.hash&&(e=u.extend({},e,n.hash),n.ids)&&(n.ids[0]=!0),t=c.VM.resolvePartial.call(this,t,e,n);var i=u.extend({},n,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),r=c.VM.invokePartial.call(this,t,e,i);if(null==r&&c.compile&&(n.partials[n.name]=c.compile(t,l.compilerOptions,c),r=n.partials[n.name](e,i)),null==r)throw new h.default("The partial "+n.name+" could not be compiled when running in runtime-only mode");if(n.indent){for(var o=r.split("\n"),a=0,s=o.length;a<s&&(o[a]||a+1!==s);a++)o[a]=n.indent+o[a];r=o.join("\n")}return r},fn:function(t){var e=l[t];return e.decorator=l[t+"_d"],e},programs:[],program:function(t,e,n,i,r){var o=this.programs[t],a=this.fn(t);return o=e||r||i||n?m(this,t,a,e,n,i,r):o||(this.programs[t]=m(this,t,a))},data:function(t,e){for(;t&&e--;)t=t._parent;return t},mergeIfNeeded:function(t,e){var n=t||e;return n=t&&e&&t!==e?u.extend({},e,t):n},nullContext:Object.seal({}),noop:c.VM.noop,compilerInfo:l.compiler};function s(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=e.data,i=(s._setup(e),!e.partial&&l.useData&&(n=function(t,e){e&&"root"in e||((e=e?d.createFrame(e):{}).root=t);return e}(t,n)),void 0),r=l.useBlockParams?[]:void 0;function o(t){return""+l.main(a,t,a.helpers,a.partials,n,r,i)}return l.useDepths&&(i=e.depths?t!=e.depths[0]?[t].concat(e.depths):e.depths:[t]),(o=g(l.main,o,a,e.depths||[],n,r))(t,e)}return s.isTop=!0,s._setup=function(t){var e,i,r;t.partial?(a.protoAccessControl=t.protoAccessControl,a.helpers=t.helpers,a.partials=t.partials,a.decorators=t.decorators,a.hooks=t.hooks):(e=u.extend({},c.helpers,t.helpers),i=e,r=a,Object.keys(i).forEach(function(t){var e,n=i[t];i[t]=(e=r.lookupProperty,p.wrapHelper(n,function(t){return u.extend({lookupProperty:e},t)}))}),a.helpers=e,l.usePartial&&(a.partials=a.mergeIfNeeded(t.partials,c.partials)),(l.usePartial||l.useDecorators)&&(a.decorators=u.extend({},c.decorators,t.decorators)),a.hooks={},a.protoAccessControl=f.createProtoAccessControl(t),e=t.allowCallsToHelperMissing||n,o.moveHelperToHooks(a,"helperMissing",e),o.moveHelperToHooks(a,"blockHelperMissing",e))},s._child=function(t,e,n,i){if(l.useBlockParams&&!n)throw new h.default("must pass block params");if(l.useDepths&&!i)throw new h.default("must pass parent depths");return m(a,t,l[t],e,0,n,i)},s},n.wrapProgram=m,n.resolvePartial=function(t,e,n){t?t.call||n.name||(n.name=t,t=n.partials[t]):t="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name];return t},n.invokePartial=function(t,e,i){var r=i.data&&i.data["partial-block"];i.partial=!0,i.ids&&(i.data.contextPath=i.ids[0]||i.data.contextPath);var o=void 0;i.fn&&i.fn!==a&&!function(){i.data=d.createFrame(i.data);var n=i.fn;o=i.data["partial-block"]=function(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return e.data=d.createFrame(e.data),e.data["partial-block"]=r,n(t,e)},n.partials&&(i.partials=u.extend({},i.partials,n.partials))}();void 0===t&&o&&(t=o);{if(void 0===t)throw new h.default("The partial "+i.name+" could not be found");if(t instanceof Function)return t(e,i)}},n.noop=a;var u=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(t("./utils")),n=t("./exception"),h=(n=n)&&n.__esModule?n:{default:n},d=t("./base"),o=t("./helpers"),p=t("./internal/wrapHelper"),f=t("./internal/proto-access");function m(i,t,r,o,e,a,s){function n(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],n=s;return!s||t==s[0]||t===i.nullContext&&null===s[0]||(n=[t].concat(s)),r(i,t,i.helpers,i.partials,e.data||o,a&&[e.blockParams].concat(a),n)}return(n=g(r,n,i,s,o,a)).program=t,n.depth=s?s.length:0,n.blockParams=e||0,n}function a(){return""}function g(t,e,n,i,r,o){return t.decorator&&(e=t.decorator(e,t={},n,i&&i[0],r,o,i),u.extend(e,t)),e}},{"./base":393,"./exception":396,"./helpers":397,"./internal/proto-access":406,"./internal/wrapHelper":407,"./utils":412}],411:[function(t,e,n){"use strict";function i(t){this.string=t}n.__esModule=!0,i.prototype.toString=i.prototype.toHTML=function(){return""+this.string},n.default=i,e.exports=n.default},{}],412:[function(t,e,n){"use strict";n.__esModule=!0,n.extend=s,n.indexOf=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},n.escapeExpression=function(t){if("string"!=typeof t){if(t&&t.toHTML)return t.toHTML();if(null==t)return"";if(!t)return t+"";t=""+t}return o.test(t)?t.replace(r,a):t},n.isEmpty=function(t){return!t&&0!==t||!(!u(t)||0!==t.length)},n.createFrame=function(t){var e=s({},t);return e._parent=t,e},n.blockParams=function(t,e){return t.path=e,t},n.appendContextPath=function(t,e){return(t?t+".":"")+e};var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},r=/[&<>"'`=]/g,o=/[&<>"'`=]/;function a(t){return i[t]}function s(t){for(var e=1;e<arguments.length;e++)for(var n in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}var l=Object.prototype.toString,c=(n.toString=l,function(t){return"function"==typeof t}),u=(c(/x/)&&(n.isFunction=c=function(t){return"function"==typeof t&&"[object Function]"===l.call(t)}),n.isFunction=c,Array.isArray||function(t){return!(!t||"object"!=typeof t)&&"[object Array]"===l.call(t)});n.isArray=u},{}],413:[function(t,e,n){e.exports=t("handlebars/runtime").default},{"handlebars/runtime":392}],414:[function(t,e,n){"use strict";var i,r,o,a=[t("./nextTick"),t("./queueMicrotask"),t("./mutation.js"),t("./messageChannel"),t("./stateChange"),t("./timeout")],s=-1,l=[],c=!1;function u(){i&&r&&(i=!1,r.length?l=r.concat(l):s=-1,l.length)&&h()}function h(){if(!i){i=!(c=!1);for(var t=l.length,e=setTimeout(u);t;){for(r=l,l=[];r&&++s<t;)r[s].run();s=-1,t=l.length}r=null,i=!(s=-1),clearTimeout(e)}}for(var d=-1,p=a.length;++d<p;)if(a[d]&&a[d].test&&a[d].test()){o=a[d].install(h);break}function f(t,e){this.fun=t,this.array=e}f.prototype.run=function(){var t=this.fun,e=this.array;switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return t(e[0],e[1]);case 3:return t(e[0],e[1],e[2]);default:return t.apply(null,e)}},e.exports=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new f(t,e)),c||i||(c=!0,o())}},{"./messageChannel":415,"./mutation.js":416,"./nextTick":45,"./queueMicrotask":417,"./stateChange":418,"./timeout":419}],415:[function(t,e,i){!function(n){!function(){"use strict";i.test=function(){return!n.setImmediate&&void 0!==n.MessageChannel},i.install=function(t){var e=new n.MessageChannel;return e.port1.onmessage=t,function(){e.port2.postMessage(0)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],416:[function(t,e,n){!function(r){!function(){"use strict";var i=r.MutationObserver||r.WebKitMutationObserver;n.test=function(){return i},n.install=function(t){var e=0,t=new i(t),n=r.document.createTextNode("");return t.observe(n,{characterData:!0}),function(){n.data=e=++e%2}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],417:[function(t,e,n){!function(e){!function(){"use strict";n.test=function(){return"function"==typeof e.queueMicrotask},n.install=function(t){return function(){e.queueMicrotask(t)}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],418:[function(t,e,i){!function(n){!function(){"use strict";i.test=function(){return"document"in n&&"onreadystatechange"in n.document.createElement("script")},i.install=function(e){return function(){var t=n.document.createElement("script");return t.onreadystatechange=function(){e(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},n.document.documentElement.appendChild(t),e}}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],419:[function(t,e,n){"use strict";n.test=function(){return!0},n.install=function(t){return function(){setTimeout(t,0)}}},{}],420:[function(t,e,n){"function"==typeof Object.create?e.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){var n;e&&(t.super_=e,(n=function(){}).prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t)}},{}],421:[function(t,e,n){var o=[],a=[];function i(t,e){if(e=e||{},void 0===t)throw new Error("insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).");var n,i=!0===e.prepend?"prepend":"append",e=void 0!==e.container?e.container:document.querySelector("head"),r=o.indexOf(e);return-1===r&&(r=o.push(e)-1,a[r]={}),void 0!==a[r]&&void 0!==a[r][i]?n=a[r][i]:(n=a[r][i]=((r=document.createElement("style")).setAttribute("type","text/css"),r),"prepend"==i?e.insertBefore(n,e.childNodes[0]):e.appendChild(n)),65279===t.charCodeAt(0)&&(t=t.substr(1,t.length)),n.styleSheet?n.styleSheet.cssText+=t:n.textContent+=t,n}e.exports=i,e.exports.insertCss=i},{}],422:[function(t,e,n){var i,r;i="undefined"!=typeof window?window:this,r=function(x,I){function F(t,e){return e.toUpperCase()}var t=[],w=x.document,u=t.slice,B=t.concat,N=t.push,r=t.indexOf,U={},z=U.toString,f=U.hasOwnProperty,m={},T=function(t,e){return new T.fn.init(t,e)},V=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,G=/^-ms-/,H=/-([\da-z])/gi;function W(t){var e=!!t&&"length"in t&&t.length,n=T.type(t);return"function"!==n&&!T.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}T.fn=T.prototype={jquery:"2.2.4",constructor:T,selector:"",length:0,toArray:function(){return u.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:u.call(this)},pushStack:function(t){t=T.merge(this.constructor(),t);return t.prevObject=this,t.context=this.context,t},each:function(t){return T.each(this,t)},map:function(n){return this.pushStack(T.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(u.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:N,sort:t.sort,splice:t.splice},T.extend=T.fn.extend=function(){var t,e,n,i,r,o=arguments[0]||{},a=1,s=arguments.length,l=!1;for("boolean"==typeof o&&(l=o,o=arguments[a]||{},a++),"object"==typeof o||T.isFunction(o)||(o={}),a===s&&(o=this,a--);a<s;a++)if(null!=(t=arguments[a]))for(e in t)r=o[e],o!==(n=t[e])&&(l&&n&&(T.isPlainObject(n)||(i=T.isArray(n)))?(r=i?(i=!1,r&&T.isArray(r)?r:[]):r&&T.isPlainObject(r)?r:{},o[e]=T.extend(l,r,n)):void 0!==n&&(o[e]=n));return o},T.extend({expando:"jQuery"+("2.2.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===T.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=t&&t.toString();return!T.isArray(t)&&0<=e-parseFloat(e)+1},isPlainObject:function(t){if("object"!==T.type(t)||t.nodeType||T.isWindow(t))return!1;if(t.constructor&&!f.call(t,"constructor")&&!f.call(t.constructor.prototype||{},"isPrototypeOf"))return!1;for(var e in t);return void 0===e||f.call(t,e)},isEmptyObject:function(t){for(var e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?U[z.call(t)]||"object":typeof t},globalEval:function(t){var e,n=eval;(t=T.trim(t))&&(1===t.indexOf("use strict")?((e=w.createElement("script")).text=t,w.head.appendChild(e).parentNode.removeChild(e)):n(t))},camelCase:function(t){return t.replace(G,"ms-").replace(H,F)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var n,i=0;if(W(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(V,"")},makeArray:function(t,e){e=e||[];return null!=t&&(W(Object(t))?T.merge(e,"string"==typeof t?[t]:t):N.call(e,t)),e},inArray:function(t,e,n){return null==e?-1:r.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!=a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,o=0,a=[];if(W(t))for(i=t.length;o<i;o++)null!=(r=e(t[o],o,n))&&a.push(r);else for(o in t)null!=(r=e(t[o],o,n))&&a.push(r);return B.apply([],a)},guid:1,proxy:function(t,e){var n,i;if("string"==typeof e&&(i=t[e],e=t,t=i),T.isFunction(t))return n=u.call(arguments,2),(i=function(){return t.apply(e||this,n.concat(u.call(arguments)))}).guid=t.guid=t.guid||T.guid++,i},now:Date.now,support:m}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=t[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){U["[object "+e+"]"]=e.toLowerCase()});function i(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&T(t).is(n))break;i.push(t)}return i}function $(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var t=function(I){function h(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)}function F(){w()}var t,f,b,o,B,m,N,U,x,l,c,w,T,e,S,g,i,r,v,C="sizzle"+ +new Date,y=I.document,E=0,z=0,V=ct(),G=ct(),_=ct(),H=function(t,e){return t===e&&(c=!0),0},W={}.hasOwnProperty,n=[],$=n.pop,q=n.push,M=n.push,X=n.slice,P=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},Y="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",a="[\\x20\\t\\r\\n\\f]",s="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",Z="\\["+a+"*("+s+")(?:"+a+"*([*^$|!~]?=)"+a+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+s+"))|)"+a+"*\\]",J=":("+s+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Z+")*)|.*)\\)|)",K=new RegExp(a+"+","g"),k=new RegExp("^"+a+"+|((?:^|[^\\\\])(?:\\\\.)*)"+a+"+$","g"),Q=new RegExp("^"+a+"*,"+a+"*"),tt=new RegExp("^"+a+"*([>+~]|"+a+")"+a+"*"),et=new RegExp("="+a+"*([^\\]'\"]*?)"+a+"*\\]","g"),nt=new RegExp(J),it=new RegExp("^"+s+"$"),d={ID:new RegExp("^#("+s+")"),CLASS:new RegExp("^\\.("+s+")"),TAG:new RegExp("^("+s+"|[*])"),ATTR:new RegExp("^"+Z),PSEUDO:new RegExp("^"+J),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+a+"*(even|odd|(([+-]|)(\\d*)n|)"+a+"*(?:([+-]|)"+a+"*(\\d+)|))"+a+"*\\)|)","i"),bool:new RegExp("^(?:"+Y+")$","i"),needsContext:new RegExp("^"+a+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+a+"*((?:-\\d)?\\d*)"+a+"*\\)|)(?=[^-]|$)","i")},rt=/^(?:input|select|textarea|button)$/i,ot=/^h\d$/i,u=/^[^{]+\{\s*\[native \w/,at=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,st=/[+~]/,lt=/'|\\/g,p=new RegExp("\\\\([\\da-f]{1,6}"+a+"?|("+a+")|.)","ig");try{M.apply(n=X.call(y.childNodes),y.childNodes),n[y.childNodes.length].nodeType}catch(t){M={apply:n.length?function(t,e){q.apply(t,X.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function A(t,e,n,i){var r,o,a,s,l,c,u,h,d=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!i&&((e?e.ownerDocument||e:y)!==T&&w(e),e=e||T,S)){if(11!==p&&(c=at.exec(t)))if(r=c[1]){if(9===p){if(!(a=e.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(d&&(a=d.getElementById(r))&&v(e,a)&&a.id===r)return n.push(a),n}else{if(c[2])return M.apply(n,e.getElementsByTagName(t)),n;if((r=c[3])&&f.getElementsByClassName&&e.getElementsByClassName)return M.apply(n,e.getElementsByClassName(r)),n}if(f.qsa&&!_[t+" "]&&(!g||!g.test(t))){if(1!==p)d=e,h=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(lt,"\\$&"):e.setAttribute("id",s=C),o=(u=m(t)).length,l=it.test(s)?"#"+s:"[id='"+s+"']";o--;)u[o]=l+" "+D(u[o]);h=u.join(","),d=st.test(t)&&dt(e.parentNode)||e}if(h)try{return M.apply(n,d.querySelectorAll(h)),n}catch(t){}finally{s===C&&e.removeAttribute("id")}}}return U(t.replace(k,"$1"),e,n,i)}function ct(){var n=[];function i(t,e){return n.push(t+" ")>b.cacheLength&&delete i[n.shift()],i[t+" "]=e}return i}function O(t){return t[C]=!0,t}function R(t){var e=T.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e)}}function ut(t,e){for(var n=t.split("|"),i=n.length;i--;)b.attrHandle[n[i]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function L(a){return O(function(o){return o=+o,O(function(t,e){for(var n,i=a([],t.length,o),r=i.length;r--;)t[n=i[r]]&&(t[n]=!(e[n]=t[n]))})})}function dt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=A.support={},B=A.isXML=function(t){t=t&&(t.ownerDocument||t).documentElement;return!!t&&"HTML"!==t.nodeName},w=A.setDocument=function(t){var t=t?t.ownerDocument||t:y;return t!==T&&9===t.nodeType&&t.documentElement&&(e=(T=t).documentElement,S=!B(T),(t=T.defaultView)&&t.top!==t&&(t.addEventListener?t.addEventListener("unload",F,!1):t.attachEvent&&t.attachEvent("onunload",F)),f.attributes=R(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=R(function(t){return t.appendChild(T.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=u.test(T.getElementsByClassName),f.getById=R(function(t){return e.appendChild(t).id=C,!T.getElementsByName||!T.getElementsByName(C).length}),f.getById?(b.find.ID=function(t,e){if(void 0!==e.getElementById&&S)return(e=e.getElementById(t))?[e]:[]},b.filter.ID=function(t){var e=t.replace(p,h);return function(t){return t.getAttribute("id")===e}}):(delete b.find.ID,b.filter.ID=function(t){var e=t.replace(p,h);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}}),b.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},b.find.CLASS=f.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&S)return e.getElementsByClassName(t)},i=[],g=[],(f.qsa=u.test(T.querySelectorAll))&&(R(function(t){e.appendChild(t).innerHTML="<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+a+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+a+"*(?:value|"+Y+")"),t.querySelectorAll("[id~="+C+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+C+"+*").length||g.push(".#.+[+~]")}),R(function(t){var e=T.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+a+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(f.matchesSelector=u.test(r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.msMatchesSelector))&&R(function(t){f.disconnectedMatch=r.call(t,"div"),r.call(t,"[s!='']:x"),i.push("!=",J)}),g=g.length&&new RegExp(g.join("|")),i=i.length&&new RegExp(i.join("|")),t=u.test(e.compareDocumentPosition),v=t||u.test(e.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},H=t?function(t,e){var n;return t===e?(c=!0,0):(n=!t.compareDocumentPosition-!e.compareDocumentPosition)||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===n?t===T||t.ownerDocument===y&&v(y,t)?-1:e===T||e.ownerDocument===y&&v(y,e)?1:l?P(l,t)-P(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return c=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t===T?-1:e===T?1:r?-1:o?1:l?P(l,t)-P(l,e):0;if(r===o)return ht(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ht(a[i],s[i]):a[i]===y?-1:s[i]===y?1:0}),T},A.matches=function(t,e){return A(t,null,null,e)},A.matchesSelector=function(t,e){if((t.ownerDocument||t)!==T&&w(t),e=e.replace(et,"='$1']"),f.matchesSelector&&S&&!_[e+" "]&&(!i||!i.test(e))&&(!g||!g.test(e)))try{var n=r.call(t,e);if(n||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0<A(e,T,null,[t]).length},A.contains=function(t,e){return(t.ownerDocument||t)!==T&&w(t),v(t,e)},A.attr=function(t,e){(t.ownerDocument||t)!==T&&w(t);var n=b.attrHandle[e.toLowerCase()],n=n&&W.call(b.attrHandle,e.toLowerCase())?n(t,e,!S):void 0;return void 0!==n?n:f.attributes||!S?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},A.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},A.uniqueSort=function(t){var e,n=[],i=0,r=0;if(c=!f.detectDuplicates,l=!f.sortStable&&t.slice(0),t.sort(H),c){for(;e=t[r++];)e===t[r]&&(i=n.push(r));for(;i--;)t.splice(n[i],1)}return l=null,t},o=A.getText=function(t){var e,n="",i=0,r=t.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=o(t)}else if(3===r||4===r)return t.nodeValue}else for(;e=t[i++];)n+=o(e);return n},(b=A.selectors={cacheLength:50,createPseudo:O,match:d,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(p,h),t[3]=(t[3]||t[4]||t[5]||"").replace(p,h),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||A.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&A.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return d.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&nt.test(n)&&(e=(e=m(n,!0))&&n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(p,h).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=V[t+" "];return e||(e=new RegExp("(^|"+a+")"+t+"("+a+"|$)"))&&V(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(t){t=A.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1<t.indexOf(i):"$="===n?i&&t.slice(-i.length)===i:"~="===n?-1<(" "+t.replace(K," ")+" ").indexOf(i):"|="===n&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,t,e,m,g){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),_="of-type"===t;return 1===m&&0===g?function(t){return!!t.parentNode}:function(t,e,n){var i,r,o,a,s,l,c=v!=y?"nextSibling":"previousSibling",u=t.parentNode,h=_&&t.nodeName.toLowerCase(),d=!n&&!_,p=!1;if(u){if(v){for(;c;){for(a=t;a=a[c];)if(_?a.nodeName.toLowerCase()===h:1===a.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[y?u.firstChild:u.lastChild],y&&d){for(p=(s=(i=(r=(o=(a=u)[C]||(a[C]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===E&&i[1])&&i[2],a=s&&u.childNodes[s];a=++s&&a&&a[c]||(p=s=0,l.pop());)if(1===a.nodeType&&++p&&a===t){r[f]=[E,s,p];break}}else if(!1===(p=d?s=(i=(r=(o=(a=t)[C]||(a[C]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===E&&i[1]:p))for(;(a=++s&&a&&a[c]||(p=s=0,l.pop()))&&((_?a.nodeName.toLowerCase()!==h:1!==a.nodeType)||!++p||(d&&((r=(o=a[C]||(a[C]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[E,p]),a!==t)););return(p-=g)===m||p%m==0&&0<=p/m}}},PSEUDO:function(t,o){var e,a=b.pseudos[t]||b.setFilters[t.toLowerCase()]||A.error("unsupported pseudo: "+t);return a[C]?a(o):1<a.length?(e=[t,t,"",o],b.setFilters.hasOwnProperty(t.toLowerCase())?O(function(t,e){for(var n,i=a(t,o),r=i.length;r--;)t[n=P(t,i[r])]=!(e[n]=i[r])}):function(t){return a(t,0,e)}):a}},pseudos:{not:O(function(t){var i=[],r=[],s=N(t.replace(k,"$1"));return s[C]?O(function(t,e,n,i){for(var r,o=s(t,null,i,[]),a=t.length;a--;)(r=o[a])&&(t[a]=!(e[a]=r))}):function(t,e,n){return i[0]=t,s(i,null,n,r),i[0]=null,!r.pop()}}),has:O(function(e){return function(t){return 0<A(e,t).length}}),contains:O(function(e){return e=e.replace(p,h),function(t){return-1<(t.textContent||t.innerText||o(t)).indexOf(e)}}),lang:O(function(n){return it.test(n||"")||A.error("unsupported lang: "+n),n=n.replace(p,h).toLowerCase(),function(t){var e;do{if(e=S?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=I.location&&I.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===e},focus:function(t){return t===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!b.pseudos.empty(t)},header:function(t){return ot.test(t.nodeName)},input:function(t){return rt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:L(function(){return[0]}),last:L(function(t,e){return[e-1]}),eq:L(function(t,e,n){return[n<0?n+e:n]}),even:L(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:L(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:L(function(t,e,n){for(var i=n<0?n+e:n;0<=--i;)t.push(i);return t}),gt:L(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})b.pseudos[t]=function(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}(t);function pt(){}function D(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function ft(a,t,e){var s=t.dir,l=e&&"parentNode"===s,c=z++;return t.first?function(t,e,n){for(;t=t[s];)if(1===t.nodeType||l)return a(t,e,n)}:function(t,e,n){var i,r,o=[E,c];if(n){for(;t=t[s];)if((1===t.nodeType||l)&&a(t,e,n))return!0}else for(;t=t[s];)if(1===t.nodeType||l){if((i=(r=(r=t[C]||(t[C]={}))[t.uniqueID]||(r[t.uniqueID]={}))[s])&&i[0]===E&&i[1]===c)return o[2]=i[2];if((r[s]=o)[2]=a(t,e,n))return!0}}}function mt(r){return 1<r.length?function(t,e,n){for(var i=r.length;i--;)if(!r[i](t,e,n))return!1;return!0}:r[0]}function j(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,c=null!=e;s<l;s++)!(o=t[s])||n&&!n(o,i,r)||(a.push(o),c&&e.push(s));return a}function gt(p,f,m,g,v,t){return g&&!g[C]&&(g=gt(g)),v&&!v[C]&&(v=gt(v,t)),O(function(t,e,n,i){var r,o,a,s=[],l=[],c=e.length,u=t||function(t,e,n){for(var i=0,r=e.length;i<r;i++)A(t,e[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),h=!p||!t&&f?u:j(u,s,p,n,i),d=m?v||(t?p:c||g)?[]:e:h;if(m&&m(h,d,n,i),g)for(r=j(d,l),g(r,[],n,i),o=r.length;o--;)(a=r[o])&&(d[l[o]]=!(h[l[o]]=a));if(t){if(v||p){if(v){for(r=[],o=d.length;o--;)(a=d[o])&&r.push(h[o]=a);v(null,d=[],r,i)}for(o=d.length;o--;)(a=d[o])&&-1<(r=v?P(t,a):s[o])&&(t[r]=!(e[r]=a))}}else d=j(d===e?d.splice(c,d.length):d),v?v(null,e,d,i):M.apply(e,d)})}function vt(g,v){function t(t,e,n,i,r){var o,a,s,l=0,c="0",u=t&&[],h=[],d=x,p=t||_&&b.find.TAG("*",r),f=E+=null==d?1:Math.random()||.1,m=p.length;for(r&&(x=e===T||e||r);c!==m&&null!=(o=p[c]);c++){if(_&&o){for(a=0,e||o.ownerDocument===T||(w(o),n=!S);s=g[a++];)if(s(o,e||T,n)){i.push(o);break}r&&(E=f)}y&&((o=!s&&o)&&l--,t)&&u.push(o)}if(l+=c,y&&c!==l){for(a=0;s=v[a++];)s(u,h,e,n);if(t){if(0<l)for(;c--;)u[c]||h[c]||(h[c]=$.call(i));h=j(h)}M.apply(i,h),r&&!t&&0<h.length&&1<l+v.length&&A.uniqueSort(i)}return r&&(E=f,x=d),u}var y=0<v.length,_=0<g.length;return y?O(t):t}return pt.prototype=b.filters=b.pseudos,b.setFilters=new pt,m=A.tokenize=function(t,e){var n,i,r,o,a,s,l,c=G[t+" "];if(c)return e?0:c.slice(0);for(a=t,s=[],l=b.preFilter;a;){for(o in n&&!(i=Q.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=tt.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(k," ")}),a=a.slice(n.length)),b.filter)!(i=d[o].exec(a))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return e?a.length:a?A.error(t):G(t,s).slice(0)},N=A.compile=function(t,e){var n,i=[],r=[],o=_[t+" "];if(!o){for(n=(e=e||m(t)).length;n--;)((o=function t(e){for(var i,n,r,o=e.length,a=b.relative[e[0].type],s=a||b.relative[" "],l=a?1:0,c=ft(function(t){return t===i},s,!0),u=ft(function(t){return-1<P(i,t)},s,!0),h=[function(t,e,n){return t=!a&&(n||e!==x)||((i=e).nodeType?c:u)(t,e,n),i=null,t}];l<o;l++)if(n=b.relative[e[l].type])h=[ft(mt(h),n)];else{if((n=b.filter[e[l].type].apply(null,e[l].matches))[C]){for(r=++l;r<o&&!b.relative[e[r].type];r++);return gt(1<l&&mt(h),1<l&&D(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(k,"$1"),n,l<r&&t(e.slice(l,r)),r<o&&t(e=e.slice(r)),r<o&&D(e))}h.push(n)}return mt(h)}(e[n]))[C]?i:r).push(o);(o=_(t,vt(r,i))).selector=t}return o},U=A.select=function(t,e,n,i){var r,o,a,s,l,c="function"==typeof t&&t,u=!i&&m(t=c.selector||t);if(n=n||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&"ID"===(a=o[0]).type&&f.getById&&9===e.nodeType&&S&&b.relative[o[1].type]){if(!(e=(b.find.ID(a.matches[0].replace(p,h),e)||[])[0]))return n;c&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(r=d.needsContext.test(t)?0:o.length;r--&&(a=o[r],!b.relative[s=a.type]);)if((l=b.find[s])&&(i=l(a.matches[0].replace(p,h),st.test(o[0].type)&&dt(e.parentNode)||e))){if(o.splice(r,1),t=i.length&&D(o))break;return M.apply(n,i),n}}return(c||N(t,u))(i,e,!S,n,!e||st.test(t)&&dt(e.parentNode)||e),n},f.sortStable=C.split("").sort(H).join("")===C,f.detectDuplicates=!!c,w(),f.sortDetached=R(function(t){return 1&t.compareDocumentPosition(T.createElement("div"))}),R(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ut("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),f.attributes&&R(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ut("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),R(function(t){return null==t.getAttribute("disabled")})||ut(Y,function(t,e,n){if(!n)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),A}(x),q=(T.find=t,T.expr=t.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=t.uniqueSort,T.text=t.getText,T.isXMLDoc=t.isXML,T.contains=t.contains,T.expr.match.needsContext),X=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Y=/^.[^:#\[\.,]*$/;function Z(t,n,i){if(T.isFunction(n))return T.grep(t,function(t,e){return!!n.call(t,e,t)!==i});if(n.nodeType)return T.grep(t,function(t){return t===n!==i});if("string"==typeof n){if(Y.test(n))return T.filter(n,t,i);n=T.filter(n,t)}return T.grep(t,function(t){return-1<r.call(n,t)!==i})}T.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?T.find.matchesSelector(i,t)?[i]:[]:T.find.matches(t,T.grep(e,function(t){return 1===t.nodeType}))},T.fn.extend({find:function(t){var e,n=this.length,i=[],r=this;if("string"!=typeof t)return this.pushStack(T(t).filter(function(){for(e=0;e<n;e++)if(T.contains(r[e],this))return!0}));for(e=0;e<n;e++)T.find(t,r[e],i);return(i=this.pushStack(1<n?T.unique(i):i)).selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(Z(this,t||[],!1))},not:function(t){return this.pushStack(Z(this,t||[],!0))},is:function(t){return!!Z(this,"string"==typeof t&&q.test(t)?T(t):t||[],!1).length}});var J,K=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Q=((T.fn.init=function(t,e,n){if(t){if(n=n||J,"string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):T.isFunction(t)?void 0!==n.ready?n.ready(t):t(T):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),T.makeArray(t,this));if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:K.exec(t))||!i[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(i[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:w,!0)),X.test(i[1])&&T.isPlainObject(e))for(var i in e)T.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i])}else(n=w.getElementById(i[2]))&&n.parentNode&&(this.length=1,this[0]=n),this.context=w,this.selector=t}return this}).prototype=T.fn,J=T(w),/^(?:parents|prev(?:Until|All))/),tt={children:!0,contents:!0,next:!0,prev:!0};function et(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(T.contains(this,e[t]))return!0})},closest:function(t,e){for(var n,i=0,r=this.length,o=[],a=q.test(t)||"string"!=typeof t?T(t,e||this.context):0;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&T.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(1<o.length?T.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?r.call(T(t),this[0]):r.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return i(t,"parentNode")},parentsUntil:function(t,e,n){return i(t,"parentNode",n)},next:function(t){return et(t,"nextSibling")},prev:function(t){return et(t,"previousSibling")},nextAll:function(t){return i(t,"nextSibling")},prevAll:function(t){return i(t,"previousSibling")},nextUntil:function(t,e,n){return i(t,"nextSibling",n)},prevUntil:function(t,e,n){return i(t,"previousSibling",n)},siblings:function(t){return $((t.parentNode||{}).firstChild,t)},children:function(t){return $(t.firstChild)},contents:function(t){return t.contentDocument||T.merge([],t.childNodes)}},function(i,r){T.fn[i]=function(t,e){var n=T.map(this,r,t);return(e="Until"!==i.slice(-5)?t:e)&&"string"==typeof e&&(n=T.filter(e,n)),1<this.length&&(tt[i]||T.uniqueSort(n),Q.test(i))&&n.reverse(),this.pushStack(n)}});var nt,S=/\S+/g;function it(){w.removeEventListener("DOMContentLoaded",it),x.removeEventListener("load",it),T.ready()}T.Callbacks=function(i){var t,n;i="string"==typeof i?(t=i,n={},T.each(t.match(S)||[],function(t,e){n[e]=!0}),n):T.extend({},i);function r(){for(s=i.once,a=o=!0;c.length;u=-1)for(e=c.shift();++u<l.length;)!1===l[u].apply(e[0],e[1])&&i.stopOnFalse&&(u=l.length,e=!1);i.memory||(e=!1),o=!1,s&&(l=e?[]:"")}var o,e,a,s,l=[],c=[],u=-1,h={add:function(){return l&&(e&&!o&&(u=l.length-1,c.push(e)),function n(t){T.each(t,function(t,e){T.isFunction(e)?i.unique&&h.has(e)||l.push(e):e&&e.length&&"string"!==T.type(e)&&n(e)})}(arguments),e)&&!o&&r(),this},remove:function(){return T.each(arguments,function(t,e){for(var n;-1<(n=T.inArray(e,l,n));)l.splice(n,1),n<=u&&u--}),this},has:function(t){return t?-1<T.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return s=c=[],l=e="",this},disabled:function(){return!l},lock:function(){return s=c=[],e||(l=e=""),this},locked:function(){return!!s},fireWith:function(t,e){return s||(e=[t,(e=e||[]).slice?e.slice():e],c.push(e),o)||r(),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!a}};return h},T.extend({Deferred:function(t){var o=[["resolve","done",T.Callbacks("once memory"),"resolved"],["reject","fail",T.Callbacks("once memory"),"rejected"],["notify","progress",T.Callbacks("memory")]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var r=arguments;return T.Deferred(function(i){T.each(o,function(t,e){var n=T.isFunction(r[t])&&r[t];s[e[1]](function(){var t=n&&n.apply(this,arguments);t&&T.isFunction(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this===a?i.promise():this,n?[t]:arguments)})}),r=null}).promise()},promise:function(t){return null!=t?T.extend(t,a):a}},s={};return a.pipe=a.then,T.each(o,function(t,e){var n=e[2],i=e[3];a[e[1]]=n.add,i&&n.add(function(){r=i},o[1^t][2].disable,o[2][2].lock),s[e[0]]=function(){return s[e[0]+"With"](this===s?a:this,arguments),this},s[e[0]+"With"]=n.fireWith}),a.promise(s),t&&t.call(s,s),s},when:function(t){function e(e,n,i){return function(t){n[e]=this,i[e]=1<arguments.length?u.call(arguments):t,i===r?c.notifyWith(n,i):--l||c.resolveWith(n,i)}}var r,n,i,o=0,a=u.call(arguments),s=a.length,l=1!==s||t&&T.isFunction(t.promise)?s:0,c=1===l?t:T.Deferred();if(1<s)for(r=new Array(s),n=new Array(s),i=new Array(s);o<s;o++)a[o]&&T.isFunction(a[o].promise)?a[o].promise().progress(e(o,n,r)).done(e(o,i,a)).fail(c.reject):--l;return l||c.resolveWith(i,a),c.promise()}}),T.fn.ready=function(t){return T.ready.promise().done(t),this},T.extend({isReady:!1,readyWait:1,holdReady:function(t){t?T.readyWait++:T.ready(!0)},ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0)!==t&&0<--T.readyWait||(nt.resolveWith(w,[T]),T.fn.triggerHandler&&(T(w).triggerHandler("ready"),T(w).off("ready")))}}),T.ready.promise=function(t){return nt||(nt=T.Deferred(),"complete"===w.readyState||"loading"!==w.readyState&&!w.documentElement.doScroll?x.setTimeout(T.ready):(w.addEventListener("DOMContentLoaded",it),x.addEventListener("load",it))),nt.promise(t)},T.ready.promise();function h(t,e,n,i,r,o,a){var s=0,l=t.length,c=null==n;if("object"===T.type(n))for(s in r=!0,n)h(t,e,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,T.isFunction(i)||(a=!0),e=c?a?(e.call(t,i),null):(c=e,function(t,e,n){return c.call(T(t),n)}):e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:c?e.call(t):l?e(t[0],n):o}function g(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function e(){this.expando=T.expando+e.uid++}e.uid=1,e.prototype={register:function(t,e){e=e||{};return t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,writable:!0,configurable:!0}),t[this.expando]},cache:function(t){var e;return g(t)?((e=t[this.expando])||(e={},g(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e):{}},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[e]=n;else for(i in e)r[i]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][e]},access:function(t,e,n){var i;return void 0===e||e&&"string"==typeof e&&void 0===n?void 0!==(i=this.get(t,e))?i:this.get(t,T.camelCase(e)):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i,r,o=t[this.expando];if(void 0!==o){if(void 0===e)this.register(t);else{n=(i=T.isArray(e)?e.concat(e.map(T.camelCase)):(r=T.camelCase(e),e in o?[e,r]:(i=r)in o?[i]:i.match(S)||[])).length;for(;n--;)delete o[i[n]]}void 0!==e&&!T.isEmptyObject(o)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var v=new e,l=new e,rt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ot=/[A-Z]/g;function at(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(ot,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:rt.test(n)?T.parseJSON(n):n)}catch(t){}l.set(t,e,n)}else n=void 0;return n}T.extend({hasData:function(t){return l.hasData(t)||v.hasData(t)},data:function(t,e,n){return l.access(t,e,n)},removeData:function(t,e){l.remove(t,e)},_data:function(t,e,n){return v.access(t,e,n)},_removeData:function(t,e){v.remove(t,e)}}),T.fn.extend({data:function(i,t){var e,n,r,o=this[0],a=o&&o.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){l.set(this,i)}):h(this,function(e){var t,n;if(o&&void 0===e)return void 0!==(t=l.get(o,i)||l.get(o,i.replace(ot,"-$&").toLowerCase()))||(n=T.camelCase(i),void 0!==(t=l.get(o,n)))||void 0!==(t=at(o,n,void 0))?t:void 0;n=T.camelCase(i),this.each(function(){var t=l.get(this,n);l.set(this,n,e),-1<i.indexOf("-")&&void 0!==t&&l.set(this,i,e)})},null,t,1<arguments.length,null,!0);if(this.length&&(r=l.get(o),1===o.nodeType)&&!v.get(o,"hasDataAttrs")){for(e=a.length;e--;)a[e]&&0===(n=a[e].name).indexOf("data-")&&(n=T.camelCase(n.slice(5)),at(o,n,r[n]));v.set(o,"hasDataAttrs",!0)}return r},removeData:function(t){return this.each(function(){l.remove(this,t)})}}),T.extend({queue:function(t,e,n){var i;if(t)return i=v.get(t,e=(e||"fx")+"queue"),n&&(!i||T.isArray(n)?i=v.access(t,e,T.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=T.queue(t,e),i=n.length,r=n.shift(),o=T._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){T.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return v.get(t,n)||v.access(t,n,{empty:T.Callbacks("once memory").add(function(){v.remove(t,[e+"queue",n])})})}}),T.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?T.queue(this[0],e):void 0===n?this:this.each(function(){var t=T.queue(this,e,n);T._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&T.dequeue(this,e)})},dequeue:function(t){return this.each(function(){T.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--r||o.resolveWith(a,[a])}var i,r=1,o=T.Deferred(),a=this,s=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(i=v.get(a[s],t+"queueHooks"))&&i.empty&&(r++,i.empty.add(n));return n(),o.promise(e)}});function y(t,e){return"none"===T.css(t=e||t,"display")||!T.contains(t.ownerDocument,t)}var t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,d=new RegExp("^(?:([+-])=|)("+t+")([a-z%]*)$","i"),s=["Top","Right","Bottom","Left"];function st(t,e,n,i){var r,o=1,a=20,s=i?function(){return i.cur()}:function(){return T.css(t,e,"")},l=s(),c=n&&n[3]||(T.cssNumber[e]?"":"px"),u=(T.cssNumber[e]||"px"!==c&&+l)&&d.exec(T.css(t,e));if(u&&u[3]!==c)for(c=c||u[3],n=n||[],u=+l||1;u/=o=o||".5",T.style(t,e,u+c),o!==(o=s()/l)&&1!==o&&--a;);return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i)&&(i.unit=c,i.start=u,i.end=r),r}var lt=/^(?:checkbox|radio)$/i,ct=/<([\w:-]+)/,ut=/^$|\/(?:java|ecma)script/i,_={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function b(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&T.nodeName(t,e)?T.merge([t],n):n}function ht(t,e){for(var n=0,i=t.length;n<i;n++)v.set(t[n],"globalEval",!e||v.get(e[n],"globalEval"))}_.optgroup=_.option,_.tbody=_.tfoot=_.colgroup=_.caption=_.thead,_.th=_.td;var dt=/<|&#?\w+;/;function pt(t,e,n,i,r){for(var o,a,s,l,c,u=e.createDocumentFragment(),h=[],d=0,p=t.length;d<p;d++)if((o=t[d])||0===o)if("object"===T.type(o))T.merge(h,o.nodeType?[o]:o);else if(dt.test(o)){for(a=a||u.appendChild(e.createElement("div")),s=(ct.exec(o)||["",""])[1].toLowerCase(),s=_[s]||_._default,a.innerHTML=s[1]+T.htmlPrefilter(o)+s[2],c=s[0];c--;)a=a.lastChild;T.merge(h,a.childNodes),(a=u.firstChild).textContent=""}else h.push(e.createTextNode(o));for(u.textContent="",d=0;o=h[d++];)if(i&&-1<T.inArray(o,i))r&&r.push(o);else if(l=T.contains(o.ownerDocument,o),a=b(u.appendChild(o),"script"),l&&ht(a),n)for(c=0;o=a[c++];)ut.test(o.type||"")&&n.push(o);return u}A=w.createDocumentFragment().appendChild(w.createElement("div")),(k=w.createElement("input")).setAttribute("type","radio"),k.setAttribute("checked","checked"),k.setAttribute("name","t"),A.appendChild(k),m.checkClone=A.cloneNode(!0).cloneNode(!0).lastChild.checked,A.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!A.cloneNode(!0).lastChild.defaultValue;var ft=/^key/,mt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,gt=/^([^.]*)(?:\.(.+)|)/;function vt(){return!0}function c(){return!1}function yt(){try{return w.activeElement}catch(t){}}function _t(t,e,n,i,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)_t(t,s,n,i,e[s],o);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=c;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return T().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=T.guid++)),t.each(function(){T.event.add(this,e,r,i,n)})}T.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,c,u,h,d,p,f=v.get(e);if(f)for(n.handler&&(n=(o=n).handler,r=o.selector),n.guid||(n.guid=T.guid++),s=(s=f.events)||(f.events={}),a=(a=f.handle)||(f.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(S)||[""]).length;l--;)h=p=(d=gt.exec(t[l])||[])[1],d=(d[2]||"").split(".").sort(),h&&(c=T.event.special[h]||{},h=(r?c.delegateType:c.bindType)||h,c=T.event.special[h]||{},p=T.extend({type:h,origType:p,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:d.join(".")},o),(u=s[h])||((u=s[h]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,d,a))||e.addEventListener&&e.addEventListener(h,a),c.add&&(c.add.call(e,p),p.handler.guid||(p.handler.guid=n.guid)),r?u.splice(u.delegateCount++,0,p):u.push(p),T.event.global[h]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,c,u,h,d,p,f,m,g=v.hasData(t)&&v.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match(S)||[""]).length;c--;)if(p=m=(s=gt.exec(e[c])||[])[1],f=(s[2]||"").split(".").sort(),p){for(h=T.event.special[p]||{},d=l[p=(i?h.delegateType:h.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=d.length;o--;)u=d[o],!r&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(t,u));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,f,g.handle)||T.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)T.event.remove(t,p+e[c],n,i,!0);T.isEmptyObject(l)&&v.remove(t,"handle events")}},dispatch:function(t){t=T.event.fix(t);var e,n,i,r,o,a=u.call(arguments),s=(v.get(this,"events")||{})[t.type]||[],l=T.event.special[t.type]||{};if((a[0]=t).delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,t)){for(o=T.event.handlers.call(this,t,s),e=0;(i=o[e++])&&!t.isPropagationStopped();)for(t.currentTarget=i.elem,n=0;(r=i.handlers[n++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(r.namespace)||(t.handleObj=r,t.data=r.data,void 0!==(r=((T.event.special[r.origType]||{}).handle||r.handler).apply(i.elem,a))&&!1===(t.result=r)&&(t.preventDefault(),t.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,r,o,a=[],s=e.delegateCount,l=t.target;if(s&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(i=[],n=0;n<s;n++)void 0===i[r=(o=e[n]).selector+" "]&&(i[r]=o.needsContext?-1<T(r,this).index(l):T.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&a.push({elem:l,handlers:i})}return s<e.length&&a.push({elem:this,handlers:e.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,r=e.button;return null==t.pageX&&null!=e.clientX&&(n=(i=t.target.ownerDocument||w).documentElement,i=i.body,t.pageX=e.clientX+(n&&n.scrollLeft||i&&i.scrollLeft||0)-(n&&n.clientLeft||i&&i.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||i&&i.scrollTop||0)-(n&&n.clientTop||i&&i.clientTop||0)),t.which||void 0===r||(t.which=1&r?1:2&r?3:4&r?2:0),t}},fix:function(t){if(t[T.expando])return t;var e,n,i,r=t.type,o=t,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=mt.test(r)?this.mouseHooks:ft.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,t=new T.Event(o),e=i.length;e--;)t[n=i[e]]=o[n];return t.target||(t.target=w),3===t.target.nodeType&&(t.target=t.target.parentNode),a.filter?a.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==yt()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===yt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&T.nodeName(this,"input"))return this.click(),!1},_default:function(t){return T.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?vt:c):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||T.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=vt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=vt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=vt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,r){T.event.special[t]={delegateType:r,bindType:r,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||T.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=r),e}}}),T.fn.extend({on:function(t,e,n,i){return _t(this,t,e,n,i)},one:function(t,e,n,i){return _t(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)i=t.handleObj,T(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler);else{if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=c),this.each(function(){T.event.remove(this,t,n,e)});for(r in t)this.off(r,e,t[r])}return this}});var bt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,xt=/<script|<style|<link/i,wt=/checked\s*(?:[^=]|=\s*.checked.)/i,Tt=/^true\/(.*)/,St=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ct(t,e){return T.nodeName(t,"table")&&T.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function Et(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Mt(t){var e=Tt.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function Pt(t,e){var n,i,r,o,a,s;if(1===e.nodeType){if(v.hasData(t)&&(o=v.access(t),a=v.set(e,o),s=o.events))for(r in delete a.handle,a.events={},s)for(n=0,i=s[r].length;n<i;n++)T.event.add(e,r,s[r][n]);l.hasData(t)&&(o=l.access(t),a=T.extend({},o),l.set(e,a))}}function C(n,i,r,o){i=B.apply([],i);var t,e,a,s,l,c,u=0,h=n.length,d=h-1,p=i[0],f=T.isFunction(p);if(f||1<h&&"string"==typeof p&&!m.checkClone&&wt.test(p))return n.each(function(t){var e=n.eq(t);f&&(i[0]=p.call(this,t,e.html())),C(e,i,r,o)});if(h&&(e=(t=pt(i,n[0].ownerDocument,!1,n,o)).firstChild,1===t.childNodes.length&&(t=e),e||o)){for(s=(a=T.map(b(t,"script"),Et)).length;u<h;u++)l=t,u!==d&&(l=T.clone(l,!0,!0),s)&&T.merge(a,b(l,"script")),r.call(n[u],l,u);if(s)for(c=a[a.length-1].ownerDocument,T.map(a,Mt),u=0;u<s;u++)l=a[u],ut.test(l.type||"")&&!v.access(l,"globalEval")&&T.contains(c,l)&&(l.src?T._evalUrl&&T._evalUrl(l.src):T.globalEval(l.textContent.replace(St,"")))}return n}function kt(t,e,n){for(var i,r=e?T.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||T.cleanData(b(i)),i.parentNode&&(n&&T.contains(i.ownerDocument,i)&&ht(b(i,"script")),i.parentNode.removeChild(i));return t}T.extend({htmlPrefilter:function(t){return t.replace(bt,"<$1></$2>")},clone:function(t,e,n){var i,r,o,a,s,l,c,u=t.cloneNode(!0),h=T.contains(t.ownerDocument,t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(a=b(u),i=0,r=(o=b(t)).length;i<r;i++)s=o[i],l=a[i],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&lt.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(e)if(n)for(o=o||b(t),a=a||b(u),i=0,r=o.length;i<r;i++)Pt(o[i],a[i]);else Pt(t,u);return 0<(a=b(u,"script")).length&&ht(a,!h&&b(t,"script")),u},cleanData:function(t){for(var e,n,i,r=T.event.special,o=0;void 0!==(n=t[o]);o++)if(g(n)){if(e=n[v.expando]){if(e.events)for(i in e.events)r[i]?T.event.remove(n,i):T.removeEvent(n,i,e.handle);n[v.expando]=void 0}n[l.expando]&&(n[l.expando]=void 0)}}}),T.fn.extend({domManip:C,detach:function(t){return kt(this,t,!0)},remove:function(t){return kt(this,t)},text:function(t){return h(this,function(t){return void 0===t?T.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return C(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ct(this,t).appendChild(t)})},prepend:function(){return C(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Ct(this,t)).insertBefore(t,e.firstChild)})},before:function(){return C(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return C(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(b(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return T.clone(this,t,e)})},html:function(t){return h(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!xt.test(t)&&!_[(ct.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(T.cleanData(b(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return C(this,arguments,function(t){var e=this.parentNode;T.inArray(this,n)<0&&(T.cleanData(b(this)),e)&&e.replaceChild(t,this)},n)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){T.fn[t]=function(t){for(var e,n=[],i=T(t),r=i.length-1,o=0;o<=r;o++)e=o===r?this:this.clone(!0),T(i[o])[a](e),N.apply(n,e.get());return this.pushStack(n)}});var At,Ot={HTML:"block",BODY:"block"};function Rt(t,e){t=T(e.createElement(t)).appendTo(e.body),e=T.css(t[0],"display");return t.detach(),e}function Lt(t){var e=w,n=Ot[t];return n||("none"!==(n=Rt(t,e))&&n||((e=(At=(At||T("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),n=Rt(t,e),At.detach()),Ot[t]=n),n}function Dt(t){var e=t.ownerDocument.defaultView;return(e=e&&e.opener?e:x).getComputedStyle(t)}function jt(t,e,n,i){var r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in n=n.apply(t,i||[]),e)t.style[r]=o[r];return n}var It,n,Ft,Bt,o,a,Nt=/^margin/,Ut=new RegExp("^("+t+")(?!px)[a-z%]+$","i"),p=w.documentElement;function zt(){a.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",p.appendChild(o);var t=x.getComputedStyle(a);It="1%"!==t.top,Bt="2px"===t.marginLeft,n="4px"===t.width,a.style.marginRight="50%",Ft="4px"===t.marginRight,p.removeChild(o)}function E(t,e,n){var i,r,o=t.style;return""!==(r=(n=n||Dt(t))?n.getPropertyValue(e)||n[e]:void 0)&&void 0!==r||T.contains(t.ownerDocument,t)||(r=T.style(t,e)),n&&!m.pixelMarginRight()&&Ut.test(r)&&Nt.test(e)&&(t=o.width,e=o.minWidth,i=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=n.width,o.width=t,o.minWidth=e,o.maxWidth=i),void 0!==r?r+"":r}function Vt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}o=w.createElement("div"),(a=w.createElement("div")).style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),T.extend(m,{pixelPosition:function(){return zt(),It},boxSizingReliable:function(){return null==n&&zt(),n},pixelMarginRight:function(){return null==n&&zt(),Ft},reliableMarginLeft:function(){return null==n&&zt(),Bt},reliableMarginRight:function(){var t,e=a.appendChild(w.createElement("div"));return e.style.cssText=a.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",a.style.width="1px",p.appendChild(o),t=!parseFloat(x.getComputedStyle(e).marginRight),p.removeChild(o),a.removeChild(e),t}}));var Gt=/^(none|table(?!-c[ea]).+)/,Ht={position:"absolute",visibility:"hidden",display:"block"},Wt={letterSpacing:"0",fontWeight:"400"},$t=["Webkit","O","Moz","ms"],qt=w.createElement("div").style;function Xt(t){if(t in qt)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=$t.length;n--;)if((t=$t[n]+e)in qt)return t}function Yt(t,e,n){var i=d.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function Zt(t,e,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===e?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=T.css(t,n+s[o],!0,r)),i?("content"===n&&(a-=T.css(t,"padding"+s[o],!0,r)),"margin"!==n&&(a-=T.css(t,"border"+s[o]+"Width",!0,r))):(a+=T.css(t,"padding"+s[o],!0,r),"padding"!==n&&(a+=T.css(t,"border"+s[o]+"Width",!0,r)));return a}function Jt(t,e,n){var i=!0,r="width"===e?t.offsetWidth:t.offsetHeight,o=Dt(t),a="border-box"===T.css(t,"boxSizing",!1,o);if(r<=0||null==r){if(((r=E(t,e,o))<0||null==r)&&(r=t.style[e]),Ut.test(r))return r;i=a&&(m.boxSizingReliable()||r===t.style[e]),r=parseFloat(r)||0}return r+Zt(t,e,n||(a?"border":"content"),i,o)+"px"}function Kt(t,e){for(var n,i,r,o=[],a=0,s=t.length;a<s;a++)(i=t[a]).style&&(o[a]=v.get(i,"olddisplay"),n=i.style.display,e?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&y(i)&&(o[a]=v.access(i,"olddisplay",Lt(i.nodeName)))):(r=y(i),"none"===n&&r||v.set(i,"olddisplay",r?n:T.css(i,"display"))));for(a=0;a<s;a++)!(i=t[a]).style||e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?o[a]||"":"none");return t}function M(t,e,n,i,r){return new M.prototype.init(t,e,n,i,r)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e)return""===(e=E(t,"opacity"))?"1":e}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=T.camelCase(e),l=t.style;if(e=T.cssProps[s]||(T.cssProps[s]=Xt(s)||s),a=T.cssHooks[e]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:l[e];"string"===(o=typeof n)&&(r=d.exec(n))&&r[1]&&(n=st(t,e,r),o="number"),null==n||n!=n||("number"===o&&(n+=r&&r[3]||(T.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i)))||(l[e]=n)}},css:function(t,e,n,i){var r,o=T.camelCase(e);return e=T.cssProps[o]||(T.cssProps[o]=Xt(o)||o),"normal"===(r=void 0===(r=(o=T.cssHooks[e]||T.cssHooks[o])&&"get"in o?o.get(t,!0,n):r)?E(t,e,i):r)&&e in Wt&&(r=Wt[e]),(""===n||n)&&(o=parseFloat(r),!0===n||isFinite(o))?o||0:r}}),T.each(["height","width"],function(t,r){T.cssHooks[r]={get:function(t,e,n){if(e)return Gt.test(T.css(t,"display"))&&0===t.offsetWidth?jt(t,Ht,function(){return Jt(t,r,n)}):Jt(t,r,n)},set:function(t,e,n){var i=n&&Dt(t),n=n&&Zt(t,r,n,"border-box"===T.css(t,"boxSizing",!1,i),i);return n&&(i=d.exec(e))&&"px"!==(i[3]||"px")&&(t.style[r]=e,e=T.css(t,r)),Yt(0,e,n)}}}),T.cssHooks.marginLeft=Vt(m.reliableMarginLeft,function(t,e){if(e)return(parseFloat(E(t,"marginLeft"))||t.getBoundingClientRect().left-jt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),T.cssHooks.marginRight=Vt(m.reliableMarginRight,function(t,e){if(e)return jt(t,{display:"inline-block"},E,[t,"marginRight"])}),T.each({margin:"",padding:"",border:"Width"},function(r,o){T.cssHooks[r+o]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[r+s[e]+o]=i[e]||i[e-2]||i[0];return n}},Nt.test(r)||(T.cssHooks[r+o].set=Yt)}),T.fn.extend({css:function(t,e){return h(this,function(t,e,n){var i,r,o={},a=0;if(T.isArray(e)){for(i=Dt(t),r=e.length;a<r;a++)o[e[a]]=T.css(t,e[a],!1,i);return o}return void 0!==n?T.style(t,e,n):T.css(t,e)},t,e,1<arguments.length)},show:function(){return Kt(this,!0)},hide:function(){return Kt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){y(this)?T(this).show():T(this).hide()})}}),((T.Tween=M).prototype={constructor:M,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var t=M.propHooks[this.prop];return(t&&t.get?t:M.propHooks._default).get(this)},run:function(t){var e,n=M.propHooks[this.prop];return this.options.duration?this.pos=e=T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:M.propHooks._default).set(this),this}}).init.prototype=M.prototype,(M.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=T.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[T.cssProps[t.prop]]&&!T.cssHooks[t.prop]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=M.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=M.prototype.init,T.fx.step={};var P,Qt,k,A,te=/^(?:toggle|show|hide)$/,ee=/queueHooks$/;function ne(){return x.setTimeout(function(){P=void 0}),P=T.now()}function ie(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=s[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function re(t,e,n){for(var i,r=(O.tweeners[e]||[]).concat(O.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function O(r,t,e){var n,o,i,a,s,l,c,u=0,h=O.prefilters.length,d=T.Deferred().always(function(){delete p.elem}),p=function(){if(o)return!1;for(var t=P||ne(),t=Math.max(0,f.startTime+f.duration-t),e=1-(t/f.duration||0),n=0,i=f.tweens.length;n<i;n++)f.tweens[n].run(e);return d.notifyWith(r,[f,e,t]),e<1&&i?t:(d.resolveWith(r,[f]),!1)},f=d.promise({elem:r,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},e),originalProperties:t,originalOptions:e,startTime:P||ne(),duration:e.duration,tweens:[],createTween:function(t,e){e=T.Tween(r,f.opts,t,e,f.opts.specialEasing[t]||f.opts.easing);return f.tweens.push(e),e},stop:function(t){var e=0,n=t?f.tweens.length:0;if(!o){for(o=!0;e<n;e++)f.tweens[e].run(1);t?(d.notifyWith(r,[f,1,0]),d.resolveWith(r,[f,t])):d.rejectWith(r,[f,t])}return this}}),m=f.props,g=m,v=f.opts.specialEasing;for(i in g)if(s=v[a=T.camelCase(i)],l=g[i],T.isArray(l)&&(s=l[1],l=g[i]=l[0]),i!==a&&(g[a]=l,delete g[i]),(c=T.cssHooks[a])&&"expand"in c)for(i in l=c.expand(l),delete g[a],l)i in g||(g[i]=l[i],v[i]=s);else v[a]=s;for(;u<h;u++)if(n=O.prefilters[u].call(f,r,m,f.opts))return T.isFunction(n.stop)&&(T._queueHooks(f.elem,f.opts.queue).stop=T.proxy(n.stop,n)),n;return T.map(m,re,f),T.isFunction(f.opts.start)&&f.opts.start.call(r,f),T.fx.timer(T.extend(p,{elem:r,anim:f,queue:f.opts.queue})),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always)}T.Animation=T.extend(O,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return st(n.elem,t,d.exec(e),n),n}]},tweener:function(t,e){for(var n,i=0,r=(t=T.isFunction(t)?(e=t,["*"]):t.match(S)).length;i<r;i++)n=t[i],O.tweeners[n]=O.tweeners[n]||[],O.tweeners[n].unshift(e)},prefilters:[function(e,t,n){var i,r,o,a,s,l,c,u=this,h={},d=e.style,p=e.nodeType&&y(e),f=v.get(e,"fxshow");for(i in n.queue||(null==(s=T._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,u.always(function(){u.always(function(){s.unqueued--,T.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(c=T.css(e,"display"))?v.get(e,"olddisplay")||Lt(e.nodeName):c))&&"none"===T.css(e,"float")&&(d.display="inline-block"),n.overflow&&(d.overflow="hidden",u.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]})),t)if(r=t[i],te.exec(r)){if(delete t[i],o=o||"toggle"===r,r===(p?"hide":"show")){if("show"!==r||!f||void 0===f[i])continue;p=!0}h[i]=f&&f[i]||T.style(e,i)}else c=void 0;if(T.isEmptyObject(h))"inline"===("none"===c?Lt(e.nodeName):c)&&(d.display=c);else for(i in f?"hidden"in f&&(p=f.hidden):f=v.access(e,"fxshow",{}),o&&(f.hidden=!p),p?T(e).show():u.done(function(){T(e).hide()}),u.done(function(){for(var t in v.remove(e,"fxshow"),h)T.style(e,t,h[t])}),h)a=re(p?f[i]:0,i,u),i in f||(f[i]=a.start,p&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}],prefilter:function(t,e){e?O.prefilters.unshift(t):O.prefilters.push(t)}}),T.speed=function(t,e,n){var i=t&&"object"==typeof t?T.extend({},t):{complete:n||!n&&e||T.isFunction(t)&&t,duration:t,easing:n&&e||e&&!T.isFunction(e)&&e};return i.duration=T.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in T.fx.speeds?T.fx.speeds[i.duration]:T.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){T.isFunction(i.old)&&i.old.call(this),i.queue&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(t,e,n,i){return this.filter(y).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){function r(){var t=O(this,T.extend({},e),a);(o||v.get(this,"finish"))&&t.stop(!0)}var o=T.isEmptyObject(e),a=T.speed(t,n,i);return r.finish=r,o||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(r,t,o){function a(t){var e=t.stop;delete t.stop,e(o)}return"string"!=typeof r&&(o=t,t=r,r=void 0),t&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var t=!0,e=null!=r&&r+"queueHooks",n=T.timers,i=v.get(this);if(e)i[e]&&i[e].stop&&a(i[e]);else for(e in i)i[e]&&i[e].stop&&ee.test(e)&&a(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=r&&n[e].queue!==r||(n[e].anim.stop(o),t=!1,n.splice(e,1));!t&&o||T.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=v.get(this),n=e[a+"queue"],i=e[a+"queueHooks"],r=T.timers,o=n?n.length:0;for(e.finish=!0,T.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===a&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<o;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),T.each(["toggle","show","hide"],function(t,i){var r=T.fn[i];T.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?r.apply(this,arguments):this.animate(ie(i,!0),t,e,n)}}),T.each({slideDown:ie("show"),slideUp:ie("hide"),slideToggle:ie("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){T.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),T.timers=[],T.fx.tick=function(){var t,e=0,n=T.timers;for(P=T.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||T.fx.stop(),P=void 0},T.fx.timer=function(t){T.timers.push(t),t()?T.fx.start():T.timers.pop()},T.fx.interval=13,T.fx.start=function(){Qt=Qt||x.setInterval(T.fx.tick,T.fx.interval)},T.fx.stop=function(){x.clearInterval(Qt),Qt=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(i,t){return i=T.fx&&T.fx.speeds[i]||i,this.queue(t=t||"fx",function(t,e){var n=x.setTimeout(t,i);e.stop=function(){x.clearTimeout(n)}})},k=w.createElement("input"),A=w.createElement("select"),t=A.appendChild(w.createElement("option")),k.type="checkbox",m.checkOn=""!==k.value,m.optSelected=t.selected,A.disabled=!0,m.optDisabled=!t.disabled,(k=w.createElement("input")).value="t",k.type="radio",m.radioValue="t"===k.value;var oe,R=T.expr.attrHandle,ae=(T.fn.extend({attr:function(t,e){return h(this,T.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){T.removeAttr(this,t)})}}),T.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?T.prop(t,e,n):(1===o&&T.isXMLDoc(t)||(e=e.toLowerCase(),r=T.attrHooks[e]||(T.expr.match.bool.test(e)?oe:void 0)),void 0!==n?null===n?void T.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):!(r&&"get"in r&&null!==(i=r.get(t,e)))&&null==(i=T.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){var n;if(!m.radioValue&&"radio"===e&&T.nodeName(t,"input"))return n=t.value,t.setAttribute("type",e),n&&(t.value=n),e}}},removeAttr:function(t,e){var n,i,r=0,o=e&&e.match(S);if(o&&1===t.nodeType)for(;n=o[r++];)i=T.propFix[n]||n,T.expr.match.bool.test(n)&&(t[i]=!1),t.removeAttribute(n)}}),oe={set:function(t,e,n){return!1===e?T.removeAttr(t,n):t.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),function(t,e){var o=R[e]||T.find.attr;R[e]=function(t,e,n){var i,r;return n||(r=R[e],R[e]=i,i=null!=o(t,e,n)?e.toLowerCase():null,R[e]=r),i}}),/^(?:input|select|textarea|button)$/i),se=/^(?:a|area)$/i,le=(T.fn.extend({prop:function(t,e){return h(this,T.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[T.propFix[t]||t]})}}),T.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(t)||(e=T.propFix[e]||e,r=T.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):ae.test(t.nodeName)||se.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode)&&t.parentNode.selectedIndex}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){T.propFix[this.toLowerCase()]=this}),/[\t\r\n\f]/g);function L(t){return t.getAttribute&&t.getAttribute("class")||""}T.fn.extend({addClass:function(e){var t,n,i,r,o,a,s=0;if(T.isFunction(e))return this.each(function(t){T(this).addClass(e.call(this,t,L(this)))});if("string"==typeof e&&e)for(t=e.match(S)||[];n=this[s++];)if(a=L(n),i=1===n.nodeType&&(" "+a+" ").replace(le," ")){for(o=0;r=t[o++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a!==(a=T.trim(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,o,a,s=0;if(T.isFunction(e))return this.each(function(t){T(this).removeClass(e.call(this,t,L(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(S)||[];n=this[s++];)if(a=L(n),i=1===n.nodeType&&(" "+a+" ").replace(le," ")){for(o=0;r=t[o++];)for(;-1<i.indexOf(" "+r+" ");)i=i.replace(" "+r+" "," ");a!==(a=T.trim(i))&&n.setAttribute("class",a)}return this},toggleClass:function(r,e){var o=typeof r;return"boolean"==typeof e&&"string"==o?e?this.addClass(r):this.removeClass(r):T.isFunction(r)?this.each(function(t){T(this).toggleClass(r.call(this,t,L(this),e),e)}):this.each(function(){var t,e,n,i;if("string"==o)for(e=0,n=T(this),i=r.match(S)||[];t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==r&&"boolean"!=o||((t=L(this))&&v.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==r&&v.get(this,"__className__")||""))})},hasClass:function(t){for(var e,n=0,i=" "+t+" ";e=this[n++];)if(1===e.nodeType&&-1<(" "+L(e)+" ").replace(le," ").indexOf(i))return!0;return!1}});var ce=/\r/g,ue=/[\x20\t\r\n\f]+/g,he=(T.fn.extend({val:function(e){var n,t,i,r=this[0];return arguments.length?(i=T.isFunction(e),this.each(function(t){1!==this.nodeType||(null==(t=i?e.call(this,t,T(this).val()):e)?t="":"number"==typeof t?t+="":T.isArray(t)&&(t=T.map(t,function(t){return null==t?"":t+""})),(n=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value"))||(this.value=t)})):r?(n=T.valHooks[r.type]||T.valHooks[r.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(r,"value"))?t:"string"==typeof(t=r.value)?t.replace(ce,""):null==t?"":t:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:T.trim(T.text(t)).replace(ue," ")}},select:{get:function(t){for(var e,n=t.options,i=t.selectedIndex,r="select-one"===t.type||i<0,o=r?null:[],a=r?i+1:n.length,s=i<0?a:r?i:0;s<a;s++)if(((e=n[s]).selected||s===i)&&(m.optDisabled?!e.disabled:null===e.getAttribute("disabled"))&&(!e.parentNode.disabled||!T.nodeName(e.parentNode,"optgroup"))){if(e=T(e).val(),r)return e;o.push(e)}return o},set:function(t,e){for(var n,i,r=t.options,o=T.makeArray(e),a=r.length;a--;)((i=r[a]).selected=-1<T.inArray(T.valHooks.option.get(i),o))&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],function(){T.valHooks[this]={set:function(t,e){if(T.isArray(e))return t.checked=-1<T.inArray(T(t).val(),e)}},m.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),/^(?:focusinfocus|focusoutblur)$/),D=(T.extend(T.event,{trigger:function(t,e,n,i){var r,o,a,s,l,c,u=[n||w],h=f.call(t,"type")?t.type:t,d=f.call(t,"namespace")?t.namespace.split("."):[],p=o=n=n||w;if(3!==n.nodeType&&8!==n.nodeType&&!he.test(h+T.event.triggered)&&(-1<h.indexOf(".")&&(h=(d=h.split(".")).shift(),d.sort()),s=h.indexOf(":")<0&&"on"+h,(t=t[T.expando]?t:new T.Event(h,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=d.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:T.makeArray(e,[t]),c=T.event.special[h]||{},i||!c.trigger||!1!==c.trigger.apply(n,e))){if(!i&&!c.noBubble&&!T.isWindow(n)){for(a=c.delegateType||h,he.test(a+h)||(p=p.parentNode);p;p=p.parentNode)u.push(p),o=p;o===(n.ownerDocument||w)&&u.push(o.defaultView||o.parentWindow||x)}for(r=0;(p=u[r++])&&!t.isPropagationStopped();)t.type=1<r?a:c.bindType||h,(l=(v.get(p,"events")||{})[t.type]&&v.get(p,"handle"))&&l.apply(p,e),(l=s&&p[s])&&l.apply&&g(p)&&(t.result=l.apply(p,e),!1===t.result)&&t.preventDefault();return t.type=h,i||t.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),e)||!g(n)||s&&T.isFunction(n[h])&&!T.isWindow(n)&&((o=n[s])&&(n[s]=null),n[T.event.triggered=h](),T.event.triggered=void 0,o)&&(n[s]=o),t.result}},simulate:function(t,e,n){n=T.extend(new T.Event,n,{type:t,isSimulated:!0});T.event.trigger(n,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each(function(){T.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return T.event.trigger(t,e,n,!0)}}),T.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,n){T.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),T.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),m.focusin="onfocusin"in x,m.focusin||T.each({focus:"focusin",blur:"focusout"},function(n,i){function r(t){T.event.simulate(i,t.target,T.event.fix(t))}T.event.special[i]={setup:function(){var t=this.ownerDocument||this,e=v.access(t,i);e||t.addEventListener(n,r,!0),v.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=v.access(t,i)-1;e?v.access(t,i,e):(t.removeEventListener(n,r,!0),v.remove(t,i))}}}),x.location),de=T.now(),pe=/\?/,fe=(T.parseJSON=function(t){return JSON.parse(t+"")},T.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new x.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||T.error("Invalid XML: "+t),e},/#.*$/),me=/([?&])_=[^&]*/,ge=/^(.*?):[ \t]*([^\r\n]*)$/gm,ve=/^(?:GET|HEAD)$/,ye=/^\/\//,_e={},be={},xe="*/".concat("*"),we=w.createElement("a");function Te(o){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,r=t.toLowerCase().match(S)||[];if(T.isFunction(e))for(;n=r[i++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(e)):(o[n]=o[n]||[]).push(e)}}function Se(e,i,r,o){var a={},s=e===be;function l(t){var n;return a[t]=!0,T.each(e[t]||[],function(t,e){e=e(i,r,o);return"string"!=typeof e||s||a[e]?s?!(n=e):void 0:(i.dataTypes.unshift(e),l(e),!1)}),n}return l(i.dataTypes[0])||!a["*"]&&l("*")}function Ce(t,e){var n,i,r=T.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i=i||{})[n]=e[n]);return i&&T.extend(!0,t,i),t}we.href=D.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:D.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(D.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":T.parseJSON,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ce(Ce(t,T.ajaxSettings),e):Ce(T.ajaxSettings,t)},ajaxPrefilter:Te(_e),ajaxTransport:Te(be),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0);var l,c,u,n,h,d,i,p=T.ajaxSetup({},e=e||{}),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?T(f):T.event,g=T.Deferred(),v=T.Callbacks("once memory"),y=p.statusCode||{},r={},o={},_=0,a="canceled",b={readyState:0,getResponseHeader:function(t){var e;if(2===_){if(!n)for(n={};e=ge.exec(u);)n[e[1].toLowerCase()]=e[2];e=n[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===_?u:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return _||(t=o[n]=o[n]||t,r[t]=e),this},overrideMimeType:function(t){return _||(p.mimeType=t),this},statusCode:function(t){if(t)if(_<2)for(var e in t)y[e]=[y[e],t[e]];else b.always(t[b.status]);return this},abort:function(t){t=t||a;return l&&l.abort(t),s(0,t),this}};if(g.promise(b).complete=v.add,b.success=b.done,b.error=b.fail,p.url=((t||p.url||D.href)+"").replace(fe,"").replace(ye,D.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=T.trim(p.dataType||"*").toLowerCase().match(S)||[""],null==p.crossDomain){t=w.createElement("a");try{t.href=p.url,t.href=t.href,p.crossDomain=we.protocol+"//"+we.host!=t.protocol+"//"+t.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Se(_e,p,e,b),2!==_){for(i in(d=T.event&&p.global)&&0==T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!ve.test(p.type),c=p.url,p.hasContent||(p.data&&(c=p.url+=(pe.test(c)?"&":"?")+p.data,delete p.data),!1===p.cache&&(p.url=me.test(c)?c.replace(me,"$1_="+de++):c+(pe.test(c)?"&":"?")+"_="+de++)),p.ifModified&&(T.lastModified[c]&&b.setRequestHeader("If-Modified-Since",T.lastModified[c]),T.etag[c])&&b.setRequestHeader("If-None-Match",T.etag[c]),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&b.setRequestHeader("Content-Type",p.contentType),b.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+xe+"; q=0.01":""):p.accepts["*"]),p.headers)b.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(!1===p.beforeSend.call(f,b,p)||2===_))return b.abort();for(i in a="abort",{success:1,error:1,complete:1})b[i](p[i]);if(l=Se(be,p,e,b)){if(b.readyState=1,d&&m.trigger("ajaxSend",[b,p]),2===_)return b;p.async&&0<p.timeout&&(h=x.setTimeout(function(){b.abort("timeout")},p.timeout));try{_=1,l.send(r,s)}catch(t){if(!(_<2))throw t;s(-1,t)}}else s(-1,"No Transport")}return b;function s(t,e,n,i){var r,o,a,s=e;2!==_&&(_=2,h&&x.clearTimeout(h),l=void 0,u=i||"",b.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(a=function(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a=a||r}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,b,n)),a=function(t,e,n,i){var r,o,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=c[l+" "+o]||c["* "+o]))for(r in c)if((s=r.split(" "))[1]===o&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(p,a,b,i),i?(p.ifModified&&((n=b.getResponseHeader("Last-Modified"))&&(T.lastModified[c]=n),n=b.getResponseHeader("etag"))&&(T.etag[c]=n),204===t||"HEAD"===p.type?s="nocontent":304===t?s="notmodified":(s=a.state,r=a.data,i=!(o=a.error))):(o=s,!t&&s||(s="error",t<0&&(t=0))),b.status=t,b.statusText=(e||s)+"",i?g.resolveWith(f,[r,s,b]):g.rejectWith(f,[b,s,o]),b.statusCode(y),y=void 0,d&&m.trigger(i?"ajaxSuccess":"ajaxError",[b,p,i?r:o]),v.fireWith(f,[b,s]),d)&&(m.trigger("ajaxComplete",[b,p]),--T.active||T.event.trigger("ajaxStop"))}},getJSON:function(t,e,n){return T.get(t,e,n,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],function(t,r){T[r]=function(t,e,n,i){return T.isFunction(e)&&(i=i||n,n=e,e=void 0),T.ajax(T.extend({url:t,type:r,dataType:i,data:e,success:n},T.isPlainObject(t)&&t))}}),T._evalUrl=function(t){return T.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},T.fn.extend({wrapAll:function(e){var t;return T.isFunction(e)?this.each(function(t){T(this).wrapAll(e.call(this,t))}):(this[0]&&(t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(n){return T.isFunction(n)?this.each(function(t){T(this).wrapInner(n.call(this,t))}):this.each(function(){var t=T(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=T.isFunction(e);return this.each(function(t){T(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(){return this.parent().each(function(){T.nodeName(this,"body")||T(this).replaceWith(this.childNodes)}).end()}}),T.expr.filters.hidden=function(t){return!T.expr.filters.visible(t)},T.expr.filters.visible=function(t){return 0<t.offsetWidth||0<t.offsetHeight||0<t.getClientRects().length};var Ee=/%20/g,Me=/\[\]$/,Pe=/\r?\n/g,ke=/^(?:submit|button|image|reset|file)$/i,Ae=/^(?:input|select|textarea|keygen)/i;T.param=function(t,e){function n(t,e){e=T.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)}var i,r=[];if(void 0===e&&(e=T.ajaxSettings&&T.ajaxSettings.traditional),T.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,function(){n(this.name,this.value)});else for(i in t)!function n(i,t,r,o){if(T.isArray(t))T.each(t,function(t,e){r||Me.test(i)?o(i,e):n(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,r,o)});else if(r||"object"!==T.type(t))o(i,t);else for(var e in t)n(i+"["+e+"]",t[e],r,o)}(i,t[i],e,n);return r.join("&").replace(Ee,"+")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&Ae.test(this.nodeName)&&!ke.test(t)&&(this.checked||!lt.test(t))}).map(function(t,e){var n=T(this).val();return null==n?null:T.isArray(n)?T.map(n,function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}}):{name:e.name,value:n.replace(Pe,"\r\n")}}).get()}}),T.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(t){}};var Oe={0:200,1223:204},j=T.ajaxSettings.xhr(),Re=(m.cors=!!j&&"withCredentials"in j,m.ajax=j=!!j,T.ajaxTransport(function(r){var o,a;if(m.cors||j&&!r.crossDomain)return{send:function(t,e){var n,i=r.xhr();if(i.open(r.type,r.url,r.async,r.username,r.password),r.xhrFields)for(n in r.xhrFields)i[n]=r.xhrFields[n];for(n in r.mimeType&&i.overrideMimeType&&i.overrideMimeType(r.mimeType),r.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);o=function(t){return function(){o&&(o=a=i.onload=i.onerror=i.onabort=i.onreadystatechange=null,"abort"===t?i.abort():"error"===t?"number"!=typeof i.status?e(0,"error"):e(i.status,i.statusText):e(Oe[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=o(),a=i.onerror=o("error"),void 0!==i.onabort?i.onabort=a:i.onreadystatechange=function(){4===i.readyState&&x.setTimeout(function(){o&&a()})},o=o("abort");try{i.send(r.hasContent&&r.data||null)}catch(t){if(o)throw t}},abort:function(){o&&o()}}}),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),T.ajaxTransport("script",function(n){var i,r;if(n.crossDomain)return{send:function(t,e){i=T("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(t){i.remove(),r=null,t&&e("error"===t.type?404:200,t.type)}),w.head.appendChild(i[0])},abort:function(){r&&r()}}}),[]),Le=/(=)\?(?=&|$)|\?\?/,De=(T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Re.pop()||T.expando+"_"+de++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(t,e,n){var i,r,o,a=!1!==t.jsonp&&(Le.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Le.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=T.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(Le,"$1"+i):!1!==t.jsonp&&(t.url+=(pe.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return o||T.error(i+" was not called"),o[0]},t.dataTypes[0]="json",r=x[i],x[i]=function(){o=arguments},n.always(function(){void 0===r?T(x).removeProp(i):x[i]=r,t[i]&&(t.jsonpCallback=e.jsonpCallback,Re.push(i)),o&&T.isFunction(r)&&r(o[0]),o=r=void 0}),"script"}),T.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||w;var i=X.exec(t),n=!n&&[];return i?[e.createElement(i[1])]:(i=pt([t],e,n),n&&n.length&&T(n).remove(),T.merge([],i.childNodes))},T.fn.load);function je(t){return T.isWindow(t)?t:9===t.nodeType&&t.defaultView}T.fn.load=function(t,e,n){var i,r,o,a,s;return"string"!=typeof t&&De?De.apply(this,arguments):(a=this,-1<(s=t.indexOf(" "))&&(i=T.trim(t.slice(s)),t=t.slice(0,s)),T.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),0<a.length&&T.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?T("<div>").append(T.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this)},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){T.fn[e]=function(t){return this.on(e,t)}}),T.expr.filters.animated=function(e){return T.grep(T.timers,function(t){return e===t.elem}).length},T.offset={setOffset:function(t,e,n){var i,r,o,a,s=T.css(t,"position"),l=T(t),c={};"static"===s&&(t.style.position="relative"),o=l.offset(),i=T.css(t,"top"),a=T.css(t,"left"),s=("absolute"===s||"fixed"===s)&&-1<(i+a).indexOf("auto")?(r=(s=l.position()).top,s.left):(r=parseFloat(i)||0,parseFloat(a)||0),null!=(e=T.isFunction(e)?e.call(t,n,T.extend({},o)):e).top&&(c.top=e.top-o.top+r),null!=e.left&&(c.left=e.left-o.left+s),"using"in e?e.using.call(t,c):l.css(c)}},T.fn.extend({offset:function(e){var t,n,i,r;return arguments.length?void 0===e?this:this.each(function(t){T.offset.setOffset(this,e,t)}):(i={top:0,left:0},(r=(n=this[0])&&n.ownerDocument)?(t=r.documentElement,T.contains(t,n)?(i=n.getBoundingClientRect(),n=je(r),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0)},position:function(){var t,e,n,i;if(this[0])return n=this[0],i={top:0,left:0},"fixed"===T.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),(i=T.nodeName(t[0],"html")?i:t.offset()).top+=T.css(t[0],"borderTopWidth",!0),i.left+=T.css(t[0],"borderLeftWidth",!0)),{top:e.top-i.top-T.css(n,"marginTop",!0),left:e.left-i.left-T.css(n,"marginLeft",!0)}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||p})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,r){var o="pageYOffset"===r;T.fn[e]=function(t){return h(this,function(t,e,n){var i=je(t);if(void 0===n)return i?i[r]:t[e];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):t[e]=n},e,t,arguments.length)}}),T.each(["top","left"],function(t,n){T.cssHooks[n]=Vt(m.pixelPosition,function(t,e){if(e)return e=E(t,n),Ut.test(e)?T(t).position()[n]+"px":e})}),T.each({Height:"height",Width:"width"},function(o,a){T.each({padding:"inner"+o,content:a,"":"outer"+o},function(i,t){T.fn[t]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),r=i||(!0===t||!0===e?"margin":"border");return h(this,function(t,e,n){var i;return T.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+o],i["scroll"+o],t.body["offset"+o],i["offset"+o],i["client"+o])):void 0===n?T.css(t,e,r):T.style(t,e,n,r)},a,n?t:void 0,n,null)}})}),T.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},size:function(){return this.length}}),T.fn.andSelf=T.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return T});var Ie=x.jQuery,Fe=x.$;return T.noConflict=function(t){return x.$===T&&(x.$=Fe),t&&x.jQuery===T&&(x.jQuery=Ie),T},I||(x.jQuery=x.$=T),T},"object"==typeof e&&"object"==typeof e.exports?e.exports=i.document?r(i,!0):function(t){if(t.document)return r(t);throw new Error("jQuery requires a window with a document")}:r(i)},{}],423:[function(t,e,n){function r(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}e.exports=function(t,e){e=e||{};var n=typeof t;if(!("string"==n&&0<t.length)){if("number"==n&&!1===isNaN(t))if(e.long)return r(n=t,864e5,"day")||r(n,36e5,"hour")||r(n,6e4,"minute")||r(n,1e3,"second")||n+" ms";else{e=t;return 864e5<=e?Math.round(e/864e5)+"d":36e5<=e?Math.round(e/36e5)+"h":6e4<=e?Math.round(e/6e4)+"m":1e3<=e?Math.round(e/1e3)+"s":e+"ms"}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}n=t;if(!(100<(n=String(n)).length)){n=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(n);if(n){var i=parseFloat(n[1]);switch((n[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*i;case"days":case"day":case"d":return 864e5*i;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*i;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*i;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*i;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return i;default:return}}}}},{}],424:[function(t,e,n){"use strict";var l=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(Object.assign){var t=new String("abc");if(t[5]="de","5"!==Object.getOwnPropertyNames(t)[0]){for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;var i,r=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"===r.join(""))return i={},"abcdefghijklmnopqrst".split("").forEach(function(t){i[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")?1:void 0}}}catch(t){}}()?Object.assign:function(t,e){for(var n,i=function(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),r=1;r<arguments.length;r++){for(var o in n=Object(arguments[r]))c.call(n,o)&&(i[o]=n[o]);if(l)for(var a=l(n),s=0;s<a.length;s++)u.call(n,a[s])&&(i[a[s]]=n[a[s]])}return i}},{}],425:[function(t,e,n){"use strict";var d,p,f,m,g,v,y,i,_,r;Object.keys||(d=Object.prototype.hasOwnProperty,p=Object.prototype.toString,f=t("./isArguments"),t=Object.prototype.propertyIsEnumerable,m=!t.call({toString:null},"toString"),g=t.call(function(){},"prototype"),v=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],y=function(t){var e=t.constructor;return e&&e.prototype===t},i={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},_=function(){if("undefined"!=typeof window)for(var t in window)try{if(!i["$"+t]&&d.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{y(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),r=function(t){var e=null!==t&&"object"==typeof t,n="[object Function]"===p.call(t),i=f(t),r=e&&"[object String]"===p.call(t),o=[];if(!e&&!n&&!i)throw new TypeError("Object.keys called on a non-object");var a=g&&n;if(r&&0<t.length&&!d.call(t,0))for(var s=0;s<t.length;++s)o.push(String(s));if(i&&0<t.length)for(var l=0;l<t.length;++l)o.push(String(l));else for(var c in t)a&&"prototype"===c||!d.call(t,c)||o.push(String(c));if(m)for(var u=function(t){if("undefined"==typeof window||!_)return y(t);try{return y(t)}catch(t){return!1}}(t),h=0;h<v.length;++h)u&&"constructor"===v[h]||!d.call(t,v[h])||o.push(v[h]);return o}),e.exports=r},{"./isArguments":427}],426:[function(t,e,n){"use strict";var i=Array.prototype.slice,r=t("./isArguments"),o=Object.keys,a=o?function(t){return o(t)}:t("./implementation"),s=Object.keys;a.shim=function(){return Object.keys?function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2)||(Object.keys=function(t){return r(t)?s(i.call(t)):s(t)}):Object.keys=a,Object.keys||a},e.exports=a},{"./implementation":425,"./isArguments":427}],427:[function(t,e,n){"use strict";var i=Object.prototype.toString;e.exports=function(t){var e=i.call(t);return"[object Arguments]"===e||"[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&0<=t.length&&"[object Function]"===i.call(t.callee)}},{}],428:[function(t,e,n){"use strict";e.exports=(e,n={})=>{if(e){const r={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?))?((((?:[^?#/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@/]*@)([^:/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#/]*\.[^?#/.]+(?:[?#]|$)))*\/?)?([^?#/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var i=r.parser[n.strictMode?"strict":"loose"].exec(e);const o={};let t=14;for(;t--;)o[r.key[t]]=i[t]||"";return o[r.q.name]={},o[r.key[12]].replace(r.q.parser,function(t,e,n){e&&(o[r.q.name][e]=n)}),o}}},{}],429:[function(t,e,c){!function(a){!function(){function r(t,e){for(var n=0,i=t.length-1;0<=i;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;)t.unshift("..");return t}function o(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i<t.length;i++)e(t[i],i,t)&&n.push(t[i]);return n}c.resolve=function(){for(var t="",e=!1,n=arguments.length-1;-1<=n&&!e;n--){var i=0<=n?arguments[n]:a.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(t=i+"/"+t,e="/"===i.charAt(0))}return(e?"/":"")+(t=r(o(t.split("/"),function(t){return!!t}),!e).join("/"))||"."},c.normalize=function(t){var e=c.isAbsolute(t),n="/"===i(t,-1);return(t=(t=r(o(t.split("/"),function(t){return!!t}),!e).join("/"))||e?t:".")&&n&&(t+="/"),(e?"/":"")+t},c.isAbsolute=function(t){return"/"===t.charAt(0)},c.join=function(){var t=Array.prototype.slice.call(arguments,0);return c.normalize(o(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},c.relative=function(t,e){function n(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;0<=n&&""===t[n];n--);return n<e?[]:t.slice(e,n-e+1)}t=c.resolve(t).substr(1),e=c.resolve(e).substr(1);for(var i=n(t.split("/")),r=n(e.split("/")),o=Math.min(i.length,r.length),a=o,s=0;s<o;s++)if(i[s]!==r[s]){a=s;break}for(var l=[],s=a;s<i.length;s++)l.push("..");return(l=l.concat(r.slice(a))).join("/")},c.sep="/",c.delimiter=":",c.dirname=function(t){if("string"!=typeof t&&(t+=""),0===t.length)return".";for(var e=47===t.charCodeAt(0),n=-1,i=!0,r=t.length-1;1<=r;--r)if(47===t.charCodeAt(r)){if(!i){n=r;break}}else i=!1;return-1===n?e?"/":".":e&&1===n?"/":t.slice(0,n)},c.basename=function(t,e){t=function(t){"string"!=typeof t&&(t+="");for(var e=0,n=-1,i=!0,r=t.length-1;0<=r;--r)if(47===t.charCodeAt(r)){if(!i){e=r+1;break}}else-1===n&&(i=!1,n=r+1);return-1===n?"":t.slice(e,n)}(t);return t=e&&t.substr(-1*e.length)===e?t.substr(0,t.length-e.length):t},c.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,o=0,a=t.length-1;0<=a;--a){var s=t.charCodeAt(a);if(47===s){if(r)continue;n=a+1;break}-1===i&&(r=!1,i=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1)}return-1===e||-1===i||0===o||1===o&&e===i-1&&e===n+1?"":t.slice(e,i)};var i="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}.call(this)}.call(this,t("_process"))},{_process:561}],430:[function(t,e,n){var l=t("../core");function i(t){var e=document.createElement("div");e.style.width="100px",e.style.height="100px",e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.zIndex=2,this.div=e,this.pool=[],this.renderId=0,this.debug=!1,this.renderer=t,this.children=[],this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this.isActive=!1,window.addEventListener("keydown",this._onKeyDown,!1)}Object.assign(l.DisplayObject.prototype,t("./accessibleTarget")),(e.exports=i.prototype.constructor=i).prototype.activate=function(){this.isActive||(this.isActive=!0,window.document.addEventListener("mousemove",this._onMouseMove,!0),window.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),this.renderer.view.parentNode.appendChild(this.div))},i.prototype.deactivate=function(){this.isActive&&(this.isActive=!1,window.document.removeEventListener("mousemove",this._onMouseMove),window.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),this.div.parentNode.removeChild(this.div))},i.prototype.updateAccessibleObjects=function(t){if(t.visible&&(t.accessible&&t.interactive&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId),t.interactiveChildren))for(var e=t.children,n=e.length-1;0<=n;n--)this.updateAccessibleObjects(e[n])},i.prototype.update=function(){this.updateAccessibleObjects(this.renderer._lastObjectRendered);var t=this.renderer.view.getBoundingClientRect(),e=t.width/this.renderer.width,n=t.height/this.renderer.height;(r=this.div).style.left=t.left+"px",r.style.top=t.top+"px",r.style.width=this.renderer.width+"px",r.style.height=this.renderer.height+"px";for(var i=0;i<this.children.length;i++){var r,o,a,s=this.children[i];s.renderId!==this.renderId?(s._accessibleActive=!1,l.utils.removeItems(this.children,i,1),this.div.removeChild(s._accessibleDiv),this.pool.push(s._accessibleDiv),s._accessibleDiv=null,i--,0===this.children.length&&this.deactivate()):(r=s._accessibleDiv,o=s.hitArea,a=s.worldTransform,s.hitArea?(r.style.left=(a.tx+o.x*a.a)*e+"px",r.style.top=(a.ty+o.y*a.d)*n+"px",r.style.width=o.width*a.a*e+"px",r.style.height=o.height*a.d*n+"px"):(o=s.getBounds(),this.capHitArea(o),r.style.left=o.x*e+"px",r.style.top=o.y*n+"px",r.style.width=o.width*e+"px",r.style.height=o.height*n+"px"))}this.renderId++},i.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0),t.x+t.width>this.renderer.width&&(t.width=this.renderer.width-t.x),t.y+t.height>this.renderer.height&&(t.height=this.renderer.height-t.y)},i.prototype.addChild=function(t){var e=this.pool.pop();e||((e=document.createElement("button")).style.width="100px",e.style.height="100px",e.style.backgroundColor=this.debug?"rgba(255,0,0,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=2,e.style.borderStyle="none",e.addEventListener("click",this._onClick.bind(this)),e.addEventListener("focus",this._onFocus.bind(this)),e.addEventListener("focusout",this._onFocusOut.bind(this))),e.title=t.accessibleTitle||"displayObject "+this.tabIndex,t._accessibleActive=!0,(t._accessibleDiv=e).displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},i.prototype._onClick=function(t){var e=this.renderer.plugins.interaction;e.dispatchEvent(t.target.displayObject,"click",e.eventData)},i.prototype._onFocus=function(t){var e=this.renderer.plugins.interaction;e.dispatchEvent(t.target.displayObject,"mouseover",e.eventData)},i.prototype._onFocusOut=function(t){var e=this.renderer.plugins.interaction;e.dispatchEvent(t.target.displayObject,"mouseout",e.eventData)},i.prototype._onKeyDown=function(t){9===t.keyCode&&this.activate()},i.prototype._onMouseMove=function(){this.deactivate()},i.prototype.destroy=function(){this.div=null;for(var t=0;t<this.children.length;t++)this.children[t].div=null;window.document.removeEventListener("mousemove",this._onMouseMove),window.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},l.WebGLRenderer.registerPlugin("accessibility",i),l.CanvasRenderer.registerPlugin("accessibility",i)},{"../core":440,"./accessibleTarget":431}],431:[function(t,e,n){e.exports={accessible:!1,accessibleTitle:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:!1}},{}],432:[function(t,e,n){e.exports={accessibleTarget:t("./accessibleTarget"),AccessibilityManager:t("./AccessibilityManager")}},{"./AccessibilityManager":430,"./accessibleTarget":431}],433:[function(t,e,n){var i={VERSION:"3.0.11",PI_2:2*Math.PI,RAD_TO_DEG:180/Math.PI,DEG_TO_RAD:Math.PI/180,TARGET_FPMS:.06,RENDERER_TYPE:{UNKNOWN:0,WEBGL:1,CANVAS:2},BLEND_MODES:{NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16},DRAW_MODES:{POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},SCALE_MODES:{DEFAULT:0,LINEAR:0,NEAREST:1},RETINA_PREFIX:/@(.+)x/,RESOLUTION:1,FILTER_RESOLUTION:1,DEFAULT_RENDER_OPTIONS:{view:null,resolution:1,antialias:!1,forceFXAA:!1,autoResize:!1,transparent:!1,backgroundColor:0,clearBeforeRender:!0,preserveDrawingBuffer:!1,roundPixels:!1},SHAPES:{POLY:0,RECT:1,CIRC:2,ELIP:3,RREC:4},SPRITE_BATCH_SIZE:2e3};e.exports=i},{}],434:[function(t,e,n){var u=t("../math"),r=t("../utils"),i=t("./DisplayObject"),o=t("../textures/RenderTexture"),a=new u.Matrix;function s(){i.call(this),this.children=[]}s.prototype=Object.create(i.prototype),e.exports=s.prototype.constructor=s,Object.defineProperties(s.prototype,{width:{get:function(){return this.scale.x*this.getLocalBounds().width},set:function(t){var e=this.getLocalBounds().width;this.scale.x=0!==e?t/e:1,this._width=t}},height:{get:function(){return this.scale.y*this.getLocalBounds().height},set:function(t){var e=this.getLocalBounds().height;this.scale.y=0!==e?t/e:1,this._height=t}}}),s.prototype.onChildrenChange=function(){},s.prototype.addChild=function(t){var e=arguments.length;if(1<e)for(var n=0;n<e;n++)this.addChild(arguments[n]);else t.parent&&t.parent.removeChild(t),(t.parent=this).children.push(t),this.onChildrenChange(this.children.length-1),t.emit("added",this);return t},s.prototype.addChildAt=function(t,e){if(0<=e&&e<=this.children.length)return t.parent&&t.parent.removeChild(t),(t.parent=this).children.splice(e,0,t),this.onChildrenChange(e),t.emit("added",this),t;throw new Error(t+"addChildAt: The index "+e+" supplied is out of bounds "+this.children.length)},s.prototype.swapChildren=function(t,e){if(t!==e){var n=this.getChildIndex(t),i=this.getChildIndex(e);if(n<0||i<0)throw new Error("swapChildren: Both the supplied DisplayObjects must be children of the caller.");this.children[n]=e,this.children[i]=t,this.onChildrenChange(n<i?n:i)}},s.prototype.getChildIndex=function(t){t=this.children.indexOf(t);if(-1===t)throw new Error("The supplied DisplayObject must be a child of the caller");return t},s.prototype.setChildIndex=function(t,e){if(e<0||e>=this.children.length)throw new Error("The supplied index is out of bounds");var n=this.getChildIndex(t);r.removeItems(this.children,n,1),this.children.splice(e,0,t),this.onChildrenChange(e)},s.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Supplied index "+t+" does not exist in the child list, or the supplied DisplayObject is not a child of the caller");return this.children[t]},s.prototype.removeChild=function(t){var e=arguments.length;if(1<e)for(var n=0;n<e;n++)this.removeChild(arguments[n]);else{var i=this.children.indexOf(t);if(-1===i)return;t.parent=null,r.removeItems(this.children,i,1),this.onChildrenChange(i),t.emit("removed",this)}return t},s.prototype.removeChildAt=function(t){var e=this.getChildAt(t);return e.parent=null,r.removeItems(this.children,t,1),this.onChildrenChange(t),e.emit("removed",this),e},s.prototype.removeChildren=function(t,e){var n,i,r=t||0,e="number"==typeof e?e:this.children.length,o=e-r;if(0<o&&o<=e){for(n=this.children.splice(r,o),i=0;i<n.length;++i)n[i].parent=null;for(this.onChildrenChange(t),i=0;i<n.length;++i)n[i].emit("removed",this);return n}if(0==o&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},s.prototype.generateTexture=function(t,e,n){var i=this.getLocalBounds(),t=new o(t,0|i.width,0|i.height,n,e);return a.tx=-i.x,a.ty=-i.y,t.render(this,a),t},s.prototype.containerUpdateTransform=s.prototype.updateTransform=function(){if(this.visible){this.displayObjectUpdateTransform();for(var t=0,e=this.children.length;t<e;++t)this.children[t].updateTransform()}},s.prototype.containerGetBounds=s.prototype.getBounds=function(){if(!this._currentBounds){if(0===this.children.length)return u.Rectangle.EMPTY;for(var t,e,n=1/0,i=1/0,r=-1/0,o=-1/0,a=!1,s=0,l=this.children.length;s<l;++s)this.children[s].visible&&(a=!0,n=n<(t=this.children[s].getBounds()).x?n:t.x,i=i<t.y?i:t.y,r=(e=t.width+t.x)<r?r:e,o=(e=t.height+t.y)<o?o:e);if(!a)return u.Rectangle.EMPTY;var c=this._bounds;c.x=n,c.y=i,c.width=r-n,c.height=o-i,this._currentBounds=c}return this._currentBounds},s.prototype.getLocalBounds=function(){var t=this.worldTransform;this.worldTransform=u.Matrix.IDENTITY;for(var e=0,n=this.children.length;e<n;++e)this.children[e].updateTransform();return this.worldTransform=t,this._currentBounds=null,this.getBounds(u.Matrix.IDENTITY)},s.prototype.renderWebGL=function(t){var e,n;if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this._filters){for(t.currentRenderer.flush(),this._filters&&this._filters.length&&t.filterManager.pushFilter(this,this._filters),this._mask&&t.maskManager.pushMask(this,this._mask),t.currentRenderer.start(),this._renderWebGL(t),e=0,n=this.children.length;e<n;e++)this.children[e].renderWebGL(t);t.currentRenderer.flush(),this._mask&&t.maskManager.popMask(this,this._mask),this._filters&&t.filterManager.popFilter(),t.currentRenderer.start()}else for(this._renderWebGL(t),e=0,n=this.children.length;e<n;++e)this.children[e].renderWebGL(t)},s.prototype._renderWebGL=function(t){},s.prototype._renderCanvas=function(t){},s.prototype.renderCanvas=function(t){if(this.visible&&!(this.alpha<=0)&&this.renderable){this._mask&&t.maskManager.pushMask(this._mask,t),this._renderCanvas(t);for(var e=0,n=this.children.length;e<n;++e)this.children[e].renderCanvas(t);this._mask&&t.maskManager.popMask(t)}},s.prototype.destroy=function(t){if(i.prototype.destroy.call(this),t)for(var e=0,n=this.children.length;e<n;++e)this.children[e].destroy(t);this.removeChildren(),this.children=null}},{"../math":444,"../textures/RenderTexture":482,"../utils":488,"./DisplayObject":435}],435:[function(t,e,n){var i=t("../math"),r=t("../textures/RenderTexture"),o=t("eventemitter3"),l=t("../const"),c=new i.Matrix,a={worldTransform:new i.Matrix,worldAlpha:1,children:[]};function s(){o.call(this),this.position=new i.Point,this.scale=new i.Point(1,1),this.pivot=new i.Point(0,0),this.skew=new i.Point(0,0),this.rotation=0,this.alpha=1,this.visible=!0,this.renderable=!0,this.parent=null,this.worldAlpha=1,this.worldTransform=new i.Matrix,this.filterArea=null,this._sr=0,this._cr=1,this._bounds=new i.Rectangle(0,0,1,1),this._currentBounds=null,this._mask=null}s.prototype=Object.create(o.prototype),e.exports=s.prototype.constructor=s,Object.defineProperties(s.prototype,{x:{get:function(){return this.position.x},set:function(t){this.position.x=t}},y:{get:function(){return this.position.y},set:function(t){this.position.y=t}},worldVisible:{get:function(){var t=this;do{if(!t.visible)return!1}while(t=t.parent);return!0}},mask:{get:function(){return this._mask},set:function(t){this._mask&&(this._mask.renderable=!0),this._mask=t,this._mask&&(this._mask.renderable=!1)}},filters:{get:function(){return this._filters&&this._filters.slice()},set:function(t){this._filters=t&&t.slice()}}}),s.prototype.displayObjectUpdateTransform=s.prototype.updateTransform=function(){var t,e,n,i,r,o,a=this.parent.worldTransform,s=this.worldTransform;this.skew.x||this.skew.y?(c.setTransform(this.position.x,this.position.y,this.pivot.x,this.pivot.y,this.scale.x,this.scale.y,this.rotation,this.skew.x,this.skew.y),s.a=c.a*a.a+c.b*a.c,s.b=c.a*a.b+c.b*a.d,s.c=c.c*a.a+c.d*a.c,s.d=c.c*a.b+c.d*a.d,s.tx=c.tx*a.a+c.ty*a.c+a.tx,s.ty=c.tx*a.b+c.ty*a.d+a.ty):(this.rotation%l.PI_2?(this.rotation!==this.rotationCache&&(this.rotationCache=this.rotation,this._sr=Math.sin(this.rotation),this._cr=Math.cos(this.rotation)),t=this._cr*this.scale.x,e=this._sr*this.scale.x,n=-this._sr*this.scale.y,i=this._cr*this.scale.y,r=this.position.x,o=this.position.y,(this.pivot.x||this.pivot.y)&&(r-=this.pivot.x*t+this.pivot.y*n,o-=this.pivot.x*e+this.pivot.y*i),s.a=t*a.a+e*a.c,s.b=t*a.b+e*a.d,s.c=n*a.a+i*a.c,s.d=n*a.b+i*a.d):(t=this.scale.x,i=this.scale.y,r=this.position.x-this.pivot.x*t,o=this.position.y-this.pivot.y*i,s.a=t*a.a,s.b=t*a.b,s.c=i*a.c,s.d=i*a.d),s.tx=r*a.a+o*a.c+a.tx,s.ty=r*a.b+o*a.d+a.ty),this.worldAlpha=this.alpha*this.parent.worldAlpha,this._currentBounds=null},s.prototype.getBounds=function(t){return i.Rectangle.EMPTY},s.prototype.getLocalBounds=function(){return this.getBounds(i.Matrix.IDENTITY)},s.prototype.toGlobal=function(t){return this.parent?this.displayObjectUpdateTransform():(this.parent=a,this.displayObjectUpdateTransform(),this.parent=null),this.worldTransform.apply(t)},s.prototype.toLocal=function(t,e,n){return e&&(t=e.toGlobal(t)),this.parent?this.displayObjectUpdateTransform():(this.parent=a,this.displayObjectUpdateTransform(),this.parent=null),this.worldTransform.applyInverse(t,n)},s.prototype.renderWebGL=function(t){},s.prototype.renderCanvas=function(t){},s.prototype.generateTexture=function(t,e,n){var i=this.getLocalBounds(),t=new r(t,0|i.width,0|i.height,e,n);return c.tx=-i.x,c.ty=-i.y,t.render(this,c),t},s.prototype.setParent=function(t){if(t&&t.addChild)return t.addChild(this),t;throw new Error("setParent: Argument must be a Container")},s.prototype.setTransform=function(t,e,n,i,r,o,a,s,l){return this.position.x=t||0,this.position.y=e||0,this.scale.x=n||1,this.scale.y=i||1,this.rotation=r||0,this.skew.x=o||0,this.skew.y=a||0,this.pivot.x=s||0,this.pivot.y=l||0,this},s.prototype.destroy=function(){this.position=null,this.scale=null,this.pivot=null,this.skew=null,this.parent=null,this._bounds=null,this._currentBounds=null,this._mask=null,this.worldTransform=null,this.filterArea=null}},{"../const":433,"../math":444,"../textures/RenderTexture":482,eventemitter3:382}],436:[function(t,e,n){var i=t("../display/Container"),o=t("../textures/Texture"),a=t("../renderers/canvas/utils/CanvasBuffer"),s=t("../renderers/canvas/utils/CanvasGraphics"),r=t("./GraphicsData"),f=t("../math"),m=t("../const"),l=new f.Point;function c(){i.call(this),this.fillAlpha=1,this.lineWidth=0,this.lineColor=0,this.graphicsData=[],this.tint=16777215,this._prevTint=16777215,this.blendMode=m.BLEND_MODES.NORMAL,this.currentPath=null,this._webGL={},this.isMask=!1,this.boundsPadding=0,this._localBounds=new f.Rectangle(0,0,1,1),this.dirty=!0,this.glDirty=!1,this.boundsDirty=!0,this.cachedSpriteDirty=!1}c.prototype=Object.create(i.prototype),(e.exports=c.prototype.constructor=c).prototype.clone=function(){var t=new c;t.renderable=this.renderable,t.fillAlpha=this.fillAlpha,t.lineWidth=this.lineWidth,t.lineColor=this.lineColor,t.tint=this.tint,t.blendMode=this.blendMode,t.isMask=this.isMask,t.boundsPadding=this.boundsPadding,t.dirty=!0,t.glDirty=!0,t.cachedSpriteDirty=this.cachedSpriteDirty;for(var e=0;e<this.graphicsData.length;++e)t.graphicsData.push(this.graphicsData[e].clone());return t.currentPath=t.graphicsData[t.graphicsData.length-1],t.updateLocalBounds(),t},c.prototype.lineStyle=function(t,e,n){return this.lineWidth=t||0,this.lineColor=e||0,this.lineAlpha=void 0===n?1:n,this.currentPath&&(this.currentPath.shape.points.length?((t=new f.Polygon(this.currentPath.shape.points.slice(-2))).closed=!1,this.drawShape(t)):(this.currentPath.lineWidth=this.lineWidth,this.currentPath.lineColor=this.lineColor,this.currentPath.lineAlpha=this.lineAlpha)),this},c.prototype.moveTo=function(t,e){t=new f.Polygon([t,e]);return t.closed=!1,this.drawShape(t),this},c.prototype.lineTo=function(t,e){return this.currentPath.shape.points.push(t,e),this.dirty=!0,this},c.prototype.quadraticCurveTo=function(t,e,n,i){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);for(var r,o,a=this.currentPath.shape.points,s=(0===a.length&&this.moveTo(0,0),a[a.length-2]),l=a[a.length-1],c=1;c<=20;++c)a.push((r=s+(t-s)*(o=c/20))+(t+(n-t)*o-r)*o,(r=l+(e-l)*o)+(e+(i-e)*o-r)*o);return this.dirty=this.boundsDirty=!0,this},c.prototype.bezierCurveTo=function(t,e,n,i,r,o){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);for(var a,s,l,c,u,h,d=this.currentPath.shape.points,p=d[d.length-2],f=d[d.length-1],m=1;m<=20;++m)d.push((l=(s=(a=1-(h=m/20))*a)*a)*p+3*s*h*t+3*a*(c=h*h)*n+(u=c*h)*r,l*f+3*s*h*e+3*a*c*i+u*o);return this.dirty=this.boundsDirty=!0,this},c.prototype.arcTo=function(t,e,n,i,r){this.currentPath?0===this.currentPath.shape.points.length&&this.currentPath.shape.points.push(t,e):this.moveTo(t,e);var o,a,s,l,c,u=this.currentPath.shape.points,h=u[u.length-2],d=u[u.length-1]-e,h=h-t,i=i-e,n=n-t,p=Math.abs(d*n-h*i);return p<1e-8||0===r?u[u.length-2]===t&&u[u.length-1]===e||u.push(t,e):(u=d*d+h*h,s=i*i+n*n,c=d*i+h*n,u=(l=r*Math.sqrt(u)/p)*c/u,o=l*n+(p=r*Math.sqrt(s)/p)*h,a=l*i+p*d,s=n*(l+(c=p*c/s)),l=i*(l+c),c=Math.atan2(d*(p+u)-a,h*(p+u)-o),p=Math.atan2(l-a,s-o),this.arc(o+t,a+e,r,c,p,n*d<h*i)),this.dirty=this.boundsDirty=!0,this},c.prototype.arc=function(t,e,n,i,r,o){if(o=o||!1,i!==r){!o&&r<=i?r+=2*Math.PI:o&&i<=r&&(i+=2*Math.PI);o=o?-1*(i-r):r-i,r=40*Math.ceil(Math.abs(o)/(2*Math.PI));if(0!=o){for(var a=t+Math.cos(i)*n,s=e+Math.sin(i)*n,l=(this.currentPath?this.currentPath.shape.points.push(a,s):this.moveTo(a,s),this.currentPath.shape.points),c=o/(2*r),u=2*c,h=Math.cos(c),d=Math.sin(c),p=r-1,f=p%1/p,m=0;m<=p;m++){var g=c+i+u*(m+f*m),v=Math.cos(g),g=-Math.sin(g);l.push((h*v+d*g)*n+t,(h*-g+d*v)*n+e)}this.dirty=this.boundsDirty=!0}}return this},c.prototype.beginFill=function(t,e){return this.filling=!0,this.fillColor=t||0,this.fillAlpha=void 0===e?1:e,this.currentPath&&this.currentPath.shape.points.length<=2&&(this.currentPath.fill=this.filling,this.currentPath.fillColor=this.fillColor,this.currentPath.fillAlpha=this.fillAlpha),this},c.prototype.endFill=function(){return this.filling=!1,this.fillColor=null,this.fillAlpha=1,this},c.prototype.drawRect=function(t,e,n,i){return this.drawShape(new f.Rectangle(t,e,n,i)),this},c.prototype.drawRoundedRect=function(t,e,n,i,r){return this.drawShape(new f.RoundedRectangle(t,e,n,i,r)),this},c.prototype.drawCircle=function(t,e,n){return this.drawShape(new f.Circle(t,e,n)),this},c.prototype.drawEllipse=function(t,e,n,i){return this.drawShape(new f.Ellipse(t,e,n,i)),this},c.prototype.drawPolygon=function(t){var e=!0;if((n=t)instanceof f.Polygon&&(e=n.closed,n=n.points),!Array.isArray(n))for(var n=new Array(arguments.length),i=0;i<n.length;++i)n[i]=arguments[i];var r=new f.Polygon(n);return r.closed=e,this.drawShape(r),this},c.prototype.clear=function(){return this.lineWidth=0,this.filling=!1,this.dirty=!0,this.clearDirty=!0,this.graphicsData=[],this},c.prototype.generateTexture=function(t,e,n){e=e||1;var i=this.getLocalBounds(),r=new a(i.width*e,i.height*e),n=o.fromCanvas(r.canvas,n);return n.baseTexture.resolution=e,r.context.scale(e,e),r.context.translate(-i.x,-i.y),s.renderGraphics(this,r.context),n},c.prototype._renderWebGL=function(t){this.glDirty&&(this.dirty=!0,this.glDirty=!1),t.setObjectRenderer(t.plugins.graphics),t.plugins.graphics.render(this)},c.prototype._renderCanvas=function(t){var e,n,i;!0!==this.isMask&&(this._prevTint!==this.tint&&(this.dirty=!0),e=t.context,n=this.worldTransform,(i=t.blendModes[this.blendMode])!==e.globalCompositeOperation&&(e.globalCompositeOperation=i),i=t.resolution,e.setTransform(n.a*i,n.b*i,n.c*i,n.d*i,n.tx*i,n.ty*i),s.renderGraphics(this,e))},c.prototype.getBounds=function(t){if(!this._currentBounds){if(!this.renderable)return f.Rectangle.EMPTY;this.boundsDirty&&(this.updateLocalBounds(),this.glDirty=!0,this.cachedSpriteDirty=!0,this.boundsDirty=!1);var e=this._localBounds,n=e.x,i=e.width+e.x,r=e.y,e=e.height+e.y,t=t||this.worldTransform,o=t.a,a=t.b,s=t.c,l=t.d,c=t.tx,t=t.ty,u=o*i+s*e+c,h=l*e+a*i+t,d=o*n+s*e+c,e=l*e+a*n+t,p=o*n+s*r+c,n=l*r+a*n+t,o=o*i+s*r+c,s=l*r+a*i+t,c=s<(c=n<(c=e<h?e:h)?n:c)?s:c,l=(l=(l=u<d?d:u)<p?p:l)<o?o:l,r=(r=(r=h<e?e:h)<n?n:r)<s?s:r;this._bounds.x=a=o<(a=p<(a=d<u?d:u)?p:a)?o:a,this._bounds.width=l-a,this._bounds.y=c,this._bounds.height=r-c,this._currentBounds=this._bounds}return this._currentBounds},c.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,l);for(var e=this.graphicsData,n=0;n<e.length;n++){var i=e[n];if(i.fill&&(i.shape&&i.shape.contains(l.x,l.y)))return!0}return!1},c.prototype.updateLocalBounds=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0;if(this.graphicsData.length)for(var r,o,a,s,l=0;l<this.graphicsData.length;l++){var c=this.graphicsData[l],u=c.type,h=c.lineWidth,c=c.shape;if(u===m.SHAPES.RECT||u===m.SHAPES.RREC)r=c.x-h/2,o=c.y-h/2,t=r<t?r:t,e=e<r+(a=c.width+h)?r+a:e,n=o<n?o:n,i=i<o+(s=c.height+h)?o+s:i;else if(u===m.SHAPES.CIRC)r=c.x,o=c.y,t=r-(a=c.radius+h/2)<t?r-a:t,e=e<r+a?r+a:e,n=o-(s=c.radius+h/2)<n?o-s:n,i=i<o+s?o+s:i;else if(u===m.SHAPES.ELIP)r=c.x,o=c.y,t=r-(a=c.width+h/2)<t?r-a:t,e=e<r+a?r+a:e,n=o-(s=c.height+h/2)<n?o-s:n,i=i<o+s?o+s:i;else for(var d=c.points,p=0;p<d.length;p+=2)t=(r=d[p])-h<t?r-h:t,e=e<r+h?r+h:e,n=(o=d[p+1])-h<n?o-h:n,i=i<o+h?o+h:i}else i=n=e=t=0;var f=this.boundsPadding;this._localBounds.x=t-f,this._localBounds.width=e-t+2*f,this._localBounds.y=n-f,this._localBounds.height=i-n+2*f},c.prototype.drawShape=function(t){this.currentPath&&this.currentPath.shape.points.length<=2&&this.graphicsData.pop(),this.currentPath=null;t=new r(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.filling,t);return this.graphicsData.push(t),t.type===m.SHAPES.POLY&&(t.shape.closed=t.shape.closed||this.filling,this.currentPath=t),this.dirty=this.boundsDirty=!0,t},c.prototype.destroy=function(){i.prototype.destroy.apply(this,arguments);for(var t,e=0;e<this.graphicsData.length;++e)this.graphicsData[e].destroy();for(t in this._webgl)for(var n=0;n<this._webgl[t].data.length;++n)this._webgl[t].data[n].destroy();this.graphicsData=null,this.currentPath=null,this._webgl=null,this._localBounds=null}},{"../const":433,"../display/Container":434,"../math":444,"../renderers/canvas/utils/CanvasBuffer":456,"../renderers/canvas/utils/CanvasGraphics":457,"../textures/Texture":483,"./GraphicsData":437}],437:[function(t,e,n){function i(t,e,n,i,r,o,a){this.lineWidth=t,this.lineColor=e,this.lineAlpha=n,this._lineTint=e,this.fillColor=i,this.fillAlpha=r,this._fillTint=i,this.fill=o,this.shape=a,this.type=a.type}(e.exports=i.prototype.constructor=i).prototype.clone=function(){return new i(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.fill,this.shape)},i.prototype.destroy=function(){this.shape=null}},{}],438:[function(t,e,n){var L=t("../../utils"),D=t("../../math"),v=t("../../const"),i=t("../../renderers/webgl/utils/ObjectRenderer"),r=t("../../renderers/webgl/WebGLRenderer"),o=t("./WebGLGraphicsData"),y=t("earcut");function a(t){i.call(this,t),this.graphicsDataPool=[],this.primitiveShader=null,this.complexPrimitiveShader=null,this.maximumSimplePolySize=200}a.prototype=Object.create(i.prototype),e.exports=a.prototype.constructor=a,r.registerPlugin("graphics",a),a.prototype.onContextChange=function(){},a.prototype.destroy=function(){i.prototype.destroy.call(this);for(var t=0;t<this.graphicsDataPool.length;++t)this.graphicsDataPool[t].destroy();this.graphicsDataPool=null},a.prototype.render=function(t){var e,n,i=this.renderer,r=i.gl,o=(i.shaderManager.plugins.primitiveShader,!t.dirty&&t._webGL[r.id]||this.updateGraphics(t),t._webGL[r.id]);i.blendModeManager.setBlendMode(t.blendMode);for(var a=0,s=o.data.length;a<s;a++)n=o.data[a],1===o.data[a].mode?(i.stencilManager.pushStencil(t,n),r.uniform1f(i.shaderManager.complexPrimitiveShader.uniforms.alpha._location,t.worldAlpha*n.alpha),r.drawElements(r.TRIANGLE_FAN,4,r.UNSIGNED_SHORT,2*(n.indices.length-4)),i.stencilManager.popStencil(t,n)):(e=i.shaderManager.primitiveShader,i.shaderManager.setShader(e),r.uniformMatrix3fv(e.uniforms.translationMatrix._location,!1,t.worldTransform.toArray(!0)),r.uniformMatrix3fv(e.uniforms.projectionMatrix._location,!1,i.currentRenderTarget.projectionMatrix.toArray(!0)),r.uniform3fv(e.uniforms.tint._location,L.hex2rgb(t.tint)),r.uniform1f(e.uniforms.alpha._location,t.worldAlpha),r.bindBuffer(r.ARRAY_BUFFER,n.buffer),r.vertexAttribPointer(e.attributes.aVertexPosition,2,r.FLOAT,!1,24,0),r.vertexAttribPointer(e.attributes.aColor,4,r.FLOAT,!1,24,8),r.bindBuffer(r.ELEMENT_ARRAY_BUFFER,n.indexBuffer),r.drawElements(r.TRIANGLE_STRIP,n.indices.length,r.UNSIGNED_SHORT,0)),i.drawCount++},a.prototype.updateGraphics=function(t){var e,n=this.renderer.gl,i=(i=t._webGL[n.id])||(t._webGL[n.id]={lastIndex:0,data:[],gl:n});if(t.dirty=!1,t.clearDirty){for(t.clearDirty=!1,e=0;e<i.data.length;e++){var r=i.data[e];r.reset(),this.graphicsDataPool.push(r)}i.data=[],i.lastIndex=0}for(e=i.lastIndex;e<t.graphicsData.length;e++){var o,a=t.graphicsData[e];a.type===v.SHAPES.POLY?(a.points=a.shape.points.slice(),!a.shape.closed||a.points[0]===a.points[a.points.length-2]&&a.points[1]===a.points[a.points.length-1]||a.points.push(a.points[0],a.points[1]),a.fill&&6<=a.points.length&&(a.points.length<2*this.maximumSimplePolySize&&(o=this.switchMode(i,0),this.buildPoly(a,o))||(o=this.switchMode(i,1),this.buildComplexPoly(a,o))),0<a.lineWidth&&(o=this.switchMode(i,0),this.buildLine(a,o))):(o=this.switchMode(i,0),a.type===v.SHAPES.RECT?this.buildRectangle(a,o):a.type===v.SHAPES.CIRC||a.type===v.SHAPES.ELIP?this.buildCircle(a,o):a.type===v.SHAPES.RREC&&this.buildRoundedRectangle(a,o)),i.lastIndex++}for(e=0;e<i.data.length;e++)(o=i.data[e]).dirty&&o.upload()},a.prototype.switchMode=function(t,e){var n;return(!t.data.length||32e4<(n=t.data[t.data.length-1]).points.length||n.mode!==e||1===e)&&((n=this.graphicsDataPool.pop()||new o(t.gl)).mode=e,t.data.push(n)),n.dirty=!0,n},a.prototype.buildRectangle=function(t,e){var n,i,r,o,a,s,l,c=t.shape,u=c.x,h=c.y,d=c.width,c=c.height;t.fill&&(o=L.hex2rgb(t.fillColor),n=t.fillAlpha,i=o[0]*n,r=o[1]*n,o=o[2]*n,l=e.points,a=e.indices,s=l.length/6,l.push(u,h),l.push(i,r,o,n),l.push(u+d,h),l.push(i,r,o,n),l.push(u,h+c),l.push(i,r,o,n),l.push(u+d,h+c),l.push(i,r,o,n),a.push(s,s,1+s,2+s,3+s,3+s)),t.lineWidth&&(l=t.points,t.points=[u,h,u+d,h,u+d,h+c,u,h+c,u,h],this.buildLine(t,e),t.points=l)},a.prototype.buildRoundedRectangle=function(t,e){var n=t.shape,i=n.x,r=n.y,o=n.width,a=n.height,n=n.radius,s=[];if(s.push(i,r+n),this.quadraticBezierCurve(i,r+a-n,i,r+a,i+n,r+a,s),this.quadraticBezierCurve(i+o-n,r+a,i+o,r+a,i+o,r+a-n,s),this.quadraticBezierCurve(i+o,r+n,i+o,r,i+o-n,r,s),this.quadraticBezierCurve(i+n,r,i,r,i,r+n+1e-10,s),t.fill){for(var a=L.hex2rgb(t.fillColor),l=t.fillAlpha,c=a[0]*l,u=a[1]*l,h=a[2]*l,d=e.points,p=e.indices,f=d.length/6,m=y(s,null,2),g=0,g=0;g<m.length;g+=3)p.push(m[g]+f),p.push(m[g]+f),p.push(m[g+1]+f),p.push(m[g+2]+f),p.push(m[g+2]+f);for(g=0;g<s.length;g++)d.push(s[g],s[++g],c,u,h,l)}t.lineWidth&&(o=t.points,t.points=s,this.buildLine(t,e),t.points=o)},a.prototype.quadraticBezierCurve=function(t,e,n,i,r,o,a){var s,l,c,u,h=a||[];function d(t,e,n){return t+(e-t)*n}for(var p,f=0;f<=20;f++)c=d(t,n,p=f/20),s=d(e,i,p),u=d(n,r,p),l=d(i,o,p),c=d(c,u,p),u=d(s,l,p),h.push(c,u);return h},a.prototype.buildCircle=function(t,e){var n,i=t.shape,r=i.x,o=i.y,a=t.type===v.SHAPES.CIRC?(n=i.radius,i.radius):(n=i.width,i.height),s=Math.floor(30*Math.sqrt(i.radius))||Math.floor(15*Math.sqrt(i.width+i.height)),l=2*Math.PI/s,c=0;if(t.fill){var i=L.hex2rgb(t.fillColor),u=t.fillAlpha,h=i[0]*u,d=i[1]*u,p=i[2]*u,f=e.points,m=e.indices,g=f.length/6;for(m.push(g),c=0;c<s+1;c++)f.push(r,o,h,d,p,u),f.push(r+Math.sin(l*c)*n,o+Math.cos(l*c)*a,h,d,p,u),m.push(g++,g++);m.push(g-1)}if(t.lineWidth){i=t.points;for(t.points=[],c=0;c<s+1;c++)t.points.push(r+Math.sin(l*c)*n,o+Math.cos(l*c)*a);this.buildLine(t,e),t.points=i}},a.prototype.buildLine=function(t,e){var n=0,i=t.points;if(0!==i.length){var r,o,a,s,l,c,u,h,d,p,f=new D.Point(i[0],i[1]),m=new D.Point(i[i.length-2],i[i.length-1]),g=(f.x===m.x&&f.y===m.y&&((i=i.slice()).pop(),i.pop(),r=(m=new D.Point(i[i.length-2],i[i.length-1])).x+.5*(f.x-m.x),f=m.y+.5*(f.y-m.y),i.unshift(r,f),i.push(r,f)),e.points),v=e.indices,y=i.length/2,_=i.length,b=g.length/6,x=t.lineWidth/2,m=L.hex2rgb(t.lineColor),w=t.lineAlpha,T=m[0]*w,S=m[1]*w,C=m[2]*w,E=i[0],M=i[1],P=i[2],k=i[3],A=-(M-k),O=E-P,R=Math.sqrt(A*A+O*O);for(g.push(E-(A=A/R*x),M-(O=O/R*x),T,S,C,w),g.push(E+A,M+O,T,S,C,w),n=1;n<y-1;n++)E=i[2*(n-1)],M=i[2*(n-1)+1],P=i[2*n],k=i[2*n+1],h=i[2*(n+1)],u=i[2*(n+1)+1],O=E-P,a=P-h,c=(-(A=(A=-(M-k))/(R=Math.sqrt(A*A+O*O))*x)+E)*(-(O=O/R*x)+k)-(-A+P)*(-O+M),d=(-(o=(o=-(k-u))/(R=Math.sqrt(o*o+a*a))*x)+h)*(-(a=a/R*x)+k)-(-o+P)*(-a+u),p=(s=-O+M-(-O+k))*(h=-o+P-(-o+h))-(u=-a+u-(-a+k))*(l=-A+P-(-A+E)),Math.abs(p)<.1?(p+=10.1,g.push(P-A,k-O,T,S,C,w),g.push(P+A,k+O,T,S,C,w)):19600<((l=(l*d-h*c)/p)-P)*(l-P)+((h=(u*c-s*d)/p)-k)*(h-k)?(u=O-a,c=(c=A-o)/(R=Math.sqrt(c*c+u*u))*x,g.push(P-c,k-(u=u/R*x)),g.push(T,S,C,w),g.push(P+c,k+u),g.push(T,S,C,w),g.push(P-c,k-u),g.push(T,S,C,w),_++):(g.push(l,h),g.push(T,S,C,w),g.push(P-(l-P),k-(h-k)),g.push(T,S,C,w));for(E=i[2*(y-2)],M=i[2*(y-2)+1],P=i[2*(y-1)],A=-(M-(k=i[2*(y-1)+1])),O=E-P,R=Math.sqrt(A*A+O*O),g.push(P-(A=A/R*x),k-(O=O/R*x)),g.push(T,S,C,w),g.push(P+A,k+O),g.push(T,S,C,w),v.push(b),n=0;n<_;n++)v.push(b++);v.push(b-1)}},a.prototype.buildComplexPoly=function(t,e){var n=t.points.slice();if(!(n.length<6)){for(var i,r=e.indices,o=(e.points=n,e.alpha=t.fillAlpha,e.color=L.hex2rgb(t.fillColor),1/0),a=-1/0,s=1/0,l=-1/0,c=0;c<n.length;c+=2)o=(i=n[c])<o?i:o,a=a<i?i:a,s=(i=n[c+1])<s?i:s,l=l<i?i:l;n.push(o,s,a,s,a,l,o,l);for(var u=n.length/2,c=0;c<u;c++)r.push(c)}},a.prototype.buildPoly=function(t,e){var n=t.points;if(!(n.length<6)){var i=e.points,r=e.indices,o=n.length/2,e=L.hex2rgb(t.fillColor),a=t.fillAlpha,s=e[0]*a,l=e[1]*a,c=e[2]*a,u=y(n,null,2);if(!u)return!1;for(var h=i.length/6,d=0,d=0;d<u.length;d+=3)r.push(u[d]+h),r.push(u[d]+h),r.push(u[d+1]+h),r.push(u[d+2]+h),r.push(u[d+2]+h);for(d=0;d<o;d++)i.push(n[2*d],n[2*d+1],s,l,c,a);return!0}}},{"../../const":433,"../../math":444,"../../renderers/webgl/WebGLRenderer":460,"../../renderers/webgl/utils/ObjectRenderer":474,"../../utils":488,"./WebGLGraphicsData":439,earcut:380}],439:[function(t,e,n){function i(t){this.gl=t,this.color=[0,0,0],this.points=[],this.indices=[],this.buffer=t.createBuffer(),this.indexBuffer=t.createBuffer(),this.mode=1,this.alpha=1,this.dirty=!0,this.glPoints=null,this.glIndices=null}(e.exports=i.prototype.constructor=i).prototype.reset=function(){this.points.length=0,this.indices.length=0},i.prototype.upload=function(){var t=this.gl;this.glPoints=new Float32Array(this.points),t.bindBuffer(t.ARRAY_BUFFER,this.buffer),t.bufferData(t.ARRAY_BUFFER,this.glPoints,t.STATIC_DRAW),this.glIndices=new Uint16Array(this.indices),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,this.indexBuffer),t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.glIndices,t.STATIC_DRAW),this.dirty=!1},i.prototype.destroy=function(){this.color=null,this.points=null,this.indices=null,this.gl.deleteBuffer(this.buffer),this.gl.deleteBuffer(this.indexBuffer),this.gl=null,this.buffer=null,this.indexBuffer=null,this.glPoints=null,this.glIndices=null}},{}],440:[function(t,e,n){var r=e.exports=Object.assign(t("./const"),t("./math"),{utils:t("./utils"),ticker:t("./ticker"),DisplayObject:t("./display/DisplayObject"),Container:t("./display/Container"),Sprite:t("./sprites/Sprite"),ParticleContainer:t("./particles/ParticleContainer"),SpriteRenderer:t("./sprites/webgl/SpriteRenderer"),ParticleRenderer:t("./particles/webgl/ParticleRenderer"),Text:t("./text/Text"),Graphics:t("./graphics/Graphics"),GraphicsData:t("./graphics/GraphicsData"),GraphicsRenderer:t("./graphics/webgl/GraphicsRenderer"),Texture:t("./textures/Texture"),BaseTexture:t("./textures/BaseTexture"),RenderTexture:t("./textures/RenderTexture"),VideoBaseTexture:t("./textures/VideoBaseTexture"),TextureUvs:t("./textures/TextureUvs"),CanvasRenderer:t("./renderers/canvas/CanvasRenderer"),CanvasGraphics:t("./renderers/canvas/utils/CanvasGraphics"),CanvasBuffer:t("./renderers/canvas/utils/CanvasBuffer"),WebGLRenderer:t("./renderers/webgl/WebGLRenderer"),WebGLManager:t("./renderers/webgl/managers/WebGLManager"),ShaderManager:t("./renderers/webgl/managers/ShaderManager"),Shader:t("./renderers/webgl/shaders/Shader"),TextureShader:t("./renderers/webgl/shaders/TextureShader"),PrimitiveShader:t("./renderers/webgl/shaders/PrimitiveShader"),ComplexPrimitiveShader:t("./renderers/webgl/shaders/ComplexPrimitiveShader"),ObjectRenderer:t("./renderers/webgl/utils/ObjectRenderer"),RenderTarget:t("./renderers/webgl/utils/RenderTarget"),AbstractFilter:t("./renderers/webgl/filters/AbstractFilter"),FXAAFilter:t("./renderers/webgl/filters/FXAAFilter"),SpriteMaskFilter:t("./renderers/webgl/filters/SpriteMaskFilter"),autoDetectRenderer:function(t,e,n,i){return t=t||800,e=e||600,new(!i&&r.utils.isWebGLSupported()?r.WebGLRenderer:r.CanvasRenderer)(t,e,n)}})},{"./const":433,"./display/Container":434,"./display/DisplayObject":435,"./graphics/Graphics":436,"./graphics/GraphicsData":437,"./graphics/webgl/GraphicsRenderer":438,"./math":444,"./particles/ParticleContainer":450,"./particles/webgl/ParticleRenderer":452,"./renderers/canvas/CanvasRenderer":455,"./renderers/canvas/utils/CanvasBuffer":456,"./renderers/canvas/utils/CanvasGraphics":457,"./renderers/webgl/WebGLRenderer":460,"./renderers/webgl/filters/AbstractFilter":461,"./renderers/webgl/filters/FXAAFilter":462,"./renderers/webgl/filters/SpriteMaskFilter":463,"./renderers/webgl/managers/ShaderManager":467,"./renderers/webgl/managers/WebGLManager":469,"./renderers/webgl/shaders/ComplexPrimitiveShader":470,"./renderers/webgl/shaders/PrimitiveShader":471,"./renderers/webgl/shaders/Shader":472,"./renderers/webgl/shaders/TextureShader":473,"./renderers/webgl/utils/ObjectRenderer":474,"./renderers/webgl/utils/RenderTarget":476,"./sprites/Sprite":478,"./sprites/webgl/SpriteRenderer":479,"./text/Text":480,"./textures/BaseTexture":481,"./textures/RenderTexture":482,"./textures/Texture":483,"./textures/TextureUvs":484,"./textures/VideoBaseTexture":485,"./ticker":487,"./utils":488}],441:[function(t,e,n){var i=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],r=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],o=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],a=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],s=[],l=t("./Matrix"),c=[];function u(t){return t<0?-1:0<t?1:0}for(var h=0;h<16;h++){var d=[];c.push(d);for(var p=0;p<16;p++)for(var f=u(i[h]*i[p]+o[h]*r[p]),m=u(r[h]*i[p]+a[h]*r[p]),g=u(i[h]*o[p]+o[h]*a[p]),v=u(r[h]*o[p]+a[h]*a[p]),y=0;y<16;y++)if(i[y]===f&&r[y]===m&&o[y]===g&&a[y]===v){d.push(y);break}}for(h=0;h<16;h++){var _=new l;_.set(i[h],r[h],o[h],a[h],0,0),s.push(_)}var b={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MIRROR_HORIZONTAL:12,uX:function(t){return i[t]},uY:function(t){return r[t]},vX:function(t){return o[t]},vY:function(t){return a[t]},inv:function(t){return 8&t?15&t:7&-t},add:function(t,e){return c[t][e]},sub:function(t,e){return c[t][b.inv(e)]},rotate180:function(t){return 4^t},isSwapWidthHeight:function(t){return 2==(3&t)},byDirection:function(t,e){return 2*Math.abs(t)<=Math.abs(e)?0<=e?b.S:b.N:2*Math.abs(e)<=Math.abs(t)?0<t?b.E:b.W:0<e?0<t?b.SE:b.SW:0<t?b.NE:b.NW},matrixAppendRotationInv:function(t,e,n,i){e=s[b.inv(e)];i=i||0,e.tx=n=n||0,e.ty=i,t.append(e)}};e.exports=b},{"./Matrix":442}],442:[function(t,e,n){var r=t("./Point");function i(){this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0}(e.exports=i.prototype.constructor=i).prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},i.prototype.set=function(t,e,n,i,r,o){return this.a=t,this.b=e,this.c=n,this.d=i,this.tx=r,this.ty=o,this},i.prototype.toArray=function(t,e){this.array||(this.array=new Float32Array(9));e=e||this.array;return t?(e[0]=this.a,e[1]=this.b,e[2]=0,e[3]=this.c,e[4]=this.d,e[5]=0,e[6]=this.tx,e[7]=this.ty):(e[0]=this.a,e[1]=this.c,e[2]=this.tx,e[3]=this.b,e[4]=this.d,e[5]=this.ty,e[6]=0,e[7]=0),e[8]=1,e},i.prototype.apply=function(t,e){e=e||new r;var n=t.x,t=t.y;return e.x=this.a*n+this.c*t+this.tx,e.y=this.b*n+this.d*t+this.ty,e},i.prototype.applyInverse=function(t,e){e=e||new r;var n=1/(this.a*this.d+this.c*-this.b),i=t.x,t=t.y;return e.x=this.d*n*i+-this.c*n*t+(this.ty*this.c-this.tx*this.d)*n,e.y=this.a*n*t+-this.b*n*i+(-this.ty*this.a+this.tx*this.b)*n,e},i.prototype.translate=function(t,e){return this.tx+=t,this.ty+=e,this},i.prototype.scale=function(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this},i.prototype.rotate=function(t){var e=Math.cos(t),t=Math.sin(t),n=this.a,i=this.c,r=this.tx;return this.a=n*e-this.b*t,this.b=n*t+this.b*e,this.c=i*e-this.d*t,this.d=i*t+this.d*e,this.tx=r*e-this.ty*t,this.ty=r*t+this.ty*e,this},i.prototype.append=function(t){var e=this.a,n=this.b,i=this.c,r=this.d;return this.a=t.a*e+t.b*i,this.b=t.a*n+t.b*r,this.c=t.c*e+t.d*i,this.d=t.c*n+t.d*r,this.tx=t.tx*e+t.ty*i+this.tx,this.ty=t.tx*n+t.ty*r+this.ty,this},i.prototype.setTransform=function(t,e,n,i,r,o,a,s,l){var c=Math.sin(a),a=Math.cos(a),u=Math.cos(l),l=Math.sin(l),h=-Math.sin(s),s=Math.cos(s),d=a*r,r=c*r,c=-c*o,a=a*o;return this.a=u*d+l*c,this.b=u*r+l*a,this.c=h*d+s*c,this.d=h*r+s*a,this.tx=t+(n*d+i*c),this.ty=e+(n*r+i*a),this},i.prototype.prepend=function(t){var e,n,i=this.tx;return 1===t.a&&0===t.b&&0===t.c&&1===t.d||(e=this.a,n=this.c,this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=n*t.a+this.d*t.c,this.d=n*t.b+this.d*t.d),this.tx=i*t.a+this.ty*t.c+t.tx,this.ty=i*t.b+this.ty*t.d+t.ty,this},i.prototype.invert=function(){var t=this.a,e=this.b,n=this.c,i=this.d,r=this.tx,o=t*i-e*n;return this.a=i/o,this.b=-e/o,this.c=-n/o,this.d=t/o,this.tx=(n*this.ty-i*r)/o,this.ty=-(t*this.ty-e*r)/o,this},i.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},i.prototype.clone=function(){var t=new i;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},i.prototype.copy=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},i.IDENTITY=new i,i.TEMP_MATRIX=new i},{"./Point":443}],443:[function(t,e,n){function i(t,e){this.x=t||0,this.y=e||0}(e.exports=i.prototype.constructor=i).prototype.clone=function(){return new i(this.x,this.y)},i.prototype.copy=function(t){this.set(t.x,t.y)},i.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},i.prototype.set=function(t,e){this.x=t||0,this.y=e||(0!==e?this.x:0)}},{}],444:[function(t,e,n){e.exports={Point:t("./Point"),Matrix:t("./Matrix"),GroupD8:t("./GroupD8"),Circle:t("./shapes/Circle"),Ellipse:t("./shapes/Ellipse"),Polygon:t("./shapes/Polygon"),Rectangle:t("./shapes/Rectangle"),RoundedRectangle:t("./shapes/RoundedRectangle")}},{"./GroupD8":441,"./Matrix":442,"./Point":443,"./shapes/Circle":445,"./shapes/Ellipse":446,"./shapes/Polygon":447,"./shapes/Rectangle":448,"./shapes/RoundedRectangle":449}],445:[function(t,e,n){var i=t("./Rectangle"),r=t("../../const");function o(t,e,n){this.x=t||0,this.y=e||0,this.radius=n||0,this.type=r.SHAPES.CIRC}(e.exports=o.prototype.constructor=o).prototype.clone=function(){return new o(this.x,this.y,this.radius)},o.prototype.contains=function(t,e){return!(this.radius<=0)&&(t=this.x-t,e=this.y-e,(t*=t)+(e*=e)<=this.radius*this.radius)},o.prototype.getBounds=function(){return new i(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)}},{"../../const":433,"./Rectangle":448}],446:[function(t,e,n){var i=t("./Rectangle"),r=t("../../const");function o(t,e,n,i){this.x=t||0,this.y=e||0,this.width=n||0,this.height=i||0,this.type=r.SHAPES.ELIP}(e.exports=o.prototype.constructor=o).prototype.clone=function(){return new o(this.x,this.y,this.width,this.height)},o.prototype.contains=function(t,e){return!(this.width<=0||this.height<=0)&&(t=(t-this.x)/this.width,e=(e-this.y)/this.height,(t*=t)+(e*=e)<=1)},o.prototype.getBounds=function(){return new i(this.x-this.width,this.y-this.height,this.width,this.height)}},{"../../const":433,"./Rectangle":448}],447:[function(t,e,n){var a=t("../Point"),s=t("../../const");function i(t){var e=t;if(!Array.isArray(e))for(var e=new Array(arguments.length),n=0;n<e.length;++n)e[n]=arguments[n];if(e[0]instanceof a){for(var i=[],r=0,o=e.length;r<o;r++)i.push(e[r].x,e[r].y);e=i}this.closed=!0,this.points=e,this.type=s.SHAPES.POLY}(e.exports=i.prototype.constructor=i).prototype.clone=function(){return new i(this.points.slice())},i.prototype.contains=function(t,e){for(var n=!1,i=this.points.length/2,r=0,o=i-1;r<i;o=r++){var a=this.points[2*r],s=this.points[2*r+1],l=this.points[2*o],c=this.points[2*o+1];e<s!=e<c&&t<(l-a)*(e-s)/(c-s)+a&&(n=!n)}return n}},{"../../const":433,"../Point":443}],448:[function(t,e,n){var r=t("../../const");function i(t,e,n,i){this.x=t||0,this.y=e||0,this.width=n||0,this.height=i||0,this.type=r.SHAPES.RECT}(e.exports=i.prototype.constructor=i).EMPTY=new i(0,0,0,0),i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height)},i.prototype.contains=function(t,e){return!(this.width<=0||this.height<=0)&&t>=this.x&&t<this.x+this.width&&e>=this.y&&e<this.y+this.height}},{"../../const":433}],449:[function(t,e,n){var o=t("../../const");function i(t,e,n,i,r){this.x=t||0,this.y=e||0,this.width=n||0,this.height=i||0,this.radius=r||20,this.type=o.SHAPES.RREC}(e.exports=i.prototype.constructor=i).prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.radius)},i.prototype.contains=function(t,e){return!(this.width<=0||this.height<=0)&&t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height}},{"../../const":433}],450:[function(t,e,n){var i=t("../display/Container"),r=t("../const");function o(t,e,n){i.call(this);(t=t||15e3)<(n=16384<(n=n||15e3)?16384:n)&&(n=t),this._properties=[!1,!0,!1,!1,!1],this._maxSize=t,this._batchSize=n,this._buffers=null,this._bufferToUpdate=0,this.interactiveChildren=!1,this.blendMode=r.BLEND_MODES.NORMAL,this.roundPixels=!0,this.setProperties(e)}o.prototype=Object.create(i.prototype),(e.exports=o.prototype.constructor=o).prototype.setProperties=function(t){t&&(this._properties[0]="scale"in t?!!t.scale:this._properties[0],this._properties[1]="position"in t?!!t.position:this._properties[1],this._properties[2]="rotation"in t?!!t.rotation:this._properties[2],this._properties[3]="uvs"in t?!!t.uvs:this._properties[3],this._properties[4]="alpha"in t?!!t.alpha:this._properties[4])},o.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},o.prototype.renderWebGL=function(t){this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable&&(t.setObjectRenderer(t.plugins.particle),t.plugins.particle.render(this))},o.prototype.onChildrenChange=function(t){t=Math.floor(t/this._batchSize);t<this._bufferToUpdate&&(this._bufferToUpdate=t)},o.prototype.renderCanvas=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable){var e=t.context,n=this.worldTransform,i=!0,r=0,o=0,a=0,s=0,l=t.blendModes[this.blendMode];l!==e.globalCompositeOperation&&(e.globalCompositeOperation=l),e.globalAlpha=this.worldAlpha,this.displayObjectUpdateTransform();for(var c=0;c<this.children.length;++c){var u,h,d=this.children[c];d.visible&&(u=d.texture.frame,e.globalAlpha=this.worldAlpha*d.alpha,s=d.rotation%(2*Math.PI)==0?(i&&(e.setTransform(n.a,n.b,n.c,n.d,n.tx,n.ty),i=!1),r=d.anchor.x*(-u.width*d.scale.x)+d.position.x+.5,o=d.anchor.y*(-u.height*d.scale.y)+d.position.y+.5,a=u.width*d.scale.x,u.height*d.scale.y):(i=i||!0,d.displayObjectUpdateTransform(),h=d.worldTransform,t.roundPixels?e.setTransform(h.a,h.b,h.c,h.d,0|h.tx,0|h.ty):e.setTransform(h.a,h.b,h.c,h.d,h.tx,h.ty),r=d.anchor.x*-u.width+.5,o=d.anchor.y*-u.height+.5,a=u.width,u.height),e.drawImage(d.texture.baseTexture.source,u.x,u.y,u.width,u.height,r,o,a,s))}}},o.prototype.destroy=function(){if(i.prototype.destroy.apply(this,arguments),this._buffers)for(var t=0;t<this._buffers.length;++t)this._buffers[t].destroy();this._properties=null,this._buffers=null}},{"../const":433,"../display/Container":434}],451:[function(t,e,n){function i(t,e,n,i){this.gl=t,this.vertSize=2,this.vertByteSize=4*this.vertSize,this.size=i,this.dynamicProperties=[],this.staticProperties=[];for(var r=0;r<e.length;r++){var o=e[r];(n[r]?this.dynamicProperties:this.staticProperties).push(o)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.initBuffers()}(e.exports=i.prototype.constructor=i).prototype.initBuffers=function(){for(var t,e=this.gl,n=0,i=this.dynamicStride=0;i<this.dynamicProperties.length;i++)(t=this.dynamicProperties[i]).offset=n,n+=t.size,this.dynamicStride+=t.size;this.dynamicData=new Float32Array(this.size*this.dynamicStride*4),this.dynamicBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.dynamicBuffer),e.bufferData(e.ARRAY_BUFFER,this.dynamicData,e.DYNAMIC_DRAW);var r=0;for(i=this.staticStride=0;i<this.staticProperties.length;i++)(t=this.staticProperties[i]).offset=r,r+=t.size,this.staticStride+=t.size;this.staticData=new Float32Array(this.size*this.staticStride*4),this.staticBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,this.staticBuffer),e.bufferData(e.ARRAY_BUFFER,this.staticData,e.DYNAMIC_DRAW)},i.prototype.uploadDynamic=function(t,e,n){for(var i=this.gl,r=0;r<this.dynamicProperties.length;r++){var o=this.dynamicProperties[r];o.uploadFunction(t,e,n,this.dynamicData,this.dynamicStride,o.offset)}i.bindBuffer(i.ARRAY_BUFFER,this.dynamicBuffer),i.bufferSubData(i.ARRAY_BUFFER,0,this.dynamicData)},i.prototype.uploadStatic=function(t,e,n){for(var i=this.gl,r=0;r<this.staticProperties.length;r++){var o=this.staticProperties[r];o.uploadFunction(t,e,n,this.staticData,this.staticStride,o.offset)}i.bindBuffer(i.ARRAY_BUFFER,this.staticBuffer),i.bufferSubData(i.ARRAY_BUFFER,0,this.staticData)},i.prototype.bind=function(){var t,e,n=this.gl;for(n.bindBuffer(n.ARRAY_BUFFER,this.dynamicBuffer),t=0;t<this.dynamicProperties.length;t++)e=this.dynamicProperties[t],n.vertexAttribPointer(e.attribute,e.size,n.FLOAT,!1,4*this.dynamicStride,4*e.offset);for(n.bindBuffer(n.ARRAY_BUFFER,this.staticBuffer),t=0;t<this.staticProperties.length;t++)e=this.staticProperties[t],n.vertexAttribPointer(e.attribute,e.size,n.FLOAT,!1,4*this.staticStride,4*e.offset)},i.prototype.destroy=function(){this.dynamicProperties=null,this.dynamicData=null,this.gl.deleteBuffer(this.dynamicBuffer),this.staticProperties=null,this.staticData=null,this.gl.deleteBuffer(this.staticBuffer)}},{}],452:[function(t,e,n){var i=t("../../renderers/webgl/utils/ObjectRenderer"),r=t("../../renderers/webgl/WebGLRenderer"),o=t("./ParticleShader"),s=t("./ParticleBuffer"),a=t("../../math");function l(t){i.call(this,t);this.indices=new Uint16Array(98304);for(var e=0,n=0;e<98304;e+=6,n+=4)this.indices[e+0]=n+0,this.indices[e+1]=n+1,this.indices[e+2]=n+2,this.indices[e+3]=n+0,this.indices[e+4]=n+2,this.indices[e+5]=n+3;this.shader=null,this.indexBuffer=null,this.properties=null,this.tempMatrix=new a.Matrix}l.prototype=Object.create(i.prototype),e.exports=l.prototype.constructor=l,r.registerPlugin("particle",l),l.prototype.onContextChange=function(){var t=this.renderer.gl;this.shader=new o(this.renderer.shaderManager),this.indexBuffer=t.createBuffer(),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,this.indexBuffer),t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indices,t.STATIC_DRAW),this.properties=[{attribute:this.shader.attributes.aVertexPosition,size:2,uploadFunction:this.uploadVertices,offset:0},{attribute:this.shader.attributes.aPositionCoord,size:2,uploadFunction:this.uploadPosition,offset:0},{attribute:this.shader.attributes.aRotation,size:1,uploadFunction:this.uploadRotation,offset:0},{attribute:this.shader.attributes.aTextureCoord,size:2,uploadFunction:this.uploadUvs,offset:0},{attribute:this.shader.attributes.aColor,size:1,uploadFunction:this.uploadAlpha,offset:0}]},l.prototype.start=function(){var t=this.renderer.gl,t=(t.activeTexture(t.TEXTURE0),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,this.indexBuffer),this.shader);this.renderer.shaderManager.setShader(t)},l.prototype.render=function(t){var e=t.children,n=e.length,i=t._maxSize,r=t._batchSize;if(0!==n){i<n&&(n=i),t._buffers||(t._buffers=this.generateBuffers(t)),this.renderer.blendModeManager.setBlendMode(t.blendMode);var o=this.renderer.gl,i=t.worldTransform.copy(this.tempMatrix),i=(i.prepend(this.renderer.currentRenderTarget.projectionMatrix),o.uniformMatrix3fv(this.shader.uniforms.projectionMatrix._location,!1,i.toArray(!0)),o.uniform1f(this.shader.uniforms.uAlpha._location,t.worldAlpha),e[0]._texture.baseTexture);if(i._glTextures[o.id])o.bindTexture(o.TEXTURE_2D,i._glTextures[o.id]);else{if(!this.renderer.updateTexture(i))return;t._properties[0]&&t._properties[3]||(t._bufferToUpdate=0)}for(var a=0,s=0;a<n;a+=r,s+=1){var l=n-a,c=(r<l&&(l=r),t._buffers[s]);c.uploadDynamic(e,a,l),t._bufferToUpdate===s&&(c.uploadStatic(e,a,l),t._bufferToUpdate=s+1),c.bind(this.shader),o.drawElements(o.TRIANGLES,6*l,o.UNSIGNED_SHORT,0),this.renderer.drawCount++}}},l.prototype.generateBuffers=function(t){for(var e=this.renderer.gl,n=[],i=t._maxSize,r=t._batchSize,o=t._properties,a=0;a<i;a+=r)n.push(new s(e,this.properties,o,r));return n},l.prototype.uploadVertices=function(t,e,n,i,r,o){for(var a,s,l,c,u,h,d,p,f=0;f<n;f++)s=(a=t[e+f])._texture,l=a.scale.x,c=a.scale.y,s.trim?(u=(h=(p=s.trim).x-a.anchor.x*p.width)+s.crop.width,d=(p=p.y-a.anchor.y*p.height)+s.crop.height):(u=s._frame.width*(1-a.anchor.x),h=s._frame.width*-a.anchor.x,d=s._frame.height*(1-a.anchor.y),p=s._frame.height*-a.anchor.y),i[o]=h*l,i[o+1]=p*c,i[o+r]=u*l,i[o+r+1]=p*c,i[o+2*r]=u*l,i[o+2*r+1]=d*c,i[o+3*r]=h*l,i[o+3*r+1]=d*c,o+=4*r},l.prototype.uploadPosition=function(t,e,n,i,r,o){for(var a=0;a<n;a++){var s=t[e+a].position;i[o]=s.x,i[o+1]=s.y,i[o+r]=s.x,i[o+r+1]=s.y,i[o+2*r]=s.x,i[o+2*r+1]=s.y,i[o+3*r]=s.x,i[o+3*r+1]=s.y,o+=4*r}},l.prototype.uploadRotation=function(t,e,n,i,r,o){for(var a=0;a<n;a++){var s=t[e+a].rotation;i[o]=s,i[o+r]=s,i[o+2*r]=s,i[o+3*r]=s,o+=4*r}},l.prototype.uploadUvs=function(t,e,n,i,r,o){for(var a=0;a<n;a++){var s=t[e+a]._texture._uvs;s?(i[o]=s.x0,i[o+1]=s.y0,i[o+r]=s.x1,i[o+r+1]=s.y1,i[o+2*r]=s.x2,i[o+2*r+1]=s.y2,i[o+3*r]=s.x3,i[o+3*r+1]=s.y3):(i[o]=0,i[o+1]=0,i[o+r]=0,i[o+r+1]=0,i[o+2*r]=0,i[o+2*r+1]=0,i[o+3*r]=0,i[o+3*r+1]=0),o+=4*r}},l.prototype.uploadAlpha=function(t,e,n,i,r,o){for(var a=0;a<n;a++){var s=t[e+a].alpha;i[o]=s,i[o+r]=s,i[o+2*r]=s,i[o+3*r]=s,o+=4*r}},l.prototype.destroy=function(){this.renderer.gl&&this.renderer.gl.deleteBuffer(this.indexBuffer),i.prototype.destroy.apply(this,arguments),this.shader.destroy(),this.indices=null,this.tempMatrix=null}},{"../../math":444,"../../renderers/webgl/WebGLRenderer":460,"../../renderers/webgl/utils/ObjectRenderer":474,"./ParticleBuffer":451,"./ParticleShader":453}],453:[function(t,e,n){var i=t("../../renderers/webgl/shaders/TextureShader");function r(t){i.call(this,t,["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute float aColor;","attribute vec2 aPositionCoord;","attribute vec2 aScale;","attribute float aRotation;","uniform mat3 projectionMatrix;","varying vec2 vTextureCoord;","varying float vColor;","void main(void){","   vec2 v = aVertexPosition;","   v.x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);","   v.y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);","   v = v + aPositionCoord;","   gl_Position = vec4((projectionMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);","   vTextureCoord = aTextureCoord;","   vColor = aColor;","}"].join("\n"),["precision lowp float;","varying vec2 vTextureCoord;","varying float vColor;","uniform sampler2D uSampler;","uniform float uAlpha;","void main(void){","  vec4 color = texture2D(uSampler, vTextureCoord) * vColor * uAlpha;","  if (color.a == 0.0) discard;","  gl_FragColor = color;","}"].join("\n"),{uAlpha:{type:"1f",value:1}},{aPositionCoord:0,aRotation:0})}r.prototype=Object.create(i.prototype),e.exports=r.prototype.constructor=r},{"../../renderers/webgl/shaders/TextureShader":473}],454:[function(t,e,n){var o=t("../utils"),a=t("../math"),s=t("../const"),l=t("eventemitter3");function i(t,e,n,i){if(l.call(this),o.sayHello(t),i)for(var r in s.DEFAULT_RENDER_OPTIONS)void 0===i[r]&&(i[r]=s.DEFAULT_RENDER_OPTIONS[r]);else i=s.DEFAULT_RENDER_OPTIONS;this.type=s.RENDERER_TYPE.UNKNOWN,this.width=e||800,this.height=n||600,this.view=i.view||document.createElement("canvas"),this.resolution=i.resolution,this.transparent=i.transparent,this.autoResize=i.autoResize||!1,this.blendModes=null,this.preserveDrawingBuffer=i.preserveDrawingBuffer,this.clearBeforeRender=i.clearBeforeRender,this.roundPixels=i.roundPixels,this._backgroundColor=0,this._backgroundColorRgb=[0,0,0],this._backgroundColorString="#000000",this.backgroundColor=i.backgroundColor||this._backgroundColor,this._tempDisplayObjectParent={worldTransform:new a.Matrix,worldAlpha:1,children:[]},this._lastObjectRendered=this._tempDisplayObjectParent}i.prototype=Object.create(l.prototype),e.exports=i.prototype.constructor=i,Object.defineProperties(i.prototype,{backgroundColor:{get:function(){return this._backgroundColor},set:function(t){this._backgroundColor=t,this._backgroundColorString=o.hex2string(t),o.hex2rgb(t,this._backgroundColorRgb)}}}),i.prototype.resize=function(t,e){this.width=t*this.resolution,this.height=e*this.resolution,this.view.width=this.width,this.view.height=this.height,this.autoResize&&(this.view.style.width=this.width/this.resolution+"px",this.view.style.height=this.height/this.resolution+"px")},i.prototype.destroy=function(t){t&&this.view.parentNode&&this.view.parentNode.removeChild(this.view),this.type=s.RENDERER_TYPE.UNKNOWN,this.width=0,this.height=0,this.view=null,this.resolution=0,this.transparent=!1,this.autoResize=!1,this.blendModes=null,this.preserveDrawingBuffer=!1,this.clearBeforeRender=!1,this.roundPixels=!1,this._backgroundColor=0,this._backgroundColorRgb=null,this._backgroundColorString=null}},{"../const":433,"../math":444,"../utils":488,eventemitter3:382}],455:[function(t,e,n){var i=t("../SystemRenderer"),r=t("./utils/CanvasMaskManager"),o=t("../../utils"),a=t("../../math"),s=t("../../const");function l(t,e,n){i.call(this,"Canvas",t,e,n=n||{}),this.type=s.RENDERER_TYPE.CANVAS,this.context=this.view.getContext("2d",{alpha:this.transparent}),this.refresh=!0,this.maskManager=new r,this.smoothProperty="imageSmoothingEnabled",this.context.imageSmoothingEnabled||(this.context.webkitImageSmoothingEnabled?this.smoothProperty="webkitImageSmoothingEnabled":this.context.mozImageSmoothingEnabled?this.smoothProperty="mozImageSmoothingEnabled":this.context.oImageSmoothingEnabled?this.smoothProperty="oImageSmoothingEnabled":this.context.msImageSmoothingEnabled&&(this.smoothProperty="msImageSmoothingEnabled")),this.initPlugins(),this._mapBlendModes(),this._tempDisplayObjectParent={worldTransform:new a.Matrix,worldAlpha:1},this.resize(t,e)}l.prototype=Object.create(i.prototype),e.exports=l.prototype.constructor=l,o.pluginTarget.mixin(l),l.prototype.render=function(t){this.emit("prerender");var e=t.parent;(this._lastObjectRendered=t).parent=this._tempDisplayObjectParent,t.updateTransform(),t.parent=e,this.context.setTransform(1,0,0,1,0,0),this.context.globalAlpha=1,this.context.globalCompositeOperation=this.blendModes[s.BLEND_MODES.NORMAL],navigator.isCocoonJS&&this.view.screencanvas&&(this.context.fillStyle="black",this.context.clear()),this.clearBeforeRender&&(this.transparent?this.context.clearRect(0,0,this.width,this.height):(this.context.fillStyle=this._backgroundColorString,this.context.fillRect(0,0,this.width,this.height))),this.renderDisplayObject(t,this.context),this.emit("postrender")},l.prototype.destroy=function(t){this.destroyPlugins(),i.prototype.destroy.call(this,t),this.context=null,this.refresh=!0,this.maskManager.destroy(),this.maskManager=null,this.smoothProperty=null},l.prototype.renderDisplayObject=function(t,e){var n=this.context;this.context=e,t.renderCanvas(this),this.context=n},l.prototype.resize=function(t,e){i.prototype.resize.call(this,t,e),this.smoothProperty&&(this.context[this.smoothProperty]=s.SCALE_MODES.DEFAULT===s.SCALE_MODES.LINEAR)},l.prototype._mapBlendModes=function(){this.blendModes||(this.blendModes={},o.canUseNewCanvasBlendModes()?(this.blendModes[s.BLEND_MODES.NORMAL]="source-over",this.blendModes[s.BLEND_MODES.ADD]="lighter",this.blendModes[s.BLEND_MODES.MULTIPLY]="multiply",this.blendModes[s.BLEND_MODES.SCREEN]="screen",this.blendModes[s.BLEND_MODES.OVERLAY]="overlay",this.blendModes[s.BLEND_MODES.DARKEN]="darken",this.blendModes[s.BLEND_MODES.LIGHTEN]="lighten",this.blendModes[s.BLEND_MODES.COLOR_DODGE]="color-dodge",this.blendModes[s.BLEND_MODES.COLOR_BURN]="color-burn",this.blendModes[s.BLEND_MODES.HARD_LIGHT]="hard-light",this.blendModes[s.BLEND_MODES.SOFT_LIGHT]="soft-light",this.blendModes[s.BLEND_MODES.DIFFERENCE]="difference",this.blendModes[s.BLEND_MODES.EXCLUSION]="exclusion",this.blendModes[s.BLEND_MODES.HUE]="hue",this.blendModes[s.BLEND_MODES.SATURATION]="saturate",this.blendModes[s.BLEND_MODES.COLOR]="color",this.blendModes[s.BLEND_MODES.LUMINOSITY]="luminosity"):(this.blendModes[s.BLEND_MODES.NORMAL]="source-over",this.blendModes[s.BLEND_MODES.ADD]="lighter",this.blendModes[s.BLEND_MODES.MULTIPLY]="source-over",this.blendModes[s.BLEND_MODES.SCREEN]="source-over",this.blendModes[s.BLEND_MODES.OVERLAY]="source-over",this.blendModes[s.BLEND_MODES.DARKEN]="source-over",this.blendModes[s.BLEND_MODES.LIGHTEN]="source-over",this.blendModes[s.BLEND_MODES.COLOR_DODGE]="source-over",this.blendModes[s.BLEND_MODES.COLOR_BURN]="source-over",this.blendModes[s.BLEND_MODES.HARD_LIGHT]="source-over",this.blendModes[s.BLEND_MODES.SOFT_LIGHT]="source-over",this.blendModes[s.BLEND_MODES.DIFFERENCE]="source-over",this.blendModes[s.BLEND_MODES.EXCLUSION]="source-over",this.blendModes[s.BLEND_MODES.HUE]="source-over",this.blendModes[s.BLEND_MODES.SATURATION]="source-over",this.blendModes[s.BLEND_MODES.COLOR]="source-over",this.blendModes[s.BLEND_MODES.LUMINOSITY]="source-over"))}},{"../../const":433,"../../math":444,"../../utils":488,"../SystemRenderer":454,"./utils/CanvasMaskManager":458}],456:[function(t,e,n){function i(t,e){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.canvas.width=t,this.canvas.height=e}e.exports=i.prototype.constructor=i,Object.defineProperties(i.prototype,{width:{get:function(){return this.canvas.width},set:function(t){this.canvas.width=t}},height:{get:function(){return this.canvas.height},set:function(t){this.canvas.height=t}}}),i.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},i.prototype.resize=function(t,e){this.canvas.width=t,this.canvas.height=e},i.prototype.destroy=function(){this.context=null,this.canvas=null}},{}],457:[function(t,e,n){var y=t("../../../const"),t={};(e.exports=t).renderGraphics=function(t,e){var n=t.worldAlpha;t.dirty&&(this.updateGraphicsTint(t),t.dirty=!1);for(var i=0;i<t.graphicsData.length;i++){var r,o,a,s,l,c,u,h,d=t.graphicsData[i],p=d.shape,f=d._fillTint,m=d._lineTint;if(e.lineWidth=d.lineWidth,d.type===y.SHAPES.POLY){e.beginPath();var g=p.points;e.moveTo(g[0],g[1]);for(var v=1;v<g.length/2;v++)e.lineTo(g[2*v],g[2*v+1]);p.closed&&e.lineTo(g[0],g[1]),g[0]===g[g.length-2]&&g[1]===g[g.length-1]&&e.closePath(),d.fill&&(e.globalAlpha=d.fillAlpha*n,e.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),e.fill()),d.lineWidth&&(e.globalAlpha=d.lineAlpha*n,e.strokeStyle="#"+("00000"+(0|m).toString(16)).substr(-6),e.stroke())}else d.type===y.SHAPES.RECT?(!d.fillColor&&0!==d.fillColor||(e.globalAlpha=d.fillAlpha*n,e.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),e.fillRect(p.x,p.y,p.width,p.height)),d.lineWidth&&(e.globalAlpha=d.lineAlpha*n,e.strokeStyle="#"+("00000"+(0|m).toString(16)).substr(-6),e.strokeRect(p.x,p.y,p.width,p.height))):d.type===y.SHAPES.CIRC?(e.beginPath(),e.arc(p.x,p.y,p.radius,0,2*Math.PI),e.closePath(),d.fill&&(e.globalAlpha=d.fillAlpha*n,e.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),e.fill()),d.lineWidth&&(e.globalAlpha=d.lineAlpha*n,e.strokeStyle="#"+("00000"+(0|m).toString(16)).substr(-6),e.stroke())):d.type===y.SHAPES.ELIP?(l=2*p.width,o=2*p.height,r=p.x-l/2,a=p.y-o/2,e.beginPath(),c=l/2*.5522848,u=o/2*.5522848,s=r+l,h=a+o,l=r+l/2,e.moveTo(r,o=a+o/2),e.bezierCurveTo(r,o-u,l-c,a,l,a),e.bezierCurveTo(l+c,a,s,o-u,s,o),e.bezierCurveTo(s,o+u,l+c,h,l,h),e.bezierCurveTo(l-c,h,r,o+u,r,o),e.closePath(),d.fill&&(e.globalAlpha=d.fillAlpha*n,e.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),e.fill()),d.lineWidth&&(e.globalAlpha=d.lineAlpha*n,e.strokeStyle="#"+("00000"+(0|m).toString(16)).substr(-6),e.stroke())):d.type===y.SHAPES.RREC&&(a=p.x,s=p.y,l=p.width,c=p.height,h=p.radius,h=(u=Math.min(l,c)/2|0)<h?u:h,e.beginPath(),e.moveTo(a,s+h),e.lineTo(a,s+c-h),e.quadraticCurveTo(a,s+c,a+h,s+c),e.lineTo(a+l-h,s+c),e.quadraticCurveTo(a+l,s+c,a+l,s+c-h),e.lineTo(a+l,s+h),e.quadraticCurveTo(a+l,s,a+l-h,s),e.lineTo(a+h,s),e.quadraticCurveTo(a,s,a,s+h),e.closePath(),!d.fillColor&&0!==d.fillColor||(e.globalAlpha=d.fillAlpha*n,e.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),e.fill()),d.lineWidth)&&(e.globalAlpha=d.lineAlpha*n,e.strokeStyle="#"+("00000"+(0|m).toString(16)).substr(-6),e.stroke())}},t.renderGraphicsMask=function(t,e){var n=t.graphicsData.length;if(0!==n){e.beginPath();for(var i=0;i<n;i++){var r,o,a,s,l,c,u,h,d=t.graphicsData[i],p=d.shape;if(d.type===y.SHAPES.POLY){var f=p.points;e.moveTo(f[0],f[1]);for(var m=1;m<f.length/2;m++)e.lineTo(f[2*m],f[2*m+1]);f[0]===f[f.length-2]&&f[1]===f[f.length-1]&&e.closePath()}else d.type===y.SHAPES.RECT?(e.rect(p.x,p.y,p.width,p.height),e.closePath()):d.type===y.SHAPES.CIRC?(e.arc(p.x,p.y,p.radius,0,2*Math.PI),e.closePath()):d.type===y.SHAPES.ELIP?(c=(l=2*p.width)/2*.5522848,u=(o=2*p.height)/2*.5522848,s=(r=p.x-l/2)+l,h=(a=p.y-o/2)+o,l=r+l/2,e.moveTo(r,o=a+o/2),e.bezierCurveTo(r,o-u,l-c,a,l,a),e.bezierCurveTo(l+c,a,s,o-u,s,o),e.bezierCurveTo(s,o+u,l+c,h,l,h),e.bezierCurveTo(l-c,h,r,o+u,r,o),e.closePath()):d.type===y.SHAPES.RREC&&(a=p.x,s=p.y,l=p.width,c=p.height,h=p.radius,u=Math.min(l,c)/2|0,e.moveTo(a,s+(h=u<h?u:h)),e.lineTo(a,s+c-h),e.quadraticCurveTo(a,s+c,a+h,s+c),e.lineTo(a+l-h,s+c),e.quadraticCurveTo(a+l,s+c,a+l,s+c-h),e.lineTo(a+l,s+h),e.quadraticCurveTo(a+l,s,a+l-h,s),e.lineTo(a+h,s),e.quadraticCurveTo(a,s,a,s+h),e.closePath())}}},t.updateGraphicsTint=function(t){if(16777215!==t.tint||t._prevTint!==t.tint){t._prevTint=t.tint;for(var e=(t.tint>>16&255)/255,n=(t.tint>>8&255)/255,i=(255&t.tint)/255,r=0;r<t.graphicsData.length;r++){var o=t.graphicsData[r],a=0|o.fillColor,s=0|o.lineColor;o._fillTint=((a>>16&255)/255*e*255<<16)+((a>>8&255)/255*n*255<<8)+(255&a)/255*i*255,o._lineTint=((s>>16&255)/255*e*255<<16)+((s>>8&255)/255*n*255<<8)+(255&s)/255*i*255}}}},{"../../../const":433}],458:[function(t,e,n){var o=t("./CanvasGraphics");function i(){}(e.exports=i.prototype.constructor=i).prototype.pushMask=function(t,e){e.context.save();var n=t.alpha,i=t.worldTransform,r=e.resolution;e.context.setTransform(i.a*r,i.b*r,i.c*r,i.d*r,i.tx*r,i.ty*r),t.texture||(o.renderGraphicsMask(t,e.context),e.context.clip()),t.worldAlpha=n},i.prototype.popMask=function(t){t.context.restore()},i.prototype.destroy=function(){}},{"./CanvasGraphics":457}],459:[function(t,e,n){var h=t("../../../utils"),r={};(e.exports=r).getTintedTexture=function(t,e){var n,t=t.texture,i="#"+("00000"+(0|(e=r.roundColor(e))).toString(16)).substr(-6);return t.tintCache=t.tintCache||{},t.tintCache[i]||(n=r.canvas||document.createElement("canvas"),r.tintMethod(t,e,n),r.convertTintToImage?((e=new Image).src=n.toDataURL(),t.tintCache[i]=e):(t.tintCache[i]=n,r.canvas=null),n)},r.tintWithMultiply=function(t,e,n){var i=n.getContext("2d"),r=t.baseTexture.resolution,o=t.crop.clone();o.x*=r,o.y*=r,o.width*=r,o.height*=r,n.width=o.width,n.height=o.height,i.fillStyle="#"+("00000"+(0|e).toString(16)).substr(-6),i.fillRect(0,0,o.width,o.height),i.globalCompositeOperation="multiply",i.drawImage(t.baseTexture.source,o.x,o.y,o.width,o.height,0,0,o.width,o.height),i.globalCompositeOperation="destination-atop",i.drawImage(t.baseTexture.source,o.x,o.y,o.width,o.height,0,0,o.width,o.height)},r.tintWithOverlay=function(t,e,n){var i=n.getContext("2d"),r=t.baseTexture.resolution,o=t.crop.clone();o.x*=r,o.y*=r,o.width*=r,o.height*=r,n.width=o.width,n.height=o.height,i.globalCompositeOperation="copy",i.fillStyle="#"+("00000"+(0|e).toString(16)).substr(-6),i.fillRect(0,0,o.width,o.height),i.globalCompositeOperation="destination-atop",i.drawImage(t.baseTexture.source,o.x,o.y,o.width,o.height,0,0,o.width,o.height)},r.tintWithPerPixel=function(t,e,n){for(var i=n.getContext("2d"),r=t.baseTexture.resolution,o=t.crop.clone(),r=(o.x*=r,o.y*=r,o.width*=r,o.height*=r,n.width=o.width,n.height=o.height,i.globalCompositeOperation="copy",i.drawImage(t.baseTexture.source,o.x,o.y,o.width,o.height,0,0,o.width,o.height),h.hex2rgb(e)),a=r[0],s=r[1],l=r[2],n=i.getImageData(0,0,o.width,o.height),c=n.data,u=0;u<c.length;u+=4)c[u+0]*=a,c[u+1]*=s,c[u+2]*=l;i.putImageData(n,0,0)},r.roundColor=function(t){var e=r.cacheStepsPerColorChannel,t=h.hex2rgb(t);return t[0]=Math.min(255,t[0]/e*e),t[1]=Math.min(255,t[1]/e*e),t[2]=Math.min(255,t[2]/e*e),h.rgb2hex(t)},r.cacheStepsPerColorChannel=8,r.convertTintToImage=!1,r.canUseMultiply=h.canUseNewCanvasBlendModes(),r.tintMethod=r.canUseMultiply?r.tintWithMultiply:r.tintWithPerPixel},{"../../../utils":488}],460:[function(t,e,n){var i=t("../SystemRenderer"),r=t("./managers/ShaderManager"),o=t("./managers/MaskManager"),a=t("./managers/StencilManager"),s=t("./managers/FilterManager"),l=t("./managers/BlendModeManager"),c=t("./utils/RenderTarget"),u=t("./utils/ObjectRenderer"),h=t("./filters/FXAAFilter"),d=t("../../utils"),p=t("../../const");function f(t,e,n){i.call(this,"WebGL",t,e,n=n||{}),this.type=p.RENDERER_TYPE.WEBGL,this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this),this.view.addEventListener("webglcontextlost",this.handleContextLost,!1),this.view.addEventListener("webglcontextrestored",this.handleContextRestored,!1),this._useFXAA=!!n.forceFXAA&&n.antialias,this._FXAAFilter=null,this._contextOptions={alpha:this.transparent,antialias:n.antialias,premultipliedAlpha:this.transparent&&"notMultiplied"!==this.transparent,stencil:!0,preserveDrawingBuffer:n.preserveDrawingBuffer},this.drawCount=0,this.shaderManager=new r(this),this.maskManager=new o(this),this.stencilManager=new a(this),this.filterManager=new s(this),this.blendModeManager=new l(this),this.currentRenderTarget=null,this.currentRenderer=new u(this),this.initPlugins(),this._createContext(),this._initContext(),this._mapGlModes(),this._managedTextures=[],this._renderTargetStack=[]}f.prototype=Object.create(i.prototype),e.exports=f.prototype.constructor=f,d.pluginTarget.mixin(f),f.glContextId=0,f.prototype._createContext=function(){var t=this.view.getContext("webgl",this._contextOptions)||this.view.getContext("experimental-webgl",this._contextOptions);if(!(this.gl=t))throw new Error("This browser does not support webGL. Try using the canvas renderer");this.glContextId=f.glContextId++,t.id=this.glContextId,t.renderer=this},f.prototype._initContext=function(){var t=this.gl;t.disable(t.DEPTH_TEST),t.disable(t.CULL_FACE),t.enable(t.BLEND),this.renderTarget=new c(t,this.width,this.height,null,this.resolution,!0),this.setRenderTarget(this.renderTarget),this.emit("context",t),this.resize(this.width,this.height),this._useFXAA||(this._useFXAA=this._contextOptions.antialias&&!t.getContextAttributes().antialias),this._useFXAA&&(window.console.warn("FXAA antialiasing being used instead of native antialiasing"),this._FXAAFilter=[new h])},f.prototype.render=function(t){var e;this.emit("prerender"),this.gl.isContextLost()||(this.drawCount=0,this._lastObjectRendered=t,this._useFXAA&&(this._FXAAFilter[0].uniforms.resolution.value.x=this.width,this._FXAAFilter[0].uniforms.resolution.value.y=this.height,t.filterArea=this.renderTarget.size,t.filters=this._FXAAFilter),e=t.parent,t.parent=this._tempDisplayObjectParent,t.updateTransform(),t.parent=e,e=this.gl,this.setRenderTarget(this.renderTarget),this.clearBeforeRender&&(this.transparent?e.clearColor(0,0,0,0):e.clearColor(this._backgroundColorRgb[0],this._backgroundColorRgb[1],this._backgroundColorRgb[2],1),e.clear(e.COLOR_BUFFER_BIT)),this.renderDisplayObject(t,this.renderTarget),this.emit("postrender"))},f.prototype.renderDisplayObject=function(t,e,n){this.setRenderTarget(e),n&&e.clear(),this.filterManager.setFilterStack(e.filterStack),t.renderWebGL(this),this.currentRenderer.flush()},f.prototype.setObjectRenderer=function(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())},f.prototype.setRenderTarget=function(t){this.currentRenderTarget!==t&&(this.currentRenderTarget=t,this.currentRenderTarget.activate(),this.stencilManager.setMaskStack(t.stencilMaskStack))},f.prototype.resize=function(t,e){i.prototype.resize.call(this,t,e),this.filterManager.resize(t,e),this.renderTarget.resize(t,e),this.currentRenderTarget===this.renderTarget&&(this.renderTarget.activate(),this.gl.viewport(0,0,this.width,this.height))},f.prototype.updateTexture=function(t){var e;if((t=t.baseTexture||t).hasLoaded)return e=this.gl,t._glTextures[e.id]||(t._glTextures[e.id]=e.createTexture(),t.on("update",this.updateTexture,this),t.on("dispose",this.destroyTexture,this),this._managedTextures.push(t)),e.bindTexture(e.TEXTURE_2D,t._glTextures[e.id]),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t.premultipliedAlpha),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,t.source),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t.scaleMode===p.SCALE_MODES.LINEAR?e.LINEAR:e.NEAREST),t.mipmap&&t.isPowerOfTwo?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t.scaleMode===p.SCALE_MODES.LINEAR?e.LINEAR_MIPMAP_LINEAR:e.NEAREST_MIPMAP_NEAREST),e.generateMipmap(e.TEXTURE_2D)):e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t.scaleMode===p.SCALE_MODES.LINEAR?e.LINEAR:e.NEAREST),t.isPowerOfTwo?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)),t._glTextures[e.id]},f.prototype.destroyTexture=function(t,e){(t=t.baseTexture||t).hasLoaded&&t._glTextures[this.gl.id]&&(this.gl.deleteTexture(t._glTextures[this.gl.id]),delete t._glTextures[this.gl.id],e||-1!==(e=this._managedTextures.indexOf(t))&&d.removeItems(this._managedTextures,e,1))},f.prototype.handleContextLost=function(t){t.preventDefault()},f.prototype.handleContextRestored=function(){this._initContext();for(var t=0;t<this._managedTextures.length;++t){var e=this._managedTextures[t];e._glTextures[this.gl.id]&&delete e._glTextures[this.gl.id]}},f.prototype.destroy=function(t){this.destroyPlugins(),this.view.removeEventListener("webglcontextlost",this.handleContextLost),this.view.removeEventListener("webglcontextrestored",this.handleContextRestored);for(var e=0;e<this._managedTextures.length;++e){var n=this._managedTextures[e];this.destroyTexture(n,!0),n.off("update",this.updateTexture,this),n.off("dispose",this.destroyTexture,this)}i.prototype.destroy.call(this,t),this.uid=0,this.shaderManager.destroy(),this.maskManager.destroy(),this.stencilManager.destroy(),this.filterManager.destroy(),this.blendModeManager.destroy(),this.shaderManager=null,this.maskManager=null,this.filterManager=null,this.blendModeManager=null,this.currentRenderer=null,this.handleContextLost=null,this.handleContextRestored=null,this._contextOptions=null,this._managedTextures=null,this.drawCount=0,this.gl.useProgram(null),this.gl.flush(),this.gl=null},f.prototype._mapGlModes=function(){var t=this.gl;this.blendModes||(this.blendModes={},this.blendModes[p.BLEND_MODES.NORMAL]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.ADD]=[t.ONE,t.DST_ALPHA],this.blendModes[p.BLEND_MODES.MULTIPLY]=[t.DST_COLOR,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.SCREEN]=[t.ONE,t.ONE_MINUS_SRC_COLOR],this.blendModes[p.BLEND_MODES.OVERLAY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.DARKEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.LIGHTEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.COLOR_DODGE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.COLOR_BURN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.HARD_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.SOFT_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.DIFFERENCE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.EXCLUSION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.HUE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.SATURATION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.COLOR]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],this.blendModes[p.BLEND_MODES.LUMINOSITY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA]),this.drawModes||(this.drawModes={},this.drawModes[p.DRAW_MODES.POINTS]=t.POINTS,this.drawModes[p.DRAW_MODES.LINES]=t.LINES,this.drawModes[p.DRAW_MODES.LINE_LOOP]=t.LINE_LOOP,this.drawModes[p.DRAW_MODES.LINE_STRIP]=t.LINE_STRIP,this.drawModes[p.DRAW_MODES.TRIANGLES]=t.TRIANGLES,this.drawModes[p.DRAW_MODES.TRIANGLE_STRIP]=t.TRIANGLE_STRIP,this.drawModes[p.DRAW_MODES.TRIANGLE_FAN]=t.TRIANGLE_FAN)}},{"../../const":433,"../../utils":488,"../SystemRenderer":454,"./filters/FXAAFilter":462,"./managers/BlendModeManager":464,"./managers/FilterManager":465,"./managers/MaskManager":466,"./managers/ShaderManager":467,"./managers/StencilManager":468,"./utils/ObjectRenderer":474,"./utils/RenderTarget":476}],461:[function(t,e,n){var i=t("../shaders/TextureShader");function r(t,e,n){this.shaders=[],this.padding=0,this.uniforms=n||{},this.vertexSrc=t||i.defaultVertexSrc,this.fragmentSrc=e||i.defaultFragmentSrc}(e.exports=r.prototype.constructor=r).prototype.getShader=function(t){var e=t.gl,n=this.shaders[e.id];return n||(n=new i(t.shaderManager,this.vertexSrc,this.fragmentSrc,this.uniforms,this.attributes),this.shaders[e.id]=n),n},r.prototype.applyFilter=function(t,e,n,i){var r=this.getShader(t);t.filterManager.applyFilter(r,e,n,i)},r.prototype.syncUniform=function(t){for(var e=0,n=this.shaders.length;e<n;++e)this.shaders[e].syncUniform(t)}},{"../shaders/TextureShader":473}],462:[function(t,e,n){var i=t("./AbstractFilter");function r(){i.call(this,"\nprecision mediump float;\n\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform mat3 projectionMatrix;\nuniform vec2 resolution;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nvarying vec2 vResolution;\n\n//texcoords computed in vertex step\n//to avoid dependent texture reads\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\n\nvoid texcoords(vec2 fragCoord, vec2 resolution,\n            out vec2 v_rgbNW, out vec2 v_rgbNE,\n            out vec2 v_rgbSW, out vec2 v_rgbSE,\n            out vec2 v_rgbM) {\n    vec2 inverseVP = 1.0 / resolution.xy;\n    v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n    v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n    v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n    v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n    v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void){\n   gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n   vTextureCoord = aTextureCoord;\n   vColor = vec4(aColor.rgb * aColor.a, aColor.a);\n   vResolution = resolution;\n\n   //compute the texture coords and send them to varyings\n   texcoords(aTextureCoord * resolution, resolution, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}\n",'precision lowp float;\n\n\n/**\nBasic FXAA implementation based on the code on geeks3d.com with the\nmodification that the texture2DLod stuff was removed since it\'s\nunsupported by WebGL.\n\n--\n\nFrom:\nhttps://github.com/mitsuhiko/webgl-meincraft\n\nCopyright (c) 2011 by Armin Ronacher.\n\nSome rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are\nmet:\n\n    * Redistributions of source code must retain the above copyright\n      notice, this list of conditions and the following disclaimer.\n\n    * Redistributions in binary form must reproduce the above\n      copyright notice, this list of conditions and the following\n      disclaimer in the documentation and/or other materials provided\n      with the distribution.\n\n    * The names of the contributors may not be used to endorse or\n      promote products derived from this software without specific\n      prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\nLIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\nA PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\nOWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\nSPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\nLIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\nDATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\nTHEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\n#ifndef FXAA_REDUCE_MIN\n    #define FXAA_REDUCE_MIN   (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n    #define FXAA_REDUCE_MUL   (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n    #define FXAA_SPAN_MAX     8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 resolution,\n            vec2 v_rgbNW, vec2 v_rgbNE,\n            vec2 v_rgbSW, vec2 v_rgbSE,\n            vec2 v_rgbM) {\n    vec4 color;\n    mediump vec2 inverseVP = vec2(1.0 / resolution.x, 1.0 / resolution.y);\n    vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n    vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n    vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n    vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n    vec4 texColor = texture2D(tex, v_rgbM);\n    vec3 rgbM  = texColor.xyz;\n    vec3 luma = vec3(0.299, 0.587, 0.114);\n    float lumaNW = dot(rgbNW, luma);\n    float lumaNE = dot(rgbNE, luma);\n    float lumaSW = dot(rgbSW, luma);\n    float lumaSE = dot(rgbSE, luma);\n    float lumaM  = dot(rgbM,  luma);\n    float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n    float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n\n    mediump vec2 dir;\n    dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n    dir.y =  ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n\n    float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n                          (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n\n    float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n    dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n              max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n              dir * rcpDirMin)) * inverseVP;\n\n    vec3 rgbA = 0.5 * (\n        texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n        texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n    vec3 rgbB = rgbA * 0.5 + 0.25 * (\n        texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n        texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n\n    float lumaB = dot(rgbB, luma);\n    if ((lumaB < lumaMin) || (lumaB > lumaMax))\n        color = vec4(rgbA, texColor.a);\n    else\n        color = vec4(rgbB, texColor.a);\n    return color;\n}\n\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying vec2 vResolution;\n\n//texcoords computed in vertex step\n//to avoid dependent texture reads\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nuniform sampler2D uSampler;\n\n\nvoid main(void){\n\n    gl_FragColor = fxaa(uSampler, vTextureCoord * vResolution, vResolution, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n}\n',{resolution:{type:"v2",value:{x:1,y:1}}})}r.prototype=Object.create(i.prototype),(e.exports=r.prototype.constructor=r).prototype.applyFilter=function(t,e,n){var i=t.filterManager,t=this.getShader(t);i.applyFilter(t,e,n)}},{"./AbstractFilter":461}],463:[function(t,e,n){var i=t("./AbstractFilter"),r=t("../../../math");function o(t){var e=new r.Matrix;i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n    vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0)  ).xy;\n    vColor = vec4(aColor.rgb * aColor.a, aColor.a);\n}\n","precision lowp float;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\nuniform float alpha;\nuniform sampler2D mask;\n\nvoid main(void)\n{\n    // check clip! this will stop the mask bleeding out from the edges\n    vec2 text = abs( vMaskCoord - 0.5 );\n    text = step(0.5, text);\n    float clip = 1.0 - max(text.y, text.x);\n    vec4 original = texture2D(uSampler, vTextureCoord);\n    vec4 masky = texture2D(mask, vMaskCoord);\n    original *= (masky.r * masky.a * alpha * clip);\n    gl_FragColor = original;\n}\n",{mask:{type:"sampler2D",value:t._texture},alpha:{type:"f",value:1},otherMatrix:{type:"mat3",value:e.toArray(!0)}}),this.maskSprite=t,this.maskMatrix=e}o.prototype=Object.create(i.prototype),(e.exports=o.prototype.constructor=o).prototype.applyFilter=function(t,e,n){var i=t.filterManager,t=(this.uniforms.mask.value=this.maskSprite._texture,i.calculateMappedMatrix(e.frame,this.maskSprite,this.maskMatrix),this.uniforms.otherMatrix.value=this.maskMatrix.toArray(!0),this.uniforms.alpha.value=this.maskSprite.worldAlpha,this.getShader(t));i.applyFilter(t,e,n)},Object.defineProperties(o.prototype,{map:{get:function(){return this.uniforms.mask.value},set:function(t){this.uniforms.mask.value=t}},offset:{get:function(){return this.uniforms.offset.value},set:function(t){this.uniforms.offset.value=t}}})},{"../../../math":444,"./AbstractFilter":461}],464:[function(t,e,n){var i=t("./WebGLManager");function r(t){i.call(this,t),this.currentBlendMode=99999}r.prototype=Object.create(i.prototype),(e.exports=r.prototype.constructor=r).prototype.setBlendMode=function(t){if(this.currentBlendMode===t)return!1;this.currentBlendMode=t;t=this.renderer.blendModes[this.currentBlendMode];return this.renderer.gl.blendFunc(t[0],t[1]),!0}},{"./WebGLManager":469}],465:[function(t,e,n){var i=t("./WebGLManager"),r=t("../utils/RenderTarget"),c=t("../../../const"),o=t("../utils/Quad"),s=t("../../../math");function a(t){i.call(this,t),this.filterStack=[],this.filterStack.push({renderTarget:t.currentRenderTarget,filter:[],bounds:null}),this.texturePool=[],this.textureSize=new s.Rectangle(0,0,t.width,t.height),this.currentFrame=null}a.prototype=Object.create(i.prototype),(e.exports=a.prototype.constructor=a).prototype.onContextChange=function(){this.texturePool.length=0;var t=this.renderer.gl;this.quad=new o(t)},a.prototype.setFilterStack=function(t){this.filterStack=t},a.prototype.pushFilter=function(t,e){var t=t.filterArea?t.filterArea.clone():t.getBounds(),n=(t.x=0|t.x,t.y=0|t.y,t.width=0|t.width,t.height=0|t.height,0|e[0].padding);t.x-=n,t.y-=n,t.width+=2*n,t.height+=2*n,this.renderer.currentRenderTarget.transform?(n=this.renderer.currentRenderTarget.transform,t.x+=n.tx,t.y+=n.ty,this.capFilterArea(t),t.x-=n.tx,t.y-=n.ty):this.capFilterArea(t),0<t.width&&0<t.height?(this.currentFrame=t,n=this.getRenderTarget(),this.renderer.setRenderTarget(n),n.clear(),this.filterStack.push({renderTarget:n,filter:e})):this.filterStack.push({renderTarget:null,filter:e})},a.prototype.popFilter=function(){var t=this.filterStack.pop(),e=this.filterStack[this.filterStack.length-1],n=t.renderTarget;if(t.renderTarget){var e=e.renderTarget,i=this.renderer.gl,r=(this.currentFrame=n.frame,this.quad.map(this.textureSize,n.frame),i.bindBuffer(i.ARRAY_BUFFER,this.quad.vertexBuffer),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,this.quad.indexBuffer),t.filter);if(i.vertexAttribPointer(this.renderer.shaderManager.defaultShader.attributes.aVertexPosition,2,i.FLOAT,!1,0,0),i.vertexAttribPointer(this.renderer.shaderManager.defaultShader.attributes.aTextureCoord,2,i.FLOAT,!1,0,32),i.vertexAttribPointer(this.renderer.shaderManager.defaultShader.attributes.aColor,4,i.FLOAT,!1,0,64),this.renderer.blendModeManager.setBlendMode(c.BLEND_MODES.NORMAL),1===r.length)r[0].uniforms.dimensions&&(r[0].uniforms.dimensions.value[0]=this.renderer.width,r[0].uniforms.dimensions.value[1]=this.renderer.height,r[0].uniforms.dimensions.value[2]=this.quad.vertices[0],r[0].uniforms.dimensions.value[3]=this.quad.vertices[5]),r[0].applyFilter(this.renderer,n,e),this.returnRenderTarget(n);else{for(var o=n,a=this.getRenderTarget(!0),s=0;s<r.length-1;s++)var l=r[s],l=(l.uniforms.dimensions&&(l.uniforms.dimensions.value[0]=this.renderer.width,l.uniforms.dimensions.value[1]=this.renderer.height,l.uniforms.dimensions.value[2]=this.quad.vertices[0],l.uniforms.dimensions.value[3]=this.quad.vertices[5]),l.applyFilter(this.renderer,o,a),o),o=a,a=l;r[r.length-1].applyFilter(this.renderer,o,e),this.returnRenderTarget(o),this.returnRenderTarget(a)}return t.filter}},a.prototype.getRenderTarget=function(t){var e=this.texturePool.pop()||new r(this.renderer.gl,this.textureSize.width,this.textureSize.height,c.SCALE_MODES.LINEAR,this.renderer.resolution*c.FILTER_RESOLUTION);return e.frame=this.currentFrame,t&&e.clear(!0),e},a.prototype.returnRenderTarget=function(t){this.texturePool.push(t)},a.prototype.applyFilter=function(t,e,n,i){var r=this.renderer.gl;this.renderer.setRenderTarget(n),i&&n.clear(),this.renderer.shaderManager.setShader(t),t.uniforms.projectionMatrix.value=this.renderer.currentRenderTarget.projectionMatrix.toArray(!0),t.syncUniforms(),r.activeTexture(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,e.texture),r.drawElements(r.TRIANGLES,6,r.UNSIGNED_SHORT,0),this.renderer.drawCount++},a.prototype.calculateMappedMatrix=function(t,e,n){var i=e.worldTransform.copy(s.Matrix.TEMP_MATRIX),r=e._texture.baseTexture,n=n.identity(),o=this.textureSize.height/this.textureSize.width,t=(n.translate(t.x/this.textureSize.width,t.y/this.textureSize.height),n.scale(1,o),this.textureSize.width/r.width),a=this.textureSize.height/r.height;return i.tx/=r.width*t,i.ty/=r.width*t,i.invert(),n.prepend(i),n.scale(1,1/o),n.scale(t,a),n.translate(e.anchor.x,e.anchor.y),n},a.prototype.capFilterArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0),t.x+t.width>this.textureSize.width&&(t.width=this.textureSize.width-t.x),t.y+t.height>this.textureSize.height&&(t.height=this.textureSize.height-t.y)},a.prototype.resize=function(t,e){this.textureSize.width=t,this.textureSize.height=e;for(var n=0;n<this.texturePool.length;n++)this.texturePool[n].resize(t,e)},a.prototype.destroy=function(){this.quad.destroy(),i.prototype.destroy.call(this),this.filterStack=null;for(var t=this.offsetY=0;t<this.texturePool.length;t++)this.texturePool[t].destroy();this.texturePool=null}},{"../../../const":433,"../../../math":444,"../utils/Quad":475,"../utils/RenderTarget":476,"./WebGLManager":469}],466:[function(t,e,n){var i=t("./WebGLManager"),r=t("../filters/SpriteMaskFilter");function o(t){i.call(this,t),this.stencilStack=[],this.reverse=!0,this.count=0,this.alphaMaskPool=[]}o.prototype=Object.create(i.prototype),(e.exports=o.prototype.constructor=o).prototype.pushMask=function(t,e){e.texture?this.pushSpriteMask(t,e):this.pushStencilMask(t,e)},o.prototype.popMask=function(t,e){e.texture?this.popSpriteMask(t,e):this.popStencilMask(t,e)},o.prototype.pushSpriteMask=function(t,e){var n=this.alphaMaskPool.pop();(n=n||[new r(e)])[0].maskSprite=e,this.renderer.filterManager.pushFilter(t,n)},o.prototype.popSpriteMask=function(){var t=this.renderer.filterManager.popFilter();this.alphaMaskPool.push(t)},o.prototype.pushStencilMask=function(t,e){this.renderer.stencilManager.pushMask(e)},o.prototype.popStencilMask=function(t,e){this.renderer.stencilManager.popMask(e)}},{"../filters/SpriteMaskFilter":463,"./WebGLManager":469}],467:[function(t,e,n){var i=t("./WebGLManager"),r=t("../shaders/TextureShader"),o=t("../shaders/ComplexPrimitiveShader"),a=t("../shaders/PrimitiveShader"),t=t("../../../utils");function s(t){i.call(this,t),this.maxAttibs=10,this.attribState=[],this.tempAttribState=[];for(var e=0;e<this.maxAttibs;e++)this.attribState[e]=!1;this.stack=[],this._currentId=-1,this.currentShader=null}s.prototype=Object.create(i.prototype),t.pluginTarget.mixin(s.prototype.constructor=s),(e.exports=s).prototype.onContextChange=function(){this.initPlugins();var t=this.renderer.gl;this.maxAttibs=t.getParameter(t.MAX_VERTEX_ATTRIBS),this.attribState=[];for(var e=0;e<this.maxAttibs;e++)this.attribState[e]=!1;this.defaultShader=new r(this),this.primitiveShader=new a(this),this.complexPrimitiveShader=new o(this)},s.prototype.setAttribs=function(t){for(var e,n=0;n<this.tempAttribState.length;n++)this.tempAttribState[n]=!1;for(e in t)this.tempAttribState[t[e]]=!0;var i=this.renderer.gl;for(n=0;n<this.attribState.length;n++)this.attribState[n]!==this.tempAttribState[n]&&(this.attribState[n]=this.tempAttribState[n],this.attribState[n]?i.enableVertexAttribArray(n):i.disableVertexAttribArray(n))},s.prototype.setShader=function(t){return this._currentId!==t.uid&&(this._currentId=t.uid,this.currentShader=t,this.renderer.gl.useProgram(t.program),this.setAttribs(t.attributes),!0)},s.prototype.destroy=function(){this.primitiveShader.destroy(),this.complexPrimitiveShader.destroy(),i.prototype.destroy.call(this),this.destroyPlugins(),this.attribState=null,this.tempAttribState=null}},{"../../../utils":488,"../shaders/ComplexPrimitiveShader":470,"../shaders/PrimitiveShader":471,"../shaders/TextureShader":473,"./WebGLManager":469}],468:[function(t,e,n){var i=t("./WebGLManager"),r=t("../../../utils");function o(t){i.call(this,t),this.stencilMaskStack=null}o.prototype=Object.create(i.prototype),(e.exports=o.prototype.constructor=o).prototype.setMaskStack=function(t){this.stencilMaskStack=t;var e=this.renderer.gl;0===t.stencilStack.length?e.disable(e.STENCIL_TEST):e.enable(e.STENCIL_TEST)},o.prototype.pushStencil=function(t,e){this.renderer.currentRenderTarget.attachStencilBuffer();var n=this.renderer.gl,i=this.stencilMaskStack,t=(this.bindGraphics(t,e),0===i.stencilStack.length&&(n.enable(n.STENCIL_TEST),n.clear(n.STENCIL_BUFFER_BIT),i.reverse=!0,i.count=0),i.stencilStack.push(e),i.count);n.colorMask(!1,!1,!1,!1),n.stencilFunc(n.ALWAYS,0,255),n.stencilOp(n.KEEP,n.KEEP,n.INVERT),1===e.mode?(n.drawElements(n.TRIANGLE_FAN,e.indices.length-4,n.UNSIGNED_SHORT,0),i.reverse?(n.stencilFunc(n.EQUAL,255-t,255),n.stencilOp(n.KEEP,n.KEEP,n.DECR)):(n.stencilFunc(n.EQUAL,t,255),n.stencilOp(n.KEEP,n.KEEP,n.INCR)),n.drawElements(n.TRIANGLE_FAN,4,n.UNSIGNED_SHORT,2*(e.indices.length-4)),i.reverse?n.stencilFunc(n.EQUAL,255-(t+1),255):n.stencilFunc(n.EQUAL,t+1,255),i.reverse=!i.reverse):(i.reverse?(n.stencilFunc(n.EQUAL,t,255),n.stencilOp(n.KEEP,n.KEEP,n.INCR)):(n.stencilFunc(n.EQUAL,255-t,255),n.stencilOp(n.KEEP,n.KEEP,n.DECR)),n.drawElements(n.TRIANGLE_STRIP,e.indices.length,n.UNSIGNED_SHORT,0),i.reverse?n.stencilFunc(n.EQUAL,t+1,255):n.stencilFunc(n.EQUAL,255-(t+1),255)),n.colorMask(!0,!0,!0,!0),n.stencilOp(n.KEEP,n.KEEP,n.KEEP),i.count++},o.prototype.bindGraphics=function(t,e){var n,i=this.renderer.gl;1===e.mode?(n=this.renderer.shaderManager.complexPrimitiveShader,this.renderer.shaderManager.setShader(n),i.uniformMatrix3fv(n.uniforms.translationMatrix._location,!1,t.worldTransform.toArray(!0)),i.uniformMatrix3fv(n.uniforms.projectionMatrix._location,!1,this.renderer.currentRenderTarget.projectionMatrix.toArray(!0)),i.uniform3fv(n.uniforms.tint._location,r.hex2rgb(t.tint)),i.uniform3fv(n.uniforms.color._location,e.color),i.uniform1f(n.uniforms.alpha._location,t.worldAlpha),i.bindBuffer(i.ARRAY_BUFFER,e.buffer),i.vertexAttribPointer(n.attributes.aVertexPosition,2,i.FLOAT,!1,8,0)):(n=this.renderer.shaderManager.primitiveShader,this.renderer.shaderManager.setShader(n),i.uniformMatrix3fv(n.uniforms.translationMatrix._location,!1,t.worldTransform.toArray(!0)),i.uniformMatrix3fv(n.uniforms.projectionMatrix._location,!1,this.renderer.currentRenderTarget.projectionMatrix.toArray(!0)),i.uniform3fv(n.uniforms.tint._location,r.hex2rgb(t.tint)),i.uniform1f(n.uniforms.alpha._location,t.worldAlpha),i.bindBuffer(i.ARRAY_BUFFER,e.buffer),i.vertexAttribPointer(n.attributes.aVertexPosition,2,i.FLOAT,!1,24,0),i.vertexAttribPointer(n.attributes.aColor,4,i.FLOAT,!1,24,8)),i.bindBuffer(i.ELEMENT_ARRAY_BUFFER,e.indexBuffer)},o.prototype.popStencil=function(t,e){var n,i=this.renderer.gl,r=this.stencilMaskStack;r.stencilStack.pop(),r.count--,0===r.stencilStack.length?i.disable(i.STENCIL_TEST):(n=r.count,this.bindGraphics(t,e),i.colorMask(!1,!1,!1,!1),1===e.mode?(r.reverse=!r.reverse,r.reverse?(i.stencilFunc(i.EQUAL,255-(n+1),255),i.stencilOp(i.KEEP,i.KEEP,i.INCR)):(i.stencilFunc(i.EQUAL,n+1,255),i.stencilOp(i.KEEP,i.KEEP,i.DECR)),i.drawElements(i.TRIANGLE_FAN,4,i.UNSIGNED_SHORT,2*(e.indices.length-4)),i.stencilFunc(i.ALWAYS,0,255),i.stencilOp(i.KEEP,i.KEEP,i.INVERT),i.drawElements(i.TRIANGLE_FAN,e.indices.length-4,i.UNSIGNED_SHORT,0),this.renderer.drawCount+=2):(r.reverse?(i.stencilFunc(i.EQUAL,n+1,255),i.stencilOp(i.KEEP,i.KEEP,i.DECR)):(i.stencilFunc(i.EQUAL,255-(n+1),255),i.stencilOp(i.KEEP,i.KEEP,i.INCR)),i.drawElements(i.TRIANGLE_STRIP,e.indices.length,i.UNSIGNED_SHORT,0),this.renderer.drawCount++),r.reverse?i.stencilFunc(i.EQUAL,n,255):i.stencilFunc(i.EQUAL,255-n,255),i.colorMask(!0,!0,!0,!0),i.stencilOp(i.KEEP,i.KEEP,i.KEEP))},o.prototype.destroy=function(){i.prototype.destroy.call(this),this.stencilMaskStack.stencilStack=null},o.prototype.pushMask=function(t){this.renderer.setObjectRenderer(this.renderer.plugins.graphics),t.dirty&&this.renderer.plugins.graphics.updateGraphics(t,this.renderer.gl),t._webGL[this.renderer.gl.id].data.length&&this.pushStencil(t,t._webGL[this.renderer.gl.id].data[0])},o.prototype.popMask=function(t){this.renderer.setObjectRenderer(this.renderer.plugins.graphics),this.popStencil(t,t._webGL[this.renderer.gl.id].data[0])}},{"../../../utils":488,"./WebGLManager":469}],469:[function(t,e,n){function i(t){this.renderer=t,this.renderer.on("context",this.onContextChange,this)}(e.exports=i.prototype.constructor=i).prototype.onContextChange=function(){},i.prototype.destroy=function(){this.renderer.off("context",this.onContextChange,this),this.renderer=null}},{}],470:[function(t,e,n){var i=t("./Shader");function r(t){i.call(this,t,["attribute vec2 aVertexPosition;","uniform mat3 translationMatrix;","uniform mat3 projectionMatrix;","uniform vec3 tint;","uniform float alpha;","uniform vec3 color;","varying vec4 vColor;","void main(void){","   gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);","   vColor = vec4(color * alpha * tint, alpha);","}"].join("\n"),["precision mediump float;","varying vec4 vColor;","void main(void){","   gl_FragColor = vColor;","}"].join("\n"),{tint:{type:"3f",value:[0,0,0]},alpha:{type:"1f",value:0},color:{type:"3f",value:[0,0,0]},translationMatrix:{type:"mat3",value:new Float32Array(9)},projectionMatrix:{type:"mat3",value:new Float32Array(9)}},{aVertexPosition:0})}r.prototype=Object.create(i.prototype),e.exports=r.prototype.constructor=r},{"./Shader":472}],471:[function(t,e,n){var i=t("./Shader");function r(t){i.call(this,t,["attribute vec2 aVertexPosition;","attribute vec4 aColor;","uniform mat3 translationMatrix;","uniform mat3 projectionMatrix;","uniform float alpha;","uniform float flipY;","uniform vec3 tint;","varying vec4 vColor;","void main(void){","   gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);","   vColor = aColor * vec4(tint * alpha, alpha);","}"].join("\n"),["precision mediump float;","varying vec4 vColor;","void main(void){","   gl_FragColor = vColor;","}"].join("\n"),{tint:{type:"3f",value:[0,0,0]},alpha:{type:"1f",value:0},translationMatrix:{type:"mat3",value:new Float32Array(9)},projectionMatrix:{type:"mat3",value:new Float32Array(9)}},{aVertexPosition:0,aColor:0})}r.prototype=Object.create(i.prototype),e.exports=r.prototype.constructor=r},{"./Shader":472}],472:[function(t,e,n){var s=t("../../../utils");function i(t,e,n,i,r){if(!e||!n)throw new Error("Pixi.js Error. Shader requires vertexSrc and fragmentSrc");this.uid=s.uid(),this.gl=t.renderer.gl,this.shaderManager=t,this.program=null,this.uniforms=i||{},this.attributes=r||{},this.textureCount=1,this.vertexSrc=e,this.fragmentSrc=n,this.init()}(e.exports=i.prototype.constructor=i).prototype.init=function(){this.compile(),this.gl.useProgram(this.program),this.cacheUniformLocations(Object.keys(this.uniforms)),this.cacheAttributeLocations(Object.keys(this.attributes))},i.prototype.cacheUniformLocations=function(t){for(var e=0;e<t.length;++e)this.uniforms[t[e]]._location=this.gl.getUniformLocation(this.program,t[e])},i.prototype.cacheAttributeLocations=function(t){for(var e=0;e<t.length;++e)this.attributes[t[e]]=this.gl.getAttribLocation(this.program,t[e])},i.prototype.compile=function(){var t=this.gl,e=this._glCompile(t.VERTEX_SHADER,this.vertexSrc),n=this._glCompile(t.FRAGMENT_SHADER,this.fragmentSrc),i=t.createProgram();return t.attachShader(i,e),t.attachShader(i,n),t.linkProgram(i),t.getProgramParameter(i,t.LINK_STATUS)||(console.error("Pixi.js Error: Could not initialize shader."),console.error("gl.VALIDATE_STATUS",t.getProgramParameter(i,t.VALIDATE_STATUS)),console.error("gl.getError()",t.getError()),""!==t.getProgramInfoLog(i)&&console.warn("Pixi.js Warning: gl.getProgramInfoLog()",t.getProgramInfoLog(i)),t.deleteProgram(i),i=null),t.deleteShader(e),t.deleteShader(n),this.program=i},i.prototype.syncUniform=function(t){var e,n,i,r=t._location,o=t.value,a=this.gl;switch(t.type){case"b":case"bool":case"boolean":a.uniform1i(r,o?1:0);break;case"i":case"1i":a.uniform1i(r,o);break;case"f":case"1f":a.uniform1f(r,o);break;case"2f":a.uniform2f(r,o[0],o[1]);break;case"3f":a.uniform3f(r,o[0],o[1],o[2]);break;case"4f":a.uniform4f(r,o[0],o[1],o[2],o[3]);break;case"v2":a.uniform2f(r,o.x,o.y);break;case"v3":a.uniform3f(r,o.x,o.y,o.z);break;case"v4":a.uniform4f(r,o.x,o.y,o.z,o.w);break;case"1iv":a.uniform1iv(r,o);break;case"2iv":a.uniform2iv(r,o);break;case"3iv":a.uniform3iv(r,o);break;case"4iv":a.uniform4iv(r,o);break;case"1fv":a.uniform1fv(r,o);break;case"2fv":a.uniform2fv(r,o);break;case"3fv":a.uniform3fv(r,o);break;case"4fv":a.uniform4fv(r,o);break;case"m2":case"mat2":case"Matrix2fv":a.uniformMatrix2fv(r,t.transpose,o);break;case"m3":case"mat3":case"Matrix3fv":a.uniformMatrix3fv(r,t.transpose,o);break;case"m4":case"mat4":case"Matrix4fv":a.uniformMatrix4fv(r,t.transpose,o);break;case"c":"number"==typeof o&&(o=s.hex2rgb(o)),a.uniform3f(r,o[0],o[1],o[2]);break;case"iv1":a.uniform1iv(r,o);break;case"iv":a.uniform3iv(r,o);break;case"fv1":a.uniform1fv(r,o);break;case"fv":a.uniform3fv(r,o);break;case"v2v":for(t._array||(t._array=new Float32Array(2*o.length)),e=0,n=o.length;e<n;++e)t._array[2*e]=o[e].x,t._array[2*e+1]=o[e].y;a.uniform2fv(r,t._array);break;case"v3v":for(t._array||(t._array=new Float32Array(3*o.length)),e=0,n=o.length;e<n;++e)t._array[3*e]=o[e].x,t._array[3*e+1]=o[e].y,t._array[3*e+2]=o[e].z;a.uniform3fv(r,t._array);break;case"v4v":for(t._array||(t._array=new Float32Array(4*o.length)),e=0,n=o.length;e<n;++e)t._array[4*e]=o[e].x,t._array[4*e+1]=o[e].y,t._array[4*e+2]=o[e].z,t._array[4*e+3]=o[e].w;a.uniform4fv(r,t._array);break;case"t":case"sampler2D":t.value&&t.value.baseTexture.hasLoaded&&(a.activeTexture(a["TEXTURE"+this.textureCount]),(i=t.value.baseTexture._glTextures[a.id])||(this.initSampler2D(t),i=t.value.baseTexture._glTextures[a.id]),a.bindTexture(a.TEXTURE_2D,i),a.uniform1i(t._location,this.textureCount),this.textureCount++);break;default:console.warn("Pixi.js Shader Warning: Unknown uniform type: "+t.type)}},i.prototype.syncUniforms=function(){for(var t in this.textureCount=1,this.uniforms)this.syncUniform(this.uniforms[t])},i.prototype.initSampler2D=function(t){var e=this.gl,n=t.value.baseTexture;n.hasLoaded&&(t.textureData?(t=t.textureData,n._glTextures[e.id]=e.createTexture(),e.bindTexture(e.TEXTURE_2D,n._glTextures[e.id]),e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.premultipliedAlpha),e.texImage2D(e.TEXTURE_2D,0,t.luminance?e.LUMINANCE:e.RGBA,e.RGBA,e.UNSIGNED_BYTE,n.source),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t.magFilter||e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t.wrapS||e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,t.wrapS||e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,t.wrapT||e.CLAMP_TO_EDGE)):this.shaderManager.renderer.updateTexture(n))},i.prototype.destroy=function(){this.gl.deleteProgram(this.program),this.gl=null,this.uniforms=null,this.attributes=null,this.vertexSrc=null,this.fragmentSrc=null},i.prototype._glCompile=function(t,e){t=this.gl.createShader(t);return this.gl.shaderSource(t,e),this.gl.compileShader(t),this.gl.getShaderParameter(t,this.gl.COMPILE_STATUS)?t:(console.log(this.gl.getShaderInfoLog(t)),null)}},{"../../../utils":488}],473:[function(t,e,n){var c=t("./Shader");function u(t,e,n,i,r){var o={uSampler:{type:"sampler2D",value:0},projectionMatrix:{type:"mat3",value:new Float32Array([1,0,0,0,1,0,0,0,1])}};if(i)for(var a in i)o[a]=i[a];var s={aVertexPosition:0,aTextureCoord:0,aColor:0};if(r)for(var l in r)s[l]=r[l];c.call(this,t,e=e||u.defaultVertexSrc,n=n||u.defaultFragmentSrc,o,s)}u.prototype=Object.create(c.prototype),(e.exports=u.prototype.constructor=u).defaultVertexSrc=["precision lowp float;","attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute vec4 aColor;","uniform mat3 projectionMatrix;","varying vec2 vTextureCoord;","varying vec4 vColor;","void main(void){","   gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);","   vTextureCoord = aTextureCoord;","   vColor = vec4(aColor.rgb * aColor.a, aColor.a);","}"].join("\n"),u.defaultFragmentSrc=["precision lowp float;","varying vec2 vTextureCoord;","varying vec4 vColor;","uniform sampler2D uSampler;","void main(void){","   gl_FragColor = texture2D(uSampler, vTextureCoord) * vColor ;","}"].join("\n")},{"./Shader":472}],474:[function(t,e,n){var i=t("../managers/WebGLManager");function r(t){i.call(this,t)}r.prototype=Object.create(i.prototype),(e.exports=r.prototype.constructor=r).prototype.start=function(){},r.prototype.stop=function(){this.flush()},r.prototype.flush=function(){},r.prototype.render=function(t){}},{"../managers/WebGLManager":469}],475:[function(t,e,n){function i(t){this.gl=t,this.vertices=new Float32Array([0,0,200,0,200,200,0,200]),this.uvs=new Float32Array([0,0,1,0,1,1,0,1]),this.colors=new Float32Array([1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]),this.indices=new Uint16Array([0,1,2,0,3,2]),this.vertexBuffer=t.createBuffer(),this.indexBuffer=t.createBuffer(),t.bindBuffer(t.ARRAY_BUFFER,this.vertexBuffer),t.bufferData(t.ARRAY_BUFFER,128,t.DYNAMIC_DRAW),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,this.indexBuffer),t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indices,t.STATIC_DRAW),this.upload()}(i.prototype.constructor=i).prototype.map=function(t,e){var n;this.uvs[0]=0,this.uvs[1]=0,this.uvs[2]=0+e.width/t.width,this.uvs[3]=0,this.uvs[4]=0+e.width/t.width,this.uvs[5]=0+e.height/t.height,this.uvs[6]=0,this.uvs[7]=0+e.height/t.height,t=e.x,n=e.y,this.vertices[0]=t,this.vertices[1]=n,this.vertices[2]=t+e.width,this.vertices[3]=n,this.vertices[4]=t+e.width,this.vertices[5]=n+e.height,this.vertices[6]=t,this.vertices[7]=n+e.height,this.upload()},i.prototype.upload=function(){var t=this.gl;t.bindBuffer(t.ARRAY_BUFFER,this.vertexBuffer),t.bufferSubData(t.ARRAY_BUFFER,0,this.vertices),t.bufferSubData(t.ARRAY_BUFFER,32,this.uvs),t.bufferSubData(t.ARRAY_BUFFER,64,this.colors)},i.prototype.destroy=function(){var t=this.gl;t.deleteBuffer(this.vertexBuffer),t.deleteBuffer(this.indexBuffer)},e.exports=i},{}],476:[function(t,e,n){function i(t,e,n,i,r,o){this.gl=t,this.frameBuffer=null,this.texture=null,this.size=new a.Rectangle(0,0,1,1),this.resolution=r||l.RESOLUTION,this.projectionMatrix=new a.Matrix,this.transform=null,this.frame=null,this.stencilBuffer=null,this.stencilMaskStack=new c,this.filterStack=[{renderTarget:this,filter:[],bounds:this.size}],this.scaleMode=i||l.SCALE_MODES.DEFAULT,this.root=o,this.root||(this.frameBuffer=t.createFramebuffer(),this.texture=t.createTexture(),t.bindTexture(t.TEXTURE_2D,this.texture),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,i===l.SCALE_MODES.LINEAR?t.LINEAR:t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,i===l.SCALE_MODES.LINEAR?t.LINEAR:t.NEAREST),s.isPowerOfTwo(e,n)?(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT)):(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE)),t.bindFramebuffer(t.FRAMEBUFFER,this.frameBuffer),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture,0)),this.resize(e,n)}var a=t("../../../math"),s=t("../../../utils"),l=t("../../../const"),c=t("./StencilMaskStack");(e.exports=i.prototype.constructor=i).prototype.clear=function(t){var e=this.gl;t&&e.bindFramebuffer(e.FRAMEBUFFER,this.frameBuffer),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT)},i.prototype.attachStencilBuffer=function(){var t;this.stencilBuffer||this.root||(t=this.gl,this.stencilBuffer=t.createRenderbuffer(),t.bindRenderbuffer(t.RENDERBUFFER,this.stencilBuffer),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,this.stencilBuffer),t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,this.size.width*this.resolution,this.size.height*this.resolution))},i.prototype.activate=function(){var t=this.gl,e=(t.bindFramebuffer(t.FRAMEBUFFER,this.frameBuffer),this.frame||this.size);this.calculateProjection(e),this.transform&&this.projectionMatrix.append(this.transform),t.viewport(0,0,e.width*this.resolution,e.height*this.resolution)},i.prototype.calculateProjection=function(t){var e=this.projectionMatrix;e.identity(),this.root?(e.a=1/t.width*2,e.d=-1/t.height*2,e.tx=-1-t.x*e.a,e.ty=1-t.y*e.d):(e.a=1/t.width*2,e.d=1/t.height*2,e.tx=-1-t.x*e.a,e.ty=-1-t.y*e.d)},i.prototype.resize=function(t,e){var n;e|=0,this.size.width===(t|=0)&&this.size.height===e||(this.size.width=t,this.size.height=e,this.root||((n=this.gl).bindTexture(n.TEXTURE_2D,this.texture),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,t*this.resolution,e*this.resolution,0,n.RGBA,n.UNSIGNED_BYTE,null),this.stencilBuffer&&(n.bindRenderbuffer(n.RENDERBUFFER,this.stencilBuffer),n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t*this.resolution,e*this.resolution))),n=this.frame||this.size,this.calculateProjection(n))},i.prototype.destroy=function(){var t=this.gl;t.deleteRenderbuffer(this.stencilBuffer),t.deleteFramebuffer(this.frameBuffer),t.deleteTexture(this.texture),this.frameBuffer=null,this.texture=null}},{"../../../const":433,"../../../math":444,"../../../utils":488,"./StencilMaskStack":477}],477:[function(t,e,n){function i(){this.stencilStack=[],this.reverse=!0,this.count=0}e.exports=i.prototype.constructor=i},{}],478:[function(t,e,n){var i=t("../math"),r=t("../textures/Texture"),o=t("../display/Container"),s=t("../renderers/canvas/utils/CanvasTinter"),a=t("../utils"),l=t("../const"),c=new i.Point,u=i.GroupD8,h=new i.Matrix;function d(t){o.call(this),this.anchor=new i.Point,this._texture=null,this._width=0,this._height=0,this.tint=16777215,this.blendMode=l.BLEND_MODES.NORMAL,this.shader=null,this.cachedTint=16777215,this.texture=t||r.EMPTY}d.prototype=Object.create(o.prototype),e.exports=d.prototype.constructor=d,Object.defineProperties(d.prototype,{width:{get:function(){return Math.abs(this.scale.x)*this.texture._frame.width},set:function(t){var e=a.sign(this.scale.x)||1;this.scale.x=e*t/this.texture._frame.width,this._width=t}},height:{get:function(){return Math.abs(this.scale.y)*this.texture._frame.height},set:function(t){var e=a.sign(this.scale.y)||1;this.scale.y=e*t/this.texture._frame.height,this._height=t}},texture:{get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture=t,this.cachedTint=16777215,t)&&(t.baseTexture.hasLoaded?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this))}}}),d.prototype._onTextureUpdate=function(){this._width&&(this.scale.x=a.sign(this.scale.x)*this._width/this.texture.frame.width),this._height&&(this.scale.y=a.sign(this.scale.y)*this._height/this.texture.frame.height)},d.prototype._renderWebGL=function(t){t.setObjectRenderer(t.plugins.sprite),t.plugins.sprite.render(this)},d.prototype.getBounds=function(t){var e,n,i,r,o,a,s,l,c,u,h,d,p,f;return this._currentBounds||(s=this._texture._frame.width,c=this._texture._frame.height,a=s*(1-this.anchor.x),s=s*-this.anchor.x,l=c*(1-this.anchor.y),c=c*-this.anchor.y,p=(t=t||this.worldTransform).a,h=t.b,u=t.c,e=t.d,u=(r=p*s+u*l+(d=t.tx))<(u=(f=p*a+u*l+d)<(u=(o=p*a+u*c+d)<(u=p=p*s+u*c+d)?o:u)?f:u)?r:u,h=(t=e*l+h*s+(d=t.ty))<(h=(i=e*l+h*a+d)<(h=(n=e*c+h*a+d)<(h=e=e*c+h*s+d)?n:h)?i:h)?t:h,d=(d=(d=(d=p)<o?o:d)<f?f:d)<r?r:d,p=(p=(p=(p=e)<n?n:p)<i?i:p)<t?t:p,this.children.length&&(a=(o=this.containerGetBounds()).x,s=o.x+o.width,u=u<a?u:a,h=h<(l=o.y)?h:l,d=s<d?d:s,p=(c=o.y+o.height)<p?p:c),(f=this._bounds).x=u,f.width=d-u,f.y=h,f.height=p-h,this._currentBounds=f),this._currentBounds},d.prototype.getLocalBounds=function(){return this._bounds.x=-this._texture._frame.width*this.anchor.x,this._bounds.y=-this._texture._frame.height*this.anchor.y,this._bounds.width=this._texture._frame.width,this._bounds.height=this._texture._frame.height,this._bounds},d.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,c);var t=this._texture._frame.width,e=this._texture._frame.height,n=-t*this.anchor.x;return c.x>n&&c.x<n+t&&(n=-e*this.anchor.y,c.y>n)&&c.y<n+e},d.prototype._renderCanvas=function(t){var e,n,i,r,o,a;this.texture.crop.width<=0||this.texture.crop.height<=0||((e=t.blendModes[this.blendMode])!==t.context.globalCompositeOperation&&(t.context.globalCompositeOperation=e),this.texture.valid&&(e=this._texture,a=this.worldTransform,i=e.crop.width,r=e.crop.height,t.context.globalAlpha=this.worldAlpha,o=e.baseTexture.scaleMode===l.SCALE_MODES.LINEAR,t.smoothProperty&&t.context[t.smoothProperty]!==o&&(t.context[t.smoothProperty]=o),2==(3&e.rotate)&&(i=e.crop.height,r=e.crop.width),o=e.trim?(n=e.crop.width/2+e.trim.x-this.anchor.x*e.trim.width,e.crop.height/2+e.trim.y-this.anchor.y*e.trim.height):(n=(.5-this.anchor.x)*e._frame.width,(.5-this.anchor.y)*e._frame.height),e.rotate&&(a.copy(h),u.matrixAppendRotationInv(a=h,e.rotate,n,o),o=n=0),n-=i/2,o-=r/2,t.roundPixels?(t.context.setTransform(a.a,a.b,a.c,a.d,a.tx*t.resolution|0,a.ty*t.resolution|0),n|=0,o|=0):t.context.setTransform(a.a,a.b,a.c,a.d,a.tx*t.resolution,a.ty*t.resolution),a=e.baseTexture.resolution,16777215!==this.tint?(this.cachedTint!==this.tint&&(this.cachedTint=this.tint,this.tintedTexture=s.getTintedTexture(this,this.tint)),t.context.drawImage(this.tintedTexture,0,0,i*a,r*a,n*t.resolution,o*t.resolution,i*t.resolution,r*t.resolution)):t.context.drawImage(e.baseTexture.source,e.crop.x*a,e.crop.y*a,i*a,r*a,n*t.resolution,o*t.resolution,i*t.resolution,r*t.resolution)))},d.prototype.destroy=function(t,e){o.prototype.destroy.call(this),this.anchor=null,t&&this._texture.destroy(e),this._texture=null,this.shader=null},d.fromFrame=function(t){var e=a.TextureCache[t];if(e)return new d(e);throw new Error('The frameId "'+t+'" does not exist in the texture cache')},d.fromImage=function(t,e,n){return new d(r.fromImage(t,e,n))}},{"../const":433,"../display/Container":434,"../math":444,"../renderers/canvas/utils/CanvasTinter":459,"../textures/Texture":483,"../utils":488}],479:[function(t,e,n){var r=t("../../renderers/webgl/utils/ObjectRenderer"),i=t("../../renderers/webgl/WebGLRenderer"),o=t("../../const");function a(t){r.call(this,t),this.vertSize=5,this.vertByteSize=4*this.vertSize,this.size=o.SPRITE_BATCH_SIZE;var t=4*this.size*this.vertByteSize,e=6*this.size;this.vertices=new ArrayBuffer(t),this.positions=new Float32Array(this.vertices),this.colors=new Uint32Array(this.vertices),this.indices=new Uint16Array(e);for(var n=0,i=0;n<e;n+=6,i+=4)this.indices[n+0]=i+0,this.indices[n+1]=i+1,this.indices[n+2]=i+2,this.indices[n+3]=i+0,this.indices[n+4]=i+2,this.indices[n+5]=i+3;this.currentBatchSize=0,this.sprites=[],this.shader=null}a.prototype=Object.create(r.prototype),e.exports=a.prototype.constructor=a,i.registerPlugin("sprite",a),a.prototype.onContextChange=function(){var t=this.renderer.gl;this.shader=this.renderer.shaderManager.defaultShader,this.vertexBuffer=t.createBuffer(),this.indexBuffer=t.createBuffer(),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,this.indexBuffer),t.bufferData(t.ELEMENT_ARRAY_BUFFER,this.indices,t.STATIC_DRAW),t.bindBuffer(t.ARRAY_BUFFER,this.vertexBuffer),t.bufferData(t.ARRAY_BUFFER,this.vertices,t.DYNAMIC_DRAW),this.currentBlendMode=99999},a.prototype.render=function(t){var e,n,i,r,o,a,s,l,c,u,h,d,p,f=t._texture,m=(this.currentBatchSize>=this.size&&this.flush(),f._uvs);m&&(o=t.anchor.x,a=t.anchor.y,f.trim&&void 0===t.tileScale?(n=(e=(i=f.trim).x-o*i.width)+f.crop.width,r=(i=i.y-a*i.height)+f.crop.height):(n=f._frame.width*(1-o),e=f._frame.width*-o,r=f._frame.height*(1-a),i=f._frame.height*-a),o=this.currentBatchSize*this.vertByteSize,a=(f=t.worldTransform).a,s=f.b,l=f.c,c=f.d,u=f.tx,f=f.ty,h=this.colors,d=this.positions,this.renderer.roundPixels?(p=this.renderer.resolution,d[o]=((a*e+l*i+u)*p|0)/p,d[1+o]=((c*i+s*e+f)*p|0)/p,d[5+o]=((a*n+l*i+u)*p|0)/p,d[6+o]=((c*i+s*n+f)*p|0)/p,d[10+o]=((a*n+l*r+u)*p|0)/p,d[11+o]=((c*r+s*n+f)*p|0)/p,d[15+o]=((a*e+l*r+u)*p|0)/p,d[16+o]=((c*r+s*e+f)*p|0)/p):(d[o]=a*e+l*i+u,d[1+o]=c*i+s*e+f,d[5+o]=a*n+l*i+u,d[6+o]=c*i+s*n+f,d[10+o]=a*n+l*r+u,d[11+o]=c*r+s*n+f,d[15+o]=a*e+l*r+u,d[16+o]=c*r+s*e+f),d[2+o]=m.x0,d[3+o]=m.y0,d[7+o]=m.x1,d[8+o]=m.y1,d[12+o]=m.x2,d[13+o]=m.y2,d[17+o]=m.x3,d[18+o]=m.y3,p=t.tint,h[4+o]=h[9+o]=h[14+o]=h[19+o]=(p>>16)+(65280&p)+((255&p)<<16)+(255*t.worldAlpha<<24),this.sprites[this.currentBatchSize++]=t)},a.prototype.flush=function(){if(0!==this.currentBatchSize){for(var t,e,n,i,r,o,a=this.renderer.gl,s=(this.currentBatchSize>.5*this.size?a.bufferSubData(a.ARRAY_BUFFER,0,this.vertices):(t=this.positions.subarray(0,this.currentBatchSize*this.vertByteSize),a.bufferSubData(a.ARRAY_BUFFER,0,t)),0),l=0,c=null,u=this.renderer.blendModeManager.currentBlendMode,h=null,d=0,p=this.currentBatchSize;d<p;d++)e=(o=this.sprites[d])._texture.baseTexture,i=u!==(n=o.blendMode),r=h!==(o=o.shader||this.shader),(c!==e||i||r)&&(this.renderBatch(c,s,l),l=d,s=0,c=e,i&&this.renderer.blendModeManager.setBlendMode(u=n),r)&&(e=(e=(h=o).shaders?h.shaders[a.id]:h)||h.getShader(this.renderer),this.renderer.shaderManager.setShader(e),e.uniforms.projectionMatrix.value=this.renderer.currentRenderTarget.projectionMatrix.toArray(!0),e.syncUniforms(),a.activeTexture(a.TEXTURE0)),s++;this.renderBatch(c,s,l),this.currentBatchSize=0}},a.prototype.renderBatch=function(t,e,n){var i;0!==e&&(i=this.renderer.gl,t._glTextures[i.id]?i.bindTexture(i.TEXTURE_2D,t._glTextures[i.id]):this.renderer.updateTexture(t),i.drawElements(i.TRIANGLES,6*e,i.UNSIGNED_SHORT,6*n*2),this.renderer.drawCount++)},a.prototype.start=function(){var t=this.renderer.gl,e=(t.bindBuffer(t.ARRAY_BUFFER,this.vertexBuffer),t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,this.indexBuffer),this.vertByteSize);t.vertexAttribPointer(this.shader.attributes.aVertexPosition,2,t.FLOAT,!1,e,0),t.vertexAttribPointer(this.shader.attributes.aTextureCoord,2,t.FLOAT,!1,e,8),t.vertexAttribPointer(this.shader.attributes.aColor,4,t.UNSIGNED_BYTE,!0,e,16)},a.prototype.destroy=function(){this.renderer.gl.deleteBuffer(this.vertexBuffer),this.renderer.gl.deleteBuffer(this.indexBuffer),r.prototype.destroy.call(this),this.shader.destroy(),this.renderer=null,this.vertices=null,this.positions=null,this.colors=null,this.indices=null,this.vertexBuffer=null,this.indexBuffer=null,this.sprites=null,this.shader=null}},{"../../const":433,"../../renderers/webgl/WebGLRenderer":460,"../../renderers/webgl/utils/ObjectRenderer":474}],480:[function(t,e,n){var i=t("../sprites/Sprite"),r=t("../textures/Texture"),o=t("../math"),a=t("../utils"),s=t("../const");function p(t,e,n){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=n||s.RESOLUTION,this._text=null,this._style=null;n=r.fromCanvas(this.canvas);n.trim=new o.Rectangle,i.call(this,n),this.text=t,this.style=e}p.prototype=Object.create(i.prototype),(e.exports=p.prototype.constructor=p).fontPropertiesCache={},p.fontPropertiesCanvas=document.createElement("canvas"),p.fontPropertiesContext=p.fontPropertiesCanvas.getContext("2d"),Object.defineProperties(p.prototype,{width:{get:function(){return this.dirty&&this.updateText(),this.scale.x*this._texture._frame.width},set:function(t){this.scale.x=t/this._texture._frame.width,this._width=t}},height:{get:function(){return this.dirty&&this.updateText(),this.scale.y*this._texture._frame.height},set:function(t){this.scale.y=t/this._texture._frame.height,this._height=t}},style:{get:function(){return this._style},set:function(t){"number"==typeof(t=t||{}).fill&&(t.fill=a.hex2string(t.fill)),"number"==typeof t.stroke&&(t.stroke=a.hex2string(t.stroke)),"number"==typeof t.dropShadowColor&&(t.dropShadowColor=a.hex2string(t.dropShadowColor)),t.font=t.font||"bold 20pt Arial",t.fill=t.fill||"black",t.align=t.align||"left",t.stroke=t.stroke||"black",t.strokeThickness=t.strokeThickness||0,t.wordWrap=t.wordWrap||!1,t.wordWrapWidth=t.wordWrapWidth||100,t.breakWords=t.breakWords||!1,t.letterSpacing=t.letterSpacing||0,t.dropShadow=t.dropShadow||!1,t.dropShadowColor=t.dropShadowColor||"#000000",t.dropShadowAngle=void 0!==t.dropShadowAngle?t.dropShadowAngle:Math.PI/6,t.dropShadowDistance=void 0!==t.dropShadowDistance?t.dropShadowDistance:5,t.dropShadowBlur=void 0!==t.dropShadowBlur?t.dropShadowBlur:0,t.padding=t.padding||0,t.textBaseline=t.textBaseline||"alphabetic",t.lineJoin=t.lineJoin||"miter",t.miterLimit=t.miterLimit||10,this._style=t,this.dirty=!0}},text:{get:function(){return this._text},set:function(t){t=t.toString()||" ",this._text!==t&&(this._text=t,this.dirty=!0)}}}),p.prototype.updateText=function(){var t=this._style;this.context.font=t.font;for(var e=(t.wordWrap?this.wordWrap(this._text):this._text).split(/(?:\r\n|\r|\n)/),n=new Array(e.length),i=0,r=this.determineFontProperties(t.font),o=0;o<e.length;o++){var a=this.context.measureText(e[o]).width+(e[o].length-1)*t.letterSpacing;n[o]=a,i=Math.max(i,a)}var s,l,c=i+t.strokeThickness,u=(t.dropShadow&&(c+=t.dropShadowDistance),this.canvas.width=Math.ceil((c+this.context.lineWidth)*this.resolution),this.style.lineHeight||r.fontSize+t.strokeThickness),c=u*e.length;if(t.dropShadow&&(c+=t.dropShadowDistance),this.canvas.height=Math.ceil((c+2*this._style.padding)*this.resolution),this.context.scale(this.resolution,this.resolution),navigator.isCocoonJS&&this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.context.font=t.font,this.context.strokeStyle=t.stroke,this.context.lineWidth=t.strokeThickness,this.context.textBaseline=t.textBaseline,this.context.lineJoin=t.lineJoin,this.context.miterLimit=t.miterLimit,t.dropShadow){0<t.dropShadowBlur?(this.context.shadowColor=t.dropShadowColor,this.context.shadowBlur=t.dropShadowBlur):this.context.fillStyle=t.dropShadowColor;for(var h=Math.cos(t.dropShadowAngle)*t.dropShadowDistance,d=Math.sin(t.dropShadowAngle)*t.dropShadowDistance,o=0;o<e.length;o++)s=t.strokeThickness/2,l=t.strokeThickness/2+o*u+r.ascent,"right"===t.align?s+=i-n[o]:"center"===t.align&&(s+=(i-n[o])/2),t.fill&&this.drawLetterSpacing(e[o],s+h,l+d+t.padding)}for(this.context.fillStyle=t.fill,o=0;o<e.length;o++)s=t.strokeThickness/2,l=t.strokeThickness/2+o*u+r.ascent,"right"===t.align?s+=i-n[o]:"center"===t.align&&(s+=(i-n[o])/2),t.stroke&&t.strokeThickness&&this.drawLetterSpacing(e[o],s,l+t.padding,!0),t.fill&&this.drawLetterSpacing(e[o],s,l+t.padding);this.updateTexture()},p.prototype.drawLetterSpacing=function(t,e,n,i){var r=this._style.letterSpacing;if(0===r)i?this.context.strokeText(t,e,n):this.context.fillText(t,e,n);else for(var o,a=String.prototype.split.call(t,""),s=0,l=e;s<t.length;)o=a[s++],i?this.context.strokeText(o,l,n):this.context.fillText(o,l,n),l+=this.context.measureText(o).width+r},p.prototype.updateTexture=function(){var t=this._texture,e=this._style;t.baseTexture.hasLoaded=!0,t.baseTexture.resolution=this.resolution,t.baseTexture.width=this.canvas.width/this.resolution,t.baseTexture.height=this.canvas.height/this.resolution,t.crop.width=t._frame.width=this.canvas.width/this.resolution,t.crop.height=t._frame.height=this.canvas.height/this.resolution,t.trim.x=0,t.trim.y=-e.padding,t.trim.width=t._frame.width,t.trim.height=t._frame.height-2*e.padding,this._width=this.canvas.width/this.resolution,this._height=this.canvas.height/this.resolution,t.baseTexture.emit("update",t.baseTexture),this.dirty=!1},p.prototype.renderWebGL=function(t){this.dirty&&this.updateText(),i.prototype.renderWebGL.call(this,t)},p.prototype._renderCanvas=function(t){this.dirty&&this.updateText(),i.prototype._renderCanvas.call(this,t)},p.prototype.determineFontProperties=function(t){if(!(n=p.fontPropertiesCache[t])){for(var e,n={},i=p.fontPropertiesCanvas,r=p.fontPropertiesContext,o=(r.font=t,Math.ceil(r.measureText("|MÉq").width)),a=2*(s=Math.ceil(r.measureText("M").width)),s=1.4*s|0,l=(i.width=o,i.height=a,r.fillStyle="#f00",r.fillRect(0,0,o,a),r.font=t,r.textBaseline="alphabetic",r.fillStyle="#000",r.fillText("|MÉq",0,s),r.getImageData(0,0,o,a).data),i=l.length,c=4*o,u=0,h=!1,d=0;d<s;d++){for(e=0;e<c;e+=4)if(255!==l[u+e]){h=!0;break}if(h)break;u+=c}for(n.ascent=s-d,u=i-c,h=!1,d=a;s<d;d--){for(e=0;e<c;e+=4)if(255!==l[u+e]){h=!0;break}if(h)break;u-=c}n.descent=d-s,n.fontSize=n.ascent+n.descent,p.fontPropertiesCache[t]=n}return n},p.prototype.wordWrap=function(t){for(var e="",n=t.split("\n"),i=this._style.wordWrapWidth,r=0;r<n.length;r++){for(var o=i,a=n[r].split(" "),s=0;s<a.length;s++){var l=this.context.measureText(a[s]).width;if(this._style.breakWords&&i<l)for(var c=a[s].split(""),u=0;u<c.length;u++){var h=this.context.measureText(c[u]).width;o<h?(e+="\n"+c[u],o=i-h):(0===u&&(e+=" "),e+=c[u],o-=h)}else{var d=l+this.context.measureText(" ").width;0===s||o<d?(0<s&&(e+="\n"),e+=a[s],o=i-l):(o-=d,e+=" "+a[s])}}r<n.length-1&&(e+="\n")}return e},p.prototype.getBounds=function(t){return this.dirty&&this.updateText(),i.prototype.getBounds.call(this,t)},p.prototype.destroy=function(t){this.context=null,this.canvas=null,this._style=null,this._texture.destroy(void 0===t||t)}},{"../const":433,"../math":444,"../sprites/Sprite":478,"../textures/Texture":483,"../utils":488}],481:[function(t,e,n){var o=t("../utils"),i=t("../const"),r=t("eventemitter3");function a(t,e,n){r.call(this),this.uid=o.uid(),this.resolution=n||1,this.width=100,this.height=100,this.realWidth=100,this.realHeight=100,this.scaleMode=e||i.SCALE_MODES.DEFAULT,this.hasLoaded=!1,this.isLoading=!1,this.source=null,this.premultipliedAlpha=!0,this.imageUrl=null,this.isPowerOfTwo=!1,this.mipmap=!1,this._glTextures={},t&&this.loadSource(t)}a.prototype=Object.create(r.prototype),(e.exports=a.prototype.constructor=a).prototype.update=function(){this.realWidth=this.source.naturalWidth||this.source.width,this.realHeight=this.source.naturalHeight||this.source.height,this.width=this.realWidth/this.resolution,this.height=this.realHeight/this.resolution,this.isPowerOfTwo=o.isPowerOfTwo(this.realWidth,this.realHeight),this.emit("update",this)},a.prototype.loadSource=function(t){var e,n=this.isLoading;this.hasLoaded=!1,this.isLoading=!1,n&&this.source&&(this.source.onload=null,this.source.onerror=null),this.source=t,(this.source.complete||this.source.getContext)&&this.source.width&&this.source.height?this._sourceLoaded():t.getContext||(this.isLoading=!0,e=this,t.onload=function(){t.onload=null,t.onerror=null,e.isLoading&&(e.isLoading=!1,e._sourceLoaded(),e.emit("loaded",e))},t.onerror=function(){t.onload=null,t.onerror=null,e.isLoading&&(e.isLoading=!1,e.emit("error",e))},t.complete&&t.src&&(this.isLoading=!1,t.onload=null,t.onerror=null,t.width&&t.height?(this._sourceLoaded(),n&&this.emit("loaded",this)):n&&this.emit("error",this)))},a.prototype._sourceLoaded=function(){this.hasLoaded=!0,this.update()},a.prototype.destroy=function(){this.imageUrl?(delete o.BaseTextureCache[this.imageUrl],delete o.TextureCache[this.imageUrl],this.imageUrl=null,navigator.isCocoonJS||(this.source.src="")):this.source&&this.source._pixiId&&delete o.BaseTextureCache[this.source._pixiId],this.source=null,this.dispose()},a.prototype.dispose=function(){this.emit("dispose",this)},a.prototype.updateSourceImage=function(t){this.source.src=t,this.loadSource(this.source)},a.fromImage=function(t,e,n){var i,r=o.BaseTextureCache[t];return void 0===e&&0!==t.indexOf("data:")&&(e=!0),r||(i=new Image,e&&(i.crossOrigin=""),(r=new a(i,n)).imageUrl=t,i.src=t,(o.BaseTextureCache[t]=r).resolution=o.getResolutionOfUrl(t)),r},a.fromCanvas=function(t,e){t._pixiId||(t._pixiId="canvas_"+o.uid());var n=o.BaseTextureCache[t._pixiId];return n||(n=new a(t,e),o.BaseTextureCache[t._pixiId]=n),n}},{"../const":433,"../utils":488,eventemitter3:382}],482:[function(t,e,n){var a=t("./BaseTexture"),s=t("./Texture"),l=t("../renderers/webgl/utils/RenderTarget"),c=t("../renderers/webgl/managers/FilterManager"),u=t("../renderers/canvas/utils/CanvasBuffer"),h=t("../math"),d=t("../const"),p=new h.Matrix;function i(t,e,n,i,r){if(!t)throw new Error("Unable to create RenderTexture, you must pass a renderer into the constructor.");e=e||100,n=n||100,r=r||d.RESOLUTION;var o=new a;o.width=e,o.height=n,o.resolution=r,o.scaleMode=i||d.SCALE_MODES.DEFAULT,o.hasLoaded=!0,s.call(this,o,new h.Rectangle(0,0,e,n)),this.width=e,this.height=n,this.resolution=r,this.render=null,this.renderer=t,this.renderer.type===d.RENDERER_TYPE.WEBGL?(i=this.renderer.gl,this.textureBuffer=new l(i,this.width,this.height,o.scaleMode,this.resolution),this.baseTexture._glTextures[i.id]=this.textureBuffer.texture,this.filterManager=new c(this.renderer),this.filterManager.onContextChange(),this.filterManager.resize(e,n),this.render=this.renderWebGL,this.renderer.currentRenderer.start(),this.renderer.currentRenderTarget.activate()):(this.render=this.renderCanvas,this.textureBuffer=new u(this.width*this.resolution,this.height*this.resolution),this.baseTexture.source=this.textureBuffer.canvas),this.valid=!0,this._updateUvs()}i.prototype=Object.create(s.prototype),(e.exports=i.prototype.constructor=i).prototype.resize=function(t,e,n){t===this.width&&e===this.height||(this.valid=0<t&&0<e,this.width=this._frame.width=this.crop.width=t,this.height=this._frame.height=this.crop.height=e,n&&(this.baseTexture.width=this.width,this.baseTexture.height=this.height),this.valid&&(this.textureBuffer.resize(this.width,this.height),this.filterManager)&&this.filterManager.resize(this.width,this.height))},i.prototype.clear=function(){this.valid&&(this.renderer.type===d.RENDERER_TYPE.WEBGL&&this.renderer.gl.bindFramebuffer(this.renderer.gl.FRAMEBUFFER,this.textureBuffer.frameBuffer),this.textureBuffer.clear())},i.prototype.renderWebGL=function(t,e,n,i){if(this.valid){if(i=void 0===i||i,this.textureBuffer.transform=e,this.textureBuffer.activate(),t.worldAlpha=1,i){t.worldTransform.identity(),t.currentBounds=null;for(var r=t.children,o=0,a=r.length;o<a;++o)r[o].updateTransform()}e=this.renderer.filterManager;this.renderer.filterManager=this.filterManager,this.renderer.renderDisplayObject(t,this.textureBuffer,n),this.renderer.filterManager=e}},i.prototype.renderCanvas=function(t,e,n,i){if(this.valid){0;for(var r=p,e=(r.identity(),e&&r.append(e),t.worldTransform),o=(t.worldTransform=r,t.worldAlpha=1,t.children),a=0,s=o.length;a<s;++a)o[a].updateTransform();n&&this.textureBuffer.clear();var n=this.textureBuffer.context,l=this.renderer.resolution;this.renderer.resolution=this.resolution,this.renderer.renderDisplayObject(t,n),this.renderer.resolution=l,t.worldTransform===r&&(t.worldTransform=e)}},i.prototype.destroy=function(){s.prototype.destroy.call(this,!0),this.textureBuffer.destroy(),this.filterManager&&this.filterManager.destroy(),this.renderer=null},i.prototype.getImage=function(){var t=new Image;return t.src=this.getBase64(),t},i.prototype.getBase64=function(){return this.getCanvas().toDataURL()},i.prototype.getCanvas=function(){var t,e,n,i;return(this.renderer.type===d.RENDERER_TYPE.WEBGL?(n=this.renderer.gl,i=this.textureBuffer.size.width,t=this.textureBuffer.size.height,e=new Uint8Array(4*i*t),n.bindFramebuffer(n.FRAMEBUFFER,this.textureBuffer.frameBuffer),n.readPixels(0,0,i,t,n.RGBA,n.UNSIGNED_BYTE,e),n.bindFramebuffer(n.FRAMEBUFFER,null),(i=(n=new u(i,t)).context.getImageData(0,0,i,t)).data.set(e),n.context.putImageData(i,0,0),n):this.textureBuffer).canvas},i.prototype.getPixels=function(){var t,e,n,i;return this.renderer.type===d.RENDERER_TYPE.WEBGL?(t=this.renderer.gl,e=this.textureBuffer.size.width,n=this.textureBuffer.size.height,i=new Uint8Array(4*e*n),t.bindFramebuffer(t.FRAMEBUFFER,this.textureBuffer.frameBuffer),t.readPixels(0,0,e,n,t.RGBA,t.UNSIGNED_BYTE,i),t.bindFramebuffer(t.FRAMEBUFFER,null),i):(e=this.textureBuffer.canvas.width,n=this.textureBuffer.canvas.height,this.textureBuffer.canvas.getContext("2d").getImageData(0,0,e,n).data)},i.prototype.getPixel=function(t,e){var n,i;return this.renderer.type===d.RENDERER_TYPE.WEBGL?(n=this.renderer.gl,i=new Uint8Array(4),n.bindFramebuffer(n.FRAMEBUFFER,this.textureBuffer.frameBuffer),n.readPixels(t,e,1,1,n.RGBA,n.UNSIGNED_BYTE,i),n.bindFramebuffer(n.FRAMEBUFFER,null),i):this.textureBuffer.canvas.getContext("2d").getImageData(t,e,1,1).data}},{"../const":433,"../math":444,"../renderers/canvas/utils/CanvasBuffer":456,"../renderers/webgl/managers/FilterManager":465,"../renderers/webgl/utils/RenderTarget":476,"./BaseTexture":481,"./Texture":483}],483:[function(t,e,n){var r=t("./BaseTexture"),i=t("./VideoBaseTexture"),o=t("./TextureUvs"),a=t("eventemitter3"),s=t("../math"),l=t("../utils");function c(t,e,n,i,r){if(a.call(this),this.noFrame=!1,e||(this.noFrame=!0,e=new s.Rectangle(0,0,1,1)),t instanceof c&&(t=t.baseTexture),this.baseTexture=t,this._frame=e,this.trim=i,this.valid=!1,this.requiresUpdate=!1,this._uvs=null,this.width=0,this.height=0,this.crop=n||e,this._rotate=+(r||0),!0===r)this._rotate=2;else if(this._rotate%2!=0)throw"attempt to use diamond-shaped UVs. If you are sure, set rotation manually";t.hasLoaded?(this.noFrame&&(e=new s.Rectangle(0,0,t.width,t.height),t.on("update",this.onBaseTextureUpdated,this)),this.frame=e):t.once("loaded",this.onBaseTextureLoaded,this)}c.prototype=Object.create(a.prototype),e.exports=c.prototype.constructor=c,Object.defineProperties(c.prototype,{frame:{get:function(){return this._frame},set:function(t){if(this._frame=t,this.noFrame=!1,this.width=t.width,this.height=t.height,!this.trim&&!this.rotate&&(t.x+t.width>this.baseTexture.width||t.y+t.height>this.baseTexture.height))throw new Error("Texture Error: frame does not fit inside the base Texture dimensions "+this);this.valid=t&&t.width&&t.height&&this.baseTexture.hasLoaded,this.trim?(this.width=this.trim.width,this.height=this.trim.height,this._frame.width=this.trim.width,this._frame.height=this.trim.height):this.crop=t,this.valid&&this._updateUvs()}},rotate:{get:function(){return this._rotate},set:function(t){this._rotate=t,this.valid&&this._updateUvs()}}}),c.prototype.update=function(){this.baseTexture.update()},c.prototype.onBaseTextureLoaded=function(t){this.noFrame?this.frame=new s.Rectangle(0,0,t.width,t.height):this.frame=this._frame,this.emit("update",this)},c.prototype.onBaseTextureUpdated=function(t){this._frame.width=t.width,this._frame.height=t.height,this.emit("update",this)},c.prototype.destroy=function(t){this.baseTexture&&(t&&this.baseTexture.destroy(),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture.off("loaded",this.onBaseTextureLoaded,this),this.baseTexture=null),this._frame=null,this._uvs=null,this.trim=null,this.crop=null,this.valid=!1,this.off("dispose",this.dispose,this),this.off("update",this.update,this)},c.prototype.clone=function(){return new c(this.baseTexture,this.frame,this.crop,this.trim,this.rotate)},c.prototype._updateUvs=function(){this._uvs||(this._uvs=new o),this._uvs.set(this.crop,this.baseTexture,this.rotate)},c.fromImage=function(t,e,n){var i=l.TextureCache[t];return i||(i=new c(r.fromImage(t,e,n)),l.TextureCache[t]=i),i},c.fromFrame=function(t){var e=l.TextureCache[t];if(e)return e;throw new Error('The frameId "'+t+'" does not exist in the texture cache')},c.fromCanvas=function(t,e){return new c(r.fromCanvas(t,e))},c.fromVideo=function(t,e){return"string"==typeof t?c.fromVideoUrl(t,e):new c(i.fromVideo(t,e))},c.fromVideoUrl=function(t,e){return new c(i.fromUrl(t,e))},c.addTextureToCache=function(t,e){l.TextureCache[e]=t},c.removeTextureFromCache=function(t){var e=l.TextureCache[t];return delete l.TextureCache[t],delete l.BaseTextureCache[t],e},c.EMPTY=new c(new r)},{"../math":444,"../utils":488,"./BaseTexture":481,"./TextureUvs":484,"./VideoBaseTexture":485,eventemitter3:382}],484:[function(t,e,n){function i(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1}e.exports=i;var l=t("../math/GroupD8");i.prototype.set=function(t,e,n){var i,r,o,a,s=e.width,e=e.height;n?(i=((r=l.isSwapWidthHeight(n))?t.height:t.width)/2/s,r=(r?t.width:t.height)/2/e,o=t.x/s+i,a=t.y/e+r,n=l.add(n,l.NW),this.x0=o+i*l.uX(n),this.y0=a+r*l.uY(n),n=l.add(n,2),this.x1=o+i*l.uX(n),this.y1=a+r*l.uY(n),n=l.add(n,2),this.x2=o+i*l.uX(n),this.y2=a+r*l.uY(n),n=l.add(n,2),this.x3=o+i*l.uX(n),this.y3=a+r*l.uY(n)):(this.x0=t.x/s,this.y0=t.y/e,this.x1=(t.x+t.width)/s,this.y1=t.y/e,this.x2=(t.x+t.width)/s,this.y2=(t.y+t.height)/e,this.x3=t.x/s,this.y3=(t.y+t.height)/e)}},{"../math/GroupD8":441}],485:[function(t,e,n){var i=t("./BaseTexture"),r=t("../utils");function o(t,e){if(!t)throw new Error("No video source element specified.");(t.readyState===t.HAVE_ENOUGH_DATA||t.readyState===t.HAVE_FUTURE_DATA)&&t.width&&t.height&&(t.complete=!0),i.call(this,t,e),this.autoUpdate=!1,this._onUpdate=this._onUpdate.bind(this),this._onCanPlay=this._onCanPlay.bind(this),t.complete||(t.addEventListener("canplay",this._onCanPlay),t.addEventListener("canplaythrough",this._onCanPlay),t.addEventListener("play",this._onPlayStart.bind(this)),t.addEventListener("pause",this._onPlayStop.bind(this))),this.__loaded=!1}function a(t,e){e=e||"video/"+t.substr(t.lastIndexOf(".")+1);var n=document.createElement("source");return n.src=t,n.type=e,n}o.prototype=Object.create(i.prototype),(e.exports=o.prototype.constructor=o).prototype._onUpdate=function(){this.autoUpdate&&(window.requestAnimationFrame(this._onUpdate),this.update())},o.prototype._onPlayStart=function(){this.autoUpdate||(window.requestAnimationFrame(this._onUpdate),this.autoUpdate=!0)},o.prototype._onPlayStop=function(){this.autoUpdate=!1},o.prototype._onCanPlay=function(){this.hasLoaded=!0,this.source&&(this.source.removeEventListener("canplay",this._onCanPlay),this.source.removeEventListener("canplaythrough",this._onCanPlay),this.width=this.source.videoWidth,this.height=this.source.videoHeight,this.source.play(),this.__loaded||(this.__loaded=!0,this.emit("loaded",this)))},o.prototype.destroy=function(){this.source&&this.source._pixiId&&(delete r.BaseTextureCache[this.source._pixiId],delete this.source._pixiId),i.prototype.destroy.call(this)},o.fromVideo=function(t,e){t._pixiId||(t._pixiId="video_"+r.uid());var n=r.BaseTextureCache[t._pixiId];return n||(n=new o(t,e),r.BaseTextureCache[t._pixiId]=n),n},o.fromUrls=o.fromUrl=function(t,e){var n=document.createElement("video");if(Array.isArray(t))for(var i=0;i<t.length;++i)n.appendChild(a(t[i].src||t[i],t[i].mime));else n.appendChild(a(t.src||t,t.mime));return n.load(),n.play(),o.fromVideo(n,e)}},{"../utils":488,"./BaseTexture":481}],486:[function(t,e,n){var i=t("../const"),r=t("eventemitter3"),o="tick";function a(){var e=this;this._tick=function(t){e._requestId=null,e.started&&(e.update(t),e.started)&&null===e._requestId&&e._emitter.listeners(o,!0)&&(e._requestId=requestAnimationFrame(e._tick))},this._emitter=new r,this._requestId=null,this._maxElapsedMS=100,this.autoStart=!1,this.deltaTime=1,this.elapsedMS=1/i.TARGET_FPMS,this.lastTime=0,this.speed=1,this.started=!1}Object.defineProperties(a.prototype,{FPS:{get:function(){return 1e3/this.elapsedMS}},minFPS:{get:function(){return 1e3/this._maxElapsedMS},set:function(t){t=Math.min(Math.max(0,t)/1e3,i.TARGET_FPMS);this._maxElapsedMS=1/t}}}),a.prototype._requestIfNeeded=function(){null===this._requestId&&this._emitter.listeners(o,!0)&&(this.lastTime=performance.now(),this._requestId=requestAnimationFrame(this._tick))},a.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},a.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},a.prototype.add=function(t,e){return this._emitter.on(o,t,e),this._startIfPossible(),this},a.prototype.addOnce=function(t,e){return this._emitter.once(o,t,e),this._startIfPossible(),this},a.prototype.remove=function(t,e){return this._emitter.off(o,t,e),this._emitter.listeners(o,!0)||this._cancelIfNeeded(),this},a.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},a.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},a.prototype.update=function(t){var e;t=t||performance.now(),(e=this.elapsedMS=t-this.lastTime)>this._maxElapsedMS&&(e=this._maxElapsedMS),this.deltaTime=e*i.TARGET_FPMS*this.speed,this._emitter.emit(o,this.deltaTime),this.lastTime=t},e.exports=a},{"../const":433,eventemitter3:382}],487:[function(t,e,n){var t=t("./Ticker"),i=new t;i.autoStart=!0,e.exports={shared:i,Ticker:t}},{"./Ticker":486}],488:[function(t,e,n){var i=t("../const"),r=e.exports={_uid:0,_saidHello:!1,EventEmitter:t("eventemitter3"),pluginTarget:t("./pluginTarget"),async:t("async"),uid:function(){return++r._uid},hex2rgb:function(t,e){return(e=e||[])[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255,e},hex2string:function(t){return t=t.toString(16),"#"+(t="000000".substr(0,6-t.length)+t)},rgb2hex:function(t){return(255*t[0]<<16)+(255*t[1]<<8)+255*t[2]},canUseNewCanvasBlendModes:function(){var t,e,n,i;return"undefined"!=typeof document&&(i="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",n="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(t=new Image).src=i+"AP804Oa6"+n,(e=new Image).src=i+"/wCKxvRF"+n,(i=document.createElement("canvas")).width=6,i.height=1,(n=i.getContext("2d")).globalCompositeOperation="multiply",n.drawImage(t,0,0),n.drawImage(e,2,0),255===(i=n.getImageData(2,0,1,1).data)[0])&&0===i[1]&&0===i[2]},getNextPowerOfTwo:function(t){if(0<t&&0==(t&t-1))return t;for(var e=1;e<t;)e<<=1;return e},isPowerOfTwo:function(t,e){return 0<t&&0==(t&t-1)&&0<e&&0==(e&e-1)},getResolutionOfUrl:function(t){t=i.RETINA_PREFIX.exec(t);return t?parseFloat(t[1]):1},sayHello:function(t){var e;r._saidHello||(-1<navigator.userAgent.toLowerCase().indexOf("chrome")?(e=["\n %c %c %c Pixi.js "+i.VERSION+" - ✰ "+t+" ✰  %c  %c  http://www.pixijs.com/  %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"],window.console.log.apply(console,e)):window.console&&window.console.log("Pixi.js "+i.VERSION+" - "+t+" - http://www.pixijs.com/"),r._saidHello=!0)},isWebGLSupported:function(){var t,e,n={stencil:!0};try{return window.WebGLRenderingContext?!(!(e=(t=document.createElement("canvas")).getContext("webgl",n)||t.getContext("experimental-webgl",n))||!e.getContextAttributes().stencil):!1}catch(t){return!1}},sign:function(t){return t?t<0?-1:1:0},removeItems:function(t,e,n){var i=t.length;if(!(i<=e||0===n)){for(var r=e,o=i-(n=i<e+n?i-e:n);r<o;++r)t[r]=t[r+n];t.length=o}},TextureCache:{},BaseTextureCache:{}}},{"../const":433,"./pluginTarget":489,async:20,eventemitter3:382}],489:[function(t,e,n){e.exports={mixin:function(t){var n;(n=t).__plugins={},n.registerPlugin=function(t,e){n.__plugins[t]=e},n.prototype.initPlugins=function(){for(var t in this.plugins=this.plugins||{},n.__plugins)this.plugins[t]=new n.__plugins[t](this)},n.prototype.destroyPlugins=function(){for(var t in this.plugins)this.plugins[t].destroy(),this.plugins[t]=null;this.plugins=null}}}},{}],490:[function(t,e,n){var i=t("./core"),r=t("./mesh"),o=t("./extras"),t=t("./filters");i.SpriteBatch=function(){throw new ReferenceError("SpriteBatch does not exist any more, please use the new ParticleContainer instead.")},i.AssetLoader=function(){throw new ReferenceError("The loader system was overhauled in pixi v3, please see the new PIXI.loaders.Loader class.")},Object.defineProperties(i,{Stage:{get:function(){return console.warn("You do not need to use a PIXI Stage any more, you can simply render any container."),i.Container}},DisplayObjectContainer:{get:function(){return console.warn("DisplayObjectContainer has been shortened to Container, please use Container from now on."),i.Container}},Strip:{get:function(){return console.warn("The Strip class has been renamed to Mesh and moved to mesh.Mesh, please use mesh.Mesh from now on."),r.Mesh}},Rope:{get:function(){return console.warn("The Rope class has been moved to mesh.Rope, please use mesh.Rope from now on."),r.Rope}},MovieClip:{get:function(){return console.warn("The MovieClip class has been moved to extras.MovieClip, please use extras.MovieClip from now on."),o.MovieClip}},TilingSprite:{get:function(){return console.warn("The TilingSprite class has been moved to extras.TilingSprite, please use extras.TilingSprite from now on."),o.TilingSprite}},BitmapText:{get:function(){return console.warn("The BitmapText class has been moved to extras.BitmapText, please use extras.BitmapText from now on."),o.BitmapText}},blendModes:{get:function(){return console.warn("The blendModes has been moved to BLEND_MODES, please use BLEND_MODES from now on."),i.BLEND_MODES}},scaleModes:{get:function(){return console.warn("The scaleModes has been moved to SCALE_MODES, please use SCALE_MODES from now on."),i.SCALE_MODES}},BaseTextureCache:{get:function(){return console.warn("The BaseTextureCache class has been moved to utils.BaseTextureCache, please use utils.BaseTextureCache from now on."),i.utils.BaseTextureCache}},TextureCache:{get:function(){return console.warn("The TextureCache class has been moved to utils.TextureCache, please use utils.TextureCache from now on."),i.utils.TextureCache}},math:{get:function(){return console.warn("The math namespace is deprecated, please access members already accessible on PIXI."),i}}}),i.Sprite.prototype.setTexture=function(t){this.texture=t,console.warn("setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture;")},o.BitmapText.prototype.setText=function(t){this.text=t,console.warn("setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text';")},i.Text.prototype.setText=function(t){this.text=t,console.warn("setText is now deprecated, please use the text property, e.g : myText.text = 'my text';")},i.Text.prototype.setStyle=function(t){this.style=t,console.warn("setStyle is now deprecated, please use the style property, e.g : myText.style = style;")},i.Texture.prototype.setFrame=function(t){this.frame=t,console.warn("setFrame is now deprecated, please use the frame property, e.g : myTexture.frame = frame;")},Object.defineProperties(t,{AbstractFilter:{get:function(){return console.warn("filters.AbstractFilter is an undocumented alias, please use AbstractFilter from now on."),i.AbstractFilter}},FXAAFilter:{get:function(){return console.warn("filters.FXAAFilter is an undocumented alias, please use FXAAFilter from now on."),i.FXAAFilter}},SpriteMaskFilter:{get:function(){return console.warn("filters.SpriteMaskFilter is an undocumented alias, please use SpriteMaskFilter from now on."),i.SpriteMaskFilter}}}),i.utils.uuid=function(){return console.warn("utils.uuid() is deprecated, please use utils.uid() from now on."),i.utils.uid()}},{"./core":440,"./extras":497,"./filters":514,"./mesh":539}],491:[function(t,e,n){var _=t("../core");function b(t,e){_.Container.call(this),e=e||{},this.textWidth=0,this.textHeight=0,this._glyphs=[],this._font={tint:void 0!==e.tint?e.tint:16777215,align:e.align||"left",name:null,size:0},this.font=e.font,this._text=t,this.maxWidth=0,this.maxLineHeight=0,this.dirty=!1,this.updateText()}b.prototype=Object.create(_.Container.prototype),e.exports=b.prototype.constructor=b,Object.defineProperties(b.prototype,{tint:{get:function(){return this._font.tint},set:function(t){this._font.tint="number"==typeof t&&0<=t?t:16777215,this.dirty=!0}},align:{get:function(){return this._font.align},set:function(t){this._font.align=t||"left",this.dirty=!0}},font:{get:function(){return this._font},set:function(t){t&&("string"==typeof t?(t=t.split(" "),this._font.name=1===t.length?t[0]:t.slice(1).join(" "),this._font.size=2<=t.length?parseInt(t[0],10):b.fonts[this._font.name].size):(this._font.name=t.name,this._font.size="number"==typeof t.size?t.size:parseInt(t.size,10)),this.dirty=!0)}},text:{get:function(){return this._text},set:function(t){t=t.toString()||" ",this._text!==t&&(this._text=t,this.dirty=!0)}}}),b.prototype.updateText=function(){for(var t=b.fonts[this._font.name],e=new _.Point,n=null,i=[],r=0,o=0,a=[],s=0,l=this._font.size/t.size,c=-1,u=0,h=0;h<this.text.length;h++){var d,p=this.text.charCodeAt(h),c=/(\s)/.test(this.text.charAt(h))?h:c;/(?:\r\n|\r|\n)/.test(this.text.charAt(h))?(a.push(r),o=Math.max(o,r),s++,e.x=0,e.y+=t.lineHeight,n=null):-1!==c&&0<this.maxWidth&&e.x*l>this.maxWidth?(_.utils.removeItems(i,c,h-c),h=c,c=-1,a.push(r),o=Math.max(o,r),s++,e.x=0,e.y+=t.lineHeight,n=null):(d=t.chars[p])&&(n&&d.kerning[n]&&(e.x+=d.kerning[n]),i.push({texture:d.texture,line:s,charCode:p,position:new _.Point(e.x+d.xOffset,e.y+d.yOffset)}),r=e.x+(d.texture.width+d.xOffset),e.x+=d.xAdvance,u=Math.max(u,d.yOffset+d.texture.height),n=p)}a.push(r);for(var o=Math.max(o,r),f=[],h=0;h<=s;h++){var m=0;"right"===this._font.align?m=o-a[h]:"center"===this._font.align&&(m=(o-a[h])/2),f.push(m)}var g=i.length,v=this.tint;for(h=0;h<g;h++){var y=this._glyphs[h];y?y.texture=i[h].texture:(y=new _.Sprite(i[h].texture),this._glyphs.push(y)),y.position.x=(i[h].position.x+f[i[h].line])*l,y.position.y=i[h].position.y*l,y.scale.x=y.scale.y=l,y.tint=v,y.parent||this.addChild(y)}for(h=g;h<this._glyphs.length;++h)this.removeChild(this._glyphs[h]);this.textWidth=o*l,this.textHeight=(e.y+t.lineHeight)*l,this.maxLineHeight=u*l},b.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},b.prototype.getLocalBounds=function(){return this.validate(),_.Container.prototype.getLocalBounds.call(this)},b.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},b.fonts={}},{"../core":440}],492:[function(t,e,n){var i=t("../core");function r(t){i.Sprite.call(this,t[0]instanceof i.Texture?t[0]:t[0].texture),this._textures=null,this._durations=null,this.textures=t,this.animationSpeed=1,this.loop=!0,this.onComplete=null,this._currentTime=0,this.playing=!1}r.prototype=Object.create(i.Sprite.prototype),e.exports=r.prototype.constructor=r,Object.defineProperties(r.prototype,{totalFrames:{get:function(){return this._textures.length}},textures:{get:function(){return this._textures},set:function(t){if(t[0]instanceof i.Texture)this._textures=t,this._durations=null;else{this._textures=[],this._durations=[];for(var e=0;e<t.length;e++)this._textures.push(t[e].texture),this._durations.push(t[e].time)}}},currentFrame:{get:function(){var t=Math.floor(this._currentTime)%this._textures.length;return t<0&&(t+=this._textures.length),t}}}),r.prototype.stop=function(){this.playing&&(this.playing=!1,i.ticker.shared.remove(this.update,this))},r.prototype.play=function(){this.playing||(this.playing=!0,i.ticker.shared.add(this.update,this))},r.prototype.gotoAndStop=function(t){this.stop(),this._currentTime=t,this._texture=this._textures[this.currentFrame]},r.prototype.gotoAndPlay=function(t){this._currentTime=t,this.play()},r.prototype.update=function(t){var e=this.animationSpeed*t;if(null!==this._durations){var n=this._currentTime%1*this._durations[this.currentFrame];for(n+=e/60*1e3;n<0;)this._currentTime--,n+=this._durations[this.currentFrame];var i=Math.sign(this.animationSpeed*t);for(this._currentTime=Math.floor(this._currentTime);n>=this._durations[this.currentFrame];)n-=this._durations[this.currentFrame]*i,this._currentTime+=i;this._currentTime+=n/this._durations[this.currentFrame]}else this._currentTime+=e;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):this._texture=this._textures[this.currentFrame]},r.prototype.destroy=function(){this.stop(),i.Sprite.prototype.destroy.call(this)},r.fromFrames=function(t){for(var e=[],n=0;n<t.length;++n)e.push(new i.Texture.fromFrame(t[n]));return new r(e)},r.fromImages=function(t){for(var e=[],n=0;n<t.length;++n)e.push(new i.Texture.fromImage(t[n]));return new r(e)}},{"../core":440}],493:[function(t,e,n){var c=t("../core"),i=new c.Point,u=t("../core/renderers/canvas/utils/CanvasTinter");function o(t,e,n){c.Sprite.call(this,t),this.tileScale=new c.Point(1,1),this.tilePosition=new c.Point(0,0),this._width=e||100,this._height=n||100,this._uvs=new c.TextureUvs,this._canvasPattern=null,this.shader=new c.AbstractFilter(["precision lowp float;","attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute vec4 aColor;","uniform mat3 projectionMatrix;","uniform vec4 uFrame;","uniform vec4 uTransform;","varying vec2 vTextureCoord;","varying vec4 vColor;","void main(void){","   gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);","   vec2 coord = aTextureCoord;","   coord -= uTransform.xy;","   coord /= uTransform.zw;","   vTextureCoord = coord;","   vColor = vec4(aColor.rgb * aColor.a, aColor.a);","}"].join("\n"),["precision lowp float;","varying vec2 vTextureCoord;","varying vec4 vColor;","uniform sampler2D uSampler;","uniform vec4 uFrame;","uniform vec2 uPixelSize;","void main(void){","   vec2 coord = mod(vTextureCoord, uFrame.zw);","   coord = clamp(coord, uPixelSize, uFrame.zw - uPixelSize);","   coord += uFrame.xy;","   gl_FragColor =  texture2D(uSampler, coord) * vColor ;","}"].join("\n"),{uFrame:{type:"4fv",value:[0,0,1,1]},uTransform:{type:"4fv",value:[0,0,1,1]},uPixelSize:{type:"2fv",value:[1,1]}})}o.prototype=Object.create(c.Sprite.prototype),e.exports=o.prototype.constructor=o,Object.defineProperties(o.prototype,{width:{get:function(){return this._width},set:function(t){this._width=t}},height:{get:function(){return this._height},set:function(t){this._height=t}}}),o.prototype._onTextureUpdate=function(){},o.prototype._renderWebGL=function(t){var e,n,i,r,o,a=this._texture;a&&a._uvs&&(e=a._uvs,n=a._frame.width,i=a._frame.height,r=a.baseTexture.width,o=a.baseTexture.height,a._uvs=this._uvs,a._frame.width=this.width,a._frame.height=this.height,this.shader.uniforms.uPixelSize.value[0]=1/r,this.shader.uniforms.uPixelSize.value[1]=1/o,this.shader.uniforms.uFrame.value[0]=e.x0,this.shader.uniforms.uFrame.value[1]=e.y0,this.shader.uniforms.uFrame.value[2]=e.x1-e.x0,this.shader.uniforms.uFrame.value[3]=e.y2-e.y0,this.shader.uniforms.uTransform.value[0]=this.tilePosition.x%(n*this.tileScale.x)/this._width,this.shader.uniforms.uTransform.value[1]=this.tilePosition.y%(i*this.tileScale.y)/this._height,this.shader.uniforms.uTransform.value[2]=r/this._width*this.tileScale.x,this.shader.uniforms.uTransform.value[3]=o/this._height*this.tileScale.y,t.setObjectRenderer(t.plugins.sprite),t.plugins.sprite.render(this),a._uvs=e,a._frame.width=n,a._frame.height=i)},o.prototype._renderCanvas=function(t){var e,n,i,r,o,a,s,l=this._texture;l.baseTexture.hasLoaded&&(e=t.context,n=this.worldTransform,i=t.resolution,s=l.baseTexture,r=this.tilePosition.x/this.tileScale.x%l._frame.width,o=this.tilePosition.y/this.tileScale.y%l._frame.height,this._canvasPattern||(a=new c.CanvasBuffer(l._frame.width*i,l._frame.height*i),16777215!==this.tint?(this.cachedTint!==this.tint&&(this.cachedTint=this.tint,this.tintedTexture=u.getTintedTexture(this,this.tint)),a.context.drawImage(this.tintedTexture,0,0)):a.context.drawImage(s.source,-l._frame.x*i,-l._frame.y*i),this._canvasPattern=a.context.createPattern(a.canvas,"repeat")),e.globalAlpha=this.worldAlpha,e.setTransform(n.a*i,n.b*i,n.c*i,n.d*i,n.tx*i,n.ty*i),e.scale(this.tileScale.x/i,this.tileScale.y/i),e.translate(r+this.anchor.x*-this._width,o+this.anchor.y*-this._height),(s=t.blendModes[this.blendMode])!==t.context.globalCompositeOperation&&(e.globalCompositeOperation=s),e.fillStyle=this._canvasPattern,e.fillRect(-r,-o,this._width*i/this.tileScale.x,this._height*i/this.tileScale.y))},o.prototype.getBounds=function(){var t=this._width,e=this._height,n=t*(1-this.anchor.x),t=t*-this.anchor.x,i=e*(1-this.anchor.y),e=e*-this.anchor.y,r=this.worldTransform,o=r.a,a=r.b,s=r.c,l=r.d,c=r.tx,r=r.ty,u=o*t+s*e+c,h=l*e+a*t+r,d=o*n+s*e+c,e=l*e+a*n+r,p=o*n+s*i+c,n=l*i+a*n+r,o=o*t+s*i+c,s=l*i+a*t+r,c=h,i=(c=s<(c=n<(c=e<h?e:c)?n:c)?s:c,l=(l=(l=(l=u)<d?d:l)<p?p:l)<o?o:l,(i=(i=(i=i=h)<e?e:i)<n?n:i)<s?s:i),a=this._bounds;return a.x=t=o<(t=p<(t=d<u?d:u)?p:t)?o:t,a.width=l-t,a.y=c,a.height=i-c,this._currentBounds=a},o.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,i);var t=this._width,e=this._height,n=-t*this.anchor.x;return i.x>n&&i.x<n+t&&(n=-e*this.anchor.y,i.y>n)&&i.y<n+e},o.prototype.destroy=function(){c.Sprite.prototype.destroy.call(this),this.tileScale=null,this._tileScaleOffset=null,this.tilePosition=null,this._uvs=null},o.fromFrame=function(t,e,n){var i=c.utils.TextureCache[t];if(i)return new o(i,e,n);throw new Error('The frameId "'+t+'" does not exist in the texture cache '+this)},o.fromImage=function(t,e,n,i,r){return new o(c.Texture.fromImage(t,i,r),e,n)}},{"../core":440,"../core/renderers/canvas/utils/CanvasTinter":459}],494:[function(t,e,n){var a=t("../core"),t=a.DisplayObject,s=new a.Matrix;t.prototype._cacheAsBitmap=!1,t.prototype._originalRenderWebGL=null,t.prototype._originalRenderCanvas=null,t.prototype._originalUpdateTransform=null,t.prototype._originalHitTest=null,t.prototype._originalDestroy=null,t.prototype._cachedSprite=null,Object.defineProperties(t.prototype,{cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){this._cacheAsBitmap!==t&&((this._cacheAsBitmap=t)?(this._originalRenderWebGL=this.renderWebGL,this._originalRenderCanvas=this.renderCanvas,this._originalUpdateTransform=this.updateTransform,this._originalGetBounds=this.getBounds,this._originalDestroy=this.destroy,this._originalContainsPoint=this.containsPoint,this.renderWebGL=this._renderCachedWebGL,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(this._cachedSprite&&this._destroyCachedDisplayObject(),this.renderWebGL=this._originalRenderWebGL,this.renderCanvas=this._originalRenderCanvas,this.getBounds=this._originalGetBounds,this.destroy=this._originalDestroy,this.updateTransform=this._originalUpdateTransform,this.containsPoint=this._originalContainsPoint))}}}),t.prototype._renderCachedWebGL=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cachedSprite.worldAlpha=this.worldAlpha,t.setObjectRenderer(t.plugins.sprite),t.plugins.sprite.render(this._cachedSprite))},t.prototype._initCachedDisplayObject=function(t){var e,n,i,r,o;this._cachedSprite||(t.currentRenderer.flush(),e=this.getLocalBounds().clone(),this._filters&&(n=this._filters[0].padding,e.x-=n,e.y-=n,e.width+=2*n,e.height+=2*n),n=t.currentRenderTarget,i=t.filterManager.filterStack,r=new a.RenderTexture(t,0|e.width,0|e.height),(o=s).tx=-e.x,o.ty=-e.y,this.renderWebGL=this._originalRenderWebGL,r.render(this,o,!0,!0),t.setRenderTarget(n),t.filterManager.filterStack=i,this.renderWebGL=this._renderCachedWebGL,this.updateTransform=this.displayObjectUpdateTransform,this.getBounds=this._getCachedBounds,this._cachedSprite=new a.Sprite(r),this._cachedSprite.worldTransform=this.worldTransform,this._cachedSprite.anchor.x=-(e.x/e.width),this._cachedSprite.anchor.y=-(e.y/e.height),this.updateTransform(),this.containsPoint=this._cachedSprite.containsPoint.bind(this._cachedSprite))},t.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cachedSprite.worldAlpha=this.worldAlpha,this._cachedSprite.renderCanvas(t))},t.prototype._initCachedDisplayObjectCanvas=function(t){var e,n,i,r;this._cachedSprite||(e=this.getLocalBounds(),n=t.context,i=new a.RenderTexture(t,0|e.width,0|e.height),(r=s).tx=-e.x,r.ty=-e.y,this.renderCanvas=this._originalRenderCanvas,i.render(this,r,!0),t.context=n,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.getBounds=this._getCachedBounds,this._cachedSprite=new a.Sprite(i),this._cachedSprite.worldTransform=this.worldTransform,this._cachedSprite.anchor.x=-(e.x/e.width),this._cachedSprite.anchor.y=-(e.y/e.height),this.updateTransform(),this.containsPoint=this._cachedSprite.containsPoint.bind(this._cachedSprite))},t.prototype._getCachedBounds=function(){return this._cachedSprite._currentBounds=null,this._cachedSprite.getBounds()},t.prototype._destroyCachedDisplayObject=function(){this._cachedSprite._texture.destroy(),this._cachedSprite=null},t.prototype._cacheAsBitmapDestroy=function(){this.cacheAsBitmap=!1,this._originalDestroy()}},{"../core":440}],495:[function(t,e,n){t=t("../core");t.DisplayObject.prototype.name=null,t.Container.prototype.getChildByName=function(t){for(var e=0;e<this.children.length;e++)if(this.children[e].name===t)return this.children[e];return null}},{"../core":440}],496:[function(t,e,n){var i=t("../core");i.DisplayObject.prototype.getGlobalPosition=function(t){return t=t||new i.Point,this.parent?(this.displayObjectUpdateTransform(),t.x=this.worldTransform.tx,t.y=this.worldTransform.ty):(t.x=this.position.x,t.y=this.position.y),t}},{"../core":440}],497:[function(t,e,n){t("./cacheAsBitmap"),t("./getChildByName"),t("./getGlobalPosition"),e.exports={MovieClip:t("./MovieClip"),TilingSprite:t("./TilingSprite"),BitmapText:t("./BitmapText")}},{"./BitmapText":491,"./MovieClip":492,"./TilingSprite":493,"./cacheAsBitmap":494,"./getChildByName":495,"./getGlobalPosition":496}],498:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision mediump float;\n\nuniform vec4 dimensions;\nuniform float pixelSize;\nuniform sampler2D uSampler;\n\nfloat character(float n, vec2 p)\n{\n    p = floor(p*vec2(4.0, -4.0) + 2.5);\n    if (clamp(p.x, 0.0, 4.0) == p.x && clamp(p.y, 0.0, 4.0) == p.y)\n    {\n        if (int(mod(n/exp2(p.x + 5.0*p.y), 2.0)) == 1) return 1.0;\n    }\n    return 0.0;\n}\n\nvoid main()\n{\n    vec2 uv = gl_FragCoord.xy;\n\n    vec3 col = texture2D(uSampler, floor( uv / pixelSize ) * pixelSize / dimensions.xy).rgb;\n\n    float gray = (col.r + col.g + col.b) / 3.0;\n\n    float n =  65536.0;             // .\n    if (gray > 0.2) n = 65600.0;    // :\n    if (gray > 0.3) n = 332772.0;   // *\n    if (gray > 0.4) n = 15255086.0; // o\n    if (gray > 0.5) n = 23385164.0; // &\n    if (gray > 0.6) n = 15252014.0; // 8\n    if (gray > 0.7) n = 13199452.0; // @\n    if (gray > 0.8) n = 11512810.0; // #\n\n    vec2 p = mod( uv / ( pixelSize * 0.5 ), 2.0) - vec2(1.0);\n    col = col * character(n, p);\n\n    gl_FragColor = vec4(col, 1.0);\n}\n",{dimensions:{type:"4fv",value:new Float32Array([0,0,0,0])},pixelSize:{type:"1f",value:8}})}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r,Object.defineProperties(r.prototype,{size:{get:function(){return this.uniforms.pixelSize.value},set:function(t){this.uniforms.pixelSize.value=t}}})},{"../../core":440}],499:[function(t,e,n){var r=t("../../core"),i=t("../blur/BlurXFilter"),o=t("../blur/BlurYFilter");function a(){r.AbstractFilter.call(this),this.blurXFilter=new i,this.blurYFilter=new o,this.defaultFilter=new r.AbstractFilter}a.prototype=Object.create(r.AbstractFilter.prototype),(e.exports=a.prototype.constructor=a).prototype.applyFilter=function(t,e,n){var i=t.filterManager.getRenderTarget(!0);this.defaultFilter.applyFilter(t,e,n),this.blurXFilter.applyFilter(t,e,i),t.blendModeManager.setBlendMode(r.BLEND_MODES.SCREEN),this.blurYFilter.applyFilter(t,i,n),t.blendModeManager.setBlendMode(r.BLEND_MODES.NORMAL),t.filterManager.returnRenderTarget(i)},Object.defineProperties(a.prototype,{blur:{get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=this.blurYFilter.blur=t}},blurX:{get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=t}},blurY:{get:function(){return this.blurYFilter.blur},set:function(t){this.blurYFilter.blur=t}}})},{"../../core":440,"../blur/BlurXFilter":502,"../blur/BlurYFilter":503}],500:[function(t,e,n){var i=t("../../core");function r(t,e){i.AbstractFilter.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform float strength;\nuniform float dirX;\nuniform float dirY;\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying vec2 vBlurTexCoords[3];\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3((aVertexPosition), 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n\n    vBlurTexCoords[0] = aTextureCoord + vec2( (0.004 * strength) * dirX, (0.004 * strength) * dirY );\n    vBlurTexCoords[1] = aTextureCoord + vec2( (0.008 * strength) * dirX, (0.008 * strength) * dirY );\n    vBlurTexCoords[2] = aTextureCoord + vec2( (0.012 * strength) * dirX, (0.012 * strength) * dirY );\n\n    vColor = vec4(aColor.rgb * aColor.a, aColor.a);\n}\n","precision lowp float;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vBlurTexCoords[3];\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n    gl_FragColor = vec4(0.0);\n\n    gl_FragColor += texture2D(uSampler, vTextureCoord     ) * 0.3989422804014327;\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 0]) * 0.2419707245191454;\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 1]) * 0.05399096651318985;\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 2]) * 0.004431848411938341;\n}\n",{strength:{type:"1f",value:1},dirX:{type:"1f",value:t||0},dirY:{type:"1f",value:e||0}}),this.defaultFilter=new i.AbstractFilter,this.passes=1,this.dirX=t||0,this.dirY=e||0,this.strength=4}r.prototype=Object.create(i.AbstractFilter.prototype),(e.exports=r.prototype.constructor=r).prototype.applyFilter=function(t,e,n,i){var r=this.getShader(t);if(this.uniforms.strength.value=this.strength/4/this.passes*(e.frame.width/e.size.width),1===this.passes)t.filterManager.applyFilter(r,e,n,i);else{var o=t.filterManager.getRenderTarget(!0);t.filterManager.applyFilter(r,e,o,i);for(var a=0;a<this.passes-2;a++)t.filterManager.applyFilter(r,o,o,i);t.filterManager.applyFilter(r,o,n,i),t.filterManager.returnRenderTarget(o)}},Object.defineProperties(r.prototype,{blur:{get:function(){return this.strength},set:function(t){this.padding=.5*t,this.strength=t}},dirX:{get:function(){return this.dirX},set:function(t){this.uniforms.dirX.value=t}},dirY:{get:function(){return this.dirY},set:function(t){this.uniforms.dirY.value=t}}})},{"../../core":440}],501:[function(t,e,n){var i=t("../../core"),r=t("./BlurXFilter"),o=t("./BlurYFilter");function a(){i.AbstractFilter.call(this),this.blurXFilter=new r,this.blurYFilter=new o}a.prototype=Object.create(i.AbstractFilter.prototype),(e.exports=a.prototype.constructor=a).prototype.applyFilter=function(t,e,n){var i=t.filterManager.getRenderTarget(!0);this.blurXFilter.applyFilter(t,e,i),this.blurYFilter.applyFilter(t,i,n),t.filterManager.returnRenderTarget(i)},Object.defineProperties(a.prototype,{blur:{get:function(){return this.blurXFilter.blur},set:function(t){this.padding=.5*Math.abs(t),this.blurXFilter.blur=this.blurYFilter.blur=t}},passes:{get:function(){return this.blurXFilter.passes},set:function(t){this.blurXFilter.passes=this.blurYFilter.passes=t}},blurX:{get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=t}},blurY:{get:function(){return this.blurYFilter.blur},set:function(t){this.blurYFilter.blur=t}}})},{"../../core":440,"./BlurXFilter":502,"./BlurYFilter":503}],502:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform float strength;\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying vec2 vBlurTexCoords[6];\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3((aVertexPosition), 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n\n    vBlurTexCoords[ 0] = aTextureCoord + vec2(-0.012 * strength, 0.0);\n    vBlurTexCoords[ 1] = aTextureCoord + vec2(-0.008 * strength, 0.0);\n    vBlurTexCoords[ 2] = aTextureCoord + vec2(-0.004 * strength, 0.0);\n    vBlurTexCoords[ 3] = aTextureCoord + vec2( 0.004 * strength, 0.0);\n    vBlurTexCoords[ 4] = aTextureCoord + vec2( 0.008 * strength, 0.0);\n    vBlurTexCoords[ 5] = aTextureCoord + vec2( 0.012 * strength, 0.0);\n\n    vColor = vec4(aColor.rgb * aColor.a, aColor.a);\n}\n","precision lowp float;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vBlurTexCoords[6];\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n    gl_FragColor = vec4(0.0);\n\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 0])*0.004431848411938341;\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 1])*0.05399096651318985;\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 2])*0.2419707245191454;\n    gl_FragColor += texture2D(uSampler, vTextureCoord     )*0.3989422804014327;\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 3])*0.2419707245191454;\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 4])*0.05399096651318985;\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 5])*0.004431848411938341;\n}\n",{strength:{type:"1f",value:1}}),this.passes=1,this.strength=4}r.prototype=Object.create(i.AbstractFilter.prototype),(e.exports=r.prototype.constructor=r).prototype.applyFilter=function(t,e,n,i){var r=this.getShader(t);if(this.uniforms.strength.value=this.strength/4/this.passes*(e.frame.width/e.size.width),1===this.passes)t.filterManager.applyFilter(r,e,n,i);else{for(var o=t.filterManager.getRenderTarget(!0),a=e,s=o,l=0;l<this.passes-1;l++){t.filterManager.applyFilter(r,a,s,!0);var c=s,s=a,a=c}t.filterManager.applyFilter(r,a,n,i),t.filterManager.returnRenderTarget(o)}},Object.defineProperties(r.prototype,{blur:{get:function(){return this.strength},set:function(t){this.padding=.5*Math.abs(t),this.strength=t}}})},{"../../core":440}],503:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform float strength;\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying vec2 vBlurTexCoords[6];\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3((aVertexPosition), 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n\n    vBlurTexCoords[ 0] = aTextureCoord + vec2(0.0, -0.012 * strength);\n    vBlurTexCoords[ 1] = aTextureCoord + vec2(0.0, -0.008 * strength);\n    vBlurTexCoords[ 2] = aTextureCoord + vec2(0.0, -0.004 * strength);\n    vBlurTexCoords[ 3] = aTextureCoord + vec2(0.0,  0.004 * strength);\n    vBlurTexCoords[ 4] = aTextureCoord + vec2(0.0,  0.008 * strength);\n    vBlurTexCoords[ 5] = aTextureCoord + vec2(0.0,  0.012 * strength);\n\n   vColor = vec4(aColor.rgb * aColor.a, aColor.a);\n}\n","precision lowp float;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vBlurTexCoords[6];\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n    gl_FragColor = vec4(0.0);\n\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 0])*0.004431848411938341;\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 1])*0.05399096651318985;\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 2])*0.2419707245191454;\n    gl_FragColor += texture2D(uSampler, vTextureCoord     )*0.3989422804014327;\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 3])*0.2419707245191454;\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 4])*0.05399096651318985;\n    gl_FragColor += texture2D(uSampler, vBlurTexCoords[ 5])*0.004431848411938341;\n}\n",{strength:{type:"1f",value:1}}),this.passes=1,this.strength=4}r.prototype=Object.create(i.AbstractFilter.prototype),(e.exports=r.prototype.constructor=r).prototype.applyFilter=function(t,e,n,i){var r=this.getShader(t);if(this.uniforms.strength.value=Math.abs(this.strength)/4/this.passes*(e.frame.height/e.size.height),1===this.passes)t.filterManager.applyFilter(r,e,n,i);else{for(var o=t.filterManager.getRenderTarget(!0),a=e,s=o,l=0;l<this.passes-1;l++){t.filterManager.applyFilter(r,a,s,!0);var c=s,s=a,a=c}t.filterManager.applyFilter(r,a,n,i),t.filterManager.returnRenderTarget(o)}},Object.defineProperties(r.prototype,{blur:{get:function(){return this.strength},set:function(t){this.padding=.5*Math.abs(t),this.strength=t}}})},{"../../core":440}],504:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec2 delta;\n\nfloat random(vec3 scale, float seed)\n{\n    return fract(sin(dot(gl_FragCoord.xyz + seed, scale)) * 43758.5453 + seed);\n}\n\nvoid main(void)\n{\n    vec4 color = vec4(0.0);\n    float total = 0.0;\n\n    float offset = random(vec3(12.9898, 78.233, 151.7182), 0.0);\n\n    for (float t = -30.0; t <= 30.0; t++)\n    {\n        float percent = (t + offset - 0.5) / 30.0;\n        float weight = 1.0 - abs(percent);\n        vec4 sample = texture2D(uSampler, vTextureCoord + delta * percent);\n        sample.rgb *= sample.a;\n        color += sample * weight;\n        total += weight;\n    }\n\n    gl_FragColor = color / total;\n    gl_FragColor.rgb /= gl_FragColor.a + 0.00001;\n}\n",{delta:{type:"v2",value:{x:.1,y:0}}})}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r},{"../../core":440}],505:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float m[25];\n\nvoid main(void)\n{\n\n    vec4 c = texture2D(uSampler, vTextureCoord);\n\n    gl_FragColor.r = (m[0] * c.r);\n        gl_FragColor.r += (m[1] * c.g);\n        gl_FragColor.r += (m[2] * c.b);\n        gl_FragColor.r += (m[3] * c.a);\n        gl_FragColor.r += m[4] * c.a;\n\n    gl_FragColor.g = (m[5] * c.r);\n        gl_FragColor.g += (m[6] * c.g);\n        gl_FragColor.g += (m[7] * c.b);\n        gl_FragColor.g += (m[8] * c.a);\n        gl_FragColor.g += m[9] * c.a;\n\n     gl_FragColor.b = (m[10] * c.r);\n        gl_FragColor.b += (m[11] * c.g);\n        gl_FragColor.b += (m[12] * c.b);\n        gl_FragColor.b += (m[13] * c.a);\n        gl_FragColor.b += m[14] * c.a;\n\n     gl_FragColor.a = (m[15] * c.r);\n        gl_FragColor.a += (m[16] * c.g);\n        gl_FragColor.a += (m[17] * c.b);\n        gl_FragColor.a += (m[18] * c.a);\n        gl_FragColor.a += m[19] * c.a;\n\n}\n",{m:{type:"1fv",value:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]}})}r.prototype=Object.create(i.AbstractFilter.prototype),(e.exports=r.prototype.constructor=r).prototype._loadMatrix=function(t,e){var n=t;(e=!!e)&&(this._multiply(n,this.uniforms.m.value,t),n=this._colorMatrix(n)),this.uniforms.m.value=n},r.prototype._multiply=function(t,e,n){return t[0]=e[0]*n[0]+e[1]*n[5]+e[2]*n[10]+e[3]*n[15],t[1]=e[0]*n[1]+e[1]*n[6]+e[2]*n[11]+e[3]*n[16],t[2]=e[0]*n[2]+e[1]*n[7]+e[2]*n[12]+e[3]*n[17],t[3]=e[0]*n[3]+e[1]*n[8]+e[2]*n[13]+e[3]*n[18],t[4]=e[0]*n[4]+e[1]*n[9]+e[2]*n[14]+e[3]*n[19],t[5]=e[5]*n[0]+e[6]*n[5]+e[7]*n[10]+e[8]*n[15],t[6]=e[5]*n[1]+e[6]*n[6]+e[7]*n[11]+e[8]*n[16],t[7]=e[5]*n[2]+e[6]*n[7]+e[7]*n[12]+e[8]*n[17],t[8]=e[5]*n[3]+e[6]*n[8]+e[7]*n[13]+e[8]*n[18],t[9]=e[5]*n[4]+e[6]*n[9]+e[7]*n[14]+e[8]*n[19],t[10]=e[10]*n[0]+e[11]*n[5]+e[12]*n[10]+e[13]*n[15],t[11]=e[10]*n[1]+e[11]*n[6]+e[12]*n[11]+e[13]*n[16],t[12]=e[10]*n[2]+e[11]*n[7]+e[12]*n[12]+e[13]*n[17],t[13]=e[10]*n[3]+e[11]*n[8]+e[12]*n[13]+e[13]*n[18],t[14]=e[10]*n[4]+e[11]*n[9]+e[12]*n[14]+e[13]*n[19],t[15]=e[15]*n[0]+e[16]*n[5]+e[17]*n[10]+e[18]*n[15],t[16]=e[15]*n[1]+e[16]*n[6]+e[17]*n[11]+e[18]*n[16],t[17]=e[15]*n[2]+e[16]*n[7]+e[17]*n[12]+e[18]*n[17],t[18]=e[15]*n[3]+e[16]*n[8]+e[17]*n[13]+e[18]*n[18],t[19]=e[15]*n[4]+e[16]*n[9]+e[17]*n[14]+e[18]*n[19],t},r.prototype._colorMatrix=function(t){t=new Float32Array(t);return t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,t},r.prototype.brightness=function(t,e){this._loadMatrix([t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0],e)},r.prototype.grayscale=r.prototype.greyscale=function(t,e){this._loadMatrix([t,t,t,0,0,t,t,t,0,0,t,t,t,0,0,0,0,0,1,0],e)},r.prototype.blackAndWhite=function(t){this._loadMatrix([.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],t)},r.prototype.hue=function(t,e){t=(t||0)/180*Math.PI;var n=Math.cos(t),t=Math.sin(t);this._loadMatrix([.213+.787*n+-.213*t,.715+-.715*n+-.715*t,.072+-.072*n+.928*t,0,0,.213+-.213*n+.143*t,.715+n*(1-.715)+.14*t,.072+-.072*n+-.283*t,0,0,.213+-.213*n+-.787*t,.715+-.715*n+.715*t,.072+.928*n+.072*t,0,0,0,0,0,1,0],e)},r.prototype.contrast=function(t,e){var t=(t||0)+1,n=-128*(t-1);this._loadMatrix([t,0,0,0,n,0,t,0,0,n,0,0,t,0,n,0,0,0,1,0],e)},r.prototype.saturate=function(t,e){var t=2*(t||0)/3+1,n=-.5*(t-1);this._loadMatrix([t,n,n,0,0,n,t,n,0,0,n,n,t,0,0,0,0,0,1,0],e)},r.prototype.desaturate=function(t){this.saturate(-1)},r.prototype.negative=function(t){this._loadMatrix([0,1,1,0,0,1,0,1,0,0,1,1,0,0,0,0,0,0,1,0],t)},r.prototype.sepia=function(t){this._loadMatrix([.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],t)},r.prototype.technicolor=function(t){this._loadMatrix([1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],t)},r.prototype.polaroid=function(t){this._loadMatrix([1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],t)},r.prototype.toBGR=function(t){this._loadMatrix([0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],t)},r.prototype.kodachrome=function(t){this._loadMatrix([1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],t)},r.prototype.browni=function(t){this._loadMatrix([.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],t)},r.prototype.vintage=function(t){this._loadMatrix([.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],t)},r.prototype.colorTone=function(t,e,n,i,r){var o=((n=n||16770432)>>16&255)/255,a=(n>>8&255)/255,n=(255&n)/255,s=((i=i||3375104)>>16&255)/255,l=(i>>8&255)/255,i=(255&i)/255;this._loadMatrix([.3,.59,.11,0,0,o,a,n,t=t||.2,0,s,l,i,e=e||.15,0,o-s,a-l,n-i,0,0],r)},r.prototype.night=function(t,e){this._loadMatrix([-2*(t=t||.1),-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0],e)},r.prototype.predator=function(t,e){this._loadMatrix([11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0],e)},r.prototype.lsd=function(t){this._loadMatrix([2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],t)},r.prototype.reset=function(){this._loadMatrix([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],!1)},Object.defineProperties(r.prototype,{matrix:{get:function(){return this.uniforms.m.value},set:function(t){this.uniforms.m.value=t}}})},{"../../core":440}],506:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float step;\n\nvoid main(void)\n{\n    vec4 color = texture2D(uSampler, vTextureCoord);\n\n    color = floor(color * step) / step;\n\n    gl_FragColor = color;\n}\n",{step:{type:"1f",value:5}})}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r,Object.defineProperties(r.prototype,{step:{get:function(){return this.uniforms.step.value},set:function(t){this.uniforms.step.value=t}}})},{"../../core":440}],507:[function(t,e,n){var i=t("../../core");function r(t,e,n){i.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying mediump vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec2 texelSize;\nuniform float matrix[9];\n\nvoid main(void)\n{\n   vec4 c11 = texture2D(uSampler, vTextureCoord - texelSize); // top left\n   vec4 c12 = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - texelSize.y)); // top center\n   vec4 c13 = texture2D(uSampler, vec2(vTextureCoord.x + texelSize.x, vTextureCoord.y - texelSize.y)); // top right\n\n   vec4 c21 = texture2D(uSampler, vec2(vTextureCoord.x - texelSize.x, vTextureCoord.y)); // mid left\n   vec4 c22 = texture2D(uSampler, vTextureCoord); // mid center\n   vec4 c23 = texture2D(uSampler, vec2(vTextureCoord.x + texelSize.x, vTextureCoord.y)); // mid right\n\n   vec4 c31 = texture2D(uSampler, vec2(vTextureCoord.x - texelSize.x, vTextureCoord.y + texelSize.y)); // bottom left\n   vec4 c32 = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + texelSize.y)); // bottom center\n   vec4 c33 = texture2D(uSampler, vTextureCoord + texelSize); // bottom right\n\n   gl_FragColor =\n       c11 * matrix[0] + c12 * matrix[1] + c13 * matrix[2] +\n       c21 * matrix[3] + c22 * matrix[4] + c23 * matrix[5] +\n       c31 * matrix[6] + c32 * matrix[7] + c33 * matrix[8];\n\n   gl_FragColor.a = c22.a;\n}\n",{matrix:{type:"1fv",value:new Float32Array(t)},texelSize:{type:"v2",value:{x:1/e,y:1/n}}})}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r,Object.defineProperties(r.prototype,{matrix:{get:function(){return this.uniforms.matrix.value},set:function(t){this.uniforms.matrix.value=new Float32Array(t)}},width:{get:function(){return 1/this.uniforms.texelSize.value.x},set:function(t){this.uniforms.texelSize.value.x=1/t}},height:{get:function(){return 1/this.uniforms.texelSize.value.y},set:function(t){this.uniforms.texelSize.value.y=1/t}}})},{"../../core":440}],508:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n    float lum = length(texture2D(uSampler, vTextureCoord.xy).rgb);\n\n    gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);\n\n    if (lum < 1.00)\n    {\n        if (mod(gl_FragCoord.x + gl_FragCoord.y, 10.0) == 0.0)\n        {\n            gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n        }\n    }\n\n    if (lum < 0.75)\n    {\n        if (mod(gl_FragCoord.x - gl_FragCoord.y, 10.0) == 0.0)\n        {\n            gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n        }\n    }\n\n    if (lum < 0.50)\n    {\n        if (mod(gl_FragCoord.x + gl_FragCoord.y - 5.0, 10.0) == 0.0)\n        {\n            gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n        }\n    }\n\n    if (lum < 0.3)\n    {\n        if (mod(gl_FragCoord.x - gl_FragCoord.y - 5.0, 10.0) == 0.0)\n        {\n            gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n        }\n    }\n}\n")}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r},{"../../core":440}],509:[function(t,e,n){var i=t("../../core");function r(t,e){var n=new i.Matrix;t.renderable=!1,i.AbstractFilter.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMapCoord;\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nvoid main(void)\n{\n   gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n   vTextureCoord = aTextureCoord;\n   vMapCoord = ( otherMatrix * vec3( aTextureCoord, 1.0)  ).xy;\n   vColor = vec4(aColor.rgb * aColor.a, aColor.a);\n}\n","precision mediump float;\n\nvarying vec2 vMapCoord;\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform vec2 scale;\n\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nvoid main(void)\n{\n   vec4 map =  texture2D(mapSampler, vMapCoord);\n\n   map -= 0.5;\n   map.xy *= scale;\n\n   gl_FragColor = texture2D(uSampler, vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y));\n}\n",{mapSampler:{type:"sampler2D",value:t.texture},otherMatrix:{type:"mat3",value:n.toArray(!0)},scale:{type:"v2",value:{x:1,y:1}}}),this.maskSprite=t,this.maskMatrix=n,this.scale=new i.Point(e=null==e?20:e,e)}r.prototype=Object.create(i.AbstractFilter.prototype),(e.exports=r.prototype.constructor=r).prototype.applyFilter=function(t,e,n){var i=t.filterManager,t=(i.calculateMappedMatrix(e.frame,this.maskSprite,this.maskMatrix),this.uniforms.otherMatrix.value=this.maskMatrix.toArray(!0),this.uniforms.scale.value.x=this.scale.x*(1/e.frame.width),this.uniforms.scale.value.y=this.scale.y*(1/e.frame.height),this.getShader(t));i.applyFilter(t,e,n)},Object.defineProperties(r.prototype,{map:{get:function(){return this.uniforms.mapSampler.value},set:function(t){this.uniforms.mapSampler.value=t}}})},{"../../core":440}],510:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform vec4 dimensions;\nuniform sampler2D uSampler;\n\nuniform float angle;\nuniform float scale;\n\nfloat pattern()\n{\n   float s = sin(angle), c = cos(angle);\n   vec2 tex = vTextureCoord * dimensions.xy;\n   vec2 point = vec2(\n       c * tex.x - s * tex.y,\n       s * tex.x + c * tex.y\n   ) * scale;\n   return (sin(point.x) * sin(point.y)) * 4.0;\n}\n\nvoid main()\n{\n   vec4 color = texture2D(uSampler, vTextureCoord);\n   float average = (color.r + color.g + color.b) / 3.0;\n   gl_FragColor = vec4(vec3(average * 10.0 - 5.0 + pattern()), color.a);\n}\n",{scale:{type:"1f",value:1},angle:{type:"1f",value:5},dimensions:{type:"4fv",value:[0,0,0,0]}})}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r,Object.defineProperties(r.prototype,{scale:{get:function(){return this.uniforms.scale.value},set:function(t){this.uniforms.scale.value=t}},angle:{get:function(){return this.uniforms.angle.value},set:function(t){this.uniforms.angle.value=t}}})},{"../../core":440}],511:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nuniform float strength;\nuniform vec2 offset;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying vec2 vBlurTexCoords[6];\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3((aVertexPosition+offset), 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n\n    vBlurTexCoords[ 0] = aTextureCoord + vec2(0.0, -0.012 * strength);\n    vBlurTexCoords[ 1] = aTextureCoord + vec2(0.0, -0.008 * strength);\n    vBlurTexCoords[ 2] = aTextureCoord + vec2(0.0, -0.004 * strength);\n    vBlurTexCoords[ 3] = aTextureCoord + vec2(0.0,  0.004 * strength);\n    vBlurTexCoords[ 4] = aTextureCoord + vec2(0.0,  0.008 * strength);\n    vBlurTexCoords[ 5] = aTextureCoord + vec2(0.0,  0.012 * strength);\n\n   vColor = vec4(aColor.rgb * aColor.a, aColor.a);\n}\n","precision lowp float;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vBlurTexCoords[6];\nvarying vec4 vColor;\n\nuniform vec3 color;\nuniform float alpha;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n    vec4 sum = vec4(0.0);\n\n    sum += texture2D(uSampler, vBlurTexCoords[ 0])*0.004431848411938341;\n    sum += texture2D(uSampler, vBlurTexCoords[ 1])*0.05399096651318985;\n    sum += texture2D(uSampler, vBlurTexCoords[ 2])*0.2419707245191454;\n    sum += texture2D(uSampler, vTextureCoord     )*0.3989422804014327;\n    sum += texture2D(uSampler, vBlurTexCoords[ 3])*0.2419707245191454;\n    sum += texture2D(uSampler, vBlurTexCoords[ 4])*0.05399096651318985;\n    sum += texture2D(uSampler, vBlurTexCoords[ 5])*0.004431848411938341;\n\n    gl_FragColor = vec4( color.rgb * sum.a * alpha, sum.a * alpha );\n}\n",{blur:{type:"1f",value:1/512},color:{type:"c",value:[0,0,0]},alpha:{type:"1f",value:.7},offset:{type:"2f",value:[5,5]},strength:{type:"1f",value:1}}),this.passes=1,this.strength=4}r.prototype=Object.create(i.AbstractFilter.prototype),(e.exports=r.prototype.constructor=r).prototype.applyFilter=function(t,e,n,i){var r=this.getShader(t);if(this.uniforms.strength.value=this.strength/4/this.passes*(e.frame.height/e.size.height),1===this.passes)t.filterManager.applyFilter(r,e,n,i);else{for(var o=t.filterManager.getRenderTarget(!0),a=e,s=o,l=0;l<this.passes-1;l++){t.filterManager.applyFilter(r,a,s,i);var c=s,s=a,a=c}t.filterManager.applyFilter(r,a,n,i),t.filterManager.returnRenderTarget(o)}},Object.defineProperties(r.prototype,{blur:{get:function(){return this.strength},set:function(t){this.padding=.5*t,this.strength=t}}})},{"../../core":440}],512:[function(t,e,n){var r=t("../../core"),i=t("../blur/BlurXFilter"),o=t("./BlurYTintFilter");function a(){r.AbstractFilter.call(this),this.blurXFilter=new i,this.blurYTintFilter=new o,this.defaultFilter=new r.AbstractFilter,this.padding=30,this._dirtyPosition=!0,this._angle=45*Math.PI/180,this._distance=10,this.alpha=.75,this.hideObject=!1,this.blendMode=r.BLEND_MODES.MULTIPLY}a.prototype=Object.create(r.AbstractFilter.prototype),(e.exports=a.prototype.constructor=a).prototype.applyFilter=function(t,e,n){var i=t.filterManager.getRenderTarget(!0);this._dirtyPosition&&(this._dirtyPosition=!1,this.blurYTintFilter.uniforms.offset.value[0]=Math.sin(this._angle)*this._distance,this.blurYTintFilter.uniforms.offset.value[1]=Math.cos(this._angle)*this._distance),this.blurXFilter.applyFilter(t,e,i),t.blendModeManager.setBlendMode(this.blendMode),this.blurYTintFilter.applyFilter(t,i,n),t.blendModeManager.setBlendMode(r.BLEND_MODES.NORMAL),this.hideObject||this.defaultFilter.applyFilter(t,e,n),t.filterManager.returnRenderTarget(i)},Object.defineProperties(a.prototype,{blur:{get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=this.blurYTintFilter.blur=t}},blurX:{get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=t}},blurY:{get:function(){return this.blurYTintFilter.blur},set:function(t){this.blurYTintFilter.blur=t}},color:{get:function(){return r.utils.rgb2hex(this.blurYTintFilter.uniforms.color.value)},set:function(t){this.blurYTintFilter.uniforms.color.value=r.utils.hex2rgb(t)}},alpha:{get:function(){return this.blurYTintFilter.uniforms.alpha.value},set:function(t){this.blurYTintFilter.uniforms.alpha.value=t}},distance:{get:function(){return this._distance},set:function(t){this._dirtyPosition=!0,this._distance=t}},angle:{get:function(){return this._angle},set:function(t){this._dirtyPosition=!0,this._angle=t}}})},{"../../core":440,"../blur/BlurXFilter":502,"./BlurYTintFilter":511}],513:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\nuniform float gray;\n\nvoid main(void)\n{\n   gl_FragColor = texture2D(uSampler, vTextureCoord);\n   gl_FragColor.rgb = mix(gl_FragColor.rgb, vec3(0.2126*gl_FragColor.r + 0.7152*gl_FragColor.g + 0.0722*gl_FragColor.b), gray);\n}\n",{gray:{type:"1f",value:1}})}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r,Object.defineProperties(r.prototype,{gray:{get:function(){return this.uniforms.gray.value},set:function(t){this.uniforms.gray.value=t}}})},{"../../core":440}],514:[function(t,e,n){e.exports={AsciiFilter:t("./ascii/AsciiFilter"),BloomFilter:t("./bloom/BloomFilter"),BlurFilter:t("./blur/BlurFilter"),BlurXFilter:t("./blur/BlurXFilter"),BlurYFilter:t("./blur/BlurYFilter"),BlurDirFilter:t("./blur/BlurDirFilter"),ColorMatrixFilter:t("./color/ColorMatrixFilter"),ColorStepFilter:t("./color/ColorStepFilter"),ConvolutionFilter:t("./convolution/ConvolutionFilter"),CrossHatchFilter:t("./crosshatch/CrossHatchFilter"),DisplacementFilter:t("./displacement/DisplacementFilter"),DotScreenFilter:t("./dot/DotScreenFilter"),GrayFilter:t("./gray/GrayFilter"),DropShadowFilter:t("./dropshadow/DropShadowFilter"),InvertFilter:t("./invert/InvertFilter"),NoiseFilter:t("./noise/NoiseFilter"),PixelateFilter:t("./pixelate/PixelateFilter"),RGBSplitFilter:t("./rgb/RGBSplitFilter"),ShockwaveFilter:t("./shockwave/ShockwaveFilter"),SepiaFilter:t("./sepia/SepiaFilter"),SmartBlurFilter:t("./blur/SmartBlurFilter"),TiltShiftFilter:t("./tiltshift/TiltShiftFilter"),TiltShiftXFilter:t("./tiltshift/TiltShiftXFilter"),TiltShiftYFilter:t("./tiltshift/TiltShiftYFilter"),TwistFilter:t("./twist/TwistFilter")}},{"./ascii/AsciiFilter":498,"./bloom/BloomFilter":499,"./blur/BlurDirFilter":500,"./blur/BlurFilter":501,"./blur/BlurXFilter":502,"./blur/BlurYFilter":503,"./blur/SmartBlurFilter":504,"./color/ColorMatrixFilter":505,"./color/ColorStepFilter":506,"./convolution/ConvolutionFilter":507,"./crosshatch/CrossHatchFilter":508,"./displacement/DisplacementFilter":509,"./dot/DotScreenFilter":510,"./dropshadow/DropShadowFilter":512,"./gray/GrayFilter":513,"./invert/InvertFilter":515,"./noise/NoiseFilter":516,"./pixelate/PixelateFilter":517,"./rgb/RGBSplitFilter":518,"./sepia/SepiaFilter":519,"./shockwave/ShockwaveFilter":520,"./tiltshift/TiltShiftFilter":522,"./tiltshift/TiltShiftXFilter":523,"./tiltshift/TiltShiftYFilter":524,"./twist/TwistFilter":525}],515:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform float invert;\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n    gl_FragColor = texture2D(uSampler, vTextureCoord);\n\n    gl_FragColor.rgb = mix( (vec3(1)-gl_FragColor.rgb) * gl_FragColor.a, gl_FragColor.rgb, 1.0 - invert);\n}\n",{invert:{type:"1f",value:1}})}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r,Object.defineProperties(r.prototype,{invert:{get:function(){return this.uniforms.invert.value},set:function(t){this.uniforms.invert.value=t}}})},{"../../core":440}],516:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float noise;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n    return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n    vec4 color = texture2D(uSampler, vTextureCoord);\n\n    float diff = (rand(vTextureCoord) - 0.5) * noise;\n\n    color.r += diff;\n    color.g += diff;\n    color.b += diff;\n\n    gl_FragColor = color;\n}\n",{noise:{type:"1f",value:.5}})}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r,Object.defineProperties(r.prototype,{noise:{get:function(){return this.uniforms.noise.value},set:function(t){this.uniforms.noise.value=t}}})},{"../../core":440}],517:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 dimensions;\nuniform vec2 pixelSize;\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n    vec2 coord = vTextureCoord;\n\n    vec2 size = dimensions.xy / pixelSize;\n\n    vec2 color = floor( ( vTextureCoord * size ) ) / size + pixelSize/dimensions.xy * 0.5;\n\n    gl_FragColor = texture2D(uSampler, color);\n}\n",{dimensions:{type:"4fv",value:new Float32Array([0,0,0,0])},pixelSize:{type:"v2",value:{x:10,y:10}}})}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r,Object.defineProperties(r.prototype,{size:{get:function(){return this.uniforms.pixelSize.value},set:function(t){this.uniforms.pixelSize.value=t}}})},{"../../core":440}],518:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 dimensions;\nuniform vec2 red;\nuniform vec2 green;\nuniform vec2 blue;\n\nvoid main(void)\n{\n   gl_FragColor.r = texture2D(uSampler, vTextureCoord + red/dimensions.xy).r;\n   gl_FragColor.g = texture2D(uSampler, vTextureCoord + green/dimensions.xy).g;\n   gl_FragColor.b = texture2D(uSampler, vTextureCoord + blue/dimensions.xy).b;\n   gl_FragColor.a = texture2D(uSampler, vTextureCoord).a;\n}\n",{red:{type:"v2",value:{x:20,y:20}},green:{type:"v2",value:{x:-20,y:20}},blue:{type:"v2",value:{x:20,y:-20}},dimensions:{type:"4fv",value:[0,0,0,0]}})}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r,Object.defineProperties(r.prototype,{red:{get:function(){return this.uniforms.red.value},set:function(t){this.uniforms.red.value=t}},green:{get:function(){return this.uniforms.green.value},set:function(t){this.uniforms.green.value=t}},blue:{get:function(){return this.uniforms.blue.value},set:function(t){this.uniforms.blue.value=t}}})},{"../../core":440}],519:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float sepia;\n\nconst mat3 sepiaMatrix = mat3(0.3588, 0.7044, 0.1368, 0.2990, 0.5870, 0.1140, 0.2392, 0.4696, 0.0912);\n\nvoid main(void)\n{\n   gl_FragColor = texture2D(uSampler, vTextureCoord);\n   gl_FragColor.rgb = mix( gl_FragColor.rgb, gl_FragColor.rgb * sepiaMatrix, sepia);\n}\n",{sepia:{type:"1f",value:1}})}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r,Object.defineProperties(r.prototype,{sepia:{get:function(){return this.uniforms.sepia.value},set:function(t){this.uniforms.sepia.value=t}}})},{"../../core":440}],520:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nuniform vec2 center;\nuniform vec3 params; // 10.0, 0.8, 0.1\nuniform float time;\n\nvoid main()\n{\n    vec2 uv = vTextureCoord;\n    vec2 texCoord = uv;\n\n    float dist = distance(uv, center);\n\n    if ( (dist <= (time + params.z)) && (dist >= (time - params.z)) )\n    {\n        float diff = (dist - time);\n        float powDiff = 1.0 - pow(abs(diff*params.x), params.y);\n\n        float diffTime = diff  * powDiff;\n        vec2 diffUV = normalize(uv - center);\n        texCoord = uv + (diffUV * diffTime);\n    }\n\n    gl_FragColor = texture2D(uSampler, texCoord);\n}\n",{center:{type:"v2",value:{x:.5,y:.5}},params:{type:"v3",value:{x:10,y:.8,z:.1}},time:{type:"1f",value:0}})}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r,Object.defineProperties(r.prototype,{center:{get:function(){return this.uniforms.center.value},set:function(t){this.uniforms.center.value=t}},params:{get:function(){return this.uniforms.params.value},set:function(t){this.uniforms.params.value=t}},time:{get:function(){return this.uniforms.time.value},set:function(t){this.uniforms.time.value=t}}})},{"../../core":440}],521:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float blur;\nuniform float gradientBlur;\nuniform vec2 start;\nuniform vec2 end;\nuniform vec2 delta;\nuniform vec2 texSize;\n\nfloat random(vec3 scale, float seed)\n{\n    return fract(sin(dot(gl_FragCoord.xyz + seed, scale)) * 43758.5453 + seed);\n}\n\nvoid main(void)\n{\n    vec4 color = vec4(0.0);\n    float total = 0.0;\n\n    float offset = random(vec3(12.9898, 78.233, 151.7182), 0.0);\n    vec2 normal = normalize(vec2(start.y - end.y, end.x - start.x));\n    float radius = smoothstep(0.0, 1.0, abs(dot(vTextureCoord * texSize - start, normal)) / gradientBlur) * blur;\n\n    for (float t = -30.0; t <= 30.0; t++)\n    {\n        float percent = (t + offset - 0.5) / 30.0;\n        float weight = 1.0 - abs(percent);\n        vec4 sample = texture2D(uSampler, vTextureCoord + delta / texSize * percent * radius);\n        sample.rgb *= sample.a;\n        color += sample * weight;\n        total += weight;\n    }\n\n    gl_FragColor = color / total;\n    gl_FragColor.rgb /= gl_FragColor.a + 0.00001;\n}\n",{blur:{type:"1f",value:100},gradientBlur:{type:"1f",value:600},start:{type:"v2",value:{x:0,y:window.innerHeight/2}},end:{type:"v2",value:{x:600,y:window.innerHeight/2}},delta:{type:"v2",value:{x:30,y:30}},texSize:{type:"v2",value:{x:window.innerWidth,y:window.innerHeight}}}),this.updateDelta()}r.prototype=Object.create(i.AbstractFilter.prototype),(e.exports=r.prototype.constructor=r).prototype.updateDelta=function(){this.uniforms.delta.value.x=0,this.uniforms.delta.value.y=0},Object.defineProperties(r.prototype,{blur:{get:function(){return this.uniforms.blur.value},set:function(t){this.uniforms.blur.value=t}},gradientBlur:{get:function(){return this.uniforms.gradientBlur.value},set:function(t){this.uniforms.gradientBlur.value=t}},start:{get:function(){return this.uniforms.start.value},set:function(t){this.uniforms.start.value=t,this.updateDelta()}},end:{get:function(){return this.uniforms.end.value},set:function(t){this.uniforms.end.value=t,this.updateDelta()}}})},{"../../core":440}],522:[function(t,e,n){var i=t("../../core"),r=t("./TiltShiftXFilter"),o=t("./TiltShiftYFilter");function a(){i.AbstractFilter.call(this),this.tiltShiftXFilter=new r,this.tiltShiftYFilter=new o}a.prototype=Object.create(i.AbstractFilter.prototype),(e.exports=a.prototype.constructor=a).prototype.applyFilter=function(t,e,n){var i=t.filterManager.getRenderTarget(!0);this.tiltShiftXFilter.applyFilter(t,e,i),this.tiltShiftYFilter.applyFilter(t,i,n),t.filterManager.returnRenderTarget(i)},Object.defineProperties(a.prototype,{blur:{get:function(){return this.tiltShiftXFilter.blur},set:function(t){this.tiltShiftXFilter.blur=this.tiltShiftYFilter.blur=t}},gradientBlur:{get:function(){return this.tiltShiftXFilter.gradientBlur},set:function(t){this.tiltShiftXFilter.gradientBlur=this.tiltShiftYFilter.gradientBlur=t}},start:{get:function(){return this.tiltShiftXFilter.start},set:function(t){this.tiltShiftXFilter.start=this.tiltShiftYFilter.start=t}},end:{get:function(){return this.tiltShiftXFilter.end},set:function(t){this.tiltShiftXFilter.end=this.tiltShiftYFilter.end=t}}})},{"../../core":440,"./TiltShiftXFilter":523,"./TiltShiftYFilter":524}],523:[function(t,e,n){var i=t("./TiltShiftAxisFilter");function r(){i.call(this)}r.prototype=Object.create(i.prototype),(e.exports=r.prototype.constructor=r).prototype.updateDelta=function(){var t=this.uniforms.end.value.x-this.uniforms.start.value.x,e=this.uniforms.end.value.y-this.uniforms.start.value.y,n=Math.sqrt(t*t+e*e);this.uniforms.delta.value.x=t/n,this.uniforms.delta.value.y=e/n}},{"./TiltShiftAxisFilter":521}],524:[function(t,e,n){var i=t("./TiltShiftAxisFilter");function r(){i.call(this)}r.prototype=Object.create(i.prototype),(e.exports=r.prototype.constructor=r).prototype.updateDelta=function(){var t=this.uniforms.end.value.x-this.uniforms.start.value.x,e=this.uniforms.end.value.y-this.uniforms.start.value.y,n=Math.sqrt(t*t+e*e);this.uniforms.delta.value.x=-e/n,this.uniforms.delta.value.y=t/n}},{"./TiltShiftAxisFilter":521}],525:[function(t,e,n){var i=t("../../core");function r(){i.AbstractFilter.call(this,null,"precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float radius;\nuniform float angle;\nuniform vec2 offset;\n\nvoid main(void)\n{\n   vec2 coord = vTextureCoord - offset;\n   float dist = length(coord);\n\n   if (dist < radius)\n   {\n       float ratio = (radius - dist) / radius;\n       float angleMod = ratio * ratio * angle;\n       float s = sin(angleMod);\n       float c = cos(angleMod);\n       coord = vec2(coord.x * c - coord.y * s, coord.x * s + coord.y * c);\n   }\n\n   gl_FragColor = texture2D(uSampler, coord+offset);\n}\n",{radius:{type:"1f",value:.5},angle:{type:"1f",value:5},offset:{type:"v2",value:{x:.5,y:.5}}})}r.prototype=Object.create(i.AbstractFilter.prototype),e.exports=r.prototype.constructor=r,Object.defineProperties(r.prototype,{offset:{get:function(){return this.uniforms.offset.value},set:function(t){this.uniforms.offset.value=t}},radius:{get:function(){return this.uniforms.radius.value},set:function(t){this.uniforms.radius.value=t}},angle:{get:function(){return this.uniforms.angle.value},set:function(t){this.uniforms.angle.value=t}}})},{"../../core":440}],526:[function(n,i,t){!function(e){!function(){n("./polyfill");var t=i.exports=n("./core");t.extras=n("./extras"),t.filters=n("./filters"),t.interaction=n("./interaction"),t.loaders=n("./loaders"),t.mesh=n("./mesh"),t.accessibility=n("./accessibility"),t.loader=new t.loaders.Loader,Object.assign(t,n("./deprecation")),e.PIXI=t}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./accessibility":432,"./core":440,"./deprecation":490,"./extras":497,"./filters":514,"./interaction":529,"./loaders":532,"./mesh":539,"./polyfill":544}],527:[function(t,e,n){var i=t("../core");function r(){this.global=new i.Point,this.target=null,this.originalEvent=null}(e.exports=r.prototype.constructor=r).prototype.getLocalPosition=function(t,e,n){return t.worldTransform.applyInverse(n||this.global,e)}},{"../core":440}],528:[function(t,e,n){var i=t("../core"),r=t("./InteractionData");function o(t,e){e=e||{},this.renderer=t,this.autoPreventDefault=void 0===e.autoPreventDefault||e.autoPreventDefault,this.interactionFrequency=e.interactionFrequency||10,this.mouse=new r,this.eventData={stopped:!1,target:null,type:null,data:this.mouse,stopPropagation:function(){this.stopped=!0}},this.interactiveDataPool=[],this.interactionDOMElement=null,this.moveWhenInside=!1,this.eventsAdded=!1,this.onMouseUp=this.onMouseUp.bind(this),this.processMouseUp=this.processMouseUp.bind(this),this.onMouseDown=this.onMouseDown.bind(this),this.processMouseDown=this.processMouseDown.bind(this),this.onMouseMove=this.onMouseMove.bind(this),this.processMouseMove=this.processMouseMove.bind(this),this.onMouseOut=this.onMouseOut.bind(this),this.processMouseOverOut=this.processMouseOverOut.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.processTouchStart=this.processTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.processTouchEnd=this.processTouchEnd.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.processTouchMove=this.processTouchMove.bind(this),this.last=0,this.currentCursorStyle="inherit",this._tempPoint=new i.Point,this.resolution=1,this.setTargetElement(this.renderer.view,this.renderer.resolution)}Object.assign(i.DisplayObject.prototype,t("./interactiveTarget")),(e.exports=o.prototype.constructor=o).prototype.setTargetElement=function(t,e){this.removeEvents(),this.interactionDOMElement=t,this.resolution=e||1,this.addEvents()},o.prototype.addEvents=function(){this.interactionDOMElement&&(i.ticker.shared.add(this.update,this),window.navigator.msPointerEnabled&&(this.interactionDOMElement.style["-ms-content-zooming"]="none",this.interactionDOMElement.style["-ms-touch-action"]="none"),window.document.addEventListener("mousemove",this.onMouseMove,!0),this.interactionDOMElement.addEventListener("mousedown",this.onMouseDown,!0),this.interactionDOMElement.addEventListener("mouseout",this.onMouseOut,!0),this.interactionDOMElement.addEventListener("touchstart",this.onTouchStart,!0),this.interactionDOMElement.addEventListener("touchend",this.onTouchEnd,!0),this.interactionDOMElement.addEventListener("touchmove",this.onTouchMove,!0),window.addEventListener("mouseup",this.onMouseUp,!0),this.eventsAdded=!0)},o.prototype.removeEvents=function(){this.interactionDOMElement&&(i.ticker.shared.remove(this.update),window.navigator.msPointerEnabled&&(this.interactionDOMElement.style["-ms-content-zooming"]="",this.interactionDOMElement.style["-ms-touch-action"]=""),window.document.removeEventListener("mousemove",this.onMouseMove,!0),this.interactionDOMElement.removeEventListener("mousedown",this.onMouseDown,!0),this.interactionDOMElement.removeEventListener("mouseout",this.onMouseOut,!0),this.interactionDOMElement.removeEventListener("touchstart",this.onTouchStart,!0),this.interactionDOMElement.removeEventListener("touchend",this.onTouchEnd,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onTouchMove,!0),this.interactionDOMElement=null,window.removeEventListener("mouseup",this.onMouseUp,!0),this.eventsAdded=!1)},o.prototype.update=function(t){this._deltaTime+=t,this._deltaTime<this.interactionFrequency||(this._deltaTime=0,this.interactionDOMElement&&(this.didMove?this.didMove=!1:(this.cursor="inherit",this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseOverOut,!0),this.currentCursorStyle!==this.cursor&&(this.currentCursorStyle=this.cursor,this.interactionDOMElement.style.cursor=this.cursor))))},o.prototype.dispatchEvent=function(t,e,n){n.stopped||(n.target=t,n.type=e,t.emit(e,n),t[e]&&t[e](n))},o.prototype.mapPositionToPoint=function(t,e,n){var i=this.interactionDOMElement.getBoundingClientRect();t.x=(e-i.left)*(this.interactionDOMElement.width/i.width)/this.resolution,t.y=(n-i.top)*(this.interactionDOMElement.height/i.height)/this.resolution},o.prototype.processInteractive=function(t,e,n,i,r){if(!e||!e.visible)return!1;var o=!1,a=r=e.interactive||r;if(e.hitArea&&(a=!1),e.interactiveChildren)for(var s=e.children,l=s.length-1;0<=l;l--){var c=s[l];this.processInteractive(t,c,n,i,a)&&c.parent&&(i=a=!(o=!0))}return r&&(i&&!o&&(e.hitArea?(e.worldTransform.applyInverse(t,this._tempPoint),o=e.hitArea.contains(this._tempPoint.x,this._tempPoint.y)):e.containsPoint&&(o=e.containsPoint(t))),e.interactive)&&n(e,o),o},o.prototype.onMouseDown=function(t){this.mouse.originalEvent=t,this.eventData.data=this.mouse,this.eventData.stopped=!1,this.mapPositionToPoint(this.mouse.global,t.clientX,t.clientY),this.autoPreventDefault&&this.mouse.originalEvent.preventDefault(),this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseDown,!0)},o.prototype.processMouseDown=function(t,e){var n=this.mouse.originalEvent,n=2===n.button||3===n.which;e&&(t[n?"_isRightDown":"_isLeftDown"]=!0,this.dispatchEvent(t,n?"rightdown":"mousedown",this.eventData))},o.prototype.onMouseUp=function(t){this.mouse.originalEvent=t,this.eventData.data=this.mouse,this.eventData.stopped=!1,this.mapPositionToPoint(this.mouse.global,t.clientX,t.clientY),this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseUp,!0)},o.prototype.processMouseUp=function(t,e){var n=this.mouse.originalEvent,n=2===n.button||3===n.which,i=n?"_isRightDown":"_isLeftDown";e?(this.dispatchEvent(t,n?"rightup":"mouseup",this.eventData),t[i]&&(t[i]=!1,this.dispatchEvent(t,n?"rightclick":"click",this.eventData))):t[i]&&(t[i]=!1,this.dispatchEvent(t,n?"rightupoutside":"mouseupoutside",this.eventData))},o.prototype.onMouseMove=function(t){this.mouse.originalEvent=t,this.eventData.data=this.mouse,this.eventData.stopped=!1,this.mapPositionToPoint(this.mouse.global,t.clientX,t.clientY),this.didMove=!0,this.cursor="inherit",this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseMove,!0),this.currentCursorStyle!==this.cursor&&(this.currentCursorStyle=this.cursor,this.interactionDOMElement.style.cursor=this.cursor)},o.prototype.processMouseMove=function(t,e){this.processMouseOverOut(t,e),this.moveWhenInside&&!e||this.dispatchEvent(t,"mousemove",this.eventData)},o.prototype.onMouseOut=function(t){this.mouse.originalEvent=t,this.eventData.stopped=!1,this.mapPositionToPoint(this.mouse.global,t.clientX,t.clientY),this.interactionDOMElement.style.cursor="inherit",this.mapPositionToPoint(this.mouse.global,t.clientX,t.clientY),this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseOverOut,!1)},o.prototype.processMouseOverOut=function(t,e){e?(t._over||(t._over=!0,this.dispatchEvent(t,"mouseover",this.eventData)),t.buttonMode&&(this.cursor=t.defaultCursor)):t._over&&(t._over=!1,this.dispatchEvent(t,"mouseout",this.eventData))},o.prototype.onTouchStart=function(t){this.autoPreventDefault&&t.preventDefault();for(var e=t.changedTouches,n=e.length,i=0;i<n;i++){var r=e[i],r=this.getTouchData(r);r.originalEvent=t,this.eventData.data=r,this.eventData.stopped=!1,this.processInteractive(r.global,this.renderer._lastObjectRendered,this.processTouchStart,!0),this.returnTouchData(r)}},o.prototype.processTouchStart=function(t,e){e&&(t._touchDown=!0,this.dispatchEvent(t,"touchstart",this.eventData))},o.prototype.onTouchEnd=function(t){this.autoPreventDefault&&t.preventDefault();for(var e=t.changedTouches,n=e.length,i=0;i<n;i++){var r=e[i],r=this.getTouchData(r);r.originalEvent=t,this.eventData.data=r,this.eventData.stopped=!1,this.processInteractive(r.global,this.renderer._lastObjectRendered,this.processTouchEnd,!0),this.returnTouchData(r)}},o.prototype.processTouchEnd=function(t,e){e?(this.dispatchEvent(t,"touchend",this.eventData),t._touchDown&&(t._touchDown=!1,this.dispatchEvent(t,"tap",this.eventData))):t._touchDown&&(t._touchDown=!1,this.dispatchEvent(t,"touchendoutside",this.eventData))},o.prototype.onTouchMove=function(t){this.autoPreventDefault&&t.preventDefault();for(var e=t.changedTouches,n=e.length,i=0;i<n;i++){var r=e[i],r=this.getTouchData(r);r.originalEvent=t,this.eventData.data=r,this.eventData.stopped=!1,this.processInteractive(r.global,this.renderer._lastObjectRendered,this.processTouchMove,this.moveWhenInside),this.returnTouchData(r)}},o.prototype.processTouchMove=function(t,e){this.moveWhenInside&&!e||this.dispatchEvent(t,"touchmove",this.eventData)},o.prototype.getTouchData=function(t){var e=this.interactiveDataPool.pop();return(e=e||new r).identifier=t.identifier,this.mapPositionToPoint(e.global,t.clientX,t.clientY),navigator.isCocoonJS&&(e.global.x=e.global.x/this.resolution,e.global.y=e.global.y/this.resolution),t.globalX=e.global.x,t.globalY=e.global.y,e},o.prototype.returnTouchData=function(t){this.interactiveDataPool.push(t)},o.prototype.destroy=function(){this.removeEvents(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactiveDataPool=null,this.interactionDOMElement=null,this.onMouseUp=null,this.processMouseUp=null,this.onMouseDown=null,this.processMouseDown=null,this.onMouseMove=null,this.processMouseMove=null,this.onMouseOut=null,this.processMouseOverOut=null,this.onTouchStart=null,this.processTouchStart=null,this.onTouchEnd=null,this.processTouchEnd=null,this.onTouchMove=null,this.processTouchMove=null,this._tempPoint=null},i.WebGLRenderer.registerPlugin("interaction",o),i.CanvasRenderer.registerPlugin("interaction",o)},{"../core":440,"./InteractionData":527,"./interactiveTarget":530}],529:[function(t,e,n){e.exports={InteractionData:t("./InteractionData"),InteractionManager:t("./InteractionManager"),interactiveTarget:t("./interactiveTarget")}},{"./InteractionData":527,"./InteractionManager":528,"./interactiveTarget":530}],530:[function(t,e,n){e.exports={interactive:!1,buttonMode:!1,interactiveChildren:!0,defaultCursor:"pointer",_over:!1,_touchDown:!1}},{}],531:[function(t,e,n){var r=t("resource-loader").Resource,p=t("../core"),f=t("../extras"),o=t("path");function a(t,e){for(var n={},i=t.data.getElementsByTagName("info")[0],r=t.data.getElementsByTagName("common")[0],o=(n.font=i.getAttribute("face"),n.size=parseInt(i.getAttribute("size"),10),n.lineHeight=parseInt(r.getAttribute("lineHeight"),10),n.chars={},t.data.getElementsByTagName("char")),a=0;a<o.length;a++){var s=parseInt(o[a].getAttribute("id"),10),l=new p.Rectangle(parseInt(o[a].getAttribute("x"),10)+e.frame.x,parseInt(o[a].getAttribute("y"),10)+e.frame.y,parseInt(o[a].getAttribute("width"),10),parseInt(o[a].getAttribute("height"),10));n.chars[s]={xOffset:parseInt(o[a].getAttribute("xoffset"),10),yOffset:parseInt(o[a].getAttribute("yoffset"),10),xAdvance:parseInt(o[a].getAttribute("xadvance"),10),kerning:{},texture:new p.Texture(e.baseTexture,l)}}for(var c=t.data.getElementsByTagName("kerning"),a=0;a<c.length;a++){var u=parseInt(c[a].getAttribute("first"),10),h=parseInt(c[a].getAttribute("second"),10),d=parseInt(c[a].getAttribute("amount"),10);n.chars[h]&&(n.chars[h].kerning[u]=d)}t.bitmapFont=n,f.BitmapText.fonts[n.font]=n}e.exports=function(){return function(e,n){var t,i;return!e.data||!e.isXml||0===e.data.getElementsByTagName("page").length||0===e.data.getElementsByTagName("info").length||null===e.data.getElementsByTagName("info")[0].getAttribute("face")?n():("."===(t=o.dirname(e.url))&&(t=""),this.baseUrl&&t&&("/"===this.baseUrl.charAt(this.baseUrl.length-1)&&(t+="/"),t=t.replace(this.baseUrl,"")),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=t+e.data.getElementsByTagName("page")[0].getAttribute("file"),void(p.utils.TextureCache[t]?(a(e,p.utils.TextureCache[t]),n()):(i={crossOrigin:e.crossOrigin,loadType:r.LOAD_TYPE.IMAGE,metadata:e.metadata.imageMetadata},this.add(e.name+"_image",t,i,function(t){a(e,t.texture),n()}))))}}},{"../core":440,"../extras":497,path:429,"resource-loader":570}],532:[function(t,e,n){e.exports={Loader:t("./loader"),bitmapFontParser:t("./bitmapFontParser"),spritesheetParser:t("./spritesheetParser"),textureParser:t("./textureParser"),Resource:t("resource-loader").Resource}},{"./bitmapFontParser":531,"./loader":533,"./spritesheetParser":534,"./textureParser":535,"resource-loader":570}],533:[function(t,e,n){var i=t("resource-loader"),r=t("./textureParser"),o=t("./spritesheetParser"),t=t("./bitmapFontParser");function a(t,e){i.call(this,t,e);for(var n=0;n<a._pixiMiddleware.length;++n)this.use(a._pixiMiddleware[n]())}a.prototype=Object.create(i.prototype),(e.exports=a.prototype.constructor=a)._pixiMiddleware=[i.middleware.parsing.blob,r,o,t],a.addPixiMiddleware=function(t){a._pixiMiddleware.push(t)};e=i.Resource;e.setExtensionXhrType("fnt",e.XHR_RESPONSE_TYPE.DOCUMENT)},{"./bitmapFontParser":531,"./spritesheetParser":534,"./textureParser":535,"resource-loader":570}],534:[function(t,e,n){var r=t("resource-loader").Resource,o=t("path"),d=t("../core"),a=t("async");e.exports=function(){return function(h,t){var e=h.name+"_image";if(!h.data||!h.isJson||!h.data.frames||this.resources[e])return t();var n={crossOrigin:h.crossOrigin,loadType:r.LOAD_TYPE.IMAGE,metadata:h.metadata.imageMetadata},i=o.dirname(h.url.replace(this.baseUrl,""));this.add(e,i+"/"+h.data.meta.image,n,function(s){h.textures={};var l=h.data.frames,c=Object.keys(l),u=d.utils.getResolutionOfUrl(h.url),e=0;function n(t,e){for(var n=t;n-t<e&&n<c.length;){var i,r,o=l[c[n]],a=o.frame;a&&(i=r=null,r=o.rotated?new d.Rectangle(a.x,a.y,a.h,a.w):new d.Rectangle(a.x,a.y,a.w,a.h),o.trimmed&&(i=new d.Rectangle(o.spriteSourceSize.x/u,o.spriteSourceSize.y/u,o.sourceSize.w/u,o.sourceSize.h/u)),o.rotated&&(a=r.width,r.width=r.height,r.height=a),r.x/=u,r.y/=u,r.width/=u,r.height/=u,h.textures[c[n]]=new d.Texture(s.texture.baseTexture,r,r.clone(),i,o.rotated),d.utils.TextureCache[c[n]]=h.textures[c[n]]),n++}}c.length<=1e3?(n(0,1e3),t()):a.whilst(function(){return 1e3*e<c.length},function(t){n(1e3*e,1e3),e++,setTimeout(t,0)},t)})}}},{"../core":440,async:20,path:429,"resource-loader":570}],535:[function(t,e,n){var i=t("../core");e.exports=function(){return function(t,e){var n;t.data&&t.isImage&&((n=new i.BaseTexture(t.data,null,i.utils.getResolutionOfUrl(t.url))).imageUrl=t.url,t.texture=new i.Texture(n),i.utils.BaseTextureCache[t.url]=n,i.utils.TextureCache[t.url]=t.texture),e()}}},{"../core":440}],536:[function(t,e,n){var v=t("../core"),c=new v.Point,u=new v.Polygon;function h(t,e,n,i,r){v.Container.call(this),this._texture=null,this.uvs=n||new Float32Array([0,0,1,0,1,1,0,1]),this.vertices=e||new Float32Array([0,0,100,0,100,100,0,100]),this.indices=i||new Uint16Array([0,1,3,2]),this.dirty=!0,this.blendMode=v.BLEND_MODES.NORMAL,this.canvasPadding=0,this.drawMode=r||h.DRAW_MODES.TRIANGLE_MESH,this.texture=t,this.shader=null}h.prototype=Object.create(v.Container.prototype),e.exports=h.prototype.constructor=h,Object.defineProperties(h.prototype,{texture:{get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture=t)&&(t.baseTexture.hasLoaded?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this))}}}),h.prototype._renderWebGL=function(t){t.setObjectRenderer(t.plugins.mesh),t.plugins.mesh.render(this)},h.prototype._renderCanvas=function(t){var e=t.context,n=this.worldTransform,i=t.resolution;t.roundPixels?e.setTransform(n.a*i,n.b*i,n.c*i,n.d*i,n.tx*i|0,n.ty*i|0):e.setTransform(n.a*i,n.b*i,n.c*i,n.d*i,n.tx*i,n.ty*i),this.drawMode===h.DRAW_MODES.TRIANGLE_MESH?this._renderCanvasTriangleMesh(e):this._renderCanvasTriangles(e)},h.prototype._renderCanvasTriangleMesh=function(t){for(var e=this.vertices,n=this.uvs,i=e.length/2,r=0;r<i-2;r++){var o=2*r;this._renderCanvasDrawTriangle(t,e,n,o,2+o,4+o)}},h.prototype._renderCanvasTriangles=function(t){for(var e=this.vertices,n=this.uvs,i=this.indices,r=i.length,o=0;o<r;o+=3){var a=2*i[o],s=2*i[o+1],l=2*i[o+2];this._renderCanvasDrawTriangle(t,e,n,a,s,l)}},h.prototype._renderCanvasDrawTriangle=function(t,e,n,i,r,o){var a,s,l,c,u,h=this._texture.baseTexture,d=h.source,p=h.width,f=h.height,m=e[i],g=e[r],v=e[o],y=e[i+1],_=e[r+1],e=e[o+1],b=n[i]*h.width,x=n[r]*h.width,w=n[o]*h.width,i=n[i+1]*h.height,r=n[r+1]*h.height,n=n[o+1]*h.height,T=(0<this.canvasPadding&&(o=this.canvasPadding/this.worldTransform.a,a=this.canvasPadding/this.worldTransform.d,c=y-(s=(y+_+e)/3),m=(T=(m+g+v)/3)+(l=m-T)/(u=Math.sqrt(l*l+c*c))*(u+o),y=s+c/u*(u+a),c=_-s,g=T+(l=g-T)/(u=Math.sqrt(l*l+c*c))*(u+o),_=s+c/u*(u+a),c=e-s,v=T+(l=v-T)/(u=Math.sqrt(l*l+c*c))*(u+o),e=s+c/u*(u+a)),t.save(),t.beginPath(),t.moveTo(m,y),t.lineTo(g,_),t.lineTo(v,e),t.closePath(),t.clip(),b*r+i*w+x*n-r*w-i*x-b*n);t.transform((m*r+i*v+g*n-r*v-i*g-m*n)/T,(y*r+i*e+_*n-r*e-i*_-y*n)/T,(b*g+m*w+x*v-g*w-m*x-b*v)/T,(b*_+y*w+x*e-_*w-y*x-b*e)/T,(b*r*v+i*g*w+m*x*n-m*r*w-i*x*v-b*g*n)/T,(b*r*e+i*_*w+y*x*n-y*r*w-i*x*e-b*_*n)/T),t.drawImage(d,0,0,p*h.resolution,f*h.resolution,0,0,p,f),t.restore()},h.prototype.renderMeshFlat=function(t){var e=this.context,n=t.vertices,i=n.length/2;e.beginPath();for(var r=1;r<i-2;r++){var o=2*r,a=n[o],s=n[2+o],l=n[4+o],c=n[1+o],u=n[3+o],o=n[5+o];e.moveTo(a,c),e.lineTo(s,u),e.lineTo(l,o)}e.fillStyle="#FF0000",e.fill(),e.closePath()},h.prototype._onTextureUpdate=function(){this.updateFrame=!0},h.prototype.getBounds=function(t){if(!this._currentBounds){for(var t=t||this.worldTransform,e=t.a,n=t.b,i=t.c,r=t.d,o=t.tx,a=t.ty,s=-1/0,l=-1/0,c=1/0,u=1/0,h=this.vertices,d=0,p=h.length;d<p;d+=2)var f=h[d],m=h[d+1],g=e*f+i*m+o,m=r*m+n*f+a,c=g<c?g:c,u=m<u?m:u,s=s<g?g:s,l=l<m?m:l;if(c===-1/0||l===1/0)return v.Rectangle.EMPTY;t=this._bounds;t.x=c,t.width=s-c,t.y=u,t.height=l-u,this._currentBounds=t}return this._currentBounds},h.prototype.containsPoint=function(t){if(this.getBounds().contains(t.x,t.y)){this.worldTransform.applyInverse(t,c);var e=this.vertices,n=u.points;if(this.drawMode===h.DRAW_MODES.TRIANGLES)for(var i=this.indices,r=this.indices.length,o=0;o<r;o+=3){var a=2*i[o],s=2*i[o+1],l=2*i[o+2];if(n[0]=e[a],n[1]=e[1+a],n[2]=e[s],n[3]=e[1+s],n[4]=e[l],n[5]=e[1+l],u.contains(c.x,c.y))return!0}else for(r=e.length,o=0;o<r;o+=6)if(n[0]=e[o],n[1]=e[o+1],n[2]=e[o+2],n[3]=e[o+3],n[4]=e[o+4],n[5]=e[o+5],u.contains(c.x,c.y))return!0}return!1},h.DRAW_MODES={TRIANGLE_MESH:0,TRIANGLES:1}},{"../core":440}],537:[function(t,e,n){var i=t("./Mesh");function r(t,e,n){i.call(this,t),this._ready=!0,this.segmentsX=e||10,this.segmentsY=n||10,this.drawMode=i.DRAW_MODES.TRIANGLES,this.refresh()}r.prototype=Object.create(i.prototype),(e.exports=r.prototype.constructor=r).prototype.refresh=function(){for(var t=this.segmentsX*this.segmentsY,e=[],n=[],i=[],r=this.texture,o=this.segmentsX-1,a=this.segmentsY-1,s=0,l=r.width/o,c=r.height/a,s=0;s<t;s++){var u=s%this.segmentsX,h=s/this.segmentsX|0;e.push(u*l,h*c),n.push(r._uvs.x0+(r._uvs.x1-r._uvs.x0)*(u/(this.segmentsX-1)),r._uvs.y0+(r._uvs.y3-r._uvs.y0)*(h/(this.segmentsY-1)))}var d=o*a;for(s=0;s<d;s++){var p=s%o,f=s/o|0,m=f*this.segmentsX+p,g=f*this.segmentsX+p+1,v=(1+f)*this.segmentsX+p,f=(1+f)*this.segmentsX+p+1;i.push(m,g,v),i.push(g,f,v)}this.vertices=new Float32Array(e),this.uvs=new Float32Array(n),this.colors=new Float32Array([]),this.indices=new Uint16Array(i)},r.prototype._onTextureUpdate=function(){i.prototype._onTextureUpdate.call(this),this._ready&&this.refresh()}},{"./Mesh":536}],538:[function(t,e,n){var i=t("./Mesh"),h=t("../core");function r(t,e){i.call(this,t),this.points=e,this.vertices=new Float32Array(4*e.length),this.uvs=new Float32Array(4*e.length),this.colors=new Float32Array(2*e.length),this.indices=new Uint16Array(2*e.length),this._ready=!0,this.refresh()}r.prototype=Object.create(i.prototype),(e.exports=r.prototype.constructor=r).prototype.refresh=function(){var t=this.points;if(!(t.length<1)&&this._texture._uvs){for(var e,n,i=this.uvs,r=this.indices,o=this.colors,a=this._texture._uvs,s=new h.Point(a.x0,a.y0),l=new h.Point(a.x2-a.x0,a.y2-a.y0),c=(i[0]=0+s.x,i[1]=0+s.y,i[2]=0+s.x,i[3]=+l.y+s.y,o[0]=1,o[1]=1,r[0]=0,r[1]=1,t.length),u=1;u<c;u++)t[u],i[e=4*u]=(n=u/(c-1))*l.x+s.x,i[1+e]=0+s.y,i[2+e]=n*l.x+s.x,i[3+e]=+l.y+s.y,o[e=2*u]=1,o[1+e]=1,r[e=2*u]=e,r[1+e]=1+e;this.dirty=!0}},r.prototype._onTextureUpdate=function(){i.prototype._onTextureUpdate.call(this),this._ready&&this.refresh()},r.prototype.updateTransform=function(){var t=this.points;if(!(t.length<1)){for(var e,n,i,r,o=t[0],a=0,s=0,l=this.vertices,c=t.length,u=0;u<c;u++)e=t[u],n=4*u,s=-((i=u<t.length-1?t[u+1]:e).x-o.x),a=(a=i.y-o.y)/(i=Math.sqrt(a*a+s*s))*(r=this._texture.height/2),s=s/i*r,l[n]=e.x+a,l[1+n]=e.y+s,l[2+n]=e.x-a,l[3+n]=e.y-s,o=e;this.containerUpdateTransform()}}},{"../core":440,"./Mesh":536}],539:[function(t,e,n){e.exports={Mesh:t("./Mesh"),Plane:t("./Plane"),Rope:t("./Rope"),MeshRenderer:t("./webgl/MeshRenderer"),MeshShader:t("./webgl/MeshShader")}},{"./Mesh":536,"./Plane":537,"./Rope":538,"./webgl/MeshRenderer":540,"./webgl/MeshShader":541}],540:[function(t,e,n){var i=t("../../core"),a=t("../Mesh");function r(t){i.ObjectRenderer.call(this,t),this.indices=new Uint16Array(15e3);for(var e=0,n=0;e<15e3;e+=6,n+=4)this.indices[e+0]=n+0,this.indices[e+1]=n+1,this.indices[e+2]=n+2,this.indices[e+3]=n+0,this.indices[e+4]=n+2,this.indices[e+5]=n+3;this.currentShader=null}r.prototype=Object.create(i.ObjectRenderer.prototype),e.exports=r.prototype.constructor=r,i.WebGLRenderer.registerPlugin("mesh",r),r.prototype.onContextChange=function(){},r.prototype.render=function(t){t._vertexBuffer||this._initWebGL(t);var e=this.renderer,n=e.gl,i=t._texture.baseTexture,r=t.shader,o=t.drawMode===a.DRAW_MODES.TRIANGLE_MESH?n.TRIANGLE_STRIP:n.TRIANGLES;e.blendModeManager.setBlendMode(t.blendMode),r=r?r.shaders[n.id]||r.getShader(e):e.shaderManager.plugins.meshShader,this.renderer.shaderManager.setShader(r),r.uniforms.translationMatrix.value=t.worldTransform.toArray(!0),r.uniforms.projectionMatrix.value=e.currentRenderTarget.projectionMatrix.toArray(!0),r.uniforms.alpha.value=t.worldAlpha,r.syncUniforms(),t.dirty?(t.dirty=!1,n.bindBuffer(n.ARRAY_BUFFER,t._vertexBuffer),n.bufferData(n.ARRAY_BUFFER,t.vertices,n.STATIC_DRAW),n.vertexAttribPointer(r.attributes.aVertexPosition,2,n.FLOAT,!1,0,0),n.bindBuffer(n.ARRAY_BUFFER,t._uvBuffer),n.bufferData(n.ARRAY_BUFFER,t.uvs,n.STATIC_DRAW),n.vertexAttribPointer(r.attributes.aTextureCoord,2,n.FLOAT,!1,0,0),n.activeTexture(n.TEXTURE0),i._glTextures[n.id]?n.bindTexture(n.TEXTURE_2D,i._glTextures[n.id]):this.renderer.updateTexture(i),n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t._indexBuffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,t.indices,n.STATIC_DRAW)):(n.bindBuffer(n.ARRAY_BUFFER,t._vertexBuffer),n.bufferSubData(n.ARRAY_BUFFER,0,t.vertices),n.vertexAttribPointer(r.attributes.aVertexPosition,2,n.FLOAT,!1,0,0),n.bindBuffer(n.ARRAY_BUFFER,t._uvBuffer),n.vertexAttribPointer(r.attributes.aTextureCoord,2,n.FLOAT,!1,0,0),n.activeTexture(n.TEXTURE0),i._glTextures[n.id]?n.bindTexture(n.TEXTURE_2D,i._glTextures[n.id]):this.renderer.updateTexture(i),n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,t._indexBuffer),n.bufferSubData(n.ELEMENT_ARRAY_BUFFER,0,t.indices)),n.drawElements(o,t.indices.length,n.UNSIGNED_SHORT,0)},r.prototype._initWebGL=function(t){var e=this.renderer.gl;t._vertexBuffer=e.createBuffer(),t._indexBuffer=e.createBuffer(),t._uvBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,t._vertexBuffer),e.bufferData(e.ARRAY_BUFFER,t.vertices,e.DYNAMIC_DRAW),e.bindBuffer(e.ARRAY_BUFFER,t._uvBuffer),e.bufferData(e.ARRAY_BUFFER,t.uvs,e.STATIC_DRAW),t.colors&&(t._colorBuffer=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,t._colorBuffer),e.bufferData(e.ARRAY_BUFFER,t.colors,e.STATIC_DRAW)),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t._indexBuffer),e.bufferData(e.ELEMENT_ARRAY_BUFFER,t.indices,e.STATIC_DRAW)},r.prototype.flush=function(){},r.prototype.start=function(){this.currentShader=null},r.prototype.destroy=function(){i.ObjectRenderer.prototype.destroy.call(this)}},{"../../core":440,"../Mesh":536}],541:[function(t,e,n){var i=t("../../core");function r(t){i.Shader.call(this,t,["precision lowp float;","attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform mat3 translationMatrix;","uniform mat3 projectionMatrix;","varying vec2 vTextureCoord;","void main(void){","   gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);","   vTextureCoord = aTextureCoord;","}"].join("\n"),["precision lowp float;","varying vec2 vTextureCoord;","uniform float alpha;","uniform sampler2D uSampler;","void main(void){","   gl_FragColor = texture2D(uSampler, vTextureCoord) * alpha ;","}"].join("\n"),{alpha:{type:"1f",value:0},translationMatrix:{type:"mat3",value:new Float32Array(9)},projectionMatrix:{type:"mat3",value:new Float32Array(9)}},{aVertexPosition:0,aTextureCoord:0})}r.prototype=Object.create(i.Shader.prototype),e.exports=r.prototype.constructor=r,i.ShaderManager.registerPlugin("meshShader",r)},{"../../core":440}],542:[function(t,e,n){Math.sign||(Math.sign=function(t){return 0===(t=+t)||isNaN(t)?t:0<t?1:-1})},{}],543:[function(t,e,n){Object.assign||(Object.assign=t("object-assign"))},{"object-assign":424}],544:[function(t,e,n){t("./Object.assign"),t("./requestAnimationFrame"),t("./Math.sign")},{"./Math.sign":542,"./Object.assign":543,"./requestAnimationFrame":545}],545:[function(t,e,n){!function(r){!function(){Date.now&&Date.prototype.getTime||(Date.now=function(){return(new Date).getTime()}),r.performance&&r.performance.now||(t=Date.now(),r.performance||(r.performance={}),r.performance.now=function(){return Date.now()-t});for(var t,i=Date.now(),e=["ms","moz","webkit","o"],n=0;n<e.length&&!r.requestAnimationFrame;++n)r.requestAnimationFrame=r[e[n]+"RequestAnimationFrame"],r.cancelAnimationFrame=r[e[n]+"CancelAnimationFrame"]||r[e[n]+"CancelRequestAnimationFrame"];r.requestAnimationFrame||(r.requestAnimationFrame=function(t){if("function"!=typeof t)throw new TypeError(t+"is not a function");var e=Date.now(),n=16+i-e;return n<0&&(n=0),i=e,setTimeout(function(){i=Date.now(),t(performance.now())},n)}),r.cancelAnimationFrame||(r.cancelAnimationFrame=function(t){clearTimeout(t)})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],546:[function(t,e,n){"use strict";var i=t("./src/places"),t=t("./src/version");e.exports=i.default,e.exports.version=t.default},{"./src/places":559,"./src/version":560}],547:[function(t,e,n){"use strict";function o(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)),i}function d(i){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var e,n;e=i,n=r[t=t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})}return i}Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var p={},f={};n.default=function(t){var e,n,i,r,o,a,s,l,c,u,h;return s=d(d({},p),t),e=s.hitsPerPage,h=s.postcodeSearch,c=s.aroundLatLng,n=s.aroundRadius,u=s.aroundLatLngViaIP,i=s.insideBoundingBox,r=s.insidePolygon,o=s.getRankingInfo,l=s.countries,a=s.language,s=s.type,e={countries:l,hitsPerPage:e||5,language:a||navigator.language.split("-")[0],type:s},Array.isArray(l)&&(e.countries=e.countries.map(function(t){return t.toLowerCase()})),"string"==typeof e.language&&(e.language=e.language.toLowerCase()),c?e.aroundLatLng=c:void 0!==u&&(e.aroundLatLngViaIP=u),h&&(e.restrictSearchableAttributes="postcode"),p=d(d({},e),{},{aroundRadius:n,insideBoundingBox:i,insidePolygon:r,getRankingInfo:o}),a=d(d({},f),t),s=a.useDeviceLocation,l=a.computeQueryParams,c=a.formatInputValue,u=a.onHits,h=a.onError,f={useDeviceLocation:void 0!==s&&s,computeQueryParams:void 0===l?function(t){return t}:l,formatInputValue:c,onHits:void 0===u?function(){}:u,onError:void 0===h?function(t){throw t}:h,onRateLimitReached:a.onRateLimitReached,onInvalidCredentials:a.onInvalidCredentials},{params:p,controls:f}}},{}],548:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){var e=s(s({},r.default),t.templates);return{source:(0,i.default)(s(s({},t),{},{formatInputValue:e.value,templates:void 0})),templates:e,displayKey:"value",name:"places",cache:!1}};var i=o(t("./createAutocompleteSource")),r=o(t("./defaultTemplates"));function o(t){return t&&t.__esModule?t:{default:t}}function a(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)),i}function s(i){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){var e,n;e=i,n=r[t=t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})}return i}},{"./createAutocompleteSource":549,"./defaultTemplates":551}],549:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){var n,e=t.algoliasearch,i=t.clientOptions,r=t.apiKey,o=t.appId,a=t.hitsPerPage,s=t.postcodeSearch,l=t.aroundLatLng,c=t.aroundRadius,u=t.aroundLatLngViaIP,h=t.insideBoundingBox,d=t.insidePolygon,p=t.getRankingInfo,f=t.countries,m=t.formatInputValue,g=t.computeQueryParams,g=void 0===g?function(t){return t}:g,v=t.useDeviceLocation,v=void 0!==v&&v,y=t.language,y=void 0===y?navigator.language.split("-")[0]:y,_=t.onHits,_=void 0===_?function(){}:_,b=t.onError,b=void 0===b?function(t){throw t}:b,x=t.onRateLimitReached,w=t.onInvalidCredentials,t=t.type,T=e.initPlaces(o,r,i),e=(T.as.addAlgoliaAgent("Algolia Places ".concat(A.default)),(0,P.default)({hitsPerPage:a,type:t,postcodeSearch:s,countries:f,language:y,aroundLatLng:l,aroundRadius:c,aroundLatLngViaIP:u,insideBoundingBox:h,insidePolygon:d,getRankingInfo:p,formatInputValue:m,computeQueryParams:g,useDeviceLocation:v,onHits:_,onError:b,onRateLimitReached:x,onInvalidCredentials:w})),S=e.params,C=e.controls,E=null;C.useDeviceLocation&&(E=navigator.geolocation.watchPosition(function(t){t=t.coords;n="".concat(t.latitude,",").concat(t.longitude)}));function M(i,t){var e=O(O({},S),{},{query:i});return n&&(e.aroundLatLng=n),T.search(C.computeQueryParams(e)).then(function(n){var t=n.hits.map(function(t,e){return(0,k.default)({formatInputValue:C.formatInputValue,hit:t,hitIndex:e,query:i,rawAnswer:n})});return C.onHits({hits:t,query:i,rawAnswer:n}),t}).then(t).catch(function(t){403===t.statusCode&&"Invalid Application-ID or API key"===t.message?C.onInvalidCredentials():429===t.statusCode?C.onRateLimitReached():C.onError(t)})}return M.configure=function(t){t=(0,P.default)(O(O(O({},S),C),t));S=t.params,(C=t.controls).useDeviceLocation&&null===E?E=navigator.geolocation.watchPosition(function(t){t=t.coords;n="".concat(t.latitude,",").concat(t.longitude)}):C.useDeviceLocation||null===E||(navigator.geolocation.clearWatch(E),n=E=null)},M};var P=i(t("./configure")),k=i(t("./formatHit")),A=i(t("./version"));function i(t){return t&&t.__esModule?t:{default:t}}function o(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)),i}function O(i){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var e,n;e=i,n=r[t=t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})}return i}},{"./configure":547,"./formatHit":556,"./version":560}],550:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var v=i(t("./configure")),y=i(t("./formatHit")),_=i(t("./version")),b=i(t("./defaultTemplates"));function i(t){return t&&t.__esModule?t:{default:t}}function o(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)),i}function x(i){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var e,n;e=i,n=r[t=t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})}return i}function w(t){var e=t.hitsPerPage,n=t.aroundLatLng,i=t.getRankingInfo,t=t.language,r={};return"number"==typeof e&&(r.hitsPerPage=e),"string"==typeof t&&(r.language=t),"boolean"==typeof i&&(r.getRankingInfo=i),"string"==typeof n&&(r.aroundLatLng=n),r}n.default=function(t){function e(t,e){var i=t||m.aroundLatLng;return i?f.reverse(x(x({},m),{},{aroundLatLng:i})).then(function(n){var t=n.hits.map(function(t,e){return(0,y.default)({formatInputValue:g.formatInputValue,hit:t,hitIndex:e,query:i,rawAnswer:n})});return g.onHits({hits:t,query:i,rawAnswer:n}),t}).then(e).catch(function(t){403===t.statusCode&&"Invalid Application-ID or API key"===t.message?g.onInvalidCredentials():429===t.statusCode?g.onRateLimitReached():g.onError(t)}):(t=new Error("A location must be provided for reverse geocoding"),Promise.reject(t))}var n=t.algoliasearch,i=t.clientOptions,r=t.apiKey,o=t.appId,a=t.hitsPerPage,s=t.aroundLatLng,l=t.getRankingInfo,c=t.formatInputValue,c=void 0===c?b.default.value:c,u=t.language,u=void 0===u?navigator.language.split("-")[0]:u,h=t.onHits,h=void 0===h?function(){}:h,d=t.onError,d=void 0===d?function(t){throw t}:d,p=t.onRateLimitReached,t=t.onInvalidCredentials,f=n.initPlaces(o,r,i),n=(f.as.addAlgoliaAgent("Algolia Places ".concat(_.default)),(0,v.default)({apiKey:r,appId:o,hitsPerPage:a,aroundLatLng:s,getRankingInfo:l,language:u,formatInputValue:c,onHits:h,onError:d,onRateLimitReached:p,onInvalidCredentials:t})),m=w(n.params),g=n.controls;return e.configure=function(t){t=(0,v.default)(x(x(x({},m),g),t));return m=w(t.params),g=t.controls,e},e}},{"./configure":547,"./defaultTemplates":551,"./formatHit":556,"./version":560}],551:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var i=r(t("./formatInputValue")),t=r(t("./formatDropdownValue"));function r(t){return t&&t.__esModule?t:{default:t}}i={footer:'<div class="ap-footer">\n  <a href="https://www.algolia.com/places" title="Search by Algolia" class="ap-footer-algolia">'.concat('<svg xmlns="http://www.w3.org/2000/svg" width="117" height="17" viewBox="0 0 130 19"><g fill="none" fill-rule="evenodd"><g fill-rule="nonzero"><path fill="#5468FF" d="M59.399.044h13.299a2.372 2.372 0 0 1 2.377 2.364v13.234a2.372 2.372 0 0 1-2.377 2.364H59.399a2.372 2.372 0 0 1-2.377-2.364V2.403A2.368 2.368 0 0 1 59.399.044z"/><path fill="#FFF" d="M66.257 4.582c-2.815 0-5.1 2.272-5.1 5.078 0 2.806 2.284 5.072 5.1 5.072 2.815 0 5.1-2.272 5.1-5.078 0-2.806-2.279-5.072-5.1-5.072zm0 8.652c-1.983 0-3.593-1.602-3.593-3.574 0-1.972 1.61-3.574 3.593-3.574 1.983 0 3.593 1.602 3.593 3.574a3.582 3.582 0 0 1-3.593 3.574zm0-6.418V9.48c0 .076.082.131.153.093l2.377-1.226c.055-.027.071-.093.044-.147a2.96 2.96 0 0 0-2.465-1.487c-.055 0-.11.044-.11.104h.001zm-3.33-1.956l-.312-.31a.783.783 0 0 0-1.106 0l-.372.37a.773.773 0 0 0 0 1.1l.307.305c.049.05.121.038.164-.01.181-.246.378-.48.597-.698.225-.223.455-.42.707-.599.055-.033.06-.109.016-.158h-.001zm5.001-.806v-.616a.781.781 0 0 0-.783-.779h-1.824a.78.78 0 0 0-.783.78v.631c0 .071.066.12.137.104a5.736 5.736 0 0 1 1.588-.223c.52 0 1.035.071 1.534.207a.106.106 0 0 0 .131-.104z"/><path fill="#252C61" d="M5.027 10.246c0 .698-.252 1.246-.757 1.644-.505.397-1.201.596-2.089.596-.888 0-1.615-.138-2.181-.414v-1.214c.358.168.739.301 1.141.397.403.097.778.145 1.125.145.508 0 .884-.097 1.125-.29a.945.945 0 0 0 .363-.779.978.978 0 0 0-.333-.747c-.222-.204-.68-.446-1.375-.725C1.33 8.57.825 8.24.531 7.865c-.294-.372-.44-.82-.44-1.343 0-.655.233-1.17.698-1.547.465-.376 1.09-.564 1.875-.564.752 0 1.5.165 2.245.494l-.408 1.047c-.698-.294-1.321-.44-1.869-.44-.415 0-.73.09-.945.271a.89.89 0 0 0-.322.717c0 .204.043.38.129.524.086.145.227.282.424.411.197.13.551.3 1.063.51.577.24.999.464 1.268.671.269.208.465.442.591.704.125.261.188.57.188.924l-.001.002zm3.98 2.24c-.924 0-1.646-.269-2.167-.808-.521-.539-.781-1.28-.781-2.226 0-.97.242-1.733.725-2.288.483-.555 1.148-.833 1.993-.833.784 0 1.404.238 1.858.714.455.476.682 1.132.682 1.966v.682H7.359c.018.577.174 1.02.467 1.33.294.31.707.464 1.241.464.351 0 .678-.033.98-.099a5.1 5.1 0 0 0 .975-.33v1.026a3.865 3.865 0 0 1-.935.312 5.723 5.723 0 0 1-1.08.091zm7.46-.107l-.252-.827h-.043c-.286.362-.575.608-.865.74-.29.13-.662.195-1.117.195-.584 0-1.039-.158-1.367-.473-.328-.315-.491-.76-.491-1.337 0-.612.227-1.074.682-1.386.455-.312 1.148-.482 2.079-.51l1.026-.032v-.317c0-.38-.089-.663-.266-.85-.177-.189-.452-.283-.824-.283-.304 0-.596.045-.875.134a6.68 6.68 0 0 0-.806.317l-.408-.902a4.414 4.414 0 0 1 1.058-.384 4.856 4.856 0 0 1 1.085-.132c.756 0 1.326.165 1.711.494.385.33.577.847.577 1.552v4.001h-.904zm5.677-6.048c.254 0 .464.018.628.054l-.124 1.176a2.383 2.383 0 0 0-.559-.064c-.505 0-.914.165-1.227.494-.313.33-.47.757-.47 1.284v3.104H19.13V6.44h.988l.167 1.047h.064c.197-.354.454-.636.771-.843a1.83 1.83 0 0 1 1.023-.312h.001zm4.125 6.155c-.899 0-1.582-.262-2.049-.787-.467-.525-.701-1.277-.701-2.259 0-.999.244-1.767.733-2.304.489-.537 1.195-.806 2.119-.806.627 0 1.191.116 1.692.35l-.381 1.014c-.534-.208-.974-.312-1.321-.312-1.028 0-1.542.682-1.542 2.046 0 .666.128 1.166.384 1.501.256.335.631.502 1.125.502a3.23 3.23 0 0 0 1.595-.419v1.101a2.53 2.53 0 0 1-.722.285 4.356 4.356 0 0 1-.932.086v.002zm8.277-.107h-1.268V8.727c0-.458-.092-.8-.277-1.026-.184-.226-.477-.338-.878-.338-.53 0-.919.158-1.168.475-.249.317-.373.848-.373 1.593v2.95H29.32V4.022h1.262v2.122c0 .34-.021.704-.064 1.09h.081a1.76 1.76 0 0 1 .717-.666c.306-.158.663-.236 1.072-.236 1.439 0 2.159.725 2.159 2.175v3.873l-.001-.002zm7.648-6.048c.741 0 1.319.27 1.732.806.414.537.62 1.291.62 2.261 0 .974-.209 1.732-.628 2.275-.419.542-1.001.814-1.746.814-.752 0-1.336-.27-1.751-.81h-.086l-.231.703h-.945V4.023h1.262V6.01l-.021.655-.032.553h.054c.401-.59.992-.886 1.772-.886zm2.917.107h1.375l1.208 3.368c.183.48.304.931.365 1.354h.043c.032-.197.091-.436.177-.717.086-.28.541-1.616 1.364-4.004h1.364l-2.541 6.73c-.462 1.235-1.232 1.853-2.31 1.853-.279 0-.551-.03-.816-.09v-1c.19.043.406.064.65.064.609 0 1.037-.353 1.284-1.058l.22-.559-2.385-5.94h.002zm-3.244.924c-.508 0-.875.15-1.098.448-.224.3-.339.8-.346 1.501v.086c0 .723.115 1.247.344 1.571.229.324.603.486 1.123.486.448 0 .787-.177 1.018-.532.231-.354.346-.867.346-1.536 0-1.35-.462-2.025-1.386-2.025l-.001.001zm-27.28 4.157c.458 0 .826-.128 1.104-.384.278-.256.416-.615.416-1.077v-.516l-.763.032c-.594.021-1.027.121-1.297.298s-.406.448-.406.814c0 .265.079.47.236.615.158.145.394.218.709.218h.001zM8.775 7.287c-.401 0-.722.127-.964.381s-.386.625-.432 1.112h2.696c-.007-.49-.125-.862-.354-1.115-.229-.252-.544-.379-.945-.379l-.001.001z"/></g><path fill="#5468FF" d="M102.162 13.784c0 1.455-.372 2.517-1.123 3.193-.75.676-1.895 1.013-3.44 1.013-.564 0-1.736-.109-2.673-.316l.345-1.689c.783.163 1.819.207 2.361.207.86 0 1.473-.174 1.84-.523.367-.349.548-.866.548-1.553v-.349a6.374 6.374 0 0 1-.838.316 4.151 4.151 0 0 1-1.194.158 4.515 4.515 0 0 1-1.616-.278 3.385 3.385 0 0 1-1.254-.817 3.744 3.744 0 0 1-.811-1.35c-.192-.54-.29-1.505-.29-2.213 0-.665.104-1.498.307-2.054a3.925 3.925 0 0 1 .904-1.433 4.124 4.124 0 0 1 1.441-.926 5.31 5.31 0 0 1 1.945-.365c.696 0 1.337.087 1.961.191a15.86 15.86 0 0 1 1.588.332v8.456h-.001zm-5.955-4.206c0 .893.197 1.885.592 2.3.394.413.904.62 1.528.62.34 0 .663-.049.964-.142a2.75 2.75 0 0 0 .734-.332v-5.29a8.531 8.531 0 0 0-1.413-.18c-.778-.022-1.369.294-1.786.801-.411.507-.619 1.395-.619 2.223zm16.121 0c0 .72-.104 1.264-.318 1.858a4.389 4.389 0 0 1-.904 1.52c-.389.42-.854.746-1.402.975-.548.23-1.391.36-1.813.36-.422-.005-1.26-.125-1.802-.36a4.088 4.088 0 0 1-1.397-.975 4.486 4.486 0 0 1-.909-1.52 5.037 5.037 0 0 1-.329-1.858c0-.719.099-1.41.318-1.999.219-.588.526-1.09.92-1.509.394-.42.865-.74 1.402-.97a4.547 4.547 0 0 1 1.786-.338 4.69 4.69 0 0 1 1.791.338c.548.23 1.019.55 1.402.97.389.42.69.921.909 1.51.23.587.345 1.28.345 1.998h.001zm-2.192.005c0-.92-.203-1.689-.597-2.223-.394-.539-.948-.806-1.654-.806-.707 0-1.26.267-1.654.806-.394.54-.586 1.302-.586 2.223 0 .932.197 1.558.592 2.098.394.545.948.812 1.654.812.707 0 1.26-.272 1.654-.812.394-.545.592-1.166.592-2.098h-.001zm6.963 4.708c-3.511.016-3.511-2.822-3.511-3.274L113.583.95l2.142-.338v10.003c0 .256 0 1.88 1.375 1.885v1.793h-.001zM120.873 14.291h-2.153V5.095l2.153-.338zM119.794 3.75c.718 0 1.304-.579 1.304-1.292 0-.714-.581-1.29-1.304-1.29-.723 0-1.304.577-1.304 1.29 0 .714.586 1.291 1.304 1.291zm6.431 1.012c.707 0 1.304.087 1.786.262.482.174.871.42 1.156.73.285.311.488.735.608 1.182.126.447.186.937.186 1.476v5.481a25.24 25.24 0 0 1-1.495.251c-.668.098-1.419.147-2.251.147a6.829 6.829 0 0 1-1.517-.158 3.213 3.213 0 0 1-1.178-.507 2.455 2.455 0 0 1-.761-.904c-.181-.37-.274-.893-.274-1.438 0-.523.104-.855.307-1.215.208-.36.487-.654.838-.883a3.609 3.609 0 0 1 1.227-.49 7.073 7.073 0 0 1 2.202-.103c.263.027.537.076.833.147v-.349c0-.245-.027-.479-.088-.697a1.486 1.486 0 0 0-.307-.583c-.148-.169-.34-.3-.581-.392a2.536 2.536 0 0 0-.915-.163c-.493 0-.942.06-1.353.131-.411.071-.75.153-1.008.245l-.257-1.749c.268-.093.668-.185 1.183-.278a9.335 9.335 0 0 1 1.66-.142h-.001zm.179 7.73c.657 0 1.145-.038 1.484-.104V10.22a5.097 5.097 0 0 0-1.978-.104c-.241.033-.46.098-.652.191a1.167 1.167 0 0 0-.466.392c-.121.17-.175.267-.175.523 0 .501.175.79.493.981.323.196.75.29 1.293.29h.001zM84.108 4.816c.707 0 1.304.087 1.786.262.482.174.871.42 1.156.73.29.316.487.735.608 1.182.126.447.186.937.186 1.476v5.481a25.24 25.24 0 0 1-1.495.251c-.668.098-1.419.147-2.251.147a6.829 6.829 0 0 1-1.517-.158 3.213 3.213 0 0 1-1.178-.507 2.455 2.455 0 0 1-.761-.904c-.181-.37-.274-.893-.274-1.438 0-.523.104-.855.307-1.215.208-.36.487-.654.838-.883a3.609 3.609 0 0 1 1.227-.49 7.073 7.073 0 0 1 2.202-.103c.257.027.537.076.833.147v-.349c0-.245-.027-.479-.088-.697a1.486 1.486 0 0 0-.307-.583c-.148-.169-.34-.3-.581-.392a2.536 2.536 0 0 0-.915-.163c-.493 0-.942.06-1.353.131-.411.071-.75.153-1.008.245l-.257-1.749c.268-.093.668-.185 1.183-.278a8.89 8.89 0 0 1 1.66-.142h-.001zm.185 7.736c.657 0 1.145-.038 1.484-.104V10.28a5.097 5.097 0 0 0-1.978-.104c-.241.033-.46.098-.652.191a1.167 1.167 0 0 0-.466.392c-.121.17-.175.267-.175.523 0 .501.175.79.493.981.318.191.75.29 1.293.29h.001zm8.683 1.738c-3.511.016-3.511-2.822-3.511-3.274L89.46.948 91.602.61v10.003c0 .256 0 1.88 1.375 1.885v1.793h-.001z"/></g></svg>'.trim(),'</a>\n  using <a href="https://community.algolia.com/places/documentation.html#license" class="ap-footer-osm" title="Algolia Places data © OpenStreetMap contributors">').concat('<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12">\n  <path fill="#797979" fill-rule="evenodd" d="M6.577.5L5.304.005 2.627 1.02 0 0l.992 2.767-.986 2.685.998 2.76-1 2.717.613.22 3.39-3.45.563.06.726-.69s-.717-.92-.91-1.86c.193-.146.184-.14.355-.285C4.1 1.93 6.58.5 6.58.5zm-4.17 11.354l.22.12 2.68-1.05 2.62 1.04 2.644-1.03 1.02-2.717-.33-.944s-1.13 1.26-3.44.878c-.174.29-.25.37-.25.37s-1.11-.31-1.683-.89c-.573.58-.795.71-.795.71l.08.634-2.76 2.89zm6.26-4.395c1.817 0 3.29-1.53 3.29-3.4 0-1.88-1.473-3.4-3.29-3.4s-3.29 1.52-3.29 3.4c0 1.87 1.473 3.4 3.29 3.4z"/>\n</svg>\n'.trim()," <span>data</span></a>\n  </div>"),value:i.default,suggestion:t.default};n.default=i},{"./formatDropdownValue":555,"./formatInputValue":557}],552:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default={multiContainers:"Algolia Places: 'container' must point to a single <input> element.\nExample: instantiate the library twice if you want to bind two <inputs>.\n\nSee https://community.algolia.com/places/documentation.html#api-options-container",badContainer:"Algolia Places: 'container' must point to an <input> element.\n\nSee https://community.algolia.com/places/documentation.html#api-options-container",rateLimitReached:"Algolia Places: Current rate limit reached.\n\nSign up for a free 100,000 queries/month account at\nhttps://www.algolia.com/users/sign_up/places.\n\nOr upgrade your 100,000 queries/month plan by contacting us at\nhttps://community.algolia.com/places/contact.html.",invalidCredentials:"The APP ID or API key provided is invalid.",invalidAppId:"Your APP ID is invalid. A Places APP ID starts with 'pl'. You must create a valid Places app first.\n\nCreate a free Places app here: https://www.algolia.com/users/sign_up/places"}},{}],553:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){for(var e=0;e<t.length;e++){var n=t[e].match(/country\/(.*)?/);if(n)return n[1]}return}},{}],554:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){var e,n={country:"country",city:"city","amenity/bus_station":"busStop","amenity/townhall":"townhall","railway/station":"trainStation","aeroway/aerodrome":"airport","aeroway/terminal":"airport","aeroway/gate":"airport"};for(e in n)if(-1!==t.indexOf(e))return n[e];return"address"}},{}],555:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){var e=t.type,t=t.highlight,n=t.name,i=t.administrative,r=t.city,t=t.country;return'<span class="ap-suggestion-icon">'.concat(o[e].trim(),'</span>\n<span class="ap-name">').concat(n,'</span>\n<span class="ap-address">\n  ').concat([r,i,t].filter(function(t){return void 0!==t}).join(", "),"</span>").replace(/\s*\n\s*/g," ")};var o={address:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 14 20"><path d="M7 0C3.13 0 0 3.13 0 7c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5C5.62 9.5 4.5 8.38 4.5 7S5.62 4.5 7 4.5 9.5 5.62 9.5 7 8.38 9.5 7 9.5z"/></svg>\n',city:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 18 19"><path d="M12 9V3L9 0 6 3v2H0v14h18V9h-6zm-8 8H2v-2h2v2zm0-4H2v-2h2v2zm0-4H2V7h2v2zm6 8H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V7h2v2zm0-4H8V3h2v2zm6 12h-2v-2h2v2zm0-4h-2v-2h2v2z"/></svg>\n',country:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">\n  <path d="M10 0C4.48 0 0 4.48 0 10s4.48 10 10 10 10-4.48 10-10S15.52 0 10 0zM9 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L7 13v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H6V8h2c.55 0 1-.45 1-1V5h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/>\n</svg>\n',busStop:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 54.9 50.5"><path d="M9.6 12.7H8.5c-2.3 0-4.1 1.9-4.1 4.1v1.1c0 2.2 1.8 4 4 4.1v21.7h-.7c-1.3 0-2.3 1-2.3 2.3h7.1c0-1.3-1-2.3-2.3-2.3h-.5V22.1c2.2-.1 4-1.9 4-4.1v-1.1c0-2.3-1.8-4.2-4.1-4.2zM46 7.6h-7.5c0-1.8-1.5-3.3-3.3-3.3h-3.6c-1.8 0-3.3 1.5-3.3 3.3H21c-2.5 0-4.6 2-4.6 4.6v26.3c0 1.7 1.3 3.1 3 3.1h.8v1.6c0 1.7 1.4 3.1 3.1 3.1 1.7 0 3-1.4 3-3.1v-1.6h14.3v1.6c0 1.7 1.4 3.1 3.1 3.1 1.7 0 3.1-1.4 3.1-3.1v-1.6h.8c1.7 0 3.1-1.4 3.1-3.1V12.2c-.2-2.5-2.2-4.6-4.7-4.6zm-27.4 4.6c0-1.3 1.1-2.4 2.4-2.4h25c1.3 0 2.4 1.1 2.4 2.4v.3c0 1.3-1.1 2.4-2.4 2.4H21c-1.3 0-2.4-1.1-2.4-2.4v-.3zM21 38c-1.5 0-2.7-1.2-2.7-2.7 0-1.5 1.2-2.7 2.7-2.7 1.5 0 2.7 1.2 2.7 2.7 0 1.5-1.2 2.7-2.7 2.7zm0-10.1c-1.3 0-2.4-1.1-2.4-2.4v-6.6c0-1.3 1.1-2.4 2.4-2.4h25c1.3 0 2.4 1.1 2.4 2.4v6.6c0 1.3-1.1 2.4-2.4 2.4H21zm24.8 10c-1.5 0-2.7-1.2-2.7-2.7 0-1.5 1.2-2.7 2.7-2.7 1.5 0 2.7 1.2 2.7 2.7 0 1.5-1.2 2.7-2.7 2.7z"/></svg>\n',trainStation:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 15 20">\n  <path d="M13.105 20l-2.366-3.354H4.26L1.907 20H0l3.297-4.787c-1.1-.177-2.196-1.287-2.194-2.642V2.68C1.1 1.28 2.317-.002 3.973 0h7.065c1.647-.002 2.863 1.28 2.86 2.676v9.895c.003 1.36-1.094 2.47-2.194 2.647L15 20h-1.895zM6.11 2h2.78c.264 0 .472-.123.472-.27v-.46c0-.147-.22-.268-.472-.27H6.11c-.252.002-.47.123-.47.27v.46c0 .146.206.27.47.27zm6.26 3.952V4.175c-.004-.74-.5-1.387-1.436-1.388H4.066c-.936 0-1.43.648-1.436 1.388v1.777c-.002.86.644 1.384 1.436 1.388h6.868c.793-.004 1.44-.528 1.436-1.388zm-8.465 5.386c-.69-.003-1.254.54-1.252 1.21-.002.673.56 1.217 1.252 1.222.697-.006 1.26-.55 1.262-1.22-.002-.672-.565-1.215-1.262-1.212zm8.42 1.21c-.005-.67-.567-1.213-1.265-1.21-.69-.003-1.253.54-1.25 1.21-.003.673.56 1.217 1.25 1.222.698-.006 1.26-.55 1.264-1.22z"/>\n</svg>\n',townhall:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M12 .6L2.5 6.9h18.9L12 .6zM3.8 8.2c-.7 0-1.3.6-1.3 1.3v8.8L.3 22.1c-.2.3-.3.5-.3.6 0 .6.8.6 1.3.6h21.5c.4 0 1.3 0 1.3-.6 0-.2-.1-.3-.3-.6l-2.2-3.8V9.5c0-.7-.6-1.3-1.3-1.3H3.8zm2.5 2.5c.7 0 1.1.6 1.3 1.3v7.6H5.1V12c0-.7.5-1.3 1.2-1.3zm5.7 0c.7 0 1.3.6 1.3 1.3v7.6h-2.5V12c-.1-.7.5-1.3 1.2-1.3zm5.7 0c.7 0 1.3.6 1.3 1.3v7.6h-2.5V12c-.1-.7.5-1.3 1.2-1.3z"/></svg>\n',airport:'<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24"><path d="M22.9 1.1s1.3.3-4.3 6.5l.7 3.8.2-.2c.4-.4 1-.4 1.3 0 .4.4.4 1 0 1.3l-1.2 1.2.3 1.7.1-.1c.4-.4 1-.4 1.3 0 .4.4.4 1 0 1.3l-1.1 1.1c.2 1.9.3 3.6.1 4.5 0 0-1.2 1.2-1.8.5 0 0-2.3-7.7-3.8-11.1-5.9 6-6.4 5.6-6.4 5.6s1.2 3.8-.2 5.2l-2.3-4.3h.1l-4.3-2.3c1.3-1.3 5.2-.2 5.2-.2s-.5-.4 5.6-6.3C8.9 7.7 1.2 5.5 1.2 5.5c-.7-.7.5-1.8.5-1.8.9-.2 2.6-.1 4.5.1l1.1-1.1c.4-.4 1-.4 1.3 0 .4.4.4 1 0 1.3l1.7.3 1.2-1.2c.4-.4 1-.4 1.3 0 .4.4.4 1 0 1.3l-.2.2 3.8.7c6.2-5.5 6.5-4.2 6.5-4.2z"/></svg>\n'}},{}],556:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){var e=t.formatInputValue,n=t.hit,i=t.hitIndex,r=t.query,t=t.rawAnswer;try{var o=n.locale_names[0],a=n.country,s=n.administrative&&n.administrative[0]!==o?n.administrative[0]:void 0,l=n.city&&n.city[0]!==o?n.city[0]:void 0,c=n.suburb&&n.suburb[0]!==o?n.suburb[0]:void 0,u=n.county&&n.county[0]!==o?n.county[0]:void 0,h=n.postcode&&n.postcode.length?function(t,e){for(var n=e[0].value,i=[],r=1;r<e.length;++r)"none"!==e[r].matchLevel&&i.push({index:r,words:e[r].matchedWords});return 0!==i.length?(i.sort(function(t,e){return t.words>e.words?-1:t.words<e.words?1:t.index-e.index}),{postcode:t[i[0].index],highlightedPostcode:e[i[0].index].value}):{postcode:t[0],highlightedPostcode:n}}(n.postcode,n._highlightResult.postcode):{postcode:void 0,highlightedPostcode:void 0},d=h.postcode,p=h.highlightedPostcode,f={name:b(n._highlightResult.locale_names),city:l?b(n._highlightResult.city):void 0,administrative:s?b(n._highlightResult.administrative):void 0,country:a?n._highlightResult.country.value:void 0,suburb:c?b(n._highlightResult.suburb):void 0,county:u?b(n._highlightResult.county):void 0,postcode:p},m={name:o,administrative:s,county:u,city:l,suburb:c,country:a,countryCode:(0,v.default)(n._tags),type:(0,y.default)(n._tags),latlng:{lat:n._geoloc.lat,lng:n._geoloc.lng},postcode:d,postcodes:n.postcode&&n.postcode.length?n.postcode:void 0},g=e(m);return _(_({},m),{},{highlight:f,hit:n,hitIndex:i,query:r,rawAnswer:t,value:g})}catch(t){return console.error("Could not parse object",n),console.error(t),{value:"Could not parse object"}}};var v=i(t("./findCountryCode")),y=i(t("./findType"));function i(t){return t&&t.__esModule?t:{default:t}}function o(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)),i}function _(i){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){var e,n;e=i,n=r[t=t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})}return i}function b(t){for(var e=t[0].value,n=[],i=1;i<t.length;++i)"none"!==t[i].matchLevel&&n.push({index:i,words:t[i].matchedWords});return 0===n.length?e:(n.sort(function(t,e){return t.words>e.words?-1:t.words<e.words?1:t.index-e.index}),0===n[0].index?"".concat(e," (").concat(t[n[1].index].value,")"):"".concat(t[n[0].index].value," (").concat(e,")"))}},{"./findCountryCode":553,"./findType":554}],557:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t){var e=t.administrative,n=t.city,i=t.country,r=t.name,t=t.type;return"".concat(r).concat("country"!==t&&void 0!==i?",":"","\n ").concat(n?"".concat(n,","):"","\n ").concat(e?"".concat(e,","):"","\n ").concat(i||"").replace(/\s*\n\s*/g," ").trim()}},{}],558:[function(t,e,n){"use strict";"language"in navigator||(navigator.language=navigator.userLanguage&&navigator.userLanguage.replace(/-[a-z]{2}$/,String.prototype.toUpperCase)||"en-US")},{}],559:[function(o,t,a){!function(E){!function(){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function t(e){var n=e.container,i=e.style,r=e.accessibility,o=e.autocompleteOptions,o=void 0===o?{}:o;if(n instanceof NodeList){if(1<n.length)throw new Error(b.default.multiContainers);return t(w(w({},e),{},{container:n[0]}))}if("string"==typeof n)return l=document.querySelectorAll(n),t(w(w({},e),{},{container:l}));if(!(n instanceof HTMLInputElement))throw new Error(b.default.badContainer);var a=new g.default;var s="ap".concat(!1===i?"-nostyle":"");var l=w({autoselect:!0,hint:!1,cssClasses:{root:"algolia-places".concat(!1===i?"-nostyle":""),prefix:s},debug:"development"===E.env.NODE_ENV},o);var c=(0,_.default)(w(w({},e),{},{algoliasearch:v.default,onHits:function(t){var e=t.hits,n=t.rawAnswer,t=t.query;return a.emit("suggestions",{rawAnswer:n,query:t,suggestions:e})},onError:function(t){return a.emit("error",t)},onRateLimitReached:function(){var t=a.listenerCount("limit");0===t?console.log(b.default.rateLimitReached):a.emit("limit",{message:b.default.rateLimitReached})},onInvalidCredentials:function(){e&&e.appId&&e.appId.startsWith("pl")?console.error(b.default.invalidCredentials):console.error(b.default.invalidAppId)},container:void 0}));var u=(0,y.default)(n,l,c);var h=n.parentNode;i=["selected","autocompleted"];i.forEach(function(t){u.on("autocomplete:".concat(t),function(t,e){a.emit("change",{rawAnswer:e.rawAnswer,query:e.query,suggestion:e,suggestionIndex:e.hitIndex})})});u.on("autocomplete:cursorchanged",function(t,e){a.emit("cursorchanged",{rawAnswer:e.rawAnswer,query:e.query,suggestion:e,suggestionIndex:e.hitIndex})});var d=document.createElement("button");d.setAttribute("type","button");d.setAttribute("aria-label","clear");r&&r.clearButton&&r.clearButton instanceof Object&&C(d,r.clearButton);d.classList.add("".concat(s,"-input-icon"));d.classList.add("".concat(s,"-icon-clear"));d.innerHTML=T;h.appendChild(d);d.style.display="none";var p=document.createElement("button");p.setAttribute("type","button");p.setAttribute("aria-label","focus");r&&r.pinButton&&r.pinButton instanceof Object&&C(p,r.pinButton);p.classList.add("".concat(s,"-input-icon"));p.classList.add("".concat(s,"-icon-pin"));p.innerHTML=S;h.appendChild(p);p.addEventListener("click",function(){c.source.configure({useDeviceLocation:!0}),u.focus(),a.emit("locate")});d.addEventListener("click",function(){u.autocomplete.setVal(""),u.focus(),d.style.display="none",p.style.display="",a.emit("clear")});var f="";var m=function(){var t=u.val();""===t?(p.style.display="",d.style.display="none",f!==t&&a.emit("clear")):(d.style.display="",p.style.display="none"),f=t};h.querySelector(".".concat(s,"-input")).addEventListener("input",m);o=["open","close"];o.forEach(function(e){a[e]=function(){var t;(t=u.autocomplete)[e].apply(t,arguments)}});a.getVal=function(){return u.val()};a.destroy=function(){var t;h.querySelector(".".concat(s,"-input")).removeEventListener("input",m),(t=u.autocomplete).destroy.apply(t,arguments)};a.setVal=function(){var t;""===(f=arguments.length<=0?void 0:arguments[0])?(p.style.display="",d.style.display="none"):(d.style.display="",p.style.display="none"),(t=u.autocomplete).setVal.apply(t,arguments)};a.autocomplete=u;a.search=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";return new Promise(function(t){c.source(e,t)})};a.configure=function(t){t=w({},t);return delete t.onHits,delete t.onError,delete t.onRateLimitReached,delete t.onInvalidCredentials,delete t.templates,c.source.configure(t),a};a.reverse=(0,x.default)(w(w({},e),{},{algoliasearch:v.default,formatInputValue:(e.templates||{}).value,onHits:function(t){var e=t.hits,n=t.rawAnswer,t=t.query;return a.emit("reverse",{rawAnswer:n,query:t,suggestions:e})},onError:function(t){return a.emit("error",t)},onRateLimitReached:function(){var t=a.listenerCount("limit");0===t?console.log(b.default.rateLimitReached):a.emit("limit",{message:b.default.rateLimitReached})},onInvalidCredentials:function(){e&&e.appId&&e.appId.startsWith("pl")?console.error(b.default.invalidCredentials):console.error(b.default.invalidAppId)}}));return a};var g=e(o("events")),v=e(o("algoliasearch/src/browser/builds/algoliasearchLite")),y=e(o("autocomplete.js")),_=(o("./navigatorLanguage"),e(o("./createAutocompleteDataset"))),t=e(o("insert-css")),b=e(o("./errors")),x=e(o("./createReverseGeocodingSource"));function e(t){return t&&t.__esModule?t:{default:t}}function n(e,t){var n,i=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)),i}function w(i){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach(function(t){var e,n;e=i,n=r[t=t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(i,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach(function(t){Object.defineProperty(i,t,Object.getOwnPropertyDescriptor(r,t))})}return i}function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){r=!0,o=t}finally{try{i||null==s.return||s.return()}finally{if(r)throw o}}return n}}(t,e)||function(t,e){var n;if(t)return"string"==typeof t?r(t,e):"Map"===(n="Object"===(n=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var T='<svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg"><path d="M.566 1.698L0 1.13 1.132 0l.565.566L6 4.868 10.302.566 10.868 0 12 1.132l-.566.565L7.132 6l4.302 4.3.566.568L10.868 12l-.565-.566L6 7.132l-4.3 4.302L1.13 12 0 10.868l.566-.565L4.868 6 .566 1.698z"/></svg>\n',S='<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 14 20"><path d="M7 0C3.13 0 0 3.13 0 7c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5C5.62 9.5 4.5 8.38 4.5 7S5.62 4.5 7 4.5 9.5 5.62 9.5 7 8.38 9.5 7 9.5z"/></svg>\n',C=((0,t.default)(".algolia-places {\n  width: 100%;\n}\n\n.ap-input, .ap-hint {\n  width: 100%;\n  padding-right: 35px;\n  padding-left: 16px;\n  line-height: 40px;\n  height: 40px;\n  border: 1px solid #CCC;\n  border-radius: 3px;\n  outline: none;\n  font: inherit;\n  appearance: none;\n  -webkit-appearance: none;\n  box-sizing: border-box;\n}\n\n.ap-input::-webkit-search-decoration {\n  -webkit-appearance: none;\n}\n\n.ap-input::-ms-clear {\n  display: none;\n}\n\n.ap-input:hover ~ .ap-input-icon svg,\n.ap-input:focus ~ .ap-input-icon svg,\n.ap-input-icon:hover svg {\n  fill: #aaaaaa;\n}\n\n.ap-dropdown-menu {\n  width: 100%;\n  background: #ffffff;\n  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.1);\n  border-radius: 3px;\n  margin-top: 3px;\n  overflow: hidden;\n}\n\n.ap-suggestion {\n  cursor: pointer;\n  height: 46px;\n  line-height: 46px;\n  padding-left: 18px;\n  overflow: hidden;\n}\n\n.ap-suggestion em {\n  font-weight: bold;\n  font-style: normal;\n}\n\n.ap-address {\n  font-size: smaller;\n  margin-left: 12px;\n  color: #aaaaaa;\n}\n\n.ap-suggestion-icon {\n  margin-right: 10px;\n  width: 14px;\n  height: 20px;\n  vertical-align: middle;\n}\n\n.ap-suggestion-icon svg {\n  display: inherit;\n  -webkit-transform: scale(0.9) translateY(2px);\n          transform: scale(0.9) translateY(2px);\n  fill: #cfcfcf;\n}\n\n.ap-input-icon {\n  border: 0;\n  background: transparent;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  right: 16px;\n  outline: none;\n}\n\n.ap-input-icon.ap-icon-pin {\n  cursor: pointer;\n}\n\n.ap-input-icon svg {\n  fill: #cfcfcf;\n  position: absolute;\n  top: 50%;\n  right: 0;\n  -webkit-transform: translateY(-50%);\n          transform: translateY(-50%);\n}\n\n.ap-cursor {\n  background: #efefef;\n}\n\n.ap-cursor .ap-suggestion-icon svg {\n  -webkit-transform: scale(1) translateY(2px);\n          transform: scale(1) translateY(2px);\n  fill: #aaaaaa;\n}\n\n.ap-footer {\n  opacity: .8;\n  text-align: right;\n  padding: .5em 1em .5em 0;\n  font-size: 12px;\n  line-height: 12px;\n}\n\n.ap-footer a {\n  color: inherit;\n  text-decoration: none;\n}\n\n.ap-footer a svg {\n  vertical-align: middle;\n}\n\n.ap-footer:hover {\n  opacity: 1;\n}\n",{prepend:!0}),function(n,t){return Object.entries(t).forEach(function(t){var t=i(t,2),e=t[0],t=t[1];n.setAttribute(e,"".concat(t))}),n})}.call(this)}.call(this,o("_process"))},{"./createAutocompleteDataset":548,"./createReverseGeocodingSource":550,"./errors":552,"./navigatorLanguage":558,_process:561,"algoliasearch/src/browser/builds/algoliasearchLite":4,"autocomplete.js":21,events:46,"insert-css":421}],560:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default="1.19.0"},{}],561:[function(t,e,n){var i,r,e=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}function s(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return(i=setTimeout)(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}var l,c=[],u=!1,h=-1;function d(){u&&l&&(u=!1,l.length?c=l.concat(c):h=-1,c.length)&&p()}function p(){if(!u){for(var t=s(d),e=(u=!0,c.length);e;){for(l=c,c=[];++h<e;)l&&l[h].run();h=-1,e=c.length}l=null,u=!1,!function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return(r=clearTimeout)(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(t)}}function f(t,e){this.fun=t,this.array=e}function m(){}e.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];c.push(new f(t,e)),1!==c.length||u||s(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={},e.on=m,e.addListener=m,e.once=m,e.off=m,e.removeListener=m,e.removeAllListeners=m,e.emit=m,e.prependListener=m,e.prependOnceListener=m,e.listeners=function(t){return[]},e.binding=function(t){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(t){throw new Error("process.chdir is not supported")},e.umask=function(){return 0}},{}],562:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){e=e||"&",n=n||"=";var r={};if("string"==typeof t&&0!==t.length){var o=/\+/g,e=(t=t.split(e),1e3),a=(i&&"number"==typeof i.maxKeys&&(e=i.maxKeys),t.length);0<e&&e<a&&(a=e);for(var s=0;s<a;++s){var l,c=t[s].replace(o,"%20"),u=c.indexOf(n),u=0<=u?(l=c.substr(0,u),c.substr(u+1)):(l=c,""),c=decodeURIComponent(l),u=decodeURIComponent(u);Object.prototype.hasOwnProperty.call(r,c)?h(r[c])?r[c].push(u):r[c]=[r[c],u]:r[c]=u}}return r};var h=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],563:[function(t,e,n){"use strict";function o(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}}e.exports=function(n,i,r,t){return i=i||"&",r=r||"=","object"==typeof(n=null===n?void 0:n)?s(l(n),function(t){var e=encodeURIComponent(o(t))+r;return a(n[t])?s(n[t],function(t){return e+encodeURIComponent(o(t))}).join(i):e+encodeURIComponent(o(n[t]))}).join(i):t?encodeURIComponent(o(t))+r+encodeURIComponent(o(n)):""};var a=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function s(t,e){if(t.map)return t.map(e);for(var n=[],i=0;i<t.length;i++)n.push(e(t[i],i));return n}var l=Object.keys||function(t){var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);return n}},{}],564:[function(t,e,n){"use strict";n.decode=n.parse=t("./decode"),n.encode=n.stringify=t("./encode")},{"./decode":562,"./encode":563}],565:[function(t,e,n){"use strict";var i=Object.prototype.hasOwnProperty,p="~";function l(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function o(){this._events=new l,this._eventsCount=0}Object.create&&(l.prototype=Object.create(null),(new l).__proto__||(p=!1)),o.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)i.call(t,e)&&n.push(p?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},o.prototype.listeners=function(t,e){var t=p?p+t:t,n=this._events[t];if(e)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var i=0,r=n.length,o=new Array(r);i<r;i++)o[i]=n[i].fn;return o},o.prototype.emit=function(t,e,n,i,r,o){var a=p?p+t:t;if(!this._events[a])return!1;var s,l=this._events[a],c=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),c){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,i),!0;case 5:return l.fn.call(l.context,e,n,i,r),!0;case 6:return l.fn.call(l.context,e,n,i,r,o),!0}for(d=1,s=new Array(c-1);d<c;d++)s[d-1]=arguments[d];l.fn.apply(l.context,s)}else for(var u,h=l.length,d=0;d<h;d++)switch(l[d].once&&this.removeListener(t,l[d].fn,void 0,!0),c){case 1:l[d].fn.call(l[d].context);break;case 2:l[d].fn.call(l[d].context,e);break;case 3:l[d].fn.call(l[d].context,e,n);break;case 4:l[d].fn.call(l[d].context,e,n,i);break;default:if(!s)for(u=1,s=new Array(c-1);u<c;u++)s[u-1]=arguments[u];l[d].fn.apply(l[d].context,s)}return!0},o.prototype.on=function(t,e,n){e=new r(e,n||this),n=p?p+t:t;return this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],e]:this._events[n].push(e):(this._events[n]=e,this._eventsCount++),this},o.prototype.once=function(t,e,n){e=new r(e,n||this,!0),n=p?p+t:t;return this._events[n]?this._events[n].fn?this._events[n]=[this._events[n],e]:this._events[n].push(e):(this._events[n]=e,this._eventsCount++),this},o.prototype.removeListener=function(t,e,n,i){t=p?p+t:t;if(this._events[t])if(e){var r=this._events[t];if(r.fn)r.fn!==e||i&&!r.once||n&&r.context!==n||(0==--this._eventsCount?this._events=new l:delete this._events[t]);else{for(var o=0,a=[],s=r.length;o<s;o++)(r[o].fn!==e||i&&!r[o].once||n&&r[o].context!==n)&&a.push(r[o]);a.length?this._events[t]=1===a.length?a[0]:a:0==--this._eventsCount?this._events=new l:delete this._events[t]}}else 0==--this._eventsCount?this._events=new l:delete this._events[t];return this},o.prototype.removeAllListeners=function(t){return t?(t=p?p+t:t,this._events[t]&&(0==--this._eventsCount?this._events=new l:delete this._events[t])):(this._events=new l,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=p,o.EventEmitter=o,void 0!==e&&(e.exports=o)},{}],566:[function(t,e,n){"use strict";var i=t("parse-uri"),r=t("./async"),o=t("./Resource"),a=t("eventemitter3");function s(t,e){a.call(this),e=e||10,this.baseUrl=t||"",this.progress=0,this.loading=!1,this._progressChunk=0,this._beforeMiddleware=[],this._afterMiddleware=[],this._boundLoadResource=this._loadResource.bind(this),this._buffer=[],this._numToLoad=0,this._queue=r.queue(this._boundLoadResource,e),this.resources={}}s.prototype=Object.create(a.prototype),(e.exports=s.prototype.constructor=s).prototype.add=s.prototype.enqueue=function(t,e,n,i){if(Array.isArray(t))for(var r=0;r<t.length;++r)this.add(t[r]);else{if("object"==typeof t&&(i=e||t.callback||t.onComplete,e=(n=t).url,t=t.name||t.key||t.url),"string"!=typeof e&&(i=n,n=e,e=t),"string"!=typeof e)throw new Error("No url passed to add resource to loader.");if("function"==typeof n&&(i=n,n=null),this.resources[t])throw new Error('Resource with name "'+t+'" already exists.');e=this._prepareUrl(e),this.resources[t]=new o(t,e,n),"function"==typeof i&&this.resources[t].once("afterMiddleware",i),this._numToLoad++,this._queue.started?(this._queue.push(this.resources[t]),this._progressChunk=(100-this.progress)/(this._queue.length()+this._queue.running())):(this._buffer.push(this.resources[t]),this._progressChunk=100/this._buffer.length)}return this},s.prototype.before=s.prototype.pre=function(t){return this._beforeMiddleware.push(t),this},s.prototype.after=s.prototype.use=function(t){return this._afterMiddleware.push(t),this},s.prototype.reset=function(){for(var t in this.progress=0,this.loading=!1,this._progressChunk=0,this._buffer.length=0,this._numToLoad=0,this._queue.kill(),this._queue.started=!1,this.resources){t=this.resources[t];t.off("complete",this._onLoad,this),t.isLoading&&t.abort()}return this.resources={},this},s.prototype.load=function(t){if("function"==typeof t&&this.once("complete",t),!this._queue.started){this.emit("start",this),this.loading=!0;for(var e=0;e<this._buffer.length;++e)this._queue.push(this._buffer[e]);this._buffer.length=0}return this},s.prototype._prepareUrl=function(t){var e=i(t,{strictMode:!0});return e.protocol||!e.path||0===e.path.indexOf("//")?t:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&"/"!==t.charAt(0)?this.baseUrl+"/"+t:this.baseUrl+t},s.prototype._loadResource=function(n,t){var i=this;n._dequeue=t,r.eachSeries(this._beforeMiddleware,function(t,e){t.call(i,n,function(){e(n.isComplete?{}:null)})},function(){n.isComplete?i._onLoad(n):(n.once("complete",i._onLoad,i),n.load())})},s.prototype._onComplete=function(){this.loading=!1,this.emit("complete",this,this.resources)},s.prototype._onLoad=function(n){var i=this;r.eachSeries(this._afterMiddleware,function(t,e){t.call(i,n,e)},function(){n.emit("afterMiddleware",n),i._numToLoad--,i.progress+=i._progressChunk,i.emit("progress",i,n),n.error?i.emit("error",n.error,i,n):i.emit("load",i,n),0===i._numToLoad&&(i.progress=100,i._onComplete())}),n._dequeue()},s.LOAD_TYPE=o.LOAD_TYPE,s.XHR_RESPONSE_TYPE=o.XHR_RESPONSE_TYPE},{"./Resource":567,"./async":568,eventemitter3:565,"parse-uri":428}],567:[function(t,e,n){"use strict";var i=t("eventemitter3"),r=t("parse-uri"),o=!(!window.XDomainRequest||"withCredentials"in new XMLHttpRequest),a=null;function s(t,e,n){if(i.call(this),n=n||{},"string"!=typeof t||"string"!=typeof e)throw new Error("Both name and url are required for constructing a resource.");this.name=t,this.url=e,this.isDataUrl=0===this.url.indexOf("data:"),this.data=null,this.crossOrigin=!0===n.crossOrigin?"anonymous":n.crossOrigin,this.loadType=n.loadType||this._determineLoadType(),this.xhrType=n.xhrType,this.metadata=n.metadata||{},this.error=null,this.xhr=null,this.isJson=!1,this.isXml=!1,this.isImage=!1,this.isAudio=!1,this.isVideo=!1,this.isComplete=!1,this.isLoading=!1,this._dequeue=null,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this._boundXdrOnTimeout=this._xdrOnTimeout.bind(this)}function l(t){return t.toString().replace("object ","")}function c(t,e,n){(e=e&&0===e.indexOf(".")?e.substring(1):e)&&(t[e]=n)}s.prototype=Object.create(i.prototype),(e.exports=s.prototype.constructor=s).prototype.complete=function(){if(this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null)),this.isComplete)throw new Error("Complete called again for an already completed resource.");this.isComplete=!0,this.isLoading=!1,this.emit("complete",this)},s.prototype.abort=function(t){if(!this.error){if(this.error=new Error(t),this.xhr)this.xhr.abort();else if(this.xdr)this.xdr.abort();else if(this.data)if(void 0!==this.data.src)this.data.src="";else for(;this.data.firstChild;)this.data.removeChild(this.data.firstChild);this.complete()}},s.prototype.load=function(t){var e;if(!this.isLoading)if(this.isComplete)t&&(e=this,setTimeout(function(){t(e)},1));else switch(t&&this.once("complete",t),this.isLoading=!0,this.emit("start",this),!1!==this.crossOrigin&&"string"==typeof this.crossOrigin||(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case s.LOAD_TYPE.IMAGE:this._loadElement("image");break;case s.LOAD_TYPE.AUDIO:this._loadSourceElement("audio");break;case s.LOAD_TYPE.VIDEO:this._loadSourceElement("video");break;default:s.LOAD_TYPE.XHR;o&&this.crossOrigin?this._loadXdr():this._loadXhr()}},s.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:"image"===t&&void 0!==window.Image?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url);t="is"+t[0].toUpperCase()+t.substring(1);!1===this[t]&&(this[t]=!0),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1)},s.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:"audio"===t&&void 0!==window.Audio?this.data=new Audio:this.data=document.createElement(t),null===this.data)this.abort("Unsupported element "+t);else{if(!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var e=0;e<this.url.length;++e)this.data.appendChild(this._createSource(t,this.url[e]));else this.data.appendChild(this._createSource(t,this.url));this["is"+t[0].toUpperCase()+t.substring(1)]=!0,this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.data.addEventListener("canplaythrough",this._boundComplete,!1),this.data.load()}},s.prototype._loadXhr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var t=this.xhr=new XMLHttpRequest;t.open("GET",this.url,!0),this.xhrType===s.XHR_RESPONSE_TYPE.JSON||this.xhrType===s.XHR_RESPONSE_TYPE.DOCUMENT?t.responseType=s.XHR_RESPONSE_TYPE.TEXT:t.responseType=this.xhrType,t.addEventListener("error",this._boundXhrOnError,!1),t.addEventListener("abort",this._boundXhrOnAbort,!1),t.addEventListener("progress",this._boundOnProgress,!1),t.addEventListener("load",this._boundXhrOnLoad,!1),t.send()},s.prototype._loadXdr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var t=this.xhr=new XDomainRequest;t.timeout=5e3,t.onerror=this._boundXhrOnError,t.ontimeout=this._boundXdrOnTimeout,t.onprogress=this._boundOnProgress,t.onload=this._boundXhrOnLoad,t.open("GET",this.url,!0),setTimeout(function(){t.send()},0)},s.prototype._createSource=function(t,e,n){n=n||t+"/"+e.substr(e.lastIndexOf(".")+1);t=document.createElement("source");return t.src=e,t.type=n,t},s.prototype._onError=function(t){this.abort("Failed to load element using "+t.target.nodeName)},s.prototype._onProgress=function(t){t&&t.lengthComputable&&this.emit("progress",this,t.loaded/t.total)},s.prototype._xhrOnError=function(){var t=this.xhr;this.abort(l(t)+" Request failed. Status: "+t.status+', text: "'+t.statusText+'"')},s.prototype._xhrOnAbort=function(){this.abort(l(this.xhr)+" Request was aborted by the user.")},s.prototype._xdrOnTimeout=function(){this.abort(l(this.xhr)+" Request timed out.")},s.prototype._xhrOnLoad=function(){var t,e,n=this.xhr,i=void 0===n.status?n.status:200;if(200===i||204===i||0===i&&0<n.responseText.length){if(this.xhrType===s.XHR_RESPONSE_TYPE.TEXT)this.data=n.responseText;else if(this.xhrType===s.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(n.responseText),this.isJson=!0}catch(t){return void this.abort("Error trying to parse loaded json:",t)}else if(this.xhrType===s.XHR_RESPONSE_TYPE.DOCUMENT)try{window.DOMParser?(t=new DOMParser,this.data=t.parseFromString(n.responseText,"text/xml")):((e=document.createElement("div")).innerHTML=n.responseText,this.data=e),this.isXml=!0}catch(t){return void this.abort("Error trying to parse loaded xml:",t)}else this.data=n.response||n.responseText;this.complete()}else this.abort("["+n.status+"]"+n.statusText+":"+n.responseURL)},s.prototype._determineCrossOrigin=function(t,e){if(0===t.indexOf("data:"))return"";e=e||window.location,(a=a||document.createElement("a")).href=t;var n=!(t=r(a.href,{strictMode:!0})).port&&""===e.port||t.port===e.port,i=t.protocol?t.protocol+":":"";return t.host===e.hostname&&n&&i===e.protocol?"":"anonymous"},s.prototype._determineXhrType=function(){return s._xhrTypeMap[this._getExtension()]||s.XHR_RESPONSE_TYPE.TEXT},s.prototype._determineLoadType=function(){return s._loadTypeMap[this._getExtension()]||s.LOAD_TYPE.XHR},s.prototype._getExtension=function(){var t,e=this.url;return(this.isDataUrl?(t=e.indexOf("/"),e.substring(t+1,e.indexOf(";",t))):(e=-1!==(t=e.indexOf("?"))?e.substring(0,t):e).substring(e.lastIndexOf(".")+1)).toLowerCase()},s.prototype._getMimeFromXhrType=function(t){switch(t){case s.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case s.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case s.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case s.XHR_RESPONSE_TYPE.JSON:return"application/json";case s.XHR_RESPONSE_TYPE.DEFAULT:case s.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},s.LOAD_TYPE={XHR:1,IMAGE:2,AUDIO:3,VIDEO:4},s.XHR_RESPONSE_TYPE={DEFAULT:"text",BUFFER:"arraybuffer",BLOB:"blob",DOCUMENT:"document",JSON:"json",TEXT:"text"},s._loadTypeMap={gif:s.LOAD_TYPE.IMAGE,png:s.LOAD_TYPE.IMAGE,bmp:s.LOAD_TYPE.IMAGE,jpg:s.LOAD_TYPE.IMAGE,jpeg:s.LOAD_TYPE.IMAGE,tif:s.LOAD_TYPE.IMAGE,tiff:s.LOAD_TYPE.IMAGE,webp:s.LOAD_TYPE.IMAGE,tga:s.LOAD_TYPE.IMAGE,"svg+xml":s.LOAD_TYPE.IMAGE},s._xhrTypeMap={xhtml:s.XHR_RESPONSE_TYPE.DOCUMENT,html:s.XHR_RESPONSE_TYPE.DOCUMENT,htm:s.XHR_RESPONSE_TYPE.DOCUMENT,xml:s.XHR_RESPONSE_TYPE.DOCUMENT,tmx:s.XHR_RESPONSE_TYPE.DOCUMENT,tsx:s.XHR_RESPONSE_TYPE.DOCUMENT,svg:s.XHR_RESPONSE_TYPE.DOCUMENT,gif:s.XHR_RESPONSE_TYPE.BLOB,png:s.XHR_RESPONSE_TYPE.BLOB,bmp:s.XHR_RESPONSE_TYPE.BLOB,jpg:s.XHR_RESPONSE_TYPE.BLOB,jpeg:s.XHR_RESPONSE_TYPE.BLOB,tif:s.XHR_RESPONSE_TYPE.BLOB,tiff:s.XHR_RESPONSE_TYPE.BLOB,webp:s.XHR_RESPONSE_TYPE.BLOB,tga:s.XHR_RESPONSE_TYPE.BLOB,json:s.XHR_RESPONSE_TYPE.JSON,text:s.XHR_RESPONSE_TYPE.TEXT,txt:s.XHR_RESPONSE_TYPE.TEXT},s.setExtensionLoadType=function(t,e){c(s._loadTypeMap,t,e)},s.setExtensionXhrType=function(t,e){c(s._xhrTypeMap,t,e)}},{eventemitter3:565,"parse-uri":428}],568:[function(t,e,n){"use strict";function o(){}e.exports={eachSeries:function(n,i,r){var o=0,a=n.length;!function t(e){e||o===a?r&&r(e):i(n[o++],t)}()},queue:function(e,t){if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var n=0,i={_tasks:[],concurrency:t,saturated:o,unsaturated:o,buffer:t/4,empty:o,drain:o,error:o,started:!1,paused:!1,push:function(t,e){r(t,!1,e)},kill:function(){i.drain=o,i._tasks=[]},unshift:function(t,e){r(t,!0,e)},process:function(){for(;!i.paused&&n<i.concurrency&&i._tasks.length;){var t=i._tasks.shift();0===i._tasks.length&&i.empty(),(n+=1)===i.concurrency&&i.saturated(),e(t.data,function(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}}(function(t){return function(){--n,t.callback.apply(t,arguments),null!=arguments[0]&&i.error(arguments[0],t.data),n<=i.concurrency-i.buffer&&i.unsaturated(),i.idle()&&i.drain(),i.process()}}(t)))}},length:function(){return i._tasks.length},running:function(){return n},idle:function(){return i._tasks.length+n===0},pause:function(){!0!==i.paused&&(i.paused=!0)},resume:function(){if(!1!==i.paused){i.paused=!1;for(var t=1;t<=i.concurrency;t++)i.process()}}};function r(t,e,n){if(null!=n&&"function"!=typeof n)throw new Error("task callback must be a function");i.started=!0,null==t&&i.idle()?setTimeout(function(){i.drain()},1):(t={data:t,callback:"function"==typeof n?n:o},e?i._tasks.unshift(t):i._tasks.push(t),setTimeout(function(){i.process()},1))}return i}}},{}],569:[function(t,e,n){"use strict";e.exports={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encodeBinary:function(t){for(var e,n="",i=new Array(4),r=0,o=0;r<t.length;){for(e=new Array(3),o=0;o<e.length;o++)r<t.length?e[o]=255&t.charCodeAt(r++):e[o]=0;switch(i[0]=e[0]>>2,i[1]=(3&e[0])<<4|e[1]>>4,i[2]=(15&e[1])<<2|e[2]>>6,i[3]=63&e[2],r-(t.length-1)){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64}for(o=0;o<i.length;o++)n+=this._keyStr.charAt(i[o])}return n}}},{}],570:[function(t,e,n){"use strict";e.exports=t("./Loader"),e.exports.Resource=t("./Resource"),e.exports.middleware={caching:{memory:t("./middlewares/caching/memory")},parsing:{blob:t("./middlewares/parsing/blob")}},e.exports.async=t("./async")},{"./Loader":566,"./Resource":567,"./async":568,"./middlewares/caching/memory":571,"./middlewares/parsing/blob":572}],571:[function(t,e,n){"use strict";var i={};e.exports=function(){return function(t,e){i[t.url]?(t.data=i[t.url],t.complete()):t.once("complete",function(){i[this.url]=this.data}),e()}}},{}],572:[function(t,e,n){"use strict";var r=t("../../Resource"),o=t("../../b64"),a=window.URL||window.webkitURL;e.exports=function(){return function(t,e){if(t.data&&(t.xhr&&t.xhrType===r.XHR_RESPONSE_TYPE.BLOB))if(window.Blob&&"string"!=typeof t.data){var n;if(0===t.data.type.indexOf("image"))return n=a.createObjectURL(t.data),t.blob=t.data,t.data=new Image,t.data.src=n,t.isImage=!0,void(t.data.onload=function(){a.revokeObjectURL(n),t.data.onload=null,e()})}else{var i=t.xhr.getResponseHeader("content-type");if(i&&0===i.indexOf("image"))return t.data=new Image,t.data.src="data:"+i+";base64,"+o.encodeBinary(t.xhr.responseText),t.isImage=!0,void(t.data.onload=function(){t.data.onload=null,e()})}e()}}},{"../../Resource":567,"../../b64":569}],573:[function(e,n,i){!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):void 0!==i?n.exports=t(e("jquery")):t(jQuery)}(function(c){"use strict";var i,o=window.Slick||{};i=0,(o=function(t,e){var n=this;n.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:c(t),appendDots:c(t),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return c('<button type="button" />').text(e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},n.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},c.extend(n,n.initials),n.activeBreakpoint=null,n.animType=null,n.animProp=null,n.breakpoints=[],n.breakpointSettings=[],n.cssTransitions=!1,n.focussed=!1,n.interrupted=!1,n.hidden="hidden",n.paused=!0,n.positionProp=null,n.respondTo=null,n.rowCount=1,n.shouldClick=!0,n.$slider=c(t),n.$slidesCache=null,n.transformType=null,n.transitionType=null,n.visibilityChange="visibilitychange",n.windowWidth=0,n.windowTimer=null,t=c(t).data("slick")||{},n.options=c.extend({},n.defaults,e,t),n.currentSlide=n.options.initialSlide,n.originalSettings=n.options,void 0!==document.mozHidden?(n.hidden="mozHidden",n.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(n.hidden="webkitHidden",n.visibilityChange="webkitvisibilitychange"),n.autoPlay=c.proxy(n.autoPlay,n),n.autoPlayClear=c.proxy(n.autoPlayClear,n),n.autoPlayIterator=c.proxy(n.autoPlayIterator,n),n.changeSlide=c.proxy(n.changeSlide,n),n.clickHandler=c.proxy(n.clickHandler,n),n.selectHandler=c.proxy(n.selectHandler,n),n.setPosition=c.proxy(n.setPosition,n),n.swipeHandler=c.proxy(n.swipeHandler,n),n.dragHandler=c.proxy(n.dragHandler,n),n.keyHandler=c.proxy(n.keyHandler,n),n.instanceUid=i++,n.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,n.registerBreakpoints(),n.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},o.prototype.addSlide=o.prototype.slickAdd=function(t,e,n){var i=this;if("boolean"==typeof e)n=e,e=null;else if(e<0||e>=i.slideCount)return!1;i.unload(),"number"==typeof e?0===e&&0===i.$slides.length?c(t).appendTo(i.$slideTrack):n?c(t).insertBefore(i.$slides.eq(e)):c(t).insertAfter(i.$slides.eq(e)):!0===n?c(t).prependTo(i.$slideTrack):c(t).appendTo(i.$slideTrack),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slides.each(function(t,e){c(e).attr("data-slick-index",t)}),i.$slidesCache=i.$slides,i.reinit()},o.prototype.animateHeight=function(){var t;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(t=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.animate({height:t},this.options.speed))},o.prototype.animateSlide=function(t,e){var n={},i=this;i.animateHeight(),!0===i.options.rtl&&!1===i.options.vertical&&(t=-t),!1===i.transformsEnabled?!1===i.options.vertical?i.$slideTrack.animate({left:t},i.options.speed,i.options.easing,e):i.$slideTrack.animate({top:t},i.options.speed,i.options.easing,e):!1===i.cssTransitions?(!0===i.options.rtl&&(i.currentLeft=-i.currentLeft),c({animStart:i.currentLeft}).animate({animStart:t},{duration:i.options.speed,easing:i.options.easing,step:function(t){t=Math.ceil(t),!1===i.options.vertical?n[i.animType]="translate("+t+"px, 0px)":n[i.animType]="translate(0px,"+t+"px)",i.$slideTrack.css(n)},complete:function(){e&&e.call()}})):(i.applyTransition(),t=Math.ceil(t),!1===i.options.vertical?n[i.animType]="translate3d("+t+"px, 0px, 0px)":n[i.animType]="translate3d(0px,"+t+"px, 0px)",i.$slideTrack.css(n),e&&setTimeout(function(){i.disableTransition(),e.call()},i.options.speed))},o.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t=t&&null!==t?c(t).not(this.$slider):t},o.prototype.asNavFor=function(e){var t=this.getNavTarget();null!==t&&"object"==typeof t&&t.each(function(){var t=c(this).slick("getSlick");t.unslicked||t.slideHandler(e,!0)})},o.prototype.applyTransition=function(t){var e=this,n={};!1===e.options.fade?n[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:n[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,(!1===e.options.fade?e.$slideTrack:e.$slides.eq(t)).css(n)},o.prototype.autoPlay=function(){this.autoPlayClear(),this.slideCount>this.options.slidesToShow&&(this.autoPlayTimer=setInterval(this.autoPlayIterator,this.options.autoplaySpeed))},o.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},o.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(!1===t.options.infinite&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1==0)&&(t.direction=1)),t.slideHandler(e))},o.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=c(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=c(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},o.prototype.buildDots=function(){var t,e,n=this;if(!0===n.options.dots&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),e=c("<ul />").addClass(n.options.dotsClass),t=0;t<=n.getDotCount();t+=1)e.append(c("<li />").append(n.options.customPaging.call(this,n,t)));n.$dots=e.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},o.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each(function(t,e){c(e).attr("data-slick-index",t).data("originalStyling",c(e).attr("style")||"")}),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?c('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),c("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},o.prototype.buildRows=function(){var t,e,n,i=this,r=document.createDocumentFragment(),o=i.$slider.children();if(0<i.options.rows){for(n=i.options.slidesPerRow*i.options.rows,e=Math.ceil(o.length/n),t=0;t<e;t++){for(var a=document.createElement("div"),s=0;s<i.options.rows;s++){for(var l=document.createElement("div"),c=0;c<i.options.slidesPerRow;c++){var u=t*n+(s*i.options.slidesPerRow+c);o.get(u)&&l.appendChild(o.get(u))}a.appendChild(l)}r.appendChild(a)}i.$slider.empty().append(r),i.$slider.children().children().children().css({width:100/i.options.slidesPerRow+"%",display:"inline-block"})}},o.prototype.checkResponsive=function(t,e){var n,i,r,o=this,a=!1,s=o.$slider.width(),l=window.innerWidth||c(window).width();if("window"===o.respondTo?r=l:"slider"===o.respondTo?r=s:"min"===o.respondTo&&(r=Math.min(l,s)),o.options.responsive&&o.options.responsive.length&&null!==o.options.responsive){for(n in i=null,o.breakpoints)o.breakpoints.hasOwnProperty(n)&&(!1===o.originalSettings.mobileFirst?r<o.breakpoints[n]&&(i=o.breakpoints[n]):r>o.breakpoints[n]&&(i=o.breakpoints[n]));null!==i?null!==o.activeBreakpoint&&i===o.activeBreakpoint&&!e||(o.activeBreakpoint=i,"unslick"===o.breakpointSettings[i]?o.unslick(i):(o.options=c.extend({},o.originalSettings,o.breakpointSettings[i]),!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t)),a=i):null!==o.activeBreakpoint&&(o.activeBreakpoint=null,o.options=o.originalSettings,!0===t&&(o.currentSlide=o.options.initialSlide),o.refresh(t),a=i),t||!1===a||o.$slider.trigger("breakpoint",[o,a])}},o.prototype.changeSlide=function(t,e){var n,i=this,r=c(t.currentTarget);switch(r.is("a")&&t.preventDefault(),r.is("li")||(r=r.closest("li")),n=i.slideCount%i.options.slidesToScroll!=0?0:(i.slideCount-i.currentSlide)%i.options.slidesToScroll,t.data.message){case"previous":o=0==n?i.options.slidesToScroll:i.options.slidesToShow-n,i.slideCount>i.options.slidesToShow&&i.slideHandler(i.currentSlide-o,!1,e);break;case"next":o=0==n?i.options.slidesToScroll:n,i.slideCount>i.options.slidesToShow&&i.slideHandler(i.currentSlide+o,!1,e);break;case"index":var o=0===t.data.index?0:t.data.index||r.index()*i.options.slidesToScroll;i.slideHandler(i.checkNavigable(o),!1,e),r.children().trigger("focus");break;default:return}},o.prototype.checkNavigable=function(t){var e=this.getNavigableIndexes(),n=0;if(t>e[e.length-1])t=e[e.length-1];else for(var i in e){if(t<e[i]){t=n;break}n=e[i]}return t},o.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(c("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",c.proxy(t.interrupt,t,!0)).off("mouseleave.slick",c.proxy(t.interrupt,t,!1)),!0===t.options.accessibility)&&t.$dots.off("keydown.slick",t.keyHandler),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility)&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow)&&t.$nextArrow.off("keydown.slick",t.keyHandler),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),c(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().off("click.slick",t.selectHandler),c(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),c(window).off("resize.slick.slick-"+t.instanceUid,t.resize),c("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),c(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},o.prototype.cleanUpSlideEvents=function(){this.$list.off("mouseenter.slick",c.proxy(this.interrupt,this,!0)),this.$list.off("mouseleave.slick",c.proxy(this.interrupt,this,!1))},o.prototype.cleanUpRows=function(){var t;0<this.options.rows&&((t=this.$slides.children().children()).removeAttr("style"),this.$slider.empty().append(t))},o.prototype.clickHandler=function(t){!1===this.shouldClick&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},o.prototype.destroy=function(t){var e=this;e.autoPlayClear(),e.touchObject={},e.cleanUpEvents(),c(".slick-cloned",e.$slider).detach(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.$prevArrow.length&&(e.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.prevArrow))&&e.$prevArrow.remove(),e.$nextArrow&&e.$nextArrow.length&&(e.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),e.htmlExpr.test(e.options.nextArrow))&&e.$nextArrow.remove(),e.$slides&&(e.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){c(this).attr("style",c(this).data("originalStyling"))}),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.detach(),e.$list.detach(),e.$slider.append(e.$slides)),e.cleanUpRows(),e.$slider.removeClass("slick-slider"),e.$slider.removeClass("slick-initialized"),e.$slider.removeClass("slick-dotted"),e.unslicked=!0,t||e.$slider.trigger("destroy",[e])},o.prototype.disableTransition=function(t){var e={};e[this.transitionType]="",(!1===this.options.fade?this.$slideTrack:this.$slides.eq(t)).css(e)},o.prototype.fadeSlide=function(t,e){var n=this;!1===n.cssTransitions?(n.$slides.eq(t).css({zIndex:n.options.zIndex}),n.$slides.eq(t).animate({opacity:1},n.options.speed,n.options.easing,e)):(n.applyTransition(t),n.$slides.eq(t).css({opacity:1,zIndex:n.options.zIndex}),e&&setTimeout(function(){n.disableTransition(t),e.call()},n.options.speed))},o.prototype.fadeSlideOut=function(t){!1===this.cssTransitions?this.$slides.eq(t).animate({opacity:0,zIndex:this.options.zIndex-2},this.options.speed,this.options.easing):(this.applyTransition(t),this.$slides.eq(t).css({opacity:0,zIndex:this.options.zIndex-2}))},o.prototype.filterSlides=o.prototype.slickFilter=function(t){null!==t&&(this.$slidesCache=this.$slides,this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.filter(t).appendTo(this.$slideTrack),this.reinit())},o.prototype.focusHandler=function(){var n=this;n.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(t){t.stopImmediatePropagation();var e=c(this);setTimeout(function(){n.options.pauseOnFocus&&(n.focussed=e.is(":focus"),n.autoPlay())},0)})},o.prototype.getCurrent=o.prototype.slickCurrentSlide=function(){return this.currentSlide},o.prototype.getDotCount=function(){var t=this,e=0,n=0,i=0;if(!0===t.options.infinite)if(t.slideCount<=t.options.slidesToShow)++i;else for(;e<t.slideCount;)++i,e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(!0===t.options.centerMode)i=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++i,e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else i=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return i-1},o.prototype.getLeft=function(t){var e,n,i=this,r=0;return i.slideOffset=0,e=i.$slides.first().outerHeight(!0),!0===i.options.infinite?(i.slideCount>i.options.slidesToShow&&(i.slideOffset=i.slideWidth*i.options.slidesToShow*-1,n=-1,!0===i.options.vertical&&!0===i.options.centerMode&&(2===i.options.slidesToShow?n=-1.5:1===i.options.slidesToShow&&(n=-2)),r=e*i.options.slidesToShow*n),i.slideCount%i.options.slidesToScroll!=0&&t+i.options.slidesToScroll>i.slideCount&&i.slideCount>i.options.slidesToShow&&(r=t>i.slideCount?(i.slideOffset=(i.options.slidesToShow-(t-i.slideCount))*i.slideWidth*-1,(i.options.slidesToShow-(t-i.slideCount))*e*-1):(i.slideOffset=i.slideCount%i.options.slidesToScroll*i.slideWidth*-1,i.slideCount%i.options.slidesToScroll*e*-1))):t+i.options.slidesToShow>i.slideCount&&(i.slideOffset=(t+i.options.slidesToShow-i.slideCount)*i.slideWidth,r=(t+i.options.slidesToShow-i.slideCount)*e),i.slideCount<=i.options.slidesToShow&&(r=i.slideOffset=0),!0===i.options.centerMode&&i.slideCount<=i.options.slidesToShow?i.slideOffset=i.slideWidth*Math.floor(i.options.slidesToShow)/2-i.slideWidth*i.slideCount/2:!0===i.options.centerMode&&!0===i.options.infinite?i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)-i.slideWidth:!0===i.options.centerMode&&(i.slideOffset=0,i.slideOffset+=i.slideWidth*Math.floor(i.options.slidesToShow/2)),n=!1===i.options.vertical?t*i.slideWidth*-1+i.slideOffset:t*e*-1+r,!0===i.options.variableWidth&&(e=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(t):i.$slideTrack.children(".slick-slide").eq(t+i.options.slidesToShow),n=!0===i.options.rtl?e[0]?-1*(i.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,!0===i.options.centerMode)&&(e=i.slideCount<=i.options.slidesToShow||!1===i.options.infinite?i.$slideTrack.children(".slick-slide").eq(t):i.$slideTrack.children(".slick-slide").eq(t+i.options.slidesToShow+1),n=!0===i.options.rtl?e[0]?-1*(i.$slideTrack.width()-e[0].offsetLeft-e.width()):0:e[0]?-1*e[0].offsetLeft:0,n+=(i.$list.width()-e.outerWidth())/2),n},o.prototype.getOption=o.prototype.slickGetOption=function(t){return this.options[t]},o.prototype.getNavigableIndexes=function(){for(var t=this,e=0,n=0,i=[],r=!1===t.options.infinite?t.slideCount:(e=-1*t.options.slidesToScroll,n=-1*t.options.slidesToScroll,2*t.slideCount);e<r;)i.push(e),e=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return i},o.prototype.getSlick=function(){return this},o.prototype.getSlideCount=function(){var n,i=this,r=!0===i.options.centerMode?i.slideWidth*Math.floor(i.options.slidesToShow/2):0;return!0===i.options.swipeToSlide?(i.$slideTrack.find(".slick-slide").each(function(t,e){if(e.offsetLeft-r+c(e).outerWidth()/2>-1*i.swipeLeft)return n=e,!1}),Math.abs(c(n).attr("data-slick-index")-i.currentSlide)||1):i.options.slidesToScroll},o.prototype.goTo=o.prototype.slickGoTo=function(t,e){this.changeSlide({data:{message:"index",index:parseInt(t)}},e)},o.prototype.init=function(t){var e=this;c(e.$slider).hasClass("slick-initialized")||(c(e.$slider).addClass("slick-initialized"),e.buildRows(),e.buildOut(),e.setProps(),e.startLoad(),e.loadSlider(),e.initializeEvents(),e.updateArrows(),e.updateDots(),e.checkResponsive(!0),e.focusHandler()),t&&e.$slider.trigger("init",[e]),!0===e.options.accessibility&&e.initADA(),e.options.autoplay&&(e.paused=!1,e.autoPlay())},o.prototype.initADA=function(){var n=this,i=Math.ceil(n.slideCount/n.options.slidesToShow),r=n.getNavigableIndexes().filter(function(t){return 0<=t&&t<n.slideCount});n.$slides.add(n.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==n.$dots&&(n.$slides.not(n.$slideTrack.find(".slick-cloned")).each(function(t){var e=r.indexOf(t);c(this).attr({role:"tabpanel",id:"slick-slide"+n.instanceUid+t,tabindex:-1}),-1!==e&&(t="slick-slide-control"+n.instanceUid+e,c("#"+t).length)&&c(this).attr({"aria-describedby":t})}),n.$dots.attr("role","tablist").find("li").each(function(t){var e=r[t];c(this).attr({role:"presentation"}),c(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+n.instanceUid+t,"aria-controls":"slick-slide"+n.instanceUid+e,"aria-label":t+1+" of "+i,"aria-selected":null,tabindex:"-1"})}).eq(n.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var t=n.currentSlide,e=t+n.options.slidesToShow;t<e;t++)n.options.focusOnChange?n.$slides.eq(t).attr({tabindex:"0"}):n.$slides.eq(t).removeAttr("tabindex");n.activateADA()},o.prototype.initArrowEvents=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),!0===t.options.accessibility)&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler))},o.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(c("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility)&&t.$dots.on("keydown.slick",t.keyHandler),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&c("li",t.$dots).on("mouseenter.slick",c.proxy(t.interrupt,t,!0)).on("mouseleave.slick",c.proxy(t.interrupt,t,!1))},o.prototype.initSlideEvents=function(){this.options.pauseOnHover&&(this.$list.on("mouseenter.slick",c.proxy(this.interrupt,this,!0)),this.$list.on("mouseleave.slick",c.proxy(this.interrupt,this,!1)))},o.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),c(document).on(t.visibilityChange,c.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),c(window).on("orientationchange.slick.slick-"+t.instanceUid,c.proxy(t.orientationChange,t)),c(window).on("resize.slick.slick-"+t.instanceUid,c.proxy(t.resize,t)),c("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),c(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),c(t.setPosition)},o.prototype.initUI=function(){!0===this.options.arrows&&this.slideCount>this.options.slidesToShow&&(this.$prevArrow.show(),this.$nextArrow.show()),!0===this.options.dots&&this.slideCount>this.options.slidesToShow&&this.$dots.show()},o.prototype.keyHandler=function(t){t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&!0===this.options.accessibility?this.changeSlide({data:{message:!0===this.options.rtl?"next":"previous"}}):39===t.keyCode&&!0===this.options.accessibility&&this.changeSlide({data:{message:!0===this.options.rtl?"previous":"next"}}))},o.prototype.lazyLoad=function(){var t,e,n,o=this;function i(t){c("img[data-lazy]",t).each(function(){var t=c(this),e=c(this).attr("data-lazy"),n=c(this).attr("data-srcset"),i=c(this).attr("data-sizes")||o.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){t.animate({opacity:0},100,function(){n&&(t.attr("srcset",n),i)&&t.attr("sizes",i),t.attr("src",e).animate({opacity:1},200,function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),o.$slider.trigger("lazyLoaded",[o,t,e])})},r.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,t,e])},r.src=e})}if(!0===o.options.centerMode?n=!0===o.options.infinite?(e=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(e=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),o.options.slidesToShow/2+1+2+o.currentSlide):(e=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,n=Math.ceil(e+o.options.slidesToShow),!0===o.options.fade&&(0<e&&e--,n<=o.slideCount)&&n++),t=o.$slider.find(".slick-slide").slice(e,n),"anticipated"===o.options.lazyLoad)for(var r=e-1,a=n,s=o.$slider.find(".slick-slide"),l=0;l<o.options.slidesToScroll;l++)r<0&&(r=o.slideCount-1),t=(t=t.add(s.eq(r))).add(s.eq(a)),r--,a++;i(t),o.slideCount<=o.options.slidesToShow?i(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?i(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&i(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},o.prototype.loadSlider=function(){this.setPosition(),this.$slideTrack.css({opacity:1}),this.$slider.removeClass("slick-loading"),this.initUI(),"progressive"===this.options.lazyLoad&&this.progressiveLazyLoad()},o.prototype.next=o.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},o.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},o.prototype.pause=o.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},o.prototype.play=o.prototype.slickPlay=function(){this.autoPlay(),this.options.autoplay=!0,this.paused=!1,this.focussed=!1,this.interrupted=!1},o.prototype.postSlide=function(t){var e=this;e.unslicked||(e.$slider.trigger("afterChange",[e,t]),e.animating=!1,e.slideCount>e.options.slidesToShow&&e.setPosition(),e.swipeLeft=null,e.options.autoplay&&e.autoPlay(),!0===e.options.accessibility&&(e.initADA(),e.options.focusOnChange)&&c(e.$slides.get(e.currentSlide)).attr("tabindex",0).focus())},o.prototype.prev=o.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},o.prototype.preventDefault=function(t){t.preventDefault()},o.prototype.progressiveLazyLoad=function(t){t=t||1;var e,n,i,r,o=this,a=c("img[data-lazy]",o.$slider);a.length?(e=a.first(),n=e.attr("data-lazy"),i=e.attr("data-srcset"),r=e.attr("data-sizes")||o.$slider.attr("data-sizes"),(a=document.createElement("img")).onload=function(){i&&(e.attr("srcset",i),r)&&e.attr("sizes",r),e.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===o.options.adaptiveHeight&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,e,n]),o.progressiveLazyLoad()},a.onerror=function(){t<3?setTimeout(function(){o.progressiveLazyLoad(t+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,e,n]),o.progressiveLazyLoad())},a.src=n):o.$slider.trigger("allImagesLoaded",[o])},o.prototype.refresh=function(t){var e=this,n=e.slideCount-e.options.slidesToShow;!e.options.infinite&&e.currentSlide>n&&(e.currentSlide=n),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),n=e.currentSlide,e.destroy(!0),c.extend(e,e.initials,{currentSlide:n}),e.init(),t||e.changeSlide({data:{message:"index",index:n}},!1)},o.prototype.registerBreakpoints=function(){var t,e,n,i=this,r=i.options.responsive||null;if("array"===c.type(r)&&r.length){for(t in i.respondTo=i.options.respondTo||"window",r)if(n=i.breakpoints.length-1,r.hasOwnProperty(t)){for(e=r[t].breakpoint;0<=n;)i.breakpoints[n]&&i.breakpoints[n]===e&&i.breakpoints.splice(n,1),n--;i.breakpoints.push(e),i.breakpointSettings[e]=r[t].settings}i.breakpoints.sort(function(t,e){return i.options.mobileFirst?t-e:e-t})}},o.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&c(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},o.prototype.resize=function(){var t=this;c(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=c(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()},50))},o.prototype.removeSlide=o.prototype.slickRemove=function(t,e,n){var i=this;if(t="boolean"==typeof t?!0===(e=t)?0:i.slideCount-1:!0===e?--t:t,i.slideCount<1||t<0||t>i.slideCount-1)return!1;i.unload(),(!0===n?i.$slideTrack.children():i.$slideTrack.children(this.options.slide).eq(t)).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,i.reinit()},o.prototype.setCSS=function(t){var e,n,i=this,r={};!0===i.options.rtl&&(t=-t),e="left"==i.positionProp?Math.ceil(t)+"px":"0px",n="top"==i.positionProp?Math.ceil(t)+"px":"0px",r[i.positionProp]=t,!1!==i.transformsEnabled&&(!(r={})===i.cssTransitions?r[i.animType]="translate("+e+", "+n+")":r[i.animType]="translate3d("+e+", "+n+", 0px)"),i.$slideTrack.css(r)},o.prototype.setDimensions=function(){var t=this,e=(!1===t.options.vertical?!0===t.options.centerMode&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),!0===t.options.centerMode&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),!1===t.options.vertical&&!1===t.options.variableWidth?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):!0===t.options.variableWidth?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length))),t.$slides.first().outerWidth(!0)-t.$slides.first().width());!1===t.options.variableWidth&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},o.prototype.setFade=function(){var n,i=this;i.$slides.each(function(t,e){n=i.slideWidth*t*-1,!0===i.options.rtl?c(e).css({position:"relative",right:n,top:0,zIndex:i.options.zIndex-2,opacity:0}):c(e).css({position:"relative",left:n,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},o.prototype.setHeight=function(){var t;1===this.options.slidesToShow&&!0===this.options.adaptiveHeight&&!1===this.options.vertical&&(t=this.$slides.eq(this.currentSlide).outerHeight(!0),this.$list.css("height",t))},o.prototype.setOption=o.prototype.slickSetOption=function(){var t,e,n,i,r,o=this,a=!1;if("object"===c.type(arguments[0])?(n=arguments[0],a=arguments[1],r="multiple"):"string"===c.type(arguments[0])&&(n=arguments[0],i=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===c.type(arguments[1])?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)o.options[n]=i;else if("multiple"===r)c.each(n,function(t,e){o.options[t]=e});else if("responsive"===r)for(e in i)if("array"!==c.type(o.options.responsive))o.options.responsive=[i[e]];else{for(t=o.options.responsive.length-1;0<=t;)o.options.responsive[t].breakpoint===i[e].breakpoint&&o.options.responsive.splice(t,1),t--;o.options.responsive.push(i[e])}a&&(o.unload(),o.reinit())},o.prototype.setPosition=function(){this.setDimensions(),this.setHeight(),!1===this.options.fade?this.setCSS(this.getLeft(this.currentSlide)):this.setFade(),this.$slider.trigger("setPosition",[this])},o.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=!0===t.options.vertical?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||!0===t.options.useCSS&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty)&&void 0===e.webkitPerspective&&(t.animType=!1),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty)&&void 0===e.MozPerspective&&(t.animType=!1),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty)&&void 0===e.webkitPerspective&&(t.animType=!1),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform)&&(t.animType=!1),void 0!==e.transform&&!1!==t.animType&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&!1!==t.animType},o.prototype.setSlideClasses=function(t){var e,n,i,r=this,o=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");r.$slides.eq(t).addClass("slick-current"),!0===r.options.centerMode?(n=r.options.slidesToShow%2==0?1:0,i=Math.floor(r.options.slidesToShow/2),!0===r.options.infinite&&((i<=t&&t<=r.slideCount-1-i?r.$slides.slice(t-i+n,t+i+1):(e=r.options.slidesToShow+t,o.slice(e-i+1+n,e+i+2))).addClass("slick-active").attr("aria-hidden","false"),0===t?o.eq(o.length-1-r.options.slidesToShow).addClass("slick-center"):t===r.slideCount-1&&o.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(t).addClass("slick-center")):(0<=t&&t<=r.slideCount-r.options.slidesToShow?r.$slides.slice(t,t+r.options.slidesToShow):o.length<=r.options.slidesToShow?o:(n=r.slideCount%r.options.slidesToShow,e=!0===r.options.infinite?r.options.slidesToShow+t:t,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-t<r.options.slidesToShow?o.slice(e-(r.options.slidesToShow-n),e+n):o.slice(e,e+r.options.slidesToShow))).addClass("slick-active").attr("aria-hidden","false"),"ondemand"!==r.options.lazyLoad&&"anticipated"!==r.options.lazyLoad||r.lazyLoad()},o.prototype.setupInfinite=function(){var t,e,n,i=this;if(!0===i.options.fade&&(i.options.centerMode=!1),!0===i.options.infinite&&!1===i.options.fade&&(e=null,i.slideCount>i.options.slidesToShow)){for(n=!0===i.options.centerMode?i.options.slidesToShow+1:i.options.slidesToShow,t=i.slideCount;t>i.slideCount-n;--t)c(i.$slides[e=t-1]).clone(!0).attr("id","").attr("data-slick-index",e-i.slideCount).prependTo(i.$slideTrack).addClass("slick-cloned");for(t=0;t<n+i.slideCount;t+=1)e=t,c(i.$slides[e]).clone(!0).attr("id","").attr("data-slick-index",e+i.slideCount).appendTo(i.$slideTrack).addClass("slick-cloned");i.$slideTrack.find(".slick-cloned").find("[id]").each(function(){c(this).attr("id","")})}},o.prototype.interrupt=function(t){t||this.autoPlay(),this.interrupted=t},o.prototype.selectHandler=function(t){t=c(t.target).is(".slick-slide")?c(t.target):c(t.target).parents(".slick-slide"),t=(t=parseInt(t.attr("data-slick-index")))||0;this.slideCount<=this.options.slidesToShow?this.slideHandler(t,!1,!0):this.slideHandler(t)},o.prototype.slideHandler=function(t,e,n){var i,r,o,a=this;e=e||!1,!0===a.animating&&!0===a.options.waitForAnimate||!0===a.options.fade&&a.currentSlide===t||(!1===e&&a.asNavFor(t),i=t,e=a.getLeft(i),o=a.getLeft(a.currentSlide),a.currentLeft=null===a.swipeLeft?o:a.swipeLeft,!1===a.options.infinite&&!1===a.options.centerMode&&(t<0||t>a.getDotCount()*a.options.slidesToScroll)||!1===a.options.infinite&&!0===a.options.centerMode&&(t<0||t>a.slideCount-a.options.slidesToScroll)?!1===a.options.fade&&(i=a.currentSlide,!0!==n&&a.slideCount>a.options.slidesToShow?a.animateSlide(o,function(){a.postSlide(i)}):a.postSlide(i)):(a.options.autoplay&&clearInterval(a.autoPlayTimer),r=i<0?a.slideCount%a.options.slidesToScroll!=0?a.slideCount-a.slideCount%a.options.slidesToScroll:a.slideCount+i:i>=a.slideCount?a.slideCount%a.options.slidesToScroll!=0?0:i-a.slideCount:i,a.animating=!0,a.$slider.trigger("beforeChange",[a,a.currentSlide,r]),t=a.currentSlide,a.currentSlide=r,a.setSlideClasses(a.currentSlide),a.options.asNavFor&&(o=(o=a.getNavTarget()).slick("getSlick")).slideCount<=o.options.slidesToShow&&o.setSlideClasses(a.currentSlide),a.updateDots(),a.updateArrows(),!0===a.options.fade?(!0!==n?(a.fadeSlideOut(t),a.fadeSlide(r,function(){a.postSlide(r)})):a.postSlide(r),a.animateHeight()):!0!==n&&a.slideCount>a.options.slidesToShow?a.animateSlide(e,function(){a.postSlide(r)}):a.postSlide(r)))},o.prototype.startLoad=function(){var t=this;!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},o.prototype.swipeDirection=function(){var t=this.touchObject.startX-this.touchObject.curX,e=this.touchObject.startY-this.touchObject.curY,e=Math.atan2(e,t),t=Math.round(180*e/Math.PI);return(t=t<0?360-Math.abs(t):t)<=45&&0<=t||t<=360&&315<=t?!1===this.options.rtl?"left":"right":135<=t&&t<=225?!1===this.options.rtl?"right":"left":!0===this.options.verticalSwiping?35<=t&&t<=135?"down":"up":"vertical"},o.prototype.swipeEnd=function(t){var e,n,i=this;if(i.dragging=!1,i.swiping=!1,i.scrolling)return i.scrolling=!1;if(i.interrupted=!1,i.shouldClick=!(10<i.touchObject.swipeLength),void 0===i.touchObject.curX)return!1;if(!0===i.touchObject.edgeHit&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(n=i.swipeDirection()){case"left":case"down":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":e=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1}"vertical"!=n&&(i.slideHandler(e),i.touchObject={},i.$slider.trigger("swipe",[i,n]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},o.prototype.swipeHandler=function(t){var e=this;if(!(!1===e.options.swipe||"ontouchend"in document&&!1===e.options.swipe||!1===e.options.draggable&&-1!==t.type.indexOf("mouse")))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,!0===e.options.verticalSwiping&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},o.prototype.swipeMove=function(t){var e,n,i=this,r=void 0!==t.originalEvent?t.originalEvent.touches:null;return!(!i.dragging||i.scrolling||r&&1!==r.length)&&(e=i.getLeft(i.currentSlide),i.touchObject.curX=void 0!==r?r[0].pageX:t.clientX,i.touchObject.curY=void 0!==r?r[0].pageY:t.clientY,i.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(i.touchObject.curX-i.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(i.touchObject.curY-i.touchObject.startY,2))),!i.options.verticalSwiping&&!i.swiping&&4<r?!(i.scrolling=!0):(!0===i.options.verticalSwiping&&(i.touchObject.swipeLength=r),r=i.swipeDirection(),void 0!==t.originalEvent&&4<i.touchObject.swipeLength&&(i.swiping=!0,t.preventDefault()),t=(!1===i.options.rtl?1:-1)*(i.touchObject.curX>i.touchObject.startX?1:-1),!0===i.options.verticalSwiping&&(t=i.touchObject.curY>i.touchObject.startY?1:-1),n=i.touchObject.swipeLength,(i.touchObject.edgeHit=!1)===i.options.infinite&&(0===i.currentSlide&&"right"===r||i.currentSlide>=i.getDotCount()&&"left"===r)&&(n=i.touchObject.swipeLength*i.options.edgeFriction,i.touchObject.edgeHit=!0),!1===i.options.vertical?i.swipeLeft=e+n*t:i.swipeLeft=e+n*(i.$list.height()/i.listWidth)*t,!0===i.options.verticalSwiping&&(i.swipeLeft=e+n*t),!0!==i.options.fade&&!1!==i.options.touchMove&&(!0===i.animating?(i.swipeLeft=null,!1):void i.setCSS(i.swipeLeft))))},o.prototype.swipeStart=function(t){var e,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return!(n.touchObject={});void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==e?e.pageX:t.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==e?e.pageY:t.clientY,n.dragging=!0},o.prototype.unfilterSlides=o.prototype.slickUnfilter=function(){null!==this.$slidesCache&&(this.unload(),this.$slideTrack.children(this.options.slide).detach(),this.$slidesCache.appendTo(this.$slideTrack),this.reinit())},o.prototype.unload=function(){var t=this;c(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},o.prototype.unslick=function(t){this.$slider.trigger("unslick",[this,t]),this.destroy()},o.prototype.updateArrows=function(){var t=this;Math.floor(t.options.slidesToShow/2);!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&!t.options.infinite&&(t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===t.currentSlide?(t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(t.currentSlide>=t.slideCount-t.options.slidesToShow&&!1===t.options.centerMode||t.currentSlide>=t.slideCount-1&&!0===t.options.centerMode)&&(t.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),t.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},o.prototype.updateDots=function(){null!==this.$dots&&(this.$dots.find("li").removeClass("slick-active").end(),this.$dots.find("li").eq(Math.floor(this.currentSlide/this.options.slidesToScroll)).addClass("slick-active"))},o.prototype.visibility=function(){this.options.autoplay&&(document[this.hidden]?this.interrupted=!0:this.interrupted=!1)},c.fn.slick=function(){for(var t,e=arguments[0],n=Array.prototype.slice.call(arguments,1),i=this.length,r=0;r<i;r++)if("object"==typeof e||void 0===e?this[r].slick=new o(this[r],e):t=this[r].slick[e].apply(this[r].slick,n),void 0!==t)return t;return this}})},{jquery:422}],574:[function(O,I,F){var n,B,N,U,z,V,e,G,H,W,i,r,$,q,X,Y,Z,J,K,o,Q,tt,a,et,nt,it,s,rt,l,c,u,h,ot,d,p,f,m,g,at,st,lt,ct,ut,ht,dt,pt,ft,mt,gt,vt,yt,_t,bt,xt,wt,Tt,St,Ct,Et,Mt,Pt,kt,At,Ot,Rt,v,y,Lt,Dt,jt,_,b,It,Ft,Bt,x,Nt,Ut,Vt,Gt,Ht,Wt,$t,qt,Xt,Yt,Zt,Jt,Kt,Qt,te,ee,ne,ie,re,oe,ae,se,le,ce,ue,he,de,pe,fe,me,ge,ve,ye,_e,be,xe,we,Te,Se,Ce,w,T,Ee,Me,Pe,ke,Ae,Oe,Re,Le,De,je,Ie,Fe,Be,Ne,R,Ue,L,D,j,ze,Ve,Ge,He,We,$e,qe,Xe,Ye,Ze,Je,Ke,Qe,tn,en,nn,rn,on,an,sn,ln,cn,un,hn,dn,pn,fn,mn,gn,vn,S,yn,_n,bn,xn,wn,Tn,Sn,C,Cn,En,Mn,Pn,kn,E,M,An,zt={REVISION:"77"};function On(t,e,n){return n<0&&(n+=1),1<n&&--n,n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}function Rn(t,e){return t.distance-e.distance}function Ln(t,e,n,i){if(!1!==t.visible&&(t.raycast(e,n),!0===i))for(var r=t.children,o=0,a=r.length;o<a;o++)Ln(r[o],e,n,!0)}function Dn(t,e,n,i,r,o,a){return zt.Triangle.barycoordFromPoint(t,e,n,i,qe),r.multiplyScalar(qe.x),o.multiplyScalar(qe.y),a.multiplyScalar(qe.z),r.add(o).add(a),r.clone()}function jn(t,e,n,i,r,o,a){var s=t.material,n=s.side===zt.BackSide?n.intersectTriangle(o,r,i,!0,a):n.intersectTriangle(i,r,o,s.side!==zt.DoubleSide,a);if(null===n)return null;Ye.copy(a),Ye.applyMatrix4(t.matrixWorld);i=e.ray.origin.distanceTo(Ye);return i<e.near||i>e.far?null:{distance:i,point:Ye.clone(),object:t}}function In(t,e,n,i,r,o,a,s){L.fromArray(i,3*o),D.fromArray(i,3*a),j.fromArray(i,3*s);i=jn(t,e,n,L,D,j,Xe);return i&&(r&&(He.fromArray(r,2*o),We.fromArray(r,2*a),$e.fromArray(r,2*s),i.uv=Dn(Xe,L,D,j,He,We,$e)),i.face=new zt.Face3(o,a,s,zt.Triangle.normal(L,D,j)),i.faceIndex=o),i}function Fn(t){switch(t){case zt.LinearEncoding:return["Linear","( value )"];case zt.sRGBEncoding:return["sRGB","( value )"];case zt.RGBEEncoding:return["RGBE","( value )"];case zt.RGBM7Encoding:return["RGBM","( value, 7.0 )"];case zt.RGBM16Encoding:return["RGBM","( value, 16.0 )"];case zt.RGBDEncoding:return["RGBD","( value, 256.0 )"];case zt.GammaEncoding:return["Gamma","( value, float( GAMMA_FACTOR ) )"];default:throw new Error("unsupported encoding: "+t)}}function Bn(t,e){e=Fn(e);return"vec4 "+t+"( vec4 value ) { return "+e[0]+"ToLinear"+e[1]+"; }"}function Nn(t){return""!==t}function Un(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights)}function zn(t){return t.replace(/#include +<([\w\d.]+)>/g,function(t,e){var n=zt.ShaderChunk[e];if(void 0===n)throw new Error("Can not resolve #include <"+e+">");return zn(n)})}function Vn(t){return t.replace(/for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,function(t,e,n,i){for(var r="",o=parseInt(e);o<parseInt(n);o++)r+=i.replace(/\[ i \]/g,"[ "+o+" ]");return r})}function Gn(){this.seq=[],this.map={}}function P(t,e,n){var i=t[0];if(i<=0||0<i)return t;var r=e*n,o=nn[r];if(void 0===o&&(o=new Float32Array(r),nn[r]=o),0!==e){i.toArray(o,0);for(var a=1,s=0;a!==e;++a)t[a].toArray(o,s+=n)}return o}function Hn(t,e){var n=rn[e];void 0===n&&(n=new Int32Array(e),rn[e]=n);for(var i=0;i!==e;++i)n[i]=t.allocTextureUnit();return n}function Wn(t,e){t.uniform1f(this.addr,e)}function $n(t,e){t.uniform1i(this.addr,e)}function qn(t,e){void 0===e.x?t.uniform2fv(this.addr,e):t.uniform2f(this.addr,e.x,e.y)}function Xn(t,e){void 0!==e.x?t.uniform3f(this.addr,e.x,e.y,e.z):void 0!==e.r?t.uniform3f(this.addr,e.r,e.g,e.b):t.uniform3fv(this.addr,e)}function Yn(t,e){void 0===e.x?t.uniform4fv(this.addr,e):t.uniform4f(this.addr,e.x,e.y,e.z,e.w)}function Zn(t,e){t.uniformMatrix2fv(this.addr,!1,e.elements||e)}function Jn(t,e){t.uniformMatrix3fv(this.addr,!1,e.elements||e)}function Kn(t,e){t.uniformMatrix4fv(this.addr,!1,e.elements||e)}function Qn(t,e,n){var i=n.allocTextureUnit();t.uniform1i(this.addr,i),e&&n.setTexture2D(e,i)}function ti(t,e,n){var i=n.allocTextureUnit();t.uniform1i(this.addr,i),e&&n.setTextureCube(e,i)}function ei(t,e){t.uniform2iv(this.addr,e)}function ni(t,e){t.uniform3iv(this.addr,e)}function ii(t,e){t.uniform4iv(this.addr,e)}function ri(t,e){t.uniform1fv(this.addr,e)}function oi(t,e){t.uniform1iv(this.addr,e)}function ai(t,e){t.uniform2fv(this.addr,P(e,this.size,2))}function si(t,e){t.uniform3fv(this.addr,P(e,this.size,3))}function li(t,e){t.uniform4fv(this.addr,P(e,this.size,4))}function ci(t,e){t.uniformMatrix2fv(this.addr,!1,P(e,this.size,4))}function ui(t,e){t.uniformMatrix3fv(this.addr,!1,P(e,this.size,9))}function hi(t,e){t.uniformMatrix4fv(this.addr,!1,P(e,this.size,16))}function di(t,e,n){var i=e.length,r=Hn(n,i);t.uniform1iv(this.addr,r);for(var o=0;o!==i;++o){var a=e[o];a&&n.setTexture2D(a,r[o])}}function pi(t,e,n){var i=e.length,r=Hn(n,i);t.uniform1iv(this.addr,r);for(var o=0;o!==i;++o){var a=e[o];a&&n.setTextureCube(a,r[o])}}function t(t,e,n){Gn.call(this),this.renderer=n;for(var i=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),r=0;r!==i;++r){var o=t.getActiveUniform(e,r),a=o.name,a=t.getUniformLocation(e,a),s=(m=f=p=d=h=u=void 0,o),l=a,c=this,u=s.name,h=u.length;for(ln.lastIndex=0;;){var d=ln.exec(u),p=ln.lastIndex,f=d[1],m="]"===d[2],d=d[3];if(m&&(f|=0),void 0===d||"["===d&&p+2===h){cn(c,new(void 0===d?on:an)(f,s,l));break}m=c.map[f];void 0===m&&(m=new sn(f),cn(c,m)),c=m}}}function k(){}function A(t,e,n,i){bn.set(e,n,i).unproject(xn);var r=_n[t];if(void 0!==r)for(var o=0,a=r.length;o<a;o++)yn.vertices[r[o]].copy(bn)}"function"==typeof define&&define.amd?define("three",zt):void 0!==F&&void 0!==I&&(I.exports=zt),void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52)),void 0===Math.sign&&(Math.sign=function(t){return t<0?-1:0<t?1:+t}),void 0===Function.prototype.name&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1]}}),void 0===Object.assign&&(Object.assign=function(t){"use strict";if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}),Object.assign(zt,{MOUSE:{LEFT:0,MIDDLE:1,RIGHT:2},CullFaceNone:0,CullFaceBack:1,CullFaceFront:2,CullFaceFrontBack:3,FrontFaceDirectionCW:0,FrontFaceDirectionCCW:1,BasicShadowMap:0,PCFShadowMap:1,PCFSoftShadowMap:2,FrontSide:0,BackSide:1,DoubleSide:2,FlatShading:1,SmoothShading:2,NoColors:0,FaceColors:1,VertexColors:2,NoBlending:0,NormalBlending:1,AdditiveBlending:2,SubtractiveBlending:3,MultiplyBlending:4,CustomBlending:5,AddEquation:100,SubtractEquation:101,ReverseSubtractEquation:102,MinEquation:103,MaxEquation:104,ZeroFactor:200,OneFactor:201,SrcColorFactor:202,OneMinusSrcColorFactor:203,SrcAlphaFactor:204,OneMinusSrcAlphaFactor:205,DstAlphaFactor:206,OneMinusDstAlphaFactor:207,DstColorFactor:208,OneMinusDstColorFactor:209,SrcAlphaSaturateFactor:210,NeverDepth:0,AlwaysDepth:1,LessDepth:2,LessEqualDepth:3,EqualDepth:4,GreaterEqualDepth:5,GreaterDepth:6,NotEqualDepth:7,MultiplyOperation:0,MixOperation:1,AddOperation:2,NoToneMapping:0,LinearToneMapping:1,ReinhardToneMapping:2,Uncharted2ToneMapping:3,CineonToneMapping:4,UVMapping:300,CubeReflectionMapping:301,CubeRefractionMapping:302,EquirectangularReflectionMapping:303,EquirectangularRefractionMapping:304,SphericalReflectionMapping:305,CubeUVReflectionMapping:306,CubeUVRefractionMapping:307,RepeatWrapping:1e3,ClampToEdgeWrapping:1001,MirroredRepeatWrapping:1002,NearestFilter:1003,NearestMipMapNearestFilter:1004,NearestMipMapLinearFilter:1005,LinearFilter:1006,LinearMipMapNearestFilter:1007,LinearMipMapLinearFilter:1008,UnsignedByteType:1009,ByteType:1010,ShortType:1011,UnsignedShortType:1012,IntType:1013,UnsignedIntType:1014,FloatType:1015,HalfFloatType:1025,UnsignedShort4444Type:1016,UnsignedShort5551Type:1017,UnsignedShort565Type:1018,AlphaFormat:1019,RGBFormat:1020,RGBAFormat:1021,LuminanceFormat:1022,LuminanceAlphaFormat:1023,RGBEFormat:zt.RGBAFormat,DepthFormat:1026,RGB_S3TC_DXT1_Format:2001,RGBA_S3TC_DXT1_Format:2002,RGBA_S3TC_DXT3_Format:2003,RGBA_S3TC_DXT5_Format:2004,RGB_PVRTC_4BPPV1_Format:2100,RGB_PVRTC_2BPPV1_Format:2101,RGBA_PVRTC_4BPPV1_Format:2102,RGBA_PVRTC_2BPPV1_Format:2103,RGB_ETC1_Format:2151,LoopOnce:2200,LoopRepeat:2201,LoopPingPong:2202,InterpolateDiscrete:2300,InterpolateLinear:2301,InterpolateSmooth:2302,ZeroCurvatureEnding:2400,ZeroSlopeEnding:2401,WrapAroundEnding:2402,TrianglesDrawMode:0,TriangleStripDrawMode:1,TriangleFanDrawMode:2,LinearEncoding:3e3,sRGBEncoding:3001,GammaEncoding:3007,RGBEEncoding:3002,LogLuvEncoding:3003,RGBM7Encoding:3004,RGBM16Encoding:3005,RGBDEncoding:3006,BasicDepthPacking:3200,RGBADepthPacking:3201}),zt.Color=function(t,e,n){return void 0===e&&void 0===n?this.set(t):this.setRGB(t,e,n)},zt.Color.prototype={constructor:zt.Color,r:1,g:1,b:1,set:function(t){return t instanceof zt.Color?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t),this},setScalar:function(t){this.r=t,this.g=t,this.b=t},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this},setRGB:function(t,e,n){return this.r=t,this.g=e,this.b=n,this},setHSL:function(t,e,n){return t=zt.Math.euclideanModulo(t,1),e=zt.Math.clamp(e,0,1),n=zt.Math.clamp(n,0,1),0===e?this.r=this.g=this.b=n:(this.r=On(e=2*n-(n=n<=.5?n*(1+e):n+e-n*e),n,t+1/3),this.g=On(e,n,t),this.b=On(e,n,t-1/3)),this},setStyle:function(e){function t(t){void 0!==t&&parseFloat(t)<1&&console.warn("THREE.Color: Alpha component of "+e+" will be ignored.")}var n;if(n=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(e)){var i,r,o,a,s=n[1],l=n[2];switch(s){case"rgb":case"rgba":if(i=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(l))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,t(i[5]),this;if(i=/^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(l))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,t(i[5]),this;break;case"hsl":case"hsla":if(i=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(l))return r=parseFloat(i[1])/360,o=parseInt(i[2],10)/100,a=parseInt(i[3],10)/100,t(i[5]),this.setHSL(r,o,a)}}else if(n=/^\#([A-Fa-f0-9]+)$/.exec(e)){var c,s=(c=n[1]).length;if(3===s)return this.r=parseInt(c.charAt(0)+c.charAt(0),16)/255,this.g=parseInt(c.charAt(1)+c.charAt(1),16)/255,this.b=parseInt(c.charAt(2)+c.charAt(2),16)/255,this;if(6===s)return this.r=parseInt(c.charAt(0)+c.charAt(1),16)/255,this.g=parseInt(c.charAt(2)+c.charAt(3),16)/255,this.b=parseInt(c.charAt(4)+c.charAt(5),16)/255,this}return e&&0<e.length&&(void 0!==(c=zt.ColorKeywords[e])?this.setHex(c):console.warn("THREE.Color: Unknown color "+e)),this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return void 0===e&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){e=0<(e=void 0===e?2:e)?1/e:1;return this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},convertGammaToLinear:function(){var t=this.r,e=this.g,n=this.b;return this.r=t*t,this.g=e*e,this.b=n*n,this},convertLinearToGamma:function(){return this.r=Math.sqrt(this.r),this.g=Math.sqrt(this.g),this.b=Math.sqrt(this.b),this},getHex:function(){return 255*this.r<<16^255*this.g<<8^255*this.b<<0},getHexString:function(){return("000000"+this.getHex().toString(16)).slice(-6)},getHSL:function(t){var e,t=t||{h:0,s:0,l:0},n=this.r,i=this.g,r=this.b,o=Math.max(n,i,r),a=Math.min(n,i,r),s=(a+o)/2;if(a===o)c=e=0;else{var l=o-a,c=s<=.5?l/(o+a):l/(2-o-a);switch(o){case n:e=(i-r)/l+(i<r?6:0);break;case i:e=(r-n)/l+2;break;case r:e=(n-i)/l+4}e/=6}return t.h=e,t.s=c,t.l=s,t},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:function(t,e,n){var i=this.getHSL();return i.h+=t,i.s+=e,i.l+=n,this.setHSL(i.h,i.s,i.l),this},add:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this},addColors:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this},addScalar:function(t){return this.r+=t,this.g+=t,this.b+=t,this},multiply:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this},multiplyScalar:function(t){return this.r*=t,this.g*=t,this.b*=t,this},lerp:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this},equals:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b},fromArray:function(t,e){return this.r=t[e=void 0===e?0:e],this.g=t[e+1],this.b=t[e+2],this},toArray:function(t,e){return(t=void 0===t?[]:t)[e=void 0===e?0:e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t}},zt.ColorKeywords={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,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},zt.Quaternion=function(t,e,n,i){this._x=t||0,this._y=e||0,this._z=n||0,this._w=void 0!==i?i:1},zt.Quaternion.prototype={constructor:zt.Quaternion,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:function(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._w=i,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this.onChangeCallback(),this},setFromEuler:function(t,e){if(t instanceof zt.Euler==!1)throw new Error("THREE.Quaternion: .setFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var n=Math.cos(t._x/2),i=Math.cos(t._y/2),r=Math.cos(t._z/2),o=Math.sin(t._x/2),a=Math.sin(t._y/2),s=Math.sin(t._z/2),t=t.order;return"XYZ"===t?(this._x=o*i*r+n*a*s,this._y=n*a*r-o*i*s,this._z=n*i*s+o*a*r,this._w=n*i*r-o*a*s):"YXZ"===t?(this._x=o*i*r+n*a*s,this._y=n*a*r-o*i*s,this._z=n*i*s-o*a*r,this._w=n*i*r+o*a*s):"ZXY"===t?(this._x=o*i*r-n*a*s,this._y=n*a*r+o*i*s,this._z=n*i*s+o*a*r,this._w=n*i*r-o*a*s):"ZYX"===t?(this._x=o*i*r-n*a*s,this._y=n*a*r+o*i*s,this._z=n*i*s-o*a*r,this._w=n*i*r+o*a*s):"YZX"===t?(this._x=o*i*r+n*a*s,this._y=n*a*r+o*i*s,this._z=n*i*s-o*a*r,this._w=n*i*r-o*a*s):"XZY"===t&&(this._x=o*i*r-n*a*s,this._y=n*a*r-o*i*s,this._z=n*i*s+o*a*r,this._w=n*i*r+o*a*s),!1!==e&&this.onChangeCallback(),this},setFromAxisAngle:function(t,e){var e=e/2,n=Math.sin(e);return this._x=t.x*n,this._y=t.y*n,this._z=t.z*n,this._w=Math.cos(e),this.onChangeCallback(),this},setFromRotationMatrix:function(t){var e,t=t.elements,n=t[0],i=t[4],r=t[8],o=t[1],a=t[5],s=t[9],l=t[2],c=t[6],t=t[10],u=n+a+t;return 0<u?(e=.5/Math.sqrt(u+1),this._w=.25/e,this._x=(c-s)*e,this._y=(r-l)*e,this._z=(o-i)*e):a<n&&t<n?(e=2*Math.sqrt(1+n-a-t),this._w=(c-s)/e,this._x=.25*e,this._y=(i+o)/e,this._z=(r+l)/e):t<a?(e=2*Math.sqrt(1+a-n-t),this._w=(r-l)/e,this._x=(i+o)/e,this._y=.25*e,this._z=(s+c)/e):(e=2*Math.sqrt(1+t-n-a),this._w=(o-i)/e,this._x=(r+l)/e,this._y=(s+c)/e,this._z=.25*e),this.onChangeCallback(),this},setFromUnitVectors:function(t,e){return void 0===n&&(n=new zt.Vector3),(B=t.dot(e)+1)<1e-6?(B=0,Math.abs(t.x)>Math.abs(t.z)?n.set(-t.y,t.x,0):n.set(0,-t.z,t.y)):n.crossVectors(t,e),this._x=n.x,this._y=n.y,this._z=n.z,this._w=B,this.normalize()},inverse:function(){return this.conjugate().normalize()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._w},lengthSq:function(){return this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w},length:function(){return Math.sqrt(this._x*this._x+this._y*this._y+this._z*this._z+this._w*this._w)},normalize:function(){var t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(this._x=this._x*(t=1/t),this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this.onChangeCallback(),this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var n=t._x,i=t._y,r=t._z,t=t._w,o=e._x,a=e._y,s=e._z,e=e._w;return this._x=n*e+t*o+i*s-r*a,this._y=i*e+t*a+r*o-n*s,this._z=r*e+t*s+n*a-i*o,this._w=t*e-n*o-i*a-r*s,this.onChangeCallback(),this},slerp:function(t,e){if(0!==e){if(1===e)return this.copy(t);var n,i=this._x,r=this._y,o=this._z,a=this._w,s=a*t._w+i*t._x+r*t._y+o*t._z;s<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,s=-s):this.copy(t),1<=s?(this._w=a,this._x=i,this._y=r,this._z=o):(t=Math.sqrt(1-s*s),Math.abs(t)<.001?(this._w=.5*(a+this._w),this._x=.5*(i+this._x),this._y=.5*(r+this._y),this._z=.5*(o+this._z)):(s=Math.atan2(t,s),n=Math.sin((1-e)*s)/t,e=Math.sin(e*s)/t,this._w=a*n+this._w*e,this._x=i*n+this._x*e,this._y=r*n+this._y*e,this._z=o*n+this._z*e,this.onChangeCallback()))}return this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return this._x=t[e=void 0===e?0:e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this.onChangeCallback(),this},toArray:function(t,e){return(t=void 0===t?[]:t)[e=void 0===e?0:e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}},Object.assign(zt.Quaternion,{slerp:function(t,e,n,i){return n.copy(t).slerp(e,i)},slerpFlat:function(t,e,n,i,r,o,a){var s,l,c,u=n[i+0],h=n[i+1],d=n[i+2],n=n[i+3],i=r[o+0],p=r[o+1],f=r[o+2],r=r[o+3];n===r&&u===i&&h===p&&d===f||(o=1-a,s=0<=(l=u*i+h*p+d*f+n*r)?1:-1,(c=1-l*l)>Number.EPSILON&&(c=Math.sqrt(c),l=Math.atan2(c,l*s),o=Math.sin(o*l)/c,a=Math.sin(a*l)/c),u=u*o+i*(l=a*s),h=h*o+p*l,d=d*o+f*l,n=n*o+r*l,o===1-a&&(u*=c=1/Math.sqrt(u*u+h*h+d*d+n*n),h*=c,d*=c,n*=c)),t[e]=u,t[e+1]=h,t[e+2]=d,t[e+3]=n}}),zt.Vector2=function(t,e){this.x=t||0,this.y=e||0},zt.Vector2.prototype={constructor:zt.Vector2,get width(){return this.x},set width(t){this.x=t},get height(){return this.y},set height(t){this.y=t},set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.x=t,this.y=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(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)}},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t):(this.x=0,this.y=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(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:function(t,e){return void 0===N&&(N=new zt.Vector2,U=new zt.Vector2),N.set(t,t),U.set(e,e),this.clamp(N,U)},clampLength:function(t,e){var n=this.length();return this.multiplyScalar(Math.max(t,Math.min(e,n))/n)},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){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:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(t){return this.x*t.x+this.y*t.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length())},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,t=this.y-t.y;return e*e+t*t},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return this.x=t[e=void 0===e?0:e],this.y=t[e+1],this},toArray:function(t,e){return(t=void 0===t?[]:t)[e=void 0===e?0:e]=this.x,t[e+1]=this.y,t},fromAttribute:function(t,e,n){return e=e*t.itemSize+(n=void 0===n?0:n),this.x=t.array[e],this.y=t.array[e+1],this},rotateAround:function(t,e){var n=Math.cos(e),e=Math.sin(e),i=this.x-t.x,r=this.y-t.y;return this.x=i*n-r*e+t.x,this.y=i*e+r*n+t.y,this}},zt.Vector3=function(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0},zt.Vector3.prototype={constructor:zt.Vector3,set:function(t,e,n){return this.x=t,this.y=e,this.z=n,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(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)}},getComponent:function(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:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t):(this.x=0,this.y=0,this.z=0),this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:function(t){return t instanceof zt.Euler==!1&&console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),void 0===q&&(q=new zt.Quaternion),this.applyQuaternion(q.setFromEuler(t))},applyAxisAngle:function(t,e){return void 0===$&&($=new zt.Quaternion),this.applyQuaternion($.setFromAxisAngle(t,e))},applyMatrix3:function(t){var e=this.x,n=this.y,i=this.z,t=t.elements;return this.x=t[0]*e+t[3]*n+t[6]*i,this.y=t[1]*e+t[4]*n+t[7]*i,this.z=t[2]*e+t[5]*n+t[8]*i,this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,t=t.elements;return this.x=t[0]*e+t[4]*n+t[8]*i+t[12],this.y=t[1]*e+t[5]*n+t[9]*i+t[13],this.z=t[2]*e+t[6]*n+t[10]*i+t[14],this},applyProjection:function(t){var e=this.x,n=this.y,i=this.z,t=t.elements,r=1/(t[3]*e+t[7]*n+t[11]*i+t[15]);return this.x=(t[0]*e+t[4]*n+t[8]*i+t[12])*r,this.y=(t[1]*e+t[5]*n+t[9]*i+t[13])*r,this.z=(t[2]*e+t[6]*n+t[10]*i+t[14])*r,this},applyQuaternion:function(t){var e=this.x,n=this.y,i=this.z,r=t.x,o=t.y,a=t.z,t=t.w,s=t*e+o*i-a*n,l=t*n+a*e-r*i,c=t*i+r*n-o*e,e=-r*e-o*n-a*i;return this.x=s*t+e*-r+l*-a-c*-o,this.y=l*t+e*-o+c*-r-s*-a,this.z=c*t+e*-a+s*-o-l*-r,this},project:function(t){return(r=void 0===r?new zt.Matrix4:r).multiplyMatrices(t.projectionMatrix,r.getInverse(t.matrixWorld)),this.applyProjection(r)},unproject:function(t){return(i=void 0===i?new zt.Matrix4:i).multiplyMatrices(t.matrixWorld,i.getInverse(t.projectionMatrix)),this.applyProjection(i)},transformDirection:function(t){var e=this.x,n=this.y,i=this.z,t=t.elements;return this.x=t[0]*e+t[4]*n+t[8]*i,this.y=t[1]*e+t[5]*n+t[9]*i,this.z=t[2]*e+t[6]*n+t[10]*i,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(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:function(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:function(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:function(t,e){return void 0===H&&(H=new zt.Vector3,W=new zt.Vector3),H.set(t,t,t),W.set(e,e,e),this.clamp(H,W)},clampLength:function(t,e){var n=this.length();return this.multiplyScalar(Math.max(t,Math.min(e,n))/n)},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this},roundToZero:function(){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:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length())},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(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:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},cross:function(t,e){var n,i;return void 0!==e?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):(e=this.x,n=this.y,i=this.z,this.x=n*t.z-i*t.y,this.y=i*t.x-e*t.z,this.z=e*t.y-n*t.x,this)},crossVectors:function(t,e){var n=t.x,i=t.y,t=t.z,r=e.x,o=e.y,e=e.z;return this.x=i*e-t*o,this.y=t*r-n*e,this.z=n*o-i*r,this},projectOnVector:function(t){return(e=void 0===e?new zt.Vector3:e).copy(t).normalize(),G=this.dot(e),this.copy(e).multiplyScalar(G)},projectOnPlane:function(t){return(V=void 0===V?new zt.Vector3:V).copy(this).projectOnVector(t),this.sub(V)},reflect:function(t){return void 0===z&&(z=new zt.Vector3),this.sub(z.copy(t).multiplyScalar(2*this.dot(t)))},angleTo:function(t){t=this.dot(t)/Math.sqrt(this.lengthSq()*t.lengthSq());return Math.acos(zt.Math.clamp(t,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y,t=this.z-t.z;return e*e+n*n+t*t},setFromSpherical:function(t){var e=Math.sin(t.phi)*t.radius;return this.x=e*Math.sin(t.theta),this.y=Math.cos(t.phi)*t.radius,this.z=e*Math.cos(t.theta),this},setFromMatrixPosition:function(t){return this.setFromMatrixColumn(t,3)},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),t=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=t,this},setFromMatrixColumn:function(t,e){var n;return"number"==typeof t&&(console.warn("THREE.Vector3: setFromMatrixColumn now expects ( matrix, index )."),n=t,t=e,e=n),this.fromArray(t.elements,4*e)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return this.x=t[e=void 0===e?0:e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return(t=void 0===t?[]:t)[e=void 0===e?0:e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromAttribute:function(t,e,n){return e=e*t.itemSize+(n=void 0===n?0:n),this.x=t.array[e],this.y=t.array[e+1],this.z=t.array[e+2],this}},zt.Vector4=function(t,e,n,i){this.x=t||0,this.y=e||0,this.z=n||0,this.w=void 0!==i?i:1},zt.Vector4.prototype={constructor:zt.Vector4,set:function(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this.w=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(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)}},getComponent:function(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:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(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:function(t,e){return void 0!==e?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(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:function(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:function(t,e){return void 0!==e?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(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},multiplyScalar:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t,this.w*=t):(this.x=0,this.y=0,this.z=0,this.w=0),this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,r=this.w,t=t.elements;return this.x=t[0]*e+t[4]*n+t[8]*i+t[12]*r,this.y=t[1]*e+t[5]*n+t[9]*i+t[13]*r,this.z=t[2]*e+t[6]*n+t[10]*i+t[14]*r,this.w=t[3]*e+t[7]*n+t[11]*i+t[15]*r,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var 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:function(t){var e,n,i,r,o,a,s,l,c,u,t=t.elements,h=t[0],d=t[4],p=t[8],f=t[1],m=t[5],g=t[9],v=t[2],y=t[6],t=t[10];return Math.abs(d-f)<.01&&Math.abs(p-v)<.01&&Math.abs(g-y)<.01?Math.abs(d+f)<.1&&Math.abs(p+v)<.1&&Math.abs(g+y)<.1&&Math.abs(h+m+t-3)<.1?this.set(1,0,0,0):(r=Math.PI,a=(t+1)/2,s=(d+f)/4,l=(p+v)/4,c=(g+y)/4,(o=(m+1)/2)<(u=(h+1)/2)&&a<u?i=u<.01?(e=0,n=.707106781):(n=s/(e=Math.sqrt(u)),l/e):a<o?i=o<.01?(n=0,e=.707106781):(e=s/(n=Math.sqrt(o)),c/n):a<.01?(n=e=.707106781,i=0):(e=l/(i=Math.sqrt(a)),n=c/i),this.set(e,n,i,r)):(u=Math.sqrt((y-g)*(y-g)+(p-v)*(p-v)+(f-d)*(f-d)),Math.abs(u)<.001&&(u=1),this.x=(y-g)/u,this.y=(p-v)/u,this.z=(f-d)/u,this.w=Math.acos((h+m+t-1)/2)),this},min:function(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.w=Math.min(this.w,t.w),this},max:function(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.w=Math.max(this.w,t.w),this},clamp:function(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.w=Math.max(t.w,Math.min(e.w,this.w)),this},clampScalar:function(t,e){return void 0===X&&(X=new zt.Vector4,Y=new zt.Vector4),X.set(t,t,t,t),Y.set(e,e,e,e),this.clamp(X,Y)},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this.z=Math.floor(this.z),this.w=Math.floor(this.w),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this.z=Math.ceil(this.z),this.w=Math.ceil(this.w),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this.z=Math.round(this.z),this.w=Math.round(this.w),this},roundToZero:function(){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.w=this.w<0?Math.ceil(this.w):Math.floor(this.w),this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this.w=-this.w,this},dot:function(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.w},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)+Math.abs(this.w)},normalize:function(){return this.divideScalar(this.length())},setLength:function(t){return this.multiplyScalar(t/this.length())},lerp:function(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.w+=(t.w-this.w)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w},fromArray:function(t,e){return this.x=t[e=void 0===e?0:e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this},toArray:function(t,e){return(t=void 0===t?[]:t)[e=void 0===e?0:e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t},fromAttribute:function(t,e,n){return e=e*t.itemSize+(n=void 0===n?0:n),this.x=t.array[e],this.y=t.array[e+1],this.z=t.array[e+2],this.w=t.array[e+3],this}},zt.Euler=function(t,e,n,i){this._x=t||0,this._y=e||0,this._z=n||0,this._order=i||zt.Euler.DefaultOrder},zt.Euler.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"],zt.Euler.DefaultOrder="XYZ",zt.Euler.prototype={constructor:zt.Euler,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:function(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._order=i||this._order,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this.onChangeCallback(),this},setFromRotationMatrix:function(t,e,n){var i=zt.Math.clamp,t=t.elements,r=t[0],o=t[4],a=t[8],s=t[1],l=t[5],c=t[9],u=t[2],h=t[6],t=t[10];return"XYZ"===(e=e||this._order)?(this._y=Math.asin(i(a,-1,1)),Math.abs(a)<.99999?(this._x=Math.atan2(-c,t),this._z=Math.atan2(-o,r)):(this._x=Math.atan2(h,l),this._z=0)):"YXZ"===e?(this._x=Math.asin(-i(c,-1,1)),Math.abs(c)<.99999?(this._y=Math.atan2(a,t),this._z=Math.atan2(s,l)):(this._y=Math.atan2(-u,r),this._z=0)):"ZXY"===e?(this._x=Math.asin(i(h,-1,1)),Math.abs(h)<.99999?(this._y=Math.atan2(-u,t),this._z=Math.atan2(-o,l)):(this._y=0,this._z=Math.atan2(s,r))):"ZYX"===e?(this._y=Math.asin(-i(u,-1,1)),Math.abs(u)<.99999?(this._x=Math.atan2(h,t),this._z=Math.atan2(s,r)):(this._x=0,this._z=Math.atan2(-o,l))):"YZX"===e?(this._z=Math.asin(i(s,-1,1)),Math.abs(s)<.99999?(this._x=Math.atan2(-c,l),this._y=Math.atan2(-u,r)):(this._x=0,this._y=Math.atan2(a,t))):"XZY"===e?(this._z=Math.asin(-i(o,-1,1)),Math.abs(o)<.99999?(this._x=Math.atan2(h,l),this._y=Math.atan2(a,r)):(this._x=Math.atan2(-c,t),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+e),this._order=e,!1!==n&&this.onChangeCallback(),this},setFromQuaternion:function(t,e,n){return(J=void 0===J?new zt.Matrix4:J).makeRotationFromQuaternion(t),this.setFromRotationMatrix(J,e,n)},setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:(Z=new zt.Quaternion,function(t){return Z.setFromEuler(this),this.setFromQuaternion(Z,t)}),equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(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:function(t,e){return(t=void 0===t?[]:t)[e=void 0===e?0:e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new zt.Vector3(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}},zt.Line3=function(t,e){this.start=void 0!==t?t:new zt.Vector3,this.end=void 0!==e?e:new zt.Vector3},zt.Line3.prototype={constructor:zt.Line3,set:function(t,e){return this.start.copy(t),this.end.copy(e),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.start.copy(t.start),this.end.copy(t.end),this},center:function(t){return(t||new zt.Vector3).addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(t){return(t||new zt.Vector3).subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(t,e){e=e||new zt.Vector3;return this.delta(e).multiplyScalar(t).add(this.start)},closestPointToPointParameter:(K=new zt.Vector3,o=new zt.Vector3,function(t,e){K.subVectors(t,this.start),o.subVectors(this.end,this.start);t=o.dot(o),t=o.dot(K)/t;return t=e?zt.Math.clamp(t,0,1):t}),closestPointToPoint:function(t,e,n){t=this.closestPointToPointParameter(t,e),e=n||new zt.Vector3;return this.delta(e).multiplyScalar(t).add(this.start)},applyMatrix4:function(t){return this.start.applyMatrix4(t),this.end.applyMatrix4(t),this},equals:function(t){return t.start.equals(this.start)&&t.end.equals(this.end)}},zt.Box2=function(t,e){this.min=void 0!==t?t:new zt.Vector2(1/0,1/0),this.max=void 0!==e?e:new zt.Vector2(-1/0,-1/0)},zt.Box2.prototype={constructor:zt.Box2,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:(tt=new zt.Vector2,function(t,e){e=tt.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(e),this.max.copy(t).add(e),this}),clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},center:function(t){return(t||new zt.Vector2).addVectors(this.min,this.max).multiplyScalar(.5)},size:function(t){return(t||new zt.Vector2).subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)},containsBox:function(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:function(t,e){return(e||new zt.Vector2).set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)},clampPoint:function(t,e){return(e||new zt.Vector2).copy(t).clamp(this.min,this.max)},distanceToPoint:(Q=new zt.Vector2,function(t){return Q.copy(t).clamp(this.min,this.max).sub(t).length()}),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}},zt.Box3=function(t,e){this.min=void 0!==t?t:new zt.Vector3(1/0,1/0,1/0),this.max=void 0!==e?e:new zt.Vector3(-1/0,-1/0,-1/0)},zt.Box3.prototype={constructor:zt.Box3,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromArray:function(t){for(var e=1/0,n=1/0,i=1/0,r=-1/0,o=-1/0,a=-1/0,s=0,l=t.length;s<l;s+=3){var c=t[s],u=t[s+1],h=t[s+2];c<e&&(e=c),u<n&&(n=u),h<i&&(i=h),r<c&&(r=c),o<u&&(o=u),a<h&&(a=h)}this.min.set(e,n,i),this.max.set(r,o,a)},setFromPoints:function(t){this.makeEmpty();for(var e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:(rt=new zt.Vector3,function(t,e){e=rt.copy(e).multiplyScalar(.5);return this.min.copy(t).sub(e),this.max.copy(t).add(e),this}),setFromObject:(s=new zt.Vector3,function(t){var a=this;return t.updateMatrixWorld(!0),this.makeEmpty(),t.traverse(function(t){var e=t.geometry;if(void 0!==e)if(e instanceof zt.Geometry)for(var n=e.vertices,i=0,r=n.length;i<r;i++)s.copy(n[i]),s.applyMatrix4(t.matrixWorld),a.expandByPoint(s);else if(e instanceof zt.BufferGeometry&&void 0!==e.attributes.position)for(var o=e.attributes.position.array,i=0,r=o.length;i<r;i+=3)s.fromArray(o,i),s.applyMatrix4(t.matrixWorld),a.expandByPoint(s)}),this}),clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z},center:function(t){return(t||new zt.Vector3).addVectors(this.min,this.max).multiplyScalar(.5)},size:function(t){return(t||new zt.Vector3).subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)},containsBox:function(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:function(t,e){return(e||new zt.Vector3).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:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)},intersectsSphere:function(t){return void 0===it&&(it=new zt.Vector3),this.clampPoint(t.center,it),it.distanceToSquared(t.center)<=t.radius*t.radius},intersectsPlane:function(t){var e,n=0<t.normal.x?(e=t.normal.x*this.min.x,t.normal.x*this.max.x):(e=t.normal.x*this.max.x,t.normal.x*this.min.x);return 0<t.normal.y?(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),0<t.normal.z?(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},clampPoint:function(t,e){return(e||new zt.Vector3).copy(t).clamp(this.min,this.max)},distanceToPoint:(nt=new zt.Vector3,function(t){return nt.copy(t).clamp(this.min,this.max).sub(t).length()}),getBoundingSphere:(et=new zt.Vector3,function(t){t=t||new zt.Sphere;return t.center=this.center(),t.radius=.5*this.size(et).length(),t}),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},applyMatrix4:(a=[new zt.Vector3,new zt.Vector3,new zt.Vector3,new zt.Vector3,new zt.Vector3,new zt.Vector3,new zt.Vector3,new zt.Vector3],function(t){return this.isEmpty()||(a[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),a[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),a[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),a[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),a[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),a[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),a[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),a[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(a)),this}),translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}},zt.Matrix3=function(){this.elements=new Float32Array([1,0,0,0,1,0,0,0,1]),0<arguments.length&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")},zt.Matrix3.prototype={constructor:zt.Matrix3,set:function(t,e,n,i,r,o,a,s,l){var c=this.elements;return c[0]=t,c[1]=i,c[2]=a,c[3]=e,c[4]=r,c[5]=s,c[6]=n,c[7]=o,c[8]=l,this},identity:function(){return this.set(1,0,0,0,1,0,0,0,1),this},clone:function(){return(new this.constructor).fromArray(this.elements)},copy:function(t){t=t.elements;return this.set(t[0],t[3],t[6],t[1],t[4],t[7],t[2],t[5],t[8]),this},setFromMatrix4:function(t){t=t.elements;return this.set(t[0],t[4],t[8],t[1],t[5],t[9],t[2],t[6],t[10]),this},applyToVector3Array:function(t,e,n){void 0===c&&(c=new zt.Vector3),void 0===n&&(n=t.length);for(var i=0,r=e=void 0===e?0:e;i<n;i+=3,r+=3)c.fromArray(t,r),c.applyMatrix3(this),c.toArray(t,r);return t},applyToBuffer:function(t,e,n){void 0===l&&(l=new zt.Vector3),void 0===n&&(n=t.length/t.itemSize);for(var i=0,r=e=void 0===e?0:e;i<n;i++,r++)l.x=t.getX(r),l.y=t.getY(r),l.z=t.getZ(r),l.applyMatrix3(this),t.setXYZ(l.x,l.y,l.z);return t},multiplyScalar:function(t){var 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:function(){var t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],l=t[7],t=t[8];return e*o*t-e*a*l-n*r*t+n*a*s+i*r*l-i*o*s},getInverse:function(t,e){t instanceof zt.Matrix4&&console.error("THREE.Matrix3.getInverse no longer takes a Matrix4 argument.");var t=t.elements,n=this.elements,i=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],t=t[8],h=t*s-l*u,d=l*c-t*a,p=u*a-s*c,f=i*h+r*d+o*p;if(0==f){var m="THREE.Matrix3.getInverse(): can't invert matrix, determinant is 0";if(e)throw new Error(m);return console.warn(m),this.identity()}e=1/f;return n[0]=h*e,n[1]=(o*u-t*r)*e,n[2]=(l*r-o*s)*e,n[3]=d*e,n[4]=(t*i-o*c)*e,n[5]=(o*a-l*i)*e,n[6]=p*e,n[7]=(r*c-u*i)*e,n[8]=(s*i-r*a)*e,this},transpose:function(){var t=this.elements,e=t[1];return t[1]=t[3],t[3]=e,e=t[2],t[2]=t[6],t[6]=e,e=t[5],t[5]=t[7],t[7]=e,this},flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset is deprecated - just use .toArray instead."),this.toArray(t,e)},getNormalMatrix:function(t){return this.setFromMatrix4(t).getInverse(this).transpose()},transposeIntoArray:function(t){var 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},fromArray:function(t){return this.elements.set(t),this},toArray:function(t,e){var n=this.elements;return(t=void 0===t?[]:t)[e=void 0===e?0: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}},zt.Matrix4=function(){this.elements=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),0<arguments.length&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")},zt.Matrix4.prototype={constructor:zt.Matrix4,set:function(t,e,n,i,r,o,a,s,l,c,u,h,d,p,f,m){var g=this.elements;return g[0]=t,g[4]=e,g[8]=n,g[12]=i,g[1]=r,g[5]=o,g[9]=a,g[13]=s,g[2]=l,g[6]=c,g[10]=u,g[14]=h,g[3]=d,g[7]=p,g[11]=f,g[15]=m,this},identity:function(){return this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1),this},clone:function(){return(new zt.Matrix4).fromArray(this.elements)},copy:function(t){return this.elements.set(t.elements),this},copyPosition:function(t){var e=this.elements,t=t.elements;return e[12]=t[12],e[13]=t[13],e[14]=t[14],this},extractBasis:function(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this},makeBasis:function(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:function(t){void 0===at&&(at=new zt.Vector3);var e=this.elements,n=t.elements,i=1/at.setFromMatrixColumn(t,0).length(),r=1/at.setFromMatrixColumn(t,1).length(),t=1/at.setFromMatrixColumn(t,2).length();return e[0]=n[0]*i,e[1]=n[1]*i,e[2]=n[2]*i,e[4]=n[4]*r,e[5]=n[5]*r,e[6]=n[6]*r,e[8]=n[8]*t,e[9]=n[9]*t,e[10]=n[10]*t,this},makeRotationFromEuler:function(t){t instanceof zt.Euler==!1&&console.error("THREE.Matrix: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var e,n,i,r,o,a,s,l,c,u,h,d,p=this.elements,f=t.x,m=t.y,g=t.z,v=Math.cos(f),f=Math.sin(f),y=Math.cos(m),m=Math.sin(m),_=Math.cos(g),g=Math.sin(g);return"XYZ"===t.order?(o=v*_,a=v*g,s=f*_,l=f*g,p[0]=y*_,p[4]=-y*g,p[8]=m,p[1]=a+s*m,p[5]=o-l*m,p[9]=-f*y,p[2]=l-o*m,p[6]=s+a*m,p[10]=v*y):"YXZ"===t.order?(n=y*g,i=m*_,p[0]=(e=y*_)+(r=m*g)*f,p[4]=i*f-n,p[8]=v*m,p[1]=v*g,p[5]=v*_,p[9]=-f,p[2]=n*f-i,p[6]=r+e*f,p[10]=v*y):"ZXY"===t.order?(n=y*g,i=m*_,p[0]=(e=y*_)-(r=m*g)*f,p[4]=-v*g,p[8]=i+n*f,p[1]=n+i*f,p[5]=v*_,p[9]=r-e*f,p[2]=-v*m,p[6]=f,p[10]=v*y):"ZYX"===t.order?(o=v*_,a=v*g,s=f*_,l=f*g,p[0]=y*_,p[4]=s*m-a,p[8]=o*m+l,p[1]=y*g,p[5]=l*m+o,p[9]=a*m-s,p[2]=-m,p[6]=f*y,p[10]=v*y):"YZX"===t.order?(c=v*y,u=v*m,h=f*y,d=f*m,p[0]=y*_,p[4]=d-c*g,p[8]=h*g+u,p[1]=g,p[5]=v*_,p[9]=-f*_,p[2]=-m*_,p[6]=u*g+h,p[10]=c-d*g):"XZY"===t.order&&(c=v*y,u=v*m,h=f*y,d=f*m,p[0]=y*_,p[4]=-g,p[8]=m*_,p[1]=c*g+d,p[5]=v*_,p[9]=u*g-h,p[2]=h*g-u,p[6]=f*_,p[10]=d*g+c),p[3]=0,p[7]=0,p[11]=0,p[12]=0,p[13]=0,p[14]=0,p[15]=1,this},makeRotationFromQuaternion:function(t){var e=this.elements,n=t.x,i=t.y,r=t.z,t=t.w,o=n+n,a=i+i,s=r+r,l=n*o,c=n*a,n=n*s,u=i*a,i=i*s,r=r*s,o=t*o,a=t*a,t=t*s;return e[0]=1-(u+r),e[4]=c-t,e[8]=n+a,e[1]=c+t,e[5]=1-(l+r),e[9]=i-o,e[2]=n-a,e[6]=i+o,e[10]=1-(l+u),e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},lookAt:function(t,e,n){void 0===f&&(f=new zt.Vector3,m=new zt.Vector3,g=new zt.Vector3);var i=this.elements;return g.subVectors(t,e).normalize(),0===g.lengthSq()&&(g.z=1),f.crossVectors(n,g).normalize(),0===f.lengthSq()&&(g.z+=1e-4,f.crossVectors(n,g).normalize()),m.crossVectors(g,f),i[0]=f.x,i[4]=m.x,i[8]=g.x,i[1]=f.y,i[5]=m.y,i[9]=g.y,i[2]=f.z,i[6]=m.z,i[10]=g.z,this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var t=t.elements,e=e.elements,n=this.elements,i=t[0],r=t[4],o=t[8],a=t[12],s=t[1],l=t[5],c=t[9],u=t[13],h=t[2],d=t[6],p=t[10],f=t[14],m=t[3],g=t[7],v=t[11],t=t[15],y=e[0],_=e[4],b=e[8],x=e[12],w=e[1],T=e[5],S=e[9],C=e[13],E=e[2],M=e[6],P=e[10],k=e[14],A=e[3],O=e[7],R=e[11],e=e[15];return n[0]=i*y+r*w+o*E+a*A,n[4]=i*_+r*T+o*M+a*O,n[8]=i*b+r*S+o*P+a*R,n[12]=i*x+r*C+o*k+a*e,n[1]=s*y+l*w+c*E+u*A,n[5]=s*_+l*T+c*M+u*O,n[9]=s*b+l*S+c*P+u*R,n[13]=s*x+l*C+c*k+u*e,n[2]=h*y+d*w+p*E+f*A,n[6]=h*_+d*T+p*M+f*O,n[10]=h*b+d*S+p*P+f*R,n[14]=h*x+d*C+p*k+f*e,n[3]=m*y+g*w+v*E+t*A,n[7]=m*_+g*T+v*M+t*O,n[11]=m*b+g*S+v*P+t*R,n[15]=m*x+g*C+v*k+t*e,this},multiplyToArray:function(t,e,n){var i=this.elements;return this.multiplyMatrices(t,e),n[0]=i[0],n[1]=i[1],n[2]=i[2],n[3]=i[3],n[4]=i[4],n[5]=i[5],n[6]=i[6],n[7]=i[7],n[8]=i[8],n[9]=i[9],n[10]=i[10],n[11]=i[11],n[12]=i[12],n[13]=i[13],n[14]=i[14],n[15]=i[15],this},multiplyScalar:function(t){var 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},applyToVector3Array:function(t,e,n){void 0===p&&(p=new zt.Vector3),void 0===n&&(n=t.length);for(var i=0,r=e=void 0===e?0:e;i<n;i+=3,r+=3)p.fromArray(t,r),p.applyMatrix4(this),p.toArray(t,r);return t},applyToBuffer:function(t,e,n){void 0===d&&(d=new zt.Vector3),void 0===n&&(n=t.length/t.itemSize);for(var i=0,r=e=void 0===e?0:e;i<n;i++,r++)d.x=t.getX(r),d.y=t.getY(r),d.z=t.getZ(r),d.applyMatrix4(this),t.setXYZ(d.x,d.y,d.z);return t},determinant:function(){var t=this.elements,e=t[0],n=t[4],i=t[8],r=t[12],o=t[1],a=t[5],s=t[9],l=t[13],c=t[2],u=t[6],h=t[10],d=t[14];return t[3]*(+r*s*u-i*l*u-r*a*h+n*l*h+i*a*d-n*s*d)+t[7]*(+e*s*d-e*l*h+r*o*h-i*o*d+i*l*c-r*s*c)+t[11]*(+e*l*u-e*a*d-r*o*u+n*o*d+r*a*c-n*l*c)+t[15]*(-i*a*c-e*s*u+e*a*h+i*o*u-n*o*h+n*s*c)},transpose:function(){var t=this.elements,e=t[1];return 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},flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset is deprecated - just use .toArray instead."),this.toArray(t,e)},getPosition:function(){return void 0===ot&&(ot=new zt.Vector3),console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),ot.setFromMatrixColumn(this,3)},setPosition:function(t){var e=this.elements;return e[12]=t.x,e[13]=t.y,e[14]=t.z,this},getInverse:function(t,e){var n=this.elements,t=t.elements,i=t[0],r=t[1],o=t[2],a=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],d=t[9],p=t[10],f=t[11],m=t[12],g=t[13],v=t[14],t=t[15],y=d*v*u-g*p*u+g*c*f-l*v*f-d*c*t+l*p*t,_=m*p*u-h*v*u-m*c*f+s*v*f+h*c*t-s*p*t,b=h*g*u-m*d*u+m*l*f-s*g*f-h*l*t+s*d*t,x=m*d*c-h*g*c-m*l*p+s*g*p+h*l*v-s*d*v,w=i*y+r*_+o*b+a*x;if(0==w){var T="THREE.Matrix4.getInverse(): can't invert matrix, determinant is 0";if(e)throw new Error(T);return console.warn(T),this.identity()}e=1/w;return n[0]=y*e,n[1]=(g*p*a-d*v*a-g*o*f+r*v*f+d*o*t-r*p*t)*e,n[2]=(l*v*a-g*c*a+g*o*u-r*v*u-l*o*t+r*c*t)*e,n[3]=(d*c*a-l*p*a-d*o*u+r*p*u+l*o*f-r*c*f)*e,n[4]=_*e,n[5]=(h*v*a-m*p*a+m*o*f-i*v*f-h*o*t+i*p*t)*e,n[6]=(m*c*a-s*v*a-m*o*u+i*v*u+s*o*t-i*c*t)*e,n[7]=(s*p*a-h*c*a+h*o*u-i*p*u-s*o*f+i*c*f)*e,n[8]=b*e,n[9]=(m*d*a-h*g*a-m*r*f+i*g*f+h*r*t-i*d*t)*e,n[10]=(s*g*a-m*l*a+m*r*u-i*g*u-s*r*t+i*l*t)*e,n[11]=(h*l*a-s*d*a-h*r*u+i*d*u+s*r*f-i*l*f)*e,n[12]=x*e,n[13]=(h*g*o-m*d*o+m*r*p-i*g*p-h*r*v+i*d*v)*e,n[14]=(m*l*o-s*g*o-m*r*c+i*g*c+s*r*v-i*l*v)*e,n[15]=(s*d*o-h*l*o+h*r*c-i*d*c-s*r*p+i*l*p)*e,this},scale:function(t){var e=this.elements,n=t.x,i=t.y,t=t.z;return e[0]*=n,e[4]*=i,e[8]*=t,e[1]*=n,e[5]*=i,e[9]*=t,e[2]*=n,e[6]*=i,e[10]*=t,e[3]*=n,e[7]*=i,e[11]*=t,this},getMaxScaleOnAxis:function(){var 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],t=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,t))},makeTranslation:function(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this},makeRotationX:function(t){var e=Math.cos(t),t=Math.sin(t);return this.set(1,0,0,0,0,e,-t,0,0,t,e,0,0,0,0,1),this},makeRotationY:function(t){var e=Math.cos(t),t=Math.sin(t);return this.set(e,0,t,0,0,1,0,0,-t,0,e,0,0,0,0,1),this},makeRotationZ:function(t){var e=Math.cos(t),t=Math.sin(t);return this.set(e,-t,0,0,t,e,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(t,e){var n=Math.cos(e),e=Math.sin(e),i=1-n,r=t.x,o=t.y,t=t.z,a=i*r,s=i*o;return this.set(a*r+n,a*o-e*t,a*t+e*o,0,a*o+e*t,s*o+n,s*t-e*r,0,a*t-e*o,s*t+e*r,i*t*t+n,0,0,0,0,1),this},makeScale:function(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this},compose:function(t,e,n){return this.makeRotationFromQuaternion(e),this.scale(n),this.setPosition(t),this},decompose:function(t,e,n){void 0===u&&(u=new zt.Vector3,h=new zt.Matrix4);var i=this.elements,r=u.set(i[0],i[1],i[2]).length(),o=u.set(i[4],i[5],i[6]).length(),a=u.set(i[8],i[9],i[10]).length(),t=(this.determinant()<0&&(r=-r),t.x=i[12],t.y=i[13],t.z=i[14],h.elements.set(this.elements),1/r),i=1/o,s=1/a;return h.elements[0]*=t,h.elements[1]*=t,h.elements[2]*=t,h.elements[4]*=i,h.elements[5]*=i,h.elements[6]*=i,h.elements[8]*=s,h.elements[9]*=s,h.elements[10]*=s,e.setFromRotationMatrix(h),n.x=r,n.y=o,n.z=a,this},makeFrustum:function(t,e,n,i,r,o){var a=this.elements,s=2*r/(i-n),l=(e+t)/(e-t),i=(i+n)/(i-n),n=-(o+r)/(o-r),o=-2*o*r/(o-r);return a[0]=2*r/(e-t),a[4]=0,a[8]=l,a[12]=0,a[1]=0,a[5]=s,a[9]=i,a[13]=0,a[2]=0,a[6]=0,a[10]=n,a[14]=o,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this},makePerspective:function(t,e,n,i){var t=n*Math.tan(zt.Math.DEG2RAD*t*.5),r=-t;return this.makeFrustum(r*e,t*e,r,t,n,i)},makeOrthographic:function(t,e,n,i,r,o){var a=this.elements,s=1/(e-t),l=1/(n-i),c=1/(o-r),e=(e+t)*s,t=(n+i)*l,n=(o+r)*c;return a[0]=2*s,a[4]=0,a[8]=0,a[12]=-e,a[1]=0,a[5]=2*l,a[9]=0,a[13]=-t,a[2]=0,a[6]=0,a[10]=-2*c,a[14]=-n,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this},equals:function(t){for(var e=this.elements,n=t.elements,i=0;i<16;i++)if(e[i]!==n[i])return!1;return!0},fromArray:function(t){return this.elements.set(t),this},toArray:function(t,e){var n=this.elements;return(t=void 0===t?[]:t)[e=void 0===e?0: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}},zt.Ray=function(t,e){this.origin=void 0!==t?t:new zt.Vector3,this.direction=void 0!==e?e:new zt.Vector3},zt.Ray.prototype={constructor:zt.Ray,set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return(e||new zt.Vector3).copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:(vt=new zt.Vector3,function(t){return this.origin.copy(this.at(t,vt)),this}),closestPointToPoint:function(t,e){e=e||new zt.Vector3,e.subVectors(t,this.origin),t=e.dot(this.direction);return t<0?e.copy(this.origin):e.copy(this.direction).multiplyScalar(t).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:(gt=new zt.Vector3,function(t){var e=gt.subVectors(t,this.origin).dot(this.direction);return(e<0?this.origin:(gt.copy(this.direction).multiplyScalar(e).add(this.origin),gt)).distanceToSquared(t)}),distanceSqToSegment:(pt=new zt.Vector3,ft=new zt.Vector3,mt=new zt.Vector3,function(t,e,n,i){pt.copy(t).add(e).multiplyScalar(.5),ft.copy(e).sub(t).normalize(),mt.copy(this.origin).sub(pt);var r,o,a,t=.5*t.distanceTo(e),e=-this.direction.dot(ft),s=mt.dot(this.direction),l=-mt.dot(ft),c=mt.lengthSq(),u=Math.abs(1-e*e);return u=0<u?(o=e*s-l,a=t*u,0<=(r=e*l-s)?-a<=o?o<=a?(r*=u=1/u)*(r+e*(o*=u)+2*s)+o*(e*r+o+2*l)+c:(o=t,-(r=Math.max(0,-(e*o+s)))*r+o*(o+2*l)+c):(o=-t,-(r=Math.max(0,-(e*o+s)))*r+o*(o+2*l)+c):o<=-a?-(r=Math.max(0,-(-e*t+s)))*r+(o=0<r?-t:Math.min(Math.max(-t,-l),t))*(o+2*l)+c:o<=a?(r=0,(o=Math.min(Math.max(-t,-l),t))*(o+2*l)+c):-(r=Math.max(0,-(e*t+s)))*r+(o=0<r?t:Math.min(Math.max(-t,-l),t))*(o+2*l)+c):(o=0<e?-t:t,-(r=Math.max(0,-(e*o+s)))*r+o*(o+2*l)+c),n&&n.copy(this.direction).multiplyScalar(r).add(this.origin),i&&i.copy(ft).multiplyScalar(o).add(pt),u}),intersectSphere:(dt=new zt.Vector3,function(t,e){dt.subVectors(t.center,this.origin);var n=dt.dot(this.direction),i=dt.dot(dt)-n*n,t=t.radius*t.radius;return t<i||(i=n+(t=Math.sqrt(t-i)),(n=n-t)<0&&i<0)?null:n<0?this.at(i,e):this.at(n,e)}),intersectsSphere:function(t){return this.distanceToPoint(t.center)<=t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);return 0===e?0===t.distanceToPoint(this.origin)?0:null:0<=(t=-(this.origin.dot(t.normal)+t.constant)/e)?t:null},intersectPlane:function(t,e){t=this.distanceToPlane(t);return null===t?null:this.at(t,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);return 0===e||t.normal.dot(this.direction)*e<0},intersectBox:function(t,e){var n,i,r,o=1/this.direction.x,a=1/this.direction.y,s=1/this.direction.z,l=this.origin,o=0<=o?(n=(t.min.x-l.x)*o,(t.max.x-l.x)*o):(n=(t.max.x-l.x)*o,(t.min.x-l.x)*o),a=0<=a?(r=(t.min.y-l.y)*a,(t.max.y-l.y)*a):(r=(t.max.y-l.y)*a,(t.min.y-l.y)*a);return a<n||o<r||((n<r||n!=n)&&(n=r),(a<o||o!=o)&&(o=a),(r=0<=s?(i=(t.min.z-l.z)*s,(t.max.z-l.z)*s):(i=(t.max.z-l.z)*s,(t.min.z-l.z)*s))<n)||o<i||((n<i||n!=n)&&(n=i),(o=r<o||o!=o?r:o)<0)?null:this.at(0<=n?n:o,e)},intersectsBox:(ht=new zt.Vector3,function(t){return null!==this.intersectBox(t,ht)}),intersectTriangle:(st=new zt.Vector3,lt=new zt.Vector3,ct=new zt.Vector3,ut=new zt.Vector3,function(t,e,n,i,r){lt.subVectors(e,t),ct.subVectors(n,t),ut.crossVectors(lt,ct);var o,e=this.direction.dot(ut);if(0<e){if(i)return null;o=1}else{if(!(e<0))return null;o=-1,e=-e}st.subVectors(this.origin,t);n=o*this.direction.dot(ct.crossVectors(st,ct));return n<0||(i=o*this.direction.dot(lt.cross(st)))<0||e<n+i||(t=-o*st.dot(ut))<0?null:this.at(t/e,r)}),applyMatrix4:function(t){return this.direction.add(this.origin).applyMatrix4(t),this.origin.applyMatrix4(t),this.direction.sub(this.origin),this.direction.normalize(),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}},zt.Sphere=function(t,e){this.center=void 0!==t?t:new zt.Vector3,this.radius=void 0!==e?e:0},zt.Sphere.prototype={constructor:zt.Sphere,set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:(yt=new zt.Box3,function(t,e){for(var n=this.center,i=(void 0!==e?n.copy(e):yt.setFromPoints(t).center(n),0),r=0,o=t.length;r<o;r++)i=Math.max(i,n.distanceToSquared(t[r]));return this.radius=Math.sqrt(i),this}),clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.center.copy(t.center),this.radius=t.radius,this},empty:function(){return this.radius<=0},containsPoint:function(t){return t.distanceToSquared(this.center)<=this.radius*this.radius},distanceToPoint:function(t){return t.distanceTo(this.center)-this.radius},intersectsSphere:function(t){var e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e},intersectsBox:function(t){return t.intersectsSphere(this)},intersectsPlane:function(t){return Math.abs(this.center.dot(t.normal)-t.constant)<=this.radius},clampPoint:function(t,e){var n=this.center.distanceToSquared(t),e=e||new zt.Vector3;return e.copy(t),n>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e},getBoundingBox:function(t){t=t||new zt.Box3;return t.set(this.center,this.center),t.expandByScalar(this.radius),t},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}},zt.Frustum=function(t,e,n,i,r,o){this.planes=[void 0!==t?t:new zt.Plane,void 0!==e?e:new zt.Plane,void 0!==n?n:new zt.Plane,void 0!==i?i:new zt.Plane,void 0!==r?r:new zt.Plane,void 0!==o?o:new zt.Plane]},zt.Frustum.prototype={constructor:zt.Frustum,set:function(t,e,n,i,r,o){var 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(o),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){for(var e=this.planes,n=0;n<6;n++)e[n].copy(t.planes[n]);return this},setFromMatrix:function(t){var e=this.planes,t=t.elements,n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],l=t[6],c=t[7],u=t[8],h=t[9],d=t[10],p=t[11],f=t[12],m=t[13],g=t[14],t=t[15];return e[0].setComponents(o-n,c-a,p-u,t-f).normalize(),e[1].setComponents(o+n,c+a,p+u,t+f).normalize(),e[2].setComponents(o+i,c+s,p+h,t+m).normalize(),e[3].setComponents(o-i,c-s,p-h,t-m).normalize(),e[4].setComponents(o-r,c-l,p-d,t-g).normalize(),e[5].setComponents(o+r,c+l,p+d,t+g).normalize(),this},intersectsObject:(wt=new zt.Sphere,function(t){var e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),wt.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),this.intersectsSphere(wt)}),intersectsSprite:(xt=new zt.Sphere,function(t){return xt.center.set(0,0,0),xt.radius=.7071067811865476,xt.applyMatrix4(t.matrixWorld),this.intersectsSphere(xt)}),intersectsSphere:function(t){for(var e=this.planes,n=t.center,i=-t.radius,r=0;r<6;r++)if(e[r].distanceToPoint(n)<i)return!1;return!0},intersectsBox:(_t=new zt.Vector3,bt=new zt.Vector3,function(t){for(var e=this.planes,n=0;n<6;n++){var i=e[n],r=(_t.x=(0<i.normal.x?t.min:t.max).x,bt.x=(0<i.normal.x?t.max:t.min).x,_t.y=(0<i.normal.y?t.min:t.max).y,bt.y=(0<i.normal.y?t.max:t.min).y,_t.z=(0<i.normal.z?t.min:t.max).z,bt.z=(0<i.normal.z?t.max:t.min).z,i.distanceToPoint(_t)),i=i.distanceToPoint(bt);if(r<0&&i<0)return!1}return!0}),containsPoint:function(t){for(var e=this.planes,n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}},zt.Plane=function(t,e){this.normal=void 0!==t?t:new zt.Vector3(1,0,0),this.constant=void 0!==e?e:0},zt.Plane.prototype={constructor:zt.Plane,set:function(t,e){return this.normal.copy(t),this.constant=e,this},setComponents:function(t,e,n,i){return this.normal.set(t,e,n),this.constant=i,this},setFromNormalAndCoplanarPoint:function(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this},setFromCoplanarPoints:(Et=new zt.Vector3,Mt=new zt.Vector3,function(t,e,n){n=Et.subVectors(n,e).cross(Mt.subVectors(t,e)).normalize();return this.setFromNormalAndCoplanarPoint(n,t),this}),clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.normal.copy(t.normal),this.constant=t.constant,this},normalize:function(){var t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this},negate:function(){return this.constant*=-1,this.normal.negate(),this},distanceToPoint:function(t){return this.normal.dot(t)+this.constant},distanceToSphere:function(t){return this.distanceToPoint(t.center)-t.radius},projectPoint:function(t,e){return this.orthoPoint(t,e).sub(t).negate()},orthoPoint:function(t,e){t=this.distanceToPoint(t);return(e||new zt.Vector3).copy(this.normal).multiplyScalar(t)},intersectLine:(Ct=new zt.Vector3,function(t,e){var e=e||new zt.Vector3,n=t.delta(Ct),i=this.normal.dot(n);return 0===i?0===this.distanceToPoint(t.start)?e.copy(t.start):void 0:(i=-(t.start.dot(this.normal)+this.constant)/i)<0||1<i?void 0:e.copy(n).multiplyScalar(i).add(t.start)}),intersectsLine:function(t){var e=this.distanceToPoint(t.start),t=this.distanceToPoint(t.end);return e<0&&0<t||t<0&&0<e},intersectsBox:function(t){return t.intersectsPlane(this)},intersectsSphere:function(t){return t.intersectsPlane(this)},coplanarPoint:function(t){return(t||new zt.Vector3).copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:(Tt=new zt.Vector3,St=new zt.Matrix3,function(t,e){var n=this.coplanarPoint(Tt).applyMatrix4(t),e=e||St.getNormalMatrix(t),t=this.normal.applyMatrix3(e).normalize();return this.constant=-n.dot(t),this}),translate:function(t){return this.constant=this.constant-t.dot(this.normal),this},equals:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}},zt.Spherical=function(t,e,n){return this.radius=void 0!==t?t:1,this.phi=void 0!==e?e:0,this.theta=void 0!==n?n:0,this},zt.Spherical.prototype={constructor:zt.Spherical,set:function(t,e,n){return this.radius=t,this.phi=e,this.theta=n,this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.radius.copy(t.radius),this.phi.copy(t.phi),this.theta.copy(t.theta),this},makeSafe:function(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this},setFromVector3:function(t){return this.radius=t.length(),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(t.x,t.z),this.phi=Math.acos(zt.Math.clamp(t.y/this.radius,-1,1))),this}},zt.Math={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:(kt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),At=new Array(36),Ot=0,function(){for(var t=0;t<36;t++)8===t||13===t||18===t||23===t?At[t]="-":14===t?At[t]="4":(Ot<=2&&(Ot=33554432+16777216*Math.random()|0),Pt=15&Ot,Ot>>=4,At[t]=kt[19===t?3&Pt|8:Pt]);return At.join("")}),clamp:function(t,e,n){return Math.max(e,Math.min(n,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)},smoothstep:function(t,e,n){return t<=e?0:n<=t?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:n<=t?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},random16:function(){return console.warn("THREE.Math.random16() has been deprecated. Use Math.random() instead."),Math.random()},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())},degToRad:function(t){return t*zt.Math.DEG2RAD},radToDeg:function(t){return t*zt.Math.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},nearestPowerOfTwo:function(t){return Math.pow(2,Math.round(Math.log(t)/Math.LN2))},nextPowerOfTwo:function(t){return t--,t=(t=(t=(t=(t|=t>>1)|t>>2)|t>>4)|t>>8)|t>>16,++t}},zt.Spline=function(t){this.points=t;var e,n,i,r,o,a,s,l=[],c={x:0,y:0,z:0};function u(t,e,n,i,r,o,a){t=.5*(n-t),i=.5*(i-e);return(2*(e-n)+t+i)*a+(-3*(e-n)-2*t-i)*o+t*r+e}this.initFromArray=function(t){this.points=[];for(var e=0;e<t.length;e++)this.points[e]={x:t[e][0],y:t[e][1],z:t[e][2]}},this.getPoint=function(t){return e=(this.points.length-1)*t,r=Math.floor(e),e=e-r,l[0]=0===r?r:r-1,l[1]=r,l[2]=r>this.points.length-2?this.points.length-1:r+1,l[3]=r>this.points.length-3?this.points.length-1:r+2,r=this.points[l[0]],o=this.points[l[1]],a=this.points[l[2]],s=this.points[l[3]],i=e*(n=e*e),c.x=u(r.x,o.x,a.x,s.x,e,n,i),c.y=u(r.y,o.y,a.y,s.y,e,n,i),c.z=u(r.z,o.z,a.z,s.z,e,n,i),c},this.getControlPointsArray=function(){for(var t,e=this.points.length,n=[],i=0;i<e;i++)t=this.points[i],n[i]=[t.x,t.y,t.z];return n},this.getLength=function(t){var e,n,i,r=0,o=new zt.Vector3,a=new zt.Vector3,s=[],l=0,c=this.points.length*(t=t||100);for(o.copy(this.points[s[0]=0]),e=1;e<c;e++)n=this.getPoint(i=e/c),a.copy(n),l+=a.distanceTo(o),o.copy(n),n=(this.points.length-1)*i,(i=Math.floor(n))!==r&&(s[i]=l,r=i);return s[s.length]=l,{chunks:s,total:l}},this.reparametrizeByArcLength=function(t){var e,n,i,r,o,a,s,l=[],c=new zt.Vector3,u=this.getLength();for(l.push(c.copy(this.points[0]).clone()),e=1;e<this.points.length;e++){for(o=u.chunks[e]-u.chunks[e-1],a=Math.ceil(t*o/u.total),i=(e-1)/(this.points.length-1),r=e/(this.points.length-1),n=1;n<a-1;n++)s=this.getPoint(i+n*(1/a)*(r-i)),l.push(c.copy(s).clone());l.push(c.copy(this.points[e]).clone())}this.points=l}},zt.Triangle=function(t,e,n){this.a=void 0!==t?t:new zt.Vector3,this.b=void 0!==e?e:new zt.Vector3,this.c=void 0!==n?n:new zt.Vector3},zt.Triangle.normal=(Rt=new zt.Vector3,function(t,e,n,i){i=i||new zt.Vector3,i.subVectors(n,e),Rt.subVectors(t,e),i.cross(Rt),n=i.lengthSq();return 0<n?i.multiplyScalar(1/Math.sqrt(n)):i.set(0,0,0)}),zt.Triangle.barycoordFromPoint=(v=new zt.Vector3,y=new zt.Vector3,Lt=new zt.Vector3,function(t,e,n,i,r){v.subVectors(i,e),y.subVectors(n,e),Lt.subVectors(t,e);var i=v.dot(v),n=v.dot(y),t=v.dot(Lt),e=y.dot(y),o=y.dot(Lt),a=i*e-n*n,r=r||new zt.Vector3;return 0==a?r.set(-2,-1,-1):r.set(1-(e=(e*t-n*o)*(r=1/a))-(a=(i*o-n*t)*r),a,e)}),zt.Triangle.containsPoint=(Dt=new zt.Vector3,function(t,e,n,i){t=zt.Triangle.barycoordFromPoint(t,e,n,i,Dt);return 0<=t.x&&0<=t.y&&t.x+t.y<=1}),zt.Triangle.prototype={constructor:zt.Triangle,set:function(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this},setFromPointsAndIndices:function(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},area:(Ft=new zt.Vector3,Bt=new zt.Vector3,function(){return Ft.subVectors(this.c,this.b),Bt.subVectors(this.a,this.b),.5*Ft.cross(Bt).length()}),midpoint:function(t){return(t||new zt.Vector3).addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},normal:function(t){return zt.Triangle.normal(this.a,this.b,this.c,t)},plane:function(t){return(t||new zt.Plane).setFromCoplanarPoints(this.a,this.b,this.c)},barycoordFromPoint:function(t,e){return zt.Triangle.barycoordFromPoint(t,this.a,this.b,this.c,e)},containsPoint:function(t){return zt.Triangle.containsPoint(t,this.a,this.b,this.c)},closestPointToPoint:function(t,e){void 0===jt&&(jt=new zt.Plane,_=[new zt.Line3,new zt.Line3,new zt.Line3],b=new zt.Vector3,It=new zt.Vector3);var n=e||new zt.Vector3,i=1/0;if(jt.setFromCoplanarPoints(this.a,this.b,this.c),jt.projectPoint(t,b),!0===this.containsPoint(b))n.copy(b);else{_[0].set(this.a,this.b),_[1].set(this.b,this.c),_[2].set(this.c,this.a);for(var r=0;r<_.length;r++){_[r].closestPointToPoint(b,!0,It);var o=b.distanceToSquared(It);o<i&&(i=o,n.copy(It))}}return n},equals:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}},zt.Interpolant=function(t,e,n,i){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new e.constructor(n),this.sampleValues=e,this.valueSize=n},zt.Interpolant.prototype={constructor:zt.Interpolant,evaluate:function(t){var e,n=this.parameterPositions,i=this._cachedIndex,r=n[i],o=n[i-1];t:{e:{n:{i:if(!(t<r)){for(var a=i+2;;){if(void 0===r){if(t<o)break i;return i=n.length,this._cachedIndex=i,this.afterEnd_(i-1,t,o)}if(i===a)break;if(o=r,t<(r=n[++i]))break e}e=n.length;break n}if(o<=t)break t;var s=n[1];t<s&&(i=2,o=s);for(a=i-2;;){if(void 0===o)return this._cachedIndex=0,this.beforeStart_(0,t,r);if(i===a)break;if(r=o,(o=n[--i-1])<=t)break e}e=i,i=0}for(;i<e;){var l=i+e>>>1;t<n[l]?e=l:i=1+l}if(r=n[i],void 0===(o=n[i-1]))return this._cachedIndex=0,this.beforeStart_(0,t,r);if(void 0===r)return i=n.length,this._cachedIndex=i,this.afterEnd_(i-1,o,t)}this._cachedIndex=i,this.intervalChanged_(i,o,r)}return this.interpolate_(i,o,t,r)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(t){for(var e=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=t*i,o=0;o!==i;++o)e[o]=n[r+o];return e},interpolate_:function(t,e,n,i){throw new Error("call to abstract method")},intervalChanged_:function(t,e,n){}},Object.assign(zt.Interpolant.prototype,{beforeStart_:zt.Interpolant.prototype.copySampleValue_,afterEnd_:zt.Interpolant.prototype.copySampleValue_}),zt.CubicInterpolant=function(t,e,n,i){zt.Interpolant.call(this,t,e,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0},zt.CubicInterpolant.prototype=Object.assign(Object.create(zt.Interpolant.prototype),{constructor:zt.CubicInterpolant,DefaultSettings_:{endingStart:zt.ZeroCurvatureEnding,endingEnd:zt.ZeroCurvatureEnding},intervalChanged_:function(t,e,n){var i=this.parameterPositions,r=t-2,o=t+1,a=i[r],s=i[o];if(void 0===a)switch(this.getSettings_().endingStart){case zt.ZeroSlopeEnding:r=t,a=2*e-n;break;case zt.WrapAroundEnding:a=e+i[r=i.length-2]-i[r+1];break;default:r=t,a=n}if(void 0===s)switch(this.getSettings_().endingEnd){case zt.ZeroSlopeEnding:o=t,s=2*n-e;break;case zt.WrapAroundEnding:s=n+i[o=1]-i[0];break;default:o=t-1,s=e}var l=.5*(n-e),c=this.valueSize;this._weightPrev=l/(e-a),this._weightNext=l/(s-n),this._offsetPrev=r*c,this._offsetNext=o*c},interpolate_:function(t,e,n,i){for(var r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,l=s-a,c=this._offsetPrev,u=this._offsetNext,t=this._weightPrev,h=this._weightNext,n=(n-e)/(i-e),i=n*n,e=i*n,d=-t*e+2*t*i-t*n,p=(1+t)*e+(-1.5-2*t)*i+(-.5+t)*n+1,f=(-1-h)*e+(1.5+h)*i+.5*n,m=h*e-h*i,g=0;g!==a;++g)r[g]=d*o[c+g]+p*o[l+g]+f*o[s+g]+m*o[u+g];return r}}),zt.DiscreteInterpolant=function(t,e,n,i){zt.Interpolant.call(this,t,e,n,i)},zt.DiscreteInterpolant.prototype=Object.assign(Object.create(zt.Interpolant.prototype),{constructor:zt.DiscreteInterpolant,interpolate_:function(t,e,n,i){return this.copySampleValue_(t-1)}}),zt.LinearInterpolant=function(t,e,n,i){zt.Interpolant.call(this,t,e,n,i)},zt.LinearInterpolant.prototype=Object.assign(Object.create(zt.Interpolant.prototype),{constructor:zt.LinearInterpolant,interpolate_:function(t,e,n,i){for(var r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,l=s-a,c=(n-e)/(i-e),u=1-c,h=0;h!==a;++h)r[h]=o[l+h]*u+o[s+h]*c;return r}}),zt.QuaternionLinearInterpolant=function(t,e,n,i){zt.Interpolant.call(this,t,e,n,i)},zt.QuaternionLinearInterpolant.prototype=Object.assign(Object.create(zt.Interpolant.prototype),{constructor:zt.QuaternionLinearInterpolant,interpolate_:function(t,e,n,i){for(var r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,l=(n-e)/(i-e),c=s+a;s!==c;s+=4)zt.Quaternion.slerpFlat(r,0,o,s-a,o,s,l);return r}}),zt.Clock=function(t){this.autoStart=void 0===t||t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1},zt.Clock.prototype={constructor:zt.Clock,start:function(){this.startTime=(performance||Date).now(),this.oldTime=this.startTime,this.running=!0},stop:function(){this.getElapsedTime(),this.running=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var t,e=0;return this.autoStart&&!this.running&&this.start(),this.running&&(e=((t=(performance||Date).now())-this.oldTime)/1e3,this.oldTime=t,this.elapsedTime+=e),e}},zt.EventDispatcher=function(){},Object.assign(zt.EventDispatcher.prototype,{addEventListener:function(t,e){void 0===this._listeners&&(this._listeners={});var n=this._listeners;void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)},hasEventListener:function(t,e){var n;return void 0!==this._listeners&&void 0!==(n=this._listeners)[t]&&-1!==n[t].indexOf(e)},removeEventListener:function(t,e){var n;void 0!==this._listeners&&void 0!==(t=this._listeners[t])&&-1!==(n=t.indexOf(e))&&t.splice(n,1)},dispatchEvent:function(t){if(void 0!==this._listeners){var e=this._listeners[t.type];if(void 0!==e){t.target=this;for(var n=[],i=0,r=e.length,i=0;i<r;i++)n[i]=e[i];for(i=0;i<r;i++)n[i].call(this,t)}}}}),zt.Layers=function(){this.mask=1},zt.Layers.prototype={constructor:zt.Layers,set:function(t){this.mask=1<<t},enable:function(t){this.mask|=1<<t},toggle:function(t){this.mask^=1<<t},disable:function(t){this.mask&=~(1<<t)},test:function(t){return 0!=(this.mask&t.mask)}},(x=zt).Raycaster=function(t,e,n,i){this.ray=new x.Ray(t,e),this.near=n||0,this.far=i||1/0,this.params={Mesh:{},Line:{},LOD:{},Points:{threshold:1},Sprite:{}},Object.defineProperties(this.params,{PointCloud:{get:function(){return console.warn("THREE.Raycaster: params.PointCloud has been renamed to params.Points."),this.Points}}})},x.Raycaster.prototype={constructor:x.Raycaster,linePrecision:1,set:function(t,e){this.ray.set(t,e)},setFromCamera:function(t,e){e instanceof x.PerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize()):e instanceof x.OrthographicCamera?(this.ray.origin.set(t.x,t.y,-1).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld)):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(t,e){var n=[];return Ln(t,this,n,e),n.sort(Rn),n},intersectObjects:function(t,e){var n=[];if(!1===Array.isArray(t))console.warn("THREE.Raycaster.intersectObjects: objects is not an Array.");else{for(var i=0,r=t.length;i<r;i++)Ln(t[i],this,n,e);n.sort(Rn)}return n}},zt.Object3D=function(){Object.defineProperty(this,"id",{value:zt.Object3DIdCount++}),this.uuid=zt.Math.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=zt.Object3D.DefaultUp.clone();var t=new zt.Vector3,e=new zt.Euler,n=new zt.Quaternion,i=new zt.Vector3(1,1,1);e.onChange(function(){n.setFromEuler(e,!1)}),n.onChange(function(){e.setFromQuaternion(n,void 0,!1)}),Object.defineProperties(this,{position:{enumerable:!0,value:t},rotation:{enumerable:!0,value:e},quaternion:{enumerable:!0,value:n},scale:{enumerable:!0,value:i},modelViewMatrix:{value:new zt.Matrix4},normalMatrix:{value:new zt.Matrix3}}),this.matrix=new zt.Matrix4,this.matrixWorld=new zt.Matrix4,this.matrixAutoUpdate=zt.Object3D.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new zt.Layers,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}},zt.Object3D.DefaultUp=new zt.Vector3(0,1,0),zt.Object3D.DefaultMatrixAutoUpdate=!0,Object.assign(zt.Object3D.prototype,zt.EventDispatcher.prototype,{applyMatrix:function(t){this.matrix.multiplyMatrices(t,this.matrix),this.matrix.decompose(this.position,this.quaternion,this.scale)},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:(ee=new zt.Quaternion,function(t,e){return ee.setFromAxisAngle(t,e),this.quaternion.multiply(ee),this}),rotateX:(te=new zt.Vector3(1,0,0),function(t){return this.rotateOnAxis(te,t)}),rotateY:(Qt=new zt.Vector3(0,1,0),function(t){return this.rotateOnAxis(Qt,t)}),rotateZ:(Kt=new zt.Vector3(0,0,1),function(t){return this.rotateOnAxis(Kt,t)}),translateOnAxis:(Jt=new zt.Vector3,function(t,e){return Jt.copy(t).applyQuaternion(this.quaternion),this.position.add(Jt.multiplyScalar(e)),this}),translateX:(Zt=new zt.Vector3(1,0,0),function(t){return this.translateOnAxis(Zt,t)}),translateY:(Yt=new zt.Vector3(0,1,0),function(t){return this.translateOnAxis(Yt,t)}),translateZ:(Xt=new zt.Vector3(0,0,1),function(t){return this.translateOnAxis(Xt,t)}),localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:(qt=new zt.Matrix4,function(t){return t.applyMatrix4(qt.getInverse(this.matrixWorld))}),lookAt:($t=new zt.Matrix4,function(t){$t.lookAt(t,this.position,this.up),this.quaternion.setFromRotationMatrix($t)}),add:function(t){if(1<arguments.length)for(var e=0;e<arguments.length;e++)this.add(arguments[e]);else t===this?console.error("THREE.Object3D.add: object can't be added as a child of itself.",t):t instanceof zt.Object3D?(null!==t.parent&&t.parent.remove(t),t.parent=this,t.dispatchEvent({type:"added"}),this.children.push(t)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t);return this},remove:function(t){if(1<arguments.length)for(var e=0;e<arguments.length;e++)this.remove(arguments[e]);var n=this.children.indexOf(t);-1!==n&&(t.parent=null,t.dispatchEvent({type:"removed"}),this.children.splice(n,1))},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(var n=0,i=this.children.length;n<i;n++){var r=this.children[n].getObjectByProperty(t,e);if(void 0!==r)return r}},getWorldPosition:function(t){t=t||new zt.Vector3;return this.updateMatrixWorld(!0),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:(Ht=new zt.Vector3,Wt=new zt.Vector3,function(t){t=t||new zt.Quaternion;return this.updateMatrixWorld(!0),this.matrixWorld.decompose(Ht,t,Wt),t}),getWorldRotation:(Gt=new zt.Quaternion,function(t){t=t||new zt.Euler;return this.getWorldQuaternion(Gt),t.setFromQuaternion(Gt,this.rotation.order,!1)}),getWorldScale:(Ut=new zt.Vector3,Vt=new zt.Quaternion,function(t){t=t||new zt.Vector3;return this.updateMatrixWorld(!0),this.matrixWorld.decompose(Ut,Vt,t),t}),getWorldDirection:(Nt=new zt.Quaternion,function(t){t=t||new zt.Vector3;return this.getWorldQuaternion(Nt),t.set(0,0,1).applyQuaternion(Nt)}),raycast:function(){},traverse:function(t){t(this);for(var e=this.children,n=0,i=e.length;n<i;n++)e[n].traverse(t)},traverseVisible:function(t){if(!1!==this.visible){t(this);for(var e=this.children,n=0,i=e.length;n<i;n++)e[n].traverseVisible(t)}},traverseAncestors:function(t){var e=this.parent;null!==e&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){!0===this.matrixAutoUpdate&&this.updateMatrix(),!0!==this.matrixWorldNeedsUpdate&&!0!==t||(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),t=!(this.matrixWorldNeedsUpdate=!1));for(var e=0,n=this.children.length;e<n;e++)this.children[e].updateMatrixWorld(t)},toJSON:function(t){var e,n,i,r=void 0===t||""===t,o={},a=(r&&(t={geometries:{},materials:{},textures:{},images:{}},o.metadata={version:4.4,type:"Object",generator:"Object3D.toJSON"}),{});if(a.uuid=this.uuid,a.type=this.type,""!==this.name&&(a.name=this.name),"{}"!==JSON.stringify(this.userData)&&(a.userData=this.userData),!0===this.castShadow&&(a.castShadow=!0),!0===this.receiveShadow&&(a.receiveShadow=!0),!1===this.visible&&(a.visible=!1),a.matrix=this.matrix.toArray(),void 0!==this.geometry&&(void 0===t.geometries[this.geometry.uuid]&&(t.geometries[this.geometry.uuid]=this.geometry.toJSON(t)),a.geometry=this.geometry.uuid),void 0!==this.material&&(void 0===t.materials[this.material.uuid]&&(t.materials[this.material.uuid]=this.material.toJSON(t)),a.material=this.material.uuid),0<this.children.length){a.children=[];for(var s=0;s<this.children.length;s++)a.children.push(this.children[s].toJSON(t).object)}return r&&(r=l(t.geometries),e=l(t.materials),n=l(t.textures),i=l(t.images),0<r.length&&(o.geometries=r),0<e.length&&(o.materials=e),0<n.length&&(o.textures=n),0<i.length)&&(o.images=i),o.object=a,o;function l(t){var e,n=[];for(e in t){var i=t[e];delete i.metadata,n.push(i)}return n}},clone:function(t){return(new this.constructor).copy(this,t)},copy:function(t,e){if(void 0===e&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),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.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(var n=0;n<t.children.length;n++){var i=t.children[n];this.add(i.clone())}return this}}),zt.Object3DIdCount=0,zt.Face3=function(t,e,n,i,r,o){this.a=t,this.b=e,this.c=n,this.normal=i instanceof zt.Vector3?i:new zt.Vector3,this.vertexNormals=Array.isArray(i)?i:[],this.color=r instanceof zt.Color?r:new zt.Color,this.vertexColors=Array.isArray(r)?r:[],this.materialIndex=void 0!==o?o:0},zt.Face3.prototype={constructor:zt.Face3,clone:function(){return(new this.constructor).copy(this)},copy:function(t){this.a=t.a,this.b=t.b,this.c=t.c,this.normal.copy(t.normal),this.color.copy(t.color),this.materialIndex=t.materialIndex;for(var e=0,n=t.vertexNormals.length;e<n;e++)this.vertexNormals[e]=t.vertexNormals[e].clone();for(e=0,n=t.vertexColors.length;e<n;e++)this.vertexColors[e]=t.vertexColors[e].clone();return this}},zt.BufferAttribute=function(t,e,n){this.uuid=zt.Math.generateUUID(),this.array=t,this.itemSize=e,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0,this.normalized=!0===n},zt.BufferAttribute.prototype={constructor:zt.BufferAttribute,get count(){return this.array.length/this.itemSize},set needsUpdate(t){!0===t&&this.version++},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.dynamic=t.dynamic,this},copyAt:function(t,e,n){t*=this.itemSize,n*=e.itemSize;for(var i=0,r=this.itemSize;i<r;i++)this.array[t+i]=e.array[n+i];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){for(var e=this.array,n=0,i=0,r=t.length;i<r;i++){var o=t[i];void 0===o&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",i),o=new zt.Color),e[n++]=o.r,e[n++]=o.g,e[n++]=o.b}return this},copyIndicesArray:function(t){for(var e=this.array,n=0,i=0,r=t.length;i<r;i++){var o=t[i];e[n++]=o.a,e[n++]=o.b,e[n++]=o.c}return this},copyVector2sArray:function(t){for(var e=this.array,n=0,i=0,r=t.length;i<r;i++){var o=t[i];void 0===o&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",i),o=new zt.Vector2),e[n++]=o.x,e[n++]=o.y}return this},copyVector3sArray:function(t){for(var e=this.array,n=0,i=0,r=t.length;i<r;i++){var o=t[i];void 0===o&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",i),o=new zt.Vector3),e[n++]=o.x,e[n++]=o.y,e[n++]=o.z}return this},copyVector4sArray:function(t){for(var e=this.array,n=0,i=0,r=t.length;i<r;i++){var o=t[i];void 0===o&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",i),o=new zt.Vector4),e[n++]=o.x,e[n++]=o.y,e[n++]=o.z,e[n++]=o.w}return this},set:function(t,e){return this.array.set(t,e=void 0===e?0:e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this},setXYZ:function(t,e,n,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this},setXYZW:function(t,e,n,i,r){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this.array[t+3]=r,this},clone:function(){return(new this.constructor).copy(this)}},zt.Int8Attribute=function(t,e){return new zt.BufferAttribute(new Int8Array(t),e)},zt.Uint8Attribute=function(t,e){return new zt.BufferAttribute(new Uint8Array(t),e)},zt.Uint8ClampedAttribute=function(t,e){return new zt.BufferAttribute(new Uint8ClampedArray(t),e)},zt.Int16Attribute=function(t,e){return new zt.BufferAttribute(new Int16Array(t),e)},zt.Uint16Attribute=function(t,e){return new zt.BufferAttribute(new Uint16Array(t),e)},zt.Int32Attribute=function(t,e){return new zt.BufferAttribute(new Int32Array(t),e)},zt.Uint32Attribute=function(t,e){return new zt.BufferAttribute(new Uint32Array(t),e)},zt.Float32Attribute=function(t,e){return new zt.BufferAttribute(new Float32Array(t),e)},zt.Float64Attribute=function(t,e){return new zt.BufferAttribute(new Float64Array(t),e)},zt.DynamicBufferAttribute=function(t,e){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead."),new zt.BufferAttribute(t,e).setDynamic(!0)},zt.InstancedBufferAttribute=function(t,e,n){zt.BufferAttribute.call(this,t,e),this.meshPerAttribute=n||1},zt.InstancedBufferAttribute.prototype=Object.create(zt.BufferAttribute.prototype),zt.InstancedBufferAttribute.prototype.constructor=zt.InstancedBufferAttribute,zt.InstancedBufferAttribute.prototype.copy=function(t){return zt.BufferAttribute.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this},zt.InterleavedBuffer=function(t,e){this.uuid=zt.Math.generateUUID(),this.array=t,this.stride=e,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0},zt.InterleavedBuffer.prototype={constructor:zt.InterleavedBuffer,get length(){return this.array.length},get count(){return this.array.length/this.stride},set needsUpdate(t){!0===t&&this.version++},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.array=new t.array.constructor(t.array),this.stride=t.stride,this.dynamic=t.dynamic,this},copyAt:function(t,e,n){t*=this.stride,n*=e.stride;for(var i=0,r=this.stride;i<r;i++)this.array[t+i]=e.array[n+i];return this},set:function(t,e){return this.array.set(t,e=void 0===e?0:e),this},clone:function(){return(new this.constructor).copy(this)}},zt.InstancedInterleavedBuffer=function(t,e,n){zt.InterleavedBuffer.call(this,t,e),this.meshPerAttribute=n||1},zt.InstancedInterleavedBuffer.prototype=Object.create(zt.InterleavedBuffer.prototype),zt.InstancedInterleavedBuffer.prototype.constructor=zt.InstancedInterleavedBuffer,zt.InstancedInterleavedBuffer.prototype.copy=function(t){return zt.InterleavedBuffer.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this},zt.InterleavedBufferAttribute=function(t,e,n){this.uuid=zt.Math.generateUUID(),this.data=t,this.itemSize=e,this.offset=n},zt.InterleavedBufferAttribute.prototype={constructor:zt.InterleavedBufferAttribute,get length(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Please use .count."),this.array.length},get count(){return this.data.count},setX:function(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this},setY:function(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this},setZ:function(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this},setW:function(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this},getX:function(t){return this.data.array[t*this.data.stride+this.offset]},getY:function(t){return this.data.array[t*this.data.stride+this.offset+1]},getZ:function(t){return this.data.array[t*this.data.stride+this.offset+2]},getW:function(t){return this.data.array[t*this.data.stride+this.offset+3]},setXY:function(t,e,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this},setXYZ:function(t,e,n,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=i,this},setXYZW:function(t,e,n,i,r){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=i,this.data.array[t+3]=r,this}},zt.Geometry=function(){Object.defineProperty(this,"id",{value:zt.GeometryIdCount++}),this.uuid=zt.Math.generateUUID(),this.name="",this.type="Geometry",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.verticesNeedUpdate=!1,this.elementsNeedUpdate=!1,this.uvsNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.lineDistancesNeedUpdate=!1,this.groupsNeedUpdate=!1},Object.assign(zt.Geometry.prototype,zt.EventDispatcher.prototype,{applyMatrix:function(t){for(var e=(new zt.Matrix3).getNormalMatrix(t),n=0,i=this.vertices.length;n<i;n++)this.vertices[n].applyMatrix4(t);for(n=0,i=this.faces.length;n<i;n++){var r=this.faces[n];r.normal.applyMatrix3(e).normalize();for(var o=0,a=r.vertexNormals.length;o<a;o++)r.vertexNormals[o].applyMatrix3(e).normalize()}return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this.verticesNeedUpdate=!0,this.normalsNeedUpdate=!0,this},rotateX:function(t){return(se=void 0===se?new zt.Matrix4:se).makeRotationX(t),this.applyMatrix(se),this},rotateY:function(t){return(ae=void 0===ae?new zt.Matrix4:ae).makeRotationY(t),this.applyMatrix(ae),this},rotateZ:function(t){return(oe=void 0===oe?new zt.Matrix4:oe).makeRotationZ(t),this.applyMatrix(oe),this},translate:function(t,e,n){return(re=void 0===re?new zt.Matrix4:re).makeTranslation(t,e,n),this.applyMatrix(re),this},scale:function(t,e,n){return(ie=void 0===ie?new zt.Matrix4:ie).makeScale(t,e,n),this.applyMatrix(ie),this},lookAt:function(t){(ne=void 0===ne?new zt.Object3D:ne).lookAt(t),ne.updateMatrix(),this.applyMatrix(ne.matrix)},fromBufferGeometry:function(t){for(var a=this,e=null!==t.index?t.index.array:void 0,n=t.attributes,i=n.position.array,s=void 0!==n.normal?n.normal.array:void 0,l=void 0!==n.color?n.color.array:void 0,c=void 0!==n.uv?n.uv.array:void 0,u=void 0!==n.uv2?n.uv2.array:void 0,h=(void 0!==u&&(this.faceVertexUvs[1]=[]),[]),d=[],p=[],r=0,o=0;r<i.length;r+=3,o+=2)a.vertices.push(new zt.Vector3(i[r],i[r+1],i[r+2])),void 0!==s&&h.push(new zt.Vector3(s[r],s[r+1],s[r+2])),void 0!==l&&a.colors.push(new zt.Color(l[r],l[r+1],l[r+2])),void 0!==c&&d.push(new zt.Vector2(c[o],c[o+1])),void 0!==u&&p.push(new zt.Vector2(u[o],u[o+1]));function f(t,e,n,i){var r=void 0!==s?[h[t].clone(),h[e].clone(),h[n].clone()]:[],o=void 0!==l?[a.colors[t].clone(),a.colors[e].clone(),a.colors[n].clone()]:[],r=new zt.Face3(t,e,n,r,o,i);a.faces.push(r),void 0!==c&&a.faceVertexUvs[0].push([d[t].clone(),d[e].clone(),d[n].clone()]),void 0!==u&&a.faceVertexUvs[1].push([p[t].clone(),p[e].clone(),p[n].clone()])}if(void 0!==e){var m=t.groups;if(0<m.length)for(r=0;r<m.length;r++)for(var g=m[r],v=g.start,o=v,y=v+g.count;o<y;o+=3)f(e[o],e[o+1],e[o+2],g.materialIndex);else for(r=0;r<e.length;r+=3)f(e[r],e[r+1],e[r+2])}else for(r=0;r<i.length/3;r+=3)f(r,r+1,r+2);return this.computeFaceNormals(),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),this},center:function(){this.computeBoundingBox();var t=this.boundingBox.center().negate();return this.translate(t.x,t.y,t.z),t},normalize:function(){this.computeBoundingSphere();var t=this.boundingSphere.center,e=this.boundingSphere.radius,e=0===e?1:1/e,n=new zt.Matrix4;return n.set(e,0,0,-e*t.x,0,e,0,-e*t.y,0,0,e,-e*t.z,0,0,0,1),this.applyMatrix(n),this},computeFaceNormals:function(){for(var t=new zt.Vector3,e=new zt.Vector3,n=0,i=this.faces.length;n<i;n++){var r=this.faces[n],o=this.vertices[r.a],a=this.vertices[r.b],s=this.vertices[r.c];t.subVectors(s,a),e.subVectors(o,a),t.cross(e),t.normalize(),r.normal.copy(t)}},computeVertexNormals:function(t){var e,n,i;for(void 0===t&&(t=!0),i=new Array(this.vertices.length),e=0,n=this.vertices.length;e<n;e++)i[e]=new zt.Vector3;if(t)for(var r,o,a,s=new zt.Vector3,l=new zt.Vector3,c=0,u=this.faces.length;c<u;c++)h=this.faces[c],r=this.vertices[h.a],o=this.vertices[h.b],a=this.vertices[h.c],s.subVectors(a,o),l.subVectors(r,o),s.cross(l),i[h.a].add(s),i[h.b].add(s),i[h.c].add(s);else for(c=0,u=this.faces.length;c<u;c++)i[(h=this.faces[c]).a].add(h.normal),i[h.b].add(h.normal),i[h.c].add(h.normal);for(e=0,n=this.vertices.length;e<n;e++)i[e].normalize();for(c=0,u=this.faces.length;c<u;c++){var h,d=(h=this.faces[c]).vertexNormals;3===d.length?(d[0].copy(i[h.a]),d[1].copy(i[h.b]),d[2].copy(i[h.c])):(d[0]=i[h.a].clone(),d[1]=i[h.b].clone(),d[2]=i[h.c].clone())}0<this.faces.length&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,n;for(a=0,s=this.faces.length;a<s;a++)for((n=this.faces[a]).__originalFaceNormal?n.__originalFaceNormal.copy(n.normal):n.__originalFaceNormal=n.normal.clone(),n.__originalVertexNormals||(n.__originalVertexNormals=[]),t=0,e=n.vertexNormals.length;t<e;t++)n.__originalVertexNormals[t]?n.__originalVertexNormals[t].copy(n.vertexNormals[t]):n.__originalVertexNormals[t]=n.vertexNormals[t].clone();var i=new zt.Geometry;for(i.faces=this.faces,t=0,e=this.morphTargets.length;t<e;t++){if(!this.morphNormals[t]){this.morphNormals[t]={},this.morphNormals[t].faceNormals=[],this.morphNormals[t].vertexNormals=[];for(var r=this.morphNormals[t].faceNormals,o=this.morphNormals[t].vertexNormals,a=0,s=this.faces.length;a<s;a++)l=new zt.Vector3,c={a:new zt.Vector3,b:new zt.Vector3,c:new zt.Vector3},r.push(l),o.push(c)}var l,c,u=this.morphNormals[t];for(i.vertices=this.morphTargets[t].vertices,i.computeFaceNormals(),i.computeVertexNormals(),a=0,s=this.faces.length;a<s;a++)n=this.faces[a],l=u.faceNormals[a],c=u.vertexNormals[a],l.copy(n.normal),c.a.copy(n.vertexNormals[0]),c.b.copy(n.vertexNormals[1]),c.c.copy(n.vertexNormals[2])}for(a=0,s=this.faces.length;a<s;a++)(n=this.faces[a]).normal=n.__originalFaceNormal,n.vertexNormals=n.__originalVertexNormals},computeTangents:function(){console.warn("THREE.Geometry: .computeTangents() has been removed.")},computeLineDistances:function(){for(var t=0,e=this.vertices,n=0,i=e.length;n<i;n++)0<n&&(t+=e[n].distanceTo(e[n-1])),this.lineDistances[n]=t},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new zt.Box3),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new zt.Sphere),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,n){if(t instanceof zt.Geometry==!1)console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",t);else{var i,r=this.vertices.length,o=this.vertices,a=t.vertices,s=this.faces,l=t.faces,c=this.faceVertexUvs[0],u=t.faceVertexUvs[0];void 0===n&&(n=0),void 0!==e&&(i=(new zt.Matrix3).getNormalMatrix(e));for(var h=0,d=a.length;h<d;h++){var p=a[h].clone();void 0!==e&&p.applyMatrix4(e),o.push(p)}for(h=0,d=l.length;h<d;h++){var f,m,g=l[h],v=g.vertexNormals,y=g.vertexColors,_=new zt.Face3(g.a+r,g.b+r,g.c+r);_.normal.copy(g.normal),void 0!==i&&_.normal.applyMatrix3(i).normalize();for(var b=0,x=v.length;b<x;b++)f=v[b].clone(),void 0!==i&&f.applyMatrix3(i).normalize(),_.vertexNormals.push(f);_.color.copy(g.color);for(b=0,x=y.length;b<x;b++)m=y[b],_.vertexColors.push(m.clone());_.materialIndex=g.materialIndex+n,s.push(_)}for(h=0,d=u.length;h<d;h++){var w=u[h],T=[];if(void 0!==w){for(b=0,x=w.length;b<x;b++)T.push(w[b].clone());c.push(T)}}}},mergeMesh:function(t){t instanceof zt.Mesh==!1?console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",t):(t.matrixAutoUpdate&&t.updateMatrix(),this.merge(t.geometry,t.matrix))},mergeVertices:function(){for(var t,e,n,i,r={},o=[],a=[],s=Math.pow(10,4),l=0,c=this.vertices.length;l<c;l++)t=this.vertices[l],void 0===r[t=Math.round(t.x*s)+"_"+Math.round(t.y*s)+"_"+Math.round(t.z*s)]?(r[t]=l,o.push(this.vertices[l]),a[l]=o.length-1):a[l]=a[r[t]];var u=[];for(l=0,c=this.faces.length;l<c;l++){(e=this.faces[l]).a=a[e.a],e.b=a[e.b],e.c=a[e.c];for(var h=[e.a,e.b,e.c],d=0;d<3;d++)if(h[d]===h[(d+1)%3]){u.push(l);break}}for(l=u.length-1;0<=l;l--){var p=u[l];for(this.faces.splice(p,1),n=0,i=this.faceVertexUvs.length;n<i;n++)this.faceVertexUvs[n].splice(p,1)}var f=this.vertices.length-o.length;return this.vertices=o,f},sortFacesByMaterialIndex:function(){for(var t=this.faces,e=t.length,n=0;n<e;n++)t[n]._id=n;t.sort(function(t,e){return t.materialIndex-e.materialIndex});var i,r,o=this.faceVertexUvs[0],a=this.faceVertexUvs[1];o&&o.length===e&&(i=[]),a&&a.length===e&&(r=[]);for(n=0;n<e;n++){var s=t[n]._id;i&&i.push(o[s]),r&&r.push(a[s])}i&&(this.faceVertexUvs[0]=i),r&&(this.faceVertexUvs[1]=r)},toJSON:function(){var t={metadata:{version:4.4,type:"Geometry",generator:"Geometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),void 0!==this.parameters){var e,n=this.parameters;for(e in n)void 0!==n[e]&&(t[e]=n[e])}else{for(var i=[],r=0;r<this.vertices.length;r++){var o=this.vertices[r];i.push(o.x,o.y,o.z)}for(var a=[],s=[],l={},c=[],u={},h=[],d={},r=0;r<this.faces.length;r++){var p,f=this.faces[r],m=void 0!==this.faceVertexUvs[0][r],g=0<f.normal.length(),v=0<f.vertexNormals.length,y=1!==f.color.r||1!==f.color.g||1!==f.color.b,_=0<f.vertexColors.length;p=b(2,3,m),p=b(p,4,g),p=b(p,5,v),p=b(p,6,y),p=b(p,7,_),a.push(p),a.push(f.a,f.b,f.c),a.push(f.materialIndex),m&&(p=this.faceVertexUvs[0][r],a.push(T(p[0]),T(p[1]),T(p[2]))),g&&a.push(x(f.normal)),v&&(m=f.vertexNormals,a.push(x(m[0]),x(m[1]),x(m[2]))),y&&a.push(w(f.color)),_&&(p=f.vertexColors,a.push(w(p[0]),w(p[1]),w(p[2])))}t.data={},t.data.vertices=i,t.data.normals=s,0<c.length&&(t.data.colors=c),0<h.length&&(t.data.uvs=[h]),t.data.faces=a}return t;function b(t,e,n){return n?t|1<<e:t&~(1<<e)}function x(t){var e=t.x.toString()+t.y.toString()+t.z.toString();return void 0===l[e]&&(l[e]=s.length/3,s.push(t.x,t.y,t.z)),l[e]}function w(t){var e=t.r.toString()+t.g.toString()+t.b.toString();return void 0===u[e]&&(u[e]=c.length,c.push(t.getHex())),u[e]}function T(t){var e=t.x.toString()+t.y.toString();return void 0===d[e]&&(d[e]=h.length/2,h.push(t.x,t.y)),d[e]}},clone:function(){return(new zt.Geometry).copy(this)},copy:function(t){this.vertices=[],this.faces=[],this.faceVertexUvs=[[]];for(var e=t.vertices,n=0,i=e.length;n<i;n++)this.vertices.push(e[n].clone());for(var r=t.faces,n=0,i=r.length;n<i;n++)this.faces.push(r[n].clone());for(n=0,i=t.faceVertexUvs.length;n<i;n++){var o=t.faceVertexUvs[n];void 0===this.faceVertexUvs[n]&&(this.faceVertexUvs[n]=[]);for(var a=0,s=o.length;a<s;a++){for(var l=o[a],c=[],u=0,h=l.length;u<h;u++){var d=l[u];c.push(d.clone())}this.faceVertexUvs[n].push(c)}}return this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),zt.GeometryIdCount=0,zt.DirectGeometry=function(){Object.defineProperty(this,"id",{value:zt.GeometryIdCount++}),this.uuid=zt.Math.generateUUID(),this.name="",this.type="DirectGeometry",this.indices=[],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=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.uvsNeedUpdate=!1,this.groupsNeedUpdate=!1},Object.assign(zt.DirectGeometry.prototype,zt.EventDispatcher.prototype,{computeBoundingBox:zt.Geometry.prototype.computeBoundingBox,computeBoundingSphere:zt.Geometry.prototype.computeBoundingSphere,computeFaceNormals:function(){console.warn("THREE.DirectGeometry: computeFaceNormals() is not a method of this type of geometry.")},computeVertexNormals:function(){console.warn("THREE.DirectGeometry: computeVertexNormals() is not a method of this type of geometry.")},computeGroups:function(t){for(var e,n,i=[],r=t.faces,o=0;o<r.length;o++){var a=r[o];a.materialIndex!==n&&(n=a.materialIndex,void 0!==e&&(e.count=3*o-e.start,i.push(e)),e={start:3*o,materialIndex:n})}void 0!==e&&(e.count=3*o-e.start,i.push(e)),this.groups=i},fromGeometry:function(t){var e=t.faces,n=t.vertices,i=t.faceVertexUvs,r=i[0]&&0<i[0].length,o=i[1]&&0<i[1].length,a=t.morphTargets,s=a.length;if(0<s){for(var l=[],c=0;c<s;c++)l[c]=[];this.morphTargets.position=l}var u=t.morphNormals,h=u.length;if(0<h){for(var d=[],c=0;c<h;c++)d[c]=[];this.morphTargets.normal=d}for(var p=t.skinIndices,f=t.skinWeights,m=p.length===n.length,g=f.length===n.length,c=0;c<e.length;c++){var v,y=e[c],_=(this.vertices.push(n[y.a],n[y.b],n[y.c]),y.vertexNormals),_=(3===_.length?this.normals.push(_[0],_[1],_[2]):(_=y.normal,this.normals.push(_,_,_)),y.vertexColors);3===_.length?this.colors.push(_[0],_[1],_[2]):(_=y.color,this.colors.push(_,_,_)),!0===r&&(void 0!==(v=i[0][c])?this.uvs.push(v[0],v[1],v[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",c),this.uvs.push(new zt.Vector2,new zt.Vector2,new zt.Vector2))),!0===o&&(void 0!==(v=i[1][c])?this.uvs2.push(v[0],v[1],v[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",c),this.uvs2.push(new zt.Vector2,new zt.Vector2,new zt.Vector2)));for(var b=0;b<s;b++){var x=a[b].vertices;l[b].push(x[y.a],x[y.b],x[y.c])}for(b=0;b<h;b++){var w=u[b].vertexNormals[c];d[b].push(w.a,w.b,w.c)}m&&this.skinIndices.push(p[y.a],p[y.b],p[y.c]),g&&this.skinWeights.push(f[y.a],f[y.b],f[y.c])}return this.computeGroups(t),this.verticesNeedUpdate=t.verticesNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),zt.BufferGeometry=function(){Object.defineProperty(this,"id",{value:zt.GeometryIdCount++}),this.uuid=zt.Math.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0}},Object.assign(zt.BufferGeometry.prototype,zt.EventDispatcher.prototype,{getIndex:function(){return this.index},setIndex:function(t){this.index=t},addAttribute:function(t,e){if(e instanceof zt.BufferAttribute==!1&&e instanceof zt.InterleavedBufferAttribute==!1)console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.addAttribute(t,new zt.BufferAttribute(e,arguments[2]));else{if("index"!==t)return this.attributes[t]=e,this;console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e)}},getAttribute:function(t){return this.attributes[t]},removeAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,n){this.groups.push({start:t,count:e,materialIndex:void 0!==n?n:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix:function(t){var e=this.attributes.position,e=(void 0!==e&&(t.applyToVector3Array(e.array),e.needsUpdate=!0),this.attributes.normal);return void 0!==e&&((new zt.Matrix3).getNormalMatrix(t).applyToVector3Array(e.array),e.needsUpdate=!0),null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(t){return(me=void 0===me?new zt.Matrix4:me).makeRotationX(t),this.applyMatrix(me),this},rotateY:function(t){return(fe=void 0===fe?new zt.Matrix4:fe).makeRotationY(t),this.applyMatrix(fe),this},rotateZ:function(t){return(pe=void 0===pe?new zt.Matrix4:pe).makeRotationZ(t),this.applyMatrix(pe),this},translate:function(t,e,n){return(de=void 0===de?new zt.Matrix4:de).makeTranslation(t,e,n),this.applyMatrix(de),this},scale:function(t,e,n){return(he=void 0===he?new zt.Matrix4:he).makeScale(t,e,n),this.applyMatrix(he),this},lookAt:function(t){(ue=void 0===ue?new zt.Object3D:ue).lookAt(t),ue.updateMatrix(),this.applyMatrix(ue.matrix)},center:function(){this.computeBoundingBox();var t=this.boundingBox.center().negate();return this.translate(t.x,t.y,t.z),t},setFromObject:function(t){var e,n,i=t.geometry;return t instanceof zt.Points||t instanceof zt.Line?(n=new zt.Float32Attribute(3*i.vertices.length,3),e=new zt.Float32Attribute(3*i.colors.length,3),this.addAttribute("position",n.copyVector3sArray(i.vertices)),this.addAttribute("color",e.copyColorsArray(i.colors)),i.lineDistances&&i.lineDistances.length===i.vertices.length&&(n=new zt.Float32Attribute(i.lineDistances.length,1),this.addAttribute("lineDistance",n.copyArray(i.lineDistances))),null!==i.boundingSphere&&(this.boundingSphere=i.boundingSphere.clone()),null!==i.boundingBox&&(this.boundingBox=i.boundingBox.clone())):t instanceof zt.Mesh&&i instanceof zt.Geometry&&this.fromGeometry(i),this},updateFromObject:function(t){var e,n=t.geometry;if(t instanceof zt.Mesh){var i=n.__directGeometry;if(void 0===i)return this.fromGeometry(n);i.verticesNeedUpdate=n.verticesNeedUpdate,i.normalsNeedUpdate=n.normalsNeedUpdate,i.colorsNeedUpdate=n.colorsNeedUpdate,i.uvsNeedUpdate=n.uvsNeedUpdate,i.groupsNeedUpdate=n.groupsNeedUpdate,n.verticesNeedUpdate=!1,n.normalsNeedUpdate=!1,n.colorsNeedUpdate=!1,n.uvsNeedUpdate=!1,n.groupsNeedUpdate=!1,n=i}return!0===n.verticesNeedUpdate&&(void 0!==(e=this.attributes.position)&&(e.copyVector3sArray(n.vertices),e.needsUpdate=!0),n.verticesNeedUpdate=!1),!0===n.normalsNeedUpdate&&(void 0!==(e=this.attributes.normal)&&(e.copyVector3sArray(n.normals),e.needsUpdate=!0),n.normalsNeedUpdate=!1),!0===n.colorsNeedUpdate&&(void 0!==(e=this.attributes.color)&&(e.copyColorsArray(n.colors),e.needsUpdate=!0),n.colorsNeedUpdate=!1),n.uvsNeedUpdate&&(void 0!==(e=this.attributes.uv)&&(e.copyVector2sArray(n.uvs),e.needsUpdate=!0),n.uvsNeedUpdate=!1),n.lineDistancesNeedUpdate&&(void 0!==(e=this.attributes.lineDistance)&&(e.copyArray(n.lineDistances),e.needsUpdate=!0),n.lineDistancesNeedUpdate=!1),n.groupsNeedUpdate&&(n.computeGroups(t.geometry),this.groups=n.groups,n.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=(new zt.DirectGeometry).fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e,n=new Float32Array(3*t.vertices.length);for(e in this.addAttribute("position",new zt.BufferAttribute(n,3).copyVector3sArray(t.vertices)),0<t.normals.length&&(n=new Float32Array(3*t.normals.length),this.addAttribute("normal",new zt.BufferAttribute(n,3).copyVector3sArray(t.normals))),0<t.colors.length&&(n=new Float32Array(3*t.colors.length),this.addAttribute("color",new zt.BufferAttribute(n,3).copyColorsArray(t.colors))),0<t.uvs.length&&(n=new Float32Array(2*t.uvs.length),this.addAttribute("uv",new zt.BufferAttribute(n,2).copyVector2sArray(t.uvs))),0<t.uvs2.length&&(n=new Float32Array(2*t.uvs2.length),this.addAttribute("uv2",new zt.BufferAttribute(n,2).copyVector2sArray(t.uvs2))),0<t.indices.length&&(n=new(65535<t.vertices.length?Uint32Array:Uint16Array)(3*t.indices.length),this.setIndex(new zt.BufferAttribute(n,1).copyIndicesArray(t.indices))),this.groups=t.groups,t.morphTargets){for(var i=[],r=t.morphTargets[e],o=0,a=r.length;o<a;o++){var s=r[o],l=new zt.Float32Attribute(3*s.length,3);i.push(l.copyVector3sArray(s))}this.morphAttributes[e]=i}return 0<t.skinIndices.length&&(n=new zt.Float32Attribute(4*t.skinIndices.length,4),this.addAttribute("skinIndex",n.copyVector4sArray(t.skinIndices))),0<t.skinWeights.length&&(n=new zt.Float32Attribute(4*t.skinWeights.length,4),this.addAttribute("skinWeight",n.copyVector4sArray(t.skinWeights))),null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new zt.Box3);var t=this.attributes.position.array;void 0!==t?this.boundingBox.setFromArray(t):this.boundingBox.makeEmpty(),(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)},computeBoundingSphere:(le=new zt.Box3,ce=new zt.Vector3,function(){null===this.boundingSphere&&(this.boundingSphere=new zt.Sphere);var t=this.attributes.position.array;if(t){for(var e=this.boundingSphere.center,n=(le.setFromArray(t),le.center(e),0),i=0,r=t.length;i<r;i+=3)ce.fromArray(t,i),n=Math.max(n,e.distanceToSquared(ce));this.boundingSphere.radius=Math.sqrt(n),isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}),computeFaceNormals:function(){},computeVertexNormals:function(){var t=this.index,e=this.attributes,n=this.groups;if(e.position){var i=e.position.array;if(void 0===e.normal)this.addAttribute("normal",new zt.BufferAttribute(new Float32Array(i.length),3));else for(var r=e.normal.array,o=0,a=r.length;o<a;o++)r[o]=0;var s,l,c,u=e.normal.array,h=new zt.Vector3,d=new zt.Vector3,p=new zt.Vector3,f=new zt.Vector3,m=new zt.Vector3;if(t){var g=t.array;0===n.length&&this.addGroup(0,g.length);for(var v=0,y=n.length;v<y;++v)for(var _=n[v],b=_.start,o=b,a=b+_.count;o<a;o+=3)s=3*g[o+0],l=3*g[o+1],c=3*g[o+2],h.fromArray(i,s),d.fromArray(i,l),p.fromArray(i,c),f.subVectors(p,d),m.subVectors(h,d),f.cross(m),u[s]+=f.x,u[1+s]+=f.y,u[2+s]+=f.z,u[l]+=f.x,u[1+l]+=f.y,u[2+l]+=f.z,u[c]+=f.x,u[1+c]+=f.y,u[2+c]+=f.z}else for(o=0,a=i.length;o<a;o+=9)h.fromArray(i,o),d.fromArray(i,o+3),p.fromArray(i,o+6),f.subVectors(p,d),m.subVectors(h,d),f.cross(m),u[o]=f.x,u[o+1]=f.y,u[o+2]=f.z,u[o+3]=f.x,u[o+4]=f.y,u[o+5]=f.z,u[o+6]=f.x,u[o+7]=f.y,u[o+8]=f.z;this.normalizeNormals(),e.normal.needsUpdate=!0}},merge:function(t,e){if(t instanceof zt.BufferGeometry!=!1){void 0===e&&(e=0);var n,i=this.attributes;for(n in i)if(void 0!==t.attributes[n])for(var r=i[n].array,o=t.attributes[n],a=o.array,s=0,l=o.itemSize*e;s<a.length;s++,l++)r[l]=a[s];return this}console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t)},normalizeNormals:function(){for(var t,e,n,i=this.attributes.normal.array,r=0,o=i.length;r<o;r+=3)n=i[r],t=i[r+1],e=i[r+2],n=1/Math.sqrt(n*n+t*t+e*e),i[r]*=n,i[r+1]*=n,i[r+2]*=n},toNonIndexed:function(){if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var t,e=new zt.BufferGeometry,n=this.index.array,i=this.attributes;for(t in i){for(var r=i[t],o=r.array,a=r.itemSize,s=new o.constructor(n.length*a),l=0,c=0,u=0,h=n.length;u<h;u++)for(var l=n[u]*a,d=0;d<a;d++)s[c++]=o[l++];e.addAttribute(t,new zt.BufferAttribute(s,a))}return e},toJSON:function(){var t={metadata:{version:4.4,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),void 0!==this.parameters){var e=this.parameters;for(n in e)void 0!==e[n]&&(t[n]=e[n])}else{t.data={attributes:{}};var n,i=this.index,r=(null!==i&&(a=Array.prototype.slice.call(i.array),t.data.index={type:i.array.constructor.name,array:a}),this.attributes);for(n in r){var o=r[n],a=Array.prototype.slice.call(o.array);t.data.attributes[n]={itemSize:o.itemSize,type:o.array.constructor.name,array:a,normalized:o.normalized}}i=this.groups,i=(0<i.length&&(t.data.groups=JSON.parse(JSON.stringify(i))),this.boundingSphere);null!==i&&(t.data.boundingSphere={center:i.center.toArray(),radius:i.radius})}return t},clone:function(){return(new zt.BufferGeometry).copy(this)},copy:function(t){var e,n=t.index,i=(null!==n&&this.setIndex(n.clone()),t.attributes);for(e in i){var r=i[e];this.addAttribute(e,r.clone())}for(var o=t.groups,a=0,s=o.length;a<s;a++){var l=o[a];this.addGroup(l.start,l.count,l.materialIndex)}return this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),zt.BufferGeometry.MaxIndex=65535,zt.InstancedBufferGeometry=function(){zt.BufferGeometry.call(this),this.type="InstancedBufferGeometry",this.maxInstancedCount=void 0},zt.InstancedBufferGeometry.prototype=Object.create(zt.BufferGeometry.prototype),zt.InstancedBufferGeometry.prototype.constructor=zt.InstancedBufferGeometry,zt.InstancedBufferGeometry.prototype.addGroup=function(t,e,n){this.groups.push({start:t,count:e,instances:n})},zt.InstancedBufferGeometry.prototype.copy=function(t){var e,n=t.index,i=(null!==n&&this.setIndex(n.clone()),t.attributes);for(e in i){var r=i[e];this.addAttribute(e,r.clone())}for(var o=t.groups,a=0,s=o.length;a<s;a++){var l=o[a];this.addGroup(l.start,l.count,l.instances)}return this},zt.Uniform=function(t){"string"==typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t,this.dynamic=!1},zt.Uniform.prototype={constructor:zt.Uniform,onUpdate:function(t){return this.dynamic=!0,this.onUpdateCallback=t,this}},zt.AnimationAction=function(){throw new Error("THREE.AnimationAction: Use mixer.clipAction for construction.")},zt.AnimationAction._new=function(t,e,n){this._mixer=t,this._clip=e,this._localRoot=n||null;for(var i=e.tracks,r=i.length,o=new Array(r),a={endingStart:zt.ZeroCurvatureEnding,endingEnd:zt.ZeroCurvatureEnding},s=0;s!==r;++s){var l=i[s].createInterpolant(null);(o[s]=l).settings=a}this._interpolantSettings=a,this._interpolants=o,this._propertyBindings=new Array(r),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=zt.LoopRepeat,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0},zt.AnimationAction._new.prototype={constructor:zt.AnimationAction._new,play:function(){return this._mixer._activateAction(this),this},stop:function(){return this._mixer._deactivateAction(this),this.reset()},reset:function(){return this.paused=!1,this.enabled=!0,this.time=0,this._loopCount=-1,this._startTime=null,this.stopFading().stopWarping()},isRunning:function(){this._startTime;return this.enabled&&!this.paused&&0!==this.timeScale&&null===this._startTime&&this._mixer._isActiveAction(this)},isScheduled:function(){return this._mixer._isActiveAction(this)},startAt:function(t){return this._startTime=t,this},setLoop:function(t,e){return this.loop=t,this.repetitions=e,this},setEffectiveWeight:function(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(t){return this._scheduleFading(t,0,1)},fadeOut:function(t){return this._scheduleFading(t,1,0)},crossFadeFrom:function(t,e,n){var i,r;this._mixer;return t.fadeOut(e),this.fadeIn(e),n&&(r=(n=this._clip.duration)/(i=t._clip.duration),t.warp(1,i/n,e),this.warp(r,1,e)),this},crossFadeTo:function(t,e,n){return t.crossFadeFrom(this,e,n)},stopFading:function(){var t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},setEffectiveTimeScale:function(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(t){return this.timeScale=this._clip.duration/t,this.stopWarping()},syncWith:function(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()},halt:function(t){return this.warp(this._effectiveTimeScale,0,t)},warp:function(t,e,n){var i=this._mixer,r=i.time,o=this._timeScaleInterpolant,a=this.timeScale,i=(null===o&&(o=i._lendControlInterpolant(),this._timeScaleInterpolant=o),o.parameterPositions),o=o.sampleValues;return i[0]=r,i[1]=r+n,o[0]=t/a,o[1]=e/a,this},stopWarping:function(){var t=this._timeScaleInterpolant;return null!==t&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(t,e,n,i){var r=this._startTime;if(null!==r){r=(t-r)*n;if(r<0||0===n)return;this._startTime=null,e=n*r}e*=this._updateTimeScale(t);var o=this._updateTime(e),a=this._updateWeight(t);if(0<a)for(var s=this._interpolants,l=this._propertyBindings,c=0,u=s.length;c!==u;++c)s[c].evaluate(o),l[c].accumulate(i,a)},_updateWeight:function(t){var e,n,i=0;return this.enabled&&(i=this.weight,null!==(e=this._weightInterpolant))&&(i*=n=e.evaluate(t)[0],t>e.parameterPositions[1])&&(this.stopFading(),0===n)&&(this.enabled=!1),this._effectiveWeight=i},_updateTimeScale:function(t){var e,n=0;return this.paused||(n=this.timeScale,null!==(e=this._timeScaleInterpolant)&&(n*=e.evaluate(t)[0],t>e.parameterPositions[1])&&(this.stopWarping(),0===n?this.paused=!0:this.timeScale=n)),this._effectiveTimeScale=n},_updateTime:function(t){var e=this.time+t;if(0!==t){var n=this._clip.duration,i=this.loop,r=this._loopCount;if(i===zt.LoopOnce){-1===r&&(this.loopCount=0,this._setEndings(!0,!0,!1));t:{if(n<=e)e=n;else{if(!(e<0))break t;e=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:"finished",action:this,direction:t<0?-1:1})}}else{var o,a,i=i===zt.LoopPingPong;if(-1===r&&(0<=t?this._setEndings(!(r=0),0===this.repetitions,i):this._setEndings(0===this.repetitions,!0,i)),(n<=e||e<0)&&(e-=n*(o=Math.floor(e/n)),r+=Math.abs(o),(a=this.repetitions-r)<0?(this.clampWhenFinished?this.paused=!0:this.enabled=!1,e=0<t?n:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:0<t?1:-1})):(0==a?this._setEndings(a=t<0,!a,i):this._setEndings(!1,!1,i),this._loopCount=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:o}))),i&&1==(1&r))return n-(this.time=e)}this.time=e}return e},_setEndings:function(t,e,n){var i=this._interpolantSettings;n?(i.endingStart=zt.ZeroSlopeEnding,i.endingEnd=zt.ZeroSlopeEnding):(i.endingStart=t?this.zeroSlopeAtStart?zt.ZeroSlopeEnding:zt.ZeroCurvatureEnding:zt.WrapAroundEnding,i.endingEnd=e?this.zeroSlopeAtEnd?zt.ZeroSlopeEnding:zt.ZeroCurvatureEnding:zt.WrapAroundEnding)},_scheduleFading:function(t,e,n){var i=this._mixer,r=i.time,o=this._weightInterpolant,i=(null===o&&(o=i._lendControlInterpolant(),this._weightInterpolant=o),o.parameterPositions),o=o.sampleValues;return i[0]=r,o[0]=e,i[1]=r+t,o[1]=n,this}},zt.AnimationClip=function(t,e,n){this.name=t,this.tracks=n,this.duration=void 0!==e?e:-1,this.uuid=zt.Math.generateUUID(),this.duration<0&&this.resetDuration(),this.trim(),this.optimize()},zt.AnimationClip.prototype={constructor:zt.AnimationClip,resetDuration:function(){for(var t=0,e=0,n=this.tracks.length;e!==n;++e)var i=this.tracks[e],t=Math.max(t,i.times[i.times.length-1]);this.duration=t},trim:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this},optimize:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}},Object.assign(zt.AnimationClip,{parse:function(t){for(var e=[],n=t.tracks,i=1/(t.fps||1),r=0,o=n.length;r!==o;++r)e.push(zt.KeyframeTrack.parse(n[r]).scale(i));return new zt.AnimationClip(t.name,t.duration,e)},toJSON:function(t){for(var e=[],n=t.tracks,t={name:t.name,duration:t.duration,tracks:e},i=0,r=n.length;i!==r;++i)e.push(zt.KeyframeTrack.toJSON(n[i]));return t},CreateFromMorphTargetSequence:function(t,e,n,i){for(var r=e.length,o=[],a=0;a<r;a++){var s=[],l=((c=[]).push((a+r-1)%r,a,(a+1)%r),s.push(0,1,0),zt.AnimationUtils.getKeyframeOrder(c)),c=zt.AnimationUtils.sortedArray(c,1,l),s=zt.AnimationUtils.sortedArray(s,1,l);i||0!==c[0]||(c.push(r),s.push(s[0])),o.push(new zt.NumberKeyframeTrack(".morphTargetInfluences["+e[a].name+"]",c,s).scale(1/n))}return new zt.AnimationClip(t,-1,o)},findByName:function(t,e){var n=t;Array.isArray(t)||(n=t.geometry&&t.geometry.animations||t.animations);for(var i=0;i<n.length;i++)if(n[i].name===e)return n[i];return null},CreateClipsFromMorphTargetSequences:function(t,e,n){for(var i={},r=/^([\w-]*?)([\d]+)$/,o=0,a=t.length;o<a;o++){var s=t[o],l=s.name.match(r);l&&1<l.length&&((l=i[c=l[1]])||(i[c]=l=[]),l.push(s))}var c,u=[];for(c in i)u.push(zt.AnimationClip.CreateFromMorphTargetSequence(c,i[c],e,n));return u},parseAnimation:function(t,e,n){if(!t)return console.error("  no animation in JSONLoader data"),null;function i(t,e,n,i,r){var o;0!==n.length&&(zt.AnimationUtils.flattenJSON(n,n=[],o=[],i),0!==n.length)&&r.push(new t(e,n,o))}for(var r=[],o=t.name||"default",a=t.length||-1,s=t.fps||30,l=t.hierarchy||[],c=0;c<l.length;c++){var u=l[c].keys;if(u&&0!==u.length)if(u[0].morphTargets){for(var h,d={},p=0;p<u.length;p++)if(u[p].morphTargets)for(var f=0;f<u[p].morphTargets.length;f++)d[u[p].morphTargets[f]]=-1;for(h in d){for(var m=[],g=[],f=0;f!==u[p].morphTargets.length;++f){var v=u[p];m.push(v.time),g.push(v.morphTarget===h?1:0)}r.push(new zt.NumberKeyframeTrack(".morphTargetInfluence["+h+"]",m,g))}a=d.length*(s||1)}else{var y=".bones["+e[c].name+"]";i(zt.VectorKeyframeTrack,y+".position",u,"pos",r),i(zt.QuaternionKeyframeTrack,y+".quaternion",u,"rot",r),i(zt.VectorKeyframeTrack,y+".scale",u,"scl",r)}}return 0===r.length?null:new zt.AnimationClip(o,a,r)}}),zt.AnimationMixer=function(t){this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1},Object.assign(zt.AnimationMixer.prototype,zt.EventDispatcher.prototype,{clipAction:function(t,e){var n=e||this._root,i=n.uuid,n="string"==typeof t?zt.AnimationClip.findByName(n,t):t,t=null!==n?n.uuid:t,r=this._actionsByClip[t],o=null;if(void 0!==r){var a=r.actionByRoot[i];if(void 0!==a)return a;o=r.knownActions[0],null===n&&(n=o._clip)}return null===n?null:(a=new zt.AnimationMixer._Action(this,n,e),this._bindAction(a,o),this._addInactiveAction(a,t,i),a)},existingAction:function(t,e){var e=e||this._root,n=e.uuid,e="string"==typeof t?zt.AnimationClip.findByName(e,t):t,e=e?e.uuid:t,t=this._actionsByClip[e];return void 0!==t&&t.actionByRoot[n]||null},stopAllAction:function(){var t=this._actions,e=this._nActiveActions,n=this._bindings,i=this._nActiveBindings;this._nActiveActions=0;for(var r=this._nActiveBindings=0;r!==e;++r)t[r].reset();for(r=0;r!==i;++r)n[r].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,n=this._nActiveActions,i=this.time+=t,r=Math.sign(t),o=this._accuIndex^=1,a=0;a!==n;++a){var s=e[a];s.enabled&&s._update(i,t,r,o)}for(var l=this._bindings,c=this._nActiveBindings,a=0;a!==c;++a)l[a].apply(o);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions,t=t.uuid,n=this._actionsByClip,i=n[t];if(void 0!==i){for(var r=i.knownActions,o=0,a=r.length;o!==a;++o){var s=r[o],l=(this._deactivateAction(s),s._cacheIndex),c=e[e.length-1];s._cacheIndex=null,s._byClipCacheIndex=null,e[c._cacheIndex=l]=c,e.pop(),this._removeInactiveBindingsForAction(s)}delete n[t]}},uncacheRoot:function(t){var e,n=t.uuid,i=this._actionsByClip;for(e in i){var r=i[e].actionByRoot[n];void 0!==r&&(this._deactivateAction(r),this._removeInactiveAction(r))}var o=this._bindingsByRootAndName[n];if(void 0!==o)for(var a in o){a=o[a];a.restoreOriginalState(),this._removeInactiveBinding(a)}},uncacheAction:function(t,e){t=this.existingAction(t,e);null!==t&&(this._deactivateAction(t),this._removeInactiveAction(t))}}),zt.AnimationMixer._Action=zt.AnimationAction._new,Object.assign(zt.AnimationMixer.prototype,{_bindAction:function(t,e){var n=t._localRoot||this._root,i=t._clip.tracks,r=i.length,o=t._propertyBindings,a=t._interpolants,s=n.uuid,t=this._bindingsByRootAndName,l=t[s];void 0===l&&(t[s]=l={});for(var c=0;c!==r;++c){var u=i[c],h=u.name,d=l[h];if(void 0===d){if(void 0!==(d=o[c])){null===d._cacheIndex&&(++d.referenceCount,this._addInactiveBinding(d,s,h));continue}var p=e&&e._propertyBindings[c].binding.parsedPath;++(d=new zt.PropertyMixer(zt.PropertyBinding.create(n,h,p),u.ValueTypeName,u.getValueSize())).referenceCount,this._addInactiveBinding(d,s,h)}o[c]=d,a[c].resultBuffer=d.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){null===t._cacheIndex&&(e=(t._localRoot||this._root).uuid,n=t._clip.uuid,i=this._actionsByClip[n],this._bindAction(t,i&&i.knownActions[0]),this._addInactiveAction(t,n,e));for(var e,n,i,r=t._propertyBindings,o=0,a=r.length;o!==a;++o){var s=r[o];0==s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,n=0,i=e.length;n!==i;++n){var r=e[n];0==--r.useCount&&(r.restoreOriginalState(),this._takeBackBinding(r))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){t=t._cacheIndex;return null!==t&&t<this._nActiveActions},_addInactiveAction:function(t,e,n){var i=this._actions,r=this._actionsByClip,o=r[e];void 0===o?(o={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,r[e]=o):(r=o.knownActions,t._byClipCacheIndex=r.length,r.push(t)),t._cacheIndex=i.length,i.push(t),o.actionByRoot[n]=t},_removeInactiveAction:function(t){var e=this._actions,n=e[e.length-1],i=t._cacheIndex,i=(e[n._cacheIndex=i]=n,e.pop(),t._cacheIndex=null,t._clip.uuid),n=this._actionsByClip,r=n[i],o=r.knownActions,a=o[o.length-1],s=t._byClipCacheIndex;o[a._byClipCacheIndex=s]=a,o.pop(),t._byClipCacheIndex=null,delete r.actionByRoot[(e._localRoot||this._root).uuid],0===o.length&&delete n[i],this._removeInactiveBindingsForAction(t)},_removeInactiveBindingsForAction:function(t){for(var e=t._propertyBindings,n=0,i=e.length;n!==i;++n){var r=e[n];0==--r.referenceCount&&this._removeInactiveBinding(r)}},_lendAction:function(t){var e=this._actions,n=t._cacheIndex,i=this._nActiveActions++,r=e[i];e[t._cacheIndex=i]=t,e[r._cacheIndex=n]=r},_takeBackAction:function(t){var e=this._actions,n=t._cacheIndex,i=--this._nActiveActions,r=e[i];e[t._cacheIndex=i]=t,e[r._cacheIndex=n]=r},_addInactiveBinding:function(t,e,n){var i=this._bindingsByRootAndName,r=i[e],o=this._bindings;void 0===r&&(i[e]=r={}),(r[n]=t)._cacheIndex=o.length,o.push(t)},_removeInactiveBinding:function(t){var e=this._bindings,n=t.binding,i=n.rootNode.uuid,n=n.path,r=this._bindingsByRootAndName,o=r[i],a=e[e.length-1],t=t._cacheIndex;e[a._cacheIndex=t]=a,e.pop(),delete o[n];t:{for(var s in o)break t;delete r[i]}},_lendBinding:function(t){var e=this._bindings,n=t._cacheIndex,i=this._nActiveBindings++,r=e[i];e[t._cacheIndex=i]=t,e[r._cacheIndex=n]=r},_takeBackBinding:function(t){var e=this._bindings,n=t._cacheIndex,i=--this._nActiveBindings,r=e[i];e[t._cacheIndex=i]=t,e[r._cacheIndex=n]=r},_lendControlInterpolant:function(){var t=this._controlInterpolants,e=this._nActiveControlInterpolants++,n=t[e];return void 0===n&&(t[(n=new zt.LinearInterpolant(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer)).__cacheIndex=e]=n),n},_takeBackControlInterpolant:function(t){var e=this._controlInterpolants,n=t.__cacheIndex,i=--this._nActiveControlInterpolants,r=e[i];e[t.__cacheIndex=i]=t,e[r.__cacheIndex=n]=r},_controlInterpolantsResultBuffer:new Float32Array(1)}),zt.AnimationObjectGroup=function(t){this.uuid=zt.Math.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var e={};this._indicesByUUID=e;for(var n=0,i=arguments.length;n!==i;++n)e[arguments[n].uuid]=n;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var r=this;this.stats={objects:{get total(){return r._objects.length},get inUse(){return this.total-r.nCachedObjects_}},get bindingsPerObject(){return r._bindings.length}}},zt.AnimationObjectGroup.prototype={constructor:zt.AnimationObjectGroup,add:function(t){for(var e=this._objects,n=e.length,i=this.nCachedObjects_,r=this._indicesByUUID,o=this._paths,a=this._parsedPaths,s=this._bindings,l=s.length,c=0,u=arguments.length;c!==u;++c){var h=arguments[c],d=h.uuid,p=r[d];if(void 0===p){p=n++,r[d]=p,e.push(h);for(var f=0,m=l;f!==m;++f)s[f].push(new zt.PropertyBinding(h,o[f],a[f]))}else if(p<i){var g=e[p],v=--i,y=e[v];e[r[y.uuid]=p]=y,e[r[d]=v]=h;for(f=0,m=l;f!==m;++f){var _=s[f],b=_[v],x=_[p];_[p]=b,void 0===x&&(x=new zt.PropertyBinding(h,o[f],a[f])),_[v]=x}}else e[p]!==g&&console.error("Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes...")}this.nCachedObjects_=i},remove:function(t){for(var e=this._objects,n=(e.length,this.nCachedObjects_),i=this._indicesByUUID,r=this._bindings,o=r.length,a=0,s=arguments.length;a!==s;++a){var l=arguments[a],c=l.uuid,u=i[c];if(void 0!==u&&n<=u){var h=n++,d=e[h];e[i[d.uuid]=u]=d,e[i[c]=h]=l;for(var p=0,f=o;p!==f;++p){var m=r[p],g=m[h],v=m[u];m[u]=g,m[h]=v}}}this.nCachedObjects_=n},uncache:function(t){for(var e=this._objects,n=e.length,i=this.nCachedObjects_,r=this._indicesByUUID,o=this._bindings,a=o.length,s=0,l=arguments.length;s!==l;++s){var c=arguments[s].uuid,u=r[c];if(void 0!==u)if(delete r[c],u<i){var h,d=--i,c=e[d],p=e[h=--n];e[r[c.uuid]=u]=c,e[r[p.uuid]=d]=p,e.pop();for(var f=0,m=a;f!==m;++f){var g=(y=o[f])[d],v=y[h];y[u]=g,y[d]=v,y.pop()}}else{e[r[(p=e[h=--n]).uuid]=u]=p,e.pop();for(var y,f=0,m=a;f!==m;++f)(y=o[f])[u]=y[h],y.pop()}}this.nCachedObjects_=i},subscribe_:function(t,e){var n=this._bindingsIndicesByPath,i=n[t],r=this._bindings;if(void 0!==i)return r[i];var o=this._paths,a=this._parsedPaths,s=this._objects,l=s.length,c=this.nCachedObjects_,u=new Array(l),i=r.length;n[t]=i,o.push(t),a.push(e),r.push(u);for(var h=c,d=s.length;h!==d;++h){var p=s[h];u[h]=new zt.PropertyBinding(p,t,e)}return u},unsubscribe_:function(t){var e,n,i,r,o,a=this._bindingsIndicesByPath,s=a[t];void 0!==s&&(e=this._paths,n=this._parsedPaths,o=(i=this._bindings)[r=i.length-1],i[a[t[r]]=s]=o,i.pop(),n[s]=n[r],n.pop(),e[s]=e[r],e.pop())}},zt.AnimationUtils={arraySlice:function(t,e,n){return zt.AnimationUtils.isTypedArray(t)?new t.constructor(t.subarray(e,n)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:"number"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(n){for(var t=n.length,e=new Array(t),i=0;i!==t;++i)e[i]=i;return e.sort(function(t,e){return n[t]-n[e]}),e},sortedArray:function(t,e,n){for(var i=t.length,r=new t.constructor(i),o=0,a=0;a!==i;++o)for(var s=n[o]*e,l=0;l!==e;++l)r[a++]=t[s+l];return r},flattenJSON:function(t,e,n,i){for(var r=1,o=t[0];void 0!==o&&void 0===o[i];)o=t[r++];if(void 0!==o){var a=o[i];if(void 0!==a)if(Array.isArray(a))for(;void 0!==(a=o[i])&&(e.push(o.time),n.push.apply(n,a)),void 0!==(o=t[r++]););else if(void 0!==a.toArray)for(;void 0!==(a=o[i])&&(e.push(o.time),a.toArray(n,n.length)),void 0!==(o=t[r++]););else for(;void 0!==(a=o[i])&&(e.push(o.time),n.push(a)),void 0!==(o=t[r++]););}}},zt.KeyframeTrack=function(t,e,n,i){if(void 0===t)throw new Error("track name is undefined");if(void 0===e||0===e.length)throw new Error("no keyframes in track named "+t);this.name=t,this.times=zt.AnimationUtils.convertArray(e,this.TimeBufferType),this.values=zt.AnimationUtils.convertArray(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation),this.validate(),this.optimize()},zt.KeyframeTrack.prototype={constructor:zt.KeyframeTrack,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:zt.InterpolateLinear,InterpolantFactoryMethodDiscrete:function(t){return new zt.DiscreteInterpolant(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new zt.LinearInterpolant(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new zt.CubicInterpolant(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){var e;switch(t){case zt.InterpolateDiscrete:e=this.InterpolantFactoryMethodDiscrete;break;case zt.InterpolateLinear:e=this.InterpolantFactoryMethodLinear;break;case zt.InterpolateSmooth:e=this.InterpolantFactoryMethodSmooth}if(void 0===e){var n="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw new Error(n);this.setInterpolation(this.DefaultInterpolation)}console.warn(n)}else this.createInterpolant=e},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return zt.InterpolateDiscrete;case this.InterpolantFactoryMethodLinear:return zt.InterpolateLinear;case this.InterpolantFactoryMethodSmooth:return zt.InterpolateSmooth}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(0!==t)for(var e=this.times,n=0,i=e.length;n!==i;++n)e[n]+=t;return this},scale:function(t){if(1!==t)for(var e=this.times,n=0,i=e.length;n!==i;++n)e[n]*=t;return this},trim:function(t,e){for(var n,i=this.times,r=i.length,o=0,a=r-1;o!==r&&i[o]<t;)++o;for(;-1!==a&&i[a]>e;)--a;return++a,0===o&&a===r||(a<=o&&(o=(a=Math.max(a,1))-1),n=this.getValueSize(),this.times=zt.AnimationUtils.arraySlice(i,o,a),this.values=zt.AnimationUtils.arraySlice(this.values,o*n,a*n)),this},validate:function(){for(var t=!0,e=this.getValueSize(),n=(e-Math.floor(e)!=0&&(console.error("invalid value size in track",this),t=!1),this.times),i=this.values,r=n.length,o=(0===r&&(console.error("track is empty",this),t=!1),null),a=0;a!==r;a++){var s=n[a];if("number"==typeof s&&isNaN(s)){console.error("time is not a valid number",this,a,s),t=!1;break}if(null!==o&&s<o){console.error("out of order keys",this,a,s,o),t=!1;break}o=s}if(void 0!==i&&zt.AnimationUtils.isTypedArray(i))for(var a=0,l=i.length;a!==l;++a){var c=i[a];if(isNaN(c)){console.error("value is not a valid number",this,a,c),t=!1;break}}return t},optimize:function(){for(var t=this.times,e=this.values,n=this.getValueSize(),i=1,r=1,o=t.length-1;r<=o;++r){var a=!1,s=t[r];if(s!==t[r+1]&&(1!==r||s!==s[0]))for(var l=r*n,c=l-n,u=l+n,h=0;h!==n;++h){var d=e[l+h];if(d!==e[c+h]||d!==e[u+h]){a=!0;break}}if(a){if(r!==i){t[i]=t[r];for(var p=r*n,f=i*n,h=0;h!==n;++h)e[f+h]=e[p+h]}++i}}return i!==t.length&&(this.times=zt.AnimationUtils.arraySlice(t,0,i),this.values=zt.AnimationUtils.arraySlice(e,0,i*n)),this}},Object.assign(zt.KeyframeTrack,{parse:function(t){if(void 0===t.type)throw new Error("track type undefined, can not parse");var e,n,i=zt.KeyframeTrack._getTrackTypeForValueTypeName(t.type);return void 0===t.times&&(zt.AnimationUtils.flattenJSON(t.keys,e=[],n=[],"value"),t.times=e,t.values=n),void 0!==i.parse?i.parse(t):new i(t.name,t.times,t.values,t.interpolation)},toJSON:function(t){var e,n=t.constructor;return void 0!==n.toJSON?e=n.toJSON(t):(e={name:t.name,times:zt.AnimationUtils.convertArray(t.times,Array),values:zt.AnimationUtils.convertArray(t.values,Array)},(n=t.getInterpolation())!==t.DefaultInterpolation&&(e.interpolation=n)),e.type=t.ValueTypeName,e},_getTrackTypeForValueTypeName:function(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return zt.NumberKeyframeTrack;case"vector":case"vector2":case"vector3":case"vector4":return zt.VectorKeyframeTrack;case"color":return zt.ColorKeyframeTrack;case"quaternion":return zt.QuaternionKeyframeTrack;case"bool":case"boolean":return zt.BooleanKeyframeTrack;case"string":return zt.StringKeyframeTrack}throw new Error("Unsupported typeName: "+t)}}),zt.PropertyBinding=function(t,e,n){this.path=e,this.parsedPath=n||zt.PropertyBinding.parseTrackName(e),this.node=zt.PropertyBinding.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t},zt.PropertyBinding.prototype={constructor:zt.PropertyBinding,getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){var t=this.node,e=this.parsedPath,n=e.objectName,i=e.propertyName,r=e.propertyIndex;if(t||(t=zt.PropertyBinding.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,t){if(n){var o=e.objectIndex;switch(n){case"materials":if(!t.material)return void console.error("  can not bind to material as node does not have a material",this);if(!t.material.materials)return void console.error("  can not bind to material.materials as node.material does not have a materials array",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("  can not bind to bones as node does not have a skeleton",this);for(var t=t.skeleton.bones,a=0;a<t.length;a++)if(t[a].name===o){o=a;break}break;default:if(void 0===t[n])return void console.error("  can not bind to objectName of node, undefined",this);t=t[n]}if(void 0!==o){if(void 0===t[o])return void console.error("  trying to bind to objectIndex of objectName, but is undefined:",this,t);t=t[o]}}var s=t[i];if(s){var l=this.Versioning.None,c=(void 0!==t.needsUpdate?(l=this.Versioning.NeedsUpdate,this.targetObject=t):void 0!==t.matrixWorldNeedsUpdate&&(l=this.Versioning.MatrixWorldNeedsUpdate,this.targetObject=t),this.BindingType.Direct);if(void 0!==r){if("morphTargetInfluences"===i){if(!t.geometry)return void console.error("  can not bind to morphTargetInfluences becasuse node does not have a geometry",this);if(!t.geometry.morphTargets)return void console.error("  can not bind to morphTargetInfluences becasuse node does not have a geometry.morphTargets",this);for(a=0;a<this.node.geometry.morphTargets.length;a++)if(t.geometry.morphTargets[a].name===r){r=a;break}}c=this.BindingType.ArrayElement,this.resolvedProperty=s,this.propertyIndex=r}else void 0!==s.fromArray&&void 0!==s.toArray?(c=this.BindingType.HasFromToArray,this.resolvedProperty=s):void 0!==s.length?(c=this.BindingType.EntireArray,this.resolvedProperty=s):this.propertyName=i;this.getValue=this.GetterByBindingType[c],this.setValue=this.SetterByBindingTypeAndVersioning[c][l]}else s=e.nodeName,console.error("  trying to update property for track: "+s+"."+i+" but it wasn't found.",t)}else console.error("  trying to update node for track: "+this.path+" but it wasn't found.")},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}},Object.assign(zt.PropertyBinding.prototype,{_getValue_unavailable:function(){},_setValue_unavailable:function(){},_getValue_unbound:zt.PropertyBinding.prototype.getValue,_setValue_unbound:zt.PropertyBinding.prototype.setValue,BindingType:{Direct:0,EntireArray:1,ArrayElement:2,HasFromToArray:3},Versioning:{None:0,NeedsUpdate:1,MatrixWorldNeedsUpdate:2},GetterByBindingType:[function(t,e){t[e]=this.node[this.propertyName]},function(t,e){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)t[e++]=n[i]},function(t,e){t[e]=this.resolvedProperty[this.propertyIndex]},function(t,e){this.resolvedProperty.toArray(t,e)}],SetterByBindingTypeAndVersioning:[[function(t,e){this.node[this.propertyName]=t[e]},function(t,e){this.node[this.propertyName]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.node[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)n[i]=t[e++]},function(t,e){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.needsUpdate=!0},function(t,e){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty[this.propertyIndex]=t[e]},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty.fromArray(t,e)},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}]]}),zt.PropertyBinding.Composite=function(t,e,n){n=n||zt.PropertyBinding.parseTrackName(e);this._targetGroup=t,this._bindings=t.subscribe_(e,n)},zt.PropertyBinding.Composite.prototype={constructor:zt.PropertyBinding.Composite,getValue:function(t,e){this.bind();var n=this._targetGroup.nCachedObjects_,n=this._bindings[n];void 0!==n&&n.getValue(t,e)},setValue:function(t,e){for(var n=this._bindings,i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(t,e)},bind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].bind()},unbind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].unbind()}},zt.PropertyBinding.create=function(t,e,n){return new(t instanceof zt.AnimationObjectGroup?zt.PropertyBinding.Composite:zt.PropertyBinding)(t,e,n)},zt.PropertyBinding.parseTrackName=function(t){var e=/^(([\w]+\/)*)([\w-\d]+)?(\.([\w]+)(\[([\w\d\[\]\_.:\- ]+)\])?)?(\.([\w.]+)(\[([\w\d\[\]\_. ]+)\])?)$/,n=e.exec(t);if(!n)throw new Error("cannot parse trackName at all: "+t);n.index===e.lastIndex&&e.lastIndex++;e={nodeName:n[3],objectName:n[5],objectIndex:n[7],propertyName:n[9],propertyIndex:n[11]};if(null===e.propertyName||0===e.propertyName.length)throw new Error("can not parse propertyName from trackName: "+t);return e},zt.PropertyBinding.findNode=function(t,i){if(!i||""===i||"root"===i||"."===i||-1===i||i===t.name||i===t.uuid)return t;if(t.skeleton){var e=function(t){for(var e=0;e<t.bones.length;e++){var n=t.bones[e];if(n.name===i)return n}return null}(t.skeleton);if(e)return e}if(t.children){function r(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.name===i||n.uuid===i)return n;n=r(n.children);if(n)return n}return null}e=r(t.children);if(e)return e}return null},zt.PropertyMixer=function(t,e,n){this.binding=t,this.valueSize=n;var i,r=Float64Array;switch(e){case"quaternion":i=this._slerp;break;case"string":case"bool":r=Array,i=this._select;break;default:i=this._lerp}this.buffer=new r(4*n),this._mixBufferRegion=i,this.cumulativeWeight=0,this.useCount=0,this.referenceCount=0},zt.PropertyMixer.prototype={constructor:zt.PropertyMixer,accumulate:function(t,e){var n=this.buffer,i=this.valueSize,r=t*i+i,t=this.cumulativeWeight;if(0===t){for(var o=0;o!==i;++o)n[r+o]=n[o];t=e}else this._mixBufferRegion(n,r,0,e/(t+=e),i);this.cumulativeWeight=t},apply:function(t){var e=this.valueSize,n=this.buffer,i=t*e+e,t=this.cumulativeWeight,r=this.binding;this.cumulativeWeight=0,t<1&&this._mixBufferRegion(n,i,3*e,1-t,e);for(var o=e,a=e+e;o!==a;++o)if(n[o]!==n[o+e]){r.setValue(n,i);break}},saveOriginalState:function(){var t=this.binding,e=this.buffer,n=this.valueSize,i=3*n;t.getValue(e,i);for(var r=n,o=i;r!==o;++r)e[r]=e[i+r%n];this.cumulativeWeight=0},restoreOriginalState:function(){var t=3*this.valueSize;this.binding.setValue(this.buffer,t)},_select:function(t,e,n,i,r){if(.5<=i)for(var o=0;o!==r;++o)t[e+o]=t[n+o]},_slerp:function(t,e,n,i,r){zt.Quaternion.slerpFlat(t,e,t,e,t,n,i)},_lerp:function(t,e,n,i,r){for(var o=1-i,a=0;a!==r;++a){var s=e+a;t[s]=t[s]*o+t[n+a]*i}}},zt.BooleanKeyframeTrack=function(t,e,n){zt.KeyframeTrack.call(this,t,e,n)},zt.BooleanKeyframeTrack.prototype=Object.assign(Object.create(zt.KeyframeTrack.prototype),{constructor:zt.BooleanKeyframeTrack,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:zt.InterpolateDiscrete,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),zt.ColorKeyframeTrack=function(t,e,n,i){zt.KeyframeTrack.call(this,t,e,n,i)},zt.ColorKeyframeTrack.prototype=Object.assign(Object.create(zt.KeyframeTrack.prototype),{constructor:zt.ColorKeyframeTrack,ValueTypeName:"color"}),zt.NumberKeyframeTrack=function(t,e,n,i){zt.KeyframeTrack.call(this,t,e,n,i)},zt.NumberKeyframeTrack.prototype=Object.assign(Object.create(zt.KeyframeTrack.prototype),{constructor:zt.NumberKeyframeTrack,ValueTypeName:"number"}),zt.QuaternionKeyframeTrack=function(t,e,n,i){zt.KeyframeTrack.call(this,t,e,n,i)},zt.QuaternionKeyframeTrack.prototype=Object.assign(Object.create(zt.KeyframeTrack.prototype),{constructor:zt.QuaternionKeyframeTrack,ValueTypeName:"quaternion",DefaultInterpolation:zt.InterpolateLinear,InterpolantFactoryMethodLinear:function(t){return new zt.QuaternionLinearInterpolant(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),zt.StringKeyframeTrack=function(t,e,n,i){zt.KeyframeTrack.call(this,t,e,n,i)},zt.StringKeyframeTrack.prototype=Object.assign(Object.create(zt.KeyframeTrack.prototype),{constructor:zt.StringKeyframeTrack,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:zt.InterpolateDiscrete,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),zt.VectorKeyframeTrack=function(t,e,n,i){zt.KeyframeTrack.call(this,t,e,n,i)},zt.VectorKeyframeTrack.prototype=Object.assign(Object.create(zt.KeyframeTrack.prototype),{constructor:zt.VectorKeyframeTrack,ValueTypeName:"vector"}),zt.Audio=function(t){zt.Object3D.call(this),this.type="Audio",this.context=t.context,this.source=this.context.createBufferSource(),this.source.onended=this.onEnded.bind(this),this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.startTime=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType="empty",this.filters=[]},zt.Audio.prototype=Object.assign(Object.create(zt.Object3D.prototype),{constructor:zt.Audio,getOutput:function(){return this.gain},setNodeSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this},setBuffer:function(t){return this.source.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this},play:function(){if(!0===this.isPlaying)console.warn("THREE.Audio: Audio is already playing.");else{var t;if(!1!==this.hasPlaybackControl)return(t=this.context.createBufferSource()).buffer=this.source.buffer,t.loop=this.source.loop,t.onended=this.source.onended,t.start(0,this.startTime),t.playbackRate.value=this.playbackRate,this.isPlaying=!0,this.source=t,this.connect();console.warn("THREE.Audio: this Audio has no playback control.")}},pause:function(){if(!1!==this.hasPlaybackControl)return this.source.stop(),this.startTime=this.context.currentTime,this;console.warn("THREE.Audio: this Audio has no playback control.")},stop:function(){if(!1!==this.hasPlaybackControl)return this.source.stop(),this.startTime=0,this;console.warn("THREE.Audio: this Audio has no playback control.")},connect:function(){if(0<this.filters.length){this.source.connect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(0<this.filters.length){this.source.disconnect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(t){return t=t||[],!0===this.isPlaying?(this.disconnect(),this.filters=t,this.connect()):this.filters=t,this},getFilter:function(){return this.getFilters()[0]},setFilter:function(t){return this.setFilters(t?[t]:[])},setPlaybackRate:function(t){if(!1!==this.hasPlaybackControl)return this.playbackRate=t,!0===this.isPlaying&&(this.source.playbackRate.value=this.playbackRate),this;console.warn("THREE.Audio: this Audio has no playback control.")},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.source.loop},setLoop:function(t){!1===this.hasPlaybackControl?console.warn("THREE.Audio: this Audio has no playback control."):this.source.loop=t},getVolume:function(){return this.gain.gain.value},setVolume:function(t){return this.gain.gain.value=t,this}}),zt.AudioAnalyser=function(t,e){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=void 0!==e?e:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)},Object.assign(zt.AudioAnalyser.prototype,{getFrequencyData:function(){return this.analyser.getByteFrequencyData(this.data),this.data},getAverageFrequency:function(){for(var t=0,e=this.getFrequencyData(),n=0;n<e.length;n++)t+=e[n];return t/e.length}}),Object.defineProperty(zt,"AudioContext",{get:function(){return ge=void 0===ge?new(window.AudioContext||window.webkitAudioContext):ge}}),zt.PositionalAudio=function(t){zt.Audio.call(this,t),this.panner=this.context.createPanner(),this.panner.connect(this.gain)},zt.PositionalAudio.prototype=Object.assign(Object.create(zt.Audio.prototype),{constructor:zt.PositionalAudio,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(t){this.panner.refDistance=t},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(t){this.panner.rolloffFactor=t},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(t){this.panner.distanceModel=t},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(t){this.panner.maxDistance=t},updateMatrixWorld:(ve=new zt.Vector3,function(t){zt.Object3D.prototype.updateMatrixWorld.call(this,t),ve.setFromMatrixPosition(this.matrixWorld),this.panner.setPosition(ve.x,ve.y,ve.z)})}),zt.AudioListener=function(){zt.Object3D.call(this),this.type="AudioListener",this.context=zt.AudioContext,this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null},zt.AudioListener.prototype=Object.assign(Object.create(zt.Object3D.prototype),{constructor:zt.AudioListener,getInput:function(){return this.gain},removeFilter:function(){null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null)},getFilter:function(){return this.filter},setFilter:function(t){(null!==this.filter?(this.gain.disconnect(this.filter),this.filter):this.gain).disconnect(this.context.destination),this.filter=t,this.gain.connect(this.filter),this.filter.connect(this.context.destination)},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(t){this.gain.gain.value=t},updateMatrixWorld:(ye=new zt.Vector3,_e=new zt.Quaternion,be=new zt.Vector3,xe=new zt.Vector3,function(t){zt.Object3D.prototype.updateMatrixWorld.call(this,t);var t=this.context.listener,e=this.up;this.matrixWorld.decompose(ye,_e,be),xe.set(0,0,-1).applyQuaternion(_e),t.setPosition(ye.x,ye.y,ye.z),t.setOrientation(xe.x,xe.y,xe.z,e.x,e.y,e.z)})}),zt.Camera=function(){zt.Object3D.call(this),this.type="Camera",this.matrixWorldInverse=new zt.Matrix4,this.projectionMatrix=new zt.Matrix4},zt.Camera.prototype=Object.create(zt.Object3D.prototype),zt.Camera.prototype.constructor=zt.Camera,zt.Camera.prototype.getWorldDirection=(we=new zt.Quaternion,function(t){t=t||new zt.Vector3;return this.getWorldQuaternion(we),t.set(0,0,-1).applyQuaternion(we)}),zt.Camera.prototype.lookAt=(Te=new zt.Matrix4,function(t){Te.lookAt(this.position,t,this.up),this.quaternion.setFromRotationMatrix(Te)}),zt.Camera.prototype.clone=function(){return(new this.constructor).copy(this)},zt.Camera.prototype.copy=function(t){return zt.Object3D.prototype.copy.call(this,t),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this},zt.CubeCamera=function(t,e,n){zt.Object3D.call(this),this.type="CubeCamera";var r=new zt.PerspectiveCamera(90,1,t,e),o=(r.up.set(0,-1,0),r.lookAt(new zt.Vector3(1,0,0)),this.add(r),new zt.PerspectiveCamera(90,1,t,e)),a=(o.up.set(0,-1,0),o.lookAt(new zt.Vector3(-1,0,0)),this.add(o),new zt.PerspectiveCamera(90,1,t,e)),s=(a.up.set(0,0,1),a.lookAt(new zt.Vector3(0,1,0)),this.add(a),new zt.PerspectiveCamera(90,1,t,e)),l=(s.up.set(0,0,-1),s.lookAt(new zt.Vector3(0,-1,0)),this.add(s),new zt.PerspectiveCamera(90,1,t,e)),c=(l.up.set(0,-1,0),l.lookAt(new zt.Vector3(0,0,1)),this.add(l),new zt.PerspectiveCamera(90,1,t,e)),t=(c.up.set(0,-1,0),c.lookAt(new zt.Vector3(0,0,-1)),this.add(c),{format:zt.RGBFormat,magFilter:zt.LinearFilter,minFilter:zt.LinearFilter});this.renderTarget=new zt.WebGLRenderTargetCube(n,n,t),this.updateCubeMap=function(t,e){null===this.parent&&this.updateMatrixWorld();var n=this.renderTarget,i=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,n.activeCubeFace=0,t.render(e,r,n),n.activeCubeFace=1,t.render(e,o,n),n.activeCubeFace=2,t.render(e,a,n),n.activeCubeFace=3,t.render(e,s,n),n.activeCubeFace=4,t.render(e,l,n),n.texture.generateMipmaps=i,n.activeCubeFace=5,t.render(e,c,n),t.setRenderTarget(null)}},zt.CubeCamera.prototype=Object.create(zt.Object3D.prototype),zt.CubeCamera.prototype.constructor=zt.CubeCamera,zt.OrthographicCamera=function(t,e,n,i,r,o){zt.Camera.call(this),this.type="OrthographicCamera",this.zoom=1,this.left=t,this.right=e,this.top=n,this.bottom=i,this.near=void 0!==r?r:.1,this.far=void 0!==o?o:2e3,this.updateProjectionMatrix()},zt.OrthographicCamera.prototype=Object.assign(Object.create(zt.Camera.prototype),{constructor:zt.OrthographicCamera,copy:function(t){return zt.Camera.prototype.copy.call(this,t),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},updateProjectionMatrix:function(){var 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;this.projectionMatrix.makeOrthographic(n-t,n+t,i+e,i-e,this.near,this.far)},toJSON:function(t){t=zt.Object3D.prototype.toJSON.call(this,t);return t.object.zoom=this.zoom,t.object.left=this.left,t.object.right=this.right,t.object.top=this.top,t.object.bottom=this.bottom,t.object.near=this.near,t.object.far=this.far,t}}),zt.PerspectiveCamera=function(t,e,n,i){zt.Camera.call(this),this.type="PerspectiveCamera",this.fov=void 0!==t?t:50,this.zoom=1,this.near=void 0!==n?n:.1,this.far=void 0!==i?i:2e3,this.focus=10,this.aspect=void 0!==e?e:1,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()},zt.PerspectiveCamera.prototype=Object.assign(Object.create(zt.Camera.prototype),{constructor:zt.PerspectiveCamera,copy:function(t){return zt.Camera.prototype.copy.call(this,t),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:function(t){t=.5*this.getFilmHeight()/t;this.fov=2*zt.Math.RAD2DEG*Math.atan(t),this.updateProjectionMatrix()},getFocalLength:function(){var t=Math.tan(.5*zt.Math.DEG2RAD*this.fov);return.5*this.getFilmHeight()/t},getEffectiveFOV:function(){return 2*zt.Math.RAD2DEG*Math.atan(Math.tan(.5*zt.Math.DEG2RAD*this.fov)/this.zoom)},getFilmWidth:function(){return this.filmGauge*Math.min(this.aspect,1)},getFilmHeight:function(){return this.filmGauge/Math.max(this.aspect,1)},setViewOffset:function(t,e,n,i,r,o){this.aspect=t/e,this.view={fullWidth:t,fullHeight:e,offsetX:n,offsetY:i,width:r,height:o},this.updateProjectionMatrix()},clearViewOffset:function(){this.view=null,this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t,e=this.near,n=e*Math.tan(.5*zt.Math.DEG2RAD*this.fov)/this.zoom,i=2*n,r=this.aspect*i,o=-.5*r,a=this.view,s=(null!==a&&(s=a.fullWidth,t=a.fullHeight,o+=a.offsetX*r/s,n-=a.offsetY*i/t,r*=a.width/s,i*=a.height/t),this.filmOffset);0!==s&&(o+=e*s/this.getFilmWidth()),this.projectionMatrix.makeFrustum(o,o+r,n-i,n,e,this.far)},toJSON:function(t){t=zt.Object3D.prototype.toJSON.call(this,t);return t.object.fov=this.fov,t.object.zoom=this.zoom,t.object.near=this.near,t.object.far=this.far,t.object.focus=this.focus,t.object.aspect=this.aspect,null!==this.view&&(t.object.view=Object.assign({},this.view)),t.object.filmGauge=this.filmGauge,t.object.filmOffset=this.filmOffset,t}}),zt.StereoCamera=function(){this.type="StereoCamera",this.aspect=1,this.cameraL=new zt.PerspectiveCamera,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new zt.PerspectiveCamera,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1},Object.assign(zt.StereoCamera.prototype,{update:(Me=new zt.Matrix4,Pe=new zt.Matrix4,function(t){var e,n,i,r,o;Se===t.focus&&Ce===t.fov&&w===t.aspect*this.aspect&&T===t.near&&Ee===t.far||(Se=t.focus,Ce=t.fov,w=t.aspect*this.aspect,T=t.near,Ee=t.far,e=t.projectionMatrix.clone(),n=.032*T/Se,i=T*Math.tan(zt.Math.DEG2RAD*Ce*.5),Pe.elements[12]=-.032,Me.elements[12]=.032,r=-i*w+n,o=i*w+n,e.elements[0]=2*T/(o-r),e.elements[8]=(o+r)/(o-r),this.cameraL.projectionMatrix.copy(e),r=-i*w-n,o=i*w-n,e.elements[0]=2*T/(o-r),e.elements[8]=(o+r)/(o-r),this.cameraR.projectionMatrix.copy(e)),this.cameraL.matrixWorld.copy(t.matrixWorld).multiply(Pe),this.cameraR.matrixWorld.copy(t.matrixWorld).multiply(Me)})}),zt.Light=function(t,e){zt.Object3D.call(this),this.type="Light",this.color=new zt.Color(t),this.intensity=void 0!==e?e:1,this.receiveShadow=void 0},zt.Light.prototype=Object.assign(Object.create(zt.Object3D.prototype),{constructor:zt.Light,copy:function(t){return zt.Object3D.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){t=zt.Object3D.prototype.toJSON.call(this,t);return t.object.color=this.color.getHex(),t.object.intensity=this.intensity,void 0!==this.groundColor&&(t.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(t.object.distance=this.distance),void 0!==this.angle&&(t.object.angle=this.angle),void 0!==this.decay&&(t.object.decay=this.decay),void 0!==this.penumbra&&(t.object.penumbra=this.penumbra),t}}),zt.LightShadow=function(t){this.camera=t,this.bias=0,this.radius=1,this.mapSize=new zt.Vector2(512,512),this.map=null,this.matrix=new zt.Matrix4},Object.assign(zt.LightShadow.prototype,{copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return(new this.constructor).copy(this)}}),zt.AmbientLight=function(t,e){zt.Light.call(this,t,e),this.type="AmbientLight",this.castShadow=void 0},zt.AmbientLight.prototype=Object.assign(Object.create(zt.Light.prototype),{constructor:zt.AmbientLight}),zt.DirectionalLight=function(t,e){zt.Light.call(this,t,e),this.type="DirectionalLight",this.position.set(0,1,0),this.updateMatrix(),this.target=new zt.Object3D,this.shadow=new zt.DirectionalLightShadow},zt.DirectionalLight.prototype=Object.assign(Object.create(zt.Light.prototype),{constructor:zt.DirectionalLight,copy:function(t){return zt.Light.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),zt.DirectionalLightShadow=function(t){zt.LightShadow.call(this,new zt.OrthographicCamera(-5,5,5,-5,.5,500))},zt.DirectionalLightShadow.prototype=Object.assign(Object.create(zt.LightShadow.prototype),{constructor:zt.DirectionalLightShadow}),zt.HemisphereLight=function(t,e,n){zt.Light.call(this,t,n),this.type="HemisphereLight",this.castShadow=void 0,this.position.set(0,1,0),this.updateMatrix(),this.groundColor=new zt.Color(e)},zt.HemisphereLight.prototype=Object.assign(Object.create(zt.Light.prototype),{constructor:zt.HemisphereLight,copy:function(t){return zt.Light.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),zt.PointLight=function(t,e,n,i){zt.Light.call(this,t,e),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(t){this.intensity=t/(4*Math.PI)}}),this.distance=void 0!==n?n:0,this.decay=void 0!==i?i:1,this.shadow=new zt.LightShadow(new zt.PerspectiveCamera(90,1,.5,500))},zt.PointLight.prototype=Object.assign(Object.create(zt.Light.prototype),{constructor:zt.PointLight,copy:function(t){return zt.Light.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),zt.SpotLight=function(t,e,n,i,r,o){zt.Light.call(this,t,e),this.type="SpotLight",this.position.set(0,1,0),this.updateMatrix(),this.target=new zt.Object3D,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(t){this.intensity=t/Math.PI}}),this.distance=void 0!==n?n:0,this.angle=void 0!==i?i:Math.PI/3,this.penumbra=void 0!==r?r:0,this.decay=void 0!==o?o:1,this.shadow=new zt.SpotLightShadow},zt.SpotLight.prototype=Object.assign(Object.create(zt.Light.prototype),{constructor:zt.SpotLight,copy:function(t){return zt.Light.prototype.copy.call(this,t),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}}),zt.SpotLightShadow=function(){zt.LightShadow.call(this,new zt.PerspectiveCamera(50,1,.5,500))},zt.SpotLightShadow.prototype=Object.assign(Object.create(zt.LightShadow.prototype),{constructor:zt.SpotLightShadow,update:function(t){var e=2*zt.Math.RAD2DEG*t.angle,n=this.mapSize.width/this.mapSize.height,t=t.distance||500,i=this.camera;e===i.fov&&n===i.aspect&&t===i.far||(i.fov=e,i.aspect=n,i.far=t,i.updateProjectionMatrix())}}),zt.AudioLoader=function(t){this.manager=void 0!==t?t:zt.DefaultLoadingManager},zt.AudioLoader.prototype={constructor:zt.AudioLoader,load:function(t,e,n,i){var r=new zt.XHRLoader(this.manager);r.setResponseType("arraybuffer"),r.load(t,function(t){zt.AudioContext.decodeAudioData(t,function(t){e(t)})},n,i)}},zt.Cache={enabled:!1,files:{},add:function(t,e){!1!==this.enabled&&(this.files[t]=e)},get:function(t){if(!1!==this.enabled)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}},zt.Loader=function(){this.onLoadStart=function(){},this.onLoadProgress=function(){},this.onLoadComplete=function(){}},zt.Loader.prototype={constructor:zt.Loader,crossOrigin:void 0,extractUrlBase:function(t){t=t.split("/");return 1===t.length?"./":(t.pop(),t.join("/")+"/")},initMaterials:function(t,e,n){for(var i=[],r=0;r<t.length;++r)i[r]=this.createMaterial(t[r],e,n);return i},createMaterial:function(t,a,s){void 0===ke&&(ke=new zt.Color),void 0===Ae&&(Ae=new zt.TextureLoader),void 0===Oe&&(Oe=new zt.MaterialLoader);var l={};function e(t,e,n,i,r){var t=a+t,o=zt.Loader.Handlers.get(t),o=(null!==o?o:(Ae.setCrossOrigin(s),Ae)).load(t),t=(void 0!==e&&(o.repeat.fromArray(e),1!==e[0]&&(o.wrapS=zt.RepeatWrapping),1!==e[1])&&(o.wrapT=zt.RepeatWrapping),void 0!==n&&o.offset.fromArray(n),void 0!==i&&("repeat"===i[0]&&(o.wrapS=zt.RepeatWrapping),"mirror"===i[0]&&(o.wrapS=zt.MirroredRepeatWrapping),"repeat"===i[1]&&(o.wrapT=zt.RepeatWrapping),"mirror"===i[1])&&(o.wrapT=zt.MirroredRepeatWrapping),void 0!==r&&(o.anisotropy=r),zt.Math.generateUUID());return l[t]=o,t}var n,i={uuid:zt.Math.generateUUID(),type:"MeshLambertMaterial"};for(n in t){var r=t[n];switch(n){case"DbgColor":case"DbgIndex":case"opticalDensity":case"illumination":break;case"DbgName":i.name=r;break;case"blending":i.blending=zt[r];break;case"colorAmbient":case"mapAmbient":console.warn("THREE.Loader.createMaterial:",n,"is no longer supported.");break;case"colorDiffuse":i.color=ke.fromArray(r).getHex();break;case"colorSpecular":i.specular=ke.fromArray(r).getHex();break;case"colorEmissive":i.emissive=ke.fromArray(r).getHex();break;case"specularCoef":i.shininess=r;break;case"shading":"basic"===r.toLowerCase()&&(i.type="MeshBasicMaterial"),"phong"===r.toLowerCase()&&(i.type="MeshPhongMaterial");break;case"mapDiffuse":i.map=e(r,t.mapDiffuseRepeat,t.mapDiffuseOffset,t.mapDiffuseWrap,t.mapDiffuseAnisotropy);break;case"mapDiffuseRepeat":case"mapDiffuseOffset":case"mapDiffuseWrap":case"mapDiffuseAnisotropy":break;case"mapLight":i.lightMap=e(r,t.mapLightRepeat,t.mapLightOffset,t.mapLightWrap,t.mapLightAnisotropy);break;case"mapLightRepeat":case"mapLightOffset":case"mapLightWrap":case"mapLightAnisotropy":break;case"mapAO":i.aoMap=e(r,t.mapAORepeat,t.mapAOOffset,t.mapAOWrap,t.mapAOAnisotropy);break;case"mapAORepeat":case"mapAOOffset":case"mapAOWrap":case"mapAOAnisotropy":break;case"mapBump":i.bumpMap=e(r,t.mapBumpRepeat,t.mapBumpOffset,t.mapBumpWrap,t.mapBumpAnisotropy);break;case"mapBumpScale":i.bumpScale=r;break;case"mapBumpRepeat":case"mapBumpOffset":case"mapBumpWrap":case"mapBumpAnisotropy":break;case"mapNormal":i.normalMap=e(r,t.mapNormalRepeat,t.mapNormalOffset,t.mapNormalWrap,t.mapNormalAnisotropy);break;case"mapNormalFactor":i.normalScale=[r,r];break;case"mapNormalRepeat":case"mapNormalOffset":case"mapNormalWrap":case"mapNormalAnisotropy":break;case"mapSpecular":i.specularMap=e(r,t.mapSpecularRepeat,t.mapSpecularOffset,t.mapSpecularWrap,t.mapSpecularAnisotropy);break;case"mapSpecularRepeat":case"mapSpecularOffset":case"mapSpecularWrap":case"mapSpecularAnisotropy":break;case"mapAlpha":i.alphaMap=e(r,t.mapAlphaRepeat,t.mapAlphaOffset,t.mapAlphaWrap,t.mapAlphaAnisotropy);break;case"mapAlphaRepeat":case"mapAlphaOffset":case"mapAlphaWrap":case"mapAlphaAnisotropy":break;case"flipSided":i.side=zt.BackSide;break;case"doubleSided":i.side=zt.DoubleSide;break;case"transparency":console.warn("THREE.Loader.createMaterial: transparency has been renamed to opacity"),i.opacity=r;break;case"depthTest":case"depthWrite":case"colorWrite":case"opacity":case"reflectivity":case"transparent":case"visible":case"wireframe":i[n]=r;break;case"vertexColors":!0===r&&(i.vertexColors=zt.VertexColors),"face"===r&&(i.vertexColors=zt.FaceColors);break;default:console.error("THREE.Loader.createMaterial: Unsupported",n,r)}}return"MeshBasicMaterial"===i.type&&delete i.emissive,"MeshPhongMaterial"!==i.type&&delete i.specular,i.opacity<1&&(i.transparent=!0),Oe.setTextures(l),Oe.parse(i)}},zt.Loader.Handlers={handlers:[],add:function(t,e){this.handlers.push(t,e)},get:function(t){for(var e=this.handlers,n=0,i=e.length;n<i;n+=2){var r=e[n],o=e[n+1];if(r.test(t))return o}return null}},zt.XHRLoader=function(t){this.manager=void 0!==t?t:zt.DefaultLoadingManager},zt.XHRLoader.prototype={constructor:zt.XHRLoader,load:function(n,i,e,r){void 0!==this.path&&(n=this.path+n);var t,o=this,a=zt.Cache.get(n);return void 0!==a?(i&&setTimeout(function(){i(a)},0),a):((t=new XMLHttpRequest).overrideMimeType("text/plain"),t.open("GET",n,!0),t.addEventListener("load",function(t){var e=t.target.response;zt.Cache.add(n,e),200===this.status?(i&&i(e),o.manager.itemEnd(n)):0===this.status?(console.warn("THREE.XHRLoader: HTTP Status 0 received."),i&&i(e),o.manager.itemEnd(n)):(r&&r(t),o.manager.itemError(n))},!1),void 0!==e&&t.addEventListener("progress",function(t){e(t)},!1),t.addEventListener("error",function(t){r&&r(t),o.manager.itemError(n)},!1),void 0!==this.responseType&&(t.responseType=this.responseType),void 0!==this.withCredentials&&(t.withCredentials=this.withCredentials),t.send(null),o.manager.itemStart(n),t)},setPath:function(t){this.path=t},setResponseType:function(t){this.responseType=t},setWithCredentials:function(t){this.withCredentials=t}},zt.FontLoader=function(t){this.manager=void 0!==t?t:zt.DefaultLoadingManager},zt.FontLoader.prototype={constructor:zt.FontLoader,load:function(t,i,e,n){var r=this;new zt.XHRLoader(this.manager).load(t,function(e){var n;try{n=JSON.parse(e)}catch(t){console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),n=JSON.parse(e.substring(65,e.length-2))}e=r.parse(n);i&&i(e)},e,n)},parse:function(t){return new zt.Font(t)}},zt.ImageLoader=function(t){this.manager=void 0!==t?t:zt.DefaultLoadingManager},zt.ImageLoader.prototype={constructor:zt.ImageLoader,load:function(e,n,i,r){void 0!==this.path&&(e=this.path+e);var t,o=this,a=zt.Cache.get(e);return void 0!==a?(o.manager.itemStart(e),n?setTimeout(function(){n(a),o.manager.itemEnd(e)},0):o.manager.itemEnd(e),a):((t=document.createElement("img")).addEventListener("load",function(t){zt.Cache.add(e,this),n&&n(this),o.manager.itemEnd(e)},!1),void 0!==i&&t.addEventListener("progress",function(t){i(t)},!1),t.addEventListener("error",function(t){r&&r(t),o.manager.itemError(e)},!1),void 0!==this.crossOrigin&&(t.crossOrigin=this.crossOrigin),o.manager.itemStart(e),t.src=e,t)},setCrossOrigin:function(t){this.crossOrigin=t},setPath:function(t){this.path=t}},zt.JSONLoader=function(t){"boolean"==typeof t&&(console.warn("THREE.JSONLoader: showStatus parameter has been removed from constructor."),t=void 0),this.manager=void 0!==t?t:zt.DefaultLoadingManager,this.withCredentials=!1},zt.JSONLoader.prototype={constructor:zt.JSONLoader,get statusDomElement(){return void 0===this._statusDomElement&&(this._statusDomElement=document.createElement("div")),console.warn("THREE.JSONLoader: .statusDomElement has been removed."),this._statusDomElement},load:function(n,i,t,e){var r=this,o=this.texturePath&&"string"==typeof this.texturePath?this.texturePath:zt.Loader.prototype.extractUrlBase(n),a=new zt.XHRLoader(this.manager);a.setWithCredentials(this.withCredentials),a.load(n,function(t){var t=JSON.parse(t),e=t.metadata;if(void 0!==e){e=e.type;if(void 0!==e){if("object"===e.toLowerCase())return void console.error("THREE.JSONLoader: "+n+" should be loaded with THREE.ObjectLoader instead.");if("scene"===e.toLowerCase())return void console.error("THREE.JSONLoader: "+n+" should be loaded with THREE.SceneLoader instead.")}}e=r.parse(t,o);i(e.geometry,e.materials)},t,e)},setTexturePath:function(t){this.texturePath=t},parse:function(t,I){var e,n,i,r,o,a,s,l,c,u,F,B,N,U,z,V,h,d,p,f,m,g,v,y,_,b,x=new zt.Geometry,w=void 0!==t.scale?1/t.scale:1,G=w,T=t.faces,S=t.vertices,C=t.normals,E=t.colors,M=0;if(void 0!==t.uvs){for(e=0;e<t.uvs.length;e++)t.uvs[e].length&&M++;for(e=0;e<M;e++)x.faceVertexUvs[e]=[]}for(r=0,o=S.length;r<o;)(h=new zt.Vector3).x=S[r++]*G,h.y=S[r++]*G,h.z=S[r++]*G,x.vertices.push(h);for(r=0,o=T.length;r<o;)if(u=T[r++],F=u&2,B=u&8,N=u&16,U=u&32,z=u&64,V=u&128,u&1){if((p=new zt.Face3).a=T[r],p.b=T[r+1],p.c=T[r+3],(f=new zt.Face3).a=T[r+1],f.b=T[r+2],f.c=T[r+3],r+=4,F&&(c=T[r++],p.materialIndex=c,f.materialIndex=c),i=x.faces.length,B)for(e=0;e<M;e++)for(v=t.uvs[e],x.faceVertexUvs[e][i]=[],x.faceVertexUvs[e][i+1]=[],n=0;n<4;n++)l=T[r++],_=v[2*l],b=v[2*l+1],y=new zt.Vector2(_,b),2!==n&&x.faceVertexUvs[e][i].push(y),0!==n&&x.faceVertexUvs[e][i+1].push(y);if(N&&(s=3*T[r++],p.normal.set(C[s++],C[s++],C[s]),f.normal.copy(p.normal)),U)for(e=0;e<4;e++)s=3*T[r++],g=new zt.Vector3(C[s++],C[s++],C[s]),2!==e&&p.vertexNormals.push(g),0!==e&&f.vertexNormals.push(g);if(z&&(a=T[r++],m=E[a],p.color.setHex(m),f.color.setHex(m)),V)for(e=0;e<4;e++)a=T[r++],m=E[a],2!==e&&p.vertexColors.push(new zt.Color(m)),0!==e&&f.vertexColors.push(new zt.Color(m));x.faces.push(p),x.faces.push(f)}else{if((d=new zt.Face3).a=T[r++],d.b=T[r++],d.c=T[r++],F&&(c=T[r++],d.materialIndex=c),i=x.faces.length,B)for(e=0;e<M;e++)for(v=t.uvs[e],x.faceVertexUvs[e][i]=[],n=0;n<3;n++)l=T[r++],_=v[2*l],b=v[2*l+1],y=new zt.Vector2(_,b),x.faceVertexUvs[e][i].push(y);if(N&&(s=3*T[r++],d.normal.set(C[s++],C[s++],C[s])),U)for(e=0;e<3;e++)s=3*T[r++],g=new zt.Vector3(C[s++],C[s++],C[s]),d.vertexNormals.push(g);if(z&&(a=T[r++],d.color.setHex(E[a])),V)for(e=0;e<3;e++)a=T[r++],d.vertexColors.push(new zt.Color(E[a]));x.faces.push(d)}var P=void 0!==t.influencesPerVertex?t.influencesPerVertex:2;if(t.skinWeights)for(var k=0,H=t.skinWeights.length;k<H;k+=P){var W=t.skinWeights[k],$=1<P?t.skinWeights[k+1]:0,q=2<P?t.skinWeights[k+2]:0,X=3<P?t.skinWeights[k+3]:0;x.skinWeights.push(new zt.Vector4(W,$,q,X))}if(t.skinIndices)for(k=0,H=t.skinIndices.length;k<H;k+=P){var Y=t.skinIndices[k],Z=1<P?t.skinIndices[k+1]:0,J=2<P?t.skinIndices[k+2]:0,K=3<P?t.skinIndices[k+3]:0;x.skinIndices.push(new zt.Vector4(Y,Z,J,K))}x.bones=t.bones,x.bones&&0<x.bones.length&&(x.skinWeights.length!==x.skinIndices.length||x.skinIndices.length!==x.vertices.length)&&console.warn("When skinning, number of vertices ("+x.vertices.length+"), skinIndices ("+x.skinIndices.length+"), and skinWeights ("+x.skinWeights.length+") should match.");var Q=w;if(void 0!==t.morphTargets)for(var A=0,tt=t.morphTargets.length;A<tt;A++){x.morphTargets[A]={},x.morphTargets[A].name=t.morphTargets[A].name,x.morphTargets[A].vertices=[];for(var et=x.morphTargets[A].vertices,O=t.morphTargets[A].vertices,R=0,nt=O.length;R<nt;R+=3){var L=new zt.Vector3;L.x=O[R]*Q,L.y=O[R+1]*Q,L.z=O[R+2]*Q,et.push(L)}}if(void 0!==t.morphColors&&0<t.morphColors.length){console.warn('THREE.JSONLoader: "morphColors" no longer supported. Using them as face colors.');for(var it=x.faces,rt=t.morphColors[0].colors,A=0,tt=it.length;A<tt;A++)it[A].color.fromArray(rt,3*A)}var D=[],j=[];void 0!==t.animation&&j.push(t.animation),void 0!==t.animations&&(t.animations.length?j=j.concat(t.animations):j.push(t.animations));for(var ot=0;ot<j.length;ot++){var at=zt.AnimationClip.parseAnimation(j[ot],x.bones);at&&D.push(at)}return x.morphTargets&&(w=zt.AnimationClip.CreateClipsFromMorphTargetSequences(x.morphTargets,10),D=D.concat(w)),0<D.length&&(x.animations=D),x.computeFaceNormals(),x.computeBoundingSphere(),void 0===t.materials||0===t.materials.length?{geometry:x}:(w=zt.Loader.prototype.initMaterials(t.materials,I,this.crossOrigin),{geometry:x,materials:w})}},zt.LoadingManager=function(t,e,n){var i=this,r=!1,o=0,a=0;this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){a++,!1===r&&void 0!==i.onStart&&i.onStart(t,o,a),r=!0},this.itemEnd=function(t){o++,void 0!==i.onProgress&&i.onProgress(t,o,a),o===a&&(r=!1,void 0!==i.onLoad)&&i.onLoad()},this.itemError=function(t){void 0!==i.onError&&i.onError(t)}},zt.DefaultLoadingManager=new zt.LoadingManager,zt.BufferGeometryLoader=function(t){this.manager=void 0!==t?t:zt.DefaultLoadingManager},zt.BufferGeometryLoader.prototype={constructor:zt.BufferGeometryLoader,load:function(t,e,n,i){var r=this;new zt.XHRLoader(r.manager).load(t,function(t){e(r.parse(JSON.parse(t)))},n,i)},parse:function(t){var e,n=new zt.BufferGeometry,i=t.data.index,r={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:Uint8ClampedArray,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array},o=(void 0!==i&&(s=new r[i.type](i.array),n.setIndex(new zt.BufferAttribute(s,1))),t.data.attributes);for(e in o){var a=o[e],s=new r[a.type](a.array);n.addAttribute(e,new zt.BufferAttribute(s,a.itemSize,a.normalized))}var l=t.data.groups||t.data.drawcalls||t.data.offsets;if(void 0!==l)for(var c=0,u=l.length;c!==u;++c){var h=l[c];n.addGroup(h.start,h.count,h.materialIndex)}i=t.data.boundingSphere;return void 0!==i&&(t=new zt.Vector3,void 0!==i.center&&t.fromArray(i.center),n.boundingSphere=new zt.Sphere(t,i.radius)),n}},zt.MaterialLoader=function(t){this.manager=void 0!==t?t:zt.DefaultLoadingManager,this.textures={}},zt.MaterialLoader.prototype={constructor:zt.MaterialLoader,load:function(t,e,n,i){var r=this;new zt.XHRLoader(r.manager).load(t,function(t){e(r.parse(JSON.parse(t)))},n,i)},setTextures:function(t){this.textures=t},getTexture:function(t){var e=this.textures;return void 0===e[t]&&console.warn("THREE.MaterialLoader: Undefined texture",t),e[t]},parse:function(t){var e,n=new zt[t.type];if(void 0!==t.uuid&&(n.uuid=t.uuid),void 0!==t.name&&(n.name=t.name),void 0!==t.color&&n.color.setHex(t.color),void 0!==t.roughness&&(n.roughness=t.roughness),void 0!==t.metalness&&(n.metalness=t.metalness),void 0!==t.emissive&&n.emissive.setHex(t.emissive),void 0!==t.specular&&n.specular.setHex(t.specular),void 0!==t.shininess&&(n.shininess=t.shininess),void 0!==t.uniforms&&(n.uniforms=t.uniforms),void 0!==t.vertexShader&&(n.vertexShader=t.vertexShader),void 0!==t.fragmentShader&&(n.fragmentShader=t.fragmentShader),void 0!==t.vertexColors&&(n.vertexColors=t.vertexColors),void 0!==t.shading&&(n.shading=t.shading),void 0!==t.blending&&(n.blending=t.blending),void 0!==t.side&&(n.side=t.side),void 0!==t.opacity&&(n.opacity=t.opacity),void 0!==t.transparent&&(n.transparent=t.transparent),void 0!==t.alphaTest&&(n.alphaTest=t.alphaTest),void 0!==t.depthTest&&(n.depthTest=t.depthTest),void 0!==t.depthWrite&&(n.depthWrite=t.depthWrite),void 0!==t.colorWrite&&(n.colorWrite=t.colorWrite),void 0!==t.wireframe&&(n.wireframe=t.wireframe),void 0!==t.wireframeLinewidth&&(n.wireframeLinewidth=t.wireframeLinewidth),void 0!==t.size&&(n.size=t.size),void 0!==t.sizeAttenuation&&(n.sizeAttenuation=t.sizeAttenuation),void 0!==t.map&&(n.map=this.getTexture(t.map)),void 0!==t.alphaMap&&(n.alphaMap=this.getTexture(t.alphaMap),n.transparent=!0),void 0!==t.bumpMap&&(n.bumpMap=this.getTexture(t.bumpMap)),void 0!==t.bumpScale&&(n.bumpScale=t.bumpScale),void 0!==t.normalMap&&(n.normalMap=this.getTexture(t.normalMap)),void 0!==t.normalScale&&(e=t.normalScale,!1===Array.isArray(e)&&(e=[e,e]),n.normalScale=(new zt.Vector2).fromArray(e)),void 0!==t.displacementMap&&(n.displacementMap=this.getTexture(t.displacementMap)),void 0!==t.displacementScale&&(n.displacementScale=t.displacementScale),void 0!==t.displacementBias&&(n.displacementBias=t.displacementBias),void 0!==t.roughnessMap&&(n.roughnessMap=this.getTexture(t.roughnessMap)),void 0!==t.metalnessMap&&(n.metalnessMap=this.getTexture(t.metalnessMap)),void 0!==t.emissiveMap&&(n.emissiveMap=this.getTexture(t.emissiveMap)),void 0!==t.emissiveIntensity&&(n.emissiveIntensity=t.emissiveIntensity),void 0!==t.specularMap&&(n.specularMap=this.getTexture(t.specularMap)),void 0!==t.envMap&&(n.envMap=this.getTexture(t.envMap),n.combine=zt.MultiplyOperation),t.reflectivity&&(n.reflectivity=t.reflectivity),void 0!==t.lightMap&&(n.lightMap=this.getTexture(t.lightMap)),void 0!==t.lightMapIntensity&&(n.lightMapIntensity=t.lightMapIntensity),void 0!==t.aoMap&&(n.aoMap=this.getTexture(t.aoMap)),void 0!==t.aoMapIntensity&&(n.aoMapIntensity=t.aoMapIntensity),void 0!==t.materials)for(var i=0,r=t.materials.length;i<r;i++)n.materials.push(this.parse(t.materials[i]));return n}},zt.ObjectLoader=function(t){this.manager=void 0!==t?t:zt.DefaultLoadingManager,this.texturePath=""},zt.ObjectLoader.prototype={constructor:zt.ObjectLoader,load:function(t,e,n,i){""===this.texturePath&&(this.texturePath=t.substring(0,t.lastIndexOf("/")+1));var r=this;new zt.XHRLoader(r.manager).load(t,function(t){r.parse(JSON.parse(t),e)},n,i)},setTexturePath:function(t){this.texturePath=t},setCrossOrigin:function(t){this.crossOrigin=t},parse:function(t,e){var n=this.parseGeometries(t.geometries),i=this.parseImages(t.images,function(){void 0!==e&&e(r)}),i=this.parseTextures(t.textures,i),i=this.parseMaterials(t.materials,i),r=this.parseObject(t.object,n,i);return t.animations&&(r.animations=this.parseAnimations(t.animations)),void 0!==t.images&&0!==t.images.length||void 0!==e&&e(r),r},parseGeometries:function(t){var e={};if(void 0!==t)for(var n=new zt.JSONLoader,i=new zt.BufferGeometryLoader,r=0,o=t.length;r<o;r++){var a,s=t[r];switch(s.type){case"PlaneGeometry":case"PlaneBufferGeometry":a=new zt[s.type](s.width,s.height,s.widthSegments,s.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":a=new zt[s.type](s.width,s.height,s.depth,s.widthSegments,s.heightSegments,s.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":a=new zt[s.type](s.radius,s.segments,s.thetaStart,s.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":a=new zt[s.type](s.radiusTop,s.radiusBottom,s.height,s.radialSegments,s.heightSegments,s.openEnded,s.thetaStart,s.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":a=new zt[s.type](s.radius,s.height,s.radialSegments,s.heightSegments,s.openEnded,s.thetaStart,s.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":a=new zt[s.type](s.radius,s.widthSegments,s.heightSegments,s.phiStart,s.phiLength,s.thetaStart,s.thetaLength);break;case"DodecahedronGeometry":case"IcosahedronGeometry":case"OctahedronGeometry":case"TetrahedronGeometry":a=new zt[s.type](s.radius,s.detail);break;case"RingGeometry":case"RingBufferGeometry":a=new zt[s.type](s.innerRadius,s.outerRadius,s.thetaSegments,s.phiSegments,s.thetaStart,s.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":a=new zt[s.type](s.radius,s.tube,s.radialSegments,s.tubularSegments,s.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":a=new zt[s.type](s.radius,s.tube,s.tubularSegments,s.radialSegments,s.p,s.q);break;case"LatheGeometry":case"LatheBufferGeometry":a=new zt[s.type](s.points,s.segments,s.phiStart,s.phiLength);break;case"BufferGeometry":a=i.parse(s);break;case"Geometry":a=n.parse(s.data,this.texturePath).geometry;break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+s.type+'"');continue}a.uuid=s.uuid,void 0!==s.name&&(a.name=s.name),e[s.uuid]=a}return e},parseMaterials:function(t,e){var n={};if(void 0!==t){var i=new zt.MaterialLoader;i.setTextures(e);for(var r=0,o=t.length;r<o;r++){var a=i.parse(t[r]);n[a.uuid]=a}}return n},parseAnimations:function(t){for(var e=[],n=0;n<t.length;n++){var i=zt.AnimationClip.parse(t[n]);e.push(i)}return e},parseImages:function(t,e){var n=this,i={};if(void 0!==t&&0<t.length){var e=new zt.LoadingManager(e),r=new zt.ImageLoader(e);r.setCrossOrigin(this.crossOrigin);for(var o=0,a=t.length;o<a;o++){var s=t[o],l=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(s.url)?s.url:n.texturePath+s.url;i[s.uuid]=function(t){return n.manager.itemStart(t),r.load(t,function(){n.manager.itemEnd(t)})}(l)}}return i},parseTextures:function(t,e){function n(t){return"number"==typeof t?t:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",t),zt[t])}var i={};if(void 0!==t)for(var r=0,o=t.length;r<o;r++){var a=t[r],s=(void 0===a.image&&console.warn('THREE.ObjectLoader: No "image" specified for',a.uuid),void 0===e[a.image]&&console.warn("THREE.ObjectLoader: Undefined image",a.image),new zt.Texture(e[a.image]));s.needsUpdate=!0,s.uuid=a.uuid,void 0!==a.name&&(s.name=a.name),void 0!==a.mapping&&(s.mapping=n(a.mapping)),void 0!==a.offset&&(s.offset=new zt.Vector2(a.offset[0],a.offset[1])),void 0!==a.repeat&&(s.repeat=new zt.Vector2(a.repeat[0],a.repeat[1])),void 0!==a.minFilter&&(s.minFilter=n(a.minFilter)),void 0!==a.magFilter&&(s.magFilter=n(a.magFilter)),void 0!==a.anisotropy&&(s.anisotropy=a.anisotropy),Array.isArray(a.wrap)&&(s.wrapS=n(a.wrap[0]),s.wrapT=n(a.wrap[1])),i[a.uuid]=s}return i},parseObject:(Re=new zt.Matrix4,function(t,e,n){function i(t){return void 0===e[t]&&console.warn("THREE.ObjectLoader: Undefined geometry",t),e[t]}function r(t){if(void 0!==t)return void 0===n[t]&&console.warn("THREE.ObjectLoader: Undefined material",t),n[t]}switch(t.type){case"Scene":s=new zt.Scene;break;case"PerspectiveCamera":s=new zt.PerspectiveCamera(t.fov,t.aspect,t.near,t.far),void 0!==t.focus&&(s.focus=t.focus),void 0!==t.zoom&&(s.zoom=t.zoom),void 0!==t.filmGauge&&(s.filmGauge=t.filmGauge),void 0!==t.filmOffset&&(s.filmOffset=t.filmOffset),void 0!==t.view&&(s.view=Object.assign({},t.view));break;case"OrthographicCamera":s=new zt.OrthographicCamera(t.left,t.right,t.top,t.bottom,t.near,t.far);break;case"AmbientLight":s=new zt.AmbientLight(t.color,t.intensity);break;case"DirectionalLight":s=new zt.DirectionalLight(t.color,t.intensity);break;case"PointLight":s=new zt.PointLight(t.color,t.intensity,t.distance,t.decay);break;case"SpotLight":s=new zt.SpotLight(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":s=new zt.HemisphereLight(t.color,t.groundColor,t.intensity);break;case"Mesh":var o=i(t.geometry),a=r(t.material),s=new(o.bones&&0<o.bones.length?zt.SkinnedMesh:zt.Mesh)(o,a);break;case"LOD":s=new zt.LOD;break;case"Line":s=new zt.Line(i(t.geometry),r(t.material),t.mode);break;case"PointCloud":case"Points":s=new zt.Points(i(t.geometry),r(t.material));break;case"Sprite":s=new zt.Sprite(r(t.material));break;case"Group":s=new zt.Group;break;default:s=new zt.Object3D}if(s.uuid=t.uuid,void 0!==t.name&&(s.name=t.name),void 0!==t.matrix?(Re.fromArray(t.matrix),Re.decompose(s.position,s.quaternion,s.scale)):(void 0!==t.position&&s.position.fromArray(t.position),void 0!==t.rotation&&s.rotation.fromArray(t.rotation),void 0!==t.scale&&s.scale.fromArray(t.scale)),void 0!==t.castShadow&&(s.castShadow=t.castShadow),void 0!==t.receiveShadow&&(s.receiveShadow=t.receiveShadow),void 0!==t.visible&&(s.visible=t.visible),void 0!==t.userData&&(s.userData=t.userData),void 0!==t.children)for(var l in t.children)s.add(this.parseObject(t.children[l],e,n));if("LOD"===t.type)for(var c=t.levels,u=0;u<c.length;u++){var h=c[u];void 0!==(l=s.getObjectByProperty("uuid",h.object))&&s.addLevel(l,h.distance)}return s})},zt.TextureLoader=function(t){this.manager=void 0!==t?t:zt.DefaultLoadingManager},zt.TextureLoader.prototype={constructor:zt.TextureLoader,load:function(t,e,n,i){var r=new zt.Texture,o=new zt.ImageLoader(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(t,function(t){r.image=t,r.needsUpdate=!0,void 0!==e&&e(r)},n,i),r},setCrossOrigin:function(t){this.crossOrigin=t},setPath:function(t){this.path=t}},zt.CubeTextureLoader=function(t){this.manager=void 0!==t?t:zt.DefaultLoadingManager},zt.CubeTextureLoader.prototype={constructor:zt.CubeTextureLoader,load:function(t,n,e,i){var r=new zt.CubeTexture,o=new zt.ImageLoader(this.manager),a=(o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),0);for(var s=0;s<t.length;++s)!function(e){o.load(t[e],function(t){r.images[e]=t,6===++a&&(r.needsUpdate=!0,n)&&n(r)},void 0,i)}(s);return r},setCrossOrigin:function(t){this.crossOrigin=t},setPath:function(t){this.path=t}},zt.DataTextureLoader=zt.BinaryTextureLoader=function(t){this.manager=void 0!==t?t:zt.DefaultLoadingManager,this._parser=null},zt.BinaryTextureLoader.prototype={constructor:zt.BinaryTextureLoader,load:function(t,e,n,i){var r=this,o=new zt.DataTexture,a=new zt.XHRLoader(this.manager);return a.setResponseType("arraybuffer"),a.load(t,function(t){t=r._parser(t);t&&(void 0!==t.image?o.image=t.image:void 0!==t.data&&(o.image.width=t.width,o.image.height=t.height,o.image.data=t.data),o.wrapS=void 0!==t.wrapS?t.wrapS:zt.ClampToEdgeWrapping,o.wrapT=void 0!==t.wrapT?t.wrapT:zt.ClampToEdgeWrapping,o.magFilter=void 0!==t.magFilter?t.magFilter:zt.LinearFilter,o.minFilter=void 0!==t.minFilter?t.minFilter:zt.LinearMipMapLinearFilter,o.anisotropy=void 0!==t.anisotropy?t.anisotropy:1,void 0!==t.format&&(o.format=t.format),void 0!==t.type&&(o.type=t.type),void 0!==t.mipmaps&&(o.mipmaps=t.mipmaps),1===t.mipmapCount&&(o.minFilter=zt.LinearFilter),o.needsUpdate=!0,e)&&e(o,t)},n,i),o}},zt.CompressedTextureLoader=function(t){this.manager=void 0!==t?t:zt.DefaultLoadingManager,this._parser=null},zt.CompressedTextureLoader.prototype={constructor:zt.CompressedTextureLoader,load:function(t,o,n,i){var a=this,s=[],l=new zt.CompressedTexture,r=(l.image=s,new zt.XHRLoader(this.manager));if(r.setPath(this.path),r.setResponseType("arraybuffer"),Array.isArray(t))for(var c=0,e=0,u=t.length;e<u;++e)!function(e){r.load(t[e],function(t){t=a._parser(t,!0);s[e]={width:t.width,height:t.height,format:t.format,mipmaps:t.mipmaps},6===(c+=1)&&(1===t.mipmapCount&&(l.minFilter=zt.LinearFilter),l.format=t.format,l.needsUpdate=!0,o)&&o(l)},n,i)}(e);else r.load(t,function(t){var e=a._parser(t,!0);if(e.isCubemap)for(var n=e.mipmaps.length/e.mipmapCount,i=0;i<n;i++){s[i]={mipmaps:[]};for(var r=0;r<e.mipmapCount;r++)s[i].mipmaps.push(e.mipmaps[i*e.mipmapCount+r]),s[i].format=e.format,s[i].width=e.width,s[i].height=e.height}else l.image.width=e.width,l.image.height=e.height,l.mipmaps=e.mipmaps;1===e.mipmapCount&&(l.minFilter=zt.LinearFilter),l.format=e.format,l.needsUpdate=!0,o&&o(l)},n,i);return l},setPath:function(t){this.path=t}},zt.Material=function(){Object.defineProperty(this,"id",{value:zt.MaterialIdCount++}),this.uuid=zt.Math.generateUUID(),this.name="",this.type="Material",this.fog=!0,this.lights=!0,this.blending=zt.NormalBlending,this.side=zt.FrontSide,this.shading=zt.SmoothShading,this.vertexColors=zt.NoColors,this.opacity=1,this.transparent=!1,this.blendSrc=zt.SrcAlphaFactor,this.blendDst=zt.OneMinusSrcAlphaFactor,this.blendEquation=zt.AddEquation,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=zt.LessEqualDepth,this.depthTest=!0,this.depthWrite=!0,this.clippingPlanes=null,this.clipShadows=!1,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.alphaTest=0,this.premultipliedAlpha=!1,this.overdraw=0,this.visible=!0,this._needsUpdate=!0},zt.Material.prototype={constructor:zt.Material,get needsUpdate(){return this._needsUpdate},set needsUpdate(t){!0===t&&this.update(),this._needsUpdate=t},setValues:function(t){if(void 0!==t)for(var e in t){var n,i=t[e];void 0===i?console.warn("THREE.Material: '"+e+"' parameter is undefined."):void 0===(n=this[e])?console.warn("THREE."+this.type+": '"+e+"' is not a property of this material."):n instanceof zt.Color?n.set(i):n instanceof zt.Vector3&&i instanceof zt.Vector3?n.copy(i):this[e]="overdraw"===e?Number(i):i}},toJSON:function(t){var e=void 0===t,n=(e&&(t={textures:{},images:{}}),{metadata:{version:4.4,type:"Material",generator:"Material.toJSON"}});function i(t){var e,n=[];for(e in t){var i=t[e];delete i.metadata,n.push(i)}return n}return n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color instanceof zt.Color&&(n.color=this.color.getHex()),.5!==this.roughness&&(n.roughness=this.roughness),.5!==this.metalness&&(n.metalness=this.metalness),this.emissive instanceof zt.Color&&(n.emissive=this.emissive.getHex()),this.specular instanceof zt.Color&&(n.specular=this.specular.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),this.map instanceof zt.Texture&&(n.map=this.map.toJSON(t).uuid),this.alphaMap instanceof zt.Texture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap instanceof zt.Texture&&(n.lightMap=this.lightMap.toJSON(t).uuid),this.bumpMap instanceof zt.Texture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap instanceof zt.Texture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalScale=this.normalScale.toArray()),this.displacementMap instanceof zt.Texture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap instanceof zt.Texture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap instanceof zt.Texture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap instanceof zt.Texture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap instanceof zt.Texture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.envMap instanceof zt.Texture&&(n.envMap=this.envMap.toJSON(t).uuid,n.reflectivity=this.reflectivity),void 0!==this.size&&(n.size=this.size),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==zt.NormalBlending&&(n.blending=this.blending),this.shading!==zt.SmoothShading&&(n.shading=this.shading),this.side!==zt.FrontSide&&(n.side=this.side),this.vertexColors!==zt.NoColors&&(n.vertexColors=this.vertexColors),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),0<this.alphaTest&&(n.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),1<this.wireframeLinewidth&&(n.wireframeLinewidth=this.wireframeLinewidth),e&&(e=i(t.textures),t=i(t.images),0<e.length&&(n.textures=e),0<t.length)&&(n.images=t),n},clone:function(){return(new this.constructor).copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.lights=t.lights,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.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.overdraw=t.overdraw,this.visible=t.visible,this.clipShadows=t.clipShadows;var e=t.clippingPlanes,n=null;if(null!==e)for(var i=e.length,n=new Array(i),r=0;r!==i;++r)n[r]=e[r].clone();return this.clippingPlanes=n,this},update:function(){this.dispatchEvent({type:"update"})},dispose:function(){this.dispatchEvent({type:"dispose"})}},Object.assign(zt.Material.prototype,zt.EventDispatcher.prototype),zt.MaterialIdCount=0,zt.LineBasicMaterial=function(t){zt.Material.call(this),this.type="LineBasicMaterial",this.color=new zt.Color(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.lights=!1,this.setValues(t)},zt.LineBasicMaterial.prototype=Object.create(zt.Material.prototype),zt.LineBasicMaterial.prototype.constructor=zt.LineBasicMaterial,zt.LineBasicMaterial.prototype.copy=function(t){return zt.Material.prototype.copy.call(this,t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this},zt.LineDashedMaterial=function(t){zt.Material.call(this),this.type="LineDashedMaterial",this.color=new zt.Color(16777215),this.linewidth=1,this.scale=1,this.dashSize=3,this.gapSize=1,this.lights=!1,this.setValues(t)},zt.LineDashedMaterial.prototype=Object.create(zt.Material.prototype),zt.LineDashedMaterial.prototype.constructor=zt.LineDashedMaterial,zt.LineDashedMaterial.prototype.copy=function(t){return zt.Material.prototype.copy.call(this,t),this.color.copy(t.color),this.linewidth=t.linewidth,this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this},zt.MeshBasicMaterial=function(t){zt.Material.call(this),this.type="MeshBasicMaterial",this.color=new zt.Color(16777215),this.map=null,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=zt.MultiplyOperation,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.lights=!1,this.setValues(t)},zt.MeshBasicMaterial.prototype=Object.create(zt.Material.prototype),zt.MeshBasicMaterial.prototype.constructor=zt.MeshBasicMaterial,zt.MeshBasicMaterial.prototype.copy=function(t){return zt.Material.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,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.skinning=t.skinning,this.morphTargets=t.morphTargets,this},zt.MeshDepthMaterial=function(t){zt.Material.call(this),this.type="MeshDepthMaterial",this.depthPacking=zt.BasicDepthPacking,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.setValues(t)},zt.MeshDepthMaterial.prototype=Object.create(zt.Material.prototype),zt.MeshDepthMaterial.prototype.constructor=zt.MeshDepthMaterial,zt.MeshDepthMaterial.prototype.copy=function(t){return zt.Material.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,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},zt.MeshLambertMaterial=function(t){zt.Material.call(this),this.type="MeshLambertMaterial",this.color=new zt.Color(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new zt.Color(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=zt.MultiplyOperation,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)},zt.MeshLambertMaterial.prototype=Object.create(zt.Material.prototype),zt.MeshLambertMaterial.prototype.constructor=zt.MeshLambertMaterial,zt.MeshLambertMaterial.prototype.copy=function(t){return zt.Material.prototype.copy.call(this,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.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.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},zt.MeshNormalMaterial=function(t){zt.Material.call(this,t),this.type="MeshNormalMaterial",this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.morphTargets=!1,this.setValues(t)},zt.MeshNormalMaterial.prototype=Object.create(zt.Material.prototype),zt.MeshNormalMaterial.prototype.constructor=zt.MeshNormalMaterial,zt.MeshNormalMaterial.prototype.copy=function(t){return zt.Material.prototype.copy.call(this,t),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},zt.MeshPhongMaterial=function(t){zt.Material.call(this),this.type="MeshPhongMaterial",this.color=new zt.Color(16777215),this.specular=new zt.Color(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new zt.Color(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new zt.Vector2(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=zt.MultiplyOperation,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)},zt.MeshPhongMaterial.prototype=Object.create(zt.Material.prototype),zt.MeshPhongMaterial.prototype.constructor=zt.MeshPhongMaterial,zt.MeshPhongMaterial.prototype.copy=function(t){return zt.Material.prototype.copy.call(this,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.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.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},zt.MeshStandardMaterial=function(t){zt.Material.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new zt.Color(16777215),this.roughness=.5,this.metalness=.5,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new zt.Color(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalScale=new zt.Vector2(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)},zt.MeshStandardMaterial.prototype=Object.create(zt.Material.prototype),zt.MeshStandardMaterial.prototype.constructor=zt.MeshStandardMaterial,zt.MeshStandardMaterial.prototype.copy=function(t){return zt.Material.prototype.copy.call(this,t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,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.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},zt.MeshPhysicalMaterial=function(t){zt.MeshStandardMaterial.call(this),this.defines={PHYSICAL:""},this.type="MeshPhysicalMaterial",this.reflectivity=.5,this.setValues(t)},zt.MeshPhysicalMaterial.prototype=Object.create(zt.MeshStandardMaterial.prototype),zt.MeshPhysicalMaterial.prototype.constructor=zt.MeshPhysicalMaterial,zt.MeshPhysicalMaterial.prototype.copy=function(t){return zt.MeshStandardMaterial.prototype.copy.call(this,t),this.defines={PHYSICAL:""},this.reflectivity=t.reflectivity,this},zt.MultiMaterial=function(t){this.uuid=zt.Math.generateUUID(),this.type="MultiMaterial",this.materials=t instanceof Array?t:[],this.visible=!0},zt.MultiMaterial.prototype={constructor:zt.MultiMaterial,toJSON:function(t){for(var e={metadata:{version:4.2,type:"material",generator:"MaterialExporter"},uuid:this.uuid,type:this.type,materials:[]},n=this.materials,i=0,r=n.length;i<r;i++){var o=n[i].toJSON(t);delete o.metadata,e.materials.push(o)}return e.visible=this.visible,e},clone:function(){for(var t=new this.constructor,e=0;e<this.materials.length;e++)t.materials.push(this.materials[e].clone());return t.visible=this.visible,t}},zt.PointsMaterial=function(t){zt.Material.call(this),this.type="PointsMaterial",this.color=new zt.Color(16777215),this.map=null,this.size=1,this.sizeAttenuation=!0,this.lights=!1,this.setValues(t)},zt.PointsMaterial.prototype=Object.create(zt.Material.prototype),zt.PointsMaterial.prototype.constructor=zt.PointsMaterial,zt.PointsMaterial.prototype.copy=function(t){return zt.Material.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this},zt.ShaderMaterial=function(t){zt.Material.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.extensions={derivatives:!1,fragDepth:!1,drawBuffers:!1,shaderTextureLOD:!1},this.defaultAttributeValues={color:[1,1,1],uv:[0,0],uv2:[0,0]},(this.index0AttributeName=void 0)!==t&&(void 0!==t.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))},zt.ShaderMaterial.prototype=Object.create(zt.Material.prototype),zt.ShaderMaterial.prototype.constructor=zt.ShaderMaterial,zt.ShaderMaterial.prototype.copy=function(t){return zt.Material.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=zt.UniformsUtils.clone(t.uniforms),this.defines=t.defines,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=t.extensions,this},zt.ShaderMaterial.prototype.toJSON=function(t){t=zt.Material.prototype.toJSON.call(this,t);return t.uniforms=this.uniforms,t.vertexShader=this.vertexShader,t.fragmentShader=this.fragmentShader,t},zt.RawShaderMaterial=function(t){zt.ShaderMaterial.call(this,t),this.type="RawShaderMaterial"},zt.RawShaderMaterial.prototype=Object.create(zt.ShaderMaterial.prototype),zt.RawShaderMaterial.prototype.constructor=zt.RawShaderMaterial,zt.SpriteMaterial=function(t){zt.Material.call(this),this.type="SpriteMaterial",this.color=new zt.Color(16777215),this.map=null,this.rotation=0,this.fog=!1,this.lights=!1,this.setValues(t)},zt.SpriteMaterial.prototype=Object.create(zt.Material.prototype),zt.SpriteMaterial.prototype.constructor=zt.SpriteMaterial,zt.SpriteMaterial.prototype.copy=function(t){return zt.Material.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.rotation=t.rotation,this},zt.ShadowMaterial=function(){zt.ShaderMaterial.call(this,{uniforms:zt.UniformsUtils.merge([zt.UniformsLib.lights,{opacity:{value:1}}]),vertexShader:zt.ShaderChunk.shadow_vert,fragmentShader:zt.ShaderChunk.shadow_frag}),this.lights=!0,this.transparent=!0,Object.defineProperties(this,{opacity:{enumerable:!0,get:function(){return this.uniforms.opacity.value},set:function(t){this.uniforms.opacity.value=t}}})},zt.ShadowMaterial.prototype=Object.create(zt.ShaderMaterial.prototype),zt.ShadowMaterial.prototype.constructor=zt.ShadowMaterial,zt.Texture=function(t,e,n,i,r,o,a,s,l,c){Object.defineProperty(this,"id",{value:zt.TextureIdCount++}),this.uuid=zt.Math.generateUUID(),this.name="",this.sourceFile="",this.image=void 0!==t?t:zt.Texture.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==e?e:zt.Texture.DEFAULT_MAPPING,this.wrapS=void 0!==n?n:zt.ClampToEdgeWrapping,this.wrapT=void 0!==i?i:zt.ClampToEdgeWrapping,this.magFilter=void 0!==r?r:zt.LinearFilter,this.minFilter=void 0!==o?o:zt.LinearMipMapLinearFilter,this.anisotropy=void 0!==l?l:1,this.format=void 0!==a?a:zt.RGBAFormat,this.type=void 0!==s?s:zt.UnsignedByteType,this.offset=new zt.Vector2(0,0),this.repeat=new zt.Vector2(1,1),this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==c?c:zt.LinearEncoding,this.version=0,this.onUpdate=null},zt.Texture.DEFAULT_IMAGE=void 0,zt.Texture.DEFAULT_MAPPING=zt.UVMapping,zt.Texture.prototype={constructor:zt.Texture,set needsUpdate(t){!0===t&&this.version++},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){var e,n,i,r;return void 0!==t.textures[this.uuid]?t.textures[this.uuid]:(e={metadata:{version:4.4,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],wrap:[this.wrapS,this.wrapT],minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy},void 0!==this.image&&(void 0===(n=this.image).uuid&&(n.uuid=zt.Math.generateUUID()),void 0===t.images[n.uuid]&&(t.images[n.uuid]={uuid:n.uuid,url:(void 0!==(i=n).toDataURL?r=i:((r=document.createElement("canvas")).width=i.width,r.height=i.height,r.getContext("2d").drawImage(i,0,0,i.width,i.height)),2048<r.width||2048<r.height?r.toDataURL("image/jpeg",.6):r.toDataURL("image/png"))}),e.image=n.uuid),t.textures[this.uuid]=e)},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(t){if(this.mapping===zt.UVMapping){if(t.multiply(this.repeat),t.add(this.offset),t.x<0||1<t.x)switch(this.wrapS){case zt.RepeatWrapping:t.x=t.x-Math.floor(t.x);break;case zt.ClampToEdgeWrapping:t.x=t.x<0?0:1;break;case zt.MirroredRepeatWrapping: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||1<t.y)switch(this.wrapT){case zt.RepeatWrapping:t.y=t.y-Math.floor(t.y);break;case zt.ClampToEdgeWrapping:t.y=t.y<0?0:1;break;case zt.MirroredRepeatWrapping:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}this.flipY&&(t.y=1-t.y)}}},Object.assign(zt.Texture.prototype,zt.EventDispatcher.prototype),zt.TextureIdCount=0,zt.DepthTexture=function(t,e,n,i,r,o,a,s,l){zt.Texture.call(this,null,i,r,o,a,s,zt.DepthFormat,n,l),this.image={width:t,height:e},this.type=void 0!==n?n:zt.UnsignedShortType,this.magFilter=void 0!==a?a:zt.NearestFilter,this.minFilter=void 0!==s?s:zt.NearestFilter,this.flipY=!1,this.generateMipmaps=!1},zt.DepthTexture.prototype=Object.create(zt.Texture.prototype),zt.DepthTexture.prototype.constructor=zt.DepthTexture,zt.CanvasTexture=function(t,e,n,i,r,o,a,s,l){zt.Texture.call(this,t,e,n,i,r,o,a,s,l),this.needsUpdate=!0},zt.CanvasTexture.prototype=Object.create(zt.Texture.prototype),zt.CanvasTexture.prototype.constructor=zt.CanvasTexture,zt.CubeTexture=function(t,e,n,i,r,o,a,s,l,c){e=void 0!==e?e:zt.CubeReflectionMapping,zt.Texture.call(this,t=void 0!==t?t:[],e,n,i,r,o,a,s,l,c),this.flipY=!1},zt.CubeTexture.prototype=Object.create(zt.Texture.prototype),zt.CubeTexture.prototype.constructor=zt.CubeTexture,Object.defineProperty(zt.CubeTexture.prototype,"images",{get:function(){return this.image},set:function(t){this.image=t}}),zt.CompressedTexture=function(t,e,n,i,r,o,a,s,l,c,u,h){zt.Texture.call(this,null,o,a,s,l,c,i,r,u,h),this.image={width:e,height:n},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1},zt.CompressedTexture.prototype=Object.create(zt.Texture.prototype),zt.CompressedTexture.prototype.constructor=zt.CompressedTexture,zt.DataTexture=function(t,e,n,i,r,o,a,s,l,c,u,h){zt.Texture.call(this,null,o,a,s,l,c,i,r,u,h),this.image={data:t,width:e,height:n},this.magFilter=void 0!==l?l:zt.NearestFilter,this.minFilter=void 0!==c?c:zt.NearestFilter,this.flipY=!1,this.generateMipmaps=!1},zt.DataTexture.prototype=Object.create(zt.Texture.prototype),zt.DataTexture.prototype.constructor=zt.DataTexture,zt.VideoTexture=function(e,t,n,i,r,o,a,s,l){zt.Texture.call(this,e,t,n,i,r,o,a,s,l),this.generateMipmaps=!1;var c=this;!function t(){requestAnimationFrame(t),e.readyState>=e.HAVE_CURRENT_DATA&&(c.needsUpdate=!0)}()},zt.VideoTexture.prototype=Object.create(zt.Texture.prototype),zt.VideoTexture.prototype.constructor=zt.VideoTexture,zt.Group=function(){zt.Object3D.call(this),this.type="Group"},zt.Group.prototype=Object.assign(Object.create(zt.Object3D.prototype),{constructor:zt.Group}),zt.Points=function(t,e){zt.Object3D.call(this),this.type="Points",this.geometry=void 0!==t?t:new zt.BufferGeometry,this.material=void 0!==e?e:new zt.PointsMaterial({color:16777215*Math.random()})},zt.Points.prototype=Object.assign(Object.create(zt.Object3D.prototype),{constructor:zt.Points,raycast:(Le=new zt.Matrix4,De=new zt.Ray,je=new zt.Sphere,function(r,o){var a=this,t=this.geometry,s=this.matrixWorld,e=r.params.Points.threshold;if(null===t.boundingSphere&&t.computeBoundingSphere(),je.copy(t.boundingSphere),je.applyMatrix4(s),!1!==r.ray.intersectsSphere(je)){Le.getInverse(s),De.copy(r.ray).applyMatrix4(Le);var e=e/((this.scale.x+this.scale.y+this.scale.z)/3),l=e*e,n=new zt.Vector3;if(t instanceof zt.BufferGeometry){var e=t.index,i=t.attributes.position.array;if(null!==e)for(var c=e.array,u=0,h=c.length;u<h;u++){var d=c[u];n.fromArray(i,3*d),m(n,d)}else for(var u=0,p=i.length/3;u<p;u++)n.fromArray(i,3*u),m(n,u)}else for(var f=t.vertices,u=0,p=f.length;u<p;u++)m(f[u],u)}function m(t,e){var n,i=De.distanceSqToPoint(t);i<l&&((t=De.closestPointToPoint(t)).applyMatrix4(s),(n=r.ray.origin.distanceTo(t))<r.near||n>r.far||o.push({distance:n,distanceToRay:Math.sqrt(i),point:t.clone(),index:e,face:null,object:a}))}}),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),zt.Line=function(t,e,n){if(1===n)return console.warn("THREE.Line: parameter THREE.LinePieces no longer supported. Created THREE.LineSegments instead."),new zt.LineSegments(t,e);zt.Object3D.call(this),this.type="Line",this.geometry=void 0!==t?t:new zt.BufferGeometry,this.material=void 0!==e?e:new zt.LineBasicMaterial({color:16777215*Math.random()})},zt.Line.prototype=Object.assign(Object.create(zt.Object3D.prototype),{constructor:zt.Line,raycast:(Ie=new zt.Matrix4,Fe=new zt.Ray,Be=new zt.Sphere,function(t,e){var n=t.linePrecision,i=n*n,n=this.geometry,r=this.matrixWorld;if(null===n.boundingSphere&&n.computeBoundingSphere(),Be.copy(n.boundingSphere),Be.applyMatrix4(r),!1!==t.ray.intersectsSphere(Be)){Ie.getInverse(r),Fe.copy(t.ray).applyMatrix4(Ie);var o=new zt.Vector3,a=new zt.Vector3,s=new zt.Vector3,l=new zt.Vector3,c=this instanceof zt.LineSegments?2:1;if(n instanceof zt.BufferGeometry){var r=n.index,u=n.attributes.position.array;if(null!==r)for(var h=r.array,d=0,p=h.length-1;d<p;d+=c){var f=h[d],m=h[d+1];o.fromArray(u,3*f),a.fromArray(u,3*m),i<Fe.distanceSqToSegment(o,a,l,s)||(l.applyMatrix4(this.matrixWorld),(g=t.ray.origin.distanceTo(l))<t.near)||g>t.far||e.push({distance:g,point:s.clone().applyMatrix4(this.matrixWorld),index:d,face:null,faceIndex:null,object:this})}else for(d=0,p=u.length/3-1;d<p;d+=c)o.fromArray(u,3*d),a.fromArray(u,3*d+3),i<Fe.distanceSqToSegment(o,a,l,s)||(l.applyMatrix4(this.matrixWorld),(g=t.ray.origin.distanceTo(l))<t.near)||g>t.far||e.push({distance:g,point:s.clone().applyMatrix4(this.matrixWorld),index:d,face:null,faceIndex:null,object:this})}else if(n instanceof zt.Geometry)for(var g,v=n.vertices,y=v.length,d=0;d<y-1;d+=c)i<Fe.distanceSqToSegment(v[d],v[d+1],l,s)||(l.applyMatrix4(this.matrixWorld),(g=t.ray.origin.distanceTo(l))<t.near)||g>t.far||e.push({distance:g,point:s.clone().applyMatrix4(this.matrixWorld),index:d,face:null,faceIndex:null,object:this})}}),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),zt.LineSegments=function(t,e){zt.Line.call(this,t,e),this.type="LineSegments"},zt.LineSegments.prototype=Object.assign(Object.create(zt.Line.prototype),{constructor:zt.LineSegments}),zt.Mesh=function(t,e){zt.Object3D.call(this),this.type="Mesh",this.geometry=void 0!==t?t:new zt.BufferGeometry,this.material=void 0!==e?e:new zt.MeshBasicMaterial({color:16777215*Math.random()}),this.drawMode=zt.TrianglesDrawMode,this.updateMorphTargets()},zt.Mesh.prototype=Object.assign(Object.create(zt.Object3D.prototype),{constructor:zt.Mesh,setDrawMode:function(t){this.drawMode=t},updateMorphTargets:function(){if(void 0!==this.geometry.morphTargets&&0<this.geometry.morphTargets.length){this.morphTargetBase=-1,this.morphTargetInfluences=[],this.morphTargetDictionary={};for(var t=0,e=this.geometry.morphTargets.length;t<e;t++)this.morphTargetInfluences.push(0),this.morphTargetDictionary[this.geometry.morphTargets[t].name]=t}},getMorphTargetIndexByName:function(t){return void 0!==this.morphTargetDictionary[t]?this.morphTargetDictionary[t]:(console.warn("THREE.Mesh.getMorphTargetIndexByName: morph target "+t+" does not exist. Returning 0."),0)},raycast:(Ne=new zt.Matrix4,R=new zt.Ray,Ue=new zt.Sphere,L=new zt.Vector3,D=new zt.Vector3,j=new zt.Vector3,ze=new zt.Vector3,Ve=new zt.Vector3,Ge=new zt.Vector3,He=new zt.Vector2,We=new zt.Vector2,$e=new zt.Vector2,qe=new zt.Vector3,Xe=new zt.Vector3,Ye=new zt.Vector3,function(t,e){var n,i=this.geometry,r=this.material,o=this.matrixWorld;if(void 0!==r&&(null===i.boundingSphere&&i.computeBoundingSphere(),Ue.copy(i.boundingSphere),Ue.applyMatrix4(o),!1!==t.ray.intersectsSphere(Ue)&&(Ne.getInverse(o),R.copy(t.ray).applyMatrix4(Ne),null===i.boundingBox||!1!==R.intersectsBox(i.boundingBox))))if(i instanceof zt.BufferGeometry){var a,s,l,o=i.index,c=i.attributes,u=c.position.array;if(void 0!==c.uv&&(n=c.uv.array),null!==o)for(var h=o.array,d=0,p=h.length;d<p;d+=3)a=h[d],s=h[d+1],l=h[d+2],(T=In(this,t,R,u,n,a,s,l))&&(T.faceIndex=Math.floor(d/3),e.push(T));else for(d=0,p=u.length;d<p;d+=9)(T=In(this,t,R,u,n,a=d/3,s=a+1,l=a+2))&&(T.index=a,e.push(T))}else if(i instanceof zt.Geometry){var f,m,g,v=r instanceof zt.MultiMaterial,y=!0==v?r.materials:null,_=i.vertices,b=i.faces,c=i.faceVertexUvs[0];0<c.length&&(n=c);for(var x=0,w=b.length;x<w;x++){var T,S=b[x],C=!0==v?y[S.materialIndex]:r;if(void 0!==C){if(f=_[S.a],m=_[S.b],g=_[S.c],!0===C.morphTargets){var E=i.morphTargets,M=this.morphTargetInfluences;L.set(0,0,0),D.set(0,0,0),j.set(0,0,0);for(var P=0,k=E.length;P<k;P++){var A,O=M[P];0!==O&&(A=E[P].vertices,L.addScaledVector(ze.subVectors(A[S.a],f),O),D.addScaledVector(Ve.subVectors(A[S.b],m),O),j.addScaledVector(Ge.subVectors(A[S.c],g),O))}L.add(f),D.add(m),j.add(g),f=L,m=D,g=j}(T=jn(this,t,R,f,m,g,Xe))&&(n&&(C=n[x],He.copy(C[0]),We.copy(C[1]),$e.copy(C[2]),T.uv=Dn(Xe,f,m,g,He,We,$e)),T.face=S,T.faceIndex=x,e.push(T))}}}}),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),zt.Bone=function(t){zt.Object3D.call(this),this.type="Bone",this.skin=t},zt.Bone.prototype=Object.assign(Object.create(zt.Object3D.prototype),{constructor:zt.Bone,copy:function(t){return zt.Object3D.prototype.copy.call(this,t),this.skin=t.skin,this}}),zt.Skeleton=function(t,e,n){if(this.useVertexTexture=void 0===n||n,this.identityMatrix=new zt.Matrix4,this.bones=(t=t||[]).slice(0),this.useVertexTexture?(n=Math.sqrt(4*this.bones.length),n=zt.Math.nextPowerOfTwo(Math.ceil(n)),n=Math.max(n,4),this.boneTextureWidth=n,this.boneTextureHeight=n,this.boneMatrices=new Float32Array(this.boneTextureWidth*this.boneTextureHeight*4),this.boneTexture=new zt.DataTexture(this.boneMatrices,this.boneTextureWidth,this.boneTextureHeight,zt.RGBAFormat,zt.FloatType)):this.boneMatrices=new Float32Array(16*this.bones.length),void 0===e)this.calculateInverses();else if(this.bones.length===e.length)this.boneInverses=e.slice(0);else{console.warn("THREE.Skeleton bonInverses is the wrong length."),this.boneInverses=[];for(var i=0,r=this.bones.length;i<r;i++)this.boneInverses.push(new zt.Matrix4)}},Object.assign(zt.Skeleton.prototype,{calculateInverses:function(){this.boneInverses=[];for(var t=0,e=this.bones.length;t<e;t++){var n=new zt.Matrix4;this.bones[t]&&n.getInverse(this.bones[t].matrixWorld),this.boneInverses.push(n)}},pose:function(){for(var t,e=0,n=this.bones.length;e<n;e++)(t=this.bones[e])&&t.matrixWorld.getInverse(this.boneInverses[e]);for(e=0,n=this.bones.length;e<n;e++)(t=this.bones[e])&&(t.parent?(t.matrix.getInverse(t.parent.matrixWorld),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))},update:(Ze=new zt.Matrix4,function(){for(var t=0,e=this.bones.length;t<e;t++){var n=this.bones[t]?this.bones[t].matrixWorld:this.identityMatrix;Ze.multiplyMatrices(n,this.boneInverses[t]),Ze.toArray(this.boneMatrices,16*t)}this.useVertexTexture&&(this.boneTexture.needsUpdate=!0)}),clone:function(){return new zt.Skeleton(this.bones,this.boneInverses,this.useVertexTexture)}}),zt.SkinnedMesh=function(t,e,n){zt.Mesh.call(this,t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new zt.Matrix4,this.bindMatrixInverse=new zt.Matrix4;var i=[];if(this.geometry&&void 0!==this.geometry.bones){for(var r,o,a=0,s=this.geometry.bones.length;a<s;++a)o=this.geometry.bones[a],r=new zt.Bone(this),i.push(r),r.name=o.name,r.position.fromArray(o.pos),r.quaternion.fromArray(o.rotq),void 0!==o.scl&&r.scale.fromArray(o.scl);for(a=0,s=this.geometry.bones.length;a<s;++a)(-1!==(o=this.geometry.bones[a]).parent&&null!==o.parent&&void 0!==i[o.parent]?i[o.parent]:this).add(i[a])}this.normalizeSkinWeights(),this.updateMatrixWorld(!0),this.bind(new zt.Skeleton(i,void 0,n),this.matrixWorld)},zt.SkinnedMesh.prototype=Object.assign(Object.create(zt.Mesh.prototype),{constructor:zt.SkinnedMesh,bind:function(t,e){this.skeleton=t,void 0===e&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.getInverse(e)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){if(this.geometry instanceof zt.Geometry)for(var t=0;t<this.geometry.skinWeights.length;t++){var e=this.geometry.skinWeights[t];(n=1/e.lengthManhattan())!==1/0?e.multiplyScalar(n):e.set(1,0,0,0)}else if(this.geometry instanceof zt.BufferGeometry)for(var n,i=new zt.Vector4,r=this.geometry.attributes.skinWeight,t=0;t<r.count;t++)i.x=r.getX(t),i.y=r.getY(t),i.z=r.getZ(t),i.w=r.getW(t),(n=1/i.lengthManhattan())!==1/0?i.multiplyScalar(n):i.set(1,0,0,0),r.setXYZW(t,i.x,i.y,i.z,i.w)},updateMatrixWorld:function(t){zt.Mesh.prototype.updateMatrixWorld.call(this,!0),"attached"===this.bindMode?this.bindMatrixInverse.getInverse(this.matrixWorld):"detached"===this.bindMode?this.bindMatrixInverse.getInverse(this.bindMatrix):console.warn("THREE.SkinnedMesh unrecognized bindMode: "+this.bindMode)},clone:function(){return new this.constructor(this.geometry,this.material,this.useVertexTexture).copy(this)}}),zt.LOD=function(){zt.Object3D.call(this),this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})},zt.LOD.prototype=Object.assign(Object.create(zt.Object3D.prototype),{constructor:zt.LOD,copy:function(t){zt.Object3D.prototype.copy.call(this,t,!1);for(var e=t.levels,n=0,i=e.length;n<i;n++){var r=e[n];this.addLevel(r.object.clone(),r.distance)}return this},addLevel:function(t,e){void 0===e&&(e=0),e=Math.abs(e);for(var n=this.levels,i=0;i<n.length&&!(e<n[i].distance);i++);n.splice(i,0,{distance:e,object:t}),this.add(t)},getObjectForDistance:function(t){for(var e=this.levels,n=1,i=e.length;n<i&&!(t<e[n].distance);n++);return e[n-1].object},raycast:(Qe=new zt.Vector3,function(t,e){Qe.setFromMatrixPosition(this.matrixWorld);var n=t.ray.origin.distanceTo(Qe);this.getObjectForDistance(n).raycast(t,e)}),update:(Je=new zt.Vector3,Ke=new zt.Vector3,function(t){var e=this.levels;if(1<e.length){Je.setFromMatrixPosition(t.matrixWorld),Ke.setFromMatrixPosition(this.matrixWorld);var n=Je.distanceTo(Ke);e[0].object.visible=!0;for(var i=1,r=e.length;i<r&&n>=e[i].distance;i++)e[i-1].object.visible=!1,e[i].object.visible=!0;for(;i<r;i++)e[i].object.visible=!1}}),toJSON:function(t){for(var e=zt.Object3D.prototype.toJSON.call(this,t),n=(e.object.levels=[],this.levels),i=0,r=n.length;i<r;i++){var o=n[i];e.object.levels.push({object:o.object.uuid,distance:o.distance})}return e}}),zt.Sprite=function(t){zt.Object3D.call(this),this.type="Sprite",this.material=void 0!==t?t:new zt.SpriteMaterial},zt.Sprite.prototype=Object.assign(Object.create(zt.Object3D.prototype),{constructor:zt.Sprite,raycast:(tn=new zt.Vector3,function(t,e){tn.setFromMatrixPosition(this.matrixWorld);t=t.ray.distanceSqToPoint(tn);this.scale.x*this.scale.y/4<t||e.push({distance:Math.sqrt(t),point:this.position,face:null,object:this})}),clone:function(){return new this.constructor(this.material).copy(this)}}),zt.LensFlare=function(t,e,n,i,r){zt.Object3D.call(this),this.lensFlares=[],this.positionScreen=new zt.Vector3,(this.customUpdateCallback=void 0)!==t&&this.add(t,e,n,i,r)},zt.LensFlare.prototype=Object.assign(Object.create(zt.Object3D.prototype),{constructor:zt.LensFlare,copy:function(t){zt.Object3D.prototype.copy.call(this,t),this.positionScreen.copy(t.positionScreen),this.customUpdateCallback=t.customUpdateCallback;for(var e=0,n=t.lensFlares.length;e<n;e++)this.lensFlares.push(t.lensFlares[e]);return this},add:function(t,e,n,i,r,o){void 0===e&&(e=-1),void 0===n&&(n=0),void 0===o&&(o=1),void 0===r&&(r=new zt.Color(16777215)),void 0===i&&(i=zt.NormalBlending),n=Math.min(n,Math.max(0,n)),this.lensFlares.push({texture:t,size:e,distance:n,x:0,y:0,z:0,scale:1,rotation:0,opacity:o,color:r,blending:i})},updateLensFlares:function(){for(var t,e=this.lensFlares.length,n=2*-this.positionScreen.x,i=2*-this.positionScreen.y,r=0;r<e;r++)(t=this.lensFlares[r]).x=this.positionScreen.x+n*t.distance,t.y=this.positionScreen.y+i*t.distance,t.wantedRotation=t.x*Math.PI*.25,t.rotation+=.25*(t.wantedRotation-t.rotation)}}),zt.Scene=function(){zt.Object3D.call(this),this.type="Scene",this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0},zt.Scene.prototype=Object.create(zt.Object3D.prototype),zt.Scene.prototype.constructor=zt.Scene,zt.Scene.prototype.copy=function(t,e){return zt.Object3D.prototype.copy.call(this,t,e),null!==t.fog&&(this.fog=t.fog.clone()),null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this},zt.Fog=function(t,e,n){this.name="",this.color=new zt.Color(t),this.near=void 0!==e?e:1,this.far=void 0!==n?n:1e3},zt.Fog.prototype.clone=function(){return new zt.Fog(this.color.getHex(),this.near,this.far)},zt.FogExp2=function(t,e){this.name="",this.color=new zt.Color(t),this.density=void 0!==e?e:25e-5},zt.FogExp2.prototype.clone=function(){return new zt.FogExp2(this.color.getHex(),this.density)},zt.ShaderChunk={},zt.ShaderChunk.alphamap_fragment="#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif\n",zt.ShaderChunk.alphamap_pars_fragment="#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif\n",zt.ShaderChunk.alphatest_fragment="#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif\n",zt.ShaderChunk.aomap_fragment="#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( PHYSICAL )\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\n\t#endif\n#endif\n",zt.ShaderChunk.aomap_pars_fragment="#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",zt.ShaderChunk.begin_vertex="\nvec3 transformed = vec3( position );\n",zt.ShaderChunk.beginnormal_vertex="\nvec3 objectNormal = vec3( normal );\n",zt.ShaderChunk.bsdfs="bool testLightInRange( const in float lightDistance, const in float cutoffDistance ) {\n\treturn any( bvec2( cutoffDistance == 0.0, lightDistance < cutoffDistance ) );\n}\nfloat punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\t\tif( decayExponent > 0.0 ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\t\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\t\tfloat maxDistanceCutoffFactor = pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\t\treturn distanceFalloff * maxDistanceCutoffFactor;\n#else\n\t\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n#endif\n\t\t}\n\t\treturn 1.0;\n}\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\n\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\n}\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\treturn 1.0 / ( gl * gv );\n}\nfloat G_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}\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNL = saturate( dot( geometry.normal, incidentLight.direction ) );\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_GGX_SmithCorrelated( alpha, dotNL, dotNV );\n\tfloat D = D_GGX( alpha, dotNH );\n\treturn F * ( G * D );\n}\nvec3 BRDF_Specular_GGX_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness ) {\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.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 AB = vec2( -1.04, 1.04 ) * a004 + r.zw;\n\treturn specularColor * AB.x + AB.y;\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\n\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\n}\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\n\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\n}\n",zt.ShaderChunk.bumpmap_pars_fragment="#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}\n\tvec3 perturbNormalArb( vec3 surf_pos, vec3 surf_norm, vec2 dHdxy ) {\n\t\tvec3 vSigmaX = dFdx( surf_pos );\n\t\tvec3 vSigmaY = dFdy( surf_pos );\n\t\tvec3 vN = surf_norm;\n\t\tvec3 R1 = cross( vSigmaY, vN );\n\t\tvec3 R2 = cross( vN, vSigmaX );\n\t\tfloat fDet = dot( vSigmaX, R1 );\n\t\tvec3 vGrad = sign( fDet ) * ( dHdxy.x * R1 + dHdxy.y * R2 );\n\t\treturn normalize( abs( fDet ) * surf_norm - vGrad );\n\t}\n#endif\n",zt.ShaderChunk.clipping_planes_fragment="#if NUM_CLIPPING_PLANES > 0\n\tfor ( int i = 0; i < NUM_CLIPPING_PLANES; ++ i ) {\n\t\tvec4 plane = clippingPlanes[ i ];\n\t\tif ( dot( vViewPosition, plane.xyz ) > plane.w ) discard;\n\t}\n#endif\n",zt.ShaderChunk.clipping_planes_pars_fragment="#if NUM_CLIPPING_PLANES > 0\n\t#if ! defined( PHYSICAL ) && ! defined( PHONG )\n\t\tvarying vec3 vViewPosition;\n\t#endif\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif\n",zt.ShaderChunk.clipping_planes_pars_vertex="#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\n\tvarying vec3 vViewPosition;\n#endif\n",zt.ShaderChunk.clipping_planes_vertex="#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n",zt.ShaderChunk.color_fragment="#ifdef USE_COLOR\n\tdiffuseColor.rgb *= vColor;\n#endif",zt.ShaderChunk.color_pars_fragment="#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif\n",zt.ShaderChunk.color_pars_vertex="#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif",zt.ShaderChunk.color_vertex="#ifdef USE_COLOR\n\tvColor.xyz = color.xyz;\n#endif",zt.ShaderChunk.common="#define PI 3.14159265359\n#define PI2 6.28318530718\n#define RECIPROCAL_PI 0.31830988618\n#define RECIPROCAL_PI2 0.15915494\n#define LOG2 1.442695\n#define EPSILON 1e-6\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#define whiteCompliment(a) ( 1.0 - saturate( a ) )\nfloat pow2( const in float 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 average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\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}\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};\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}\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\tfloat distance = dot( planeNormal, point - pointOnPlane );\n\treturn - distance * planeNormal + point;\n}\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn sign( dot( point - pointOnPlane, planeNormal ) );\n}\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\n}\n",zt.ShaderChunk.cube_uv_reflection_fragment="#ifdef ENVMAP_TYPE_CUBE_UV\n#define cubeUV_textureSize (1024.0)\nint getFaceFromDirection(vec3 direction) {\n\tvec3 absDirection = abs(direction);\n\tint face = -1;\n\tif( absDirection.x > absDirection.z ) {\n\t\tif(absDirection.x > absDirection.y )\n\t\t\tface = direction.x > 0.0 ? 0 : 3;\n\t\telse\n\t\t\tface = direction.y > 0.0 ? 1 : 4;\n\t}\n\telse {\n\t\tif(absDirection.z > absDirection.y )\n\t\t\tface = direction.z > 0.0 ? 2 : 5;\n\t\telse\n\t\t\tface = direction.y > 0.0 ? 1 : 4;\n\t}\n\treturn face;\n}\n#define cubeUV_maxLods1  (log2(cubeUV_textureSize*0.25) - 1.0)\n#define cubeUV_rangeClamp (exp2((6.0 - 1.0) * 2.0))\nvec2 MipLevelInfo( vec3 vec, float roughnessLevel, float roughness ) {\n\tfloat scale = exp2(cubeUV_maxLods1 - roughnessLevel);\n\tfloat dxRoughness = dFdx(roughness);\n\tfloat dyRoughness = dFdy(roughness);\n\tvec3 dx = dFdx( vec * scale * dxRoughness );\n\tvec3 dy = dFdy( vec * scale * dyRoughness );\n\tfloat d = max( dot( dx, dx ), dot( dy, dy ) );\n\td = clamp(d, 1.0, cubeUV_rangeClamp);\n\tfloat mipLevel = 0.5 * log2(d);\n\treturn vec2(floor(mipLevel), fract(mipLevel));\n}\n#define cubeUV_maxLods2 (log2(cubeUV_textureSize*0.25) - 2.0)\n#define cubeUV_rcpTextureSize (1.0 / cubeUV_textureSize)\nvec2 getCubeUV(vec3 direction, float roughnessLevel, float mipLevel) {\n\tmipLevel = roughnessLevel > cubeUV_maxLods2 - 3.0 ? 0.0 : mipLevel;\n\tfloat a = 16.0 * cubeUV_rcpTextureSize;\n\tvec2 exp2_packed = exp2( vec2( roughnessLevel, mipLevel ) );\n\tvec2 rcp_exp2_packed = vec2( 1.0 ) / exp2_packed;\n\tfloat powScale = exp2_packed.x * exp2_packed.y;\n\tfloat scale = rcp_exp2_packed.x * rcp_exp2_packed.y * 0.25;\n\tfloat mipOffset = 0.75*(1.0 - rcp_exp2_packed.y) * rcp_exp2_packed.x;\n\tbool bRes = mipLevel == 0.0;\n\tscale =  bRes && (scale < a) ? a : scale;\n\tvec3 r;\n\tvec2 offset;\n\tint face = getFaceFromDirection(direction);\n\tfloat rcpPowScale = 1.0 / powScale;\n\tif( face == 0) {\n\t\tr = vec3(direction.x, -direction.z, direction.y);\n\t\toffset = vec2(0.0+mipOffset,0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ?  a : offset.y;\n\t}\n\telse if( face == 1) {\n\t\tr = vec3(direction.y, direction.x, direction.z);\n\t\toffset = vec2(scale+mipOffset, 0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ?  a : offset.y;\n\t}\n\telse if( face == 2) {\n\t\tr = vec3(direction.z, direction.x, direction.y);\n\t\toffset = vec2(2.0*scale+mipOffset, 0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ?  a : offset.y;\n\t}\n\telse if( face == 3) {\n\t\tr = vec3(direction.x, direction.z, direction.y);\n\t\toffset = vec2(0.0+mipOffset,0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ?  0.0 : offset.y;\n\t}\n\telse if( face == 4) {\n\t\tr = vec3(direction.y, direction.x, -direction.z);\n\t\toffset = vec2(scale+mipOffset, 0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ?  0.0 : offset.y;\n\t}\n\telse {\n\t\tr = vec3(direction.z, -direction.x, direction.y);\n\t\toffset = vec2(2.0*scale+mipOffset, 0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ?  0.0 : offset.y;\n\t}\n\tr = normalize(r);\n\tfloat texelOffset = 0.5 * cubeUV_rcpTextureSize;\n\tvec2 s = ( r.yz / abs( r.x ) + vec2( 1.0 ) ) * 0.5;\n\tvec2 base = offset + vec2( texelOffset );\n\treturn base + s * ( scale - 2.0 * texelOffset );\n}\n#define cubeUV_maxLods3 (log2(cubeUV_textureSize*0.25) - 3.0)\nvec4 textureCubeUV(vec3 reflectedDirection, float roughness ) {\n\tfloat roughnessVal = roughness* cubeUV_maxLods3;\n\tfloat r1 = floor(roughnessVal);\n\tfloat r2 = r1 + 1.0;\n\tfloat t = fract(roughnessVal);\n\tvec2 mipInfo = MipLevelInfo(reflectedDirection, r1, roughness);\n\tfloat s = mipInfo.y;\n\tfloat level0 = mipInfo.x;\n\tfloat level1 = level0 + 1.0;\n\tlevel1 = level1 > 5.0 ? 5.0 : level1;\n\tlevel0 += min( floor( s + 0.5 ), 5.0 );\n\tvec2 uv_10 = getCubeUV(reflectedDirection, r1, level0);\n\tvec4 color10 = envMapTexelToLinear(texture2D(envMap, uv_10));\n\tvec2 uv_20 = getCubeUV(reflectedDirection, r2, level0);\n\tvec4 color20 = envMapTexelToLinear(texture2D(envMap, uv_20));\n\tvec4 result = mix(color10, color20, t);\n\treturn vec4(result.rgb, 1.0);\n}\n#endif\n",zt.ShaderChunk.defaultnormal_vertex="#ifdef FLIP_SIDED\n\tobjectNormal = -objectNormal;\n#endif\nvec3 transformedNormal = normalMatrix * objectNormal;\n",zt.ShaderChunk.displacementmap_vertex="#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normal * ( texture2D( displacementMap, uv ).x * displacementScale + displacementBias );\n#endif\n",zt.ShaderChunk.displacementmap_pars_vertex="#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif\n",zt.ShaderChunk.emissivemap_fragment="#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif\n",zt.ShaderChunk.emissivemap_pars_fragment="#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif\n",zt.ShaderChunk.encodings_pars_fragment="\nvec4 LinearToLinear( in vec4 value ) {\n  return value;\n}\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\n  return vec4( pow( value.xyz, vec3( gammaFactor ) ), value.w );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n  return vec4( pow( value.xyz, vec3( 1.0 / gammaFactor ) ), value.w );\n}\nvec4 sRGBToLinear( in vec4 value ) {\n  return vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.w );\n}\nvec4 LinearTosRGB( in vec4 value ) {\n  return 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.w );\n}\nvec4 RGBEToLinear( in vec4 value ) {\n  return vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\n}\nvec4 LinearToRGBE( in vec4 value ) {\n  float maxComponent = max( max( value.r, value.g ), value.b );\n  float fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\n  return vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\n}\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\n  return vec4( value.xyz * value.w * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n  float maxRGB = max( value.x, max( value.g, value.b ) );\n  float M      = clamp( maxRGB / maxRange, 0.0, 1.0 );\n  M            = ceil( M * 255.0 ) / 255.0;\n  return vec4( value.rgb / ( M * maxRange ), M );\n}\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\n    return vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\n}\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\n    float maxRGB = max( value.x, max( value.g, value.b ) );\n    float D      = max( maxRange / maxRGB, 1.0 );\n    D            = min( floor( D ) / 255.0, 1.0 );\n    return vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\n}\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\nvec4 LinearToLogLuv( in vec4 value )  {\n  vec3 Xp_Y_XYZp = value.rgb * cLogLuvM;\n  Xp_Y_XYZp = max(Xp_Y_XYZp, vec3(1e-6, 1e-6, 1e-6));\n  vec4 vResult;\n  vResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\n  float Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\n  vResult.w = fract(Le);\n  vResult.z = (Le - (floor(vResult.w*255.0))/255.0)/255.0;\n  return vResult;\n}\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\nvec4 LogLuvToLinear( in vec4 value ) {\n  float Le = value.z * 255.0 + value.w;\n  vec3 Xp_Y_XYZp;\n  Xp_Y_XYZp.y = exp2((Le - 127.0) / 2.0);\n  Xp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\n  Xp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\n  vec3 vRGB = Xp_Y_XYZp.rgb * cLogLuvInverseM;\n  return vec4( max(vRGB, 0.0), 1.0 );\n}\n",zt.ShaderChunk.encodings_fragment="  gl_FragColor = linearToOutputTexel( gl_FragColor );\n",zt.ShaderChunk.envmap_fragment="#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvec3 cameraToVertex = normalize( vWorldPosition - cameraPosition );\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef DOUBLE_SIDED\n\t\tfloat flipNormal = ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t#else\n\t\tfloat flipNormal = 1.0;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, flipNormal * vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\tvec2 sampleUV;\n\t\tsampleUV.y = saturate( flipNormal * reflectVec.y * 0.5 + 0.5 );\n\t\tsampleUV.x = atan( flipNormal * reflectVec.z, flipNormal * reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\n\t\tvec4 envColor = texture2D( envMap, sampleUV );\n\t#elif defined( ENVMAP_TYPE_SPHERE )\n\t\tvec3 reflectView = flipNormal * normalize((viewMatrix * vec4( reflectVec, 0.0 )).xyz + vec3(0.0,0.0,1.0));\n\t\tvec4 envColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5 );\n\t#endif\n\tenvColor = envMapTexelToLinear( envColor );\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\n",zt.ShaderChunk.envmap_pars_fragment="#if defined( USE_ENVMAP ) || defined( PHYSICAL )\n\tuniform float reflectivity;\n\tuniform float envMapIntenstiy;\n#endif\n#ifdef USE_ENVMAP\n\t#if ! defined( PHYSICAL ) && ( defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) )\n\t\tvarying vec3 vWorldPosition;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\tuniform float flipEnvMap;\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) || defined( PHYSICAL )\n\t\tuniform float refractionRatio;\n\t#else\n\t\tvarying vec3 vReflect;\n\t#endif\n#endif\n",zt.ShaderChunk.envmap_pars_vertex="#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif\n",zt.ShaderChunk.envmap_vertex="#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvWorldPosition = worldPosition.xyz;\n\t#else\n\t\tvec3 cameraToVertex = normalize( worldPosition.xyz - cameraPosition );\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\n",zt.ShaderChunk.fog_fragment="#ifdef USE_FOG\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tfloat depth = gl_FragDepthEXT / gl_FragCoord.w;\n\t#else\n\t\tfloat depth = gl_FragCoord.z / gl_FragCoord.w;\n\t#endif\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = whiteCompliment( exp2( - fogDensity * fogDensity * depth * depth * LOG2 ) );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, depth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif\n",zt.ShaderChunk.fog_pars_fragment="#ifdef USE_FOG\n\tuniform vec3 fogColor;\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",zt.ShaderChunk.lightmap_fragment="#ifdef USE_LIGHTMAP\n\treflectedLight.indirectDiffuse += PI * texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n#endif\n",zt.ShaderChunk.lightmap_pars_fragment="#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",zt.ShaderChunk.lights_lambert_vertex="vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\n#if NUM_POINT_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tgetPointDirectLightIrradiance( pointLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n#endif\n#if NUM_SPOT_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tgetSpotDirectLightIrradiance( spotLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n#endif\n#if NUM_DIR_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tgetDirectionalDirectLightIrradiance( directionalLights[ i ], geometry, directLight );\n\t\tdotNL = dot( geometry.normal, directLight.direction );\n\t\tdirectLightColor_Diffuse = PI * directLight.color;\n\t\tvLightFront += saturate( dotNL ) * directLightColor_Diffuse;\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += saturate( -dotNL ) * directLightColor_Diffuse;\n\t\t#endif\n\t}\n#endif\n#if NUM_HEMI_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvLightFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n#endif\n",zt.ShaderChunk.lights_pars="uniform vec3 ambientLightColor;\nvec3 getAmbientLightIrradiance( const in vec3 ambientLightColor ) {\n\tvec3 irradiance = ambientLightColor;\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treturn irradiance;\n}\n#if NUM_DIR_LIGHTS > 0\n\tstruct DirectionalLight {\n\t\tvec3 direction;\n\t\tvec3 color;\n\t\tint shadow;\n\t\tfloat shadowBias;\n\t\tfloat shadowRadius;\n\t\tvec2 shadowMapSize;\n\t};\n\tuniform DirectionalLight directionalLights[ NUM_DIR_LIGHTS ];\n\tvoid getDirectionalDirectLightIrradiance( const in DirectionalLight directionalLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tdirectLight.color = directionalLight.color;\n\t\tdirectLight.direction = directionalLight.direction;\n\t\tdirectLight.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\tint shadow;\n\t\tfloat shadowBias;\n\t\tfloat shadowRadius;\n\t\tvec2 shadowMapSize;\n\t};\n\tuniform PointLight pointLights[ NUM_POINT_LIGHTS ];\n\tvoid getPointDirectLightIrradiance( const in PointLight pointLight, const in GeometricContext geometry, out IncidentLight directLight ) {\n\t\tvec3 lVector = pointLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tif ( testLightInRange( lightDistance, pointLight.distance ) ) {\n\t\t\tdirectLight.color = pointLight.color;\n\t\t\tdirectLight.color *= punctualLightIntensityToIrradianceFactor( lightDistance, pointLight.distance, pointLight.decay );\n\t\t\tdirectLight.visible = true;\n\t\t} else {\n\t\t\tdirectLight.color = vec3( 0.0 );\n\t\t\tdirectLight.visible = false;\n\t\t}\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\tint shadow;\n\t\tfloat shadowBias;\n\t\tfloat shadowRadius;\n\t\tvec2 shadowMapSize;\n\t};\n\tuniform SpotLight spotLights[ NUM_SPOT_LIGHTS ];\n\tvoid getSpotDirectLightIrradiance( const in SpotLight spotLight, const in GeometricContext geometry, out IncidentLight directLight  ) {\n\t\tvec3 lVector = spotLight.position - geometry.position;\n\t\tdirectLight.direction = normalize( lVector );\n\t\tfloat lightDistance = length( lVector );\n\t\tfloat angleCos = dot( directLight.direction, spotLight.direction );\n\t\tif ( all( bvec2( angleCos > spotLight.coneCos, testLightInRange( lightDistance, spotLight.distance ) ) ) ) {\n\t\t\tfloat spotEffect = smoothstep( spotLight.coneCos, spotLight.penumbraCos, angleCos );\n\t\t\tdirectLight.color = spotLight.color;\n\t\t\tdirectLight.color *= spotEffect * punctualLightIntensityToIrradianceFactor( lightDistance, spotLight.distance, spotLight.decay );\n\t\t\tdirectLight.visible = true;\n\t\t} else {\n\t\t\tdirectLight.color = vec3( 0.0 );\n\t\t\tdirectLight.visible = false;\n\t\t}\n\t}\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 GeometricContext geometry ) {\n\t\tfloat dotNL = dot( geometry.normal, hemiLight.direction );\n\t\tfloat hemiDiffuseWeight = 0.5 * dotNL + 0.5;\n\t\tvec3 irradiance = mix( hemiLight.groundColor, hemiLight.skyColor, hemiDiffuseWeight );\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tirradiance *= PI;\n\t\t#endif\n\t\treturn irradiance;\n\t}\n#endif\n#if defined( USE_ENVMAP ) && defined( PHYSICAL )\n\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tfloat flipNormal = ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t#else\n\t\t\tfloat flipNormal = 1.0;\n\t\t#endif\n\t\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryVec = flipNormal * vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 queryVec = flipNormal * vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\tvec4 envMapColor = textureCubeUV( queryVec, 1.0 );\n\t\t#else\n\t\t\tvec4 envMapColor = vec4( 0.0 );\n\t\t#endif\n\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t}\n\tfloat getSpecularMIPLevel( const in float blinnShininessExponent, const in int maxMIPLevel ) {\n\t\tfloat maxMIPLevelScalar = float( maxMIPLevel );\n\t\tfloat desiredMIPLevel = maxMIPLevelScalar - 0.79248 - 0.5 * log2( pow2( blinnShininessExponent ) + 1.0 );\n\t\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\n\t}\n\tvec3 getLightProbeIndirectRadiance( const in GeometricContext geometry, const in float blinnShininessExponent, const in int maxMIPLevel ) {\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( -geometry.viewDir, geometry.normal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( -geometry.viewDir, geometry.normal, refractionRatio );\n\t\t#endif\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tfloat flipNormal = ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t#else\n\t\t\tfloat flipNormal = 1.0;\n\t\t#endif\n\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\tfloat specularMIPLevel = getSpecularMIPLevel( blinnShininessExponent, maxMIPLevel );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryReflectVec = flipNormal * vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 queryReflectVec = flipNormal * vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\tvec4 envMapColor = textureCubeUV(queryReflectVec, BlinnExponentToGGXRoughness(blinnShininessExponent));\n\t\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\t\tvec2 sampleUV;\n\t\t\tsampleUV.y = saturate( flipNormal * reflectVec.y * 0.5 + 0.5 );\n\t\t\tsampleUV.x = atan( flipNormal * reflectVec.z, flipNormal * reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = texture2DLodEXT( envMap, sampleUV, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = texture2D( envMap, sampleUV, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_SPHERE )\n\t\t\tvec3 reflectView = flipNormal * normalize((viewMatrix * vec4( reflectVec, 0.0 )).xyz + vec3(0.0,0.0,1.0));\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = texture2DLodEXT( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#endif\n\t\treturn envMapColor.rgb * envMapIntensity;\n\t}\n#endif\n",zt.ShaderChunk.lights_phong_fragment="BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;\n",zt.ShaderChunk.lights_phong_pars_fragment="varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct BlinnPhongMaterial {\n\tvec3\tdiffuseColor;\n\tvec3\tspecularColor;\n\tfloat\tspecularShininess;\n\tfloat\tspecularStrength;\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\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, 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_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)\n",zt.ShaderChunk.lights_physical_fragment="PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nmaterial.specularRoughness = clamp( roughnessFactor, 0.04, 1.0 );\n#ifdef STANDARD\n\tmaterial.specularColor = mix( vec3( 0.04 ), diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( 0.16 * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\n#endif\n",zt.ShaderChunk.lights_physical_pars_fragment="struct PhysicalMaterial {\n\tvec3\tdiffuseColor;\n\tfloat\tspecularRoughness;\n\tvec3\tspecularColor;\n\t#ifndef STANDARD\n\t#endif\n};\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#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_GGX( directLight, geometry, material.specularColor, material.specularRoughness );\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_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectSpecular += radiance * BRDF_Specular_GGX_Environment( geometry, material.specularColor, material.specularRoughness );\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\n#define Material_BlinnShininessExponent( material )   GGXRoughnessToBlinnExponent( material.specularRoughness )\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}\n",zt.ShaderChunk.lights_template="\nGeometricContext geometry;\ngeometry.position = - vViewPosition;\ngeometry.normal = normal;\ngeometry.viewDir = normalize( vViewPosition );\nIncidentLight directLight;\n#if ( NUM_POINT_LIGHTS > 0 ) && defined( RE_Direct )\n\tPointLight pointLight;\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tgetPointDirectLightIrradiance( pointLight, geometry, directLight );\n\t\t#ifdef USE_SHADOWMAP\n\t\tdirectLight.color *= all( bvec2( pointLight.shadow, directLight.visible ) ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if ( NUM_SPOT_LIGHTS > 0 ) && defined( RE_Direct )\n\tSpotLight spotLight;\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tgetSpotDirectLightIrradiance( spotLight, geometry, directLight );\n\t\t#ifdef USE_SHADOWMAP\n\t\tdirectLight.color *= all( bvec2( spotLight.shadow, directLight.visible ) ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if ( NUM_DIR_LIGHTS > 0 ) && defined( RE_Direct )\n\tDirectionalLight directionalLight;\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tgetDirectionalDirectLightIrradiance( directionalLight, geometry, directLight );\n\t\t#ifdef USE_SHADOWMAP\n\t\tdirectLight.color *= all( bvec2( directionalLight.shadow, directLight.visible ) ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t\t#endif\n\t\tRE_Direct( directLight, geometry, material, reflectedLight );\n\t}\n#endif\n#if defined( RE_IndirectDiffuse )\n\tvec3 irradiance = getAmbientLightIrradiance( ambientLightColor );\n\t#ifdef USE_LIGHTMAP\n\t\tvec3 lightMapIrradiance = texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n\t\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\t\tlightMapIrradiance *= PI;\n\t\t#endif\n\t\tirradiance += lightMapIrradiance;\n\t#endif\n\t#if ( NUM_HEMI_LIGHTS > 0 )\n\t\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\t\tirradiance += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t}\n\t#endif\n\t#if defined( USE_ENVMAP ) && defined( PHYSICAL ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t \tirradiance += getLightProbeIndirectIrradiance( geometry, 8 );\n\t#endif\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tvec3 radiance = getLightProbeIndirectRadiance( geometry, Material_BlinnShininessExponent( material ), 8 );\n\tRE_IndirectSpecular( radiance, geometry, material, reflectedLight );\n#endif\n",zt.ShaderChunk.logdepthbuf_fragment="#if defined(USE_LOGDEPTHBUF) && defined(USE_LOGDEPTHBUF_EXT)\n\tgl_FragDepthEXT = log2(vFragDepth) * logDepthBufFC * 0.5;\n#endif",zt.ShaderChunk.logdepthbuf_pars_fragment="#ifdef USE_LOGDEPTHBUF\n\tuniform float logDepthBufFC;\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#endif\n#endif\n",zt.ShaderChunk.logdepthbuf_pars_vertex="#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#endif\n\tuniform float logDepthBufFC;\n#endif",zt.ShaderChunk.logdepthbuf_vertex="#ifdef USE_LOGDEPTHBUF\n\tgl_Position.z = log2(max( EPSILON, gl_Position.w + 1.0 )) * logDepthBufFC;\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t#else\n\t\tgl_Position.z = (gl_Position.z - 1.0) * gl_Position.w;\n\t#endif\n#endif\n",zt.ShaderChunk.map_fragment="#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif\n",zt.ShaderChunk.map_pars_fragment="#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n",zt.ShaderChunk.map_particle_fragment="#ifdef USE_MAP\n\tvec4 mapTexel = texture2D( map, vec2( gl_PointCoord.x, 1.0 - gl_PointCoord.y ) * offsetRepeat.zw + offsetRepeat.xy );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif\n",zt.ShaderChunk.map_particle_pars_fragment="#ifdef USE_MAP\n\tuniform vec4 offsetRepeat;\n\tuniform sampler2D map;\n#endif\n",zt.ShaderChunk.metalnessmap_fragment="float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.r;\n#endif\n",zt.ShaderChunk.metalnessmap_pars_fragment="#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",zt.ShaderChunk.morphnormal_vertex="#ifdef USE_MORPHNORMALS\n\tobjectNormal += ( morphNormal0 - normal ) * morphTargetInfluences[ 0 ];\n\tobjectNormal += ( morphNormal1 - normal ) * morphTargetInfluences[ 1 ];\n\tobjectNormal += ( morphNormal2 - normal ) * morphTargetInfluences[ 2 ];\n\tobjectNormal += ( morphNormal3 - normal ) * morphTargetInfluences[ 3 ];\n#endif\n",zt.ShaderChunk.morphtarget_pars_vertex="#ifdef USE_MORPHTARGETS\n\t#ifndef USE_MORPHNORMALS\n\tuniform float morphTargetInfluences[ 8 ];\n\t#else\n\tuniform float morphTargetInfluences[ 4 ];\n\t#endif\n#endif",zt.ShaderChunk.morphtarget_vertex="#ifdef USE_MORPHTARGETS\n\ttransformed += ( morphTarget0 - position ) * morphTargetInfluences[ 0 ];\n\ttransformed += ( morphTarget1 - position ) * morphTargetInfluences[ 1 ];\n\ttransformed += ( morphTarget2 - position ) * morphTargetInfluences[ 2 ];\n\ttransformed += ( morphTarget3 - position ) * morphTargetInfluences[ 3 ];\n\t#ifndef USE_MORPHNORMALS\n\ttransformed += ( morphTarget4 - position ) * morphTargetInfluences[ 4 ];\n\ttransformed += ( morphTarget5 - position ) * morphTargetInfluences[ 5 ];\n\ttransformed += ( morphTarget6 - position ) * morphTargetInfluences[ 6 ];\n\ttransformed += ( morphTarget7 - position ) * morphTargetInfluences[ 7 ];\n\t#endif\n#endif\n",zt.ShaderChunk.normal_fragment="#ifdef FLAT_SHADED\n\tvec3 fdx = vec3( dFdx( vViewPosition.x ), dFdx( vViewPosition.y ), dFdx( vViewPosition.z ) );\n\tvec3 fdy = vec3( dFdy( vViewPosition.x ), dFdy( vViewPosition.y ), dFdy( vViewPosition.z ) );\n\tvec3 normal = normalize( cross( fdx, fdy ) );\n#else\n\tvec3 normal = normalize( vNormal );\n\t#ifdef DOUBLE_SIDED\n\t\tnormal = normal * ( -1.0 + 2.0 * float( gl_FrontFacing ) );\n\t#endif\n#endif\n#ifdef USE_NORMALMAP\n\tnormal = perturbNormal2Arb( -vViewPosition, normal );\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\n#endif\n",zt.ShaderChunk.normalmap_pars_fragment="#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm ) {\n\t\tvec3 q0 = dFdx( eye_pos.xyz );\n\t\tvec3 q1 = dFdy( eye_pos.xyz );\n\t\tvec2 st0 = dFdx( vUv.st );\n\t\tvec2 st1 = dFdy( vUv.st );\n\t\tvec3 S = normalize( q0 * st1.t - q1 * st0.t );\n\t\tvec3 T = normalize( -q0 * st1.s + q1 * st0.s );\n\t\tvec3 N = normalize( surf_norm );\n\t\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t\tmapN.xy = normalScale * mapN.xy;\n\t\tmat3 tsn = mat3( S, T, N );\n\t\treturn normalize( tsn * mapN );\n\t}\n#endif\n",zt.ShaderChunk.packing="vec3 packNormalToRGB( const in vec3 normal ) {\n  return normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n  return 1.0 - 2.0 * rgb.xyz;\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}\nfloat viewZToOrthoDepth( const in float viewZ, const in float near, const in float far ) {\n  return ( viewZ + near ) / ( near - far );\n}\nfloat OrthoDepthToViewZ( const in float linearClipZ, const in float near, const in float far ) {\n  return linearClipZ * ( near - far ) - near;\n}\nfloat viewZToPerspectiveDepth( const in float viewZ, const in float near, const in float far ) {\n  return (( near + viewZ ) * far ) / (( far - near ) * viewZ );\n}\nfloat perspectiveDepthToViewZ( const in float invClipZ, const in float near, const in float far ) {\n  return ( near * far ) / ( ( far - near ) * invClipZ - far );\n}\n",zt.ShaderChunk.premultiplied_alpha_fragment="#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif\n",zt.ShaderChunk.project_vertex="#ifdef USE_SKINNING\n\tvec4 mvPosition = modelViewMatrix * skinned;\n#else\n\tvec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 );\n#endif\ngl_Position = projectionMatrix * mvPosition;\n",zt.ShaderChunk.roughnessmap_fragment="float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.r;\n#endif\n",zt.ShaderChunk.roughnessmap_pars_fragment="#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",zt.ShaderChunk.shadowmap_pars_fragment="#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHTS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHTS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHTS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tfloat texture2DShadowLerp( sampler2D depths, vec2 size, vec2 uv, float compare ) {\n\t\tconst vec2 offset = vec2( 0.0, 1.0 );\n\t\tvec2 texelSize = vec2( 1.0 ) / size;\n\t\tvec2 centroidUV = floor( uv * size + 0.5 ) / size;\n\t\tfloat lb = texture2DCompare( depths, centroidUV + texelSize * offset.xx, compare );\n\t\tfloat lt = texture2DCompare( depths, centroidUV + texelSize * offset.xy, compare );\n\t\tfloat rb = texture2DCompare( depths, centroidUV + texelSize * offset.yx, compare );\n\t\tfloat rt = texture2DCompare( depths, centroidUV + texelSize * offset.yy, compare );\n\t\tvec2 f = fract( uv * size + 0.5 );\n\t\tfloat a = mix( lb, lt, f.y );\n\t\tfloat b = mix( rb, rt, f.y );\n\t\tfloat c = mix( a, b, f.x );\n\t\treturn c;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\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\treturn (\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( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, 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( 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 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\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\treturn (\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn 1.0;\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 ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\tfloat dp = ( length( lightToPosition ) - shadowBias ) / 1000.0;\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT )\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\n",zt.ShaderChunk.shadowmap_pars_vertex="#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHTS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHTS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHTS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\n\t#endif\n#endif\n",zt.ShaderChunk.shadowmap_vertex="#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tvDirectionalShadowCoord[ i ] = directionalShadowMatrix[ i ] * worldPosition;\n\t}\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tvSpotShadowCoord[ i ] = spotShadowMatrix[ i ] * worldPosition;\n\t}\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * worldPosition;\n\t}\n\t#endif\n#endif\n",zt.ShaderChunk.shadowmask_pars_fragment="float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\tDirectionalLight directionalLight;\n\tfor ( int i = 0; i < NUM_DIR_LIGHTS; i ++ ) {\n\t\tdirectionalLight = directionalLights[ i ];\n\t\tshadow *= bool( directionalLight.shadow ) ? getShadow( directionalShadowMap[ i ], directionalLight.shadowMapSize, directionalLight.shadowBias, directionalLight.shadowRadius, vDirectionalShadowCoord[ i ] ) : 1.0;\n\t}\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\tSpotLight spotLight;\n\tfor ( int i = 0; i < NUM_SPOT_LIGHTS; i ++ ) {\n\t\tspotLight = spotLights[ i ];\n\t\tshadow *= bool( spotLight.shadow ) ? getShadow( spotShadowMap[ i ], spotLight.shadowMapSize, spotLight.shadowBias, spotLight.shadowRadius, vSpotShadowCoord[ i ] ) : 1.0;\n\t}\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\tPointLight pointLight;\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tpointLight = pointLights[ i ];\n\t\tshadow *= bool( pointLight.shadow ) ? getPointShadow( pointShadowMap[ i ], pointLight.shadowMapSize, pointLight.shadowBias, pointLight.shadowRadius, vPointShadowCoord[ i ] ) : 1.0;\n\t}\n\t#endif\n\t#endif\n\treturn shadow;\n}\n",zt.ShaderChunk.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",zt.ShaderChunk.skinning_pars_vertex="#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform sampler2D boneTexture;\n\t\tuniform int boneTextureWidth;\n\t\tuniform int boneTextureHeight;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureWidth ) );\n\t\t\tfloat y = floor( j / float( boneTextureWidth ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureWidth );\n\t\t\tfloat dy = 1.0 / float( boneTextureHeight );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif\n",zt.ShaderChunk.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\tskinned  = bindMatrixInverse * skinned;\n#endif\n",zt.ShaderChunk.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#endif\n",zt.ShaderChunk.specularmap_fragment="float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",zt.ShaderChunk.specularmap_pars_fragment="#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",zt.ShaderChunk.tonemapping_fragment="#if defined( TONE_MAPPING )\n  gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif\n",zt.ShaderChunk.tonemapping_pars_fragment="#define saturate(a) clamp( a, 0.0, 1.0 )\nuniform float toneMappingExposure;\nuniform float toneMappingWhitePoint;\nvec3 LinearToneMapping( vec3 color ) {\n  return toneMappingExposure * color;\n}\nvec3 ReinhardToneMapping( vec3 color ) {\n  color *= toneMappingExposure;\n  return saturate( color / ( vec3( 1.0 ) + color ) );\n}\n#define Uncharted2Helper( x ) max( ( ( x * ( 0.15 * x + 0.10 * 0.50 ) + 0.20 * 0.02 ) / ( x * ( 0.15 * x + 0.50 ) + 0.20 * 0.30 ) ) - 0.02 / 0.30, vec3( 0.0 ) )\nvec3 Uncharted2ToneMapping( vec3 color ) {\n  color *= toneMappingExposure;\n  return saturate( Uncharted2Helper( color ) / Uncharted2Helper( vec3( toneMappingWhitePoint ) ) );\n}\nvec3 OptimizedCineonToneMapping( vec3 color ) {\n  color *= toneMappingExposure;\n  color = max( vec3( 0.0 ), color - 0.004 );\n  return pow( ( color * ( 6.2 * color + 0.5 ) ) / ( color * ( 6.2 * color + 1.7 ) + 0.06 ), vec3( 2.2 ) );\n}\n",zt.ShaderChunk.uv2_pars_fragment="#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvarying vec2 vUv2;\n#endif",zt.ShaderChunk.uv2_pars_vertex="#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tattribute vec2 uv2;\n\tvarying vec2 vUv2;\n#endif",zt.ShaderChunk.uv2_vertex="#if defined( USE_LIGHTMAP ) || defined( USE_AOMAP )\n\tvUv2 = uv2;\n#endif",zt.ShaderChunk.uv_pars_fragment="#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvarying vec2 vUv;\n#endif",zt.ShaderChunk.uv_pars_vertex="#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvarying vec2 vUv;\n\tuniform vec4 offsetRepeat;\n#endif\n",zt.ShaderChunk.uv_vertex="#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvUv = uv * offsetRepeat.zw + offsetRepeat.xy;\n#endif",zt.ShaderChunk.worldpos_vertex="#if defined( USE_ENVMAP ) || defined( PHONG ) || defined( PHYSICAL ) || defined( LAMBERT ) || defined ( USE_SHADOWMAP )\n\t#ifdef USE_SKINNING\n\t\tvec4 worldPosition = modelMatrix * skinned;\n\t#else\n\t\tvec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );\n\t#endif\n#endif\n",zt.UniformsUtils={merge:function(t){for(var e={},n=0;n<t.length;n++){var i,r=this.clone(t[n]);for(i in r)e[i]=r[i]}return e},clone:function(t){var e,n={};for(e in t)for(var i in n[e]={},t[e]){var r=t[e][i];r instanceof zt.Color||r instanceof zt.Vector2||r instanceof zt.Vector3||r instanceof zt.Vector4||r instanceof zt.Matrix3||r instanceof zt.Matrix4||r instanceof zt.Texture?n[e][i]=r.clone():Array.isArray(r)?n[e][i]=r.slice():n[e][i]=r}return n}},zt.UniformsLib={common:{diffuse:{type:"c",value:new zt.Color(15658734)},opacity:{type:"1f",value:1},map:{type:"t",value:null},offsetRepeat:{type:"v4",value:new zt.Vector4(0,0,1,1)},specularMap:{type:"t",value:null},alphaMap:{type:"t",value:null},envMap:{type:"t",value:null},flipEnvMap:{type:"1f",value:-1},reflectivity:{type:"1f",value:1},refractionRatio:{type:"1f",value:.98}},aomap:{aoMap:{type:"t",value:null},aoMapIntensity:{type:"1f",value:1}},lightmap:{lightMap:{type:"t",value:null},lightMapIntensity:{type:"1f",value:1}},emissivemap:{emissiveMap:{type:"t",value:null}},bumpmap:{bumpMap:{type:"t",value:null},bumpScale:{type:"1f",value:1}},normalmap:{normalMap:{type:"t",value:null},normalScale:{type:"v2",value:new zt.Vector2(1,1)}},displacementmap:{displacementMap:{type:"t",value:null},displacementScale:{type:"1f",value:1},displacementBias:{type:"1f",value:0}},roughnessmap:{roughnessMap:{type:"t",value:null}},metalnessmap:{metalnessMap:{type:"t",value:null}},fog:{fogDensity:{type:"1f",value:25e-5},fogNear:{type:"1f",value:1},fogFar:{type:"1f",value:2e3},fogColor:{type:"c",value:new zt.Color(16777215)}},lights:{ambientLightColor:{type:"3fv",value:[]},directionalLights:{type:"sa",value:[],properties:{direction:{type:"v3"},color:{type:"c"},shadow:{type:"1i"},shadowBias:{type:"1f"},shadowRadius:{type:"1f"},shadowMapSize:{type:"v2"}}},directionalShadowMap:{type:"tv",value:[]},directionalShadowMatrix:{type:"m4v",value:[]},spotLights:{type:"sa",value:[],properties:{color:{type:"c"},position:{type:"v3"},direction:{type:"v3"},distance:{type:"1f"},coneCos:{type:"1f"},penumbraCos:{type:"1f"},decay:{type:"1f"},shadow:{type:"1i"},shadowBias:{type:"1f"},shadowRadius:{type:"1f"},shadowMapSize:{type:"v2"}}},spotShadowMap:{type:"tv",value:[]},spotShadowMatrix:{type:"m4v",value:[]},pointLights:{type:"sa",value:[],properties:{color:{type:"c"},position:{type:"v3"},decay:{type:"1f"},distance:{type:"1f"},shadow:{type:"1i"},shadowBias:{type:"1f"},shadowRadius:{type:"1f"},shadowMapSize:{type:"v2"}}},pointShadowMap:{type:"tv",value:[]},pointShadowMatrix:{type:"m4v",value:[]},hemisphereLights:{type:"sa",value:[],properties:{direction:{type:"v3"},skyColor:{type:"c"},groundColor:{type:"c"}}}},points:{diffuse:{type:"c",value:new zt.Color(15658734)},opacity:{type:"1f",value:1},size:{type:"1f",value:1},scale:{type:"1f",value:1},map:{type:"t",value:null},offsetRepeat:{type:"v4",value:new zt.Vector4(0,0,1,1)}}},zt.ShaderChunk.cube_frag="uniform samplerCube tCube;\nuniform float tFlip;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tgl_FragColor = textureCube( tCube, vec3( tFlip * vWorldPosition.x, vWorldPosition.yz ) );\n\t#include <logdepthbuf_fragment>\n}\n",zt.ShaderChunk.cube_vert="varying vec3 vWorldPosition;\n#include <common>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n}\n",zt.ShaderChunk.depth_frag="#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( gl_FragCoord.z ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( gl_FragCoord.z );\n\t#endif\n}\n",zt.ShaderChunk.depth_vert="#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#include <begin_vertex>\n\t#include <displacementmap_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n}\n",zt.ShaderChunk.distanceRGBA_frag="uniform vec3 lightPos;\nvarying vec4 vWorldPosition;\n#include <common>\n#include <packing>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tgl_FragColor = packDepthToRGBA( length( vWorldPosition.xyz - lightPos.xyz ) / 1000.0 );\n}\n",zt.ShaderChunk.distanceRGBA_vert="varying vec4 vWorldPosition;\n#include <common>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <skinbase_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition;\n}\n",zt.ShaderChunk.equirect_frag="uniform sampler2D tEquirect;\nuniform float tFlip;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 direction = normalize( vWorldPosition );\n\tvec2 sampleUV;\n\tsampleUV.y = saturate( tFlip * direction.y * -0.5 + 0.5 );\n\tsampleUV.x = atan( direction.z, direction.x ) * RECIPROCAL_PI2 + 0.5;\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n\t#include <logdepthbuf_fragment>\n}\n",zt.ShaderChunk.equirect_vert="varying vec3 vWorldPosition;\n#include <common>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n}\n",zt.ShaderChunk.linedashed_frag="uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\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 <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",zt.ShaderChunk.linedashed_vert="uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\tvLineDistance = scale * lineDistance;\n\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n}\n",zt.ShaderChunk.meshbasic_frag="uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight;\n\treflectedLight.directDiffuse = vec3( 0.0 );\n\treflectedLight.directSpecular = vec3( 0.0 );\n\treflectedLight.indirectDiffuse = diffuseColor.rgb;\n\treflectedLight.indirectSpecular = vec3( 0.0 );\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",zt.ShaderChunk.meshbasic_vert="#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_ENVMAP\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <envmap_vertex>\n}\n",zt.ShaderChunk.meshlambert_frag="uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n#endif\n#include <common>\n#include <packing>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <bsdfs>\n#include <lights_pars>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\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 <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <emissivemap_fragment>\n\treflectedLight.indirectDiffuse = getAmbientLightIrradiance( ambientLightColor );\n\t#include <lightmap_fragment>\n\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",zt.ShaderChunk.meshlambert_vert="#define LAMBERT\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars>\n#include <color_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <lights_lambert_vertex>\n\t#include <shadowmap_vertex>\n}\n",zt.ShaderChunk.meshphong_frag="#define PHONG\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform vec3 specular;\nuniform float shininess;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars>\n#include <lights_phong_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\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 <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <normal_fragment>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_template>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",zt.ShaderChunk.meshphong_vert="#define PHONG\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <displacementmap_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n}\n",zt.ShaderChunk.meshphysical_frag="#define PHYSICAL\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\nuniform float envMapIntensity;\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <packing>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <lights_pars>\n#include <lights_physical_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <roughnessmap_pars_fragment>\n#include <metalnessmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\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 <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\t#include <roughnessmap_fragment>\n\t#include <metalnessmap_fragment>\n\t#include <normal_fragment>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_template>\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + reflectedLight.directSpecular + reflectedLight.indirectSpecular + totalEmissiveRadiance;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",zt.ShaderChunk.meshphysical_vert="#define PHYSICAL\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <displacementmap_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n}\n",zt.ShaderChunk.normal_frag="uniform float opacity;\nvarying vec3 vNormal;\n#include <common>\n#include <packing>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tgl_FragColor = vec4( packNormalToRGB( vNormal ), opacity );\n\t#include <logdepthbuf_fragment>\n}\n",zt.ShaderChunk.normal_vert="varying vec3 vNormal;\n#include <common>\n#include <morphtarget_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\tvNormal = normalize( normalMatrix * normal );\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n}\n",zt.ShaderChunk.points_frag="uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <fog_pars_fragment>\n#include <shadowmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",zt.ShaderChunk.points_vert="uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#ifdef USE_SIZEATTENUATION\n\t\tgl_PointSize = size * ( scale / - mvPosition.z );\n\t#else\n\t\tgl_PointSize = size;\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n}\n",zt.ShaderChunk.shadow_frag="uniform float opacity;\n#include <common>\n#include <packing>\n#include <bsdfs>\n#include <lights_pars>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( 0.0, 0.0, 0.0, opacity * ( 1.0  - getShadowMask() ) );\n}\n",zt.ShaderChunk.shadow_vert="#include <shadowmap_pars_vertex>\nvoid main() {\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n}\n",zt.ShaderLib={basic:{uniforms:zt.UniformsUtils.merge([zt.UniformsLib.common,zt.UniformsLib.aomap,zt.UniformsLib.fog]),vertexShader:zt.ShaderChunk.meshbasic_vert,fragmentShader:zt.ShaderChunk.meshbasic_frag},lambert:{uniforms:zt.UniformsUtils.merge([zt.UniformsLib.common,zt.UniformsLib.aomap,zt.UniformsLib.lightmap,zt.UniformsLib.emissivemap,zt.UniformsLib.fog,zt.UniformsLib.lights,{emissive:{type:"c",value:new zt.Color(0)}}]),vertexShader:zt.ShaderChunk.meshlambert_vert,fragmentShader:zt.ShaderChunk.meshlambert_frag},phong:{uniforms:zt.UniformsUtils.merge([zt.UniformsLib.common,zt.UniformsLib.aomap,zt.UniformsLib.lightmap,zt.UniformsLib.emissivemap,zt.UniformsLib.bumpmap,zt.UniformsLib.normalmap,zt.UniformsLib.displacementmap,zt.UniformsLib.fog,zt.UniformsLib.lights,{emissive:{type:"c",value:new zt.Color(0)},specular:{type:"c",value:new zt.Color(1118481)},shininess:{type:"1f",value:30}}]),vertexShader:zt.ShaderChunk.meshphong_vert,fragmentShader:zt.ShaderChunk.meshphong_frag},standard:{uniforms:zt.UniformsUtils.merge([zt.UniformsLib.common,zt.UniformsLib.aomap,zt.UniformsLib.lightmap,zt.UniformsLib.emissivemap,zt.UniformsLib.bumpmap,zt.UniformsLib.normalmap,zt.UniformsLib.displacementmap,zt.UniformsLib.roughnessmap,zt.UniformsLib.metalnessmap,zt.UniformsLib.fog,zt.UniformsLib.lights,{emissive:{type:"c",value:new zt.Color(0)},roughness:{type:"1f",value:.5},metalness:{type:"1f",value:0},envMapIntensity:{type:"1f",value:1}}]),vertexShader:zt.ShaderChunk.meshphysical_vert,fragmentShader:zt.ShaderChunk.meshphysical_frag},points:{uniforms:zt.UniformsUtils.merge([zt.UniformsLib.points,zt.UniformsLib.fog]),vertexShader:zt.ShaderChunk.points_vert,fragmentShader:zt.ShaderChunk.points_frag},dashed:{uniforms:zt.UniformsUtils.merge([zt.UniformsLib.common,zt.UniformsLib.fog,{scale:{type:"1f",value:1},dashSize:{type:"1f",value:1},totalSize:{type:"1f",value:2}}]),vertexShader:zt.ShaderChunk.linedashed_vert,fragmentShader:zt.ShaderChunk.linedashed_frag},depth:{uniforms:zt.UniformsUtils.merge([zt.UniformsLib.common,zt.UniformsLib.displacementmap]),vertexShader:zt.ShaderChunk.depth_vert,fragmentShader:zt.ShaderChunk.depth_frag},normal:{uniforms:{opacity:{type:"1f",value:1}},vertexShader:zt.ShaderChunk.normal_vert,fragmentShader:zt.ShaderChunk.normal_frag},cube:{uniforms:{tCube:{type:"t",value:null},tFlip:{type:"1f",value:-1}},vertexShader:zt.ShaderChunk.cube_vert,fragmentShader:zt.ShaderChunk.cube_frag},equirect:{uniforms:{tEquirect:{type:"t",value:null},tFlip:{type:"1f",value:-1}},vertexShader:zt.ShaderChunk.equirect_vert,fragmentShader:zt.ShaderChunk.equirect_frag},distanceRGBA:{uniforms:{lightPos:{type:"v3",value:new zt.Vector3}},vertexShader:zt.ShaderChunk.distanceRGBA_vert,fragmentShader:zt.ShaderChunk.distanceRGBA_frag}},zt.ShaderLib.physical={uniforms:zt.UniformsUtils.merge([zt.ShaderLib.standard.uniforms,{}]),vertexShader:zt.ShaderChunk.meshphysical_vert,fragmentShader:zt.ShaderChunk.meshphysical_frag},zt.WebGLRenderer=function(t){console.log("THREE.WebGLRenderer",zt.REVISION);var d=void 0!==(t=t||{}).canvas?t.canvas:document.createElement("canvas"),e=void 0!==t.context?t.context:null,s=void 0!==t.alpha&&t.alpha,h=void 0===t.depth||t.depth,m=void 0===t.stencil||t.stencil,b=void 0!==t.antialias&&t.antialias,x=void 0===t.premultipliedAlpha||t.premultipliedAlpha,w=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,M=[],P=[],q=-1,k=[],X=-1,T=new Float32Array(8),Y=[],Z=[],A=(this.domElement=d,this.context=null,this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.gammaInput=!1,this.gammaOutput=!1,this.physicallyCorrectLights=!1,this.toneMapping=zt.LinearToneMapping,this.toneMappingExposure=1,this.toneMappingWhitePoint=1,this.maxMorphTargets=8,this.maxMorphNormals=4,this.autoScaleCubemaps=!0,this),S=null,C=null,c=null,O=-1,R="",L=null,l=new zt.Vector4,E=null,D=new zt.Vector4,J=0,n=new zt.Color(0),i=0,r=d.width,o=d.height,p=1,K=new zt.Vector4(0,0,r,o),Q=!1,u=new zt.Vector4(0,0,r,o),tt=new zt.Frustum,j=new zt.WebGLClipping,I=!1,et=!1,a=new zt.Sphere,F=new zt.Matrix4,B=new zt.Vector3,N={hash:"",ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[],shadows:[]},g={geometries:0,textures:0},U={calls:0,vertices:0,faces:0,points:0};this.info={render:U,memory:g,programs:null};try{var z,nt={alpha:s,depth:h,stencil:m,antialias:b,premultipliedAlpha:x,preserveDrawingBuffer:w};if(null===(z=e||d.getContext("webgl",nt)||d.getContext("experimental-webgl",nt)))throw null!==d.getContext("webgl")?"Error creating WebGL context with your selected attributes.":"Error creating WebGL context.";void 0===z.getShaderPrecisionFormat&&(z.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}}),d.addEventListener("webglcontextlost",vt,!1)}catch(t){console.error("THREE.WebGLRenderer: "+t)}var it="undefined"!=typeof WebGL2RenderingContext&&z instanceof WebGL2RenderingContext,_=new zt.WebGLExtensions(z),v=(_.get("WEBGL_depth_texture"),_.get("OES_texture_float"),_.get("OES_texture_float_linear"),_.get("OES_texture_half_float"),_.get("OES_texture_half_float_linear"),_.get("OES_standard_derivatives"),_.get("ANGLE_instanced_arrays"),_.get("OES_element_index_uint")&&(zt.BufferGeometry.MaxIndex=4294967296),new zt.WebGLCapabilities(z,_,t)),V=new zt.WebGLState(z,_,y),G=new zt.WebGLProperties,H=new zt.WebGLObjects(z,G,this.info),f=new zt.WebGLPrograms(this,v),W=new zt.WebGLLights,rt=(this.info.programs=f.programs,new zt.WebGLBufferRenderer(z,_,U)),ot=new zt.WebGLIndexedBufferRenderer(z,_,U);function at(){return null===C?p:1}function st(t,e,n,i){!0===x&&(t*=i,e*=i,n*=i),V.clearColor(t,e,n,i)}function lt(){V.init(),V.scissor(l.copy(K).multiplyScalar(p)),V.viewport(D.copy(u).multiplyScalar(p)),st(n.r,n.g,n.b,i)}function ct(){L=S=null,R="",O=-1,V.reset()}lt(),this.context=z,this.capabilities=v,this.extensions=_,this.properties=G,this.state=V;var ut,ht,dt,pt,ft=new zt.WebGLShadowMap(this,N,H),mt=(this.shadowMap=ft,new zt.SpritePlugin(this,Y)),gt=new zt.LensFlarePlugin(this,Z);function vt(t){t.preventDefault(),ct(),lt(),G.clear()}function yt(t){t=t.target;t.removeEventListener("dispose",yt),function(t){var e=G.get(t);if(t.image&&e.__image__webglTextureCube)z.deleteTexture(e.__image__webglTextureCube);else{if(void 0===e.__webglInit)return;z.deleteTexture(e.__webglTexture)}G.delete(t)}(t),g.textures--}function _t(t){var t=t.target,e=(t.removeEventListener("dispose",_t),G.get(t)),n=G.get(t.texture);if(t){if(void 0!==n.__webglTexture&&z.deleteTexture(n.__webglTexture),t.depthTexture&&t.depthTexture.dispose(),t instanceof zt.WebGLRenderTargetCube)for(var i=0;i<6;i++)z.deleteFramebuffer(e.__webglFramebuffer[i]),e.__webglDepthbuffer&&z.deleteRenderbuffer(e.__webglDepthbuffer[i]);else z.deleteFramebuffer(e.__webglFramebuffer),e.__webglDepthbuffer&&z.deleteRenderbuffer(e.__webglDepthbuffer);G.delete(t.texture),G.delete(t)}g.textures--}function bt(t){var t=t.target;t.removeEventListener("dispose",bt),xt(t=t),G.delete(t)}function xt(t){var e=G.get(t).program;(t.program=void 0)!==e&&f.releaseProgram(e)}function wt(t,e){return Math.abs(e[0])-Math.abs(t[0])}function Tt(t,e){return t.object.renderOrder!==e.object.renderOrder?t.object.renderOrder-e.object.renderOrder:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function St(t,e){return t.object.renderOrder!==e.object.renderOrder?t.object.renderOrder-e.object.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function Ct(t,e,n,i,r){var o,a=n.transparent?(o=k,++X):(o=P,++q),a=o[a];void 0!==a?(a.id=t.id,a.object=t,a.geometry=e,a.material=n,a.z=B.z,a.group=r):(a={id:t.id,object:t,geometry:e,material:n,z:B.z,group:r},o.push(a))}function Et(t){var e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),a.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),Pt(a)}function Mt(t){return a.center.set(0,0,0),a.radius=.7071067811865476,a.applyMatrix4(t.matrixWorld),Pt(a)}function Pt(t){if(!tt.intersectsSphere(t))return!1;var e=j.numPlanes;if(0!==e){var n=A.clippingPlanes,i=t.center,r=-t.radius,o=0;do{if(n[o].distanceToPoint(i)<r)return!1}while(++o!==e)}return!0}function $(t,e,n,i){for(var r=0,o=t.length;r<o;r++){var a,s=t[r],l=s.object,c=s.geometry,u=void 0===i?s.material:i,s=s.group;l.modelViewMatrix.multiplyMatrices(e.matrixWorldInverse,l.matrixWorld),l.normalMatrix.getNormalMatrix(l.modelViewMatrix),l instanceof zt.ImmediateRenderObject?(kt(u),a=At(e,n,u,l),R="",l.render(function(t){A.renderBufferImmediate(t,a,u)})):A.renderBufferDirect(e,n,c,u,l,s)}}function kt(t){t.side!==zt.DoubleSide?V.enable(z.CULL_FACE):V.disable(z.CULL_FACE),V.setFlipSided(t.side===zt.BackSide),!0===t.transparent?V.setBlending(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha):V.setBlending(zt.NoBlending),V.setDepthFunc(t.depthFunc),V.setDepthTest(t.depthTest),V.setDepthWrite(t.depthWrite),V.setColorWrite(t.colorWrite),V.setPolygonOffset(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits)}function At(t,e,n,i){J=0;var r,o=G.get(n),a=(I&&(!et&&t===L||(a=t===L&&n.id===O,j.setState(n.clippingPlanes,n.clipShadows,t,o,a)),void 0!==o.numClippingPlanes)&&o.numClippingPlanes!==j.numPlanes&&(n.needsUpdate=!0),void 0===o.program&&(n.needsUpdate=!0),void 0!==o.lightsHash&&o.lightsHash!==N.hash&&(n.needsUpdate=!0),n.needsUpdate&&(!function(t,e,n){var i=G.get(t),e=f.getParameters(t,N,e,j.numPlanes,n),n=f.getProgramCode(t,e),r=i.program,o=!0;if(void 0===r)t.addEventListener("dispose",bt);else if(r.code!==n)xt(t);else{if(void 0!==e.shaderID)return;o=!1}o&&(e.shaderID?(o=zt.ShaderLib[e.shaderID],i.__webglShader={name:t.type,uniforms:zt.UniformsUtils.clone(o.uniforms),vertexShader:o.vertexShader,fragmentShader:o.fragmentShader}):i.__webglShader={name:t.type,uniforms:t.uniforms,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader},t.__webglShader=i.__webglShader,r=f.acquireProgram(t,e,n),i.program=r,t.program=r);var a=r.getAttributes();if(t.morphTargets)for(var s=t.numSupportedMorphTargets=0;s<A.maxMorphTargets;s++)0<=a["morphTarget"+s]&&t.numSupportedMorphTargets++;if(t.morphNormals)for(s=t.numSupportedMorphNormals=0;s<A.maxMorphNormals;s++)0<=a["morphNormal"+s]&&t.numSupportedMorphNormals++;o=i.__webglShader.uniforms,(t instanceof zt.ShaderMaterial||t instanceof zt.RawShaderMaterial)&&!0!==t.clipping||(i.numClippingPlanes=j.numPlanes,o.clippingPlanes=j.uniform),t.lights&&(i.lightsHash=N.hash,o.ambientLightColor.value=N.ambient,o.directionalLights.value=N.directional,o.spotLights.value=N.spot,o.pointLights.value=N.point,o.hemisphereLights.value=N.hemi,o.directionalShadowMap.value=N.directionalShadowMap,o.directionalShadowMatrix.value=N.directionalShadowMatrix,o.spotShadowMap.value=N.spotShadowMap,o.spotShadowMatrix.value=N.spotShadowMatrix,o.pointShadowMap.value=N.pointShadowMap,o.pointShadowMatrix.value=N.pointShadowMatrix),e=i.program.getUniforms(),n=zt.WebGLUniforms.seqWithValue(e.seq,o),i.uniformsList=n,i.dynamicUniforms=zt.WebGLUniforms.splitDynamic(n,o)}(n,e,i),n.needsUpdate=!1),!1),s=!1,l=!1,c=o.program,u=c.getUniforms(),h=o.__webglShader.uniforms,l=(c.id!==S&&(z.useProgram(c.program),S=c.id,l=s=a=!0),n.id!==O&&(O=n.id,s=!0),!a&&t===L||(u.set(z,t,"projectionMatrix"),v.logarithmicDepthBuffer&&u.setValue(z,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),t!==L&&(L=t,l=s=!0),(n instanceof zt.ShaderMaterial||n instanceof zt.MeshPhongMaterial||n instanceof zt.MeshStandardMaterial||n.envMap)&&void 0!==(a=u.map.cameraPosition)&&a.setValue(z,B.setFromMatrixPosition(t.matrixWorld)),(n instanceof zt.MeshPhongMaterial||n instanceof zt.MeshLambertMaterial||n instanceof zt.MeshBasicMaterial||n instanceof zt.MeshStandardMaterial||n instanceof zt.ShaderMaterial||n.skinning)&&u.setValue(z,"viewMatrix",t.matrixWorldInverse),u.set(z,A,"toneMappingExposure"),u.set(z,A,"toneMappingWhitePoint")),n.skinning&&(u.setOptional(z,i,"bindMatrix"),u.setOptional(z,i,"bindMatrixInverse"),a=i.skeleton)&&(v.floatVertexTextures&&a.useVertexTexture?(u.set(z,a,"boneTexture"),u.set(z,a,"boneTextureWidth"),u.set(z,a,"boneTextureHeight")):u.setOptional(z,a,"boneMatrices")),s&&(n.lights&&(a=l,(s=h).ambientLightColor.needsUpdate=a,s.directionalLights.needsUpdate=a,s.pointLights.needsUpdate=a,s.spotLights.needsUpdate=a,s.hemisphereLights.needsUpdate=a),e&&n.fog&&(l=e,(s=h).fogColor.value=l.color,l instanceof zt.Fog?(s.fogNear.value=l.near,s.fogFar.value=l.far):l instanceof zt.FogExp2&&(s.fogDensity.value=l.density)),(n instanceof zt.MeshBasicMaterial||n instanceof zt.MeshLambertMaterial||n instanceof zt.MeshPhongMaterial||n instanceof zt.MeshStandardMaterial||n instanceof zt.MeshDepthMaterial)&&(e=n,(s=h).opacity.value=e.opacity,s.diffuse.value=e.color,e.emissive&&s.emissive.value.copy(e.emissive).multiplyScalar(e.emissiveIntensity),s.map.value=e.map,s.specularMap.value=e.specularMap,s.alphaMap.value=e.alphaMap,e.aoMap&&(s.aoMap.value=e.aoMap,s.aoMapIntensity.value=e.aoMapIntensity),e.map?r=e.map:e.specularMap?r=e.specularMap:e.displacementMap?r=e.displacementMap:e.normalMap?r=e.normalMap:e.bumpMap?r=e.bumpMap:e.roughnessMap?r=e.roughnessMap:e.metalnessMap?r=e.metalnessMap:e.alphaMap?r=e.alphaMap:e.emissiveMap&&(r=e.emissiveMap),void 0!==r&&(l=(r=r instanceof zt.WebGLRenderTarget?r.texture:r).offset,r=r.repeat,s.offsetRepeat.value.set(l.x,l.y,r.x,r.y)),s.envMap.value=e.envMap,s.flipEnvMap.value=e.envMap instanceof zt.CubeTexture?-1:1,s.reflectivity.value=e.reflectivity,s.refractionRatio.value=e.refractionRatio),n instanceof zt.LineBasicMaterial?Ot(h,n):n instanceof zt.LineDashedMaterial?(Ot(h,n),l=n,(r=h).dashSize.value=l.dashSize,r.totalSize.value=l.dashSize+l.gapSize,r.scale.value=l.scale):n instanceof zt.PointsMaterial?(s=n,(e=h).diffuse.value=s.color,e.opacity.value=s.opacity,e.size.value=s.size*p,e.scale.value=.5*d.clientHeight,e.map.value=s.map,null!==s.map&&(l=s.map.offset,s=s.map.repeat,e.offsetRepeat.value.set(l.x,l.y,s.x,s.y))):n instanceof zt.MeshLambertMaterial?(e=h,(l=n).lightMap&&(e.lightMap.value=l.lightMap,e.lightMapIntensity.value=l.lightMapIntensity),l.emissiveMap&&(e.emissiveMap.value=l.emissiveMap)):n instanceof zt.MeshPhongMaterial?(s=n,(e=h).specular.value=s.specular,e.shininess.value=Math.max(s.shininess,1e-4),s.lightMap&&(e.lightMap.value=s.lightMap,e.lightMapIntensity.value=s.lightMapIntensity),s.emissiveMap&&(e.emissiveMap.value=s.emissiveMap),s.bumpMap&&(e.bumpMap.value=s.bumpMap,e.bumpScale.value=s.bumpScale),s.normalMap&&(e.normalMap.value=s.normalMap,e.normalScale.value.copy(s.normalScale)),s.displacementMap&&(e.displacementMap.value=s.displacementMap,e.displacementScale.value=s.displacementScale,e.displacementBias.value=s.displacementBias)):n instanceof zt.MeshPhysicalMaterial||n instanceof zt.MeshStandardMaterial?Rt(h,n):n instanceof zt.MeshDepthMaterial?n.displacementMap&&(h.displacementMap.value=n.displacementMap,h.displacementScale.value=n.displacementScale,h.displacementBias.value=n.displacementBias):n instanceof zt.MeshNormalMaterial&&(h.opacity.value=n.opacity),zt.WebGLUniforms.upload(z,o.uniformsList,h,A)),u.set(z,i,"modelViewMatrix"),u.set(z,i,"normalMatrix"),u.setValue(z,"modelMatrix",i.matrixWorld),o.dynamicUniforms);return null!==l&&(zt.WebGLUniforms.evalDynamic(l,h,i,t),zt.WebGLUniforms.upload(z,l,h,A)),c}function Ot(t,e){t.diffuse.value=e.color,t.opacity.value=e.opacity}function Rt(t,e){t.roughness.value=e.roughness,t.metalness.value=e.metalness,e.roughnessMap&&(t.roughnessMap.value=e.roughnessMap),e.metalnessMap&&(t.metalnessMap.value=e.metalnessMap),e.lightMap&&(t.lightMap.value=e.lightMap,t.lightMapIntensity.value=e.lightMapIntensity),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale)),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias),e.envMap&&(t.envMapIntensity.value=e.envMapIntensity)}function Lt(t,e,n){n?(z.texParameteri(t,z.TEXTURE_WRAP_S,y(e.wrapS)),z.texParameteri(t,z.TEXTURE_WRAP_T,y(e.wrapT)),z.texParameteri(t,z.TEXTURE_MAG_FILTER,y(e.magFilter)),z.texParameteri(t,z.TEXTURE_MIN_FILTER,y(e.minFilter))):(z.texParameteri(t,z.TEXTURE_WRAP_S,z.CLAMP_TO_EDGE),z.texParameteri(t,z.TEXTURE_WRAP_T,z.CLAMP_TO_EDGE),e.wrapS===zt.ClampToEdgeWrapping&&e.wrapT===zt.ClampToEdgeWrapping||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping.",e),z.texParameteri(t,z.TEXTURE_MAG_FILTER,Ut(e.magFilter)),z.texParameteri(t,z.TEXTURE_MIN_FILTER,Ut(e.minFilter)),e.minFilter!==zt.NearestFilter&&e.minFilter!==zt.LinearFilter&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.",e)),!(n=_.get("EXT_texture_filter_anisotropic"))||e.type===zt.FloatType&&null===_.get("OES_texture_float_linear")||e.type===zt.HalfFloatType&&null===_.get("OES_texture_half_float_linear")||(1<e.anisotropy||G.get(e).__currentAnisotropy)&&(z.texParameterf(t,n.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(e.anisotropy,A.getMaxAnisotropy())),G.get(e).__currentAnisotropy=e.anisotropy)}function Dt(t,e,n){void 0===t.__webglInit&&(t.__webglInit=!0,e.addEventListener("dispose",yt),t.__webglTexture=z.createTexture(),g.textures++),V.activeTexture(z.TEXTURE0+n),V.bindTexture(z.TEXTURE_2D,t.__webglTexture),z.pixelStorei(z.UNPACK_FLIP_Y_WEBGL,e.flipY),z.pixelStorei(z.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.premultiplyAlpha),z.pixelStorei(z.UNPACK_ALIGNMENT,e.unpackAlignment);var n=jt(e.image,v.maxTextureSize),i=(((i=e).wrapS!==zt.ClampToEdgeWrapping||i.wrapT!==zt.ClampToEdgeWrapping||i.minFilter!==zt.NearestFilter&&i.minFilter!==zt.LinearFilter)&&!1===It(n)&&(n=function(t){{var e;if(t instanceof HTMLImageElement||t instanceof HTMLCanvasElement)return(e=document.createElement("canvas")).width=zt.Math.nearestPowerOfTwo(t.width),e.height=zt.Math.nearestPowerOfTwo(t.height),e.getContext("2d").drawImage(t,0,0,e.width,e.height),console.warn("THREE.WebGLRenderer: image is not power of two ("+t.width+"x"+t.height+"). Resized to "+e.width+"x"+e.height,t),e}return t}(n)),It(n)),r=y(e.format),o=y(e.type);Lt(z.TEXTURE_2D,e,i);var a,s=e.mipmaps;if(e instanceof zt.DepthTexture){var l=z.DEPTH_COMPONENT;if(e.type===zt.FloatType){if(!it)throw new Error("Float Depth Texture only supported in WebGL2.0");l=z.DEPTH_COMPONENT32F}else it&&(l=z.DEPTH_COMPONENT16);V.texImage2D(z.TEXTURE_2D,0,l,n.width,n.height,0,r,o,null)}else if(e instanceof zt.DataTexture)if(0<s.length&&i){for(var c=0,u=s.length;c<u;c++)a=s[c],V.texImage2D(z.TEXTURE_2D,c,r,a.width,a.height,0,r,o,a.data);e.generateMipmaps=!1}else V.texImage2D(z.TEXTURE_2D,0,r,n.width,n.height,0,r,o,n.data);else if(e instanceof zt.CompressedTexture)for(c=0,u=s.length;c<u;c++)a=s[c],e.format!==zt.RGBAFormat&&e.format!==zt.RGBFormat?-1<V.getCompressedTextureFormats().indexOf(r)?V.compressedTexImage2D(z.TEXTURE_2D,c,r,a.width,a.height,0,a.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):V.texImage2D(z.TEXTURE_2D,c,r,a.width,a.height,0,r,o,a.data);else if(0<s.length&&i){for(c=0,u=s.length;c<u;c++)a=s[c],V.texImage2D(z.TEXTURE_2D,c,r,r,o,a);e.generateMipmaps=!1}else V.texImage2D(z.TEXTURE_2D,0,r,r,o,n);e.generateMipmaps&&i&&z.generateMipmap(z.TEXTURE_2D),t.__version=e.version,e.onUpdate&&e.onUpdate(e)}function jt(t,e){var n;return t.width>e||t.height>e?(e=e/Math.max(t.width,t.height),(n=document.createElement("canvas")).width=Math.floor(t.width*e),n.height=Math.floor(t.height*e),n.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height),console.warn("THREE.WebGLRenderer: image is too big ("+t.width+"x"+t.height+"). Resized to "+n.width+"x"+n.height,t),n):t}function It(t){return zt.Math.isPowerOfTwo(t.width)&&zt.Math.isPowerOfTwo(t.height)}function Ft(t,e,n,i){var r=y(e.texture.format),o=y(e.texture.type);V.texImage2D(i,0,r,e.width,e.height,0,r,o,null),z.bindFramebuffer(z.FRAMEBUFFER,t),z.framebufferTexture2D(z.FRAMEBUFFER,n,i,G.get(e.texture).__webglTexture,0),z.bindFramebuffer(z.FRAMEBUFFER,null)}function Bt(t,e){z.bindRenderbuffer(z.RENDERBUFFER,t),e.depthBuffer&&!e.stencilBuffer?(z.renderbufferStorage(z.RENDERBUFFER,z.DEPTH_COMPONENT16,e.width,e.height),z.framebufferRenderbuffer(z.FRAMEBUFFER,z.DEPTH_ATTACHMENT,z.RENDERBUFFER,t)):e.depthBuffer&&e.stencilBuffer?(z.renderbufferStorage(z.RENDERBUFFER,z.DEPTH_STENCIL,e.width,e.height),z.framebufferRenderbuffer(z.FRAMEBUFFER,z.DEPTH_STENCIL_ATTACHMENT,z.RENDERBUFFER,t)):z.renderbufferStorage(z.RENDERBUFFER,z.RGBA4,e.width,e.height),z.bindRenderbuffer(z.RENDERBUFFER,null)}function Nt(t){var e=G.get(t),n=t instanceof zt.WebGLRenderTargetCube;if(t.depthTexture){if(n)throw new Error("target.depthTexture not supported in Cube render targets");var i=e.__webglFramebuffer,r=t;if(r instanceof zt.WebGLRenderTargetCube)throw new Error("Depth Texture with cube render targets is not supported!");if(z.bindFramebuffer(z.FRAMEBUFFER,i),!(r.depthTexture instanceof zt.DepthTexture))throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");G.get(r.depthTexture).__webglTexture&&r.depthTexture.image.width===r.width&&r.depthTexture.image.height===r.height||(r.depthTexture.image.width=r.width,r.depthTexture.image.height=r.height,r.depthTexture.needsUpdate=!0),A.setTexture2D(r.depthTexture,0),i=G.get(r.depthTexture).__webglTexture,z.framebufferTexture2D(z.FRAMEBUFFER,z.DEPTH_ATTACHMENT,z.TEXTURE_2D,i,0)}else if(n){e.__webglDepthbuffer=[];for(var o=0;o<6;o++)z.bindFramebuffer(z.FRAMEBUFFER,e.__webglFramebuffer[o]),e.__webglDepthbuffer[o]=z.createRenderbuffer(),Bt(e.__webglDepthbuffer[o],t)}else z.bindFramebuffer(z.FRAMEBUFFER,e.__webglFramebuffer),e.__webglDepthbuffer=z.createRenderbuffer(),Bt(e.__webglDepthbuffer,t);z.bindFramebuffer(z.FRAMEBUFFER,null)}function Ut(t){return t===zt.NearestFilter||t===zt.NearestMipMapNearestFilter||t===zt.NearestMipMapLinearFilter?z.NEAREST:z.LINEAR}function y(t){var e;if(t===zt.RepeatWrapping)return z.REPEAT;if(t===zt.ClampToEdgeWrapping)return z.CLAMP_TO_EDGE;if(t===zt.MirroredRepeatWrapping)return z.MIRRORED_REPEAT;if(t===zt.NearestFilter)return z.NEAREST;if(t===zt.NearestMipMapNearestFilter)return z.NEAREST_MIPMAP_NEAREST;if(t===zt.NearestMipMapLinearFilter)return z.NEAREST_MIPMAP_LINEAR;if(t===zt.LinearFilter)return z.LINEAR;if(t===zt.LinearMipMapNearestFilter)return z.LINEAR_MIPMAP_NEAREST;if(t===zt.LinearMipMapLinearFilter)return z.LINEAR_MIPMAP_LINEAR;if(t===zt.UnsignedByteType)return z.UNSIGNED_BYTE;if(t===zt.UnsignedShort4444Type)return z.UNSIGNED_SHORT_4_4_4_4;if(t===zt.UnsignedShort5551Type)return z.UNSIGNED_SHORT_5_5_5_1;if(t===zt.UnsignedShort565Type)return z.UNSIGNED_SHORT_5_6_5;if(t===zt.ByteType)return z.BYTE;if(t===zt.ShortType)return z.SHORT;if(t===zt.UnsignedShortType)return z.UNSIGNED_SHORT;if(t===zt.IntType)return z.INT;if(t===zt.UnsignedIntType)return z.UNSIGNED_INT;if(t===zt.FloatType)return z.FLOAT;if(null!==(e=_.get("OES_texture_half_float"))&&t===zt.HalfFloatType)return e.HALF_FLOAT_OES;if(t===zt.AlphaFormat)return z.ALPHA;if(t===zt.RGBFormat)return z.RGB;if(t===zt.RGBAFormat)return z.RGBA;if(t===zt.LuminanceFormat)return z.LUMINANCE;if(t===zt.LuminanceAlphaFormat)return z.LUMINANCE_ALPHA;if(t===zt.DepthFormat)return z.DEPTH_COMPONENT;if(t===zt.AddEquation)return z.FUNC_ADD;if(t===zt.SubtractEquation)return z.FUNC_SUBTRACT;if(t===zt.ReverseSubtractEquation)return z.FUNC_REVERSE_SUBTRACT;if(t===zt.ZeroFactor)return z.ZERO;if(t===zt.OneFactor)return z.ONE;if(t===zt.SrcColorFactor)return z.SRC_COLOR;if(t===zt.OneMinusSrcColorFactor)return z.ONE_MINUS_SRC_COLOR;if(t===zt.SrcAlphaFactor)return z.SRC_ALPHA;if(t===zt.OneMinusSrcAlphaFactor)return z.ONE_MINUS_SRC_ALPHA;if(t===zt.DstAlphaFactor)return z.DST_ALPHA;if(t===zt.OneMinusDstAlphaFactor)return z.ONE_MINUS_DST_ALPHA;if(t===zt.DstColorFactor)return z.DST_COLOR;if(t===zt.OneMinusDstColorFactor)return z.ONE_MINUS_DST_COLOR;if(t===zt.SrcAlphaSaturateFactor)return z.SRC_ALPHA_SATURATE;if(null!==(e=_.get("WEBGL_compressed_texture_s3tc"))){if(t===zt.RGB_S3TC_DXT1_Format)return e.COMPRESSED_RGB_S3TC_DXT1_EXT;if(t===zt.RGBA_S3TC_DXT1_Format)return e.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(t===zt.RGBA_S3TC_DXT3_Format)return e.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(t===zt.RGBA_S3TC_DXT5_Format)return e.COMPRESSED_RGBA_S3TC_DXT5_EXT}if(null!==(e=_.get("WEBGL_compressed_texture_pvrtc"))){if(t===zt.RGB_PVRTC_4BPPV1_Format)return e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(t===zt.RGB_PVRTC_2BPPV1_Format)return e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(t===zt.RGBA_PVRTC_4BPPV1_Format)return e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(t===zt.RGBA_PVRTC_2BPPV1_Format)return e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(null!==(e=_.get("WEBGL_compressed_texture_etc1"))&&t===zt.RGB_ETC1_Format)return e.COMPRESSED_RGB_ETC1_WEBGL;if(null!==(e=_.get("EXT_blend_minmax"))){if(t===zt.MinEquation)return e.MIN_EXT;if(t===zt.MaxEquation)return e.MAX_EXT}return 0}this.getContext=function(){return z},this.getContextAttributes=function(){return z.getContextAttributes()},this.forceContextLoss=function(){_.get("WEBGL_lose_context").loseContext()},this.getMaxAnisotropy=function(){var t;return void 0===ut&&(t=_.get("EXT_texture_filter_anisotropic"),ut=null!==t?z.getParameter(t.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0),ut},this.getPrecision=function(){return v.precision},this.getPixelRatio=function(){return p},this.setPixelRatio=function(t){void 0!==t&&(p=t,this.setSize(u.z,u.w,!1))},this.getSize=function(){return{width:r,height:o}},this.setSize=function(t,e,n){r=t,o=e,d.width=t*p,d.height=e*p,!1!==n&&(d.style.width=t+"px",d.style.height=e+"px"),this.setViewport(0,0,t,e)},this.setViewport=function(t,e,n,i){V.viewport(u.set(t,e,n,i))},this.setScissor=function(t,e,n,i){V.scissor(K.set(t,e,n,i))},this.setScissorTest=function(t){V.setScissorTest(Q=t)},this.getClearColor=function(){return n},this.setClearColor=function(t,e){n.set(t),i=void 0!==e?e:1,st(n.r,n.g,n.b,i)},this.getClearAlpha=function(){return i},this.setClearAlpha=function(t){i=t,st(n.r,n.g,n.b,i)},this.clear=function(t,e,n){var i=0;void 0!==t&&!t||(i|=z.COLOR_BUFFER_BIT),void 0!==e&&!e||(i|=z.DEPTH_BUFFER_BIT),void 0!==n&&!n||(i|=z.STENCIL_BUFFER_BIT),z.clear(i)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.clearTarget=function(t,e,n,i){this.setRenderTarget(t),this.clear(e,n,i)},this.resetGLState=ct,this.dispose=function(){d.removeEventListener("webglcontextlost",vt,!1)},this.renderBufferImmediate=function(t,e,n){V.initAttributes();var i=G.get(t),e=(t.hasPositions&&!i.position&&(i.position=z.createBuffer()),t.hasNormals&&!i.normal&&(i.normal=z.createBuffer()),t.hasUvs&&!i.uv&&(i.uv=z.createBuffer()),t.hasColors&&!i.color&&(i.color=z.createBuffer()),e.getAttributes());if(t.hasPositions&&(z.bindBuffer(z.ARRAY_BUFFER,i.position),z.bufferData(z.ARRAY_BUFFER,t.positionArray,z.DYNAMIC_DRAW),V.enableAttribute(e.position),z.vertexAttribPointer(e.position,3,z.FLOAT,!1,0,0)),t.hasNormals){if(z.bindBuffer(z.ARRAY_BUFFER,i.normal),"MeshPhongMaterial"!==n.type&&"MeshStandardMaterial"!==n.type&&"MeshPhysicalMaterial"!==n.type&&n.shading===zt.FlatShading)for(var r=0,o=3*t.count;r<o;r+=9){var a=t.normalArray,s=(a[r+0]+a[r+3]+a[r+6])/3,l=(a[r+1]+a[r+4]+a[r+7])/3,c=(a[r+2]+a[r+5]+a[r+8])/3;a[r+0]=s,a[r+1]=l,a[r+2]=c,a[r+3]=s,a[r+4]=l,a[r+5]=c,a[r+6]=s,a[r+7]=l,a[r+8]=c}z.bufferData(z.ARRAY_BUFFER,t.normalArray,z.DYNAMIC_DRAW),V.enableAttribute(e.normal),z.vertexAttribPointer(e.normal,3,z.FLOAT,!1,0,0)}t.hasUvs&&n.map&&(z.bindBuffer(z.ARRAY_BUFFER,i.uv),z.bufferData(z.ARRAY_BUFFER,t.uvArray,z.DYNAMIC_DRAW),V.enableAttribute(e.uv),z.vertexAttribPointer(e.uv,2,z.FLOAT,!1,0,0)),t.hasColors&&n.vertexColors!==zt.NoColors&&(z.bindBuffer(z.ARRAY_BUFFER,i.color),z.bufferData(z.ARRAY_BUFFER,t.colorArray,z.DYNAMIC_DRAW),V.enableAttribute(e.color),z.vertexAttribPointer(e.color,3,z.FLOAT,!1,0,0)),V.disableUnusedAttributes(),z.drawArrays(z.TRIANGLES,0,t.count),t.count=0},this.renderBufferDirect=function(t,e,n,i,r,o){kt(i);var t=At(t,e,i,r),e=!1,a=n.id+"_"+t.id+"_"+i.wireframe,s=(a!==R&&(R=a,e=!0),r.morphTargetInfluences);if(void 0!==s){for(var l=[],c=0,u=s.length;c<u;c++){var h=s[c];l.push([h,c])}l.sort(wt),8<l.length&&(l.length=8);for(var d=n.morphAttributes,c=0,u=l.length;c<u;c++){h=l[c];T[c]=h[0],0!==h[0]?(f=h[1],!0===i.morphTargets&&d.position&&n.addAttribute("morphTarget"+c,d.position[f]),!0===i.morphNormals&&d.normal&&n.addAttribute("morphNormal"+c,d.normal[f])):(!0===i.morphTargets&&n.removeAttribute("morphTarget"+c),!0===i.morphNormals&&n.removeAttribute("morphNormal"+c))}t.getUniforms().setValue(z,"morphTargetInfluences",T),e=!0}var p,f=n.index,a=n.attributes.position,e=(null!==(f=!0===i.wireframe?H.getWireframeAttribute(n):f)?(p=ot).setIndex(f):p=rt,e&&(function(t,e,n,i){var r;if(n instanceof zt.InstancedBufferGeometry&&null===(r=_.get("ANGLE_instanced_arrays")))return console.error("THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");void 0===i&&(i=0);V.initAttributes();var o,a=n.attributes,s=e.getAttributes(),l=t.defaultAttributeValues;for(o in s){var c=s[o];if(0<=c){var u=a[o];if(void 0!==u){var h,d,p,f=z.FLOAT,m=u.array,g=u.normalized,m=(m instanceof Float32Array?f=z.FLOAT:m instanceof Float64Array?console.warn("Unsupported data buffer format: Float64Array"):m instanceof Uint16Array?f=z.UNSIGNED_SHORT:m instanceof Int16Array?f=z.SHORT:m instanceof Uint32Array?f=z.UNSIGNED_INT:m instanceof Int32Array?f=z.INT:m instanceof Int8Array?f=z.BYTE:m instanceof Uint8Array&&(f=z.UNSIGNED_BYTE),u.itemSize),v=H.getAttributeBuffer(u);u instanceof zt.InterleavedBufferAttribute?(h=u.data,d=h.stride,p=u.offset,h instanceof zt.InstancedInterleavedBuffer?(V.enableAttributeAndDivisor(c,h.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=h.meshPerAttribute*h.count)):V.enableAttribute(c),z.bindBuffer(z.ARRAY_BUFFER,v),z.vertexAttribPointer(c,m,f,g,d*h.array.BYTES_PER_ELEMENT,(i*d+p)*h.array.BYTES_PER_ELEMENT)):(u instanceof zt.InstancedBufferAttribute?(V.enableAttributeAndDivisor(c,u.meshPerAttribute,r),void 0===n.maxInstancedCount&&(n.maxInstancedCount=u.meshPerAttribute*u.count)):V.enableAttribute(c),z.bindBuffer(z.ARRAY_BUFFER,v),z.vertexAttribPointer(c,m,f,g,0,i*m*u.array.BYTES_PER_ELEMENT))}else if(void 0!==l){var y=l[o];if(void 0!==y)switch(y.length){case 2:z.vertexAttrib2fv(c,y);break;case 3:z.vertexAttrib3fv(c,y);break;case 4:z.vertexAttrib4fv(c,y);break;default:z.vertexAttrib1fv(c,y)}}}}V.disableUnusedAttributes()}(i,t,n),null!==f)&&z.bindBuffer(z.ELEMENT_ARRAY_BUFFER,H.getAttributeBuffer(f)),1/0),t=(null!==f?e=f.count:void 0!==a&&(e=a.count),n.drawRange.start),a=n.drawRange.count,m=null!==o?o.start:0,o=null!==o?o.count:1/0,g=Math.max(0,t,m),e=Math.min(0+e,t+a,m+o)-1,t=Math.max(0,e-g+1);if(r instanceof zt.Mesh)if(!0===i.wireframe)V.setLineWidth(i.wireframeLinewidth*at()),p.setMode(z.LINES);else switch(r.drawMode){case zt.TrianglesDrawMode:p.setMode(z.TRIANGLES);break;case zt.TriangleStripDrawMode:p.setMode(z.TRIANGLE_STRIP);break;case zt.TriangleFanDrawMode:p.setMode(z.TRIANGLE_FAN)}else r instanceof zt.Line?(a=i.linewidth,V.setLineWidth((a=void 0===a?1:a)*at()),r instanceof zt.LineSegments?p.setMode(z.LINES):p.setMode(z.LINE_STRIP)):r instanceof zt.Points&&p.setMode(z.POINTS);n instanceof zt.InstancedBufferGeometry?0<n.maxInstancedCount&&p.renderInstances(n,g,t):p.render(g,t)},this.render=function(t,e,n,i){if(e instanceof zt.Camera==!1)console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");else{for(var r,o=t.fog,a=(R="",O=-1,!(L=null)===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),e.matrixWorldInverse.getInverse(e.matrixWorld),F.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),tt.setFromMatrix(F),M.length=0,X=q=-1,Y.length=0,Z.length=0,et=this.localClippingEnabled,I=j.init(this.clippingPlanes,et,e),!function t(e,n){if(!1===e.visible)return;if(e.layers.test(n.layers))if(e instanceof zt.Light)M.push(e);else if(e instanceof zt.Sprite)!1!==e.frustumCulled&&!0!==Mt(e)||Y.push(e);else if(e instanceof zt.LensFlare)Z.push(e);else if(e instanceof zt.ImmediateRenderObject)!0===A.sortObjects&&(B.setFromMatrixPosition(e.matrixWorld),B.applyProjection(F)),Ct(e,null,e.material,B.z,null);else if((e instanceof zt.Mesh||e instanceof zt.Line||e instanceof zt.Points)&&(e instanceof zt.SkinnedMesh&&e.skeleton.update(),!1===e.frustumCulled||!0===Et(e))){var i=e.material;if(!0===i.visible){!0===A.sortObjects&&(B.setFromMatrixPosition(e.matrixWorld),B.applyProjection(F));var r=H.update(e);if(i instanceof zt.MultiMaterial)for(var o=r.groups,a=i.materials,s=0,l=o.length;s<l;s++){var c=o[s],u=a[c.materialIndex];!0===u.visible&&Ct(e,r,u,B.z,c)}else Ct(e,r,i,B.z,null)}}var h=e.children;for(s=0,l=h.length;s<l;s++)t(h[s],n)}(t,e),P.length=q+1,k.length=X+1,!0===A.sortObjects&&(P.sort(Tt),k.sort(St)),I&&j.beginShadows(),M),s=0,l=0,c=a.length;l<c;l++){var u=a[l];u.castShadow&&(N.shadows[s++]=u)}N.shadows.length=s,ft.render(t,e);var h,d,p,f,m,g,v,y=M,_=0,b=0,x=0,w=e.matrixWorldInverse,T=0,S=0,C=0,E=0;for(h=0,d=y.length;h<d;h++)p=y[h],f=p.color,m=p.intensity,g=p.distance,v=p.shadow&&p.shadow.map?p.shadow.map.texture:null,p instanceof zt.AmbientLight?(_+=f.r*m,b+=f.g*m,x+=f.b*m):p instanceof zt.DirectionalLight?((r=W.get(p)).color.copy(p.color).multiplyScalar(p.intensity),r.direction.setFromMatrixPosition(p.matrixWorld),B.setFromMatrixPosition(p.target.matrixWorld),r.direction.sub(B),r.direction.transformDirection(w),r.shadow=p.castShadow,p.castShadow&&(r.shadowBias=p.shadow.bias,r.shadowRadius=p.shadow.radius,r.shadowMapSize=p.shadow.mapSize),N.directionalShadowMap[T]=v,N.directionalShadowMatrix[T]=p.shadow.matrix,N.directional[T++]=r):p instanceof zt.SpotLight?((r=W.get(p)).position.setFromMatrixPosition(p.matrixWorld),r.position.applyMatrix4(w),r.color.copy(f).multiplyScalar(m),r.distance=g,r.direction.setFromMatrixPosition(p.matrixWorld),B.setFromMatrixPosition(p.target.matrixWorld),r.direction.sub(B),r.direction.transformDirection(w),r.coneCos=Math.cos(p.angle),r.penumbraCos=Math.cos(p.angle*(1-p.penumbra)),r.decay=0===p.distance?0:p.decay,r.shadow=p.castShadow,p.castShadow&&(r.shadowBias=p.shadow.bias,r.shadowRadius=p.shadow.radius,r.shadowMapSize=p.shadow.mapSize),N.spotShadowMap[C]=v,N.spotShadowMatrix[C]=p.shadow.matrix,N.spot[C++]=r):p instanceof zt.PointLight?((r=W.get(p)).position.setFromMatrixPosition(p.matrixWorld),r.position.applyMatrix4(w),r.color.copy(p.color).multiplyScalar(p.intensity),r.distance=p.distance,r.decay=0===p.distance?0:p.decay,r.shadow=p.castShadow,p.castShadow&&(r.shadowBias=p.shadow.bias,r.shadowRadius=p.shadow.radius,r.shadowMapSize=p.shadow.mapSize),N.pointShadowMap[S]=v,void 0===N.pointShadowMatrix[S]&&(N.pointShadowMatrix[S]=new zt.Matrix4),B.setFromMatrixPosition(p.matrixWorld).negate(),N.pointShadowMatrix[S].identity().setPosition(B),N.point[S++]=r):p instanceof zt.HemisphereLight&&((r=W.get(p)).direction.setFromMatrixPosition(p.matrixWorld),r.direction.transformDirection(w),r.direction.normalize(),r.skyColor.copy(p.color).multiplyScalar(m),r.groundColor.copy(p.groundColor).multiplyScalar(m),N.hemi[E++]=r);N.ambient[0]=_,N.ambient[1]=b,N.ambient[2]=x,N.directional.length=T,N.spot.length=C,N.point.length=S,N.hemi.length=E,N.hash=T+","+S+","+C+","+E+","+N.shadows.length,I&&j.endShadows(),U.calls=0,U.vertices=0,U.faces=0,void(U.points=0)===n&&(n=null),this.setRenderTarget(n),(this.autoClear||i)&&this.clear(this.autoClearColor,this.autoClearDepth,this.autoClearStencil),t.overrideMaterial?(i=t.overrideMaterial,$(P,e,o,i),$(k,e,o,i)):(V.setBlending(zt.NoBlending),$(P,e,o),$(k,e,o)),mt.render(t,e),gt.render(t,e,D),n&&(i=n.texture).generateMipmaps&&It(n)&&i.minFilter!==zt.NearestFilter&&i.minFilter!==zt.LinearFilter&&(t=(o=n)instanceof zt.WebGLRenderTargetCube?z.TEXTURE_CUBE_MAP:z.TEXTURE_2D,o=G.get(o.texture).__webglTexture,V.bindTexture(t,o),z.generateMipmap(t),V.bindTexture(t,null)),V.setDepthTest(!0),V.setDepthWrite(!0),V.setColorWrite(!0)}},this.setFaceCulling=function(t,e){V.setCullFace(t),V.setFlipSided(e===zt.FrontFaceDirectionCW)},this.allocTextureUnit=function(){var t=J;return t>=v.maxTextures&&console.warn("WebGLRenderer: trying to use "+t+" texture units while this GPU supports only "+v.maxTextures),J+=1,t},this.setTexture2D=(ht=!1,function(t,e){t instanceof zt.WebGLRenderTarget&&(ht||(console.warn("THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead."),ht=!0),t=t.texture);var n,i=G.get(t);0<t.version&&i.__version!==t.version?void 0===(n=t.image)?console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined",t):!1===n.complete?console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete",t):Dt(i,t,e):(V.activeTexture(z.TEXTURE0+e),V.bindTexture(z.TEXTURE_2D,i.__webglTexture))}),this.setTexture=(dt=!1,function(t,e){dt||(console.warn("THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead."),dt=!0),A.setTexture2D(t,e)}),this.setTextureCube=(pt=!1,function(t,e){if(t instanceof zt.WebGLRenderTargetCube&&(pt||(console.warn("THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead."),pt=!0),t=t.texture),t instanceof zt.CubeTexture||Array.isArray(t.image)&&6===t.image.length){var n=t,i=e,r=G.get(n);if(6===n.image.length)if(0<n.version&&r.__version!==n.version){r.__image__webglTextureCube||(n.addEventListener("dispose",yt),r.__image__webglTextureCube=z.createTexture(),g.textures++),V.activeTexture(z.TEXTURE0+i),V.bindTexture(z.TEXTURE_CUBE_MAP,r.__image__webglTextureCube),z.pixelStorei(z.UNPACK_FLIP_Y_WEBGL,n.flipY);for(var o=n instanceof zt.CompressedTexture,a=n.image[0]instanceof zt.DataTexture,s=[],l=0;l<6;l++)!A.autoScaleCubemaps||o||a?s[l]=a?n.image[l].image:n.image[l]:s[l]=jt(n.image[l],v.maxCubemapSize);var c=It(s[0]),u=y(n.format),h=y(n.type);Lt(z.TEXTURE_CUBE_MAP,n,c);for(l=0;l<6;l++)if(o)for(var d,p=s[l].mipmaps,f=0,m=p.length;f<m;f++)d=p[f],n.format!==zt.RGBAFormat&&n.format!==zt.RGBFormat?-1<V.getCompressedTextureFormats().indexOf(u)?V.compressedTexImage2D(z.TEXTURE_CUBE_MAP_POSITIVE_X+l,f,u,d.width,d.height,0,d.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):V.texImage2D(z.TEXTURE_CUBE_MAP_POSITIVE_X+l,f,u,d.width,d.height,0,u,h,d.data);else a?V.texImage2D(z.TEXTURE_CUBE_MAP_POSITIVE_X+l,0,u,s[l].width,s[l].height,0,u,h,s[l].data):V.texImage2D(z.TEXTURE_CUBE_MAP_POSITIVE_X+l,0,u,u,h,s[l]);n.generateMipmaps&&c&&z.generateMipmap(z.TEXTURE_CUBE_MAP),r.__version=n.version,n.onUpdate&&n.onUpdate(n)}else V.activeTexture(z.TEXTURE0+i),V.bindTexture(z.TEXTURE_CUBE_MAP,r.__image__webglTextureCube)}else c=t,V.activeTexture(z.TEXTURE0+e),V.bindTexture(z.TEXTURE_CUBE_MAP,G.get(c).__webglTexture)}),this.getCurrentRenderTarget=function(){return C},this.setRenderTarget=function(t){if((C=t)&&void 0===G.get(t).__webglFramebuffer){var e=t,n=G.get(e),i=G.get(e.texture),r=(e.addEventListener("dispose",_t),i.__webglTexture=z.createTexture(),g.textures++,e instanceof zt.WebGLRenderTargetCube),o=zt.Math.isPowerOfTwo(e.width)&&zt.Math.isPowerOfTwo(e.height);if(r){n.__webglFramebuffer=[];for(var a=0;a<6;a++)n.__webglFramebuffer[a]=z.createFramebuffer()}else n.__webglFramebuffer=z.createFramebuffer();if(r){V.bindTexture(z.TEXTURE_CUBE_MAP,i.__webglTexture),Lt(z.TEXTURE_CUBE_MAP,e.texture,o);for(a=0;a<6;a++)Ft(n.__webglFramebuffer[a],e,z.COLOR_ATTACHMENT0,z.TEXTURE_CUBE_MAP_POSITIVE_X+a);e.texture.generateMipmaps&&o&&z.generateMipmap(z.TEXTURE_CUBE_MAP),V.bindTexture(z.TEXTURE_CUBE_MAP,null)}else V.bindTexture(z.TEXTURE_2D,i.__webglTexture),Lt(z.TEXTURE_2D,e.texture,o),Ft(n.__webglFramebuffer,e,z.COLOR_ATTACHMENT0,z.TEXTURE_2D),e.texture.generateMipmaps&&o&&z.generateMipmap(z.TEXTURE_2D),V.bindTexture(z.TEXTURE_2D,null);e.depthBuffer&&Nt(e)}var s,r=t instanceof zt.WebGLRenderTargetCube;t?(i=G.get(t),s=r?i.__webglFramebuffer[t.activeCubeFace]:i.__webglFramebuffer,l.copy(t.scissor),E=t.scissorTest,D.copy(t.viewport)):(s=null,l.copy(K).multiplyScalar(p),E=Q,D.copy(u).multiplyScalar(p)),c!==s&&(z.bindFramebuffer(z.FRAMEBUFFER,s),c=s),V.scissor(l),V.setScissorTest(E),V.viewport(D),r&&(o=G.get(t.texture),z.framebufferTexture2D(z.FRAMEBUFFER,z.COLOR_ATTACHMENT0,z.TEXTURE_CUBE_MAP_POSITIVE_X+t.activeCubeFace,o.__webglTexture,t.activeMipMapLevel))},this.readRenderTargetPixels=function(t,e,n,i,r,o){if(t instanceof zt.WebGLRenderTarget==!1)console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");else{var a=G.get(t).__webglFramebuffer;if(a){var s=!1;a!==c&&(z.bindFramebuffer(z.FRAMEBUFFER,a),s=!0);try{var l=t.texture;l.format!==zt.RGBAFormat&&y(l.format)!==z.getParameter(z.IMPLEMENTATION_COLOR_READ_FORMAT)?console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format."):l.type===zt.UnsignedByteType||y(l.type)===z.getParameter(z.IMPLEMENTATION_COLOR_READ_TYPE)||l.type===zt.FloatType&&_.get("WEBGL_color_buffer_float")||l.type===zt.HalfFloatType&&_.get("EXT_color_buffer_half_float")?z.checkFramebufferStatus(z.FRAMEBUFFER)===z.FRAMEBUFFER_COMPLETE?0<=e&&e<=t.width-i&&0<=n&&n<=t.height-r&&z.readPixels(e,n,i,r,y(l.format),y(l.type),o):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete."):console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.")}finally{s&&z.bindFramebuffer(z.FRAMEBUFFER,c)}}}}},zt.WebGLRenderTarget=function(t,e,n){this.uuid=zt.Math.generateUUID(),this.width=t,this.height=e,this.scissor=new zt.Vector4(0,0,t,e),this.scissorTest=!1,this.viewport=new zt.Vector4(0,0,t,e),void 0===(n=n||{}).minFilter&&(n.minFilter=zt.LinearFilter),this.texture=new zt.Texture(void 0,void 0,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0===n.stencilBuffer||n.stencilBuffer,this.depthTexture=null},Object.assign(zt.WebGLRenderTarget.prototype,zt.EventDispatcher.prototype,{setSize:function(t,e){this.width===t&&this.height===e||(this.width=t,this.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),zt.WebGLRenderTargetCube=function(t,e,n){zt.WebGLRenderTarget.call(this,t,e,n),this.activeCubeFace=0,this.activeMipMapLevel=0},zt.WebGLRenderTargetCube.prototype=Object.create(zt.WebGLRenderTarget.prototype),zt.WebGLRenderTargetCube.prototype.constructor=zt.WebGLRenderTargetCube,zt.WebGLBufferRenderer=function(r,o,a){var s;this.setMode=function(t){s=t},this.render=function(t,e){r.drawArrays(s,t,e),a.calls++,a.vertices+=e,s===r.TRIANGLES&&(a.faces+=e/3)},this.renderInstances=function(t){var e,n,i=o.get("ANGLE_instanced_arrays");null===i?console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays."):(n=0,n=((e=t.attributes.position)instanceof zt.InterleavedBufferAttribute?e.data:e).count,i.drawArraysInstancedANGLE(s,0,n,t.maxInstancedCount),a.calls++,a.vertices+=n*t.maxInstancedCount,s===r.TRIANGLES&&(a.faces+=t.maxInstancedCount*n/3))}},zt.WebGLClipping=function(){var c=this,l=null,u=0,h=!1,d=!1,p=new zt.Plane,f=new zt.Matrix3,m={value:null,needsUpdate:!1};function g(){m.value!==l&&(m.value=l,m.needsUpdate=0<u),c.numPlanes=u}function v(t,e,n,i){var r=null!==t?t.length:0,o=null;if(0!==r){if(o=m.value,!0!==i||null===o){var i=n+4*r,a=e.matrixWorldInverse;f.getNormalMatrix(a),(null===o||o.length<i)&&(o=new Float32Array(i));for(var s=0,l=n;s!==r;++s,l+=4)p.copy(t[s]).applyMatrix4(a,f),p.normal.toArray(o,l),o[l+3]=p.constant}m.value=o,m.needsUpdate=!0}return c.numPlanes=r,o}this.uniform=m,this.numPlanes=0,this.init=function(t,e,n){var i=0!==t.length||e||0!==u||h;return h=e,l=v(t,n,0),u=t.length,i},this.beginShadows=function(){d=!0,v(null)},this.endShadows=function(){d=!1,g()},this.setState=function(t,e,n,i,r){if(!h||null===t||0===t.length||d&&!e)d?v(null):g();else{var e=d?0:u,o=4*e,a=i.clippingState||null;m.value=a;for(var a=v(t,n,o,r),s=0;s!==o;++s)a[s]=l[s];i.clippingState=a,this.numPlanes+=e}}},zt.WebGLIndexedBufferRenderer=function(r,o,a){var s,l,c;this.setMode=function(t){s=t},this.setIndex=function(t){c=t.array instanceof Uint32Array&&o.get("OES_element_index_uint")?(l=r.UNSIGNED_INT,4):(l=r.UNSIGNED_SHORT,2)},this.render=function(t,e){r.drawElements(s,e,l,t*c),a.calls++,a.vertices+=e,s===r.TRIANGLES&&(a.faces+=e/3)},this.renderInstances=function(t,e,n){var i=o.get("ANGLE_instanced_arrays");null===i?console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays."):(i.drawElementsInstancedANGLE(s,n,l,e*c,t.maxInstancedCount),a.calls++,a.vertices+=n*t.maxInstancedCount,s===r.TRIANGLES&&(a.faces+=t.maxInstancedCount*n/3))}},zt.WebGLExtensions=function(n){var i={};this.get=function(t){if(void 0!==i[t])return i[t];var e;switch(t){case"WEBGL_depth_texture":e=n.getExtension("WEBGL_depth_texture")||n.getExtension("MOZ_WEBGL_depth_texture")||n.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":e=n.getExtension("EXT_texture_filter_anisotropic")||n.getExtension("MOZ_EXT_texture_filter_anisotropic")||n.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":e=n.getExtension("WEBGL_compressed_texture_s3tc")||n.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":e=n.getExtension("WEBGL_compressed_texture_pvrtc")||n.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;case"WEBGL_compressed_texture_etc1":e=n.getExtension("WEBGL_compressed_texture_etc1");break;default:e=n.getExtension(t)}return null===e&&console.warn("THREE.WebGLRenderer: "+t+" extension not supported."),i[t]=e}},zt.WebGLCapabilities=function(e,t,n){function i(t){if("highp"===t){if(0<e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.HIGH_FLOAT).precision&&0<e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision)return"highp";t="mediump"}return"mediump"===t&&0<e.getShaderPrecisionFormat(e.VERTEX_SHADER,e.MEDIUM_FLOAT).precision&&0<e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.MEDIUM_FLOAT).precision?"mediump":"lowp"}this.getMaxPrecision=i,this.precision=void 0!==n.precision?n.precision:"highp",this.logarithmicDepthBuffer=void 0!==n.logarithmicDepthBuffer&&n.logarithmicDepthBuffer,this.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),this.maxVertexTextures=e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS),this.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE),this.maxCubemapSize=e.getParameter(e.MAX_CUBE_MAP_TEXTURE_SIZE),this.maxAttributes=e.getParameter(e.MAX_VERTEX_ATTRIBS),this.maxVertexUniforms=e.getParameter(e.MAX_VERTEX_UNIFORM_VECTORS),this.maxVaryings=e.getParameter(e.MAX_VARYING_VECTORS),this.maxFragmentUniforms=e.getParameter(e.MAX_FRAGMENT_UNIFORM_VECTORS),this.vertexTextures=0<this.maxVertexTextures,this.floatFragmentTextures=!!t.get("OES_texture_float"),this.floatVertexTextures=this.vertexTextures&&this.floatFragmentTextures;n=i(this.precision);n!==this.precision&&(console.warn("THREE.WebGLRenderer:",this.precision,"not supported, using",n,"instead."),this.precision=n),this.logarithmicDepthBuffer&&(this.logarithmicDepthBuffer=!!t.get("EXT_frag_depth"))},zt.WebGLGeometries=function(n,o,a){var s={};function l(t){var e,t=t.target,n=s[t.id],i=(null!==n.index&&c(n.index),n.attributes);for(e in i)c(i[e]);t.removeEventListener("dispose",l),delete s[t.id];var r=o.get(t),r=(r.wireframe&&c(r.wireframe),o.delete(t),o.get(n));r.wireframe&&c(r.wireframe),o.delete(n),a.memory.geometries--}function c(t){var e=((e=t)instanceof zt.InterleavedBufferAttribute?o.get(e.data):o.get(e)).__webglBuffer;void 0!==e&&(n.deleteBuffer(e),(e=t)instanceof zt.InterleavedBufferAttribute?o.delete(e.data):o.delete(e))}this.get=function(t){var e,n=t.geometry;return void 0!==s[n.id]?s[n.id]:(n.addEventListener("dispose",l),n instanceof zt.BufferGeometry?e=n:n instanceof zt.Geometry&&(void 0===n._bufferGeometry&&(n._bufferGeometry=(new zt.BufferGeometry).setFromObject(t)),e=n._bufferGeometry),s[n.id]=e,a.memory.geometries++,e)}},zt.WebGLLights=function(){var n={};this.get=function(t){if(void 0!==n[t.id])return n[t.id];var e;switch(t.type){case"DirectionalLight":e={direction:new zt.Vector3,color:new zt.Color,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new zt.Vector2};break;case"SpotLight":e={position:new zt.Vector3,direction:new zt.Vector3,color:new zt.Color,distance:0,coneCos:0,penumbraCos:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new zt.Vector2};break;case"PointLight":e={position:new zt.Vector3,color:new zt.Color,distance:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new zt.Vector2};break;case"HemisphereLight":e={direction:new zt.Vector3,skyColor:new zt.Color,groundColor:new zt.Color}}return n[t.id]=e}},zt.WebGLObjects=function(d,p,t){var l=new zt.WebGLGeometries(d,p,t);function f(t,e){var n,i,r,o,t=t instanceof zt.InterleavedBufferAttribute?t.data:t,a=p.get(t);void 0===a.__webglBuffer?(i=t,r=e,(n=a).__webglBuffer=d.createBuffer(),d.bindBuffer(r,n.__webglBuffer),o=i.dynamic?d.DYNAMIC_DRAW:d.STATIC_DRAW,d.bufferData(r,i.array,o),n.version=i.version):a.version!==t.version&&(r=a,o=t,n=e,d.bindBuffer(n,r.__webglBuffer),!1===o.dynamic||-1===o.updateRange.count?d.bufferSubData(n,0,o.array):0===o.updateRange.count?console.error("THREE.WebGLObjects.updateBuffer: dynamic THREE.BufferAttribute marked as needsUpdate but updateRange.count is 0, ensure you are using set methods or updating manually."):(d.bufferSubData(n,o.updateRange.offset*o.array.BYTES_PER_ELEMENT,o.array.subarray(o.updateRange.offset,o.updateRange.offset+o.updateRange.count)),o.updateRange.count=0),r.version=o.version)}function m(t,e,n){n<e&&(i=e,e=n,n=i);var i=t[e];return void 0===i?t[e]=[n]:-1===i.indexOf(n)&&(i.push(n),1)}this.getAttributeBuffer=function(t){return(t instanceof zt.InterleavedBufferAttribute?p.get(t.data):p.get(t)).__webglBuffer},this.getWireframeAttribute=function(t){var e=p.get(t);if(void 0!==e.wireframe)return e.wireframe;var n=[],i=t.index,r=(t=t.attributes).position;if(null!==i)for(var o={},a=0,s=(h=i.array).length;a<s;a+=3){var l=h[a+0],c=h[a+1],u=h[a+2];m(o,l,c)&&n.push(l,c),m(o,c,u)&&n.push(c,u),m(o,u,l)&&n.push(u,l)}else for(var h,a=0,s=(h=t.position.array).length/3-1;a<s;a+=3){l=a+0,c=a+1,u=a+2;n.push(l,c,c,u,u,l)}return i=65535<r.count?Uint32Array:Uint16Array,f(t=new zt.BufferAttribute(new i(n),1),d.ELEMENT_ARRAY_BUFFER),e.wireframe=t},this.update=function(t){var e=l.get(t),t=(t.geometry instanceof zt.Geometry&&e.updateFromObject(t),e.index),n=e.attributes;for(i in null!==t&&f(t,d.ELEMENT_ARRAY_BUFFER),n)f(n[i],d.ARRAY_BUFFER);var i,r=e.morphAttributes;for(i in r)for(var o=r[i],a=0,s=o.length;a<s;a++)f(o[a],d.ARRAY_BUFFER);return e}},zt.WebGLProgram=(en=0,function(t,e,n,i){var r=t.context,o=n.extensions,a=n.defines,s=n.__webglShader.vertexShader,l=n.__webglShader.fragmentShader,c="SHADOWMAP_TYPE_BASIC",u=(i.shadowMapType===zt.PCFShadowMap?c="SHADOWMAP_TYPE_PCF":i.shadowMapType===zt.PCFSoftShadowMap&&(c="SHADOWMAP_TYPE_PCF_SOFT"),"ENVMAP_TYPE_CUBE"),h="ENVMAP_MODE_REFLECTION",d="ENVMAP_BLENDING_MULTIPLY";if(i.envMap){switch(n.envMap.mapping){case zt.CubeReflectionMapping:case zt.CubeRefractionMapping:u="ENVMAP_TYPE_CUBE";break;case zt.CubeUVReflectionMapping:case zt.CubeUVRefractionMapping:u="ENVMAP_TYPE_CUBE_UV";break;case zt.EquirectangularReflectionMapping:case zt.EquirectangularRefractionMapping:u="ENVMAP_TYPE_EQUIREC";break;case zt.SphericalReflectionMapping:u="ENVMAP_TYPE_SPHERE"}switch(n.envMap.mapping){case zt.CubeRefractionMapping:case zt.EquirectangularRefractionMapping:h="ENVMAP_MODE_REFRACTION"}switch(n.combine){case zt.MultiplyOperation:d="ENVMAP_BLENDING_MULTIPLY";break;case zt.MixOperation:d="ENVMAP_BLENDING_MIX";break;case zt.AddOperation:d="ENVMAP_BLENDING_ADD"}}var p,f=0<t.gammaFactor?t.gammaFactor:1,o=(o=o,m=i,_=t.extensions,[(o=o||{}).derivatives||m.envMapCubeUV||m.bumpMap||m.normalMap||m.flatShading?"#extension GL_OES_standard_derivatives : enable":"",(o.fragDepth||m.logarithmicDepthBuffer)&&_.get("EXT_frag_depth")?"#extension GL_EXT_frag_depth : enable":"",o.drawBuffers&&_.get("WEBGL_draw_buffers")?"#extension GL_EXT_draw_buffers : require":"",(o.shaderTextureLOD||m.envMap)&&_.get("EXT_shader_texture_lod")?"#extension GL_EXT_shader_texture_lod : enable":""].filter(Nn).join("\n")),m=function(t){var e,n=[];for(e in t){var i=t[e];!1!==i&&n.push("#define "+e+" "+i)}return n.join("\n")}(a),g=r.createProgram(),o=n instanceof zt.RawShaderMaterial?p="":(p=["precision "+i.precision+" float;","precision "+i.precision+" int;","#define SHADER_NAME "+n.__webglShader.name,m,i.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+f,"#define MAX_BONES "+i.maxBones,i.map?"#define USE_MAP":"",i.envMap?"#define USE_ENVMAP":"",i.envMap?"#define "+h:"",i.lightMap?"#define USE_LIGHTMAP":"",i.aoMap?"#define USE_AOMAP":"",i.emissiveMap?"#define USE_EMISSIVEMAP":"",i.bumpMap?"#define USE_BUMPMAP":"",i.normalMap?"#define USE_NORMALMAP":"",i.displacementMap&&i.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",i.specularMap?"#define USE_SPECULARMAP":"",i.roughnessMap?"#define USE_ROUGHNESSMAP":"",i.metalnessMap?"#define USE_METALNESSMAP":"",i.alphaMap?"#define USE_ALPHAMAP":"",i.vertexColors?"#define USE_COLOR":"",i.flatShading?"#define FLAT_SHADED":"",i.skinning?"#define USE_SKINNING":"",i.useVertexTexture?"#define BONE_TEXTURE":"",i.morphTargets?"#define USE_MORPHTARGETS":"",i.morphNormals&&!1===i.flatShading?"#define USE_MORPHNORMALS":"",i.doubleSided?"#define DOUBLE_SIDED":"",i.flipSided?"#define FLIP_SIDED":"","#define NUM_CLIPPING_PLANES "+i.numClippingPlanes,i.shadowMapEnabled?"#define USE_SHADOWMAP":"",i.shadowMapEnabled?"#define "+c:"",i.sizeAttenuation?"#define USE_SIZEATTENUATION":"",i.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",i.logarithmicDepthBuffer&&t.extensions.get("EXT_frag_depth")?"#define USE_LOGDEPTHBUF_EXT":"","uniform mat4 modelMatrix;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform mat4 viewMatrix;","uniform mat3 normalMatrix;","uniform vec3 cameraPosition;","attribute vec3 position;","attribute vec3 normal;","attribute vec2 uv;","#ifdef USE_COLOR","\tattribute vec3 color;","#endif","#ifdef USE_MORPHTARGETS","\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(Nn).join("\n"),[o,"precision "+i.precision+" float;","precision "+i.precision+" int;","#define SHADER_NAME "+n.__webglShader.name,m,i.alphaTest?"#define ALPHATEST "+i.alphaTest:"","#define GAMMA_FACTOR "+f,i.useFog&&i.fog?"#define USE_FOG":"",i.useFog&&i.fogExp?"#define FOG_EXP2":"",i.map?"#define USE_MAP":"",i.envMap?"#define USE_ENVMAP":"",i.envMap?"#define "+u:"",i.envMap?"#define "+h:"",i.envMap?"#define "+d:"",i.lightMap?"#define USE_LIGHTMAP":"",i.aoMap?"#define USE_AOMAP":"",i.emissiveMap?"#define USE_EMISSIVEMAP":"",i.bumpMap?"#define USE_BUMPMAP":"",i.normalMap?"#define USE_NORMALMAP":"",i.specularMap?"#define USE_SPECULARMAP":"",i.roughnessMap?"#define USE_ROUGHNESSMAP":"",i.metalnessMap?"#define USE_METALNESSMAP":"",i.alphaMap?"#define USE_ALPHAMAP":"",i.vertexColors?"#define USE_COLOR":"",i.flatShading?"#define FLAT_SHADED":"",i.doubleSided?"#define DOUBLE_SIDED":"",i.flipSided?"#define FLIP_SIDED":"","#define NUM_CLIPPING_PLANES "+i.numClippingPlanes,i.shadowMapEnabled?"#define USE_SHADOWMAP":"",i.shadowMapEnabled?"#define "+c:"",i.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",i.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",i.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",i.logarithmicDepthBuffer&&t.extensions.get("EXT_frag_depth")?"#define USE_LOGDEPTHBUF_EXT":"",i.envMap&&t.extensions.get("EXT_shader_texture_lod")?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;",i.toneMapping!==zt.NoToneMapping?"#define TONE_MAPPING":"",i.toneMapping!==zt.NoToneMapping?zt.ShaderChunk.tonemapping_pars_fragment:"",i.toneMapping!==zt.NoToneMapping?function(t,e){var n;switch(e){case zt.LinearToneMapping:n="Linear";break;case zt.ReinhardToneMapping:n="Reinhard";break;case zt.Uncharted2ToneMapping:n="Uncharted2";break;case zt.CineonToneMapping:n="OptimizedCineon";break;default:throw new Error("unsupported toneMapping: "+e)}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}("toneMapping",i.toneMapping):"",i.outputEncoding||i.mapEncoding||i.envMapEncoding||i.emissiveMapEncoding?zt.ShaderChunk.encodings_pars_fragment:"",i.mapEncoding?Bn("mapTexelToLinear",i.mapEncoding):"",i.envMapEncoding?Bn("envMapTexelToLinear",i.envMapEncoding):"",i.emissiveMapEncoding?Bn("emissiveMapTexelToLinear",i.emissiveMapEncoding):"",i.outputEncoding?(_="linearToOutputTexel",a=Fn(a=i.outputEncoding),"vec4 "+_+"( vec4 value ) { return LinearTo"+a[0]+a[1]+"; }"):"",i.depthPacking?"#define DEPTH_PACKING "+n.depthPacking:"","\n"].filter(Nn).join("\n"));s=Un(s=zn(s),i),l=Un(l=zn(l),i),n instanceof zt.ShaderMaterial==!1&&(s=Vn(s),l=Vn(l));var v,y,m=o+l,f=zt.WebGLShader(r,r.VERTEX_SHADER,p+s),c=zt.WebGLShader(r,r.FRAGMENT_SHADER,m),_=(r.attachShader(g,f),r.attachShader(g,c),void 0!==n.index0AttributeName?r.bindAttribLocation(g,0,n.index0AttributeName):!0===i.morphTargets&&r.bindAttribLocation(g,0,"position"),r.linkProgram(g),r.getProgramInfoLog(g)),a=r.getShaderInfoLog(f),l=r.getShaderInfoLog(c),s=!0,m=!0;return!1===r.getProgramParameter(g,r.LINK_STATUS)?(s=!1,console.error("THREE.WebGLProgram: shader error: ",r.getError(),"gl.VALIDATE_STATUS",r.getProgramParameter(g,r.VALIDATE_STATUS),"gl.getProgramInfoLog",_,a,l)):""!==_?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",_):""!==a&&""!==l||(m=!1),m&&(this.diagnostics={runnable:s,material:n,programLog:_,vertexShader:{log:a,prefix:p},fragmentShader:{log:l,prefix:o}}),r.deleteShader(f),r.deleteShader(c),this.getUniforms=function(){return v=void 0===v?new zt.WebGLUniforms(r,g,t):v},this.getAttributes=function(){return y=void 0===y?function(t,e){for(var n={},i=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),r=0;r<i;r++){var o=t.getActiveAttrib(e,r).name;n[o]=t.getAttribLocation(e,o)}return n}(r,g):y},this.destroy=function(){r.deleteProgram(g),this.program=void 0},Object.defineProperties(this,{uniforms:{get:function(){return console.warn("THREE.WebGLProgram: .uniforms is now .getUniforms()."),this.getUniforms()}},attributes:{get:function(){return console.warn("THREE.WebGLProgram: .attributes is now .getAttributes()."),this.getAttributes()}}}),this.id=en++,this.code=e,this.usedTimes=1,this.program=g,this.vertexShader=f,this.fragmentShader=c,this}),zt.WebGLPrograms=function(c,u){var s=[],h={MeshDepthMaterial:"depth",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points"},o=["precision","supportsVertexTextures","map","mapEncoding","envMap","envMapMode","envMapEncoding","lightMap","aoMap","emissiveMap","emissiveMapEncoding","bumpMap","normalMap","displacementMap","specularMap","roughnessMap","metalnessMap","alphaMap","combine","vertexColors","fog","useFog","fogExp","flatShading","sizeAttenuation","logarithmicDepthBuffer","skinning","maxBones","useVertexTexture","morphTargets","morphNormals","maxMorphTargets","maxMorphNormals","premultipliedAlpha","numDirLights","numPointLights","numSpotLights","numHemiLights","shadowMapEnabled","shadowMapType","toneMapping","physicallyCorrectLights","alphaTest","doubleSided","flipSided","numClippingPlanes","depthPacking"];function d(t,e){var n;return t?t instanceof zt.Texture?n=t.encoding:t instanceof zt.WebGLRenderTarget&&(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),n=t.texture.encoding):n=zt.LinearEncoding,n=n===zt.LinearEncoding&&e?zt.GammaEncoding:n}this.getParameters=function(t,e,n,i,r){var o=h[t.type],a=(a=r,u.floatVertexTextures&&a&&a.skeleton&&a.skeleton.useVertexTexture?1024:(s=u.maxVertexUniforms,s=Math.floor((s-20)/4),void 0!==a&&a instanceof zt.SkinnedMesh&&(s=Math.min(a.skeleton.bones.length,s))<a.skeleton.bones.length&&console.warn("WebGLRenderer: too many bones - "+a.skeleton.bones.length+", this GPU supports just "+s+" (try OpenGL instead of ANGLE)"),s)),s=c.getPrecision(),l=(null!==t.precision&&(s=u.getMaxPrecision(t.precision))!==t.precision&&console.warn("THREE.WebGLProgram.getParameters:",t.precision,"not supported, using",s,"instead."),c.getCurrentRenderTarget());return{shaderID:o,precision:s,supportsVertexTextures:u.vertexTextures,outputEncoding:d(l?l.texture:null,c.gammaOutput),map:!!t.map,mapEncoding:d(t.map,c.gammaInput),envMap:!!t.envMap,envMapMode:t.envMap&&t.envMap.mapping,envMapEncoding:d(t.envMap,c.gammaInput),envMapCubeUV:!!t.envMap&&(t.envMap.mapping===zt.CubeUVReflectionMapping||t.envMap.mapping===zt.CubeUVRefractionMapping),lightMap:!!t.lightMap,aoMap:!!t.aoMap,emissiveMap:!!t.emissiveMap,emissiveMapEncoding:d(t.emissiveMap,c.gammaInput),bumpMap:!!t.bumpMap,normalMap:!!t.normalMap,displacementMap:!!t.displacementMap,roughnessMap:!!t.roughnessMap,metalnessMap:!!t.metalnessMap,specularMap:!!t.specularMap,alphaMap:!!t.alphaMap,combine:t.combine,vertexColors:t.vertexColors,fog:n,useFog:t.fog,fogExp:n instanceof zt.FogExp2,flatShading:t.shading===zt.FlatShading,sizeAttenuation:t.sizeAttenuation,logarithmicDepthBuffer:u.logarithmicDepthBuffer,skinning:t.skinning,maxBones:a,useVertexTexture:u.floatVertexTextures&&r&&r.skeleton&&r.skeleton.useVertexTexture,morphTargets:t.morphTargets,morphNormals:t.morphNormals,maxMorphTargets:c.maxMorphTargets,maxMorphNormals:c.maxMorphNormals,numDirLights:e.directional.length,numPointLights:e.point.length,numSpotLights:e.spot.length,numHemiLights:e.hemi.length,numClippingPlanes:i,shadowMapEnabled:c.shadowMap.enabled&&r.receiveShadow&&0<e.shadows.length,shadowMapType:c.shadowMap.type,toneMapping:c.toneMapping,physicallyCorrectLights:c.physicallyCorrectLights,premultipliedAlpha:t.premultipliedAlpha,alphaTest:t.alphaTest,doubleSided:t.side===zt.DoubleSide,flipSided:t.side===zt.BackSide,depthPacking:void 0!==t.depthPacking&&t.depthPacking}},this.getProgramCode=function(t,e){var n=[];if(e.shaderID?n.push(e.shaderID):(n.push(t.fragmentShader),n.push(t.vertexShader)),void 0!==t.defines)for(var i in t.defines)n.push(i),n.push(t.defines[i]);for(var r=0;r<o.length;r++)n.push(e[o[r]]);return n.join()},this.acquireProgram=function(t,e,n){for(var i,r=0,o=s.length;r<o;r++){var a=s[r];if(a.code===n){++(i=a).usedTimes;break}}return void 0===i&&(i=new zt.WebGLProgram(c,n,t,e),s.push(i)),i},this.releaseProgram=function(t){var e;0==--t.usedTimes&&(e=s.indexOf(t),s[e]=s[s.length-1],s.pop(),t.destroy())},this.programs=s},zt.WebGLProperties=function(){var n={};this.get=function(t){var t=t.uuid,e=n[t];return void 0===e&&(n[t]=e={}),e},this.delete=function(t){delete n[t.uuid]},this.clear=function(){n={}}},zt.WebGLShader=function(t,e,n){var i=t.createShader(e);return t.shaderSource(i,n),t.compileShader(i),!1===t.getShaderParameter(i,t.COMPILE_STATUS)&&console.error("THREE.WebGLShader: Shader couldn't compile."),""!==t.getShaderInfoLog(i)&&console.warn("THREE.WebGLShader: gl.getShaderInfoLog()",e===t.VERTEX_SHADER?"vertex":"fragment",t.getShaderInfoLog(i),function(t){for(var e=t.split("\n"),n=0;n<e.length;n++)e[n]=n+1+": "+e[n];return e.join("\n")}(n)),i},zt.WebGLShadowMap=function(M,t,P){for(var k=M.context,A=M.state,O=new zt.Frustum,R=new zt.Matrix4,L=t.shadows,D=new zt.Vector2,j=new zt.Vector3,I=new zt.Vector3,F=[],l=1,c=2,e=1+(l|c),u=new Array(e),h=new Array(e),d={},B=[new zt.Vector3(1,0,0),new zt.Vector3(-1,0,0),new zt.Vector3(0,0,1),new zt.Vector3(0,0,-1),new zt.Vector3(0,1,0),new zt.Vector3(0,-1,0)],N=[new zt.Vector3(0,1,0),new zt.Vector3(0,1,0),new zt.Vector3(0,1,0),new zt.Vector3(0,1,0),new zt.Vector3(0,0,1),new zt.Vector3(0,0,-1)],U=[new zt.Vector4,new zt.Vector4,new zt.Vector4,new zt.Vector4,new zt.Vector4,new zt.Vector4],n=new zt.MeshDepthMaterial,i=(n.depthPacking=zt.RGBADepthPacking,n.clipping=!0,zt.ShaderLib.distanceRGBA),r=zt.UniformsUtils.clone(i.uniforms),o=0;o!==e;++o){var a=0!=(o&l),s=0!=(o&c),p=n.clone(),p=(p.morphTargets=a,p.skinning=s,u[o]=p,new zt.ShaderMaterial({defines:{USE_SHADOWMAP:""},uniforms:r,vertexShader:i.vertexShader,fragmentShader:i.fragmentShader,morphTargets:a,skinning:s,clipping:!0}));h[o]=p}var z=this;function V(t,e,n,i){var r=t.geometry,o=null,a=u,s=t.customDepthMaterial,s=(n&&(a=h,s=t.customDistanceMaterial),o=s||(s=void 0!==r.morphTargets&&0<r.morphTargets.length&&e.morphTargets,r=t instanceof zt.SkinnedMesh&&e.skinning,t=0,s&&(t|=l),r&&(t|=c),a[t]),M.localClippingEnabled&&!0===e.clipShadows&&0!==e.clippingPlanes.length&&(s=o.uuid,r=e.uuid,void 0===(a=d[s])&&(d[s]=a={}),void 0===(t=a[r])&&(t=o.clone(),a[r]=t),o=t),o.visible=e.visible,o.wireframe=e.wireframe,e.side);return z.renderSingleSided&&s==zt.DoubleSide&&(s=zt.FrontSide),z.renderReverseSided&&(s===zt.FrontSide?s=zt.BackSide:s===zt.BackSide&&(s=zt.FrontSide)),o.side=s,o.clipShadows=e.clipShadows,o.clippingPlanes=e.clippingPlanes,o.wireframeLinewidth=e.wireframeLinewidth,o.linewidth=e.linewidth,n&&void 0!==o.uniforms.lightPos&&o.uniforms.lightPos.value.copy(i),o}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=zt.PCFShadowMap,this.renderReverseSided=!0,this.renderSingleSided=!0,this.render=function(t,e){if(!1!==z.enabled&&(!1!==z.autoUpdate||!1!==z.needsUpdate)&&0!==L.length){A.clearColor(1,1,1,1),A.disable(k.BLEND),A.setDepthTest(!0),A.setScissorTest(!1);for(var n=0,i=L.length;n<i;n++){var r=L[n],o=r.shadow;if(void 0===o)console.warn("THREE.WebGLShadowMap:",r,"has no shadow.");else{var a,s,l,c=o.camera,u=(D.copy(o.mapSize),r instanceof zt.PointLight?(a=6,s=!0,l=D.x,u=D.y,U[0].set(2*l,u,l,u),U[1].set(0,u,l,u),U[2].set(3*l,u,l,u),U[3].set(l,u,l,u),U[4].set(3*l,0,l,u),U[5].set(l,0,l,u),D.x*=4,D.y*=2):s=!(a=1),null===o.map&&(l={minFilter:zt.NearestFilter,magFilter:zt.NearestFilter,format:zt.RGBAFormat},o.map=new zt.WebGLRenderTarget(D.x,D.y,l),c.updateProjectionMatrix()),o instanceof zt.SpotLightShadow&&o.update(r),o.map),h=o.matrix;I.setFromMatrixPosition(r.matrixWorld),c.position.copy(I),M.setRenderTarget(u),M.clear();for(var d=0;d<a;d++){s?(j.copy(c.position),j.add(B[d]),c.up.copy(N[d]),c.lookAt(j),A.viewport(U[d])):(j.setFromMatrixPosition(r.target.matrixWorld),c.lookAt(j)),c.updateMatrixWorld(),c.matrixWorldInverse.getInverse(c.matrixWorld),h.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),h.multiply(c.projectionMatrix),h.multiply(c.matrixWorldInverse),R.multiplyMatrices(c.projectionMatrix,c.matrixWorldInverse),O.setFromMatrix(R),F.length=0,!function t(e,n,i){if(!1===e.visible)return;e.layers.test(n.layers)&&(e instanceof zt.Mesh||e instanceof zt.Line||e instanceof zt.Points)&&(!e.castShadow||!1!==e.frustumCulled&&!0!==O.intersectsObject(e)||!0===e.material.visible&&(e.modelViewMatrix.multiplyMatrices(i.matrixWorldInverse,e.matrixWorld),F.push(e)));var r=e.children;for(var o=0,a=r.length;o<a;o++)t(r[o],n,i)}(t,e,c);for(var p=0,f=F.length;p<f;p++){var m=F[p],g=P.update(m),v=m.material;if(v instanceof zt.MultiMaterial)for(var y=g.groups,_=v.materials,b=0,x=y.length;b<x;b++){var w=y[b],T=_[w.materialIndex];!0===T.visible&&(S=V(m,T,s,I),M.renderBufferDirect(c,null,g,S,m,w))}else{var S=V(m,v,s,I);M.renderBufferDirect(c,null,g,S,m,null)}}}}}var C=M.getClearColor(),E=M.getClearAlpha();M.setClearColor(C,E),z.needsUpdate=!1}}},zt.WebGLState=function(l,n,c){var i=this,t=(this.buffers={color:new zt.WebGLColorBuffer(l,this),depth:new zt.WebGLDepthBuffer(l,this),stencil:new zt.WebGLStencilBuffer(l,this)},l.getParameter(l.MAX_VERTEX_ATTRIBS)),r=new Uint8Array(t),o=new Uint8Array(t),a=new Uint8Array(t),e={},s=null,u=null,h=null,d=null,p=null,f=null,m=null,g=null,v=!1,y=null,_=null,b=null,x=null,w=null,T=null,S=l.getParameter(l.MAX_TEXTURE_IMAGE_UNITS),C=null,E={},M=new zt.Vector4,P=new zt.Vector4;function k(t,e,n){var i=new Uint8Array(3),r=l.createTexture();l.bindTexture(t,r),l.texParameteri(t,l.TEXTURE_MIN_FILTER,l.NEAREST),l.texParameteri(t,l.TEXTURE_MAG_FILTER,l.NEAREST);for(var o=0;o<n;o++)l.texImage2D(e+o,0,l.RGB,1,1,0,l.RGB,l.UNSIGNED_BYTE,i);return r}var A={};A[l.TEXTURE_2D]=k(l.TEXTURE_2D,l.TEXTURE_2D,1),A[l.TEXTURE_CUBE_MAP]=k(l.TEXTURE_CUBE_MAP,l.TEXTURE_CUBE_MAP_POSITIVE_X,6),this.init=function(){this.clearColor(0,0,0,1),this.clearDepth(1),this.clearStencil(0),this.enable(l.DEPTH_TEST),this.setDepthFunc(zt.LessEqualDepth),this.setFlipSided(!1),this.setCullFace(zt.CullFaceBack),this.enable(l.CULL_FACE),this.enable(l.BLEND),this.setBlending(zt.NormalBlending)},this.initAttributes=function(){for(var t=0,e=r.length;t<e;t++)r[t]=0},this.enableAttribute=function(t){r[t]=1,0===o[t]&&(l.enableVertexAttribArray(t),o[t]=1),0!==a[t]&&(n.get("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(t,0),a[t]=0)},this.enableAttributeAndDivisor=function(t,e,n){r[t]=1,0===o[t]&&(l.enableVertexAttribArray(t),o[t]=1),a[t]!==e&&(n.vertexAttribDivisorANGLE(t,e),a[t]=e)},this.disableUnusedAttributes=function(){for(var t=0,e=o.length;t!==e;++t)o[t]!==r[t]&&(l.disableVertexAttribArray(t),o[t]=0)},this.enable=function(t){!0!==e[t]&&(l.enable(t),e[t]=!0)},this.disable=function(t){!1!==e[t]&&(l.disable(t),e[t]=!1)},this.getCompressedTextureFormats=function(){if(null===s&&(s=[],n.get("WEBGL_compressed_texture_pvrtc")||n.get("WEBGL_compressed_texture_s3tc")||n.get("WEBGL_compressed_texture_etc1")))for(var t=l.getParameter(l.COMPRESSED_TEXTURE_FORMATS),e=0;e<t.length;e++)s.push(t[e]);return s},this.setBlending=function(t,e,n,i,r,o,a,s){t===zt.NoBlending?(this.disable(l.BLEND),u=t):(this.enable(l.BLEND),t===u&&s===v||(t===zt.AdditiveBlending?s?(l.blendEquationSeparate(l.FUNC_ADD,l.FUNC_ADD),l.blendFuncSeparate(l.ONE,l.ONE,l.ONE,l.ONE)):(l.blendEquation(l.FUNC_ADD),l.blendFunc(l.SRC_ALPHA,l.ONE)):t===zt.SubtractiveBlending?s?(l.blendEquationSeparate(l.FUNC_ADD,l.FUNC_ADD),l.blendFuncSeparate(l.ZERO,l.ZERO,l.ONE_MINUS_SRC_COLOR,l.ONE_MINUS_SRC_ALPHA)):(l.blendEquation(l.FUNC_ADD),l.blendFunc(l.ZERO,l.ONE_MINUS_SRC_COLOR)):t===zt.MultiplyBlending?s?(l.blendEquationSeparate(l.FUNC_ADD,l.FUNC_ADD),l.blendFuncSeparate(l.ZERO,l.SRC_COLOR,l.ZERO,l.SRC_ALPHA)):(l.blendEquation(l.FUNC_ADD),l.blendFunc(l.ZERO,l.SRC_COLOR)):s?(l.blendEquationSeparate(l.FUNC_ADD,l.FUNC_ADD),l.blendFuncSeparate(l.ONE,l.ONE_MINUS_SRC_ALPHA,l.ONE,l.ONE_MINUS_SRC_ALPHA)):(l.blendEquationSeparate(l.FUNC_ADD,l.FUNC_ADD),l.blendFuncSeparate(l.SRC_ALPHA,l.ONE_MINUS_SRC_ALPHA,l.ONE,l.ONE_MINUS_SRC_ALPHA)),u=t,v=s),t===zt.CustomBlending?(r=r||e,o=o||n,a=a||i,e===h&&r===f||(l.blendEquationSeparate(c(e),c(r)),h=e,f=r),n===d&&i===p&&o===m&&a===g||(l.blendFuncSeparate(c(n),c(i),c(o),c(a)),d=n,p=i,m=o,g=a)):g=m=f=p=d=h=null)},this.setColorWrite=function(t){this.buffers.color.setMask(t)},this.setDepthTest=function(t){this.buffers.depth.setTest(t)},this.setDepthWrite=function(t){this.buffers.depth.setMask(t)},this.setDepthFunc=function(t){this.buffers.depth.setFunc(t)},this.setStencilTest=function(t){this.buffers.stencil.setTest(t)},this.setStencilWrite=function(t){this.buffers.stencil.setMask(t)},this.setStencilFunc=function(t,e,n){this.buffers.stencil.setFunc(t,e,n)},this.setStencilOp=function(t,e,n){this.buffers.stencil.setOp(t,e,n)},this.setFlipSided=function(t){y!==t&&(t?l.frontFace(l.CW):l.frontFace(l.CCW),y=t)},this.setCullFace=function(t){t!==zt.CullFaceNone?(this.enable(l.CULL_FACE),t!==_&&(t===zt.CullFaceBack?l.cullFace(l.BACK):t===zt.CullFaceFront?l.cullFace(l.FRONT):l.cullFace(l.FRONT_AND_BACK))):this.disable(l.CULL_FACE),_=t},this.setLineWidth=function(t){t!==b&&(l.lineWidth(t),b=t)},this.setPolygonOffset=function(t,e,n){t?(this.enable(l.POLYGON_OFFSET_FILL),x===e&&w===n||(l.polygonOffset(e,n),x=e,w=n)):this.disable(l.POLYGON_OFFSET_FILL)},this.getScissorTest=function(){return T},this.setScissorTest=function(t){(T=t)?this.enable(l.SCISSOR_TEST):this.disable(l.SCISSOR_TEST)},this.activeTexture=function(t){void 0===t&&(t=l.TEXTURE0+S-1),C!==t&&(l.activeTexture(t),C=t)},this.bindTexture=function(t,e){null===C&&i.activeTexture();var n=E[C];void 0===n&&(E[C]=n={type:void 0,texture:void 0}),n.type===t&&n.texture===e||(l.bindTexture(t,e||A[t]),n.type=t,n.texture=e)},this.compressedTexImage2D=function(){try{l.compressedTexImage2D.apply(l,arguments)}catch(t){console.error(t)}},this.texImage2D=function(){try{l.texImage2D.apply(l,arguments)}catch(t){console.error(t)}},this.clearColor=function(t,e,n,i){this.buffers.color.setClear(t,e,n,i)},this.clearDepth=function(t){this.buffers.depth.setClear(t)},this.clearStencil=function(t){this.buffers.stencil.setClear(t)},this.scissor=function(t){!1===M.equals(t)&&(l.scissor(t.x,t.y,t.z,t.w),M.copy(t))},this.viewport=function(t){!1===P.equals(t)&&(l.viewport(t.x,t.y,t.z,t.w),P.copy(t))},this.reset=function(){for(var t=0;t<o.length;t++)1===o[t]&&(l.disableVertexAttribArray(t),o[t]=0);e={},E={},_=y=u=C=s=null,this.buffers.color.reset(),this.buffers.depth.reset(),this.buffers.stencil.reset()}},zt.WebGLColorBuffer=function(r,t){var e=!1,o=new zt.Vector4,n=null,a=new zt.Vector4;this.setMask=function(t){n===t||e||(r.colorMask(t,t,t,t),n=t)},this.setLocked=function(t){e=t},this.setClear=function(t,e,n,i){o.set(t,e,n,i),!1===a.equals(o)&&(r.clearColor(t,e,n,i),a.copy(o))},this.reset=function(){e=!1,n=null,a=new zt.Vector4}},zt.WebGLDepthBuffer=function(e,n){var i=!1,r=null,o=null,a=null;this.setTest=function(t){t?n.enable(e.DEPTH_TEST):n.disable(e.DEPTH_TEST)},this.setMask=function(t){r===t||i||(e.depthMask(t),r=t)},this.setFunc=function(t){if(o!==t){if(t)switch(t){case zt.NeverDepth:e.depthFunc(e.NEVER);break;case zt.AlwaysDepth:e.depthFunc(e.ALWAYS);break;case zt.LessDepth:e.depthFunc(e.LESS);break;case zt.LessEqualDepth:e.depthFunc(e.LEQUAL);break;case zt.EqualDepth:e.depthFunc(e.EQUAL);break;case zt.GreaterEqualDepth:e.depthFunc(e.GEQUAL);break;case zt.GreaterDepth:e.depthFunc(e.GREATER);break;case zt.NotEqualDepth:e.depthFunc(e.NOTEQUAL);break;default:e.depthFunc(e.LEQUAL)}else e.depthFunc(e.LEQUAL);o=t}},this.setLocked=function(t){i=t},this.setClear=function(t){a!==t&&(e.clearDepth(t),a=t)},this.reset=function(){i=!1,a=o=r=null}},zt.WebGLStencilBuffer=function(i,e){var n=!1,r=null,o=null,a=null,s=null,l=null,c=null,u=null,h=null;this.setTest=function(t){t?e.enable(i.STENCIL_TEST):e.disable(i.STENCIL_TEST)},this.setMask=function(t){r===t||n||(i.stencilMask(t),r=t)},this.setFunc=function(t,e,n){o===t&&a===e&&s===n||(i.stencilFunc(t,e,n),o=t,a=e,s=n)},this.setOp=function(t,e,n){l===t&&c===e&&u===n||(i.stencilOp(t,e,n),l=t,c=e,u=n)},this.setLocked=function(t){n=t},this.setClear=function(t){h!==t&&(i.clearStencil(t),h=t)},this.reset=function(){n=!1,h=u=c=l=s=a=o=r=null}},zt.WebGLUniforms=(nn=[],rn=[],on=function(t,e,n){this.id=t,this.addr=n,this.setValue=function(t){switch(t){case 5126:return Wn;case 35664:return qn;case 35665:return Xn;case 35666:return Yn;case 35674:return Zn;case 35675:return Jn;case 35676:return Kn;case 35678:return Qn;case 35680:return ti;case 5124:case 35670:return $n;case 35667:case 35671:return ei;case 35668:case 35672:return ni;case 35669:case 35673:return ii}}(e.type)},an=function(t,e,n){this.id=t,this.addr=n,this.size=e.size,this.setValue=function(t){switch(t){case 5126:return ri;case 35664:return ai;case 35665:return si;case 35666:return li;case 35674:return ci;case 35675:return ui;case 35676:return hi;case 35678:return di;case 35680:return pi;case 5124:case 35670:return oi;case 35667:case 35671:return ei;case 35668:case 35672:return ni;case 35669:case 35673:return ii}}(e.type)},(sn=function(t){this.id=t,Gn.call(this)}).prototype.setValue=function(t,e){for(var n=this.seq,i=0,r=n.length;i!==r;++i){var o=n[i];o.setValue(t,e[o.id])}},ln=/([\w\d_]+)(\])?(\[|\.)?/g,cn=function(t,e){t.seq.push(e),t.map[e.id]=e},t.prototype.setValue=function(t,e,n){e=this.map[e];void 0!==e&&e.setValue(t,n,this.renderer)},t.prototype.set=function(t,e,n){var i=this.map[n];void 0!==i&&i.setValue(t,e[n],this.renderer)},t.prototype.setOptional=function(t,e,n){e=e[n];void 0!==e&&this.setValue(t,n,e)},t.upload=function(t,e,n,i){for(var r=0,o=e.length;r!==o;++r){var a=e[r],s=n[a.id];!1!==s.needsUpdate&&a.setValue(t,s.value,i)}},t.seqWithValue=function(t,e){for(var n=[],i=0,r=t.length;i!==r;++i){var o=t[i];o.id in e&&n.push(o)}return n},t.splitDynamic=function(t,e){for(var n=null,i=t.length,r=0,o=0;o!==i;++o){var a=t[o],s=e[a.id];s&&!0===s.dynamic?(n=null===n?[]:n).push(a):(r<o&&(t[r]=a),++r)}return r<i&&(t.length=r),n},t.evalDynamic=function(t,e,n,i){for(var r=0,o=t.length;r!==o;++r){var a=e[t[r].id],s=a.onUpdateCallback;void 0!==s&&s.call(a,n,i)}},t),zt.LensFlarePlugin=function(y,_){var b,x,o,w,T,S,C,E,M=y.context,P=y.state;function k(){var t,e,n,i=new Float32Array([-1,-1,0,0,1,-1,1,0,1,1,1,1,-1,1,0,1]),r=new Uint16Array([0,1,2,0,2,3]);b=M.createBuffer(),x=M.createBuffer(),M.bindBuffer(M.ARRAY_BUFFER,b),M.bufferData(M.ARRAY_BUFFER,i,M.STATIC_DRAW),M.bindBuffer(M.ELEMENT_ARRAY_BUFFER,x),M.bufferData(M.ELEMENT_ARRAY_BUFFER,r,M.STATIC_DRAW),C=M.createTexture(),E=M.createTexture(),P.bindTexture(M.TEXTURE_2D,C),M.texImage2D(M.TEXTURE_2D,0,M.RGB,16,16,0,M.RGB,M.UNSIGNED_BYTE,null),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_WRAP_S,M.CLAMP_TO_EDGE),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_WRAP_T,M.CLAMP_TO_EDGE),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MAG_FILTER,M.NEAREST),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MIN_FILTER,M.NEAREST),P.bindTexture(M.TEXTURE_2D,E),M.texImage2D(M.TEXTURE_2D,0,M.RGBA,16,16,0,M.RGBA,M.UNSIGNED_BYTE,null),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_WRAP_S,M.CLAMP_TO_EDGE),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_WRAP_T,M.CLAMP_TO_EDGE),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MAG_FILTER,M.NEAREST),M.texParameteri(M.TEXTURE_2D,M.TEXTURE_MIN_FILTER,M.NEAREST),o={vertexShader:["uniform lowp int renderType;","uniform vec3 screenPosition;","uniform vec2 scale;","uniform float rotation;","uniform sampler2D occlusionMap;","attribute vec2 position;","attribute vec2 uv;","varying vec2 vUV;","varying float vVisibility;","void main() {","vUV = uv;","vec2 pos = position;","if ( renderType == 2 ) {","vec4 visibility = texture2D( occlusionMap, vec2( 0.1, 0.1 ) );","visibility += texture2D( occlusionMap, vec2( 0.5, 0.1 ) );","visibility += texture2D( occlusionMap, vec2( 0.9, 0.1 ) );","visibility += texture2D( occlusionMap, vec2( 0.9, 0.5 ) );","visibility += texture2D( occlusionMap, vec2( 0.9, 0.9 ) );","visibility += texture2D( occlusionMap, vec2( 0.5, 0.9 ) );","visibility += texture2D( occlusionMap, vec2( 0.1, 0.9 ) );","visibility += texture2D( occlusionMap, vec2( 0.1, 0.5 ) );","visibility += texture2D( occlusionMap, vec2( 0.5, 0.5 ) );","vVisibility =        visibility.r / 9.0;","vVisibility *= 1.0 - visibility.g / 9.0;","vVisibility *=       visibility.b / 9.0;","vVisibility *= 1.0 - visibility.a / 9.0;","pos.x = cos( rotation ) * position.x - sin( rotation ) * position.y;","pos.y = sin( rotation ) * position.x + cos( rotation ) * position.y;","}","gl_Position = vec4( ( pos * scale + screenPosition.xy ).xy, screenPosition.z, 1.0 );","}"].join("\n"),fragmentShader:["uniform lowp int renderType;","uniform sampler2D map;","uniform float opacity;","uniform vec3 color;","varying vec2 vUV;","varying float vVisibility;","void main() {","if ( renderType == 0 ) {","gl_FragColor = vec4( 1.0, 0.0, 1.0, 0.0 );","} else if ( renderType == 1 ) {","gl_FragColor = texture2D( map, vUV );","} else {","vec4 texture = texture2D( map, vUV );","texture.a *= opacity * vVisibility;","gl_FragColor = texture;","gl_FragColor.rgb *= color;","}","}"].join("\n")},i=o,r=M.createProgram(),t=M.createShader(M.FRAGMENT_SHADER),e=M.createShader(M.VERTEX_SHADER),n="precision "+y.getPrecision()+" float;\n",M.shaderSource(t,n+i.fragmentShader),M.shaderSource(e,n+i.vertexShader),M.compileShader(t),M.compileShader(e),M.attachShader(r,t),M.attachShader(r,e),M.linkProgram(r),w=r,T={vertex:M.getAttribLocation(w,"position"),uv:M.getAttribLocation(w,"uv")},S={renderType:M.getUniformLocation(w,"renderType"),map:M.getUniformLocation(w,"map"),occlusionMap:M.getUniformLocation(w,"occlusionMap"),opacity:M.getUniformLocation(w,"opacity"),color:M.getUniformLocation(w,"color"),scale:M.getUniformLocation(w,"scale"),rotation:M.getUniformLocation(w,"rotation"),screenPosition:M.getUniformLocation(w,"screenPosition")}}this.render=function(t,e,n){if(0!==_.length){var i=new zt.Vector3,r=n.w/n.z,o=.5*n.z,a=.5*n.w,s=16/n.w,l=new zt.Vector2(s*r,s),c=new zt.Vector3(1,1,0),u=new zt.Vector2(1,1),h=new zt.Box2;h.min.set(0,0),h.max.set(n.z-16,n.w-16),void 0===w&&k(),M.useProgram(w),P.initAttributes(),P.enableAttribute(T.vertex),P.enableAttribute(T.uv),P.disableUnusedAttributes(),M.uniform1i(S.occlusionMap,0),M.uniform1i(S.map,1),M.bindBuffer(M.ARRAY_BUFFER,b),M.vertexAttribPointer(T.vertex,2,M.FLOAT,!1,16,0),M.vertexAttribPointer(T.uv,2,M.FLOAT,!1,16,8),M.bindBuffer(M.ELEMENT_ARRAY_BUFFER,x),P.disable(M.CULL_FACE),P.setDepthWrite(!1);for(var d=0,p=_.length;d<p;d++){s=16/n.w,l.set(s*r,s);var f=_[d];if(i.set(f.matrixWorld.elements[12],f.matrixWorld.elements[13],f.matrixWorld.elements[14]),i.applyMatrix4(e.matrixWorldInverse),i.applyProjection(e.projectionMatrix),c.copy(i),u.x=n.x+c.x*o+o-8,u.y=n.y+c.y*a+a-8,!0===h.containsPoint(u)){P.activeTexture(M.TEXTURE0),P.bindTexture(M.TEXTURE_2D,null),P.activeTexture(M.TEXTURE1),P.bindTexture(M.TEXTURE_2D,C),M.copyTexImage2D(M.TEXTURE_2D,0,M.RGB,u.x,u.y,16,16,0),M.uniform1i(S.renderType,0),M.uniform2f(S.scale,l.x,l.y),M.uniform3f(S.screenPosition,c.x,c.y,c.z),P.disable(M.BLEND),P.enable(M.DEPTH_TEST),M.drawElements(M.TRIANGLES,6,M.UNSIGNED_SHORT,0),P.activeTexture(M.TEXTURE0),P.bindTexture(M.TEXTURE_2D,E),M.copyTexImage2D(M.TEXTURE_2D,0,M.RGBA,u.x,u.y,16,16,0),M.uniform1i(S.renderType,1),P.disable(M.DEPTH_TEST),P.activeTexture(M.TEXTURE1),P.bindTexture(M.TEXTURE_2D,C),M.drawElements(M.TRIANGLES,6,M.UNSIGNED_SHORT,0),f.positionScreen.copy(c),f.customUpdateCallback?f.customUpdateCallback(f):f.updateLensFlares(),M.uniform1i(S.renderType,2),P.enable(M.BLEND);for(var m=0,g=f.lensFlares.length;m<g;m++){var v=f.lensFlares[m];.001<v.opacity&&.001<v.scale&&(c.x=v.x,c.y=v.y,c.z=v.z,s=v.size*v.scale/n.w,l.x=s*r,l.y=s,M.uniform3f(S.screenPosition,c.x,c.y,c.z),M.uniform2f(S.scale,l.x,l.y),M.uniform1f(S.rotation,v.rotation),M.uniform1f(S.opacity,v.opacity),M.uniform3f(S.color,v.color.r,v.color.g,v.color.b),P.setBlending(v.blending,v.blendEquation,v.blendSrc,v.blendDst),y.setTexture2D(v.texture,1),M.drawElements(M.TRIANGLES,6,M.UNSIGNED_SHORT,0))}}}P.enable(M.CULL_FACE),P.enable(M.DEPTH_TEST),P.setDepthWrite(!0),y.resetGLState()}}},zt.SpritePlugin=function(h,d){var p,f,m,g,v,y,_=h.context,b=h.state,x=new zt.Vector3,w=new zt.Quaternion,T=new zt.Vector3;function S(){var t=new Float32Array([-.5,-.5,0,0,.5,-.5,1,0,.5,.5,1,1,-.5,.5,0,1]),e=new Uint16Array([0,1,2,0,2,3]),e=(p=_.createBuffer(),f=_.createBuffer(),_.bindBuffer(_.ARRAY_BUFFER,p),_.bufferData(_.ARRAY_BUFFER,t,_.STATIC_DRAW),_.bindBuffer(_.ELEMENT_ARRAY_BUFFER,f),_.bufferData(_.ELEMENT_ARRAY_BUFFER,e,_.STATIC_DRAW),t=_.createProgram(),e=_.createShader(_.VERTEX_SHADER),n=_.createShader(_.FRAGMENT_SHADER),_.shaderSource(e,["precision "+h.getPrecision()+" float;","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform float rotation;","uniform vec2 scale;","uniform vec2 uvOffset;","uniform vec2 uvScale;","attribute vec2 position;","attribute vec2 uv;","varying vec2 vUV;","void main() {","vUV = uvOffset + uv * uvScale;","vec2 alignedPosition = position * scale;","vec2 rotatedPosition;","rotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;","rotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;","vec4 finalPosition;","finalPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );","finalPosition.xy += rotatedPosition;","finalPosition = projectionMatrix * finalPosition;","gl_Position = finalPosition;","}"].join("\n")),_.shaderSource(n,["precision "+h.getPrecision()+" float;","uniform vec3 color;","uniform sampler2D map;","uniform float opacity;","uniform int fogType;","uniform vec3 fogColor;","uniform float fogDensity;","uniform float fogNear;","uniform float fogFar;","uniform float alphaTest;","varying vec2 vUV;","void main() {","vec4 texture = texture2D( map, vUV );","if ( texture.a < alphaTest ) discard;","gl_FragColor = vec4( color * texture.xyz, texture.a * opacity );","if ( fogType > 0 ) {","float depth = gl_FragCoord.z / gl_FragCoord.w;","float fogFactor = 0.0;","if ( fogType == 1 ) {","fogFactor = smoothstep( fogNear, fogFar, depth );","} else {","const float LOG2 = 1.442695;","fogFactor = exp2( - fogDensity * fogDensity * depth * depth * LOG2 );","fogFactor = 1.0 - clamp( fogFactor, 0.0, 1.0 );","}","gl_FragColor = mix( gl_FragColor, vec4( fogColor, gl_FragColor.w ), fogFactor );","}","}"].join("\n")),_.compileShader(e),_.compileShader(n),_.attachShader(t,e),_.attachShader(t,n),_.linkProgram(t),m=t,g={position:_.getAttribLocation(m,"position"),uv:_.getAttribLocation(m,"uv")},v={uvOffset:_.getUniformLocation(m,"uvOffset"),uvScale:_.getUniformLocation(m,"uvScale"),rotation:_.getUniformLocation(m,"rotation"),scale:_.getUniformLocation(m,"scale"),color:_.getUniformLocation(m,"color"),map:_.getUniformLocation(m,"map"),opacity:_.getUniformLocation(m,"opacity"),modelViewMatrix:_.getUniformLocation(m,"modelViewMatrix"),projectionMatrix:_.getUniformLocation(m,"projectionMatrix"),fogType:_.getUniformLocation(m,"fogType"),fogDensity:_.getUniformLocation(m,"fogDensity"),fogNear:_.getUniformLocation(m,"fogNear"),fogFar:_.getUniformLocation(m,"fogFar"),fogColor:_.getUniformLocation(m,"fogColor"),alphaTest:_.getUniformLocation(m,"alphaTest")},document.createElement("canvas")),n=(e.width=8,e.height=8,e.getContext("2d"));n.fillStyle="white",n.fillRect(0,0,8,8),(y=new zt.Texture(e)).needsUpdate=!0}function C(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:e.id-t.id}this.render=function(t,e){if(0!==d.length){void 0===m&&S(),_.useProgram(m),b.initAttributes(),b.enableAttribute(g.position),b.enableAttribute(g.uv),b.disableUnusedAttributes(),b.disable(_.CULL_FACE),b.enable(_.BLEND),_.bindBuffer(_.ARRAY_BUFFER,p),_.vertexAttribPointer(g.position,2,_.FLOAT,!1,16,0),_.vertexAttribPointer(g.uv,2,_.FLOAT,!1,16,8),_.bindBuffer(_.ELEMENT_ARRAY_BUFFER,f),_.uniformMatrix4fv(v.projectionMatrix,!1,e.projectionMatrix.elements),b.activeTexture(_.TEXTURE0),_.uniform1i(v.map,0);var n=0,i=0,r=t.fog;r?(_.uniform3f(v.fogColor,r.color.r,r.color.g,r.color.b),r instanceof zt.Fog?(_.uniform1f(v.fogNear,r.near),_.uniform1f(v.fogFar,r.far),_.uniform1i(v.fogType,1),i=n=1):r instanceof zt.FogExp2&&(_.uniform1f(v.fogDensity,r.density),_.uniform1i(v.fogType,2),i=n=2)):(_.uniform1i(v.fogType,0),i=n=0);for(var o=0,a=d.length;o<a;o++)(l=d[o]).modelViewMatrix.multiplyMatrices(e.matrixWorldInverse,l.matrixWorld),l.z=-l.modelViewMatrix.elements[14];d.sort(C);for(var s=[],o=0,a=d.length;o<a;o++){var l,c=(l=d[o]).material,u=(_.uniform1f(v.alphaTest,c.alphaTest),_.uniformMatrix4fv(v.modelViewMatrix,!1,l.modelViewMatrix.elements),l.matrixWorld.decompose(x,w,T),s[0]=T.x,s[1]=T.y,0);n!==(u=t.fog&&c.fog?i:u)&&(_.uniform1i(v.fogType,u),n=u),null!==c.map?(_.uniform2f(v.uvOffset,c.map.offset.x,c.map.offset.y),_.uniform2f(v.uvScale,c.map.repeat.x,c.map.repeat.y)):(_.uniform2f(v.uvOffset,0,0),_.uniform2f(v.uvScale,1,1)),_.uniform1f(v.opacity,c.opacity),_.uniform3f(v.color,c.color.r,c.color.g,c.color.b),_.uniform1f(v.rotation,c.rotation),_.uniform2fv(v.scale,s),b.setBlending(c.blending,c.blendEquation,c.blendSrc,c.blendDst),b.setDepthTest(c.depthTest),b.setDepthWrite(c.depthWrite),c.map?h.setTexture2D(c.map,0):h.setTexture2D(y,0),_.drawElements(_.TRIANGLES,6,_.UNSIGNED_SHORT,0)}b.enable(_.CULL_FACE),h.resetGLState()}}},Object.assign(zt,{Face4:function(t,e,n,i,r,o,a){return console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead."),new zt.Face3(t,e,n,r,o,a)},LineStrip:0,LinePieces:1,MeshFaceMaterial:zt.MultiMaterial,PointCloud:function(t,e){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new zt.Points(t,e)},Particle:zt.Sprite,ParticleSystem:function(t,e){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new zt.Points(t,e)},PointCloudMaterial:function(t){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new zt.PointsMaterial(t)},ParticleBasicMaterial:function(t){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new zt.PointsMaterial(t)},ParticleSystemMaterial:function(t){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new zt.PointsMaterial(t)},Vertex:function(t,e,n){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new zt.Vector3(t,e,n)}}),Object.assign(zt.Box2.prototype,{empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)}}),Object.assign(zt.Box3.prototype,{empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionSphere:function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)}}),Object.assign(zt.Matrix3.prototype,{multiplyVector3:function(t){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},multiplyVector3Array:function(t){return console.warn("THREE.Matrix3: .multiplyVector3Array() has been renamed. Use matrix.applyToVector3Array( array ) instead."),this.applyToVector3Array(t)}}),Object.assign(zt.Matrix4.prototype,{extractPosition:function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)},setRotationFromQuaternion:function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)},multiplyVector3:function(t){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) or vector.applyProjection( matrix ) instead."),t.applyProjection(this)},multiplyVector4:function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector3Array:function(t){return console.warn("THREE.Matrix4: .multiplyVector3Array() has been renamed. Use matrix.applyToVector3Array( array ) instead."),this.applyToVector3Array(t)},rotateAxis:function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)},crossVector:function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},translate:function(t){console.error("THREE.Matrix4: .translate() has been removed.")},rotateX:function(t){console.error("THREE.Matrix4: .rotateX() has been removed.")},rotateY:function(t){console.error("THREE.Matrix4: .rotateY() has been removed.")},rotateZ:function(t){console.error("THREE.Matrix4: .rotateZ() has been removed.")},rotateByAxis:function(t,e){console.error("THREE.Matrix4: .rotateByAxis() has been removed.")}}),Object.assign(zt.Plane.prototype,{isIntersectionLine:function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)}}),Object.assign(zt.Quaternion.prototype,{multiplyVector3:function(t){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)}}),Object.assign(zt.Ray.prototype,{isIntersectionBox:function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionPlane:function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)},isIntersectionSphere:function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)}}),Object.assign(zt.Vector3.prototype,{setEulerFromRotationMatrix:function(){console.error("THREE.Vector3: .setEulerFromRotationMatrix() has been removed. Use Euler.setFromRotationMatrix() instead.")},setEulerFromQuaternion:function(){console.error("THREE.Vector3: .setEulerFromQuaternion() has been removed. Use Euler.setFromQuaternion() instead.")},getPositionFromMatrix:function(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)},getScaleFromMatrix:function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)},getColumnFromMatrix:function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)}}),Object.assign(zt.Object3D.prototype,{getChildByName:function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)},renderDepth:function(t){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)}}),Object.defineProperties(zt.Object3D.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=t}},useQuaternion:{get:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")},set:function(t){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Object.defineProperties(zt.LOD.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),zt.PerspectiveCamera.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==e&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(zt.Light.prototype,{onlyShadow:{set:function(t){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(t){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(t){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}}),Object.defineProperties(zt.BufferAttribute.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Please use .count."),this.array.length}}}),Object.assign(zt.BufferGeometry.prototype,{addIndex:function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)},addDrawCall:function(t,e,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)},clearDrawCalls:function(){console.warn("THREE.BufferGeometry: .clearDrawCalls() is now .clearGroups()."),this.clearGroups()},computeTangents:function(){console.warn("THREE.BufferGeometry: .computeTangents() has been removed.")},computeOffsets:function(){console.warn("THREE.BufferGeometry: .computeOffsets() has been removed.")}}),Object.defineProperties(zt.BufferGeometry.prototype,{drawcalls:{get:function(){return console.error("THREE.BufferGeometry: .drawcalls has been renamed to .groups."),this.groups}},offsets:{get:function(){return console.warn("THREE.BufferGeometry: .offsets has been renamed to .groups."),this.groups}}}),Object.defineProperties(zt.Material.prototype,{wrapAround:{get:function(){console.warn("THREE."+this.type+": .wrapAround has been removed.")},set:function(t){console.warn("THREE."+this.type+": .wrapAround has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE."+this.type+": .wrapRGB has been removed."),new zt.Color}}}),Object.defineProperties(zt.MeshPhongMaterial.prototype,{metal:{get:function(){return console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead."),!1},set:function(t){console.warn("THREE.MeshPhongMaterial: .metal has been removed. Use THREE.MeshStandardMaterial instead")}}}),Object.defineProperties(zt.ShaderMaterial.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}}),zt.EventDispatcher.prototype=Object.assign(Object.create({constructor:zt.EventDispatcher,apply:function(t){console.warn("THREE.EventDispatcher: .apply is deprecated, just inherit or Object.assign the prototype to mix-in."),Object.assign(t,this)}}),zt.EventDispatcher.prototype),Object.assign(zt.WebGLRenderer.prototype,{supportsFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsFloatTextures() is now .extensions.get( 'OES_texture_float' )."),this.extensions.get("OES_texture_float")},supportsHalfFloatTextures:function(){return console.warn("THREE.WebGLRenderer: .supportsHalfFloatTextures() is now .extensions.get( 'OES_texture_half_float' )."),this.extensions.get("OES_texture_half_float")},supportsStandardDerivatives:function(){return console.warn("THREE.WebGLRenderer: .supportsStandardDerivatives() is now .extensions.get( 'OES_standard_derivatives' )."),this.extensions.get("OES_standard_derivatives")},supportsCompressedTextureS3TC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTextureS3TC() is now .extensions.get( 'WEBGL_compressed_texture_s3tc' )."),this.extensions.get("WEBGL_compressed_texture_s3tc")},supportsCompressedTexturePVRTC:function(){return console.warn("THREE.WebGLRenderer: .supportsCompressedTexturePVRTC() is now .extensions.get( 'WEBGL_compressed_texture_pvrtc' )."),this.extensions.get("WEBGL_compressed_texture_pvrtc")},supportsBlendMinMax:function(){return console.warn("THREE.WebGLRenderer: .supportsBlendMinMax() is now .extensions.get( 'EXT_blend_minmax' )."),this.extensions.get("EXT_blend_minmax")},supportsVertexTextures:function(){return this.capabilities.vertexTextures},supportsInstancedArrays:function(){return console.warn("THREE.WebGLRenderer: .supportsInstancedArrays() is now .extensions.get( 'ANGLE_instanced_arrays' )."),this.extensions.get("ANGLE_instanced_arrays")},enableScissorTest:function(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)},initMaterial:function(){console.warn("THREE.WebGLRenderer: .initMaterial() has been removed.")},addPrePlugin:function(){console.warn("THREE.WebGLRenderer: .addPrePlugin() has been removed.")},addPostPlugin:function(){console.warn("THREE.WebGLRenderer: .addPostPlugin() has been removed.")},updateShadowMap:function(){console.warn("THREE.WebGLRenderer: .updateShadowMap() has been removed.")}}),Object.defineProperties(zt.WebGLRenderer.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){return this.shadowMap.cullFace},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapCullFace is now .shadowMap.cullFace."),this.shadowMap.cullFace=t}}}),Object.defineProperties(zt.WebGLShadowMap.prototype,{cullFace:{get:function(){return this.renderReverseSided?zt.CullFaceFront:zt.CullFaceBack},set:function(t){t=t!==zt.CullFaceBack;console.warn("WebGLRenderer: .shadowMap.cullFace is deprecated. Set .shadowMap.renderReverseSided to "+t+"."),this.renderReverseSided=t}}}),Object.defineProperties(zt.WebGLRenderTarget.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}}),Object.assign(zt.Audio.prototype,{load:function(t){console.warn("THREE.Audio: .load has been deprecated. Please use THREE.AudioLoader.");var e=this;return(new zt.AudioLoader).load(t,function(t){e.setBuffer(t)}),this}}),Object.assign(zt.AudioAnalyser.prototype,{getData:function(t){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()}}),zt.GeometryUtils={merge:function(t,e,n){var i;console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead."),e instanceof zt.Mesh&&(e.matrixAutoUpdate&&e.updateMatrix(),i=e.matrix,e=e.geometry),t.merge(e,i,n)},center:function(t){return console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead."),t.center()}},zt.ImageUtils={crossOrigin:void 0,loadTexture:function(t,e,n,i){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var r=new zt.TextureLoader,r=(r.setCrossOrigin(this.crossOrigin),r.load(t,n,void 0,i));return e&&(r.mapping=e),r},loadTextureCube:function(t,e,n,i){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var r=new zt.CubeTextureLoader,r=(r.setCrossOrigin(this.crossOrigin),r.load(t,n,void 0,i));return e&&(r.mapping=e),r},loadCompressedTexture:function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},loadCompressedTextureCube:function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")}},zt.Projector=function(){console.error("THREE.Projector has been moved to /examples/js/renderers/Projector.js."),this.projectVector=function(t,e){console.warn("THREE.Projector: .projectVector() is now vector.project()."),t.project(e)},this.unprojectVector=function(t,e){console.warn("THREE.Projector: .unprojectVector() is now vector.unproject()."),t.unproject(e)},this.pickingRay=function(t,e){console.error("THREE.Projector: .pickingRay() is now raycaster.setFromCamera().")}},zt.CanvasRenderer=function(){console.error("THREE.CanvasRenderer has been moved to /examples/js/renderers/CanvasRenderer.js"),this.domElement=document.createElement("canvas"),this.clear=function(){},this.render=function(){},this.setClearColor=function(){},this.setSize=function(){}},zt.CurveUtils={tangentQuadraticBezier:function(t,e,n,i){return 2*(1-t)*(n-e)+2*t*(i-n)},tangentCubicBezier:function(t,e,n,i,r){return-3*e*(1-t)*(1-t)+3*n*(1-t)*(1-t)-6*t*n*(1-t)+6*t*i*(1-t)-3*t*t*i+3*t*t*r},tangentSpline:function(t,e,n,i,r){return 6*t*t-6*t+(3*t*t-4*t+1)+(-6*t*t+6*t)+(3*t*t-2*t)},interpolate:function(t,e,n,i,r){var t=.5*(n-t),i=.5*(i-e),o=r*r;return(2*e-2*n+t+i)*(r*o)+(-3*e+3*n-2*t-i)*o+t*r+e}},zt.SceneUtils={createMultiMaterialObject:function(t,e){for(var n=new zt.Group,i=0,r=e.length;i<r;i++)n.add(new zt.Mesh(t,e[i]));return n},detach:function(t,e,n){t.applyMatrix(e.matrixWorld),e.remove(t),n.add(t)},attach:function(t,e,n){var i=new zt.Matrix4;i.getInverse(n.matrixWorld),t.applyMatrix(i),e.remove(t),n.add(t)}},zt.ShapeUtils={area:function(t){for(var e=t.length,n=0,i=e-1,r=0;r<e;i=r++)n+=t[i].x*t[r].y-t[r].x*t[i].y;return.5*n},triangulate:function(t,e){var n=t.length;if(n<3)return null;var i,r,o=[],a=[],s=[];if(0<zt.ShapeUtils.area(t))for(d=0;d<n;d++)a[d]=d;else for(d=0;d<n;d++)a[d]=n-1-d;for(var l,c,u=n,h=2*u,d=u-1;2<u;){if(h--<=0)return console.warn("THREE.ShapeUtils: Unable to triangulate polygon! in triangulate()"),e?s:o;if(function(t,e,n,i,r,o){var a,s,l=t[o[e]].x,c=t[o[e]].y,u=t[o[n]].x,h=t[o[n]].y,d=t[o[i]].x,p=t[o[i]].y;if(!(Number.EPSILON>(u-l)*(p-c)-(h-c)*(d-l))){for(var f=d-u,m=p-h,g=l-d,v=c-p,y=u-l,_=h-c,b=0;b<r;b++)if(a=t[o[b]].x,s=t[o[b]].y,!(a===l&&s===c||a===u&&s===h||a===d&&s===p)&&f*(s-h)-m*(a-u)>=-Number.EPSILON&&g*(s-p)-v*(a-d)>=-Number.EPSILON&&y*(s-c)-_*(a-l)>=-Number.EPSILON)return;return 1}}(t,i=u<=(i=d)?0:i,d=u<=(d=i+1)?0:d,r=u<=(r=d+1)?0:r,u,a)){for(o.push([t[a[i]],t[a[d]],t[a[r]]]),s.push([a[i],a[d],a[r]]),c=(l=d)+1;c<u;l++,c++)a[l]=a[c];h=2*--u}}return e?s:o},triangulateShape:function(t,e){function x(t,e,n){return t.x!==e.x?t.x<e.x?t.x<=n.x&&n.x<=e.x:e.x<=n.x&&n.x<=t.x:t.y<e.y?t.y<=n.y&&n.y<=e.y:e.y<=n.y&&n.y<=t.y}function b(t,e,n,i,r){var o,a,s,l,c,u,h,d,p=e.x-t.x,f=e.y-t.y,m=i.x-n.x,g=i.y-n.y,v=t.x-n.x,y=t.y-n.y,_=f*m-p*g,b=f*v-p*y;if(Math.abs(_)>Number.EPSILON){if(0<_){if(b<0||_<b)return[];if((d=g*v-m*y)<0||_<d)return[]}else{if(0<b||b<_)return[];if(0<(d=g*v-m*y)||d<_)return[]}return 0===d?!r||0!=b&&b!=_?[t]:[]:d===_?!r||0!=b&&b!=_?[e]:[]:0==b?[n]:b==_?[i]:[{x:t.x+(d=d/_)*p,y:t.y+d*f}]}return 0!=b||g*v!=m*y?[]:(_=0==m&&0==g,(d=0==p&&0==f)&&_?t.x!==n.x||t.y!==n.y?[]:[t]:d?x(n,i,t)?[t]:[]:_?x(t,e,n)?[n]:[]:(b=0!=p?(l=(a=t.x<e.x?(s=(o=t).x,e):(s=(o=e).x,t)).x,(u=n.x<i.x?(h=(c=n).x,i):(h=(c=i).x,n)).x):(l=(a=t.y<e.y?(s=(o=t).y,e):(s=(o=e).y,t)).y,(u=n.y<i.y?(h=(c=n).y,i):(h=(c=i).y,n)).y),s<=h?l<h?[]:l===h?r?[]:[c]:l<=b?[c,a]:[c,u]:b<s?[]:s===b?r?[]:[o]:l<=b?[o,a]:[o,u]))}function w(t,e,n,i){var r=e.x-t.x,e=e.y-t.y,o=n.x-t.x,n=n.y-t.y,a=i.x-t.x,i=i.y-t.y,t=r*n-e*o,r=r*i-e*a;return Math.abs(t)>Number.EPSILON?(e=a*n-i*o,0<t?0<=r&&0<=e:0<=r||0<=e):0<r}for(var n,i,r,o,a={},s=t.concat(),l=0,c=e.length;l<c;l++)Array.prototype.push.apply(s,e[l]);for(h=0,d=s.length;h<d;h++)void 0!==a[r=s[h].x+":"+s[h].y]&&console.warn("THREE.Shape: Duplicate point",r),a[r]=h;for(var t=function(t,a){for(var e,n,i,r,o,s,l,c=t.concat(),u=[],h=[],d=0,p=a.length;d<p;d++)u.push(d);for(var f=0,m=2*u.length;0<u.length;){if(--m<0){console.log("Infinite Loop! Holes left:"+u.length+", Probably Hole outside Shape!");break}for(e=f;e<c.length;e++){for(var g=c[e],v=-1,d=0;d<u.length;d++)if(void 0===h[i=g.x+":"+g.y+":"+(n=u[d])]){for(var y=a[n],_=0;_<y.length;_++)if(r=y[_],function(t,e){var n=c.length-1,i=t-1,r=t+1;if(i=w(c[t],c[i=i<0?n:i],c[r=n<r?0:r],y[e]))return n=y.length-1,w(y[e],y[r=(r=e-1)<0?n:r],y[i=n<(i=e+1)?0:i],c[t])?1:void 0}(e,_)&&!function(t,e){for(var n,i=0;i<c.length;i++)if(n=i+1,n%=c.length,0<b(t,e,c[i],c[n],!0).length)return 1}(g,r)&&!function(t,e){for(var n,i,r,o=0;o<u.length;o++)for(n=a[u[o]],i=0;i<n.length;i++)if(r=i+1,r%=n.length,0<b(t,e,n[i],n[r],!0).length)return 1}(g,r)){v=_,u.splice(d,1),r=c.slice(0,e+1),o=c.slice(e),s=y.slice(v),l=y.slice(0,v+1),c=r.concat(s).concat(l).concat(o),f=e;break}if(0<=v)break;h[i]=!0}if(0<=v)break}}return c}(t,e),u=zt.ShapeUtils.triangulate(t,!1),h=0,d=u.length;h<d;h++)for(i=u[h],n=0;n<3;n++)void 0!==(o=a[r=i[n].x+":"+i[n].y])&&(i[n]=o);return u.concat()},isClockWise:function(t){return zt.ShapeUtils.area(t)<0},b2:function(t,e,n,i){return(r=1-(r=t))*r*e+2*(1-t)*t*n+t*t*i;var r},b3:function(t,e,n,i,r){return(o=1-(o=t))*o*o*e+3*(o=1-t)*o*t*n+3*(1-t)*t*t*i+t*t*t*r;var o}},zt.Curve=function(){},zt.Curve.prototype={constructor:zt.Curve,getPoint:function(t){return console.warn("THREE.Curve: Warning, getPoint() not implemented!"),null},getPointAt:function(t){t=this.getUtoTmapping(t);return this.getPoint(t)},getPoints:function(t){t=t||5;for(var e=[],n=0;n<=t;n++)e.push(this.getPoint(n/t));return e},getSpacedPoints:function(t){t=t||5;for(var e=[],n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(t=t||this.__arcLengthDivisions||200,this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,n,i=[],r=this.getPoint(0),o=0;for(i.push(0),n=1;n<=t;n++)o+=(e=this.getPoint(n/t)).distanceTo(r),i.push(o),r=e;return this.cacheArcLengths=i},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(t,e){for(var n,i=this.getLengths(),r=0,o=i.length,a=e||t*i[o-1],s=0,l=o-1;s<=l;)if((n=i[r=Math.floor(s+(l-s)/2)]-a)<0)s=r+1;else{if(!(0<n)){l=r;break}l=r-1}return i[r=l]===a?r/(o-1):(r+(a-(e=i[r]))/(i[r+1]-e))/(o-1)},getTangent:function(t){var e=t-1e-4,t=t+1e-4,e=(1<t&&(t=1),this.getPoint(e=e<0?0:e));return this.getPoint(t).clone().sub(e).normalize()},getTangentAt:function(t){t=this.getUtoTmapping(t);return this.getTangent(t)}},zt.Curve.create=function(t,e){return t.prototype=Object.create(zt.Curve.prototype),(t.prototype.constructor=t).prototype.getPoint=e,t},zt.CurvePath=function(){this.curves=[],this.autoClose=!1},zt.CurvePath.prototype=Object.assign(Object.create(zt.Curve.prototype),{constructor:zt.CurvePath,add:function(t){this.curves.push(t)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new zt.LineCurve(e,t))},getPoint:function(t){for(var e,n,i=t*this.getLength(),r=this.getCurveLengths(),o=0;o<r.length;){if(r[o]>=i)return n=1-(r[o]-i)/(e=this.curves[o]).getLength(),e.getPointAt(n);o++}return null},getLength:function(){var t=this.getCurveLengths();return t[t.length-1]},getCurveLengths:function(){if(this.cacheLengths&&this.cacheLengths.length===this.curves.length)return this.cacheLengths;for(var t=[],e=0,n=0,i=this.curves.length;n<i;n++)e+=this.curves[n].getLength(),t.push(e);return this.cacheLengths=t},createPointsGeometry:function(t){t=this.getPoints(t);return this.createGeometry(t)},createSpacedPointsGeometry:function(t){t=this.getSpacedPoints(t);return this.createGeometry(t)},createGeometry:function(t){for(var e=new zt.Geometry,n=0,i=t.length;n<i;n++){var r=t[n];e.vertices.push(new zt.Vector3(r.x,r.y,r.z||0))}return e}}),zt.Font=function(t){this.data=t},Object.assign(zt.Font.prototype,{generateShapes:function(t,s,T){void 0===s&&(s=100),void 0===T&&(T=4);for(var S=this.data,e=function(t){for(var e=String(t).split(""),n=s/S.resolution,i=0,r=[],o=0;o<e.length;o++){var a=function(t,e,n){t=S.glyphs[t]||S.glyphs["?"];if(t){var i,r,o,a,s,l,c,u,h,d,p,f=new zt.Path,m=[],g=zt.ShapeUtils.b2,v=zt.ShapeUtils.b3;if(t.o)for(var y=t._cachedOutline||(t._cachedOutline=t.o.split(" ")),_=0,b=y.length;_<b;)switch(y[_++]){case"m":i=y[_++]*e+n,r=y[_++]*e,f.moveTo(i,r);break;case"l":i=y[_++]*e+n,r=y[_++]*e,f.lineTo(i,r);break;case"q":if(o=y[_++]*e+n,a=y[_++]*e,c=y[_++]*e+n,u=y[_++]*e,f.quadraticCurveTo(c,u,o,a),p=m[m.length-1]){s=p.x,l=p.y;for(var x=1;x<=T;x++)g(w=x/T,s,c,o),g(w,l,u,a)}break;case"b":if(o=y[_++]*e+n,a=y[_++]*e,c=y[_++]*e+n,u=y[_++]*e,h=y[_++]*e+n,d=y[_++]*e,f.bezierCurveTo(c,u,h,d,o,a),p=m[m.length-1]){s=p.x,l=p.y;for(var w,x=1;x<=T;x++)v(w=x/T,s,c,h,o),v(w,l,u,d,a)}}return{offset:t.ha*e,path:f}}}(e[o],n,i);i+=a.offset,r.push(a.path)}return r}(t),n=[],i=0,r=e.length;i<r;i++)Array.prototype.push.apply(n,e[i].toShapes());return n}}),zt.Path=function(t){zt.CurvePath.call(this),this.actions=[],t&&this.fromPoints(t)},zt.Path.prototype=Object.assign(Object.create(zt.CurvePath.prototype),{constructor:zt.Path,fromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(var e=1,n=t.length;e<n;e++)this.lineTo(t[e].x,t[e].y)},moveTo:function(t,e){this.actions.push({action:"moveTo",args:[t,e]})},lineTo:function(t,e){var n=this.actions[this.actions.length-1].args,i=n[n.length-2],n=n[n.length-1],i=new zt.LineCurve(new zt.Vector2(i,n),new zt.Vector2(t,e));this.curves.push(i),this.actions.push({action:"lineTo",args:[t,e]})},quadraticCurveTo:function(t,e,n,i){var r=this.actions[this.actions.length-1].args,o=r[r.length-2],r=r[r.length-1],o=new zt.QuadraticBezierCurve(new zt.Vector2(o,r),new zt.Vector2(t,e),new zt.Vector2(n,i));this.curves.push(o),this.actions.push({action:"quadraticCurveTo",args:[t,e,n,i]})},bezierCurveTo:function(t,e,n,i,r,o){var a=this.actions[this.actions.length-1].args,s=a[a.length-2],a=a[a.length-1],s=new zt.CubicBezierCurve(new zt.Vector2(s,a),new zt.Vector2(t,e),new zt.Vector2(n,i),new zt.Vector2(r,o));this.curves.push(s),this.actions.push({action:"bezierCurveTo",args:[t,e,n,i,r,o]})},splineThru:function(t){var e=Array.prototype.slice.call(arguments),n=this.actions[this.actions.length-1].args,i=n[n.length-2],n=n[n.length-1],i=[new zt.Vector2(i,n)],n=(Array.prototype.push.apply(i,t),new zt.SplineCurve(i));this.curves.push(n),this.actions.push({action:"splineThru",args:e})},arc:function(t,e,n,i,r,o){var a=this.actions[this.actions.length-1].args,s=a[a.length-2],a=a[a.length-1];this.absarc(t+s,e+a,n,i,r,o)},absarc:function(t,e,n,i,r,o){this.absellipse(t,e,n,n,i,r,o)},ellipse:function(t,e,n,i,r,o,a,s){var l=this.actions[this.actions.length-1].args,c=l[l.length-2],l=l[l.length-1];this.absellipse(t+c,e+l,n,i,r,o,a,s)},absellipse:function(t,e,n,i,r,o,a,s){var l=[t,e,n,i,r,o,a,s||0],t=new zt.EllipseCurve(t,e,n,i,r,o,a,s),e=(this.curves.push(t),t.getPoint(1));l.push(e.x),l.push(e.y),this.actions.push({action:"ellipse",args:l})},getSpacedPoints:function(t){t=t||40;for(var e=[],n=0;n<t;n++)e.push(this.getPoint(n/t));return this.autoClose&&e.push(e[0]),e},getPoints:function(t){t=t||12;for(var e,n,i,r=zt.ShapeUtils.b2,o=zt.ShapeUtils.b3,a=[],s=0,I=this.actions.length;s<I;s++){var l=this.actions[s],F=l.action,c=l.args;switch(F){case"moveTo":case"lineTo":a.push(new zt.Vector2(c[0],c[1]));break;case"quadraticCurveTo":for(var u=c[2],h=c[3],d=c[0],p=c[1],f=0<a.length?(i=(y=a[a.length-1]).x,y.y):(i=(y=this.actions[s-1].args)[y.length-2],y[y.length-1]),m=1;m<=t;m++){var g=r(k=m/t,i,d,u),v=r(k,f,p,h);a.push(new zt.Vector2(g,v))}break;case"bezierCurveTo":u=c[4],h=c[5],d=c[0],p=c[1],e=c[2],n=c[3],f=0<a.length?(i=(y=a[a.length-1]).x,y.y):(i=(y=this.actions[s-1].args)[y.length-2],y[y.length-1]);for(m=1;m<=t;m++)g=o(k=m/t,i,d,e,u),v=o(k,f,p,n,h),a.push(new zt.Vector2(g,v));break;case"splineThru":for(var y=this.actions[s-1].args,_=[new zt.Vector2(y[y.length-2],y[y.length-1])],b=t*c[0].length,_=_.concat(c[0]),B=new zt.SplineCurve(_),m=1;m<=b;m++)a.push(B.getPointAt(m/b));break;case"arc":for(var x=c[0],w=c[1],T=c[2],S=c[3],C=c[4],E=!!c[5],M=C-S,P=2*t,m=1;m<=P;m++){var k=m/P;A=S+(k=E?k:1-k)*M,g=x+T*Math.cos(A),v=w+T*Math.sin(A),a.push(new zt.Vector2(g,v))}break;case"ellipse":var A,O,R,x=c[0],w=c[1],N=c[2],U=c[3],S=c[4],C=c[5],E=!!c[6],L=c[7],M=C-S,P=2*t;0!==L&&(O=Math.cos(L),R=Math.sin(L));for(m=1;m<=P;m++){var D,k=m/P;A=S+(k=E?k:1-k)*M,g=x+N*Math.cos(A),v=w+U*Math.sin(A),0!==L&&(g=((D=g)-x)*O-(v-w)*R+x,v=(D-x)*R+(v-w)*O+w),a.push(new zt.Vector2(g,v))}}}var j=a[a.length-1];return Math.abs(j.x-a[0].x)<Number.EPSILON&&Math.abs(j.y-a[0].y)<Number.EPSILON&&a.splice(a.length-1,1),this.autoClose&&a.push(a[0]),a},toShapes:function(t,e){function n(t){for(var e=[],n=0,i=t.length;n<i;n++){var r=t[n],o=new zt.Shape;o.actions=r.actions,o.curves=r.curves,e.push(o)}return e}var i=zt.ShapeUtils.isClockWise,r=function(t){for(var e=[],n=new zt.Path,i=0,r=t.length;i<r;i++){var o=t[i],a=o.args,o=o.action;"moveTo"===o&&0!==n.actions.length&&(e.push(n),n=new zt.Path),n[o].apply(n,a)}return 0!==n.actions.length&&e.push(n),e}(this.actions);if(0===r.length)return[];if(!0===e)return n(r);var o,a,s,l=[];if(1===r.length)a=r[0],(s=new zt.Shape).actions=a.actions,s.curves=a.curves,l.push(s);else{var c,u=!i(r[0].getPoints()),u=t?!u:u,h=[],d=[],p=[],f=0;d[f]=void 0,p[f]=[];for(var m=0,g=r.length;m<g;m++)o=i(c=(a=r[m]).getPoints()),(t?!o:o)?(!u&&d[f]&&f++,d[f]={s:new zt.Shape,p:c},d[f].s.actions=a.actions,d[f].s.curves=a.curves,u&&f++,p[f]=[]):p[f].push({h:a,p:c[0]});if(!d[0])return n(r);if(1<d.length){for(var v=!1,y=[],_=0,b=d.length;_<b;_++)h[_]=[];for(_=0,b=d.length;_<b;_++)for(var x=p[_],w=0;w<x.length;w++){for(var T=x[w],S=!0,C=0;C<d.length;C++)!function(t,e){for(var n=e.length,i=!1,r=n-1,o=0;o<n;r=o++){var a=e[r],s=e[o],l=s.x-a.x,c=s.y-a.y;if(Math.abs(c)>Number.EPSILON){if(c<0&&(a=e[o],l=-l,s=e[r],c=-c),!(t.y<a.y||t.y>s.y))if(t.y===a.y){if(t.x===a.x)return 1}else{c=c*(t.x-a.x)-l*(t.y-a.y);if(0==c)return 1;c<0||(i=!i)}}else if(t.y===a.y&&(s.x<=t.x&&t.x<=a.x||a.x<=t.x&&t.x<=s.x))return 1}return i}(T.p,d[C].p)||(_!==C&&y.push({froms:_,tos:C,hole:w}),S?(S=!1,h[C].push(T)):v=!0);S&&h[_].push(T)}0<y.length&&(v||(p=h))}for(var m=0,E=d.length;m<E;m++){s=d[m].s,l.push(s);for(var M,P=0,k=(M=p[m]).length;P<k;P++)s.holes.push(M[P].h)}}return l}}),zt.Shape=function(){zt.Path.apply(this,arguments),this.holes=[]},zt.Shape.prototype=Object.assign(Object.create(zt.Path.prototype),{constructor:zt.Shape,extrude:function(t){return new zt.ExtrudeGeometry(this,t)},makeGeometry:function(t){return new zt.ShapeGeometry(this,t)},getPointsHoles:function(t){for(var e=[],n=0,i=this.holes.length;n<i;n++)e[n]=this.holes[n].getPoints(t);return e},extractAllPoints:function(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}},extractPoints:function(t){return this.extractAllPoints(t)}}),zt.LineCurve=function(t,e){this.v1=t,this.v2=e},zt.LineCurve.prototype=Object.create(zt.Curve.prototype),zt.LineCurve.prototype.constructor=zt.LineCurve,zt.LineCurve.prototype.getPoint=function(t){var e=this.v2.clone().sub(this.v1);return e.multiplyScalar(t).add(this.v1),e},zt.LineCurve.prototype.getPointAt=function(t){return this.getPoint(t)},zt.LineCurve.prototype.getTangent=function(t){return this.v2.clone().sub(this.v1).normalize()},zt.QuadraticBezierCurve=function(t,e,n){this.v0=t,this.v1=e,this.v2=n},zt.QuadraticBezierCurve.prototype=Object.create(zt.Curve.prototype),zt.QuadraticBezierCurve.prototype.constructor=zt.QuadraticBezierCurve,zt.QuadraticBezierCurve.prototype.getPoint=function(t){var e=zt.ShapeUtils.b2;return new zt.Vector2(e(t,this.v0.x,this.v1.x,this.v2.x),e(t,this.v0.y,this.v1.y,this.v2.y))},zt.QuadraticBezierCurve.prototype.getTangent=function(t){var e=zt.CurveUtils.tangentQuadraticBezier;return new zt.Vector2(e(t,this.v0.x,this.v1.x,this.v2.x),e(t,this.v0.y,this.v1.y,this.v2.y)).normalize()},zt.CubicBezierCurve=function(t,e,n,i){this.v0=t,this.v1=e,this.v2=n,this.v3=i},zt.CubicBezierCurve.prototype=Object.create(zt.Curve.prototype),zt.CubicBezierCurve.prototype.constructor=zt.CubicBezierCurve,zt.CubicBezierCurve.prototype.getPoint=function(t){var e=zt.ShapeUtils.b3;return new zt.Vector2(e(t,this.v0.x,this.v1.x,this.v2.x,this.v3.x),e(t,this.v0.y,this.v1.y,this.v2.y,this.v3.y))},zt.CubicBezierCurve.prototype.getTangent=function(t){var e=zt.CurveUtils.tangentCubicBezier;return new zt.Vector2(e(t,this.v0.x,this.v1.x,this.v2.x,this.v3.x),e(t,this.v0.y,this.v1.y,this.v2.y,this.v3.y)).normalize()},zt.SplineCurve=function(t){this.points=null==t?[]:t},zt.SplineCurve.prototype=Object.create(zt.Curve.prototype),zt.SplineCurve.prototype.constructor=zt.SplineCurve,zt.SplineCurve.prototype.getPoint=function(t){var e=this.points,t=(e.length-1)*t,n=Math.floor(t),t=t-n,i=e[0===n?n:n-1],r=e[n],o=e[n>e.length-2?e.length-1:n+1],e=e[n>e.length-3?e.length-1:n+2],n=zt.CurveUtils.interpolate;return new zt.Vector2(n(i.x,r.x,o.x,e.x,t),n(i.y,r.y,o.y,e.y,t))},zt.EllipseCurve=function(t,e,n,i,r,o,a,s){this.aX=t,this.aY=e,this.xRadius=n,this.yRadius=i,this.aStartAngle=r,this.aEndAngle=o,this.aClockwise=a,this.aRotation=s||0},zt.EllipseCurve.prototype=Object.create(zt.Curve.prototype),zt.EllipseCurve.prototype.constructor=zt.EllipseCurve,zt.EllipseCurve.prototype.getPoint=function(t){var e,n,i,r,o=this.aEndAngle-this.aStartAngle,o=(o<0&&(o+=2*Math.PI),o>2*Math.PI&&(o-=2*Math.PI),t=!0===this.aClockwise?this.aEndAngle+(1-t)*(2*Math.PI-o):this.aStartAngle+t*o,this.aX+this.xRadius*Math.cos(t)),t=this.aY+this.yRadius*Math.sin(t);return 0!==this.aRotation&&(e=Math.cos(this.aRotation),n=Math.sin(this.aRotation),r=t,o=((i=o)-this.aX)*e-(r-this.aY)*n+this.aX,t=(i-this.aX)*n+(r-this.aY)*e+this.aY),new zt.Vector2(o,t)},zt.ArcCurve=function(t,e,n,i,r,o){zt.EllipseCurve.call(this,t,e,n,n,i,r,o)},zt.ArcCurve.prototype=Object.create(zt.EllipseCurve.prototype),zt.ArcCurve.prototype.constructor=zt.ArcCurve,zt.LineCurve3=zt.Curve.create(function(t,e){this.v1=t,this.v2=e},function(t){var e=new zt.Vector3;return e.subVectors(this.v2,this.v1),e.multiplyScalar(t),e.add(this.v1),e}),zt.QuadraticBezierCurve3=zt.Curve.create(function(t,e,n){this.v0=t,this.v1=e,this.v2=n},function(t){var e=zt.ShapeUtils.b2;return new zt.Vector3(e(t,this.v0.x,this.v1.x,this.v2.x),e(t,this.v0.y,this.v1.y,this.v2.y),e(t,this.v0.z,this.v1.z,this.v2.z))}),zt.CubicBezierCurve3=zt.Curve.create(function(t,e,n,i){this.v0=t,this.v1=e,this.v2=n,this.v3=i},function(t){var e=zt.ShapeUtils.b3;return new zt.Vector3(e(t,this.v0.x,this.v1.x,this.v2.x,this.v3.x),e(t,this.v0.y,this.v1.y,this.v2.y,this.v3.y),e(t,this.v0.z,this.v1.z,this.v2.z,this.v3.z))}),zt.SplineCurve3=zt.Curve.create(function(t){console.warn("THREE.SplineCurve3 will be deprecated. Please use THREE.CatmullRomCurve3"),this.points=null==t?[]:t},function(t){var e=this.points,t=(e.length-1)*t,n=Math.floor(t),t=t-n,i=e[0==n?n:n-1],r=e[n],o=e[n>e.length-2?e.length-1:n+1],e=e[n>e.length-3?e.length-1:n+2],n=zt.CurveUtils.interpolate;return new zt.Vector3(n(i.x,r.x,o.x,e.x,t),n(i.y,r.y,o.y,e.y,t),n(i.z,r.z,o.z,e.z,t))}),zt.CatmullRomCurve3=(un=new zt.Vector3,hn=new k,dn=new k,pn=new k,k.prototype.init=function(t,e,n,i){this.c0=t,this.c1=n,this.c2=-3*t+3*e-2*n-i,this.c3=2*t-2*e+n+i},k.prototype.initNonuniformCatmullRom=function(t,e,n,i,r,o,a){t=(e-t)/r-(n-t)/(r+o)+(n-e)/o,r=(n-e)/o-(i-e)/(o+a)+(i-n)/a;this.init(e,n,t*=o,r*=o)},k.prototype.initCatmullRom=function(t,e,n,i,r){this.init(e,n,r*(n-t),r*(i-e))},k.prototype.calc=function(t){var e=t*t;return this.c0+this.c1*t+this.c2*e+this.c3*(e*t)},zt.Curve.create(function(t){this.points=t||[],this.closed=!1},function(t){var e,n,i,r,o,a=this.points,s=a.length;return s<2&&console.log("duh, you need at least 2 points"),e=(t=(s-(this.closed?0:1))*t)-(t=Math.floor(t)),this.closed?t+=0<t?0:(Math.floor(Math.abs(t)/a.length)+1)*a.length:0===e&&t===s-1&&(t=s-2,e=1),n=this.closed||0<t?a[(t-1)%s]:(un.subVectors(a[0],a[1]).add(a[0]),un),i=a[t%s],r=a[(t+1)%s],t=this.closed||t+2<s?a[(t+2)%s]:(un.subVectors(a[s-1],a[s-2]).add(a[s-1]),un),void 0===this.type||"centripetal"===this.type||"chordal"===this.type?(a="chordal"===this.type?.5:.25,s=Math.pow(n.distanceToSquared(i),a),(o=Math.pow(i.distanceToSquared(r),a))<1e-4&&(o=1),s<1e-4&&(s=o),(a=Math.pow(r.distanceToSquared(t),a))<1e-4&&(a=o),hn.initNonuniformCatmullRom(n.x,i.x,r.x,t.x,s,o,a),dn.initNonuniformCatmullRom(n.y,i.y,r.y,t.y,s,o,a),pn.initNonuniformCatmullRom(n.z,i.z,r.z,t.z,s,o,a)):"catmullrom"===this.type&&(s=void 0!==this.tension?this.tension:.5,hn.initCatmullRom(n.x,i.x,r.x,t.x,s),dn.initCatmullRom(n.y,i.y,r.y,t.y,s),pn.initCatmullRom(n.z,i.z,r.z,t.z,s)),new zt.Vector3(hn.calc(e),dn.calc(e),pn.calc(e))})),zt.ClosedSplineCurve3=function(t){console.warn("THREE.ClosedSplineCurve3 has been deprecated. Please use THREE.CatmullRomCurve3."),zt.CatmullRomCurve3.call(this,t),this.type="catmullrom",this.closed=!0},zt.ClosedSplineCurve3.prototype=Object.create(zt.CatmullRomCurve3.prototype),zt.BoxGeometry=function(t,e,n,i,r,o){zt.Geometry.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:o},this.fromBufferGeometry(new zt.BoxBufferGeometry(t,e,n,i,r,o)),this.mergeVertices()},zt.BoxGeometry.prototype=Object.create(zt.Geometry.prototype),zt.BoxGeometry.prototype.constructor=zt.BoxGeometry,zt.CubeGeometry=zt.BoxGeometry,zt.BoxBufferGeometry=function(t,e,n,i,r,o){zt.BufferGeometry.call(this),this.type="BoxBufferGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:o};var P=this,a=(i=Math.floor(i)||1,r=Math.floor(r)||1,o=Math.floor(o)||1,a=0,a=(a+=(i+1)*(r+1)*2)+(i+1)*(o+1)*2+(o+1)*(r+1)*2),s=(s=0,6*(s=(s+=i*r*2)+i*o*2+o*r*2)),k=new(65535<s?Uint32Array:Uint16Array)(s),A=new Float32Array(3*a),O=new Float32Array(3*a),R=new Float32Array(2*a),L=0,D=0,j=0,I=0,F=0;function l(t,e,n,i,r,o,a,s,l,c,u){for(var h=o/l,d=a/c,p=o/2,f=a/2,m=s/2,g=l+1,v=c+1,y=0,_=0,b=new zt.Vector3,x=0;x<v;x++)for(var w=x*d-f,T=0;T<g;T++)b[t]=(T*h-p)*i,b[e]=w*r,b[n]=m,A[L]=b.x,A[L+1]=b.y,A[L+2]=b.z,b[t]=0,b[e]=0,b[n]=0<s?1:-1,O[L]=b.x,O[L+1]=b.y,O[L+2]=b.z,R[D]=T/l,R[D+1]=1-x/c,L+=3,D+=2,y+=1;for(x=0;x<c;x++)for(T=0;T<l;T++){var S=I+T+g*x,C=I+T+g*(x+1),E=I+(T+1)+g*(x+1),M=I+(T+1)+g*x;k[j]=S,k[j+1]=C,k[j+2]=M,k[j+3]=C,k[j+4]=E,k[j+5]=M,j+=6,_+=6}P.addGroup(F,_,u),F+=_,I+=y}l("z","y","x",-1,-1,n,e,t,o,r,0),l("z","y","x",1,-1,n,e,-t,o,r,1),l("x","z","y",1,1,t,n,e,i,o,2),l("x","z","y",1,-1,t,n,-e,i,o,3),l("x","y","z",1,-1,t,e,n,i,r,4),l("x","y","z",-1,-1,t,e,-n,i,r,5),this.setIndex(new zt.BufferAttribute(k,1)),this.addAttribute("position",new zt.BufferAttribute(A,3)),this.addAttribute("normal",new zt.BufferAttribute(O,3)),this.addAttribute("uv",new zt.BufferAttribute(R,2))},zt.BoxBufferGeometry.prototype=Object.create(zt.BufferGeometry.prototype),zt.BoxBufferGeometry.prototype.constructor=zt.BoxBufferGeometry,zt.CircleGeometry=function(t,e,n,i){zt.Geometry.call(this),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},this.fromBufferGeometry(new zt.CircleBufferGeometry(t,e,n,i))},zt.CircleGeometry.prototype=Object.create(zt.Geometry.prototype),zt.CircleGeometry.prototype.constructor=zt.CircleGeometry,zt.CircleBufferGeometry=function(t,e,n,i){zt.BufferGeometry.call(this),this.type="CircleBufferGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},t=t||50,e=void 0!==e?Math.max(3,e):8,n=void 0!==n?n:0,i=void 0!==i?i:2*Math.PI;var r=e+2,o=new Float32Array(3*r),a=new Float32Array(3*r),s=new Float32Array(2*r);a[2]=1,s[0]=.5,s[1]=.5;for(var l=0,c=3,u=2;l<=e;l++,c+=3,u+=2){var h=n+l/e*i;o[c]=t*Math.cos(h),o[c+1]=t*Math.sin(h),a[c+2]=1,s[u]=(o[c]/t+1)/2,s[u+1]=(o[c+1]/t+1)/2}for(var d=[],c=1;c<=e;c++)d.push(c,c+1,0);this.setIndex(new zt.BufferAttribute(new Uint16Array(d),1)),this.addAttribute("position",new zt.BufferAttribute(o,3)),this.addAttribute("normal",new zt.BufferAttribute(a,3)),this.addAttribute("uv",new zt.BufferAttribute(s,2)),this.boundingSphere=new zt.Sphere(new zt.Vector3,t)},zt.CircleBufferGeometry.prototype=Object.create(zt.BufferGeometry.prototype),zt.CircleBufferGeometry.prototype.constructor=zt.CircleBufferGeometry,zt.CylinderBufferGeometry=function(p,f,t,m,e,n,g,v){zt.BufferGeometry.call(this),this.type="CylinderBufferGeometry",this.parameters={radiusTop:p,radiusBottom:f,height:t,radialSegments:m,heightSegments:e,openEnded:n,thetaStart:g,thetaLength:v};var i,r,y=this,o=(p=void 0!==p?p:20,f=void 0!==f?f:20,t=void 0!==t?t:100,m=Math.floor(m)||8,e=Math.floor(e)||1,n=void 0!==n&&n,g=void 0!==g?g:0,v=void 0!==v?v:2*Math.PI,0),a=(!1===n&&(0<p&&o++,0<f)&&o++,function(){var t=(m+1)*(e+1);!1===n&&(t+=(m+1)*o+m*o);return t}()),s=function(){var t=m*e*2*3;!1===n&&(t+=m*o*3);return t}(),_=new zt.BufferAttribute(new(65535<s?Uint32Array:Uint16Array)(s),1),b=new zt.BufferAttribute(new Float32Array(3*a),3),x=new zt.BufferAttribute(new Float32Array(3*a),3),w=new zt.BufferAttribute(new Float32Array(2*a),2),T=0,S=0,l=[],C=t/2,E=0,c=new zt.Vector3,u=new zt.Vector3,h=0,d=(f-p)/t;for(r=0;r<=e;r++){var M=[],P=r/e,k=P*(f-p)+p;for(i=0;i<=m;i++){var A=i/m;u.x=k*Math.sin(A*v+g),u.y=-P*t+C,u.z=k*Math.cos(A*v+g),b.setXYZ(T,u.x,u.y,u.z),c.copy(u),(0===p&&0===r||0===f&&r===e)&&(c.x=Math.sin(A*v+g),c.z=Math.cos(A*v+g)),c.setY(Math.sqrt(c.x*c.x+c.z*c.z)*d).normalize(),x.setXYZ(T,c.x,c.y,c.z),w.setXY(T,A,1-P),M.push(T),T++}l.push(M)}for(i=0;i<m;i++)for(r=0;r<e;r++){var O=l[r][i],R=l[r+1][i],L=l[r+1][i+1],D=l[r][i+1];_.setX(S,O),S++,_.setX(S,R),S++,_.setX(S,D),S++,_.setX(S,R),S++,_.setX(S,L),S++,_.setX(S,D),S++,h+=6}function j(t){for(var e,n=new zt.Vector2,i=new zt.Vector3,r=0,o=!0===t?p:f,a=!0===t?1:-1,s=T,l=1;l<=m;l++)b.setXYZ(T,0,C*a,0),x.setXYZ(T,0,a,0),n.x=.5,n.y=.5,w.setXY(T,n.x,n.y),T++;for(e=T,l=0;l<=m;l++){var c=l/m*v+g,u=Math.cos(c),c=Math.sin(c);i.x=o*c,i.y=C*a,i.z=o*u,b.setXYZ(T,i.x,i.y,i.z),x.setXYZ(T,0,a,0),n.x=.5*u+.5,n.y=.5*c*a+.5,w.setXY(T,n.x,n.y),T++}for(l=0;l<m;l++){var h=s+l,d=e+l;!0===t?(_.setX(S,d),S++,_.setX(S,d+1)):(_.setX(S,d+1),S++,_.setX(S,d)),S++,_.setX(S,h),S++,r+=3}y.addGroup(E,r,!0===t?1:2),E+=r}y.addGroup(E,h,0),E+=h,!1===n&&(0<p&&j(!0),0<f)&&j(!1),this.setIndex(_),this.addAttribute("position",b),this.addAttribute("normal",x),this.addAttribute("uv",w)},zt.CylinderBufferGeometry.prototype=Object.create(zt.BufferGeometry.prototype),zt.CylinderBufferGeometry.prototype.constructor=zt.CylinderBufferGeometry,zt.CylinderGeometry=function(t,e,n,i,r,o,a,s){zt.Geometry.call(this),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:n,radialSegments:i,heightSegments:r,openEnded:o,thetaStart:a,thetaLength:s},this.fromBufferGeometry(new zt.CylinderBufferGeometry(t,e,n,i,r,o,a,s)),this.mergeVertices()},zt.CylinderGeometry.prototype=Object.create(zt.Geometry.prototype),zt.CylinderGeometry.prototype.constructor=zt.CylinderGeometry,zt.ConeBufferGeometry=function(t,e,n,i,r,o,a){zt.CylinderBufferGeometry.call(this,0,t,e,n,i,r,o,a),this.type="ConeBufferGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,thetaStart:o,thetaLength:a}},zt.ConeBufferGeometry.prototype=Object.create(zt.BufferGeometry.prototype),zt.ConeBufferGeometry.prototype.constructor=zt.ConeBufferGeometry,zt.ConeGeometry=function(t,e,n,i,r,o,a){zt.CylinderGeometry.call(this,0,t,e,n,i,r,o,a),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:o,thetaLength:a}},zt.ConeGeometry.prototype=Object.create(zt.CylinderGeometry.prototype),zt.ConeGeometry.prototype.constructor=zt.ConeGeometry,zt.EdgesGeometry=function(t,e){zt.BufferGeometry.call(this),e=void 0!==e?e:1;var n=Math.cos(zt.Math.DEG2RAD*e),i=[0,0],r={};function o(t,e){return t-e}for(var a,s=["a","b","c"],l=(t instanceof zt.BufferGeometry?(a=new zt.Geometry).fromBufferGeometry(t):a=t.clone(),a.mergeVertices(),a.computeFaceNormals(),a.vertices),c=a.faces,u=0,h=c.length;u<h;u++)for(var d=c[u],p=0;p<3;p++)i[0]=d[s[p]],i[1]=d[s[(p+1)%3]],i.sort(o),void 0===r[f=i.toString()]?r[f]={vert1:i[0],vert2:i[1],face1:u,face2:void 0}:r[f].face2=u;var f,m=[];for(f in r){var g,v=r[f];(void 0===v.face2||c[v.face1].normal.dot(c[v.face2].normal)<=n)&&(g=l[v.vert1],m.push(g.x),m.push(g.y),m.push(g.z),g=l[v.vert2],m.push(g.x),m.push(g.y),m.push(g.z))}this.addAttribute("position",new zt.BufferAttribute(new Float32Array(m),3))},zt.EdgesGeometry.prototype=Object.create(zt.BufferGeometry.prototype),zt.EdgesGeometry.prototype.constructor=zt.EdgesGeometry,zt.ExtrudeGeometry=function(t,e){void 0===t?t=[]:(zt.Geometry.call(this),this.type="ExtrudeGeometry",t=Array.isArray(t)?t:[t],this.addShapeList(t,e),this.computeFaceNormals())},zt.ExtrudeGeometry.prototype=Object.create(zt.Geometry.prototype),zt.ExtrudeGeometry.prototype.constructor=zt.ExtrudeGeometry,zt.ExtrudeGeometry.prototype.addShapeList=function(t,e){for(var n=t.length,i=0;i<n;i++){var r=t[i];this.addShape(r,e)}},zt.ExtrudeGeometry.prototype.addShape=function(I,t){var e,n,i,r,o,a,F=void 0!==t.amount?t.amount:100,s=void 0!==t.bevelThickness?t.bevelThickness:6,l=void 0!==t.bevelSize?t.bevelSize:s-2,d=void 0!==t.bevelSegments?t.bevelSegments:3,c=void 0===t.bevelEnabled||t.bevelEnabled,B=void 0!==t.curveSegments?t.curveSegments:12,p=void 0!==t.steps?t.steps:1,N=t.extrudePath,u=!1,U=void 0!==t.UVGenerator?t.UVGenerator:zt.ExtrudeGeometry.WorldUVGenerator,f=(N&&(e=N.getSpacedPoints(p),c=!(u=!0),n=void 0!==t.frames?t.frames:new zt.TubeGeometry.FrenetFrames(N,p,!1),i=new zt.Vector3,r=new zt.Vector3,o=new zt.Vector3),c||(l=s=d=0),this),m=this.vertices.length,t=I.extractPoints(B),h=t.shape,g=t.holes;if(!zt.ShapeUtils.isClockWise(h))for(h=h.reverse(),_=0,b=g.length;_<b;_++)a=g[_],zt.ShapeUtils.isClockWise(a)&&(g[_]=a.reverse());for(var v=zt.ShapeUtils.triangulateShape(h,g),y=h,_=0,b=g.length;_<b;_++)a=g[_],h=h.concat(a);function x(t,e,n){return e||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().multiplyScalar(n).add(t)}var w,T,z,S,C,E,M=h.length,V=v.length;function G(t,e,n){var i=1,r=t.x-e.x,o=t.y-e.y,a=n.x-t.x,s=n.y-t.y,l=r*r+o*o;if(Math.abs(r*s-o*a)>Number.EPSILON){var c=Math.sqrt(l),u=Math.sqrt(a*a+s*s),h=e.x-o/c,e=e.y+r/c,c=((n.x-s/u-h)*s-(n.y+a/u-e)*a)/(r*s-o*a),n=(u=h+r*c-t.x)*u+(h=e+o*c-t.y)*h;if(n<=2)return new zt.Vector2(u,h);i=Math.sqrt(n/2)}else{e=!1;r>Number.EPSILON?a>Number.EPSILON&&(e=!0):r<-Number.EPSILON?a<-Number.EPSILON&&(e=!0):Math.sign(o)===Math.sign(s)&&(e=!0),i=e?(u=-o,h=r,Math.sqrt(l)):(u=r,h=o,Math.sqrt(l/2))}return new zt.Vector2(u/i,h/i)}for(var H=[],P=0,k=y.length,A=k-1,O=P+1;P<k;P++,A++,O++)H[P]=G(y[P],y[A=A===k?0:A],y[O=O===k?0:O]);var R,L,W=[],$=H.concat();for(_=0,b=g.length;_<b;_++){for(a=g[_],R=[],P=0,A=(k=a.length)-1,O=P+1;P<k;P++,A++,O++)A===k&&(A=0),O===k&&(O=0),R[P]=G(a[P],a[A],a[O]);W.push(R),$=$.concat(R)}for(w=0;w<d;w++){for(S=s*(1-(z=w/d)),T=l*Math.sin(z*Math.PI/2),P=0,k=y.length;P<k;P++)j((C=x(y[P],H[P],T)).x,C.y,-S);for(_=0,b=g.length;_<b;_++)for(a=g[_],R=W[_],P=0,k=a.length;P<k;P++)j((C=x(a[P],R[P],T)).x,C.y,-S)}for(T=l,P=0;P<M;P++)C=c?x(h[P],$[P],T):h[P],u?(r.copy(n.normals[0]).multiplyScalar(C.x),i.copy(n.binormals[0]).multiplyScalar(C.y),o.copy(e[0]).add(r).add(i),j(o.x,o.y,o.z)):j(C.x,C.y,0);for(L=1;L<=p;L++)for(P=0;P<M;P++)C=c?x(h[P],$[P],T):h[P],u?(r.copy(n.normals[L]).multiplyScalar(C.x),i.copy(n.binormals[L]).multiplyScalar(C.y),o.copy(e[L]).add(r).add(i),j(o.x,o.y,o.z)):j(C.x,C.y,F/p*L);for(w=d-1;0<=w;w--){for(S=s*(1-(z=w/d)),T=l*Math.sin(z*Math.PI/2),P=0,k=y.length;P<k;P++)j((C=x(y[P],H[P],T)).x,C.y,F+S);for(_=0,b=g.length;_<b;_++)for(a=g[_],R=W[_],P=0,k=a.length;P<k;P++)C=x(a[P],R[P],T),u?j(C.x,C.y+e[p-1].y,e[p-1].x+S):j(C.x,C.y,F+S)}if(c){var D=0*M;for(P=0;P<V;P++)Y((E=v[P])[2]+D,E[1]+D,E[0]+D);for(D=M*(p+2*d),P=0;P<V;P++)Y((E=v[P])[0]+D,E[1]+D,E[2]+D)}else{for(P=0;P<V;P++)Y((E=v[P])[2],E[1],E[0]);for(P=0;P<V;P++)Y((E=v[P])[0]+M*p,E[1]+M*p,E[2]+M*p)}var q=0;for(X(y,q),q+=y.length,_=0,b=g.length;_<b;_++)X(a=g[_],q),q+=a.length;function X(t,e){var n,i;for(P=t.length;0<=--P;){(i=(n=P)-1)<0&&(i=t.length-1);for(var r=0,o=p+2*d,r=0;r<o;r++){var a=M*r,s=M*(r+1),l=(h=u=c=l=void 0,e+n+a),c=e+i+a,u=e+i+s,h=e+n+s;l+=m,c+=m,u+=m,h+=m,f.faces.push(new zt.Face3(l,c,h,null,null,1)),f.faces.push(new zt.Face3(c,u,h,null,null,1)),l=U.generateSideWallUV(f,l,c,u,h),f.faceVertexUvs[0].push([l[0],l[1],l[3]]),f.faceVertexUvs[0].push([l[1],l[2],l[3]])}}}function j(t,e,n){f.vertices.push(new zt.Vector3(t,e,n))}function Y(t,e,n){f.faces.push(new zt.Face3(t+=m,e+=m,n+=m,null,null,0));t=U.generateTopUV(f,t,e,n);f.faceVertexUvs[0].push(t)}},zt.ExtrudeGeometry.WorldUVGenerator={generateTopUV:function(t,e,n,i){t=t.vertices,e=t[e],n=t[n],t=t[i];return[new zt.Vector2(e.x,e.y),new zt.Vector2(n.x,n.y),new zt.Vector2(t.x,t.y)]},generateSideWallUV:function(t,e,n,i,r){t=t.vertices,e=t[e],n=t[n],i=t[i],t=t[r];return Math.abs(e.y-n.y)<.01?[new zt.Vector2(e.x,1-e.z),new zt.Vector2(n.x,1-n.z),new zt.Vector2(i.x,1-i.z),new zt.Vector2(t.x,1-t.z)]:[new zt.Vector2(e.y,1-e.z),new zt.Vector2(n.y,1-n.z),new zt.Vector2(i.y,1-i.z),new zt.Vector2(t.y,1-t.z)]}},zt.ShapeGeometry=function(t,e){zt.Geometry.call(this),!(this.type="ShapeGeometry")===Array.isArray(t)&&(t=[t]),this.addShapeList(t,e),this.computeFaceNormals()},zt.ShapeGeometry.prototype=Object.create(zt.Geometry.prototype),zt.ShapeGeometry.prototype.constructor=zt.ShapeGeometry,zt.ShapeGeometry.prototype.addShapeList=function(t,e){for(var n=0,i=t.length;n<i;n++)this.addShape(t[n],e);return this},zt.ShapeGeometry.prototype.addShape=function(t,e){var n,i=void 0!==(e=void 0===e?{}:e).curveSegments?e.curveSegments:12,r=e.material,o=void 0===e.UVGenerator?zt.ExtrudeGeometry.WorldUVGenerator:e.UVGenerator,a=this.vertices.length,e=t.extractPoints(i),s=e.shape,l=e.holes;if(!zt.ShapeUtils.isClockWise(s))for(s=s.reverse(),u=0,h=l.length;u<h;u++)n=l[u],zt.ShapeUtils.isClockWise(n)&&(l[u]=n.reverse());for(var c=zt.ShapeUtils.triangulateShape(s,l),u=0,h=l.length;u<h;u++)n=l[u],s=s.concat(n);var d,p=s.length,f=c.length;for(u=0;u<p;u++)d=s[u],this.vertices.push(new zt.Vector3(d.x,d.y,0));for(u=0;u<f;u++){var m=(v=c[u])[0]+a,g=v[1]+a,v=v[2]+a;this.faces.push(new zt.Face3(m,g,v,null,null,r)),this.faceVertexUvs[0].push(o.generateTopUV(this,m,g,v))}},zt.LatheBufferGeometry=function(t,e,n,i){zt.BufferGeometry.call(this),this.type="LatheBufferGeometry",this.parameters={points:t,segments:e,phiStart:n,phiLength:i},e=Math.floor(e)||12,n=n||0,i=i||2*Math.PI,i=zt.Math.clamp(i,0,2*Math.PI);for(var r=(e+1)*t.length,o=e*t.length*2*3,a=new zt.BufferAttribute(new(65535<o?Uint32Array:Uint16Array)(o),1),s=new zt.BufferAttribute(new Float32Array(3*r),3),l=new zt.BufferAttribute(new Float32Array(2*r),2),c=0,u=0,h=(t.length,1/e),d=new zt.Vector3,p=new zt.Vector2,f=0;f<=e;f++)for(var m=n+f*h*i,g=Math.sin(m),v=Math.cos(m),y=0;y<=t.length-1;y++)d.x=t[y].x*g,d.y=t[y].y,d.z=t[y].x*v,s.setXYZ(c,d.x,d.y,d.z),p.x=f/e,p.y=y/(t.length-1),l.setXY(c,p.x,p.y),c++;for(f=0;f<e;f++)for(y=0;y<t.length-1;y++){var _,b=_=y+f*t.length,x=_+t.length,w=_+t.length+1,T=_+1;a.setX(u,b),u++,a.setX(u,x),u++,a.setX(u,T),u++,a.setX(u,x),u++,a.setX(u,w),u++,a.setX(u,T),u++}if(this.setIndex(a),this.addAttribute("position",s),this.addAttribute("uv",l),this.computeVertexNormals(),i===2*Math.PI){var S=this.attributes.normal.array,C=new zt.Vector3,E=new zt.Vector3,M=new zt.Vector3;for(_=e*t.length*3,y=f=0;f<t.length;f++,y+=3)C.x=S[y+0],C.y=S[y+1],C.z=S[y+2],E.x=S[_+y+0],E.y=S[_+y+1],E.z=S[_+y+2],M.addVectors(C,E).normalize(),S[y+0]=S[_+y+0]=M.x,S[y+1]=S[_+y+1]=M.y,S[y+2]=S[_+y+2]=M.z}},zt.LatheBufferGeometry.prototype=Object.create(zt.BufferGeometry.prototype),zt.LatheBufferGeometry.prototype.constructor=zt.LatheBufferGeometry,zt.LatheGeometry=function(t,e,n,i){zt.Geometry.call(this),this.type="LatheGeometry",this.parameters={points:t,segments:e,phiStart:n,phiLength:i},this.fromBufferGeometry(new zt.LatheBufferGeometry(t,e,n,i)),this.mergeVertices()},zt.LatheGeometry.prototype=Object.create(zt.Geometry.prototype),zt.LatheGeometry.prototype.constructor=zt.LatheGeometry,zt.PlaneGeometry=function(t,e,n,i){zt.Geometry.call(this),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:i},this.fromBufferGeometry(new zt.PlaneBufferGeometry(t,e,n,i))},zt.PlaneGeometry.prototype=Object.create(zt.Geometry.prototype),zt.PlaneGeometry.prototype.constructor=zt.PlaneGeometry,zt.PlaneBufferGeometry=function(t,e,n,i){zt.BufferGeometry.call(this),this.type="PlaneBufferGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:i};for(var r=t/2,o=e/2,a=Math.floor(n)||1,s=Math.floor(i)||1,l=a+1,c=s+1,u=t/a,h=e/s,d=new Float32Array(l*c*3),p=new Float32Array(l*c*3),f=new Float32Array(l*c*2),m=0,g=0,v=0;v<c;v++)for(var y=v*h-o,_=0;_<l;_++)d[m]=_*u-r,d[m+1]=-y,p[m+2]=1,f[g]=_/a,f[g+1]=1-v/s,m+=3,g+=2;for(var m=0,b=new(65535<d.length/3?Uint32Array:Uint16Array)(a*s*6),v=0;v<s;v++)for(_=0;_<a;_++){var x=_+l*(v+1),w=_+1+l*(v+1),T=_+1+l*v;b[m]=_+l*v,b[m+1]=x,b[m+2]=T,b[m+3]=x,b[m+4]=w,b[m+5]=T,m+=6}this.setIndex(new zt.BufferAttribute(b,1)),this.addAttribute("position",new zt.BufferAttribute(d,3)),this.addAttribute("normal",new zt.BufferAttribute(p,3)),this.addAttribute("uv",new zt.BufferAttribute(f,2))},zt.PlaneBufferGeometry.prototype=Object.create(zt.BufferGeometry.prototype),zt.PlaneBufferGeometry.prototype.constructor=zt.PlaneBufferGeometry,zt.RingBufferGeometry=function(t,e,n,i,r,o){zt.BufferGeometry.call(this),this.type="RingBufferGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:n,phiSegments:i,thetaStart:r,thetaLength:o},t=t||20,e=e||50,r=void 0!==r?r:0,o=void 0!==o?o:2*Math.PI;for(var a=((n=void 0!==n?Math.max(3,n):8)+1)*((i=void 0!==i?Math.max(1,i):1)+1),s=n*i*2*3,l=new zt.BufferAttribute(new(65535<s?Uint32Array:Uint16Array)(s),1),c=new zt.BufferAttribute(new Float32Array(3*a),3),u=new zt.BufferAttribute(new Float32Array(3*a),3),h=new zt.BufferAttribute(new Float32Array(2*a),2),d=0,p=0,f=t,m=(e-t)/i,g=new zt.Vector3,v=new zt.Vector2,y=0;y<=i;y++){for(b=0;b<=n;b++)x=r+b/n*o,g.x=f*Math.cos(x),g.y=f*Math.sin(x),c.setXYZ(d,g.x,g.y,g.z),u.setXYZ(d,0,0,1),v.x=(g.x/e+1)/2,v.y=(g.y/e+1)/2,h.setXY(d,v.x,v.y),d++;f+=m}for(y=0;y<i;y++)for(var _=y*(n+1),b=0;b<n;b++){var x,w=x=b+_,T=x+n+1,S=x+n+2,C=x+1;l.setX(p,w),p++,l.setX(p,T),p++,l.setX(p,S),p++,l.setX(p,w),p++,l.setX(p,S),p++,l.setX(p,C),p++}this.setIndex(l),this.addAttribute("position",c),this.addAttribute("normal",u),this.addAttribute("uv",h)},zt.RingBufferGeometry.prototype=Object.create(zt.BufferGeometry.prototype),zt.RingBufferGeometry.prototype.constructor=zt.RingBufferGeometry,zt.RingGeometry=function(t,e,n,i,r,o){zt.Geometry.call(this),this.type="RingGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:n,phiSegments:i,thetaStart:r,thetaLength:o},this.fromBufferGeometry(new zt.RingBufferGeometry(t,e,n,i,r,o))},zt.RingGeometry.prototype=Object.create(zt.Geometry.prototype),zt.RingGeometry.prototype.constructor=zt.RingGeometry,zt.SphereGeometry=function(t,e,n,i,r,o,a){zt.Geometry.call(this),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:i,phiLength:r,thetaStart:o,thetaLength:a},this.fromBufferGeometry(new zt.SphereBufferGeometry(t,e,n,i,r,o,a))},zt.SphereGeometry.prototype=Object.create(zt.Geometry.prototype),zt.SphereGeometry.prototype.constructor=zt.SphereGeometry,zt.SphereBufferGeometry=function(t,e,n,i,r,o,a){zt.BufferGeometry.call(this),this.type="SphereBufferGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:i,phiLength:r,thetaStart:o,thetaLength:a},t=t||50,e=Math.max(3,Math.floor(e)||8),n=Math.max(2,Math.floor(n)||6),i=void 0!==i?i:0,r=void 0!==r?r:2*Math.PI;for(var s=(o=void 0!==o?o:0)+(a=void 0!==a?a:Math.PI),l=(e+1)*(n+1),c=new zt.BufferAttribute(new Float32Array(3*l),3),u=new zt.BufferAttribute(new Float32Array(3*l),3),h=new zt.BufferAttribute(new Float32Array(2*l),2),d=0,p=[],f=new zt.Vector3,m=0;m<=n;m++){for(var g=[],v=m/n,y=0;y<=e;y++){var _=y/e,b=-t*Math.cos(i+_*r)*Math.sin(o+v*a),x=t*Math.cos(o+v*a),w=t*Math.sin(i+_*r)*Math.sin(o+v*a);f.set(b,x,w).normalize(),c.setXYZ(d,b,x,w),u.setXYZ(d,f.x,f.y,f.z),h.setXY(d,_,1-v),g.push(d),d++}p.push(g)}for(var T=[],m=0;m<n;m++)for(y=0;y<e;y++){var S=p[m][y+1],C=p[m][y],E=p[m+1][y],M=p[m+1][y+1];(0!==m||0<o)&&T.push(S,C,M),(m!==n-1||s<Math.PI)&&T.push(C,E,M)}this.setIndex(new(65535<c.count?zt.Uint32Attribute:zt.Uint16Attribute)(T,1)),this.addAttribute("position",c),this.addAttribute("normal",u),this.addAttribute("uv",h),this.boundingSphere=new zt.Sphere(new zt.Vector3,t)},zt.SphereBufferGeometry.prototype=Object.create(zt.BufferGeometry.prototype),zt.SphereBufferGeometry.prototype.constructor=zt.SphereBufferGeometry,zt.TextGeometry=function(t,e){var n=(e=e||{}).font;if(n instanceof zt.Font==!1)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new zt.Geometry;n=n.generateShapes(t,e.size,e.curveSegments);e.amount=void 0!==e.height?e.height:50,void 0===e.bevelThickness&&(e.bevelThickness=10),void 0===e.bevelSize&&(e.bevelSize=8),void 0===e.bevelEnabled&&(e.bevelEnabled=!1),zt.ExtrudeGeometry.call(this,n,e),this.type="TextGeometry"},zt.TextGeometry.prototype=Object.create(zt.ExtrudeGeometry.prototype),zt.TextGeometry.prototype.constructor=zt.TextGeometry,zt.TorusBufferGeometry=function(t,e,n,i,r){zt.BufferGeometry.call(this),this.type="TorusBufferGeometry",this.parameters={radius:t,tube:e,radialSegments:n,tubularSegments:i,arc:r},t=t||100,e=e||40,n=Math.floor(n)||8,i=Math.floor(i)||6,r=r||2*Math.PI;for(var o,a=(n+1)*(i+1),s=n*i*2*3,l=new(65535<s?Uint32Array:Uint16Array)(s),c=new Float32Array(3*a),u=new Float32Array(3*a),h=new Float32Array(2*a),d=0,p=0,f=0,m=new zt.Vector3,g=new zt.Vector3,v=new zt.Vector3,y=0;y<=n;y++)for(o=0;o<=i;o++){var _=o/i*r,b=y/n*Math.PI*2;g.x=(t+e*Math.cos(b))*Math.cos(_),g.y=(t+e*Math.cos(b))*Math.sin(_),g.z=e*Math.sin(b),c[d]=g.x,c[d+1]=g.y,c[d+2]=g.z,m.x=t*Math.cos(_),m.y=t*Math.sin(_),v.subVectors(g,m).normalize(),u[d]=v.x,u[d+1]=v.y,u[d+2]=v.z,h[p]=o/i,h[p+1]=y/n,d+=3,p+=2}for(y=1;y<=n;y++)for(o=1;o<=i;o++){var x=(i+1)*(y-1)+o-1,w=(i+1)*(y-1)+o,T=(i+1)*y+o;l[f]=(i+1)*y+o-1,l[f+1]=x,l[f+2]=T,l[f+3]=x,l[f+4]=w,l[f+5]=T,f+=6}this.setIndex(new zt.BufferAttribute(l,1)),this.addAttribute("position",new zt.BufferAttribute(c,3)),this.addAttribute("normal",new zt.BufferAttribute(u,3)),this.addAttribute("uv",new zt.BufferAttribute(h,2))},zt.TorusBufferGeometry.prototype=Object.create(zt.BufferGeometry.prototype),zt.TorusBufferGeometry.prototype.constructor=zt.TorusBufferGeometry,zt.TorusGeometry=function(t,e,n,i,r){zt.Geometry.call(this),this.type="TorusGeometry",this.parameters={radius:t,tube:e,radialSegments:n,tubularSegments:i,arc:r},this.fromBufferGeometry(new zt.TorusBufferGeometry(t,e,n,i,r))},zt.TorusGeometry.prototype=Object.create(zt.Geometry.prototype),zt.TorusGeometry.prototype.constructor=zt.TorusGeometry,zt.TorusKnotBufferGeometry=function(t,e,n,i,r,o){zt.BufferGeometry.call(this),this.type="TorusKnotBufferGeometry",this.parameters={radius:t,tube:e,tubularSegments:n,radialSegments:i,p:r,q:o},t=t||100,e=e||40,n=Math.floor(n)||64,r=r||2,o=o||3;for(var a,s=((i=Math.floor(i)||8)+1)*(n+1),l=i*n*2*3,c=new zt.BufferAttribute(new(65535<l?Uint32Array:Uint16Array)(l),1),u=new zt.BufferAttribute(new Float32Array(3*s),3),h=new zt.BufferAttribute(new Float32Array(3*s),3),d=new zt.BufferAttribute(new Float32Array(2*s),2),p=0,f=0,m=new zt.Vector3,g=new zt.Vector3,v=new zt.Vector2,y=new zt.Vector3,_=new zt.Vector3,b=new zt.Vector3,x=new zt.Vector3,w=new zt.Vector3,T=0;T<=n;++T){var S=T/n*r*Math.PI*2;for(A(S,r,o,t,y),A(.01+S,r,o,t,_),x.subVectors(_,y),w.addVectors(_,y),b.crossVectors(x,w),w.crossVectors(b,x),b.normalize(),w.normalize(),a=0;a<=i;++a){var C=a/i*Math.PI*2,E=-e*Math.cos(C),C=e*Math.sin(C);m.x=y.x+(E*w.x+C*b.x),m.y=y.y+(E*w.y+C*b.y),m.z=y.z+(E*w.z+C*b.z),u.setXYZ(p,m.x,m.y,m.z),g.subVectors(m,y).normalize(),h.setXYZ(p,g.x,g.y,g.z),v.x=T/n,v.y=a/i,d.setXY(p,v.x,v.y),p++}}for(a=1;a<=n;a++)for(T=1;T<=i;T++){var M=(i+1)*a+(T-1),P=(i+1)*a+T,k=(i+1)*(a-1)+T;c.setX(f,(i+1)*(a-1)+(T-1)),f++,c.setX(f,M),f++,c.setX(f,k),f++,c.setX(f,M),f++,c.setX(f,P),f++,c.setX(f,k),f++}function A(t,e,n,i,r){var o=Math.cos(t),a=Math.sin(t),n=n/e*t,e=Math.cos(n);r.x=i*(2+e)*.5*o,r.y=i*(2+e)*a*.5,r.z=i*Math.sin(n)*.5}this.setIndex(c),this.addAttribute("position",u),this.addAttribute("normal",h),this.addAttribute("uv",d)},zt.TorusKnotBufferGeometry.prototype=Object.create(zt.BufferGeometry.prototype),zt.TorusKnotBufferGeometry.prototype.constructor=zt.TorusKnotBufferGeometry,zt.TorusKnotGeometry=function(t,e,n,i,r,o,a){zt.Geometry.call(this),this.type="TorusKnotGeometry",this.parameters={radius:t,tube:e,tubularSegments:n,radialSegments:i,p:r,q:o},void 0!==a&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead."),this.fromBufferGeometry(new zt.TorusKnotBufferGeometry(t,e,n,i,r,o)),this.mergeVertices()},zt.TorusKnotGeometry.prototype=Object.create(zt.Geometry.prototype),zt.TorusKnotGeometry.prototype.constructor=zt.TorusKnotGeometry,zt.TubeGeometry=function(t,e,n,i,r,o){zt.Geometry.call(this),this.type="TubeGeometry",this.parameters={path:t,segments:e,radius:n,radialSegments:i,closed:r,taper:o},n=n||1,i=i||8,r=r||!1,o=o||zt.TubeGeometry.NoTaper;var a,s,l,c,u,h,d,p,f,m,g,v,y,_,b,x,w,T,S=[],C=this,E=(e=e||64)+1,M=new zt.Vector3,P=new zt.TubeGeometry.FrenetFrames(t,e,r),k=P.tangents,A=P.normals,O=P.binormals;for(this.tangents=k,this.normals=A,this.binormals=O,h=0;h<E;h++)for(S[h]=[],u=t.getPointAt(l=h/(E-1)),k[h],a=A[h],s=O[h],c=n*o(l),d=0;d<i;d++)w=d/i*2*Math.PI,x=-c*Math.cos(w),w=c*Math.sin(w),M.copy(u),M.x+=x*a.x+w*s.x,M.y+=x*a.y+w*s.y,M.z+=x*a.z+w*s.z,S[h][d]=(x=M.x,w=M.y,T=M.z,C.vertices.push(new zt.Vector3(x,w,T))-1);for(h=0;h<e;h++)for(d=0;d<i;d++)p=S[h][d],f=S[g=r?(h+1)%e:h+1][d],m=S[g][g=(d+1)%i],g=S[h][g],v=new zt.Vector2(h/e,d/i),y=new zt.Vector2((h+1)/e,d/i),_=new zt.Vector2((h+1)/e,(d+1)/i),b=new zt.Vector2(h/e,(d+1)/i),this.faces.push(new zt.Face3(p,f,g)),this.faceVertexUvs[0].push([v,y,b]),this.faces.push(new zt.Face3(f,m,g)),this.faceVertexUvs[0].push([y.clone(),_,b.clone()]);this.computeFaceNormals(),this.computeVertexNormals()},zt.TubeGeometry.prototype=Object.create(zt.Geometry.prototype),zt.TubeGeometry.prototype.constructor=zt.TubeGeometry,zt.TubeGeometry.NoTaper=function(t){return 1},zt.TubeGeometry.SinusoidalTaper=function(t){return Math.sin(Math.PI*t)},zt.TubeGeometry.FrenetFrames=function(t,e,n){var i,r,o,a,s,l=new zt.Vector3,c=[],u=[],h=[],d=new zt.Vector3,p=new zt.Matrix4,f=e+1;for(this.tangents=c,this.normals=u,this.binormals=h,s=0;s<f;s++)c[s]=t.getTangentAt(s/(f-1)),c[s].normalize();for(u[0]=new zt.Vector3,h[0]=new zt.Vector3,e=Number.MAX_VALUE,r=Math.abs(c[0].x),o=Math.abs(c[0].y),a=Math.abs(c[0].z),r<=e&&(e=r,l.set(1,0,0)),o<=e&&(e=o,l.set(0,1,0)),a<=e&&l.set(0,0,1),d.crossVectors(c[0],l).normalize(),u[0].crossVectors(c[0],d),h[0].crossVectors(c[0],u[0]),s=1;s<f;s++)u[s]=u[s-1].clone(),h[s]=h[s-1].clone(),d.crossVectors(c[s-1],c[s]),d.length()>Number.EPSILON&&(d.normalize(),i=Math.acos(zt.Math.clamp(c[s-1].dot(c[s]),-1,1)),u[s].applyMatrix4(p.makeRotationAxis(d,i))),h[s].crossVectors(c[s],u[s]);if(n)for(i=Math.acos(zt.Math.clamp(u[0].dot(u[f-1]),-1,1)),i/=f-1,0<c[0].dot(d.crossVectors(u[0],u[f-1]))&&(i=-i),s=1;s<f;s++)u[s].applyMatrix4(p.makeRotationAxis(c[s],i*s)),h[s].crossVectors(c[s],u[s])},zt.PolyhedronGeometry=function(t,e,n,i){zt.Geometry.call(this),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:n,detail:i},n=n||1,i=i||0;for(var r=this,o=0,a=t.length;o<a;o+=3)R(new zt.Vector3(t[o],t[o+1],t[o+2]));for(var s=this.vertices,l=[],o=0,c=0,a=e.length;o<a;o+=3,c++){var u=s[e[o]],h=s[e[o+1]],d=s[e[o+2]];l[c]=new zt.Face3(u.index,h.index,d.index,[u.clone(),h.clone(),d.clone()],void 0,c)}for(var p=new zt.Vector3,o=0,a=l.length;o<a;o++){M=E=C=S=T=w=x=b=_=y=v=g=m=f=void 0;for(var f=l[o],m=i,g=Math.pow(2,m),v=R(r.vertices[f.a]),y=R(r.vertices[f.b]),_=R(r.vertices[f.c]),b=[],x=f.materialIndex,w=0;w<=g;w++){b[w]=[];for(var T=R(v.clone().lerp(_,w/g)),S=R(y.clone().lerp(_,w/g)),C=g-w,E=0;E<=C;E++)b[w][E]=0===E&&w===g?T:R(T.clone().lerp(S,E/C))}for(w=0;w<g;w++)for(E=0;E<2*(g-w)-1;E++){var M=Math.floor(E/2);E%2==0?L(b[w][M+1],b[w+1][M],b[w][M],x):L(b[w][M+1],b[w+1][M+1],b[w+1][M],x)}}for(o=0,a=this.faceVertexUvs[0].length;o<a;o++){var P=this.faceVertexUvs[0][o],k=P[0].x,A=P[1].x,O=P[2].x,I=Math.max(k,A,O),F=Math.min(k,A,O);.9<I&&F<.1&&(k<.2&&(P[0].x+=1),A<.2&&(P[1].x+=1),O<.2)&&(P[2].x+=1)}for(o=0,a=this.vertices.length;o<a;o++)this.vertices[o].multiplyScalar(n);function R(t){var e=t.normalize().clone(),n=(e.index=r.vertices.push(e)-1,D(t)/2/Math.PI+.5),t=Math.atan2(-t.y,Math.sqrt(t.x*t.x+t.z*t.z))/Math.PI+.5;return e.uv=new zt.Vector2(n,1-t),e}function L(t,e,n,i){i=new zt.Face3(t.index,e.index,n.index,[t.clone(),e.clone(),n.clone()],void 0,i),r.faces.push(i),p.copy(t).add(e).add(n).divideScalar(3),i=D(p);r.faceVertexUvs[0].push([j(t.uv,t,i),j(e.uv,e,i),j(n.uv,n,i)])}function D(t){return Math.atan2(t.z,-t.x)}function j(t,e,n){return n<0&&1===t.x&&(t=new zt.Vector2(t.x-1,t.y)),(t=0===e.x&&0===e.z?new zt.Vector2(n/2/Math.PI+.5,t.y):t).clone()}this.mergeVertices(),this.computeFaceNormals(),this.boundingSphere=new zt.Sphere(new zt.Vector3,n)},zt.PolyhedronGeometry.prototype=Object.create(zt.Geometry.prototype),zt.PolyhedronGeometry.prototype.constructor=zt.PolyhedronGeometry,zt.DodecahedronGeometry=function(t,e){var n=(1+Math.sqrt(5))/2,i=1/n;zt.PolyhedronGeometry.call(this,[-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}},zt.DodecahedronGeometry.prototype=Object.create(zt.PolyhedronGeometry.prototype),zt.DodecahedronGeometry.prototype.constructor=zt.DodecahedronGeometry,zt.IcosahedronGeometry=function(t,e){var n=(1+Math.sqrt(5))/2;zt.PolyhedronGeometry.call(this,[-1,n,0,1,n,0,-1,-n,0,1,-n,0,0,-1,n,0,1,n,0,-1,-n,0,1,-n,n,0,-1,n,0,1,-n,0,-1,-n,0,1],[0,11,5,0,5,1,0,1,7,0,7,10,0,10,11,1,5,9,5,11,4,11,10,2,10,7,6,7,1,8,3,9,4,3,4,2,3,2,6,3,6,8,3,8,9,4,9,5,2,4,11,6,2,10,8,6,7,9,8,1],t,e),this.type="IcosahedronGeometry",this.parameters={radius:t,detail:e}},zt.IcosahedronGeometry.prototype=Object.create(zt.PolyhedronGeometry.prototype),zt.IcosahedronGeometry.prototype.constructor=zt.IcosahedronGeometry,zt.OctahedronGeometry=function(t,e){zt.PolyhedronGeometry.call(this,[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2],t,e),this.type="OctahedronGeometry",this.parameters={radius:t,detail:e}},zt.OctahedronGeometry.prototype=Object.create(zt.PolyhedronGeometry.prototype),zt.OctahedronGeometry.prototype.constructor=zt.OctahedronGeometry,zt.TetrahedronGeometry=function(t,e){zt.PolyhedronGeometry.call(this,[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],[2,1,0,0,3,2,1,3,0,2,3,1],t,e),this.type="TetrahedronGeometry",this.parameters={radius:t,detail:e}},zt.TetrahedronGeometry.prototype=Object.create(zt.PolyhedronGeometry.prototype),zt.TetrahedronGeometry.prototype.constructor=zt.TetrahedronGeometry,zt.ParametricGeometry=function(t,e,n){zt.Geometry.call(this),this.type="ParametricGeometry",this.parameters={func:t,slices:e,stacks:n};for(var i,r,o,a,s,l,c,u,h,d,p,f=this.vertices,m=this.faces,g=this.faceVertexUvs[0],v=e+1,y=0;y<=n;y++)for(o=y/n,i=0;i<=e;i++)r=t(i/e,o),f.push(r);for(y=0;y<n;y++)for(i=0;i<e;i++)s=(a=y*v+i)+1,l=(y+1)*v+i+1,c=(y+1)*v+i,u=new zt.Vector2(i/e,y/n),h=new zt.Vector2((i+1)/e,y/n),d=new zt.Vector2((i+1)/e,(y+1)/n),p=new zt.Vector2(i/e,(y+1)/n),m.push(new zt.Face3(a,s,c)),g.push([u,h,p]),m.push(new zt.Face3(s,l,c)),g.push([h.clone(),d,p.clone()]);this.computeFaceNormals(),this.computeVertexNormals()},zt.ParametricGeometry.prototype=Object.create(zt.Geometry.prototype),zt.ParametricGeometry.prototype.constructor=zt.ParametricGeometry,zt.WireframeGeometry=function(t){zt.BufferGeometry.call(this);var e=[0,0],n={};function i(t,e){return t-e}var r=["a","b","c"];if(t instanceof zt.Geometry){for(var o=t.vertices,a=t.faces,s=0,l=new Uint32Array(6*a.length),c=0,u=a.length;c<u;c++)for(var h=a[c],d=0;d<3;d++)e[0]=h[r[d]],e[1]=h[r[(d+1)%3]],e.sort(i),void 0===n[w=e.toString()]&&(l[2*s]=e[0],l[2*s+1]=e[1],n[w]=!0,s++);for(var p=new Float32Array(2*s*3),c=0,u=s;c<u;c++)for(d=0;d<2;d++){var f=o[l[2*c+d]];p[(T=6*c+3*d)+0]=f.x,p[T+1]=f.y,p[T+2]=f.z}this.addAttribute("position",new zt.BufferAttribute(p,3))}else if(t instanceof zt.BufferGeometry){if(null!==t.index){for(var m=t.index.array,o=t.attributes.position,g=t.groups,s=0,l=(0===g.length&&t.addGroup(0,m.length),new Uint32Array(2*m.length)),v=0,y=g.length;v<y;++v)for(var _=g[v],b=_.start,c=b,x=b+_.count;c<x;c+=3)for(var w,d=0;d<3;d++)e[0]=m[c+d],e[1]=m[c+(d+1)%3],e.sort(i),void 0===n[w=e.toString()]&&(l[2*s]=e[0],l[2*s+1]=e[1],n[w]=!0,s++);for(p=new Float32Array(2*s*3),c=0,u=s;c<u;c++)for(d=0;d<2;d++){var T=6*c+3*d,S=l[2*c+d];p[T+0]=o.getX(S),p[T+1]=o.getY(S),p[T+2]=o.getZ(S)}}else for(t=(s=(o=t.attributes.position.array).length/3)/3,p=new Float32Array(2*s*3),c=0,u=t;c<u;c++)for(d=0;d<3;d++){var C=9*c+3*d,S=(p[(T=18*c+6*d)+0]=o[C],p[T+1]=o[1+C],p[T+2]=o[2+C],9*c+(d+1)%3*3);p[T+3]=o[S],p[T+4]=o[S+1],p[T+5]=o[S+2]}this.addAttribute("position",new zt.BufferAttribute(p,3))}},zt.WireframeGeometry.prototype=Object.create(zt.BufferGeometry.prototype),zt.WireframeGeometry.prototype.constructor=zt.WireframeGeometry,zt.AxisHelper=function(t){t=t||1;var t=new Float32Array([0,0,0,t,0,0,0,0,0,0,t,0,0,0,0,0,0,t]),e=new Float32Array([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1]),n=new zt.BufferGeometry,t=(n.addAttribute("position",new zt.BufferAttribute(t,3)),n.addAttribute("color",new zt.BufferAttribute(e,3)),new zt.LineBasicMaterial({vertexColors:zt.VertexColors}));zt.LineSegments.call(this,n,t)},zt.AxisHelper.prototype=Object.create(zt.LineSegments.prototype),zt.AxisHelper.prototype.constructor=zt.AxisHelper,zt.ArrowHelper=((fn=new zt.BufferGeometry).addAttribute("position",new zt.Float32Attribute([0,0,0,0,1,0],3)),(mn=new zt.CylinderBufferGeometry(0,.5,1,5,1)).translate(0,-.5,0),function(t,e,n,i,r,o){zt.Object3D.call(this),void 0===i&&(i=16776960),void 0===n&&(n=1),void 0===r&&(r=.2*n),void 0===o&&(o=.2*r),this.position.copy(e),this.line=new zt.Line(fn,new zt.LineBasicMaterial({color:i})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new zt.Mesh(mn,new zt.MeshBasicMaterial({color:i})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(n,r,o)}),zt.ArrowHelper.prototype=Object.create(zt.Object3D.prototype),zt.ArrowHelper.prototype.constructor=zt.ArrowHelper,zt.ArrowHelper.prototype.setDirection=(vn=new zt.Vector3,function(t){.99999<t.y?this.quaternion.set(0,0,0,1):t.y<-.99999?this.quaternion.set(1,0,0,0):(vn.set(t.z,0,-t.x).normalize(),gn=Math.acos(t.y),this.quaternion.setFromAxisAngle(vn,gn))}),zt.ArrowHelper.prototype.setLength=function(t,e,n){void 0===e&&(e=.2*t),void 0===n&&(n=.2*e),this.line.scale.set(1,Math.max(0,t-e),1),this.line.updateMatrix(),this.cone.scale.set(n,e,n),this.cone.position.y=t,this.cone.updateMatrix()},zt.ArrowHelper.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},zt.BoxHelper=function(t){var e=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]),n=new Float32Array(24),i=new zt.BufferGeometry;i.setIndex(new zt.BufferAttribute(e,1)),i.addAttribute("position",new zt.BufferAttribute(n,3)),zt.LineSegments.call(this,i,new zt.LineBasicMaterial({color:16776960})),void 0!==t&&this.update(t)},zt.BoxHelper.prototype=Object.create(zt.LineSegments.prototype),zt.BoxHelper.prototype.constructor=zt.BoxHelper,zt.BoxHelper.prototype.update=(S=new zt.Box3,function(t){var e,n,i;t instanceof zt.Box3?S.copy(t):S.setFromObject(t),S.isEmpty()||(t=S.min,e=S.max,(i=(n=this.geometry.attributes.position).array)[0]=e.x,i[1]=e.y,i[2]=e.z,i[3]=t.x,i[4]=e.y,i[5]=e.z,i[6]=t.x,i[7]=t.y,i[8]=e.z,i[9]=e.x,i[10]=t.y,i[11]=e.z,i[12]=e.x,i[13]=e.y,i[14]=t.z,i[15]=t.x,i[16]=e.y,i[17]=t.z,i[18]=t.x,i[19]=t.y,i[20]=t.z,i[21]=e.x,i[22]=t.y,i[23]=t.z,n.needsUpdate=!0,this.geometry.computeBoundingSphere())}),zt.BoundingBoxHelper=function(t,e){e=void 0!==e?e:8947848;this.object=t,this.box=new zt.Box3,zt.Mesh.call(this,new zt.BoxGeometry(1,1,1),new zt.MeshBasicMaterial({color:e,wireframe:!0}))},zt.BoundingBoxHelper.prototype=Object.create(zt.Mesh.prototype),zt.BoundingBoxHelper.prototype.constructor=zt.BoundingBoxHelper,zt.BoundingBoxHelper.prototype.update=function(){this.box.setFromObject(this.object),this.box.size(this.scale),this.box.center(this.position)},zt.CameraHelper=function(t){var n=new zt.Geometry,e=new zt.LineBasicMaterial({color:16777215,vertexColors:zt.FaceColors}),i={},r=16755200,o=16711680,a=3355443;function s(t,e,n){l(t,n),l(e,n)}function l(t,e){n.vertices.push(new zt.Vector3),n.colors.push(new zt.Color(e)),void 0===i[t]&&(i[t]=[]),i[t].push(n.vertices.length-1)}s("n1","n2",r),s("n2","n4",r),s("n4","n3",r),s("n3","n1",r),s("f1","f2",r),s("f2","f4",r),s("f4","f3",r),s("f3","f1",r),s("n1","f1",r),s("n2","f2",r),s("n3","f3",r),s("n4","f4",r),s("p","n1",o),s("p","n2",o),s("p","n3",o),s("p","n4",o),s("u1","u2",43775),s("u2","u3",43775),s("u3","u1",43775),s("c","t",16777215),s("p","c",a),s("cn1","cn2",a),s("cn3","cn4",a),s("cf1","cf2",a),s("cf3","cf4",a),zt.LineSegments.call(this,n,e),this.camera=t,this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=i,this.update()},zt.CameraHelper.prototype=Object.create(zt.LineSegments.prototype),zt.CameraHelper.prototype.constructor=zt.CameraHelper,zt.CameraHelper.prototype.update=(bn=new zt.Vector3,xn=new zt.Camera,function(){yn=this.geometry,_n=this.pointMap;xn.projectionMatrix.copy(this.camera.projectionMatrix),A("c",0,0,-1),A("t",0,0,1),A("n1",-1,-1,-1),A("n2",1,-1,-1),A("n3",-1,1,-1),A("n4",1,1,-1),A("f1",-1,-1,1),A("f2",1,-1,1),A("f3",-1,1,1),A("f4",1,1,1),A("u1",.7,1.1,-1),A("u2",-.7,1.1,-1),A("u3",0,2,-1),A("cf1",-1,0,1),A("cf2",1,0,1),A("cf3",0,-1,1),A("cf4",0,1,1),A("cn1",-1,0,-1),A("cn2",1,0,-1),A("cn3",0,-1,-1),A("cn4",0,1,-1),yn.verticesNeedUpdate=!0}),zt.DirectionalLightHelper=function(t,e){zt.Object3D.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,void 0===e&&(e=1);t=new zt.BufferGeometry,t.addAttribute("position",new zt.Float32Attribute([-e,e,0,e,e,0,e,-e,0,-e,-e,0,-e,e,0],3)),e=new zt.LineBasicMaterial({fog:!1});this.add(new zt.Line(t,e)),(t=new zt.BufferGeometry).addAttribute("position",new zt.Float32Attribute([0,0,0,0,0,1],3)),this.add(new zt.Line(t,e)),this.update()},zt.DirectionalLightHelper.prototype=Object.create(zt.Object3D.prototype),zt.DirectionalLightHelper.prototype.constructor=zt.DirectionalLightHelper,zt.DirectionalLightHelper.prototype.dispose=function(){var t=this.children[0],e=this.children[1];t.geometry.dispose(),t.material.dispose(),e.geometry.dispose(),e.material.dispose()},zt.DirectionalLightHelper.prototype.update=(wn=new zt.Vector3,Tn=new zt.Vector3,Sn=new zt.Vector3,function(){wn.setFromMatrixPosition(this.light.matrixWorld),Tn.setFromMatrixPosition(this.light.target.matrixWorld),Sn.subVectors(Tn,wn);var t=this.children[0],e=this.children[1];t.lookAt(Sn),t.material.color.copy(this.light.color).multiplyScalar(this.light.intensity),e.lookAt(Sn),e.scale.z=Sn.length()}),zt.EdgesHelper=function(t,e,n){e=void 0!==e?e:16777215;zt.LineSegments.call(this,new zt.EdgesGeometry(t.geometry,n),new zt.LineBasicMaterial({color:e})),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1},zt.EdgesHelper.prototype=Object.create(zt.LineSegments.prototype),zt.EdgesHelper.prototype.constructor=zt.EdgesHelper,zt.FaceNormalsHelper=function(t,e,n,i){this.object=t,this.size=void 0!==e?e:1;t=void 0!==n?n:16776960,e=void 0!==i?i:1,n=0,i=this.object.geometry,i instanceof zt.Geometry?n=i.faces.length:console.warn("THREE.FaceNormalsHelper: only THREE.Geometry is supported. Use THREE.VertexNormalsHelper, instead."),i=new zt.BufferGeometry,n=new zt.Float32Attribute(2*n*3,3);i.addAttribute("position",n),zt.LineSegments.call(this,i,new zt.LineBasicMaterial({color:t,linewidth:e})),this.matrixAutoUpdate=!1,this.update()},zt.FaceNormalsHelper.prototype=Object.create(zt.LineSegments.prototype),zt.FaceNormalsHelper.prototype.constructor=zt.FaceNormalsHelper,zt.FaceNormalsHelper.prototype.update=(C=new zt.Vector3,Cn=new zt.Vector3,En=new zt.Matrix3,function(){this.object.updateMatrixWorld(!0),En.getNormalMatrix(this.object.matrixWorld);for(var t=this.object.matrixWorld,e=this.geometry.attributes.position,n=this.object.geometry,i=n.vertices,r=n.faces,o=0,a=0,s=r.length;a<s;a++){var l=r[a],c=l.normal;C.copy(i[l.a]).add(i[l.b]).add(i[l.c]).divideScalar(3).applyMatrix4(t),Cn.copy(c).applyMatrix3(En).normalize().multiplyScalar(this.size).add(C),e.setXYZ(o,C.x,C.y,C.z),o+=1,e.setXYZ(o,Cn.x,Cn.y,Cn.z),o+=1}return e.needsUpdate=!0,this}),zt.GridHelper=function(t,e,n,i){n=new zt.Color(void 0!==n?n:4473924),i=new zt.Color(void 0!==i?i:8947848);for(var r=[],o=[],a=-t,s=0;a<=t;a+=e){r.push(-t,0,a,t,0,a),r.push(a,0,-t,a,0,t);var l=0===a?n:i;l.toArray(o,s),s+=3,l.toArray(o,s),s+=3,l.toArray(o,s),s+=3,l.toArray(o,s),s+=3}var c=new zt.BufferGeometry,u=(c.addAttribute("position",new zt.Float32Attribute(r,3)),c.addAttribute("color",new zt.Float32Attribute(o,3)),new zt.LineBasicMaterial({vertexColors:zt.VertexColors}));zt.LineSegments.call(this,c,u)},zt.GridHelper.prototype=Object.create(zt.LineSegments.prototype),zt.GridHelper.prototype.constructor=zt.GridHelper,zt.GridHelper.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},zt.HemisphereLightHelper=function(t,e){zt.Object3D.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.colors=[new zt.Color,new zt.Color];var n=new zt.SphereGeometry(e,4,2);n.rotateX(-Math.PI/2);for(var i=0;i<8;i++)n.faces[i].color=this.colors[i<4?0:1];t=new zt.MeshBasicMaterial({vertexColors:zt.FaceColors,wireframe:!0});this.lightSphere=new zt.Mesh(n,t),this.add(this.lightSphere),this.update()},zt.HemisphereLightHelper.prototype=Object.create(zt.Object3D.prototype),zt.HemisphereLightHelper.prototype.constructor=zt.HemisphereLightHelper,zt.HemisphereLightHelper.prototype.dispose=function(){this.lightSphere.geometry.dispose(),this.lightSphere.material.dispose()},zt.HemisphereLightHelper.prototype.update=(Mn=new zt.Vector3,function(){this.colors[0].copy(this.light.color).multiplyScalar(this.light.intensity),this.colors[1].copy(this.light.groundColor).multiplyScalar(this.light.intensity),this.lightSphere.lookAt(Mn.setFromMatrixPosition(this.light.matrixWorld).negate()),this.lightSphere.geometry.colorsNeedUpdate=!0}),zt.PointLightHelper=function(t,e){this.light=t,this.light.updateMatrixWorld();t=new zt.SphereBufferGeometry(e,4,2),e=new zt.MeshBasicMaterial({wireframe:!0,fog:!1});e.color.copy(this.light.color).multiplyScalar(this.light.intensity),zt.Mesh.call(this,t,e),this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1},zt.PointLightHelper.prototype=Object.create(zt.Mesh.prototype),zt.PointLightHelper.prototype.constructor=zt.PointLightHelper,zt.PointLightHelper.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},zt.PointLightHelper.prototype.update=function(){this.material.color.copy(this.light.color).multiplyScalar(this.light.intensity)},zt.SkeletonHelper=function(t){this.bones=this.getBoneList(t);for(var e=new zt.Geometry,n=0;n<this.bones.length;n++)this.bones[n].parent instanceof zt.Bone&&(e.vertices.push(new zt.Vector3),e.vertices.push(new zt.Vector3),e.colors.push(new zt.Color(0,0,1)),e.colors.push(new zt.Color(0,1,0)));e.dynamic=!0;var i=new zt.LineBasicMaterial({vertexColors:zt.VertexColors,depthTest:!1,depthWrite:!1,transparent:!0});zt.LineSegments.call(this,e,i),this.root=t,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.update()},zt.SkeletonHelper.prototype=Object.create(zt.LineSegments.prototype),zt.SkeletonHelper.prototype.constructor=zt.SkeletonHelper,zt.SkeletonHelper.prototype.getBoneList=function(t){var e=[];t instanceof zt.Bone&&e.push(t);for(var n=0;n<t.children.length;n++)e.push.apply(e,this.getBoneList(t.children[n]));return e},zt.SkeletonHelper.prototype.update=function(){for(var t=this.geometry,e=(new zt.Matrix4).getInverse(this.root.matrixWorld),n=new zt.Matrix4,i=0,r=0;r<this.bones.length;r++){var o=this.bones[r];o.parent instanceof zt.Bone&&(n.multiplyMatrices(e,o.matrixWorld),t.vertices[i].setFromMatrixPosition(n),n.multiplyMatrices(e,o.parent.matrixWorld),t.vertices[i+1].setFromMatrixPosition(n),i+=2)}t.verticesNeedUpdate=!0,t.computeBoundingSphere()},zt.SpotLightHelper=function(t){zt.Object3D.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1;for(var t=new zt.BufferGeometry,e=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1],n=0,i=1;n<32;n++,i++){var r=n/32*Math.PI*2,o=i/32*Math.PI*2;e.push(Math.cos(r),Math.sin(r),1,Math.cos(o),Math.sin(o),1)}t.addAttribute("position",new zt.Float32Attribute(e,3));var a=new zt.LineBasicMaterial({fog:!1});this.cone=new zt.LineSegments(t,a),this.add(this.cone),this.update()},zt.SpotLightHelper.prototype=Object.create(zt.Object3D.prototype),zt.SpotLightHelper.prototype.constructor=zt.SpotLightHelper,zt.SpotLightHelper.prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},zt.SpotLightHelper.prototype.update=(Pn=new zt.Vector3,kn=new zt.Vector3,function(){var t=this.light.distance||1e3,e=t*Math.tan(this.light.angle);this.cone.scale.set(e,e,t),Pn.setFromMatrixPosition(this.light.matrixWorld),kn.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(kn.sub(Pn)),this.cone.material.color.copy(this.light.color).multiplyScalar(this.light.intensity)}),zt.VertexNormalsHelper=function(t,e,n,i){this.object=t,this.size=void 0!==e?e:1;t=void 0!==n?n:16711680,e=void 0!==i?i:1,n=0,i=this.object.geometry,i instanceof zt.Geometry?n=3*i.faces.length:i instanceof zt.BufferGeometry&&(n=i.attributes.normal.count),i=new zt.BufferGeometry,n=new zt.Float32Attribute(2*n*3,3);i.addAttribute("position",n),zt.LineSegments.call(this,i,new zt.LineBasicMaterial({color:t,linewidth:e})),this.matrixAutoUpdate=!1,this.update()},zt.VertexNormalsHelper.prototype=Object.create(zt.LineSegments.prototype),zt.VertexNormalsHelper.prototype.constructor=zt.VertexNormalsHelper,zt.VertexNormalsHelper.prototype.update=(E=new zt.Vector3,M=new zt.Vector3,An=new zt.Matrix3,function(){var t=["a","b","c"],e=(this.object.updateMatrixWorld(!0),An.getNormalMatrix(this.object.matrixWorld),this.object.matrixWorld),n=this.geometry.attributes.position,i=this.object.geometry;if(i instanceof zt.Geometry)for(var r=i.vertices,o=i.faces,a=0,s=0,l=o.length;s<l;s++)for(var c=o[s],u=0,h=c.vertexNormals.length;u<h;u++){var d=r[c[t[u]]],p=c.vertexNormals[u];E.copy(d).applyMatrix4(e),M.copy(p).applyMatrix3(An).normalize().multiplyScalar(this.size).add(E),n.setXYZ(a,E.x,E.y,E.z),a+=1,n.setXYZ(a,M.x,M.y,M.z),a+=1}else if(i instanceof zt.BufferGeometry)for(var f=i.attributes.position,m=i.attributes.normal,a=0,u=0,h=f.count;u<h;u++)E.set(f.getX(u),f.getY(u),f.getZ(u)).applyMatrix4(e),M.set(m.getX(u),m.getY(u),m.getZ(u)),M.applyMatrix3(An).normalize().multiplyScalar(this.size).add(E),n.setXYZ(a,E.x,E.y,E.z),n.setXYZ(a+=1,M.x,M.y,M.z),a+=1;return n.needsUpdate=!0,this}),zt.WireframeHelper=function(t,e){e=void 0!==e?e:16777215;zt.LineSegments.call(this,new zt.WireframeGeometry(t.geometry),new zt.LineBasicMaterial({color:e})),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1},zt.WireframeHelper.prototype=Object.create(zt.LineSegments.prototype),zt.WireframeHelper.prototype.constructor=zt.WireframeHelper,zt.ImmediateRenderObject=function(t){zt.Object3D.call(this),this.material=t,this.render=function(t){}},zt.ImmediateRenderObject.prototype=Object.create(zt.Object3D.prototype),zt.ImmediateRenderObject.prototype.constructor=zt.ImmediateRenderObject,zt.MorphBlendMesh=function(t,e){zt.Mesh.call(this,t,e),this.animationsMap={},this.animationsList=[];t=this.geometry.morphTargets.length;this.createAnimation("__default",0,t-1,+t),this.setAnimationWeight("__default",1)},zt.MorphBlendMesh.prototype=Object.create(zt.Mesh.prototype),zt.MorphBlendMesh.prototype.constructor=zt.MorphBlendMesh,zt.MorphBlendMesh.prototype.createAnimation=function(t,e,n,i){n={start:e,end:n,length:n-e+1,fps:i,duration:(n-e)/i,lastFrame:0,currentFrame:0,active:!1,time:0,direction:1,weight:1,directionBackwards:!1,mirroredLoop:!1};this.animationsMap[t]=n,this.animationsList.push(n)},zt.MorphBlendMesh.prototype.autoCreateAnimations=function(t){for(var e,n=/([a-z]+)_?(\d+)/i,i={},r=this.geometry,o=0,a=r.morphTargets.length;o<a;o++){var s,l=r.morphTargets[o].name.match(n);l&&1<l.length&&(i[s=l[1]]||(i[s]={start:1/0,end:-1/0}),o<(c=i[s]).start&&(c.start=o),o>c.end&&(c.end=o),e=e||s)}for(s in i){var c=i[s];this.createAnimation(s,c.start,c.end,t)}this.firstAnimation=e},zt.MorphBlendMesh.prototype.setAnimationDirectionForward=function(t){t=this.animationsMap[t];t&&(t.direction=1,t.directionBackwards=!1)},zt.MorphBlendMesh.prototype.setAnimationDirectionBackward=function(t){t=this.animationsMap[t];t&&(t.direction=-1,t.directionBackwards=!0)},zt.MorphBlendMesh.prototype.setAnimationFPS=function(t,e){t=this.animationsMap[t];t&&(t.fps=e,t.duration=(t.end-t.start)/t.fps)},zt.MorphBlendMesh.prototype.setAnimationDuration=function(t,e){t=this.animationsMap[t];t&&(t.duration=e,t.fps=(t.end-t.start)/t.duration)},zt.MorphBlendMesh.prototype.setAnimationWeight=function(t,e){t=this.animationsMap[t];t&&(t.weight=e)},zt.MorphBlendMesh.prototype.setAnimationTime=function(t,e){t=this.animationsMap[t];t&&(t.time=e)},zt.MorphBlendMesh.prototype.getAnimationTime=function(t){var e=0,t=this.animationsMap[t];return e=t?t.time:e},zt.MorphBlendMesh.prototype.getAnimationDuration=function(t){var e=-1,t=this.animationsMap[t];return e=t?t.duration:e},zt.MorphBlendMesh.prototype.playAnimation=function(t){var e=this.animationsMap[t];e?(e.time=0,e.active=!0):console.warn("THREE.MorphBlendMesh: animation["+t+"] undefined in .playAnimation()")},zt.MorphBlendMesh.prototype.stopAnimation=function(t){t=this.animationsMap[t];t&&(t.active=!1)},zt.MorphBlendMesh.prototype.update=function(t){for(var e=0,n=this.animationsList.length;e<n;e++){var i,r,o,a=this.animationsList[e];a.active&&(i=a.duration/a.length,a.time+=a.direction*t,a.mirroredLoop?(a.time>a.duration||a.time<0)&&(a.direction*=-1,a.time>a.duration&&(a.time=a.duration,a.directionBackwards=!0),a.time<0)&&(a.time=0,a.directionBackwards=!1):(a.time=a.time%a.duration,a.time<0&&(a.time+=a.duration)),o=a.start+zt.Math.clamp(Math.floor(a.time/i),0,a.length-1),r=a.weight,o!==a.currentFrame&&(this.morphTargetInfluences[a.lastFrame]=0,this.morphTargetInfluences[a.currentFrame]=+r,this.morphTargetInfluences[o]=0,a.lastFrame=a.currentFrame,a.currentFrame=o),o=a.time%i/i,a.directionBackwards&&(o=1-o),a.currentFrame!==a.lastFrame?(this.morphTargetInfluences[a.currentFrame]=o*r,this.morphTargetInfluences[a.lastFrame]=(1-o)*r):this.morphTargetInfluences[a.currentFrame]=r)}}},{}],575:[function(l,t,c){!function(n,s){!function(){var i=l("process/browser.js").nextTick,t=Function.prototype.apply,r=Array.prototype.slice,o={},a=0;function e(t,e){this._id=t,this._clearFn=e}c.setTimeout=function(){return new e(t.call(setTimeout,window,arguments),clearTimeout)},c.setInterval=function(){return new e(t.call(setInterval,window,arguments),clearInterval)},c.clearTimeout=c.clearInterval=function(t){t.close()},e.prototype.unref=e.prototype.ref=function(){},e.prototype.close=function(){this._clearFn.call(window,this._id)},c.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},c.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},c._unrefActive=c.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;0<=e&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},c.setImmediate="function"==typeof n?n:function(t){var e=a++,n=!(arguments.length<2)&&r.call(arguments,1);return o[e]=!0,i(function(){o[e]&&(n?t.apply(null,n):t.call(null),c.clearImmediate(e))}),e},c.clearImmediate="function"==typeof s?s:function(t){delete o[t]}}.call(this)}.call(this,l("timers").setImmediate,l("timers").clearImmediate)},{"process/browser.js":561,timers:575}],576:[function(t,E,M){!function(){function c(r,o,t){if(void 0===o)return r;switch(null==t?3:t){case 1:return function(t){return r.call(o,t)};case 2:return function(t,e){return r.call(o,t,e)};case 3:return function(t,e,n){return r.call(o,t,e,n)};case 4:return function(t,e,n,i){return r.call(o,t,e,n,i)}}return function(){return r.apply(o,arguments)}}function t(o){return function(n,i,t){var r={};return i=_.iteratee(i,t),_.each(n,function(t,e){e=i(t,e,n);o(r,t,e)}),r}}function s(t,e,n,i){if(e&&_.every(t,_.isArray))return f.apply(i,t);for(var r=0,o=t.length;r<o;r++){var a=t[r];_.isArray(a)||_.isArguments(a)?e?d.apply(i,a):s(a,e,n,i):n||i.push(a)}return i}function a(){}function e(e){function n(t){return e[t]}var t="(?:"+_.keys(e).join("|")+")",i=RegExp(t),r=RegExp(t,"g");return function(t){return i.test(t=null==t?"":""+t)?t.replace(r,n):t}}function l(t){return"\\"+S[t]}function i(t){return this._chain?_(t).chain():t}var n=this,r=n._,o=Array.prototype,u=Object.prototype,h=Function.prototype,d=o.push,p=o.slice,f=o.concat,m=u.toString,g=u.hasOwnProperty,u=Array.isArray,v=Object.keys,y=h.bind,_=function(t){return t instanceof _?t:this instanceof _?void(this._wrapped=t):new _(t)},b=(void 0!==M?(M=void 0!==E&&E.exports?E.exports=_:M)._=_:n._=_,_.VERSION="1.7.0",_.iteratee=function(t,e,n){return null==t?_.identity:_.isFunction(t)?c(t,e,n):_.isObject(t)?_.matches(t):_.property(t)},_.each=_.forEach=function(t,e,n){if(null!=t)if(e=c(e,n),(o=t.length)===+o)for(r=0;r<o;r++)e(t[r],r,t);else for(var i=_.keys(t),r=0,o=i.length;r<o;r++)e(t[i[r]],i[r],t);return t},_.map=_.collect=function(t,e,n){if(null==t)return[];e=_.iteratee(e,n);for(var i,r=t.length!==+t.length&&_.keys(t),o=(r||t).length,a=Array(o),s=0;s<o;s++)i=r?r[s]:s,a[s]=e(t[i],i,t);return a},"Reduce of empty array with no initial value"),x=(_.reduce=_.foldl=_.inject=function(t,e,n,i){null==t&&(t=[]),e=c(e,i,4);var r,o=t.length!==+t.length&&_.keys(t),a=(o||t).length,s=0;if(arguments.length<3){if(!a)throw new TypeError(b);n=t[o?o[s++]:s++]}for(;s<a;s++)r=o?o[s]:s,n=e(n,t[r],r,t);return n},_.reduceRight=_.foldr=function(t,e,n,i){null==t&&(t=[]),e=c(e,i,4);var r,o=t.length!==+t.length&&_.keys(t),a=(o||t).length;if(arguments.length<3){if(!a)throw new TypeError(b);n=t[o?o[--a]:--a]}for(;a--;)r=o?o[a]:a,n=e(n,t[r],r,t);return n},_.find=_.detect=function(t,i,e){var r;return i=_.iteratee(i,e),_.some(t,function(t,e,n){if(i(t,e,n))return r=t,!0}),r},_.filter=_.select=function(t,i,e){var r=[];return null!=t&&(i=_.iteratee(i,e),_.each(t,function(t,e,n){i(t,e,n)&&r.push(t)})),r},_.reject=function(t,e,n){return _.filter(t,_.negate(_.iteratee(e)),n)},_.every=_.all=function(t,e,n){if(null!=t){e=_.iteratee(e,n);for(var i,r=t.length!==+t.length&&_.keys(t),o=(r||t).length,a=0;a<o;a++)if(!e(t[i=r?r[a]:a],i,t))return!1}return!0},_.some=_.any=function(t,e,n){if(null!=t){e=_.iteratee(e,n);for(var i,r=t.length!==+t.length&&_.keys(t),o=(r||t).length,a=0;a<o;a++)if(e(t[i=r?r[a]:a],i,t))return!0}return!1},_.contains=_.include=function(t,e){return null!=t&&(t.length!==+t.length&&(t=_.values(t)),0<=_.indexOf(t,e))},_.invoke=function(t,e){var n=p.call(arguments,2),i=_.isFunction(e);return _.map(t,function(t){return(i?e:t[e]).apply(t,n)})},_.pluck=function(t,e){return _.map(t,_.property(e))},_.where=function(t,e){return _.filter(t,_.matches(e))},_.findWhere=function(t,e){return _.find(t,_.matches(e))},_.max=function(t,i,e){var n,r,o=-1/0,a=-1/0;if(null==i&&null!=t)for(var s=0,l=(t=t.length===+t.length?t:_.values(t)).length;s<l;s++)n=t[s],o<n&&(o=n);else i=_.iteratee(i,e),_.each(t,function(t,e,n){r=i(t,e,n),(a<r||r===-1/0&&o===-1/0)&&(o=t,a=r)});return o},_.min=function(t,i,e){var n,r,o=1/0,a=1/0;if(null==i&&null!=t)for(var s=0,l=(t=t.length===+t.length?t:_.values(t)).length;s<l;s++)(n=t[s])<o&&(o=n);else i=_.iteratee(i,e),_.each(t,function(t,e,n){((r=i(t,e,n))<a||r===1/0&&o===1/0)&&(o=t,a=r)});return o},_.shuffle=function(t){for(var e,n=t&&t.length===+t.length?t:_.values(t),i=n.length,r=Array(i),o=0;o<i;o++)(e=_.random(0,o))!==o&&(r[o]=r[e]),r[e]=n[o];return r},_.sample=function(t,e,n){return null==e||n?(t=t.length!==+t.length?_.values(t):t)[_.random(t.length-1)]:_.shuffle(t).slice(0,Math.max(0,e))},_.sortBy=function(t,i,e){return i=_.iteratee(i,e),_.pluck(_.map(t,function(t,e,n){return{value:t,index:e,criteria:i(t,e,n)}}).sort(function(t,e){var n=t.criteria,i=e.criteria;if(n!==i){if(i<n||void 0===n)return 1;if(n<i||void 0===i)return-1}return t.index-e.index}),"value")},_.groupBy=t(function(t,e,n){_.has(t,n)?t[n].push(e):t[n]=[e]}),_.indexBy=t(function(t,e,n){t[n]=e}),_.countBy=t(function(t,e,n){_.has(t,n)?t[n]++:t[n]=1}),_.sortedIndex=function(t,e,n,i){for(var r=(n=_.iteratee(n,i,1))(e),o=0,a=t.length;o<a;){var s=o+a>>>1;n(t[s])<r?o=1+s:a=s}return o},_.toArray=function(t){return t?_.isArray(t)?p.call(t):t.length===+t.length?_.map(t,_.identity):_.values(t):[]},_.size=function(t){return null==t?0:(t.length===+t.length?t:_.keys(t)).length},_.partition=function(t,i,e){i=_.iteratee(i,e);var r=[],o=[];return _.each(t,function(t,e,n){(i(t,e,n)?r:o).push(t)}),[r,o]},_.first=_.head=_.take=function(t,e,n){if(null!=t)return null==e||n?t[0]:e<0?[]:p.call(t,0,e)},_.initial=function(t,e,n){return p.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},_.last=function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:p.call(t,Math.max(t.length-e,0))},_.rest=_.tail=_.drop=function(t,e,n){return p.call(t,null==e||n?1:e)},_.compact=function(t){return _.filter(t,_.identity)},_.flatten=function(t,e){return s(t,e,!1,[])},_.without=function(t){return _.difference(t,p.call(arguments,1))},_.uniq=_.unique=function(t,e,n,i){if(null==t)return[];_.isBoolean(e)||(i=n,n=e,e=!1),null!=n&&(n=_.iteratee(n,i));for(var r=[],o=[],a=0,s=t.length;a<s;a++){var l,c=t[a];e?(a&&o===c||r.push(c),o=c):n?(l=n(c,a,t),_.indexOf(o,l)<0&&(o.push(l),r.push(c))):_.indexOf(r,c)<0&&r.push(c)}return r},_.union=function(){return _.uniq(s(arguments,!0,!0,[]))},_.intersection=function(t){if(null==t)return[];for(var e=[],n=arguments.length,i=0,r=t.length;i<r;i++){var o=t[i];if(!_.contains(e,o)){for(var a=1;a<n&&_.contains(arguments[a],o);a++);a===n&&e.push(o)}}return e},_.difference=function(t){var e=s(p.call(arguments,1),!0,!0,[]);return _.filter(t,function(t){return!_.contains(e,t)})},_.zip=function(t){if(null==t)return[];for(var e=_.max(arguments,"length").length,n=Array(e),i=0;i<e;i++)n[i]=_.pluck(arguments,i);return n},_.object=function(t,e){if(null==t)return{};for(var n={},i=0,r=t.length;i<r;i++)e?n[t[i]]=e[i]:n[t[i][0]]=t[i][1];return n},_.indexOf=function(t,e,n){if(null!=t){var i=0,r=t.length;if(n){if("number"!=typeof n)return t[i=_.sortedIndex(t,e)]===e?i:-1;i=n<0?Math.max(0,r+n):n}for(;i<r;i++)if(t[i]===e)return i}return-1},_.lastIndexOf=function(t,e,n){if(null!=t){var i=t.length;for("number"==typeof n&&(i=n<0?i+n+1:Math.min(i,n+1));0<=--i;)if(t[i]===e)return i}return-1},_.range=function(t,e,n){arguments.length<=1&&(e=t||0,t=0),n=n||1;for(var i=Math.max(Math.ceil((e-t)/n),0),r=Array(i),o=0;o<i;o++,t+=n)r[o]=t;return r},_.bind=function(n,i){var r,o;if(y&&n.bind===y)return y.apply(n,p.call(arguments,1));if(_.isFunction(n))return r=p.call(arguments,2),o=function(){if(!(this instanceof o))return n.apply(i,r.concat(p.call(arguments)));a.prototype=n.prototype;var t=new a,e=(a.prototype=null,n.apply(t,r.concat(p.call(arguments))));return _.isObject(e)?e:t};throw new TypeError("Bind must be called on a function")},_.partial=function(r){var o=p.call(arguments,1);return function(){for(var t=0,e=o.slice(),n=0,i=e.length;n<i;n++)e[n]===_&&(e[n]=arguments[t++]);for(;t<arguments.length;)e.push(arguments[t++]);return r.apply(this,e)}},_.bindAll=function(t){var e,n,i=arguments.length;if(i<=1)throw new Error("bindAll must be passed function names");for(e=1;e<i;e++)t[n=arguments[e]]=_.bind(t[n],t);return t},_.memoize=function(i,r){function o(t){var e=o.cache,n=r?r.apply(this,arguments):t;return _.has(e,n)||(e[n]=i.apply(this,arguments)),e[n]}return o.cache={},o},_.delay=function(t,e){var n=p.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},_.defer=function(t){return _.delay.apply(_,[t,1].concat(p.call(arguments,1)))},_.throttle=function(n,i,r){function o(){u=!1===r.leading?0:_.now(),c=null,l=n.apply(a,s),c||(a=s=null)}var a,s,l,c=null,u=0;r=r||{};return function(){var t=_.now(),e=(u||!1!==r.leading||(u=t),i-(t-u));return a=this,s=arguments,e<=0||i<e?(clearTimeout(c),c=null,u=t,l=n.apply(a,s),c||(a=s=null)):c||!1===r.trailing||(c=setTimeout(o,e)),l}},_.debounce=function(e,n,i){function r(){var t=_.now()-l;t<n&&0<t?o=setTimeout(r,n-t):(o=null,i||(c=e.apply(s,a),o)||(s=a=null))}var o,a,s,l,c;return function(){s=this,a=arguments,l=_.now();var t=i&&!o;return o=o||setTimeout(r,n),t&&(c=e.apply(s,a),s=a=null),c}},_.wrap=function(t,e){return _.partial(e,t)},_.negate=function(t){return function(){return!t.apply(this,arguments)}},_.compose=function(){var n=arguments,i=n.length-1;return function(){for(var t=i,e=n[i].apply(this,arguments);t--;)e=n[t].call(this,e);return e}},_.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},_.before=function(t,e){var n;return function(){return 0<--t?n=e.apply(this,arguments):e=null,n}},_.once=_.partial(_.before,2),_.keys=function(t){if(!_.isObject(t))return[];if(v)return v(t);var e,n=[];for(e in t)_.has(t,e)&&n.push(e);return n},_.values=function(t){for(var e=_.keys(t),n=e.length,i=Array(n),r=0;r<n;r++)i[r]=t[e[r]];return i},_.pairs=function(t){for(var e=_.keys(t),n=e.length,i=Array(n),r=0;r<n;r++)i[r]=[e[r],t[e[r]]];return i},_.invert=function(t){for(var e={},n=_.keys(t),i=0,r=n.length;i<r;i++)e[t[n[i]]]=n[i];return e},_.functions=_.methods=function(t){var e,n=[];for(e in t)_.isFunction(t[e])&&n.push(e);return n.sort()},_.extend=function(t){if(_.isObject(t))for(var e,n,i=1,r=arguments.length;i<r;i++)for(n in e=arguments[i])g.call(e,n)&&(t[n]=e[n]);return t},_.pick=function(t,e,n){var i,r={};if(null!=t)if(_.isFunction(e))for(i in e=c(e,n),t){var o=t[i];e(o,i,t)&&(r[i]=o)}else{var a=f.apply([],p.call(arguments,1));t=new Object(t);for(var s=0,l=a.length;s<l;s++)(i=a[s])in t&&(r[i]=t[i])}return r},_.omit=function(t,e,n){var i;return e=_.isFunction(e)?_.negate(e):(i=_.map(f.apply([],p.call(arguments,1)),String),function(t,e){return!_.contains(i,e)}),_.pick(t,e,n)},_.defaults=function(t){if(_.isObject(t))for(var e=1,n=arguments.length;e<n;e++){var i,r=arguments[e];for(i in r)void 0===t[i]&&(t[i]=r[i])}return t},_.clone=function(t){return _.isObject(t)?_.isArray(t)?t.slice():_.extend({},t):t},_.tap=function(t,e){return e(t),t},function(t,e,n,i){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof _&&(t=t._wrapped),e instanceof _&&(e=e._wrapped);var r=m.call(t);if(r!==m.call(e))return!1;switch(r){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}if("object"!=typeof t||"object"!=typeof e)return!1;for(var o=n.length;o--;)if(n[o]===t)return i[o]===e;var a=t.constructor,s=e.constructor;if(a!==s&&"constructor"in t&&"constructor"in e&&!(_.isFunction(a)&&a instanceof a&&_.isFunction(s)&&s instanceof s))return!1;if(n.push(t),i.push(e),"[object Array]"===r){if(c=(h=t.length)===e.length)for(;h--&&(c=x(t[h],e[h],n,i)););}else{var l,c,u=_.keys(t),h=u.length;if(c=_.keys(e).length===h)for(;h--&&(l=u[h],c=_.has(e,l)&&x(t[l],e[l],n,i)););}return n.pop(),i.pop(),c}),h=(_.isEqual=function(t,e){return x(t,e,[],[])},_.isEmpty=function(t){if(null!=t){if(_.isArray(t)||_.isString(t)||_.isArguments(t))return 0===t.length;for(var e in t)if(_.has(t,e))return!1}return!0},_.isElement=function(t){return!(!t||1!==t.nodeType)},_.isArray=u||function(t){return"[object Array]"===m.call(t)},_.isObject=function(t){var e=typeof t;return"function"==e||"object"==e&&!!t},_.each(["Arguments","Function","String","Number","Date","RegExp"],function(e){_["is"+e]=function(t){return m.call(t)==="[object "+e+"]"}}),_.isArguments(arguments)||(_.isArguments=function(t){return _.has(t,"callee")}),"function"!=typeof/./&&(_.isFunction=function(t){return"function"==typeof t||!1}),_.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},_.isNaN=function(t){return _.isNumber(t)&&t!==+t},_.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===m.call(t)},_.isNull=function(t){return null===t},_.isUndefined=function(t){return void 0===t},_.has=function(t,e){return null!=t&&g.call(t,e)},_.noConflict=function(){return n._=r,this},_.identity=function(t){return t},_.constant=function(t){return function(){return t}},_.noop=function(){},_.property=function(e){return function(t){return t[e]}},_.matches=function(t){var r=_.pairs(t),o=r.length;return function(t){if(null==t)return!o;t=new Object(t);for(var e=0;e<o;e++){var n=r[e],i=n[0];if(n[1]!==t[i]||!(i in t))return!1}return!0}},_.times=function(t,e,n){var i=Array(Math.max(0,t));e=c(e,n,1);for(var r=0;r<t;r++)i[r]=e(r);return i},_.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},_.now=Date.now||function(){return(new Date).getTime()},{"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"}),u=_.invert(h),w=(_.escape=e(h),_.unescape=e(u),_.result=function(t,e){var n;if(null!=t)return n=t[e],_.isFunction(n)?t[e]():n},0),T=(_.uniqueId=function(t){var e=++w+"";return t?t+e:e},_.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},/(.)^/),S={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},C=/\\|'|\r|\n|\u2028|\u2029/g;_.template=function(o,t,e){t=_.defaults({},t=!t&&e?e:t,_.templateSettings);var e=RegExp([(t.escape||T).source,(t.interpolate||T).source,(t.evaluate||T).source].join("|")+"|$","g"),a=0,s="__p+='";o.replace(e,function(t,e,n,i,r){return s+=o.slice(a,r).replace(C,l),a=r+t.length,e?s+="'+\n((__t=("+e+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":i&&(s+="';\n"+i+"\n__p+='"),t}),s+="';\n",s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+(s=t.variable?s:"with(obj||{}){\n"+s+"}\n")+"return __p;\n";try{var n=new Function(t.variable||"obj","_",s)}catch(t){throw t.source=s,t}function i(t){return n.call(this,t,_)}e=t.variable||"obj";return i.source="function("+e+"){\n"+s+"}",i},_.chain=function(t){t=_(t);return t._chain=!0,t};_.mixin=function(n){_.each(_.functions(n),function(t){var e=_[t]=n[t];_.prototype[t]=function(){var t=[this._wrapped];return d.apply(t,arguments),i.call(this,e.apply(_,t))}})},_.mixin(_),_.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var n=o[e];_.prototype[e]=function(){var t=this._wrapped;return n.apply(t,arguments),"shift"!==e&&"splice"!==e||0!==t.length||delete t[0],i.call(this,t)}}),_.each(["concat","join","slice"],function(t){var e=o[t];_.prototype[t]=function(){return i.call(this,e.apply(this._wrapped,arguments))}}),_.prototype.value=function(){return this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return _})}.call(this)},{}],577:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=b(t("backbone")),r=b(t("fastclick")),o=b(t("backbone.marionette")),a=b(t("./entities/Entities")),s=b(t("./common/Analytics")),l=b(t("./common/Load")),c=b(t("./common/Share")),u=b(t("./common/Sound")),h=b(t("./modules/Main")),d=b(t("./modules/Nav")),p=b(t("./modules/Home")),f=b(t("./modules/Car")),m=b(t("./modules/Event")),g=b(t("./modules/MoreOnCitroen")),v=b(t("./modules/SiteMap")),y=b(t("./modules/Overlay")),_=t("./util/Env");function b(t){return t&&t.__esModule?t:{default:t}}function x(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}x(T,w=o.default.Application),T.prototype.initialize=function(t){this.module("Entities",a.default),this.module("Analytics",s.default),this.module("Load",l.default),this.module("Share",c.default),this.module("Sound",u.default),this.module("Main",h.default),this.module("Nav",d.default),this.module("Home",p.default),this.module("Car",f.default),this.module("Event",m.default),this.module("MoreOnCitroen",g.default),this.module("SiteMap",v.default),this.module("Overlay",y.default),this.addRegions({root:"#root",nav:"#nav-region",main:"#main-region",section:"#sections-region",footer:"#footer-region",overlay:"#overlay-region",loader:"#loader-region"})},T.prototype.onBeforeStart=function(t){this.env=t,this.env.assetsCrossOrigin="dev"==this.env.name?"anonymous":void 0,this.env.screensaver="app"==this.env.name&&this.env.ajax&&!(0,_.isSmall)(),console.log("App.env",this.env)},T.prototype.onStart=function(){(0,r.default)(document.body),this.once("app:loaded",this.onLoaded)},T.prototype.onLoaded=function(){i.default.history.start({root:"/",pushState:!0,hashChange:!1})};var w,t=T;function T(){var t=this,e=T;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=w.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"./common/Analytics":578,"./common/Load":579,"./common/Share":580,"./common/Sound":581,"./entities/Entities":582,"./modules/Car":587,"./modules/Event":588,"./modules/Home":589,"./modules/Main":590,"./modules/MoreOnCitroen":591,"./modules/Nav":592,"./modules/Overlay":593,"./modules/SiteMap":594,"./util/Env":643,backbone:44,"backbone.marionette":42,fastclick:383}],578:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t,r,n,e,o,i){var a={page:function(t){var e="app"===r.env.name?"/"+n.history.fragment:""+n.history.location.pathname;t=t||{page:e.substr(1),title:document.title},a.send(t)},event:function(t,e,n){a.send({event:3<arguments.length&&void 0!==arguments[3]&&arguments[3]?"updatevirtualpath":"uaevent",eventCategory:t,eventAction:e,eventLabel:n})},eventMap:function(t){t={event:t.event,brand:t.brand,virtualPageURL:t.virtualPageURL+"/form-validation",pageName:t.pageName,language:t.language,country:t.country,siteTypeLevel1:t.siteTypeLevel1,siteTypeLevel2:t.siteTypeLevel2,siteOwner:t.siteOwner,siteTarget:t.siteTarget,siteFamily:t.siteFamily,pageCategory:t.pageCategory,vehicleModelBodystyleLabel:t.vehicleModelBodystyleLabel,formsLeadType:t.formsLeadType,formsName:t.formsName};a.send(t)},eventExpo:function(t){t={event:t.event,brand:t.brand,virtualPageURL:t.virtualPageURL,pageName:t.pageName,language:t.language,country:t.country,siteTypeLevel1:t.siteTypeLevel1,siteTypeLevel2:t.siteTypeLevel2,siteOwner:t.siteOwner,siteTarget:t.siteTarget,siteFamily:t.siteFamily,pageCategory:t.pageCategory};a.send(t)},send:function(t){window.dataLayer&&(console.timeStamp&&console.timeStamp("Analytics.send"),console.log("Analytics.send",t),window.dataLayer.push(t))}};r.commands.setHandler("track:page",a.page),r.commands.setHandler("track:event",a.event),r.commands.setHandler("track:eventMap",a.eventMap),r.commands.setHandler("track:eventExpo",a.eventExpo),o(document).on("click","a[data-category], input[data-category], img[data-category], div[data-category]",function(t){var t=o(t.currentTarget),e=t.data("category"),n=t.data("action"),i=t.data("label"),t=!!t.data("virtualpath");r.execute("track:event",e,n,i,t)}),o(document).on("change","#contrib-ok .tracking",function(t){var e;"true"==o(this).val()&&((e={event:"updatevirtualpath"}).brand=dataLayer[0].brand,e.virtualPageURL=dataLayer[0].virtualPageURL,e.pageName=dataLayer[0].pageName,e.language=dataLayer[0].language,e.country=dataLayer[0].country,e.siteTypeLevel1=dataLayer[0].siteTypeLevel1,e.siteTypeLevel2=dataLayer[0].siteTypeLevel2,e.siteOwner=dataLayer[0].siteOwner,e.siteTarget=dataLayer[0].siteTarget,e.siteFamily=dataLayer[0].siteFamily,e.pageCategory="lead page",e.vehicleModelBodystyleLabel=void 0===dataLayer[0].vehicleModelBodystyleLabel?o("#contributed_model_name").val():dataLayer[0].vehicleModelBodystyleLabel,e.formsLeadType="cold lead",e.formsName="map origins",r.execute("track:eventMap",e),o("#contrib-ok .tracking").val("false"))})}},{}],579:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var f=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t)){var n=e,i=[],r=!0,e=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(i.push(a.value),!n||i.length!==n);r=!0);}catch(t){e=!0,o=t}finally{try{!r&&s.return&&s.return()}finally{if(e)throw o}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")},u=t("../util/Cookie");t("../util/Env");n.default=function(t,l,e,n,h,i){var d,p=document.createElement("a");var c={enqueueFile:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:createjs.LoadItem.LOAD_TIMEOUT_DEFAULT,n=void 0;if((t=t instanceof jQuery?t.get(0):t)instanceof HTMLImageElement){t.id||(t.id="_img"+Math.round(4294967295*Math.random()).toString(16));var i=h(t).data("preload");if(!1===i||"false"==i)return void console.log("Load ignore, don't preload it",r,t);if(t.complete)return void console.log("Load ignore, already loaded",t.src,t);(n=new createjs.LoadItem).set({src:t})}else if(t instanceof HTMLElement&&t.classList.contains("img-wrapper")&&/^url\([^)]+\)$/.test(t.style.backgroundImage)){i=/^url\((?:"|')?([^"')]+)(?:"|')?\)$/.exec(t.style.backgroundImage),i=f(i,2)[1];(n=new createjs.LoadItem).set({src:i,type:createjs.AbstractLoader.BINARY})}else{if(t instanceof HTMLElement)return void console.log("Load don't support this file",t);(n=new createjs.LoadItem).set({src:t})}if(n){var r=(n.src instanceof HTMLImageElement?n.src:n).src;if(p.href=r,r=p.href,(i=(i=r)?i.trim():"")&&"about:blank"!=i&&"about:error"!=i&&"#"!=i&&i!=document.URL){var o=!0,a=!1,s=void 0;try{for(var l,c=d.getItems()[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var u=l.value.item;if((u instanceof HTMLImageElement?u.src:u).src==r)return void console.log("Load ignore, already loading URI",r,t)}}catch(t){a=!0,s=t}finally{try{!o&&c.return&&c.return()}finally{if(a)throw s}}console.log("Load",r),n.loadTimeout=e,d.loadFile(n,!1)}else console.log("Load ignore, invalid URI",r,t)}else console.log("Load ignore, unloadable",t)},start:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],n=(d.removeAll(),e||("app"!=l.env.name&&(l.introViewed="true"==(0,u.getCookie)("introviewed")),c._isHome()&&!l.introViewed?l.execute("intro:show"):(l.loader.$el.append('<div class="loader-bar" style="width: 0%"></div>').fadeIn(),l.loader.$el.fadeIn())),t=h.uniqueSort(t),createjs.LoadItem.LOAD_TIMEOUT_DEFAULT+300*t.length),i=!0,e=!1,r=void 0;try{for(var o,a=t[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var s=o.value;c.enqueueFile(s,n)}}catch(t){e=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(e)throw r}}d.load()},startInBackground:function(t){c.start(t,!0)},abort:function(){console.log("Load.abort"),d.removeAll()},_onError:function(t){console.error("Load error:",t)},_onProgess:function(t){t=t.progress;c._isHome()&&!l.introViewed?l.overlay.currentView.setProgress(t):l.loader.$el.find(".loader-bar").css("width",100*t+"%"),l.trigger("load:progress",t)},_onComplete:function(t){setTimeout(function(){c._onProgess({progress:1}),c._isHome()&&!l.introViewed?((0,u.setCookie)("introviewed",!0,1),l.introViewed=!0,l.trigger("load:complete")):(l.loader.$el.find(".loader-bar").css("width","100%"),l.loader.$el.fadeOut(500,function(){l.trigger("load:complete"),l.loader.$el.empty()}))},500)},_isHome:function(){return("app"===l.env.name?"/"+e.history.fragment:""+e.history.location.pathname).substr(1)==l.defaultPage}};l.commands.setHandler("load:start",c.start),l.commands.setHandler("load:start:background",c.startInBackground),l.commands.setHandler("load:abort",c.abort),l.once("app:loaded",function(){(d=new createjs.LoadQueue(!0,"",!0)).setMaxConnections(Number.POSITIVE_INFINITY),d.on("progress",c._onProgess,void 0),d.on("error",c._onError,void 0),d.on("complete",c._onComplete,void 0)})}},{"../util/Cookie":642,"../util/Env":643}],580:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t,i,e,n,s,r){var l={shareOnFacebook:function(t,e){var n=i.reqres.request("menu:all").facebook_id;n?l._openPopup("https://www.facebook.com/dialog/share?app_id="+n+"&mobile_iframe=true&display=popup&quote="+encodeURIComponent(t)+"&href="+encodeURIComponent(e),"facebookwindow"):(console.log("No Facebook App ID found"),l._openPopup("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent(e)+"&t="+encodeURIComponent(t),"facebookwindow"))},shareOnTwitter:function(t,e){l._openPopup("https://twitter.com/share?text="+encodeURIComponent(t),"twitterwindow")},shareOnPinterest:function(t,e,n){l._openPopup("https://pinterest.com/pin/create/button/?url="+encodeURIComponent(n)+"&media="+encodeURIComponent(t)+"&description="+encodeURIComponent(e),"pinterestwindow")},_openPopup:function(t,e){console.log(t,e);var n=(screen.height-400)/2,i=(screen.width-550)/2;window.open(t,e,"width=550,height=400,top="+n+",left="+i+",toolbar=0,location=0,menubar=0,directories=0,scrollbars=0")}};s("body").on("click","a[data-share]",function(t){t.preventDefault();var t=s(t.target),e=t.data("share"),n=t.data("message"),i=document.location.toString(),r=document.location.protocol+"//"+document.location.hostname,o=t.data("asset");o&&-1==o.indexOf("http")&&(o=r+t.data("asset"));var a=(a=t.data("url"))&&""!=a&&-1==a.indexOf("http")?r+t.data("url"):"";console.log(a),"facebook"==e?l.shareOnFacebook(n,""!=a?a:i):"twitter"==e?l.shareOnTwitter(n,""!=a?a:i):"pinterest"==e&&l.shareOnPinterest(o,n,""!=a?a:i)})}},{}],581:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u=t("../util/Env"),h=t("../util/Cookie");n.default=function(t,e,n,i,r,o){var a,s,l=!1,c=(e.isMute=(0,h.getCookie)("muted"),e.isMute="true"==e.isMute,console.log("Sound isMute '"+e.isMute+"'"),{playTheme:function(t){e.env.offline&&(t=(0,u.rewritePath)(t)),console.log("Sound.playTheme",t),c._stopSound(s),(s=new Audio).volume=e.isMute?0:1,s.onended=function(){s&&(s.currentTime=0,s.play())},s.autoplay=(0,u.isDesktop)(),s.src=t},stopTheme:function(){console.log("Sound.stopTheme"),c._stopSound(s),c._stopSound(a)},play:function(t){if(e.env.offline&&-1!=(t=(0,u.rewritePath)(t)).indexOf("////")&&(t=t.replace("////","///")),console.log("Sound.play",t),a){if(decodeURIComponent(a.src)==decodeURIComponent(t))return c._stopSound(a),a=void 0,void(!e.isMute&&s&&c._setVolume(s,1));c._stopSound(a)}s&&!e.isMute&&c._setVolume(s,0),(a=new Audio(t)).onended=function(){!e.isMute&&s&&c._setVolume(s,1)},(0,u.isDesktop)()?a.timeoutID=setTimeout(function(){a.play()},1800):a.play()},toggleMute:function(){e.isMute=!e.isMute,c._setVolume(s,e.isMute?0:1),(0,h.setCookie)("muted",e.isMute,1)},toggleAutoMute:function(){l=!l,e.isMute||c._setVolume(s,l?0:1)},_stopSound:function(t){t&&(t.timeoutID&&clearTimeout(a.timeoutID),t.pause())},_setVolume:function(t,e){t&&r(t).stop(!0,!1).animate({volume:e},2e3,"linear")}});e.commands.setHandler("sound:play",c.play),e.commands.setHandler("sound:theme:play",c.playTheme),e.commands.setHandler("sound:theme:stop",c.stopTheme),e.commands.setHandler("sound:toggle:mute",c.toggleMute),e.commands.setHandler("sound:toggle:automute",c.toggleAutoMute)}},{"../util/Cookie":642,"../util/Env":643}],582:[function(e,t,n){!function(p){!function(){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=(t(e("underscore")),t(e("./models/Cars"))),c=t(e("./models/Events")),u=t(e("./models/Annexes")),h=t(e("./models/Contributions")),d=e("../util/Env");function t(t){return t&&t.__esModule?t:{default:t}}n.default=function(r,a,t,e,n,o){o.templateSettings.interpolate=/\{\{(.+?)\}\}/g;var s={getCarsCollection:function(){return r.cars},getCarModel:function(t){return r.cars.findWhere({slug:t})},getCarsThematic:function(t){return r.cars.where({thematic:t})},getCarsSections:function(){return r.globalTexts},getThematics:function(){return r.thematics},getMenu:function(){return r.menu},getScreensaverModel:function(){return r.screensaver},getAnnexesCollection:function(){return r.annexes},getAnnexModel:function(t){return r.annexes.findWhere({slug:t})},getContributionsCollection:function(){return r.contributions},getContributionByCarID:function(t){return r.contributions.contributionsByCarID(t)},getEventsCollection:function(){return r.events},getEventModel:function(t){return r.events.findWhere({slug:t})},fetch:function(e){return n.getJSON(e.menu,function(t){r.menu=t,r.globalTexts=r.cars.globalTexts=r.annexes.globalTexts=r.events.globalTexts=t.page_text,a.trigger("model:menu-loaded")}).then(function(){var t=[n.getJSON(e.thematics,function(t){r.thematics=t.thematics[0]}),r.cars.fetch(),r.events.fetch(),r.annexes.fetch()];return"app"!==a.env.name&&t.push(r.contributions.fetch()),a.env.screensaver&&t.push(n.getJSON(e.screensaver,function(t){r.screensaver=t})),n.when.apply(n,t)}).then(function(){a.trigger("model:loaded")})},_getResolution:function(){return window.innerWidth<=640?640:window.innerWidth<=1024||(0,d.isIE)()?1024:window.innerWidth<=1280?1280:1600},_getAssetUrl:function(t,e){var n,i;return t?(n=/(.*)\/(320|640|1024|1280|1600|2048)\/(.*)/i.exec(t),i=/(.*)\/(mid|max)\/(.*)/i.exec(t),n||i?i?"mid"==e||"max"==e?i[1]+"/"+e+"/"+i[3]:t:("auto"==(e="auto-3d-360"==(e="auto-home"==e?(0,d.isMobile)()||(0,d.isTablet)()&&(0,d.resolution)()<=1.5?320:1024:e)?(0,d.isTablet)()||(0,d.isIE)()?1024:2048:e)&&(e=s._getResolution()),a.env.offline&&2048!=e&&(e=1600),n[1]+"/"+e+"/"+n[3]):t):""},_onLoaded:function(){var o=this;e.View.prototype.templateHelpers=function(){return{globalTexts:r.globalTexts,assetsUrl:function(t,e){t=s._getAssetUrl(t,e);return t=a.env.offline?(0,d.rewritePath)(t):t},assetsCSSUrl:function(t,e){t=s._getAssetUrl(t,e);return t=a.env.offline?(0,d.rewritePath)(t,!0):t},assetsFolder:function(){return"dev"==a.env.name?"assets":"app"==a.env.name?p.__dirname+"/assets":"/themes/custom/citroen_theme"},assetsCrossOrigin:a.env.assetsCrossOrigin,defaultPage:function(){return"/"+a.defaultPage},isSmall:function(){return(0,d.isSmall)()},isColor:function(t,e){return"string"==typeof t&&"#"==t.charAt(0)?e.fn(o):e.inverse(o)},isBright:function(t,e){t=parseInt(t.substr(1),16);return.7<((t>>16&255)+(t>>8&255)+(255&t))/765?e.fn(o):e.inverse(o)},forBy:function(t,e,n,i){for(var r="",o=0;o<t.length;o+=n)r+=i.fn({isOdd:o%2*n==0,imgs:[t[o],t[o+1],t[o+2]],texts:[e[o],e[o+1],e[o+2]]});return r},ifEqual:function(t,e,n){return t==e?n.fn(o):n.inverse(o)},ifTypeof:function(t,e,n){return e=e.toLowerCase(),(void 0===t?"undefined":i(t))==e||Array.isArray(t)&&"array"==e?n.fn(o):n.inverse(o)},ifOffline:function(t,e){return a.env.offline==t?e.fn(o):e.inverse(o)},ifForceDisplayOfDispatch:function(t,e){return a.env.forcedisplayofdispatch==t?e.fn(o):e.inverse(o)},replace:function(t,e,n){var i=!1;return(i="string"==typeof e?-1<e.indexOf(t):i)?e.replace(new RegExp(t,"g"),n.fn(o)):n.inverse(o)},ifContains:function(t,e,n){var i=!1;return(i="string"==typeof t?-1<t.indexOf(e):i)?n.fn(o):n.inverse(o)},increment:function(t,e,n){return parseInt(t)+parseInt(e)},len:function(t){return Object.keys(t).length},endsWith:function(e,t,n){var i=!1,r={};if("string"==typeof e){t=t.split(",");try{t.forEach(function(t){if(i=-1!==e.indexOf(t,e.length-t.length))throw r})}catch(t){if(t!==r)throw t}}return i?n.fn(o):n.inverse(o)},yearDecade:function(t){return t.toString().substr(2)},yearCentury:function(t){return t.toString().substr(0,2)},toPercent:function(t){return 100*t+"%"},isChunkSeparator:function(t,e,n){return 0<t&&t%e==0?n.fn(o):n.inverse(o)},isQuoteIndiscretion:function(t,e,n){return"anecdotes"==t?n.fn(o):n.inverse(o)},isPDFIndiscretion:function(t,e,n){return"brochures"==t||"indiscretions_notices_d_entretie"==t||"indiscretions_publicite"==t&&"key_doc"==e||"autre_document"==t?n.fn(o):n.inverse(o)},isImageIndiscretion:function(t,e,n){return"autre_visuel"==t||"bd"==t||"indiscretions_publicite"==t&&"key_img"==e?n.fn(o):n.inverse(o)},isVideoIndiscretion:function(t,e,n){return"cinema"==t||"indiscretions_publicite"==t&&"key_video"==e||"indis_other_video"==t?n.fn(o):n.inverse(o)},isSoundIndiscretion:function(t,e,n){return"son"==t||"indiscretions_publicite"==t&&"key_sound"==e||"autre_son"==t?n.fn(o):n.inverse(o)},isTextIndiscretion:function(t,e,n){return"presentation"==t?n.fn(o):n.inverse(o)},join:function(t,e){if(null!==t)return t.join(e)}}},a.trigger("app:loaded")}};r.cars=new l.default,r.events=new c.default,r.annexes=new u.default,r.contributions=new h.default,r.screensaver=null,a.reqres.setHandler("cars:all",s.getCarsCollection),a.reqres.setHandler("cars:get",s.getCarModel),a.reqres.setHandler("cars:get:thematic",s.getCarsThematic),a.reqres.setHandler("cars:get:sections",s.getCarsSections),a.reqres.setHandler("menu:all",s.getMenu),a.reqres.setHandler("thematics:all",s.getThematics),a.reqres.setHandler("annexes:all",s.getAnnexesCollection),a.reqres.setHandler("annexes:get",s.getAnnexModel),a.reqres.setHandler("screensaver:get",s.getScreensaverModel),a.reqres.setHandler("contributions:all",s.getContributionsCollection),a.reqres.setHandler("contributions:get",s.getContributionByCarID),a.reqres.setHandler("events:all",s.getEventsCollection),a.reqres.setHandler("events:get",s.getEventModel),a.commands.setHandler("model:fetch",s.fetch),a.on("before:start",function(t){var n,i=t.api;t.offline&&(n=window.localStorage.getItem("lang")||"fr",o.each(t.api,function(t,e){i[e]=o.template(t)({lang:n})}),document.documentElement.setAttribute("lang",n),t=window.localStorage.getItem("dir")||"ltr",console.log("Dir:",t),document.documentElement.setAttribute("dir",t),document.documentElement.setAttribute("isapp",!0)),r.cars.url=i.cars,r.events.url=i.events,r.annexes.url=i.annexes,"app"!==a.env.name&&(r.contributions.url=i.contributions),a.on("model:loaded",s._onLoaded),a.execute("model:fetch",i)})}}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../util/Env":643,"./models/Annexes":583,"./models/Cars":584,"./models/Contributions":585,"./models/Events":586,underscore:576}],583:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=a(t("backbone"));a(t("underscore"));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}c(d,u=o.default.Model),d.prototype.initialize=function(t){},i(d,[{key:"idAttribute",get:function(){return"id"}},{key:"prev",get:function(){var t=this.collection.indexOf(this);return--t<0&&(t=this.collection.length-1),this.collection.at(t)}},{key:"next",get:function(){var t=this.collection.indexOf(this);return++t>this.collection.length-1&&(t=0),this.collection.at(t)}}]);var u,h=d;function d(){return s(this,d),l(this,u.apply(this,arguments))}c(f,p=o.default.Collection),f.prototype.initialize=function(){},f.prototype.parse=function(t){return t.pages_annexes},i(f,[{key:"model",get:function(){return h}}]);var p,t=f;function f(){return s(this,f),l(this,p.apply(this,arguments))}n.default=t},{backbone:44,underscore:576}],584:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=a(t("backbone")),u=a(t("underscore"));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}h(f,d=o.default.Model),f.prototype.initialize=function(t){if(this.set("year",parseInt(t.year||t.genealogie_content.genealogie_car.year)),this.set("yearCoords",t.dat_coord||t.viewer_360.dat_coord),this.set("special",Boolean(t.special_car)),this.set("event",Boolean(t.special_event)),!this.get("special")&&!this.get("event")){this.set("slug",decodeURIComponent(t.slug));var e,n=t.fiche_technique.content;for(e in n){var i,r=n[e].content;for(i in r){var o=r[i];"string"==typeof o&&o.includes("|")&&(r[i]=o=o.split("|")),"object"!=(void 0===o?"undefined":c(o))||Array.isArray(o)||(r[i]=Object.values(o))}}var a=this.get("indiscretions"),s=this.collection.globalTexts,l=(a.content&&0!=a.content.length?(t=u.default.uniq(u.default.pluck(a.content,"content_type")),a[s.text_indis[0].all]=a.content,u.default.each(t,function(t){var e=s.text_indis[0][t];a[e];null==a[e]?a[e]=u.default.where(a.content,{content_type:t}):u.default.each(u.default.where(a.content,{content_type:t}),function(t){a[e].push(t)})}),delete a.content,this.set("indiscretions",a)):this.set("indiscretions",""),this.get("Design"));u.default.each(l.content,function(t,e){""==t.chromie&&delete l.content[e]}),u.default.isEmpty(l.content)&&delete l.content,this.set("design",l)}},i(f,[{key:"idAttribute",get:function(){return"id"}},{key:"prev",get:function(){var t=this.collection.normalCars,e=t.indexOf(this);return--e<0&&(e=t.length-1),t.at(e)}},{key:"next",get:function(){var t=this.collection.normalCars,e=t.indexOf(this);return++e>t.length-1&&(e=0),t.at(e)}}]);var d,p=f;function f(){return s(this,f),l(this,d.apply(this,arguments))}h(g,m=o.default.Collection),g.prototype.initialize=function(){this.comparator="year"},g.prototype.parse=function(t){return t.cars},g.prototype.getYears=function(t){for(var e=[],n=0,i=this.length;n<i;n++){var r=this.at(n),o=r.get("year");(!t||"min"in t&&o>=min||"max"in t&&o<=max||"cat"in t&&("*"==t.cat||r.get("term_id")==t.cat))&&e.push(o)}return e.reduce(function(t,e){return t.indexOf(e)<0&&t.push(e),t},[]).sort()},i(g,[{key:"model",get:function(){return p}},{key:"normalCars",get:function(){return new o.default.Collection(this.where({special:!1,event:!1}))}}]);var m,t=g;function g(){return s(this,g),l(this,m.apply(this,arguments))}n.default=t},{backbone:44,underscore:576}],585:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=s(t("backbone")),a=s(t("underscore"));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}u(p,h=o.default.Model),p.prototype.initialize=function(t){},i(p,[{key:"idAttribute",get:function(){return"id"}},{key:"prev",get:function(){var t=this.collection.indexOf(this);return--t<0&&(t=this.collection.length-1),this.collection.at(t)}},{key:"next",get:function(){var t=this.collection.indexOf(this);return++t>this.collection.length-1&&(t=0),this.collection.at(t)}}]);var h,d=p;function p(){return l(this,p),c(this,h.apply(this,arguments))}u(m,f=o.default.Collection),m.prototype.initialize=function(){},m.prototype.contributionsByCarID=function(e){return new m(this.filter(function(t){if(0<a.default.where(t.get("contributions"),{group_type:e}).length)return t}))},m.prototype.parse=function(t){return t.all_contributions},i(m,[{key:"model",get:function(){return d}}]);var f,t=m;function m(){return l(this,m),c(this,f.apply(this,arguments))}n.default=t},{backbone:44,underscore:576}],586:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=a(t("backbone"));a(t("underscore"));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}c(d,u=o.default.Model),d.prototype.initialize=function(t){this.set("year",parseInt(t.year)),this.set("slug",decodeURIComponent(t.slug))},i(d,[{key:"idAttribute",get:function(){return"id"}}]);var u,h=d;function d(){return s(this,d),l(this,u.apply(this,arguments))}c(f,p=o.default.Collection),f.prototype.initialize=function(){this.comparator="year"},f.prototype.parse=function(t){return t.events},i(f,[{key:"model",get:function(){return h}}]);var p,t=f;function f(){return s(this,f),l(this,p.apply(this,arguments))}n.default=t},{backbone:44,underscore:576}],587:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});i(t("underscore"));var p=i(t("./components/CarLayout")),f=i(t("./components/footer/FooterView")),m=t("../util/Env"),g=t("../util/Cookie");function i(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}n.default=function(t,o,a,e,h,d){v(c,s=e.AppRouter);var n,i,r,s,l=c;function c(){var t=this,e=c;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=s.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var u={car:function(){var e="app"===o.env.name,n=null,n=e?o.reqres.request("cars:get","/"+a.history.fragment):o.reqres.request("cars:get",""+a.history.location.pathname),i=e?[]:o.reqres.request("contributions:get",n.get("group_type")),t=o.reqres.request("annexes:all"),r=(console.log("//////////////////////////////////////////////////////////"),console.log(n),t.each(function(t){e||!1!==n.attributes.prototype||-1!==t.get("slug").indexOf("/map")&&(n.attributes.cities=!0,n.attributes.latitude=t.get("latitude"),n.attributes.longitude=t.get("longitude")),!e&&"quiz"==t.get("type")&&t.get("promoteOnCars")&&(n.attributes.quiz=!0,n.attributes.quiz_slug=t.get("slug"),n.attributes.quiz_image_logotype=t.get("image_logotype"))}),e&&n.attributes.photos.content.tab_5&&delete n.attributes.photos.content.tab_5,console.log("Car",n.get("title")),new p.default({assetsCrossOrigin:o.env.assetsCrossOrigin,model:n}));r.on("nav:select",function(t){return o.execute("nav:select",t)}),r.on("track:select",function(t){o.execute("track:event","Content","Select",t)}),r.once("load",function(t){return o.execute("load:start",t)}),r.once("destroy",function(t){u.abort360Loading(),o.execute("sound:theme:stop"),o.execute("nav:select","edito"),("app"===o.env.name?"/"+a.history.fragment:""+a.history.location.pathname).substr(1)==o.defaultPage&&o.execute("nav:reveal",!1)}),r.on("click:sound",function(t){return o.execute("sound:play",t)}),o.section.show(r),o.section.currentView.on("overlay:open:popin",function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return o.execute.apply(o,["overlay:open:popin"].concat(e))}),o.footer.show(new f.default({model:o.reqres.request("menu:all")})),o.footer.$el.removeClass("sticky"),o.overlay.$el.addClass("sticky"),o.once("load:complete",function(){r.onAppear(),(0,m.isSmall)()||u.start360Loading(r.$el);var t=n.get("music");t&&o.execute("sound:theme:play",t),!0===n.attributes.cities&&(u.loadMap(n.attributes.latitude,n.attributes.longitude),r.on("click:seeMapButton",function(){u.loadParticipation(i,n.get("group_type")),r.onRevealMap()}),r.on("click:addVehicleButton",function(t){var e=r.ui.addVehicleButton,n=e.data("category"),i=e.data("action"),e=e.data("label");o.execute("track:event",n,i,e,!1),o.execute("overlay:open:participation",t)})),o.footer.currentView.onAppear(),o.execute("nav:change:color","#DA291C"),o.execute("nav:reveal",!0)})},loadMap:function(t,e){r=new L.map("map-container",{center:new L.LatLng(t,e),zoom:(0,m.isSmall)()?1:2,minZoom:(0,m.isSmall)()?1:2,maxZoom:13,worldCopyJump:!0,zoomControl:!1,layers:new L.tileLayer("https://{s}.tile.osm.org/{z}/{x}/{y}.png")})},loadParticipation:function(t,s){var t=t.models,l=o.section.currentView.ui.mapGallery,c=(L.control.zoom({position:"bottomright"}).addTo(r),L.markerClusterGroup({showCoverageOnHover:!1,iconCreateFunction:function(t){var t=t.getAllChildMarkers(),n=0,t=(d.each(t,function(t,e){n+=parseInt(h(t.options.icon.options.html).text())?parseInt(h(t.options.icon.options.html).text()):1}),n<1e3),e=t?40:50;return L.divIcon({html:n,className:t?"mycluster1":"mycluster2",iconSize:L.point(e,e)})}})),u=[];d.each(t,function(n,t){var e,i,r,o=new L.LatLng(parseFloat(n.attributes.latitude),parseFloat(n.attributes.longitude)),a=h('<div id="'+n.attributes.latitude.replace(".","")+n.attributes.longitude.replace(".","")+'"></div>');d.each(n.attributes.contributions,function(t,e){s==t.group_type&&(t=h("<div>1</div>").attr("data-popin","true").attr("data-pinterest","false").attr("data-type","contribution").attr("data-url",t.image).attr("data-title",t.car_title).attr("data-pseudo",t.name).attr("data-city",n.attributes.city).attr("data-locality",n.attributes.latitude.replace(".","")+n.attributes.longitude.replace(".","")).attr("data-version",t.model_version).attr("data-year",t.model_year).attr("data-text",t.story).attr("data-liked","true"==(0,g.getCookie)("liked-contribution-"+t.id)?"liked":"").attr("data-contribution-id",t.id).attr("data-number-like",t.cpt_like).attr("data-share-facebook-txt",t.share_facebook_txt).attr("data-share-pinterest-txt",t.share_pinterest_txt).attr("data-share-twitter-txt",t.share_twitter_txt),a.append(t))}),0<a.find(">div").length&&(r=1==(r=a.find(">div").length)?L.divIcon({html:a.find("div").get(0).outerHTML,className:"customIcon",iconSize:L.point(30,30)}):(e=(i=r<1e3)?"mycluster1":"mycluster2",i=i?40:50,L.divIcon({html:h(a.find("div")[0]).text(r)[0].outerHTML,className:"customIcon "+e,iconSize:L.point(i,i)})),e=L.marker(o,{title:n.attributes.city,icon:r}),c.addLayer(e),u.push(o),l.append(a))}),r.addLayer(c)},start360Loading:function(t){i=!0,o.on("load:progress",function(t){o.section.currentView.setDragOpacity(t)}),o.once("load:complete",function(){i=!1,o.off("load:progress"),o.section.currentView.enableDrag()});t=t.find('[src="about:blank"][data-src]').get().concat(t.find("#webgl").data("textures"));d.each(t,function(t){h(t).attr("src",h(t).data("src"))}),o.execute("load:start:background",t)},abort360Loading:function(){i&&(o.off("load:complete"),o.off("load:progress"),o.execute("load:abort"),i=!1)},gotoSection:function(t){o.section.currentView.gotoSection(t)}};o.commands.setHandler("car:goto",u.gotoSection),o.on("before:start",function(t){n=new l({controller:u})}),o.on("app:loaded",function(t){o.reqres.request("cars:all").each(function(t){!0!==t.get("special_event")&&n.appRoute(t.get("slug").substr(1),"car")})})}},{"../util/Cookie":642,"../util/Env":643,"./components/CarLayout":595,"./components/footer/FooterView":606,underscore:576}],588:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});i(t("underscore"));var h=i(t("./components/ExpositionLayout")),d=i(t("./components/LandingLayout")),p=i(t("./components/LandingCarousel")),f=i(t("./components/footer/FooterView"));function i(t){return t&&t.__esModule?t:{default:t}}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}n.default=function(t,i,n,e,r,o){m(c,s=e.AppRouter);var a,s,l=c;function c(){var t=this,e=c;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=s.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var u={exposition:function(){var t=null,t="app"===i.env.name?i.reqres.request("events:get","/"+n.history.fragment):i.reqres.request("events:get",""+n.history.location.pathname),e=(console.log("//////////////////////////////////////////////////////////"),console.log(t),console.log("Exposition",t.get("title")),new h.default({assetsCrossOrigin:i.env.assetsCrossOrigin,model:t}));e.once("load",function(t){return i.execute("load:start",t)}),e.once("destroy",function(t){n.history.location.pathname.substr(1)==i.defaultPage&&i.execute("nav:reveal",!1)}),i.section.show(e),i.section.currentView.on("overlay:open:popin",function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return i.execute.apply(i,["overlay:open:popin"].concat(e))}),i.footer.show(new f.default({model:i.reqres.request("menu:all")})),i.footer.$el.removeClass("sticky"),i.overlay.$el.addClass("sticky"),i.once("load:complete",function(){e.onAppear(),e.on("change:slide",function(t){var e,n;window.dataLayer&&(e=(e=window.location.pathname.split("/"))[e.length-1],(n={event:"updatevirtualpath"}).brand=dataLayer[0].brand,n.virtualPageURL=t,n.pageName=dataLayer[0].siteTypeLevel1+"/"+dataLayer[0].siteTypeLevel2+"/"+dataLayer[0].siteOwner+"/"+dataLayer[0].siteTarget+"/"+dataLayer[0].siteFamily+"//"+(1024<r(window).width()?"desktop":"mobile")+"//"+e,n.language=dataLayer[0].language,n.country=dataLayer[0].country,n.siteTypeLevel1=dataLayer[0].siteTypeLevel1,n.siteTypeLevel2=dataLayer[0].siteTypeLevel2,n.siteOwner=dataLayer[0].siteOwner,n.siteTarget=dataLayer[0].siteTarget,n.siteFamily=dataLayer[0].siteFamily,n.pageCategory="product page",i.execute("track:eventExpo",n))}),i.footer.currentView.onAppear(),i.execute("nav:reveal",!1)})},landing:function(){var t=null,t="app"===i.env.name?i.reqres.request("events:get","/"+n.history.fragment):i.reqres.request("events:get",""+n.history.location.pathname),e=(console.log("//////////////////////////////////////////////////////////"),console.log(t),console.log("Landing",t.get("title")),new d.default({assetsCrossOrigin:i.env.assetsCrossOrigin,model:t}));e.once("load",function(t){return i.execute("load:start",t)}),e.once("destroy",function(t){n.history.location.pathname.substr(1)==i.defaultPage&&i.execute("nav:reveal",!1)}),i.section.show(e),i.section.currentView.on("overlay:open:popin",function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return i.execute.apply(i,["overlay:open:popin"].concat(e))}),i.footer.show(new f.default({model:i.reqres.request("menu:all")})),i.footer.$el.removeClass("sticky"),i.overlay.$el.addClass("sticky"),i.once("load:complete",function(){e.onAppear(),i.footer.currentView.onAppear(),i.execute("nav:reveal",!1)})},landing2020:function(){var t=null,t="app"===i.env.name?i.reqres.request("events:get","/"+n.history.fragment):i.reqres.request("events:get",""+n.history.location.pathname),e=(console.log("//////////////////////////////////////////////////////////"),console.log(t),console.log("Landing",t.get("title")),new p.default({assetsCrossOrigin:i.env.assetsCrossOrigin,model:t}));e.once("load",function(t){return i.execute("load:start",t)}),e.once("destroy",function(t){n.history.location.pathname.substr(1)==i.defaultPage&&i.execute("nav:reveal",!1)}),i.section.show(e),i.section.currentView.on("overlay:open:popin",function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return i.execute.apply(i,["overlay:open:popin"].concat(e))}),i.footer.show(new f.default({model:i.reqres.request("menu:all")})),i.footer.$el.removeClass("sticky"),i.overlay.$el.addClass("sticky"),i.once("load:complete",function(){e.onAppear(),i.footer.currentView.onAppear(),i.execute("nav:reveal",!1)})}};i.on("before:start",function(t){a=new l({controller:u})}),i.on("app:loaded",function(t){i.reqres.request("events:all").each(function(t){"exposition"===t.get("type")&&a.appRoute(t.get("slug").substr(1),"exposition"),"landing"===t.get("type")&&a.appRoute(t.get("slug").substr(1),"landing"),"landing_2020"===t.get("type")&&a.appRoute(t.get("slug").substr(1),"landing2020")})})}},{"./components/ExpositionLayout":596,"./components/LandingCarousel":598,"./components/LandingLayout":599,"./components/footer/FooterView":606,underscore:576}],589:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var h=i(t("./components/intro/IntroView")),d=i(t("./components/HomeLayout")),p=i(t("./components/footer/FooterView")),f=t("./../util/Env.js"),m=t("./../util/Cookie.js"),g=i(t("./components/screensaver/ScreensaverView"));function i(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}n.default=function(t,i,n,e,r,o){v(c,s=e.AppRouter);var a,s,l=c;function c(){var t=this,e=c;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=s.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var u={home:function(){console.log("Home");var t=new d.default({collection:i.reqres.request("cars:all")});t.on("zoom:car",function(e){var n="Vehicle";i.reqres.request("cars:all").models.map(function(t){t.attributes.title===e&&t.attributes.special_event&&(n="Event")}),i.execute("track:event","Content","Display::"+n,e)}),t.on("click:car",function(t,e){i.env.ajax?i.section.currentView.$el.fadeOut(400,o.bind(function(){n.history.navigate(t,{trigger:!0})},void 0)):i.root.$el.fadeOut(400,o.bind(function(){document.location.href=t},void 0))}),t.on("click:filters",function(){i.execute("overlay:open:filters")}),t.on("load",function(t){return i.execute("load:start",t)}),t.on("before:destroy",function(){i.trigger("home:beforedestroy")}),i.section.show(t),i.footer.show(new p.default({model:i.reqres.request("menu:all")})),i.footer.$el.addClass("sticky"),i.overlay.$el.addClass("sticky"),i.once("load:complete",function(){t.on("nav:set:sticky",function(t){return i.execute("nav:set:sticky",t)}),t.onAppear(),i.execute("nav:reveal",!1),i.footer.currentView.onAppear(),i.trigger("home:complete")})},intro:function(){console.log("Intro");var t=i.reqres.request("cars:all").getYears(),e=(0,f.isTouch)()||"app"==i.env.name,t=new h.default({min:t[0],max:(new Date).getFullYear(),legendCentenaire:i.reqres.request("menu:all").intro_centenaire_text,touch:e,tuto:e?i.reqres.request("menu:all").tuto_text_mobile:i.reqres.request("menu:all").tuto_text_desktop,offline:i.env.offline});t.once("home:open",u.home),i.overlay.show(t)},screensaverStart:function(){console.log("Screensaver start");var t=i.reqres.request("cars:all").getYears(),t=((0,f.isTouch)()||i.env.name,new g.default({min:t[0],max:(new Date).getFullYear(),data:i.reqres.request("screensaver:get"),offline:i.env.offline}));t.on("screensaver:carautozoom",function(){i.section.currentView.carAutoZoom(0<arguments.length&&void 0!==arguments[0]&&arguments[0])}),t.on("screensaver:resetzoom",function(){i.section.currentView.resetZoom()}),i.overlay.show(t)},screensaverStop:function(){i.overlay.currentView&&i.overlay.currentView instanceof g.default&&(console.log("Screensaver stop"),i.overlay.empty())},filterCat:function(t){("app"===i.env.name?"/"+n.history.fragment:""+n.history.location.pathname).substr(1)!=i.defaultPage&&(i.env.ajax?i.section.currentView.$el.fadeOut(400,o.bind(function(){n.history.navigate(i.defaultPage,{trigger:!0}),i.section.currentView.onFilterCat(t)},void 0)):((0,m.setCookie)("requiredCat",t),i.root.$el.fadeOut(400,o.bind(function(){document.location.href="/"+i.defaultPage},void 0)))),i.currentCat=t,i.section.currentView.triggerMethod("filter:cat",t)},filterReset:function(){i.section.currentView.grid&&i.section.currentView.grid.currentView.resetYear(),u.filterCat("*")}};i.commands.setHandler("home:filter:cat",u.filterCat),i.commands.setHandler("home:filter:reset",u.filterReset),i.commands.setHandler("intro:show",u.intro),i.commands.setHandler("screensaver:start",u.screensaverStart),i.commands.setHandler("screensaver:stop",u.screensaverStop),i.on("before:start",function(t){i.currentCat="*",a=new l({controller:u})}),i.on("app:loaded",function(t){var e="dev"==i.env.name||"app"==i.env.name,n=i.reqres.request("menu:all").site_url.substr(1);i.defaultPage=e?"":""+n,console.log("Default page",i.defaultPage),a.appRoute(i.defaultPage,"home")})}},{"./../util/Cookie.js":642,"./../util/Env.js":643,"./components/HomeLayout":597,"./components/footer/FooterView":606,"./components/intro/IntroView":610,"./components/screensaver/ScreensaverView":637}],590:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}r(t("underscore"));var h=t("../util/Env"),d=r(t("../util/removeHover")),p=t("../util/Cookie");r(t("./components/HomeLayout"));function r(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}n.default=function(t,a,s,e,l,r){f(o,n=e.AppRouter),u(o,[{key:"appRoutes",get:function(){return{"*notFound":"handleUnknown"}}}]);var n,i=o;function o(){var t=this,e=o;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=n.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var c={handleUnknown:function(){console.log("Main.handleUnknown ajax",a.env.ajax),a.env.ajax?s.history.navigate(a.defaultPage,{trigger:!0}):document.location.href="/"+a.defaultPage+"/404"}};a.on("before:start",function(t){var e,n;l("body").on("click",function(t){var e,n,i=l(t.target).closest('a[href^="/"], a[href=""], a[href="#"]');0==i.length||t.isDefaultPrevented()||(t.preventDefault(),i.data("bypass")?""!==i.attr("href")&&(document.location.href=i.attr("href")):(t=i.data("exec"))?(n=i.data("content"),a.execute(t,n)):(e=i.attr("href"),t="app"===a.env.name?"/"+s.history.fragment:""+s.history.location.pathname,e!=t&&(a.env.ajax?((n=a.section.currentView).ui&&n.ui.header&&n.ui.headerOrg&&n.ui.header.fadeOut(400),n.$el.fadeOut(400,r.bind(function(){s.history.navigate(e,{trigger:!0})},void 0))):a.root.$el.fadeOut(400,r.bind(function(){document.location.href=e},void 0)))))}),a.env.offline||(e=l("#cookies-region"),n=e.height(),e.hide(),e.height(0),"true"!==(0,p.getCookie)("acceptcookie")&&(a.once("load:complete",function(t){setTimeout(function(){e.show(),e.height(n)},2e3)}),e.on("click","p a",function(t){t.preventDefault();t=a.footer.$el.find('[data-exec="overlay:open:legals"]').data("content");a.execute("overlay:open:legals",t,"#cookies")}).on("click",".close-button",function(t){t.preventDefault(),e.height(0),(0,p.setCookie)("acceptcookie",!0)}))),new i({controller:c})}),a.on("start",function(t){var e,n,i,r,o;(t.offline||(0,h.isTouch)())&&(0,d.default)(),a.root.$el.css("opacity",1),a.env.screensaver&&(e=null,n=function t(){a.off("home:complete",i),a.off("home:beforedestroy",t),a.execute("screensaver:stop")},i=function t(){a.off("home:complete",t),a.on("home:beforedestroy",n),a.execute("screensaver:start")},r=function(){("app"===a.env.name?"/"+s.history.fragment:""+s.history.location.pathname).substr(1)!=a.defaultPage?(clearTimeout(e),a.on("home:complete",i),s.history.navigate(a.defaultPage,{trigger:!0})):i()},o=function(){n(),clearTimeout(e),e=setTimeout(r,6e5)},a.once("load:complete",function(){l(document).bind("mousedown mouseup mousemove touchstart touchmove touchend touchcancel wheel keydown keyup",o),o()}));setInterval(function(){var t=(0,p.getCookie)("displayPopin"),e=document.getElementById("overlay-region");"true"==t&&0===e.childNodes.length&&"true"!=(0,p.getCookie)("statusDisplayPopin")&&(a.execute("overlay:open:popin","link-shop"),(0,p.setCookie)("statusDisplayPopin",!0,1))},1e3)})}},{"../util/Cookie":642,"../util/Env":643,"../util/removeHover":646,"./components/HomeLayout":597,underscore:576}],591:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var h=i(t("./components/MoreOnCitroenLayout")),d=i(t("./components/MapLayout")),p=i(t("./components/QuizLayout")),f=i(t("./components/ExpositionLayout")),m=i(t("./components/LandingLayout")),g=i(t("./components/footer/FooterView"));function i(t){return t&&t.__esModule?t:{default:t}}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}n.default=function(t,o,a,e,i,n){v(c,s=e.AppRouter);var r,s,l=c;function c(){var t=this,e=c;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=s.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var u={moreOnCitroen:function(){var t="app"===o.env.name,e=null,e=t?o.reqres.request("annexes:get","/"+a.history.fragment):o.reqres.request("annexes:get",""+a.history.location.pathname),n=new h.default({model:e,isApp:t});n.once("load",function(t){return o.execute("load:start",t)}),o.section.show(n),o.footer.show(new g.default({model:o.reqres.request("menu:all")})),o.footer.$el.removeClass("sticky"),o.overlay.$el.addClass("sticky"),o.once("load:complete",function(){n.onAppear(),o.footer.currentView.onAppear(),o.execute("nav:reveal",!1)})},map:function(t){var e=a.history.location.pathname.substr(0,a.history.location.pathname.search("/map")+4),e={annexes:o.reqres.request("annexes:get",e),contributions:o.reqres.request("contributions:all"),cars:o.reqres.request("cars:all")},r=new d.default({model:e});r.once("load",function(t){return o.execute("load:start",t)}),o.section.show(r),r.on("click:addVehicleButton",function(t){var e=r.ui.addVehicleButton,n=e.data("category"),i=e.data("action"),e=e.data("label");o.execute("track:event",n,i,e,!1),o.execute("overlay:open:participation",t)}),o.section.currentView.on("overlay:open:popin",function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return o.execute.apply(o,["overlay:open:popin"].concat(e))}),o.footer.show(new g.default({model:o.reqres.request("menu:all")})),o.footer.$el.removeClass("sticky"),o.overlay.$el.addClass("sticky"),o.once("load:complete",function(){r.onAppear(t),o.footer.currentView.onAppear(),o.execute("nav:reveal",!1)})},quiz:function(t){var e=o.reqres.request("annexes:get",a.history.location.pathname),n=o.reqres.request("menu:all").facebook_id,i=(e.quizUrl=o.options.api.quiz,e.facebookId=n,new p.default({model:e}));i.once("load",function(t){return o.execute("load:start",t)}),o.section.show(i),o.section.currentView.on("overlay:open:popin",function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return o.execute.apply(o,["overlay:open:popin"].concat(e))}),o.footer.show(new g.default({model:o.reqres.request("menu:all")})),o.footer.$el.removeClass("sticky"),o.overlay.$el.addClass("sticky"),o.once("load:complete",function(){i.onAppear(t),o.footer.currentView.onAppear(),o.execute("nav:reveal",!1)})},exposition:function(){var t=null,t="app"===o.env.name?o.reqres.request("events:get","/"+a.history.fragment):o.reqres.request("events:get",""+a.history.location.pathname),e=(console.log("//////////////////////////////////////////////////////////"),console.log(t),console.log("Exposition",t.get("title")),new f.default({assetsCrossOrigin:o.env.assetsCrossOrigin,model:t}));e.once("load",function(t){return o.execute("load:start",t)}),e.once("destroy",function(t){a.history.location.pathname.substr(1)==o.defaultPage&&o.execute("nav:reveal",!1)}),o.section.show(e),o.section.currentView.on("overlay:open:popin",function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return o.execute.apply(o,["overlay:open:popin"].concat(e))}),o.footer.show(new g.default({model:o.reqres.request("menu:all")})),o.footer.$el.removeClass("sticky"),o.overlay.$el.addClass("sticky"),o.once("load:complete",function(){e.onAppear(),e.on("change:slide",function(t){var e,n;window.dataLayer&&(e=(e=window.location.pathname.split("/"))[e.length-1],(n={event:"updatevirtualpath"}).brand=dataLayer[0].brand,n.virtualPageURL=t,n.pageName=dataLayer[0].siteTypeLevel1+"/"+dataLayer[0].siteTypeLevel2+"/"+dataLayer[0].siteOwner+"/"+dataLayer[0].siteTarget+"/"+dataLayer[0].siteFamily+"//"+(1024<i(window).width()?"desktop":"mobile")+"//"+e,n.language=dataLayer[0].language,n.country=dataLayer[0].country,n.siteTypeLevel1=dataLayer[0].siteTypeLevel1,n.siteTypeLevel2=dataLayer[0].siteTypeLevel2,n.siteOwner=dataLayer[0].siteOwner,n.siteTarget=dataLayer[0].siteTarget,n.siteFamily=dataLayer[0].siteFamily,n.pageCategory="product page",o.execute("track:eventExpo",n))}),o.footer.currentView.onAppear(),o.execute("nav:reveal",!1)})},landing:function(){var t=null,t="app"===o.env.name?o.reqres.request("events:get","/"+a.history.fragment):o.reqres.request("events:get",""+a.history.location.pathname),e=(console.log("//////////////////////////////////////////////////////////"),console.log(t),console.log("Landing",t.get("title")),new m.default({assetsCrossOrigin:o.env.assetsCrossOrigin,model:t}));e.once("load",function(t){return o.execute("load:start",t)}),e.once("destroy",function(t){a.history.location.pathname.substr(1)==o.defaultPage&&o.execute("nav:reveal",!1)}),o.section.show(e),o.section.currentView.on("overlay:open:popin",function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return o.execute.apply(o,["overlay:open:popin"].concat(e))}),o.footer.show(new g.default({model:o.reqres.request("menu:all")})),o.footer.$el.removeClass("sticky"),o.overlay.$el.addClass("sticky"),o.once("load:complete",function(){e.onAppear(),o.footer.currentView.onAppear(),o.execute("nav:reveal",!1)})}};o.on("before:start",function(t){r=new l({controller:u})}),o.on("app:loaded",function(t){o.reqres.request("annexes:all").each(function(t){-1==t.get("slug").indexOf("sitemap")&&0==t.get("legals")&&(-1!==t.get("slug").indexOf("map")?r.appRoute(t.get("slug").substr(1)+"(/)(:idContrib)","map"):"quiz"==t.get("type")?r.appRoute(t.get("slug").substr(1)+"(:hash)","quiz"):"exposition"==t.get("type")?r.appRoute(t.get("slug").substr(1),"exposition"):"landing"==t.get("type")?r.appRoute(t.get("slug").substr(1),"landing"):r.appRoute(t.get("slug").substr(1),"moreOnCitroen"))})})}},{"./components/ExpositionLayout":596,"./components/LandingLayout":599,"./components/MapLayout":600,"./components/MoreOnCitroenLayout":601,"./components/QuizLayout":602,"./components/footer/FooterView":606}],592:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=t("./components/nav/NavView"),s=(t=t)&&t.__esModule?t:{default:t};n.default=function(t,e,n,i,r,o){var a={reveal:function(t){a.getNavView().reveal(t)},setSticky:function(t){a.getNavView().setSticky(t)},setSelect:function(t){a.getNavView().setSelect(t)},changeColor:function(t){a.getNavView().setColor(t)},getNavView:function(){var t;return e.nav.currentView||((t=new s.default({sections:e.reqres.request("cars:get:sections"),menus:e.reqres.request("menu:all"),mute:e.isMute})).on("click:home",function(){return e.execute("home:filter:reset")}),t.on("click:burger",function(){e.execute("track:event","Header","Display::Expandbar::Menu","menu"),e.execute("overlay:open:menu")}),t.on("click:subnav",function(t){return e.execute("car:goto",t)}),t.on("click:mute",function(){return e.execute("sound:toggle:mute")}),e.nav.show(t)),e.nav.currentView}};e.commands.setHandler("nav:set:sticky",a.setSticky),e.commands.setHandler("nav:select",a.setSelect),e.commands.setHandler("nav:reveal",a.reveal),e.commands.setHandler("nav:change:color",a.changeColor)}},{"./components/nav/NavView":621}],593:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var a=i(t("./components/overlay/dispatch/DispatchView")),s=i(t("./components/overlay/legals/LegalsView")),l=i(t("./components/overlay/menu/MenuView")),c=i(t("./components/overlay/filters/FiltersView")),C=i(t("./components/overlay/popin/PopinView")),u=t("../util/Env"),h=i(t("./components/overlay/carquote/CarQuoteView")),d=i(t("./components/overlay/participation/ParticipationView")),E=t("../util/Cookie");function i(t){return t&&t.__esModule?t:{default:t}}n.default=function(t,T,e,n,i,r){var o=!1,S={openDispatch:function(){o=!1,T.overlay.show(new a.default({model:T.reqres.request("menu:all")}))},openLegals:function(t,e){o=!1,T.overlay.show(new s.default({model:t,anchor:e}))},openMenu:function(){o=!1;var t=new l.default({model:{thematics:T.reqres.request("thematics:all"),annexes:T.reqres.request("annexes:all")},isApp:"app"===T.env.name});T.overlay.show(t)},openFilters:function(){var t=new c.default({model:{thematics:T.reqres.request("thematics:all")},currentCat:T.currentCat});t.once("click:subButton",function(t){return T.execute("home:filter:cat",t)}),T.overlay.show(t)},openPopin:function(e,t,n,i,r,o,a,s,l,c,u,h,d,p,f,m,g,v,y,_,b){var x,w;"video"==e||"image"==e||"text"==e||"contribution"==e?(n=new C.default({type:e,url:t,youku:n,youtube:i,local_url:r,image:o,title:a,text:s,pinterest:l,contribution:c,pseudo:u,city:h,version:d,year:p,liked:f,contributionId:m,likeContribution:T.options.api.likeContribution,numberLike:g||("liked"===f?1:void 0),share_facebook_txt:v,share_pinterest_txt:y,share_twitter_txt:_,slug:b}),"video"==e&&n.on("show",function(){T.execute("sound:toggle:automute")}),n.on("destroy",function(){S.checkOrientation(),"video"==e&&T.execute("sound:toggle:automute")}),T.overlay.show(n)):"pdf"==e?window.open(t,"_blank"):"link-shop"==e&&(r=(i=T.reqres.request("menu:all").globalTexts.lifestyle_popin).trigger_time,a=(o=0,E.getCookie)("delayPopin"),r&&"true"==a&&(o=1e3*r,(0,E.setCookie)("delayPopin",null,1)),null!=i&&(x=setTimeout(function(){(0,E.setCookie)("displayFooterPopin",!0,1)},o)),w=setInterval(function(){var t;"true"==(0,E.getCookie)("displayFooterPopin")&&(clearTimeout(x),clearInterval(w),t=new C.default({type:e}),T.overlay.show(t))},200))},openCarQuote:function(t){o=!1,T.overlay.show(new h.default(t))},openParticipation:function(t){o=!1;t=new d.default({model:{thematics:T.reqres.request("thematics:all"),annexes:T.reqres.request("annexes:all"),cars:T.reqres.request("cars:all"),car:t,contribute:T.options.api.contribute}});T.overlay.show(t)},openRotate:function(){o||i("#rotate-device").show()},closeRotate:function(){i("#rotate-device").hide()},checkOrientation:function(){var t=90===window.orientation||-90===window.orientation;(0,u.isMobile)()&&t?(T.main.$el.css("display","none"),S.openRotate()):(S.closeRotate(),T.main.$el.css("display",""))}};T.commands.setHandler("overlay:open:dispatch",S.openDispatch),T.commands.setHandler("overlay:open:legals",S.openLegals),T.commands.setHandler("overlay:open:menu",S.openMenu),T.commands.setHandler("overlay:open:filters",S.openFilters),T.commands.setHandler("overlay:open:popin",S.openPopin),T.commands.setHandler("overlay:open:carquote",S.openCarQuote),T.commands.setHandler("overlay:open:participation",S.openParticipation),i(window).on("resize",function(){return S.checkOrientation()}),T.on("start",function(t){S.checkOrientation()})}},{"../util/Cookie":642,"../util/Env":643,"./components/overlay/carquote/CarQuoteView":623,"./components/overlay/dispatch/DispatchView":625,"./components/overlay/filters/FiltersView":627,"./components/overlay/legals/LegalsView":629,"./components/overlay/menu/MenuView":631,"./components/overlay/participation/ParticipationView":633,"./components/overlay/popin/PopinView":635}],594:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var h=i(t("./components/SiteMapLayout")),d=i(t("./components/footer/FooterView"));function i(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}n.default=function(t,e,n,i,r,o){p(c,s=i.AppRouter);var a,s,l=c;function c(){var t=this,e=c;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=s.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}var u={siteMap:function(){var t="app"===e.env.name?"/"+n.history.fragment:""+n.history.location.pathname,t=e.reqres.request("annexes:get",t),t=new h.default({model:t});e.section.show(t),e.footer.show(new d.default({model:e.reqres.request("menu:all")})),e.footer.$el.removeClass("sticky"),e.overlay.$el.addClass("sticky"),e.footer.currentView.onAppear(),e.execute("nav:reveal",!1)}};e.on("before:start",function(t){a=new l({controller:u})}),e.on("app:loaded",function(t){e.reqres.request("annexes:all").each(function(t){-1!=t.get("slug").indexOf("sitemap")&&a.appRoute(t.get("slug").substr(1),"siteMap"),1==t.get("legals")&&a.appRoute(t.get("slug").substr(1),"siteMap")})})}},{"./components/SiteMapLayout":603,"./components/footer/FooterView":606}],595:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=d(t("backbone.marionette")),s=(d(t("slick-carousel")),d(t("underscore"))),a=d(t("./../../../../../node_modules/gsap/src/uncompressed/utils/Draggable")),l=d(t("./edito/EditoView")),c=d(t("./layout/carLayout.hbs")),u=t("../../util/Env"),h=t("../../util/Cookie");function d(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}var f,m="rtl"==document.documentElement.getAttribute("dir"),t=(p(g,f=o.default.LayoutView),g.prototype.ui=function(){return{header:".car-header",tabButton:".tab-control a",anchor:"[data-anchor]",reveal:".reveal-slide",topButton:".top-button",select:"select",popinButton:"[data-popin]",soundButton:"[data-sound]",gridItem:".row-tall, .row-small .col",gallery:"#gallery",mapOverlay:"#map-overlay",mapGallery:"#map-gallery",mapFooter:".map-footer",seeMapButton:"#map-overlay .button",addVehicleButton:"#add-vehicle",mapPageButton:"#map-page-button"}},g.prototype.regions=function(){return{edito:"#edito",description:"#description",technical:"#technical-sheet",gallery:"#gallery",documents:"#documents",map:"#participation",design:"#design",variants:"#variants",genealogy:"#genealogy",quiz:"#quiz-push"}},g.prototype.childEvents=function(){return{"car:select":"onSelectButton"}},g.prototype.triggers=function(){return{"click @ui.seeMapButton":"click:seeMapButton","click @ui.addVehicleButton":"click:addVehicleButton"}},g.prototype.events=function(){return{"click @ui.tabButton":"onTabClick","click @ui.anchor":"onAnchorClick","touchmove @ui.revealButton":"onRevealMove","click @ui.popinButton":"onPopinClick","click @ui.soundButton":"onSoundClick","mouseover @ui.soundButton":"onSoundOver","mouseout @ui.soundButton":"onSoundOut","change select":"onChange","mousemove @ui.gridItem":"onImageMove"}},g.prototype.serializeData=function(){var t=this.model.toJSON();return t.prevCar=this.model.prev.toJSON(),t.nextCar=this.model.next.toJSON(),t.lang=document.documentElement.lang,t},g.prototype.getAssets=function(){return this.$el.find('img:not([src="about:blank"]):not([src=""]), .img-wrapper[style^=background-image]').get()},g.prototype.onRender=function(){var e=this;m="rtl"==document.documentElement.getAttribute("dir"),this.edito.show(new l.default({assetsCrossOrigin:this.options.assetsCrossOrigin,model:this.model})),this._onSlideChange=s.default.bind(this.onSlideChange,this),s.default.each(this.$el.find(".slide-wrapper .rows, .grid"),function(t){$(t).one("init",e._onSlideChange),$(t).slick({dots:!1,infinite:!1,slidesToShow:1,slidesToScroll:1,swipeToSlide:!0,edgeFriction:.01,speed:300,rtl:m,variableWidth:!0,rows:0}),$(t).on("afterChange",e._onSlideChange)}),s.default.each(this.ui.reveal,function(t){var e=$(t),t=e.find(".reveal-button");a.default.create(t,{type:"x",bounds:e,liveSnap:!0,snap:function(t){return isNaN(t)?e.find(".reveal-mask").width("50%"):e.find(".reveal-mask").width(e.width()/2+t),t}})}),(0,u.isDesktop)()||this.$el.find(".slide-wrapper").addClass("touchable"),this._onResize=s.default.bind(this.onResize,this),$(window).on("resize orientationchange",this._onResize),this._onScroll=s.default.bind(this.onScroll,this),$("#main-region").on("scroll",this._onScroll),(0,u.isSmall)()&&this.ui.topButton.addClass("disabled"),"true"!=(0,h.getCookie)("statusDisplayPopin")&&((0,h.setCookie)("delayPopin",!0,1),(0,h.setCookie)("displayPopin",!0,1))},g.prototype.onShow=function(){this.onResize(),this.$el.hide(),this.setDragOpacity(0),this.ui.header.hide(),this.ui.mapFooter.hide(),this.triggerMethod("load",this.getAssets())},g.prototype.onAttach=function(){var t;(0,u.isSmall)()||(t=this.ui.header.clone(!0),this.ui.headerOrg=this.ui.header.addClass("hidden"),t.addClass("clone"),$("#main-region").before(t),this.ui.header=t)},g.prototype.onAppear=function(){this.$el.fadeIn(1e3),this.ui.header.fadeIn(1e3),this.edito.currentView.onResize(),this.onResize()},g.prototype.onSelectButton=function(t,e){this.triggerMethod("track:select",e)},g.prototype.enableDrag=function(){this.edito.currentView.enableDrag()},g.prototype.setDragOpacity=function(t){this.$el.find(".threesixty-wrapper .line").css("opacity",t.toFixed(1))},g.prototype.onImageMove=function(t){var e=$(t.currentTarget).find(".tooltip");e.css("top",t.offsetY),e.css("left",t.offsetX)},g.prototype.onResize=function(t){var e,n,i,a=this;m="rtl"==document.documentElement.getAttribute("dir"),(0,u.isSmall)()?s.default.each(this.$el.find(".slide-wrapper .rows, .grid"),function(t){$(t).find(".slick-active")[0]&&t.slick.setPosition()}):(e=Math.round(.83*window.innerWidth),n=Math.min(Math.round(.25*e),400),this.$el.find("#technical-sheet-tabs").css("height",n+"px"),n=Math.min(Math.round(.4*e),800),this.$el.find("#photos-tabs").css("height",n+"px"),this.$el.find(".gallery .slick-slide").css("max-width",n+"px"),i=0,s.default.each(this.$el.find("#documents-tabs .slick-slide"),function(t){var e=0;$(t).children().each(function(){e+=$(this).outerHeight(!0)}),i<e&&(i=e)}),this.$el.find("#documents-tabs").height(i).css("padding-bottom",0),s.default.each(this.$el.find(".slide-wrapper .rows, .grid"),function(t){var e,n,i,t=$(t),r=t.find(".slick-active"),o=t.find(".slick-slide");r[0]&&(e=t.find(".slick-track"),n=a._getRealWidth(t)/a._getRealWidth(r),i=t.parent().parent().parent().attr("id"),t.slick("slickSetOption","slidesToShow",Math.floor(n),!0),"genealogy"!=i&&"variants"!=i||(n>o.length?(m?e.css("right","50%"):e.css("left","50%"),i=Math.round(a._getRealWidth(r)*o.length/2),e.css("margin-left","-"+i+"px"),m?e.css("margin-right","-"+i+"px"):e.css("margin-left","-"+i+"px"),m?t.css("right","0"):t.css("left","0")):(m?e.css("right",0):e.css("left",0),m?e.css("margin-right",0):e.css("margin-left",0),t.css("left","").css("right",""))))}))},g.prototype._getRealWidth=function(t){var e=t.css("width");return"100%"==e?parseInt(t.css("max-width")):-1!=e.indexOf("%")?window.innerWidth*parseInt(e)/100:parseInt(e)},g.prototype.onPopinClick=function(n){var t=$(n.currentTarget),e=t.data("type"),i=t.data("url"),r=t.data("youku"),o=t.data("youtube"),a=t.data("local-url"),s=t.data("image"),l=t.data("title"),c=t.data("text"),u=t.data("pinterest"),h=t.data("contrib"),d=t.data("pseudo"),p=t.data("city"),f=t.data("version"),m=t.data("year"),g=t.attr("data-liked"),v=t.data("contribution-id"),y=t.attr("data-number-like"),_=t.data("share-facebook-txt"),b=t.data("share-pinterest-txt"),x=t.data("share-twitter-txt");0<this.ui.gallery.length&&$.contains(this.ui.gallery.get(0),n.currentTarget)&&(i=[],l=[],t.closest(".tab").find('[data-popin="true"][data-type="image"]').each(function(t,e){i.push(e.getAttribute("data-url")),l.push(e.getAttribute("data-title")),e==n.currentTarget&&(s=t)})),0<this.ui.mapGallery.length&&(t.parent().hasClass("mycluster1")||t.parent().hasClass("mycluster2"))&&(i=[],l=[],d=[],p=[],f=[],m=[],c=[],g=[],v=[],y=[],_=[],b=[],x=[],this.ui.mapGallery.find("#"+t.data("locality")).find('[data-popin="true"][data-type="contribution"]').each(function(t,e){i.push(e.getAttribute("data-url")),l.push(e.getAttribute("data-title")),d.push(e.getAttribute("data-pseudo")),p.push(e.getAttribute("data-city")),f.push(e.getAttribute("data-version")),m.push(e.getAttribute("data-year")),c.push(e.getAttribute("data-text")),g.push(e.getAttribute("data-liked")),v.push(e.getAttribute("data-contribution-id")),y.push(e.getAttribute("data-number-like")),_.push(e.getAttribute("data-share-facebook-txt")),b.push(e.getAttribute("data-share-pinterest-txt")),x.push(e.getAttribute("data-share-twitter-txt"))}),s=0),this.triggerMethod("overlay:open:popin",e,i,r,o,a,s,l,c,u,h,d,p,f,m,g,v,y,_,b,x)},g.prototype.onSoundOver=function(t){(0,u.isTouch)()||(t=$(t.currentTarget)).hasClass("key")||(t=t.index(),$(".lop:nth-child("+t+")").find(".tooltip").addClass("active"))},g.prototype.onSoundOut=function(t){(0,u.isTouch)()||(t=$(t.currentTarget).index(),$(".lop:nth-child("+t+")").find(".tooltip").removeClass("active"))},g.prototype.onSoundClick=function(t){t.preventDefault(),(0,u.isTouch)()&&!(n=$(t.currentTarget)).hasClass("key")&&(n=n.index(),(e=$(".lop:nth-child("+n+")").find(".tooltip")).addClass("active"),setTimeout(function(){e.removeClass("active")},2e3));var e,n=$(t.target).data("sound");this.triggerMethod("click:sound",n)},g.prototype.onScroll=function(t){var e=this.$el.find("#edito")[0].getBoundingClientRect().bottom,n=$("#main-region").offset().top,i=$("#main-region").scrollTop(),r=((!(0,u.isSmall)()||(this._lastScrollTop||0)<i)&&e<n?(this.ui.header.addClass("sticky"),$("#nav-region").addClass("collapse"),$("#overlay-region").addClass("expanded")):(this.ui.header.removeClass("sticky"),$("#nav-region").removeClass("collapse"),$("#overlay-region").removeClass("expanded")),void 0),e=(s.default.each(this.$el.find("> div"),function(t){var e=t.getBoundingClientRect();0<e.top&&e.top<window.innerHeight/2&&(r=t.id)}),null!=r&&this.triggerMethod("nav:select",r),(0,u.isSmall)()&&(i>$(window).height()?this.ui.topButton.removeClass("disabled"):this.ui.topButton.addClass("disabled")),document.getElementById("main-region").scrollHeight);i+document.getElementById("main-region").clientHeight==e&&"true"!=(0,h.getCookie)("displayFooterPopin")&&(0,h.setCookie)("displayFooterPopin",!0,1),this._lastScrollTop=i},g.prototype.onSlideChange=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=e.$slider.parent().parent().find(".slide-pagination");1==e.slideCount&&i.remove(),i.html(n+1+"/"+e.slideCount)},g.prototype.onAnchorClick=function(t){t.preventDefault();t=$(t.currentTarget).attr("data-anchor");this.gotoSection(t)},g.prototype.gotoSection=function(t){$("#main-region").animate({scrollTop:$(t).position().top-40},600,this._onScroll)},g.prototype.onChange=function(t){var t=t.target,e=$(t.options[t.selectedIndex]).data("id"),t=$(t).data("tabs"),t=$(t);t.find(".tab").fadeOut().removeClass("current"),t.find(e).fadeIn(function(){$(window).trigger("resize")}).addClass("current")},g.prototype.onTabClick=function(t){t.preventDefault(),t.stopImmediatePropagation();var t=$(t.target),e=t.attr("href"),t=t.closest(".tab-control"),n=t.data("tabs"),i=$(n);(t=$('[data-tabs="'+n+'"]')).find("a").removeClass("current"),t.find('a[href="'+e+'"]').addClass("current"),i.find(".tab").fadeOut().removeClass("current"),i.find(e).fadeIn(function(){$(window).trigger("resize")}).addClass("current")},g.prototype.onRevealMap=function(){this.ui.mapOverlay.fadeOut(),this.ui.mapFooter.fadeIn()},g.prototype.onDestroy=function(){var e=this;s.default.each(this.$el.find(".slide-wrapper .rows, .grid"),function(t){$(t).off("afterChange",e._onSlideChange),$(t).slick("unslick")}),this._onSlideChange=void 0,s.default.each(this.ui.reveal,function(t){t=$(t).find(".reveal-button");a.default.get(t).kill()}),$(window).off("resize",this._onResize),this._onResize=void 0,$("#main-region").off("scroll",this._onScroll),this._onScroll=void 0,this.ui.headerOrg&&(this.ui.header.remove(),this.ui.header=this.ui.headerOrg.removeClass("hidden"))},i(g,[{key:"className",get:function(){return"car"}},{key:"tagName",get:function(){return"section"}},{key:"template",get:function(){return c.default}}]),g);function g(){var t=this,e=g;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=f.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"../../util/Cookie":642,"../../util/Env":643,"./../../../../../node_modules/gsap/src/uncompressed/utils/Draggable":391,"./edito/EditoView":604,"./layout/carLayout.hbs":616,"backbone.marionette":42,"slick-carousel":573,underscore:576}],596:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=c(t("backbone.marionette")),a=(c(t("slick-carousel")),c(t("underscore"))),s=c(t("./layout/expositionLayout.hbs")),l=t("../../util/Env");function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}var h,w="rtl"==document.documentElement.getAttribute("dir"),t=(u(d,h=o.default.LayoutView),d.prototype.ui=function(){return{exposition:".exposition",cover:".exposition .cover",coverButton:".exposition .cover .button",expoWrapper:".exposition .exposition-content",themeTitle:".exposition .exposition-content h2",slideTitle:".exposition .exposition-content h3",covers:".exposition .exposition-content .slide-wrapper .rows li",details:".exposition .exposition-content .slide-wrapper li:not([data-theme]) img, .exposition .exposition-content .slide-wrapper li .button",theme:".exposition .exposition-content .slide-wrapper li[data-theme] img",thumbnails:".exposition .exposition-content .slide-nav li",translate:".exposition .translate",detailsContainer:".exposition .details-container",detailsCloseButton:".exposition .details-container .close-button",popinButton:"[data-popin]",audioControls:".audio-controls",reloadAudio:".reload-audio"}},d.prototype.regions=function(){return{}},d.prototype.childEvents=function(){return{}},d.prototype.triggers=function(){return{}},d.prototype.events=function(){return{"click @ui.thumbnails":"onThumbnailClick","click @ui.details":"onDetailsClick","click @ui.theme":"onDetailsClick","click @ui.detailsCloseButton":"onCloseDetailsClick","click @ui.popinButton":"onPopinClick","click @ui.audioControls":"onAudioControlsClick","click @ui.reloadAudio":"onReloadAudioClick","click @ui.coverButton":"onCloseCover"}},d.prototype.serializeData=function(){return this.model.toJSON()},d.prototype.onCloseCover=function(){var t=this;this.ui.cover.fadeOut(function(){t.updateTranslation(),t.ui.expoWrapper.fadeIn(1e3,function(){t.onResize()})})},d.prototype.onThumbnailClick=function(t){t.preventDefault();t=$(this.ui.thumbnails).index($(t.currentTarget));this.$el.find(".slide-wrapper .rows").slick("slickGoTo",parseInt(t))},d.prototype.onDetailsClick=function(t){var e=this.ui.detailsContainer,n=$(t.currentTarget).data("descriptions-en").split("|"),i=$(t.currentTarget).data("descriptions-fr").split("|"),r=$(t.currentTarget).data("medias").split(","),o=$(t.currentTarget).data("legends").split("|");if(e.find(".medias-container").empty(),r.length){var t=$('<div class="slide-wrapper"></div>'),a=$('<div class="content"></div>'),s=$('<ul class="rows"></ul>');w="rtl"==document.documentElement.getAttribute("dir");for(var l=0;l<r.length;l++){var c,u,h,d,p,f,m,g,v,y,_,b=$("<li></li>"),x=null;/\.(gif|jpg|jpeg|svg|png)/i.test(r[l])?x=$('<img src="'+r[l]+'" data-contrib="false" data-pinterest="false" data-popin="true" data-type="image" data-url="'+r[l]+'">'):/\.(mp3)/i.test(r[l])?(x=$(""),y=$("<audio></audio>"),_=$('<source src="'+r[l]+'" type="audio/mpeg">'),c=$('<a class="audio-controls"></a>'),h=$('<div class="radial-progress"></div>'),d=$('<div class="circle"></div>'),p=$('<div class="mask full"></div>'),f=$('<div class="mask half"></div>'),m=$('<div class="fill"></div>'),g=$('<div class="inset"></div>'),v=$('<div class="status"></div>'),u=$('<a class="reload-audio reload"></a>'),c.append(h.append(d.append(p.append(m.clone())).append(f.append(m.clone()).append('<div class="fill fix"></div>'))).append(g)).append(v),x=(x=(x=x.add(y.append(_))).add(c)).add(u)):/\.(mp4|mpg|mpeg|m4v)/i.test(r[l])&&(x=$('<div class="video-container"></div>'),h=$("<video controls></video>"),d=$('<source src="'+r[l]+'" type="video/mp4">'),x.append(h.append(d))),null!==x&&(p=$("<figure></figure>"),f=$('<div class="legendContainer">'+o[l]+"</div>"),n[l].length?(m=$('<div class="first-slide"></div>'),g=$('<div class="first-media"></div>'),v=$('<div dir="ltr" class="details-content"></div>'),y=$('<p class="description-en"></p>'),_=$('<p class="description-fr"></p>'),y.html(n[l]),_.html(i[l]),g.append(p.append(x).append(f)),m.append(g),m.append(v.append(y).append(_)),b.append(m)):b.append(p.append(x).append(f)),s.append(b))}e.find(".medias-container").append(t.append(a.append(s))),e.find(".medias-container ul").slick({dots:!1,infinite:!1,slidesToShow:1,slidesToScroll:1,swipeToSlide:!0,edgeFriction:.01,speed:300,rtl:w,variableWidth:!1,useCSS:!1,useTransform:!1,adaptiveHeight:!1,rows:0})}this.onInitAudioEndedListener(),this.ui.expoWrapper.fadeOut(600,function(){$(window).resize(),e.fadeIn(1200,function(){$(window).resize()})})},d.prototype.onInitAudioEndedListener=function(){var n=this,t=$("audio");$.each(t,function(t,e){$(e).on("ended",function(){n.onAudioEnded(this)})})},d.prototype.onAudioEnded=function(t){var e=$(t).siblings(".audio-controls"),n=e.find(".status");this.onClearProgressAudio(e),n.removeClass("isPaused").removeClass("isPlaying"),t.currentTime=0},d.prototype.onAudioControlsClick=function(t){t.preventDefault();var e=$(t.currentTarget),n=$(t.currentTarget).find(".status"),t=$(t.currentTarget).siblings("audio").get(0);n.hasClass("isPlaying")?(n.removeClass("isPlaying"),n.addClass("isPaused"),t.pause(),this.onPauseProgressAudio(e)):(n.removeClass("isPaused"),n.addClass("isPlaying"),t.play(),this.onRefreshProgressAudio(e))},d.prototype.onReloadAudioClick=function(t){t.preventDefault();var e=$(t.currentTarget).siblings(".audio-controls"),n=e.find(".status"),t=$(t.currentTarget).siblings("audio").get(0);n.removeClass("isPaused").addClass("isPlaying"),t.pause(),t.currentTime=0,t.play(),this.onRefreshProgressAudio(e)},d.prototype.onRefreshProgressAudio=function(t){var e=this;window.intervalId=setInterval(function(){e.setProgress(t)},200)},d.prototype.onPauseProgressAudio=function(){clearInterval(window.intervalId)},d.prototype.onClearProgressAudio=function(t){this.onPauseProgressAudio(),t.find(".circle .fill, .circle .mask.full").attr("style",""),t.find(".circle .fill.fix").attr("style","")},d.prototype.setProgress=function(t){var e,n=t.siblings("audio").get(0),n=Math.floor(n.currentTime)/Math.floor(n.duration),i=["-webkit-transform","-ms-transform","transform"],n=Math.floor(180*n),r=n,o=2*n;for(e in i)t.find(".circle .fill, .circle .mask.full").css(i[e],"rotate("+r+"deg)"),t.find(".circle .fill.fix").css(i[e],"rotate("+o+"deg)")},d.prototype.onPopinClick=function(n){var t=this.ui.detailsContainer.find(".medias-container"),e=$(n.currentTarget),i=e.data("type"),r=e.data("url"),o=e.data("youku"),a=e.data("youtube"),s=e.data("local-url"),l=e.data("image"),c=e.data("title"),u=e.data("text"),h=e.data("pinterest"),d=e.data("contrib"),p=e.data("pseudo"),f=e.data("city"),m=e.data("version"),g=e.data("year"),v=e.attr("data-liked"),y=e.data("contribution-id"),_=e.attr("data-number-like"),b=e.data("share-facebook-txt"),x=e.data("share-pinterest-txt"),w=e.data("share-twitter-txt");0<t.length&&$.contains(t.get(0),n.currentTarget)&&(r=[],c=[],e.closest(".medias-container").find('[data-popin="true"][data-type="image"]').each(function(t,e){r.push(e.getAttribute("data-url")),c.push(e.getAttribute("data-title")),e==n.currentTarget&&(l=t)})),this.triggerMethod("overlay:open:popin",i,r,o,a,s,l,c,u,h,d,p,f,m,g,v,y,_,b,x,w)},d.prototype.onCloseDetailsClick=function(t){t.preventDefault();var e=this;this.ui.detailsContainer.fadeOut(function(){e.$el.find(".medias-container ul").length&&(e.$el.find(".medias-container ul").slick("unslick"),e.$el.find(".medias-container").empty()),e.ui.expoWrapper.fadeIn(function(){e.onResize()})})},d.prototype.getAssets=function(){return this.$el.find('img:not([src="about:blank"]):not([src=""]), .img-wrapper[style^=background-image]').get()},d.prototype.onRender=function(){w="rtl"==document.documentElement.getAttribute("dir"),this._onBeforeSlideChange=a.default.bind(this.onBeforeSlideChange,this),this._onSlideChange=a.default.bind(this.onSlideChange,this),this.$el.find(".slide-wrapper .rows").one("init",this._onSlideChange),this.$el.find(".slide-wrapper .rows").slick({dots:!1,infinite:!1,slidesToShow:1,slidesToScroll:1,swipeToSlide:!0,edgeFriction:.01,speed:300,rtl:w,variableWidth:!0,rows:0}),this.$el.find(".slide-wrapper .rows").on("beforeChange",this._onBeforeSlideChange),this.$el.find(".slide-wrapper .rows").on("afterChange",this._onSlideChange);for(var n=$(this.ui.thumbnails),i=$(this.ui.covers),t=0;t<n.length;t++)!function(t){var e;$(i[t]).find("a").attr("data-medias")&&1<$(i[t]).find("a").attr("data-medias").split(",").length?$(n[t]).find("a").addClass("compo"):(e=$(i[t]).find("img")[0]).onload=function(){e.naturalWidth<e.naturalHeight&&$(n[t]).find("a").addClass("portrait")}}(t);(0,l.isDesktop)()||this.$el.find(".slide-wrapper").addClass("touchable"),this._onResize=a.default.bind(this.onResize,this),$(window).on("resize orientationchange",this._onResize),this._onScroll=a.default.bind(this.onScroll,this),$("#main-region").on("scroll",this._onScroll);var e=window.location.hash.substr(1);""!==e&&$(this.ui.thumbnails).find("a.theme").eq(parseInt(e)-1).click()},d.prototype.onSlideChange=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=$(this.ui.thumbnails);$(i).removeClass("active"),$(i[n]).addClass("active")},d.prototype.onBeforeSlideChange=function(t,e,n,i){n!==i&&this.updateTranslation(i)},d.prototype.updateTranslation=function(t){var e=this,t=void 0!==t?this.$el.find(".slide-wrapper .rows .slick-slide").eq(t):this.$el.find(".slide-wrapper .rows .slick-current"),n=void 0!==t.attr("data-theme-fr"),i=(n?t:t.prevAll("[data-theme-fr]")).attr("data-theme-fr"),r="/"+(n?t:t.prevAll("[data-theme]")).attr("data-theme").split(" ").join("-");i+=void 0===t.attr("data-theme-fr")?", "+t.find("[data-titre-fr]").attr("data-titre-fr"):"",r+=n?"":"/"+t.find("[data-titre-en]").attr("data-titre-en").split(" ").join("-"),e.ui.translate.html()!==i&&(e.trigger("change:slide",r),this.ui.translate.fadeOut(function(){e.ui.translate.html(i),e.ui.translate.fadeIn()}))},d.prototype.onKeyboardNavigation=function(){var i=this;$(document).on("keydown",function(t){var e=i.$el.find(".slide-wrapper .rows"),n=i.ui.detailsContainer.find(".medias-container ul");n.length?(37==t.keyCode&&n.slick(w?"slickNext":"slickPrev"),39==t.keyCode&&n.slick(w?"slickPrev":"slickNext")):(37==t.keyCode&&e.slick(w?"slickNext":"slickPrev"),39==t.keyCode&&e.slick(w?"slickPrev":"slickNext"))})},d.prototype.onShow=function(){this.onResize(),this.$el.hide(),this.ui.expoWrapper.hide(),this.ui.detailsContainer.hide(),this.triggerMethod("load",this.getAssets())},d.prototype.onAttach=function(){},d.prototype.onAppear=function(){this.$el.fadeIn(1e3),this.onKeyboardNavigation(),this.onResize(),""!==window.location.hash.substr(1)&&this.onCloseCover()},d.prototype.onResize=function(t){a.default.each(this.$el.find(".slide-wrapper .rows"),function(t){var e=$(t).slick("slickCurrentSlide");$(t).slick("slickGoTo",parseInt(e),!0)})},d.prototype.onScroll=function(t){},d.prototype.onDestroy=function(){var e=this;a.default.each(this.$el.find(".slide-wrapper .rows"),function(t){$(t).off("beforeChange",e._onBeforeSlideChange),$(t).off("afterChange",e._onSlideChange),$(t).slick("unslick")}),this._onBeforeSlideChange=void 0,this._onSlideChange=void 0,$(window).off("resize",this._onResize),this._onResize=void 0,$("#main-region").off("scroll",this._onScroll),this._onScroll=void 0,$(document).off("keydown")},i(d,[{key:"className",get:function(){return"exposition-wrapper"}},{key:"tagName",get:function(){return"section"}},{key:"template",get:function(){return s.default}}]),d);function d(){var t=this,e=d;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=h.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"../../util/Env":643,"./layout/expositionLayout.hbs":617,"backbone.marionette":42,"slick-carousel":573,underscore:576}],597:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=d(t("backbone.marionette")),a=d(t("underscore")),s=d(t("./grid/GridView")),l=d(t("./timeline/TimelineView")),c=d(t("./layout/homeLayout.hbs")),u=t("../../util/Env"),h=t("../../util/Cookie");function d(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}p(m,f=o.default.LayoutView),m.prototype.regions=function(){return{grid:".grid",timeline:".timeline"}},m.prototype.ui=function(){return{filters:".open-filters",discover:".discover-button"}},m.prototype.triggers=function(){return{"click @ui.filters":"click:filters"}},m.prototype.childEvents=function(){return{"filter:year":"onFilterYear","scroll:year":"onScrollToYear","timeline:set:year":"onSetYear","filter:cat":"onFilterCat","nav:set:sticky":"onZoom","click:car":"onCarClick","click:zoom":"onCarZoom"}},m.prototype.events=function(){return{"click @ui.discover":"onAnchorClick"}},m.prototype.getAssets=function(){return this.$el.find("img")},m.prototype.onRender=function(){this.grid.show(new s.default({model:this.collection}));this.collection.getYears();this.timeline.show(new l.default({model:this.collection})),this._onResize=a.default.bind(this.onResize,this),$(window).on("resize",this._onResize),this._onScroll=this.onScroll.bind(this),$("#main-region").on("scroll",this._onScroll)},m.prototype.onShow=function(){this.onResize(),this.$el.hide(),this.triggerMethod("load",this.getAssets());var t=(0,h.getCookie)("requiredCat");t&&((0,h.setCookie)("requiredCat","*"),this.onFilterCat(t))},m.prototype.onAppear=function(){this.$el.show(),this.$el.fadeIn()},m.prototype.onResize=function(t){var e=$("#main-region").height()-$("#nav-region").height();this.ui.discover.css("top",e-80),(0,u.isSmall)()?this.timeline.$el.height(e):this.timeline.$el.css("height",""),this.timeline.currentView.setupBar(),this.onScroll()},m.prototype.onZoom=function(t,e){this.triggerMethod("nav:set:sticky",e)},m.prototype.onCarClick=function(t,e,n){this.triggerMethod("click:car",e,n)},m.prototype.carAutoZoom=function(){this.grid.currentView.carAutoZoom(0<arguments.length&&void 0!==arguments[0]&&arguments[0])},m.prototype.resetZoom=function(){this.grid.currentView.resetZoom()},m.prototype.onCarZoom=function(t,e,n){this.triggerMethod("zoom:car",e,n)},m.prototype.onFilterCat=function(t){this.timeline.currentView.filterCat(t),this.grid.currentView.filterCat(t)},m.prototype.onFilterYear=function(t,e,n){this.grid.currentView.filterYear(e,n)},m.prototype.onSetYear=function(t,e){this.timeline.currentView&&this.timeline.currentView.setYear(e)},m.prototype.onScrollToYear=function(t,e){this.grid.currentView.scrollToYear(e)},m.prototype.onScroll=function(t){var e=$("#main-region").scrollTop();this.ui.discover.toggleClass("inactive",30<e)},m.prototype.onAnchorClick=function(t){t.preventDefault(),$("#main-region").animate({scrollTop:$("#main-region").height()-$("#nav-region").height()},600,this._onScroll)},m.prototype.onDestroy=function(){this.off("timeline:set:year",this.onSetYear),this.off("filter:cat",this.onFilterCat),$(window).off("resize",this._onResize),this._onResize=void 0,$("#main-region").off("scroll",this._onScroll),this._onScroll=null},i(m,[{key:"className",get:function(){return"home"}},{key:"tagName",get:function(){return"section"}},{key:"template",get:function(){return c.default}}]);var f,t=m;function m(){var t=this,e=m;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=f.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"../../util/Cookie":642,"../../util/Env":643,"./grid/GridView":608,"./layout/homeLayout.hbs":618,"./timeline/TimelineView":639,"backbone.marionette":42,underscore:576}],598:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=l(t("backbone.marionette")),a=(l(t("slick-carousel")),l(t("underscore"))),s=l(t("./layout/landingLayoutCarousel.hbs"));t("../../util/Env");function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}document.documentElement.getAttribute("dir");var u,h,d=null,p=0,t=(c(f,h=o.default.LayoutView),f.prototype.ui=function(){return{slideshow:".slideshow",slideBullets:".slideshow-wrapper .nav .countdown-wrapper a",monthButtons:".month-list .month a",eventList:".event-list .events-container",popinButton:"[data-popin]",anchor:"[data-anchor]"}},f.prototype.regions=function(){return{}},f.prototype.childEvents=function(){return{}},f.prototype.triggers=function(){return{}},f.prototype.events=function(){return{"click @ui.monthButtons":"onMonthChange","click @ui.slideBullets":"onBulletsClick","click @ui.popinButton":"onPopinClick","click @ui.anchor":"onAnchorClick"}},f.prototype.onPopinClick=function(t){var t=$(t.currentTarget),e=t.data("type"),n=t.data("url"),i=t.data("youku"),r=t.data("youtube"),o=t.data("local-url"),a=t.data("image"),s=t.data("title"),l=t.data("text"),c=t.data("pinterest"),u=t.data("contrib"),h=t.data("pseudo"),d=t.data("city"),p=t.data("version"),f=t.data("year"),m=t.attr("data-liked"),g=t.data("contribution-id"),v=t.attr("data-number-like"),y=t.data("share-facebook-txt"),_=t.data("share-pinterest-txt"),t=t.data("share-twitter-txt");this.triggerMethod("overlay:open:popin",e,n,i,r,o,a,s,l,c,u,h,d,p,f,m,g,v,y,_,t)},f.prototype.onBulletsClick=function(t){t=$(t.currentTarget).parent().index();$(this.ui.slideshow).slick("slickGoTo",t)},f.prototype.onMonthChange=function(t){var t=$(t.currentTarget).parent(),e=t.index(),e=$(this.ui.eventList).eq(e);t.siblings().removeClass("active"),t.addClass("active"),e.siblings().removeClass("active"),e.addClass("active")},f.prototype.alreadyPassedDate=function(t){var e=new Date;return(t=new Date(t.replace(" ","T")))<e},f.prototype.getMonth=function(t){return new Date(t.replace(" ","T")).getMonth()+1},f.prototype.getDay=function(t){return new Date(t.replace(" ","T")).getDate()},f.prototype.getEventsByMonth=function(t){var e,n=this.model.toJSON().months,i={};for(e in t)for(var r=this.getMonth(t[e].date_debut),o=this.getDay(t[e].date_debut),a=this.getMonth(t[e].date_fin),s=this.getDay(t[e].date_fin),l=r;l<=a;l++)void 0===i[l]&&(i[l]={label:n[l],events:[]}),i[l].events.push({title:t[e].title,description:t[e].description,start:{month:n[r].substr(0,3),day:o<10?"0"+o:o},end:{month:n[a].substr(0,3),day:s<10?"0"+s:s}});return i},f.prototype.serializeData=function(){for(var t=this.model.toJSON(),e=t.push_list.length,n=t.slideshow.length;e--;)void 0!==t.push_list[e]&&void 0!==t.push_list[e].dates_publication&&(null!==t.push_list[e].dates_publication.date_debut&&(!this.alreadyPassedDate(t.push_list[e].dates_publication.date_debut)||null!==t.push_list[e].dates_publication.date_fin&&t.push_list[e].dates_publication.date_fin!==t.push_list[e].dates_publication.date_debut&&this.alreadyPassedDate(t.push_list[e].dates_publication.date_fin))&&t.push_list.splice(e,1),t.push_list.sort(function(t,e){return new Date(e.dates_publication.date_debut)-new Date(t.dates_publication.date_debut)})),void 0!==t.push_list[e]&&"push_agenda"===t.push_list[e].type&&(t.push_list[e].formatted_events=this.getEventsByMonth(t.push_list[e].events));for(;n--;)void 0!==t.slideshow[n]&&void 0!==t.slideshow[n].dates_publication&&null!==t.slideshow[n].dates_publication.date_debut&&(!this.alreadyPassedDate(t.slideshow[n].dates_publication.date_debut)||null!==t.slideshow[n].dates_publication.date_fin&&t.slideshow[n].dates_publication.date_fin!==t.slideshow[n].dates_publication.date_debut&&this.alreadyPassedDate(t.slideshow[n].dates_publication.date_fin))&&t.slideshow.splice(e,1),void 0!==t.slideshow[n]&&"push_agenda"===t.slideshow[n].type&&(t.slideshow[n].formatted_events=this.getEventsByMonth(t.slideshow[n].events));return t},f.prototype.getAssets=function(){return this.$el.find('img:not([src="about:blank"]):not([src=""]), .img-wrapper[style^=background-image]').get()},f.prototype.monthEventsPassed=function(t){for(var e=this.model.toJSON(),n=e.push_list.length,i=null,r=(new Date).getDate(),o=!0;n--;)if(void 0!==e.push_list[n]&&"push_agenda"===e.push_list[n].type){i=e.push_list[n].formatted_events[t]&&e.push_list[n].formatted_events[t].events;break}if(null!==i)for(var a in i)parseInt(i[a].end.day)>r&&(o=!1);return o},f.prototype.onRender=function(){u="rtl"==document.documentElement.getAttribute("dir"),this._onSlideChange=a.default.bind(this.onSlideChange,this),this.$el.find(".slideshow, .month-list").one("init",this._onSlideChange),this.$el.find(".push-item-block").slick({dots:!1,arrows:!0,slidesToShow:3,centerMode:!0,centerPadding:"70px",focusOnSelect:!0,rtl:u,responsive:[{breakpoint:1020,settings:{centerPadding:"0px",slidesToShow:3}},{breakpoint:768,settings:{centerPadding:"130px",slidesToShow:1}},{breakpoint:545,settings:{centerPadding:"50px",slidesToShow:1}}]});var t=null,e=(new Date).getMonth()+1;for(this.monthEventsPassed(e)&&e<12&&e++;(null===t||0===t.length)&&e<=12;)t=$(this.ui.monthButtons).parents(".month-list").find('[data-monthindex="'+e+'"]'),e++;0===t.length&&(t=$(this.ui.monthButtons).parents(".month-list").find(".month").first()),this._onResize=a.default.bind(this.onResize,this),$(window).on("resize orientationchange",this._onResize),this._onScroll=a.default.bind(this.onScroll,this),$("#main-region").on("scroll",this._onScroll);this.model.toJSON().push_list.length<5&&$(".more-to-come").hide();var n=$(".landing-carousel .slideshow .slide"),i=/<br\s*[\/]?>/gi;n.each(function(){console.log("ok"),$(this).find(".text-slide").html(str.replace(i,"\n"))})},f.prototype.onSlideChange=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=this;e.$slider.hasClass("slideshow")&&(1===(e=this.$el.find(".slideshow-wrapper .nav .countdown-wrapper")).length&&e.addClass("hidden"),e.removeClass("active"),e.eq(n).addClass("active"),p=0,window.clearInterval(d),d=window.setInterval(function(){50<=++p&&(window.clearInterval(d),i.$el.find(".slideshow").slick("slickNext"))},100))},f.prototype.onShow=function(){this.onResize(),this.$el.hide(),this.triggerMethod("load",this.getAssets())},f.prototype.onAnchorClick=function(t){t.preventDefault();t=$(t.currentTarget).attr("data-anchor"),t="#push-"+(Number(t)+Number(1));this.gotoSection(t)},f.prototype.gotoSection=function(t){$("#main-region").animate({scrollTop:$(t).position().top+$("#main-region").scrollTop()},600,this._onScroll)},f.prototype.onAppear=function(){$(window).resize(),this.$el.fadeIn(1e3,function(){$(window).resize(),window.location.hash&&$(window.location.hash).length&&($("#main-region").get(0).scrollTop=0,$("#main-region").animate({scrollTop:$(window.location.hash).offset().top-$("#nav-region").height()},800,function(){var t=$(window.location.hash).find('a[data-type="video"]');t.length&&t.click()}))})},f.prototype.onResize=function(t){a.default.each(this.$el.find(".slideshow, .month-list"),function(t){$(t).hasClass("slideshow")&&(t=$(t).find(".slide"),a.default.each(t,function(t){$(window).width()<=768&&$(t).attr("src")!==$(t).attr("data-mobile")?($(t).css("background","url("+$(t).attr("data-mobile")),console.log("MOBILE")):768<$(window).width()&&$(t).attr("src")!==$(t).attr("data-desktop")&&($(t).css("background","url("+$(t).attr("data-desktop")),console.log("DESKTOP"))}))})},f.prototype.onScroll=function(t){},f.prototype.onDestroy=function(){$(window).off("resize",this._onResize),this._onResize=void 0},i(f,[{key:"className",get:function(){return"landing-wrapper"}},{key:"tagName",get:function(){return"section"}},{key:"template",get:function(){return s.default}}]),f);function f(){var t=this,e=f;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=h.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"../../util/Env":643,"./layout/landingLayoutCarousel.hbs":620,"backbone.marionette":42,"slick-carousel":573,underscore:576}],599:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=l(t("backbone.marionette")),a=(l(t("slick-carousel")),l(t("underscore"))),s=l(t("./layout/landingLayout.hbs"));t("../../util/Env");function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}document.documentElement.getAttribute("dir");var u,h,d=null,p=0,t=(c(f,h=o.default.LayoutView),f.prototype.ui=function(){return{slideshow:".slideshow",slideBullets:".slideshow-wrapper .nav .countdown-wrapper a",monthButtons:".month-list .month a",eventList:".event-list .events-container",popinButton:"[data-popin]"}},f.prototype.regions=function(){return{}},f.prototype.childEvents=function(){return{}},f.prototype.triggers=function(){return{}},f.prototype.events=function(){return{"click @ui.monthButtons":"onMonthChange","click @ui.slideBullets":"onBulletsClick","click @ui.popinButton":"onPopinClick"}},f.prototype.onPopinClick=function(t){var t=$(t.currentTarget),e=t.data("type"),n=t.data("url"),i=t.data("youku"),r=t.data("youtube"),o=t.data("local-url"),a=t.data("image"),s=t.data("title"),l=t.data("text"),c=t.data("pinterest"),u=t.data("contrib"),h=t.data("pseudo"),d=t.data("city"),p=t.data("version"),f=t.data("year"),m=t.attr("data-liked"),g=t.data("contribution-id"),v=t.attr("data-number-like"),y=t.data("share-facebook-txt"),_=t.data("share-pinterest-txt"),t=t.data("share-twitter-txt");this.triggerMethod("overlay:open:popin",e,n,i,r,o,a,s,l,c,u,h,d,p,f,m,g,v,y,_,t)},f.prototype.onBulletsClick=function(t){t=$(t.currentTarget).parent().index();$(this.ui.slideshow).slick("slickGoTo",t)},f.prototype.onMonthChange=function(t){var t=$(t.currentTarget).parent(),e=t.index(),e=$(this.ui.eventList).eq(e);t.siblings().removeClass("active"),t.addClass("active"),e.siblings().removeClass("active"),e.addClass("active")},f.prototype.alreadyPassedDate=function(t){var e=new Date;return(t=new Date(t.replace(" ","T")))<e},f.prototype.getMonth=function(t){return new Date(t.replace(" ","T")).getMonth()+1},f.prototype.getDay=function(t){return new Date(t.replace(" ","T")).getDate()},f.prototype.getEventsByMonth=function(t){var e,n=this.model.toJSON().months,i={};for(e in t)for(var r=this.getMonth(t[e].date_debut),o=this.getDay(t[e].date_debut),a=this.getMonth(t[e].date_fin),s=this.getDay(t[e].date_fin),l=r;l<=a;l++)void 0===i[l]&&(i[l]={label:n[l],events:[]}),i[l].events.push({title:t[e].title,description:t[e].description,start:{month:n[r].substr(0,3),day:o<10?"0"+o:o},end:{month:n[a].substr(0,3),day:s<10?"0"+s:s}});return i},f.prototype.serializeData=function(){for(var t=this.model.toJSON(),e=t.push_list.length;e--;)void 0!==t.push_list[e]&&"teaser"===t.push_list[e].type&&void 0!==t.push_list[e].dates_publication&&null!==t.push_list[e].dates_publication.date_debut&&(!this.alreadyPassedDate(t.push_list[e].dates_publication.date_debut)||null!==t.push_list[e].dates_publication.date_fin&&t.push_list[e].dates_publication.date_fin!==t.push_list[e].dates_publication.date_debut&&this.alreadyPassedDate(t.push_list[e].dates_publication.date_fin))&&t.push_list.splice(e,1),void 0!==t.push_list[e]&&"push_agenda"===t.push_list[e].type&&(t.push_list[e].formatted_events=this.getEventsByMonth(t.push_list[e].events));return t},f.prototype.getAssets=function(){return this.$el.find('img:not([src="about:blank"]):not([src=""]), .img-wrapper[style^=background-image]').get()},f.prototype.monthEventsPassed=function(t){for(var e=this.model.toJSON(),n=e.push_list.length,i=null,r=(new Date).getDate(),o=!0;n--;)if(void 0!==e.push_list[n]&&"push_agenda"===e.push_list[n].type){i=e.push_list[n].formatted_events[t]&&e.push_list[n].formatted_events[t].events;break}if(null!==i)for(var a in i)parseInt(i[a].end.day)>r&&(o=!1);return o},f.prototype.onRender=function(){u="rtl"==document.documentElement.getAttribute("dir"),this._onSlideChange=a.default.bind(this.onSlideChange,this),this.$el.find(".slideshow, .month-list").one("init",this._onSlideChange),this.$el.find(".slideshow").slick({dots:!1,arrows:!1,infinite:!0,slidesToShow:1,slidesToScroll:1,swipeToSlide:!0,edgeFriction:.01,speed:300,rtl:u,variableWidth:!1,rows:0});var t=null,e=(new Date).getMonth()+1;for(this.monthEventsPassed(e)&&e<12&&e++;(null===t||0===t.length)&&e<=12;)t=$(this.ui.monthButtons).parents(".month-list").find('[data-monthindex="'+e+'"]'),e++;0===t.length&&(t=$(this.ui.monthButtons).parents(".month-list").find(".month").first()),this.$el.find(".month-list").slick({dots:!1,infinite:!1,slidesToShow:4,slidesToScroll:4,swipeToSlide:!0,edgeFriction:.01,speed:300,rtl:u,variableWidth:!1,rows:0,focusOnSelect:!0,responsive:[{breakpoint:1280,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:668,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:480,settings:{slidesToShow:2,slidesToScroll:2}}]}),t.find("a").click(),this.$el.find(".slideshow, .month-list").on("afterChange",this._onSlideChange),this._onResize=a.default.bind(this.onResize,this),$(window).on("resize orientationchange",this._onResize),this._onScroll=a.default.bind(this.onScroll,this),$("#main-region").on("scroll",this._onScroll)},f.prototype.onSlideChange=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,i=this;e.$slider.hasClass("slideshow")&&(1===(e=this.$el.find(".slideshow-wrapper .nav .countdown-wrapper")).length&&e.addClass("hidden"),e.removeClass("active"),e.eq(n).addClass("active"),p=0,window.clearInterval(d),d=window.setInterval(function(){50<=++p&&(window.clearInterval(d),i.$el.find(".slideshow").slick("slickNext"))},100))},f.prototype.onShow=function(){this.onResize(),this.$el.hide(),this.triggerMethod("load",this.getAssets())},f.prototype.onAppear=function(){$(window).resize(),this.$el.fadeIn(1e3,function(){$(window).resize(),window.location.hash&&$(window.location.hash).length&&($("#main-region").get(0).scrollTop=0,$("#main-region").animate({scrollTop:$(window.location.hash).offset().top-$("#nav-region").height()},800,function(){var t=$(window.location.hash).find('a[data-type="video"]');t.length&&t.click()}))})},f.prototype.onResize=function(t){a.default.each(this.$el.find(".slideshow, .month-list"),function(t){var e=$(t).slick("slickCurrentSlide");$(t).slick("slickGoTo",parseInt(e)),$(t).hasClass("slideshow")&&(e=$(t).find(".slide img"),a.default.each(e,function(t){$(window).width()<=768&&$(t).attr("src")!==$(t).attr("data-mobile")?$(t).attr("src",$(t).attr("data-mobile")):768<$(window).width()&&$(t).attr("src")!==$(t).attr("data-desktop")&&$(t).attr("src",$(t).attr("data-desktop"))}))})},f.prototype.onScroll=function(t){},f.prototype.onDestroy=function(){var e=this;a.default.each(this.$el.find(".slideshow, .month-list"),function(t){$(t).off("afterChange",e._onSlideChange),$(t).slick("unslick")}),this._onSlideChange=void 0,$(window).off("resize",this._onResize),this._onResize=void 0,$("#main-region").off("scroll",this._onScroll),this._onScroll=void 0},i(f,[{key:"className",get:function(){return"landing-wrapper"}},{key:"tagName",get:function(){return"section"}},{key:"template",get:function(){return s.default}}]),f);function f(){var t=this,e=f;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=h.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"../../util/Env":643,"./layout/landingLayout.hbs":619,"backbone.marionette":42,"slick-carousel":573,underscore:576}],600:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var u,o=s(t("backbone.marionette")),h=(s(t("slick-carousel")),s(t("underscore"))),a=s(t("./layout/MapLayout.hbs")),d=t("../../util/Env"),p=t("../../util/Cookie");function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}l(f,c=o.default.ItemView),f.prototype.ui=function(){return{mapWrapper:".map-wrapper",cover:".cover",showMapButton:".cover .basic-button",addVehicleButton:"#add-vehicle",map:"#map-container",mapGallery:"#map-gallery",popinButton:"[data-popin]"}},f.prototype.triggers=function(){return{"click @ui.addVehicleButton":"click:addVehicleButton"}},f.prototype.events=function(){return{"change select":"onChange","click @ui.showMapButton":"onShowMap","click @ui.popinButton":"onPopinClick"}},f.prototype.serializeData=function(){function e(t){return t=(t=t.prev).toJSON().html||t.toJSON().nolink||i&&0<=t.toJSON().slug.indexOf("/map")||i&&0<=t.toJSON().slug.indexOf("/quiz")||"exposition"==t.toJSON().type||"landing"==t.toJSON().type?e(t):t}function n(t){return t=(t=t.next).toJSON().html||t.toJSON().nolink||i&&0<=t.toJSON().slug.indexOf("/map")||i&&0<=t.toJSON().slug.indexOf("/quiz")||"exposition"==t.toJSON().type||"landing"==t.toJSON().type?n(t):t}var r=this,i=this.options.isApp,o={},a=(h.default.each(this.model.cars.models,function(n,t){var i;n.attributes.prototype||(i=0,h.default.each(r.model.contributions.models,function(t,e){h.default.each(t.attributes.contributions,function(t){t.group_type===n.attributes.group_type&&i++})}),o[n.attributes.title+" ("+i+")"]=n.attributes.group_type)}),[]),t=Object.keys(o).sort(function(t,e){return t.localeCompare(e)}),t=(h.default.each(t,function(t){a.push([t,o[t]])}),console.log("model"),console.log(this.model),this.model.annexes.toJSON());return t.prevAnnex=e(this.model.annexes).toJSON(),t.nextAnnex=n(this.model.annexes).toJSON(),t.contributed_models=a,t},f.prototype.getAssets=function(){return this.$el.find("img")},f.prototype.onRender=function(){this._onResize=h.default.bind(this.onResize,this),$(window).on("resize orientationchange",this._onResize)},f.prototype.onShow=function(){this.onLoadMap(),this.$el.hide(),this.ui.mapWrapper.hide(),this.onResize(),this.triggerMethod("load",this.getAssets())},f.prototype.onAppear=function(t){this.$el.fadeIn(1e3),this.onResize(),null!==t&&($(this.ui.showMapButton).click(),$(this.ui.mapGallery).find('[data-contribution-id="'+t+'"]').click())},f.prototype.onResize=function(t){this.wH=$(window).height()-90;var e=$(window).height();(0,d.isSmall)()||(e-=$("#nav-region").height()),this.$el.find(".cover").height(e),$(".slick-slider").each(function(t,e){e.slick.setPosition()})},f.prototype.onLoadMap=function(){var s=this,t=this.model.contributions.models,e=this.ui.map=new L.map("map-container",{center:new L.LatLng(this.model.annexes.attributes.latitude,this.model.annexes.attributes.longitude),zoom:(0,d.isSmall)()?1:2,minZoom:(0,d.isSmall)()?1:2,maxZoom:13,zoomControl:!1,worldCopyJump:!0,layers:new L.tileLayer("https://{s}.tile.osm.org/{z}/{x}/{y}.png")}),l=(L.control.zoom({position:"bottomright"}).addTo(e),u=L.markerClusterGroup({showCoverageOnHover:!1,iconCreateFunction:function(t){var t=t.getAllChildMarkers(),n=0,t=(h.default.each(t,function(t,e){n+=parseInt($(t.options.icon.options.html).text())?parseInt($(t.options.icon.options.html).text()):1}),n<1e3),e=t?40:50;return L.divIcon({html:n,className:t?"mycluster1":"mycluster2",iconSize:L.point(e,e)})}}),[]);h.default.each(t,function(e,t){var n,i,r,o=new L.LatLng(parseFloat(e.attributes.latitude),parseFloat(e.attributes.longitude)),a=$('<div id="'+e.attributes.latitude.replace(".","")+e.attributes.longitude.replace(".","")+'"></div>');h.default.each(e.attributes.contributions,function(t){t=$("<div>1</div>").attr("data-popin","true").attr("data-pinterest","false").attr("data-type","contribution").attr("data-url",t.image).attr("data-title",t.car_title).attr("data-pseudo",t.name).attr("data-city",e.attributes.city).attr("data-locality",e.attributes.latitude.replace(".","")+e.attributes.longitude.replace(".","")).attr("data-version",t.model_version).attr("data-year",t.model_year).attr("data-text",t.story).attr("data-liked","true"==(0,p.getCookie)("liked-contribution-"+t.id)?"liked":"").attr("data-contribution-id",t.id).attr("data-number-like",t.cpt_like).attr("data-share-facebook-txt",t.share_facebook_txt).attr("data-share-pinterest-txt",t.share_pinterest_txt).attr("data-share-twitter-txt",t.share_twitter_txt).attr("data-share-url",t.slug);a.append(t)}),0<a.find(">div").length&&(r=1==(r=a.find(">div").length)?L.divIcon({html:a.find("div").get(0).outerHTML,className:"customIcon",iconSize:L.point(30,30)}):(n=(i=r<1e3)?"mycluster1":"mycluster2",i=i?40:50,L.divIcon({html:$(a.find("div")[0]).text(r)[0].outerHTML,className:"customIcon "+n,iconSize:L.point(i,i)})),n=L.marker(o,{title:e.attributes.city,icon:r}),u.addLayer(n),l.push(o),s.ui.mapGallery.append(a))}),e.addLayer(u)},f.prototype.onShowMap=function(t){t.preventDefault();var e=this;this.ui.cover.fadeOut(function(){e.ui.mapWrapper.fadeIn(1e3)}),this.onResize()},f.prototype.onChange=function(t){var s=this,t=t.target,l=$(t.options[t.selectedIndex]).data("group-type"),t=this.ui.map,e=this.model.contributions.models,c=[];u.clearLayers(),this.ui.mapGallery.empty(),h.default.each(e,function(e,t){var n,i,r,o=new L.LatLng(parseFloat(e.attributes.latitude),parseFloat(e.attributes.longitude)),a=$('<div id="'+e.attributes.latitude.replace(".","")+e.attributes.longitude.replace(".","")+'"></div>');h.default.each(e.attributes.contributions,function(t){""!==l&&parseInt(l)!==parseInt(t.group_type)||(t=$("<div>1</div>").attr("data-popin","true").attr("data-pinterest","false").attr("data-type","contribution").attr("data-url",t.image).attr("data-title",t.car_title).attr("data-pseudo",t.name).attr("data-city",e.attributes.city).attr("data-locality",e.attributes.latitude.replace(".","")+e.attributes.longitude.replace(".","")).attr("data-version",t.model_version).attr("data-year",t.model_year).attr("data-text",t.story).attr("data-liked","true"==(0,p.getCookie)("liked-contribution-"+t.id)?"liked":"").attr("data-contribution-id",t.id).attr("data-number-like",t.cpt_like).attr("data-share-facebook-txt",t.share_facebook_txt).attr("data-share-pinterest-txt",t.share_pinterest_txt).attr("data-share-twitter-txt",t.share_twitter_txt).attr("data-share-url",t.slug),a.append(t))}),0<a.find(">div").length&&(r=1==(r=a.find(">div").length)?L.divIcon({html:a.find("div").get(0).outerHTML,className:"customIcon",iconSize:L.point(30,30)}):(n=(i=r<1e3)?"mycluster1":"mycluster2",i=i?40:50,L.divIcon({html:$(a.find("div")[0]).text(r)[0].outerHTML,className:"customIcon "+n,iconSize:L.point(i,i)})),n=L.marker(o,{title:e.attributes.city,icon:r}),u.addLayer(n),c.push(o),s.ui.mapGallery.append(a))}),t.addLayer(u),t.setView(new L.LatLng(this.model.annexes.attributes.latitude,this.model.annexes.attributes.longitude),(0,d.isSmall)()?1:2)},f.prototype.onPopinClick=function(t){var t=$(t.currentTarget),e=t.data("type"),n=t.data("url"),i=t.data("youku"),r=t.data("youtube"),o=t.data("local-url"),a=t.data("image"),s=t.data("title"),l=t.data("text"),c=t.data("pinterest"),u=t.data("contrib"),h=t.data("pseudo"),d=t.data("city"),p=t.data("version"),f=t.data("year"),m=t.attr("data-liked"),g=t.data("contribution-id"),v=t.attr("data-number-like"),y=t.data("share-facebook-txt"),_=t.data("share-pinterest-txt"),b=t.data("share-twitter-txt"),x=t.data("share-url");0<this.ui.mapGallery.length&&(t.parent().hasClass("mycluster1")||t.parent().hasClass("mycluster2"))&&(n=[],s=[],h=[],d=[],p=[],f=[],l=[],m=[],g=[],v=[],y=[],_=[],b=[],x=[],this.ui.mapGallery.find("#"+t.data("locality")).find('[data-popin="true"][data-type="contribution"]').each(function(t,e){n.push(e.getAttribute("data-url")),s.push(e.getAttribute("data-title")),h.push(e.getAttribute("data-pseudo")),d.push(e.getAttribute("data-city")),p.push(e.getAttribute("data-version")),f.push(e.getAttribute("data-year")),l.push(e.getAttribute("data-text")),m.push(e.getAttribute("data-liked")),g.push(e.getAttribute("data-contribution-id")),v.push(e.getAttribute("data-number-like")),y.push(e.getAttribute("data-share-facebook-txt")),_.push(e.getAttribute("data-share-pinterest-txt")),b.push(e.getAttribute("data-share-twitter-txt")),x.push(e.getAttribute("data-share-url"))}),a=0),this.triggerMethod("overlay:open:popin",e,n,i,r,o,a,s,l,c,u,h,d,p,f,m,g,v,y,_,b,x)},f.prototype.onDestroy=function(){$(window).off("resize",this._onResize),this._onResize=void 0},i(f,[{key:"className",get:function(){return"participation"}},{key:"tagName",get:function(){return"div"}},{key:"template",get:function(){return a.default}}]);var c,t=f;function f(){var t=this,e=f;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=c.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"../../util/Cookie":642,"../../util/Env":643,"./layout/MapLayout.hbs":612,"backbone.marionette":42,"slick-carousel":573,underscore:576}],601:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=c(t("backbone.marionette")),a=c(t("underscore")),s=c(t("./layout/MoreOnCitroenLayout.hbs")),l=t("../../util/Env");function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}document.documentElement.getAttribute("dir");u(d,h=o.default.ItemView),d.prototype.ui=function(){return{discover:"#discover",topButton:".top-button",gotop:"#gotop",tocLink:".anex-toc-link",sections:".push-content:not(.push-content--simple)",stickables:"#left-img, .anex-toc"}},d.prototype.events=function(){return{"click @ui.discover":"onDiscoverClick","click @ui.gotop":"onGoTopClick"}},d.prototype.serializeData=function(){function e(t){return t=(t=t.prev).toJSON().html||t.toJSON().nolink||i&&0<=t.toJSON().slug.indexOf("/map")||i&&0<=t.toJSON().slug.indexOf("/quiz")||"exposition"==t.toJSON().type||"landing"==t.toJSON().type?e(t):t}function n(t){return t=(t=t.next).toJSON().html||t.toJSON().nolink||i&&0<=t.toJSON().slug.indexOf("/map")||i&&0<=t.toJSON().slug.indexOf("/quiz")||"exposition"==t.toJSON().type||"landing"==t.toJSON().type?n(t):t}var i=this.options.isApp,t=this.model.toJSON();return t.prevAnnex=e(this.model).toJSON(),t.nextAnnex=n(this.model).toJSON(),console.log(t),t},d.prototype.getAssets=function(){return this.$el.find("img")},d.prototype.onRender=function(){this._onResize=a.default.bind(this.onResize,this),$(window).on("resize",this._onResize),this._onAnchorClick=this.onAnchorClick.bind(this),this.ui.tocLink.bind("click",this._onAnchorClick),this._onScroll=a.default.bind(this.onScroll,this),$("#main-region").on("scroll",this._onScroll)},d.prototype.onShow=function(){this.$el.hide(),this.onResize(),this.triggerMethod("load",this.getAssets())},d.prototype.onDiscoverClick=function(t){t.preventDefault(),$("#main-region").animate({scrollTop:$("#content-start").offset().top-$("#sections-region").offset().top},"slow")},d.prototype.onGoTopClick=function(t){t.preventDefault(),$("#main-region").animate({scrollTop:0},"slow")},d.prototype.onAnchorClick=function(t){t.preventDefault();t=t.currentTarget.hash;this.gotoSection(t)},d.prototype.gotoSection=function(t){$("#main-region").animate({scrollTop:this.$el.find(".cover").height()+$(t).position().top},600)},d.prototype.checkPosition=function(){var t=$("#content-start"),e=$("#nav-region").height(),n=t.offset(),e=n.top<e,n=n.top+t.height()>$(window).height(),i=e&&n;this.ui.stickables.toggleClass("fixed",i).toggleClass("bottom",e&&!n),"rtl"==document.documentElement.getAttribute("dir")?this.ui.stickables.css({left:(0,l.getScrollbarSize)()*i+"px"}):this.ui.stickables.css({right:(0,l.getScrollbarSize)()*i+"px"}),i&&$.contains(this.$el.get(0),this.ui.stickables.get(0))?$("#root").append(this.ui.stickables):i||$.contains(this.$el.get(0),this.ui.stickables.get(0))||t.append(this.ui.stickables)},d.prototype.checkCurrentSection=function(){$("#main-region").scrollTop();var n=0,i=.4*this.wH;a.default.each(this.ui.sections,function(t,e){$(t).offset().top<i&&(n=e)}),this.ui.tocLink.removeClass("anex-toc-link--active").eq(n).addClass("anex-toc-link--active"),$("#ul-img").css({transform:"translateY(-"+this.wH*n+"px)"})},d.prototype.onAttach=function(){},d.prototype.onAppear=function(){this.$el.fadeIn(1e3),this.onResize()},d.prototype.onResize=function(t){this.wH=$(window).height()-90;var e=$(window).height();(0,l.isSmall)()||(e-=$("#nav-region").height()),this.$el.find(".cover").add(this.ui.stickables).height(e),1024<=window.innerWidth&&(clearTimeout(this._scrollDebounce),this.checkPosition(),this.checkCurrentSection())},d.prototype.onScroll=function(t){var e=this;1024<=window.innerWidth?(this.checkPosition(),this._scrollDebounce||(this._scrollDebounce=setTimeout(function(){e._scrollDebounce=null,e.checkCurrentSection()},500))):this.ui.topButton.toggleClass("disabled",!($("#main-region").scrollTop()>$(window).height()))},d.prototype.onDestroy=function(){clearTimeout(this._scrollDebounce),$.contains(this.$el.get(0),this.ui.stickables.get(0))||$("#content-start").append(this.ui.stickables),$(window).off("resize",this._onResize),this._onResize=void 0,$(window).off("touchmove",this._onScroll),this._onScroll=void 0,$("#main-region").off("scroll",this._onScroll)},i(d,[{key:"className",get:function(){return"more-on-citroen"}},{key:"tagName",get:function(){return"div"}},{key:"template",get:function(){return s.default}}]);var h,t=d;function d(){var t=this,e=d;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=h.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"../../util/Env":643,"./layout/MoreOnCitroenLayout.hbs":613,"backbone.marionette":42,underscore:576}],602:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=u(t("backbone")),a=u(t("backbone.marionette")),s=u(t("underscore")),l=u(t("./layout/QuizLayout.hbs")),c=t("../../util/Env"),R=t("../../util/Cookie");function u(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}document.documentElement.getAttribute("dir");h(p,d=a.default.ItemView),p.prototype.ui=function(){return{quizWrapper:".quiz-wrapper",cover:".cover",tutoWrapper:".tuto-wrapper",questionsWrapper:".questions-wrapper",questionWrapper:".question-wrapper",formSendResult:".form-send-result-wrapper",resultsWrapper:".results-wrapper",showQuizButton:".cover .basic-button",showQuestionsButton:".tuto-wrapper .basic-button",showNextQuestionButton:".answers-wrapper .basic-button",progressState:".progress-state",hoursLabel:".question-wrapper .hours-label",minutesLabel:".question-wrapper .minutes-label",secondsLabel:".question-wrapper .seconds-label",formLine:".form-line",formQuiz:"#form_quiz",playerPseudo:"#player-pseudo",errorMsg:".error-msg",sendForm:'.form-line input[type="submit"]',linkIgnore:".link-ignore",stopWords:".stop-words",progressBar:".progress-bar",audioControls:".audio-controls",reloadAudio:".reload-audio",timeSpent:"#timeSpent",score:"#score",toggleShare:".toggle-share",shareButtons:".share-container .share-button",reloadQuiz:".reload-quiz",tableResultsContainer:".table-results-container",challengeButton:".challenge-button",slidePagerButtons:".slide-pager > a",scrollDown:".scroll-down"}},p.prototype.triggers=function(){return{}},p.prototype.events=function(){return{"click @ui.showQuizButton":"onShowQuiz","click @ui.showQuestionsButton":"onShowQuestions","click @ui.showNextQuestionButton":"onShowNextQuestion","change @ui.playerPseudo":"onPlayerPseudoChange","keyup @ui.playerPseudo":"onPlayerPseudoChange","click @ui.sendForm":"onPlayerSendClick","submit @ui.formQuiz":"onPlayerSendClick","click @ui.linkIgnore":"onAnonymousSendClick","click @ui.audioControls":"onAudioControlsClick","click @ui.reloadAudio":"onReloadAudioClick","click @ui.reloadQuiz":"onReloadQuizClick","click @ui.toggleShare":"onToggleShareClick","click @ui.challengeButton":"onChallengeButtonClick","click @ui.slidePagerButtons":"onSlidePagerButtonsClick","click @ui.scrollDown":"onScrollDownClick"}},p.prototype.serializeData=function(){function e(t){return t=(t=t.prev).toJSON().html||t.toJSON().nolink||i&&0<=t.toJSON().slug.indexOf("/map")||i&&0<=t.toJSON().slug.indexOf("/quiz")||"exposition"==t.toJSON().type||"landing"==t.toJSON().type?e(t):t}function n(t){return t=(t=t.next).toJSON().html||t.toJSON().nolink||i&&0<=t.toJSON().slug.indexOf("/map")||i&&0<=t.toJSON().slug.indexOf("/quiz")||"exposition"==t.toJSON().type||"landing"==t.toJSON().type?n(t):t}var i=this.options.isApp,t=this.model.toJSON();return t.data=JSON.parse(t.quiz_datas).all_data,t.data.field_questions=10<Object.keys(t.data.field_questions).length?this.getRandom(t.data.field_questions,10):t.data.field_questions,t.data.field_stop_words=JSON.parse(t.quiz_datas).field_stop_words,t.prevAnnex=e(this.model).toJSON(),t.nextAnnex=n(this.model).toJSON(),t},p.prototype.getRandom=function(t,e){for(var n=[],i=1;i<Object.keys(t).length+1;i++)n[i]=t[i];return n.sort(function(){return.5-Math.random()}),n.slice(0,e)},p.prototype.getAssets=function(){return this.$el.find("img")},p.prototype.onRender=function(){this._onResize=s.default.bind(this.onResize,this),$(window).on("resize orientationchange",this._onResize),this._onScroll=this.onScroll.bind(this),$("#main-region").on("scroll",this._onScroll)},p.prototype.onShow=function(){this.$el.hide(),this.ui.quizWrapper.hide(),this.ui.questionsWrapper.hide(),$.each(this.ui.questionWrapper,function(t,e){0<t&&$(this).hide()}),this.ui.formSendResult.hide(),this.ui.resultsWrapper.hide(),this.onResize(),this.triggerMethod("load",this.getAssets())},p.prototype.onAppear=function(t){this.$el.fadeIn(1e3),null!==t&&(this.ui.cover.hide(),this.ui.quizWrapper.show(),this.onScrollTop()),this.onResize()},p.prototype.onResize=function(){var t=this.$el.find(".slick-slider"),e=(0<t.length&&setTimeout(function(){t.slick("setPosition")},1e3),this.wH=$(window).height()-90,$(window).height());(0,c.isSmall)()||(e-=$("#nav-region").height()),this.$el.find(".cover").height(e)},p.prototype.onShowQuiz=function(t){t.preventDefault();var e=this;this.ui.cover.fadeOut(300,function(){e.ui.quizWrapper.fadeIn(600),e.onScrollTop()}),this.onResize()},p.prototype.onShowQuestions=function(t){t.preventDefault();var e=this;this.ui.tutoWrapper.fadeOut(function(){e.ui.questionsWrapper.fadeIn(1e3)}),this.onInitAudioEndedListener(),this.onInitProgressState(),this.onCounterStart(),this.onScrollTop(),this.onResize()},p.prototype.onShowNextQuestion=function(t){t.preventDefault();var e=this,t=$(t.currentTarget),n=t.parents(".question-wrapper"),i=t.parents(".question-wrapper").next(".question-wrapper"),r=n.find("audio");t.prop("disabled",!0),r.length&&(r.get(0).pause(),this.onClearProgressAudio(r.siblings(".audio-controls"))),1===t.data("answerCorrect")&&this.ui.score.val(parseInt(this.ui.score.val())+1),n.fadeOut(function(){i.length?i.css({display:"",opacity:0}).animate({opacity:1},1e3):e.onShowFormSendResult()}),this.onScrollTop(),this.onResize()},p.prototype.onInitAudioEndedListener=function(){var n=this,t=$("audio");$.each(t,function(t,e){$(e).on("ended",function(){n.onAudioEnded(this)})})},p.prototype.onAudioEnded=function(t){var e=$(t).siblings(".audio-controls"),n=e.find(".status");this.onClearProgressAudio(e),n.removeClass("isPaused").removeClass("isPlaying"),t.currentTime=0},p.prototype.onAudioControlsClick=function(t){t.preventDefault();var e=$(t.currentTarget),n=$(t.currentTarget).find(".status"),t=$(t.currentTarget).siblings("audio").get(0);n.hasClass("isPlaying")?(n.removeClass("isPlaying"),n.addClass("isPaused"),t.pause(),this.onPauseProgressAudio(e)):(n.removeClass("isPaused"),n.addClass("isPlaying"),t.play(),this.onRefreshProgressAudio(e))},p.prototype.onReloadAudioClick=function(t){t.preventDefault();var e=$(t.currentTarget).siblings(".audio-controls"),n=e.find(".status"),t=$(t.currentTarget).siblings("audio").get(0);n.removeClass("isPaused").addClass("isPlaying"),t.pause(),t.currentTime=0,t.play(),this.onRefreshProgressAudio(e)},p.prototype.onRefreshProgressAudio=function(t){var e=this;window.intervalId=setInterval(function(){e.setProgress(t)},200)},p.prototype.onPauseProgressAudio=function(){clearInterval(window.intervalId)},p.prototype.onClearProgressAudio=function(t){this.onPauseProgressAudio(),t.find(".circle .fill, .circle .mask.full").attr("style",""),t.find(".circle .fill.fix").attr("style","")},p.prototype.setProgress=function(t){var e,n=t.siblings("audio").get(0),n=Math.floor(n.currentTime)/Math.floor(n.duration),i=["-webkit-transform","-ms-transform","transform"],n=Math.floor(180*n),r=n,o=2*n;for(e in i)t.find(".circle .fill, .circle .mask.full").css(i[e],"rotate("+r+"deg)"),t.find(".circle .fill.fix").css(i[e],"rotate("+o+"deg)")},p.prototype.onShowFormSendResult=function(){this.onCounterStop(),(0,R.getCookie)("citroen-origins-player-pseudo")?(this.ui.playerPseudo.val((0,R.getCookie)("citroen-origins-player-pseudo")),this.ui.playerPseudo.prop("disabled",!0)):this.ui.sendForm.addClass("disable");var n=this.ui.stopWords.html().split("|");$.each(n,function(t,e){n[t]=e.toLowerCase()}),this.ui.stopWords.html(n.join("|")),this.ui.stopWords.hide(),this.ui.questionsWrapper.hide(),this.ui.formSendResult.fadeIn(1e3),this.onResize()},p.prototype.onPlayerPseudoChange=function(){var t=this.ui.playerPseudo.val().toLowerCase(),e=this.ui.stopWords.html().split("|");t.length<=2?this.ui.sendForm.addClass("disable"):-1<$.inArray(t,e)?(this.ui.formLine.addClass("error"),this.ui.sendForm.addClass("disable")):(this.ui.formLine.removeClass("error"),this.ui.sendForm.removeClass("disable"))},p.prototype.onPlayerSendClick=function(t){t.preventDefault();var e,n,i=this,t=this.ui.playerPseudo.val(),r=this.ui.stopWords.html().split("|");t.length<=2?this.ui.sendForm.addClass("disable"):-1<$.inArray(t,r)?(this.ui.formLine.addClass("error"),this.ui.sendForm.addClass("disable")):(this.ui.formLine.removeClass("error"),this.ui.sendForm.removeClass("disable"),e="",r=this.ui.score.val(),n=this.ui.timeSpent.val(),(0,R.getCookie)("citroen-origins-player-id")?e=(0,R.getCookie)("citroen-origins-player-id"):(0,R.setCookie)("citroen-origins-player-pseudo",t),$.post(this.model.quizUrl+"/"+this.model.attributes.nid,{action:"insert",score:r,time:n,pseudo:t,playerId:e}).done(function(t){i.ui.formLine.find(".form-sent").trigger("click"),""===e&&(e=t.player_id,(0,R.setCookie)("citroen-origins-player-id",e)),i.onPopulateResults(t.all_result)}))},p.prototype.onAnonymousSendClick=function(t){t.preventDefault();var e=this;$.post(this.model.quizUrl+"/"+this.model.attributes.nid).done(function(t){e.onPopulateResults(t.all_result)})},p.prototype.onPopulateResults=function(t){for(var i=this,e=(0,R.getCookie)("citroen-origins-player-id")?(0,R.getCookie)("citroen-origins-player-id"):"",n=parseInt(this.ui.score.val()),r=parseInt(this.ui.timeSpent.val()),o=Math.floor(r/3600),a=Math.floor(r%3600/60),s=Math.floor(r%3600%60),l=""!==e?t.findIndex(function(t){return t.player_id==e})+1:0,c=t.length,u=this.model.collection.globalTexts.quiz_settings_and_labels.translations.scoring_template,h=this.model.collection.globalTexts.quiz_settings_and_labels.translations.scoring_template_hours_label,d=this.model.collection.globalTexts.quiz_settings_and_labels.translations.scoring_template_minutes_label,p=this.model.collection.globalTexts.quiz_settings_and_labels.translations.scoring_template_seconds_label,f=this.ui.shareButtons,m=(this.ui.resultsWrapper.find(".score-congrats > div").hide(),(n<4?this.ui.resultsWrapper.find(".score-bad"):n<9?this.ui.resultsWrapper.find(".score-medium"):this.ui.resultsWrapper.find(".score-good")).show(),this.ui.resultsWrapper.find(".score-wrapper span").text(n),$.each(f,function(){var t=$(this).attr("data-message"),e=0<o?o+" "+h+" ":"";0<a&&(e+=a+" "+d+" "),e+=s+" "+p,t=(t=t.replace("[score]",n)).replace("[time]",e),$(this).attr("data-message",t)}),0==o?(this.ui.resultsWrapper.find(".hour-unit").hide(),o=""):o<10&&(o="0"+o),""!=o&&(o+=":"),0==a?a="00":a<10&&(a="0"+a),a+=":",0==s?s="00":s<10&&(s="0"+s),this.ui.resultsWrapper.find(".time-wrapper span").text(o+a+s),0==l?this.ui.resultsWrapper.find(".position").hide():(this.ui.resultsWrapper.find(".position .player-position").text(l),this.ui.resultsWrapper.find(".position .players-quantity").text(c)),0),g=0;g<c/5;g++){for(var v=$("<div></div>"),y=$("<table></table>"),_=0;_<5&&_+5*g<c;_++){var b=$("<tr></tr>"),x=$("<th></th>").text(_+5*g+1),w=$("<td></td>"),T=t[_+5*g],S=T.player_id,C=T.player_pseudo,n=T.player_score,r=T.player_time,T=Math.floor(r/3600),E=Math.floor(r%3600/60),M=Math.floor(r%3600%60),P=u,k=h,A=d,O=p;e==S&&(b.addClass("active"),m=g),r="",0<T&&(r=T+" "+k+" "),0<E&&(r+=E+" "+A+" "),r+=M+" "+O,P=P.replace("${pseudo}",C).replace("${score}",n).replace("${time}",r),w.html(P),y.append(b.append(x).append(w))}this.ui.tableResultsContainer.find(".slide-wrapper").append(v.append(y))}$.ajaxSetup({cache:!0}),$.getScript("https://connect.facebook.net/en_US/sdk.js",function(){FB.init({appId:i.model.facebookId,version:"v2.7"})}),this.ui.formSendResult.fadeOut(function(){i.onScrollTop(),i.ui.resultsWrapper.show().css("opacity","0").css("visibility","hidden"),5<c?(L="rtl"==document.documentElement.getAttribute("dir"),i.ui.tableResultsContainer.find(".slide-wrapper").slick({dots:!1,arrows:!1,infinite:!1,slidesToShow:1,slidesToScroll:1,swipeToSlide:!0,edgeFriction:.01,speed:300,rtl:L,rows:0}).on("afterChange",function(t,e,n){i.onUpdateSlidePager(n)}),i.ui.tableResultsContainer.find(".slide-wrapper").slick("slickGoTo",parseInt(m)||0)):i.ui.tableResultsContainer.find(".slide-pager").hide(),i.ui.resultsWrapper.attr("style","").hide().fadeIn(1e3)})},p.prototype.onUpdateSlidePager=function(t){var e=this.ui.tableResultsContainer.find(".slide-wrapper").get(0).slick.$slides.length;this.ui.slidePagerButtons.filter(".previous-num-slide").text(t),this.ui.slidePagerButtons.filter(".current-slide").text(t+1),this.ui.slidePagerButtons.filter(".next-num-slide").text(t+2),this.ui.slidePagerButtons.removeClass("disable"),0==t&&(this.ui.slidePagerButtons.filter(".first-slide").addClass("disable"),this.ui.slidePagerButtons.filter(".previous-slide").addClass("disable"),this.ui.slidePagerButtons.filter(".previous-num-slide").addClass("disable")),t==e-1&&(this.ui.slidePagerButtons.filter(".last-slide").addClass("disable"),this.ui.slidePagerButtons.filter(".next-slide").addClass("disable"),this.ui.slidePagerButtons.filter(".next-num-slide").addClass("disable"))},p.prototype.onSlidePagerButtonsClick=function(t){var t=$(t.currentTarget),e=this.ui.tableResultsContainer.find(".slide-wrapper"),n=parseInt(e.get(0).slick.currentSlide),i=e.get(0).slick.$slides.length;if(t.hasClass("disable")||t.hasClass("current-slide"))return!1;t.hasClass("previous-num-slide")||t.hasClass("previous-slide")?n--:t.hasClass("next-num-slide")||t.hasClass("next-slide")?n++:t.hasClass("first-slide")?n=0:t.hasClass("last-slide")&&(n=i-1),e.slick("slickGoTo",n)},p.prototype.onInitProgressState=function(){var t=this.ui.progressState;9<t.length&&$.each(t,function(){var t=$(this).find("span").text();1==t.length&&$(this).find("span").text("0"+t)})},p.prototype.onCounterStart=function(){var t=this.ui.hoursLabel,e=this.ui.minutesLabel,n=this.ui.secondsLabel,i=this.ui.timeSpent,r=0;function o(t,e){e=1<arguments.length&&void 0!==e?e:"",t+="";return t.length<2?"0"+t+e:t+e}window.timeSpentInterval=setInterval(function(){++r,i.val(r),n.html(o(r%60)),e.html(o(parseInt(r/60),":")),3600<r&&(e.html(o(parseInt(parseInt(r%3600)/60),":")),t.html(o(parseInt(r/3600),":")))},1e3)},p.prototype.onCounterStop=function(){clearInterval(window.timeSpentInterval)},p.prototype.onToggleShareClick=function(t){t=$(t.currentTarget);t.toggleClass("active"),t.find(":first-child").toggleClass("share-icon close-icon")},p.prototype.onReloadQuizClick=function(t){o.default.history.loadUrl(o.default.history.fragment+"#intro")},p.prototype.onChallengeButtonClick=function(t){FB.ui({method:"send",link:o.default.history.location.href})},p.prototype.onScroll=function(t){var e=$("#main-region").scrollTop(),n=$(".quiz-wrapper").height()+$("#nav-region").height();this.ui.scrollDown.toggleClass("inactive",30<e||n<$(window).height())},p.prototype.onScrollTop=function(){$("#main-region").animate({scrollTop:0},600,this._onScroll)},p.prototype.onScrollDownClick=function(t){t.preventDefault(),$("#main-region").animate({scrollTop:$(".quiz-wrapper").height()+$("#nav-region").height()-$(window).height()},600,this._onScroll)},p.prototype.onDestroy=function(){$(window).off("resize",this._onResize),this._onResize=void 0,$("#main-region").off("scroll",this._onScroll),this._onScroll=null},i(p,[{key:"className",get:function(){return"quiz"}},{key:"tagName",get:function(){return"div"}},{key:"template",get:function(){return l.default}}]);var L,d,t=p;function p(){var t=this,e=p;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=d.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"../../util/Cookie":642,"../../util/Env":643,"./layout/QuizLayout.hbs":614,backbone:44,"backbone.marionette":42,underscore:576}],603:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=s(t("backbone.marionette")),a=(s(t("underscore")),s(t("./layout/SiteMapLayout.hbs")));t("../../util/Env");function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}l(u,c=o.default.ItemView),u.prototype.ui=function(){return{}},u.prototype.events=function(){return{}},u.prototype.serializeData=function(){return this.model.toJSON()},i(u,[{key:"className",get:function(){return"site-map"}},{key:"tagName",get:function(){return"div"}},{key:"template",get:function(){return a.default}}]);var c,t=u;function u(){var t=this,e=u;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=c.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"../../util/Env":643,"./layout/SiteMapLayout.hbs":615,"backbone.marionette":42,underscore:576}],604:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=h(t("backbone.marionette")),a=(h(t("slick-carousel")),h(t("underscore"))),s=h(t("./template.hbs")),l=t("../../../util/Env"),c=h(t("../../../util/getPointerEventsDistance"));t("../../../util/Projector"),t("../../../util/CSS3DRenderer");var u=h(t("three"));function h(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}document.documentElement.getAttribute("dir");d(m,f=o.default.ItemView),m.prototype.ui=function(){return{year:"#exterior .year",shareToggle:".share-links .share-button:first-child",switchButton:".switch-button",exterior:"#exterior",slideButton:"#exterior .threesixty-button",interior:"#interior",interiorButton:"#interior .threesixty-button",zoomButton:".zoom-button.plus-icon",dezoomButton:".zoom-button.minus-icon"}},m.prototype.events=function(){return{"click @ui.switchButton":"onSwitchClick","click @ui.shareToggle":"onShareToggleClick","click @ui.zoomButton":"onZoomClick","click @ui.dezoomButton":"onDezoomClick","mousedown @ui.interior":"onInteriorPress","touchstart @ui.interior":"onInteriorPress","mousedown @ui.exterior":"onExteriorPress","touchstart @ui.exterior":"onExteriorPress"}},m.prototype.onRender=function(){this._currentPercent=.5,this._dragEnabled=!1,this._isExterior=!0,this._renderTick=this.renderTick.bind(this),this.ui.slideButton.hide(),p="rtl"==document.documentElement.getAttribute("dir"),(0,l.isSmall)()?(this.ui.interior.find(".show-for-small").slick({dots:!0,arrows:!1,fade:!0,infinite:!1,draggable:!0,slidesToShow:1,slidesToScroll:1,rtl:p,rows:0}),this.ui.exterior.find(".show-for-small").slick({dots:!0,arrows:!1,fade:!0,infinite:!1,draggable:!0,slidesToShow:1,slidesToScroll:1,rtl:p,rows:0})):(this._onInteriorMove=a.default.bind(this.onInteriorMove,this),this._onExteriorMove=a.default.bind(this.onExteriorMove,this),this._onInteriorRelease=a.default.bind(this.onInteriorRelease,this),this._onExteriorRelease=a.default.bind(this.onExteriorRelease,this),$(window).on("mousemove",this._onInteriorMove),$(window).on("touchmove",this._onInteriorMove),$(window).on("mouseup",this._onInteriorRelease),$(window).on("touchend",this._onInteriorRelease),$(window).on("touchcancel",this._onInteriorRelease),$(window).on("mousemove",this._onExteriorMove),$(window).on("touchmove",this._onExteriorMove),$(window).on("mouseup",this._onExteriorRelease),$(window).on("touchend",this._onExteriorRelease),$(window).on("touchcancel",this._onExteriorRelease)),this._onResize=a.default.bind(this.onResize,this),$(window).on("resize",this._onResize)},m.prototype.onSwitchClick=function(t){var e=$(t.target).data("tabs"),e=$(e+" .tab"),t=t.target.checked?1:0,e=(this.isRendering=!this.isRendering,this.isRendering&&this.renderTick(),e.fadeOut().removeClass("current"),$(e[t]).fadeIn().addClass("current"),this._isExterior=!this._isExterior,(0,l.isSmall)()&&this.ui.interior.add(this.ui.exterior).find(".show-for-small").slick("setDimensions"),this.$el.find(".remote:first-child .label"));this.triggerMethod("car:select",$(e[this._isExterior?0:1]).text()),this.$el.find(".remote:nth-child(2)").toggleClass("closed")},m.prototype.onShareToggleClick=function(t){t.preventDefault(),this.$el.find(".share-links").toggleClass("closed")},m.prototype.onShow=function(){var t=this;this.turnCar(.5),(0,l.isSmall)()||this.setupInterior(),this.onResize(),setTimeout(a.default.bind(function(){t.$el.find("#interior .slick-slide").width(window.innerWidth)},this),1e3)},m.prototype.onResize=function(){var t,e=$("#main-region").height()-$("#nav-region").height();(0,l.isSmall)()&&(e-=30),this.$el.height(e),(0,l.isSmall)()?this.ui.interior.add(this.ui.exterior).find(".show-for-small").slick("setDimensions"):(t=Math.min(1,e/1e3),t=Math.min(78,Math.round(100*t)),this.ui.exterior.css("width",t+"%"),t=Math.round(20*Math.min(1,(e-500)/500)),this.$el.find("h2").css("top",t+"px"),this.setSlidePosition(),this.renderer&&(e=window.innerWidth,t=$("#main-region").height(),this.camera.aspect=e/t,this.camera.updateProjectionMatrix(),this.renderer.setSize(e,t)))},m.prototype.enableDrag=function(){this._dragEnabled=!0,this.ui.slideButton.fadeIn()},m.prototype.renderTick=function(){this.isRendering&&!(0,l.isSmall)()&&(this.lat=Math.max(-85,Math.min(85,this.lat)),this.phi=u.default.Math.degToRad(90-this.lat),this.theta=u.default.Math.degToRad(this.lon),this.camera.target.x=500*Math.sin(this.phi)*Math.cos(this.theta),this.camera.target.y=500*Math.cos(this.phi),this.camera.target.z=500*Math.sin(this.phi)*Math.sin(this.theta),this.camera.lookAt(this.camera.target),this.renderer.render(this.scene,this.camera),requestAnimationFrame(this._renderTick))},m.prototype.onExteriorPress=function(t){var e;this._dragEnabled&&this._isExterior&&("touchstart"==t.type&&(t=t.originalEvent.touches[0]),this.isUserInteracting=!0,e=this.$el.find(".threesixty-slide-control")[0].getBoundingClientRect(),t=Math.max(0,Math.min(Math.round(t.clientX-e.left),e.right)),this._startX=t,this._startPercent=this._currentPercent)},m.prototype.onExteriorRelease=function(t){this._dragEnabled&&this.isUserInteracting&&this.triggerMethod("car:select","360°"),this.isUserInteracting=!1},m.prototype.onExteriorMove=function(t){var e;this.isUserInteracting&&this._dragEnabled&&this._isExterior&&("touchmove"==t.type&&(t=t.originalEvent.touches[0]),e=this.$el.find(".threesixty-slide-control")[0].getBoundingClientRect(),t=Math.round(t.clientX-e.left-this._startX),t=this._startPercent+t/e.width,this._currentPercent=Math.min(1,Math.max(0,t)),this.setSlidePosition(),this.turnCar(this._currentPercent))},m.prototype.setSlidePosition=function(){var t=this.$el.find(".threesixty-slide-control")[0].getBoundingClientRect(),e=.9*this._currentPercent,n=e*t.width+.05*t.width,n=(this.ui.slideButton.css("left",n+"px"),-(e-.5)*Math.PI*.2),n=(this.ui.slideButton.find(".circle").css("transform","rotate("+n+"rad)"),.05*Math.PI+Math.PI*e),e=.65*t.height+Math.sin(n)*t.height*.35;this.ui.slideButton.css("top",e+"px")},m.prototype.onInteriorPress=function(t){if(!this._isExterior){if(t.preventDefault(),this.isUserInteracting=!0,this.ui.interiorButton.fadeOut(500),"touchstart"==t.type){var e=t.originalEvent.touches;if(this._pinching=2<=e.length)return this._startFov=this.camera.fov,void(this._startDist=(0,c.default)(e[0],e[1]));t=e[0]}this.onPointerDownPointerX=t.clientX,this.onPointerDownPointerY=t.clientY,this.onPointerDownLon=this.lon,this.onPointerDownLat=this.lat}},m.prototype.onInteriorRelease=function(t){this._isExterior||(this._pinching=!1,this.isUserInteracting=!1)},m.prototype.onInteriorMove=function(t){if(!this._isExterior&&this.isUserInteracting){if("touchmove"==t.type){var e,n=t.originalEvent.touches;if(this._pinching)return e=(0,c.default)(n[0],n[1]),e=this._startFov+-.2*(e-this._startDist),this.camera.fov=Math.max(Math.min(e,75),35),void this.camera.updateProjectionMatrix();t=n[0]}this.lon=.1*(this.onPointerDownPointerX-t.clientX)+this.onPointerDownLon,this.lat=.1*(t.clientY-this.onPointerDownPointerY)+this.onPointerDownLat}},m.prototype.onZoomClick=function(t){t.preventDefault(),this.camera.fov=Math.max(this.camera.fov-10,35),this.camera.updateProjectionMatrix()},m.prototype.onDezoomClick=function(t){t.preventDefault(),this.camera.fov=Math.min(this.camera.fov+10,75),this.camera.updateProjectionMatrix()},m.prototype.onDestroy=function(){$(window).off("mousemove",this._onInteriorMove),$(window).off("touchmove",this._onInteriorMove),$(window).off("mouseup",this._onInteriorRelease),$(window).off("touchend",this._onInteriorRelease),$(window).off("touchcancel",this._onInteriorRelease),$(window).off("mousemove",this._onExteriorMove),$(window).off("touchmove",this._onExteriorMove),$(window).off("mouseup",this._onExteriorRelease),$(window).off("touchend",this._onExteriorRelease),$(window).off("touchcancel",this._onExteriorRelease),this._onInteriorRelease=void 0,$(window).off("resize",this._onResize),this._onResize=void 0,this.isRendering=!1,this.scene=void 0,this.camera=void 0,this.renderer=void 0,this.controls=void 0},m.prototype.turnCar=function(t){var e=this.ui.exterior.find(".threesixty-wrapper .img-wrapper"),n=e.length,i=n-1-Math.round(t*(n-1))+Math.round(.38*n),n=(n<=(i=i<0?n+i:i)&&(i-=n),this._index=i,e.css("opacity",0),$(e[i]).css("opacity",1),Math.abs(2*t-1)),e=1-2*n;this.ui.year.find("span:first-child").css("opacity",e),this.ui.year.find("span:first-child").css("transform","translate(-"+(100+50*n)+"%, -"+(100+50*n+20)+"%)"),this.ui.year.find("span:last-child").css("opacity",e),this.ui.year.find("span:last-child").css("transform","translate("+50*n+"%, "+(50*n-20)+"%)")},m.prototype.setupInterior=function(){var n=this,t=this.$el.find("#webgl"),e=$("#root").height()-$("#nav-region").height(),e=window.innerWidth/e,i=this.$el.find("#webgl"),i=(this.textures=i.data("textures").split(",").map(function(t){var e=new Image;return e.crossOrigin=n.options.assetsCrossOrigin,$(e).data("src",t.trim()),e}),i.data("textures",this.textures),this.isRendering=!1,this.isUserInteracting=!1,this.onMouseDownMouseX=0,this.onMouseDownMouseY=0,this.lon=-90,this.lat=0,this.onMouseDownLon=0,this.onMouseDownLat=0,this.phi=0,this.theta=0,this.scene=new u.default.Scene,this.camera=new u.default.PerspectiveCamera(75,e,1,1100),this.camera.target=new u.default.Vector3(0,0,0),this.scene.add(this.camera),!1);if(Modernizr.webgl)try{var r=document.createElement("canvas"),i=((r.getContext("webgl")||r.getContext("experimental-webgl")).getSupportedExtensions(),!0)}catch(t){}this.renderer=new(i?u.default.WebGLRenderer:u.default.CSS3DRenderer),i&&this.renderer.setPixelRatio(window.devicePixelRatio),this.renderer.setClearColor(6),t.append(this.renderer.domElement);e=this.getPlane(0),e.position.z=-250,this.scene.add(e),r=this.getPlane(1),r.rotation.y=u.default.Math.degToRad(-90),r.position.x=250,this.scene.add(r),i=this.getPlane(3),i.rotation.y=u.default.Math.degToRad(90),i.position.x=-250,this.scene.add(i),t=this.getPlane(2),t.rotation.y=u.default.Math.degToRad(180),t.position.z=250,this.scene.add(t),e=this.getPlane(4),e.rotation.x=u.default.Math.degToRad(90),e.position.y=250,this.scene.add(e),r=this.getPlane(5);r.rotation.x=u.default.Math.degToRad(-90),r.position.y=-250,this.scene.add(r),this.renderer.render(this.scene,this.camera)},m.prototype.getPlane=function(t){var e,n,t=this.textures[t];return this.renderer instanceof u.default.CSS3DRenderer?(t.width=t.height=501,new u.default.CSS3DObject(t)):(e=new u.default.PlaneGeometry(500,500),n=new u.default.MeshBasicMaterial({map:new u.default.Texture(t)}),t.addEventListener("load",function(){return n.map.needsUpdate=!0}),new u.default.Mesh(e,n))},i(m,[{key:"className",get:function(){return"edito-inner"}},{key:"template",get:function(){return s.default}}]);var p,f,t=m;function m(){var t=this,e=m;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=f.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"../../../util/CSS3DRenderer":641,"../../../util/Env":643,"../../../util/Projector":644,"../../../util/getPointerEventsDistance":645,"./template.hbs":605,"backbone.marionette":42,"slick-carousel":573,three:574,underscore:576}],605:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div class="img-wrapper">\r\n'+(null!=(e=(a[1]&&s(a[1],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},r&&s(r,"index"),62,{name:"../ifEqual",hash:{},fn:t.program(2,r,0,o,a),inverse:t.program(4,r,0,o,a),data:r,loc:{start:{line:14,column:20},end:{line:18,column:35}}}))?e:"")+"                </div>\r\n"},2:function(t,e,n,i,r,o,a){var s=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t\t\t\t<img src="'+s((a[2]&&l(a[2],"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},a[1],"auto",{name:"../../assetsUrl",hash:{},data:r,loc:{start:{line:15,column:16},end:{line:15,column:50}}}))+'" alt="'+s(t.lambda(null!=a[1]?l(a[1],"title"):a[1],e))+'">\r\n'},4:function(t,e,n,i,r,o,a){var s=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t\t\t\t<img src="about:blank" data-src="'+s((a[2]&&l(a[2],"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},a[1],"auto",{name:"../../assetsUrl",hash:{},data:r,loc:{start:{line:17,column:39},end:{line:17,column:73}}}))+'" alt="'+s(t.lambda(null!=a[1]?l(a[1],"title"):a[1],e))+'">\r\n'},6:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                "+t.escapeExpression((a[1]&&s(a[1],"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},e,"auto-3d-360",{name:"../assetsUrl",hash:{},data:r,loc:{start:{line:45,column:16},end:{line:45,column:51}}}))+",\r\n"},8:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <img src="'+t.escapeExpression((a[1]&&s(a[1],"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},e,"auto",{name:"../assetsUrl",hash:{},data:r,loc:{start:{line:50,column:30},end:{line:50,column:58}}}))+'" data-preload="false">\r\n'},10:function(t,e,n,i,r,o,a){var s=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div class="img-wrapper"><img src="'+s((a[1]&&l(a[1],"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},e,640,{name:"../assetsUrl",hash:{},data:r,loc:{start:{line:60,column:51},end:{line:60,column:76}}}))+'" alt="'+s(t.lambda(null!=a[1]?l(a[1],"title"):a[1],e))+'"></div>\r\n'},12:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=o(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?o(e,"viewer_360"):e)?o(n,"sound_motor"):n,{name:"if",hash:{},fn:t.program(13,r,0),inverse:t.program(15,r,0),data:r,loc:{start:{line:66,column:8},end:{line:77,column:15}}}))?n:""},13:function(t,e,n,i,r){var o,a=t.lambda,s=t.escapeExpression,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <a href="#" class="key hide-for-small" data-sound="'+s(a(null!=(o=null!=e?t(e,"viewer_360"):e)?t(o,"sound_motor"):o,e))+'"\r\n            data-category="Content" data-action="Play::Animation" data-label="'+s(a(null!=(o=null!=e?t(e,"globalTexts"):e)?t(o,"text_3"):o,e))+'">\r\n                <img src="'+s((t(n,"assetsUrl")||e&&t(e,"assetsUrl")||c).call(l,null!=(o=null!=e?t(e,"viewer_360"):e)?t(o,"img_key"):o,640,{name:"assetsUrl",hash:{},data:r,loc:{start:{line:69,column:26},end:{line:69,column:62}}}))+'" alt="'+s("function"==typeof(n=null!=(n=t(n,"title")||(null!=e?t(e,"title"):e))?n:c)?n.call(l,{name:"title",hash:{},data:r,loc:{start:{line:69,column:69},end:{line:69,column:78}}}):n)+'">\r\n                <span class="label">'+s(a(null!=(o=null!=e?t(e,"globalTexts"):e)?t(o,"text_3"):o,e))+"</span>\r\n            </a>\r\n"},15:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <a class="key hide-for-small" style="pointer-events: none">\r\n                <img src="'+l((t(n,"assetsUrl")||e&&t(e,"assetsUrl")||s).call(a,null!=(o=null!=e?t(e,"viewer_360"):e)?t(o,"img_key"):o,640,{name:"assetsUrl",hash:{},data:r,loc:{start:{line:74,column:26},end:{line:74,column:62}}}))+'" alt="'+l("function"==typeof(o=null!=(o=t(n,"title")||(null!=e?t(e,"title"):e))?o:s)?o.call(a,{name:"title",hash:{},data:r,loc:{start:{line:74,column:69},end:{line:74,column:78}}}):o)+'">\r\n                <span class="label"></span>\r\n            </a>\r\n'},17:function(t,e,n,i,r){return"hide"},19:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <div class="remote hide-for-small '+(null!=(o=s(n,"unless").call(a,null!=(o=null!=e?s(e,"viewer_360"):e)?s(o,"img_int_desktop"):o,{name:"unless",hash:{},fn:t.program(20,r,0),inverse:t.noop,data:r,loc:{start:{line:95,column:42},end:{line:95,column:105}}}))?o:"")+'">\r\n            <span class="label">'+t.escapeExpression(t.lambda(null!=(o=null!=e?s(e,"globalTexts"):e)?s(o,"text_8"):o,e))+"</span>\r\n"+(null!=(o=s(n,"if").call(a,null!=(o=null!=e?s(e,"viewer_360"):e)?s(o,"sound_1"):o,{name:"if",hash:{},fn:t.program(22,r,0),inverse:t.noop,data:r,loc:{start:{line:97,column:12},end:{line:100,column:19}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=(o=null!=e?s(e,"viewer_360"):e)?s(o,"sound_2"):o,{name:"if",hash:{},fn:t.program(24,r,0),inverse:t.noop,data:r,loc:{start:{line:101,column:12},end:{line:104,column:19}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=(o=null!=e?s(e,"viewer_360"):e)?s(o,"sound_3"):o,{name:"if",hash:{},fn:t.program(26,r,0),inverse:t.noop,data:r,loc:{start:{line:105,column:12},end:{line:108,column:19}}}))?o:"")+"        </div>\r\n"},20:function(t,e,n,i,r){return"remove-border"},22:function(t,e,n,i,r){var o,a=t.lambda,s=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <a href="#" class="button sound-button" data-sound="'+s(a(null!=(o=null!=e?t(e,"viewer_360"):e)?t(o,"sound_1"):o,e))+'" data-category="Content" data-action="Select" data-label="'+s(a(null!=(o=null!=e?t(e,"viewer_360"):e)?t(o,"sound_1_txt"):o,e))+'">\r\n                </a>\r\n'},24:function(t,e,n,i,r){var o,a=t.lambda,s=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <a href="#" class="button sound-button" data-sound="'+s(a(null!=(o=null!=e?t(e,"viewer_360"):e)?t(o,"sound_2"):o,e))+'" data-category="Content" data-action="Select" data-label="'+s(a(null!=(o=null!=e?t(e,"viewer_360"):e)?t(o,"sound_2_txt"):o,e))+'">\r\n                </a>\r\n'},26:function(t,e,n,i,r){var o,a=t.lambda,s=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <a href="#" class="button sound-button" data-sound="'+s(a(null!=(o=null!=e?t(e,"viewer_360"):e)?t(o,"sound_3"):o,e))+'" data-category="Content" data-action="Select" data-label="'+s(a(null!=(o=null!=e?t(e,"viewer_360"):e)?t(o,"sound_3_txt"):o,e))+'">\r\n                </a>\r\n'},28:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <div class="tootip-container">\r\n'+(null!=(o=s(n,"if").call(a,null!=(o=null!=e?s(e,"viewer_360"):e)?s(o,"sound_1"):o,{name:"if",hash:{},fn:t.program(29,r,0),inverse:t.noop,data:r,loc:{start:{line:113,column:12},end:{line:119,column:19}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=(o=null!=e?s(e,"viewer_360"):e)?s(o,"sound_2"):o,{name:"if",hash:{},fn:t.program(32,r,0),inverse:t.noop,data:r,loc:{start:{line:120,column:12},end:{line:126,column:19}}}))?o:"")+(null!=(o=s(n,"if").call(a,null!=(o=null!=e?s(e,"viewer_360"):e)?s(o,"sound_3"):o,{name:"if",hash:{},fn:t.program(35,r,0),inverse:t.noop,data:r,loc:{start:{line:127,column:12},end:{line:133,column:19}}}))?o:"")+"        </div>\r\n"},29:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=o(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?o(e,"viewer_360"):e)?o(n,"sound_1_txt"):n,{name:"if",hash:{},fn:t.program(30,r,0),inverse:t.noop,data:r,loc:{start:{line:114,column:12},end:{line:118,column:19}}}))?n:""},30:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div class="lop">\r\n                    <div class="tooltip">'+t.escapeExpression(t.lambda(null!=(t=null!=e?o(e,"viewer_360"):e)?o(t,"sound_1_txt"):t,e))+"</div>\r\n                </div>\r\n"},32:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=o(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?o(e,"viewer_360"):e)?o(n,"sound_2_txt"):n,{name:"if",hash:{},fn:t.program(33,r,0),inverse:t.noop,data:r,loc:{start:{line:121,column:12},end:{line:125,column:19}}}))?n:""},33:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div class="lop">\r\n                    <div class="tooltip">'+t.escapeExpression(t.lambda(null!=(t=null!=e?o(e,"viewer_360"):e)?o(t,"sound_2_txt"):t,e))+"</div>\r\n                </div>\r\n"},35:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=o(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?o(e,"viewer_360"):e)?o(n,"sound_3_txt"):n,{name:"if",hash:{},fn:t.program(36,r,0),inverse:t.noop,data:r,loc:{start:{line:128,column:12},end:{line:132,column:19}}}))?n:""},36:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div class="lop">\r\n                    <div class="tooltip">'+t.escapeExpression(t.lambda(null!=(t=null!=e?o(e,"viewer_360"):e)?o(t,"sound_3_txt"):t,e))+"</div>\r\n                </div>\r\n"},38:function(t,e,n,i,r,o,a){var s,e=null!=e?e:t.nullContext||{},l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(s=l(n,"if").call(e,null!=a[1]?l(a[1],"share_links"):a[1],{name:"if",hash:{},fn:t.program(39,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:139,column:4},end:{line:155,column:11}}}))?s:"")+'\r\n    <div class="details-button-wrapper">\r\n'+(null!=(s=l(n,"each").call(e,null!=(s=null!=a[1]?l(a[1],"viewer_360"):a[1])?l(s,"cta"):s,{name:"each",hash:{},fn:t.program(46,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:158,column:8},end:{line:165,column:17}}}))?s:"")+"    </div>\r\n"},39:function(t,e,n,i,r,o,a){var s,e=null!=e?e:t.nullContext||{},l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <ul class="share-links closed">\r\n        <li><a href="#" class="button share-button">\r\n            <span class="share-icon"></span>\r\n            <span class="close-icon"></span>\r\n        </a></li>\r\n'+(null!=(s=l(n,"if").call(e,null!=a[1]?l(a[1],"share_facebook_url"):a[1],{name:"if",hash:{},fn:t.program(40,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:145,column:8},end:{line:147,column:15}}}))?s:"")+(null!=(s=l(n,"if").call(e,null!=a[1]?l(a[1],"share_twitter_txt"):a[1],{name:"if",hash:{},fn:t.program(42,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:148,column:8},end:{line:150,column:15}}}))?s:"")+(null!=(s=l(n,"if").call(e,null!=a[1]?l(a[1],"share_pinterest_url"):a[1],{name:"if",hash:{},fn:t.program(44,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:151,column:8},end:{line:153,column:15}}}))?s:"")+"    </ul>\r\n"},40:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <li><a href="#" class="button share-button facebook-icon" data-category="Content" data-action="Redirection::External" data-label="facebook" data-share="facebook" data-message="'+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"share_facebook_url"):a[1],e))+'"><span class="sr-only">facebook</span></a></li>\r\n'},42:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <li><a href="#" class="button share-button twitter-icon" data-category="Content" data-action="Redirection::External" data-label="twitter" data-share="twitter" data-message="'+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"share_twitter_txt"):a[1],e))+'"><span class="sr-only">twitter</span></a></li>\r\n'},44:function(t,e,n,i,r,o,a){var s=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <li><a href="#" class="button share-button pinterest-icon" data-category="Content" data-action="Redirection::External" data-label="pinterest" data-share="pinterest"  data-message="'+s(t.lambda(null!=a[1]?l(a[1],"share_pinterest_url"):a[1],e))+'" data-asset="'+s((a[1]&&l(a[1],"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=a[1]?l(a[1],"share_image_url"):a[1],1600,{name:"../assetsUrl",hash:{},data:r,loc:{start:{line:152,column:228},end:{line:152,column:268}}}))+'"><span class="sr-only">pinterest</span></a></li>\r\n'},46:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=o(n,"if").call(null!=e?e:t.nullContext||{},null!=e?o(e,"cta_url"):e,{name:"if",hash:{},fn:t.program(47,r,0),inverse:t.noop,data:r,loc:{start:{line:159,column:12},end:{line:164,column:19}}}))?n:""},47:function(t,e,n,i,r){var o,a,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,c="function",u=t.escapeExpression,h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <a href="'+u(typeof(a=null!=(a=h(n,"cta_url")||(null!=e?h(e,"cta_url"):e))?a:l)==c?a.call(s,{name:"cta_url",hash:{},data:r,loc:{start:{line:160,column:25},end:{line:160,column:36}}}):a)+'" target="_blank" class="button details-button '+(null!=(o=h(n,"if").call(s,null!=e?h(e,"cta_img"):e,{name:"if",hash:{},fn:t.program(48,r,0),inverse:t.noop,data:r,loc:{start:{line:160,column:83},end:{line:160,column:114}}}))?o:"")+'" data-category="Content" data-action="Redirection::External" data-label="'+u(typeof(a=null!=(a=h(n,"cta_txt")||(null!=e?h(e,"cta_txt"):e))?a:l)==c?a.call(s,{name:"cta_txt",hash:{},data:r,loc:{start:{line:160,column:188},end:{line:160,column:199}}}):a)+'">\r\n                    '+(null!=(o=h(n,"if").call(s,null!=e?h(e,"cta_img"):e,{name:"if",hash:{},fn:t.program(50,r,0),inverse:t.noop,data:r,loc:{start:{line:161,column:20},end:{line:161,column:103}}}))?o:"")+"\r\n                    <span>"+u(typeof(a=null!=(a=h(n,"cta_txt")||(null!=e?h(e,"cta_txt"):e))?a:l)==c?a.call(s,{name:"cta_txt",hash:{},data:r,loc:{start:{line:162,column:26},end:{line:162,column:37}}}):a)+"</span>\r\n                </a>\r\n"},48:function(t,e,n,i,r){return"miniature"},50:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<span class="blc-img"><img src="'+t.escapeExpression("function"==typeof(n=null!=(n=o(n,"cta_img")||(null!=e?o(e,"cta_img"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"cta_img",hash:{},data:r,loc:{start:{line:161,column:67},end:{line:161,column:78}}}):n)+'" alt="" /></span>'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){var s,l,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,h="function",d=t.lambda,p=t.escapeExpression,f=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<h1><span class="small">Citroën</span> '+(null!=(s=typeof(l=null!=(l=f(n,"title")||(null!=e?f(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,loc:{start:{line:1,column:39},end:{line:1,column:50}}}):l)?s:"")+' <span class="year show-for-small" style="color:#DA291C">'+p(d(null!=(s=null!=(s=null!=e?f(e,"genealogie_content"):e)?f(s,"genealogie_car"):s)?f(s,"year"):s,e))+'</span></h1>\r\n\r\n<div id="interior-exterior-tab" class="tab-wrapper threesixty-wrapper">\r\n    <div id="exterior" class="tab current threesixty">\r\n        <div class="threesixty-wrapper hide-for-small">\r\n            <div class="line"></div>\r\n            <p class="year hide-for-small" style="color: #57718A">\r\n                <span style="top: '+p((f(n,"toPercent")||e&&f(e,"toPercent")||u).call(c,null!=(s=null!=(s=null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"dat_coord"):s)?f(s,"date_1"):s)?f(s,"y"):s,{name:"toPercent",hash:{},data:r,loc:{start:{line:8,column:34},end:{line:8,column:77}}}))+"; left: "+p((f(n,"toPercent")||e&&f(e,"toPercent")||u).call(c,null!=(s=null!=(s=null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"dat_coord"):s)?f(s,"date_1"):s)?f(s,"x"):s,{name:"toPercent",hash:{},data:r,loc:{start:{line:8,column:85},end:{line:8,column:128}}}))+'">'+p((f(n,"yearCentury")||e&&f(e,"yearCentury")||u).call(c,null!=(s=null!=(s=null!=e?f(e,"genealogie_content"):e)?f(s,"genealogie_car"):s)?f(s,"year"):s,{name:"yearCentury",hash:{},data:r,loc:{start:{line:8,column:130},end:{line:8,column:184}}}))+"</span>\r\n                <span></span>\r\n            </p>\r\n\r\n"+(null!=(s=f(n,"each").call(c,null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"img_360"):s,{name:"each",hash:{},fn:t.program(1,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:12,column:12},end:{line:20,column:21}}}))?s:"")+'\r\n            <p class="year hide-for-small" style="color: #57718A">\r\n                <span></span>\r\n                <span style="top: '+p((f(n,"toPercent")||e&&f(e,"toPercent")||u).call(c,null!=(s=null!=(s=null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"dat_coord"):s)?f(s,"date_2"):s)?f(s,"y"):s,{name:"toPercent",hash:{},data:r,loc:{start:{line:24,column:34},end:{line:24,column:77}}}))+"; left: "+p((f(n,"toPercent")||e&&f(e,"toPercent")||u).call(c,null!=(s=null!=(s=null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"dat_coord"):s)?f(s,"date_2"):s)?f(s,"x"):s,{name:"toPercent",hash:{},data:r,loc:{start:{line:24,column:85},end:{line:24,column:128}}}))+'">'+p((f(n,"yearDecade")||e&&f(e,"yearDecade")||u).call(c,null!=(s=null!=(s=null!=e?f(e,"genealogie_content"):e)?f(s,"genealogie_car"):s)?f(s,"year"):s,{name:"yearDecade",hash:{},data:r,loc:{start:{line:24,column:130},end:{line:24,column:183}}}))+'</span>\r\n            </p>\r\n\r\n            <div class="threesixty-slide-control">\r\n                <div class="button threesixty-button">\r\n                    <span class="circle arrow-drag-icon"></span>\r\n                    <span class="label">360°</span>\r\n                </div>\r\n            </div>\r\n        </div>\r\n\r\n        <div class="show-for-small">\r\n            <div class="img-wrapper"><img src="'+p((f(n,"assetsUrl")||e&&f(e,"assetsUrl")||u).call(c,null!=(s=null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"img_360"):s)?f(s,"62"):s,"auto",{name:"assetsUrl",hash:{},data:r,loc:{start:{line:36,column:47},end:{line:36,column:91}}}))+'" alt="'+p(typeof(l=null!=(l=f(n,"title")||(null!=e?f(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,loc:{start:{line:36,column:98},end:{line:36,column:107}}}):l)+'"></div>\r\n            <div class="img-wrapper"><img src="'+p((f(n,"assetsUrl")||e&&f(e,"assetsUrl")||u).call(c,null!=(s=null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"img_360"):s)?f(s,"30"):s,"auto",{name:"assetsUrl",hash:{},data:r,loc:{start:{line:37,column:47},end:{line:37,column:91}}}))+'" alt="'+p(typeof(l=null!=(l=f(n,"title")||(null!=e?f(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,loc:{start:{line:37,column:98},end:{line:37,column:107}}}):l)+'"></div>\r\n            <div class="img-wrapper"><img src="'+p((f(n,"assetsUrl")||e&&f(e,"assetsUrl")||u).call(c,null!=(s=null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"img_360"):s)?f(s,"10"):s,"auto",{name:"assetsUrl",hash:{},data:r,loc:{start:{line:38,column:47},end:{line:38,column:91}}}))+'" alt="'+p(typeof(l=null!=(l=f(n,"title")||(null!=e?f(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,loc:{start:{line:38,column:98},end:{line:38,column:107}}}):l)+'"></div>\r\n            <div class="img-wrapper"><img src="'+p((f(n,"assetsUrl")||e&&f(e,"assetsUrl")||u).call(c,null!=(s=null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"img_360"):s)?f(s,"70"):s,"auto",{name:"assetsUrl",hash:{},data:r,loc:{start:{line:39,column:47},end:{line:39,column:91}}}))+'" alt="'+p(typeof(l=null!=(l=f(n,"title")||(null!=e?f(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,loc:{start:{line:39,column:98},end:{line:39,column:107}}}):l)+'"></div>\r\n        </div>\r\n    </div>\r\n    <div id="interior" class="tab threesixty">\r\n        <div class="hide-for-small" dir="ltr" id="webgl" data-textures="\r\n'+(null!=(s=f(n,"each").call(c,null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"img_int_desktop"):s,{name:"each",hash:{},fn:t.program(6,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:44,column:12},end:{line:46,column:21}}}))?s:"")+'        ">\r\n            <noscript class="sr-only">\r\n'+(null!=(s=f(n,"each").call(c,null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"img_int_desktop"):s,{name:"each",hash:{},fn:t.program(8,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:49,column:16},end:{line:51,column:25}}}))?s:"")+'            </noscript>\r\n            <div class="button threesixty-button">\r\n                <span class="circle multi-icon"></span>\r\n                <span class="label">360°</span>\r\n            </div>\r\n        </div>\r\n        <div class="show-for-small">\r\n'+(null!=(s=f(n,"each").call(c,null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"img_int_mobile"):s,{name:"each",hash:{},fn:t.program(10,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:59,column:12},end:{line:61,column:21}}}))?s:"")+"        </div>\r\n    </div>\r\n\r\n"+(null!=(s=f(n,"if").call(c,null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"img_key"):s,{name:"if",hash:{},fn:t.program(12,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:65,column:4},end:{line:78,column:11}}}))?s:"")+'</div>\r\n\r\n<aside>\r\n    <div class="remote '+(null!=(s=f(n,"unless").call(c,null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"img_int_desktop"):s,{name:"unless",hash:{},fn:t.program(17,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:82,column:23},end:{line:82,column:77}}}))?s:"")+'">\r\n        <input type="checkbox" id="switch-button" class="button switch-button" data-tabs="#interior-exterior-tab">\r\n        <label for="switch-button">\r\n            <span class="label">'+p(d(null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"text_4"):s,e))+'</span>\r\n            <span class="label">'+p(d(null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"text_5"):s,e))+'</span>\r\n        </label>\r\n    </div>\r\n    <div class="remote closed hide-for-small">\r\n        <span class="label">'+p(d(null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"text_7"):s,e))+'</span>\r\n        <a href="#" class="button zoom-button plus-icon"><span class="sr-only">+</span></a>\r\n        <a href="#" class="button zoom-button minus-icon"><span class="sr-only">-</span></a>\r\n    </div>\r\n'+(null!=(s=f(n,"if").call(c,null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"sound_1"):s,{name:"if",hash:{},fn:t.program(19,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:94,column:4},end:{line:110,column:11}}}))?s:"")+(null!=(s=f(n,"if").call(c,null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"sound_1"):s,{name:"if",hash:{},fn:t.program(28,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:111,column:4},end:{line:135,column:11}}}))?s:"")+"</aside>\r\n\r\n"+(null!=(s=(f(n,"ifOffline")||e&&f(e,"ifOffline")||u).call(c,!1,{name:"ifOffline",hash:{},fn:t.program(38,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:138,column:0},end:{line:167,column:14}}}))?s:"")+'\r\n<a href="#" data-anchor="#description" class="button discover-button" data-category="Content" data-action="Anchor" data-label="'+p(d(null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"text_6"):s,e))+'">\r\n    <span class="circle arrow-bottom-icon"></span>\r\n    <span class="label hide-for-small">'+p(d(null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"text_6"):s,e))+"</span>\r\n</a>\r\n"},useData:!0,useDepths:!0})},{"hbsfy/runtime":413}],606:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=s(t("backbone.marionette")),a=s(t("./template.hbs"));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}l(u,c=o.default.ItemView),u.prototype.serializeData=function(){return this.model.data.find(function(t,e){if(200<t.link_path.length&&"0"==t.external)return t.link_path+="<p class='mlo-logo'>By Mullenlowe One</p>",!0}),"cn-zh"!=document.documentElement.lang&&"cn-en"!=document.documentElement.lang||(this.model.lang=!0),this.model},u.prototype.onShow=function(){this.$el.hide()},u.prototype.onAppear=function(){this.$el.fadeIn()},i(u,[{key:"className",get:function(){return"footer"}},{key:"tagName",get:function(){return"footer"}},{key:"template",get:function(){return a.default}}]);var c,t=u;function u(){var t=this,e=u;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=c.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"./template.hbs":607,"backbone.marionette":42}],607:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<ul class="footer-links">\r\n'+(null!=(s=c(n,"each").call(l,null!=e?c(e,"data"):e,{name:"each",hash:{},fn:t.program(2,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:3,column:4},end:{line:25,column:13}}}))?s:"")+(null!=(s=c(n,"if").call(l,null!=e?c(e,"lang"):e,{name:"if",hash:{},fn:t.program(11,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:26,column:4},end:{line:28,column:14}}}))?s:"")+"</ul>\r\n"},2:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(s=(a[1]&&s(a[1],"ifOffline")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},!1,{name:"../ifOffline",hash:{},fn:t.program(3,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:4,column:8},end:{line:24,column:25}}}))?s:""},3:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(e=(a[2]&&s(a[2],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=a[1]?s(a[1],"external"):a[1],1,{name:"../../ifEqual",hash:{},fn:t.program(4,r,0,o,a),inverse:t.program(6,r,0,o,a),data:r,loc:{start:{line:5,column:12},end:{line:23,column:30}}}))?e:""},4:function(t,e,n,i,r,o,a){var s=t.lambda,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <li><a class="button footer-button play-icon" href="'+l(s(null!=a[1]?t(a[1],"link_path"):a[1],e))+'" target="_blank" data-category="Footer" data-action="Redirection::External" data-label="'+l(s(null!=a[1]?t(a[1],"link_title"):a[1],e))+'">\r\n                        '+l(s(null!=a[1]?t(a[1],"link_title"):a[1],e))+"\r\n                    </a></li>\r\n"},6:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(e=(a[2]&&s(a[2],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=a[1]?s(a[1],"page"):a[1],1,{name:"../../ifEqual",hash:{},fn:t.program(7,r,0,o,a),inverse:t.program(9,r,0,o,a),data:r,loc:{start:{line:10,column:16},end:{line:22,column:34}}}))?e:""},7:function(t,e,n,i,r,o,a){var s=t.lambda,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <li>\r\n                    <a class="button footer-button play-icon" href="'+l(s(null!=a[1]?t(a[1],"link_path"):a[1],e))+'" data-action="Redirection::Internal" data-label="'+l(s(null!=a[1]?t(a[1],"link_title"):a[1],e))+'">\r\n                        '+l(s(null!=a[1]?t(a[1],"link_title"):a[1],e))+"\r\n                    </a>\r\n                </li>\r\n"},9:function(t,e,n,i,r,o,a){var s=t.lambda,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <li>\r\n                    <a class="button footer-button play-icon" href="/" data-exec="overlay:open:legals" data-content="'+l(s(null!=a[1]?t(a[1],"link_path"):a[1],e))+'" data-action="Redirection::Internal" data-label="'+l(s(null!=a[1]?t(a[1],"link_title"):a[1],e))+'">\r\n                        '+l(s(null!=a[1]?t(a[1],"link_title"):a[1],e))+"\r\n                    </a>\r\n                </li>\r\n"},11:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <li><a target="_blank" href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=42010402001515" class="button footer-button play-icon"><img alt="备案图标" src="'+t.escapeExpression("function"==typeof(n=null!=(n=o(n,"assetsFolder")||(null!=e?o(e,"assetsFolder"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"assetsFolder",hash:{},data:r,loc:{start:{line:27,column:174},end:{line:27,column:190}}}):n)+'/assets/img/备案图标.png" style="margin-right: 10px; vertical-align: text-bottom;"/>鄂公网安备 42010402001515号</a></li>\r\n'},13:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=(o(n,"ifForceDisplayOfDispatch")||e&&o(e,"ifForceDisplayOfDispatch")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},!0,{name:"ifForceDisplayOfDispatch",hash:{},fn:t.program(14,r,0),inverse:t.noop,data:r,loc:{start:{line:33,column:2},end:{line:35,column:31}}}))?n:""},14:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <a href="/" data-exec="overlay:open:dispatch" class="button footer-button locale-selector-button select-icon">'+t.escapeExpression(t.lambda((t=r&&o(r,"root"))&&o(t,"current_language"),e))+"&#x200E;</a>\r\n"},16:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'  <a href="/" data-exec="overlay:open:dispatch" class="button footer-button locale-selector-button select-icon">'+t.escapeExpression(t.lambda((t=r&&o(r,"root"))&&o(t,"current_language"),e))+"&#x200E;</a>\r\n"},18:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=s(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=null!=a[1]?s(a[1],"social_networks"):a[1])?s(n,"length"):n,{name:"if",hash:{},fn:t.program(19,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:43,column:4},end:{line:51,column:11}}}))?n:""},19:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <ul class="share-links">\r\n'+(null!=(n=s(n,"each").call(null!=e?e:t.nullContext||{},null!=a[1]?s(a[1],"social_networks"):a[1],{name:"each",hash:{},fn:t.program(20,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:45,column:8},end:{line:49,column:17}}}))?n:"")+"    </ul>\r\n"},20:function(t,e,n,i,r,o){return null!=(n=(t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]})(n,"each").call(null!=e?e:t.nullContext||{},e,{name:"each",hash:{},fn:t.program(21,r,2,o),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:46,column:12},end:{line:48,column:21}}}))?n:""},21:function(t,e,n,i,r,o){var a=t.lambda,t=t.escapeExpression;return'                <li><a href="'+t(a(o[0][0],e))+'" target="_blank" class="button footer-button '+t(a(o[0][1],e))+'-icon" data-category="Footer" data-action="Redirection::External" data-label="'+t(a(o[0][1],e))+'"><span class="sr-only">'+t(a(o[0][1],e))+"</span></a></li>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(s=c(n,"if").call(l,null!=(s=null!=e?c(e,"data"):e)?c(s,"length"):s,{name:"if",hash:{},fn:t.program(1,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:1,column:0},end:{line:30,column:7}}}))?s:"")+"\r\n"+(null!=(s=c(n,"if").call(l,(s=r&&c(r,"root"))&&c(s,"disable_language_selector"),{name:"if",hash:{},fn:t.program(13,r,0,o,a),inverse:t.program(16,r,0,o,a),data:r,blockParams:o,loc:{start:{line:32,column:0},end:{line:38,column:7}}}))?s:"")+"\r\n\r\n\r\n"+(null!=(s=(c(n,"ifOffline")||e&&c(e,"ifOffline")||t.hooks.helperMissing).call(l,!1,{name:"ifOffline",hash:{},fn:t.program(18,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:42,column:0},end:{line:52,column:14}}}))?s:"")},useData:!0,useDepths:!0,useBlockParams:!0})},{"hbsfy/runtime":413}],608:[function(t,I,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var F=s(t("backbone.marionette")),r=(s(t("backbone")),s(t("underscore"))),B=s(t("./template.hbs")),o=t("../../../util/Env"),f=s(t("pixi.js")),a=s(t("../../../util/getPointerEventsDistance"));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}var h,d=540/1.62,p=Math.ceil(120+d),t="#3B3938",m=(0,o.isDesktop)()&&!(0,o.isIE)()?1024:(0,o.isTablet)()&&(0,o.resolution)()<=1.5?320:512,g="rtl"==document.documentElement.getAttribute("dir"),v=document.documentElement.getAttribute("lang"),y=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor),_=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor),b=/iPad/.test(navigator.userAgent),x=/Electron/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor),w=(x&&(v=window.localStorage.getItem("lang")||"fr"),h=y||_||b||x?function(t){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"normal")+" "+t+"px Citroen-light, Helvetica, Arial, serif"}:function(t){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"normal")+" "+t+"px Citroen, Helvetica, Arial, serif"},function(t){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"normal")+" "+t+"px Citroen, Helvetica, Arial, serif"}),T=["ru","tr","pl","sl","cs","el","hr"];function S(t,e,n){return(t-e)/(n-e)}function C(t,e,n){return e+(n-e)*t}function E(t){return parseInt(t.substr(1),16)}T.includes(v)&&(h=y||_||b||x?function(t){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"normal")+" "+t+"px Ubuntu-light, Helvetica, Arial, serif"}:function(t){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"normal")+" "+t+"px Ubuntu, Helvetica, Arial, serif"},w=function(t){return(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"normal")+" "+t+"px Ubuntu, Helvetica, Arial, serif"});u(M,N=F.default.ItemView),M.prototype.ui=function(){return{item:".grid-item",button:".grid-item .basic-button",link:".grid-item a"}},M.prototype.events=function(){return(0,o.isSmall)()?{}:{"click @ui.link":"onItemClick"}},M.prototype.onRender=function(){this.currentLevel=0,this._cat="*";var t=this.model.getYears();this._minYear=t[0],this._maxYear=t[t.length-1],this.ui.link.filter("[data-exec='overlay:open:carquote']").each(function(t,e){$(e).data("content",{title:$(e).data("title"),text:$(e).data("text"),color:$(e).data("color")})}),this._renderGridCanvasBound=this._renderGridCanvas.bind(this),this._setGridCanvasDirtyBound=this._setGridCanvasDirty.bind(this),this._updateTextureBound=this._updateTexture.bind(this),this._onWheel=this.onWheel.bind(this),this._onPointerDown=this.onPointerDown.bind(this),this._onPointerMove=this.onPointerMove.bind(this),this._onPointerUp=this.onPointerUp.bind(this),this._onGridItemClick=this.onGridItemClick.bind(this),this._onGridItemHoverIn=this.onGridItemHoverIn.bind(this),this._onGridItemHoverOut=this.onGridItemHoverOut.bind(this),this._onResize=this.onResize.bind(this),$(window).on("resize",this._onResize),this._onUnload=this.onUnload.bind(this),$(window).on("unload",this._onUnload),this._onScroll=this.onScroll.bind(this),(0,o.isSmall)()&&$("#main-region").on("scroll",this._onScroll)},M.prototype.onShow=function(){},M.prototype.onAttach=function(){this.onResize()},M.prototype.onResize=function(t){var r,e;(0,o.isSmall)()?(this.ui.item.css("transform",""),this._gridCanvas&&this._destroyGridCanvas()):(r=this,(e=function(){var t=window.innerWidth,e=($(".home").height()||260)-60,n=r.$el.children().length,i=t/7e3,n=e/(Math.ceil(n/10)*p),i=.8*Math.min(i,n);r._gridCanvas?r._resizeGridCanvas(t,e):r._createGridCanvas(t,e),void 0===r._minGridZoom?(r._minGridZoom=i,r._gridZoom=i):(r._minGridZoom=i,r._gridZoom=r._gridZoom)})(),b&&window.setTimeout(function(){e()},2e3))},M.prototype.onItemClick=function(t){var e=$(t.currentTarget).parent().find(".basic-button");e.data("exec")||(t.preventDefault(),this.triggerMethod("click:car",e.attr("href"),e.data("label")))},M.prototype.onPointerDown=function(t){var e,n=t.originalEvent;!n.touches&&0!=n.button||n.altKey||n.ctrlKey||n.metaKey||(this._pinching=!1,this._dragging=!1,this._pointerMoved=0,n=n.touches||[n],$(window).on("mousemove touchmove",this._onPointerMove),$(window).on("mouseup touchend touchcancel",this._onPointerUp),this._lastPointerEventTimeStamp=t.timeStamp,this._zoomTransition&&this._zoomTransition.kill(),this._translateTransition&&this._translateTransition.kill(),e=n[0],this._lastPointerPosX=e.clientX,this._lastPointerPosY=e.clientY,2<=n.length?(t.preventDefault(),this._pinching=!0,this._pinchStartZoom=this._gridZoom,t=n[0],n=n[1],this._pinchStartDist=(0,a.default)(t,n),t=this._viewportToStage((t.clientX+n.clientX)/2,(t.clientY+n.clientY)/2),n=this._getGridCarAt(t.x,t.y),this._focusGridCar(n)):(this._dragging=!0,this._pointerDownPosX=e.clientX,this._pointerDownPosY=e.clientY,t=this._gridCanvas.stage,this._pointerDownStageScale=t.scale.x,this._pointerDownStageX=t.x,this._pointerDownStageY=t.y))},M.prototype.onPointerMove=function(t){var e,n,i=t.originalEvent.touches||[t],r=i[0],o=(this._pointerMoved+=Math.sqrt(Math.pow(r.clientX-this._lastPointerPosX,2)+Math.pow(r.clientY-this._lastPointerPosY,2)),t.timeStamp-this._lastPointerEventTimeStamp);this._pinching?(t.preventDefault(),n=i[0],i=i[1],e=(0,a.default)(n,i)-this._pinchStartDist,n=this._viewportToStage((n.clientX+i.clientX)/2,(n.clientY+i.clientY)/2),this._transformOriginX=n.x,this._transformOriginY=n.y,this._gridZoom=this._pinchStartZoom+.003*e):this._dragging&&(this._gridCanvas.stage.position,this._pointerDownStageScale,this._gridX=this._pointerDownStageX+r.clientX-this._pointerDownPosX,this._gridY=this._pointerDownStageY+r.clientY-this._pointerDownPosY,this._lastDragVelocityX=0<o?(r.clientX-this._lastPointerPosX)/o:0,this._lastDragVelocityY=0<o?(r.clientY-this._lastPointerPosY)/o:0),this._lastPointerPosX=r.clientX,this._lastPointerPosY=r.clientY,this._lastPointerEventTimeStamp=t.timeStamp},M.prototype.onPointerUp=function(t){var e,n;$(window).off("mousemove touchmove",this._onPointerMove),$(window).off("mouseup touchend touchcancel",this._onPointerUp),this._pinching&&(t.preventDefault(),this._pinching=!1),this._dragging&&10<this._pointerMoved&&(t.preventDefault(),this._dragging=!1,t=140*this._lastDragVelocityX,n=140*this._lastDragVelocityY,e=Math.sqrt(Math.pow(t,2)+Math.pow(n,2)),e=.05*Math.sqrt(e),t=this._gridX+t,n=this._gridY+n,this._translateTransition=TweenLite.to(this,e,{_gridX:t,_gridY:n,ease:"easeOutPower4",onUpdate:this._onTranslateUpdate.bind(this)})),this._pointerMoved=0},M.prototype._onTranslateUpdate=function(){var t;this._translateTransition&&.5<this._translateTransition.progress()&&(t=this._getGridCarAt(window.innerWidth/2,.4*window.innerHeight),this._focusGridCar(t))},M.prototype.onWheel=function(t){var t=t.originalEvent,e=(this._translateTransition&&this._translateTransition.kill(),this._viewportToStage(t.clientX,t.clientY)),n=this._getGridCarAt(e.x,e.y);this._focusGridCar(n);this._gridCanvas.view.getBoundingClientRect();this._transformOriginX=e.x,this._transformOriginY=e.y;n=t.deltaY,0==t.deltaMode?(e=Math.round(n/window.innerHeight*100)/100)%.15==0&&(n=e/.15*90):1==t.deltaMode?n*=30:2==t.deltaMode&&(n*=.9*document.documentElement.clientHeight),e=.0032*-n,t=Math.min(Math.max(this._gridZoom+e,this._minGridZoom),this._maxGridZoom),n=Math.abs(t-this._gridZoom),e=+Math.sqrt(n);this._zoomTransition=TweenLite.to(this,e,{_gridZoom:t,ease:"easeOutPower4"})},M.prototype.filterCat=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this._cat=t,this.filterGrid(),e&&(this._gridZoom=0)},M.prototype.filterYear=function(t,e){var n=2<arguments.length&&void 0!==arguments[2]&&arguments[2];this._minYear=t,this._maxYear=e,this.filterGrid(),n&&(this._gridZoom=0)},M.prototype.resetYear=function(){var t=this.model.getYears();this.filterYear(t[0],t[t.length-1],!0)},M.prototype.filterGrid=function(){var i=this;r.default.each(this.ui.item,function(t){var e="*"==i._cat||$(t).data("thematic")==i._cat,n=parseInt($(t).data("year")),n=n>=i._minYear&&n<=i._maxYear;$(t).toggleClass("disabled",!e||!n)}),this._gridCars&&this._gridCars.forEach(function(t){t.filtered=$(t.element).hasClass("disabled")}),(0,o.isSmall)()&&this.scrollToYear(this.ui.item.not(".disabled").first().data("year"),!0)},M.prototype.onScroll=function(t){var e=r.default.find(this.ui.item.not(".disabled"),function(t){return 0<=t.offsetTop-$("#main-region").scrollTop()});this.triggerMethod("timeline:set:year",$(e).data("year")||this.ui.item.not(".disabled").last().data("year"))},M.prototype.scrollToYear=function(e){var t,n,i=1<arguments.length&&void 0!==arguments[1]&&arguments[1];(0,o.isSmall)()&&(t=r.default.find(this.ui.item.not(".disabled"),function(t){return $(t).data("year")==e}))&&((n=$("#main-region")).off("scroll",this._onScroll),n.scrollTop(t.offsetTop),i&&this.triggerMethod("timeline:set:year",e),n.on("scroll",this._onScroll))},M.prototype.onDestroy=function(){$("#main-region").off("scroll",this._onScroll),$(window).off("resize",this._onResize),this._onResize=null,this._onWheel=null,this._onPointerDown=null,this._onPointerMove=null,this._onPointerUp=null,this._onGridItemClick=null,this._onGridItemHoverIn=null,this._onGridItemHoverOut=null,this._destroyGridCanvas(),this._renderGridCanvasBound=null,this._setGridCanvasDirtyBound=null},M.prototype._createGridCanvas=function(t,e){Date.now();this._gridCanvas=f.default.autoDetectRenderer(t,e,{backgroundColor:16777215,antialias:!0,resolution:2});for(var t=this._gridCanvas.view,n=this._gridCanvas.stage=new f.default.Container,i=(this._gridCanvas.animationFrameRequestID=0,this.$el,$(t).attr("role","presentation").addClass("grid-canvas").bind("wheel",this._onWheel).bind("mousedown touchstart",this._onPointerDown),this.$el.before(t).appendTo(t),P=this._gridCanvas instanceof f.default.WebGLRenderer?document.createElement("canvas"):null,k=new Z(2),this.$el.children()),r=(this._gridCars=new Array(i.length),this.model.models),o=0,a=i.length;o<a;o++){var s=i.eq(o),s=this._gridCars[o]=new Y(r[o],s.get(0),this._setGridCanvasDirtyBound,this._updateTextureBound),l=Math.floor(o/10),c=o%10,s=s.view;(g="rtl"==document.documentElement.getAttribute("dir"))?s.position.set(6300-700*c,l*p):s.position.set(700*c,l*p),s.on("click",this._onGridItemClick),s.on("tap",this._onGridItemClick),s.on("mouseover",this._onGridItemHoverIn),s.on("mouseout",this._onGridItemHoverOut),n.addChild(s)}this._setGridCanvasDirty()},M.prototype.onGridItemClick=function(t){var e,n,i,r,o=t.data.originalEvent;!o.touches&&0!=o.button||o.altKey||o.ctrlKey||o.metaKey||10<this._pointerMoved||(o=C(.7,this._minGridZoom,this._maxGridZoom),e=this._findGridCarByView(t.target),n=(this._zoomTransition?this._zoomTransition.vars:this)._gridZoom,i=e.focused,this._carAutoZoom(e),n<o)||!i||(r=t.target,$(this._gridCars.find(function(t){return t.view===r}).element).find("a:first").click())},M.prototype.onGridItemHoverIn=function(t){this._findGridCarByView(t.target).hovered=!0},M.prototype.onGridItemHoverOut=function(t){this._findGridCarByView(t.target).hovered=!1},M.prototype._renderGridCanvas=function(){for(var t=this._gridCanvas.stage,e=this._gridCanvas.resolution,n=this._gridCanvas.width/e,i=this._gridCanvas.height/e,r=t.x,o=t.y,a=t.scale.x,s=0,l=this._gridCars.length;s<l;s++){var c=this._gridCars[s],u=Math.floor(s/10),h=s%10,d=r+700*h*a,h=(d=(g="rtl"==document.documentElement.getAttribute("dir"))?r+(6300-700*h)*a:d)+700*a,u=o+u*p*a;c.view.renderable=0<=h&&d<n&&0<=u+p*a&&u<i}this._gridCanvas.render(t),this._gridCanvas.animationFrameRequestID=0,this._setGridCanvasDirty()},M.prototype._setGridCanvasDirty=function(){this._gridCanvas&&0==this._gridCanvas.animationFrameRequestID&&(this._gridCanvas.animationFrameRequestID=requestAnimationFrame(this._renderGridCanvasBound))},M.prototype._updateTexture=function(t){"function"==typeof this._gridCanvas.updateTexture&&this._gridCanvas.updateTexture(t)},M.prototype._resizeGridCanvas=function(t,e){this._gridCanvas.resize(t,e),this._setGridCanvasDirty()},M.prototype._viewportToStage=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=this._gridCanvas.view.getBoundingClientRect(),i=this._gridCanvas.resolution;return{x:(t-n.left)*(this._gridCanvas.width/n.width/i),y:(e-n.top)*(this._gridCanvas.height/n.height/i)}},M.prototype._getGridCarAt=function(){var t=this._gridCanvas.stage,e=t.scale.x,n=((0<arguments.length&&void 0!==arguments[0]?arguments[0]:0)-t.x)/e,t=((1<arguments.length&&void 0!==arguments[1]?arguments[1]:0)-t.y)/e,e=this._gridCars.length,n=(g="rtl"==document.documentElement.getAttribute("dir"))?7e3-n:n,n=Math.min(Math.max(Math.floor(n/700),0),9),t=Math.min(Math.max(Math.floor(t/p),0),Math.ceil(e/10)-1);return this._gridCars[Math.min(10*t+n,e-1)]},M.prototype._carAutoZoom=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this._maxGridZoom,n=this._gridCars.indexOf(t),i=Math.floor(n/10),n=n%10,n=(n=(g="rtl"==document.documentElement.getAttribute("dir"))?9-n:n,this._gridCanvas.width/this._gridCanvas.resolution/2-700*(.5+n)*e),i=this._gridCanvas.height/this._gridCanvas.resolution/2-(i+.5)*p*e,r=(this._transformOriginX=n,this._transformOriginY=i,Math.abs(e-this._gridZoom)),o=Math.sqrt(Math.pow(n-this._gridX,2)+Math.pow(i-this._gridY,2)),r=Math.max(1.5*r,o/7e3*this._gridZoom*4);this._zoomTransition=this._translateTransition=TweenLite.to(this,r,{_gridX:n,_gridY:i,_gridZoom:e,ease:"easeOutPower2"}),this._focusGridCar(t)},M.prototype._focusGridCar=function(t){if(!t.focused){this.triggerMethod("click:zoom",$(t.element).find(".basic-button").eq(0).data("label"));var e=!0,n=!1,i=void 0;try{for(var r,o=this._gridCars[Symbol.iterator]();!(e=(r=o.next()).done);e=!0){var a=r.value;a.focused=a==t}}catch(t){n=!0,i=t}finally{try{!e&&o.return&&o.return()}finally{if(n)throw i}}}},M.prototype._findGridCarByView=function(e){return this._gridCars.find(function(t){return t.view==e})},M.prototype._destroyGridCanvas=function(){var n=this,t=!(P=k=null),e=!1,i=void 0;try{for(var r,o=Object.values(f.default.utils.TextureCache)[Symbol.iterator]();!(t=(r=o.next()).done);t=!0){var a=r.value;delete f.default.utils.TextureCache[a]}}catch(t){e=!0,i=t}finally{try{!t&&o.return&&o.return()}finally{if(e)throw i}}var s=!0,e=!1,i=void 0;try{for(var l,c=Object.values(f.default.utils.BaseTextureCache)[Symbol.iterator]();!(s=(l=c.next()).done);s=!0){var u=l.value;delete f.default.utils.BaseTextureCache[u]}}catch(t){e=!0,i=t}finally{try{!s&&c.return&&c.return()}finally{if(e)throw i}}if(this._gridCanvas){this._zoomTransition&&this._zoomTransition.kill(),this._translateTransition&&this._translateTransition.kill(),this.$el.find("img").each(function(t,e){e.removeEventListener("load",n._setGridCanvasDirtyBound)}),cancelAnimationFrame(this._gridCanvas.animationFrameRequestID),$(this._gridCanvas.view).unbind("wheel",this._onWheel).unbind("mousedown touchstart",this._onPointerDown).before(this.$el).remove();try{this._gridCanvas.getExtension("WEBGL_lose_context").loseContext()}catch(t){}this._gridCanvas.destroy(),this._gridCanvas=null,this._gridCars=null,$(window).off("unload",this._onUnload),$(window).off("mousemove touchmove",this._onPointerMove),$(window).off("mouseup touchend touchcancel",this._onPointerUp)}},M.prototype.carAutoZoom=function(){var t,e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],n=this._getGridCarAt(window.innerWidth/2,.4*window.innerHeight);n&&(t=C(.4,this._minGridZoom,this._maxGridZoom),this._carAutoZoom(n,e?t:this._maxGridZoom))},M.prototype.resetZoom=function(){this._gridZoom=0},M.prototype.onUnload=function(){this._destroyGridCanvas()},n(M,[{key:"className",get:function(){return"grid-inner"}},{key:"tagName",get:function(){return"ul"}},{key:"template",get:function(){return B.default}},{key:"_gridX",set:function(t){var e=this._gridCanvas.stage,n=e.scale.x,i=S(n,this._minGridZoom,this._maxGridZoom),r=this._gridCanvas.width/this._gridCanvas.resolution/2,o=e.children.length,o=700*(10<=o?10:o),i=(o-700)/2*i,r=r-o*n/2;e.x=Math.max(Math.min(t,r+i),r-i),this._setGridCanvasDirty()},get:function(){return this._gridCanvas.stage.x}},{key:"_gridY",set:function(t){var e=this._gridCanvas.stage,n=e.scale.x,i=S(n,this._minGridZoom,this._maxGridZoom),r=this._gridCanvas.height/this._gridCanvas.resolution/2,o=e.children.length,o=Math.ceil(o/10)*p,i=(o-p)/2*i,r=r-o*n/2;e.y=Math.max(Math.min(t,r+i),r-i),this._setGridCanvasDirty()},get:function(){return this._gridCanvas.stage.y}},{key:"_gridZoom",set:function(t){if(this._gridCanvas){t=Math.min(Math.max(t,this._minGridZoom||0),this._maxGridZoom);var e=this._gridCanvas.stage,n=this._transformOriginX||this._gridCanvas.width/this._gridCanvas.resolution/2,i=this._transformOriginY||this._gridCanvas.height/this._gridCanvas.resolution/2,r=e.scale.x,o=(e.scale.set(t,t),S(t,this._minGridZoom,this._maxGridZoom)),a=(n-e.x)/r,e=(i-e.y)/r,s=(this._gridX=n-a*t,this._gridY=i-e*t,!0),r=!1,n=void 0;try{for(var l,c=this._gridCars[Symbol.iterator]();!(s=(l=c.next()).done);s=!0)l.value.zoom=o}catch(t){r=!0,n=t}finally{try{!s&&c.return&&c.return()}finally{if(r)throw n}}this._setGridCanvasDirty(),this.triggerMethod("nav:set:sticky",t>this._minGridZoom)}},get:function(){return this._gridCanvas?this._gridCanvas.stage.scale.x:NaN}}]);var N,y=M;function M(){l(this,M);var t=c(this,N.apply(this,arguments));return t._maxGridZoom=.85,t}var U,z,V,G,H,W,P=null,k=null,q=[{x:-70,y:function(t){return.58*p-t.height/2},fromX:30,fromY:function(t){return.58*p-t.height/2}},{x:624,y:function(t){return.58*p-t.height/2},fromX:524,fromY:function(t){return.58*p-t.height/2}}],X=(U=T.includes(v)?{font:w(13,"normal"),fill:"white",align:"center",lineHeight:18,wordWrap:!0,wordWrapWidth:200}:{font:w(18,"normal"),fill:"white",align:"center",lineHeight:19,wordWrap:!0,wordWrapWidth:200},z=T.includes(v)?{font:w(16,"bold"),fill:t,align:"center",lineHeight:18,wordWrap:!0,wordWrapWidth:700}:{font:w(18,"bold"),fill:t,align:"center",lineHeight:18,wordWrap:!0,wordWrapWidth:700},V=T.includes(v)?{font:h(32,200),fill:t,align:"center",lineHeight:56,wordWrap:!0,wordWrapWidth:700}:{font:h(40,300),fill:t,align:"center",lineHeight:56,wordWrap:!0,wordWrapWidth:700},{font:w(115,"bold"),fill:"white"}),Y=(G=T.includes(v)?{font:h(32,200),fill:"white",lineHeight:46,wordWrap:!0,wordWrapWidth:230}:{font:h(40,200),fill:"white",lineHeight:46,wordWrap:!0,wordWrapWidth:230},H=T.includes(v)?{font:h(14,200),fill:t,lineHeight:21,wordWrap:!0,wordWrapWidth:230}:{font:h(15,300),fill:t,lineHeight:21,wordWrap:!0,wordWrapWidth:230},W=T.includes(v)?{font:h(80,500),fill:"#da291c",lineHeight:80,wordWrap:!0,wordWrapWidth:700,align:"center",breakWords:!0}:{font:h(75,600),fill:"#da291c",lineHeight:75,wordWrap:!0,wordWrapWidth:700,align:"center",breakWords:!0},A.prototype._updateVisibility=function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],e=!this._filtered&&this._zoom<.3||this._focused&&.3<=this._zoom;e!=this._imageVisible&&(this._imageVisible=e,TweenLite.to(this._view,t?.5:0,{alpha:e?1:.3,onUpdate:this._updateCallback}))},A.prototype._udpateContentVisibility=function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],e=this._focused&&.3<=this._zoom;if(e!=this._infosVisible){this._infosVisible=e;var n=this._infosVisible?1:0;this._name&&TweenLite.to(this._brand?[this._brand,this._name]:this._name,t?.5:0,{alpha:n,onUpdate:this._updateCallback});for(var i=0,r=this._yearParts.length;i<r;i++){var o=this._yearPartsCoords[i],a=e?o.x:o.fromX,o=e?o.y:o.fromY;TweenLite.to(this._yearParts[i],t?.7:0,{alpha:n,x:a,y:o,ease:"easeOutPower4",onUpdate:this._updateCallback})}}var s=this._focused&&.7<this._zoom;if(s!=this._detailsVisible){for(var l=(this._detailsVisible=s)?1:0,c=s?.5:0,u=0,h=this._panels.length;u<h;u++){var d=this._panels[u],p=this._panelsCoords[u],f=((g="rtl"==document.documentElement.getAttribute("dir"))&&(p=this._panelsCoords[1-u]),s?p.x:p.fromX),p=s?p.y(d):p.fromY(d);TweenLite.to(d,t?.9:0,{alpha:l,x:f,y:p,delay:c,overwrite:"all",ease:"easeOutPower4",onUpdate:this._updateCallback})}this._button&&TweenLite.to(this._button,t?.9:0,{alpha:l,delay:c,overwrite:"all",ease:"easeOutPower4",onUpdate:this._updateCallback})}var m=this._hovered&&this._zoom<.3;m!=this._titleVisible&&(this._titleVisible=m,m=this._titleVisible?1:0,this._title)&&TweenLite.to(this._title,t?.5:0,{alpha:m,onUpdate:this._updateCallback})},A.prototype._addButton=function(){var t=new f.default.Graphics,e=$(this._element).find(".button").get(0).textContent.trim(),e=k.getSprite(e,U),n=(e.x=50,e.y=11.7,t.addChild(e),e.width+100),e=e.height+25;t.beginFill(E("#da291c")),t.arc(e/2,e/2,e/2,.5*Math.PI,1.5*Math.PI),t.arc(n-e/2,e/2,e/2,1.5*Math.PI,.5*Math.PI),t.endFill(),t.x=(700-n)/2,t.y=(p-d)/2+350,this._view.addChild(t),this._button=t},A.prototype._addImage=function(){var t=$(this._element).find("img").get(0),e=new f.default.BaseTexture(P||document.createElement("canvas")),e=(e.mipmap=!0,new f.default.Texture(e)),e=new f.default.Sprite(e);e.width=540,e.height=d,e.x=80,e.y=(p-d)/2,this._image=e,this._view.addChild(e),t.complete?this._updateImage(t):t.addEventListener("load",this._viewImageLoadedBound)},A.prototype._updateImage=function(t){var e,n,i,r,o,a;!t.complete||t.naturalWidth<=0||t.naturalHeight<=0||(n=(e=this._image.texture).baseTexture,r=Math.min(m,t.naturalWidth),i=Math.min(m,t.naturalHeight),o=t.naturalWidth/t.naturalHeight,a=r/i,i=Math.min(o,a)*i,r=r/Math.max(o,a),Date.now(),a=(o=n.source).getContext("2d"),o.width!=m||o.height!=m?o.width=o.height=m:a.clearRect(0,0,o.width,o.height),n.realWidth=n.source.width,n.realHeight=n.source.height,n.width=n.realWidth/n.resolution,n.height=n.realHeight/n.resolution,n.isPowerOfTwo=f.default.utils.isPowerOfTwo(n.realWidth,n.realHeight),a.drawImage(t,0,0,i,r),this._updateTextureCallback(n),e.frame=new f.default.Rectangle(0,0,i,r),this._image._onTextureUpdate(),this._updateCallback())},A.prototype._viewImageLoaded=function(t){t=t.currentTarget;t.removeEventListener("load",this._viewImageLoadedBound),this._updateImage(t)},A.prototype._addHoverTitle=function(){var t=this._model.attributes.title.toUpperCase(),t=k.getSprite(t,W);t.x=(700-t.width)/2,t.y=p-70,this._view.addChild(t),this._title=t},A.prototype._addHeader=function(){var t=$(this._element).find("h2 span"),t=(1<=t.length&&(t=t.get(0).textContent.trim().toUpperCase(),(t=k.getSprite(t,z)).x=(700-t.width)/2,this._view.addChild(t),this._brand=t),this._model.attributes.title.toUpperCase()),t=k.getSprite(t,V);t.x=(700-t.width)/2,t.y=this._brand?this._brand.y+this._brand.height+10:28,this._view.addChild(t),this._name=t},A.prototype._getYearPart=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,e=this._model.attributes,e=k.getSprite(String(e.year).substr(2*t,2),X);return e.tint=E("#57718a"),e.x=this._yearPartsCoords[t].x,e.y=this._yearPartsCoords[t].y,e},A.prototype._getDatasPanel=function(t){var e,n=new f.default.Container,i=0;for(e in t){var r=t[e];if("string"!=typeof r&&!(r instanceof String)){var o,a=[];for(o in r)a.push(r[o]);r=a.join(" ")}var s=k.getSprite(r,G),s=(s.tint=E("#57718a"),s.y=i,g="rtl"==document.documentElement.getAttribute("dir"),s.x=g?171.5-s.width:0,n.addChild(s),i+=s.height,k.getSprite(e.toUpperCase(),H));s.y=i,s.x=g?171.5-s.width:0,n.addChild(s),i+=s.height+20}return n},A.prototype._createView=function(){var t,e=new f.default.Container;e.interactiveChildren=!1,e.buttonMode=!0,e.interactive=!0,e.hitArea=new f.default.Rectangle(0,0,700,p),this._view=e,this._addImage(),this._addHoverTitle(),this._addHeader(),!0!==this._model.attributes.event&&(t=this._getYearPart(0),this._yearParts.push(t),e.addChildAt(t,0),t=this._getYearPart(1),this._yearParts.push(t),e.addChild(t)),this._model.attributes.tech_home&&(t=this._getDatasPanel(this._model.attributes.tech_home.left),e.addChild(t),this._panels.push(t),t=this._getDatasPanel(this._model.attributes.tech_home.right),e.addChild(t),this._panels.push(t)),this._addButton(),this._udpateContentVisibility(!1),this._updateVisibility(!1),this._updateCallback()},n(A,[{key:"element",get:function(){return this._element}},{key:"model",get:function(){return this._model}},{key:"view",get:function(){return this._view}},{key:"focused",set:function(t){this._focused=t,this._udpateContentVisibility(),this._updateVisibility()},get:function(){return this._focused}},{key:"hovered",set:function(t){this._hovered=t,this._udpateContentVisibility(),this._updateVisibility()},get:function(){return this._hovered}},{key:"filtered",set:function(t){this._filtered!=t&&(this._filtered=t,this._updateVisibility())},get:function(){return this._filtered}},{key:"zoom",set:function(t){var t=(1-(this._zoom=t))*(1.1-1)+1,e=540*t,t=d*t,n=this._image,e=(n.width=e,n.height=t,Math.round((700-e)/2)),t=Math.round((p-t)/2);n.position.set(e,t),this._udpateContentVisibility(),this._updateVisibility()}}]),A);function A(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:function(){},i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:function(){},t=(l(this,A),this._model=t,this._element=e,this._updateCallback=n,this._updateTextureCallback=i,this._viewImageLoadedBound=this._viewImageLoaded.bind(this),this._view=null,this._focused=!1,this._hovered=!1,this._filtered=!1,this._zoom=0,this._detailsVisible=!0,this._infosVisible=!0,this._imageVisible=!0,this._titleVisible=!0,this._image=null,this._title=null,this._brand=null,this._name=null,this._button=null,this._yearParts=[],this._panels=[],this._model.get("yearCoords")),e=t.date_1,n=t.date_2,i=(p-d)/2,t=80+540*e.x,e=i+d*e.y,r=80+540*n.x,i=i+d*n.y;this._yearPartsCoords=[{x:t-101.2,y:e-116.15,fromX:t,fromY:e},{x:25.3+r,y:i,fromX:r-101.2,fromY:i-1.1*115}],this._panelsCoords=q,this._createView()}O.prototype._createAtlas=function(){var t=new K(2048/this._resolution,2048/this._resolution,this._resolution);return t.mipmap=!0,t},O.prototype.getTextTexture=function(t,e){var n,i,r,o=[t].concat(Object.keys(e).sort().map(function(t){return t+":"+e[t]})).join("\0"),a=f.default.utils.BaseTextureCache[o];return a||(this._renderer.prepare(t,e),n=(t=this._renderer.getBoundingBox()).width,t=t.height,r=(i=this._getAvailableAtlas(n,t)).add(n,t),a=new f.default.Texture(i,new f.default.Rectangle(r.x,r.y,n,t)),this._renderer.render(a),f.default.utils.BaseTextureCache[o]=a),a},O.prototype.getSprite=function(t,e){return new f.default.Sprite(this.getTextTexture(t,e))},O.prototype._getAvailableAtlas=function(t,e){if(2048<t||2048<e)throw new Error("Can't fit "+t+"×"+e+" in 2048×2048");var n=!0,i=!1,r=void 0;try{for(var o,a=this._atlases[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;if(s.contains(t,e))return s}}catch(t){i=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}i=this._createAtlas();return this._atlases.push(i),i};var Z=O;function O(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:f.default.RESOLUTION;l(this,O),this._renderer=new tt,this._resolution=t,this._atlases=[this._createAtlas()]}u(R,J=f.default.BaseTexture),R.prototype.contains=function(t,e){return this._pack.contains(t*this.resolution,e*this.resolution)},R.prototype.add=function(t,e){t=this._pack.add(t*this.resolution,e*this.resolution),e=t.x,t=t.y;this._pack._availableAreas;return{x:e/this.resolution,y:t/this.resolution}},n(R,[{key:"context",get:function(){return this._context}}]);var J,K=R;function R(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:f.default.RESOLUTION,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:document.createElement("canvas"),r=(l(this,R),i._pixiId||(i._pixiId="canvas_"+f.default.utils.uid()),i.width=t*n,i.height=e*n,c(this,J.call(this,i,f.default.SCALE_MODES.DEFAULT,n)));return r._context=i.getContext("2d"),r._pack=new Q(t*n,e*n),f.default.utils.BaseTextureCache[i._pixiId]=r}L.prototype.contains=function(t,e){if(t<=0||e<=0)return!0;for(var n=0;n<this._availableAreas.length;n+=4)if(t<=this._availableAreas[n+2]&&e<=this._availableAreas[n+3])return!0;return!1},L.prototype.add=function(t,e){if(t<=0||e<=0)return{x:0,y:0};for(var n,i,r,o,a,s=0;s<this._availableAreas.length;s+=4)if(!(t>this._availableAreas[s+2]||e>this._availableAreas[s+3]))return n=this._availableAreas[s],i=this._availableAreas[s+1],r=this._availableAreas[s+2],o=this._availableAreas[s+3],this._availableAreas.splice(s,4),0<(a=r-t)&&0<e&&this._availableAreas.push(n+t,i,a,e),a=o-e,0<r&&0<a&&this._availableAreas.push(n,i+e,r,a),this._usedAreas.push(n,i,t,e),{x:n,y:i};return null};var Q=L;function L(t,e){l(this,L),this.width=t,this.height=e,this._availableAreas=[0,0,t,e],this._usedAreas=[]}u(j,D=f.default.Text),j.prototype.getBoundingBox=function(){return{width:this._textWidth,height:this._textHeight}},j.prototype.prepare=function(t,e){this._fillTextBuffer.length=this._strokeTextBuffer.length=0,this._realContext.shadowColor="transparent",this._realContext.shadowBlur=0,this._realContext.fillStyle="black",this._realContext.lineWidth=1,this.context=this._realContext,this.text=t,this.style=e,this.updateText()},j.prototype.render=function(t){if(!t||!t.baseTexture||!t.baseTexture.source||"function"!=typeof t.baseTexture.source.getContext)throw new Error("Invalid texture. Require a Texture with a canvas 2D BaseTexture");var e=t.frame,n=e.x,i=e.y,r=t.baseTexture.resolution,o=void 0;try{o=t.baseTexture.source.getContext("2d")}catch(t){throw new Error("Unable to acces to BaseTexture canvas 2D")}o.save(),o.scale(r,r),o.font=this._realContext.font,o.strokeStyle=this._realContext.strokeStyle,o.lineWidth=this._realContext.lineWidth,o.textBaseline=this._realContext.textBaseline,o.lineJoin=this._realContext.lineJoin,o.miterLimit=this._realContext.miterLimit,o.shadowColor=this._realContext.shadowColor,o.shadowBlur=this._realContext.shadowBlur,o.fillStyle=this._realContext.fillStyle;for(var a=0;a<this._strokeTextBuffer.length;a+=3){var s=this._strokeTextBuffer[a],l=this._strokeTextBuffer[a+1]+n,c=this._strokeTextBuffer[a+2]+i;o.strokeText(s,l,c)}for(var u=0;u<this._fillTextBuffer.length;u+=3){var h=this._fillTextBuffer[u],d=this._fillTextBuffer[u+1]+n,p=this._fillTextBuffer[u+2]+i;o.fillText(h,d,p)}r=this._style;return t.crop.width=e.width=this._textWidth,t.crop.height=e.height=this._textHeight,t.trim||(t.trim=new f.default.Rectangle),t.trim.x=0,t.trim.y=-r.padding,t.trim.width=e.width,t.trim.height=e.height-2*r.padding,o.restore(),this._textWidth=0,this._textHeight=0,t},j.prototype.drawLetterSpacing=function(t,e,n,i){this.context=this._fakeContext,D.prototype.drawLetterSpacing.call(this,t,e,n,i),this.context=this._realContext},j.prototype.updateTexture=function(){this.dirty=!1},j.prototype.destroy=function(){},n(j,[{key:"width",set:function(t){},get:function(){return this._textWidth/this.resolution}},{key:"height",set:function(t){},get:function(){return this._textHeight/this.resolution}}]);var D,tt=j;function j(){l(this,j);var i=c(this,D.call(this," "));return i._texture=null,i._textWidth=1,i._textHeight=1,i._strokeTextBuffer=[],i._fillTextBuffer=[],i.canvas=Object.defineProperties({},{width:{set:function(t){i._textWidth=t/i.resolution},get:function(){return i._textWidth}},height:{set:function(t){i._textHeight=t/i.resolution},get:function(){return i._textHeight}}}),i._realContext=i.context,i._fakeContext=Object.defineProperties({},{strokeText:{value:function(t,e,n){i._strokeTextBuffer.push(t,e,n)}},fillText:{value:function(t,e,n){i._fillTextBuffer.push(t,e,n)}},measureText:{value:function(t){i._context.measureText(t)}}}),i}e.default=y},{"../../../util/Env":643,"../../../util/getPointerEventsDistance":645,"./template.hbs":609,backbone:44,"backbone.marionette":42,"pixi.js":526,underscore:576}],609:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r,o,a){var s,l,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,h="function",d=t.escapeExpression,p=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'  <li class="grid-item" data-year="'+d(typeof(l=null!=(l=p(n,"year")||(null!=e?p(e,"year"):e))?l:u)==h?l.call(c,{name:"year",hash:{},data:r,blockParams:o,loc:{start:{line:2,column:35},end:{line:2,column:43}}}):l)+'" data-thematic="'+d(typeof(l=null!=(l=p(n,"term_id")||(null!=e?p(e,"term_id"):e))?l:u)==h?l.call(c,{name:"term_id",hash:{},data:r,blockParams:o,loc:{start:{line:2,column:60},end:{line:2,column:71}}}):l)+'">\r\n    <span class="hover-label">'+d(typeof(l=null!=(l=p(n,"name")||(null!=e?p(e,"name"):e))?l:u)==h?l.call(c,{name:"name",hash:{},data:r,blockParams:o,loc:{start:{line:3,column:30},end:{line:3,column:38}}}):l)+"</span>\r\n    <h2>"+(null!=(s=p(n,"if").call(c,null!=e?p(e,"special"):e,{name:"if",hash:{},fn:t.noop,inverse:t.program(2,r,0,o,a),data:r,blockParams:o,loc:{start:{line:4,column:8},end:{line:4,column:51}}}))?s:"")+d(typeof(l=null!=(l=p(n,"title")||(null!=e?p(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,blockParams:o,loc:{start:{line:4,column:51},end:{line:4,column:60}}}):l)+'</h2>\r\n    <p class="year hide-for-small" style="color: #57718A">\r\n      <span style="top: '+d((a[1]&&p(a[1],"toPercent")||u).call(c,null!=(s=null!=(s=null!=(s=null!=e?p(e,"viewer_360"):e)?p(s,"dat_coord"):s)?p(s,"date_1"):s)?p(s,"y"):s,{name:"../toPercent",hash:{},data:r,blockParams:o,loc:{start:{line:6,column:24},end:{line:6,column:70}}}))+"; left: "+d((a[1]&&p(a[1],"toPercent")||u).call(c,null!=(s=null!=(s=null!=(s=null!=e?p(e,"viewer_360"):e)?p(s,"dat_coord"):s)?p(s,"date_1"):s)?p(s,"x"):s,{name:"../toPercent",hash:{},data:r,blockParams:o,loc:{start:{line:6,column:78},end:{line:6,column:124}}}))+'">'+d((a[1]&&p(a[1],"yearCentury")||u).call(c,null!=e?p(e,"year"):e,{name:"../yearCentury",hash:{},data:r,blockParams:o,loc:{start:{line:6,column:126},end:{line:6,column:149}}}))+'</span>\r\n      <span style="top: '+d((a[1]&&p(a[1],"toPercent")||u).call(c,null!=(s=null!=(s=null!=(s=null!=e?p(e,"viewer_360"):e)?p(s,"dat_coord"):s)?p(s,"date_2"):s)?p(s,"y"):s,{name:"../toPercent",hash:{},data:r,blockParams:o,loc:{start:{line:7,column:24},end:{line:7,column:70}}}))+"; left: "+d((a[1]&&p(a[1],"toPercent")||u).call(c,null!=(s=null!=(s=null!=(s=null!=e?p(e,"viewer_360"):e)?p(s,"dat_coord"):s)?p(s,"date_2"):s)?p(s,"x"):s,{name:"../toPercent",hash:{},data:r,blockParams:o,loc:{start:{line:7,column:78},end:{line:7,column:124}}}))+'">'+d((a[1]&&p(a[1],"yearDecade")||u).call(c,null!=e?p(e,"year"):e,{name:"../yearDecade",hash:{},data:r,blockParams:o,loc:{start:{line:7,column:126},end:{line:7,column:148}}}))+"</span>\r\n    </p>\r\n"+(null!=(s=p(n,"if").call(c,null!=e?p(e,"special"):e,{name:"if",hash:{},fn:t.program(4,r,0,o,a),inverse:t.program(7,r,0,o,a),data:r,blockParams:o,loc:{start:{line:9,column:4},end:{line:79,column:11}}}))?s:"")+"  </li>\r\n"},2:function(t,e,n,i,r){return"<span>Citroën</span> "},4:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u="function",h=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'      <a href="#" data-exec="overlay:open:carquote" data-category="Popin" data-text="'+h(typeof(s=null!=(s=d(n,"text_popup")||(null!=e?d(e,"text_popup"):e))?s:c)==u?s.call(l,{name:"text_popup",hash:{},data:r,loc:{start:{line:11,column:85},end:{line:11,column:99}}}):s)+'" data-action="Redirection::Showroom" data-title="'+h(typeof(s=null!=(s=d(n,"title")||(null!=e?d(e,"title"):e))?s:c)==u?s.call(l,{name:"title",hash:{},data:r,loc:{start:{line:11,column:149},end:{line:11,column:158}}}):s)+'" data-color="#57718A" data-label="'+h(typeof(s=null!=(s=d(n,"title")||(null!=e?d(e,"title"):e))?s:c)==u?s.call(l,{name:"title",hash:{},data:r,loc:{start:{line:11,column:193},end:{line:11,column:202}}}):s)+'">\r\n        <img src="'+h((a[1]&&d(a[1],"assetsUrl")||c).call(l,null!=e?d(e,"img"):e,"auto-home",{name:"../assetsUrl",hash:{},data:r,loc:{start:{line:12,column:18},end:{line:12,column:50}}}))+'"'+(null!=(o=d(n,"if").call(l,null!=a[1]?d(a[1],"assetsCrossOrigin"):a[1],{name:"if",hash:{},fn:t.program(5,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:12,column:51},end:{line:12,column:125}}}))?o:"")+' alt="'+h(typeof(s=null!=(s=d(n,"title")||(null!=e?d(e,"title"):e))?s:c)==u?s.call(l,{name:"title",hash:{},data:r,loc:{start:{line:12,column:131},end:{line:12,column:140}}}):s)+'">\r\n      </a>\r\n      <a href="#" class="button basic-button hide-for-small" style="background: #DA291C" data-exec="overlay:open:carquote" data-text="'+h(typeof(s=null!=(s=d(n,"text_popup")||(null!=e?d(e,"text_popup"):e))?s:c)==u?s.call(l,{name:"text_popup",hash:{},data:r,loc:{start:{line:14,column:134},end:{line:14,column:148}}}):s)+'" data-action="Redirection::Showroom" data-category="Popin" data-title="'+h(typeof(s=null!=(s=d(n,"title")||(null!=e?d(e,"title"):e))?s:c)==u?s.call(l,{name:"title",hash:{},data:r,loc:{start:{line:14,column:220},end:{line:14,column:229}}}):s)+'" data-color="#57718A" data-label="'+h(typeof(s=null!=(s=d(n,"title")||(null!=e?d(e,"title"):e))?s:c)==u?s.call(l,{name:"title",hash:{},data:r,loc:{start:{line:14,column:264},end:{line:14,column:273}}}):s)+'">'+h(t.lambda(null!=(o=null!=a[1]?d(a[1],"globalTexts"):a[1])?d(o,"text_6"):o,e))+"</a>\r\n"},5:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' crossorigin="'+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"assetsCrossOrigin"):a[1],e))+'"'},7:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=s(n,"if").call(null!=e?e:t.nullContext||{},null!=e?s(e,"event"):e,{name:"if",hash:{},fn:t.program(8,r,0,o,a),inverse:t.program(15,r,0,o,a),data:r,blockParams:o,loc:{start:{line:15,column:4},end:{line:79,column:4}}}))?n:""},8:function(t,e,n,i,r,o,a){var s,l,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,h="function",d=t.escapeExpression,p=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <a href="'+d(typeof(l=null!=(l=p(n,"slug")||(null!=e?p(e,"slug"):e))?l:u)==h?l.call(c,{name:"slug",hash:{},data:r,blockParams:o,loc:{start:{line:16,column:17},end:{line:16,column:25}}}):l)+'" data-category="Content" data-action="Redirection::Internal" data-label="'+d(typeof(l=null!=(l=p(n,"title")||(null!=e?p(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,blockParams:o,loc:{start:{line:16,column:99},end:{line:16,column:108}}}):l)+'">\r\n            <img src="'+d((a[1]&&p(a[1],"assetsUrl")||u).call(c,null!=e?p(e,"img"):e,"auto-home",{name:"../assetsUrl",hash:{},data:r,blockParams:o,loc:{start:{line:17,column:22},end:{line:17,column:54}}}))+'"'+(null!=(s=p(n,"if").call(c,null!=a[1]?p(a[1],"assetsCrossOrigin"):a[1],{name:"if",hash:{},fn:t.program(5,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:17,column:55},end:{line:17,column:129}}}))?s:"")+' alt="'+d(typeof(l=null!=(l=p(n,"title")||(null!=e?p(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,blockParams:o,loc:{start:{line:17,column:135},end:{line:17,column:144}}}):l)+'">\r\n        </a>\r\n        <div class="car-details hide-for-small">\r\n            <div class="left">\r\n'+(null!=(s=p(n,"each").call(c,null!=(s=null!=e?p(e,"tech_home"):e)?p(s,"left"):s,{name:"each",hash:{},fn:t.program(9,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:21,column:16},end:{line:31,column:25}}}))?s:"")+'            </div>\r\n            <div class="right">\r\n'+(null!=(s=p(n,"each").call(c,null!=(s=null!=e?p(e,"tech_home"):e)?p(s,"right"):s,{name:"each",hash:{},fn:t.program(9,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:34,column:16},end:{line:44,column:25}}}))?s:"")+'            </div>\r\n        </div>\r\n        <a href="'+d(typeof(l=null!=(l=p(n,"slug")||(null!=e?p(e,"slug"):e))?l:u)==h?l.call(c,{name:"slug",hash:{},data:r,blockParams:o,loc:{start:{line:47,column:17},end:{line:47,column:25}}}):l)+'" class="button basic-button hide-for-small" style="background: #DA291C" data-category="Content" data-action="Redirection::Internal" data-label="'+d(typeof(l=null!=(l=p(n,"title")||(null!=e?p(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,blockParams:o,loc:{start:{line:47,column:170},end:{line:47,column:179}}}):l)+'">'+d(t.lambda(null!=(s=null!=a[1]?p(a[1],"globalTexts"):a[1])?p(s,"text_6"):s,e))+"</a>\r\n"},9:function(t,e,n,i,r,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <p><span class="value" style="color: #57718A">\r\n'+(null!=(n=a(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=o[0][0])?a(n,"length"):n,{name:"if",hash:{},fn:t.program(10,r,0,o),inverse:t.program(12,r,0,o),data:r,blockParams:o,loc:{start:{line:23,column:24},end:{line:29,column:31}}}))?n:"")+"                    </span>"+t.escapeExpression(t.lambda(o[0][1],e))+"</p>\r\n"},10:function(t,e,n,i,r,o){return"                            "+(null!=(t=t.lambda(o[1][0],e))?t:"")+"\r\n"},12:function(t,e,n,i,r,o){return null!=(n=(t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]})(n,"each").call(null!=e?e:t.nullContext||{},o[1][0],{name:"each",hash:{},fn:t.program(13,r,0,o),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:26,column:28},end:{line:28,column:37}}}))?n:""},13:function(t,e,n,i,r){return"                                "+(null!=(t=t.lambda(e,e))?t:"")+"\r\n"},15:function(t,e,n,i,r,o,a){var s,l,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,h="function",d=t.escapeExpression,p=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'      <a href="'+d(typeof(l=null!=(l=p(n,"slug")||(null!=e?p(e,"slug"):e))?l:u)==h?l.call(c,{name:"slug",hash:{},data:r,blockParams:o,loc:{start:{line:49,column:15},end:{line:49,column:23}}}):l)+'" data-category="Popin" data-action="Redirection::Showroom" data-label="'+d(typeof(l=null!=(l=p(n,"title")||(null!=e?p(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,blockParams:o,loc:{start:{line:49,column:95},end:{line:49,column:104}}}):l)+'"><img src="'+d((a[1]&&p(a[1],"assetsUrl")||u).call(c,null!=(s=null!=(s=null!=e?p(e,"viewer_360"):e)?p(s,"img_360"):s)?p(s,"0"):s,"auto-home",{name:"../assetsUrl",hash:{},data:r,blockParams:o,loc:{start:{line:49,column:116},end:{line:49,column:167}}}))+'"'+(null!=(s=p(n,"if").call(c,null!=a[1]?p(a[1],"assetsCrossOrigin"):a[1],{name:"if",hash:{},fn:t.program(5,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:49,column:168},end:{line:49,column:242}}}))?s:"")+' alt="'+d(typeof(l=null!=(l=p(n,"title")||(null!=e?p(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,blockParams:o,loc:{start:{line:49,column:248},end:{line:49,column:257}}}):l)+'"></a>\r\n      <div class="car-details hide-for-small">\r\n        <div class="left">\r\n'+(null!=(s=p(n,"each").call(c,null!=(s=null!=e?p(e,"tech_home"):e)?p(s,"left"):s,{name:"each",hash:{},fn:t.program(16,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:52,column:10},end:{line:62,column:19}}}))?s:"")+'        </div>\r\n        <div class="right">\r\n'+(null!=(s=p(n,"each").call(c,null!=(s=null!=e?p(e,"tech_home"):e)?p(s,"right"):s,{name:"each",hash:{},fn:t.program(22,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:65,column:10},end:{line:75,column:19}}}))?s:"")+'        </div>\r\n      </div>\r\n      <a href="'+d(typeof(l=null!=(l=p(n,"slug")||(null!=e?p(e,"slug"):e))?l:u)==h?l.call(c,{name:"slug",hash:{},data:r,blockParams:o,loc:{start:{line:78,column:15},end:{line:78,column:23}}}):l)+'" class="button basic-button hide-for-small" style="background: #DA291C" data-category="Popin" data-action="Redirection::Showroom" data-label="'+d(typeof(l=null!=(l=p(n,"title")||(null!=e?p(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,blockParams:o,loc:{start:{line:78,column:166},end:{line:78,column:175}}}):l)+'">'+d(t.lambda(null!=(s=null!=a[1]?p(a[1],"globalTexts"):a[1])?p(s,"text_6"):s,e))+"</a>\r\n    "},16:function(t,e,n,i,r,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <p><span class="value" style="color: #57718A">\r\n'+(null!=(n=a(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=o[0][0])?a(n,"length"):n,{name:"if",hash:{},fn:t.program(17,r,0,o),inverse:t.program(19,r,0,o),data:r,blockParams:o,loc:{start:{line:54,column:14},end:{line:60,column:21}}}))?n:"")+"            </span>"+t.escapeExpression(t.lambda(o[0][1],e))+"</p>\r\n"},17:function(t,e,n,i,r,o){return"                "+(null!=(t=t.lambda(o[1][0],e))?t:"")+"\r\n"},19:function(t,e,n,i,r,o){return null!=(n=(t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]})(n,"each").call(null!=e?e:t.nullContext||{},o[1][0],{name:"each",hash:{},fn:t.program(20,r,0,o),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:57,column:16},end:{line:59,column:25}}}))?n:""},20:function(t,e,n,i,r){return"                  "+(null!=(t=t.lambda(e,e))?t:"")+"\r\n"},22:function(t,e,n,i,r,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <p><span class="value" style="color: #57718A">\r\n'+(null!=(n=a(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=o[0][0])?a(n,"length"):n,{name:"if",hash:{},fn:t.program(23,r,0,o),inverse:t.program(19,r,0,o),data:r,blockParams:o,loc:{start:{line:67,column:14},end:{line:73,column:21}}}))?n:"")+"            </span>"+t.escapeExpression(t.lambda(o[0][1],e))+"</p>\r\n"},23:function(t,e,n,i,r,o){return"                  "+(null!=(t=t.lambda(o[1][0],e))?t:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){return null!=(n=(t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]})(n,"each").call(null!=e?e:t.nullContext||{},e,{name:"each",hash:{},fn:t.program(1,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:1,column:0},end:{line:81,column:9}}}))?n:""},useData:!0,useDepths:!0,useBlockParams:!0})},{"hbsfy/runtime":413}],610:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=c(t("backbone.marionette")),a=(c(t("backbone")),c(t("underscore"))),s=c(t("./template.hbs")),l=t("./../../../util/Env.js");function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}u(d,h=o.default.ItemView),d.prototype.ui=function(){return{logo:".logo-intro",year:".year",legend:".legend",introCars:".intro-car-wrapper"}},d.prototype.serializeData=function(){return console.log(this),this.options},d.prototype.getAssets=function(){return this.$el.find("img")},d.prototype.onShow=function(){for(var t=this.getAssets(),e=0,n=t.length-1;0<=n;n--)$(t[n]).one("load",function(){++e==t.length&&$(".hider").fadeIn()});this._year=this.options.min,this._delta=this.options.max-this.options.min,this._percent=0,this.changeYear()},d.prototype.changeYear=function(){var t,e,n=this._year+Math.round(this._delta*this._percent);!this.options.offline&&n<this.options.max&&this.ui.year.html(n),n>=this.options.max&&(t=1919,this.ui.year.html(t),e=setInterval(function(){t++,this.ui.year.html(t),t==this.options.max&&(clearInterval(e),this.introEnd())}.bind(this),30))},d.prototype.setProgress=function(t){this._percent=t,this.changeYear()},d.prototype.introEnd=function(){a.default.delay(function(){$(this.ui.introCars).addClass("move"),(0,l.isSmall)()?this.$el.fadeOut(600,a.default.bind(this.destroy,this)):a.default.delay(this.launchTuto.bind(this),1200)}.bind(this),1e3)},d.prototype.launchTuto=function(){this.$el.on("click",function(){this.$el.fadeOut(600,a.default.bind(this.destroy,this))}.bind(this)),this.$el.find(">*").fadeOut(600),a.default.delay(function(){this.$el.addClass("tuto"),$(this.ui.legend).removeClass("hide").addClass("touch").animate({opacity:1},600)}.bind(this),400),a.default.delay(function(){this.$el.fadeOut(600,a.default.bind(this.destroy,this))}.bind(this),4e3)},i(d,[{key:"className",get:function(){return"intro"}},{key:"tagName",get:function(){return"section"}},{key:"template",get:function(){return s.default}}]);var h,t=d;function d(){var t=this,e=d;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=h.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"./../../../util/Env.js":643,"./template.hbs":611,backbone:44,"backbone.marionette":42,underscore:576}],611:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var o,a,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,c="function",u=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<h1 class="logo-intro">\n    <span class="sr-only">Citroën Origins</span>\n</h1>\n<p class="baseline">'+(null!=(o=typeof(a=null!=(a=t(n,"legend")||(null!=e?t(e,"legend"):e))?a:l)==c?a.call(s,{name:"legend",hash:{},data:r,loc:{start:{line:4,column:20},end:{line:4,column:32}}}):a)?o:"")+'</p>\n<div class="year-wrapper">\n    <p class="year">'+u(typeof(a=null!=(a=t(n,"min")||(null!=e?t(e,"min"):e))?a:l)==c?a.call(s,{name:"min",hash:{},data:r,loc:{start:{line:6,column:20},end:{line:6,column:27}}}):a)+'</p>\n</div>\n<div class="intro-car-wrapper">\n\t<div class="hider">\n\t    <div class="intro-car">\n\t        <img src="'+u(typeof(a=null!=(a=t(n,"assetsFolder")||(null!=e?t(e,"assetsFolder"):e))?a:l)==c?a.call(s,{name:"assetsFolder",hash:{},data:r,loc:{start:{line:11,column:19},end:{line:11,column:35}}}):a)+'/assets/img/intro/2cv.png" alt="2CV">\n\t    </div>\n\t    <div class="intro-car">\n\t        <img src="'+u(typeof(a=null!=(a=t(n,"assetsFolder")||(null!=e?t(e,"assetsFolder"):e))?a:l)==c?a.call(s,{name:"assetsFolder",hash:{},data:r,loc:{start:{line:14,column:19},end:{line:14,column:35}}}):a)+'/assets/img/intro/ami_one.png" alt="Ami-One">\n\t    </div>\n\t</div>\n</div>\n<div class="legend hide">\n    <div class="legend-anim">\n    \t<div class="circle-1 circle"></div>\n\t\t<div class="circle-2 circle"></div>\n\t\t<svg version="1.1" id="arrow-top" class="path" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink" x="0px" y="0px"\n\t\t\t viewBox="0 0 20 20" enable-background="new 0 0 20 20" xml:space="preserve">\n\t\t\t<line fill="#FFFFFF" stroke="#7D7D7D" stroke-miterlimit="10" x1="19" y1="1.5" x2="19" y2="8.1"/>\n\t\t\t<line fill="#FFFFFF" stroke="#7D7D7D" stroke-miterlimit="10" x1="19" y1="2.1" x2="13.1" y2="2.1"/>\n\t\t\t<line fill="#FFFFFF" stroke="#7D7D7D" stroke-miterlimit="10" x1="18.7" y1="2.3" x2="4.1" y2="16.8"/>\n\t\t</svg>\n\t\t<svg version="1.1" id="arrow-bottom" class="path" xmlns="https://www.w3.org/2000/svg" xmlns:xlink="https://www.w3.org/1999/xlink" x="0px" y="0px"\n\t\t\t viewBox="0 0 20 20" enable-background="new 0 0 20 20" xml:space="preserve">\n\t\t\t<line fill="#FFFFFF" stroke="#7D7D7D" stroke-miterlimit="10" x1="19" y1="1.5" x2="19" y2="8.1"/>\n\t\t\t<line fill="#FFFFFF" stroke="#7D7D7D" stroke-miterlimit="10" x1="19" y1="2.1" x2="13.1" y2="2.1"/>\n\t\t\t<line fill="#FFFFFF" stroke="#7D7D7D" stroke-miterlimit="10" x1="18.7" y1="2.3" x2="4.1" y2="16.8"/>\n\t\t</svg>\n    </div>\n    <p>'+u(typeof(a=null!=(a=t(n,"tuto")||(null!=e?t(e,"tuto"):e))?a:l)==c?a.call(s,{name:"tuto",hash:{},data:r,loc:{start:{line:35,column:7},end:{line:35,column:15}}}):a)+"</p>\n</div>\n"},useData:!0})},{"hbsfy/runtime":413}],612:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r){var o=null!=e?e:t.nullContext||{},a=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <option data-group-type="'+a(t(n,"lookup").call(o,e,1,{name:"lookup",hash:{},data:r,loc:{start:{line:11,column:41},end:{line:11,column:58}}}))+'">'+a(t(n,"lookup").call(o,e,0,{name:"lookup",hash:{},data:r,loc:{start:{line:11,column:60},end:{line:11,column:77}}}))+"</option>\n"},3:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <span class="title-traduction">'+t.escapeExpression(t.lambda(null!=(t=null!=(t=null!=(t=null!=e?o(e,"globalTexts"):e)?o(t,"map_settings_and_labels"):t)?o(t,"translations"):t)?o(t,"overlay_logo_translation"):t,e))+"</span>\n"},5:function(t,e,n,i,r){var o=t.escapeExpression,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <img src="'+o((a(n,"assetsUrl")||e&&a(e,"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"prevAnnex"):e)?a(n,"picto"):n,320,{name:"assetsUrl",hash:{},data:r,loc:{start:{line:38,column:22},end:{line:38,column:55}}}))+'" alt="'+o(t.lambda(null!=(n=null!=e?a(e,"prevAnnex"):e)?a(n,"title"):n,e))+'" class="show-for-large-up">\n'},7:function(t,e,n,i,r){var o=t.escapeExpression,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <img src="'+o((a(n,"assetsUrl")||e&&a(e,"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"nextAnnex"):e)?a(n,"picto"):n,320,{name:"assetsUrl",hash:{},data:r,loc:{start:{line:46,column:22},end:{line:46,column:55}}}))+'" alt="'+o(t.lambda(null!=(n=null!=e?a(e,"nextAnnex"):e)?a(n,"title"):n,e))+'" class="show-for-large-up">\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var o,a,s=t.lambda,l=t.escapeExpression,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,h="function",d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="map-wrapper">\n    <header>\n        <h2>'+(null!=(o=s(null!=(o=null!=(o=null!=(o=null!=e?d(e,"globalTexts"):e)?d(o,"map_settings_and_labels"):o)?d(o,"translations"):o)?d(o,"global_map"):o,e))?o:"")+'</h2>\n    </header>\n    <div class="model-filter-wrapper">\n        <a id="add-vehicle" data-category="Content" data-action="Add" data-label="'+l(s(null!=(o=null!=(o=null!=(o=null!=e?d(e,"globalTexts"):e)?d(o,"map_settings_and_labels"):o)?d(o,"translations"):o)?d(o,"global_map_add_button"):o,e))+'" data-message="add-vehicle" class="button basic-button left">'+l(s(null!=(o=null!=(o=null!=(o=null!=e?d(e,"globalTexts"):e)?d(o,"map_settings_and_labels"):o)?d(o,"translations"):o)?d(o,"global_map_add_button"):o,e))+'</a>\n        <div class="combobox">\n            <select id="model-filter" name="model-filter">\n                <option data-group-type="">'+l(s(null!=(o=null!=(o=null!=(o=null!=e?d(e,"globalTexts"):e)?d(o,"map_settings_and_labels"):o)?d(o,"translations"):o)?d(o,"model_selector"):o,e))+"</option>\n"+(null!=(o=d(n,"each").call(c,null!=e?d(e,"contributed_models"):e,{name:"each",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r,loc:{start:{line:10,column:16},end:{line:12,column:25}}}))?o:"")+'            </select>\n        </div>\n    </div>\n    <div id="map-container" class="map-container"></div>\n    <div id="map-gallery"></div>\n</div>\n<div class="cover" style="background-image: url(\''+l((d(n,"assetsUrl")||e&&d(e,"assetsUrl")||u).call(c,null!=e?d(e,"image_page_annexe"):e,"auto",{name:"assetsUrl",hash:{},data:r,loc:{start:{line:19,column:49},end:{line:19,column:87}}}))+'\');">\n    <h1><img src="'+l(typeof(a=null!=(a=d(n,"image_logotype")||(null!=e?d(e,"image_logotype"):e))?a:u)==h?a.call(c,{name:"image_logotype",hash:{},data:r,loc:{start:{line:20,column:18},end:{line:20,column:36}}}):a)+'" alt="'+l(typeof(a=null!=(a=d(n,"title")||(null!=e?d(e,"title"):e))?a:u)==h?a.call(c,{name:"title",hash:{},data:r,loc:{start:{line:20,column:43},end:{line:20,column:52}}}):a)+'" title="'+l(typeof(a=null!=(a=d(n,"title")||(null!=e?d(e,"title"):e))?a:u)==h?a.call(c,{name:"title",hash:{},data:r,loc:{start:{line:20,column:61},end:{line:20,column:70}}}):a)+'"/></h1>\n    <a class="button basic-button">'+l(s(null!=(o=null!=(o=null!=(o=null!=e?d(e,"globalTexts"):e)?d(o,"map_settings_and_labels"):o)?d(o,"translations"):o)?d(o,"overlay_button"):o,e))+"</a>\n"+(null!=(o=d(n,"if").call(c,null!=(o=null!=(o=null!=(o=null!=e?d(e,"globalTexts"):e)?d(o,"map_settings_and_labels"):o)?d(o,"translations"):o)?d(o,"overlay_logo_translation"):o,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r,loc:{start:{line:22,column:4},end:{line:24,column:11}}}))?o:"")+'</div>\n<div class="discover-another">\n    <p>'+l(s(null!=(o=null!=e?d(e,"globalTexts"):e)?d(o,"text_9"):o,e))+'</p>\n    <a href="#" id="gotop" class="button top-button disabled">\n        <span class="circle arrow-top-icon"></span>\n        <span class="label hide-for-small">'+l(s(null!=(o=null!=e?d(e,"globalTexts"):e)?d(o,"text_2"):o,e))+'</span>\n    </a>\n</div>\n<nav class="prev-next-bottom">\n    <a href="'+l(s(null!=(o=null!=e?d(e,"prevAnnex"):e)?d(o,"slug"):o,e))+'" class="button prev-bottom-button" data-category="Content" data-action="Redirection::Internal::Annex" data-label="'+l(s(null!=(o=null!=e?d(e,"nextAnnex"):e)?d(o,"title"):o,e))+'">\n        <div class="bottom-wrapper">\n            <p><span class="name">'+l(s(null!=(o=null!=e?d(e,"prevAnnex"):e)?d(o,"title"):o,e))+"</span></p>\n"+(null!=(o=d(n,"if").call(c,null!=(o=null!=e?d(e,"prevAnnex"):e)?d(o,"picto"):o,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r,loc:{start:{line:37,column:12},end:{line:39,column:19}}}))?o:"")+'        </div>\n    </a>\n    <a href="'+l(s(null!=(o=null!=e?d(e,"nextAnnex"):e)?d(o,"slug"):o,e))+'" class="button next-bottom-button" data-category="Content" data-action="Redirection::Internal::Annex" data-label="'+l(s(null!=(o=null!=e?d(e,"nextAnnex"):e)?d(o,"title"):o,e))+'">\n        <div class="bottom-wrapper">\n            <p><span class="name">'+l(s(null!=(o=null!=e?d(e,"nextAnnex"):e)?d(o,"title"):o,e))+"</p>\n"+(null!=(o=d(n,"if").call(c,null!=(o=null!=e?d(e,"nextAnnex"):e)?d(o,"picto"):o,{name:"if",hash:{},fn:t.program(7,r,0),inverse:t.noop,data:r,loc:{start:{line:45,column:12},end:{line:47,column:19}}}))?o:"")+"        </div>\n    </a>\n</nav>\n"},useData:!0})},{"hbsfy/runtime":413}],613:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=s(n,"if").call(null!=e?e:t.nullContext||{},null!=e?s(e,"image_paragraphe"):e,{name:"if",hash:{},fn:t.program(2,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:13,column:16},end:{line:15,column:23}}}))?n:""},2:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t\t    <div class="left-deco" style="background-image: url(\''+t.escapeExpression((a[1]&&s(a[1],"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=e?s(e,"image_paragraphe"):e,"auto",{name:"../assetsUrl",hash:{},data:r,loc:{start:{line:14,column:61},end:{line:14,column:101}}}))+"')\"></div>\r\n"},4:function(t,e,n,i,r,o,a){var s,l,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t<div id="part-'+t.escapeExpression("function"==typeof(l=null!=(l=h(n,"key")||r&&h(r,"key"))?l:u)?l.call(c,{name:"key",hash:{},data:r,loc:{start:{line:21,column:17},end:{line:21,column:25}}}):l)+'" class="push-content'+(null!=(s=h(n,"if").call(c,null!=e?h(e,"image_paragraphe"):e,{name:"if",hash:{},fn:t.noop,inverse:t.program(5,r,0,o,a),data:r,loc:{start:{line:21,column:46},end:{line:21,column:98}}}))?s:"")+'">\r\n\t\t\t\t<div class="center">\r\n'+(null!=(s=h(n,"if").call(c,null!=e?h(e,"title_paragraphe"):e,{name:"if",hash:{},fn:t.program(7,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:23,column:20},end:{line:25,column:27}}}))?s:"")+"                    "+(null!=(s="function"==typeof(l=null!=(l=h(n,"texte_paragraphe")||(null!=e?h(e,"texte_paragraphe"):e))?l:u)?l.call(c,{name:"texte_paragraphe",hash:{},data:r,loc:{start:{line:26,column:20},end:{line:26,column:42}}}):l)?s:"")+"\r\n                </div>\r\n"+(null!=(s=h(n,"if").call(c,null!=e?h(e,"image_paragraphe"):e,{name:"if",hash:{},fn:t.program(9,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:28,column:16},end:{line:30,column:23}}}))?s:"")+"\t\t\t</div>\r\n"},5:function(t,e,n,i,r){return" push-content--simple"},7:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"\t\t\t\t\t\t<h2>"+(null!=(o="function"==typeof(n=null!=(n=o(n,"title_paragraphe")||(null!=e?o(e,"title_paragraphe"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"title_paragraphe",hash:{},data:r,loc:{start:{line:24,column:10},end:{line:24,column:32}}}):n)?o:"")+"</h2>\r\n"},9:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <div class="deco" style="background-image: url(\''+t.escapeExpression((a[1]&&s(a[1],"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=e?s(e,"image_paragraphe"):e,640,{name:"../assetsUrl",hash:{},data:r,loc:{start:{line:29,column:68},end:{line:29,column:105}}}))+"');\"></div>\r\n"},11:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=o(n,"if").call(null!=e?e:t.nullContext||{},null!=e?o(e,"image_paragraphe"):e,{name:"if",hash:{},fn:t.program(12,r,0),inverse:t.noop,data:r,loc:{start:{line:37,column:16},end:{line:39,column:23}}}))?n:""},12:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,l="function",c=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t\t\t<li class="anex-toc-item"><a class="anex-toc-link anex-toc-link--part-'+c(typeof(o=null!=(o=t(n,"key")||r&&t(r,"key"))?o:s)==l?o.call(a,{name:"key",hash:{},data:r,loc:{start:{line:38,column:75},end:{line:38,column:83}}}):o)+'" href="#part-'+c(typeof(o=null!=(o=t(n,"key")||r&&t(r,"key"))?o:s)==l?o.call(a,{name:"key",hash:{},data:r,loc:{start:{line:38,column:97},end:{line:38,column:105}}}):o)+'">'+(null!=(c=typeof(o=null!=(o=t(n,"title_paragraphe")||(null!=e?t(e,"title_paragraphe"):e))?o:s)==l?o.call(a,{name:"title_paragraphe",hash:{},data:r,loc:{start:{line:38,column:107},end:{line:38,column:129}}}):o)?c:"")+"</a></li>\r\n"},14:function(t,e,n,i,r){var o=t.escapeExpression,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <img src="'+o((a(n,"assetsUrl")||e&&a(e,"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"prevAnnex"):e)?a(n,"picto"):n,320,{name:"assetsUrl",hash:{},data:r,loc:{start:{line:56,column:26},end:{line:56,column:59}}}))+'" alt="'+o(t.lambda(null!=(n=null!=e?a(e,"prevAnnex"):e)?a(n,"title"):n,e))+'" class="show-for-large-up">\r\n'},16:function(t,e,n,i,r){var o=t.escapeExpression,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <img src="'+o((a(n,"assetsUrl")||e&&a(e,"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"nextAnnex"):e)?a(n,"picto"):n,320,{name:"assetsUrl",hash:{},data:r,loc:{start:{line:64,column:26},end:{line:64,column:59}}}))+'" alt="'+o(t.lambda(null!=(n=null!=e?a(e,"nextAnnex"):e)?a(n,"title"):n,e))+'" class="show-for-large-up">\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression,h=t.lambda,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="cover" style="background-image: url(\''+u((d(n,"assetsUrl")||e&&d(e,"assetsUrl")||c).call(l,null!=e?d(e,"image_page_annexe"):e,"auto",{name:"assetsUrl",hash:{},data:r,loc:{start:{line:1,column:49},end:{line:1,column:87}}}))+"');\">\r\n    <h1>"+u("function"==typeof(s=null!=(s=d(n,"title")||(null!=e?d(e,"title"):e))?s:c)?s.call(l,{name:"title",hash:{},data:r,loc:{start:{line:2,column:8},end:{line:2,column:17}}}):s)+'</h1>\r\n    <a href="#" class="button discover-button" id="discover" data-category="Content" data-action="anchor" data-label="'+u(h(null!=(c=null!=e?d(e,"globalTexts"):e)?d(c,"text_6"):c,e))+'">\r\n        <span class="circle arrow-bottom-icon"></span>\r\n        <span class="label hide-for-small">'+u(h(null!=(c=null!=e?d(e,"globalTexts"):e)?d(c,"text_6"):c,e))+'</span>\r\n    </a>\r\n</div>\r\n\r\n<div id="content-start" class="container">\r\n    <div class="left" id="left-img">\r\n        <div id=\'ul-img\'>\r\n'+(null!=(c=d(n,"each").call(l,null!=e?d(e,"paragraphes"):e,{name:"each",hash:{},fn:t.program(1,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:12,column:12},end:{line:16,column:21}}}))?c:"")+'        </div>\r\n    </div>\x3c!--\r\n--\x3e<div class="right">\r\n'+(null!=(c=d(n,"each").call(l,null!=e?d(e,"paragraphes"):e,{name:"each",hash:{},fn:t.program(4,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:20,column:8},end:{line:32,column:17}}}))?c:"")+'    </div>\r\n    <nav class="anex-toc">\r\n        <ul class="anex-toc-ul">\r\n'+(null!=(c=d(n,"each").call(l,null!=e?d(e,"paragraphes"):e,{name:"each",hash:{},fn:t.program(11,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:36,column:12},end:{line:40,column:21}}}))?c:"")+'        </ul>\r\n    </nav>\r\n</div>\r\n<div class="discover-another">\r\n    <p>'+u(h(null!=(c=null!=e?d(e,"globalTexts"):e)?d(c,"text_9"):c,e))+'</p>\r\n    <a href="#" id="gotop" class="button top-button disabled">\r\n        <span class="circle arrow-top-icon"></span>\r\n        <span class="label hide-for-small">'+u(h(null!=(c=null!=e?d(e,"globalTexts"):e)?d(c,"text_2"):c,e))+'</span>\r\n    </a>\r\n</div>\r\n<nav class="prev-next-bottom">\r\n    <a href="'+u(h(null!=(c=null!=e?d(e,"prevAnnex"):e)?d(c,"slug"):c,e))+'" class="button prev-bottom-button" data-category="Content" data-action="Redirection::Internal::Annex" data-label="'+u(h(null!=(c=null!=e?d(e,"nextAnnex"):e)?d(c,"title"):c,e))+'">\r\n        <div class="bottom-wrapper">\r\n            <p><span class="name">'+u(h(null!=(c=null!=e?d(e,"prevAnnex"):e)?d(c,"title"):c,e))+"</span></p>\r\n"+(null!=(c=d(n,"if").call(l,null!=(c=null!=e?d(e,"prevAnnex"):e)?d(c,"picto"):c,{name:"if",hash:{},fn:t.program(14,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:55,column:12},end:{line:57,column:19}}}))?c:"")+'        </div>\r\n    </a>\r\n    <a href="'+u(h(null!=(c=null!=e?d(e,"nextAnnex"):e)?d(c,"slug"):c,e))+'" class="button next-bottom-button" data-category="Content" data-action="Redirection::Internal::Annex" data-label="'+u(h(null!=(c=null!=e?d(e,"nextAnnex"):e)?d(c,"title"):c,e))+'">\r\n        <div class="bottom-wrapper">\r\n            <p><span class="name">'+u(h(null!=(c=null!=e?d(e,"nextAnnex"):e)?d(c,"title"):c,e))+"</p>\r\n"+(null!=(c=d(n,"if").call(l,null!=(c=null!=e?d(e,"nextAnnex"):e)?d(c,"picto"):c,{name:"if",hash:{},fn:t.program(16,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:63,column:12},end:{line:65,column:19}}}))?c:"")+"        </div>\r\n    </a>\r\n</nav>\r\n"},useData:!0,useDepths:!0})},{"hbsfy/runtime":413}],614:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r,o,a){var s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <div class="question-wrapper">\n                <div class="right">\n                    <div class="progress-state"><span>'+c((a[1]&&u(a[1],"increment")||l).call(s,r&&u(r,"index"),"1",{name:"../increment",hash:{},data:r,blockParams:o,loc:{start:{line:21,column:54},end:{line:21,column:81}}}))+"</span>/"+c((a[1]&&u(a[1],"len")||l).call(s,(c=(c=r&&u(r,"root"))&&u(c,"data"))&&u(c,"field_questions"),{name:"../len",hash:{},data:r,blockParams:o,loc:{start:{line:21,column:89},end:{line:21,column:126}}}))+'</div>\n                    <div class="chrono">\n                        <span class="hours-label"></span><span class="minutes-label">00:</span><span class="seconds-label">00</span>\n                    </div>\n                    <div class="valign">\n                        <div>\n                            <div class="question">'+(null!=(c=t.lambda(null!=(c=o[0][0])?u(c,"question"):c,e))?c:"")+'</div>\n                            <div class="answers-wrapper">\n'+(null!=(c=u(n,"each").call(s,null!=(c=o[0][0])?u(c,"reponses"):c,{name:"each",hash:{},fn:t.program(2,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:29,column:32},end:{line:33,column:41}}}))?c:"")+'                            </div>\n                        </div>\n                    </div>\n                    <div class="progress-bar-wrapper">\n                        <ul class="progress-bar">\n'+(null!=(c=u(n,"each").call(s,(c=(c=r&&u(r,"root"))&&u(c,"data"))&&u(c,"field_questions"),{name:"each",hash:{},fn:t.program(4,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:39,column:28},end:{line:42,column:37}}}))?c:"")+'                        </ul>\n                    </div>\n                </div>\n                <div class="left" style="background-image: url(\''+(null!=(c=u(n,"if").call(s,null!=(c=o[0][0])?u(c,"cover_media"):c,{name:"if",hash:{},fn:t.program(9,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:46,column:64},end:{line:46,column:137}}}))?c:"")+"');\">\n"+(null!=(c=u(n,"if").call(s,null!=(c=o[0][0])?u(c,"chemin_media"):c,{name:"if",hash:{},fn:t.program(11,r,0,o,a),inverse:t.program(19,r,0,o,a),data:r,blockParams:o,loc:{start:{line:47,column:20},end:{line:80,column:27}}}))?c:"")+"                </div>\n            </div>\n"},2:function(t,e,n,i,r,o){var a,s=t.lambda,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                    <div class="answer-wrapper">\n                                        <a class="button basic-button" data-answer-id="'+l(s(null!=(a=o[0][0])?t(a,"reponse_id"):a,e))+'" data-answer-correct="'+l(s(null!=(a=o[0][0])?t(a,"correct"):a,e))+'">'+l(s(null!=(a=o[0][0])?t(a,"reponse"):a,e))+"</a>\n                                    </div>\n"},4:function(t,e,n,i,r,o,a){var e=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                "+(null!=(n=s(n,"if").call(e,r&&s(r,"index"),{name:"if",hash:{},fn:t.program(5,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:40,column:32},end:{line:40,column:78}}}))?n:"")+"\n                                <li "+(null!=(n=((n=r&&s(r,"root"))&&s(n,"ifEqual")||t.hooks.helperMissing).call(e,r&&s(r,"index"),t.data(r,1)&&s(t.data(r,1),"index"),{name:"@root.ifEqual",hash:{},fn:t.program(7,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:41,column:36},end:{line:41,column:103}}}))?n:"")+"></li>\n"},5:function(t,e,n,i,r){return'<li class="divider"></li>'},7:function(t,e,n,i,r){return'class="active"'},9:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression((a[1]&&s(a[1],"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(a=o[1][0])?s(a,"cover_media"):a,"auto",{name:"../assetsUrl",hash:{},data:r,blockParams:o,loc:{start:{line:46,column:89},end:{line:46,column:130}}}))},11:function(t,e,n,i,r,o,a){var s,e=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(s=(a[1]&&c(a[1],"endsWith")||l).call(e,null!=(s=o[1][0])?c(s,"chemin_media"):s,"mp3,ogg",{name:"../endsWith",hash:{},fn:t.program(12,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:48,column:24},end:{line:70,column:40}}}))?s:"")+(null!=(s=(a[1]&&c(a[1],"endsWith")||l).call(e,null!=(s=o[1][0])?c(s,"chemin_media"):s,"gif,jpeg,jpg,png,svg",{name:"../endsWith",hash:{},fn:t.program(17,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:71,column:24},end:{line:75,column:40}}}))?s:"")},12:function(t,e,n,i,r,o,a){var s,l=t.lambda,c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                            <audio>\n                                <source src="'+c(l(null!=(s=o[2][0])?u(s,"chemin_media"):s,e))+'" type="audio/'+(null!=(s=(a[2]&&u(a[2],"endsWith")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=o[2][0])?u(s,"chemin_media"):s,"mp3",{name:"../../endsWith",hash:{},fn:t.program(13,r,0,o,a),inverse:t.program(15,r,0,o,a),data:r,blockParams:o,loc:{start:{line:50,column:81},end:{line:50,column:159}}}))?s:"")+'">\n                            </audio>\n                            <a class="audio-controls">\n                                <div class="radial-progress">\n                                    <div class="circle">\n                                        <div class="mask full">\n                                            <div class="fill"></div>\n                                        </div>\n                                        <div class="mask half">\n                                            <div class="fill"></div>\n                                            <div class="fill fix"></div>\n                                        </div>\n                                    </div>\n                                    <div class="inset"></div>\n                                </div>\n                                <div class="status"></div>\n                            </a>\n                            <a class="reload-audio reload">\n                                <span>'+c(l((s=(s=(s=(s=r&&u(r,"root"))&&u(s,"globalTexts"))&&u(s,"quiz_settings_and_labels"))&&u(s,"translations"))&&u(s,"player_reload_label"),e))+"</span>\n                            </a>\n"},13:function(t,e,n,i,r){return"mpeg"},15:function(t,e,n,i,r){return"ogg"},17:function(t,e,n,i,r,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                            <figure>\n                                <img src="'+t.escapeExpression(t.lambda(null!=(t=o[2][0])?a(t,"chemin_media"):t,e))+'"/>\n                            </figure>\n'},19:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <figure>\n                        <img src="'+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"image_logotype_2"):a[1],e))+'"/>\n                    </figure>\n'},21:function(t,e,n,i,r){var o=t.escapeExpression,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <img src="'+o((a(n,"assetsUrl")||e&&a(e,"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"prevAnnex"):e)?a(n,"picto"):n,320,{name:"assetsUrl",hash:{},data:r,loc:{start:{line:214,column:22},end:{line:214,column:55}}}))+'" alt="'+o(t.lambda(null!=(n=null!=e?a(e,"prevAnnex"):e)?a(n,"title"):n,e))+'" class="show-for-large-up">\n'},23:function(t,e,n,i,r){var o=t.escapeExpression,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <img src="'+o((a(n,"assetsUrl")||e&&a(e,"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(n=null!=e?a(e,"nextAnnex"):e)?a(n,"picto"):n,320,{name:"assetsUrl",hash:{},data:r,loc:{start:{line:222,column:22},end:{line:222,column:55}}}))+'" alt="'+o(t.lambda(null!=(n=null!=e?a(e,"nextAnnex"):e)?a(n,"title"):n,e))+'" class="show-for-large-up">\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){var s,l,c=t.lambda,u=t.escapeExpression,h=null!=e?e:t.nullContext||{},d=t.hooks.helperMissing,p="function",f=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="quiz-wrapper">\n    <div class="tuto-wrapper">\n        <div class="right">\n            <div class="valign">\n                <div>\n                    <div class="intro-quiz">'+(null!=(s=c(null!=(s=null!=e?f(e,"data"):e)?f(s,"field_intro"):s,e))?s:"")+'</div>\n                    <a class="button basic-button" data-category="Content" data-action="Redirection::Quizz start" data-label="'+u(c(null!=(s=null!=e?f(e,"data"):e)?f(s,"field_cta_jouer"):s,e))+'">'+u(c(null!=(s=null!=e?f(e,"data"):e)?f(s,"field_cta_jouer"):s,e))+'</a>\n                </div>\n            </div>\n        </div>\n        <div class="left" style="background-image: url(\''+u((f(n,"assetsUrl")||e&&f(e,"assetsUrl")||d).call(h,null!=e?f(e,"image_page_annexe"):e,"auto",{name:"assetsUrl",hash:{},data:r,blockParams:o,loc:{start:{line:11,column:56},end:{line:11,column:94}}}))+'\');">\n            <figure>\n                <img src="'+u(typeof(l=null!=(l=f(n,"image_logotype_2")||(null!=e?f(e,"image_logotype_2"):e))?l:d)==p?l.call(h,{name:"image_logotype_2",hash:{},data:r,blockParams:o,loc:{start:{line:13,column:26},end:{line:13,column:46}}}):l)+'"/>\n            </figure>\n        </div>\n    </div>\n    <div class="questions-wrapper">\n'+(null!=(s=f(n,"each").call(h,null!=(s=null!=e?f(e,"data"):e)?f(s,"field_questions"):s,{name:"each",hash:{},fn:t.program(1,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:18,column:8},end:{line:83,column:17}}}))?s:"")+'    </div>\n    <div class="form-send-result-wrapper">\n        <div class="right">\n            <div class="valign">\n                <div>\n                    <header>\n                        <h2>'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"thanks_title"):s,e))+'</h2>\n                    </header>\n                    <label for="player-pseudo">'+(null!=(s=c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"thanks_label"):s,e))?s:"")+'</label>\n                    <div class="form-line">\n                        <form id="form_quiz">\n                            <input type="text" id="player-pseudo" name="player-pseudo" maxlength="20" placeholder="'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"thanks_placeholder"):s,e))+'">\n                            <div class="error-msg">'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"thanks_bad_nickname"):s,e))+'</div>\n                            <input type="submit" class="button basic-button" value="'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"thanks_button"):s,e))+'" />\n                            <div class="stop-words">'+u(c(null!=(s=null!=e?f(e,"data"):e)?f(s,"field_stop_words"):s,e))+'</div>\n                            <input type="hidden" id="timeSpent" value="0"/>\n                            <input type="hidden" id="score" value="0"/>\n                            <a class="form-sent" class="hidden" data-category="Content" data-action="Redirection::Quizz end" data-label="'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"thanks_button"):s,e))+'"></a>\n                        </form>\n                    </div>\n                    <a class="link-ignore" data-category="Content" data-action="Redirection::Quizz end" data-label="'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"thanks_ignore"):s,e))+'">'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"thanks_ignore"):s,e))+'</a>\n                    <div class="ml-container">\n                        '+(null!=(s=c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"ml_line_1"):s,e))?s:"")+"<br/>\n                        "+(null!=(s=c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"ml_line_2"):s,e))?s:"")+"<br/>\n                        "+(null!=(s=c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"ml_line_3"):s,e))?s:"")+"<br/>\n                        "+(null!=(s=c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"ml_line_4"):s,e))?s:"")+"<br/>\n                        "+(null!=(s=c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"ml_line_5"):s,e))?s:"")+'\n                    </div>\n                </div>\n            </div>\n        </div>\n        <div class="left" style="background-image: url(\''+u((f(n,"assetsUrl")||e&&f(e,"assetsUrl")||d).call(h,null!=e?f(e,"image_page_pseudo"):e,"auto",{name:"assetsUrl",hash:{},data:r,blockParams:o,loc:{start:{line:115,column:56},end:{line:115,column:94}}}))+'\');">\n            <figure>\n                <img src="'+u(typeof(l=null!=(l=f(n,"image_logotype_2")||(null!=e?f(e,"image_logotype_2"):e))?l:d)==p?l.call(h,{name:"image_logotype_2",hash:{},data:r,blockParams:o,loc:{start:{line:117,column:26},end:{line:117,column:46}}}):l)+'"/>\n            </figure>\n        </div>\n    </div>\n    <div class="results-wrapper">\n        <div class="left" style="background-image: url(\''+u((f(n,"assetsUrl")||e&&f(e,"assetsUrl")||d).call(h,null!=e?f(e,"image_page_classement"):e,"auto",{name:"assetsUrl",hash:{},data:r,blockParams:o,loc:{start:{line:122,column:56},end:{line:122,column:98}}}))+'\');">\n            <div class="valign">\n                <div>\n                    <div class="score-congrats">\n                        <div class="score-bad">\n                            <h2>'+(null!=(s=c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"results_bad_title"):s,e))?s:"")+"</h2>\n                            <p>"+(null!=(s=c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"results_bad_label"):s,e))?s:"")+'</p>\n                        </div>\n                        <div class="score-medium">\n                            <h2>'+(null!=(s=c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"results_medium_title"):s,e))?s:"")+"</h2>\n                            <p>"+(null!=(s=c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"results_medium_label"):s,e))?s:"")+'</p>\n                        </div>\n                        <div class="score-good">\n                            <h2>'+(null!=(s=c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"results_good_title"):s,e))?s:"")+"</h2>\n                            <p>"+(null!=(s=c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"results_good_label"):s,e))?s:"")+'</p>\n                        </div>\n                    </div>\n                    <div class="score-recap">\n                        <div class="final-score">\n                            <div class="label-recap">'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"results_score_label"):s,e))+'</div>\n                            <div class="score-wrapper"><span></span>/'+u((f(n,"len")||e&&f(e,"len")||d).call(h,(s=(s=r&&f(r,"root"))&&f(s,"data"))&&f(s,"field_questions"),{name:"len",hash:{},data:r,blockParams:o,loc:{start:{line:142,column:69},end:{line:142,column:103}}}))+'</div>\n                        </div>\n                        <div class="final-time">\n                            <div class="label-recap">'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"results_time_label"):s,e))+'</div>\n                            <div class="time-wrapper">\n                                <span></span>\n                                <div class="units-wrapper">\n                                    <div class="hour-unit">'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"results_hour_label"):s,e))+'</div>\n                                    <div class="minute-unit">'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"results_minute_label"):s,e))+'</div>\n                                </div>\n                            </div>\n                        </div>\n                    </div>\n                    <div class="share-container">\n                        <a class="toggle-share">\n                            <span class="share-icon"></span>\n                            <span class="share-label">'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"share_label"):s,e))+'</span>\n                        </a>\n                        <a href="#" class="button share-button facebook-icon" data-category="Content" data-action="Share::Social::[socialNetwork::socialAction]" data-label="facebook" data-share="facebook" data-message="'+u(c((s=(s=r&&f(r,"root"))&&f(s,"data"))&&f(s,"field_partage_facebook"),e))+'" data-url="'+u(c((s=r&&f(r,"root"))&&f(s,"slug"),e))+'"></a>\n                        <a href="#" class="button share-button twitter-icon" data-category="Content" data-action="Share::Social::[socialNetwork::socialAction]" data-label="twitter" data-share="twitter" data-message="'+u(c((s=(s=r&&f(r,"root"))&&f(s,"data"))&&f(s,"field_partage_twitter"),e))+'" data-url="'+u(c((s=r&&f(r,"root"))&&f(s,"slug"),e))+'"></a>\n                    </div>\n                    <a href="'+u(c((s=r&&f(r,"root"))&&f(s,"slug"),e))+'" class="reload-quiz button" data-category="Content" data-action="Redirection::Quizz replay" data-label="'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"replay_label"):s,e))+'">\n                        <span class="reload-icon"></span>\n                        <span class="reload-label">'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"replay_label"):s,e))+'</span>\n                    </a>\n                </div>\n            </div>\n        </div>\n        <div class="right">\n            <div class="results-content">\n                <div class="position">\n                    <div>'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"position_label"):s,e))+'</div>\n                    <span class="player-position"></span>/<span class="players-quantity"></span>\n                </div>\n                <div class="table-results-container">\n                    <div class="slide-wrapper"></div>\n                    <div class="slide-pager">\n                        <a class="first-slide"></a>\n                        <a class="previous-slide"></a>\n                        <a class="previous-num-slide"></a>\n                        <a class="current-slide"></a>\n                        <a class="next-num-slide"></a>\n                        <a class="next-slide"></a>\n                        <a class="last-slide"></a>\n                    </div>\n                </div>\n                <a class="challenge-button button basic-button" data-category="Content" data-action="Redirection::Challenge friend" data-label="'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"challenge_label"):s,e))+'">'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"challenge_label"):s,e))+'</a>\n            </div>\n        </div>\n    </div>\n    <a class="scroll-down">\n        <span class="arrow-bottom-icon"></span>\n    </a>\n</div>\n<div class="cover" style="background-image: url(\''+u((f(n,"assetsUrl")||e&&f(e,"assetsUrl")||d).call(h,null!=e?f(e,"image_page_annexe"):e,"auto",{name:"assetsUrl",hash:{},data:r,blockParams:o,loc:{start:{line:196,column:49},end:{line:196,column:87}}}))+'\');">\n    <h1><img src="'+u(typeof(l=null!=(l=f(n,"image_logotype")||(null!=e?f(e,"image_logotype"):e))?l:d)==p?l.call(h,{name:"image_logotype",hash:{},data:r,blockParams:o,loc:{start:{line:197,column:18},end:{line:197,column:36}}}):l)+'"\n             alt="'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"title_overlay"):s,e))+'"\n             title="'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"title_overlay"):s,e))+'"/></h1>\n    <a class="button basic-button" data-category="Content" data-action="Redirection::Quizz" data-label="'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"overlay_button"):s,e))+'">'+u(c(null!=(s=null!=(s=null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"quiz_settings_and_labels"):s)?f(s,"translations"):s)?f(s,"overlay_button"):s,e))+'</a>\n</div>\n<div class="discover-another">\n    <p>'+u(c(null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"text_9"):s,e))+'</p>\n    <a href="#" id="gotop" class="button top-button disabled">\n        <span class="circle arrow-top-icon"></span>\n        <span class="label hide-for-small">'+u(c(null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"text_2"):s,e))+'</span>\n    </a>\n</div>\n<nav class="prev-next-bottom">\n    <a href="'+u(c(null!=(s=null!=e?f(e,"prevAnnex"):e)?f(s,"slug"):s,e))+'" class="button prev-bottom-button" data-category="Content" data-action="Redirection::Internal::Annex" data-label="'+u(c(null!=(s=null!=e?f(e,"nextAnnex"):e)?f(s,"title"):s,e))+'">\n        <div class="bottom-wrapper">\n            <p><span class="name">'+u(c(null!=(s=null!=e?f(e,"prevAnnex"):e)?f(s,"title"):s,e))+"</span></p>\n"+(null!=(s=f(n,"if").call(h,null!=(s=null!=e?f(e,"prevAnnex"):e)?f(s,"picto"):s,{name:"if",hash:{},fn:t.program(21,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:213,column:12},end:{line:215,column:19}}}))?s:"")+'        </div>\n    </a>\n    <a href="'+u(c(null!=(s=null!=e?f(e,"nextAnnex"):e)?f(s,"slug"):s,e))+'" class="button next-bottom-button" data-category="Content" data-action="Redirection::Internal::Annex" data-label="'+u(c(null!=(s=null!=e?f(e,"nextAnnex"):e)?f(s,"title"):s,e))+'">\n        <div class="bottom-wrapper">\n            <p><span class="name">'+u(c(null!=(s=null!=e?f(e,"nextAnnex"):e)?f(s,"title"):s,e))+"</p>\n"+(null!=(s=f(n,"if").call(h,null!=(s=null!=e?f(e,"nextAnnex"):e)?f(s,"picto"):s,{name:"if",hash:{},fn:t.program(23,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:221,column:12},end:{line:223,column:19}}}))?s:"")+"        </div>\n    </a>\n</nav>\n"},useData:!0,useDepths:!0,useBlockParams:!0})},{"hbsfy/runtime":413}],615:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="legals">\n    <div class="legals-inner">\n        '+(null!=(o="function"==typeof(n=null!=(n=o(n,"html")||(null!=e?o(e,"html"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"html",hash:{},data:r,loc:{start:{line:3,column:8},end:{line:3,column:20}}}):n)?o:"")+"\n    </div>\n</div>\n"},useData:!0})},{"hbsfy/runtime":413}],616:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <figure class="logotype hide-for-small">\r\n            <img src="'+t.escapeExpression((o(n,"assetsUrl")||e&&o(e,"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=e?o(e,"embleme"):e,640,{name:"assetsUrl",hash:{},data:r,loc:{start:{line:12,column:22},end:{line:12,column:47}}}))+'" alt="Citroën">\r\n        </figure>\r\n'},3:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=o(n,"if").call(null!=e?e:t.nullContext||{},null!=e?o(e,"content"):e,{name:"if",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r,loc:{start:{line:24,column:16},end:{line:26,column:23}}}))?n:""},4:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,l="function",c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <li><a href="#'+c(typeof(o=null!=(o=u(n,"index")||r&&u(r,"index"))?o:s)==l?o.call(a,{name:"index",hash:{},data:r,loc:{start:{line:25,column:34},end:{line:25,column:44}}}):o)+'" title="'+c(typeof(o=null!=(o=u(n,"tab_title")||(null!=e?u(e,"tab_title"):e))?o:s)==l?o.call(a,{name:"tab_title",hash:{},data:r,loc:{start:{line:25,column:53},end:{line:25,column:66}}}):o)+'" class="car-header-button '+(null!=(t=u(n,"unless").call(a,r&&u(r,"index"),{name:"unless",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r,loc:{start:{line:25,column:93},end:{line:25,column:131}}}))?t:"")+'">'+c(typeof(o=null!=(o=u(n,"tab_title")||(null!=e?u(e,"tab_title"):e))?o:s)==l?o.call(a,{name:"tab_title",hash:{},data:r,loc:{start:{line:25,column:133},end:{line:25,column:146}}}):o)+"</a></li>\r\n"},5:function(t,e,n,i,r){return" current "},7:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=o(n,"if").call(null!=e?e:t.nullContext||{},null!=e?o(e,"content"):e,{name:"if",hash:{},fn:t.program(8,r,0),inverse:t.noop,data:r,loc:{start:{line:32,column:20},end:{line:34,column:27}}}))?n:""},8:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,l=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <option data-id="#'+l("function"==typeof(o=null!=(o=c(n,"index")||r&&c(r,"index"))?o:s)?o.call(a,{name:"index",hash:{},data:r,loc:{start:{line:33,column:42},end:{line:33,column:52}}}):o)+'" '+(null!=(t=c(n,"unless").call(a,r&&c(r,"index"),{name:"unless",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r,loc:{start:{line:33,column:54},end:{line:33,column:104}}}))?t:"")+">"+l("function"==typeof(o=null!=(o=c(n,"tab_title")||(null!=e?c(e,"tab_title"):e))?o:s)?o.call(a,{name:"tab_title",hash:{},data:r,loc:{start:{line:33,column:105},end:{line:33,column:118}}}):o)+"</option>\r\n"},9:function(t,e,n,i,r){return' selected="selected" '},11:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=s(n,"if").call(null!=e?e:t.nullContext||{},null!=e?s(e,"content"):e,{name:"if",hash:{},fn:t.program(12,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:41,column:12},end:{line:69,column:19}}}))?n:""},12:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div id="'+t.escapeExpression("function"==typeof(s=null!=(s=c(n,"index")||r&&c(r,"index"))?s:t.hooks.helperMissing)?s.call(l,{name:"index",hash:{},data:r,blockParams:o,loc:{start:{line:42,column:25},end:{line:42,column:35}}}):s)+'" class="tab slide-wrapper tech-sheets '+(null!=(s=c(n,"unless").call(l,r&&c(r,"index"),{name:"unless",hash:{},fn:t.program(5,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:42,column:74},end:{line:42,column:112}}}))?s:"")+'">\r\n                    <div class="content">\r\n                        <ul class="rows">\r\n'+(null!=(s=c(n,"each").call(l,null!=e?c(e,"content"):e,{name:"each",hash:{},fn:t.program(13,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:45,column:28},end:{line:65,column:37}}}))?s:"")+"                        </ul>\r\n                    </div>\r\n                </div>\r\n"},13:function(t,e,n,i,r,o,a){var s=null!=e?e:t.nullContext||{},l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                <li>\r\n                                    <div class="p-container '+(null!=(n=l(n,"unless").call(s,o[0][0],{name:"unless",hash:{},fn:t.program(14,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:47,column:60},end:{line:47,column:95}}}))?n:"")+'">\r\n                                        <p>'+(null!=(n=t.lambda(o[0][1],e))?n:"")+"</p>\r\n                                    </div>\r\n"+(null!=(n=(a[2]&&l(a[2],"ifTypeof")||t.hooks.helperMissing).call(s,o[0][0],"array",{name:"../../ifTypeof",hash:{},fn:t.program(16,r,0,o,a),inverse:t.program(25,r,0,o,a),data:r,blockParams:o,loc:{start:{line:50,column:36},end:{line:63,column:55}}}))?n:"")+"                                </li>\r\n"},14:function(t,e,n,i,r){return"aligned"},16:function(t,e,n,i,r,o,a){return null!=(n=(t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]})(n,"each").call(null!=e?e:t.nullContext||{},o[1][0],{name:"each",hash:{},fn:t.program(17,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:51,column:40},end:{line:60,column:49}}}))?n:""},17:function(t,e,n,i,r,o,a){var s,e=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(s=(a[4]&&c(a[4],"isChunkSeparator")||l).call(e,r&&c(r,"index"),2,{name:"../../../../isChunkSeparator",hash:{},fn:t.program(18,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:52,column:44},end:{line:54,column:77}}}))?s:"")+(null!=(s=(a[4]&&c(a[4],"isColor")||l).call(e,o[0][0],{name:"../../../../isColor",hash:{},fn:t.program(20,r,0,o,a),inverse:t.program(23,r,0,o,a),data:r,blockParams:o,loc:{start:{line:55,column:44},end:{line:59,column:68}}}))?s:"")},18:function(t,e,n,i,r){return'\t\t\t\t\t\t\t\t\t\t\t</li><li><div class="p-container"></div>\r\n'},20:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                                <span class="color value'+(null!=(s=(a[5]&&s(a[5],"isBright")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},o[1][0],{name:"../../../../../isBright",hash:{},fn:t.program(21,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:56,column:72},end:{line:56,column:141}}}))?s:"")+'" style="background: '+t.escapeExpression(t.lambda(o[1][0],e))+'"></span>\r\n'},21:function(t,e,n,i,r){return" bright"},23:function(t,e,n,i,r,o){return'                                                <span class="value">'+t.escapeExpression(t.lambda(o[1][0],e))+"</span>\r\n"},25:function(t,e,n,i,r,o){return'                                        <span class="value">'+t.escapeExpression(t.lambda(o[1][0],e))+"</span>\r\n"},27:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div id="gallery" class="gallery">\r\n        <header>\r\n            <h2>'+t.escapeExpression(t.lambda(null!=(s=null!=e?c(e,"globalTexts"):e)?c(s,"text_title_2"):s,e))+'</h2>\r\n            <ul class="tab-control hide-for-small" data-tabs="#photos-tabs">\r\n'+(null!=(s=c(n,"each").call(l,null!=(s=null!=e?c(e,"photos"):e)?c(s,"content"):s,{name:"each",hash:{},fn:t.program(28,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:84,column:16},end:{line:88,column:25}}}))?s:"")+'            </ul>\r\n\t\t\t<div class="show-for-small combobox">\r\n\t\t\t\t<select data-tabs="#photos-tabs">\r\n'+(null!=(s=c(n,"each").call(l,null!=(s=null!=e?c(e,"photos"):e)?c(s,"content"):s,{name:"each",hash:{},fn:t.program(31,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:92,column:20},end:{line:96,column:29}}}))?s:"")+'\t\t\t\t</select>\r\n\t\t\t</div>\r\n        </header>\r\n        <div id="photos-tabs" class="tab-wrapper">\r\n'+(null!=(s=c(n,"each").call(l,null!=(s=null!=e?c(e,"photos"):e)?c(s,"content"):s,{name:"each",hash:{},fn:t.program(34,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:101,column:12},end:{line:159,column:21}}}))?s:"")+"        </div>\r\n    </div>\r\n"},28:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=o(n,"if").call(null!=e?e:t.nullContext||{},null!=e?o(e,"img"):e,{name:"if",hash:{},fn:t.program(29,r,0),inverse:t.noop,data:r,loc:{start:{line:85,column:20},end:{line:87,column:27}}}))?n:""},29:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,l="function",c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <li><a href="#'+c(typeof(o=null!=(o=u(n,"index")||r&&u(r,"index"))?o:s)==l?o.call(a,{name:"index",hash:{},data:r,loc:{start:{line:86,column:38},end:{line:86,column:48}}}):o)+'" title="'+c(typeof(o=null!=(o=u(n,"label")||(null!=e?u(e,"label"):e))?o:s)==l?o.call(a,{name:"label",hash:{},data:r,loc:{start:{line:86,column:57},end:{line:86,column:66}}}):o)+'" class="car-header-button '+(null!=(t=u(n,"unless").call(a,r&&u(r,"index"),{name:"unless",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r,loc:{start:{line:86,column:93},end:{line:86,column:131}}}))?t:"")+'">'+c(typeof(o=null!=(o=u(n,"label")||(null!=e?u(e,"label"):e))?o:s)==l?o.call(a,{name:"label",hash:{},data:r,loc:{start:{line:86,column:133},end:{line:86,column:142}}}):o)+"</a></li>\r\n"},31:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=o(n,"if").call(null!=e?e:t.nullContext||{},null!=e?o(e,"img"):e,{name:"if",hash:{},fn:t.program(32,r,0),inverse:t.noop,data:r,loc:{start:{line:93,column:24},end:{line:95,column:31}}}))?n:""},32:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,l=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t\t\t\t\t<option data-id="#'+l("function"==typeof(o=null!=(o=c(n,"index")||r&&c(r,"index"))?o:s)?o.call(a,{name:"index",hash:{},data:r,loc:{start:{line:94,column:25},end:{line:94,column:35}}}):o)+'" '+(null!=(t=c(n,"unless").call(a,r&&c(r,"index"),{name:"unless",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r,loc:{start:{line:94,column:37},end:{line:94,column:87}}}))?t:"")+">"+l("function"==typeof(o=null!=(o=c(n,"label")||(null!=e?c(e,"label"):e))?o:s)?o.call(a,{name:"label",hash:{},data:r,loc:{start:{line:94,column:88},end:{line:94,column:97}}}):o)+"</option>\r\n"},34:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div id="'+t.escapeExpression("function"==typeof(s=null!=(s=u(n,"index")||r&&u(r,"index"))?s:c)?s.call(l,{name:"index",hash:{},data:r,loc:{start:{line:102,column:25},end:{line:102,column:35}}}):s)+'" class="tab slide-wrapper '+(null!=(s=u(n,"unless").call(l,r&&u(r,"index"),{name:"unless",hash:{},fn:t.program(5,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:102,column:62},end:{line:102,column:100}}}))?s:"")+'">\r\n                    <div class="content grid">\r\n'+(null!=(s=(a[1]&&u(a[1],"forBy")||c).call(l,null!=e?u(e,"img"):e,null!=e?u(e,"alt_text"):e,3,{name:"../forBy",hash:{},fn:t.program(35,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:104,column:24},end:{line:156,column:37}}}))?s:"")+"                    </div>\r\n                </div>\r\n"},35:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=s(n,"if").call(null!=e?e:t.nullContext||{},null!=e?s(e,"isOdd"):e,{name:"if",hash:{},fn:t.program(36,r,0,o,a),inverse:t.program(68,r,0,o,a),data:r,loc:{start:{line:105,column:28},end:{line:155,column:35}}}))?n:""},36:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=s(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?s(e,"imgs"):e)?s(n,"0"):n,{name:"if",hash:{},fn:t.program(37,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:106,column:32},end:{line:130,column:39}}}))?n:""},37:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.lambda,h=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                    <div class="col">\r\n                                        <div class="row-tall">\r\n                                            <div class="img-wrapper" data-contrib="'+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"0"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(38,r,0,o,a),inverse:t.program(40,r,0,o,a),data:r,loc:{start:{line:109,column:83},end:{line:109,column:166}}}))?s:"")+'" data-pinterest="'+(null!=(s=d(n,"if").call(l,(s=r&&d(r,"root"))&&d(s,"share_pinterest_url"),{name:"if",hash:{},fn:t.program(38,r,0,o,a),inverse:t.program(40,r,0,o,a),data:r,loc:{start:{line:109,column:184},end:{line:109,column:241}}}))?s:"")+'" data-popin="true" data-type="image" data-url="'+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"0"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(42,r,0,o,a),inverse:t.program(44,r,0,o,a),data:r,loc:{start:{line:109,column:289},end:{line:109,column:438}}}))?s:"")+'"  data-title="'+h(u(null!=(s=null!=e?d(e,"texts"):e)?d(s,"0"):s,e))+'" style="background-image: url(\''+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"0"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(46,r,0,o,a),inverse:t.program(48,r,0,o,a),data:r,loc:{start:{line:109,column:498},end:{line:109,column:650}}}))?s:"")+'\')">\r\n                                                <p class="tooltip">'+h(u(null!=(s=null!=e?d(e,"texts"):e)?d(s,"0"):s,e))+'</p>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class="row-small">\r\n                                            <div class="col">\r\n'+(null!=(s=d(n,"if").call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"1"):s,{name:"if",hash:{},fn:t.program(50,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:115,column:48},end:{line:119,column:55}}}))?s:"")+'                                            </div>\r\n                                            <div class="col">\r\n'+(null!=(s=d(n,"if").call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"2"):s,{name:"if",hash:{},fn:t.program(59,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:122,column:48},end:{line:126,column:55}}}))?s:"")+"                                            </div>\r\n                                        </div>\r\n                                    </div>\r\n"},38:function(t,e,n,i,r){return"true"},40:function(t,e,n,i,r){return"false"},42:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(((s=r&&l(r,"root"))&&l(s,"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=a[1]?l(a[1],"imgs"):a[1])?l(s,"0"):s,"max",{name:"@root.assetsUrl",hash:{},data:r,loc:{start:{line:109,column:334},end:{line:109,column:371}}}))},44:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(((s=r&&l(r,"root"))&&l(s,"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=a[1]?l(a[1],"imgs"):a[1])?l(s,"0"):s,"auto",{name:"@root.assetsUrl",hash:{},data:r,loc:{start:{line:109,column:379},end:{line:109,column:417}}}))},46:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(((s=r&&l(r,"root"))&&l(s,"assetsCSSUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=a[1]?l(a[1],"imgs"):a[1])?l(s,"0"):s,"mid",{name:"@root.assetsCSSUrl",hash:{},data:r,loc:{start:{line:109,column:543},end:{line:109,column:583}}}))},48:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(((s=r&&l(r,"root"))&&l(s,"assetsCSSUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=a[1]?l(a[1],"imgs"):a[1])?l(s,"0"):s,640,{name:"@root.assetsCSSUrl",hash:{},data:r,loc:{start:{line:109,column:591},end:{line:109,column:629}}}))},50:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.lambda,h=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                                    <div class="img-wrapper" data-contrib="'+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"1"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(38,r,0,o,a),inverse:t.program(40,r,0,o,a),data:r,loc:{start:{line:116,column:91},end:{line:116,column:174}}}))?s:"")+'" data-pinterest="'+(null!=(s=d(n,"if").call(l,(s=r&&d(r,"root"))&&d(s,"share_pinterest_url"),{name:"if",hash:{},fn:t.program(38,r,0,o,a),inverse:t.program(40,r,0,o,a),data:r,loc:{start:{line:116,column:192},end:{line:116,column:249}}}))?s:"")+'" data-popin="true" data-type="image" data-url="'+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"1"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(51,r,0,o,a),inverse:t.program(53,r,0,o,a),data:r,loc:{start:{line:116,column:297},end:{line:116,column:446}}}))?s:"")+'"  data-title="'+h(u(null!=(s=null!=e?d(e,"texts"):e)?d(s,"1"):s,e))+'" style="background-image: url(\''+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"1"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(55,r,0,o,a),inverse:t.program(57,r,0,o,a),data:r,loc:{start:{line:116,column:506},end:{line:116,column:658}}}))?s:"")+'\')">\r\n                                                        <p class="tooltip">'+h(u(null!=(s=null!=e?d(e,"texts"):e)?d(s,"1"):s,e))+"</p>\r\n                                                    </div>\r\n"},51:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(((s=r&&l(r,"root"))&&l(s,"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=a[1]?l(a[1],"imgs"):a[1])?l(s,"1"):s,"max",{name:"@root.assetsUrl",hash:{},data:r,loc:{start:{line:116,column:342},end:{line:116,column:379}}}))},53:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(((s=r&&l(r,"root"))&&l(s,"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=a[1]?l(a[1],"imgs"):a[1])?l(s,"1"):s,"auto",{name:"@root.assetsUrl",hash:{},data:r,loc:{start:{line:116,column:387},end:{line:116,column:425}}}))},55:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(((s=r&&l(r,"root"))&&l(s,"assetsCSSUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=a[1]?l(a[1],"imgs"):a[1])?l(s,"1"):s,"mid",{name:"@root.assetsCSSUrl",hash:{},data:r,loc:{start:{line:116,column:551},end:{line:116,column:591}}}))},57:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(((s=r&&l(r,"root"))&&l(s,"assetsCSSUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=a[1]?l(a[1],"imgs"):a[1])?l(s,"1"):s,640,{name:"@root.assetsCSSUrl",hash:{},data:r,loc:{start:{line:116,column:599},end:{line:116,column:637}}}))},59:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.lambda,h=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                                    <div class="img-wrapper" data-contrib="'+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"2"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(38,r,0,o,a),inverse:t.program(40,r,0,o,a),data:r,loc:{start:{line:123,column:91},end:{line:123,column:174}}}))?s:"")+'" data-pinterest="'+(null!=(s=d(n,"if").call(l,(s=r&&d(r,"root"))&&d(s,"share_pinterest_url"),{name:"if",hash:{},fn:t.program(38,r,0,o,a),inverse:t.program(40,r,0,o,a),data:r,loc:{start:{line:123,column:192},end:{line:123,column:249}}}))?s:"")+'" data-popin="true" data-type="image"  data-url="'+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"2"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(60,r,0,o,a),inverse:t.program(62,r,0,o,a),data:r,loc:{start:{line:123,column:298},end:{line:123,column:447}}}))?s:"")+'"  data-title="'+h(u(null!=(s=null!=e?d(e,"texts"):e)?d(s,"2"):s,e))+'" style="background-image: url(\''+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"2"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(64,r,0,o,a),inverse:t.program(66,r,0,o,a),data:r,loc:{start:{line:123,column:507},end:{line:123,column:659}}}))?s:"")+'\')">\r\n                                                        <p class="tooltip">'+h(u(null!=(s=null!=e?d(e,"texts"):e)?d(s,"2"):s,e))+"</p>\r\n                                                    </div>\r\n"},60:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(((s=r&&l(r,"root"))&&l(s,"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=a[1]?l(a[1],"imgs"):a[1])?l(s,"2"):s,"max",{name:"@root.assetsUrl",hash:{},data:r,loc:{start:{line:123,column:343},end:{line:123,column:380}}}))},62:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(((s=r&&l(r,"root"))&&l(s,"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=a[1]?l(a[1],"imgs"):a[1])?l(s,"2"):s,"auto",{name:"@root.assetsUrl",hash:{},data:r,loc:{start:{line:123,column:388},end:{line:123,column:426}}}))},64:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(((s=r&&l(r,"root"))&&l(s,"assetsCSSUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=a[1]?l(a[1],"imgs"):a[1])?l(s,"2"):s,"mid",{name:"@root.assetsCSSUrl",hash:{},data:r,loc:{start:{line:123,column:552},end:{line:123,column:592}}}))},66:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return t.escapeExpression(((s=r&&l(r,"root"))&&l(s,"assetsCSSUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=a[1]?l(a[1],"imgs"):a[1])?l(s,"2"):s,640,{name:"@root.assetsCSSUrl",hash:{},data:r,loc:{start:{line:123,column:600},end:{line:123,column:638}}}))},68:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.lambda,h=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                <div class="col">\r\n                                    <div class="row-small">\r\n                                        <div class="col">\r\n                                            <div class="img-wrapper" data-contrib="'+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"0"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(38,r,0,o,a),inverse:t.program(40,r,0,o,a),data:r,loc:{start:{line:135,column:83},end:{line:135,column:166}}}))?s:"")+'" data-pinterest="'+(null!=(s=d(n,"if").call(l,(s=r&&d(r,"root"))&&d(s,"share_pinterest_url"),{name:"if",hash:{},fn:t.program(38,r,0,o,a),inverse:t.program(40,r,0,o,a),data:r,loc:{start:{line:135,column:184},end:{line:135,column:241}}}))?s:"")+'" data-popin="true" data-type="image"  data-url="'+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"0"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(42,r,0,o,a),inverse:t.program(44,r,0,o,a),data:r,loc:{start:{line:135,column:290},end:{line:135,column:439}}}))?s:"")+'"  data-title="'+h(u(null!=(s=null!=e?d(e,"texts"):e)?d(s,"0"):s,e))+'" style="background-image: url(\''+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"0"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(46,r,0,o,a),inverse:t.program(48,r,0,o,a),data:r,loc:{start:{line:135,column:499},end:{line:135,column:651}}}))?s:"")+'\')">\r\n                                                <p class="tooltip">'+h(u(null!=(s=null!=e?d(e,"texts"):e)?d(s,"0"):s,e))+'</p>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class="col">\r\n'+(null!=(s=d(n,"if").call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"1"):s,{name:"if",hash:{},fn:t.program(69,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:140,column:44},end:{line:144,column:51}}}))?s:"")+'                                        </div>\r\n                                    </div>\r\n                                    <div class="row-tall">\r\n'+(null!=(s=d(n,"if").call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"2"):s,{name:"if",hash:{},fn:t.program(71,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:148,column:40},end:{line:152,column:47}}}))?s:"")+"                                    </div>\r\n                                </div>\r\n"},69:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.lambda,h=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                                <div class="img-wrapper" data-contrib="'+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"1"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(38,r,0,o,a),inverse:t.program(40,r,0,o,a),data:r,loc:{start:{line:141,column:87},end:{line:141,column:170}}}))?s:"")+'" data-pinterest="'+(null!=(s=d(n,"if").call(l,(s=r&&d(r,"root"))&&d(s,"share_pinterest_url"),{name:"if",hash:{},fn:t.program(38,r,0,o,a),inverse:t.program(40,r,0,o,a),data:r,loc:{start:{line:141,column:188},end:{line:141,column:245}}}))?s:"")+'" data-popin="true" data-type="image"  data-url="'+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"1"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(51,r,0,o,a),inverse:t.program(53,r,0,o,a),data:r,loc:{start:{line:141,column:294},end:{line:141,column:443}}}))?s:"")+'"  data-title="'+h(u(null!=(s=null!=e?d(e,"texts"):e)?d(s,"1"):s,e))+'" style="background-image: url(\''+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"1"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(55,r,0,o,a),inverse:t.program(57,r,0,o,a),data:r,loc:{start:{line:141,column:503},end:{line:141,column:655}}}))?s:"")+'\')">\r\n                                                    <p class="tooltip">'+h(u(null!=(s=null!=e?d(e,"texts"):e)?d(s,"1"):s,e))+"</p>\r\n                                                </div>\r\n"},71:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.lambda,h=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                            <div class="img-wrapper" data-contrib="'+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"2"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(38,r,0,o,a),inverse:t.program(40,r,0,o,a),data:r,loc:{start:{line:149,column:83},end:{line:149,column:166}}}))?s:"")+'" data-pinterest="'+(null!=(s=d(n,"if").call(l,(s=r&&d(r,"root"))&&d(s,"share_pinterest_url"),{name:"if",hash:{},fn:t.program(38,r,0,o,a),inverse:t.program(40,r,0,o,a),data:r,loc:{start:{line:149,column:184},end:{line:149,column:241}}}))?s:"")+'" data-popin="true" data-type="image"  data-url="'+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"2"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(60,r,0,o,a),inverse:t.program(62,r,0,o,a),data:r,loc:{start:{line:149,column:290},end:{line:149,column:439}}}))?s:"")+'"  data-title="'+h(u(null!=(s=null!=e?d(e,"texts"):e)?d(s,"2"):s,e))+'" style="background-image: url(\''+(null!=(s=(a[2]&&d(a[2],"ifContains")||c).call(l,null!=(s=null!=e?d(e,"imgs"):e)?d(s,"2"):s,"user-vehicle",{name:"../../ifContains",hash:{},fn:t.program(64,r,0,o,a),inverse:t.program(66,r,0,o,a),data:r,loc:{start:{line:149,column:499},end:{line:149,column:651}}}))?s:"")+'\')">\r\n                                                <p class="tooltip">'+h(u(null!=(s=null!=e?d(e,"texts"):e)?d(s,"2"):s,e))+"</p>\r\n                                            </div>\r\n"},73:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div id="documents" class="documents hide-for-small">\r\n        <header>\r\n            <h2>'+t.escapeExpression(t.lambda(null!=(s=null!=e?c(e,"globalTexts"):e)?c(s,"text_title_3"):s,e))+'</h2>\r\n            <ul class="tab-control hide-for-small" data-tabs="#documents-tabs">\r\n'+(null!=(s=c(n,"each").call(l,null!=e?c(e,"indiscretions"):e,{name:"each",hash:{},fn:t.program(74,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:171,column:16},end:{line:185,column:25}}}))?s:"")+'            </ul>\r\n            <div class="show-for-small combobox">\r\n                <select data-tabs="#documents-tabs">\r\n'+(null!=(s=c(n,"each").call(l,null!=e?c(e,"indiscretions"):e,{name:"each",hash:{},fn:t.program(82,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:189,column:20},end:{line:191,column:29}}}))?s:"")+'                </select>\r\n            </div>\r\n        </header>\r\n        <div id="documents-tabs" class="tab-wrapper">\r\n'+(null!=(s=c(n,"each").call(l,null!=e?c(e,"indiscretions"):e,{name:"each",hash:{},fn:t.program(84,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:196,column:12},end:{line:285,column:21}}}))?s:"")+"        </div>\r\n    </div>\r\n"},74:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(e=(a[1]&&s(a[1],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(e=null!=(e=o[0][0])?s(e,"0"):e)?s(e,"content_type"):e,"brochures",{name:"../ifEqual",hash:{},fn:t.program(75,r,0,o,a),inverse:t.program(78,r,0,o,a),data:r,blockParams:o,loc:{start:{line:172,column:20},end:{line:184,column:35}}}))?e:""},75:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(s=(a[2]&&s(a[2],"ifOffline")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},!1,{name:"../../ifOffline",hash:{},fn:t.program(76,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:173,column:24},end:{line:175,column:44}}}))?s:""},76:function(t,e,n,i,r,o){var a,s=null!=e?e:t.nullContext||{},l=t.escapeExpression,c=t.lambda,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                            <li><a href="#'+l("function"==typeof(a=null!=(a=u(n,"index")||r&&u(r,"index"))?a:t.hooks.helperMissing)?a.call(s,{name:"index",hash:{},data:r,loc:{start:{line:174,column:42},end:{line:174,column:52}}}):a)+'" title="'+l(c(o[2][1],e))+'" class="car-header-button '+(null!=(a=u(n,"unless").call(s,r&&u(r,"index"),{name:"unless",hash:{},fn:t.program(5,r,0,o),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:174,column:95},end:{line:174,column:133}}}))?a:"")+'">'+l(c(o[2][1],e))+"</a></li>\r\n"},78:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(e=(a[2]&&s(a[2],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(e=null!=(e=o[1][0])?s(e,"0"):e)?s(e,"content_type"):e,"bd",{name:"../../ifEqual",hash:{},fn:t.program(79,r,0,o,a),inverse:t.program(76,r,0,o,a),data:r,blockParams:o,loc:{start:{line:177,column:24},end:{line:183,column:42}}}))?e:""},79:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(s=(a[2]&&s(a[2],"ifOffline")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},!1,{name:"../../ifOffline",hash:{},fn:t.program(80,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:178,column:28},end:{line:180,column:48}}}))?s:""},80:function(t,e,n,i,r,o){var a,s=null!=e?e:t.nullContext||{},l=t.escapeExpression,c=t.lambda,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                <li><a href="#'+l("function"==typeof(a=null!=(a=u(n,"index")||r&&u(r,"index"))?a:t.hooks.helperMissing)?a.call(s,{name:"index",hash:{},data:r,loc:{start:{line:179,column:46},end:{line:179,column:56}}}):a)+'" title="'+l(c(o[3][1],e))+'" class="car-header-button '+(null!=(a=u(n,"unless").call(s,r&&u(r,"index"),{name:"unless",hash:{},fn:t.program(5,r,0,o),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:179,column:99},end:{line:179,column:137}}}))?a:"")+'">'+l(c(o[3][1],e))+"</a></li>\r\n"},82:function(t,e,n,i,r,o){var a,s=null!=e?e:t.nullContext||{},l=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <option data-id="#'+l("function"==typeof(a=null!=(a=c(n,"index")||r&&c(r,"index"))?a:t.hooks.helperMissing)?a.call(s,{name:"index",hash:{},data:r,loc:{start:{line:190,column:42},end:{line:190,column:52}}}):a)+'" '+(null!=(a=c(n,"unless").call(s,r&&c(r,"index"),{name:"unless",hash:{},fn:t.program(9,r,0),inverse:t.noop,data:r,loc:{start:{line:190,column:54},end:{line:190,column:104}}}))?a:"")+">"+l(t.lambda(o[0][1],e))+"</option>\r\n"},84:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div id="'+t.escapeExpression("function"==typeof(s=null!=(s=c(n,"index")||r&&c(r,"index"))?s:t.hooks.helperMissing)?s.call(l,{name:"index",hash:{},data:r,loc:{start:{line:197,column:25},end:{line:197,column:35}}}):s)+'" class="tab '+(null!=(s=c(n,"unless").call(l,r&&c(r,"index"),{name:"unless",hash:{},fn:t.program(5,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:197,column:48},end:{line:197,column:86}}}))?s:"")+' slide-wrapper">\r\n                    <div class="content">\r\n                        <ul class="rows">\r\n'+(null!=(s=c(n,"each").call(l,e,{name:"each",hash:{},fn:t.program(85,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:200,column:28},end:{line:281,column:37}}}))?s:"")+"                        </ul>\r\n                    </div>\r\n                </div>\r\n"},85:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(s=(a[2]&&u(a[2],"isQuoteIndiscretion")||c).call(l,null!=e?u(e,"content_type"):e,null!=e?u(e,"file_to_add"):e,{name:"../../isQuoteIndiscretion",hash:{},fn:t.program(86,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:201,column:32},end:{line:215,column:62}}}))?s:"")+"\r\n"+(null!=(s=(a[2]&&u(a[2],"isPDFIndiscretion")||c).call(l,null!=e?u(e,"content_type"):e,null!=e?u(e,"file_to_add"):e,{name:"../../isPDFIndiscretion",hash:{},fn:t.program(89,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:217,column:32},end:{line:231,column:60}}}))?s:"")+"\r\n"+(null!=(s=(a[2]&&u(a[2],"isImageIndiscretion")||c).call(l,null!=e?u(e,"content_type"):e,null!=e?u(e,"file_to_add"):e,{name:"../../isImageIndiscretion",hash:{},fn:t.program(93,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:233,column:32},end:{line:245,column:62}}}))?s:"")+"\r\n"+(null!=(s=(a[2]&&u(a[2],"isVideoIndiscretion")||c).call(l,null!=e?u(e,"content_type"):e,null!=e?u(e,"file_to_add"):e,{name:"../../isVideoIndiscretion",hash:{},fn:t.program(95,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:247,column:32},end:{line:261,column:62}}}))?s:"")+"\r\n"+(null!=(s=(a[2]&&u(a[2],"isTextIndiscretion")||c).call(l,null!=e?u(e,"content_type"):e,null!=e?u(e,"file_to_add"):e,{name:"../../isTextIndiscretion",hash:{},fn:t.program(97,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:263,column:32},end:{line:280,column:61}}}))?s:"")},86:function(t,e,n,i,r,o,a){var s=t.lambda,l=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                    <li>\r\n                                        <div class="media-wrapper" data-type="quote" data-popin="true">\r\n                                            <blockquote>\r\n                                                <div class="blockquote-inner">\r\n                                                    <p>'+l(s(null!=a[1]?c(a[1],"citation_txt"):a[1],e))+'</p>\r\n                                                </div>\r\n                                            </blockquote>\r\n                                        </div>\r\n                                        <p class="name">'+l(s(null!=a[1]?c(a[1],"title"):a[1],e))+"</p>\r\n"+(null!=(l=c(n,"if").call(null!=e?e:t.nullContext||{},null!=a[1]?c(a[1],"intro_txt"):a[1],{name:"if",hash:{},fn:t.program(87,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:211,column:40},end:{line:213,column:47}}}))?l:"")+"                                    </li>\r\n"},87:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"\t\t\t\t\t\t\t\t\t\t\t<p>"+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"intro_txt"):a[1],e))+"</p>\r\n"},89:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(s=(a[3]&&s(a[3],"ifOffline")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},!1,{name:"../../../ifOffline",hash:{},fn:t.program(90,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:218,column:36},end:{line:230,column:59}}}))?s:""},90:function(t,e,n,i,r,o,a){var s=t.lambda,l=t.escapeExpression,c=null!=e?e:t.nullContext||{},u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                        <li>\r\n                                            <div class="media-wrapper" data-type="pdf" data-url="'+l(s(null!=a[1]?u(a[1],"file_url"):a[1],e))+'" data-popin="true">\r\n                                                <div class="media-wrapper-inner">\r\n                                                    <img src="'+l((a[3]&&u(a[3],"assetsUrl")||t.hooks.helperMissing).call(c,null!=a[1]?u(a[1],"img_thumb"):a[1],640,{name:"../../../assetsUrl",hash:{},data:r,loc:{start:{line:222,column:62},end:{line:222,column:101}}}))+'" alt="'+l(s(null!=a[1]?u(a[1],"title"):a[1],e))+'">\r\n                                                </div>\r\n                                            </div>\r\n                                            <p class="name">'+l(s(null!=a[1]?u(a[1],"title"):a[1],e))+"</p>\r\n"+(null!=(l=u(n,"if").call(c,null!=a[1]?u(a[1],"intro_txt"):a[1],{name:"if",hash:{},fn:t.program(91,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:226,column:44},end:{line:228,column:51}}}))?l:"")+"                                        </li>\r\n"},91:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"\t\t\t\t\t\t\t\t\t\t\t\t<p>"+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"intro_txt"):a[1],e))+"</p>\r\n"},93:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression,h=t.lambda,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                    <li>\r\n                                        <div class="media-wrapper" data-pinterest="'+(null!=(s=d(n,"if").call(l,(s=r&&d(r,"root"))&&d(s,"share_pinterest_url"),{name:"if",hash:{},fn:t.program(38,r,0,o,a),inverse:t.program(40,r,0,o,a),data:r,loc:{start:{line:235,column:83},end:{line:235,column:140}}}))?s:"")+'" data-type="image" data-url="'+u((a[3]&&d(a[3],"assetsUrl")||c).call(l,null!=a[1]?d(a[1],"file_url"):a[1],"auto",{name:"../../../assetsUrl",hash:{},data:r,loc:{start:{line:235,column:170},end:{line:235,column:211}}}))+'" data-popin="true">\r\n\t\t\t\t\t\t\t\t\t\t\t<div class="media-wrapper-inner">\r\n                                                <img src="'+u((a[3]&&d(a[3],"assetsUrl")||c).call(l,null!=a[1]?d(a[1],"img_thumb"):a[1],640,{name:"../../../assetsUrl",hash:{},data:r,loc:{start:{line:237,column:58},end:{line:237,column:97}}}))+'" alt="'+u(h(null!=a[1]?d(a[1],"title"):a[1],e))+'">\r\n                                            </div>\r\n                                        </div>\r\n                                        <p class="name">'+u(h(null!=a[1]?d(a[1],"title"):a[1],e))+"</p>\r\n"+(null!=(s=d(n,"if").call(l,null!=a[1]?d(a[1],"intro_txt"):a[1],{name:"if",hash:{},fn:t.program(87,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:241,column:40},end:{line:243,column:47}}}))?s:"")+"                                    </li>\r\n"},95:function(t,e,n,i,r,o,a){var s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,c=t.escapeExpression,u=t.lambda,h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                    <li>\r\n                                        <div class="media-wrapper" data-type="video" data-local-url="'+c((a[3]&&h(a[3],"assetsUrl")||l).call(s,null!=a[1]?h(a[1],"local_url"):a[1],{name:"../../../assetsUrl",hash:{},data:r,loc:{start:{line:249,column:101},end:{line:249,column:136}}}))+'"\r\n                                        data-youtube="'+c(u(null!=a[1]?h(a[1],"youtube_url"):a[1],e))+'" data-youku="'+c(u(null!=a[1]?h(a[1],"youku_url"):a[1],e))+'" data-popin="true">\r\n                                            <div class="video-cover">\r\n                                                <img src="'+c((a[3]&&h(a[3],"assetsUrl")||l).call(s,null!=a[1]?h(a[1],"img_thumb"):a[1],640,{name:"../../../assetsUrl",hash:{},data:r,loc:{start:{line:252,column:58},end:{line:252,column:97}}}))+'" alt="'+c(u(null!=a[1]?h(a[1],"title"):a[1],e))+'">\r\n                                                <a href="#" class="button play-button play-icon"></a>\r\n                                            </div>\r\n                                        </div>\r\n                                        <p class="name">'+c(u(null!=a[1]?h(a[1],"title"):a[1],e))+"</p>\r\n"+(null!=(l=h(n,"if").call(s,null!=a[1]?h(a[1],"intro_txt"):a[1],{name:"if",hash:{},fn:t.program(87,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:257,column:40},end:{line:259,column:47}}}))?l:"")+"                                    </li>\r\n"},97:function(t,e,n,i,r,o,a){var s=t.lambda,l=t.escapeExpression,c=null!=e?e:t.nullContext||{},u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                    <li>\r\n                                        <div class="media-wrapper" data-type="text" data-popin="true" data-title="'+l(s(null!=a[1]?u(a[1],"present_title"):a[1],e))+'" data-text="'+l(s(null!=a[1]?u(a[1],"present_text"):a[1],e))+'">\r\n                                            <article>\r\n                                                <div class="article-inner">\r\n                                                    <h5>'+l(s(null!=a[1]?u(a[1],"title"):a[1],e))+"</h5>\r\n"+(null!=(l=u(n,"if").call(c,null!=e?u(e,"img_thumb"):e,{name:"if",hash:{},fn:t.program(98,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:269,column:52},end:{line:271,column:59}}}))?l:"")+(null!=(l=u(n,"if").call(c,null!=a[1]?u(a[1],"intro_txt"):a[1],{name:"if",hash:{},fn:t.program(100,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:272,column:52},end:{line:275,column:59}}}))?l:"")+"                                                </div>\r\n                                            </article>\r\n                                        </div>\r\n                                    </li>\r\n"},98:function(t,e,n,i,r,o,a){var s=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                                        <img src="'+s((a[3]&&l(a[3],"assetsUrl")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=a[1]?l(a[1],"img_thumb"):a[1],640,{name:"../../../assetsUrl",hash:{},data:r,loc:{start:{line:270,column:66},end:{line:270,column:105}}}))+'" alt="'+s(t.lambda(null!=a[1]?l(a[1],"title"):a[1],e))+'">\r\n'},100:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                                        <p>"+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"intro_txt"):a[1],e))+"</p>\r\n                                                        <span>+</span>\r\n"},102:function(t,e,n,i,r,o,a){var s,l=t.lambda,c=t.escapeExpression,u=null!=e?e:t.nullContext||{},h=t.hooks.helperMissing,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div id="participation" class="participation">\r\n        <header>\r\n            <h2>'+c(l(null!=(s=null!=(s=null!=(s=null!=e?d(e,"globalTexts"):e)?d(s,"map_settings_and_labels"):s)?d(s,"translations"):s)?d(s,"car_map_title"):s,e))+"</h2>\r\n            <p>"+(null!=(s=(d(n,"replace")||e&&d(e,"replace")||h).call(u,"__model_name__",null!=(s=null!=(s=null!=(s=null!=e?d(e,"globalTexts"):e)?d(s,"map_settings_and_labels"):s)?d(s,"translations"):s)?d(s,"car_map_description"):s,{name:"replace",hash:{},fn:t.program(103,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:296,column:15},end:{line:298,column:28}}}))?s:"")+'            </p>\r\n        </header>\r\n        <div class="map-wrapper">\r\n            <div id="map-container" class="map-container"></div>\r\n            <div id="map-overlay">\r\n                <div id="map-overlay-inner">\r\n                    <div class="content">\r\n                        <p>\r\n'+(null!=(s=(d(n,"replace")||e&&d(e,"replace")||h).call(u,"__model_name__",null!=(s=null!=(s=null!=(s=null!=e?d(e,"globalTexts"):e)?d(s,"map_settings_and_labels"):s)?d(s,"translations"):s)?d(s,"car_map_initial_message"):s,{name:"replace",hash:{},fn:t.program(105,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:307,column:28},end:{line:309,column:40}}}))?s:"")+'                        </p>\r\n                        <a class="button basic-button">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?d(e,"globalTexts"):e)?d(s,"map_settings_and_labels"):s)?d(s,"translations"):s)?d(s,"overlay_button"):s,e))+'</a>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div id="map-gallery"></div>\r\n            <div class="map-footer">\r\n                <a id="add-vehicle" data-category="Content" data-action="Add" data-label="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?d(e,"globalTexts"):e)?d(s,"map_settings_and_labels"):s)?d(s,"translations"):s)?d(s,"car_map_add_button"):s,e))+'" data-message="add-vehicle" class="button basic-button">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?d(e,"globalTexts"):e)?d(s,"map_settings_and_labels"):s)?d(s,"translations"):s)?d(s,"car_map_add_button"):s,e))+'</a>\r\n                <a id="map-page-button" href="/'+c("function"==typeof(o=null!=(o=d(n,"lang")||(null!=e?d(e,"lang"):e))?o:h)?o.call(u,{name:"lang",hash:{},data:r,loc:{start:{line:318,column:47},end:{line:318,column:55}}}):o)+'/map" data-action="Redirection::Internal" class="button world-button">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?d(e,"globalTexts"):e)?d(s,"map_settings_and_labels"):s)?d(s,"translations"):s)?d(s,"car_map_global_map_link"):s,e))+"</a>\r\n            </div>\r\n        </div>\r\n    </div>\r\n"},103:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"\r\n                    "+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"title"):a[1],e))+"\r\n"},105:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                "+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"title"):a[1],e))+"\r\n"},107:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div id="design" class="design">\r\n        <header>\r\n            <h2>'+t.escapeExpression(t.lambda(null!=(s=null!=e?c(e,"globalTexts"):e)?c(s,"text_title_4"):s,e))+'</h2>\r\n            <ul class="tab-control hide-for-small" data-tabs="#technical-sheet-tabs">\r\n'+(null!=(s=c(n,"each").call(l,null!=(s=null!=e?c(e,"Design"):e)?c(s,"content"):s,{name:"each",hash:{},fn:t.program(108,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:331,column:16},end:{line:333,column:25}}}))?s:"")+'            </ul>\r\n            <div class="show-for-small combobox">\r\n                <select data-tabs="#technical-sheet-tabs">\r\n'+(null!=(s=c(n,"each").call(l,null!=(s=null!=e?c(e,"Design"):e)?c(s,"content"):s,{name:"each",hash:{},fn:t.program(82,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:337,column:20},end:{line:339,column:29}}}))?s:"")+'                </select>\r\n            </div>\r\n        </header>\r\n        <div id="design-tabs" class="tab-wrapper">\r\n'+(null!=(s=c(n,"each").call(l,null!=(s=null!=e?c(e,"Design"):e)?c(s,"content"):s,{name:"each",hash:{},fn:t.program(110,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:344,column:12},end:{line:351,column:21}}}))?s:"")+'            <ul class="tab-control" data-tabs="#design-tabs">\r\n'+(null!=(s=c(n,"each").call(l,null!=(s=null!=e?c(e,"Design"):e)?c(s,"content"):s,{name:"each",hash:{},fn:t.program(112,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:353,column:16},end:{line:355,column:25}}}))?s:"")+"            </ul>\r\n        </div>\r\n    </div>\r\n"},108:function(t,e,n,i,r,o){var a,s=null!=e?e:t.nullContext||{},l=t.escapeExpression,c=t.lambda,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <li><a href="#'+l("function"==typeof(a=null!=(a=u(n,"index")||r&&u(r,"index"))?a:t.hooks.helperMissing)?a.call(s,{name:"index",hash:{},data:r,loc:{start:{line:332,column:34},end:{line:332,column:44}}}):a)+'" title="'+l(c(o[0][1],e))+'" class="car-header-button '+(null!=(a=u(n,"unless").call(s,r&&u(r,"index"),{name:"unless",hash:{},fn:t.program(5,r,0,o),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:332,column:87},end:{line:332,column:125}}}))?a:"")+'">'+l(c(o[0][1],e))+"</a></li>\r\n"},110:function(t,e,n,i,r,o,a){var s,e=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div id="'+c("function"==typeof(s=null!=(s=u(n,"index")||r&&u(r,"index"))?s:l)?s.call(e,{name:"index",hash:{},data:r,loc:{start:{line:345,column:25},end:{line:345,column:35}}}):s)+'" class="tab '+(null!=(s=u(n,"unless").call(e,r&&u(r,"index"),{name:"unless",hash:{},fn:t.program(5,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:345,column:48},end:{line:345,column:86}}}))?s:"")+'">\r\n                    <div class="reveal-slide" style="background-image: url(\''+c((a[1]&&u(a[1],"assetsUrl")||l).call(e,null!=(s=o[0][0])?u(s,"technique"):s,"auto",{name:"../assetsUrl",hash:{},data:r,blockParams:o,loc:{start:{line:346,column:76},end:{line:346,column:115}}}))+'\')">\r\n                        <div class="reveal-mask" style="background-image: url(\''+c((a[1]&&u(a[1],"assetsCSSUrl")||l).call(e,null!=(s=o[0][0])?u(s,"chromie"):s,"auto",{name:"../assetsCSSUrl",hash:{},data:r,blockParams:o,loc:{start:{line:347,column:79},end:{line:347,column:119}}}))+'\')"></div>\r\n                        <div class="button reveal-button"></div>\r\n                    </div>\r\n                </div>\r\n'},112:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.escapeExpression,h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <li><a href="'+u("function"==typeof(s=null!=(s=h(n,"index")||r&&h(r,"index"))?s:c)?s.call(l,{name:"index",hash:{},data:r,loc:{start:{line:354,column:33},end:{line:354,column:43}}}):s)+'" class="button thumbnail-button '+(null!=(s=h(n,"unless").call(l,r&&h(r,"index"),{name:"unless",hash:{},fn:t.program(5,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:354,column:76},end:{line:354,column:114}}}))?s:"")+'"><img src="'+u((a[1]&&h(a[1],"assetsUrl")||c).call(l,null!=(s=o[0][0])?h(s,"miniature"):s,640,{name:"../assetsUrl",hash:{},data:r,blockParams:o,loc:{start:{line:354,column:126},end:{line:354,column:162}}}))+'" alt="'+u(t.lambda(o[0][1],e))+'"></a></li>\r\n'},114:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div id="variants" class="variants">\r\n        <header>\r\n            <h2>'+t.escapeExpression(t.lambda(null!=(s=null!=e?l(e,"globalTexts"):e)?l(s,"text_title_5"):s,e))+'</h2>\r\n        </header>\r\n        <div class="slide-wrapper">\r\n            <div class="content">\r\n                <ul class="rows">\r\n'+(null!=(s=l(n,"each").call(null!=e?e:t.nullContext||{},null!=(s=null!=e?l(e,"version"):e)?l(s,"content"):s,{name:"each",hash:{},fn:t.program(115,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:371,column:20},end:{line:381,column:29}}}))?s:"")+'                </ul>\r\n            </div>\r\n            <p class="slide-pagination show-for-small">1/3</p>\r\n        </div>\r\n    </div>\r\n'},115:function(t,e,n,i,r,o,a){var s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <li>\r\n                            <div class="variants-button">\r\n                                <div class="img-wrapper" style="background-image: url(\''+c((a[1]&&u(a[1],"assetsUrl")||l).call(s,null!=e?u(e,"field_visuel_img_version"):e,640,{name:"../assetsUrl",hash:{},data:r,loc:{start:{line:374,column:87},end:{line:374,column:132}}}))+'\')"></div>\r\n                                <p class="name">'+c("function"==typeof(c=null!=(c=u(n,"title")||(null!=e?u(e,"title"):e))?c:l)?c.call(s,{name:"title",hash:{},data:r,loc:{start:{line:375,column:48},end:{line:375,column:57}}}):c)+"</p>\r\n"+(null!=(l=u(n,"if").call(s,null!=e?u(e,"field_date_annne_prod"):e,{name:"if",hash:{},fn:t.program(116,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:376,column:32},end:{line:378,column:39}}}))?l:"")+"                            </div>\r\n                        </li>\r\n"},116:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                                    <p>"+t.escapeExpression("function"==typeof(n=null!=(n=o(n,"field_date_annne_prod")||(null!=e?o(e,"field_date_annne_prod"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"field_date_annne_prod",hash:{},data:r,loc:{start:{line:377,column:39},end:{line:377,column:64}}}):n)+"</p>\r\n"},118:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div id="genealogy" class="genealogy">\r\n        <header>\r\n            <h2>'+t.escapeExpression(t.lambda(null!=(s=null!=e?l(e,"genealogie_content"):e)?l(s,"genealogie_label"):s,e))+'</h2>\r\n        </header>\r\n        <div class="slide-wrapper">\r\n            <div class="content">\r\n                <ul class="rows">\r\n'+(null!=(s=l(n,"each").call(null!=e?e:t.nullContext||{},null!=(s=null!=e?l(e,"genealogie"):e)?l(s,"content"):s,{name:"each",hash:{},fn:t.program(119,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:399,column:20},end:{line:410,column:29}}}))?s:"")+'                </ul>\r\n            </div>\r\n            <p class="slide-pagination show-for-small">1/4</p>\r\n        </div>\r\n    </div>\r\n'},119:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u="function",h=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <li>\r\n                            <a href="'+h(typeof(s=null!=(s=t(n,"path")||(null!=e?t(e,"path"):e))?s:c)==u?s.call(l,{name:"path",hash:{},data:r,loc:{start:{line:401,column:37},end:{line:401,column:45}}}):s)+'" class="button genealogy-button" data-category="Content" data-action="Redirection::Internal::Vehicle" data-label="'+h(typeof(s=null!=(s=t(n,"title")||(null!=e?t(e,"title"):e))?s:c)==u?s.call(l,{name:"title",hash:{},data:r,loc:{start:{line:401,column:160},end:{line:401,column:169}}}):s)+'">\r\n                                <div class="car-wrapper">\r\n                                    <img src="'+h((a[1]&&t(a[1],"assetsUrl")||c).call(l,null!=e?t(e,"field_img_profil"):e,640,{name:"../assetsUrl",hash:{},data:r,loc:{start:{line:403,column:46},end:{line:403,column:83}}}))+'" alt="'+h(typeof(s=null!=(s=t(n,"title")||(null!=e?t(e,"title"):e))?s:c)==u?s.call(l,{name:"title",hash:{},data:r,loc:{start:{line:403,column:90},end:{line:403,column:99}}}):s)+'" />\r\n                                    <p class="name">'+h(typeof(s=null!=(s=t(n,"title")||(null!=e?t(e,"title"):e))?s:c)==u?s.call(l,{name:"title",hash:{},data:r,loc:{start:{line:404,column:52},end:{line:404,column:61}}}):s)+'</p>\r\n                                    <p class="year">'+h(typeof(s=null!=(s=t(n,"field_annee_lancement")||(null!=e?t(e,"field_annee_lancement"):e))?s:c)==u?s.call(l,{name:"field_annee_lancement",hash:{},data:r,loc:{start:{line:405,column:52},end:{line:405,column:77}}}):s)+"</p>\r\n                                    <p>"+h(typeof(s=null!=(s=t(n,"field_text_genealogie")||(null!=e?t(e,"field_text_genealogie"):e))?s:c)==u?s.call(l,{name:"field_text_genealogie",hash:{},data:r,loc:{start:{line:406,column:39},end:{line:406,column:64}}}):s)+"</p>\r\n                                </div>\r\n                            </a>\r\n                        </li>\r\n"},121:function(t,e,n,i,r){var o,a,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,c=t.escapeExpression,u=t.lambda,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <div id="quiz-push" class="quiz-push">\r\n        <figure>\r\n            <img src="'+c("function"==typeof(a=null!=(a=t(n,"quiz_image_logotype")||(null!=e?t(e,"quiz_image_logotype"):e))?a:l)?a.call(s,{name:"quiz_image_logotype",hash:{},data:r,loc:{start:{line:423,column:22},end:{line:423,column:45}}}):a)+'" alt="'+c(u(null!=(o=null!=(o=null!=(o=null!=e?t(e,"globalTexts"):e)?t(o,"quiz_settings_and_labels"):o)?t(o,"translations"):o)?t(o,"title_overlay"):o,e))+'" title="'+c(u(null!=(o=null!=(o=null!=(o=null!=e?t(e,"globalTexts"):e)?t(o,"quiz_settings_and_labels"):o)?t(o,"translations"):o)?t(o,"title_overlay"):o,e))+'" />\r\n        </figure>\r\n        <div class="teasing">\r\n            <span>'+(null!=(o=u(null!=(o=null!=(o=null!=(o=null!=e?t(e,"globalTexts"):e)?t(o,"quiz_settings_and_labels"):o)?t(o,"translations"):o)?t(o,"push_teasing"):o,e))?o:"")+'</span>\r\n        </div>\r\n        <a href="'+c("function"==typeof(a=null!=(a=t(n,"quiz_slug")||(null!=e?t(e,"quiz_slug"):e))?a:l)?a.call(s,{name:"quiz_slug",hash:{},data:r,loc:{start:{line:428,column:17},end:{line:428,column:30}}}):a)+'" class="button basic-button">'+c(u(null!=(o=null!=(o=null!=(o=null!=e?t(e,"globalTexts"):e)?t(o,"quiz_settings_and_labels"):o)?t(o,"translations"):o)?t(o,"overlay_button"):o,e))+"</a>\r\n    </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){var s,l,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,h="function",d=t.escapeExpression,p=t.lambda,f=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<header class="car-header">\r\n    <h2>Citroën '+d(typeof(l=null!=(l=f(n,"title")||(null!=e?f(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,blockParams:o,loc:{start:{line:2,column:16},end:{line:2,column:25}}}):l)+' <span class="year" style="color: #DA291C">'+d(p(null!=(s=null!=(s=null!=e?f(e,"genealogie_content"):e)?f(s,"genealogie_car"):s)?f(s,"year"):s,e))+'</span></h2>\r\n</header>\r\n\r\n<div id="edito" class="edito"></div>\r\n\r\n\x3c!-- Description --\x3e\r\n<div id="description" class="description">\r\n    <p>'+(null!=(s=typeof(l=null!=(l=f(n,"txt_intro")||(null!=e?f(e,"txt_intro"):e))?l:u)==h?l.call(c,{name:"txt_intro",hash:{},data:r,blockParams:o,loc:{start:{line:9,column:7},end:{line:9,column:22}}}):l)?s:"")+"</p>\r\n"+(null!=(s=f(n,"if").call(c,null!=e?f(e,"embleme"):e,{name:"if",hash:{},fn:t.program(1,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:10,column:4},end:{line:14,column:11}}}))?s:"")+'</div>\r\n\x3c!-- End of description --\x3e\r\n\r\n\x3c!-- Technical sheet --\x3e\r\n<div id="technical-sheet" class="technical-sheet">\r\n    <header>\r\n        <h2>'+d(p(null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"text_title_1"):s,e))+'</h2>\r\n        <ul class="tab-control hide-for-small" data-tabs="#technical-sheet-tabs">\r\n'+(null!=(s=f(n,"each").call(c,null!=(s=null!=e?f(e,"fiche_technique"):e)?f(s,"content"):s,{name:"each",hash:{},fn:t.program(3,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:23,column:12},end:{line:27,column:21}}}))?s:"")+'        </ul>\r\n        <div class="show-for-small combobox">\r\n            <select data-tabs="#technical-sheet-tabs">\r\n'+(null!=(s=f(n,"each").call(c,null!=(s=null!=e?f(e,"fiche_technique"):e)?f(s,"content"):s,{name:"each",hash:{},fn:t.program(7,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:31,column:16},end:{line:35,column:25}}}))?s:"")+'            </select>\r\n        </div>\r\n    </header>\r\n    <div id="technical-sheet-tabs" class="tab-wrapper">\r\n'+(null!=(s=f(n,"each").call(c,null!=(s=null!=e?f(e,"fiche_technique"):e)?f(s,"content"):s,{name:"each",hash:{},fn:t.program(11,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:40,column:8},end:{line:70,column:17}}}))?s:"")+'        <div class="car-preview hide-for-small">\r\n            <img src="'+d((f(n,"assetsUrl")||e&&f(e,"assetsUrl")||u).call(c,null!=(s=null!=(s=null!=e?f(e,"viewer_360"):e)?f(s,"img_360"):s)?f(s,"62"):s,640,{name:"assetsUrl",hash:{},data:r,blockParams:o,loc:{start:{line:72,column:22},end:{line:72,column:63}}}))+'" alt="'+d(typeof(l=null!=(l=f(n,"title")||(null!=e?f(e,"title"):e))?l:u)==h?l.call(c,{name:"title",hash:{},data:r,blockParams:o,loc:{start:{line:72,column:70},end:{line:72,column:79}}}):l)+'">\r\n        </div>\r\n    </div>\r\n</div>\r\n\x3c!-- End of technical sheet --\x3e\r\n\r\n\x3c!-- Gallery --\x3e\r\n'+(null!=(s=f(n,"if").call(c,null!=(s=null!=(s=null!=(s=null!=(s=null!=e?f(e,"photos"):e)?f(s,"content"):s)?f(s,"tab_2"):s)?f(s,"img"):s)?f(s,"length"):s,{name:"if",hash:{},fn:t.program(27,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:79,column:0},end:{line:162,column:7}}}))?s:"")+"\x3c!-- End of gallery --\x3e\r\n\r\n\x3c!-- Documents --\x3e\r\n"+(null!=(s=f(n,"if").call(c,null!=e?f(e,"indiscretions"):e,{name:"if",hash:{},fn:t.program(73,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:166,column:0},end:{line:288,column:7}}}))?s:"")+"\x3c!-- End of documents --\x3e\r\n\r\n\x3c!-- Contributions --\x3e\r\n"+(null!=(s=f(n,"if").call(c,null!=e?f(e,"cities"):e,{name:"if",hash:{},fn:t.program(102,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:292,column:0},end:{line:322,column:7}}}))?s:"")+"\x3c!-- End of Contributions --\x3e\r\n\r\n\x3c!-- Design --\x3e\r\n"+(null!=(s=f(n,"if").call(c,null!=(s=null!=e?f(e,"Design"):e)?f(s,"content"):s,{name:"if",hash:{},fn:t.program(107,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:326,column:0},end:{line:359,column:7}}}))?s:"")+"\x3c!-- End of design --\x3e\r\n\r\n\x3c!-- Variant --\x3e\r\n"+(null!=(s=f(n,"if").call(c,null!=(s=null!=(s=null!=e?f(e,"version"):e)?f(s,"content"):s)?f(s,"length"):s,{name:"if",hash:{},fn:t.program(114,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:363,column:0},end:{line:387,column:7}}}))?s:"")+"\x3c!-- End of variant --\x3e\r\n\r\n\x3c!-- Genealogy --\x3e\r\n"+(null!=(s=f(n,"if").call(c,null!=(s=null!=(s=null!=e?f(e,"genealogie"):e)?f(s,"content"):s)?f(s,"length"):s,{name:"if",hash:{},fn:t.program(118,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:391,column:0},end:{line:416,column:7}}}))?s:"")+"\x3c!-- End of genealogy --\x3e\r\n\r\n\x3c!-- Quiz Push --\x3e\r\n"+(null!=(s=f(n,"if").call(c,null!=e?f(e,"quiz"):e,{name:"if",hash:{},fn:t.program(121,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:420,column:0},end:{line:430,column:7}}}))?s:"")+'\x3c!-- End of Quiz Push --\x3e\r\n\r\n\r\n<div class="discover-another">\r\n    <p>'+d(p(null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"text_1"):s,e))+'</p>\r\n    <a href="#" data-anchor="#edito" class="button top-button">\r\n        <span class="circle arrow-top-icon"></span>\r\n        <span class="label hide-for-small">'+d(p(null!=(s=null!=e?f(e,"globalTexts"):e)?f(s,"text_2"):s,e))+'</span>\r\n    </a>\r\n</div>\r\n\r\n<nav class="prev-next-car">\r\n    <a href="'+d(p(null!=(s=null!=e?f(e,"prevCar"):e)?f(s,"slug"):s,e))+'" class="button prev-car-button" data-category="Content" data-action="Redirection::Internal::Vehicle" data-label="'+d(p(null!=(s=null!=e?f(e,"prevCar"):e)?f(s,"title"):s,e))+'">\r\n        <div class="car-wrapper">\r\n            <p><span class="name">'+d(p(null!=(s=null!=e?f(e,"prevCar"):e)?f(s,"title"):s,e))+"</span>"+d(p(null!=(s=null!=e?f(e,"prevCar"):e)?f(s,"year"):s,e))+'</p>\r\n            <img src="'+d((f(n,"assetsUrl")||e&&f(e,"assetsUrl")||u).call(c,null!=(s=null!=(s=null!=(s=null!=e?f(e,"prevCar"):e)?f(s,"viewer_360"):s)?f(s,"img_360"):s)?f(s,"0"):s,640,{name:"assetsUrl",hash:{},data:r,blockParams:o,loc:{start:{line:446,column:22},end:{line:446,column:70}}}))+'" alt="'+d(p(null!=(s=null!=e?f(e,"prevCar"):e)?f(s,"title"):s,e))+'" class="show-for-large-up">\r\n        </div>\r\n    </a>\r\n    <a href="'+d(p(null!=(s=null!=e?f(e,"nextCar"):e)?f(s,"slug"):s,e))+'" class="button next-car-button" data-category="Content" data-action="Redirection::Internal::Vehicle" data-label="'+d(p(null!=(s=null!=e?f(e,"nextCar"):e)?f(s,"title"):s,e))+'">\r\n        <div class="car-wrapper">\r\n            <p><span class="name">'+d(p(null!=(s=null!=e?f(e,"nextCar"):e)?f(s,"title"):s,e))+"</span>"+d(p(null!=(s=null!=e?f(e,"nextCar"):e)?f(s,"year"):s,e))+'</p>\r\n            <img src="'+d((f(n,"assetsUrl")||e&&f(e,"assetsUrl")||u).call(c,null!=(s=null!=(s=null!=(s=null!=e?f(e,"nextCar"):e)?f(s,"viewer_360"):s)?f(s,"img_360"):s)?f(s,"0"):s,640,{name:"assetsUrl",hash:{},data:r,blockParams:o,loc:{start:{line:452,column:22},end:{line:452,column:70}}}))+'" alt="'+d(p(null!=(s=null!=e?f(e,"nextCar"):e)?f(s,"title"):s,e))+'" class="show-for-large-up">\r\n        </div>\r\n    </a>\r\n</nav>\r\n'},useData:!0,useDepths:!0,useBlockParams:!0})},{"hbsfy/runtime":413}],617:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return' crossorigin="'+t.escapeExpression("function"==typeof(n=null!=(n=o(n,"assetsCrossOrigin")||(null!=e?o(e,"assetsCrossOrigin"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"assetsCrossOrigin",hash:{},data:r,loc:{start:{line:4,column:113},end:{line:4,column:134}}}):n)+'"'},3:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=s(n,"if").call(null!=e?e:t.nullContext||{},null!=e?s(e,"description_en"):e,{name:"if",hash:{},fn:t.program(4,r,0,o,a),inverse:t.program(6,r,0,o,a),data:r,loc:{start:{line:16,column:24},end:{line:80,column:31}}}))?n:""},4:function(t,e,n,i,r){return""},6:function(t,e,n,i,r,o,a){var s,l,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,h="function",d=t.escapeExpression,p=t.lambda,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <li data-theme="'+d(typeof(l=null!=(l=t(n,"titre")||(null!=e?t(e,"titre"):e))?l:u)==h?l.call(c,{name:"titre",hash:{},data:r,loc:{start:{line:42,column:40},end:{line:42,column:49}}}):l)+'" data-theme-fr="'+d(typeof(l=null!=(l=t(n,"description_translated")||(null!=e?t(e,"description_translated"):e))?l:u)==h?l.call(c,{name:"description_translated",hash:{},data:r,loc:{start:{line:42,column:66},end:{line:42,column:92}}}):l)+'">\r\n                            <div class="slide-content">\r\n                                <div dir="ltr" class="titles-container">\r\n                                    <h2>'+d(typeof(l=null!=(l=t(n,"titre")||(null!=e?t(e,"titre"):e))?l:u)==h?l.call(c,{name:"titre",hash:{},data:r,loc:{start:{line:45,column:40},end:{line:45,column:49}}}):l)+"</h2>\r\n                                    <h3>"+d(typeof(l=null!=(l=t(n,"description")||(null!=e?t(e,"description"):e))?l:u)==h?l.call(c,{name:"description",hash:{},data:r,loc:{start:{line:46,column:40},end:{line:46,column:55}}}):l)+'</h3>\r\n                                </div>\r\n                                <div class="slide-details">\r\n                                    <div class="cover-container">\r\n                                        <img src="'+d(typeof(l=null!=(l=t(n,"cover")||(null!=e?t(e,"cover"):e))?l:u)==h?l.call(c,{name:"cover",hash:{},data:r,loc:{start:{line:50,column:50},end:{line:50,column:59}}}):l)+'"\r\n                                             data-titre-en="'+d(p(null!=(s=null!=e?t(e,"slides"):e)?t(s,"titre_en"):s,e))+'"\r\n                                             data-titre-fr="'+d(p(null!=(s=null!=e?t(e,"slides"):e)?t(s,"titre_fr"):s,e))+'"\r\n                                             data-descriptions-en="'+d((a[1]&&t(a[1],"join")||u).call(c,null!=(s=null!=e?t(e,"slides"):e)?t(s,"descriptions_en"):s,"|",{name:"../join",hash:{},data:r,loc:{start:{line:53,column:67},end:{line:53,column:105}}}))+'"\r\n                                             data-descriptions-fr="'+d((a[1]&&t(a[1],"join")||u).call(c,null!=(s=null!=e?t(e,"slides"):e)?t(s,"descriptions_fr"):s,"|",{name:"../join",hash:{},data:r,loc:{start:{line:54,column:67},end:{line:54,column:105}}}))+'"\r\n                                             data-medias="'+d(p(null!=(s=null!=e?t(e,"slides"):e)?t(s,"medias"):s,e))+'"\r\n                                             data-legends="'+d((a[1]&&t(a[1],"join")||u).call(c,null!=(s=null!=e?t(e,"slides"):e)?t(s,"legends"):s,"|",{name:"../join",hash:{},data:r,loc:{start:{line:56,column:59},end:{line:56,column:89}}}))+'"\r\n                                             data-category="Content"\r\n                                             data-action="Display::'+d(p(null!=(s=null!=e?t(e,"slides"):e)?t(s,"titre"):s,e))+'"\r\n                                             data-label="'+d(p((s=(s=(s=r&&t(r,"root"))&&t(s,"exposition_content"))&&t(s,"intro"))&&t(s,"btn_slide"),e))+'"\r\n                                        />\r\n                                    </div>\r\n                                    <div class="testimony-container">\r\n                                        <p class="testimony-en">'+(null!=(s=typeof(l=null!=(l=t(n,"testimony_en")||(null!=e?t(e,"testimony_en"):e))?l:u)==h?l.call(c,{name:"testimony_en",hash:{},data:r,loc:{start:{line:63,column:64},end:{line:63,column:82}}}):l)?s:"")+'</p>\r\n                                        <p class="testimony-fr">'+(null!=(s=typeof(l=null!=(l=t(n,"testimony_fr")||(null!=e?t(e,"testimony_fr"):e))?l:u)==h?l.call(c,{name:"testimony_fr",hash:{},data:r,loc:{start:{line:64,column:64},end:{line:64,column:82}}}):l)?s:"")+'</p>\r\n                                        <a class="button basic-button"\r\n                                           data-titre-en="'+d(p(null!=(s=null!=e?t(e,"slides"):e)?t(s,"titre_en"):s,e))+'"\r\n                                           data-titre-fr="'+d(p(null!=(s=null!=e?t(e,"slides"):e)?t(s,"titre_fr"):s,e))+'"\r\n                                           data-descriptions-en="'+d((a[1]&&t(a[1],"join")||u).call(c,null!=(s=null!=e?t(e,"slides"):e)?t(s,"descriptions_en"):s,"|",{name:"../join",hash:{},data:r,loc:{start:{line:68,column:65},end:{line:68,column:108}}}))+'"\r\n                                           data-descriptions-fr="'+d((a[1]&&t(a[1],"join")||u).call(c,null!=(s=null!=e?t(e,"slides"):e)?t(s,"descriptions_fr"):s,"|",{name:"../join",hash:{},data:r,loc:{start:{line:69,column:65},end:{line:69,column:108}}}))+'"\r\n                                           data-medias="'+d(p(null!=(s=null!=e?t(e,"slides"):e)?t(s,"medias"):s,e))+'"\r\n                                           data-legends="'+d((a[1]&&t(a[1],"join")||u).call(c,null!=(s=null!=e?t(e,"slides"):e)?t(s,"legends"):s,"|",{name:"../join",hash:{},data:r,loc:{start:{line:71,column:57},end:{line:71,column:87}}}))+'"\r\n                                           data-category="Content"\r\n                                           data-action="Display::'+d(typeof(l=null!=(l=t(n,"titre")||(null!=e?t(e,"titre"):e))?l:u)==h?l.call(c,{name:"titre",hash:{},data:r,loc:{start:{line:73,column:65},end:{line:73,column:74}}}):l)+'"\r\n                                           data-label="'+d(p((s=(s=(s=r&&t(r,"root"))&&t(s,"exposition_content"))&&t(s,"intro"))&&t(s,"btn_slide"),e))+'"\r\n                                        >'+d(p((s=(s=(s=r&&t(r,"root"))&&t(s,"exposition_content"))&&t(s,"intro"))&&t(s,"btn_slide"),e))+"</a>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </li>\r\n"},8:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=o(n,"if").call(null!=e?e:t.nullContext||{},null!=e?o(e,"description_en"):e,{name:"if",hash:{},fn:t.program(4,r,0),inverse:t.program(9,r,0),data:r,loc:{start:{line:88,column:20},end:{line:96,column:27}}}))?n:""},9:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <li>\r\n                        <a class="theme">'+t.escapeExpression("function"==typeof(n=null!=(n=o(n,"titre")||(null!=e?o(e,"titre"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"titre",hash:{},data:r,loc:{start:{line:94,column:41},end:{line:94,column:50}}}):n)+"</a>\r\n                    </li>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.escapeExpression,u=t.lambda,h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\r\n<div id="exposition" class="exposition">\r\n    <div class="cover" dir="ltr">\r\n        <img src="'+c((h(n,"assetsUrl")||e&&h(e,"assetsUrl")||t.hooks.helperMissing).call(l,null!=(s=null!=(s=null!=e?h(e,"exposition_content"):e)?h(s,"intro"):s)?h(s,"logo"):s,"auto-home",{name:"assetsUrl",hash:{},data:r,loc:{start:{line:4,column:18},end:{line:4,column:73}}}))+'"'+(null!=(s=h(n,"if").call(l,null!=e?h(e,"assetsCrossOrigin"):e,{name:"if",hash:{},fn:t.program(1,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:4,column:74},end:{line:4,column:142}}}))?s:"")+' alt="'+c(u(null!=(s=null!=(s=null!=e?h(e,"exposition_content"):e)?h(s,"intro"):s)?h(s,"logo_alt"):s,e))+'" title="'+c(u(null!=(s=null!=(s=null!=e?h(e,"exposition_content"):e)?h(s,"intro"):s)?h(s,"logo_alt"):s,e))+'">\r\n        <div class="chapos-container">\r\n            <p>'+(null!=(s=u(null!=(s=null!=(s=null!=e?h(e,"exposition_content"):e)?h(s,"intro"):s)?h(s,"txt_intro_en"):s,e))?s:"")+"</p>\r\n            <p>"+(null!=(s=u(null!=(s=null!=(s=null!=e?h(e,"exposition_content"):e)?h(s,"intro"):s)?h(s,"txt_intro_fr"):s,e))?s:"")+'</p>\r\n        </div>\r\n        <a class="button basic-button" data-category="Content" data-action="Redirection::Internal" data-label="'+c(u(null!=(s=null!=(s=null!=e?h(e,"exposition_content"):e)?h(s,"intro"):s)?h(s,"btn_intro"):s,e))+'">'+c(u(null!=(s=null!=(s=null!=e?h(e,"exposition_content"):e)?h(s,"intro"):s)?h(s,"btn_intro"):s,e))+'</a>\r\n    </div>\r\n    <div class="exposition-content">\r\n        <div class="slide-wrapper">\r\n            <div class="content">\r\n                <ul class="rows">\r\n'+(null!=(s=h(n,"each").call(l,null!=(s=null!=e?h(e,"exposition_content"):e)?h(s,"slides"):s,{name:"each",hash:{},fn:t.program(3,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:15,column:20},end:{line:81,column:29}}}))?s:"")+'                </ul>\r\n            </div>\r\n        </div>\r\n        <div class="slide-nav">\r\n            <ul>\r\n'+(null!=(s=h(n,"each").call(l,null!=(s=null!=e?h(e,"exposition_content"):e)?h(s,"slides"):s,{name:"each",hash:{},fn:t.program(8,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:87,column:16},end:{line:97,column:25}}}))?s:"")+'            </ul>\r\n        </div>\r\n    </div>\r\n    <div dir="ltr" class="translate">'+c(u(null!=(s=null!=(s=null!=e?h(e,"exposition_content"):e)?h(s,"intro"):s)?h(s,"logo_traduction"):s,e))+'</div>\r\n    <div class="details-container">\r\n        <div class="details-container-inner">\r\n            <div class="medias-container">\r\n\r\n            </div>\r\n        </div>\r\n        <a class="close-button"></a>\r\n    </div>\r\n</div>'},useData:!0,useDepths:!0})},{"hbsfy/runtime":413}],618:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r,o,a){var s=t.lambda,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'    <img class="hide-for-loading" src="'+l(s(null!=a[1]?t(a[1],"assetsFolder"):a[1],e))+'/assets/img/intro/ami_one.png" alt="">\n    <img class="hide-for-loading" src="'+l(s(null!=a[1]?t(a[1],"assetsFolder"):a[1],e))+'/assets/img/intro/2cv.png" alt="">\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){var s=t.lambda,l=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(n=(c(n,"ifOffline")||e&&c(e,"ifOffline")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},!1,{name:"ifOffline",hash:{},fn:t.program(1,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:1,column:0},end:{line:4,column:14}}}))?n:"")+'<div class="grid"></div>\n<div class="filters-container">\n    <a href="/" class="button open-filters" data-category="Content" data-action="Display::Expandbar::Filters" data-label="filters">\n        <span>'+l(s(null!=(n=null!=e?c(e,"globalTexts"):e)?c(n,"text_11"):n,e))+'</span>\n    </a>\n    <div class="timeline"></div>\n</div>\n\n<a href="#" class="button discover-button" data-category="Content" data-action="Anchor" data-label="'+l(s(null!=(n=null!=e?c(e,"globalTexts"):e)?c(n,"text_6"):n,e))+'">\n\t<span class="circle arrow-bottom-icon"></span>\n\t<span class="label hide-for-small">'+l(s(null!=(n=null!=e?c(e,"globalTexts"):e)?c(n,"text_6"):n,e))+"</span>\n</a>\n"},useData:!0,useDepths:!0})},{"hbsfy/runtime":413}],619:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r,o){var a,s=t.lambda,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <div class="slide">\r\n                        <img src="'+l(s(null!=(a=o[0][0])?t(a,"mobile_picture"):a,e))+'" data-desktop="'+l(s(null!=(a=o[0][0])?t(a,"desktop_picture"):a,e))+'" data-mobile="'+l(s(null!=(a=o[0][0])?t(a,"mobile_picture"):a,e))+'">\r\n                </div>\r\n'},3:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div class="countdown-wrapper">\r\n                    <div class="countdown">\r\n                        <div class="pie spinner"></div>\r\n                        <div class="pie filler"></div>\r\n                    </div>\r\n                    <a>0'+t.escapeExpression((a[1]&&s(a[1],"increment")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},o[0][1],1,{name:"../increment",hash:{},data:r,blockParams:o,loc:{start:{line:28,column:24},end:{line:28,column:46}}}))+"</a>\r\n                </div>\r\n"},5:function(t,e,n,i,r,o,a){var s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'        <div class="'+c("function"==typeof(n=null!=(n=u(n,"type")||(null!=e?u(e,"type"):e))?n:l)?n.call(s,{name:"type",hash:{},data:r,blockParams:o,loc:{start:{line:35,column:20},end:{line:35,column:28}}}):n)+'" id="push-'+c((a[1]&&u(a[1],"increment")||l).call(s,o[0][1],"1",{name:"../increment",hash:{},data:r,blockParams:o,loc:{start:{line:35,column:39},end:{line:35,column:63}}}))+'">\r\n            <h3>'+(null!=(n=t.lambda(null!=(n=o[0][0])?u(n,"title"):n,e))?n:"")+"</h3>\r\n"+(null!=(n=(a[1]&&u(a[1],"ifEqual")||l).call(s,null!=(n=o[0][0])?u(n,"type"):n,"teaser",{name:"../ifEqual",hash:{},fn:t.program(6,r,0,o,a),inverse:t.program(24,r,0,o,a),data:r,blockParams:o,loc:{start:{line:37,column:12},end:{line:113,column:27}}}))?n:"")+"        </div>\r\n"},6:function(t,e,n,i,r,o,a){var s,l=t.lambda,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                <p>"+(null!=(s=l(null!=(s=o[1][0])?c(s,"description"):s,e))?s:"")+'</p>\r\n                <img src="'+t.escapeExpression(l(null!=(s=o[1][0])?c(s,"visuel"):s,e))+'" />\r\n'+(null!=(s=(a[2]&&c(a[2],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=o[1][0])?c(s,"video_type"):s,null,{name:"../../ifEqual",hash:{},fn:t.program(7,r,0,o,a),inverse:t.program(14,r,0,o,a),data:r,blockParams:o,loc:{start:{line:40,column:16},end:{line:70,column:34}}}))?s:"")},7:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.lambda,h=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <a\r\n                        data-category="Content"\r\n                        data-action="Redirection::'+(null!=(s=(a[2]&&d(a[2],"ifEqual")||c).call(l,null!=(s=o[2][0])?d(s,"is_external"):s,1,{name:"../../ifEqual",hash:{},fn:t.program(8,r,0,o,a),inverse:t.program(10,r,0,o,a),data:r,blockParams:o,loc:{start:{line:43,column:50},end:{line:43,column:130}}}))?s:"")+'"\r\n                        data-label="'+h(u(null!=(s=o[2][0])?d(s,"title"):s,e))+'"\r\n                        class="button basic-button"\r\n                        href="'+h(u(null!=(s=o[2][0])?d(s,"lien_push"):s,e))+'"\r\n                        '+(null!=(s=(a[2]&&d(a[2],"ifEqual")||c).call(l,null!=(s=o[2][0])?d(s,"is_external"):s,1,{name:"../../ifEqual",hash:{},fn:t.program(12,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:47,column:24},end:{line:47,column:95}}}))?s:"")+"\r\n                    >"+(null!=(s=u(null!=(s=o[2][0])?d(s,"label_cta"):s,e))?s:"")+"</a>\r\n"},8:function(t,e,n,i,r){return"External"},10:function(t,e,n,i,r){return"Internal"},12:function(t,e,n,i,r){return'target="_blank"'},14:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(e=(a[2]&&s(a[2],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(e=o[2][0])?s(e,"video_type"):e,0,{name:"../../ifEqual",hash:{},fn:t.program(15,r,0,o,a),inverse:t.program(17,r,0,o,a),data:r,blockParams:o,loc:{start:{line:50,column:20},end:{line:69,column:38}}}))?e:""},15:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,u=t.lambda,h=t.escapeExpression,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <a\r\n                            data-category="Content"\r\n                            data-action="Redirection::'+(null!=(s=(a[2]&&d(a[2],"ifEqual")||c).call(l,null!=(s=o[3][0])?d(s,"is_external"):s,1,{name:"../../ifEqual",hash:{},fn:t.program(8,r,0,o,a),inverse:t.program(10,r,0,o,a),data:r,blockParams:o,loc:{start:{line:53,column:54},end:{line:53,column:134}}}))?s:"")+'"\r\n                            data-label="'+h(u(null!=(s=o[3][0])?d(s,"title"):s,e))+'"\r\n                            class="button basic-button"\r\n                            href="'+h(u(null!=(s=o[3][0])?d(s,"lien_push"):s,e))+'"\r\n                            '+(null!=(s=(a[2]&&d(a[2],"ifEqual")||c).call(l,null!=(s=o[3][0])?d(s,"is_external"):s,1,{name:"../../ifEqual",hash:{},fn:t.program(12,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:57,column:28},end:{line:57,column:99}}}))?s:"")+"\r\n                        >"+(null!=(s=u(null!=(s=o[3][0])?d(s,"label_cta"):s,e))?s:"")+"</a>\r\n"},17:function(t,e,n,i,r,o,a){var s,l=t.lambda,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <a class="button basic-button"\r\n                           data-type="video"\r\n                           data-category="Content"\r\n                           data-action="Display::Popin"\r\n                           data-label="'+t.escapeExpression(l(null!=(s=o[3][0])?h(s,"title"):s,e))+'"\r\n                           '+(null!=(s=(a[2]&&h(a[2],"ifEqual")||u).call(c,null!=(s=o[3][0])?h(s,"video_type"):s,1,{name:"../../ifEqual",hash:{},fn:t.program(18,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:65,column:27},end:{line:65,column:116}}}))?s:"")+"\r\n                           "+(null!=(s=(a[2]&&h(a[2],"ifEqual")||u).call(c,null!=(s=o[3][0])?h(s,"video_type"):s,2,{name:"../../ifEqual",hash:{},fn:t.program(20,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:66,column:27},end:{line:66,column:114}}}))?s:"")+"\r\n                           "+(null!=(s=(a[2]&&h(a[2],"ifEqual")||u).call(c,null!=(s=o[3][0])?h(s,"video_type"):s,3,{name:"../../ifEqual",hash:{},fn:t.program(22,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:67,column:27},end:{line:67,column:118}}}))?s:"")+'\r\n                           data-popin="true" >'+(null!=(s=l(null!=(s=o[3][0])?h(s,"label_cta"):s,e))?s:"")+"</a>\r\n"},18:function(t,e,n,i,r,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'data-youtube="'+t.escapeExpression(t.lambda(null!=(t=o[4][0])?a(t,"lien_push"):t,e))+'"'},20:function(t,e,n,i,r,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'data-youku="'+t.escapeExpression(t.lambda(null!=(t=o[4][0])?a(t,"lien_push"):t,e))+'"'},22:function(t,e,n,i,r,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'data-local-url="'+t.escapeExpression(t.lambda(null!=(t=o[4][0])?a(t,"lien_push"):t,e))+'"'},24:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(e=(a[2]&&s(a[2],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(e=o[1][0])?s(e,"type"):e,"push_texte_lien",{name:"../../ifEqual",hash:{},fn:t.program(25,r,0,o,a),inverse:t.program(27,r,0,o,a),data:r,blockParams:o,loc:{start:{line:72,column:16},end:{line:112,column:34}}}))?e:""},25:function(t,e,n,i,r,o){var a,s=t.lambda,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"                    <p>"+(null!=(a=s(null!=(a=o[2][0])?t(a,"description"):a,e))?a:"")+'</p>\r\n                    <a\r\n                        data-category="Content"\r\n                        data-action="Redirection::Internal"\r\n                        data-label="'+l(s(null!=(a=o[2][0])?t(a,"title"):a,e))+'"\r\n                        class="button basic-button"\r\n                        href="'+l(s(null!=(a=o[2][0])?t(a,"lien_push"):a,e))+'"\r\n                        target="_blank"\r\n                    >'+(null!=(a=s(null!=(a=o[2][0])?t(a,"label_cta"):a,e))?a:"")+"</a>\r\n"},27:function(t,e,n,i,r,o,a){var s,e=null!=e?e:t.nullContext||{},l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div class="month-list">\r\n'+(null!=(s=l(n,"each").call(e,null!=(s=o[2][0])?l(s,"formatted_events"):s,{name:"each",hash:{},fn:t.program(28,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:84,column:20},end:{line:88,column:29}}}))?s:"")+'                </div>\r\n                <div class="event-list">\r\n'+(null!=(s=l(n,"each").call(e,null!=(s=o[2][0])?l(s,"formatted_events"):s,{name:"each",hash:{},fn:t.program(30,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:91,column:20},end:{line:110,column:29}}}))?s:"")+"                </div>\r\n"},28:function(t,e,n,i,r,o){var a=t.lambda,s=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <div class="month" data-monthindex="'+s(a(o[0][1],e))+'">\r\n                            <a>'+s(a(null!=(s=o[0][0])?t(s,"label"):s,e))+"</a>\r\n                        </div>\r\n"},30:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <div class="events-container">\r\n'+(null!=(n=s(n,"each").call(null!=e?e:t.nullContext||{},null!=(n=o[0][0])?s(n,"events"):n,{name:"each",hash:{},fn:t.program(31,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:93,column:28},end:{line:108,column:37}}}))?n:"")+"                        </div>\r\n"},31:function(t,e,n,i,r,o,a){var s,l=t.lambda,c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                <div class="event">\r\n                                    <div class="header">\r\n                                        <div class="date-wrapper">\r\n                                            <div class="calendar">\r\n                                                <div class="short-month">'+c(l(null!=(s=null!=(s=o[0][0])?u(s,"start"):s)?u(s,"month"):s,e))+(null!=(s=(a[4]&&u(a[4],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=(s=o[0][0])?u(s,"start"):s)?u(s,"month"):s,null!=(s=null!=(s=o[0][0])?u(s,"end"):s)?u(s,"month"):s,{name:"../../../../ifEqual",hash:{},fn:t.program(32,r,0,o,a),inverse:t.program(34,r,0,o,a),data:r,blockParams:o,loc:{start:{line:98,column:94},end:{line:98,column:206}}}))?s:"")+'</div>\r\n                                                <div class="from-to">'+c(l(null!=(s=null!=(s=o[0][0])?u(s,"start"):s)?u(s,"day"):s,e))+" - "+c(l(null!=(s=null!=(s=o[0][0])?u(s,"end"):s)?u(s,"day"):s,e))+'</div>\r\n                                            </div>\r\n                                        </div>\r\n                                        <div class="title-wrapper">\r\n                                            <h4>'+(null!=(s=l(null!=(s=o[0][0])?u(s,"title"):s,e))?s:"")+"</h4>\r\n                                        </div>\r\n                                    </div>\r\n                                    <p>"+(null!=(s=l(null!=(s=o[0][0])?u(s,"description"):s,e))?s:"")+"</p>\r\n                                </div>\r\n"},32:function(t,e,n,i,r){return""},34:function(t,e,n,i,r,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return" - "+t.escapeExpression(t.lambda(null!=(t=null!=(t=o[1][0])?a(t,"end"):t)?a(t,"month"):t,e))},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\r\n<div id="landing" class="landing">\r\n    <div class="landing-inner">\r\n        <h2>'+t.escapeExpression("function"==typeof(s=null!=(s=c(n,"title")||(null!=e?c(e,"title"):e))?s:t.hooks.helperMissing)?s.call(l,{name:"title",hash:{},data:r,blockParams:o,loc:{start:{line:4,column:12},end:{line:4,column:21}}}):s)+'</h2>\r\n        <div class="slideshow-wrapper">\r\n            <div class="slideshow">\r\n'+(null!=(s=c(n,"each").call(l,null!=e?c(e,"slideshow"):e,{name:"each",hash:{},fn:t.program(1,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:7,column:16},end:{line:19,column:21}}}))?s:"")+'        </div>\r\n        <div class="nav" dir="ltr">\r\n'+(null!=(s=c(n,"each").call(l,null!=e?c(e,"slideshow"):e,{name:"each",hash:{},fn:t.program(3,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:22,column:12},end:{line:30,column:21}}}))?s:"")+'        </div>\r\n    </div>\r\n    <div class="push-list">\r\n'+(null!=(s=c(n,"each").call(l,null!=e?c(e,"push_list"):e,{name:"each",hash:{},fn:t.program(5,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:34,column:4},end:{line:115,column:13}}}))?s:"")+"    </div>\r\n</div>\r\n</div>"},useData:!0,useDepths:!0,useBlockParams:!0})},{"hbsfy/runtime":413}],620:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r,o){var a,s=t.lambda,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <div class="slide" id="'+l(s(o[0][1],e))+'"  data-desktop="'+l(s(null!=(a=o[0][0])?t(a,"desktop_picture"):a,e))+'" data-mobile="'+l(s(null!=(a=o[0][0])?t(a,"mobile_picture"):a,e))+'">\r\n                        <div class="info-slide">\r\n                            <div class="text-slide">'+(null!=(a=s(null!=(a=o[0][0])?t(a,"description"):a,e))?a:"")+'</div>\r\n                            <img src="'+l(s(null!=(a=o[0][0])?t(a,"logo"):a,e))+'" class="logo-slide">\r\n                            <div class="block-text">\r\n                                <div class="title-slide">'+l(s(null!=(a=o[0][0])?t(a,"title"):a,e))+'</div>\r\n                                <div class="subtitle-slide">'+l(s(null!=(a=o[0][0])?t(a,"subtitle"):a,e))+'</div>\r\n                            </div>\r\n                            <div class="button discover-button" data-anchor="'+l(s(o[0][1],e))+'">\r\n                                <span class="circle arrow-bottom-icon"></span>\r\n                            </div>\r\n                        </div>\r\n                       \r\n                    </div>\r\n'},3:function(t,e,n,i,r,o,a){var s=null!=e?e:t.nullContext||{},l=t.escapeExpression,c=t.lambda,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div class="push-list" id="push-'+l((a[1]&&u(a[1],"increment")||t.hooks.helperMissing).call(s,o[0][1],"1",{name:"../increment",hash:{},data:r,blockParams:o,loc:{start:{line:27,column:48},end:{line:27,column:72}}}))+'">\r\n                    <div class="block-title">\r\n                        <div class="beftitle">'+l(c(null!=a[1]?u(a[1],"title"):a[1],e))+'</div>\r\n                        <div class="title">'+l(c(null!=(l=o[0][0])?u(l,"titre"):l,e))+'</div>\r\n                        <div class="underliner"></div>\r\n                    </div>\r\n                    <div class="push-item-block">\r\n'+(null!=(l=u(n,"each").call(s,null!=(l=o[0][0])?u(l,"push_list"):l,{name:"each",hash:{},fn:t.program(4,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:34,column:24},end:{line:56,column:33}}}))?l:"")+"                    </div>\r\n                </div>\r\n"},4:function(t,e,n,i,r,o,a){var s,l=t.lambda,c=t.escapeExpression,u=null!=e?e:t.nullContext||{},h=t.hooks.helperMissing,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <div>\r\n                            <div class="push-item">\r\n                                <div class="block-picture">\r\n                                    <img src="'+c(l(null!=(s=o[0][0])?d(s,"visuel"):s,e))+'" />\r\n                                    <div class="player-icon"></div>\r\n                                    <a class="button basic-button"\r\n                                    data-type="video"\r\n                                    data-category="Content"\r\n                                    data-action="Display::Popin"\r\n                                    data-label="'+c(l(null!=(s=o[0][0])?d(s,"title"):s,e))+'"\r\n                                    '+(null!=(s=(a[2]&&d(a[2],"ifEqual")||h).call(u,null!=(s=o[0][0])?d(s,"video_type"):s,1,{name:"../../ifEqual",hash:{},fn:t.program(5,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:45,column:36},end:{line:45,column:133}}}))?s:"")+"\r\n                                    "+(null!=(s=(a[2]&&d(a[2],"ifEqual")||h).call(u,null!=(s=o[0][0])?d(s,"video_type"):s,2,{name:"../../ifEqual",hash:{},fn:t.program(7,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:46,column:36},end:{line:46,column:131}}}))?s:"")+"\r\n                                    "+(null!=(s=(a[2]&&d(a[2],"ifEqual")||h).call(u,null!=(s=o[0][0])?d(s,"video_type"):s,3,{name:"../../ifEqual",hash:{},fn:t.program(9,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:47,column:36},end:{line:47,column:135}}}))?s:"")+'\r\n                                    data-popin="true" ></a>\r\n                                </div>\r\n                                <div class="push-item-info">\r\n                                    <div class="push-item-title">'+c(l(null!=(s=o[0][0])?d(s,"title"):s,e))+'</div>\r\n                                    <div class="push-item-text">'+c(l(null!=(s=o[0][0])?d(s,"description"):s,e))+"</div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n"},5:function(t,e,n,i,r,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'data-youtube="'+t.escapeExpression(t.lambda(null!=(t=o[1][0])?a(t,"lien_push"):t,e))+'"'},7:function(t,e,n,i,r,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'data-youku="'+t.escapeExpression(t.lambda(null!=(t=o[1][0])?a(t,"lien_push"):t,e))+'"'},9:function(t,e,n,i,r,o){var a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'data-local-url="'+t.escapeExpression(t.lambda(null!=(t=o[1][0])?a(t,"lien_push"):t,e))+'"'},11:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div class="more-to-come">\r\n                    <div class="more">'+l("function"==typeof(o=null!=(o=t(n,"more_to_come")||(null!=e?t(e,"more_to_come"):e))?o:s)?o.call(a,{name:"more_to_come",hash:{},data:r,loc:{start:{line:62,column:38},end:{line:62,column:54}}}):o)+'</div>\r\n                    <div class="more-text">'+l("function"==typeof(o=null!=(o=t(n,"more_to_come_text")||(null!=e?t(e,"more_to_come_text"):e))?o:s)?o.call(a,{name:"more_to_come_text",hash:{},data:r,loc:{start:{line:63,column:43},end:{line:63,column:64}}}):o)+'</div>\r\n                    <div class="arrow-bottom"></div>\r\n                </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\r\n<div id="landing" class="landing landing-carousel">\r\n    <div class="landing-inner">\r\n        <div class="slideshow-wrapper">\r\n            <div class="slideshow">\r\n'+(null!=(s=c(n,"each").call(l,null!=e?c(e,"slideshow"):e,{name:"each",hash:{},fn:t.program(1,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:6,column:16},end:{line:22,column:25}}}))?s:"")+'            </div>\r\n        </div>\r\n        <div class="push-list-block">\r\n'+(null!=(s=c(n,"each").call(l,null!=e?c(e,"push_list"):e,{name:"each",hash:{},fn:t.program(3,r,2,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:26,column:12},end:{line:59,column:21}}}))?s:"")+(null!=(s=c(n,"if").call(l,null!=(s=null!=e?c(e,"push_list"):e)?c(s,"length"):s,{name:"if",hash:{},fn:t.program(11,r,0,o,a),inverse:t.noop,data:r,blockParams:o,loc:{start:{line:60,column:12},end:{line:66,column:19}}}))?s:"")+"        </div>\r\n        \r\n    </div>\r\n</div>"},useData:!0,useDepths:!0,useBlockParams:!0})},{"hbsfy/runtime":413}],621:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=l(t("backbone.marionette")),a=l(t("underscore")),s=l(t("./template.hbs"));function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}c(h,u=o.default.ItemView),h.prototype.ui=function(){return{burger:".burger-button, .burger-label",subnav:".car-nav",mute:".mute-button",selector:".car-nav-current"}},h.prototype.triggers=function(){return{"click @ui.burger":"click:burger","click @ui.mute":{event:"click:mute",preventDefault:!1}}},h.prototype.events=function(){return{"click .logo-origins":"onHomeClick","click .logo-citroen":"onHomeClick","click @ui.subnav [data-anchor]":"onSubnavClick"}},h.prototype.serializeData=function(){return this.options},h.prototype.onShow=function(){$(".cookies .close-button").on("click",function(t){$("#cookies-region").animate({height:0},{step:function(){return $(window).trigger("resize")}},400)})},h.prototype.onHomeClick=function(t){this.triggerMethod("click:home",t)},h.prototype.onSubnavClick=function(t){t.preventDefault();var t=$(t.currentTarget),e=t.attr("data-anchor"),n=t.parent(),i=n.find(".over").css("color");this.ui.selector.width(n.width()),this.ui.selector.css("left",n.offset().left-this.ui.subnav.offset().left),this.ui.selector.css("background-color",i),this.ui.subnav.find("li a").removeClass("current"),t.addClass("current"),this.triggerMethod("click:subnav",e)},h.prototype.reveal=function(t){this.ui.burger.show(),this._enabledSubnav(t),t&&this.setSticky(!0)},h.prototype.setSticky=function(t){t?this.$el.addClass("sticky"):this.$el.removeClass("sticky")},h.prototype.setColor=function(t){$(this.ui.subnav.find(".car-nav-button:first-child .over")[0]).css("color",t),this.ui.mute.css("color",t),this.ui.selector.css("background-color",t),a.default.each(this.ui.subnav.find("[data-anchor]"),function(t){var e=$(t).data("anchor");$(e)[0]?$(t).parent().show():$(t).parent().hide()})},h.prototype.setSelect=function(t){var t=this.ui.subnav.find('[data-anchor="#'+t+'"]'),e=t.parent(),n=e.find(".over").css("color");null!=e[0]&&(this.ui.subnav.find("[data-anchor]").removeClass("current"),t.addClass("current"),this.ui.selector.width(e.width()),this.ui.selector.css("left",e.offset().left-this.ui.subnav.offset().left),this.ui.selector.css("background-color",n))},h.prototype._enabledSubnav=function(t){this.ui.subnav.css("opacity",t?1:0),this.ui.subnav.css("pointer-events",t?"auto":"none")},i(h,[{key:"className",get:function(){return"nav-bar"}},{key:"template",get:function(){return s.default}}]);var u,t=h;function h(){var t=this,e=h;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=u.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"./template.hbs":622,"backbone.marionette":42,underscore:576}],622:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r){return'checked="checked"'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var o,a,s=t.lambda,l=t.escapeExpression,c=null!=e?e:t.nullContext||{},u=t.hooks.helperMissing,h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<nav class="nav" role="navigation">\r\n    <div class="burger-container">\r\n        <a href="#" class="button burger-button" data-category="Header" data-action="Display::Expandbar::Menu" data-label="menu"><span class="burger-icon"></span></a>\r\n        <a href="#" class="burger-label" data-category="Header" data-action="Display::Expandbar::Menu" data-label="menu">'+l(s(null!=(o=null!=e?h(e,"menus"):e)?h(o,"menu_label"):o,e))+'</a>\r\n    </div>\r\n    <a href="'+l("function"==typeof(a=null!=(a=h(n,"defaultPage")||(null!=e?h(e,"defaultPage"):e))?a:u)?a.call(c,{name:"defaultPage",hash:{},data:r,loc:{start:{line:6,column:13},end:{line:6,column:28}}}):a)+'" class="button logo-origins" data-category="Header" data-action="Redirection::Internal" data-label="logo"><h1 class="sr-only">Citroën Origins</h1></a>\r\n\r\n    <ul class="car-nav show-for-large-up">\r\n        <li><a href="#" data-anchor="#edito" class="button car-nav-button current" data-category="Header" data-action="Redirection::Internal" data-label="360"><span class="over" style="color: #DA291C">360°</span><span class="out">360°</span></a></li>\r\n        <li><a href="#" data-anchor="#technical-sheet" class="button car-nav-button technical-sheet" data-category="Header" data-action="Redirection::Internal" data-label="'+l(s(null!=(o=null!=e?h(e,"sections"):e)?h(o,"text_title_1"):o,e))+'"><span class="over" style="color: #DA291C">'+l(s(null!=(o=null!=e?h(e,"sections"):e)?h(o,"text_title_1"):o,e))+'</span><span class="out">'+l(s(null!=(o=null!=e?h(e,"sections"):e)?h(o,"text_title_1"):o,e))+'</span></a></li>\r\n        <li><a href="#" data-anchor="#gallery" class="button car-nav-button photos" data-category="Header" data-action="Redirection::Internal" data-label="'+l(s(null!=(o=null!=e?h(e,"sections"):e)?h(o,"text_title_2"):o,e))+'"><span class="over" style="color: #DA291C">'+l(s(null!=(o=null!=e?h(e,"sections"):e)?h(o,"text_title_2"):o,e))+'</span><span class="out">'+l(s(null!=(o=null!=e?h(e,"sections"):e)?h(o,"text_title_2"):o,e))+'</span></a></li>\r\n        <li><a href="#" data-anchor="#documents" class="button car-nav-button documents" data-category="Header" data-action="Redirection::Internal" data-label="'+l(s(null!=(o=null!=e?h(e,"sections"):e)?h(o,"text_title_3"):o,e))+'"><span class="over" style="color: #DA291C">'+l(s(null!=(o=null!=e?h(e,"sections"):e)?h(o,"text_title_3"):o,e))+'</span><span class="out">'+l(s(null!=(o=null!=e?h(e,"sections"):e)?h(o,"text_title_3"):o,e))+'</span></a></li>\r\n        <li><a href="#" data-anchor="#participation" class="button car-nav-button documents" data-category="Header" data-action="Redirection::Internal" data-label="'+l(s(null!=(o=null!=e?h(e,"sections"):e)?h(o,"text_title_7"):o,e))+'"><span class="over" style="color: #DA291C">'+l(s(null!=(o=null!=(o=null!=(o=null!=e?h(e,"sections"):e)?h(o,"map_settings_and_labels"):o)?h(o,"translations"):o)?h(o,"car_map_title"):o,e))+'</span><span class="out">'+l(s(null!=(o=null!=(o=null!=(o=null!=e?h(e,"sections"):e)?h(o,"map_settings_and_labels"):o)?h(o,"translations"):o)?h(o,"car_map_title"):o,e))+'</span></a></li>\r\n        <li><a href="#" data-anchor="#design" class="button car-nav-button design" data-category="Header" data-action="Redirection::Internal" data-label="'+l(s(null!=(o=null!=e?h(e,"sections"):e)?h(o,"text_title_4"):o,e))+'"><span class="over" style="color: #DA291C">'+l(s(null!=(o=null!=e?h(e,"sections"):e)?h(o,"text_title_4"):o,e))+'</span><span class="out">'+l(s(null!=(o=null!=e?h(e,"sections"):e)?h(o,"text_title_4"):o,e))+'</span></a></li>\r\n\r\n        <li><input type="checkbox" id="mute-button" class="button mute-button" '+(null!=(o=h(n,"if").call(c,null!=e?h(e,"mute"):e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r,loc:{start:{line:16,column:79},end:{line:16,column:115}}}))?o:"")+'><label for="mute-button" class="car-nav-button"></label></li>\r\n        <li class="car-nav-current" style="background: #DA291C"></li>\r\n    </ul>\r\n\r\n    <a href="'+l("function"==typeof(a=null!=(a=h(n,"defaultPage")||(null!=e?h(e,"defaultPage"):e))?a:u)?a.call(c,{name:"defaultPage",hash:{},data:r,loc:{start:{line:20,column:13},end:{line:20,column:28}}}):a)+'" class="button logo-citroen" data-category="Header" data-action="Redirection::Internal" data-label="logo citroen"><span class="sr-only">'+l(s(null!=(o=null!=(o=null!=(o=null!=e?h(e,"menus"):e)?h(o,"data"):o)?h(o,"0"):o)?h(o,"link_path"):o,e))+"</span></a>\r\n</nav>\r\n"},useData:!0})},{"hbsfy/runtime":413}],623:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=s(t("backbone.marionette")),a=s(t("./template.hbs"));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}l(u,c=o.default.ItemView),u.prototype.ui=function(){return{close:".close-button",links:".carquote-inner a",inner:".carquote-inner"}},u.prototype.events=function(){return{"click @ui.close":"onCloseClick","click @ui.links":"onLinkClick",click:"onCloseClick"}},u.prototype.serializeData=function(){return{title:this.options.title,text:this.options.text.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(?:\r\n|\n\r|\n)+/g,"<br>"),color:this.options.color}},u.prototype.onShow=function(){var t;this.options.anchor&&(t=this.$el.find('[id="'+this.options.anchor+'"]').offset().top-this.$el.offset().top-20,this.$el.scrollTop(t))},u.prototype.onCloseClick=function(t){0!=$(t.target).closest(this.ui.inner).length&&!$(t.target).hasClass("close-button")||this.destroy()},u.prototype.onLinkClick=function(t){"_blank"!=t.currentTarget.target&&this.destroy()},i(u,[{key:"className",get:function(){return"carquote"}},{key:"template",get:function(){return a.default}}]);var c,t=u;function u(){var t=this,e=u;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=c.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"./template.hbs":624,"backbone.marionette":42}],624:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r){return'\t<p class="close-button-ctr"><button type="button" class="button close-button close-icon"><span class="sr-only">Close</span></button></p>\n'},3:function(t,e,n,i,r){return'\t\t<p class="close-button-ctr"><button type="button" class="button close-button close-icon"><span class="sr-only">Close</span></button></p>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var o=null!=e?e:t.nullContext||{},a=t.hooks.helperMissing,s="function",l=t.hooks.blockHelperMissing,c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]},h="",d=null!=(d=u(n,"isSmall")||(null!=e?u(e,"isSmall"):e))?d:a,p={name:"isSmall",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r,loc:{start:{line:1,column:0},end:{line:3,column:12}}},f=typeof d==s?d.call(o,p):d;return null!=(f=u(n,"isSmall")?f:l.call(e,f,p))&&(h+=f),h+='<div class="carquote-inner">\n',d=null!=(d=u(n,"isSmall")||(null!=e?u(e,"isSmall"):e))?d:a,p={name:"isSmall",hash:{},fn:t.noop,inverse:t.program(3,r,0),data:r,loc:{start:{line:5,column:4},end:{line:7,column:16}}},f=typeof d==s?d.call(o,p):d,null!=(f=u(n,"isSmall")?f:l.call(e,f,p))&&(h+=f),h+'    <h2 class="carquote-title">'+c(typeof(d=null!=(d=u(n,"title")||(null!=e?u(e,"title"):e))?d:a)==s?d.call(o,{name:"title",hash:{},data:r,loc:{start:{line:8,column:31},end:{line:8,column:40}}}):d)+'</h2>\n    <div class="carquote-quote1" style="color: '+c(typeof(d=null!=(d=u(n,"color")||(null!=e?u(e,"color"):e))?d:a)==s?d.call(o,{name:"color",hash:{},data:r,loc:{start:{line:9,column:47},end:{line:9,column:56}}}):d)+'"></div>\n    <p class="carquote-text">'+(null!=(f=typeof(d=null!=(d=u(n,"text")||(null!=e?u(e,"text"):e))?d:a)==s?d.call(o,{name:"text",hash:{},data:r,loc:{start:{line:10,column:29},end:{line:10,column:39}}}):d)?f:"")+'</p>\n\t<div class="carquote-quote2" style="color: '+c(typeof(d=null!=(d=u(n,"color")||(null!=e?u(e,"color"):e))?d:a)==s?d.call(o,{name:"color",hash:{},data:r,loc:{start:{line:11,column:44},end:{line:11,column:53}}}):d)+'"></div>\n</div>\n'},useData:!0})},{"hbsfy/runtime":413}],625:[function(l,t,c){!function(I){!function(){"use strict";Object.defineProperty(c,"__esModule",{value:!0});var t=function(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t};function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var e=r(l("backbone.marionette")),j=r(l("custom-select")),n=r(l("./template.hbs"));function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}o(s,a=e.default.ItemView),s.prototype.ui=function(){return{close:".close-button"}},s.prototype.events=function(){return{"click @ui.close":"onCloseClick","click a.locale-button":"onLocaleLinkClick"}},s.prototype.serializeData=function(){return this.model},s.prototype.onLocaleLinkClick=function(t){this.$el.find(".current").toggleClass("current",!1),$(t.currentTarget).toggleClass("current",!0),document.body.offsetWidth},s.prototype.onLocaleClick=function(t){t.preventDefault(),t.stopImmediatePropagation();t=$(t.target).data("locale");localStorage.setItem("lang",t),document.location="file://"+I.__dirname+"/app.html"},s.prototype.onCloseClick=function(t){t.preventDefault(),this.destroy()},s.prototype.onShow=function(t){if(window.matchMedia("(min-device-width: 1024px), (min-device-height: 1024px)").matches){var e=function t(e){var i,r,o,n=e.currentTarget;n.removeEventListener("load",t),n.removeEventListener("error",t),"error"==e.type||0===n.naturalWidth||0<n.naturalWidth%448||0<n.naturalHeight%448?console.warn("Invalid image: "+n.src):a.complete&&s.complete&&(a.removeEventListener("load",t),a.removeEventListener("error",t),s.removeEventListener("load",t),s.removeEventListener("error",t),a.naturalWidth!==s.naturalWidth||a.naturalHeight!==s.naturalHeight?console.warn("Images don't match"):((e=l.getContext("2d")).drawImage(a,0,0),e.globalCompositeOperation="destination-in",e.drawImage(s,0,0),e.drawImage(l,0,0),a.src=s.src="about:blank",a=s=null,n=document.createElement("canvas"),e=document.querySelector(".dsp-deco"),window.getComputedStyle(e).backgroundImage,n.classList.add("dsp-deco"),n.setAttribute("aria-hidden","true"),n.width=712,n.height=596,n.style.background="none",e.parentNode.replaceChild(n,e),i=n.getContext("2d"),r=-1,o=l.width/448,requestAnimationFrame(function t(){r<0&&(r=Date.now());var e=Date.now()-r,e=Math.round(e/(1e3/d))%h,n=e%o*448,e=448*Math.floor(e/o);i.clearRect(138,59,448,448),i.drawImage(l,n,e,448,448,138,59,448,448),requestAnimationFrame(t)})))},a=new Image,s=new Image,t=t.model.assetsFolder()+"/assets/img/",n={width:4480,height:11200},i={width:4032,height:4032},r=!0,l=document.createElement("canvas");try{if(-1!=navigator.userAgent.indexOf("Android"))throw new Error("Unsupported canvas area for this plaform");l.width=n.width,l.height=n.height;var o=l.getContext("2d"),c=l.width-1,u=l.height-1;if(o.save(),o.fillStyle="red",o.fillRect(c,u,1,1),255!==o.getImageData(c,u,1,1).data[0])throw new Error("Unsupported canvas area")}catch(t){r=!1,l.width=i.width,l.height=i.height}finally{(o=l.getContext("2d")).restore()}var h=r?250:81,d=r?25:12,c=(a.addEventListener("load",e),a.addEventListener("error",e),s.addEventListener("load",e),s.addEventListener("error",e),r?n:i);a.src=t+"globe-rgb_"+c.width+"x"+c.height+".jpg",s.src=t+"globe-alpha_"+c.width+"x"+c.height+".png",a&&s&&a.complete&&s.complete&&e({currentTarget:s})}var p=document.querySelectorAll(".dsp-region"),f=document.querySelectorAll(".dsp-main"),u=document.querySelector(".dsp-nav"),m=u.querySelector(".dsp-region-ul"),g=(m.classList.add("dsp-region-ul--1"),u.insertAdjacentHTML("beforeend",document.getElementById("tpl1").textContent),u.querySelector(".dsp-region-ul--2"));2==p.length&&u.classList.add("dsp-nav--dual");for(var v,y,_=0,b=0,x=0;_<p.length;_++)y=(v=p[_]).offsetHeight,(b<=x?(b+=y,m):(x+=y,g)).appendChild(v);var w=document.querySelectorAll(".dsp-country");function T(t){t.currentTarget.querySelector(".dsp-countr__lang-lnk").click()}for(var S=0;S<w.length;S++){var C=w[S];1<C.querySelectorAll(".dsp-countr__lang-lnk").length||(C.classList.add("dsp-country--single-locale"),C.addEventListener("click",T))}var E=document.querySelectorAll(".dsp-country-wrp"),M=null;document.addEventListener("touchstart",function(t){for(var e=null,n=0;n<E.length;n++){var i=E[n],r=t.target.compareDocumentPosition(i);if(0==r||8&r){e=i;break}}e!==M&&(M&&M.classList.remove("dsp-country-wrp--active"),e&&(e.style,e.classList.add("dsp-country-wrp--active")),M=e)}),u.insertAdjacentHTML("beforeend",document.getElementById("tpl2").textContent);var P=u.querySelector(".dsp-nav-form"),k=(P.addEventListener("submit",function(t){t.preventDefault();var t=$(t.target),e=t.data("locale"),t=t.data("direction");f[0].getAttribute("data-isapp")?(localStorage.setItem("lang",e),localStorage.setItem("dir",t),document.location="file://"+I.__dirname+"/app.html"):document.location=P.action}),u.querySelector("#region-select"));k.addEventListener("change",L);for(var A,O=0;O<p.length;O++)(A=document.createElement("option")).value=O,A.label=A.text=p[O].querySelector(".dsp-region__name").textContent,k.appendChild(A);(0,j.default)("#region-select");var R=u.querySelector("#country-select");function L(){for(var t=p[k.selectedIndex].querySelectorAll(".dsp-country");R.firstChild;)R.removeChild(R.firstChild);for(var e,n,i,r,o,a,s=0;s<t.length;s++){if(1<(o=(e=t[s]).querySelectorAll(".dsp-countr__lang-lnk")).length)for(i=document.createElement("optgroup"),n=0;n<o.length;n++)r=document.createElement("option"),a=o[n],r.value=a.href,r.label=r.text=a.textContent,f[0].getAttribute("data-isapp")&&(r.setAttribute("data-locale",a.getAttribute("data-locale")),r.setAttribute("data-direction",a.getAttribute("data-direction"))),i.appendChild(r);else(i=document.createElement("option")).className+=" optgroup",i.value=o[0].href,f[0].getAttribute("data-isapp")&&(i.setAttribute("data-locale",o[0].getAttribute("data-locale")),i.setAttribute("data-direction",o[0].getAttribute("data-direction"))),i.text=e.querySelector(".dsp-country__name").textContent;i.label=e.querySelector(".dsp-country__name").textContent,R.appendChild(i)}R.customSelect&&R.customSelect.destroy(),(0,j.default)("#country-select")}function D(){P.action=R.item(R.selectedIndex).value,f[0].getAttribute("data-isapp")&&(P.setAttribute("data-locale",R.item(R.selectedIndex).getAttribute("data-locale")),P.setAttribute("data-direction",R.item(R.selectedIndex).getAttribute("data-direction")))}k.addEventListener("change",D),R.addEventListener("change",D),k.selectedIndex=0,L(),R.selectedIndex=0,D()},t(s,[{key:"className",get:function(){return"locale-selector"}},{key:"template",get:function(){return n.default}}]);var a,e=s;function s(){var t=this,e=s;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=a.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}c.default=e}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./template.hbs":626,"backbone.marionette":42,"custom-select":377}],626:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r){return' data-isapp="true" '},3:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t            <li class="dsp-region">\n                    <p class="dsp-region__name">'+t.escapeExpression("function"==typeof(o=null!=(o=s(n,"region_name")||(null!=e?s(e,"region_name"):e))?o:t.hooks.helperMissing)?o.call(a,{name:"region_name",hash:{},data:r,loc:{start:{line:23,column:48},end:{line:23,column:63}}}):o)+'</p>\n                    <ul class="dsp-region__country-ul">\n'+(null!=(o=s(n,"each").call(a,null!=e?s(e,"markets"):e,{name:"each",hash:{},fn:t.program(4,r,0),inverse:t.noop,data:r,loc:{start:{line:25,column:20},end:{line:38,column:29}}}))?o:"")+"                    </ul>\n                </li>\n"},4:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <li class="dsp-country-wrp">\n                            <div class="dsp-country">\n                                <p class="dsp-country__name">'+t.escapeExpression("function"==typeof(o=null!=(o=s(n,"market_name")||(null!=e?s(e,"market_name"):e))?o:t.hooks.helperMissing)?o.call(a,{name:"market_name",hash:{},data:r,loc:{start:{line:28,column:61},end:{line:28,column:76}}}):o)+"</p>\n"+(null!=(o=s(n,"each").call(a,null!=e?s(e,"langs"):e,{name:"each",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r,loc:{start:{line:29,column:32},end:{line:35,column:41}}}))?o:"")+"                            </div>\n                      </li>\n"},5:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,l="function",c=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                <ul class="dsp-country__lang-ul">\n                                    <li class="dsp-countr__lang">\n                                        <a href="'+c(typeof(o=null!=(o=t(n,"market_lang_url")||(null!=e?t(e,"market_lang_url"):e))?o:s)==l?o.call(a,{name:"market_lang_url",hash:{},data:r,loc:{start:{line:32,column:49},end:{line:32,column:68}}}):o)+'" data-direction="'+c(typeof(o=null!=(o=t(n,"market_lang_direction")||(null!=e?t(e,"market_lang_direction"):e))?o:s)==l?o.call(a,{name:"market_lang_direction",hash:{},data:r,loc:{start:{line:32,column:86},end:{line:32,column:111}}}):o)+'" data-locale="'+c(typeof(o=null!=(o=t(n,"market_lang_code")||(null!=e?t(e,"market_lang_code"):e))?o:s)==l?o.call(a,{name:"market_lang_code",hash:{},data:r,loc:{start:{line:32,column:126},end:{line:32,column:146}}}):o)+'" class="dsp-countr__lang-lnk">'+c(typeof(o=null!=(o=t(n,"market_lang_name")||(null!=e?t(e,"market_lang_name"):e))?o:s)==l?o.call(a,{name:"market_lang_name",hash:{},data:r,loc:{start:{line:32,column:177},end:{line:32,column:197}}}):o)+"&#x200E;</a>\n                                    </li>\n                                </ul>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.lambda,l=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<p class="close-button-ctr"><button type="button" class="button close-button close-icon"><span class="sr-only">Close</span></button></p>\n\n<div class="dsp-main" '+(null!=(o=(c(n,"ifOffline")||e&&c(e,"ifOffline")||t.hooks.helperMissing).call(a,!0,{name:"ifOffline",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r,loc:{start:{line:15,column:22},end:{line:15,column:74}}}))?o:"")+'>\n    <div class="dsp-deco"></div>\n        <div class="dsp-content">\n            <div class="dsp-title"></div>\n            <nav class="dsp-nav">\n\t           <ul class="dsp-region-ul">\n'+(null!=(o=c(n,"each").call(a,null!=(o=null!=e?c(e,"locales"):e)?c(o,"regions"):o,{name:"each",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r,loc:{start:{line:21,column:12},end:{line:41,column:25}}}))?o:"")+'\t           </ul>\n               \x3c!-- #tpl1 and #tpl2 will be inserted here --\x3e\n\t        </nav>\n\t    </div>\n    </div>\n</div>\n<script type="text/x-template" id="tpl1">\n    <ul class="dsp-region-ul dsp-region-ul--2"></ul>\n<\/script>\n<script type="text/x-template" id="tpl2">\n    <form action="#" class="dsp-nav-form">\n        <p class="dsp-nav-form__select-ctr"><label for="region-select" class="dsp-nav-form__label">'+l(s(null!=(o=null!=(o=null!=(o=null!=e?c(e,"page_text"):e)?c(o,"text_indis"):o)?c(o,"0"):o)?c(o,"choose_continent"):o,e))+'</label><select id="region-select" class="dsp-nav-form__select"></select></p>\n        <p class="dsp-nav-form__select-ctr"><label for="country-select" class="dsp-nav-form__label">'+l(s(null!=(o=null!=(o=null!=(o=null!=e?c(e,"page_text"):e)?c(o,"text_indis"):o)?c(o,"0"):o)?c(o,"choose_country"):o,e))+'</label><select id="country-select" class="dsp-nav-form__select"></select></p>\n        <button class="dsp-nav-form__submit">'+l(s(null!=(o=null!=(o=null!=(o=null!=e?c(e,"page_text"):e)?c(o,"text_indis"):o)?c(o,"0"):o)?c(o,"enter"):o,e))+"</button>\n    </form>\n<\/script>\n"},useData:!0})},{"hbsfy/runtime":413}],627:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}s(t("backbone"));var o=s(t("backbone.marionette")),a=(s(t("underscore")),s(t("./template.hbs")));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}l(u,c=o.default.ItemView),u.prototype.ui=function(){return{close:".close-filters-container",links:".filters-inner a"}},u.prototype.events=function(){return{"click @ui.close":"onCloseClick","click @ui.links":"onLinkClick"}},u.prototype.serializeData=function(){return{thematics:this.model.thematics,currentCat:this.options.currentCat}},u.prototype.onShow=function(){var t=this;$(this.$el).parent().addClass("filters-active"),setTimeout(function(){t.$el.addClass("active")},100)},u.prototype.onCloseClick=function(t){t.preventDefault();var e=this;this.$el.removeClass("active"),setTimeout(function(){$(e.$el).parent().removeClass("filters-active"),e.destroy()},600)},u.prototype.onLinkClick=function(t){t.preventDefault();var e=this,n=$(t.currentTarget).data("thematic");this.$el.removeClass("active"),setTimeout(function(){e.triggerMethod("click:subButton",n),$(e.$el).parent().removeClass("filters-active"),e.destroy()},600)},i(u,[{key:"className",get:function(){return"filters"}},{key:"template",get:function(){return a.default}}]);var c,t=u;function u(){var t=this,e=u;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=c.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"./template.hbs":628,backbone:44,"backbone.marionette":42,underscore:576}],628:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r){return" current "},3:function(t,e,n,i,r,o,a){var s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,c="function",u=t.escapeExpression,h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <li><a href="#" class="button filters-button '+(null!=(o=(a[1]&&h(a[1],"ifEqual")||l).call(s,null!=e?h(e,"term_id"):e,null!=a[1]?h(a[1],"currentCat"):a[1],{name:"../ifEqual",hash:{},fn:t.program(1,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:5,column:57},end:{line:5,column:118}}}))?o:"")+'" data-thematic="'+u(typeof(a=null!=(a=h(n,"term_id")||(null!=e?h(e,"term_id"):e))?a:l)==c?a.call(s,{name:"term_id",hash:{},data:r,loc:{start:{line:5,column:135},end:{line:5,column:146}}}):a)+'" data-category="Popin" data-action="Redirection::Internal" data-label="'+u(typeof(a=null!=(a=h(n,"term_name")||(null!=e?h(e,"term_name"):e))?a:l)==c?a.call(s,{name:"term_name",hash:{},data:r,loc:{start:{line:5,column:218},end:{line:5,column:231}}}):a)+'">'+u(typeof(a=null!=(a=h(n,"term_name")||(null!=e?h(e,"term_name"):e))?a:l)==c?a.call(s,{name:"term_name",hash:{},data:r,loc:{start:{line:5,column:233},end:{line:5,column:246}}}):a)+"</a></li>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.lambda,u=t.escapeExpression,h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="filters-inner">\n    <ul class="filters-links">\n        <li><a href="#" class="button filters-button '+(null!=(s=(h(n,"ifEqual")||e&&h(e,"ifEqual")||t.hooks.helperMissing).call(l,"*",null!=e?h(e,"currentCat"):e,{name:"ifEqual",hash:{},fn:t.program(1,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:3,column:53},end:{line:3,column:101}}}))?s:"")+'" data-thematic="*">'+u(c(null!=(s=null!=(s=null!=e?h(e,"thematics"):e)?h(s,"text"):s)?h(s,"text_all"):s,e))+"</a></li>\n"+(null!=(s=h(n,"each").call(l,null!=(s=null!=e?h(e,"thematics"):e)?h(s,"category"):s,{name:"each",hash:{},fn:t.program(3,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:4,column:8},end:{line:6,column:17}}}))?s:"")+'    </ul>\n</div>\n<div class="close-filters-container">\n    <button type="button" class="button close-filters close-icon-before">\n        <span>'+u(c(null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"text_10"):s,e))+"</span>\n    </button>\n</div>\n"},useData:!0,useDepths:!0})},{"hbsfy/runtime":413}],629:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=s(t("backbone.marionette")),a=s(t("./template.hbs"));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}l(u,c=o.default.ItemView),u.prototype.ui=function(){return{close:".close-button",links:".legals-inner a",inner:".legals-inner"}},u.prototype.events=function(){return{"click @ui.close":"onCloseClick","click @ui.links":"onLinkClick",click:"onCloseClick"}},u.prototype.serializeData=function(){var t=this.model.split("<h3>");return 1==t.length?t:"<h2>"+t.shift()+"</h2><h3>"+t.join("<h3>")},u.prototype.onShow=function(){var t;this.options.anchor&&(t=this.$el.find('[id="'+this.options.anchor+'"]').offset().top-this.$el.offset().top-20,this.$el.scrollTop(t))},u.prototype.onCloseClick=function(t){0!=$(t.target).closest(this.ui.inner).length&&!$(t.target).hasClass("close-button")||this.destroy()},u.prototype.onLinkClick=function(t){"_blank"!=t.currentTarget.target&&this.destroy()},i(u,[{key:"className",get:function(){return"legals"}},{key:"template",get:function(){return a.default}}]);var c,t=u;function u(){var t=this,e=u;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=c.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"./template.hbs":630,"backbone.marionette":42}],630:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){return'<p class="close-button-ctr"><button type="button" class="button close-button close-icon"><span class="sr-only">Close</span></button></p>\n<div class="legals-inner">\n    '+(null!=(t=t.lambda(e,e))?t:"")+"\n</div>\n"},useData:!0})},{"hbsfy/runtime":413}],631:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=c(t("backbone")),a=c(t("backbone.marionette")),s=c(t("underscore")),l=c(t("./template.hbs"));function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}u(d,h=a.default.ItemView),d.prototype.ui=function(){return{close:".close-button",links:".menu-inner a"}},d.prototype.events=function(){return{"click @ui.close":"onCloseClick","click @ui.links":"onLinkClick","mouseover @ui.links":"onLinkMouseHover","mouseout @ui.links":"onLinkMouseOut"}},d.prototype.serializeData=function(){var n,i=this;return this.options.isApp?s.default.each(this.model.annexes.models,function(t,e){0<=t.attributes.slug.indexOf("/map")&&(i.model.annexes.models[e].attributes.title=""),0<=t.attributes.slug.indexOf("/quiz")&&(i.model.annexes.models[e].attributes.title=""),!0===t.attributes.separator&&(i.model.annexes.models[e].attributes.title=""),"landing"!==t.attributes.type&&"exposition"!==t.attributes.type||(i.model.annexes.models[e].attributes.title="")}):(n=!1,s.default.each(this.model.annexes.models,function(t,e){(0<=t.attributes.slug.indexOf("/map")||0<=t.attributes.slug.indexOf("/quiz"))&&(n=!0)}),s.default.each(this.model.annexes.models,function(t,e){!0!==t.attributes.separator||!1!==n||t.attributes.centenary||(i.model.annexes.models[e].attributes.title="")}),n=!1,s.default.each(this.model.annexes.models,function(t,e){"landing"!==t.attributes.type&&"exposition"!==t.attributes.type||(n=!0)}),s.default.each(this.model.annexes.models,function(t,e){!0===t.attributes.separator&&!1===n&&t.attributes.centenary&&(i.model.annexes.models[e].attributes.title="")})),console.log(this.model.annexes),{annexes:this.model.annexes}},d.prototype.onShow=function(){var t=this;setTimeout(function(){t.$el.addClass("active")},100)},d.prototype.onCloseClick=function(t){t.preventDefault();var e=this;this.$el.removeClass("active"),setTimeout(function(){e.destroy()},600)},d.prototype.onLinkClick=function(t){var e=this;this.$el.removeClass("active"),$(t.currentTarget).attr("href")===window.location.pathname&&setTimeout(function(){o.default.history.loadUrl()},600),"_blank"!=t.currentTarget.target&&setTimeout(function(){e.destroy()},600)},d.prototype.onLinkMouseHover=function(t){this.options.isApp||(t=$(t.currentTarget).data("img"),this.$el.css("background-image",'url("'+t+'")'))},d.prototype.onLinkMouseOut=function(){this.options.isApp||this.$el.css("background-image","")},i(d,[{key:"className",get:function(){return"menu"}},{key:"template",get:function(){return l.default}}]);var h,t=d;function d(){var t=this,e=d;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=h.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"./template.hbs":632,backbone:44,"backbone.marionette":42,underscore:576}],632:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(e=(a[1]&&s(a[1],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"",null!=(e=null!=e?s(e,"attributes"):e)?s(e,"title"):e,{name:"../ifEqual",hash:{},fn:t.program(2,r,0,o,a),inverse:t.program(4,r,0,o,a),data:r,loc:{start:{line:5,column:12},end:{line:17,column:27}}}))?e:""},2:function(t,e,n,i,r){return"            \x3c!-- Prevent sitemap and legal notice to appear in menu --\x3e\n"},4:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(e=(a[2]&&s(a[2],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},!0,null!=(e=null!=a[1]?s(a[1],"attributes"):a[1])?s(e,"nolink"):e,{name:"../../ifEqual",hash:{},fn:t.program(5,r,0,o,a),inverse:t.program(8,r,0,o,a),data:r,loc:{start:{line:8,column:16},end:{line:16,column:34}}}))?e:""},5:function(t,e,n,i,r,o,a){var s,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <li class="'+(null!=(s=(a[2]&&l(a[2],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},!0,null!=(s=null!=a[1]?l(a[1],"attributes"):a[1])?l(s,"separator"):s,{name:"../../ifEqual",hash:{},fn:t.program(6,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:9,column:27},end:{line:9,column:101}}}))?s:"")+'">\n                    <span>'+t.escapeExpression(t.lambda(null!=(s=null!=a[1]?l(a[1],"attributes"):a[1])?l(s,"title"):s,e))+"</span>\n                </li>\n"},6:function(t,e,n,i,r){return"separator"},8:function(t,e,n,i,r,o,a){var s,l=t.lambda,c=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <li><a href="'+c(l(null!=(s=null!=a[1]?t(a[1],"attributes"):a[1])?t(s,"slug"):s,e))+'" class="button menu-button" data-img="'+c(l(null!=(s=null!=a[1]?t(a[1],"attributes"):a[1])?t(s,"image_rollover_menu"):s,e))+'">\n                    <span class="out">'+c(l(null!=(s=null!=a[1]?t(a[1],"attributes"):a[1])?t(s,"title"):s,e))+"</span>\n                </a></li>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<p class="close-button-ctr"><button type="button" class="button close-button close-icon"><span class="sr-only">Close</span></button></p>\n<div class="menu-inner">\n    <ul class="menu-links">\n'+(null!=(n=s(n,"each").call(null!=e?e:t.nullContext||{},null!=(n=null!=e?s(e,"annexes"):e)?s(n,"models"):n,{name:"each",hash:{},fn:t.program(1,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:4,column:8},end:{line:18,column:17}}}))?n:"")+'    </ul>\n\t<p class="show-for-small notice">'+(null!=(n=t.lambda(null!=(n=null!=(n=null!=e?s(e,"thematics"):e)?s(n,"text"):n)?s(n,"text_mobil"):n,e))?n:"")+"</p>\n</div>\n"},useData:!0,useDepths:!0})},{"hbsfy/runtime":413}],633:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var E=t("../../../../util/Cookie"),o=l(t("underscore")),a=l(t("backbone.marionette")),s=l(t("./template.hbs"));l(t("places.js"));function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}c(h,u=a.default.ItemView),h.prototype.ui=function(){return{close:"> .close-button, .close-tuto",errorMsg:".errorMsg",formContribution:"#form-contribution",pseudo:"#contrib-pseudo",geocode:"#contrib-ville",search_suggestions:"#search-suggestions",remove_suggestions:"#remove-suggestions",suggestions:"#contrib-ville-suggestions",suggestion:"#contrib-ville-suggestions li",latitude:"#contrib-latitude",longitude:"#contrib-longitude",locality:"#contrib-locality",user_mel:"#user_mel",start_form:"#start_form",end_form:"#end_form",carModel:"#contrib-model",version:"#contrib-version",year:"#contrib-year",story:"#contrib-story",legals:"#contrib-legals",user_conscent_sm:"#user_conscent_sm",pictureContainer:".picture-container",imageUpload:"#contrib-image-upload",imageUploadButton:"#contrib-file-button",infoButton:".info-button",tutoContrib:"#tuto-contrib",formParticipationInner:".form-participation-inner",submitButton:"#contrib-submit",contribOk:"#contrib-ok",nextButton:".next-button",prevButton:".prev-button",progress:".progress"}},h.prototype.events=function(){return{"click @ui.close":"onCloseClick","click @search_suggestions":"onSearchSuggestions","click @ui.suggestion":"onSuggestionClick","click @ui.submitButton":"onSubmit","submit @ui.formContribution":"onSubmit","change @ui.imageUpload":"onImageContrib","click @ui.infoButton":"onInfoButtonClick","click @ui.nextButton":"onNextButtonClick","click @ui.prevButton":"onPrevButtonClick"}},h.prototype.serializeData=function(){for(var t=this.model.cars.getYears()[0],e=(new Date).getFullYear()-t,n=new Array(e),i=0;i<=e;i++)n[i]={value:t+i};var r=this.model.cars.models.sort(function(t,e){return t.attributes.title.localeCompare(e.attributes.title)});return this.model.cars.models=r,{thematics:this.model.thematics,annexes:this.model.annexes,cars:this.model.cars,car:this.model.car,form_city_additionnal_info:this.model.annexes.globalTexts.map_settings_and_labels.translations.form_city_additionnal_info,years:n}},h.prototype.onRender=function(){this._onResize=o.default.bind(this.onResize,this),$(window).on("resize",this._onResize)},h.prototype.onShow=function(){"true"!==(0,E.getCookie)("tutoviewed")?(this.ui.formParticipationInner.hide(),this.onInfoButtonClick(),(0,E.setCookie)("tutoviewed","true",365)):this.ui.tutoContrib.hide(),(0,E.setCookie)("tokenformcontrib",$.now(),1),$(this.ui.start_form).val($.now());var r=$(this.ui.geocode),o=$(this.ui.suggestions),a=$(this.ui.search_suggestions),t=$(this.ui.remove_suggestions),s=$(this.ui.latitude),l=$(this.ui.longitude),c=$(this.ui.locality);a.on("click",function(){var t=r.val();2<t.length?(a.prop("disabled",!0),a.addClass("disabled"),$.ajax({url:"https://nominatim.openstreetmap.org/search.php?city="+t.toLowerCase()+"&format=jsonv2"}).done(function(t){if(o.empty(),s.val(""),l.val(""),c.val(""),0<t.length){r.removeClass("error");for(var e=0;e<t.length;e++){var n=$("<li></li>"),i=$("<span></span>");n.attr("data-latitude",t[e].lat).attr("data-longitude",t[e].lon).attr("data-locality",t[e].display_name),i.text(t[e].display_name),o.append(n.append(i))}o.show()}else r.addClass("error");setTimeout(function(){a.prop("disabled",!1),a.removeClass("disabled")},"1000")})):(o.hide(),o.empty(),s.val(""),l.val(""),c.val(""))}),t.on("click",function(){r.removeClass("error"),o.hide(),o.empty(),s.val(""),l.val(""),c.val(""),r.val(""),a.show(),t.hide()}),o.hide(),r.on("keydown",function(t){switch(t.keyCode){case 27:o.hide();break;case 40:t.preventDefault(),(e=(e=$(".li_active").removeClass("li_active").next()).length?e:o.find("li:eq(0)")).addClass("li_active").find("a").trigger("mouseenter");break;case 38:t.preventDefault(),(e=(e=$(".li_active").removeClass("li_active").prev()).length?e:o.find("li:last-child")).addClass("li_active").find("a").trigger("mouseenter");break;case 13:var e;t.preventDefault(),0<(e=o.find("li.li_active")).length?(e=o.find("li.li_active")).trigger("click"):a.hasClass("disabled")||a.trigger("click")}}),o.on("mouseenter","span",function(){$(".li_active").removeClass("li_active"),$(this).parent().addClass("li_active")}).on("mouseleave","span",function(){$(".li_active").removeClass("li_active")})},h.prototype.onSuggestionClick=function(t){var t=$(t.target),e=$(this.ui.geocode),n=$(this.ui.suggestions),i=$(this.ui.latitude),r=$(this.ui.longitude),o=$(this.ui.locality),a=$(this.ui.search_suggestions),s=$(this.ui.remove_suggestions);"SPAN"==t.context.nodeName&&(t=t.parent()),n.hide(),a.hide(),s.show(),e.val(t.data("locality")),i.val(t.data("latitude")),r.val(t.data("longitude")),o.val(t.data("locality")),n.empty()},h.prototype.getOrientation=function(t,l){var e=new FileReader;e.onload=function(t){var e=new DataView(t.target.result);if(65496!=e.getUint16(0,!1))return l(-2);for(var n=e.byteLength,i=2;i<n;){var r=e.getUint16(i,!1);if(i+=2,65505==r){if(1165519206!=e.getUint32(i+=2,!1))return l(-1);var o=18761==e.getUint16(i+=6,!1),a=(i+=e.getUint32(i+4,o),e.getUint16(i,o));i+=2;for(var s=0;s<a;s++)if(274==e.getUint16(i+12*s,o))return l(e.getUint16(i+12*s+8,o))}else{if(65280!=(65280&r))break;i+=e.getUint16(i,!1)}}return l(-1)},e.readAsArrayBuffer(t)},h.prototype.onImageContrib=function(t){var t=t.target.files[0],e=$(this.ui.pictureContainer),n=$(this.ui.errorMsg);if(n.fadeOut(),t){var i=new RegExp("^image/(jpe?g|png)$").test(t.type),r=0,o=1;if(!i)throw n.find("span").html("File Type must be jpg, jpeg or png"),n.fadeIn(),this.scrollToTop(),e.css({backgroundImage:"",transform:"none"}),"File Type must be jpg, jpeg or png";this.getOrientation(t,function(t){switch(t){case 2:o=-1;break;case 3:r=180;break;case 4:o=-1,r=180;break;case 5:o=-1,r=-90;break;case 6:r=90;break;case 7:o=-1,r=90;break;case 8:r=-90}});i=new FileReader;i.onload=function(t){0===r&&180===r||e.addClass("rotate"),e.css({backgroundImage:'url("'+t.target.result+'")',transform:"rotate("+r+"deg) scaleX("+o+")"})},i.readAsDataURL(t)}else e.css({backgroundImage:"",transform:"none"})},h.prototype.onSubmit=function(t){t.preventDefault(),$("#contrib-submit").prop("disabled",!0);var i=this,t=!0,e=this.model.annexes.globalTexts.map_settings_and_labels.translations.form_mandatory_field_message,n=this.model.annexes.globalTexts.map_settings_and_labels.translations.form_story_msg_limit,r=this.model.contribute,o=new FormData,a=$(this.ui.errorMsg),s=$(this.ui.pseudo).removeClass("error"),l=$(this.ui.geocode).removeClass("error"),c=$(this.ui.latitude),u=$(this.ui.longitude),h=$(this.ui.locality),d=$(this.ui.user_mel),p=$(this.ui.start_form),f=$.now(),m=(0,E.getCookie)("tokenformcontrib"),g=$(this.ui.carModel).removeClass("error"),v=$(this.ui.version),y=$(this.ui.year).removeClass("error"),_=$(this.ui.story).removeClass("error"),b=$(this.ui.legals).removeClass("error"),x=$(this.ui.user_conscent_sm),w=$(this.ui.imageUpload),T=$(this.ui.imageUploadButton).removeClass("error"),S=$(this.ui.contribOk),C=$(this.ui.formContribution);""!==s.val()?o.append("name",s.val()):(t=!1,s.addClass("error")),""!==c.val()&&""!==u.val()&&""!==h.val()?(o.append("latitude",c.val()),o.append("longitude",u.val()),o.append("city",h.val())):(t=!1,l.addClass("error")),""!==d.val()&&o.append("user_mel",d.val()),""!==g.val()?o.append("group_type",g.val()):(t=!1,g.addClass("error")),""!==v.val()&&o.append("model_version",v.val()),""!==y.val()&&o.append("model_year",y.val()),b.is(":checked")||(t=!1,b.addClass("error")),""!==w.val()?o.append("image",w[0].files[0]):(t=!1,T.addClass("error")),o.append("start_form",p.val()),o.append("end_form",f),o.append("token",m),""!==_.val()&&(240<_.val().length?(t?e=n:e+=" "+n,t=!1):o.append("story",_.val())),o.append("user_conscent_sm",x.is(":checked")?1:0),t?$.ajax({url:r,type:"POST",data:o,cache:!1,contentType:!1,processData:!1,success:function(t){"error"==t.status?(a.find("span").html(t.label),a.fadeIn(),i.scrollToTop()):(a.fadeOut(),C.fadeOut().siblings("h2").fadeOut(function(){i.ui.formParticipationInner.css("width","auto").css("max-width","90%"),S.fadeIn(function(){$("#contrib-submit").prop("disabled",!1)}),i.scrollToTop()}),$("#contributed_model_name").val($("#contrib-model option:selected").text()),$("#contrib-ok .tracking").val("true").trigger("change"))},error:function(t,e,n){a.find("span").html(n),a.fadeIn(),i.scrollToTop()}}):($("#contrib-submit").prop("disabled",!1),a.find("span").html(e),a.fadeIn(),i.scrollToTop())},h.prototype.onInfoButtonClick=function(){var t=this,e=this.ui.errorMsg,n=this.ui.formParticipationInner,i=this.ui.tutoContrib,r=i.find(".carousel").find(".slide"),o=this.ui.progress,a=r.filter(".current").find("img"),s=a.attr("src"),l=a.attr("data-anim"),a=(a.attr("src",l).attr("data-anim",s),r.removeClass("previous current next"),$(r[r.length-1]).addClass("previous"),$(r[0]).addClass("current").find("img")),l=a.attr("data-anim"),s=a.attr("src");a.attr("src",l).attr("data-anim",s),$(r[1]).addClass("next"),o.find("li").removeClass("active"),$(o.find("li")[0]).addClass("active"),t.onResize(),e.fadeOut(),n.fadeOut(function(){$(".form-participation").scrollTop(0),i.fadeIn(function(){t.onResize()})})},h.prototype.onResize=function(){var t=this.ui.tutoContrib,e=t.find(".carousel"),n=e.find(".slide"),i=0,r=t.attr("style");t.css({display:"inline-block",opacity:"0",visibility:"hidden"}),n.each(function(){i=i>$(this).outerHeight()?i:$(this).outerHeight()}),e.height(i),t.attr("style",r||"")},h.prototype.onNextButtonClick=function(t){t.preventDefault();var t=this.ui.tutoContrib,e=t.find("h3"),n=t.find("h3 + p"),t=t.find(".carousel").find(".slide"),i=t.filter(".previous"),r=t.filter(".current"),o=t.filter(".next"),a=o.next().length?o.next():$(t[0]),s=this.ui.progress,i=(i.removeClass("previous"),r.removeClass("current").addClass("previous").find("img")),r=i.attr("src"),l=i.attr("data-anim"),i=(i.attr("src",l).attr("data-anim",r),o.removeClass("next").addClass("current").find("img")),l=i.attr("data-anim"),r=i.attr("src"),o=(i.attr("src",l).attr("data-anim",r),a.addClass("next"),e.text(t.filter(".current").attr("data-title")||""),n.text(t.filter(".current").attr("data-subtitle")||""),s.find("li.active").removeClass("active"));(o.next().length?o.next():$(s.find("li")[0])).addClass("active")},h.prototype.onPrevButtonClick=function(t){t.preventDefault();var t=this.ui.tutoContrib,e=t.find("h3"),n=t.find("h3 + p"),t=t.find(".carousel").find(".slide"),i=t.filter(".previous"),r=t.filter(".current"),o=t.filter(".next"),a=i.prev().length?i.prev():$(t[t.length-1]),s=this.ui.progress,i=i.removeClass("previous").addClass("current").find("img"),l=i.attr("data-anim"),c=i.attr("src"),i=(i.attr("src",l).attr("data-anim",c),a.addClass("previous"),r.removeClass("current").addClass("next").find("img")),l=i.attr("src"),c=i.attr("data-anim"),a=(i.attr("src",c).attr("data-anim",l),o.removeClass("next"),e.text(t.filter(".current").attr("data-title")||""),n.text(t.filter(".current").attr("data-subtitle")||""),s.find("li.active").removeClass("active"));(a.prev().length?a.prev():$(s.find("li")[s.find("li").length-1])).addClass("active")},h.prototype.scrollToTop=function(){$(".form-participation").animate({scrollTop:0},600)},h.prototype.onCloseClick=function(t){t.preventDefault();var t=$(this.ui.tutoContrib),e=this.ui.formParticipationInner;t.is(":visible")?t.fadeOut(function(){e.fadeIn()}):this.destroy()},h.prototype.onDestroy=function(){this.ui.formParticipationInner.css("width","").css("max-width",""),$(window).off("resize",this._onResize),this._onResize=void 0},i(h,[{key:"className",get:function(){return"form-participation popin"}},{key:"template",get:function(){return s.default}}]);var u,t=h;function h(){var t=this,e=h;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=u.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"../../../../util/Cookie":642,"./template.hbs":634,"backbone.marionette":42,"places.js":546,underscore:576}],634:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                    <input id="user_mel" type="email" placeholder="'+t.escapeExpression(t.lambda(null!=(t=null!=(t=null!=(t=null!=e?o(e,"globalTexts"):e)?o(t,"map_settings_and_labels"):t)?o(t,"translations"):t)?o(t,"form_email"):t,e))+'"/>\r\n'},3:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                <div id="comment-city" style="margin-bottom: 10px;">\r\n                                    '+t.escapeExpression("function"==typeof(n=null!=(n=o(n,"form_city_additionnal_info")||(null!=e?o(e,"form_city_additionnal_info"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"form_city_additionnal_info",hash:{},data:r,loc:{start:{line:37,column:36},end:{line:37,column:68}}}):n)+"\r\n                                </div>\r\n"},5:function(t,e,n,i,r){return'disabled="disabled"'},7:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(e=(a[1]&&s(a[1],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(e=null!=e?s(e,"attributes"):e)?s(e,"group_type"):e,null,{name:"../ifEqual",hash:{},fn:t.program(8,r,0,o,a),inverse:t.program(10,r,0,o,a),data:r,loc:{start:{line:46,column:40},end:{line:52,column:55}}}))?e:""},8:function(t,e,n,i,r){return""},10:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=s(n,"if").call(null!=e?e:t.nullContext||{},null!=(n=null!=a[1]?s(a[1],"attributes"):a[1])?s(n,"prototype"):n,{name:"if",hash:{},fn:t.program(8,r,0,o,a),inverse:t.program(11,r,0,o,a),data:r,loc:{start:{line:48,column:44},end:{line:51,column:51}}}))?n:""},11:function(t,e,n,i,r,o,a){var s,l=t.lambda,c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                                <option value="'+c(l(null!=(s=null!=a[1]?u(a[1],"attributes"):a[1])?u(s,"group_type"):s,e))+'" '+(null!=(s=(a[2]&&u(a[2],"ifEqual")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=(s=null!=a[1]?u(a[1],"attributes"):a[1])?u(s,"group_type"):s,null!=(s=null!=(s=null!=(s=null!=a[2]?u(a[2],"car"):a[2])?u(s,"model"):s)?u(s,"attributes"):s)?u(s,"group_type"):s,{name:"../../ifEqual",hash:{},fn:t.program(12,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:50,column:98},end:{line:50,column:221}}}))?s:"")+" >"+c(l(null!=(s=null!=a[1]?u(a[1],"attributes"):a[1])?u(s,"title"):s,e))+"</option>\r\n"},12:function(t,e,n,i,r){return'selected="selected"'},14:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                    <option value="'+l("function"==typeof(o=null!=(o=t(n,"value")||(null!=e?t(e,"value"):e))?o:s)?o.call(a,{name:"value",hash:{},data:r,loc:{start:{line:63,column:51},end:{line:63,column:60}}}):o)+'">'+l("function"==typeof(o=null!=(o=t(n,"value")||(null!=e?t(e,"value"):e))?o:s)?o.call(a,{name:"value",hash:{},data:r,loc:{start:{line:63,column:62},end:{line:63,column:71}}}):o)+"</option>\r\n"},16:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <div class="row">\r\n                        <div class="large-col">\r\n                            <input id="user_conscent_sm" name="user_conscent_sm" type="checkbox"/>\r\n                            <label for="user_conscent_sm">\r\n                                '+(null!=(t=t.lambda(null!=(t=null!=(t=null!=(t=null!=e?o(e,"globalTexts"):e)?o(t,"map_settings_and_labels"):t)?o(t,"translations"):t)?o(t,"user_conscent_sm"):t,e))?t:"")+"\r\n                            </label>\r\n                        </div>\r\n                    </div>\r\n"},18:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <div class="row">\r\n                <div class="large-col">\r\n                    <p id="form_ml">\r\n                        '+(null!=(t=t.lambda(null!=(t=null!=(t=null!=(t=null!=e?o(e,"globalTexts"):e)?o(t,"map_settings_and_labels"):t)?o(t,"translations"):t)?o(t,"form_ml"):t,e))?t:"")+"\r\n                    </p>\r\n                </div>\r\n            </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){var s,l=t.lambda,c=t.escapeExpression,u=null!=e?e:t.nullContext||{},h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<button type="button" class="button close-button close-icon"><span class="sr-only">Close</span></button>\r\n<div class="form-participation-wrapper slide-wrapper">\r\n    <div class="form-participation-inner">\r\n        <div class="errorMsg">\r\n            <span></span>\r\n        </div>\r\n        <h2>'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_title"):s,e))+'</h2>\r\n        <form id="form-contribution" enctype="multipart/form-data" method="post" name="formcontrib">\r\n            <div class="row">\r\n                <div class="left-col">\r\n                    <div class="row">\r\n                        <div class="half-col">\r\n                            <div>\r\n                                <input id="contrib-pseudo" type="text" maxlength="30" placeholder="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_name"):s,e))+'" required="required"/>\r\n                            </div>\r\n                            <div class="suggestions-wrapper">\r\n                                <input id="contrib-ville" type="text" placeholder="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_city"):s,e))+'" required="required" autocomplete="off"/>\r\n                                <button type="button" id="search-suggestions" aria-label="search" class="suggestions-icon suggestions-icon-search">\r\n                                    <?xml version="1.0"?><svg xmlns="http://www.w3.org/2000/svg"  viewBox="0 0 24 24" width="24px" height="24px">    <path d="M 9 2 C 5.1458514 2 2 5.1458514 2 9 C 2 12.854149 5.1458514 16 9 16 C 10.747998 16 12.345009 15.348024 13.574219 14.28125 L 14 14.707031 L 14 16 L 20 22 L 22 20 L 16 14 L 14.707031 14 L 14.28125 13.574219 C 15.348024 12.345009 16 10.747998 16 9 C 16 5.1458514 12.854149 2 9 2 z M 9 4 C 11.773268 4 14 6.2267316 14 9 C 14 11.773268 11.773268 14 9 14 C 6.2267316 14 4 11.773268 4 9 C 4 6.2267316 6.2267316 4 9 4 z"/></svg>\r\n                                </button>\r\n                                <button type="button" id="remove-suggestions" aria-label="remove" class="suggestions-icon suggestions-icon-remove close-icon">\r\n                                </button>\r\n                                <ul id="contrib-ville-suggestions"></ul>\r\n                                <input type="hidden" id="contrib-latitude" value=""/>\r\n                                <input type="hidden" id="contrib-longitude" value=""/>\r\n                                <input type="hidden" id="contrib-locality" value=""/>\r\n                            </div>\r\n                            <div>\r\n'+(null!=(s=h(n,"if").call(u,null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"email_and_user_conscent_enabled"):s,{name:"if",hash:{},fn:t.program(1,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:29,column:32},end:{line:31,column:39}}}))?s:"")+'                                <input id="start_form" type="hidden"/>\r\n                            </div>\r\n\r\n'+(null!=(s=h(n,"if").call(u,null!=e?h(e,"form_city_additionnal_info"):e,{name:"if",hash:{},fn:t.program(3,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:35,column:28},end:{line:39,column:35}}}))?s:"")+'                        </div>\r\n                        <div class="half-col">\r\n                            <div class="combobox">\r\n                                <select id="contrib-model" required="required" '+(null!=(s=h(n,"if").call(u,null!=(s=null!=(s=null!=(s=null!=e?h(e,"car"):e)?h(s,"model"):s)?h(s,"attributes"):s)?h(s,"group_type"):s,{name:"if",hash:{},fn:t.program(5,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:43,column:79},end:{line:43,column:144}}}))?s:"")+'>\r\n                                    <option value="">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_model"):s,e))+"</option>\r\n"+(null!=(s=h(n,"each").call(u,null!=(s=null!=e?h(e,"cars"):e)?h(s,"models"):s,{name:"each",hash:{},fn:t.program(7,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:45,column:36},end:{line:53,column:45}}}))?s:"")+'                                </select>\r\n                            </div>\r\n                            <div>\r\n                                <input id="contrib-version" type="text" maxlength="55" placeholder="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"version"):s,e))+'"/>\r\n                            </div>\r\n                            <div class="combobox">\r\n                                <select id="contrib-year">\r\n                                    <option value="">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"year"):s,e))+"</option>\r\n"+(null!=(s=h(n,"each").call(u,null!=e?h(e,"years"):e,{name:"each",hash:{},fn:t.program(14,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:62,column:36},end:{line:64,column:45}}}))?s:"")+'                                </select>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                    <div class="row">\r\n                        <div class="large-col">\r\n                            <div>\r\n                                <textarea maxlength="240" id="contrib-story" placeholder="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_comment"):s,e))+'"></textarea>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n                <div class="right-col">\r\n                    <div class="picture-wrapper">\r\n                        <div class="picture-container"></div>\r\n                    </div>\r\n                    <div>\r\n                        <label for="contrib-image-upload" id="contrib-file-button" >'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_upload_button"):s,e))+'</label>\r\n                        <input type="file" id="contrib-image-upload" accept="image/x-png,image/jpeg"/>\r\n                    </div>\r\n                    <div class="large-left">\r\n                        <a class="info-button">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_advice"):s,e))+'</a>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <div class="row">\r\n                <div class="left-col">\r\n                    <div class="row">\r\n                        <div class="left-col">\r\n                            <input id="contrib-legals" name="contrib-legals" type="checkbox" required="required"/>\r\n                            <label for="contrib-legals">\r\n                                '+(null!=(s=l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_cgu"):s,e))?s:"")+'\r\n                            </label>\r\n                        </div>\r\n                        <div class="right-col required-info">\r\n                            '+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_mandatory"):s,e))+"\r\n                        </div>\r\n                    </div>\r\n"+(null!=(s=h(n,"if").call(u,null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"email_and_user_conscent_enabled"):s,{name:"if",hash:{},fn:t.program(16,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:103,column:20},end:{line:112,column:27}}}))?s:"")+'                </div>\r\n                <div class="right-col">\r\n                    <div data-category="Content" data-action="Validate::AddMap" data-label="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_validate"):s,e))+'">\r\n                        <input type="submit" id="contrib-submit" class="button basic-button" value="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_validate"):s,e))+'"\r\n                           data-message="contrib-submit"/>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n'+(null!=(s=h(n,"if").call(u,null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_ml"):s,{name:"if",hash:{},fn:t.program(18,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:121,column:12},end:{line:129,column:19}}}))?s:"")+'        </form>\r\n        <div id="contrib-ok">\r\n            <div class="thumbup-icon"><span class="sr-only">OK</span></div>\r\n            <h2>'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_ok_title"):s,e))+"</h2>\r\n            <p>"+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_ok_p1"):s,e))+"<br/>\r\n                "+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_ok_p2"):s,e))+"<br/>\r\n                "+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"form_ok_p3"):s,e))+'</p>\r\n\r\n                <input type="hidden" class="tracking" value="false" />\r\n                <input type="hidden" id="contributed_model_name" value="" />\r\n        </div>\r\n    </div>\r\n    <div id="tuto-contrib">\r\n        <h3></h3>\r\n        <p></p>\r\n        <div class="carousel">\r\n            <div class="slide">\r\n                <img src="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_off_1"):s,e))+'" data-anim="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_on_1"):s,e))+'" />\r\n                <p>'+(null!=(s=l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_txt1"):s,e))?s:"")+'</p>\r\n                <a href="#" class="button next-button">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_start"):s,e))+'</a>\r\n                <span>00</span>\r\n            </div>\r\n            <div class="slide"\r\n                 data-title="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_title1"):s,e))+'"\r\n                 data-subtitle="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_subtitle1"):s,e))+'">\r\n                <img src="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_off_2"):s,e))+'" data-anim="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_on_2"):s,e))+'" />\r\n                <p>'+(null!=(s=l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_txt2"):s,e))?s:"")+'</p>\r\n                <a href="#" class="button next-button">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_next"):s,e))+'</a>\r\n                <span>01</span>\r\n            </div>\r\n            <div class="slide"\r\n                 data-title="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_title1"):s,e))+'"\r\n                 data-subtitle="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_subtitle1"):s,e))+'">\r\n                <img src="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_off_3"):s,e))+'" data-anim="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_on_3"):s,e))+'" />\r\n                <p>'+(null!=(s=l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_txt3"):s,e))?s:"")+'</p>\r\n                <a href="#" class="button next-button">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_next"):s,e))+'</a>\r\n                <span>02</span>\r\n            </div>\r\n            <div class="slide"\r\n                 data-title="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_title1"):s,e))+'"\r\n                 data-subtitle="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_subtitle1"):s,e))+'">\r\n                <img src="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_off_4"):s,e))+'" data-anim="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_on_4"):s,e))+'" />\r\n                <p>'+(null!=(s=l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_txt4"):s,e))?s:"")+'</p>\r\n                <a href="#" class="button next-button">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_next"):s,e))+'</a>\r\n                <span>03</span>\r\n            </div>\r\n            <div class="slide"\r\n                 data-title="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_title2"):s,e))+'"\r\n                 data-subtitle="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_subtitle2"):s,e))+'">\r\n                <img src="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_off_5"):s,e))+'" data-anim="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_on_5"):s,e))+'" />\r\n                <p>'+(null!=(s=l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_txt5"):s,e))?s:"")+'</p>\r\n                <a href="#" class="button next-button">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_next"):s,e))+'</a>\r\n                <span>04</span>\r\n            </div>\r\n            <div class="slide"\r\n                 data-title="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_title2"):s,e))+'"\r\n                 data-subtitle="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_subtitle2"):s,e))+'">\r\n                <img src="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_off_6"):s,e))+'" data-anim="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_on_6"):s,e))+'" />\r\n                <p>'+(null!=(s=l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_txt6"):s,e))?s:"")+'</p>\r\n                <a href="#" class="button next-button">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_next"):s,e))+'</a>\r\n                <span>05</span>\r\n            </div>\r\n            <div class="slide"\r\n                 data-title="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_title2"):s,e))+'"\r\n                 data-subtitle="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_subtitle2"):s,e))+'">\r\n                <img src="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_off_7"):s,e))+'" data-anim="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_on_7"):s,e))+'" />\r\n                <p>'+(null!=(s=l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_txt7"):s,e))?s:"")+'</p>\r\n                <a href="#" class="button next-button">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_next"):s,e))+'</a>\r\n                <span>06</span>\r\n            </div>\r\n            <div class="slide"\r\n                 data-title="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_title3"):s,e))+'">\r\n                <img src="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_off_8"):s,e))+'" data-anim="'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_slide_on_8"):s,e))+'" />\r\n                <p>'+(null!=(s=l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"tuto_txt8"):s,e))?s:"")+'</p>\r\n                <a href="#" class="button close-tuto">'+c(l(null!=(s=null!=(s=null!=(s=null!=e?h(e,"globalTexts"):e)?h(s,"map_settings_and_labels"):s)?h(s,"translations"):s)?h(s,"car_map_add_button"):s,e))+'</a>\r\n                <span>07</span>\r\n            </div>\r\n        </div>\r\n        <ul class="progress">\r\n            <li></li>\r\n            <li></li>\r\n            <li></li>\r\n            <li></li>\r\n            <li></li>\r\n            <li></li>\r\n            <li></li>\r\n            <li></li>\r\n        </ul>\r\n        <a href="#" class="slick-prev prev-button">Previous</a>\r\n        <a href="#" class="slick-next next-button">Next</a>\r\n    </div>\r\n</div>'},useData:!0,useDepths:!0})},{"hbsfy/runtime":413}],635:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=c(t("backbone.marionette")),a=c(t("underscore")),s=c(t("./template.hbs")),l=t("../../../../util/Cookie");function c(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}document.documentElement.getAttribute("dir");u(p,d=o.default.ItemView),p.prototype.ui=function(){return{close:".close-button",shareContainer:".share-links",share:".share-links .share-button",mapButton:".world-button",shareOpener:".share-container > .share-button",shareCloser:".close-share",likeThis:".like-this",counter:".like-counter",inner:".popin-inner",media:".media-wrapper",detailsBtn:".white-button",anchor:"[data-anchor]"}},p.prototype.events=function(){return{"click @ui.close":"onCloseClick","click @ui.share":"onShareClick","click @ui.shareOpener":"onShareOpenerClick","click @ui.shareCloser":"onShareCloserClick","click @ui.detailsBtn":"onDetailsClick","click @ui.likeThis":"onLikeThisClick","click @ui.mapButton":"onMapButtonClick","click @ui.anchor":"onAnchorClick"}},p.prototype.initialize=function(t){this.options.isText="text"==this.options.type,this.options.isVideo="video"==this.options.type,this.options.isImage="image"==this.options.type,this.options.isContribution="contribution"==this.options.type,this.options.isLinkShop="link-shop"==this.options.type,this.options.lang=document.documentElement.lang},p.prototype.serializeData=function(){return this.options},p.prototype.onRender=function(){var t=this;this.$el.addClass(this.options.type),h="rtl"==document.documentElement.getAttribute("dir"),this.$el.find(".slide-wrapper").slick({dots:!1,infinite:!1,slidesToShow:1,slidesToScroll:1,swipeToSlide:!0,edgeFriction:.01,speed:300,lazyLoad:"progressive",initialSlide:this.options.image,rtl:h,rows:0}).find("img").bind("load",function(){return t.$el.find(".slide-wrapper").slick("setDimensions")}),this.ui.inner.hide(),this._onResize=a.default.bind(this.onResize,this),$(window).on("resize",this._onResize)},p.prototype.onShow=function(){this.ui.inner.fadeIn(),this.onResize(),this.$el.find(".slide-wrapper").slick("slickSetOption","speed",0).slick("slickGoTo",this.options.image).slick("slickSetOption","speed",300)},p.prototype.onResize=function(){var t=this.$el.find(".slick-slider");0<t.length&&setTimeout(function(){t.slick("setPosition")},1e3)},p.prototype.onCloseClick=function(t){$(t.target).closest(this.ui.inner).find(".content").hasClass("details")?$(t.target).closest(this.ui.inner).find(".content").removeClass("details"):0!=$(t.target).closest(this.ui.inner).length&&!$(t.target).hasClass("close-button")||this.destroy()},p.prototype.onShareOpenerClick=function(t){var e=$(t.target).closest(this.ui.shareOpener),n=$(t.target).siblings(this.ui.shareContainer);e.fadeOut(function(){n.fadeIn()})},p.prototype.onShareCloserClick=function(t){var t=$(t.target).closest(this.ui.shareContainer),e=t.siblings(this.ui.shareOpener);t.fadeOut(function(){e.fadeIn()})},p.prototype.onDetailsClick=function(t){$(this.ui.inner).find(".content").addClass("details")},p.prototype.onLikeThisClick=function(t){var n=$(t.target),i=n.siblings(".like-number").find(".like-counter"),r=n.parents(".slide").data("contribution-id"),o=$(".map-wrapper").find('[data-contribution-id="'+r+'"]'),t=this.options.likeContribution;n.hasClass("liked")||$.ajax({url:t,type:"POST",data:{contrib_id:r},dataType:"json",success:function(t){var e;n.addClass("liked"),(0,l.setCookie)("liked-contribution-"+r,!0,365),o.attr("data-liked","liked").attr("data-number-like",t.number_like),i.length?i.text(t.number_like):(t=$('<div class="like-number"></div>'),e=$('<span class="heart-icon"></span>'),i=$('<span class="like-counter"> 1</span>'),n.after(t.append(e).append(i)))},error:function(t,e,n){console.log(t),console.log(e),console.log(n)}})},p.prototype.onMapButtonClick=function(t){this.destroy()},p.prototype.onAnchorClick=function(t){t.preventDefault();t=$(t.currentTarget).attr("data-anchor");this.gotoSection(t),this.destroy()},p.prototype.gotoSection=function(t){$("#main-region").animate({scrollTop:$(t).position().top-40},600,this._onScroll)},p.prototype.onDestroy=function(){$(window).off("resize",this._onResize),this._onResize=void 0},i(p,[{key:"className",get:function(){return"popin"}},{key:"template",get:function(){return s.default}}]);var h,d,t=p;function p(){var t=this,e=p;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=d.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"../../../../util/Cookie":642,"./template.hbs":636,"backbone.marionette":42,underscore:576}],636:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t    <div class="content">\r\n\t\t\t\t<button type="button" class="button close-button close-icon"><span class="sr-only">Close</span></button>\r\n'+(null!=(n=(s(n,"ifOffline")||e&&s(e,"ifOffline")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},!1,{name:"ifOffline",hash:{},fn:t.program(2,r,0,o,a),inverse:t.program(10,r,0,o,a),data:r,loc:{start:{line:6,column:16},end:{line:22,column:30}}}))?n:"")+"            </div>\r\n"},2:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=s(n,"if").call(null!=e?e:t.nullContext||{},null!=a[1]?s(a[1],"youtube"):a[1],{name:"if",hash:{},fn:t.program(3,r,0,o,a),inverse:t.program(5,r,0,o,a),data:r,loc:{start:{line:7,column:20},end:{line:17,column:27}}}))?n:""},3:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <iframe type="text/html"\r\n                        src="https://www.youtube.com/embed/'+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"youtube"):a[1],e))+'?autoplay=1&amp;rel=0&amp;controls=1&amp;showinfo=0&amp;autohide=1&amp;rel=0"\r\n                        allowfullscreen></iframe>\r\n'},5:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=s(n,"if").call(null!=e?e:t.nullContext||{},null!=a[1]?s(a[1],"youku"):a[1],{name:"if",hash:{},fn:t.program(6,r,0,o,a),inverse:t.program(8,r,0,o,a),data:r,loc:{start:{line:11,column:20},end:{line:17,column:20}}}))?n:""},6:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <iframe src="https://player.youku.com/embed/'+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"youku"):a[1],e))+'" allowfullscreen></iframe>\r\n'},8:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <video width="100%" height="100%" controls autoplay>\r\n                            <source src="'+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"local_url"):a[1],e))+'" type="video/mp4"/>\r\n                        </video>\r\n                    '},10:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                    <video width="100%" height="100%" controls autoplay>\r\n                        <source src="'+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"local_url"):a[1],e))+'" type="video/mp4"/>\r\n                    </video>\r\n'},12:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=(s(n,"ifTypeof")||e&&s(e,"ifTypeof")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=e?s(e,"title"):e,"array",{name:"ifTypeof",hash:{},fn:t.program(13,r,0,o,a),inverse:t.program(20,r,0,o,a),data:r,loc:{start:{line:27,column:12},end:{line:60,column:25}}}))?n:""},13:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t\t<button type="button" class="button close-button close-icon"><span class="sr-only">Close</span></button>\r\n                <div class="slide-wrapper">\r\n'+(null!=(n=s(n,"each").call(null!=e?e:t.nullContext||{},null!=a[1]?s(a[1],"title"):a[1],{name:"each",hash:{},fn:t.program(14,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:31,column:20},end:{line:45,column:29}}}))?n:"")+"\t\t\t\t</div>\r\n"},14:function(t,e,n,i,r,o,a){var s=null!=e?e:t.nullContext||{},l=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <div class="slide">\r\n                            <div class="content">\r\n                                <img src="about:blank" data-lazy="'+l(c(n,"lookup").call(s,null!=a[2]?c(a[2],"url"):a[2],r&&c(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:34,column:66},end:{line:34,column:93}}}))+'" alt="'+l(t.lambda(e,e))+'"/>\r\n'+(null!=(n=(a[2]&&c(a[2],"ifOffline")||t.hooks.helperMissing).call(s,!1,{name:"../../ifOffline",hash:{},fn:t.program(15,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:35,column:32},end:{line:42,column:52}}}))?n:"")+"\t\t\t\t\t\t\t</div>\r\n                        </div>\r\n"},15:function(t,e,n,i,r,o,a){var s,e=null!=e?e:t.nullContext||{},l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(s=l(n,"if").call(e,(s=r&&l(r,"root"))&&l(s,"contribution"),{name:"if",hash:{},fn:t.program(16,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:36,column:36},end:{line:38,column:43}}}))?s:"")+(null!=(s=l(n,"if").call(e,(s=r&&l(r,"root"))&&l(s,"pinterest"),{name:"if",hash:{},fn:t.program(18,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:39,column:36},end:{line:41,column:43}}}))?s:"")},16:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                        <a href="#" data-anchor="#participation" class="button map-anchor">'+t.escapeExpression(t.lambda((t=(t=(t=(t=r&&o(r,"root"))&&o(t,"globalTexts"))&&o(t,"map_settings_and_labels"))&&o(t,"translations"))&&o(t,"overlay_button"),e))+"</a>\r\n"},18:function(t,e,n,i,r,o,a){var s=t.escapeExpression,l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                        <a href="#" class="button share-button pinterest-icon" data-category="Content" data-action="Redirection::External" data-label="pinterest" data-share="pinterest" data-message="'+s(t.lambda(a[1],e))+'" data-asset="'+s(l(n,"lookup").call(null!=e?e:t.nullContext||{},null!=a[3]?l(a[3],"url"):a[3],r&&l(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:40,column:240},end:{line:40,column:270}}}))+'"><span class="sr-only">pinterest</span></a>\r\n'},20:function(t,e,n,i,r,o,a){var s=t.lambda,l=t.escapeExpression,c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t\t    <div class="content">\r\n\t\t\t\t\t<button type="button" class="button close-button close-icon"><span class="sr-only">Close</span></button>\r\n                    <img src="'+l(s(null!=a[1]?c(a[1],"url"):a[1],e))+'" alt="'+l(s(null!=a[1]?c(a[1],"title"):a[1],e))+'"/>\r\n'+(null!=(l=(a[1]&&c(a[1],"ifOffline")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},!1,{name:"../ifOffline",hash:{},fn:t.program(21,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:51,column:20},end:{line:58,column:37}}}))?l:"")+"                </div>\r\n"},21:function(t,e,n,i,r,o,a){var s,e=null!=e?e:t.nullContext||{},l=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return(null!=(s=l(n,"if").call(e,(s=r&&l(r,"root"))&&l(s,"contribution"),{name:"if",hash:{},fn:t.program(22,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:52,column:24},end:{line:54,column:31}}}))?s:"")+(null!=(s=l(n,"if").call(e,(s=r&&l(r,"root"))&&l(s,"pinterest"),{name:"if",hash:{},fn:t.program(24,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:55,column:24},end:{line:57,column:31}}}))?s:"")},22:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                            <a href="#" data-anchor="#participation" class="button map-anchor">'+t.escapeExpression(t.lambda((t=(t=(t=(t=r&&o(r,"root"))&&o(t,"globalTexts"))&&o(t,"map_settings_and_labels"))&&o(t,"translations"))&&o(t,"overlay_button"),e))+"</a>\r\n"},24:function(t,e,n,i,r,o,a){var s=t.lambda,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                            <a href="#" class="button share-button pinterest-icon" data-category="Content" data-action="Redirection::External" data-label="pinterest" data-share="pinterest" data-message="'+l(s(null!=a[2]?t(a[2],"title"):a[2],e))+'" data-asset="'+l(s(null!=a[2]?t(a[2],"url"):a[2],e))+'"><span class="sr-only">pinterest</span></a>\r\n'},26:function(t,e,n,i,r){var o,a,s=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'\t\t    <div class="content">\r\n\t\t\t\t<button type="button" class="button close-button close-icon"><span class="sr-only">Close</span></button>\r\n                <h1>'+(null!=(o="function"==typeof(a=null!=(a=t(n,"title")||(null!=e?t(e,"title"):e))?a:l)?a.call(s,{name:"title",hash:{},data:r,loc:{start:{line:66,column:20},end:{line:66,column:31}}}):a)?o:"")+"</h1>\r\n                <p>"+(null!=(o="function"==typeof(a=null!=(a=t(n,"text")||(null!=e?t(e,"text"):e))?a:l)?a.call(s,{name:"text",hash:{},data:r,loc:{start:{line:67,column:19},end:{line:67,column:29}}}):a)?o:"")+"</p>\r\n            </div>\r\n"},28:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=(s(n,"ifTypeof")||e&&s(e,"ifTypeof")||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},null!=e?s(e,"title"):e,"array",{name:"ifTypeof",hash:{},fn:t.program(29,r,0,o,a),inverse:t.program(46,r,0,o,a),data:r,loc:{start:{line:72,column:12},end:{line:208,column:25}}}))?n:""},29:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <div class="slide-wrapper">\r\n'+(null!=(n=s(n,"each").call(null!=e?e:t.nullContext||{},null!=a[1]?s(a[1],"title"):a[1],{name:"each",hash:{},fn:t.program(30,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:75,column:20},end:{line:141,column:29}}}))?n:"")+"                </div>\r\n"},30:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.escapeExpression,u=t.lambda,h=t.hooks.helperMissing,d=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                        <div class="slide" data-contribution-id="'+c(d(n,"lookup").call(l,null!=a[2]?d(a[2],"contributionId"):a[2],r&&d(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:76,column:65},end:{line:76,column:103}}}))+'">\r\n                            <button type="button" class="button close-button close-icon"><span class="sr-only">Close</span></button>\r\n                            <div class="slide-inner">\r\n                                <div class="content">\r\n                                    <div class="picture-container">\r\n                                        <img src="about:blank" data-lazy="'+c(d(n,"lookup").call(l,null!=a[2]?d(a[2],"url"):a[2],r&&d(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:81,column:74},end:{line:81,column:101}}}))+'" alt="'+c(u(e,e))+'"/>\r\n                                        <div class="details">\r\n'+(null!=(s=(a[2]&&d(a[2],"ifOffline")||h).call(l,!1,{name:"../../ifOffline",hash:{},fn:t.program(31,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:83,column:44},end:{line:119,column:64}}}))?s:"")+'                                        </div>\r\n                                    </div>\r\n                                    <div class="content-inner">\r\n                                        <h2>'+c(u(e,e))+"</h2>\r\n                                        <p>"+c(u((s=(s=(s=(s=r&&d(r,"root"))&&d(s,"globalTexts"))&&d(s,"map_settings_and_labels"))&&d(s,"translations"))&&d(s,"from"),e))+" <span>"+c(d(n,"lookup").call(l,null!=a[2]?d(a[2],"pseudo"):a[2],r&&d(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:124,column:113},end:{line:124,column:143}}}))+'</span></p>\r\n                                        <a class="button white-button">'+c(u((s=(s=(s=(s=r&&d(r,"root"))&&d(s,"globalTexts"))&&d(s,"map_settings_and_labels"))&&d(s,"translations"))&&d(s,"more_details"),e))+'</a>\r\n                                        <p class="counter">\r\n                                            <strong>'+c((a[2]&&d(a[2],"increment")||h).call(l,r&&d(r,"index"),"1",{name:"../../increment",hash:{},data:r,loc:{start:{line:127,column:52},end:{line:127,column:82}}}))+"</strong>/"+c(u(null!=(s=null!=a[2]?d(a[2],"title"):a[2])?d(s,"length"):s,e))+'\r\n                                        </p>\r\n                                        <div class="details">\r\n                                            <div class="locality">'+c(d(n,"lookup").call(l,null!=a[2]?d(a[2],"city"):a[2],r&&d(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:130,column:66},end:{line:130,column:94}}}))+'.</div>\r\n                                            <div class="version">'+c(u((s=(s=(s=(s=r&&d(r,"root"))&&d(s,"globalTexts"))&&d(s,"map_settings_and_labels"))&&d(s,"translations"))&&d(s,"version"),e))+" : "+(null!=(s=d(n,"with").call(l,d(n,"lookup").call(l,null!=a[2]?d(a[2],"version"):a[2],r&&d(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:131,column:142},end:{line:131,column:171}}}),{name:"with",hash:{},fn:t.program(40,r,0,o,a),inverse:t.program(42,r,0,o,a),data:r,loc:{start:{line:131,column:134},end:{line:131,column:212}}}))?s:"")+'</div>\r\n                                            <div class="year">'+c(u((s=(s=(s=(s=r&&d(r,"root"))&&d(s,"globalTexts"))&&d(s,"map_settings_and_labels"))&&d(s,"translations"))&&d(s,"year"),e))+" :  "+(null!=(s=d(n,"with").call(l,d(n,"lookup").call(l,null!=a[2]?d(a[2],"year"):a[2],r&&d(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:132,column:137},end:{line:132,column:163}}}),{name:"with",hash:{},fn:t.program(40,r,0,o,a),inverse:t.program(42,r,0,o,a),data:r,loc:{start:{line:132,column:129},end:{line:132,column:204}}}))?s:"")+"</div>\r\n"+(null!=(s=d(n,"with").call(l,d(n,"lookup").call(l,null!=a[2]?d(a[2],"text"):a[2],r&&d(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:133,column:52},end:{line:133,column:78}}}),{name:"with",hash:{},fn:t.program(44,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:133,column:44},end:{line:135,column:53}}}))?s:"")+"                                        </div>\r\n                                    </div>\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n"},31:function(t,e,n,i,r){var o,a=t.lambda,s=t.escapeExpression,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                                <div class="share-container">\r\n                                                    <a class="button share-button">\r\n                                                        <span class="share-icon"></span>\r\n                                                        <span class="share-label">'+s(a((o=(o=(o=(o=r&&c(r,"root"))&&c(o,"globalTexts"))&&c(o,"map_settings_and_labels"))&&c(o,"translations"))&&c(o,"share"),e))+'</span>\r\n                                                    </a>\r\n                                                    <ul class="share-links">\r\n                                                        <li><a class="button close-share close-icon"><span class="sr-only">Close</span></a></li>\r\n'+(null!=(o=c(n,"with").call(l,c(n,"lookup").call(l,(o=r&&c(r,"root"))&&c(o,"share_facebook_txt"),r&&c(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:91,column:64},end:{line:91,column:104}}}),{name:"with",hash:{},fn:t.program(32,r,0),inverse:t.noop,data:r,loc:{start:{line:91,column:56},end:{line:93,column:65}}}))?o:"")+(null!=(o=c(n,"with").call(l,c(n,"lookup").call(l,(o=r&&c(r,"root"))&&c(o,"share_twitter_txt"),r&&c(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:94,column:64},end:{line:94,column:103}}}),{name:"with",hash:{},fn:t.program(34,r,0),inverse:t.noop,data:r,loc:{start:{line:94,column:56},end:{line:96,column:65}}}))?o:"")+(null!=(o=c(n,"with").call(l,c(n,"lookup").call(l,(o=r&&c(r,"root"))&&c(o,"share_pinterest_txt"),r&&c(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:97,column:64},end:{line:97,column:105}}}),{name:"with",hash:{},fn:t.program(36,r,0),inverse:t.noop,data:r,loc:{start:{line:97,column:56},end:{line:106,column:65}}}))?o:"")+'                                                    </ul>\r\n                                                </div>\r\n                                                <a class="like-this '+s(c(n,"lookup").call(l,(o=r&&c(r,"root"))&&c(o,"liked"),r&&c(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:109,column:68},end:{line:109,column:97}}}))+'">\r\n                                                    <span class="heart-icon"></span>\r\n                                                    <span class="like-label">'+s(a((o=(o=(o=(o=r&&c(r,"root"))&&c(o,"globalTexts"))&&c(o,"map_settings_and_labels"))&&c(o,"translations"))&&c(o,"form_like_button"),e))+"</span>\r\n                                                </a>\r\n"+(null!=(o=c(n,"with").call(l,c(n,"lookup").call(l,(o=r&&c(r,"root"))&&c(o,"numberLike"),r&&c(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:113,column:56},end:{line:113,column:88}}}),{name:"with",hash:{},fn:t.program(38,r,0),inverse:t.noop,data:r,loc:{start:{line:113,column:48},end:{line:118,column:57}}}))?o:"")},32:function(t,e,n,i,r){var o=t.escapeExpression,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                                        <li><a href="#" class="button share-button facebook-icon" data-category="Content" data-action="Redirection::External" data-label="facebook" data-share="facebook" data-message="'+o(t.lambda(e,e))+'" data-url="'+o(a(n,"lookup").call(null!=e?e:t.nullContext||{},(o=r&&a(r,"root"))&&a(o,"slug"),r&&a(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:92,column:252},end:{line:92,column:280}}}))+'"><span class="sr-only">facebook</span></a></li>\r\n'},34:function(t,e,n,i,r){var o=t.escapeExpression,a=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                                        <li><a href="#" class="button share-button twitter-icon" data-category="Content" data-action="Redirection::External" data-label="twitter" data-share="twitter" data-message="'+o(t.lambda(e,e))+'" data-url="'+o(a(n,"lookup").call(null!=e?e:t.nullContext||{},(o=r&&a(r,"root"))&&a(o,"slug"),r&&a(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:95,column:249},end:{line:95,column:277}}}))+'"><span class="sr-only">twitter</span></a></li>\r\n'},36:function(t,e,n,i,r){var o=t.escapeExpression,a=null!=e?e:t.nullContext||{},s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                                        <li>\r\n                                                            <a href="#" class="button share-button pinterest-icon"\r\n                                                               data-category="Content" data-action="Redirection::External" data-label="pinterest"\r\n                                                               data-share="pinterest" data-message="'+o(t.lambda(e,e))+'"\r\n                                                               data-asset="'+o(s(n,"lookup").call(a,(t=r&&s(r,"root"))&&s(t,"url"),r&&s(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:102,column:75},end:{line:102,column:102}}}))+'" data-url="'+o(s(n,"lookup").call(a,(t=r&&s(r,"root"))&&s(t,"slug"),r&&s(r,"index"),{name:"lookup",hash:{},data:r,loc:{start:{line:102,column:114},end:{line:102,column:142}}}))+'">\r\n                                                                <span class="sr-only">pinterest</span>\r\n                                                            </a>\r\n                                                        </li>\r\n'},38:function(t,e,n,i,r){return'                                                <div class="like-number">\r\n                                                    <span class="heart-icon"></span>\r\n                                                    <span class="like-counter">'+t.escapeExpression(t.lambda(e,e))+"</span>\r\n                                                </div>\r\n"},40:function(t,e,n,i,r){return"<span>"+t.escapeExpression(t.lambda(e,e))+"</span>"},42:function(t,e,n,i,r){return"—"},44:function(t,e,n,i,r){return'                                            <div class="story">'+t.escapeExpression(t.lambda(e,e))+"</div>\r\n"},46:function(t,e,n,i,r,o,a){var s,l=t.lambda,c=t.escapeExpression,u=null!=e?e:t.nullContext||{},h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <button type="button" class="button close-button close-icon"><span class="sr-only">Close</span></button>\r\n                <div class="slide" data-contribution-id="'+c(l(null!=a[1]?h(a[1],"contributionId"):a[1],e))+'">\r\n                    <div class="slide-inner">\r\n                        <div class="content">\r\n                            <div class="picture-container">\r\n                                <img src="'+c(l(null!=a[1]?h(a[1],"url"):a[1],e))+'" alt="'+c(l(null!=a[1]?h(a[1],"title"):a[1],e))+'"/>\r\n                                <div class="details">\r\n'+(null!=(s=(a[1]&&h(a[1],"ifOffline")||t.hooks.helperMissing).call(u,!1,{name:"../ifOffline",hash:{},fn:t.program(47,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:151,column:36},end:{line:187,column:53}}}))?s:"")+'\r\n                                </div>\r\n                            </div>\r\n                            <div class="content-inner">\r\n                                <h2>'+c(l(null!=a[1]?h(a[1],"title"):a[1],e))+"</h2>\r\n                                <p>"+c(l((s=(s=(s=(s=r&&h(r,"root"))&&h(s,"globalTexts"))&&h(s,"map_settings_and_labels"))&&h(s,"translations"))&&h(s,"from"),e))+" <span>"+c(l(null!=a[1]?h(a[1],"pseudo"):a[1],e))+'</span></p>\r\n                                <a class="button white-button">'+c(l((s=(s=(s=(s=r&&h(r,"root"))&&h(s,"globalTexts"))&&h(s,"map_settings_and_labels"))&&h(s,"translations"))&&h(s,"more_details"),e))+'</a>\r\n                                <p class="counter">\r\n                                    <strong>1</strong>/1\r\n                                </p>\r\n                                <div class="details">\r\n                                    <div class="locality">'+c(l(null!=a[1]?h(a[1],"city"):a[1],e))+'.</div>\r\n                                    <div class="version">'+c(l((s=(s=(s=(s=r&&h(r,"root"))&&h(s,"globalTexts"))&&h(s,"map_settings_and_labels"))&&h(s,"translations"))&&h(s,"version"),e))+" : "+(null!=(s=h(n,"if").call(u,null!=a[1]?h(a[1],"version"):a[1],{name:"if",hash:{},fn:t.program(56,r,0,o,a),inverse:t.program(42,r,0,o,a),data:r,loc:{start:{line:200,column:126},end:{line:200,column:187}}}))?s:"")+'</div>\r\n                                    <div class="year">'+c(l((s=(s=(s=(s=r&&h(r,"root"))&&h(s,"globalTexts"))&&h(s,"map_settings_and_labels"))&&h(s,"translations"))&&h(s,"year"),e))+" : "+(null!=(s=h(n,"if").call(u,null!=a[1]?h(a[1],"year"):a[1],{name:"if",hash:{},fn:t.program(58,r,0,o,a),inverse:t.program(42,r,0,o,a),data:r,loc:{start:{line:201,column:120},end:{line:201,column:175}}}))?s:"")+"</div>\r\n                                    "+(null!=(s=h(n,"if").call(u,null!=a[1]?h(a[1],"text"):a[1],{name:"if",hash:{},fn:t.program(60,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:202,column:36},end:{line:202,column:94}}}))?s:"")+"\r\n                                </div>\r\n                            </div>\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n"},47:function(t,e,n,i,r,o,a){var s,l=t.lambda,c=t.escapeExpression,u=null!=e?e:t.nullContext||{},h=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                        <div class="share-container">\r\n                                            <a class="button share-button">\r\n                                                <span class="share-icon"></span>\r\n                                                <span class="share-label">'+c(l((s=(s=(s=(s=r&&h(r,"root"))&&h(s,"globalTexts"))&&h(s,"map_settings_and_labels"))&&h(s,"translations"))&&h(s,"share"),e))+'</span>\r\n                                            </a>\r\n                                            <ul class="share-links">\r\n                                                <li><a class="button close-share close-icon"><span class="sr-only">Close</span></a></li>\r\n'+(null!=(s=h(n,"if").call(u,null!=a[1]?h(a[1],"share_facebook_txt"):a[1],{name:"if",hash:{},fn:t.program(48,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:159,column:48},end:{line:161,column:55}}}))?s:"")+(null!=(s=h(n,"if").call(u,null!=a[1]?h(a[1],"share_twitter_txt"):a[1],{name:"if",hash:{},fn:t.program(50,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:162,column:48},end:{line:164,column:55}}}))?s:"")+(null!=(s=h(n,"if").call(u,null!=a[1]?h(a[1],"share_pinterest_txt"):a[1],{name:"if",hash:{},fn:t.program(52,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:165,column:48},end:{line:174,column:55}}}))?s:"")+'                                            </ul>\r\n                                        </div>\r\n                                        <a class="like-this '+c(l(null!=a[1]?h(a[1],"liked"):a[1],e))+'">\r\n                                            <span class="heart-icon"></span>\r\n                                            <span class="like-label">'+c(l((s=(s=(s=(s=r&&h(r,"root"))&&h(s,"globalTexts"))&&h(s,"map_settings_and_labels"))&&h(s,"translations"))&&h(s,"form_like_button"),e))+"</span>\r\n                                        </a>\r\n"+(null!=(s=h(n,"if").call(u,null!=a[1]?h(a[1],"numberLike"):a[1],{name:"if",hash:{},fn:t.program(54,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:181,column:40},end:{line:186,column:47}}}))?s:"")},48:function(t,e,n,i,r,o,a){var s=t.lambda,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                                <li><a href="#" class="button share-button facebook-icon" data-category="Content" data-action="Redirection::External" data-label="facebook" data-share="facebook" data-message="'+l(s(null!=a[1]?t(a[1],"share_facebook_txt"):a[1],e))+'" data-url="'+l(s(null!=a[1]?t(a[1],"slug"):a[1],e))+'"><span class="sr-only">facebook</span></a></li>\r\n'},50:function(t,e,n,i,r,o,a){var s=t.lambda,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                                <li><a href="#" class="button share-button twitter-icon" data-category="Content" data-action="Redirection::External" data-label="twitter" data-share="twitter" data-message="'+l(s(null!=a[1]?t(a[1],"share_twitter_txt"):a[1],e))+'" data-url="'+l(s(null!=a[1]?t(a[1],"slug"):a[1],e))+'"><span class="sr-only">twitter</span></a></li>\r\n'},52:function(t,e,n,i,r,o,a){var s=t.lambda,l=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                                <li>\r\n                                                    <a href="#" class="button share-button pinterest-icon"\r\n                                                       data-category="Content" data-action="Redirection::External" data-label="pinterest"\r\n                                                       data-share="pinterest" data-message="'+l(s(null!=a[1]?t(a[1],"share_pinterest_txt"):a[1],e))+'" data-url="'+l(s(null!=a[1]?t(a[1],"slug"):a[1],e))+'"\r\n                                                       data-asset="'+l(s(null!=a[1]?t(a[1],"url"):a[1],e))+'">\r\n                                                        <span class="sr-only">pinterest</span>\r\n                                                    </a>\r\n                                                </li>\r\n'},54:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                                        <div class="like-number">\r\n                                            <span class="heart-icon"></span>\r\n                                            <span class="like-counter">'+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"numberLike"):a[1],e))+"</span>\r\n                                        </div>\r\n"},56:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"<span>"+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"version"):a[1],e))+"</span>"},58:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return"<span>"+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"year"):a[1],e))+"</span>"},60:function(t,e,n,i,r,o,a){var s=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="story">'+t.escapeExpression(t.lambda(null!=a[1]?s(a[1],"text"):a[1],e))+"</div>"},62:function(t,e,n,i,r){var o,a=t.lambda,s=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'                <button type="button" class="button close-button close-icon"><span class="sr-only">Close</span></button>\r\n\t\t    <div class="content">\r\n                <div>\r\n                    <div class="col-left">\r\n                        <h2>'+(null!=(o=a(null!=(o=null!=(o=null!=e?t(e,"globalTexts"):e)?t(o,"lifestyle_popin"):o)?t(o,"title"):o,e))?o:"")+"</h2>\r\n                        <div>"+s(a(null!=(o=null!=(o=null!=e?t(e,"globalTexts"):e)?t(o,"lifestyle_popin"):o)?t(o,"content"):o,e))+'</div>\r\n                        <a href="'+s(a(null!=(o=null!=(o=null!=e?t(e,"globalTexts"):e)?t(o,"lifestyle_popin"):o)?t(o,"cta_href"):o,e))+'" class="btn" target="_blank">'+s(a(null!=(o=null!=(o=null!=e?t(e,"globalTexts"):e)?t(o,"lifestyle_popin"):o)?t(o,"cta_title"):o,e))+'</a>\r\n                    </div>\r\n                    <div class="col-right">\r\n                        <img src="'+s(a(null!=(o=null!=(o=null!=e?t(e,"globalTexts"):e)?t(o,"lifestyle_popin"):o)?t(o,"image"):o,e))+'" alt="'+s(a(null!=(o=null!=(o=null!=e?t(e,"globalTexts"):e)?t(o,"lifestyle_popin"):o)?t(o,"title"):o,e))+'" />\r\n                     </div>\r\n                </div>\r\n            </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r,o,a){var s,l=null!=e?e:t.nullContext||{},c=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="popin-inner">\r\n    <div class="media-wrapper">\r\n'+(null!=(s=c(n,"if").call(l,null!=e?c(e,"isVideo"):e,{name:"if",hash:{},fn:t.program(1,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:3,column:8},end:{line:24,column:15}}}))?s:"")+"\r\n"+(null!=(s=c(n,"if").call(l,null!=e?c(e,"isImage"):e,{name:"if",hash:{},fn:t.program(12,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:26,column:8},end:{line:61,column:15}}}))?s:"")+"\r\n"+(null!=(s=c(n,"if").call(l,null!=e?c(e,"isText"):e,{name:"if",hash:{},fn:t.program(26,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:63,column:8},end:{line:69,column:15}}}))?s:"")+"\r\n"+(null!=(s=c(n,"if").call(l,null!=e?c(e,"isContribution"):e,{name:"if",hash:{},fn:t.program(28,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:71,column:8},end:{line:209,column:15}}}))?s:"")+"\r\n"+(null!=(s=c(n,"if").call(l,null!=e?c(e,"isLinkShop"):e,{name:"if",hash:{},fn:t.program(62,r,0,o,a),inverse:t.noop,data:r,loc:{start:{line:211,column:8},end:{line:225,column:15}}}))?s:"")+"    </div>\r\n</div>\r\n"},useData:!0,useDepths:!0})},{"hbsfy/runtime":413}],637:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=l(t("backbone.marionette")),a=(l(t("backbone")),l(t("underscore"))),s=l(t("./template.hbs"));t("./../../../util/Env.js");function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}c(h,u=o.default.ItemView),h.prototype.ui=function(){return{background1:".svr-background1",introCars:".intro-car-wrapper",logo:".logo-intro",yearWrapper:".year-wrapper",year:".year",texts:".svr-intro-texts",background2:".svr-background2",tuto:".svr-tuto",tutoHand:".svr-tuto-deco__hand",tutoTouches:".svr-tuto-deco__touch1, .svr-tuto-deco__touch2"}},h.prototype.serializeData=function(){return this.options},h.prototype.getAssets=function(){return this.$el.find("img")},h.prototype.onShow=function(){var c=this,u={value:0},h=new TimelineLite,d=TweenLite.to(u,0,{value:this.options.max,roundProps:"value",onUpdate:function(){c.ui.year.text(u.value)},ease:Power2.easeOut}),p=this._tl=new TimelineLite,f=this.options.data,m=Object.keys(f).sort(function(t,e){t=f[t],e=f[e];return"weight"in e?"weight"in t?parseInt(t.weight)-parseInt(e.weight):1:-1}),g=0;p.add(function(){var t=f[m[g]],e=(g=(g+1)%m.length,d.duration()),n=(c.ui.texts.empty(),h.clear(),h.delay(.5),!0),i=!1,r=void 0;try{for(var o,a=t.screen_saver_text[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value,l=$("<p>"+s+"</p>");c.ui.texts.append(l),TweenLite.set(l,{opacity:0,y:60}),h.to(l,.8,{opacity:1,y:0},"-=0.3"),h.to(l,.4,{opacity:0,y:-60},"+=0.8")}}catch(t){i=!0,r=t}finally{try{!n&&a.return&&a.return()}finally{if(i)throw r}}d.duration(h.duration());i=d.duration()-e;p.shiftChildren(i,!0,p.getLabelTime("beforepart1end")),u.value=c.options.min,d.invalidate(),c.ui.year.text(u.value),c.ui.tuto.text(t.tuto_text),TweenLite.set([c.ui.introCars,c.ui.logo,c.ui.yearWrapper,c.ui.tuto,c.ui.tutoHand,c.ui.tutoTouches],{opacity:0}),TweenLite.set(c.ui.texts,{opacity:1}),TweenLite.set(c.ui.introCars,{y:60}),c.ui.introCars.removeClass("move"),TweenLite.set(c.ui.tuto,{y:60}),TweenLite.set(c.ui.tutoTouches,{x:0,y:0})},0),p.fromTo(this.ui.background1,1,{opacity:0},{opacity:1}),p.add(function(){return c.triggerMethod("screensaver:resetzoom")}),p.addLabel("ready"),p.to(this.ui.yearWrapper,.7,{opacity:1},"ready+=0.2"),p.to(this.ui.introCars,1,{y:0,opacity:1},"ready+=0.3"),p.to(this.ui.logo,.7,{opacity:1},"ready+=0.6"),p.add(h,"ready+=0.5"),p.add(d,"ready+=0.5"),p.addLabel("beforepart1end","-=0.6"),p.add(function(){c.ui.introCars.addClass("move")},"beforepart1end"),p.to([this.ui.introCars,this.ui.logo,this.ui.yearWrapper],.6,{opacity:0},"beforepart1end+=0.6"),p.set(this.ui.texts,{opacity:0}),p.to(this.ui.background1,1.2,{opacity:0},"-=0.2"),p.to(this.ui.tuto,.8,{opacity:1,y:0},"-=0.8"),p.fromTo(this.ui.tutoHand,.4,{scale:1.5,opacity:0},{scale:1,opacity:1},"+=0.1"),p.fromTo(this.ui.tutoTouches,.3,{scale:.5,opacity:0},{scale:1,opacity:1},"-=0.3"),p.add(function(){c.triggerMethod("screensaver:carautozoom",!0)},"+=0.8");p.to(this.ui.tutoHand,.6,{opacity:0},"-=0.2"),p.to(this.ui.tutoTouches[0],.8,{x:120*.34,y:-112.8},"-=0.4"),p.to(this.ui.tutoTouches[1],.8,{x:120*-.34,y:112.8},"-=0.8"),p.to(this.ui.tutoTouches,.6,{opacity:0,scale:.5},"-=0.6"),p.set(this.ui.tutoTouches,{x:0,y:0}),p.fromTo(this.ui.tutoHand,.4,{scale:1.5,opacity:0},{scale:1,opacity:1},"+=0.1"),p.fromTo(this.ui.tutoTouches,.3,{scale:.5,opacity:0},{scale:1,opacity:1},"-=0.3"),p.add(function(){c.triggerMethod("screensaver:carautozoom",!1)},"+=0.4"),p.to(this.ui.tutoHand,.6,{opacity:0},"-=0.2"),p.to(this.ui.tutoTouches[0],.8,{x:120*.34,y:-112.8},"-=0.4"),p.to(this.ui.tutoTouches[1],.8,{x:120*-.34,y:112.8},"-=0.8"),p.to(this.ui.tutoTouches,.6,{opacity:0,scale:.5},"-=0.6"),p.to(this.ui.tuto,.4,{opacity:0,y:-60},"+=0.6"),p.add(function(){c._tl.restart(!0)},"+=0.2")},h.prototype.launchTuto=function(){this.$el.find(">*").fadeOut(600),a.default.delay(function(){this.$el.addClass("tuto"),$(this.ui.legend).removeClass("hide").addClass("touch").animate({opacity:1},600)}.bind(this),400)},h.prototype.onBeforeDestroy=function(){this._tl&&(this._tl.kill(),this._tl=null)},h.prototype.onDestroy=function(){},i(h,[{key:"className",get:function(){return"intro screensaver"}},{key:"tagName",get:function(){return"section"}},{key:"template",get:function(){return s.default}}]);var u,t=h;function h(){var t=this,e=h;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=u.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"./../../../util/Env.js":643,"./template.hbs":638,backbone:44,"backbone.marionette":42,underscore:576}],638:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,l="function",c=t.escapeExpression,t=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<div class="svr-background1"></div>\n<div class="svr-background2"></div>\n<div class="year-wrapper">\n\t<p class="year">'+c(typeof(o=null!=(o=t(n,"min")||(null!=e?t(e,"min"):e))?o:s)==l?o.call(a,{name:"min",hash:{},data:r,loc:{start:{line:4,column:17},end:{line:4,column:24}}}):o)+'</p>\n</div>\n<div class="logo-intro"><span class="sr-only">Citroën Origins</span></div>\n<div class="intro-car-wrapper">\n\t<div class="intro-car">\n\t\t<img src="'+c(typeof(o=null!=(o=t(n,"assetsFolder")||(null!=e?t(e,"assetsFolder"):e))?o:s)==l?o.call(a,{name:"assetsFolder",hash:{},data:r,loc:{start:{line:9,column:12},end:{line:9,column:28}}}):o)+'/assets/img/intro/2cv.png" alt="2CV">\n\t</div>\n\t<div class="intro-car">\n\t\t<img src="'+c(typeof(o=null!=(o=t(n,"assetsFolder")||(null!=e?t(e,"assetsFolder"):e))?o:s)==l?o.call(a,{name:"assetsFolder",hash:{},data:r,loc:{start:{line:12,column:12},end:{line:12,column:28}}}):o)+'/assets/img/intro/ami_one.png" alt="Ami-One">\n\t</div>\n</div>\n<div class="svr-intro-texts"></div>\n\n<div class="svr-tuto-deco">\n    <div class="svr-tuto-deco__hand"></div>\n    <div class="svr-tuto-deco__touch1"></div>\n    <div class="svr-tuto-deco__touch2"></div>\n</div>\n\n<p class="svr-tuto"></p>\n'},useData:!0})},{"hbsfy/runtime":413}],639:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t};function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=l(t("backbone.marionette")),a=(l(t("underscore")),l(t("./template.hbs"))),s=t("../../../util/Env");function l(t){return t&&t.__esModule?t:{default:t}}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);if(t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e)if(Object.setPrototypeOf)Object.setPrototypeOf(t,e);else for(var n=t,i=e,r=Object.getOwnPropertyNames(i),o=0;o<r.length;o++){var a=r[o],s=Object.getOwnPropertyDescriptor(i,a);s&&s.configurable&&void 0===n[a]&&Object.defineProperty(n,a,s)}}var u,h="rtl"==document.documentElement.getAttribute("dir"),t=(c(d,u=o.default.ItemView),d.prototype.ui=function(){return{min:".min",max:".max",bar:".range-bar"}},d.prototype.events=function(){return{}},d.prototype.serializeData=function(){for(var t=this._filteredYears=this.model.getYears(),e=this._filterMinYear=this._minYear=t[0],t=this._filterMaxYear=this._maxYear=(new Date).getFullYear(),n=(this._yearsRange=this._maxYear-this._minYear,new Array(this._yearsRange)),i=0;i<=this._yearsRange;i++){var r=e+i;n[i]={isDecade:r%10==0,value:i<4||i>=this._yearsRange-4?"":r}}return{min:e,max:t,years:n}},d.prototype.getYearFromHPos=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this._minYear,t=t/this._timelineWidth,e=(t=(h="rtl"==document.documentElement.getAttribute("dir"))?1-t:t,e+Math.round(t*this._yearsRange));return Math.min(Math.max(e,this._minYear),this._maxYear)},d.prototype.getHPosFromYear=function(t){t=(t-this._minYear)/this._yearsRange,t=Math.min(Math.max(t,0),1);return t=(h="rtl"==document.documentElement.getAttribute("dir"))?1-t:t,this._timelineWidth*t},d.prototype.getYearFromVPos=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this._minYear,t=t/this._timelineHeight,e=e+Math.round(t*this._yearsRange);return Math.min(Math.max(e,this._minYear),this._maxYear)},d.prototype.getVPosFromYear=function(t){t=(t-this._minYear)/this._yearsRange,t=Math.min(Math.max(t,0),1);return this._timelineHeight*t},d.prototype.onRender=function(){this._onPress=this.onPress.bind(this),this._onRelease=this.onRelease.bind(this),this._onDrag=this.onDrag.bind(this),(0,s.isSmall)()?Draggable.create(this.ui.min,{type:"y",bounds:".range-selector",liveSnap:!0,snap:this.onSmallSnap.bind(this),onDrag:this._onDrag,onPress:this._onPress,onRelease:this._onRelease}):(Draggable.create(this.ui.min,{type:"x",bounds:".range-selector",liveSnap:!0,snap:this.onSnapMin.bind(this),onDrag:this._onDrag,onPress:this._onPress,onRelease:this._onRelease}),Draggable.create(this.ui.max,{type:"x",bounds:".range-selector",liveSnap:!0,snap:this.onSnapMax.bind(this),onDrag:this._onDrag,onPress:this._onPress,onRelease:this._onRelease})),this._onResize=this.onResize.bind(this),$(window).on("resize",this._onResize)},d.prototype.onAttach=function(){this._filterMinYear=this._minYear,this._filterMaxYear=this._maxYear,this.onResize()},d.prototype.onPress=function(t){t.preventDefault(),this.ui.min.add(this.ui.max).css("transition","none"),$("#main-region").css("overflow","hidden"),this._dragging=!0},d.prototype.onRelease=function(t){t.preventDefault(),this.ui.min.add(this.ui.max).css("transition",""),$("#main-region").css("overflow",""),this._dragging=!1},d.prototype.onDrag=function(t){t.preventDefault()},d.prototype.onSnapMin=function(t){return Number.isNaN(t)?0:(t=this.getYearFromHPos(t),t=this._filterMinYear=Math.max(Math.min(t,this._filterMaxYear-1),this._minYear),this.ui.min.find("span").html(t),this.setupBar(),this.getHPosFromYear(t))},d.prototype.onSnapMax=function(t){return Number.isNaN(t)?0:(t=this.getYearFromHPos(t),t=this._filterMaxYear=Math.max(Math.min(t,this._maxYear),this._filterMinYear+1),this.ui.max.find("span").html(t),this.setupBar(),this.getHPosFromYear(t))},d.prototype.onSmallSnap=function(e){if(Number.isNaN(e))return 0;if(this._ignoreSnap)return e;var t=this.getYearFromVPos(e),t=Math.max(Math.min(t,this._maxYear),this._minYear),n=this._filteredYears[0],i=!0,e=!1,r=void 0;try{for(var o,a=this._filteredYears[Symbol.iterator]();!(i=(o=a.next()).done);i=!0){var s=o.value,l=Math.abs(n-t);Math.abs(s-t)<l&&(n=s)}}catch(t){e=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(e)throw r}}return this.ui.min.find("span").html(n),this.triggerMethod("scroll:year",n),this.getVPosFromYear(n)},d.prototype.onResize=function(){var t,e,n,i;((0,s.isSmall)()?Draggable.get(this.ui.min):(t=this._filterMinYear,e=this._filterMaxYear,n=Draggable.get(this.ui.min),i=Draggable.get(this.ui.max),n.applyBounds(),i.applyBounds(),this._filterMinYear=t,this._filterMaxYear=e,TweenLite.set(this.ui.min,{x:this.getHPosFromYear(this._filterMinYear)}),TweenLite.set(this.ui.max,{x:this.getHPosFromYear(this._filterMaxYear)}),n.applyBounds(),i)).applyBounds()},d.prototype.setYear=function(t){this._dragging||(this.ui.min.find("span").html(t),t=this.getVPosFromYear(t),this._ignoreSnap=!0,TweenLite.set(this.ui.min,{y:t}),Draggable.get(this.ui.min).applyBounds(),this._ignoreSnap=!1)},d.prototype.setupBar=function(){var t=(h="rtl"==document.documentElement.getAttribute("dir"))?this.getHPosFromYear(this._filterMaxYear):this.getHPosFromYear(this._filterMinYear),e=h?this.getHPosFromYear(this._filterMinYear):this.getHPosFromYear(this._filterMaxYear);e<t?(this.ui.bar.css("left",0),this.ui.bar.css("width","100%")):(this.ui.bar.css("left",t),this.ui.bar.css("width",e-t)),this.triggerMethod("filter:year",this._filterMinYear,this._filterMaxYear)},d.prototype.filterCat=function(t){this._cat=t,this._filteredYears=this.model.getYears({cat:t})},d.prototype.onDestroy=function(){$(window).off("resize",this._onResize),this._onResize=null,Draggable.get(this.ui.min).kill(),Draggable.get(this.ui.max)&&Draggable.get(this.ui.max).kill()},i(d,[{key:"className",get:function(){return"timeline-inner"}},{key:"tagName",get:function(){return"nav"}},{key:"template",get:function(){return a.default}},{key:"_timelineWidth",get:function(){return this.$el.find(".range-selector").width()-2}},{key:"_timelineHeight",get:function(){return this.$el.height()}}]),d);function d(){var t=this,e=d;if(!(t instanceof e))throw new TypeError("Cannot call a class as a function");t=this,e=u.apply(this,arguments);if(t)return!e||"object"!=typeof e&&"function"!=typeof e?t:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}n.default=t},{"../../../util/Env":643,"./template.hbs":640,"backbone.marionette":42,underscore:576}],640:[function(t,e,n){t=t("hbsfy/runtime");e.exports=t.template({1:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return null!=(n=o(n,"if").call(null!=e?e:t.nullContext||{},null!=e?o(e,"isDecade"):e,{name:"if",hash:{},fn:t.program(2,r,0),inverse:t.program(4,r,0),data:r,loc:{start:{line:4,column:8},end:{line:8,column:15}}}))?n:""},2:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <li class="decade"><span>'+t.escapeExpression("function"==typeof(n=null!=(n=o(n,"value")||(null!=e?o(e,"value"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"value",hash:{},data:r,loc:{start:{line:5,column:37},end:{line:5,column:46}}}):n)+"</span></li>\n"},4:function(t,e,n,i,r){var o=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'            <li><span class="sr-only">'+t.escapeExpression("function"==typeof(n=null!=(n=o(n,"value")||(null!=e?o(e,"value"):e))?n:t.hooks.helperMissing)?n.call(null!=e?e:t.nullContext||{},{name:"value",hash:{},data:r,loc:{start:{line:7,column:38},end:{line:7,column:47}}}):n)+"</span></li>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,i,r){var o,a=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,l="function",c=t.escapeExpression,u=t.lookupProperty||function(t,e){if(Object.prototype.hasOwnProperty.call(t,e))return t[e]};return'<span class="late-year">'+c(typeof(o=null!=(o=u(n,"min")||(null!=e?u(e,"min"):e))?o:s)==l?o.call(a,{name:"min",hash:{},data:r,loc:{start:{line:1,column:24},end:{line:1,column:31}}}):o)+'</span>\n<ul class="decades">\n'+(null!=(t=u(n,"each").call(a,null!=e?u(e,"years"):e,{name:"each",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r,loc:{start:{line:3,column:4},end:{line:9,column:13}}}))?t:"")+'</ul>\n<span class="recent-year">'+c(typeof(o=null!=(o=u(n,"max")||(null!=e?u(e,"max"):e))?o:s)==l?o.call(a,{name:"max",hash:{},data:r,loc:{start:{line:11,column:26},end:{line:11,column:33}}}):o)+'</span>\n\n<div class="range-selector">\n    <div class="min"><span>'+c(typeof(o=null!=(o=u(n,"min")||(null!=e?u(e,"min"):e))?o:s)==l?o.call(a,{name:"min",hash:{},data:r,loc:{start:{line:14,column:27},end:{line:14,column:34}}}):o)+'</span></div>\n    <div class="range-bar hide-for-small"></div>\n    <div class="max hide-for-small"><span>'+c(typeof(o=null!=(o=u(n,"max")||(null!=e?u(e,"max"):e))?o:s)==l?o.call(a,{name:"max",hash:{},data:r,loc:{start:{line:16,column:42},end:{line:16,column:49}}}):o)+"</span></div>\n</div>\n"},useData:!0})},{"hbsfy/runtime":413}],641:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=t("three"),p=(t=t)&&t.__esModule?t:{default:t};p.default.CSS3DObject=function(t){p.default.Object3D.call(this),this.element=t,this.element.style.position="absolute",this.addEventListener("removed",function(t){null!==this.element.parentNode&&this.element.parentNode.removeChild(this.element)})},p.default.CSS3DObject.prototype=Object.create(p.default.Object3D.prototype),p.default.CSS3DObject.prototype.constructor=p.default.CSS3DObject,p.default.CSS3DSprite=function(t){p.default.CSS3DObject.call(this,t)},p.default.CSS3DSprite.prototype=Object.create(p.default.CSS3DObject.prototype),p.default.CSS3DSprite.prototype.constructor=p.default.CSS3DSprite,p.default.CSS3DRenderer=function(){function s(t,e){var n,i,r;t instanceof p.default.CSS3DObject&&(n=t instanceof p.default.CSS3DSprite?(l.copy(e.matrixWorldInverse),l.transpose(),l.copyPosition(t.matrixWorld),l.scale(t.scale),l.elements[3]=0,l.elements[7]=0,l.elements[11]=0,l.elements[15]=1,d(l)):d(t.matrixWorld),i=t.element,void 0!==(r=c.objects[t.id])&&r===n||(i.style.WebkitTransform=n,i.style.MozTransform=n,i.style.oTransform=n,i.style.transform=n,c.objects[t.id]=n),i.parentNode!==u)&&u.appendChild(i);for(var o=0,a=t.children.length;o<a;o++)s(t.children[o],e)}console.log("THREE.CSS3DRenderer",p.default.REVISION);var n,i,r,o,l=new p.default.Matrix4,c={camera:{fov:0,style:""},objects:{}},a=document.createElement("div"),u=(a.style.overflow="hidden",a.style.WebkitTransformStyle="preserve-3d",a.style.MozTransformStyle="preserve-3d",a.style.oTransformStyle="preserve-3d",a.style.transformStyle="preserve-3d",this.domElement=a,document.createElement("div")),h=(u.style.WebkitTransformStyle="preserve-3d",u.style.MozTransformStyle="preserve-3d",u.style.oTransformStyle="preserve-3d",u.style.transformStyle="preserve-3d",a.appendChild(u),this.setClearColor=function(){},this.getSize=function(){return{width:n,height:i}},this.setSize=function(t,e){r=(n=t)/2,o=(i=e)/2,a.style.width=t+"px",a.style.height=e+"px",u.style.width=t+"px",u.style.height=e+"px"},function(t){return Math.abs(t)<Number.EPSILON?0:t}),d=function(t){t=t.elements;return"translate3d(-50%,-50%,0) matrix3d("+h(t[0])+","+h(t[1])+","+h(t[2])+","+h(t[3])+","+h(-t[4])+","+h(-t[5])+","+h(-t[6])+","+h(-t[7])+","+h(t[8])+","+h(t[9])+","+h(t[10])+","+h(t[11])+","+h(t[12])+","+h(t[13])+","+h(t[14])+","+h(t[15])+")"};this.render=function(t,e){var n=.5/Math.tan(p.default.Math.degToRad(.5*e.getEffectiveFOV()))*i,n=(c.camera.fov!==n&&(a.style.WebkitPerspective=n+"px",a.style.MozPerspective=n+"px",a.style.oPerspective=n+"px",a.style.perspective=n+"px",c.camera.fov=n),t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),e.matrixWorldInverse.getInverse(e.matrixWorld),"translate3d(0,0,"+n+"px)"+function(t){t=t.elements;return"matrix3d("+h(t[0])+","+h(-t[1])+","+h(t[2])+","+h(t[3])+","+h(t[4])+","+h(-t[5])+","+h(t[6])+","+h(t[7])+","+h(t[8])+","+h(-t[9])+","+h(t[10])+","+h(t[11])+","+h(t[12])+","+h(-t[13])+","+h(t[14])+","+h(t[15])+")"}(e.matrixWorldInverse)+" translate3d("+r+"px,"+o+"px, 0)");c.camera.style!==n&&(u.style.WebkitTransform=n,u.style.MozTransform=n,u.style.oTransform=n,u.style.transform=n,c.camera.style=n),s(t,e)}},n.default=p.default},{three:574}],642:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.setCookie=function(t,e,n){var i=new Date,n=(i.setTime(i.getTime()+24*n*60*60*1e3),"expires="+i.toUTCString());document.cookie=t+"="+e+"; "+n+"; path=/"},n.getCookie=function(t){for(var t=t+"=",e=document.cookie.split(";"),n=0;n<e.length;n++){for(var i=e[n];" "==i.charAt(0);)i=i.substring(1);if(0==i.indexOf(t))return i.substring(t.length,i.length)}return""}},{}],643:[function(t,e,r){!function(i){!function(){"use strict";function t(){return/iP(hone|od)|BlackBerry|HTC|Nexus|Dell|Motorola|Samsung|LG|Sony|Asus|Micromax|Palm|Vertu|Pantech|Fly|iMobile|SimValley|Wolfgang|Alcatel|Nintendo|Amoi|INQ|GenericPhone|ONE|Version|Chrome.*Mobile.*Safari|Safari.*Mobile|MobileSafari/i.test(navigator.userAgent)&&!e()}function e(){return/iPad|NexusTablet|SamsungTablet|Kindle|SurfaceTablet|HPTablet|AsusTablet|BlackBerryTablet|HTCtablet|MotorolaTablet|NookTablet|AcerTablet|ToshibaTablet|LGTablet|FujitsuTablet|PrestigioTablet|LenovoTablet|DellTablet|YarvikTablet|MedionTablet|ArnovaTablet|IntensoTablet|IRUTablet|MegafonTablet|EbodaTablet|AllViewTablet|ArchosTablet|AinolTablet|SonyTablet|PhilipsTablet|CubeTablet|CobyTablet|MIDTablet|MSITablet|SMiTTablet|RockChipTablet|FlyTablet|bqTablet|HuaweiTablet|NecTablet|PantechTablet|BronchoTablet|VersusTablet|ZyncTablet|PositivoTablet|NabiTablet|KoboTablet|DanewTablet|TexetTablet|PlaystationTablet|TrekstorTablet|PyleAudioTablet|AdvanTablet|DanyTechTablet|GalapadTablet|MicromaxTablet|KarbonnTablet|AllFineTablet|PROSCANTablet|YONESTablet|ChangJiaTablet|GUTablet|PointOfViewTablet|OvermaxTablet|HCLTablet|DPSTablet|VistureTablet|CrestaTablet|MediatekTablet|ConcordeTablet|GoCleverTablet|ModecomTablet|VoninoTablet|ECSTablet|StorexTablet|VodafoneTablet|EssentielBTablet|RossMoorTablet|iMobileTablet|TolinoTablet|AudioSonicTablet|AMPETablet|SkkTablet|TecnoTablet|JXDTablet|iJoyTablet|FX2Tablet|XoroTablet|ViewsonicTablet|OdysTablet|CaptivaTablet|IconbitTablet|TeclastTablet|JaytechTablet|BlaupunktTablet|DigmaTablet|EvolioTablet|LavaTablet|CelkonTablet|MiTablet|NibiruTablet|NexoTablet|UbislateTablet|PocketBookTablet|Hudl|TelstraTablet|GenericTablet|GT\-P|SM-T|Tablet.*Firefox/i.test(navigator.userAgent)}Object.defineProperty(r,"__esModule",{value:!0}),r.isMobile=t,r.isTablet=e,r.isDesktop=function(){return!(t()||e())},r.isIE=function(){return-1!=navigator.userAgent.indexOf("Trident")||-1!=navigator.userAgent.indexOf("MSIE")},r.isSmall=function(){return window.innerWidth<=667},r.isTouch=function(){return Modernizr.touch},r.resolution=function(){return window.matchMedia("(-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi), (min-resolution: 1.25dppx)").matches?2:1},r.rewritePath=function(t){if(""==t)return t;t=t.split("sites/default/")[1];return t="file:///"+i.__dirname.replace(/\\/g,"/")+"/"+t},r.getScrollbarSize=function(){if(null!=n)return n;var t=document.body,e=(t.insertAdjacentHTML("beforeend",'<div style="width:100px;height:100px;overflow:scroll;position:absolute;-ms-overflow-style:scrollbar;"></div>'),t.lastChild);n=e.offsetWidth-e.clientWidth,t.removeChild(e)};var n=null}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],644:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=t("three"),Dt=(t=t)&&t.__esModule?t:{default:t};Dt.default.RenderableObject=function(){this.id=0,this.object=null,this.z=0,this.renderOrder=0},Dt.default.RenderableFace=function(){this.id=0,this.v1=new Dt.default.RenderableVertex,this.v2=new Dt.default.RenderableVertex,this.v3=new Dt.default.RenderableVertex,this.normalModel=new Dt.default.Vector3,this.vertexNormalsModel=[new Dt.default.Vector3,new Dt.default.Vector3,new Dt.default.Vector3],this.vertexNormalsLength=0,this.color=new Dt.default.Color,this.material=null,this.uvs=[new Dt.default.Vector2,new Dt.default.Vector2,new Dt.default.Vector2],this.z=0,this.renderOrder=0},Dt.default.RenderableVertex=function(){this.position=new Dt.default.Vector3,this.positionWorld=new Dt.default.Vector3,this.positionScreen=new Dt.default.Vector4,this.visible=!0},Dt.default.RenderableVertex.prototype.copy=function(t){this.positionWorld.copy(t.positionWorld),this.positionScreen.copy(t.positionScreen)},Dt.default.RenderableLine=function(){this.id=0,this.v1=new Dt.default.RenderableVertex,this.v2=new Dt.default.RenderableVertex,this.vertexColors=[new Dt.default.Color,new Dt.default.Color],this.material=null,this.z=0,this.renderOrder=0},Dt.default.RenderableSprite=function(){this.id=0,this.object=null,this.x=0,this.y=0,this.z=0,this.rotation=0,this.scale=new Dt.default.Vector2,this.material=null,this.renderOrder=0},Dt.default.Projector=function(){var rt,ot,r,at,st,lt,ct,ut,ht,dt,pt,ft=[],mt=0,gt=[],e=0,n=[],i=0,o=[],a=0,vt=[],yt=0,_t={objects:[],lights:[],elements:[]},bt=new Dt.default.Vector3,xt=new Dt.default.Vector4,f=new Dt.default.Box3(new Dt.default.Vector3(-1,-1,-1),new Dt.default.Vector3(1,1,1)),m=new Dt.default.Box3,p=new Array(3),wt=(new Array(4),new Dt.default.Matrix4),Tt=new Dt.default.Matrix4,St=new Dt.default.Matrix4,Ct=new Dt.default.Matrix3,Et=new Dt.default.Frustum,Mt=new Dt.default.Vector4,Pt=new Dt.default.Vector4,kt=(this.projectVector=function(t,e){console.warn("THREE.Projector: .projectVector() is now vector.project()."),t.project(e)},this.unprojectVector=function(t,e){console.warn("THREE.Projector: .unprojectVector() is now vector.unproject()."),t.unproject(e)},this.pickingRay=function(t,e){console.error("THREE.Projector: .pickingRay() is now raycaster.setFromCamera().")},new function(){var a=[],s=[],l=null,c=null,u=new Dt.default.Matrix3;function i(t){var e=t.position,n=t.positionWorld,i=t.positionScreen,e=(n.copy(e).applyMatrix4(pt),i.copy(n).applyMatrix4(Tt),1/i.w);i.x*=e,i.y*=e,i.z*=e,t.visible=-1<=i.x&&i.x<=1&&-1<=i.y&&i.y<=1&&-1<=i.z&&i.z<=1}function h(t,e,n){return!0===t.visible||!0===e.visible||!0===n.visible||(p[0]=t.positionScreen,p[1]=e.positionScreen,p[2]=n.positionScreen,f.intersectsBox(m.setFromPoints(p)))}function d(t,e,n){return(n.positionScreen.x-t.positionScreen.x)*(e.positionScreen.y-t.positionScreen.y)-(n.positionScreen.y-t.positionScreen.y)*(e.positionScreen.x-t.positionScreen.x)<0}return{setObject:function(t){c=(l=t).material,u.getNormalMatrix(l.matrixWorld),s.length=a.length=0},projectVertex:i,checkTriangleVisibility:h,checkBackfaceCulling:d,pushVertex:function(t,e,n){(r=At()).position.set(t,e,n),i(r)},pushNormal:function(t,e,n){a.push(t,e,n)},pushUv:function(t,e){s.push(t,e)},pushLine:function(t,e){t=gt[t],e=gt[e],(ct=Rt()).id=l.id,ct.v1.copy(t),ct.v2.copy(e),ct.z=(t.positionScreen.z+e.positionScreen.z)/2,ct.renderOrder=l.renderOrder,ct.material=l.material,_t.elements.push(ct)},pushTriangle:function(t,e,n){var i=gt[t],e=gt[e],n=gt[n];if(!1!==h(i,e,n)&&(c.side===Dt.default.DoubleSide||!0===d(i,e,n))){(st=Ot()).id=l.id,st.v1.copy(i),st.v2.copy(e),st.v3.copy(n),st.z=(i.positionScreen.z+e.positionScreen.z+n.positionScreen.z)/3,st.renderOrder=l.renderOrder,st.normalModel.fromArray(a,3*t),st.normalModel.applyMatrix3(u).normalize();for(var r=0;r<3;r++){var o=st.vertexNormalsModel[r];o.fromArray(a,3*arguments[r]),o.applyMatrix3(u).normalize(),st.uvs[r].fromArray(s,2*arguments[r])}st.vertexNormalsLength=3,st.material=l.material,_t.elements.push(st)}}}});function At(){var t;return at===e?(t=new Dt.default.RenderableVertex,gt.push(t),e++,at++,t):gt[at++]}function Ot(){var t;return lt===i?(t=new Dt.default.RenderableFace,n.push(t),i++,lt++,t):n[lt++]}function Rt(){var t;return ut===a?(t=new Dt.default.RenderableLine,o.push(t),a++,ut++,t):o[ut++]}function Lt(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id!==e.id?t.id-e.id:0}this.projectScene=function(I,t,F,B){function N(t){var e;(rt=ot!==mt?ft[ot++]:(e=new Dt.default.RenderableObject,ft.push(e),mt++,ot++,e)).id=t.id,rt.object=t,bt.setFromMatrixPosition(t.matrixWorld),bt.applyProjection(Tt),rt.z=bt.z,rt.renderOrder=t.renderOrder,_t.objects.push(rt)}dt=ut=lt=0,!(_t.elements.length=0)===I.autoUpdate&&I.updateMatrixWorld(),null===t.parent&&t.updateMatrixWorld(),wt.copy(t.matrixWorldInverse.getInverse(t.matrixWorld)),Tt.multiplyMatrices(t.projectionMatrix,wt),Et.setFromMatrix(Tt),ot=0,_t.objects.length=0,_t.lights.length=0,I.traverseVisible(function(t){t instanceof Dt.default.Light?_t.lights.push(t):t instanceof Dt.default.Mesh||t instanceof Dt.default.Line?!1===t.material.visible||!0===t.frustumCulled&&!1===Et.intersectsObject(t)||N(t):t instanceof Dt.default.Sprite&&(!1===t.material.visible||!0===t.frustumCulled&&!1===Et.intersectsSprite(t)||N(t))}),!0===F&&_t.objects.sort(Lt);for(var e,n,i,r,o,a,s,l,c,u=0,U=_t.objects.length;u<U;u++){var h,d=_t.objects[u].object,p=d.geometry;if(kt.setObject(d),pt=d.matrixWorld,at=0,d instanceof Dt.default.Mesh){if(p instanceof Dt.default.BufferGeometry){var f=p.attributes,z=p.groups;if(void 0!==f.position){for(var m=0,g=(j=f.position.array).length;m<g;m+=3)kt.pushVertex(j[m],j[m+1],j[m+2]);if(void 0!==f.normal)for(var v=f.normal.array,m=0,g=v.length;m<g;m+=3)kt.pushNormal(v[m],v[m+1],v[m+2]);if(void 0!==f.uv)for(var V=f.uv.array,m=0,g=V.length;m<g;m+=2)kt.pushUv(V[m],V[m+1]);if(null!==p.index){var y=p.index.array;if(0<z.length)for(u=0;u<z.length;u++)for(var G=z[u],m=G.start,g=G.start+G.count;m<g;m+=3)kt.pushTriangle(y[m],y[m+1],y[m+2]);else for(m=0,g=y.length;m<g;m+=3)kt.pushTriangle(y[m],y[m+1],y[m+2])}else for(m=0,g=j.length/3;m<g;m+=3)kt.pushTriangle(m,m+1,m+2)}}else if(p instanceof Dt.default.Geometry){var _=p.vertices,H=p.faces,W=p.faceVertexUvs[0];Ct.getNormalMatrix(pt);for(var $=(M=d.material)instanceof Dt.default.MultiMaterial,q=!0==$?d.material:null,b=0,X=_.length;b<X;b++){var x=_[b];if(bt.copy(x),!0===M.morphTargets)for(var Y=p.morphTargets,Z=d.morphTargetInfluences,w=0,J=Y.length;w<J;w++){var T,S=Z[w];0!==S&&(T=Y[w].vertices[b],bt.x+=(T.x-x.x)*S,bt.y+=(T.y-x.y)*S,bt.z+=(T.z-x.z)*S)}kt.pushVertex(bt.x,bt.y,bt.z)}for(var C=0,K=H.length;C<K;C++){var E=H[C],M=!0==$?q.materials[E.materialIndex]:d.material;if(void 0!==M){var P=M.side,k=gt[E.a],A=gt[E.b],O=gt[E.c];if(!1!==kt.checkTriangleVisibility(k,A,O)){var R=kt.checkBackfaceCulling(k,A,O);if(P!==Dt.default.DoubleSide){if(P===Dt.default.FrontSide&&!1===R)continue;if(P===Dt.default.BackSide&&!0===R)continue}(st=Ot()).id=d.id,st.v1.copy(k),st.v2.copy(A),st.v3.copy(O),st.normalModel.copy(E.normal),!1!==R||P!==Dt.default.BackSide&&P!==Dt.default.DoubleSide||st.normalModel.negate(),st.normalModel.applyMatrix3(Ct).normalize();for(var Q=E.vertexNormals,L=0,tt=Math.min(Q.length,3);L<tt;L++){var et=st.vertexNormalsModel[L];et.copy(Q[L]),!1!==R||P!==Dt.default.BackSide&&P!==Dt.default.DoubleSide||et.negate(),et.applyMatrix3(Ct).normalize()}st.vertexNormalsLength=Q.length;var nt=W[C];if(void 0!==nt)for(var D=0;D<3;D++)st.uvs[D].copy(nt[D]);st.color=E.color,st.material=M,st.z=(k.positionScreen.z+A.positionScreen.z+O.positionScreen.z)/3,st.renderOrder=d.renderOrder,_t.elements.push(st)}}}}}else if(d instanceof Dt.default.Line){if(p instanceof Dt.default.BufferGeometry){if(void 0!==(f=p.attributes).position){for(var j,m=0,g=(j=f.position.array).length;m<g;m+=3)kt.pushVertex(j[m],j[m+1],j[m+2]);if(null!==p.index)for(m=0,g=(y=p.index.array).length;m<g;m+=2)kt.pushLine(y[m],y[m+1]);else for(var it=d instanceof Dt.default.LineSegments?2:1,m=0,g=j.length/3-1;m<g;m+=it)kt.pushLine(m,m+1)}}else if(p instanceof Dt.default.Geometry){St.multiplyMatrices(Tt,pt);_=d.geometry.vertices;if(0!==_.length){(k=At()).positionScreen.copy(_[0]).applyMatrix4(St);for(it=d instanceof Dt.default.LineSegments?2:1,b=1,X=_.length;b<X;b++)(k=At()).positionScreen.copy(_[b]).applyMatrix4(St),0<(b+1)%it||(A=gt[at-2],Mt.copy(k.positionScreen),Pt.copy(A.positionScreen),!0==(i=Pt,c=l=s=a=o=r=void 0,r=0,o=1,a=(n=Mt).z+n.w,s=i.z+i.w,l=-n.z+n.w,c=-i.z+i.w,0<=a&&0<=s&&0<=l&&0<=c||!(a<0&&s<0||l<0&&c<0||(a<0?r=Math.max(r,a/(a-s)):s<0&&(o=Math.min(o,a/(a-s))),l<0?r=Math.max(r,l/(l-c)):c<0&&(o=Math.min(o,l/(l-c))),o<r)||(n.lerp(i,r),i.lerp(n,1-o),0)))&&(Mt.multiplyScalar(1/Mt.w),Pt.multiplyScalar(1/Pt.w),(ct=Rt()).id=d.id,ct.v1.positionScreen.copy(Mt),ct.v2.positionScreen.copy(Pt),ct.z=Math.max(Mt.z,Pt.z),ct.renderOrder=d.renderOrder,ct.material=d.material,d.material.vertexColors===Dt.default.VertexColors&&(ct.vertexColors[0].copy(d.geometry.colors[b]),ct.vertexColors[1].copy(d.geometry.colors[b-1])),_t.elements.push(ct)))}}}else d instanceof Dt.default.Sprite&&(xt.set(pt.elements[12],pt.elements[13],pt.elements[14],1),xt.applyMatrix4(Tt),h=1/xt.w,xt.z*=h,-1<=xt.z)&&xt.z<=1&&(e=void 0,(ht=dt!==yt?vt[dt++]:(e=new Dt.default.RenderableSprite,vt.push(e),yt++,dt++,e)).id=d.id,ht.x=xt.x*h,ht.y=xt.y*h,ht.z=xt.z,ht.renderOrder=d.renderOrder,ht.object=d,ht.rotation=d.rotation,ht.scale.x=d.scale.x*Math.abs(ht.x-(xt.x+t.projectionMatrix.elements[0])/(xt.w+t.projectionMatrix.elements[12])),ht.scale.y=d.scale.y*Math.abs(ht.y-(xt.y+t.projectionMatrix.elements[5])/(xt.w+t.projectionMatrix.elements[13])),ht.material=d.material,_t.elements.push(ht))}return!0===B&&_t.elements.sort(Lt),_t}},n.default=Dt.default},{three:574}],645:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=function(t,e){return Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2))}},{}],646:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var t=t("underscore"),s=(t=t)&&t.__esModule?t:{default:t};function l(t){return!t.match(":hover")&&!t.match(":active")}n.default=function(){if(!(1<=document.styleSheets.length)||"cssRules"in document.styleSheets[0])for(var t=s.default.toArray(document.styleSheets);0<t.length;)for(var e=t.shift(),n=e.cssRules.length-1;0<=n;n--){var i=e.cssRules,r=i[n];switch(r.type){case 4:case 12:case 3:case 13:case 15:case 16:t.push(16==r.type?r.styleSheet:r);continue;case 1:case 6:var o=r.selectorText,a=o.split(",").filter(l).join(",");o!=a&&(""!=a&&(o=r.cssText.split("{")[1].slice(0,-1),e.insertRule(a+"{"+o+"}",i.length)),e.deleteRule(n))}}}},{underscore:576}],647:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var i=[{name:"dev",domain:/^https?:\/\/[^:\/]+:(?:3000|3005)|citroen-origins\.dev|origins\.citroen\.localhost/i,api:{cars:"http://origins/fr/api/rest/cars/all",thematics:"http://origins/fr/api/rest/thematics/all",menu:"http://origins/fr/api/rest/menus/all",annexes:"http://origins/fr/api/rest/annex/all",screensaver:"http://origins/fr/api/rest/screensaver",contributions:"http://origins/fr/api/rest/user_vehicles/all",contribute:"http://origins/fr/api/rest/user_vehicles/add",likeContribution:"http://origins/fr/api/rest/user_vehicles/like",quiz:"http://origins/fr/api/rest/quiz/result",events:"http://origins/fr/api/rest/events/all"},ajax:!0,offline:!1},{name:"preview",domain:/^https?:\/\/halloffame.werkstatt.fr/i,api:{cars:"/"+document.documentElement.lang+"/api/rest/cars/all",thematics:"/"+document.documentElement.lang+"/api/rest/thematics/all",menu:"/"+document.documentElement.lang+"/api/rest/menus/all",annexes:"/"+document.documentElement.lang+"/api/rest/annex/all",screensaver:"/"+document.documentElement.lang+"/api/rest/screensaver",contributions:"/"+document.documentElement.lang+"/api/rest/user_vehicles/all",contribute:"/"+document.documentElement.lang+"/api/rest/user_vehicles/add",likeContribution:"/"+document.documentElement.lang+"/api/rest/user_vehicles/like",quiz:"/"+document.documentElement.lang+"/api/rest/quiz/result",events:"/"+document.documentElement.lang+"/api/rest/events/all"},ajax:!1,offline:!1},{name:"preprod",domain:/^https?:\/\/origins\.citroen\.ppd(?:\.[a-z]+)?\.agence-one\.net/i,api:{cars:"/"+document.documentElement.lang+"/api/rest/cars/all",thematics:"/"+document.documentElement.lang+"/api/rest/thematics/all",menu:"/"+document.documentElement.lang+"/api/rest/menus/all",annexes:"/"+document.documentElement.lang+"/api/rest/annex/all",screensaver:"/"+document.documentElement.lang+"/api/rest/screensaver",contributions:"/"+document.documentElement.lang+"/api/rest/user_vehicles/all",contribute:"/"+document.documentElement.lang+"/api/rest/user_vehicles/add",likeContribution:"/"+document.documentElement.lang+"/api/rest/user_vehicles/like",quiz:"/"+document.documentElement.lang+"/api/rest/quiz/result",events:"/"+document.documentElement.lang+"/api/rest/events/all"},ajax:!1,offline:!1},{name:"prod",domain:/^https?:\/\//i,api:{cars:"/"+document.documentElement.lang+"/api/rest/cars/all",thematics:"/"+document.documentElement.lang+"/api/rest/thematics/all",menu:"/"+document.documentElement.lang+"/api/rest/menus/all",annexes:"/"+document.documentElement.lang+"/api/rest/annex/all",screensaver:"/"+document.documentElement.lang+"/api/rest/screensaver",contributions:"/"+document.documentElement.lang+"/api/rest/user_vehicles/all",contribute:"/"+document.documentElement.lang+"/api/rest/user_vehicles/add",likeContribution:"/"+document.documentElement.lang+"/api/rest/user_vehicles/like",quiz:"/"+document.documentElement.lang+"/api/rest/quiz/result",events:"/"+document.documentElement.lang+"/api/rest/events/all"},ajax:!1,offline:!1},{name:"app",domain:/^file:\/\//i,api:{cars:"assets/data/{{lang}}/cars.json",thematics:"assets/data/{{lang}}/thematics.json",menu:"assets/data/{{lang}}/menus.json",annexes:"assets/data/{{lang}}/annexes.json",screensaver:"assets/data/{{lang}}/screensaver.json",events:"assets/data/{{lang}}/events.json"},forcedisplayofdispatch:!0,ajax:!0,offline:!0}];n.default=i},{}],648:[function(a,t,e){!function(o){!function(){"use strict";a("babel-polyfill"),a("./../../node_modules/gsap/src/uncompressed/TweenLite"),a("./../../node_modules/gsap/src/uncompressed/TimelineLite"),a("./../../node_modules/gsap/src/uncompressed/utils/Draggable"),a("./../../node_modules/gsap/src/uncompressed/plugins/RoundPropsPlugin");var e=t(a("jquery")),n=t(a("underscore")),i=t(a("./config")),r=t(a("./app/App"));function t(t){return t&&t.__esModule?t:{default:t}}window.$=window.jQuery=e.default,(0,e.default)(function(){n.default.each(["#nav-region","#sections-region","#footer-region","#overlay-region","#loader-region"],function(t){(0,e.default)(t).empty()});var t=n.default.find(i.default,function(t){return t.domain.test(document.location.toString())});"app"==t.name?o.require("electron").webFrame.setZoomLevelLimits(1,1):(0,e.default)(document).on("touchmove, mousewheel",function(t){t.ctrlKey&&t.preventDefault()}),new r.default(t).start(t)})}.call(this)}.call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./../../node_modules/gsap/src/uncompressed/TimelineLite":388,"./../../node_modules/gsap/src/uncompressed/TweenLite":389,"./../../node_modules/gsap/src/uncompressed/plugins/RoundPropsPlugin":390,"./../../node_modules/gsap/src/uncompressed/utils/Draggable":391,"./app/App":577,"./config":647,"babel-polyfill":39,jquery:422,underscore:576}]},{},[648]);